@wrdagency/blockout 1.0.4 → 1.0.6
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 +134 -0
- package/dist/components/controls/tag-control/props.d.ts +11 -0
- package/dist/components/controls/tag-control/props.js +29 -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/nav-link/index.d.ts +2 -2
- 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/dist/utils/url.js +6 -6
- 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
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { BaseControl as n } from "./components/controls/base-control/index.js";
|
|
|
6
6
|
import { CardNumberControl as C } from "./components/controls/card-number-control/index.js";
|
|
7
7
|
import { CheckboxControl as u } from "./components/controls/checkbox-control/index.js";
|
|
8
8
|
import { ChoiceControl as g } from "./components/controls/choice-control/index.js";
|
|
9
|
-
import { DateControl as
|
|
9
|
+
import { DateControl as b } from "./components/controls/date-control/index.js";
|
|
10
10
|
import { ListControl as S } from "./components/controls/list-control/index.js";
|
|
11
11
|
import { MarkdownControl as h } from "./components/controls/markdown-control/index.js";
|
|
12
12
|
import { NumberControl as y } from "./components/controls/number-control/index.js";
|
|
@@ -15,44 +15,45 @@ import { RecurrenceControl as D } from "./components/controls/recurrence-control
|
|
|
15
15
|
import { SelectControl as P } from "./components/controls/select-control/control.js";
|
|
16
16
|
import { o as v } from "./options-Cfoqhxw2.js";
|
|
17
17
|
import { Select as N } from "./components/controls/select-control/select.js";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
18
|
+
import { TagControl as A } from "./components/controls/tag-control/index.js";
|
|
19
|
+
import { TextControl as O } from "./components/controls/text-control/index.js";
|
|
20
|
+
import { TextareaControl as z } from "./components/controls/textarea-control/index.js";
|
|
21
|
+
import { ToggleControl as W } from "./components/controls/toggle-control/index.js";
|
|
22
|
+
import { ToggleGroupControl as E } from "./components/controls/toggle-group-control/index.js";
|
|
23
|
+
import { DataForm as K } from "./components/data-form/index.js";
|
|
24
|
+
import { useSchema as U, useView as X } from "./components/data-view/api.js";
|
|
25
|
+
import { f as Z } from "./filter-GoxwLwkT.js";
|
|
26
|
+
import { Root as $ } from "./components/data-view/root.js";
|
|
27
|
+
import { Filesystem as ro } from "./components/filesystem/index.js";
|
|
28
|
+
import { Form as to } from "./components/form/components/index.js";
|
|
29
|
+
import { createForm as po } from "./components/form/types/form.js";
|
|
30
|
+
import { Menu as fo } from "./components/menu/index.js";
|
|
31
|
+
import { Progress as lo } from "./components/progress/index.js";
|
|
32
|
+
import { Shell as so } from "./components/shell/index.js";
|
|
33
|
+
import { Tabs as io } from "./components/tabs/index.js";
|
|
34
|
+
import { Tag as co } from "./components/tag/index.js";
|
|
35
|
+
import { Toolbar as To } from "./components/toolbar/index.js";
|
|
36
|
+
import { Window as So } from "./components/window/index.js";
|
|
37
|
+
import { useSplitInput as ho } from "./hooks/input.js";
|
|
38
|
+
import { useModifiers as yo } from "./hooks/keyboard.js";
|
|
39
|
+
import { useSelection as ko } from "./hooks/selection.js";
|
|
40
|
+
import { useObjectState as Do } from "./hooks/state.js";
|
|
41
|
+
import { useTemporaryChange as Po } from "./hooks/temporary.js";
|
|
42
|
+
import { Colourway as vo } from "./primitives/colourway/index.js";
|
|
43
|
+
import { Draggable as No } from "./primitives/draggable/index.js";
|
|
44
|
+
import { IconLabel as Ao } from "./primitives/icon-label/index.js";
|
|
45
|
+
import { Link as Oo } from "./primitives/link/index.js";
|
|
46
|
+
import { NavLink as zo } from "./primitives/nav-link/index.js";
|
|
47
|
+
import { Popover as Wo } from "./primitives/popover/index.js";
|
|
48
|
+
import { Resizable as Eo } from "./primitives/resizable/index.js";
|
|
49
|
+
import { ScrollArea as Ko } from "./primitives/scroll-area/index.js";
|
|
50
|
+
import { Symbol as Uo } from "./primitives/symbol/index.js";
|
|
51
|
+
import { Tooltip as Yo } from "./primitives/tooltip/index.js";
|
|
52
|
+
import { Truncate as _o } from "./primitives/truncate/index.js";
|
|
53
|
+
import { H1 as or, H2 as rr, H3 as er, H4 as tr, H5 as mr, H6 as pr, Heading as xr } from "./primitives/typography/heading.js";
|
|
54
|
+
import { Paragraph as ar } from "./primitives/typography/paragraph.js";
|
|
55
|
+
import { VisuallyHidden as nr } from "./primitives/visually-hidden/index.js";
|
|
56
|
+
import { getRandomTheme as Cr } from "./primitives/colourway/util.js";
|
|
56
57
|
import './assets/index.css';export {
|
|
57
58
|
e as Avatar,
|
|
58
59
|
m as Badge,
|
|
@@ -62,58 +63,59 @@ import './assets/index.css';export {
|
|
|
62
63
|
C as CardNumberControl,
|
|
63
64
|
u as CheckboxControl,
|
|
64
65
|
g as ChoiceControl,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
66
|
+
vo as Colourway,
|
|
67
|
+
K as DataForm,
|
|
68
|
+
$ as DataView,
|
|
69
|
+
b as DateControl,
|
|
70
|
+
No as Draggable,
|
|
71
|
+
ro as Filesystem,
|
|
72
|
+
Z as Filters,
|
|
73
|
+
to as Form,
|
|
74
|
+
or as H1,
|
|
75
|
+
rr as H2,
|
|
76
|
+
er as H3,
|
|
77
|
+
tr as H4,
|
|
78
|
+
mr as H5,
|
|
79
|
+
pr as H6,
|
|
80
|
+
xr as Heading,
|
|
81
|
+
Ao as IconLabel,
|
|
82
|
+
Oo as Link,
|
|
82
83
|
S as ListControl,
|
|
83
84
|
h as MarkdownControl,
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
fo as Menu,
|
|
86
|
+
zo as NavLink,
|
|
86
87
|
y as NumberControl,
|
|
87
88
|
v as Options,
|
|
88
|
-
|
|
89
|
+
ar as Paragraph,
|
|
89
90
|
k as PasswordControl,
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
Wo as Popover,
|
|
92
|
+
lo as Progress,
|
|
92
93
|
D as RecurrenceControl,
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
Eo as Resizable,
|
|
95
|
+
Ko as ScrollArea,
|
|
95
96
|
N as Select,
|
|
96
97
|
P as SelectControl,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
A as
|
|
102
|
-
O as
|
|
103
|
-
z as
|
|
104
|
-
W as
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
Yo as
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
98
|
+
so as Shell,
|
|
99
|
+
Uo as Symbol,
|
|
100
|
+
io as Tabs,
|
|
101
|
+
co as Tag,
|
|
102
|
+
A as TagControl,
|
|
103
|
+
O as TextControl,
|
|
104
|
+
z as TextareaControl,
|
|
105
|
+
W as ToggleControl,
|
|
106
|
+
E as ToggleGroupControl,
|
|
107
|
+
To as Toolbar,
|
|
108
|
+
Yo as Tooltip,
|
|
109
|
+
_o as Truncate,
|
|
110
|
+
nr as VisuallyHidden,
|
|
111
|
+
So as Window,
|
|
112
|
+
po as createForm,
|
|
113
|
+
Cr as getRandomTheme,
|
|
114
|
+
yo as useModifiers,
|
|
115
|
+
Do as useObjectState,
|
|
116
|
+
U as useSchema,
|
|
117
|
+
ko as useSelection,
|
|
118
|
+
ho as useSplitInput,
|
|
119
|
+
Po as useTemporaryChange,
|
|
120
|
+
X as useView
|
|
119
121
|
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { ActionMenuItem as s } from "./components/menu/items/action.js";
|
|
3
|
+
import { SeparatorMenuItem as a } from "./components/menu/items/spacer.js";
|
|
4
|
+
import { e as i } from "./CaretRight.es-vnr78BGI.js";
|
|
5
|
+
import { EmptyIcon as u } from "./components/menu/icon.js";
|
|
6
|
+
import { ToggleMenuItem as _ } from "./components/menu/items/toggle.js";
|
|
7
|
+
import { u as p, M as l, a as d, b as M } from "./menu-button-D0chRxS0.js";
|
|
8
|
+
import { M as h } from "./2NBKRL7C-CzwWfv1x.js";
|
|
9
|
+
const b = ({ item: n }) => {
|
|
10
|
+
const o = n.icon || u, t = p();
|
|
11
|
+
return /* @__PURE__ */ m(l, { store: t, children: [
|
|
12
|
+
/* @__PURE__ */ m(
|
|
13
|
+
d,
|
|
14
|
+
{
|
|
15
|
+
className: "component-menu__item component-menu__item--submenu",
|
|
16
|
+
render: /* @__PURE__ */ e(h, {}),
|
|
17
|
+
disabled: n.disabled,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ e(o, { className: "component-menu__item__icon component-menu__item__icon--pictoral" }),
|
|
20
|
+
/* @__PURE__ */ m("div", { className: "component-menu__item__text", children: [
|
|
21
|
+
/* @__PURE__ */ m("div", { className: "component-menu__item__text__header", children: [
|
|
22
|
+
/* @__PURE__ */ e("div", { className: "component-menu__item__label", children: n.label }),
|
|
23
|
+
/* @__PURE__ */ e(i, { className: "component-menu__item__icon component-menu__item__icon--submenu-indicator" })
|
|
24
|
+
] }),
|
|
25
|
+
/* @__PURE__ */ e("p", { className: "component-menu__item__description", children: n.description })
|
|
26
|
+
] })
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
/* @__PURE__ */ e(
|
|
31
|
+
M,
|
|
32
|
+
{
|
|
33
|
+
gutter: 12,
|
|
34
|
+
shift: 0,
|
|
35
|
+
wrapperProps: {
|
|
36
|
+
className: "component-menu__menu-wrapper"
|
|
37
|
+
},
|
|
38
|
+
className: "component-menu",
|
|
39
|
+
children: n.children.map((r, c) => /* @__PURE__ */ e(f, { item: r }, c))
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
] });
|
|
43
|
+
}, f = ({ item: n }) => {
|
|
44
|
+
switch (n.type) {
|
|
45
|
+
case "action":
|
|
46
|
+
return /* @__PURE__ */ e(s, { item: n });
|
|
47
|
+
case "toggle":
|
|
48
|
+
return /* @__PURE__ */ e(_, { item: n });
|
|
49
|
+
case "submenu":
|
|
50
|
+
return /* @__PURE__ */ e(b, { item: n });
|
|
51
|
+
case "separator":
|
|
52
|
+
return /* @__PURE__ */ e(a, {});
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
f as M,
|
|
57
|
+
b as S
|
|
58
|
+
};
|
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
import { b as fe, c as me, d as q, M as pe, e as re } from "./VIIRIBF3-uvnIyICw.js";
|
|
2
|
+
import { u as se } from "./T7VMP3TM-C0xl-w4G.js";
|
|
3
|
+
import { i as be } from "./KFH4SEIX-BFT9WmYk.js";
|
|
4
|
+
import { u as ve } from "./5JTVDSTH-DcfjjEya.js";
|
|
5
|
+
import { m as he, o as Me, p as Se, t as we, c as ye, s as te, e as ne, b as ge, d as Ee, a as H } from "./YV4JVR4I-w1-dnslS.js";
|
|
6
|
+
import { S as Oe, T as B, V as I, U as x, a5 as Pe, m as F, o as b, W as Ae, c as Q, _ as N, i as G, q as ae, e as $, l as ue, n as J, f as X, a as Y, a6 as xe, a4 as Fe, t as _e, Q as Ce, a0 as He } from "./LMDWO4NN-CIZvvtic.js";
|
|
7
|
+
import { useState as ie, useEffect as le, useRef as ce, createRef as De, useMemo as ke } from "react";
|
|
8
|
+
import { jsx as j } from "react/jsx-runtime";
|
|
9
|
+
import { c as Ve, u as Ie, a as Le, b as Re } from "./MR26YJYP-DacZIkgJ.js";
|
|
10
|
+
import { c as Te, R as Be } from "./G7GW6PWC-A0eDeXMt.js";
|
|
11
|
+
import { a as z } from "./PFRGBC2K-B9ko--FF.js";
|
|
12
|
+
import { c as Ne, b as Ke } from "./4CMBR7SL-ChJnawVl.js";
|
|
13
|
+
import { a as Ue } from "./S43UC3DV-CiBKpqp8.js";
|
|
14
|
+
import { u as We } from "./WMYDSCNQ-D4CU76mX.js";
|
|
15
|
+
function $e(r = {}) {
|
|
16
|
+
var n = r, {
|
|
17
|
+
combobox: t,
|
|
18
|
+
parent: e,
|
|
19
|
+
menubar: v
|
|
20
|
+
} = n, i = Oe(n, [
|
|
21
|
+
"combobox",
|
|
22
|
+
"parent",
|
|
23
|
+
"menubar"
|
|
24
|
+
]);
|
|
25
|
+
const s = !!v && !e, o = he(
|
|
26
|
+
i.store,
|
|
27
|
+
Se(e, ["values"]),
|
|
28
|
+
Me(t, [
|
|
29
|
+
"arrowElement",
|
|
30
|
+
"anchorElement",
|
|
31
|
+
"contentElement",
|
|
32
|
+
"popoverElement",
|
|
33
|
+
"disclosureElement"
|
|
34
|
+
])
|
|
35
|
+
);
|
|
36
|
+
we(i, o);
|
|
37
|
+
const p = o.getState(), d = Ne(B(x({}, i), {
|
|
38
|
+
store: o,
|
|
39
|
+
orientation: I(
|
|
40
|
+
i.orientation,
|
|
41
|
+
p.orientation,
|
|
42
|
+
"vertical"
|
|
43
|
+
)
|
|
44
|
+
})), a = Ve(B(x({}, i), {
|
|
45
|
+
store: o,
|
|
46
|
+
placement: I(
|
|
47
|
+
i.placement,
|
|
48
|
+
p.placement,
|
|
49
|
+
"bottom-start"
|
|
50
|
+
),
|
|
51
|
+
timeout: I(
|
|
52
|
+
i.timeout,
|
|
53
|
+
p.timeout,
|
|
54
|
+
s ? 0 : 150
|
|
55
|
+
),
|
|
56
|
+
hideTimeout: I(i.hideTimeout, p.hideTimeout, 0)
|
|
57
|
+
})), h = B(x(x({}, d.getState()), a.getState()), {
|
|
58
|
+
initialFocus: I(p.initialFocus, "container"),
|
|
59
|
+
values: I(
|
|
60
|
+
i.values,
|
|
61
|
+
p.values,
|
|
62
|
+
i.defaultValues,
|
|
63
|
+
{}
|
|
64
|
+
)
|
|
65
|
+
}), f = ye(h, d, a, o);
|
|
66
|
+
return te(
|
|
67
|
+
f,
|
|
68
|
+
() => ne(f, ["mounted"], (u) => {
|
|
69
|
+
u.mounted || f.setState("activeId", null);
|
|
70
|
+
})
|
|
71
|
+
), te(
|
|
72
|
+
f,
|
|
73
|
+
() => ne(e, ["orientation"], (u) => {
|
|
74
|
+
f.setState(
|
|
75
|
+
"placement",
|
|
76
|
+
u.orientation === "vertical" ? "right-start" : "bottom-start"
|
|
77
|
+
);
|
|
78
|
+
})
|
|
79
|
+
), B(x(x(x({}, d), a), f), {
|
|
80
|
+
combobox: t,
|
|
81
|
+
parent: e,
|
|
82
|
+
menubar: v,
|
|
83
|
+
hideAll: () => {
|
|
84
|
+
a.hide(), e == null || e.hideAll();
|
|
85
|
+
},
|
|
86
|
+
setInitialFocus: (u) => f.setState("initialFocus", u),
|
|
87
|
+
setValues: (u) => f.setState("values", u),
|
|
88
|
+
setValue: (u, O) => {
|
|
89
|
+
u !== "__proto__" && u !== "constructor" && (Array.isArray(u) || f.setState("values", (m) => {
|
|
90
|
+
const S = m[u], g = Pe(O, S);
|
|
91
|
+
return g === S ? m : B(x({}, m), {
|
|
92
|
+
[u]: g !== void 0 && g
|
|
93
|
+
});
|
|
94
|
+
}));
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
function je(r, n, t) {
|
|
99
|
+
return Ae(n, [t.combobox, t.parent, t.menubar]), Ee(r, t, "values", "setValues"), Object.assign(
|
|
100
|
+
Ie(
|
|
101
|
+
Ke(r, n, t),
|
|
102
|
+
n,
|
|
103
|
+
t
|
|
104
|
+
),
|
|
105
|
+
{
|
|
106
|
+
combobox: t.combobox,
|
|
107
|
+
parent: t.parent,
|
|
108
|
+
menubar: t.menubar
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
function qe(r = {}) {
|
|
113
|
+
const n = fe(), t = me(), e = Ue();
|
|
114
|
+
r = F(b({}, r), {
|
|
115
|
+
parent: r.parent !== void 0 ? r.parent : n,
|
|
116
|
+
menubar: r.menubar !== void 0 ? r.menubar : t,
|
|
117
|
+
combobox: r.combobox !== void 0 ? r.combobox : e
|
|
118
|
+
});
|
|
119
|
+
const [v, i] = ge($e, r);
|
|
120
|
+
return je(v, i, r);
|
|
121
|
+
}
|
|
122
|
+
var ze = "div";
|
|
123
|
+
function Qe(r) {
|
|
124
|
+
var n = r, { store: t } = n, e = N(n, ["store"]);
|
|
125
|
+
const [v, i] = ie(void 0), s = e["aria-label"], o = H(t, "disclosureElement"), p = H(t, "contentElement");
|
|
126
|
+
return le(() => {
|
|
127
|
+
const d = o;
|
|
128
|
+
if (!d) return;
|
|
129
|
+
const a = p;
|
|
130
|
+
if (!a) return;
|
|
131
|
+
s || a.hasAttribute("aria-label") ? i(void 0) : d.id && i(d.id);
|
|
132
|
+
}, [s, o, p]), v;
|
|
133
|
+
}
|
|
134
|
+
var de = Q(
|
|
135
|
+
function(n) {
|
|
136
|
+
var t = n, { store: e, alwaysVisible: v, composite: i } = t, s = N(t, ["store", "alwaysVisible", "composite"]);
|
|
137
|
+
const o = q();
|
|
138
|
+
e = e || o, G(
|
|
139
|
+
e,
|
|
140
|
+
process.env.NODE_ENV !== "production" && "MenuList must receive a `store` prop or be wrapped in a MenuProvider component."
|
|
141
|
+
);
|
|
142
|
+
const p = e.parent, d = e.menubar, a = !!p, h = ae(s.id), f = s.onKeyDown, u = e.useState(
|
|
143
|
+
(c) => c.placement.split("-")[0]
|
|
144
|
+
), O = e.useState(
|
|
145
|
+
(c) => c.orientation === "both" ? void 0 : c.orientation
|
|
146
|
+
), m = O !== "vertical", S = H(
|
|
147
|
+
d,
|
|
148
|
+
(c) => !!c && c.orientation !== "vertical"
|
|
149
|
+
), g = $((c) => {
|
|
150
|
+
if (f == null || f(c), !c.defaultPrevented) {
|
|
151
|
+
if (a || d && !m) {
|
|
152
|
+
const w = {
|
|
153
|
+
ArrowRight: () => u === "left" && !m,
|
|
154
|
+
ArrowLeft: () => u === "right" && !m,
|
|
155
|
+
ArrowUp: () => u === "bottom" && m,
|
|
156
|
+
ArrowDown: () => u === "top" && m
|
|
157
|
+
}[c.key];
|
|
158
|
+
if (w != null && w())
|
|
159
|
+
return c.stopPropagation(), c.preventDefault(), e == null ? void 0 : e.hide();
|
|
160
|
+
}
|
|
161
|
+
if (d) {
|
|
162
|
+
const w = {
|
|
163
|
+
ArrowRight: () => {
|
|
164
|
+
if (S)
|
|
165
|
+
return d.next();
|
|
166
|
+
},
|
|
167
|
+
ArrowLeft: () => {
|
|
168
|
+
if (S)
|
|
169
|
+
return d.previous();
|
|
170
|
+
},
|
|
171
|
+
ArrowDown: () => {
|
|
172
|
+
if (!S)
|
|
173
|
+
return d.next();
|
|
174
|
+
},
|
|
175
|
+
ArrowUp: () => {
|
|
176
|
+
if (!S)
|
|
177
|
+
return d.previous();
|
|
178
|
+
}
|
|
179
|
+
}[c.key], A = w == null ? void 0 : w();
|
|
180
|
+
A !== void 0 && (c.stopPropagation(), c.preventDefault(), d.move(A));
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
s = ue(
|
|
185
|
+
s,
|
|
186
|
+
(c) => /* @__PURE__ */ j(pe, { value: e, children: c }),
|
|
187
|
+
[e]
|
|
188
|
+
);
|
|
189
|
+
const L = Qe(b({ store: e }, s)), R = e.useState("mounted"), _ = be(R, s.hidden, v), D = _ ? F(b({}, s.style), { display: "none" }) : s.style;
|
|
190
|
+
s = F(b({
|
|
191
|
+
id: h,
|
|
192
|
+
"aria-labelledby": L,
|
|
193
|
+
hidden: _
|
|
194
|
+
}, s), {
|
|
195
|
+
ref: J(h ? e.setContentElement : null, s.ref),
|
|
196
|
+
style: D,
|
|
197
|
+
onKeyDown: g
|
|
198
|
+
});
|
|
199
|
+
const P = !!e.combobox;
|
|
200
|
+
return i = i ?? !P, i && (s = b({
|
|
201
|
+
role: "menu",
|
|
202
|
+
"aria-orientation": O
|
|
203
|
+
}, s)), s = ve(b({ store: e, composite: i }, s)), s = se(b({ store: e, typeahead: !P }, s)), s;
|
|
204
|
+
}
|
|
205
|
+
), pt = X(function(n) {
|
|
206
|
+
const t = de(n);
|
|
207
|
+
return Y(ze, t);
|
|
208
|
+
}), Ge = "div", Je = Q(function(n) {
|
|
209
|
+
var t = n, {
|
|
210
|
+
store: e,
|
|
211
|
+
modal: v = !1,
|
|
212
|
+
portal: i = !!v,
|
|
213
|
+
hideOnEscape: s = !0,
|
|
214
|
+
autoFocusOnShow: o = !0,
|
|
215
|
+
hideOnHoverOutside: p,
|
|
216
|
+
alwaysVisible: d
|
|
217
|
+
} = t, a = N(t, [
|
|
218
|
+
"store",
|
|
219
|
+
"modal",
|
|
220
|
+
"portal",
|
|
221
|
+
"hideOnEscape",
|
|
222
|
+
"autoFocusOnShow",
|
|
223
|
+
"hideOnHoverOutside",
|
|
224
|
+
"alwaysVisible"
|
|
225
|
+
]);
|
|
226
|
+
const h = q();
|
|
227
|
+
e = e || h, G(
|
|
228
|
+
e,
|
|
229
|
+
process.env.NODE_ENV !== "production" && "Menu must receive a `store` prop or be wrapped in a MenuProvider component."
|
|
230
|
+
);
|
|
231
|
+
const f = ce(null), u = e.parent, O = e.menubar, m = !!u, S = !!O && !m;
|
|
232
|
+
a = F(b({}, a), {
|
|
233
|
+
ref: J(f, a.ref)
|
|
234
|
+
});
|
|
235
|
+
const g = de(b({
|
|
236
|
+
store: e,
|
|
237
|
+
alwaysVisible: d
|
|
238
|
+
}, a)), { "aria-labelledby": L } = g;
|
|
239
|
+
a = N(g, ["aria-labelledby"]);
|
|
240
|
+
const [_, D] = ie(), P = e.useState("autoFocusOnShow"), c = e.useState("initialFocus"), k = e.useState("baseElement"), w = e.useState("renderedItems");
|
|
241
|
+
le(() => {
|
|
242
|
+
let E = !1;
|
|
243
|
+
return D((M) => {
|
|
244
|
+
var U, Z, ee;
|
|
245
|
+
if (E || !P) return;
|
|
246
|
+
if ((U = M == null ? void 0 : M.current) != null && U.isConnected) return M;
|
|
247
|
+
const W = De();
|
|
248
|
+
switch (c) {
|
|
249
|
+
// TODO: Refactor
|
|
250
|
+
case "first":
|
|
251
|
+
W.current = ((Z = w.find((T) => !T.disabled && T.element)) == null ? void 0 : Z.element) || null;
|
|
252
|
+
break;
|
|
253
|
+
case "last":
|
|
254
|
+
W.current = ((ee = [...w].reverse().find((T) => !T.disabled && T.element)) == null ? void 0 : ee.element) || null;
|
|
255
|
+
break;
|
|
256
|
+
default:
|
|
257
|
+
W.current = k;
|
|
258
|
+
}
|
|
259
|
+
return W;
|
|
260
|
+
}), () => {
|
|
261
|
+
E = !0;
|
|
262
|
+
};
|
|
263
|
+
}, [e, P, c, w, k]);
|
|
264
|
+
const A = m ? !1 : v, l = !!o, y = !!_ || !!a.initialFocus || !!A, V = H(
|
|
265
|
+
e.combobox || e,
|
|
266
|
+
"contentElement"
|
|
267
|
+
), C = H(
|
|
268
|
+
(u == null ? void 0 : u.combobox) || u,
|
|
269
|
+
"contentElement"
|
|
270
|
+
), K = ke(() => {
|
|
271
|
+
if (!C || !V) return;
|
|
272
|
+
const E = V.getAttribute("role"), M = C.getAttribute("role");
|
|
273
|
+
if (!((M === "menu" || M === "menubar") && E === "menu"))
|
|
274
|
+
return C;
|
|
275
|
+
}, [V, C]);
|
|
276
|
+
return K !== void 0 && (a = b({
|
|
277
|
+
preserveTabOrderAnchor: K
|
|
278
|
+
}, a)), a = Le(F(b({
|
|
279
|
+
store: e,
|
|
280
|
+
alwaysVisible: d,
|
|
281
|
+
initialFocus: _,
|
|
282
|
+
autoFocusOnShow: l ? y && o : P || !!A
|
|
283
|
+
}, a), {
|
|
284
|
+
hideOnEscape(E) {
|
|
285
|
+
return Fe(s, E) ? !1 : (e == null || e.hideAll(), !0);
|
|
286
|
+
},
|
|
287
|
+
hideOnHoverOutside(E) {
|
|
288
|
+
const M = e == null ? void 0 : e.getState().disclosureElement;
|
|
289
|
+
return (typeof p == "function" ? p(E) : p ?? (m ? !0 : S ? M ? !z(M) : !0 : !1)) ? E.defaultPrevented || !m || !M || (xe(M, "mouseout", E), !z(M)) ? !0 : (requestAnimationFrame(() => {
|
|
290
|
+
z(M) || e == null || e.hide();
|
|
291
|
+
}), !1) : !1;
|
|
292
|
+
},
|
|
293
|
+
modal: A,
|
|
294
|
+
portal: i,
|
|
295
|
+
backdrop: m ? !1 : a.backdrop
|
|
296
|
+
})), a = b({
|
|
297
|
+
"aria-labelledby": L
|
|
298
|
+
}, a), a;
|
|
299
|
+
}), bt = Te(
|
|
300
|
+
X(function(n) {
|
|
301
|
+
const t = Je(n);
|
|
302
|
+
return Y(Ge, t);
|
|
303
|
+
}),
|
|
304
|
+
q
|
|
305
|
+
);
|
|
306
|
+
function vt(r = {}) {
|
|
307
|
+
const n = qe(r);
|
|
308
|
+
return /* @__PURE__ */ j(re, { value: n, children: r.children });
|
|
309
|
+
}
|
|
310
|
+
var Xe = "button";
|
|
311
|
+
function Ye(r, n) {
|
|
312
|
+
return {
|
|
313
|
+
ArrowDown: n === "bottom" || n === "top" ? "first" : !1,
|
|
314
|
+
ArrowUp: n === "bottom" || n === "top" ? "last" : !1,
|
|
315
|
+
ArrowRight: n === "right" ? "first" : !1,
|
|
316
|
+
ArrowLeft: n === "left" ? "first" : !1
|
|
317
|
+
}[r.key];
|
|
318
|
+
}
|
|
319
|
+
function oe(r, n) {
|
|
320
|
+
return !!(r != null && r.some((t) => !t.element || t.element === n ? !1 : t.element.getAttribute("aria-expanded") === "true"));
|
|
321
|
+
}
|
|
322
|
+
var Ze = Q(
|
|
323
|
+
function(n) {
|
|
324
|
+
var t = n, {
|
|
325
|
+
store: e,
|
|
326
|
+
focusable: v,
|
|
327
|
+
accessibleWhenDisabled: i,
|
|
328
|
+
showOnHover: s
|
|
329
|
+
} = t, o = N(t, [
|
|
330
|
+
"store",
|
|
331
|
+
"focusable",
|
|
332
|
+
"accessibleWhenDisabled",
|
|
333
|
+
"showOnHover"
|
|
334
|
+
]);
|
|
335
|
+
const p = q();
|
|
336
|
+
e = e || p, G(
|
|
337
|
+
e,
|
|
338
|
+
process.env.NODE_ENV !== "production" && "MenuButton must receive a `store` prop or be wrapped in a MenuProvider component."
|
|
339
|
+
);
|
|
340
|
+
const d = ce(null), a = e.parent, h = e.menubar, f = !!a, u = !!h && !f, O = _e(o), m = () => {
|
|
341
|
+
const l = d.current;
|
|
342
|
+
l && (e == null || e.setDisclosureElement(l), e == null || e.setAnchorElement(l), e == null || e.show());
|
|
343
|
+
}, S = o.onFocus, g = $((l) => {
|
|
344
|
+
if (S == null || S(l), O || l.defaultPrevented || (e == null || e.setAutoFocusOnShow(!1), e == null || e.setActiveId(null), !h) || !u) return;
|
|
345
|
+
const { items: y } = h.getState();
|
|
346
|
+
oe(y, l.currentTarget) && m();
|
|
347
|
+
}), L = H(
|
|
348
|
+
e,
|
|
349
|
+
(l) => l.placement.split("-")[0]
|
|
350
|
+
), R = o.onKeyDown, _ = $((l) => {
|
|
351
|
+
if (R == null || R(l), O || l.defaultPrevented) return;
|
|
352
|
+
const y = Ye(l, L);
|
|
353
|
+
y && (l.preventDefault(), m(), e == null || e.setAutoFocusOnShow(!0), e == null || e.setInitialFocus(y));
|
|
354
|
+
}), D = o.onClick, P = $((l) => {
|
|
355
|
+
if (D == null || D(l), l.defaultPrevented || !e) return;
|
|
356
|
+
const y = !l.detail, { open: V } = e.getState();
|
|
357
|
+
(!V || y) && ((!f || y) && e.setAutoFocusOnShow(!0), e.setInitialFocus(y ? "first" : "container")), f && m();
|
|
358
|
+
});
|
|
359
|
+
o = ue(
|
|
360
|
+
o,
|
|
361
|
+
(l) => /* @__PURE__ */ j(re, { value: e, children: l }),
|
|
362
|
+
[e]
|
|
363
|
+
), f && (o = F(b({}, o), {
|
|
364
|
+
render: /* @__PURE__ */ j(Be.div, { render: o.render })
|
|
365
|
+
}));
|
|
366
|
+
const c = ae(o.id), k = H(
|
|
367
|
+
(a == null ? void 0 : a.combobox) || a,
|
|
368
|
+
"contentElement"
|
|
369
|
+
), w = f || u ? Ce(k, "menuitem") : void 0, A = e.useState("contentElement");
|
|
370
|
+
return o = F(b({
|
|
371
|
+
id: c,
|
|
372
|
+
role: w,
|
|
373
|
+
"aria-haspopup": He(A, "menu")
|
|
374
|
+
}, o), {
|
|
375
|
+
ref: J(d, o.ref),
|
|
376
|
+
onFocus: g,
|
|
377
|
+
onKeyDown: _,
|
|
378
|
+
onClick: P
|
|
379
|
+
}), o = Re(F(b({
|
|
380
|
+
store: e,
|
|
381
|
+
focusable: v,
|
|
382
|
+
accessibleWhenDisabled: i
|
|
383
|
+
}, o), {
|
|
384
|
+
showOnHover: (l) => {
|
|
385
|
+
if (!(() => {
|
|
386
|
+
if (typeof s == "function") return s(l);
|
|
387
|
+
if (s != null) return s;
|
|
388
|
+
if (f) return !0;
|
|
389
|
+
if (!h) return !1;
|
|
390
|
+
const { items: K } = h.getState();
|
|
391
|
+
return u && oe(K);
|
|
392
|
+
})()) return !1;
|
|
393
|
+
const C = u ? h : a;
|
|
394
|
+
return C && C.setActiveId(l.currentTarget.id), !0;
|
|
395
|
+
}
|
|
396
|
+
})), o = We(b({
|
|
397
|
+
store: e,
|
|
398
|
+
toggleOnClick: !f,
|
|
399
|
+
focusable: v,
|
|
400
|
+
accessibleWhenDisabled: i
|
|
401
|
+
}, o)), o = se(b({
|
|
402
|
+
store: e,
|
|
403
|
+
typeahead: u
|
|
404
|
+
}, o)), o;
|
|
405
|
+
}
|
|
406
|
+
), ht = X(function(n) {
|
|
407
|
+
const t = Ze(n);
|
|
408
|
+
return Y(Xe, t);
|
|
409
|
+
});
|
|
410
|
+
export {
|
|
411
|
+
vt as M,
|
|
412
|
+
ht as a,
|
|
413
|
+
bt as b,
|
|
414
|
+
pt as c,
|
|
415
|
+
qe as u
|
|
416
|
+
};
|