@wrdagency/blockout 1.0.23 → 1.0.25

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 (226) hide show
  1. package/dist/{2NBKRL7C-Ds7w7Ay7.js → 2NBKRL7C-Cunv252F.js} +10 -10
  2. package/dist/{2RSXSRCN-BBEFwUiL.js → 2RSXSRCN-dNqvVCu5.js} +6 -6
  3. package/dist/{4CMBR7SL-_MPrTek0.js → 4CMBR7SL-Cf8t3EeF.js} +24 -24
  4. package/dist/{5JTVDSTH-Ci6OX9MK.js → 5JTVDSTH-zDMMKAyC.js} +4 -4
  5. package/dist/{5VQZOHHZ-DpLj3Rqp.js → 5VQZOHHZ-BbettT93.js} +1 -1
  6. package/dist/{6VRAQV3D-Cnyfi8tq.js → 6VRAQV3D-pLV6BqmA.js} +6 -6
  7. package/dist/{A3WPL2ZJ-1yF0wSQn.js → A3WPL2ZJ-DEsxy0M-.js} +2 -2
  8. package/dist/{BM6PGYQY-B6HfecNi.js → BM6PGYQY-g6WySwtg.js} +2 -2
  9. package/dist/{DG5U6ZEL-ETCdoLWP.js → DG5U6ZEL-9kCi_mGg.js} +3 -3
  10. package/dist/{EM5CXX6A-CW08TdIG.js → EM5CXX6A-BAj-o9Ka.js} +2 -2
  11. package/dist/{F5MUBM3I-CSfmQDAz.js → F5MUBM3I-AbDoeFd8.js} +17 -17
  12. package/dist/{G7GW6PWC-DtkamyQv.js → G7GW6PWC-DeYlSr7f.js} +56 -56
  13. package/dist/{IWEFDH56-UEiMfbRm.js → IWEFDH56-DLJvQd6v.js} +3 -3
  14. package/dist/{J2LQO3EC-TlCRyAh7.js → J2LQO3EC-Cevd6Bvq.js} +2 -2
  15. package/dist/{KFH4SEIX-D9qCWzyY.js → KFH4SEIX-JLk95eQA.js} +3 -3
  16. package/dist/{LMDWO4NN-BxsnVArz.js → LMDWO4NN-BfJb6my4.js} +29 -29
  17. package/dist/MAXQOH4L-DB7jDisS.js +564 -0
  18. package/dist/{MR26YJYP-BSJHEQsl.js → MR26YJYP-CDaPeerB.js} +33 -33
  19. package/dist/{MTZPJQMC-CNw1MVtu.js → MTZPJQMC-CraWj4on.js} +4 -4
  20. package/dist/{O2PQ2652-BxRvOru-.js → O2PQ2652-BCwdW7qA.js} +11 -11
  21. package/dist/{P7GR5CS5-CZKSJ9w8.js → P7GR5CS5-DbUZzAnv.js} +1 -1
  22. package/dist/{PFRGBC2K-6AvuBT5M.js → PFRGBC2K-DmHoUTiZ.js} +60 -60
  23. package/dist/{RS7LB2H4-DJkydTnE.js → RS7LB2H4-D1_VRecC.js} +6 -6
  24. package/dist/{RZ4GPYOB-DPUx6A2B.js → RZ4GPYOB-rG3RP8Xi.js} +5 -5
  25. package/dist/{S43UC3DV-D5IqpYPC.js → S43UC3DV-bOoyE-xW.js} +6 -6
  26. package/dist/{T7VMP3TM-DX7RU0Yc.js → T7VMP3TM-DZitNAMz.js} +17 -17
  27. package/dist/TIW3GMFC-DPiX149D.js +81 -0
  28. package/dist/{TP7N7UIH-CFp7Hh_A.js → TP7N7UIH-D_nR5wDv.js} +2 -2
  29. package/dist/{UQQRIHDV-D5fevAL1.js → UQQRIHDV-ULrGYPSq.js} +8 -8
  30. package/dist/{UYGDZTLQ-CEz9ajCa.js → UYGDZTLQ-CTQQ8oFQ.js} +2 -2
  31. package/dist/{VIIRIBF3-Co_vwgwZ.js → VIIRIBF3-C4pOScX8.js} +5 -5
  32. package/dist/{WMYDSCNQ-BIYNTVEx.js → WMYDSCNQ-qLZnyPON.js} +13 -13
  33. package/dist/{WYCIER3C-C_60hKUt.js → WYCIER3C-BJwD0YDE.js} +2 -2
  34. package/dist/YORGHBM4-6CReFG7i.js +54 -0
  35. package/dist/{YV4JVR4I-BLQoWp1E.js → YV4JVR4I-D8_aZ62q.js} +48 -48
  36. package/dist/assets/index10.css +1 -1
  37. package/dist/assets/index11.css +1 -1
  38. package/dist/assets/index12.css +1 -1
  39. package/dist/assets/index13.css +1 -1
  40. package/dist/assets/index14.css +1 -1
  41. package/dist/assets/index15.css +1 -1
  42. package/dist/assets/index16.css +1 -1
  43. package/dist/assets/index17.css +1 -1
  44. package/dist/assets/index18.css +1 -1
  45. package/dist/assets/index19.css +1 -1
  46. package/dist/assets/index20.css +1 -1
  47. package/dist/assets/index21.css +1 -0
  48. package/dist/assets/index22.css +1 -0
  49. package/dist/assets/index6.css +1 -1
  50. package/dist/assets/index7.css +1 -1
  51. package/dist/assets/index8.css +1 -1
  52. package/dist/assets/index9.css +1 -1
  53. package/dist/assets/style10.css +1 -1
  54. package/dist/assets/style23.css +1 -1
  55. package/dist/assets/style25.css +1 -1
  56. package/dist/assets/style26.css +1 -1
  57. package/dist/assets/style27.css +1 -1
  58. package/dist/assets/style28.css +1 -0
  59. package/dist/assets/style6.css +1 -1
  60. package/dist/assets/style8.css +1 -1
  61. package/dist/assets/style9.css +1 -1
  62. package/dist/assets/styles5.css +1 -1
  63. package/dist/combobox-group-BCdU5rML.js +27 -0
  64. package/dist/combobox-popover-D5bLZY4d.js +95 -0
  65. package/dist/components/breadcrumbs/index.js +5 -5
  66. package/dist/components/button/icon.js +1 -1
  67. package/dist/components/button/row.js +4 -4
  68. package/dist/components/command-palette/index.d.ts +24 -0
  69. package/dist/components/command-palette/index.js +164 -0
  70. package/dist/components/command-palette/types.d.ts +10 -0
  71. package/dist/components/command-palette/types.js +1 -0
  72. package/dist/components/controls/base-popover-control/index.js +4 -4
  73. package/dist/components/controls/card-number-control/index.js +1 -1
  74. package/dist/components/controls/checkbox-control/index.js +1 -1
  75. package/dist/components/controls/choice-control/choice.js +1 -1
  76. package/dist/components/controls/choice-control/index.js +1 -1
  77. package/dist/components/controls/date-control/index.js +12 -13
  78. package/dist/components/controls/date-control/picker.js +5 -5
  79. package/dist/components/controls/list-control/item.js +1 -1
  80. package/dist/components/controls/recurrence-control/index.js +2 -2
  81. package/dist/components/controls/select-control/control.js +1 -1
  82. package/dist/components/controls/select-control/select.js +12 -11
  83. package/dist/components/controls/tag-control/ariakit-experimental.js +1081 -1162
  84. package/dist/components/controls/tag-control/index.js +9 -8
  85. package/dist/components/controls/tag-control/props.js +1 -1
  86. package/dist/components/controls/toggle-control/index.js +1 -1
  87. package/dist/components/controls/toggle-group-control/index.js +1 -1
  88. package/dist/components/data-form/status.js +1 -1
  89. package/dist/components/data-form/submit.js +1 -1
  90. package/dist/components/data-view/data/filter.js +4 -4
  91. package/dist/components/data-view/data/layout.js +7 -4
  92. package/dist/components/data-view/data/options.js +142 -102
  93. package/dist/components/data-view/index.d.ts +3 -2
  94. package/dist/components/data-view/index.js +1 -1
  95. package/dist/components/data-view/layouts/grid/group.js +11 -11
  96. package/dist/components/data-view/layouts/grid/item.js +4 -4
  97. package/dist/components/data-view/layouts/kanban/group.js +11 -11
  98. package/dist/components/data-view/layouts/kanban/item.js +4 -4
  99. package/dist/components/data-view/layouts/kanban/root.js +1 -1
  100. package/dist/components/data-view/layouts/list/group.js +11 -11
  101. package/dist/components/data-view/layouts/list/item.js +4 -4
  102. package/dist/components/data-view/layouts/table/empty.js +4 -4
  103. package/dist/components/data-view/layouts/table/group.js +28 -21
  104. package/dist/components/data-view/layouts/table/item.js +5 -5
  105. package/dist/components/data-view/layouts/table/root.js +4 -4
  106. package/dist/components/data-view/layouts/tile/empty.d.ts +2 -0
  107. package/dist/components/data-view/layouts/tile/empty.js +6 -0
  108. package/dist/components/data-view/layouts/tile/group.d.ts +2 -0
  109. package/dist/components/data-view/layouts/tile/group.js +58 -0
  110. package/dist/components/data-view/layouts/tile/index.d.ts +3 -0
  111. package/dist/components/data-view/layouts/tile/index.js +8 -0
  112. package/dist/components/data-view/layouts/tile/item.d.ts +2 -0
  113. package/dist/components/data-view/layouts/tile/item.js +81 -0
  114. package/dist/components/data-view/layouts/tile/root.d.ts +2 -0
  115. package/dist/components/data-view/layouts/tile/root.js +6 -0
  116. package/dist/components/data-view/parts/body/empty.js +1 -1
  117. package/dist/components/data-view/parts/body/index.js +6 -6
  118. package/dist/components/data-view/parts/controls/index.js +39 -39
  119. package/dist/components/data-view/parts/controls/search.js +4 -4
  120. package/dist/components/data-view/parts/filters/chip.js +1 -1
  121. package/dist/components/data-view/parts/filters/editor.js +3 -3
  122. package/dist/components/data-view/parts/filters/index.js +1 -1
  123. package/dist/components/data-view/parts/footer/actions.js +4 -4
  124. package/dist/components/data-view/parts/footer/index.js +4 -4
  125. package/dist/components/data-view/parts/footer/selection.js +4 -4
  126. package/dist/components/data-view/parts/view-control/index.js +4 -4
  127. package/dist/components/data-view/root.d.ts +5 -3
  128. package/dist/components/data-view/root.js +51 -47
  129. package/dist/components/data-view/slots/group/checkbox.js +5 -5
  130. package/dist/components/data-view/slots/group/context.js +1 -1
  131. package/dist/components/data-view/slots/group/header.d.ts +3 -0
  132. package/dist/components/data-view/slots/group/header.js +12 -0
  133. package/dist/components/data-view/slots/group/icon.js +1 -1
  134. package/dist/components/data-view/slots/group/index.js +3 -2
  135. package/dist/components/data-view/slots/group/label.js +1 -1
  136. package/dist/components/data-view/slots/index.js +3 -3
  137. package/dist/components/data-view/slots/item/actions.js +1 -1
  138. package/dist/components/data-view/slots/item/checkbox.js +4 -4
  139. package/dist/components/data-view/slots/item/depth.js +3 -3
  140. package/dist/components/data-view/slots/item/description.js +1 -1
  141. package/dist/components/data-view/slots/item/index.js +2 -2
  142. package/dist/components/data-view/slots/item/properties.js +2 -2
  143. package/dist/components/data-view/slots/item/relations.js +3 -3
  144. package/dist/components/data-view/slots/item/tags.js +1 -1
  145. package/dist/components/data-view/slots/item/thumbnail.js +1 -1
  146. package/dist/components/data-view/slots/item/title.js +1 -1
  147. package/dist/components/data-view/slots/item/util.js +2 -2
  148. package/dist/components/data-view/slots/property/field/editable.js +4 -4
  149. package/dist/components/data-view/slots/property/field/index.js +2 -2
  150. package/dist/components/data-view/slots/property/field/static.js +1 -1
  151. package/dist/components/data-view/slots/property/index.js +1 -1
  152. package/dist/components/data-view/slots/property/label.js +1 -1
  153. package/dist/components/data-view/slots/root/checkbox.js +4 -4
  154. package/dist/components/data-view/slots/root/context.d.ts +1 -0
  155. package/dist/components/data-view/slots/root/index.js +1 -1
  156. package/dist/components/data-view/types/view.d.ts +1 -1
  157. package/dist/components/dialog/index.d.ts +14 -0
  158. package/dist/components/dialog/index.js +72 -0
  159. package/dist/components/filesystem/file.js +1 -1
  160. package/dist/components/filesystem/folder.js +7 -6
  161. package/dist/components/filesystem/index.js +1 -1
  162. package/dist/components/filesystem/list.js +1 -1
  163. package/dist/components/filesystem/root.js +1 -1
  164. package/dist/components/index.d.ts +3 -1
  165. package/dist/components/index.js +67 -63
  166. package/dist/components/menu/index.js +2 -2
  167. package/dist/components/menu/item.js +1 -1
  168. package/dist/components/menu/items/action.js +1 -1
  169. package/dist/components/menu/items/spacer.js +1 -1
  170. package/dist/components/menu/items/submenu.js +3 -3
  171. package/dist/components/menu/items/toggle.js +1 -1
  172. package/dist/components/pagination/index.js +1 -1
  173. package/dist/components/progress/index.js +1 -1
  174. package/dist/components/shell/index.js +1 -1
  175. package/dist/components/shell/pane.js +1 -1
  176. package/dist/components/tabs/index.js +1 -1
  177. package/dist/components/tabs/list.js +1 -1
  178. package/dist/components/tabs/panel.js +1 -1
  179. package/dist/components/tabs/root.js +1 -1
  180. package/dist/components/tabs/tab.js +1 -1
  181. package/dist/components/tag/index.js +1 -1
  182. package/dist/components/tag/tag.js +1 -1
  183. package/dist/components/toolbar/divider.js +1 -1
  184. package/dist/components/toolbar/index.js +2 -2
  185. package/dist/components/toolbar/root.js +1 -1
  186. package/dist/components/window/index.js +2 -2
  187. package/dist/{composite-provider-K8zU8z0x.js → composite-provider-DFOFHro7.js} +2 -2
  188. package/dist/disclosure-provider-DIT2ijtk.js +10 -0
  189. package/dist/{filter-rHYsh8Gq.js → filter-DzrtcAfG.js} +3 -3
  190. package/dist/{index-Cn5kB2Fd.js → index-B5z_GwnD.js} +5 -5
  191. package/dist/{index-CXFb4Xny.js → index-Bp_FFk15.js} +16 -14
  192. package/dist/{index-DRiUXF8g.js → index-C8OctMj0.js} +3 -3
  193. package/dist/index.js +118 -112
  194. package/dist/{item-BZJ3JrHw.js → item-CGLYiEST.js} +2 -2
  195. package/dist/{menu-button-DBjUzoaw.js → menu-button-C-h3k7Gh.js} +26 -26
  196. package/dist/{menu-separator-H9l1SpSV.js → menu-separator-CuuhJPnR.js} +3 -3
  197. package/dist/{picker-aBRTIOUU.js → picker-BUCg1BqW.js} +4 -4
  198. package/dist/{popover-provider-xofWxUiu.js → popover-provider-BoZ9PI_r.js} +4 -4
  199. package/dist/primitives/index.d.ts +1 -1
  200. package/dist/primitives/index.js +14 -12
  201. package/dist/primitives/link/index.js +1 -1
  202. package/dist/primitives/popover/index.js +1 -1
  203. package/dist/primitives/popover/root.js +1 -1
  204. package/dist/primitives/popover/target.js +1 -1
  205. package/dist/primitives/popover/window.js +3 -3
  206. package/dist/primitives/scroll-area/index.js +1 -1
  207. package/dist/primitives/tooltip/index.js +1 -1
  208. package/dist/primitives/typography/index.d.ts +1 -0
  209. package/dist/primitives/typography/index.js +9 -7
  210. package/dist/primitives/typography/keyboard.d.ts +8 -0
  211. package/dist/primitives/typography/keyboard.js +33 -0
  212. package/dist/{select-popover-BuB2Ioa9.js → select-popover-DmN0T8PP.js} +46 -46
  213. package/dist/{select-value-C1gT40_5.js → select-value-DnWKxDD-.js} +2 -2
  214. package/dist/{style-C7eFpUVU.js → style-CWAa57kN.js} +1 -1
  215. package/dist/{style-DzV7-wks.js → style-D1AX7G7x.js} +1 -1
  216. package/dist/{tab-BbgJF9GJ.js → tab-BXGTM7Se.js} +4 -4
  217. package/dist/{tab-list-BvZvev5m.js → tab-list-BPSxHllS.js} +3 -3
  218. package/dist/{tab-panel-QxtN3GO3.js → tab-panel-fbUcLE4f.js} +7 -7
  219. package/dist/{tab-provider-T_g-bJwY.js → tab-provider-x586a8l7.js} +17 -17
  220. package/dist/{tag-remove-DVXj7CeY.js → tag-remove-BdHvB_5c.js} +37 -37
  221. package/dist/{toolbar-Bl6JBFO2.js → toolbar-hQ58P-Nk.js} +5 -5
  222. package/dist/{toolbar-separator-CN-A8iMa.js → toolbar-separator-CN00-jyc.js} +3 -3
  223. package/dist/{tooltip-arrow-DSk_atex.js → tooltip-arrow-BRJ4m2ZL.js} +36 -36
  224. package/package.json +1 -1
  225. package/dist/combobox-popover-DFcT6u90.js +0 -650
  226. package/dist/disclosure-provider-CX3wr_3W.js +0 -61
@@ -1,6 +1,6 @@
1
- import { u as m } from "./A3WPL2ZJ-1yF0wSQn.js";
2
- import { u } from "./6VRAQV3D-Cnyfi8tq.js";
3
- import { s as n, f as p, c as b, a as c, _ as f, o as l } from "./LMDWO4NN-BxsnVArz.js";
1
+ import { u as m } from "./A3WPL2ZJ-DEsxy0M-.js";
2
+ import { u } from "./6VRAQV3D-pLV6BqmA.js";
3
+ import { s as n, f as p, c as b, a as c, _ as f, o as l } from "./LMDWO4NN-BfJb6my4.js";
4
4
  var T = "button", i = b(
5
5
  function(e) {
6
6
  var o = e, { store: r } = o, t = f(o, ["store"]);
@@ -1,5 +1,5 @@
1
- import { a as d, b as v } from "./P7GR5CS5-CZKSJ9w8.js";
2
- import { f as l, c as C, a as f, _ as w, i as R, q as _, l as b, o as E, r as x } from "./LMDWO4NN-BxsnVArz.js";
1
+ import { a as d, b as v } from "./P7GR5CS5-DbUZzAnv.js";
2
+ import { f as l, c as C, a as f, _ as w, i as R, q as _, l as b, o as E, r as x } from "./LMDWO4NN-BfJb6my4.js";
3
3
  import { useMemo as S } from "react";
4
4
  import { jsx as V } from "react/jsx-runtime";
5
5
  var z = "div", N = C(
@@ -1,6 +1,6 @@
1
- import { u as A, D as z } from "./RS7LB2H4-DJkydTnE.js";
2
- import { a as T } from "./YV4JVR4I-BLQoWp1E.js";
3
- import { f as R, _ as V, o as E, c as B, a as G, i as J, q as K, b as p, l as Q, m as x, n as X, r as Y } from "./LMDWO4NN-BxsnVArz.js";
1
+ import { u as A, D as z } from "./RS7LB2H4-D1_VRecC.js";
2
+ import { a as T } from "./YV4JVR4I-D8_aZ62q.js";
3
+ import { f as R, _ as V, o as E, c as B, a as G, i as J, q as K, b as p, l as Q, m as x, n as X, r as Y } from "./LMDWO4NN-BfJb6my4.js";
4
4
  import { useRef as Z, useState as $, useMemo as tt } from "react";
5
5
  import { r as et } from "./index-Cgx3BqdJ.js";
6
6
  import { jsx as g } from "react/jsx-runtime";
@@ -557,40 +557,40 @@ function Se(t = [], e = []) {
557
557
  };
558
558
  }
559
559
  export {
560
- se as $,
560
+ dt as $,
561
561
  Kt as A,
562
562
  mt as B,
563
- _ as C,
564
- Dt as D,
565
- _e as E,
566
- Jt as F,
567
- ce as G,
568
- ue as H,
569
- Se as I,
570
- zt as J,
571
- Mt as K,
572
- be as L,
573
- R as M,
574
- S as N,
575
- ne as O,
576
- ee as P,
577
- Yt as Q,
578
- pe as R,
579
- Pt as S,
580
- rt as T,
581
- U,
582
- $t as V,
563
+ Vt as C,
564
+ _ as D,
565
+ Dt as E,
566
+ _e as F,
567
+ Jt as G,
568
+ ce as H,
569
+ ue as I,
570
+ Se as J,
571
+ be as K,
572
+ R as L,
573
+ S as M,
574
+ zt as N,
575
+ Mt as O,
576
+ ne as P,
577
+ ee as Q,
578
+ Yt as R,
579
+ vt as S,
580
+ $t as T,
581
+ rt as U,
582
+ U as V,
583
583
  me as W,
584
- Ut as X,
585
- dt as Y,
586
- m as Z,
584
+ pe as X,
585
+ Pt as Y,
586
+ Ut as Z,
587
587
  Z as _,
588
588
  Re as a,
589
- vt as a0,
590
- Tt as a1,
591
- he as a2,
592
- fe as a3,
593
- Vt as a4,
589
+ m as a0,
590
+ se as a1,
591
+ Tt as a2,
592
+ he as a3,
593
+ fe as a4,
594
594
  xt as a5,
595
595
  re as a6,
596
596
  yt as a7,
@@ -0,0 +1,564 @@
1
+ import { u as Je } from "./5JTVDSTH-zDMMKAyC.js";
2
+ import { a as Qe } from "./WMYDSCNQ-qLZnyPON.js";
3
+ import { u as Ye, C as Ge, a as Oe, c as Xe, d as Ze, e as ye, b as et, f as tt } from "./S43UC3DV-bOoyE-xW.js";
4
+ import { J as ot, Y as nt, T as k, U as te, V as W, a2 as rt, x as st, a7 as ut, m as N, o as y, W as Ie, f as ae, c as ie, a as ce, _ as de, i as fe, a8 as lt, a9 as at, y as Ve, aa as se, ab as it, e as H, B as ct, b as ue, j as L, H as dt, q as Ee, n as we, S as ft, C as mt, a1 as vt, O as pt, s as bt, P as Ct, Q as St, k as gt, l as Ae, ac as xt, r as Vt } from "./LMDWO4NN-BfJb6my4.js";
5
+ import { h as le } from "./PFRGBC2K-DmHoUTiZ.js";
6
+ import { m as ht, p as Pt, t as Ot, c as yt, s as G, d as $, g as It, b as Et, f as oe, u as wt } from "./YV4JVR4I-D8_aZ62q.js";
7
+ import { createContext as ke, useRef as z, useState as Le, useEffect as X, useMemo as At, useCallback as kt, useContext as Lt } from "react";
8
+ import { e as _t, C as Tt } from "./P7GR5CS5-DbUZzAnv.js";
9
+ import { c as Kt, a as Dt } from "./O2PQ2652-BCwdW7qA.js";
10
+ import { c as Rt, d as Mt, b as Bt } from "./4CMBR7SL-Cf8t3EeF.js";
11
+ import { jsx as Z } from "react/jsx-runtime";
12
+ import { u as Ft } from "./UQQRIHDV-ULrGYPSq.js";
13
+ import { u as Ht } from "./6VRAQV3D-pLV6BqmA.js";
14
+ import { i as Nt } from "./KFH4SEIX-JLk95eQA.js";
15
+ var xo = ke(null), Vo = ke(
16
+ null
17
+ ), ne = ot(
18
+ [Tt],
19
+ [_t]
20
+ ), Ut = ne.useContext, ho = ne.useProviderContext, Po = ne.ContextProvider, Oo = ne.ScopedContextProvider, jt = st() && ut();
21
+ function qt(o = {}) {
22
+ var n = o, {
23
+ tag: r
24
+ } = n, e = nt(n, [
25
+ "tag"
26
+ ]);
27
+ const c = ht(e.store, Pt(r, ["value", "rtl"]));
28
+ Ot(e, c);
29
+ const d = r == null ? void 0 : r.getState(), u = c == null ? void 0 : c.getState(), T = k(
30
+ e.activeId,
31
+ u == null ? void 0 : u.activeId,
32
+ e.defaultActiveId,
33
+ null
34
+ ), w = Rt(te(W({}, e), {
35
+ activeId: T,
36
+ includesBaseElement: k(
37
+ e.includesBaseElement,
38
+ u == null ? void 0 : u.includesBaseElement,
39
+ !0
40
+ ),
41
+ orientation: k(
42
+ e.orientation,
43
+ u == null ? void 0 : u.orientation,
44
+ "vertical"
45
+ ),
46
+ focusLoop: k(e.focusLoop, u == null ? void 0 : u.focusLoop, !0),
47
+ focusWrap: k(e.focusWrap, u == null ? void 0 : u.focusWrap, !0),
48
+ virtualFocus: k(
49
+ e.virtualFocus,
50
+ u == null ? void 0 : u.virtualFocus,
51
+ !0
52
+ )
53
+ })), I = Kt(te(W({}, e), {
54
+ placement: k(
55
+ e.placement,
56
+ u == null ? void 0 : u.placement,
57
+ "bottom-start"
58
+ )
59
+ })), K = k(
60
+ e.value,
61
+ u == null ? void 0 : u.value,
62
+ e.defaultValue,
63
+ ""
64
+ ), O = k(
65
+ e.selectedValue,
66
+ u == null ? void 0 : u.selectedValue,
67
+ d == null ? void 0 : d.values,
68
+ e.defaultSelectedValue,
69
+ ""
70
+ ), f = Array.isArray(O), _ = te(W(W({}, w.getState()), I.getState()), {
71
+ value: K,
72
+ selectedValue: O,
73
+ resetValueOnSelect: k(
74
+ e.resetValueOnSelect,
75
+ u == null ? void 0 : u.resetValueOnSelect,
76
+ f
77
+ ),
78
+ resetValueOnHide: k(
79
+ e.resetValueOnHide,
80
+ u == null ? void 0 : u.resetValueOnHide,
81
+ f && !r
82
+ ),
83
+ activeValue: u == null ? void 0 : u.activeValue
84
+ }), l = yt(_, w, I, c);
85
+ return jt && G(
86
+ l,
87
+ () => $(l, ["virtualFocus"], () => {
88
+ l.setState("virtualFocus", !1);
89
+ })
90
+ ), G(l, () => {
91
+ if (r)
92
+ return rt(
93
+ $(l, ["selectedValue"], (i) => {
94
+ Array.isArray(i.selectedValue) && r.setValues(i.selectedValue);
95
+ }),
96
+ $(r, ["values"], (i) => {
97
+ l.setState("selectedValue", i.values);
98
+ })
99
+ );
100
+ }), G(
101
+ l,
102
+ () => $(l, ["resetValueOnHide", "mounted"], (i) => {
103
+ i.resetValueOnHide && (i.mounted || l.setState("value", K));
104
+ })
105
+ ), G(
106
+ l,
107
+ () => $(l, ["open"], (i) => {
108
+ i.open || (l.setState("activeId", T), l.setState("moves", 0));
109
+ })
110
+ ), G(
111
+ l,
112
+ () => $(l, ["moves", "activeId"], (i, A) => {
113
+ i.moves === A.moves && l.setState("activeValue", void 0);
114
+ })
115
+ ), G(
116
+ l,
117
+ () => It(l, ["moves", "renderedItems"], (i, A) => {
118
+ if (i.moves === A.moves) return;
119
+ const { activeId: V } = l.getState(), m = w.item(V);
120
+ l.setState("activeValue", m == null ? void 0 : m.value);
121
+ })
122
+ ), te(W(W(W({}, I), w), l), {
123
+ tag: r,
124
+ setValue: (i) => l.setState("value", i),
125
+ resetValue: () => l.setState("value", _.value),
126
+ setSelectedValue: (i) => l.setState("selectedValue", i)
127
+ });
128
+ }
129
+ function Wt(o) {
130
+ const n = Ut();
131
+ return o = N(y({}, o), {
132
+ tag: o.tag !== void 0 ? o.tag : n
133
+ }), Mt(o);
134
+ }
135
+ function $t(o, n, r) {
136
+ return Ie(n, [r.tag]), oe(o, r, "value", "setValue"), oe(o, r, "selectedValue", "setSelectedValue"), oe(o, r, "resetValueOnHide"), oe(o, r, "resetValueOnSelect"), Object.assign(
137
+ Bt(
138
+ Dt(o, n, r),
139
+ n,
140
+ r
141
+ ),
142
+ { tag: r.tag }
143
+ );
144
+ }
145
+ function zt(o = {}) {
146
+ o = Wt(o);
147
+ const [n, r] = Et(qt, o);
148
+ return $t(n, r, o);
149
+ }
150
+ var Jt = "input";
151
+ function he(o, n, r) {
152
+ if (!r) return !1;
153
+ const e = o.find((c) => !c.disabled && c.value);
154
+ return (e == null ? void 0 : e.value) === n;
155
+ }
156
+ function Pe(o, n) {
157
+ return !n || o == null ? !1 : (o = pt(o), n.length > o.length && n.toLowerCase().indexOf(o.toLowerCase()) === 0);
158
+ }
159
+ function Qt(o) {
160
+ return o.type === "input";
161
+ }
162
+ function Yt(o) {
163
+ return o === "inline" || o === "list" || o === "both" || o === "none";
164
+ }
165
+ function Gt(o) {
166
+ const n = o.find((r) => {
167
+ var e;
168
+ return r.disabled ? !1 : ((e = r.element) == null ? void 0 : e.getAttribute("role")) !== "tab";
169
+ });
170
+ return n == null ? void 0 : n.id;
171
+ }
172
+ var Xt = ie(
173
+ function(n) {
174
+ var r = n, {
175
+ store: e,
176
+ focusable: c = !0,
177
+ autoSelect: d = !1,
178
+ getAutoSelectId: u,
179
+ setValueOnChange: T,
180
+ showMinLength: w = 0,
181
+ showOnChange: I,
182
+ showOnMouseDown: K,
183
+ showOnClick: O = K,
184
+ showOnKeyDown: f,
185
+ showOnKeyPress: _ = f,
186
+ blurActiveItemOnClick: l,
187
+ setValueOnClick: i = !0,
188
+ moveOnKeyPress: A = !0,
189
+ autoComplete: V = "list"
190
+ } = r, m = de(r, [
191
+ "store",
192
+ "focusable",
193
+ "autoSelect",
194
+ "getAutoSelectId",
195
+ "setValueOnChange",
196
+ "showMinLength",
197
+ "showOnChange",
198
+ "showOnMouseDown",
199
+ "showOnClick",
200
+ "showOnKeyDown",
201
+ "showOnKeyPress",
202
+ "blurActiveItemOnClick",
203
+ "setValueOnClick",
204
+ "moveOnKeyPress",
205
+ "autoComplete"
206
+ ]);
207
+ const J = Ye();
208
+ e = e || J, fe(
209
+ e,
210
+ process.env.NODE_ENV !== "production" && "Combobox must receive a `store` prop or be wrapped in a ComboboxProvider component."
211
+ );
212
+ const D = z(null), [Q, h] = lt(), C = z(!1), M = z(!1), P = e.useState(
213
+ (t) => t.virtualFocus && d
214
+ ), x = V === "inline" || V === "both", [U, Y] = Le(x);
215
+ at(() => {
216
+ x && Y(!0);
217
+ }, [x]);
218
+ const s = e.useState("value"), b = z();
219
+ X(() => $(e, ["selectedValue", "activeId"], (t, a) => {
220
+ b.current = a.selectedValue;
221
+ }), []);
222
+ const S = e.useState((t) => {
223
+ var a;
224
+ if (x && U && !(t.activeValue && Array.isArray(t.selectedValue) && (t.selectedValue.includes(t.activeValue) || (a = b.current) != null && a.includes(t.activeValue))))
225
+ return t.activeValue;
226
+ }), j = e.useState("renderedItems"), B = e.useState("open"), F = e.useState("contentElement"), ee = At(() => {
227
+ if (!x || !U) return s;
228
+ if (he(
229
+ j,
230
+ S,
231
+ P
232
+ )) {
233
+ if (Pe(s, S)) {
234
+ const a = (S == null ? void 0 : S.slice(s.length)) || "";
235
+ return s + a;
236
+ }
237
+ return s;
238
+ }
239
+ return S || s;
240
+ }, [x, U, j, S, P, s]);
241
+ X(() => {
242
+ const t = D.current;
243
+ if (!t) return;
244
+ const a = () => Y(!0);
245
+ return t.addEventListener("combobox-item-move", a), () => {
246
+ t.removeEventListener("combobox-item-move", a);
247
+ };
248
+ }, []), X(() => {
249
+ if (!x || !U || !S || !he(
250
+ j,
251
+ S,
252
+ P
253
+ ) || !Pe(s, S)) return;
254
+ let a = it;
255
+ return queueMicrotask(() => {
256
+ const v = D.current;
257
+ if (!v) return;
258
+ const { start: p, end: E } = Ve(v), R = s.length, g = S.length;
259
+ se(v, R, g), a = () => {
260
+ if (!le(v)) return;
261
+ const { start: q, end: ze } = Ve(v);
262
+ q === R && ze === g && se(v, p, E);
263
+ };
264
+ }), () => a();
265
+ }, [
266
+ Q,
267
+ x,
268
+ U,
269
+ S,
270
+ j,
271
+ P,
272
+ s
273
+ ]);
274
+ const _e = z(null), me = H(u), ve = z(null);
275
+ X(() => {
276
+ if (!B || !F) return;
277
+ const t = ct(F);
278
+ if (!t) return;
279
+ _e.current = t;
280
+ const a = () => {
281
+ C.current = !1;
282
+ }, v = () => {
283
+ if (!e || !C.current) return;
284
+ const { activeId: E } = e.getState();
285
+ E !== null && E !== ve.current && (C.current = !1);
286
+ }, p = { passive: !0, capture: !0 };
287
+ return t.addEventListener("wheel", a, p), t.addEventListener("touchmove", a, p), t.addEventListener("scroll", v, p), () => {
288
+ t.removeEventListener("wheel", a, !0), t.removeEventListener("touchmove", a, !0), t.removeEventListener("scroll", v, !0);
289
+ };
290
+ }, [B, F, e]), ue(() => {
291
+ s && (M.current || (C.current = !0));
292
+ }, [s]), ue(() => {
293
+ P !== "always" && B || (C.current = B);
294
+ }, [P, B]);
295
+ const pe = e.useState("resetValueOnSelect");
296
+ Ie(() => {
297
+ var t, a;
298
+ const v = C.current;
299
+ if (!e || !B || !v && !pe) return;
300
+ const { baseElement: p, contentElement: E, activeId: R } = e.getState();
301
+ if (!(p && !le(p))) {
302
+ if (E != null && E.hasAttribute("data-placing")) {
303
+ const g = new MutationObserver(h);
304
+ return g.observe(E, { attributeFilter: ["data-placing"] }), () => g.disconnect();
305
+ }
306
+ if (P && v) {
307
+ const g = me(j), q = g !== void 0 ? g : (t = Gt(j)) != null ? t : e.first();
308
+ ve.current = q, e.move(q ?? null);
309
+ } else {
310
+ const g = (a = e.item(R || e.first())) == null ? void 0 : a.element;
311
+ g && "scrollIntoView" in g && g.scrollIntoView({ block: "nearest", inline: "nearest" });
312
+ }
313
+ }
314
+ }, [
315
+ e,
316
+ B,
317
+ Q,
318
+ s,
319
+ P,
320
+ pe,
321
+ me,
322
+ j
323
+ ]), X(() => {
324
+ if (!x) return;
325
+ const t = D.current;
326
+ if (!t) return;
327
+ const a = [t, F].filter(
328
+ (p) => !!p
329
+ ), v = (p) => {
330
+ a.every((E) => vt(p, E)) && (e == null || e.setValue(ee));
331
+ };
332
+ for (const p of a)
333
+ p.addEventListener("focusout", v);
334
+ return () => {
335
+ for (const p of a)
336
+ p.removeEventListener("focusout", v);
337
+ };
338
+ }, [x, F, e, ee]);
339
+ const re = (t) => t.currentTarget.value.length >= w, be = m.onChange, Te = L(I ?? re), Ke = L(
340
+ // If the combobox is combined with tags, the value will be set by the tag
341
+ // input component.
342
+ T ?? !e.tag
343
+ ), De = H((t) => {
344
+ if (be == null || be(t), t.defaultPrevented || !e) return;
345
+ const a = t.currentTarget, { value: v, selectionStart: p, selectionEnd: E } = a, R = t.nativeEvent;
346
+ if (C.current = !0, Qt(R) && (R.isComposing && (C.current = !1, M.current = !0), x)) {
347
+ const g = R.inputType === "insertText" || R.inputType === "insertCompositionText", q = p === v.length;
348
+ Y(g && q);
349
+ }
350
+ if (Ke(t)) {
351
+ const g = v === e.getState().value;
352
+ e.setValue(v), queueMicrotask(() => {
353
+ se(a, p, E);
354
+ }), x && P && g && h();
355
+ }
356
+ Te(t) && e.show(), (!P || !C.current) && e.setActiveId(null);
357
+ }), Ce = m.onCompositionEnd, Re = H((t) => {
358
+ C.current = !0, M.current = !1, Ce == null || Ce(t), !t.defaultPrevented && P && h();
359
+ }), Se = m.onMouseDown, Me = L(
360
+ l ?? (() => !!(e != null && e.getState().includesBaseElement))
361
+ ), Be = L(i), Fe = L(O ?? re), He = H((t) => {
362
+ Se == null || Se(t), !t.defaultPrevented && (t.button || t.ctrlKey || e && (Me(t) && e.setActiveId(null), Be(t) && e.setValue(ee), Fe(t) && dt(t.currentTarget, "mouseup", e.show)));
363
+ }), ge = m.onKeyDown, Ne = L(_ ?? re), Ue = H((t) => {
364
+ if (ge == null || ge(t), t.repeat || (C.current = !1), t.defaultPrevented || t.ctrlKey || t.altKey || t.shiftKey || t.metaKey || !e) return;
365
+ const { open: a } = e.getState();
366
+ a || (t.key === "ArrowUp" || t.key === "ArrowDown") && Ne(t) && (t.preventDefault(), e.show());
367
+ }), xe = m.onBlur, je = H((t) => {
368
+ C.current = !1, xe == null || xe(t), t.defaultPrevented;
369
+ }), qe = Ee(m.id), We = Yt(V) ? V : void 0, $e = e.useState((t) => t.activeId === null);
370
+ return m = N(y({
371
+ id: qe,
372
+ role: "combobox",
373
+ "aria-autocomplete": We,
374
+ "aria-haspopup": ft(F, "listbox"),
375
+ "aria-expanded": B,
376
+ "aria-controls": F == null ? void 0 : F.id,
377
+ "data-active-item": $e || void 0,
378
+ value: ee
379
+ }, m), {
380
+ ref: we(D, m.ref),
381
+ onChange: De,
382
+ onCompositionEnd: Re,
383
+ onMouseDown: He,
384
+ onKeyDown: Ue,
385
+ onBlur: je
386
+ }), m = Je(N(y({
387
+ store: e,
388
+ focusable: c
389
+ }, m), {
390
+ // Enable inline autocomplete when the user moves from the combobox input
391
+ // to an item.
392
+ moveOnKeyPress: (t) => mt(A, t) ? !1 : (x && Y(!0), !0)
393
+ })), m = Qe(y({ store: e }, m)), y({ autoComplete: "off" }, m);
394
+ }
395
+ ), yo = ae(function(n) {
396
+ const r = Xt(n);
397
+ return ce(Jt, r);
398
+ });
399
+ function Io(o = {}) {
400
+ const n = zt(o);
401
+ return /* @__PURE__ */ Z(Ge, { value: n, children: o.children });
402
+ }
403
+ var Zt = "div";
404
+ function eo(o, n) {
405
+ if (n != null)
406
+ return o == null ? !1 : Array.isArray(o) ? o.includes(n) : o === n;
407
+ }
408
+ function to(o) {
409
+ var n;
410
+ return (n = {
411
+ menu: "menuitem",
412
+ listbox: "option",
413
+ tree: "treeitem"
414
+ }[o]) != null ? n : "option";
415
+ }
416
+ var oo = ie(
417
+ function(n) {
418
+ var r = n, {
419
+ store: e,
420
+ value: c,
421
+ hideOnClick: d,
422
+ setValueOnClick: u,
423
+ selectValueOnClick: T = !0,
424
+ resetValueOnSelect: w,
425
+ focusOnHover: I = !1,
426
+ moveOnKeyPress: K = !0,
427
+ getItem: O
428
+ } = r, f = de(r, [
429
+ "store",
430
+ "value",
431
+ "hideOnClick",
432
+ "setValueOnClick",
433
+ "selectValueOnClick",
434
+ "resetValueOnSelect",
435
+ "focusOnHover",
436
+ "moveOnKeyPress",
437
+ "getItem"
438
+ ]), _;
439
+ const l = Oe();
440
+ e = e || l, fe(
441
+ e,
442
+ process.env.NODE_ENV !== "production" && "ComboboxItem must be wrapped in a ComboboxList or ComboboxPopover component."
443
+ );
444
+ const { resetValueOnSelectState: i, multiSelectable: A, selected: V } = wt(e, {
445
+ resetValueOnSelectState: "resetValueOnSelect",
446
+ multiSelectable(s) {
447
+ return Array.isArray(s.selectedValue);
448
+ },
449
+ selected(s) {
450
+ return eo(s.selectedValue, c);
451
+ }
452
+ }), m = kt(
453
+ (s) => {
454
+ const b = N(y({}, s), { value: c });
455
+ return O ? O(b) : b;
456
+ },
457
+ [c, O]
458
+ );
459
+ u = u ?? !A, d = d ?? (c != null && !A);
460
+ const J = f.onClick, D = L(u), Q = L(T), h = L(
461
+ (_ = w ?? i) != null ? _ : A
462
+ ), C = L(d), M = H((s) => {
463
+ J == null || J(s), !s.defaultPrevented && (Ct(s) || St(s) || (c != null && (Q(s) && (h(s) && (e == null || e.resetValue()), e == null || e.setSelectedValue((b) => Array.isArray(b) ? b.includes(c) ? b.filter((S) => S !== c) : [...b, c] : c)), D(s) && (e == null || e.setValue(c))), C(s) && (e == null || e.hide())));
464
+ }), P = f.onKeyDown, x = H((s) => {
465
+ if (P == null || P(s), s.defaultPrevented) return;
466
+ const b = e == null ? void 0 : e.getState().baseElement;
467
+ if (!b || le(b)) return;
468
+ (s.key.length === 1 || s.key === "Backspace" || s.key === "Delete") && (queueMicrotask(() => b.focus()), gt(b) && (e == null || e.setValue(b.value)));
469
+ });
470
+ A && V != null && (f = y({
471
+ "aria-selected": V
472
+ }, f)), f = Ae(
473
+ f,
474
+ (s) => /* @__PURE__ */ Z(Xe.Provider, { value: c, children: /* @__PURE__ */ Z(Ze.Provider, { value: V ?? !1, children: s }) }),
475
+ [c, V]
476
+ );
477
+ const U = Lt(ye);
478
+ f = N(y({
479
+ role: to(U),
480
+ children: c
481
+ }, f), {
482
+ onClick: M,
483
+ onKeyDown: x
484
+ });
485
+ const Y = L(K);
486
+ return f = Ht(N(y({
487
+ store: e
488
+ }, f), {
489
+ getItem: m,
490
+ // Dispatch a custom event on the combobox input when moving to an item
491
+ // with the keyboard so the Combobox component can enable inline
492
+ // autocompletion.
493
+ moveOnKeyPress: (s) => {
494
+ if (!Y(s)) return !1;
495
+ const b = new Event("combobox-item-move"), S = e == null ? void 0 : e.getState().baseElement;
496
+ return S == null || S.dispatchEvent(b), !0;
497
+ }
498
+ })), f = Ft(y({ store: e, focusOnHover: I }, f)), f;
499
+ }
500
+ ), Eo = bt(
501
+ ae(function(n) {
502
+ const r = oo(n);
503
+ return ce(Zt, r);
504
+ })
505
+ ), no = "div", ro = ie(
506
+ function(n) {
507
+ var r = n, { store: e, alwaysVisible: c } = r, d = de(r, ["store", "alwaysVisible"]);
508
+ const u = Oe(!0), T = et();
509
+ e = e || T;
510
+ const w = !!e && e === u;
511
+ fe(
512
+ e,
513
+ process.env.NODE_ENV !== "production" && "ComboboxList must receive a `store` prop or be wrapped in a ComboboxProvider component."
514
+ );
515
+ const I = z(null), K = Ee(d.id), O = e.useState("mounted"), f = Nt(O, d.hidden, c), _ = f ? N(y({}, d.style), { display: "none" }) : d.style, l = e.useState(
516
+ (h) => Array.isArray(h.selectedValue)
517
+ ), i = xt(I, "role", d.role), V = (i === "listbox" || i === "tree" || i === "grid") && l || void 0, [m, J] = Le(!1), D = e.useState("contentElement");
518
+ ue(() => {
519
+ if (!O) return;
520
+ const h = I.current;
521
+ if (!h || D !== h) return;
522
+ const C = () => {
523
+ J(!!h.querySelector("[role='listbox']"));
524
+ }, M = new MutationObserver(C);
525
+ return M.observe(h, {
526
+ subtree: !0,
527
+ childList: !0,
528
+ attributeFilter: ["role"]
529
+ }), C(), () => M.disconnect();
530
+ }, [O, D]), m || (d = y({
531
+ role: "listbox",
532
+ "aria-multiselectable": V
533
+ }, d)), d = Ae(
534
+ d,
535
+ (h) => /* @__PURE__ */ Z(tt, { value: e, children: /* @__PURE__ */ Z(ye.Provider, { value: i, children: h }) }),
536
+ [e, i]
537
+ );
538
+ const Q = K && (!u || !w) ? e.setContentElement : null;
539
+ return d = N(y({
540
+ id: K,
541
+ hidden: f
542
+ }, d), {
543
+ ref: we(Q, I, d.ref),
544
+ style: _
545
+ }), Vt(d);
546
+ }
547
+ ), wo = ae(function(n) {
548
+ const r = ro(n);
549
+ return ce(no, r);
550
+ });
551
+ export {
552
+ Io as C,
553
+ xo as T,
554
+ yo as a,
555
+ wo as b,
556
+ Eo as c,
557
+ Ut as d,
558
+ Vo as e,
559
+ ho as f,
560
+ Oo as g,
561
+ Po as h,
562
+ zt as i,
563
+ ro as u
564
+ };