@lssm/lib.ui-kit-web 0.0.0-canary-20251120192244 → 0.0.0-canary-20251206181705
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 +7 -8
- package/dist/ui/alert.js +4 -5
- package/dist/ui/aspect-ratio.d.ts +3 -4
- 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 +5 -6
- 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 +3 -4
- 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 +4 -5
- 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 +8 -9
- 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 +1 -2
- 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 +8 -9
- 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 +6 -7
- 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 +1 -2
- 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/button.js
CHANGED
|
@@ -27,7 +27,7 @@ const buttonVariants = cva("inline-flex items-center justify-center gap-2 whites
|
|
|
27
27
|
size: "default"
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
function Button({ className, variant, size, asChild = false
|
|
30
|
+
function Button({ className, variant, size, asChild = false, ...props }) {
|
|
31
31
|
return /* @__PURE__ */ jsx(asChild ? Slot : "button", {
|
|
32
32
|
"data-slot": "button",
|
|
33
33
|
className: cn(buttonVariants({
|
|
@@ -40,5 +40,4 @@ function Button({ className, variant, size, asChild = false,...props }) {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
//#endregion
|
|
43
|
-
export { Button, buttonVariants };
|
|
44
|
-
//# sourceMappingURL=button.js.map
|
|
43
|
+
export { Button, buttonVariants };
|
package/dist/ui/calendar.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button } from "./button.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime202 from "react/jsx-runtime";
|
|
4
4
|
import { DayButton, DayPicker } from "react-day-picker";
|
|
5
5
|
|
|
6
6
|
//#region ui/calendar.d.ts
|
|
@@ -15,13 +15,12 @@ declare function Calendar({
|
|
|
15
15
|
...props
|
|
16
16
|
}: React$1.ComponentProps<typeof DayPicker> & {
|
|
17
17
|
buttonVariant?: React$1.ComponentProps<typeof Button>['variant'];
|
|
18
|
-
}):
|
|
18
|
+
}): react_jsx_runtime202.JSX.Element;
|
|
19
19
|
declare function CalendarDayButton({
|
|
20
20
|
className,
|
|
21
21
|
day,
|
|
22
22
|
modifiers,
|
|
23
23
|
...props
|
|
24
|
-
}: React$1.ComponentProps<typeof DayButton>):
|
|
24
|
+
}: React$1.ComponentProps<typeof DayButton>): react_jsx_runtime202.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
|
-
export { Calendar, CalendarDayButton };
|
|
27
|
-
//# sourceMappingURL=calendar.d.ts.map
|
|
26
|
+
export { Calendar, CalendarDayButton };
|
package/dist/ui/calendar.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
import { cn } from "./utils.js";
|
|
5
4
|
import { Button, buttonVariants } from "./button.js";
|
|
6
5
|
import * as React$1 from "react";
|
|
@@ -9,7 +8,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
9
8
|
import { DayButton, DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
10
9
|
|
|
11
10
|
//#region ui/calendar.tsx
|
|
12
|
-
function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", formatters, components
|
|
11
|
+
function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", formatters, components, ...props }) {
|
|
13
12
|
const defaultClassNames = getDefaultClassNames();
|
|
14
13
|
return /* @__PURE__ */ jsx(DayPicker, {
|
|
15
14
|
showOutsideDays,
|
|
@@ -48,7 +47,7 @@ function Calendar({ className, classNames, showOutsideDays = true, captionLayout
|
|
|
48
47
|
...classNames
|
|
49
48
|
},
|
|
50
49
|
components: {
|
|
51
|
-
Root: ({ className: className$1, rootRef
|
|
50
|
+
Root: ({ className: className$1, rootRef, ...props$1 }) => {
|
|
52
51
|
return /* @__PURE__ */ jsx("div", {
|
|
53
52
|
"data-slot": "calendar",
|
|
54
53
|
ref: rootRef,
|
|
@@ -56,7 +55,7 @@ function Calendar({ className, classNames, showOutsideDays = true, captionLayout
|
|
|
56
55
|
...props$1
|
|
57
56
|
});
|
|
58
57
|
},
|
|
59
|
-
Chevron: ({ className: className$1, orientation
|
|
58
|
+
Chevron: ({ className: className$1, orientation, ...props$1 }) => {
|
|
60
59
|
if (orientation === "left") return /* @__PURE__ */ jsx(ChevronLeftIcon, {
|
|
61
60
|
className: cn("size-4", className$1),
|
|
62
61
|
...props$1
|
|
@@ -71,7 +70,7 @@ function Calendar({ className, classNames, showOutsideDays = true, captionLayout
|
|
|
71
70
|
});
|
|
72
71
|
},
|
|
73
72
|
DayButton: CalendarDayButton,
|
|
74
|
-
WeekNumber: ({ children
|
|
73
|
+
WeekNumber: ({ children, ...props$1 }) => {
|
|
75
74
|
return /* @__PURE__ */ jsx("td", {
|
|
76
75
|
...props$1,
|
|
77
76
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -85,7 +84,7 @@ function Calendar({ className, classNames, showOutsideDays = true, captionLayout
|
|
|
85
84
|
...props
|
|
86
85
|
});
|
|
87
86
|
}
|
|
88
|
-
function CalendarDayButton({ className, day, modifiers
|
|
87
|
+
function CalendarDayButton({ className, day, modifiers, ...props }) {
|
|
89
88
|
const defaultClassNames = getDefaultClassNames();
|
|
90
89
|
const ref = React$1.useRef(null);
|
|
91
90
|
React$1.useEffect(() => {
|
|
@@ -106,5 +105,4 @@ function CalendarDayButton({ className, day, modifiers,...props }) {
|
|
|
106
105
|
}
|
|
107
106
|
|
|
108
107
|
//#endregion
|
|
109
|
-
export { Calendar, CalendarDayButton };
|
|
110
|
-
//# sourceMappingURL=calendar.js.map
|
|
108
|
+
export { Calendar, CalendarDayButton };
|
package/dist/ui/card.d.ts
CHANGED
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime214 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region ui/card.d.ts
|
|
5
5
|
declare function Card({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React$1.ComponentProps<'div'>):
|
|
8
|
+
}: React$1.ComponentProps<'div'>): react_jsx_runtime214.JSX.Element;
|
|
9
9
|
declare function CardHeader({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React$1.ComponentProps<'div'>):
|
|
12
|
+
}: React$1.ComponentProps<'div'>): react_jsx_runtime214.JSX.Element;
|
|
13
13
|
declare function CardTitle({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React$1.ComponentProps<'div'>):
|
|
16
|
+
}: React$1.ComponentProps<'div'>): react_jsx_runtime214.JSX.Element;
|
|
17
17
|
declare function CardDescription({
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: React$1.ComponentProps<'div'>):
|
|
20
|
+
}: React$1.ComponentProps<'div'>): react_jsx_runtime214.JSX.Element;
|
|
21
21
|
declare function CardAction({
|
|
22
22
|
className,
|
|
23
23
|
...props
|
|
24
|
-
}: React$1.ComponentProps<'div'>):
|
|
24
|
+
}: React$1.ComponentProps<'div'>): react_jsx_runtime214.JSX.Element;
|
|
25
25
|
declare function CardContent({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: React$1.ComponentProps<'div'>):
|
|
28
|
+
}: React$1.ComponentProps<'div'>): react_jsx_runtime214.JSX.Element;
|
|
29
29
|
declare function CardFooter({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React$1.ComponentProps<'div'>):
|
|
32
|
+
}: React$1.ComponentProps<'div'>): react_jsx_runtime214.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
|
-
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
35
|
-
//# sourceMappingURL=card.d.ts.map
|
|
34
|
+
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
package/dist/ui/card.js
CHANGED
|
@@ -3,49 +3,49 @@ import "react";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region ui/card.tsx
|
|
6
|
-
function Card({ className
|
|
6
|
+
function Card({ className, ...props }) {
|
|
7
7
|
return /* @__PURE__ */ jsx("div", {
|
|
8
8
|
"data-slot": "card",
|
|
9
9
|
className: cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-2xs", className),
|
|
10
10
|
...props
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
|
-
function CardHeader({ className
|
|
13
|
+
function CardHeader({ className, ...props }) {
|
|
14
14
|
return /* @__PURE__ */ jsx("div", {
|
|
15
15
|
"data-slot": "card-header",
|
|
16
16
|
className: cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", className),
|
|
17
17
|
...props
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
function CardTitle({ className
|
|
20
|
+
function CardTitle({ className, ...props }) {
|
|
21
21
|
return /* @__PURE__ */ jsx("div", {
|
|
22
22
|
"data-slot": "card-title",
|
|
23
23
|
className: cn("leading-none font-semibold", className),
|
|
24
24
|
...props
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
function CardDescription({ className
|
|
27
|
+
function CardDescription({ className, ...props }) {
|
|
28
28
|
return /* @__PURE__ */ jsx("div", {
|
|
29
29
|
"data-slot": "card-description",
|
|
30
30
|
className: cn("text-muted-foreground text-sm", className),
|
|
31
31
|
...props
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
function CardAction({ className
|
|
34
|
+
function CardAction({ className, ...props }) {
|
|
35
35
|
return /* @__PURE__ */ jsx("div", {
|
|
36
36
|
"data-slot": "card-action",
|
|
37
37
|
className: cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
|
|
38
38
|
...props
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
function CardContent({ className
|
|
41
|
+
function CardContent({ className, ...props }) {
|
|
42
42
|
return /* @__PURE__ */ jsx("div", {
|
|
43
43
|
"data-slot": "card-content",
|
|
44
44
|
className: cn("px-6", className),
|
|
45
45
|
...props
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
function CardFooter({ className
|
|
48
|
+
function CardFooter({ className, ...props }) {
|
|
49
49
|
return /* @__PURE__ */ jsx("div", {
|
|
50
50
|
"data-slot": "card-footer",
|
|
51
51
|
className: cn("flex items-center px-6 [.border-t]:pt-6", className),
|
|
@@ -54,5 +54,4 @@ function CardFooter({ className,...props }) {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
//#endregion
|
|
57
|
-
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
58
|
-
//# sourceMappingURL=card.js.map
|
|
57
|
+
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
package/dist/ui/carousel.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button } from "./button.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime185 from "react/jsx-runtime";
|
|
4
4
|
import useEmblaCarousel, { UseEmblaCarouselType } from "embla-carousel-react";
|
|
5
5
|
|
|
6
6
|
//#region ui/carousel.d.ts
|
|
@@ -22,27 +22,26 @@ declare function Carousel({
|
|
|
22
22
|
className,
|
|
23
23
|
children,
|
|
24
24
|
...props
|
|
25
|
-
}: React$1.ComponentProps<'div'> & CarouselProps):
|
|
25
|
+
}: React$1.ComponentProps<'div'> & CarouselProps): react_jsx_runtime185.JSX.Element;
|
|
26
26
|
declare function CarouselContent({
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: React$1.ComponentProps<'div'>):
|
|
29
|
+
}: React$1.ComponentProps<'div'>): react_jsx_runtime185.JSX.Element;
|
|
30
30
|
declare function CarouselItem({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React$1.ComponentProps<'div'>):
|
|
33
|
+
}: React$1.ComponentProps<'div'>): react_jsx_runtime185.JSX.Element;
|
|
34
34
|
declare function CarouselPrevious({
|
|
35
35
|
className,
|
|
36
36
|
variant,
|
|
37
37
|
size,
|
|
38
38
|
...props
|
|
39
|
-
}: React$1.ComponentProps<typeof Button>):
|
|
39
|
+
}: React$1.ComponentProps<typeof Button>): react_jsx_runtime185.JSX.Element;
|
|
40
40
|
declare function CarouselNext({
|
|
41
41
|
className,
|
|
42
42
|
variant,
|
|
43
43
|
size,
|
|
44
44
|
...props
|
|
45
|
-
}: React$1.ComponentProps<typeof Button>):
|
|
45
|
+
}: React$1.ComponentProps<typeof Button>): react_jsx_runtime185.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
|
-
export { Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };
|
|
48
|
-
//# sourceMappingURL=carousel.d.ts.map
|
|
47
|
+
export { Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };
|
package/dist/ui/carousel.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 * as React$1 from "react";
|
|
@@ -15,7 +14,7 @@ function useCarousel() {
|
|
|
15
14
|
if (!context) throw new Error("useCarousel must be used within a <Carousel />");
|
|
16
15
|
return context;
|
|
17
16
|
}
|
|
18
|
-
function Carousel({ orientation = "horizontal", opts, setApi, plugins, className, children
|
|
17
|
+
function Carousel({ orientation = "horizontal", opts, setApi, plugins, className, children, ...props }) {
|
|
19
18
|
const [carouselRef, api] = useEmblaCarousel({
|
|
20
19
|
...opts,
|
|
21
20
|
axis: orientation === "horizontal" ? "x" : "y"
|
|
@@ -77,7 +76,7 @@ function Carousel({ orientation = "horizontal", opts, setApi, plugins, className
|
|
|
77
76
|
})
|
|
78
77
|
});
|
|
79
78
|
}
|
|
80
|
-
function CarouselContent({ className
|
|
79
|
+
function CarouselContent({ className, ...props }) {
|
|
81
80
|
const { carouselRef, orientation } = useCarousel();
|
|
82
81
|
return /* @__PURE__ */ jsx("div", {
|
|
83
82
|
ref: carouselRef,
|
|
@@ -89,7 +88,7 @@ function CarouselContent({ className,...props }) {
|
|
|
89
88
|
})
|
|
90
89
|
});
|
|
91
90
|
}
|
|
92
|
-
function CarouselItem({ className
|
|
91
|
+
function CarouselItem({ className, ...props }) {
|
|
93
92
|
const { orientation } = useCarousel();
|
|
94
93
|
return /* @__PURE__ */ jsx("div", {
|
|
95
94
|
role: "group",
|
|
@@ -99,7 +98,7 @@ function CarouselItem({ className,...props }) {
|
|
|
99
98
|
...props
|
|
100
99
|
});
|
|
101
100
|
}
|
|
102
|
-
function CarouselPrevious({ className, variant = "outline", size = "icon"
|
|
101
|
+
function CarouselPrevious({ className, variant = "outline", size = "icon", ...props }) {
|
|
103
102
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
104
103
|
return /* @__PURE__ */ jsxs(Button, {
|
|
105
104
|
"data-slot": "carousel-previous",
|
|
@@ -115,7 +114,7 @@ function CarouselPrevious({ className, variant = "outline", size = "icon",...pro
|
|
|
115
114
|
})]
|
|
116
115
|
});
|
|
117
116
|
}
|
|
118
|
-
function CarouselNext({ className, variant = "outline", size = "icon"
|
|
117
|
+
function CarouselNext({ className, variant = "outline", size = "icon", ...props }) {
|
|
119
118
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
120
119
|
return /* @__PURE__ */ jsxs(Button, {
|
|
121
120
|
"data-slot": "carousel-next",
|
|
@@ -133,5 +132,4 @@ function CarouselNext({ className, variant = "outline", size = "icon",...props }
|
|
|
133
132
|
}
|
|
134
133
|
|
|
135
134
|
//#endregion
|
|
136
|
-
export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };
|
|
137
|
-
//# sourceMappingURL=carousel.js.map
|
|
135
|
+
export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };
|
package/dist/ui/checkbox.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime177 from "react/jsx-runtime";
|
|
3
3
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
4
4
|
|
|
5
5
|
//#region ui/checkbox.d.ts
|
|
6
6
|
declare function Checkbox({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React$1.ComponentProps<typeof CheckboxPrimitive.Root>):
|
|
9
|
+
}: React$1.ComponentProps<typeof CheckboxPrimitive.Root>): react_jsx_runtime177.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { Checkbox };
|
|
12
|
-
//# sourceMappingURL=checkbox.d.ts.map
|
|
11
|
+
export { Checkbox };
|
package/dist/ui/checkbox.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
import { cn } from "./utils.js";
|
|
5
4
|
import "react";
|
|
6
5
|
import { CheckIcon } from "lucide-react";
|
|
@@ -8,19 +7,18 @@ import { jsx } from "react/jsx-runtime";
|
|
|
8
7
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
9
8
|
|
|
10
9
|
//#region ui/checkbox.tsx
|
|
11
|
-
function Checkbox({ className
|
|
10
|
+
function Checkbox({ className, ...props }) {
|
|
12
11
|
return /* @__PURE__ */ jsx(CheckboxPrimitive.Root, {
|
|
13
12
|
"data-slot": "checkbox",
|
|
14
|
-
className: cn("
|
|
13
|
+
className: cn("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
15
14
|
...props,
|
|
16
15
|
children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, {
|
|
17
16
|
"data-slot": "checkbox-indicator",
|
|
18
|
-
className: "
|
|
17
|
+
className: "grid place-content-center text-current transition-none",
|
|
19
18
|
children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-3.5" })
|
|
20
19
|
})
|
|
21
20
|
});
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
//#endregion
|
|
25
|
-
export { Checkbox };
|
|
26
|
-
//# sourceMappingURL=checkbox.js.map
|
|
24
|
+
export { Checkbox };
|
package/dist/ui/collapsible.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime101 from "react/jsx-runtime";
|
|
2
2
|
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
3
3
|
|
|
4
4
|
//#region ui/collapsible.d.ts
|
|
5
5
|
declare function Collapsible({
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<typeof CollapsiblePrimitive.Root>):
|
|
7
|
+
}: React.ComponentProps<typeof CollapsiblePrimitive.Root>): react_jsx_runtime101.JSX.Element;
|
|
8
8
|
declare function CollapsibleTrigger({
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>):
|
|
10
|
+
}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): react_jsx_runtime101.JSX.Element;
|
|
11
11
|
declare function CollapsibleContent({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>):
|
|
13
|
+
}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): react_jsx_runtime101.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
16
|
-
//# sourceMappingURL=collapsible.d.ts.map
|
|
15
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
package/dist/ui/collapsible.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
6
5
|
|
|
@@ -25,5 +24,4 @@ function CollapsibleContent({ ...props }) {
|
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
//#endregion
|
|
28
|
-
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
29
|
-
//# sourceMappingURL=collapsible.js.map
|
|
27
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
package/dist/ui/command.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Dialog } from "./dialog.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
4
4
|
import { Command as Command$1 } from "cmdk";
|
|
5
5
|
|
|
6
6
|
//#region ui/command.d.ts
|
|
7
7
|
declare function Command({
|
|
8
8
|
className,
|
|
9
9
|
...props
|
|
10
|
-
}: React$1.ComponentProps<typeof Command$1>):
|
|
10
|
+
}: React$1.ComponentProps<typeof Command$1>): react_jsx_runtime13.JSX.Element;
|
|
11
11
|
declare function CommandDialog({
|
|
12
12
|
title,
|
|
13
13
|
description,
|
|
@@ -20,34 +20,33 @@ declare function CommandDialog({
|
|
|
20
20
|
description?: string;
|
|
21
21
|
className?: string;
|
|
22
22
|
showCloseButton?: boolean;
|
|
23
|
-
}):
|
|
23
|
+
}): react_jsx_runtime13.JSX.Element;
|
|
24
24
|
declare function CommandInput({
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
|
-
}: React$1.ComponentProps<typeof Command$1.Input>):
|
|
27
|
+
}: React$1.ComponentProps<typeof Command$1.Input>): react_jsx_runtime13.JSX.Element;
|
|
28
28
|
declare function CommandList({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React$1.ComponentProps<typeof Command$1.List>):
|
|
31
|
+
}: React$1.ComponentProps<typeof Command$1.List>): react_jsx_runtime13.JSX.Element;
|
|
32
32
|
declare function CommandEmpty({
|
|
33
33
|
...props
|
|
34
|
-
}: React$1.ComponentProps<typeof Command$1.Empty>):
|
|
34
|
+
}: React$1.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime13.JSX.Element;
|
|
35
35
|
declare function CommandGroup({
|
|
36
36
|
className,
|
|
37
37
|
...props
|
|
38
|
-
}: React$1.ComponentProps<typeof Command$1.Group>):
|
|
38
|
+
}: React$1.ComponentProps<typeof Command$1.Group>): react_jsx_runtime13.JSX.Element;
|
|
39
39
|
declare function CommandSeparator({
|
|
40
40
|
className,
|
|
41
41
|
...props
|
|
42
|
-
}: React$1.ComponentProps<typeof Command$1.Separator>):
|
|
42
|
+
}: React$1.ComponentProps<typeof Command$1.Separator>): react_jsx_runtime13.JSX.Element;
|
|
43
43
|
declare function CommandItem({
|
|
44
44
|
className,
|
|
45
45
|
...props
|
|
46
|
-
}: React$1.ComponentProps<typeof Command$1.Item>):
|
|
46
|
+
}: React$1.ComponentProps<typeof Command$1.Item>): react_jsx_runtime13.JSX.Element;
|
|
47
47
|
declare function CommandShortcut({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
|
-
}: React$1.ComponentProps<'span'>):
|
|
50
|
+
}: React$1.ComponentProps<'span'>): react_jsx_runtime13.JSX.Element;
|
|
51
51
|
//#endregion
|
|
52
|
-
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
53
|
-
//# sourceMappingURL=command.d.ts.map
|
|
52
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
package/dist/ui/command.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
import { cn } from "./utils.js";
|
|
5
4
|
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "./dialog.js";
|
|
6
5
|
import "react";
|
|
@@ -9,14 +8,14 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
9
8
|
import { Command as Command$1 } from "cmdk";
|
|
10
9
|
|
|
11
10
|
//#region ui/command.tsx
|
|
12
|
-
function Command({ className
|
|
11
|
+
function Command({ className, ...props }) {
|
|
13
12
|
return /* @__PURE__ */ jsx(Command$1, {
|
|
14
13
|
"data-slot": "command",
|
|
15
14
|
className: cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", className),
|
|
16
15
|
...props
|
|
17
16
|
});
|
|
18
17
|
}
|
|
19
|
-
function CommandDialog({ title = "Command Palette", description = "Search for a command to run...", children, className, showCloseButton = true
|
|
18
|
+
function CommandDialog({ title = "Command Palette", description = "Search for a command to run...", children, className, showCloseButton = true, ...props }) {
|
|
20
19
|
return /* @__PURE__ */ jsxs(Dialog, {
|
|
21
20
|
...props,
|
|
22
21
|
children: [/* @__PURE__ */ jsxs(DialogHeader, {
|
|
@@ -32,7 +31,7 @@ function CommandDialog({ title = "Command Palette", description = "Search for a
|
|
|
32
31
|
})]
|
|
33
32
|
});
|
|
34
33
|
}
|
|
35
|
-
function CommandInput({ className
|
|
34
|
+
function CommandInput({ className, ...props }) {
|
|
36
35
|
return /* @__PURE__ */ jsxs("div", {
|
|
37
36
|
"data-slot": "command-input-wrapper",
|
|
38
37
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
@@ -43,7 +42,7 @@ function CommandInput({ className,...props }) {
|
|
|
43
42
|
})]
|
|
44
43
|
});
|
|
45
44
|
}
|
|
46
|
-
function CommandList({ className
|
|
45
|
+
function CommandList({ className, ...props }) {
|
|
47
46
|
return /* @__PURE__ */ jsx(Command$1.List, {
|
|
48
47
|
"data-slot": "command-list",
|
|
49
48
|
className: cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", className),
|
|
@@ -57,28 +56,28 @@ function CommandEmpty({ ...props }) {
|
|
|
57
56
|
...props
|
|
58
57
|
});
|
|
59
58
|
}
|
|
60
|
-
function CommandGroup({ className
|
|
59
|
+
function CommandGroup({ className, ...props }) {
|
|
61
60
|
return /* @__PURE__ */ jsx(Command$1.Group, {
|
|
62
61
|
"data-slot": "command-group",
|
|
63
62
|
className: cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", className),
|
|
64
63
|
...props
|
|
65
64
|
});
|
|
66
65
|
}
|
|
67
|
-
function CommandSeparator({ className
|
|
66
|
+
function CommandSeparator({ className, ...props }) {
|
|
68
67
|
return /* @__PURE__ */ jsx(Command$1.Separator, {
|
|
69
68
|
"data-slot": "command-separator",
|
|
70
69
|
className: cn("bg-border -mx-1 h-px", className),
|
|
71
70
|
...props
|
|
72
71
|
});
|
|
73
72
|
}
|
|
74
|
-
function CommandItem({ className
|
|
73
|
+
function CommandItem({ className, ...props }) {
|
|
75
74
|
return /* @__PURE__ */ jsx(Command$1.Item, {
|
|
76
75
|
"data-slot": "command-item",
|
|
77
76
|
className: cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-xs px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
78
77
|
...props
|
|
79
78
|
});
|
|
80
79
|
}
|
|
81
|
-
function CommandShortcut({ className
|
|
80
|
+
function CommandShortcut({ className, ...props }) {
|
|
82
81
|
return /* @__PURE__ */ jsx("span", {
|
|
83
82
|
"data-slot": "command-shortcut",
|
|
84
83
|
className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className),
|
|
@@ -87,5 +86,4 @@ function CommandShortcut({ className,...props }) {
|
|
|
87
86
|
}
|
|
88
87
|
|
|
89
88
|
//#endregion
|
|
90
|
-
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
91
|
-
//# sourceMappingURL=command.js.map
|
|
89
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region ui/confirm-dialog.d.ts
|
|
5
5
|
interface ConfirmDialogProps {
|
|
@@ -25,7 +25,6 @@ declare function ConfirmDialog({
|
|
|
25
25
|
isLoading,
|
|
26
26
|
onConfirm,
|
|
27
27
|
trigger
|
|
28
|
-
}: ConfirmDialogProps):
|
|
28
|
+
}: ConfirmDialogProps): react_jsx_runtime12.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
|
-
export { ConfirmDialog, ConfirmDialogProps };
|
|
31
|
-
//# sourceMappingURL=confirm-dialog.d.ts.map
|
|
30
|
+
export { ConfirmDialog, ConfirmDialogProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime143 from "react/jsx-runtime";
|
|
3
3
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
4
4
|
|
|
5
5
|
//#region ui/context-menu.d.ts
|
|
@@ -27,9 +27,8 @@ declare const ContextMenuShortcut: {
|
|
|
27
27
|
({
|
|
28
28
|
className,
|
|
29
29
|
...props
|
|
30
|
-
}: React$1.HTMLAttributes<HTMLSpanElement>):
|
|
30
|
+
}: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime143.JSX.Element;
|
|
31
31
|
displayName: string;
|
|
32
32
|
};
|
|
33
33
|
//#endregion
|
|
34
|
-
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
|
|
35
|
-
//# sourceMappingURL=context-menu.d.ts.map
|
|
34
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
|