@health-samurai/react-components 0.0.0-alpha.2 → 0.0.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +102 -1
- package/dist/bundle.css +2349 -754
- package/dist/src/components/button-dropdown.d.ts +10 -0
- package/dist/src/components/button-dropdown.d.ts.map +1 -0
- package/dist/src/components/button-dropdown.js +70 -0
- package/dist/src/components/button-dropdown.js.map +1 -0
- package/dist/src/components/button-dropdown.stories.js +48 -0
- package/dist/src/components/button-dropdown.stories.js.map +1 -0
- package/dist/src/components/code-editor/fhir-autocomplete.d.ts +70 -0
- package/dist/src/components/code-editor/fhir-autocomplete.d.ts.map +1 -0
- package/dist/src/components/code-editor/fhir-autocomplete.js +1850 -0
- package/dist/src/components/code-editor/fhir-autocomplete.js.map +1 -0
- package/dist/src/components/code-editor/fhir-autocomplete.test.js +1099 -0
- package/dist/src/components/code-editor/fhir-autocomplete.test.js.map +1 -0
- package/dist/src/components/code-editor/http/grammar/http.d.ts +3 -0
- package/dist/src/components/code-editor/http/grammar/http.d.ts.map +1 -0
- package/dist/src/components/code-editor/http/grammar/http.grammar +74 -0
- package/dist/src/components/code-editor/http/grammar/http.js +38 -0
- package/dist/src/components/code-editor/http/grammar/http.js.map +1 -0
- package/dist/src/components/code-editor/http/grammar/http.terms.d.ts +2 -0
- package/dist/src/components/code-editor/http/grammar/http.terms.d.ts.map +1 -0
- package/dist/src/components/code-editor/http/grammar/http.terms.js +4 -0
- package/dist/src/components/code-editor/http/grammar/http.terms.js.map +1 -0
- package/dist/src/components/code-editor/http/grammar/http.test.js +80 -0
- package/dist/src/components/code-editor/http/grammar/http.test.js.map +1 -0
- package/dist/src/components/code-editor/http/index.d.ts +12 -0
- package/dist/src/components/code-editor/http/index.d.ts.map +1 -0
- package/dist/src/components/code-editor/http/index.js +486 -0
- package/dist/src/components/code-editor/http/index.js.map +1 -0
- package/dist/src/components/code-editor/index.d.ts +39 -1
- package/dist/src/components/code-editor/index.d.ts.map +1 -1
- package/dist/src/components/code-editor/index.js +1792 -45
- package/dist/src/components/code-editor/index.js.map +1 -1
- package/dist/src/components/code-editor/json-ast.d.ts +46 -0
- package/dist/src/components/code-editor/json-ast.d.ts.map +1 -0
- package/dist/src/components/code-editor/json-ast.js +465 -0
- package/dist/src/components/code-editor/json-ast.js.map +1 -0
- package/dist/src/components/code-editor/json-ast.test.js +206 -0
- package/dist/src/components/code-editor/json-ast.test.js.map +1 -0
- package/dist/src/components/code-editor/sql-completion.d.ts +22 -0
- package/dist/src/components/code-editor/sql-completion.d.ts.map +1 -0
- package/dist/src/components/code-editor/sql-completion.js +897 -0
- package/dist/src/components/code-editor/sql-completion.js.map +1 -0
- package/dist/src/components/code-editor.stories.js +280 -3
- package/dist/src/components/code-editor.stories.js.map +1 -1
- package/dist/src/components/copy-icon.d.ts +5 -1
- package/dist/src/components/copy-icon.d.ts.map +1 -1
- package/dist/src/components/copy-icon.js +41 -3
- package/dist/src/components/copy-icon.js.map +1 -1
- package/dist/src/components/data-table.d.ts +9 -0
- package/dist/src/components/data-table.d.ts.map +1 -0
- package/dist/src/components/data-table.js +66 -0
- package/dist/src/components/data-table.js.map +1 -0
- package/dist/src/components/data-table.stories.js +240 -0
- package/dist/src/components/data-table.stories.js.map +1 -0
- package/dist/src/components/date-picker-input.d.ts +10 -0
- package/dist/src/components/date-picker-input.d.ts.map +1 -0
- package/dist/src/components/date-picker-input.js +90 -0
- package/dist/src/components/date-picker-input.js.map +1 -0
- package/dist/src/components/date-picker-input.stories.js +76 -0
- package/dist/src/components/date-picker-input.stories.js.map +1 -0
- package/dist/src/components/fhir-structure-view.d.ts +34 -0
- package/dist/src/components/fhir-structure-view.d.ts.map +1 -0
- package/dist/src/components/fhir-structure-view.js +230 -0
- package/dist/src/components/fhir-structure-view.js.map +1 -0
- package/dist/src/components/fhir-structure-view.stories.js +447 -0
- package/dist/src/components/fhir-structure-view.stories.js.map +1 -0
- package/dist/src/components/icon-button.d.ts +12 -0
- package/dist/src/components/icon-button.d.ts.map +1 -0
- package/dist/src/components/icon-button.js +41 -0
- package/dist/src/components/icon-button.js.map +1 -0
- package/dist/src/components/icon-button.stories.js +157 -0
- package/dist/src/components/icon-button.stories.js.map +1 -0
- package/dist/src/components/operation-outcome-view.d.ts +27 -0
- package/dist/src/components/operation-outcome-view.d.ts.map +1 -0
- package/dist/src/components/operation-outcome-view.js +198 -0
- package/dist/src/components/operation-outcome-view.js.map +1 -0
- package/dist/src/components/operation-outcome-view.stories.js +207 -0
- package/dist/src/components/operation-outcome-view.stories.js.map +1 -0
- package/dist/src/components/request-line-editor.d.ts +13 -35
- package/dist/src/components/request-line-editor.d.ts.map +1 -1
- package/dist/src/components/request-line-editor.js +73 -49
- package/dist/src/components/request-line-editor.js.map +1 -1
- package/dist/src/components/request-line-editor.stories.js +17 -53
- package/dist/src/components/request-line-editor.stories.js.map +1 -1
- package/dist/src/components/sandbox.d.ts +13 -0
- package/dist/src/components/sandbox.d.ts.map +1 -0
- package/dist/src/components/sandbox.js +107 -0
- package/dist/src/components/sandbox.js.map +1 -0
- package/dist/src/components/sandbox.stories.js +126 -0
- package/dist/src/components/sandbox.stories.js.map +1 -0
- package/dist/src/components/segment-control.d.ts +13 -0
- package/dist/src/components/segment-control.d.ts.map +1 -0
- package/dist/src/components/segment-control.js +33 -0
- package/dist/src/components/segment-control.js.map +1 -0
- package/dist/src/components/segment-control.stories.js +68 -0
- package/dist/src/components/segment-control.stories.js.map +1 -0
- package/dist/src/components/split-button.d.ts +12 -0
- package/dist/src/components/split-button.d.ts.map +1 -0
- package/dist/src/components/split-button.js +33 -0
- package/dist/src/components/split-button.js.map +1 -0
- package/dist/src/components/split-button.stories.js +84 -0
- package/dist/src/components/split-button.stories.js.map +1 -0
- package/dist/src/components/tag.d.ts +16 -0
- package/dist/src/components/tag.d.ts.map +1 -0
- package/dist/src/components/tag.js +198 -0
- package/dist/src/components/tag.js.map +1 -0
- package/dist/src/components/tag.stories.js +459 -0
- package/dist/src/components/tag.stories.js.map +1 -0
- package/dist/src/components/tile.d.ts +15 -0
- package/dist/src/components/tile.d.ts.map +1 -0
- package/dist/src/components/tile.js +76 -0
- package/dist/src/components/tile.js.map +1 -0
- package/dist/src/components/tile.stories.js +167 -0
- package/dist/src/components/tile.stories.js.map +1 -0
- package/dist/src/components/toolbar.d.ts +18 -0
- package/dist/src/components/toolbar.d.ts.map +1 -0
- package/dist/src/components/toolbar.js +61 -0
- package/dist/src/components/toolbar.js.map +1 -0
- package/dist/src/components/toolbar.stories.js +69 -0
- package/dist/src/components/toolbar.stories.js.map +1 -0
- package/dist/src/components/tree-view.d.ts +47 -0
- package/dist/src/components/tree-view.d.ts.map +1 -0
- package/dist/src/components/tree-view.js +122 -0
- package/dist/src/components/tree-view.js.map +1 -0
- package/dist/src/components/tree-view.stories.js +283 -0
- package/dist/src/components/tree-view.stories.js.map +1 -0
- package/dist/src/icons.d.ts +11 -0
- package/dist/src/icons.d.ts.map +1 -0
- package/dist/src/icons.js +328 -0
- package/dist/src/icons.js.map +1 -0
- package/dist/src/index.css +358 -74
- package/dist/src/index.d.ts +17 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +17 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/shadcn/components/ui/accordion.d.ts +2 -2
- package/dist/src/shadcn/components/ui/accordion.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/accordion.js +35 -9
- package/dist/src/shadcn/components/ui/accordion.js.map +1 -1
- package/dist/src/shadcn/components/ui/alert-dialog.d.ts +12 -4
- package/dist/src/shadcn/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/alert-dialog.js +128 -18
- package/dist/src/shadcn/components/ui/alert-dialog.js.map +1 -1
- package/dist/src/shadcn/components/ui/alert-dialog.stories.js +269 -19
- package/dist/src/shadcn/components/ui/alert-dialog.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/alert.d.ts +29 -6
- package/dist/src/shadcn/components/ui/alert.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/alert.js +50 -19
- package/dist/src/shadcn/components/ui/alert.js.map +1 -1
- package/dist/src/shadcn/components/ui/alert.stories.js +140 -36
- package/dist/src/shadcn/components/ui/alert.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/aspect-ratio.js +1 -0
- package/dist/src/shadcn/components/ui/aspect-ratio.js.map +1 -1
- package/dist/src/shadcn/components/ui/avatar.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/avatar.js +4 -3
- package/dist/src/shadcn/components/ui/avatar.js.map +1 -1
- package/dist/src/shadcn/components/ui/avatar.stories.js +68 -2
- package/dist/src/shadcn/components/ui/avatar.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/badge.d.ts +1 -1
- package/dist/src/shadcn/components/ui/badge.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/badge.js +16 -5
- package/dist/src/shadcn/components/ui/badge.js.map +1 -1
- package/dist/src/shadcn/components/ui/breadcrumb.d.ts +5 -2
- package/dist/src/shadcn/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/breadcrumb.js +98 -13
- package/dist/src/shadcn/components/ui/breadcrumb.js.map +1 -1
- package/dist/src/shadcn/components/ui/breadcrumb.stories.js +205 -45
- package/dist/src/shadcn/components/ui/breadcrumb.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/button.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/button.js +65 -11
- package/dist/src/shadcn/components/ui/button.js.map +1 -1
- package/dist/src/shadcn/components/ui/button.stories.js +99 -17
- package/dist/src/shadcn/components/ui/button.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/calendar.d.ts +1 -1
- package/dist/src/shadcn/components/ui/calendar.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/calendar.js +1 -0
- package/dist/src/shadcn/components/ui/calendar.js.map +1 -1
- package/dist/src/shadcn/components/ui/card.d.ts +5 -1
- package/dist/src/shadcn/components/ui/card.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/card.js +28 -7
- package/dist/src/shadcn/components/ui/card.js.map +1 -1
- package/dist/src/shadcn/components/ui/card.stories.js +23 -2
- package/dist/src/shadcn/components/ui/card.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/carousel.d.ts +1 -1
- package/dist/src/shadcn/components/ui/carousel.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/carousel.js +1 -0
- package/dist/src/shadcn/components/ui/carousel.js.map +1 -1
- package/dist/src/shadcn/components/ui/chart.d.ts +5 -5
- package/dist/src/shadcn/components/ui/chart.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/chart.js +4 -3
- package/dist/src/shadcn/components/ui/chart.js.map +1 -1
- package/dist/src/shadcn/components/ui/checkbox.d.ts +5 -1
- package/dist/src/shadcn/components/ui/checkbox.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/checkbox.js +46 -6
- package/dist/src/shadcn/components/ui/checkbox.js.map +1 -1
- package/dist/src/shadcn/components/ui/checkbox.stories.js +156 -46
- package/dist/src/shadcn/components/ui/checkbox.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/combobox.d.ts +29 -0
- package/dist/src/shadcn/components/ui/combobox.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/combobox.js +226 -0
- package/dist/src/shadcn/components/ui/combobox.js.map +1 -0
- package/dist/src/shadcn/components/ui/combobox.stories.js +167 -0
- package/dist/src/shadcn/components/ui/combobox.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/command.d.ts +4 -2
- package/dist/src/shadcn/components/ui/command.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/command.js +75 -13
- package/dist/src/shadcn/components/ui/command.js.map +1 -1
- package/dist/src/shadcn/components/ui/command.stories.js +277 -57
- package/dist/src/shadcn/components/ui/command.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/context-menu.d.ts +7 -3
- package/dist/src/shadcn/components/ui/context-menu.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/context-menu.js +120 -13
- package/dist/src/shadcn/components/ui/context-menu.js.map +1 -1
- package/dist/src/shadcn/components/ui/dialog.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/dialog.js +35 -7
- package/dist/src/shadcn/components/ui/dialog.js.map +1 -1
- package/dist/src/shadcn/components/ui/drawer.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/drawer.js +27 -5
- package/dist/src/shadcn/components/ui/drawer.js.map +1 -1
- package/dist/src/shadcn/components/ui/dropdown-menu.d.ts +7 -3
- package/dist/src/shadcn/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/dropdown-menu.js +122 -14
- package/dist/src/shadcn/components/ui/dropdown-menu.js.map +1 -1
- package/dist/src/shadcn/components/ui/dropdown-menu.stories.js +22 -5
- package/dist/src/shadcn/components/ui/dropdown-menu.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/form.d.ts +2 -2
- package/dist/src/shadcn/components/ui/form.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/form.js +17 -8
- package/dist/src/shadcn/components/ui/form.js.map +1 -1
- package/dist/src/shadcn/components/ui/hover-card.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/hover-card.js +2 -1
- package/dist/src/shadcn/components/ui/hover-card.js.map +1 -1
- package/dist/src/shadcn/components/ui/input-otp.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/input-otp.js +1 -0
- package/dist/src/shadcn/components/ui/input-otp.js.map +1 -1
- package/dist/src/shadcn/components/ui/input.d.ts +3 -1
- package/dist/src/shadcn/components/ui/input.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/input.js +126 -17
- package/dist/src/shadcn/components/ui/input.js.map +1 -1
- package/dist/src/shadcn/components/ui/input.stories.js +218 -29
- package/dist/src/shadcn/components/ui/input.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/label.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/label.js +9 -1
- package/dist/src/shadcn/components/ui/label.js.map +1 -1
- package/dist/src/shadcn/components/ui/menubar.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/menubar.js +35 -13
- package/dist/src/shadcn/components/ui/menubar.js.map +1 -1
- package/dist/src/shadcn/components/ui/pagination.d.ts +9 -2
- package/dist/src/shadcn/components/ui/pagination.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/pagination.js +41 -24
- package/dist/src/shadcn/components/ui/pagination.js.map +1 -1
- package/dist/src/shadcn/components/ui/pagination.stories.js +44 -37
- package/dist/src/shadcn/components/ui/pagination.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/popover.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/popover.js +13 -1
- package/dist/src/shadcn/components/ui/popover.js.map +1 -1
- package/dist/src/shadcn/components/ui/progress.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/progress.js +6 -2
- package/dist/src/shadcn/components/ui/progress.js.map +1 -1
- package/dist/src/shadcn/components/ui/radio-button-group.d.ts +21 -0
- package/dist/src/shadcn/components/ui/radio-button-group.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/radio-button-group.js +148 -0
- package/dist/src/shadcn/components/ui/radio-button-group.js.map +1 -0
- package/dist/src/shadcn/components/ui/radio-button-group.stories.js +283 -0
- package/dist/src/shadcn/components/ui/radio-button-group.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/radio-group.d.ts +5 -1
- package/dist/src/shadcn/components/ui/radio-group.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/radio-group.js +40 -7
- package/dist/src/shadcn/components/ui/radio-group.js.map +1 -1
- package/dist/src/shadcn/components/ui/radio-group.stories.js +107 -32
- package/dist/src/shadcn/components/ui/radio-group.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/resizable.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/resizable.js +2 -1
- package/dist/src/shadcn/components/ui/resizable.js.map +1 -1
- package/dist/src/shadcn/components/ui/resizable.stories.js +2 -2
- package/dist/src/shadcn/components/ui/resizable.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/scroll-area.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/scroll-area.js +10 -3
- package/dist/src/shadcn/components/ui/scroll-area.js.map +1 -1
- package/dist/src/shadcn/components/ui/select.d.ts +1 -2
- package/dist/src/shadcn/components/ui/select.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/select.js +49 -19
- package/dist/src/shadcn/components/ui/select.js.map +1 -1
- package/dist/src/shadcn/components/ui/select.stories.js +193 -70
- package/dist/src/shadcn/components/ui/select.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/separator.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/separator.js +8 -1
- package/dist/src/shadcn/components/ui/separator.js.map +1 -1
- package/dist/src/shadcn/components/ui/sheet.js +1 -1
- package/dist/src/shadcn/components/ui/sheet.js.map +1 -1
- package/dist/src/shadcn/components/ui/sidebar.d.ts +4 -4
- package/dist/src/shadcn/components/ui/sidebar.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/sidebar.js +21 -6
- package/dist/src/shadcn/components/ui/sidebar.js.map +1 -1
- package/dist/src/shadcn/components/ui/skeleton.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/skeleton.js +3 -1
- package/dist/src/shadcn/components/ui/skeleton.js.map +1 -1
- package/dist/src/shadcn/components/ui/slider.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/slider.js +35 -4
- package/dist/src/shadcn/components/ui/slider.js.map +1 -1
- package/dist/src/shadcn/components/ui/sonner.d.ts +24 -2
- package/dist/src/shadcn/components/ui/sonner.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/sonner.js +127 -9
- package/dist/src/shadcn/components/ui/sonner.js.map +1 -1
- package/dist/src/shadcn/components/ui/sonner.stories.js +251 -12
- package/dist/src/shadcn/components/ui/sonner.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/switch.d.ts +7 -1
- package/dist/src/shadcn/components/ui/switch.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/switch.js +55 -3
- package/dist/src/shadcn/components/ui/switch.js.map +1 -1
- package/dist/src/shadcn/components/ui/switch.stories.js +84 -9
- package/dist/src/shadcn/components/ui/switch.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/table.d.ts +23 -6
- package/dist/src/shadcn/components/ui/table.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/table.js +65 -20
- package/dist/src/shadcn/components/ui/table.js.map +1 -1
- package/dist/src/shadcn/components/ui/table.stories.js +217 -97
- package/dist/src/shadcn/components/ui/table.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/tabs.d.ts +30 -5
- package/dist/src/shadcn/components/ui/tabs.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/tabs.js +470 -23
- package/dist/src/shadcn/components/ui/tabs.js.map +1 -1
- package/dist/src/shadcn/components/ui/tabs.stories.js +405 -181
- package/dist/src/shadcn/components/ui/tabs.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/textarea.d.ts +8 -1
- package/dist/src/shadcn/components/ui/textarea.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/textarea.js +30 -2
- package/dist/src/shadcn/components/ui/textarea.js.map +1 -1
- package/dist/src/shadcn/components/ui/textarea.stories.js +85 -4
- package/dist/src/shadcn/components/ui/textarea.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/toggle-group.d.ts +3 -3
- package/dist/src/shadcn/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/toggle-group.js +14 -12
- package/dist/src/shadcn/components/ui/toggle-group.js.map +1 -1
- package/dist/src/shadcn/components/ui/toggle.d.ts +3 -4
- package/dist/src/shadcn/components/ui/toggle.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/toggle.js +44 -16
- package/dist/src/shadcn/components/ui/toggle.js.map +1 -1
- package/dist/src/shadcn/components/ui/toggle.stories.js +130 -7
- package/dist/src/shadcn/components/ui/toggle.stories.js.map +1 -1
- package/dist/src/shadcn/components/ui/tooltip.d.ts.map +1 -1
- package/dist/src/shadcn/components/ui/tooltip.js +12 -1
- package/dist/src/shadcn/components/ui/tooltip.js.map +1 -1
- package/dist/src/shadcn/components/ui/tree.d.ts +29 -0
- package/dist/src/shadcn/components/ui/tree.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/tree.js +135 -0
- package/dist/src/shadcn/components/ui/tree.js.map +1 -0
- package/dist/src/shadcn/shadcn.css +4 -4
- package/dist/src/tokens.css +50 -20
- package/dist/src/typography.css +78 -15
- package/package.json +84 -64
- package/src/components/button-dropdown.stories.tsx +41 -0
- package/src/components/button-dropdown.tsx +97 -0
- package/src/components/code-editor/fhir-autocomplete.test.ts +993 -0
- package/src/components/code-editor/fhir-autocomplete.ts +2322 -0
- package/src/components/code-editor/http/grammar/http.grammar +74 -0
- package/src/components/code-editor/http/grammar/http.terms.ts +9 -0
- package/src/components/code-editor/http/grammar/http.test.ts +110 -0
- package/src/components/code-editor/http/grammar/http.ts +21 -0
- package/src/components/code-editor/http/index.ts +424 -0
- package/src/components/code-editor/index.tsx +1944 -42
- package/src/components/code-editor/json-ast.test.ts +230 -0
- package/src/components/code-editor/json-ast.ts +590 -0
- package/src/components/code-editor/sql-completion.ts +1112 -0
- package/src/components/code-editor.stories.tsx +325 -2
- package/src/components/copy-icon.tsx +57 -3
- package/src/components/data-table.stories.tsx +91 -0
- package/src/components/data-table.tsx +126 -0
- package/src/components/date-picker-input.stories.tsx +79 -0
- package/src/components/date-picker-input.tsx +104 -0
- package/src/components/fhir-structure-view.stories.tsx +439 -0
- package/src/components/fhir-structure-view.tsx +233 -0
- package/src/components/icon-button.stories.tsx +86 -0
- package/src/components/icon-button.tsx +57 -0
- package/src/components/operation-outcome-view.stories.tsx +163 -0
- package/src/components/operation-outcome-view.tsx +254 -0
- package/src/components/request-line-editor.stories.tsx +17 -27
- package/src/components/request-line-editor.tsx +103 -61
- package/src/components/sandbox.stories.tsx +131 -0
- package/src/components/sandbox.tsx +191 -0
- package/src/components/segment-control.stories.tsx +61 -0
- package/src/components/segment-control.tsx +83 -0
- package/src/components/split-button.stories.tsx +68 -0
- package/src/components/split-button.tsx +74 -0
- package/src/components/tag.stories.tsx +371 -0
- package/src/components/tag.tsx +236 -0
- package/src/components/tile.stories.tsx +149 -0
- package/src/components/tile.tsx +105 -0
- package/src/components/toolbar.stories.tsx +64 -0
- package/src/components/toolbar.tsx +98 -0
- package/src/components/tree-view.stories.tsx +265 -0
- package/src/components/tree-view.tsx +246 -0
- package/src/icons.tsx +331 -0
- package/src/index.css +358 -74
- package/src/index.tsx +17 -3
- package/src/shadcn/components/ui/accordion.tsx +91 -10
- package/src/shadcn/components/ui/alert-dialog.stories.tsx +209 -15
- package/src/shadcn/components/ui/alert-dialog.tsx +236 -26
- package/src/shadcn/components/ui/alert.stories.tsx +120 -21
- package/src/shadcn/components/ui/alert.tsx +125 -28
- package/src/shadcn/components/ui/aspect-ratio.tsx +1 -0
- package/src/shadcn/components/ui/avatar.stories.tsx +74 -1
- package/src/shadcn/components/ui/avatar.tsx +22 -6
- package/src/shadcn/components/ui/badge.tsx +67 -18
- package/src/shadcn/components/ui/breadcrumb.stories.tsx +161 -41
- package/src/shadcn/components/ui/breadcrumb.tsx +172 -23
- package/src/shadcn/components/ui/button.stories.tsx +106 -18
- package/src/shadcn/components/ui/button.tsx +151 -55
- package/src/shadcn/components/ui/calendar.tsx +1 -0
- package/src/shadcn/components/ui/card.stories.tsx +17 -3
- package/src/shadcn/components/ui/card.tsx +89 -14
- package/src/shadcn/components/ui/carousel.tsx +1 -0
- package/src/shadcn/components/ui/chart.tsx +9 -5
- package/src/shadcn/components/ui/checkbox.stories.tsx +78 -30
- package/src/shadcn/components/ui/checkbox.tsx +91 -8
- package/src/shadcn/components/ui/combobox.stories.tsx +148 -0
- package/src/shadcn/components/ui/combobox.tsx +324 -0
- package/src/shadcn/components/ui/command.stories.tsx +184 -39
- package/src/shadcn/components/ui/command.tsx +218 -37
- package/src/shadcn/components/ui/context-menu.tsx +333 -40
- package/src/shadcn/components/ui/dialog.tsx +101 -13
- package/src/shadcn/components/ui/drawer.tsx +94 -18
- package/src/shadcn/components/ui/dropdown-menu.stories.tsx +18 -2
- package/src/shadcn/components/ui/dropdown-menu.tsx +334 -68
- package/src/shadcn/components/ui/form.tsx +22 -11
- package/src/shadcn/components/ui/hover-card.tsx +2 -1
- package/src/shadcn/components/ui/input-otp.tsx +1 -0
- package/src/shadcn/components/ui/input.stories.tsx +235 -27
- package/src/shadcn/components/ui/input.tsx +400 -29
- package/src/shadcn/components/ui/label.tsx +22 -4
- package/src/shadcn/components/ui/menubar.tsx +188 -43
- package/src/shadcn/components/ui/pagination.stories.tsx +8 -2
- package/src/shadcn/components/ui/pagination.tsx +65 -8
- package/src/shadcn/components/ui/popover.tsx +36 -4
- package/src/shadcn/components/ui/progress.tsx +21 -5
- package/src/shadcn/components/ui/radio-button-group.stories.tsx +247 -0
- package/src/shadcn/components/ui/radio-button-group.tsx +188 -0
- package/src/shadcn/components/ui/radio-group.stories.tsx +70 -14
- package/src/shadcn/components/ui/radio-group.tsx +85 -9
- package/src/shadcn/components/ui/resizable.stories.tsx +2 -2
- package/src/shadcn/components/ui/resizable.tsx +2 -1
- package/src/shadcn/components/ui/scroll-area.tsx +34 -5
- package/src/shadcn/components/ui/select.stories.tsx +108 -32
- package/src/shadcn/components/ui/select.tsx +182 -36
- package/src/shadcn/components/ui/separator.tsx +16 -5
- package/src/shadcn/components/ui/sheet.tsx +1 -1
- package/src/shadcn/components/ui/sidebar.tsx +69 -26
- package/src/shadcn/components/ui/skeleton.tsx +4 -1
- package/src/shadcn/components/ui/slider.tsx +83 -11
- package/src/shadcn/components/ui/sonner.stories.tsx +238 -17
- package/src/shadcn/components/ui/sonner.tsx +254 -11
- package/src/shadcn/components/ui/switch.stories.tsx +52 -5
- package/src/shadcn/components/ui/switch.tsx +92 -7
- package/src/shadcn/components/ui/table.stories.tsx +252 -72
- package/src/shadcn/components/ui/table.tsx +204 -26
- package/src/shadcn/components/ui/tabs.stories.tsx +235 -123
- package/src/shadcn/components/ui/tabs.tsx +694 -36
- package/src/shadcn/components/ui/textarea.stories.tsx +94 -2
- package/src/shadcn/components/ui/textarea.tsx +70 -5
- package/src/shadcn/components/ui/toggle-group.tsx +35 -13
- package/src/shadcn/components/ui/toggle.stories.tsx +92 -5
- package/src/shadcn/components/ui/toggle.tsx +96 -23
- package/src/shadcn/components/ui/tooltip.tsx +34 -8
- package/src/shadcn/components/ui/tree.tsx +257 -0
- package/src/shadcn/shadcn.css +4 -4
- package/src/tokens.css +50 -20
- package/src/typography.css +78 -15
- package/dist/src/components/code-editor.stories.d.ts +0 -7
- package/dist/src/components/code-editor.stories.d.ts.map +0 -1
- package/dist/src/components/request-line-editor.stories.d.ts +0 -11
- package/dist/src/components/request-line-editor.stories.d.ts.map +0 -1
- package/dist/src/index.stories.d.ts +0 -14
- package/dist/src/index.stories.d.ts.map +0 -1
- package/dist/src/index.stories.js +0 -19
- package/dist/src/index.stories.js.map +0 -1
- package/dist/src/shadcn/components/ui/accordion.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/accordion.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/alert-dialog.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/alert-dialog.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/alert.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/alert.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/aspect-ratio.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/aspect-ratio.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/avatar.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/avatar.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/badge.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/badge.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/breadcrumb.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/breadcrumb.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/button.stories.d.ts +0 -23
- package/dist/src/shadcn/components/ui/button.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/calendar.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/calendar.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/card.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/card.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/carousel.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/carousel.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/chart.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/chart.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/checkbox.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/checkbox.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/collapsible.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/collapsible.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/command.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/command.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/context-menu.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/context-menu.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/dialog.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/dialog.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/drawer.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/drawer.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/dropdown-menu.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/dropdown-menu.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/form.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/form.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/hover-card.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/hover-card.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/input-otp.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/input-otp.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/input.stories.d.ts +0 -18
- package/dist/src/shadcn/components/ui/input.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/label.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/label.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/menubar.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/menubar.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/navigation-menu.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/navigation-menu.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/pagination.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/pagination.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/popover.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/popover.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/progress.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/progress.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/radio-group.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/radio-group.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/resizable.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/resizable.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/scroll-area.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/scroll-area.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/select.stories.d.ts +0 -11
- package/dist/src/shadcn/components/ui/select.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/separator.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/separator.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/sheet.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/sheet.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/sidebar.stories.d.ts +0 -11
- package/dist/src/shadcn/components/ui/sidebar.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/skeleton.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/skeleton.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/slider.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/slider.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/sonner.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/sonner.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/switch.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/switch.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/table.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/table.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/tabs.stories.d.ts +0 -32
- package/dist/src/shadcn/components/ui/tabs.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/textarea.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/textarea.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/toggle-group.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/toggle-group.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/toggle.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/toggle.stories.d.ts.map +0 -1
- package/dist/src/shadcn/components/ui/tooltip.stories.d.ts +0 -8
- package/dist/src/shadcn/components/ui/tooltip.stories.d.ts.map +0 -1
- package/src/index.stories.tsx +0 -21
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Controls, Primary, Title } from "@storybook/addon-docs/blocks";
|
|
2
3
|
import { CircleX, Copy, Mail } from "lucide-react";
|
|
3
4
|
import { Badge } from "./badge.js";
|
|
4
5
|
import { Input } from "./input.js";
|
|
5
6
|
import { Label } from "./label.js";
|
|
7
|
+
import { IconButton } from "../../../components/icon-button.js";
|
|
6
8
|
function InputWithLabel({ label = "Label", description = "This is a hint text to help user.", invalid = false, disabled = false, placeholder = "Placeholder", leftSlot, rightSlot, suffix }) {
|
|
7
9
|
const descriptionColor = invalid ? "text-text-error-primary" : disabled ? "text-text-disabled" : "text-text-secondary";
|
|
8
10
|
return /*#__PURE__*/ _jsx("div", {
|
|
@@ -24,7 +26,7 @@ function InputWithLabel({ label = "Label", description = "This is a hint text to
|
|
|
24
26
|
disabled: disabled
|
|
25
27
|
}),
|
|
26
28
|
/*#__PURE__*/ _jsx("p", {
|
|
27
|
-
className: `typo-body ${descriptionColor}`,
|
|
29
|
+
className: `typo-body-xs ${descriptionColor}`,
|
|
28
30
|
children: description
|
|
29
31
|
})
|
|
30
32
|
]
|
|
@@ -33,18 +35,75 @@ function InputWithLabel({ label = "Label", description = "This is a hint text to
|
|
|
33
35
|
}
|
|
34
36
|
const meta = {
|
|
35
37
|
title: "Component/Input",
|
|
36
|
-
component: Input
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
component: Input,
|
|
39
|
+
parameters: {
|
|
40
|
+
docs: {
|
|
41
|
+
page: ()=>/*#__PURE__*/ _jsxs(_Fragment, {
|
|
42
|
+
children: [
|
|
43
|
+
/*#__PURE__*/ _jsx(Title, {}),
|
|
44
|
+
/*#__PURE__*/ _jsx(Primary, {}),
|
|
45
|
+
/*#__PURE__*/ _jsx(Controls, {})
|
|
46
|
+
]
|
|
47
|
+
})
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
argTypes: {
|
|
51
|
+
type: {
|
|
52
|
+
control: "select",
|
|
53
|
+
options: [
|
|
54
|
+
"text",
|
|
55
|
+
"password"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
placeholder: {
|
|
59
|
+
control: "text"
|
|
60
|
+
},
|
|
61
|
+
invalid: {
|
|
62
|
+
control: "boolean"
|
|
63
|
+
},
|
|
64
|
+
disabled: {
|
|
65
|
+
control: "boolean"
|
|
66
|
+
},
|
|
67
|
+
hasPrefix: {
|
|
68
|
+
control: "boolean",
|
|
69
|
+
name: "hasPrefix"
|
|
70
|
+
},
|
|
71
|
+
hasSuffix: {
|
|
72
|
+
control: "boolean",
|
|
73
|
+
name: "hasSuffix"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
40
76
|
args: {
|
|
41
77
|
type: "text",
|
|
42
78
|
placeholder: "Placeholder",
|
|
43
|
-
|
|
44
|
-
|
|
79
|
+
invalid: false,
|
|
80
|
+
disabled: false,
|
|
81
|
+
hasPrefix: false,
|
|
82
|
+
hasSuffix: false
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
export default meta;
|
|
86
|
+
export const Default = {
|
|
87
|
+
tags: [
|
|
88
|
+
"!dev"
|
|
89
|
+
],
|
|
90
|
+
render: (args)=>{
|
|
91
|
+
const { hasPrefix, hasSuffix, ...rest } = args;
|
|
92
|
+
return /*#__PURE__*/ _jsx(Input, {
|
|
93
|
+
...rest,
|
|
94
|
+
...hasPrefix && {
|
|
95
|
+
prefixValue: "https://"
|
|
96
|
+
},
|
|
97
|
+
...hasSuffix && {
|
|
98
|
+
suffix: ".com"
|
|
99
|
+
}
|
|
100
|
+
});
|
|
45
101
|
}
|
|
46
102
|
};
|
|
47
103
|
export const Demo = {
|
|
104
|
+
tags: [
|
|
105
|
+
"!autodocs"
|
|
106
|
+
],
|
|
48
107
|
render: ()=>/*#__PURE__*/ _jsx("div", {
|
|
49
108
|
className: "p-6 min-h-screen flex justify-center items-center",
|
|
50
109
|
children: /*#__PURE__*/ _jsxs("div", {
|
|
@@ -140,22 +199,37 @@ export const Demo = {
|
|
|
140
199
|
}),
|
|
141
200
|
variant === "right" && /*#__PURE__*/ _jsx(Input, {
|
|
142
201
|
placeholder: "Placeholder",
|
|
143
|
-
rightSlot: /*#__PURE__*/ _jsx(
|
|
202
|
+
rightSlot: /*#__PURE__*/ _jsx(IconButton, {
|
|
203
|
+
icon: /*#__PURE__*/ _jsx(CircleX, {}),
|
|
204
|
+
"aria-label": "Clear",
|
|
205
|
+
variant: "link"
|
|
206
|
+
})
|
|
144
207
|
}),
|
|
145
208
|
variant === "both" && /*#__PURE__*/ _jsx(Input, {
|
|
146
209
|
placeholder: "Placeholder",
|
|
147
210
|
leftSlot: /*#__PURE__*/ _jsx(Mail, {}),
|
|
148
|
-
rightSlot: /*#__PURE__*/ _jsx(
|
|
211
|
+
rightSlot: /*#__PURE__*/ _jsx(IconButton, {
|
|
212
|
+
icon: /*#__PURE__*/ _jsx(CircleX, {}),
|
|
213
|
+
"aria-label": "Clear",
|
|
214
|
+
variant: "link"
|
|
215
|
+
})
|
|
149
216
|
}),
|
|
150
217
|
variant === "left-double-right" && /*#__PURE__*/ _jsx(Input, {
|
|
151
218
|
placeholder: "Placeholder",
|
|
152
219
|
className: "pr-15",
|
|
153
220
|
leftSlot: /*#__PURE__*/ _jsx(Mail, {}),
|
|
154
|
-
rightSlot: /*#__PURE__*/ _jsxs(
|
|
155
|
-
className: "flex items-center gap-2",
|
|
221
|
+
rightSlot: /*#__PURE__*/ _jsxs(_Fragment, {
|
|
156
222
|
children: [
|
|
157
|
-
/*#__PURE__*/ _jsx(
|
|
158
|
-
|
|
223
|
+
/*#__PURE__*/ _jsx(IconButton, {
|
|
224
|
+
icon: /*#__PURE__*/ _jsx(CircleX, {}),
|
|
225
|
+
"aria-label": "Clear",
|
|
226
|
+
variant: "link"
|
|
227
|
+
}),
|
|
228
|
+
/*#__PURE__*/ _jsx(IconButton, {
|
|
229
|
+
icon: /*#__PURE__*/ _jsx(Copy, {}),
|
|
230
|
+
"aria-label": "Copy",
|
|
231
|
+
variant: "link"
|
|
232
|
+
})
|
|
159
233
|
]
|
|
160
234
|
}),
|
|
161
235
|
suffix: "milliseconds"
|
|
@@ -176,19 +250,41 @@ export const Demo = {
|
|
|
176
250
|
}),
|
|
177
251
|
variant === "right" && /*#__PURE__*/ _jsx(Input, {
|
|
178
252
|
placeholder: "Placeholder",
|
|
179
|
-
rightSlot: /*#__PURE__*/ _jsx(
|
|
253
|
+
rightSlot: /*#__PURE__*/ _jsx(IconButton, {
|
|
254
|
+
icon: /*#__PURE__*/ _jsx(CircleX, {}),
|
|
255
|
+
"aria-label": "Clear",
|
|
256
|
+
variant: "link"
|
|
257
|
+
}),
|
|
180
258
|
invalid: true
|
|
181
259
|
}),
|
|
182
260
|
variant === "both" && /*#__PURE__*/ _jsx(Input, {
|
|
183
261
|
placeholder: "Placeholder",
|
|
184
262
|
leftSlot: /*#__PURE__*/ _jsx(Mail, {}),
|
|
185
|
-
rightSlot: /*#__PURE__*/ _jsx(
|
|
263
|
+
rightSlot: /*#__PURE__*/ _jsx(IconButton, {
|
|
264
|
+
icon: /*#__PURE__*/ _jsx(CircleX, {}),
|
|
265
|
+
"aria-label": "Clear",
|
|
266
|
+
variant: "link"
|
|
267
|
+
}),
|
|
186
268
|
invalid: true
|
|
187
269
|
}),
|
|
188
270
|
variant === "left-double-right" && /*#__PURE__*/ _jsx(Input, {
|
|
189
271
|
placeholder: "Placeholder",
|
|
272
|
+
className: "pr-15",
|
|
190
273
|
leftSlot: /*#__PURE__*/ _jsx(Mail, {}),
|
|
191
|
-
rightSlot: /*#__PURE__*/
|
|
274
|
+
rightSlot: /*#__PURE__*/ _jsxs(_Fragment, {
|
|
275
|
+
children: [
|
|
276
|
+
/*#__PURE__*/ _jsx(IconButton, {
|
|
277
|
+
icon: /*#__PURE__*/ _jsx(CircleX, {}),
|
|
278
|
+
"aria-label": "Clear",
|
|
279
|
+
variant: "link"
|
|
280
|
+
}),
|
|
281
|
+
/*#__PURE__*/ _jsx(IconButton, {
|
|
282
|
+
icon: /*#__PURE__*/ _jsx(Copy, {}),
|
|
283
|
+
"aria-label": "Copy",
|
|
284
|
+
variant: "link"
|
|
285
|
+
})
|
|
286
|
+
]
|
|
287
|
+
}),
|
|
192
288
|
suffix: "milliseconds",
|
|
193
289
|
invalid: true
|
|
194
290
|
})
|
|
@@ -208,19 +304,45 @@ export const Demo = {
|
|
|
208
304
|
}),
|
|
209
305
|
variant === "right" && /*#__PURE__*/ _jsx(Input, {
|
|
210
306
|
placeholder: "Aidbox",
|
|
211
|
-
rightSlot: /*#__PURE__*/ _jsx(
|
|
307
|
+
rightSlot: /*#__PURE__*/ _jsx(IconButton, {
|
|
308
|
+
icon: /*#__PURE__*/ _jsx(CircleX, {}),
|
|
309
|
+
"aria-label": "Clear",
|
|
310
|
+
variant: "link",
|
|
311
|
+
disabled: true
|
|
312
|
+
}),
|
|
212
313
|
disabled: true
|
|
213
314
|
}),
|
|
214
315
|
variant === "both" && /*#__PURE__*/ _jsx(Input, {
|
|
215
316
|
placeholder: "Aidbox",
|
|
216
317
|
leftSlot: /*#__PURE__*/ _jsx(Mail, {}),
|
|
217
|
-
rightSlot: /*#__PURE__*/ _jsx(
|
|
318
|
+
rightSlot: /*#__PURE__*/ _jsx(IconButton, {
|
|
319
|
+
icon: /*#__PURE__*/ _jsx(CircleX, {}),
|
|
320
|
+
"aria-label": "Clear",
|
|
321
|
+
variant: "link",
|
|
322
|
+
disabled: true
|
|
323
|
+
}),
|
|
218
324
|
disabled: true
|
|
219
325
|
}),
|
|
220
326
|
variant === "left-double-right" && /*#__PURE__*/ _jsx(Input, {
|
|
221
327
|
placeholder: "Aidbox",
|
|
328
|
+
className: "pr-15",
|
|
222
329
|
leftSlot: /*#__PURE__*/ _jsx(Mail, {}),
|
|
223
|
-
rightSlot: /*#__PURE__*/
|
|
330
|
+
rightSlot: /*#__PURE__*/ _jsxs(_Fragment, {
|
|
331
|
+
children: [
|
|
332
|
+
/*#__PURE__*/ _jsx(IconButton, {
|
|
333
|
+
icon: /*#__PURE__*/ _jsx(CircleX, {}),
|
|
334
|
+
"aria-label": "Clear",
|
|
335
|
+
variant: "link",
|
|
336
|
+
disabled: true
|
|
337
|
+
}),
|
|
338
|
+
/*#__PURE__*/ _jsx(IconButton, {
|
|
339
|
+
icon: /*#__PURE__*/ _jsx(Copy, {}),
|
|
340
|
+
"aria-label": "Copy",
|
|
341
|
+
variant: "link",
|
|
342
|
+
disabled: true
|
|
343
|
+
})
|
|
344
|
+
]
|
|
345
|
+
}),
|
|
224
346
|
suffix: "milliseconds",
|
|
225
347
|
disabled: true
|
|
226
348
|
})
|
|
@@ -315,17 +437,38 @@ export const Demo = {
|
|
|
315
437
|
}),
|
|
316
438
|
variant === "right" && /*#__PURE__*/ _jsx(InputWithLabel, {
|
|
317
439
|
placeholder: "Placeholder",
|
|
318
|
-
rightSlot: /*#__PURE__*/ _jsx(
|
|
440
|
+
rightSlot: /*#__PURE__*/ _jsx(IconButton, {
|
|
441
|
+
icon: /*#__PURE__*/ _jsx(CircleX, {}),
|
|
442
|
+
"aria-label": "Clear",
|
|
443
|
+
variant: "link"
|
|
444
|
+
})
|
|
319
445
|
}),
|
|
320
446
|
variant === "both" && /*#__PURE__*/ _jsx(InputWithLabel, {
|
|
321
447
|
placeholder: "Placeholder",
|
|
322
448
|
leftSlot: /*#__PURE__*/ _jsx(Mail, {}),
|
|
323
|
-
rightSlot: /*#__PURE__*/ _jsx(
|
|
449
|
+
rightSlot: /*#__PURE__*/ _jsx(IconButton, {
|
|
450
|
+
icon: /*#__PURE__*/ _jsx(CircleX, {}),
|
|
451
|
+
"aria-label": "Clear",
|
|
452
|
+
variant: "link"
|
|
453
|
+
})
|
|
324
454
|
}),
|
|
325
455
|
variant === "left-double-right" && /*#__PURE__*/ _jsx(InputWithLabel, {
|
|
326
456
|
placeholder: "Placeholder",
|
|
327
457
|
leftSlot: /*#__PURE__*/ _jsx(Mail, {}),
|
|
328
|
-
rightSlot: /*#__PURE__*/
|
|
458
|
+
rightSlot: /*#__PURE__*/ _jsxs(_Fragment, {
|
|
459
|
+
children: [
|
|
460
|
+
/*#__PURE__*/ _jsx(IconButton, {
|
|
461
|
+
icon: /*#__PURE__*/ _jsx(CircleX, {}),
|
|
462
|
+
"aria-label": "Clear",
|
|
463
|
+
variant: "link"
|
|
464
|
+
}),
|
|
465
|
+
/*#__PURE__*/ _jsx(IconButton, {
|
|
466
|
+
icon: /*#__PURE__*/ _jsx(Copy, {}),
|
|
467
|
+
"aria-label": "Copy",
|
|
468
|
+
variant: "link"
|
|
469
|
+
})
|
|
470
|
+
]
|
|
471
|
+
}),
|
|
329
472
|
suffix: "milliseconds"
|
|
330
473
|
})
|
|
331
474
|
]
|
|
@@ -344,19 +487,40 @@ export const Demo = {
|
|
|
344
487
|
}),
|
|
345
488
|
variant === "right" && /*#__PURE__*/ _jsx(InputWithLabel, {
|
|
346
489
|
placeholder: "Placeholder",
|
|
347
|
-
rightSlot: /*#__PURE__*/ _jsx(
|
|
490
|
+
rightSlot: /*#__PURE__*/ _jsx(IconButton, {
|
|
491
|
+
icon: /*#__PURE__*/ _jsx(CircleX, {}),
|
|
492
|
+
"aria-label": "Clear",
|
|
493
|
+
variant: "link"
|
|
494
|
+
}),
|
|
348
495
|
invalid: true
|
|
349
496
|
}),
|
|
350
497
|
variant === "both" && /*#__PURE__*/ _jsx(InputWithLabel, {
|
|
351
498
|
placeholder: "Placeholder",
|
|
352
499
|
leftSlot: /*#__PURE__*/ _jsx(Mail, {}),
|
|
353
|
-
rightSlot: /*#__PURE__*/ _jsx(
|
|
500
|
+
rightSlot: /*#__PURE__*/ _jsx(IconButton, {
|
|
501
|
+
icon: /*#__PURE__*/ _jsx(CircleX, {}),
|
|
502
|
+
"aria-label": "Clear",
|
|
503
|
+
variant: "link"
|
|
504
|
+
}),
|
|
354
505
|
invalid: true
|
|
355
506
|
}),
|
|
356
507
|
variant === "left-double-right" && /*#__PURE__*/ _jsx(InputWithLabel, {
|
|
357
508
|
placeholder: "Placeholder",
|
|
358
509
|
leftSlot: /*#__PURE__*/ _jsx(Mail, {}),
|
|
359
|
-
rightSlot: /*#__PURE__*/
|
|
510
|
+
rightSlot: /*#__PURE__*/ _jsxs(_Fragment, {
|
|
511
|
+
children: [
|
|
512
|
+
/*#__PURE__*/ _jsx(IconButton, {
|
|
513
|
+
icon: /*#__PURE__*/ _jsx(CircleX, {}),
|
|
514
|
+
"aria-label": "Clear",
|
|
515
|
+
variant: "link"
|
|
516
|
+
}),
|
|
517
|
+
/*#__PURE__*/ _jsx(IconButton, {
|
|
518
|
+
icon: /*#__PURE__*/ _jsx(Copy, {}),
|
|
519
|
+
"aria-label": "Copy",
|
|
520
|
+
variant: "link"
|
|
521
|
+
})
|
|
522
|
+
]
|
|
523
|
+
}),
|
|
360
524
|
suffix: "milliseconds",
|
|
361
525
|
invalid: true
|
|
362
526
|
})
|
|
@@ -376,19 +540,44 @@ export const Demo = {
|
|
|
376
540
|
}),
|
|
377
541
|
variant === "right" && /*#__PURE__*/ _jsx(InputWithLabel, {
|
|
378
542
|
placeholder: "Aidbox",
|
|
379
|
-
rightSlot: /*#__PURE__*/ _jsx(
|
|
543
|
+
rightSlot: /*#__PURE__*/ _jsx(IconButton, {
|
|
544
|
+
icon: /*#__PURE__*/ _jsx(CircleX, {}),
|
|
545
|
+
"aria-label": "Clear",
|
|
546
|
+
variant: "link",
|
|
547
|
+
disabled: true
|
|
548
|
+
}),
|
|
380
549
|
disabled: true
|
|
381
550
|
}),
|
|
382
551
|
variant === "both" && /*#__PURE__*/ _jsx(InputWithLabel, {
|
|
383
552
|
placeholder: "Aidbox",
|
|
384
553
|
leftSlot: /*#__PURE__*/ _jsx(Mail, {}),
|
|
385
|
-
rightSlot: /*#__PURE__*/ _jsx(
|
|
554
|
+
rightSlot: /*#__PURE__*/ _jsx(IconButton, {
|
|
555
|
+
icon: /*#__PURE__*/ _jsx(CircleX, {}),
|
|
556
|
+
"aria-label": "Clear",
|
|
557
|
+
variant: "link",
|
|
558
|
+
disabled: true
|
|
559
|
+
}),
|
|
386
560
|
disabled: true
|
|
387
561
|
}),
|
|
388
562
|
variant === "left-double-right" && /*#__PURE__*/ _jsx(InputWithLabel, {
|
|
389
563
|
placeholder: "Aidbox",
|
|
390
564
|
leftSlot: /*#__PURE__*/ _jsx(Mail, {}),
|
|
391
|
-
rightSlot: /*#__PURE__*/
|
|
565
|
+
rightSlot: /*#__PURE__*/ _jsxs(_Fragment, {
|
|
566
|
+
children: [
|
|
567
|
+
/*#__PURE__*/ _jsx(IconButton, {
|
|
568
|
+
icon: /*#__PURE__*/ _jsx(CircleX, {}),
|
|
569
|
+
"aria-label": "Clear",
|
|
570
|
+
variant: "link",
|
|
571
|
+
disabled: true
|
|
572
|
+
}),
|
|
573
|
+
/*#__PURE__*/ _jsx(IconButton, {
|
|
574
|
+
icon: /*#__PURE__*/ _jsx(Copy, {}),
|
|
575
|
+
"aria-label": "Copy",
|
|
576
|
+
variant: "link",
|
|
577
|
+
disabled: true
|
|
578
|
+
})
|
|
579
|
+
]
|
|
580
|
+
}),
|
|
392
581
|
suffix: "milliseconds",
|
|
393
582
|
disabled: true
|
|
394
583
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/shadcn/components/ui/input.stories.tsx"],"sourcesContent":["import type { Meta, StoryObj } from \"@storybook/react-vite\";\nimport { CircleX, Copy, Mail } from \"lucide-react\";\nimport { Badge } from \"#shadcn/components/ui/badge\";\nimport { Input } from \"#shadcn/components/ui/input\";\nimport { Label } from \"#shadcn/components/ui/label\";\n\ninterface InputWithLabelProps {\n\tlabel?: string;\n\tdescription?: string;\n\tinvalid?: boolean;\n\tdisabled?: boolean;\n\tplaceholder?: string;\n\tleftSlot?: React.ReactNode;\n\trightSlot?: React.ReactNode;\n\tsuffix?: string;\n}\n\nfunction InputWithLabel({\n\tlabel = \"Label\",\n\tdescription = \"This is a hint text to help user.\",\n\tinvalid = false,\n\tdisabled = false,\n\tplaceholder = \"Placeholder\",\n\tleftSlot,\n\trightSlot,\n\tsuffix,\n}: InputWithLabelProps) {\n\tconst descriptionColor = invalid\n\t\t? \"text-text-error-primary\"\n\t\t: disabled\n\t\t\t? \"text-text-disabled\"\n\t\t\t: \"text-text-secondary\";\n\n\treturn (\n\t\t<div className=\"flex w-full\">\n\t\t\t<div className=\"space-y-2 w-full\">\n\t\t\t\t<Label>{label}</Label>\n\t\t\t\t<Input\n\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\tleftSlot={leftSlot}\n\t\t\t\t\trightSlot={rightSlot}\n\t\t\t\t\t{...(suffix && { suffix })}\n\t\t\t\t\tinvalid={invalid}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t/>\n\t\t\t\t<p className={`typo-body ${descriptionColor}`}>{description}</p>\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n\nconst meta = {\n\ttitle: \"Component/Input\",\n\tcomponent: Input,\n} satisfies Meta<typeof Input>;\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const Default = {\n\targs: {\n\t\ttype: \"text\",\n\t\tplaceholder: \"Placeholder\",\n\t\tleftSlot: undefined,\n\t\trightSlot: undefined,\n\t},\n} satisfies Story;\n\nexport const Demo = {\n\trender: () => (\n\t\t<div className=\"p-6 min-h-screen flex justify-center items-center\">\n\t\t\t<div className=\"rounded-lg p-6 shadow-sm w-280\">\n\t\t\t\t<div className=\"flex items-center mb-4 justify-between\">\n\t\t\t\t\t<div className=\"w-40 text-left\">Inputs without labels</div>\n\t\t\t\t\t<div className=\"w-70 text-left text-sm text-text-secondary\">\n\t\t\t\t\t\tInvalid:\n\t\t\t\t\t\t<Badge variant=\"outline\" className=\"text-xs ml-2\">\n\t\t\t\t\t\t\tfalse\n\t\t\t\t\t\t</Badge>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className=\"w-70 text-left text-sm text-text-secondary\">\n\t\t\t\t\t\tInvalid:\n\t\t\t\t\t\t<Badge variant=\"outline\" className=\"text-xs ml-2\">\n\t\t\t\t\t\t\ttrue\n\t\t\t\t\t\t</Badge>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className=\"w-70 text-left text-sm text-text-secondary\">\n\t\t\t\t\t\tDisabled:\n\t\t\t\t\t\t<Badge variant=\"outline\" className=\"text-xs ml-2\">\n\t\t\t\t\t\t\ttrue\n\t\t\t\t\t\t</Badge>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t{([\"none\", \"left\", \"right\", \"both\", \"left-double-right\"] as const).map(\n\t\t\t\t\t(variant) => {\n\t\t\t\t\t\tconst variantLabel = {\n\t\t\t\t\t\t\tnone: \"None\",\n\t\t\t\t\t\t\tleft: \"leftSlot\",\n\t\t\t\t\t\t\tright: \"rightSlot\",\n\t\t\t\t\t\t\tboth: \"leftSlot + rightSlot\",\n\t\t\t\t\t\t\t\"left-double-right\": \"BothPlusExtra\",\n\t\t\t\t\t\t}[variant];\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName=\"items-center gap-3 py-3 border-gray-l00 border-t border-border-separator\"\n\t\t\t\t\t\t\t\tkey={variant}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<div className=\"flex gap-3 items-center py-2 justify-between\">\n\t\t\t\t\t\t\t\t\t<div className=\"w-40 text-sm text-text-secondary\">\n\t\t\t\t\t\t\t\t\t\t<div className=\"flex\">\n\t\t\t\t\t\t\t\t\t\t\t<div className=\"w-15\">Slots:</div>\n\t\t\t\t\t\t\t\t\t\t\t<Badge variant=\"outline\" className=\"text-xs\">\n\t\t\t\t\t\t\t\t\t\t\t\t{variantLabel}\n\t\t\t\t\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t{/* Default Variants */}\n\t\t\t\t\t\t\t\t\t<div className=\"w-70 flex gap-3 justify-center\">\n\t\t\t\t\t\t\t\t\t\t{variant === \"none\" && <Input placeholder=\"Placeholder\" />}\n\t\t\t\t\t\t\t\t\t\t{variant === \"left\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input placeholder=\"Placeholder\" leftSlot={<Mail />} />\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"right\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\t\trightSlot={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"both\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\t\trightSlot={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"left-double-right\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"pr-15\"\n\t\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\t\trightSlot={\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<CircleX />\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Copy />\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tsuffix=\"milliseconds\"\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t{/* Critical Variants */}\n\t\t\t\t\t\t\t\t\t<div className=\"w-70 flex gap-3 justify-center\">\n\t\t\t\t\t\t\t\t\t\t{variant === \"none\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input placeholder=\"Placeholder\" invalid />\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"left\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\t\tinvalid\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"right\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\t\trightSlot={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\tinvalid\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"both\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\t\trightSlot={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\tinvalid\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"left-double-right\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\t\trightSlot={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\tsuffix=\"milliseconds\"\n\t\t\t\t\t\t\t\t\t\t\t\tinvalid\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t{/* Disabled Variants */}\n\t\t\t\t\t\t\t\t\t<div className=\"w-70 flex gap-3 justify-center\">\n\t\t\t\t\t\t\t\t\t\t{variant === \"none\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input placeholder=\"Aidbox\" disabled />\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"left\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Aidbox\"\n\t\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"right\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Aidbox\"\n\t\t\t\t\t\t\t\t\t\t\t\trightSlot={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"both\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Aidbox\"\n\t\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\t\trightSlot={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"left-double-right\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Aidbox\"\n\t\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\t\trightSlot={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\tsuffix=\"milliseconds\"\n\t\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t);\n\t\t\t\t\t},\n\t\t\t\t)}\n\n\t\t\t\t{/* Label + Description Section */}\n\t\t\t\t<div className=\"mt-8\">\n\t\t\t\t\t<div className=\"flex items-center mb-4 justify-between\">\n\t\t\t\t\t\t<div className=\"w-40 text-left\">Input + Label + Description</div>\n\t\t\t\t\t\t<div className=\"w-70 text-left text-sm text-text-secondary\">\n\t\t\t\t\t\t\tInvalid:\n\t\t\t\t\t\t\t<Badge variant=\"outline\" className=\"text-xs\">\n\t\t\t\t\t\t\t\tfalse\n\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div className=\"w-70 text-left text-sm text-text-secondary\">\n\t\t\t\t\t\t\tInvalid:\n\t\t\t\t\t\t\t<Badge variant=\"outline\" className=\"text-xs\">\n\t\t\t\t\t\t\t\ttrue\n\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div className=\"w-70 text-left text-sm text-text-secondary\">\n\t\t\t\t\t\t\tDisabled:\n\t\t\t\t\t\t\t<Badge variant=\"outline\" className=\"text-xs\">\n\t\t\t\t\t\t\t\ttrue\n\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{(\n\t\t\t\t\t\t[\"none\", \"left\", \"right\", \"both\", \"left-double-right\"] as const\n\t\t\t\t\t).map((variant) => (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclassName=\"items-center gap-3 py-3 border-gray-l00 border-t border-border-separator\"\n\t\t\t\t\t\t\tkey={`label-${variant}`}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<div className=\"flex gap-3 items-center py-2 justify-between\">\n\t\t\t\t\t\t\t\t<div className=\"w-40 text-sm text-text-secondary\">\n\t\t\t\t\t\t\t\t\t<div className=\"flex\">\n\t\t\t\t\t\t\t\t\t\t<div className=\"w-15\">Slots:</div>\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"outline\" className=\"text-xs\">\n\t\t\t\t\t\t\t\t\t\t\t{variant}\n\t\t\t\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t{/* Default Variants with Label */}\n\t\t\t\t\t\t\t\t<div className=\"w-70 flex gap-3 justify-center\">\n\t\t\t\t\t\t\t\t\t{variant === \"none\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel placeholder=\"Placeholder\" />\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"left\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"right\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\trightSlot={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"both\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\trightSlot={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"left-double-right\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\trightSlot={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\tsuffix=\"milliseconds\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t{/* Critical Variants with Label */}\n\t\t\t\t\t\t\t\t<div className=\"w-70 flex gap-3 justify-center\">\n\t\t\t\t\t\t\t\t\t{variant === \"none\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel placeholder=\"Placeholder\" invalid />\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"left\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\tinvalid\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"right\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\trightSlot={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\tinvalid\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"both\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\trightSlot={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\tinvalid\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"left-double-right\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\trightSlot={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\tsuffix=\"milliseconds\"\n\t\t\t\t\t\t\t\t\t\t\tinvalid\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t{/* Disabled Variants with Label */}\n\t\t\t\t\t\t\t\t<div className=\"w-70 flex gap-3 justify-center\">\n\t\t\t\t\t\t\t\t\t{variant === \"none\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel placeholder=\"Aidbox\" disabled />\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"left\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Aidbox\"\n\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"right\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Aidbox\"\n\t\t\t\t\t\t\t\t\t\t\trightSlot={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"both\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Aidbox\"\n\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\trightSlot={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"left-double-right\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Aidbox\"\n\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\trightSlot={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\tsuffix=\"milliseconds\"\n\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t),\n} satisfies Story;\n"],"names":["CircleX","Copy","Mail","Badge","Input","Label","InputWithLabel","label","description","invalid","disabled","placeholder","leftSlot","rightSlot","suffix","descriptionColor","div","className","p","meta","title","component","Default","args","type","undefined","Demo","render","variant","map","variantLabel","none","left","right","both"],"mappings":";AACA,SAASA,OAAO,EAAEC,IAAI,EAAEC,IAAI,QAAQ,eAAe;AACnD,SAASC,K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Y;wDACZC,wBAAU,KAACV;wDACXW,yBAAW,KAACb;wDACZc,QAAO;wDACPJ,QAAQ;;;;;;mCArHP,CAAC,MAAM,EAAEkB,SAAS;;;;;;AAgI9B,EAAkB"}
|
|
1
|
+
{"version":3,"sources":["../../../../../src/shadcn/components/ui/input.stories.tsx"],"sourcesContent":["import { Controls, Primary, Title } from \"@storybook/addon-docs/blocks\";\nimport type { Meta, StoryObj } from \"@storybook/react-vite\";\nimport { CircleX, Copy, Mail } from \"lucide-react\";\nimport { Badge } from \"#shadcn/components/ui/badge\";\nimport { Input } from \"#shadcn/components/ui/input\";\nimport { Label } from \"#shadcn/components/ui/label\";\nimport { IconButton } from \"../../../components/icon-button\";\n\ninterface InputWithLabelProps {\n\tlabel?: string;\n\tdescription?: string;\n\tinvalid?: boolean;\n\tdisabled?: boolean;\n\tplaceholder?: string;\n\tleftSlot?: React.ReactNode;\n\trightSlot?: React.ReactNode;\n\tsuffix?: string;\n}\n\nfunction InputWithLabel({\n\tlabel = \"Label\",\n\tdescription = \"This is a hint text to help user.\",\n\tinvalid = false,\n\tdisabled = false,\n\tplaceholder = \"Placeholder\",\n\tleftSlot,\n\trightSlot,\n\tsuffix,\n}: InputWithLabelProps) {\n\tconst descriptionColor = invalid\n\t\t? \"text-text-error-primary\"\n\t\t: disabled\n\t\t\t? \"text-text-disabled\"\n\t\t\t: \"text-text-secondary\";\n\n\treturn (\n\t\t<div className=\"flex w-full\">\n\t\t\t<div className=\"space-y-2 w-full\">\n\t\t\t\t<Label>{label}</Label>\n\t\t\t\t<Input\n\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\tleftSlot={leftSlot}\n\t\t\t\t\trightSlot={rightSlot}\n\t\t\t\t\t{...(suffix && { suffix })}\n\t\t\t\t\tinvalid={invalid}\n\t\t\t\t\tdisabled={disabled}\n\t\t\t\t/>\n\t\t\t\t<p className={`typo-body-xs ${descriptionColor}`}>{description}</p>\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n\nconst meta = {\n\ttitle: \"Component/Input\",\n\tcomponent: Input,\n\tparameters: {\n\t\tdocs: {\n\t\t\tpage: () => (\n\t\t\t\t<>\n\t\t\t\t\t<Title />\n\t\t\t\t\t<Primary />\n\t\t\t\t\t<Controls />\n\t\t\t\t</>\n\t\t\t),\n\t\t},\n\t},\n\targTypes: {\n\t\ttype: {\n\t\t\tcontrol: \"select\",\n\t\t\toptions: [\"text\", \"password\"],\n\t\t},\n\t\tplaceholder: {\n\t\t\tcontrol: \"text\",\n\t\t},\n\t\tinvalid: {\n\t\t\tcontrol: \"boolean\",\n\t\t},\n\t\tdisabled: {\n\t\t\tcontrol: \"boolean\",\n\t\t},\n\t\thasPrefix: {\n\t\t\tcontrol: \"boolean\",\n\t\t\tname: \"hasPrefix\",\n\t\t},\n\t\thasSuffix: {\n\t\t\tcontrol: \"boolean\",\n\t\t\tname: \"hasSuffix\",\n\t\t},\n\t},\n\targs: {\n\t\ttype: \"text\",\n\t\tplaceholder: \"Placeholder\",\n\t\tinvalid: false,\n\t\tdisabled: false,\n\t\thasPrefix: false,\n\t\thasSuffix: false,\n\t},\n} satisfies Meta<typeof Input>;\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const Default = {\n\ttags: [\"!dev\"],\n\trender: (args) => {\n\t\tconst { hasPrefix, hasSuffix, ...rest } = args as typeof args & {\n\t\t\thasPrefix?: boolean;\n\t\t\thasSuffix?: boolean;\n\t\t};\n\t\treturn (\n\t\t\t<Input\n\t\t\t\t{...rest}\n\t\t\t\t{...(hasPrefix && { prefixValue: \"https://\" })}\n\t\t\t\t{...(hasSuffix && { suffix: \".com\" })}\n\t\t\t/>\n\t\t);\n\t},\n} satisfies Story;\n\nexport const Demo = {\n\ttags: [\"!autodocs\"],\n\trender: () => (\n\t\t<div className=\"p-6 min-h-screen flex justify-center items-center\">\n\t\t\t<div className=\"rounded-lg p-6 shadow-sm w-280\">\n\t\t\t\t<div className=\"flex items-center mb-4 justify-between\">\n\t\t\t\t\t<div className=\"w-40 text-left\">Inputs without labels</div>\n\t\t\t\t\t<div className=\"w-70 text-left text-sm text-text-secondary\">\n\t\t\t\t\t\tInvalid:\n\t\t\t\t\t\t<Badge variant=\"outline\" className=\"text-xs ml-2\">\n\t\t\t\t\t\t\tfalse\n\t\t\t\t\t\t</Badge>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className=\"w-70 text-left text-sm text-text-secondary\">\n\t\t\t\t\t\tInvalid:\n\t\t\t\t\t\t<Badge variant=\"outline\" className=\"text-xs ml-2\">\n\t\t\t\t\t\t\ttrue\n\t\t\t\t\t\t</Badge>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className=\"w-70 text-left text-sm text-text-secondary\">\n\t\t\t\t\t\tDisabled:\n\t\t\t\t\t\t<Badge variant=\"outline\" className=\"text-xs ml-2\">\n\t\t\t\t\t\t\ttrue\n\t\t\t\t\t\t</Badge>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t{([\"none\", \"left\", \"right\", \"both\", \"left-double-right\"] as const).map(\n\t\t\t\t\t(variant) => {\n\t\t\t\t\t\tconst variantLabel = {\n\t\t\t\t\t\t\tnone: \"None\",\n\t\t\t\t\t\t\tleft: \"leftSlot\",\n\t\t\t\t\t\t\tright: \"rightSlot\",\n\t\t\t\t\t\t\tboth: \"leftSlot + rightSlot\",\n\t\t\t\t\t\t\t\"left-double-right\": \"BothPlusExtra\",\n\t\t\t\t\t\t}[variant];\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclassName=\"items-center gap-3 py-3 border-gray-l00 border-t border-border-separator\"\n\t\t\t\t\t\t\t\tkey={variant}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<div className=\"flex gap-3 items-center py-2 justify-between\">\n\t\t\t\t\t\t\t\t\t<div className=\"w-40 text-sm text-text-secondary\">\n\t\t\t\t\t\t\t\t\t\t<div className=\"flex\">\n\t\t\t\t\t\t\t\t\t\t\t<div className=\"w-15\">Slots:</div>\n\t\t\t\t\t\t\t\t\t\t\t<Badge variant=\"outline\" className=\"text-xs\">\n\t\t\t\t\t\t\t\t\t\t\t\t{variantLabel}\n\t\t\t\t\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t{/* Default Variants */}\n\t\t\t\t\t\t\t\t\t<div className=\"w-70 flex gap-3 justify-center\">\n\t\t\t\t\t\t\t\t\t\t{variant === \"none\" && <Input placeholder=\"Placeholder\" />}\n\t\t\t\t\t\t\t\t\t\t{variant === \"left\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input placeholder=\"Placeholder\" leftSlot={<Mail />} />\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"right\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\t\trightSlot={\n\t\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Clear\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"both\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\t\trightSlot={\n\t\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Clear\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"left-double-right\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"pr-15\"\n\t\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\t\trightSlot={\n\t\t\t\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Clear\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<Copy />}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Copy\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tsuffix=\"milliseconds\"\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t{/* Critical Variants */}\n\t\t\t\t\t\t\t\t\t<div className=\"w-70 flex gap-3 justify-center\">\n\t\t\t\t\t\t\t\t\t\t{variant === \"none\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input placeholder=\"Placeholder\" invalid />\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"left\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\t\tinvalid\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"right\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\t\trightSlot={\n\t\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Clear\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tinvalid\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"both\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\t\trightSlot={\n\t\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Clear\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tinvalid\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"left-double-right\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"pr-15\"\n\t\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\t\trightSlot={\n\t\t\t\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Clear\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<Copy />}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Copy\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tsuffix=\"milliseconds\"\n\t\t\t\t\t\t\t\t\t\t\t\tinvalid\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t{/* Disabled Variants */}\n\t\t\t\t\t\t\t\t\t<div className=\"w-70 flex gap-3 justify-center\">\n\t\t\t\t\t\t\t\t\t\t{variant === \"none\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input placeholder=\"Aidbox\" disabled />\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"left\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Aidbox\"\n\t\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"right\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Aidbox\"\n\t\t\t\t\t\t\t\t\t\t\t\trightSlot={\n\t\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Clear\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"both\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Aidbox\"\n\t\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\t\trightSlot={\n\t\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Clear\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t{variant === \"left-double-right\" && (\n\t\t\t\t\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Aidbox\"\n\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"pr-15\"\n\t\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\t\trightSlot={\n\t\t\t\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Clear\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<Copy />}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Copy\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tsuffix=\"milliseconds\"\n\t\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t);\n\t\t\t\t\t},\n\t\t\t\t)}\n\n\t\t\t\t{/* Label + Description Section */}\n\t\t\t\t<div className=\"mt-8\">\n\t\t\t\t\t<div className=\"flex items-center mb-4 justify-between\">\n\t\t\t\t\t\t<div className=\"w-40 text-left\">Input + Label + Description</div>\n\t\t\t\t\t\t<div className=\"w-70 text-left text-sm text-text-secondary\">\n\t\t\t\t\t\t\tInvalid:\n\t\t\t\t\t\t\t<Badge variant=\"outline\" className=\"text-xs\">\n\t\t\t\t\t\t\t\tfalse\n\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div className=\"w-70 text-left text-sm text-text-secondary\">\n\t\t\t\t\t\t\tInvalid:\n\t\t\t\t\t\t\t<Badge variant=\"outline\" className=\"text-xs\">\n\t\t\t\t\t\t\t\ttrue\n\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div className=\"w-70 text-left text-sm text-text-secondary\">\n\t\t\t\t\t\t\tDisabled:\n\t\t\t\t\t\t\t<Badge variant=\"outline\" className=\"text-xs\">\n\t\t\t\t\t\t\t\ttrue\n\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{(\n\t\t\t\t\t\t[\"none\", \"left\", \"right\", \"both\", \"left-double-right\"] as const\n\t\t\t\t\t).map((variant) => (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclassName=\"items-center gap-3 py-3 border-gray-l00 border-t border-border-separator\"\n\t\t\t\t\t\t\tkey={`label-${variant}`}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<div className=\"flex gap-3 items-center py-2 justify-between\">\n\t\t\t\t\t\t\t\t<div className=\"w-40 text-sm text-text-secondary\">\n\t\t\t\t\t\t\t\t\t<div className=\"flex\">\n\t\t\t\t\t\t\t\t\t\t<div className=\"w-15\">Slots:</div>\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"outline\" className=\"text-xs\">\n\t\t\t\t\t\t\t\t\t\t\t{variant}\n\t\t\t\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t{/* Default Variants with Label */}\n\t\t\t\t\t\t\t\t<div className=\"w-70 flex gap-3 justify-center\">\n\t\t\t\t\t\t\t\t\t{variant === \"none\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel placeholder=\"Placeholder\" />\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"left\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"right\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\trightSlot={\n\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Clear\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"both\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\trightSlot={\n\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Clear\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"left-double-right\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\trightSlot={\n\t\t\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Clear\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<Copy />}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Copy\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tsuffix=\"milliseconds\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t{/* Critical Variants with Label */}\n\t\t\t\t\t\t\t\t<div className=\"w-70 flex gap-3 justify-center\">\n\t\t\t\t\t\t\t\t\t{variant === \"none\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel placeholder=\"Placeholder\" invalid />\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"left\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\tinvalid\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"right\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\trightSlot={\n\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Clear\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tinvalid\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"both\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\trightSlot={\n\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Clear\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tinvalid\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"left-double-right\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Placeholder\"\n\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\trightSlot={\n\t\t\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Clear\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<Copy />}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Copy\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tsuffix=\"milliseconds\"\n\t\t\t\t\t\t\t\t\t\t\tinvalid\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t{/* Disabled Variants with Label */}\n\t\t\t\t\t\t\t\t<div className=\"w-70 flex gap-3 justify-center\">\n\t\t\t\t\t\t\t\t\t{variant === \"none\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel placeholder=\"Aidbox\" disabled />\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"left\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Aidbox\"\n\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"right\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Aidbox\"\n\t\t\t\t\t\t\t\t\t\t\trightSlot={\n\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Clear\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"both\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Aidbox\"\n\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\trightSlot={\n\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Clear\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{variant === \"left-double-right\" && (\n\t\t\t\t\t\t\t\t\t\t<InputWithLabel\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Aidbox\"\n\t\t\t\t\t\t\t\t\t\t\tleftSlot={<Mail />}\n\t\t\t\t\t\t\t\t\t\t\trightSlot={\n\t\t\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<CircleX />}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Clear\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ticon={<Copy />}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Copy\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tsuffix=\"milliseconds\"\n\t\t\t\t\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t),\n} satisfies Story;\n"],"names":["Controls","Primary","Title","CircleX","Copy","Mail","Badge","Input","Label","IconButton","InputWithLabel","label","description","invalid","disabled","placeholder","leftSlot","rightSlot","suffix","descriptionColor","div","className","p","meta","title","component","parameters","docs","page","argTypes","type","control","options","hasPrefix","name","hasSuffix","args","Default","tags","render","rest","prefixValue","Demo","variant","map","variantLabel","none","left","right","both","icon","aria-label"],"mappings":";AAAA,SAASA,QAAQ,EAAEC,OAAO,EAAEC,KAAK,QAAQ,+BAA+B;AAExE,SAASC,OAAO,EAAEC,IAAI,EAAEC,IAAI,QAAQ,eAAe;AACnD,SAASC,KAAK,QAAQ,aAA8B;AACpD,SAASC,KAAK,QAAQ,aAA8B;AACpD,SAASC,KAAK,QAAQ,aAA8B;AACpD,SAASC,UAAU,QAAQ,qCAAkC;AAa7D,SAASC,eAAe,EACvBC,QAAQ,OAAO,EACfC,cAAc,mCAAmC,EACjDC,UAAU,KAAK,EACfC,WAAW,KAAK,EAChBC,cAAc,aAAa,EAC3BC,QAAQ,EACRC,SAAS,EACTC,MAAM,EACe;IACrB,MAAMC,mBAAmBN,UACtB,4BACAC,WACC,uBACA;IAEJ,qBACC,KAACM;QAAIC,WAAU;kBACd,cAAA,MAACD;YAAIC,WAAU;;8BACd,KAACb;8BAAOG;;8BACR,KAACJ;oBACAQ,aAAaA;oBACbC,UAAUA;oBACVC,WAAWA;oBACV,GAAIC,UAAU;wBAAEA;oBAAO,CAAC;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wDACXS,QAAQ;;oDAGT6B,YAAY,yBACZ,KAACjC;wDACAK,aAAY;wDACZE,yBACC,KAACR;4DACAyC,oBAAM,KAAC/C;4DACPgD,cAAW;4DACXR,SAAQ;4DACR7B,QAAQ;;wDAGVA,QAAQ;;oDAGT6B,YAAY,wBACZ,KAACjC;wDACAK,aAAY;wDACZC,wBAAU,KAACX;wDACXY,yBACC,KAACR;4DACAyC,oBAAM,KAAC/C;4DACPgD,cAAW;4DACXR,SAAQ;4DACR7B,QAAQ;;wDAGVA,QAAQ;;oDAGT6B,YAAY,qCACZ,KAACjC;wDACAK,aAAY;wDACZC,wBAAU,KAACX;wDACXY,yBACC;;8EACC,KAACR;oEACAyC,oBAAM,KAAC/C;oEACPgD,cAAW;oEACXR,SAAQ;oEACR7B,QAAQ;;8EAET,KAACL;oEACAyC,oBAAM,KAAC9C;oEACP+C,cAAW;oEACXR,SAAQ;oEACR7B,QAAQ;;;;wDAIXI,QAAO;wDACPJ,QAAQ;;;;;;mCApMP,CAAC,MAAM,EAAE6B,SAAS;;;;;;AA+M9B,EAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../../../src/shadcn/components/ui/label.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../../../src/shadcn/components/ui/label.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAwBpC,iBAAS,KAAK,CAAC,EACd,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,2CAQlD;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
3
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
3
4
|
import { cn } from "../../lib/utils.js";
|
|
5
|
+
// Label styles
|
|
6
|
+
const labelStyles = cn(// Layout
|
|
7
|
+
"flex", "items-center", "gap-2", // Typography
|
|
8
|
+
"text-text-primary", "body14", "leading-none", // Interaction
|
|
9
|
+
"select-none", // Group disabled states
|
|
10
|
+
"group-data-[disabled=true]:pointer-events-none", "group-data-[disabled=true]:opacity-50", // Peer disabled states
|
|
11
|
+
"peer-disabled:cursor-not-allowed", "peer-disabled:opacity-50");
|
|
4
12
|
function Label({ className, ...props }) {
|
|
5
13
|
return /*#__PURE__*/ _jsx(LabelPrimitive.Root, {
|
|
6
14
|
"data-slot": "label",
|
|
7
|
-
className: cn(
|
|
15
|
+
className: cn(labelStyles, className),
|
|
8
16
|
...props
|
|
9
17
|
});
|
|
10
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/shadcn/components/ui/label.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../../../../src/shadcn/components/ui/label.tsx"],"sourcesContent":["\"use client\";\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport type * as React from \"react\";\n\nimport { cn } from \"#shadcn/lib/utils\";\n\n// Label styles\nconst labelStyles = cn(\n\t// Layout\n\t\"flex\",\n\t\"items-center\",\n\t\"gap-2\",\n\t// Typography\n\t\"text-text-primary\",\n\t\"body14\",\n\t\"leading-none\",\n\t// Interaction\n\t\"select-none\",\n\t// Group disabled states\n\t\"group-data-[disabled=true]:pointer-events-none\",\n\t\"group-data-[disabled=true]:opacity-50\",\n\t// Peer disabled states\n\t\"peer-disabled:cursor-not-allowed\",\n\t\"peer-disabled:opacity-50\",\n);\n\nfunction Label({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n\treturn (\n\t\t<LabelPrimitive.Root\n\t\t\tdata-slot=\"label\"\n\t\t\tclassName={cn(labelStyles, className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { Label };\n"],"names":["LabelPrimitive","cn","labelStyles","Label","className","props","Root","data-slot"],"mappings":"AAAA;;AACA,YAAYA,oBAAoB,wBAAwB;AAGxD,SAASC,EAAE,QAAQ,qBAAoB;AAEvC,eAAe;AACf,MAAMC,cAAcD,GACnB,SAAS;AACT,QACA,gBACA,SACA,aAAa;AACb,qBACA,UACA,gBACA,cAAc;AACd,eACA,wBAAwB;AACxB,kDACA,yCACA,uBAAuB;AACvB,oCACA;AAGD,SAASE,MAAM,EACdC,SAAS,EACT,GAAGC,OAC+C;IAClD,qBACC,KAACL,eAAeM,IAAI;QACnBC,aAAU;QACVH,WAAWH,GAAGC,aAAaE;QAC1B,GAAGC,KAAK;;AAGZ;AAEA,SAASF,KAAK,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menubar.d.ts","sourceRoot":"","sources":["../../../../../src/shadcn/components/ui/menubar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAE5D,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"menubar.d.ts","sourceRoot":"","sources":["../../../../../src/shadcn/components/ui/menubar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAE5D,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAmLpC,iBAAS,OAAO,CAAC,EAChB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAQpD;AAED,iBAAS,WAAW,CAAC,EACpB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAEpD;AAED,iBAAS,YAAY,CAAC,EACrB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,O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