@wrdagency/blockout 1.0.27 → 1.0.30

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 (128) 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/index2.css +1 -1
  39. package/dist/assets/index9.css +1 -1
  40. package/dist/assets/static.css +1 -1
  41. package/dist/assets/style.css +1 -1
  42. package/dist/assets/style16.css +1 -1
  43. package/dist/assets/style25.css +1 -1
  44. package/dist/assets/style6.css +1 -1
  45. package/dist/{combobox-group-Q7OatWHm.js → combobox-group-hNvv1WJm.js} +3 -3
  46. package/dist/{combobox-popover-CDfaOt6J.js → combobox-popover-BZ_1wNrj.js} +5 -5
  47. package/dist/components/avatar/index.d.ts +2 -2
  48. package/dist/components/avatar/index.js +20 -18
  49. package/dist/components/breadcrumbs/index.js +5 -5
  50. package/dist/components/button/row.js +4 -4
  51. package/dist/components/command-palette/dialog.js +2 -2
  52. package/dist/components/command-palette/index.js +5 -3
  53. package/dist/components/command-palette/presets.d.ts +4 -0
  54. package/dist/components/command-palette/presets.js +10 -0
  55. package/dist/components/command-palette/static.d.ts +4 -11
  56. package/dist/components/command-palette/static.js +43 -124
  57. package/dist/components/controls/base-popover-control/index.js +3 -3
  58. package/dist/components/controls/date-control/index.js +1 -1
  59. package/dist/components/controls/date-control/picker.js +5 -5
  60. package/dist/components/controls/select-control/control.js +23 -23
  61. package/dist/components/controls/select-control/props.d.ts +2 -2
  62. package/dist/components/controls/select-control/select.js +79 -67
  63. package/dist/components/controls/tag-control/ariakit-experimental.js +1102 -1115
  64. package/dist/components/controls/tag-control/index.js +8 -7
  65. package/dist/components/dialog/index.js +2 -2
  66. package/dist/components/filesystem/file.js +1 -1
  67. package/dist/components/filesystem/folder.js +5 -5
  68. package/dist/components/filesystem/list.js +1 -1
  69. package/dist/components/filesystem/root.js +1 -1
  70. package/dist/components/index.d.ts +1 -1
  71. package/dist/components/menu/index.js +2 -2
  72. package/dist/components/menu/item.js +1 -1
  73. package/dist/components/menu/items/action.js +1 -1
  74. package/dist/components/menu/items/spacer.js +1 -1
  75. package/dist/components/menu/items/submenu.js +3 -3
  76. package/dist/components/menu/items/toggle.js +1 -1
  77. package/dist/components/shell/index.js +14 -12
  78. package/dist/components/shell/navigation-separator.d.ts +6 -0
  79. package/dist/components/shell/navigation-separator.js +14 -0
  80. package/dist/components/shell/sidebar-item.d.ts +5 -4
  81. package/dist/components/shell/sidebar-item.js +25 -19
  82. package/dist/components/tabs/list.js +1 -1
  83. package/dist/components/tabs/panel.js +1 -1
  84. package/dist/components/tabs/root.js +1 -1
  85. package/dist/components/tabs/tab.js +1 -1
  86. package/dist/components/toolbar/divider.js +1 -1
  87. package/dist/components/toolbar/index.js +1 -1
  88. package/dist/components/toolbar/root.js +1 -1
  89. package/dist/components/window/index.js +1 -1
  90. package/dist/{composite-provider-VHhinf1k.js → composite-provider-BPIeS4Cg.js} +2 -2
  91. package/dist/{disclosure-provider-BUQRx-hY.js → disclosure-provider-cEVysvZT.js} +2 -2
  92. package/dist/index.d.ts +1 -0
  93. package/dist/index.js +76 -55
  94. package/dist/{item-PTynqLvp.js → item-CmTk8eHD.js} +2 -2
  95. package/dist/{menu-button-RmWWFvwE.js → menu-button-GQO5dB3U.js} +12 -12
  96. package/dist/{menu-separator-DgYHkDAA.js → menu-separator-Z6pSHpX5.js} +3 -3
  97. package/dist/{picker-DioIiYC0.js → picker-DyJogHYh.js} +4 -4
  98. package/dist/{popover-provider-HlPXIcud.js → popover-provider-BJEfhgr1.js} +2 -2
  99. package/dist/presets-BDIhXP0C.js +148 -0
  100. package/dist/primitives/icon-label/index.d.ts +2 -0
  101. package/dist/primitives/icon-label/index.js +18 -14
  102. package/dist/primitives/link/index.d.ts +3 -1
  103. package/dist/primitives/link/index.js +25 -24
  104. package/dist/primitives/nav-link/index.d.ts +4 -3
  105. package/dist/primitives/nav-link/index.js +21 -17
  106. package/dist/primitives/popover/root.d.ts +2 -3
  107. package/dist/primitives/popover/root.js +1 -1
  108. package/dist/primitives/popover/target.js +1 -1
  109. package/dist/primitives/popover/window.js +3 -3
  110. package/dist/primitives/tooltip/index.d.ts +2 -0
  111. package/dist/primitives/tooltip/index.js +36 -24
  112. package/dist/select-popover-CGgkyRb4.js +559 -0
  113. package/dist/{select-value-3BLrBdZV.js → select-value-B3DYk9eV.js} +2 -2
  114. package/dist/{tab-CKUPUgQ2.js → tab-DejwS4C8.js} +4 -4
  115. package/dist/{tab-list-CzsRzSiN.js → tab-list-CndMWcVv.js} +3 -3
  116. package/dist/{tab-panel-YGzJnU1g.js → tab-panel-DedzuWUA.js} +7 -7
  117. package/dist/{tab-provider-CV8qTybg.js → tab-provider-B0BoLfST.js} +6 -6
  118. package/dist/{tag-remove-DmlHu_9b.js → tag-remove-Dz-sGbyZ.js} +24 -24
  119. package/dist/{toolbar-BlVhTG5v.js → toolbar-PSaF1mdF.js} +5 -5
  120. package/dist/{toolbar-separator-liolx0p8.js → toolbar-separator-DJHiHbGj.js} +3 -3
  121. package/dist/{tooltip-arrow-CjZ1x0xv.js → tooltip-arrow-BVwULA6B.js} +17 -17
  122. package/dist/types/options.d.ts +14 -0
  123. package/dist/types/options.js +44 -12
  124. package/dist/utils/index.d.ts +8 -0
  125. package/dist/utils/index.js +23 -0
  126. package/package.json +1 -1
  127. package/dist/MAXQOH4L-lpuvS1NR.js +0 -564
  128. package/dist/select-popover-P8y2n3bQ.js +0 -542
@@ -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
  };
@@ -10,5 +10,19 @@ export type PartialOption<T extends string = string> = Partial<Option<T>> & {
10
10
  value: T;
11
11
  };
12
12
  export type Optionable<T extends string = string> = Option<T> | PartialOption<T> | T;
13
+ export type OptionGroup<T extends string = string> = {
14
+ type: "group";
15
+ label: string;
16
+ items: Option<T>[];
17
+ };
18
+ export type OptionableGroup<T extends string = string> = {
19
+ type: "group";
20
+ label: string;
21
+ items: Optionable<T>[];
22
+ };
23
+ export declare function isOptionGroup<T extends string = string>(value: Optionable<T> | OptionableGroup<T>): value is OptionGroup<T> | OptionableGroup<T>;
13
24
  export declare function normalizeOption<T extends string = string>(opt: Optionable<T>): Option<T>;
25
+ export declare function normalizeOptionGroup<T extends string = string>(group: OptionableGroup<T>): OptionGroup<T>;
26
+ export declare function normalizeOptions<T extends string = string>(opts: (OptionableGroup<T> | Optionable<T>)[]): OptionGroup<T>[];
27
+ export declare function findOption<T extends string = string>(options: (OptionableGroup<T> | Optionable<T>)[], value: T | undefined): Option<T> | undefined;
14
28
  export declare function uniqueOptions<T extends string = string>(value: Optionable<T>, index: number, array: Optionable<T>[]): boolean;
@@ -1,18 +1,50 @@
1
- function n(e) {
2
- return typeof e == "string" ? {
3
- value: e,
4
- label: e
1
+ function s(n) {
2
+ return typeof n == "object" && n.hasOwnProperty("type") && n.type === "group";
3
+ }
4
+ function i(n) {
5
+ return typeof n == "string" ? {
6
+ value: n,
7
+ label: n
5
8
  } : {
6
- label: e.label || e.value,
7
- ...e
9
+ label: n.label || n.value,
10
+ ...n
11
+ };
12
+ }
13
+ function f(n) {
14
+ return {
15
+ ...n,
16
+ items: n.items.map(i)
8
17
  };
9
18
  }
10
- function r(e, l, u) {
11
- return u.findIndex(
12
- (i) => n(i).value === n(e).value
13
- ) === l;
19
+ function p(n) {
20
+ const o = [], e = {
21
+ type: "group",
22
+ label: "",
23
+ items: []
24
+ };
25
+ for (const t of n)
26
+ s(t) ? o.push(f(t)) : e.items.push(i(t));
27
+ return e.items.length > 0 && o.push(e), o;
28
+ }
29
+ function l(n, o) {
30
+ const e = p(n);
31
+ console.log(e, o);
32
+ for (const t of e) {
33
+ const r = t.items.find((u) => u.value === o);
34
+ if (r)
35
+ return r;
36
+ }
37
+ }
38
+ function c(n, o, e) {
39
+ return e.findIndex(
40
+ (t) => i(t).value === i(n).value
41
+ ) === o;
14
42
  }
15
43
  export {
16
- n as normalizeOption,
17
- r as uniqueOptions
44
+ l as findOption,
45
+ s as isOptionGroup,
46
+ i as normalizeOption,
47
+ f as normalizeOptionGroup,
48
+ p as normalizeOptions,
49
+ c as uniqueOptions
18
50
  };
@@ -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.30",
4
4
  "description": "A React component library created by WRD.agency",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",