@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,22 +1,22 @@
1
- import {
2
- TimeColumns
3
- } from "./components-r4jt6hgd.js";
4
- import {
5
- calendar_default
6
- } from "./components-6phwsry6.js";
7
- import {
8
- PickerInput,
9
- PickerShell
10
- } from "./components-hzfp4tjb.js";
11
1
  import {
12
2
  defaultLocale,
13
3
  hourCycleOf,
14
4
  parseDateText,
15
5
  parseTimeText
16
- } from "./components-x2xyckd5.js";
6
+ } from "./components-gz8zf3ec.js";
17
7
  import {
18
8
  useControllableState
19
- } from "./components-dg0w8g5p.js";
9
+ } from "./components-n7mjr357.js";
10
+ import {
11
+ calendar_default
12
+ } from "./components-1z6tdadk.js";
13
+ import {
14
+ PickerShell,
15
+ PickerInput
16
+ } from "./components-7btqt08d.js";
17
+ import {
18
+ TimeColumns
19
+ } from "./components-mjthm1kf.js";
20
20
 
21
21
  // components/inputs/date-time/date-picker/index.tsx
22
22
  import { endOfMonth, format, set } from "date-fns";
@@ -24,7 +24,7 @@ import { useRef } from "react";
24
24
  import { dateMatchModifiers } from "react-day-picker";
25
25
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
26
26
  var keepTime = (day, from) => set(day, { hours: from?.getHours() ?? 0, minutes: from?.getMinutes() ?? 0, seconds: 0, milliseconds: 0 });
27
- function DatePicker({
27
+ function DatePicker2({
28
28
  value: valueProp,
29
29
  defaultValue = null,
30
30
  onValueChange,
@@ -139,6 +139,6 @@ function DatePicker({
139
139
  })
140
140
  });
141
141
  }
142
- var date_picker_default = DatePicker;
142
+ var date_picker_default = DatePicker2;
143
143
 
144
- export { DatePicker, date_picker_default };
144
+ export { DatePicker2, date_picker_default };
@@ -1,35 +1,35 @@
1
1
  import {
2
- button_default
3
- } from "./components-5pkcfprd.js";
4
- import {
5
- SURFACE_BG,
6
- SURFACE_SHADOW,
7
- SurfaceProvider,
8
- useSurface
9
- } from "./components-csxz9f52.js";
2
+ useShape
3
+ } from "./components-cv16mryv.js";
10
4
  import {
11
- MorphPart,
12
- MorphSurface
13
- } from "./components-jxgznftn.js";
5
+ cn2
6
+ } from "./components-ezxhrmer.js";
14
7
  import {
15
- useShape
16
- } from "./components-7zp99w5d.js";
8
+ button_default
9
+ } from "./components-b2wyq2cq.js";
17
10
  import {
18
- useControllableState
19
- } from "./components-dg0w8g5p.js";
11
+ MorphPart2,
12
+ MorphSurface
13
+ } from "./components-0q0sqfh4.js";
20
14
  import {
21
15
  opensInPlace,
22
- useMorph,
23
- useMorphOrigin
24
- } from "./components-7nww01w4.js";
16
+ useMorphOrigin,
17
+ useMorph
18
+ } from "./components-hqeq3w9q.js";
25
19
  import {
26
- cn
27
- } from "./components-0f0as45n.js";
20
+ SURFACE_BG,
21
+ SURFACE_SHADOW,
22
+ useSurface2,
23
+ SurfaceProvider2
24
+ } from "./components-zx6b6yby.js";
25
+ import {
26
+ useControllableState
27
+ } from "./components-n7mjr357.js";
28
28
 
29
29
  // primitives/morph/index.tsx
30
30
  import { useState } from "react";
31
31
  import { jsx, jsxs } from "react/jsx-runtime";
32
- function Morph({
32
+ function Morph2({
33
33
  from = "trigger",
34
34
  effect = "goo",
35
35
  tier = "slow",
@@ -48,10 +48,10 @@ function Morph({
48
48
  const { origin, capture } = useMorphOrigin();
49
49
  const morph = useMorph(shown, origin, { from, effect, tier, hideSource }, () => setMounted(false));
50
50
  const shape = useShape();
51
- const level = Math.min(useSurface() + 2, 8);
51
+ const level = Math.min(useSurface2() + 2, 8);
52
52
  const inPlace = opensInPlace({ effect, hideSource });
53
53
  return /* @__PURE__ */ jsxs("div", {
54
- className: cn("relative inline-flex flex-col items-center", className),
54
+ className: cn2("relative inline-flex flex-col items-center", className),
55
55
  children: [
56
56
  /* @__PURE__ */ jsx(button_default, {
57
57
  variant: "secondary",
@@ -67,7 +67,7 @@ function Morph({
67
67
  ref: morph.popupRef,
68
68
  className: inPlace ? "absolute top-0 left-0 z-10" : "absolute top-full left-1/2 z-10 mt-3 -translate-x-1/2",
69
69
  onClick: inPlace ? () => setShown(false) : undefined,
70
- children: /* @__PURE__ */ jsx(SurfaceProvider, {
70
+ children: /* @__PURE__ */ jsx(SurfaceProvider2, {
71
71
  value: level,
72
72
  children: /* @__PURE__ */ jsx(MorphSurface, {
73
73
  morph,
@@ -82,5 +82,5 @@ function Morph({
82
82
  ]
83
83
  });
84
84
  }
85
- Morph.Part = MorphPart;
86
- export { Morph };
85
+ Morph2.Part = MorphPart2;
86
+ export { Morph2 };
@@ -1,35 +1,35 @@
1
1
  import {
2
- DialogContent,
3
- DialogState,
4
- DialogTrigger
5
- } from "./components-61ckf42z.js";
2
+ cn2
3
+ } from "./components-ezxhrmer.js";
6
4
  import {
7
- useIcon
8
- } from "./components-m5br529r.js";
5
+ FluidHoverHighlight2
6
+ } from "./components-kvr7f9hy.js";
9
7
  import {
10
- isDisabledRow,
11
- popupScrollAreaClass,
12
- popupViewportClass
13
- } from "./components-jw16snbn.js";
8
+ useIcon
9
+ } from "./components-zrkzcayz.js";
14
10
  import {
15
- ScrollArea
16
- } from "./components-ed7cmssr.js";
11
+ shapeMap
12
+ } from "./components-cv16mryv.js";
17
13
  import {
18
- FluidHoverHighlight
19
- } from "./components-r22vtgqc.js";
14
+ useSize2
15
+ } from "./components-0sn7ypjw.js";
20
16
  import {
21
- useFluidHover,
22
- useRegisterFluidHoverItem
23
- } from "./components-e46kf6cp.js";
17
+ useFluidHover2,
18
+ useRegisterFluidHoverItem2
19
+ } from "./components-59efxjd9.js";
24
20
  import {
25
- shapeMap
26
- } from "./components-7zp99w5d.js";
21
+ ScrollArea2
22
+ } from "./components-hawvy2qz.js";
27
23
  import {
28
- useSize
29
- } from "./components-x3rz4cyn.js";
24
+ DialogTrigger2,
25
+ DialogContent2,
26
+ DialogState2
27
+ } from "./components-zfnmn5d4.js";
30
28
  import {
31
- cn
32
- } from "./components-0f0as45n.js";
29
+ popupScrollAreaClass,
30
+ popupViewportClass,
31
+ isDisabledRow
32
+ } from "./components-vynjtrk6.js";
33
33
 
34
34
  // components/overlays/command/index.tsx
35
35
  import { Autocomplete } from "@base-ui/react/autocomplete";
@@ -54,7 +54,7 @@ var CommandContext = createContext({
54
54
  var CommandHighlight = createContext(null);
55
55
  var CommandRows = createContext(undefined);
56
56
  var isGrouped = (items) => items[0] !== undefined && ("items" in items[0]);
57
- function CommandListRoot({ items, ...props }) {
57
+ function CommandListRoot2({ items, ...props }) {
58
58
  const [highlight, setHighlight] = useState(null);
59
59
  const { contains } = Autocomplete.useFilter();
60
60
  return /* @__PURE__ */ jsx(CommandHighlight.Provider, {
@@ -68,9 +68,9 @@ function CommandListRoot({ items, ...props }) {
68
68
  })
69
69
  });
70
70
  }
71
- function CommandShortcut({ className, ...props }) {
71
+ function CommandShortcut2({ className, ...props }) {
72
72
  return /* @__PURE__ */ jsx("kbd", {
73
- className: cn("ml-auto shrink-0 font-sans text-caption text-muted-foreground", className),
73
+ className: cn2("ml-auto shrink-0 font-sans text-caption text-muted-foreground", className),
74
74
  ...props
75
75
  });
76
76
  }
@@ -82,15 +82,15 @@ function CommandRow({
82
82
  const registerItem = useContext(CommandRows);
83
83
  const active = useContext(CommandHighlight) === index;
84
84
  const ref = useRef(null);
85
- const size = useSize();
86
- useRegisterFluidHoverItem(registerItem, index, ref);
85
+ const size = useSize2();
86
+ useRegisterFluidHoverItem2(registerItem, index, ref);
87
87
  const Icon = item.icon;
88
88
  return /* @__PURE__ */ jsxs(Autocomplete.Item, {
89
89
  ref,
90
90
  value: item,
91
91
  disabled: item.disabled,
92
92
  onClick: () => onPick(item),
93
- className: cn("relative z-10 flex shrink-0 cursor-pointer select-none items-center outline-none transition-[color] duration-fast", "data-[disabled]:pointer-events-none data-[disabled]:opacity-50", size.control, size.gap, size.itemPx, size.text, listShape.item, active ? "text-foreground" : "text-muted-foreground"),
93
+ className: cn2("relative z-10 flex shrink-0 cursor-pointer select-none items-center outline-none transition-[color] duration-fast", "data-[disabled]:pointer-events-none data-[disabled]:opacity-50", size.control, size.gap, size.itemPx, size.text, listShape.item, active ? "text-foreground" : "text-muted-foreground"),
94
94
  children: [
95
95
  Icon && /* @__PURE__ */ jsx(Icon, {
96
96
  size: size.icon,
@@ -101,30 +101,30 @@ function CommandRow({
101
101
  className: "min-w-0 flex-1 truncate [text-box:trim-both_cap_alphabetic] py-1 -my-1",
102
102
  children: item.label
103
103
  }),
104
- item.shortcut && /* @__PURE__ */ jsx(CommandShortcut, {
104
+ item.shortcut && /* @__PURE__ */ jsx(CommandShortcut2, {
105
105
  children: item.shortcut
106
106
  })
107
107
  ]
108
108
  });
109
109
  }
110
- function CommandList({ onPick, emptyMessage, className }) {
110
+ function CommandList2({ onPick, emptyMessage, className }) {
111
111
  const filtered = Autocomplete.useFilteredItems();
112
112
  const highlight = useContext(CommandHighlight);
113
- const compact = useSize().variant === "compact";
113
+ const compact = useSize2().variant === "compact";
114
114
  const containerRef = useRef(null);
115
- const { itemRects, isMeasured, registerItem } = useFluidHover(containerRef, { isItemDisabled: isDisabledRow });
115
+ const { itemRects, isMeasured, registerItem } = useFluidHover2(containerRef, { isItemDisabled: isDisabledRow });
116
116
  const rect = isMeasured && highlight !== null ? itemRects[highlight] ?? null : null;
117
- const rows = (items, start2) => items.map((item, i) => /* @__PURE__ */ jsx(CommandRow, {
117
+ const rows = (items, start) => items.map((item, i) => /* @__PURE__ */ jsx(CommandRow, {
118
118
  item,
119
- index: start2 + i,
119
+ index: start + i,
120
120
  onPick
121
121
  }, item.label));
122
122
  let start = 0;
123
123
  return /* @__PURE__ */ jsx(CommandRows.Provider, {
124
124
  value: registerItem,
125
- children: /* @__PURE__ */ jsxs(ScrollArea, {
126
- className: cn(popupScrollAreaClass, className),
127
- viewportClassName: cn(popupViewportClass, "scroll-fade"),
125
+ children: /* @__PURE__ */ jsxs(ScrollArea2, {
126
+ className: cn2(popupScrollAreaClass, className),
127
+ viewportClassName: cn2(popupViewportClass, "scroll-fade"),
128
128
  children: [
129
129
  /* @__PURE__ */ jsx(Autocomplete.Empty, {
130
130
  className: "px-4 py-6 text-center text-body text-muted-foreground empty:hidden",
@@ -134,7 +134,7 @@ function CommandList({ onPick, emptyMessage, className }) {
134
134
  ref: containerRef,
135
135
  className: "relative flex flex-col p-1 outline-none data-[empty]:p-0",
136
136
  children: [
137
- /* @__PURE__ */ jsx(FluidHoverHighlight, {
137
+ /* @__PURE__ */ jsx(FluidHoverHighlight2, {
138
138
  rect,
139
139
  session: 0,
140
140
  className: listShape.bg
@@ -146,7 +146,7 @@ function CommandList({ onPick, emptyMessage, className }) {
146
146
  className: "flex flex-col",
147
147
  children: [
148
148
  /* @__PURE__ */ jsx(Autocomplete.GroupLabel, {
149
- className: cn("shrink-0 px-2 pt-2 pb-1 text-muted-foreground", compact ? "text-caption-compact" : "text-caption"),
149
+ className: cn2("shrink-0 px-2 pt-2 pb-1 text-muted-foreground", compact ? "text-caption-compact" : "text-caption"),
150
150
  children: group.label
151
151
  }),
152
152
  rows(group.items, first)
@@ -159,7 +159,7 @@ function CommandList({ onPick, emptyMessage, className }) {
159
159
  })
160
160
  });
161
161
  }
162
- function CommandPalette({
162
+ function CommandPalette2({
163
163
  items,
164
164
  placeholder = "Type a command or search…",
165
165
  emptyMessage = "No results found.",
@@ -167,9 +167,9 @@ function CommandPalette({
167
167
  }) {
168
168
  const { close } = useContext(CommandContext);
169
169
  const SearchIcon = useIcon("search");
170
- const size = useSize();
170
+ const size = useSize2();
171
171
  const [query, setQuery] = useState("");
172
- return /* @__PURE__ */ jsx(CommandListRoot, {
172
+ return /* @__PURE__ */ jsx(CommandListRoot2, {
173
173
  items,
174
174
  inline: true,
175
175
  open: true,
@@ -182,7 +182,7 @@ function CommandPalette({
182
182
  setQuery(next);
183
183
  },
184
184
  children: /* @__PURE__ */ jsxs("div", {
185
- className: cn("flex flex-col", className),
185
+ className: cn2("flex flex-col", className),
186
186
  children: [
187
187
  /* @__PURE__ */ jsxs("div", {
188
188
  className: "flex h-12 shrink-0 items-center gap-2 border-b border-border px-4",
@@ -194,11 +194,11 @@ function CommandPalette({
194
194
  }),
195
195
  /* @__PURE__ */ jsx(Autocomplete.Input, {
196
196
  placeholder,
197
- className: cn("h-full min-w-0 flex-1 bg-transparent text-foreground outline-none placeholder:text-muted-foreground", size.text)
197
+ className: cn2("h-full min-w-0 flex-1 bg-transparent text-foreground outline-none placeholder:text-muted-foreground", size.text)
198
198
  })
199
199
  ]
200
200
  }),
201
- /* @__PURE__ */ jsx(CommandList, {
201
+ /* @__PURE__ */ jsx(CommandList2, {
202
202
  emptyMessage,
203
203
  className: "max-h-80",
204
204
  onPick: (item) => {
@@ -210,18 +210,18 @@ function CommandPalette({
210
210
  })
211
211
  });
212
212
  }
213
- var CommandTrigger = forwardRef((props, ref) => {
213
+ var CommandTrigger2 = forwardRef((props, ref) => {
214
214
  const { trigger } = useContext(CommandContext);
215
215
  useImperativeHandle(ref, () => trigger.current);
216
- return /* @__PURE__ */ jsx(DialogTrigger, {
216
+ return /* @__PURE__ */ jsx(DialogTrigger2, {
217
217
  ref: trigger,
218
218
  ...props
219
219
  });
220
220
  });
221
- CommandTrigger.displayName = "CommandTrigger";
222
- var CommandContent = forwardRef(({ items, placeholder, emptyMessage, className, label = "Command menu", ...morph }, ref) => {
221
+ CommandTrigger2.displayName = "CommandTrigger";
222
+ var CommandContent2 = forwardRef(({ items, placeholder, emptyMessage, className, label = "Command menu", ...morph }, ref) => {
223
223
  const { session } = useContext(CommandContext);
224
- return /* @__PURE__ */ jsx(DialogContent, {
224
+ return /* @__PURE__ */ jsx(DialogContent2, {
225
225
  ref,
226
226
  position: "top",
227
227
  size: "lg",
@@ -229,7 +229,7 @@ var CommandContent = forwardRef(({ items, placeholder, emptyMessage, className,
229
229
  "aria-label": label,
230
230
  className: "p-0",
231
231
  ...morph,
232
- children: /* @__PURE__ */ jsx(CommandPalette, {
232
+ children: /* @__PURE__ */ jsx(CommandPalette2, {
233
233
  items,
234
234
  placeholder,
235
235
  emptyMessage,
@@ -237,7 +237,7 @@ var CommandContent = forwardRef(({ items, placeholder, emptyMessage, className,
237
237
  }, session)
238
238
  });
239
239
  });
240
- CommandContent.displayName = "CommandContent";
240
+ CommandContent2.displayName = "CommandContent";
241
241
  function CommandScope({ open, onOpenChange, hotkey, children }) {
242
242
  const trigger = useRef(null);
243
243
  const change = useRef(onOpenChange);
@@ -271,8 +271,8 @@ function CommandScope({ open, onOpenChange, hotkey, children }) {
271
271
  })
272
272
  });
273
273
  }
274
- function Command({ open, defaultOpen, onOpenChange, hotkey = "k", children }) {
275
- return /* @__PURE__ */ jsx(DialogState, {
274
+ function Command2({ open, defaultOpen, onOpenChange, hotkey = "k", children }) {
275
+ return /* @__PURE__ */ jsx(DialogState2, {
276
276
  open,
277
277
  defaultOpen,
278
278
  onOpenChange,
@@ -283,10 +283,10 @@ function Command({ open, defaultOpen, onOpenChange, hotkey = "k", children }) {
283
283
  })
284
284
  });
285
285
  }
286
- Command.Trigger = CommandTrigger;
287
- Command.Content = CommandContent;
288
- Command.Palette = CommandPalette;
289
- Command.Shortcut = CommandShortcut;
290
- var command_default = Command;
286
+ Command2.Trigger = CommandTrigger2;
287
+ Command2.Content = CommandContent2;
288
+ Command2.Palette = CommandPalette2;
289
+ Command2.Shortcut = CommandShortcut2;
290
+ var command_default = Command2;
291
291
 
292
- export { CommandListRoot, CommandShortcut, CommandList, CommandPalette, CommandTrigger, CommandContent, Command, command_default };
292
+ export { CommandListRoot2, CommandShortcut2, CommandList2, CommandPalette2, CommandTrigger2, CommandContent2, Command2, command_default };
@@ -1,26 +1,26 @@
1
1
  import {
2
- PickerInput,
3
- PickerShell
4
- } from "./components-hzfp4tjb.js";
5
- import {
6
- ScrollColumn,
7
2
  defaultLocale,
8
- dividedColumns,
3
+ parseMonthText,
9
4
  fieldLabel,
10
- parseMonthText
11
- } from "./components-x2xyckd5.js";
5
+ dividedColumns,
6
+ ScrollColumn
7
+ } from "./components-gz8zf3ec.js";
8
+ import {
9
+ cn2
10
+ } from "./components-ezxhrmer.js";
12
11
  import {
13
12
  useControllableState
14
- } from "./components-dg0w8g5p.js";
13
+ } from "./components-n7mjr357.js";
15
14
  import {
16
- cn
17
- } from "./components-0f0as45n.js";
15
+ PickerShell,
16
+ PickerInput
17
+ } from "./components-7btqt08d.js";
18
18
 
19
19
  // components/inputs/date-time/month-picker/index.tsx
20
20
  import { addYears, endOfYear, format, startOfMonth, startOfYear } from "date-fns";
21
21
  import { useMemo, useRef } from "react";
22
22
  import { jsx, jsxs } from "react/jsx-runtime";
23
- function MonthPicker({
23
+ function MonthPicker2({
24
24
  value: valueProp,
25
25
  defaultValue = null,
26
26
  onValueChange,
@@ -97,7 +97,7 @@ function MonthPicker({
97
97
  tier,
98
98
  className,
99
99
  children: /* @__PURE__ */ jsxs("div", {
100
- className: cn(dividedColumns, "h-56"),
100
+ className: cn2(dividedColumns, "h-56"),
101
101
  children: [
102
102
  /* @__PURE__ */ jsx(ScrollColumn, {
103
103
  label: fieldLabel(locale, "month"),
@@ -119,6 +119,6 @@ function MonthPicker({
119
119
  })
120
120
  });
121
121
  }
122
- var month_picker_default = MonthPicker;
122
+ var month_picker_default = MonthPicker2;
123
123
 
124
- export { MonthPicker, month_picker_default };
124
+ export { MonthPicker2, month_picker_default };
@@ -1,27 +1,27 @@
1
- import {
2
- SURFACE_BG,
3
- SURFACE_SHADOW,
4
- SurfaceProvider,
5
- useSurface
6
- } from "./components-csxz9f52.js";
7
1
  import {
8
2
  MorphSurface
9
- } from "./components-jxgznftn.js";
3
+ } from "./components-0q0sqfh4.js";
10
4
  import {
11
- useShape
12
- } from "./components-7zp99w5d.js";
5
+ opensInPlace,
6
+ inPlaceOffset,
7
+ useMorphOrigin,
8
+ useMorph
9
+ } from "./components-hqeq3w9q.js";
13
10
  import {
14
- useControllableState
15
- } from "./components-dg0w8g5p.js";
11
+ cn2
12
+ } from "./components-ezxhrmer.js";
16
13
  import {
17
- inPlaceOffset,
18
- opensInPlace,
19
- useMorph,
20
- useMorphOrigin
21
- } from "./components-7nww01w4.js";
14
+ useShape
15
+ } from "./components-cv16mryv.js";
22
16
  import {
23
- cn
24
- } from "./components-0f0as45n.js";
17
+ SURFACE_BG,
18
+ SURFACE_SHADOW,
19
+ useSurface2,
20
+ SurfaceProvider2
21
+ } from "./components-zx6b6yby.js";
22
+ import {
23
+ useControllableState
24
+ } from "./components-n7mjr357.js";
25
25
 
26
26
  // components/overlays/preview-card/index.tsx
27
27
  import { PreviewCard as PreviewCardPrimitive } from "@base-ui/react/preview-card";
@@ -34,14 +34,14 @@ import {
34
34
  } from "react";
35
35
  import { jsx } from "react/jsx-runtime";
36
36
  var PreviewCardContext = createContext({ open: false, origin: { current: {} } });
37
- var PreviewCardTrigger = forwardRef(({ render, className, ...props }, ref) => /* @__PURE__ */ jsx(PreviewCardPrimitive.Trigger, {
37
+ var PreviewCardTrigger2 = forwardRef(({ render, className, ...props }, ref) => /* @__PURE__ */ jsx(PreviewCardPrimitive.Trigger, {
38
38
  ref,
39
39
  render,
40
- className: cn(!render && "weight-medium text-foreground underline decoration-border underline-offset-4 transition-colors duration-fast hover:decoration-foreground", className),
40
+ className: cn2(!render && "weight-medium text-foreground underline decoration-border underline-offset-4 transition-colors duration-fast hover:decoration-foreground", className),
41
41
  ...props
42
42
  }));
43
- PreviewCardTrigger.displayName = "PreviewCardTrigger";
44
- var PreviewCardContent = forwardRef(({
43
+ PreviewCardTrigger2.displayName = "PreviewCardTrigger";
44
+ var PreviewCardContent2 = forwardRef(({
45
45
  side = "bottom",
46
46
  align,
47
47
  sideOffset = 12,
@@ -59,7 +59,7 @@ var PreviewCardContent = forwardRef(({
59
59
  const inPlace = opensInPlace({ effect, hideSource });
60
60
  useImperativeHandle(ref, () => morph.popup, [morph.popup]);
61
61
  const shape = useShape();
62
- const level = Math.min(useSurface() + 2, 8);
62
+ const level = Math.min(useSurface2() + 2, 8);
63
63
  return /* @__PURE__ */ jsx(PreviewCardPrimitive.Portal, {
64
64
  container: container ?? undefined,
65
65
  children: /* @__PURE__ */ jsx(PreviewCardPrimitive.Positioner, {
@@ -71,14 +71,14 @@ var PreviewCardContent = forwardRef(({
71
71
  ref: morph.popupRef,
72
72
  className: "relative outline-none",
73
73
  ...props,
74
- children: /* @__PURE__ */ jsx(SurfaceProvider, {
74
+ children: /* @__PURE__ */ jsx(SurfaceProvider2, {
75
75
  value: level,
76
76
  children: /* @__PURE__ */ jsx(MorphSurface, {
77
77
  morph,
78
78
  bg: SURFACE_BG[level],
79
79
  shadow: SURFACE_SHADOW[3],
80
80
  radius: shape.container,
81
- className: cn("flex w-max max-w-[min(92vw,20rem)] flex-col gap-3 p-4", className),
81
+ className: cn2("flex w-max max-w-[min(92vw,20rem)] flex-col gap-3 p-4", className),
82
82
  children
83
83
  })
84
84
  })
@@ -86,8 +86,8 @@ var PreviewCardContent = forwardRef(({
86
86
  })
87
87
  });
88
88
  });
89
- PreviewCardContent.displayName = "PreviewCardContent";
90
- function PreviewCard({ open, defaultOpen = false, onOpenChange, children }) {
89
+ PreviewCardContent2.displayName = "PreviewCardContent";
90
+ function PreviewCard2({ open, defaultOpen = false, onOpenChange, children }) {
91
91
  const [current, setCurrent] = useControllableState(open, defaultOpen, onOpenChange);
92
92
  const { origin, capture } = useMorphOrigin();
93
93
  const ctx = useMemo(() => ({ open: current, origin }), [current, origin]);
@@ -104,8 +104,8 @@ function PreviewCard({ open, defaultOpen = false, onOpenChange, children }) {
104
104
  })
105
105
  });
106
106
  }
107
- PreviewCard.Trigger = PreviewCardTrigger;
108
- PreviewCard.Content = PreviewCardContent;
109
- var preview_card_default = PreviewCard;
107
+ PreviewCard2.Trigger = PreviewCardTrigger2;
108
+ PreviewCard2.Content = PreviewCardContent2;
109
+ var preview_card_default = PreviewCard2;
110
110
 
111
- export { PreviewCardTrigger, PreviewCardContent, PreviewCard, preview_card_default };
111
+ export { PreviewCardTrigger2, PreviewCardContent2, PreviewCard2, preview_card_default };
@@ -34,9 +34,9 @@ function pickNearest({
34
34
  if (point.x >= left && point.x <= left + width && point.y >= top && point.y <= top + height) {
35
35
  containingIndex = index;
36
36
  }
37
- const distance2 = Math.hypot(point.x - (left + width / 2), point.y - (top + height / 2));
38
- if (distance2 < closestDistance) {
39
- closestDistance = distance2;
37
+ const distance = Math.hypot(point.x - (left + width / 2), point.y - (top + height / 2));
38
+ if (distance < closestDistance) {
39
+ closestDistance = distance;
40
40
  closestIndex = index;
41
41
  }
42
42
  continue;
@@ -67,7 +67,7 @@ function resolveActivator(element) {
67
67
  return element.querySelector(ACTIVATOR_SELECTOR) ?? element;
68
68
  }
69
69
  var measurementAttempts = 3;
70
- function useFluidHover(containerRef, options = {}) {
70
+ function useFluidHover2(containerRef, options = {}) {
71
71
  const { axis = "y", isItemDisabled, gapClick = true } = options;
72
72
  const gapClickMaxDistance = typeof gapClick === "object" ? gapClick.maxDistance ?? Infinity : Infinity;
73
73
  const itemsRef = useRef(new Map);
@@ -223,8 +223,8 @@ function useFluidHover(containerRef, options = {}) {
223
223
  const target = e.target;
224
224
  if (!target)
225
225
  return;
226
- for (const element2 of itemsRef.current.values()) {
227
- if (element2.contains(target))
226
+ for (const element of itemsRef.current.values()) {
227
+ if (element.contains(target))
228
228
  return;
229
229
  }
230
230
  if (!target.isConnected)
@@ -286,7 +286,7 @@ function useFluidHover(containerRef, options = {}) {
286
286
  measureItems
287
287
  };
288
288
  }
289
- function useRegisterFluidHoverItem(registerItem, index, ref) {
289
+ function useRegisterFluidHoverItem2(registerItem, index, ref) {
290
290
  useEffect(() => {
291
291
  if (!registerItem || index === undefined)
292
292
  return;
@@ -295,4 +295,4 @@ function useRegisterFluidHoverItem(registerItem, index, ref) {
295
295
  }, [index, registerItem, ref]);
296
296
  }
297
297
 
298
- export { useFluidHover, useRegisterFluidHoverItem };
298
+ export { useFluidHover2, useRegisterFluidHoverItem2 };
@@ -1,22 +1,22 @@
1
1
  import {
2
- GooLayer,
3
- union
4
- } from "./components-kf2ehztc.js";
2
+ useReduceMotion
3
+ } from "./components-men63rwj.js";
5
4
  import {
6
5
  GOO_BLUR_RATIO
7
- } from "./components-7nww01w4.js";
6
+ } from "./components-hqeq3w9q.js";
8
7
  import {
9
- useReduceMotion
10
- } from "./components-nnnd2xef.js";
8
+ union,
9
+ GooLayer
10
+ } from "./components-chacnk61.js";
11
11
  import {
12
- spring
13
- } from "./components-vc1k7yv2.js";
12
+ spring2
13
+ } from "./components-1v7rxytx.js";
14
14
 
15
15
  // lib/use-merge-split.tsx
16
16
  import { AnimatePresence, motion } from "motion/react";
17
17
  import { useEffect, useLayoutEffect, useRef, useState } from "react";
18
18
  import { jsx } from "react/jsx-runtime";
19
- var mergeSpring = spring.moderate;
19
+ var mergeSpring = spring2.moderate;
20
20
  var settleMs = mergeSpring.duration * 1000 + 80;
21
21
  var SEED = 0.5;
22
22
  function useSelectionRuns(checkedIndices) {
@@ -150,7 +150,7 @@ function SelectionBackgrounds({ blocks }) {
150
150
  initial: mode === "snap" ? false : "enter",
151
151
  animate: "rest",
152
152
  exit: "leave",
153
- transition: mode === "snap" ? { duration: 0 } : { ...mergeSpring, opacity: { duration: spring.fast.duration } }
153
+ transition: mode === "snap" ? { duration: 0 } : { ...mergeSpring, opacity: { duration: spring2.fast.duration } }
154
154
  }, b.key))
155
155
  })
156
156
  });