@wrdagency/blockout 1.0.35 → 1.0.36
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-DBbnghCe.js → 2NBKRL7C-CHy8TNQM.js} +20 -20
- package/dist/{2RSXSRCN-BxQ_v-Je.js → 2RSXSRCN-DO41jkxy.js} +17 -17
- package/dist/{4CMBR7SL-DezfZPUS.js → 4CMBR7SL-eq3_MGhO.js} +30 -30
- package/dist/{5JTVDSTH-CZ7mfyUK.js → 5JTVDSTH-Cb-3mCyv.js} +4 -4
- package/dist/{5VQZOHHZ-DLX-ulBK.js → 5VQZOHHZ-D1gSZFY3.js} +1 -1
- package/dist/{6VRAQV3D-BYmT0QTl.js → 6VRAQV3D-Dzur8C7A.js} +19 -19
- package/dist/{A3WPL2ZJ-24tGIJIQ.js → A3WPL2ZJ-BZG8SEll.js} +2 -2
- package/dist/{BM6PGYQY-DCbkDr5N.js → BM6PGYQY-CCtFEKyb.js} +4 -4
- package/dist/{EM5CXX6A-B4ZS4Hs_.js → EM5CXX6A-DJQcGr5c.js} +2 -2
- package/dist/F5MUBM3I-6mXn4Fpb.js +54 -0
- package/dist/{G7GW6PWC-Dk4hVbAk.js → G7GW6PWC-BbXlQk2u.js} +106 -106
- package/dist/{J2LQO3EC-BXJIaM2U.js → J2LQO3EC-CvdDteYO.js} +7 -7
- package/dist/JMHAJKUZ-B_CxAFEI.js +136 -0
- package/dist/{KFH4SEIX-DaQeP5D_.js → KFH4SEIX-CEb2cs5b.js} +16 -16
- package/dist/{LMDWO4NN-CpSMaD5G.js → LMDWO4NN-5r0-Qq-x.js} +59 -59
- package/dist/{MR26YJYP-CTh6rCwA.js → MR26YJYP-ev1_As0E.js} +82 -82
- package/dist/{MTZPJQMC-D2i4-LA_.js → MTZPJQMC-CeWFa7M2.js} +2 -2
- package/dist/{O2PQ2652-DIoegIkE.js → O2PQ2652-Cf1Ld8NU.js} +11 -11
- package/dist/{P7GR5CS5-3RsPGPTy.js → P7GR5CS5-DFBp00bC.js} +3 -5
- package/dist/{PFRGBC2K-BdRJd-gU.js → PFRGBC2K-a0iGk9xp.js} +78 -78
- package/dist/{RS7LB2H4-COOfOq9w.js → RS7LB2H4-C2VEpoD3.js} +1 -1
- package/dist/RZ4GPYOB-2HMGtCSt.js +37 -0
- package/dist/{S43UC3DV-HCi6u_G4.js → S43UC3DV-0FmlYtUL.js} +8 -8
- package/dist/SquaresFour.es-iDUIyl5P.js +38 -0
- package/dist/{TIW3GMFC-BF0w2_9R.js → TIW3GMFC-DwYhiC0Y.js} +18 -18
- package/dist/{TP7N7UIH-C4jXJDlO.js → TP7N7UIH-BtuT6Y_M.js} +2 -2
- package/dist/{UQQRIHDV-DEGlgATx.js → UQQRIHDV-DtNzoFEE.js} +23 -23
- package/dist/{UYGDZTLQ-HiDKLOW5.js → UYGDZTLQ-BBLp-g5T.js} +2 -2
- package/dist/{VIIRIBF3-B-djNAU9.js → VIIRIBF3-Ds5aiXIU.js} +5 -5
- package/dist/{WMYDSCNQ-pGjWB-Pk.js → WMYDSCNQ-BdMfJmVD.js} +8 -8
- package/dist/{WYCIER3C-CxfgpZG_.js → WYCIER3C-eiMqR6-L.js} +4 -4
- package/dist/{YORGHBM4-D_fOXG5Y.js → YORGHBM4-DycYf9gS.js} +11 -11
- package/dist/{YV4JVR4I-CQnJhUSg.js → YV4JVR4I-BqDRuYuU.js} +60 -60
- 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/index2.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/assets/style10.css +1 -1
- package/dist/assets/style11.css +1 -1
- package/dist/assets/style2.css +1 -1
- package/dist/assets/style3.css +1 -1
- package/dist/assets/style4.css +1 -1
- package/dist/assets/style5.css +1 -1
- package/dist/assets/style6.css +1 -1
- package/dist/assets/style7.css +1 -1
- package/dist/assets/style8.css +1 -1
- package/dist/assets/style9.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/{base-jB1DIMnz.js → base-CPhsnNBF.js} +6 -6
- package/dist/combobox-popover-C6rwSpgq.js +1116 -0
- package/dist/components/avatar/index.js +13 -12
- package/dist/components/badge/index.js +9 -8
- package/dist/components/breadcrumbs/index.js +20 -19
- package/dist/components/button/button.js +12 -28
- package/dist/components/button/icon.js +12 -28
- package/dist/components/button/index.js +3 -8
- package/dist/components/button/row.js +4 -4
- package/dist/components/command-palette/dialog.js +8 -31
- package/dist/components/command-palette/index.js +3 -8
- package/dist/components/command-palette/presets.js +4 -5
- package/dist/components/command-palette/static.js +17 -70
- package/dist/components/controls/base-control/index.js +2 -3
- package/dist/components/controls/base-popover-control/index.js +20 -21
- package/dist/components/controls/card-number-control/index.js +1 -1
- package/dist/components/controls/checkbox-control/index.js +3 -4
- package/dist/components/controls/choice-control/choice.js +22 -22
- package/dist/components/controls/choice-control/index.js +1 -1
- package/dist/components/controls/date-control/index.js +16 -17
- package/dist/components/controls/date-control/picker.js +8 -9
- package/dist/components/controls/index.js +21 -22
- package/dist/components/controls/list-control/index.js +1 -1
- package/dist/components/controls/list-control/item.js +19 -18
- package/dist/components/controls/list-control/list.js +2 -2
- package/dist/components/controls/markdown-control/editor.js +3 -3
- package/dist/components/controls/markdown-control/index.js +1 -1
- package/dist/components/controls/markdown-control/slash/base.js +1 -1
- package/dist/components/controls/markdown-control/slash/mentions.js +1 -1
- package/dist/components/controls/markdown-control/toolbar.js +2 -2
- package/dist/components/controls/number-control/index.js +1 -1
- package/dist/components/controls/password-control/index.js +1 -1
- package/dist/components/controls/recurrence-control/index.js +37 -41
- package/dist/components/controls/select-control/control.js +8 -49
- package/dist/components/controls/select-control/index.js +3 -4
- package/dist/components/controls/select-control/select.js +23 -166
- package/dist/components/controls/tag-control/ariakit-experimental.js +550 -558
- package/dist/components/controls/tag-control/index.js +32 -36
- package/dist/components/controls/tag-control/props.js +14 -13
- package/dist/components/controls/text-control/index.js +1 -1
- package/dist/components/controls/textarea-control/index.js +1 -1
- package/dist/components/controls/toggle-control/index.js +8 -8
- package/dist/components/controls/toggle-group-control/index.js +8 -8
- package/dist/components/dashboard/context.d.ts +15 -0
- package/dist/components/dashboard/context.js +6 -0
- package/dist/components/dashboard/grid.d.ts +9 -0
- package/dist/components/dashboard/grid.js +123 -0
- package/dist/components/dashboard/index.d.ts +2 -0
- package/dist/components/dashboard/index.js +6 -0
- package/dist/components/dashboard/item.d.ts +9 -0
- package/dist/components/dashboard/item.js +5268 -0
- package/dist/components/dashboard/types.d.ts +8 -0
- package/dist/components/dashboard/types.js +1 -0
- package/dist/components/data-form/autosave.js +3 -3
- package/dist/components/data-form/index.js +5 -12
- package/dist/components/data-form/status.js +14 -32
- package/dist/components/data-form/submit.js +13 -31
- package/dist/components/data-view/api.js +1 -1
- package/dist/components/data-view/data/apply.js +139 -296
- package/dist/components/data-view/data/filter.js +21 -35
- package/dist/components/data-view/data/layout.js +9 -13
- package/dist/components/data-view/data/options.js +82 -114
- 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 +15 -42
- package/dist/components/data-view/layouts/grid/index.js +4 -6
- package/dist/components/data-view/layouts/grid/item.js +17 -87
- package/dist/components/data-view/layouts/grid/root.js +1 -1
- package/dist/components/data-view/layouts/kanban/empty.js +2 -3
- package/dist/components/data-view/layouts/kanban/group.js +16 -43
- package/dist/components/data-view/layouts/kanban/index.js +3 -6
- package/dist/components/data-view/layouts/kanban/item.js +17 -87
- package/dist/components/data-view/layouts/kanban/root.js +13 -13
- package/dist/components/data-view/layouts/list/empty.js +1 -1
- package/dist/components/data-view/layouts/list/group.js +15 -42
- package/dist/components/data-view/layouts/list/index.js +4 -6
- package/dist/components/data-view/layouts/list/item.js +17 -66
- package/dist/components/data-view/layouts/list/root.js +1 -1
- package/dist/components/data-view/layouts/table/empty.js +15 -41
- package/dist/components/data-view/layouts/table/group.js +15 -61
- package/dist/components/data-view/layouts/table/index.js +2 -6
- package/dist/components/data-view/layouts/table/item.js +17 -67
- package/dist/components/data-view/layouts/table/root.js +17 -122
- package/dist/components/data-view/layouts/tile/empty.js +1 -1
- package/dist/components/data-view/layouts/tile/group.js +15 -42
- package/dist/components/data-view/layouts/tile/index.js +4 -6
- package/dist/components/data-view/layouts/tile/item.js +17 -69
- package/dist/components/data-view/layouts/tile/root.js +1 -1
- package/dist/components/data-view/parts/body/empty.js +13 -12
- package/dist/components/data-view/parts/body/index.js +20 -37
- package/dist/components/data-view/parts/controls/index.js +54 -73
- package/dist/components/data-view/parts/controls/search.js +24 -44
- package/dist/components/data-view/parts/filters/chip.js +14 -49
- package/dist/components/data-view/parts/filters/editor.js +17 -79
- package/dist/components/data-view/parts/filters/index.js +2 -7
- package/dist/components/data-view/parts/filters/list.js +6 -72
- package/dist/components/data-view/parts/footer/actions.js +33 -52
- package/dist/components/data-view/parts/footer/index.js +15 -33
- package/dist/components/data-view/parts/footer/selection.js +14 -32
- package/dist/components/data-view/parts/index.js +3 -3
- package/dist/components/data-view/parts/view-control/index.js +44 -60
- package/dist/components/data-view/root.js +18 -38
- package/dist/components/data-view/slots/group/checkbox.js +13 -28
- package/dist/components/data-view/slots/group/context.js +5 -21
- package/dist/components/data-view/slots/group/header.js +3 -10
- package/dist/components/data-view/slots/group/icon.js +2 -2
- package/dist/components/data-view/slots/group/index.js +2 -4
- package/dist/components/data-view/slots/group/label.js +1 -1
- package/dist/components/data-view/slots/index.js +4 -6
- package/dist/components/data-view/slots/item/actions.js +6 -28
- package/dist/components/data-view/slots/item/checkbox.js +17 -77
- package/dist/components/data-view/slots/item/depth.js +2 -4
- package/dist/components/data-view/slots/item/description.js +1 -1
- package/dist/components/data-view/slots/item/index.js +2 -5
- package/dist/components/data-view/slots/item/properties.js +2 -3
- package/dist/components/data-view/slots/item/relations.js +7 -9
- package/dist/components/data-view/slots/item/tags.js +2 -3
- package/dist/components/data-view/slots/item/thumbnail.js +2 -2
- package/dist/components/data-view/slots/item/title.js +8 -8
- package/dist/components/data-view/slots/item/util.js +2 -3
- package/dist/components/data-view/slots/property/field/editable.js +14 -29
- package/dist/components/data-view/slots/property/field/index.js +2 -3
- package/dist/components/data-view/slots/property/field/static.js +1 -1
- package/dist/components/data-view/slots/property/index.js +2 -2
- package/dist/components/data-view/slots/property/label.js +1 -1
- package/dist/components/data-view/slots/root/checkbox.js +13 -27
- package/dist/components/data-view/slots/root/index.js +1 -1
- package/dist/components/dialog/index.js +32 -33
- package/dist/components/filesystem/file.js +5 -5
- package/dist/components/filesystem/folder.js +5 -5
- package/dist/components/filesystem/icon.js +3 -863
- package/dist/components/filesystem/index.js +2 -2
- package/dist/components/filesystem/list.js +1 -1
- package/dist/components/filesystem/root.js +1 -1
- package/dist/components/form/components/index.js +7 -16
- package/dist/components/form/components/pagination.js +5 -106
- package/dist/components/form/components/progress.js +4 -19
- package/dist/components/form/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +65 -73
- package/dist/components/menu/index.d.ts +10 -1
- package/dist/components/menu/index.js +9 -45
- 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 +4 -5
- package/dist/components/menu/items/toggle.js +1 -1
- package/dist/components/pagination/index.js +8 -8
- package/dist/components/progress/index.js +12 -50
- package/dist/components/shell/context.js +1 -1
- package/dist/components/shell/index.js +6 -16
- package/dist/components/shell/navigation.js +5 -49
- package/dist/components/shell/pane.js +13 -26
- package/dist/components/shell/sidebar-item.js +13 -45
- package/dist/components/tabs/index.js +1 -1
- 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/tag/index.js +2 -6
- package/dist/components/tag/list.js +4 -8
- package/dist/components/tag/tag.js +12 -20
- package/dist/components/toolbar/divider.js +1 -1
- package/dist/components/toolbar/index.js +6 -15
- package/dist/components/toolbar/root.js +1 -1
- package/dist/components/window/index.js +20 -20
- package/dist/{composite-provider-BPIeS4Cg.js → composite-provider-DlANhpbV.js} +2 -2
- package/dist/{disclosure-provider-cEVysvZT.js → disclosure-provider-Whga0UAw.js} +2 -2
- package/dist/filter-ClQxRPQl.js +120 -0
- package/dist/hooks/state.js +1 -1
- package/dist/hooks/theme.js +1 -1
- package/dist/icon-D6VWNg1e.js +909 -0
- package/dist/index-CcV1laBm.js +10 -0
- package/dist/{sortable.esm-BuV7eW2H.js → index-CrDFDRMM.js} +1247 -1089
- package/dist/{index-D7vLJIGX.js → index-D0xboB4V.js} +2 -2
- package/dist/index.js +140 -141
- package/dist/item-BHwNOBly.js +91 -0
- package/dist/menu-button-C7Wtq_Ny.js +488 -0
- package/dist/{menu-separator-Z6pSHpX5.js → menu-separator-1CpNYvfe.js} +3 -3
- package/dist/{picker-DyJogHYh.js → picker-BHIm3Cmb.js} +31 -32
- package/dist/{popover-provider-BJEfhgr1.js → popover-provider-DsS2XUBC.js} +2 -2
- package/dist/{presets-BDIhXP0C.js → presets-DevAa76r.js} +9 -10
- package/dist/primitives/colourway/index.js +8 -9
- package/dist/primitives/context-menu/index.d.ts +7 -0
- package/dist/primitives/context-menu/index.js +37 -0
- package/dist/primitives/icon-label/index.js +18 -19
- package/dist/primitives/index.d.ts +1 -0
- package/dist/primitives/index.js +34 -32
- package/dist/primitives/link/index.js +5 -6
- package/dist/primitives/nav-link/index.js +6 -7
- package/dist/primitives/popover/index.js +1 -1
- package/dist/primitives/popover/root.js +1 -1
- package/dist/primitives/popover/target.js +1 -1
- package/dist/primitives/popover/window.js +9 -9
- package/dist/primitives/resizable/index.d.ts +9 -2
- package/dist/primitives/resizable/index.js +120 -62
- package/dist/primitives/scroll-area/index.js +1 -1
- package/dist/primitives/tooltip/index.js +9 -10
- package/dist/primitives/truncate/index.d.ts +3 -2
- package/dist/primitives/truncate/index.js +30 -24
- package/dist/primitives/typography/heading.js +1 -1
- package/dist/primitives/typography/paragraph.js +1 -1
- package/dist/primitives/visually-hidden/index.js +6 -7
- package/dist/{style-CWAa57kN.js → style-DH642ww9.js} +1 -1
- package/dist/style-nHUEFY3u.js +4229 -0
- package/dist/{tab-DejwS4C8.js → tab-Cz1Iy2-6.js} +7 -7
- package/dist/{tab-list-CndMWcVv.js → tab-list-C-qZAxsl.js} +9 -9
- package/dist/{tab-panel-DedzuWUA.js → tab-panel-BaWZ3QU6.js} +11 -11
- package/dist/tab-provider-BqxRaJtd.js +170 -0
- package/dist/{tag-remove-Dz-sGbyZ.js → tag-remove-BgRiBB8K.js} +59 -59
- package/dist/{toolbar-PSaF1mdF.js → toolbar-BlMTPulL.js} +23 -23
- package/dist/{toolbar-CCiZ_PIy.js → toolbar-jAQLS8tL.js} +1 -1
- package/dist/toolbar-separator-ehmZmA72.js +16 -0
- package/dist/{tooltip-arrow-BVwULA6B.js → tooltip-arrow-gMwnY9fV.js} +47 -47
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +20 -14
- package/dist/utils/math.d.ts +5 -0
- package/dist/utils/math.js +11 -0
- package/package.json +2 -1
- package/dist/CaretRight.es-vnr78BGI.js +0 -32
- package/dist/Circle.es-B6Ug9Tpf.js +0 -30
- package/dist/DG5U6ZEL-DB0iwihy.js +0 -17
- package/dist/DotsThreeVertical.es-uadrGk3y.js +0 -36
- package/dist/F5MUBM3I-75qY3y0N.js +0 -54
- package/dist/IWEFDH56-BACkQ6dc.js +0 -19
- package/dist/IconBase.es-rM5tt24D.js +0 -48
- package/dist/JMHAJKUZ-D5KCN1Aj.js +0 -114
- package/dist/MAXQOH4L-BYWBWXpb.js +0 -459
- package/dist/MagnifyingGlass.es-CLstwG_v.js +0 -32
- package/dist/Plus.es-DJ5SuqNv.js +0 -38
- package/dist/RZ4GPYOB-CovncfhJ.js +0 -37
- package/dist/RadioButton.es-D3QVjfF9.js +0 -36
- package/dist/T7VMP3TM-C8D6mVva.js +0 -77
- package/dist/X.es-TbGOnXOO.js +0 -38
- package/dist/assets/button.css +0 -1
- package/dist/assets/index15.css +0 -1
- package/dist/assets/index16.css +0 -1
- package/dist/assets/index17.css +0 -1
- package/dist/assets/index18.css +0 -1
- package/dist/assets/index19.css +0 -1
- package/dist/assets/index20.css +0 -1
- package/dist/assets/index21.css +0 -1
- package/dist/assets/prosemirror.css +0 -1
- package/dist/assets/root.css +0 -1
- package/dist/assets/static.css +0 -1
- package/dist/assets/style12.css +0 -1
- package/dist/assets/style13.css +0 -1
- package/dist/assets/style14.css +0 -1
- package/dist/assets/style15.css +0 -1
- package/dist/assets/style16.css +0 -1
- package/dist/assets/style17.css +0 -1
- package/dist/assets/style18.css +0 -1
- package/dist/assets/style19.css +0 -1
- package/dist/assets/style20.css +0 -1
- package/dist/assets/style21.css +0 -1
- package/dist/assets/style23.css +0 -1
- package/dist/assets/style24.css +0 -1
- package/dist/assets/style25.css +0 -1
- package/dist/assets/style26.css +0 -1
- package/dist/assets/style27.css +0 -1
- package/dist/assets/style28.css +0 -1
- package/dist/assets/styles2.css +0 -1
- package/dist/assets/styles3.css +0 -1
- package/dist/assets/styles4.css +0 -1
- package/dist/assets/styles5.css +0 -1
- package/dist/combobox-group-hNvv1WJm.js +0 -27
- package/dist/combobox-popover-BZ_1wNrj.js +0 -95
- package/dist/filter-DHK0UoZG.js +0 -134
- package/dist/index-BLCPauyN.js +0 -76
- package/dist/index-BnbjJBS4.js +0 -252
- package/dist/index-CLl-PPjx.js +0 -56
- package/dist/item-CCOXuQUx.js +0 -62
- package/dist/match-sorter.esm-MNVE8H_6.js +0 -670
- package/dist/menu-button-GQO5dB3U.js +0 -416
- package/dist/select-popover-CGgkyRb4.js +0 -559
- package/dist/select-value-B3DYk9eV.js +0 -15
- package/dist/style-D1AX7G7x.js +0 -1735
- package/dist/tab-provider-B0BoLfST.js +0 -158
- package/dist/toolbar-separator-DJHiHbGj.js +0 -16
- /package/dist/assets/{style22.css → empty.css} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as _, a as H } from "./VIIRIBF3-
|
|
2
|
-
import { u as T } from "./UQQRIHDV-
|
|
3
|
-
import { u as
|
|
4
|
-
import { a as
|
|
5
|
-
import { s as
|
|
6
|
-
import { a as M } from "./PFRGBC2K-
|
|
7
|
-
var
|
|
1
|
+
import { u as _, a as H } from "./VIIRIBF3-Ds5aiXIU.js";
|
|
2
|
+
import { u as T } from "./UQQRIHDV-DtNzoFEE.js";
|
|
3
|
+
import { u as k } from "./6VRAQV3D-Dzur8C7A.js";
|
|
4
|
+
import { a as y } from "./YV4JVR4I-BqDRuYuU.js";
|
|
5
|
+
import { s as S, f as w, c as A, a as P, _ as D, i as N, h as F, e as R, M as B, N as K, O as V, k as g, m as p, C as W } from "./LMDWO4NN-5r0-Qq-x.js";
|
|
6
|
+
import { a as M } from "./PFRGBC2K-a0iGk9xp.js";
|
|
7
|
+
var j = "div";
|
|
8
8
|
function q(a, o, u) {
|
|
9
9
|
var r;
|
|
10
10
|
if (!a) return !1;
|
|
@@ -14,7 +14,7 @@ function q(a, o, u) {
|
|
|
14
14
|
return n.element === u ? !1 : ((l = n.element) == null ? void 0 : l.getAttribute("aria-expanded")) === "true";
|
|
15
15
|
}), c = (r = i == null ? void 0 : i.element) == null ? void 0 : r.getAttribute("aria-controls");
|
|
16
16
|
if (!c) return !1;
|
|
17
|
-
const t =
|
|
17
|
+
const t = W(a).getElementById(c);
|
|
18
18
|
return t ? M(t) ? !0 : !!t.querySelector("[role=menuitem][aria-expanded=true]") : !1;
|
|
19
19
|
}
|
|
20
20
|
var L = A(
|
|
@@ -25,7 +25,7 @@ var L = A(
|
|
|
25
25
|
preventScrollOnKeyDown: c = !0,
|
|
26
26
|
focusOnHover: s,
|
|
27
27
|
blurOnHoverEnd: t
|
|
28
|
-
} = u, n =
|
|
28
|
+
} = u, n = D(u, [
|
|
29
29
|
"store",
|
|
30
30
|
"hideOnClick",
|
|
31
31
|
"preventScrollOnKeyDown",
|
|
@@ -33,21 +33,21 @@ var L = A(
|
|
|
33
33
|
"blurOnHoverEnd"
|
|
34
34
|
]);
|
|
35
35
|
const l = _(!0), O = H();
|
|
36
|
-
r = r || l || O,
|
|
36
|
+
r = r || l || O, N(
|
|
37
37
|
r,
|
|
38
38
|
process.env.NODE_ENV !== "production" && "MenuItem must be wrapped in a MenuList, Menu or Menubar component"
|
|
39
39
|
);
|
|
40
|
-
const m = n.onClick, b =
|
|
41
|
-
m == null || m(e), !(e.defaultPrevented ||
|
|
42
|
-
}), C =
|
|
40
|
+
const m = n.onClick, b = F(i), f = "hideAll" in r ? r.hideAll : void 0, d = !!f, h = R((e) => {
|
|
41
|
+
m == null || m(e), !(e.defaultPrevented || B(e) || K(e) || !f || e.currentTarget.getAttribute("aria-haspopup") === "menu") && b(e) && f();
|
|
42
|
+
}), C = y(
|
|
43
43
|
r,
|
|
44
44
|
(e) => "contentElement" in e ? e.contentElement : null
|
|
45
|
-
),
|
|
45
|
+
), x = V(C, "menuitem");
|
|
46
46
|
return n = g(p({
|
|
47
|
-
role:
|
|
47
|
+
role: x
|
|
48
48
|
}, n), {
|
|
49
49
|
onClick: h
|
|
50
|
-
}), n =
|
|
50
|
+
}), n = k(p({
|
|
51
51
|
store: r,
|
|
52
52
|
preventScrollOnKeyDown: c
|
|
53
53
|
}, n)), n = T(g(p({
|
|
@@ -56,18 +56,18 @@ var L = A(
|
|
|
56
56
|
focusOnHover(e) {
|
|
57
57
|
const v = () => typeof s == "function" ? s(e) : s ?? !0;
|
|
58
58
|
if (!r || !v()) return !1;
|
|
59
|
-
const { baseElement:
|
|
60
|
-
return d ? (e.currentTarget.hasAttribute("aria-expanded") && e.currentTarget.focus(), !0) : q(
|
|
59
|
+
const { baseElement: E, items: I } = r.getState();
|
|
60
|
+
return d ? (e.currentTarget.hasAttribute("aria-expanded") && e.currentTarget.focus(), !0) : q(E, I, e.currentTarget) ? (e.currentTarget.focus(), !0) : !1;
|
|
61
61
|
},
|
|
62
62
|
blurOnHoverEnd(e) {
|
|
63
63
|
return typeof t == "function" ? t(e) : t ?? d;
|
|
64
64
|
}
|
|
65
65
|
})), n;
|
|
66
66
|
}
|
|
67
|
-
), Y =
|
|
67
|
+
), Y = S(
|
|
68
68
|
w(function(o) {
|
|
69
69
|
const u = L(o);
|
|
70
|
-
return
|
|
70
|
+
return P(j, u);
|
|
71
71
|
})
|
|
72
72
|
);
|
|
73
73
|
export {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { c as
|
|
1
|
+
import { u as O } from "./PFRGBC2K-a0iGk9xp.js";
|
|
2
|
+
import { c as h, _ as m, B as p, t as q, E as x, e as N, n as H, p as Y, F as j, G, H as _, k as L, l as V, m as T, f as z, a as J } from "./LMDWO4NN-5r0-Qq-x.js";
|
|
3
3
|
import { useRef as w, useState as D, useEffect as Q } from "react";
|
|
4
4
|
var W = "button";
|
|
5
|
-
function
|
|
5
|
+
function M(a) {
|
|
6
6
|
if (!a.isTrusted) return !1;
|
|
7
7
|
const t = a.currentTarget;
|
|
8
8
|
return a.key === "Enter" ? p(t) || t.tagName === "SUMMARY" || t.tagName === "A" : a.key === " " ? p(t) || t.tagName === "SUMMARY" || t.tagName === "INPUT" || t.tagName === "SELECT" : !1;
|
|
9
9
|
}
|
|
10
|
-
var X = Symbol("command"), Z =
|
|
10
|
+
var X = Symbol("command"), Z = h(
|
|
11
11
|
function(t) {
|
|
12
12
|
var o = t, { clickOnEnter: d = !0, clickOnSpace: u = !0 } = o, r = m(o, ["clickOnEnter", "clickOnSpace"]);
|
|
13
|
-
const c = w(null), [
|
|
13
|
+
const c = w(null), [K, R] = D(!1);
|
|
14
14
|
Q(() => {
|
|
15
15
|
c.current && R(p(c.current));
|
|
16
16
|
}, []);
|
|
17
|
-
const [U, k] = D(!1), f = w(!1), y = q(r), [E,
|
|
17
|
+
const [U, k] = D(!1), f = w(!1), y = q(r), [E, B] = x(r, X, !0), v = r.onKeyDown, F = N((e) => {
|
|
18
18
|
v == null || v(e);
|
|
19
19
|
const s = e.currentTarget;
|
|
20
20
|
if (e.defaultPrevented || E || y || !H(e) || Y(s) || s.isContentEditable) return;
|
|
@@ -24,19 +24,19 @@ var X = Symbol("command"), Z = O(
|
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
if (i || n) {
|
|
27
|
-
const S =
|
|
27
|
+
const S = M(e);
|
|
28
28
|
if (i) {
|
|
29
29
|
if (!S) {
|
|
30
30
|
e.preventDefault();
|
|
31
|
-
const b = e, { view: $ } = b,
|
|
32
|
-
j() ?
|
|
31
|
+
const b = e, { view: $ } = b, I = m(b, ["view"]), C = () => _(s, I);
|
|
32
|
+
j() ? G(s, "keyup", C) : queueMicrotask(C);
|
|
33
33
|
}
|
|
34
34
|
} else n && (f.current = !0, S || (e.preventDefault(), k(!0)));
|
|
35
35
|
}
|
|
36
|
-
}), P = r.onKeyUp,
|
|
36
|
+
}), P = r.onKeyUp, A = N((e) => {
|
|
37
37
|
if (P == null || P(e), e.defaultPrevented || E || y || e.metaKey) return;
|
|
38
38
|
const s = u && e.key === " ";
|
|
39
|
-
if (f.current && s && (f.current = !1, !
|
|
39
|
+
if (f.current && s && (f.current = !1, !M(e))) {
|
|
40
40
|
e.preventDefault(), k(!1);
|
|
41
41
|
const i = e.currentTarget, n = e, { view: g } = n, l = m(n, ["view"]);
|
|
42
42
|
queueMicrotask(() => _(i, l));
|
|
@@ -44,16 +44,16 @@ var X = Symbol("command"), Z = O(
|
|
|
44
44
|
});
|
|
45
45
|
return r = L(T(T({
|
|
46
46
|
"data-active": U || void 0,
|
|
47
|
-
type:
|
|
48
|
-
},
|
|
47
|
+
type: K ? "button" : void 0
|
|
48
|
+
}, B), r), {
|
|
49
49
|
ref: V(c, r.ref),
|
|
50
|
-
onKeyDown:
|
|
51
|
-
onKeyUp:
|
|
52
|
-
}), r =
|
|
50
|
+
onKeyDown: F,
|
|
51
|
+
onKeyUp: A
|
|
52
|
+
}), r = O(r), r;
|
|
53
53
|
}
|
|
54
54
|
), ae = z(function(t) {
|
|
55
55
|
const o = Z(t);
|
|
56
|
-
return
|
|
56
|
+
return J(W, o);
|
|
57
57
|
});
|
|
58
58
|
export {
|
|
59
59
|
ae as C,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as p, c as k, s as
|
|
2
|
-
import {
|
|
3
|
-
import { r as
|
|
1
|
+
import { t as p, c as k, s as R, i as ee, g as q, f as _, b as Q, d as te } from "./YV4JVR4I-BqDRuYuU.js";
|
|
2
|
+
import { Q as S, R as M, S as L, $ as ne, a0 as re, C as ie, T as se, q as oe, m as ae } from "./LMDWO4NN-5r0-Qq-x.js";
|
|
3
|
+
import { r as U, f as le } from "./7PRQYBBV-91wrWGjk.js";
|
|
4
4
|
function de(e) {
|
|
5
5
|
var r;
|
|
6
6
|
const t = e.find((l) => !!l.element), o = [...e].reverse().find((l) => !!l.element);
|
|
@@ -33,9 +33,9 @@ function Y(e = {}) {
|
|
|
33
33
|
const a = re(i, (u) => u.element);
|
|
34
34
|
c.setState("renderedItems", a), n.setState("renderedItems", a);
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
R(n, () => ee(c)), R(c, () => q(c, ["items"], (i) => {
|
|
37
37
|
n.setState("items", i.items);
|
|
38
|
-
})),
|
|
38
|
+
})), R(c, () => q(c, ["renderedItems"], (i) => {
|
|
39
39
|
let a = !0, u = requestAnimationFrame(() => {
|
|
40
40
|
const { renderedItems: m } = n.getState();
|
|
41
41
|
i.renderedItems !== m && x(i.renderedItems);
|
|
@@ -81,7 +81,7 @@ function Y(e = {}) {
|
|
|
81
81
|
(a) => c.setState("items", a),
|
|
82
82
|
!0
|
|
83
83
|
);
|
|
84
|
-
return
|
|
84
|
+
return M(L({}, n), {
|
|
85
85
|
registerItem: P,
|
|
86
86
|
renderItem: (i) => ne(
|
|
87
87
|
P(i),
|
|
@@ -107,7 +107,7 @@ function j(e, r, t) {
|
|
|
107
107
|
return se(r, [t.store]), _(e, t, "items", "setItems"), e;
|
|
108
108
|
}
|
|
109
109
|
function Ee(e = {}) {
|
|
110
|
-
const [r, t] =
|
|
110
|
+
const [r, t] = Q(Y, e);
|
|
111
111
|
return j(r, t, e);
|
|
112
112
|
}
|
|
113
113
|
var ce = { id: null };
|
|
@@ -169,7 +169,7 @@ function Se(e) {
|
|
|
169
169
|
for (let s = 0; s < t; s += 1)
|
|
170
170
|
for (const l of r) {
|
|
171
171
|
const d = l[s];
|
|
172
|
-
d && o.push(
|
|
172
|
+
d && o.push(M(L({}, d), {
|
|
173
173
|
// If there's no rowId, it means that it's not a grid composite, but
|
|
174
174
|
// a single row instead. So, instead of verticalizing it, that is,
|
|
175
175
|
// assigning a different rowId based on the column index, we keep it
|
|
@@ -186,7 +186,7 @@ function ge(e = {}) {
|
|
|
186
186
|
e.activeId,
|
|
187
187
|
t == null ? void 0 : t.activeId,
|
|
188
188
|
e.defaultActiveId
|
|
189
|
-
), l =
|
|
189
|
+
), l = M(L({}, o.getState()), {
|
|
190
190
|
id: S(
|
|
191
191
|
e.id,
|
|
192
192
|
t == null ? void 0 : t.id,
|
|
@@ -215,7 +215,7 @@ function ge(e = {}) {
|
|
|
215
215
|
focusWrap: S(e.focusWrap, t == null ? void 0 : t.focusWrap, !1),
|
|
216
216
|
focusShift: S(e.focusShift, t == null ? void 0 : t.focusShift, !1)
|
|
217
217
|
}), d = k(l, o, e.store);
|
|
218
|
-
|
|
218
|
+
R(
|
|
219
219
|
d,
|
|
220
220
|
() => te(d, ["renderedItems", "activeId"], (n) => {
|
|
221
221
|
d.setState("activeId", (x) => {
|
|
@@ -235,27 +235,27 @@ function ge(e = {}) {
|
|
|
235
235
|
includesBaseElement: m = i.includesBaseElement,
|
|
236
236
|
renderedItems: w = i.renderedItems,
|
|
237
237
|
rtl: b = i.rtl
|
|
238
|
-
} = x, y = n === "up" || n === "down",
|
|
238
|
+
} = x, y = n === "up" || n === "down", z = n === "next" || n === "down", K = z ? b && !y : !b || y, X = g && !a;
|
|
239
239
|
let v = y ? le(
|
|
240
|
-
Ie(H(w), u,
|
|
240
|
+
Ie(H(w), u, X)
|
|
241
241
|
) : w;
|
|
242
|
-
if (v = K ?
|
|
242
|
+
if (v = K ? U(v) : v, v = y ? Se(v) : v, u == null)
|
|
243
243
|
return (E = h(v)) == null ? void 0 : E.id;
|
|
244
244
|
const B = v.find((I) => I.id === u);
|
|
245
245
|
if (!B)
|
|
246
246
|
return (P = h(v)) == null ? void 0 : P.id;
|
|
247
|
-
const
|
|
247
|
+
const D = v.some((I) => I.rowId), Z = v.indexOf(B), N = v.slice(Z + 1), O = G(N, B.rowId);
|
|
248
248
|
if (a) {
|
|
249
|
-
const I = fe(
|
|
249
|
+
const I = fe(O, u), A = I.slice(a)[0] || // If we can't find an item, just return the last one.
|
|
250
250
|
I[I.length - 1];
|
|
251
|
-
return
|
|
251
|
+
return A == null ? void 0 : A.id;
|
|
252
252
|
}
|
|
253
|
-
const
|
|
254
|
-
if (
|
|
255
|
-
const I =
|
|
256
|
-
return
|
|
253
|
+
const T = F && (y ? F !== "horizontal" : F !== "vertical"), V = D && f && (y ? f !== "horizontal" : f !== "vertical"), C = z ? (!D || y) && T && m : y ? m : !1;
|
|
254
|
+
if (T) {
|
|
255
|
+
const I = V && !C ? v : G(v, B.rowId), A = me(I, u, C), $ = h(A, u);
|
|
256
|
+
return $ == null ? void 0 : $.id;
|
|
257
257
|
}
|
|
258
|
-
if (
|
|
258
|
+
if (V) {
|
|
259
259
|
const I = h(
|
|
260
260
|
// We can use nextItems, which contains all the next items, including
|
|
261
261
|
// items from other rows, to wrap between rows. However, if there is a
|
|
@@ -263,15 +263,15 @@ function ge(e = {}) {
|
|
|
263
263
|
// the row. So moving next from the last item will focus on the
|
|
264
264
|
// composite container. On grid composites, horizontal navigation never
|
|
265
265
|
// focuses on the composite container, only vertical.
|
|
266
|
-
|
|
266
|
+
C ? O : N,
|
|
267
267
|
u
|
|
268
268
|
);
|
|
269
|
-
return
|
|
269
|
+
return C ? (I == null ? void 0 : I.id) || null : I == null ? void 0 : I.id;
|
|
270
270
|
}
|
|
271
|
-
const
|
|
272
|
-
return !
|
|
271
|
+
const W = h(O, u);
|
|
272
|
+
return !W && C ? null : W == null ? void 0 : W.id;
|
|
273
273
|
};
|
|
274
|
-
return
|
|
274
|
+
return M(L(L({}, o), d), {
|
|
275
275
|
setBaseElement: (n) => d.setState("baseElement", n),
|
|
276
276
|
setActiveId: (n) => d.setState("activeId", n),
|
|
277
277
|
move: (n) => {
|
|
@@ -283,7 +283,7 @@ function ge(e = {}) {
|
|
|
283
283
|
},
|
|
284
284
|
last: () => {
|
|
285
285
|
var n;
|
|
286
|
-
return (n = h(
|
|
286
|
+
return (n = h(U(d.getState().renderedItems))) == null ? void 0 : n.id;
|
|
287
287
|
},
|
|
288
288
|
next: (n) => (n !== void 0 && typeof n == "number" && (n = { skip: n }), c("next", n)),
|
|
289
289
|
previous: (n) => (n !== void 0 && typeof n == "number" && (n = { skip: n }), c("previous", n)),
|
|
@@ -300,12 +300,12 @@ function xe(e, r, t) {
|
|
|
300
300
|
}
|
|
301
301
|
function ye(e = {}) {
|
|
302
302
|
e = be(e);
|
|
303
|
-
const [r, t] =
|
|
303
|
+
const [r, t] = Q(ge, e);
|
|
304
304
|
return xe(r, t, e);
|
|
305
305
|
}
|
|
306
306
|
export {
|
|
307
|
-
|
|
308
|
-
|
|
307
|
+
xe as a,
|
|
308
|
+
Y as b,
|
|
309
309
|
ge as c,
|
|
310
310
|
be as d,
|
|
311
311
|
j as e,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as v,
|
|
2
|
-
import { u as te, C as re } from "./P7GR5CS5-
|
|
3
|
-
import { f as oe, h as ne, u as se } from "./PFRGBC2K-
|
|
4
|
-
import { f as ie, c as ue, a as ae, _ as O, i as ce, u as le, b as B, d as E, g as fe, e as P, h as
|
|
1
|
+
import { g as v, i as K, s as Z, f as $, a as ee } from "./5VQZOHHZ-D1gSZFY3.js";
|
|
2
|
+
import { u as te, C as re } from "./P7GR5CS5-DFBp00bC.js";
|
|
3
|
+
import { f as oe, h as ne, u as se } from "./PFRGBC2K-a0iGk9xp.js";
|
|
4
|
+
import { f as ie, c as ue, a as ae, _ as O, i as ce, u as le, b as B, d as E, g as fe, e as P, h as de, j as me, k as pe, l as ve, m as M, n as I, o as ge, p as z } from "./LMDWO4NN-5r0-Qq-x.js";
|
|
5
5
|
import { f as ye, r as Ee } from "./7PRQYBBV-91wrWGjk.js";
|
|
6
6
|
import { useRef as R, useEffect as L, useState as Ie, useCallback as Ce } from "react";
|
|
7
7
|
import { jsx as Pe } from "react/jsx-runtime";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { b as ie, i as j, c as se, g as ae } from "./5VQZOHHZ-
|
|
2
|
-
import { u as ue } from "./RZ4GPYOB-
|
|
3
|
-
import { a as le, b as fe, c as ce } from "./P7GR5CS5-
|
|
4
|
-
import { u as de } from "./2RSXSRCN-
|
|
5
|
-
import { u as me } from "./YV4JVR4I-
|
|
6
|
-
import { s as pe, f as be, c as Ie, a as ge, _ as ve, q as we, t as Pe,
|
|
1
|
+
import { b as ie, i as j, c as se, g as ae } from "./5VQZOHHZ-D1gSZFY3.js";
|
|
2
|
+
import { u as ue } from "./RZ4GPYOB-2HMGtCSt.js";
|
|
3
|
+
import { a as le, b as fe, c as ce } from "./P7GR5CS5-DFBp00bC.js";
|
|
4
|
+
import { u as de } from "./2RSXSRCN-DO41jkxy.js";
|
|
5
|
+
import { u as me } from "./YV4JVR4I-BqDRuYuU.js";
|
|
6
|
+
import { s as pe, f as be, c as Ie, a as ge, _ as ve, q as we, t as Pe, k as S, m as x, e as T, h as N, j as Se, l as xe, r as Ce, n as D, v as A, w as he, x as Ee, y as ye, z as Te, p as De, A as Ae, B as ke } from "./LMDWO4NN-5r0-Qq-x.js";
|
|
7
7
|
import { useRef as V, useContext as Oe, useCallback as Re, useMemo as ze } from "react";
|
|
8
8
|
import { jsx as Ke } from "react/jsx-runtime";
|
|
9
9
|
var Fe = "button";
|
|
10
10
|
function _e(o) {
|
|
11
|
-
return
|
|
11
|
+
return A(o) ? !0 : o.tagName === "INPUT" && !ke(o);
|
|
12
12
|
}
|
|
13
13
|
function Be(o, u = !1) {
|
|
14
14
|
const a = o.clientHeight, { top: t } = o.getBoundingClientRect(), c = Math.max(a * 0.875, a - 40) * 1.5, m = u ? a - c + t : c + t;
|
|
@@ -21,7 +21,7 @@ function He(o, u = !1) {
|
|
|
21
21
|
function L(o, u, a, t = !1) {
|
|
22
22
|
var c;
|
|
23
23
|
if (!u || !a) return;
|
|
24
|
-
const { renderedItems: m } = u.getState(), v =
|
|
24
|
+
const { renderedItems: m } = u.getState(), v = Ae(o);
|
|
25
25
|
if (!v) return;
|
|
26
26
|
const C = Be(v, t);
|
|
27
27
|
let f, p;
|
|
@@ -41,7 +41,7 @@ function L(o, u, a, t = !1) {
|
|
|
41
41
|
return f;
|
|
42
42
|
}
|
|
43
43
|
function Me(o, u) {
|
|
44
|
-
return
|
|
44
|
+
return D(o) ? !1 : j(u, o.target);
|
|
45
45
|
}
|
|
46
46
|
var Ne = Ie(
|
|
47
47
|
function(u) {
|
|
@@ -119,10 +119,10 @@ var Ne = Ie(
|
|
|
119
119
|
},
|
|
120
120
|
[l, h, k, f]
|
|
121
121
|
), R = r.onFocus, E = V(!1), Q = T((e) => {
|
|
122
|
-
if (R == null || R(e), e.defaultPrevented ||
|
|
122
|
+
if (R == null || R(e), e.defaultPrevented || ye(e) || !l || !t || Me(e, t)) return;
|
|
123
123
|
const { virtualFocus: n, baseElement: i } = t.getState();
|
|
124
|
-
if (t.setActiveId(l),
|
|
125
|
-
|
|
124
|
+
if (t.setActiveId(l), A(e.currentTarget) && ie(e.currentTarget), !n || !D(e) || _e(e.currentTarget) || !(i != null && i.isConnected)) return;
|
|
125
|
+
Te() && e.currentTarget.hasAttribute("data-autofocus") && e.currentTarget.scrollIntoView({
|
|
126
126
|
block: "nearest",
|
|
127
127
|
inline: "nearest"
|
|
128
128
|
}), E.current = !0, e.relatedTarget === i || j(t, e.relatedTarget) ? se(i) : i.focus();
|
|
@@ -131,7 +131,7 @@ var Ne = Ie(
|
|
|
131
131
|
const n = t == null ? void 0 : t.getState();
|
|
132
132
|
n != null && n.virtualFocus && E.current && (E.current = !1, e.preventDefault(), e.stopPropagation());
|
|
133
133
|
}), K = r.onKeyDown, Y = N(m), Z = N(v), $ = T((e) => {
|
|
134
|
-
if (K == null || K(e), e.defaultPrevented || !
|
|
134
|
+
if (K == null || K(e), e.defaultPrevented || !D(e) || !t) return;
|
|
135
135
|
const { currentTarget: n } = e, i = t.getState(), y = t.item(l), d = !!(y != null && y.rowId), P = i.orientation !== "horizontal", g = i.orientation !== "vertical", _ = () => !!(d || g || !i.baseElement || !De(i.baseElement)), B = {
|
|
136
136
|
ArrowUp: (d || P) && t.up,
|
|
137
137
|
ArrowRight: (d || g) && t.next,
|
|
@@ -149,10 +149,10 @@ var Ne = Ie(
|
|
|
149
149
|
PageDown: () => L(n, t, t == null ? void 0 : t.down)
|
|
150
150
|
}[e.key];
|
|
151
151
|
if (B) {
|
|
152
|
-
if (
|
|
153
|
-
const M =
|
|
152
|
+
if (A(n)) {
|
|
153
|
+
const M = he(n), ee = g && e.key === "ArrowLeft", te = g && e.key === "ArrowRight", re = P && e.key === "ArrowUp", ne = P && e.key === "ArrowDown";
|
|
154
154
|
if (te || ne) {
|
|
155
|
-
const { length: oe } =
|
|
155
|
+
const { length: oe } = Ee(n);
|
|
156
156
|
if (M.end !== oe) return;
|
|
157
157
|
} else if ((ee || re) && M.start !== 0) return;
|
|
158
158
|
}
|
|
@@ -166,7 +166,7 @@ var Ne = Ie(
|
|
|
166
166
|
() => ({ id: l, baseElement: O }),
|
|
167
167
|
[l, O]
|
|
168
168
|
);
|
|
169
|
-
return r =
|
|
169
|
+
return r = Se(
|
|
170
170
|
r,
|
|
171
171
|
(e) => /* @__PURE__ */ Ke(ce.Provider, { value: F, children: e }),
|
|
172
172
|
[F]
|
|
@@ -174,7 +174,7 @@ var Ne = Ie(
|
|
|
174
174
|
id: l,
|
|
175
175
|
"data-active-item": U || void 0
|
|
176
176
|
}, r), {
|
|
177
|
-
ref:
|
|
177
|
+
ref: xe(I, r.ref),
|
|
178
178
|
tabIndex: G ? r.tabIndex : -1,
|
|
179
179
|
onFocus: Q,
|
|
180
180
|
onBlurCapture: X,
|
|
@@ -184,7 +184,7 @@ var Ne = Ie(
|
|
|
184
184
|
}, r), {
|
|
185
185
|
getItem: J,
|
|
186
186
|
shouldRegisterItem: l ? r.shouldRegisterItem : !1
|
|
187
|
-
})),
|
|
187
|
+
})), Ce(S(x({}, r), {
|
|
188
188
|
"aria-setsize": W,
|
|
189
189
|
"aria-posinset": q
|
|
190
190
|
}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as t, a as s } from "./WYCIER3C-
|
|
2
|
-
import { b as a } from "./YV4JVR4I-
|
|
1
|
+
import { c as t, a as s } from "./WYCIER3C-eiMqR6-L.js";
|
|
2
|
+
import { b as a } from "./YV4JVR4I-BqDRuYuU.js";
|
|
3
3
|
function u(r = {}) {
|
|
4
4
|
return t(r);
|
|
5
5
|
}
|
|
@@ -11,7 +11,7 @@ function S(r = {}) {
|
|
|
11
11
|
return c(e, o, r);
|
|
12
12
|
}
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
S as a,
|
|
15
15
|
u as c,
|
|
16
|
-
|
|
16
|
+
c as u
|
|
17
17
|
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { u as T } from "./RS7LB2H4-C2VEpoD3.js";
|
|
2
|
+
import { u as h } from "./2RSXSRCN-DO41jkxy.js";
|
|
3
|
+
import { c as v, P as w, B as f, k as p, l as g, m as i, f as E, a as D, _ as M, i as V, h as j, E as H, e as I } from "./LMDWO4NN-5r0-Qq-x.js";
|
|
4
|
+
import { useRef as P, useState as B, useEffect as C } from "react";
|
|
5
|
+
var _ = "button", b = v(
|
|
6
|
+
function(t) {
|
|
7
|
+
const s = P(null), e = w(s, _), [a, o] = B(
|
|
8
|
+
() => !!e && f({ tagName: e, type: t.type })
|
|
9
|
+
);
|
|
10
|
+
return C(() => {
|
|
11
|
+
s.current && o(f(s.current));
|
|
12
|
+
}, []), t = p(i({
|
|
13
|
+
role: !a && e !== "a" ? "button" : void 0
|
|
14
|
+
}, t), {
|
|
15
|
+
ref: g(s, t.ref)
|
|
16
|
+
}), t = h(t), t;
|
|
17
|
+
}
|
|
18
|
+
), K = E(function(t) {
|
|
19
|
+
const s = b(t);
|
|
20
|
+
return D(_, s);
|
|
21
|
+
}), $ = "button", q = Symbol("disclosure"), z = v(
|
|
22
|
+
function(t) {
|
|
23
|
+
var s = t, { store: e, toggleOnClick: a = !0 } = s, o = M(s, ["store", "toggleOnClick"]);
|
|
24
|
+
const k = T();
|
|
25
|
+
e = e || k, V(
|
|
26
|
+
e,
|
|
27
|
+
process.env.NODE_ENV !== "production" && "Disclosure must receive a `store` prop or be wrapped in a DisclosureProvider component."
|
|
28
|
+
);
|
|
29
|
+
const l = P(null), [N, x] = B(!1), n = e.useState("disclosureElement"), c = e.useState("open");
|
|
30
|
+
C(() => {
|
|
31
|
+
let r = n === l.current;
|
|
32
|
+
n != null && n.isConnected || (e == null || e.setDisclosureElement(l.current), r = !0), x(c && r);
|
|
33
|
+
}, [n, e, c]);
|
|
34
|
+
const d = o.onClick, S = j(a), [y, O] = H(o, q, !0), R = I((r) => {
|
|
35
|
+
d == null || d(r), !r.defaultPrevented && (y || S(r) && (e == null || e.setDisclosureElement(r.currentTarget), e == null || e.toggle()));
|
|
36
|
+
}), m = e.useState("contentElement");
|
|
37
|
+
return o = p(i(i({
|
|
38
|
+
"aria-expanded": N,
|
|
39
|
+
"aria-controls": m == null ? void 0 : m.id
|
|
40
|
+
}, O), o), {
|
|
41
|
+
ref: g(l, o.ref),
|
|
42
|
+
onClick: R
|
|
43
|
+
}), o = b(o), o;
|
|
44
|
+
}
|
|
45
|
+
), L = E(function(t) {
|
|
46
|
+
const s = z(t);
|
|
47
|
+
return D($, s);
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
K as B,
|
|
51
|
+
L as D,
|
|
52
|
+
z as a,
|
|
53
|
+
b as u
|
|
54
|
+
};
|