@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.
- package/dist/{2NBKRL7C-M2oB5mLz.js → 2NBKRL7C-DBbnghCe.js} +16 -16
- package/dist/{2RSXSRCN-BtBMZ8Lx.js → 2RSXSRCN-BxQ_v-Je.js} +15 -15
- package/dist/{4CMBR7SL-C-0Aig1V.js → 4CMBR7SL-DezfZPUS.js} +18 -18
- package/dist/{5JTVDSTH-BOGL3M3F.js → 5JTVDSTH-CZ7mfyUK.js} +4 -4
- package/dist/{5VQZOHHZ-DADExXg7.js → 5VQZOHHZ-DLX-ulBK.js} +1 -1
- package/dist/{6VRAQV3D-pTuMqsWW.js → 6VRAQV3D-BYmT0QTl.js} +6 -6
- package/dist/{A3WPL2ZJ-BiXYGxnE.js → A3WPL2ZJ-24tGIJIQ.js} +2 -2
- package/dist/{BM6PGYQY-DL-j4NGc.js → BM6PGYQY-DCbkDr5N.js} +2 -2
- package/dist/{DG5U6ZEL-Bn6QlO7C.js → DG5U6ZEL-DB0iwihy.js} +3 -3
- package/dist/{EM5CXX6A-B4C-NFJy.js → EM5CXX6A-B4ZS4Hs_.js} +2 -2
- package/dist/{F5MUBM3I-D6cacg-c.js → F5MUBM3I-75qY3y0N.js} +9 -9
- package/dist/{G7GW6PWC-C6qSYISF.js → G7GW6PWC-Dk4hVbAk.js} +74 -74
- package/dist/{IWEFDH56-Da7lGcXC.js → IWEFDH56-BACkQ6dc.js} +3 -3
- package/dist/{J2LQO3EC-XUQS0UAH.js → J2LQO3EC-BXJIaM2U.js} +2 -2
- package/dist/JMHAJKUZ-D5KCN1Aj.js +114 -0
- package/dist/{KFH4SEIX-C-0wHvda.js → KFH4SEIX-DaQeP5D_.js} +3 -3
- package/dist/{LMDWO4NN-ZnclRjpA.js → LMDWO4NN-CpSMaD5G.js} +21 -21
- package/dist/MAXQOH4L-BYWBWXpb.js +459 -0
- package/dist/{MR26YJYP-CWddku_H.js → MR26YJYP-CTh6rCwA.js} +39 -39
- package/dist/{MTZPJQMC-CNgogsHX.js → MTZPJQMC-D2i4-LA_.js} +2 -2
- package/dist/{O2PQ2652-DkPiHeUQ.js → O2PQ2652-DIoegIkE.js} +3 -3
- package/dist/{P7GR5CS5-bOyAbBNR.js → P7GR5CS5-3RsPGPTy.js} +1 -1
- package/dist/{PFRGBC2K-BS9YO5-Q.js → PFRGBC2K-BdRJd-gU.js} +16 -16
- package/dist/{RS7LB2H4-BpSl1D2T.js → RS7LB2H4-COOfOq9w.js} +1 -1
- package/dist/{RZ4GPYOB-D4dwmRZg.js → RZ4GPYOB-CovncfhJ.js} +5 -5
- package/dist/{S43UC3DV-BVbmEy3J.js → S43UC3DV-HCi6u_G4.js} +8 -8
- package/dist/{T7VMP3TM-BnzhAoaO.js → T7VMP3TM-C8D6mVva.js} +21 -21
- package/dist/{TIW3GMFC-C4Bh_hzw.js → TIW3GMFC-BF0w2_9R.js} +4 -4
- package/dist/{TP7N7UIH-Bs0NX7lb.js → TP7N7UIH-C4jXJDlO.js} +2 -2
- package/dist/{UQQRIHDV-C_0T8mGy.js → UQQRIHDV-DEGlgATx.js} +8 -8
- package/dist/{UYGDZTLQ-BDhCZlZ2.js → UYGDZTLQ-HiDKLOW5.js} +2 -2
- package/dist/{VIIRIBF3-CQdc2eWO.js → VIIRIBF3-B-djNAU9.js} +3 -3
- package/dist/{WMYDSCNQ-J1-TanSP.js → WMYDSCNQ-pGjWB-Pk.js} +6 -6
- package/dist/{WYCIER3C-CABEZy1i.js → WYCIER3C-CxfgpZG_.js} +2 -2
- package/dist/{YORGHBM4-B1RRY_xR.js → YORGHBM4-D_fOXG5Y.js} +1 -1
- package/dist/{YV4JVR4I-BuKFdNa0.js → YV4JVR4I-CQnJhUSg.js} +38 -38
- package/dist/assets/button.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/static.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/assets/style16.css +1 -1
- package/dist/assets/style25.css +1 -1
- package/dist/assets/style6.css +1 -1
- package/dist/{combobox-group-Q7OatWHm.js → combobox-group-hNvv1WJm.js} +3 -3
- package/dist/{combobox-popover-CDfaOt6J.js → combobox-popover-BZ_1wNrj.js} +5 -5
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/avatar/index.js +20 -18
- package/dist/components/breadcrumbs/index.js +5 -5
- package/dist/components/button/row.js +4 -4
- package/dist/components/command-palette/dialog.js +2 -2
- package/dist/components/command-palette/index.js +5 -3
- package/dist/components/command-palette/presets.d.ts +4 -0
- package/dist/components/command-palette/presets.js +10 -0
- package/dist/components/command-palette/static.d.ts +4 -11
- package/dist/components/command-palette/static.js +43 -124
- package/dist/components/controls/base-popover-control/index.js +3 -3
- package/dist/components/controls/date-control/index.js +1 -1
- package/dist/components/controls/date-control/picker.js +5 -5
- package/dist/components/controls/select-control/control.js +23 -23
- package/dist/components/controls/select-control/props.d.ts +2 -2
- package/dist/components/controls/select-control/select.js +79 -67
- package/dist/components/controls/tag-control/ariakit-experimental.js +1102 -1115
- package/dist/components/controls/tag-control/index.js +8 -7
- package/dist/components/dialog/index.js +2 -2
- package/dist/components/filesystem/file.js +1 -1
- package/dist/components/filesystem/folder.js +5 -5
- package/dist/components/filesystem/list.js +1 -1
- package/dist/components/filesystem/root.js +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/menu/index.js +2 -2
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/items/action.js +1 -1
- package/dist/components/menu/items/spacer.js +1 -1
- package/dist/components/menu/items/submenu.js +3 -3
- package/dist/components/menu/items/toggle.js +1 -1
- package/dist/components/shell/index.js +14 -12
- package/dist/components/shell/navigation-separator.d.ts +6 -0
- package/dist/components/shell/navigation-separator.js +14 -0
- package/dist/components/shell/sidebar-item.d.ts +5 -4
- package/dist/components/shell/sidebar-item.js +25 -19
- package/dist/components/tabs/list.js +1 -1
- package/dist/components/tabs/panel.js +1 -1
- package/dist/components/tabs/root.js +1 -1
- package/dist/components/tabs/tab.js +1 -1
- package/dist/components/toolbar/divider.js +1 -1
- package/dist/components/toolbar/index.js +1 -1
- package/dist/components/toolbar/root.js +1 -1
- package/dist/components/window/index.js +1 -1
- package/dist/{composite-provider-VHhinf1k.js → composite-provider-BPIeS4Cg.js} +2 -2
- package/dist/{disclosure-provider-BUQRx-hY.js → disclosure-provider-cEVysvZT.js} +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +76 -55
- package/dist/{item-PTynqLvp.js → item-CmTk8eHD.js} +2 -2
- package/dist/{menu-button-RmWWFvwE.js → menu-button-GQO5dB3U.js} +12 -12
- package/dist/{menu-separator-DgYHkDAA.js → menu-separator-Z6pSHpX5.js} +3 -3
- package/dist/{picker-DioIiYC0.js → picker-DyJogHYh.js} +4 -4
- package/dist/{popover-provider-HlPXIcud.js → popover-provider-BJEfhgr1.js} +2 -2
- package/dist/presets-BDIhXP0C.js +148 -0
- package/dist/primitives/icon-label/index.d.ts +2 -0
- package/dist/primitives/icon-label/index.js +18 -14
- package/dist/primitives/link/index.d.ts +3 -1
- package/dist/primitives/link/index.js +25 -24
- package/dist/primitives/nav-link/index.d.ts +4 -3
- package/dist/primitives/nav-link/index.js +21 -17
- package/dist/primitives/popover/root.d.ts +2 -3
- package/dist/primitives/popover/root.js +1 -1
- package/dist/primitives/popover/target.js +1 -1
- package/dist/primitives/popover/window.js +3 -3
- package/dist/primitives/tooltip/index.d.ts +2 -0
- package/dist/primitives/tooltip/index.js +36 -24
- package/dist/select-popover-CGgkyRb4.js +559 -0
- package/dist/{select-value-3BLrBdZV.js → select-value-B3DYk9eV.js} +2 -2
- package/dist/{tab-CKUPUgQ2.js → tab-DejwS4C8.js} +4 -4
- package/dist/{tab-list-CzsRzSiN.js → tab-list-CndMWcVv.js} +3 -3
- package/dist/{tab-panel-YGzJnU1g.js → tab-panel-DedzuWUA.js} +7 -7
- package/dist/{tab-provider-CV8qTybg.js → tab-provider-B0BoLfST.js} +6 -6
- package/dist/{tag-remove-DmlHu_9b.js → tag-remove-Dz-sGbyZ.js} +24 -24
- package/dist/{toolbar-BlVhTG5v.js → toolbar-PSaF1mdF.js} +5 -5
- package/dist/{toolbar-separator-liolx0p8.js → toolbar-separator-DJHiHbGj.js} +3 -3
- package/dist/{tooltip-arrow-CjZ1x0xv.js → tooltip-arrow-BVwULA6B.js} +17 -17
- package/dist/types/options.d.ts +14 -0
- package/dist/types/options.js +44 -12
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.js +23 -0
- package/package.json +1 -1
- package/dist/MAXQOH4L-lpuvS1NR.js +0 -564
- package/dist/select-popover-P8y2n3bQ.js +0 -542
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
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,
|
|
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 {
|
|
6
|
-
import { u as ue } from "./6VRAQV3D-
|
|
7
|
-
import { a as we, c as Ee, s as Ie, d as _e, b as Oe, f as Q } from "./YV4JVR4I-
|
|
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-
|
|
10
|
-
import { b as Le } from "./PFRGBC2K-
|
|
11
|
-
import { c as Ne, b as Be } from "./4CMBR7SL-
|
|
12
|
-
import { R as Me } from "./G7GW6PWC-
|
|
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",
|
|
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 =
|
|
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
|
|
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 =
|
|
78
|
-
e = e || p,
|
|
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 =
|
|
118
|
-
return B(
|
|
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 =
|
|
201
|
-
e = e || v,
|
|
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,
|
|
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(
|
|
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(
|
|
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 =
|
|
389
|
-
e = e || i,
|
|
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
|
-
|
|
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-
|
|
2
|
-
import { b as T } from "./YV4JVR4I-
|
|
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-
|
|
4
|
-
import { a as V, T as g } from "./A3WPL2ZJ-
|
|
5
|
-
import { u as j } from "./5JTVDSTH-
|
|
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-
|
|
2
|
-
import { u as n } from "./TP7N7UIH-
|
|
3
|
-
import { f as u, c as m, a as c, _ as f, o as l } from "./LMDWO4NN-
|
|
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
|
|
2
|
-
import { c as K } from "./G7GW6PWC-
|
|
3
|
-
import { V as R, U as w, W as y,
|
|
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
|
|
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-
|
|
8
|
-
import { u as ve } from "./MTZPJQMC-
|
|
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 =
|
|
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"),
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
272
|
+
j as u
|
|
273
273
|
};
|
package/dist/types/options.d.ts
CHANGED
|
@@ -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;
|
package/dist/types/options.js
CHANGED
|
@@ -1,18 +1,50 @@
|
|
|
1
|
-
function n
|
|
2
|
-
return typeof
|
|
3
|
-
|
|
4
|
-
|
|
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:
|
|
7
|
-
...
|
|
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
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
17
|
-
|
|
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,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
|
+
};
|