@k3-universe/react-kit 0.0.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/.babelrc +12 -0
- package/.storybook/main.ts +22 -0
- package/.storybook/preview.ts +190 -0
- package/Dockerfile.storybook +43 -0
- package/README.md +7 -0
- package/components.json +20 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -0
- package/dist/kit/builder/data-table/components/DataTable.d.ts +34 -0
- package/dist/kit/builder/data-table/components/DataTable.d.ts.map +1 -0
- package/dist/kit/builder/data-table/components/DataTableColumnHeader.d.ts +8 -0
- package/dist/kit/builder/data-table/components/DataTableColumnHeader.d.ts.map +1 -0
- package/dist/kit/builder/data-table/components/DataTablePagination.d.ts +6 -0
- package/dist/kit/builder/data-table/components/DataTablePagination.d.ts.map +1 -0
- package/dist/kit/builder/data-table/components/DataTableViewOptions.d.ts +5 -0
- package/dist/kit/builder/data-table/components/DataTableViewOptions.d.ts.map +1 -0
- package/dist/kit/builder/data-table/index.d.ts +6 -0
- package/dist/kit/builder/data-table/index.d.ts.map +1 -0
- package/dist/kit/builder/data-table/types.d.ts +27 -0
- package/dist/kit/builder/data-table/types.d.ts.map +1 -0
- package/dist/kit/builder/data-table/utils/dotAccessor.d.ts +2 -0
- package/dist/kit/builder/data-table/utils/dotAccessor.d.ts.map +1 -0
- package/dist/kit/builder/dialog/index.d.ts +3 -0
- package/dist/kit/builder/dialog/index.d.ts.map +1 -0
- package/dist/kit/builder/dialog/provider.d.ts +26 -0
- package/dist/kit/builder/dialog/provider.d.ts.map +1 -0
- package/dist/kit/builder/form/components/FormActions.d.ts +20 -0
- package/dist/kit/builder/form/components/FormActions.d.ts.map +1 -0
- package/dist/kit/builder/form/components/FormBuilder.d.ts +97 -0
- package/dist/kit/builder/form/components/FormBuilder.d.ts.map +1 -0
- package/dist/kit/builder/form/components/FormField.d.ts +12 -0
- package/dist/kit/builder/form/components/FormField.d.ts.map +1 -0
- package/dist/kit/builder/form/components/FormSection.d.ts +15 -0
- package/dist/kit/builder/form/components/FormSection.d.ts.map +1 -0
- package/dist/kit/builder/form/components/index.d.ts +5 -0
- package/dist/kit/builder/form/components/index.d.ts.map +1 -0
- package/dist/kit/builder/form/index.d.ts +3 -0
- package/dist/kit/builder/form/index.d.ts.map +1 -0
- package/dist/kit/builder/form/utils/common-forms.d.ts +7 -0
- package/dist/kit/builder/form/utils/common-forms.d.ts.map +1 -0
- package/dist/kit/builder/form/utils/dependencies.d.ts +41 -0
- package/dist/kit/builder/form/utils/dependencies.d.ts.map +1 -0
- package/dist/kit/builder/form/utils/field-factories.d.ts +22 -0
- package/dist/kit/builder/form/utils/field-factories.d.ts.map +1 -0
- package/dist/kit/builder/form/utils/index.d.ts +15 -0
- package/dist/kit/builder/form/utils/index.d.ts.map +1 -0
- package/dist/kit/builder/form/utils/section-factories.d.ts +7 -0
- package/dist/kit/builder/form/utils/section-factories.d.ts.map +1 -0
- package/dist/kit/builder/form/utils/transformers.d.ts +6 -0
- package/dist/kit/builder/form/utils/transformers.d.ts.map +1 -0
- package/dist/kit/builder/form/utils/validations.d.ts +13 -0
- package/dist/kit/builder/form/utils/validations.d.ts.map +1 -0
- package/dist/kit/builder/form/utils/validators.d.ts +8 -0
- package/dist/kit/builder/form/utils/validators.d.ts.map +1 -0
- package/dist/kit/builder/page/Page.d.ts +48 -0
- package/dist/kit/builder/page/Page.d.ts.map +1 -0
- package/dist/kit/builder/page/index.d.ts +2 -0
- package/dist/kit/builder/page/index.d.ts.map +1 -0
- package/dist/kit/builder/section/SectionBuilder.d.ts +3 -0
- package/dist/kit/builder/section/SectionBuilder.d.ts.map +1 -0
- package/dist/kit/builder/section/index.d.ts +3 -0
- package/dist/kit/builder/section/index.d.ts.map +1 -0
- package/dist/kit/builder/section/types.d.ts +59 -0
- package/dist/kit/builder/section/types.d.ts.map +1 -0
- package/dist/kit/components/autocomplete/Autocomplete.d.ts +21 -0
- package/dist/kit/components/autocomplete/Autocomplete.d.ts.map +1 -0
- package/dist/kit/components/autocomplete/index.d.ts +3 -0
- package/dist/kit/components/autocomplete/index.d.ts.map +1 -0
- package/dist/kit/components/autocomplete/types.d.ts +19 -0
- package/dist/kit/components/autocomplete/types.d.ts.map +1 -0
- package/dist/kit/components/login/Login.d.ts +29 -0
- package/dist/kit/components/login/Login.d.ts.map +1 -0
- package/dist/kit/components/login/index.d.ts +2 -0
- package/dist/kit/components/login/index.d.ts.map +1 -0
- package/dist/kit/layouts/admin/components/AdminLayout.d.ts +17 -0
- package/dist/kit/layouts/admin/components/AdminLayout.d.ts.map +1 -0
- package/dist/kit/layouts/admin/components/ThemeToggle.d.ts +5 -0
- package/dist/kit/layouts/admin/components/ThemeToggle.d.ts.map +1 -0
- package/dist/kit/layouts/admin/hooks/menu.d.ts +12 -0
- package/dist/kit/layouts/admin/hooks/menu.d.ts.map +1 -0
- package/dist/kit/layouts/admin/providers/AdminMenuProvider.d.ts +7 -0
- package/dist/kit/layouts/admin/providers/AdminMenuProvider.d.ts.map +1 -0
- package/dist/kit/layouts/admin/types/index.d.ts +27 -0
- package/dist/kit/layouts/admin/types/index.d.ts.map +1 -0
- package/dist/kit/providers/ThemeProvider.d.ts +14 -0
- package/dist/kit/providers/ThemeProvider.d.ts.map +1 -0
- package/dist/shadcn/hooks/use-mobile.d.ts +2 -0
- package/dist/shadcn/hooks/use-mobile.d.ts.map +1 -0
- package/dist/shadcn/lib/utils.d.ts +3 -0
- package/dist/shadcn/lib/utils.d.ts.map +1 -0
- package/dist/shadcn/ui/accordion.d.ts +8 -0
- package/dist/shadcn/ui/accordion.d.ts.map +1 -0
- package/dist/shadcn/ui/alert-dialog.d.ts +15 -0
- package/dist/shadcn/ui/alert-dialog.d.ts.map +1 -0
- package/dist/shadcn/ui/alert.d.ts +10 -0
- package/dist/shadcn/ui/alert.d.ts.map +1 -0
- package/dist/shadcn/ui/aspect-ratio.d.ts +4 -0
- package/dist/shadcn/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/shadcn/ui/avatar.d.ts +7 -0
- package/dist/shadcn/ui/avatar.d.ts.map +1 -0
- package/dist/shadcn/ui/badge.d.ts +10 -0
- package/dist/shadcn/ui/badge.d.ts.map +1 -0
- package/dist/shadcn/ui/breadcrumb.d.ts +12 -0
- package/dist/shadcn/ui/breadcrumb.d.ts.map +1 -0
- package/dist/shadcn/ui/button.d.ts +11 -0
- package/dist/shadcn/ui/button.d.ts.map +1 -0
- package/dist/shadcn/ui/calendar.d.ts +9 -0
- package/dist/shadcn/ui/calendar.d.ts.map +1 -0
- package/dist/shadcn/ui/card.d.ts +10 -0
- package/dist/shadcn/ui/card.d.ts.map +1 -0
- package/dist/shadcn/ui/carousel.d.ts +20 -0
- package/dist/shadcn/ui/carousel.d.ts.map +1 -0
- package/dist/shadcn/ui/chart.d.ts +41 -0
- package/dist/shadcn/ui/chart.d.ts.map +1 -0
- package/dist/shadcn/ui/checkbox.d.ts +5 -0
- package/dist/shadcn/ui/checkbox.d.ts.map +1 -0
- package/dist/shadcn/ui/collapsible.d.ts +6 -0
- package/dist/shadcn/ui/collapsible.d.ts.map +1 -0
- package/dist/shadcn/ui/command.d.ts +19 -0
- package/dist/shadcn/ui/command.d.ts.map +1 -0
- package/dist/shadcn/ui/context-menu.d.ts +26 -0
- package/dist/shadcn/ui/context-menu.d.ts.map +1 -0
- package/dist/shadcn/ui/dialog.d.ts +16 -0
- package/dist/shadcn/ui/dialog.d.ts.map +1 -0
- package/dist/shadcn/ui/drawer.d.ts +14 -0
- package/dist/shadcn/ui/drawer.d.ts.map +1 -0
- package/dist/shadcn/ui/dropdown-menu.d.ts +26 -0
- package/dist/shadcn/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/shadcn/ui/form.d.ts +25 -0
- package/dist/shadcn/ui/form.d.ts.map +1 -0
- package/dist/shadcn/ui/hover-card.d.ts +7 -0
- package/dist/shadcn/ui/hover-card.d.ts.map +1 -0
- package/dist/shadcn/ui/input-otp.d.ts +12 -0
- package/dist/shadcn/ui/input-otp.d.ts.map +1 -0
- package/dist/shadcn/ui/input.d.ts +4 -0
- package/dist/shadcn/ui/input.d.ts.map +1 -0
- package/dist/shadcn/ui/label.d.ts +5 -0
- package/dist/shadcn/ui/label.d.ts.map +1 -0
- package/dist/shadcn/ui/menubar.d.ts +27 -0
- package/dist/shadcn/ui/menubar.d.ts.map +1 -0
- package/dist/shadcn/ui/navigation-menu.d.ts +15 -0
- package/dist/shadcn/ui/navigation-menu.d.ts.map +1 -0
- package/dist/shadcn/ui/pagination.d.ts +14 -0
- package/dist/shadcn/ui/pagination.d.ts.map +1 -0
- package/dist/shadcn/ui/popover.d.ts +8 -0
- package/dist/shadcn/ui/popover.d.ts.map +1 -0
- package/dist/shadcn/ui/progress.d.ts +5 -0
- package/dist/shadcn/ui/progress.d.ts.map +1 -0
- package/dist/shadcn/ui/radio-group.d.ts +6 -0
- package/dist/shadcn/ui/radio-group.d.ts.map +1 -0
- package/dist/shadcn/ui/resizable.d.ts +9 -0
- package/dist/shadcn/ui/resizable.d.ts.map +1 -0
- package/dist/shadcn/ui/scroll-area.d.ts +6 -0
- package/dist/shadcn/ui/scroll-area.d.ts.map +1 -0
- package/dist/shadcn/ui/select.d.ts +16 -0
- package/dist/shadcn/ui/select.d.ts.map +1 -0
- package/dist/shadcn/ui/separator.d.ts +5 -0
- package/dist/shadcn/ui/separator.d.ts.map +1 -0
- package/dist/shadcn/ui/sheet.d.ts +14 -0
- package/dist/shadcn/ui/sheet.d.ts.map +1 -0
- package/dist/shadcn/ui/sidebar.d.ts +70 -0
- package/dist/shadcn/ui/sidebar.d.ts.map +1 -0
- package/dist/shadcn/ui/skeleton.d.ts +3 -0
- package/dist/shadcn/ui/skeleton.d.ts.map +1 -0
- package/dist/shadcn/ui/slider.d.ts +5 -0
- package/dist/shadcn/ui/slider.d.ts.map +1 -0
- package/dist/shadcn/ui/sonner.d.ts +4 -0
- package/dist/shadcn/ui/sonner.d.ts.map +1 -0
- package/dist/shadcn/ui/switch.d.ts +5 -0
- package/dist/shadcn/ui/switch.d.ts.map +1 -0
- package/dist/shadcn/ui/table.d.ts +11 -0
- package/dist/shadcn/ui/table.d.ts.map +1 -0
- package/dist/shadcn/ui/tabs.d.ts +8 -0
- package/dist/shadcn/ui/tabs.d.ts.map +1 -0
- package/dist/shadcn/ui/textarea.d.ts +4 -0
- package/dist/shadcn/ui/textarea.d.ts.map +1 -0
- package/dist/shadcn/ui/toggle-group.d.ts +8 -0
- package/dist/shadcn/ui/toggle-group.d.ts.map +1 -0
- package/dist/shadcn/ui/toggle.d.ts +10 -0
- package/dist/shadcn/ui/toggle.d.ts.map +1 -0
- package/dist/shadcn/ui/tooltip.d.ts +8 -0
- package/dist/shadcn/ui/tooltip.d.ts.map +1 -0
- package/eslint.config.mjs +19 -0
- package/package.json +82 -0
- package/src/index.css +11 -0
- package/src/index.ts +0 -0
- package/src/kit/builder/data-table/components/DataTable.tsx +375 -0
- package/src/kit/builder/data-table/components/DataTableColumnHeader.tsx +63 -0
- package/src/kit/builder/data-table/components/DataTablePagination.tsx +86 -0
- package/src/kit/builder/data-table/components/DataTableViewOptions.tsx +42 -0
- package/src/kit/builder/data-table/index.ts +5 -0
- package/src/kit/builder/data-table/types.ts +29 -0
- package/src/kit/builder/data-table/utils/dotAccessor.ts +6 -0
- package/src/kit/builder/dialog/index.ts +2 -0
- package/src/kit/builder/dialog/provider.tsx +141 -0
- package/src/kit/builder/form/components/FormActions.tsx +78 -0
- package/src/kit/builder/form/components/FormBuilder.tsx +456 -0
- package/src/kit/builder/form/components/FormField.tsx +395 -0
- package/src/kit/builder/form/components/FormSection.tsx +88 -0
- package/src/kit/builder/form/components/index.ts +4 -0
- package/src/kit/builder/form/index.ts +2 -0
- package/src/kit/builder/form/utils/common-forms.ts +68 -0
- package/src/kit/builder/form/utils/dependencies.ts +56 -0
- package/src/kit/builder/form/utils/field-factories.ts +164 -0
- package/src/kit/builder/form/utils/index.ts +17 -0
- package/src/kit/builder/form/utils/section-factories.ts +35 -0
- package/src/kit/builder/form/utils/transformers.ts +100 -0
- package/src/kit/builder/form/utils/validations.ts +22 -0
- package/src/kit/builder/form/utils/validators.ts +20 -0
- package/src/kit/builder/page/Page.tsx +182 -0
- package/src/kit/builder/page/index.ts +1 -0
- package/src/kit/builder/section/SectionBuilder.tsx +213 -0
- package/src/kit/builder/section/index.ts +2 -0
- package/src/kit/builder/section/types.ts +66 -0
- package/src/kit/components/autocomplete/Autocomplete.tsx +247 -0
- package/src/kit/components/autocomplete/index.ts +2 -0
- package/src/kit/components/autocomplete/types.ts +24 -0
- package/src/kit/components/login/Login.tsx +119 -0
- package/src/kit/components/login/index.ts +1 -0
- package/src/kit/layouts/admin/components/AdminLayout.tsx +251 -0
- package/src/kit/layouts/admin/components/ThemeToggle.tsx +60 -0
- package/src/kit/layouts/admin/hooks/menu.ts +26 -0
- package/src/kit/layouts/admin/providers/AdminMenuProvider.tsx +58 -0
- package/src/kit/layouts/admin/types/index.ts +26 -0
- package/src/kit/providers/ThemeProvider.tsx +90 -0
- package/src/kit/themes/clean-slate.css +147 -0
- package/src/kit/themes/default.css +182 -0
- package/src/kit/themes/minimal-modern.css +147 -0
- package/src/kit/themes/spotify.css +147 -0
- package/src/shadcn/hooks/use-mobile.ts +19 -0
- package/src/shadcn/lib/utils.ts +6 -0
- package/src/shadcn/ui/accordion.tsx +66 -0
- package/src/shadcn/ui/alert-dialog.tsx +157 -0
- package/src/shadcn/ui/alert.tsx +66 -0
- package/src/shadcn/ui/aspect-ratio.tsx +11 -0
- package/src/shadcn/ui/avatar.tsx +53 -0
- package/src/shadcn/ui/badge.tsx +46 -0
- package/src/shadcn/ui/breadcrumb.tsx +108 -0
- package/src/shadcn/ui/button.tsx +59 -0
- package/src/shadcn/ui/calendar.tsx +213 -0
- package/src/shadcn/ui/card.tsx +92 -0
- package/src/shadcn/ui/carousel.tsx +240 -0
- package/src/shadcn/ui/chart.tsx +353 -0
- package/src/shadcn/ui/checkbox.tsx +32 -0
- package/src/shadcn/ui/collapsible.tsx +33 -0
- package/src/shadcn/ui/command.tsx +184 -0
- package/src/shadcn/ui/context-menu.tsx +252 -0
- package/src/shadcn/ui/dialog.tsx +143 -0
- package/src/shadcn/ui/drawer.tsx +135 -0
- package/src/shadcn/ui/dropdown-menu.tsx +257 -0
- package/src/shadcn/ui/form.tsx +167 -0
- package/src/shadcn/ui/hover-card.tsx +44 -0
- package/src/shadcn/ui/input-otp.tsx +77 -0
- package/src/shadcn/ui/input.tsx +21 -0
- package/src/shadcn/ui/label.tsx +24 -0
- package/src/shadcn/ui/menubar.tsx +276 -0
- package/src/shadcn/ui/navigation-menu.tsx +168 -0
- package/src/shadcn/ui/pagination.tsx +127 -0
- package/src/shadcn/ui/popover.tsx +48 -0
- package/src/shadcn/ui/progress.tsx +31 -0
- package/src/shadcn/ui/radio-group.tsx +45 -0
- package/src/shadcn/ui/resizable.tsx +56 -0
- package/src/shadcn/ui/scroll-area.tsx +58 -0
- package/src/shadcn/ui/select.tsx +185 -0
- package/src/shadcn/ui/separator.tsx +28 -0
- package/src/shadcn/ui/sheet.tsx +139 -0
- package/src/shadcn/ui/sidebar.tsx +726 -0
- package/src/shadcn/ui/skeleton.tsx +13 -0
- package/src/shadcn/ui/slider.tsx +63 -0
- package/src/shadcn/ui/sonner.tsx +25 -0
- package/src/shadcn/ui/switch.tsx +31 -0
- package/src/shadcn/ui/table.tsx +116 -0
- package/src/shadcn/ui/tabs.tsx +66 -0
- package/src/shadcn/ui/textarea.tsx +18 -0
- package/src/shadcn/ui/toggle-group.tsx +73 -0
- package/src/shadcn/ui/toggle.tsx +47 -0
- package/src/shadcn/ui/tooltip.tsx +61 -0
- package/src/stories/kit/builder/DataTable.Basic.stories.tsx +61 -0
- package/src/stories/kit/builder/DataTable.Filters.stories.tsx +76 -0
- package/src/stories/kit/builder/DataTable.Pagination.stories.tsx +72 -0
- package/src/stories/kit/builder/DataTable.SelectionAndActions.stories.tsx +63 -0
- package/src/stories/kit/builder/DataTable.Sorting.stories.tsx +56 -0
- package/src/stories/kit/builder/Dialog.stories.tsx +84 -0
- package/src/stories/kit/builder/Form.Basic.stories.tsx +45 -0
- package/src/stories/kit/builder/Form.Complex.stories.tsx +223 -0
- package/src/stories/kit/builder/Form.Dynamic.stories.tsx +214 -0
- package/src/stories/kit/builder/Form.Simple.stories.tsx +78 -0
- package/src/stories/kit/builder/Page.stories.tsx +89 -0
- package/src/stories/kit/builder/Section.stories.tsx +179 -0
- package/src/stories/kit/components/Autocomplete.stories.tsx +98 -0
- package/src/stories/kit/components/Login.stories.tsx +161 -0
- package/src/stories/kit/layouts/admin/AdminLayout.Basic.stories.tsx +93 -0
- package/src/stories/kit/layouts/admin/AdminLayout.Collapsible.stories.tsx +58 -0
- package/src/stories/kit/layouts/admin/AdminLayout.Complex.stories.tsx +166 -0
- package/src/stories/kit/layouts/admin/AdminLayout.CustomSidebarHeaderComponent.stories.tsx +64 -0
- package/src/stories/kit/layouts/admin/AdminLayout.CustomSidebarTitleAndIcon.stories.tsx +55 -0
- package/src/stories/kit/layouts/admin/AdminLayout.HeaderSlots.stories.tsx +63 -0
- package/src/stories/shadcn/ui/Accordion.stories.tsx +94 -0
- package/src/stories/shadcn/ui/Alert.stories.tsx +36 -0
- package/src/stories/shadcn/ui/AlertDialog.stories.tsx +71 -0
- package/src/stories/shadcn/ui/AspectRatio.stories.tsx +58 -0
- package/src/stories/shadcn/ui/Avatar.stories.tsx +26 -0
- package/src/stories/shadcn/ui/Badge.stories.tsx +28 -0
- package/src/stories/shadcn/ui/Breadcrumb.stories.tsx +47 -0
- package/src/stories/shadcn/ui/Button.stories.tsx +49 -0
- package/src/stories/shadcn/ui/Calendar.stories.tsx +28 -0
- package/src/stories/shadcn/ui/Card.stories.tsx +30 -0
- package/src/stories/shadcn/ui/Carousel.stories.tsx +37 -0
- package/src/stories/shadcn/ui/Chart.stories.tsx +72 -0
- package/src/stories/shadcn/ui/Checkbox.stories.tsx +56 -0
- package/src/stories/shadcn/ui/Collapsible.stories.tsx +33 -0
- package/src/stories/shadcn/ui/Command.stories.tsx +53 -0
- package/src/stories/shadcn/ui/ContextMenu.stories.tsx +59 -0
- package/src/stories/shadcn/ui/Dialog.stories.tsx +33 -0
- package/src/stories/shadcn/ui/Drawer.stories.tsx +46 -0
- package/src/stories/shadcn/ui/DropdownMenu.stories.tsx +65 -0
- package/src/stories/shadcn/ui/Form.stories.tsx +90 -0
- package/src/stories/shadcn/ui/HoverCard.stories.tsx +37 -0
- package/src/stories/shadcn/ui/Input.stories.tsx +39 -0
- package/src/stories/shadcn/ui/InputOtp.stories.tsx +32 -0
- package/src/stories/shadcn/ui/Label.stories.tsx +29 -0
- package/src/stories/shadcn/ui/Menubar.stories.tsx +73 -0
- package/src/stories/shadcn/ui/NavigationMenu.stories.tsx +53 -0
- package/src/stories/shadcn/ui/Pagination.stories.tsx +51 -0
- package/src/stories/shadcn/ui/Popover.stories.tsx +47 -0
- package/src/stories/shadcn/ui/Progress.stories.tsx +30 -0
- package/src/stories/shadcn/ui/RadioGroup.stories.tsx +31 -0
- package/src/stories/shadcn/ui/Resizable.stories.tsx +43 -0
- package/src/stories/shadcn/ui/ScrollArea.stories.tsx +32 -0
- package/src/stories/shadcn/ui/Select.stories.tsx +55 -0
- package/src/stories/shadcn/ui/Separator.stories.tsx +35 -0
- package/src/stories/shadcn/ui/Sheet.stories.tsx +47 -0
- package/src/stories/shadcn/ui/Sidebar.stories.tsx +120 -0
- package/src/stories/shadcn/ui/Skeleton.stories.tsx +23 -0
- package/src/stories/shadcn/ui/Slider.stories.tsx +21 -0
- package/src/stories/shadcn/ui/Sonner.stories.tsx +39 -0
- package/src/stories/shadcn/ui/Switch.stories.tsx +28 -0
- package/src/stories/shadcn/ui/Table.stories.tsx +315 -0
- package/src/stories/shadcn/ui/Tabs.stories.tsx +24 -0
- package/src/stories/shadcn/ui/Textarea.stories.tsx +40 -0
- package/src/stories/shadcn/ui/Toggle.stories.tsx +36 -0
- package/src/stories/shadcn/ui/ToggleGroup.stories.tsx +28 -0
- package/src/stories/shadcn/ui/Tooltip.stories.tsx +25 -0
- package/storybook-static/assets/Accordion.stories-N1auke5L.js +52 -0
- package/storybook-static/assets/AdminLayout-Cxd0-A_L.js +53 -0
- package/storybook-static/assets/AdminLayout.Basic.stories-C_I6rWuq.js +4 -0
- package/storybook-static/assets/AdminLayout.Collapsible.stories-CsU3DwTo.js +4 -0
- package/storybook-static/assets/AdminLayout.Complex.stories-BbY1Ue6d.js +29 -0
- package/storybook-static/assets/AdminLayout.CustomSidebarHeaderComponent.stories-LFVi-aIv.js +9 -0
- package/storybook-static/assets/AdminLayout.CustomSidebarTitleAndIcon.stories-BqP6UVc7.js +4 -0
- package/storybook-static/assets/AdminLayout.HeaderSlots.stories-BactzgkF.js +7 -0
- package/storybook-static/assets/Alert.stories-_FtuixdR.js +27 -0
- package/storybook-static/assets/AlertDialog.stories-6NY3BjwR.js +43 -0
- package/storybook-static/assets/AspectRatio.stories-DAT11y02.js +22 -0
- package/storybook-static/assets/Autocomplete-DngjqsCM.js +35 -0
- package/storybook-static/assets/Autocomplete.stories-BCaOrgTR.js +33 -0
- package/storybook-static/assets/Avatar.stories-DlzxSLJ-.js +12 -0
- package/storybook-static/assets/Badge.stories-DKHXsoV5.js +12 -0
- package/storybook-static/assets/Breadcrumb.stories-D8eUHpf7.js +25 -0
- package/storybook-static/assets/Button.stories-kvPdKxdw.js +26 -0
- package/storybook-static/assets/Calendar.stories-D-hUtQQI.js +3 -0
- package/storybook-static/assets/Card.stories-y8Z7NgrQ.js +15 -0
- package/storybook-static/assets/Carousel.stories-CFcHYKgp.js +15 -0
- package/storybook-static/assets/Chart.stories-BJwLNKfE.js +126 -0
- package/storybook-static/assets/Checkbox.stories-B22Fbwx1.js +12 -0
- package/storybook-static/assets/Collapsible.stories-BgcRp8Rk.js +18 -0
- package/storybook-static/assets/Combination-BT_gXe1L.js +41 -0
- package/storybook-static/assets/Command.stories-Dp4CtSQR.js +30 -0
- package/storybook-static/assets/ContextMenu.stories-DnVnIi-T.js +31 -0
- package/storybook-static/assets/DataTable.Basic.stories-DBF5VYq9.js +6 -0
- package/storybook-static/assets/DataTable.Filters.stories-CO0ipuGm.js +21 -0
- package/storybook-static/assets/DataTable.Pagination.stories-DNwCw64e.js +24 -0
- package/storybook-static/assets/DataTable.SelectionAndActions.stories-DGgdEbsf.js +26 -0
- package/storybook-static/assets/DataTable.Sorting.stories-CWpqloAB.js +6 -0
- package/storybook-static/assets/Dialog.stories-DQkYN8ht.js +18 -0
- package/storybook-static/assets/Dialog.stories-DXZINEgo.js +54 -0
- package/storybook-static/assets/Drawer.stories-DMH_vZgi.js +24 -0
- package/storybook-static/assets/DropdownMenu.stories-Dl8y-N7T.js +35 -0
- package/storybook-static/assets/Form.Basic.stories-CJugIYsx.js +45 -0
- package/storybook-static/assets/Form.Complex.stories-BPogRp6F.js +230 -0
- package/storybook-static/assets/Form.Dynamic.stories-Boway5AK.js +247 -0
- package/storybook-static/assets/Form.Simple.stories-_OXGXXpE.js +50 -0
- package/storybook-static/assets/Form.stories-BoHyR8ho.js +3 -0
- package/storybook-static/assets/FormBuilder-BGgeY8ik.js +5 -0
- package/storybook-static/assets/HoverCard.stories-1HM92M79.js +21 -0
- package/storybook-static/assets/Input.stories-sQ4EUlWt.js +16 -0
- package/storybook-static/assets/InputOtp.stories-Cpk_EmLx.js +42 -0
- package/storybook-static/assets/Label.stories-MjABHKSw.js +14 -0
- package/storybook-static/assets/Login.stories-BY4OYGk3.js +37 -0
- package/storybook-static/assets/Menubar.stories-B_60TWNE.js +44 -0
- package/storybook-static/assets/NavigationMenu.stories-DyuaBvvq.js +30 -0
- package/storybook-static/assets/Page.stories-DQKMxrPZ.js +91 -0
- package/storybook-static/assets/Pagination.stories-CBo7UrNd.js +29 -0
- package/storybook-static/assets/Popover.stories-D98_JrxN.js +15 -0
- package/storybook-static/assets/Progress.stories-Dejt5v3z.js +8 -0
- package/storybook-static/assets/RadioGroup.stories-Tz2LW6O6.js +16 -0
- package/storybook-static/assets/Resizable.stories-DhP2GKN7.js +25 -0
- package/storybook-static/assets/ScrollArea.stories-CF7-8wbM.js +12 -0
- package/storybook-static/assets/Section.stories-BpurjHIQ.js +196 -0
- package/storybook-static/assets/SectionBuilder-Bav4WrnT.js +1 -0
- package/storybook-static/assets/Select.stories-DJrU-mi0.js +17 -0
- package/storybook-static/assets/Separator.stories-BYH_o8QM.js +17 -0
- package/storybook-static/assets/Sheet.stories-BNJ7BIb-.js +24 -0
- package/storybook-static/assets/Sidebar.stories-BbjcJuOg.js +106 -0
- package/storybook-static/assets/Skeleton.stories-BQNIuIe5.js +9 -0
- package/storybook-static/assets/Slider.stories-CWOjKHKD.js +6 -0
- package/storybook-static/assets/Sonner.stories-CXSZs5yN.js +18 -0
- package/storybook-static/assets/Switch.stories-BUQjobWe.js +3 -0
- package/storybook-static/assets/Table.stories-DJcV7M9R.js +35 -0
- package/storybook-static/assets/Tabs.stories-ByeVrP18.js +10 -0
- package/storybook-static/assets/Textarea.stories-CKsDPHYc.js +17 -0
- package/storybook-static/assets/Toggle.stories-DutEzZ8k.js +3 -0
- package/storybook-static/assets/ToggleGroup.stories-C9fzJTh-.js +13 -0
- package/storybook-static/assets/Tooltip.stories-CngnJbP7.js +10 -0
- package/storybook-static/assets/accordion-bQe9Rep4.js +1 -0
- package/storybook-static/assets/alert-dialog-CypF_yaW.js +7 -0
- package/storybook-static/assets/avatar-CukM9hXu.js +1 -0
- package/storybook-static/assets/axe-W8QMjM0E.js +30 -0
- package/storybook-static/assets/button-BTWmFXop.js +1 -0
- package/storybook-static/assets/card-BJpPOzP8.js +1 -0
- package/storybook-static/assets/chart-column-Bzh5arua.js +6 -0
- package/storybook-static/assets/check-BgWXKGqi.js +6 -0
- package/storybook-static/assets/checkbox-QlugAqJY.js +1 -0
- package/storybook-static/assets/chevron-down-BqLjUn1_.js +6 -0
- package/storybook-static/assets/chevron-left-BR_0lKnE.js +6 -0
- package/storybook-static/assets/chevron-right-DpCIoMaJ.js +6 -0
- package/storybook-static/assets/circle-DVJTkDI7.js +6 -0
- package/storybook-static/assets/clean-slate-BR-XvZPt.css +1 -0
- package/storybook-static/assets/command-BERL33lL.js +6 -0
- package/storybook-static/assets/createLucideIcon-1ZwIAs_l.js +21 -0
- package/storybook-static/assets/default-M24vcGB8.css +1 -0
- package/storybook-static/assets/dependencies-ctrV69dx.js +1 -0
- package/storybook-static/assets/dialog-DM9YJ1JD.js +1 -0
- package/storybook-static/assets/dropdown-menu-TfFll7G9.js +1 -0
- package/storybook-static/assets/ellipsis-BSY8VuLI.js +6 -0
- package/storybook-static/assets/grip-vertical-Buja1rv9.js +6 -0
- package/storybook-static/assets/iframe-C9bogcIc.css +1 -0
- package/storybook-static/assets/iframe-G-6sM9Mt.js +1555 -0
- package/storybook-static/assets/index-1v1lhNFD.js +1 -0
- package/storybook-static/assets/index-7yNAGow7.js +1 -0
- package/storybook-static/assets/index-B-fXBfyD.js +1 -0
- package/storybook-static/assets/index-BDwnENHR.js +1 -0
- package/storybook-static/assets/index-BdQq_4o_.js +1 -0
- package/storybook-static/assets/index-Bq6UNRVc.js +1 -0
- package/storybook-static/assets/index-CAwQR9Pv.js +1 -0
- package/storybook-static/assets/index-CGrAONsN.js +1 -0
- package/storybook-static/assets/index-CLmN5G1a.js +1 -0
- package/storybook-static/assets/index-CMmbDm5O.js +1 -0
- package/storybook-static/assets/index-CZaD3imo.js +9 -0
- package/storybook-static/assets/index-CayhpKmv.js +1 -0
- package/storybook-static/assets/index-ClNNG_ys.js +1 -0
- package/storybook-static/assets/index-CzJf-yyP.js +5 -0
- package/storybook-static/assets/index-DNAxNqEO.js +1 -0
- package/storybook-static/assets/index-DW48STyt.js +1 -0
- package/storybook-static/assets/index-DhoByIgc.js +1 -0
- package/storybook-static/assets/index-DqWzLCH-.js +1 -0
- package/storybook-static/assets/index-DvM9azdj.js +1 -0
- package/storybook-static/assets/index-DySHPxMy.js +1 -0
- package/storybook-static/assets/index-HghBIZeg.js +1 -0
- package/storybook-static/assets/index-I343IfOC.js +1 -0
- package/storybook-static/assets/index-SxI7_jxe.js +9 -0
- package/storybook-static/assets/index-_crRFOM5.js +1 -0
- package/storybook-static/assets/index-d_S6mtzU.js +1 -0
- package/storybook-static/assets/index-ev1RjzGv.js +1 -0
- package/storybook-static/assets/index-lH-AZpAn.js +1 -0
- package/storybook-static/assets/input-11YRd9gD.js +1 -0
- package/storybook-static/assets/jsx-runtime-D_zvdyIk.js +9 -0
- package/storybook-static/assets/label-C5vJTTwH.js +1 -0
- package/storybook-static/assets/lodash-Q9aGJGMb.js +73 -0
- package/storybook-static/assets/matchers-7Z3WT2CE-T3xScrR7.js +14 -0
- package/storybook-static/assets/minimal-modern-BmvR5wyr.css +1 -0
- package/storybook-static/assets/popover-DW1K4QCO.js +1 -0
- package/storybook-static/assets/preload-helper-Dp1pzeXC.js +1 -0
- package/storybook-static/assets/radio-group-iPL-8jvw.js +1 -0
- package/storybook-static/assets/react-18-CK1-M7n3.js +25 -0
- package/storybook-static/assets/react-icons.esm-n2MUhK0n.js +1 -0
- package/storybook-static/assets/refresh-cw-FYEbhX1i.js +6 -0
- package/storybook-static/assets/schemas-S_Tg7JYp.js +18 -0
- package/storybook-static/assets/section-factories-CC6eFfbk.js +1 -0
- package/storybook-static/assets/select-DbLzULCJ.js +6 -0
- package/storybook-static/assets/separator-DoUX1TNx.js +1 -0
- package/storybook-static/assets/settings-2-CpOcGlDm.js +6 -0
- package/storybook-static/assets/sheet-n5VQ25jh.js +1 -0
- package/storybook-static/assets/shopping-cart-9kOJ1UDd.js +11 -0
- package/storybook-static/assets/sidebar-CvUiZOJe.js +6 -0
- package/storybook-static/assets/skeleton-CjDnQs43.js +1 -0
- package/storybook-static/assets/spotify-DpbeJq1r.css +1 -0
- package/storybook-static/assets/table-CP3vMqFn.js +1 -0
- package/storybook-static/assets/textarea-Dw2vruMl.js +1 -0
- package/storybook-static/assets/toggle-B-YKWMF8.js +16 -0
- package/storybook-static/assets/tooltip-CNONbPiI.js +1 -0
- package/storybook-static/assets/trash-2-Bt5LMclM.js +11 -0
- package/storybook-static/assets/utils-D-KgF5mV.js +1 -0
- package/storybook-static/assets/x-DG9mLFAg.js +6 -0
- package/storybook-static/favicon-wrapper.svg +46 -0
- package/storybook-static/favicon.svg +1 -0
- package/storybook-static/iframe.html +687 -0
- package/storybook-static/index.d.ts +1 -0
- package/storybook-static/index.d.ts.map +1 -0
- package/storybook-static/index.html +166 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/kit/builder/data-table/components/DataTable.d.ts +34 -0
- package/storybook-static/kit/builder/data-table/components/DataTable.d.ts.map +1 -0
- package/storybook-static/kit/builder/data-table/components/DataTableColumnHeader.d.ts +8 -0
- package/storybook-static/kit/builder/data-table/components/DataTableColumnHeader.d.ts.map +1 -0
- package/storybook-static/kit/builder/data-table/components/DataTablePagination.d.ts +6 -0
- package/storybook-static/kit/builder/data-table/components/DataTablePagination.d.ts.map +1 -0
- package/storybook-static/kit/builder/data-table/components/DataTableViewOptions.d.ts +5 -0
- package/storybook-static/kit/builder/data-table/components/DataTableViewOptions.d.ts.map +1 -0
- package/storybook-static/kit/builder/data-table/index.d.ts +6 -0
- package/storybook-static/kit/builder/data-table/index.d.ts.map +1 -0
- package/storybook-static/kit/builder/data-table/types.d.ts +27 -0
- package/storybook-static/kit/builder/data-table/types.d.ts.map +1 -0
- package/storybook-static/kit/builder/data-table/utils/dotAccessor.d.ts +2 -0
- package/storybook-static/kit/builder/data-table/utils/dotAccessor.d.ts.map +1 -0
- package/storybook-static/kit/builder/dialog/index.d.ts +3 -0
- package/storybook-static/kit/builder/dialog/index.d.ts.map +1 -0
- package/storybook-static/kit/builder/dialog/provider.d.ts +26 -0
- package/storybook-static/kit/builder/dialog/provider.d.ts.map +1 -0
- package/storybook-static/kit/builder/form/components/FormActions.d.ts +20 -0
- package/storybook-static/kit/builder/form/components/FormActions.d.ts.map +1 -0
- package/storybook-static/kit/builder/form/components/FormBuilder.d.ts +97 -0
- package/storybook-static/kit/builder/form/components/FormBuilder.d.ts.map +1 -0
- package/storybook-static/kit/builder/form/components/FormField.d.ts +12 -0
- package/storybook-static/kit/builder/form/components/FormField.d.ts.map +1 -0
- package/storybook-static/kit/builder/form/components/FormSection.d.ts +15 -0
- package/storybook-static/kit/builder/form/components/FormSection.d.ts.map +1 -0
- package/storybook-static/kit/builder/form/components/index.d.ts +5 -0
- package/storybook-static/kit/builder/form/components/index.d.ts.map +1 -0
- package/storybook-static/kit/builder/form/index.d.ts +3 -0
- package/storybook-static/kit/builder/form/index.d.ts.map +1 -0
- package/storybook-static/kit/builder/form/utils/common-forms.d.ts +7 -0
- package/storybook-static/kit/builder/form/utils/common-forms.d.ts.map +1 -0
- package/storybook-static/kit/builder/form/utils/dependencies.d.ts +41 -0
- package/storybook-static/kit/builder/form/utils/dependencies.d.ts.map +1 -0
- package/storybook-static/kit/builder/form/utils/field-factories.d.ts +22 -0
- package/storybook-static/kit/builder/form/utils/field-factories.d.ts.map +1 -0
- package/storybook-static/kit/builder/form/utils/index.d.ts +15 -0
- package/storybook-static/kit/builder/form/utils/index.d.ts.map +1 -0
- package/storybook-static/kit/builder/form/utils/section-factories.d.ts +7 -0
- package/storybook-static/kit/builder/form/utils/section-factories.d.ts.map +1 -0
- package/storybook-static/kit/builder/form/utils/transformers.d.ts +6 -0
- package/storybook-static/kit/builder/form/utils/transformers.d.ts.map +1 -0
- package/storybook-static/kit/builder/form/utils/validations.d.ts +13 -0
- package/storybook-static/kit/builder/form/utils/validations.d.ts.map +1 -0
- package/storybook-static/kit/builder/form/utils/validators.d.ts +8 -0
- package/storybook-static/kit/builder/form/utils/validators.d.ts.map +1 -0
- package/storybook-static/kit/builder/page/Page.d.ts +48 -0
- package/storybook-static/kit/builder/page/Page.d.ts.map +1 -0
- package/storybook-static/kit/builder/page/index.d.ts +2 -0
- package/storybook-static/kit/builder/page/index.d.ts.map +1 -0
- package/storybook-static/kit/builder/section/SectionBuilder.d.ts +3 -0
- package/storybook-static/kit/builder/section/SectionBuilder.d.ts.map +1 -0
- package/storybook-static/kit/builder/section/index.d.ts +3 -0
- package/storybook-static/kit/builder/section/index.d.ts.map +1 -0
- package/storybook-static/kit/builder/section/types.d.ts +59 -0
- package/storybook-static/kit/builder/section/types.d.ts.map +1 -0
- package/storybook-static/kit/components/autocomplete/Autocomplete.d.ts +21 -0
- package/storybook-static/kit/components/autocomplete/Autocomplete.d.ts.map +1 -0
- package/storybook-static/kit/components/autocomplete/index.d.ts +3 -0
- package/storybook-static/kit/components/autocomplete/index.d.ts.map +1 -0
- package/storybook-static/kit/components/autocomplete/types.d.ts +19 -0
- package/storybook-static/kit/components/autocomplete/types.d.ts.map +1 -0
- package/storybook-static/kit/components/login/Login.d.ts +29 -0
- package/storybook-static/kit/components/login/Login.d.ts.map +1 -0
- package/storybook-static/kit/components/login/index.d.ts +2 -0
- package/storybook-static/kit/components/login/index.d.ts.map +1 -0
- package/storybook-static/kit/layouts/admin/components/AdminLayout.d.ts +17 -0
- package/storybook-static/kit/layouts/admin/components/AdminLayout.d.ts.map +1 -0
- package/storybook-static/kit/layouts/admin/components/ThemeToggle.d.ts +5 -0
- package/storybook-static/kit/layouts/admin/components/ThemeToggle.d.ts.map +1 -0
- package/storybook-static/kit/layouts/admin/hooks/menu.d.ts +12 -0
- package/storybook-static/kit/layouts/admin/hooks/menu.d.ts.map +1 -0
- package/storybook-static/kit/layouts/admin/providers/AdminMenuProvider.d.ts +7 -0
- package/storybook-static/kit/layouts/admin/providers/AdminMenuProvider.d.ts.map +1 -0
- package/storybook-static/kit/layouts/admin/types/index.d.ts +27 -0
- package/storybook-static/kit/layouts/admin/types/index.d.ts.map +1 -0
- package/storybook-static/kit/providers/ThemeProvider.d.ts +14 -0
- package/storybook-static/kit/providers/ThemeProvider.d.ts.map +1 -0
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/sb-addons/a11y-5/manager-bundle.js +5 -0
- package/storybook-static/sb-addons/essentials-backgrounds-1/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-measure-2/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-outline-3/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/interactions-4/manager-bundle.js +57 -0
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +971 -0
- package/storybook-static/sb-addons/storysource-6/manager-bundle.js +3 -0
- package/storybook-static/sb-common-assets/favicon-wrapper.svg +46 -0
- package/storybook-static/sb-common-assets/favicon.svg +1 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-module-info.js +797 -0
- package/storybook-static/sb-manager/globals-runtime.js +69653 -0
- package/storybook-static/sb-manager/globals.js +34 -0
- package/storybook-static/sb-manager/runtime.js +13181 -0
- package/storybook-static/shadcn/hooks/use-mobile.d.ts +2 -0
- package/storybook-static/shadcn/hooks/use-mobile.d.ts.map +1 -0
- package/storybook-static/shadcn/lib/utils.d.ts +3 -0
- package/storybook-static/shadcn/lib/utils.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/accordion.d.ts +8 -0
- package/storybook-static/shadcn/ui/accordion.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/alert-dialog.d.ts +15 -0
- package/storybook-static/shadcn/ui/alert-dialog.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/alert.d.ts +10 -0
- package/storybook-static/shadcn/ui/alert.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/aspect-ratio.d.ts +4 -0
- package/storybook-static/shadcn/ui/aspect-ratio.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/avatar.d.ts +7 -0
- package/storybook-static/shadcn/ui/avatar.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/badge.d.ts +10 -0
- package/storybook-static/shadcn/ui/badge.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/breadcrumb.d.ts +12 -0
- package/storybook-static/shadcn/ui/breadcrumb.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/button.d.ts +11 -0
- package/storybook-static/shadcn/ui/button.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/calendar.d.ts +9 -0
- package/storybook-static/shadcn/ui/calendar.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/card.d.ts +10 -0
- package/storybook-static/shadcn/ui/card.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/carousel.d.ts +20 -0
- package/storybook-static/shadcn/ui/carousel.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/chart.d.ts +41 -0
- package/storybook-static/shadcn/ui/chart.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/checkbox.d.ts +5 -0
- package/storybook-static/shadcn/ui/checkbox.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/collapsible.d.ts +6 -0
- package/storybook-static/shadcn/ui/collapsible.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/command.d.ts +19 -0
- package/storybook-static/shadcn/ui/command.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/context-menu.d.ts +26 -0
- package/storybook-static/shadcn/ui/context-menu.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/dialog.d.ts +16 -0
- package/storybook-static/shadcn/ui/dialog.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/drawer.d.ts +14 -0
- package/storybook-static/shadcn/ui/drawer.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/dropdown-menu.d.ts +26 -0
- package/storybook-static/shadcn/ui/dropdown-menu.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/form.d.ts +25 -0
- package/storybook-static/shadcn/ui/form.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/hover-card.d.ts +7 -0
- package/storybook-static/shadcn/ui/hover-card.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/input-otp.d.ts +12 -0
- package/storybook-static/shadcn/ui/input-otp.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/input.d.ts +4 -0
- package/storybook-static/shadcn/ui/input.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/label.d.ts +5 -0
- package/storybook-static/shadcn/ui/label.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/menubar.d.ts +27 -0
- package/storybook-static/shadcn/ui/menubar.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/navigation-menu.d.ts +15 -0
- package/storybook-static/shadcn/ui/navigation-menu.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/pagination.d.ts +14 -0
- package/storybook-static/shadcn/ui/pagination.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/popover.d.ts +8 -0
- package/storybook-static/shadcn/ui/popover.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/progress.d.ts +5 -0
- package/storybook-static/shadcn/ui/progress.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/radio-group.d.ts +6 -0
- package/storybook-static/shadcn/ui/radio-group.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/resizable.d.ts +9 -0
- package/storybook-static/shadcn/ui/resizable.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/scroll-area.d.ts +6 -0
- package/storybook-static/shadcn/ui/scroll-area.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/select.d.ts +16 -0
- package/storybook-static/shadcn/ui/select.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/separator.d.ts +5 -0
- package/storybook-static/shadcn/ui/separator.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/sheet.d.ts +14 -0
- package/storybook-static/shadcn/ui/sheet.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/sidebar.d.ts +70 -0
- package/storybook-static/shadcn/ui/sidebar.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/skeleton.d.ts +3 -0
- package/storybook-static/shadcn/ui/skeleton.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/slider.d.ts +5 -0
- package/storybook-static/shadcn/ui/slider.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/sonner.d.ts +4 -0
- package/storybook-static/shadcn/ui/sonner.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/switch.d.ts +5 -0
- package/storybook-static/shadcn/ui/switch.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/table.d.ts +11 -0
- package/storybook-static/shadcn/ui/table.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/tabs.d.ts +8 -0
- package/storybook-static/shadcn/ui/tabs.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/textarea.d.ts +4 -0
- package/storybook-static/shadcn/ui/textarea.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/toggle-group.d.ts +8 -0
- package/storybook-static/shadcn/ui/toggle-group.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/toggle.d.ts +10 -0
- package/storybook-static/shadcn/ui/toggle.d.ts.map +1 -0
- package/storybook-static/shadcn/ui/tooltip.d.ts +8 -0
- package/storybook-static/shadcn/ui/tooltip.d.ts.map +1 -0
- package/storybook-static/vite-inject-mocker-entry.js +18 -0
- package/tsconfig.json +24 -0
- package/tsconfig.lib.json +52 -0
- package/tsconfig.spec.json +38 -0
- package/vite.config.ts +63 -0
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Login } from '../../../kit/components/login/Login';
|
|
3
|
+
import { FormBuilder, type FormBuilderSectionConfig } from '../../../kit/builder/form/components';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { Button } from '../../../shadcn/ui/button';
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof Login> = {
|
|
8
|
+
title: 'Kit/Components/Login',
|
|
9
|
+
component: Login,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default meta;
|
|
13
|
+
|
|
14
|
+
type Story = StoryObj<typeof Login>;
|
|
15
|
+
|
|
16
|
+
const formSections: FormBuilderSectionConfig[] = [
|
|
17
|
+
{
|
|
18
|
+
variant: 'plain',
|
|
19
|
+
fields: [
|
|
20
|
+
{
|
|
21
|
+
name: 'email',
|
|
22
|
+
label: 'Email',
|
|
23
|
+
type: 'email',
|
|
24
|
+
placeholder: 'm@example.com',
|
|
25
|
+
required: true,
|
|
26
|
+
validation: z.string().email('Please enter a valid email'),
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'password',
|
|
30
|
+
label: 'Password',
|
|
31
|
+
type: 'password',
|
|
32
|
+
required: true,
|
|
33
|
+
validation: z.string().min(6, 'Password must be at least 6 characters'),
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
const handleSubmit = async (data: Record<string, unknown>) => {
|
|
40
|
+
// Demo only
|
|
41
|
+
console.log('Login submit', data);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
function GoogleIcon() {
|
|
45
|
+
return (
|
|
46
|
+
<svg viewBox="0 0 24 24" className="h-4 w-4" aria-hidden>
|
|
47
|
+
<path fill="#EA4335" d="M12 10.2v3.9h5.5c-.2 1.3-1.7 3.9-5.5 3.9-3.3 0-6-2.7-6-6s2.7-6 6-6c1.9 0 3.2.8 3.9 1.5l2.7-2.6C16.9 3 14.7 2 12 2 6.9 2 2.7 6.2 2.7 11.3S6.9 20.7 12 20.7c6 0 9.9-4.2 9.9-10.1 0-.7-.1-1.2-.2-1.7H12z" />
|
|
48
|
+
</svg>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function MicrosoftIcon() {
|
|
53
|
+
return (
|
|
54
|
+
<svg viewBox="0 0 24 24" className="h-4 w-4" aria-hidden>
|
|
55
|
+
<path fill="#F25022" d="M11.5 11.5H2.5V2.5h9z" />
|
|
56
|
+
<path fill="#7FBA00" d="M21.5 11.5h-9V2.5h9z" />
|
|
57
|
+
<path fill="#00A4EF" d="M11.5 21.5H2.5v-9h9z" />
|
|
58
|
+
<path fill="#FFB900" d="M21.5 21.5h-9v-9h9z" />
|
|
59
|
+
</svg>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export const Basic: Story = {
|
|
64
|
+
name: 'Basic with FormBuilder',
|
|
65
|
+
render: () => (
|
|
66
|
+
<Login
|
|
67
|
+
appTitle="Acme Inc"
|
|
68
|
+
subtitle="Enter your email and password to sign in"
|
|
69
|
+
signupLabel="Don't have an account?"
|
|
70
|
+
signupLinkLabel="Create one"
|
|
71
|
+
signupHref="#signup"
|
|
72
|
+
rightImageSrc="https://images.unsplash.com/photo-1547658719-da2b51169166?q=80&w=2069&auto=format&fit=crop"
|
|
73
|
+
>
|
|
74
|
+
<FormBuilder
|
|
75
|
+
sections={formSections}
|
|
76
|
+
onSubmit={handleSubmit}
|
|
77
|
+
submitLabel="Login"
|
|
78
|
+
className=""
|
|
79
|
+
formClassName=""
|
|
80
|
+
/>
|
|
81
|
+
</Login>
|
|
82
|
+
),
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const WithSocial: Story = {
|
|
86
|
+
name: 'With social continue-with',
|
|
87
|
+
render: () => (
|
|
88
|
+
<Login
|
|
89
|
+
appTitle="Acme Inc"
|
|
90
|
+
subtitle="Welcome back"
|
|
91
|
+
signupLabel="New here?"
|
|
92
|
+
signupLinkLabel="Sign up"
|
|
93
|
+
signupHref="#signup"
|
|
94
|
+
rightImageSrc="https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?q=80&w=2070&auto=format&fit=crop"
|
|
95
|
+
continueWith={
|
|
96
|
+
<>
|
|
97
|
+
<Button variant="outline" className="w-full justify-center gap-2">
|
|
98
|
+
<GoogleIcon />
|
|
99
|
+
Continue with Google
|
|
100
|
+
</Button>
|
|
101
|
+
<Button variant="outline" className="w-full justify-center gap-2">
|
|
102
|
+
<MicrosoftIcon />
|
|
103
|
+
Continue with Microsoft
|
|
104
|
+
</Button>
|
|
105
|
+
</>
|
|
106
|
+
}
|
|
107
|
+
>
|
|
108
|
+
<FormBuilder
|
|
109
|
+
sections={formSections}
|
|
110
|
+
onSubmit={handleSubmit}
|
|
111
|
+
submitLabel="Login"
|
|
112
|
+
/>
|
|
113
|
+
</Login>
|
|
114
|
+
),
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export const WithForgotPassword: Story = {
|
|
118
|
+
name: 'With forgot password (default label)',
|
|
119
|
+
render: () => (
|
|
120
|
+
<Login
|
|
121
|
+
appTitle="Acme Inc"
|
|
122
|
+
subtitle="Use your credentials to sign in"
|
|
123
|
+
signupLabel="Don't have an account?"
|
|
124
|
+
signupLinkLabel="Create one"
|
|
125
|
+
signupHref="#signup"
|
|
126
|
+
forgotPasswordLabel="Forgot your password?"
|
|
127
|
+
forgotPasswordLinkLabel="Reset Here"
|
|
128
|
+
forgotPasswordHref="#forgot-password"
|
|
129
|
+
rightImageSrc="https://images.unsplash.com/photo-1547658719-da2b51169166?q=80&w=2069&auto=format&fit=crop"
|
|
130
|
+
>
|
|
131
|
+
<FormBuilder
|
|
132
|
+
sections={formSections}
|
|
133
|
+
onSubmit={handleSubmit}
|
|
134
|
+
submitLabel="Login"
|
|
135
|
+
/>
|
|
136
|
+
</Login>
|
|
137
|
+
),
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
export const WithForgotPasswordCustom: Story = {
|
|
141
|
+
name: 'With forgot password (custom label/link)',
|
|
142
|
+
render: () => (
|
|
143
|
+
<Login
|
|
144
|
+
appTitle="Acme Inc"
|
|
145
|
+
subtitle="Welcome back"
|
|
146
|
+
signupLabel="New here?"
|
|
147
|
+
signupLinkLabel="Join now"
|
|
148
|
+
signupHref="#signup"
|
|
149
|
+
forgotPasswordHref="/auth/reset-password"
|
|
150
|
+
forgotPasswordLabel="Your password is lost?"
|
|
151
|
+
forgotPasswordLinkLabel="Reset Here"
|
|
152
|
+
rightImageSrc="https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?q=80&w=2070&auto=format&fit=crop"
|
|
153
|
+
>
|
|
154
|
+
<FormBuilder
|
|
155
|
+
sections={formSections}
|
|
156
|
+
onSubmit={handleSubmit}
|
|
157
|
+
submitLabel="Login"
|
|
158
|
+
/>
|
|
159
|
+
</Login>
|
|
160
|
+
),
|
|
161
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import AdminLayout from '../../../../kit/layouts/admin/components/AdminLayout';
|
|
4
|
+
import { ThemeProvider } from '../../../../kit/providers/ThemeProvider';
|
|
5
|
+
import { useAdminSidebarMenuRegistration } from '../../../../kit/layouts/admin/hooks/menu';
|
|
6
|
+
import {
|
|
7
|
+
RouterProvider,
|
|
8
|
+
createRootRoute,
|
|
9
|
+
createRoute,
|
|
10
|
+
createRouter,
|
|
11
|
+
} from '@tanstack/react-router';
|
|
12
|
+
import { Home, ShoppingCart, Settings } from 'lucide-react';
|
|
13
|
+
|
|
14
|
+
const meta: Meta<typeof AdminLayout> = {
|
|
15
|
+
title: 'Kit/Layouts/Admin',
|
|
16
|
+
component: AdminLayout,
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
|
|
20
|
+
type Story = StoryObj<typeof AdminLayout>;
|
|
21
|
+
|
|
22
|
+
function RegisterMenus() {
|
|
23
|
+
const { registerGroup, registerItem, clear } = useAdminSidebarMenuRegistration();
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
clear();
|
|
26
|
+
registerGroup({ id: 'main', label: 'Main' });
|
|
27
|
+
registerItem('main', { id: 'dashboard', title: 'Dashboard', url: '/', icon: Home });
|
|
28
|
+
|
|
29
|
+
registerGroup({ id: 'commerce', label: 'Commerce' });
|
|
30
|
+
registerItem('commerce', { id: 'orders', title: 'Orders', url: '/orders', icon: ShoppingCart, badge: 12 });
|
|
31
|
+
|
|
32
|
+
registerGroup({ id: 'settings', label: 'Settings' });
|
|
33
|
+
registerItem('settings', { id: 'general', title: 'General', url: '/settings', icon: Settings });
|
|
34
|
+
}, [registerGroup, registerItem, clear]);
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
type AdminLayoutStoryProps = React.ComponentProps<typeof AdminLayout>;
|
|
39
|
+
|
|
40
|
+
function App(props: AdminLayoutStoryProps) {
|
|
41
|
+
const rootRoute = createRootRoute({
|
|
42
|
+
component: () => (
|
|
43
|
+
<ThemeProvider>
|
|
44
|
+
<AdminLayout {...props}>
|
|
45
|
+
<RegisterMenus />
|
|
46
|
+
</AdminLayout>
|
|
47
|
+
</ThemeProvider>
|
|
48
|
+
),
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
const indexRoute = createRoute({
|
|
52
|
+
getParentRoute: () => rootRoute,
|
|
53
|
+
path: '/',
|
|
54
|
+
component: () => (
|
|
55
|
+
<div className="p-6">
|
|
56
|
+
<h2 className="text-xl font-semibold mb-2">Dashboard</h2>
|
|
57
|
+
<p className="text-muted-foreground">Welcome to the admin dashboard.</p>
|
|
58
|
+
</div>
|
|
59
|
+
),
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
const ordersRoute = createRoute({
|
|
63
|
+
getParentRoute: () => rootRoute,
|
|
64
|
+
path: '/orders',
|
|
65
|
+
component: () => (
|
|
66
|
+
<div className="p-6">
|
|
67
|
+
<h2 className="text-xl font-semibold mb-2">Orders</h2>
|
|
68
|
+
<p className="text-muted-foreground">Manage your store orders here.</p>
|
|
69
|
+
</div>
|
|
70
|
+
),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
const settingsRoute = createRoute({
|
|
74
|
+
getParentRoute: () => rootRoute,
|
|
75
|
+
path: '/settings',
|
|
76
|
+
component: () => (
|
|
77
|
+
<div className="p-6">
|
|
78
|
+
<h2 className="text-xl font-semibold mb-2">Settings</h2>
|
|
79
|
+
<p className="text-muted-foreground">Update your application settings.</p>
|
|
80
|
+
</div>
|
|
81
|
+
),
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
const routeTree = rootRoute.addChildren([indexRoute, ordersRoute, settingsRoute]);
|
|
85
|
+
const router = createRouter({ routeTree, basepath: '/iframe.html' });
|
|
86
|
+
|
|
87
|
+
return <RouterProvider router={router} />;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export const Basic: Story = {
|
|
91
|
+
name: 'Basic (non-collapsible by default)',
|
|
92
|
+
render: () => <App />,
|
|
93
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import AdminLayout from '../../../../kit/layouts/admin/components/AdminLayout';
|
|
4
|
+
import { ThemeProvider } from '../../../../kit/providers/ThemeProvider';
|
|
5
|
+
import { useAdminSidebarMenuRegistration } from '../../../../kit/layouts/admin/hooks/menu';
|
|
6
|
+
import {
|
|
7
|
+
RouterProvider,
|
|
8
|
+
createRootRoute,
|
|
9
|
+
createRoute,
|
|
10
|
+
createRouter,
|
|
11
|
+
} from '@tanstack/react-router';
|
|
12
|
+
import { Home, ShoppingCart, Settings } from 'lucide-react';
|
|
13
|
+
|
|
14
|
+
const meta: Meta<typeof AdminLayout> = {
|
|
15
|
+
title: 'Kit/Layouts/Admin',
|
|
16
|
+
component: AdminLayout,
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
|
|
20
|
+
type Story = StoryObj<typeof AdminLayout>;
|
|
21
|
+
|
|
22
|
+
type AdminLayoutStoryProps = React.ComponentProps<typeof AdminLayout>;
|
|
23
|
+
|
|
24
|
+
function RegisterMenus() {
|
|
25
|
+
const { registerGroup, registerItem, clear } = useAdminSidebarMenuRegistration();
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
clear();
|
|
28
|
+
registerGroup({ id: 'main', label: 'Main' });
|
|
29
|
+
registerItem('main', { id: 'dashboard', title: 'Dashboard', url: '/', icon: Home });
|
|
30
|
+
registerGroup({ id: 'commerce', label: 'Commerce' });
|
|
31
|
+
registerItem('commerce', { id: 'orders', title: 'Orders', url: '/orders', icon: ShoppingCart, badge: 12 });
|
|
32
|
+
registerGroup({ id: 'settings', label: 'Settings' });
|
|
33
|
+
registerItem('settings', { id: 'general', title: 'General', url: '/settings', icon: Settings });
|
|
34
|
+
}, [registerGroup, registerItem, clear]);
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function App(props: AdminLayoutStoryProps) {
|
|
39
|
+
const rootRoute = createRootRoute({
|
|
40
|
+
component: () => (
|
|
41
|
+
<ThemeProvider>
|
|
42
|
+
<AdminLayout {...props}>
|
|
43
|
+
<RegisterMenus />
|
|
44
|
+
</AdminLayout>
|
|
45
|
+
</ThemeProvider>
|
|
46
|
+
),
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
const indexRoute = createRoute({ getParentRoute: () => rootRoute, path: '/', component: () => <div className="p-6">Home</div> });
|
|
50
|
+
const routeTree = rootRoute.addChildren([indexRoute]);
|
|
51
|
+
const router = createRouter({ routeTree, basepath: '/iframe.html' });
|
|
52
|
+
return <RouterProvider router={router} />;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export const Collapsible: Story = {
|
|
56
|
+
name: 'Collapsible sidebar',
|
|
57
|
+
render: () => <App sidebarCollapsible />,
|
|
58
|
+
};
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import AdminLayout from '../../../../kit/layouts/admin/components/AdminLayout';
|
|
4
|
+
import { ThemeProvider } from '../../../../kit/providers/ThemeProvider';
|
|
5
|
+
import { useAdminSidebarMenuRegistration } from '../../../../kit/layouts/admin/hooks/menu';
|
|
6
|
+
import {
|
|
7
|
+
RouterProvider,
|
|
8
|
+
createRootRoute,
|
|
9
|
+
createRoute,
|
|
10
|
+
createRouter,
|
|
11
|
+
} from '@tanstack/react-router';
|
|
12
|
+
import { Home, ShoppingCart, Settings, Users, BarChart3, FileText, Shield, Bell, LifeBuoy } from 'lucide-react';
|
|
13
|
+
|
|
14
|
+
const meta: Meta<typeof AdminLayout> = {
|
|
15
|
+
title: 'Kit/Layouts/Admin',
|
|
16
|
+
component: AdminLayout,
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
|
|
20
|
+
type Story = StoryObj<typeof AdminLayout>;
|
|
21
|
+
|
|
22
|
+
type AdminLayoutStoryProps = React.ComponentProps<typeof AdminLayout>;
|
|
23
|
+
|
|
24
|
+
function RegisterComplexMenus() {
|
|
25
|
+
const { registerGroup, registerItem, clear } = useAdminSidebarMenuRegistration();
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
clear();
|
|
28
|
+
// Overview
|
|
29
|
+
registerGroup({ id: 'overview', label: 'Overview' });
|
|
30
|
+
registerItem('overview', { id: 'home', title: 'Home', url: '/', icon: Home });
|
|
31
|
+
registerItem('overview', { id: 'reports', title: 'Reports', url: '/reports', icon: BarChart3, badge: 'New' });
|
|
32
|
+
|
|
33
|
+
// Management
|
|
34
|
+
registerGroup({ id: 'management', label: 'Management' });
|
|
35
|
+
registerItem('management', {
|
|
36
|
+
id: 'users',
|
|
37
|
+
title: 'Users',
|
|
38
|
+
icon: Users,
|
|
39
|
+
badge: 3,
|
|
40
|
+
children: [
|
|
41
|
+
{ id: 'users-all', title: 'All Users', url: '/users' },
|
|
42
|
+
{
|
|
43
|
+
id: 'users-teams',
|
|
44
|
+
title: 'Teams',
|
|
45
|
+
children: [
|
|
46
|
+
{
|
|
47
|
+
id: 'team-alpha',
|
|
48
|
+
title: 'Team Alpha',
|
|
49
|
+
url: '/users/teams/alpha',
|
|
50
|
+
children: [
|
|
51
|
+
{ id: 'team-alpha-members', title: 'Members', url: '/users/teams/alpha/members' },
|
|
52
|
+
{ id: 'team-alpha-settings', title: 'Settings', url: '/users/teams/alpha/settings' },
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
{ id: 'team-beta', title: 'Team Beta', url: '/users/teams/beta' },
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
});
|
|
60
|
+
registerItem('management', {
|
|
61
|
+
id: 'orders',
|
|
62
|
+
title: 'Orders',
|
|
63
|
+
icon: ShoppingCart,
|
|
64
|
+
children: [
|
|
65
|
+
{ id: 'orders-all', title: 'All Orders', url: '/orders' },
|
|
66
|
+
{ id: 'orders-pending', title: 'Pending', url: '/orders/pending', badge: 5 },
|
|
67
|
+
{ id: 'orders-completed', title: 'Completed', url: '/orders/completed' },
|
|
68
|
+
],
|
|
69
|
+
});
|
|
70
|
+
// Action-only item
|
|
71
|
+
registerItem('management', { id: 'export', title: 'Export CSV', onClick: () => console.log('Export CSV') });
|
|
72
|
+
|
|
73
|
+
// Content
|
|
74
|
+
registerGroup({ id: 'content', label: 'Content' });
|
|
75
|
+
registerItem('content', {
|
|
76
|
+
id: 'articles',
|
|
77
|
+
title: 'Articles',
|
|
78
|
+
icon: FileText,
|
|
79
|
+
children: [
|
|
80
|
+
{ id: 'articles-published', title: 'Published', url: '/articles' },
|
|
81
|
+
{ id: 'articles-archived', title: 'Archived', url: '/articles/archived' },
|
|
82
|
+
],
|
|
83
|
+
});
|
|
84
|
+
registerItem('content', { id: 'drafts', title: 'Drafts', url: '/drafts', icon: FileText, badge: 7 });
|
|
85
|
+
|
|
86
|
+
// System
|
|
87
|
+
registerGroup({ id: 'system', label: 'System' });
|
|
88
|
+
registerItem('system', { id: 'alerts', title: 'Alerts', url: '/alerts', icon: Bell });
|
|
89
|
+
registerItem('system', { id: 'security', title: 'Security', url: '/security', icon: Shield, disabled: true });
|
|
90
|
+
registerItem('system', { id: 'support', title: 'Support', url: '/support', icon: LifeBuoy });
|
|
91
|
+
|
|
92
|
+
// Settings
|
|
93
|
+
registerGroup({ id: 'settings', label: 'Settings' });
|
|
94
|
+
registerItem('settings', { id: 'general', title: 'General', url: '/settings', icon: Settings });
|
|
95
|
+
}, [registerGroup, registerItem, clear]);
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function App(props: AdminLayoutStoryProps) {
|
|
100
|
+
const rootRoute = createRootRoute({
|
|
101
|
+
component: () => (
|
|
102
|
+
<ThemeProvider>
|
|
103
|
+
<AdminLayout {...props}>
|
|
104
|
+
<RegisterComplexMenus />
|
|
105
|
+
</AdminLayout>
|
|
106
|
+
</ThemeProvider>
|
|
107
|
+
),
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
const indexRoute = createRoute({
|
|
111
|
+
getParentRoute: () => rootRoute,
|
|
112
|
+
path: '/',
|
|
113
|
+
component: () => (
|
|
114
|
+
<div className="p-6">
|
|
115
|
+
<h2 className="text-xl font-semibold mb-2">Home</h2>
|
|
116
|
+
<p className="text-muted-foreground">Overview of your admin panel.</p>
|
|
117
|
+
</div>
|
|
118
|
+
),
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
const extraRoutes = [
|
|
122
|
+
{ path: '/reports', title: 'Reports' },
|
|
123
|
+
{ path: '/users', title: 'Users' },
|
|
124
|
+
{ path: '/users/teams/alpha', title: 'Team Alpha' },
|
|
125
|
+
{ path: '/users/teams/alpha/members', title: 'Team Alpha Members' },
|
|
126
|
+
{ path: '/users/teams/alpha/settings', title: 'Team Alpha Settings' },
|
|
127
|
+
{ path: '/users/teams/beta', title: 'Team Beta' },
|
|
128
|
+
{ path: '/orders', title: 'Orders' },
|
|
129
|
+
{ path: '/orders/pending', title: 'Orders Pending' },
|
|
130
|
+
{ path: '/orders/completed', title: 'Orders Completed' },
|
|
131
|
+
{ path: '/articles', title: 'Articles' },
|
|
132
|
+
{ path: '/articles/archived', title: 'Articles Archived' },
|
|
133
|
+
{ path: '/drafts', title: 'Drafts' },
|
|
134
|
+
{ path: '/alerts', title: 'Alerts' },
|
|
135
|
+
{ path: '/security', title: 'Security' },
|
|
136
|
+
{ path: '/support', title: 'Support' },
|
|
137
|
+
{ path: '/settings', title: 'Settings' },
|
|
138
|
+
].map(({ path, title }) =>
|
|
139
|
+
createRoute({
|
|
140
|
+
getParentRoute: () => rootRoute,
|
|
141
|
+
path,
|
|
142
|
+
component: () => (
|
|
143
|
+
<div className="p-6">
|
|
144
|
+
<h2 className="text-xl font-semibold mb-2">{title}</h2>
|
|
145
|
+
<p className="text-muted-foreground">This is the {title} page.</p>
|
|
146
|
+
</div>
|
|
147
|
+
),
|
|
148
|
+
})
|
|
149
|
+
);
|
|
150
|
+
|
|
151
|
+
const routeTree = rootRoute.addChildren([indexRoute, ...extraRoutes]);
|
|
152
|
+
const router = createRouter({ routeTree, basepath: '/iframe.html' });
|
|
153
|
+
return <RouterProvider router={router} />;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export const Complex: Story = {
|
|
157
|
+
name: 'Complex menu',
|
|
158
|
+
render: () => (
|
|
159
|
+
<App
|
|
160
|
+
sidebarHeaderIcon={Home}
|
|
161
|
+
sidebarHeaderTitle={<span>Admin App</span>}
|
|
162
|
+
headerAfterTrigger={<input className="h-8 w-64 rounded-md border px-3 text-sm" placeholder="Quick search…" />}
|
|
163
|
+
headerAfterTheme={<button className="h-8 rounded-md border px-3 text-sm">Help</button>}
|
|
164
|
+
/>
|
|
165
|
+
),
|
|
166
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import AdminLayout from '../../../../kit/layouts/admin/components/AdminLayout';
|
|
4
|
+
import { ThemeProvider } from '../../../../kit/providers/ThemeProvider';
|
|
5
|
+
import { useAdminSidebarMenuRegistration } from '../../../../kit/layouts/admin/hooks/menu';
|
|
6
|
+
import {
|
|
7
|
+
RouterProvider,
|
|
8
|
+
createRootRoute,
|
|
9
|
+
createRoute,
|
|
10
|
+
createRouter,
|
|
11
|
+
} from '@tanstack/react-router';
|
|
12
|
+
import { Home } from 'lucide-react';
|
|
13
|
+
|
|
14
|
+
const meta: Meta<typeof AdminLayout> = {
|
|
15
|
+
title: 'Kit/Layouts/Admin',
|
|
16
|
+
component: AdminLayout,
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
|
|
20
|
+
type Story = StoryObj<typeof AdminLayout>;
|
|
21
|
+
|
|
22
|
+
type AdminLayoutStoryProps = React.ComponentProps<typeof AdminLayout>;
|
|
23
|
+
|
|
24
|
+
function RegisterMenus() {
|
|
25
|
+
const { registerGroup, registerItem, clear } = useAdminSidebarMenuRegistration();
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
clear();
|
|
28
|
+
registerGroup({ id: 'overview', label: 'Overview' });
|
|
29
|
+
registerItem('overview', { id: 'home', title: 'Home', url: '/', icon: Home });
|
|
30
|
+
}, [registerGroup, registerItem, clear]);
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function App(props: AdminLayoutStoryProps) {
|
|
35
|
+
const rootRoute = createRootRoute({
|
|
36
|
+
component: () => (
|
|
37
|
+
<ThemeProvider>
|
|
38
|
+
<AdminLayout {...props}>
|
|
39
|
+
<RegisterMenus />
|
|
40
|
+
</AdminLayout>
|
|
41
|
+
</ThemeProvider>
|
|
42
|
+
),
|
|
43
|
+
});
|
|
44
|
+
const indexRoute = createRoute({ getParentRoute: () => rootRoute, path: '/', component: () => <div className="p-6">Home</div> });
|
|
45
|
+
const routeTree = rootRoute.addChildren([indexRoute]);
|
|
46
|
+
const router = createRouter({ routeTree, basepath: '/iframe.html' });
|
|
47
|
+
return <RouterProvider router={router} />;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export const CustomSidebarHeaderComponent: Story = {
|
|
51
|
+
name: 'Custom sidebar header component',
|
|
52
|
+
render: () => (
|
|
53
|
+
<App
|
|
54
|
+
sidebarHeader={
|
|
55
|
+
<div className="px-4 py-3">
|
|
56
|
+
<div className="flex items-center gap-2">
|
|
57
|
+
<img src="https://dummyimage.com/32x32/000/fff.png&text=A" alt="Logo" className="h-8 w-8 rounded" />
|
|
58
|
+
<span className="font-semibold">My Admin</span>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
}
|
|
62
|
+
/>
|
|
63
|
+
),
|
|
64
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import AdminLayout from '../../../../kit/layouts/admin/components/AdminLayout';
|
|
4
|
+
import { ThemeProvider } from '../../../../kit/providers/ThemeProvider';
|
|
5
|
+
import { useAdminSidebarMenuRegistration } from '../../../../kit/layouts/admin/hooks/menu';
|
|
6
|
+
import {
|
|
7
|
+
RouterProvider,
|
|
8
|
+
createRootRoute,
|
|
9
|
+
createRoute,
|
|
10
|
+
createRouter,
|
|
11
|
+
} from '@tanstack/react-router';
|
|
12
|
+
import { BarChart3, Home } from 'lucide-react';
|
|
13
|
+
|
|
14
|
+
const meta: Meta<typeof AdminLayout> = {
|
|
15
|
+
title: 'Kit/Layouts/Admin',
|
|
16
|
+
component: AdminLayout,
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
|
|
20
|
+
type Story = StoryObj<typeof AdminLayout>;
|
|
21
|
+
|
|
22
|
+
type AdminLayoutStoryProps = React.ComponentProps<typeof AdminLayout>;
|
|
23
|
+
|
|
24
|
+
function RegisterMenus() {
|
|
25
|
+
const { registerGroup, registerItem, clear } = useAdminSidebarMenuRegistration();
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
clear();
|
|
28
|
+
registerGroup({ id: 'overview', label: 'Overview' });
|
|
29
|
+
registerItem('overview', { id: 'home', title: 'Home', url: '/', icon: Home });
|
|
30
|
+
}, [registerGroup, registerItem, clear]);
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function App(props: AdminLayoutStoryProps) {
|
|
35
|
+
const rootRoute = createRootRoute({
|
|
36
|
+
component: () => (
|
|
37
|
+
<ThemeProvider>
|
|
38
|
+
<AdminLayout {...props}>
|
|
39
|
+
<RegisterMenus />
|
|
40
|
+
</AdminLayout>
|
|
41
|
+
</ThemeProvider>
|
|
42
|
+
),
|
|
43
|
+
});
|
|
44
|
+
const indexRoute = createRoute({ getParentRoute: () => rootRoute, path: '/', component: () => <div className="p-6">Home</div> });
|
|
45
|
+
const routeTree = rootRoute.addChildren([indexRoute]);
|
|
46
|
+
const router = createRouter({ routeTree, basepath: '/iframe.html' });
|
|
47
|
+
return <RouterProvider router={router} />;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export const CustomSidebarTitleAndIcon: Story = {
|
|
51
|
+
name: 'Custom sidebar title and icon',
|
|
52
|
+
render: () => (
|
|
53
|
+
<App sidebarHeaderIcon={BarChart3} sidebarHeaderTitle={<span>Custom Title</span>} />
|
|
54
|
+
),
|
|
55
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import AdminLayout from '../../../../kit/layouts/admin/components/AdminLayout';
|
|
4
|
+
import { ThemeProvider } from '../../../../kit/providers/ThemeProvider';
|
|
5
|
+
import { useAdminSidebarMenuRegistration } from '../../../../kit/layouts/admin/hooks/menu';
|
|
6
|
+
import {
|
|
7
|
+
RouterProvider,
|
|
8
|
+
createRootRoute,
|
|
9
|
+
createRoute,
|
|
10
|
+
createRouter,
|
|
11
|
+
} from '@tanstack/react-router';
|
|
12
|
+
import { Home } from 'lucide-react';
|
|
13
|
+
|
|
14
|
+
const meta: Meta<typeof AdminLayout> = {
|
|
15
|
+
title: 'Kit/Layouts/Admin',
|
|
16
|
+
component: AdminLayout,
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
|
|
20
|
+
type Story = StoryObj<typeof AdminLayout>;
|
|
21
|
+
|
|
22
|
+
type AdminLayoutStoryProps = React.ComponentProps<typeof AdminLayout>;
|
|
23
|
+
|
|
24
|
+
function RegisterMenus() {
|
|
25
|
+
const { registerGroup, registerItem, clear } = useAdminSidebarMenuRegistration();
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
clear();
|
|
28
|
+
registerGroup({ id: 'overview', label: 'Overview' });
|
|
29
|
+
registerItem('overview', { id: 'home', title: 'Home', url: '/', icon: Home });
|
|
30
|
+
}, [registerGroup, registerItem, clear]);
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function App(props: AdminLayoutStoryProps) {
|
|
35
|
+
const rootRoute = createRootRoute({
|
|
36
|
+
component: () => (
|
|
37
|
+
<ThemeProvider>
|
|
38
|
+
<AdminLayout {...props}>
|
|
39
|
+
<RegisterMenus />
|
|
40
|
+
</AdminLayout>
|
|
41
|
+
</ThemeProvider>
|
|
42
|
+
),
|
|
43
|
+
});
|
|
44
|
+
const indexRoute = createRoute({ getParentRoute: () => rootRoute, path: '/', component: () => <div className="p-6">Home</div> });
|
|
45
|
+
const routeTree = rootRoute.addChildren([indexRoute]);
|
|
46
|
+
const router = createRouter({ routeTree, basepath: '/iframe.html' });
|
|
47
|
+
return <RouterProvider router={router} />;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export const HeaderSlots: Story = {
|
|
51
|
+
name: 'Header slots (after trigger/theme)',
|
|
52
|
+
render: () => (
|
|
53
|
+
<App
|
|
54
|
+
headerAfterTrigger={<input className="h-8 w-64 rounded-md border px-3 text-sm" placeholder="Search…" />}
|
|
55
|
+
headerAfterTheme={
|
|
56
|
+
<div className="flex items-center gap-2">
|
|
57
|
+
<button className="h-8 rounded-md border px-3 text-sm">Invite</button>
|
|
58
|
+
<button className="h-8 rounded-md bg-primary px-3 text-sm text-primary-foreground">New</button>
|
|
59
|
+
</div>
|
|
60
|
+
}
|
|
61
|
+
/>
|
|
62
|
+
),
|
|
63
|
+
};
|