@wrdagency/blockout 1.0.4 → 1.0.6

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 (198) hide show
  1. package/dist/2NBKRL7C-CzwWfv1x.js +76 -0
  2. package/dist/2RSXSRCN-rMUAytae.js +61 -0
  3. package/dist/{4CMBR7SL-xNGezbCB.js → 4CMBR7SL-ChJnawVl.js} +132 -126
  4. package/dist/{5JTVDSTH-CIreO5bC.js → 5JTVDSTH-DcfjjEya.js} +4 -4
  5. package/dist/{5VQZOHHZ-CNzYHc1X.js → 5VQZOHHZ-BN-teS5E.js} +1 -1
  6. package/dist/{6VRAQV3D-BoLhl3hf.js → 6VRAQV3D-DK_p41oq.js} +6 -6
  7. package/dist/A3WPL2ZJ-CpUtG5Sk.js +12 -0
  8. package/dist/{BM6PGYQY-Bhr7peim.js → BM6PGYQY-CkMwDqt0.js} +2 -2
  9. package/dist/Check.es-CMkTf2It.js +38 -0
  10. package/dist/{DG5U6ZEL-C7eLVyh-.js → DG5U6ZEL-GfwW2sqh.js} +3 -3
  11. package/dist/EM5CXX6A-C74NAQPE.js +13 -0
  12. package/dist/{F5MUBM3I-_HauDyEF.js → F5MUBM3I-BbDMTUwx.js} +24 -24
  13. package/dist/{G7GW6PWC-Crp1Jn-8.js → G7GW6PWC-A0eDeXMt.js} +100 -96
  14. package/dist/IWEFDH56-CvOsIcbb.js +19 -0
  15. package/dist/{J2LQO3EC-CcHJqN0I.js → J2LQO3EC-DYtZQQv6.js} +4 -3
  16. package/dist/{KFH4SEIX-D-fCkpQv.js → KFH4SEIX-BFT9WmYk.js} +3 -3
  17. package/dist/{LMDWO4NN-DdLnHzru.js → LMDWO4NN-CIZvvtic.js} +233 -203
  18. package/dist/MAXQOH4L-DBaf8WKp.js +564 -0
  19. package/dist/MR26YJYP-DacZIkgJ.js +287 -0
  20. package/dist/MTZPJQMC-DPwZ6caC.js +13 -0
  21. package/dist/{O2PQ2652-THp22K4G.js → O2PQ2652-D2GSkoLq.js} +6 -6
  22. package/dist/P7GR5CS5-5PtDURPc.js +24 -0
  23. package/dist/{PFRGBC2K-DUhGSIey.js → PFRGBC2K-B9ko--FF.js} +34 -33
  24. package/dist/Plus.es-DJ5SuqNv.js +38 -0
  25. package/dist/RS7LB2H4-BvDKQaCt.js +18 -0
  26. package/dist/RZ4GPYOB-COPqjbOz.js +37 -0
  27. package/dist/{S43UC3DV-erT1ucAd.js → S43UC3DV-CiBKpqp8.js} +3 -3
  28. package/dist/{T7VMP3TM-C-Aesx9K.js → T7VMP3TM-C0xl-w4G.js} +21 -21
  29. package/dist/TP7N7UIH-Dc0CLLi8.js +33 -0
  30. package/dist/{UQQRIHDV-DIXH69U3.js → UQQRIHDV-BBkcyl82.js} +17 -17
  31. package/dist/UYGDZTLQ-9uAEICxv.js +13 -0
  32. package/dist/VIIRIBF3-uvnIyICw.js +31 -0
  33. package/dist/WMYDSCNQ-D4CU76mX.js +61 -0
  34. package/dist/{WYCIER3C-S-jsj0wy.js → WYCIER3C-CaoIoaX7.js} +4 -4
  35. package/dist/{YV4JVR4I-BXEaRiAN.js → YV4JVR4I-w1-dnslS.js} +47 -47
  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/index4.css +1 -1
  45. package/dist/assets/style16.css +1 -1
  46. package/dist/assets/style17.css +1 -1
  47. package/dist/assets/style18.css +1 -1
  48. package/dist/assets/style19.css +1 -1
  49. package/dist/assets/style20.css +1 -1
  50. package/dist/assets/style21.css +1 -1
  51. package/dist/assets/style22.css +1 -1
  52. package/dist/assets/style23.css +1 -1
  53. package/dist/assets/style24.css +1 -1
  54. package/dist/assets/style25.css +1 -1
  55. package/dist/assets/style26.css +1 -1
  56. package/dist/assets/style27.css +1 -0
  57. package/dist/components/breadcrumbs/index.js +5 -5
  58. package/dist/components/button/row.js +4 -4
  59. package/dist/components/controls/base-popover-control/index.js +4 -4
  60. package/dist/components/controls/card-number-control/index.js +1 -1
  61. package/dist/components/controls/date-control/index.js +1 -1
  62. package/dist/components/controls/date-control/picker.js +5 -5
  63. package/dist/components/controls/index.d.ts +1 -0
  64. package/dist/components/controls/index.js +12 -10
  65. package/dist/components/controls/list-control/item.js +34 -67
  66. package/dist/components/controls/list-control/list.js +1 -1
  67. package/dist/components/controls/recurrence-control/index.js +19 -18
  68. package/dist/components/controls/select-control/control.js +26 -37
  69. package/dist/components/controls/select-control/select.js +62 -1129
  70. package/dist/components/controls/tag-control/ariakit-experimental.d.ts +7 -0
  71. package/dist/components/controls/tag-control/ariakit-experimental.js +2308 -0
  72. package/dist/components/controls/tag-control/index.d.ts +10 -0
  73. package/dist/components/controls/tag-control/index.js +134 -0
  74. package/dist/components/controls/tag-control/props.d.ts +11 -0
  75. package/dist/components/controls/tag-control/props.js +29 -0
  76. package/dist/components/controls/text-control/index.js +1 -1
  77. package/dist/components/data-view/data/apply.js +15 -15
  78. package/dist/components/data-view/data/filter.js +14 -12
  79. package/dist/components/data-view/index.js +1 -1
  80. package/dist/components/data-view/layouts/grid/empty.js +1 -1
  81. package/dist/components/data-view/layouts/grid/group.js +9 -7
  82. package/dist/components/data-view/layouts/grid/item.js +9 -7
  83. package/dist/components/data-view/layouts/grid/root.js +1 -1
  84. package/dist/components/data-view/layouts/kanban/empty.js +1 -1
  85. package/dist/components/data-view/layouts/kanban/group.js +9 -7
  86. package/dist/components/data-view/layouts/kanban/item.js +9 -7
  87. package/dist/components/data-view/layouts/kanban/root.js +1 -1
  88. package/dist/components/data-view/layouts/list/empty.js +1 -1
  89. package/dist/components/data-view/layouts/list/group.js +9 -7
  90. package/dist/components/data-view/layouts/list/item.js +9 -7
  91. package/dist/components/data-view/layouts/list/root.js +1 -1
  92. package/dist/components/data-view/layouts/table/empty.js +9 -7
  93. package/dist/components/data-view/layouts/table/group.js +10 -8
  94. package/dist/components/data-view/layouts/table/item.js +10 -8
  95. package/dist/components/data-view/layouts/table/root.js +9 -7
  96. package/dist/components/data-view/parts/body/index.js +11 -9
  97. package/dist/components/data-view/parts/controls/index.js +9 -7
  98. package/dist/components/data-view/parts/controls/search.js +9 -7
  99. package/dist/components/data-view/parts/filters/editor.js +8 -6
  100. package/dist/components/data-view/parts/filters/index.js +1 -1
  101. package/dist/components/data-view/parts/filters/list.js +39 -73
  102. package/dist/components/data-view/parts/footer/actions.js +9 -7
  103. package/dist/components/data-view/parts/footer/index.js +9 -7
  104. package/dist/components/data-view/parts/footer/selection.js +9 -7
  105. package/dist/components/data-view/parts/view-control/index.js +23 -21
  106. package/dist/components/data-view/root.js +9 -7
  107. package/dist/components/data-view/slots/group/checkbox.js +9 -7
  108. package/dist/components/data-view/slots/group/context.js +1 -1
  109. package/dist/components/data-view/slots/group/icon.js +1 -1
  110. package/dist/components/data-view/slots/group/index.js +1 -1
  111. package/dist/components/data-view/slots/group/label.js +1 -1
  112. package/dist/components/data-view/slots/index.js +3 -3
  113. package/dist/components/data-view/slots/item/actions.js +1 -1
  114. package/dist/components/data-view/slots/item/checkbox.js +9 -7
  115. package/dist/components/data-view/slots/item/depth.js +3 -3
  116. package/dist/components/data-view/slots/item/description.js +1 -1
  117. package/dist/components/data-view/slots/item/index.js +2 -2
  118. package/dist/components/data-view/slots/item/properties.js +2 -2
  119. package/dist/components/data-view/slots/item/relations.js +3 -3
  120. package/dist/components/data-view/slots/item/tags.js +1 -1
  121. package/dist/components/data-view/slots/item/thumbnail.js +1 -1
  122. package/dist/components/data-view/slots/item/title.js +1 -1
  123. package/dist/components/data-view/slots/item/util.js +2 -2
  124. package/dist/components/data-view/slots/property/field/editable.js +8 -6
  125. package/dist/components/data-view/slots/property/field/index.js +2 -2
  126. package/dist/components/data-view/slots/property/field/static.js +1 -1
  127. package/dist/components/data-view/slots/property/index.js +1 -1
  128. package/dist/components/data-view/slots/property/label.js +1 -1
  129. package/dist/components/data-view/slots/root/checkbox.js +8 -6
  130. package/dist/components/data-view/slots/root/index.js +1 -1
  131. package/dist/components/filesystem/file.js +1 -1
  132. package/dist/components/filesystem/folder.js +29 -80
  133. package/dist/components/filesystem/list.js +1 -1
  134. package/dist/components/filesystem/root.js +1 -1
  135. package/dist/components/index.js +41 -39
  136. package/dist/components/menu/index.js +14 -13
  137. package/dist/components/menu/item.js +1 -1
  138. package/dist/components/menu/items/action.js +1 -1
  139. package/dist/components/menu/items/spacer.js +4 -16
  140. package/dist/components/menu/items/submenu.js +4 -3
  141. package/dist/components/menu/items/toggle.js +1 -1
  142. package/dist/components/pagination/index.js +1 -1
  143. package/dist/components/tabs/list.js +8 -36
  144. package/dist/components/tabs/panel.js +13 -126
  145. package/dist/components/tabs/root.js +14 -166
  146. package/dist/components/tabs/tab.js +5 -79
  147. package/dist/components/toolbar/divider.js +7 -19
  148. package/dist/components/toolbar/index.js +10 -24
  149. package/dist/components/toolbar/root.js +5 -67
  150. package/dist/components/window/index.js +2 -2
  151. package/dist/{composite-provider-R5SnRc_G.js → composite-provider-B-M1AaRb.js} +2 -2
  152. package/dist/disclosure-provider-DW9RmAuE.js +61 -0
  153. package/dist/{filter-C-ZkRgt_.js → filter-GoxwLwkT.js} +14 -12
  154. package/dist/{index-DI0cEpya.js → index-C_xrLeQq.js} +20 -18
  155. package/dist/{index-BW-2OhmK.js → index-DJ2XZnew.js} +7 -5
  156. package/dist/{index-Bj4Ga50P.js → index-DpV0obFX.js} +6 -4
  157. package/dist/index.js +87 -85
  158. package/dist/item-CYpF0or4.js +58 -0
  159. package/dist/{style-tA0yiKCL.js → match-sorter.esm-MNVE8H_6.js} +1 -1
  160. package/dist/menu-button-D0chRxS0.js +416 -0
  161. package/dist/menu-separator-Cy38O3cZ.js +16 -0
  162. package/dist/{picker-BkmBjgWA.js → picker-BAQPD-c9.js} +4 -4
  163. package/dist/popover-provider-DZV1nb7Q.js +10 -0
  164. package/dist/primitives/nav-link/index.d.ts +2 -2
  165. package/dist/primitives/popover/index.js +2 -2
  166. package/dist/primitives/popover/root.js +12 -3
  167. package/dist/primitives/popover/target.js +1 -1
  168. package/dist/primitives/popover/window.js +3 -3
  169. package/dist/primitives/tooltip/index.js +10 -173
  170. package/dist/select-popover-DYAZyLp4.js +542 -0
  171. package/dist/select-value-CeoMyvpZ.js +15 -0
  172. package/dist/{sortable.esm-De3H-_AA.js → sortable.esm-BuV7eW2H.js} +4 -4
  173. package/dist/{style-C7eFpUVU.js → style-CWAa57kN.js} +1 -1
  174. package/dist/tab-DjNG1rEI.js +79 -0
  175. package/dist/tab-list-DtMnUjoy.js +33 -0
  176. package/dist/tab-panel-DdkeLgKE.js +118 -0
  177. package/dist/tab-provider-BMkHrtIK.js +158 -0
  178. package/dist/tag-remove-BVa8oSsq.js +533 -0
  179. package/dist/toolbar-B7_t1rYu.js +68 -0
  180. package/dist/toolbar-separator-DBoO5XdF.js +16 -0
  181. package/dist/tooltip-anchor-CxZWazuo.js +173 -0
  182. package/dist/utils/url.js +6 -6
  183. package/package.json +1 -1
  184. package/dist/2NBKRL7C-Cug3TzgR.js +0 -85
  185. package/dist/2RSXSRCN-Bc3g-z-i.js +0 -61
  186. package/dist/A3WPL2ZJ-D0Eh1dEB.js +0 -11
  187. package/dist/EM5CXX6A-DKxCXPnz.js +0 -14
  188. package/dist/MR26YJYP-yD1_RvCA.js +0 -283
  189. package/dist/MTZPJQMC-RLG1q394.js +0 -12
  190. package/dist/P7GR5CS5-Dub2zqTX.js +0 -22
  191. package/dist/RS7LB2H4-C0kmTjy8.js +0 -15
  192. package/dist/RZ4GPYOB-c8s_KHUk.js +0 -37
  193. package/dist/TP7N7UIH-mdk33dnV.js +0 -34
  194. package/dist/UYGDZTLQ-fOwUiOjI.js +0 -12
  195. package/dist/VIIRIBF3-DylpToFV.js +0 -18
  196. package/dist/WMYDSCNQ-D43V-JUe.js +0 -62
  197. package/dist/item-C5GtZF5t.js +0 -470
  198. package/dist/root-C7IYlG1s.js +0 -20
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { BaseControl as n } from "./components/controls/base-control/index.js";
6
6
  import { CardNumberControl as C } from "./components/controls/card-number-control/index.js";
7
7
  import { CheckboxControl as u } from "./components/controls/checkbox-control/index.js";
8
8
  import { ChoiceControl as g } from "./components/controls/choice-control/index.js";
9
- import { DateControl as d } from "./components/controls/date-control/index.js";
9
+ import { DateControl as b } from "./components/controls/date-control/index.js";
10
10
  import { ListControl as S } from "./components/controls/list-control/index.js";
11
11
  import { MarkdownControl as h } from "./components/controls/markdown-control/index.js";
12
12
  import { NumberControl as y } from "./components/controls/number-control/index.js";
@@ -15,44 +15,45 @@ import { RecurrenceControl as D } from "./components/controls/recurrence-control
15
15
  import { SelectControl as P } from "./components/controls/select-control/control.js";
16
16
  import { o as v } from "./options-Cfoqhxw2.js";
17
17
  import { Select as N } from "./components/controls/select-control/select.js";
18
- import { TextControl as A } from "./components/controls/text-control/index.js";
19
- import { TextareaControl as O } from "./components/controls/textarea-control/index.js";
20
- import { ToggleControl as z } from "./components/controls/toggle-control/index.js";
21
- import { ToggleGroupControl as W } from "./components/controls/toggle-group-control/index.js";
22
- import { DataForm as E } from "./components/data-form/index.js";
23
- import { useSchema as K, useView as Q } from "./components/data-view/api.js";
24
- import { f as X } from "./filter-C-ZkRgt_.js";
25
- import { Root as Z } from "./components/data-view/root.js";
26
- import { Filesystem as $ } from "./components/filesystem/index.js";
27
- import { Form as ro } from "./components/form/components/index.js";
28
- import { createForm as to } from "./components/form/types/form.js";
29
- import { Menu as po } from "./components/menu/index.js";
30
- import { Progress as fo } from "./components/progress/index.js";
31
- import { Shell as lo } from "./components/shell/index.js";
32
- import { Tabs as so } from "./components/tabs/index.js";
33
- import { Tag as io } from "./components/tag/index.js";
34
- import { Toolbar as co } from "./components/toolbar/index.js";
35
- import { Window as bo } from "./components/window/index.js";
36
- import { useSplitInput as So } from "./hooks/input.js";
37
- import { useModifiers as ho } from "./hooks/keyboard.js";
38
- import { useSelection as yo } from "./hooks/selection.js";
39
- import { useObjectState as ko } from "./hooks/state.js";
40
- import { useTemporaryChange as Do } from "./hooks/temporary.js";
41
- import { Colourway as Po } from "./primitives/colourway/index.js";
42
- import { Draggable as vo } from "./primitives/draggable/index.js";
43
- import { IconLabel as No } from "./primitives/icon-label/index.js";
44
- import { Link as Ao } from "./primitives/link/index.js";
45
- import { NavLink as Oo } from "./primitives/nav-link/index.js";
46
- import { Popover as zo } from "./primitives/popover/index.js";
47
- import { Resizable as Wo } from "./primitives/resizable/index.js";
48
- import { ScrollArea as Eo } from "./primitives/scroll-area/index.js";
49
- import { Symbol as Ko } from "./primitives/symbol/index.js";
50
- import { Tooltip as Uo } from "./primitives/tooltip/index.js";
51
- import { Truncate as Yo } from "./primitives/truncate/index.js";
52
- import { H1 as _o, H2 as $o, H3 as or, H4 as rr, H5 as er, H6 as tr, Heading as mr } from "./primitives/typography/heading.js";
53
- import { Paragraph as xr } from "./primitives/typography/paragraph.js";
54
- import { VisuallyHidden as ar } from "./primitives/visually-hidden/index.js";
55
- import { getRandomTheme as nr } from "./primitives/colourway/util.js";
18
+ import { TagControl as A } from "./components/controls/tag-control/index.js";
19
+ import { TextControl as O } from "./components/controls/text-control/index.js";
20
+ import { TextareaControl as z } from "./components/controls/textarea-control/index.js";
21
+ import { ToggleControl as W } from "./components/controls/toggle-control/index.js";
22
+ import { ToggleGroupControl as E } from "./components/controls/toggle-group-control/index.js";
23
+ import { DataForm as K } from "./components/data-form/index.js";
24
+ import { useSchema as U, useView as X } from "./components/data-view/api.js";
25
+ import { f as Z } from "./filter-GoxwLwkT.js";
26
+ import { Root as $ } from "./components/data-view/root.js";
27
+ import { Filesystem as ro } from "./components/filesystem/index.js";
28
+ import { Form as to } from "./components/form/components/index.js";
29
+ import { createForm as po } from "./components/form/types/form.js";
30
+ import { Menu as fo } from "./components/menu/index.js";
31
+ import { Progress as lo } from "./components/progress/index.js";
32
+ import { Shell as so } from "./components/shell/index.js";
33
+ import { Tabs as io } from "./components/tabs/index.js";
34
+ import { Tag as co } from "./components/tag/index.js";
35
+ import { Toolbar as To } from "./components/toolbar/index.js";
36
+ import { Window as So } from "./components/window/index.js";
37
+ import { useSplitInput as ho } from "./hooks/input.js";
38
+ import { useModifiers as yo } from "./hooks/keyboard.js";
39
+ import { useSelection as ko } from "./hooks/selection.js";
40
+ import { useObjectState as Do } from "./hooks/state.js";
41
+ import { useTemporaryChange as Po } from "./hooks/temporary.js";
42
+ import { Colourway as vo } from "./primitives/colourway/index.js";
43
+ import { Draggable as No } from "./primitives/draggable/index.js";
44
+ import { IconLabel as Ao } from "./primitives/icon-label/index.js";
45
+ import { Link as Oo } from "./primitives/link/index.js";
46
+ import { NavLink as zo } from "./primitives/nav-link/index.js";
47
+ import { Popover as Wo } from "./primitives/popover/index.js";
48
+ import { Resizable as Eo } from "./primitives/resizable/index.js";
49
+ import { ScrollArea as Ko } from "./primitives/scroll-area/index.js";
50
+ import { Symbol as Uo } from "./primitives/symbol/index.js";
51
+ import { Tooltip as Yo } from "./primitives/tooltip/index.js";
52
+ import { Truncate as _o } from "./primitives/truncate/index.js";
53
+ import { H1 as or, H2 as rr, H3 as er, H4 as tr, H5 as mr, H6 as pr, Heading as xr } from "./primitives/typography/heading.js";
54
+ import { Paragraph as ar } from "./primitives/typography/paragraph.js";
55
+ import { VisuallyHidden as nr } from "./primitives/visually-hidden/index.js";
56
+ import { getRandomTheme as Cr } from "./primitives/colourway/util.js";
56
57
  import './assets/index.css';export {
57
58
  e as Avatar,
58
59
  m as Badge,
@@ -62,58 +63,59 @@ import './assets/index.css';export {
62
63
  C as CardNumberControl,
63
64
  u as CheckboxControl,
64
65
  g as ChoiceControl,
65
- Po as Colourway,
66
- E as DataForm,
67
- Z as DataView,
68
- d as DateControl,
69
- vo as Draggable,
70
- $ as Filesystem,
71
- X as Filters,
72
- ro as Form,
73
- _o as H1,
74
- $o as H2,
75
- or as H3,
76
- rr as H4,
77
- er as H5,
78
- tr as H6,
79
- mr as Heading,
80
- No as IconLabel,
81
- Ao as Link,
66
+ vo as Colourway,
67
+ K as DataForm,
68
+ $ as DataView,
69
+ b as DateControl,
70
+ No as Draggable,
71
+ ro as Filesystem,
72
+ Z as Filters,
73
+ to as Form,
74
+ or as H1,
75
+ rr as H2,
76
+ er as H3,
77
+ tr as H4,
78
+ mr as H5,
79
+ pr as H6,
80
+ xr as Heading,
81
+ Ao as IconLabel,
82
+ Oo as Link,
82
83
  S as ListControl,
83
84
  h as MarkdownControl,
84
- po as Menu,
85
- Oo as NavLink,
85
+ fo as Menu,
86
+ zo as NavLink,
86
87
  y as NumberControl,
87
88
  v as Options,
88
- xr as Paragraph,
89
+ ar as Paragraph,
89
90
  k as PasswordControl,
90
- zo as Popover,
91
- fo as Progress,
91
+ Wo as Popover,
92
+ lo as Progress,
92
93
  D as RecurrenceControl,
93
- Wo as Resizable,
94
- Eo as ScrollArea,
94
+ Eo as Resizable,
95
+ Ko as ScrollArea,
95
96
  N as Select,
96
97
  P as SelectControl,
97
- lo as Shell,
98
- Ko as Symbol,
99
- so as Tabs,
100
- io as Tag,
101
- A as TextControl,
102
- O as TextareaControl,
103
- z as ToggleControl,
104
- W as ToggleGroupControl,
105
- co as Toolbar,
106
- Uo as Tooltip,
107
- Yo as Truncate,
108
- ar as VisuallyHidden,
109
- bo as Window,
110
- to as createForm,
111
- nr as getRandomTheme,
112
- ho as useModifiers,
113
- ko as useObjectState,
114
- K as useSchema,
115
- yo as useSelection,
116
- So as useSplitInput,
117
- Do as useTemporaryChange,
118
- Q as useView
98
+ so as Shell,
99
+ Uo as Symbol,
100
+ io as Tabs,
101
+ co as Tag,
102
+ A as TagControl,
103
+ O as TextControl,
104
+ z as TextareaControl,
105
+ W as ToggleControl,
106
+ E as ToggleGroupControl,
107
+ To as Toolbar,
108
+ Yo as Tooltip,
109
+ _o as Truncate,
110
+ nr as VisuallyHidden,
111
+ So as Window,
112
+ po as createForm,
113
+ Cr as getRandomTheme,
114
+ yo as useModifiers,
115
+ Do as useObjectState,
116
+ U as useSchema,
117
+ ko as useSelection,
118
+ ho as useSplitInput,
119
+ Po as useTemporaryChange,
120
+ X as useView
119
121
  };
@@ -0,0 +1,58 @@
1
+ import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
+ import { ActionMenuItem as s } from "./components/menu/items/action.js";
3
+ import { SeparatorMenuItem as a } from "./components/menu/items/spacer.js";
4
+ import { e as i } from "./CaretRight.es-vnr78BGI.js";
5
+ import { EmptyIcon as u } from "./components/menu/icon.js";
6
+ import { ToggleMenuItem as _ } from "./components/menu/items/toggle.js";
7
+ import { u as p, M as l, a as d, b as M } from "./menu-button-D0chRxS0.js";
8
+ import { M as h } from "./2NBKRL7C-CzwWfv1x.js";
9
+ const b = ({ item: n }) => {
10
+ const o = n.icon || u, t = p();
11
+ return /* @__PURE__ */ m(l, { store: t, children: [
12
+ /* @__PURE__ */ m(
13
+ d,
14
+ {
15
+ className: "component-menu__item component-menu__item--submenu",
16
+ render: /* @__PURE__ */ e(h, {}),
17
+ disabled: n.disabled,
18
+ children: [
19
+ /* @__PURE__ */ e(o, { className: "component-menu__item__icon component-menu__item__icon--pictoral" }),
20
+ /* @__PURE__ */ m("div", { className: "component-menu__item__text", children: [
21
+ /* @__PURE__ */ m("div", { className: "component-menu__item__text__header", children: [
22
+ /* @__PURE__ */ e("div", { className: "component-menu__item__label", children: n.label }),
23
+ /* @__PURE__ */ e(i, { className: "component-menu__item__icon component-menu__item__icon--submenu-indicator" })
24
+ ] }),
25
+ /* @__PURE__ */ e("p", { className: "component-menu__item__description", children: n.description })
26
+ ] })
27
+ ]
28
+ }
29
+ ),
30
+ /* @__PURE__ */ e(
31
+ M,
32
+ {
33
+ gutter: 12,
34
+ shift: 0,
35
+ wrapperProps: {
36
+ className: "component-menu__menu-wrapper"
37
+ },
38
+ className: "component-menu",
39
+ children: n.children.map((r, c) => /* @__PURE__ */ e(f, { item: r }, c))
40
+ }
41
+ )
42
+ ] });
43
+ }, f = ({ item: n }) => {
44
+ switch (n.type) {
45
+ case "action":
46
+ return /* @__PURE__ */ e(s, { item: n });
47
+ case "toggle":
48
+ return /* @__PURE__ */ e(_, { item: n });
49
+ case "submenu":
50
+ return /* @__PURE__ */ e(b, { item: n });
51
+ case "separator":
52
+ return /* @__PURE__ */ e(a, {});
53
+ }
54
+ };
55
+ export {
56
+ f as M,
57
+ b as S
58
+ };
@@ -1,5 +1,5 @@
1
1
  import { g as k } from "./_commonjsHelpers-C6fGbg64.js";
2
- import './assets/style25.css';var I = { exports: {} }, p;
2
+ var I = { exports: {} }, p;
3
3
  function T() {
4
4
  if (p) return I.exports;
5
5
  p = 1;
@@ -0,0 +1,416 @@
1
+ import { b as fe, c as me, d as q, M as pe, e as re } from "./VIIRIBF3-uvnIyICw.js";
2
+ import { u as se } from "./T7VMP3TM-C0xl-w4G.js";
3
+ import { i as be } from "./KFH4SEIX-BFT9WmYk.js";
4
+ import { u as ve } from "./5JTVDSTH-DcfjjEya.js";
5
+ import { m as he, o as Me, p as Se, t as we, c as ye, s as te, e as ne, b as ge, d as Ee, a as H } from "./YV4JVR4I-w1-dnslS.js";
6
+ import { S as Oe, T as B, V as I, U as x, a5 as Pe, m as F, o as b, W as Ae, c as Q, _ as N, i as G, q as ae, e as $, l as ue, n as J, f as X, a as Y, a6 as xe, a4 as Fe, t as _e, Q as Ce, a0 as He } from "./LMDWO4NN-CIZvvtic.js";
7
+ import { useState as ie, useEffect as le, useRef as ce, createRef as De, useMemo as ke } from "react";
8
+ import { jsx as j } from "react/jsx-runtime";
9
+ import { c as Ve, u as Ie, a as Le, b as Re } from "./MR26YJYP-DacZIkgJ.js";
10
+ import { c as Te, R as Be } from "./G7GW6PWC-A0eDeXMt.js";
11
+ import { a as z } from "./PFRGBC2K-B9ko--FF.js";
12
+ import { c as Ne, b as Ke } from "./4CMBR7SL-ChJnawVl.js";
13
+ import { a as Ue } from "./S43UC3DV-CiBKpqp8.js";
14
+ import { u as We } from "./WMYDSCNQ-D4CU76mX.js";
15
+ function $e(r = {}) {
16
+ var n = r, {
17
+ combobox: t,
18
+ parent: e,
19
+ menubar: v
20
+ } = n, i = Oe(n, [
21
+ "combobox",
22
+ "parent",
23
+ "menubar"
24
+ ]);
25
+ const s = !!v && !e, o = he(
26
+ i.store,
27
+ Se(e, ["values"]),
28
+ Me(t, [
29
+ "arrowElement",
30
+ "anchorElement",
31
+ "contentElement",
32
+ "popoverElement",
33
+ "disclosureElement"
34
+ ])
35
+ );
36
+ we(i, o);
37
+ const p = o.getState(), d = Ne(B(x({}, i), {
38
+ store: o,
39
+ orientation: I(
40
+ i.orientation,
41
+ p.orientation,
42
+ "vertical"
43
+ )
44
+ })), a = Ve(B(x({}, i), {
45
+ store: o,
46
+ placement: I(
47
+ i.placement,
48
+ p.placement,
49
+ "bottom-start"
50
+ ),
51
+ timeout: I(
52
+ i.timeout,
53
+ p.timeout,
54
+ s ? 0 : 150
55
+ ),
56
+ hideTimeout: I(i.hideTimeout, p.hideTimeout, 0)
57
+ })), h = B(x(x({}, d.getState()), a.getState()), {
58
+ initialFocus: I(p.initialFocus, "container"),
59
+ values: I(
60
+ i.values,
61
+ p.values,
62
+ i.defaultValues,
63
+ {}
64
+ )
65
+ }), f = ye(h, d, a, o);
66
+ return te(
67
+ f,
68
+ () => ne(f, ["mounted"], (u) => {
69
+ u.mounted || f.setState("activeId", null);
70
+ })
71
+ ), te(
72
+ f,
73
+ () => ne(e, ["orientation"], (u) => {
74
+ f.setState(
75
+ "placement",
76
+ u.orientation === "vertical" ? "right-start" : "bottom-start"
77
+ );
78
+ })
79
+ ), B(x(x(x({}, d), a), f), {
80
+ combobox: t,
81
+ parent: e,
82
+ menubar: v,
83
+ hideAll: () => {
84
+ a.hide(), e == null || e.hideAll();
85
+ },
86
+ setInitialFocus: (u) => f.setState("initialFocus", u),
87
+ setValues: (u) => f.setState("values", u),
88
+ setValue: (u, O) => {
89
+ u !== "__proto__" && u !== "constructor" && (Array.isArray(u) || f.setState("values", (m) => {
90
+ const S = m[u], g = Pe(O, S);
91
+ return g === S ? m : B(x({}, m), {
92
+ [u]: g !== void 0 && g
93
+ });
94
+ }));
95
+ }
96
+ });
97
+ }
98
+ function je(r, n, t) {
99
+ return Ae(n, [t.combobox, t.parent, t.menubar]), Ee(r, t, "values", "setValues"), Object.assign(
100
+ Ie(
101
+ Ke(r, n, t),
102
+ n,
103
+ t
104
+ ),
105
+ {
106
+ combobox: t.combobox,
107
+ parent: t.parent,
108
+ menubar: t.menubar
109
+ }
110
+ );
111
+ }
112
+ function qe(r = {}) {
113
+ const n = fe(), t = me(), e = Ue();
114
+ r = F(b({}, r), {
115
+ parent: r.parent !== void 0 ? r.parent : n,
116
+ menubar: r.menubar !== void 0 ? r.menubar : t,
117
+ combobox: r.combobox !== void 0 ? r.combobox : e
118
+ });
119
+ const [v, i] = ge($e, r);
120
+ return je(v, i, r);
121
+ }
122
+ var ze = "div";
123
+ function Qe(r) {
124
+ var n = r, { store: t } = n, e = N(n, ["store"]);
125
+ const [v, i] = ie(void 0), s = e["aria-label"], o = H(t, "disclosureElement"), p = H(t, "contentElement");
126
+ return le(() => {
127
+ const d = o;
128
+ if (!d) return;
129
+ const a = p;
130
+ if (!a) return;
131
+ s || a.hasAttribute("aria-label") ? i(void 0) : d.id && i(d.id);
132
+ }, [s, o, p]), v;
133
+ }
134
+ var de = Q(
135
+ function(n) {
136
+ var t = n, { store: e, alwaysVisible: v, composite: i } = t, s = N(t, ["store", "alwaysVisible", "composite"]);
137
+ const o = q();
138
+ e = e || o, G(
139
+ e,
140
+ process.env.NODE_ENV !== "production" && "MenuList must receive a `store` prop or be wrapped in a MenuProvider component."
141
+ );
142
+ const p = e.parent, d = e.menubar, a = !!p, h = ae(s.id), f = s.onKeyDown, u = e.useState(
143
+ (c) => c.placement.split("-")[0]
144
+ ), O = e.useState(
145
+ (c) => c.orientation === "both" ? void 0 : c.orientation
146
+ ), m = O !== "vertical", S = H(
147
+ d,
148
+ (c) => !!c && c.orientation !== "vertical"
149
+ ), g = $((c) => {
150
+ if (f == null || f(c), !c.defaultPrevented) {
151
+ if (a || d && !m) {
152
+ const w = {
153
+ ArrowRight: () => u === "left" && !m,
154
+ ArrowLeft: () => u === "right" && !m,
155
+ ArrowUp: () => u === "bottom" && m,
156
+ ArrowDown: () => u === "top" && m
157
+ }[c.key];
158
+ if (w != null && w())
159
+ return c.stopPropagation(), c.preventDefault(), e == null ? void 0 : e.hide();
160
+ }
161
+ if (d) {
162
+ const w = {
163
+ ArrowRight: () => {
164
+ if (S)
165
+ return d.next();
166
+ },
167
+ ArrowLeft: () => {
168
+ if (S)
169
+ return d.previous();
170
+ },
171
+ ArrowDown: () => {
172
+ if (!S)
173
+ return d.next();
174
+ },
175
+ ArrowUp: () => {
176
+ if (!S)
177
+ return d.previous();
178
+ }
179
+ }[c.key], A = w == null ? void 0 : w();
180
+ A !== void 0 && (c.stopPropagation(), c.preventDefault(), d.move(A));
181
+ }
182
+ }
183
+ });
184
+ s = ue(
185
+ s,
186
+ (c) => /* @__PURE__ */ j(pe, { value: e, children: c }),
187
+ [e]
188
+ );
189
+ const L = Qe(b({ store: e }, s)), R = e.useState("mounted"), _ = be(R, s.hidden, v), D = _ ? F(b({}, s.style), { display: "none" }) : s.style;
190
+ s = F(b({
191
+ id: h,
192
+ "aria-labelledby": L,
193
+ hidden: _
194
+ }, s), {
195
+ ref: J(h ? e.setContentElement : null, s.ref),
196
+ style: D,
197
+ onKeyDown: g
198
+ });
199
+ const P = !!e.combobox;
200
+ return i = i ?? !P, i && (s = b({
201
+ role: "menu",
202
+ "aria-orientation": O
203
+ }, s)), s = ve(b({ store: e, composite: i }, s)), s = se(b({ store: e, typeahead: !P }, s)), s;
204
+ }
205
+ ), pt = X(function(n) {
206
+ const t = de(n);
207
+ return Y(ze, t);
208
+ }), Ge = "div", Je = Q(function(n) {
209
+ var t = n, {
210
+ store: e,
211
+ modal: v = !1,
212
+ portal: i = !!v,
213
+ hideOnEscape: s = !0,
214
+ autoFocusOnShow: o = !0,
215
+ hideOnHoverOutside: p,
216
+ alwaysVisible: d
217
+ } = t, a = N(t, [
218
+ "store",
219
+ "modal",
220
+ "portal",
221
+ "hideOnEscape",
222
+ "autoFocusOnShow",
223
+ "hideOnHoverOutside",
224
+ "alwaysVisible"
225
+ ]);
226
+ const h = q();
227
+ e = e || h, G(
228
+ e,
229
+ process.env.NODE_ENV !== "production" && "Menu must receive a `store` prop or be wrapped in a MenuProvider component."
230
+ );
231
+ const f = ce(null), u = e.parent, O = e.menubar, m = !!u, S = !!O && !m;
232
+ a = F(b({}, a), {
233
+ ref: J(f, a.ref)
234
+ });
235
+ const g = de(b({
236
+ store: e,
237
+ alwaysVisible: d
238
+ }, a)), { "aria-labelledby": L } = g;
239
+ a = N(g, ["aria-labelledby"]);
240
+ const [_, D] = ie(), P = e.useState("autoFocusOnShow"), c = e.useState("initialFocus"), k = e.useState("baseElement"), w = e.useState("renderedItems");
241
+ le(() => {
242
+ let E = !1;
243
+ return D((M) => {
244
+ var U, Z, ee;
245
+ if (E || !P) return;
246
+ if ((U = M == null ? void 0 : M.current) != null && U.isConnected) return M;
247
+ const W = De();
248
+ switch (c) {
249
+ // TODO: Refactor
250
+ case "first":
251
+ W.current = ((Z = w.find((T) => !T.disabled && T.element)) == null ? void 0 : Z.element) || null;
252
+ break;
253
+ case "last":
254
+ W.current = ((ee = [...w].reverse().find((T) => !T.disabled && T.element)) == null ? void 0 : ee.element) || null;
255
+ break;
256
+ default:
257
+ W.current = k;
258
+ }
259
+ return W;
260
+ }), () => {
261
+ E = !0;
262
+ };
263
+ }, [e, P, c, w, k]);
264
+ const A = m ? !1 : v, l = !!o, y = !!_ || !!a.initialFocus || !!A, V = H(
265
+ e.combobox || e,
266
+ "contentElement"
267
+ ), C = H(
268
+ (u == null ? void 0 : u.combobox) || u,
269
+ "contentElement"
270
+ ), K = ke(() => {
271
+ if (!C || !V) return;
272
+ const E = V.getAttribute("role"), M = C.getAttribute("role");
273
+ if (!((M === "menu" || M === "menubar") && E === "menu"))
274
+ return C;
275
+ }, [V, C]);
276
+ return K !== void 0 && (a = b({
277
+ preserveTabOrderAnchor: K
278
+ }, a)), a = Le(F(b({
279
+ store: e,
280
+ alwaysVisible: d,
281
+ initialFocus: _,
282
+ autoFocusOnShow: l ? y && o : P || !!A
283
+ }, a), {
284
+ hideOnEscape(E) {
285
+ return Fe(s, E) ? !1 : (e == null || e.hideAll(), !0);
286
+ },
287
+ hideOnHoverOutside(E) {
288
+ const M = e == null ? void 0 : e.getState().disclosureElement;
289
+ return (typeof p == "function" ? p(E) : p ?? (m ? !0 : S ? M ? !z(M) : !0 : !1)) ? E.defaultPrevented || !m || !M || (xe(M, "mouseout", E), !z(M)) ? !0 : (requestAnimationFrame(() => {
290
+ z(M) || e == null || e.hide();
291
+ }), !1) : !1;
292
+ },
293
+ modal: A,
294
+ portal: i,
295
+ backdrop: m ? !1 : a.backdrop
296
+ })), a = b({
297
+ "aria-labelledby": L
298
+ }, a), a;
299
+ }), bt = Te(
300
+ X(function(n) {
301
+ const t = Je(n);
302
+ return Y(Ge, t);
303
+ }),
304
+ q
305
+ );
306
+ function vt(r = {}) {
307
+ const n = qe(r);
308
+ return /* @__PURE__ */ j(re, { value: n, children: r.children });
309
+ }
310
+ var Xe = "button";
311
+ function Ye(r, n) {
312
+ return {
313
+ ArrowDown: n === "bottom" || n === "top" ? "first" : !1,
314
+ ArrowUp: n === "bottom" || n === "top" ? "last" : !1,
315
+ ArrowRight: n === "right" ? "first" : !1,
316
+ ArrowLeft: n === "left" ? "first" : !1
317
+ }[r.key];
318
+ }
319
+ function oe(r, n) {
320
+ return !!(r != null && r.some((t) => !t.element || t.element === n ? !1 : t.element.getAttribute("aria-expanded") === "true"));
321
+ }
322
+ var Ze = Q(
323
+ function(n) {
324
+ var t = n, {
325
+ store: e,
326
+ focusable: v,
327
+ accessibleWhenDisabled: i,
328
+ showOnHover: s
329
+ } = t, o = N(t, [
330
+ "store",
331
+ "focusable",
332
+ "accessibleWhenDisabled",
333
+ "showOnHover"
334
+ ]);
335
+ const p = q();
336
+ e = e || p, G(
337
+ e,
338
+ process.env.NODE_ENV !== "production" && "MenuButton must receive a `store` prop or be wrapped in a MenuProvider component."
339
+ );
340
+ const d = ce(null), a = e.parent, h = e.menubar, f = !!a, u = !!h && !f, O = _e(o), m = () => {
341
+ const l = d.current;
342
+ l && (e == null || e.setDisclosureElement(l), e == null || e.setAnchorElement(l), e == null || e.show());
343
+ }, S = o.onFocus, g = $((l) => {
344
+ if (S == null || S(l), O || l.defaultPrevented || (e == null || e.setAutoFocusOnShow(!1), e == null || e.setActiveId(null), !h) || !u) return;
345
+ const { items: y } = h.getState();
346
+ oe(y, l.currentTarget) && m();
347
+ }), L = H(
348
+ e,
349
+ (l) => l.placement.split("-")[0]
350
+ ), R = o.onKeyDown, _ = $((l) => {
351
+ if (R == null || R(l), O || l.defaultPrevented) return;
352
+ const y = Ye(l, L);
353
+ y && (l.preventDefault(), m(), e == null || e.setAutoFocusOnShow(!0), e == null || e.setInitialFocus(y));
354
+ }), D = o.onClick, P = $((l) => {
355
+ if (D == null || D(l), l.defaultPrevented || !e) return;
356
+ const y = !l.detail, { open: V } = e.getState();
357
+ (!V || y) && ((!f || y) && e.setAutoFocusOnShow(!0), e.setInitialFocus(y ? "first" : "container")), f && m();
358
+ });
359
+ o = ue(
360
+ o,
361
+ (l) => /* @__PURE__ */ j(re, { value: e, children: l }),
362
+ [e]
363
+ ), f && (o = F(b({}, o), {
364
+ render: /* @__PURE__ */ j(Be.div, { render: o.render })
365
+ }));
366
+ const c = ae(o.id), k = H(
367
+ (a == null ? void 0 : a.combobox) || a,
368
+ "contentElement"
369
+ ), w = f || u ? Ce(k, "menuitem") : void 0, A = e.useState("contentElement");
370
+ return o = F(b({
371
+ id: c,
372
+ role: w,
373
+ "aria-haspopup": He(A, "menu")
374
+ }, o), {
375
+ ref: J(d, o.ref),
376
+ onFocus: g,
377
+ onKeyDown: _,
378
+ onClick: P
379
+ }), o = Re(F(b({
380
+ store: e,
381
+ focusable: v,
382
+ accessibleWhenDisabled: i
383
+ }, o), {
384
+ showOnHover: (l) => {
385
+ if (!(() => {
386
+ if (typeof s == "function") return s(l);
387
+ if (s != null) return s;
388
+ if (f) return !0;
389
+ if (!h) return !1;
390
+ const { items: K } = h.getState();
391
+ return u && oe(K);
392
+ })()) return !1;
393
+ const C = u ? h : a;
394
+ return C && C.setActiveId(l.currentTarget.id), !0;
395
+ }
396
+ })), o = We(b({
397
+ store: e,
398
+ toggleOnClick: !f,
399
+ focusable: v,
400
+ accessibleWhenDisabled: i
401
+ }, o)), o = se(b({
402
+ store: e,
403
+ typeahead: u
404
+ }, o)), o;
405
+ }
406
+ ), ht = X(function(n) {
407
+ const t = Ze(n);
408
+ return Y(Xe, t);
409
+ });
410
+ export {
411
+ vt as M,
412
+ ht as a,
413
+ bt as b,
414
+ pt as c,
415
+ qe as u
416
+ };