@lssm/lib.ui-kit-web 1.2.0
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/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/node_modules/sonner/dist/index.js +630 -0
- package/dist/node_modules/sonner/dist/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/ui/accordion.d.ts +25 -0
- package/dist/ui/accordion.d.ts.map +1 -0
- package/dist/ui/accordion.js +49 -0
- package/dist/ui/accordion.js.map +1 -0
- package/dist/ui/alert-dialog.d.ts +49 -0
- package/dist/ui/alert-dialog.d.ts.map +1 -0
- package/dist/ui/alert-dialog.js +86 -0
- package/dist/ui/alert-dialog.js.map +1 -0
- package/dist/ui/alert.d.ts +25 -0
- package/dist/ui/alert.d.ts.map +1 -0
- package/dist/ui/alert.js +39 -0
- package/dist/ui/alert.js.map +1 -0
- package/dist/ui/aspect-ratio.d.ts +8 -0
- package/dist/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/ui/aspect-ratio.js +11 -0
- package/dist/ui/aspect-ratio.js.map +1 -0
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +8 -0
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts.map +1 -0
- package/dist/ui/atoms/FilterSelect/FilterSelect.js +53 -0
- package/dist/ui/atoms/FilterSelect/FilterSelect.js.map +1 -0
- package/dist/ui/atoms/FilterSelect/index.d.ts +3 -0
- package/dist/ui/atoms/FilterSelect/index.js +3 -0
- package/dist/ui/atoms/FilterSelect/types.d.ts +19 -0
- package/dist/ui/atoms/FilterSelect/types.d.ts.map +1 -0
- package/dist/ui/atoms/FilterSelect/types.js +1 -0
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +23 -0
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts.map +1 -0
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +46 -0
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js.map +1 -0
- package/dist/ui/atoms/LoadingSpinner/index.d.ts +2 -0
- package/dist/ui/atoms/LoadingSpinner/index.js +3 -0
- package/dist/ui/atoms/Pagination/Pagination.d.ts +8 -0
- package/dist/ui/atoms/Pagination/Pagination.d.ts.map +1 -0
- package/dist/ui/atoms/Pagination/Pagination.js +157 -0
- package/dist/ui/atoms/Pagination/Pagination.js.map +1 -0
- package/dist/ui/atoms/Pagination/index.d.ts +3 -0
- package/dist/ui/atoms/Pagination/index.js +3 -0
- package/dist/ui/atoms/Pagination/types.d.ts +16 -0
- package/dist/ui/atoms/Pagination/types.d.ts.map +1 -0
- package/dist/ui/atoms/Pagination/types.js +1 -0
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts +8 -0
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts.map +1 -0
- package/dist/ui/atoms/SearchInput/SearchInput.js +50 -0
- package/dist/ui/atoms/SearchInput/SearchInput.js.map +1 -0
- package/dist/ui/atoms/SearchInput/index.d.ts +3 -0
- package/dist/ui/atoms/SearchInput/index.js +3 -0
- package/dist/ui/atoms/SearchInput/types.d.ts +13 -0
- package/dist/ui/atoms/SearchInput/types.d.ts.map +1 -0
- package/dist/ui/atoms/SearchInput/types.js +1 -0
- package/dist/ui/avatar.d.ts +20 -0
- package/dist/ui/avatar.d.ts.map +1 -0
- package/dist/ui/avatar.js +34 -0
- package/dist/ui/avatar.js.map +1 -0
- package/dist/ui/badge.d.ts +20 -0
- package/dist/ui/badge.d.ts.map +1 -0
- package/dist/ui/badge.js +27 -0
- package/dist/ui/badge.js.map +1 -0
- package/dist/ui/breadcrumb.d.ts +38 -0
- package/dist/ui/breadcrumb.d.ts.map +1 -0
- package/dist/ui/breadcrumb.js +72 -0
- package/dist/ui/breadcrumb.js.map +1 -0
- package/dist/ui/button.d.ts +23 -0
- package/dist/ui/button.d.ts.map +1 -0
- package/dist/ui/button.js +44 -0
- package/dist/ui/button.js.map +1 -0
- package/dist/ui/calendar.d.ts +27 -0
- package/dist/ui/calendar.d.ts.map +1 -0
- package/dist/ui/calendar.js +110 -0
- package/dist/ui/calendar.js.map +1 -0
- package/dist/ui/card.d.ts +35 -0
- package/dist/ui/card.d.ts.map +1 -0
- package/dist/ui/card.js +58 -0
- package/dist/ui/card.js.map +1 -0
- package/dist/ui/carousel.d.ts +48 -0
- package/dist/ui/carousel.d.ts.map +1 -0
- package/dist/ui/carousel.js +137 -0
- package/dist/ui/carousel.js.map +1 -0
- package/dist/ui/checkbox.d.ts +12 -0
- package/dist/ui/checkbox.d.ts.map +1 -0
- package/dist/ui/checkbox.js +26 -0
- package/dist/ui/checkbox.js.map +1 -0
- package/dist/ui/collapsible.d.ts +16 -0
- package/dist/ui/collapsible.d.ts.map +1 -0
- package/dist/ui/collapsible.js +29 -0
- package/dist/ui/collapsible.js.map +1 -0
- package/dist/ui/command.d.ts +53 -0
- package/dist/ui/command.d.ts.map +1 -0
- package/dist/ui/command.js +91 -0
- package/dist/ui/command.js.map +1 -0
- package/dist/ui/confirm-dialog.d.ts +31 -0
- package/dist/ui/confirm-dialog.d.ts.map +1 -0
- package/dist/ui/confirm-dialog.js +34 -0
- package/dist/ui/confirm-dialog.js.map +1 -0
- package/dist/ui/context-menu.d.ts +35 -0
- package/dist/ui/context-menu.d.ts.map +1 -0
- package/dist/ui/context-menu.js +85 -0
- package/dist/ui/context-menu.js.map +1 -0
- package/dist/ui/cta.d.ts +15 -0
- package/dist/ui/cta.d.ts.map +1 -0
- package/dist/ui/cta.js +39 -0
- package/dist/ui/cta.js.map +1 -0
- package/dist/ui/date-picker.d.ts +26 -0
- package/dist/ui/date-picker.d.ts.map +1 -0
- package/dist/ui/date-picker.js +102 -0
- package/dist/ui/date-picker.js.map +1 -0
- package/dist/ui/date-range-picker.d.ts +26 -0
- package/dist/ui/date-range-picker.d.ts.map +1 -0
- package/dist/ui/date-range-picker.js +55 -0
- package/dist/ui/date-range-picker.js.map +1 -0
- package/dist/ui/datetime-picker.d.ts +28 -0
- package/dist/ui/datetime-picker.d.ts.map +1 -0
- package/dist/ui/datetime-picker.js +45 -0
- package/dist/ui/datetime-picker.js.map +1 -0
- package/dist/ui/dialog.d.ts +48 -0
- package/dist/ui/dialog.d.ts.map +1 -0
- package/dist/ui/dialog.js +91 -0
- package/dist/ui/dialog.js.map +1 -0
- package/dist/ui/drawer.d.ts +45 -0
- package/dist/ui/drawer.d.ts.map +1 -0
- package/dist/ui/drawer.js +83 -0
- package/dist/ui/drawer.js.map +1 -0
- package/dist/ui/dropdown-menu.d.ts +78 -0
- package/dist/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/ui/dropdown-menu.js +128 -0
- package/dist/ui/dropdown-menu.js.map +1 -0
- package/dist/ui/empty-state.d.ts +29 -0
- package/dist/ui/empty-state.d.ts.map +1 -0
- package/dist/ui/empty-state.js +43 -0
- package/dist/ui/empty-state.js.map +1 -0
- package/dist/ui/empty.d.ts +36 -0
- package/dist/ui/empty.d.ts.map +1 -0
- package/dist/ui/empty.js +62 -0
- package/dist/ui/empty.js.map +1 -0
- package/dist/ui/field.d.ts +65 -0
- package/dist/ui/field.d.ts.map +1 -0
- package/dist/ui/field.js +122 -0
- package/dist/ui/field.js.map +1 -0
- package/dist/ui/focus-on-route-change.d.ts +9 -0
- package/dist/ui/focus-on-route-change.d.ts.map +1 -0
- package/dist/ui/focus-on-route-change.js +17 -0
- package/dist/ui/focus-on-route-change.js.map +1 -0
- package/dist/ui/form.d.ts +47 -0
- package/dist/ui/form.d.ts.map +1 -0
- package/dist/ui/form.js +95 -0
- package/dist/ui/form.js.map +1 -0
- package/dist/ui/hover-card.d.ts +20 -0
- package/dist/ui/hover-card.d.ts.map +1 -0
- package/dist/ui/hover-card.js +37 -0
- package/dist/ui/hover-card.js.map +1 -0
- package/dist/ui/input-group.d.ts +44 -0
- package/dist/ui/input-group.d.ts.map +1 -0
- package/dist/ui/input-group.js +84 -0
- package/dist/ui/input-group.js.map +1 -0
- package/dist/ui/input-otp.d.ts +39 -0
- package/dist/ui/input-otp.d.ts.map +1 -0
- package/dist/ui/input-otp.js +47 -0
- package/dist/ui/input-otp.js.map +1 -0
- package/dist/ui/input.d.ts +13 -0
- package/dist/ui/input.d.ts.map +1 -0
- package/dist/ui/input.js +17 -0
- package/dist/ui/input.js.map +1 -0
- package/dist/ui/label.d.ts +12 -0
- package/dist/ui/label.d.ts.map +1 -0
- package/dist/ui/label.js +20 -0
- package/dist/ui/label.js.map +1 -0
- package/dist/ui/link.d.ts +9 -0
- package/dist/ui/link.d.ts.map +1 -0
- package/dist/ui/link.js +18 -0
- package/dist/ui/link.js.map +1 -0
- package/dist/ui/live-region.d.ts +17 -0
- package/dist/ui/live-region.d.ts.map +1 -0
- package/dist/ui/live-region.js +48 -0
- package/dist/ui/live-region.js.map +1 -0
- package/dist/ui/loading-button.d.ts +20 -0
- package/dist/ui/loading-button.d.ts.map +1 -0
- package/dist/ui/loading-button.js +21 -0
- package/dist/ui/loading-button.js.map +1 -0
- package/dist/ui/map/MapBase.d.ts +29 -0
- package/dist/ui/map/MapBase.d.ts.map +1 -0
- package/dist/ui/map/MapBase.js +48 -0
- package/dist/ui/map/MapBase.js.map +1 -0
- package/dist/ui/map/MapGeoJsonOverlay.d.ts +16 -0
- package/dist/ui/map/MapGeoJsonOverlay.d.ts.map +1 -0
- package/dist/ui/map/MapGeoJsonOverlay.js +39 -0
- package/dist/ui/map/MapGeoJsonOverlay.js.map +1 -0
- package/dist/ui/map/MapHeatmapH3.d.ts +18 -0
- package/dist/ui/map/MapHeatmapH3.d.ts.map +1 -0
- package/dist/ui/map/MapHeatmapH3.js +52 -0
- package/dist/ui/map/MapHeatmapH3.js.map +1 -0
- package/dist/ui/map/MapMarkers.d.ts +20 -0
- package/dist/ui/map/MapMarkers.d.ts.map +1 -0
- package/dist/ui/map/MapMarkers.js +35 -0
- package/dist/ui/map/MapMarkers.js.map +1 -0
- package/dist/ui/map/index.d.ts +5 -0
- package/dist/ui/map/index.js +6 -0
- package/dist/ui/marketing/FeatureGrid.d.ts +21 -0
- package/dist/ui/marketing/FeatureGrid.d.ts.map +1 -0
- package/dist/ui/marketing/FeatureGrid.js +35 -0
- package/dist/ui/marketing/FeatureGrid.js.map +1 -0
- package/dist/ui/marketing/Hero.d.ts +28 -0
- package/dist/ui/marketing/Hero.d.ts.map +1 -0
- package/dist/ui/marketing/Hero.js +53 -0
- package/dist/ui/marketing/Hero.js.map +1 -0
- package/dist/ui/marketing/PricingTable.d.ts +25 -0
- package/dist/ui/marketing/PricingTable.d.ts.map +1 -0
- package/dist/ui/marketing/PricingTable.js +60 -0
- package/dist/ui/marketing/PricingTable.js.map +1 -0
- package/dist/ui/marketing/index.d.ts +4 -0
- package/dist/ui/marketing/index.js +5 -0
- package/dist/ui/menubar.d.ts +85 -0
- package/dist/ui/menubar.d.ts.map +1 -0
- package/dist/ui/menubar.js +138 -0
- package/dist/ui/menubar.js.map +1 -0
- package/dist/ui/molecules/Autocomplete/index.d.ts +7 -0
- package/dist/ui/molecules/Autocomplete/index.d.ts.map +1 -0
- package/dist/ui/molecules/Autocomplete/index.js +86 -0
- package/dist/ui/molecules/Autocomplete/index.js.map +1 -0
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +8 -0
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts.map +1 -0
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +103 -0
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js.map +1 -0
- package/dist/ui/molecules/SearchAndFilter/index.d.ts +3 -0
- package/dist/ui/molecules/SearchAndFilter/index.js +3 -0
- package/dist/ui/molecules/SearchAndFilter/types.d.ts +24 -0
- package/dist/ui/molecules/SearchAndFilter/types.d.ts.map +1 -0
- package/dist/ui/molecules/SearchAndFilter/types.js +1 -0
- package/dist/ui/molecules/SkeletonList.d.ts +16 -0
- package/dist/ui/molecules/SkeletonList.d.ts.map +1 -0
- package/dist/ui/molecules/SkeletonList.js +15 -0
- package/dist/ui/molecules/SkeletonList.js.map +1 -0
- package/dist/ui/nav-layout.d.ts +71 -0
- package/dist/ui/nav-layout.d.ts.map +1 -0
- package/dist/ui/nav-layout.js +133 -0
- package/dist/ui/nav-layout.js.map +1 -0
- package/dist/ui/navigation-menu.d.ts +47 -0
- package/dist/ui/navigation-menu.d.ts.map +1 -0
- package/dist/ui/navigation-menu.js +83 -0
- package/dist/ui/navigation-menu.js.map +1 -0
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +30 -0
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts.map +1 -0
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +112 -0
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +1 -0
- package/dist/ui/organisms/ErrorBoundary/index.d.ts +2 -0
- package/dist/ui/organisms/ErrorBoundary/index.js +3 -0
- package/dist/ui/organisms/ListPage/ListPage.d.ts +29 -0
- package/dist/ui/organisms/ListPage/ListPage.d.ts.map +1 -0
- package/dist/ui/organisms/ListPage/ListPage.js +198 -0
- package/dist/ui/organisms/ListPage/ListPage.js.map +1 -0
- package/dist/ui/organisms/ListPage/index.d.ts +3 -0
- package/dist/ui/organisms/ListPage/index.js +3 -0
- package/dist/ui/organisms/ListPage/types.d.ts +41 -0
- package/dist/ui/organisms/ListPage/types.d.ts.map +1 -0
- package/dist/ui/organisms/ListPage/types.js +1 -0
- package/dist/ui/page-header.d.ts +27 -0
- package/dist/ui/page-header.d.ts.map +1 -0
- package/dist/ui/page-header.js +40 -0
- package/dist/ui/page-header.js.map +1 -0
- package/dist/ui/pagination.d.ts +50 -0
- package/dist/ui/pagination.d.ts.map +1 -0
- package/dist/ui/pagination.js +65 -0
- package/dist/ui/pagination.js.map +1 -0
- package/dist/ui/popover.d.ts +23 -0
- package/dist/ui/popover.d.ts.map +1 -0
- package/dist/ui/popover.js +40 -0
- package/dist/ui/popover.js.map +1 -0
- package/dist/ui/progress.d.ts +13 -0
- package/dist/ui/progress.d.ts.map +1 -0
- package/dist/ui/progress.js +25 -0
- package/dist/ui/progress.js.map +1 -0
- package/dist/ui/radio-group.d.ts +16 -0
- package/dist/ui/radio-group.d.ts.map +1 -0
- package/dist/ui/radio-group.js +33 -0
- package/dist/ui/radio-group.js.map +1 -0
- package/dist/ui/resizable.d.ts +36 -0
- package/dist/ui/resizable.d.ts.map +1 -0
- package/dist/ui/resizable.js +26 -0
- package/dist/ui/resizable.js.map +1 -0
- package/dist/ui/route-announcer.d.ts +11 -0
- package/dist/ui/route-announcer.d.ts.map +1 -0
- package/dist/ui/route-announcer.js +23 -0
- package/dist/ui/route-announcer.js.map +1 -0
- package/dist/ui/scroll-area.d.ts +18 -0
- package/dist/ui/scroll-area.d.ts.map +1 -0
- package/dist/ui/scroll-area.js +41 -0
- package/dist/ui/scroll-area.js.map +1 -0
- package/dist/ui/section.d.ts +27 -0
- package/dist/ui/section.d.ts.map +1 -0
- package/dist/ui/section.js +63 -0
- package/dist/ui/section.js.map +1 -0
- package/dist/ui/select.d.ts +52 -0
- package/dist/ui/select.d.ts.map +1 -0
- package/dist/ui/select.js +101 -0
- package/dist/ui/select.js.map +1 -0
- package/dist/ui/separator.d.ts +14 -0
- package/dist/ui/separator.d.ts.map +1 -0
- package/dist/ui/separator.js +22 -0
- package/dist/ui/separator.js.map +1 -0
- package/dist/ui/sheet.d.ts +41 -0
- package/dist/ui/sheet.d.ts.map +1 -0
- package/dist/ui/sheet.js +87 -0
- package/dist/ui/sheet.js.map +1 -0
- package/dist/ui/sidebar.d.ts +77 -0
- package/dist/ui/sidebar.d.ts.map +1 -0
- package/dist/ui/sidebar.js +380 -0
- package/dist/ui/sidebar.js.map +1 -0
- package/dist/ui/skeleton.d.ts +10 -0
- package/dist/ui/skeleton.d.ts.map +1 -0
- package/dist/ui/skeleton.js +15 -0
- package/dist/ui/skeleton.js.map +1 -0
- package/dist/ui/skip-link.d.ts +17 -0
- package/dist/ui/skip-link.d.ts.map +1 -0
- package/dist/ui/skip-link.js +17 -0
- package/dist/ui/skip-link.js.map +1 -0
- package/dist/ui/slider.d.ts +16 -0
- package/dist/ui/slider.d.ts.map +1 -0
- package/dist/ui/slider.js +41 -0
- package/dist/ui/slider.js.map +1 -0
- package/dist/ui/sonner.d.ts +10 -0
- package/dist/ui/sonner.d.ts.map +1 -0
- package/dist/ui/sonner.js +25 -0
- package/dist/ui/sonner.js.map +1 -0
- package/dist/ui/stack.d.ts +48 -0
- package/dist/ui/stack.d.ts.map +1 -0
- package/dist/ui/stack.js +158 -0
- package/dist/ui/stack.js.map +1 -0
- package/dist/ui/stat-card-group.d.ts +19 -0
- package/dist/ui/stat-card-group.d.ts.map +1 -0
- package/dist/ui/stat-card-group.js +39 -0
- package/dist/ui/stat-card-group.js.map +1 -0
- package/dist/ui/stepper.d.ts +23 -0
- package/dist/ui/stepper.d.ts.map +1 -0
- package/dist/ui/stepper.js +37 -0
- package/dist/ui/stepper.js.map +1 -0
- package/dist/ui/switch.d.ts +12 -0
- package/dist/ui/switch.d.ts.map +1 -0
- package/dist/ui/switch.js +24 -0
- package/dist/ui/switch.js.map +1 -0
- package/dist/ui/table.d.ts +39 -0
- package/dist/ui/table.d.ts.map +1 -0
- package/dist/ui/table.js +72 -0
- package/dist/ui/table.js.map +1 -0
- package/dist/ui/tabs.d.ts +24 -0
- package/dist/ui/tabs.d.ts.map +1 -0
- package/dist/ui/tabs.js +41 -0
- package/dist/ui/tabs.js.map +1 -0
- package/dist/ui/text.d.ts +16 -0
- package/dist/ui/text.d.ts.map +1 -0
- package/dist/ui/text.js +16 -0
- package/dist/ui/text.js.map +1 -0
- package/dist/ui/textarea.d.ts +12 -0
- package/dist/ui/textarea.d.ts.map +1 -0
- package/dist/ui/textarea.js +16 -0
- package/dist/ui/textarea.js.map +1 -0
- package/dist/ui/time-picker.d.ts +22 -0
- package/dist/ui/time-picker.d.ts.map +1 -0
- package/dist/ui/time-picker.js +82 -0
- package/dist/ui/time-picker.js.map +1 -0
- package/dist/ui/toast.d.ts +20 -0
- package/dist/ui/toast.d.ts.map +1 -0
- package/dist/ui/toast.js +63 -0
- package/dist/ui/toast.js.map +1 -0
- package/dist/ui/toaster.d.ts +7 -0
- package/dist/ui/toaster.d.ts.map +1 -0
- package/dist/ui/toaster.js +28 -0
- package/dist/ui/toaster.js.map +1 -0
- package/dist/ui/toggle-group.d.ts +24 -0
- package/dist/ui/toggle-group.d.ts.map +1 -0
- package/dist/ui/toggle-group.js +49 -0
- package/dist/ui/toggle-group.js.map +1 -0
- package/dist/ui/toggle.d.ts +20 -0
- package/dist/ui/toggle.d.ts.map +1 -0
- package/dist/ui/toggle.js +42 -0
- package/dist/ui/toggle.js.map +1 -0
- package/dist/ui/tooltip.d.ts +24 -0
- package/dist/ui/tooltip.d.ts.map +1 -0
- package/dist/ui/tooltip.js +41 -0
- package/dist/ui/tooltip.js.map +1 -0
- package/dist/ui/typography.d.ts +65 -0
- package/dist/ui/typography.d.ts.map +1 -0
- package/dist/ui/typography.js +87 -0
- package/dist/ui/typography.js.map +1 -0
- package/dist/ui/use-media-query.d.ts +5 -0
- package/dist/ui/use-media-query.d.ts.map +1 -0
- package/dist/ui/use-media-query.js +20 -0
- package/dist/ui/use-media-query.js.map +1 -0
- package/dist/ui/use-mobile.d.ts +5 -0
- package/dist/ui/use-mobile.d.ts.map +1 -0
- package/dist/ui/use-mobile.js +21 -0
- package/dist/ui/use-mobile.js.map +1 -0
- package/dist/ui/use-reduced-motion.d.ts +5 -0
- package/dist/ui/use-reduced-motion.d.ts.map +1 -0
- package/dist/ui/use-reduced-motion.js +18 -0
- package/dist/ui/use-reduced-motion.js.map +1 -0
- package/dist/ui/use-toast.d.ts +50 -0
- package/dist/ui/use-toast.d.ts.map +1 -0
- package/dist/ui/use-toast.js +123 -0
- package/dist/ui/use-toast.js.map +1 -0
- package/dist/ui/useListState.d.ts +34 -0
- package/dist/ui/useListState.d.ts.map +1 -0
- package/dist/ui/useListState.js +75 -0
- package/dist/ui/useListState.js.map +1 -0
- package/dist/ui/usecases/UseCaseCard.d.ts +19 -0
- package/dist/ui/usecases/UseCaseCard.d.ts.map +1 -0
- package/dist/ui/usecases/UseCaseCard.js +35 -0
- package/dist/ui/usecases/UseCaseCard.js.map +1 -0
- package/dist/ui/usecases/UserStoryCard.d.ts +15 -0
- package/dist/ui/usecases/UserStoryCard.d.ts.map +1 -0
- package/dist/ui/usecases/UserStoryCard.js +36 -0
- package/dist/ui/usecases/UserStoryCard.js.map +1 -0
- package/dist/ui/usecases/index.d.ts +3 -0
- package/dist/ui/usecases/index.js +4 -0
- package/dist/ui/utils.d.ts +7 -0
- package/dist/ui/utils.d.ts.map +1 -0
- package/dist/ui/utils.js +11 -0
- package/dist/ui/utils.js.map +1 -0
- package/dist/ui/visually-hidden.d.ts +10 -0
- package/dist/ui/visually-hidden.d.ts.map +1 -0
- package/dist/ui/visually-hidden.js +31 -0
- package/dist/ui/visually-hidden.js.map +1 -0
- package/package.json +222 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { Button } from "../../button.js";
|
|
2
|
+
import { Card, CardContent } from "../../card.js";
|
|
3
|
+
import { HStack, VStack } from "../../stack.js";
|
|
4
|
+
import { Separator } from "../../separator.js";
|
|
5
|
+
import { Pagination } from "../../atoms/Pagination/Pagination.js";
|
|
6
|
+
import { SearchAndFilter } from "../../molecules/SearchAndFilter/SearchAndFilter.js";
|
|
7
|
+
import React from "react";
|
|
8
|
+
import { AlertTriangle, Loader2, Plus, RefreshCcw } from "lucide-react";
|
|
9
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import NextLink from "next/link";
|
|
11
|
+
|
|
12
|
+
//#region ui/organisms/ListPage/ListPage.tsx
|
|
13
|
+
function ListPage({ title, description, header, items, totalItems, totalPages, isLoading, isFetching, error, listState, searchPlaceholder, filters = [], onRefresh, primaryAction, toolbar, renderItem, renderEmpty, renderStats, className = "", itemClassName = "" }) {
|
|
14
|
+
const { searchQuery, setSearchQuery, filters: filterValues, setFilter, currentPage, itemsPerPage, setCurrentPage, setItemsPerPage } = listState;
|
|
15
|
+
if (isLoading && !items.length) return /* @__PURE__ */ jsxs(VStack, {
|
|
16
|
+
className: `space-y-4 md:space-y-6 ${className}`,
|
|
17
|
+
children: [header ? header : /* @__PURE__ */ jsxs(VStack, {
|
|
18
|
+
className: "gap-1",
|
|
19
|
+
children: [/* @__PURE__ */ jsx("h1", {
|
|
20
|
+
className: "text-2xl font-bold md:text-3xl",
|
|
21
|
+
children: title
|
|
22
|
+
}), description && /* @__PURE__ */ jsx("p", {
|
|
23
|
+
className: "text-muted-foreground text-base",
|
|
24
|
+
children: description
|
|
25
|
+
})]
|
|
26
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
27
|
+
className: "flex min-h-[400px] items-center justify-center",
|
|
28
|
+
children: /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(CardContent, {
|
|
29
|
+
className: "flex items-center gap-4 p-6",
|
|
30
|
+
children: [/* @__PURE__ */ jsx(Loader2, { className: "text-primary h-8 w-8 animate-spin" }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
|
|
31
|
+
className: "font-medium",
|
|
32
|
+
children: "Chargement..."
|
|
33
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
34
|
+
className: "text-muted-foreground text-base",
|
|
35
|
+
children: "Récupération des données en cours"
|
|
36
|
+
})] })]
|
|
37
|
+
}) })
|
|
38
|
+
})]
|
|
39
|
+
});
|
|
40
|
+
if (error && !items.length) return /* @__PURE__ */ jsxs(VStack, {
|
|
41
|
+
className: `space-y-4 md:space-y-6 ${className}`,
|
|
42
|
+
children: [header ? header : /* @__PURE__ */ jsxs(VStack, {
|
|
43
|
+
className: "gap-1",
|
|
44
|
+
children: [/* @__PURE__ */ jsx("h1", {
|
|
45
|
+
className: "text-2xl font-bold md:text-3xl",
|
|
46
|
+
children: title
|
|
47
|
+
}), description && /* @__PURE__ */ jsx("p", {
|
|
48
|
+
className: "text-muted-foreground text-base",
|
|
49
|
+
children: description
|
|
50
|
+
})]
|
|
51
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
52
|
+
className: "flex min-h-[400px] items-center justify-center",
|
|
53
|
+
children: /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(CardContent, {
|
|
54
|
+
className: "flex flex-col items-center gap-4 p-6 text-center",
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ jsx(AlertTriangle, { className: "text-destructive h-12 w-12" }),
|
|
57
|
+
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
|
|
58
|
+
className: "font-medium",
|
|
59
|
+
children: "Erreur de chargement"
|
|
60
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
61
|
+
className: "text-muted-foreground text-base",
|
|
62
|
+
children: error.message || "Une erreur est survenue"
|
|
63
|
+
})] }),
|
|
64
|
+
onRefresh && /* @__PURE__ */ jsxs(Button, {
|
|
65
|
+
onClick: onRefresh,
|
|
66
|
+
variant: "outline",
|
|
67
|
+
size: "sm",
|
|
68
|
+
children: [/* @__PURE__ */ jsx(RefreshCcw, { className: "mr-2 h-4 w-4" }), "Réessayer"]
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
}) })
|
|
72
|
+
})]
|
|
73
|
+
});
|
|
74
|
+
const filterConfigs = filters.map((filter) => ({
|
|
75
|
+
key: filter.key,
|
|
76
|
+
label: filter.label,
|
|
77
|
+
value: filterValues[filter.key] || "",
|
|
78
|
+
options: filter.options,
|
|
79
|
+
onChange: (value) => {
|
|
80
|
+
setFilter(filter.key, value === "all" ? "" : value);
|
|
81
|
+
},
|
|
82
|
+
showCounts: filter.showCounts
|
|
83
|
+
}));
|
|
84
|
+
return /* @__PURE__ */ jsxs(VStack, {
|
|
85
|
+
className: `space-y-4 md:space-y-6 ${className}`,
|
|
86
|
+
children: [
|
|
87
|
+
header ? header : /* @__PURE__ */ jsxs(HStack, {
|
|
88
|
+
className: "items-center justify-between",
|
|
89
|
+
children: [/* @__PURE__ */ jsxs(VStack, {
|
|
90
|
+
className: "gap-1",
|
|
91
|
+
children: [/* @__PURE__ */ jsx("h1", {
|
|
92
|
+
className: "text-2xl font-bold md:text-3xl",
|
|
93
|
+
children: title
|
|
94
|
+
}), description && /* @__PURE__ */ jsx("p", {
|
|
95
|
+
className: "text-muted-foreground text-base",
|
|
96
|
+
children: description
|
|
97
|
+
})]
|
|
98
|
+
}), /* @__PURE__ */ jsxs(HStack, {
|
|
99
|
+
className: "items-center gap-4",
|
|
100
|
+
children: [
|
|
101
|
+
toolbar,
|
|
102
|
+
(isLoading || isFetching) && /* @__PURE__ */ jsxs("div", {
|
|
103
|
+
className: "text-muted-foreground flex items-center gap-2 text-base",
|
|
104
|
+
children: [/* @__PURE__ */ jsx(Loader2, { className: "h-4 w-4 animate-spin" }), /* @__PURE__ */ jsx("span", {
|
|
105
|
+
className: "hidden sm:inline",
|
|
106
|
+
children: "Mise à jour..."
|
|
107
|
+
})]
|
|
108
|
+
}),
|
|
109
|
+
onRefresh && /* @__PURE__ */ jsxs(Button, {
|
|
110
|
+
variant: "outline",
|
|
111
|
+
size: "sm",
|
|
112
|
+
onClick: onRefresh,
|
|
113
|
+
disabled: Boolean(isLoading),
|
|
114
|
+
"aria-label": "Rafraîchir",
|
|
115
|
+
children: [/* @__PURE__ */ jsx(RefreshCcw, { className: `mr-2 h-4 w-4 ${isLoading || isFetching ? "animate-spin" : ""}` }), /* @__PURE__ */ jsx("span", {
|
|
116
|
+
className: "hidden sm:inline",
|
|
117
|
+
children: "Rafraîchir"
|
|
118
|
+
})]
|
|
119
|
+
}),
|
|
120
|
+
primaryAction && /* @__PURE__ */ jsx(Fragment, { children: primaryAction.href ? /* @__PURE__ */ jsx(NextLink, {
|
|
121
|
+
href: primaryAction.href,
|
|
122
|
+
children: /* @__PURE__ */ jsxs(Button, { children: [
|
|
123
|
+
primaryAction.icon || /* @__PURE__ */ jsx(Plus, { className: "mr-2 h-4 w-4" }),
|
|
124
|
+
/* @__PURE__ */ jsx("span", {
|
|
125
|
+
className: "hidden sm:inline",
|
|
126
|
+
children: primaryAction.label
|
|
127
|
+
}),
|
|
128
|
+
/* @__PURE__ */ jsx("span", {
|
|
129
|
+
className: "sm:hidden",
|
|
130
|
+
children: "Nouveau"
|
|
131
|
+
})
|
|
132
|
+
] })
|
|
133
|
+
}) : /* @__PURE__ */ jsxs(Button, {
|
|
134
|
+
onClick: primaryAction.onClick,
|
|
135
|
+
children: [
|
|
136
|
+
primaryAction.icon || /* @__PURE__ */ jsx(Plus, { className: "mr-2 h-4 w-4" }),
|
|
137
|
+
/* @__PURE__ */ jsx("span", {
|
|
138
|
+
className: "hidden sm:inline",
|
|
139
|
+
children: primaryAction.label
|
|
140
|
+
}),
|
|
141
|
+
/* @__PURE__ */ jsx("span", {
|
|
142
|
+
className: "sm:hidden",
|
|
143
|
+
children: "Nouveau"
|
|
144
|
+
})
|
|
145
|
+
]
|
|
146
|
+
}) })
|
|
147
|
+
]
|
|
148
|
+
})]
|
|
149
|
+
}),
|
|
150
|
+
renderStats && /* @__PURE__ */ jsxs(Fragment, { children: [renderStats(items), /* @__PURE__ */ jsx(Separator, {})] }),
|
|
151
|
+
/* @__PURE__ */ jsx(SearchAndFilter, {
|
|
152
|
+
searchValue: searchQuery,
|
|
153
|
+
onSearchChange: setSearchQuery,
|
|
154
|
+
searchPlaceholder,
|
|
155
|
+
filters: filterConfigs,
|
|
156
|
+
isLoading
|
|
157
|
+
}),
|
|
158
|
+
items.length === 0 && !isLoading ? renderEmpty ? renderEmpty() : /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(CardContent, {
|
|
159
|
+
className: "flex flex-col items-center gap-4 p-8 text-center",
|
|
160
|
+
children: [
|
|
161
|
+
/* @__PURE__ */ jsx("div", {
|
|
162
|
+
className: "bg-muted flex h-12 w-12 items-center justify-center rounded-full",
|
|
163
|
+
children: /* @__PURE__ */ jsx("div", { className: "bg-muted-foreground/20 h-6 w-6 rounded-full" })
|
|
164
|
+
}),
|
|
165
|
+
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
|
|
166
|
+
className: "font-medium",
|
|
167
|
+
children: "Aucun élément trouvé"
|
|
168
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
169
|
+
className: "text-muted-foreground text-base",
|
|
170
|
+
children: searchQuery || Object.values(filterValues).some((v) => v) ? "Essayez de modifier vos critères de recherche" : "Commencez par créer votre premier élément"
|
|
171
|
+
})] }),
|
|
172
|
+
primaryAction && !searchQuery && !Object.values(filterValues).some((v) => v) && /* @__PURE__ */ jsx(Fragment, { children: primaryAction.href ? /* @__PURE__ */ jsx(NextLink, {
|
|
173
|
+
href: primaryAction.href,
|
|
174
|
+
children: /* @__PURE__ */ jsxs(Button, { children: [primaryAction.icon || /* @__PURE__ */ jsx(Plus, { className: "mr-2 h-4 w-4" }), primaryAction.label] })
|
|
175
|
+
}) : /* @__PURE__ */ jsxs(Button, {
|
|
176
|
+
onClick: primaryAction.onClick,
|
|
177
|
+
children: [primaryAction.icon || /* @__PURE__ */ jsx(Plus, { className: "mr-2 h-4 w-4" }), primaryAction.label]
|
|
178
|
+
}) })
|
|
179
|
+
]
|
|
180
|
+
}) }) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
181
|
+
className: `space-y-4 ${itemClassName}`,
|
|
182
|
+
children: items.map((item, index) => renderItem(item, index))
|
|
183
|
+
}), totalPages > 1 && /* @__PURE__ */ jsx(Pagination, {
|
|
184
|
+
currentPage,
|
|
185
|
+
totalPages,
|
|
186
|
+
totalItems,
|
|
187
|
+
itemsPerPage,
|
|
188
|
+
onPageChange: setCurrentPage,
|
|
189
|
+
onItemsPerPageChange: setItemsPerPage,
|
|
190
|
+
disabled: isLoading
|
|
191
|
+
})] })
|
|
192
|
+
]
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
//#endregion
|
|
197
|
+
export { ListPage };
|
|
198
|
+
//# sourceMappingURL=ListPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListPage.js","names":["Link"],"sources":["../../../../ui/organisms/ListPage/ListPage.tsx"],"sourcesContent":["import React from 'react';\nimport Link from 'next/link';\nimport { AlertTriangle, Loader2, Plus, RefreshCcw } from 'lucide-react';\nimport { Button } from '../../button';\nimport { Card, CardContent } from '../../card';\nimport { VStack, HStack } from '../../stack';\nimport { Separator } from '../../separator';\nimport { SearchAndFilter } from '../../molecules/SearchAndFilter';\nimport { Pagination } from '../../atoms/Pagination';\nimport type { ListPageProps } from './types';\n\nexport function ListPage<T>({\n title,\n description,\n header,\n items,\n totalItems,\n totalPages,\n isLoading,\n isFetching,\n error,\n listState,\n searchPlaceholder,\n filters = [],\n onRefresh,\n primaryAction,\n toolbar,\n renderItem,\n renderEmpty,\n renderStats,\n className = '',\n itemClassName = '',\n}: ListPageProps<T>) {\n const {\n searchQuery,\n setSearchQuery,\n filters: filterValues,\n setFilter,\n currentPage,\n itemsPerPage,\n setCurrentPage,\n setItemsPerPage,\n } = listState;\n\n // Loading state with no items\n if (isLoading && !items.length) {\n return (\n <VStack className={`space-y-4 md:space-y-6 ${className}`}>\n {header ? (\n header\n ) : (\n <VStack className=\"gap-1\">\n <h1 className=\"text-2xl font-bold md:text-3xl\">{title}</h1>\n {description && (\n <p className=\"text-muted-foreground text-base\">{description}</p>\n )}\n </VStack>\n )}\n\n <div className=\"flex min-h-[400px] items-center justify-center\">\n <Card>\n <CardContent className=\"flex items-center gap-4 p-6\">\n <Loader2 className=\"text-primary h-8 w-8 animate-spin\" />\n <div>\n <h3 className=\"font-medium\">Chargement...</h3>\n <p className=\"text-muted-foreground text-base\">\n Récupération des données en cours\n </p>\n </div>\n </CardContent>\n </Card>\n </div>\n </VStack>\n );\n }\n\n // Error state with no items\n if (error && !items.length) {\n return (\n <VStack className={`space-y-4 md:space-y-6 ${className}`}>\n {header ? (\n header\n ) : (\n <VStack className=\"gap-1\">\n <h1 className=\"text-2xl font-bold md:text-3xl\">{title}</h1>\n {description && (\n <p className=\"text-muted-foreground text-base\">{description}</p>\n )}\n </VStack>\n )}\n\n <div className=\"flex min-h-[400px] items-center justify-center\">\n <Card>\n <CardContent className=\"flex flex-col items-center gap-4 p-6 text-center\">\n <AlertTriangle className=\"text-destructive h-12 w-12\" />\n <div>\n <h3 className=\"font-medium\">Erreur de chargement</h3>\n <p className=\"text-muted-foreground text-base\">\n {error.message || 'Une erreur est survenue'}\n </p>\n </div>\n {onRefresh && (\n <Button onClick={onRefresh} variant=\"outline\" size=\"sm\">\n <RefreshCcw className=\"mr-2 h-4 w-4\" />\n Réessayer\n </Button>\n )}\n </CardContent>\n </Card>\n </div>\n </VStack>\n );\n }\n\n // Prepare filter configurations\n const filterConfigs = filters.map((filter) => ({\n key: filter.key,\n label: filter.label,\n value: filterValues[filter.key] || '',\n options: filter.options,\n onChange: (value: string) => {\n setFilter(filter.key, value === 'all' ? '' : value);\n },\n showCounts: filter.showCounts,\n }));\n\n return (\n <VStack className={`space-y-4 md:space-y-6 ${className}`}>\n {/* Header */}\n {header ? (\n header\n ) : (\n <HStack className=\"items-center justify-between\">\n <VStack className=\"gap-1\">\n <h1 className=\"text-2xl font-bold md:text-3xl\">{title}</h1>\n {description && (\n <p className=\"text-muted-foreground text-base\">{description}</p>\n )}\n </VStack>\n\n <HStack className=\"items-center gap-4\">\n {toolbar}\n {(isLoading || isFetching) && (\n <div className=\"text-muted-foreground flex items-center gap-2 text-base\">\n <Loader2 className=\"h-4 w-4 animate-spin\" />\n <span className=\"hidden sm:inline\">Mise à jour...</span>\n </div>\n )}\n\n {onRefresh && (\n <Button\n variant=\"outline\"\n size=\"sm\"\n onClick={onRefresh}\n disabled={Boolean(isLoading)}\n aria-label=\"Rafraîchir\"\n >\n <RefreshCcw\n className={`mr-2 h-4 w-4 ${isLoading || isFetching ? 'animate-spin' : ''}`}\n />\n <span className=\"hidden sm:inline\">Rafraîchir</span>\n </Button>\n )}\n\n {primaryAction && (\n <>\n {primaryAction.href ? (\n <Link href={primaryAction.href}>\n <Button>\n {primaryAction.icon || <Plus className=\"mr-2 h-4 w-4\" />}\n <span className=\"hidden sm:inline\">\n {primaryAction.label}\n </span>\n <span className=\"sm:hidden\">Nouveau</span>\n </Button>\n </Link>\n ) : (\n <Button onClick={primaryAction.onClick}>\n {primaryAction.icon || <Plus className=\"mr-2 h-4 w-4\" />}\n <span className=\"hidden sm:inline\">\n {primaryAction.label}\n </span>\n <span className=\"sm:hidden\">Nouveau</span>\n </Button>\n )}\n </>\n )}\n </HStack>\n </HStack>\n )}\n\n {/* Stats (optional) */}\n {renderStats && (\n <>\n {renderStats(items)}\n <Separator />\n </>\n )}\n\n {/* Search and Filters */}\n <SearchAndFilter\n searchValue={searchQuery}\n onSearchChange={setSearchQuery}\n searchPlaceholder={searchPlaceholder}\n filters={filterConfigs}\n isLoading={isLoading}\n />\n\n {/* Content */}\n {items.length === 0 && !isLoading ? (\n renderEmpty ? (\n renderEmpty()\n ) : (\n <Card>\n <CardContent className=\"flex flex-col items-center gap-4 p-8 text-center\">\n <div className=\"bg-muted flex h-12 w-12 items-center justify-center rounded-full\">\n <div className=\"bg-muted-foreground/20 h-6 w-6 rounded-full\" />\n </div>\n <div>\n <h3 className=\"font-medium\">Aucun élément trouvé</h3>\n <p className=\"text-muted-foreground text-base\">\n {searchQuery || Object.values(filterValues).some((v) => v)\n ? 'Essayez de modifier vos critères de recherche'\n : 'Commencez par créer votre premier élément'}\n </p>\n </div>\n {primaryAction &&\n !searchQuery &&\n !Object.values(filterValues).some((v) => v) && (\n <>\n {primaryAction.href ? (\n <Link href={primaryAction.href}>\n <Button>\n {primaryAction.icon || (\n <Plus className=\"mr-2 h-4 w-4\" />\n )}\n {primaryAction.label}\n </Button>\n </Link>\n ) : (\n <Button onClick={primaryAction.onClick}>\n {primaryAction.icon || (\n <Plus className=\"mr-2 h-4 w-4\" />\n )}\n {primaryAction.label}\n </Button>\n )}\n </>\n )}\n </CardContent>\n </Card>\n )\n ) : (\n <>\n {/* Items List */}\n <div className={`space-y-4 ${itemClassName}`}>\n {items.map((item, index) => renderItem(item, index))}\n </div>\n\n {/* Pagination */}\n {totalPages > 1 && (\n <Pagination\n currentPage={currentPage}\n totalPages={totalPages}\n totalItems={totalItems}\n itemsPerPage={itemsPerPage}\n onPageChange={setCurrentPage}\n onItemsPerPageChange={setItemsPerPage}\n disabled={isLoading}\n />\n )}\n </>\n )}\n </VStack>\n );\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { UseListStateReturn } from "../../useListState.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
import { FilterOption } from "@lssm/lib.ui-kit-web/ui/atoms/FilterSelect";
|
|
4
|
+
|
|
5
|
+
//#region ui/organisms/ListPage/types.d.ts
|
|
6
|
+
interface ListPageFilter {
|
|
7
|
+
key: string;
|
|
8
|
+
label: string;
|
|
9
|
+
options: FilterOption[];
|
|
10
|
+
showCounts?: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface ListPageProps<T = unknown> {
|
|
13
|
+
title: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
header?: ReactNode;
|
|
16
|
+
items: T[];
|
|
17
|
+
totalItems: number;
|
|
18
|
+
totalPages: number;
|
|
19
|
+
isLoading: boolean;
|
|
20
|
+
isFetching?: boolean;
|
|
21
|
+
error?: Error | null;
|
|
22
|
+
listState: UseListStateReturn;
|
|
23
|
+
searchPlaceholder?: string;
|
|
24
|
+
filters?: ListPageFilter[];
|
|
25
|
+
onRefresh?: () => void;
|
|
26
|
+
primaryAction?: {
|
|
27
|
+
label: string;
|
|
28
|
+
href?: string;
|
|
29
|
+
onClick?: () => void;
|
|
30
|
+
icon?: ReactNode;
|
|
31
|
+
};
|
|
32
|
+
toolbar?: ReactNode;
|
|
33
|
+
renderItem: (item: T, index: number) => ReactNode;
|
|
34
|
+
renderEmpty?: () => ReactNode;
|
|
35
|
+
renderStats?: (items: T[]) => ReactNode;
|
|
36
|
+
className?: string;
|
|
37
|
+
itemClassName?: string;
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
export { ListPageFilter, ListPageProps };
|
|
41
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../../ui/organisms/ListPage/types.ts"],"sourcesContent":[],"mappings":";;;;;UAIiB,cAAA;;EAAA,KAAA,EAAA,MAAA;EAOA,OAAA,EAJN,YAImB,EAAA;EAInB,UAAA,CAAA,EAAA,OAAA;;AAQD,UAZO,aAYP,CAAA,IAAA,OAAA,CAAA,CAAA;EAGG,KAAA,EAAA,MAAA;EAID,WAAA,CAAA,EAAA,MAAA;EAQD,MAAA,CAAA,EAvBA,SAuBA;EAEC,KAAA,EAtBH,CAsBG,EAAA;EAGS,UAAA,EAAA,MAAA;EAAqB,UAAA,EAAA,MAAA;EACpB,SAAA,EAAA,OAAA;EACE,UAAA,CAAA,EAAA,OAAA;EAAQ,KAAA,CAAA,EAtBtB,KAsBsB,GAAA,IAAA;EAAS,SAAA,EAnB5B,kBAmB4B;;YAf7B;;;;;;WAQD;;YAEC;qBAGS,qBAAqB;sBACpB;wBACE,QAAQ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime51 from "react/jsx-runtime";
|
|
3
|
+
import { VariantProps } from "class-variance-authority";
|
|
4
|
+
import * as class_variance_authority_types8 from "class-variance-authority/types";
|
|
5
|
+
|
|
6
|
+
//#region ui/page-header.d.ts
|
|
7
|
+
declare const headerVariants: (props?: ({
|
|
8
|
+
spacing?: "sm" | "md" | "lg" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types8.ClassProp) | undefined) => string;
|
|
10
|
+
interface PageHeaderProps extends VariantProps<typeof headerVariants> {
|
|
11
|
+
breadcrumb?: React$1.ReactNode;
|
|
12
|
+
title: React$1.ReactNode;
|
|
13
|
+
subtitle?: React$1.ReactNode;
|
|
14
|
+
actions?: React$1.ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
declare function PageHeader({
|
|
18
|
+
breadcrumb,
|
|
19
|
+
title,
|
|
20
|
+
subtitle,
|
|
21
|
+
actions,
|
|
22
|
+
spacing,
|
|
23
|
+
className
|
|
24
|
+
}: PageHeaderProps): react_jsx_runtime51.JSX.Element;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { PageHeader, PageHeaderProps };
|
|
27
|
+
//# sourceMappingURL=page-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-header.d.ts","names":[],"sources":["../../ui/page-header.tsx"],"sourcesContent":[],"mappings":";;;;;;cAKM;;IAWJ,+BAAA,CAAA;UAEe,eAAA,SAAwB,oBAAoB;EAbvD,UAAA,CAAA,EAcS,OAAA,CAAM,SAHnB;EAEe,KAAA,EAER,OAAA,CAAM,SAFkB;EAA4B,QAAA,CAAA,EAGhD,OAAA,CAAM,SAH0C;EAC9C,OAAM,CAAA,EAGT,OAAA,CAAM,SAHG;EACZ,SAAM,CAAA,EAAA,MAAA;;AAEH,iBAII,UAAA,CAJE;EAAA,UAAA;EAAA,KAAA;EAAA,QAAA;EAAA,OAAA;EAAA,OAAA;EAAA;AAAA,CAAA,EAWf,eAXe,CAAA,EAWA,mBAAA,CAAA,GAAA,CAAA,OAXA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { cn } from "./utils.js";
|
|
2
|
+
import { HStack, VStack } from "./stack.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { cva } from "class-variance-authority";
|
|
6
|
+
|
|
7
|
+
//#region ui/page-header.tsx
|
|
8
|
+
const headerVariants = cva("", {
|
|
9
|
+
variants: { spacing: {
|
|
10
|
+
sm: "gap-1",
|
|
11
|
+
md: "gap-2",
|
|
12
|
+
lg: "gap-3"
|
|
13
|
+
} },
|
|
14
|
+
defaultVariants: { spacing: "md" }
|
|
15
|
+
});
|
|
16
|
+
function PageHeader({ breadcrumb, title, subtitle, actions, spacing, className }) {
|
|
17
|
+
return /* @__PURE__ */ jsxs(VStack, {
|
|
18
|
+
className: cn(headerVariants({ spacing }), className),
|
|
19
|
+
children: [breadcrumb, /* @__PURE__ */ jsxs(HStack, {
|
|
20
|
+
className: "flex-col items-start justify-between md:flex-row",
|
|
21
|
+
children: [/* @__PURE__ */ jsxs(VStack, {
|
|
22
|
+
className: "gap-1",
|
|
23
|
+
children: [/* @__PURE__ */ jsx("h1", {
|
|
24
|
+
className: "text-2xl font-semibold md:text-3xl",
|
|
25
|
+
children: title
|
|
26
|
+
}), subtitle ? /* @__PURE__ */ jsx("p", {
|
|
27
|
+
className: "text-muted-foreground text-base",
|
|
28
|
+
children: subtitle
|
|
29
|
+
}) : null]
|
|
30
|
+
}), actions ? /* @__PURE__ */ jsx("div", {
|
|
31
|
+
className: "flex items-center gap-2",
|
|
32
|
+
children: actions
|
|
33
|
+
}) : null]
|
|
34
|
+
})]
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
export { PageHeader };
|
|
40
|
+
//# sourceMappingURL=page-header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-header.js","names":[],"sources":["../../ui/page-header.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from './utils';\nimport { HStack, VStack } from './stack';\n\nconst headerVariants = cva('', {\n variants: {\n spacing: {\n sm: 'gap-1',\n md: 'gap-2',\n lg: 'gap-3',\n },\n },\n defaultVariants: {\n spacing: 'md',\n },\n});\n\nexport interface PageHeaderProps extends VariantProps<typeof headerVariants> {\n breadcrumb?: React.ReactNode;\n title: React.ReactNode;\n subtitle?: React.ReactNode;\n actions?: React.ReactNode;\n className?: string;\n}\n\nexport function PageHeader({\n breadcrumb,\n title,\n subtitle,\n actions,\n spacing,\n className,\n}: PageHeaderProps) {\n return (\n <VStack className={cn(headerVariants({ spacing }), className)}>\n {breadcrumb}\n <HStack className=\"flex-col items-start justify-between md:flex-row\">\n <VStack className=\"gap-1\">\n <h1 className=\"text-2xl font-semibold md:text-3xl\">{title}</h1>\n {subtitle ? (\n <p className=\"text-muted-foreground text-base\">{subtitle}</p>\n ) : null}\n </VStack>\n {actions ? (\n <div className=\"flex items-center gap-2\">{actions}</div>\n ) : null}\n </HStack>\n </VStack>\n );\n}\n"],"mappings":";;;;;;;AAKA,MAAM,iBAAiB,IAAI,IAAI;CAC7B,UAAU,EACR,SAAS;EACP,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACD,iBAAiB,EACf,SAAS,MACV;CACF,CAAC;AAUF,SAAgB,WAAW,EACzB,YACA,OACA,UACA,SACA,SACA,aACkB;AAClB,QACE,qBAAC;EAAO,WAAW,GAAG,eAAe,EAAE,SAAS,CAAC,EAAE,UAAU;aAC1D,YACD,qBAAC;GAAO,WAAU;cAChB,qBAAC;IAAO,WAAU;eAChB,oBAAC;KAAG,WAAU;eAAsC;MAAW,EAC9D,WACC,oBAAC;KAAE,WAAU;eAAmC;MAAa,GAC3D;KACG,EACR,UACC,oBAAC;IAAI,WAAU;cAA2B;KAAc,GACtD;IACG;GACF"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ButtonProps } from "./button.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import * as react_jsx_runtime46 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region ui/pagination.d.ts
|
|
6
|
+
declare const Pagination: {
|
|
7
|
+
({
|
|
8
|
+
className,
|
|
9
|
+
...props
|
|
10
|
+
}: React$1.ComponentProps<"nav">): react_jsx_runtime46.JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
declare const PaginationContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
14
|
+
declare const PaginationItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
15
|
+
type PaginationLinkProps = {
|
|
16
|
+
isActive?: boolean;
|
|
17
|
+
} & Pick<ButtonProps, 'size'> & React$1.ComponentProps<'a'>;
|
|
18
|
+
declare const PaginationLink: {
|
|
19
|
+
({
|
|
20
|
+
className,
|
|
21
|
+
isActive,
|
|
22
|
+
size,
|
|
23
|
+
...props
|
|
24
|
+
}: PaginationLinkProps): react_jsx_runtime46.JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
declare const PaginationPrevious: {
|
|
28
|
+
({
|
|
29
|
+
className,
|
|
30
|
+
...props
|
|
31
|
+
}: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime46.JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
declare const PaginationNext: {
|
|
35
|
+
({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime46.JSX.Element;
|
|
39
|
+
displayName: string;
|
|
40
|
+
};
|
|
41
|
+
declare const PaginationEllipsis: {
|
|
42
|
+
({
|
|
43
|
+
className,
|
|
44
|
+
...props
|
|
45
|
+
}: React$1.ComponentProps<"span">): react_jsx_runtime46.JSX.Element;
|
|
46
|
+
displayName: string;
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
50
|
+
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","names":[],"sources":["../../ui/pagination.tsx"],"sourcesContent":[],"mappings":";;;;;cAMM;;;;KAAuC,OAAA,CAAM,wBAAqB,mBAAA,CAAA,GAAA,CAAA;;AAFZ,CAAA;cAYtD,mBAAiB,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,kBAAA,OAAA,CAAA,eAAA,mBAAA,4BAAA,OAAA,CAAA,cAAA;cAYjB,cAtB6C,EAsB/B,OAAA,CAAA,yBAtB+B,CAsB/B,IAtB+B,CAsB/B,OAAA,CAAA,iBAtB+B,CAsB/B,OAAA,CAAA,gBAtB+B,CAsB/B,aAtB+B,CAAA,EAsB/B,aAtB+B,CAAA,EAAA,KAAA,CAAA,GAsB/B,OAAA,CAAA,aAtB+B,CAsB/B,aAtB+B,CAAA,CAAA;KA8B9C,mBAAA,GA9BmE;EAAA,QAAA,CAAA,EAAA,OAAA;AAAA,CAAA,GAgCpE,IAtBE,CAsBG,WAtBH,EAAA,MASJ,CAAA,GAcA,OAAA,CAAM,cAdN,CAAA,GAAA,CAAA;cAgBI,cAzBiB,EAAA;EAAA,CAAA;IAAA,SAAA;IAAA,QAAA;IAAA,IAAA;IAAA,GAAA;EAAA,CAAA,EA8BpB,mBA9BoB,CAAA,EA8BD,mBAAA,CAAA,GAAA,CAAA,OA9BC;EAAA,WAAA,EAAA,MAAA;CAAA;cA6CjB,kBA7CiB,EAAA;EAAA,CAAA;IAAA,SAAA;IAAA,GAAA;EAAA,CAAA,EAgDpB,OAAA,CAAM,cAhDc,CAAA,OAgDQ,cAhDR,CAAA,CAAA,EAgDuB,mBAAA,CAAA,GAAA,CAAA,OAhDvB;EAAA,WAAA,EAAA,MAAA;CAAA;cA6DjB,cA7DiB,EAAA;EAYjB,CAAA;IAAA,SAAA;IAAA,GAKJ;EAAA,CAAA,EA+CC,OAAA,CAAM,cA/CP,CAAA,OA+C6B,cA/C7B,CAAA,CAAA,EA+C4C,mBAAA,CAAA,GAAA,CAAA,OA/C5C;EALkB,WAAA,EAAA,MAAA;CAAA;cAiEd,kBAjEc,EAAA;EAAA,CAAA;IAAA,SAAA;IAAA,GAAA;EAAA,CAAA,EAoEjB,OAAA,CAAM,cApEW,CAAA,MAAA,CAAA,CAAA,EAoEW,mBAAA,CAAA,GAAA,CAAA,OApEX;EAAA,WAAA,EAAA,MAAA;CAAA"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { cn } from "./utils.js";
|
|
2
|
+
import { buttonVariants } from "./button.js";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region ui/pagination.tsx
|
|
8
|
+
const Pagination = ({ className,...props }) => /* @__PURE__ */ jsx("nav", {
|
|
9
|
+
role: "navigation",
|
|
10
|
+
"aria-label": "pagination",
|
|
11
|
+
className: cn("mx-auto flex w-full justify-center", className),
|
|
12
|
+
...props
|
|
13
|
+
});
|
|
14
|
+
Pagination.displayName = "Pagination";
|
|
15
|
+
const PaginationContent = React$1.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx("ul", {
|
|
16
|
+
ref,
|
|
17
|
+
className: cn("flex flex-row items-center gap-1", className),
|
|
18
|
+
...props
|
|
19
|
+
}));
|
|
20
|
+
PaginationContent.displayName = "PaginationContent";
|
|
21
|
+
const PaginationItem = React$1.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx("li", {
|
|
22
|
+
ref,
|
|
23
|
+
className: cn("", className),
|
|
24
|
+
...props
|
|
25
|
+
}));
|
|
26
|
+
PaginationItem.displayName = "PaginationItem";
|
|
27
|
+
const PaginationLink = ({ className, isActive, size = "icon",...props }) => /* @__PURE__ */ jsx("a", {
|
|
28
|
+
"aria-current": isActive ? "page" : void 0,
|
|
29
|
+
className: cn(buttonVariants({
|
|
30
|
+
variant: isActive ? "outline" : "ghost",
|
|
31
|
+
size
|
|
32
|
+
}), className),
|
|
33
|
+
...props
|
|
34
|
+
});
|
|
35
|
+
PaginationLink.displayName = "PaginationLink";
|
|
36
|
+
const PaginationPrevious = ({ className,...props }) => /* @__PURE__ */ jsxs(PaginationLink, {
|
|
37
|
+
"aria-label": "Go to previous page",
|
|
38
|
+
size: "default",
|
|
39
|
+
className: cn("gap-1 pl-2.5", className),
|
|
40
|
+
...props,
|
|
41
|
+
children: [/* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", { children: "Previous" })]
|
|
42
|
+
});
|
|
43
|
+
PaginationPrevious.displayName = "PaginationPrevious";
|
|
44
|
+
const PaginationNext = ({ className,...props }) => /* @__PURE__ */ jsxs(PaginationLink, {
|
|
45
|
+
"aria-label": "Go to next page",
|
|
46
|
+
size: "default",
|
|
47
|
+
className: cn("gap-1 pr-2.5", className),
|
|
48
|
+
...props,
|
|
49
|
+
children: [/* @__PURE__ */ jsx("span", { children: "Next" }), /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" })]
|
|
50
|
+
});
|
|
51
|
+
PaginationNext.displayName = "PaginationNext";
|
|
52
|
+
const PaginationEllipsis = ({ className,...props }) => /* @__PURE__ */ jsxs("span", {
|
|
53
|
+
"aria-hidden": true,
|
|
54
|
+
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
55
|
+
...props,
|
|
56
|
+
children: [/* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", {
|
|
57
|
+
className: "sr-only",
|
|
58
|
+
children: "More pages"
|
|
59
|
+
})]
|
|
60
|
+
});
|
|
61
|
+
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
65
|
+
//# sourceMappingURL=pagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.js","names":["React"],"sources":["../../ui/pagination.tsx"],"sourcesContent":["import * as React from 'react';\nimport { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react';\n\nimport { cn } from './utils';\nimport { type ButtonProps, buttonVariants } from './button';\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<'nav'>) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n);\nPagination.displayName = 'Pagination';\n\nconst PaginationContent = React.forwardRef<\n HTMLUListElement,\n React.ComponentProps<'ul'>\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n className={cn('flex flex-row items-center gap-1', className)}\n {...props}\n />\n));\nPaginationContent.displayName = 'PaginationContent';\n\nconst PaginationItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentProps<'li'>\n>(({ className, ...props }, ref) => (\n <li ref={ref} className={cn('', className)} {...props} />\n));\nPaginationItem.displayName = 'PaginationItem';\n\ntype PaginationLinkProps = {\n isActive?: boolean;\n} & Pick<ButtonProps, 'size'> &\n React.ComponentProps<'a'>;\n\nconst PaginationLink = ({\n className,\n isActive,\n size = 'icon',\n ...props\n}: PaginationLinkProps) => (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={cn(\n buttonVariants({\n variant: isActive ? 'outline' : 'ghost',\n size,\n }),\n className\n )}\n {...props}\n />\n);\nPaginationLink.displayName = 'PaginationLink';\n\nconst PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"default\"\n className={cn('gap-1 pl-2.5', className)}\n {...props}\n >\n <ChevronLeft className=\"h-4 w-4\" />\n <span>Previous</span>\n </PaginationLink>\n);\nPaginationPrevious.displayName = 'PaginationPrevious';\n\nconst PaginationNext = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"default\"\n className={cn('gap-1 pr-2.5', className)}\n {...props}\n >\n <span>Next</span>\n <ChevronRight className=\"h-4 w-4\" />\n </PaginationLink>\n);\nPaginationNext.displayName = 'PaginationNext';\n\nconst PaginationEllipsis = ({\n className,\n ...props\n}: React.ComponentProps<'span'>) => (\n <span\n aria-hidden\n className={cn('flex h-9 w-9 items-center justify-center', className)}\n {...props}\n >\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n);\nPaginationEllipsis.displayName = 'PaginationEllipsis';\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n"],"mappings":";;;;;;;AAMA,MAAM,cAAc,EAAE,UAAW,GAAG,YAClC,oBAAC;CACC,MAAK;CACL,cAAW;CACX,WAAW,GAAG,sCAAsC,UAAU;CAC9D,GAAI;EACJ;AAEJ,WAAW,cAAc;AAEzB,MAAM,oBAAoBA,QAAM,YAG7B,EAAE,UAAW,GAAG,SAAS,QAC1B,oBAAC;CACM;CACL,WAAW,GAAG,oCAAoC,UAAU;CAC5D,GAAI;EACJ,CACF;AACF,kBAAkB,cAAc;AAEhC,MAAM,iBAAiBA,QAAM,YAG1B,EAAE,UAAW,GAAG,SAAS,QAC1B,oBAAC;CAAQ;CAAK,WAAW,GAAG,IAAI,UAAU;CAAE,GAAI;EAAS,CACzD;AACF,eAAe,cAAc;AAO7B,MAAM,kBAAkB,EACtB,WACA,UACA,OAAO,OACP,GAAG,YAEH,oBAAC;CACC,gBAAc,WAAW,SAAS;CAClC,WAAW,GACT,eAAe;EACb,SAAS,WAAW,YAAY;EAChC;EACD,CAAC,EACF,UACD;CACD,GAAI;EACJ;AAEJ,eAAe,cAAc;AAE7B,MAAM,sBAAsB,EAC1B,UACA,GAAG,YAEH,qBAAC;CACC,cAAW;CACX,MAAK;CACL,WAAW,GAAG,gBAAgB,UAAU;CACxC,GAAI;YAEJ,oBAAC,eAAY,WAAU,YAAY,EACnC,oBAAC,oBAAK,aAAe;EACN;AAEnB,mBAAmB,cAAc;AAEjC,MAAM,kBAAkB,EACtB,UACA,GAAG,YAEH,qBAAC;CACC,cAAW;CACX,MAAK;CACL,WAAW,GAAG,gBAAgB,UAAU;CACxC,GAAI;YAEJ,oBAAC,oBAAK,SAAW,EACjB,oBAAC,gBAAa,WAAU,YAAY;EACrB;AAEnB,eAAe,cAAc;AAE7B,MAAM,sBAAsB,EAC1B,UACA,GAAG,YAEH,qBAAC;CACC;CACA,WAAW,GAAG,4CAA4C,UAAU;CACpE,GAAI;YAEJ,oBAAC,kBAAe,WAAU,YAAY,EACtC,oBAAC;EAAK,WAAU;YAAU;GAAiB;EACtC;AAET,mBAAmB,cAAc"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime52 from "react/jsx-runtime";
|
|
3
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
4
|
+
|
|
5
|
+
//#region ui/popover.d.ts
|
|
6
|
+
declare function Popover({
|
|
7
|
+
...props
|
|
8
|
+
}: React$1.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime52.JSX.Element;
|
|
9
|
+
declare function PopoverTrigger({
|
|
10
|
+
...props
|
|
11
|
+
}: React$1.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime52.JSX.Element;
|
|
12
|
+
declare function PopoverContent({
|
|
13
|
+
className,
|
|
14
|
+
align,
|
|
15
|
+
sideOffset,
|
|
16
|
+
...props
|
|
17
|
+
}: React$1.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime52.JSX.Element;
|
|
18
|
+
declare function PopoverAnchor({
|
|
19
|
+
...props
|
|
20
|
+
}: React$1.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime52.JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
23
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","names":[],"sources":["../../ui/popover.tsx"],"sourcesContent":[],"mappings":";;;;;iBAOS,OAAA;;GAEN,OAAA,CAAM,sBAAsB,gBAAA,CAAiB,QAAK,mBAAA,CAAA,GAAA,CAAA;iBAI5C,cAAA;;GAEN,OAAA,CAAM,sBAAsB,gBAAA,CAAiB,WAAQ,mBAAA,CAAA,GAAA,CAAA;iBAI/C,cAAA;;;;;GAKN,OAAA,CAAM,sBAAsB,gBAAA,CAAiB,WAAQ,mBAAA,CAAA,GAAA,CAAA;AArBI,iBAsCnD,aAAA,CAlCO;EAAA,GAAA;AAAA,CAAA,EAoCb,OAAA,CAAM,cApCO,CAAA,OAoCe,gBAAA,CAAiB,MApChC,CAAA,CAAA,EAoCuC,mBAAA,CAAA,GAAA,CAAA,OApCvC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import { cn } from "./utils.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
8
|
+
|
|
9
|
+
//#region ui/popover.tsx
|
|
10
|
+
function Popover({ ...props }) {
|
|
11
|
+
return /* @__PURE__ */ jsx(PopoverPrimitive.Root, {
|
|
12
|
+
"data-slot": "popover",
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function PopoverTrigger({ ...props }) {
|
|
17
|
+
return /* @__PURE__ */ jsx(PopoverPrimitive.Trigger, {
|
|
18
|
+
"data-slot": "popover-trigger",
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function PopoverContent({ className, align = "center", sideOffset = 4,...props }) {
|
|
23
|
+
return /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(PopoverPrimitive.Content, {
|
|
24
|
+
"data-slot": "popover-content",
|
|
25
|
+
align,
|
|
26
|
+
sideOffset,
|
|
27
|
+
className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", className),
|
|
28
|
+
...props
|
|
29
|
+
}) });
|
|
30
|
+
}
|
|
31
|
+
function PopoverAnchor({ ...props }) {
|
|
32
|
+
return /* @__PURE__ */ jsx(PopoverPrimitive.Anchor, {
|
|
33
|
+
"data-slot": "popover-anchor",
|
|
34
|
+
...props
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
40
|
+
//# sourceMappingURL=popover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.js","names":[],"sources":["../../ui/popover.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\n\nimport { cn } from './utils';\n\nfunction Popover({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\nfunction PopoverTrigger({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />;\n}\n\nfunction PopoverContent({\n className,\n align = 'center',\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n data-slot=\"popover-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden',\n className\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\nfunction PopoverAnchor({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />;\n}\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };\n"],"mappings":";;;;;;;;;AAOA,SAAS,QAAQ,EACf,GAAG,SACkD;AACrD,QAAO,oBAAC,iBAAiB;EAAK,aAAU;EAAU,GAAI;GAAS;;AAGjE,SAAS,eAAe,EACtB,GAAG,SACqD;AACxD,QAAO,oBAAC,iBAAiB;EAAQ,aAAU;EAAkB,GAAI;GAAS;;AAG5E,SAAS,eAAe,EACtB,WACA,QAAQ,UACR,aAAa,EACb,GAAG,SACqD;AACxD,QACE,oBAAC,iBAAiB,oBAChB,oBAAC,iBAAiB;EAChB,aAAU;EACH;EACK;EACZ,WAAW,GACT,keACA,UACD;EACD,GAAI;GACJ,GACsB;;AAI9B,SAAS,cAAc,EACrB,GAAG,SACoD;AACvD,QAAO,oBAAC,iBAAiB;EAAO,aAAU;EAAiB,GAAI;GAAS"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime56 from "react/jsx-runtime";
|
|
3
|
+
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
4
|
+
|
|
5
|
+
//#region ui/progress.d.ts
|
|
6
|
+
declare function Progress({
|
|
7
|
+
className,
|
|
8
|
+
value,
|
|
9
|
+
...props
|
|
10
|
+
}: React$1.ComponentProps<typeof ProgressPrimitive.Root>): react_jsx_runtime56.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Progress };
|
|
13
|
+
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.d.ts","names":[],"sources":["../../ui/progress.tsx"],"sourcesContent":[],"mappings":";;;;;iBAOS,QAAA;;;;GAIN,OAAA,CAAM,sBAAsB,iBAAA,CAAkB,QAAK,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import { cn } from "./utils.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
8
|
+
|
|
9
|
+
//#region ui/progress.tsx
|
|
10
|
+
function Progress({ className, value,...props }) {
|
|
11
|
+
return /* @__PURE__ */ jsx(ProgressPrimitive.Root, {
|
|
12
|
+
"data-slot": "progress",
|
|
13
|
+
className: cn("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full", className),
|
|
14
|
+
...props,
|
|
15
|
+
children: /* @__PURE__ */ jsx(ProgressPrimitive.Indicator, {
|
|
16
|
+
"data-slot": "progress-indicator",
|
|
17
|
+
className: "bg-primary h-full w-full flex-1 transition-all",
|
|
18
|
+
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { Progress };
|
|
25
|
+
//# sourceMappingURL=progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.js","names":[],"sources":["../../ui/progress.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ProgressPrimitive from '@radix-ui/react-progress';\n\nimport { cn } from './utils';\n\nfunction Progress({\n className,\n value,\n ...props\n}: React.ComponentProps<typeof ProgressPrimitive.Root>) {\n return (\n <ProgressPrimitive.Root\n data-slot=\"progress\"\n className={cn(\n 'bg-primary/20 relative h-2 w-full overflow-hidden rounded-full',\n className\n )}\n {...props}\n >\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className=\"bg-primary h-full w-full flex-1 transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n );\n}\n\nexport { Progress };\n"],"mappings":";;;;;;;;;AAOA,SAAS,SAAS,EAChB,WACA,MACA,GAAG,SACmD;AACtD,QACE,oBAAC,kBAAkB;EACjB,aAAU;EACV,WAAW,GACT,kEACA,UACD;EACD,GAAI;YAEJ,oBAAC,kBAAkB;GACjB,aAAU;GACV,WAAU;GACV,OAAO,EAAE,WAAW,eAAe,OAAO,SAAS,GAAG,KAAK;IAC3D;GACqB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime57 from "react/jsx-runtime";
|
|
3
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
4
|
+
|
|
5
|
+
//#region ui/radio-group.d.ts
|
|
6
|
+
declare function RadioGroup({
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}: React$1.ComponentProps<typeof RadioGroupPrimitive.Root>): react_jsx_runtime57.JSX.Element;
|
|
10
|
+
declare function RadioGroupItem({
|
|
11
|
+
className,
|
|
12
|
+
...props
|
|
13
|
+
}: React$1.ComponentProps<typeof RadioGroupPrimitive.Item>): react_jsx_runtime57.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { RadioGroup, RadioGroupItem };
|
|
16
|
+
//# sourceMappingURL=radio-group.d.ts.map
|