@wrdagency/blockout 1.0.35 → 1.0.37
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/{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 +266 -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 +5306 -0
- package/dist/components/dashboard/types.d.ts +13 -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/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 +133 -132
- 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/array.d.ts +1 -0
- package/dist/utils/array.js +8 -7
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +29 -21
- package/dist/utils/math.d.ts +5 -0
- package/dist/utils/math.js +11 -0
- package/dist/utils/string.d.ts +1 -0
- package/dist/utils/string.js +13 -6
- 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
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { u as M, a as $ } from "./YORGHBM4-DycYf9gS.js";
|
|
2
|
+
import { f as v, c as x, a as O, _ as I, i as V, V as q, m as a, s as W, k as C, h as b, e as g, M as z, N as J, p as Q, j as U } from "./LMDWO4NN-5r0-Qq-x.js";
|
|
3
|
+
import { u as R, C as X, a as Y, b as Z } from "./S43UC3DV-0FmlYtUL.js";
|
|
4
|
+
import { u as ee } from "./UQQRIHDV-DtNzoFEE.js";
|
|
5
|
+
import { u as oe } from "./6VRAQV3D-Dzur8C7A.js";
|
|
6
|
+
import { u as te } from "./YV4JVR4I-BqDRuYuU.js";
|
|
7
|
+
import { h as re } from "./PFRGBC2K-a0iGk9xp.js";
|
|
8
|
+
import { useCallback as ne, useContext as se } from "react";
|
|
9
|
+
import { jsx as h } from "react/jsx-runtime";
|
|
10
|
+
var le = "div", ue = x(function(t) {
|
|
11
|
+
return t = M(t), t;
|
|
12
|
+
}), Se = v(function(t) {
|
|
13
|
+
const u = ue(t);
|
|
14
|
+
return O(le, u);
|
|
15
|
+
}), ae = "div", ie = x(
|
|
16
|
+
function(t) {
|
|
17
|
+
var u = t, { store: e } = u, r = I(u, ["store"]);
|
|
18
|
+
const i = R();
|
|
19
|
+
e = e || i, V(
|
|
20
|
+
e,
|
|
21
|
+
process.env.NODE_ENV !== "production" && "ComboboxRow must be wrapped in a ComboboxList or ComboboxPopover component"
|
|
22
|
+
);
|
|
23
|
+
const c = e.useState("contentElement");
|
|
24
|
+
return q(c) === "grid" && (r = a({ role: "rowgroup" }, r)), r = $(a({ store: e }, r)), r;
|
|
25
|
+
}
|
|
26
|
+
), Ee = v(function(t) {
|
|
27
|
+
const u = ie(t);
|
|
28
|
+
return O(ae, u);
|
|
29
|
+
}), ce = "div";
|
|
30
|
+
function me(l, t) {
|
|
31
|
+
if (t != null)
|
|
32
|
+
return l == null ? !1 : Array.isArray(l) ? l.includes(t) : l === t;
|
|
33
|
+
}
|
|
34
|
+
function pe(l) {
|
|
35
|
+
var t;
|
|
36
|
+
return (t = {
|
|
37
|
+
menu: "menuitem",
|
|
38
|
+
listbox: "option",
|
|
39
|
+
tree: "treeitem"
|
|
40
|
+
}[l]) != null ? t : "option";
|
|
41
|
+
}
|
|
42
|
+
var be = x(
|
|
43
|
+
function(t) {
|
|
44
|
+
var u = t, {
|
|
45
|
+
store: e,
|
|
46
|
+
value: r,
|
|
47
|
+
hideOnClick: i,
|
|
48
|
+
setValueOnClick: c,
|
|
49
|
+
selectValueOnClick: P = !0,
|
|
50
|
+
resetValueOnSelect: k,
|
|
51
|
+
focusOnHover: _ = !1,
|
|
52
|
+
moveOnKeyPress: w = !0,
|
|
53
|
+
getItem: d
|
|
54
|
+
} = u, s = I(u, [
|
|
55
|
+
"store",
|
|
56
|
+
"value",
|
|
57
|
+
"hideOnClick",
|
|
58
|
+
"setValueOnClick",
|
|
59
|
+
"selectValueOnClick",
|
|
60
|
+
"resetValueOnSelect",
|
|
61
|
+
"focusOnHover",
|
|
62
|
+
"moveOnKeyPress",
|
|
63
|
+
"getItem"
|
|
64
|
+
]), y;
|
|
65
|
+
const G = R();
|
|
66
|
+
e = e || G, V(
|
|
67
|
+
e,
|
|
68
|
+
process.env.NODE_ENV !== "production" && "ComboboxItem must be wrapped in a ComboboxList or ComboboxPopover component."
|
|
69
|
+
);
|
|
70
|
+
const { resetValueOnSelectState: N, multiSelectable: f, selected: m } = te(e, {
|
|
71
|
+
resetValueOnSelectState: "resetValueOnSelect",
|
|
72
|
+
multiSelectable(o) {
|
|
73
|
+
return Array.isArray(o.selectedValue);
|
|
74
|
+
},
|
|
75
|
+
selected(o) {
|
|
76
|
+
return me(o.selectedValue, r);
|
|
77
|
+
}
|
|
78
|
+
}), L = ne(
|
|
79
|
+
(o) => {
|
|
80
|
+
const n = C(a({}, o), { value: r });
|
|
81
|
+
return d ? d(n) : n;
|
|
82
|
+
},
|
|
83
|
+
[r, d]
|
|
84
|
+
);
|
|
85
|
+
c = c ?? !f, i = i ?? (r != null && !f);
|
|
86
|
+
const S = s.onClick, D = b(c), K = b(P), A = b(
|
|
87
|
+
(y = k ?? N) != null ? y : f
|
|
88
|
+
), T = b(i), j = g((o) => {
|
|
89
|
+
S == null || S(o), !o.defaultPrevented && (z(o) || J(o) || (r != null && (K(o) && (A(o) && (e == null || e.resetValue()), e == null || e.setSelectedValue((n) => Array.isArray(n) ? n.includes(r) ? n.filter((p) => p !== r) : [...n, r] : r)), D(o) && (e == null || e.setValue(r))), T(o) && (e == null || e.hide())));
|
|
90
|
+
}), E = s.onKeyDown, B = g((o) => {
|
|
91
|
+
if (E == null || E(o), o.defaultPrevented) return;
|
|
92
|
+
const n = e == null ? void 0 : e.getState().baseElement;
|
|
93
|
+
if (!n || re(n)) return;
|
|
94
|
+
(o.key.length === 1 || o.key === "Backspace" || o.key === "Delete") && (queueMicrotask(() => n.focus()), Q(n) && (e == null || e.setValue(n.value)));
|
|
95
|
+
});
|
|
96
|
+
f && m != null && (s = a({
|
|
97
|
+
"aria-selected": m
|
|
98
|
+
}, s)), s = U(
|
|
99
|
+
s,
|
|
100
|
+
(o) => /* @__PURE__ */ h(X.Provider, { value: r, children: /* @__PURE__ */ h(Y.Provider, { value: m ?? !1, children: o }) }),
|
|
101
|
+
[r, m]
|
|
102
|
+
);
|
|
103
|
+
const H = se(Z);
|
|
104
|
+
s = C(a({
|
|
105
|
+
role: pe(H),
|
|
106
|
+
children: r
|
|
107
|
+
}, s), {
|
|
108
|
+
onClick: j,
|
|
109
|
+
onKeyDown: B
|
|
110
|
+
});
|
|
111
|
+
const F = b(w);
|
|
112
|
+
return s = oe(C(a({
|
|
113
|
+
store: e
|
|
114
|
+
}, s), {
|
|
115
|
+
getItem: L,
|
|
116
|
+
// Dispatch a custom event on the combobox input when moving to an item
|
|
117
|
+
// with the keyboard so the Combobox component can enable inline
|
|
118
|
+
// autocompletion.
|
|
119
|
+
moveOnKeyPress: (o) => {
|
|
120
|
+
if (!F(o)) return !1;
|
|
121
|
+
const n = new Event("combobox-item-move"), p = e == null ? void 0 : e.getState().baseElement;
|
|
122
|
+
return p == null || p.dispatchEvent(n), !0;
|
|
123
|
+
}
|
|
124
|
+
})), s = ee(a({ store: e, focusOnHover: _ }, s)), s;
|
|
125
|
+
}
|
|
126
|
+
), ge = W(
|
|
127
|
+
v(function(t) {
|
|
128
|
+
const u = be(t);
|
|
129
|
+
return O(ce, u);
|
|
130
|
+
})
|
|
131
|
+
);
|
|
132
|
+
export {
|
|
133
|
+
ge as C,
|
|
134
|
+
Ee as a,
|
|
135
|
+
Se as b
|
|
136
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as A, D as z } from "./RS7LB2H4-
|
|
2
|
-
import { a as T } from "./YV4JVR4I-
|
|
3
|
-
import { c as B, _ as R, i as G, q as J, b as p,
|
|
1
|
+
import { u as A, D as z } from "./RS7LB2H4-C2VEpoD3.js";
|
|
2
|
+
import { a as T } from "./YV4JVR4I-BqDRuYuU.js";
|
|
3
|
+
import { c as B, _ as R, i as G, q as J, b as p, j as K, k as x, m as E, l as Q, r as X, f as V, a as Y } from "./LMDWO4NN-5r0-Qq-x.js";
|
|
4
4
|
import { useRef as Z, useState as $, useMemo as tt } from "react";
|
|
5
5
|
import { r as et } from "./index-Cgx3BqdJ.js";
|
|
6
6
|
import { jsx as g } from "react/jsx-runtime";
|
|
@@ -56,26 +56,26 @@ var at = B(function(e) {
|
|
|
56
56
|
if (typeof l == "number")
|
|
57
57
|
return h(l, f);
|
|
58
58
|
const {
|
|
59
|
-
transitionDuration:
|
|
60
|
-
animationDuration:
|
|
61
|
-
transitionDelay:
|
|
62
|
-
animationDelay:
|
|
59
|
+
transitionDuration: w,
|
|
60
|
+
animationDuration: F,
|
|
61
|
+
transitionDelay: H,
|
|
62
|
+
animationDelay: I
|
|
63
63
|
} = getComputedStyle(m), {
|
|
64
|
-
transitionDuration:
|
|
64
|
+
transitionDuration: N = "0",
|
|
65
65
|
animationDuration: q = "0",
|
|
66
66
|
transitionDelay: M = "0",
|
|
67
67
|
animationDelay: O = "0"
|
|
68
|
-
} = y ? getComputedStyle(y) : {},
|
|
68
|
+
} = y ? getComputedStyle(y) : {}, k = P(
|
|
69
|
+
H,
|
|
69
70
|
I,
|
|
70
|
-
N,
|
|
71
71
|
M,
|
|
72
72
|
O
|
|
73
|
-
),
|
|
73
|
+
), W = P(
|
|
74
|
+
w,
|
|
74
75
|
F,
|
|
75
|
-
|
|
76
|
-
j,
|
|
76
|
+
N,
|
|
77
77
|
q
|
|
78
|
-
), b =
|
|
78
|
+
), b = k + W;
|
|
79
79
|
if (!b) {
|
|
80
80
|
s === "enter" && t.setState("animated", !1), a();
|
|
81
81
|
return;
|
|
@@ -87,7 +87,7 @@ var at = B(function(e) {
|
|
|
87
87
|
(a) => /* @__PURE__ */ g(z, { value: t, children: a }),
|
|
88
88
|
[t]
|
|
89
89
|
);
|
|
90
|
-
const S = rt(D, o.hidden, i), C = o.style,
|
|
90
|
+
const S = rt(D, o.hidden, i), C = o.style, j = tt(() => S ? x(E({}, C), { display: "none" }) : C, [S, C]);
|
|
91
91
|
return o = x(E({
|
|
92
92
|
id: c,
|
|
93
93
|
"data-open": u || void 0,
|
|
@@ -96,7 +96,7 @@ var at = B(function(e) {
|
|
|
96
96
|
hidden: S
|
|
97
97
|
}, o), {
|
|
98
98
|
ref: Q(c ? t.setContentElement : null, d, o.ref),
|
|
99
|
-
style:
|
|
99
|
+
style: j
|
|
100
100
|
}), X(o);
|
|
101
101
|
}), it = V(function(e) {
|
|
102
102
|
const n = at(e);
|
|
@@ -557,54 +557,54 @@ function Se(t = [], e = []) {
|
|
|
557
557
|
};
|
|
558
558
|
}
|
|
559
559
|
export {
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
560
|
+
Tt as $,
|
|
561
|
+
mt as A,
|
|
562
|
+
Kt as B,
|
|
563
|
+
_ as C,
|
|
564
|
+
Dt as D,
|
|
565
|
+
_e as E,
|
|
566
|
+
Jt as F,
|
|
567
|
+
ce as G,
|
|
568
|
+
ue as H,
|
|
569
|
+
Se as I,
|
|
570
|
+
be as J,
|
|
571
|
+
R as K,
|
|
572
|
+
S as L,
|
|
573
|
+
ne as M,
|
|
574
|
+
ee as N,
|
|
575
|
+
Yt as O,
|
|
576
|
+
pe as P,
|
|
577
|
+
$t as Q,
|
|
578
|
+
rt as R,
|
|
579
|
+
U as S,
|
|
580
|
+
me as T,
|
|
581
|
+
Pt as U,
|
|
582
|
+
vt as V,
|
|
583
|
+
Ut as W,
|
|
584
|
+
dt as X,
|
|
585
|
+
m as Y,
|
|
586
|
+
se as Z,
|
|
587
587
|
Z as _,
|
|
588
588
|
Re as a,
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
589
|
+
zt as a0,
|
|
590
|
+
he as a1,
|
|
591
|
+
fe as a2,
|
|
592
|
+
Vt as a3,
|
|
593
|
+
Mt as a4,
|
|
594
|
+
xt as a5,
|
|
595
|
+
re as a6,
|
|
596
|
+
Wt as a7,
|
|
597
|
+
It as a8,
|
|
598
|
+
jt as a9,
|
|
599
|
+
At as aa,
|
|
600
|
+
Ot as ab,
|
|
601
|
+
yt as ac,
|
|
602
|
+
X as ad,
|
|
603
|
+
ae,
|
|
604
|
+
qt as af,
|
|
605
|
+
ve as ag,
|
|
606
|
+
ye as ah,
|
|
607
|
+
ge as ai,
|
|
608
608
|
ut as aj,
|
|
609
609
|
Qt as ak,
|
|
610
610
|
St as al,
|
|
@@ -618,23 +618,23 @@ export {
|
|
|
618
618
|
k as e,
|
|
619
619
|
Pe as f,
|
|
620
620
|
lt as g,
|
|
621
|
-
|
|
621
|
+
Ee as h,
|
|
622
622
|
Lt as i,
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
623
|
+
we as j,
|
|
624
|
+
p as k,
|
|
625
|
+
H as l,
|
|
626
|
+
c as m,
|
|
627
|
+
te as n,
|
|
628
|
+
ie as o,
|
|
629
|
+
N as p,
|
|
630
630
|
de as q,
|
|
631
631
|
Bt as r,
|
|
632
632
|
Oe as s,
|
|
633
633
|
Ft as t,
|
|
634
634
|
le as u,
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
635
|
+
Xt as v,
|
|
636
|
+
Ht as w,
|
|
637
|
+
kt as x,
|
|
638
|
+
Zt as y,
|
|
639
|
+
Gt as z
|
|
640
640
|
};
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { c as pe, a as he } from "./O2PQ2652-
|
|
2
|
-
import { c as Pe, f as
|
|
3
|
-
import {
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as Te, c as Ae } from "./G7GW6PWC-
|
|
6
|
-
import { a as _e, u as
|
|
7
|
-
import { useRef as
|
|
8
|
-
import { jsx as
|
|
1
|
+
import { c as pe, a as he } from "./O2PQ2652-Cf1Ld8NU.js";
|
|
2
|
+
import { c as Pe, f as $, b as He, d as we } from "./YV4JVR4I-BqDRuYuU.js";
|
|
3
|
+
import { R as q, Q as _, S as k, c as oe, _ as X, i as re, a1 as Se, J as ne, h as Y, $ as U, Y as M, a2 as Ee, b as ge, j as Oe, k as D, l as se, m as R, a3 as be, K as I, e as W, f as ue, a as ie, t as Fe } from "./LMDWO4NN-5r0-Qq-x.js";
|
|
4
|
+
import { u as G, H as Me } from "./EM5CXX6A-DJQcGr5c.js";
|
|
5
|
+
import { u as Te, c as Ae } from "./G7GW6PWC-BbXlQk2u.js";
|
|
6
|
+
import { a as _e, u as Re } from "./PFRGBC2K-a0iGk9xp.js";
|
|
7
|
+
import { useRef as y, useState as ce, useEffect as E, useContext as ye, createContext as xe, useCallback as ae } from "react";
|
|
8
|
+
import { jsx as z } from "react/jsx-runtime";
|
|
9
9
|
function Ce(r = {}) {
|
|
10
10
|
var s;
|
|
11
|
-
const t = (s = r.store) == null ? void 0 : s.getState(), e = pe(
|
|
11
|
+
const t = (s = r.store) == null ? void 0 : s.getState(), e = pe(q(k({}, r), {
|
|
12
12
|
placement: _(
|
|
13
13
|
r.placement,
|
|
14
14
|
t == null ? void 0 : t.placement,
|
|
15
15
|
"bottom"
|
|
16
16
|
)
|
|
17
|
-
})), n = _(r.timeout, t == null ? void 0 : t.timeout, 500), u =
|
|
17
|
+
})), n = _(r.timeout, t == null ? void 0 : t.timeout, 500), u = q(k({}, e.getState()), {
|
|
18
18
|
timeout: n,
|
|
19
19
|
showTimeout: _(r.showTimeout, t == null ? void 0 : t.showTimeout),
|
|
20
20
|
hideTimeout: _(r.hideTimeout, t == null ? void 0 : t.hideTimeout),
|
|
21
21
|
autoFocusOnShow: _(t == null ? void 0 : t.autoFocusOnShow, !1)
|
|
22
22
|
}), i = Pe(u, e, r.store);
|
|
23
|
-
return
|
|
23
|
+
return q(k(k({}, e), i), {
|
|
24
24
|
setAutoFocusOnShow: (a) => i.setState("autoFocusOnShow", a)
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
function Ne(r, s, t) {
|
|
28
|
-
return
|
|
28
|
+
return $(r, t, "timeout"), $(r, t, "showTimeout"), $(r, t, "hideTimeout"), he(r, s, t);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Ke(r = {}) {
|
|
31
31
|
const [s, t] = He(Ce, r);
|
|
32
32
|
return Ne(s, t, r);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function B(r) {
|
|
35
35
|
return [r.clientX, r.clientY];
|
|
36
36
|
}
|
|
37
37
|
function Z(r, s) {
|
|
@@ -55,15 +55,15 @@ function Z(r, s) {
|
|
|
55
55
|
}
|
|
56
56
|
return n;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function ke(r, s) {
|
|
59
59
|
const { top: t, right: e, bottom: n, left: u } = s, [i, a] = r, c = i < u ? "left" : i > e ? "right" : null, o = a < t ? "top" : a > n ? "bottom" : null;
|
|
60
60
|
return [c, o];
|
|
61
61
|
}
|
|
62
62
|
function ee(r, s) {
|
|
63
|
-
const t = r.getBoundingClientRect(), { top: e, right: n, bottom: u, left: i } = t, [a, c] =
|
|
63
|
+
const t = r.getBoundingClientRect(), { top: e, right: n, bottom: u, left: i } = t, [a, c] = ke(s, t), o = [s];
|
|
64
64
|
return a ? (c !== "top" && o.push([a === "left" ? i : n, e]), o.push([a === "left" ? n : i, e]), o.push([a === "left" ? n : i, u]), c !== "bottom" && o.push([a === "left" ? i : n, u])) : c === "top" ? (o.push([i, e]), o.push([i, u]), o.push([n, u]), o.push([n, e])) : (o.push([i, u]), o.push([i, e]), o.push([n, e]), o.push([n, u])), o;
|
|
65
65
|
}
|
|
66
|
-
var
|
|
66
|
+
var De = "div";
|
|
67
67
|
function le(r, s, t, e) {
|
|
68
68
|
return _e(s) ? !0 : r ? !!(I(s, r) || t && I(t, r) || e != null && e.some((n) => le(r, n, t))) : !1;
|
|
69
69
|
}
|
|
@@ -74,22 +74,22 @@ function je(r) {
|
|
|
74
74
|
"store"
|
|
75
75
|
]);
|
|
76
76
|
const [n, u] = ce(!1), i = t.useState("mounted");
|
|
77
|
-
|
|
77
|
+
E(() => {
|
|
78
78
|
i || u(!1);
|
|
79
79
|
}, [i]);
|
|
80
|
-
const a = e.onFocus, c =
|
|
80
|
+
const a = e.onFocus, c = W((d) => {
|
|
81
81
|
a == null || a(d), !d.defaultPrevented && u(!0);
|
|
82
|
-
}), o =
|
|
83
|
-
return
|
|
82
|
+
}), o = y(null);
|
|
83
|
+
return E(() => we(t, ["anchorElement"], (d) => {
|
|
84
84
|
o.current = d.anchorElement;
|
|
85
|
-
}), []), e =
|
|
85
|
+
}), []), e = D(R({
|
|
86
86
|
autoFocusOnHide: n,
|
|
87
87
|
finalFocus: o
|
|
88
88
|
}, e), {
|
|
89
89
|
onFocus: c
|
|
90
90
|
}), e;
|
|
91
91
|
}
|
|
92
|
-
var te = xe(null),
|
|
92
|
+
var te = xe(null), Le = oe(
|
|
93
93
|
function(s) {
|
|
94
94
|
var t = s, {
|
|
95
95
|
store: e,
|
|
@@ -106,30 +106,30 @@ var te = xe(null), Ve = oe(
|
|
|
106
106
|
"hideOnHoverOutside",
|
|
107
107
|
"disablePointerEventsOnApproach"
|
|
108
108
|
]);
|
|
109
|
-
const d =
|
|
109
|
+
const d = G();
|
|
110
110
|
e = e || d, re(
|
|
111
111
|
e,
|
|
112
112
|
process.env.NODE_ENV !== "production" && "Hovercard must receive a `store` prop or be wrapped in a HovercardProvider component."
|
|
113
113
|
);
|
|
114
|
-
const h =
|
|
114
|
+
const h = y(null), [p, H] = ce([]), v = y(0), O = y(null), { portalRef: P, domReady: f } = Se(u, o.portalRef), w = ne(), x = !!a, T = Y(a), g = !!c, C = Y(
|
|
115
115
|
c
|
|
116
116
|
), j = e.useState("open"), b = e.useState("mounted");
|
|
117
|
-
|
|
118
|
-
if (!f || !b || !x && !
|
|
117
|
+
E(() => {
|
|
118
|
+
if (!f || !b || !x && !g) return;
|
|
119
119
|
const l = h.current;
|
|
120
|
-
return l ?
|
|
120
|
+
return l ? U(
|
|
121
121
|
M("mousemove", (m) => {
|
|
122
122
|
if (!e || !w()) return;
|
|
123
|
-
const { anchorElement: F, hideTimeout: N, timeout: me } = e.getState(),
|
|
124
|
-
if (le(
|
|
125
|
-
|
|
123
|
+
const { anchorElement: F, hideTimeout: N, timeout: me } = e.getState(), K = O.current, [L] = m.composedPath(), V = F;
|
|
124
|
+
if (le(L, l, V, p)) {
|
|
125
|
+
O.current = L && V && I(V, L) ? B(m) : null, window.clearTimeout(v.current), v.current = 0;
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
128
|
if (!v.current) {
|
|
129
|
-
if (
|
|
130
|
-
const
|
|
131
|
-
if (Z(
|
|
132
|
-
if (
|
|
129
|
+
if (K) {
|
|
130
|
+
const Q = B(m), ve = ee(l, K);
|
|
131
|
+
if (Z(Q, ve)) {
|
|
132
|
+
if (O.current = Q, !C(m)) return;
|
|
133
133
|
m.preventDefault(), m.stopPropagation();
|
|
134
134
|
return;
|
|
135
135
|
}
|
|
@@ -147,70 +147,70 @@ var te = xe(null), Ve = oe(
|
|
|
147
147
|
f,
|
|
148
148
|
b,
|
|
149
149
|
x,
|
|
150
|
-
|
|
150
|
+
g,
|
|
151
151
|
p,
|
|
152
152
|
C,
|
|
153
153
|
T
|
|
154
|
-
]),
|
|
155
|
-
if (!f || !b || !
|
|
156
|
-
const l = (
|
|
154
|
+
]), E(() => {
|
|
155
|
+
if (!f || !b || !g) return;
|
|
156
|
+
const l = (S) => {
|
|
157
157
|
const m = h.current;
|
|
158
158
|
if (!m) return;
|
|
159
|
-
const F =
|
|
159
|
+
const F = O.current;
|
|
160
160
|
if (!F) return;
|
|
161
161
|
const N = ee(m, F);
|
|
162
|
-
if (Z(
|
|
163
|
-
if (!C(
|
|
164
|
-
|
|
162
|
+
if (Z(B(S), N)) {
|
|
163
|
+
if (!C(S)) return;
|
|
164
|
+
S.preventDefault(), S.stopPropagation();
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
|
-
return
|
|
167
|
+
return U(
|
|
168
168
|
// Note: we may need to add pointer events here in the future.
|
|
169
169
|
M("mouseenter", l, !0),
|
|
170
170
|
M("mouseover", l, !0),
|
|
171
171
|
M("mouseout", l, !0),
|
|
172
172
|
M("mouseleave", l, !0)
|
|
173
173
|
);
|
|
174
|
-
}, [f, b,
|
|
174
|
+
}, [f, b, g, C]), E(() => {
|
|
175
175
|
f && (j || e == null || e.setAutoFocusOnShow(!1));
|
|
176
176
|
}, [e, f, j]);
|
|
177
|
-
const fe =
|
|
178
|
-
|
|
177
|
+
const fe = Ee(j);
|
|
178
|
+
E(() => {
|
|
179
179
|
if (f)
|
|
180
180
|
return () => {
|
|
181
181
|
fe.current || e == null || e.setAutoFocusOnShow(!1);
|
|
182
182
|
};
|
|
183
183
|
}, [e, f]);
|
|
184
|
-
const A =
|
|
185
|
-
|
|
184
|
+
const A = ye(te);
|
|
185
|
+
ge(() => {
|
|
186
186
|
if (n || !u || !b || !f) return;
|
|
187
187
|
const l = h.current;
|
|
188
188
|
if (l)
|
|
189
189
|
return A == null ? void 0 : A(l);
|
|
190
190
|
}, [n, u, b, f]);
|
|
191
|
-
const
|
|
191
|
+
const J = ae(
|
|
192
192
|
(l) => {
|
|
193
193
|
H((m) => [...m, l]);
|
|
194
|
-
const
|
|
194
|
+
const S = A == null ? void 0 : A(l);
|
|
195
195
|
return () => {
|
|
196
196
|
H(
|
|
197
197
|
(m) => m.filter((F) => F !== l)
|
|
198
|
-
),
|
|
198
|
+
), S == null || S();
|
|
199
199
|
};
|
|
200
200
|
},
|
|
201
201
|
[A]
|
|
202
202
|
);
|
|
203
|
-
o =
|
|
203
|
+
o = Oe(
|
|
204
204
|
o,
|
|
205
|
-
(l) => /* @__PURE__ */
|
|
206
|
-
[e,
|
|
207
|
-
), o =
|
|
205
|
+
(l) => /* @__PURE__ */ z(Me, { value: e, children: /* @__PURE__ */ z(te.Provider, { value: J, children: l }) }),
|
|
206
|
+
[e, J]
|
|
207
|
+
), o = D(R({}, o), {
|
|
208
208
|
ref: se(h, o.ref)
|
|
209
|
-
}), o = je(
|
|
209
|
+
}), o = je(R({ store: e }, o));
|
|
210
210
|
const de = e.useState(
|
|
211
211
|
(l) => n || l.autoFocusOnShow
|
|
212
212
|
);
|
|
213
|
-
return o = Te(
|
|
213
|
+
return o = Te(D(R({
|
|
214
214
|
store: e,
|
|
215
215
|
modal: n,
|
|
216
216
|
portal: u,
|
|
@@ -226,27 +226,27 @@ var te = xe(null), Ve = oe(
|
|
|
226
226
|
}
|
|
227
227
|
})), o;
|
|
228
228
|
}
|
|
229
|
-
),
|
|
229
|
+
), Qe = Ae(
|
|
230
230
|
ue(function(s) {
|
|
231
|
-
const t =
|
|
232
|
-
return ie(
|
|
231
|
+
const t = Le(s);
|
|
232
|
+
return ie(De, t);
|
|
233
233
|
}),
|
|
234
|
-
|
|
235
|
-
),
|
|
234
|
+
G
|
|
235
|
+
), Ve = "a", $e = oe(
|
|
236
236
|
function(s) {
|
|
237
237
|
var t = s, { store: e, showOnHover: n = !0 } = t, u = X(t, ["store", "showOnHover"]);
|
|
238
|
-
const i =
|
|
238
|
+
const i = G();
|
|
239
239
|
e = e || i, re(
|
|
240
240
|
e,
|
|
241
241
|
process.env.NODE_ENV !== "production" && "HovercardAnchor must receive a `store` prop or be wrapped in a HovercardProvider component."
|
|
242
242
|
);
|
|
243
|
-
const a = Fe(u), c =
|
|
244
|
-
|
|
243
|
+
const a = Fe(u), c = y(0);
|
|
244
|
+
E(() => () => window.clearTimeout(c.current), []), E(() => M("mouseleave", (f) => {
|
|
245
245
|
if (!e) return;
|
|
246
246
|
const { anchorElement: w } = e.getState();
|
|
247
247
|
w && f.target === w && (window.clearTimeout(c.current), c.current = 0);
|
|
248
248
|
}, !0), [e]);
|
|
249
|
-
const o = u.onMouseMove, d =
|
|
249
|
+
const o = u.onMouseMove, d = Y(n), h = ne(), p = W((P) => {
|
|
250
250
|
if (o == null || o(P), a || !e || P.defaultPrevented || c.current || !h() || !d(P)) return;
|
|
251
251
|
const f = P.currentTarget;
|
|
252
252
|
e.setAnchorElement(f), e.setDisclosureElement(f);
|
|
@@ -254,11 +254,11 @@ var te = xe(null), Ve = oe(
|
|
|
254
254
|
c.current = 0, h() && (e == null || e.setAnchorElement(f), e == null || e.show(), queueMicrotask(() => {
|
|
255
255
|
e == null || e.setDisclosureElement(f);
|
|
256
256
|
}));
|
|
257
|
-
},
|
|
258
|
-
|
|
259
|
-
}), H = u.onClick, v =
|
|
257
|
+
}, g = w ?? x;
|
|
258
|
+
g === 0 ? T() : c.current = window.setTimeout(T, g);
|
|
259
|
+
}), H = u.onClick, v = W((P) => {
|
|
260
260
|
H == null || H(P), e && (window.clearTimeout(c.current), c.current = 0);
|
|
261
|
-
}),
|
|
261
|
+
}), O = ae(
|
|
262
262
|
(P) => {
|
|
263
263
|
if (!e) return;
|
|
264
264
|
const { anchorElement: f } = e.getState();
|
|
@@ -266,22 +266,22 @@ var te = xe(null), Ve = oe(
|
|
|
266
266
|
},
|
|
267
267
|
[e]
|
|
268
268
|
);
|
|
269
|
-
return u =
|
|
270
|
-
ref: se(
|
|
269
|
+
return u = D(R({}, u), {
|
|
270
|
+
ref: se(O, u.ref),
|
|
271
271
|
onMouseMove: p,
|
|
272
272
|
onClick: v
|
|
273
|
-
}), u =
|
|
273
|
+
}), u = Re(u), u;
|
|
274
274
|
}
|
|
275
|
-
),
|
|
276
|
-
const t =
|
|
277
|
-
return ie(
|
|
275
|
+
), Ue = ue(function(s) {
|
|
276
|
+
const t = $e(s);
|
|
277
|
+
return ie(Ve, t);
|
|
278
278
|
});
|
|
279
279
|
export {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
280
|
+
Qe as H,
|
|
281
|
+
Le as a,
|
|
282
|
+
$e as b,
|
|
283
283
|
Ce as c,
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
Ke as d,
|
|
285
|
+
Ue as e,
|
|
286
286
|
Ne as u
|
|
287
287
|
};
|