@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,447 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { FhirStructureView } from "./fhir-structure-view.js";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: "Component/FHIRStructureView",
|
|
5
|
+
component: FhirStructureView
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
const tree = {
|
|
9
|
+
root: {
|
|
10
|
+
name: "Root",
|
|
11
|
+
children: [
|
|
12
|
+
"Patient"
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
Patient: {
|
|
16
|
+
name: "Patient",
|
|
17
|
+
meta: {
|
|
18
|
+
type: "Resource",
|
|
19
|
+
min: "0",
|
|
20
|
+
max: "*",
|
|
21
|
+
desc: "Information about an individual or animal receiving health care services"
|
|
22
|
+
},
|
|
23
|
+
children: [
|
|
24
|
+
"Patient.id",
|
|
25
|
+
"Patient.meta",
|
|
26
|
+
"Patient.implicitRules",
|
|
27
|
+
"Patient.language",
|
|
28
|
+
"Patient.text",
|
|
29
|
+
"Patient.contained",
|
|
30
|
+
"Patient.extension",
|
|
31
|
+
"Patient.modifierExtension",
|
|
32
|
+
"Patient.identifier",
|
|
33
|
+
"Patient.active",
|
|
34
|
+
"Patient.name",
|
|
35
|
+
"Patient.telecom",
|
|
36
|
+
"Patient.gender",
|
|
37
|
+
"Patient.birthDate",
|
|
38
|
+
"Patient.deceased",
|
|
39
|
+
"Patient.address",
|
|
40
|
+
"Patient.maritalStatus",
|
|
41
|
+
"Patient.multipleBirth",
|
|
42
|
+
"Patient.photo",
|
|
43
|
+
"Patient.contact",
|
|
44
|
+
"Patient.communication",
|
|
45
|
+
"Patient.generalPractitioner",
|
|
46
|
+
"Patient.managingOrganization",
|
|
47
|
+
"Patient.link"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"Patient.id": {
|
|
51
|
+
name: "id",
|
|
52
|
+
meta: {
|
|
53
|
+
type: "id",
|
|
54
|
+
min: "0",
|
|
55
|
+
max: "1",
|
|
56
|
+
isSummary: true,
|
|
57
|
+
desc: "Logical id of this artifact"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"Patient.meta": {
|
|
61
|
+
name: "meta",
|
|
62
|
+
meta: {
|
|
63
|
+
type: "Meta",
|
|
64
|
+
min: "0",
|
|
65
|
+
max: "1",
|
|
66
|
+
isSummary: true,
|
|
67
|
+
desc: "Metadata about the resource"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"Patient.implicitRules": {
|
|
71
|
+
name: "implicitRules",
|
|
72
|
+
meta: {
|
|
73
|
+
type: "uri",
|
|
74
|
+
min: "0",
|
|
75
|
+
max: "1",
|
|
76
|
+
isSummary: true,
|
|
77
|
+
isModifier: true,
|
|
78
|
+
desc: "A set of rules under which this content was created"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"Patient.language": {
|
|
82
|
+
name: "language",
|
|
83
|
+
meta: {
|
|
84
|
+
type: "code",
|
|
85
|
+
min: "0",
|
|
86
|
+
max: "1",
|
|
87
|
+
desc: "Language of the resource content"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"Patient.text": {
|
|
91
|
+
name: "text",
|
|
92
|
+
meta: {
|
|
93
|
+
type: "Narrative",
|
|
94
|
+
min: "0",
|
|
95
|
+
max: "1",
|
|
96
|
+
desc: "Text summary of the resource, for human interpretation"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"Patient.contained": {
|
|
100
|
+
name: "contained",
|
|
101
|
+
meta: {
|
|
102
|
+
type: "Resource",
|
|
103
|
+
min: "0",
|
|
104
|
+
max: "*",
|
|
105
|
+
desc: "Contained, inline Resources"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"Patient.extension": {
|
|
109
|
+
name: "extension",
|
|
110
|
+
meta: {
|
|
111
|
+
type: "Extension",
|
|
112
|
+
min: "0",
|
|
113
|
+
max: "*",
|
|
114
|
+
desc: "Additional content defined by implementations"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"Patient.modifierExtension": {
|
|
118
|
+
name: "modifierExtension",
|
|
119
|
+
meta: {
|
|
120
|
+
type: "Extension",
|
|
121
|
+
min: "0",
|
|
122
|
+
max: "*",
|
|
123
|
+
isSummary: true,
|
|
124
|
+
isModifier: true,
|
|
125
|
+
desc: "Extensions that cannot be ignored"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"Patient.identifier": {
|
|
129
|
+
name: "identifier",
|
|
130
|
+
meta: {
|
|
131
|
+
type: "Identifier",
|
|
132
|
+
min: "0",
|
|
133
|
+
max: "*",
|
|
134
|
+
isSummary: true,
|
|
135
|
+
desc: "An identifier for this patient"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"Patient.active": {
|
|
139
|
+
name: "active",
|
|
140
|
+
meta: {
|
|
141
|
+
type: "boolean",
|
|
142
|
+
min: "0",
|
|
143
|
+
max: "1",
|
|
144
|
+
isSummary: true,
|
|
145
|
+
isModifier: true,
|
|
146
|
+
desc: "Whether this patient's record is in active use"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"Patient.name": {
|
|
150
|
+
name: "name",
|
|
151
|
+
meta: {
|
|
152
|
+
type: "HumanName",
|
|
153
|
+
min: "0",
|
|
154
|
+
max: "*",
|
|
155
|
+
isSummary: true,
|
|
156
|
+
desc: "A name associated with the patient"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"Patient.telecom": {
|
|
160
|
+
name: "telecom",
|
|
161
|
+
meta: {
|
|
162
|
+
type: "ContactPoint",
|
|
163
|
+
min: "0",
|
|
164
|
+
max: "*",
|
|
165
|
+
isSummary: true,
|
|
166
|
+
desc: "A contact detail for the individual"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"Patient.gender": {
|
|
170
|
+
name: "gender",
|
|
171
|
+
meta: {
|
|
172
|
+
type: "code",
|
|
173
|
+
min: "0",
|
|
174
|
+
max: "1",
|
|
175
|
+
isSummary: true,
|
|
176
|
+
desc: "male | female | other | unknown"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"Patient.birthDate": {
|
|
180
|
+
name: "birthDate",
|
|
181
|
+
meta: {
|
|
182
|
+
type: "date",
|
|
183
|
+
min: "0",
|
|
184
|
+
max: "1",
|
|
185
|
+
isSummary: true,
|
|
186
|
+
desc: "The date of birth for the individual"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"Patient.deceased": {
|
|
190
|
+
name: "deceased[x]",
|
|
191
|
+
meta: {
|
|
192
|
+
type: "union",
|
|
193
|
+
min: "0",
|
|
194
|
+
max: "1",
|
|
195
|
+
isSummary: true,
|
|
196
|
+
isModifier: true,
|
|
197
|
+
desc: "Indicates if the individual is deceased or not"
|
|
198
|
+
},
|
|
199
|
+
children: [
|
|
200
|
+
"Patient.deceasedBoolean",
|
|
201
|
+
"Patient.deceasedDateTime"
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
"Patient.deceasedBoolean": {
|
|
205
|
+
name: "deceasedBoolean",
|
|
206
|
+
meta: {
|
|
207
|
+
type: "boolean"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"Patient.deceasedDateTime": {
|
|
211
|
+
name: "deceasedDateTime",
|
|
212
|
+
meta: {
|
|
213
|
+
type: "dateTime",
|
|
214
|
+
lastNode: true
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"Patient.address": {
|
|
218
|
+
name: "address",
|
|
219
|
+
meta: {
|
|
220
|
+
type: "Address",
|
|
221
|
+
min: "0",
|
|
222
|
+
max: "*",
|
|
223
|
+
isSummary: true,
|
|
224
|
+
desc: "An address for the individual"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"Patient.maritalStatus": {
|
|
228
|
+
name: "maritalStatus",
|
|
229
|
+
meta: {
|
|
230
|
+
type: "CodeableConcept",
|
|
231
|
+
min: "0",
|
|
232
|
+
max: "1",
|
|
233
|
+
desc: "Marital (civil) status of a patient"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"Patient.multipleBirth": {
|
|
237
|
+
name: "multipleBirth[x]",
|
|
238
|
+
meta: {
|
|
239
|
+
type: "union",
|
|
240
|
+
min: "0",
|
|
241
|
+
max: "1",
|
|
242
|
+
desc: "Whether patient is part of a multiple birth"
|
|
243
|
+
},
|
|
244
|
+
children: [
|
|
245
|
+
"Patient.multipleBirthBoolean",
|
|
246
|
+
"Patient.multipleBirthInteger"
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
"Patient.multipleBirthBoolean": {
|
|
250
|
+
name: "multipleBirthBoolean",
|
|
251
|
+
meta: {
|
|
252
|
+
type: "boolean"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"Patient.multipleBirthInteger": {
|
|
256
|
+
name: "multipleBirthInteger",
|
|
257
|
+
meta: {
|
|
258
|
+
type: "integer",
|
|
259
|
+
lastNode: true
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"Patient.photo": {
|
|
263
|
+
name: "photo",
|
|
264
|
+
meta: {
|
|
265
|
+
type: "Attachment",
|
|
266
|
+
min: "0",
|
|
267
|
+
max: "*",
|
|
268
|
+
desc: "Image of the patient"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"Patient.contact": {
|
|
272
|
+
name: "contact",
|
|
273
|
+
meta: {
|
|
274
|
+
type: "BackboneElement",
|
|
275
|
+
min: "0",
|
|
276
|
+
max: "*",
|
|
277
|
+
desc: "A contact party (e.g. guardian, partner, friend) for the patient"
|
|
278
|
+
},
|
|
279
|
+
children: [
|
|
280
|
+
"Patient.contact.relationship",
|
|
281
|
+
"Patient.contact.name",
|
|
282
|
+
"Patient.contact.telecom",
|
|
283
|
+
"Patient.contact.address",
|
|
284
|
+
"Patient.contact.gender",
|
|
285
|
+
"Patient.contact.organization",
|
|
286
|
+
"Patient.contact.period"
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
"Patient.contact.relationship": {
|
|
290
|
+
name: "relationship",
|
|
291
|
+
meta: {
|
|
292
|
+
type: "CodeableConcept",
|
|
293
|
+
min: "0",
|
|
294
|
+
max: "*",
|
|
295
|
+
desc: "The kind of relationship"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"Patient.contact.name": {
|
|
299
|
+
name: "name",
|
|
300
|
+
meta: {
|
|
301
|
+
type: "HumanName",
|
|
302
|
+
min: "0",
|
|
303
|
+
max: "1",
|
|
304
|
+
desc: "A name associated with the contact person"
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"Patient.contact.telecom": {
|
|
308
|
+
name: "telecom",
|
|
309
|
+
meta: {
|
|
310
|
+
type: "ContactPoint",
|
|
311
|
+
min: "0",
|
|
312
|
+
max: "*",
|
|
313
|
+
desc: "A contact detail for the person"
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"Patient.contact.address": {
|
|
317
|
+
name: "address",
|
|
318
|
+
meta: {
|
|
319
|
+
type: "Address",
|
|
320
|
+
min: "0",
|
|
321
|
+
max: "1",
|
|
322
|
+
desc: "Address for the contact person"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"Patient.contact.gender": {
|
|
326
|
+
name: "gender",
|
|
327
|
+
meta: {
|
|
328
|
+
type: "code",
|
|
329
|
+
min: "0",
|
|
330
|
+
max: "1",
|
|
331
|
+
desc: "male | female | other | unknown"
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"Patient.contact.organization": {
|
|
335
|
+
name: "organization",
|
|
336
|
+
meta: {
|
|
337
|
+
type: "Reference",
|
|
338
|
+
min: "0",
|
|
339
|
+
max: "1",
|
|
340
|
+
desc: "Organization that is associated with the contact"
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"Patient.contact.period": {
|
|
344
|
+
name: "period",
|
|
345
|
+
meta: {
|
|
346
|
+
type: "Period",
|
|
347
|
+
min: "0",
|
|
348
|
+
max: "1",
|
|
349
|
+
lastNode: true,
|
|
350
|
+
desc: "The period during which this contact person or organization is valid to be contacted relating to this patient"
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
"Patient.communication": {
|
|
354
|
+
name: "communication",
|
|
355
|
+
meta: {
|
|
356
|
+
type: "BackboneElement",
|
|
357
|
+
min: "0",
|
|
358
|
+
max: "*",
|
|
359
|
+
desc: "A language which may be used to communicate with the patient about his or her health"
|
|
360
|
+
},
|
|
361
|
+
children: [
|
|
362
|
+
"Patient.communication.language",
|
|
363
|
+
"Patient.communication.preferred"
|
|
364
|
+
]
|
|
365
|
+
},
|
|
366
|
+
"Patient.communication.language": {
|
|
367
|
+
name: "language",
|
|
368
|
+
meta: {
|
|
369
|
+
type: "CodeableConcept",
|
|
370
|
+
min: "1",
|
|
371
|
+
max: "1",
|
|
372
|
+
desc: "The language which can be used to communicate with the patient about his or her health"
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
"Patient.communication.preferred": {
|
|
376
|
+
name: "preferred",
|
|
377
|
+
meta: {
|
|
378
|
+
type: "boolean",
|
|
379
|
+
min: "0",
|
|
380
|
+
max: "1",
|
|
381
|
+
lastNode: true,
|
|
382
|
+
desc: "Language preference indicator"
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"Patient.generalPractitioner": {
|
|
386
|
+
name: "generalPractitioner",
|
|
387
|
+
meta: {
|
|
388
|
+
type: "Reference",
|
|
389
|
+
min: "0",
|
|
390
|
+
max: "*",
|
|
391
|
+
desc: "Patient's nominated primary care provider"
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
"Patient.managingOrganization": {
|
|
395
|
+
name: "managingOrganization",
|
|
396
|
+
meta: {
|
|
397
|
+
type: "Reference",
|
|
398
|
+
min: "0",
|
|
399
|
+
max: "1",
|
|
400
|
+
isSummary: true,
|
|
401
|
+
desc: "Organization that is the custodian of the patient record"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"Patient.link": {
|
|
405
|
+
name: "link",
|
|
406
|
+
meta: {
|
|
407
|
+
type: "BackboneElement",
|
|
408
|
+
min: "0",
|
|
409
|
+
max: "*",
|
|
410
|
+
isSummary: true,
|
|
411
|
+
isModifier: true,
|
|
412
|
+
desc: "Link to a Patient or RelatedPerson resource that concerns the same actual individual"
|
|
413
|
+
},
|
|
414
|
+
children: [
|
|
415
|
+
"Patient.link.other",
|
|
416
|
+
"Patient.link.type"
|
|
417
|
+
]
|
|
418
|
+
},
|
|
419
|
+
"Patient.link.other": {
|
|
420
|
+
name: "other",
|
|
421
|
+
meta: {
|
|
422
|
+
type: "Reference",
|
|
423
|
+
min: "1",
|
|
424
|
+
max: "1",
|
|
425
|
+
isSummary: true,
|
|
426
|
+
desc: "The other patient or related person resource that the link refers to"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"Patient.link.type": {
|
|
430
|
+
name: "type",
|
|
431
|
+
meta: {
|
|
432
|
+
type: "code",
|
|
433
|
+
min: "1",
|
|
434
|
+
max: "1",
|
|
435
|
+
isSummary: true,
|
|
436
|
+
lastNode: true,
|
|
437
|
+
desc: "replaced-by | replaces | refer | seealso"
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
export const Default = {
|
|
442
|
+
render: ()=>/*#__PURE__*/ _jsx(FhirStructureView, {
|
|
443
|
+
tree: tree
|
|
444
|
+
})
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
//# sourceMappingURL=fhir-structure-view.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/fhir-structure-view.stories.tsx"],"sourcesContent":["import type { Meta, StoryObj } from \"@storybook/react-vite\";\nimport { type FhirStructure, FhirStructureView } from \"./fhir-structure-view\";\nimport type { TreeViewItem } from \"./tree-view\";\n\nconst meta: Meta<typeof FhirStructureView> = {\n\ttitle: \"Component/FHIRStructureView\",\n\tcomponent: FhirStructureView,\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof FhirStructureView>;\n\nconst tree: Record<string, TreeViewItem<FhirStructure>> = {\n\troot: {\n\t\tname: \"Root\",\n\t\tchildren: [\"Patient\"],\n\t},\n\tPatient: {\n\t\tname: \"Patient\",\n\t\tmeta: {\n\t\t\ttype: \"Resource\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"*\",\n\t\t\tdesc: \"Information about an individual or animal receiving health care services\",\n\t\t},\n\t\tchildren: [\n\t\t\t\"Patient.id\",\n\t\t\t\"Patient.meta\",\n\t\t\t\"Patient.implicitRules\",\n\t\t\t\"Patient.language\",\n\t\t\t\"Patient.text\",\n\t\t\t\"Patient.contained\",\n\t\t\t\"Patient.extension\",\n\t\t\t\"Patient.modifierExtension\",\n\t\t\t\"Patient.identifier\",\n\t\t\t\"Patient.active\",\n\t\t\t\"Patient.name\",\n\t\t\t\"Patient.telecom\",\n\t\t\t\"Patient.gender\",\n\t\t\t\"Patient.birthDate\",\n\t\t\t\"Patient.deceased\",\n\t\t\t\"Patient.address\",\n\t\t\t\"Patient.maritalStatus\",\n\t\t\t\"Patient.multipleBirth\",\n\t\t\t\"Patient.photo\",\n\t\t\t\"Patient.contact\",\n\t\t\t\"Patient.communication\",\n\t\t\t\"Patient.generalPractitioner\",\n\t\t\t\"Patient.managingOrganization\",\n\t\t\t\"Patient.link\",\n\t\t],\n\t},\n\t\"Patient.id\": {\n\t\tname: \"id\",\n\t\tmeta: {\n\t\t\ttype: \"id\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"1\",\n\t\t\tisSummary: true,\n\t\t\tdesc: \"Logical id of this artifact\",\n\t\t},\n\t},\n\t\"Patient.meta\": {\n\t\tname: \"meta\",\n\t\tmeta: {\n\t\t\ttype: \"Meta\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"1\",\n\t\t\tisSummary: true,\n\t\t\tdesc: \"Metadata about the resource\",\n\t\t},\n\t},\n\t\"Patient.implicitRules\": {\n\t\tname: \"implicitRules\",\n\t\tmeta: {\n\t\t\ttype: \"uri\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"1\",\n\t\t\tisSummary: true,\n\t\t\tisModifier: true,\n\t\t\tdesc: \"A set of rules under which this content was created\",\n\t\t},\n\t},\n\t\"Patient.language\": {\n\t\tname: \"language\",\n\t\tmeta: {\n\t\t\ttype: \"code\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"1\",\n\t\t\tdesc: \"Language of the resource content\",\n\t\t},\n\t},\n\t\"Patient.text\": {\n\t\tname: \"text\",\n\t\tmeta: {\n\t\t\ttype: \"Narrative\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"1\",\n\t\t\tdesc: \"Text summary of the resource, for human interpretation\",\n\t\t},\n\t},\n\t\"Patient.contained\": {\n\t\tname: \"contained\",\n\t\tmeta: {\n\t\t\ttype: \"Resource\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"*\",\n\t\t\tdesc: \"Contained, inline Resources\",\n\t\t},\n\t},\n\t\"Patient.extension\": {\n\t\tname: \"extension\",\n\t\tmeta: {\n\t\t\ttype: \"Extension\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"*\",\n\t\t\tdesc: \"Additional content defined by implementations\",\n\t\t},\n\t},\n\t\"Patient.modifierExtension\": {\n\t\tname: \"modifierExtension\",\n\t\tmeta: {\n\t\t\ttype: \"Extension\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"*\",\n\t\t\tisSummary: true,\n\t\t\tisModifier: true,\n\t\t\tdesc: \"Extensions that cannot be ignored\",\n\t\t},\n\t},\n\t\"Patient.identifier\": {\n\t\tname: \"identifier\",\n\t\tmeta: {\n\t\t\ttype: \"Identifier\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"*\",\n\t\t\tisSummary: true,\n\t\t\tdesc: \"An identifier for this patient\",\n\t\t},\n\t},\n\t\"Patient.active\": {\n\t\tname: \"active\",\n\t\tmeta: {\n\t\t\ttype: \"boolean\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"1\",\n\t\t\tisSummary: true,\n\t\t\tisModifier: true,\n\t\t\tdesc: \"Whether this patient's record is in active use\",\n\t\t},\n\t},\n\t\"Patient.name\": {\n\t\tname: \"name\",\n\t\tmeta: {\n\t\t\ttype: \"HumanName\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"*\",\n\t\t\tisSummary: true,\n\t\t\tdesc: \"A name associated with the patient\",\n\t\t},\n\t},\n\t\"Patient.telecom\": {\n\t\tname: \"telecom\",\n\t\tmeta: {\n\t\t\ttype: \"ContactPoint\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"*\",\n\t\t\tisSummary: true,\n\t\t\tdesc: \"A contact detail for the individual\",\n\t\t},\n\t},\n\t\"Patient.gender\": {\n\t\tname: \"gender\",\n\t\tmeta: {\n\t\t\ttype: \"code\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"1\",\n\t\t\tisSummary: true,\n\t\t\tdesc: \"male | female | other | unknown\",\n\t\t},\n\t},\n\t\"Patient.birthDate\": {\n\t\tname: \"birthDate\",\n\t\tmeta: {\n\t\t\ttype: \"date\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"1\",\n\t\t\tisSummary: true,\n\t\t\tdesc: \"The date of birth for the individual\",\n\t\t},\n\t},\n\t\"Patient.deceased\": {\n\t\tname: \"deceased[x]\",\n\t\tmeta: {\n\t\t\ttype: \"union\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"1\",\n\t\t\tisSummary: true,\n\t\t\tisModifier: true,\n\t\t\tdesc: \"Indicates if the individual is deceased or not\",\n\t\t},\n\t\tchildren: [\"Patient.deceasedBoolean\", \"Patient.deceasedDateTime\"],\n\t},\n\t\"Patient.deceasedBoolean\": {\n\t\tname: \"deceasedBoolean\",\n\t\tmeta: {\n\t\t\ttype: \"boolean\",\n\t\t},\n\t},\n\t\"Patient.deceasedDateTime\": {\n\t\tname: \"deceasedDateTime\",\n\t\tmeta: {\n\t\t\ttype: \"dateTime\",\n\t\t\tlastNode: true,\n\t\t},\n\t},\n\t\"Patient.address\": {\n\t\tname: \"address\",\n\t\tmeta: {\n\t\t\ttype: \"Address\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"*\",\n\t\t\tisSummary: true,\n\t\t\tdesc: \"An address for the individual\",\n\t\t},\n\t},\n\t\"Patient.maritalStatus\": {\n\t\tname: \"maritalStatus\",\n\t\tmeta: {\n\t\t\ttype: \"CodeableConcept\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"1\",\n\t\t\tdesc: \"Marital (civil) status of a patient\",\n\t\t},\n\t},\n\t\"Patient.multipleBirth\": {\n\t\tname: \"multipleBirth[x]\",\n\t\tmeta: {\n\t\t\ttype: \"union\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"1\",\n\t\t\tdesc: \"Whether patient is part of a multiple birth\",\n\t\t},\n\t\tchildren: [\"Patient.multipleBirthBoolean\", \"Patient.multipleBirthInteger\"],\n\t},\n\t\"Patient.multipleBirthBoolean\": {\n\t\tname: \"multipleBirthBoolean\",\n\t\tmeta: {\n\t\t\ttype: \"boolean\",\n\t\t},\n\t},\n\t\"Patient.multipleBirthInteger\": {\n\t\tname: \"multipleBirthInteger\",\n\t\tmeta: {\n\t\t\ttype: \"integer\",\n\t\t\tlastNode: true,\n\t\t},\n\t},\n\t\"Patient.photo\": {\n\t\tname: \"photo\",\n\t\tmeta: {\n\t\t\ttype: \"Attachment\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"*\",\n\t\t\tdesc: \"Image of the patient\",\n\t\t},\n\t},\n\t\"Patient.contact\": {\n\t\tname: \"contact\",\n\t\tmeta: {\n\t\t\ttype: \"BackboneElement\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"*\",\n\t\t\tdesc: \"A contact party (e.g. guardian, partner, friend) for the patient\",\n\t\t},\n\t\tchildren: [\n\t\t\t\"Patient.contact.relationship\",\n\t\t\t\"Patient.contact.name\",\n\t\t\t\"Patient.contact.telecom\",\n\t\t\t\"Patient.contact.address\",\n\t\t\t\"Patient.contact.gender\",\n\t\t\t\"Patient.contact.organization\",\n\t\t\t\"Patient.contact.period\",\n\t\t],\n\t},\n\t\"Patient.contact.relationship\": {\n\t\tname: \"relationship\",\n\t\tmeta: {\n\t\t\ttype: \"CodeableConcept\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"*\",\n\t\t\tdesc: \"The kind of relationship\",\n\t\t},\n\t},\n\t\"Patient.contact.name\": {\n\t\tname: \"name\",\n\t\tmeta: {\n\t\t\ttype: \"HumanName\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"1\",\n\t\t\tdesc: \"A name associated with the contact person\",\n\t\t},\n\t},\n\t\"Patient.contact.telecom\": {\n\t\tname: \"telecom\",\n\t\tmeta: {\n\t\t\ttype: \"ContactPoint\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"*\",\n\t\t\tdesc: \"A contact detail for the person\",\n\t\t},\n\t},\n\t\"Patient.contact.address\": {\n\t\tname: \"address\",\n\t\tmeta: {\n\t\t\ttype: \"Address\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"1\",\n\t\t\tdesc: \"Address for the contact person\",\n\t\t},\n\t},\n\t\"Patient.contact.gender\": {\n\t\tname: \"gender\",\n\t\tmeta: {\n\t\t\ttype: \"code\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"1\",\n\t\t\tdesc: \"male | female | other | unknown\",\n\t\t},\n\t},\n\t\"Patient.contact.organization\": {\n\t\tname: \"organization\",\n\t\tmeta: {\n\t\t\ttype: \"Reference\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"1\",\n\t\t\tdesc: \"Organization that is associated with the contact\",\n\t\t},\n\t},\n\t\"Patient.contact.period\": {\n\t\tname: \"period\",\n\t\tmeta: {\n\t\t\ttype: \"Period\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"1\",\n\t\t\tlastNode: true,\n\t\t\tdesc: \"The period during which this contact person or organization is valid to be contacted relating to this patient\",\n\t\t},\n\t},\n\t\"Patient.communication\": {\n\t\tname: \"communication\",\n\t\tmeta: {\n\t\t\ttype: \"BackboneElement\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"*\",\n\t\t\tdesc: \"A language which may be used to communicate with the patient about his or her health\",\n\t\t},\n\t\tchildren: [\n\t\t\t\"Patient.communication.language\",\n\t\t\t\"Patient.communication.preferred\",\n\t\t],\n\t},\n\t\"Patient.communication.language\": {\n\t\tname: \"language\",\n\t\tmeta: {\n\t\t\ttype: \"CodeableConcept\",\n\t\t\tmin: \"1\",\n\t\t\tmax: \"1\",\n\t\t\tdesc: \"The language which can be used to communicate with the patient about his or her health\",\n\t\t},\n\t},\n\t\"Patient.communication.preferred\": {\n\t\tname: \"preferred\",\n\t\tmeta: {\n\t\t\ttype: \"boolean\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"1\",\n\t\t\tlastNode: true,\n\t\t\tdesc: \"Language preference indicator\",\n\t\t},\n\t},\n\t\"Patient.generalPractitioner\": {\n\t\tname: \"generalPractitioner\",\n\t\tmeta: {\n\t\t\ttype: \"Reference\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"*\",\n\t\t\tdesc: \"Patient's nominated primary care provider\",\n\t\t},\n\t},\n\t\"Patient.managingOrganization\": {\n\t\tname: \"managingOrganization\",\n\t\tmeta: {\n\t\t\ttype: \"Reference\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"1\",\n\t\t\tisSummary: true,\n\t\t\tdesc: \"Organization that is the custodian of the patient record\",\n\t\t},\n\t},\n\t\"Patient.link\": {\n\t\tname: \"link\",\n\t\tmeta: {\n\t\t\ttype: \"BackboneElement\",\n\t\t\tmin: \"0\",\n\t\t\tmax: \"*\",\n\t\t\tisSummary: true,\n\t\t\tisModifier: true,\n\t\t\tdesc: \"Link to a Patient or RelatedPerson resource that concerns the same actual individual\",\n\t\t},\n\t\tchildren: [\"Patient.link.other\", \"Patient.link.type\"],\n\t},\n\t\"Patient.link.other\": {\n\t\tname: \"other\",\n\t\tmeta: {\n\t\t\ttype: \"Reference\",\n\t\t\tmin: \"1\",\n\t\t\tmax: \"1\",\n\t\t\tisSummary: true,\n\t\t\tdesc: \"The other patient or related person resource that the link refers to\",\n\t\t},\n\t},\n\t\"Patient.link.type\": {\n\t\tname: \"type\",\n\t\tmeta: {\n\t\t\ttype: \"code\",\n\t\t\tmin: \"1\",\n\t\t\tmax: \"1\",\n\t\t\tisSummary: true,\n\t\t\tlastNode: true,\n\t\t\tdesc: \"replaced-by | replaces | refer | seealso\",\n\t\t},\n\t},\n};\n\nexport const Default: Story = {\n\trender: () => <FhirStructureView tree={tree} />,\n};\n"],"names":["FhirStructureView","meta","title","component","tree","root","name","children","Patient","type","min","max","desc","isSummary","isModifier","lastNode","Default","render"],"mappings":";AACA,SAA6BA,iBAAiB,QAAQ,2BAAwB;AAG9E,MAAMC,OAAuC;IAC5CC,OAAO;IACPC,WAAWH;AACZ;AAEA,eAAeC,KAAK;AAIpB,MAAMG,OAAoD;IACzDC,MAAM;QACLC,MAAM;QACNC,UAAU;YAAC;SAAU;IACtB;IACAC,SAAS;QACRF,MAAM;QACNL,MAAM;YACLQ,MAAM;YACNC,KAAK;YACLC,KAAK;YACLC,MAAM;QACP;QACAL,UAAU;YACT;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;YACA;SACA;IACF;IACA,cAAc;QACbD,MAAM;QACNL,MAAM;YACLQ,MAAM;YACNC,KAAK;YACLC,KAAK;YACLE,WAAW;YACXD,MAAM;QACP;IACD;IACA,gBAAgB;QACfN,MAAM;QACNL,MAAM;YACLQ,MAAM;YACNC,KAAK;YACLC,KAAK;YACLE,WAAW;YACXD,MAAM;QACP;IACD;IACA,yBAAyB;QACxBN,MAAM;QACNL,MAAM;YACLQ,MAAM;YACNC,KAAK;YACLC,KAAK;YACLE,WAAW;YACXC,YAAY;YACZF,MAAM;QACP;IACD;IACA,oBAAoB;QACnBN,MAAM;QACNL,MAAM;YACLQ,MAAM;YACNC,KAAK;YACLC,KAAK;YACLC,MAAM;QACP;IACD;IACA,gBAAgB;QACfN,MAAM;QACNL,MAAM;YACLQ,MAAM;YACNC,KAAK;YACLC,KAAK;YACLC,MAAM;QACP;IACD;IACA,qBAAqB;QACpBN,MAAM;QACNL,MAAM;YACLQ,MAAM;YACNC,KAAK;YACLC,KAAK;YACLC,MAAM;QACP;IACD;IACA,qBAAqB;QACpBN,MAAM;QACNL,MAAM;YACLQ,MAAM;YACNC,KAAK;YACLC,KAAK;YACLC,MAAM;QACP;IACD;IACA,6BAA6B;QAC5BN,MAAM;QACNL,MAAM;YACLQ,MAAM;YACNC,KAAK;YACLC,KAAK;YACLE,WAAW;YACXC,YAAY;YACZF,MAAM;QACP;IACD;IACA,sBAAsB;QACrBN,MAAM;QACNL,MAAM;YACLQ,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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
declare const iconButtonVariants: (props?: ({
|
|
4
|
+
variant?: "link" | "ghost" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export interface IconButtonProps extends Omit<React.ComponentProps<"button">, "children">, VariantProps<typeof iconButtonVariants> {
|
|
7
|
+
icon: React.ReactNode;
|
|
8
|
+
"aria-label": string;
|
|
9
|
+
}
|
|
10
|
+
declare function IconButton({ icon, className, variant, ...props }: IconButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { IconButton, iconButtonVariants };
|
|
12
|
+
//# sourceMappingURL=icon-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../src/components/icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,QAAA,MAAM,kBAAkB;;8EAUtB,CAAC;AAGH,MAAM,WAAW,eAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,EACvD,YAAY,CAAC,OAAO,kBAAkB,CAAC;IACxC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACrB;AAGD,iBAAS,UAAU,CAAC,EACnB,IAAI,EACJ,SAAS,EACT,OAAiB,EACjB,GAAG,KAAK,EACR,EAAE,eAAe,2CAWjB;AAED,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { buttonVariants } from "../shadcn/components/ui/button.js";
|
|
4
|
+
import { cn } from "../shadcn/lib/utils.js";
|
|
5
|
+
// Styles
|
|
6
|
+
const iconButtonBaseStyles = cn(// Size
|
|
7
|
+
"size-6", // Spacing
|
|
8
|
+
"p-0", // SVG
|
|
9
|
+
"[&>svg]:size-4", "[&>svg]:pointer-events-none", "[&>svg]:shrink-0");
|
|
10
|
+
const iconButtonVariants = cva(iconButtonBaseStyles, {
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
ghost: buttonVariants({
|
|
14
|
+
variant: "ghost",
|
|
15
|
+
size: "small"
|
|
16
|
+
}),
|
|
17
|
+
link: buttonVariants({
|
|
18
|
+
variant: "link",
|
|
19
|
+
size: "small"
|
|
20
|
+
})
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
variant: "ghost"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
// Component
|
|
28
|
+
function IconButton({ icon, className, variant = "ghost", ...props }) {
|
|
29
|
+
return /*#__PURE__*/ _jsx("button", {
|
|
30
|
+
type: "button",
|
|
31
|
+
"data-slot": "icon-button",
|
|
32
|
+
className: cn(iconButtonVariants({
|
|
33
|
+
variant
|
|
34
|
+
}), className),
|
|
35
|
+
...props,
|
|
36
|
+
children: icon
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
export { IconButton, iconButtonVariants };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=icon-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/icon-button.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport type React from \"react\";\nimport { buttonVariants } from \"#shadcn/components/ui/button\";\nimport { cn } from \"#shadcn/lib/utils\";\n\n// Styles\nconst iconButtonBaseStyles = cn(\n\t// Size\n\t\"size-6\",\n\t// Spacing\n\t\"p-0\",\n\t// SVG\n\t\"[&>svg]:size-4\",\n\t\"[&>svg]:pointer-events-none\",\n\t\"[&>svg]:shrink-0\",\n);\n\nconst iconButtonVariants = cva(iconButtonBaseStyles, {\n\tvariants: {\n\t\tvariant: {\n\t\t\tghost: buttonVariants({ variant: \"ghost\", size: \"small\" }),\n\t\t\tlink: buttonVariants({ variant: \"link\", size: \"small\" }),\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: \"ghost\",\n\t},\n});\n\n// Interface\nexport interface IconButtonProps\n\textends Omit<React.ComponentProps<\"button\">, \"children\">,\n\t\tVariantProps<typeof iconButtonVariants> {\n\ticon: React.ReactNode;\n\t\"aria-label\": string;\n}\n\n// Component\nfunction IconButton({\n\ticon,\n\tclassName,\n\tvariant = \"ghost\",\n\t...props\n}: IconButtonProps) {\n\treturn (\n\t\t<button\n\t\t\ttype=\"button\"\n\t\t\tdata-slot=\"icon-button\"\n\t\t\tclassName={cn(iconButtonVariants({ variant }), className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{icon}\n\t\t</button>\n\t);\n}\n\nexport { IconButton, iconButtonVariants };\n"],"names":["cva","buttonVariants","cn","iconButtonBaseStyles","iconButtonVariants","variants","variant","ghost","size","link","defaultVariants","IconButton","icon","className","props","button","type","data-slot"],"mappings":";AAAA,SAASA,GAAG,QAA2B,2BAA2B;AAElE,SAASC,cAAc,QAAQ,oCAA+B;AAC9D,SAASC,EAAE,QAAQ,yBAAoB;AAEvC,SAAS;AACT,MAAMC,uBAAuBD,GAC5B,OAAO;AACP,UACA,UAAU;AACV,OACA,MAAM;AACN,kBACA,+BACA;AAGD,MAAME,qBAAqBJ,IAAIG,sBAAsB;IACpDE,UAAU;QACTC,SAAS;YACRC,OAAON,eAAe;gBAAEK,SAAS;gBAASE,MAAM;YAAQ;YACxDC,MAAMR,eAAe;gBAAEK,SAAS;gBAAQE,MAAM;YAAQ;QACvD;IACD;IACAE,iBAAiB;QAChBJ,SAAS;IACV;AACD;AAUA,YAAY;AACZ,SAASK,WAAW,EACnBC,IAAI,EACJC,SAAS,EACTP,UAAU,OAAO,EACjB,GAAGQ,OACc;IACjB,qBACC,KAACC;QACAC,MAAK;QACLC,aAAU;QACVJ,WAAWX,GAAGE,mBAAmB;YAAEE;QAAQ,IAAIO;QAC9C,GAAGC,KAAK;kBAERF;;AAGJ;AAEA,SAASD,UAAU,EAAEP,kBAAkB,GAAG"}
|