@health-samurai/react-components 0.0.0-alpha.1
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/README.md +1 -0
- package/dist/bundle.css +5525 -0
- package/dist/src/components/code-editor/index.d.ts +5 -0
- package/dist/src/components/code-editor/index.d.ts.map +1 -0
- package/dist/src/components/code-editor/index.js +109 -0
- package/dist/src/components/code-editor/index.js.map +1 -0
- package/dist/src/components/code-editor.stories.d.ts +7 -0
- package/dist/src/components/code-editor.stories.d.ts.map +1 -0
- package/dist/src/components/code-editor.stories.js +23 -0
- package/dist/src/components/code-editor.stories.js.map +1 -0
- package/dist/src/components/copy-icon.d.ts +6 -0
- package/dist/src/components/copy-icon.d.ts.map +1 -0
- package/dist/src/components/copy-icon.js +21 -0
- package/dist/src/components/copy-icon.js.map +1 -0
- package/dist/src/components/request-line-editor.d.ts +38 -0
- package/dist/src/components/request-line-editor.d.ts.map +1 -0
- package/dist/src/components/request-line-editor.js +40 -0
- package/dist/src/components/request-line-editor.js.map +1 -0
- package/dist/src/components/request-line-editor.stories.d.ts +11 -0
- package/dist/src/components/request-line-editor.stories.d.ts.map +1 -0
- package/dist/src/components/request-line-editor.stories.js +67 -0
- package/dist/src/components/request-line-editor.stories.js.map +1 -0
- package/dist/src/deps.css +3 -0
- package/dist/src/full.css +2 -0
- package/dist/src/index.css +98 -0
- package/dist/src/index.d.ts +51 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +53 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/index.stories.d.ts +14 -0
- package/dist/src/index.stories.d.ts.map +1 -0
- package/dist/src/index.stories.js +16 -0
- package/dist/src/index.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/accordion.d.ts +8 -0
- package/dist/src/shadcn/components/ui/accordion.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/accordion.js +18 -0
- package/dist/src/shadcn/components/ui/accordion.js.map +1 -0
- package/dist/src/shadcn/components/ui/accordion.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/accordion.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/accordion.stories.js +10 -0
- package/dist/src/shadcn/components/ui/accordion.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/alert-dialog.d.ts +15 -0
- package/dist/src/shadcn/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/alert-dialog.js +39 -0
- package/dist/src/shadcn/components/ui/alert-dialog.js.map +1 -0
- package/dist/src/shadcn/components/ui/alert-dialog.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/alert-dialog.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/alert-dialog.stories.js +11 -0
- package/dist/src/shadcn/components/ui/alert-dialog.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/alert.d.ts +10 -0
- package/dist/src/shadcn/components/ui/alert.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/alert.js +25 -0
- package/dist/src/shadcn/components/ui/alert.js.map +1 -0
- package/dist/src/shadcn/components/ui/alert.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/alert.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/alert.stories.js +11 -0
- package/dist/src/shadcn/components/ui/alert.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/aspect-ratio.d.ts +4 -0
- package/dist/src/shadcn/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/aspect-ratio.js +7 -0
- package/dist/src/shadcn/components/ui/aspect-ratio.js.map +1 -0
- package/dist/src/shadcn/components/ui/aspect-ratio.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/aspect-ratio.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/aspect-ratio.stories.js +10 -0
- package/dist/src/shadcn/components/ui/aspect-ratio.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/avatar.d.ts +7 -0
- package/dist/src/shadcn/components/ui/avatar.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/avatar.js +14 -0
- package/dist/src/shadcn/components/ui/avatar.js.map +1 -0
- package/dist/src/shadcn/components/ui/avatar.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/avatar.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/avatar.stories.js +10 -0
- package/dist/src/shadcn/components/ui/avatar.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/badge.d.ts +10 -0
- package/dist/src/shadcn/components/ui/badge.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/badge.js +23 -0
- package/dist/src/shadcn/components/ui/badge.js.map +1 -0
- package/dist/src/shadcn/components/ui/badge.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/badge.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/badge.stories.js +11 -0
- package/dist/src/shadcn/components/ui/badge.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/breadcrumb.d.ts +12 -0
- package/dist/src/shadcn/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/breadcrumb.js +31 -0
- package/dist/src/shadcn/components/ui/breadcrumb.js.map +1 -0
- package/dist/src/shadcn/components/ui/breadcrumb.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/breadcrumb.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/breadcrumb.stories.js +11 -0
- package/dist/src/shadcn/components/ui/breadcrumb.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/button.d.ts +13 -0
- package/dist/src/shadcn/components/ui/button.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/button.js +55 -0
- package/dist/src/shadcn/components/ui/button.js.map +1 -0
- package/dist/src/shadcn/components/ui/button.stories.d.ts +23 -0
- package/dist/src/shadcn/components/ui/button.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/button.stories.js +26 -0
- package/dist/src/shadcn/components/ui/button.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/calendar.d.ts +9 -0
- package/dist/src/shadcn/components/ui/calendar.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/calendar.js +74 -0
- package/dist/src/shadcn/components/ui/calendar.js.map +1 -0
- package/dist/src/shadcn/components/ui/calendar.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/calendar.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/calendar.stories.js +14 -0
- package/dist/src/shadcn/components/ui/calendar.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/card.d.ts +10 -0
- package/dist/src/shadcn/components/ui/card.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/card.js +25 -0
- package/dist/src/shadcn/components/ui/card.js.map +1 -0
- package/dist/src/shadcn/components/ui/card.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/card.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/card.stories.js +13 -0
- package/dist/src/shadcn/components/ui/card.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/carousel.d.ts +20 -0
- package/dist/src/shadcn/components/ui/carousel.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/carousel.js +93 -0
- package/dist/src/shadcn/components/ui/carousel.js.map +1 -0
- package/dist/src/shadcn/components/ui/carousel.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/carousel.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/carousel.stories.js +13 -0
- package/dist/src/shadcn/components/ui/carousel.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/chart.d.ts +41 -0
- package/dist/src/shadcn/components/ui/chart.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/chart.js +130 -0
- package/dist/src/shadcn/components/ui/chart.js.map +1 -0
- package/dist/src/shadcn/components/ui/chart.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/chart.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/chart.stories.js +29 -0
- package/dist/src/shadcn/components/ui/chart.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/checkbox.d.ts +5 -0
- package/dist/src/shadcn/components/ui/checkbox.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/checkbox.js +9 -0
- package/dist/src/shadcn/components/ui/checkbox.js.map +1 -0
- package/dist/src/shadcn/components/ui/checkbox.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/checkbox.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/checkbox.stories.js +11 -0
- package/dist/src/shadcn/components/ui/checkbox.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/collapsible.d.ts +6 -0
- package/dist/src/shadcn/components/ui/collapsible.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/collapsible.js +13 -0
- package/dist/src/shadcn/components/ui/collapsible.js.map +1 -0
- package/dist/src/shadcn/components/ui/collapsible.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/collapsible.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/collapsible.stories.js +16 -0
- package/dist/src/shadcn/components/ui/collapsible.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/command.d.ts +19 -0
- package/dist/src/shadcn/components/ui/command.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/command.js +34 -0
- package/dist/src/shadcn/components/ui/command.js.map +1 -0
- package/dist/src/shadcn/components/ui/command.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/command.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/command.stories.js +11 -0
- package/dist/src/shadcn/components/ui/command.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/context-menu.d.ts +26 -0
- package/dist/src/shadcn/components/ui/context-menu.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/context-menu.js +51 -0
- package/dist/src/shadcn/components/ui/context-menu.js.map +1 -0
- package/dist/src/shadcn/components/ui/context-menu.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/context-menu.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/context-menu.stories.js +10 -0
- package/dist/src/shadcn/components/ui/context-menu.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/dialog.d.ts +16 -0
- package/dist/src/shadcn/components/ui/dialog.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/dialog.js +36 -0
- package/dist/src/shadcn/components/ui/dialog.js.map +1 -0
- package/dist/src/shadcn/components/ui/dialog.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/dialog.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/dialog.stories.js +13 -0
- package/dist/src/shadcn/components/ui/dialog.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/drawer.d.ts +14 -0
- package/dist/src/shadcn/components/ui/drawer.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/drawer.js +35 -0
- package/dist/src/shadcn/components/ui/drawer.js.map +1 -0
- package/dist/src/shadcn/components/ui/drawer.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/drawer.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/drawer.stories.js +38 -0
- package/dist/src/shadcn/components/ui/drawer.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/dropdown-menu.d.ts +26 -0
- package/dist/src/shadcn/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/dropdown-menu.js +51 -0
- package/dist/src/shadcn/components/ui/dropdown-menu.js.map +1 -0
- package/dist/src/shadcn/components/ui/dropdown-menu.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/dropdown-menu.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/dropdown-menu.stories.js +11 -0
- package/dist/src/shadcn/components/ui/dropdown-menu.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/form.d.ts +25 -0
- package/dist/src/shadcn/components/ui/form.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/form.js +59 -0
- package/dist/src/shadcn/components/ui/form.js.map +1 -0
- package/dist/src/shadcn/components/ui/form.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/form.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/form.stories.js +31 -0
- package/dist/src/shadcn/components/ui/form.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/hover-card.d.ts +7 -0
- package/dist/src/shadcn/components/ui/hover-card.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/hover-card.js +14 -0
- package/dist/src/shadcn/components/ui/hover-card.js.map +1 -0
- package/dist/src/shadcn/components/ui/hover-card.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/hover-card.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/hover-card.stories.js +12 -0
- package/dist/src/shadcn/components/ui/hover-card.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/input-otp.d.ts +12 -0
- package/dist/src/shadcn/components/ui/input-otp.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/input-otp.js +25 -0
- package/dist/src/shadcn/components/ui/input-otp.js.map +1 -0
- package/dist/src/shadcn/components/ui/input-otp.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/input-otp.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/input-otp.stories.js +10 -0
- package/dist/src/shadcn/components/ui/input-otp.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/input.d.ts +18 -0
- package/dist/src/shadcn/components/ui/input.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/input.js +79 -0
- package/dist/src/shadcn/components/ui/input.js.map +1 -0
- package/dist/src/shadcn/components/ui/input.stories.d.ts +18 -0
- package/dist/src/shadcn/components/ui/input.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/input.stories.js +39 -0
- package/dist/src/shadcn/components/ui/input.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/label.d.ts +5 -0
- package/dist/src/shadcn/components/ui/label.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/label.js +8 -0
- package/dist/src/shadcn/components/ui/label.js.map +1 -0
- package/dist/src/shadcn/components/ui/label.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/label.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/label.stories.js +11 -0
- package/dist/src/shadcn/components/ui/label.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/menubar.d.ts +27 -0
- package/dist/src/shadcn/components/ui/menubar.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/menubar.js +54 -0
- package/dist/src/shadcn/components/ui/menubar.js.map +1 -0
- package/dist/src/shadcn/components/ui/menubar.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/menubar.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/menubar.stories.js +10 -0
- package/dist/src/shadcn/components/ui/menubar.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/navigation-menu.d.ts +15 -0
- package/dist/src/shadcn/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/navigation-menu.js +32 -0
- package/dist/src/shadcn/components/ui/navigation-menu.js.map +1 -0
- package/dist/src/shadcn/components/ui/navigation-menu.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/navigation-menu.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/navigation-menu.stories.js +46 -0
- package/dist/src/shadcn/components/ui/navigation-menu.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/pagination.d.ts +14 -0
- package/dist/src/shadcn/components/ui/pagination.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/pagination.js +34 -0
- package/dist/src/shadcn/components/ui/pagination.js.map +1 -0
- package/dist/src/shadcn/components/ui/pagination.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/pagination.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/pagination.stories.js +10 -0
- package/dist/src/shadcn/components/ui/pagination.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/popover.d.ts +8 -0
- package/dist/src/shadcn/components/ui/popover.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/popover.js +17 -0
- package/dist/src/shadcn/components/ui/popover.js.map +1 -0
- package/dist/src/shadcn/components/ui/popover.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/popover.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/popover.stories.js +13 -0
- package/dist/src/shadcn/components/ui/popover.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/progress.d.ts +5 -0
- package/dist/src/shadcn/components/ui/progress.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/progress.js +8 -0
- package/dist/src/shadcn/components/ui/progress.js.map +1 -0
- package/dist/src/shadcn/components/ui/progress.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/progress.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/progress.stories.js +18 -0
- package/dist/src/shadcn/components/ui/progress.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/radio-group.d.ts +6 -0
- package/dist/src/shadcn/components/ui/radio-group.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/radio-group.js +12 -0
- package/dist/src/shadcn/components/ui/radio-group.js.map +1 -0
- package/dist/src/shadcn/components/ui/radio-group.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/radio-group.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/radio-group.stories.js +11 -0
- package/dist/src/shadcn/components/ui/radio-group.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/resizable.d.ts +9 -0
- package/dist/src/shadcn/components/ui/resizable.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/resizable.js +15 -0
- package/dist/src/shadcn/components/ui/resizable.js.map +1 -0
- package/dist/src/shadcn/components/ui/resizable.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/resizable.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/resizable.stories.js +10 -0
- package/dist/src/shadcn/components/ui/resizable.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/scroll-area.d.ts +6 -0
- package/dist/src/shadcn/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/scroll-area.js +13 -0
- package/dist/src/shadcn/components/ui/scroll-area.js.map +1 -0
- package/dist/src/shadcn/components/ui/scroll-area.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/scroll-area.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/scroll-area.stories.js +13 -0
- package/dist/src/shadcn/components/ui/scroll-area.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/select.d.ts +19 -0
- package/dist/src/shadcn/components/ui/select.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/select.js +55 -0
- package/dist/src/shadcn/components/ui/select.js.map +1 -0
- package/dist/src/shadcn/components/ui/select.stories.d.ts +11 -0
- package/dist/src/shadcn/components/ui/select.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/select.stories.js +14 -0
- package/dist/src/shadcn/components/ui/select.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/separator.d.ts +5 -0
- package/dist/src/shadcn/components/ui/separator.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/separator.js +8 -0
- package/dist/src/shadcn/components/ui/separator.js.map +1 -0
- package/dist/src/shadcn/components/ui/separator.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/separator.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/separator.stories.js +10 -0
- package/dist/src/shadcn/components/ui/separator.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/sheet.d.ts +14 -0
- package/dist/src/shadcn/components/ui/sheet.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/sheet.js +40 -0
- package/dist/src/shadcn/components/ui/sheet.js.map +1 -0
- package/dist/src/shadcn/components/ui/sheet.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/sheet.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/sheet.stories.js +13 -0
- package/dist/src/shadcn/components/ui/sheet.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/sidebar.d.ts +70 -0
- package/dist/src/shadcn/components/ui/sidebar.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/sidebar.js +215 -0
- package/dist/src/shadcn/components/ui/sidebar.js.map +1 -0
- package/dist/src/shadcn/components/ui/sidebar.stories.d.ts +11 -0
- package/dist/src/shadcn/components/ui/sidebar.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/sidebar.stories.js +178 -0
- package/dist/src/shadcn/components/ui/sidebar.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/skeleton.d.ts +3 -0
- package/dist/src/shadcn/components/ui/skeleton.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/skeleton.js +7 -0
- package/dist/src/shadcn/components/ui/skeleton.js.map +1 -0
- package/dist/src/shadcn/components/ui/skeleton.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/skeleton.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/skeleton.stories.js +10 -0
- package/dist/src/shadcn/components/ui/skeleton.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/slider.d.ts +5 -0
- package/dist/src/shadcn/components/ui/slider.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/slider.js +14 -0
- package/dist/src/shadcn/components/ui/slider.js.map +1 -0
- package/dist/src/shadcn/components/ui/slider.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/slider.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/slider.stories.js +10 -0
- package/dist/src/shadcn/components/ui/slider.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/sonner.d.ts +4 -0
- package/dist/src/shadcn/components/ui/sonner.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/sonner.js +13 -0
- package/dist/src/shadcn/components/ui/sonner.js.map +1 -0
- package/dist/src/shadcn/components/ui/sonner.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/sonner.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/sonner.stories.js +17 -0
- package/dist/src/shadcn/components/ui/sonner.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/switch.d.ts +5 -0
- package/dist/src/shadcn/components/ui/switch.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/switch.js +8 -0
- package/dist/src/shadcn/components/ui/switch.js.map +1 -0
- package/dist/src/shadcn/components/ui/switch.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/switch.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/switch.stories.js +11 -0
- package/dist/src/shadcn/components/ui/switch.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/table.d.ts +11 -0
- package/dist/src/shadcn/components/ui/table.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/table.js +28 -0
- package/dist/src/shadcn/components/ui/table.js.map +1 -0
- package/dist/src/shadcn/components/ui/table.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/table.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/table.stories.js +54 -0
- package/dist/src/shadcn/components/ui/table.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/tabs.d.ts +12 -0
- package/dist/src/shadcn/components/ui/tabs.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/tabs.js +29 -0
- package/dist/src/shadcn/components/ui/tabs.js.map +1 -0
- package/dist/src/shadcn/components/ui/tabs.stories.d.ts +26 -0
- package/dist/src/shadcn/components/ui/tabs.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/tabs.stories.js +20 -0
- package/dist/src/shadcn/components/ui/tabs.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/textarea.d.ts +4 -0
- package/dist/src/shadcn/components/ui/textarea.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/textarea.js +7 -0
- package/dist/src/shadcn/components/ui/textarea.js.map +1 -0
- package/dist/src/shadcn/components/ui/textarea.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/textarea.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/textarea.stories.js +10 -0
- package/dist/src/shadcn/components/ui/textarea.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/toggle-group.d.ts +8 -0
- package/dist/src/shadcn/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/toggle-group.js +21 -0
- package/dist/src/shadcn/components/ui/toggle-group.js.map +1 -0
- package/dist/src/shadcn/components/ui/toggle-group.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/toggle-group.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/toggle-group.stories.js +11 -0
- package/dist/src/shadcn/components/ui/toggle-group.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/toggle.d.ts +10 -0
- package/dist/src/shadcn/components/ui/toggle.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/toggle.js +26 -0
- package/dist/src/shadcn/components/ui/toggle.js.map +1 -0
- package/dist/src/shadcn/components/ui/toggle.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/toggle.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/toggle.stories.js +11 -0
- package/dist/src/shadcn/components/ui/toggle.stories.js.map +1 -0
- package/dist/src/shadcn/components/ui/tooltip.d.ts +8 -0
- package/dist/src/shadcn/components/ui/tooltip.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/tooltip.js +17 -0
- package/dist/src/shadcn/components/ui/tooltip.js.map +1 -0
- package/dist/src/shadcn/components/ui/tooltip.stories.d.ts +8 -0
- package/dist/src/shadcn/components/ui/tooltip.stories.d.ts.map +1 -0
- package/dist/src/shadcn/components/ui/tooltip.stories.js +11 -0
- package/dist/src/shadcn/components/ui/tooltip.stories.js.map +1 -0
- package/dist/src/shadcn/hooks/use-mobile.d.ts +2 -0
- package/dist/src/shadcn/hooks/use-mobile.d.ts.map +1 -0
- package/dist/src/shadcn/hooks/use-mobile.js +16 -0
- package/dist/src/shadcn/hooks/use-mobile.js.map +1 -0
- package/dist/src/shadcn/lib/utils.d.ts +3 -0
- package/dist/src/shadcn/lib/utils.d.ts.map +1 -0
- package/dist/src/shadcn/lib/utils.js +6 -0
- package/dist/src/shadcn/lib/utils.js.map +1 -0
- package/dist/src/shadcn/shadcn.css +122 -0
- package/dist/src/tokens.css +179 -0
- package/dist/src/typography.css +98 -0
- package/package.json +109 -0
- package/src/components/code-editor/index.tsx +143 -0
- package/src/components/code-editor.stories.tsx +34 -0
- package/src/components/copy-icon.tsx +30 -0
- package/src/components/request-line-editor.stories.tsx +90 -0
- package/src/components/request-line-editor.tsx +103 -0
- package/src/deps.css +3 -0
- package/src/full.css +2 -0
- package/src/global.d.ts +1 -0
- package/src/index.css +98 -0
- package/src/index.stories.tsx +21 -0
- package/src/index.tsx +54 -0
- package/src/shadcn/components/ui/accordion.stories.tsx +69 -0
- package/src/shadcn/components/ui/accordion.tsx +64 -0
- package/src/shadcn/components/ui/alert-dialog.stories.tsx +43 -0
- package/src/shadcn/components/ui/alert-dialog.tsx +154 -0
- package/src/shadcn/components/ui/alert.stories.tsx +46 -0
- package/src/shadcn/components/ui/alert.tsx +66 -0
- package/src/shadcn/components/ui/aspect-ratio.stories.tsx +21 -0
- package/src/shadcn/components/ui/aspect-ratio.tsx +9 -0
- package/src/shadcn/components/ui/avatar.stories.tsx +48 -0
- package/src/shadcn/components/ui/avatar.tsx +51 -0
- package/src/shadcn/components/ui/badge.stories.tsx +47 -0
- package/src/shadcn/components/ui/badge.tsx +46 -0
- package/src/shadcn/components/ui/breadcrumb.stories.tsx +62 -0
- package/src/shadcn/components/ui/breadcrumb.tsx +119 -0
- package/src/shadcn/components/ui/button.stories.tsx +125 -0
- package/src/shadcn/components/ui/button.tsx +92 -0
- package/src/shadcn/components/ui/calendar.stories.tsx +26 -0
- package/src/shadcn/components/ui/calendar.tsx +214 -0
- package/src/shadcn/components/ui/card.stories.tsx +67 -0
- package/src/shadcn/components/ui/card.tsx +92 -0
- package/src/shadcn/components/ui/carousel.stories.tsx +39 -0
- package/src/shadcn/components/ui/carousel.tsx +240 -0
- package/src/shadcn/components/ui/chart.stories.tsx +58 -0
- package/src/shadcn/components/ui/chart.tsx +352 -0
- package/src/shadcn/components/ui/checkbox.stories.tsx +49 -0
- package/src/shadcn/components/ui/checkbox.tsx +30 -0
- package/src/shadcn/components/ui/collapsible.stories.tsx +53 -0
- package/src/shadcn/components/ui/collapsible.tsx +31 -0
- package/src/shadcn/components/ui/command.stories.tsx +69 -0
- package/src/shadcn/components/ui/command.tsx +185 -0
- package/src/shadcn/components/ui/context-menu.stories.tsx +72 -0
- package/src/shadcn/components/ui/context-menu.tsx +248 -0
- package/src/shadcn/components/ui/dialog.stories.tsx +58 -0
- package/src/shadcn/components/ui/dialog.tsx +141 -0
- package/src/shadcn/components/ui/drawer.stories.tsx +119 -0
- package/src/shadcn/components/ui/drawer.tsx +133 -0
- package/src/shadcn/components/ui/dropdown-menu.stories.tsx +82 -0
- package/src/shadcn/components/ui/dropdown-menu.tsx +281 -0
- package/src/shadcn/components/ui/form.stories.tsx +67 -0
- package/src/shadcn/components/ui/form.tsx +165 -0
- package/src/shadcn/components/ui/hover-card.stories.tsx +46 -0
- package/src/shadcn/components/ui/hover-card.tsx +42 -0
- package/src/shadcn/components/ui/input-otp.stories.tsx +32 -0
- package/src/shadcn/components/ui/input-otp.tsx +78 -0
- package/src/shadcn/components/ui/input.stories.tsx +393 -0
- package/src/shadcn/components/ui/input.tsx +173 -0
- package/src/shadcn/components/ui/label.stories.tsx +21 -0
- package/src/shadcn/components/ui/label.tsx +22 -0
- package/src/shadcn/components/ui/menubar.stories.tsx +115 -0
- package/src/shadcn/components/ui/menubar.tsx +272 -0
- package/src/shadcn/components/ui/navigation-menu.stories.tsx +217 -0
- package/src/shadcn/components/ui/navigation-menu.tsx +168 -0
- package/src/shadcn/components/ui/pagination.stories.tsx +47 -0
- package/src/shadcn/components/ui/pagination.tsx +134 -0
- package/src/shadcn/components/ui/popover.stories.tsx +70 -0
- package/src/shadcn/components/ui/popover.tsx +46 -0
- package/src/shadcn/components/ui/progress.stories.tsx +23 -0
- package/src/shadcn/components/ui/progress.tsx +29 -0
- package/src/shadcn/components/ui/radio-group.stories.tsx +29 -0
- package/src/shadcn/components/ui/radio-group.tsx +43 -0
- package/src/shadcn/components/ui/resizable.stories.tsx +44 -0
- package/src/shadcn/components/ui/resizable.tsx +54 -0
- package/src/shadcn/components/ui/scroll-area.stories.tsx +31 -0
- package/src/shadcn/components/ui/scroll-area.tsx +56 -0
- package/src/shadcn/components/ui/select.stories.tsx +61 -0
- package/src/shadcn/components/ui/select.tsx +208 -0
- package/src/shadcn/components/ui/separator.stories.tsx +30 -0
- package/src/shadcn/components/ui/separator.tsx +27 -0
- package/src/shadcn/components/ui/sheet.stories.tsx +55 -0
- package/src/shadcn/components/ui/sheet.tsx +137 -0
- package/src/shadcn/components/ui/sidebar.stories.tsx +384 -0
- package/src/shadcn/components/ui/sidebar.tsx +737 -0
- package/src/shadcn/components/ui/skeleton.stories.tsx +21 -0
- package/src/shadcn/components/ui/skeleton.tsx +13 -0
- package/src/shadcn/components/ui/slider.stories.tsx +15 -0
- package/src/shadcn/components/ui/slider.tsx +62 -0
- package/src/shadcn/components/ui/sonner.stories.tsx +29 -0
- package/src/shadcn/components/ui/sonner.tsx +23 -0
- package/src/shadcn/components/ui/switch.stories.tsx +19 -0
- package/src/shadcn/components/ui/switch.tsx +29 -0
- package/src/shadcn/components/ui/table.stories.tsx +95 -0
- package/src/shadcn/components/ui/table.tsx +114 -0
- package/src/shadcn/components/ui/tabs.stories.tsx +92 -0
- package/src/shadcn/components/ui/tabs.tsx +84 -0
- package/src/shadcn/components/ui/textarea.stories.tsx +13 -0
- package/src/shadcn/components/ui/textarea.tsx +18 -0
- package/src/shadcn/components/ui/toggle-group.stories.tsx +29 -0
- package/src/shadcn/components/ui/toggle-group.tsx +70 -0
- package/src/shadcn/components/ui/toggle.stories.tsx +18 -0
- package/src/shadcn/components/ui/toggle.tsx +45 -0
- package/src/shadcn/components/ui/tooltip.stories.tsx +27 -0
- package/src/shadcn/components/ui/tooltip.tsx +62 -0
- package/src/shadcn/hooks/use-mobile.ts +21 -0
- package/src/shadcn/lib/utils.ts +6 -0
- package/src/shadcn/shadcn.css +122 -0
- package/src/tokens.css +179 -0
- package/src/typography.css +98 -0
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
--radius: 6px;
|
|
3
|
+
|
|
4
|
+
--color-neutral-50: #f9f9f9;
|
|
5
|
+
--color-neutral-100: #f5f5f6;
|
|
6
|
+
--color-neutral-200: #ebecee;
|
|
7
|
+
--color-neutral-300: #ccced3;
|
|
8
|
+
--color-neutral-400: #98a1ae;
|
|
9
|
+
--color-neutral-500: #717684;
|
|
10
|
+
--color-neutral-600: #4a5565;
|
|
11
|
+
--color-neutral-700: #364153;
|
|
12
|
+
--color-neutral-800: #1e2938;
|
|
13
|
+
--color-neutral-900: #1d2331;
|
|
14
|
+
--color-neutral-950: #030712;
|
|
15
|
+
|
|
16
|
+
--color-brand-50: #fef7f6;
|
|
17
|
+
--color-brand-100: #fdedea;
|
|
18
|
+
--color-brand-200: #f9cac3;
|
|
19
|
+
--color-brand-300: #f4a499;
|
|
20
|
+
--color-brand-400: #ef7767;
|
|
21
|
+
--color-brand-500: #ea4a35;
|
|
22
|
+
--color-brand-600: #d72710;
|
|
23
|
+
--color-brand-700: #c31a03;
|
|
24
|
+
--color-brand-800: #78190c;
|
|
25
|
+
--color-brand-900: #4a0f08;
|
|
26
|
+
--color-brand-950: #2e0a05;
|
|
27
|
+
|
|
28
|
+
--color-grey-50: #fafafa;
|
|
29
|
+
--color-grey-100: #f5f5f5;
|
|
30
|
+
--color-grey-200: #e5e5e5;
|
|
31
|
+
--color-grey-300: #d4d4d4;
|
|
32
|
+
--color-grey-400: #a4a4a4;
|
|
33
|
+
--color-grey-500: #767676;
|
|
34
|
+
--color-grey-600: #575757;
|
|
35
|
+
--color-grey-700: #434343;
|
|
36
|
+
--color-grey-800: #292929;
|
|
37
|
+
--color-grey-900: #1a1a1a;
|
|
38
|
+
--color-grey-950: #0a0a0a;
|
|
39
|
+
|
|
40
|
+
--color-red-50: #fef9f9;
|
|
41
|
+
--color-red-100: #fff6f5;
|
|
42
|
+
--color-red-200: #fdedea;
|
|
43
|
+
--color-red-300: #f4a499;
|
|
44
|
+
--color-red-400: #ea4a35;
|
|
45
|
+
--color-red-500: #d7270f;
|
|
46
|
+
--color-red-600: #d7270f;
|
|
47
|
+
--color-red-700: #c31b03;
|
|
48
|
+
--color-red-800: #a72d22;
|
|
49
|
+
--color-red-900: #7a0d00;
|
|
50
|
+
--color-red-950: #410801;
|
|
51
|
+
|
|
52
|
+
--color-blue-50: #f9fbfe;
|
|
53
|
+
--color-blue-100: #f4f8fc;
|
|
54
|
+
--color-blue-200: #e9f2fc;
|
|
55
|
+
--color-blue-300: #d0e2f8;
|
|
56
|
+
--color-blue-400: #a7c9f3;
|
|
57
|
+
--color-blue-500: #2378e1;
|
|
58
|
+
--color-blue-600: #045ac3;
|
|
59
|
+
--color-blue-700: #014391;
|
|
60
|
+
--color-blue-800: #053775;
|
|
61
|
+
--color-blue-900: #052040;
|
|
62
|
+
--color-blue-950: #05101e;
|
|
63
|
+
|
|
64
|
+
--color-green-50: #fbfdf8;
|
|
65
|
+
--color-green-100: #f8fbf3;
|
|
66
|
+
--color-green-200: #f1f8e6;
|
|
67
|
+
--color-green-300: #e3efcb;
|
|
68
|
+
--color-green-400: #c9e19b;
|
|
69
|
+
--color-green-500: #78b506;
|
|
70
|
+
--color-green-600: #558300;
|
|
71
|
+
--color-green-700: #334e02;
|
|
72
|
+
--color-green-800: #1d2b03;
|
|
73
|
+
--color-green-900: #090d04;
|
|
74
|
+
--color-green-950: #090d04;
|
|
75
|
+
|
|
76
|
+
--color-yellow-50: #fffdf2;
|
|
77
|
+
--color-yellow-100: #fffbe5;
|
|
78
|
+
--color-yellow-200: #fff9d9;
|
|
79
|
+
--color-yellow-300: #fff4bf;
|
|
80
|
+
--color-yellow-400: #ffea80;
|
|
81
|
+
--color-yellow-500: #ffd400;
|
|
82
|
+
--color-yellow-600: #dfa400;
|
|
83
|
+
--color-yellow-700: #855600;
|
|
84
|
+
--color-yellow-800: #562a00;
|
|
85
|
+
--color-yellow-900: #341900;
|
|
86
|
+
--color-yellow-950: #200900;
|
|
87
|
+
|
|
88
|
+
--font-size-xs: 12px;
|
|
89
|
+
--font-size-sm: 14px;
|
|
90
|
+
--font-size-base: 16px;
|
|
91
|
+
--font-size-lg: 18px;
|
|
92
|
+
--font-size-xl: 20px;
|
|
93
|
+
--font-size-2xl: 24px;
|
|
94
|
+
--font-size-3xl: 30px;
|
|
95
|
+
--font-size-4xl: 36px;
|
|
96
|
+
--font-size-5xl: 48px;
|
|
97
|
+
--font-size-6xl: 60px;
|
|
98
|
+
--font-size-7xl: 72px;
|
|
99
|
+
--font-size-8xl: 96px;
|
|
100
|
+
--font-size-9xl: 128px;
|
|
101
|
+
|
|
102
|
+
--font-family-sans: Inter;
|
|
103
|
+
--font-family-mono: JetBrains Mono;
|
|
104
|
+
|
|
105
|
+
--font-style-italic: italic;
|
|
106
|
+
--font-style-not-italic: normal;
|
|
107
|
+
|
|
108
|
+
--font-weight-thin: 100;
|
|
109
|
+
--font-weight-extralight: 200;
|
|
110
|
+
--font-weight-light: 300;
|
|
111
|
+
--font-weight-normal: 400;
|
|
112
|
+
--font-weight-medium: 500;
|
|
113
|
+
--font-weight-semibold: 600;
|
|
114
|
+
--font-weight-bold: 700;
|
|
115
|
+
--font-weight-extrabold: 800;
|
|
116
|
+
--font-weight-black: 900;
|
|
117
|
+
|
|
118
|
+
--font-tracking-tighter: -0.8;
|
|
119
|
+
--font-tracking-tight: -0.4;
|
|
120
|
+
--font-tracking-normal: 0px;
|
|
121
|
+
--font-tracking-wide: 0.4;
|
|
122
|
+
--font-tracking-wider: 0.8;
|
|
123
|
+
--font-tracking-widest: 1.6;
|
|
124
|
+
|
|
125
|
+
--font-leading-3: 12px;
|
|
126
|
+
--font-leading-4: 16px;
|
|
127
|
+
--font-leading-5: 20px;
|
|
128
|
+
--font-leading-6: 24px;
|
|
129
|
+
--font-leading-7: 28px;
|
|
130
|
+
--font-leading-8: 32px;
|
|
131
|
+
--font-leading-9: 36px;
|
|
132
|
+
--font-leading-10: 40px;
|
|
133
|
+
|
|
134
|
+
--spacing-x1: 8px;
|
|
135
|
+
--spacing-x1point5: 12px;
|
|
136
|
+
--spacing-x2: 16px;
|
|
137
|
+
--spacing-x4: 32px;
|
|
138
|
+
--spacing-x6: 48px;
|
|
139
|
+
--spacing-x8: 64px;
|
|
140
|
+
--spacing-quarter: 2px;
|
|
141
|
+
--spacing-half: 4px;
|
|
142
|
+
--spacing-x12: 96px;
|
|
143
|
+
--spacing-x3: 24px;
|
|
144
|
+
--corner-corner-max: 999px;
|
|
145
|
+
--corner-corner-s: 4px;
|
|
146
|
+
--corner-corner-m: 6px;
|
|
147
|
+
--corner-corner-l: 8px;
|
|
148
|
+
--corner-corner-xs: 2px;
|
|
149
|
+
--color-elements-readable: var(--color-neutral-900);
|
|
150
|
+
--color-cta: var(--color-brand-600);
|
|
151
|
+
--color-critical-default: var(--color-red-600);
|
|
152
|
+
--color-elements-disabled: var(--color-neutral-300);
|
|
153
|
+
--color-elements-assistive: var(--color-neutral-500);
|
|
154
|
+
--color-surface-0: var(--color-neutral-50);
|
|
155
|
+
--color-border-default: var(--color-neutral-200);
|
|
156
|
+
--color-surface-selected: var(--color-neutral-200);
|
|
157
|
+
--color-cta-hover: var(--color-brand-700);
|
|
158
|
+
--color-critical-hover: var(--color-red-700);
|
|
159
|
+
--color-surface-1: var(--color-neutral-100);
|
|
160
|
+
--color-border-XS-critical: var(--color-red-50);
|
|
161
|
+
--color-border-XS-critical-hover: var(--color-red-100);
|
|
162
|
+
--color-elements-green: var(--color-green-600);
|
|
163
|
+
--color-elements-yellow: var(--color-yellow-500);
|
|
164
|
+
--color-border-XS-regular: var(--color-blue-300);
|
|
165
|
+
--color-border-XS-regular-hover: var(--color-blue-400);
|
|
166
|
+
--color-separator: var(--color-neutral-200);
|
|
167
|
+
--color-surface-info: var(--color-blue-50);
|
|
168
|
+
--color-surface-warning: var(--color-yellow-50);
|
|
169
|
+
--color-surface-alert: var(--color-red-50);
|
|
170
|
+
--color-elements-warning: var(--color-yellow-700);
|
|
171
|
+
--color-code-red: var(--color-red-600);
|
|
172
|
+
--color-code-blue: var(--color-blue-500);
|
|
173
|
+
--color-elements-readable-inv: var(--color-neutral-50);
|
|
174
|
+
--color-logo-readable: var(--color-neutral-800);
|
|
175
|
+
--color-elements-links: var(--color-brand-600);
|
|
176
|
+
--color-elements-info: var(--color-brand-600);
|
|
177
|
+
--color-elements-alert: var(--color-red-600);
|
|
178
|
+
--color-illustrations-solid: var(--color-brand-600);
|
|
179
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
body {
|
|
2
|
+
-webkit-font-smoothing: antialiased;
|
|
3
|
+
-moz-osx-font-smoothing: grayscale;
|
|
4
|
+
text-rendering: optimizeLegibility;
|
|
5
|
+
font-feature-settings:
|
|
6
|
+
"kern" 1,
|
|
7
|
+
"liga" 1;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.typo-body {
|
|
11
|
+
font-size: var(--font-size-sm);
|
|
12
|
+
font-family: var(--font-family-sans);
|
|
13
|
+
font-weight: var(--font-weight-normal);
|
|
14
|
+
line-height: var(--font-leading-5);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.typo-code {
|
|
18
|
+
font-size: var(--font-size-sm);
|
|
19
|
+
font-family: var(--font-family-mono);
|
|
20
|
+
font-weight: var(--font-weight-normal);
|
|
21
|
+
line-height: var(--font-leading-5);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.typo-label {
|
|
25
|
+
font-size: var(--font-size-sm);
|
|
26
|
+
font-family: var(--font-family-sans);
|
|
27
|
+
font-weight: var(--font-weight-medium);
|
|
28
|
+
line-height: var(--font-leading-5);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.typo-page-header {
|
|
32
|
+
font-size: var(--font-size-xl);
|
|
33
|
+
font-family: var(--font-family-sans);
|
|
34
|
+
font-weight: var(--font-weight-medium);
|
|
35
|
+
line-height: var(--font-leading-7);
|
|
36
|
+
letter-spacing: var(--font-tracking-tight);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.typo-button-label-xs {
|
|
40
|
+
font-size: var(--font-size-sm);
|
|
41
|
+
font-family: var(--font-family-sans);
|
|
42
|
+
font-weight: var(--font-weight-normal);
|
|
43
|
+
line-height: var(--font-leading-4);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.h1 {
|
|
47
|
+
font-size: var(--font-size-4xl);
|
|
48
|
+
font-family: var(--font-family-sans);
|
|
49
|
+
font-weight: var(--font-weight-extrabold);
|
|
50
|
+
line-height: var(--font-leading-none);
|
|
51
|
+
letter-spacing: var(--font-tracking-tight);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@media (min-width: 1024px) {
|
|
55
|
+
.h1 {
|
|
56
|
+
font-size: var(--font-size-5xl);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.h2 {
|
|
61
|
+
font-size: var(--font-size-3xl);
|
|
62
|
+
font-family: var(--font-family-sans);
|
|
63
|
+
font-weight: var(--font-weight-semibold);
|
|
64
|
+
line-height: var(--font-leading-none);
|
|
65
|
+
letter-spacing: var(--font-tracking-tight);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.h3 {
|
|
69
|
+
font-size: var(--font-size-2xl);
|
|
70
|
+
font-family: var(--font-family-sans);
|
|
71
|
+
font-weight: var(--font-weight-semibold);
|
|
72
|
+
line-height: var(--font-leading-none);
|
|
73
|
+
letter-spacing: var(--font-tracking-tight);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.h4 {
|
|
77
|
+
font-size: var(--font-size-xl);
|
|
78
|
+
font-family: var(--font-family-sans);
|
|
79
|
+
font-weight: var(--font-weight-semibold);
|
|
80
|
+
line-height: var(--font-leading-none);
|
|
81
|
+
letter-spacing: var(--font-tracking-tight);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.h5 {
|
|
85
|
+
font-size: var(--font-size-lg);
|
|
86
|
+
font-family: var(--font-family-sans);
|
|
87
|
+
font-weight: var(--font-weight-semibold);
|
|
88
|
+
line-height: var(--font-leading-none);
|
|
89
|
+
letter-spacing: var(--font-tracking-tight);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.h6 {
|
|
93
|
+
font-size: var(--font-size-base);
|
|
94
|
+
font-family: var(--font-family-sans);
|
|
95
|
+
font-weight: var(--font-weight-semibold);
|
|
96
|
+
line-height: var(--font-leading-none);
|
|
97
|
+
letter-spacing: var(--font-tracking-tight);
|
|
98
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@health-samurai/react-components",
|
|
3
|
+
"version": "0.0.0-alpha.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist",
|
|
7
|
+
"src"
|
|
8
|
+
],
|
|
9
|
+
"exports": {
|
|
10
|
+
".": "./dist/src/index.js",
|
|
11
|
+
"./bundle.css": "./dist/bundle.css",
|
|
12
|
+
"./css": "./dist/src/index.css",
|
|
13
|
+
"./deps.css": "./dist/src/deps.css",
|
|
14
|
+
"./full.css": "./dist/src/full.css"
|
|
15
|
+
},
|
|
16
|
+
"imports": {
|
|
17
|
+
"#shadcn/*": "./src/shadcn/*"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@codemirror/autocomplete": "^6.18.6",
|
|
21
|
+
"@codemirror/commands": "^6.8.1",
|
|
22
|
+
"@codemirror/lang-json": "^6.0.2",
|
|
23
|
+
"@codemirror/language": "^6.11.3",
|
|
24
|
+
"@codemirror/lint": "^6.8.5",
|
|
25
|
+
"@codemirror/search": "^6.5.11",
|
|
26
|
+
"@codemirror/state": "^6.5.2",
|
|
27
|
+
"@codemirror/view": "^6.38.1",
|
|
28
|
+
"@hookform/resolvers": "^5.2.1",
|
|
29
|
+
"@lezer/highlight": "^1.2.1",
|
|
30
|
+
"@radix-ui/react-accordion": "^1.2.11",
|
|
31
|
+
"@radix-ui/react-alert-dialog": "^1.1.14",
|
|
32
|
+
"@radix-ui/react-aspect-ratio": "^1.1.7",
|
|
33
|
+
"@radix-ui/react-avatar": "^1.1.10",
|
|
34
|
+
"@radix-ui/react-checkbox": "^1.3.2",
|
|
35
|
+
"@radix-ui/react-collapsible": "^1.1.11",
|
|
36
|
+
"@radix-ui/react-context-menu": "^2.2.15",
|
|
37
|
+
"@radix-ui/react-dialog": "^1.1.14",
|
|
38
|
+
"@radix-ui/react-dropdown-menu": "^2.1.15",
|
|
39
|
+
"@radix-ui/react-hover-card": "^1.1.14",
|
|
40
|
+
"@radix-ui/react-label": "^2.1.7",
|
|
41
|
+
"@radix-ui/react-menubar": "^1.1.15",
|
|
42
|
+
"@radix-ui/react-navigation-menu": "^1.2.13",
|
|
43
|
+
"@radix-ui/react-popover": "^1.1.14",
|
|
44
|
+
"@radix-ui/react-progress": "^1.1.7",
|
|
45
|
+
"@radix-ui/react-radio-group": "^1.3.7",
|
|
46
|
+
"@radix-ui/react-scroll-area": "^1.2.9",
|
|
47
|
+
"@radix-ui/react-select": "^2.2.5",
|
|
48
|
+
"@radix-ui/react-separator": "^1.1.7",
|
|
49
|
+
"@radix-ui/react-slider": "^1.3.5",
|
|
50
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
51
|
+
"@radix-ui/react-switch": "^1.2.5",
|
|
52
|
+
"@radix-ui/react-tabs": "^1.1.12",
|
|
53
|
+
"@radix-ui/react-toggle": "^1.1.9",
|
|
54
|
+
"@radix-ui/react-toggle-group": "^1.1.10",
|
|
55
|
+
"@radix-ui/react-tooltip": "^1.2.7",
|
|
56
|
+
"class-variance-authority": "^0.7.1",
|
|
57
|
+
"clsx": "^2.1.1",
|
|
58
|
+
"cmdk": "^1.1.1",
|
|
59
|
+
"date-fns": "^4.1.0",
|
|
60
|
+
"embla-carousel-react": "^8.6.0",
|
|
61
|
+
"input-otp": "^1.4.2",
|
|
62
|
+
"lucide-react": "^0.539.0",
|
|
63
|
+
"next-themes": "^0.4.6",
|
|
64
|
+
"react": "^19.1.0",
|
|
65
|
+
"react-day-picker": "^9.8.1",
|
|
66
|
+
"react-dom": "^19.1.0",
|
|
67
|
+
"react-hook-form": "^7.62.0",
|
|
68
|
+
"react-resizable-panels": "^3.0.4",
|
|
69
|
+
"recharts": "2.15.4",
|
|
70
|
+
"sonner": "^2.0.7",
|
|
71
|
+
"tailwind-merge": "^3.3.1",
|
|
72
|
+
"vaul": "^1.1.2",
|
|
73
|
+
"zod": "^4.0.17"
|
|
74
|
+
},
|
|
75
|
+
"devDependencies": {
|
|
76
|
+
"@biomejs/biome": "2.1.3",
|
|
77
|
+
"@storybook/addon-docs": "^9.1.1",
|
|
78
|
+
"@storybook/react-vite": "^9.1.1",
|
|
79
|
+
"@tailwindcss/cli": "^4.1.11",
|
|
80
|
+
"@tailwindcss/vite": "^4.1.11",
|
|
81
|
+
"@types/node": "^24.2.0",
|
|
82
|
+
"@types/react": "^19.1.8",
|
|
83
|
+
"@types/react-dom": "^19.1.6",
|
|
84
|
+
"@vitejs/plugin-react-swc": "^3.10.2",
|
|
85
|
+
"copyfiles": "^2.4.1",
|
|
86
|
+
"storybook": "^9.1.1",
|
|
87
|
+
"tailwindcss": "^4.1.11",
|
|
88
|
+
"tsx": "^4.20.4",
|
|
89
|
+
"tw-animate-css": "^1.3.6",
|
|
90
|
+
"typescript": "~5.8.3",
|
|
91
|
+
"vite": "^7.0.4"
|
|
92
|
+
},
|
|
93
|
+
"publishConfig": {
|
|
94
|
+
"access": "public"
|
|
95
|
+
},
|
|
96
|
+
"scripts": {
|
|
97
|
+
"build": "rm -rf dist && mkdir -p dist && copyfiles -e '**/*.ts' -e '**/*.tsx' 'src/**' dist && tsc -b --force && tailwindcss --cwd ./src -i ./full.css -o ../dist/bundle.css && echo success",
|
|
98
|
+
"build:watch": "tsx scripts/watch.node.ts",
|
|
99
|
+
"build-storybook": "storybook build",
|
|
100
|
+
"format": "biome format",
|
|
101
|
+
"format:check": "biome format",
|
|
102
|
+
"format:fix": "biome format --write",
|
|
103
|
+
"lint": "biome check",
|
|
104
|
+
"lint:check": "biome check",
|
|
105
|
+
"lint:fix": "biome check --write",
|
|
106
|
+
"storybook": "storybook dev -p 6006",
|
|
107
|
+
"tsc:check": "tsc -b --noEmit"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import {
|
|
2
|
+
autocompletion,
|
|
3
|
+
closeBrackets,
|
|
4
|
+
closeBracketsKeymap,
|
|
5
|
+
completionKeymap,
|
|
6
|
+
} from "@codemirror/autocomplete";
|
|
7
|
+
import { defaultKeymap, history, historyKeymap } from "@codemirror/commands";
|
|
8
|
+
import { json, jsonParseLinter } from "@codemirror/lang-json";
|
|
9
|
+
import {
|
|
10
|
+
bracketMatching,
|
|
11
|
+
foldGutter,
|
|
12
|
+
foldKeymap,
|
|
13
|
+
HighlightStyle,
|
|
14
|
+
indentOnInput,
|
|
15
|
+
syntaxHighlighting,
|
|
16
|
+
} from "@codemirror/language";
|
|
17
|
+
import { linter, lintGutter, lintKeymap } from "@codemirror/lint";
|
|
18
|
+
import { highlightSelectionMatches, searchKeymap } from "@codemirror/search";
|
|
19
|
+
import { EditorState } from "@codemirror/state";
|
|
20
|
+
import {
|
|
21
|
+
crosshairCursor,
|
|
22
|
+
drawSelection,
|
|
23
|
+
dropCursor,
|
|
24
|
+
EditorView,
|
|
25
|
+
highlightActiveLine,
|
|
26
|
+
highlightActiveLineGutter,
|
|
27
|
+
highlightSpecialChars,
|
|
28
|
+
keymap,
|
|
29
|
+
lineNumbers,
|
|
30
|
+
rectangularSelection,
|
|
31
|
+
} from "@codemirror/view";
|
|
32
|
+
import { tags } from "@lezer/highlight";
|
|
33
|
+
import * as React from "react";
|
|
34
|
+
|
|
35
|
+
const baseTheme = EditorView.baseTheme({
|
|
36
|
+
"&": {
|
|
37
|
+
backgroundColor: "var(--color-bg-primary)",
|
|
38
|
+
height: "100%",
|
|
39
|
+
width: "100%",
|
|
40
|
+
fontSize: "14px",
|
|
41
|
+
paddingTop: "8px",
|
|
42
|
+
paddingBottom: "8px",
|
|
43
|
+
},
|
|
44
|
+
".cm-scroller": {
|
|
45
|
+
overflow: "auto",
|
|
46
|
+
},
|
|
47
|
+
".cm-content": {
|
|
48
|
+
fontFamily: "var(--font-family-mono)",
|
|
49
|
+
padding: "0",
|
|
50
|
+
},
|
|
51
|
+
"&.cm-focused": {
|
|
52
|
+
outline: "none",
|
|
53
|
+
},
|
|
54
|
+
".cm-gutter": {
|
|
55
|
+
fontFamily: "var(--font-family-mono)",
|
|
56
|
+
},
|
|
57
|
+
".cm-gutters": {
|
|
58
|
+
backgroundColor: "var(--color-bg-primary)",
|
|
59
|
+
border: "none",
|
|
60
|
+
},
|
|
61
|
+
".cm-lineNumbers": {
|
|
62
|
+
paddingLeft: "16px",
|
|
63
|
+
},
|
|
64
|
+
".cm-activeLineGutter": {
|
|
65
|
+
backgroundColor: "var(--color-bg-primary)",
|
|
66
|
+
color: "var(--color-text-primary)",
|
|
67
|
+
},
|
|
68
|
+
".cm-activeLine": {
|
|
69
|
+
backgroundColor: "rgba(255, 255, 255, 0)",
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
const customHighlightStyle = HighlightStyle.define([
|
|
74
|
+
{ tag: tags.propertyName, color: "#EA4A35" },
|
|
75
|
+
{ tag: tags.string, color: "#405CBF" },
|
|
76
|
+
{ tag: tags.number, color: "#00A984" },
|
|
77
|
+
{ tag: tags.bool, color: "#569cd6" },
|
|
78
|
+
{ tag: tags.null, color: "#569cd6" },
|
|
79
|
+
]);
|
|
80
|
+
|
|
81
|
+
export function CodeEditor({
|
|
82
|
+
defaultValue,
|
|
83
|
+
onChange,
|
|
84
|
+
}: {
|
|
85
|
+
defaultValue?: string;
|
|
86
|
+
onChange?: (value: string) => void;
|
|
87
|
+
}) {
|
|
88
|
+
const editorRef = React.useRef(null);
|
|
89
|
+
|
|
90
|
+
React.useEffect(() => {
|
|
91
|
+
if (!editorRef.current) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
const view = new EditorView({
|
|
96
|
+
parent: editorRef.current,
|
|
97
|
+
state: EditorState.create({
|
|
98
|
+
doc: defaultValue ?? "",
|
|
99
|
+
extensions: [
|
|
100
|
+
lineNumbers(),
|
|
101
|
+
foldGutter(),
|
|
102
|
+
highlightSpecialChars(),
|
|
103
|
+
history(),
|
|
104
|
+
drawSelection(),
|
|
105
|
+
dropCursor(),
|
|
106
|
+
EditorState.allowMultipleSelections.of(true),
|
|
107
|
+
indentOnInput(),
|
|
108
|
+
json(),
|
|
109
|
+
syntaxHighlighting(customHighlightStyle),
|
|
110
|
+
bracketMatching(),
|
|
111
|
+
closeBrackets(),
|
|
112
|
+
autocompletion(),
|
|
113
|
+
rectangularSelection(),
|
|
114
|
+
crosshairCursor(),
|
|
115
|
+
highlightActiveLine(),
|
|
116
|
+
highlightActiveLineGutter(),
|
|
117
|
+
highlightSelectionMatches(),
|
|
118
|
+
baseTheme,
|
|
119
|
+
keymap.of([
|
|
120
|
+
...closeBracketsKeymap,
|
|
121
|
+
...defaultKeymap,
|
|
122
|
+
...searchKeymap,
|
|
123
|
+
...historyKeymap,
|
|
124
|
+
...foldKeymap,
|
|
125
|
+
...completionKeymap,
|
|
126
|
+
...lintKeymap,
|
|
127
|
+
]),
|
|
128
|
+
linter(jsonParseLinter(), { delay: 300 }),
|
|
129
|
+
lintGutter(),
|
|
130
|
+
EditorView.updateListener.of((update) => {
|
|
131
|
+
if (update.docChanged && onChange) {
|
|
132
|
+
onChange(update.view.state.doc.toString());
|
|
133
|
+
}
|
|
134
|
+
}),
|
|
135
|
+
],
|
|
136
|
+
}),
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
return () => view.destroy();
|
|
140
|
+
}, [defaultValue, onChange]);
|
|
141
|
+
|
|
142
|
+
return <div className="h-full w-full" ref={editorRef} />;
|
|
143
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { CodeEditor } from "./code-editor";
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof CodeEditor> = {
|
|
5
|
+
title: "Component/Editor",
|
|
6
|
+
component: CodeEditor,
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: "centered",
|
|
9
|
+
},
|
|
10
|
+
tags: ["autodocs"],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default meta;
|
|
14
|
+
type Story = StoryObj<typeof CodeEditor>;
|
|
15
|
+
|
|
16
|
+
export const Default: Story = {
|
|
17
|
+
args: {
|
|
18
|
+
defaultValue: JSON.stringify(
|
|
19
|
+
{
|
|
20
|
+
resourceType: "Patient",
|
|
21
|
+
meta: { versionId: 10 },
|
|
22
|
+
gender: "male",
|
|
23
|
+
name: [{ family: "Doe", given: ["John"] }],
|
|
24
|
+
},
|
|
25
|
+
null,
|
|
26
|
+
2,
|
|
27
|
+
),
|
|
28
|
+
},
|
|
29
|
+
render: () => (
|
|
30
|
+
<div className="h-[500px] w-[500px]">
|
|
31
|
+
<CodeEditor />
|
|
32
|
+
</div>
|
|
33
|
+
),
|
|
34
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Check, Copy } from "lucide-react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
|
|
4
|
+
interface CopyIconProps {
|
|
5
|
+
text: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
function CopyIcon({ text }: CopyIconProps) {
|
|
9
|
+
const [isActive, setIsActive] = React.useState(false);
|
|
10
|
+
|
|
11
|
+
async function handleClick() {
|
|
12
|
+
try {
|
|
13
|
+
await navigator.clipboard.writeText(text);
|
|
14
|
+
setIsActive(true);
|
|
15
|
+
setTimeout(() => {
|
|
16
|
+
setIsActive(false);
|
|
17
|
+
}, 1000);
|
|
18
|
+
} catch (error) {
|
|
19
|
+
console.error("Failed to copy to clipboard:", error);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
<button type="button" onClick={handleClick} style={{ cursor: "pointer" }}>
|
|
25
|
+
{isActive ? <Check /> : <Copy />}
|
|
26
|
+
</button>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { CopyIcon };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { action } from "storybook/actions";
|
|
4
|
+
import {
|
|
5
|
+
RequestLineEditor,
|
|
6
|
+
type RequestLineEditorProps,
|
|
7
|
+
} from "./request-line-editor";
|
|
8
|
+
|
|
9
|
+
const meta: Meta<typeof RequestLineEditor> = {
|
|
10
|
+
title: "Component/Request line editor",
|
|
11
|
+
component: RequestLineEditor,
|
|
12
|
+
parameters: {
|
|
13
|
+
layout: "centered",
|
|
14
|
+
},
|
|
15
|
+
tags: ["autodocs"],
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default meta;
|
|
19
|
+
type Story = StoryObj<typeof RequestLineEditor>;
|
|
20
|
+
|
|
21
|
+
function RequestLineEditorWrapper({
|
|
22
|
+
selectedMethod,
|
|
23
|
+
methods,
|
|
24
|
+
inputValue,
|
|
25
|
+
}: RequestLineEditorProps) {
|
|
26
|
+
const [currentSelectedMethod, setMethod] = React.useState(selectedMethod);
|
|
27
|
+
const [currentInputValue, setInputValue] = React.useState(inputValue);
|
|
28
|
+
const actionSetMethod = (method: string) => {
|
|
29
|
+
action("setMethod")(method);
|
|
30
|
+
setMethod(method);
|
|
31
|
+
};
|
|
32
|
+
const actionSetInputValue = (event: React.ChangeEvent<HTMLInputElement>) => {
|
|
33
|
+
action("setMethod")(event);
|
|
34
|
+
setInputValue(event.target.value);
|
|
35
|
+
};
|
|
36
|
+
return (
|
|
37
|
+
<RequestLineEditor
|
|
38
|
+
methods={methods}
|
|
39
|
+
selectedMethod={currentSelectedMethod}
|
|
40
|
+
setMethod={actionSetMethod}
|
|
41
|
+
inputValue={currentInputValue}
|
|
42
|
+
onInputChange={actionSetInputValue}
|
|
43
|
+
/>
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export const GET: Story = {
|
|
48
|
+
args: {
|
|
49
|
+
selectedMethod: "GET",
|
|
50
|
+
methods: ["GET", "POST", "PUT", "PATCH", "DELETE"],
|
|
51
|
+
inputValue: "/fhir/Patient",
|
|
52
|
+
},
|
|
53
|
+
render: (args) => <RequestLineEditorWrapper {...args} />,
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export const POST: Story = {
|
|
57
|
+
args: {
|
|
58
|
+
selectedMethod: "POST",
|
|
59
|
+
methods: ["GET", "POST", "PUT", "PATCH", "DELETE"],
|
|
60
|
+
inputValue: "/fhir/Patient",
|
|
61
|
+
},
|
|
62
|
+
render: (args) => <RequestLineEditorWrapper {...args} />,
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export const PUT: Story = {
|
|
66
|
+
args: {
|
|
67
|
+
selectedMethod: "PUT",
|
|
68
|
+
methods: ["GET", "POST", "PUT", "PATCH", "DELETE"],
|
|
69
|
+
inputValue: "/fhir/Patient",
|
|
70
|
+
},
|
|
71
|
+
render: (args) => <RequestLineEditorWrapper {...args} />,
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export const PATCH: Story = {
|
|
75
|
+
args: {
|
|
76
|
+
selectedMethod: "PATCH",
|
|
77
|
+
methods: ["GET", "POST", "PUT", "PATCH", "DELETE"],
|
|
78
|
+
inputValue: "/fhir/Patient",
|
|
79
|
+
},
|
|
80
|
+
render: (args) => <RequestLineEditorWrapper {...args} />,
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export const DELETE: Story = {
|
|
84
|
+
args: {
|
|
85
|
+
selectedMethod: "DELETE",
|
|
86
|
+
methods: ["GET", "POST", "PUT", "PATCH", "DELETE"],
|
|
87
|
+
inputValue: "/fhir/Patient",
|
|
88
|
+
},
|
|
89
|
+
render: (args) => <RequestLineEditorWrapper {...args} />,
|
|
90
|
+
};
|