@admin-layout/tailwind-ui 10.1.1-alpha.8 → 11.2.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/lib/components/Button/Button.d.ts +13 -0
- package/lib/components/Button/Button.d.ts.map +1 -0
- package/lib/components/Button/Button.js +49 -0
- package/lib/components/Button/Button.js.map +1 -0
- package/lib/components/DatePicker/DatePicker.d.ts +5 -0
- package/lib/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/lib/components/DatePicker/DatePicker.js +200 -0
- package/lib/components/DatePicker/DatePicker.js.map +1 -0
- package/lib/components/DatePicker/index.d.ts +3 -0
- package/lib/components/DatePicker/index.d.ts.map +1 -0
- package/lib/components/DatePicker/machine.d.ts +3 -0
- package/lib/components/DatePicker/machine.d.ts.map +1 -0
- package/lib/components/DatePicker/machine.js +95 -0
- package/lib/components/DatePicker/machine.js.map +1 -0
- package/lib/components/DatePicker/types.d.ts +34 -0
- package/lib/components/DatePicker/types.d.ts.map +1 -0
- package/lib/components/DatePicker/utils.d.ts +25 -0
- package/lib/components/DatePicker/utils.d.ts.map +1 -0
- package/lib/components/DatePicker/utils.js +28 -0
- package/lib/components/DatePicker/utils.js.map +1 -0
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts +2 -1
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.js +6 -10
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.js.map +1 -1
- package/lib/components/ErrorHandlers/ErrorBoundary.d.ts +2 -1
- package/lib/components/ErrorHandlers/ErrorBoundary.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/ErrorBoundary.js +28 -35
- package/lib/components/ErrorHandlers/ErrorBoundary.js.map +1 -1
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts +2 -1
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.js +15 -20
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.js.map +1 -1
- package/lib/components/ErrorPages/403.d.ts +2 -1
- package/lib/components/ErrorPages/403.d.ts.map +1 -1
- package/lib/components/ErrorPages/403.js +18 -26
- package/lib/components/ErrorPages/403.js.map +1 -1
- package/lib/components/ErrorPages/404.d.ts +2 -1
- package/lib/components/ErrorPages/404.d.ts.map +1 -1
- package/lib/components/ErrorPages/404.js +18 -26
- package/lib/components/ErrorPages/404.js.map +1 -1
- package/lib/components/ErrorPages/500.d.ts +2 -1
- package/lib/components/ErrorPages/500.d.ts.map +1 -1
- package/lib/components/ErrorPages/500.js +18 -26
- package/lib/components/ErrorPages/500.js.map +1 -1
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts +6 -0
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts.map +1 -0
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js +56 -0
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js.map +1 -0
- package/lib/components/LanguageMenuDropdown/index.d.ts +2 -0
- package/lib/components/LanguageMenuDropdown/index.d.ts.map +1 -0
- package/lib/components/OTP/OTPInput.js +30 -32
- package/lib/components/OTP/OTPInput.js.map +1 -1
- package/lib/components/OTP/OTPVerification.js +55 -75
- package/lib/components/OTP/OTPVerification.js.map +1 -1
- package/lib/components/OTP/SingleInput.js +2 -2
- package/lib/components/OTP/SingleInput.js.map +1 -1
- package/lib/components/OTP/utils.js.map +1 -1
- package/lib/components/PageContainer/PageContainer.d.ts.map +1 -1
- package/lib/components/PageContainer/PageContainer.js +27 -28
- package/lib/components/PageContainer/PageContainer.js.map +1 -1
- package/lib/components/PageLoading/index.js +7 -8
- package/lib/components/PageLoading/index.js.map +1 -1
- package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts +12 -0
- package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewCheckboxWidget.d.ts +8 -0
- package/lib/components/RJSFPreview/PreviewCheckboxWidget.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewCustomFieldTemplate.d.ts +4 -0
- package/lib/components/RJSFPreview/PreviewCustomFieldTemplate.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewDateWidget.d.ts +8 -0
- package/lib/components/RJSFPreview/PreviewDateWidget.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewDialog.d.ts +9 -0
- package/lib/components/RJSFPreview/PreviewDialog.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewDropdownWidget.d.ts +8 -0
- package/lib/components/RJSFPreview/PreviewDropdownWidget.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewFieldTemplate.d.ts +4 -0
- package/lib/components/RJSFPreview/PreviewFieldTemplate.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewFileUploadWidget.d.ts +4 -0
- package/lib/components/RJSFPreview/PreviewFileUploadWidget.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewFormRenderer.d.ts +16 -0
- package/lib/components/RJSFPreview/PreviewFormRenderer.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewImageUploadWidget.d.ts +4 -0
- package/lib/components/RJSFPreview/PreviewImageUploadWidget.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewInputWidget.d.ts +4 -0
- package/lib/components/RJSFPreview/PreviewInputWidget.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewObjectFieldTemplate.d.ts +4 -0
- package/lib/components/RJSFPreview/PreviewObjectFieldTemplate.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewRadioWidget.d.ts +8 -0
- package/lib/components/RJSFPreview/PreviewRadioWidget.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewStepper.d.ts +9 -0
- package/lib/components/RJSFPreview/PreviewStepper.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewSwitchWidget.d.ts +9 -0
- package/lib/components/RJSFPreview/PreviewSwitchWidget.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewTab.d.ts +17 -0
- package/lib/components/RJSFPreview/PreviewTab.d.ts.map +1 -0
- package/lib/components/RJSFPreview/PreviewTextareaWidget.d.ts +8 -0
- package/lib/components/RJSFPreview/PreviewTextareaWidget.d.ts.map +1 -0
- package/lib/components/RJSFPreview/generateSchemaWithInputs.d.ts +9 -0
- package/lib/components/RJSFPreview/generateSchemaWithInputs.d.ts.map +1 -0
- package/lib/components/RJSFPreview/index.d.ts +2 -0
- package/lib/components/RJSFPreview/index.d.ts.map +1 -0
- package/lib/components/ReactTable/Table.d.ts +2 -1
- package/lib/components/ReactTable/Table.d.ts.map +1 -1
- package/lib/components/ReactTable/Table.js +71 -92
- package/lib/components/ReactTable/Table.js.map +1 -1
- package/lib/components/ReactTable/TableFilters.d.ts +3 -2
- package/lib/components/ReactTable/TableFilters.d.ts.map +1 -1
- package/lib/components/ReactTable/TableFilters.js +34 -40
- package/lib/components/ReactTable/TableFilters.js.map +1 -1
- package/lib/components/Search/SearchInput.d.ts +12 -0
- package/lib/components/Search/SearchInput.d.ts.map +1 -0
- package/lib/components/Search/SearchInput.js +32 -0
- package/lib/components/Search/SearchInput.js.map +1 -0
- package/lib/components/Search/index.d.ts +2 -0
- package/lib/components/Search/index.d.ts.map +1 -0
- package/lib/components/Select/Select.d.ts +35 -0
- package/lib/components/Select/Select.d.ts.map +1 -0
- package/lib/components/Select/Select.js +242 -0
- package/lib/components/Select/Select.js.map +1 -0
- package/lib/components/Select/index.d.ts +2 -0
- package/lib/components/Select/index.d.ts.map +1 -0
- package/lib/components/Spin/index.js +11 -14
- package/lib/components/Spin/index.js.map +1 -1
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +16 -0
- package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +1 -0
- package/lib/components/ThemeProvider/ThemeProvider.js +124 -0
- package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -0
- package/lib/components/ThemeProvider/ThemeToggle.d.ts +7 -0
- package/lib/components/ThemeProvider/ThemeToggle.d.ts.map +1 -0
- package/lib/components/ThemeProvider/ThemeToggle.js +47 -0
- package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -0
- package/lib/components/ThemeProvider/index.d.ts +4 -0
- package/lib/components/ThemeProvider/index.d.ts.map +1 -0
- package/lib/components/ThemeProvider/types.d.ts +27 -0
- package/lib/components/ThemeProvider/types.d.ts.map +1 -0
- package/lib/components/index.d.ts +6 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/hooks/index.d.ts +5 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/useMediaQuery.d.ts +14 -0
- package/lib/hooks/useMediaQuery.d.ts.map +1 -0
- package/lib/hooks/useMediaQuery.js +48 -0
- package/lib/hooks/useMediaQuery.js.map +1 -0
- package/lib/hooks/useTheme.d.ts +2 -0
- package/lib/hooks/useTheme.d.ts.map +1 -0
- package/lib/hooks/useTheme.js +7 -0
- package/lib/hooks/useTheme.js.map +1 -0
- package/lib/hooks/useToast.d.ts +1 -1
- package/lib/hooks/useToast.d.ts.map +1 -1
- package/lib/hooks/useToast.js +37 -46
- package/lib/hooks/useToast.js.map +1 -1
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/hooks/useWindowSize.d.ts.map +1 -0
- package/lib/hooks/useWindowSize.js +20 -0
- package/lib/hooks/useWindowSize.js.map +1 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/shardui/accordion.d.ts +8 -0
- package/lib/shardui/accordion.d.ts.map +1 -0
- package/lib/shardui/accordion.js +36 -0
- package/lib/shardui/accordion.js.map +1 -0
- package/lib/shardui/alert-dialog.d.ts +21 -0
- package/lib/shardui/alert-dialog.d.ts.map +1 -0
- package/lib/shardui/alert-dialog.js +75 -0
- package/lib/shardui/alert-dialog.js.map +1 -0
- package/lib/shardui/alert.d.ts +9 -0
- package/lib/shardui/alert.d.ts.map +1 -0
- package/lib/shardui/alert.js +42 -0
- package/lib/shardui/alert.js.map +1 -0
- package/lib/shardui/aspect-ratio.d.ts +4 -0
- package/lib/shardui/aspect-ratio.d.ts.map +1 -0
- package/lib/shardui/aspect-ratio.js +1 -0
- package/lib/shardui/aspect-ratio.js.map +1 -0
- package/lib/shardui/avatar.d.ts +7 -0
- package/lib/shardui/avatar.d.ts.map +1 -0
- package/lib/shardui/avatar.js +27 -0
- package/lib/shardui/avatar.js.map +1 -0
- package/lib/shardui/badge.d.ts +10 -0
- package/lib/shardui/badge.d.ts.map +1 -0
- package/lib/shardui/badge.js +25 -0
- package/lib/shardui/badge.js.map +1 -0
- package/lib/shardui/breadcrumb.d.ts +20 -0
- package/lib/shardui/breadcrumb.d.ts.map +1 -0
- package/lib/shardui/breadcrumb.js +76 -0
- package/lib/shardui/breadcrumb.js.map +1 -0
- package/lib/shardui/button.d.ts +12 -0
- package/lib/shardui/button.d.ts.map +1 -0
- package/lib/shardui/button.js +41 -0
- package/lib/shardui/button.js.map +1 -0
- package/lib/shardui/calendar.d.ts +9 -0
- package/lib/shardui/calendar.d.ts.map +1 -0
- package/lib/shardui/calendar.js +53 -0
- package/lib/shardui/calendar.js.map +1 -0
- package/lib/shardui/card.d.ts +9 -0
- package/lib/shardui/card.d.ts.map +1 -0
- package/lib/shardui/card.js +54 -0
- package/lib/shardui/card.js.map +1 -0
- package/lib/shardui/carousel.d.ts +19 -0
- package/lib/shardui/carousel.d.ts.map +1 -0
- package/lib/shardui/carousel.js +169 -0
- package/lib/shardui/carousel.js.map +1 -0
- package/lib/shardui/chart.d.ts +63 -0
- package/lib/shardui/chart.d.ts.map +1 -0
- package/lib/shardui/chart.js +182 -0
- package/lib/shardui/chart.js.map +1 -0
- package/lib/shardui/checkbox.d.ts +5 -0
- package/lib/shardui/checkbox.d.ts.map +1 -0
- package/lib/shardui/checkbox.js +13 -0
- package/lib/shardui/checkbox.js.map +1 -0
- package/lib/shardui/collapsible.d.ts +6 -0
- package/lib/shardui/collapsible.d.ts.map +1 -0
- package/lib/shardui/collapsible.js +3 -0
- package/lib/shardui/collapsible.js.map +1 -0
- package/lib/shardui/command.d.ts +83 -0
- package/lib/shardui/command.d.ts.map +1 -0
- package/lib/shardui/command.js +87 -0
- package/lib/shardui/command.js.map +1 -0
- package/lib/shardui/context-menu.d.ts +28 -0
- package/lib/shardui/context-menu.d.ts.map +1 -0
- package/lib/shardui/context-menu.js +106 -0
- package/lib/shardui/context-menu.js.map +1 -0
- package/lib/shardui/dialog.d.ts +20 -0
- package/lib/shardui/dialog.d.ts.map +1 -0
- package/lib/shardui/dialog.js +62 -0
- package/lib/shardui/dialog.js.map +1 -0
- package/lib/shardui/drawer.d.ts +23 -0
- package/lib/shardui/drawer.d.ts.map +1 -0
- package/lib/shardui/drawer.js +66 -0
- package/lib/shardui/drawer.js.map +1 -0
- package/lib/shardui/dropdown-menu.d.ts +28 -0
- package/lib/shardui/dropdown-menu.d.ts.map +1 -0
- package/lib/shardui/dropdown-menu.js +108 -0
- package/lib/shardui/dropdown-menu.js.map +1 -0
- package/lib/shardui/form.d.ts +24 -0
- package/lib/shardui/form.d.ts.map +1 -0
- package/lib/shardui/form.js +123 -0
- package/lib/shardui/form.js.map +1 -0
- package/lib/shardui/hover-card.d.ts +7 -0
- package/lib/shardui/hover-card.d.ts.map +1 -0
- package/lib/shardui/hover-card.js +15 -0
- package/lib/shardui/hover-card.js.map +1 -0
- package/lib/shardui/index.d.ts +50 -0
- package/lib/shardui/index.d.ts.map +1 -0
- package/lib/shardui/index.js +1 -0
- package/lib/shardui/index.js.map +1 -0
- package/lib/shardui/input-otp.d.ts +35 -0
- package/lib/shardui/input-otp.d.ts.map +1 -0
- package/lib/shardui/input-otp.js +50 -0
- package/lib/shardui/input-otp.js.map +1 -0
- package/lib/shardui/input.d.ts +4 -0
- package/lib/shardui/input.d.ts.map +1 -0
- package/lib/shardui/input.js +13 -0
- package/lib/shardui/input.js.map +1 -0
- package/lib/shardui/label.d.ts +6 -0
- package/lib/shardui/label.d.ts.map +1 -0
- package/lib/shardui/label.js +10 -0
- package/lib/shardui/label.js.map +1 -0
- package/lib/shardui/menubar.d.ts +34 -0
- package/lib/shardui/menubar.d.ts.map +1 -0
- package/lib/shardui/menubar.js +129 -0
- package/lib/shardui/menubar.js.map +1 -0
- package/lib/shardui/navigation-menu.d.ts +13 -0
- package/lib/shardui/navigation-menu.d.ts.map +1 -0
- package/lib/shardui/navigation-menu.js +66 -0
- package/lib/shardui/navigation-menu.js.map +1 -0
- package/lib/shardui/pagination.d.ts +29 -0
- package/lib/shardui/pagination.d.ts.map +1 -0
- package/lib/shardui/pagination.js +79 -0
- package/lib/shardui/pagination.js.map +1 -0
- package/lib/shardui/popover.d.ts +7 -0
- package/lib/shardui/popover.d.ts.map +1 -0
- package/lib/shardui/popover.js +15 -0
- package/lib/shardui/popover.js.map +1 -0
- package/lib/shardui/progress.d.ts +5 -0
- package/lib/shardui/progress.d.ts.map +1 -0
- package/lib/shardui/progress.js +15 -0
- package/lib/shardui/progress.js.map +1 -0
- package/lib/shardui/radio-group.d.ts +6 -0
- package/lib/shardui/radio-group.d.ts.map +1 -0
- package/lib/shardui/radio-group.js +26 -0
- package/lib/shardui/radio-group.js.map +1 -0
- package/lib/shardui/resizable.d.ts +25 -0
- package/lib/shardui/resizable.d.ts.map +1 -0
- package/lib/shardui/resizable.js +20 -0
- package/lib/shardui/resizable.js.map +1 -0
- package/lib/shardui/scroll-area.d.ts +6 -0
- package/lib/shardui/scroll-area.d.ts.map +1 -0
- package/lib/shardui/scroll-area.js +25 -0
- package/lib/shardui/scroll-area.js.map +1 -0
- package/lib/shardui/select.d.ts +14 -0
- package/lib/shardui/select.d.ts.map +1 -0
- package/lib/shardui/select.js +85 -0
- package/lib/shardui/select.js.map +1 -0
- package/lib/shardui/separator.d.ts +5 -0
- package/lib/shardui/separator.d.ts.map +1 -0
- package/lib/shardui/separator.js +13 -0
- package/lib/shardui/separator.js.map +1 -0
- package/lib/shardui/sheet.d.ts +26 -0
- package/lib/shardui/sheet.d.ts.map +1 -0
- package/lib/shardui/sheet.js +79 -0
- package/lib/shardui/sheet.js.map +1 -0
- package/lib/shardui/sidebar.d.ts +67 -0
- package/lib/shardui/sidebar.d.ts.map +1 -0
- package/lib/shardui/sidebar.js +474 -0
- package/lib/shardui/sidebar.js.map +1 -0
- package/lib/shardui/skeleton.d.ts +4 -0
- package/lib/shardui/skeleton.d.ts.map +1 -0
- package/lib/shardui/skeleton.js +9 -0
- package/lib/shardui/skeleton.js.map +1 -0
- package/lib/shardui/slider.d.ts +5 -0
- package/lib/shardui/slider.d.ts.map +1 -0
- package/lib/shardui/slider.js +15 -0
- package/lib/shardui/slider.js.map +1 -0
- package/lib/shardui/sonner.d.ts +6 -0
- package/lib/shardui/sonner.d.ts.map +1 -0
- package/lib/shardui/sonner.js +20 -0
- package/lib/shardui/sonner.js.map +1 -0
- package/lib/shardui/switch.d.ts +5 -0
- package/lib/shardui/switch.d.ts.map +1 -0
- package/lib/shardui/switch.js +11 -0
- package/lib/shardui/switch.js.map +1 -0
- package/lib/shardui/table.d.ts +11 -0
- package/lib/shardui/table.d.ts.map +1 -0
- package/lib/shardui/table.js +74 -0
- package/lib/shardui/table.js.map +1 -0
- package/lib/shardui/tabs.d.ts +8 -0
- package/lib/shardui/tabs.d.ts.map +1 -0
- package/lib/shardui/tabs.js +28 -0
- package/lib/shardui/tabs.js.map +1 -0
- package/lib/shardui/textarea.d.ts +6 -0
- package/lib/shardui/textarea.d.ts.map +1 -0
- package/lib/shardui/textarea.js +11 -0
- package/lib/shardui/textarea.js.map +1 -0
- package/lib/shardui/toast.d.ts +16 -0
- package/lib/shardui/toast.d.ts.map +1 -0
- package/lib/shardui/toast.js +74 -0
- package/lib/shardui/toast.js.map +1 -0
- package/lib/shardui/toaster.d.ts +3 -0
- package/lib/shardui/toaster.d.ts.map +1 -0
- package/lib/shardui/toaster.js +19 -0
- package/lib/shardui/toaster.js.map +1 -0
- package/lib/shardui/toggle-group.d.ts +13 -0
- package/lib/shardui/toggle-group.d.ts.map +1 -0
- package/lib/shardui/toggle-group.js +39 -0
- package/lib/shardui/toggle-group.js.map +1 -0
- package/lib/shardui/toggle.d.ts +13 -0
- package/lib/shardui/toggle.d.ts.map +1 -0
- package/lib/shardui/toggle.js +32 -0
- package/lib/shardui/toggle.js.map +1 -0
- package/lib/shardui/tooltip.d.ts +8 -0
- package/lib/shardui/tooltip.d.ts.map +1 -0
- package/lib/shardui/tooltip.js +14 -0
- package/lib/shardui/tooltip.js.map +1 -0
- package/lib/shardui/use-toast.d.ts +3 -0
- package/lib/shardui/use-toast.d.ts.map +1 -0
- package/lib/utils/hooks/use-mobile.d.ts +2 -0
- package/lib/utils/hooks/use-mobile.d.ts.map +1 -0
- package/lib/utils/hooks/use-mobile.js +14 -0
- package/lib/utils/hooks/use-mobile.js.map +1 -0
- package/lib/utils/hooks/use-toast.d.ts +45 -0
- package/lib/utils/hooks/use-toast.d.ts.map +1 -0
- package/lib/utils/hooks/use-toast.js +133 -0
- package/lib/utils/hooks/use-toast.js.map +1 -0
- package/lib/utils/index.d.ts +7 -1
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/isBrowser/index.js +1 -0
- package/lib/utils/isBrowser/index.js.map +1 -0
- package/lib/utils/util.d.ts +3 -0
- package/lib/utils/util.d.ts.map +1 -0
- package/lib/utils/util.js +3 -0
- package/lib/utils/util.js.map +1 -0
- package/package.json +58 -3
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import*as React from'react';import*as NavigationMenuPrimitive from'@radix-ui/react-navigation-menu';import {cva}from'class-variance-authority';import {ChevronDown}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const NavigationMenu = React.forwardRef(({
|
|
2
|
+
className,
|
|
3
|
+
children,
|
|
4
|
+
...props
|
|
5
|
+
}, ref) => React.createElement(NavigationMenuPrimitive.Root, {
|
|
6
|
+
ref: ref,
|
|
7
|
+
className: cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className),
|
|
8
|
+
...props
|
|
9
|
+
}, children, React.createElement(NavigationMenuViewport, null)));
|
|
10
|
+
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
11
|
+
const NavigationMenuList = React.forwardRef(({
|
|
12
|
+
className,
|
|
13
|
+
...props
|
|
14
|
+
}, ref) => React.createElement(NavigationMenuPrimitive.List, {
|
|
15
|
+
ref: ref,
|
|
16
|
+
className: cn('group flex flex-1 list-none items-center justify-center space-x-1', className),
|
|
17
|
+
...props
|
|
18
|
+
}));
|
|
19
|
+
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
20
|
+
const NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
21
|
+
const navigationMenuTriggerStyle = cva('group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50');
|
|
22
|
+
const NavigationMenuTrigger = React.forwardRef(({
|
|
23
|
+
className,
|
|
24
|
+
children,
|
|
25
|
+
...props
|
|
26
|
+
}, ref) => React.createElement(NavigationMenuPrimitive.Trigger, {
|
|
27
|
+
ref: ref,
|
|
28
|
+
className: cn(navigationMenuTriggerStyle(), 'group', className),
|
|
29
|
+
...props
|
|
30
|
+
}, children, ' ', React.createElement(ChevronDown, {
|
|
31
|
+
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
32
|
+
"aria-hidden": "true"
|
|
33
|
+
})));
|
|
34
|
+
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
35
|
+
const NavigationMenuContent = React.forwardRef(({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}, ref) => React.createElement(NavigationMenuPrimitive.Content, {
|
|
39
|
+
ref: ref,
|
|
40
|
+
className: cn('left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ', className),
|
|
41
|
+
...props
|
|
42
|
+
}));
|
|
43
|
+
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
44
|
+
const NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
45
|
+
const NavigationMenuViewport = React.forwardRef(({
|
|
46
|
+
className,
|
|
47
|
+
...props
|
|
48
|
+
}, ref) => React.createElement("div", {
|
|
49
|
+
className: cn('absolute left-0 top-full flex justify-center')
|
|
50
|
+
}, React.createElement(NavigationMenuPrimitive.Viewport, {
|
|
51
|
+
className: cn('origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]', className),
|
|
52
|
+
ref: ref,
|
|
53
|
+
...props
|
|
54
|
+
})));
|
|
55
|
+
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
56
|
+
const NavigationMenuIndicator = React.forwardRef(({
|
|
57
|
+
className,
|
|
58
|
+
...props
|
|
59
|
+
}, ref) => React.createElement(NavigationMenuPrimitive.Indicator, {
|
|
60
|
+
ref: ref,
|
|
61
|
+
className: cn('top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in', className),
|
|
62
|
+
...props
|
|
63
|
+
}, React.createElement("div", {
|
|
64
|
+
className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"
|
|
65
|
+
})));
|
|
66
|
+
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;export{NavigationMenu,NavigationMenuContent,NavigationMenuIndicator,NavigationMenuItem,NavigationMenuLink,NavigationMenuList,NavigationMenuTrigger,NavigationMenuViewport,navigationMenuTriggerStyle};//# sourceMappingURL=navigation-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.js","sources":["../../src/shardui/navigation-menu.tsx"],"sourcesContent":[null],"names":[],"mappings":"6RAoCA,MAAA,cAAM,GAAA,KAAA,CAAA,UAAA,CAA0B,CAAA;AAIhC,EAAA,SAAA;AAkBA,EAAA,QAAA;AAeA,EAAA,GAAA;AAEA,CAAA,EAAA,GAAA,KAAA,KAAM,CAAA,aAAA,CAAA,uBAAsB,CAAA,IAAA,EAAA;AAiB5B,EAAA,GAAA,EAAA,GAAA;AAiBA,EAAA,SACI,EAAA,EAAA,CAAA,iEAGA,EAAA,SAAkB,CAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ButtonProps } from './button';
|
|
3
|
+
declare const Pagination: {
|
|
4
|
+
({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
8
|
+
declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
9
|
+
type PaginationLinkProps = {
|
|
10
|
+
isActive?: boolean;
|
|
11
|
+
} & Pick<ButtonProps, 'size'> & React.ComponentProps<'a'>;
|
|
12
|
+
declare const PaginationLink: {
|
|
13
|
+
({ className, isActive, size, ...props }: PaginationLinkProps): React.JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
declare const PaginationPrevious: {
|
|
17
|
+
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React.JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
declare const PaginationNext: {
|
|
21
|
+
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React.JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
declare const PaginationEllipsis: {
|
|
25
|
+
({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
|
|
29
|
+
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../src/shardui/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,WAAW,EAAkB,MAAM,UAAU,CAAC;AAEvD,QAAA,MAAM,UAAU;8BAA6B,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;;CAOvE,CAAC;AAGF,QAAA,MAAM,iBAAiB,yKAItB,CAAC;AAGF,QAAA,MAAM,cAAc,kKAElB,CAAC;AAGH,KAAK,mBAAmB,GAAG;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,GACzB,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;AAE9B,QAAA,MAAM,cAAc;8CAAsD,mBAAmB;;CAY5F,CAAC;AAGF,QAAA,MAAM,kBAAkB;8BAA6B,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC;;CAU/F,CAAC;AAGF,QAAA,MAAM,cAAc;8BAA6B,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC;;CAK3F,CAAC;AAGF,QAAA,MAAM,kBAAkB;8BAA6B,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC;;CAKhF,CAAC;AAGF,OAAO,EACH,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,cAAc,EACd,kBAAkB,GACrB,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import*as React from'react';import {MoreHorizontal,ChevronRight,ChevronLeft}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';import {buttonVariants}from'./button.js';const Pagination = ({
|
|
2
|
+
className,
|
|
3
|
+
...props
|
|
4
|
+
}) => React.createElement("nav", {
|
|
5
|
+
role: "navigation",
|
|
6
|
+
"aria-label": "pagination",
|
|
7
|
+
className: cn('mx-auto flex w-full justify-center', className),
|
|
8
|
+
...props
|
|
9
|
+
});
|
|
10
|
+
Pagination.displayName = 'Pagination';
|
|
11
|
+
const PaginationContent = React.forwardRef(({
|
|
12
|
+
className,
|
|
13
|
+
...props
|
|
14
|
+
}, ref) => React.createElement("ul", {
|
|
15
|
+
ref: ref,
|
|
16
|
+
className: cn('flex flex-row items-center gap-1', className),
|
|
17
|
+
...props
|
|
18
|
+
}));
|
|
19
|
+
PaginationContent.displayName = 'PaginationContent';
|
|
20
|
+
const PaginationItem = React.forwardRef(({
|
|
21
|
+
className,
|
|
22
|
+
...props
|
|
23
|
+
}, ref) => React.createElement("li", {
|
|
24
|
+
ref: ref,
|
|
25
|
+
className: cn('', className),
|
|
26
|
+
...props
|
|
27
|
+
}));
|
|
28
|
+
PaginationItem.displayName = 'PaginationItem';
|
|
29
|
+
const PaginationLink = ({
|
|
30
|
+
className,
|
|
31
|
+
isActive,
|
|
32
|
+
size = 'icon',
|
|
33
|
+
...props
|
|
34
|
+
}) => React.createElement("a", {
|
|
35
|
+
"aria-current": isActive ? 'page' : undefined,
|
|
36
|
+
className: cn(buttonVariants({
|
|
37
|
+
variant: isActive ? 'outline' : 'ghost',
|
|
38
|
+
size
|
|
39
|
+
}), className),
|
|
40
|
+
...props
|
|
41
|
+
});
|
|
42
|
+
PaginationLink.displayName = 'PaginationLink';
|
|
43
|
+
const PaginationPrevious = ({
|
|
44
|
+
className,
|
|
45
|
+
...props
|
|
46
|
+
}) => React.createElement(PaginationLink, {
|
|
47
|
+
"aria-label": "Go to previous page",
|
|
48
|
+
size: "default",
|
|
49
|
+
className: cn('gap-1 pl-2.5', className),
|
|
50
|
+
...props
|
|
51
|
+
}, React.createElement(ChevronLeft, {
|
|
52
|
+
className: "h-4 w-4"
|
|
53
|
+
}), React.createElement("span", null, "Previous"));
|
|
54
|
+
PaginationPrevious.displayName = 'PaginationPrevious';
|
|
55
|
+
const PaginationNext = ({
|
|
56
|
+
className,
|
|
57
|
+
...props
|
|
58
|
+
}) => React.createElement(PaginationLink, {
|
|
59
|
+
"aria-label": "Go to next page",
|
|
60
|
+
size: "default",
|
|
61
|
+
className: cn('gap-1 pr-2.5', className),
|
|
62
|
+
...props
|
|
63
|
+
}, React.createElement("span", null, "Next"), React.createElement(ChevronRight, {
|
|
64
|
+
className: "h-4 w-4"
|
|
65
|
+
}));
|
|
66
|
+
PaginationNext.displayName = 'PaginationNext';
|
|
67
|
+
const PaginationEllipsis = ({
|
|
68
|
+
className,
|
|
69
|
+
...props
|
|
70
|
+
}) => React.createElement("span", {
|
|
71
|
+
"aria-hidden": true,
|
|
72
|
+
className: cn('flex h-9 w-9 items-center justify-center', className),
|
|
73
|
+
...props
|
|
74
|
+
}, React.createElement(MoreHorizontal, {
|
|
75
|
+
className: "h-4 w-4"
|
|
76
|
+
}), React.createElement("span", {
|
|
77
|
+
className: "sr-only"
|
|
78
|
+
}, "More pages"));
|
|
79
|
+
PaginationEllipsis.displayName = 'PaginationEllipsis';export{Pagination,PaginationContent,PaginationEllipsis,PaginationItem,PaginationLink,PaginationNext,PaginationPrevious};//# sourceMappingURL=pagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.js","sources":["../../src/shardui/pagination.tsx"],"sourcesContent":[null],"names":[],"mappings":";EAaE,SAAA;AAGF,EAAA,GAAA;AAOA,CAAA,KAAA,KAAA,CAAA,aAAM,CAAA,KAAc,EAAA;AAKpB,EAAA;cACa,EAAE,YAAQ;AACtB,EAAA,SAAQ,EAAA,EAAA,CAAA,oCACe,EAAC,SAAK,CAAA;AAE9B,EAAA,GAAA;;;AAYE,MAAA,iBAAA,GAAA,KAAA,CAAA,UAAA,CAAA,CAAA;AAGF,EAAA;AAAqD,EAAA,GAAA;;EAUnD,GAAA,EAAA,GAAA;AAGF,EAAA,aAAM,CAAA,kCAAc,EAAA,SAAA,CAAA;AAA6B,EAAA,GAAA;;iBAK/C,CAAA,WAAA,GAAA,mBAAA;AAGF,MAAA,cAAM,GAAA,KAAA,CAAA,UAAkB,CAAA,CAAA;AAA6B,EAAA,SAAA;;CAKpD,EAAC,GAAA,KAAA,KAAA,CAAA,aAAA,CAAA,IAAA,EAAA;AAGF,EAAA,GAAA,EAAO,GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { Popover, PopoverTrigger, PopoverContent };
|
|
7
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/shardui/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAI5D,QAAA,MAAM,OAAO,yCAAwB,CAAC;AAEtC,QAAA,MAAM,cAAc,gHAA2B,CAAC;AAEhD,QAAA,MAAM,cAAc,gKAgBlB,CAAC;AAGH,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import*as React from'react';import*as PopoverPrimitive from'@radix-ui/react-popover';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Popover = PopoverPrimitive.Root;
|
|
2
|
+
const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
3
|
+
const PopoverContent = React.forwardRef(({
|
|
4
|
+
className,
|
|
5
|
+
align = 'center',
|
|
6
|
+
sideOffset = 4,
|
|
7
|
+
...props
|
|
8
|
+
}, ref) => React.createElement(PopoverPrimitive.Portal, null, React.createElement(PopoverPrimitive.Content, {
|
|
9
|
+
ref: ref,
|
|
10
|
+
align: align,
|
|
11
|
+
sideOffset: sideOffset,
|
|
12
|
+
className: cn('z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className),
|
|
13
|
+
...props
|
|
14
|
+
})));
|
|
15
|
+
PopoverContent.displayName = PopoverPrimitive.Content.displayName;export{Popover,PopoverContent,PopoverTrigger};//# sourceMappingURL=popover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.js","sources":["../../src/shardui/popover.tsx"],"sourcesContent":[null],"names":[],"mappings":"4LAOA,MAAA,OAAA,GAAM,gBAAc,CAAA;AAEpB,MAAA,cAAM,GAAA,gBAAc,CAAA;AAmBpB,MAAA,iCAAkC,CAAA,CAAA;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
3
|
+
declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export { Progress };
|
|
5
|
+
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/shardui/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAI9D,QAAA,MAAM,QAAQ,2JAcZ,CAAC;AAGH,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import*as React from'react';import*as ProgressPrimitive from'@radix-ui/react-progress';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Progress = React.forwardRef(({
|
|
2
|
+
className,
|
|
3
|
+
value,
|
|
4
|
+
...props
|
|
5
|
+
}, ref) => React.createElement(ProgressPrimitive.Root, {
|
|
6
|
+
ref: ref,
|
|
7
|
+
className: cn('relative h-4 w-full overflow-hidden rounded-full bg-secondary', className),
|
|
8
|
+
...props
|
|
9
|
+
}, React.createElement(ProgressPrimitive.Indicator, {
|
|
10
|
+
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
11
|
+
style: {
|
|
12
|
+
transform: `translateX(-${100 - (value || 0)}%)`
|
|
13
|
+
}
|
|
14
|
+
})));
|
|
15
|
+
Progress.displayName = ProgressPrimitive.Root.displayName;export{Progress};//# sourceMappingURL=progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.js","sources":["../../src/shardui/progress.tsx"],"sourcesContent":[null],"names":[],"mappings":"8LAsBA,MAAA,QAAS,GAAQ,KAAG,CAAA,UAAA,CAAA,CAAA;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
3
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export { RadioGroup, RadioGroupItem };
|
|
6
|
+
//# sourceMappingURL=radio-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../src/shardui/radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AAKnE,QAAA,MAAM,UAAU,+JAKd,CAAC;AAGH,QAAA,MAAM,cAAc,yKAkBlB,CAAC;AAGH,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import*as React from'react';import*as RadioGroupPrimitive from'@radix-ui/react-radio-group';import {Circle}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const RadioGroup = React.forwardRef(({
|
|
2
|
+
className,
|
|
3
|
+
...props
|
|
4
|
+
}, ref) => {
|
|
5
|
+
return React.createElement(RadioGroupPrimitive.Root, {
|
|
6
|
+
className: cn('grid gap-2', className),
|
|
7
|
+
...props,
|
|
8
|
+
ref: ref
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
12
|
+
const RadioGroupItem = React.forwardRef(({
|
|
13
|
+
className,
|
|
14
|
+
...props
|
|
15
|
+
}, ref) => {
|
|
16
|
+
return React.createElement(RadioGroupPrimitive.Item, {
|
|
17
|
+
ref: ref,
|
|
18
|
+
className: cn('aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', className),
|
|
19
|
+
...props
|
|
20
|
+
}, React.createElement(RadioGroupPrimitive.Indicator, {
|
|
21
|
+
className: "flex items-center justify-center"
|
|
22
|
+
}, React.createElement(Circle, {
|
|
23
|
+
className: "h-2.5 w-2.5 fill-current text-current"
|
|
24
|
+
})));
|
|
25
|
+
});
|
|
26
|
+
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;export{RadioGroup,RadioGroupItem};//# sourceMappingURL=radio-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.js","sources":["../../src/shardui/radio-group.tsx"],"sourcesContent":[null],"names":[],"mappings":"qOAmCA,MAAA,UAAS,GAAU,KAAE,CAAA,UAAc,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
3
|
+
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React.JSX.Element;
|
|
4
|
+
declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLHeadingElement | HTMLParagraphElement | HTMLSelectElement | HTMLOptionElement | HTMLOptGroupElement | HTMLInputElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableRowElement | HTMLTableCellElement | HTMLSpanElement | HTMLImageElement | HTMLUListElement | HTMLLIElement | HTMLAnchorElement | HTMLObjectElement | HTMLLinkElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLabelElement | HTMLLegendElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSourceElement | HTMLStyleElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
5
|
+
className?: string | undefined;
|
|
6
|
+
collapsedSize?: number | undefined;
|
|
7
|
+
collapsible?: boolean | undefined;
|
|
8
|
+
defaultSize?: number | undefined;
|
|
9
|
+
id?: string | undefined;
|
|
10
|
+
maxSize?: number | undefined;
|
|
11
|
+
minSize?: number | undefined;
|
|
12
|
+
onCollapse?: ResizablePrimitive.PanelOnCollapse | undefined;
|
|
13
|
+
onExpand?: ResizablePrimitive.PanelOnExpand | undefined;
|
|
14
|
+
onResize?: ResizablePrimitive.PanelOnResize | undefined;
|
|
15
|
+
order?: number | undefined;
|
|
16
|
+
style?: object | undefined;
|
|
17
|
+
tagName?: keyof HTMLElementTagNameMap | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
children?: import("react").ReactNode;
|
|
20
|
+
} & React.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
|
|
21
|
+
declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
22
|
+
withHandle?: boolean;
|
|
23
|
+
}) => React.JSX.Element;
|
|
24
|
+
export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
|
|
25
|
+
//# sourceMappingURL=resizable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../src/shardui/resizable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAC;AAI7D,QAAA,MAAM,mBAAmB,GAAI,yBAAyB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,UAAU,CAAC,sBAK/G,CAAC;AAEF,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;kEAA2B,CAAC;AAEhD,QAAA,MAAM,eAAe,GAAI,qCAItB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,iBAAiB,CAAC,GAAG;IACnE,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,sBAcA,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {GripVertical}from'lucide-react';import React__default from'react';import*as ResizablePrimitive from'react-resizable-panels';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const ResizablePanelGroup = ({
|
|
2
|
+
className,
|
|
3
|
+
...props
|
|
4
|
+
}) => React__default.createElement(ResizablePrimitive.PanelGroup, {
|
|
5
|
+
className: cn('flex h-full w-full data-[panel-group-direction=vertical]:flex-col', className),
|
|
6
|
+
...props
|
|
7
|
+
});
|
|
8
|
+
const ResizablePanel = ResizablePrimitive.Panel;
|
|
9
|
+
const ResizableHandle = ({
|
|
10
|
+
withHandle,
|
|
11
|
+
className,
|
|
12
|
+
...props
|
|
13
|
+
}) => React__default.createElement(ResizablePrimitive.PanelResizeHandle, {
|
|
14
|
+
className: cn('relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90', className),
|
|
15
|
+
...props
|
|
16
|
+
}, withHandle && React__default.createElement("div", {
|
|
17
|
+
className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border"
|
|
18
|
+
}, React__default.createElement(GripVertical, {
|
|
19
|
+
className: "h-2.5 w-2.5"
|
|
20
|
+
})));export{ResizableHandle,ResizablePanel,ResizablePanelGroup};//# sourceMappingURL=resizable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resizable.js","sources":["../../src/shardui/resizable.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;AAeA,EAAA,SAAA,EAAA;iBAKI,CAAA,aAAa,CAAA,YAAQ,EAAA;AACxB,EAAA,SAAA,EAAA;AAgBD,CAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
3
|
+
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { ScrollArea, ScrollBar };
|
|
6
|
+
//# sourceMappingURL=scroll-area.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../src/shardui/scroll-area.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AAInE,QAAA,MAAM,UAAU,+JAWd,CAAC;AAGH,QAAA,MAAM,SAAS,wKAiBb,CAAC;AAGH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import*as React from'react';import*as ScrollAreaPrimitive from'@radix-ui/react-scroll-area';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const ScrollArea = React.forwardRef(({
|
|
2
|
+
className,
|
|
3
|
+
children,
|
|
4
|
+
...props
|
|
5
|
+
}, ref) => React.createElement(ScrollAreaPrimitive.Root, {
|
|
6
|
+
ref: ref,
|
|
7
|
+
className: cn('relative overflow-hidden', className),
|
|
8
|
+
...props
|
|
9
|
+
}, React.createElement(ScrollAreaPrimitive.Viewport, {
|
|
10
|
+
className: "h-full w-full rounded-[inherit]"
|
|
11
|
+
}, children), React.createElement(ScrollBar, null), React.createElement(ScrollAreaPrimitive.Corner, null)));
|
|
12
|
+
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
13
|
+
const ScrollBar = React.forwardRef(({
|
|
14
|
+
className,
|
|
15
|
+
orientation = 'vertical',
|
|
16
|
+
...props
|
|
17
|
+
}, ref) => React.createElement(ScrollAreaPrimitive.ScrollAreaScrollbar, {
|
|
18
|
+
ref: ref,
|
|
19
|
+
orientation: orientation,
|
|
20
|
+
className: cn('flex touch-none select-none transition-colors', orientation === 'vertical' && 'h-full w-2.5 border-l border-l-transparent p-[1px]', orientation === 'horizontal' && 'h-2.5 flex-col border-t border-t-transparent p-[1px]', className),
|
|
21
|
+
...props
|
|
22
|
+
}, React.createElement(ScrollAreaPrimitive.ScrollAreaThumb, {
|
|
23
|
+
className: "relative flex-1 rounded-full bg-border"
|
|
24
|
+
})));
|
|
25
|
+
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;export{ScrollArea,ScrollBar};//# sourceMappingURL=scroll-area.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll-area.js","sources":["../../src/shardui/scroll-area.tsx"],"sourcesContent":[null],"names":[],"mappings":"mMAmBA,MAAA,UAAM,GAAA,KAAS,CAAA,UAAA,CAAA,CAAA;AAoBf,EAAA,SAAS;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
3
|
+
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
4
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, };
|
|
14
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/shardui/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAK1D,QAAA,MAAM,MAAM,uCAAuB,CAAC;AAEpC,QAAA,MAAM,WAAW,yGAAwB,CAAC;AAE1C,QAAA,MAAM,WAAW,0GAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,oKAiBjB,CAAC;AAGH,QAAA,MAAM,oBAAoB,qKAWxB,CAAC;AAGH,QAAA,MAAM,sBAAsB,uKAW1B,CAAC;AAGH,QAAA,MAAM,aAAa,8JA6BjB,CAAC;AAGH,QAAA,MAAM,WAAW,4JAKf,CAAC;AAGH,QAAA,MAAM,UAAU,2JAoBd,CAAC;AAGH,QAAA,MAAM,eAAe,gKAKnB,CAAC;AAGH,OAAO,EACH,MAAM,EACN,WAAW,EACX,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,sBAAsB,GACzB,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import*as React from'react';import*as SelectPrimitive from'@radix-ui/react-select';import {ChevronDown,ChevronUp,Check}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Select = SelectPrimitive.Root;
|
|
2
|
+
const SelectGroup = SelectPrimitive.Group;
|
|
3
|
+
const SelectValue = SelectPrimitive.Value;
|
|
4
|
+
const SelectTrigger = React.forwardRef(({
|
|
5
|
+
className,
|
|
6
|
+
children,
|
|
7
|
+
...props
|
|
8
|
+
}, ref) => React.createElement(SelectPrimitive.Trigger, {
|
|
9
|
+
ref: ref,
|
|
10
|
+
className: cn('flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1', className),
|
|
11
|
+
...props
|
|
12
|
+
}, children, React.createElement(SelectPrimitive.Icon, {
|
|
13
|
+
asChild: true
|
|
14
|
+
}, React.createElement(ChevronDown, {
|
|
15
|
+
className: "h-4 w-4 opacity-50"
|
|
16
|
+
}))));
|
|
17
|
+
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
18
|
+
const SelectScrollUpButton = React.forwardRef(({
|
|
19
|
+
className,
|
|
20
|
+
...props
|
|
21
|
+
}, ref) => React.createElement(SelectPrimitive.ScrollUpButton, {
|
|
22
|
+
ref: ref,
|
|
23
|
+
className: cn('flex cursor-default items-center justify-center py-1', className),
|
|
24
|
+
...props
|
|
25
|
+
}, React.createElement(ChevronUp, {
|
|
26
|
+
className: "h-4 w-4"
|
|
27
|
+
})));
|
|
28
|
+
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
29
|
+
const SelectScrollDownButton = React.forwardRef(({
|
|
30
|
+
className,
|
|
31
|
+
...props
|
|
32
|
+
}, ref) => React.createElement(SelectPrimitive.ScrollDownButton, {
|
|
33
|
+
ref: ref,
|
|
34
|
+
className: cn('flex cursor-default items-center justify-center py-1', className),
|
|
35
|
+
...props
|
|
36
|
+
}, React.createElement(ChevronDown, {
|
|
37
|
+
className: "h-4 w-4"
|
|
38
|
+
})));
|
|
39
|
+
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
40
|
+
const SelectContent = React.forwardRef(({
|
|
41
|
+
className,
|
|
42
|
+
children,
|
|
43
|
+
position = 'popper',
|
|
44
|
+
...props
|
|
45
|
+
}, ref) => React.createElement(SelectPrimitive.Portal, null, React.createElement(SelectPrimitive.Content, {
|
|
46
|
+
ref: ref,
|
|
47
|
+
className: cn('relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', position === 'popper' && 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1', className),
|
|
48
|
+
position: position,
|
|
49
|
+
...props
|
|
50
|
+
}, React.createElement(SelectScrollUpButton, null), React.createElement(SelectPrimitive.Viewport, {
|
|
51
|
+
className: cn('p-1', position === 'popper' && 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]')
|
|
52
|
+
}, children), React.createElement(SelectScrollDownButton, null))));
|
|
53
|
+
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
54
|
+
const SelectLabel = React.forwardRef(({
|
|
55
|
+
className,
|
|
56
|
+
...props
|
|
57
|
+
}, ref) => React.createElement(SelectPrimitive.Label, {
|
|
58
|
+
ref: ref,
|
|
59
|
+
className: cn('py-1.5 pl-8 pr-2 text-sm font-semibold', className),
|
|
60
|
+
...props
|
|
61
|
+
}));
|
|
62
|
+
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
63
|
+
const SelectItem = React.forwardRef(({
|
|
64
|
+
className,
|
|
65
|
+
children,
|
|
66
|
+
...props
|
|
67
|
+
}, ref) => React.createElement(SelectPrimitive.Item, {
|
|
68
|
+
ref: ref,
|
|
69
|
+
className: cn('relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
|
|
70
|
+
...props
|
|
71
|
+
}, React.createElement("span", {
|
|
72
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center"
|
|
73
|
+
}, React.createElement(SelectPrimitive.ItemIndicator, null, React.createElement(Check, {
|
|
74
|
+
className: "h-4 w-4"
|
|
75
|
+
}))), React.createElement(SelectPrimitive.ItemText, null, children)));
|
|
76
|
+
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
77
|
+
const SelectSeparator = React.forwardRef(({
|
|
78
|
+
className,
|
|
79
|
+
...props
|
|
80
|
+
}, ref) => React.createElement(SelectPrimitive.Separator, {
|
|
81
|
+
ref: ref,
|
|
82
|
+
className: cn('-mx-1 my-1 h-px bg-muted', className),
|
|
83
|
+
...props
|
|
84
|
+
}));
|
|
85
|
+
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;export{Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue};//# sourceMappingURL=select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.js","sources":["../../src/shardui/select.tsx"],"sourcesContent":[null],"names":[],"mappings":"iPAUA,MAAA,MAAA,GAAM,eAAW,CAAA;AAEjB,MAAA,WAAM,GAAA,eAAa,CAAA;AAoBnB,MAAA,WAAM,GAAA,eAAoB,CAAA;AAc1B,MAAA,aAAM,GAAA,KAAA,CAAA,UAAsB,CAAA,CAAA;AAc5B,EAAA,SAAA;AAgCA,EAAA,QAAA;AAQA,EAAA,GAAA;AAuBA,CAAA,EAAA,GAAA,KAAA,KAAM,CAAA,aAAe,CAAA,eAAA,CAAA,OAAA,EAAA;AAQrB,EAAA,GAAA,EAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
3
|
+
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export { Separator };
|
|
5
|
+
//# sourceMappingURL=separator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../src/shardui/separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAIhE,QAAA,MAAM,SAAS,6JAeb,CAAC;AAGH,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import*as React from'react';import*as SeparatorPrimitive from'@radix-ui/react-separator';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Separator = React.forwardRef(({
|
|
2
|
+
className,
|
|
3
|
+
orientation = 'horizontal',
|
|
4
|
+
decorative = true,
|
|
5
|
+
...props
|
|
6
|
+
}, ref) => React.createElement(SeparatorPrimitive.Root, {
|
|
7
|
+
ref: ref,
|
|
8
|
+
decorative: decorative,
|
|
9
|
+
orientation: orientation,
|
|
10
|
+
className: cn('shrink-0 bg-border', orientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]', className),
|
|
11
|
+
...props
|
|
12
|
+
}));
|
|
13
|
+
Separator.displayName = SeparatorPrimitive.Root.displayName;export{Separator};//# sourceMappingURL=separator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separator.js","sources":["../../src/shardui/separator.tsx"],"sourcesContent":[null],"names":[],"mappings":"gMAuBA,MAAA,SAAS,GAAS,KAAG,CAAA,UAAA,CAAA,CAAA;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
|
|
5
|
+
declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
|
|
8
|
+
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const sheetVariants: (props?: {
|
|
10
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
11
|
+
} & import("class-variance-authority/dist/types").ClassProp) => string;
|
|
12
|
+
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
13
|
+
}
|
|
14
|
+
declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const SheetHeader: {
|
|
16
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
declare const SheetFooter: {
|
|
20
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
24
|
+
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
25
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, };
|
|
26
|
+
//# sourceMappingURL=sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/shardui/sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,KAAK,sCAAsB,CAAC;AAElC,QAAA,MAAM,YAAY,6GAAyB,CAAC;AAE5C,QAAA,MAAM,UAAU,2GAAuB,CAAC;AAExC,QAAA,MAAM,WAAW,4CAAwB,CAAC;AAE1C,QAAA,MAAM,YAAY,6JAYhB,CAAC;AAGH,QAAA,MAAM,aAAa;;sEAelB,CAAC;AAEF,UAAU,iBACN,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,EACjE,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAE7C,QAAA,MAAM,YAAY,0FAajB,CAAC;AAGF,QAAA,MAAM,WAAW;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAEjF,CAAC;AAGF,QAAA,MAAM,WAAW;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAEjF,CAAC;AAGF,QAAA,MAAM,UAAU,mKAKd,CAAC;AAGH,QAAA,MAAM,gBAAgB,6KAKpB,CAAC;AAGH,OAAO,EACH,KAAK,EACL,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,WAAW,EACX,UAAU,EACV,YAAY,GACf,CAAC"}
|