@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/tag.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport type React from \"react\";\nimport { cn } from \"../shadcn/lib/utils\";\n\nconst baseChipStyles = cn(\n\t\"inline-flex\",\n\t\"items-center\",\n\t\"justify-center\",\n\t\"whitespace-nowrap\",\n\t\"shrink-0\",\n\t\"[&>svg]:pointer-events-none\",\n\t\"[&>svg]:shrink-0\",\n\t\"transition-colors\",\n\t\"duration-200\",\n);\n\nconst iconBaseClasses = cn(\n\t\"flex\",\n\t\"items-center\",\n\t\"justify-center\",\n\t\"shrink-0\",\n\t\"[&>svg]:pointer-events-none\",\n\t\"[&>svg]:shrink-0\",\n);\n\nconst iconSizeClasses = {\n\tbig: cn(\"[&>svg]:size-4\"),\n\tsmall: cn(\"[&>svg]:w-3\", \"[&>svg]:h-3\"),\n};\n\nconst tagVariants = cva(baseChipStyles, {\n\tvariants: {\n\t\tshape: {\n\t\t\tround: \"rounded-full\",\n\t\t\tsquare: \"rounded\",\n\t\t},\n\t\tsize: {\n\t\t\tbig: cn(\"gap-1\", \"typo-body\"),\n\t\t\tsmall: cn(\"gap-1\", \"typo-body-xs\"),\n\t\t},\n\t\ttype: {\n\t\t\tfilled: \"\",\n\t\t\toutlined: \"border bg-transparent\",\n\t\t},\n\t\tvibrance: {\n\t\t\tvivid: \"\",\n\t\t\tsubtle: \"\",\n\t\t},\n\t\tcolor: {\n\t\t\tgreen: \"\",\n\t\t\tgray: \"\",\n\t\t\tred: \"\",\n\t\t\tblue: \"\",\n\t\t\tyellow: \"\",\n\t\t\tcontrast: \"\",\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t// ============ SIZE + TYPE (padding compensation for border) ============\n\t\t{\n\t\t\tsize: \"big\",\n\t\t\ttype: \"filled\",\n\t\t\tclass: \"px-3 py-1\",\n\t\t},\n\t\t{\n\t\t\tsize: \"big\",\n\t\t\ttype: \"outlined\",\n\t\t\tclass: \"px-[11px] py-[3px]\",\n\t\t},\n\t\t{\n\t\t\tsize: \"small\",\n\t\t\ttype: \"filled\",\n\t\t\tclass: \"px-2 h-[22px]\",\n\t\t},\n\t\t{\n\t\t\tsize: \"small\",\n\t\t\ttype: \"outlined\",\n\t\t\tclass: \"px-[7px] h-[22px]\",\n\t\t},\n\n\t\t// ============ FILLED VIVID ============\n\t\t{\n\t\t\ttype: \"filled\",\n\t\t\tcolor: \"red\",\n\t\t\tvibrance: \"vivid\",\n\t\t\tclass: \"bg-bg-error-primary_inverse text-fg-primary_on-brand\",\n\t\t},\n\t\t{\n\t\t\ttype: \"filled\",\n\t\t\tcolor: \"yellow\",\n\t\t\tvibrance: \"vivid\",\n\t\t\tclass: \"bg-bg-warning-primary_inverse text-fg-warning-primary\",\n\t\t},\n\t\t{\n\t\t\ttype: \"filled\",\n\t\t\tcolor: \"green\",\n\t\t\tvibrance: \"vivid\",\n\t\t\tclass: \"bg-fg-success-primary text-fg-primary_on-brand\",\n\t\t},\n\t\t{\n\t\t\ttype: \"filled\",\n\t\t\tcolor: \"blue\",\n\t\t\tvibrance: \"vivid\",\n\t\t\tclass: \"bg-bg-link text-fg-primary_on-brand\",\n\t\t},\n\t\t{\n\t\t\ttype: \"filled\",\n\t\t\tcolor: \"gray\",\n\t\t\tvibrance: \"vivid\",\n\t\t\tclass: \"bg-fg-tertiary text-fg-primary_on-brand\",\n\t\t},\n\t\t{\n\t\t\ttype: \"filled\",\n\t\t\tcolor: \"contrast\",\n\t\t\tvibrance: \"vivid\",\n\t\t\tclass: \"bg-bg-primary_inverse text-fg-primary_on-brand\",\n\t\t},\n\n\t\t// ============ FILLED SUBTLE ============\n\t\t{\n\t\t\ttype: \"filled\",\n\t\t\tcolor: \"red\",\n\t\t\tvibrance: \"subtle\",\n\t\t\tclass: \"bg-bg-error-tertiary text-fg-error-primary\",\n\t\t},\n\t\t{\n\t\t\ttype: \"filled\",\n\t\t\tcolor: \"yellow\",\n\t\t\tvibrance: \"subtle\",\n\t\t\tclass: \"bg-bg-warning-secondary text-fg-warning-primary\",\n\t\t},\n\t\t{\n\t\t\ttype: \"filled\",\n\t\t\tcolor: \"green\",\n\t\t\tvibrance: \"subtle\",\n\t\t\tclass: \"bg-bg-success-secondary text-fg-success-primary\",\n\t\t},\n\t\t{\n\t\t\ttype: \"filled\",\n\t\t\tcolor: \"blue\",\n\t\t\tvibrance: \"subtle\",\n\t\t\tclass: \"bg-bg-info-primary text-fg-info-primary\",\n\t\t},\n\t\t{\n\t\t\ttype: \"filled\",\n\t\t\tcolor: \"gray\",\n\t\t\tvibrance: \"subtle\",\n\t\t\tclass: \"bg-bg-tertiary text-text-secondary\",\n\t\t},\n\t\t{\n\t\t\ttype: \"filled\",\n\t\t\tcolor: \"contrast\",\n\t\t\tvibrance: \"subtle\",\n\t\t\tclass: \"bg-bg-tertiary text-fg-primary\",\n\t\t},\n\n\t\t// ============ OUTLINED (only vivid) ============\n\t\t{\n\t\t\ttype: \"outlined\",\n\t\t\tcolor: \"red\",\n\t\t\tclass: \"border-border-error text-text-error-primary\",\n\t\t},\n\t\t{\n\t\t\ttype: \"outlined\",\n\t\t\tcolor: \"yellow\",\n\t\t\tclass: \"border-fg-warning-primary text-text-warning-primary\",\n\t\t},\n\t\t{\n\t\t\ttype: \"outlined\",\n\t\t\tcolor: \"green\",\n\t\t\tclass: \"border-border-success text-text-success-primary\",\n\t\t},\n\t\t{\n\t\t\ttype: \"outlined\",\n\t\t\tcolor: \"blue\",\n\t\t\tclass: \"border-border-link text-text-link\",\n\t\t},\n\t\t{\n\t\t\ttype: \"outlined\",\n\t\t\tcolor: \"gray\",\n\t\t\tclass: \"border-border-primary_hover text-fg-secondary\",\n\t\t},\n\t\t{\n\t\t\ttype: \"outlined\",\n\t\t\tcolor: \"contrast\",\n\t\t\tclass: \"border-border-primary_hover text-fg-primary\",\n\t\t},\n\t],\n\tdefaultVariants: {\n\t\tshape: \"round\",\n\t\tsize: \"big\",\n\t\ttype: \"filled\",\n\t\tvibrance: \"vivid\",\n\t\tcolor: \"green\",\n\t},\n});\n\nexport type TagProps = {\n\ticon?: React.ReactNode;\n\tshowIcon?: boolean;\n} & Omit<React.ComponentProps<\"div\">, \"color\"> &\n\tVariantProps<typeof tagVariants>;\n\nexport function Tag({\n\tchildren,\n\tshape,\n\tsize = \"big\",\n\ttype = \"filled\",\n\tvibrance = \"vivid\",\n\tcolor,\n\ticon,\n\tshowIcon = true,\n\tclassName,\n\t...props\n}: TagProps) {\n\tconst shouldShowIcon = showIcon && icon;\n\tconst currentSize: \"big\" | \"small\" = size ?? \"big\";\n\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"tag\"\n\t\t\tclassName={cn(\n\t\t\t\ttagVariants({ shape, size, type, vibrance, color }),\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{shouldShowIcon && (\n\t\t\t\t<div className={cn(iconBaseClasses, iconSizeClasses[currentSize])}>\n\t\t\t\t\t{icon}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<span>{children}</span>\n\t\t</div>\n\t);\n}\n"],"names":["cva","cn","baseChipStyles","iconBaseClasses","iconSizeClasses","big","small","tagVariants","variants","shape","round","square","size","type","filled","outlined","vibrance","vivid","subtle","color","green","gray","red","blue","yellow","contrast","compoundVariants","class","defaultVariants","Tag","children","icon","showIcon","className","props","shouldShowIcon","currentSize","div","data-slot","span"],"mappings":"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"}
|
|
@@ -0,0 +1,459 @@
|
|
|
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";
|
|
3
|
+
import { Check, Circle, Star, X, Zap } from "lucide-react";
|
|
4
|
+
import { Tag } from "./tag.js";
|
|
5
|
+
const iconMap = {
|
|
6
|
+
check: /*#__PURE__*/ _jsx(Check, {
|
|
7
|
+
className: "size-4"
|
|
8
|
+
}),
|
|
9
|
+
star: /*#__PURE__*/ _jsx(Star, {
|
|
10
|
+
className: "size-4"
|
|
11
|
+
}),
|
|
12
|
+
zap: /*#__PURE__*/ _jsx(Zap, {
|
|
13
|
+
className: "size-4"
|
|
14
|
+
}),
|
|
15
|
+
circle: /*#__PURE__*/ _jsx(Circle, {
|
|
16
|
+
className: "size-4"
|
|
17
|
+
}),
|
|
18
|
+
x: /*#__PURE__*/ _jsx(X, {
|
|
19
|
+
className: "size-4"
|
|
20
|
+
})
|
|
21
|
+
};
|
|
22
|
+
function TagWrapper({ icon = "check", children, ...props }) {
|
|
23
|
+
return /*#__PURE__*/ _jsx(Tag, {
|
|
24
|
+
icon: iconMap[icon],
|
|
25
|
+
...props,
|
|
26
|
+
children: children
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
const meta = {
|
|
30
|
+
title: "Component/Tag",
|
|
31
|
+
component: TagWrapper,
|
|
32
|
+
parameters: {
|
|
33
|
+
layout: "centered",
|
|
34
|
+
docs: {
|
|
35
|
+
page: ()=>/*#__PURE__*/ _jsxs(_Fragment, {
|
|
36
|
+
children: [
|
|
37
|
+
/*#__PURE__*/ _jsx(Title, {}),
|
|
38
|
+
/*#__PURE__*/ _jsx(Primary, {}),
|
|
39
|
+
/*#__PURE__*/ _jsx(Controls, {})
|
|
40
|
+
]
|
|
41
|
+
})
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
argTypes: {
|
|
45
|
+
shape: {
|
|
46
|
+
control: "select",
|
|
47
|
+
options: [
|
|
48
|
+
"round",
|
|
49
|
+
"square"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
size: {
|
|
53
|
+
control: "select",
|
|
54
|
+
options: [
|
|
55
|
+
"big",
|
|
56
|
+
"small"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
type: {
|
|
60
|
+
control: "select",
|
|
61
|
+
options: [
|
|
62
|
+
"filled",
|
|
63
|
+
"outlined"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
vibrance: {
|
|
67
|
+
control: "select",
|
|
68
|
+
options: [
|
|
69
|
+
"vivid",
|
|
70
|
+
"subtle"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
color: {
|
|
74
|
+
control: "select",
|
|
75
|
+
options: [
|
|
76
|
+
"red",
|
|
77
|
+
"yellow",
|
|
78
|
+
"green",
|
|
79
|
+
"blue",
|
|
80
|
+
"gray",
|
|
81
|
+
"contrast"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
showIcon: {
|
|
85
|
+
control: "boolean"
|
|
86
|
+
},
|
|
87
|
+
icon: {
|
|
88
|
+
control: "select",
|
|
89
|
+
options: [
|
|
90
|
+
"check",
|
|
91
|
+
"star",
|
|
92
|
+
"zap",
|
|
93
|
+
"circle",
|
|
94
|
+
"x"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
children: {
|
|
98
|
+
control: "text"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
args: {
|
|
102
|
+
children: "Tag",
|
|
103
|
+
shape: "round",
|
|
104
|
+
size: "big",
|
|
105
|
+
type: "filled",
|
|
106
|
+
vibrance: "vivid",
|
|
107
|
+
color: "green",
|
|
108
|
+
showIcon: true,
|
|
109
|
+
icon: "check"
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
export default meta;
|
|
113
|
+
export const Default = {
|
|
114
|
+
tags: [
|
|
115
|
+
"!dev"
|
|
116
|
+
],
|
|
117
|
+
render: ({ children, ...args })=>/*#__PURE__*/ _jsx(TagWrapper, {
|
|
118
|
+
...args,
|
|
119
|
+
children: children
|
|
120
|
+
})
|
|
121
|
+
};
|
|
122
|
+
export const Demo = {
|
|
123
|
+
tags: [
|
|
124
|
+
"!autodocs"
|
|
125
|
+
],
|
|
126
|
+
render: ()=>{
|
|
127
|
+
const colors = [
|
|
128
|
+
{
|
|
129
|
+
label: "Red",
|
|
130
|
+
value: "red"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
label: "Yellow",
|
|
134
|
+
value: "yellow"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
label: "Green",
|
|
138
|
+
value: "green"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
label: "Blue",
|
|
142
|
+
value: "blue"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
label: "Gray",
|
|
146
|
+
value: "gray"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
label: "Contrast",
|
|
150
|
+
value: "contrast"
|
|
151
|
+
}
|
|
152
|
+
];
|
|
153
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
154
|
+
className: "space-y-8",
|
|
155
|
+
children: [
|
|
156
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
157
|
+
children: [
|
|
158
|
+
/*#__PURE__*/ _jsx("h2", {
|
|
159
|
+
className: "typo-h4 mb-4",
|
|
160
|
+
children: "Filled"
|
|
161
|
+
}),
|
|
162
|
+
/*#__PURE__*/ _jsx("div", {
|
|
163
|
+
className: "overflow-x-auto",
|
|
164
|
+
children: /*#__PURE__*/ _jsxs("table", {
|
|
165
|
+
className: "border-collapse",
|
|
166
|
+
children: [
|
|
167
|
+
/*#__PURE__*/ _jsxs("thead", {
|
|
168
|
+
children: [
|
|
169
|
+
/*#__PURE__*/ _jsxs("tr", {
|
|
170
|
+
children: [
|
|
171
|
+
/*#__PURE__*/ _jsx("th", {
|
|
172
|
+
className: "p-2 text-left border border-gray-200",
|
|
173
|
+
children: "Color"
|
|
174
|
+
}),
|
|
175
|
+
/*#__PURE__*/ _jsx("th", {
|
|
176
|
+
colSpan: 4,
|
|
177
|
+
className: "p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs",
|
|
178
|
+
children: "Round"
|
|
179
|
+
}),
|
|
180
|
+
/*#__PURE__*/ _jsx("th", {
|
|
181
|
+
colSpan: 4,
|
|
182
|
+
className: "p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs",
|
|
183
|
+
children: "Square"
|
|
184
|
+
})
|
|
185
|
+
]
|
|
186
|
+
}),
|
|
187
|
+
/*#__PURE__*/ _jsxs("tr", {
|
|
188
|
+
children: [
|
|
189
|
+
/*#__PURE__*/ _jsx("th", {
|
|
190
|
+
className: "p-2 border border-gray-200"
|
|
191
|
+
}),
|
|
192
|
+
/*#__PURE__*/ _jsx("th", {
|
|
193
|
+
className: "p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs",
|
|
194
|
+
children: "Big/Vivid"
|
|
195
|
+
}),
|
|
196
|
+
/*#__PURE__*/ _jsx("th", {
|
|
197
|
+
className: "p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs",
|
|
198
|
+
children: "Big/Subtle"
|
|
199
|
+
}),
|
|
200
|
+
/*#__PURE__*/ _jsx("th", {
|
|
201
|
+
className: "p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs",
|
|
202
|
+
children: "Small/Vivid"
|
|
203
|
+
}),
|
|
204
|
+
/*#__PURE__*/ _jsx("th", {
|
|
205
|
+
className: "p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs",
|
|
206
|
+
children: "Small/Subtle"
|
|
207
|
+
}),
|
|
208
|
+
/*#__PURE__*/ _jsx("th", {
|
|
209
|
+
className: "p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs",
|
|
210
|
+
children: "Big/Vivid"
|
|
211
|
+
}),
|
|
212
|
+
/*#__PURE__*/ _jsx("th", {
|
|
213
|
+
className: "p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs",
|
|
214
|
+
children: "Big/Subtle"
|
|
215
|
+
}),
|
|
216
|
+
/*#__PURE__*/ _jsx("th", {
|
|
217
|
+
className: "p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs",
|
|
218
|
+
children: "Small/Vivid"
|
|
219
|
+
}),
|
|
220
|
+
/*#__PURE__*/ _jsx("th", {
|
|
221
|
+
className: "p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs",
|
|
222
|
+
children: "Small/Subtle"
|
|
223
|
+
})
|
|
224
|
+
]
|
|
225
|
+
})
|
|
226
|
+
]
|
|
227
|
+
}),
|
|
228
|
+
/*#__PURE__*/ _jsx("tbody", {
|
|
229
|
+
children: colors.map((color)=>/*#__PURE__*/ _jsxs("tr", {
|
|
230
|
+
children: [
|
|
231
|
+
/*#__PURE__*/ _jsx("td", {
|
|
232
|
+
className: "p-2 typo-label border border-gray-200",
|
|
233
|
+
children: color.label
|
|
234
|
+
}),
|
|
235
|
+
/*#__PURE__*/ _jsx("td", {
|
|
236
|
+
className: "p-2 border border-gray-200 text-center",
|
|
237
|
+
children: /*#__PURE__*/ _jsx(Tag, {
|
|
238
|
+
shape: "round",
|
|
239
|
+
size: "big",
|
|
240
|
+
type: "filled",
|
|
241
|
+
vibrance: "vivid",
|
|
242
|
+
color: color.value,
|
|
243
|
+
icon: /*#__PURE__*/ _jsx(Check, {}),
|
|
244
|
+
children: "Tag"
|
|
245
|
+
})
|
|
246
|
+
}),
|
|
247
|
+
/*#__PURE__*/ _jsx("td", {
|
|
248
|
+
className: "p-2 border border-gray-200 text-center",
|
|
249
|
+
children: /*#__PURE__*/ _jsx(Tag, {
|
|
250
|
+
shape: "round",
|
|
251
|
+
size: "big",
|
|
252
|
+
type: "filled",
|
|
253
|
+
vibrance: "subtle",
|
|
254
|
+
color: color.value,
|
|
255
|
+
icon: /*#__PURE__*/ _jsx(Check, {}),
|
|
256
|
+
children: "Tag"
|
|
257
|
+
})
|
|
258
|
+
}),
|
|
259
|
+
/*#__PURE__*/ _jsx("td", {
|
|
260
|
+
className: "p-2 border border-gray-200 text-center",
|
|
261
|
+
children: /*#__PURE__*/ _jsx(Tag, {
|
|
262
|
+
shape: "round",
|
|
263
|
+
size: "small",
|
|
264
|
+
type: "filled",
|
|
265
|
+
vibrance: "vivid",
|
|
266
|
+
color: color.value,
|
|
267
|
+
icon: /*#__PURE__*/ _jsx(Check, {}),
|
|
268
|
+
children: "Tag"
|
|
269
|
+
})
|
|
270
|
+
}),
|
|
271
|
+
/*#__PURE__*/ _jsx("td", {
|
|
272
|
+
className: "p-2 border border-gray-200 text-center",
|
|
273
|
+
children: /*#__PURE__*/ _jsx(Tag, {
|
|
274
|
+
shape: "round",
|
|
275
|
+
size: "small",
|
|
276
|
+
type: "filled",
|
|
277
|
+
vibrance: "subtle",
|
|
278
|
+
color: color.value,
|
|
279
|
+
icon: /*#__PURE__*/ _jsx(Check, {}),
|
|
280
|
+
children: "Tag"
|
|
281
|
+
})
|
|
282
|
+
}),
|
|
283
|
+
/*#__PURE__*/ _jsx("td", {
|
|
284
|
+
className: "p-2 border border-gray-200 text-center",
|
|
285
|
+
children: /*#__PURE__*/ _jsx(Tag, {
|
|
286
|
+
shape: "square",
|
|
287
|
+
size: "big",
|
|
288
|
+
type: "filled",
|
|
289
|
+
vibrance: "vivid",
|
|
290
|
+
color: color.value,
|
|
291
|
+
icon: /*#__PURE__*/ _jsx(Check, {}),
|
|
292
|
+
children: "Tag"
|
|
293
|
+
})
|
|
294
|
+
}),
|
|
295
|
+
/*#__PURE__*/ _jsx("td", {
|
|
296
|
+
className: "p-2 border border-gray-200 text-center",
|
|
297
|
+
children: /*#__PURE__*/ _jsx(Tag, {
|
|
298
|
+
shape: "square",
|
|
299
|
+
size: "big",
|
|
300
|
+
type: "filled",
|
|
301
|
+
vibrance: "subtle",
|
|
302
|
+
color: color.value,
|
|
303
|
+
icon: /*#__PURE__*/ _jsx(Check, {}),
|
|
304
|
+
children: "Tag"
|
|
305
|
+
})
|
|
306
|
+
}),
|
|
307
|
+
/*#__PURE__*/ _jsx("td", {
|
|
308
|
+
className: "p-2 border border-gray-200 text-center",
|
|
309
|
+
children: /*#__PURE__*/ _jsx(Tag, {
|
|
310
|
+
shape: "square",
|
|
311
|
+
size: "small",
|
|
312
|
+
type: "filled",
|
|
313
|
+
vibrance: "vivid",
|
|
314
|
+
color: color.value,
|
|
315
|
+
icon: /*#__PURE__*/ _jsx(Check, {}),
|
|
316
|
+
children: "Tag"
|
|
317
|
+
})
|
|
318
|
+
}),
|
|
319
|
+
/*#__PURE__*/ _jsx("td", {
|
|
320
|
+
className: "p-2 border border-gray-200 text-center",
|
|
321
|
+
children: /*#__PURE__*/ _jsx(Tag, {
|
|
322
|
+
shape: "square",
|
|
323
|
+
size: "small",
|
|
324
|
+
type: "filled",
|
|
325
|
+
vibrance: "subtle",
|
|
326
|
+
color: color.value,
|
|
327
|
+
icon: /*#__PURE__*/ _jsx(Check, {}),
|
|
328
|
+
children: "Tag"
|
|
329
|
+
})
|
|
330
|
+
})
|
|
331
|
+
]
|
|
332
|
+
}, color.value))
|
|
333
|
+
})
|
|
334
|
+
]
|
|
335
|
+
})
|
|
336
|
+
})
|
|
337
|
+
]
|
|
338
|
+
}),
|
|
339
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
340
|
+
children: [
|
|
341
|
+
/*#__PURE__*/ _jsx("h2", {
|
|
342
|
+
className: "typo-h4 mb-4",
|
|
343
|
+
children: "Outlined"
|
|
344
|
+
}),
|
|
345
|
+
/*#__PURE__*/ _jsx("div", {
|
|
346
|
+
className: "overflow-x-auto",
|
|
347
|
+
children: /*#__PURE__*/ _jsxs("table", {
|
|
348
|
+
className: "border-collapse",
|
|
349
|
+
children: [
|
|
350
|
+
/*#__PURE__*/ _jsxs("thead", {
|
|
351
|
+
children: [
|
|
352
|
+
/*#__PURE__*/ _jsxs("tr", {
|
|
353
|
+
children: [
|
|
354
|
+
/*#__PURE__*/ _jsx("th", {
|
|
355
|
+
className: "p-2 text-left border border-gray-200",
|
|
356
|
+
children: "Color"
|
|
357
|
+
}),
|
|
358
|
+
/*#__PURE__*/ _jsx("th", {
|
|
359
|
+
colSpan: 2,
|
|
360
|
+
className: "p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs",
|
|
361
|
+
children: "Round"
|
|
362
|
+
}),
|
|
363
|
+
/*#__PURE__*/ _jsx("th", {
|
|
364
|
+
colSpan: 2,
|
|
365
|
+
className: "p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs",
|
|
366
|
+
children: "Square"
|
|
367
|
+
})
|
|
368
|
+
]
|
|
369
|
+
}),
|
|
370
|
+
/*#__PURE__*/ _jsxs("tr", {
|
|
371
|
+
children: [
|
|
372
|
+
/*#__PURE__*/ _jsx("th", {
|
|
373
|
+
className: "p-2 border border-gray-200"
|
|
374
|
+
}),
|
|
375
|
+
/*#__PURE__*/ _jsx("th", {
|
|
376
|
+
className: "p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs",
|
|
377
|
+
children: "Big"
|
|
378
|
+
}),
|
|
379
|
+
/*#__PURE__*/ _jsx("th", {
|
|
380
|
+
className: "p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs",
|
|
381
|
+
children: "Small"
|
|
382
|
+
}),
|
|
383
|
+
/*#__PURE__*/ _jsx("th", {
|
|
384
|
+
className: "p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs",
|
|
385
|
+
children: "Big"
|
|
386
|
+
}),
|
|
387
|
+
/*#__PURE__*/ _jsx("th", {
|
|
388
|
+
className: "p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs",
|
|
389
|
+
children: "Small"
|
|
390
|
+
})
|
|
391
|
+
]
|
|
392
|
+
})
|
|
393
|
+
]
|
|
394
|
+
}),
|
|
395
|
+
/*#__PURE__*/ _jsx("tbody", {
|
|
396
|
+
children: colors.map((color)=>/*#__PURE__*/ _jsxs("tr", {
|
|
397
|
+
children: [
|
|
398
|
+
/*#__PURE__*/ _jsx("td", {
|
|
399
|
+
className: "p-2 typo-label border border-gray-200",
|
|
400
|
+
children: color.label
|
|
401
|
+
}),
|
|
402
|
+
/*#__PURE__*/ _jsx("td", {
|
|
403
|
+
className: "p-2 border border-gray-200 text-center",
|
|
404
|
+
children: /*#__PURE__*/ _jsx(Tag, {
|
|
405
|
+
shape: "round",
|
|
406
|
+
size: "big",
|
|
407
|
+
type: "outlined",
|
|
408
|
+
color: color.value,
|
|
409
|
+
icon: /*#__PURE__*/ _jsx(Check, {}),
|
|
410
|
+
children: "Tag"
|
|
411
|
+
})
|
|
412
|
+
}),
|
|
413
|
+
/*#__PURE__*/ _jsx("td", {
|
|
414
|
+
className: "p-2 border border-gray-200 text-center",
|
|
415
|
+
children: /*#__PURE__*/ _jsx(Tag, {
|
|
416
|
+
shape: "round",
|
|
417
|
+
size: "small",
|
|
418
|
+
type: "outlined",
|
|
419
|
+
color: color.value,
|
|
420
|
+
icon: /*#__PURE__*/ _jsx(Check, {}),
|
|
421
|
+
children: "Tag"
|
|
422
|
+
})
|
|
423
|
+
}),
|
|
424
|
+
/*#__PURE__*/ _jsx("td", {
|
|
425
|
+
className: "p-2 border border-gray-200 text-center",
|
|
426
|
+
children: /*#__PURE__*/ _jsx(Tag, {
|
|
427
|
+
shape: "square",
|
|
428
|
+
size: "big",
|
|
429
|
+
type: "outlined",
|
|
430
|
+
color: color.value,
|
|
431
|
+
icon: /*#__PURE__*/ _jsx(Check, {}),
|
|
432
|
+
children: "Tag"
|
|
433
|
+
})
|
|
434
|
+
}),
|
|
435
|
+
/*#__PURE__*/ _jsx("td", {
|
|
436
|
+
className: "p-2 border border-gray-200 text-center",
|
|
437
|
+
children: /*#__PURE__*/ _jsx(Tag, {
|
|
438
|
+
shape: "square",
|
|
439
|
+
size: "small",
|
|
440
|
+
type: "outlined",
|
|
441
|
+
color: color.value,
|
|
442
|
+
icon: /*#__PURE__*/ _jsx(Check, {}),
|
|
443
|
+
children: "Tag"
|
|
444
|
+
})
|
|
445
|
+
})
|
|
446
|
+
]
|
|
447
|
+
}, color.value))
|
|
448
|
+
})
|
|
449
|
+
]
|
|
450
|
+
})
|
|
451
|
+
})
|
|
452
|
+
]
|
|
453
|
+
})
|
|
454
|
+
]
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
//# sourceMappingURL=tag.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/tag.stories.tsx"],"sourcesContent":["import { Controls, Primary, Title } from \"@storybook/addon-docs/blocks\";\nimport type { Meta, StoryObj } from \"@storybook/react-vite\";\nimport { Check, Circle, Star, X, Zap } from \"lucide-react\";\nimport { Tag, type TagProps } from \"./tag\";\n\nconst iconMap = {\n\tcheck: <Check className=\"size-4\" />,\n\tstar: <Star className=\"size-4\" />,\n\tzap: <Zap className=\"size-4\" />,\n\tcircle: <Circle className=\"size-4\" />,\n\tx: <X className=\"size-4\" />,\n} as const;\n\ntype IconName = keyof typeof iconMap;\n\ninterface TagWrapperProps extends Omit<TagProps, \"icon\"> {\n\ticon?: IconName;\n}\n\nfunction TagWrapper({ icon = \"check\", children, ...props }: TagWrapperProps) {\n\treturn (\n\t\t<Tag icon={iconMap[icon]} {...props}>\n\t\t\t{children}\n\t\t</Tag>\n\t);\n}\n\nconst meta = {\n\ttitle: \"Component/Tag\",\n\tcomponent: TagWrapper,\n\tparameters: {\n\t\tlayout: \"centered\",\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\tshape: {\n\t\t\tcontrol: \"select\",\n\t\t\toptions: [\"round\", \"square\"],\n\t\t},\n\t\tsize: {\n\t\t\tcontrol: \"select\",\n\t\t\toptions: [\"big\", \"small\"],\n\t\t},\n\t\ttype: {\n\t\t\tcontrol: \"select\",\n\t\t\toptions: [\"filled\", \"outlined\"],\n\t\t},\n\t\tvibrance: {\n\t\t\tcontrol: \"select\",\n\t\t\toptions: [\"vivid\", \"subtle\"],\n\t\t},\n\t\tcolor: {\n\t\t\tcontrol: \"select\",\n\t\t\toptions: [\"red\", \"yellow\", \"green\", \"blue\", \"gray\", \"contrast\"],\n\t\t},\n\t\tshowIcon: {\n\t\t\tcontrol: \"boolean\",\n\t\t},\n\t\ticon: {\n\t\t\tcontrol: \"select\",\n\t\t\toptions: [\"check\", \"star\", \"zap\", \"circle\", \"x\"],\n\t\t},\n\t\tchildren: {\n\t\t\tcontrol: \"text\",\n\t\t},\n\t},\n\targs: {\n\t\tchildren: \"Tag\",\n\t\tshape: \"round\",\n\t\tsize: \"big\",\n\t\ttype: \"filled\",\n\t\tvibrance: \"vivid\",\n\t\tcolor: \"green\",\n\t\tshowIcon: true,\n\t\ticon: \"check\",\n\t},\n} satisfies Meta<typeof TagWrapper>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Default = {\n\ttags: [\"!dev\"],\n\trender: ({ children, ...args }) => (\n\t\t<TagWrapper {...args}>{children}</TagWrapper>\n\t),\n} satisfies Story;\n\nexport const Demo = {\n\ttags: [\"!autodocs\"],\n\trender: () => {\n\t\tconst colors = [\n\t\t\t{ label: \"Red\", value: \"red\" },\n\t\t\t{ label: \"Yellow\", value: \"yellow\" },\n\t\t\t{ label: \"Green\", value: \"green\" },\n\t\t\t{ label: \"Blue\", value: \"blue\" },\n\t\t\t{ label: \"Gray\", value: \"gray\" },\n\t\t\t{ label: \"Contrast\", value: \"contrast\" },\n\t\t] as const;\n\n\t\treturn (\n\t\t\t<div className=\"space-y-8\">\n\t\t\t\t{/* Filled Section */}\n\t\t\t\t<div>\n\t\t\t\t\t<h2 className=\"typo-h4 mb-4\">Filled</h2>\n\t\t\t\t\t<div className=\"overflow-x-auto\">\n\t\t\t\t\t\t<table className=\"border-collapse\">\n\t\t\t\t\t\t\t<thead>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<th className=\"p-2 text-left border border-gray-200\">\n\t\t\t\t\t\t\t\t\t\tColor\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t\t<th\n\t\t\t\t\t\t\t\t\t\tcolSpan={4}\n\t\t\t\t\t\t\t\t\t\tclassName=\"p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\tRound\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t\t<th\n\t\t\t\t\t\t\t\t\t\tcolSpan={4}\n\t\t\t\t\t\t\t\t\t\tclassName=\"p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\tSquare\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<th className=\"p-2 border border-gray-200\" />\n\t\t\t\t\t\t\t\t\t<th className=\"p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs\">\n\t\t\t\t\t\t\t\t\t\tBig/Vivid\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t\t<th className=\"p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs\">\n\t\t\t\t\t\t\t\t\t\tBig/Subtle\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t\t<th className=\"p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs\">\n\t\t\t\t\t\t\t\t\t\tSmall/Vivid\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t\t<th className=\"p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs\">\n\t\t\t\t\t\t\t\t\t\tSmall/Subtle\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t\t<th className=\"p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs\">\n\t\t\t\t\t\t\t\t\t\tBig/Vivid\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t\t<th className=\"p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs\">\n\t\t\t\t\t\t\t\t\t\tBig/Subtle\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t\t<th className=\"p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs\">\n\t\t\t\t\t\t\t\t\t\tSmall/Vivid\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t\t<th className=\"p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs\">\n\t\t\t\t\t\t\t\t\t\tSmall/Subtle\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t{colors.map((color) => (\n\t\t\t\t\t\t\t\t\t<tr key={color.value}>\n\t\t\t\t\t\t\t\t\t\t<td className=\"p-2 typo-label border border-gray-200\">\n\t\t\t\t\t\t\t\t\t\t\t{color.label}\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t{/* Round */}\n\t\t\t\t\t\t\t\t\t\t<td className=\"p-2 border border-gray-200 text-center\">\n\t\t\t\t\t\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\t\t\t\t\t\tshape=\"round\"\n\t\t\t\t\t\t\t\t\t\t\t\tsize=\"big\"\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"filled\"\n\t\t\t\t\t\t\t\t\t\t\t\tvibrance=\"vivid\"\n\t\t\t\t\t\t\t\t\t\t\t\tcolor={color.value}\n\t\t\t\t\t\t\t\t\t\t\t\ticon={<Check />}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\tTag\n\t\t\t\t\t\t\t\t\t\t\t</Tag>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td className=\"p-2 border border-gray-200 text-center\">\n\t\t\t\t\t\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\t\t\t\t\t\tshape=\"round\"\n\t\t\t\t\t\t\t\t\t\t\t\tsize=\"big\"\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"filled\"\n\t\t\t\t\t\t\t\t\t\t\t\tvibrance=\"subtle\"\n\t\t\t\t\t\t\t\t\t\t\t\tcolor={color.value}\n\t\t\t\t\t\t\t\t\t\t\t\ticon={<Check />}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\tTag\n\t\t\t\t\t\t\t\t\t\t\t</Tag>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td className=\"p-2 border border-gray-200 text-center\">\n\t\t\t\t\t\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\t\t\t\t\t\tshape=\"round\"\n\t\t\t\t\t\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"filled\"\n\t\t\t\t\t\t\t\t\t\t\t\tvibrance=\"vivid\"\n\t\t\t\t\t\t\t\t\t\t\t\tcolor={color.value}\n\t\t\t\t\t\t\t\t\t\t\t\ticon={<Check />}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\tTag\n\t\t\t\t\t\t\t\t\t\t\t</Tag>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td className=\"p-2 border border-gray-200 text-center\">\n\t\t\t\t\t\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\t\t\t\t\t\tshape=\"round\"\n\t\t\t\t\t\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"filled\"\n\t\t\t\t\t\t\t\t\t\t\t\tvibrance=\"subtle\"\n\t\t\t\t\t\t\t\t\t\t\t\tcolor={color.value}\n\t\t\t\t\t\t\t\t\t\t\t\ticon={<Check />}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\tTag\n\t\t\t\t\t\t\t\t\t\t\t</Tag>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t{/* Square */}\n\t\t\t\t\t\t\t\t\t\t<td className=\"p-2 border border-gray-200 text-center\">\n\t\t\t\t\t\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\t\t\t\t\t\tshape=\"square\"\n\t\t\t\t\t\t\t\t\t\t\t\tsize=\"big\"\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"filled\"\n\t\t\t\t\t\t\t\t\t\t\t\tvibrance=\"vivid\"\n\t\t\t\t\t\t\t\t\t\t\t\tcolor={color.value}\n\t\t\t\t\t\t\t\t\t\t\t\ticon={<Check />}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\tTag\n\t\t\t\t\t\t\t\t\t\t\t</Tag>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td className=\"p-2 border border-gray-200 text-center\">\n\t\t\t\t\t\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\t\t\t\t\t\tshape=\"square\"\n\t\t\t\t\t\t\t\t\t\t\t\tsize=\"big\"\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"filled\"\n\t\t\t\t\t\t\t\t\t\t\t\tvibrance=\"subtle\"\n\t\t\t\t\t\t\t\t\t\t\t\tcolor={color.value}\n\t\t\t\t\t\t\t\t\t\t\t\ticon={<Check />}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\tTag\n\t\t\t\t\t\t\t\t\t\t\t</Tag>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td className=\"p-2 border border-gray-200 text-center\">\n\t\t\t\t\t\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\t\t\t\t\t\tshape=\"square\"\n\t\t\t\t\t\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"filled\"\n\t\t\t\t\t\t\t\t\t\t\t\tvibrance=\"vivid\"\n\t\t\t\t\t\t\t\t\t\t\t\tcolor={color.value}\n\t\t\t\t\t\t\t\t\t\t\t\ticon={<Check />}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\tTag\n\t\t\t\t\t\t\t\t\t\t\t</Tag>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td className=\"p-2 border border-gray-200 text-center\">\n\t\t\t\t\t\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\t\t\t\t\t\tshape=\"square\"\n\t\t\t\t\t\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"filled\"\n\t\t\t\t\t\t\t\t\t\t\t\tvibrance=\"subtle\"\n\t\t\t\t\t\t\t\t\t\t\t\tcolor={color.value}\n\t\t\t\t\t\t\t\t\t\t\t\ticon={<Check />}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\tTag\n\t\t\t\t\t\t\t\t\t\t\t</Tag>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t{/* Outlined Section */}\n\t\t\t\t<div>\n\t\t\t\t\t<h2 className=\"typo-h4 mb-4\">Outlined</h2>\n\t\t\t\t\t<div className=\"overflow-x-auto\">\n\t\t\t\t\t\t<table className=\"border-collapse\">\n\t\t\t\t\t\t\t<thead>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<th className=\"p-2 text-left border border-gray-200\">\n\t\t\t\t\t\t\t\t\t\tColor\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t\t<th\n\t\t\t\t\t\t\t\t\t\tcolSpan={2}\n\t\t\t\t\t\t\t\t\t\tclassName=\"p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\tRound\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t\t<th\n\t\t\t\t\t\t\t\t\t\tcolSpan={2}\n\t\t\t\t\t\t\t\t\t\tclassName=\"p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\tSquare\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<th className=\"p-2 border border-gray-200\" />\n\t\t\t\t\t\t\t\t\t<th className=\"p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs\">\n\t\t\t\t\t\t\t\t\t\tBig\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t\t<th className=\"p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs\">\n\t\t\t\t\t\t\t\t\t\tSmall\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t\t<th className=\"p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs\">\n\t\t\t\t\t\t\t\t\t\tBig\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t\t<th className=\"p-2 text-center border border-gray-200 bg-gray-50 typo-label-xs\">\n\t\t\t\t\t\t\t\t\t\tSmall\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t{colors.map((color) => (\n\t\t\t\t\t\t\t\t\t<tr key={color.value}>\n\t\t\t\t\t\t\t\t\t\t<td className=\"p-2 typo-label border border-gray-200\">\n\t\t\t\t\t\t\t\t\t\t\t{color.label}\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td className=\"p-2 border border-gray-200 text-center\">\n\t\t\t\t\t\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\t\t\t\t\t\tshape=\"round\"\n\t\t\t\t\t\t\t\t\t\t\t\tsize=\"big\"\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"outlined\"\n\t\t\t\t\t\t\t\t\t\t\t\tcolor={color.value}\n\t\t\t\t\t\t\t\t\t\t\t\ticon={<Check />}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\tTag\n\t\t\t\t\t\t\t\t\t\t\t</Tag>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td className=\"p-2 border border-gray-200 text-center\">\n\t\t\t\t\t\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\t\t\t\t\t\tshape=\"round\"\n\t\t\t\t\t\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"outlined\"\n\t\t\t\t\t\t\t\t\t\t\t\tcolor={color.value}\n\t\t\t\t\t\t\t\t\t\t\t\ticon={<Check />}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\tTag\n\t\t\t\t\t\t\t\t\t\t\t</Tag>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td className=\"p-2 border border-gray-200 text-center\">\n\t\t\t\t\t\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\t\t\t\t\t\tshape=\"square\"\n\t\t\t\t\t\t\t\t\t\t\t\tsize=\"big\"\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"outlined\"\n\t\t\t\t\t\t\t\t\t\t\t\tcolor={color.value}\n\t\t\t\t\t\t\t\t\t\t\t\ticon={<Check />}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\tTag\n\t\t\t\t\t\t\t\t\t\t\t</Tag>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td className=\"p-2 border border-gray-200 text-center\">\n\t\t\t\t\t\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\t\t\t\t\t\tshape=\"square\"\n\t\t\t\t\t\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"outlined\"\n\t\t\t\t\t\t\t\t\t\t\t\tcolor={color.value}\n\t\t\t\t\t\t\t\t\t\t\t\ticon={<Check />}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\tTag\n\t\t\t\t\t\t\t\t\t\t\t</Tag>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t},\n} satisfies Story;\n"],"names":["Controls","Primary","Title","Check","Circle","Star","X","Zap","Tag","iconMap","check","className","star","zap","circle","x","TagWrapper","icon","children","props","meta","title","component","parameters","layout","docs","page","argTypes","shape","control","options","size","type","vibrance","color","showIcon","args","Default","tags","render","Demo","colors","label","value","div","h2","table","thead","tr","th","colSpan","tbody","map","td"],"mappings":"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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
declare const tileSizeVariants: (props?: ({
|
|
4
|
+
size?: "auto" | "free" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export type TileProps = {
|
|
7
|
+
label?: string;
|
|
8
|
+
value?: string | number;
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
showIcon?: boolean;
|
|
11
|
+
width?: string | number;
|
|
12
|
+
} & Omit<React.ComponentProps<"div">, "size"> & VariantProps<typeof tileSizeVariants>;
|
|
13
|
+
export declare function Tile({ children, label, value, icon, showIcon, size, width, className, style, ...props }: TileProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=tile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tile.d.ts","sourceRoot":"","sources":["../../../src/components/tile.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,QAAA,MAAM,gBAAgB;;8EAUpB,CAAC;AAwBH,MAAM,MAAM,SAAS,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,GAC5C,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEvC,wBAAgB,IAAI,CAAC,EACpB,QAAQ,EACR,KAAK,EACL,KAAK,EACL,IAAI,EACJ,QAAgB,EAChB,IAAa,EACb,KAAK,EACL,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACR,EAAE,SAAS,2CAgCX"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { cn } from "../shadcn/lib/utils.js";
|
|
4
|
+
const baseTileStyles = cn("flex", "flex-col", "items-start", "gap-2", "p-6", "bg-bg-primary", "rounded-lg", "border", "border-border-default", "transition-colors", "duration-200");
|
|
5
|
+
const tileSizeVariants = cva("", {
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
auto: "w-auto",
|
|
9
|
+
free: "w-full"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
defaultVariants: {
|
|
13
|
+
size: "auto"
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
const contentStyles = cn("flex", "flex-col", "items-start", "w-full");
|
|
17
|
+
const labelStyles = cn("typo-body", "text-text-secondary");
|
|
18
|
+
const valueStyles = cn("typo-page-header", "text-text-primary");
|
|
19
|
+
const iconStyles = cn("flex", "items-center", "justify-center", "size-12", "shrink-0", "rounded-full", "bg-bg-tertiary", "text-fg-secondary", "[&>svg]:size-6", "[&>svg]:pointer-events-none", "[&>svg]:shrink-0");
|
|
20
|
+
const iconContainerStyles = cn("flex", "items-center", "gap-3", "w-full");
|
|
21
|
+
export function Tile({ children, label, value, icon, showIcon = false, size = "auto", width, className, style, ...props }) {
|
|
22
|
+
const shouldShowIcon = showIcon && icon;
|
|
23
|
+
const tileStyle = width ? {
|
|
24
|
+
...style,
|
|
25
|
+
width
|
|
26
|
+
} : style;
|
|
27
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
28
|
+
"data-slot": "tile",
|
|
29
|
+
className: cn(baseTileStyles, tileSizeVariants({
|
|
30
|
+
size
|
|
31
|
+
}), className),
|
|
32
|
+
style: tileStyle,
|
|
33
|
+
...props,
|
|
34
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
35
|
+
className: contentStyles,
|
|
36
|
+
children: [
|
|
37
|
+
shouldShowIcon ? /*#__PURE__*/ _jsxs("div", {
|
|
38
|
+
className: iconContainerStyles,
|
|
39
|
+
children: [
|
|
40
|
+
/*#__PURE__*/ _jsx("div", {
|
|
41
|
+
className: iconStyles,
|
|
42
|
+
children: icon
|
|
43
|
+
}),
|
|
44
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
45
|
+
className: "flex flex-col items-start w-full",
|
|
46
|
+
children: [
|
|
47
|
+
label && /*#__PURE__*/ _jsx("div", {
|
|
48
|
+
className: labelStyles,
|
|
49
|
+
children: label
|
|
50
|
+
}),
|
|
51
|
+
value !== undefined && /*#__PURE__*/ _jsx("div", {
|
|
52
|
+
className: valueStyles,
|
|
53
|
+
children: value
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
})
|
|
57
|
+
]
|
|
58
|
+
}) : /*#__PURE__*/ _jsxs(_Fragment, {
|
|
59
|
+
children: [
|
|
60
|
+
label && /*#__PURE__*/ _jsx("div", {
|
|
61
|
+
className: labelStyles,
|
|
62
|
+
children: label
|
|
63
|
+
}),
|
|
64
|
+
value !== undefined && /*#__PURE__*/ _jsx("div", {
|
|
65
|
+
className: valueStyles,
|
|
66
|
+
children: value
|
|
67
|
+
})
|
|
68
|
+
]
|
|
69
|
+
}),
|
|
70
|
+
children
|
|
71
|
+
]
|
|
72
|
+
})
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
//# sourceMappingURL=tile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/tile.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport type React from \"react\";\nimport { cn } from \"../shadcn/lib/utils\";\n\nconst baseTileStyles = cn(\n\t\"flex\",\n\t\"flex-col\",\n\t\"items-start\",\n\t\"gap-2\",\n\t\"p-6\",\n\t\"bg-bg-primary\",\n\t\"rounded-lg\",\n\t\"border\",\n\t\"border-border-default\",\n\t\"transition-colors\",\n\t\"duration-200\",\n);\n\nconst tileSizeVariants = cva(\"\", {\n\tvariants: {\n\t\tsize: {\n\t\t\tauto: \"w-auto\",\n\t\t\tfree: \"w-full\",\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tsize: \"auto\",\n\t},\n});\n\nconst contentStyles = cn(\"flex\", \"flex-col\", \"items-start\", \"w-full\");\n\nconst labelStyles = cn(\"typo-body\", \"text-text-secondary\");\n\nconst valueStyles = cn(\"typo-page-header\", \"text-text-primary\");\n\nconst iconStyles = cn(\n\t\"flex\",\n\t\"items-center\",\n\t\"justify-center\",\n\t\"size-12\",\n\t\"shrink-0\",\n\t\"rounded-full\",\n\t\"bg-bg-tertiary\",\n\t\"text-fg-secondary\",\n\t\"[&>svg]:size-6\",\n\t\"[&>svg]:pointer-events-none\",\n\t\"[&>svg]:shrink-0\",\n);\n\nconst iconContainerStyles = cn(\"flex\", \"items-center\", \"gap-3\", \"w-full\");\n\nexport type TileProps = {\n\tlabel?: string;\n\tvalue?: string | number;\n\ticon?: React.ReactNode;\n\tshowIcon?: boolean;\n\twidth?: string | number;\n} & Omit<React.ComponentProps<\"div\">, \"size\"> &\n\tVariantProps<typeof tileSizeVariants>;\n\nexport function Tile({\n\tchildren,\n\tlabel,\n\tvalue,\n\ticon,\n\tshowIcon = false,\n\tsize = \"auto\",\n\twidth,\n\tclassName,\n\tstyle,\n\t...props\n}: TileProps) {\n\tconst shouldShowIcon = showIcon && icon;\n\tconst tileStyle = width ? { ...style, width } : style;\n\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"tile\"\n\t\t\tclassName={cn(baseTileStyles, tileSizeVariants({ size }), className)}\n\t\t\tstyle={tileStyle}\n\t\t\t{...props}\n\t\t>\n\t\t\t<div className={contentStyles}>\n\t\t\t\t{shouldShowIcon ? (\n\t\t\t\t\t<div className={iconContainerStyles}>\n\t\t\t\t\t\t<div className={iconStyles}>{icon}</div>\n\t\t\t\t\t\t<div className=\"flex flex-col items-start w-full\">\n\t\t\t\t\t\t\t{label && <div className={labelStyles}>{label}</div>}\n\t\t\t\t\t\t\t{value !== undefined && (\n\t\t\t\t\t\t\t\t<div className={valueStyles}>{value}</div>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t) : (\n\t\t\t\t\t<>\n\t\t\t\t\t\t{label && <div className={labelStyles}>{label}</div>}\n\t\t\t\t\t\t{value !== undefined && <div className={valueStyles}>{value}</div>}\n\t\t\t\t\t</>\n\t\t\t\t)}\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n"],"names":["cva","cn","baseTileStyles","tileSizeVariants","variants","size","auto","free","defaultVariants","contentStyles","labelStyles","valueStyles","iconStyles","iconContainerStyles","Tile","children","label","value","icon","showIcon","width","className","style","props","shouldShowIcon","tileStyle","div","data-slot","undefined"],"mappings":";AAAA,SAASA,GAAG,QAA2B,2BAA2B;AAElE,SAASC,EAAE,QAAQ,yBAAsB;AAEzC,MAAMC,iBAAiBD,GACtB,QACA,YACA,eACA,SACA,OACA,iBACA,cACA,UACA,yBACA,qBACA;AAGD,MAAME,mBAAmBH,IAAI,IAAI;IAChCI,UAAU;QACTC,MAAM;YACLC,MAAM;YACNC,MAAM;QACP;IACD;IACAC,iBAAiB;QAChBH,MAAM;IACP;AACD;AAEA,MAAMI,gBAAgBR,GAAG,QAAQ,YAAY,eAAe;AAE5D,MAAMS,cAAcT,GAAG,aAAa;AAEpC,MAAMU,cAAcV,GAAG,oBAAoB;AAE3C,MAAMW,aAAaX,GAClB,QACA,gBACA,kBACA,WACA,YACA,gBACA,kBACA,qBACA,kBACA,+BACA;AAGD,MAAMY,sBAAsBZ,GAAG,QAAQ,gBAAgB,SAAS;AAWhE,OAAO,SAASa,KAAK,EACpBC,QAAQ,EACRC,KAAK,EACLC,KAAK,EACLC,IAAI,EACJC,WAAW,KAAK,EAChBd,OAAO,MAAM,EACbe,KAAK,EACLC,SAAS,EACTC,KAAK,EACL,GAAGC,OACQ;IACX,MAAMC,iBAAiBL,YAAYD;IACnC,MAAMO,YAAYL,QAAQ;QAAE,GAAGE,KAAK;QAAEF;IAAM,IAAIE;IAEhD,qBACC,KAACI;QACAC,aAAU;QACVN,WAAWpB,GAAGC,gBAAgBC,iBAAiB;YAAEE;QAAK,IAAIgB;QAC1DC,OAAOG;QACN,GAAGF,KAAK;kBAET,cAAA,MAACG;YAAIL,WAAWZ;;gBACde,+BACA,MAACE;oBAAIL,WAAWR;;sCACf,KAACa;4BAAIL,WAAWT;sCAAaM;;sCAC7B,MAACQ;4BAAIL,WAAU;;gCACbL,uBAAS,KAACU;oCAAIL,WAAWX;8CAAcM;;gCACvCC,UAAUW,2BACV,KAACF;oCAAIL,WAAWV;8CAAcM;;;;;mCAKjC;;wBACED,uBAAS,KAACU;4BAAIL,WAAWX;sCAAcM;;wBACvCC,UAAUW,2BAAa,KAACF;4BAAIL,WAAWV;sCAAcM;;;;gBAGvDF;;;;AAIL"}
|