@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,15 +1,15 @@
|
|
|
1
1
|
import { createContext as ze, useRef as q, useContext as Ye, useState as Q, useEffect as C, useCallback as $e, useMemo as Ot, isValidElement as Ft } from "react";
|
|
2
|
-
import { c as ue,
|
|
3
|
-
import { c as He, d as et, r as Nt, e as Vt, F as Ht, i as Lt, g as It, j as kt, k as ye, u as Bt, l as qt } from "./PFRGBC2K-
|
|
2
|
+
import { c as ue, k as x, m as y, f as K, a as ne, _ as Me, l as ct, b as N, aj as Qe, C as F, j as ee, Z as be, Y as Xe, $ as re, K as W, W as Dt, e as Ce, ah as At, a7 as lt, ad as Tt, ak as Rt, ab as Ne, a1 as ft, q as $t, g as dt, B as Ct, h as Ve, G as Mt, z as _t, i as pt } from "./LMDWO4NN-5r0-Qq-x.js";
|
|
3
|
+
import { c as He, d as et, r as Nt, e as Vt, F as Ht, i as Lt, g as It, j as kt, k as ye, u as Bt, l as qt } from "./PFRGBC2K-a0iGk9xp.js";
|
|
4
4
|
import { r as Be } from "./index-Cgx3BqdJ.js";
|
|
5
5
|
import { jsx as E, jsxs as Te, Fragment as Re } from "react/jsx-runtime";
|
|
6
|
-
import { a as te, d as
|
|
7
|
-
import { u as vt, i as
|
|
8
|
-
import { u as zt } from "./WYCIER3C-
|
|
9
|
-
import {
|
|
10
|
-
import { e as Ke, D as Xt, d as Kt, f as Ut } from "./RS7LB2H4-
|
|
11
|
-
import { b as mt, a as Gt } from "./MTZPJQMC-
|
|
12
|
-
import { a as
|
|
6
|
+
import { a as te, d as Wt } from "./YV4JVR4I-BqDRuYuU.js";
|
|
7
|
+
import { u as vt, i as jt } from "./KFH4SEIX-CEb2cs5b.js";
|
|
8
|
+
import { u as zt } from "./WYCIER3C-eiMqR6-L.js";
|
|
9
|
+
import { a as Yt } from "./BM6PGYQY-CCtFEKyb.js";
|
|
10
|
+
import { e as Ke, D as Xt, d as Kt, f as Ut } from "./RS7LB2H4-C2VEpoD3.js";
|
|
11
|
+
import { b as mt, a as Gt } from "./MTZPJQMC-CeWFa7M2.js";
|
|
12
|
+
import { a as Zt, c as Jt, o as Qt, f as er, s as tr, b as rr, d as nr, l as or } from "./floating-ui.dom-2MezWvgs.js";
|
|
13
13
|
var tt = ze(null), sr = "span", gt = ue(
|
|
14
14
|
function(t) {
|
|
15
15
|
return t = x(y({}, t), {
|
|
@@ -57,7 +57,7 @@ function lr(e, t) {
|
|
|
57
57
|
function fr(e = "id") {
|
|
58
58
|
return `${e ? `${e}-` : ""}${Math.random().toString(36).slice(2, 8)}`;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function J(e) {
|
|
61
61
|
queueMicrotask(() => {
|
|
62
62
|
e == null || e.focus();
|
|
63
63
|
});
|
|
@@ -141,7 +141,7 @@ var ht = ue(function(t) {
|
|
|
141
141
|
"data-focus-trap": a.id,
|
|
142
142
|
className: "__focus-trap-inner-before",
|
|
143
143
|
onFocus: (g) => {
|
|
144
|
-
be(g, f) ?
|
|
144
|
+
be(g, f) ? J(He()) : J(I.current);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
),
|
|
@@ -153,7 +153,7 @@ var ht = ue(function(t) {
|
|
|
153
153
|
"data-focus-trap": a.id,
|
|
154
154
|
className: "__focus-trap-inner-after",
|
|
155
155
|
onFocus: (g) => {
|
|
156
|
-
be(g, f) ?
|
|
156
|
+
be(g, f) ? J(et()) : J(A.current);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
)
|
|
@@ -166,7 +166,7 @@ var ht = ue(function(t) {
|
|
|
166
166
|
"data-focus-trap": a.id,
|
|
167
167
|
className: "__focus-trap-outer-before",
|
|
168
168
|
onFocus: (g) => {
|
|
169
|
-
!(g.relatedTarget === A.current) && be(g, f) ?
|
|
169
|
+
!(g.relatedTarget === A.current) && be(g, f) ? J(M.current) : J(et());
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
),
|
|
@@ -181,7 +181,7 @@ var ht = ue(function(t) {
|
|
|
181
181
|
className: "__focus-trap-outer-after",
|
|
182
182
|
onFocus: (g) => {
|
|
183
183
|
if (be(g, f))
|
|
184
|
-
|
|
184
|
+
J(_.current);
|
|
185
185
|
else {
|
|
186
186
|
const p = He();
|
|
187
187
|
if (p === M.current) {
|
|
@@ -191,7 +191,7 @@ var ht = ue(function(t) {
|
|
|
191
191
|
});
|
|
192
192
|
return;
|
|
193
193
|
}
|
|
194
|
-
|
|
194
|
+
J(p);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
}
|
|
@@ -311,11 +311,11 @@ function gr(e, t, n) {
|
|
|
311
311
|
};
|
|
312
312
|
}
|
|
313
313
|
var hr = ["SCRIPT", "STYLE"];
|
|
314
|
-
function
|
|
314
|
+
function We(e) {
|
|
315
315
|
return `__ariakit-dialog-snapshot-${e}`;
|
|
316
316
|
}
|
|
317
317
|
function br(e, t) {
|
|
318
|
-
const n = F(t), r =
|
|
318
|
+
const n = F(t), r = We(e);
|
|
319
319
|
if (!n.body[r]) return !0;
|
|
320
320
|
do {
|
|
321
321
|
if (t === n.body) return !1;
|
|
@@ -326,7 +326,7 @@ function br(e, t) {
|
|
|
326
326
|
}
|
|
327
327
|
function yr(e, t, n) {
|
|
328
328
|
return hr.includes(t.tagName) || !br(e, t) ? !1 : !n.some(
|
|
329
|
-
(r) => r &&
|
|
329
|
+
(r) => r && W(t, r)
|
|
330
330
|
);
|
|
331
331
|
}
|
|
332
332
|
function Ge(e, t, n, r) {
|
|
@@ -344,8 +344,8 @@ function Ge(e, t, n, r) {
|
|
|
344
344
|
function Er(e, t) {
|
|
345
345
|
const { body: n } = F(t[0]), r = [];
|
|
346
346
|
return Ge(e, t, (s) => {
|
|
347
|
-
r.push(ie(s,
|
|
348
|
-
}), re(ie(n,
|
|
347
|
+
r.push(ie(s, We(e), !0));
|
|
348
|
+
}), re(ie(n, We(e), !0), () => {
|
|
349
349
|
for (const s of r)
|
|
350
350
|
s();
|
|
351
351
|
});
|
|
@@ -358,7 +358,7 @@ function yt(e, ...t) {
|
|
|
358
358
|
function pe(e = "", t = !1) {
|
|
359
359
|
return `__ariakit-dialog-${t ? "ancestor" : "outside"}${e ? `-${e}` : ""}`;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function wr(e, t = "") {
|
|
362
362
|
return re(
|
|
363
363
|
ie(e, pe(), !0),
|
|
364
364
|
ie(e, pe(t), !0)
|
|
@@ -370,7 +370,7 @@ function Et(e, t = "") {
|
|
|
370
370
|
ie(e, pe(t, !0), !0)
|
|
371
371
|
);
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Ze(e, t) {
|
|
374
374
|
const n = pe(t, !0);
|
|
375
375
|
if (e[n]) return !0;
|
|
376
376
|
const r = pe(t);
|
|
@@ -386,7 +386,7 @@ function nt(e, t) {
|
|
|
386
386
|
e,
|
|
387
387
|
t,
|
|
388
388
|
(s) => {
|
|
389
|
-
yt(s, ...r) || n.unshift(
|
|
389
|
+
yt(s, ...r) || n.unshift(wr(s, e));
|
|
390
390
|
},
|
|
391
391
|
(s, u) => {
|
|
392
392
|
u.hasAttribute("data-dialog") && u.id !== e || n.unshift(Et(s, e));
|
|
@@ -396,17 +396,17 @@ function nt(e, t) {
|
|
|
396
396
|
s();
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
|
-
function
|
|
400
|
-
return e.tagName === "HTML" ? !0 :
|
|
399
|
+
function Pr(e) {
|
|
400
|
+
return e.tagName === "HTML" ? !0 : W(F(e).body, e);
|
|
401
401
|
}
|
|
402
402
|
function xr(e, t) {
|
|
403
403
|
if (!e) return !1;
|
|
404
|
-
if (
|
|
404
|
+
if (W(e, t)) return !0;
|
|
405
405
|
const n = t.getAttribute("aria-activedescendant");
|
|
406
406
|
if (n) {
|
|
407
407
|
const r = F(e).getElementById(n);
|
|
408
408
|
if (r)
|
|
409
|
-
return
|
|
409
|
+
return W(e, r);
|
|
410
410
|
}
|
|
411
411
|
return !1;
|
|
412
412
|
}
|
|
@@ -433,7 +433,7 @@ function Ie({
|
|
|
433
433
|
return a.addEventListener("focusin", m, !0), () => a.removeEventListener("focusin", m, !0);
|
|
434
434
|
}, [e, u, o]), C(() => u ? Xe(t, (m) => {
|
|
435
435
|
const { contentElement: b, disclosureElement: D } = e.getState(), f = m.target;
|
|
436
|
-
!b || !f || !
|
|
436
|
+
!b || !f || !Pr(f) || W(b, f) || xr(D, f) || f.hasAttribute("data-focus-trap") || Sr(m, b) || i.current && !Ze(f, b.id) || Lt(f) || s(m);
|
|
437
437
|
}, r) : void 0, [u, r]);
|
|
438
438
|
}
|
|
439
439
|
function ke(e, t) {
|
|
@@ -445,7 +445,7 @@ function Or(e, t, n) {
|
|
|
445
445
|
type: "click",
|
|
446
446
|
listener: (u) => {
|
|
447
447
|
const { contentElement: i } = e.getState(), a = o.current;
|
|
448
|
-
a && Dt(a) &&
|
|
448
|
+
a && Dt(a) && Ze(a, i == null ? void 0 : i.id) && ke(t, u) && e.hide();
|
|
449
449
|
}
|
|
450
450
|
})), Ie(x(y({}, s), {
|
|
451
451
|
type: "focusin",
|
|
@@ -471,7 +471,7 @@ function Fr(e) {
|
|
|
471
471
|
},
|
|
472
472
|
[t]
|
|
473
473
|
);
|
|
474
|
-
N(() =>
|
|
474
|
+
N(() => Wt(e, ["open", "contentElement"], (i) => {
|
|
475
475
|
var a;
|
|
476
476
|
if (i.open && i.contentElement)
|
|
477
477
|
return (a = t.add) == null ? void 0 : a.call(t, e);
|
|
@@ -547,18 +547,18 @@ function Rr(e, ...t) {
|
|
|
547
547
|
const n = e.getAttribute("data-focus-trap");
|
|
548
548
|
return n == null ? !1 : t.length ? n === "" ? !1 : t.some((r) => n === r) : !0;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function wt() {
|
|
551
551
|
return "inert" in HTMLElement.prototype;
|
|
552
552
|
}
|
|
553
553
|
function $r(e) {
|
|
554
554
|
return Ue(e, "aria-hidden", "true");
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function Pt(e, t) {
|
|
557
557
|
if (!("style" in e)) return Ne;
|
|
558
|
-
if (
|
|
558
|
+
if (wt())
|
|
559
559
|
return ie(e, "inert", !0);
|
|
560
560
|
const r = It(e, !0).map((o) => {
|
|
561
|
-
if (t != null && t.some((u) => u &&
|
|
561
|
+
if (t != null && t.some((u) => u && W(u, o))) return Ne;
|
|
562
562
|
const s = Ee(o, "focus", () => (o.focus = Ne, () => {
|
|
563
563
|
delete o.focus;
|
|
564
564
|
}));
|
|
@@ -580,10 +580,10 @@ function Cr(e, t) {
|
|
|
580
580
|
e,
|
|
581
581
|
t,
|
|
582
582
|
(s) => {
|
|
583
|
-
yt(s, ...r) || Rr(s, ...r) || n.unshift(
|
|
583
|
+
yt(s, ...r) || Rr(s, ...r) || n.unshift(Pt(s, t));
|
|
584
584
|
},
|
|
585
585
|
(s) => {
|
|
586
|
-
s.hasAttribute("role") && (t.some((u) => u &&
|
|
586
|
+
s.hasAttribute("role") && (t.some((u) => u && W(u, s)) || n.unshift(Ue(s, "role", "none")));
|
|
587
587
|
}
|
|
588
588
|
), () => {
|
|
589
589
|
for (const s of n)
|
|
@@ -624,14 +624,14 @@ ue(
|
|
|
624
624
|
return t;
|
|
625
625
|
}
|
|
626
626
|
);
|
|
627
|
-
var
|
|
627
|
+
var je = K(
|
|
628
628
|
// @ts-expect-error
|
|
629
629
|
function(t) {
|
|
630
630
|
return ne(Mr, t);
|
|
631
631
|
}
|
|
632
632
|
);
|
|
633
633
|
Object.assign(
|
|
634
|
-
|
|
634
|
+
je,
|
|
635
635
|
_r.reduce((e, t) => (e[t] = K(function(r) {
|
|
636
636
|
return ne(t, r);
|
|
637
637
|
}), e), {})
|
|
@@ -670,14 +670,14 @@ function Nr({
|
|
|
670
670
|
});
|
|
671
671
|
if (!t) return null;
|
|
672
672
|
if (Ft(t))
|
|
673
|
-
return /* @__PURE__ */ E(
|
|
673
|
+
return /* @__PURE__ */ E(je, x(y({}, i), { render: t }));
|
|
674
674
|
const a = typeof t != "boolean" ? t : "div";
|
|
675
|
-
return /* @__PURE__ */ E(
|
|
675
|
+
return /* @__PURE__ */ E(je, x(y({}, i), { render: /* @__PURE__ */ E(a, {}) }));
|
|
676
676
|
}
|
|
677
677
|
var Vr = "div", st = _t();
|
|
678
678
|
function Hr(e) {
|
|
679
679
|
const t = dt();
|
|
680
|
-
return !t || e &&
|
|
680
|
+
return !t || e && W(e, t) ? !1 : !!ye(t);
|
|
681
681
|
}
|
|
682
682
|
function it(e, t = !1) {
|
|
683
683
|
if (!e) return null;
|
|
@@ -729,30 +729,30 @@ var xt = ue(function(t) {
|
|
|
729
729
|
if (c) return;
|
|
730
730
|
const v = g.current;
|
|
731
731
|
if (!v) return;
|
|
732
|
-
const
|
|
733
|
-
s && v.addEventListener("close", s, { once: !0 }), v.dispatchEvent(
|
|
732
|
+
const P = new Event("close", { bubbles: !1, cancelable: !0 });
|
|
733
|
+
s && v.addEventListener("close", s, { once: !0 }), v.dispatchEvent(P), P.defaultPrevented && p.setOpen(!0);
|
|
734
734
|
}
|
|
735
735
|
}), { portalRef: U, domReady: S } = ft(a, l.portalRef), O = l.preserveTabOrder, G = te(
|
|
736
736
|
p,
|
|
737
737
|
(c) => O && !i && c.mounted
|
|
738
|
-
), T = $t(l.id),
|
|
739
|
-
Tr(k, T, V && !
|
|
740
|
-
const { wrapElement: ae, nestedDialogs:
|
|
738
|
+
), T = $t(l.id), w = te(p, "open"), R = te(p, "mounted"), k = te(p, "contentElement"), we = jt(R, l.hidden, l.alwaysVisible);
|
|
739
|
+
Tr(k, T, V && !we), Or(p, D, S);
|
|
740
|
+
const { wrapElement: ae, nestedDialogs: Pe } = Fr(p);
|
|
741
741
|
l = ee(l, ae, [ae]), N(() => {
|
|
742
|
-
if (!
|
|
742
|
+
if (!w) return;
|
|
743
743
|
const c = g.current, v = dt(c, !0);
|
|
744
|
-
v && v.tagName !== "BODY" && (c &&
|
|
745
|
-
}, [p,
|
|
744
|
+
v && v.tagName !== "BODY" && (c && W(c, v) || p.setDisclosureElement(v));
|
|
745
|
+
}, [p, w]), st && C(() => {
|
|
746
746
|
if (!R) return;
|
|
747
747
|
const { disclosureElement: c } = p.getState();
|
|
748
748
|
if (!c || !Ct(c)) return;
|
|
749
749
|
const v = () => {
|
|
750
|
-
let
|
|
750
|
+
let P = !1;
|
|
751
751
|
const h = () => {
|
|
752
|
-
|
|
752
|
+
P = !0;
|
|
753
753
|
}, $ = { capture: !0, once: !0 };
|
|
754
754
|
c.addEventListener("focusin", h, $), Mt(c, "mouseup", () => {
|
|
755
|
-
c.removeEventListener("focusin", h, !0), !
|
|
755
|
+
c.removeEventListener("focusin", h, !0), !P && qt(c);
|
|
756
756
|
});
|
|
757
757
|
};
|
|
758
758
|
return c.addEventListener("mousedown", v), () => {
|
|
@@ -762,13 +762,13 @@ var xt = ue(function(t) {
|
|
|
762
762
|
if (!R || !S) return;
|
|
763
763
|
const c = g.current;
|
|
764
764
|
if (!c) return;
|
|
765
|
-
const v = lt(c),
|
|
765
|
+
const v = lt(c), P = v.visualViewport || v, h = () => {
|
|
766
766
|
var $, Y;
|
|
767
767
|
const he = (Y = ($ = v.visualViewport) == null ? void 0 : $.height) != null ? Y : v.innerHeight;
|
|
768
768
|
c.style.setProperty("--dialog-viewport-height", `${he}px`);
|
|
769
769
|
};
|
|
770
|
-
return h(),
|
|
771
|
-
|
|
770
|
+
return h(), P.addEventListener("resize", h), () => {
|
|
771
|
+
P.removeEventListener("resize", h);
|
|
772
772
|
};
|
|
773
773
|
}, [R, S]), C(() => {
|
|
774
774
|
if (!i || !R || !S) return;
|
|
@@ -776,24 +776,24 @@ var xt = ue(function(t) {
|
|
|
776
776
|
if (!(!c || c.querySelector("[data-dialog-dismiss]")))
|
|
777
777
|
return vr(c, p.hide);
|
|
778
778
|
}, [p, i, R, S]), N(() => {
|
|
779
|
-
if (!
|
|
779
|
+
if (!wt() || w || !R || !S) return;
|
|
780
780
|
const c = g.current;
|
|
781
781
|
if (c)
|
|
782
|
-
return
|
|
783
|
-
}, [
|
|
784
|
-
const
|
|
782
|
+
return Pt(c);
|
|
783
|
+
}, [w, R, S]);
|
|
784
|
+
const Z = w && S;
|
|
785
785
|
N(() => {
|
|
786
|
-
if (!T || !
|
|
786
|
+
if (!T || !Z) return;
|
|
787
787
|
const c = g.current;
|
|
788
788
|
return Er(T, [c]);
|
|
789
|
-
}, [T,
|
|
789
|
+
}, [T, Z, A]);
|
|
790
790
|
const ve = Ce(f);
|
|
791
791
|
N(() => {
|
|
792
|
-
if (!T || !
|
|
793
|
-
const { disclosureElement: c } = p.getState(), v = g.current,
|
|
792
|
+
if (!T || !Z) return;
|
|
793
|
+
const { disclosureElement: c } = p.getState(), v = g.current, P = ve() || [], h = [
|
|
794
794
|
v,
|
|
795
|
-
...
|
|
796
|
-
...
|
|
795
|
+
...P,
|
|
796
|
+
...Pe.map(($) => $.getState().contentElement)
|
|
797
797
|
];
|
|
798
798
|
return i ? re(
|
|
799
799
|
nt(T, h),
|
|
@@ -802,15 +802,15 @@ var xt = ue(function(t) {
|
|
|
802
802
|
}, [
|
|
803
803
|
T,
|
|
804
804
|
p,
|
|
805
|
-
|
|
805
|
+
Z,
|
|
806
806
|
ve,
|
|
807
|
-
|
|
807
|
+
Pe,
|
|
808
808
|
i,
|
|
809
809
|
A
|
|
810
810
|
]);
|
|
811
811
|
const me = !!H, ge = Ve(H), [xe, B] = Q(!1);
|
|
812
812
|
C(() => {
|
|
813
|
-
if (!
|
|
813
|
+
if (!w || !me || !S || !(k != null && k.isConnected)) return;
|
|
814
814
|
const c = it(I, !0) || // If no initial focus is specified, we try to focus the first element
|
|
815
815
|
// with the autofocus attribute. If it's an Ariakit component, the
|
|
816
816
|
// Focusable component will consume the autoFocus prop and add the
|
|
@@ -827,7 +827,7 @@ var xt = ue(function(t) {
|
|
|
827
827
|
c.focus(), st && v && c.scrollIntoView({ block: "nearest", inline: "nearest" });
|
|
828
828
|
}));
|
|
829
829
|
}, [
|
|
830
|
-
|
|
830
|
+
w,
|
|
831
831
|
me,
|
|
832
832
|
S,
|
|
833
833
|
k,
|
|
@@ -836,16 +836,16 @@ var xt = ue(function(t) {
|
|
|
836
836
|
G,
|
|
837
837
|
ge
|
|
838
838
|
]);
|
|
839
|
-
const
|
|
839
|
+
const j = !!L, _e = Ve(L), [ce, X] = Q(!1);
|
|
840
840
|
C(() => {
|
|
841
|
-
if (
|
|
841
|
+
if (w)
|
|
842
842
|
return X(!0), () => X(!1);
|
|
843
|
-
}, [
|
|
843
|
+
}, [w]);
|
|
844
844
|
const oe = $e(
|
|
845
845
|
(c, v = !0) => {
|
|
846
|
-
const { disclosureElement:
|
|
846
|
+
const { disclosureElement: P } = p.getState();
|
|
847
847
|
if (Hr(c)) return;
|
|
848
|
-
let h = it(M) ||
|
|
848
|
+
let h = it(M) || P;
|
|
849
849
|
if (h != null && h.id) {
|
|
850
850
|
const Y = F(h), he = `[aria-activedescendant="${h.id}"]`, De = Y.querySelector(he);
|
|
851
851
|
De && (h = De);
|
|
@@ -853,8 +853,8 @@ var xt = ue(function(t) {
|
|
|
853
853
|
if (h && !ye(h)) {
|
|
854
854
|
const Y = h.closest("[data-dialog]");
|
|
855
855
|
if (Y != null && Y.id) {
|
|
856
|
-
const he = F(Y), De = `[aria-controls~="${Y.id}"]`,
|
|
857
|
-
|
|
856
|
+
const he = F(Y), De = `[aria-controls~="${Y.id}"]`, Je = he.querySelector(De);
|
|
857
|
+
Je && (h = Je);
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
const $ = h && ye(h);
|
|
@@ -867,11 +867,11 @@ var xt = ue(function(t) {
|
|
|
867
867
|
[p, M, _e]
|
|
868
868
|
), z = q(!1);
|
|
869
869
|
N(() => {
|
|
870
|
-
if (
|
|
870
|
+
if (w || !ce || !j) return;
|
|
871
871
|
const c = g.current;
|
|
872
872
|
z.current = !0, oe(c);
|
|
873
|
-
}, [
|
|
874
|
-
if (!ce || !
|
|
873
|
+
}, [w, ce, S, j, oe]), C(() => {
|
|
874
|
+
if (!ce || !j) return;
|
|
875
875
|
const c = g.current;
|
|
876
876
|
return () => {
|
|
877
877
|
if (z.current) {
|
|
@@ -880,16 +880,16 @@ var xt = ue(function(t) {
|
|
|
880
880
|
}
|
|
881
881
|
oe(c);
|
|
882
882
|
};
|
|
883
|
-
}, [ce,
|
|
883
|
+
}, [ce, j, oe]);
|
|
884
884
|
const Se = Ve(b);
|
|
885
885
|
C(() => !S || !R ? void 0 : Xe("keydown", (v) => {
|
|
886
886
|
if (v.key !== "Escape" || v.defaultPrevented) return;
|
|
887
|
-
const
|
|
888
|
-
if (!
|
|
887
|
+
const P = g.current;
|
|
888
|
+
if (!P || Ze(P)) return;
|
|
889
889
|
const h = v.target;
|
|
890
890
|
if (!h) return;
|
|
891
891
|
const { disclosureElement: $ } = p.getState();
|
|
892
|
-
!!(h.tagName === "BODY" ||
|
|
892
|
+
!!(h.tagName === "BODY" || W(P, h) || !$ || W($, h)) && Se(v) && p.hide();
|
|
893
893
|
}, !0), [p, S, R, Se]), l = ee(
|
|
894
894
|
l,
|
|
895
895
|
(c) => /* @__PURE__ */ E(dr, { level: i ? 1 : void 0, children: c }),
|
|
@@ -993,7 +993,7 @@ function qr(e, t) {
|
|
|
993
993
|
};
|
|
994
994
|
});
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function Wr(e) {
|
|
997
997
|
if (e.flip === !1) return;
|
|
998
998
|
const t = typeof e.flip == "string" ? e.flip.split(" ") : void 0;
|
|
999
999
|
return pt(
|
|
@@ -1004,7 +1004,7 @@ function jr(e) {
|
|
|
1004
1004
|
fallbackPlacements: t
|
|
1005
1005
|
});
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1007
|
+
function jr(e) {
|
|
1008
1008
|
if (!(!e.slide && !e.overlap))
|
|
1009
1009
|
return tr({
|
|
1010
1010
|
mainAxis: e.slide,
|
|
@@ -1084,27 +1084,27 @@ var Xr = ue(
|
|
|
1084
1084
|
r,
|
|
1085
1085
|
process.env.NODE_ENV !== "production" && "Popover must receive a `store` prop or be wrapped in a PopoverProvider component."
|
|
1086
1086
|
);
|
|
1087
|
-
const p = r.useState("arrowElement"), U = r.useState("anchorElement"), S = r.useState("disclosureElement"), O = r.useState("popoverElement"), G = r.useState("contentElement"), T = r.useState("placement"),
|
|
1087
|
+
const p = r.useState("arrowElement"), U = r.useState("anchorElement"), S = r.useState("disclosureElement"), O = r.useState("popoverElement"), G = r.useState("contentElement"), T = r.useState("placement"), w = r.useState("mounted"), R = r.useState("rendered"), k = q(null), [we, ae] = Q(!1), { portalRef: Pe, domReady: Z } = ft(s, d.portalRef), ve = Ce(A), me = Ce(l), ge = !!l;
|
|
1088
1088
|
N(() => {
|
|
1089
1089
|
if (!(O != null && O.isConnected)) return;
|
|
1090
1090
|
O.style.setProperty(
|
|
1091
1091
|
"--popover-overflow-padding",
|
|
1092
1092
|
`${_}px`
|
|
1093
1093
|
);
|
|
1094
|
-
const B = kr(U, ve),
|
|
1095
|
-
if (!
|
|
1094
|
+
const B = kr(U, ve), j = async () => {
|
|
1095
|
+
if (!w) return;
|
|
1096
1096
|
p || (k.current = k.current || document.createElement("div"));
|
|
1097
1097
|
const X = p || k.current, oe = [
|
|
1098
1098
|
qr(X, { gutter: I, shift: D }),
|
|
1099
|
-
|
|
1100
|
-
|
|
1099
|
+
Wr({ flip: b, overflowPadding: _ }),
|
|
1100
|
+
jr({ slide: f, overlap: V, overflowPadding: _ }),
|
|
1101
1101
|
Yr(X, { arrowPadding: M }),
|
|
1102
1102
|
zr({
|
|
1103
1103
|
sameWidth: H,
|
|
1104
1104
|
fitViewport: L,
|
|
1105
1105
|
overflowPadding: _
|
|
1106
1106
|
})
|
|
1107
|
-
], z = await
|
|
1107
|
+
], z = await Jt(B, O, {
|
|
1108
1108
|
placement: T,
|
|
1109
1109
|
strategy: m ? "fixed" : "absolute",
|
|
1110
1110
|
middleware: oe
|
|
@@ -1131,8 +1131,8 @@ var Xr = ue(
|
|
|
1131
1131
|
[Fe]: "100%"
|
|
1132
1132
|
});
|
|
1133
1133
|
}
|
|
1134
|
-
}, ce =
|
|
1135
|
-
ge ? (await me({ updatePosition:
|
|
1134
|
+
}, ce = Zt(B, O, async () => {
|
|
1135
|
+
ge ? (await me({ updatePosition: j }), ae(!0)) : await j();
|
|
1136
1136
|
}, {
|
|
1137
1137
|
// JSDOM doesn't support ResizeObserver
|
|
1138
1138
|
elementResize: typeof ResizeObserver == "function"
|
|
@@ -1148,8 +1148,8 @@ var Xr = ue(
|
|
|
1148
1148
|
U,
|
|
1149
1149
|
O,
|
|
1150
1150
|
T,
|
|
1151
|
-
|
|
1152
|
-
|
|
1151
|
+
w,
|
|
1152
|
+
Z,
|
|
1153
1153
|
m,
|
|
1154
1154
|
b,
|
|
1155
1155
|
D,
|
|
@@ -1164,16 +1164,16 @@ var Xr = ue(
|
|
|
1164
1164
|
ge,
|
|
1165
1165
|
me
|
|
1166
1166
|
]), N(() => {
|
|
1167
|
-
if (!
|
|
1167
|
+
if (!w || !Z || !(O != null && O.isConnected) || !(G != null && G.isConnected)) return;
|
|
1168
1168
|
const B = () => {
|
|
1169
1169
|
O.style.zIndex = getComputedStyle(G).zIndex;
|
|
1170
1170
|
};
|
|
1171
1171
|
B();
|
|
1172
|
-
let
|
|
1173
|
-
|
|
1172
|
+
let j = requestAnimationFrame(() => {
|
|
1173
|
+
j = requestAnimationFrame(B);
|
|
1174
1174
|
});
|
|
1175
|
-
return () => cancelAnimationFrame(
|
|
1176
|
-
}, [
|
|
1175
|
+
return () => cancelAnimationFrame(j);
|
|
1176
|
+
}, [w, Z, O, G]);
|
|
1177
1177
|
const xe = m ? "fixed" : "absolute";
|
|
1178
1178
|
return d = ee(
|
|
1179
1179
|
d,
|
|
@@ -1201,7 +1201,7 @@ var Xr = ue(
|
|
|
1201
1201
|
// we can wait for the popover to be positioned before other components
|
|
1202
1202
|
// move focus into it. For example, this attribute is observed by the
|
|
1203
1203
|
// Combobox component with the autoSelect behavior.
|
|
1204
|
-
"data-placing": !
|
|
1204
|
+
"data-placing": !we || void 0
|
|
1205
1205
|
}, d), {
|
|
1206
1206
|
style: y({
|
|
1207
1207
|
position: "relative"
|
|
@@ -1212,9 +1212,9 @@ var Xr = ue(
|
|
|
1212
1212
|
portal: s,
|
|
1213
1213
|
preserveTabOrder: u,
|
|
1214
1214
|
preserveTabOrderAnchor: S || U,
|
|
1215
|
-
autoFocusOnShow:
|
|
1215
|
+
autoFocusOnShow: we && i
|
|
1216
1216
|
}, d), {
|
|
1217
|
-
portalRef:
|
|
1217
|
+
portalRef: Pe
|
|
1218
1218
|
})), d;
|
|
1219
1219
|
}
|
|
1220
1220
|
), ln = St(
|
|
@@ -1228,10 +1228,10 @@ export {
|
|
|
1228
1228
|
cn as D,
|
|
1229
1229
|
Ae as F,
|
|
1230
1230
|
rt as H,
|
|
1231
|
-
|
|
1232
|
-
|
|
1231
|
+
an as P,
|
|
1232
|
+
je as R,
|
|
1233
1233
|
un as V,
|
|
1234
|
-
|
|
1234
|
+
ln as a,
|
|
1235
1235
|
gt as b,
|
|
1236
1236
|
St as c,
|
|
1237
1237
|
dr as d,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as d, b as v } from "./P7GR5CS5-
|
|
2
|
-
import { f as
|
|
1
|
+
import { a as d, b as v } from "./P7GR5CS5-DFBp00bC.js";
|
|
2
|
+
import { f as C, c as f, a as l, _ as w, i as R, q as _, j as b, m as E, r as x } from "./LMDWO4NN-5r0-Qq-x.js";
|
|
3
3
|
import { useMemo as S } from "react";
|
|
4
4
|
import { jsx as V } from "react/jsx-runtime";
|
|
5
|
-
var
|
|
5
|
+
var j = "div", z = f(
|
|
6
6
|
function(t) {
|
|
7
7
|
var o = t, {
|
|
8
8
|
store: s,
|
|
@@ -30,11 +30,11 @@ var z = "div", N = C(
|
|
|
30
30
|
[p]
|
|
31
31
|
), e = E({ id: a }, e), x(e);
|
|
32
32
|
}
|
|
33
|
-
), g =
|
|
34
|
-
const o =
|
|
35
|
-
return
|
|
33
|
+
), g = C(function(t) {
|
|
34
|
+
const o = z(t);
|
|
35
|
+
return l(j, o);
|
|
36
36
|
});
|
|
37
37
|
export {
|
|
38
38
|
g as C,
|
|
39
|
-
|
|
39
|
+
z as u
|
|
40
40
|
};
|