@admin-layout/tailwind-ui 12.2.4-alpha.33 → 12.2.4-alpha.34
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/lib/components/AIToolbar/components/AIToolBar.d.ts +22 -0
- package/lib/components/AIToolbar/components/AIToolBar.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/AIToolBar.js +81 -0
- package/lib/components/AIToolbar/components/AIToolBar.js.map +1 -0
- package/lib/components/AIToolbar/components/AIToolbarPrimitives.d.ts +14 -0
- package/lib/components/AIToolbar/components/AIToolbarPrimitives.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/AIToolbarPrimitives.js +60 -0
- package/lib/components/AIToolbar/components/AIToolbarPrimitives.js.map +1 -0
- package/lib/components/AIToolbar/components/CustomCursor.d.ts +2 -0
- package/lib/components/AIToolbar/components/CustomCursor.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/CustomCursor.js +66 -0
- package/lib/components/AIToolbar/components/CustomCursor.js.map +1 -0
- package/lib/components/AIToolbar/components/DragButton.d.ts +9 -0
- package/lib/components/AIToolbar/components/DragButton.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/DragButton.js +57 -0
- package/lib/components/AIToolbar/components/DragButton.js.map +1 -0
- package/lib/components/AIToolbar/components/Markdown/copy-button.d.ts +7 -0
- package/lib/components/AIToolbar/components/Markdown/copy-button.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/Markdown/copy-button.js +30 -0
- package/lib/components/AIToolbar/components/Markdown/copy-button.js.map +1 -0
- package/lib/components/AIToolbar/components/Markdown/index.d.ts +7 -0
- package/lib/components/AIToolbar/components/Markdown/index.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/Markdown/index.js +46 -0
- package/lib/components/AIToolbar/components/Markdown/index.js.map +1 -0
- package/lib/components/AIToolbar/components/completion/Audio.d.ts +3 -0
- package/lib/components/AIToolbar/components/completion/Audio.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/completion/Audio.js +65 -0
- package/lib/components/AIToolbar/components/completion/Audio.js.map +1 -0
- package/lib/components/AIToolbar/components/completion/AutoSpeechVad.d.ts +11 -0
- package/lib/components/AIToolbar/components/completion/AutoSpeechVad.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/completion/AutoSpeechVad.js +66 -0
- package/lib/components/AIToolbar/components/completion/AutoSpeechVad.js.map +1 -0
- package/lib/components/AIToolbar/components/completion/Files.d.ts +6 -0
- package/lib/components/AIToolbar/components/completion/Files.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/completion/Files.js +126 -0
- package/lib/components/AIToolbar/components/completion/Files.js.map +1 -0
- package/lib/components/AIToolbar/components/completion/Input.d.ts +5 -0
- package/lib/components/AIToolbar/components/completion/Input.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/completion/Input.js +174 -0
- package/lib/components/AIToolbar/components/completion/Input.js.map +1 -0
- package/lib/components/AIToolbar/components/completion/MessageHistory.d.ts +11 -0
- package/lib/components/AIToolbar/components/completion/MessageHistory.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/completion/MessageHistory.js +90 -0
- package/lib/components/AIToolbar/components/completion/MessageHistory.js.map +1 -0
- package/lib/components/AIToolbar/components/completion/Screenshot.d.ts +6 -0
- package/lib/components/AIToolbar/components/completion/Screenshot.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/completion/Screenshot.js +28 -0
- package/lib/components/AIToolbar/components/completion/Screenshot.js.map +1 -0
- package/lib/components/AIToolbar/components/completion/index.d.ts +10 -0
- package/lib/components/AIToolbar/components/completion/index.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/completion/index.js +20 -0
- package/lib/components/AIToolbar/components/completion/index.js.map +1 -0
- package/lib/components/AIToolbar/components/index.d.ts +17 -0
- package/lib/components/AIToolbar/components/index.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/speech/Header.d.ts +14 -0
- package/lib/components/AIToolbar/components/speech/Header.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/speech/Header.js +82 -0
- package/lib/components/AIToolbar/components/speech/Header.js.map +1 -0
- package/lib/components/AIToolbar/components/speech/ModeSwitcher.d.ts +8 -0
- package/lib/components/AIToolbar/components/speech/ModeSwitcher.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/speech/ModeSwitcher.js +44 -0
- package/lib/components/AIToolbar/components/speech/ModeSwitcher.js.map +1 -0
- package/lib/components/AIToolbar/components/speech/PermissionFlow.d.ts +8 -0
- package/lib/components/AIToolbar/components/speech/PermissionFlow.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/speech/PermissionFlow.js +161 -0
- package/lib/components/AIToolbar/components/speech/PermissionFlow.js.map +1 -0
- package/lib/components/AIToolbar/components/speech/QuickActions.d.ts +13 -0
- package/lib/components/AIToolbar/components/speech/QuickActions.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/speech/QuickActions.js +100 -0
- package/lib/components/AIToolbar/components/speech/QuickActions.js.map +1 -0
- package/lib/components/AIToolbar/components/speech/RecordingPanel.d.ts +14 -0
- package/lib/components/AIToolbar/components/speech/RecordingPanel.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/speech/RecordingPanel.js +101 -0
- package/lib/components/AIToolbar/components/speech/RecordingPanel.js.map +1 -0
- package/lib/components/AIToolbar/components/speech/ResultsSection.d.ts +12 -0
- package/lib/components/AIToolbar/components/speech/ResultsSection.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/speech/ResultsSection.js +132 -0
- package/lib/components/AIToolbar/components/speech/ResultsSection.js.map +1 -0
- package/lib/components/AIToolbar/components/speech/SettingsPanel.d.ts +12 -0
- package/lib/components/AIToolbar/components/speech/SettingsPanel.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/speech/SettingsPanel.js +289 -0
- package/lib/components/AIToolbar/components/speech/SettingsPanel.js.map +1 -0
- package/lib/components/AIToolbar/components/speech/StatusIndicator.d.ts +10 -0
- package/lib/components/AIToolbar/components/speech/StatusIndicator.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/speech/StatusIndicator.js +48 -0
- package/lib/components/AIToolbar/components/speech/StatusIndicator.js.map +1 -0
- package/lib/components/AIToolbar/components/speech/Warning.d.ts +6 -0
- package/lib/components/AIToolbar/components/speech/Warning.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/speech/Warning.js +154 -0
- package/lib/components/AIToolbar/components/speech/Warning.js.map +1 -0
- package/lib/components/AIToolbar/components/speech/audio-visualizer.d.ts +7 -0
- package/lib/components/AIToolbar/components/speech/audio-visualizer.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/speech/audio-visualizer.js +194 -0
- package/lib/components/AIToolbar/components/speech/audio-visualizer.js.map +1 -0
- package/lib/components/AIToolbar/components/speech/floatArrayToWav.d.ts +2 -0
- package/lib/components/AIToolbar/components/speech/floatArrayToWav.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/speech/floatArrayToWav.js +32 -0
- package/lib/components/AIToolbar/components/speech/floatArrayToWav.js.map +1 -0
- package/lib/components/AIToolbar/components/speech/index.d.ts +4 -0
- package/lib/components/AIToolbar/components/speech/index.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/speech/index.js +292 -0
- package/lib/components/AIToolbar/components/speech/index.js.map +1 -0
- package/lib/components/AIToolbar/components/speech/promptTemplates.d.ts +12 -0
- package/lib/components/AIToolbar/components/speech/promptTemplates.d.ts.map +1 -0
- package/lib/components/AIToolbar/components/speech/promptTemplates.js +114 -0
- package/lib/components/AIToolbar/components/speech/promptTemplates.js.map +1 -0
- package/lib/components/AIToolbar/components/types.d.ts +175 -0
- package/lib/components/AIToolbar/components/types.d.ts.map +1 -0
- package/lib/components/AIToolbar/index.d.ts +5 -0
- package/lib/components/AIToolbar/index.d.ts.map +1 -0
- package/lib/components/Button/Button.d.ts +1 -1
- package/lib/components/Button/Button.d.ts.map +1 -1
- package/lib/components/Button/Button.js +7 -6
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/DatePicker/DatePicker.js +157 -139
- package/lib/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/components/Dialog/Dialog.d.ts +2 -2
- package/lib/components/Dialog/Dialog.d.ts.map +1 -1
- package/lib/components/Dialog/Dialog.js +54 -41
- package/lib/components/Dialog/Dialog.js.map +1 -1
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts +1 -2
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.js +2 -2
- package/lib/components/ErrorHandlers/ErrorBoundary.d.ts +1 -2
- package/lib/components/ErrorHandlers/ErrorBoundary.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/ErrorBoundary.js +35 -28
- package/lib/components/ErrorHandlers/ErrorBoundary.js.map +1 -1
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts +1 -2
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.js +20 -15
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.js.map +1 -1
- package/lib/components/ErrorHandlers/RemixErrorBoundary.d.ts +1 -2
- package/lib/components/ErrorHandlers/RemixErrorBoundary.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/RemixErrorBoundary.js +177 -152
- package/lib/components/ErrorHandlers/RemixErrorBoundary.js.map +1 -1
- package/lib/components/ErrorHandlers/SPAErrorBoundary.d.ts +1 -2
- package/lib/components/ErrorHandlers/SPAErrorBoundary.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/SPAErrorBoundary.js +207 -168
- package/lib/components/ErrorHandlers/SPAErrorBoundary.js.map +1 -1
- package/lib/components/ErrorPages/403.d.ts +1 -2
- package/lib/components/ErrorPages/403.d.ts.map +1 -1
- package/lib/components/ErrorPages/403.js +26 -18
- package/lib/components/ErrorPages/403.js.map +1 -1
- package/lib/components/ErrorPages/404.d.ts +1 -2
- package/lib/components/ErrorPages/404.d.ts.map +1 -1
- package/lib/components/ErrorPages/404.js +26 -18
- package/lib/components/ErrorPages/404.js.map +1 -1
- package/lib/components/ErrorPages/500.d.ts +1 -2
- package/lib/components/ErrorPages/500.d.ts.map +1 -1
- package/lib/components/ErrorPages/500.js +26 -18
- package/lib/components/ErrorPages/500.js.map +1 -1
- package/lib/components/InputToolBar/InputToolBar.d.ts +1 -2
- package/lib/components/InputToolBar/InputToolBar.d.ts.map +1 -1
- package/lib/components/InputToolBar/InputToolBar.js +286 -242
- package/lib/components/InputToolBar/InputToolBar.js.map +1 -1
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts +1 -2
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts.map +1 -1
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js +24 -19
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js.map +1 -1
- package/lib/components/Markdown/MarkdownBreadcrumbs.js +25 -18
- package/lib/components/Markdown/MarkdownBreadcrumbs.js.map +1 -1
- package/lib/components/Markdown/MarkdownCopyButton.js +136 -107
- package/lib/components/Markdown/MarkdownCopyButton.js.map +1 -1
- package/lib/components/Markdown/MarkdownHeader.js +35 -20
- package/lib/components/Markdown/MarkdownHeader.js.map +1 -1
- package/lib/components/Markdown/MarkdownNavigation.js +29 -22
- package/lib/components/Markdown/MarkdownNavigation.js.map +1 -1
- package/lib/components/Markdown/MarkdownPage.js +133 -116
- package/lib/components/Markdown/MarkdownPage.js.map +1 -1
- package/lib/components/Markdown/MarkdownTableOfContents.js +31 -25
- package/lib/components/Markdown/MarkdownTableOfContents.js.map +1 -1
- package/lib/components/OTP/OTPInput.js +32 -30
- package/lib/components/OTP/OTPInput.js.map +1 -1
- package/lib/components/OTP/OTPVerification.js +75 -55
- 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/PageContainer/PageContainer.js +29 -22
- package/lib/components/PageContainer/PageContainer.js.map +1 -1
- package/lib/components/PageLoading/index.js +8 -7
- package/lib/components/PageLoading/index.js.map +1 -1
- package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts +1 -2
- package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts.map +1 -1
- package/lib/components/ReactTable/Table.d.ts +1 -2
- package/lib/components/ReactTable/Table.d.ts.map +1 -1
- package/lib/components/ReactTable/Table.js +92 -71
- package/lib/components/ReactTable/Table.js.map +1 -1
- package/lib/components/ReactTable/TableFilters.d.ts +2 -3
- package/lib/components/ReactTable/TableFilters.d.ts.map +1 -1
- package/lib/components/ReactTable/TableFilters.js +40 -34
- package/lib/components/ReactTable/TableFilters.js.map +1 -1
- package/lib/components/Search/SearchInput.d.ts +1 -2
- package/lib/components/Search/SearchInput.d.ts.map +1 -1
- package/lib/components/Search/SearchInput.js +14 -13
- package/lib/components/Search/SearchInput.js.map +1 -1
- package/lib/components/Select/Select.d.ts +6 -6
- package/lib/components/Select/Select.d.ts.map +1 -1
- package/lib/components/Select/Select.js +60 -45
- package/lib/components/Select/Select.js.map +1 -1
- package/lib/components/Spin/index.js +14 -11
- package/lib/components/Spin/index.js.map +1 -1
- package/lib/components/ThemeProvider/ThemeProvider.js +5 -4
- package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -1
- package/lib/components/ThemeProvider/ThemeToggle.js +27 -24
- package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/hooks/useToast.d.ts +1 -1
- package/lib/hooks/useToast.d.ts.map +1 -1
- package/lib/hooks/useToast.js +46 -37
- package/lib/hooks/useToast.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/shardui/accordion.js +20 -16
- package/lib/shardui/accordion.js.map +1 -1
- package/lib/shardui/alert-dialog.d.ts +2 -2
- package/lib/shardui/alert-dialog.js +15 -13
- package/lib/shardui/alert-dialog.js.map +1 -1
- package/lib/shardui/alert.js +4 -4
- package/lib/shardui/alert.js.map +1 -1
- package/lib/shardui/avatar.js +4 -4
- package/lib/shardui/avatar.js.map +1 -1
- package/lib/shardui/badge.d.ts +1 -1
- package/lib/shardui/badge.d.ts.map +1 -1
- package/lib/shardui/badge.js +2 -2
- package/lib/shardui/badge.js.map +1 -1
- package/lib/shardui/breadcrumb.d.ts +2 -2
- package/lib/shardui/breadcrumb.js +19 -16
- package/lib/shardui/breadcrumb.js.map +1 -1
- package/lib/shardui/button.js +2 -2
- package/lib/shardui/button.js.map +1 -1
- package/lib/shardui/calendar.d.ts +1 -1
- package/lib/shardui/calendar.d.ts.map +1 -1
- package/lib/shardui/calendar.js +4 -4
- package/lib/shardui/card.js +7 -7
- package/lib/shardui/card.js.map +1 -1
- package/lib/shardui/carousel.js +40 -33
- package/lib/shardui/carousel.js.map +1 -1
- package/lib/shardui/chart.d.ts +1 -1
- package/lib/shardui/chart.d.ts.map +1 -1
- package/lib/shardui/chart.js +81 -66
- package/lib/shardui/chart.js.map +1 -1
- package/lib/shardui/checkbox.js +10 -8
- package/lib/shardui/checkbox.js.map +1 -1
- package/lib/shardui/command.d.ts +2 -2
- package/lib/shardui/command.d.ts.map +1 -1
- package/lib/shardui/command.js +28 -24
- package/lib/shardui/command.js.map +1 -1
- package/lib/shardui/context-menu.d.ts +1 -1
- package/lib/shardui/context-menu.js +41 -30
- package/lib/shardui/context-menu.js.map +1 -1
- package/lib/shardui/dialog.d.ts +2 -2
- package/lib/shardui/dialog.js +22 -17
- package/lib/shardui/dialog.js.map +1 -1
- package/lib/shardui/drawer.d.ts +3 -3
- package/lib/shardui/drawer.js +17 -14
- package/lib/shardui/drawer.js.map +1 -1
- package/lib/shardui/dropdown-menu.d.ts +1 -1
- package/lib/shardui/dropdown-menu.js +42 -31
- package/lib/shardui/dropdown-menu.js.map +1 -1
- package/lib/shardui/form.d.ts +1 -1
- package/lib/shardui/form.d.ts.map +1 -1
- package/lib/shardui/form.js +22 -19
- package/lib/shardui/form.js.map +1 -1
- package/lib/shardui/hover-card.js +2 -2
- package/lib/shardui/hover-card.js.map +1 -1
- package/lib/shardui/input-otp.js +16 -13
- package/lib/shardui/input-otp.js.map +1 -1
- package/lib/shardui/input.js +2 -2
- package/lib/shardui/input.js.map +1 -1
- package/lib/shardui/label.js +2 -2
- package/lib/shardui/label.js.map +1 -1
- package/lib/shardui/menubar.d.ts +1 -1
- package/lib/shardui/menubar.js +46 -35
- package/lib/shardui/menubar.js.map +1 -1
- package/lib/shardui/navigation-menu.js +28 -24
- package/lib/shardui/navigation-menu.js.map +1 -1
- package/lib/shardui/pagination.d.ts +5 -5
- package/lib/shardui/pagination.js +30 -22
- package/lib/shardui/pagination.js.map +1 -1
- package/lib/shardui/popover.js +10 -8
- package/lib/shardui/popover.js.map +1 -1
- package/lib/shardui/progress.js +10 -9
- package/lib/shardui/progress.js.map +1 -1
- package/lib/shardui/radio-group.js +11 -9
- package/lib/shardui/radio-group.js.map +1 -1
- package/lib/shardui/resizable.d.ts +3 -3
- package/lib/shardui/resizable.d.ts.map +1 -1
- package/lib/shardui/resizable.js +11 -9
- package/lib/shardui/resizable.js.map +1 -1
- package/lib/shardui/scroll-area.js +14 -11
- package/lib/shardui/scroll-area.js.map +1 -1
- package/lib/shardui/select.js +49 -35
- package/lib/shardui/select.js.map +1 -1
- package/lib/shardui/separator.js +2 -2
- package/lib/shardui/separator.js.map +1 -1
- package/lib/shardui/sheet.d.ts +2 -2
- package/lib/shardui/sheet.js +24 -19
- package/lib/shardui/sheet.js.map +1 -1
- package/lib/shardui/sidebar.js +104 -88
- package/lib/shardui/sidebar.js.map +1 -1
- package/lib/shardui/skeleton.d.ts +1 -1
- package/lib/shardui/skeleton.d.ts.map +1 -1
- package/lib/shardui/skeleton.js +2 -2
- package/lib/shardui/skeleton.js.map +1 -1
- package/lib/shardui/slider.js +12 -10
- package/lib/shardui/slider.js.map +1 -1
- package/lib/shardui/sonner.d.ts +1 -1
- package/lib/shardui/sonner.d.ts.map +1 -1
- package/lib/shardui/sonner.js +2 -2
- package/lib/shardui/sonner.js.map +1 -1
- package/lib/shardui/switch.js +7 -6
- package/lib/shardui/switch.js.map +1 -1
- package/lib/shardui/table.js +16 -15
- package/lib/shardui/table.js.map +1 -1
- package/lib/shardui/tabs.js +4 -4
- package/lib/shardui/tabs.js.map +1 -1
- package/lib/shardui/textarea.js +2 -2
- package/lib/shardui/textarea.js.map +1 -1
- package/lib/shardui/toast.js +12 -11
- package/lib/shardui/toast.js.map +1 -1
- package/lib/shardui/toaster.d.ts +1 -2
- package/lib/shardui/toaster.d.ts.map +1 -1
- package/lib/shardui/toaster.js +21 -14
- package/lib/shardui/toaster.js.map +1 -1
- package/lib/shardui/toggle-group.js +15 -12
- package/lib/shardui/toggle-group.js.map +1 -1
- package/lib/shardui/toggle.js +2 -2
- package/lib/shardui/toggle.js.map +1 -1
- package/lib/shardui/tooltip.js +2 -2
- package/lib/shardui/tooltip.js.map +1 -1
- package/package.json +6 -3
package/lib/shardui/menubar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as React from'react';import*as MenubarPrimitive from'@radix-ui/react-menubar';import {ChevronRight,Check,Circle}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const MenubarMenu = MenubarPrimitive.Menu;
|
|
1
|
+
import {jsx,jsxs}from'react/jsx-runtime';import*as React from'react';import*as MenubarPrimitive from'@radix-ui/react-menubar';import {ChevronRight,Check,Circle}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const MenubarMenu = MenubarPrimitive.Menu;
|
|
2
2
|
const MenubarGroup = MenubarPrimitive.Group;
|
|
3
3
|
const MenubarPortal = MenubarPrimitive.Portal;
|
|
4
4
|
const MenubarSub = MenubarPrimitive.Sub;
|
|
@@ -6,7 +6,7 @@ const MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
|
6
6
|
const Menubar = React.forwardRef(({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}, ref) =>
|
|
9
|
+
}, ref) => jsx(MenubarPrimitive.Root, {
|
|
10
10
|
ref: ref,
|
|
11
11
|
className: cn('flex h-10 items-center space-x-1 rounded-md border bg-background p-1', className),
|
|
12
12
|
...props
|
|
@@ -15,7 +15,7 @@ Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
|
15
15
|
const MenubarTrigger = React.forwardRef(({
|
|
16
16
|
className,
|
|
17
17
|
...props
|
|
18
|
-
}, ref) =>
|
|
18
|
+
}, ref) => jsx(MenubarPrimitive.Trigger, {
|
|
19
19
|
ref: ref,
|
|
20
20
|
className: cn('flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground', className),
|
|
21
21
|
...props
|
|
@@ -26,18 +26,19 @@ const MenubarSubTrigger = React.forwardRef(({
|
|
|
26
26
|
inset,
|
|
27
27
|
children,
|
|
28
28
|
...props
|
|
29
|
-
}, ref) =>
|
|
29
|
+
}, ref) => jsxs(MenubarPrimitive.SubTrigger, {
|
|
30
30
|
ref: ref,
|
|
31
31
|
className: cn('flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground', inset && 'pl-8', className),
|
|
32
|
-
...props
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
})
|
|
32
|
+
...props,
|
|
33
|
+
children: [children, jsx(ChevronRight, {
|
|
34
|
+
className: "ml-auto h-4 w-4"
|
|
35
|
+
})]
|
|
36
|
+
}));
|
|
36
37
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
37
38
|
const MenubarSubContent = React.forwardRef(({
|
|
38
39
|
className,
|
|
39
40
|
...props
|
|
40
|
-
}, ref) =>
|
|
41
|
+
}, ref) => jsx(MenubarPrimitive.SubContent, {
|
|
41
42
|
ref: ref,
|
|
42
43
|
className: cn('z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className),
|
|
43
44
|
...props
|
|
@@ -49,20 +50,22 @@ const MenubarContent = React.forwardRef(({
|
|
|
49
50
|
alignOffset = -4,
|
|
50
51
|
sideOffset = 8,
|
|
51
52
|
...props
|
|
52
|
-
}, ref) =>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
}, ref) => jsx(MenubarPrimitive.Portal, {
|
|
54
|
+
children: jsx(MenubarPrimitive.Content, {
|
|
55
|
+
ref: ref,
|
|
56
|
+
align: align,
|
|
57
|
+
alignOffset: alignOffset,
|
|
58
|
+
sideOffset: sideOffset,
|
|
59
|
+
className: cn('z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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),
|
|
60
|
+
...props
|
|
61
|
+
})
|
|
62
|
+
}));
|
|
60
63
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
61
64
|
const MenubarItem = React.forwardRef(({
|
|
62
65
|
className,
|
|
63
66
|
inset,
|
|
64
67
|
...props
|
|
65
|
-
}, ref) =>
|
|
68
|
+
}, ref) => jsx(MenubarPrimitive.Item, {
|
|
66
69
|
ref: ref,
|
|
67
70
|
className: cn('relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', inset && 'pl-8', className),
|
|
68
71
|
...props
|
|
@@ -73,36 +76,44 @@ const MenubarCheckboxItem = React.forwardRef(({
|
|
|
73
76
|
children,
|
|
74
77
|
checked,
|
|
75
78
|
...props
|
|
76
|
-
}, ref) =>
|
|
79
|
+
}, ref) => jsxs(MenubarPrimitive.CheckboxItem, {
|
|
77
80
|
ref: ref,
|
|
78
81
|
className: cn('relative flex 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),
|
|
79
82
|
checked: checked,
|
|
80
|
-
...props
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
...props,
|
|
84
|
+
children: [jsx("span", {
|
|
85
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
86
|
+
children: jsx(MenubarPrimitive.ItemIndicator, {
|
|
87
|
+
children: jsx(Check, {
|
|
88
|
+
className: "h-4 w-4"
|
|
89
|
+
})
|
|
90
|
+
})
|
|
91
|
+
}), children]
|
|
92
|
+
}));
|
|
86
93
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
87
94
|
const MenubarRadioItem = React.forwardRef(({
|
|
88
95
|
className,
|
|
89
96
|
children,
|
|
90
97
|
...props
|
|
91
|
-
}, ref) =>
|
|
98
|
+
}, ref) => jsxs(MenubarPrimitive.RadioItem, {
|
|
92
99
|
ref: ref,
|
|
93
100
|
className: cn('relative flex 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),
|
|
94
|
-
...props
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
101
|
+
...props,
|
|
102
|
+
children: [jsx("span", {
|
|
103
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
104
|
+
children: jsx(MenubarPrimitive.ItemIndicator, {
|
|
105
|
+
children: jsx(Circle, {
|
|
106
|
+
className: "h-2 w-2 fill-current"
|
|
107
|
+
})
|
|
108
|
+
})
|
|
109
|
+
}), children]
|
|
110
|
+
}));
|
|
100
111
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
101
112
|
const MenubarLabel = React.forwardRef(({
|
|
102
113
|
className,
|
|
103
114
|
inset,
|
|
104
115
|
...props
|
|
105
|
-
}, ref) =>
|
|
116
|
+
}, ref) => jsx(MenubarPrimitive.Label, {
|
|
106
117
|
ref: ref,
|
|
107
118
|
className: cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className),
|
|
108
119
|
...props
|
|
@@ -111,7 +122,7 @@ MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
|
111
122
|
const MenubarSeparator = React.forwardRef(({
|
|
112
123
|
className,
|
|
113
124
|
...props
|
|
114
|
-
}, ref) =>
|
|
125
|
+
}, ref) => jsx(MenubarPrimitive.Separator, {
|
|
115
126
|
ref: ref,
|
|
116
127
|
className: cn('-mx-1 my-1 h-px bg-muted', className),
|
|
117
128
|
...props
|
|
@@ -121,7 +132,7 @@ const MenubarShortcut = ({
|
|
|
121
132
|
className,
|
|
122
133
|
...props
|
|
123
134
|
}) => {
|
|
124
|
-
return
|
|
135
|
+
return jsx("span", {
|
|
125
136
|
className: cn('ml-auto text-xs tracking-widest text-muted-foreground', className),
|
|
126
137
|
...props
|
|
127
138
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menubar.js","sources":["../../src/shardui/menubar.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"menubar.js","sources":["../../src/shardui/menubar.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;AAM0C,MAAA,aAAA,GAAA,gBAAA,CAAA;AAE1C,MAAA,UAAM,GAAA,gBAAY,CAAA;AAElB,MAAA,iBAAM,GAAA,gBAAa,CAAA;AAEnB,MAAA,OAAA,GAAM,KAAA,CAAA,UAAU,CAAA,CAAA;AAEhB,EAAA,SAAA;AAEA,EAAA,GAAA;AAYA,CAAA,EAAA,GAAA,KAAAA,GAAM,CAAA,gBAAc,CAAA,IAAA,EAAA;AAepB,EAAA,GAAA,EAAA;aAGgB,EAAA,CAAA,sEAAO,EAAA,SAAA,CAAA;;AAkBvB,CAAA,CAAA;AAeA,OAAA,CAAA,WAAM,GAAA,gBAAc,CAAA,IAAA,CAAA,WAAA;AAoBpB,MAAA,cAAM,GAAA,KAAW,CAAA,UAAA,CAAA,CAAA;;;AAkBjB,CAAA,EAAA,GAAA,KAAAA,GAAM,CAAA,gBAAA,CAAmB,OAAA,EAAA;AAuBzB,EAAA,GAAA,EAAA,GAAA;AAsBA,EAAA,aAAM,CAAA,wNAAY,EAAA,SAAA,CAAA;;;AAclB,cAAM,CAAA,WAAA,GAAA,gBAAgB,CAAA,OAAA,CAAA,WAAA;AAQtB,MAAA,iBAAM,GAAA,KAAe,CAAA,UAAA,CAAA,CAAA;AAA6B,EAAA,SAAA;;EAEhD,QAAA;AAGF,EAAA,GAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,17 +1,18 @@
|
|
|
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(({
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';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
2
|
className,
|
|
3
3
|
children,
|
|
4
4
|
...props
|
|
5
|
-
}, ref) =>
|
|
5
|
+
}, ref) => jsxs(NavigationMenuPrimitive.Root, {
|
|
6
6
|
ref: ref,
|
|
7
7
|
className: cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className),
|
|
8
|
-
...props
|
|
9
|
-
|
|
8
|
+
...props,
|
|
9
|
+
children: [children, jsx(NavigationMenuViewport, {})]
|
|
10
|
+
}));
|
|
10
11
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
11
12
|
const NavigationMenuList = React.forwardRef(({
|
|
12
13
|
className,
|
|
13
14
|
...props
|
|
14
|
-
}, ref) =>
|
|
15
|
+
}, ref) => jsx(NavigationMenuPrimitive.List, {
|
|
15
16
|
ref: ref,
|
|
16
17
|
className: cn('group flex flex-1 list-none items-center justify-center space-x-1', className),
|
|
17
18
|
...props
|
|
@@ -23,19 +24,20 @@ const NavigationMenuTrigger = React.forwardRef(({
|
|
|
23
24
|
className,
|
|
24
25
|
children,
|
|
25
26
|
...props
|
|
26
|
-
}, ref) =>
|
|
27
|
+
}, ref) => jsxs(NavigationMenuPrimitive.Trigger, {
|
|
27
28
|
ref: ref,
|
|
28
29
|
className: cn(navigationMenuTriggerStyle(), 'group', className),
|
|
29
|
-
...props
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
})
|
|
30
|
+
...props,
|
|
31
|
+
children: [children, ' ', jsx(ChevronDown, {
|
|
32
|
+
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
33
|
+
"aria-hidden": "true"
|
|
34
|
+
})]
|
|
35
|
+
}));
|
|
34
36
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
35
37
|
const NavigationMenuContent = React.forwardRef(({
|
|
36
38
|
className,
|
|
37
39
|
...props
|
|
38
|
-
}, ref) =>
|
|
40
|
+
}, ref) => jsx(NavigationMenuPrimitive.Content, {
|
|
39
41
|
ref: ref,
|
|
40
42
|
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
43
|
...props
|
|
@@ -45,22 +47,24 @@ const NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
|
45
47
|
const NavigationMenuViewport = React.forwardRef(({
|
|
46
48
|
className,
|
|
47
49
|
...props
|
|
48
|
-
}, ref) =>
|
|
49
|
-
className: cn('absolute left-0 top-full flex justify-center')
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
})
|
|
50
|
+
}, ref) => jsx("div", {
|
|
51
|
+
className: cn('absolute left-0 top-full flex justify-center'),
|
|
52
|
+
children: jsx(NavigationMenuPrimitive.Viewport, {
|
|
53
|
+
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),
|
|
54
|
+
ref: ref,
|
|
55
|
+
...props
|
|
56
|
+
})
|
|
57
|
+
}));
|
|
55
58
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
56
59
|
const NavigationMenuIndicator = React.forwardRef(({
|
|
57
60
|
className,
|
|
58
61
|
...props
|
|
59
|
-
}, ref) =>
|
|
62
|
+
}, ref) => jsx(NavigationMenuPrimitive.Indicator, {
|
|
60
63
|
ref: ref,
|
|
61
64
|
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
|
-
|
|
64
|
-
|
|
65
|
-
})
|
|
65
|
+
...props,
|
|
66
|
+
children: jsx("div", {
|
|
67
|
+
className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"
|
|
68
|
+
})
|
|
69
|
+
}));
|
|
66
70
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;export{NavigationMenu,NavigationMenuContent,NavigationMenuIndicator,NavigationMenuItem,NavigationMenuLink,NavigationMenuList,NavigationMenuTrigger,NavigationMenuViewport,navigationMenuTriggerStyle};//# sourceMappingURL=navigation-menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-menu.js","sources":["../../src/shardui/navigation-menu.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"navigation-menu.js","sources":["../../src/shardui/navigation-menu.tsx"],"sourcesContent":[null],"names":["_jsxs"],"mappings":"sUAwCA,MAAA,cAAM,GAAA,KAAA,CAAA,UAAqB,CAAA,CAAA;AAkB3B,EAAA,SAAA;AAeA,EAAA,QAAA;AAEA,EAAA,GAAA;AAiBA,CAAA,EAAA,GAAA,KAAAA,IAAM,CAAA,uBAAuB,CAAA,IAAA,EAAA;AAiB7B,EAAA,GAAA,EAAO,GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ButtonProps } from './button';
|
|
3
3
|
declare const Pagination: {
|
|
4
|
-
({ className, ...props }: React.ComponentProps<"nav">):
|
|
4
|
+
({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
7
7
|
declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
@@ -10,19 +10,19 @@ type PaginationLinkProps = {
|
|
|
10
10
|
isActive?: boolean;
|
|
11
11
|
} & Pick<ButtonProps, 'size'> & React.ComponentProps<'a'>;
|
|
12
12
|
declare const PaginationLink: {
|
|
13
|
-
({ className, isActive, size, ...props }: PaginationLinkProps):
|
|
13
|
+
({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
16
|
declare const PaginationPrevious: {
|
|
17
|
-
({ className, ...props }: React.ComponentProps<typeof PaginationLink>):
|
|
17
|
+
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
displayName: string;
|
|
19
19
|
};
|
|
20
20
|
declare const PaginationNext: {
|
|
21
|
-
({ className, ...props }: React.ComponentProps<typeof PaginationLink>):
|
|
21
|
+
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
displayName: string;
|
|
23
23
|
};
|
|
24
24
|
declare const PaginationEllipsis: {
|
|
25
|
-
({ className, ...props }: React.ComponentProps<"span">):
|
|
25
|
+
({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
displayName: string;
|
|
27
27
|
};
|
|
28
28
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
|
|
@@ -1,7 +1,7 @@
|
|
|
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 = ({
|
|
1
|
+
import {jsx,jsxs}from'react/jsx-runtime';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
2
|
className,
|
|
3
3
|
...props
|
|
4
|
-
}) =>
|
|
4
|
+
}) => jsx("nav", {
|
|
5
5
|
role: "navigation",
|
|
6
6
|
"aria-label": "pagination",
|
|
7
7
|
className: cn('mx-auto flex w-full justify-center', className),
|
|
@@ -11,7 +11,7 @@ Pagination.displayName = 'Pagination';
|
|
|
11
11
|
const PaginationContent = React.forwardRef(({
|
|
12
12
|
className,
|
|
13
13
|
...props
|
|
14
|
-
}, ref) =>
|
|
14
|
+
}, ref) => jsx("ul", {
|
|
15
15
|
ref: ref,
|
|
16
16
|
className: cn('flex flex-row items-center gap-1', className),
|
|
17
17
|
...props
|
|
@@ -20,7 +20,7 @@ PaginationContent.displayName = 'PaginationContent';
|
|
|
20
20
|
const PaginationItem = React.forwardRef(({
|
|
21
21
|
className,
|
|
22
22
|
...props
|
|
23
|
-
}, ref) =>
|
|
23
|
+
}, ref) => jsx("li", {
|
|
24
24
|
ref: ref,
|
|
25
25
|
className: cn('', className),
|
|
26
26
|
...props
|
|
@@ -31,7 +31,7 @@ const PaginationLink = ({
|
|
|
31
31
|
isActive,
|
|
32
32
|
size = 'icon',
|
|
33
33
|
...props
|
|
34
|
-
}) =>
|
|
34
|
+
}) => jsx("a", {
|
|
35
35
|
"aria-current": isActive ? 'page' : undefined,
|
|
36
36
|
className: cn(buttonVariants({
|
|
37
37
|
variant: isActive ? 'outline' : 'ghost',
|
|
@@ -43,37 +43,45 @@ PaginationLink.displayName = 'PaginationLink';
|
|
|
43
43
|
const PaginationPrevious = ({
|
|
44
44
|
className,
|
|
45
45
|
...props
|
|
46
|
-
}) =>
|
|
46
|
+
}) => jsxs(PaginationLink, {
|
|
47
47
|
"aria-label": "Go to previous page",
|
|
48
48
|
size: "default",
|
|
49
49
|
className: cn('gap-1 pl-2.5', className),
|
|
50
|
-
...props
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}),
|
|
50
|
+
...props,
|
|
51
|
+
children: [jsx(ChevronLeft, {
|
|
52
|
+
className: "h-4 w-4"
|
|
53
|
+
}), jsx("span", {
|
|
54
|
+
children: "Previous"
|
|
55
|
+
})]
|
|
56
|
+
});
|
|
54
57
|
PaginationPrevious.displayName = 'PaginationPrevious';
|
|
55
58
|
const PaginationNext = ({
|
|
56
59
|
className,
|
|
57
60
|
...props
|
|
58
|
-
}) =>
|
|
61
|
+
}) => jsxs(PaginationLink, {
|
|
59
62
|
"aria-label": "Go to next page",
|
|
60
63
|
size: "default",
|
|
61
64
|
className: cn('gap-1 pr-2.5', className),
|
|
62
|
-
...props
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
})
|
|
65
|
+
...props,
|
|
66
|
+
children: [jsx("span", {
|
|
67
|
+
children: "Next"
|
|
68
|
+
}), jsx(ChevronRight, {
|
|
69
|
+
className: "h-4 w-4"
|
|
70
|
+
})]
|
|
71
|
+
});
|
|
66
72
|
PaginationNext.displayName = 'PaginationNext';
|
|
67
73
|
const PaginationEllipsis = ({
|
|
68
74
|
className,
|
|
69
75
|
...props
|
|
70
|
-
}) =>
|
|
76
|
+
}) => jsxs("span", {
|
|
71
77
|
"aria-hidden": true,
|
|
72
78
|
className: cn('flex h-9 w-9 items-center justify-center', className),
|
|
73
|
-
...props
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}),
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
...props,
|
|
80
|
+
children: [jsx(MoreHorizontal, {
|
|
81
|
+
className: "h-4 w-4"
|
|
82
|
+
}), jsx("span", {
|
|
83
|
+
className: "sr-only",
|
|
84
|
+
children: "More pages"
|
|
85
|
+
})]
|
|
86
|
+
});
|
|
79
87
|
PaginationEllipsis.displayName = 'PaginationEllipsis';export{Pagination,PaginationContent,PaginationEllipsis,PaginationItem,PaginationLink,PaginationNext,PaginationPrevious};//# sourceMappingURL=pagination.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.js","sources":["../../src/shardui/pagination.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pagination.js","sources":["../../src/shardui/pagination.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"wRAaE,MAAA,UAAA,GAAA,CAAA;AAGF,EAAA,SAAA;AAOA,EAAA,GAAA;AAKA,CAAA;MACI,EAAA,YAAW;AACd,EAAA,YAAQ,EAAA,YAAmB;AAG5B,EAAA,aAAM,CAAA,oCAAc,EAAA,SAAA,CAAA;;;UAYlB,CAAA,WAAA,GAAA,YAAA;AAGF,MAAA,iBAAM,GAAA,KAAA,CAAkB,UAAA,CAAA,CAAA;AAA6B,EAAA,SAAA;;CAUpD,EAAC,GAAA,KAAAA,GAAA,CAAA,IAAA,EAAA;AAGF,EAAA,GAAA,EAAA;AAAiD,EAAA,SAAA,EAAA,EAAA,CAAA,kCAAoB,EAAC;;CAKrE,CAAC;AAGF,iBAAM,CAAA,WAAA,GAAkB,mBAAA;AAA6B,MAAA,cAAA,GAAA,KAAA,CAAA,UAAM,CAAA,CAAA;;EAKzD,GAAA;AAGF,CAAA,EAAA,GAAA,KACIA,GAAA,CAAA,IAAU,EACV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/shardui/popover.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
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;
|
|
1
|
+
import {jsx}from'react/jsx-runtime';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
2
|
const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
3
3
|
const PopoverContent = React.forwardRef(({
|
|
4
4
|
className,
|
|
5
5
|
align = 'center',
|
|
6
6
|
sideOffset = 4,
|
|
7
7
|
...props
|
|
8
|
-
}, ref) =>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
}, ref) => jsx(PopoverPrimitive.Portal, {
|
|
9
|
+
children: jsx(PopoverPrimitive.Content, {
|
|
10
|
+
ref: ref,
|
|
11
|
+
align: align,
|
|
12
|
+
sideOffset: sideOffset,
|
|
13
|
+
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),
|
|
14
|
+
...props
|
|
15
|
+
})
|
|
16
|
+
}));
|
|
15
17
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;export{Popover,PopoverContent,PopoverTrigger};//# sourceMappingURL=popover.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.js","sources":["../../src/shardui/popover.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"popover.js","sources":["../../src/shardui/popover.tsx"],"sourcesContent":[null],"names":[],"mappings":"gOASA,MAAA,OAAA,GAAM,gBAAc,CAAA;AAmBpB,MAAA,iCAAkC,CAAA;;;;;;;;;;;;;;;"}
|
package/lib/shardui/progress.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
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(({
|
|
1
|
+
import {jsx}from'react/jsx-runtime';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
2
|
className,
|
|
3
3
|
value,
|
|
4
4
|
...props
|
|
5
|
-
}, ref) =>
|
|
5
|
+
}, ref) => jsx(ProgressPrimitive.Root, {
|
|
6
6
|
ref: ref,
|
|
7
7
|
className: cn('relative h-4 w-full overflow-hidden rounded-full bg-secondary', className),
|
|
8
|
-
...props
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
})
|
|
8
|
+
...props,
|
|
9
|
+
children: jsx(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
|
+
}));
|
|
15
16
|
Progress.displayName = ProgressPrimitive.Root.displayName;export{Progress};//# sourceMappingURL=progress.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.js","sources":[
|
|
1
|
+
{"version":3,"file":"progress.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
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(({
|
|
1
|
+
import {jsx}from'react/jsx-runtime';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
2
|
className,
|
|
3
3
|
...props
|
|
4
4
|
}, ref) => {
|
|
5
|
-
return
|
|
5
|
+
return jsx(RadioGroupPrimitive.Root, {
|
|
6
6
|
className: cn('grid gap-2', className),
|
|
7
7
|
...props,
|
|
8
8
|
ref: ref
|
|
@@ -13,14 +13,16 @@ const RadioGroupItem = React.forwardRef(({
|
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
15
|
}, ref) => {
|
|
16
|
-
return
|
|
16
|
+
return jsx(RadioGroupPrimitive.Item, {
|
|
17
17
|
ref: ref,
|
|
18
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
...props,
|
|
20
|
+
children: jsx(RadioGroupPrimitive.Indicator, {
|
|
21
|
+
className: "flex items-center justify-center",
|
|
22
|
+
children: jsx(Circle, {
|
|
23
|
+
className: "h-2.5 w-2.5 fill-current text-current"
|
|
24
|
+
})
|
|
25
|
+
})
|
|
26
|
+
});
|
|
25
27
|
});
|
|
26
28
|
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;export{RadioGroup,RadioGroupItem};//# sourceMappingURL=radio-group.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.js","sources":[
|
|
1
|
+
{"version":3,"file":"radio-group.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
3
|
-
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) =>
|
|
4
|
-
declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLHeadingElement | HTMLParagraphElement | HTMLDetailsElement | HTMLPreElement | HTMLHtmlElement | HTMLHeadElement | HTMLBodyElement | HTMLMetaElement | HTMLTitleElement | HTMLScriptElement | HTMLSelectElement | HTMLOptionElement | HTMLOptGroupElement | HTMLInputElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableRowElement | HTMLTableCellElement | HTMLSpanElement | HTMLImageElement | HTMLUListElement | HTMLLIElement | HTMLAnchorElement | HTMLObjectElement | HTMLLinkElement | HTMLMapElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement |
|
|
3
|
+
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLHeadingElement | HTMLParagraphElement | HTMLDetailsElement | HTMLPreElement | HTMLHtmlElement | HTMLHeadElement | HTMLBodyElement | HTMLMetaElement | HTMLTitleElement | HTMLScriptElement | HTMLSelectElement | HTMLOptionElement | HTMLOptGroupElement | HTMLInputElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableRowElement | HTMLTableCellElement | HTMLSpanElement | HTMLImageElement | HTMLUListElement | HTMLLIElement | HTMLAnchorElement | HTMLObjectElement | HTMLLinkElement | HTMLMapElement | HTMLProgressElement | HTMLDialogElement | HTMLFormElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHRElement | HTMLIFrameElement | HTMLLabelElement | HTMLLegendElement | HTMLMeterElement | HTMLOListElement | HTMLOutputElement | HTMLSlotElement | HTMLSourceElement | HTMLStyleElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
5
5
|
className?: string | undefined;
|
|
6
6
|
collapsedSize?: number | undefined;
|
|
7
7
|
collapsible?: boolean | undefined;
|
|
@@ -20,6 +20,6 @@ declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAtt
|
|
|
20
20
|
} & React.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
|
|
21
21
|
declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
22
22
|
withHandle?: boolean;
|
|
23
|
-
}) =>
|
|
23
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
|
|
25
25
|
//# sourceMappingURL=resizable.d.ts.map
|
|
@@ -1 +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,
|
|
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,4CAK/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,4CAcA,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
|
package/lib/shardui/resizable.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {jsx}from'react/jsx-runtime';import {GripVertical}from'lucide-react';import*as ResizablePrimitive from'react-resizable-panels';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'react';import'fast-deep-equal/react.js';const ResizablePanelGroup = ({
|
|
2
2
|
className,
|
|
3
3
|
...props
|
|
4
|
-
}) =>
|
|
4
|
+
}) => jsx(ResizablePrimitive.PanelGroup, {
|
|
5
5
|
className: cn('flex h-full w-full data-[panel-group-direction=vertical]:flex-col', className),
|
|
6
6
|
...props
|
|
7
7
|
});
|
|
@@ -10,11 +10,13 @@ const ResizableHandle = ({
|
|
|
10
10
|
withHandle,
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}) =>
|
|
13
|
+
}) => jsx(ResizablePrimitive.PanelResizeHandle, {
|
|
14
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
})
|
|
15
|
+
...props,
|
|
16
|
+
children: withHandle && jsx("div", {
|
|
17
|
+
className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",
|
|
18
|
+
children: jsx(GripVertical, {
|
|
19
|
+
className: "h-2.5 w-2.5"
|
|
20
|
+
})
|
|
21
|
+
})
|
|
22
|
+
});export{ResizableHandle,ResizablePanel,ResizablePanelGroup};//# sourceMappingURL=resizable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resizable.js","sources":["../../src/shardui/resizable.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;AAeA,
|
|
1
|
+
{"version":3,"file":"resizable.js","sources":["../../src/shardui/resizable.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;;;;;;;;;;;AAeA,IAAA,SAAA,EAAM,2EAIkB;IACpB,QAAA,EAAUA,GAAG,CAAA,YAAQ,EAAA;AACxB,MAAA,SAAA,EAAA;AAgBD,KAAA;;"}
|
|
@@ -1,25 +1,28 @@
|
|
|
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(({
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';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
2
|
className,
|
|
3
3
|
children,
|
|
4
4
|
...props
|
|
5
|
-
}, ref) =>
|
|
5
|
+
}, ref) => jsxs(ScrollAreaPrimitive.Root, {
|
|
6
6
|
ref: ref,
|
|
7
7
|
className: cn('relative overflow-hidden', className),
|
|
8
|
-
...props
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
...props,
|
|
9
|
+
children: [jsx(ScrollAreaPrimitive.Viewport, {
|
|
10
|
+
className: "h-full w-full rounded-[inherit]",
|
|
11
|
+
children: children
|
|
12
|
+
}), jsx(ScrollBar, {}), jsx(ScrollAreaPrimitive.Corner, {})]
|
|
13
|
+
}));
|
|
12
14
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
13
15
|
const ScrollBar = React.forwardRef(({
|
|
14
16
|
className,
|
|
15
17
|
orientation = 'vertical',
|
|
16
18
|
...props
|
|
17
|
-
}, ref) =>
|
|
19
|
+
}, ref) => jsx(ScrollAreaPrimitive.ScrollAreaScrollbar, {
|
|
18
20
|
ref: ref,
|
|
19
21
|
orientation: orientation,
|
|
20
22
|
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
|
-
|
|
23
|
-
|
|
24
|
-
})
|
|
23
|
+
...props,
|
|
24
|
+
children: jsx(ScrollAreaPrimitive.ScrollAreaThumb, {
|
|
25
|
+
className: "relative flex-1 rounded-full bg-border"
|
|
26
|
+
})
|
|
27
|
+
}));
|
|
25
28
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;export{ScrollArea,ScrollBar};//# sourceMappingURL=scroll-area.js.map
|