@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,104 @@
|
|
|
1
|
+
import { CalendarIcon } from "lucide-react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Button } from "#shadcn/components/ui/button";
|
|
4
|
+
import { Calendar } from "#shadcn/components/ui/calendar";
|
|
5
|
+
import { Input } from "#shadcn/components/ui/input";
|
|
6
|
+
import {
|
|
7
|
+
Popover,
|
|
8
|
+
PopoverContent,
|
|
9
|
+
PopoverTrigger,
|
|
10
|
+
} from "#shadcn/components/ui/popover";
|
|
11
|
+
import { cn } from "#shadcn/lib/utils";
|
|
12
|
+
|
|
13
|
+
function formatDate(date: Date | undefined): string {
|
|
14
|
+
if (!date) return "";
|
|
15
|
+
const d = date.getDate().toString().padStart(2, "0");
|
|
16
|
+
const m = (date.getMonth() + 1).toString().padStart(2, "0");
|
|
17
|
+
const y = date.getFullYear();
|
|
18
|
+
return `${d}.${m}.${y}`;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function parseDate(value: string): Date | undefined {
|
|
22
|
+
if (!value) return undefined;
|
|
23
|
+
const parts = value.split(".");
|
|
24
|
+
if (parts.length === 3) {
|
|
25
|
+
const [d, m, y] = parts;
|
|
26
|
+
const date = new Date(`${y}-${m}-${d}`);
|
|
27
|
+
if (!Number.isNaN(date.getTime())) return date;
|
|
28
|
+
}
|
|
29
|
+
const date = new Date(value);
|
|
30
|
+
if (!Number.isNaN(date.getTime())) return date;
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface DatePickerInputProps {
|
|
35
|
+
value: string;
|
|
36
|
+
onChange: (value: string) => void;
|
|
37
|
+
placeholder?: string;
|
|
38
|
+
className?: string;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function DatePickerInput({
|
|
43
|
+
value,
|
|
44
|
+
onChange,
|
|
45
|
+
placeholder = "dd.mm.yyyy",
|
|
46
|
+
className,
|
|
47
|
+
disabled,
|
|
48
|
+
}: DatePickerInputProps) {
|
|
49
|
+
const [open, setOpen] = React.useState(false);
|
|
50
|
+
const selectedDate = parseDate(value);
|
|
51
|
+
const [month, setMonth] = React.useState<Date>(selectedDate ?? new Date());
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<div className={cn("relative", className)}>
|
|
55
|
+
<Input
|
|
56
|
+
type="text"
|
|
57
|
+
placeholder={placeholder}
|
|
58
|
+
value={value}
|
|
59
|
+
disabled={disabled}
|
|
60
|
+
onChange={(e) => onChange(e.target.value)}
|
|
61
|
+
onKeyDown={(e) => {
|
|
62
|
+
if (e.key === "ArrowDown") {
|
|
63
|
+
e.preventDefault();
|
|
64
|
+
setOpen(true);
|
|
65
|
+
}
|
|
66
|
+
}}
|
|
67
|
+
rightSlot={
|
|
68
|
+
<Popover open={open} onOpenChange={setOpen}>
|
|
69
|
+
<PopoverTrigger asChild>
|
|
70
|
+
<Button
|
|
71
|
+
variant="ghost"
|
|
72
|
+
size="small"
|
|
73
|
+
className="p-0 size-5"
|
|
74
|
+
aria-label="Select date"
|
|
75
|
+
disabled={disabled}
|
|
76
|
+
onClick={(e) => {
|
|
77
|
+
e.preventDefault();
|
|
78
|
+
setOpen((o) => !o);
|
|
79
|
+
}}
|
|
80
|
+
>
|
|
81
|
+
<CalendarIcon className="size-3.5" />
|
|
82
|
+
</Button>
|
|
83
|
+
</PopoverTrigger>
|
|
84
|
+
<PopoverContent className="w-auto p-0" align="end" sideOffset={10}>
|
|
85
|
+
<Calendar
|
|
86
|
+
mode="single"
|
|
87
|
+
selected={selectedDate}
|
|
88
|
+
month={month}
|
|
89
|
+
onMonthChange={(m) => setMonth(m)}
|
|
90
|
+
onSelect={(date) => {
|
|
91
|
+
onChange(formatDate(date));
|
|
92
|
+
if (date) setMonth(date);
|
|
93
|
+
setOpen(false);
|
|
94
|
+
}}
|
|
95
|
+
/>
|
|
96
|
+
</PopoverContent>
|
|
97
|
+
</Popover>
|
|
98
|
+
}
|
|
99
|
+
/>
|
|
100
|
+
</div>
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export { DatePickerInput, type DatePickerInputProps };
|
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { type FhirStructure, FhirStructureView } from "./fhir-structure-view";
|
|
3
|
+
import type { TreeViewItem } from "./tree-view";
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof FhirStructureView> = {
|
|
6
|
+
title: "Component/FHIRStructureView",
|
|
7
|
+
component: FhirStructureView,
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export default meta;
|
|
11
|
+
|
|
12
|
+
type Story = StoryObj<typeof FhirStructureView>;
|
|
13
|
+
|
|
14
|
+
const tree: Record<string, TreeViewItem<FhirStructure>> = {
|
|
15
|
+
root: {
|
|
16
|
+
name: "Root",
|
|
17
|
+
children: ["Patient"],
|
|
18
|
+
},
|
|
19
|
+
Patient: {
|
|
20
|
+
name: "Patient",
|
|
21
|
+
meta: {
|
|
22
|
+
type: "Resource",
|
|
23
|
+
min: "0",
|
|
24
|
+
max: "*",
|
|
25
|
+
desc: "Information about an individual or animal receiving health care services",
|
|
26
|
+
},
|
|
27
|
+
children: [
|
|
28
|
+
"Patient.id",
|
|
29
|
+
"Patient.meta",
|
|
30
|
+
"Patient.implicitRules",
|
|
31
|
+
"Patient.language",
|
|
32
|
+
"Patient.text",
|
|
33
|
+
"Patient.contained",
|
|
34
|
+
"Patient.extension",
|
|
35
|
+
"Patient.modifierExtension",
|
|
36
|
+
"Patient.identifier",
|
|
37
|
+
"Patient.active",
|
|
38
|
+
"Patient.name",
|
|
39
|
+
"Patient.telecom",
|
|
40
|
+
"Patient.gender",
|
|
41
|
+
"Patient.birthDate",
|
|
42
|
+
"Patient.deceased",
|
|
43
|
+
"Patient.address",
|
|
44
|
+
"Patient.maritalStatus",
|
|
45
|
+
"Patient.multipleBirth",
|
|
46
|
+
"Patient.photo",
|
|
47
|
+
"Patient.contact",
|
|
48
|
+
"Patient.communication",
|
|
49
|
+
"Patient.generalPractitioner",
|
|
50
|
+
"Patient.managingOrganization",
|
|
51
|
+
"Patient.link",
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
"Patient.id": {
|
|
55
|
+
name: "id",
|
|
56
|
+
meta: {
|
|
57
|
+
type: "id",
|
|
58
|
+
min: "0",
|
|
59
|
+
max: "1",
|
|
60
|
+
isSummary: true,
|
|
61
|
+
desc: "Logical id of this artifact",
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
"Patient.meta": {
|
|
65
|
+
name: "meta",
|
|
66
|
+
meta: {
|
|
67
|
+
type: "Meta",
|
|
68
|
+
min: "0",
|
|
69
|
+
max: "1",
|
|
70
|
+
isSummary: true,
|
|
71
|
+
desc: "Metadata about the resource",
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
"Patient.implicitRules": {
|
|
75
|
+
name: "implicitRules",
|
|
76
|
+
meta: {
|
|
77
|
+
type: "uri",
|
|
78
|
+
min: "0",
|
|
79
|
+
max: "1",
|
|
80
|
+
isSummary: true,
|
|
81
|
+
isModifier: true,
|
|
82
|
+
desc: "A set of rules under which this content was created",
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
"Patient.language": {
|
|
86
|
+
name: "language",
|
|
87
|
+
meta: {
|
|
88
|
+
type: "code",
|
|
89
|
+
min: "0",
|
|
90
|
+
max: "1",
|
|
91
|
+
desc: "Language of the resource content",
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
"Patient.text": {
|
|
95
|
+
name: "text",
|
|
96
|
+
meta: {
|
|
97
|
+
type: "Narrative",
|
|
98
|
+
min: "0",
|
|
99
|
+
max: "1",
|
|
100
|
+
desc: "Text summary of the resource, for human interpretation",
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
"Patient.contained": {
|
|
104
|
+
name: "contained",
|
|
105
|
+
meta: {
|
|
106
|
+
type: "Resource",
|
|
107
|
+
min: "0",
|
|
108
|
+
max: "*",
|
|
109
|
+
desc: "Contained, inline Resources",
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
"Patient.extension": {
|
|
113
|
+
name: "extension",
|
|
114
|
+
meta: {
|
|
115
|
+
type: "Extension",
|
|
116
|
+
min: "0",
|
|
117
|
+
max: "*",
|
|
118
|
+
desc: "Additional content defined by implementations",
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
"Patient.modifierExtension": {
|
|
122
|
+
name: "modifierExtension",
|
|
123
|
+
meta: {
|
|
124
|
+
type: "Extension",
|
|
125
|
+
min: "0",
|
|
126
|
+
max: "*",
|
|
127
|
+
isSummary: true,
|
|
128
|
+
isModifier: true,
|
|
129
|
+
desc: "Extensions that cannot be ignored",
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
"Patient.identifier": {
|
|
133
|
+
name: "identifier",
|
|
134
|
+
meta: {
|
|
135
|
+
type: "Identifier",
|
|
136
|
+
min: "0",
|
|
137
|
+
max: "*",
|
|
138
|
+
isSummary: true,
|
|
139
|
+
desc: "An identifier for this patient",
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
"Patient.active": {
|
|
143
|
+
name: "active",
|
|
144
|
+
meta: {
|
|
145
|
+
type: "boolean",
|
|
146
|
+
min: "0",
|
|
147
|
+
max: "1",
|
|
148
|
+
isSummary: true,
|
|
149
|
+
isModifier: true,
|
|
150
|
+
desc: "Whether this patient's record is in active use",
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
"Patient.name": {
|
|
154
|
+
name: "name",
|
|
155
|
+
meta: {
|
|
156
|
+
type: "HumanName",
|
|
157
|
+
min: "0",
|
|
158
|
+
max: "*",
|
|
159
|
+
isSummary: true,
|
|
160
|
+
desc: "A name associated with the patient",
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
"Patient.telecom": {
|
|
164
|
+
name: "telecom",
|
|
165
|
+
meta: {
|
|
166
|
+
type: "ContactPoint",
|
|
167
|
+
min: "0",
|
|
168
|
+
max: "*",
|
|
169
|
+
isSummary: true,
|
|
170
|
+
desc: "A contact detail for the individual",
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
"Patient.gender": {
|
|
174
|
+
name: "gender",
|
|
175
|
+
meta: {
|
|
176
|
+
type: "code",
|
|
177
|
+
min: "0",
|
|
178
|
+
max: "1",
|
|
179
|
+
isSummary: true,
|
|
180
|
+
desc: "male | female | other | unknown",
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
"Patient.birthDate": {
|
|
184
|
+
name: "birthDate",
|
|
185
|
+
meta: {
|
|
186
|
+
type: "date",
|
|
187
|
+
min: "0",
|
|
188
|
+
max: "1",
|
|
189
|
+
isSummary: true,
|
|
190
|
+
desc: "The date of birth for the individual",
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
"Patient.deceased": {
|
|
194
|
+
name: "deceased[x]",
|
|
195
|
+
meta: {
|
|
196
|
+
type: "union",
|
|
197
|
+
min: "0",
|
|
198
|
+
max: "1",
|
|
199
|
+
isSummary: true,
|
|
200
|
+
isModifier: true,
|
|
201
|
+
desc: "Indicates if the individual is deceased or not",
|
|
202
|
+
},
|
|
203
|
+
children: ["Patient.deceasedBoolean", "Patient.deceasedDateTime"],
|
|
204
|
+
},
|
|
205
|
+
"Patient.deceasedBoolean": {
|
|
206
|
+
name: "deceasedBoolean",
|
|
207
|
+
meta: {
|
|
208
|
+
type: "boolean",
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
"Patient.deceasedDateTime": {
|
|
212
|
+
name: "deceasedDateTime",
|
|
213
|
+
meta: {
|
|
214
|
+
type: "dateTime",
|
|
215
|
+
lastNode: true,
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
"Patient.address": {
|
|
219
|
+
name: "address",
|
|
220
|
+
meta: {
|
|
221
|
+
type: "Address",
|
|
222
|
+
min: "0",
|
|
223
|
+
max: "*",
|
|
224
|
+
isSummary: true,
|
|
225
|
+
desc: "An address for the individual",
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
"Patient.maritalStatus": {
|
|
229
|
+
name: "maritalStatus",
|
|
230
|
+
meta: {
|
|
231
|
+
type: "CodeableConcept",
|
|
232
|
+
min: "0",
|
|
233
|
+
max: "1",
|
|
234
|
+
desc: "Marital (civil) status of a patient",
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
"Patient.multipleBirth": {
|
|
238
|
+
name: "multipleBirth[x]",
|
|
239
|
+
meta: {
|
|
240
|
+
type: "union",
|
|
241
|
+
min: "0",
|
|
242
|
+
max: "1",
|
|
243
|
+
desc: "Whether patient is part of a multiple birth",
|
|
244
|
+
},
|
|
245
|
+
children: ["Patient.multipleBirthBoolean", "Patient.multipleBirthInteger"],
|
|
246
|
+
},
|
|
247
|
+
"Patient.multipleBirthBoolean": {
|
|
248
|
+
name: "multipleBirthBoolean",
|
|
249
|
+
meta: {
|
|
250
|
+
type: "boolean",
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
"Patient.multipleBirthInteger": {
|
|
254
|
+
name: "multipleBirthInteger",
|
|
255
|
+
meta: {
|
|
256
|
+
type: "integer",
|
|
257
|
+
lastNode: true,
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
"Patient.photo": {
|
|
261
|
+
name: "photo",
|
|
262
|
+
meta: {
|
|
263
|
+
type: "Attachment",
|
|
264
|
+
min: "0",
|
|
265
|
+
max: "*",
|
|
266
|
+
desc: "Image of the patient",
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
"Patient.contact": {
|
|
270
|
+
name: "contact",
|
|
271
|
+
meta: {
|
|
272
|
+
type: "BackboneElement",
|
|
273
|
+
min: "0",
|
|
274
|
+
max: "*",
|
|
275
|
+
desc: "A contact party (e.g. guardian, partner, friend) for the patient",
|
|
276
|
+
},
|
|
277
|
+
children: [
|
|
278
|
+
"Patient.contact.relationship",
|
|
279
|
+
"Patient.contact.name",
|
|
280
|
+
"Patient.contact.telecom",
|
|
281
|
+
"Patient.contact.address",
|
|
282
|
+
"Patient.contact.gender",
|
|
283
|
+
"Patient.contact.organization",
|
|
284
|
+
"Patient.contact.period",
|
|
285
|
+
],
|
|
286
|
+
},
|
|
287
|
+
"Patient.contact.relationship": {
|
|
288
|
+
name: "relationship",
|
|
289
|
+
meta: {
|
|
290
|
+
type: "CodeableConcept",
|
|
291
|
+
min: "0",
|
|
292
|
+
max: "*",
|
|
293
|
+
desc: "The kind of relationship",
|
|
294
|
+
},
|
|
295
|
+
},
|
|
296
|
+
"Patient.contact.name": {
|
|
297
|
+
name: "name",
|
|
298
|
+
meta: {
|
|
299
|
+
type: "HumanName",
|
|
300
|
+
min: "0",
|
|
301
|
+
max: "1",
|
|
302
|
+
desc: "A name associated with the contact person",
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
"Patient.contact.telecom": {
|
|
306
|
+
name: "telecom",
|
|
307
|
+
meta: {
|
|
308
|
+
type: "ContactPoint",
|
|
309
|
+
min: "0",
|
|
310
|
+
max: "*",
|
|
311
|
+
desc: "A contact detail for the person",
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
"Patient.contact.address": {
|
|
315
|
+
name: "address",
|
|
316
|
+
meta: {
|
|
317
|
+
type: "Address",
|
|
318
|
+
min: "0",
|
|
319
|
+
max: "1",
|
|
320
|
+
desc: "Address for the contact person",
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
"Patient.contact.gender": {
|
|
324
|
+
name: "gender",
|
|
325
|
+
meta: {
|
|
326
|
+
type: "code",
|
|
327
|
+
min: "0",
|
|
328
|
+
max: "1",
|
|
329
|
+
desc: "male | female | other | unknown",
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
"Patient.contact.organization": {
|
|
333
|
+
name: "organization",
|
|
334
|
+
meta: {
|
|
335
|
+
type: "Reference",
|
|
336
|
+
min: "0",
|
|
337
|
+
max: "1",
|
|
338
|
+
desc: "Organization that is associated with the contact",
|
|
339
|
+
},
|
|
340
|
+
},
|
|
341
|
+
"Patient.contact.period": {
|
|
342
|
+
name: "period",
|
|
343
|
+
meta: {
|
|
344
|
+
type: "Period",
|
|
345
|
+
min: "0",
|
|
346
|
+
max: "1",
|
|
347
|
+
lastNode: true,
|
|
348
|
+
desc: "The period during which this contact person or organization is valid to be contacted relating to this patient",
|
|
349
|
+
},
|
|
350
|
+
},
|
|
351
|
+
"Patient.communication": {
|
|
352
|
+
name: "communication",
|
|
353
|
+
meta: {
|
|
354
|
+
type: "BackboneElement",
|
|
355
|
+
min: "0",
|
|
356
|
+
max: "*",
|
|
357
|
+
desc: "A language which may be used to communicate with the patient about his or her health",
|
|
358
|
+
},
|
|
359
|
+
children: [
|
|
360
|
+
"Patient.communication.language",
|
|
361
|
+
"Patient.communication.preferred",
|
|
362
|
+
],
|
|
363
|
+
},
|
|
364
|
+
"Patient.communication.language": {
|
|
365
|
+
name: "language",
|
|
366
|
+
meta: {
|
|
367
|
+
type: "CodeableConcept",
|
|
368
|
+
min: "1",
|
|
369
|
+
max: "1",
|
|
370
|
+
desc: "The language which can be used to communicate with the patient about his or her health",
|
|
371
|
+
},
|
|
372
|
+
},
|
|
373
|
+
"Patient.communication.preferred": {
|
|
374
|
+
name: "preferred",
|
|
375
|
+
meta: {
|
|
376
|
+
type: "boolean",
|
|
377
|
+
min: "0",
|
|
378
|
+
max: "1",
|
|
379
|
+
lastNode: true,
|
|
380
|
+
desc: "Language preference indicator",
|
|
381
|
+
},
|
|
382
|
+
},
|
|
383
|
+
"Patient.generalPractitioner": {
|
|
384
|
+
name: "generalPractitioner",
|
|
385
|
+
meta: {
|
|
386
|
+
type: "Reference",
|
|
387
|
+
min: "0",
|
|
388
|
+
max: "*",
|
|
389
|
+
desc: "Patient's nominated primary care provider",
|
|
390
|
+
},
|
|
391
|
+
},
|
|
392
|
+
"Patient.managingOrganization": {
|
|
393
|
+
name: "managingOrganization",
|
|
394
|
+
meta: {
|
|
395
|
+
type: "Reference",
|
|
396
|
+
min: "0",
|
|
397
|
+
max: "1",
|
|
398
|
+
isSummary: true,
|
|
399
|
+
desc: "Organization that is the custodian of the patient record",
|
|
400
|
+
},
|
|
401
|
+
},
|
|
402
|
+
"Patient.link": {
|
|
403
|
+
name: "link",
|
|
404
|
+
meta: {
|
|
405
|
+
type: "BackboneElement",
|
|
406
|
+
min: "0",
|
|
407
|
+
max: "*",
|
|
408
|
+
isSummary: true,
|
|
409
|
+
isModifier: true,
|
|
410
|
+
desc: "Link to a Patient or RelatedPerson resource that concerns the same actual individual",
|
|
411
|
+
},
|
|
412
|
+
children: ["Patient.link.other", "Patient.link.type"],
|
|
413
|
+
},
|
|
414
|
+
"Patient.link.other": {
|
|
415
|
+
name: "other",
|
|
416
|
+
meta: {
|
|
417
|
+
type: "Reference",
|
|
418
|
+
min: "1",
|
|
419
|
+
max: "1",
|
|
420
|
+
isSummary: true,
|
|
421
|
+
desc: "The other patient or related person resource that the link refers to",
|
|
422
|
+
},
|
|
423
|
+
},
|
|
424
|
+
"Patient.link.type": {
|
|
425
|
+
name: "type",
|
|
426
|
+
meta: {
|
|
427
|
+
type: "code",
|
|
428
|
+
min: "1",
|
|
429
|
+
max: "1",
|
|
430
|
+
isSummary: true,
|
|
431
|
+
lastNode: true,
|
|
432
|
+
desc: "replaced-by | replaces | refer | seealso",
|
|
433
|
+
},
|
|
434
|
+
},
|
|
435
|
+
};
|
|
436
|
+
|
|
437
|
+
export const Default: Story = {
|
|
438
|
+
render: () => <FhirStructureView tree={tree} />,
|
|
439
|
+
};
|