@object-ui/components 3.1.4 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +44 -24
- package/CHANGELOG.md +26 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +34092 -33838
- package/dist/index.umd.cjs +40 -40
- package/dist/{src → packages/components/src}/custom/mobile-dialog-content.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/accordion.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/alert-dialog.d.ts +1 -1
- package/dist/packages/components/src/ui/aspect-ratio.d.ts +10 -0
- package/dist/{src → packages/components/src}/ui/avatar.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/button.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/chart.d.ts +7 -0
- package/dist/{src → packages/components/src}/ui/checkbox.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/collapsible.d.ts +8 -1
- package/dist/{src → packages/components/src}/ui/command.d.ts +2 -2
- package/dist/{src → packages/components/src}/ui/context-menu.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/dialog.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/drawer.d.ts +6 -10
- package/dist/{src → packages/components/src}/ui/dropdown-menu.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/form.d.ts +2 -2
- package/dist/{src → packages/components/src}/ui/hover-card.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/label.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/menubar.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/navigation-menu.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/popover.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/progress.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/radio-group.d.ts +1 -1
- package/dist/packages/components/src/ui/resizable.d.ts +7 -0
- package/dist/{src → packages/components/src}/ui/scroll-area.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/select.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/separator.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/sheet.d.ts +1 -2
- package/dist/{src → packages/components/src}/ui/sidebar.d.ts +1 -8
- package/dist/{src → packages/components/src}/ui/slider.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/switch.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/tabs.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/toast.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/toggle-group.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/toggle.d.ts +1 -1
- package/dist/{src → packages/components/src}/ui/tooltip.d.ts +1 -1
- package/package.json +40 -13
- package/src/__tests__/__snapshots__/snapshot-critical.test.tsx.snap +3 -3
- package/src/custom/button-group.tsx +2 -2
- package/src/custom/field.tsx +3 -3
- package/src/custom/filter-builder.tsx +1 -1
- package/src/custom/item.tsx +2 -2
- package/src/custom/mobile-dialog-content.tsx +1 -1
- package/src/custom/sort-builder.tsx +1 -1
- package/src/index.css +114 -0
- package/src/renderers/complex/data-table.tsx +9 -9
- package/src/renderers/data-display/table.tsx +1 -1
- package/src/renderers/form/form.tsx +9 -2
- package/src/stories-json/chatbot.stories.tsx +101 -0
- package/src/ui/accordion.tsx +1 -1
- package/src/ui/alert-dialog.tsx +1 -1
- package/src/ui/aspect-ratio.tsx +1 -1
- package/src/ui/avatar.tsx +1 -1
- package/src/ui/breadcrumb.tsx +2 -2
- package/src/ui/button.tsx +2 -4
- package/src/ui/chart.tsx +10 -0
- package/src/ui/checkbox.tsx +1 -1
- package/src/ui/collapsible.tsx +1 -1
- package/src/ui/command.tsx +2 -2
- package/src/ui/context-menu.tsx +3 -3
- package/src/ui/dialog.tsx +4 -21
- package/src/ui/drawer.tsx +13 -13
- package/src/ui/dropdown-menu.tsx +3 -3
- package/src/ui/form.tsx +5 -5
- package/src/ui/hover-card.tsx +2 -2
- package/src/ui/label.tsx +1 -1
- package/src/ui/menubar.tsx +3 -3
- package/src/ui/navigation-menu.tsx +1 -1
- package/src/ui/popover.tsx +2 -2
- package/src/ui/progress.tsx +1 -1
- package/src/ui/radio-group.tsx +1 -1
- package/src/ui/resizable.tsx +7 -7
- package/src/ui/scroll-area.tsx +1 -1
- package/src/ui/select.tsx +2 -2
- package/src/ui/separator.tsx +1 -1
- package/src/ui/sheet.tsx +2 -3
- package/src/ui/sidebar.tsx +28 -113
- package/src/ui/slider.tsx +3 -4
- package/src/ui/switch.tsx +1 -1
- package/src/ui/tabs.tsx +1 -1
- package/src/ui/toast.tsx +1 -1
- package/src/ui/toggle-group.tsx +1 -1
- package/src/ui/toggle.tsx +1 -1
- package/src/ui/tooltip.tsx +2 -2
- package/vite.config.ts +1 -0
- package/dist/src/ui/aspect-ratio.d.ts +0 -3
- package/dist/src/ui/resizable.d.ts +0 -14
- /package/dist/{src → packages/components/src}/SchemaRenderer.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/action-param-dialog.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/button-group.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/combobox.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/config-field-renderer.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/config-panel-renderer.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/config-row.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/date-picker.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/empty.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/field.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/filter-builder.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/index.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/input-group.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/item.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/kbd.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/native-select.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/navigation-overlay.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/section-header.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/sort-builder.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/spinner.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/view-skeleton.d.ts +0 -0
- /package/dist/{src → packages/components/src}/custom/view-states.d.ts +0 -0
- /package/dist/{src → packages/components/src}/debug/DebugPanel.d.ts +0 -0
- /package/dist/{src → packages/components/src}/debug/index.d.ts +0 -0
- /package/dist/{src → packages/components/src}/hooks/use-config-draft.d.ts +0 -0
- /package/dist/{src → packages/components/src}/hooks/use-mobile.d.ts +0 -0
- /package/dist/{src → packages/components/src}/index.d.ts +0 -0
- /package/dist/{src → packages/components/src}/lib/use-sync-external-store-shim.d.ts +0 -0
- /package/dist/{src → packages/components/src}/lib/use-sync-external-store-with-selector-shim.d.ts +0 -0
- /package/dist/{src → packages/components/src}/lib/utils.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/action/action-bar.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/action/action-button.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/action/action-group.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/action/action-icon.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/action/action-menu.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/action/index.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/action/resolve-icon.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/basic/button-group.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/basic/div.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/basic/html.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/basic/icon.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/basic/image.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/basic/index.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/basic/navigation-menu.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/basic/pagination.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/basic/separator.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/basic/span.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/basic/text.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/complex/carousel.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/complex/data-table.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/complex/filter-builder.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/complex/index.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/complex/resizable.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/complex/scroll-area.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/complex/table.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/data-display/alert.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/data-display/avatar.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/data-display/badge.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/data-display/breadcrumb.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/data-display/index.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/data-display/kbd.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/data-display/list.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/data-display/statistic.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/data-display/table.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/data-display/tree-view.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/disclosure/accordion.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/disclosure/collapsible.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/disclosure/index.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/disclosure/toggle-group.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/feedback/empty.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/feedback/index.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/feedback/loading.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/feedback/progress.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/feedback/skeleton.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/feedback/sonner.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/feedback/spinner.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/feedback/toast.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/feedback/toaster.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/form/button.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/form/calendar.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/form/checkbox.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/form/combobox.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/form/command.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/form/date-picker.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/form/file-upload.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/form/form.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/form/index.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/form/input-otp.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/form/input.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/form/label.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/form/radio-group.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/form/select.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/form/slider.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/form/switch.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/form/textarea.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/form/toggle.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/index.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/layout/aspect-ratio.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/layout/card.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/layout/container.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/layout/flex.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/layout/grid.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/layout/index.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/layout/page.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/layout/semantic.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/layout/stack.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/layout/tabs.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/navigation/header-bar.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/navigation/index.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/navigation/sidebar.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/overlay/alert-dialog.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/overlay/context-menu.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/overlay/dialog.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/overlay/drawer.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/overlay/dropdown-menu.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/overlay/hover-card.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/overlay/index.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/overlay/menubar.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/overlay/popover.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/overlay/sheet.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/overlay/tooltip.d.ts +0 -0
- /package/dist/{src → packages/components/src}/renderers/placeholders.d.ts +0 -0
- /package/dist/{src → packages/components/src}/types/config-panel.d.ts +0 -0
- /package/dist/{src → packages/components/src}/ui/alert.d.ts +0 -0
- /package/dist/{src → packages/components/src}/ui/badge.d.ts +0 -0
- /package/dist/{src → packages/components/src}/ui/breadcrumb.d.ts +0 -0
- /package/dist/{src → packages/components/src}/ui/calendar.d.ts +0 -0
- /package/dist/{src → packages/components/src}/ui/card.d.ts +0 -0
- /package/dist/{src → packages/components/src}/ui/carousel.d.ts +0 -0
- /package/dist/{src → packages/components/src}/ui/index.d.ts +0 -0
- /package/dist/{src → packages/components/src}/ui/input-otp.d.ts +0 -0
- /package/dist/{src → packages/components/src}/ui/input.d.ts +0 -0
- /package/dist/{src → packages/components/src}/ui/pagination.d.ts +0 -0
- /package/dist/{src → packages/components/src}/ui/skeleton.d.ts +0 -0
- /package/dist/{src → packages/components/src}/ui/sonner.d.ts +0 -0
- /package/dist/{src → packages/components/src}/ui/table.d.ts +0 -0
- /package/dist/{src → packages/components/src}/ui/textarea.d.ts +0 -0
- /package/dist/{src → packages/components/src}/ui/typography.d.ts +0 -0
package/src/ui/dialog.tsx
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"use client"
|
|
10
10
|
|
|
11
11
|
import * as React from "react"
|
|
12
|
-
import
|
|
12
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog"
|
|
13
13
|
import { X } from "lucide-react"
|
|
14
14
|
|
|
15
15
|
import { cn } from "../lib/utils"
|
|
@@ -46,31 +46,14 @@ const DialogContent = React.forwardRef<
|
|
|
46
46
|
<DialogPrimitive.Content
|
|
47
47
|
ref={ref}
|
|
48
48
|
className={cn(
|
|
49
|
-
|
|
50
|
-
"fixed inset-0 z-50 grid w-full bg-background p-4 shadow-lg duration-200",
|
|
51
|
-
"h-[100dvh]",
|
|
52
|
-
// Desktop (sm+): centered dialog with border + rounded corners
|
|
53
|
-
"sm:inset-auto sm:left-[50%] sm:top-[50%] sm:translate-x-[-50%] sm:translate-y-[-50%]",
|
|
54
|
-
"sm:max-w-lg sm:h-auto sm:max-h-[90vh] sm:rounded-lg sm:border sm:p-6",
|
|
55
|
-
// Animations
|
|
56
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
57
|
-
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
58
|
-
"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
59
|
-
"data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]",
|
|
60
|
-
"data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
|
|
49
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
61
50
|
className
|
|
62
51
|
)}
|
|
63
52
|
{...props}
|
|
64
53
|
>
|
|
65
54
|
{children}
|
|
66
|
-
<DialogPrimitive.Close className=
|
|
67
|
-
"
|
|
68
|
-
"hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
69
|
-
"disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
|
|
70
|
-
// Mobile touch target ≥ 44×44px (WCAG 2.5.5)
|
|
71
|
-
"min-h-[44px] min-w-[44px] sm:min-h-0 sm:min-w-0 flex items-center justify-center",
|
|
72
|
-
)}>
|
|
73
|
-
<X className="h-5 w-5 sm:h-4 sm:w-4" />
|
|
55
|
+
<DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
|
|
56
|
+
<X className="h-4 w-4" />
|
|
74
57
|
<span className="sr-only">Close</span>
|
|
75
58
|
</DialogPrimitive.Close>
|
|
76
59
|
</DialogPrimitive.Content>
|
package/src/ui/drawer.tsx
CHANGED
|
@@ -24,15 +24,15 @@ const Drawer = ({
|
|
|
24
24
|
)
|
|
25
25
|
Drawer.displayName = "Drawer"
|
|
26
26
|
|
|
27
|
-
const DrawerTrigger
|
|
27
|
+
const DrawerTrigger = DrawerPrimitive.Trigger
|
|
28
28
|
|
|
29
29
|
const DrawerPortal = DrawerPrimitive.Portal
|
|
30
30
|
|
|
31
|
-
const DrawerClose
|
|
31
|
+
const DrawerClose = DrawerPrimitive.Close
|
|
32
32
|
|
|
33
33
|
const DrawerOverlay = React.forwardRef<
|
|
34
|
-
|
|
35
|
-
React.ComponentPropsWithoutRef<
|
|
34
|
+
React.ElementRef<typeof DrawerPrimitive.Overlay>,
|
|
35
|
+
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>
|
|
36
36
|
>(({ className, ...props }, ref) => (
|
|
37
37
|
<DrawerPrimitive.Overlay
|
|
38
38
|
ref={ref}
|
|
@@ -40,11 +40,11 @@ const DrawerOverlay = React.forwardRef<
|
|
|
40
40
|
{...props}
|
|
41
41
|
/>
|
|
42
42
|
))
|
|
43
|
-
DrawerOverlay.displayName =
|
|
43
|
+
DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName
|
|
44
44
|
|
|
45
45
|
const DrawerContent = React.forwardRef<
|
|
46
|
-
|
|
47
|
-
React.ComponentPropsWithoutRef<
|
|
46
|
+
React.ElementRef<typeof DrawerPrimitive.Content>,
|
|
47
|
+
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>
|
|
48
48
|
>(({ className, children, ...props }, ref) => (
|
|
49
49
|
<DrawerPortal>
|
|
50
50
|
<DrawerOverlay />
|
|
@@ -86,8 +86,8 @@ const DrawerFooter = ({
|
|
|
86
86
|
DrawerFooter.displayName = "DrawerFooter"
|
|
87
87
|
|
|
88
88
|
const DrawerTitle = React.forwardRef<
|
|
89
|
-
|
|
90
|
-
React.ComponentPropsWithoutRef<
|
|
89
|
+
React.ElementRef<typeof DrawerPrimitive.Title>,
|
|
90
|
+
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>
|
|
91
91
|
>(({ className, ...props }, ref) => (
|
|
92
92
|
<DrawerPrimitive.Title
|
|
93
93
|
ref={ref}
|
|
@@ -98,11 +98,11 @@ const DrawerTitle = React.forwardRef<
|
|
|
98
98
|
{...props}
|
|
99
99
|
/>
|
|
100
100
|
))
|
|
101
|
-
DrawerTitle.displayName =
|
|
101
|
+
DrawerTitle.displayName = DrawerPrimitive.Title.displayName
|
|
102
102
|
|
|
103
103
|
const DrawerDescription = React.forwardRef<
|
|
104
|
-
|
|
105
|
-
React.ComponentPropsWithoutRef<
|
|
104
|
+
React.ElementRef<typeof DrawerPrimitive.Description>,
|
|
105
|
+
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description>
|
|
106
106
|
>(({ className, ...props }, ref) => (
|
|
107
107
|
<DrawerPrimitive.Description
|
|
108
108
|
ref={ref}
|
|
@@ -110,7 +110,7 @@ const DrawerDescription = React.forwardRef<
|
|
|
110
110
|
{...props}
|
|
111
111
|
/>
|
|
112
112
|
))
|
|
113
|
-
DrawerDescription.displayName =
|
|
113
|
+
DrawerDescription.displayName = DrawerPrimitive.Description.displayName
|
|
114
114
|
|
|
115
115
|
export {
|
|
116
116
|
Drawer,
|
package/src/ui/dropdown-menu.tsx
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"use client"
|
|
10
10
|
|
|
11
11
|
import * as React from "react"
|
|
12
|
-
import
|
|
12
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"
|
|
13
13
|
import { Check, ChevronRight, Circle } from "lucide-react"
|
|
14
14
|
|
|
15
15
|
import { cn } from "../lib/utils"
|
|
@@ -55,7 +55,7 @@ const DropdownMenuSubContent = React.forwardRef<
|
|
|
55
55
|
<DropdownMenuPrimitive.SubContent
|
|
56
56
|
ref={ref}
|
|
57
57
|
className={cn(
|
|
58
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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
|
|
58
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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 origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
59
59
|
className
|
|
60
60
|
)}
|
|
61
61
|
{...props}
|
|
@@ -73,7 +73,7 @@ const DropdownMenuContent = React.forwardRef<
|
|
|
73
73
|
ref={ref}
|
|
74
74
|
sideOffset={sideOffset}
|
|
75
75
|
className={cn(
|
|
76
|
-
"z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 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
|
|
76
|
+
"z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 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 origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
77
77
|
className
|
|
78
78
|
)}
|
|
79
79
|
{...props}
|
package/src/ui/form.tsx
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"use client"
|
|
10
10
|
|
|
11
11
|
import * as React from "react"
|
|
12
|
-
import
|
|
13
|
-
import { Slot
|
|
12
|
+
import * as LabelPrimitive from "@radix-ui/react-label"
|
|
13
|
+
import { Slot } from "@radix-ui/react-slot"
|
|
14
14
|
import {
|
|
15
15
|
Controller,
|
|
16
16
|
FormProvider,
|
|
@@ -112,13 +112,13 @@ const FormLabel = React.forwardRef<
|
|
|
112
112
|
FormLabel.displayName = "FormLabel"
|
|
113
113
|
|
|
114
114
|
const FormControl = React.forwardRef<
|
|
115
|
-
React.ElementRef<typeof
|
|
116
|
-
React.ComponentPropsWithoutRef<typeof
|
|
115
|
+
React.ElementRef<typeof Slot>,
|
|
116
|
+
React.ComponentPropsWithoutRef<typeof Slot>
|
|
117
117
|
>(({ ...props }, ref) => {
|
|
118
118
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField()
|
|
119
119
|
|
|
120
120
|
return (
|
|
121
|
-
<
|
|
121
|
+
<Slot
|
|
122
122
|
ref={ref}
|
|
123
123
|
id={formItemId}
|
|
124
124
|
aria-describedby={
|
package/src/ui/hover-card.tsx
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"use client"
|
|
10
10
|
|
|
11
11
|
import * as React from "react"
|
|
12
|
-
import
|
|
12
|
+
import * as HoverCardPrimitive from "@radix-ui/react-hover-card"
|
|
13
13
|
|
|
14
14
|
import { cn } from "../lib/utils"
|
|
15
15
|
|
|
@@ -26,7 +26,7 @@ const HoverCardContent = React.forwardRef<
|
|
|
26
26
|
align={align}
|
|
27
27
|
sideOffset={sideOffset}
|
|
28
28
|
className={cn(
|
|
29
|
-
"z-50 w-64 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
|
|
29
|
+
"z-50 w-64 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 origin-[--radix-hover-card-content-transform-origin]",
|
|
30
30
|
className
|
|
31
31
|
)}
|
|
32
32
|
{...props}
|
package/src/ui/label.tsx
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"use client"
|
|
10
10
|
|
|
11
11
|
import * as React from "react"
|
|
12
|
-
import
|
|
12
|
+
import * as LabelPrimitive from "@radix-ui/react-label"
|
|
13
13
|
import { cva, type VariantProps } from "class-variance-authority"
|
|
14
14
|
|
|
15
15
|
import { cn } from "../lib/utils"
|
package/src/ui/menubar.tsx
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"use client"
|
|
10
10
|
|
|
11
11
|
import * as React from "react"
|
|
12
|
-
import
|
|
12
|
+
import * as MenubarPrimitive from "@radix-ui/react-menubar"
|
|
13
13
|
import { Check, ChevronRight, Circle } from "lucide-react"
|
|
14
14
|
|
|
15
15
|
import { cn } from "../lib/utils"
|
|
@@ -102,7 +102,7 @@ const MenubarSubContent = React.forwardRef<
|
|
|
102
102
|
<MenubarPrimitive.SubContent
|
|
103
103
|
ref={ref}
|
|
104
104
|
className={cn(
|
|
105
|
-
"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
|
|
105
|
+
"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 origin-[--radix-menubar-content-transform-origin]",
|
|
106
106
|
className
|
|
107
107
|
)}
|
|
108
108
|
{...props}
|
|
@@ -125,7 +125,7 @@ const MenubarContent = React.forwardRef<
|
|
|
125
125
|
alignOffset={alignOffset}
|
|
126
126
|
sideOffset={sideOffset}
|
|
127
127
|
className={cn(
|
|
128
|
-
"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
|
|
128
|
+
"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 origin-[--radix-menubar-content-transform-origin]",
|
|
129
129
|
className
|
|
130
130
|
)}
|
|
131
131
|
{...props}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import * as React from "react"
|
|
10
|
-
import
|
|
10
|
+
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu"
|
|
11
11
|
import { cva } from "class-variance-authority"
|
|
12
12
|
import { ChevronDown } from "lucide-react"
|
|
13
13
|
|
package/src/ui/popover.tsx
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"use client"
|
|
10
10
|
|
|
11
11
|
import * as React from "react"
|
|
12
|
-
import
|
|
12
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover"
|
|
13
13
|
|
|
14
14
|
import { cn } from "../lib/utils"
|
|
15
15
|
|
|
@@ -27,7 +27,7 @@ const PopoverContent = React.forwardRef<
|
|
|
27
27
|
align={align}
|
|
28
28
|
sideOffset={sideOffset}
|
|
29
29
|
className={cn(
|
|
30
|
-
"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
|
|
30
|
+
"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 origin-[--radix-popover-content-transform-origin]",
|
|
31
31
|
className
|
|
32
32
|
)}
|
|
33
33
|
{...props}
|
package/src/ui/progress.tsx
CHANGED
package/src/ui/radio-group.tsx
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"use client"
|
|
10
10
|
|
|
11
11
|
import * as React from "react"
|
|
12
|
-
import
|
|
12
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group"
|
|
13
13
|
import { Circle } from "lucide-react"
|
|
14
14
|
|
|
15
15
|
import { cn } from "../lib/utils"
|
package/src/ui/resizable.tsx
CHANGED
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
"use client"
|
|
10
10
|
|
|
11
11
|
import { GripVertical } from "lucide-react"
|
|
12
|
-
import
|
|
12
|
+
import { Group, Panel, Separator } from "react-resizable-panels"
|
|
13
13
|
|
|
14
14
|
import { cn } from "../lib/utils"
|
|
15
15
|
|
|
16
16
|
const ResizablePanelGroup = ({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<typeof
|
|
20
|
-
<
|
|
19
|
+
}: React.ComponentProps<typeof Group>) => (
|
|
20
|
+
<Group
|
|
21
21
|
className={cn(
|
|
22
22
|
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
23
23
|
className
|
|
@@ -26,16 +26,16 @@ const ResizablePanelGroup = ({
|
|
|
26
26
|
/>
|
|
27
27
|
)
|
|
28
28
|
|
|
29
|
-
const ResizablePanel =
|
|
29
|
+
const ResizablePanel = Panel
|
|
30
30
|
|
|
31
31
|
const ResizableHandle = ({
|
|
32
32
|
withHandle,
|
|
33
33
|
className,
|
|
34
34
|
...props
|
|
35
|
-
}: React.ComponentProps<typeof
|
|
35
|
+
}: React.ComponentProps<typeof Separator> & {
|
|
36
36
|
withHandle?: boolean
|
|
37
37
|
}) => (
|
|
38
|
-
<
|
|
38
|
+
<Separator
|
|
39
39
|
className={cn(
|
|
40
40
|
"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",
|
|
41
41
|
className
|
|
@@ -47,7 +47,7 @@ const ResizableHandle = ({
|
|
|
47
47
|
<GripVertical className="h-2.5 w-2.5" />
|
|
48
48
|
</div>
|
|
49
49
|
)}
|
|
50
|
-
</
|
|
50
|
+
</Separator>
|
|
51
51
|
)
|
|
52
52
|
|
|
53
53
|
export { ResizablePanelGroup, ResizablePanel, ResizableHandle }
|
package/src/ui/scroll-area.tsx
CHANGED
package/src/ui/select.tsx
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"use client"
|
|
10
10
|
|
|
11
11
|
import * as React from "react"
|
|
12
|
-
import
|
|
12
|
+
import * as SelectPrimitive from "@radix-ui/react-select"
|
|
13
13
|
import { Check, ChevronDown, ChevronUp } from "lucide-react"
|
|
14
14
|
|
|
15
15
|
import { cn } from "../lib/utils"
|
|
@@ -83,7 +83,7 @@ const SelectContent = React.forwardRef<
|
|
|
83
83
|
<SelectPrimitive.Content
|
|
84
84
|
ref={ref}
|
|
85
85
|
className={cn(
|
|
86
|
-
"relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-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
|
|
86
|
+
"relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-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 origin-[--radix-select-content-transform-origin]",
|
|
87
87
|
position === "popper" &&
|
|
88
88
|
"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
89
89
|
className
|
package/src/ui/separator.tsx
CHANGED
package/src/ui/sheet.tsx
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"use client"
|
|
10
10
|
|
|
11
11
|
import * as React from "react"
|
|
12
|
-
import
|
|
12
|
+
import * as SheetPrimitive from "@radix-ui/react-dialog"
|
|
13
13
|
import { cva, type VariantProps } from "class-variance-authority"
|
|
14
14
|
import { X } from "lucide-react"
|
|
15
15
|
|
|
@@ -60,8 +60,7 @@ const sheetVariants = cva(
|
|
|
60
60
|
interface SheetContentProps
|
|
61
61
|
extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,
|
|
62
62
|
VariantProps<typeof sheetVariants> {
|
|
63
|
-
|
|
64
|
-
hideOverlay?: boolean;
|
|
63
|
+
hideOverlay?: boolean
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
const SheetContent = React.forwardRef<
|