@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
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as r from "react";
|
|
2
|
-
import { createContext as h } from "react";
|
|
3
|
-
const p = h({
|
|
4
|
-
color: "currentColor",
|
|
5
|
-
size: "1em",
|
|
6
|
-
weight: "regular",
|
|
7
|
-
mirrored: !1
|
|
8
|
-
}), x = r.forwardRef(
|
|
9
|
-
(n, s) => {
|
|
10
|
-
const {
|
|
11
|
-
alt: t,
|
|
12
|
-
color: o,
|
|
13
|
-
size: e,
|
|
14
|
-
weight: l,
|
|
15
|
-
mirrored: a,
|
|
16
|
-
children: c,
|
|
17
|
-
weights: m,
|
|
18
|
-
...g
|
|
19
|
-
} = n, {
|
|
20
|
-
color: w = "currentColor",
|
|
21
|
-
size: i,
|
|
22
|
-
weight: u = "regular",
|
|
23
|
-
mirrored: f = !1,
|
|
24
|
-
...d
|
|
25
|
-
} = r.useContext(p);
|
|
26
|
-
return /* @__PURE__ */ r.createElement(
|
|
27
|
-
"svg",
|
|
28
|
-
{
|
|
29
|
-
ref: s,
|
|
30
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
31
|
-
width: e ?? i,
|
|
32
|
-
height: e ?? i,
|
|
33
|
-
fill: o ?? w,
|
|
34
|
-
viewBox: "0 0 256 256",
|
|
35
|
-
transform: a || f ? "scale(-1, 1)" : void 0,
|
|
36
|
-
...d,
|
|
37
|
-
...g
|
|
38
|
-
},
|
|
39
|
-
!!t && /* @__PURE__ */ r.createElement("title", null, t),
|
|
40
|
-
c,
|
|
41
|
-
m.get(l ?? u)
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
x.displayName = "IconBase";
|
|
46
|
-
export {
|
|
47
|
-
x as p
|
|
48
|
-
};
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { u as H } from "./UQQRIHDV-DEGlgATx.js";
|
|
2
|
-
import { u as N } from "./6VRAQV3D-BYmT0QTl.js";
|
|
3
|
-
import { a as F, C as T, b as L, c as q } from "./S43UC3DV-HCi6u_G4.js";
|
|
4
|
-
import { u as M } from "./YV4JVR4I-CQnJhUSg.js";
|
|
5
|
-
import { s as W, f as z, c as G, a as J, _ as Q, i as U, m as C, o as c, j as m, e as P, E as X, F as Y, k as Z, l as $ } from "./LMDWO4NN-CpSMaD5G.js";
|
|
6
|
-
import { h as ee } from "./PFRGBC2K-BdRJd-gU.js";
|
|
7
|
-
import { useCallback as oe, useContext as te } from "react";
|
|
8
|
-
import { jsx as y } from "react/jsx-runtime";
|
|
9
|
-
var ne = "div";
|
|
10
|
-
function re(s, l) {
|
|
11
|
-
if (l != null)
|
|
12
|
-
return s == null ? !1 : Array.isArray(s) ? s.includes(l) : s === l;
|
|
13
|
-
}
|
|
14
|
-
function le(s) {
|
|
15
|
-
var l;
|
|
16
|
-
return (l = {
|
|
17
|
-
menu: "menuitem",
|
|
18
|
-
listbox: "option",
|
|
19
|
-
tree: "treeitem"
|
|
20
|
-
}[s]) != null ? l : "option";
|
|
21
|
-
}
|
|
22
|
-
var se = G(
|
|
23
|
-
function(l) {
|
|
24
|
-
var i = l, {
|
|
25
|
-
store: o,
|
|
26
|
-
value: n,
|
|
27
|
-
hideOnClick: f,
|
|
28
|
-
setValueOnClick: p,
|
|
29
|
-
selectValueOnClick: S = !0,
|
|
30
|
-
resetValueOnSelect: v,
|
|
31
|
-
focusOnHover: I = !1,
|
|
32
|
-
moveOnKeyPress: E = !0,
|
|
33
|
-
getItem: b
|
|
34
|
-
} = i, r = Q(i, [
|
|
35
|
-
"store",
|
|
36
|
-
"value",
|
|
37
|
-
"hideOnClick",
|
|
38
|
-
"setValueOnClick",
|
|
39
|
-
"selectValueOnClick",
|
|
40
|
-
"resetValueOnSelect",
|
|
41
|
-
"focusOnHover",
|
|
42
|
-
"moveOnKeyPress",
|
|
43
|
-
"getItem"
|
|
44
|
-
]), O;
|
|
45
|
-
const h = F();
|
|
46
|
-
o = o || h, U(
|
|
47
|
-
o,
|
|
48
|
-
process.env.NODE_ENV !== "production" && "ComboboxItem must be wrapped in a ComboboxList or ComboboxPopover component."
|
|
49
|
-
);
|
|
50
|
-
const { resetValueOnSelectState: V, multiSelectable: d, selected: u } = M(o, {
|
|
51
|
-
resetValueOnSelectState: "resetValueOnSelect",
|
|
52
|
-
multiSelectable(e) {
|
|
53
|
-
return Array.isArray(e.selectedValue);
|
|
54
|
-
},
|
|
55
|
-
selected(e) {
|
|
56
|
-
return re(e.selectedValue, n);
|
|
57
|
-
}
|
|
58
|
-
}), g = oe(
|
|
59
|
-
(e) => {
|
|
60
|
-
const t = C(c({}, e), { value: n });
|
|
61
|
-
return b ? b(t) : t;
|
|
62
|
-
},
|
|
63
|
-
[n, b]
|
|
64
|
-
);
|
|
65
|
-
p = p ?? !d, f = f ?? (n != null && !d);
|
|
66
|
-
const k = r.onClick, _ = m(p), R = m(S), w = m(
|
|
67
|
-
(O = v ?? V) != null ? O : d
|
|
68
|
-
), K = m(f), A = P((e) => {
|
|
69
|
-
k == null || k(e), !e.defaultPrevented && (X(e) || Y(e) || (n != null && (R(e) && (w(e) && (o == null || o.resetValue()), o == null || o.setSelectedValue((t) => Array.isArray(t) ? t.includes(n) ? t.filter((a) => a !== n) : [...t, n] : n)), _(e) && (o == null || o.setValue(n))), K(e) && (o == null || o.hide())));
|
|
70
|
-
}), x = r.onKeyDown, D = P((e) => {
|
|
71
|
-
if (x == null || x(e), e.defaultPrevented) return;
|
|
72
|
-
const t = o == null ? void 0 : o.getState().baseElement;
|
|
73
|
-
if (!t || ee(t)) return;
|
|
74
|
-
(e.key.length === 1 || e.key === "Backspace" || e.key === "Delete") && (queueMicrotask(() => t.focus()), Z(t) && (o == null || o.setValue(t.value)));
|
|
75
|
-
});
|
|
76
|
-
d && u != null && (r = c({
|
|
77
|
-
"aria-selected": u
|
|
78
|
-
}, r)), r = $(
|
|
79
|
-
r,
|
|
80
|
-
(e) => /* @__PURE__ */ y(T.Provider, { value: n, children: /* @__PURE__ */ y(L.Provider, { value: u ?? !1, children: e }) }),
|
|
81
|
-
[n, u]
|
|
82
|
-
);
|
|
83
|
-
const j = te(q);
|
|
84
|
-
r = C(c({
|
|
85
|
-
role: le(j),
|
|
86
|
-
children: n
|
|
87
|
-
}, r), {
|
|
88
|
-
onClick: A,
|
|
89
|
-
onKeyDown: D
|
|
90
|
-
});
|
|
91
|
-
const B = m(E);
|
|
92
|
-
return r = N(C(c({
|
|
93
|
-
store: o
|
|
94
|
-
}, r), {
|
|
95
|
-
getItem: g,
|
|
96
|
-
// Dispatch a custom event on the combobox input when moving to an item
|
|
97
|
-
// with the keyboard so the Combobox component can enable inline
|
|
98
|
-
// autocompletion.
|
|
99
|
-
moveOnKeyPress: (e) => {
|
|
100
|
-
if (!B(e)) return !1;
|
|
101
|
-
const t = new Event("combobox-item-move"), a = o == null ? void 0 : o.getState().baseElement;
|
|
102
|
-
return a == null || a.dispatchEvent(t), !0;
|
|
103
|
-
}
|
|
104
|
-
})), r = H(c({ store: o, focusOnHover: I }, r)), r;
|
|
105
|
-
}
|
|
106
|
-
), be = W(
|
|
107
|
-
z(function(l) {
|
|
108
|
-
const i = se(l);
|
|
109
|
-
return J(ne, i);
|
|
110
|
-
})
|
|
111
|
-
);
|
|
112
|
-
export {
|
|
113
|
-
be as C
|
|
114
|
-
};
|
|
@@ -1,459 +0,0 @@
|
|
|
1
|
-
import { u as We } from "./5JTVDSTH-CZ7mfyUK.js";
|
|
2
|
-
import { u as $e } from "./WMYDSCNQ-pGjWB-Pk.js";
|
|
3
|
-
import { u as ze, e as Je, a as Xe, d as Ye, f as Ge, c as Qe } from "./S43UC3DV-HCi6u_G4.js";
|
|
4
|
-
import { L as Ze, Y as et, U as h, V as Q, W as F, a2 as tt, x as ot, a5 as nt, m as J, o as L, X as ge, f as xe, c as Ve, a as he, _ as Pe, i as Ee, a6 as rt, a7 as st, y as pe, a8 as ne, a9 as ut, e as j, B as at, b as re, j as q, J as lt, q as we, n as Oe, S as it, C as ct, a1 as dt, N as ft, aa as mt, l as vt, r as pt } from "./LMDWO4NN-CpSMaD5G.js";
|
|
5
|
-
import { h as be } from "./PFRGBC2K-BdRJd-gU.js";
|
|
6
|
-
import { m as bt, p as St, t as Ct, c as gt, s as W, d as B, g as xt, b as Vt, f as Z } from "./YV4JVR4I-CQnJhUSg.js";
|
|
7
|
-
import { createContext as Ie, useRef as H, useState as ye, useEffect as z, useMemo as ht } from "react";
|
|
8
|
-
import { e as Pt, C as Et } from "./P7GR5CS5-3RsPGPTy.js";
|
|
9
|
-
import { c as wt, a as Ot } from "./O2PQ2652-DIoegIkE.js";
|
|
10
|
-
import { c as It, d as yt, b as At } from "./4CMBR7SL-DezfZPUS.js";
|
|
11
|
-
import { jsx as se } from "react/jsx-runtime";
|
|
12
|
-
import { i as Lt } from "./KFH4SEIX-DaQeP5D_.js";
|
|
13
|
-
var oo = Ie(null), no = Ie(
|
|
14
|
-
null
|
|
15
|
-
), ee = Ze(
|
|
16
|
-
[Et],
|
|
17
|
-
[Pt]
|
|
18
|
-
), _t = ee.useContext, ro = ee.useProviderContext, so = ee.ContextProvider, uo = ee.ScopedContextProvider, Tt = ot() && nt();
|
|
19
|
-
function kt(o = {}) {
|
|
20
|
-
var s = o, {
|
|
21
|
-
tag: n
|
|
22
|
-
} = s, e = et(s, [
|
|
23
|
-
"tag"
|
|
24
|
-
]);
|
|
25
|
-
const g = bt(e.store, St(n, ["value", "rtl"]));
|
|
26
|
-
Ct(e, g);
|
|
27
|
-
const f = n == null ? void 0 : n.getState(), u = g == null ? void 0 : g.getState(), _ = h(
|
|
28
|
-
e.activeId,
|
|
29
|
-
u == null ? void 0 : u.activeId,
|
|
30
|
-
e.defaultActiveId,
|
|
31
|
-
null
|
|
32
|
-
), O = It(Q(F({}, e), {
|
|
33
|
-
activeId: _,
|
|
34
|
-
includesBaseElement: h(
|
|
35
|
-
e.includesBaseElement,
|
|
36
|
-
u == null ? void 0 : u.includesBaseElement,
|
|
37
|
-
!0
|
|
38
|
-
),
|
|
39
|
-
orientation: h(
|
|
40
|
-
e.orientation,
|
|
41
|
-
u == null ? void 0 : u.orientation,
|
|
42
|
-
"vertical"
|
|
43
|
-
),
|
|
44
|
-
focusLoop: h(e.focusLoop, u == null ? void 0 : u.focusLoop, !0),
|
|
45
|
-
focusWrap: h(e.focusWrap, u == null ? void 0 : u.focusWrap, !0),
|
|
46
|
-
virtualFocus: h(
|
|
47
|
-
e.virtualFocus,
|
|
48
|
-
u == null ? void 0 : u.virtualFocus,
|
|
49
|
-
!0
|
|
50
|
-
)
|
|
51
|
-
})), P = wt(Q(F({}, e), {
|
|
52
|
-
placement: h(
|
|
53
|
-
e.placement,
|
|
54
|
-
u == null ? void 0 : u.placement,
|
|
55
|
-
"bottom-start"
|
|
56
|
-
)
|
|
57
|
-
})), T = h(
|
|
58
|
-
e.value,
|
|
59
|
-
u == null ? void 0 : u.value,
|
|
60
|
-
e.defaultValue,
|
|
61
|
-
""
|
|
62
|
-
), E = h(
|
|
63
|
-
e.selectedValue,
|
|
64
|
-
u == null ? void 0 : u.selectedValue,
|
|
65
|
-
f == null ? void 0 : f.values,
|
|
66
|
-
e.defaultSelectedValue,
|
|
67
|
-
""
|
|
68
|
-
), k = Array.isArray(E), D = Q(F(F({}, O.getState()), P.getState()), {
|
|
69
|
-
value: T,
|
|
70
|
-
selectedValue: E,
|
|
71
|
-
resetValueOnSelect: h(
|
|
72
|
-
e.resetValueOnSelect,
|
|
73
|
-
u == null ? void 0 : u.resetValueOnSelect,
|
|
74
|
-
k
|
|
75
|
-
),
|
|
76
|
-
resetValueOnHide: h(
|
|
77
|
-
e.resetValueOnHide,
|
|
78
|
-
u == null ? void 0 : u.resetValueOnHide,
|
|
79
|
-
k && !n
|
|
80
|
-
),
|
|
81
|
-
activeValue: u == null ? void 0 : u.activeValue
|
|
82
|
-
}), a = gt(D, O, P, g);
|
|
83
|
-
return Tt && W(
|
|
84
|
-
a,
|
|
85
|
-
() => B(a, ["virtualFocus"], () => {
|
|
86
|
-
a.setState("virtualFocus", !1);
|
|
87
|
-
})
|
|
88
|
-
), W(a, () => {
|
|
89
|
-
if (n)
|
|
90
|
-
return tt(
|
|
91
|
-
B(a, ["selectedValue"], (l) => {
|
|
92
|
-
Array.isArray(l.selectedValue) && n.setValues(l.selectedValue);
|
|
93
|
-
}),
|
|
94
|
-
B(n, ["values"], (l) => {
|
|
95
|
-
a.setState("selectedValue", l.values);
|
|
96
|
-
})
|
|
97
|
-
);
|
|
98
|
-
}), W(
|
|
99
|
-
a,
|
|
100
|
-
() => B(a, ["resetValueOnHide", "mounted"], (l) => {
|
|
101
|
-
l.resetValueOnHide && (l.mounted || a.setState("value", T));
|
|
102
|
-
})
|
|
103
|
-
), W(
|
|
104
|
-
a,
|
|
105
|
-
() => B(a, ["open"], (l) => {
|
|
106
|
-
l.open || (a.setState("activeId", _), a.setState("moves", 0));
|
|
107
|
-
})
|
|
108
|
-
), W(
|
|
109
|
-
a,
|
|
110
|
-
() => B(a, ["moves", "activeId"], (l, U) => {
|
|
111
|
-
l.moves === U.moves && a.setState("activeValue", void 0);
|
|
112
|
-
})
|
|
113
|
-
), W(
|
|
114
|
-
a,
|
|
115
|
-
() => xt(a, ["moves", "renderedItems"], (l, U) => {
|
|
116
|
-
if (l.moves === U.moves) return;
|
|
117
|
-
const { activeId: I } = a.getState(), i = O.item(I);
|
|
118
|
-
a.setState("activeValue", i == null ? void 0 : i.value);
|
|
119
|
-
})
|
|
120
|
-
), Q(F(F(F({}, P), O), a), {
|
|
121
|
-
tag: n,
|
|
122
|
-
setValue: (l) => a.setState("value", l),
|
|
123
|
-
resetValue: () => a.setState("value", D.value),
|
|
124
|
-
setSelectedValue: (l) => a.setState("selectedValue", l)
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
function Dt(o) {
|
|
128
|
-
const s = _t();
|
|
129
|
-
return o = J(L({}, o), {
|
|
130
|
-
tag: o.tag !== void 0 ? o.tag : s
|
|
131
|
-
}), yt(o);
|
|
132
|
-
}
|
|
133
|
-
function Kt(o, s, n) {
|
|
134
|
-
return ge(s, [n.tag]), Z(o, n, "value", "setValue"), Z(o, n, "selectedValue", "setSelectedValue"), Z(o, n, "resetValueOnHide"), Z(o, n, "resetValueOnSelect"), Object.assign(
|
|
135
|
-
At(
|
|
136
|
-
Ot(o, s, n),
|
|
137
|
-
s,
|
|
138
|
-
n
|
|
139
|
-
),
|
|
140
|
-
{ tag: n.tag }
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
function Rt(o = {}) {
|
|
144
|
-
o = Dt(o);
|
|
145
|
-
const [s, n] = Vt(kt, o);
|
|
146
|
-
return Kt(s, n, o);
|
|
147
|
-
}
|
|
148
|
-
var Mt = "input";
|
|
149
|
-
function Se(o, s, n) {
|
|
150
|
-
if (!n) return !1;
|
|
151
|
-
const e = o.find((g) => !g.disabled && g.value);
|
|
152
|
-
return (e == null ? void 0 : e.value) === s;
|
|
153
|
-
}
|
|
154
|
-
function Ce(o, s) {
|
|
155
|
-
return !s || o == null ? !1 : (o = ft(o), s.length > o.length && s.toLowerCase().indexOf(o.toLowerCase()) === 0);
|
|
156
|
-
}
|
|
157
|
-
function Ft(o) {
|
|
158
|
-
return o.type === "input";
|
|
159
|
-
}
|
|
160
|
-
function Bt(o) {
|
|
161
|
-
return o === "inline" || o === "list" || o === "both" || o === "none";
|
|
162
|
-
}
|
|
163
|
-
function Ht(o) {
|
|
164
|
-
const s = o.find((n) => {
|
|
165
|
-
var e;
|
|
166
|
-
return n.disabled ? !1 : ((e = n.element) == null ? void 0 : e.getAttribute("role")) !== "tab";
|
|
167
|
-
});
|
|
168
|
-
return s == null ? void 0 : s.id;
|
|
169
|
-
}
|
|
170
|
-
var Ut = Ve(
|
|
171
|
-
function(s) {
|
|
172
|
-
var n = s, {
|
|
173
|
-
store: e,
|
|
174
|
-
focusable: g = !0,
|
|
175
|
-
autoSelect: f = !1,
|
|
176
|
-
getAutoSelectId: u,
|
|
177
|
-
setValueOnChange: _,
|
|
178
|
-
showMinLength: O = 0,
|
|
179
|
-
showOnChange: P,
|
|
180
|
-
showOnMouseDown: T,
|
|
181
|
-
showOnClick: E = T,
|
|
182
|
-
showOnKeyDown: k,
|
|
183
|
-
showOnKeyPress: D = k,
|
|
184
|
-
blurActiveItemOnClick: a,
|
|
185
|
-
setValueOnClick: l = !0,
|
|
186
|
-
moveOnKeyPress: U = !0,
|
|
187
|
-
autoComplete: I = "list"
|
|
188
|
-
} = n, i = Pe(n, [
|
|
189
|
-
"store",
|
|
190
|
-
"focusable",
|
|
191
|
-
"autoSelect",
|
|
192
|
-
"getAutoSelectId",
|
|
193
|
-
"setValueOnChange",
|
|
194
|
-
"showMinLength",
|
|
195
|
-
"showOnChange",
|
|
196
|
-
"showOnMouseDown",
|
|
197
|
-
"showOnClick",
|
|
198
|
-
"showOnKeyDown",
|
|
199
|
-
"showOnKeyPress",
|
|
200
|
-
"blurActiveItemOnClick",
|
|
201
|
-
"setValueOnClick",
|
|
202
|
-
"moveOnKeyPress",
|
|
203
|
-
"autoComplete"
|
|
204
|
-
]);
|
|
205
|
-
const te = ze();
|
|
206
|
-
e = e || te, Ee(
|
|
207
|
-
e,
|
|
208
|
-
process.env.NODE_ENV !== "production" && "Combobox must receive a `store` prop or be wrapped in a ComboboxProvider component."
|
|
209
|
-
);
|
|
210
|
-
const K = H(null), [X, S] = rt(), v = H(!1), N = H(!1), x = e.useState(
|
|
211
|
-
(t) => t.virtualFocus && f
|
|
212
|
-
), b = I === "inline" || I === "both", [$, Y] = ye(b);
|
|
213
|
-
st(() => {
|
|
214
|
-
b && Y(!0);
|
|
215
|
-
}, [b]);
|
|
216
|
-
const p = e.useState("value"), ue = H();
|
|
217
|
-
z(() => B(e, ["selectedValue", "activeId"], (t, r) => {
|
|
218
|
-
ue.current = r.selectedValue;
|
|
219
|
-
}), []);
|
|
220
|
-
const V = e.useState((t) => {
|
|
221
|
-
var r;
|
|
222
|
-
if (b && $ && !(t.activeValue && Array.isArray(t.selectedValue) && (t.selectedValue.includes(t.activeValue) || (r = ue.current) != null && r.includes(t.activeValue))))
|
|
223
|
-
return t.activeValue;
|
|
224
|
-
}), R = e.useState("renderedItems"), y = e.useState("open"), A = e.useState("contentElement"), G = ht(() => {
|
|
225
|
-
if (!b || !$) return p;
|
|
226
|
-
if (Se(
|
|
227
|
-
R,
|
|
228
|
-
V,
|
|
229
|
-
x
|
|
230
|
-
)) {
|
|
231
|
-
if (Ce(p, V)) {
|
|
232
|
-
const r = (V == null ? void 0 : V.slice(p.length)) || "";
|
|
233
|
-
return p + r;
|
|
234
|
-
}
|
|
235
|
-
return p;
|
|
236
|
-
}
|
|
237
|
-
return V || p;
|
|
238
|
-
}, [b, $, R, V, x, p]);
|
|
239
|
-
z(() => {
|
|
240
|
-
const t = K.current;
|
|
241
|
-
if (!t) return;
|
|
242
|
-
const r = () => Y(!0);
|
|
243
|
-
return t.addEventListener("combobox-item-move", r), () => {
|
|
244
|
-
t.removeEventListener("combobox-item-move", r);
|
|
245
|
-
};
|
|
246
|
-
}, []), z(() => {
|
|
247
|
-
if (!b || !$ || !V || !Se(
|
|
248
|
-
R,
|
|
249
|
-
V,
|
|
250
|
-
x
|
|
251
|
-
) || !Ce(p, V)) return;
|
|
252
|
-
let r = ut;
|
|
253
|
-
return queueMicrotask(() => {
|
|
254
|
-
const c = K.current;
|
|
255
|
-
if (!c) return;
|
|
256
|
-
const { start: d, end: C } = pe(c), w = p.length, m = V.length;
|
|
257
|
-
ne(c, w, m), r = () => {
|
|
258
|
-
if (!be(c)) return;
|
|
259
|
-
const { start: M, end: qe } = pe(c);
|
|
260
|
-
M === w && qe === m && ne(c, d, C);
|
|
261
|
-
};
|
|
262
|
-
}), () => r();
|
|
263
|
-
}, [
|
|
264
|
-
X,
|
|
265
|
-
b,
|
|
266
|
-
$,
|
|
267
|
-
V,
|
|
268
|
-
R,
|
|
269
|
-
x,
|
|
270
|
-
p
|
|
271
|
-
]);
|
|
272
|
-
const Ae = H(null), ae = j(u), le = H(null);
|
|
273
|
-
z(() => {
|
|
274
|
-
if (!y || !A) return;
|
|
275
|
-
const t = at(A);
|
|
276
|
-
if (!t) return;
|
|
277
|
-
Ae.current = t;
|
|
278
|
-
const r = () => {
|
|
279
|
-
v.current = !1;
|
|
280
|
-
}, c = () => {
|
|
281
|
-
if (!e || !v.current) return;
|
|
282
|
-
const { activeId: C } = e.getState();
|
|
283
|
-
C !== null && C !== le.current && (v.current = !1);
|
|
284
|
-
}, d = { passive: !0, capture: !0 };
|
|
285
|
-
return t.addEventListener("wheel", r, d), t.addEventListener("touchmove", r, d), t.addEventListener("scroll", c, d), () => {
|
|
286
|
-
t.removeEventListener("wheel", r, !0), t.removeEventListener("touchmove", r, !0), t.removeEventListener("scroll", c, !0);
|
|
287
|
-
};
|
|
288
|
-
}, [y, A, e]), re(() => {
|
|
289
|
-
p && (N.current || (v.current = !0));
|
|
290
|
-
}, [p]), re(() => {
|
|
291
|
-
x !== "always" && y || (v.current = y);
|
|
292
|
-
}, [x, y]);
|
|
293
|
-
const ie = e.useState("resetValueOnSelect");
|
|
294
|
-
ge(() => {
|
|
295
|
-
var t, r;
|
|
296
|
-
const c = v.current;
|
|
297
|
-
if (!e || !y || !c && !ie) return;
|
|
298
|
-
const { baseElement: d, contentElement: C, activeId: w } = e.getState();
|
|
299
|
-
if (!(d && !be(d))) {
|
|
300
|
-
if (C != null && C.hasAttribute("data-placing")) {
|
|
301
|
-
const m = new MutationObserver(S);
|
|
302
|
-
return m.observe(C, { attributeFilter: ["data-placing"] }), () => m.disconnect();
|
|
303
|
-
}
|
|
304
|
-
if (x && c) {
|
|
305
|
-
const m = ae(R), M = m !== void 0 ? m : (t = Ht(R)) != null ? t : e.first();
|
|
306
|
-
le.current = M, e.move(M ?? null);
|
|
307
|
-
} else {
|
|
308
|
-
const m = (r = e.item(w || e.first())) == null ? void 0 : r.element;
|
|
309
|
-
m && "scrollIntoView" in m && m.scrollIntoView({ block: "nearest", inline: "nearest" });
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}, [
|
|
313
|
-
e,
|
|
314
|
-
y,
|
|
315
|
-
X,
|
|
316
|
-
p,
|
|
317
|
-
x,
|
|
318
|
-
ie,
|
|
319
|
-
ae,
|
|
320
|
-
R
|
|
321
|
-
]), z(() => {
|
|
322
|
-
if (!b) return;
|
|
323
|
-
const t = K.current;
|
|
324
|
-
if (!t) return;
|
|
325
|
-
const r = [t, A].filter(
|
|
326
|
-
(d) => !!d
|
|
327
|
-
), c = (d) => {
|
|
328
|
-
r.every((C) => dt(d, C)) && (e == null || e.setValue(G));
|
|
329
|
-
};
|
|
330
|
-
for (const d of r)
|
|
331
|
-
d.addEventListener("focusout", c);
|
|
332
|
-
return () => {
|
|
333
|
-
for (const d of r)
|
|
334
|
-
d.removeEventListener("focusout", c);
|
|
335
|
-
};
|
|
336
|
-
}, [b, A, e, G]);
|
|
337
|
-
const oe = (t) => t.currentTarget.value.length >= O, ce = i.onChange, Le = q(P ?? oe), _e = q(
|
|
338
|
-
// If the combobox is combined with tags, the value will be set by the tag
|
|
339
|
-
// input component.
|
|
340
|
-
_ ?? !e.tag
|
|
341
|
-
), Te = j((t) => {
|
|
342
|
-
if (ce == null || ce(t), t.defaultPrevented || !e) return;
|
|
343
|
-
const r = t.currentTarget, { value: c, selectionStart: d, selectionEnd: C } = r, w = t.nativeEvent;
|
|
344
|
-
if (v.current = !0, Ft(w) && (w.isComposing && (v.current = !1, N.current = !0), b)) {
|
|
345
|
-
const m = w.inputType === "insertText" || w.inputType === "insertCompositionText", M = d === c.length;
|
|
346
|
-
Y(m && M);
|
|
347
|
-
}
|
|
348
|
-
if (_e(t)) {
|
|
349
|
-
const m = c === e.getState().value;
|
|
350
|
-
e.setValue(c), queueMicrotask(() => {
|
|
351
|
-
ne(r, d, C);
|
|
352
|
-
}), b && x && m && S();
|
|
353
|
-
}
|
|
354
|
-
Le(t) && e.show(), (!x || !v.current) && e.setActiveId(null);
|
|
355
|
-
}), de = i.onCompositionEnd, ke = j((t) => {
|
|
356
|
-
v.current = !0, N.current = !1, de == null || de(t), !t.defaultPrevented && x && S();
|
|
357
|
-
}), fe = i.onMouseDown, De = q(
|
|
358
|
-
a ?? (() => !!(e != null && e.getState().includesBaseElement))
|
|
359
|
-
), Ke = q(l), Re = q(E ?? oe), Me = j((t) => {
|
|
360
|
-
fe == null || fe(t), !t.defaultPrevented && (t.button || t.ctrlKey || e && (De(t) && e.setActiveId(null), Ke(t) && e.setValue(G), Re(t) && lt(t.currentTarget, "mouseup", e.show)));
|
|
361
|
-
}), me = i.onKeyDown, Fe = q(D ?? oe), Be = j((t) => {
|
|
362
|
-
if (me == null || me(t), t.repeat || (v.current = !1), t.defaultPrevented || t.ctrlKey || t.altKey || t.shiftKey || t.metaKey || !e) return;
|
|
363
|
-
const { open: r } = e.getState();
|
|
364
|
-
r || (t.key === "ArrowUp" || t.key === "ArrowDown") && Fe(t) && (t.preventDefault(), e.show());
|
|
365
|
-
}), ve = i.onBlur, He = j((t) => {
|
|
366
|
-
v.current = !1, ve == null || ve(t), t.defaultPrevented;
|
|
367
|
-
}), Ue = we(i.id), Ne = Bt(I) ? I : void 0, je = e.useState((t) => t.activeId === null);
|
|
368
|
-
return i = J(L({
|
|
369
|
-
id: Ue,
|
|
370
|
-
role: "combobox",
|
|
371
|
-
"aria-autocomplete": Ne,
|
|
372
|
-
"aria-haspopup": it(A, "listbox"),
|
|
373
|
-
"aria-expanded": y,
|
|
374
|
-
"aria-controls": A == null ? void 0 : A.id,
|
|
375
|
-
"data-active-item": je || void 0,
|
|
376
|
-
value: G
|
|
377
|
-
}, i), {
|
|
378
|
-
ref: Oe(K, i.ref),
|
|
379
|
-
onChange: Te,
|
|
380
|
-
onCompositionEnd: ke,
|
|
381
|
-
onMouseDown: Me,
|
|
382
|
-
onKeyDown: Be,
|
|
383
|
-
onBlur: He
|
|
384
|
-
}), i = We(J(L({
|
|
385
|
-
store: e,
|
|
386
|
-
focusable: g
|
|
387
|
-
}, i), {
|
|
388
|
-
// Enable inline autocomplete when the user moves from the combobox input
|
|
389
|
-
// to an item.
|
|
390
|
-
moveOnKeyPress: (t) => ct(U, t) ? !1 : (b && Y(!0), !0)
|
|
391
|
-
})), i = $e(L({ store: e }, i)), L({ autoComplete: "off" }, i);
|
|
392
|
-
}
|
|
393
|
-
), ao = xe(function(s) {
|
|
394
|
-
const n = Ut(s);
|
|
395
|
-
return he(Mt, n);
|
|
396
|
-
});
|
|
397
|
-
function lo(o = {}) {
|
|
398
|
-
const s = Rt(o);
|
|
399
|
-
return /* @__PURE__ */ se(Je, { value: s, children: o.children });
|
|
400
|
-
}
|
|
401
|
-
var Nt = "div", jt = Ve(
|
|
402
|
-
function(s) {
|
|
403
|
-
var n = s, { store: e, alwaysVisible: g } = n, f = Pe(n, ["store", "alwaysVisible"]);
|
|
404
|
-
const u = Xe(!0), _ = Ye();
|
|
405
|
-
e = e || _;
|
|
406
|
-
const O = !!e && e === u;
|
|
407
|
-
Ee(
|
|
408
|
-
e,
|
|
409
|
-
process.env.NODE_ENV !== "production" && "ComboboxList must receive a `store` prop or be wrapped in a ComboboxProvider component."
|
|
410
|
-
);
|
|
411
|
-
const P = H(null), T = we(f.id), E = e.useState("mounted"), k = Lt(E, f.hidden, g), D = k ? J(L({}, f.style), { display: "none" }) : f.style, a = e.useState(
|
|
412
|
-
(S) => Array.isArray(S.selectedValue)
|
|
413
|
-
), l = mt(P, "role", f.role), I = (l === "listbox" || l === "tree" || l === "grid") && a || void 0, [i, te] = ye(!1), K = e.useState("contentElement");
|
|
414
|
-
re(() => {
|
|
415
|
-
if (!E) return;
|
|
416
|
-
const S = P.current;
|
|
417
|
-
if (!S || K !== S) return;
|
|
418
|
-
const v = () => {
|
|
419
|
-
te(!!S.querySelector("[role='listbox']"));
|
|
420
|
-
}, N = new MutationObserver(v);
|
|
421
|
-
return N.observe(S, {
|
|
422
|
-
subtree: !0,
|
|
423
|
-
childList: !0,
|
|
424
|
-
attributeFilter: ["role"]
|
|
425
|
-
}), v(), () => N.disconnect();
|
|
426
|
-
}, [E, K]), i || (f = L({
|
|
427
|
-
role: "listbox",
|
|
428
|
-
"aria-multiselectable": I
|
|
429
|
-
}, f)), f = vt(
|
|
430
|
-
f,
|
|
431
|
-
(S) => /* @__PURE__ */ se(Ge, { value: e, children: /* @__PURE__ */ se(Qe.Provider, { value: l, children: S }) }),
|
|
432
|
-
[e, l]
|
|
433
|
-
);
|
|
434
|
-
const X = T && (!u || !O) ? e.setContentElement : null;
|
|
435
|
-
return f = J(L({
|
|
436
|
-
id: T,
|
|
437
|
-
hidden: k
|
|
438
|
-
}, f), {
|
|
439
|
-
ref: Oe(X, P, f.ref),
|
|
440
|
-
style: D
|
|
441
|
-
}), pt(f);
|
|
442
|
-
}
|
|
443
|
-
), io = xe(function(s) {
|
|
444
|
-
const n = jt(s);
|
|
445
|
-
return he(Nt, n);
|
|
446
|
-
});
|
|
447
|
-
export {
|
|
448
|
-
lo as C,
|
|
449
|
-
oo as T,
|
|
450
|
-
ao as a,
|
|
451
|
-
io as b,
|
|
452
|
-
_t as c,
|
|
453
|
-
no as d,
|
|
454
|
-
ro as e,
|
|
455
|
-
uo as f,
|
|
456
|
-
so as g,
|
|
457
|
-
Rt as h,
|
|
458
|
-
jt as u
|
|
459
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as e from "react";
|
|
2
|
-
import { w as l } from "./SSRBase.es-BUXS72ra.js";
|
|
3
|
-
const n = /* @__PURE__ */ new Map([
|
|
4
|
-
[
|
|
5
|
-
"bold",
|
|
6
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z" }))
|
|
7
|
-
],
|
|
8
|
-
[
|
|
9
|
-
"duotone",
|
|
10
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z", opacity: "0.2" }), /* @__PURE__ */ e.createElement("path", { d: "M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z" }))
|
|
11
|
-
],
|
|
12
|
-
[
|
|
13
|
-
"fill",
|
|
14
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z" }))
|
|
15
|
-
],
|
|
16
|
-
[
|
|
17
|
-
"light",
|
|
18
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z" }))
|
|
19
|
-
],
|
|
20
|
-
[
|
|
21
|
-
"regular",
|
|
22
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z" }))
|
|
23
|
-
],
|
|
24
|
-
[
|
|
25
|
-
"thin",
|
|
26
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z" }))
|
|
27
|
-
]
|
|
28
|
-
]), r = e.forwardRef((a, t) => /* @__PURE__ */ e.createElement(l, { ref: t, ...a, weights: n }));
|
|
29
|
-
r.displayName = "MagnifyingGlassIcon";
|
|
30
|
-
export {
|
|
31
|
-
r as s
|
|
32
|
-
};
|
package/dist/Plus.es-DJ5SuqNv.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as e from "react";
|
|
2
|
-
import { w as l } from "./SSRBase.es-BUXS72ra.js";
|
|
3
|
-
const n = /* @__PURE__ */ new Map([
|
|
4
|
-
[
|
|
5
|
-
"bold",
|
|
6
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z" }))
|
|
7
|
-
],
|
|
8
|
-
[
|
|
9
|
-
"duotone",
|
|
10
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
11
|
-
"path",
|
|
12
|
-
{
|
|
13
|
-
d: "M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",
|
|
14
|
-
opacity: "0.2"
|
|
15
|
-
}
|
|
16
|
-
), /* @__PURE__ */ e.createElement("path", { d: "M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z" }))
|
|
17
|
-
],
|
|
18
|
-
[
|
|
19
|
-
"fill",
|
|
20
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z" }))
|
|
21
|
-
],
|
|
22
|
-
[
|
|
23
|
-
"light",
|
|
24
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z" }))
|
|
25
|
-
],
|
|
26
|
-
[
|
|
27
|
-
"regular",
|
|
28
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z" }))
|
|
29
|
-
],
|
|
30
|
-
[
|
|
31
|
-
"thin",
|
|
32
|
-
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z" }))
|
|
33
|
-
]
|
|
34
|
-
]), r = e.forwardRef((a, t) => /* @__PURE__ */ e.createElement(l, { ref: t, ...a, weights: n }));
|
|
35
|
-
r.displayName = "PlusIcon";
|
|
36
|
-
export {
|
|
37
|
-
r as e
|
|
38
|
-
};
|