@justanarthur/modo-ui 2.1.0 → 2.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 (204) hide show
  1. package/blocks/desktop-shell/index.tsx +2 -1
  2. package/components/inputs/checkbox/index.tsx +5 -0
  3. package/components/inputs/combobox/index.tsx +9 -4
  4. package/components/inputs/radio/index.tsx +5 -0
  5. package/components/inputs/select/index.tsx +23 -3
  6. package/components/inputs/slider/comfortable.tsx +10 -4
  7. package/components/inputs/slider/compact.tsx +153 -71
  8. package/components/inputs/slider/examples.mdx +24 -0
  9. package/components/inputs/slider/geometry.ts +18 -6
  10. package/components/inputs/slider/index.tsx +30 -8
  11. package/components/inputs/slider/value-display.tsx +16 -9
  12. package/components/inputs/switch/index.tsx +5 -0
  13. package/components/inputs/textarea/examples.mdx +19 -0
  14. package/components/inputs/textarea/index.tsx +42 -5
  15. package/components/navigation/sidebar/sidebar-group.tsx +2 -1
  16. package/components/navigation/sidebar/sidebar-menu-sub.tsx +2 -1
  17. package/components/navigation/sidebar/sidebar-shell.tsx +2 -1
  18. package/components/navigation/tree/index.tsx +2 -1
  19. package/components/overlays/dropdown/index.tsx +50 -8
  20. package/components/overlays/dropdown/submenu.tsx +41 -10
  21. package/components/overlays/tooltip/examples.mdx +13 -0
  22. package/components/overlays/tooltip/index.tsx +58 -16
  23. package/dist/blocks/desktop-shell/index.js +28 -27
  24. package/dist/blocks/sidebar-app/index.js +38 -37
  25. package/dist/components/actions/button/index.js +4 -4
  26. package/dist/components/actions/copy/index.js +12 -12
  27. package/dist/components/containers/accordion/index.d.ts +1 -1
  28. package/dist/components/containers/accordion/index.js +16 -16
  29. package/dist/components/containers/card/index.js +14 -14
  30. package/dist/components/data-display/avatar/index.js +3 -3
  31. package/dist/components/data-display/badge/index.js +2 -2
  32. package/dist/components/data-display/diff/index.js +4 -4
  33. package/dist/components/data-display/list/index.js +3 -3
  34. package/dist/components/data-display/log-view/index.js +8 -8
  35. package/dist/components/data-display/markdown/index.js +15 -15
  36. package/dist/components/data-display/table/index.js +9 -9
  37. package/dist/components/feedback/empty-state/index.js +3 -3
  38. package/dist/components/feedback/meter/index.js +2 -2
  39. package/dist/components/feedback/progress/index.js +2 -2
  40. package/dist/components/inputs/checkbox/index.d.ts +2 -0
  41. package/dist/components/inputs/checkbox/index.js +13 -13
  42. package/dist/components/inputs/choice-list/index.js +10 -10
  43. package/dist/components/inputs/color-picker/index.js +22 -22
  44. package/dist/components/inputs/combobox/index.d.ts +1 -1
  45. package/dist/components/inputs/combobox/index.js +21 -21
  46. package/dist/components/inputs/date-time/calendar/index.js +9 -9
  47. package/dist/components/inputs/date-time/date-picker/index.js +28 -28
  48. package/dist/components/inputs/date-time/date-range-picker/index.js +28 -28
  49. package/dist/components/inputs/date-time/duration-picker/index.js +27 -27
  50. package/dist/components/inputs/date-time/month-picker/index.js +26 -26
  51. package/dist/components/inputs/date-time/time-picker/index.js +27 -27
  52. package/dist/components/inputs/editable-text/index.js +2 -2
  53. package/dist/components/inputs/field/index.js +5 -5
  54. package/dist/components/inputs/file-dropzone/index.js +8 -8
  55. package/dist/components/inputs/input/index.js +6 -6
  56. package/dist/components/inputs/key-value/index.js +12 -12
  57. package/dist/components/inputs/number-input/index.js +7 -7
  58. package/dist/components/inputs/radio/index.d.ts +2 -0
  59. package/dist/components/inputs/radio/index.js +12 -12
  60. package/dist/components/inputs/search/index.js +23 -23
  61. package/dist/components/inputs/select/index.d.ts +22 -4
  62. package/dist/components/inputs/select/index.js +22 -22
  63. package/dist/components/inputs/slider/index.d.ts +12 -3
  64. package/dist/components/inputs/slider/index.js +4 -4
  65. package/dist/components/inputs/switch/index.d.ts +2 -0
  66. package/dist/components/inputs/switch/index.js +9 -9
  67. package/dist/components/inputs/textarea/index.d.ts +8 -1
  68. package/dist/components/inputs/textarea/index.js +4 -4
  69. package/dist/components/navigation/breadcrumb/index.js +25 -25
  70. package/dist/components/navigation/navigation-menu/index.js +17 -17
  71. package/dist/components/navigation/pagination/index.js +16 -16
  72. package/dist/components/navigation/sidebar/index.js +26 -25
  73. package/dist/components/navigation/tabs/index.js +13 -13
  74. package/dist/components/navigation/tree/index.js +10 -9
  75. package/dist/components/overlays/alert-dialog/index.d.ts +3 -3
  76. package/dist/components/overlays/alert-dialog/index.js +15 -15
  77. package/dist/components/overlays/command/index.d.ts +1 -1
  78. package/dist/components/overlays/command/index.js +21 -21
  79. package/dist/components/overlays/context-menu/index.d.ts +20 -1
  80. package/dist/components/overlays/context-menu/index.js +25 -25
  81. package/dist/components/overlays/dialog/index.d.ts +3 -3
  82. package/dist/components/overlays/dialog/index.js +14 -14
  83. package/dist/components/overlays/dropdown/index.d.ts +30 -8
  84. package/dist/components/overlays/dropdown/index.js +24 -24
  85. package/dist/components/overlays/lightbox/index.js +12 -12
  86. package/dist/components/overlays/popover/index.d.ts +6 -6
  87. package/dist/components/overlays/popover/index.js +11 -11
  88. package/dist/components/overlays/preview-card/index.js +10 -10
  89. package/dist/components/overlays/sheet/index.d.ts +3 -3
  90. package/dist/components/overlays/sheet/index.js +15 -15
  91. package/dist/components/overlays/toast/index.d.ts +1 -1
  92. package/dist/components/overlays/toast/index.js +11 -11
  93. package/dist/components/overlays/tooltip/index.d.ts +35 -10
  94. package/dist/components/overlays/tooltip/index.js +8 -8
  95. package/dist/docs/index.js +18 -17
  96. package/dist/index.d.ts +88 -36
  97. package/dist/index.js +78 -77
  98. package/dist/lib/fluid-hover-highlight.js +4 -4
  99. package/dist/lib/focus-ring.js +2 -2
  100. package/dist/lib/goo-indicator.js +3 -3
  101. package/dist/lib/inert.d.ts +7 -0
  102. package/dist/lib/inert.js +6 -0
  103. package/dist/lib/morph-layers.js +4 -4
  104. package/dist/lib/morph-part.js +2 -2
  105. package/dist/lib/overlay.d.ts +20 -13
  106. package/dist/lib/overlay.js +5 -4
  107. package/dist/lib/popup-rows.js +2 -2
  108. package/dist/lib/popup-surface.js +7 -7
  109. package/dist/lib/scroll-column.js +6 -6
  110. package/dist/lib/slot.d.ts +5 -2
  111. package/dist/lib/slot.js +1 -1
  112. package/dist/lib/use-merge-split.js +4 -4
  113. package/dist/lib/use-morph.js +2 -2
  114. package/dist/primitives/content/code/index.js +3 -3
  115. package/dist/primitives/layout/resizable/index.js +2 -2
  116. package/dist/primitives/layout/sortable/index.js +5 -5
  117. package/dist/primitives/systems/craft/index.js +3 -3
  118. package/dist/primitives/systems/fluid-hover/index.js +6 -6
  119. package/dist/primitives/systems/morph/index.js +14 -14
  120. package/dist/primitives/systems/motion/index.js +7 -7
  121. package/dist/primitives/systems/sizes/index.js +2 -2
  122. package/dist/shared/{components-280grw6q.js → components-09n5hgmx.js} +2 -2
  123. package/dist/shared/{components-1f3a7gmg.js → components-151vndgm.js} +3 -3
  124. package/dist/shared/{components-14wzcym0.js → components-16wx5av1.js} +6 -6
  125. package/dist/shared/{components-yf2gtq68.js → components-19e2wpxc.js} +9 -6
  126. package/dist/shared/{components-rzy6h7s4.js → components-1nqp7wqr.js} +1 -1
  127. package/dist/shared/components-2myjk2zf.js +8 -0
  128. package/dist/shared/{components-9rebr89j.js → components-2q0m4mxf.js} +2 -2
  129. package/dist/shared/{components-1asw2ph0.js → components-2zr49v82.js} +3 -3
  130. package/dist/shared/{components-wq9hrera.js → components-313rmbxy.js} +2 -2
  131. package/dist/shared/{components-0h2mng6m.js → components-31pkxwfz.js} +1 -1
  132. package/dist/shared/{components-w2at9ntm.js → components-3cvwrzc1.js} +3 -3
  133. package/dist/shared/{components-n0gbyp5a.js → components-4xd21p2p.js} +6 -6
  134. package/dist/shared/{components-t0c1rw40.js → components-7v6869ga.js} +1 -1
  135. package/dist/shared/{components-kwxye0an.js → components-7wjkag2j.js} +4 -2
  136. package/dist/shared/{components-fqsgd07c.js → components-85dz3xx3.js} +4 -4
  137. package/dist/shared/{components-3rvrdsa9.js → components-8qkd3659.js} +1 -1
  138. package/dist/shared/{components-me742146.js → components-8qwbwtv9.js} +5 -5
  139. package/dist/shared/{components-nxqrw789.js → components-90sfqz5t.js} +1 -1
  140. package/dist/shared/{components-b9bj65j3.js → components-90y8qwxv.js} +9 -9
  141. package/dist/shared/{components-g35n8tzm.js → components-95kp19zn.js} +1 -1
  142. package/dist/shared/{components-nhmgr5xc.js → components-9e5fpy3v.js} +14 -11
  143. package/dist/shared/{components-a1ms36qq.js → components-9hysh6d3.js} +1 -1
  144. package/dist/shared/{components-hcftn5r8.js → components-9s9vb2w0.js} +7 -4
  145. package/dist/shared/{components-vfreweq3.js → components-a3edrqpb.js} +3 -3
  146. package/dist/shared/{components-ee09xmkh.js → components-afj2ajea.js} +8 -5
  147. package/dist/shared/{components-ev0ytbqb.js → components-ajgwbabq.js} +4 -4
  148. package/dist/shared/{components-62510420.js → components-dr5c27yd.js} +6 -6
  149. package/dist/shared/{components-s90v3jpr.js → components-fqdh9ysk.js} +68 -19
  150. package/dist/shared/{components-2m2hg11x.js → components-gfw4zk8b.js} +8 -8
  151. package/dist/shared/{components-z0kz9rxj.js → components-gvwxswpr.js} +1 -1
  152. package/dist/shared/{components-p32aqk3q.js → components-h9se5cz5.js} +110 -73
  153. package/dist/shared/{components-77gxngmc.js → components-jd21f3mb.js} +8 -8
  154. package/dist/shared/{components-xnkc892z.js → components-mamtvenk.js} +2 -2
  155. package/dist/shared/{components-1hga6pkn.js → components-mcnyaaep.js} +3 -3
  156. package/dist/shared/{components-h0x2pj2y.js → components-mpx3yq5c.js} +24 -10
  157. package/dist/shared/{components-j79a6jqa.js → components-nc8wggew.js} +3 -3
  158. package/dist/shared/{components-r5q9gdh4.js → components-nd3f803g.js} +7 -7
  159. package/dist/shared/{components-9ca0c92a.js → components-nehs80xd.js} +1 -1
  160. package/dist/shared/{components-4t2cjav8.js → components-pgs3p035.js} +1 -1
  161. package/dist/shared/{components-91mmbrw3.js → components-ppc2dmxs.js} +2 -2
  162. package/dist/shared/{components-b2kjsn1s.js → components-qc1fae2s.js} +6 -6
  163. package/dist/shared/{components-fmyvz4r2.js → components-qd27dvgj.js} +6 -6
  164. package/dist/shared/{components-9z7bq8gn.js → components-qe8yp3vf.js} +3 -3
  165. package/dist/shared/{components-wx1dcp2n.js → components-qhk2m7fj.js} +2 -2
  166. package/dist/shared/{components-a1mwqxsv.js → components-qkt4h7x4.js} +8 -8
  167. package/dist/shared/{components-6rtawx8y.js → components-qs0cwe8p.js} +10 -10
  168. package/dist/shared/{components-y8m64zdw.js → components-r6ejdtpr.js} +3 -3
  169. package/dist/shared/{components-1bnf96sr.js → components-rj4nnqkz.js} +39 -11
  170. package/dist/shared/{components-gd8gmr6w.js → components-rmhdr4g1.js} +1 -1
  171. package/dist/shared/{components-e7zxwja1.js → components-rts2mggt.js} +1 -1
  172. package/dist/shared/{components-ta4e10mx.js → components-s25rehbv.js} +1 -1
  173. package/dist/shared/{components-chda6b23.js → components-sxstx1x7.js} +33 -4
  174. package/dist/shared/{components-b7p1pjcm.js → components-t4eb37vd.js} +2 -2
  175. package/dist/shared/{components-7xc2dne4.js → components-v3c3madd.js} +2 -2
  176. package/dist/shared/{components-22h8dvt1.js → components-v81eejq6.js} +3 -3
  177. package/dist/shared/{components-w1ysefg1.js → components-veaxns17.js} +2 -2
  178. package/dist/shared/{components-czvraaw9.js → components-vkrp4nb9.js} +4 -4
  179. package/dist/shared/{components-gsstwhtv.js → components-vv420geb.js} +6 -3
  180. package/dist/shared/{components-5xs8pkkj.js → components-w5p7mfb4.js} +1 -1
  181. package/dist/shared/{components-rgng034x.js → components-xvf8jcza.js} +25 -4
  182. package/dist/shared/{components-q7zk70tx.js → components-y07de1qv.js} +1 -1
  183. package/dist/shared/{components-0cpte6s1.js → components-yn8bw8tv.js} +11 -10
  184. package/dist/shared/{components-xa9fvd5b.js → components-z9gc2weg.js} +3 -3
  185. package/dist/shared/{components-twyj2y8c.js → components-zk1tj5za.js} +3 -3
  186. package/dist/shared/{components-hz6armxa.js → components-zktkxnzq.js} +7 -4
  187. package/dist/styles.css +5 -1
  188. package/lib/inert.ts +15 -0
  189. package/lib/overlay.tsx +49 -5
  190. package/lib/slot.tsx +9 -3
  191. package/package.json +6 -1
  192. /package/dist/shared/{components-jw45ck66.js → components-02683eqd.js} +0 -0
  193. /package/dist/shared/{components-q0hs5rqn.js → components-6c52v58g.js} +0 -0
  194. /package/dist/shared/{components-y4gsk1jt.js → components-fa61vwag.js} +0 -0
  195. /package/dist/shared/{components-nz14rwtd.js → components-ffng9rpa.js} +0 -0
  196. /package/dist/shared/{components-knryyjme.js → components-hbqyf35a.js} +0 -0
  197. /package/dist/shared/{components-7mj5wsv3.js → components-k9qbcmaa.js} +0 -0
  198. /package/dist/shared/{components-8pnvkrbw.js → components-mp7en54n.js} +0 -0
  199. /package/dist/shared/{components-h8v9nh5r.js → components-pbx77hzb.js} +0 -0
  200. /package/dist/shared/{components-c515d6xr.js → components-v1m0xjbw.js} +0 -0
  201. /package/dist/shared/{components-pa43g2r2.js → components-wddr0r6a.js} +0 -0
  202. /package/dist/shared/{components-ymq8tbq9.js → components-wqac4434.js} +0 -0
  203. /package/dist/shared/{components-m3vxpz2z.js → components-yy0a9b02.js} +0 -0
  204. /package/dist/shared/{components-92mvpt9h.js → components-zwgxvktt.js} +0 -0
@@ -5,7 +5,7 @@ import {
5
5
  } from "./components-xnp09586.js";
6
6
  import {
7
7
  FluidHoverHighlight2
8
- } from "./components-g35n8tzm.js";
8
+ } from "./components-95kp19zn.js";
9
9
  import {
10
10
  useIcon2
11
11
  } from "./components-jnhpgpfk.js";
@@ -23,7 +23,7 @@ import {
23
23
  rowLabelClass2,
24
24
  RowIcon2,
25
25
  PopupLabel2
26
- } from "./components-q0hs5rqn.js";
26
+ } from "./components-6c52v58g.js";
27
27
  import {
28
28
  useFluidHover2,
29
29
  useRegisterFluidHoverItem2
@@ -35,7 +35,7 @@ import {
35
35
  DialogTrigger2,
36
36
  DialogContent2,
37
37
  DialogState2
38
- } from "./components-b9bj65j3.js";
38
+ } from "./components-90y8qwxv.js";
39
39
 
40
40
  // components/overlays/command/index.tsx
41
41
  import { Autocomplete } from "@base-ui/react/autocomplete";
@@ -5,23 +5,23 @@ import {
5
5
  } from "./components-bkwjvvkh.js";
6
6
  import {
7
7
  useMorph2
8
- } from "./components-8pnvkrbw.js";
8
+ } from "./components-mp7en54n.js";
9
+ import {
10
+ cn2
11
+ } from "./components-xnp09586.js";
9
12
  import {
10
13
  OverlayContext2,
11
14
  useOverlayRoot2,
12
15
  useOverlay2,
13
16
  positionerProps2,
14
17
  usePortalContainer2
15
- } from "./components-rgng034x.js";
16
- import {
17
- cn2
18
- } from "./components-xnp09586.js";
18
+ } from "./components-xvf8jcza.js";
19
19
  import {
20
20
  PopupSurface2
21
- } from "./components-nxqrw789.js";
21
+ } from "./components-90sfqz5t.js";
22
22
  import {
23
23
  slotPart2
24
- } from "./components-kwxye0an.js";
24
+ } from "./components-7wjkag2j.js";
25
25
 
26
26
  // components/overlays/popover/index.tsx
27
27
  import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
@@ -24,7 +24,7 @@ import {
24
24
  } from "./components-bkwjvvkh.js";
25
25
  import {
26
26
  InputAdornment2
27
- } from "./components-q7zk70tx.js";
27
+ } from "./components-y07de1qv.js";
28
28
 
29
29
  // components/inputs/number-input/index.tsx
30
30
  import { NumberField } from "@base-ui/react/number-field";
@@ -11,7 +11,7 @@ import {
11
11
  } from "./components-xnp09586.js";
12
12
  import {
13
13
  SizeProvider2
14
- } from "./components-nz14rwtd.js";
14
+ } from "./components-ffng9rpa.js";
15
15
 
16
16
  // components/feedback/empty-state/index.tsx
17
17
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -14,10 +14,10 @@ import {
14
14
  } from "./components-1ztgy933.js";
15
15
  import {
16
16
  slotRender2
17
- } from "./components-kwxye0an.js";
17
+ } from "./components-7wjkag2j.js";
18
18
  import {
19
19
  SizeScope2
20
- } from "./components-nz14rwtd.js";
20
+ } from "./components-ffng9rpa.js";
21
21
  import {
22
22
  label_default
23
23
  } from "./components-fpsfr52a.js";
@@ -22,7 +22,7 @@ import {
22
22
  } from "./components-xnp09586.js";
23
23
  import {
24
24
  slotRender2
25
- } from "./components-kwxye0an.js";
25
+ } from "./components-7wjkag2j.js";
26
26
  import {
27
27
  spring2,
28
28
  springEnter2
@@ -39,7 +39,7 @@ import {
39
39
  } from "./components-wwd093xg.js";
40
40
  import {
41
41
  SizeScope2
42
- } from "./components-nz14rwtd.js";
42
+ } from "./components-ffng9rpa.js";
43
43
  import {
44
44
  useReduceMotion2
45
45
  } from "./components-tz0axc0f.js";
@@ -50,19 +50,19 @@ import {
50
50
  } from "./components-pva1wj1r.js";
51
51
  import {
52
52
  GOO_BLUR_RATIO2
53
- } from "./components-8pnvkrbw.js";
53
+ } from "./components-mp7en54n.js";
54
54
  import {
55
55
  GooFilter2
56
- } from "./components-wq9hrera.js";
56
+ } from "./components-313rmbxy.js";
57
57
  import {
58
58
  useIsoLayoutEffect2
59
59
  } from "./components-v2j3jx89.js";
60
60
  import {
61
61
  FluidHoverHighlight2
62
- } from "./components-g35n8tzm.js";
62
+ } from "./components-95kp19zn.js";
63
63
  import {
64
64
  FocusRing2
65
- } from "./components-c515d6xr.js";
65
+ } from "./components-v1m0xjbw.js";
66
66
  import {
67
67
  useRowFocus2
68
68
  } from "./components-vcte8p75.js";
@@ -5,20 +5,20 @@ import {
5
5
  } from "./components-bkwjvvkh.js";
6
6
  import {
7
7
  useMorph2
8
- } from "./components-8pnvkrbw.js";
8
+ } from "./components-mp7en54n.js";
9
+ import {
10
+ cn2
11
+ } from "./components-xnp09586.js";
9
12
  import {
10
13
  OverlayContext2,
11
14
  useOverlayRoot2,
12
15
  useOverlay2,
13
16
  positionerProps2,
14
17
  usePortalContainer2
15
- } from "./components-rgng034x.js";
16
- import {
17
- cn2
18
- } from "./components-xnp09586.js";
18
+ } from "./components-xvf8jcza.js";
19
19
  import {
20
20
  PopupSurface2
21
- } from "./components-nxqrw789.js";
21
+ } from "./components-90sfqz5t.js";
22
22
 
23
23
  // components/overlays/preview-card/index.tsx
24
24
  import { PreviewCard as PreviewCardPrimitive } from "@base-ui/react/preview-card";
@@ -17,13 +17,13 @@ import {
17
17
  } from "./components-pva1wj1r.js";
18
18
  import {
19
19
  GOO_BLUR_RATIO2
20
- } from "./components-8pnvkrbw.js";
20
+ } from "./components-mp7en54n.js";
21
21
  import {
22
22
  cn2
23
23
  } from "./components-xnp09586.js";
24
24
  import {
25
25
  GooFilter2
26
- } from "./components-wq9hrera.js";
26
+ } from "./components-313rmbxy.js";
27
27
  import {
28
28
  useShape2
29
29
  } from "./components-kxpcj2ry.js";
@@ -35,7 +35,7 @@ import {
35
35
  } from "./components-nwa2a9tq.js";
36
36
  import {
37
37
  Tooltip2
38
- } from "./components-1bnf96sr.js";
38
+ } from "./components-rj4nnqkz.js";
39
39
 
40
40
  // components/actions/copy/index.tsx
41
41
  import { AnimatePresence, animate, motion, useMotionValue } from "motion/react";
@@ -15,11 +15,11 @@ import {
15
15
  columnsPopupClass,
16
16
  ColumnsPanel,
17
17
  PickerInput
18
- } from "./components-a1mwqxsv.js";
18
+ } from "./components-qkt4h7x4.js";
19
19
  import {
20
20
  pad,
21
21
  TimeColumns
22
- } from "./components-e7zxwja1.js";
22
+ } from "./components-rts2mggt.js";
23
23
 
24
24
  // components/inputs/date-time/time-picker/index.tsx
25
25
  import { set } from "date-fns";
@@ -22,36 +22,36 @@ import {
22
22
  } from "./components-bkwjvvkh.js";
23
23
  import {
24
24
  useMorph2
25
- } from "./components-8pnvkrbw.js";
25
+ } from "./components-mp7en54n.js";
26
26
  import {
27
27
  OverlayContext2,
28
28
  useOverlayRoot2,
29
29
  useOverlay2,
30
30
  positionerProps2
31
- } from "./components-rgng034x.js";
31
+ } from "./components-xvf8jcza.js";
32
32
  import {
33
33
  PopupSurface2
34
- } from "./components-nxqrw789.js";
34
+ } from "./components-90sfqz5t.js";
35
35
  import {
36
36
  dividedColumns2
37
- } from "./components-ta4e10mx.js";
37
+ } from "./components-s25rehbv.js";
38
38
  import {
39
39
  useIsMobile2
40
40
  } from "./components-8wp8d8q1.js";
41
41
  import {
42
42
  SizeScope2
43
- } from "./components-nz14rwtd.js";
43
+ } from "./components-ffng9rpa.js";
44
44
  import {
45
45
  button_default
46
- } from "./components-0h2mng6m.js";
46
+ } from "./components-31pkxwfz.js";
47
47
  import {
48
48
  sheet_default
49
- } from "./components-62510420.js";
49
+ } from "./components-dr5c27yd.js";
50
50
  import {
51
51
  InputAdornment2,
52
52
  InputAction2,
53
53
  input_default
54
- } from "./components-q7zk70tx.js";
54
+ } from "./components-y07de1qv.js";
55
55
 
56
56
  // components/inputs/date-time/picker-shell.tsx
57
57
  import { Popover } from "@base-ui/react/popover";
@@ -12,38 +12,38 @@ import {
12
12
  import {
13
13
  useMorphOrigin2,
14
14
  useMorph2
15
- } from "./components-8pnvkrbw.js";
15
+ } from "./components-mp7en54n.js";
16
+ import {
17
+ cn2
18
+ } from "./components-xnp09586.js";
16
19
  import {
17
20
  positionerProps2,
18
21
  usePortalContainer2
19
- } from "./components-rgng034x.js";
22
+ } from "./components-xvf8jcza.js";
20
23
  import {
21
24
  POPUP_SHAPE2
22
25
  } from "./components-mse06t0x.js";
23
- import {
24
- cn2
25
- } from "./components-xnp09586.js";
26
26
  import {
27
27
  useShape2
28
28
  } from "./components-kxpcj2ry.js";
29
29
  import {
30
30
  PopupSurface2
31
- } from "./components-nxqrw789.js";
31
+ } from "./components-90sfqz5t.js";
32
32
  import {
33
33
  useSize2
34
34
  } from "./components-znspksk0.js";
35
35
  import {
36
36
  SizeScope2
37
- } from "./components-nz14rwtd.js";
37
+ } from "./components-ffng9rpa.js";
38
38
  import {
39
39
  GooIndicator2
40
- } from "./components-z0kz9rxj.js";
40
+ } from "./components-gvwxswpr.js";
41
41
  import {
42
42
  FluidHoverHighlight2
43
- } from "./components-g35n8tzm.js";
43
+ } from "./components-95kp19zn.js";
44
44
  import {
45
45
  FocusRing2
46
- } from "./components-c515d6xr.js";
46
+ } from "./components-v1m0xjbw.js";
47
47
  import {
48
48
  mergeRefs2,
49
49
  useMergeRefs2
@@ -31,13 +31,13 @@ import {
31
31
  } from "./components-wwd093xg.js";
32
32
  import {
33
33
  SizeScope2
34
- } from "./components-nz14rwtd.js";
34
+ } from "./components-ffng9rpa.js";
35
35
  import {
36
36
  FluidHoverHighlight2
37
- } from "./components-g35n8tzm.js";
37
+ } from "./components-95kp19zn.js";
38
38
  import {
39
39
  button_default
40
- } from "./components-0h2mng6m.js";
40
+ } from "./components-31pkxwfz.js";
41
41
  import {
42
42
  WeightLabel2
43
43
  } from "./components-y09nr7fe.js";
@@ -5,25 +5,25 @@ import {
5
5
  } from "./components-bkwjvvkh.js";
6
6
  import {
7
7
  useMorph2
8
- } from "./components-8pnvkrbw.js";
8
+ } from "./components-mp7en54n.js";
9
9
  import {
10
10
  cn2
11
11
  } from "./components-xnp09586.js";
12
12
  import {
13
13
  MorphSurface2
14
- } from "./components-wq9hrera.js";
14
+ } from "./components-313rmbxy.js";
15
15
  import {
16
16
  useOverlayRoot2,
17
17
  positionerProps2,
18
18
  PortalContainer2,
19
19
  usePortalContainer2
20
- } from "./components-rgng034x.js";
20
+ } from "./components-xvf8jcza.js";
21
21
  import {
22
22
  useShape2
23
23
  } from "./components-kxpcj2ry.js";
24
24
  import {
25
25
  slotRender2
26
- } from "./components-kwxye0an.js";
26
+ } from "./components-7wjkag2j.js";
27
27
 
28
28
  // components/overlays/tooltip/index.tsx
29
29
  import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
@@ -52,12 +52,20 @@ function TooltipPortalContainer2({ value, children }) {
52
52
  });
53
53
  }
54
54
  var TooltipGroupContext = createContext(false);
55
- function TooltipProvider2({ children, delay, delayDuration, skipDelayDuration = 300 }) {
55
+ function TooltipProvider2({
56
+ children,
57
+ delay,
58
+ delayDuration,
59
+ skipDelayDuration = 300,
60
+ timeout,
61
+ closeDelay
62
+ }) {
56
63
  return /* @__PURE__ */ jsx(TooltipGroupContext.Provider, {
57
64
  value: true,
58
65
  children: /* @__PURE__ */ jsx(TooltipPrimitive.Provider, {
59
66
  delay: delay ?? delayDuration ?? DEFAULT_DELAY,
60
- timeout: skipDelayDuration,
67
+ timeout: timeout ?? skipDelayDuration,
68
+ closeDelay,
61
69
  children
62
70
  })
63
71
  });
@@ -74,6 +82,7 @@ function TooltipRoot({
74
82
  defaultOpen,
75
83
  onOpenChange,
76
84
  delayDuration,
85
+ closeDelay,
77
86
  followCursor,
78
87
  children
79
88
  }) {
@@ -86,7 +95,7 @@ function TooltipRoot({
86
95
  if (held && followCursor)
87
96
  followOffset.set(0);
88
97
  }, [held, followCursor, followOffset]);
89
- const state = useMemo(() => ({ open, origin: root.state.origin, handedOff, delayDuration, followCursor, followOffset }), [open, root.state.origin, delayDuration, followCursor, followOffset]);
98
+ const state = useMemo(() => ({ open, origin: root.state.origin, handedOff, delayDuration, closeDelay, followCursor, followOffset }), [open, root.state.origin, delayDuration, closeDelay, followCursor, followOffset]);
90
99
  const tooltip = /* @__PURE__ */ jsx(TooltipStateContext.Provider, {
91
100
  value: state,
92
101
  children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, {
@@ -106,14 +115,20 @@ function TooltipRoot({
106
115
  });
107
116
  }
108
117
  var TooltipTrigger2 = forwardRef(({ render, asChild, children, onPointerMove, ...props }, ref) => {
109
- const { delayDuration, followCursor, followOffset } = useTooltipState("Tooltip.Trigger");
118
+ const { delayDuration, closeDelay, followCursor, followOffset } = useTooltipState("Tooltip.Trigger");
110
119
  const el = slotRender2(render, asChild, children);
111
120
  const follow = (event) => {
112
121
  onPointerMove?.(event);
113
122
  const rect = event.currentTarget.getBoundingClientRect();
114
123
  followOffset.set(followCursor === "y" ? event.clientY - (rect.top + rect.height / 2) : event.clientX - (rect.left + rect.width / 2));
115
124
  };
116
- const shared = { ref, delay: delayDuration, onPointerMove: followCursor ? follow : onPointerMove, ...props };
125
+ const shared = {
126
+ ref,
127
+ delay: delayDuration,
128
+ closeDelay,
129
+ onPointerMove: followCursor ? follow : onPointerMove,
130
+ ...props
131
+ };
117
132
  return el ? /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, {
118
133
  ...shared,
119
134
  render: el
@@ -130,6 +145,10 @@ var TooltipContent2 = forwardRef(({
130
145
  side = "top",
131
146
  align,
132
147
  sideOffset = 8,
148
+ alignOffset,
149
+ collisionPadding,
150
+ collisionBoundary,
151
+ positionerClassName,
133
152
  container,
134
153
  className,
135
154
  contentClassName,
@@ -149,7 +168,7 @@ var TooltipContent2 = forwardRef(({
149
168
  instant: (popup) => handedOff.current || popup.dataset.instant === "delay"
150
169
  });
151
170
  const popupRef = useMergeRefs2(ref, morph.popupRef);
152
- const positioner = positionerProps2({ side, align, sideOffset, effect }, { side: "top", align: "center", sideOffset: 8 });
171
+ const positioner = positionerProps2({ side, align, sideOffset, alignOffset, collisionPadding, collisionBoundary, positionerClassName, effect }, { side: "top", align: "center", sideOffset: 8 });
153
172
  const label = render ? children === undefined ? render : cloneElement(render, undefined, children) : slotRender2(undefined, asChild, children) ?? children;
154
173
  return /* @__PURE__ */ jsx(TooltipPrimitive.Portal, {
155
174
  container: portal,
@@ -182,8 +201,13 @@ var Tooltip2 = Object.assign(function Tooltip({
182
201
  align,
183
202
  sideOffset,
184
203
  container,
204
+ alignOffset,
205
+ collisionPadding,
206
+ collisionBoundary,
207
+ positionerClassName,
185
208
  delay,
186
209
  delayDuration,
210
+ closeDelay,
187
211
  className,
188
212
  contentClassName,
189
213
  open,
@@ -194,7 +218,7 @@ var Tooltip2 = Object.assign(function Tooltip({
194
218
  effect,
195
219
  tier
196
220
  }) {
197
- const root = { open, defaultOpen, onOpenChange, delayDuration: delay ?? delayDuration, followCursor };
221
+ const root = { open, defaultOpen, onOpenChange, delayDuration: delay ?? delayDuration, closeDelay, followCursor };
198
222
  if (content === undefined)
199
223
  return /* @__PURE__ */ jsx(TooltipRoot, {
200
224
  ...root,
@@ -210,6 +234,10 @@ var Tooltip2 = Object.assign(function Tooltip({
210
234
  side,
211
235
  align,
212
236
  sideOffset,
237
+ alignOffset,
238
+ collisionPadding,
239
+ collisionBoundary,
240
+ positionerClassName,
213
241
  container,
214
242
  className,
215
243
  contentClassName,
@@ -8,7 +8,7 @@ import {
8
8
  } from "./components-xnp09586.js";
9
9
  import {
10
10
  badge_default
11
- } from "./components-jw45ck66.js";
11
+ } from "./components-02683eqd.js";
12
12
 
13
13
  // primitives/systems/craft/index.tsx
14
14
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -8,7 +8,7 @@ import {
8
8
  } from "./components-xnp09586.js";
9
9
  import {
10
10
  ScrollColumn2
11
- } from "./components-ta4e10mx.js";
11
+ } from "./components-s25rehbv.js";
12
12
 
13
13
  // components/inputs/date-time/time-columns.tsx
14
14
  import { format } from "date-fns";
@@ -8,7 +8,7 @@ import {
8
8
  } from "./components-xnp09586.js";
9
9
  import {
10
10
  FluidHoverHighlight2
11
- } from "./components-g35n8tzm.js";
11
+ } from "./components-95kp19zn.js";
12
12
  import {
13
13
  useShape2
14
14
  } from "./components-kxpcj2ry.js";
@@ -19,7 +19,7 @@ import {
19
19
 
20
20
  // components/inputs/textarea/index.tsx
21
21
  import { Field } from "@base-ui/react/field";
22
- import { forwardRef, useRef } from "react";
22
+ import { forwardRef, useEffect, useRef } from "react";
23
23
  import { jsx } from "react/jsx-runtime";
24
24
  var PADDING_Y = {
25
25
  default: "py-2",
@@ -41,9 +41,39 @@ var Textarea2 = forwardRef(({
41
41
  ...props
42
42
  }, ref) => {
43
43
  const [value, setValue] = useControllableState2(valueProp, defaultValue, onValueChange);
44
+ const domHeld = valueProp === undefined && onValueChange === undefined;
44
45
  const textareaRef = useRef(null);
45
46
  const box = useFieldBox2({ variant, invalid, disabled, readOnly, required, size });
46
- useAutosizeTextarea2(textareaRef, { minRows, maxRows }, [value, box.size.variant]);
47
+ const resize = useAutosizeTextarea2(textareaRef, { minRows, maxRows }, [value, box.size.variant]);
48
+ useEffect(() => {
49
+ const el = textareaRef.current;
50
+ if (!domHeld || !el)
51
+ return;
52
+ const own = Object.getOwnPropertyDescriptor(el, "value");
53
+ const base = own ?? Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype, "value");
54
+ const set = base?.set;
55
+ if (set) {
56
+ Object.defineProperty(el, "value", {
57
+ configurable: true,
58
+ enumerable: base.enumerable,
59
+ get: base.get,
60
+ set(next) {
61
+ set.call(this, next);
62
+ resize();
63
+ }
64
+ });
65
+ }
66
+ const form = el.form;
67
+ const onReset = () => setTimeout(resize);
68
+ form?.addEventListener("reset", onReset);
69
+ return () => {
70
+ form?.removeEventListener("reset", onReset);
71
+ if (own)
72
+ Object.defineProperty(el, "value", own);
73
+ else if (set)
74
+ Reflect.deleteProperty(el, "value");
75
+ };
76
+ }, [domHeld, resize]);
47
77
  return /* @__PURE__ */ jsx("div", {
48
78
  onMouseDown: focusControlOnPress2(textareaRef),
49
79
  ...box.props,
@@ -54,8 +84,7 @@ var Textarea2 = forwardRef(({
54
84
  rows: minRows,
55
85
  ...props
56
86
  }),
57
- value,
58
- onChange: (e) => setValue(e.target.value),
87
+ ...domHeld ? { defaultValue, onChange: resize } : { value, onChange: (e) => setValue(e.target.value) },
59
88
  disabled: box.disabled,
60
89
  readOnly: box.readOnly,
61
90
  required: box.required,
@@ -17,10 +17,10 @@ import {
17
17
  import {
18
18
  dividedColumns2,
19
19
  ScrollColumn2
20
- } from "./components-ta4e10mx.js";
20
+ } from "./components-s25rehbv.js";
21
21
  import {
22
22
  SizeScope2
23
- } from "./components-nz14rwtd.js";
23
+ } from "./components-ffng9rpa.js";
24
24
 
25
25
  // components/inputs/date-time/calendar/index.tsx
26
26
  import { addDays, format as format2, isSameYear, startOfWeek } from "date-fns";
@@ -11,7 +11,7 @@ import {
11
11
  } from "./components-xnp09586.js";
12
12
  import {
13
13
  FluidHoverHighlight2
14
- } from "./components-g35n8tzm.js";
14
+ } from "./components-95kp19zn.js";
15
15
  import {
16
16
  RowOrderContext2,
17
17
  useRowOrder2,
@@ -29,7 +29,7 @@ import {
29
29
  } from "./components-7c4a0egq.js";
30
30
  import {
31
31
  SizeScope2
32
- } from "./components-nz14rwtd.js";
32
+ } from "./components-ffng9rpa.js";
33
33
  import {
34
34
  useIcon2
35
35
  } from "./components-jnhpgpfk.js";
@@ -2,10 +2,10 @@
2
2
 
3
3
  import {
4
4
  slotRender2
5
- } from "./components-kwxye0an.js";
5
+ } from "./components-7wjkag2j.js";
6
6
  import {
7
7
  button_default
8
- } from "./components-0h2mng6m.js";
8
+ } from "./components-31pkxwfz.js";
9
9
  import {
10
10
  DialogTrigger2,
11
11
  DialogClose2,
@@ -15,7 +15,7 @@ import {
15
15
  DialogTitle2,
16
16
  DialogDescription2,
17
17
  DialogState2
18
- } from "./components-b9bj65j3.js";
18
+ } from "./components-90y8qwxv.js";
19
19
 
20
20
  // components/overlays/alert-dialog/index.tsx
21
21
  import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
@@ -8,11 +8,11 @@ import {
8
8
  } from "./components-45r18egt.js";
9
9
  import {
10
10
  GOO_BLUR_RATIO2
11
- } from "./components-8pnvkrbw.js";
11
+ } from "./components-mp7en54n.js";
12
12
  import {
13
13
  union2,
14
14
  GooLayer2
15
- } from "./components-z0kz9rxj.js";
15
+ } from "./components-gvwxswpr.js";
16
16
 
17
17
  // lib/use-merge-split.tsx
18
18
  import { AnimatePresence, motion } from "motion/react";
@@ -5,16 +5,16 @@ import {
5
5
  } from "./components-xnp09586.js";
6
6
  import {
7
7
  GooIndicator2
8
- } from "./components-z0kz9rxj.js";
8
+ } from "./components-gvwxswpr.js";
9
9
  import {
10
10
  FluidHoverHighlight2
11
- } from "./components-g35n8tzm.js";
11
+ } from "./components-95kp19zn.js";
12
12
  import {
13
13
  useShape2
14
14
  } from "./components-kxpcj2ry.js";
15
15
  import {
16
16
  FocusRing2
17
- } from "./components-c515d6xr.js";
17
+ } from "./components-v1m0xjbw.js";
18
18
  import {
19
19
  mergeRefs2
20
20
  } from "./components-bkwjvvkh.js";
@@ -34,7 +34,7 @@ import {
34
34
  } from "./components-7c4a0egq.js";
35
35
  import {
36
36
  SizeScope2
37
- } from "./components-nz14rwtd.js";
37
+ } from "./components-ffng9rpa.js";
38
38
 
39
39
  // components/inputs/choice-list/index.tsx
40
40
  import { forwardRef, useRef } from "react";