@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,52 +1,48 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import { Colourway as _ } from "../../../primitives/colourway/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import { m as O, i as R, j } from "../../../style-nHUEFY3u.js";
|
|
4
|
+
import { noop as k } from "../../../utils/noop.js";
|
|
5
|
+
import { useState as g, useMemo as B } from "react";
|
|
6
|
+
import "../../../primitives/link/index.js";
|
|
7
|
+
import "../../../primitives/icon-label/index.js";
|
|
8
|
+
import "../../../primitives/nav-link/index.js";
|
|
8
9
|
import "../../../primitives/popover/index.js";
|
|
9
|
-
|
|
10
|
+
import '../../../assets/style2.css';import '../../../assets/style.css';/* empty css */
|
|
10
11
|
import "../../../primitives/scroll-area/index.js";
|
|
11
12
|
import "../../../primitives/symbol/index.js";
|
|
13
|
+
import "../../../primitives/tooltip/index.js";
|
|
14
|
+
import "../../../primitives/truncate/index.js";
|
|
12
15
|
/* empty css */
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
/* empty css */
|
|
16
|
-
import { o as k } from "../../../Check.es-CMkTf2It.js";
|
|
17
|
-
import { e as B } from "../../../Plus.es-DJ5SuqNv.js";
|
|
18
|
-
import { e as I } from "../../../X.es-TbGOnXOO.js";
|
|
19
|
-
import { m as j } from "../../../match-sorter.esm-MNVE8H_6.js";
|
|
16
|
+
import "../../../primitives/visually-hidden/index.js";
|
|
17
|
+
import { o as I } from "../../../Check.es-CMkTf2It.js";
|
|
20
18
|
import { BaseControl as L } from "../base-control/index.js";
|
|
21
19
|
import { useBaseControlProps as M } from "../base-control/props.js";
|
|
22
|
-
import { T as A, a as K, b as U, c as $, d as q, C as D } from "../../../tag-remove-
|
|
20
|
+
import { T as A, a as K, b as U, c as $, d as q, C as D } from "../../../tag-remove-BgRiBB8K.js";
|
|
23
21
|
import { normalizeTag as d, normalizeCreateTagRules as E } from "./props.js";
|
|
24
|
-
|
|
25
|
-
import { C as
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
function wo(f) {
|
|
29
|
-
const { baseProps: v, controlProps: b } = M(f, {
|
|
22
|
+
import { C as F, a as G, b as H } from "../../../combobox-popover-C6rwSpgq.js";
|
|
23
|
+
import { C as h } from "../../../JMHAJKUZ-B_CxAFEI.js";
|
|
24
|
+
function bo(v) {
|
|
25
|
+
const { baseProps: b, controlProps: f } = M(v, {
|
|
30
26
|
className: "component-tag-control"
|
|
31
27
|
}), [a, C] = g(""), [N, w] = g([]), {
|
|
32
28
|
value: x = [],
|
|
33
|
-
onChangeValue: T =
|
|
29
|
+
onChangeValue: T = k,
|
|
34
30
|
options: P = [],
|
|
35
31
|
create: S = !1
|
|
36
|
-
} =
|
|
37
|
-
baseSort: (o,
|
|
32
|
+
} = f, m = [...P.map(d), ...N], p = x.map(d), r = E(S), s = B(() => O(m, a, {
|
|
33
|
+
baseSort: (o, l) => o.index < l.index ? -1 : 1,
|
|
38
34
|
keys: ["label", "value"]
|
|
39
|
-
}), [a]), i = !
|
|
40
|
-
const
|
|
41
|
-
const u =
|
|
35
|
+
}), [a]), i = !s.length && r.allow(a), V = s.length > 0 || i, y = (o) => {
|
|
36
|
+
const l = o.map((c) => {
|
|
37
|
+
const u = m.find((n) => n.value == c);
|
|
42
38
|
if (u)
|
|
43
39
|
return u;
|
|
44
|
-
if (
|
|
45
|
-
const
|
|
46
|
-
return w((z) => [...z,
|
|
40
|
+
if (r.allow(c)) {
|
|
41
|
+
const n = r.create(c);
|
|
42
|
+
return w((z) => [...z, n]), n;
|
|
47
43
|
}
|
|
48
44
|
}).filter(Boolean);
|
|
49
|
-
T(
|
|
45
|
+
T(l);
|
|
50
46
|
};
|
|
51
47
|
return /* @__PURE__ */ e(
|
|
52
48
|
A,
|
|
@@ -55,7 +51,7 @@ function wo(f) {
|
|
|
55
51
|
setValues: y,
|
|
56
52
|
value: a,
|
|
57
53
|
setValue: C,
|
|
58
|
-
children: /* @__PURE__ */ e(L, { ...
|
|
54
|
+
children: /* @__PURE__ */ e(L, { ...b, children: /* @__PURE__ */ t(K, { className: "component-tag-control__box", children: [
|
|
59
55
|
p.map((o) => /* @__PURE__ */ t(
|
|
60
56
|
_,
|
|
61
57
|
{
|
|
@@ -65,7 +61,7 @@ function wo(f) {
|
|
|
65
61
|
className: "component-tag-control__tag",
|
|
66
62
|
children: [
|
|
67
63
|
/* @__PURE__ */ e("span", { className: "component-tag-control__tag__label", children: o.label }),
|
|
68
|
-
/* @__PURE__ */ e($, { className: "component-tag-control__tag__remove", children: /* @__PURE__ */ e(
|
|
64
|
+
/* @__PURE__ */ e($, { className: "component-tag-control__tag__remove", children: /* @__PURE__ */ e(R, {}) })
|
|
69
65
|
]
|
|
70
66
|
},
|
|
71
67
|
o.value
|
|
@@ -94,7 +90,7 @@ function wo(f) {
|
|
|
94
90
|
gutter: 8,
|
|
95
91
|
overflowPadding: 4,
|
|
96
92
|
children: [
|
|
97
|
-
|
|
93
|
+
s.map((o) => /* @__PURE__ */ t(
|
|
98
94
|
h,
|
|
99
95
|
{
|
|
100
96
|
value: String(o.value),
|
|
@@ -108,7 +104,7 @@ function wo(f) {
|
|
|
108
104
|
}
|
|
109
105
|
),
|
|
110
106
|
/* @__PURE__ */ e("span", { className: "component-tag-control__option__label", children: o.label }),
|
|
111
|
-
/* @__PURE__ */ e(D, { className: "component-tag-control__option__check", children: /* @__PURE__ */ e(
|
|
107
|
+
/* @__PURE__ */ e(D, { className: "component-tag-control__option__check", children: /* @__PURE__ */ e(I, {}) })
|
|
112
108
|
]
|
|
113
109
|
},
|
|
114
110
|
o.value
|
|
@@ -119,7 +115,7 @@ function wo(f) {
|
|
|
119
115
|
value: a,
|
|
120
116
|
className: "component-tag-control__option component-tag-control__option--create",
|
|
121
117
|
children: [
|
|
122
|
-
/* @__PURE__ */ e(
|
|
118
|
+
/* @__PURE__ */ e(j, { className: "component-tag-control__option--add" }),
|
|
123
119
|
/* @__PURE__ */ t("span", { className: "component-tag-control__option__label", children: [
|
|
124
120
|
'Add "',
|
|
125
121
|
a.toUpperCase(),
|
|
@@ -137,5 +133,5 @@ function wo(f) {
|
|
|
137
133
|
);
|
|
138
134
|
}
|
|
139
135
|
export {
|
|
140
|
-
|
|
136
|
+
bo as TagControl
|
|
141
137
|
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import "../../../primitives/colourway/index.js";
|
|
3
3
|
import { getRandomTheme as t } from "../../../primitives/colourway/util.js";
|
|
4
|
+
import "../../../style-nHUEFY3u.js";
|
|
4
5
|
import "react";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
import "../../../primitives/link/index.js";
|
|
7
|
+
import "../../../primitives/icon-label/index.js";
|
|
8
|
+
import "../../../primitives/nav-link/index.js";
|
|
8
9
|
import "../../../primitives/popover/index.js";
|
|
9
|
-
|
|
10
|
+
import { slugify as i } from "../../../utils/string.js";
|
|
11
|
+
import '../../../assets/style2.css';import '../../../assets/style.css';/* empty css */
|
|
10
12
|
import "../../../primitives/scroll-area/index.js";
|
|
11
13
|
import "../../../primitives/symbol/index.js";
|
|
14
|
+
import "../../../primitives/tooltip/index.js";
|
|
15
|
+
import "../../../primitives/truncate/index.js";
|
|
12
16
|
/* empty css */
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
/* empty css */
|
|
16
|
-
import { slugify as i } from "../../../utils/string.js";
|
|
17
|
-
function S(r) {
|
|
17
|
+
import "../../../primitives/visually-hidden/index.js";
|
|
18
|
+
function U(r) {
|
|
18
19
|
return typeof r == "string" || typeof r == "number" ? {
|
|
19
20
|
value: r,
|
|
20
21
|
label: String(r),
|
|
@@ -25,7 +26,7 @@ function S(r) {
|
|
|
25
26
|
...r
|
|
26
27
|
};
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
+
function x(r) {
|
|
29
30
|
return {
|
|
30
31
|
create: (e) => {
|
|
31
32
|
var o = e;
|
|
@@ -45,6 +46,6 @@ function U(r) {
|
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
48
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
x as normalizeCreateTagRules,
|
|
50
|
+
U as normalizeTag
|
|
50
51
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { noop as r } from "../../../utils/noop.js";
|
|
3
3
|
import { BaseControl as m } from "../base-control/index.js";
|
|
4
4
|
import { useBaseControlProps as c } from "../base-control/props.js";
|
|
5
|
-
import '../../../assets/
|
|
5
|
+
import '../../../assets/style6.css';/* empty css */
|
|
6
6
|
const x = (t) => {
|
|
7
7
|
const { baseProps: e, controlProps: s } = c(t, {
|
|
8
8
|
className: "component-text-control"
|
|
@@ -2,7 +2,7 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { noop as e } from "../../../utils/noop.js";
|
|
3
3
|
import { BaseControl as c } from "../base-control/index.js";
|
|
4
4
|
import { useBaseControlProps as m } from "../base-control/props.js";
|
|
5
|
-
import '../../../assets/
|
|
5
|
+
import '../../../assets/styles.css';/* empty css */
|
|
6
6
|
const f = (n) => {
|
|
7
7
|
const { baseProps: t, controlProps: a } = m(n, {
|
|
8
8
|
className: "component-textarea-control"
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as t, jsxs as b } from "react/jsx-runtime";
|
|
2
2
|
import { cn as _ } from "../../../utils/css.js";
|
|
3
|
-
import
|
|
3
|
+
import "../../../primitives/colourway/index.js";
|
|
4
|
+
import "../../../style-nHUEFY3u.js";
|
|
4
5
|
import { noop as c } from "../../../utils/noop.js";
|
|
5
6
|
import { useRef as C } from "react";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
import "../../../primitives/link/index.js";
|
|
8
|
+
import "../../../primitives/icon-label/index.js";
|
|
9
|
+
import "../../../primitives/nav-link/index.js";
|
|
9
10
|
import "../../../primitives/popover/index.js";
|
|
10
|
-
|
|
11
|
+
import '../../../assets/style2.css';import '../../../assets/style.css';/* empty css */
|
|
11
12
|
import "../../../primitives/scroll-area/index.js";
|
|
12
13
|
import "../../../primitives/symbol/index.js";
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
import "../../../primitives/tooltip/index.js";
|
|
15
|
+
import "../../../primitives/truncate/index.js";
|
|
15
16
|
/* empty css */
|
|
16
17
|
import { VisuallyHidden as k } from "../../../primitives/visually-hidden/index.js";
|
|
17
18
|
import { BaseControl as y } from "../base-control/index.js";
|
|
18
19
|
import { useBaseControlProps as x } from "../base-control/props.js";
|
|
19
|
-
/* empty css */
|
|
20
20
|
const E = (s) => {
|
|
21
21
|
const { baseProps: m, controlProps: p } = x(s, {
|
|
22
22
|
className: "component-toggle-control"
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as e, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import "../../../primitives/colourway/index.js";
|
|
3
|
+
import "../../../style-nHUEFY3u.js";
|
|
3
4
|
import { noop as s } from "../../../utils/noop.js";
|
|
4
5
|
import { useMemo as N } from "react";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
import "../../../primitives/link/index.js";
|
|
7
|
+
import "../../../primitives/icon-label/index.js";
|
|
8
|
+
import "../../../primitives/nav-link/index.js";
|
|
8
9
|
import "../../../primitives/popover/index.js";
|
|
9
|
-
|
|
10
|
+
import '../../../assets/style2.css';import '../../../assets/style.css';/* empty css */
|
|
10
11
|
import "../../../primitives/scroll-area/index.js";
|
|
11
12
|
import "../../../primitives/symbol/index.js";
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
import "../../../primitives/tooltip/index.js";
|
|
14
|
+
import "../../../primitives/truncate/index.js";
|
|
14
15
|
/* empty css */
|
|
15
16
|
import { VisuallyHidden as k } from "../../../primitives/visually-hidden/index.js";
|
|
16
17
|
import { normalizeOption as v } from "../../../types/options.js";
|
|
17
18
|
import { BaseControl as x } from "../base-control/index.js";
|
|
18
19
|
import { useBaseControlProps as P } from "../base-control/props.js";
|
|
19
|
-
/* empty css */
|
|
20
20
|
function K(a) {
|
|
21
21
|
const { baseProps: c, controlProps: m } = P(a, {
|
|
22
22
|
className: "component-toggle-group-control"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Bounds2D } from '../../types/math';
|
|
2
|
+
import { DashboardLayout } from './types';
|
|
3
|
+
type DashboardContext = {
|
|
4
|
+
layout: DashboardLayout;
|
|
5
|
+
setLayout: (layout: DashboardLayout) => void;
|
|
6
|
+
isEditing: boolean;
|
|
7
|
+
setIsEditing: (isEditing: boolean) => void;
|
|
8
|
+
columnCount: number;
|
|
9
|
+
columnWidth: number;
|
|
10
|
+
rowHeight: number;
|
|
11
|
+
bounds: Bounds2D;
|
|
12
|
+
};
|
|
13
|
+
export declare const DASHBOARD_CONTEXT: import('react').Context<DashboardContext>;
|
|
14
|
+
export declare const useDashboard: () => DashboardContext;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
|
+
import { DashboardLayout } from './types';
|
|
3
|
+
interface GridProps extends PropsWithChildren {
|
|
4
|
+
layout: DashboardLayout;
|
|
5
|
+
onLayoutChange?: (layout: DashboardLayout) => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const Grid: FC<GridProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { jsxs as l, jsx as r, Fragment as _ } from "react/jsx-runtime";
|
|
2
|
+
import { unique as D } from "../../utils/array.js";
|
|
3
|
+
import { cn as P } from "../../utils/css.js";
|
|
4
|
+
import { noop as j } from "../../utils/noop.js";
|
|
5
|
+
import { titleCase as $ } from "../../utils/string.js";
|
|
6
|
+
import * as e from "react";
|
|
7
|
+
import { useRef as G, useState as f, useEffect as X } from "react";
|
|
8
|
+
import { w as v } from "../../SSRBase.es-BUXS72ra.js";
|
|
9
|
+
import { B as u, j as I } from "../../style-nHUEFY3u.js";
|
|
10
|
+
import { Dialog as J } from "../dialog/index.js";
|
|
11
|
+
import { DASHBOARD_CONTEXT as K } from "./context.js";
|
|
12
|
+
const Q = /* @__PURE__ */ new Map([
|
|
13
|
+
[
|
|
14
|
+
"bold",
|
|
15
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M78,36a42,42,0,1,0,42,42A42,42,0,0,0,78,36Zm0,60A18,18,0,1,1,96,78,18,18,0,0,1,78,96Zm100,24a42,42,0,1,0-42-42A42,42,0,0,0,178,120Zm0-60a18,18,0,1,1-18,18A18,18,0,0,1,178,60ZM78,136a42,42,0,1,0,42,42A42,42,0,0,0,78,136Zm0,60a18,18,0,1,1,18-18A18,18,0,0,1,78,196Zm100-60a42,42,0,1,0,42,42A42,42,0,0,0,178,136Zm0,60a18,18,0,1,1,18-18A18,18,0,0,1,178,196Z" }))
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
"duotone",
|
|
19
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
20
|
+
"path",
|
|
21
|
+
{
|
|
22
|
+
d: "M112,80A32,32,0,1,1,80,48,32,32,0,0,1,112,80Zm64,32a32,32,0,1,0-32-32A32,32,0,0,0,176,112ZM80,144a32,32,0,1,0,32,32A32,32,0,0,0,80,144Zm96,0a32,32,0,1,0,32,32A32,32,0,0,0,176,144Z",
|
|
23
|
+
opacity: "0.2"
|
|
24
|
+
}
|
|
25
|
+
), /* @__PURE__ */ e.createElement("path", { d: "M80,40a40,40,0,1,0,40,40A40,40,0,0,0,80,40Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,80,104Zm96,16a40,40,0,1,0-40-40A40,40,0,0,0,176,120Zm0-64a24,24,0,1,1-24,24A24,24,0,0,1,176,56ZM80,136a40,40,0,1,0,40,40A40,40,0,0,0,80,136Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,80,200Zm96-64a40,40,0,1,0,40,40A40,40,0,0,0,176,136Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,176,200Z" }))
|
|
26
|
+
],
|
|
27
|
+
[
|
|
28
|
+
"fill",
|
|
29
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M120,80A40,40,0,1,1,80,40,40,40,0,0,1,120,80Zm56,40a40,40,0,1,0-40-40A40,40,0,0,0,176,120ZM80,136a40,40,0,1,0,40,40A40,40,0,0,0,80,136Zm96,0a40,40,0,1,0,40,40A40,40,0,0,0,176,136Z" }))
|
|
30
|
+
],
|
|
31
|
+
[
|
|
32
|
+
"light",
|
|
33
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M80,42a38,38,0,1,0,38,38A38,38,0,0,0,80,42Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,80,106Zm96,12a38,38,0,1,0-38-38A38,38,0,0,0,176,118Zm0-64a26,26,0,1,1-26,26A26,26,0,0,1,176,54ZM80,138a38,38,0,1,0,38,38A38,38,0,0,0,80,138Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,80,202Zm96-64a38,38,0,1,0,38,38A38,38,0,0,0,176,138Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,176,202Z" }))
|
|
34
|
+
],
|
|
35
|
+
[
|
|
36
|
+
"regular",
|
|
37
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M80,40a40,40,0,1,0,40,40A40,40,0,0,0,80,40Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,80,104Zm96,16a40,40,0,1,0-40-40A40,40,0,0,0,176,120Zm0-64a24,24,0,1,1-24,24A24,24,0,0,1,176,56ZM80,136a40,40,0,1,0,40,40A40,40,0,0,0,80,136Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,80,200Zm96-64a40,40,0,1,0,40,40A40,40,0,0,0,176,136Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,176,200Z" }))
|
|
38
|
+
],
|
|
39
|
+
[
|
|
40
|
+
"thin",
|
|
41
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M80,44a36,36,0,1,0,36,36A36,36,0,0,0,80,44Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,80,108Zm96,8a36,36,0,1,0-36-36A36,36,0,0,0,176,116Zm0-64a28,28,0,1,1-28,28A28,28,0,0,1,176,52ZM80,140a36,36,0,1,0,36,36A36,36,0,0,0,80,140Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,80,204Zm96-64a36,36,0,1,0,36,36A36,36,0,0,0,176,140Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,176,204Z" }))
|
|
42
|
+
]
|
|
43
|
+
]), F = e.forwardRef((n, o) => /* @__PURE__ */ e.createElement(v, { ref: o, ...n, weights: Q }));
|
|
44
|
+
F.displayName = "CirclesFourIcon";
|
|
45
|
+
const U = /* @__PURE__ */ new Map([
|
|
46
|
+
[
|
|
47
|
+
"bold",
|
|
48
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M78,36a42,42,0,1,0,42,42A42,42,0,0,0,78,36Zm0,60A18,18,0,1,1,96,78,18,18,0,0,1,78,96Zm100,24a42,42,0,1,0-42-42A42,42,0,0,0,178,120Zm0-60a18,18,0,1,1-18,18A18,18,0,0,1,178,60ZM78,136a42,42,0,1,0,42,42A42,42,0,0,0,78,136Zm0,60a18,18,0,1,1,18-18A18,18,0,0,1,78,196Zm142-18a12,12,0,0,1-12,12H190v18a12,12,0,0,1-24,0V190H148a12,12,0,0,1,0-24h18V148a12,12,0,0,1,24,0v18h18A12,12,0,0,1,220,178Z" }))
|
|
49
|
+
],
|
|
50
|
+
[
|
|
51
|
+
"duotone",
|
|
52
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
53
|
+
"path",
|
|
54
|
+
{
|
|
55
|
+
d: "M112,80A32,32,0,1,1,80,48,32,32,0,0,1,112,80Zm64-32a32,32,0,1,0,32,32A32,32,0,0,0,176,48ZM80,144a32,32,0,1,0,32,32A32,32,0,0,0,80,144Z",
|
|
56
|
+
opacity: "0.2"
|
|
57
|
+
}
|
|
58
|
+
), /* @__PURE__ */ e.createElement("path", { d: "M80,40a40,40,0,1,0,40,40A40,40,0,0,0,80,40Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,80,104Zm96,16a40,40,0,1,0-40-40A40,40,0,0,0,176,120Zm0-64a24,24,0,1,1-24,24A24,24,0,0,1,176,56ZM80,136a40,40,0,1,0,40,40A40,40,0,0,0,80,136Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,80,200Zm136-24a8,8,0,0,1-8,8H184v24a8,8,0,0,1-16,0V184H144a8,8,0,0,1,0-16h24V144a8,8,0,0,1,16,0v24h24A8,8,0,0,1,216,176Z" }))
|
|
59
|
+
],
|
|
60
|
+
[
|
|
61
|
+
"fill",
|
|
62
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M120,80A40,40,0,1,1,80,40,40,40,0,0,1,120,80Zm56,40a40,40,0,1,0-40-40A40,40,0,0,0,176,120ZM80,136a40,40,0,1,0,40,40A40,40,0,0,0,80,136Zm128,32H184V144a8,8,0,0,0-16,0v24H144a8,8,0,0,0,0,16h24v24a8,8,0,0,0,16,0V184h24a8,8,0,0,0,0-16Z" }))
|
|
63
|
+
],
|
|
64
|
+
[
|
|
65
|
+
"light",
|
|
66
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M80,42a38,38,0,1,0,38,38A38,38,0,0,0,80,42Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,80,106Zm96,12a38,38,0,1,0-38-38A38,38,0,0,0,176,118Zm0-64a26,26,0,1,1-26,26A26,26,0,0,1,176,54ZM80,138a38,38,0,1,0,38,38A38,38,0,0,0,80,138Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,80,202Zm134-26a6,6,0,0,1-6,6H182v26a6,6,0,0,1-12,0V182H144a6,6,0,0,1,0-12h26V144a6,6,0,0,1,12,0v26h26A6,6,0,0,1,214,176Z" }))
|
|
67
|
+
],
|
|
68
|
+
[
|
|
69
|
+
"regular",
|
|
70
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M80,40a40,40,0,1,0,40,40A40,40,0,0,0,80,40Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,80,104Zm96,16a40,40,0,1,0-40-40A40,40,0,0,0,176,120Zm0-64a24,24,0,1,1-24,24A24,24,0,0,1,176,56ZM80,136a40,40,0,1,0,40,40A40,40,0,0,0,80,136Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,80,200Zm136-24a8,8,0,0,1-8,8H184v24a8,8,0,0,1-16,0V184H144a8,8,0,0,1,0-16h24V144a8,8,0,0,1,16,0v24h24A8,8,0,0,1,216,176Z" }))
|
|
71
|
+
],
|
|
72
|
+
[
|
|
73
|
+
"thin",
|
|
74
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M80,44a36,36,0,1,0,36,36A36,36,0,0,0,80,44Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,80,108Zm96,8a36,36,0,1,0-36-36A36,36,0,0,0,176,116Zm0-64a28,28,0,1,1-28,28A28,28,0,0,1,176,52ZM80,140a36,36,0,1,0,36,36A36,36,0,0,0,80,140Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,80,204Zm132-28a4,4,0,0,1-4,4H180v28a4,4,0,0,1-8,0V180H144a4,4,0,0,1,0-8h28V144a4,4,0,0,1,8,0v28h28A4,4,0,0,1,212,176Z" }))
|
|
75
|
+
]
|
|
76
|
+
]), b = e.forwardRef((n, o) => /* @__PURE__ */ e.createElement(v, { ref: o, ...n, weights: U }));
|
|
77
|
+
b.displayName = "CirclesThreePlusIcon";
|
|
78
|
+
const Y = /* @__PURE__ */ new Map([
|
|
79
|
+
[
|
|
80
|
+
"bold",
|
|
81
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M222.14,69.17,186.83,33.86A19.86,19.86,0,0,0,172.69,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V83.31A19.86,19.86,0,0,0,222.14,69.17ZM164,204H92V160h72Zm40,0H188V156a20,20,0,0,0-20-20H88a20,20,0,0,0-20,20v48H52V52H171l33,33ZM164,84a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h56A12,12,0,0,1,164,84Z" }))
|
|
82
|
+
],
|
|
83
|
+
[
|
|
84
|
+
"duotone",
|
|
85
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
86
|
+
"path",
|
|
87
|
+
{
|
|
88
|
+
d: "M216,83.31V208a8,8,0,0,1-8,8H176V152a8,8,0,0,0-8-8H88a8,8,0,0,0-8,8v64H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H172.69a8,8,0,0,1,5.65,2.34l35.32,35.32A8,8,0,0,1,216,83.31Z",
|
|
89
|
+
opacity: "0.2"
|
|
90
|
+
}
|
|
91
|
+
), /* @__PURE__ */ e.createElement("path", { d: "M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z" }))
|
|
92
|
+
],
|
|
93
|
+
[
|
|
94
|
+
"fill",
|
|
95
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM208,208H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z" }))
|
|
96
|
+
],
|
|
97
|
+
[
|
|
98
|
+
"light",
|
|
99
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M217.9,73.42,182.58,38.1a13.9,13.9,0,0,0-9.89-4.1H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V83.31A13.9,13.9,0,0,0,217.9,73.42ZM170,210H86V152a2,2,0,0,1,2-2h80a2,2,0,0,1,2,2Zm40-2a2,2,0,0,1-2,2H182V152a14,14,0,0,0-14-14H88a14,14,0,0,0-14,14v58H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H172.69a2,2,0,0,1,1.41.58L209.42,81.9a2,2,0,0,1,.58,1.41ZM158,72a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h56A6,6,0,0,1,158,72Z" }))
|
|
100
|
+
],
|
|
101
|
+
[
|
|
102
|
+
"regular",
|
|
103
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z" }))
|
|
104
|
+
],
|
|
105
|
+
[
|
|
106
|
+
"thin",
|
|
107
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M216.49,74.83,181.17,39.51A11.93,11.93,0,0,0,172.69,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V83.31A11.93,11.93,0,0,0,216.49,74.83ZM172,212H84V152a4,4,0,0,1,4-4h80a4,4,0,0,1,4,4Zm40-4a4,4,0,0,1-4,4H180V152a12,12,0,0,0-12-12H88a12,12,0,0,0-12,12v60H48a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H172.69a4,4,0,0,1,2.82,1.17l35.32,35.32A4,4,0,0,1,212,83.31ZM156,72a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h56A4,4,0,0,1,156,72Z" }))
|
|
108
|
+
]
|
|
109
|
+
]), k = e.forwardRef((n, o) => /* @__PURE__ */ e.createElement(v, { ref: o, ...n, weights: Y }));
|
|
110
|
+
k.displayName = "FloppyDiskIcon";
|
|
111
|
+
const d0 = ({
|
|
112
|
+
layout: n,
|
|
113
|
+
onLayoutChange: o = j,
|
|
114
|
+
className: N,
|
|
115
|
+
children: y
|
|
116
|
+
}) => {
|
|
117
|
+
const c = G(null), [A, g] = f(!1), [R, H] = f(!1), [h, S] = f({
|
|
118
|
+
rowCount: 1,
|
|
119
|
+
columnCount: 4,
|
|
120
|
+
columnWidth: 0,
|
|
121
|
+
rowHeight: 0,
|
|
122
|
+
bounds: {
|
|
123
|
+
x: 0,
|
|
124
|
+
y: 0,
|
|
125
|
+
width: 0,
|
|
126
|
+
height: 0
|
|
127
|
+
}
|
|
128
|
+
}), x = () => {
|
|
129
|
+
g(!0);
|
|
130
|
+
}, W = () => {
|
|
131
|
+
g(!1), H(!1);
|
|
132
|
+
}, L = () => {
|
|
133
|
+
H(!0);
|
|
134
|
+
}, O = (t) => {
|
|
135
|
+
const Z = n.filter((a) => !a.hidden), M = Math.max(1, h.columnCount - 2 + 1), d = (a, i) => Z.some((s) => {
|
|
136
|
+
const z = a < s.column + s.width && a + 2 > s.column, B = i < s.row + s.height && i + 2 > s.row;
|
|
137
|
+
return z && B;
|
|
138
|
+
}), p = Math.max(
|
|
139
|
+
h.rowCount,
|
|
140
|
+
...Z.map((a) => a.row + a.height - 1)
|
|
141
|
+
);
|
|
142
|
+
let E = 1, w = 1, V = !1;
|
|
143
|
+
for (let a = 1; a <= p; a += 1) {
|
|
144
|
+
for (let i = 1; i <= M; i += 1)
|
|
145
|
+
if (!d(i, a)) {
|
|
146
|
+
E = i, w = a, V = !0;
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
if (V)
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
V || (w = p + 1, E = 1), o(
|
|
153
|
+
n.map(
|
|
154
|
+
(a) => a.id === t.id ? {
|
|
155
|
+
...a,
|
|
156
|
+
hidden: !1,
|
|
157
|
+
column: E,
|
|
158
|
+
row: w,
|
|
159
|
+
width: 2,
|
|
160
|
+
height: 2
|
|
161
|
+
} : a
|
|
162
|
+
)
|
|
163
|
+
);
|
|
164
|
+
};
|
|
165
|
+
X(() => {
|
|
166
|
+
const t = () => {
|
|
167
|
+
const m = window.getComputedStyle(c.current).gridTemplateColumns.split(" ").length, C = parseFloat(
|
|
168
|
+
window.getComputedStyle(c.current).gridTemplateColumns.split(" ")[0]
|
|
169
|
+
), Z = window.getComputedStyle(c.current).gridTemplateRows.split(" ").length, M = parseFloat(
|
|
170
|
+
window.getComputedStyle(c.current).gridAutoRows
|
|
171
|
+
), d = c.current.getBoundingClientRect(), p = {
|
|
172
|
+
x: d.x,
|
|
173
|
+
y: d.y,
|
|
174
|
+
width: d.width,
|
|
175
|
+
height: d.height
|
|
176
|
+
};
|
|
177
|
+
S({ rowCount: Z, columnCount: m, columnWidth: C, rowHeight: M, bounds: p });
|
|
178
|
+
};
|
|
179
|
+
return t(), window.addEventListener("resize", t), () => {
|
|
180
|
+
window.removeEventListener("resize", t);
|
|
181
|
+
};
|
|
182
|
+
}, [n]);
|
|
183
|
+
const T = n.filter((t) => !t.hidden).length === 0, q = n.map((t) => t.category).filter(D);
|
|
184
|
+
return /* @__PURE__ */ l(
|
|
185
|
+
K,
|
|
186
|
+
{
|
|
187
|
+
value: {
|
|
188
|
+
layout: n,
|
|
189
|
+
setLayout: o,
|
|
190
|
+
isEditing: A,
|
|
191
|
+
setIsEditing: g,
|
|
192
|
+
...h
|
|
193
|
+
},
|
|
194
|
+
children: [
|
|
195
|
+
/* @__PURE__ */ l(
|
|
196
|
+
"div",
|
|
197
|
+
{
|
|
198
|
+
className: P(
|
|
199
|
+
"component-dashboard",
|
|
200
|
+
A && "component-dashboard--editing",
|
|
201
|
+
N
|
|
202
|
+
),
|
|
203
|
+
children: [
|
|
204
|
+
/* @__PURE__ */ l("div", { className: "component-dashboard__grid", ref: c, children: [
|
|
205
|
+
y,
|
|
206
|
+
(A || T) && /* @__PURE__ */ r("div", { className: "component-dashboard__grid__overlay", children: [...Array(h.rowCount * h.columnCount)].map(
|
|
207
|
+
(t, m) => /* @__PURE__ */ r(
|
|
208
|
+
"div",
|
|
209
|
+
{
|
|
210
|
+
className: "component-dashboard__grid__overlay__cell"
|
|
211
|
+
},
|
|
212
|
+
m
|
|
213
|
+
)
|
|
214
|
+
) })
|
|
215
|
+
] }),
|
|
216
|
+
/* @__PURE__ */ r("div", { className: "component-dashboard__footer", children: A ? /* @__PURE__ */ l(_, { children: [
|
|
217
|
+
/* @__PURE__ */ l(u, { onClick: L, variant: "quiet", children: [
|
|
218
|
+
/* @__PURE__ */ r(b, {}),
|
|
219
|
+
"Add Widget"
|
|
220
|
+
] }),
|
|
221
|
+
/* @__PURE__ */ l(u, { onClick: W, variant: "neutral", children: [
|
|
222
|
+
/* @__PURE__ */ r(k, {}),
|
|
223
|
+
"Save Changes"
|
|
224
|
+
] })
|
|
225
|
+
] }) : /* @__PURE__ */ r(_, { children: /* @__PURE__ */ l(u, { onClick: x, variant: "quiet", children: [
|
|
226
|
+
/* @__PURE__ */ r(F, {}),
|
|
227
|
+
"Customise"
|
|
228
|
+
] }) }) })
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
),
|
|
232
|
+
/* @__PURE__ */ r(
|
|
233
|
+
J,
|
|
234
|
+
{
|
|
235
|
+
title: "Add a Widget",
|
|
236
|
+
open: R,
|
|
237
|
+
onOpenChange: H,
|
|
238
|
+
className: "component-dashboard-picker",
|
|
239
|
+
align: "top",
|
|
240
|
+
edgeless: !0,
|
|
241
|
+
children: q.map((t) => /* @__PURE__ */ l("div", { className: "component-dashboard-picker__category", children: [
|
|
242
|
+
/* @__PURE__ */ r("div", { className: "component-dashboard-picker__category__title", children: $(t) }),
|
|
243
|
+
/* @__PURE__ */ r("div", { className: "component-dashboard-picker__category__items", children: n.filter((m) => m.category === t).map((m) => /* @__PURE__ */ l(
|
|
244
|
+
u,
|
|
245
|
+
{
|
|
246
|
+
className: "component-dashboard-picker__item",
|
|
247
|
+
onClick: () => O(m),
|
|
248
|
+
disabled: !m.hidden,
|
|
249
|
+
wide: !0,
|
|
250
|
+
variant: "quiet",
|
|
251
|
+
children: [
|
|
252
|
+
/* @__PURE__ */ r(I, {}),
|
|
253
|
+
m.name
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
)) })
|
|
257
|
+
] }, t))
|
|
258
|
+
}
|
|
259
|
+
)
|
|
260
|
+
]
|
|
261
|
+
}
|
|
262
|
+
);
|
|
263
|
+
};
|
|
264
|
+
export {
|
|
265
|
+
d0 as Grid
|
|
266
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
|
+
interface ItemProps extends PropsWithChildren {
|
|
3
|
+
id: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
edgeless?: boolean | "x" | "y" | "top" | "bottom" | "left" | "right" | "all";
|
|
7
|
+
}
|
|
8
|
+
export declare const Item: FC<ItemProps>;
|
|
9
|
+
export {};
|