@wrdagency/blockout 1.0.27 → 1.0.29

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 (120) hide show
  1. package/dist/{2NBKRL7C-M2oB5mLz.js → 2NBKRL7C-DBbnghCe.js} +16 -16
  2. package/dist/{2RSXSRCN-BtBMZ8Lx.js → 2RSXSRCN-BxQ_v-Je.js} +15 -15
  3. package/dist/{4CMBR7SL-C-0Aig1V.js → 4CMBR7SL-DezfZPUS.js} +18 -18
  4. package/dist/{5JTVDSTH-BOGL3M3F.js → 5JTVDSTH-CZ7mfyUK.js} +4 -4
  5. package/dist/{5VQZOHHZ-DADExXg7.js → 5VQZOHHZ-DLX-ulBK.js} +1 -1
  6. package/dist/{6VRAQV3D-pTuMqsWW.js → 6VRAQV3D-BYmT0QTl.js} +6 -6
  7. package/dist/{A3WPL2ZJ-BiXYGxnE.js → A3WPL2ZJ-24tGIJIQ.js} +2 -2
  8. package/dist/{BM6PGYQY-DL-j4NGc.js → BM6PGYQY-DCbkDr5N.js} +2 -2
  9. package/dist/{DG5U6ZEL-Bn6QlO7C.js → DG5U6ZEL-DB0iwihy.js} +3 -3
  10. package/dist/{EM5CXX6A-B4C-NFJy.js → EM5CXX6A-B4ZS4Hs_.js} +2 -2
  11. package/dist/{F5MUBM3I-D6cacg-c.js → F5MUBM3I-75qY3y0N.js} +9 -9
  12. package/dist/{G7GW6PWC-C6qSYISF.js → G7GW6PWC-Dk4hVbAk.js} +74 -74
  13. package/dist/{IWEFDH56-Da7lGcXC.js → IWEFDH56-BACkQ6dc.js} +3 -3
  14. package/dist/{J2LQO3EC-XUQS0UAH.js → J2LQO3EC-BXJIaM2U.js} +2 -2
  15. package/dist/JMHAJKUZ-D5KCN1Aj.js +114 -0
  16. package/dist/{KFH4SEIX-C-0wHvda.js → KFH4SEIX-DaQeP5D_.js} +3 -3
  17. package/dist/{LMDWO4NN-ZnclRjpA.js → LMDWO4NN-CpSMaD5G.js} +21 -21
  18. package/dist/MAXQOH4L-BYWBWXpb.js +459 -0
  19. package/dist/{MR26YJYP-CWddku_H.js → MR26YJYP-CTh6rCwA.js} +39 -39
  20. package/dist/{MTZPJQMC-CNgogsHX.js → MTZPJQMC-D2i4-LA_.js} +2 -2
  21. package/dist/{O2PQ2652-DkPiHeUQ.js → O2PQ2652-DIoegIkE.js} +3 -3
  22. package/dist/{P7GR5CS5-bOyAbBNR.js → P7GR5CS5-3RsPGPTy.js} +1 -1
  23. package/dist/{PFRGBC2K-BS9YO5-Q.js → PFRGBC2K-BdRJd-gU.js} +16 -16
  24. package/dist/{RS7LB2H4-BpSl1D2T.js → RS7LB2H4-COOfOq9w.js} +1 -1
  25. package/dist/{RZ4GPYOB-D4dwmRZg.js → RZ4GPYOB-CovncfhJ.js} +5 -5
  26. package/dist/{S43UC3DV-BVbmEy3J.js → S43UC3DV-HCi6u_G4.js} +8 -8
  27. package/dist/{T7VMP3TM-BnzhAoaO.js → T7VMP3TM-C8D6mVva.js} +21 -21
  28. package/dist/{TIW3GMFC-C4Bh_hzw.js → TIW3GMFC-BF0w2_9R.js} +4 -4
  29. package/dist/{TP7N7UIH-Bs0NX7lb.js → TP7N7UIH-C4jXJDlO.js} +2 -2
  30. package/dist/{UQQRIHDV-C_0T8mGy.js → UQQRIHDV-DEGlgATx.js} +8 -8
  31. package/dist/{UYGDZTLQ-BDhCZlZ2.js → UYGDZTLQ-HiDKLOW5.js} +2 -2
  32. package/dist/{VIIRIBF3-CQdc2eWO.js → VIIRIBF3-B-djNAU9.js} +3 -3
  33. package/dist/{WMYDSCNQ-J1-TanSP.js → WMYDSCNQ-pGjWB-Pk.js} +6 -6
  34. package/dist/{WYCIER3C-CABEZy1i.js → WYCIER3C-CxfgpZG_.js} +2 -2
  35. package/dist/{YORGHBM4-B1RRY_xR.js → YORGHBM4-D_fOXG5Y.js} +1 -1
  36. package/dist/{YV4JVR4I-BuKFdNa0.js → YV4JVR4I-CQnJhUSg.js} +38 -38
  37. package/dist/assets/button.css +1 -1
  38. package/dist/assets/index9.css +1 -1
  39. package/dist/assets/static.css +1 -1
  40. package/dist/assets/style.css +1 -1
  41. package/dist/assets/style6.css +1 -1
  42. package/dist/{combobox-group-Q7OatWHm.js → combobox-group-hNvv1WJm.js} +3 -3
  43. package/dist/{combobox-popover-CDfaOt6J.js → combobox-popover-BZ_1wNrj.js} +5 -5
  44. package/dist/components/avatar/index.d.ts +2 -2
  45. package/dist/components/avatar/index.js +20 -18
  46. package/dist/components/breadcrumbs/index.js +5 -5
  47. package/dist/components/button/row.js +4 -4
  48. package/dist/components/command-palette/dialog.js +2 -2
  49. package/dist/components/command-palette/index.js +5 -3
  50. package/dist/components/command-palette/presets.d.ts +4 -0
  51. package/dist/components/command-palette/presets.js +10 -0
  52. package/dist/components/command-palette/static.d.ts +4 -11
  53. package/dist/components/command-palette/static.js +43 -124
  54. package/dist/components/controls/base-popover-control/index.js +3 -3
  55. package/dist/components/controls/date-control/index.js +1 -1
  56. package/dist/components/controls/date-control/picker.js +5 -5
  57. package/dist/components/controls/select-control/control.js +1 -1
  58. package/dist/components/controls/select-control/select.js +32 -31
  59. package/dist/components/controls/tag-control/ariakit-experimental.js +253 -252
  60. package/dist/components/controls/tag-control/index.js +8 -7
  61. package/dist/components/dialog/index.js +2 -2
  62. package/dist/components/filesystem/file.js +1 -1
  63. package/dist/components/filesystem/folder.js +5 -5
  64. package/dist/components/filesystem/list.js +1 -1
  65. package/dist/components/filesystem/root.js +1 -1
  66. package/dist/components/index.d.ts +1 -1
  67. package/dist/components/menu/index.js +2 -2
  68. package/dist/components/menu/item.js +1 -1
  69. package/dist/components/menu/items/action.js +1 -1
  70. package/dist/components/menu/items/spacer.js +1 -1
  71. package/dist/components/menu/items/submenu.js +3 -3
  72. package/dist/components/menu/items/toggle.js +1 -1
  73. package/dist/components/shell/index.js +14 -12
  74. package/dist/components/shell/navigation-separator.d.ts +6 -0
  75. package/dist/components/shell/navigation-separator.js +14 -0
  76. package/dist/components/shell/sidebar-item.d.ts +5 -4
  77. package/dist/components/shell/sidebar-item.js +25 -19
  78. package/dist/components/tabs/list.js +1 -1
  79. package/dist/components/tabs/panel.js +1 -1
  80. package/dist/components/tabs/root.js +1 -1
  81. package/dist/components/tabs/tab.js +1 -1
  82. package/dist/components/toolbar/divider.js +1 -1
  83. package/dist/components/toolbar/index.js +1 -1
  84. package/dist/components/toolbar/root.js +1 -1
  85. package/dist/components/window/index.js +1 -1
  86. package/dist/{composite-provider-VHhinf1k.js → composite-provider-BPIeS4Cg.js} +2 -2
  87. package/dist/{disclosure-provider-BUQRx-hY.js → disclosure-provider-cEVysvZT.js} +2 -2
  88. package/dist/index.d.ts +1 -0
  89. package/dist/index.js +76 -55
  90. package/dist/{item-PTynqLvp.js → item-CmTk8eHD.js} +2 -2
  91. package/dist/{menu-button-RmWWFvwE.js → menu-button-GQO5dB3U.js} +12 -12
  92. package/dist/{menu-separator-DgYHkDAA.js → menu-separator-Z6pSHpX5.js} +3 -3
  93. package/dist/{picker-DioIiYC0.js → picker-DyJogHYh.js} +4 -4
  94. package/dist/{popover-provider-HlPXIcud.js → popover-provider-BJEfhgr1.js} +2 -2
  95. package/dist/presets-BDIhXP0C.js +148 -0
  96. package/dist/primitives/icon-label/index.d.ts +2 -0
  97. package/dist/primitives/icon-label/index.js +18 -14
  98. package/dist/primitives/link/index.d.ts +3 -1
  99. package/dist/primitives/link/index.js +25 -24
  100. package/dist/primitives/nav-link/index.d.ts +4 -3
  101. package/dist/primitives/nav-link/index.js +21 -17
  102. package/dist/primitives/popover/root.js +1 -1
  103. package/dist/primitives/popover/target.js +1 -1
  104. package/dist/primitives/popover/window.js +3 -3
  105. package/dist/primitives/tooltip/index.d.ts +2 -0
  106. package/dist/primitives/tooltip/index.js +36 -24
  107. package/dist/{select-popover-P8y2n3bQ.js → select-popover-Dheunyb0.js} +40 -40
  108. package/dist/{select-value-3BLrBdZV.js → select-value-B3DYk9eV.js} +2 -2
  109. package/dist/{tab-CKUPUgQ2.js → tab-DejwS4C8.js} +4 -4
  110. package/dist/{tab-list-CzsRzSiN.js → tab-list-CndMWcVv.js} +3 -3
  111. package/dist/{tab-panel-YGzJnU1g.js → tab-panel-DedzuWUA.js} +7 -7
  112. package/dist/{tab-provider-CV8qTybg.js → tab-provider-B0BoLfST.js} +6 -6
  113. package/dist/{tag-remove-DmlHu_9b.js → tag-remove-Dz-sGbyZ.js} +24 -24
  114. package/dist/{toolbar-BlVhTG5v.js → toolbar-PSaF1mdF.js} +5 -5
  115. package/dist/{toolbar-separator-liolx0p8.js → toolbar-separator-DJHiHbGj.js} +3 -3
  116. package/dist/{tooltip-arrow-CjZ1x0xv.js → tooltip-arrow-BVwULA6B.js} +17 -17
  117. package/dist/utils/index.d.ts +8 -0
  118. package/dist/utils/index.js +23 -0
  119. package/package.json +1 -1
  120. package/dist/MAXQOH4L-lpuvS1NR.js +0 -564
@@ -1,20 +1,20 @@
1
- import { u as Se, a as se, S as be, b as xe, c as Oe, d as Ce, e as de } from "./DG5U6ZEL-Bn6QlO7C.js";
2
- import { u as Ie } from "./MTZPJQMC-CNgogsHX.js";
3
- import { c as R, _ as T, i as Y, m as I, o as p, r as Ae, f as H, a as F, Y as De, V as W, U as O, W as V, X as _e, j as k, e as le, H as Ve, l as X, n as he, S as ke, s as Ke, q as ge, t as Le, P as Me, Q as Ne, R as Re, h as Te, u as He, ac as Fe } from "./LMDWO4NN-ZnclRjpA.js";
4
- import { useMemo as ae, useState as Q, useRef as je, useEffect as ne, useCallback as Be, useContext as me, createContext as $e } from "react";
1
+ import { u as Se, a as se, S as be, b as xe, c as Oe, d as Ce, e as de } from "./DG5U6ZEL-DB0iwihy.js";
2
+ import { u as Ie } from "./MTZPJQMC-D2i4-LA_.js";
3
+ import { c as R, _ as T, i as Y, m as I, o as p, r as Ae, f as F, a as H, Y as De, V as W, U as O, W as V, X as _e, j as k, e as le, J as Ve, l as X, n as he, S as ke, s as Ke, q as ge, t as Le, E as Me, F as Ne, R as Re, h as Te, u as Fe, aa as He } from "./LMDWO4NN-CpSMaD5G.js";
4
+ import { useMemo as ae, useState as J, useRef as je, useEffect as ne, useCallback as Be, useContext as me, createContext as $e } from "react";
5
5
  import { jsx as P, jsxs as oe, Fragment as ve } from "react/jsx-runtime";
6
- import { u as we } from "./T7VMP3TM-BnzhAoaO.js";
7
- import { u as Ue } from "./WMYDSCNQ-J1-TanSP.js";
6
+ import { u as we } from "./T7VMP3TM-C8D6mVva.js";
7
+ import { a as Ue } from "./WMYDSCNQ-pGjWB-Pk.js";
8
8
  import { t as ye } from "./7PRQYBBV-91wrWGjk.js";
9
- import { c as qe, a as We } from "./O2PQ2652-DkPiHeUQ.js";
10
- import { c as ze, d as Ge, b as Qe } from "./4CMBR7SL-C-0Aig1V.js";
11
- import { u as Xe } from "./S43UC3DV-BVbmEy3J.js";
12
- import { m as Ye, o as Je, t as Ze, c as et, s as z, d as re, g as tt, b as ot, f as pe, u as rt } from "./YV4JVR4I-BuKFdNa0.js";
13
- import { u as nt } from "./UQQRIHDV-C_0T8mGy.js";
14
- import { u as st } from "./6VRAQV3D-pTuMqsWW.js";
15
- import { i as lt } from "./KFH4SEIX-C-0wHvda.js";
16
- import { u as at } from "./5JTVDSTH-BOGL3M3F.js";
17
- import { c as it, u as ut } from "./G7GW6PWC-C6qSYISF.js";
9
+ import { c as qe, a as We } from "./O2PQ2652-DIoegIkE.js";
10
+ import { c as ze, d as Ge, b as Je } from "./4CMBR7SL-DezfZPUS.js";
11
+ import { u as Xe } from "./S43UC3DV-HCi6u_G4.js";
12
+ import { m as Ye, o as Qe, t as Ze, c as et, s as z, d as re, g as tt, b as ot, f as pe, u as rt } from "./YV4JVR4I-CQnJhUSg.js";
13
+ import { u as nt } from "./UQQRIHDV-DEGlgATx.js";
14
+ import { u as st } from "./6VRAQV3D-BYmT0QTl.js";
15
+ import { i as lt } from "./KFH4SEIX-DaQeP5D_.js";
16
+ import { u as at } from "./5JTVDSTH-CZ7mfyUK.js";
17
+ import { c as it, u as ut } from "./G7GW6PWC-Dk4hVbAk.js";
18
18
  var ct = "span", dt = {
19
19
  top: "4,10 8,6 12,10",
20
20
  right: "6,4 10,8 6,12",
@@ -55,10 +55,10 @@ var ct = "span", dt = {
55
55
  pointerEvents: "none"
56
56
  }, a.style)
57
57
  }), Ae(a);
58
- }), Qt = H(
58
+ }), Jt = F(
59
59
  function(o) {
60
60
  const r = Pe(o);
61
- return F(ct, r);
61
+ return H(ct, r);
62
62
  }
63
63
  );
64
64
  function mt(s = {}) {
@@ -69,7 +69,7 @@ function mt(s = {}) {
69
69
  ]);
70
70
  const t = Ye(
71
71
  e.store,
72
- Je(r, [
72
+ Qe(r, [
73
73
  "value",
74
74
  "items",
75
75
  "renderedItems",
@@ -178,7 +178,7 @@ function vt(s) {
178
178
  function pt(s, o, r) {
179
179
  return _e(o, [r.combobox]), pe(s, r, "value", "setValue"), pe(s, r, "setValueOnMove"), Object.assign(
180
180
  We(
181
- Qe(s, o, r),
181
+ Je(s, o, r),
182
182
  o,
183
183
  r
184
184
  ),
@@ -196,9 +196,9 @@ var St = "span", bt = R(
196
196
  const a = Se();
197
197
  return e = e || a, t = Pe(p({ store: e }, t)), t;
198
198
  }
199
- ), ht = H(function(o) {
199
+ ), ht = F(function(o) {
200
200
  const r = bt(o);
201
- return F(St, r);
201
+ return H(St, r);
202
202
  }), gt = "button";
203
203
  function wt(s) {
204
204
  return Array.from(s.selectedOptions).map((o) => o.value);
@@ -265,7 +265,7 @@ var yt = R(function(o) {
265
265
  (c) => /* @__PURE__ */ P(be, { value: e, children: c }),
266
266
  [e]
267
267
  );
268
- const [j, M] = Q(!1), C = je(!1);
268
+ const [j, M] = J(!1), C = je(!1);
269
269
  ne(() => {
270
270
  const c = C.current;
271
271
  C.current = !1, !c && M(!1);
@@ -337,12 +337,12 @@ var yt = R(function(o) {
337
337
  const B = /* @__PURE__ */ oe(ve, { children: [
338
338
  x,
339
339
  /* @__PURE__ */ P(ht, {})
340
- ] }), J = e.useState("contentElement");
340
+ ] }), Q = e.useState("contentElement");
341
341
  return n = I(p({
342
342
  role: "combobox",
343
343
  "aria-autocomplete": "none",
344
344
  "aria-labelledby": N,
345
- "aria-haspopup": ke(J, "listbox"),
345
+ "aria-haspopup": ke(Q, "listbox"),
346
346
  "data-autofill": j || void 0,
347
347
  "data-name": t,
348
348
  children: B
@@ -350,9 +350,9 @@ var yt = R(function(o) {
350
350
  ref: he(e.setSelectElement, n.ref),
351
351
  onKeyDown: L
352
352
  }), n = Ue(p({ store: e, toggleOnClick: l }, n)), n = we(p({ store: e }, n)), n;
353
- }), Xt = H(function(o) {
353
+ }), Xt = F(function(o) {
354
354
  const r = yt(o);
355
- return F(gt, r);
355
+ return H(gt, r);
356
356
  });
357
357
  function Yt(s = {}) {
358
358
  const o = ft(s);
@@ -443,10 +443,10 @@ var xt = R(
443
443
  }
444
444
  })), l;
445
445
  }
446
- ), Jt = Ke(
447
- H(function(o) {
446
+ ), Qt = Ke(
447
+ F(function(o) {
448
448
  const r = xt(o);
449
- return F(Pt, r);
449
+ return H(Pt, r);
450
450
  })
451
451
  ), Ot = "div", fe = $e(null), Ee = R(
452
452
  function(o) {
@@ -470,16 +470,16 @@ var xt = R(
470
470
  e,
471
471
  process.env.NODE_ENV !== "production" && "SelectList must receive a `store` prop or be wrapped in a SelectProvider component."
472
472
  );
473
- const n = ge(u.id), f = e.useState("value"), b = Array.isArray(f), [w, g] = Q(f), K = e.useState("mounted");
473
+ const n = ge(u.id), f = e.useState("value"), b = Array.isArray(f), [w, g] = J(f), K = e.useState("mounted");
474
474
  ne(() => {
475
475
  K || g(f);
476
476
  }, [K, f]), t = t && !b;
477
477
  const y = u.onKeyDown, x = k(t), D = k(a), L = le((v) => {
478
478
  y == null || y(v), !v.defaultPrevented && (v.key === "Escape" && x(v) && (e == null || e.setValue(w)), (v.key === " " || v.key === "Enter") && Te(v) && D(v) && (v.preventDefault(), e == null || e.hide()));
479
- }), j = me(de), M = Q(), [C, N] = j || M, i = ae(
479
+ }), j = me(de), M = J(), [C, N] = j || M, i = ae(
480
480
  () => [C, N],
481
481
  [C]
482
- ), [h, _] = Q(null), A = me(fe);
482
+ ), [h, _] = J(null), A = me(fe);
483
483
  ne(() => {
484
484
  if (A)
485
485
  return A(e), () => A(null);
@@ -490,9 +490,9 @@ var xt = R(
490
490
  );
491
491
  const B = !!e.combobox;
492
492
  S = S ?? (!B && h !== e);
493
- const [J, c] = He(
493
+ const [Q, c] = Fe(
494
494
  S ? e.setListElement : null
495
- ), d = Fe(J, "role", u.role), ee = (S || (d === "listbox" || d === "menu" || d === "tree" || d === "grid")) && b || void 0, $ = lt(K, u.hidden, E), U = $ ? I(p({}, u.style), { display: "none" }) : u.style;
495
+ ), d = He(Q, "role", u.role), ee = (S || (d === "listbox" || d === "menu" || d === "tree" || d === "grid")) && b || void 0, $ = lt(K, u.hidden, E), U = $ ? I(p({}, u.style), { display: "none" }) : u.style;
496
496
  S && (u = p({
497
497
  role: "listbox",
498
498
  "aria-multiselectable": ee
@@ -513,9 +513,9 @@ var xt = R(
513
513
  onKeyDown: L
514
514
  }), u = at(I(p({ store: e }, u), { composite: S })), u = we(p({ store: e, typeahead: !B }, u)), u;
515
515
  }
516
- ), Zt = H(function(o) {
516
+ ), Zt = F(function(o) {
517
517
  const r = Ee(o);
518
- return F(Ot, r);
518
+ return H(Ot, r);
519
519
  }), Ct = "div", It = R(
520
520
  function(o) {
521
521
  var r = o, { store: e, alwaysVisible: t } = r, a = T(r, ["store", "alwaysVisible"]);
@@ -523,19 +523,19 @@ var xt = R(
523
523
  return e = e || m, a = Ee(p({ store: e, alwaysVisible: t }, a)), a = ut(p({ store: e, alwaysVisible: t }, a)), a;
524
524
  }
525
525
  ), eo = it(
526
- H(function(o) {
526
+ F(function(o) {
527
527
  const r = It(o);
528
- return F(Ct, r);
528
+ return H(Ct, r);
529
529
  }),
530
530
  se
531
531
  );
532
532
  export {
533
- Qt as P,
533
+ Jt as P,
534
534
  Yt as S,
535
535
  Xt as a,
536
536
  eo as b,
537
537
  Zt as c,
538
- Jt as d,
538
+ Qt as d,
539
539
  ht as e,
540
540
  ft as f,
541
541
  Pe as u
@@ -1,5 +1,5 @@
1
- import { u as l } from "./DG5U6ZEL-Bn6QlO7C.js";
2
- import { a } from "./YV4JVR4I-BuKFdNa0.js";
1
+ import { u as l } from "./DG5U6ZEL-DB0iwihy.js";
2
+ import { a } from "./YV4JVR4I-CQnJhUSg.js";
3
3
  function i({
4
4
  store: e,
5
5
  fallback: r,
@@ -1,7 +1,7 @@
1
- import { a as w } from "./UYGDZTLQ-BDhCZlZ2.js";
2
- import { C as v, u as E } from "./6VRAQV3D-pTuMqsWW.js";
3
- import { a as F } from "./YV4JVR4I-BuKFdNa0.js";
4
- import { s as V, f as W, c as D, a as N, _ as j, i as A, q, t as H, m as r, o as a, e as L } from "./LMDWO4NN-ZnclRjpA.js";
1
+ import { a as w } from "./UYGDZTLQ-HiDKLOW5.js";
2
+ import { C as v, u as E } from "./6VRAQV3D-BYmT0QTl.js";
3
+ import { a as F } from "./YV4JVR4I-CQnJhUSg.js";
4
+ import { s as V, f as W, c as D, a as N, _ as j, i as A, q, t as H, m as r, o as a, e as L } from "./LMDWO4NN-CpSMaD5G.js";
5
5
  import { useCallback as O } from "react";
6
6
  import { jsx as C } from "react/jsx-runtime";
7
7
  var y = "button", z = D(function(c) {
@@ -1,6 +1,6 @@
1
- import { u as c, T as u } from "./UYGDZTLQ-BDhCZlZ2.js";
2
- import { u as m } from "./5JTVDSTH-BOGL3M3F.js";
3
- import { f as b, c as v, a as f, _ as d, i as l, l as T, o as s } from "./LMDWO4NN-ZnclRjpA.js";
1
+ import { u as c, T as u } from "./UYGDZTLQ-HiDKLOW5.js";
2
+ import { u as m } from "./5JTVDSTH-CZ7mfyUK.js";
3
+ import { f as b, c as v, a as f, _ as d, i as l, l as T, o as s } from "./LMDWO4NN-CpSMaD5G.js";
4
4
  import { jsx as _ } from "react/jsx-runtime";
5
5
  var x = "div", L = v(
6
6
  function(a) {
@@ -1,10 +1,10 @@
1
- import { u as A, T as K } from "./UYGDZTLQ-BDhCZlZ2.js";
2
- import { u as N } from "./KFH4SEIX-C-0wHvda.js";
3
- import { u as O } from "./WYCIER3C-CABEZy1i.js";
4
- import { u as j } from "./RZ4GPYOB-D4dwmRZg.js";
5
- import { g as V, u as q } from "./PFRGBC2K-BS9YO5-Q.js";
6
- import { a as P } from "./YV4JVR4I-BuKFdNa0.js";
7
- import { f as F, c as W, a as z, _ as B, i as G, q as J, e as y, m as T, o as i, l as Q, n as U } from "./LMDWO4NN-ZnclRjpA.js";
1
+ import { u as A, T as K } from "./UYGDZTLQ-HiDKLOW5.js";
2
+ import { u as N } from "./KFH4SEIX-DaQeP5D_.js";
3
+ import { u as O } from "./WYCIER3C-CxfgpZG_.js";
4
+ import { u as j } from "./RZ4GPYOB-CovncfhJ.js";
5
+ import { g as V, u as q } from "./PFRGBC2K-BdRJd-gU.js";
6
+ import { a as P } from "./YV4JVR4I-CQnJhUSg.js";
7
+ import { f as F, c as W, a as z, _ as B, i as G, q as J, e as y, m as T, o as i, l as Q, n as U } from "./LMDWO4NN-CpSMaD5G.js";
8
8
  import { useRef as h, useEffect as w, useState as X, useCallback as Y } from "react";
9
9
  import { jsx as Z } from "react/jsx-runtime";
10
10
  var $ = "div", ee = W(
@@ -1,10 +1,10 @@
1
- import { u as F } from "./DG5U6ZEL-Bn6QlO7C.js";
2
- import { c as U, a as W, b as $ } from "./4CMBR7SL-C-0Aig1V.js";
3
- import { b as k } from "./S43UC3DV-BVbmEy3J.js";
4
- import { m as z, o as E, c as A, s as f, d as l, g as K, b as V, f as O } from "./YV4JVR4I-BuKFdNa0.js";
5
- import { Y as R, V as p, U as I, W as S, a2 as M, m as y, o as B, X as T } from "./LMDWO4NN-ZnclRjpA.js";
1
+ import { u as F } from "./DG5U6ZEL-DB0iwihy.js";
2
+ import { c as U, a as W, b as $ } from "./4CMBR7SL-DezfZPUS.js";
3
+ import { d as k } from "./S43UC3DV-HCi6u_G4.js";
4
+ import { m as z, o as E, c as A, s as f, d as l, g as K, b as V, f as O } from "./YV4JVR4I-CQnJhUSg.js";
5
+ import { Y as R, V as p, U as I, W as S, a2 as M, m as y, o as B, X as T } from "./LMDWO4NN-CpSMaD5G.js";
6
6
  import { useMemo as X } from "react";
7
- import { b as Y } from "./UYGDZTLQ-BDhCZlZ2.js";
7
+ import { b as Y } from "./UYGDZTLQ-HiDKLOW5.js";
8
8
  import { jsx as q } from "react/jsx-runtime";
9
9
  function w(e = {}) {
10
10
  var c = e, {
@@ -1,15 +1,15 @@
1
- import { d as pe } from "./S43UC3DV-BVbmEy3J.js";
1
+ import { b as pe } from "./S43UC3DV-HCi6u_G4.js";
2
2
  import { createContext as ve, useContext as F, useState as ee, useEffect as te, useCallback as fe } from "react";
3
- import { f as L, c as N, a as B, _ as M, m as P, o as C, r as ge, a7 as he, s as Ce, i as H, q as ne, j as R, e as I, ah as oe, l as re, ai as be, y as G, aa as Te, n as ke, H as ye, V as J, U as W, W as q, a5 as Pe } from "./LMDWO4NN-ZnclRjpA.js";
3
+ import { f as L, c as N, a as B, _ as M, m as P, o as C, r as ge, a5 as he, s as Ce, i as q, q as ne, j as R, e as I, ah as oe, l as re, ai as be, y as G, a8 as Te, n as ke, J as ye, V as J, U as W, W as A, ab as Pe } from "./LMDWO4NN-CpSMaD5G.js";
4
4
  import { jsx as x, jsxs as ae, Fragment as xe } from "react/jsx-runtime";
5
- import { d as A, T as se, e as ie, f as Ve, g as Se, h as De } from "./MAXQOH4L-lpuvS1NR.js";
6
- import { u as ue } from "./6VRAQV3D-pTuMqsWW.js";
7
- import { a as we, c as Ee, s as Ie, d as _e, b as Oe, f as Q } from "./YV4JVR4I-BuKFdNa0.js";
5
+ import { c as H, T as se, d as ie, e as Ve, f as Se, g as De } from "./MAXQOH4L-BYWBWXpb.js";
6
+ import { u as ue } from "./6VRAQV3D-BYmT0QTl.js";
7
+ import { a as we, c as Ee, s as Ie, d as _e, b as Oe, f as Q } from "./YV4JVR4I-CQnJhUSg.js";
8
8
  import { t as Ke } from "./7PRQYBBV-91wrWGjk.js";
9
- import { u as Re } from "./5JTVDSTH-BOGL3M3F.js";
10
- import { b as Le } from "./PFRGBC2K-BS9YO5-Q.js";
11
- import { c as Ne, b as Be } from "./4CMBR7SL-C-0Aig1V.js";
12
- import { R as Me } from "./G7GW6PWC-C6qSYISF.js";
9
+ import { u as Re } from "./5JTVDSTH-CZ7mfyUK.js";
10
+ import { b as Le } from "./PFRGBC2K-BdRJd-gU.js";
11
+ import { c as Ne, b as Be } from "./4CMBR7SL-DezfZPUS.js";
12
+ import { R as Me } from "./G7GW6PWC-Dk4hVbAk.js";
13
13
  var je = ve(!1), Ue = "span", $e = /* @__PURE__ */ x(
14
14
  "svg",
15
15
  {
@@ -48,12 +48,12 @@ var le = N(
48
48
  ), ht = L(function(r) {
49
49
  const n = le(r);
50
50
  return B(Ue, n);
51
- }), Fe = "span", He = N(function(r) {
51
+ }), Fe = "span", qe = N(function(r) {
52
52
  var n = r, { store: e, checked: a } = n, s = M(n, ["store", "checked"]);
53
53
  const c = F(pe);
54
54
  return a = a ?? c, s = le(P(C({}, s), { checked: a })), s;
55
55
  }), Ct = L(function(r) {
56
- const n = He(r);
56
+ const n = qe(r);
57
57
  return B(Fe, n);
58
58
  });
59
59
  function Z() {
@@ -62,7 +62,7 @@ function Z() {
62
62
  r(he());
63
63
  }, []), o;
64
64
  }
65
- var qe = "div", Ae = N(function(r) {
65
+ var Ae = "div", He = N(function(r) {
66
66
  var n = r, {
67
67
  store: e,
68
68
  value: a,
@@ -74,8 +74,8 @@ var qe = "div", Ae = N(function(r) {
74
74
  "getItem",
75
75
  "removeOnKeyPress"
76
76
  ]);
77
- const p = A();
78
- e = e || p, H(
77
+ const p = H();
78
+ e = e || p, q(
79
79
  e,
80
80
  process.env.NODE_ENV !== "production" && "Tag must be wrapped in a TagList component."
81
81
  );
@@ -114,8 +114,8 @@ var qe = "div", Ae = N(function(r) {
114
114
  })), i;
115
115
  }), bt = Ce(
116
116
  L(function(r) {
117
- const n = Ae(r);
118
- return B(qe, n);
117
+ const n = He(r);
118
+ return B(Ae, n);
119
119
  })
120
120
  );
121
121
  function ce(o) {
@@ -197,8 +197,8 @@ var Je = N(
197
197
  "setValueOnChange",
198
198
  "removeOnBackspace"
199
199
  ]);
200
- const v = A();
201
- e = e || v, H(
200
+ const v = H();
201
+ e = e || v, q(
202
202
  e,
203
203
  process.env.NODE_ENV !== "production" && "TagInput must receive a `store` prop or be wrapped in a TagProvider component."
204
204
  );
@@ -257,7 +257,7 @@ var Je = N(
257
257
  function(r) {
258
258
  var n = r, { store: e } = n, a = M(n, ["store"]);
259
259
  const s = Ve();
260
- e = e || s, H(
260
+ e = e || s, q(
261
261
  e,
262
262
  process.env.NODE_ENV !== "production" && "TagList must receive a `store` prop or be wrapped in a TagProvider component."
263
263
  );
@@ -320,7 +320,7 @@ var Je = N(
320
320
  });
321
321
  function Ye(o = {}) {
322
322
  var r;
323
- const n = (r = o.store) == null ? void 0 : r.getState(), e = Ne(o), a = J(q({}, e.getState()), {
323
+ const n = (r = o.store) == null ? void 0 : r.getState(), e = Ne(o), a = J(A({}, e.getState()), {
324
324
  inputElement: W(n == null ? void 0 : n.inputElement, null),
325
325
  labelElement: W(n == null ? void 0 : n.labelElement, null),
326
326
  value: W(o.value, n == null ? void 0 : n.value, o.defaultValue, ""),
@@ -351,7 +351,7 @@ function Ye(o = {}) {
351
351
  };
352
352
  });
353
353
  };
354
- return J(q(q({}, e), s), {
354
+ return J(A(A({}, e), s), {
355
355
  setInputElement: (i) => s.setState("inputElement", i),
356
356
  setLabelElement: (i) => s.setState("labelElement", i),
357
357
  setValue: (i) => s.setState("value", i),
@@ -385,8 +385,8 @@ var nt = "button", ot = N(
385
385
  "value",
386
386
  "removeOnClick"
387
387
  ]);
388
- const i = A();
389
- e = e || i, H(
388
+ const i = H();
389
+ e = e || i, q(
390
390
  e,
391
391
  process.env.NODE_ENV !== "production" && "TagRemove must receive a `store` prop or be wrapped in a TagProvider component."
392
392
  );
@@ -439,7 +439,7 @@ export {
439
439
  Tt as d,
440
440
  je as e,
441
441
  ht as f,
442
- Ae as g,
442
+ He as g,
443
443
  Je as h,
444
444
  Xe as i,
445
445
  ot as j,
@@ -1,8 +1,8 @@
1
- import { c as d, b as v } from "./4CMBR7SL-C-0Aig1V.js";
2
- import { b as T } from "./YV4JVR4I-BuKFdNa0.js";
3
- import { V as _, U as i, W as S, f as P, c as x, a as C, _ as L, l as h, o as u } from "./LMDWO4NN-ZnclRjpA.js";
4
- import { a as V, T as g } from "./A3WPL2ZJ-BiXYGxnE.js";
5
- import { u as j } from "./5JTVDSTH-BOGL3M3F.js";
1
+ import { c as d, b as v } from "./4CMBR7SL-DezfZPUS.js";
2
+ import { b as T } from "./YV4JVR4I-CQnJhUSg.js";
3
+ import { V as _, U as i, W as S, f as P, c as x, a as C, _ as L, l as h, o as u } from "./LMDWO4NN-CpSMaD5G.js";
4
+ import { a as V, T as g } from "./A3WPL2ZJ-24tGIJIQ.js";
5
+ import { u as j } from "./5JTVDSTH-CZ7mfyUK.js";
6
6
  import { jsx as E } from "react/jsx-runtime";
7
7
  function F(t = {}) {
8
8
  var r;
@@ -1,6 +1,6 @@
1
- import { u as p } from "./A3WPL2ZJ-BiXYGxnE.js";
2
- import { u as n } from "./TP7N7UIH-Bs0NX7lb.js";
3
- import { f as u, c as m, a as c, _ as f, o as l } from "./LMDWO4NN-ZnclRjpA.js";
1
+ import { u as p } from "./A3WPL2ZJ-24tGIJIQ.js";
2
+ import { u as n } from "./TP7N7UIH-C4jXJDlO.js";
3
+ import { f as u, c as m, a as c, _ as f, o as l } from "./LMDWO4NN-CpSMaD5G.js";
4
4
  var b = "hr", T = m(
5
5
  function(o) {
6
6
  var r = o, { store: a } = r, e = f(r, ["store"]);
@@ -1,11 +1,11 @@
1
- import { c as q, u as J, a as Z, b as G } from "./MR26YJYP-CWddku_H.js";
2
- import { c as K } from "./G7GW6PWC-C6qSYISF.js";
3
- import { V as R, U as w, W as y, J as Q, f as x, c as E, a as O, _, i as k, l as X, o as b, m as N, C as V, N as Y, a2 as ee, e as H, q as te, n as oe, r as re, b as ne, ad as ae, s as se } from "./LMDWO4NN-ZnclRjpA.js";
1
+ import { c as q, u as Z, a as G, b as J } from "./MR26YJYP-CTh6rCwA.js";
2
+ import { c as K } from "./G7GW6PWC-Dk4hVbAk.js";
3
+ import { V as R, U as w, W as y, L as Q, f as x, c as E, a as O, _, i as k, l as X, o as b, m as N, C as V, P as Y, a2 as ee, e as H, q as te, n as oe, r as re, b as ne, ad as ae, s as se } from "./LMDWO4NN-CpSMaD5G.js";
4
4
  import { jsx as h, jsxs as ie } from "react/jsx-runtime";
5
- import { c as U, b as ue, f as I, d as z, a as j } from "./YV4JVR4I-BuKFdNa0.js";
5
+ import { c as L, b as ue, f as I, d as z, a as U } from "./YV4JVR4I-CQnJhUSg.js";
6
6
  import { useRef as le, useEffect as D, useMemo as M, useState as ce } from "react";
7
- import { H as de, a as pe } from "./EM5CXX6A-B4C-NFJy.js";
8
- import { u as ve } from "./MTZPJQMC-CNgogsHX.js";
7
+ import { H as de, a as pe } from "./EM5CXX6A-B4ZS4Hs_.js";
8
+ import { u as ve } from "./MTZPJQMC-D2i4-LA_.js";
9
9
  function fe(o = {}) {
10
10
  var r;
11
11
  process.env.NODE_ENV !== "production" && o.type === "label" && console.warn(
@@ -23,11 +23,11 @@ function fe(o = {}) {
23
23
  })), c = R(y({}, e.getState()), {
24
24
  type: w(o.type, t == null ? void 0 : t.type, "description"),
25
25
  skipTimeout: w(o.skipTimeout, t == null ? void 0 : t.skipTimeout, 300)
26
- }), n = U(c, e, o.store);
26
+ }), n = L(c, e, o.store);
27
27
  return y(y({}, e), n);
28
28
  }
29
29
  function me(o, r, t) {
30
- return I(o, t, "type"), I(o, t, "skipTimeout"), J(o, r, t);
30
+ return I(o, t, "type"), I(o, t, "skipTimeout"), Z(o, r, t);
31
31
  }
32
32
  function he(o = {}) {
33
33
  const [r, t] = ue(fe, o);
@@ -65,7 +65,7 @@ var C = Q(
65
65
  const P = e.useState(
66
66
  (u) => u.type === "description" ? "tooltip" : "none"
67
67
  );
68
- return s = b({ role: P }, s), s = Z(N(b({}, s), {
68
+ return s = b({ role: P }, s), s = G(N(b({}, s), {
69
69
  store: e,
70
70
  portal: c,
71
71
  gutter: n,
@@ -93,7 +93,7 @@ function De(o = {}) {
93
93
  const r = he(o);
94
94
  return /* @__PURE__ */ h(be, { value: r, children: o.children });
95
95
  }
96
- var we = "div", S = U({
96
+ var we = "div", S = L({
97
97
  activeStore: null
98
98
  });
99
99
  function B(o) {
@@ -152,7 +152,7 @@ var ye = E(
152
152
  onMouseEnter: s,
153
153
  onFocusVisible: P,
154
154
  onBlur: f
155
- }), n = G(b({
155
+ }), n = J(b({
156
156
  store: e,
157
157
  showOnHover(a) {
158
158
  if (!v.current || V(c, a)) return !1;
@@ -171,7 +171,7 @@ var ye = E(
171
171
  left: `rotate(90 ${m} ${m})`
172
172
  };
173
173
  function Oe(o) {
174
- const [r, t] = ce(), e = j(o, "contentElement");
174
+ const [r, t] = ce(), e = U(o, "contentElement");
175
175
  return ne(() => {
176
176
  if (!e) return;
177
177
  const n = ae(e).getComputedStyle(e);
@@ -182,7 +182,7 @@ function _e(o) {
182
182
  var r;
183
183
  return o ? (r = o.getPropertyValue("box-shadow").match(/0px 0px 0px ([^0]+px)/)) == null ? void 0 : r[1] : void 0;
184
184
  }
185
- var L = E(
185
+ var j = E(
186
186
  function(r) {
187
187
  var t = r, {
188
188
  store: e,
@@ -198,7 +198,7 @@ var L = E(
198
198
  e,
199
199
  process.env.NODE_ENV !== "production" && "PopoverArrow must be wrapped in a Popover component."
200
200
  );
201
- const p = j(
201
+ const p = U(
202
202
  e,
203
203
  (l) => l.currentPlacement.split("-")[0]
204
204
  ), s = te(), i = Oe(e), P = (i == null ? void 0 : i.getPropertyValue("background-color")) || "none", u = (i == null ? void 0 : i.getPropertyValue(`border-${p}-color`)) || "none", A = M(() => {
@@ -245,7 +245,7 @@ var L = E(
245
245
  }
246
246
  ), Be = se(
247
247
  x(function(r) {
248
- const t = L(r);
248
+ const t = j(r);
249
249
  return O(xe, t);
250
250
  })
251
251
  ), ke = "div", Ce = E(
@@ -255,7 +255,7 @@ var L = E(
255
255
  return e = e || d, k(
256
256
  e,
257
257
  process.env.NODE_ENV !== "production" && "TooltipArrow must be wrapped in a Tooltip component."
258
- ), n = L(b({ store: e, size: c }, n)), n;
258
+ ), n = j(b({ store: e, size: c }, n)), n;
259
259
  }
260
260
  ), Fe = x(function(r) {
261
261
  const t = Ce(r);
@@ -269,5 +269,5 @@ export {
269
269
  Fe as c,
270
270
  Se as d,
271
271
  he as e,
272
- L as u
272
+ j as u
273
273
  };
@@ -0,0 +1,8 @@
1
+ export * from './array';
2
+ export * from './components';
3
+ export * from './css';
4
+ export * from './date';
5
+ export * from './noop';
6
+ export * from './object';
7
+ export * from './string';
8
+ export * from './url';
@@ -0,0 +1,23 @@
1
+ import { chunk as e } from "./array.js";
2
+ import { createComposite as f, withProps as m } from "./components.js";
3
+ import { cn as n } from "./css.js";
4
+ import { getOrdinalSuffix as i } from "./date.js";
5
+ import { noop as u } from "./noop.js";
6
+ import { dot as c } from "./object.js";
7
+ import { basename as l, extension as b, filename as g, slugify as h } from "./string.js";
8
+ import { isCurrent as O, isOutbound as k } from "./url.js";
9
+ export {
10
+ l as basename,
11
+ e as chunk,
12
+ n as cn,
13
+ f as createComposite,
14
+ c as dot,
15
+ b as extension,
16
+ g as filename,
17
+ i as getOrdinalSuffix,
18
+ O as isCurrent,
19
+ k as isOutbound,
20
+ u as noop,
21
+ h as slugify,
22
+ m as withProps
23
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrdagency/blockout",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "A React component library created by WRD.agency",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",