@wrdagency/blockout 1.0.0 → 1.0.3

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 (125) hide show
  1. package/dist/{2NBKRL7C-DHf-2xkD.js → 2NBKRL7C-Cug3TzgR.js} +19 -19
  2. package/dist/{2RSXSRCN-bkYY_QT6.js → 2RSXSRCN-Bc3g-z-i.js} +19 -19
  3. package/dist/{4CMBR7SL-BkCeHgv2.js → 4CMBR7SL-xNGezbCB.js} +2 -2
  4. package/dist/{5JTVDSTH-BiHTUReD.js → 5JTVDSTH-CIreO5bC.js} +15 -15
  5. package/dist/{5VQZOHHZ-BpLDJOFs.js → 5VQZOHHZ-CNzYHc1X.js} +1 -1
  6. package/dist/{6VRAQV3D-DIdyGLyW.js → 6VRAQV3D-BoLhl3hf.js} +22 -22
  7. package/dist/{A3WPL2ZJ-SF-cbtmp.js → A3WPL2ZJ-D0Eh1dEB.js} +2 -2
  8. package/dist/{BM6PGYQY-D4-MwCVB.js → BM6PGYQY-Bhr7peim.js} +2 -2
  9. package/dist/{DG5U6ZEL-u5QgMA8f.js → DG5U6ZEL-C7eLVyh-.js} +3 -3
  10. package/dist/{EM5CXX6A-iTR0FDQv.js → EM5CXX6A-DKxCXPnz.js} +2 -2
  11. package/dist/{F5MUBM3I-Cv5aLv5o.js → F5MUBM3I-_HauDyEF.js} +21 -21
  12. package/dist/{G7GW6PWC-FbNigUHQ.js → G7GW6PWC-Crp1Jn-8.js} +56 -56
  13. package/dist/{J2LQO3EC-DIOM09Y6.js → J2LQO3EC-CcHJqN0I.js} +6 -6
  14. package/dist/{KFH4SEIX-BuapSU1b.js → KFH4SEIX-D-fCkpQv.js} +19 -19
  15. package/dist/{LMDWO4NN-DyBcLLfK.js → LMDWO4NN-DdLnHzru.js} +22 -22
  16. package/dist/{MR26YJYP-BdwVX8xi.js → MR26YJYP-yD1_RvCA.js} +23 -23
  17. package/dist/{MTZPJQMC-DMklE0XE.js → MTZPJQMC-RLG1q394.js} +2 -2
  18. package/dist/{O2PQ2652-CRn371N3.js → O2PQ2652-THp22K4G.js} +3 -3
  19. package/dist/{P7GR5CS5-Btbh4-Mw.js → P7GR5CS5-Dub2zqTX.js} +4 -6
  20. package/dist/{PFRGBC2K-DobANx7W.js → PFRGBC2K-DUhGSIey.js} +65 -65
  21. package/dist/{RS7LB2H4-lmOMNc4h.js → RS7LB2H4-C0kmTjy8.js} +1 -1
  22. package/dist/RZ4GPYOB-c8s_KHUk.js +37 -0
  23. package/dist/{S43UC3DV-C5JWPIhF.js → S43UC3DV-erT1ucAd.js} +3 -3
  24. package/dist/{T7VMP3TM-DRNGQJpZ.js → T7VMP3TM-C-Aesx9K.js} +11 -11
  25. package/dist/TP7N7UIH-mdk33dnV.js +34 -0
  26. package/dist/{UQQRIHDV-eF2M9Cz2.js → UQQRIHDV-DIXH69U3.js} +13 -13
  27. package/dist/{UYGDZTLQ-DRLNvYE6.js → UYGDZTLQ-fOwUiOjI.js} +2 -2
  28. package/dist/{VIIRIBF3-DX-Wjw1-.js → VIIRIBF3-DylpToFV.js} +3 -3
  29. package/dist/{WMYDSCNQ-YGSwAHQE.js → WMYDSCNQ-D43V-JUe.js} +16 -16
  30. package/dist/{WYCIER3C-DndYR0iO.js → WYCIER3C-S-jsj0wy.js} +2 -2
  31. package/dist/{YV4JVR4I-DOlaib2E.js → YV4JVR4I-BXEaRiAN.js} +1 -1
  32. package/dist/assets/button.css +1 -1
  33. package/dist/assets/index10.css +1 -1
  34. package/dist/assets/index11.css +1 -1
  35. package/dist/assets/index12.css +1 -1
  36. package/dist/assets/index13.css +1 -1
  37. package/dist/assets/index14.css +1 -1
  38. package/dist/assets/index15.css +1 -1
  39. package/dist/assets/index16.css +1 -1
  40. package/dist/assets/index17.css +1 -1
  41. package/dist/assets/index18.css +1 -1
  42. package/dist/assets/index19.css +1 -1
  43. package/dist/assets/index2.css +1 -1
  44. package/dist/assets/index20.css +1 -1
  45. package/dist/assets/index21.css +1 -0
  46. package/dist/assets/index3.css +1 -1
  47. package/dist/assets/index4.css +1 -1
  48. package/dist/assets/index5.css +1 -1
  49. package/dist/assets/index6.css +1 -1
  50. package/dist/assets/index7.css +1 -1
  51. package/dist/assets/index8.css +1 -1
  52. package/dist/assets/index9.css +1 -1
  53. package/dist/assets/style2.css +1 -1
  54. package/dist/components/avatar/index.js +1 -1
  55. package/dist/components/badge/index.js +1 -1
  56. package/dist/components/breadcrumbs/index.js +6 -6
  57. package/dist/components/button/index.js +7 -5
  58. package/dist/components/button/row.d.ts +7 -0
  59. package/dist/components/button/row.js +14 -0
  60. package/dist/components/controls/base-popover-control/index.js +3 -3
  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/markdown-control/editor.d.ts +1 -1
  64. package/dist/components/controls/markdown-control/editor.js +1 -1
  65. package/dist/components/controls/markdown-control/index.d.ts +1 -1
  66. package/dist/components/controls/select-control/control.js +2 -2
  67. package/dist/components/controls/select-control/props.d.ts +2 -1
  68. package/dist/components/controls/select-control/select.js +78 -78
  69. package/dist/components/data-form/index.js +1 -1
  70. package/dist/components/data-view/data/normalize.js +0 -4
  71. package/dist/components/data-view/parts/body/index.js +1 -1
  72. package/dist/components/data-view/parts/controls/index.js +1 -1
  73. package/dist/components/data-view/parts/filters/index.js +1 -1
  74. package/dist/components/data-view/parts/footer/index.js +1 -1
  75. package/dist/components/data-view/parts/view-control/index.js +1 -1
  76. package/dist/components/data-view/types/fields.d.ts +0 -5
  77. package/dist/components/filesystem/file.js +1 -1
  78. package/dist/components/filesystem/folder.js +30 -30
  79. package/dist/components/filesystem/index.js +1 -1
  80. package/dist/components/filesystem/list.js +1 -1
  81. package/dist/components/filesystem/root.js +1 -1
  82. package/dist/components/menu/index.js +1 -1
  83. package/dist/components/menu/item.js +1 -1
  84. package/dist/components/menu/items/action.js +1 -1
  85. package/dist/components/menu/items/spacer.js +5 -5
  86. package/dist/components/menu/items/submenu.js +2 -2
  87. package/dist/components/menu/items/toggle.js +1 -1
  88. package/dist/components/pagination/index.js +1 -1
  89. package/dist/components/progress/index.js +1 -1
  90. package/dist/components/shell/index.js +8 -4
  91. package/dist/components/shell/navigation.d.ts +6 -0
  92. package/dist/components/shell/navigation.js +6 -0
  93. package/dist/components/shell/root.d.ts +3 -2
  94. package/dist/components/shell/root.js +19 -6
  95. package/dist/components/shell/sidebar.d.ts +6 -0
  96. package/dist/components/shell/sidebar.js +6 -0
  97. package/dist/components/tabs/index.js +1 -1
  98. package/dist/components/tabs/list.js +6 -6
  99. package/dist/components/tabs/panel.js +35 -35
  100. package/dist/components/tabs/root.js +12 -12
  101. package/dist/components/tabs/tab.js +15 -15
  102. package/dist/components/tag/index.js +1 -1
  103. package/dist/components/toolbar/divider.js +5 -5
  104. package/dist/components/toolbar/index.js +4 -4
  105. package/dist/components/toolbar/root.js +8 -8
  106. package/dist/components/window/index.js +2 -2
  107. package/dist/{composite-provider-cs4korvf.js → composite-provider-R5SnRc_G.js} +2 -2
  108. package/dist/{item-B72AQ4I4.js → item-C5GtZF5t.js} +33 -33
  109. package/dist/{picker-D0DleQso.js → picker-HwuTWxQw.js} +4 -4
  110. package/dist/primitives/icon-label/index.d.ts +1 -2
  111. package/dist/primitives/nav-link/index.d.ts +8 -0
  112. package/dist/primitives/nav-link/index.js +37 -0
  113. package/dist/primitives/popover/index.js +2 -2
  114. package/dist/primitives/popover/root.js +1 -1
  115. package/dist/primitives/popover/target.js +1 -1
  116. package/dist/primitives/popover/window.js +3 -3
  117. package/dist/primitives/scroll-area/index.js +1 -1
  118. package/dist/primitives/tooltip/index.js +15 -15
  119. package/dist/{root-j6NM_Xfo.js → root-C7IYlG1s.js} +2 -2
  120. package/dist/utils/url.d.ts +1 -0
  121. package/dist/utils/url.js +15 -2
  122. package/package.json +1 -1
  123. package/dist/RZ4GPYOB-1GOhO1-l.js +0 -37
  124. package/dist/TP7N7UIH-DlW_S-4B.js +0 -34
  125. package/dist/components/button/index.d.ts +0 -4
@@ -1,11 +1,11 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import { cn as N } from "../../utils/css.js";
3
- import { a as w } from "../../UYGDZTLQ-DRLNvYE6.js";
4
- import { C, u as E } from "../../6VRAQV3D-DIdyGLyW.js";
5
- import { a as F } from "../../YV4JVR4I-DOlaib2E.js";
6
- import { B as V, o as W, c as D, p as j, _ as A, i as q, q as B, s as H, k as a, m as r, b as L } from "../../LMDWO4NN-DyBcLLfK.js";
7
- import { useCallback as O } from "react";
8
- var $ = "button", y = D(function(i) {
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
9
  var n = i, {
10
10
  store: e,
11
11
  getItem: l
@@ -18,20 +18,20 @@ var $ = "button", y = D(function(i) {
18
18
  e,
19
19
  process.env.NODE_ENV !== "production" && "Tab must be wrapped in a TabList component."
20
20
  );
21
- const b = B(), s = t.id || b, I = H(t), x = O(
21
+ const b = H(), s = t.id || b, I = L(t), x = $(
22
22
  (o) => {
23
23
  const c = a(r({}, o), { dimmed: I });
24
24
  return l ? l(c) : c;
25
25
  },
26
26
  [I, l]
27
- ), f = t.onClick, g = L((o) => {
27
+ ), f = t.onClick, g = O((o) => {
28
28
  f == null || f(o), !o.defaultPrevented && (e == null || e.setSelectedId(s));
29
29
  }), T = e.panels.useState(
30
30
  (o) => {
31
31
  var c;
32
- return (c = o.items.find((R) => R.tabId === s)) == null ? void 0 : c.id;
32
+ return (c = o.items.find((k) => k.tabId === s)) == null ? void 0 : c.id;
33
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)), k = S || u && !P, _ = u || ((p = t.accessibleWhenDisabled) != null ? p : !0);
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
35
  if (F(
36
36
  e.combobox || e.composite,
37
37
  "virtualFocus"
@@ -49,7 +49,7 @@ var $ = "button", y = D(function(i) {
49
49
  id: s,
50
50
  accessibleWhenDisabled: _,
51
51
  store: e.composite,
52
- shouldRegisterItem: k && v,
52
+ shouldRegisterItem: R && v,
53
53
  rowId: t.rowId,
54
54
  render: t.render
55
55
  };
@@ -69,13 +69,13 @@ var $ = "button", y = D(function(i) {
69
69
  getItem: x,
70
70
  shouldRegisterItem: v
71
71
  })), t;
72
- }), z = V(
72
+ }), B = V(
73
73
  W(function(i) {
74
- const n = y(i);
75
- return j($, n);
74
+ const n = z(i);
75
+ return j(y, n);
76
76
  })
77
77
  );
78
- const Z = ({ className: d, value: i, children: n }) => /* @__PURE__ */ m(z, { id: i, className: N("component-tabs__tab", d), children: /* @__PURE__ */ m("div", { className: "component-tabs__tab__label", children: n }) });
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 }) });
79
79
  export {
80
80
  Z as Tab
81
81
  };
@@ -1,6 +1,6 @@
1
1
  import { List as o } from "./list.js";
2
2
  import { Tag as t } from "./tag.js";
3
- import '../../assets/index10.css';const s = Object.assign(t, {
3
+ import '../../assets/index11.css';const s = Object.assign(t, {
4
4
  List: o
5
5
  });
6
6
  export {
@@ -1,17 +1,17 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
2
  import { cn as m } from "../../utils/css.js";
3
- import { u as n } from "../../A3WPL2ZJ-SF-cbtmp.js";
4
- import { u as c } from "../../TP7N7UIH-DlW_S-4B.js";
5
- import { o as i, c as u, p as l, _ as f, m as b } from "../../LMDWO4NN-DyBcLLfK.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
6
  var _ = "hr", v = u(
7
7
  function(a) {
8
- var r = a, { store: e } = r, t = f(r, ["store"]);
8
+ var r = a, { store: e } = r, t = l(r, ["store"]);
9
9
  const s = n();
10
10
  return e = e || s, t = c(b({ store: e }, t)), t;
11
11
  }
12
12
  ), T = i(function(a) {
13
13
  const r = v(a);
14
- return l(_, r);
14
+ return f(_, r);
15
15
  });
16
16
  const C = ({ className: o }) => /* @__PURE__ */ p(
17
17
  T,
@@ -2,10 +2,10 @@ import { createComposite as n } from "../../utils/components.js";
2
2
  import { Button as i } from "../button/index.js";
3
3
  import { Divider as c } from "./divider.js";
4
4
  import { Root as p } from "./root.js";
5
- import { u } from "../../A3WPL2ZJ-SF-cbtmp.js";
6
- import { u as l } from "../../6VRAQV3D-DIdyGLyW.js";
7
- import { B as b, o as f, c as _, p as I, _ as T, m as v } from "../../LMDWO4NN-DyBcLLfK.js";
8
- import '../../assets/index17.css';var d = "button", g = _(
5
+ import { u } from "../../A3WPL2ZJ-D0Eh1dEB.js";
6
+ import { u as l } from "../../6VRAQV3D-BoLhl3hf.js";
7
+ import { s as b, f, c as _, a as I, _ as T, o as v } from "../../LMDWO4NN-DdLnHzru.js";
8
+ import '../../assets/index18.css';var d = "button", g = _(
9
9
  function(t) {
10
10
  var o = t, { store: r } = o, e = T(o, ["store"]);
11
11
  const m = u();
@@ -1,10 +1,10 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { cn as v } from "../../utils/css.js";
3
- import { c as S, b as T } from "../../4CMBR7SL-BkCeHgv2.js";
4
- import { b as _ } from "../../YV4JVR4I-DOlaib2E.js";
5
- import { Q as P, S as i, R as x, o as C, c as L, p as h, _ as R, j, m as u } from "../../LMDWO4NN-DyBcLLfK.js";
6
- import { a as V, T as g } from "../../A3WPL2ZJ-SF-cbtmp.js";
7
- import { u as E } from "../../5JTVDSTH-BiHTUReD.js";
3
+ import { c as S, b as T } from "../../4CMBR7SL-xNGezbCB.js";
4
+ import { b as _ } from "../../YV4JVR4I-BXEaRiAN.js";
5
+ import { Q as P, S as i, R as x, f as C, c as L, a as h, _ as R, l as V, o as u } from "../../LMDWO4NN-DdLnHzru.js";
6
+ import { a as g, T as j } from "../../A3WPL2ZJ-D0Eh1dEB.js";
7
+ import { u as E } from "../../5JTVDSTH-CIreO5bC.js";
8
8
  function F(o = {}) {
9
9
  var r;
10
10
  const t = (r = o.store) == null ? void 0 : r.getState();
@@ -39,7 +39,7 @@ var w = "div", y = L(
39
39
  "focusLoop",
40
40
  "rtl"
41
41
  ]);
42
- const b = V();
42
+ const b = g();
43
43
  s = s || b;
44
44
  const a = k({
45
45
  store: s,
@@ -50,9 +50,9 @@ var w = "div", y = L(
50
50
  }), d = a.useState(
51
51
  (n) => n.orientation === "both" ? void 0 : n.orientation
52
52
  );
53
- return e = j(
53
+ return e = V(
54
54
  e,
55
- (n) => /* @__PURE__ */ l(g, { value: a, children: n }),
55
+ (n) => /* @__PURE__ */ l(j, { value: a, children: n }),
56
56
  [a]
57
57
  ), e = u({
58
58
  role: "toolbar",
@@ -1,6 +1,6 @@
1
1
  import { jsx as o, jsxs as i } from "react/jsx-runtime";
2
2
  import { cn as c } from "../../utils/css.js";
3
- import '../../assets/styles.css';import '../../assets/style6.css';import '../../assets/style5.css';import '../../assets/style4.css';import '../../assets/style2.css';import '../../assets/style.css';import '../../assets/style9.css';import '../../assets/index11.css';/* empty css */
3
+ import '../../assets/styles.css';import '../../assets/style6.css';import '../../assets/style5.css';import '../../assets/style4.css';import '../../assets/style2.css';import '../../assets/style.css';import '../../assets/style9.css';import '../../assets/index12.css';/* empty css */
4
4
  import { Draggable as l } from "../../primitives/draggable/index.js";
5
5
  /* empty css */
6
6
  import { useState as d } from "react";
@@ -9,7 +9,7 @@ import "../../primitives/popover/index.js";
9
9
  import { Resizable as f } from "../../primitives/resizable/index.js";
10
10
  import "../../primitives/scroll-area/index.js";
11
11
  import "../../primitives/symbol/index.js";
12
- import { a as h } from "../../G7GW6PWC-FbNigUHQ.js";
12
+ import { a as h } from "../../G7GW6PWC-Crp1Jn-8.js";
13
13
  /* empty css */
14
14
  /* empty css */
15
15
  import { H3 as w } from "../../primitives/typography/heading.js";
@@ -1,5 +1,5 @@
1
- import { u as e } from "./4CMBR7SL-BkCeHgv2.js";
2
- import { C as t } from "./P7GR5CS5-Btbh4-Mw.js";
1
+ import { u as e } from "./4CMBR7SL-xNGezbCB.js";
2
+ import { C as t } from "./P7GR5CS5-Dub2zqTX.js";
3
3
  import { jsx as i } from "react/jsx-runtime";
4
4
  function C(o = {}) {
5
5
  const r = e(o);
@@ -4,20 +4,20 @@ import { SeparatorMenuItem as be } from "./components/menu/items/spacer.js";
4
4
  import { e as ve } from "./CaretRight.es-vnr78BGI.js";
5
5
  import { EmptyIcon as he } from "./components/menu/icon.js";
6
6
  import { ToggleMenuItem as _e } from "./components/menu/items/toggle.js";
7
- import { u as Me, b as z, M as Se, c as se } from "./VIIRIBF3-DX-Wjw1-.js";
8
- import { u as we, M as ge } from "./2NBKRL7C-DHf-2xkD.js";
9
- import { c as ye, u as Pe, a as Ee, b as Oe } from "./MR26YJYP-BdwVX8xi.js";
10
- import { c as Ae, b as xe } from "./4CMBR7SL-BkCeHgv2.js";
11
- import { a as Fe } from "./S43UC3DV-C5JWPIhF.js";
12
- import { m as Ce, o as Ie, p as He, t as ke, c as De, s as ne, e as oe, b as Ne, d as Ve, a as H } from "./YV4JVR4I-DOlaib2E.js";
13
- import { P as Re, Q as B, S as V, R as x, a5 as Le, k as F, m as b, T as Te, c as G, _ as K, i as J, q as ae, b as q, j as ue, l as X, o as Y, p as Z, a6 as Be, a4 as Ke, s as je, W as $e, a0 as We } from "./LMDWO4NN-DyBcLLfK.js";
14
- import { u as ie } from "./T7VMP3TM-DRNGQJpZ.js";
15
- import { u as Ue } from "./WMYDSCNQ-YGSwAHQE.js";
16
- import { c as qe, R as ze } from "./G7GW6PWC-FbNigUHQ.js";
7
+ import { u as Me, b as z, M as Se, c as se } from "./VIIRIBF3-DylpToFV.js";
8
+ import { u as we, M as ge } from "./2NBKRL7C-Cug3TzgR.js";
9
+ import { c as ye, u as Pe, a as Ee, b as Oe } from "./MR26YJYP-yD1_RvCA.js";
10
+ import { c as Ae, b as xe } from "./4CMBR7SL-xNGezbCB.js";
11
+ import { a as Fe } from "./S43UC3DV-erT1ucAd.js";
12
+ import { m as Ce, o as Ie, p as He, t as De, c as ke, s as ne, e as oe, b as Ne, d as Ve, a as H } from "./YV4JVR4I-BXEaRiAN.js";
13
+ import { P as Re, Q as B, S as V, R as x, a5 as Le, m as F, o as b, T as Te, c as G, _ as K, i as J, q as ae, e as q, l as ue, n as X, f as Y, a as Z, a6 as Be, a4 as Ke, t as $e, W as je, a0 as We } from "./LMDWO4NN-DdLnHzru.js";
14
+ import { u as ie } from "./T7VMP3TM-C-Aesx9K.js";
15
+ import { u as Ue } from "./WMYDSCNQ-D43V-JUe.js";
16
+ import { c as qe, R as ze } from "./G7GW6PWC-Crp1Jn-8.js";
17
17
  import { useState as ce, useEffect as le, useRef as me, createRef as Qe, useMemo as Ge } from "react";
18
- import { i as Je } from "./KFH4SEIX-BuapSU1b.js";
19
- import { u as Xe } from "./5JTVDSTH-BiHTUReD.js";
20
- import { a as Q } from "./PFRGBC2K-DobANx7W.js";
18
+ import { i as Je } from "./KFH4SEIX-D-fCkpQv.js";
19
+ import { u as Xe } from "./5JTVDSTH-CIreO5bC.js";
20
+ import { a as Q } from "./PFRGBC2K-DUhGSIey.js";
21
21
  function Ye(t = {}) {
22
22
  var o = t, {
23
23
  combobox: n,
@@ -39,7 +39,7 @@ function Ye(t = {}) {
39
39
  "disclosureElement"
40
40
  ])
41
41
  );
42
- ke(i, r);
42
+ De(i, r);
43
43
  const p = r.getState(), m = Ae(B(x({}, i), {
44
44
  store: r,
45
45
  orientation: V(
@@ -68,7 +68,7 @@ function Ye(t = {}) {
68
68
  i.defaultValues,
69
69
  {}
70
70
  )
71
- }), d = De(_, m, a, r);
71
+ }), d = ke(_, m, a, r);
72
72
  return ne(
73
73
  d,
74
74
  () => oe(d, ["mounted"], (u) => {
@@ -192,14 +192,14 @@ var fe = G(
192
192
  (l) => /* @__PURE__ */ h(Se, { value: e, children: l }),
193
193
  [e]
194
194
  );
195
- const R = tt(b({ store: e }, s)), L = e.useState("mounted"), C = Je(L, s.hidden, v), k = C ? F(b({}, s.style), { display: "none" }) : s.style;
195
+ const R = tt(b({ store: e }, s)), L = e.useState("mounted"), C = Je(L, s.hidden, v), D = C ? F(b({}, s.style), { display: "none" }) : s.style;
196
196
  s = F(b({
197
197
  id: _,
198
198
  "aria-labelledby": R,
199
199
  hidden: C
200
200
  }, s), {
201
201
  ref: X(_ ? e.setContentElement : null, s.ref),
202
- style: k,
202
+ style: D,
203
203
  onKeyDown: y
204
204
  });
205
205
  const O = !!e.combobox;
@@ -245,13 +245,13 @@ var nt = "div", ot = G(function(o) {
245
245
  alwaysVisible: m
246
246
  }, a)), { "aria-labelledby": R } = y;
247
247
  a = K(y, ["aria-labelledby"]);
248
- const [C, k] = ce(), O = e.useState("autoFocusOnShow"), l = e.useState("initialFocus"), D = e.useState("baseElement"), w = e.useState("renderedItems");
248
+ const [C, D] = ce(), O = e.useState("autoFocusOnShow"), l = e.useState("initialFocus"), k = e.useState("baseElement"), w = e.useState("renderedItems");
249
249
  le(() => {
250
250
  let P = !1;
251
- return k((M) => {
252
- var $, ee, te;
251
+ return D((M) => {
252
+ var j, ee, te;
253
253
  if (P || !O) return;
254
- if (($ = M == null ? void 0 : M.current) != null && $.isConnected) return M;
254
+ if ((j = M == null ? void 0 : M.current) != null && j.isConnected) return M;
255
255
  const W = Qe();
256
256
  switch (l) {
257
257
  // TODO: Refactor
@@ -262,27 +262,27 @@ var nt = "div", ot = G(function(o) {
262
262
  W.current = ((te = [...w].reverse().find((T) => !T.disabled && T.element)) == null ? void 0 : te.element) || null;
263
263
  break;
264
264
  default:
265
- W.current = D;
265
+ W.current = k;
266
266
  }
267
267
  return W;
268
268
  }), () => {
269
269
  P = !0;
270
270
  };
271
- }, [e, O, l, w, D]);
271
+ }, [e, O, l, w, k]);
272
272
  const A = f ? !1 : v, c = !!r, g = !!C || !!a.initialFocus || !!A, N = H(
273
273
  e.combobox || e,
274
274
  "contentElement"
275
275
  ), I = H(
276
276
  (u == null ? void 0 : u.combobox) || u,
277
277
  "contentElement"
278
- ), j = Ge(() => {
278
+ ), $ = Ge(() => {
279
279
  if (!I || !N) return;
280
280
  const P = N.getAttribute("role"), M = I.getAttribute("role");
281
281
  if (!((M === "menu" || M === "menubar") && P === "menu"))
282
282
  return I;
283
283
  }, [N, I]);
284
- return j !== void 0 && (a = b({
285
- preserveTabOrderAnchor: j
284
+ return $ !== void 0 && (a = b({
285
+ preserveTabOrderAnchor: $
286
286
  }, a)), a = Ee(F(b({
287
287
  store: e,
288
288
  alwaysVisible: m,
@@ -345,7 +345,7 @@ var it = G(
345
345
  e,
346
346
  process.env.NODE_ENV !== "production" && "MenuButton must receive a `store` prop or be wrapped in a MenuProvider component."
347
347
  );
348
- const m = me(null), a = e.parent, _ = e.menubar, d = !!a, u = !!_ && !d, E = je(r), f = () => {
348
+ const m = me(null), a = e.parent, _ = e.menubar, d = !!a, u = !!_ && !d, E = $e(r), f = () => {
349
349
  const c = m.current;
350
350
  c && (e == null || e.setDisclosureElement(c), e == null || e.setAnchorElement(c), e == null || e.show());
351
351
  }, S = r.onFocus, y = q((c) => {
@@ -359,8 +359,8 @@ var it = G(
359
359
  if (L == null || L(c), E || c.defaultPrevented) return;
360
360
  const g = ut(c, R);
361
361
  g && (c.preventDefault(), f(), e == null || e.setAutoFocusOnShow(!0), e == null || e.setInitialFocus(g));
362
- }), k = r.onClick, O = q((c) => {
363
- if (k == null || k(c), c.defaultPrevented || !e) return;
362
+ }), D = r.onClick, O = q((c) => {
363
+ if (D == null || D(c), c.defaultPrevented || !e) return;
364
364
  const g = !c.detail, { open: N } = e.getState();
365
365
  (!N || g) && ((!d || g) && e.setAutoFocusOnShow(!0), e.setInitialFocus(g ? "first" : "container")), d && f();
366
366
  });
@@ -371,10 +371,10 @@ var it = G(
371
371
  ), d && (r = F(b({}, r), {
372
372
  render: /* @__PURE__ */ h(ze.div, { render: r.render })
373
373
  }));
374
- const l = ae(r.id), D = H(
374
+ const l = ae(r.id), k = H(
375
375
  (a == null ? void 0 : a.combobox) || a,
376
376
  "contentElement"
377
- ), w = d || u ? $e(D, "menuitem") : void 0, A = e.useState("contentElement");
377
+ ), w = d || u ? je(k, "menuitem") : void 0, A = e.useState("contentElement");
378
378
  return r = F(b({
379
379
  id: l,
380
380
  role: w,
@@ -395,8 +395,8 @@ var it = G(
395
395
  if (s != null) return s;
396
396
  if (d) return !0;
397
397
  if (!_) return !1;
398
- const { items: j } = _.getState();
399
- return u && re(j);
398
+ const { items: $ } = _.getState();
399
+ return u && re($);
400
400
  })()) return !1;
401
401
  const I = u ? _ : a;
402
402
  return I && I.setActiveId(c.currentTarget.id), !0;
@@ -8,10 +8,10 @@ import { e as C } from "./CaretRight.es-vnr78BGI.js";
8
8
  import { useState as G } from "react";
9
9
  import './assets/style10.css';/* empty css */
10
10
  import { t as h, c as b, a as Q, g as N, m as F, b as B, d as X, e as I, f as R, h as j, l as V, i as A, j as K, k as Z, w as $, s as U } from "./protectedTokens-DdjZoCxO.js";
11
- import { C as z } from "./composite-provider-cs4korvf.js";
12
- import { C as J } from "./5JTVDSTH-BiHTUReD.js";
13
- import { C as tt } from "./J2LQO3EC-DIOM09Y6.js";
14
- import { C as et } from "./6VRAQV3D-DIdyGLyW.js";
11
+ import { C as z } from "./composite-provider-R5SnRc_G.js";
12
+ import { C as J } from "./5JTVDSTH-CIreO5bC.js";
13
+ import { C as tt } from "./J2LQO3EC-CcHJqN0I.js";
14
+ import { C as et } from "./6VRAQV3D-BoLhl3hf.js";
15
15
  function nt(n, e, t) {
16
16
  const r = h(n, t == null ? void 0 : t.in);
17
17
  if (isNaN(e)) return b(n, NaN);
@@ -1,8 +1,7 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
- interface IconLabelProps extends PropsWithChildren {
2
+ export interface IconLabelProps extends PropsWithChildren {
3
3
  className?: string;
4
4
  size?: "small" | "normal";
5
5
  variant?: "soft" | "normal" | "strong";
6
6
  }
7
7
  export declare const IconLabel: FC<IconLabelProps>;
8
- export {};
@@ -0,0 +1,8 @@
1
+ import { AnchorHTMLAttributes, FC } from 'react';
2
+ import { IconLabelProps } from '../icon-label';
3
+ interface NavLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
4
+ variant: IconLabelProps["variant"];
5
+ size: IconLabelProps["size"];
6
+ }
7
+ export declare const NavLink: FC<NavLinkProps>;
8
+ export {};
@@ -0,0 +1,37 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { cn as s } from "../../utils/css.js";
3
+ import { isCurrent as l } from "../../utils/url.js";
4
+ import { useMemo as p } from "react";
5
+ import { IconLabel as c } from "../icon-label/index.js";
6
+ import { Link as u } from "../link/index.js";
7
+ import '../../assets/index2.css';const x = ({
8
+ className: o,
9
+ href: r,
10
+ children: m,
11
+ size: n,
12
+ variant: t,
13
+ ...a
14
+ }) => {
15
+ const e = p(() => r && l(r), [r]);
16
+ return /* @__PURE__ */ i(
17
+ u,
18
+ {
19
+ ...a,
20
+ className: s("primitive-nav-link", o),
21
+ href: r,
22
+ "aria-current": e ? "page" : "false",
23
+ children: /* @__PURE__ */ i(
24
+ c,
25
+ {
26
+ className: "primitive-nav-link__icon-label",
27
+ size: n,
28
+ variant: t,
29
+ children: m
30
+ }
31
+ )
32
+ }
33
+ );
34
+ };
35
+ export {
36
+ x as NavLink
37
+ };
@@ -1,7 +1,7 @@
1
- import { R as o } from "../../root-j6NM_Xfo.js";
1
+ import { R as o } from "../../root-C7IYlG1s.js";
2
2
  import { Target as r } from "./target.js";
3
3
  import { Window as t } from "./window.js";
4
- import '../../assets/index12.css';const e = Object.assign(o, {
4
+ import '../../assets/index13.css';const e = Object.assign(o, {
5
5
  Window: t,
6
6
  Target: r
7
7
  });
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { R as m } from "../../root-j6NM_Xfo.js";
2
+ import { R as m } from "../../root-C7IYlG1s.js";
3
3
  export {
4
4
  m as Root
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { cn as m } from "../../utils/css.js";
3
- import { P as p } from "../../WMYDSCNQ-YGSwAHQE.js";
3
+ import { P as p } from "../../WMYDSCNQ-D43V-JUe.js";
4
4
  const c = ({
5
5
  className: r,
6
6
  children: o,
@@ -1,9 +1,9 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { cn as a } from "../../utils/css.js";
3
3
  import { ScrollArea as m } from "../scroll-area/index.js";
4
- import { u as n } from "../../MTZPJQMC-DMklE0XE.js";
5
- import { a as l } from "../../YV4JVR4I-DOlaib2E.js";
6
- import { P as w } from "../../G7GW6PWC-FbNigUHQ.js";
4
+ import { u as n } from "../../MTZPJQMC-RLG1q394.js";
5
+ import { a as l } from "../../YV4JVR4I-BXEaRiAN.js";
6
+ import { P as w } from "../../G7GW6PWC-Crp1Jn-8.js";
7
7
  const P = ({
8
8
  className: r,
9
9
  children: e,
@@ -2,7 +2,7 @@ import { jsx as m, jsxs as J, Fragment as fe } from "react/jsx-runtime";
2
2
  import { cn as he } from "../../utils/css.js";
3
3
  import * as l from "react";
4
4
  import "../../index-Cgx3BqdJ.js";
5
- import '../../assets/index20.css';function j(e, t) {
5
+ import '../../assets/index21.css';function j(e, t) {
6
6
  if (typeof e == "function")
7
7
  return e(t);
8
8
  e != null && (e.current = t);
@@ -1,12 +1,12 @@
1
- import { jsx as S, jsxs as M } from "react/jsx-runtime";
2
- import { cn as $ } from "../../utils/css.js";
1
+ import { jsx as S, jsxs as $ } from "react/jsx-runtime";
2
+ import { cn as j } from "../../utils/css.js";
3
3
  import { useRef as Q, useEffect as y, useState as W } from "react";
4
4
  import '../../assets/style4.css';/* empty css */
5
- import { c as q, u as z, a as G, b as J } from "../../MR26YJYP-BdwVX8xi.js";
6
- import { c as N, b as K, d as H, e as C } from "../../YV4JVR4I-DOlaib2E.js";
7
- import { Q as k, S as f, R as h, I as L, o as V, c as A, p as R, _ as I, i as j, j as U, m as T, k as B, a4 as E, M as X, a1 as Y, b as _ } from "../../LMDWO4NN-DyBcLLfK.js";
8
- import { H as Z, a as ee } from "../../EM5CXX6A-iTR0FDQv.js";
9
- import { c as te } from "../../G7GW6PWC-FbNigUHQ.js";
5
+ import { c as q, u as z, a as G, b as J } from "../../MR26YJYP-yD1_RvCA.js";
6
+ import { c as N, b as K, d as H, e as C } from "../../YV4JVR4I-BXEaRiAN.js";
7
+ import { Q as k, S as f, R as h, I as L, f as V, c as A, a as R, _ as I, i as B, l as U, o as T, m as D, a4 as E, M as X, a1 as Y, e as _ } from "../../LMDWO4NN-DdLnHzru.js";
8
+ import { H as Z, a as ee } from "../../EM5CXX6A-DKxCXPnz.js";
9
+ import { c as te } from "../../G7GW6PWC-Crp1Jn-8.js";
10
10
  function oe(o = {}) {
11
11
  var r;
12
12
  process.env.NODE_ENV !== "production" && o.type === "label" && console.warn(
@@ -55,7 +55,7 @@ var g = L(
55
55
  "hideOnInteractOutside"
56
56
  ]);
57
57
  const m = x();
58
- e = e || m, j(
58
+ e = e || m, B(
59
59
  e,
60
60
  process.env.NODE_ENV !== "production" && "Tooltip must receive a `store` prop or be wrapped in a TooltipProvider component."
61
61
  ), s = U(
@@ -66,7 +66,7 @@ var g = L(
66
66
  const P = e.useState(
67
67
  (a) => a.type === "description" ? "tooltip" : "none"
68
68
  );
69
- return s = T({ role: P }, s), s = G(B(T({}, s), {
69
+ return s = T({ role: P }, s), s = G(D(T({}, s), {
70
70
  store: e,
71
71
  portal: l,
72
72
  gutter: i,
@@ -107,7 +107,7 @@ var pe = A(
107
107
  function(r) {
108
108
  var t = r, { store: e, showOnHover: l = !0 } = t, i = I(t, ["store", "showOnHover"]);
109
109
  const b = x();
110
- e = e || b, j(
110
+ e = e || b, B(
111
111
  e,
112
112
  process.env.NODE_ENV !== "production" && "TooltipAnchor must receive a `store` prop or be wrapped in a TooltipProvider component."
113
113
  );
@@ -143,12 +143,12 @@ var pe = A(
143
143
  if (a == null || a(n), n.defaultPrevented) return;
144
144
  const { activeStore: u } = d.getState();
145
145
  p.current = !1, u === e && d.setState("activeStore", null);
146
- }), D = e.useState("type"), F = e.useState((n) => {
146
+ }), F = e.useState("type"), M = e.useState((n) => {
147
147
  var u;
148
148
  return (u = n.contentElement) == null ? void 0 : u.id;
149
149
  });
150
- return i = B(T({
151
- "aria-labelledby": D === "label" ? F : void 0
150
+ return i = D(T({
151
+ "aria-labelledby": F === "label" ? M : void 0
152
152
  }, i), {
153
153
  onMouseEnter: s,
154
154
  onFocusVisible: P,
@@ -168,8 +168,8 @@ var pe = A(
168
168
  });
169
169
  const Ee = ({ className: o, label: r, children: t }) => {
170
170
  const [e, l] = W(!1);
171
- return r ? /* @__PURE__ */ M(ce, { open: e, setOpen: l, children: [
172
- /* @__PURE__ */ S(ve, { className: $("primitive-tooltip", o), children: t }),
171
+ return r ? /* @__PURE__ */ $(ce, { open: e, setOpen: l, children: [
172
+ /* @__PURE__ */ S(ve, { className: j("primitive-tooltip", o), children: t }),
173
173
  e && /* @__PURE__ */ S(le, { className: "primitive-tooltip__label", children: r })
174
174
  ] }) : t;
175
175
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { u as i } from "./O2PQ2652-CRn371N3.js";
3
- import { a as s } from "./MTZPJQMC-DMklE0XE.js";
2
+ import { u as i } from "./O2PQ2652-THp22K4G.js";
3
+ import { a as s } from "./MTZPJQMC-RLG1q394.js";
4
4
  function a(o = {}) {
5
5
  const r = i(o);
6
6
  return /* @__PURE__ */ e(s, { value: r, children: o.children });
@@ -1 +1,2 @@
1
1
  export declare function isOutbound(url: string): boolean;
2
+ export declare function isCurrent(url: string): boolean;
package/dist/utils/url.js CHANGED
@@ -1,6 +1,19 @@
1
- function t(n) {
2
- return new URL(n).hostname !== window.location.hostname;
1
+ function t(r) {
2
+ try {
3
+ return new URL(r).hostname !== window.location.hostname;
4
+ } catch {
5
+ return !1;
6
+ }
7
+ }
8
+ function o(r) {
9
+ try {
10
+ const n = new URL(r);
11
+ return n.origin + n.pathname === window.location.origin + window.location.pathname;
12
+ } catch {
13
+ return !1;
14
+ }
3
15
  }
4
16
  export {
17
+ o as isCurrent,
5
18
  t as isOutbound
6
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrdagency/blockout",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
4
  "description": "A React component library created by WRD.agency",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,37 +0,0 @@
1
- import { d } from "./P7GR5CS5-Btbh4-Mw.js";
2
- import { c as p, D as I, _, q as g, k as v, l as R, m as C, r as h, o as x, p as b } from "./LMDWO4NN-DyBcLLfK.js";
3
- import { useRef as k, useEffect as E } from "react";
4
- var P = "div", V = p(
5
- function(s) {
6
- var r = s, {
7
- store: e,
8
- shouldRegisterItem: n = !0,
9
- getItem: m = I,
10
- element: l
11
- } = r, t = _(r, [
12
- "store",
13
- "shouldRegisterItem",
14
- "getItem",
15
- // @ts-expect-error This prop may come from a collection renderer.
16
- "element"
17
- ]);
18
- const c = d();
19
- e = e || c;
20
- const o = g(t.id), a = k(l);
21
- return E(() => {
22
- const u = a.current;
23
- if (!o || !u || !n) return;
24
- const f = m({ id: o, element: u });
25
- return e == null ? void 0 : e.renderItem(f);
26
- }, [o, n, m, e]), t = v(C({}, t), {
27
- ref: R(a, t.ref)
28
- }), h(t);
29
- }
30
- );
31
- x(function(s) {
32
- const r = V(s);
33
- return b(P, r);
34
- });
35
- export {
36
- V as u
37
- };