@moduix/react-tailwind 1.1.0 → 2.0.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 +2 -2
- package/dist/components/alert/Alert.js +13 -13
- package/dist/components/angle-slider/AngleSlider.js +13 -6
- package/dist/components/avatar/Avatar.js +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +5 -5
- package/dist/components/breadcrumbs/Breadcrumbs.js +21 -19
- package/dist/components/carousel/Carousel.js +3 -3
- package/dist/components/command-palette/CommandPalette.js +1 -1
- package/dist/components/drawer/Drawer.js +1 -1
- package/dist/components/highlight/Highlight.js +1 -1
- package/dist/components/json-tree-view/JsonTreeView.js +3 -2
- package/dist/components/menu/Menu.d.ts +3 -1
- package/dist/components/menu/Menu.js +10 -8
- package/dist/components/native-select/NativeSelect.js +2 -0
- package/dist/components/number-input/NumberInput.js +3 -3
- package/dist/components/pagination/Pagination.js +6 -6
- package/dist/components/password-input/PasswordInput.js +2 -2
- package/dist/components/pin-input/PinInput.js +2 -2
- package/dist/components/popover/Popover.d.ts +2 -2
- package/dist/components/popover/Popover.js +6 -6
- package/dist/components/progress-circular/ProgressCircular.js +3 -3
- package/dist/components/qr-code/QrCode.js +1 -1
- package/dist/components/radio-group/RadioGroup.js +2 -2
- package/dist/components/rating-group/RatingGroup.js +5 -5
- package/dist/components/scroll-area/ScrollArea.js +2 -2
- package/dist/components/segment-group/SegmentGroup.js +2 -1
- package/dist/components/select/Select.js +3 -4
- package/dist/components/separator/Separator.js +1 -1
- package/dist/components/sidebar/Sidebar.js +43 -45
- package/dist/components/signature-pad/SignaturePad.d.ts +1 -1
- package/dist/components/signature-pad/SignaturePad.js +1 -1
- package/dist/components/slider/Slider.js +3 -3
- package/dist/components/spinner/Spinner.js +0 -1
- package/dist/components/split-button/SplitButton.js +5 -4
- package/dist/components/splitter/Splitter.js +2 -2
- package/dist/components/steps/Steps.js +2 -2
- package/dist/components/swap/Swap.js +5 -5
- package/dist/components/switch/Switch.js +3 -3
- package/dist/components/table/Table.js +28 -28
- package/dist/components/tabs/Tabs.js +3 -3
- package/dist/components/tag/Tag.js +1 -1
- package/dist/components/tags-input/TagsInput.js +3 -3
- package/dist/components/text/Text.js +1 -1
- package/dist/components/timer/Timer.js +1 -1
- package/dist/components/toast/Toast.js +2 -2
- package/dist/components/toc/Toc.js +4 -2
- package/dist/components/toggle/Toggle.d.ts +5 -1
- package/dist/components/toggle/Toggle.js +4 -4
- package/dist/components/toggle-group/ToggleGroup.d.ts +1 -2
- package/dist/components/toggle-group/ToggleGroup.js +4 -25
- package/dist/components/tooltip/Tooltip.d.ts +1 -0
- package/dist/components/tooltip/Tooltip.js +2 -2
- package/dist/components/tour/Tour.d.ts +3 -1
- package/dist/components/tour/Tour.js +1 -1
- package/dist/components/tour/index.d.ts +1 -0
- package/dist/components/tree-view/TreeView.d.ts +1 -1
- package/dist/components/tree-view/TreeView.js +11 -6
- package/dist/components/typeset/Typeset_module.css +6 -4
- package/dist/styles/animations.css +10 -0
- package/dist/styles/style.css +2 -0
- package/package.json +14 -15
|
@@ -22,7 +22,7 @@ const Pagination_PaginationRootProvider = /*#__PURE__*/ forwardRef(function({ cl
|
|
|
22
22
|
const Pagination_PaginationItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
23
23
|
return /*#__PURE__*/ jsx(Pagination.Item, {
|
|
24
24
|
ref: ref,
|
|
25
|
-
className: cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm
|
|
25
|
+
className: cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-2 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', 'data-selected:border-foreground data-selected:bg-foreground data-selected:text-background [@media(hover:hover)]:hover:bg-accent [@media(hover:hover)]:data-selected:hover:bg-foreground', '[&_svg]:size-4 [&_svg]:shrink-0', className),
|
|
26
26
|
...props,
|
|
27
27
|
"data-slot": "pagination-item"
|
|
28
28
|
});
|
|
@@ -30,7 +30,7 @@ const Pagination_PaginationItem = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
30
30
|
const Pagination_PaginationEllipsis = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
31
31
|
return /*#__PURE__*/ jsx(Pagination.Ellipsis, {
|
|
32
32
|
ref: ref,
|
|
33
|
-
className: cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm
|
|
33
|
+
className: cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm font-medium text-muted-foreground tabular-nums select-none', className),
|
|
34
34
|
...props,
|
|
35
35
|
"data-slot": "pagination-ellipsis",
|
|
36
36
|
children: children ?? (!props.asChild && '...')
|
|
@@ -50,7 +50,7 @@ function EdgeIcon({ side }) {
|
|
|
50
50
|
const Pagination_PaginationPrevTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
51
51
|
return /*#__PURE__*/ jsx(Pagination.PrevTrigger, {
|
|
52
52
|
ref: ref,
|
|
53
|
-
className: cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm
|
|
53
|
+
className: cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-3 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', '[&_svg]:size-4 [&_svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent', (null == children || false === children) && 'w-control-md p-0 rtl:[&_svg]:-scale-x-100', className),
|
|
54
54
|
...props,
|
|
55
55
|
"data-slot": "pagination-prev-trigger",
|
|
56
56
|
children: children ?? (!props.asChild && /*#__PURE__*/ jsx(ChevronLeftIcon, {}))
|
|
@@ -59,7 +59,7 @@ const Pagination_PaginationPrevTrigger = /*#__PURE__*/ forwardRef(function({ cla
|
|
|
59
59
|
const Pagination_PaginationNextTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
60
60
|
return /*#__PURE__*/ jsx(Pagination.NextTrigger, {
|
|
61
61
|
ref: ref,
|
|
62
|
-
className: cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm
|
|
62
|
+
className: cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-3 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', '[&_svg]:size-4 [&_svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent', (null == children || false === children) && 'w-control-md p-0 rtl:[&_svg]:-scale-x-100', className),
|
|
63
63
|
...props,
|
|
64
64
|
"data-slot": "pagination-next-trigger",
|
|
65
65
|
children: children ?? (!props.asChild && /*#__PURE__*/ jsx(ChevronRightIcon, {}))
|
|
@@ -68,7 +68,7 @@ const Pagination_PaginationNextTrigger = /*#__PURE__*/ forwardRef(function({ cla
|
|
|
68
68
|
const Pagination_PaginationFirstTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
69
69
|
return /*#__PURE__*/ jsx(Pagination.FirstTrigger, {
|
|
70
70
|
ref: ref,
|
|
71
|
-
className: cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm
|
|
71
|
+
className: cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-3 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', '[&_svg]:size-4 [&_svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent', (null == children || false === children) && 'w-control-md p-0 rtl:[&_svg]:-scale-x-100', className),
|
|
72
72
|
...props,
|
|
73
73
|
"data-slot": "pagination-first-trigger",
|
|
74
74
|
children: children ?? (!props.asChild && /*#__PURE__*/ jsx(EdgeIcon, {
|
|
@@ -79,7 +79,7 @@ const Pagination_PaginationFirstTrigger = /*#__PURE__*/ forwardRef(function({ cl
|
|
|
79
79
|
const Pagination_PaginationLastTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
80
80
|
return /*#__PURE__*/ jsx(Pagination.LastTrigger, {
|
|
81
81
|
ref: ref,
|
|
82
|
-
className: cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm
|
|
82
|
+
className: cn('inline-flex h-control-md min-w-control-md items-center justify-center rounded-md text-sm font-medium tabular-nums', 'cursor-pointer gap-2 border border-border bg-background px-3 whitespace-nowrap text-foreground no-underline select-none', 'focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50', '[&_svg]:size-4 [&_svg]:shrink-0 [@media(hover:hover)]:hover:bg-accent', (null == children || false === children) && 'w-control-md p-0 rtl:[&_svg]:-scale-x-100', className),
|
|
83
83
|
...props,
|
|
84
84
|
"data-slot": "pagination-last-trigger",
|
|
85
85
|
children: children ?? (!props.asChild && /*#__PURE__*/ jsx(EdgeIcon, {
|
|
@@ -22,7 +22,7 @@ const PasswordInput_PasswordInputRootProvider = /*#__PURE__*/ forwardRef(functio
|
|
|
22
22
|
const PasswordInput_PasswordInputLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
23
23
|
return /*#__PURE__*/ jsx(PasswordInput.Label, {
|
|
24
24
|
ref: ref,
|
|
25
|
-
className: cn('inline-flex items-center gap-1 text-sm
|
|
25
|
+
className: cn('inline-flex items-center gap-1 text-sm font-medium text-foreground', className),
|
|
26
26
|
...props,
|
|
27
27
|
"data-slot": "password-input-label"
|
|
28
28
|
});
|
|
@@ -38,7 +38,7 @@ const PasswordInput_PasswordInputControl = /*#__PURE__*/ forwardRef(function({ c
|
|
|
38
38
|
const PasswordInput_PasswordInputInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
39
39
|
return /*#__PURE__*/ jsx(PasswordInput.Input, {
|
|
40
40
|
ref: ref,
|
|
41
|
-
className: cn('min-h-0 min-w-0 flex-auto bg-transparent px-3 py-1 text-md
|
|
41
|
+
className: cn('min-h-0 min-w-0 flex-auto bg-transparent px-3 py-1 text-md text-foreground outline-0 transition-opacity duration-200 ease-in-out placeholder:text-muted-foreground disabled:pointer-events-none data-disabled:pointer-events-none motion-reduce:transition-none', className),
|
|
42
42
|
...props,
|
|
43
43
|
"data-slot": "password-input-input"
|
|
44
44
|
});
|
|
@@ -25,7 +25,7 @@ const PinInput_PinInputRootProvider = /*#__PURE__*/ forwardRef(function({ classN
|
|
|
25
25
|
const PinInput_PinInputLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
26
26
|
return /*#__PURE__*/ jsx(PinInput.Label, {
|
|
27
27
|
ref: ref,
|
|
28
|
-
className: cn('text-sm
|
|
28
|
+
className: cn('text-sm font-medium text-foreground', className),
|
|
29
29
|
...props,
|
|
30
30
|
"data-slot": "pin-input-label"
|
|
31
31
|
});
|
|
@@ -41,7 +41,7 @@ const PinInput_PinInputControl = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
41
41
|
const PinInput_PinInputInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
42
42
|
return /*#__PURE__*/ jsx(PinInput.Input, {
|
|
43
43
|
ref: ref,
|
|
44
|
-
className: cn('size-control-md flex-none rounded-md border border-border bg-background px-0 py-0 text-center text-lg
|
|
44
|
+
className: cn('size-control-md flex-none rounded-md border border-border bg-background px-0 py-0 text-center text-lg font-medium text-foreground tabular-nums outline-1 -outline-offset-1 outline-transparent transition-[border-color,outline-color,background-color] duration-200 ease-in-out placeholder:text-muted-foreground focus-visible:outline-ring disabled:pointer-events-none data-disabled:pointer-events-none data-invalid:border-destructive data-invalid:focus-visible:outline-destructive motion-reduce:transition-none', className),
|
|
45
45
|
...props,
|
|
46
46
|
"data-slot": "pin-input-input"
|
|
47
47
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Popover as PopoverPrimitive, usePopover, usePopoverContext } from '@ark-ui/react/popover';
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
3
|
import { type OverlayPortalProps } from '../../internal/overlayPortal.js';
|
|
4
|
-
type PopoverRootProps = ComponentProps<typeof PopoverPrimitive.Root> & OverlayPortalProps;
|
|
5
|
-
type PopoverRootProviderProps = ComponentProps<typeof PopoverPrimitive.RootProvider> & {
|
|
4
|
+
export type PopoverRootProps = ComponentProps<typeof PopoverPrimitive.Root> & OverlayPortalProps;
|
|
5
|
+
export type PopoverRootProviderProps = ComponentProps<typeof PopoverPrimitive.RootProvider> & {
|
|
6
6
|
portalRef?: OverlayPortalProps['portalRef'];
|
|
7
7
|
};
|
|
8
8
|
declare function PopoverRoot({ lazyMount, modal, portalled, portalRef, unmountOnExit, ...props }: PopoverRootProps): import("react").JSX.Element;
|
|
@@ -45,7 +45,7 @@ const Popover_PopoverTrigger = /*#__PURE__*/ forwardRef(function({ asChild, clas
|
|
|
45
45
|
return /*#__PURE__*/ jsx(Popover.Trigger, {
|
|
46
46
|
ref: ref,
|
|
47
47
|
asChild: asChild,
|
|
48
|
-
className: cn(!asChild && 'box-border inline-flex min-h-control-md cursor-pointer items-center justify-center rounded-md border border-border bg-background px-3.5 py-1 text-md
|
|
48
|
+
className: cn(!asChild && 'box-border inline-flex min-h-control-md cursor-pointer items-center justify-center rounded-md border border-border bg-background px-3.5 py-1 text-md text-foreground outline-0 transition-[background-color,border-color,color] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring active:bg-accent disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 data-[state=open]:not-data-[value]:bg-accent data-[current]:data-[state=open]:bg-accent motion-reduce:transition-none [@media(hover:hover)]:hover:bg-accent', className),
|
|
49
49
|
...props,
|
|
50
50
|
"data-slot": "popover-trigger"
|
|
51
51
|
});
|
|
@@ -79,7 +79,7 @@ const Popover_PopoverContent = /*#__PURE__*/ forwardRef(function({ className, ..
|
|
|
79
79
|
const Popover_PopoverArrow = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
80
80
|
return /*#__PURE__*/ jsx(Popover.Arrow, {
|
|
81
81
|
ref: ref,
|
|
82
|
-
className: cn('[--arrow-background:var(--color-popover)] [--arrow-size:
|
|
82
|
+
className: cn('[--arrow-background:var(--color-popover)] [--arrow-size:var(--spacing-2_5)]', className),
|
|
83
83
|
...props,
|
|
84
84
|
"data-slot": "popover-arrow",
|
|
85
85
|
children: children ?? /*#__PURE__*/ jsx(Popover_PopoverArrowTip, {})
|
|
@@ -96,7 +96,7 @@ const Popover_PopoverArrowTip = /*#__PURE__*/ forwardRef(function({ className, .
|
|
|
96
96
|
const Popover_PopoverTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
97
97
|
return /*#__PURE__*/ jsx(Popover.Title, {
|
|
98
98
|
ref: ref,
|
|
99
|
-
className: cn('text-md
|
|
99
|
+
className: cn('text-md font-semibold text-popover-foreground', className),
|
|
100
100
|
...props,
|
|
101
101
|
"data-slot": "popover-title"
|
|
102
102
|
});
|
|
@@ -104,7 +104,7 @@ const Popover_PopoverTitle = /*#__PURE__*/ forwardRef(function({ className, ...p
|
|
|
104
104
|
const Popover_PopoverDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
105
105
|
return /*#__PURE__*/ jsx(Popover.Description, {
|
|
106
106
|
ref: ref,
|
|
107
|
-
className: cn('text-sm
|
|
107
|
+
className: cn('text-sm text-muted-foreground', className),
|
|
108
108
|
...props,
|
|
109
109
|
"data-slot": "popover-description"
|
|
110
110
|
});
|
|
@@ -113,7 +113,7 @@ const Popover_PopoverCloseTrigger = /*#__PURE__*/ forwardRef(function({ asChild,
|
|
|
113
113
|
return /*#__PURE__*/ jsx(Popover.CloseTrigger, {
|
|
114
114
|
ref: ref,
|
|
115
115
|
asChild: asChild,
|
|
116
|
-
className: cn(!asChild && 'box-border inline-flex min-h-control-md cursor-pointer items-center justify-center rounded-md border border-border bg-background px-3.5 py-1 text-md
|
|
116
|
+
className: cn(!asChild && 'box-border inline-flex min-h-control-md cursor-pointer items-center justify-center rounded-md border border-border bg-background px-3.5 py-1 text-md text-foreground outline-0 transition-[background-color,border-color,color] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring active:bg-accent disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 motion-reduce:transition-none [@media(hover:hover)]:hover:bg-accent', className),
|
|
117
117
|
...props,
|
|
118
118
|
"data-slot": "popover-close-trigger"
|
|
119
119
|
});
|
|
@@ -134,7 +134,7 @@ const Popover_PopoverCloseIcon = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
134
134
|
const Popover_PopoverHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
135
135
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
136
136
|
ref: ref,
|
|
137
|
-
className: cn('grid gap-1 group-has-[
|
|
137
|
+
className: cn('grid gap-1 group-has-[[data-slot=popover-close-icon]]/popover-content:pe-10', className),
|
|
138
138
|
...props,
|
|
139
139
|
"data-slot": "popover-header"
|
|
140
140
|
});
|
|
@@ -22,7 +22,7 @@ const ProgressCircular_ProgressCircularRootProvider = /*#__PURE__*/ forwardRef(f
|
|
|
22
22
|
const ProgressCircular_ProgressCircularLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
23
23
|
return /*#__PURE__*/ jsx(Progress.Label, {
|
|
24
24
|
ref: ref,
|
|
25
|
-
className: cn('max-w-full min-w-0 text-center text-sm font-regular
|
|
25
|
+
className: cn('max-w-full min-w-0 text-center text-sm font-regular wrap-anywhere', className),
|
|
26
26
|
...props,
|
|
27
27
|
"data-slot": "progress-circular-label"
|
|
28
28
|
});
|
|
@@ -30,7 +30,7 @@ const ProgressCircular_ProgressCircularLabel = /*#__PURE__*/ forwardRef(function
|
|
|
30
30
|
const ProgressCircular_ProgressCircularValueText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
31
31
|
return /*#__PURE__*/ jsx(Progress.ValueText, {
|
|
32
32
|
ref: ref,
|
|
33
|
-
className: cn('max-w-full min-w-0 text-center text-sm font-medium
|
|
33
|
+
className: cn('max-w-full min-w-0 text-center text-sm font-medium wrap-anywhere', className),
|
|
34
34
|
...props,
|
|
35
35
|
"data-slot": "progress-circular-value-text"
|
|
36
36
|
});
|
|
@@ -54,7 +54,7 @@ const ProgressCircular_ProgressCircularCircleTrack = /*#__PURE__*/ forwardRef(fu
|
|
|
54
54
|
const ProgressCircular_ProgressCircularCircleRange = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
55
55
|
return /*#__PURE__*/ jsx(Progress.CircleRange, {
|
|
56
56
|
ref: ref,
|
|
57
|
-
className: cn('origin-center stroke-primary transition-[stroke-dashoffset] duration-200 ease-in-out [stroke-linecap:round] [transform-box:fill-box] data-[state=indeterminate]:animate-
|
|
57
|
+
className: cn('origin-center stroke-primary transition-[stroke-dashoffset] duration-200 ease-in-out [stroke-linecap:round] [transform-box:fill-box] data-[state=indeterminate]:animate-moduix-progress-circular-indeterminate data-[state=indeterminate]:[stroke-dasharray:1_200] motion-reduce:transition-none motion-reduce:data-[state=indeterminate]:animate-none motion-reduce:data-[state=indeterminate]:[stroke-dasharray:20_200]', className),
|
|
58
58
|
...props,
|
|
59
59
|
"data-slot": "progress-circular-circle-range"
|
|
60
60
|
});
|
|
@@ -46,7 +46,7 @@ const QrCode_QrCodeOverlay = /*#__PURE__*/ forwardRef(function({ className, ...p
|
|
|
46
46
|
const QrCode_QrCodeDownloadTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
47
47
|
return /*#__PURE__*/ jsx(QrCode.DownloadTrigger, {
|
|
48
48
|
ref: ref,
|
|
49
|
-
className: cn('box-border inline-flex min-h-control-md cursor-pointer appearance-none items-center justify-center gap-2 rounded-md border border-border bg-background px-4 text-sm
|
|
49
|
+
className: cn('box-border inline-flex min-h-control-md cursor-pointer appearance-none items-center justify-center gap-2 rounded-md border border-border bg-background px-4 text-sm font-medium whitespace-nowrap text-foreground transition-[border-color,background-color,color,opacity,box-shadow,transform] duration-200 ease-in-out select-none focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 motion-reduce:transition-none [&_svg]:size-4 [&_svg]:shrink-0 [&:active:not(:disabled):not([data-disabled])]:opacity-[0.94] motion-safe:[&:active:not(:disabled):not([data-disabled])]:translate-y-px motion-safe:[&:active:not(:disabled):not([data-disabled])]:scale-[0.985] [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-accent', className),
|
|
50
50
|
...props,
|
|
51
51
|
"data-slot": "qr-code-download-trigger"
|
|
52
52
|
});
|
|
@@ -68,11 +68,11 @@ const RadioGroup_RadioGroupOption = /*#__PURE__*/ forwardRef(function({ children
|
|
|
68
68
|
const RadioGroup_RadioGroupItemControl = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
69
69
|
return /*#__PURE__*/ jsx(RadioGroup.ItemControl, {
|
|
70
70
|
ref: ref,
|
|
71
|
-
"data-size": size,
|
|
72
71
|
className: cn(radioGroupItemControlVariants({
|
|
73
72
|
size
|
|
74
73
|
}), className),
|
|
75
74
|
...props,
|
|
75
|
+
"data-size": size,
|
|
76
76
|
"data-slot": "radio-group-item-control"
|
|
77
77
|
});
|
|
78
78
|
});
|
|
@@ -87,7 +87,7 @@ const RadioGroup_RadioGroupItemText = /*#__PURE__*/ forwardRef(function({ classN
|
|
|
87
87
|
const RadioGroup_RadioGroupIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
88
88
|
return /*#__PURE__*/ jsx(RadioGroup.Indicator, {
|
|
89
89
|
ref: ref,
|
|
90
|
-
className: cn('pointer-events-none absolute top-[var(--top)] left-[var(--left)] h-[var(--height)] w-[var(--width)] rounded-full bg-primary opacity-[0.12] transition-
|
|
90
|
+
className: cn('pointer-events-none absolute top-[var(--top)] left-[var(--left)] h-[var(--height)] w-[var(--width)] rounded-full bg-primary opacity-[0.12] [--transition-duration:var(--moduix-duration-normal)]', className),
|
|
91
91
|
...props,
|
|
92
92
|
"data-slot": "radio-group-indicator"
|
|
93
93
|
});
|
|
@@ -7,18 +7,18 @@ import { RatingStarIcon } from "../../internal/icons/ui/index.js";
|
|
|
7
7
|
const RatingGroup_RatingGroupRoot = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
8
8
|
return /*#__PURE__*/ jsx(RatingGroup.Root, {
|
|
9
9
|
ref: ref,
|
|
10
|
-
"data-size": size,
|
|
11
10
|
className: cn('group/rating-group inline-flex flex-col gap-1 text-muted-foreground', className),
|
|
12
11
|
...props,
|
|
12
|
+
"data-size": size,
|
|
13
13
|
"data-slot": "rating-group-root"
|
|
14
14
|
});
|
|
15
15
|
});
|
|
16
16
|
const RatingGroup_RatingGroupRootProvider = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
17
17
|
return /*#__PURE__*/ jsx(RatingGroup.RootProvider, {
|
|
18
18
|
ref: ref,
|
|
19
|
-
"data-size": size,
|
|
20
19
|
className: cn('group/rating-group inline-flex flex-col gap-1 text-muted-foreground', className),
|
|
21
20
|
...props,
|
|
21
|
+
"data-size": size,
|
|
22
22
|
"data-slot": "rating-group-root-provider"
|
|
23
23
|
});
|
|
24
24
|
});
|
|
@@ -41,7 +41,7 @@ const RatingGroup_RatingGroupControl = /*#__PURE__*/ forwardRef(function({ class
|
|
|
41
41
|
const RatingGroup_RatingGroupItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
42
42
|
return /*#__PURE__*/ jsx(RatingGroup.Item, {
|
|
43
43
|
ref: ref,
|
|
44
|
-
className: cn('inline-flex cursor-pointer items-center justify-center rounded-sm leading-none text-inherit outline-1 -outline-offset-1 outline-transparent transition-[color,opacity] duration-200 ease-in-out
|
|
44
|
+
className: cn('inline-flex cursor-pointer items-center justify-center rounded-sm leading-none text-inherit outline-1 -outline-offset-1 outline-transparent transition-[color,opacity] duration-200 ease-in-out focus-visible:outline-1 focus-visible:outline-offset-1 focus-visible:outline-ring data-disabled:pointer-events-none data-disabled:cursor-default data-readonly:cursor-default motion-reduce:transition-none', className),
|
|
45
45
|
...props,
|
|
46
46
|
"data-slot": "rating-group-item"
|
|
47
47
|
});
|
|
@@ -50,10 +50,10 @@ const RatingGroup_RatingGroupItemIndicator = /*#__PURE__*/ forwardRef(function({
|
|
|
50
50
|
const { half, highlighted } = useRatingGroupItemContext();
|
|
51
51
|
return /*#__PURE__*/ jsx("span", {
|
|
52
52
|
ref: ref,
|
|
53
|
+
className: cn('relative inline-flex size-5 items-center justify-center text-primary group-data-[size=lg]/rating-group:size-6 group-data-[size=sm]/rating-group:size-4 group-data-[size=xl]/rating-group:size-7 group-data-[size=xs]/rating-group:size-3.5 [&>svg]:size-full [&>svg]:flex-none [&>svg]:transition-[color,fill,stroke,clip-path] [&>svg]:duration-200 [&>svg]:ease-in-out motion-reduce:[&>svg]:transition-none', className),
|
|
54
|
+
...props,
|
|
53
55
|
"data-half": half ? '' : void 0,
|
|
54
56
|
"data-highlighted": highlighted ? '' : void 0,
|
|
55
|
-
className: cn('relative inline-flex size-5 items-center justify-center text-primary group-data-[size=lg]/rating-group:size-6 group-data-[size=sm]/rating-group:size-4 group-data-[size=xl]/rating-group:size-7 group-data-[size=xs]/rating-group:size-3.5 [&>svg]:size-full [&>svg]:flex-none [&>svg]:transition-[color,fill,stroke,clip-path] [&>svg]:duration-200 [&>svg]:ease-in-out', className),
|
|
56
|
-
...props,
|
|
57
57
|
"data-slot": "rating-group-item-indicator",
|
|
58
58
|
children: children ?? /*#__PURE__*/ jsxs(Fragment, {
|
|
59
59
|
children: [
|
|
@@ -28,7 +28,7 @@ const ScrollArea_ScrollAreaViewport = /*#__PURE__*/ forwardRef(function({ classN
|
|
|
28
28
|
ref: ref,
|
|
29
29
|
...props,
|
|
30
30
|
"data-slot": "scroll-area-viewport",
|
|
31
|
-
className: cn('h-full min-h-0 w-full min-w-0 [scrollbar-width:none] rounded-md bg-transparent outline-0 group-data-[fade]/scroll-area:[mask-image:linear-gradient(to_bottom,transparent_0,black_min(
|
|
31
|
+
className: cn('h-full min-h-0 w-full min-w-0 [scrollbar-width:none] rounded-md bg-transparent outline-0 group-data-[fade]/scroll-area:not-forced-colors:[mask-image:linear-gradient(to_bottom,transparent_0,black_min(var(--spacing-10),var(--scroll-area-overflow-y-start,0px)),black_calc(100%_-_min(var(--spacing-10),var(--scroll-area-overflow-y-end,0px))),transparent_100%)] group-data-[fade]/scroll-area:not-forced-colors:mask-no-repeat focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring forced-colors:focus-visible:outline-[Highlight] [&::-webkit-scrollbar]:hidden', className)
|
|
32
32
|
});
|
|
33
33
|
});
|
|
34
34
|
const ScrollArea_ScrollAreaContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
@@ -44,7 +44,7 @@ const ScrollArea_ScrollAreaScrollbar = /*#__PURE__*/ forwardRef(function({ class
|
|
|
44
44
|
ref: ref,
|
|
45
45
|
...props,
|
|
46
46
|
"data-slot": "scroll-area-scrollbar",
|
|
47
|
-
className: cn("pointer-events-none absolute hidden touch-none justify-center rounded-md bg-transparent opacity-0 transition-[opacity,width,height] duration-
|
|
47
|
+
className: cn("pointer-events-none absolute hidden touch-none justify-center rounded-md bg-transparent opacity-0 transition-[opacity,width,height] duration-[200ms,150ms,150ms] ease-in-out select-none group-data-[variant=always]/scroll-area:pointer-events-auto group-data-[variant=always]/scroll-area:opacity-100 before:absolute before:content-[''] data-dragging:pointer-events-auto data-hover:pointer-events-auto data-hover:opacity-100 data-scrolling:pointer-events-auto data-scrolling:opacity-100 data-scrolling:duration-0 data-[orientation=horizontal]:start-0 data-[orientation=horizontal]:end-[var(--corner-width,0px)] data-[orientation=horizontal]:bottom-0 data-[orientation=horizontal]:mx-1 data-[orientation=horizontal]:mb-1 data-[orientation=horizontal]:h-1 data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:before:right-0 data-[orientation=horizontal]:before:bottom-1/2 data-[orientation=horizontal]:before:left-0 data-[orientation=horizontal]:before:h-5 data-[orientation=horizontal]:before:w-full data-[orientation=horizontal]:before:translate-y-1/2 data-[orientation=horizontal]:hover:h-1.5 data-[orientation=horizontal]:data-dragging:h-1.5 data-[orientation=horizontal]:data-overflow-x:flex data-[orientation=vertical]:end-0 data-[orientation=vertical]:top-0 data-[orientation=vertical]:bottom-[var(--corner-height,0px)] data-[orientation=vertical]:my-1 data-[orientation=vertical]:me-1 data-[orientation=vertical]:w-1 data-[orientation=vertical]:before:left-1/2 data-[orientation=vertical]:before:h-full data-[orientation=vertical]:before:w-5 data-[orientation=vertical]:before:-translate-x-1/2 data-[orientation=vertical]:hover:w-1.5 data-[orientation=vertical]:data-dragging:w-1.5 data-[orientation=vertical]:data-overflow-y:flex motion-reduce:transition-none", className)
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
50
|
const ScrollArea_ScrollAreaThumb = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
@@ -12,6 +12,7 @@ function SegmentGroup_useSegmentGroup(props) {
|
|
|
12
12
|
const field = useFieldContext();
|
|
13
13
|
const fieldset = useFieldsetContext();
|
|
14
14
|
return useSegmentGroup({
|
|
15
|
+
orientation: 'horizontal',
|
|
15
16
|
disabled: field?.disabled ?? fieldset?.disabled,
|
|
16
17
|
invalid: field?.invalid ?? fieldset?.invalid,
|
|
17
18
|
readOnly: field?.readOnly,
|
|
@@ -61,7 +62,7 @@ const SegmentGroup_SegmentGroupLabel = /*#__PURE__*/ forwardRef(function({ class
|
|
|
61
62
|
const SegmentGroup_SegmentGroupItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
62
63
|
return /*#__PURE__*/ jsx(SegmentGroup.Item, {
|
|
63
64
|
ref: ref,
|
|
64
|
-
className: cn('relative z-1 box-border inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md px-3.5 text-sm leading-5 font-medium whitespace-nowrap text-muted-foreground outline-0 transition-[color,opacity] duration-200 ease-in-out select-none group-data-disabled/segment-group:!opacity-100 data-disabled:cursor-default data-disabled:opacity-50 data-focus-visible:outline-1 data-focus-visible
|
|
65
|
+
className: cn('relative z-1 box-border inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md px-3.5 text-sm leading-5 font-medium whitespace-nowrap text-muted-foreground outline-0 transition-[color,opacity] duration-200 ease-in-out select-none group-data-disabled/segment-group:!opacity-100 data-disabled:cursor-default data-disabled:opacity-50 data-focus-visible:outline-1 data-focus-visible:outline-offset-1 data-focus-visible:outline-ring data-invalid:data-focus-visible:outline-destructive data-readonly:cursor-default data-[orientation=vertical]:w-full data-[orientation=vertical]:justify-start data-[state=checked]:text-foreground [@media(hover:hover)]:[&:not([data-readonly]):not([data-disabled]):hover]:text-foreground', className),
|
|
65
66
|
...props,
|
|
66
67
|
"data-slot": "segment-group-item"
|
|
67
68
|
});
|
|
@@ -59,7 +59,7 @@ const Select_SelectTrigger = /*#__PURE__*/ forwardRef(function({ asChild, classN
|
|
|
59
59
|
return /*#__PURE__*/ jsx(Select.Trigger, {
|
|
60
60
|
ref: ref,
|
|
61
61
|
asChild: asChild,
|
|
62
|
-
className: cn(!asChild && 'peer/select-trigger relative inline-flex h-control-md w-full min-w-0 cursor-pointer items-center justify-start rounded-md border border-border bg-background px-3.5 pe-[2.875rem] text-start text-inherit outline-1 -outline-offset-1 outline-transparent transition-[background-color,border-color,outline-color] duration-200 ease-in-out select-none [font:inherit]
|
|
62
|
+
className: cn(!asChild && 'peer/select-trigger relative inline-flex h-control-md w-full min-w-0 cursor-pointer items-center justify-start rounded-md border border-border bg-background px-3.5 pe-[2.875rem] text-start text-inherit outline-1 -outline-offset-1 outline-transparent transition-[background-color,border-color,outline-color] duration-200 ease-in-out select-none [font:inherit] not-data-[placeholder-shown]:pe-[4.25rem] group-data-invalid/select-control:border-destructive group-data-invalid/select-control:outline-destructive focus-visible:border-ring focus-visible:outline-ring disabled:cursor-default data-disabled:cursor-default data-placeholder-shown:text-muted-foreground data-[state=open]:border-ring data-[state=open]:outline-ring motion-reduce:transition-none', className),
|
|
63
63
|
...props,
|
|
64
64
|
"data-slot": "select-trigger"
|
|
65
65
|
});
|
|
@@ -91,7 +91,7 @@ const Select_SelectClearTrigger = /*#__PURE__*/ forwardRef(function({ asChild, c
|
|
|
91
91
|
const Select_SelectIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
92
92
|
return /*#__PURE__*/ jsx(Select.Indicator, {
|
|
93
93
|
ref: ref,
|
|
94
|
-
className: cn('pointer-events-none inline-flex size-control-xs shrink-0 items-center justify-center rounded-sm bg-transparent leading-none text-muted-foreground transition-[background-color,color,opacity] duration-200 ease-in-out peer-[:not([disabled]):not([data-disabled]):hover]/select-trigger:bg-muted peer-[:not([disabled]):not([data-disabled]):hover]/select-trigger:text-foreground motion-reduce:transition-none [&>svg]:block [&>svg]:size-4', className),
|
|
94
|
+
className: cn('pointer-events-none inline-flex size-control-xs shrink-0 items-center justify-center rounded-sm bg-transparent leading-none text-muted-foreground transition-[background-color,color,opacity] duration-200 ease-in-out peer-[:not([disabled]):not([data-disabled]):hover]/select-trigger:bg-muted peer-[:not([disabled]):not([data-disabled]):hover]/select-trigger:text-foreground motion-reduce:transition-none [&:is([data-slot=select-control]>*)]:absolute [&:is([data-slot=select-control]>*)]:end-2 [&:is([data-slot=select-control]>*)]:top-1/2 [&:is([data-slot=select-control]>*)]:-translate-y-1/2 [&>svg]:block [&>svg]:size-4', className),
|
|
95
95
|
...props,
|
|
96
96
|
"data-slot": "select-indicator",
|
|
97
97
|
children: children ?? /*#__PURE__*/ jsx(ChevronUpDownIcon, {})
|
|
@@ -111,7 +111,6 @@ const Select_SelectField = /*#__PURE__*/ forwardRef(function({ clearLabel, indic
|
|
|
111
111
|
"aria-label": clearLabel
|
|
112
112
|
}),
|
|
113
113
|
/*#__PURE__*/ jsx(Select_SelectIndicator, {
|
|
114
|
-
className: "absolute end-2 top-1/2 -translate-y-1/2",
|
|
115
114
|
children: indicator
|
|
116
115
|
})
|
|
117
116
|
]
|
|
@@ -130,7 +129,7 @@ const Select_SelectPositioner = /*#__PURE__*/ forwardRef(function({ className, .
|
|
|
130
129
|
const Select_SelectContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
131
130
|
return /*#__PURE__*/ jsx(Select.Content, {
|
|
132
131
|
ref: ref,
|
|
133
|
-
className: cn('z-[calc(
|
|
132
|
+
className: cn('z-[calc(var(--moduix-z-popup)+var(--layer-index,0))] flex max-h-[min(24rem,var(--available-height))] max-w-[var(--available-width)] min-w-[var(--reference-width)] origin-[var(--transform-origin)] scroll-py-1 flex-col overflow-auto overscroll-contain rounded-md border border-border bg-popover py-1 text-popover-foreground shadow-lg outline-0 data-[state=closed]:pointer-events-none data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open motion-reduce:animate-none', className),
|
|
134
133
|
...props,
|
|
135
134
|
"data-slot": "select-content"
|
|
136
135
|
});
|
|
@@ -3,7 +3,7 @@ import { ark } from "@ark-ui/react/factory";
|
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
5
|
import { cn } from "../../internal/cn.js";
|
|
6
|
-
const separatorVariants = cva('block shrink-0 border-border', {
|
|
6
|
+
const separatorVariants = cva('block shrink-0 m-0 border-border', {
|
|
7
7
|
variants: {
|
|
8
8
|
orientation: {
|
|
9
9
|
horizontal: 'h-0 w-full',
|