@lssm/lib.ui-kit-web 0.0.0-canary-20251120192244 → 0.0.0-canary-20251206160926
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/dist/node_modules/sonner/dist/index.js +467 -751
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/accordion.d.ts +6 -7
- package/dist/ui/accordion.js +4 -6
- package/dist/ui/alert-dialog.d.ts +13 -14
- package/dist/ui/alert-dialog.js +9 -11
- package/dist/ui/alert.d.ts +5 -6
- package/dist/ui/alert.js +4 -5
- package/dist/ui/aspect-ratio.d.ts +1 -2
- package/dist/ui/aspect-ratio.js +1 -3
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +1 -2
- package/dist/ui/atoms/FilterSelect/FilterSelect.js +1 -2
- package/dist/ui/atoms/FilterSelect/types.d.ts +1 -2
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +1 -2
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +1 -2
- package/dist/ui/atoms/Pagination/Pagination.d.ts +1 -2
- package/dist/ui/atoms/Pagination/Pagination.js +1 -2
- package/dist/ui/atoms/Pagination/types.d.ts +1 -2
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts +1 -2
- package/dist/ui/atoms/SearchInput/SearchInput.js +1 -2
- package/dist/ui/atoms/SearchInput/types.d.ts +1 -2
- package/dist/ui/avatar.d.ts +5 -6
- package/dist/ui/avatar.js +4 -6
- package/dist/ui/badge.d.ts +6 -7
- package/dist/ui/badge.js +2 -3
- package/dist/ui/breadcrumb.d.ts +9 -10
- package/dist/ui/breadcrumb.js +7 -8
- package/dist/ui/button.d.ts +6 -7
- package/dist/ui/button.js +2 -3
- package/dist/ui/calendar.d.ts +4 -5
- package/dist/ui/calendar.js +6 -8
- package/dist/ui/card.d.ts +9 -10
- package/dist/ui/card.js +8 -9
- package/dist/ui/carousel.d.ts +7 -8
- package/dist/ui/carousel.js +6 -8
- package/dist/ui/checkbox.d.ts +3 -4
- package/dist/ui/checkbox.js +4 -6
- package/dist/ui/collapsible.d.ts +5 -6
- package/dist/ui/collapsible.js +1 -3
- package/dist/ui/command.d.ts +11 -12
- package/dist/ui/command.js +9 -11
- package/dist/ui/confirm-dialog.d.ts +3 -4
- package/dist/ui/confirm-dialog.js +1 -2
- package/dist/ui/context-menu.d.ts +3 -4
- package/dist/ui/context-menu.js +10 -12
- package/dist/ui/cta.d.ts +1 -2
- package/dist/ui/cta.js +2 -3
- package/dist/ui/date-picker.d.ts +3 -4
- package/dist/ui/date-picker.js +1 -3
- package/dist/ui/date-range-picker.d.ts +3 -4
- package/dist/ui/date-range-picker.js +1 -3
- package/dist/ui/datetime-picker.d.ts +3 -4
- package/dist/ui/datetime-picker.js +1 -3
- package/dist/ui/dialog.d.ts +12 -13
- package/dist/ui/dialog.js +7 -9
- package/dist/ui/drawer.d.ts +12 -13
- package/dist/ui/drawer.js +7 -9
- package/dist/ui/dropdown-menu.d.ts +17 -18
- package/dist/ui/dropdown-menu.js +10 -12
- package/dist/ui/empty-state.d.ts +5 -6
- package/dist/ui/empty-state.js +1 -2
- package/dist/ui/empty.d.ts +10 -11
- package/dist/ui/empty.js +7 -8
- package/dist/ui/field.d.ts +15 -16
- package/dist/ui/field.js +11 -13
- package/dist/ui/focus-on-route-change.d.ts +1 -2
- package/dist/ui/focus-on-route-change.js +1 -2
- package/dist/ui/form.d.ts +8 -9
- package/dist/ui/form.js +5 -7
- package/dist/ui/hover-card.d.ts +5 -6
- package/dist/ui/hover-card.js +2 -4
- package/dist/ui/input-group.d.ts +11 -12
- package/dist/ui/input-group.js +7 -9
- package/dist/ui/input-otp.d.ts +1 -2
- package/dist/ui/input-otp.js +4 -6
- package/dist/ui/input.d.ts +3 -4
- package/dist/ui/input.js +2 -3
- package/dist/ui/label.d.ts +3 -4
- package/dist/ui/label.js +2 -4
- package/dist/ui/link.d.ts +1 -2
- package/dist/ui/link.js +2 -3
- package/dist/ui/live-region.d.ts +3 -4
- package/dist/ui/live-region.js +1 -3
- package/dist/ui/loading-button.d.ts +3 -4
- package/dist/ui/loading-button.js +2 -3
- package/dist/ui/map/MapBase.d.ts +3 -4
- package/dist/ui/map/MapBase.js +1 -3
- package/dist/ui/map/MapGeoJsonOverlay.d.ts +3 -4
- package/dist/ui/map/MapGeoJsonOverlay.js +1 -3
- package/dist/ui/map/MapHeatmapH3.d.ts +3 -4
- package/dist/ui/map/MapHeatmapH3.js +1 -3
- package/dist/ui/map/MapMarkers.d.ts +3 -4
- package/dist/ui/map/MapMarkers.js +1 -3
- package/dist/ui/marketing/FeatureGrid.d.ts +3 -4
- package/dist/ui/marketing/FeatureGrid.js +1 -2
- package/dist/ui/marketing/Hero.d.ts +3 -4
- package/dist/ui/marketing/Hero.js +1 -2
- package/dist/ui/marketing/PricingTable.d.ts +3 -4
- package/dist/ui/marketing/PricingTable.js +1 -2
- package/dist/ui/menubar.d.ts +18 -19
- package/dist/ui/menubar.js +12 -14
- package/dist/ui/molecules/Autocomplete/index.d.ts +3 -4
- package/dist/ui/molecules/Autocomplete/index.js +1 -3
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +1 -2
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +1 -2
- package/dist/ui/molecules/SearchAndFilter/types.d.ts +1 -2
- package/dist/ui/molecules/SkeletonList.d.ts +3 -4
- package/dist/ui/molecules/SkeletonList.js +1 -2
- package/dist/ui/nav-layout.d.ts +9 -10
- package/dist/ui/nav-layout.js +2 -3
- package/dist/ui/navigation-menu.d.ts +12 -13
- package/dist/ui/navigation-menu.js +9 -10
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +3 -4
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +1 -3
- package/dist/ui/organisms/ListPage/ListPage.d.ts +3 -4
- package/dist/ui/organisms/ListPage/ListPage.js +1 -2
- package/dist/ui/organisms/ListPage/types.d.ts +1 -2
- package/dist/ui/page-header.d.ts +5 -6
- package/dist/ui/page-header.js +1 -2
- package/dist/ui/pagination.d.ts +7 -8
- package/dist/ui/pagination.js +8 -9
- package/dist/ui/popover.d.ts +6 -7
- package/dist/ui/popover.js +2 -4
- package/dist/ui/progress.d.ts +3 -4
- package/dist/ui/progress.js +2 -4
- package/dist/ui/radio-group.d.ts +4 -5
- package/dist/ui/radio-group.js +3 -5
- package/dist/ui/resizable.d.ts +5 -6
- package/dist/ui/resizable.js +3 -5
- package/dist/ui/route-announcer.d.ts +3 -4
- package/dist/ui/route-announcer.js +1 -3
- package/dist/ui/scroll-area.d.ts +4 -5
- package/dist/ui/scroll-area.js +3 -5
- package/dist/ui/section.d.ts +10 -11
- package/dist/ui/section.js +2 -3
- package/dist/ui/select.d.ts +12 -13
- package/dist/ui/select.js +8 -10
- package/dist/ui/separator.d.ts +3 -4
- package/dist/ui/separator.js +2 -4
- package/dist/ui/sheet.d.ts +10 -11
- package/dist/ui/sheet.js +7 -9
- package/dist/ui/sidebar.d.ts +29 -30
- package/dist/ui/sidebar.js +24 -26
- package/dist/ui/skeleton.d.ts +3 -4
- package/dist/ui/skeleton.js +2 -3
- package/dist/ui/skip-link.d.ts +3 -4
- package/dist/ui/skip-link.js +2 -3
- package/dist/ui/slider.d.ts +3 -4
- package/dist/ui/slider.js +2 -4
- package/dist/ui/sonner.d.ts +3 -4
- package/dist/ui/sonner.js +3 -5
- package/dist/ui/stack.d.ts +14 -15
- package/dist/ui/stack.js +4 -5
- package/dist/ui/stat-card-group.d.ts +3 -4
- package/dist/ui/stat-card-group.js +1 -2
- package/dist/ui/stepper.d.ts +5 -6
- package/dist/ui/stepper.js +1 -2
- package/dist/ui/switch.d.ts +6 -4
- package/dist/ui/switch.js +4 -5
- package/dist/ui/table.d.ts +10 -11
- package/dist/ui/table.js +9 -11
- package/dist/ui/tabs.d.ts +6 -7
- package/dist/ui/tabs.js +5 -7
- package/dist/ui/text.d.ts +3 -4
- package/dist/ui/text.js +2 -3
- package/dist/ui/textarea.d.ts +3 -4
- package/dist/ui/textarea.js +2 -3
- package/dist/ui/time-picker.d.ts +3 -4
- package/dist/ui/time-picker.js +1 -3
- package/dist/ui/toast.d.ts +3 -4
- package/dist/ui/toast.js +7 -9
- package/dist/ui/toaster.d.ts +3 -4
- package/dist/ui/toaster.js +2 -4
- package/dist/ui/toggle-group.d.ts +4 -5
- package/dist/ui/toggle-group.js +3 -5
- package/dist/ui/toggle.d.ts +5 -6
- package/dist/ui/toggle.js +2 -4
- package/dist/ui/tooltip.d.ts +6 -7
- package/dist/ui/tooltip.js +3 -5
- package/dist/ui/typography.d.ts +13 -14
- package/dist/ui/typography.js +12 -13
- package/dist/ui/use-media-query.d.ts +1 -2
- package/dist/ui/use-media-query.js +1 -2
- package/dist/ui/use-mobile.d.ts +1 -2
- package/dist/ui/use-mobile.js +1 -2
- package/dist/ui/use-reduced-motion.d.ts +1 -2
- package/dist/ui/use-reduced-motion.js +1 -2
- package/dist/ui/use-toast.d.ts +1 -2
- package/dist/ui/use-toast.js +1 -3
- package/dist/ui/useListState.d.ts +1 -2
- package/dist/ui/useListState.js +1 -2
- package/dist/ui/usecases/UseCaseCard.d.ts +3 -4
- package/dist/ui/usecases/UseCaseCard.js +1 -2
- package/dist/ui/usecases/UserStoryCard.d.ts +3 -4
- package/dist/ui/usecases/UserStoryCard.js +1 -2
- package/dist/ui/utils.d.ts +1 -2
- package/dist/ui/utils.js +1 -2
- package/dist/ui/visually-hidden.d.ts +1 -2
- package/dist/ui/visually-hidden.js +2 -3
- package/package.json +17 -14
- package/dist/node_modules/sonner/dist/index.js.map +0 -1
- package/dist/ui/accordion.d.ts.map +0 -1
- package/dist/ui/accordion.js.map +0 -1
- package/dist/ui/alert-dialog.d.ts.map +0 -1
- package/dist/ui/alert-dialog.js.map +0 -1
- package/dist/ui/alert.d.ts.map +0 -1
- package/dist/ui/alert.js.map +0 -1
- package/dist/ui/aspect-ratio.d.ts.map +0 -1
- package/dist/ui/aspect-ratio.js.map +0 -1
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts.map +0 -1
- package/dist/ui/atoms/FilterSelect/FilterSelect.js.map +0 -1
- package/dist/ui/atoms/FilterSelect/types.d.ts.map +0 -1
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts.map +0 -1
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js.map +0 -1
- package/dist/ui/atoms/Pagination/Pagination.d.ts.map +0 -1
- package/dist/ui/atoms/Pagination/Pagination.js.map +0 -1
- package/dist/ui/atoms/Pagination/types.d.ts.map +0 -1
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts.map +0 -1
- package/dist/ui/atoms/SearchInput/SearchInput.js.map +0 -1
- package/dist/ui/atoms/SearchInput/types.d.ts.map +0 -1
- package/dist/ui/avatar.d.ts.map +0 -1
- package/dist/ui/avatar.js.map +0 -1
- package/dist/ui/badge.d.ts.map +0 -1
- package/dist/ui/badge.js.map +0 -1
- package/dist/ui/breadcrumb.d.ts.map +0 -1
- package/dist/ui/breadcrumb.js.map +0 -1
- package/dist/ui/button.d.ts.map +0 -1
- package/dist/ui/button.js.map +0 -1
- package/dist/ui/calendar.d.ts.map +0 -1
- package/dist/ui/calendar.js.map +0 -1
- package/dist/ui/card.d.ts.map +0 -1
- package/dist/ui/card.js.map +0 -1
- package/dist/ui/carousel.d.ts.map +0 -1
- package/dist/ui/carousel.js.map +0 -1
- package/dist/ui/checkbox.d.ts.map +0 -1
- package/dist/ui/checkbox.js.map +0 -1
- package/dist/ui/collapsible.d.ts.map +0 -1
- package/dist/ui/collapsible.js.map +0 -1
- package/dist/ui/command.d.ts.map +0 -1
- package/dist/ui/command.js.map +0 -1
- package/dist/ui/confirm-dialog.d.ts.map +0 -1
- package/dist/ui/confirm-dialog.js.map +0 -1
- package/dist/ui/context-menu.d.ts.map +0 -1
- package/dist/ui/context-menu.js.map +0 -1
- package/dist/ui/cta.d.ts.map +0 -1
- package/dist/ui/cta.js.map +0 -1
- package/dist/ui/date-picker.d.ts.map +0 -1
- package/dist/ui/date-picker.js.map +0 -1
- package/dist/ui/date-range-picker.d.ts.map +0 -1
- package/dist/ui/date-range-picker.js.map +0 -1
- package/dist/ui/datetime-picker.d.ts.map +0 -1
- package/dist/ui/datetime-picker.js.map +0 -1
- package/dist/ui/dialog.d.ts.map +0 -1
- package/dist/ui/dialog.js.map +0 -1
- package/dist/ui/drawer.d.ts.map +0 -1
- package/dist/ui/drawer.js.map +0 -1
- package/dist/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/ui/dropdown-menu.js.map +0 -1
- package/dist/ui/empty-state.d.ts.map +0 -1
- package/dist/ui/empty-state.js.map +0 -1
- package/dist/ui/empty.d.ts.map +0 -1
- package/dist/ui/empty.js.map +0 -1
- package/dist/ui/field.d.ts.map +0 -1
- package/dist/ui/field.js.map +0 -1
- package/dist/ui/focus-on-route-change.d.ts.map +0 -1
- package/dist/ui/focus-on-route-change.js.map +0 -1
- package/dist/ui/form.d.ts.map +0 -1
- package/dist/ui/form.js.map +0 -1
- package/dist/ui/hover-card.d.ts.map +0 -1
- package/dist/ui/hover-card.js.map +0 -1
- package/dist/ui/input-group.d.ts.map +0 -1
- package/dist/ui/input-group.js.map +0 -1
- package/dist/ui/input-otp.d.ts.map +0 -1
- package/dist/ui/input-otp.js.map +0 -1
- package/dist/ui/input.d.ts.map +0 -1
- package/dist/ui/input.js.map +0 -1
- package/dist/ui/label.d.ts.map +0 -1
- package/dist/ui/label.js.map +0 -1
- package/dist/ui/link.d.ts.map +0 -1
- package/dist/ui/link.js.map +0 -1
- package/dist/ui/live-region.d.ts.map +0 -1
- package/dist/ui/live-region.js.map +0 -1
- package/dist/ui/loading-button.d.ts.map +0 -1
- package/dist/ui/loading-button.js.map +0 -1
- package/dist/ui/map/MapBase.d.ts.map +0 -1
- package/dist/ui/map/MapBase.js.map +0 -1
- package/dist/ui/map/MapGeoJsonOverlay.d.ts.map +0 -1
- package/dist/ui/map/MapGeoJsonOverlay.js.map +0 -1
- package/dist/ui/map/MapHeatmapH3.d.ts.map +0 -1
- package/dist/ui/map/MapHeatmapH3.js.map +0 -1
- package/dist/ui/map/MapMarkers.d.ts.map +0 -1
- package/dist/ui/map/MapMarkers.js.map +0 -1
- package/dist/ui/marketing/FeatureGrid.d.ts.map +0 -1
- package/dist/ui/marketing/FeatureGrid.js.map +0 -1
- package/dist/ui/marketing/Hero.d.ts.map +0 -1
- package/dist/ui/marketing/Hero.js.map +0 -1
- package/dist/ui/marketing/PricingTable.d.ts.map +0 -1
- package/dist/ui/marketing/PricingTable.js.map +0 -1
- package/dist/ui/menubar.d.ts.map +0 -1
- package/dist/ui/menubar.js.map +0 -1
- package/dist/ui/molecules/Autocomplete/index.d.ts.map +0 -1
- package/dist/ui/molecules/Autocomplete/index.js.map +0 -1
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts.map +0 -1
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js.map +0 -1
- package/dist/ui/molecules/SearchAndFilter/types.d.ts.map +0 -1
- package/dist/ui/molecules/SkeletonList.d.ts.map +0 -1
- package/dist/ui/molecules/SkeletonList.js.map +0 -1
- package/dist/ui/nav-layout.d.ts.map +0 -1
- package/dist/ui/nav-layout.js.map +0 -1
- package/dist/ui/navigation-menu.d.ts.map +0 -1
- package/dist/ui/navigation-menu.js.map +0 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts.map +0 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +0 -1
- package/dist/ui/organisms/ListPage/ListPage.d.ts.map +0 -1
- package/dist/ui/organisms/ListPage/ListPage.js.map +0 -1
- package/dist/ui/organisms/ListPage/types.d.ts.map +0 -1
- package/dist/ui/page-header.d.ts.map +0 -1
- package/dist/ui/page-header.js.map +0 -1
- package/dist/ui/pagination.d.ts.map +0 -1
- package/dist/ui/pagination.js.map +0 -1
- package/dist/ui/popover.d.ts.map +0 -1
- package/dist/ui/popover.js.map +0 -1
- package/dist/ui/progress.d.ts.map +0 -1
- package/dist/ui/progress.js.map +0 -1
- package/dist/ui/radio-group.d.ts.map +0 -1
- package/dist/ui/radio-group.js.map +0 -1
- package/dist/ui/resizable.d.ts.map +0 -1
- package/dist/ui/resizable.js.map +0 -1
- package/dist/ui/route-announcer.d.ts.map +0 -1
- package/dist/ui/route-announcer.js.map +0 -1
- package/dist/ui/scroll-area.d.ts.map +0 -1
- package/dist/ui/scroll-area.js.map +0 -1
- package/dist/ui/section.d.ts.map +0 -1
- package/dist/ui/section.js.map +0 -1
- package/dist/ui/select.d.ts.map +0 -1
- package/dist/ui/select.js.map +0 -1
- package/dist/ui/separator.d.ts.map +0 -1
- package/dist/ui/separator.js.map +0 -1
- package/dist/ui/sheet.d.ts.map +0 -1
- package/dist/ui/sheet.js.map +0 -1
- package/dist/ui/sidebar.d.ts.map +0 -1
- package/dist/ui/sidebar.js.map +0 -1
- package/dist/ui/skeleton.d.ts.map +0 -1
- package/dist/ui/skeleton.js.map +0 -1
- package/dist/ui/skip-link.d.ts.map +0 -1
- package/dist/ui/skip-link.js.map +0 -1
- package/dist/ui/slider.d.ts.map +0 -1
- package/dist/ui/slider.js.map +0 -1
- package/dist/ui/sonner.d.ts.map +0 -1
- package/dist/ui/sonner.js.map +0 -1
- package/dist/ui/stack.d.ts.map +0 -1
- package/dist/ui/stack.js.map +0 -1
- package/dist/ui/stat-card-group.d.ts.map +0 -1
- package/dist/ui/stat-card-group.js.map +0 -1
- package/dist/ui/stepper.d.ts.map +0 -1
- package/dist/ui/stepper.js.map +0 -1
- package/dist/ui/switch.d.ts.map +0 -1
- package/dist/ui/switch.js.map +0 -1
- package/dist/ui/table.d.ts.map +0 -1
- package/dist/ui/table.js.map +0 -1
- package/dist/ui/tabs.d.ts.map +0 -1
- package/dist/ui/tabs.js.map +0 -1
- package/dist/ui/text.d.ts.map +0 -1
- package/dist/ui/text.js.map +0 -1
- package/dist/ui/textarea.d.ts.map +0 -1
- package/dist/ui/textarea.js.map +0 -1
- package/dist/ui/time-picker.d.ts.map +0 -1
- package/dist/ui/time-picker.js.map +0 -1
- package/dist/ui/toast.d.ts.map +0 -1
- package/dist/ui/toast.js.map +0 -1
- package/dist/ui/toaster.d.ts.map +0 -1
- package/dist/ui/toaster.js.map +0 -1
- package/dist/ui/toggle-group.d.ts.map +0 -1
- package/dist/ui/toggle-group.js.map +0 -1
- package/dist/ui/toggle.d.ts.map +0 -1
- package/dist/ui/toggle.js.map +0 -1
- package/dist/ui/tooltip.d.ts.map +0 -1
- package/dist/ui/tooltip.js.map +0 -1
- package/dist/ui/typography.d.ts.map +0 -1
- package/dist/ui/typography.js.map +0 -1
- package/dist/ui/use-media-query.d.ts.map +0 -1
- package/dist/ui/use-media-query.js.map +0 -1
- package/dist/ui/use-mobile.d.ts.map +0 -1
- package/dist/ui/use-mobile.js.map +0 -1
- package/dist/ui/use-reduced-motion.d.ts.map +0 -1
- package/dist/ui/use-reduced-motion.js.map +0 -1
- package/dist/ui/use-toast.d.ts.map +0 -1
- package/dist/ui/use-toast.js.map +0 -1
- package/dist/ui/useListState.d.ts.map +0 -1
- package/dist/ui/useListState.js.map +0 -1
- package/dist/ui/usecases/UseCaseCard.d.ts.map +0 -1
- package/dist/ui/usecases/UseCaseCard.js.map +0 -1
- package/dist/ui/usecases/UserStoryCard.d.ts.map +0 -1
- package/dist/ui/usecases/UserStoryCard.js.map +0 -1
- package/dist/ui/utils.d.ts.map +0 -1
- package/dist/ui/utils.js.map +0 -1
- package/dist/ui/visually-hidden.d.ts.map +0 -1
- package/dist/ui/visually-hidden.js.map +0 -1
package/dist/ui/sidebar.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
import { cn } from "./utils.js";
|
|
5
4
|
import { Button } from "./button.js";
|
|
6
5
|
import { Input } from "./input.js";
|
|
@@ -28,7 +27,7 @@ function useSidebar() {
|
|
|
28
27
|
if (!context) throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
29
28
|
return context;
|
|
30
29
|
}
|
|
31
|
-
function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, className, style, children
|
|
30
|
+
function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }) {
|
|
32
31
|
const isMobile = useIsMobile();
|
|
33
32
|
const [openMobile, setOpenMobile] = React$1.useState(false);
|
|
34
33
|
const [_open, _setOpen] = React$1.useState(defaultOpen);
|
|
@@ -92,7 +91,7 @@ function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: set
|
|
|
92
91
|
})
|
|
93
92
|
});
|
|
94
93
|
}
|
|
95
|
-
function Sidebar({ side = "left", variant = "sidebar", collapsible = "offcanvas", className, children
|
|
94
|
+
function Sidebar({ side = "left", variant = "sidebar", collapsible = "offcanvas", className, children, ...props }) {
|
|
96
95
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
97
96
|
if (collapsible === "none") return /* @__PURE__ */ jsx("div", {
|
|
98
97
|
"data-slot": "sidebar",
|
|
@@ -143,7 +142,7 @@ function Sidebar({ side = "left", variant = "sidebar", collapsible = "offcanvas"
|
|
|
143
142
|
})]
|
|
144
143
|
});
|
|
145
144
|
}
|
|
146
|
-
function SidebarTrigger({ className, onClick
|
|
145
|
+
function SidebarTrigger({ className, onClick, ...props }) {
|
|
147
146
|
const { toggleSidebar } = useSidebar();
|
|
148
147
|
return /* @__PURE__ */ jsxs(Button, {
|
|
149
148
|
"data-sidebar": "trigger",
|
|
@@ -162,7 +161,7 @@ function SidebarTrigger({ className, onClick,...props }) {
|
|
|
162
161
|
})]
|
|
163
162
|
});
|
|
164
163
|
}
|
|
165
|
-
function SidebarRail({ className
|
|
164
|
+
function SidebarRail({ className, ...props }) {
|
|
166
165
|
const { toggleSidebar } = useSidebar();
|
|
167
166
|
return /* @__PURE__ */ jsx("button", {
|
|
168
167
|
"data-sidebar": "rail",
|
|
@@ -175,14 +174,14 @@ function SidebarRail({ className,...props }) {
|
|
|
175
174
|
...props
|
|
176
175
|
});
|
|
177
176
|
}
|
|
178
|
-
function SidebarInset({ className
|
|
177
|
+
function SidebarInset({ className, ...props }) {
|
|
179
178
|
return /* @__PURE__ */ jsx("main", {
|
|
180
179
|
"data-slot": "sidebar-inset",
|
|
181
180
|
className: cn("bg-background relative flex w-full flex-1 flex-col", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", className),
|
|
182
181
|
...props
|
|
183
182
|
});
|
|
184
183
|
}
|
|
185
|
-
function SidebarInput({ className
|
|
184
|
+
function SidebarInput({ className, ...props }) {
|
|
186
185
|
return /* @__PURE__ */ jsx(Input, {
|
|
187
186
|
"data-slot": "sidebar-input",
|
|
188
187
|
"data-sidebar": "input",
|
|
@@ -190,7 +189,7 @@ function SidebarInput({ className,...props }) {
|
|
|
190
189
|
...props
|
|
191
190
|
});
|
|
192
191
|
}
|
|
193
|
-
function SidebarHeader({ className
|
|
192
|
+
function SidebarHeader({ className, ...props }) {
|
|
194
193
|
return /* @__PURE__ */ jsx("div", {
|
|
195
194
|
"data-slot": "sidebar-header",
|
|
196
195
|
"data-sidebar": "header",
|
|
@@ -198,7 +197,7 @@ function SidebarHeader({ className,...props }) {
|
|
|
198
197
|
...props
|
|
199
198
|
});
|
|
200
199
|
}
|
|
201
|
-
function SidebarFooter({ className
|
|
200
|
+
function SidebarFooter({ className, ...props }) {
|
|
202
201
|
return /* @__PURE__ */ jsx("div", {
|
|
203
202
|
"data-slot": "sidebar-footer",
|
|
204
203
|
"data-sidebar": "footer",
|
|
@@ -206,7 +205,7 @@ function SidebarFooter({ className,...props }) {
|
|
|
206
205
|
...props
|
|
207
206
|
});
|
|
208
207
|
}
|
|
209
|
-
function SidebarSeparator({ className
|
|
208
|
+
function SidebarSeparator({ className, ...props }) {
|
|
210
209
|
return /* @__PURE__ */ jsx(Separator, {
|
|
211
210
|
"data-slot": "sidebar-separator",
|
|
212
211
|
"data-sidebar": "separator",
|
|
@@ -214,7 +213,7 @@ function SidebarSeparator({ className,...props }) {
|
|
|
214
213
|
...props
|
|
215
214
|
});
|
|
216
215
|
}
|
|
217
|
-
function SidebarContent({ className
|
|
216
|
+
function SidebarContent({ className, ...props }) {
|
|
218
217
|
return /* @__PURE__ */ jsx("div", {
|
|
219
218
|
"data-slot": "sidebar-content",
|
|
220
219
|
"data-sidebar": "content",
|
|
@@ -222,7 +221,7 @@ function SidebarContent({ className,...props }) {
|
|
|
222
221
|
...props
|
|
223
222
|
});
|
|
224
223
|
}
|
|
225
|
-
function SidebarGroup({ className
|
|
224
|
+
function SidebarGroup({ className, ...props }) {
|
|
226
225
|
return /* @__PURE__ */ jsx("div", {
|
|
227
226
|
"data-slot": "sidebar-group",
|
|
228
227
|
"data-sidebar": "group",
|
|
@@ -230,7 +229,7 @@ function SidebarGroup({ className,...props }) {
|
|
|
230
229
|
...props
|
|
231
230
|
});
|
|
232
231
|
}
|
|
233
|
-
function SidebarGroupLabel({ className, asChild = false
|
|
232
|
+
function SidebarGroupLabel({ className, asChild = false, ...props }) {
|
|
234
233
|
return /* @__PURE__ */ jsx(asChild ? Slot : "div", {
|
|
235
234
|
"data-slot": "sidebar-group-label",
|
|
236
235
|
"data-sidebar": "group-label",
|
|
@@ -238,7 +237,7 @@ function SidebarGroupLabel({ className, asChild = false,...props }) {
|
|
|
238
237
|
...props
|
|
239
238
|
});
|
|
240
239
|
}
|
|
241
|
-
function SidebarGroupAction({ className, asChild = false
|
|
240
|
+
function SidebarGroupAction({ className, asChild = false, ...props }) {
|
|
242
241
|
return /* @__PURE__ */ jsx(asChild ? Slot : "button", {
|
|
243
242
|
"data-slot": "sidebar-group-action",
|
|
244
243
|
"data-sidebar": "group-action",
|
|
@@ -246,7 +245,7 @@ function SidebarGroupAction({ className, asChild = false,...props }) {
|
|
|
246
245
|
...props
|
|
247
246
|
});
|
|
248
247
|
}
|
|
249
|
-
function SidebarGroupContent({ className
|
|
248
|
+
function SidebarGroupContent({ className, ...props }) {
|
|
250
249
|
return /* @__PURE__ */ jsx("div", {
|
|
251
250
|
"data-slot": "sidebar-group-content",
|
|
252
251
|
"data-sidebar": "group-content",
|
|
@@ -254,7 +253,7 @@ function SidebarGroupContent({ className,...props }) {
|
|
|
254
253
|
...props
|
|
255
254
|
});
|
|
256
255
|
}
|
|
257
|
-
function SidebarMenu({ className
|
|
256
|
+
function SidebarMenu({ className, ...props }) {
|
|
258
257
|
return /* @__PURE__ */ jsx("ul", {
|
|
259
258
|
"data-slot": "sidebar-menu",
|
|
260
259
|
"data-sidebar": "menu",
|
|
@@ -262,7 +261,7 @@ function SidebarMenu({ className,...props }) {
|
|
|
262
261
|
...props
|
|
263
262
|
});
|
|
264
263
|
}
|
|
265
|
-
function SidebarMenuItem({ className
|
|
264
|
+
function SidebarMenuItem({ className, ...props }) {
|
|
266
265
|
return /* @__PURE__ */ jsx("li", {
|
|
267
266
|
"data-slot": "sidebar-menu-item",
|
|
268
267
|
"data-sidebar": "menu-item",
|
|
@@ -287,7 +286,7 @@ const sidebarMenuButtonVariants = cva("peer/menu-button flex w-full items-center
|
|
|
287
286
|
size: "default"
|
|
288
287
|
}
|
|
289
288
|
});
|
|
290
|
-
function SidebarMenuButton({ asChild = false, isActive = false, variant = "default", size = "default", tooltip, className
|
|
289
|
+
function SidebarMenuButton({ asChild = false, isActive = false, variant = "default", size = "default", tooltip, className, ...props }) {
|
|
291
290
|
const Comp = asChild ? Slot : "button";
|
|
292
291
|
const { isMobile, state } = useSidebar();
|
|
293
292
|
const button = /* @__PURE__ */ jsx(Comp, {
|
|
@@ -313,7 +312,7 @@ function SidebarMenuButton({ asChild = false, isActive = false, variant = "defau
|
|
|
313
312
|
...tooltip
|
|
314
313
|
})] });
|
|
315
314
|
}
|
|
316
|
-
function SidebarMenuAction({ className, asChild = false, showOnHover = false
|
|
315
|
+
function SidebarMenuAction({ className, asChild = false, showOnHover = false, ...props }) {
|
|
317
316
|
return /* @__PURE__ */ jsx(asChild ? Slot : "button", {
|
|
318
317
|
"data-slot": "sidebar-menu-action",
|
|
319
318
|
"data-sidebar": "menu-action",
|
|
@@ -321,7 +320,7 @@ function SidebarMenuAction({ className, asChild = false, showOnHover = false,...
|
|
|
321
320
|
...props
|
|
322
321
|
});
|
|
323
322
|
}
|
|
324
|
-
function SidebarMenuBadge({ className
|
|
323
|
+
function SidebarMenuBadge({ className, ...props }) {
|
|
325
324
|
return /* @__PURE__ */ jsx("div", {
|
|
326
325
|
"data-slot": "sidebar-menu-badge",
|
|
327
326
|
"data-sidebar": "menu-badge",
|
|
@@ -329,7 +328,7 @@ function SidebarMenuBadge({ className,...props }) {
|
|
|
329
328
|
...props
|
|
330
329
|
});
|
|
331
330
|
}
|
|
332
|
-
function SidebarMenuSkeleton({ className, showIcon = false
|
|
331
|
+
function SidebarMenuSkeleton({ className, showIcon = false, ...props }) {
|
|
333
332
|
const width = React$1.useMemo(() => {
|
|
334
333
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
335
334
|
}, []);
|
|
@@ -348,7 +347,7 @@ function SidebarMenuSkeleton({ className, showIcon = false,...props }) {
|
|
|
348
347
|
})]
|
|
349
348
|
});
|
|
350
349
|
}
|
|
351
|
-
function SidebarMenuSub({ className
|
|
350
|
+
function SidebarMenuSub({ className, ...props }) {
|
|
352
351
|
return /* @__PURE__ */ jsx("ul", {
|
|
353
352
|
"data-slot": "sidebar-menu-sub",
|
|
354
353
|
"data-sidebar": "menu-sub",
|
|
@@ -356,7 +355,7 @@ function SidebarMenuSub({ className,...props }) {
|
|
|
356
355
|
...props
|
|
357
356
|
});
|
|
358
357
|
}
|
|
359
|
-
function SidebarMenuSubItem({ className
|
|
358
|
+
function SidebarMenuSubItem({ className, ...props }) {
|
|
360
359
|
return /* @__PURE__ */ jsx("li", {
|
|
361
360
|
"data-slot": "sidebar-menu-sub-item",
|
|
362
361
|
"data-sidebar": "menu-sub-item",
|
|
@@ -364,7 +363,7 @@ function SidebarMenuSubItem({ className,...props }) {
|
|
|
364
363
|
...props
|
|
365
364
|
});
|
|
366
365
|
}
|
|
367
|
-
function SidebarMenuSubButton({ asChild = false, size = "md", isActive = false, className
|
|
366
|
+
function SidebarMenuSubButton({ asChild = false, size = "md", isActive = false, className, ...props }) {
|
|
368
367
|
return /* @__PURE__ */ jsx(asChild ? Slot : "a", {
|
|
369
368
|
"data-slot": "sidebar-menu-sub-button",
|
|
370
369
|
"data-sidebar": "menu-sub-button",
|
|
@@ -376,5 +375,4 @@ function SidebarMenuSubButton({ asChild = false, size = "md", isActive = false,
|
|
|
376
375
|
}
|
|
377
376
|
|
|
378
377
|
//#endregion
|
|
379
|
-
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };
|
|
380
|
-
//# sourceMappingURL=sidebar.js.map
|
|
378
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };
|
package/dist/ui/skeleton.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime239 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region ui/skeleton.d.ts
|
|
4
4
|
declare function Skeleton({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<'div'>):
|
|
7
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime239.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { Skeleton };
|
|
10
|
-
//# sourceMappingURL=skeleton.d.ts.map
|
|
9
|
+
export { Skeleton };
|
package/dist/ui/skeleton.js
CHANGED
|
@@ -2,7 +2,7 @@ import { cn } from "./utils.js";
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region ui/skeleton.tsx
|
|
5
|
-
function Skeleton({ className
|
|
5
|
+
function Skeleton({ className, ...props }) {
|
|
6
6
|
return /* @__PURE__ */ jsx("div", {
|
|
7
7
|
"data-slot": "skeleton",
|
|
8
8
|
className: cn("bg-accent animate-pulse rounded-md", className),
|
|
@@ -11,5 +11,4 @@ function Skeleton({ className,...props }) {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
14
|
-
export { Skeleton };
|
|
15
|
-
//# sourceMappingURL=skeleton.js.map
|
|
14
|
+
export { Skeleton };
|
package/dist/ui/skip-link.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime240 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region ui/skip-link.d.ts
|
|
5
5
|
interface SkipLinkProps extends React$1.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
@@ -11,7 +11,6 @@ declare function SkipLink({
|
|
|
11
11
|
children,
|
|
12
12
|
className,
|
|
13
13
|
...props
|
|
14
|
-
}: SkipLinkProps):
|
|
14
|
+
}: SkipLinkProps): react_jsx_runtime240.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { SkipLink };
|
|
17
|
-
//# sourceMappingURL=skip-link.d.ts.map
|
|
16
|
+
export { SkipLink };
|
package/dist/ui/skip-link.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
|
|
4
4
|
//#region ui/skip-link.tsx
|
|
5
5
|
const defaultClasses = "sr-only focus:not-sr-only focus-visible:outline-solid focus-visible:ring-4 focus-visible:ring-offset-2 fixed top-2 left-2 z-100 rounded-xs bg-background px-3 py-2 text-sm shadow-2xs";
|
|
6
|
-
function SkipLink({ targetId = "main", children, className
|
|
6
|
+
function SkipLink({ targetId = "main", children, className, ...props }) {
|
|
7
7
|
return /* @__PURE__ */ jsx("a", {
|
|
8
8
|
className: [defaultClasses, className].filter(Boolean).join(" "),
|
|
9
9
|
href: `#${targetId}`,
|
|
@@ -13,5 +13,4 @@ function SkipLink({ targetId = "main", children, className,...props }) {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
16
|
-
export { SkipLink };
|
|
17
|
-
//# sourceMappingURL=skip-link.js.map
|
|
16
|
+
export { SkipLink };
|
package/dist/ui/slider.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime241 from "react/jsx-runtime";
|
|
3
3
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
4
4
|
|
|
5
5
|
//#region ui/slider.d.ts
|
|
@@ -10,7 +10,6 @@ declare function Slider({
|
|
|
10
10
|
min,
|
|
11
11
|
max,
|
|
12
12
|
...props
|
|
13
|
-
}: React$1.ComponentProps<typeof SliderPrimitive.Root>):
|
|
13
|
+
}: React$1.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime241.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { Slider };
|
|
16
|
-
//# sourceMappingURL=slider.d.ts.map
|
|
15
|
+
export { Slider };
|
package/dist/ui/slider.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
import { cn } from "./utils.js";
|
|
5
4
|
import * as React$1 from "react";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
8
7
|
|
|
9
8
|
//#region ui/slider.tsx
|
|
10
|
-
function Slider({ className, defaultValue, value, min = 0, max = 100
|
|
9
|
+
function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }) {
|
|
11
10
|
const _values = React$1.useMemo(() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max], [
|
|
12
11
|
value,
|
|
13
12
|
defaultValue,
|
|
@@ -37,5 +36,4 @@ function Slider({ className, defaultValue, value, min = 0, max = 100,...props })
|
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
//#endregion
|
|
40
|
-
export { Slider };
|
|
41
|
-
//# sourceMappingURL=slider.js.map
|
|
39
|
+
export { Slider };
|
package/dist/ui/sonner.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime242 from "react/jsx-runtime";
|
|
2
2
|
import { ToasterProps } from "sonner";
|
|
3
3
|
|
|
4
4
|
//#region ui/sonner.d.ts
|
|
5
5
|
declare const Toaster: ({
|
|
6
6
|
...props
|
|
7
|
-
}: ToasterProps) =>
|
|
7
|
+
}: ToasterProps) => react_jsx_runtime242.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { Toaster };
|
|
10
|
-
//# sourceMappingURL=sonner.d.ts.map
|
|
9
|
+
export { Toaster };
|
package/dist/ui/sonner.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import { Toaster as Toaster$1 } from "../node_modules/sonner/dist/index.js";
|
|
3
|
+
import { $e } from "../node_modules/sonner/dist/index.js";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import { useTheme } from "next-themes";
|
|
7
6
|
|
|
8
7
|
//#region ui/sonner.tsx
|
|
9
8
|
const Toaster = ({ ...props }) => {
|
|
10
9
|
const { theme = "system" } = useTheme();
|
|
11
|
-
return /* @__PURE__ */ jsx(
|
|
10
|
+
return /* @__PURE__ */ jsx($e, {
|
|
12
11
|
theme,
|
|
13
12
|
className: "toaster group",
|
|
14
13
|
style: {
|
|
@@ -21,5 +20,4 @@ const Toaster = ({ ...props }) => {
|
|
|
21
20
|
};
|
|
22
21
|
|
|
23
22
|
//#endregion
|
|
24
|
-
export { Toaster };
|
|
25
|
-
//# sourceMappingURL=sonner.js.map
|
|
23
|
+
export { Toaster };
|
package/dist/ui/stack.d.ts
CHANGED
|
@@ -1,48 +1,47 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as
|
|
3
|
+
import * as class_variance_authority_types14 from "class-variance-authority/types";
|
|
4
4
|
|
|
5
5
|
//#region ui/stack.d.ts
|
|
6
6
|
declare const vStackVariants: (props?: ({
|
|
7
|
-
gap?: "
|
|
7
|
+
gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
|
|
8
8
|
align?: "center" | "start" | "end" | "stretch" | null | undefined;
|
|
9
9
|
justify?: "center" | "start" | "end" | "between" | "around" | "evenly" | null | undefined;
|
|
10
|
-
} &
|
|
10
|
+
} & class_variance_authority_types14.ClassProp) | undefined) => string;
|
|
11
11
|
declare const VStack: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
12
|
-
gap?: "
|
|
12
|
+
gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
|
|
13
13
|
align?: "center" | "start" | "end" | "stretch" | null | undefined;
|
|
14
14
|
justify?: "center" | "start" | "end" | "between" | "around" | "evenly" | null | undefined;
|
|
15
|
-
} &
|
|
15
|
+
} & class_variance_authority_types14.ClassProp) | undefined) => string> & {
|
|
16
16
|
as?: "div" | "section" | "nav" | "main" | "header" | "footer" | "article" | "aside";
|
|
17
17
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
18
18
|
declare const hStackVariants: (props?: ({
|
|
19
|
-
gap?: "
|
|
19
|
+
gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
|
|
20
20
|
align?: "center" | "start" | "end" | "stretch" | "baseline" | null | undefined;
|
|
21
21
|
justify?: "center" | "start" | "end" | "between" | "around" | "evenly" | null | undefined;
|
|
22
22
|
wrap?: "wrap" | "nowrap" | "wrapReverse" | null | undefined;
|
|
23
|
-
} &
|
|
23
|
+
} & class_variance_authority_types14.ClassProp) | undefined) => string;
|
|
24
24
|
declare const HStack: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
25
|
-
gap?: "
|
|
25
|
+
gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
|
|
26
26
|
align?: "center" | "start" | "end" | "stretch" | "baseline" | null | undefined;
|
|
27
27
|
justify?: "center" | "start" | "end" | "between" | "around" | "evenly" | null | undefined;
|
|
28
28
|
wrap?: "wrap" | "nowrap" | "wrapReverse" | null | undefined;
|
|
29
|
-
} &
|
|
29
|
+
} & class_variance_authority_types14.ClassProp) | undefined) => string> & {
|
|
30
30
|
as?: "div" | "section" | "nav" | "header" | "footer" | "article" | "aside";
|
|
31
31
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
32
32
|
declare const boxVariants: (props?: ({
|
|
33
|
-
gap?: "
|
|
33
|
+
gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
|
|
34
34
|
align?: "center" | "start" | "end" | "stretch" | "baseline" | null | undefined;
|
|
35
35
|
justify?: "center" | "start" | "end" | "between" | "around" | "evenly" | null | undefined;
|
|
36
36
|
wrap?: "wrap" | "nowrap" | "wrapReverse" | null | undefined;
|
|
37
|
-
} &
|
|
37
|
+
} & class_variance_authority_types14.ClassProp) | undefined) => string;
|
|
38
38
|
declare const Box: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
39
|
-
gap?: "
|
|
39
|
+
gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
|
|
40
40
|
align?: "center" | "start" | "end" | "stretch" | "baseline" | null | undefined;
|
|
41
41
|
justify?: "center" | "start" | "end" | "between" | "around" | "evenly" | null | undefined;
|
|
42
42
|
wrap?: "wrap" | "nowrap" | "wrapReverse" | null | undefined;
|
|
43
|
-
} &
|
|
43
|
+
} & class_variance_authority_types14.ClassProp) | undefined) => string> & {
|
|
44
44
|
as?: "div" | "section" | "nav" | "header" | "footer" | "article" | "aside";
|
|
45
45
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
46
46
|
//#endregion
|
|
47
|
-
export { Box, HStack, VStack, boxVariants, hStackVariants, vStackVariants };
|
|
48
|
-
//# sourceMappingURL=stack.d.ts.map
|
|
47
|
+
export { Box, HStack, VStack, boxVariants, hStackVariants, vStackVariants };
|
package/dist/ui/stack.js
CHANGED
|
@@ -36,7 +36,7 @@ const vStackVariants = cva("flex flex-col", {
|
|
|
36
36
|
justify: "start"
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
-
const VStack = React$1.forwardRef(({ className, gap, align, justify, as = "div"
|
|
39
|
+
const VStack = React$1.forwardRef(({ className, gap, align, justify, as = "div", ...props }, ref) => {
|
|
40
40
|
return /* @__PURE__ */ jsx(as, {
|
|
41
41
|
ref,
|
|
42
42
|
className: cn(vStackVariants({
|
|
@@ -87,7 +87,7 @@ const hStackVariants = cva("flex flex-row", {
|
|
|
87
87
|
wrap: "wrap"
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
|
-
const HStack = React$1.forwardRef(({ className, gap, align, justify, wrap, as = "div"
|
|
90
|
+
const HStack = React$1.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
|
|
91
91
|
return /* @__PURE__ */ jsx(as, {
|
|
92
92
|
ref,
|
|
93
93
|
className: cn(hStackVariants({
|
|
@@ -139,7 +139,7 @@ const boxVariants = cva("flex flex-row", {
|
|
|
139
139
|
wrap: "nowrap"
|
|
140
140
|
}
|
|
141
141
|
});
|
|
142
|
-
const Box = React$1.forwardRef(({ className, gap, align, justify, wrap, as = "div"
|
|
142
|
+
const Box = React$1.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
|
|
143
143
|
return /* @__PURE__ */ jsx(as, {
|
|
144
144
|
ref,
|
|
145
145
|
className: cn(boxVariants({
|
|
@@ -154,5 +154,4 @@ const Box = React$1.forwardRef(({ className, gap, align, justify, wrap, as = "di
|
|
|
154
154
|
Box.displayName = "Box";
|
|
155
155
|
|
|
156
156
|
//#endregion
|
|
157
|
-
export { Box, HStack, VStack, boxVariants, hStackVariants, vStackVariants };
|
|
158
|
-
//# sourceMappingURL=stack.js.map
|
|
157
|
+
export { Box, HStack, VStack, boxVariants, hStackVariants, vStackVariants };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime243 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region ui/stat-card-group.d.ts
|
|
5
5
|
interface StatItem {
|
|
@@ -13,7 +13,6 @@ declare function StatCardGroup({
|
|
|
13
13
|
}: {
|
|
14
14
|
items: StatItem[];
|
|
15
15
|
className?: string;
|
|
16
|
-
}):
|
|
16
|
+
}): react_jsx_runtime243.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
|
-
export { StatCardGroup, StatItem };
|
|
19
|
-
//# sourceMappingURL=stat-card-group.d.ts.map
|
|
18
|
+
export { StatCardGroup, StatItem };
|
package/dist/ui/stepper.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime244 from "react/jsx-runtime";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as
|
|
3
|
+
import * as class_variance_authority_types20 from "class-variance-authority/types";
|
|
4
4
|
|
|
5
5
|
//#region ui/stepper.d.ts
|
|
6
6
|
declare const dotVariants: (props?: ({
|
|
7
7
|
state?: "active" | "inactive" | null | undefined;
|
|
8
8
|
size?: "sm" | "md" | null | undefined;
|
|
9
|
-
} &
|
|
9
|
+
} & class_variance_authority_types20.ClassProp) | undefined) => string;
|
|
10
10
|
interface StepperProps extends VariantProps<typeof dotVariants> {
|
|
11
11
|
current: number;
|
|
12
12
|
total: number;
|
|
@@ -17,7 +17,6 @@ declare function Stepper({
|
|
|
17
17
|
total,
|
|
18
18
|
size,
|
|
19
19
|
className
|
|
20
|
-
}: StepperProps):
|
|
20
|
+
}: StepperProps): react_jsx_runtime244.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
|
-
export { Stepper, StepperProps };
|
|
23
|
-
//# sourceMappingURL=stepper.d.ts.map
|
|
22
|
+
export { Stepper, StepperProps };
|
package/dist/ui/stepper.js
CHANGED
package/dist/ui/switch.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime245 from "react/jsx-runtime";
|
|
3
3
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
4
4
|
|
|
5
5
|
//#region ui/switch.d.ts
|
|
6
6
|
declare function Switch({
|
|
7
7
|
className,
|
|
8
|
+
thumbClassName,
|
|
8
9
|
...props
|
|
9
|
-
}: React$1.ComponentProps<typeof SwitchPrimitive.Root>
|
|
10
|
+
}: React$1.ComponentProps<typeof SwitchPrimitive.Root> & {
|
|
11
|
+
thumbClassName?: string;
|
|
12
|
+
}): react_jsx_runtime245.JSX.Element;
|
|
10
13
|
//#endregion
|
|
11
|
-
export { Switch };
|
|
12
|
-
//# sourceMappingURL=switch.d.ts.map
|
|
14
|
+
export { Switch };
|
package/dist/ui/switch.js
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
import { cn } from "./utils.js";
|
|
5
4
|
import "react";
|
|
6
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { cva } from "class-variance-authority";
|
|
7
7
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
8
8
|
|
|
9
9
|
//#region ui/switch.tsx
|
|
10
|
-
function Switch({ className
|
|
10
|
+
function Switch({ className, thumbClassName, ...props }) {
|
|
11
11
|
return /* @__PURE__ */ jsx(SwitchPrimitive.Root, {
|
|
12
12
|
"data-slot": "switch",
|
|
13
13
|
className: cn("peer focus-visible:border-ring focus-visible:ring-ring/50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-2xs outline-hidden transition-all focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
14
14
|
...props,
|
|
15
15
|
children: /* @__PURE__ */ jsx(SwitchPrimitive.Thumb, {
|
|
16
16
|
"data-slot": "switch-thumb",
|
|
17
|
-
className: cn("bg-background dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")
|
|
17
|
+
className: cn("bg-background dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0", thumbClassName)
|
|
18
18
|
})
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
//#endregion
|
|
23
|
-
export { Switch };
|
|
24
|
-
//# sourceMappingURL=switch.js.map
|
|
23
|
+
export { Switch };
|
package/dist/ui/table.d.ts
CHANGED
|
@@ -1,39 +1,38 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime246 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region ui/table.d.ts
|
|
5
5
|
declare function Table({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React$1.ComponentProps<'table'>):
|
|
8
|
+
}: React$1.ComponentProps<'table'>): react_jsx_runtime246.JSX.Element;
|
|
9
9
|
declare function TableHeader({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React$1.ComponentProps<'thead'>):
|
|
12
|
+
}: React$1.ComponentProps<'thead'>): react_jsx_runtime246.JSX.Element;
|
|
13
13
|
declare function TableBody({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React$1.ComponentProps<'tbody'>):
|
|
16
|
+
}: React$1.ComponentProps<'tbody'>): react_jsx_runtime246.JSX.Element;
|
|
17
17
|
declare function TableFooter({
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: React$1.ComponentProps<'tfoot'>):
|
|
20
|
+
}: React$1.ComponentProps<'tfoot'>): react_jsx_runtime246.JSX.Element;
|
|
21
21
|
declare function TableRow({
|
|
22
22
|
className,
|
|
23
23
|
...props
|
|
24
|
-
}: React$1.ComponentProps<'tr'>):
|
|
24
|
+
}: React$1.ComponentProps<'tr'>): react_jsx_runtime246.JSX.Element;
|
|
25
25
|
declare function TableHead({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: React$1.ComponentProps<'th'>):
|
|
28
|
+
}: React$1.ComponentProps<'th'>): react_jsx_runtime246.JSX.Element;
|
|
29
29
|
declare function TableCell({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React$1.ComponentProps<'td'>):
|
|
32
|
+
}: React$1.ComponentProps<'td'>): react_jsx_runtime246.JSX.Element;
|
|
33
33
|
declare function TableCaption({
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
36
|
-
}: React$1.ComponentProps<'caption'>):
|
|
36
|
+
}: React$1.ComponentProps<'caption'>): react_jsx_runtime246.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
|
-
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
39
|
-
//# sourceMappingURL=table.d.ts.map
|
|
38
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|