@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.
Files changed (69) hide show
  1. package/dist/components/accordion/Accordion.js +13 -13
  2. package/dist/components/alert/Alert.js +12 -12
  3. package/dist/components/angle-slider/AngleSlider.js +16 -16
  4. package/dist/components/avatar/Avatar.js +7 -7
  5. package/dist/components/bleed/Bleed.js +1 -1
  6. package/dist/components/card/Card.js +33 -33
  7. package/dist/components/carousel/Carousel.d.ts +1 -1
  8. package/dist/components/carousel/Carousel.js +22 -22
  9. package/dist/components/chart/Chart.js +18 -18
  10. package/dist/components/checkbox/Checkbox.js +12 -12
  11. package/dist/components/clipboard/Clipboard.js +19 -18
  12. package/dist/components/collapsible/Collapsible.js +11 -11
  13. package/dist/components/color-picker/ColorPicker.js +47 -47
  14. package/dist/components/combobox/Combobox.js +31 -31
  15. package/dist/components/command-palette/CommandPalette.js +48 -48
  16. package/dist/components/container/Container.js +5 -5
  17. package/dist/components/date-input/DateInput.js +14 -14
  18. package/dist/components/date-picker/DatePicker.js +51 -51
  19. package/dist/components/dialog/Dialog.js +20 -20
  20. package/dist/components/drawer/Drawer.js +30 -30
  21. package/dist/components/editable/Editable.js +17 -17
  22. package/dist/components/empty/Empty.js +13 -13
  23. package/dist/components/field/Field.js +19 -19
  24. package/dist/components/file-upload/FileUpload.js +28 -28
  25. package/dist/components/floating-panel/FloatingPanel.d.ts +1 -1
  26. package/dist/components/floating-panel/FloatingPanel.js +22 -22
  27. package/dist/components/floating-panel/index.d.ts +1 -0
  28. package/dist/components/hover-card/HoverCard.d.ts +1 -1
  29. package/dist/components/hover-card/HoverCard.js +11 -11
  30. package/dist/components/image-cropper/ImageCropper.js +14 -14
  31. package/dist/components/input-group/InputGroup.js +1 -1
  32. package/dist/components/lightbox/Lightbox.js +25 -25
  33. package/dist/components/listbox/Listbox.js +31 -31
  34. package/dist/components/marquee/Marquee.js +12 -12
  35. package/dist/components/menu/Menu.js +42 -42
  36. package/dist/components/navigation-menu/NavigationMenu.js +24 -24
  37. package/dist/components/number-input/NumberInput.js +16 -16
  38. package/dist/components/pagination/Pagination.js +11 -11
  39. package/dist/components/password-input/PasswordInput.js +13 -13
  40. package/dist/components/pin-input/PinInput.js +11 -11
  41. package/dist/components/popover/Popover.js +25 -25
  42. package/dist/components/progress-circular/ProgressCircular.js +16 -16
  43. package/dist/components/progress-linear/ProgressLinear.js +14 -14
  44. package/dist/components/qr-code/QrCode.js +12 -12
  45. package/dist/components/radio-group/RadioGroup.js +14 -14
  46. package/dist/components/rating-group/RatingGroup.js +11 -11
  47. package/dist/components/segment-group/SegmentGroup.js +14 -14
  48. package/dist/components/select/Select.js +33 -33
  49. package/dist/components/sidebar/Sidebar.js +51 -44
  50. package/dist/components/signature-pad/SignaturePad.js +11 -11
  51. package/dist/components/slider/Slider.js +22 -22
  52. package/dist/components/split-button/SplitButton.d.ts +6 -6
  53. package/dist/components/split-button/SplitButton.js +17 -13
  54. package/dist/components/splitter/Splitter.js +9 -9
  55. package/dist/components/steps/Steps.js +23 -23
  56. package/dist/components/swap/Swap.js +6 -6
  57. package/dist/components/switch/Switch.js +9 -9
  58. package/dist/components/table/Table.js +23 -23
  59. package/dist/components/tabs/Tabs.js +12 -12
  60. package/dist/components/tags-input/TagsInput.js +20 -20
  61. package/dist/components/timer/Timer.js +14 -14
  62. package/dist/components/toast/Toast.js +8 -8
  63. package/dist/components/toc/Toc.js +19 -19
  64. package/dist/components/toggle/Toggle.js +4 -4
  65. package/dist/components/tooltip/Tooltip.js +11 -11
  66. package/dist/components/tour/Tour.js +26 -26
  67. package/dist/components/tree-view/TreeView.js +30 -30
  68. package/dist/styles/animations.css +8 -8
  69. package/package.json +1 -1
@@ -7,43 +7,43 @@ import { SeparatorMarkIcon } from "../../internal/icons/ui/index.js";
7
7
  const PinInput_PinInputRoot = /*#__PURE__*/ forwardRef(function({ className, count, placeholder = '', ...props }, ref) {
8
8
  return /*#__PURE__*/ jsx(PinInput.Root, {
9
9
  ref: ref,
10
- "data-slot": "pin-input-root",
11
10
  className: cn('inline-flex w-auto max-w-none flex-col items-start gap-2 data-disabled:opacity-50', className),
12
11
  count: count,
13
12
  placeholder: placeholder,
14
- ...props
13
+ ...props,
14
+ "data-slot": "pin-input-root"
15
15
  });
16
16
  });
17
17
  const PinInput_PinInputRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
18
18
  return /*#__PURE__*/ jsx(PinInput.RootProvider, {
19
19
  ref: ref,
20
- "data-slot": "pin-input-root-provider",
21
20
  className: cn('inline-flex w-auto max-w-none flex-col items-start gap-2 data-disabled:opacity-50', className),
22
- ...props
21
+ ...props,
22
+ "data-slot": "pin-input-root-provider"
23
23
  });
24
24
  });
25
25
  const PinInput_PinInputLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
26
26
  return /*#__PURE__*/ jsx(PinInput.Label, {
27
27
  ref: ref,
28
- "data-slot": "pin-input-label",
29
28
  className: cn('text-sm leading-5 font-medium text-foreground', className),
30
- ...props
29
+ ...props,
30
+ "data-slot": "pin-input-label"
31
31
  });
32
32
  });
33
33
  const PinInput_PinInputControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
34
34
  return /*#__PURE__*/ jsx(PinInput.Control, {
35
35
  ref: ref,
36
- "data-slot": "pin-input-control",
37
36
  className: cn('inline-flex items-center gap-2', className),
38
- ...props
37
+ ...props,
38
+ "data-slot": "pin-input-control"
39
39
  });
40
40
  });
41
41
  const PinInput_PinInputInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
42
42
  return /*#__PURE__*/ jsx(PinInput.Input, {
43
43
  ref: ref,
44
- "data-slot": "pin-input-input",
45
44
  className: cn('size-control-md flex-none rounded-md border border-border bg-background px-0 py-0 text-center text-lg leading-7 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),
46
- ...props
45
+ ...props,
46
+ "data-slot": "pin-input-input"
47
47
  });
48
48
  });
49
49
  function PinInputInputs({ className }) {
@@ -55,11 +55,11 @@ function PinInputInputs({ className }) {
55
55
  }
56
56
  function PinInputSeparator({ className, 'aria-hidden': ariaHidden = true, role = 'presentation', children, ...props }) {
57
57
  return /*#__PURE__*/ jsx("span", {
58
- "data-slot": "pin-input-separator",
59
58
  "aria-hidden": ariaHidden,
60
59
  role: role,
61
60
  className: cn('pointer-events-none inline-flex size-4 flex-none items-center justify-center leading-none text-muted-foreground [&>svg]:size-full [&>svg]:flex-none', className),
62
61
  ...props,
62
+ "data-slot": "pin-input-separator",
63
63
  children: children ?? /*#__PURE__*/ jsx(SeparatorMarkIcon, {})
64
64
  });
65
65
  }
@@ -36,86 +36,86 @@ function PopoverRootProvider({ lazyMount = true, portalRef, unmountOnExit = true
36
36
  const Popover_PopoverAnchor = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
37
37
  return /*#__PURE__*/ jsx(Popover.Anchor, {
38
38
  ref: ref,
39
- "data-slot": "popover-anchor",
40
39
  className: className,
41
- ...props
40
+ ...props,
41
+ "data-slot": "popover-anchor"
42
42
  });
43
43
  });
44
44
  const Popover_PopoverTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
45
45
  return /*#__PURE__*/ jsx(Popover.Trigger, {
46
46
  ref: ref,
47
- "data-slot": "popover-trigger",
48
47
  asChild: asChild,
49
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 leading-6 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),
50
- ...props
49
+ ...props,
50
+ "data-slot": "popover-trigger"
51
51
  });
52
52
  });
53
53
  const Popover_PopoverIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
54
54
  return /*#__PURE__*/ jsx(Popover.Indicator, {
55
55
  ref: ref,
56
- "data-slot": "popover-indicator",
57
56
  className: className,
58
- ...props
57
+ ...props,
58
+ "data-slot": "popover-indicator"
59
59
  });
60
60
  });
61
61
  const Popover_PopoverPositioner = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
62
62
  return /*#__PURE__*/ jsx(OverlayPortal, {
63
63
  children: /*#__PURE__*/ jsx(Popover.Positioner, {
64
64
  ref: ref,
65
- "data-slot": "popover-positioner",
66
65
  className: cn('z-[var(--z-index,var(--moduix-z-popup))] max-w-[var(--available-width)] outline-0', className),
67
- ...props
66
+ ...props,
67
+ "data-slot": "popover-positioner"
68
68
  })
69
69
  });
70
70
  });
71
71
  const Popover_PopoverContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
72
72
  return /*#__PURE__*/ jsx(Popover.Content, {
73
73
  ref: ref,
74
- "data-slot": "popover-content",
75
74
  className: cn('group/popover-content relative z-[calc(var(--moduix-z-popup)+var(--layer-index,0))] max-h-[min(24rem,var(--available-height,100dvh))] max-w-[min(28rem,var(--available-width))] min-w-[min(16rem,var(--available-width))] origin-[var(--transform-origin)] overflow-visible rounded-md bg-popover p-4 wrap-anywhere text-popover-foreground shadow-lg outline-1 outline-border has-[>[data-slot=popover-body]]:flex has-[>[data-slot=popover-body]]:flex-col data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open motion-reduce:animate-none has-[>[data-slot=popover-body]]:[&>[data-slot=popover-body]]:overflow-auto', className),
76
- ...props
75
+ ...props,
76
+ "data-slot": "popover-content"
77
77
  });
78
78
  });
79
79
  const Popover_PopoverArrow = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
80
80
  return /*#__PURE__*/ jsx(Popover.Arrow, {
81
81
  ref: ref,
82
- "data-slot": "popover-arrow",
83
82
  className: cn('[--arrow-background:var(--color-popover)] [--arrow-size:0.625rem]', className),
84
83
  ...props,
84
+ "data-slot": "popover-arrow",
85
85
  children: children ?? /*#__PURE__*/ jsx(Popover_PopoverArrowTip, {})
86
86
  });
87
87
  });
88
88
  const Popover_PopoverArrowTip = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
89
89
  return /*#__PURE__*/ jsx(Popover.ArrowTip, {
90
90
  ref: ref,
91
- "data-slot": "popover-arrow-tip",
92
91
  className: cn('border-t border-l border-border', className),
93
- ...props
92
+ ...props,
93
+ "data-slot": "popover-arrow-tip"
94
94
  });
95
95
  });
96
96
  const Popover_PopoverTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
97
97
  return /*#__PURE__*/ jsx(Popover.Title, {
98
98
  ref: ref,
99
- "data-slot": "popover-title",
100
99
  className: cn('text-md leading-6 font-semibold text-popover-foreground', className),
101
- ...props
100
+ ...props,
101
+ "data-slot": "popover-title"
102
102
  });
103
103
  });
104
104
  const Popover_PopoverDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
105
105
  return /*#__PURE__*/ jsx(Popover.Description, {
106
106
  ref: ref,
107
- "data-slot": "popover-description",
108
107
  className: cn('text-sm leading-5 text-muted-foreground', className),
109
- ...props
108
+ ...props,
109
+ "data-slot": "popover-description"
110
110
  });
111
111
  });
112
112
  const Popover_PopoverCloseTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
113
113
  return /*#__PURE__*/ jsx(Popover.CloseTrigger, {
114
114
  ref: ref,
115
- "data-slot": "popover-close-trigger",
116
115
  asChild: asChild,
117
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 leading-6 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),
118
- ...props
117
+ ...props,
118
+ "data-slot": "popover-close-trigger"
119
119
  });
120
120
  });
121
121
  const Popover_PopoverCloseIcon = /*#__PURE__*/ forwardRef(function({ className, children, 'aria-label': ariaLabel = DEFAULT_CLOSE_BUTTON_LABEL, ...props }, ref) {
@@ -134,25 +134,25 @@ 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
- "data-slot": "popover-header",
138
137
  className: cn('grid gap-1 group-has-[>[data-slot=popover-close-icon]]/popover-content:pe-10', className),
139
- ...props
138
+ ...props,
139
+ "data-slot": "popover-header"
140
140
  });
141
141
  });
142
142
  const Popover_PopoverBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
143
143
  return /*#__PURE__*/ jsx(ark.div, {
144
144
  ref: ref,
145
- "data-slot": "popover-body",
146
145
  className: cn('min-h-0', className),
147
- ...props
146
+ ...props,
147
+ "data-slot": "popover-body"
148
148
  });
149
149
  });
150
150
  const Popover_PopoverFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
151
151
  return /*#__PURE__*/ jsx(ark.div, {
152
152
  ref: ref,
153
- "data-slot": "popover-footer",
154
153
  className: cn('mt-3 flex items-center justify-end gap-2', className),
155
- ...props
154
+ ...props,
155
+ "data-slot": "popover-footer"
156
156
  });
157
157
  });
158
158
  const Popover_Popover = Object.assign(PopoverRoot, {
@@ -6,57 +6,57 @@ import { cn } from "../../internal/cn.js";
6
6
  const ProgressCircular_ProgressCircularRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
7
7
  return /*#__PURE__*/ jsx(Progress.Root, {
8
8
  ref: ref,
9
- "data-slot": "progress-circular-root",
10
9
  className: cn('inline-grid w-max max-w-full min-w-0 justify-items-center gap-2 text-foreground', className),
11
- ...props
10
+ ...props,
11
+ "data-slot": "progress-circular-root"
12
12
  });
13
13
  });
14
14
  const ProgressCircular_ProgressCircularRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
15
15
  return /*#__PURE__*/ jsx(Progress.RootProvider, {
16
16
  ref: ref,
17
- "data-slot": "progress-circular-root-provider",
18
17
  className: cn('inline-grid w-max max-w-full min-w-0 justify-items-center gap-2 text-foreground', className),
19
- ...props
18
+ ...props,
19
+ "data-slot": "progress-circular-root-provider"
20
20
  });
21
21
  });
22
22
  const ProgressCircular_ProgressCircularLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
23
23
  return /*#__PURE__*/ jsx(Progress.Label, {
24
24
  ref: ref,
25
- "data-slot": "progress-circular-label",
26
25
  className: cn('max-w-full min-w-0 text-center text-sm font-regular [overflow-wrap:anywhere]', className),
27
- ...props
26
+ ...props,
27
+ "data-slot": "progress-circular-label"
28
28
  });
29
29
  });
30
30
  const ProgressCircular_ProgressCircularValueText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
31
31
  return /*#__PURE__*/ jsx(Progress.ValueText, {
32
32
  ref: ref,
33
- "data-slot": "progress-circular-value-text",
34
33
  className: cn('max-w-full min-w-0 text-center text-sm font-medium [overflow-wrap:anywhere]', className),
35
- ...props
34
+ ...props,
35
+ "data-slot": "progress-circular-value-text"
36
36
  });
37
37
  });
38
38
  const ProgressCircular_ProgressCircularCircle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
39
39
  return /*#__PURE__*/ jsx(Progress.Circle, {
40
40
  ref: ref,
41
- "data-slot": "progress-circular-circle",
42
41
  className: cn('block overflow-visible [--size:var(--spacing-control-xl)] [--thickness:0.4rem]', className),
43
- ...props
42
+ ...props,
43
+ "data-slot": "progress-circular-circle"
44
44
  });
45
45
  });
46
46
  const ProgressCircular_ProgressCircularCircleTrack = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
47
47
  return /*#__PURE__*/ jsx(Progress.CircleTrack, {
48
48
  ref: ref,
49
- "data-slot": "progress-circular-circle-track",
50
49
  className: cn('stroke-muted', className),
51
- ...props
50
+ ...props,
51
+ "data-slot": "progress-circular-circle-track"
52
52
  });
53
53
  });
54
54
  const ProgressCircular_ProgressCircularCircleRange = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
55
55
  return /*#__PURE__*/ jsx(Progress.CircleRange, {
56
56
  ref: ref,
57
- "data-slot": "progress-circular-circle-range",
58
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-spin_1.4s_linear_infinite] 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),
59
- ...props
58
+ ...props,
59
+ "data-slot": "progress-circular-circle-range"
60
60
  });
61
61
  });
62
62
  const ProgressCircular_ProgressCircularRing = /*#__PURE__*/ forwardRef(function(props, ref) {
@@ -72,9 +72,9 @@ const ProgressCircular_ProgressCircularRing = /*#__PURE__*/ forwardRef(function(
72
72
  const ProgressCircular_ProgressCircularView = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
73
73
  return /*#__PURE__*/ jsx(Progress.View, {
74
74
  ref: ref,
75
- "data-slot": "progress-circular-view",
76
75
  className: cn('contents', className),
77
- ...props
76
+ ...props,
77
+ "data-slot": "progress-circular-view"
78
78
  });
79
79
  });
80
80
  const ProgressCircular = Object.assign(ProgressCircular_ProgressCircularRoot, {
@@ -5,57 +5,57 @@ import { cn } from "../../internal/cn.js";
5
5
  const ProgressLinear_ProgressLinearRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
6
6
  return /*#__PURE__*/ jsx(Progress.Root, {
7
7
  ref: ref,
8
- "data-slot": "progress-linear-root",
9
8
  className: cn('box-border grid w-48 max-w-full min-w-0 grid-cols-[minmax(0,1fr)_auto] gap-2 text-foreground data-[orientation=vertical]:h-48 data-[orientation=vertical]:w-max data-[orientation=vertical]:grid-rows-[auto_minmax(0,1fr)]', className),
10
- ...props
9
+ ...props,
10
+ "data-slot": "progress-linear-root"
11
11
  });
12
12
  });
13
13
  const ProgressLinear_ProgressLinearRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
14
14
  return /*#__PURE__*/ jsx(Progress.RootProvider, {
15
15
  ref: ref,
16
- "data-slot": "progress-linear-root-provider",
17
16
  className: cn('box-border grid w-48 max-w-full min-w-0 grid-cols-[minmax(0,1fr)_auto] gap-2 text-foreground data-[orientation=vertical]:h-48 data-[orientation=vertical]:w-max data-[orientation=vertical]:grid-rows-[auto_minmax(0,1fr)]', className),
18
- ...props
17
+ ...props,
18
+ "data-slot": "progress-linear-root-provider"
19
19
  });
20
20
  });
21
21
  const ProgressLinear_ProgressLinearLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
22
22
  return /*#__PURE__*/ jsx(Progress.Label, {
23
23
  ref: ref,
24
- "data-slot": "progress-linear-label",
25
24
  className: cn('min-w-0 text-sm leading-5 font-normal [overflow-wrap:anywhere] text-current', className),
26
- ...props
25
+ ...props,
26
+ "data-slot": "progress-linear-label"
27
27
  });
28
28
  });
29
29
  const ProgressLinear_ProgressLinearValueText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
30
30
  return /*#__PURE__*/ jsx(Progress.ValueText, {
31
31
  ref: ref,
32
- "data-slot": "progress-linear-value-text",
33
32
  className: cn('min-w-0 justify-self-end text-end text-sm leading-5 font-normal [overflow-wrap:anywhere] text-current', className),
34
- ...props
33
+ ...props,
34
+ "data-slot": "progress-linear-value-text"
35
35
  });
36
36
  });
37
37
  const ProgressLinear_ProgressLinearTrack = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
38
38
  return /*#__PURE__*/ jsx(Progress.Track, {
39
39
  ref: ref,
40
- "data-slot": "progress-linear-track",
41
40
  className: cn('col-span-full box-border block h-2 w-full overflow-hidden rounded-full bg-muted ring-1 ring-border ring-inset data-[orientation=vertical]:flex data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2 data-[orientation=vertical]:items-end data-[orientation=vertical]:justify-self-center', className),
42
- ...props
41
+ ...props,
42
+ "data-slot": "progress-linear-track"
43
43
  });
44
44
  });
45
45
  const ProgressLinear_ProgressLinearRange = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
46
46
  return /*#__PURE__*/ jsx(Progress.Range, {
47
47
  ref: ref,
48
- "data-slot": "progress-linear-range",
49
48
  className: cn('block h-full rounded-[inherit] bg-primary transition-[width,height] duration-200 ease-in-out data-[orientation=vertical]:w-full data-[state=indeterminate]:w-[35%] data-[state=indeterminate]:animate-moduix-progress-linear-indeterminate data-[state=indeterminate]:data-[orientation=vertical]:h-[35%] data-[state=indeterminate]:data-[orientation=vertical]:animate-moduix-progress-linear-indeterminate-vertical motion-reduce:data-[state=indeterminate]:translate-x-0 motion-reduce:data-[state=indeterminate]:translate-y-0 motion-reduce:data-[state=indeterminate]:animate-none rtl:data-[state=indeterminate]:data-[orientation=horizontal]:[animation-direction:reverse]', className),
50
- ...props
49
+ ...props,
50
+ "data-slot": "progress-linear-range"
51
51
  });
52
52
  });
53
53
  const ProgressLinear_ProgressLinearView = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
54
54
  return /*#__PURE__*/ jsx(Progress.View, {
55
55
  ref: ref,
56
- "data-slot": "progress-linear-view",
57
56
  className: cn('contents', className),
58
- ...props
57
+ ...props,
58
+ "data-slot": "progress-linear-view"
59
59
  });
60
60
  });
61
61
  const ProgressLinear = Object.assign(ProgressLinear_ProgressLinearRoot, {
@@ -6,49 +6,49 @@ import { cn } from "../../internal/cn.js";
6
6
  const QrCode_QrCodeRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
7
7
  return /*#__PURE__*/ jsx(QrCode.Root, {
8
8
  ref: ref,
9
- "data-slot": "qr-code-root",
10
9
  className: cn('relative box-border inline-flex w-32 max-w-full flex-col items-center gap-3 text-foreground', className),
11
- ...props
10
+ ...props,
11
+ "data-slot": "qr-code-root"
12
12
  });
13
13
  });
14
14
  const QrCode_QrCodeRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
15
15
  return /*#__PURE__*/ jsx(QrCode.RootProvider, {
16
16
  ref: ref,
17
- "data-slot": "qr-code-root-provider",
18
17
  className: cn('relative box-border inline-flex w-32 max-w-full flex-col items-center gap-3 text-foreground', className),
19
- ...props
18
+ ...props,
19
+ "data-slot": "qr-code-root-provider"
20
20
  });
21
21
  });
22
22
  const QrCode_QrCodeFrame = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
23
23
  return /*#__PURE__*/ jsx(QrCode.Frame, {
24
24
  ref: ref,
25
- "data-slot": "qr-code-frame",
26
25
  className: cn('box-border aspect-square h-auto w-full fill-current text-inherit', className),
27
- ...props
26
+ ...props,
27
+ "data-slot": "qr-code-frame"
28
28
  });
29
29
  });
30
30
  const QrCode_QrCodePattern = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
31
31
  return /*#__PURE__*/ jsx(QrCode.Pattern, {
32
32
  ref: ref,
33
- "data-slot": "qr-code-pattern",
34
33
  className: cn('fill-inherit', className),
35
- ...props
34
+ ...props,
35
+ "data-slot": "qr-code-pattern"
36
36
  });
37
37
  });
38
38
  const QrCode_QrCodeOverlay = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
39
39
  return /*#__PURE__*/ jsx(QrCode.Overlay, {
40
40
  ref: ref,
41
- "data-slot": "qr-code-overlay",
42
41
  className: cn('box-border inline-flex size-control-lg items-center justify-center rounded-sm bg-background p-1 text-foreground [&_img]:size-full [&_img]:object-contain [&_svg]:size-full [&_svg]:object-contain', className),
43
- ...props
42
+ ...props,
43
+ "data-slot": "qr-code-overlay"
44
44
  });
45
45
  });
46
46
  const QrCode_QrCodeDownloadTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
47
47
  return /*#__PURE__*/ jsx(QrCode.DownloadTrigger, {
48
48
  ref: ref,
49
- "data-slot": "qr-code-download-trigger",
50
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 leading-5 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),
51
- ...props
50
+ ...props,
51
+ "data-slot": "qr-code-download-trigger"
52
52
  });
53
53
  });
54
54
  const QrCode_QrCode = Object.assign(QrCode_QrCodeRoot, {
@@ -21,33 +21,33 @@ const radioGroupItemControlVariants = cva("relative inline-flex shrink-0 items-c
21
21
  const RadioGroup_RadioGroupRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
22
22
  return /*#__PURE__*/ jsx(RadioGroup.Root, {
23
23
  ref: ref,
24
- "data-slot": "radio-group-root",
25
24
  className: cn('relative flex flex-col gap-2 text-foreground data-disabled:cursor-default', className),
26
- ...props
25
+ ...props,
26
+ "data-slot": "radio-group-root"
27
27
  });
28
28
  });
29
29
  const RadioGroup_RadioGroupRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
30
30
  return /*#__PURE__*/ jsx(RadioGroup.RootProvider, {
31
31
  ref: ref,
32
- "data-slot": "radio-group-root-provider",
33
32
  className: cn('relative flex flex-col gap-2 text-foreground data-disabled:cursor-default', className),
34
- ...props
33
+ ...props,
34
+ "data-slot": "radio-group-root-provider"
35
35
  });
36
36
  });
37
37
  const RadioGroup_RadioGroupLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
38
38
  return /*#__PURE__*/ jsx(RadioGroup.Label, {
39
39
  ref: ref,
40
- "data-slot": "radio-group-label",
41
40
  className: cn('text-sm leading-5 font-semibold text-inherit', className),
42
- ...props
41
+ ...props,
42
+ "data-slot": "radio-group-label"
43
43
  });
44
44
  });
45
45
  const RadioGroup_RadioGroupItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
46
46
  return /*#__PURE__*/ jsx(RadioGroup.Item, {
47
47
  ref: ref,
48
- "data-slot": "radio-group-item",
49
48
  className: cn('inline-flex w-fit cursor-pointer items-center gap-2 align-middle data-disabled:cursor-default data-disabled:opacity-50 data-readonly:cursor-default', className),
50
- ...props
49
+ ...props,
50
+ "data-slot": "radio-group-item"
51
51
  });
52
52
  });
53
53
  const RadioGroup_RadioGroupOption = /*#__PURE__*/ forwardRef(function({ children, size, ...props }, ref) {
@@ -68,28 +68,28 @@ 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-slot": "radio-group-item-control",
72
71
  "data-size": size,
73
72
  className: cn(radioGroupItemControlVariants({
74
73
  size
75
74
  }), className),
76
- ...props
75
+ ...props,
76
+ "data-slot": "radio-group-item-control"
77
77
  });
78
78
  });
79
79
  const RadioGroup_RadioGroupItemText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
80
80
  return /*#__PURE__*/ jsx(RadioGroup.ItemText, {
81
81
  ref: ref,
82
- "data-slot": "radio-group-item-text",
83
82
  className: cn('text-sm leading-5 font-medium text-inherit', className),
84
- ...props
83
+ ...props,
84
+ "data-slot": "radio-group-item-text"
85
85
  });
86
86
  });
87
87
  const RadioGroup_RadioGroupIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
88
88
  return /*#__PURE__*/ jsx(RadioGroup.Indicator, {
89
89
  ref: ref,
90
- "data-slot": "radio-group-indicator",
91
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-[var(--transition-property,translate)] duration-200 ease-in-out motion-reduce:transition-none', className),
92
- ...props
91
+ ...props,
92
+ "data-slot": "radio-group-indicator"
93
93
  });
94
94
  });
95
95
  const RadioGroup_RadioGroup = Object.assign(RadioGroup_RadioGroupRoot, {
@@ -7,54 +7,54 @@ 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-slot": "rating-group-root",
11
10
  "data-size": size,
12
11
  className: cn('group/rating-group inline-flex flex-col gap-1 text-muted-foreground', className),
13
- ...props
12
+ ...props,
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-slot": "rating-group-root-provider",
20
19
  "data-size": size,
21
20
  className: cn('group/rating-group inline-flex flex-col gap-1 text-muted-foreground', className),
22
- ...props
21
+ ...props,
22
+ "data-slot": "rating-group-root-provider"
23
23
  });
24
24
  });
25
25
  const RatingGroup_RatingGroupLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
26
26
  return /*#__PURE__*/ jsx(RatingGroup.Label, {
27
27
  ref: ref,
28
- "data-slot": "rating-group-label",
29
28
  className: cn('text-sm leading-5 font-semibold text-foreground select-none data-disabled:opacity-50', className),
30
- ...props
29
+ ...props,
30
+ "data-slot": "rating-group-label"
31
31
  });
32
32
  });
33
33
  const RatingGroup_RatingGroupControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
34
34
  return /*#__PURE__*/ jsx(RatingGroup.Control, {
35
35
  ref: ref,
36
- "data-slot": "rating-group-control",
37
36
  className: cn('inline-flex items-center gap-1 data-disabled:opacity-50', className),
38
- ...props
37
+ ...props,
38
+ "data-slot": "rating-group-control"
39
39
  });
40
40
  });
41
41
  const RatingGroup_RatingGroupItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
42
42
  return /*#__PURE__*/ jsx(RatingGroup.Item, {
43
43
  ref: ref,
44
- "data-slot": "rating-group-item",
45
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 data-disabled:pointer-events-none data-disabled:cursor-default data-focus-visible:outline-1 data-focus-visible:outline-offset-1 data-focus-visible:outline-ring data-readonly:cursor-default', className),
46
- ...props
45
+ ...props,
46
+ "data-slot": "rating-group-item"
47
47
  });
48
48
  });
49
49
  const RatingGroup_RatingGroupItemIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
50
50
  const { half, highlighted } = useRatingGroupItemContext();
51
51
  return /*#__PURE__*/ jsx("span", {
52
52
  ref: ref,
53
- "data-slot": "rating-group-item-indicator",
54
53
  "data-half": half ? '' : void 0,
55
54
  "data-highlighted": highlighted ? '' : void 0,
56
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),
57
56
  ...props,
57
+ "data-slot": "rating-group-item-indicator",
58
58
  children: children ?? /*#__PURE__*/ jsxs(Fragment, {
59
59
  children: [
60
60
  /*#__PURE__*/ jsx(RatingStarIcon, {
@@ -37,57 +37,57 @@ const SegmentGroup_SegmentGroupRoot = /*#__PURE__*/ forwardRef(function({ classN
37
37
  return /*#__PURE__*/ jsx(SegmentGroup.RootProvider, {
38
38
  ref: ref,
39
39
  value: segmentGroup,
40
- "data-slot": "segment-group-root",
41
40
  className: cn('group/segment-group relative isolate box-border inline-flex max-w-full items-stretch gap-1 rounded-lg border border-border bg-muted p-1 text-foreground data-disabled:opacity-50 data-invalid:border-destructive data-[orientation=vertical]:flex-col', className),
42
- ...props
41
+ ...props,
42
+ "data-slot": "segment-group-root"
43
43
  });
44
44
  });
45
45
  const SegmentGroup_SegmentGroupRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
46
46
  return /*#__PURE__*/ jsx(SegmentGroup.RootProvider, {
47
47
  ref: ref,
48
- "data-slot": "segment-group-root-provider",
49
48
  className: cn('group/segment-group relative isolate box-border inline-flex max-w-full items-stretch gap-1 rounded-lg border border-border bg-muted p-1 text-foreground data-disabled:opacity-50 data-invalid:border-destructive data-[orientation=vertical]:flex-col', className),
50
- ...props
49
+ ...props,
50
+ "data-slot": "segment-group-root-provider"
51
51
  });
52
52
  });
53
53
  const SegmentGroup_SegmentGroupLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
54
54
  return /*#__PURE__*/ jsx(SegmentGroup.Label, {
55
55
  ref: ref,
56
- "data-slot": "segment-group-label",
57
56
  className: cn('relative z-1 text-sm leading-5 font-semibold text-inherit select-none', className),
58
- ...props
57
+ ...props,
58
+ "data-slot": "segment-group-label"
59
59
  });
60
60
  });
61
61
  const SegmentGroup_SegmentGroupItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
62
62
  return /*#__PURE__*/ jsx(SegmentGroup.Item, {
63
63
  ref: ref,
64
- "data-slot": "segment-group-item",
65
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:-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),
66
- ...props
65
+ ...props,
66
+ "data-slot": "segment-group-item"
67
67
  });
68
68
  });
69
69
  const SegmentGroup_SegmentGroupItemControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
70
70
  return /*#__PURE__*/ jsx(SegmentGroup.ItemControl, {
71
71
  ref: ref,
72
- "data-slot": "segment-group-item-control",
73
72
  className: cn('hidden', className),
74
- ...props
73
+ ...props,
74
+ "data-slot": "segment-group-item-control"
75
75
  });
76
76
  });
77
77
  const SegmentGroup_SegmentGroupItemText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
78
78
  return /*#__PURE__*/ jsx(SegmentGroup.ItemText, {
79
79
  ref: ref,
80
- "data-slot": "segment-group-item-text",
81
80
  className: cn('relative z-1', className),
82
- ...props
81
+ ...props,
82
+ "data-slot": "segment-group-item-text"
83
83
  });
84
84
  });
85
85
  const SegmentGroup_SegmentGroupIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
86
86
  return /*#__PURE__*/ jsx(SegmentGroup.Indicator, {
87
87
  ref: ref,
88
- "data-slot": "segment-group-indicator",
89
88
  className: cn('pointer-events-none absolute top-[var(--top)] left-[var(--left)] z-0 h-[var(--height)] w-[var(--width)] rounded-md bg-background shadow-sm !duration-200 !ease-in-out', className),
90
- ...props
89
+ ...props,
90
+ "data-slot": "segment-group-indicator"
91
91
  });
92
92
  });
93
93
  function SegmentGroupItems({ items }) {