@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,257 @@
|
|
|
1
|
+
import type { ItemInstance } from "@headless-tree/core";
|
|
2
|
+
import { ChevronDownIcon } from "lucide-react";
|
|
3
|
+
import { Slot } from "radix-ui";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
|
|
6
|
+
import { cn } from "#shadcn/lib/utils";
|
|
7
|
+
|
|
8
|
+
type WithMeta = {
|
|
9
|
+
meta?: {
|
|
10
|
+
lastNode?: boolean;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
// biome-ignore lint/suspicious/noExplicitAny: FIXME Origin UI as-is
|
|
15
|
+
interface TreeContextValue<T = any> {
|
|
16
|
+
indent: number;
|
|
17
|
+
currentItem?: ItemInstance<T>;
|
|
18
|
+
// biome-ignore lint/suspicious/noExplicitAny: FIXME Origin UI as-is
|
|
19
|
+
tree?: any;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const TreeContext = React.createContext<TreeContextValue>({
|
|
23
|
+
indent: 20,
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
// biome-ignore lint/suspicious/noExplicitAny: FIXME Origin UI as-is
|
|
27
|
+
function useTreeContext<T = any>() {
|
|
28
|
+
return React.useContext(TreeContext) as TreeContextValue<T>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface TreeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
32
|
+
indent?: number;
|
|
33
|
+
// biome-ignore lint/suspicious/noExplicitAny: FIXME Origin UI as-is
|
|
34
|
+
tree?: any;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function Tree({ indent = 20, tree, className, ...props }: TreeProps) {
|
|
38
|
+
const containerProps =
|
|
39
|
+
tree && typeof tree.getContainerProps === "function"
|
|
40
|
+
? tree.getContainerProps()
|
|
41
|
+
: {};
|
|
42
|
+
const mergedProps = { ...props, ...containerProps };
|
|
43
|
+
|
|
44
|
+
// Extract style from mergedProps to merge with our custom styles
|
|
45
|
+
const { style: propStyle, ...otherProps } = mergedProps;
|
|
46
|
+
|
|
47
|
+
// Merge styles
|
|
48
|
+
const mergedStyle = {
|
|
49
|
+
...propStyle,
|
|
50
|
+
"--tree-indent": `${indent}px`,
|
|
51
|
+
"--border": `var(--color-border-separator)`,
|
|
52
|
+
} as React.CSSProperties;
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<TreeContext.Provider value={{ indent, tree }}>
|
|
56
|
+
<div
|
|
57
|
+
data-slot="tree"
|
|
58
|
+
style={mergedStyle}
|
|
59
|
+
className={cn("flex flex-col", className)}
|
|
60
|
+
{...otherProps}
|
|
61
|
+
/>
|
|
62
|
+
</TreeContext.Provider>
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// biome-ignore lint/suspicious/noExplicitAny: FIXME Origin UI as-is
|
|
67
|
+
interface TreeItemProps<T = any>
|
|
68
|
+
extends React.HTMLAttributes<HTMLButtonElement> {
|
|
69
|
+
item: ItemInstance<T>;
|
|
70
|
+
indent?: number;
|
|
71
|
+
asChild?: boolean;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// biome-ignore lint/suspicious/noExplicitAny: FIXME Origin UI as-is
|
|
75
|
+
function TreeItem<T = any>({
|
|
76
|
+
item,
|
|
77
|
+
className,
|
|
78
|
+
asChild,
|
|
79
|
+
children,
|
|
80
|
+
...props
|
|
81
|
+
}: Omit<TreeItemProps<T>, "indent">) {
|
|
82
|
+
const { indent } = useTreeContext<T>();
|
|
83
|
+
|
|
84
|
+
const itemProps = typeof item.getProps === "function" ? item.getProps() : {};
|
|
85
|
+
const mergedProps = { ...props, ...itemProps };
|
|
86
|
+
|
|
87
|
+
// Extract style from mergedProps to merge with our custom styles
|
|
88
|
+
const { style: propStyle, ...otherProps } = mergedProps;
|
|
89
|
+
|
|
90
|
+
// Merge styles
|
|
91
|
+
const mergedStyle = {
|
|
92
|
+
...propStyle,
|
|
93
|
+
"--tree-padding": `${item.getItemMeta().level * indent}px`,
|
|
94
|
+
} as React.CSSProperties;
|
|
95
|
+
|
|
96
|
+
const Comp = asChild ? Slot.Root : "span";
|
|
97
|
+
|
|
98
|
+
return (
|
|
99
|
+
<TreeContext.Provider value={{ indent, currentItem: item }}>
|
|
100
|
+
<Comp
|
|
101
|
+
data-slot="tree-item"
|
|
102
|
+
style={mergedStyle}
|
|
103
|
+
className={cn(
|
|
104
|
+
"z-10 ps-(--tree-padding) outline-hidden select-none focus:z-20 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
105
|
+
className,
|
|
106
|
+
)}
|
|
107
|
+
data-focus={
|
|
108
|
+
typeof item.isFocused === "function"
|
|
109
|
+
? item.isFocused() || false
|
|
110
|
+
: undefined
|
|
111
|
+
}
|
|
112
|
+
data-folder={
|
|
113
|
+
typeof item.isFolder === "function"
|
|
114
|
+
? item.isFolder() || false
|
|
115
|
+
: undefined
|
|
116
|
+
}
|
|
117
|
+
data-selected={
|
|
118
|
+
typeof item.isSelected === "function"
|
|
119
|
+
? item.isSelected() || false
|
|
120
|
+
: undefined
|
|
121
|
+
}
|
|
122
|
+
data-drag-target={
|
|
123
|
+
typeof item.isDragTarget === "function"
|
|
124
|
+
? item.isDragTarget() || false
|
|
125
|
+
: undefined
|
|
126
|
+
}
|
|
127
|
+
data-search-match={
|
|
128
|
+
typeof item.isMatchingSearch === "function"
|
|
129
|
+
? item.isMatchingSearch() || false
|
|
130
|
+
: undefined
|
|
131
|
+
}
|
|
132
|
+
aria-expanded={item.isExpanded()}
|
|
133
|
+
{...Object.fromEntries(
|
|
134
|
+
Object.entries(otherProps).filter(([key]) => key !== "onDragStart"),
|
|
135
|
+
)}
|
|
136
|
+
onDragStart={(e) => {
|
|
137
|
+
if ((e.target as HTMLElement).dataset.slot === "drag-handle") {
|
|
138
|
+
item.getProps().onDragStart?.(e);
|
|
139
|
+
}
|
|
140
|
+
}}
|
|
141
|
+
>
|
|
142
|
+
{children}
|
|
143
|
+
</Comp>
|
|
144
|
+
</TreeContext.Provider>
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// biome-ignore lint/suspicious/noExplicitAny: FIXME Origin UI as-is
|
|
149
|
+
interface TreeItemLabelProps<T = any>
|
|
150
|
+
extends React.HTMLAttributes<HTMLSpanElement> {
|
|
151
|
+
hideChevron?: boolean;
|
|
152
|
+
disableHover?: boolean;
|
|
153
|
+
item?: ItemInstance<T>;
|
|
154
|
+
horizontalLines?: boolean;
|
|
155
|
+
chevronClassName?: string;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function TreeItemLabel<T>({
|
|
159
|
+
item: propItem,
|
|
160
|
+
children,
|
|
161
|
+
className,
|
|
162
|
+
disableHover,
|
|
163
|
+
horizontalLines,
|
|
164
|
+
hideChevron,
|
|
165
|
+
chevronClassName = "self-start mt-0.5 cursor-pointer",
|
|
166
|
+
...props
|
|
167
|
+
}: TreeItemLabelProps<T & WithMeta>) {
|
|
168
|
+
const { currentItem } = useTreeContext<T & WithMeta>();
|
|
169
|
+
const item = propItem || currentItem;
|
|
170
|
+
|
|
171
|
+
if (!item) {
|
|
172
|
+
console.warn("TreeItemLabel: No item provided via props or context");
|
|
173
|
+
return null;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
const data = item.getItemData?.();
|
|
177
|
+
const isLastNode = data?.meta?.lastNode;
|
|
178
|
+
const itemMeta = item.getItemMeta();
|
|
179
|
+
|
|
180
|
+
return (
|
|
181
|
+
<span
|
|
182
|
+
data-slot="tree-item-label"
|
|
183
|
+
className={cn(
|
|
184
|
+
"group/tree-item-label relative select-text in-focus-visible:ring-ring/50 bg-background text-text-primary in-data-[drag-target=true]:bg-accent flex items-center gap-2 pr-2 pl-2.5 py-1.5 text-sm transition-colors not-in-data-[folder=true]:ps-2.5 in-focus-visible:ring-[3px] in-data-[search-match=true]:bg-blue-400/20! [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
185
|
+
!disableHover &&
|
|
186
|
+
"in-data-[focus=true]:bg-bg-secondary in-data-[focus=true]:text-text-primary",
|
|
187
|
+
!disableHover &&
|
|
188
|
+
item.isFolder() &&
|
|
189
|
+
"hover:bg-bg-secondary hover:text-text-primary cursor-pointer",
|
|
190
|
+
!disableHover &&
|
|
191
|
+
!item.isFolder() &&
|
|
192
|
+
"hover:bg-bg-secondary hover:text-text-primary cursor-pointer",
|
|
193
|
+
disableHover && "text-text-primary",
|
|
194
|
+
className,
|
|
195
|
+
)}
|
|
196
|
+
{...props}
|
|
197
|
+
>
|
|
198
|
+
{item.isFolder() && !hideChevron && (
|
|
199
|
+
<button
|
|
200
|
+
type="button"
|
|
201
|
+
className={chevronClassName}
|
|
202
|
+
onClick={(e) => {
|
|
203
|
+
e.stopPropagation();
|
|
204
|
+
item.isExpanded() ? item.collapse() : item.expand();
|
|
205
|
+
}}
|
|
206
|
+
>
|
|
207
|
+
<ChevronDownIcon className="text-muted-foreground size-4 in-aria-[expanded=false]:-rotate-90" />
|
|
208
|
+
</button>
|
|
209
|
+
)}
|
|
210
|
+
{!item.isFolder() && horizontalLines && (
|
|
211
|
+
<div
|
|
212
|
+
className={`w-5 min-w-5 h-px border-t mt-2 -ml-1 self-start`}
|
|
213
|
+
></div>
|
|
214
|
+
)}
|
|
215
|
+
{item.isFolder() && item.isExpanded() && horizontalLines && (
|
|
216
|
+
<div
|
|
217
|
+
className={`absolute left-4.25 top-8 w-px min-h-full h-full border-l mt-2.25 self-start `}
|
|
218
|
+
></div>
|
|
219
|
+
)}
|
|
220
|
+
{horizontalLines && (
|
|
221
|
+
<div
|
|
222
|
+
className={`absolute left-0 top-4.75 -m-[5px] border-t w-4 ${isLastNode ? "h-full bg-inherit " : ""} ${itemMeta.level === 0 ? "hidden" : ""}`}
|
|
223
|
+
></div>
|
|
224
|
+
)}
|
|
225
|
+
{children ||
|
|
226
|
+
(typeof item.getItemName === "function" ? item.getItemName() : null)}
|
|
227
|
+
</span>
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
function TreeDragLine({
|
|
232
|
+
className,
|
|
233
|
+
...props
|
|
234
|
+
}: React.HTMLAttributes<HTMLDivElement>) {
|
|
235
|
+
const { tree } = useTreeContext();
|
|
236
|
+
|
|
237
|
+
if (!tree || typeof tree.getDragLineStyle !== "function") {
|
|
238
|
+
console.warn(
|
|
239
|
+
"TreeDragLine: No tree provided via context or tree does not have getDragLineStyle method",
|
|
240
|
+
);
|
|
241
|
+
return null;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
const dragLine = tree.getDragLineStyle();
|
|
245
|
+
return (
|
|
246
|
+
<div
|
|
247
|
+
style={dragLine}
|
|
248
|
+
className={cn(
|
|
249
|
+
"bg-primary before:bg-background before:border-primary absolute z-30 -mt-px h-0.5 w-[unset] before:absolute before:-top-[3px] before:left-0 before:size-2 before:rounded-full before:border-2",
|
|
250
|
+
className,
|
|
251
|
+
)}
|
|
252
|
+
{...props}
|
|
253
|
+
/>
|
|
254
|
+
);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export { Tree, TreeItem, TreeItemLabel, TreeDragLine, type ItemInstance };
|
package/src/shadcn/shadcn.css
CHANGED
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.dark {
|
|
81
|
-
--background:
|
|
81
|
+
--background: var(--color-bg-primary);
|
|
82
82
|
--foreground: oklch(0.985 0 0);
|
|
83
83
|
--card: oklch(0.205 0 0);
|
|
84
84
|
--card-foreground: oklch(0.985 0 0);
|
|
@@ -101,11 +101,11 @@
|
|
|
101
101
|
--chart-3: oklch(0.769 0.188 70.08);
|
|
102
102
|
--chart-4: oklch(0.627 0.265 303.9);
|
|
103
103
|
--chart-5: oklch(0.645 0.246 16.439);
|
|
104
|
-
--sidebar:
|
|
104
|
+
--sidebar: var(--color-bg-primary);
|
|
105
105
|
--sidebar-foreground: oklch(0.985 0 0);
|
|
106
106
|
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
107
107
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
108
|
-
--sidebar-accent: oklch(0.
|
|
108
|
+
--sidebar-accent: oklch(0.205 0 0);
|
|
109
109
|
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
110
110
|
--sidebar-border: oklch(1 0 0 / 10%);
|
|
111
111
|
--sidebar-ring: oklch(0.556 0 0);
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
@apply border-border outline-ring/50;
|
|
117
117
|
}
|
|
118
118
|
body {
|
|
119
|
-
@apply bg-background text-foreground;
|
|
119
|
+
@apply bg-background text-foreground caret-foreground;
|
|
120
120
|
font-family: "Inter", system-ui, sans-serif;
|
|
121
121
|
}
|
|
122
122
|
}
|
package/src/tokens.css
CHANGED
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
--color-red-50: #fef9f9;
|
|
41
41
|
--color-red-100: #fff6f5;
|
|
42
42
|
--color-red-200: #fdedea;
|
|
43
|
-
--color-red-300: #
|
|
44
|
-
--color-red-400: #
|
|
43
|
+
--color-red-300: #f18b7e;
|
|
44
|
+
--color-red-400: #db2e17;
|
|
45
45
|
--color-red-500: #d7270f;
|
|
46
46
|
--color-red-600: #d7270f;
|
|
47
47
|
--color-red-700: #c31b03;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
--color-blue-200: #e9f2fc;
|
|
55
55
|
--color-blue-300: #d0e2f8;
|
|
56
56
|
--color-blue-400: #a7c9f3;
|
|
57
|
-
--color-blue-500: #
|
|
57
|
+
--color-blue-500: #1e71d9;
|
|
58
58
|
--color-blue-600: #045ac3;
|
|
59
59
|
--color-blue-700: #014391;
|
|
60
60
|
--color-blue-800: #053775;
|
|
@@ -66,25 +66,39 @@
|
|
|
66
66
|
--color-green-200: #f1f8e6;
|
|
67
67
|
--color-green-300: #e3efcb;
|
|
68
68
|
--color-green-400: #c9e19b;
|
|
69
|
-
--color-green-500: #
|
|
69
|
+
--color-green-500: #547f04;
|
|
70
70
|
--color-green-600: #558300;
|
|
71
71
|
--color-green-700: #334e02;
|
|
72
72
|
--color-green-800: #1d2b03;
|
|
73
73
|
--color-green-900: #090d04;
|
|
74
74
|
--color-green-950: #090d04;
|
|
75
|
+
--color-green-550: #6aa300;
|
|
75
76
|
|
|
76
77
|
--color-yellow-50: #fffdf2;
|
|
77
78
|
--color-yellow-100: #fffbe5;
|
|
78
79
|
--color-yellow-200: #fff9d9;
|
|
79
80
|
--color-yellow-300: #fff4bf;
|
|
80
81
|
--color-yellow-400: #ffea80;
|
|
81
|
-
--color-yellow-500: #
|
|
82
|
-
--color-yellow-600: #
|
|
82
|
+
--color-yellow-500: #f4cb00;
|
|
83
|
+
--color-yellow-600: #946c01;
|
|
83
84
|
--color-yellow-700: #855600;
|
|
84
85
|
--color-yellow-800: #562a00;
|
|
85
86
|
--color-yellow-900: #341900;
|
|
86
87
|
--color-yellow-950: #200900;
|
|
87
88
|
|
|
89
|
+
--color-violet-50: #fdf9fd;
|
|
90
|
+
--color-violet-100: #fcf2fb;
|
|
91
|
+
--color-violet-200: #faeaf8;
|
|
92
|
+
--color-violet-300: #f5d4f0;
|
|
93
|
+
--color-violet-400: #eba9e2;
|
|
94
|
+
--color-violet-500: #cc29b6;
|
|
95
|
+
--color-violet-600: #931e83;
|
|
96
|
+
--color-violet-700: #58124e;
|
|
97
|
+
--color-violet-800: #310a2c;
|
|
98
|
+
--color-violet-900: #10030f;
|
|
99
|
+
--color-violet-950: #080207;
|
|
100
|
+
|
|
101
|
+
--font-size-xxs: 10px;
|
|
88
102
|
--font-size-xs: 12px;
|
|
89
103
|
--font-size-sm: 14px;
|
|
90
104
|
--font-size-base: 16px;
|
|
@@ -115,12 +129,12 @@
|
|
|
115
129
|
--font-weight-extrabold: 800;
|
|
116
130
|
--font-weight-black: 900;
|
|
117
131
|
|
|
118
|
-
--font-tracking-tighter: -0.
|
|
119
|
-
--font-tracking-tight: -0.
|
|
132
|
+
--font-tracking-tighter: -0.8px;
|
|
133
|
+
--font-tracking-tight: -0.4px;
|
|
120
134
|
--font-tracking-normal: 0px;
|
|
121
|
-
--font-tracking-wide: 0.
|
|
122
|
-
--font-tracking-wider: 0.
|
|
123
|
-
--font-tracking-widest: 1.
|
|
135
|
+
--font-tracking-wide: 0.4px;
|
|
136
|
+
--font-tracking-wider: 0.8px;
|
|
137
|
+
--font-tracking-widest: 1.6px;
|
|
124
138
|
|
|
125
139
|
--font-leading-3: 12px;
|
|
126
140
|
--font-leading-4: 16px;
|
|
@@ -146,34 +160,50 @@
|
|
|
146
160
|
--corner-corner-m: 6px;
|
|
147
161
|
--corner-corner-l: 8px;
|
|
148
162
|
--corner-corner-xs: 2px;
|
|
149
|
-
--color-elements-readable: var(--color-neutral-900);
|
|
150
163
|
--color-cta: var(--color-brand-600);
|
|
151
164
|
--color-critical-default: var(--color-red-600);
|
|
152
|
-
--color-elements-disabled: var(--color-neutral-300);
|
|
153
|
-
--color-elements-assistive: var(--color-neutral-500);
|
|
154
|
-
--color-surface-0: var(--color-neutral-50);
|
|
155
|
-
--color-border-default: var(--color-neutral-200);
|
|
156
|
-
--color-surface-selected: var(--color-neutral-200);
|
|
157
165
|
--color-cta-hover: var(--color-brand-700);
|
|
158
166
|
--color-critical-hover: var(--color-red-700);
|
|
159
|
-
--color-surface-1: var(--color-neutral-100);
|
|
160
167
|
--color-border-XS-critical: var(--color-red-50);
|
|
161
168
|
--color-border-XS-critical-hover: var(--color-red-100);
|
|
162
169
|
--color-elements-green: var(--color-green-600);
|
|
163
170
|
--color-elements-yellow: var(--color-yellow-500);
|
|
164
171
|
--color-border-XS-regular: var(--color-blue-300);
|
|
165
172
|
--color-border-XS-regular-hover: var(--color-blue-400);
|
|
166
|
-
--color-separator: var(--color-neutral-200);
|
|
167
173
|
--color-surface-info: var(--color-blue-50);
|
|
168
174
|
--color-surface-warning: var(--color-yellow-50);
|
|
169
175
|
--color-surface-alert: var(--color-red-50);
|
|
170
176
|
--color-elements-warning: var(--color-yellow-700);
|
|
171
177
|
--color-code-red: var(--color-red-600);
|
|
172
178
|
--color-code-blue: var(--color-blue-500);
|
|
173
|
-
--color-elements-readable-inv: var(--color-neutral-50);
|
|
174
179
|
--color-logo-readable: var(--color-neutral-800);
|
|
175
180
|
--color-elements-links: var(--color-brand-600);
|
|
176
181
|
--color-elements-info: var(--color-brand-600);
|
|
177
182
|
--color-elements-alert: var(--color-red-600);
|
|
178
183
|
--color-illustrations-solid: var(--color-brand-600);
|
|
179
184
|
}
|
|
185
|
+
|
|
186
|
+
/* Semantic tokens that need dark mode overrides — use @theme inline + :root so .dark can override */
|
|
187
|
+
@theme inline {
|
|
188
|
+
--color-elements-readable: var(--hs-elements-readable);
|
|
189
|
+
--color-elements-readable-inv: var(--hs-elements-readable-inv);
|
|
190
|
+
--color-elements-assistive: var(--hs-elements-assistive);
|
|
191
|
+
--color-elements-disabled: var(--hs-elements-disabled);
|
|
192
|
+
--color-surface-0: var(--hs-surface-0);
|
|
193
|
+
--color-surface-1: var(--hs-surface-1);
|
|
194
|
+
--color-surface-selected: var(--hs-surface-selected);
|
|
195
|
+
--color-border-default: var(--hs-border-default);
|
|
196
|
+
--color-separator: var(--hs-separator);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
:root {
|
|
200
|
+
--hs-elements-readable: var(--color-neutral-900);
|
|
201
|
+
--hs-elements-readable-inv: var(--color-neutral-50);
|
|
202
|
+
--hs-elements-assistive: var(--color-neutral-500);
|
|
203
|
+
--hs-elements-disabled: var(--color-neutral-300);
|
|
204
|
+
--hs-surface-0: var(--color-neutral-50);
|
|
205
|
+
--hs-surface-1: var(--color-neutral-100);
|
|
206
|
+
--hs-surface-selected: var(--color-neutral-200);
|
|
207
|
+
--hs-border-default: var(--color-neutral-200);
|
|
208
|
+
--hs-separator: var(--color-neutral-200);
|
|
209
|
+
}
|
package/src/typography.css
CHANGED
|
@@ -42,42 +42,57 @@ body {
|
|
|
42
42
|
font-weight: var(--font-weight-normal);
|
|
43
43
|
line-height: var(--font-leading-4);
|
|
44
44
|
}
|
|
45
|
+
.typo-body-xs {
|
|
46
|
+
font-size: var(--font-size-xs);
|
|
47
|
+
font-family: var(--font-family-sans);
|
|
48
|
+
font-weight: var(--font-weight-normal);
|
|
49
|
+
line-height: var(--font-leading-4);
|
|
50
|
+
}
|
|
51
|
+
.typo-label-xs {
|
|
52
|
+
font-size: var(--font-size-xs);
|
|
53
|
+
font-family: var(--font-family-sans);
|
|
54
|
+
font-weight: var(--font-weight-medium);
|
|
55
|
+
line-height: var(--font-leading-3);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.typo-label-tiny {
|
|
59
|
+
font-size: var(--font-size-xxs);
|
|
60
|
+
font-family: var(--font-family-sans);
|
|
61
|
+
font-weight: var(--font-weight-normal);
|
|
62
|
+
line-height: var(--font-leading-4);
|
|
63
|
+
letter-spacing: var(--font-tracking-wide);
|
|
64
|
+
text-transform: uppercase;
|
|
65
|
+
}
|
|
45
66
|
|
|
46
67
|
.h1 {
|
|
47
|
-
font-size: var(--font-size-
|
|
68
|
+
font-size: var(--font-size-5xl);
|
|
48
69
|
font-family: var(--font-family-sans);
|
|
49
70
|
font-weight: var(--font-weight-extrabold);
|
|
50
|
-
line-height: var(--font-leading-
|
|
71
|
+
line-height: var(--font-leading-14);
|
|
51
72
|
letter-spacing: var(--font-tracking-tight);
|
|
52
73
|
}
|
|
53
74
|
|
|
54
|
-
@media (min-width: 1024px) {
|
|
55
|
-
.h1 {
|
|
56
|
-
font-size: var(--font-size-5xl);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
75
|
.h2 {
|
|
61
|
-
font-size: var(--font-size-
|
|
76
|
+
font-size: var(--font-size-4xl);
|
|
62
77
|
font-family: var(--font-family-sans);
|
|
63
|
-
font-weight: var(--font-weight-
|
|
64
|
-
line-height: var(--font-leading-
|
|
78
|
+
font-weight: var(--font-weight-bold);
|
|
79
|
+
line-height: var(--font-leading-10);
|
|
65
80
|
letter-spacing: var(--font-tracking-tight);
|
|
66
81
|
}
|
|
67
82
|
|
|
68
83
|
.h3 {
|
|
69
|
-
font-size: var(--font-size-
|
|
84
|
+
font-size: var(--font-size-3xl);
|
|
70
85
|
font-family: var(--font-family-sans);
|
|
71
86
|
font-weight: var(--font-weight-semibold);
|
|
72
|
-
line-height: var(--font-leading-
|
|
87
|
+
line-height: var(--font-leading-9);
|
|
73
88
|
letter-spacing: var(--font-tracking-tight);
|
|
74
89
|
}
|
|
75
90
|
|
|
76
91
|
.h4 {
|
|
77
|
-
font-size: var(--font-size-
|
|
92
|
+
font-size: var(--font-size-2xl);
|
|
78
93
|
font-family: var(--font-family-sans);
|
|
79
94
|
font-weight: var(--font-weight-semibold);
|
|
80
|
-
line-height: var(--font-leading-
|
|
95
|
+
line-height: var(--font-leading-8);
|
|
81
96
|
letter-spacing: var(--font-tracking-tight);
|
|
82
97
|
}
|
|
83
98
|
|
|
@@ -96,3 +111,51 @@ body {
|
|
|
96
111
|
line-height: var(--font-leading-none);
|
|
97
112
|
letter-spacing: var(--font-tracking-tight);
|
|
98
113
|
}
|
|
114
|
+
|
|
115
|
+
.caption {
|
|
116
|
+
font-size: var(--font-size-xl);
|
|
117
|
+
font-family: var(--font-family-sans);
|
|
118
|
+
font-weight: var(--font-weight-normal);
|
|
119
|
+
line-height: var(--font-leading-7);
|
|
120
|
+
letter-spacing: var(--font-tracking-tight);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.body14 {
|
|
124
|
+
font-size: var(--font-size-sm);
|
|
125
|
+
font-family: var(--font-family-sans);
|
|
126
|
+
font-weight: var(--font-weight-normal);
|
|
127
|
+
line-height: var(--font-leading-5);
|
|
128
|
+
letter-spacing: var(--font-tracking-normal);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.body14bold {
|
|
132
|
+
font-size: var(--font-size-sm);
|
|
133
|
+
font-family: var(--font-family-sans);
|
|
134
|
+
font-weight: var(--font-weight-medium);
|
|
135
|
+
line-height: var(--font-leading-5);
|
|
136
|
+
letter-spacing: var(--font-tracking-normal);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.body16 {
|
|
140
|
+
font-size: var(--font-size-base);
|
|
141
|
+
font-family: var(--font-family-sans);
|
|
142
|
+
font-weight: var(--font-weight-normal);
|
|
143
|
+
line-height: var(--font-leading-6);
|
|
144
|
+
letter-spacing: var(--font-tracking-normal);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.body16bold {
|
|
148
|
+
font-size: var(--font-size-base);
|
|
149
|
+
font-family: var(--font-family-sans);
|
|
150
|
+
font-weight: var(--font-weight-medium);
|
|
151
|
+
line-height: var(--font-leading-6);
|
|
152
|
+
letter-spacing: var(--font-tracking-normal);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.body12 {
|
|
156
|
+
font-size: var(--font-size-xs);
|
|
157
|
+
font-family: var(--font-family-sans);
|
|
158
|
+
font-weight: var(--font-weight-normal);
|
|
159
|
+
line-height: var(--font-leading-4);
|
|
160
|
+
letter-spacing: var(--font-tracking-normal);
|
|
161
|
+
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
2
|
-
import { CodeEditor } from "./code-editor";
|
|
3
|
-
declare const meta: Meta<typeof CodeEditor>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof CodeEditor>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
//# sourceMappingURL=code-editor.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-editor.stories.d.ts","sourceRoot":"","sources":["../../../src/components/code-editor.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAOjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,OAAO,EAAE,KAkBrB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
2
|
-
import { RequestLineEditor } from "./request-line-editor";
|
|
3
|
-
declare const meta: Meta<typeof RequestLineEditor>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof RequestLineEditor>;
|
|
6
|
-
export declare const GET: Story;
|
|
7
|
-
export declare const POST: Story;
|
|
8
|
-
export declare const PUT: Story;
|
|
9
|
-
export declare const PATCH: Story;
|
|
10
|
-
export declare const DELETE: Story;
|
|
11
|
-
//# sourceMappingURL=request-line-editor.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request-line-editor.stories.d.ts","sourceRoot":"","sources":["../../../src/components/request-line-editor.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EACN,iBAAiB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,iBAAiB,CAOxC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAC;AA4BhD,eAAO,MAAM,GAAG,EAAE,KAOjB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAOlB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,KAOjB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAOpB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
-
import { Button } from "./index";
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: typeof Button;
|
|
6
|
-
parameters: {
|
|
7
|
-
layout: string;
|
|
8
|
-
};
|
|
9
|
-
tags: string[];
|
|
10
|
-
};
|
|
11
|
-
export default meta;
|
|
12
|
-
type Story = StoryObj<typeof meta>;
|
|
13
|
-
export declare const Primary: Story;
|
|
14
|
-
//# sourceMappingURL=index.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../src/index.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,QAAA,MAAM,IAAI;;;;;;;CAOqB,CAAC;AAEhC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Button } from "./index.js";
|
|
2
|
-
const meta = {
|
|
3
|
-
title: "Button",
|
|
4
|
-
component: Button,
|
|
5
|
-
parameters: {
|
|
6
|
-
layout: "centered"
|
|
7
|
-
},
|
|
8
|
-
tags: [
|
|
9
|
-
"autodocs"
|
|
10
|
-
]
|
|
11
|
-
};
|
|
12
|
-
export default meta;
|
|
13
|
-
export const Primary = {
|
|
14
|
-
args: {
|
|
15
|
-
children: "Hello"
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
//# sourceMappingURL=index.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.stories.tsx"],"sourcesContent":["import type { Meta, StoryObj } from \"@storybook/react-vite\";\n\nimport { Button } from \"./index\";\n\nconst meta = {\n\ttitle: \"Button\",\n\tcomponent: Button,\n\tparameters: {\n\t\tlayout: \"centered\",\n\t},\n\ttags: [\"autodocs\"],\n} satisfies Meta<typeof Button>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Primary: Story = {\n\targs: {\n\t\tchildren: \"Hello\",\n\t},\n};\n"],"names":["Button","meta","title","component","parameters","layout","tags","Primary","args","children"],"mappings":"AAEA,SAASA,MAAM,QAAQ,aAAU;AAEjC,MAAMC,OAAO;IACZC,OAAO;IACPC,WAAWH;IACXI,YAAY;QACXC,QAAQ;IACT;IACAC,MAAM;QAAC;KAAW;AACnB;AAEA,eAAeL,KAAK;AAGpB,OAAO,MAAMM,UAAiB;IAC7BC,MAAM;QACLC,UAAU;IACX;AACD,EAAE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.stories.d.ts","sourceRoot":"","sources":["../../../../../src/shadcn/components/ui/accordion.stories.tsx"],"names":[],"mappings":"AAQA,QAAA,MAAM,IAAI;;CAEM,CAAC;AACjB,eAAe,IAAI,CAAC;AAIpB,eAAO,MAAM,IAAI;;CAqDA,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.stories.d.ts","sourceRoot":"","sources":["../../../../../src/shadcn/components/ui/alert-dialog.stories.tsx"],"names":[],"mappings":"AAcA,QAAA,MAAM,IAAI;;CAEM,CAAC;AACjB,eAAe,IAAI,CAAC;AAIpB,eAAO,MAAM,IAAI;;CAqBA,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert.stories.d.ts","sourceRoot":"","sources":["../../../../../src/shadcn/components/ui/alert.stories.tsx"],"names":[],"mappings":"AAQA,QAAA,MAAM,IAAI;;CAEM,CAAC;AACjB,eAAe,IAAI,CAAC;AAIpB,eAAO,MAAM,IAAI;;CA8BA,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aspect-ratio.stories.d.ts","sourceRoot":"","sources":["../../../../../src/shadcn/components/ui/aspect-ratio.stories.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,IAAI;;CAEM,CAAC;AACjB,eAAe,IAAI,CAAC;AAIpB,eAAO,MAAM,IAAI;;CAUA,CAAC"}
|