@moduix/react-tailwind 1.0.0 → 1.1.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/dist/components/accordion/Accordion.js +13 -13
- package/dist/components/alert/Alert.js +12 -12
- package/dist/components/angle-slider/AngleSlider.js +16 -16
- package/dist/components/avatar/Avatar.js +7 -7
- package/dist/components/bleed/Bleed.js +1 -1
- package/dist/components/card/Card.js +33 -33
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel.js +22 -22
- package/dist/components/chart/Chart.js +18 -18
- package/dist/components/checkbox/Checkbox.js +12 -12
- package/dist/components/clipboard/Clipboard.js +19 -18
- package/dist/components/collapsible/Collapsible.js +11 -11
- package/dist/components/color-picker/ColorPicker.js +47 -47
- package/dist/components/combobox/Combobox.js +31 -31
- package/dist/components/command-palette/CommandPalette.js +48 -48
- package/dist/components/container/Container.js +5 -5
- package/dist/components/date-input/DateInput.js +14 -14
- package/dist/components/date-picker/DatePicker.js +51 -51
- package/dist/components/dialog/Dialog.js +20 -20
- package/dist/components/drawer/Drawer.js +30 -30
- package/dist/components/editable/Editable.js +17 -17
- package/dist/components/empty/Empty.js +13 -13
- package/dist/components/field/Field.js +19 -19
- package/dist/components/file-upload/FileUpload.js +28 -28
- package/dist/components/floating-panel/FloatingPanel.d.ts +1 -1
- package/dist/components/floating-panel/FloatingPanel.js +22 -22
- package/dist/components/floating-panel/index.d.ts +1 -0
- package/dist/components/hover-card/HoverCard.d.ts +1 -1
- package/dist/components/hover-card/HoverCard.js +11 -11
- package/dist/components/image-cropper/ImageCropper.js +14 -14
- package/dist/components/input-group/InputGroup.js +1 -1
- package/dist/components/lightbox/Lightbox.js +25 -25
- package/dist/components/listbox/Listbox.js +31 -31
- package/dist/components/marquee/Marquee.js +12 -12
- package/dist/components/menu/Menu.js +42 -42
- package/dist/components/navigation-menu/NavigationMenu.js +24 -24
- package/dist/components/number-input/NumberInput.js +16 -16
- package/dist/components/pagination/Pagination.js +11 -11
- package/dist/components/password-input/PasswordInput.js +13 -13
- package/dist/components/pin-input/PinInput.js +11 -11
- package/dist/components/popover/Popover.js +25 -25
- package/dist/components/progress-circular/ProgressCircular.js +16 -16
- package/dist/components/progress-linear/ProgressLinear.js +14 -14
- package/dist/components/qr-code/QrCode.js +12 -12
- package/dist/components/radio-group/RadioGroup.js +14 -14
- package/dist/components/rating-group/RatingGroup.js +11 -11
- package/dist/components/segment-group/SegmentGroup.js +14 -14
- package/dist/components/select/Select.js +33 -33
- package/dist/components/sidebar/Sidebar.js +51 -44
- package/dist/components/signature-pad/SignaturePad.js +11 -11
- package/dist/components/slider/Slider.js +22 -22
- package/dist/components/split-button/SplitButton.d.ts +6 -6
- package/dist/components/split-button/SplitButton.js +17 -13
- package/dist/components/splitter/Splitter.js +9 -9
- package/dist/components/steps/Steps.js +23 -23
- package/dist/components/swap/Swap.js +6 -6
- package/dist/components/switch/Switch.js +9 -9
- package/dist/components/table/Table.js +23 -23
- package/dist/components/tabs/Tabs.js +12 -12
- package/dist/components/tags-input/TagsInput.js +20 -20
- package/dist/components/timer/Timer.js +14 -14
- package/dist/components/toast/Toast.js +8 -8
- package/dist/components/toc/Toc.js +19 -19
- package/dist/components/toggle/Toggle.js +4 -4
- package/dist/components/tooltip/Tooltip.js +11 -11
- package/dist/components/tour/Tour.js +26 -26
- package/dist/components/tree-view/TreeView.js +30 -30
- package/dist/styles/animations.css +8 -8
- package/package.json +1 -1
|
@@ -30,53 +30,53 @@ function HoverCardRootProvider({ lazyMount = true, portalled, portalRef, unmount
|
|
|
30
30
|
const HoverCard_HoverCardTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
31
31
|
return /*#__PURE__*/ jsx(HoverCard.Trigger, {
|
|
32
32
|
ref: ref,
|
|
33
|
-
"data-slot": "hover-card-trigger",
|
|
34
33
|
asChild: asChild,
|
|
35
34
|
className: cn(!asChild && 'inline-flex cursor-pointer items-center gap-1 text-primary underline decoration-primary/60 decoration-1 underline-offset-2 outline-0 transition-[color,text-decoration-color] duration-150 ease-in-out focus-visible:rounded-xs focus-visible:no-underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 data-[state=open]:decoration-primary motion-reduce:transition-none [@media(hover:hover)]:hover:decoration-primary', className),
|
|
36
|
-
...props
|
|
35
|
+
...props,
|
|
36
|
+
"data-slot": "hover-card-trigger"
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
39
|
const HoverCard_HoverCardPositioner = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
40
40
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
41
41
|
children: /*#__PURE__*/ jsx(HoverCard.Positioner, {
|
|
42
42
|
ref: ref,
|
|
43
|
-
"data-slot": "hover-card-positioner",
|
|
44
43
|
className: cn('z-[var(--z-index,var(--moduix-z-popup))] max-w-[var(--available-width)] outline-0', className),
|
|
45
|
-
...props
|
|
44
|
+
...props,
|
|
45
|
+
"data-slot": "hover-card-positioner"
|
|
46
46
|
})
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
49
|
const HoverCard_HoverCardContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
50
50
|
return /*#__PURE__*/ jsx(HoverCard.Content, {
|
|
51
51
|
ref: ref,
|
|
52
|
-
"data-slot": "hover-card-content",
|
|
53
52
|
className: cn('relative z-[calc(var(--moduix-z-popup)+var(--layer-index,0))] max-h-[min(24rem,var(--available-height,100dvh))] max-w-[min(24rem,var(--available-width))] min-w-[min(14rem,var(--available-width))] origin-[var(--transform-origin)] overflow-visible rounded-lg border border-border bg-popover p-2 wrap-anywhere text-popover-foreground shadow-lg outline-0 has-[>[data-slot=hover-card-body]]:flex has-[>[data-slot=hover-card-body]]:flex-col data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open motion-reduce:animate-none has-[>[data-slot=hover-card-body]]:[&>[data-slot=hover-card-body]]:overflow-auto', className),
|
|
54
|
-
...props
|
|
53
|
+
...props,
|
|
54
|
+
"data-slot": "hover-card-content"
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
57
|
const HoverCard_HoverCardArrow = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
58
58
|
return /*#__PURE__*/ jsx(HoverCard.Arrow, {
|
|
59
59
|
ref: ref,
|
|
60
|
-
"data-slot": "hover-card-arrow",
|
|
61
60
|
className: cn('[--arrow-background:var(--color-popover)] [--arrow-shadow-color:var(--color-border)] [--arrow-size:0.625rem]', className),
|
|
62
61
|
...props,
|
|
62
|
+
"data-slot": "hover-card-arrow",
|
|
63
63
|
children: children ?? /*#__PURE__*/ jsx(HoverCard_HoverCardArrowTip, {})
|
|
64
64
|
});
|
|
65
65
|
});
|
|
66
66
|
const HoverCard_HoverCardArrowTip = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
67
67
|
return /*#__PURE__*/ jsx(HoverCard.ArrowTip, {
|
|
68
68
|
ref: ref,
|
|
69
|
-
"data-slot": "hover-card-arrow-tip",
|
|
70
69
|
className: cn('border-t border-l border-border', className),
|
|
71
|
-
...props
|
|
70
|
+
...props,
|
|
71
|
+
"data-slot": "hover-card-arrow-tip"
|
|
72
72
|
});
|
|
73
73
|
});
|
|
74
74
|
const HoverCard_HoverCardBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
75
75
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
76
76
|
ref: ref,
|
|
77
|
-
"data-slot": "hover-card-body",
|
|
78
77
|
className: cn('min-h-0', className),
|
|
79
|
-
...props
|
|
78
|
+
...props,
|
|
79
|
+
"data-slot": "hover-card-body"
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
82
|
const HoverCard_HoverCard = Object.assign(HoverCardRoot, {
|
|
@@ -6,57 +6,57 @@ import { cn } from "../../internal/cn.js";
|
|
|
6
6
|
const ImageCropper_ImageCropperRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
7
7
|
return /*#__PURE__*/ jsx(ImageCropper.Root, {
|
|
8
8
|
ref: ref,
|
|
9
|
-
"data-slot": "image-cropper-root",
|
|
10
9
|
className: cn('box-border grid w-[32rem] max-w-full gap-3 text-foreground data-dragging:cursor-grabbing data-panning:cursor-grabbing', className),
|
|
11
|
-
...props
|
|
10
|
+
...props,
|
|
11
|
+
"data-slot": "image-cropper-root"
|
|
12
12
|
});
|
|
13
13
|
});
|
|
14
14
|
const ImageCropper_ImageCropperRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
15
15
|
return /*#__PURE__*/ jsx(ImageCropper.RootProvider, {
|
|
16
16
|
ref: ref,
|
|
17
|
-
"data-slot": "image-cropper-root-provider",
|
|
18
17
|
className: cn('box-border grid w-[32rem] max-w-full gap-3 text-foreground data-dragging:cursor-grabbing data-panning:cursor-grabbing', className),
|
|
19
|
-
...props
|
|
18
|
+
...props,
|
|
19
|
+
"data-slot": "image-cropper-root-provider"
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
22
|
const ImageCropper_ImageCropperViewport = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
23
23
|
return /*#__PURE__*/ jsx(ImageCropper.Viewport, {
|
|
24
24
|
ref: ref,
|
|
25
|
-
"data-slot": "image-cropper-viewport",
|
|
26
25
|
className: cn('box-border h-[min(20rem,62.5vw)] w-full overflow-hidden rounded-lg border border-border bg-background bg-[conic-gradient(rgb(0_0_0_/_8%)_25%,transparent_0_50%,rgb(0_0_0_/_8%)_0_75%,transparent_0)] [background-size:1rem_1rem] shadow-none data-disabled:cursor-grab', className),
|
|
27
|
-
...props
|
|
26
|
+
...props,
|
|
27
|
+
"data-slot": "image-cropper-viewport"
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
30
|
const ImageCropper_ImageCropperImage = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
31
31
|
return /*#__PURE__*/ jsx(ImageCropper.Image, {
|
|
32
32
|
ref: ref,
|
|
33
|
-
"data-slot": "image-cropper-image",
|
|
34
33
|
className: cn('absolute inset-0 block size-full origin-center object-contain backface-hidden', className),
|
|
35
|
-
...props
|
|
34
|
+
...props,
|
|
35
|
+
"data-slot": "image-cropper-image"
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
const ImageCropper_ImageCropperSelection = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
39
39
|
return /*#__PURE__*/ jsx(ImageCropper.Selection, {
|
|
40
40
|
ref: ref,
|
|
41
|
-
"data-slot": "image-cropper-selection",
|
|
42
41
|
className: cn('box-border cursor-grab rounded-md border-2 border-primary shadow-[0_0_0_9999px_rgb(0_0_0_/_45%),inset_0_0_0_1px_rgb(255_255_255_/_64%)] outline-0 transition-[border-color,box-shadow] duration-200 ease-in-out focus-visible:ring-2 focus-visible:ring-ring data-disabled:cursor-default data-dragging:cursor-grabbing data-[shape=circle]:rounded-full data-[shape=circle]:border-transparent motion-reduce:transition-none', className),
|
|
43
|
-
...props
|
|
42
|
+
...props,
|
|
43
|
+
"data-slot": "image-cropper-selection"
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
const ImageCropper_ImageCropperGrid = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
47
47
|
return /*#__PURE__*/ jsx(ImageCropper.Grid, {
|
|
48
48
|
ref: ref,
|
|
49
|
-
"data-slot": "image-cropper-grid",
|
|
50
49
|
className: cn('pointer-events-none data-[axis=horizontal]:border-y data-[axis=horizontal]:border-white/62 data-[axis=vertical]:border-x data-[axis=vertical]:border-white/62', className),
|
|
51
|
-
...props
|
|
50
|
+
...props,
|
|
51
|
+
"data-slot": "image-cropper-grid"
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
const ImageCropper_ImageCropperHandle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
55
55
|
return /*#__PURE__*/ jsx(ImageCropper.Handle, {
|
|
56
56
|
ref: ref,
|
|
57
|
-
"data-slot": "image-cropper-handle",
|
|
58
57
|
className: cn('absolute z-1 box-border size-3 rounded-xs border border-white/88 bg-white/96 shadow-[0_1px_3px_rgb(15_23_42_/_18%)] transition-[border-color,background-color,box-shadow,opacity] duration-200 ease-in-out data-disabled:hidden data-[position=e]:!h-full data-[position=e]:!w-[0.2rem] data-[position=e]:rounded-full data-[position=e]:border-0 data-[position=n]:!h-[0.2rem] data-[position=n]:!w-full data-[position=n]:rounded-full data-[position=n]:border-0 data-[position=ne]:z-2 data-[position=nw]:z-2 data-[position=s]:!h-[0.2rem] data-[position=s]:!w-full data-[position=s]:rounded-full data-[position=s]:border-0 data-[position=se]:z-2 data-[position=sw]:z-2 data-[position=w]:!h-full data-[position=w]:!w-[0.2rem] data-[position=w]:rounded-full data-[position=w]:border-0 motion-reduce:transition-none', className),
|
|
59
|
-
...props
|
|
58
|
+
...props,
|
|
59
|
+
"data-slot": "image-cropper-handle"
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
62
|
const ImageCropper_ImageCropperCropArea = /*#__PURE__*/ forwardRef(function({ gridClassName, handleClassName, ...props }, ref) {
|
|
@@ -76,7 +76,7 @@ const InputGroup_InputGroupInput = /*#__PURE__*/ forwardRef(function({ className
|
|
|
76
76
|
return /*#__PURE__*/ jsx(Input, {
|
|
77
77
|
ref: ref,
|
|
78
78
|
className: cn(inputGroupInputVariants({
|
|
79
|
-
size:
|
|
79
|
+
size: inputSize
|
|
80
80
|
}), className),
|
|
81
81
|
size: inputSize,
|
|
82
82
|
...props
|
|
@@ -51,18 +51,18 @@ function LightboxRootProvider({ lazyMount = true, portalled, portalRef, unmountO
|
|
|
51
51
|
const Lightbox_LightboxTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
52
52
|
return /*#__PURE__*/ jsx(Dialog.Trigger, {
|
|
53
53
|
ref: ref,
|
|
54
|
-
"data-slot": "lightbox-trigger",
|
|
55
54
|
className: cn('cursor-zoom-in focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring', className),
|
|
56
|
-
...props
|
|
55
|
+
...props,
|
|
56
|
+
"data-slot": "lightbox-trigger"
|
|
57
57
|
});
|
|
58
58
|
});
|
|
59
59
|
const Lightbox_LightboxBackdrop = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
60
60
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
61
61
|
children: /*#__PURE__*/ jsx(Dialog.Backdrop, {
|
|
62
62
|
ref: ref,
|
|
63
|
-
"data-slot": "lightbox-backdrop",
|
|
64
63
|
className: cn('fixed inset-0 z-[calc(40+var(--layer-index,0))] min-h-dvh bg-overlay backdrop-blur-xs data-[state=closed]:animate-[moduix-fade-out_200ms_ease-in-out_forwards] data-[state=open]:animate-[moduix-fade-in_200ms_ease-in-out] motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms]', className),
|
|
65
|
-
...props
|
|
64
|
+
...props,
|
|
65
|
+
"data-slot": "lightbox-backdrop"
|
|
66
66
|
})
|
|
67
67
|
});
|
|
68
68
|
});
|
|
@@ -70,42 +70,42 @@ const Lightbox_LightboxPositioner = /*#__PURE__*/ forwardRef(function({ classNam
|
|
|
70
70
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
71
71
|
children: /*#__PURE__*/ jsx(Dialog.Positioner, {
|
|
72
72
|
ref: ref,
|
|
73
|
-
"data-slot": "lightbox-positioner",
|
|
74
73
|
className: cn('fixed inset-0 z-[calc(50+var(--layer-index,0))] box-border grid place-items-center overflow-auto overscroll-contain p-4', className),
|
|
75
|
-
...props
|
|
74
|
+
...props,
|
|
75
|
+
"data-slot": "lightbox-positioner"
|
|
76
76
|
})
|
|
77
77
|
});
|
|
78
78
|
});
|
|
79
79
|
const Lightbox_LightboxContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
80
80
|
return /*#__PURE__*/ jsx(Dialog.Content, {
|
|
81
81
|
ref: ref,
|
|
82
|
-
"data-slot": "lightbox-content",
|
|
83
82
|
className: cn('relative box-border grid max-h-[min(80dvh,calc(100dvh-2rem))] w-fit max-w-[min(80vw,calc(100vw-2rem))] gap-3 border-0 bg-transparent outline-0 data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms]', className),
|
|
84
|
-
...props
|
|
83
|
+
...props,
|
|
84
|
+
"data-slot": "lightbox-content"
|
|
85
85
|
});
|
|
86
86
|
});
|
|
87
87
|
const Lightbox_LightboxTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
88
88
|
return /*#__PURE__*/ jsx(Dialog.Title, {
|
|
89
89
|
ref: ref,
|
|
90
|
-
"data-slot": "lightbox-title",
|
|
91
90
|
className: cn('m-0 text-md leading-6 font-semibold text-foreground', className),
|
|
92
|
-
...props
|
|
91
|
+
...props,
|
|
92
|
+
"data-slot": "lightbox-title"
|
|
93
93
|
});
|
|
94
94
|
});
|
|
95
95
|
const Lightbox_LightboxDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
96
96
|
return /*#__PURE__*/ jsx(Dialog.Description, {
|
|
97
97
|
ref: ref,
|
|
98
|
-
"data-slot": "lightbox-description",
|
|
99
98
|
className: cn('m-0 text-sm leading-5 text-muted-foreground', className),
|
|
100
|
-
...props
|
|
99
|
+
...props,
|
|
100
|
+
"data-slot": "lightbox-description"
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
103
|
const Lightbox_LightboxCloseTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
104
104
|
return /*#__PURE__*/ jsx(Dialog.CloseTrigger, {
|
|
105
105
|
ref: ref,
|
|
106
|
-
"data-slot": "lightbox-close-trigger",
|
|
107
106
|
className: className,
|
|
108
|
-
...props
|
|
107
|
+
...props,
|
|
108
|
+
"data-slot": "lightbox-close-trigger"
|
|
109
109
|
});
|
|
110
110
|
});
|
|
111
111
|
const Lightbox_LightboxCloseIcon = /*#__PURE__*/ forwardRef(function({ className, children, 'aria-label': ariaLabel = DEFAULT_CLOSE_LABEL, ...props }, ref) {
|
|
@@ -131,43 +131,43 @@ const Lightbox_LightboxImage = /*#__PURE__*/ forwardRef(function({ className, cl
|
|
|
131
131
|
};
|
|
132
132
|
return /*#__PURE__*/ jsx("img", {
|
|
133
133
|
ref: ref,
|
|
134
|
-
"data-slot": "lightbox-image",
|
|
135
|
-
"data-close-on-click": closeOnClick ? '' : void 0,
|
|
136
134
|
className: cn('block max-h-[min(80dvh,100%)] max-w-[min(80vw,100%)] rounded-md object-contain shadow-lg select-none data-[close-on-click]:cursor-zoom-out', className),
|
|
137
135
|
onClick: handleClick,
|
|
138
|
-
...props
|
|
136
|
+
...props,
|
|
137
|
+
"data-close-on-click": closeOnClick ? '' : void 0,
|
|
138
|
+
"data-slot": "lightbox-image"
|
|
139
139
|
});
|
|
140
140
|
});
|
|
141
141
|
const Lightbox_LightboxGallery = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
142
142
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
143
143
|
ref: ref,
|
|
144
|
-
"data-slot": "lightbox-gallery",
|
|
145
144
|
className: cn('[&_[data-slot=carousel-indicator-group]]:mx-auto', 'max-w-[min(72rem,calc(100vw-2rem))] justify-self-center [&_[data-slot=carousel-control]]:items-center [&_[data-slot=carousel-indicator-group]]:w-fit [&_[data-slot=carousel-indicator-group]]:max-w-full [&_[data-slot=carousel-indicator-group]]:flex-wrap [&_[data-slot=carousel-indicator]:has(img)]:h-control-xl [&_[data-slot=carousel-indicator]:has(img)]:w-20 [&_[data-slot=carousel-indicator]:has(img)]:overflow-hidden [&_[data-slot=carousel-indicator]:has(img)]:rounded-md [&_[data-slot=carousel-indicator]:has(img)]:border [&_[data-slot=carousel-indicator]:has(img)]:border-transparent [&_[data-slot=carousel-indicator]:has(img)]:bg-transparent [&_[data-slot=carousel-indicator]:has(img)]:opacity-[0.65] [&_[data-slot=carousel-indicator]:has(img)]:transition [&_[data-slot=carousel-indicator]:has(img)]:duration-150 [&_[data-slot=carousel-indicator]:has(img)]:ease-in-out [&_[data-slot=carousel-indicator]:has(img)_img]:block [&_[data-slot=carousel-indicator]:has(img)_img]:size-full [&_[data-slot=carousel-indicator]:has(img)_img]:object-cover [&_[data-slot=carousel-indicator]:has(img):hover]:opacity-90 [&_[data-slot=carousel-indicator]:has(img)[data-current]]:-translate-y-px [&_[data-slot=carousel-indicator]:has(img)[data-current]]:border-primary [&_[data-slot=carousel-indicator]:has(img)[data-current]]:opacity-100 [&_[data-slot=carousel-item-group]]:aspect-[16/10] [&_[data-slot=carousel-item-group]]:max-h-[68dvh] [&_[data-slot=carousel-item-group]]:bg-black/90 [&_[data-slot=carousel-item]]:grid [&_[data-slot=carousel-item]]:h-full [&_[data-slot=carousel-item]]:place-items-center [&_[data-slot=carousel-item]_img]:block [&_[data-slot=carousel-item]_img]:size-full [&_[data-slot=carousel-item]_img]:rounded-md [&_[data-slot=carousel-item]_img]:object-contain [&_[data-slot=carousel-item]_img]:select-none [&_[data-slot=carousel-item]_video]:block [&_[data-slot=carousel-item]_video]:size-full [&_[data-slot=carousel-item]_video]:rounded-md [&_[data-slot=carousel-item]_video]:object-contain [&_[data-slot=carousel-item]_video]:select-none', className),
|
|
146
|
-
...props
|
|
145
|
+
...props,
|
|
146
|
+
"data-slot": "lightbox-gallery"
|
|
147
147
|
});
|
|
148
148
|
});
|
|
149
149
|
const Lightbox_LightboxHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
150
150
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
151
151
|
ref: ref,
|
|
152
|
-
"data-slot": "lightbox-header",
|
|
153
152
|
className: cn('grid gap-1', className),
|
|
154
|
-
...props
|
|
153
|
+
...props,
|
|
154
|
+
"data-slot": "lightbox-header"
|
|
155
155
|
});
|
|
156
156
|
});
|
|
157
157
|
const Lightbox_LightboxBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
158
158
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
159
159
|
ref: ref,
|
|
160
|
-
"data-slot": "lightbox-body",
|
|
161
160
|
className: cn('grid gap-3', className),
|
|
162
|
-
...props
|
|
161
|
+
...props,
|
|
162
|
+
"data-slot": "lightbox-body"
|
|
163
163
|
});
|
|
164
164
|
});
|
|
165
165
|
const Lightbox_LightboxFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
166
166
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
167
167
|
ref: ref,
|
|
168
|
-
"data-slot": "lightbox-footer",
|
|
169
168
|
className: cn('flex items-center justify-end gap-2 text-sm leading-5 text-muted-foreground', className),
|
|
170
|
-
...props
|
|
169
|
+
...props,
|
|
170
|
+
"data-slot": "lightbox-footer"
|
|
171
171
|
});
|
|
172
172
|
});
|
|
173
173
|
function LightboxBind({ onImageSelect, selector, rootRef, rootSelector }) {
|
|
@@ -9,40 +9,40 @@ import { CloseButton } from "../close-button/index.js";
|
|
|
9
9
|
const Listbox_ListboxRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
10
10
|
return /*#__PURE__*/ jsx(Listbox.Root, {
|
|
11
11
|
ref: ref,
|
|
12
|
-
"data-slot": "listbox-root",
|
|
13
12
|
className: cn('box-border flex w-64 max-w-full min-w-0 flex-col gap-3 text-foreground data-disabled:opacity-50', className),
|
|
14
|
-
...props
|
|
13
|
+
...props,
|
|
14
|
+
"data-slot": "listbox-root"
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
17
|
const Listbox_ListboxRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
18
18
|
return /*#__PURE__*/ jsx(Listbox.RootProvider, {
|
|
19
19
|
ref: ref,
|
|
20
|
-
"data-slot": "listbox-root-provider",
|
|
21
20
|
className: cn('box-border flex w-64 max-w-full min-w-0 flex-col gap-3 text-foreground data-disabled:opacity-50', className),
|
|
22
|
-
...props
|
|
21
|
+
...props,
|
|
22
|
+
"data-slot": "listbox-root-provider"
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
25
|
const Listbox_ListboxLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
26
26
|
return /*#__PURE__*/ jsx(Listbox.Label, {
|
|
27
27
|
ref: ref,
|
|
28
|
-
"data-slot": "listbox-label",
|
|
29
28
|
className: cn('text-sm leading-5 font-medium text-foreground select-none', className),
|
|
30
|
-
...props
|
|
29
|
+
...props,
|
|
30
|
+
"data-slot": "listbox-label"
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
33
|
const Listbox_ListboxInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
34
34
|
return /*#__PURE__*/ jsx(Listbox.Input, {
|
|
35
35
|
ref: ref,
|
|
36
|
-
"data-slot": "listbox-input",
|
|
37
36
|
className: cn('m-0 box-border min-h-control-md w-full rounded-md border border-border bg-background px-3 py-1 text-md leading-6 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color,opacity] duration-200 ease-in-out group-has-[[data-slot=listbox-filter-icon]]/listbox-filter:ps-9 group-has-[[data-slot=listbox-filter-icon]]/listbox-filter:pe-10 group-has-[+_[data-slot=listbox-content]]/listbox-filter:rounded-b-none group-has-[+_[data-slot=listbox-content]]/listbox-filter:border-b-0 placeholder:text-muted-foreground focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 motion-reduce:transition-none', className),
|
|
38
|
-
...props
|
|
37
|
+
...props,
|
|
38
|
+
"data-slot": "listbox-input"
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
41
|
function ListboxFilter({ className, children, ...props }) {
|
|
42
42
|
return /*#__PURE__*/ jsxs("div", {
|
|
43
|
-
"data-slot": "listbox-filter",
|
|
44
43
|
className: cn('group/listbox-filter peer/listbox-filter relative box-border w-full', className),
|
|
45
44
|
...props,
|
|
45
|
+
"data-slot": "listbox-filter",
|
|
46
46
|
children: [
|
|
47
47
|
/*#__PURE__*/ jsx(SearchIcon, {
|
|
48
48
|
"data-slot": "listbox-filter-icon",
|
|
@@ -55,101 +55,101 @@ function ListboxFilter({ className, children, ...props }) {
|
|
|
55
55
|
const Listbox_ListboxClearTrigger = /*#__PURE__*/ forwardRef(function({ 'aria-label': ariaLabel = 'Clear search', className, children, type = 'button', ...props }, ref) {
|
|
56
56
|
return /*#__PURE__*/ jsx(CloseButton.Root, {
|
|
57
57
|
ref: ref,
|
|
58
|
-
"data-slot": "listbox-clear-trigger",
|
|
59
58
|
type: type,
|
|
60
59
|
"aria-label": ariaLabel,
|
|
61
60
|
className: cn('absolute end-3 top-1/2 size-control-xs -translate-y-1/2 rounded-sm bg-transparent text-muted-foreground [&>svg]:size-4 [@media(hover:hover)]:hover:bg-muted [@media(hover:hover)]:hover:text-foreground', className),
|
|
62
61
|
...props,
|
|
62
|
+
"data-slot": "listbox-clear-trigger",
|
|
63
63
|
children: children
|
|
64
64
|
});
|
|
65
65
|
});
|
|
66
66
|
const Listbox_ListboxContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
67
67
|
return /*#__PURE__*/ jsx(Listbox.Content, {
|
|
68
68
|
ref: ref,
|
|
69
|
-
"data-slot": "listbox-content",
|
|
70
69
|
className: cn('box-border flex max-h-56 min-h-0 scroll-py-1 [scrollbar-gutter:stable] flex-col overflow-x-hidden overflow-y-auto overscroll-contain rounded-md border border-border bg-background py-1 text-foreground outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color] duration-200 ease-in-out peer-data-[slot=listbox-filter]/listbox-filter:-mt-3 peer-data-[slot=listbox-filter]/listbox-filter:rounded-t-none focus-visible:outline-ring data-[layout=grid]:grid data-[layout=grid]:grid-cols-[repeat(var(--column-count),minmax(0,1fr))] data-[layout=grid]:gap-1 data-[layout=grid]:p-2 data-[orientation=horizontal]:not-data-[layout=grid]:max-h-none data-[orientation=horizontal]:not-data-[layout=grid]:flex-row data-[orientation=horizontal]:not-data-[layout=grid]:gap-2 data-[orientation=horizontal]:not-data-[layout=grid]:overflow-x-auto data-[orientation=horizontal]:not-data-[layout=grid]:overflow-y-hidden data-[orientation=horizontal]:not-data-[layout=grid]:px-1 motion-reduce:transition-none', className),
|
|
71
|
-
...props
|
|
70
|
+
...props,
|
|
71
|
+
"data-slot": "listbox-content"
|
|
72
72
|
});
|
|
73
73
|
});
|
|
74
74
|
const Listbox_ListboxEmpty = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
75
75
|
return /*#__PURE__*/ jsx(Listbox.Empty, {
|
|
76
76
|
ref: ref,
|
|
77
|
-
"data-slot": "listbox-empty",
|
|
78
77
|
className: cn('px-3 py-1 text-center text-sm leading-5 text-muted-foreground', className),
|
|
79
|
-
...props
|
|
78
|
+
...props,
|
|
79
|
+
"data-slot": "listbox-empty"
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
82
|
const Listbox_ListboxItemGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
83
83
|
return /*#__PURE__*/ jsx(Listbox.ItemGroup, {
|
|
84
84
|
ref: ref,
|
|
85
|
-
"data-slot": "listbox-item-group",
|
|
86
85
|
className: cn('flex flex-col [&+&]:mt-2', className),
|
|
87
|
-
...props
|
|
86
|
+
...props,
|
|
87
|
+
"data-slot": "listbox-item-group"
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
90
|
const Listbox_ListboxItemGroupLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
91
91
|
return /*#__PURE__*/ jsx(Listbox.ItemGroupLabel, {
|
|
92
92
|
ref: ref,
|
|
93
|
-
"data-slot": "listbox-item-group-label",
|
|
94
93
|
className: cn('px-2 py-1 text-xs leading-4 font-normal text-muted-foreground select-none', className),
|
|
95
|
-
...props
|
|
94
|
+
...props,
|
|
95
|
+
"data-slot": "listbox-item-group-label"
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
const Listbox_ListboxItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
99
99
|
return /*#__PURE__*/ jsx(Listbox.Item, {
|
|
100
100
|
ref: ref,
|
|
101
|
-
"data-slot": "listbox-item",
|
|
102
101
|
className: cn('relative mx-1 box-border grid min-h-control-sm w-[calc(100%-0.5rem)] cursor-pointer grid-cols-[minmax(0,1fr)_1rem] items-center gap-2 rounded-sm bg-transparent px-3 py-1 text-sm leading-5 text-foreground outline-0 transition-[background-color,color] duration-200 ease-in-out select-none data-disabled:pointer-events-none data-disabled:cursor-default data-disabled:text-muted-foreground data-disabled:opacity-50 data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[layout=grid]:mx-0 data-[layout=grid]:w-full data-[layout=grid]:min-w-0 data-[layout=grid]:grid-cols-1 data-[layout=grid]:justify-items-center data-[layout=grid]:text-center data-[layout=grid]:data-selected:bg-muted data-[layout=grid]:data-selected:text-foreground data-[orientation=horizontal]:not-data-[layout=grid]:w-44 data-[orientation=horizontal]:not-data-[layout=grid]:min-w-44 data-[orientation=horizontal]:not-data-[layout=grid]:items-start motion-reduce:transition-none [@media(hover:hover)]:[&:not([data-disabled]):hover]:bg-accent [@media(hover:hover)]:[&:not([data-disabled]):hover]:text-accent-foreground', className),
|
|
103
|
-
...props
|
|
102
|
+
...props,
|
|
103
|
+
"data-slot": "listbox-item"
|
|
104
104
|
});
|
|
105
105
|
});
|
|
106
106
|
const Listbox_ListboxItemText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
107
107
|
return /*#__PURE__*/ jsx(Listbox.ItemText, {
|
|
108
108
|
ref: ref,
|
|
109
|
-
"data-slot": "listbox-item-text",
|
|
110
109
|
className: cn('min-w-0 overflow-hidden text-ellipsis whitespace-nowrap', className),
|
|
111
|
-
...props
|
|
110
|
+
...props,
|
|
111
|
+
"data-slot": "listbox-item-text"
|
|
112
112
|
});
|
|
113
113
|
});
|
|
114
114
|
const Listbox_ListboxItemIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
115
115
|
return /*#__PURE__*/ jsx(Listbox.ItemIndicator, {
|
|
116
116
|
ref: ref,
|
|
117
|
-
"data-slot": "listbox-item-indicator",
|
|
118
117
|
className: cn('inline-flex size-4 shrink-0 items-center justify-center data-[state=unchecked]:invisible [&>svg]:size-3', className),
|
|
119
118
|
...props,
|
|
119
|
+
"data-slot": "listbox-item-indicator",
|
|
120
120
|
children: children ?? /*#__PURE__*/ jsx(CheckIcon, {})
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
123
|
const Listbox_ListboxValueText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
124
124
|
return /*#__PURE__*/ jsx(Listbox.ValueText, {
|
|
125
125
|
ref: ref,
|
|
126
|
-
"data-slot": "listbox-value-text",
|
|
127
126
|
className: cn('text-sm leading-5 text-muted-foreground', className),
|
|
128
|
-
...props
|
|
127
|
+
...props,
|
|
128
|
+
"data-slot": "listbox-value-text"
|
|
129
129
|
});
|
|
130
130
|
});
|
|
131
131
|
const Listbox_ListboxItemTextContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
132
132
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
133
133
|
ref: ref,
|
|
134
|
-
"data-slot": "listbox-item-text-content",
|
|
135
134
|
className: cn('inline-flex max-w-full min-w-0 items-center gap-2 align-top', className),
|
|
136
|
-
...props
|
|
135
|
+
...props,
|
|
136
|
+
"data-slot": "listbox-item-text-content"
|
|
137
137
|
});
|
|
138
138
|
});
|
|
139
139
|
const Listbox_ListboxItemTextIcon = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
140
140
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
141
141
|
ref: ref,
|
|
142
|
-
"data-slot": "listbox-item-text-icon",
|
|
143
142
|
className: cn('inline-flex size-4 shrink-0 items-center justify-center', className),
|
|
144
|
-
...props
|
|
143
|
+
...props,
|
|
144
|
+
"data-slot": "listbox-item-text-icon"
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
const Listbox_ListboxItemTextLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
148
148
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
149
149
|
ref: ref,
|
|
150
|
-
"data-slot": "listbox-item-text-label",
|
|
151
150
|
className: cn('min-w-0 overflow-hidden text-ellipsis whitespace-nowrap', className),
|
|
152
|
-
...props
|
|
151
|
+
...props,
|
|
152
|
+
"data-slot": "listbox-item-text-label"
|
|
153
153
|
});
|
|
154
154
|
});
|
|
155
155
|
const Listbox_Listbox = Object.assign(Listbox_ListboxRoot, {
|
|
@@ -28,56 +28,56 @@ const marqueeRootVariants = cva('group relative w-full overflow-hidden text-fore
|
|
|
28
28
|
const Marquee_MarqueeRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
29
29
|
return /*#__PURE__*/ jsx(Marquee.Root, {
|
|
30
30
|
ref: ref,
|
|
31
|
-
"data-slot": "marquee-root",
|
|
32
31
|
className: cn(marqueeRootVariants({
|
|
33
32
|
orientation: 'top' === props.side || 'bottom' === props.side ? 'vertical' : 'horizontal'
|
|
34
33
|
}), className),
|
|
35
|
-
...props
|
|
34
|
+
...props,
|
|
35
|
+
"data-slot": "marquee-root"
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
const Marquee_MarqueeRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
39
39
|
return /*#__PURE__*/ jsx(Marquee.RootProvider, {
|
|
40
40
|
ref: ref,
|
|
41
|
-
"data-slot": "marquee-root-provider",
|
|
42
41
|
className: cn(marqueeRootVariants({
|
|
43
42
|
orientation: props.value.orientation
|
|
44
43
|
}), className),
|
|
45
|
-
...props
|
|
44
|
+
...props,
|
|
45
|
+
"data-slot": "marquee-root-provider"
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
const Marquee_MarqueeViewport = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
49
49
|
return /*#__PURE__*/ jsx(Marquee.Viewport, {
|
|
50
50
|
ref: ref,
|
|
51
|
-
"data-slot": "marquee-viewport",
|
|
52
51
|
className: cn('size-full', className),
|
|
53
|
-
...props
|
|
52
|
+
...props,
|
|
53
|
+
"data-slot": "marquee-viewport"
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
56
|
const Marquee_MarqueeContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
57
57
|
return /*#__PURE__*/ jsx(Marquee.Content, {
|
|
58
58
|
ref: ref,
|
|
59
|
-
"data-slot": "marquee-content",
|
|
60
59
|
className: cn('animate-moduix-marquee-x group-data-paused:[animation-play-state:paused] data-reverse:[animation-direction:reverse] data-[side=bottom]:animate-moduix-marquee-y data-[side=top]:animate-moduix-marquee-y motion-reduce:animate-none', className),
|
|
61
|
-
...props
|
|
60
|
+
...props,
|
|
61
|
+
"data-slot": "marquee-content"
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
64
|
const Marquee_MarqueeItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
65
65
|
return /*#__PURE__*/ jsx(Marquee.Item, {
|
|
66
66
|
ref: ref,
|
|
67
|
-
"data-slot": "marquee-item",
|
|
68
67
|
className: cn('shrink-0', className),
|
|
69
|
-
...props
|
|
68
|
+
...props,
|
|
69
|
+
"data-slot": "marquee-item"
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
72
|
const Marquee_MarqueeEdge = /*#__PURE__*/ forwardRef(function({ className, side, ...props }, ref) {
|
|
73
73
|
return /*#__PURE__*/ jsx(Marquee.Edge, {
|
|
74
74
|
ref: ref,
|
|
75
|
-
"data-slot": "marquee-edge",
|
|
76
75
|
side: side,
|
|
77
76
|
className: cn(marqueeEdgeVariants({
|
|
78
77
|
side
|
|
79
78
|
}), className),
|
|
80
|
-
...props
|
|
79
|
+
...props,
|
|
80
|
+
"data-slot": "marquee-edge"
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
const Marquee_Marquee = Object.assign(Marquee_MarqueeRoot, {
|