@wrdagency/blockout 1.0.34 → 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.d.ts +5 -2
- package/dist/components/controls/recurrence-control/index.js +69 -72
- 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/props.d.ts +1 -0
- 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,7 +1,7 @@
|
|
|
1
|
-
import { a as w } from "./UYGDZTLQ-
|
|
2
|
-
import { C as v, u as E } from "./6VRAQV3D-
|
|
3
|
-
import { a as F } from "./YV4JVR4I-
|
|
4
|
-
import { s as V, f as W, c as D, a as N, _ as j, i as A, q, t as H,
|
|
1
|
+
import { a as w } from "./UYGDZTLQ-BBLp-g5T.js";
|
|
2
|
+
import { C as v, u as E } from "./6VRAQV3D-Dzur8C7A.js";
|
|
3
|
+
import { a as F } from "./YV4JVR4I-BqDRuYuU.js";
|
|
4
|
+
import { s as V, f as W, c as D, a as N, _ as j, i as A, q, t as H, k as r, m as a, e as L } from "./LMDWO4NN-5r0-Qq-x.js";
|
|
5
5
|
import { useCallback as O } from "react";
|
|
6
6
|
import { jsx as C } from "react/jsx-runtime";
|
|
7
7
|
var y = "button", z = D(function(c) {
|
|
@@ -28,9 +28,9 @@ var y = "button", z = D(function(c) {
|
|
|
28
28
|
}), T = e.panels.useState(
|
|
29
29
|
(o) => {
|
|
30
30
|
var i;
|
|
31
|
-
return (i = o.items.find((
|
|
31
|
+
return (i = o.items.find((R) => R.tabId === s)) == null ? void 0 : i.id;
|
|
32
32
|
}
|
|
33
|
-
), I = l ? t.shouldRegisterItem : !1, S = e.useState((o) => !!s && o.activeId === s), d = e.useState((o) => !!s && o.selectedId === s), P = e.useState((o) => !!e.item(o.activeId)),
|
|
33
|
+
), I = l ? t.shouldRegisterItem : !1, S = e.useState((o) => !!s && o.activeId === s), d = e.useState((o) => !!s && o.selectedId === s), P = e.useState((o) => !!e.item(o.activeId)), k = S || d && !P, f = d || ((u = t.accessibleWhenDisabled) != null ? u : !0);
|
|
34
34
|
if (F(
|
|
35
35
|
e.combobox || e.composite,
|
|
36
36
|
"virtualFocus"
|
|
@@ -48,7 +48,7 @@ var y = "button", z = D(function(c) {
|
|
|
48
48
|
id: s,
|
|
49
49
|
accessibleWhenDisabled: f,
|
|
50
50
|
store: e.composite,
|
|
51
|
-
shouldRegisterItem:
|
|
51
|
+
shouldRegisterItem: k && I,
|
|
52
52
|
rowId: t.rowId,
|
|
53
53
|
render: t.render
|
|
54
54
|
};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { u as c, T as
|
|
2
|
-
import { u
|
|
3
|
-
import { f as b, c as v, a as f, _ as d, i as
|
|
1
|
+
import { u as c, T as m } from "./UYGDZTLQ-BBLp-g5T.js";
|
|
2
|
+
import { u } from "./5JTVDSTH-Cb-3mCyv.js";
|
|
3
|
+
import { f as b, c as v, a as f, _ as d, i as T, j as l, m as s } from "./LMDWO4NN-5r0-Qq-x.js";
|
|
4
4
|
import { jsx as _ } from "react/jsx-runtime";
|
|
5
5
|
var x = "div", L = v(
|
|
6
6
|
function(a) {
|
|
7
7
|
var t = a, { store: e } = t, o = d(t, ["store"]);
|
|
8
8
|
const n = c();
|
|
9
|
-
e = e || n,
|
|
9
|
+
e = e || n, T(
|
|
10
10
|
e,
|
|
11
11
|
process.env.NODE_ENV !== "production" && "TabList must receive a `store` prop or be wrapped in a TabProvider component."
|
|
12
12
|
);
|
|
13
13
|
const p = e.useState(
|
|
14
14
|
(r) => r.orientation === "both" ? void 0 : r.orientation
|
|
15
15
|
);
|
|
16
|
-
return o =
|
|
16
|
+
return o = l(
|
|
17
17
|
o,
|
|
18
|
-
(r) => /* @__PURE__ */ _(
|
|
18
|
+
(r) => /* @__PURE__ */ _(m, { value: e, children: r }),
|
|
19
19
|
[e]
|
|
20
20
|
), e.composite && (o = s({
|
|
21
21
|
focusable: !1
|
|
22
22
|
}, o)), o = s({
|
|
23
23
|
role: "tablist",
|
|
24
24
|
"aria-orientation": p
|
|
25
|
-
}, o), o =
|
|
25
|
+
}, o), o = u(s({ store: e }, o)), o;
|
|
26
26
|
}
|
|
27
|
-
),
|
|
27
|
+
), C = b(function(a) {
|
|
28
28
|
const t = L(a);
|
|
29
29
|
return f(x, t);
|
|
30
30
|
});
|
|
31
31
|
export {
|
|
32
|
-
|
|
32
|
+
C as T
|
|
33
33
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { g as V, u as q } from "./PFRGBC2K-
|
|
6
|
-
import { a as P } from "./YV4JVR4I-
|
|
7
|
-
import { f as F, c as W, a as z, _ as B, i as G, q as J, e as y,
|
|
1
|
+
import { u as j, T as A } from "./UYGDZTLQ-BBLp-g5T.js";
|
|
2
|
+
import { u as K } from "./KFH4SEIX-CEb2cs5b.js";
|
|
3
|
+
import { u as N } from "./WYCIER3C-eiMqR6-L.js";
|
|
4
|
+
import { u as O } from "./RZ4GPYOB-2HMGtCSt.js";
|
|
5
|
+
import { g as V, u as q } from "./PFRGBC2K-a0iGk9xp.js";
|
|
6
|
+
import { a as P } from "./YV4JVR4I-BqDRuYuU.js";
|
|
7
|
+
import { f as F, c as W, a as z, _ as B, i as G, q as J, e as y, k as T, m as i, j as Q, l as U } from "./LMDWO4NN-5r0-Qq-x.js";
|
|
8
8
|
import { useRef as h, useEffect as w, useState as X, useCallback as Y } from "react";
|
|
9
9
|
import { jsx as Z } from "react/jsx-runtime";
|
|
10
10
|
var $ = "div", ee = W(
|
|
@@ -24,7 +24,7 @@ var $ = "div", ee = W(
|
|
|
24
24
|
"scrollRestoration",
|
|
25
25
|
"scrollElement"
|
|
26
26
|
]);
|
|
27
|
-
const C =
|
|
27
|
+
const C = j();
|
|
28
28
|
t = t || C, G(
|
|
29
29
|
t,
|
|
30
30
|
process.env.NODE_ENV !== "production" && "TabPanel must receive a `store` prop or be wrapped in a TabProvider component."
|
|
@@ -38,7 +38,7 @@ var $ = "div", ee = W(
|
|
|
38
38
|
), D = P(
|
|
39
39
|
t,
|
|
40
40
|
(e) => !!s && e.selectedId === s
|
|
41
|
-
), g =
|
|
41
|
+
), g = N({ open: D }), I = P(g, "mounted"), E = h(
|
|
42
42
|
/* @__PURE__ */ new Map()
|
|
43
43
|
), _ = y(() => {
|
|
44
44
|
const e = v.current;
|
|
@@ -93,7 +93,7 @@ var $ = "div", ee = W(
|
|
|
93
93
|
});
|
|
94
94
|
return r = Q(
|
|
95
95
|
r,
|
|
96
|
-
(e) => /* @__PURE__ */ Z(
|
|
96
|
+
(e) => /* @__PURE__ */ Z(A, { value: t, children: e }),
|
|
97
97
|
[t]
|
|
98
98
|
), r = T(i({
|
|
99
99
|
id: d,
|
|
@@ -107,7 +107,7 @@ var $ = "div", ee = W(
|
|
|
107
107
|
// If the tab panel is rendered as part of another composite widget such
|
|
108
108
|
// as combobox, it should not be focusable.
|
|
109
109
|
focusable: !t.composite && !k
|
|
110
|
-
}, r)), r =
|
|
110
|
+
}, r)), r = K(i({ store: g }, r)), r = O(T(i({ store: t.panels }, r), { getItem: L })), r;
|
|
111
111
|
}
|
|
112
112
|
), ce = F(function(f) {
|
|
113
113
|
const c = ee(f);
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { a as F, P as R } from "./MTZPJQMC-CeWFa7M2.js";
|
|
2
|
+
import { e as U, C as z } from "./P7GR5CS5-DFBp00bC.js";
|
|
3
|
+
import { I as A, U as H, R as p, Q as S, S as b, $ as O, k as y, m as B, T } from "./LMDWO4NN-5r0-Qq-x.js";
|
|
4
|
+
import { createContext as L, useMemo as K } from "react";
|
|
5
|
+
import { c as Q, b as W, a as q } from "./4CMBR7SL-eq3_MGhO.js";
|
|
6
|
+
import { c as w } from "./S43UC3DV-0FmlYtUL.js";
|
|
7
|
+
import { m as D, o as M, c as G, s as f, d as l, g as J, b as j, f as V } from "./YV4JVR4I-BqDRuYuU.js";
|
|
8
|
+
import { b as N } from "./UYGDZTLQ-BBLp-g5T.js";
|
|
9
|
+
import { jsx as X } from "react/jsx-runtime";
|
|
10
|
+
var I = A(
|
|
11
|
+
[R, z],
|
|
12
|
+
[F, U]
|
|
13
|
+
), Y = I.useContext, me = I.useScopedContext, ue = I.useProviderContext, ve = I.ContextProvider, Se = I.ScopedContextProvider, be = L(!1), fe = L(null);
|
|
14
|
+
function Z(e = {}) {
|
|
15
|
+
var d = e, {
|
|
16
|
+
composite: s,
|
|
17
|
+
combobox: c
|
|
18
|
+
} = d, r = H(d, [
|
|
19
|
+
"composite",
|
|
20
|
+
"combobox"
|
|
21
|
+
]);
|
|
22
|
+
const _ = [
|
|
23
|
+
"items",
|
|
24
|
+
"renderedItems",
|
|
25
|
+
"moves",
|
|
26
|
+
"orientation",
|
|
27
|
+
"virtualFocus",
|
|
28
|
+
"includesBaseElement",
|
|
29
|
+
"baseElement",
|
|
30
|
+
"focusLoop",
|
|
31
|
+
"focusShift",
|
|
32
|
+
"focusWrap"
|
|
33
|
+
], x = D(
|
|
34
|
+
r.store,
|
|
35
|
+
M(s, _),
|
|
36
|
+
M(c, _)
|
|
37
|
+
), a = x == null ? void 0 : x.getState(), v = Q(p(b({}, r), {
|
|
38
|
+
store: x,
|
|
39
|
+
// We need to explicitly set the default value of `includesBaseElement` to
|
|
40
|
+
// `false` since we don't want the composite store to default it to `true`
|
|
41
|
+
// when the activeId state is null, which could be the case when rendering
|
|
42
|
+
// combobox with tab.
|
|
43
|
+
includesBaseElement: S(
|
|
44
|
+
r.includesBaseElement,
|
|
45
|
+
a == null ? void 0 : a.includesBaseElement,
|
|
46
|
+
!1
|
|
47
|
+
),
|
|
48
|
+
orientation: S(
|
|
49
|
+
r.orientation,
|
|
50
|
+
a == null ? void 0 : a.orientation,
|
|
51
|
+
"horizontal"
|
|
52
|
+
),
|
|
53
|
+
focusLoop: S(r.focusLoop, a == null ? void 0 : a.focusLoop, !0)
|
|
54
|
+
})), C = W(), k = p(b({}, v.getState()), {
|
|
55
|
+
selectedId: S(
|
|
56
|
+
r.selectedId,
|
|
57
|
+
a == null ? void 0 : a.selectedId,
|
|
58
|
+
r.defaultSelectedId
|
|
59
|
+
),
|
|
60
|
+
selectOnMove: S(
|
|
61
|
+
r.selectOnMove,
|
|
62
|
+
a == null ? void 0 : a.selectOnMove,
|
|
63
|
+
!0
|
|
64
|
+
)
|
|
65
|
+
}), t = G(k, v, x);
|
|
66
|
+
f(
|
|
67
|
+
t,
|
|
68
|
+
() => l(t, ["moves"], () => {
|
|
69
|
+
const { activeId: o, selectOnMove: n } = t.getState();
|
|
70
|
+
if (!n || !o) return;
|
|
71
|
+
const i = v.item(o);
|
|
72
|
+
i && (i.dimmed || i.disabled || t.setState("selectedId", i.id));
|
|
73
|
+
})
|
|
74
|
+
);
|
|
75
|
+
let P = !0;
|
|
76
|
+
f(
|
|
77
|
+
t,
|
|
78
|
+
() => J(t, ["selectedId"], (o, n) => {
|
|
79
|
+
if (!P) {
|
|
80
|
+
P = !0;
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
s && o.selectedId === n.selectedId || t.setState("activeId", o.selectedId);
|
|
84
|
+
})
|
|
85
|
+
), f(
|
|
86
|
+
t,
|
|
87
|
+
() => l(t, ["selectedId", "renderedItems"], (o) => {
|
|
88
|
+
if (o.selectedId !== void 0) return;
|
|
89
|
+
const { activeId: n, renderedItems: i } = t.getState(), m = v.item(n);
|
|
90
|
+
if (m && !m.disabled && !m.dimmed)
|
|
91
|
+
t.setState("selectedId", m.id);
|
|
92
|
+
else {
|
|
93
|
+
const h = i.find(
|
|
94
|
+
(u) => !u.disabled && !u.dimmed
|
|
95
|
+
);
|
|
96
|
+
t.setState("selectedId", h == null ? void 0 : h.id);
|
|
97
|
+
}
|
|
98
|
+
})
|
|
99
|
+
), f(
|
|
100
|
+
t,
|
|
101
|
+
() => l(t, ["renderedItems"], (o) => {
|
|
102
|
+
const n = o.renderedItems;
|
|
103
|
+
if (n.length)
|
|
104
|
+
return l(C, ["renderedItems"], (i) => {
|
|
105
|
+
const m = i.renderedItems;
|
|
106
|
+
m.some((u) => !u.tabId) && m.forEach((u, $) => {
|
|
107
|
+
if (u.tabId) return;
|
|
108
|
+
const E = n[$];
|
|
109
|
+
E && C.renderItem(p(b({}, u), { tabId: E.id }));
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
})
|
|
113
|
+
);
|
|
114
|
+
let g = null;
|
|
115
|
+
return f(t, () => {
|
|
116
|
+
const o = () => {
|
|
117
|
+
g = t.getState().selectedId;
|
|
118
|
+
}, n = () => {
|
|
119
|
+
P = !1, t.setState("selectedId", g);
|
|
120
|
+
};
|
|
121
|
+
if (s && "setSelectElement" in s)
|
|
122
|
+
return O(
|
|
123
|
+
l(s, ["value"], o),
|
|
124
|
+
l(s, ["mounted"], n)
|
|
125
|
+
);
|
|
126
|
+
if (c)
|
|
127
|
+
return O(
|
|
128
|
+
l(c, ["selectedValue"], o),
|
|
129
|
+
l(c, ["mounted"], n)
|
|
130
|
+
);
|
|
131
|
+
}), p(b(b({}, v), t), {
|
|
132
|
+
panels: C,
|
|
133
|
+
setSelectedId: (o) => t.setState("selectedId", o),
|
|
134
|
+
select: (o) => {
|
|
135
|
+
t.setState("selectedId", o), v.move(o);
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
function ee(e, d, s) {
|
|
140
|
+
T(d, [s.composite, s.combobox]), e = q(e, d, s), V(e, s, "selectedId", "setSelectedId"), V(e, s, "selectOnMove");
|
|
141
|
+
const [c, r] = j(() => e.panels, {});
|
|
142
|
+
return T(r, [e, r]), Object.assign(
|
|
143
|
+
K(() => y(B({}, e), { panels: c }), [e, c]),
|
|
144
|
+
{ composite: s.composite, combobox: s.combobox }
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
function te(e = {}) {
|
|
148
|
+
const d = w(), s = Y() || d;
|
|
149
|
+
e = y(B({}, e), {
|
|
150
|
+
composite: e.composite !== void 0 ? e.composite : s,
|
|
151
|
+
combobox: e.combobox !== void 0 ? e.combobox : d
|
|
152
|
+
});
|
|
153
|
+
const [c, r] = j(Z, e);
|
|
154
|
+
return ee(c, r, e);
|
|
155
|
+
}
|
|
156
|
+
function Ie(e = {}) {
|
|
157
|
+
const d = te(e);
|
|
158
|
+
return /* @__PURE__ */ X(N, { value: d, children: e.children });
|
|
159
|
+
}
|
|
160
|
+
export {
|
|
161
|
+
Se as S,
|
|
162
|
+
Ie as T,
|
|
163
|
+
ue as a,
|
|
164
|
+
ve as b,
|
|
165
|
+
me as c,
|
|
166
|
+
be as d,
|
|
167
|
+
fe as e,
|
|
168
|
+
te as f,
|
|
169
|
+
Y as u
|
|
170
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createContext as ve, useContext as
|
|
3
|
-
import { f as L, c as N, a as B, _ as M,
|
|
1
|
+
import { a as pe } from "./S43UC3DV-0FmlYtUL.js";
|
|
2
|
+
import { createContext as ve, useContext as W, useState as ee, useEffect as te, useCallback as fe } from "react";
|
|
3
|
+
import { f as L, c as N, a as B, _ as M, k as P, m as C, r as ge, ac as he, s as Ce, i as q, q as ne, h as R, e as I, ad as oe, j as re, ae as be, w as z, af as Te, l as ke, G as ye, R as Q, Q as F, S as A, a5 as Pe } from "./LMDWO4NN-5r0-Qq-x.js";
|
|
4
4
|
import { jsx as x, jsxs as ae, Fragment as xe } from "react/jsx-runtime";
|
|
5
|
-
import {
|
|
6
|
-
import { u as ue } from "./6VRAQV3D-
|
|
7
|
-
import { a as we, c as Ee, s as Ie, d as _e, b as Oe, f as
|
|
5
|
+
import { u as G, T as se, c as ie, d as Ve, e as Se, f as De } from "./combobox-popover-C6rwSpgq.js";
|
|
6
|
+
import { u as ue } from "./6VRAQV3D-Dzur8C7A.js";
|
|
7
|
+
import { a as we, c as Ee, s as Ie, d as _e, b as Oe, f as J } from "./YV4JVR4I-BqDRuYuU.js";
|
|
8
8
|
import { t as Ke } from "./7PRQYBBV-91wrWGjk.js";
|
|
9
|
-
import { u as Re } from "./5JTVDSTH-
|
|
10
|
-
import { b as Le } from "./PFRGBC2K-
|
|
11
|
-
import { c as Ne,
|
|
12
|
-
import { R as Me } from "./G7GW6PWC-
|
|
13
|
-
var je = ve(!1),
|
|
9
|
+
import { u as Re } from "./5JTVDSTH-Cb-3mCyv.js";
|
|
10
|
+
import { b as Le } from "./PFRGBC2K-a0iGk9xp.js";
|
|
11
|
+
import { c as Ne, a as Be } from "./4CMBR7SL-eq3_MGhO.js";
|
|
12
|
+
import { R as Me } from "./G7GW6PWC-BbXlQk2u.js";
|
|
13
|
+
var je = ve(!1), $e = "span", Ue = /* @__PURE__ */ x(
|
|
14
14
|
"svg",
|
|
15
15
|
{
|
|
16
16
|
display: "block",
|
|
@@ -25,15 +25,15 @@ var je = ve(!1), Ue = "span", $e = /* @__PURE__ */ x(
|
|
|
25
25
|
children: /* @__PURE__ */ x("polyline", { points: "4,8 7,12 12,4" })
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
|
-
function
|
|
29
|
-
return o.checked ? o.children ||
|
|
28
|
+
function Fe(o) {
|
|
29
|
+
return o.checked ? o.children || Ue : typeof o.children == "function" ? o.children : null;
|
|
30
30
|
}
|
|
31
31
|
var le = N(
|
|
32
32
|
function(r) {
|
|
33
33
|
var n = r, { store: e, checked: a } = n, s = M(n, ["store", "checked"]);
|
|
34
|
-
const c =
|
|
34
|
+
const c = W(je);
|
|
35
35
|
a = a ?? c;
|
|
36
|
-
const i =
|
|
36
|
+
const i = Fe({ checked: a, children: s.children });
|
|
37
37
|
return s = P(C({
|
|
38
38
|
"aria-hidden": !0
|
|
39
39
|
}, s), {
|
|
@@ -47,22 +47,22 @@ var le = N(
|
|
|
47
47
|
}
|
|
48
48
|
), ht = L(function(r) {
|
|
49
49
|
const n = le(r);
|
|
50
|
-
return B(
|
|
51
|
-
}),
|
|
50
|
+
return B($e, n);
|
|
51
|
+
}), We = "span", qe = N(function(r) {
|
|
52
52
|
var n = r, { store: e, checked: a } = n, s = M(n, ["store", "checked"]);
|
|
53
|
-
const c =
|
|
53
|
+
const c = W(pe);
|
|
54
54
|
return a = a ?? c, s = le(P(C({}, s), { checked: a })), s;
|
|
55
55
|
}), Ct = L(function(r) {
|
|
56
56
|
const n = qe(r);
|
|
57
|
-
return B(
|
|
57
|
+
return B(We, n);
|
|
58
58
|
});
|
|
59
|
-
function
|
|
59
|
+
function H() {
|
|
60
60
|
const [o, r] = ee(!1);
|
|
61
61
|
return te(() => {
|
|
62
62
|
r(he());
|
|
63
63
|
}, []), o;
|
|
64
64
|
}
|
|
65
|
-
var Ae = "div",
|
|
65
|
+
var Ae = "div", Ge = N(function(r) {
|
|
66
66
|
var n = r, {
|
|
67
67
|
store: e,
|
|
68
68
|
value: a,
|
|
@@ -74,12 +74,12 @@ var Ae = "div", He = N(function(r) {
|
|
|
74
74
|
"getItem",
|
|
75
75
|
"removeOnKeyPress"
|
|
76
76
|
]);
|
|
77
|
-
const p =
|
|
77
|
+
const p = G();
|
|
78
78
|
e = e || p, q(
|
|
79
79
|
e,
|
|
80
80
|
process.env.NODE_ENV !== "production" && "Tag must be wrapped in a TagList component."
|
|
81
81
|
);
|
|
82
|
-
const u = ne(i.id), l =
|
|
82
|
+
const u = ne(i.id), l = H(), v = fe(
|
|
83
83
|
(t) => {
|
|
84
84
|
const d = P(C({}, t), { value: a });
|
|
85
85
|
return s ? s(d) : d;
|
|
@@ -114,7 +114,7 @@ var Ae = "div", He = N(function(r) {
|
|
|
114
114
|
})), i;
|
|
115
115
|
}), bt = Ce(
|
|
116
116
|
L(function(r) {
|
|
117
|
-
const n =
|
|
117
|
+
const n = Ge(r);
|
|
118
118
|
return B(Ae, n);
|
|
119
119
|
})
|
|
120
120
|
);
|
|
@@ -124,8 +124,8 @@ function ce(o) {
|
|
|
124
124
|
return ce(async () => (await (r == null ? void 0 : r()), o));
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
var
|
|
128
|
-
function
|
|
127
|
+
var $ = He();
|
|
128
|
+
function He({
|
|
129
129
|
limit: o = 100
|
|
130
130
|
} = {}) {
|
|
131
131
|
const r = [];
|
|
@@ -162,9 +162,9 @@ function Ze({
|
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
var
|
|
165
|
+
var Ze = "input", ze = [`
|
|
166
166
|
`, ";", ",", /\s/];
|
|
167
|
-
function X(o, r =
|
|
167
|
+
function X(o, r = ze) {
|
|
168
168
|
const n = o === void 0 ? r : o;
|
|
169
169
|
return n ? Ke(n) : [];
|
|
170
170
|
}
|
|
@@ -178,7 +178,7 @@ function Y(o, r) {
|
|
|
178
178
|
}
|
|
179
179
|
return [];
|
|
180
180
|
}
|
|
181
|
-
var
|
|
181
|
+
var Qe = N(
|
|
182
182
|
function(r) {
|
|
183
183
|
var n = r, {
|
|
184
184
|
store: e,
|
|
@@ -197,7 +197,7 @@ var Je = N(
|
|
|
197
197
|
"setValueOnChange",
|
|
198
198
|
"removeOnBackspace"
|
|
199
199
|
]);
|
|
200
|
-
const v =
|
|
200
|
+
const v = G();
|
|
201
201
|
e = e || v, q(
|
|
202
202
|
e,
|
|
203
203
|
process.env.NODE_ENV !== "production" && "TagInput must receive a `store` prop or be wrapped in a TagProvider component."
|
|
@@ -212,31 +212,31 @@ var Je = N(
|
|
|
212
212
|
}
|
|
213
213
|
}), D = l.onChange, t = R(p), d = R(i), h = I((m) => {
|
|
214
214
|
if (D == null || D(m), m.defaultPrevented || !e) return;
|
|
215
|
-
const { value: k } = e.getState(), w = be(m), y = m.currentTarget, { start: S, end: E } =
|
|
216
|
-
if (t(m) &&
|
|
217
|
-
if (e.setValue(
|
|
215
|
+
const { value: k } = e.getState(), w = be(m), y = m.currentTarget, { start: S, end: E } = z(y), { value: U } = y;
|
|
216
|
+
if (t(m) && $.execute(() => {
|
|
217
|
+
if (e.setValue(U), queueMicrotask(() => {
|
|
218
218
|
Te(y, S, E);
|
|
219
|
-
}),
|
|
219
|
+
}), U !== k)
|
|
220
220
|
return () => e.setValue(k);
|
|
221
|
-
}, w), S === E && S ===
|
|
221
|
+
}, w), S === E && S === U.length) {
|
|
222
222
|
const de = X(s);
|
|
223
|
-
let K = Y(
|
|
224
|
-
const
|
|
223
|
+
let K = Y(U, de);
|
|
224
|
+
const Z = K.pop() || "";
|
|
225
225
|
K = K.map((j) => j.trim()).filter((j) => j !== "");
|
|
226
226
|
const me = Object.assign(m, { values: K });
|
|
227
227
|
if (K.length && d(me)) {
|
|
228
228
|
m.preventDefault();
|
|
229
229
|
for (const j of K)
|
|
230
230
|
e.addValue(j);
|
|
231
|
-
|
|
232
|
-
if (e.setValue(
|
|
231
|
+
$.execute(() => {
|
|
232
|
+
if (e.setValue(Z), Z !== k)
|
|
233
233
|
return () => e.setValue(k);
|
|
234
234
|
}, w);
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
}), V = l.onKeyDown, _ = R(u), O = I((m) => {
|
|
238
238
|
if (V == null || V(m), !m.defaultPrevented && m.key === "Backspace" && _(m)) {
|
|
239
|
-
const { start: k, end: w } =
|
|
239
|
+
const { start: k, end: w } = z(m.currentTarget);
|
|
240
240
|
if (!(k === w && k === 0)) return;
|
|
241
241
|
e.setValues((S) => S.length ? S.slice(0, -1) : S);
|
|
242
242
|
}
|
|
@@ -251,9 +251,9 @@ var Je = N(
|
|
|
251
251
|
}), l = ue(C({ store: e, tabbable: a }, l)), l;
|
|
252
252
|
}
|
|
253
253
|
), Tt = L(function(r) {
|
|
254
|
-
const n =
|
|
255
|
-
return B(
|
|
256
|
-
}),
|
|
254
|
+
const n = Qe(r);
|
|
255
|
+
return B(Ze, n);
|
|
256
|
+
}), Je = "div", Xe = N(
|
|
257
257
|
function(r) {
|
|
258
258
|
var n = r, { store: e } = n, a = M(n, ["store"]);
|
|
259
259
|
const s = Ve();
|
|
@@ -272,7 +272,7 @@ var Je = N(
|
|
|
272
272
|
}), p = a.onKeyDown, u = I((t) => {
|
|
273
273
|
if (p == null || p(t), t.defaultPrevented) return;
|
|
274
274
|
const d = !oe(), h = t.key === "z" || t.key === "Z", V = d ? t.ctrlKey : t.metaKey, _ = t.shiftKey && h || d && t.key === "y";
|
|
275
|
-
V && _ ? (t.preventDefault(),
|
|
275
|
+
V && _ ? (t.preventDefault(), $.redo()) : V && h && (t.preventDefault(), $.undo());
|
|
276
276
|
});
|
|
277
277
|
a = re(
|
|
278
278
|
a,
|
|
@@ -293,7 +293,7 @@ var Je = N(
|
|
|
293
293
|
const d = t;
|
|
294
294
|
b[d] = a[d], delete a[d];
|
|
295
295
|
}
|
|
296
|
-
const T =
|
|
296
|
+
const T = H(), D = /* @__PURE__ */ ae(xe, { children: [
|
|
297
297
|
/* @__PURE__ */ x(
|
|
298
298
|
"div",
|
|
299
299
|
P(C({
|
|
@@ -316,15 +316,15 @@ var Je = N(
|
|
|
316
316
|
}
|
|
317
317
|
), kt = L(function(r) {
|
|
318
318
|
const n = Xe(r);
|
|
319
|
-
return B(
|
|
319
|
+
return B(Je, n);
|
|
320
320
|
});
|
|
321
321
|
function Ye(o = {}) {
|
|
322
322
|
var r;
|
|
323
|
-
const n = (r = o.store) == null ? void 0 : r.getState(), e = Ne(o), a =
|
|
324
|
-
inputElement:
|
|
325
|
-
labelElement:
|
|
326
|
-
value:
|
|
327
|
-
values:
|
|
323
|
+
const n = (r = o.store) == null ? void 0 : r.getState(), e = Ne(o), a = Q(A({}, e.getState()), {
|
|
324
|
+
inputElement: F(n == null ? void 0 : n.inputElement, null),
|
|
325
|
+
labelElement: F(n == null ? void 0 : n.labelElement, null),
|
|
326
|
+
value: F(o.value, n == null ? void 0 : n.value, o.defaultValue, ""),
|
|
327
|
+
values: F(
|
|
328
328
|
o.values,
|
|
329
329
|
n == null ? void 0 : n.values,
|
|
330
330
|
o.defaultValues,
|
|
@@ -339,7 +339,7 @@ function Ye(o = {}) {
|
|
|
339
339
|
);
|
|
340
340
|
const c = (i) => {
|
|
341
341
|
const { values: p } = s.getState();
|
|
342
|
-
|
|
342
|
+
$.execute(() => {
|
|
343
343
|
let u = !0;
|
|
344
344
|
if (s.setState("values", (l) => {
|
|
345
345
|
const v = Pe(i, l);
|
|
@@ -351,7 +351,7 @@ function Ye(o = {}) {
|
|
|
351
351
|
};
|
|
352
352
|
});
|
|
353
353
|
};
|
|
354
|
-
return
|
|
354
|
+
return Q(A(A({}, e), s), {
|
|
355
355
|
setInputElement: (i) => s.setState("inputElement", i),
|
|
356
356
|
setLabelElement: (i) => s.setState("labelElement", i),
|
|
357
357
|
setValue: (i) => s.setState("value", i),
|
|
@@ -364,7 +364,7 @@ function Ye(o = {}) {
|
|
|
364
364
|
});
|
|
365
365
|
}
|
|
366
366
|
function et(o, r, n) {
|
|
367
|
-
return
|
|
367
|
+
return J(o, n, "value", "setValue"), J(o, n, "values", "setValues"), Be(o, r, n);
|
|
368
368
|
}
|
|
369
369
|
function tt(o = {}) {
|
|
370
370
|
const [r, n] = Oe(Ye, o);
|
|
@@ -385,12 +385,12 @@ var nt = "button", ot = N(
|
|
|
385
385
|
"value",
|
|
386
386
|
"removeOnClick"
|
|
387
387
|
]);
|
|
388
|
-
const i =
|
|
388
|
+
const i = G();
|
|
389
389
|
e = e || i, q(
|
|
390
390
|
e,
|
|
391
391
|
process.env.NODE_ENV !== "production" && "TagRemove must receive a `store` prop or be wrapped in a TagProvider component."
|
|
392
392
|
);
|
|
393
|
-
const p = ne(c.id), u =
|
|
393
|
+
const p = ne(c.id), u = W(ie), l = W(se), v = l !== null, f = a ?? l;
|
|
394
394
|
te(() => (u == null || u(p), () => u == null ? void 0 : u()), [p, u]);
|
|
395
395
|
const g = c.onClick, b = R(s), T = I((d) => {
|
|
396
396
|
if (g == null || g(d), d.defaultPrevented || !e || !f || !b(d)) return;
|
|
@@ -414,7 +414,7 @@ var nt = "button", ot = N(
|
|
|
414
414
|
/* @__PURE__ */ x("path", { d: "M10.052 9L16 15M15.948 9L10 15" })
|
|
415
415
|
]
|
|
416
416
|
}
|
|
417
|
-
), t =
|
|
417
|
+
), t = H() && v;
|
|
418
418
|
return c = P(C({
|
|
419
419
|
id: p,
|
|
420
420
|
children: D,
|
|
@@ -439,8 +439,8 @@ export {
|
|
|
439
439
|
Tt as d,
|
|
440
440
|
je as e,
|
|
441
441
|
ht as f,
|
|
442
|
-
|
|
443
|
-
|
|
442
|
+
Ge as g,
|
|
443
|
+
Qe as h,
|
|
444
444
|
Xe as i,
|
|
445
445
|
ot as j,
|
|
446
446
|
le as u
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { b as T } from "./YV4JVR4I-
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
import { u as
|
|
6
|
-
import { jsx as
|
|
7
|
-
function
|
|
1
|
+
import { c as v, a as b } from "./4CMBR7SL-eq3_MGhO.js";
|
|
2
|
+
import { b as T } from "./YV4JVR4I-BqDRuYuU.js";
|
|
3
|
+
import { R as S, Q as i, S as _, f as P, c as x, a as C, _ as L, j as h, m as u } from "./LMDWO4NN-5r0-Qq-x.js";
|
|
4
|
+
import { a as j, T as R } from "./A3WPL2ZJ-BZG8SEll.js";
|
|
5
|
+
import { u as V } from "./5JTVDSTH-Cb-3mCyv.js";
|
|
6
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
7
|
+
function E(t = {}) {
|
|
8
8
|
var r;
|
|
9
9
|
const o = (r = t.store) == null ? void 0 : r.getState();
|
|
10
|
-
return
|
|
10
|
+
return v(S(_({}, t), {
|
|
11
11
|
orientation: i(
|
|
12
12
|
t.orientation,
|
|
13
13
|
o == null ? void 0 : o.orientation,
|
|
@@ -16,14 +16,14 @@ function F(t = {}) {
|
|
|
16
16
|
focusLoop: i(t.focusLoop, o == null ? void 0 : o.focusLoop, !0)
|
|
17
17
|
}));
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
return
|
|
19
|
+
function F(t, r, o) {
|
|
20
|
+
return b(t, r, o);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
const [r, o] = T(
|
|
24
|
-
return
|
|
22
|
+
function k(t = {}) {
|
|
23
|
+
const [r, o] = T(E, t);
|
|
24
|
+
return F(r, o, t);
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var w = "div", y = x(
|
|
27
27
|
function(r) {
|
|
28
28
|
var o = r, {
|
|
29
29
|
store: n,
|
|
@@ -38,31 +38,31 @@ var k = "div", w = x(
|
|
|
38
38
|
"focusLoop",
|
|
39
39
|
"rtl"
|
|
40
40
|
]);
|
|
41
|
-
const m =
|
|
41
|
+
const m = j();
|
|
42
42
|
n = n || m;
|
|
43
|
-
const a =
|
|
43
|
+
const a = k({
|
|
44
44
|
store: n,
|
|
45
45
|
orientation: l,
|
|
46
46
|
virtualFocus: c,
|
|
47
47
|
focusLoop: p,
|
|
48
48
|
rtl: f
|
|
49
|
-
}),
|
|
49
|
+
}), d = a.useState(
|
|
50
50
|
(s) => s.orientation === "both" ? void 0 : s.orientation
|
|
51
51
|
);
|
|
52
52
|
return e = h(
|
|
53
53
|
e,
|
|
54
|
-
(s) => /* @__PURE__ */
|
|
54
|
+
(s) => /* @__PURE__ */ g(R, { value: a, children: s }),
|
|
55
55
|
[a]
|
|
56
56
|
), e = u({
|
|
57
57
|
role: "toolbar",
|
|
58
|
-
"aria-orientation":
|
|
59
|
-
}, e), e =
|
|
58
|
+
"aria-orientation": d
|
|
59
|
+
}, e), e = V(u({ store: a }, e)), e;
|
|
60
60
|
}
|
|
61
61
|
), q = P(function(r) {
|
|
62
|
-
const o =
|
|
63
|
-
return C(
|
|
62
|
+
const o = y(r);
|
|
63
|
+
return C(w, o);
|
|
64
64
|
});
|
|
65
65
|
export {
|
|
66
66
|
q as T,
|
|
67
|
-
|
|
67
|
+
k as u
|
|
68
68
|
};
|