@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
@@ -1,29 +1,30 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
2
  import { cn as d } from "../../utils/css.js";
3
- import { useState as w } from "react";
4
- import { Button as n } from "../button/index.js";
5
- import { M, a as _, b as h, c as v } from "../../item-C5GtZF5t.js";
6
- import '../../assets/style19.css';/* empty css */
7
- const B = ({
8
- className: r,
3
+ import { useState as M } from "react";
4
+ import { Button as r } from "../button/index.js";
5
+ import { M as w } from "../../item-CYpF0or4.js";
6
+ import '../../assets/style21.css';/* empty css */
7
+ import { M as _, a as h, b as v } from "../../menu-button-D0chRxS0.js";
8
+ const I = ({
9
+ className: n,
9
10
  iconOnly: t = !1,
10
11
  items: m,
11
12
  variant: s,
12
13
  size: a,
13
14
  children: p
14
15
  }) => {
15
- const [o, u] = w(!1), c = t ? n.Icon : n;
16
- return /* @__PURE__ */ l(M, { open: o, setOpen: u, children: [
16
+ const [o, u] = M(!1), c = t ? r.Icon : r;
17
+ return /* @__PURE__ */ l(_, { open: o, setOpen: u, children: [
17
18
  /* @__PURE__ */ e(
18
- _,
19
+ h,
19
20
  {
20
- className: d("component-menu__button", r),
21
+ className: d("component-menu__button", n),
21
22
  render: /* @__PURE__ */ e(c, { variant: s, size: a }),
22
23
  children: p
23
24
  }
24
25
  ),
25
26
  o && /* @__PURE__ */ e(
26
- h,
27
+ v,
27
28
  {
28
29
  wrapperProps: {
29
30
  className: "component-menu__menu-wrapper"
@@ -33,11 +34,11 @@ const B = ({
33
34
  gutter: 8,
34
35
  overflowPadding: 4,
35
36
  className: "component-menu__window",
36
- children: m.map((i, f) => /* @__PURE__ */ e(v, { item: i }, f))
37
+ children: m.map((i, f) => /* @__PURE__ */ e(w, { item: i }, f))
37
38
  }
38
39
  )
39
40
  ] });
40
41
  };
41
42
  export {
42
- B as Menu
43
+ I as Menu
43
44
  };
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "./items/action.js";
3
3
  import "./items/spacer.js";
4
- import { c as e } from "../../item-C5GtZF5t.js";
4
+ import { M as e } from "../../item-CYpF0or4.js";
5
5
  import "./items/toggle.js";
6
6
  export {
7
7
  e as MenuItem
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { EmptyIcon as c } from "../icon.js";
3
- import { M as t } from "../../../2NBKRL7C-Cug3TzgR.js";
3
+ import { M as t } from "../../../2NBKRL7C-CzwWfv1x.js";
4
4
  const l = ({ item: n }) => {
5
5
  const m = n.icon || c;
6
6
  return /* @__PURE__ */ o(
@@ -1,18 +1,6 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { u } from "../../../VIIRIBF3-DylpToFV.js";
3
- import { u as p } from "../../../TP7N7UIH-mdk33dnV.js";
4
- import { f as m, c, a as f, _, o as i } from "../../../LMDWO4NN-DdLnHzru.js";
5
- var M = "hr", S = c(
6
- function(e) {
7
- var r = e, { store: o } = r, a = _(r, ["store"]);
8
- const s = u();
9
- return o = o || s, a = p(i({ store: o }, a)), a;
10
- }
11
- ), l = m(function(e) {
12
- const r = S(e);
13
- return f(M, r);
14
- });
15
- const h = () => /* @__PURE__ */ n(l, { className: "component-menu__separator" });
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { M as e } from "../../../menu-separator-Cy38O3cZ.js";
3
+ const a = () => /* @__PURE__ */ r(e, { className: "component-menu__separator" });
16
4
  export {
17
- h as SeparatorMenuItem
5
+ a as SeparatorMenuItem
18
6
  };
@@ -1,8 +1,9 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../../CaretRight.es-vnr78BGI.js";
3
3
  import "../icon.js";
4
- import { S as i } from "../../../item-C5GtZF5t.js";
5
- import "../../../2NBKRL7C-Cug3TzgR.js";
4
+ import { S as u } from "../../../item-CYpF0or4.js";
5
+ import "../../../menu-button-D0chRxS0.js";
6
+ import "../../../2NBKRL7C-CzwWfv1x.js";
6
7
  export {
7
- i as SubmenuMenuItem
8
+ u as SubmenuMenuItem
8
9
  };
@@ -3,7 +3,7 @@ import { cn as r } from "../../../utils/css.js";
3
3
  import { r as a, a as i } from "../../../Square.es-KJLdY11q.js";
4
4
  import "react";
5
5
  import { EmptyIcon as p } from "../icon.js";
6
- import { M as d } from "../../../2NBKRL7C-Cug3TzgR.js";
6
+ import { M as d } from "../../../2NBKRL7C-CzwWfv1x.js";
7
7
  const x = ({ item: e }) => {
8
8
  const t = e.icon || p, s = () => {
9
9
  var _, m, l;
@@ -4,7 +4,7 @@ import { cn as p } from "../../utils/css.js";
4
4
  import { noop as d } from "../../utils/noop.js";
5
5
  import { t as _ } from "../../CaretLeft.es-C1wX08tw.js";
6
6
  import { e as h } from "../../CaretRight.es-vnr78BGI.js";
7
- import '../../assets/index16.css';const I = ({
7
+ import '../../assets/index17.css';const I = ({
8
8
  className: s,
9
9
  onPaginate: m = d,
10
10
  page: t,
@@ -1,42 +1,14 @@
1
- import { jsx as n } from "react/jsx-runtime";
1
+ import { jsx as s } from "react/jsx-runtime";
2
2
  import { cn as m } from "../../utils/css.js";
3
- import { u, T as b } from "../../UYGDZTLQ-fOwUiOjI.js";
4
- import { u as f } from "../../5JTVDSTH-CIreO5bC.js";
5
- import { f as l, c as v, a as d, _ as T, i as _, l as L, o as i } from "../../LMDWO4NN-DdLnHzru.js";
6
- var x = "div", E = v(
7
- function(r) {
8
- var e = r, { store: t } = e, o = T(e, ["store"]);
9
- const p = u();
10
- t = t || p, _(
11
- t,
12
- process.env.NODE_ENV !== "production" && "TabList must receive a `store` prop or be wrapped in a TabProvider component."
13
- );
14
- const c = t.useState(
15
- (a) => a.orientation === "both" ? void 0 : a.orientation
16
- );
17
- return o = L(
18
- o,
19
- (a) => /* @__PURE__ */ n(b, { value: t, children: a }),
20
- [t]
21
- ), t.composite && (o = i({
22
- focusable: !1
23
- }, o)), o = i({
24
- role: "tablist",
25
- "aria-orientation": c
26
- }, o), o = f(i({ store: t }, o)), o;
27
- }
28
- ), N = l(function(r) {
29
- const e = E(r);
30
- return d(x, e);
31
- });
32
- const R = ({ className: s, children: r, style: e }) => /* @__PURE__ */ n(
33
- N,
3
+ import { T as i } from "../../tab-list-DtMnUjoy.js";
4
+ const c = ({ className: t, children: o, style: r }) => /* @__PURE__ */ s(
5
+ i,
34
6
  {
35
- className: m("component-tabs__list", s),
36
- style: e,
37
- children: r
7
+ className: m("component-tabs__list", t),
8
+ style: r,
9
+ children: o
38
10
  }
39
11
  );
40
12
  export {
41
- R as List
13
+ c as List
42
14
  };
@@ -1,133 +1,20 @@
1
- import { jsx as S } from "react/jsx-runtime";
2
- import { cn as A } from "../../utils/css.js";
3
- import { u as K, T as O } from "../../UYGDZTLQ-fOwUiOjI.js";
4
- import { u as j } from "../../KFH4SEIX-D-fCkpQv.js";
5
- import { u as V } from "../../WYCIER3C-S-jsj0wy.js";
6
- import { u as q } from "../../RZ4GPYOB-c8s_KHUk.js";
7
- import { g as F, u as W } from "../../PFRGBC2K-DUhGSIey.js";
8
- import { a as T } from "../../YV4JVR4I-BXEaRiAN.js";
9
- import { f as z, c as B, a as G, _ as J, i as Q, q as U, e as h, m as _, o as d, l as X, n as Y } from "../../LMDWO4NN-DdLnHzru.js";
10
- import { useRef as w, useEffect as R, useState as Z, useCallback as $ } from "react";
11
- var ee = "div", te = B(
12
- function(c) {
13
- var a = c, {
14
- store: t,
15
- unmountOnHide: C,
16
- tabId: p,
17
- getItem: b,
18
- scrollRestoration: v,
19
- scrollElement: l
20
- } = a, r = J(a, [
21
- "store",
22
- "unmountOnHide",
23
- "tabId",
24
- "getItem",
25
- "scrollRestoration",
26
- "scrollElement"
27
- ]);
28
- const D = K();
29
- t = t || D, Q(
30
- t,
31
- process.env.NODE_ENV !== "production" && "TabPanel must receive a `store` prop or be wrapped in a TabProvider component."
32
- );
33
- const I = w(null), m = U(r.id), s = T(
34
- t.panels,
35
- () => {
36
- var e;
37
- return p || ((e = t == null ? void 0 : t.panels.item(m)) == null ? void 0 : e.tabId);
38
- }
39
- ), k = T(
40
- t,
41
- (e) => !!s && e.selectedId === s
42
- ), g = V({ open: k }), P = T(g, "mounted"), E = w(
43
- /* @__PURE__ */ new Map()
44
- ), x = h(() => {
45
- const e = I.current;
46
- return e ? l ? typeof l == "function" ? l(e) : "current" in l ? l.current : l : e : null;
47
- });
48
- R(() => {
49
- var e, o;
50
- if (!v || !P) return;
51
- const n = x();
52
- if (!n) return;
53
- if (v === "reset") {
54
- n.scroll(0, 0);
55
- return;
56
- }
57
- if (!s) return;
58
- const u = E.current.get(s);
59
- n.scroll((e = u == null ? void 0 : u.x) != null ? e : 0, (o = u == null ? void 0 : u.y) != null ? o : 0);
60
- const i = () => {
61
- E.current.set(s, {
62
- x: n.scrollLeft,
63
- y: n.scrollTop
64
- });
65
- };
66
- return n.addEventListener("scroll", i), () => {
67
- n.removeEventListener("scroll", i);
68
- };
69
- }, [v, P, s, x, t]);
70
- const [H, L] = Z(!1);
71
- R(() => {
72
- const e = I.current;
73
- if (!e) return;
74
- const o = F(e);
75
- L(!!o.length);
76
- }, []);
77
- const M = $(
78
- (e) => {
79
- const o = _(d({}, e), { id: m || e.id, tabId: p });
80
- return b ? b(o) : o;
81
- },
82
- [m, p, b]
83
- ), y = r.onKeyDown, N = h((e) => {
84
- if (y == null || y(e), e.defaultPrevented || !(t != null && t.composite)) return;
85
- const n = {
86
- ArrowLeft: t.previous,
87
- ArrowRight: t.next,
88
- Home: t.first,
89
- End: t.last
90
- }[e.key];
91
- if (!n) return;
92
- const { selectedId: u } = t.getState(), i = n({ activeId: u });
93
- i && (e.preventDefault(), t.move(i));
94
- });
95
- return r = X(
96
- r,
97
- (e) => /* @__PURE__ */ S(O, { value: t, children: e }),
98
- [t]
99
- ), r = _(d({
100
- id: m,
101
- role: "tabpanel",
102
- "aria-labelledby": s || void 0
103
- }, r), {
104
- children: C && !P ? null : r.children,
105
- ref: Y(I, r.ref),
106
- onKeyDown: N
107
- }), r = W(d({
108
- // If the tab panel is rendered as part of another composite widget such
109
- // as combobox, it should not be focusable.
110
- focusable: !t.composite && !H
111
- }, r)), r = j(d({ store: g }, r)), r = q(_(d({ store: t.panels }, r), { getItem: M })), r;
112
- }
113
- ), re = z(function(c) {
114
- const a = te(c);
115
- return G(ee, a);
116
- });
117
- const fe = ({
118
- value: f,
119
- className: c,
120
- style: a,
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { cn as n } from "../../utils/css.js";
3
+ import { T as e } from "../../tab-panel-DdkeLgKE.js";
4
+ const l = ({
5
+ value: o,
6
+ className: a,
7
+ style: r,
121
8
  children: t
122
- }) => /* @__PURE__ */ S(
123
- re,
9
+ }) => /* @__PURE__ */ m(
10
+ e,
124
11
  {
125
- tabId: f,
126
- className: A("component-tabs__panel", c),
127
- style: a,
12
+ tabId: o,
13
+ className: n("component-tabs__panel", a),
14
+ style: r,
128
15
  children: t
129
16
  }
130
17
  );
131
18
  export {
132
- fe as Panel
19
+ l as Panel
133
20
  };
@@ -1,173 +1,21 @@
1
- import { jsx as _ } from "react/jsx-runtime";
2
- import { cn as R } from "../../utils/css.js";
3
- import { u as $ } from "../../DG5U6ZEL-C7eLVyh-.js";
4
- import { c as k, a as z, b as A } from "../../4CMBR7SL-xNGezbCB.js";
5
- import { u as K } from "../../S43UC3DV-erT1ucAd.js";
6
- import { m as N, o as O, c as Q, s as I, e as l, g as U, b as y, d as T } from "../../YV4JVR4I-BXEaRiAN.js";
7
- import { P as W, Q as p, S as f, R as S, a1 as M, m as B, o as L, T as V } from "../../LMDWO4NN-DdLnHzru.js";
8
- import { useMemo as q } from "react";
9
- import { b as w } from "../../UYGDZTLQ-fOwUiOjI.js";
10
- function D(e = {}) {
11
- var n = e, {
12
- composite: o,
13
- combobox: c
14
- } = n, d = W(n, [
15
- "composite",
16
- "combobox"
17
- ]);
18
- const g = [
19
- "items",
20
- "renderedItems",
21
- "moves",
22
- "orientation",
23
- "virtualFocus",
24
- "includesBaseElement",
25
- "baseElement",
26
- "focusLoop",
27
- "focusShift",
28
- "focusWrap"
29
- ], v = N(
30
- d.store,
31
- O(o, g),
32
- O(c, g)
33
- ), r = v == null ? void 0 : v.getState(), b = k(p(S({}, d), {
34
- store: v,
35
- // We need to explicitly set the default value of `includesBaseElement` to
36
- // `false` since we don't want the composite store to default it to `true`
37
- // when the activeId state is null, which could be the case when rendering
38
- // combobox with tab.
39
- includesBaseElement: f(
40
- d.includesBaseElement,
41
- r == null ? void 0 : r.includesBaseElement,
42
- !1
43
- ),
44
- orientation: f(
45
- d.orientation,
46
- r == null ? void 0 : r.orientation,
47
- "horizontal"
48
- ),
49
- focusLoop: f(d.focusLoop, r == null ? void 0 : r.focusLoop, !0)
50
- })), x = z(), j = p(S({}, b.getState()), {
51
- selectedId: f(
52
- d.selectedId,
53
- r == null ? void 0 : r.selectedId,
54
- d.defaultSelectedId
55
- ),
56
- selectOnMove: f(
57
- d.selectOnMove,
58
- r == null ? void 0 : r.selectOnMove,
59
- !0
60
- )
61
- }), t = Q(j, b, v);
62
- I(
63
- t,
64
- () => l(t, ["moves"], () => {
65
- const { activeId: s, selectOnMove: a } = t.getState();
66
- if (!a || !s) return;
67
- const i = b.item(s);
68
- i && (i.dimmed || i.disabled || t.setState("selectedId", i.id));
69
- })
70
- );
71
- let h = !0;
72
- I(
73
- t,
74
- () => U(t, ["selectedId"], (s, a) => {
75
- if (!h) {
76
- h = !0;
77
- return;
78
- }
79
- o && s.selectedId === a.selectedId || t.setState("activeId", s.selectedId);
80
- })
81
- ), I(
82
- t,
83
- () => l(t, ["selectedId", "renderedItems"], (s) => {
84
- if (s.selectedId !== void 0) return;
85
- const { activeId: a, renderedItems: i } = t.getState(), m = b.item(a);
86
- if (m && !m.disabled && !m.dimmed)
87
- t.setState("selectedId", m.id);
88
- else {
89
- const P = i.find(
90
- (u) => !u.disabled && !u.dimmed
91
- );
92
- t.setState("selectedId", P == null ? void 0 : P.id);
93
- }
94
- })
95
- ), I(
96
- t,
97
- () => l(t, ["renderedItems"], (s) => {
98
- const a = s.renderedItems;
99
- if (a.length)
100
- return l(x, ["renderedItems"], (i) => {
101
- const m = i.renderedItems;
102
- m.some((u) => !u.tabId) && m.forEach((u, F) => {
103
- if (u.tabId) return;
104
- const E = a[F];
105
- E && x.renderItem(p(S({}, u), { tabId: E.id }));
106
- });
107
- });
108
- })
109
- );
110
- let C = null;
111
- return I(t, () => {
112
- const s = () => {
113
- C = t.getState().selectedId;
114
- }, a = () => {
115
- h = !1, t.setState("selectedId", C);
116
- };
117
- if (o && "setSelectElement" in o)
118
- return M(
119
- l(o, ["value"], s),
120
- l(o, ["mounted"], a)
121
- );
122
- if (c)
123
- return M(
124
- l(c, ["selectedValue"], s),
125
- l(c, ["mounted"], a)
126
- );
127
- }), p(S(S({}, b), t), {
128
- panels: x,
129
- setSelectedId: (s) => t.setState("selectedId", s),
130
- select: (s) => {
131
- t.setState("selectedId", s), b.move(s);
132
- }
133
- });
134
- }
135
- function G(e, n, o) {
136
- V(n, [o.composite, o.combobox]), e = A(e, n, o), T(e, o, "selectedId", "setSelectedId"), T(e, o, "selectOnMove");
137
- const [c, d] = y(() => e.panels, {});
138
- return V(d, [e, d]), Object.assign(
139
- q(() => B(L({}, e), { panels: c }), [e, c]),
140
- { composite: o.composite, combobox: o.combobox }
141
- );
142
- }
143
- function H(e = {}) {
144
- const n = K(), o = $() || n;
145
- e = B(L({}, e), {
146
- composite: e.composite !== void 0 ? e.composite : o,
147
- combobox: e.combobox !== void 0 ? e.combobox : n
148
- });
149
- const [c, d] = y(D, e);
150
- return G(c, d, e);
151
- }
152
- function J(e = {}) {
153
- const n = H(e);
154
- return /* @__PURE__ */ _(w, { value: n, children: e.children });
155
- }
156
- const ce = ({
157
- value: e,
158
- onValueChange: n,
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { cn as c } from "../../utils/css.js";
3
+ import { T as m } from "../../tab-provider-BMkHrtIK.js";
4
+ const n = ({
5
+ value: t,
6
+ onValueChange: r,
159
7
  defaultValue: o,
160
- className: c,
161
- children: d
162
- }) => /* @__PURE__ */ _(
163
- J,
8
+ className: d,
9
+ children: s
10
+ }) => /* @__PURE__ */ e(
11
+ m,
164
12
  {
165
- selectedId: e,
166
- setSelectedId: n,
13
+ selectedId: t,
14
+ setSelectedId: r,
167
15
  defaultSelectedId: o,
168
- children: /* @__PURE__ */ _("div", { className: R("component-tabs", c), children: d })
16
+ children: /* @__PURE__ */ e("div", { className: c("component-tabs", d), children: s })
169
17
  }
170
18
  );
171
19
  export {
172
- ce as Tabs
20
+ n as Tabs
173
21
  };
@@ -1,81 +1,7 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { cn as N } from "../../utils/css.js";
3
- import { a as w } from "../../UYGDZTLQ-fOwUiOjI.js";
4
- import { C, u as E } from "../../6VRAQV3D-BoLhl3hf.js";
5
- import { a as F } from "../../YV4JVR4I-BXEaRiAN.js";
6
- import { s as V, f as W, c as D, a as j, _ as A, i as q, q as H, t as L, m as a, o as r, e as O } from "../../LMDWO4NN-DdLnHzru.js";
7
- import { useCallback as $ } from "react";
8
- var y = "button", z = D(function(i) {
9
- var n = i, {
10
- store: e,
11
- getItem: l
12
- } = n, t = A(n, [
13
- "store",
14
- "getItem"
15
- ]), p;
16
- const h = w();
17
- e = e || h, q(
18
- e,
19
- process.env.NODE_ENV !== "production" && "Tab must be wrapped in a TabList component."
20
- );
21
- const b = H(), s = t.id || b, I = L(t), x = $(
22
- (o) => {
23
- const c = a(r({}, o), { dimmed: I });
24
- return l ? l(c) : c;
25
- },
26
- [I, l]
27
- ), f = t.onClick, g = O((o) => {
28
- f == null || f(o), !o.defaultPrevented && (e == null || e.setSelectedId(s));
29
- }), T = e.panels.useState(
30
- (o) => {
31
- var c;
32
- return (c = o.items.find((k) => k.tabId === s)) == null ? void 0 : c.id;
33
- }
34
- ), v = b ? t.shouldRegisterItem : !1, S = e.useState((o) => !!s && o.activeId === s), u = e.useState((o) => !!s && o.selectedId === s), P = e.useState((o) => !!e.item(o.activeId)), R = S || u && !P, _ = u || ((p = t.accessibleWhenDisabled) != null ? p : !0);
35
- if (F(
36
- e.combobox || e.composite,
37
- "virtualFocus"
38
- ) && (t = a(r({}, t), {
39
- tabIndex: -1
40
- })), t = a(r({
41
- id: s,
42
- role: "tab",
43
- "aria-selected": u,
44
- "aria-controls": T || void 0
45
- }, t), {
46
- onClick: g
47
- }), e.composite) {
48
- const o = {
49
- id: s,
50
- accessibleWhenDisabled: _,
51
- store: e.composite,
52
- shouldRegisterItem: R && v,
53
- rowId: t.rowId,
54
- render: t.render
55
- };
56
- t = a(r({}, t), {
57
- render: /* @__PURE__ */ m(
58
- C,
59
- a(r({}, o), {
60
- render: e.combobox && e.composite !== e.combobox ? /* @__PURE__ */ m(C, a(r({}, o), { store: e.combobox })) : o.render
61
- })
62
- )
63
- });
64
- }
65
- return t = E(a(r({
66
- store: e
67
- }, t), {
68
- accessibleWhenDisabled: _,
69
- getItem: x,
70
- shouldRegisterItem: v
71
- })), t;
72
- }), B = V(
73
- W(function(i) {
74
- const n = z(i);
75
- return j(y, n);
76
- })
77
- );
78
- const Z = ({ className: d, value: i, children: n }) => /* @__PURE__ */ m(B, { id: i, className: N("component-tabs__tab", d), children: /* @__PURE__ */ m("div", { className: "component-tabs__tab__label", children: n }) });
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { cn as r } from "../../utils/css.js";
3
+ import { T as s } from "../../tab-DjNG1rEI.js";
4
+ const c = ({ className: o, value: t, children: m }) => /* @__PURE__ */ a(s, { id: t, className: r("component-tabs__tab", o), children: /* @__PURE__ */ a("div", { className: "component-tabs__tab__label", children: m }) });
79
5
  export {
80
- Z as Tab
6
+ c as Tab
81
7
  };
@@ -1,24 +1,12 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { cn as m } from "../../utils/css.js";
3
- import { u as n } from "../../A3WPL2ZJ-D0Eh1dEB.js";
4
- import { u as c } from "../../TP7N7UIH-mdk33dnV.js";
5
- import { f as i, c as u, a as f, _ as l, o as b } from "../../LMDWO4NN-DdLnHzru.js";
6
- var _ = "hr", v = u(
7
- function(a) {
8
- var r = a, { store: e } = r, t = l(r, ["store"]);
9
- const s = n();
10
- return e = e || s, t = c(b({ store: e }, t)), t;
11
- }
12
- ), T = i(function(a) {
13
- const r = v(a);
14
- return f(_, r);
15
- });
16
- const C = ({ className: o }) => /* @__PURE__ */ p(
17
- T,
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { cn as t } from "../../utils/css.js";
3
+ import { T as m } from "../../toolbar-separator-DBoO5XdF.js";
4
+ const p = ({ className: o }) => /* @__PURE__ */ r(
5
+ m,
18
6
  {
19
- className: m("component-toolbar__divider", o)
7
+ className: t("component-toolbar__divider", o)
20
8
  }
21
9
  );
22
10
  export {
23
- C as Divider
11
+ p as Divider
24
12
  };