@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,8 +1,8 @@
1
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
2
- import { cn as L } from "../../../utils/css.js";
1
+ import { jsx as s, jsxs as r } from "react/jsx-runtime";
2
+ import { cn as x } from "../../../utils/css.js";
3
3
  import '../../../assets/style16.css';import '../../../assets/styles.css';import '../../../assets/style6.css';import '../../../assets/style5.css';import '../../../assets/style4.css';import '../../../assets/style3.css';import '../../../assets/style2.css';import '../../../assets/style.css';import '../../../assets/style10.css';import '../../../assets/style7.css';/* empty css */
4
- import { noop as g } from "../../../utils/noop.js";
5
- import { useState as _, useMemo as j, startTransition as y } from "react";
4
+ import { noop as j } from "../../../utils/noop.js";
5
+ import { useState as h, useMemo as y, startTransition as g } from "react";
6
6
  /* empty css */
7
7
  /* empty css */
8
8
  /* empty css */
@@ -14,67 +14,69 @@ import "../../../primitives/symbol/index.js";
14
14
  /* empty css */
15
15
  /* empty css */
16
16
  /* empty css */
17
- import { normalizeOption as z } from "../../../types/options.js";
18
- import { s as A } from "../../../MagnifyingGlass.es-CLstwG_v.js";
19
- import { m as H } from "../../../match-sorter.esm-MNVE8H_6.js";
17
+ import { normalizeOptions as z, findOption as A } from "../../../types/options.js";
18
+ import { s as H } from "../../../MagnifyingGlass.es-CLstwG_v.js";
19
+ import { m as M } from "../../../match-sorter.esm-MNVE8H_6.js";
20
20
  /* empty css */
21
- import { C as M, a as h, b as T, c as f } from "../../../MAXQOH4L-lpuvS1NR.js";
22
- import { S as $, a as q, b as B, c as D, d as E } from "../../../select-popover-P8y2n3bQ.js";
23
- import { C as F } from "../../../combobox-popover-CDfaOt6J.js";
24
- const ve = ({
25
- className: u,
26
- value: r,
27
- onChangeValue: p = g,
28
- options: v,
29
- searchable: i = !1,
30
- combobox: t = !1,
31
- placeholder: S = "Choose an option...",
32
- prefix: G,
33
- suffix: J,
34
- children: N,
35
- withIcon: K,
36
- ...P
21
+ import { C as T, a as f, b as $ } from "../../../MAXQOH4L-BYWBWXpb.js";
22
+ import { S as q, a as B, b as D, c as E, d as F, e as J, f as K } from "../../../select-popover-CGgkyRb4.js";
23
+ import { C as Q } from "../../../combobox-popover-BZ_1wNrj.js";
24
+ import { C as R, a as U } from "../../../combobox-group-hNvv1WJm.js";
25
+ import { C as u } from "../../../JMHAJKUZ-D5KCN1Aj.js";
26
+ const be = ({
27
+ className: v,
28
+ value: i,
29
+ onChangeValue: a = j,
30
+ options: S = [],
31
+ searchable: l = !1,
32
+ combobox: e = !1,
33
+ placeholder: N = "Choose an option...",
34
+ prefix: W,
35
+ suffix: X,
36
+ children: C,
37
+ withIcon: Y,
38
+ ...O
37
39
  }) => {
38
- t && (i = !0);
39
- const [n, a] = _(!1), [c, C] = _(""), l = (v || []).map(z), m = j(() => H(l, c, {
40
- baseSort: (e, x) => e.index < x.index ? -1 : 1,
40
+ e && (l = !0);
41
+ const [n, p] = h(!1), [c, P] = h(""), m = z(S), _ = y(() => M(m, c, {
42
+ baseSort: (o, t) => o.index < t.index ? -1 : 1,
41
43
  keys: ["label", "description"]
42
- }), [c]), O = i || t ? T : D, w = t ? f : E, I = t ? h : q, V = t ? F : B, d = !!!l.find((e) => e.value === r);
43
- return /* @__PURE__ */ o(
44
- M,
44
+ }), [c]), L = l || e ? $ : E, w = e ? u : K, G = e ? f : B, b = e ? Q : D, I = e ? R : F, V = e ? U : J, d = !!!A(m, i);
45
+ return /* @__PURE__ */ s(
46
+ T,
45
47
  {
46
- resetValueOnHide: !t,
48
+ resetValueOnHide: !e,
47
49
  open: n,
48
- setOpen: a,
49
- value: t ? r : c,
50
- setValue: (e) => {
51
- t && p(e), y(() => {
52
- C(e);
50
+ setOpen: p,
51
+ value: e ? i : c,
52
+ setValue: (o) => {
53
+ e && a(o), g(() => {
54
+ P(o);
53
55
  });
54
56
  },
55
- children: /* @__PURE__ */ s(
56
- $,
57
+ children: /* @__PURE__ */ r(
58
+ q,
57
59
  {
58
- value: d ? "" : r,
59
- setValue: p,
60
+ value: d ? "" : i,
61
+ setValue: a,
60
62
  open: n,
61
- setOpen: a,
63
+ setOpen: p,
62
64
  children: [
63
- /* @__PURE__ */ o(
64
- I,
65
+ /* @__PURE__ */ s(
66
+ G,
65
67
  {
66
- className: L(
67
- u,
68
+ className: x(
69
+ v,
68
70
  "component-select__input",
69
71
  d && "component-select__input--placeholder"
70
72
  ),
71
- children: t ? void 0 : N,
72
- placeholder: S,
73
- ...P
73
+ children: e ? void 0 : C,
74
+ placeholder: N,
75
+ ...O
74
76
  }
75
77
  ),
76
- n && m.length > 0 && /* @__PURE__ */ o(
77
- V,
78
+ n && _.length > 0 && /* @__PURE__ */ s(
79
+ b,
78
80
  {
79
81
  className: "component-select__popover",
80
82
  "data-colour-scheme": "invert",
@@ -85,11 +87,11 @@ const ve = ({
85
87
  gutter: 8,
86
88
  overflowPadding: 4,
87
89
  shift: -1,
88
- children: /* @__PURE__ */ s(k, { className: "component-select__popover__scroll", axis: "y", children: [
89
- i && !t && /* @__PURE__ */ s("div", { className: "component-select__popover__search-wrapper", children: [
90
- /* @__PURE__ */ o(A, { className: "component-select__popover__search-icon" }),
91
- /* @__PURE__ */ o(
92
- h,
90
+ children: /* @__PURE__ */ r(k, { className: "component-select__popover__scroll", axis: "y", children: [
91
+ l && !e && /* @__PURE__ */ r("div", { className: "component-select__popover__search-wrapper", children: [
92
+ /* @__PURE__ */ s(H, { className: "component-select__popover__search-icon" }),
93
+ /* @__PURE__ */ s(
94
+ f,
93
95
  {
94
96
  autoSelect: !0,
95
97
  placeholder: "Search...",
@@ -97,22 +99,32 @@ const ve = ({
97
99
  }
98
100
  )
99
101
  ] }),
100
- /* @__PURE__ */ o(O, { className: "component-select__list", children: m.map((e) => /* @__PURE__ */ s(
101
- w,
102
+ /* @__PURE__ */ s(L, { className: "component-select__list", children: _.map((o) => /* @__PURE__ */ r(
103
+ I,
102
104
  {
103
- disabled: e.disabled,
104
- value: e.value,
105
- className: "component-select__option",
106
- render: /* @__PURE__ */ o(f, {}),
105
+ className: "component-select__list__group",
107
106
  children: [
108
- /* @__PURE__ */ s("div", { className: "component-select__option__label", children: [
109
- e.icon,
110
- e.label
111
- ] }),
112
- e.description && /* @__PURE__ */ o("div", { className: "component-select__option__description", children: e.description })
107
+ o.label && /* @__PURE__ */ s(V, { className: "component-select__list__group__label", children: o.label }),
108
+ o.items.map((t) => /* @__PURE__ */ r(
109
+ w,
110
+ {
111
+ disabled: t.disabled,
112
+ value: t.value,
113
+ className: "component-select__option",
114
+ render: /* @__PURE__ */ s(u, {}),
115
+ children: [
116
+ /* @__PURE__ */ r("div", { className: "component-select__option__label", children: [
117
+ t.icon,
118
+ t.label
119
+ ] }),
120
+ t.description && /* @__PURE__ */ s("div", { className: "component-select__option__description", children: t.description })
121
+ ]
122
+ },
123
+ t.value
124
+ ))
113
125
  ]
114
126
  },
115
- e.value
127
+ o.label
116
128
  )) })
117
129
  ] })
118
130
  }
@@ -124,5 +136,5 @@ const ve = ({
124
136
  );
125
137
  };
126
138
  export {
127
- ve as Select
139
+ be as Select
128
140
  };