@justanarthur/modo-ui 0.1.0 → 0.3.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 (175) hide show
  1. package/README.md +18 -15
  2. package/dist/blocks/sidebar-app/index.d.ts +1 -1
  3. package/dist/blocks/sidebar-app/index.js +28 -31
  4. package/dist/components/{inputs → AI}/input-message/index.d.ts +1 -1
  5. package/dist/components/AI/input-message/index.js +25 -0
  6. package/dist/components/{thinking-indicator → AI/thinking-indicator}/index.d.ts +1 -1
  7. package/dist/components/AI/thinking-indicator/index.js +13 -0
  8. package/dist/components/{navigation/accordion → accordion}/index.d.ts +1 -1
  9. package/dist/components/accordion/index.js +28 -0
  10. package/dist/components/badge/index.d.ts +1 -1
  11. package/dist/components/badge/index.js +12 -14
  12. package/dist/components/button/index.d.ts +1 -1
  13. package/dist/components/button/index.js +10 -12
  14. package/dist/components/card/index.d.ts +1 -1
  15. package/dist/components/card/index.js +38 -40
  16. package/dist/components/{inputs/input-copy → copy}/index.d.ts +7 -7
  17. package/dist/components/copy/index.js +16 -0
  18. package/dist/components/inputs/checkbox/index.d.ts +62 -0
  19. package/dist/components/inputs/checkbox/index.js +22 -0
  20. package/dist/components/inputs/color-picker/index.d.ts +1 -1
  21. package/dist/components/inputs/color-picker/index.js +31 -33
  22. package/dist/components/inputs/combobox/index.d.ts +2 -2
  23. package/dist/components/inputs/combobox/index.js +31 -34
  24. package/dist/components/inputs/date-time/calendar/index.d.ts +1 -1
  25. package/dist/components/inputs/date-time/calendar/index.js +14 -16
  26. package/dist/components/inputs/date-time/date-picker/index.d.ts +1 -1
  27. package/dist/components/inputs/date-time/date-picker/index.js +28 -30
  28. package/dist/components/inputs/date-time/date-range-picker/index.d.ts +1 -1
  29. package/dist/components/inputs/date-time/date-range-picker/index.js +27 -29
  30. package/dist/components/inputs/date-time/duration-picker/index.d.ts +1 -1
  31. package/dist/components/inputs/date-time/duration-picker/index.js +27 -29
  32. package/dist/components/inputs/date-time/month-picker/index.d.ts +1 -1
  33. package/dist/components/inputs/date-time/month-picker/index.js +26 -28
  34. package/dist/components/inputs/date-time/time-picker/index.d.ts +1 -1
  35. package/dist/components/inputs/date-time/time-picker/index.js +27 -29
  36. package/dist/components/inputs/input/index.d.ts +1 -1
  37. package/dist/components/inputs/input/index.js +15 -16
  38. package/dist/components/inputs/{radio-group → radio}/index.d.ts +30 -30
  39. package/dist/components/inputs/radio/index.js +21 -0
  40. package/dist/components/inputs/search/index.d.ts +1 -1
  41. package/dist/components/inputs/search/index.js +21 -24
  42. package/dist/components/inputs/select/index.d.ts +1 -1
  43. package/dist/components/inputs/select/index.js +30 -33
  44. package/dist/components/inputs/slider/index.d.ts +1 -1
  45. package/dist/components/inputs/slider/index.js +10 -12
  46. package/dist/components/inputs/switch/index.d.ts +27 -6
  47. package/dist/components/inputs/switch/index.js +17 -12
  48. package/dist/components/navigation/sidebar/index.d.ts +3 -3
  49. package/dist/components/navigation/sidebar/index.js +95 -97
  50. package/dist/components/navigation/tabs/index.d.ts +1 -1
  51. package/dist/components/navigation/tabs/index.js +19 -21
  52. package/dist/components/navigation/tabs-subtle/index.d.ts +1 -1
  53. package/dist/components/navigation/tabs-subtle/index.js +17 -19
  54. package/dist/components/overlays/alert-dialog/index.d.ts +2 -2
  55. package/dist/components/overlays/alert-dialog/index.js +18 -20
  56. package/dist/components/overlays/command/index.d.ts +1 -1
  57. package/dist/components/overlays/command/index.js +32 -35
  58. package/dist/components/overlays/context-menu/index.d.ts +1 -1
  59. package/dist/components/overlays/context-menu/index.js +25 -28
  60. package/dist/components/overlays/dialog/index.d.ts +1 -1
  61. package/dist/components/overlays/dialog/index.js +33 -35
  62. package/dist/components/overlays/dropdown/index.d.ts +3 -3
  63. package/dist/components/overlays/dropdown/index.js +40 -43
  64. package/dist/components/overlays/popover/index.d.ts +1 -1
  65. package/dist/components/overlays/popover/index.js +22 -24
  66. package/dist/components/overlays/preview-card/index.d.ts +1 -1
  67. package/dist/components/overlays/preview-card/index.js +15 -17
  68. package/dist/components/overlays/sheet/index.d.ts +1 -1
  69. package/dist/components/overlays/sheet/index.js +20 -22
  70. package/dist/components/overlays/toast/index.d.ts +1 -1
  71. package/dist/components/overlays/toast/index.js +17 -19
  72. package/dist/components/overlays/tooltip/index.d.ts +1 -1
  73. package/dist/components/overlays/tooltip/index.js +13 -15
  74. package/dist/components/table/index.d.ts +1 -1
  75. package/dist/components/table/index.js +22 -24
  76. package/dist/index.d.ts +828 -795
  77. package/dist/index.js +509 -508
  78. package/dist/preset.d.ts +1 -1
  79. package/dist/preset.js +5 -5
  80. package/dist/primitives/code/index.d.ts +1 -1
  81. package/dist/primitives/code/index.js +8 -9
  82. package/dist/primitives/craft/index.d.ts +1 -1
  83. package/dist/primitives/craft/index.js +6 -8
  84. package/dist/primitives/fluid-hover/index.d.ts +1 -1
  85. package/dist/primitives/fluid-hover/index.js +18 -20
  86. package/dist/primitives/morph/index.d.ts +3 -3
  87. package/dist/primitives/morph/index.js +15 -17
  88. package/dist/primitives/motion/index.d.ts +1 -1
  89. package/dist/primitives/motion/index.js +15 -16
  90. package/dist/primitives/scroll-area/index.d.ts +1 -1
  91. package/dist/primitives/scroll-area/index.js +8 -9
  92. package/dist/primitives/sizes/index.d.ts +3 -3
  93. package/dist/primitives/sizes/index.js +17 -18
  94. package/dist/primitives/surface/index.d.ts +1 -1
  95. package/dist/primitives/surface/index.js +11 -12
  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-1434p1mh.js +123 -0
  99. package/dist/shared/{components-vc1k7yv2.js → components-1v7rxytx.js} +3 -3
  100. package/dist/shared/{components-6phwsry6.js → components-1z6tdadk.js} +25 -25
  101. package/dist/shared/{components-5zry9te1.js → components-27nnvrwe.js} +27 -27
  102. package/dist/shared/{components-ess3ch6w.js → components-2dxkv6zm.js} +23 -23
  103. package/dist/shared/{components-s5pkbjx1.js → components-2n3whx7z.js} +56 -56
  104. package/dist/shared/{components-v7es8aan.js → components-2nhgyh31.js} +15 -15
  105. package/dist/shared/{components-6t6nr33r.js → components-39jq9va1.js} +26 -26
  106. package/dist/shared/{components-4hh0gm0v.js → components-39vmfq9s.js} +61 -61
  107. package/dist/shared/{components-zx2hr57f.js → components-3fbbvq5j.js} +15 -15
  108. package/dist/shared/{components-6y1th6k4.js → components-3mkepka5.js} +31 -31
  109. package/dist/shared/{components-e46kf6cp.js → components-59efxjd9.js} +8 -8
  110. package/dist/shared/{components-rc63qsy6.js → components-5xc2j8jz.js} +10 -10
  111. package/dist/shared/{components-hzfp4tjb.js → components-7btqt08d.js} +42 -42
  112. package/dist/shared/{components-9p8s8n5q.js → components-7r3etddy.js} +22 -22
  113. package/dist/shared/{components-j65qt1mq.js → components-8ey44d79.js} +101 -101
  114. package/dist/shared/{components-hjkrv00c.js → components-8snj490h.js} +120 -23
  115. package/dist/shared/{components-40j34hdb.js → components-a86dytt0.js} +116 -116
  116. package/dist/shared/{components-tm88ghva.js → components-ar66gnt0.js} +58 -58
  117. package/dist/shared/{components-5pkcfprd.js → components-b2wyq2cq.js} +22 -22
  118. package/dist/shared/{components-vktws5r6.js → components-b3c5et5b.js} +73 -73
  119. package/dist/shared/{components-4xxtggzp.js → components-bshdmf75.js} +18 -18
  120. package/dist/shared/{components-kf2ehztc.js → components-chacnk61.js} +16 -16
  121. package/dist/shared/{components-7zp99w5d.js → components-cv16mryv.js} +2 -2
  122. package/dist/shared/{components-gjfrycb5.js → components-d6xtjht3.js} +66 -69
  123. package/dist/shared/{components-aaq3yk4f.js → components-dk0gjr5a.js} +43 -43
  124. package/dist/shared/{components-0f0as45n.js → components-ezxhrmer.js} +2 -2
  125. package/dist/shared/{components-7gv95yfy.js → components-frw34b65.js} +83 -83
  126. package/dist/shared/{components-s3yfvfkr.js → components-gc5vtq2f.js} +42 -42
  127. package/dist/shared/components-gf5s6ap9.js +42 -0
  128. package/dist/shared/{components-7cqq1sqy.js → components-gvr9w41t.js} +40 -40
  129. package/dist/shared/{components-x2xyckd5.js → components-gz8zf3ec.js} +20 -20
  130. package/dist/shared/{components-ed7cmssr.js → components-hawvy2qz.js} +18 -18
  131. package/dist/shared/{components-7nww01w4.js → components-hqeq3w9q.js} +34 -34
  132. package/dist/shared/{components-zvb11ker.js → components-hw9yk32z.js} +47 -47
  133. package/dist/shared/{components-y3cqdrgy.js → components-hyq23phv.js} +73 -54
  134. package/dist/shared/{components-bf2d9k02.js → components-jbbmdr74.js} +94 -94
  135. package/dist/shared/{components-vb033rns.js → components-jjw69c4c.js} +6 -6
  136. package/dist/shared/{components-r2gke5p6.js → components-jthe1pwb.js} +125 -125
  137. package/dist/shared/{components-tad5h7ta.js → components-jwst3vtj.js} +48 -48
  138. package/dist/shared/{components-xszag63d.js → components-k809mbn0.js} +12 -12
  139. package/dist/shared/{components-r22vtgqc.js → components-kvr7f9hy.js} +11 -11
  140. package/dist/shared/{components-r4jt6hgd.js → components-mjthm1kf.js} +6 -6
  141. package/dist/shared/{components-nn6xezy2.js → components-nb87fjy4.js} +226 -226
  142. package/dist/shared/{components-gndm6am4.js → components-ng72k97e.js} +17 -17
  143. package/dist/shared/{components-54nf2x99.js → components-pbmqctfa.js} +52 -45
  144. package/dist/shared/{components-peg09pzs.js → components-q5xj5c16.js} +11 -11
  145. package/dist/shared/{components-taxmgbnh.js → components-re6rs21k.js} +17 -17
  146. package/dist/shared/{components-r43mqnd6.js → components-rr7a6ja9.js} +46 -46
  147. package/dist/shared/{components-p2vmyfe1.js → components-s083f38z.js} +43 -43
  148. package/dist/shared/{components-bkvb6nem.js → components-s2bz1xpk.js} +11 -11
  149. package/dist/shared/components-ta7shw28.js +19 -0
  150. package/dist/shared/components-vc7vq5nz.js +32 -0
  151. package/dist/shared/{components-6hzwfmfd.js → components-vfbhxf5r.js} +8 -8
  152. package/dist/shared/{components-8hk9ve3r.js → components-wvp1m52g.js} +57 -57
  153. package/dist/shared/{components-brnzrp2t.js → components-xxvdw7k1.js} +41 -41
  154. package/dist/shared/{components-61ckf42z.js → components-zfnmn5d4.js} +64 -64
  155. package/dist/shared/{components-m5br529r.js → components-zrkzcayz.js} +2 -2
  156. package/dist/shared/{components-csxz9f52.js → components-zx6b6yby.js} +4 -4
  157. package/dist/styles.css +1 -1
  158. package/package.json +3 -3
  159. package/dist/components/inputs/checkbox-group/index.d.ts +0 -50
  160. package/dist/components/inputs/checkbox-group/index.js +0 -23
  161. package/dist/components/inputs/input-copy/index.js +0 -18
  162. package/dist/components/inputs/input-message/index.js +0 -27
  163. package/dist/components/inputs/radio-group/index.js +0 -22
  164. package/dist/components/navigation/accordion/index.js +0 -30
  165. package/dist/components/thinking-indicator/index.js +0 -15
  166. package/dist/shared/components-74c20v2f.js +0 -32
  167. package/dist/shared/components-8hzbsfbd.js +0 -123
  168. package/dist/shared/components-dphg9gjr.js +0 -42
  169. package/dist/shared/components-kpbcms10.js +0 -9
  170. /package/dist/shared/{components-5vxtcp88.js → components-3ky44908.js} +0 -0
  171. /package/dist/shared/{components-4xxddc44.js → components-c6s6b43g.js} +0 -0
  172. /package/dist/shared/{components-nnnd2xef.js → components-men63rwj.js} +0 -0
  173. /package/dist/shared/{components-de8xsm9y.js → components-mhd39z7x.js} +0 -0
  174. /package/dist/shared/{components-dg0w8g5p.js → components-n7mjr357.js} +0 -0
  175. /package/dist/shared/{components-jw16snbn.js → components-vynjtrk6.js} +0 -0
@@ -1,21 +1,21 @@
1
1
  import {
2
- ScrollColumn,
3
2
  defaultLocale,
3
+ fieldLabel,
4
4
  dividedColumns,
5
- fieldLabel
6
- } from "./components-x2xyckd5.js";
5
+ ScrollColumn
6
+ } from "./components-gz8zf3ec.js";
7
7
  import {
8
- SizeProvider
9
- } from "./components-vb033rns.js";
8
+ cn2
9
+ } from "./components-ezxhrmer.js";
10
10
  import {
11
11
  useShape
12
- } from "./components-7zp99w5d.js";
12
+ } from "./components-cv16mryv.js";
13
13
  import {
14
- useSize
15
- } from "./components-x3rz4cyn.js";
14
+ useSize2
15
+ } from "./components-0sn7ypjw.js";
16
16
  import {
17
- cn
18
- } from "./components-0f0as45n.js";
17
+ SizeProvider2
18
+ } from "./components-jjw69c4c.js";
19
19
 
20
20
  // components/inputs/date-time/calendar/index.tsx
21
21
  import {
@@ -42,10 +42,10 @@ function useMonthWindow(start, end, anchor) {
42
42
  const total = differenceInCalendarMonths(end, start) + 1;
43
43
  const count = Math.min(WINDOW, total);
44
44
  const startTime = start.getTime();
45
- const clamp = useCallback((first2) => {
45
+ const clamp = useCallback((first) => {
46
46
  const from = new Date(startTime);
47
47
  const last = addMonths(from, total - count);
48
- return first2 < from ? from : first2 > last ? last : startOfMonth(first2);
48
+ return first < from ? from : first > last ? last : startOfMonth(first);
49
49
  }, [startTime, total, count]);
50
50
  const [first, setFirst] = useState(() => clamp(addMonths(startOfMonth(anchor), -Math.floor(WINDOW / 2))));
51
51
  const [visible, setVisible] = useState([]);
@@ -166,7 +166,7 @@ function Day({ day: _, modifiers, className, ...props }) {
166
166
  const end = modifiers.range_end && !modifiers.range_start;
167
167
  return /* @__PURE__ */ jsx("td", {
168
168
  ...props,
169
- className: cn("relative p-0", !modifiers.hidden && modifiers.range_middle && "bg-active", !modifiers.hidden && modifiers.preview && !modifiers.selected && "bg-hover", (start || end) && "before:absolute before:inset-y-0 before:bg-active", start && "before:start-1/2 before:end-0", end && "before:start-0 before:end-1/2", className)
169
+ className: cn2("relative p-0", !modifiers.hidden && modifiers.range_middle && "bg-active", !modifiers.hidden && modifiers.preview && !modifiers.selected && "bg-hover", (start || end) && "before:absolute before:inset-y-0 before:bg-active", start && "before:start-1/2 before:end-0", end && "before:start-0 before:end-1/2", className)
170
170
  });
171
171
  }
172
172
  function DayButton({ day: _, modifiers, className, ...props }) {
@@ -176,15 +176,15 @@ function DayButton({ day: _, modifiers, className, ...props }) {
176
176
  ref.current?.focus();
177
177
  }, [modifiers.focused]);
178
178
  const shape = useShape();
179
- const sizeClasses = useSize();
179
+ const sizeClasses = useSize2();
180
180
  const pill = modifiers.selected && !modifiers.range_middle;
181
181
  return /* @__PURE__ */ jsx("button", {
182
182
  ref,
183
183
  ...props,
184
- className: cn("relative flex items-center justify-center tabular-nums outline-none cursor-pointer", "transition-[color,background-color] duration-fast focus-visible:ring-1 focus-visible:ring-focus-ring", "disabled:opacity-50 disabled:cursor-default", sizeClasses.variant === "compact" ? "size-7" : "size-9", sizeClasses.text, shape.item, modifiers.weekend && "text-muted-foreground", modifiers.today && "after:absolute after:bottom-1 after:left-1/2 after:size-1 after:-translate-x-1/2 after:rounded-full after:bg-current", pill ? "bg-foreground text-background weight-semibold hover:bg-foreground/90" : "enabled:hover:bg-hover", className)
184
+ className: cn2("relative flex items-center justify-center tabular-nums outline-none cursor-pointer", "transition-[color,background-color] duration-fast focus-visible:ring-1 focus-visible:ring-focus-ring", "disabled:opacity-50 disabled:cursor-default", sizeClasses.variant === "compact" ? "size-7" : "size-9", sizeClasses.text, shape.item, modifiers.weekend && "text-muted-foreground", modifiers.today && "after:absolute after:bottom-1 after:left-1/2 after:size-1 after:-translate-x-1/2 after:rounded-full after:bg-current", pill ? "bg-foreground text-background weight-semibold hover:bg-foreground/90" : "enabled:hover:bg-hover", className)
185
185
  });
186
186
  }
187
- function Calendar({
187
+ function Calendar2({
188
188
  locale = defaultLocale,
189
189
  size,
190
190
  columnsSide = "end",
@@ -193,7 +193,7 @@ function Calendar({
193
193
  className,
194
194
  ...props
195
195
  }) {
196
- const sizeClasses = useSize(size);
196
+ const sizeClasses = useSize2(size);
197
197
  const picked = pickedDate(props);
198
198
  const today = useMemo(() => new Date, []);
199
199
  const start = startOfMonth2(props.startMonth ?? startOfYear(addYears(today, -100)));
@@ -283,15 +283,15 @@ function Calendar({
283
283
  const extras = extraColumns?.(orientation);
284
284
  const before = [extraColumnsSide === "start" && extras, columnsSide === "start" && [yearColumn, monthColumn]];
285
285
  const after = [columnsSide === "end" && [monthColumn, yearColumn], extraColumnsSide === "end" && extras];
286
- const side = (place) => wide ? cn(dividedColumns, "h-full shrink-0 border-border", place === "start" ? "border-e" : "border-s") : "order-first flex w-full flex-col [&>*]:border-b [&>*]:border-border";
286
+ const side = (place) => wide ? cn2(dividedColumns, "h-full shrink-0 border-border", place === "start" ? "border-e" : "border-s") : "order-first flex w-full flex-col [&>*]:border-b [&>*]:border-border";
287
287
  const grid = /* @__PURE__ */ jsxs("div", {
288
- className: cn("flex min-h-0 shrink-0 flex-col", wide ? "h-full" : "flex-1 self-center"),
288
+ className: cn2("flex min-h-0 shrink-0 flex-col", wide ? "h-full" : "flex-1 self-center"),
289
289
  children: [
290
290
  /* @__PURE__ */ jsx("div", {
291
291
  "aria-hidden": true,
292
292
  className: "flex border-b border-border px-1 pb-1",
293
293
  children: weekdays.map((day) => /* @__PURE__ */ jsx("span", {
294
- className: cn("flex items-center justify-center text-caption", sizeClasses.variant === "compact" ? "w-7" : "w-9", "text-muted-foreground"),
294
+ className: cn2("flex items-center justify-center text-caption", sizeClasses.variant === "compact" ? "w-7" : "w-9", "text-muted-foreground"),
295
295
  children: format2(day, "EEEEEE", { locale })
296
296
  }, day.getDay()))
297
297
  }),
@@ -327,7 +327,7 @@ function Calendar({
327
327
  classNames: {
328
328
  months: "flex flex-col",
329
329
  month: "pb-2",
330
- month_caption: cn("px-2 pt-2 pb-1 text-subtitle weight-semibold", sizeClasses.variant === "compact" && "text-subtitle-compact"),
330
+ month_caption: cn2("px-2 pt-2 pb-1 text-subtitle weight-semibold", sizeClasses.variant === "compact" && "text-subtitle-compact"),
331
331
  month_grid: "border-collapse",
332
332
  ...props.classNames
333
333
  }
@@ -338,7 +338,7 @@ function Calendar({
338
338
  const content = /* @__PURE__ */ jsxs("div", {
339
339
  ref: rootRef,
340
340
  dir: props.dir,
341
- className: cn("flex w-max max-w-full overflow-hidden", wide ? "h-80 flex-row" : "h-[min(30rem,65dvh)] flex-col", className),
341
+ className: cn2("flex w-max max-w-full overflow-hidden", wide ? "h-80 flex-row" : "h-[min(30rem,65dvh)] flex-col", className),
342
342
  children: [
343
343
  before.some(Boolean) ? /* @__PURE__ */ jsx("div", {
344
344
  className: side("start"),
@@ -351,11 +351,11 @@ function Calendar({
351
351
  }) : null
352
352
  ]
353
353
  });
354
- return size ? /* @__PURE__ */ jsx(SizeProvider, {
354
+ return size ? /* @__PURE__ */ jsx(SizeProvider2, {
355
355
  size,
356
356
  children: content
357
357
  }) : content;
358
358
  }
359
- var calendar_default = Calendar;
359
+ var calendar_default = Calendar2;
360
360
 
361
- export { Calendar, calendar_default };
361
+ export { Calendar2, calendar_default };
@@ -1,23 +1,23 @@
1
+ import {
2
+ useReduceMotion
3
+ } from "./components-men63rwj.js";
1
4
  import {
2
5
  GooFilter
3
- } from "./components-jxgznftn.js";
6
+ } from "./components-0q0sqfh4.js";
4
7
  import {
5
8
  GOO_BLUR_RATIO
6
- } from "./components-7nww01w4.js";
7
- import {
8
- useReduceMotion
9
- } from "./components-nnnd2xef.js";
9
+ } from "./components-hqeq3w9q.js";
10
10
  import {
11
- spring
12
- } from "./components-vc1k7yv2.js";
11
+ cn2
12
+ } from "./components-ezxhrmer.js";
13
13
  import {
14
- useSize
15
- } from "./components-x3rz4cyn.js";
14
+ useSize2
15
+ } from "./components-0sn7ypjw.js";
16
16
  import {
17
- cn
18
- } from "./components-0f0as45n.js";
17
+ spring2
18
+ } from "./components-1v7rxytx.js";
19
19
 
20
- // components/thinking-indicator/index.tsx
20
+ // components/AI/thinking-indicator/index.tsx
21
21
  import { AnimatePresence, motion } from "motion/react";
22
22
  import { forwardRef, useEffect, useId, useState } from "react";
23
23
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -33,10 +33,10 @@ var MERGED = Math.sqrt(3);
33
33
  function GooDots({ step, still }) {
34
34
  const gooId = `thinking-goo-${useId().replace(/:/g, "")}`;
35
35
  const { box, dot, radius, gap } = DOTS[step];
36
- const loop = { duration: spring.slow.duration * 8, ease: "easeInOut", repeat: Infinity };
36
+ const loop = { duration: spring2.slow.duration * 8, ease: "easeInOut", repeat: Infinity };
37
37
  return /* @__PURE__ */ jsxs("span", {
38
38
  "aria-hidden": true,
39
- className: cn("relative shrink-0", box),
39
+ className: cn2("relative shrink-0", box),
40
40
  children: [
41
41
  /* @__PURE__ */ jsx(GooFilter, {
42
42
  id: gooId,
@@ -46,7 +46,7 @@ function GooDots({ step, still }) {
46
46
  className: "absolute inset-0 flex items-center justify-center",
47
47
  style: { filter: `url(#${gooId})` },
48
48
  children: [-1, 0, 1].map((side) => /* @__PURE__ */ jsx(motion.span, {
49
- className: cn("absolute rounded-full bg-muted-foreground", dot),
49
+ className: cn2("absolute rounded-full bg-muted-foreground", dot),
50
50
  animate: still ? { x: side * gap } : side ? { x: [side * gap, 0, side * gap] } : { scale: [1, MERGED, 1] },
51
51
  transition: still ? { duration: 0 } : loop
52
52
  }, side))
@@ -54,8 +54,8 @@ function GooDots({ step, still }) {
54
54
  ]
55
55
  });
56
56
  }
57
- var ThinkingIndicator = forwardRef(({ className, variant = "shimmer", showIcon = true, size, ...props }, ref) => {
58
- const step = useSize(size).variant;
57
+ var ThinkingIndicator2 = forwardRef(({ className, variant = "shimmer", showIcon = true, size, ...props }, ref) => {
58
+ const step = useSize2(size).variant;
59
59
  const compactStep = step === "compact";
60
60
  const [index, setIndex] = useState(0);
61
61
  const reduceMotion = useReduceMotion();
@@ -71,7 +71,7 @@ var ThinkingIndicator = forwardRef(({ className, variant = "shimmer", showIcon =
71
71
  return /* @__PURE__ */ jsxs("div", {
72
72
  ref,
73
73
  role: "status",
74
- className: cn("flex items-center gap-2 px-3 py-2", className),
74
+ className: cn2("flex items-center gap-2 px-3 py-2", className),
75
75
  ...props,
76
76
  children: [
77
77
  /* @__PURE__ */ jsx("span", {
@@ -113,30 +113,30 @@ var ThinkingIndicator = forwardRef(({ className, variant = "shimmer", showIcon =
113
113
  }),
114
114
  /* @__PURE__ */ jsxs("span", {
115
115
  "aria-hidden": "true",
116
- className: cn("inline-grid overflow-hidden", compactStep ? "text-body-compact" : "text-body", "weight-medium"),
116
+ className: cn2("inline-grid overflow-hidden", compactStep ? "text-body-compact" : "text-body", "weight-medium"),
117
117
  children: [
118
118
  /* @__PURE__ */ jsx("span", {
119
- className: cn("col-start-1 row-start-1 invisible", label),
119
+ className: cn2("col-start-1 row-start-1 invisible", label),
120
120
  children: words.reduce((a, b) => a.length >= b.length ? a : b)
121
121
  }),
122
122
  reduceMotion ? /* @__PURE__ */ jsx("span", {
123
- className: cn("col-start-1 row-start-1", label),
123
+ className: cn2("col-start-1 row-start-1", label),
124
124
  children: words[0]
125
125
  }) : /* @__PURE__ */ jsx(AnimatePresence, {
126
126
  mode: "popLayout",
127
127
  initial: false,
128
128
  children: /* @__PURE__ */ jsx(motion.span, {
129
- className: cn("col-start-1 row-start-1", label),
129
+ className: cn2("col-start-1 row-start-1", label),
130
130
  initial: { y: "80%", opacity: 0 },
131
131
  animate: {
132
132
  y: 0,
133
133
  opacity: 1,
134
- transition: { duration: spring.slow.duration, ease: [0.4, 0, 0.2, 1] }
134
+ transition: { duration: spring2.slow.duration, ease: [0.4, 0, 0.2, 1] }
135
135
  },
136
136
  exit: {
137
137
  y: "-80%",
138
138
  opacity: 0,
139
- transition: { duration: spring.slow.exit.duration, ease: [0.4, 0, 0.2, 1] }
139
+ transition: { duration: spring2.slow.exit.duration, ease: [0.4, 0, 0.2, 1] }
140
140
  },
141
141
  children: words[index]
142
142
  }, words[index])
@@ -146,7 +146,7 @@ var ThinkingIndicator = forwardRef(({ className, variant = "shimmer", showIcon =
146
146
  ]
147
147
  });
148
148
  });
149
- ThinkingIndicator.displayName = "ThinkingIndicator";
150
- var thinking_indicator_default = ThinkingIndicator;
149
+ ThinkingIndicator2.displayName = "ThinkingIndicator";
150
+ var thinking_indicator_default = ThinkingIndicator2;
151
151
 
152
- export { ThinkingIndicator, thinking_indicator_default };
152
+ export { ThinkingIndicator2, thinking_indicator_default };
@@ -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,35 +1,35 @@
1
1
  import {
2
- DropdownContent,
3
- DropdownMenu,
4
- DropdownTrigger,
5
- MenuItem
6
- } from "./components-40j34hdb.js";
2
+ useShape
3
+ } from "./components-cv16mryv.js";
7
4
  import {
8
- SidebarInput,
9
- SidebarMenu,
10
- SidebarMenuButton,
11
- SidebarMenuItem,
12
- SidebarTrigger,
13
- sidebar_default
14
- } from "./components-nn6xezy2.js";
5
+ useSize2
6
+ } from "./components-0sn7ypjw.js";
15
7
  import {
16
- tooltip_default
17
- } from "./components-gndm6am4.js";
8
+ cn2
9
+ } from "./components-ezxhrmer.js";
18
10
  import {
19
11
  button_default
20
- } from "./components-5pkcfprd.js";
12
+ } from "./components-b2wyq2cq.js";
21
13
  import {
22
14
  useIcon
23
- } from "./components-m5br529r.js";
15
+ } from "./components-zrkzcayz.js";
24
16
  import {
25
- useShape
26
- } from "./components-7zp99w5d.js";
17
+ tooltip_default
18
+ } from "./components-ng72k97e.js";
27
19
  import {
28
- useSize
29
- } from "./components-x3rz4cyn.js";
20
+ SidebarTrigger2,
21
+ SidebarInput2,
22
+ SidebarMenu2,
23
+ SidebarMenuItem2,
24
+ SidebarMenuButton2,
25
+ sidebar_default
26
+ } from "./components-nb87fjy4.js";
30
27
  import {
31
- cn
32
- } from "./components-0f0as45n.js";
28
+ MenuItem2,
29
+ DropdownMenu2,
30
+ DropdownTrigger2,
31
+ DropdownContent2
32
+ } from "./components-a86dytt0.js";
33
33
 
34
34
  // blocks/sidebar-app/index.tsx
35
35
  import { useState } from "react";
@@ -38,9 +38,9 @@ import { useState } from "react";
38
38
  import { jsx, jsxs } from "react/jsx-runtime";
39
39
  function SidebarInsetTopbar({ children, className }) {
40
40
  return /* @__PURE__ */ jsxs("header", {
41
- className: cn("flex h-12 shrink-0 items-center gap-2 px-1.5", className),
41
+ className: cn2("flex h-12 shrink-0 items-center gap-2 px-1.5", className),
42
42
  children: [
43
- /* @__PURE__ */ jsx(SidebarTrigger, {}),
43
+ /* @__PURE__ */ jsx(SidebarTrigger2, {}),
44
44
  children
45
45
  ]
46
46
  });
@@ -68,7 +68,7 @@ var NAV_SECTIONS = [
68
68
  // blocks/sidebar-app/search-field.tsx
69
69
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
70
70
  function SidebarSearchField({ placeholder = "Search…", shortcut = "⌘K", ...props }) {
71
- const iconSize = useSize().icon;
71
+ const iconSize = useSize2().icon;
72
72
  const SearchIcon = useIcon("search");
73
73
  return /* @__PURE__ */ jsxs2("div", {
74
74
  className: "group/search relative",
@@ -78,7 +78,7 @@ function SidebarSearchField({ placeholder = "Search…", shortcut = "⌘K", ...p
78
78
  strokeWidth: 1.5,
79
79
  className: "pointer-events-none absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground"
80
80
  }),
81
- /* @__PURE__ */ jsx2(SidebarInput, {
81
+ /* @__PURE__ */ jsx2(SidebarInput2, {
82
82
  placeholder,
83
83
  "aria-label": "Search",
84
84
  className: "pl-8 pr-12",
@@ -99,16 +99,16 @@ var SIDEBAR_MENU_POPUP = `min-w-[240px] w-[calc(var(--anchor-width)_+_10px)] ${S
99
99
  // blocks/sidebar-app/user-footer.tsx
100
100
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
101
101
  function SidebarUserFooter({ name, avatar, menu, className }) {
102
- const iconSize = useSize().icon;
102
+ const iconSize = useSize2().icon;
103
103
  const ChevronsUpDown = useIcon("chevrons-up-down");
104
- return /* @__PURE__ */ jsx3(SidebarMenu, {
104
+ return /* @__PURE__ */ jsx3(SidebarMenu2, {
105
105
  "aria-label": "User",
106
- className: cn(className),
107
- children: /* @__PURE__ */ jsx3(SidebarMenuItem, {
108
- children: /* @__PURE__ */ jsxs3(DropdownMenu, {
106
+ className: cn2(className),
107
+ children: /* @__PURE__ */ jsx3(SidebarMenuItem2, {
108
+ children: /* @__PURE__ */ jsxs3(DropdownMenu2, {
109
109
  children: [
110
- /* @__PURE__ */ jsx3(DropdownTrigger, {
111
- render: /* @__PURE__ */ jsxs3(SidebarMenuButton, {
110
+ /* @__PURE__ */ jsx3(DropdownTrigger2, {
111
+ render: /* @__PURE__ */ jsxs3(SidebarMenuButton2, {
112
112
  "aria-label": "Open user menu",
113
113
  children: [
114
114
  /* @__PURE__ */ jsx3("span", {
@@ -130,7 +130,7 @@ function SidebarUserFooter({ name, avatar, menu, className }) {
130
130
  ]
131
131
  })
132
132
  }),
133
- /* @__PURE__ */ jsx3(DropdownContent, {
133
+ /* @__PURE__ */ jsx3(DropdownContent2, {
134
134
  className: SIDEBAR_MENU_POPUP,
135
135
  side: "top",
136
136
  align: "start",
@@ -152,7 +152,7 @@ function SidebarWorkspaceHeader({
152
152
  checkedIndex,
153
153
  defaultCheckedIndex
154
154
  }) {
155
- const iconSize = useSize().icon;
155
+ const iconSize = useSize2().icon;
156
156
  const ChevronDown = useIcon("chevron-down");
157
157
  const tileSlot = /* @__PURE__ */ jsx4("span", {
158
158
  "aria-hidden": true,
@@ -172,14 +172,14 @@ function SidebarWorkspaceHeader({
172
172
  ]
173
173
  });
174
174
  }
175
- return /* @__PURE__ */ jsx4(SidebarMenu, {
175
+ return /* @__PURE__ */ jsx4(SidebarMenu2, {
176
176
  "aria-label": "Workspace",
177
177
  className: "@container",
178
- children: /* @__PURE__ */ jsx4(SidebarMenuItem, {
179
- children: /* @__PURE__ */ jsxs4(DropdownMenu, {
178
+ children: /* @__PURE__ */ jsx4(SidebarMenuItem2, {
179
+ children: /* @__PURE__ */ jsxs4(DropdownMenu2, {
180
180
  children: [
181
- /* @__PURE__ */ jsx4(DropdownTrigger, {
182
- render: /* @__PURE__ */ jsxs4(SidebarMenuButton, {
181
+ /* @__PURE__ */ jsx4(DropdownTrigger2, {
182
+ render: /* @__PURE__ */ jsxs4(SidebarMenuButton2, {
183
183
  "aria-label": "Switch workspace",
184
184
  className: "pl-8",
185
185
  children: [
@@ -196,7 +196,7 @@ function SidebarWorkspaceHeader({
196
196
  ]
197
197
  })
198
198
  }),
199
- /* @__PURE__ */ jsx4(DropdownContent, {
199
+ /* @__PURE__ */ jsx4(DropdownContent2, {
200
200
  className: SIDEBAR_MENU_POPUP,
201
201
  align: "start",
202
202
  sideOffset: 4,
@@ -212,7 +212,7 @@ function SidebarWorkspaceHeader({
212
212
  function WorkspaceTile({ children, className }) {
213
213
  const shape = useShape();
214
214
  return /* @__PURE__ */ jsx4("span", {
215
- className: cn("flex size-5 shrink-0 items-center justify-center bg-foreground text-micro-compact weight-semibold text-background", shape.bgRadius >= 20 ? "rounded-full" : "rounded-md", className),
215
+ className: cn2("flex size-5 shrink-0 items-center justify-center bg-foreground text-micro-compact weight-semibold text-background", shape.bgRadius >= 20 ? "rounded-full" : "rounded-md", className),
216
216
  children
217
217
  });
218
218
  }
@@ -245,15 +245,15 @@ function AppSidebar({ variant, side, className, value, onValueChange }) {
245
245
  defaultCheckedIndex: 0,
246
246
  menu: /* @__PURE__ */ jsxs5(Fragment, {
247
247
  children: [
248
- /* @__PURE__ */ jsx5(MenuItem, {
248
+ /* @__PURE__ */ jsx5(MenuItem2, {
249
249
  index: 0,
250
250
  label: "Acme Inc"
251
251
  }),
252
- /* @__PURE__ */ jsx5(MenuItem, {
252
+ /* @__PURE__ */ jsx5(MenuItem2, {
253
253
  index: 1,
254
254
  label: "Personal"
255
255
  }),
256
- /* @__PURE__ */ jsx5(MenuItem, {
256
+ /* @__PURE__ */ jsx5(MenuItem2, {
257
257
  index: 2,
258
258
  icon: PlusIcon,
259
259
  label: "New workspace"
@@ -311,26 +311,26 @@ function AppSidebar({ variant, side, className, value, onValueChange }) {
311
311
  value: item.label,
312
312
  children: item.label
313
313
  }),
314
- /* @__PURE__ */ jsxs5(DropdownMenu, {
314
+ /* @__PURE__ */ jsxs5(DropdownMenu2, {
315
315
  children: [
316
- /* @__PURE__ */ jsx5(DropdownTrigger, {
316
+ /* @__PURE__ */ jsx5(DropdownTrigger2, {
317
317
  render: /* @__PURE__ */ jsx5(sidebar_default.MenuAction, {
318
318
  showOnHover: true,
319
319
  "aria-label": "More options",
320
320
  children: /* @__PURE__ */ jsx5(MoreVerticalIcon, {})
321
321
  })
322
322
  }),
323
- /* @__PURE__ */ jsxs5(DropdownContent, {
323
+ /* @__PURE__ */ jsxs5(DropdownContent2, {
324
324
  className: "min-w-0 w-[240px]",
325
325
  align: "start",
326
326
  sideOffset: 4,
327
327
  children: [
328
- /* @__PURE__ */ jsx5(MenuItem, {
328
+ /* @__PURE__ */ jsx5(MenuItem2, {
329
329
  index: 0,
330
330
  icon: PencilIcon,
331
331
  label: "Rename"
332
332
  }),
333
- /* @__PURE__ */ jsx5(MenuItem, {
333
+ /* @__PURE__ */ jsx5(MenuItem2, {
334
334
  index: 1,
335
335
  icon: LinkIcon,
336
336
  label: "Share"
@@ -358,17 +358,17 @@ function AppSidebar({ variant, side, className, value, onValueChange }) {
358
358
  className: "min-w-0 flex-1",
359
359
  menu: /* @__PURE__ */ jsxs5(Fragment, {
360
360
  children: [
361
- /* @__PURE__ */ jsx5(MenuItem, {
361
+ /* @__PURE__ */ jsx5(MenuItem2, {
362
362
  index: 0,
363
363
  icon: UserIcon,
364
364
  label: "Profile"
365
365
  }),
366
- /* @__PURE__ */ jsx5(MenuItem, {
366
+ /* @__PURE__ */ jsx5(MenuItem2, {
367
367
  index: 1,
368
368
  icon: SettingsIcon,
369
369
  label: "Settings"
370
370
  }),
371
- /* @__PURE__ */ jsx5(MenuItem, {
371
+ /* @__PURE__ */ jsx5(MenuItem2, {
372
372
  index: 2,
373
373
  icon: ArrowLeftIcon,
374
374
  label: "Log out"
@@ -404,7 +404,7 @@ function AppSidebar({ variant, side, className, value, onValueChange }) {
404
404
  ]
405
405
  });
406
406
  }
407
- function SidebarApp({
407
+ function SidebarApp2({
408
408
  defaultOpen = false,
409
409
  variant = "inset",
410
410
  side = "left",
@@ -425,7 +425,7 @@ function SidebarApp({
425
425
  onValueChange: setThread
426
426
  }),
427
427
  /* @__PURE__ */ jsxs5(sidebar_default.Inset, {
428
- className: cn(contained && "min-h-0", variant === "floating" && "pt-2"),
428
+ className: cn2(contained && "min-h-0", variant === "floating" && "pt-2"),
429
429
  children: [
430
430
  /* @__PURE__ */ jsx5(SidebarInsetTopbar, {
431
431
  children: /* @__PURE__ */ jsx5("span", {
@@ -442,4 +442,4 @@ function SidebarApp({
442
442
  });
443
443
  }
444
444
 
445
- export { SidebarApp };
445
+ export { SidebarApp2 };