@justanarthur/modo-ui 0.1.0 → 0.2.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 (166) hide show
  1. package/dist/blocks/sidebar-app/index.d.ts +1 -1
  2. package/dist/blocks/sidebar-app/index.js +28 -31
  3. package/dist/components/badge/index.d.ts +1 -1
  4. package/dist/components/badge/index.js +12 -14
  5. package/dist/components/button/index.d.ts +1 -1
  6. package/dist/components/button/index.js +10 -12
  7. package/dist/components/card/index.d.ts +1 -1
  8. package/dist/components/card/index.js +38 -40
  9. package/dist/components/inputs/checkbox-group/index.d.ts +1 -1
  10. package/dist/components/inputs/checkbox-group/index.js +17 -19
  11. package/dist/components/inputs/color-picker/index.d.ts +1 -1
  12. package/dist/components/inputs/color-picker/index.js +31 -33
  13. package/dist/components/inputs/combobox/index.d.ts +1 -1
  14. package/dist/components/inputs/combobox/index.js +31 -34
  15. package/dist/components/inputs/date-time/calendar/index.d.ts +1 -1
  16. package/dist/components/inputs/date-time/calendar/index.js +14 -16
  17. package/dist/components/inputs/date-time/date-picker/index.d.ts +1 -1
  18. package/dist/components/inputs/date-time/date-picker/index.js +28 -30
  19. package/dist/components/inputs/date-time/date-range-picker/index.d.ts +1 -1
  20. package/dist/components/inputs/date-time/date-range-picker/index.js +27 -29
  21. package/dist/components/inputs/date-time/duration-picker/index.d.ts +1 -1
  22. package/dist/components/inputs/date-time/duration-picker/index.js +27 -29
  23. package/dist/components/inputs/date-time/month-picker/index.d.ts +1 -1
  24. package/dist/components/inputs/date-time/month-picker/index.js +26 -28
  25. package/dist/components/inputs/date-time/time-picker/index.d.ts +1 -1
  26. package/dist/components/inputs/date-time/time-picker/index.js +27 -29
  27. package/dist/components/inputs/input/index.d.ts +1 -1
  28. package/dist/components/inputs/input/index.js +15 -16
  29. package/dist/components/inputs/input-copy/index.d.ts +1 -1
  30. package/dist/components/inputs/input-copy/index.js +12 -14
  31. package/dist/components/inputs/input-message/index.d.ts +1 -1
  32. package/dist/components/inputs/input-message/index.js +21 -23
  33. package/dist/components/inputs/radio-group/index.d.ts +1 -1
  34. package/dist/components/inputs/radio-group/index.js +16 -18
  35. package/dist/components/inputs/search/index.d.ts +1 -1
  36. package/dist/components/inputs/search/index.js +21 -24
  37. package/dist/components/inputs/select/index.d.ts +1 -1
  38. package/dist/components/inputs/select/index.js +30 -33
  39. package/dist/components/inputs/slider/index.d.ts +1 -1
  40. package/dist/components/inputs/slider/index.js +10 -12
  41. package/dist/components/inputs/switch/index.d.ts +1 -1
  42. package/dist/components/inputs/switch/index.js +10 -12
  43. package/dist/components/navigation/accordion/index.d.ts +1 -1
  44. package/dist/components/navigation/accordion/index.js +24 -26
  45. package/dist/components/navigation/sidebar/index.d.ts +3 -3
  46. package/dist/components/navigation/sidebar/index.js +95 -97
  47. package/dist/components/navigation/tabs/index.d.ts +1 -1
  48. package/dist/components/navigation/tabs/index.js +19 -21
  49. package/dist/components/navigation/tabs-subtle/index.d.ts +1 -1
  50. package/dist/components/navigation/tabs-subtle/index.js +17 -19
  51. package/dist/components/overlays/alert-dialog/index.d.ts +2 -2
  52. package/dist/components/overlays/alert-dialog/index.js +18 -20
  53. package/dist/components/overlays/command/index.d.ts +1 -1
  54. package/dist/components/overlays/command/index.js +32 -35
  55. package/dist/components/overlays/context-menu/index.d.ts +1 -1
  56. package/dist/components/overlays/context-menu/index.js +25 -28
  57. package/dist/components/overlays/dialog/index.d.ts +1 -1
  58. package/dist/components/overlays/dialog/index.js +33 -35
  59. package/dist/components/overlays/dropdown/index.d.ts +1 -1
  60. package/dist/components/overlays/dropdown/index.js +40 -43
  61. package/dist/components/overlays/popover/index.d.ts +1 -1
  62. package/dist/components/overlays/popover/index.js +22 -24
  63. package/dist/components/overlays/preview-card/index.d.ts +1 -1
  64. package/dist/components/overlays/preview-card/index.js +15 -17
  65. package/dist/components/overlays/sheet/index.d.ts +1 -1
  66. package/dist/components/overlays/sheet/index.js +20 -22
  67. package/dist/components/overlays/toast/index.d.ts +1 -1
  68. package/dist/components/overlays/toast/index.js +17 -19
  69. package/dist/components/overlays/tooltip/index.d.ts +1 -1
  70. package/dist/components/overlays/tooltip/index.js +13 -15
  71. package/dist/components/table/index.d.ts +1 -1
  72. package/dist/components/table/index.js +22 -24
  73. package/dist/components/thinking-indicator/index.d.ts +1 -1
  74. package/dist/components/thinking-indicator/index.js +9 -11
  75. package/dist/index.d.ts +51 -51
  76. package/dist/index.js +506 -508
  77. package/dist/preset.d.ts +1 -1
  78. package/dist/preset.js +5 -5
  79. package/dist/primitives/code/index.d.ts +1 -1
  80. package/dist/primitives/code/index.js +8 -9
  81. package/dist/primitives/craft/index.d.ts +1 -1
  82. package/dist/primitives/craft/index.js +6 -8
  83. package/dist/primitives/fluid-hover/index.d.ts +1 -1
  84. package/dist/primitives/fluid-hover/index.js +18 -20
  85. package/dist/primitives/morph/index.d.ts +1 -1
  86. package/dist/primitives/morph/index.js +15 -17
  87. package/dist/primitives/motion/index.d.ts +1 -1
  88. package/dist/primitives/motion/index.js +15 -16
  89. package/dist/primitives/scroll-area/index.d.ts +1 -1
  90. package/dist/primitives/scroll-area/index.js +8 -9
  91. package/dist/primitives/sizes/index.d.ts +1 -1
  92. package/dist/primitives/sizes/index.js +17 -18
  93. package/dist/primitives/surface/index.d.ts +1 -1
  94. package/dist/primitives/surface/index.js +11 -12
  95. package/dist/shared/components-0ke6xada.js +123 -0
  96. package/dist/shared/{components-jxgznftn.js → components-0q0sqfh4.js} +16 -16
  97. package/dist/shared/{components-x3rz4cyn.js → components-0sn7ypjw.js} +14 -14
  98. package/dist/shared/{components-p2vmyfe1.js → components-1j9791sn.js} +42 -42
  99. package/dist/shared/{components-6phwsry6.js → components-1rfwbyyc.js} +25 -25
  100. package/dist/shared/{components-vc1k7yv2.js → components-1v7rxytx.js} +3 -3
  101. package/dist/shared/{components-tm88ghva.js → components-1xekx2hx.js} +58 -58
  102. package/dist/shared/{components-6t6nr33r.js → components-39jq9va1.js} +26 -26
  103. package/dist/shared/{components-j65qt1mq.js → components-3gae8nta.js} +101 -101
  104. package/dist/shared/{components-r2gke5p6.js → components-3k8xpnpq.js} +125 -125
  105. package/dist/shared/{components-6y1th6k4.js → components-3mkepka5.js} +31 -31
  106. package/dist/shared/{components-vktws5r6.js → components-3wk0w46f.js} +72 -72
  107. package/dist/shared/{components-zx2hr57f.js → components-4cnjmgex.js} +15 -15
  108. package/dist/shared/{components-e46kf6cp.js → components-59efxjd9.js} +8 -8
  109. package/dist/shared/{components-rc63qsy6.js → components-5xc2j8jz.js} +10 -10
  110. package/dist/shared/{components-7gv95yfy.js → components-62ybc7t2.js} +83 -83
  111. package/dist/shared/{components-brnzrp2t.js → components-66mv71kx.js} +41 -41
  112. package/dist/shared/{components-taxmgbnh.js → components-7ans7ce5.js} +17 -17
  113. package/dist/shared/{components-hzfp4tjb.js → components-7btqt08d.js} +42 -42
  114. package/dist/shared/{components-9p8s8n5q.js → components-7r3etddy.js} +22 -22
  115. package/dist/shared/{components-5zry9te1.js → components-7x9kawxv.js} +26 -26
  116. package/dist/shared/{components-4hh0gm0v.js → components-8fpr3s4p.js} +61 -61
  117. package/dist/shared/{components-x2xyckd5.js → components-9jvzzvt1.js} +20 -20
  118. package/dist/shared/{components-bf2d9k02.js → components-apdwtweq.js} +94 -94
  119. package/dist/shared/{components-hjkrv00c.js → components-asr5pg50.js} +18 -18
  120. package/dist/shared/{components-5pkcfprd.js → components-b2wyq2cq.js} +22 -22
  121. package/dist/shared/{components-nn6xezy2.js → components-ca2c898n.js} +226 -226
  122. package/dist/shared/{components-xszag63d.js → components-cbxjn9p8.js} +12 -12
  123. package/dist/shared/{components-kf2ehztc.js → components-chacnk61.js} +16 -16
  124. package/dist/shared/{components-7zp99w5d.js → components-cv16mryv.js} +2 -2
  125. package/dist/shared/{components-4xxtggzp.js → components-ez65vtbq.js} +18 -18
  126. package/dist/shared/{components-0f0as45n.js → components-ezxhrmer.js} +2 -2
  127. package/dist/shared/{components-s3yfvfkr.js → components-gc5vtq2f.js} +42 -42
  128. package/dist/shared/components-gf5s6ap9.js +42 -0
  129. package/dist/shared/{components-7cqq1sqy.js → components-gvr9w41t.js} +40 -40
  130. package/dist/shared/{components-ess3ch6w.js → components-h2dpcwgc.js} +23 -23
  131. package/dist/shared/{components-ed7cmssr.js → components-hawvy2qz.js} +18 -18
  132. package/dist/shared/{components-7nww01w4.js → components-hqeq3w9q.js} +34 -34
  133. package/dist/shared/{components-vb033rns.js → components-jjw69c4c.js} +6 -6
  134. package/dist/shared/{components-tad5h7ta.js → components-jwst3vtj.js} +48 -48
  135. package/dist/shared/{components-r22vtgqc.js → components-kvr7f9hy.js} +11 -11
  136. package/dist/shared/{components-gndm6am4.js → components-ng72k97e.js} +17 -17
  137. package/dist/shared/{components-40j34hdb.js → components-nh8tma1n.js} +116 -116
  138. package/dist/shared/{components-s5pkbjx1.js → components-njzgqdwy.js} +56 -56
  139. package/dist/shared/{components-54nf2x99.js → components-ny774h8p.js} +42 -42
  140. package/dist/shared/{components-r4jt6hgd.js → components-q4daerx0.js} +6 -6
  141. package/dist/shared/{components-peg09pzs.js → components-q5xj5c16.js} +11 -11
  142. package/dist/shared/{components-r43mqnd6.js → components-rr7a6ja9.js} +46 -46
  143. package/dist/shared/{components-bkvb6nem.js → components-s2bz1xpk.js} +11 -11
  144. package/dist/shared/{components-zvb11ker.js → components-tqvarbfv.js} +47 -47
  145. package/dist/shared/{components-aaq3yk4f.js → components-v6xp325t.js} +43 -43
  146. package/dist/shared/{components-v7es8aan.js → components-v7wtz8hk.js} +15 -15
  147. package/dist/shared/components-vc7vq5nz.js +32 -0
  148. package/dist/shared/{components-6hzwfmfd.js → components-vfbhxf5r.js} +8 -8
  149. package/dist/shared/{components-8hk9ve3r.js → components-wvp1m52g.js} +57 -57
  150. package/dist/shared/{components-gjfrycb5.js → components-yh3kwdhr.js} +63 -66
  151. package/dist/shared/{components-y3cqdrgy.js → components-ytb2tefr.js} +43 -43
  152. package/dist/shared/{components-61ckf42z.js → components-zfnmn5d4.js} +64 -64
  153. package/dist/shared/{components-m5br529r.js → components-zrkzcayz.js} +2 -2
  154. package/dist/shared/{components-csxz9f52.js → components-zx6b6yby.js} +4 -4
  155. package/dist/styles.css +1 -1
  156. package/package.json +3 -3
  157. package/dist/shared/components-74c20v2f.js +0 -32
  158. package/dist/shared/components-8hzbsfbd.js +0 -123
  159. package/dist/shared/components-dphg9gjr.js +0 -42
  160. package/dist/shared/components-kpbcms10.js +0 -9
  161. /package/dist/shared/{components-5vxtcp88.js → components-3ky44908.js} +0 -0
  162. /package/dist/shared/{components-4xxddc44.js → components-c6s6b43g.js} +0 -0
  163. /package/dist/shared/{components-nnnd2xef.js → components-men63rwj.js} +0 -0
  164. /package/dist/shared/{components-de8xsm9y.js → components-mhd39z7x.js} +0 -0
  165. /package/dist/shared/{components-dg0w8g5p.js → components-n7mjr357.js} +0 -0
  166. /package/dist/shared/{components-jw16snbn.js → components-vynjtrk6.js} +0 -0
@@ -1,22 +1,22 @@
1
1
  import {
2
- FluidHoverHighlight
3
- } from "./components-r22vtgqc.js";
2
+ useReduceMotion
3
+ } from "./components-men63rwj.js";
4
4
  import {
5
- useFluidHover,
6
- useRegisterFluidHoverItem
7
- } from "./components-e46kf6cp.js";
5
+ cn2
6
+ } from "./components-ezxhrmer.js";
8
7
  import {
9
- useShape
10
- } from "./components-7zp99w5d.js";
8
+ FluidHoverHighlight2
9
+ } from "./components-kvr7f9hy.js";
11
10
  import {
12
- useReduceMotion
13
- } from "./components-nnnd2xef.js";
11
+ useShape
12
+ } from "./components-cv16mryv.js";
14
13
  import {
15
- useSize
16
- } from "./components-x3rz4cyn.js";
14
+ useSize2
15
+ } from "./components-0sn7ypjw.js";
17
16
  import {
18
- cn
19
- } from "./components-0f0as45n.js";
17
+ useFluidHover2,
18
+ useRegisterFluidHoverItem2
19
+ } from "./components-59efxjd9.js";
20
20
 
21
21
  // lib/date-locale.ts
22
22
  import { isValid, parse } from "date-fns";
@@ -78,7 +78,7 @@ function ScrollColumn({
78
78
  const centred = useRef(false);
79
79
  const reduceMotion = useReduceMotion();
80
80
  const horizontal = orientation === "horizontal";
81
- const hover = useFluidHover(containerRef, { axis: horizontal ? "x" : "y" });
81
+ const hover = useFluidHover2(containerRef, { axis: horizontal ? "x" : "y" });
82
82
  const shape = useShape();
83
83
  const axis = useRef(horizontal);
84
84
  useEffect(() => {
@@ -133,16 +133,16 @@ function ScrollColumn({
133
133
  onPointerLeave: () => {
134
134
  pointerInside.current = false;
135
135
  },
136
- className: cn("scrollbar-hide [--scroll-fade-size:24px]", horizontal ? "overflow-x-auto overflow-y-hidden scroll-fade-x" : "overflow-y-auto overflow-x-hidden scroll-fade", className),
136
+ className: cn2("scrollbar-hide [--scroll-fade-size:24px]", horizontal ? "overflow-x-auto overflow-y-hidden scroll-fade-x" : "overflow-y-auto overflow-x-hidden scroll-fade", className),
137
137
  children: /* @__PURE__ */ jsxs("div", {
138
138
  ref: containerRef,
139
139
  onMouseMove: hover.handlers.onMouseMove,
140
140
  onMouseEnter: hover.handlers.onMouseEnter,
141
141
  onMouseLeave: hover.handlers.onMouseLeave,
142
142
  onClick: hover.handlers.onClick,
143
- className: cn("relative flex p-1", horizontal ? "w-max flex-row" : "flex-col"),
143
+ className: cn2("relative flex p-1", horizontal ? "w-max flex-row" : "flex-col"),
144
144
  children: [
145
- /* @__PURE__ */ jsx(FluidHoverHighlight, {
145
+ /* @__PURE__ */ jsx(FluidHoverHighlight2, {
146
146
  hover,
147
147
  className: shape.bg
148
148
  }),
@@ -171,9 +171,9 @@ function ScrollColumnItem({
171
171
  onSelect
172
172
  }) {
173
173
  const ref = useRef(null);
174
- useRegisterFluidHoverItem(registerItem, index, ref);
174
+ useRegisterFluidHoverItem2(registerItem, index, ref);
175
175
  const shape = useShape();
176
- const sizeClasses = useSize();
176
+ const sizeClasses = useSize2();
177
177
  return /* @__PURE__ */ jsxs("button", {
178
178
  ref,
179
179
  type: "button",
@@ -184,7 +184,7 @@ function ScrollColumnItem({
184
184
  "data-value": option.value,
185
185
  "data-fluid-hover-index": index,
186
186
  onClick: onSelect,
187
- className: cn("relative z-[1] flex shrink-0 items-center justify-center px-2 tabular-nums whitespace-nowrap outline-none", "transition-[color,background-color] duration-fast focus-visible:ring-1 focus-visible:ring-focus-ring", "disabled:opacity-50 disabled:pointer-events-none", sizeClasses.segmentItem, sizeClasses.text, shape.item, band && !selected && "bg-accent/20 dark:bg-accent/12", selected && "bg-active", band && band !== "single" && "rounded-none", band === "start" && (horizontal ? "rounded-s-lg" : "rounded-t-lg"), band === "end" && (horizontal ? "rounded-e-lg" : "rounded-b-lg"), selected ? "text-foreground weight-semibold" : band ? "text-foreground" : "text-muted-foreground"),
187
+ className: cn2("relative z-[1] flex shrink-0 items-center justify-center px-2 tabular-nums whitespace-nowrap outline-none", "transition-[color,background-color] duration-fast focus-visible:ring-1 focus-visible:ring-focus-ring", "disabled:opacity-50 disabled:pointer-events-none", sizeClasses.segmentItem, sizeClasses.text, shape.item, band && !selected && "bg-accent/20 dark:bg-accent/12", selected && "bg-active", band && band !== "single" && "rounded-none", band === "start" && (horizontal ? "rounded-s-lg" : "rounded-t-lg"), band === "end" && (horizontal ? "rounded-e-lg" : "rounded-b-lg"), selected ? "text-foreground weight-semibold" : band ? "text-foreground" : "text-muted-foreground"),
188
188
  children: [
189
189
  selected && /* @__PURE__ */ jsx("span", {
190
190
  "aria-hidden": true,
@@ -1,25 +1,25 @@
1
1
  import {
2
- SizeProvider
3
- } from "./components-vb033rns.js";
2
+ cn2
3
+ } from "./components-ezxhrmer.js";
4
4
  import {
5
- useIcon
6
- } from "./components-m5br529r.js";
7
- import {
8
- FluidHoverHighlight
9
- } from "./components-r22vtgqc.js";
5
+ FluidHoverHighlight2
6
+ } from "./components-kvr7f9hy.js";
10
7
  import {
11
- useFluidHover,
12
- useRegisterFluidHoverItem
13
- } from "./components-e46kf6cp.js";
8
+ useIcon
9
+ } from "./components-zrkzcayz.js";
14
10
  import {
15
11
  useShape
16
- } from "./components-7zp99w5d.js";
12
+ } from "./components-cv16mryv.js";
13
+ import {
14
+ useSize2
15
+ } from "./components-0sn7ypjw.js";
17
16
  import {
18
- useSize
19
- } from "./components-x3rz4cyn.js";
17
+ useFluidHover2,
18
+ useRegisterFluidHoverItem2
19
+ } from "./components-59efxjd9.js";
20
20
  import {
21
- cn
22
- } from "./components-0f0as45n.js";
21
+ SizeProvider2
22
+ } from "./components-jjw69c4c.js";
23
23
 
24
24
  // components/card/index.tsx
25
25
  import {
@@ -40,7 +40,7 @@ var CardContext = createContext({
40
40
  clickable: false,
41
41
  hasImage: false
42
42
  });
43
- var CardGroup = forwardRef(({
43
+ var CardGroup2 = forwardRef(({
44
44
  orientation = "card",
45
45
  columns = 1,
46
46
  border = "none",
@@ -53,7 +53,7 @@ var CardGroup = forwardRef(({
53
53
  const containerRef = useRef(null);
54
54
  const shape = useShape();
55
55
  const axis = columns > 1 ? "xy" : "y";
56
- const hover = useFluidHover(containerRef, { axis, gapClick: { maxDistance: 16 } });
56
+ const hover = useFluidHover2(containerRef, { axis, gapClick: { maxDistance: 16 } });
57
57
  const { activeIndex, handlers, registerItem } = hover;
58
58
  const childArray = Children.toArray(children).filter(isValidElement);
59
59
  const count = childArray.length;
@@ -85,7 +85,7 @@ var CardGroup = forwardRef(({
85
85
  ...props,
86
86
  "data-slot": "card-group",
87
87
  "data-orientation": orientation,
88
- className: cn("relative grid", outlined && !separated && `border border-border/60 overflow-hidden ${shape.container}`, separated ? "gap-2" : "gap-0", className),
88
+ className: cn2("relative grid", outlined && !separated && `border border-border/60 overflow-hidden ${shape.container}`, separated ? "gap-2" : "gap-0", className),
89
89
  style: {
90
90
  gridTemplateColumns: `repeat(${Math.max(1, columns)}, minmax(0, 1fr))`
91
91
  },
@@ -94,18 +94,18 @@ var CardGroup = forwardRef(({
94
94
  onMouseLeave: fluidHover ? handlers.onMouseLeave : undefined,
95
95
  onClick: fluidHover ? handlers.onClick : undefined,
96
96
  children: [
97
- /* @__PURE__ */ jsx(FluidHoverHighlight, {
97
+ /* @__PURE__ */ jsx(FluidHoverHighlight2, {
98
98
  hover,
99
99
  hidden: !fluidHover,
100
- className: cn("z-0", shape.container)
100
+ className: cn2("z-0", shape.container)
101
101
  }),
102
102
  indexed
103
103
  ]
104
104
  })
105
105
  });
106
106
  });
107
- CardGroup.displayName = "CardGroup";
108
- var Card = forwardRef(({
107
+ CardGroup2.displayName = "CardGroup";
108
+ var Card2 = forwardRef(({
109
109
  onClick,
110
110
  href,
111
111
  external,
@@ -123,7 +123,7 @@ var Card = forwardRef(({
123
123
  }, ref) => {
124
124
  const internalRef = useRef(null);
125
125
  const shape = useShape();
126
- const sizeClasses = useSize(size);
126
+ const sizeClasses = useSize2(size);
127
127
  const compact = sizeClasses.variant === "compact";
128
128
  const group = useContext(CardGroupContext);
129
129
  const XIcon = useIcon("x");
@@ -136,7 +136,7 @@ var Card = forwardRef(({
136
136
  const activeIndex = group?.activeIndex ?? null;
137
137
  const selectedIndex = group?.selectedIndex ?? -1;
138
138
  const registerItem = href || onClick ? group?.registerItem : undefined;
139
- useRegisterFluidHoverItem(registerItem, index, internalRef);
139
+ useRegisterFluidHoverItem2(registerItem, index, internalRef);
140
140
  const col = index !== undefined ? index % columns : 0;
141
141
  const hasBelow = index !== undefined && index + columns < count;
142
142
  const hasRight = index !== undefined && col < columns - 1 && index + 1 < count;
@@ -146,12 +146,12 @@ var Card = forwardRef(({
146
146
  const showBottom = divided && hasBelow && !(touchesBelow(activeIndex ?? -1) || touchesBelow(selectedIndex));
147
147
  const showRight = divided && hasRight && !(touchesRight(activeIndex ?? -1) || touchesRight(selectedIndex));
148
148
  const isInline = orientation === "inline";
149
- const isCardImage = (child) => isValidElement(child) && (child.type === CardImage || child.type?.displayName === "CardImage");
149
+ const isCardImage = (child) => isValidElement(child) && (child.type === CardImage2 || child.type?.displayName === "CardImage");
150
150
  const hasImage = Children.toArray(children).some(isCardImage);
151
151
  const inlineImage = isInline && hasImage;
152
152
  const clickable = !!href || !!onClick;
153
153
  const emphasized = selected;
154
- const tileShape = !group ? cn(shape.container, "overflow-hidden") : separated && outlined ? cn(shape.container, "overflow-hidden border border-border/60") : "";
154
+ const tileShape = !group ? cn2(shape.container, "overflow-hidden") : separated && outlined ? cn2(shape.container, "overflow-hidden border border-border/60") : "";
155
155
  const overlay = clickable && !disabled ? href ? /* @__PURE__ */ jsx("a", {
156
156
  href,
157
157
  onClick,
@@ -176,7 +176,7 @@ var Card = forwardRef(({
176
176
  children: [
177
177
  image,
178
178
  /* @__PURE__ */ jsx("div", {
179
- className: cn("flex min-w-0 flex-1 flex-col justify-center gap-2", compact ? "py-2.5 pr-3" : "py-3.5 pr-4"),
179
+ className: cn2("flex min-w-0 flex-1 flex-col justify-center gap-2", compact ? "py-2.5 pr-3" : "py-3.5 pr-4"),
180
180
  children: rest
181
181
  })
182
182
  ]
@@ -197,12 +197,12 @@ var Card = forwardRef(({
197
197
  "data-selected": selected || undefined,
198
198
  "data-orientation": orientation,
199
199
  "aria-disabled": disabled || undefined,
200
- className: cn("group/card relative z-10 min-w-0 min-h-[60px]", inlineImage ? cn("flex flex-row items-center", compact ? "gap-2.5" : "gap-3") : isInline ? cn("flex flex-row items-center", compact ? "gap-2.5 pl-3" : "gap-3 pl-4") : cn("flex flex-col", compact ? "pb-3" : "pb-4"), !group && clickable && !disabled && "transition-colors duration-fast hover:bg-hover", dismissible && isInline && (dismissOnHover ? "[&:hover_[data-slot=card-header]]:pr-10 [&:focus-within_[data-slot=card-header]]:pr-10" : "[&_[data-slot=card-header]]:pr-10"), tileShape, disabled && "opacity-50 pointer-events-none", className),
200
+ className: cn2("group/card relative z-10 min-w-0 min-h-[60px]", inlineImage ? cn2("flex flex-row items-center", compact ? "gap-2.5" : "gap-3") : isInline ? cn2("flex flex-row items-center", compact ? "gap-2.5 pl-3" : "gap-3 pl-4") : cn2("flex flex-col", compact ? "pb-3" : "pb-4"), !group && clickable && !disabled && "transition-colors duration-fast hover:bg-hover", dismissible && isInline && (dismissOnHover ? "[&:hover_[data-slot=card-header]]:pr-10 [&:focus-within_[data-slot=card-header]]:pr-10" : "[&_[data-slot=card-header]]:pr-10"), tileShape, disabled && "opacity-50 pointer-events-none", className),
201
201
  ...props,
202
202
  children: [
203
203
  selected && /* @__PURE__ */ jsx("span", {
204
204
  "aria-hidden": true,
205
- className: cn("absolute inset-0 -z-10 bg-active pointer-events-none", shape.container)
205
+ className: cn2("absolute inset-0 -z-10 bg-active pointer-events-none", shape.container)
206
206
  }),
207
207
  showBottom && /* @__PURE__ */ jsx("span", {
208
208
  "aria-hidden": true,
@@ -210,7 +210,7 @@ var Card = forwardRef(({
210
210
  }),
211
211
  showRight && /* @__PURE__ */ jsx("span", {
212
212
  "aria-hidden": true,
213
- className: cn("absolute top-0 right-0 w-px bg-border/60 pointer-events-none -z-10", showBottom ? "bottom-px" : "bottom-0")
213
+ className: cn2("absolute top-0 right-0 w-px bg-border/60 pointer-events-none -z-10", showBottom ? "bottom-px" : "bottom-0")
214
214
  }),
215
215
  overlay,
216
216
  body,
@@ -218,7 +218,7 @@ var Card = forwardRef(({
218
218
  type: "button",
219
219
  onClick: onDismiss,
220
220
  "aria-label": "Dismiss",
221
- className: cn("absolute right-2 top-2 z-30 flex h-7 w-7 items-center justify-center text-muted-foreground hover:text-foreground cursor-pointer outline-none transition-colors duration-fast focus-visible:ring-1 focus-visible:ring-focus-ring", hasImage ? "bg-card/70 backdrop-blur-sm hover:bg-card" : "hover:bg-hover", dismissOnHover && "pointer-events-none opacity-0 transition-opacity duration-fast group-hover/card:pointer-events-auto group-hover/card:opacity-100 group-focus-within/card:pointer-events-auto group-focus-within/card:opacity-100 focus-visible:pointer-events-auto focus-visible:opacity-100", shape.button),
221
+ className: cn2("absolute right-2 top-2 z-30 flex h-7 w-7 items-center justify-center text-muted-foreground hover:text-foreground cursor-pointer outline-none transition-colors duration-fast focus-visible:ring-1 focus-visible:ring-focus-ring", hasImage ? "bg-card/70 backdrop-blur-sm hover:bg-card" : "hover:bg-hover", dismissOnHover && "pointer-events-none opacity-0 transition-opacity duration-fast group-hover/card:pointer-events-auto group-hover/card:opacity-100 group-focus-within/card:pointer-events-auto group-focus-within/card:opacity-100 focus-visible:pointer-events-auto focus-visible:opacity-100", shape.button),
222
222
  children: /* @__PURE__ */ jsx(XIcon, {
223
223
  size: compact ? 13 : 15,
224
224
  strokeWidth: 1.5
@@ -227,103 +227,103 @@ var Card = forwardRef(({
227
227
  ]
228
228
  })
229
229
  });
230
- return size ? /* @__PURE__ */ jsx(SizeProvider, {
230
+ return size ? /* @__PURE__ */ jsx(SizeProvider2, {
231
231
  size,
232
232
  children: card
233
233
  }) : card;
234
234
  });
235
- Card.displayName = "Card";
236
- var CardHeader = forwardRef(({ className, ...props }, ref) => {
235
+ Card2.displayName = "Card";
236
+ var CardHeader2 = forwardRef(({ className, ...props }, ref) => {
237
237
  const { orientation, hasImage } = useContext(CardContext);
238
238
  const inlineImage = orientation === "inline" && hasImage;
239
- const sizeClasses = useSize();
239
+ const sizeClasses = useSize2();
240
240
  const compact = sizeClasses.variant === "compact";
241
241
  return /* @__PURE__ */ jsx("div", {
242
242
  ref,
243
243
  "data-slot": "card-header",
244
- className: cn("grid auto-rows-min items-start gap-1 has-data-[slot=card-action]:grid-cols-[1fr_auto]", inlineImage ? "min-w-0" : orientation === "inline" ? cn("min-w-0 flex-1", compact ? "py-2.5" : "py-3.5") : compact ? "px-3 pt-3" : "px-4 pt-4", className),
244
+ className: cn2("grid auto-rows-min items-start gap-1 has-data-[slot=card-action]:grid-cols-[1fr_auto]", inlineImage ? "min-w-0" : orientation === "inline" ? cn2("min-w-0 flex-1", compact ? "py-2.5" : "py-3.5") : compact ? "px-3 pt-3" : "px-4 pt-4", className),
245
245
  ...props
246
246
  });
247
247
  });
248
- CardHeader.displayName = "CardHeader";
249
- var CardTitle = forwardRef(({ className, children, ...props }, ref) => {
248
+ CardHeader2.displayName = "CardHeader";
249
+ var CardTitle2 = forwardRef(({ className, children, ...props }, ref) => {
250
250
  const { emphasized, orientation } = useContext(CardContext);
251
- const sizeClasses = useSize();
251
+ const sizeClasses = useSize2();
252
252
  const compact = sizeClasses.variant === "compact";
253
253
  const trim = orientation === "inline" ? "[text-box:trim-both_cap_alphabetic]" : "";
254
254
  return /* @__PURE__ */ jsxs("span", {
255
255
  ref,
256
256
  "data-slot": "card-title",
257
- className: cn("inline-grid grid-cols-[minmax(0,1fr)] leading-snug", compact ? "text-subtitle-compact" : "text-subtitle", className),
257
+ className: cn2("inline-grid grid-cols-[minmax(0,1fr)] leading-snug", compact ? "text-subtitle-compact" : "text-subtitle", className),
258
258
  ...props,
259
259
  children: [
260
260
  /* @__PURE__ */ jsx("span", {
261
- className: cn("col-start-1 row-start-1 invisible min-w-0 overflow-hidden text-ellipsis", trim, "weight-semibold"),
261
+ className: cn2("col-start-1 row-start-1 invisible min-w-0 overflow-hidden text-ellipsis", trim, "weight-semibold"),
262
262
  "aria-hidden": "true",
263
263
  children
264
264
  }),
265
265
  /* @__PURE__ */ jsx("span", {
266
- className: cn("col-start-1 row-start-1 min-w-0 overflow-hidden text-ellipsis text-foreground transition-[font-variation-settings] duration-fast", trim, emphasized ? "weight-semibold" : "weight-normal"),
266
+ className: cn2("col-start-1 row-start-1 min-w-0 overflow-hidden text-ellipsis text-foreground transition-[font-variation-settings] duration-fast", trim, emphasized ? "weight-semibold" : "weight-normal"),
267
267
  children
268
268
  })
269
269
  ]
270
270
  });
271
271
  });
272
- CardTitle.displayName = "CardTitle";
273
- var CardDescription = forwardRef(({ className, ...props }, ref) => {
274
- const sizeClasses = useSize();
272
+ CardTitle2.displayName = "CardTitle";
273
+ var CardDescription2 = forwardRef(({ className, ...props }, ref) => {
274
+ const sizeClasses = useSize2();
275
275
  const compact = sizeClasses.variant === "compact";
276
276
  return /* @__PURE__ */ jsx("p", {
277
277
  ref,
278
278
  "data-slot": "card-description",
279
- className: cn("leading-normal text-muted-foreground", compact ? "text-subtitle-compact" : "text-subtitle", className),
279
+ className: cn2("leading-normal text-muted-foreground", compact ? "text-subtitle-compact" : "text-subtitle", className),
280
280
  ...props
281
281
  });
282
282
  });
283
- CardDescription.displayName = "CardDescription";
284
- var CardAction = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", {
283
+ CardDescription2.displayName = "CardDescription";
284
+ var CardAction2 = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", {
285
285
  ref,
286
286
  "data-slot": "card-action",
287
- className: cn("relative z-30 col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
287
+ className: cn2("relative z-30 col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
288
288
  ...props
289
289
  }));
290
- CardAction.displayName = "CardAction";
291
- var CardContent = forwardRef(({ className, ...props }, ref) => {
290
+ CardAction2.displayName = "CardAction";
291
+ var CardContent2 = forwardRef(({ className, ...props }, ref) => {
292
292
  const { orientation } = useContext(CardContext);
293
- const sizeClasses = useSize();
293
+ const sizeClasses = useSize2();
294
294
  const compact = sizeClasses.variant === "compact";
295
295
  return /* @__PURE__ */ jsx("div", {
296
296
  ref,
297
297
  "data-slot": "card-content",
298
- className: cn(orientation === "inline" ? "" : compact ? "px-3 pt-2.5" : "px-4 pt-3", className),
298
+ className: cn2(orientation === "inline" ? "" : compact ? "px-3 pt-2.5" : "px-4 pt-3", className),
299
299
  ...props
300
300
  });
301
301
  });
302
- CardContent.displayName = "CardContent";
303
- var CardFooter = forwardRef(({ className, ...props }, ref) => {
302
+ CardContent2.displayName = "CardContent";
303
+ var CardFooter2 = forwardRef(({ className, ...props }, ref) => {
304
304
  const { orientation, hasImage } = useContext(CardContext);
305
305
  const inlineImage = orientation === "inline" && hasImage;
306
- const sizeClasses = useSize();
306
+ const sizeClasses = useSize2();
307
307
  const compact = sizeClasses.variant === "compact";
308
308
  return /* @__PURE__ */ jsx("div", {
309
309
  ref,
310
310
  "data-slot": "card-footer",
311
- className: cn("relative z-30 flex items-center gap-1", inlineImage ? "flex-wrap" : orientation === "inline" ? cn("shrink-0 ml-auto", compact ? "pr-3" : "pr-4") : cn("flex-wrap", compact ? "px-3 pt-2.5" : "px-4 pt-3"), className),
311
+ className: cn2("relative z-30 flex items-center gap-1", inlineImage ? "flex-wrap" : orientation === "inline" ? cn2("shrink-0 ml-auto", compact ? "pr-3" : "pr-4") : cn2("flex-wrap", compact ? "px-3 pt-2.5" : "px-4 pt-3"), className),
312
312
  ...props
313
313
  });
314
314
  });
315
- CardFooter.displayName = "CardFooter";
316
- function CardMedia({ logo, logoAlt, icon: Icon, size = 22, className }) {
315
+ CardFooter2.displayName = "CardFooter";
316
+ function CardMedia2({ logo, logoAlt, icon: Icon, size = 22, className }) {
317
317
  const { orientation } = useContext(CardContext);
318
318
  const shape = useShape();
319
- const sizeClasses = useSize();
319
+ const sizeClasses = useSize2();
320
320
  const compact = sizeClasses.variant === "compact";
321
- const wrap = cn(orientation === "inline" ? "" : "mb-2", className);
321
+ const wrap = cn2(orientation === "inline" ? "" : "mb-2", className);
322
322
  if (logo) {
323
323
  const logos = Array.isArray(logo) ? logo : [logo];
324
324
  return /* @__PURE__ */ jsx("span", {
325
325
  "data-slot": "card-media",
326
- className: cn("inline-flex items-center gap-1.5 shrink-0", wrap),
326
+ className: cn2("inline-flex items-center gap-1.5 shrink-0", wrap),
327
327
  children: logos.map((src, i) => /* @__PURE__ */ jsxs("span", {
328
328
  className: "inline-flex items-center gap-1.5",
329
329
  children: [
@@ -336,7 +336,7 @@ function CardMedia({ logo, logoAlt, icon: Icon, size = 22, className }) {
336
336
  alt: logoAlt ?? "",
337
337
  width: size,
338
338
  height: size,
339
- className: cn("object-contain", shape.bg),
339
+ className: cn2("object-contain", shape.bg),
340
340
  style: { width: size, height: size }
341
341
  })
342
342
  ]
@@ -346,7 +346,7 @@ function CardMedia({ logo, logoAlt, icon: Icon, size = 22, className }) {
346
346
  if (Icon) {
347
347
  return /* @__PURE__ */ jsx("span", {
348
348
  "data-slot": "card-media",
349
- className: cn("inline-flex items-center justify-center shrink-0 size-8 bg-hover", shape.bg, wrap),
349
+ className: cn2("inline-flex items-center justify-center shrink-0 size-8 bg-hover", shape.bg, wrap),
350
350
  children: /* @__PURE__ */ jsx(Icon, {
351
351
  size: compact ? 16 : 18,
352
352
  strokeWidth: 1.5,
@@ -356,32 +356,32 @@ function CardMedia({ logo, logoAlt, icon: Icon, size = 22, className }) {
356
356
  }
357
357
  return null;
358
358
  }
359
- function CardImage({ src, alt, className }) {
359
+ function CardImage2({ src, alt, className }) {
360
360
  const { orientation } = useContext(CardContext);
361
361
  return /* @__PURE__ */ jsx("img", {
362
362
  src,
363
363
  alt: alt ?? "",
364
364
  "data-slot": "card-image",
365
- className: cn("object-cover rounded-xs", orientation === "inline" ? "size-40 shrink-0" : "w-full aspect-[16/9]", className)
365
+ className: cn2("object-cover rounded-xs", orientation === "inline" ? "size-40 shrink-0" : "w-full aspect-[16/9]", className)
366
366
  });
367
367
  }
368
- CardImage.displayName = "CardImage";
369
- var CardEyebrow = forwardRef(({ className, ...props }, ref) => {
370
- const compact = useSize().variant === "compact";
368
+ CardImage2.displayName = "CardImage";
369
+ var CardEyebrow2 = forwardRef(({ className, ...props }, ref) => {
370
+ const compact = useSize2().variant === "compact";
371
371
  return /* @__PURE__ */ jsx("span", {
372
372
  ref,
373
373
  "data-slot": "card-eyebrow",
374
- className: cn(compact ? "text-caption-compact" : "text-caption", "uppercase tracking-wide text-muted-foreground", "weight-semibold", className),
374
+ className: cn2(compact ? "text-caption-compact" : "text-caption", "uppercase tracking-wide text-muted-foreground", "weight-semibold", className),
375
375
  ...props
376
376
  });
377
377
  });
378
- CardEyebrow.displayName = "CardEyebrow";
379
- function CardFeature({ icon: Icon, title, description }) {
380
- const sizeClasses = useSize();
378
+ CardEyebrow2.displayName = "CardEyebrow";
379
+ function CardFeature2({ icon: Icon, title, description }) {
380
+ const sizeClasses = useSize2();
381
381
  const compact = sizeClasses.variant === "compact";
382
382
  return /* @__PURE__ */ jsxs("div", {
383
383
  "data-slot": "card-feature",
384
- className: cn("flex items-start", sizeClasses.gap),
384
+ className: cn2("flex items-start", sizeClasses.gap),
385
385
  children: [
386
386
  Icon && /* @__PURE__ */ jsx(Icon, {
387
387
  size: sizeClasses.icon,
@@ -392,11 +392,11 @@ function CardFeature({ icon: Icon, title, description }) {
392
392
  className: "flex flex-col gap-0.5 min-w-0",
393
393
  children: [
394
394
  /* @__PURE__ */ jsx("span", {
395
- className: cn("text-foreground [text-box:trim-both_cap_alphabetic]", sizeClasses.text, "weight-medium"),
395
+ className: cn2("text-foreground [text-box:trim-both_cap_alphabetic]", sizeClasses.text, "weight-medium"),
396
396
  children: title
397
397
  }),
398
398
  description && /* @__PURE__ */ jsx("span", {
399
- className: cn("leading-relaxed text-muted-foreground", compact ? "text-caption-compact" : "text-caption"),
399
+ className: cn2("leading-relaxed text-muted-foreground", compact ? "text-caption-compact" : "text-caption"),
400
400
  children: description
401
401
  })
402
402
  ]
@@ -410,7 +410,7 @@ var CARD_BUTTON_VARIANTS = {
410
410
  ghost: "text-muted-foreground hover:text-foreground hover:bg-hover active:bg-active",
411
411
  link: "text-foreground underline-offset-4 hover:underline !px-0 !h-auto"
412
412
  };
413
- function CardButton({
413
+ function CardButton2({
414
414
  children,
415
415
  onClick,
416
416
  href,
@@ -422,7 +422,7 @@ function CardButton({
422
422
  }) {
423
423
  const shape = useShape();
424
424
  const ArrowRight = useIcon("arrow-right");
425
- const sizeClasses = useSize();
425
+ const sizeClasses = useSize2();
426
426
  const compact = sizeClasses.variant === "compact";
427
427
  const position = iconPosition ?? (external ? "end" : "start");
428
428
  const glyph = Icon ? /* @__PURE__ */ jsx(Icon, {
@@ -446,7 +446,7 @@ function CardButton({
446
446
  externalGlyph
447
447
  ]
448
448
  });
449
- const classes = cn("group/action relative z-30 inline-flex items-center justify-center gap-1.5 h-7 px-2.5 cursor-pointer outline-none", compact ? "text-caption-compact" : "text-caption", "weight-medium", "transition-colors duration-fast", "focus-visible:ring-1 focus-visible:ring-focus-ring", "disabled:opacity-50 disabled:pointer-events-none", shape.button, CARD_BUTTON_VARIANTS[variant]);
449
+ const classes = cn2("group/action relative z-30 inline-flex items-center justify-center gap-1.5 h-7 px-2.5 cursor-pointer outline-none", compact ? "text-caption-compact" : "text-caption", "weight-medium", "transition-colors duration-fast", "focus-visible:ring-1 focus-visible:ring-focus-ring", "disabled:opacity-50 disabled:pointer-events-none", shape.button, CARD_BUTTON_VARIANTS[variant]);
450
450
  if (href) {
451
451
  return /* @__PURE__ */ jsx("a", {
452
452
  href,
@@ -465,20 +465,20 @@ function CardButton({
465
465
  children: inner
466
466
  });
467
467
  }
468
- Object.assign(Card, {
469
- Group: CardGroup,
470
- Header: CardHeader,
471
- Title: CardTitle,
472
- Description: CardDescription,
473
- Action: CardAction,
474
- Content: CardContent,
475
- Footer: CardFooter,
476
- Media: CardMedia,
477
- Image: CardImage,
478
- Eyebrow: CardEyebrow,
479
- Feature: CardFeature,
480
- Button: CardButton
468
+ Object.assign(Card2, {
469
+ Group: CardGroup2,
470
+ Header: CardHeader2,
471
+ Title: CardTitle2,
472
+ Description: CardDescription2,
473
+ Action: CardAction2,
474
+ Content: CardContent2,
475
+ Footer: CardFooter2,
476
+ Media: CardMedia2,
477
+ Image: CardImage2,
478
+ Eyebrow: CardEyebrow2,
479
+ Feature: CardFeature2,
480
+ Button: CardButton2
481
481
  });
482
- var card_default = Card;
482
+ var card_default = Card2;
483
483
 
484
- export { CardGroup, Card, CardHeader, CardTitle, CardDescription, CardAction, CardContent, CardFooter, CardMedia, CardImage, CardEyebrow, CardFeature, CardButton, card_default };
484
+ export { CardGroup2, Card2, CardHeader2, CardTitle2, CardDescription2, CardAction2, CardContent2, CardFooter2, CardMedia2, CardImage2, CardEyebrow2, CardFeature2, CardButton2, card_default };
@@ -1,18 +1,18 @@
1
1
  import {
2
- useControllableState
3
- } from "./components-dg0w8g5p.js";
2
+ cn2
3
+ } from "./components-ezxhrmer.js";
4
4
  import {
5
5
  GooIndicator
6
- } from "./components-kf2ehztc.js";
6
+ } from "./components-chacnk61.js";
7
7
  import {
8
- spring
9
- } from "./components-vc1k7yv2.js";
8
+ useSize2
9
+ } from "./components-0sn7ypjw.js";
10
10
  import {
11
- useSize
12
- } from "./components-x3rz4cyn.js";
11
+ useControllableState
12
+ } from "./components-n7mjr357.js";
13
13
  import {
14
- cn
15
- } from "./components-0f0as45n.js";
14
+ spring2
15
+ } from "./components-1v7rxytx.js";
16
16
 
17
17
  // components/inputs/switch/index.tsx
18
18
  import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
@@ -38,7 +38,7 @@ var METRICS = {
38
38
  };
39
39
  var THUMB_OFFSET = 2;
40
40
  var DRAG_DEAD_ZONE = 2;
41
- var Switch = forwardRef(({
41
+ var Switch2 = forwardRef(({
42
42
  label,
43
43
  checked,
44
44
  defaultChecked = false,
@@ -58,7 +58,7 @@ var Switch = forwardRef(({
58
58
  const labelId = useId();
59
59
  const [hovered, setHovered] = useState(false);
60
60
  const [pressed, setPressed] = useState(false);
61
- const sizeClasses = useSize(size);
61
+ const sizeClasses = useSize2(size);
62
62
  const m = METRICS[sizeClasses.variant];
63
63
  const thumbTravel = m.trackWidth - m.thumbSize - THUMB_OFFSET * 2;
64
64
  const dragging = useRef(false);
@@ -139,7 +139,7 @@ var Switch = forwardRef(({
139
139
  }, [setDragX]);
140
140
  return /* @__PURE__ */ jsxs("div", {
141
141
  ref,
142
- className: cn("relative z-10 flex items-center cursor-pointer select-none touch-none", sizeClasses.gap, sizeClasses.px, sizeClasses.variant === "compact" ? "py-1" : "py-2", disabled && "opacity-50 pointer-events-none", className),
142
+ className: cn2("relative z-10 flex items-center cursor-pointer select-none touch-none", sizeClasses.gap, sizeClasses.px, sizeClasses.variant === "compact" ? "py-1" : "py-2", disabled && "opacity-50 pointer-events-none", className),
143
143
  onPointerEnter: (e) => {
144
144
  if (e.pointerType === "mouse")
145
145
  setHovered(true);
@@ -161,7 +161,7 @@ var Switch = forwardRef(({
161
161
  "aria-labelledby": labelId,
162
162
  disabled,
163
163
  tabIndex: 0,
164
- className: cn("relative shrink-0 rounded-full outline-none cursor-pointer", "transition-colors duration-fast", "focus-visible:ring-1 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background", isChecked ? hovered ? "bg-brand-hover" : "bg-brand" : hovered ? "bg-accent-hover" : "bg-accent"),
164
+ className: cn2("relative shrink-0 rounded-full outline-none cursor-pointer", "transition-colors duration-fast", "focus-visible:ring-1 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background", isChecked ? hovered ? "bg-brand-hover" : "bg-brand" : hovered ? "bg-accent-hover" : "bg-accent"),
165
165
  style: {
166
166
  width: m.trackWidth,
167
167
  height: m.trackHeight
@@ -173,19 +173,19 @@ var Switch = forwardRef(({
173
173
  rect: thumb,
174
174
  className: "rounded-full bg-thumb",
175
175
  shadow: "shadow-thumb",
176
- transition: dragX === null ? thumbTransition ?? spring.moderate : false
176
+ transition: dragX === null ? thumbTransition ?? spring2.moderate : false
177
177
  })
178
178
  })
179
179
  }),
180
180
  /* @__PURE__ */ jsx("span", {
181
181
  id: labelId,
182
- className: cn("[text-box:trim-both_cap_alphabetic] transition-[color] duration-fast", sizeClasses.text, isChecked ? "text-foreground" : "text-muted-foreground"),
182
+ className: cn2("[text-box:trim-both_cap_alphabetic] transition-[color] duration-fast", sizeClasses.text, isChecked ? "text-foreground" : "text-muted-foreground"),
183
183
  children: label
184
184
  })
185
185
  ]
186
186
  });
187
187
  });
188
- Switch.displayName = "Switch";
189
- var switch_default = Switch;
188
+ Switch2.displayName = "Switch";
189
+ var switch_default = Switch2;
190
190
 
191
- export { Switch, switch_default };
191
+ export { Switch2, switch_default };