@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,16 +1,16 @@
1
1
  import {
2
- FluidHoverHighlight
3
- } from "./components-r22vtgqc.js";
2
+ cn2
3
+ } from "./components-ezxhrmer.js";
4
4
  import {
5
- useFluidHover,
6
- useRegisterFluidHoverItem
7
- } from "./components-e46kf6cp.js";
5
+ FluidHoverHighlight2
6
+ } from "./components-kvr7f9hy.js";
8
7
  import {
9
8
  useShape
10
- } from "./components-7zp99w5d.js";
9
+ } from "./components-cv16mryv.js";
11
10
  import {
12
- cn
13
- } from "./components-0f0as45n.js";
11
+ useFluidHover2,
12
+ useRegisterFluidHoverItem2
13
+ } from "./components-59efxjd9.js";
14
14
 
15
15
  // primitives/fluid-hover/index.tsx
16
16
  import {
@@ -39,11 +39,11 @@ var containerAxisClass = {
39
39
  x: "flex flex-row gap-1",
40
40
  xy: "grid gap-1"
41
41
  };
42
- var FluidHoverItem = forwardRef(({ index, disabled = false, className, children, ...props }, ref) => {
42
+ var FluidHoverItem2 = forwardRef(({ index, disabled = false, className, children, ...props }, ref) => {
43
43
  const list = useContext(FluidHoverContext);
44
44
  const shape = useShape();
45
45
  const innerRef = useRef(null);
46
- useRegisterFluidHoverItem(list?.registerItem, index, innerRef);
46
+ useRegisterFluidHoverItem2(list?.registerItem, index, innerRef);
47
47
  const axis = list?.axis ?? "y";
48
48
  return /* @__PURE__ */ jsx("button", {
49
49
  ref: (node) => {
@@ -58,12 +58,12 @@ var FluidHoverItem = forwardRef(({ index, disabled = false, className, children,
58
58
  "data-disabled": disabled || undefined,
59
59
  disabled,
60
60
  ...props,
61
- className: cn(itemBaseClass, itemAxisClass[axis], shape.item, disabled && "cursor-default text-muted-foreground opacity-55", className),
61
+ className: cn2(itemBaseClass, itemAxisClass[axis], shape.item, disabled && "cursor-default text-muted-foreground opacity-55", className),
62
62
  children
63
63
  });
64
64
  });
65
- FluidHoverItem.displayName = "FluidHoverItem";
66
- var FluidHover = forwardRef(({
65
+ FluidHoverItem2.displayName = "FluidHoverItem";
66
+ var FluidHover2 = forwardRef(({
67
67
  axis,
68
68
  columns,
69
69
  items,
@@ -80,7 +80,7 @@ var FluidHover = forwardRef(({
80
80
  const shape = useShape();
81
81
  const resolvedAxis = axis ?? ((columns ?? 1) > 1 ? "xy" : "y");
82
82
  const resolvedColumns = resolvedAxis === "xy" ? Math.max(1, columns ?? 2) : 1;
83
- const hover = useFluidHover(containerRef, {
83
+ const hover = useFluidHover2(containerRef, {
84
84
  axis: resolvedAxis,
85
85
  isItemDisabled,
86
86
  gapClick
@@ -88,12 +88,12 @@ var FluidHover = forwardRef(({
88
88
  const { handlers, registerItem } = hover;
89
89
  const contextValue = useMemo(() => ({ registerItem, axis: resolvedAxis }), [registerItem, resolvedAxis]);
90
90
  const disabled = new Set(disabledIndices);
91
- const rows = items ? items.map((item, i) => /* @__PURE__ */ jsx(FluidHoverItem, {
91
+ const rows = items ? items.map((item, i) => /* @__PURE__ */ jsx(FluidHoverItem2, {
92
92
  index: i,
93
93
  disabled: disabled.has(i),
94
94
  children: renderItem ? renderItem(item, i) : item
95
95
  }, `${i}-${item}`)) : Children.toArray(children).map((child, i) => {
96
- if (!isValidElement(child) || child.type !== FluidHoverItem)
96
+ if (!isValidElement(child) || child.type !== FluidHoverItem2)
97
97
  return child;
98
98
  const row = child;
99
99
  return cloneElement(row, {
@@ -115,23 +115,23 @@ var FluidHover = forwardRef(({
115
115
  ...handlers,
116
116
  "data-slot": "fluid-hover",
117
117
  "data-axis": resolvedAxis,
118
- className: cn("relative", containerAxisClass[resolvedAxis], className),
118
+ className: cn2("relative", containerAxisClass[resolvedAxis], className),
119
119
  style: resolvedAxis === "xy" ? {
120
120
  gridTemplateColumns: `repeat(${resolvedColumns}, minmax(0, 1fr))`,
121
121
  ...style
122
122
  } : style,
123
123
  children: [
124
- /* @__PURE__ */ jsx(FluidHoverHighlight, {
124
+ /* @__PURE__ */ jsx(FluidHoverHighlight2, {
125
125
  hover,
126
- className: cn("z-0", shape.bg, highlightClassName)
126
+ className: cn2("z-0", shape.bg, highlightClassName)
127
127
  }),
128
128
  rows
129
129
  ]
130
130
  })
131
131
  });
132
132
  });
133
- FluidHover.displayName = "FluidHover";
134
- Object.assign(FluidHover, { Item: FluidHoverItem });
135
- var fluid_hover_default = FluidHover;
133
+ FluidHover2.displayName = "FluidHover";
134
+ Object.assign(FluidHover2, { Item: FluidHoverItem2 });
135
+ var fluid_hover_default = FluidHover2;
136
136
 
137
- export { FluidHoverItem, FluidHover, fluid_hover_default };
137
+ export { FluidHoverItem2, FluidHover2, fluid_hover_default };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  useShape
3
- } from "./components-7zp99w5d.js";
3
+ } from "./components-cv16mryv.js";
4
4
  import {
5
- cn
6
- } from "./components-0f0as45n.js";
5
+ cn2
6
+ } from "./components-ezxhrmer.js";
7
7
 
8
8
  // primitives/scroll-area/index.tsx
9
9
  import { ScrollArea as ScrollAreaPrimitive } from "@base-ui/react/scroll-area";
@@ -39,7 +39,7 @@ function useTouchPrimary() {
39
39
  // primitives/scroll-area/index.tsx
40
40
  import { jsx, jsxs } from "react/jsx-runtime";
41
41
  var ScrollAreaContext = createContext(false);
42
- var ScrollArea = forwardRef(({ className, children, viewportClassName, orientation = "vertical", ...props }, ref) => {
42
+ var ScrollArea2 = forwardRef(({ className, children, viewportClassName, orientation = "vertical", ...props }, ref) => {
43
43
  const isTouch = useTouchPrimary();
44
44
  return /* @__PURE__ */ jsx(ScrollAreaContext.Provider, {
45
45
  value: isTouch,
@@ -48,31 +48,31 @@ var ScrollArea = forwardRef(({ className, children, viewportClassName, orientati
48
48
  role: "group",
49
49
  "data-slot": "scroll-area",
50
50
  "aria-roledescription": "scroll area",
51
- className: cn("relative overflow-hidden", className),
51
+ className: cn2("relative overflow-hidden", className),
52
52
  ...props,
53
53
  children: /* @__PURE__ */ jsx("div", {
54
54
  "data-slot": "scroll-area-viewport",
55
- className: cn("size-full rounded-[inherit]", orientation === "vertical" && "overflow-y-auto", orientation === "horizontal" && "overflow-x-auto", orientation === "both" && "overflow-auto", viewportClassName),
55
+ className: cn2("size-full rounded-[inherit]", orientation === "vertical" && "overflow-y-auto", orientation === "horizontal" && "overflow-x-auto", orientation === "both" && "overflow-auto", viewportClassName),
56
56
  tabIndex: 0,
57
57
  children
58
58
  })
59
59
  }) : /* @__PURE__ */ jsxs(ScrollAreaPrimitive.Root, {
60
60
  ref,
61
61
  "data-slot": "scroll-area",
62
- className: cn("relative overflow-hidden", className),
62
+ className: cn2("relative overflow-hidden", className),
63
63
  ...props,
64
64
  children: [
65
65
  /* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, {
66
66
  "data-slot": "scroll-area-viewport",
67
- className: cn("size-full rounded-[inherit]", viewportClassName),
67
+ className: cn2("size-full rounded-[inherit]", viewportClassName),
68
68
  children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.Content, {
69
69
  children
70
70
  })
71
71
  }),
72
- orientation !== "horizontal" && /* @__PURE__ */ jsx(ScrollBar, {
72
+ orientation !== "horizontal" && /* @__PURE__ */ jsx(ScrollBar2, {
73
73
  orientation: "vertical"
74
74
  }),
75
- orientation !== "vertical" && /* @__PURE__ */ jsx(ScrollBar, {
75
+ orientation !== "vertical" && /* @__PURE__ */ jsx(ScrollBar2, {
76
76
  orientation: "horizontal"
77
77
  }),
78
78
  orientation === "both" && /* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
@@ -80,8 +80,8 @@ var ScrollArea = forwardRef(({ className, children, viewportClassName, orientati
80
80
  })
81
81
  });
82
82
  });
83
- ScrollArea.displayName = "ScrollArea";
84
- var ScrollBar = forwardRef(({ className, orientation = "vertical", ...props }, ref) => {
83
+ ScrollArea2.displayName = "ScrollArea";
84
+ var ScrollBar2 = forwardRef(({ className, orientation = "vertical", ...props }, ref) => {
85
85
  const isTouch = useContext(ScrollAreaContext);
86
86
  const shape = useShape();
87
87
  if (isTouch)
@@ -90,16 +90,16 @@ var ScrollBar = forwardRef(({ className, orientation = "vertical", ...props }, r
90
90
  ref,
91
91
  orientation,
92
92
  "data-slot": "scroll-area-scrollbar",
93
- className: cn("group/scrollbar absolute z-20 flex touch-none select-none", "opacity-0 transition-opacity duration-moderate-exit ease-out delay-moderate", "data-[hovering]:duration-moderate data-[scrolling]:duration-moderate", "data-[hovering]:opacity-100 data-[scrolling]:opacity-100", "data-[hovering]:delay-0 data-[scrolling]:delay-0", orientation === "vertical" && "top-0 right-0 h-full w-2.5", orientation === "horizontal" && "bottom-0 left-0 h-2.5 w-full flex-col", className),
93
+ className: cn2("group/scrollbar absolute z-20 flex touch-none select-none", "opacity-0 transition-opacity duration-moderate-exit ease-out delay-moderate", "data-[hovering]:duration-moderate data-[scrolling]:duration-moderate", "data-[hovering]:opacity-100 data-[scrolling]:opacity-100", "data-[hovering]:delay-0 data-[scrolling]:delay-0", orientation === "vertical" && "top-0 right-0 h-full w-2.5", orientation === "horizontal" && "bottom-0 left-0 h-2.5 w-full flex-col", className),
94
94
  ...props,
95
95
  children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.Thumb, {
96
96
  "data-slot": "scroll-area-thumb",
97
- className: cn("relative bg-overlay/8 transition-[background-color,width,height] duration-moderate ease-in-out", "group-hover/scrollbar:bg-overlay/12 active:!bg-overlay/16", shape.bg, orientation === "vertical" && "mx-auto my-1 w-1 -translate-x-0.5 h-[var(--scroll-area-thumb-height)] group-hover/scrollbar:w-1.5", orientation === "horizontal" && "my-auto mx-1 h-1 -translate-y-0.5 w-[var(--scroll-area-thumb-width)] group-hover/scrollbar:h-1.5")
97
+ className: cn2("relative bg-overlay/8 transition-[background-color,width,height] duration-moderate ease-in-out", "group-hover/scrollbar:bg-overlay/12 active:!bg-overlay/16", shape.bg, orientation === "vertical" && "mx-auto my-1 w-1 -translate-x-0.5 h-[var(--scroll-area-thumb-height)] group-hover/scrollbar:w-1.5", orientation === "horizontal" && "my-auto mx-1 h-1 -translate-y-0.5 w-[var(--scroll-area-thumb-width)] group-hover/scrollbar:h-1.5")
98
98
  })
99
99
  });
100
100
  });
101
- ScrollBar.displayName = "ScrollBar";
102
- Object.assign(ScrollArea, { Bar: ScrollBar });
103
- var scroll_area_default = ScrollArea;
101
+ ScrollBar2.displayName = "ScrollBar";
102
+ Object.assign(ScrollArea2, { Bar: ScrollBar2 });
103
+ var scroll_area_default = ScrollArea2;
104
104
 
105
- export { ScrollArea, ScrollBar, scroll_area_default };
105
+ export { ScrollArea2, ScrollBar2, scroll_area_default };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  useReduceMotion
3
- } from "./components-nnnd2xef.js";
3
+ } from "./components-men63rwj.js";
4
4
  import {
5
- exitFallbackMs,
6
- spring
7
- } from "./components-vc1k7yv2.js";
5
+ spring2,
6
+ exitFallbackMs2
7
+ } from "./components-1v7rxytx.js";
8
8
 
9
9
  // lib/use-morph.ts
10
10
  import { animate, clamp, useMotionValue } from "motion/react";
@@ -128,7 +128,7 @@ function inPlaceOffset({ side, anchor }) {
128
128
  return side === "top" || side === "bottom" ? -anchor.height : -anchor.width;
129
129
  }
130
130
  function holdExit(el, tier) {
131
- return el.animate(null, { duration: exitFallbackMs(spring[tier]) });
131
+ return el.animate(null, { duration: exitFallbackMs2(spring2[tier]) });
132
132
  }
133
133
  function returnFocus(trigger) {
134
134
  requestAnimationFrame(() => requestAnimationFrame(() => {
@@ -167,7 +167,7 @@ function useMorph(open, origin, { from = "trigger", effect = "goo", hideSource =
167
167
  const reduced = useReduceMotion();
168
168
  const resolve = (wanted) => reduced ? "fade" : wanted;
169
169
  const resolved = resolve(effect);
170
- const timing = (effect2) => effect2 === "goo" ? "goo" : tier;
170
+ const timing = (effect) => effect === "goo" ? "goo" : tier;
171
171
  const progress = useMotionValue(0);
172
172
  const gooId = `morph-goo-${useId().replace(/:/g, "")}`;
173
173
  const geometry = useRef(null);
@@ -193,24 +193,24 @@ function useMorph(open, origin, { from = "trigger", effect = "goo", hideSource =
193
193
  const g = geometry.current;
194
194
  if (!g)
195
195
  return;
196
- const { bg, content, shadow, popup: popup2, shape } = refs;
197
- const { effect: effect2 } = run.current;
198
- const shaped = drawsShape(effect2);
196
+ const { bg, content, shadow, popup, shape } = refs;
197
+ const { effect } = run.current;
198
+ const shaped = drawsShape(effect);
199
199
  const slide = { ...g.target, x: g.offset.x * (1 - p), y: g.offset.y * (1 - p) };
200
- const rect = clampRect(shaped ? lerpRect(g.source, g.target, p) : effect2 === "slide" ? slide : g.target);
200
+ const rect = clampRect(shaped ? lerpRect(g.source, g.target, p) : effect === "slide" ? slide : g.target);
201
201
  place(shaped ? shape.current : bg.current, shaped ? within(rect, g.layer) : rect);
202
202
  place(shadow.current, rect);
203
- const melting = effect2 === "goo" ? clamp(0, 1, (1 - p) / GOO_RELEASE) : 0;
203
+ const melting = effect === "goo" ? clamp(0, 1, (1 - p) / GOO_RELEASE) : 0;
204
204
  refs.blur.current?.setAttribute("stdDeviation", String(g.blur * melting));
205
205
  refs.outline.current?.setAttribute("flood-opacity", String(melting * clamp(0, 1, p / GOO_SETTLE)));
206
206
  if (shadow.current)
207
- shadow.current.style.opacity = String(effect2 === "goo" ? 1 - melting : clamp(0, 1, p));
207
+ shadow.current.style.opacity = String(effect === "goo" ? 1 - melting : clamp(0, 1, p));
208
208
  if (content.current) {
209
209
  content.current.style.clipPath = shaped ? insetClip(rect, g.target) : "";
210
- content.current.style.transform = effect2 === "slide" ? `translate(${rect.x}px, ${rect.y}px)` : "";
210
+ content.current.style.transform = effect === "slide" ? `translate(${rect.x}px, ${rect.y}px)` : "";
211
211
  }
212
- if (popup2.current)
213
- popup2.current.style.opacity = effect2 === "fade" ? String(p) : "";
212
+ if (popup.current)
213
+ popup.current.style.opacity = effect === "fade" ? String(p) : "";
214
214
  };
215
215
  const rest = () => {
216
216
  refs.bg.current?.removeAttribute("style");
@@ -228,14 +228,14 @@ function useMorph(open, origin, { from = "trigger", effect = "goo", hideSource =
228
228
  const el = refs.popup.current;
229
229
  if (!el)
230
230
  return;
231
- const { effect: effect2, from: from2 } = run.current;
232
- const shaped = drawsShape(effect2);
231
+ const { effect, from } = run.current;
232
+ const shaped = drawsShape(effect);
233
233
  const box = el.getBoundingClientRect();
234
234
  const target = { x: 0, y: 0, w: box.width, h: box.height, r: targetRadius.current };
235
- const source = sourceRect(from2, origin.current ?? {}, box, target);
236
- const blur = effect2 === "goo" ? Math.max(GOO_SURFACE_BLUR, target.r * GOO_BLUR_RATIO) : 0;
235
+ const source = sourceRect(from, origin.current ?? {}, box, target);
236
+ const blur = effect === "goo" ? Math.max(GOO_SURFACE_BLUR, target.r * GOO_BLUR_RATIO) : 0;
237
237
  const layer = layerBox(source, target, blur * 3);
238
- geometry.current = { source, target, layer, offset: slideOffset(from2, source, target, box), blur };
238
+ geometry.current = { source, target, layer, offset: slideOffset(from, source, target, box), blur };
239
239
  const { shapes, copy, bg } = refs;
240
240
  if (bg.current)
241
241
  bg.current.style.opacity = shaped ? "0" : "";
@@ -245,7 +245,7 @@ function useMorph(open, origin, { from = "trigger", effect = "goo", hideSource =
245
245
  if (!shaped)
246
246
  return;
247
247
  place(shapes.current, { ...layer, r: 0 });
248
- if (effect2 === "goo")
248
+ if (effect === "goo")
249
249
  place(copy.current, within(source, layer));
250
250
  const cut = source.w > 0 && source.h > 0 && !hideSource && !overlaps(source, target);
251
251
  shapes.current.style.clipPath = cut ? `path(evenodd, "${roundedRectPath({ ...layer, x: 0, y: 0 })} ${roundedRectPath(within(source, layer))}")` : "";
@@ -264,36 +264,36 @@ function useMorph(open, origin, { from = "trigger", effect = "goo", hideSource =
264
264
  el.style.opacity = "0";
265
265
  };
266
266
  const skip = (el) => instant?.(el);
267
- const opening = (popup2) => {
267
+ const opening = (popup) => {
268
268
  returnTo.current = null;
269
269
  run.current = { effect: resolved, from };
270
270
  const first = !geometry.current;
271
271
  if (first && refs.bg.current) {
272
- const box = popup2.getBoundingClientRect();
272
+ const box = popup.getBoundingClientRect();
273
273
  targetRadius.current = radiusOf(refs.bg.current, box.width, box.height);
274
274
  }
275
275
  let controls;
276
276
  const begin = () => {
277
277
  measure();
278
278
  hide(sourceElement(from, origin.current ?? {}));
279
- if (skip(popup2)) {
279
+ if (skip(popup)) {
280
280
  progress.jump(1);
281
281
  rest();
282
282
  return;
283
283
  }
284
284
  render(progress.get());
285
- const { exit: _, ...enter } = spring[timing(run.current.effect)];
285
+ const { exit: _, ...enter } = spring2[timing(run.current.effect)];
286
286
  controls = animate(progress, 1, {
287
287
  ...enter,
288
288
  onUpdate: (p) => {
289
- if (skip(popup2))
289
+ if (skip(popup))
290
290
  controls?.complete();
291
291
  render(p);
292
292
  },
293
293
  onComplete: rest
294
294
  });
295
295
  };
296
- if (!first || skip(popup2) || !refs.bg.current) {
296
+ if (!first || skip(popup) || !refs.bg.current) {
297
297
  begin();
298
298
  return () => controls?.stop();
299
299
  }
@@ -308,8 +308,8 @@ function useMorph(open, origin, { from = "trigger", effect = "goo", hideSource =
308
308
  controls?.stop();
309
309
  };
310
310
  };
311
- const closing = (popup2) => {
312
- returnTo.current = popup2.contains(document.activeElement) ? origin.current?.trigger ?? null : null;
311
+ const closing = (popup) => {
312
+ returnTo.current = popup.contains(document.activeElement) ? origin.current?.trigger ?? null : null;
313
313
  if (!geometry.current) {
314
314
  exited.current?.();
315
315
  return;
@@ -319,23 +319,23 @@ function useMorph(open, origin, { from = "trigger", effect = "goo", hideSource =
319
319
  geometry.current = null;
320
320
  exited.current?.();
321
321
  };
322
- if (skip(popup2)) {
322
+ if (skip(popup)) {
323
323
  progress.jump(0);
324
- popup2.style.opacity = "0";
324
+ popup.style.opacity = "0";
325
325
  done();
326
326
  return;
327
327
  }
328
328
  run.current = { effect: resolve(exit?.effect ?? effect), from: exit?.from ?? from };
329
329
  if (exit)
330
330
  progress.jump(1);
331
- const hold = holdExit(popup2, timing(run.current.effect));
331
+ const hold = holdExit(popup, timing(run.current.effect));
332
332
  measure();
333
333
  render(progress.get());
334
334
  let controls;
335
335
  controls = animate(progress, 0, {
336
- ...spring[timing(run.current.effect)].exit,
336
+ ...spring2[timing(run.current.effect)].exit,
337
337
  onUpdate: (p) => {
338
- if (skip(popup2))
338
+ if (skip(popup))
339
339
  controls?.complete();
340
340
  render(p);
341
341
  },
@@ -1,12 +1,12 @@
1
1
  import {
2
- SizeContext,
3
- sizeMap
4
- } from "./components-x3rz4cyn.js";
2
+ sizeMap2,
3
+ SizeContext
4
+ } from "./components-0sn7ypjw.js";
5
5
 
6
6
  // primitives/sizes/index.tsx
7
7
  import { useCallback, useMemo, useState } from "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
- function SizeProvider({
9
+ function SizeProvider2({
10
10
  children,
11
11
  size,
12
12
  defaultSize = "default"
@@ -19,10 +19,10 @@ function SizeProvider({
19
19
  return;
20
20
  setInternalSize(next);
21
21
  }, [isControlled]);
22
- const value = useMemo(() => ({ size: resolved, setSize, classes: sizeMap[resolved] }), [resolved, setSize]);
22
+ const value = useMemo(() => ({ size: resolved, setSize, classes: sizeMap2[resolved] }), [resolved, setSize]);
23
23
  return /* @__PURE__ */ jsx(SizeContext.Provider, {
24
24
  value,
25
25
  children
26
26
  });
27
27
  }
28
- export { SizeProvider };
28
+ export { SizeProvider2 };
@@ -1,37 +1,37 @@
1
1
  import {
2
- slotRender
3
- } from "./components-5vxtcp88.js";
2
+ useReduceMotion
3
+ } from "./components-men63rwj.js";
4
4
  import {
5
- button_default
6
- } from "./components-5pkcfprd.js";
5
+ GooFilter
6
+ } from "./components-0q0sqfh4.js";
7
7
  import {
8
- SURFACE_BG,
9
- SURFACE_SHADOW,
10
- SurfaceProvider,
11
- useSurface
12
- } from "./components-csxz9f52.js";
8
+ GOO_BLUR_RATIO,
9
+ holdExit
10
+ } from "./components-hqeq3w9q.js";
13
11
  import {
14
- GooFilter
15
- } from "./components-jxgznftn.js";
12
+ cn2
13
+ } from "./components-ezxhrmer.js";
16
14
  import {
17
15
  useShape
18
- } from "./components-7zp99w5d.js";
16
+ } from "./components-cv16mryv.js";
19
17
  import {
20
- GOO_BLUR_RATIO,
21
- holdExit
22
- } from "./components-7nww01w4.js";
18
+ sizeMap2
19
+ } from "./components-0sn7ypjw.js";
23
20
  import {
24
- useReduceMotion
25
- } from "./components-nnnd2xef.js";
21
+ slotRender
22
+ } from "./components-3ky44908.js";
26
23
  import {
27
- spring
28
- } from "./components-vc1k7yv2.js";
24
+ SURFACE_BG,
25
+ SURFACE_SHADOW,
26
+ useSurface2,
27
+ SurfaceProvider2
28
+ } from "./components-zx6b6yby.js";
29
29
  import {
30
- sizeMap
31
- } from "./components-x3rz4cyn.js";
30
+ button_default
31
+ } from "./components-b2wyq2cq.js";
32
32
  import {
33
- cn
34
- } from "./components-0f0as45n.js";
33
+ spring2
34
+ } from "./components-1v7rxytx.js";
35
35
 
36
36
  // components/overlays/toast/index.tsx
37
37
  import { Toast as ToastPrimitive } from "@base-ui/react/toast";
@@ -74,7 +74,7 @@ var VIEWPORT = {
74
74
  "bottom-center": "bottom-4 left-1/2 -translate-x-1/2 flex-col-reverse items-center",
75
75
  "bottom-right": "bottom-4 right-4 flex-col-reverse items-end"
76
76
  };
77
- var PILL = sizeMap.default.controlHeight;
77
+ var PILL = sizeMap2.default.controlHeight;
78
78
  var BLUR = PILL / 2 * GOO_BLUR_RATIO;
79
79
  var SNAP = { duration: 0 };
80
80
  var AUTO_EXPAND_MS = 150;
@@ -83,7 +83,7 @@ var ToastSettings = createContext({
83
83
  position: "top-right",
84
84
  timeout: 6000
85
85
  });
86
- function useToast() {
86
+ function useToast2() {
87
87
  const manager = ToastPrimitive.useToastManager();
88
88
  return useMemo(() => {
89
89
  const options = ({ action, ...rest }, type) => ({
@@ -112,16 +112,16 @@ function Shape({ box, className, shapeRef }) {
112
112
  return /* @__PURE__ */ jsx(motion.div, {
113
113
  ref: shapeRef,
114
114
  "aria-hidden": true,
115
- className: cn("pointer-events-none absolute top-0 left-0", className),
115
+ className: cn2("pointer-events-none absolute top-0 left-0", className),
116
116
  initial: false,
117
117
  animate: { ...box },
118
- transition: reduced ? SNAP : spring.slow
118
+ transition: reduced ? SNAP : spring2.slow
119
119
  });
120
120
  }
121
121
  function ToastItem({ toast }) {
122
122
  const { position, timeout } = useContext(ToastSettings);
123
123
  const shape = useShape();
124
- const level = Math.min(useSurface() + 2, 8);
124
+ const level = Math.min(useSurface2() + 2, 8);
125
125
  const gooId = `toast-goo-${useId().replace(/:/g, "")}`;
126
126
  const type = toast.type ?? "info";
127
127
  const Icon = ICONS[type];
@@ -175,7 +175,7 @@ function ToastItem({ toast }) {
175
175
  const bodyBox = { x: 0, y: top ? PILL : 0, width: size.width, height: bodyHeight };
176
176
  const reduced = useReduceMotion();
177
177
  const away = reduced ? { opacity: 0 } : { opacity: 0, y: top ? -6 : 6, scale: 0.95 };
178
- const move = reduced ? SNAP : spring.slow;
178
+ const move = reduced ? SNAP : spring2.slow;
179
179
  return /* @__PURE__ */ jsxs(ToastPrimitive.Root, {
180
180
  ref: root,
181
181
  toast,
@@ -185,7 +185,7 @@ function ToastItem({ toast }) {
185
185
  render: /* @__PURE__ */ jsx(motion.div, {
186
186
  initial: { ...away, height: PILL },
187
187
  animate: ending ? { ...away, height } : { opacity: 1, y: 0, scale: 1, height },
188
- transition: ending ? spring.moderate.exit : { ...spring.moderate, height: move }
188
+ transition: ending ? spring2.moderate.exit : { ...spring2.moderate, height: move }
189
189
  }),
190
190
  className: "relative w-[min(22rem,calc(100vw-2rem))] select-none outline-none [translate:var(--toast-swipe-movement-x)_var(--toast-swipe-movement-y)]",
191
191
  children: [
@@ -195,11 +195,11 @@ function ToastItem({ toast }) {
195
195
  }),
196
196
  /* @__PURE__ */ jsx(Shape, {
197
197
  box: pill,
198
- className: cn("rounded-full", SURFACE_SHADOW[3])
198
+ className: cn2("rounded-full", SURFACE_SHADOW[3])
199
199
  }),
200
200
  hasBody && /* @__PURE__ */ jsx(Shape, {
201
201
  box: bodyBox,
202
- className: cn(shape.container, SURFACE_SHADOW[3])
202
+ className: cn2(shape.container, SURFACE_SHADOW[3])
203
203
  }),
204
204
  /* @__PURE__ */ jsxs("div", {
205
205
  "aria-hidden": true,
@@ -208,16 +208,16 @@ function ToastItem({ toast }) {
208
208
  children: [
209
209
  /* @__PURE__ */ jsx(Shape, {
210
210
  box: pill,
211
- className: cn("rounded-full", SURFACE_BG[level])
211
+ className: cn2("rounded-full", SURFACE_BG[level])
212
212
  }),
213
213
  hasBody && /* @__PURE__ */ jsx(Shape, {
214
214
  box: bodyBox,
215
215
  shapeRef: bodyShape,
216
- className: cn(shape.container, SURFACE_BG[level])
216
+ className: cn2(shape.container, SURFACE_BG[level])
217
217
  })
218
218
  ]
219
219
  }),
220
- /* @__PURE__ */ jsxs(SurfaceProvider, {
220
+ /* @__PURE__ */ jsxs(SurfaceProvider2, {
221
221
  value: level,
222
222
  children: [
223
223
  /* @__PURE__ */ jsx(motion.div, {
@@ -235,11 +235,11 @@ function ToastItem({ toast }) {
235
235
  className: "inline-flex items-center gap-2",
236
236
  initial: { opacity: 0, filter: "blur(4px)" },
237
237
  animate: { opacity: 1, filter: "blur(0px)" },
238
- exit: { opacity: 0, filter: "blur(4px)", transition: spring.moderate.exit },
239
- transition: spring.moderate,
238
+ exit: { opacity: 0, filter: "blur(4px)", transition: spring2.moderate.exit },
239
+ transition: spring2.moderate,
240
240
  children: [
241
241
  /* @__PURE__ */ jsx("span", {
242
- className: cn("flex size-6 items-center justify-center rounded-full", TONES[type]),
242
+ className: cn2("flex size-6 items-center justify-center rounded-full", TONES[type]),
243
243
  children: /* @__PURE__ */ jsx(Icon, {
244
244
  size: 14,
245
245
  strokeWidth: 2.5,
@@ -259,10 +259,10 @@ function ToastItem({ toast }) {
259
259
  className: "absolute top-0 left-0 w-full overflow-hidden",
260
260
  initial: false,
261
261
  animate: { y: bodyBox.y, height: bodyHeight, opacity: expanded ? 1 : 0 },
262
- transition: { ...move, opacity: expanded ? spring.slow : spring.slow.exit },
262
+ transition: { ...move, opacity: expanded ? spring2.slow : spring2.slow.exit },
263
263
  children: /* @__PURE__ */ jsxs("div", {
264
264
  ref: body,
265
- className: cn("flex flex-col items-start gap-3 p-4", top ? "pt-6" : "pb-6"),
265
+ className: cn2("flex flex-col items-start gap-3 p-4", top ? "pt-6" : "pb-6"),
266
266
  children: [
267
267
  /* @__PURE__ */ jsx(ToastPrimitive.Description, {
268
268
  className: "text-caption text-muted-foreground"
@@ -287,7 +287,7 @@ function ToastList() {
287
287
  toast
288
288
  }, toast.id));
289
289
  }
290
- var ToastTrigger = forwardRef(({
290
+ var ToastTrigger2 = forwardRef(({
291
291
  title,
292
292
  description,
293
293
  type,
@@ -302,7 +302,7 @@ var ToastTrigger = forwardRef(({
302
302
  onClick,
303
303
  ...props
304
304
  }, ref) => {
305
- const toast = useToast();
305
+ const toast = useToast2();
306
306
  const el = slotRender(render, asChild, children);
307
307
  const press = (event) => {
308
308
  onClick?.(event);
@@ -320,8 +320,8 @@ var ToastTrigger = forwardRef(({
320
320
  children
321
321
  });
322
322
  });
323
- ToastTrigger.displayName = "ToastTrigger";
324
- function Toast({ position = "top-right", limit = 3, timeout = 6000, children }) {
323
+ ToastTrigger2.displayName = "ToastTrigger";
324
+ function Toast2({ position = "top-right", limit = 3, timeout = 6000, children }) {
325
325
  const settings = useMemo(() => ({ position, timeout }), [position, timeout]);
326
326
  return /* @__PURE__ */ jsx(ToastPrimitive.Provider, {
327
327
  limit,
@@ -332,7 +332,7 @@ function Toast({ position = "top-right", limit = 3, timeout = 6000, children })
332
332
  children,
333
333
  /* @__PURE__ */ jsx(ToastPrimitive.Portal, {
334
334
  children: /* @__PURE__ */ jsx(ToastPrimitive.Viewport, {
335
- className: cn("fixed z-[60] flex flex-col gap-2 outline-none", VIEWPORT[position]),
335
+ className: cn2("fixed z-[60] flex flex-col gap-2 outline-none", VIEWPORT[position]),
336
336
  children: /* @__PURE__ */ jsx(ToastList, {})
337
337
  })
338
338
  })
@@ -340,7 +340,7 @@ function Toast({ position = "top-right", limit = 3, timeout = 6000, children })
340
340
  })
341
341
  });
342
342
  }
343
- Toast.Trigger = ToastTrigger;
344
- var toast_default = Toast;
343
+ Toast2.Trigger = ToastTrigger2;
344
+ var toast_default = Toast2;
345
345
 
346
- export { useToast, ToastTrigger, Toast, toast_default };
346
+ export { useToast2, ToastTrigger2, Toast2, toast_default };