Commit Graph

19 Commits

Author SHA1 Message Date
pngwn
f85686975e
Optional labels fe (#1105)
* optional labels

* added prop

* Added IOComponent class

* get component fix

* fixed component function

* fixed test components

* formatting

* fixed output tests

* working on blocks tests

* fixed test blocks

* cleanup

* respect show_label prop in all components

* Update ui/packages/app/src/components/File/File.svelte

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update ui/packages/app/src/components/Audio/Audio.svelte

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update ui/packages/atoms/src/BlockLabel.svelte

* foirmatting

* formatting again

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-27 11:47:15 +01:00
pngwn
2b0898b9a2
Scroll to output (#1077)
* implement loader + scroll into view

* changes

* refactor components to use Block inside the app

* cleanup

* cleanup

* implement all changes for all changes for all relevant components

* fix formatting

* demos

* add status tracker to every component

* fix tests

* fix unti test flake: randInt

* cleanup CI

* fix CI

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-04-26 15:48:39 +01:00
pngwn
0cecff4672
Form layout (#1054)
* implement form grouping

* demo to showcase form groups

* cleanup

* apply tw classes for custom classes

Co-authored-by: Victor Muštar <victor.mustar@gmail.com>

* fix formatting

* ignore index.html

* fix gitignore

* fix gitignore

* fix gitignore

Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
2022-04-22 10:19:59 +01:00
Victor Muštar
87ea33dc42
UI design update (#1041)
* ui update

tabs
button
container
spacing
responsive row
mobile
chatbot
style
JSON node

* ui misc

* gradio orange shades

* workbench layout

* button shade

* rm unused

* audio animation

* tabs spacings

* table

* form update

* misc

* misc

* sketch placeholder

* table update

* table rings

* JSON copy button

- Logic not implemented

* textbox default placeholder

* table

remove old table

* label style

* button global css

* Update Button.svelte

* cs

* table btn

* carousel height

* audio style

* audio static

* static image size

* formatting

* skip test that aren't testing anything

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2022-04-21 10:27:12 +01:00
Abubakar Abid
e0a64e5b55
added interactive parameter to components (#992)
* added interactive parameter to components

* respect interactive prop

* fixed input tests

* fixed output tests

* fixed test_components.py

* fixed test blocks

* fixed test utils

* fixed formatting

* update test configs

* fix textbox static output

* static audio output

* static video output

* cleanup

* static inmage output

* Static Timeseries

* cleanup outptus fopr markdown _ html

* ensure dataframe can load in static mode

* tweaks

Co-authored-by: pngwn <hello@pngwn.io>
2022-04-14 15:12:30 +01:00
pngwn
f57fa0eb6f
fix i18n and some tweaks (#966)
* fix i18n and some tweaks

* reorder i18n + translate buttons

* disable test

* fix or text

* ensure sketch text only shows when it is a sketch
2022-04-08 19:46:00 +01:00
pngwn
61c2e0e680
static mode for textbox (#929)
* static mode for textbox

* fix checkbox and remove title

* address comments

* autoresize textarea for output textbox

* wait for the DOM to update before resizing the textarea
2022-04-07 20:36:49 +01:00
pngwn
03838573c9
allow audio components to take a string value (#930)
* allow audio components to take a string value

* normalise audio + video input data types

* tweaks
2022-04-07 18:18:41 +01:00
pngwn
6e4e877b19
remove debounce from form inputs (#932) 2022-04-06 17:49:59 +01:00
pngwn
5313a4edf1
fix unit + browser tests (#926) 2022-04-06 11:47:19 +01:00
pngwn
f2d71abe88
Redesign 1 (#918)
* redesign forms

* finalise forms

* upload components

* fix CSS conflicts

* abstract block + update image

* restyle modify buttons

* add file, audio, video

* revert example

* address comments
2022-04-05 18:11:29 +01:00
pngwn
3b452fffdd set default values as the value for components 2022-03-24 13:08:13 +00:00
pngwn
8ed9f3be62 add tests for textbox 2022-03-23 16:56:36 +00:00
pngwn
4f772dc8d9 ensure textbox updates the value 2022-03-23 16:56:01 +00:00
aliabid94
a8ab1c81a1
Blocks dev (#853)
* Blocks-Components-v2
- default -> default_value refactoring

* Blocks-Components-v2
- refactor output types into output_type and make them auto

* Blocks-Backend-Events
- all events are implemented

* Blocks-Backend-Events
- refactor fn: str -> Callable

* Blocks-Backend-Events
- add change event to TabItem

* Blocks Backend Components
- Remove KeyValues from components

* Blocks-Backend-Components-v2
- Resolve Components imports in inputs and outputs

* Blocks-Backend-Components-v2
- fix default parameter usage in demos

* Blocks-Backend-Components-v2
- fix default parameter usage in demos

* Blocks-Backend-Components-v2
- fix default parameter usage in demos

* Blocks-Backend-Components-v2
- docstring updates

* revert demos

* Blocks-Backend-Components-v2
- tweaks

* Blocks-Backend-Components-v2
- add change event to Tabs

* Interfaces from Blocks (#849)

Build interfaces from blocks

Co-authored-by: Ali Abid <aliabid94@gmail.com>

Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2022-03-22 15:40:36 -07:00
pngwn
6e16a8d792 update component events 2022-03-16 16:34:30 +00:00
pngwn
50cb72b4ea more stuff 2022-03-11 16:00:48 +00:00
pngwn
ec80912433 convert all components to new form 2022-03-08 13:35:42 +00:00
pngwn
0044c243db pull all components into packages 2022-03-02 16:42:43 +00:00