@wrdagency/blockout 0.0.11 → 0.0.13

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 (77) hide show
  1. package/dist/{2NBKRL7C-raj2vrMY.js → 2NBKRL7C-C6mXReCE.js} +3 -3
  2. package/dist/{P7GR5CS5-PkUYC6hd.js → P7GR5CS5-DNbthaqU.js} +11 -11
  3. package/dist/{T7VMP3TM-BeJUiw28.js → T7VMP3TM-B3jxXFmj.js} +2 -2
  4. package/dist/{UQQRIHDV-xtNCxi0H.js → UQQRIHDV-CFdrMoqW.js} +1 -1
  5. package/dist/{VIIRIBF3-B3f0V2Nc.js → VIIRIBF3-B585VK9r.js} +1 -1
  6. package/dist/assets/form.css +1 -0
  7. package/dist/assets/index.css +1 -1
  8. package/dist/assets/index10.css +1 -1
  9. package/dist/assets/index11.css +1 -0
  10. package/dist/assets/index2.css +1 -1
  11. package/dist/assets/index3.css +1 -1
  12. package/dist/assets/index4.css +1 -1
  13. package/dist/assets/index5.css +1 -1
  14. package/dist/assets/index6.css +1 -1
  15. package/dist/assets/index7.css +1 -1
  16. package/dist/assets/index8.css +1 -1
  17. package/dist/assets/index9.css +1 -1
  18. package/dist/components/breadcrumbs/index.d.ts +7 -0
  19. package/dist/components/breadcrumbs/index.js +29 -0
  20. package/dist/components/breadcrumbs/types.d.ts +4 -0
  21. package/dist/components/button/index.js +1 -1
  22. package/dist/components/controls/base-control/index.js +1 -1
  23. package/dist/components/controls/choice-control/index.d.ts +12 -3
  24. package/dist/components/controls/choice-control/index.js +32 -22
  25. package/dist/components/controls/number-control/index.d.ts +1 -0
  26. package/dist/components/controls/number-control/index.js +33 -25
  27. package/dist/components/controls/select-control/index.d.ts +2 -0
  28. package/dist/components/controls/select-control/index.js +337 -334
  29. package/dist/components/controls/text-control/index.d.ts +1 -0
  30. package/dist/components/controls/text-control/index.js +15 -8
  31. package/dist/components/controls/textarea-control/index.d.ts +1 -0
  32. package/dist/components/controls/textarea-control/index.js +17 -9
  33. package/dist/components/controls/toggle-control/index.d.ts +3 -1
  34. package/dist/components/controls/toggle-control/index.js +35 -23
  35. package/dist/components/data-table/index.js +1 -1
  36. package/dist/components/form/components/description.d.ts +2 -0
  37. package/dist/components/form/components/description.js +15 -0
  38. package/dist/components/form/components/form.d.ts +9 -0
  39. package/dist/components/form/components/form.js +41 -0
  40. package/dist/components/form/components/index.js +18 -0
  41. package/dist/components/form/components/pagination.d.ts +6 -0
  42. package/dist/components/form/components/pagination.js +46 -0
  43. package/dist/components/form/components/progress.d.ts +5 -0
  44. package/dist/components/form/components/progress.js +22 -0
  45. package/dist/components/form/components/row.d.ts +6 -0
  46. package/dist/components/form/components/row.js +22 -0
  47. package/dist/components/form/components/step.d.ts +6 -0
  48. package/dist/components/form/components/step.js +24 -0
  49. package/dist/components/form/components/title.d.ts +2 -0
  50. package/dist/components/form/components/title.js +15 -0
  51. package/dist/components/form/index.d.ts +9 -0
  52. package/dist/components/form/index.js +6 -0
  53. package/dist/components/form/types/fields.d.ts +21 -0
  54. package/dist/components/form/types/fields.js +11 -0
  55. package/dist/components/form/types/form.d.ts +28 -0
  56. package/dist/components/form/types/form.js +7 -0
  57. package/dist/components/form/types/steps.d.ts +5 -0
  58. package/dist/components/form/types/steps.js +1 -0
  59. package/dist/components/index.d.ts +2 -0
  60. package/dist/components/index.js +29 -23
  61. package/dist/components/markdown/formats.d.ts +11 -0
  62. package/dist/components/markdown/formats.js +318 -0
  63. package/dist/components/markdown/index.js +1 -0
  64. package/dist/components/markdown/types/format.d.ts +27 -0
  65. package/dist/components/markdown/types/format.js +4 -0
  66. package/dist/components/menu/index.js +11 -11
  67. package/dist/components/menu/item.js +1 -1
  68. package/dist/components/menu/items/action.js +1 -1
  69. package/dist/components/menu/items/spacer.js +10 -10
  70. package/dist/components/menu/items/submenu.js +2 -2
  71. package/dist/components/menu/items/toggle.js +1 -1
  72. package/dist/components/progress/index.js +13 -11
  73. package/dist/index.js +33 -27
  74. package/dist/{item-Bcbx6pI-.js → item-C0kyELlf.js} +36 -36
  75. package/package.json +3 -2
  76. /package/dist/components/{controls/ranked-choice-control/index.js → breadcrumbs/types.js} +0 -0
  77. /package/dist/components/{controls/ranked-choice-control → markdown}/index.d.ts +0 -0
@@ -1,16 +1,16 @@
1
1
  import { jsx as y, jsxs as oe } from "react/jsx-runtime";
2
2
  import { ActionMenuItem as Re } from "./components/menu/items/action.js";
3
- import { SeparatorMenuItem as Le } from "./components/menu/items/spacer.js";
3
+ import { SeparatorMenuItem as ke } from "./components/menu/items/spacer.js";
4
4
  import * as S from "react";
5
- import { useRef as U, useState as ue, useEffect as B, useContext as ke, createContext as Ve, useCallback as ge, createRef as Be, useMemo as je } from "react";
5
+ import { useRef as U, useState as ue, useEffect as B, useContext as Le, createContext as Ve, useCallback as ge, createRef as Be, useMemo as je } from "react";
6
6
  import { w as Ke } from "./SSRBase.es-BUXS72ra.js";
7
7
  import { EmptyIcon as Ze } from "./components/menu/icon.js";
8
8
  import { ToggleMenuItem as $e } from "./components/menu/items/toggle.js";
9
- import { b as me, H as Ue, a as qe, c as ae, M as We, d as Ee } from "./VIIRIBF3-B3f0V2Nc.js";
10
- import { u as ze, M as Ge } from "./2NBKRL7C-raj2vrMY.js";
11
- import { c as Xe, u as Ye, a as Je, b as Se, d as Qe, e as et, f as tt, i as nt, g as ot, h as Pe, R as rt, j as st } from "./T7VMP3TM-BeJUiw28.js";
12
- import { c as _e, d as re, s as ce, h as se, e as ut, m as at, o as it, p as ct, t as lt, f as pe, g as dt, u as W } from "./UQQRIHDV-xtNCxi0H.js";
13
- import { x as Z, y as k, z as R, b as J, _ as $, i as Q, A as mt, B as Oe, u as le, D as ve, E as X, F as ft, v as pt, G as fe, h as L, s as ee, j as E, H as ye, e as q, I as de, f as te, d as ne, J as Ae, K as vt, L as ht, M as bt, r as Fe, N as wt, g as Mt, O as gt } from "./P7GR5CS5-PkUYC6hd.js";
9
+ import { b as me, H as Ue, a as qe, c as ae, M as We, d as Ee } from "./VIIRIBF3-B585VK9r.js";
10
+ import { u as ze, M as Ge } from "./2NBKRL7C-C6mXReCE.js";
11
+ import { c as Xe, u as Ye, a as Je, b as Se, d as Qe, e as et, f as tt, i as nt, g as ot, h as Pe, R as rt, j as st } from "./T7VMP3TM-B3jxXFmj.js";
12
+ import { c as _e, d as re, s as ce, h as se, e as ut, m as at, o as it, p as ct, t as lt, f as pe, g as dt, u as W } from "./UQQRIHDV-CFdrMoqW.js";
13
+ import { x as Z, y as L, z as R, d as J, _ as $, i as Q, A as mt, B as Oe, u as le, D as ve, E as X, F as ft, v as pt, G as fe, j as k, s as ee, k as E, H as ye, g as q, I as de, f as te, e as ne, J as Ae, K as vt, L as ht, M as bt, r as Fe, N as wt, h as Mt, O as gt } from "./P7GR5CS5-DNbthaqU.js";
14
14
  const Et = /* @__PURE__ */ new Map([
15
15
  [
16
16
  "bold",
@@ -41,16 +41,16 @@ He.displayName = "CaretRightIcon";
41
41
  function St(n = {}) {
42
42
  var o;
43
43
  const t = (o = n.store) == null ? void 0 : o.getState(), e = Xe(Z(R({}, n), {
44
- placement: k(
44
+ placement: L(
45
45
  n.placement,
46
46
  t == null ? void 0 : t.placement,
47
47
  "bottom"
48
48
  )
49
- })), i = k(n.timeout, t == null ? void 0 : t.timeout, 500), u = Z(R({}, e.getState()), {
49
+ })), i = L(n.timeout, t == null ? void 0 : t.timeout, 500), u = Z(R({}, e.getState()), {
50
50
  timeout: i,
51
- showTimeout: k(n.showTimeout, t == null ? void 0 : t.showTimeout),
52
- hideTimeout: k(n.hideTimeout, t == null ? void 0 : t.hideTimeout),
53
- autoFocusOnShow: k(t == null ? void 0 : t.autoFocusOnShow, !1)
51
+ showTimeout: L(n.showTimeout, t == null ? void 0 : t.showTimeout),
52
+ hideTimeout: L(n.hideTimeout, t == null ? void 0 : t.hideTimeout),
53
+ autoFocusOnShow: L(t == null ? void 0 : t.autoFocusOnShow, !1)
54
54
  }), a = _e(u, e, n.store);
55
55
  return Z(R(R({}, e), a), {
56
56
  setAutoFocusOnShow: (s) => a.setState("autoFocusOnShow", s)
@@ -110,7 +110,7 @@ function yt(n) {
110
110
  }), r = U(null);
111
111
  return B(() => ce(t, ["anchorElement"], (c) => {
112
112
  r.current = c.anchorElement;
113
- }), []), e = L(E({
113
+ }), []), e = k(E({
114
114
  autoFocusOnHide: i,
115
115
  finalFocus: r
116
116
  }, e), {
@@ -209,7 +209,7 @@ var we = Ve(null), Ce = J(
209
209
  D.current || e == null || e.setAutoFocusOnShow(!1);
210
210
  };
211
211
  }, [e, f]);
212
- const x = ke(we);
212
+ const x = Le(we);
213
213
  pt(() => {
214
214
  if (i || !u || !N || !f) return;
215
215
  const v = b.current;
@@ -232,13 +232,13 @@ var we = Ve(null), Ce = J(
232
232
  r,
233
233
  (v) => /* @__PURE__ */ y(Ue, { value: e, children: /* @__PURE__ */ y(we.Provider, { value: p, children: v }) }),
234
234
  [e, p]
235
- ), r = L(E({}, r), {
235
+ ), r = k(E({}, r), {
236
236
  ref: ee(b, r.ref)
237
237
  }), r = yt(E({ store: e }, r));
238
238
  const I = e.useState(
239
239
  (v) => i || v.autoFocusOnShow
240
240
  );
241
- return r = Je(L(E({
241
+ return r = Je(k(E({
242
242
  store: e,
243
243
  modal: i,
244
244
  portal: u,
@@ -296,7 +296,7 @@ var At = "a", Te = J(
296
296
  },
297
297
  [e]
298
298
  );
299
- return u = L(E({}, u), {
299
+ return u = k(E({}, u), {
300
300
  ref: ee(w, u.ref),
301
301
  onMouseMove: m,
302
302
  onClick: g
@@ -331,27 +331,27 @@ function Ft(n = {}) {
331
331
  lt(u, s);
332
332
  const l = s.getState(), r = Qe(Z(R({}, u), {
333
333
  store: s,
334
- orientation: k(
334
+ orientation: L(
335
335
  u.orientation,
336
336
  l.orientation,
337
337
  "vertical"
338
338
  )
339
339
  })), c = St(Z(R({}, u), {
340
340
  store: s,
341
- placement: k(
341
+ placement: L(
342
342
  u.placement,
343
343
  l.placement,
344
344
  "bottom-start"
345
345
  ),
346
- timeout: k(
346
+ timeout: L(
347
347
  u.timeout,
348
348
  l.timeout,
349
349
  a ? 0 : 150
350
350
  ),
351
- hideTimeout: k(u.hideTimeout, l.hideTimeout, 0)
351
+ hideTimeout: L(u.hideTimeout, l.hideTimeout, 0)
352
352
  })), b = Z(R(R({}, r.getState()), c.getState()), {
353
- initialFocus: k(l.initialFocus, "container"),
354
- values: k(
353
+ initialFocus: L(l.initialFocus, "container"),
354
+ values: L(
355
355
  u.values,
356
356
  l.values,
357
357
  u.defaultValues,
@@ -406,7 +406,7 @@ function Ht(n, o, t) {
406
406
  }
407
407
  function Ne(n = {}) {
408
408
  const o = qe(), t = ze(), e = et();
409
- n = L(E({}, n), {
409
+ n = k(E({}, n), {
410
410
  parent: n.parent !== void 0 ? n.parent : o,
411
411
  menubar: n.menubar !== void 0 ? n.menubar : t,
412
412
  combobox: n.combobox !== void 0 ? n.combobox : e
@@ -481,8 +481,8 @@ var De = J(
481
481
  (h) => /* @__PURE__ */ y(We, { value: e, children: h }),
482
482
  [e]
483
483
  );
484
- const F = Ct(E({ store: e }, a)), V = e.useState("mounted"), C = nt(V, a.hidden, i), H = C ? L(E({}, a.style), { display: "none" }) : a.style;
485
- a = L(E({
484
+ const F = Ct(E({ store: e }, a)), V = e.useState("mounted"), C = nt(V, a.hidden, i), H = C ? k(E({}, a.style), { display: "none" }) : a.style;
485
+ a = k(E({
486
486
  id: b,
487
487
  "aria-labelledby": F,
488
488
  hidden: C
@@ -526,7 +526,7 @@ var Tt = "div", Nt = J(function(o) {
526
526
  process.env.NODE_ENV !== "production" && "Menu must receive a `store` prop or be wrapped in a MenuProvider component."
527
527
  );
528
528
  const m = U(null), d = e.parent, g = e.menubar, w = !!d, M = !!g && !w;
529
- c = L(E({}, c), {
529
+ c = k(E({}, c), {
530
530
  ref: ee(m, c.ref)
531
531
  });
532
532
  const f = De(E({
@@ -572,7 +572,7 @@ var Tt = "div", Nt = J(function(o) {
572
572
  }, [v, A]);
573
573
  return P !== void 0 && (c = E({
574
574
  preserveTabOrderAnchor: P
575
- }, c)), c = Ce(L(E({
575
+ }, c)), c = Ce(k(E({
576
576
  store: e,
577
577
  alwaysVisible: r,
578
578
  initialFocus: C,
@@ -605,7 +605,7 @@ function It(n = {}) {
605
605
  return /* @__PURE__ */ y(Ee, { value: o, children: n.children });
606
606
  }
607
607
  var Rt = "button";
608
- function Lt(n, o) {
608
+ function kt(n, o) {
609
609
  return {
610
610
  ArrowDown: o === "bottom" || o === "top" ? "first" : !1,
611
611
  ArrowUp: o === "bottom" || o === "top" ? "last" : !1,
@@ -616,7 +616,7 @@ function Lt(n, o) {
616
616
  function Me(n, o) {
617
617
  return !!(n != null && n.some((t) => !t.element || t.element === o ? !1 : t.element.getAttribute("aria-expanded") === "true"));
618
618
  }
619
- var kt = J(
619
+ var Lt = J(
620
620
  function(o) {
621
621
  var t = o, {
622
622
  store: e,
@@ -646,7 +646,7 @@ var kt = J(
646
646
  (p) => p.placement.split("-")[0]
647
647
  ), V = s.onKeyDown, C = q((p) => {
648
648
  if (V == null || V(p), g || p.defaultPrevented) return;
649
- const I = Lt(p, F);
649
+ const I = kt(p, F);
650
650
  I && (p.preventDefault(), w(), e == null || e.setAutoFocusOnShow(!0), e == null || e.setInitialFocus(I));
651
651
  }), H = s.onClick, T = q((p) => {
652
652
  if (H == null || H(p), p.defaultPrevented || !e) return;
@@ -657,14 +657,14 @@ var kt = J(
657
657
  s,
658
658
  (p) => /* @__PURE__ */ y(Ee, { value: e, children: p }),
659
659
  [e]
660
- ), m && (s = L(E({}, s), {
660
+ ), m && (s = k(E({}, s), {
661
661
  render: /* @__PURE__ */ y(rt.div, { render: s.render })
662
662
  }));
663
663
  const h = Fe(s.id), N = W(
664
664
  (c == null ? void 0 : c.combobox) || c,
665
665
  "contentElement"
666
666
  ), D = m || d ? Mt(N, "menuitem") : void 0, x = e.useState("contentElement");
667
- return s = L(E({
667
+ return s = k(E({
668
668
  id: h,
669
669
  role: D,
670
670
  "aria-haspopup": gt(x, "menu")
@@ -673,7 +673,7 @@ var kt = J(
673
673
  onFocus: f,
674
674
  onKeyDown: C,
675
675
  onClick: T
676
- }), s = Te(L(E({
676
+ }), s = Te(k(E({
677
677
  store: e,
678
678
  focusable: i,
679
679
  accessibleWhenDisabled: u
@@ -701,7 +701,7 @@ var kt = J(
701
701
  }, s)), s;
702
702
  }
703
703
  ), Vt = te(function(o) {
704
- const t = kt(o);
704
+ const t = Lt(o);
705
705
  return ne(Rt, t);
706
706
  });
707
707
  const Bt = ({ item: n }) => {
@@ -746,7 +746,7 @@ const Bt = ({ item: n }) => {
746
746
  case "submenu":
747
747
  return /* @__PURE__ */ y(Bt, { item: n });
748
748
  case "separator":
749
- return /* @__PURE__ */ y(Le, {});
749
+ return /* @__PURE__ */ y(ke, {});
750
750
  }
751
751
  };
752
752
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrdagency/blockout",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "A React component library created by WRD.agency",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -57,6 +57,7 @@
57
57
  "@ariakit/react": "^0.4.17",
58
58
  "@phosphor-icons/react": "^2.1.8",
59
59
  "match-sorter": "^8.0.1",
60
- "object-hash": "^3.0.0"
60
+ "object-hash": "^3.0.0",
61
+ "zod": "^3.25.28"
61
62
  }
62
63
  }