@wrdagency/blockout 1.0.5 → 1.0.7
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-CzwWfv1x.js +76 -0
- package/dist/2RSXSRCN-rMUAytae.js +61 -0
- package/dist/{4CMBR7SL-xNGezbCB.js → 4CMBR7SL-ChJnawVl.js} +132 -126
- package/dist/{5JTVDSTH-CIreO5bC.js → 5JTVDSTH-DcfjjEya.js} +4 -4
- package/dist/{5VQZOHHZ-CNzYHc1X.js → 5VQZOHHZ-BN-teS5E.js} +1 -1
- package/dist/{6VRAQV3D-BoLhl3hf.js → 6VRAQV3D-DK_p41oq.js} +6 -6
- package/dist/A3WPL2ZJ-CpUtG5Sk.js +12 -0
- package/dist/{BM6PGYQY-Bhr7peim.js → BM6PGYQY-CkMwDqt0.js} +2 -2
- package/dist/Check.es-CMkTf2It.js +38 -0
- package/dist/{DG5U6ZEL-C7eLVyh-.js → DG5U6ZEL-GfwW2sqh.js} +3 -3
- package/dist/EM5CXX6A-C74NAQPE.js +13 -0
- package/dist/{F5MUBM3I-_HauDyEF.js → F5MUBM3I-BbDMTUwx.js} +24 -24
- package/dist/{G7GW6PWC-Crp1Jn-8.js → G7GW6PWC-A0eDeXMt.js} +100 -96
- package/dist/IWEFDH56-CvOsIcbb.js +19 -0
- package/dist/{J2LQO3EC-CcHJqN0I.js → J2LQO3EC-DYtZQQv6.js} +4 -3
- package/dist/{KFH4SEIX-D-fCkpQv.js → KFH4SEIX-BFT9WmYk.js} +3 -3
- package/dist/{LMDWO4NN-DdLnHzru.js → LMDWO4NN-CIZvvtic.js} +233 -203
- package/dist/MAXQOH4L-DBaf8WKp.js +564 -0
- package/dist/MR26YJYP-DacZIkgJ.js +287 -0
- package/dist/MTZPJQMC-DPwZ6caC.js +13 -0
- package/dist/{O2PQ2652-THp22K4G.js → O2PQ2652-D2GSkoLq.js} +6 -6
- package/dist/P7GR5CS5-5PtDURPc.js +24 -0
- package/dist/{PFRGBC2K-DUhGSIey.js → PFRGBC2K-B9ko--FF.js} +34 -33
- package/dist/Plus.es-DJ5SuqNv.js +38 -0
- package/dist/RS7LB2H4-BvDKQaCt.js +18 -0
- package/dist/RZ4GPYOB-COPqjbOz.js +37 -0
- package/dist/{S43UC3DV-erT1ucAd.js → S43UC3DV-CiBKpqp8.js} +3 -3
- package/dist/{T7VMP3TM-C-Aesx9K.js → T7VMP3TM-C0xl-w4G.js} +21 -21
- package/dist/TP7N7UIH-Dc0CLLi8.js +33 -0
- package/dist/{UQQRIHDV-DIXH69U3.js → UQQRIHDV-BBkcyl82.js} +17 -17
- package/dist/UYGDZTLQ-9uAEICxv.js +13 -0
- package/dist/VIIRIBF3-uvnIyICw.js +31 -0
- package/dist/WMYDSCNQ-D4CU76mX.js +61 -0
- package/dist/{WYCIER3C-S-jsj0wy.js → WYCIER3C-CaoIoaX7.js} +4 -4
- package/dist/{YV4JVR4I-BXEaRiAN.js → YV4JVR4I-w1-dnslS.js} +47 -47
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/style16.css +1 -1
- package/dist/assets/style17.css +1 -1
- package/dist/assets/style18.css +1 -1
- package/dist/assets/style19.css +1 -1
- package/dist/assets/style20.css +1 -1
- package/dist/assets/style21.css +1 -1
- package/dist/assets/style22.css +1 -1
- package/dist/assets/style23.css +1 -1
- package/dist/assets/style24.css +1 -1
- package/dist/assets/style25.css +1 -1
- package/dist/assets/style26.css +1 -1
- package/dist/assets/style27.css +1 -0
- package/dist/components/breadcrumbs/index.js +5 -5
- package/dist/components/button/row.js +4 -4
- package/dist/components/controls/base-popover-control/index.js +4 -4
- package/dist/components/controls/card-number-control/index.js +1 -1
- package/dist/components/controls/date-control/index.js +1 -1
- package/dist/components/controls/date-control/picker.js +5 -5
- package/dist/components/controls/index.d.ts +1 -0
- package/dist/components/controls/index.js +12 -10
- package/dist/components/controls/list-control/item.js +34 -67
- package/dist/components/controls/list-control/list.js +1 -1
- package/dist/components/controls/recurrence-control/index.js +19 -18
- package/dist/components/controls/select-control/control.js +26 -37
- package/dist/components/controls/select-control/select.js +62 -1129
- package/dist/components/controls/tag-control/ariakit-experimental.d.ts +7 -0
- package/dist/components/controls/tag-control/ariakit-experimental.js +2308 -0
- package/dist/components/controls/tag-control/index.d.ts +10 -0
- package/dist/components/controls/tag-control/index.js +137 -0
- package/dist/components/controls/tag-control/props.d.ts +20 -0
- package/dist/components/controls/tag-control/props.js +57 -0
- package/dist/components/controls/text-control/index.js +1 -1
- package/dist/components/data-view/data/apply.js +15 -15
- package/dist/components/data-view/data/filter.js +14 -12
- package/dist/components/data-view/index.js +1 -1
- package/dist/components/data-view/layouts/grid/empty.js +1 -1
- package/dist/components/data-view/layouts/grid/group.js +9 -7
- package/dist/components/data-view/layouts/grid/item.js +9 -7
- package/dist/components/data-view/layouts/grid/root.js +1 -1
- package/dist/components/data-view/layouts/kanban/empty.js +1 -1
- package/dist/components/data-view/layouts/kanban/group.js +9 -7
- package/dist/components/data-view/layouts/kanban/item.js +9 -7
- package/dist/components/data-view/layouts/kanban/root.js +1 -1
- package/dist/components/data-view/layouts/list/empty.js +1 -1
- package/dist/components/data-view/layouts/list/group.js +9 -7
- package/dist/components/data-view/layouts/list/item.js +9 -7
- package/dist/components/data-view/layouts/list/root.js +1 -1
- package/dist/components/data-view/layouts/table/empty.js +9 -7
- package/dist/components/data-view/layouts/table/group.js +10 -8
- package/dist/components/data-view/layouts/table/item.js +10 -8
- package/dist/components/data-view/layouts/table/root.js +9 -7
- package/dist/components/data-view/parts/body/index.js +11 -9
- package/dist/components/data-view/parts/controls/index.js +9 -7
- package/dist/components/data-view/parts/controls/search.js +9 -7
- package/dist/components/data-view/parts/filters/editor.js +8 -6
- package/dist/components/data-view/parts/filters/index.js +1 -1
- package/dist/components/data-view/parts/filters/list.js +39 -73
- package/dist/components/data-view/parts/footer/actions.js +9 -7
- package/dist/components/data-view/parts/footer/index.js +9 -7
- package/dist/components/data-view/parts/footer/selection.js +9 -7
- package/dist/components/data-view/parts/view-control/index.js +23 -21
- package/dist/components/data-view/root.js +9 -7
- package/dist/components/data-view/slots/group/checkbox.js +9 -7
- package/dist/components/data-view/slots/group/context.js +1 -1
- package/dist/components/data-view/slots/group/icon.js +1 -1
- package/dist/components/data-view/slots/group/index.js +1 -1
- package/dist/components/data-view/slots/group/label.js +1 -1
- package/dist/components/data-view/slots/index.js +3 -3
- package/dist/components/data-view/slots/item/actions.js +1 -1
- package/dist/components/data-view/slots/item/checkbox.js +9 -7
- package/dist/components/data-view/slots/item/depth.js +3 -3
- package/dist/components/data-view/slots/item/description.js +1 -1
- package/dist/components/data-view/slots/item/index.js +2 -2
- package/dist/components/data-view/slots/item/properties.js +2 -2
- package/dist/components/data-view/slots/item/relations.js +3 -3
- package/dist/components/data-view/slots/item/tags.js +1 -1
- package/dist/components/data-view/slots/item/thumbnail.js +1 -1
- package/dist/components/data-view/slots/item/title.js +1 -1
- package/dist/components/data-view/slots/item/util.js +2 -2
- package/dist/components/data-view/slots/property/field/editable.js +8 -6
- package/dist/components/data-view/slots/property/field/index.js +2 -2
- package/dist/components/data-view/slots/property/field/static.js +1 -1
- package/dist/components/data-view/slots/property/index.js +1 -1
- package/dist/components/data-view/slots/property/label.js +1 -1
- package/dist/components/data-view/slots/root/checkbox.js +8 -6
- package/dist/components/data-view/slots/root/index.js +1 -1
- package/dist/components/filesystem/file.js +1 -1
- package/dist/components/filesystem/folder.js +29 -80
- package/dist/components/filesystem/list.js +1 -1
- package/dist/components/filesystem/root.js +1 -1
- package/dist/components/index.js +41 -39
- package/dist/components/menu/index.js +14 -13
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/items/action.js +1 -1
- package/dist/components/menu/items/spacer.js +4 -16
- package/dist/components/menu/items/submenu.js +4 -3
- package/dist/components/menu/items/toggle.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/tabs/list.js +8 -36
- package/dist/components/tabs/panel.js +13 -126
- package/dist/components/tabs/root.js +14 -166
- package/dist/components/tabs/tab.js +5 -79
- package/dist/components/toolbar/divider.js +7 -19
- package/dist/components/toolbar/index.js +10 -24
- package/dist/components/toolbar/root.js +5 -67
- package/dist/components/window/index.js +2 -2
- package/dist/{composite-provider-R5SnRc_G.js → composite-provider-B-M1AaRb.js} +2 -2
- package/dist/disclosure-provider-DW9RmAuE.js +61 -0
- package/dist/{filter-C-ZkRgt_.js → filter-GoxwLwkT.js} +14 -12
- package/dist/{index-DI0cEpya.js → index-C_xrLeQq.js} +20 -18
- package/dist/{index-BW-2OhmK.js → index-DJ2XZnew.js} +7 -5
- package/dist/{index-Bj4Ga50P.js → index-DpV0obFX.js} +6 -4
- package/dist/index.js +87 -85
- package/dist/item-CYpF0or4.js +58 -0
- package/dist/{style-tA0yiKCL.js → match-sorter.esm-MNVE8H_6.js} +1 -1
- package/dist/menu-button-D0chRxS0.js +416 -0
- package/dist/menu-separator-Cy38O3cZ.js +16 -0
- package/dist/{picker-BkmBjgWA.js → picker-BAQPD-c9.js} +4 -4
- package/dist/popover-provider-DZV1nb7Q.js +10 -0
- package/dist/primitives/popover/index.js +2 -2
- package/dist/primitives/popover/root.js +12 -3
- package/dist/primitives/popover/target.js +1 -1
- package/dist/primitives/popover/window.js +3 -3
- package/dist/primitives/tooltip/index.js +10 -173
- package/dist/select-popover-DYAZyLp4.js +542 -0
- package/dist/select-value-CeoMyvpZ.js +15 -0
- package/dist/{sortable.esm-De3H-_AA.js → sortable.esm-BuV7eW2H.js} +4 -4
- package/dist/{style-C7eFpUVU.js → style-CWAa57kN.js} +1 -1
- package/dist/tab-DjNG1rEI.js +79 -0
- package/dist/tab-list-DtMnUjoy.js +33 -0
- package/dist/tab-panel-DdkeLgKE.js +118 -0
- package/dist/tab-provider-BMkHrtIK.js +158 -0
- package/dist/tag-remove-BVa8oSsq.js +533 -0
- package/dist/toolbar-B7_t1rYu.js +68 -0
- package/dist/toolbar-separator-DBoO5XdF.js +16 -0
- package/dist/tooltip-anchor-CxZWazuo.js +173 -0
- package/package.json +1 -1
- package/dist/2NBKRL7C-Cug3TzgR.js +0 -85
- package/dist/2RSXSRCN-Bc3g-z-i.js +0 -61
- package/dist/A3WPL2ZJ-D0Eh1dEB.js +0 -11
- package/dist/EM5CXX6A-DKxCXPnz.js +0 -14
- package/dist/MR26YJYP-yD1_RvCA.js +0 -283
- package/dist/MTZPJQMC-RLG1q394.js +0 -12
- package/dist/P7GR5CS5-Dub2zqTX.js +0 -22
- package/dist/RS7LB2H4-C0kmTjy8.js +0 -15
- package/dist/RZ4GPYOB-c8s_KHUk.js +0 -37
- package/dist/TP7N7UIH-mdk33dnV.js +0 -34
- package/dist/UYGDZTLQ-fOwUiOjI.js +0 -12
- package/dist/VIIRIBF3-DylpToFV.js +0 -18
- package/dist/WMYDSCNQ-D43V-JUe.js +0 -62
- package/dist/item-C5GtZF5t.js +0 -470
- package/dist/root-C7IYlG1s.js +0 -20
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
import { u as Se, a as se, S as be, b as xe, c as Oe, d as Ce, e as de } from "./DG5U6ZEL-GfwW2sqh.js";
|
|
2
|
+
import { u as Ie } from "./MTZPJQMC-DPwZ6caC.js";
|
|
3
|
+
import { c as R, _ as T, i as X, m as I, o as p, r as Ae, f as F, a as H, S as De, T as W, V as O, U as V, W as _e, j as k, e as le, G as Ve, l as J, n as he, a0 as ke, s as Ke, q as ge, t as Le, O as Me, P as Ne, Q as Re, h as Te, u as Fe, ac as He } from "./LMDWO4NN-CIZvvtic.js";
|
|
4
|
+
import { useMemo as ae, useState as Q, useRef as je, useEffect as ne, useCallback as Be, useContext as me, createContext as $e } from "react";
|
|
5
|
+
import { jsx as P, jsxs as oe, Fragment as ve } from "react/jsx-runtime";
|
|
6
|
+
import { u as we } from "./T7VMP3TM-C0xl-w4G.js";
|
|
7
|
+
import { u as Ue } from "./WMYDSCNQ-D4CU76mX.js";
|
|
8
|
+
import { t as ye } from "./7PRQYBBV-91wrWGjk.js";
|
|
9
|
+
import { c as qe, a as We } from "./O2PQ2652-D2GSkoLq.js";
|
|
10
|
+
import { c as ze, d as Ge, b as Qe } from "./4CMBR7SL-ChJnawVl.js";
|
|
11
|
+
import { a as Je } from "./S43UC3DV-CiBKpqp8.js";
|
|
12
|
+
import { m as Xe, o as Ye, t as Ze, c as et, s as z, e as re, g as tt, b as ot, d as pe, u as rt } from "./YV4JVR4I-w1-dnslS.js";
|
|
13
|
+
import { u as nt } from "./UQQRIHDV-BBkcyl82.js";
|
|
14
|
+
import { u as st } from "./6VRAQV3D-DK_p41oq.js";
|
|
15
|
+
import { i as lt } from "./KFH4SEIX-BFT9WmYk.js";
|
|
16
|
+
import { u as at } from "./5JTVDSTH-DcfjjEya.js";
|
|
17
|
+
import { c as it, u as ut } from "./G7GW6PWC-A0eDeXMt.js";
|
|
18
|
+
var ct = "span", dt = {
|
|
19
|
+
top: "4,10 8,6 12,10",
|
|
20
|
+
right: "6,4 10,8 6,12",
|
|
21
|
+
bottom: "4,6 8,10 12,6",
|
|
22
|
+
left: "10,4 6,8 10,12"
|
|
23
|
+
}, Pe = R(function(o) {
|
|
24
|
+
var r = o, { store: e, placement: t } = r, a = T(r, ["store", "placement"]);
|
|
25
|
+
const m = Ie();
|
|
26
|
+
e = e || m, X(
|
|
27
|
+
e,
|
|
28
|
+
process.env.NODE_ENV !== "production" && "PopoverDisclosureArrow must be wrapped in a PopoverDisclosure component."
|
|
29
|
+
);
|
|
30
|
+
const E = e.useState((n) => t || n.placement).split("-")[0], u = dt[E], l = ae(
|
|
31
|
+
() => /* @__PURE__ */ P(
|
|
32
|
+
"svg",
|
|
33
|
+
{
|
|
34
|
+
display: "block",
|
|
35
|
+
fill: "none",
|
|
36
|
+
stroke: "currentColor",
|
|
37
|
+
strokeLinecap: "round",
|
|
38
|
+
strokeLinejoin: "round",
|
|
39
|
+
strokeWidth: 1.5,
|
|
40
|
+
viewBox: "0 0 16 16",
|
|
41
|
+
height: "1em",
|
|
42
|
+
width: "1em",
|
|
43
|
+
children: /* @__PURE__ */ P("polyline", { points: u })
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
[u]
|
|
47
|
+
);
|
|
48
|
+
return a = I(p({
|
|
49
|
+
children: l,
|
|
50
|
+
"aria-hidden": !0
|
|
51
|
+
}, a), {
|
|
52
|
+
style: p({
|
|
53
|
+
width: "1em",
|
|
54
|
+
height: "1em",
|
|
55
|
+
pointerEvents: "none"
|
|
56
|
+
}, a.style)
|
|
57
|
+
}), Ae(a);
|
|
58
|
+
}), Qt = F(
|
|
59
|
+
function(o) {
|
|
60
|
+
const r = Pe(o);
|
|
61
|
+
return H(ct, r);
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
function mt(s = {}) {
|
|
65
|
+
var o = s, {
|
|
66
|
+
combobox: r
|
|
67
|
+
} = o, e = De(o, [
|
|
68
|
+
"combobox"
|
|
69
|
+
]);
|
|
70
|
+
const t = Xe(
|
|
71
|
+
e.store,
|
|
72
|
+
Ye(r, [
|
|
73
|
+
"value",
|
|
74
|
+
"items",
|
|
75
|
+
"renderedItems",
|
|
76
|
+
"baseElement",
|
|
77
|
+
"arrowElement",
|
|
78
|
+
"anchorElement",
|
|
79
|
+
"contentElement",
|
|
80
|
+
"popoverElement",
|
|
81
|
+
"disclosureElement"
|
|
82
|
+
])
|
|
83
|
+
);
|
|
84
|
+
Ze(e, t);
|
|
85
|
+
const a = t.getState(), m = ze(W(V({}, e), {
|
|
86
|
+
store: t,
|
|
87
|
+
virtualFocus: O(
|
|
88
|
+
e.virtualFocus,
|
|
89
|
+
a.virtualFocus,
|
|
90
|
+
!0
|
|
91
|
+
),
|
|
92
|
+
includesBaseElement: O(
|
|
93
|
+
e.includesBaseElement,
|
|
94
|
+
a.includesBaseElement,
|
|
95
|
+
!1
|
|
96
|
+
),
|
|
97
|
+
activeId: O(
|
|
98
|
+
e.activeId,
|
|
99
|
+
a.activeId,
|
|
100
|
+
e.defaultActiveId,
|
|
101
|
+
null
|
|
102
|
+
),
|
|
103
|
+
orientation: O(
|
|
104
|
+
e.orientation,
|
|
105
|
+
a.orientation,
|
|
106
|
+
"vertical"
|
|
107
|
+
)
|
|
108
|
+
})), S = qe(W(V({}, e), {
|
|
109
|
+
store: t,
|
|
110
|
+
placement: O(
|
|
111
|
+
e.placement,
|
|
112
|
+
a.placement,
|
|
113
|
+
"bottom-start"
|
|
114
|
+
)
|
|
115
|
+
})), E = new String(""), u = W(V(V({}, m.getState()), S.getState()), {
|
|
116
|
+
value: O(
|
|
117
|
+
e.value,
|
|
118
|
+
a.value,
|
|
119
|
+
e.defaultValue,
|
|
120
|
+
E
|
|
121
|
+
),
|
|
122
|
+
setValueOnMove: O(
|
|
123
|
+
e.setValueOnMove,
|
|
124
|
+
a.setValueOnMove,
|
|
125
|
+
!1
|
|
126
|
+
),
|
|
127
|
+
labelElement: O(a.labelElement, null),
|
|
128
|
+
selectElement: O(a.selectElement, null),
|
|
129
|
+
listElement: O(a.listElement, null)
|
|
130
|
+
}), l = et(u, m, S, t);
|
|
131
|
+
return z(
|
|
132
|
+
l,
|
|
133
|
+
() => re(l, ["value", "items"], (n) => {
|
|
134
|
+
if (n.value !== E || !n.items.length) return;
|
|
135
|
+
const f = n.items.find(
|
|
136
|
+
(b) => !b.disabled && b.value != null
|
|
137
|
+
);
|
|
138
|
+
(f == null ? void 0 : f.value) != null && l.setState("value", f.value);
|
|
139
|
+
})
|
|
140
|
+
), z(
|
|
141
|
+
l,
|
|
142
|
+
() => re(l, ["mounted"], (n) => {
|
|
143
|
+
n.mounted || l.setState("activeId", u.activeId);
|
|
144
|
+
})
|
|
145
|
+
), z(
|
|
146
|
+
l,
|
|
147
|
+
() => re(l, ["mounted", "items", "value"], (n) => {
|
|
148
|
+
if (r || n.mounted) return;
|
|
149
|
+
const f = ye(n.value), b = f[f.length - 1];
|
|
150
|
+
if (b == null) return;
|
|
151
|
+
const w = n.items.find(
|
|
152
|
+
(g) => !g.disabled && g.value === b
|
|
153
|
+
);
|
|
154
|
+
w && l.setState("activeId", w.id);
|
|
155
|
+
})
|
|
156
|
+
), z(
|
|
157
|
+
l,
|
|
158
|
+
() => tt(l, ["setValueOnMove", "moves"], (n) => {
|
|
159
|
+
const { mounted: f, value: b, activeId: w } = l.getState();
|
|
160
|
+
if (!n.setValueOnMove && f || Array.isArray(b) || !n.moves || !w) return;
|
|
161
|
+
const g = m.item(w);
|
|
162
|
+
!g || g.disabled || g.value == null || l.setState("value", g.value);
|
|
163
|
+
})
|
|
164
|
+
), W(V(V(V({}, m), S), l), {
|
|
165
|
+
combobox: r,
|
|
166
|
+
setValue: (n) => l.setState("value", n),
|
|
167
|
+
setLabelElement: (n) => l.setState("labelElement", n),
|
|
168
|
+
setSelectElement: (n) => l.setState("selectElement", n),
|
|
169
|
+
setListElement: (n) => l.setState("listElement", n)
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
function vt(s) {
|
|
173
|
+
const o = Je();
|
|
174
|
+
return s = I(p({}, s), {
|
|
175
|
+
combobox: s.combobox !== void 0 ? s.combobox : o
|
|
176
|
+
}), Ge(s);
|
|
177
|
+
}
|
|
178
|
+
function pt(s, o, r) {
|
|
179
|
+
return _e(o, [r.combobox]), pe(s, r, "value", "setValue"), pe(s, r, "setValueOnMove"), Object.assign(
|
|
180
|
+
We(
|
|
181
|
+
Qe(s, o, r),
|
|
182
|
+
o,
|
|
183
|
+
r
|
|
184
|
+
),
|
|
185
|
+
{ combobox: r.combobox }
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
function ft(s = {}) {
|
|
189
|
+
s = vt(s);
|
|
190
|
+
const [o, r] = ot(mt, s);
|
|
191
|
+
return pt(o, r, s);
|
|
192
|
+
}
|
|
193
|
+
var St = "span", bt = R(
|
|
194
|
+
function(o) {
|
|
195
|
+
var r = o, { store: e } = r, t = T(r, ["store"]);
|
|
196
|
+
const a = Se();
|
|
197
|
+
return e = e || a, t = Pe(p({ store: e }, t)), t;
|
|
198
|
+
}
|
|
199
|
+
), ht = F(function(o) {
|
|
200
|
+
const r = bt(o);
|
|
201
|
+
return H(St, r);
|
|
202
|
+
}), gt = "button";
|
|
203
|
+
function wt(s) {
|
|
204
|
+
return Array.from(s.selectedOptions).map((o) => o.value);
|
|
205
|
+
}
|
|
206
|
+
function G(s, o) {
|
|
207
|
+
return () => {
|
|
208
|
+
const r = o();
|
|
209
|
+
if (!r) return;
|
|
210
|
+
let e = 0, t = s.item(r);
|
|
211
|
+
const a = t;
|
|
212
|
+
for (; t && t.value == null; ) {
|
|
213
|
+
const m = o(++e);
|
|
214
|
+
if (!m) return;
|
|
215
|
+
if (t = s.item(m), t === a) break;
|
|
216
|
+
}
|
|
217
|
+
return t == null ? void 0 : t.id;
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
var yt = R(function(o) {
|
|
221
|
+
var r = o, {
|
|
222
|
+
store: e,
|
|
223
|
+
name: t,
|
|
224
|
+
form: a,
|
|
225
|
+
required: m,
|
|
226
|
+
showOnKeyDown: S = !0,
|
|
227
|
+
moveOnKeyDown: E = !0,
|
|
228
|
+
toggleOnPress: u = !0,
|
|
229
|
+
toggleOnClick: l = u
|
|
230
|
+
} = r, n = T(r, [
|
|
231
|
+
"store",
|
|
232
|
+
"name",
|
|
233
|
+
"form",
|
|
234
|
+
"required",
|
|
235
|
+
"showOnKeyDown",
|
|
236
|
+
"moveOnKeyDown",
|
|
237
|
+
"toggleOnPress",
|
|
238
|
+
"toggleOnClick"
|
|
239
|
+
]);
|
|
240
|
+
const f = se();
|
|
241
|
+
e = e || f, X(
|
|
242
|
+
e,
|
|
243
|
+
process.env.NODE_ENV !== "production" && "Select must receive a `store` prop or be wrapped in a SelectProvider component."
|
|
244
|
+
);
|
|
245
|
+
const b = n.onKeyDown, w = k(S), g = k(E), y = e.useState("placement").split("-")[0], x = e.useState("value"), D = Array.isArray(x), L = le((c) => {
|
|
246
|
+
var d;
|
|
247
|
+
if (b == null || b(c), c.defaultPrevented || !e) return;
|
|
248
|
+
const { orientation: Z, items: ee, activeId: $ } = e.getState(), U = Z !== "horizontal", q = Z !== "vertical", v = !!((d = ee.find((ce) => !ce.disabled && ce.value != null)) != null && d.rowId), ie = {
|
|
249
|
+
ArrowUp: (v || U) && G(e, e.up),
|
|
250
|
+
ArrowRight: (v || q) && G(e, e.next),
|
|
251
|
+
ArrowDown: (v || U) && G(e, e.down),
|
|
252
|
+
ArrowLeft: (v || q) && G(e, e.previous)
|
|
253
|
+
}[c.key];
|
|
254
|
+
ie && g(c) && (c.preventDefault(), e.move(ie()));
|
|
255
|
+
const ue = y === "top" || y === "bottom";
|
|
256
|
+
({
|
|
257
|
+
ArrowDown: ue,
|
|
258
|
+
ArrowUp: ue,
|
|
259
|
+
ArrowLeft: y === "left",
|
|
260
|
+
ArrowRight: y === "right"
|
|
261
|
+
})[c.key] && w(c) && (c.preventDefault(), e.move($), Ve(c.currentTarget, "keyup", e.show));
|
|
262
|
+
});
|
|
263
|
+
n = J(
|
|
264
|
+
n,
|
|
265
|
+
(c) => /* @__PURE__ */ P(be, { value: e, children: c }),
|
|
266
|
+
[e]
|
|
267
|
+
);
|
|
268
|
+
const [j, M] = Q(!1), C = je(!1);
|
|
269
|
+
ne(() => {
|
|
270
|
+
const c = C.current;
|
|
271
|
+
C.current = !1, !c && M(!1);
|
|
272
|
+
}, [x]);
|
|
273
|
+
const N = e.useState((c) => {
|
|
274
|
+
var d;
|
|
275
|
+
return (d = c.labelElement) == null ? void 0 : d.id;
|
|
276
|
+
}), i = n["aria-label"], h = n["aria-labelledby"] || N, _ = e.useState((c) => {
|
|
277
|
+
if (t)
|
|
278
|
+
return c.items;
|
|
279
|
+
}), A = ae(() => [...new Set(_ == null ? void 0 : _.map((c) => c.value).filter((c) => c != null))], [_]);
|
|
280
|
+
n = J(
|
|
281
|
+
n,
|
|
282
|
+
(c) => t ? /* @__PURE__ */ oe(ve, { children: [
|
|
283
|
+
/* @__PURE__ */ oe(
|
|
284
|
+
"select",
|
|
285
|
+
{
|
|
286
|
+
style: {
|
|
287
|
+
border: 0,
|
|
288
|
+
clip: "rect(0 0 0 0)",
|
|
289
|
+
height: "1px",
|
|
290
|
+
margin: "-1px",
|
|
291
|
+
overflow: "hidden",
|
|
292
|
+
padding: 0,
|
|
293
|
+
position: "absolute",
|
|
294
|
+
whiteSpace: "nowrap",
|
|
295
|
+
width: "1px"
|
|
296
|
+
},
|
|
297
|
+
tabIndex: -1,
|
|
298
|
+
"aria-hidden": !0,
|
|
299
|
+
"aria-label": i,
|
|
300
|
+
"aria-labelledby": h,
|
|
301
|
+
name: t,
|
|
302
|
+
form: a,
|
|
303
|
+
required: m,
|
|
304
|
+
disabled: n.disabled,
|
|
305
|
+
value: x,
|
|
306
|
+
multiple: D,
|
|
307
|
+
onFocus: () => {
|
|
308
|
+
var d;
|
|
309
|
+
return (d = e == null ? void 0 : e.getState().selectElement) == null ? void 0 : d.focus();
|
|
310
|
+
},
|
|
311
|
+
onChange: (d) => {
|
|
312
|
+
C.current = !0, M(!0), e == null || e.setValue(
|
|
313
|
+
D ? wt(d.target) : d.target.value
|
|
314
|
+
);
|
|
315
|
+
},
|
|
316
|
+
children: [
|
|
317
|
+
ye(x).map((d) => d == null || A.includes(d) ? null : /* @__PURE__ */ P("option", { value: d, children: d }, d)),
|
|
318
|
+
A.map((d) => /* @__PURE__ */ P("option", { value: d, children: d }, d))
|
|
319
|
+
]
|
|
320
|
+
}
|
|
321
|
+
),
|
|
322
|
+
c
|
|
323
|
+
] }) : c,
|
|
324
|
+
[
|
|
325
|
+
e,
|
|
326
|
+
i,
|
|
327
|
+
h,
|
|
328
|
+
t,
|
|
329
|
+
a,
|
|
330
|
+
m,
|
|
331
|
+
x,
|
|
332
|
+
D,
|
|
333
|
+
A,
|
|
334
|
+
n.disabled
|
|
335
|
+
]
|
|
336
|
+
);
|
|
337
|
+
const B = /* @__PURE__ */ oe(ve, { children: [
|
|
338
|
+
x,
|
|
339
|
+
/* @__PURE__ */ P(ht, {})
|
|
340
|
+
] }), Y = e.useState("contentElement");
|
|
341
|
+
return n = I(p({
|
|
342
|
+
role: "combobox",
|
|
343
|
+
"aria-autocomplete": "none",
|
|
344
|
+
"aria-labelledby": N,
|
|
345
|
+
"aria-haspopup": ke(Y, "listbox"),
|
|
346
|
+
"data-autofill": j || void 0,
|
|
347
|
+
"data-name": t,
|
|
348
|
+
children: B
|
|
349
|
+
}, n), {
|
|
350
|
+
ref: he(e.setSelectElement, n.ref),
|
|
351
|
+
onKeyDown: L
|
|
352
|
+
}), n = Ue(p({ store: e, toggleOnClick: l }, n)), n = we(p({ store: e }, n)), n;
|
|
353
|
+
}), Jt = F(function(o) {
|
|
354
|
+
const r = yt(o);
|
|
355
|
+
return H(gt, r);
|
|
356
|
+
});
|
|
357
|
+
function Xt(s = {}) {
|
|
358
|
+
const o = ft(s);
|
|
359
|
+
return /* @__PURE__ */ P(xe, { value: o, children: s.children });
|
|
360
|
+
}
|
|
361
|
+
var Pt = "div";
|
|
362
|
+
function Et(s, o) {
|
|
363
|
+
if (o != null)
|
|
364
|
+
return s == null ? !1 : Array.isArray(s) ? s.includes(o) : s === o;
|
|
365
|
+
}
|
|
366
|
+
var xt = R(
|
|
367
|
+
function(o) {
|
|
368
|
+
var r = o, {
|
|
369
|
+
store: e,
|
|
370
|
+
value: t,
|
|
371
|
+
getItem: a,
|
|
372
|
+
hideOnClick: m,
|
|
373
|
+
setValueOnClick: S = t != null,
|
|
374
|
+
preventScrollOnKeyDown: E = !0,
|
|
375
|
+
focusOnHover: u = !0
|
|
376
|
+
} = r, l = T(r, [
|
|
377
|
+
"store",
|
|
378
|
+
"value",
|
|
379
|
+
"getItem",
|
|
380
|
+
"hideOnClick",
|
|
381
|
+
"setValueOnClick",
|
|
382
|
+
"preventScrollOnKeyDown",
|
|
383
|
+
"focusOnHover"
|
|
384
|
+
]), n;
|
|
385
|
+
const f = Oe();
|
|
386
|
+
e = e || f, X(
|
|
387
|
+
e,
|
|
388
|
+
process.env.NODE_ENV !== "production" && "SelectItem must be wrapped in a SelectList or SelectPopover component."
|
|
389
|
+
);
|
|
390
|
+
const b = ge(l.id), w = Le(l), { listElement: g, multiSelectable: K, selected: y, autoFocus: x } = rt(e, {
|
|
391
|
+
listElement: "listElement",
|
|
392
|
+
multiSelectable(i) {
|
|
393
|
+
return Array.isArray(i.value);
|
|
394
|
+
},
|
|
395
|
+
selected(i) {
|
|
396
|
+
return Et(i.value, t);
|
|
397
|
+
},
|
|
398
|
+
autoFocus(i) {
|
|
399
|
+
return t == null || i.value == null || i.activeId !== b && (e != null && e.item(i.activeId)) ? !1 : Array.isArray(i.value) ? i.value[i.value.length - 1] === t : i.value === t;
|
|
400
|
+
}
|
|
401
|
+
}), D = Be(
|
|
402
|
+
(i) => {
|
|
403
|
+
const h = I(p({}, i), {
|
|
404
|
+
value: w ? void 0 : t,
|
|
405
|
+
children: t
|
|
406
|
+
});
|
|
407
|
+
return a ? a(h) : h;
|
|
408
|
+
},
|
|
409
|
+
[w, t, a]
|
|
410
|
+
);
|
|
411
|
+
m = m ?? (t != null && !K);
|
|
412
|
+
const L = l.onClick, j = k(S), M = k(m), C = le((i) => {
|
|
413
|
+
L == null || L(i), !i.defaultPrevented && (Me(i) || Ne(i) || (j(i) && t != null && (e == null || e.setValue((h) => Array.isArray(h) ? h.includes(t) ? h.filter((_) => _ !== t) : [...h, t] : t)), M(i) && (e == null || e.hide())));
|
|
414
|
+
});
|
|
415
|
+
l = J(
|
|
416
|
+
l,
|
|
417
|
+
(i) => /* @__PURE__ */ P(Ce.Provider, { value: y ?? !1, children: i }),
|
|
418
|
+
[y]
|
|
419
|
+
), l = I(p({
|
|
420
|
+
id: b,
|
|
421
|
+
role: Re(g),
|
|
422
|
+
"aria-selected": y,
|
|
423
|
+
children: t
|
|
424
|
+
}, l), {
|
|
425
|
+
autoFocus: (n = l.autoFocus) != null ? n : x,
|
|
426
|
+
onClick: C
|
|
427
|
+
}), l = st(p({
|
|
428
|
+
store: e,
|
|
429
|
+
getItem: D,
|
|
430
|
+
preventScrollOnKeyDown: E
|
|
431
|
+
}, l));
|
|
432
|
+
const N = k(u);
|
|
433
|
+
return l = nt(I(p({
|
|
434
|
+
store: e
|
|
435
|
+
}, l), {
|
|
436
|
+
// We have to disable focusOnHover when the popup is closed, otherwise
|
|
437
|
+
// the active item will change to null (the container) when the popup is
|
|
438
|
+
// closed by clicking on an item.
|
|
439
|
+
focusOnHover(i) {
|
|
440
|
+
if (!N(i)) return !1;
|
|
441
|
+
const h = e == null ? void 0 : e.getState();
|
|
442
|
+
return !!(h != null && h.open);
|
|
443
|
+
}
|
|
444
|
+
})), l;
|
|
445
|
+
}
|
|
446
|
+
), Yt = Ke(
|
|
447
|
+
F(function(o) {
|
|
448
|
+
const r = xt(o);
|
|
449
|
+
return H(Pt, r);
|
|
450
|
+
})
|
|
451
|
+
), Ot = "div", fe = $e(null), Ee = R(
|
|
452
|
+
function(o) {
|
|
453
|
+
var r = o, {
|
|
454
|
+
store: e,
|
|
455
|
+
resetOnEscape: t = !0,
|
|
456
|
+
hideOnEnter: a = !0,
|
|
457
|
+
focusOnMove: m = !0,
|
|
458
|
+
composite: S,
|
|
459
|
+
alwaysVisible: E
|
|
460
|
+
} = r, u = T(r, [
|
|
461
|
+
"store",
|
|
462
|
+
"resetOnEscape",
|
|
463
|
+
"hideOnEnter",
|
|
464
|
+
"focusOnMove",
|
|
465
|
+
"composite",
|
|
466
|
+
"alwaysVisible"
|
|
467
|
+
]);
|
|
468
|
+
const l = Se();
|
|
469
|
+
e = e || l, X(
|
|
470
|
+
e,
|
|
471
|
+
process.env.NODE_ENV !== "production" && "SelectList must receive a `store` prop or be wrapped in a SelectProvider component."
|
|
472
|
+
);
|
|
473
|
+
const n = ge(u.id), f = e.useState("value"), b = Array.isArray(f), [w, g] = Q(f), K = e.useState("mounted");
|
|
474
|
+
ne(() => {
|
|
475
|
+
K || g(f);
|
|
476
|
+
}, [K, f]), t = t && !b;
|
|
477
|
+
const y = u.onKeyDown, x = k(t), D = k(a), L = le((v) => {
|
|
478
|
+
y == null || y(v), !v.defaultPrevented && (v.key === "Escape" && x(v) && (e == null || e.setValue(w)), (v.key === " " || v.key === "Enter") && Te(v) && D(v) && (v.preventDefault(), e == null || e.hide()));
|
|
479
|
+
}), j = me(de), M = Q(), [C, N] = j || M, i = ae(
|
|
480
|
+
() => [C, N],
|
|
481
|
+
[C]
|
|
482
|
+
), [h, _] = Q(null), A = me(fe);
|
|
483
|
+
ne(() => {
|
|
484
|
+
if (A)
|
|
485
|
+
return A(e), () => A(null);
|
|
486
|
+
}, [A, e]), u = J(
|
|
487
|
+
u,
|
|
488
|
+
(v) => /* @__PURE__ */ P(be, { value: e, children: /* @__PURE__ */ P(fe.Provider, { value: _, children: /* @__PURE__ */ P(de.Provider, { value: i, children: v }) }) }),
|
|
489
|
+
[e, i]
|
|
490
|
+
);
|
|
491
|
+
const B = !!e.combobox;
|
|
492
|
+
S = S ?? (!B && h !== e);
|
|
493
|
+
const [Y, c] = Fe(
|
|
494
|
+
S ? e.setListElement : null
|
|
495
|
+
), d = He(Y, "role", u.role), ee = (S || (d === "listbox" || d === "menu" || d === "tree" || d === "grid")) && b || void 0, $ = lt(K, u.hidden, E), U = $ ? I(p({}, u.style), { display: "none" }) : u.style;
|
|
496
|
+
S && (u = p({
|
|
497
|
+
role: "listbox",
|
|
498
|
+
"aria-multiselectable": ee
|
|
499
|
+
}, u));
|
|
500
|
+
const q = e.useState(
|
|
501
|
+
(v) => {
|
|
502
|
+
var te;
|
|
503
|
+
return C || ((te = v.labelElement) == null ? void 0 : te.id);
|
|
504
|
+
}
|
|
505
|
+
);
|
|
506
|
+
return u = I(p({
|
|
507
|
+
id: n,
|
|
508
|
+
"aria-labelledby": q,
|
|
509
|
+
hidden: $
|
|
510
|
+
}, u), {
|
|
511
|
+
ref: he(c, u.ref),
|
|
512
|
+
style: U,
|
|
513
|
+
onKeyDown: L
|
|
514
|
+
}), u = at(I(p({ store: e }, u), { composite: S })), u = we(p({ store: e, typeahead: !B }, u)), u;
|
|
515
|
+
}
|
|
516
|
+
), Zt = F(function(o) {
|
|
517
|
+
const r = Ee(o);
|
|
518
|
+
return H(Ot, r);
|
|
519
|
+
}), Ct = "div", It = R(
|
|
520
|
+
function(o) {
|
|
521
|
+
var r = o, { store: e, alwaysVisible: t } = r, a = T(r, ["store", "alwaysVisible"]);
|
|
522
|
+
const m = se();
|
|
523
|
+
return e = e || m, a = Ee(p({ store: e, alwaysVisible: t }, a)), a = ut(p({ store: e, alwaysVisible: t }, a)), a;
|
|
524
|
+
}
|
|
525
|
+
), eo = it(
|
|
526
|
+
F(function(o) {
|
|
527
|
+
const r = It(o);
|
|
528
|
+
return H(Ct, r);
|
|
529
|
+
}),
|
|
530
|
+
se
|
|
531
|
+
);
|
|
532
|
+
export {
|
|
533
|
+
Qt as P,
|
|
534
|
+
Xt as S,
|
|
535
|
+
Jt as a,
|
|
536
|
+
eo as b,
|
|
537
|
+
Zt as c,
|
|
538
|
+
Yt as d,
|
|
539
|
+
ht as e,
|
|
540
|
+
ft as f,
|
|
541
|
+
Pe as u
|
|
542
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { u as l } from "./DG5U6ZEL-GfwW2sqh.js";
|
|
2
|
+
import { a } from "./YV4JVR4I-w1-dnslS.js";
|
|
3
|
+
function i({
|
|
4
|
+
store: e,
|
|
5
|
+
fallback: r,
|
|
6
|
+
children: u
|
|
7
|
+
} = {}) {
|
|
8
|
+
const o = l();
|
|
9
|
+
e = e || o;
|
|
10
|
+
const n = a(e, (t) => t != null && t.value.length ? t.value : r);
|
|
11
|
+
return u ? u(n || "") : n;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
i as S
|
|
15
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { a as w } from "./UYGDZTLQ-9uAEICxv.js";
|
|
2
|
+
import { C as v, u as E } from "./6VRAQV3D-DK_p41oq.js";
|
|
3
|
+
import { a as F } from "./YV4JVR4I-w1-dnslS.js";
|
|
4
|
+
import { s as V, f as W, c as D, a as N, _ as j, i as A, q, t as H, m as r, o as a, e as L } from "./LMDWO4NN-CIZvvtic.js";
|
|
5
|
+
import { useCallback as O } from "react";
|
|
6
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
7
|
+
var y = "button", z = D(function(c) {
|
|
8
|
+
var n = c, {
|
|
9
|
+
store: e,
|
|
10
|
+
getItem: m
|
|
11
|
+
} = n, t = j(n, [
|
|
12
|
+
"store",
|
|
13
|
+
"getItem"
|
|
14
|
+
]), u;
|
|
15
|
+
const x = w();
|
|
16
|
+
e = e || x, A(
|
|
17
|
+
e,
|
|
18
|
+
process.env.NODE_ENV !== "production" && "Tab must be wrapped in a TabList component."
|
|
19
|
+
);
|
|
20
|
+
const l = q(), s = t.id || l, p = H(t), g = O(
|
|
21
|
+
(o) => {
|
|
22
|
+
const i = r(a({}, o), { dimmed: p });
|
|
23
|
+
return m ? m(i) : i;
|
|
24
|
+
},
|
|
25
|
+
[p, m]
|
|
26
|
+
), b = t.onClick, h = L((o) => {
|
|
27
|
+
b == null || b(o), !o.defaultPrevented && (e == null || e.setSelectedId(s));
|
|
28
|
+
}), T = e.panels.useState(
|
|
29
|
+
(o) => {
|
|
30
|
+
var i;
|
|
31
|
+
return (i = o.items.find((k) => k.tabId === s)) == null ? void 0 : i.id;
|
|
32
|
+
}
|
|
33
|
+
), I = l ? t.shouldRegisterItem : !1, S = e.useState((o) => !!s && o.activeId === s), d = e.useState((o) => !!s && o.selectedId === s), P = e.useState((o) => !!e.item(o.activeId)), R = S || d && !P, f = d || ((u = t.accessibleWhenDisabled) != null ? u : !0);
|
|
34
|
+
if (F(
|
|
35
|
+
e.combobox || e.composite,
|
|
36
|
+
"virtualFocus"
|
|
37
|
+
) && (t = r(a({}, t), {
|
|
38
|
+
tabIndex: -1
|
|
39
|
+
})), t = r(a({
|
|
40
|
+
id: s,
|
|
41
|
+
role: "tab",
|
|
42
|
+
"aria-selected": d,
|
|
43
|
+
"aria-controls": T || void 0
|
|
44
|
+
}, t), {
|
|
45
|
+
onClick: h
|
|
46
|
+
}), e.composite) {
|
|
47
|
+
const o = {
|
|
48
|
+
id: s,
|
|
49
|
+
accessibleWhenDisabled: f,
|
|
50
|
+
store: e.composite,
|
|
51
|
+
shouldRegisterItem: R && I,
|
|
52
|
+
rowId: t.rowId,
|
|
53
|
+
render: t.render
|
|
54
|
+
};
|
|
55
|
+
t = r(a({}, t), {
|
|
56
|
+
render: /* @__PURE__ */ C(
|
|
57
|
+
v,
|
|
58
|
+
r(a({}, o), {
|
|
59
|
+
render: e.combobox && e.composite !== e.combobox ? /* @__PURE__ */ C(v, r(a({}, o), { store: e.combobox })) : o.render
|
|
60
|
+
})
|
|
61
|
+
)
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
return t = E(r(a({
|
|
65
|
+
store: e
|
|
66
|
+
}, t), {
|
|
67
|
+
accessibleWhenDisabled: f,
|
|
68
|
+
getItem: g,
|
|
69
|
+
shouldRegisterItem: I
|
|
70
|
+
})), t;
|
|
71
|
+
}), X = V(
|
|
72
|
+
W(function(c) {
|
|
73
|
+
const n = z(c);
|
|
74
|
+
return N(y, n);
|
|
75
|
+
})
|
|
76
|
+
);
|
|
77
|
+
export {
|
|
78
|
+
X as T
|
|
79
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { u as c, T as u } from "./UYGDZTLQ-9uAEICxv.js";
|
|
2
|
+
import { u as m } from "./5JTVDSTH-DcfjjEya.js";
|
|
3
|
+
import { f as b, c as v, a as f, _ as d, i as l, l as T, o as s } from "./LMDWO4NN-CIZvvtic.js";
|
|
4
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
5
|
+
var x = "div", L = v(
|
|
6
|
+
function(a) {
|
|
7
|
+
var t = a, { store: e } = t, o = d(t, ["store"]);
|
|
8
|
+
const n = c();
|
|
9
|
+
e = e || n, l(
|
|
10
|
+
e,
|
|
11
|
+
process.env.NODE_ENV !== "production" && "TabList must receive a `store` prop or be wrapped in a TabProvider component."
|
|
12
|
+
);
|
|
13
|
+
const p = e.useState(
|
|
14
|
+
(r) => r.orientation === "both" ? void 0 : r.orientation
|
|
15
|
+
);
|
|
16
|
+
return o = T(
|
|
17
|
+
o,
|
|
18
|
+
(r) => /* @__PURE__ */ _(u, { value: e, children: r }),
|
|
19
|
+
[e]
|
|
20
|
+
), e.composite && (o = s({
|
|
21
|
+
focusable: !1
|
|
22
|
+
}, o)), o = s({
|
|
23
|
+
role: "tablist",
|
|
24
|
+
"aria-orientation": p
|
|
25
|
+
}, o), o = m(s({ store: e }, o)), o;
|
|
26
|
+
}
|
|
27
|
+
), N = b(function(a) {
|
|
28
|
+
const t = L(a);
|
|
29
|
+
return f(x, t);
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
N as T
|
|
33
|
+
};
|