@weasel-js/ui 1.5.2 → 1.6.1
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/chunks/ActionBar-DCq16yFA.js +57 -0
- package/dist/chunks/ActionBar-DCq16yFA.js.map +1 -0
- package/dist/chunks/{Badge-CW9pBPFl.js → Badge-CyAIZSDo.js} +758 -741
- package/dist/chunks/Badge-CyAIZSDo.js.map +1 -0
- package/dist/chunks/{BandEditor-jY-PFKY6.js → BandEditor-Dhm_Xrlr.js} +37 -36
- package/dist/chunks/BandEditor-Dhm_Xrlr.js.map +1 -0
- package/dist/chunks/Button-BIdXHQOx.js +111 -0
- package/dist/chunks/Button-BIdXHQOx.js.map +1 -0
- package/dist/chunks/ButtonBar-D5Vi0aj_.js +46 -0
- package/dist/chunks/ButtonBar-D5Vi0aj_.js.map +1 -0
- package/dist/chunks/Callout-yEn9iPlh.js +119 -0
- package/dist/chunks/Callout-yEn9iPlh.js.map +1 -0
- package/dist/chunks/{Checkbox-BOsDAY2F.js → Checkbox-DHXTUHO9.js} +1 -1
- package/dist/chunks/Checkbox-DHXTUHO9.js.map +1 -0
- package/dist/chunks/Code-AsKpgnv6.js +24 -0
- package/dist/chunks/Code-AsKpgnv6.js.map +1 -0
- package/dist/chunks/{ColorField-BYzgZM9o.js → ColorField-BcMcW8Sa.js} +16 -16
- package/dist/chunks/ColorField-BcMcW8Sa.js.map +1 -0
- package/dist/chunks/ColorModeControl-ke5PXbBa.js +47 -0
- package/dist/chunks/ColorModeControl-ke5PXbBa.js.map +1 -0
- package/dist/chunks/{ComboBox-Cz3f0Y_8.js → ComboBox-DpT8lc3p.js} +3 -3
- package/dist/chunks/ComboBox-DpT8lc3p.js.map +1 -0
- package/dist/chunks/{CurveEditor-DXwSP-iA.js → CurveEditor-BDJXjEvK.js} +35 -35
- package/dist/chunks/CurveEditor-BDJXjEvK.js.map +1 -0
- package/dist/chunks/DataGrid-D-dZj1BD.js +152 -0
- package/dist/chunks/DataGrid-D-dZj1BD.js.map +1 -0
- package/dist/chunks/DetailList-BMER1LUZ.js +43 -0
- package/dist/chunks/DetailList-BMER1LUZ.js.map +1 -0
- package/dist/chunks/{DetentSlider-CAubVX0J.js → DetentSlider-CL8TlX3S.js} +2 -2
- package/dist/chunks/DetentSlider-CL8TlX3S.js.map +1 -0
- package/dist/chunks/Dialog-BWyNMgpf.js +66 -0
- package/dist/chunks/Dialog-BWyNMgpf.js.map +1 -0
- package/dist/chunks/Disclosure-0G0uh2fa.js +58 -0
- package/dist/chunks/Disclosure-0G0uh2fa.js.map +1 -0
- package/dist/chunks/DragGhost-B5_hb9W9.js +30 -0
- package/dist/chunks/DragGhost-B5_hb9W9.js.map +1 -0
- package/dist/chunks/{DragHandleGlyph-CppAz4_8.js → DragHandleGlyph-Dr7Fgo0I.js} +1 -1
- package/dist/chunks/DragHandleGlyph-Dr7Fgo0I.js.map +1 -0
- package/dist/chunks/{Field-DWnV8WZY.js → Field--onYxXTF.js} +7 -6
- package/dist/chunks/Field--onYxXTF.js.map +1 -0
- package/dist/chunks/FillStrokeSwatch-DNb0KXPk.js +111 -0
- package/dist/chunks/FillStrokeSwatch-DNb0KXPk.js.map +1 -0
- package/dist/chunks/{FontFamilySelect-DxfgTC3G.js → FontFamilySelect-DXlMKWfK.js} +2 -2
- package/dist/chunks/FontFamilySelect-DXlMKWfK.js.map +1 -0
- package/dist/chunks/GradientEditor-B3a-MsVJ.js +335 -0
- package/dist/chunks/GradientEditor-B3a-MsVJ.js.map +1 -0
- package/dist/chunks/{Icon-DT0x6HaQ.js → Icon-Cgzy8VgC.js} +28 -20
- package/dist/chunks/Icon-Cgzy8VgC.js.map +1 -0
- package/dist/chunks/InlineRange-eOj6JpJl.js +29 -0
- package/dist/chunks/InlineRange-eOj6JpJl.js.map +1 -0
- package/dist/chunks/{Input-DbMKpkXy.js → Input-CHmkfYaD.js} +24 -19
- package/dist/chunks/Input-CHmkfYaD.js.map +1 -0
- package/dist/chunks/ItemList-Cm-HUWCi.js +174 -0
- package/dist/chunks/ItemList-Cm-HUWCi.js.map +1 -0
- package/dist/chunks/ItemList.module-BSpCSxan.js +14 -0
- package/dist/chunks/ItemList.module-BSpCSxan.js.map +1 -0
- package/dist/chunks/{Jog-DkkTlL3_.js → Jog-DESxZ44P.js} +6 -6
- package/dist/chunks/Jog-DESxZ44P.js.map +1 -0
- package/dist/chunks/{Keycaps-DunVpejA.js → Keycaps-C0H_v2gO.js} +71 -65
- package/dist/chunks/Keycaps-C0H_v2gO.js.map +1 -0
- package/dist/chunks/LayerList-nz-QYvTF.js +427 -0
- package/dist/chunks/LayerList-nz-QYvTF.js.map +1 -0
- package/dist/chunks/ListEditor-BQ6AV3Ac.js +74 -0
- package/dist/chunks/ListEditor-BQ6AV3Ac.js.map +1 -0
- package/dist/chunks/MenuButton-DtaGenKf.js +70 -0
- package/dist/chunks/MenuButton-DtaGenKf.js.map +1 -0
- package/dist/chunks/MeshEditor-qqGc6hlD.js +87 -0
- package/dist/chunks/MeshEditor-qqGc6hlD.js.map +1 -0
- package/dist/chunks/{NumberField-CCjEDZCg.js → NumberField-CwJOMmQR.js} +27 -22
- package/dist/chunks/NumberField-CwJOMmQR.js.map +1 -0
- package/dist/chunks/{OptionsBar-DeQ-vUeZ.js → OptionsBar-DbzAgIln.js} +3 -3
- package/dist/chunks/OptionsBar-DbzAgIln.js.map +1 -0
- package/dist/chunks/{PaintField-jBOJ32rL.js → PaintField-DaJukRc6.js} +21 -21
- package/dist/chunks/PaintField-DaJukRc6.js.map +1 -0
- package/dist/chunks/{PaintInput-Qs7Rul5R.js → PaintInput-Byhna3H-.js} +24 -24
- package/dist/chunks/PaintInput-Byhna3H-.js.map +1 -0
- package/dist/chunks/{PatternPicker-BMpXWboq.js → PatternPicker-B-cUt-JT.js} +2 -2
- package/dist/chunks/PatternPicker-B-cUt-JT.js.map +1 -0
- package/dist/chunks/{Plot2D-CXf_f7QD.js → Plot2D-CTXHkL5p.js} +13 -13
- package/dist/chunks/Plot2D-CTXHkL5p.js.map +1 -0
- package/dist/chunks/{PointPlotter-S_gz7VYt.js → PointPlotter-Bxo6haKe.js} +5 -4
- package/dist/chunks/PointPlotter-Bxo6haKe.js.map +1 -0
- package/dist/chunks/Powerline-ExO5GwEr.js +42 -0
- package/dist/chunks/Powerline-ExO5GwEr.js.map +1 -0
- package/dist/chunks/Prefs-DpqFKiwY.js +476 -0
- package/dist/chunks/Prefs-DpqFKiwY.js.map +1 -0
- package/dist/chunks/Properties-D_KzDN9K.js +282 -0
- package/dist/chunks/Properties-D_KzDN9K.js.map +1 -0
- package/dist/chunks/PropertyField-DGCecAnV.js +758 -0
- package/dist/chunks/PropertyField-DGCecAnV.js.map +1 -0
- package/dist/chunks/{RadioGroup-CsVp3SEu.js → RadioGroup-Bh4-12e-.js} +2 -2
- package/dist/chunks/RadioGroup-Bh4-12e-.js.map +1 -0
- package/dist/chunks/{RangeSlider-DNr-pJpZ.js → RangeSlider-BKRRTPTZ.js} +1 -1
- package/dist/chunks/RangeSlider-BKRRTPTZ.js.map +1 -0
- package/dist/chunks/{ResizeHandle-RXFf5fXr.js → ResizeHandle-BKT0XYpx.js} +15 -15
- package/dist/chunks/ResizeHandle-BKT0XYpx.js.map +1 -0
- package/dist/chunks/Select-CzyfaXzp.js +225 -0
- package/dist/chunks/Select-CzyfaXzp.js.map +1 -0
- package/dist/chunks/{SelectionPanel-CEbLS-0D.js → SelectionPanel-BgUM1h03.js} +21 -20
- package/dist/chunks/SelectionPanel-BgUM1h03.js.map +1 -0
- package/dist/chunks/{Sidebar-qn_oSCNX.js → Sidebar-BZ0m4afn.js} +8 -8
- package/dist/chunks/Sidebar-BZ0m4afn.js.map +1 -0
- package/dist/chunks/{SidebarPanel-Bs6V21hg.js → SidebarPanel-aoIqxbtq.js} +15 -19
- package/dist/chunks/SidebarPanel-aoIqxbtq.js.map +1 -0
- package/dist/chunks/{Slider-CIIrqiFS.js → Slider-CFwQYQ10.js} +94 -92
- package/dist/chunks/Slider-CFwQYQ10.js.map +1 -0
- package/dist/chunks/{StatusBar-B4L15DSm.js → StatusBar-DzoPDY4k.js} +8 -8
- package/dist/chunks/StatusBar-DzoPDY4k.js.map +1 -0
- package/dist/chunks/SwatchGrid-BARC3rnF.js +73 -0
- package/dist/chunks/SwatchGrid-BARC3rnF.js.map +1 -0
- package/dist/chunks/{Switch-DH5POG0T.js → Switch-CSYmcM8y.js} +1 -1
- package/dist/chunks/Switch-CSYmcM8y.js.map +1 -0
- package/dist/chunks/{Tabs-BFHikpml.js → Tabs-BbpzLLdY.js} +1 -1
- package/dist/chunks/Tabs-BbpzLLdY.js.map +1 -0
- package/dist/chunks/{Timeline-DNKY_yiK.js → Timeline--58F7MED.js} +141 -145
- package/dist/chunks/Timeline--58F7MED.js.map +1 -0
- package/dist/chunks/{Toast-CI1UDuK6.js → Toast-DNBb-24H.js} +1 -1
- package/dist/chunks/Toast-DNBb-24H.js.map +1 -0
- package/dist/chunks/ToggleBar-DTjGeS0Q.js +82 -0
- package/dist/chunks/ToggleBar-DTjGeS0Q.js.map +1 -0
- package/dist/chunks/{TokenPanel-BPHq24dc.js → TokenPanel-CMq7uydV.js} +50 -47
- package/dist/chunks/TokenPanel-CMq7uydV.js.map +1 -0
- package/dist/chunks/{ToolButton-9QzJCmuM.js → ToolButton-CR4sQlxF.js} +4 -4
- package/dist/chunks/ToolButton-CR4sQlxF.js.map +1 -0
- package/dist/chunks/{ToolGroup-BJiDrH_i.js → ToolGroup-Dpg1LN0l.js} +7 -7
- package/dist/chunks/ToolGroup-Dpg1LN0l.js.map +1 -0
- package/dist/chunks/{ToolOptionsBar-CAM6RcUH.js → ToolOptionsBar-CtzTlaN2.js} +6 -5
- package/dist/chunks/ToolOptionsBar-CtzTlaN2.js.map +1 -0
- package/dist/chunks/ToolPalette-CKG9qY6P.js +83 -0
- package/dist/chunks/ToolPalette-CKG9qY6P.js.map +1 -0
- package/dist/chunks/Tooltip-Clg2mhSt.js +42 -0
- package/dist/chunks/Tooltip-Clg2mhSt.js.map +1 -0
- package/dist/chunks/Tree-DVOtc9R5.js +203 -0
- package/dist/chunks/Tree-DVOtc9R5.js.map +1 -0
- package/dist/chunks/{createKeyframeLayer-DKtO0Sw_.js → createKeyframeLayer-Czj6Y235.js} +86 -86
- package/dist/chunks/createKeyframeLayer-Czj6Y235.js.map +1 -0
- package/dist/chunks/{dlog-CMYiRF3Q.js → dlog-F0I8KsIW.js} +2 -2
- package/dist/chunks/dlog-F0I8KsIW.js.map +1 -0
- package/dist/chunks/formatShortcut-DRQrVThu.js +15 -0
- package/dist/chunks/formatShortcut-DRQrVThu.js.map +1 -0
- package/dist/chunks/icons-Dk8SRS8g.js +162 -0
- package/dist/chunks/icons-Dk8SRS8g.js.map +1 -0
- package/dist/chunks/interactiveTarget-BNZmTow2.js +24 -0
- package/dist/chunks/interactiveTarget-BNZmTow2.js.map +1 -0
- package/dist/chunks/{keyGlyph-Bp0wnLHn.js → keyGlyph-C0qTakG-.js} +1 -1
- package/dist/chunks/keyGlyph-C0qTakG-.js.map +1 -0
- package/dist/chunks/model-Du7Lta4C.js +360 -0
- package/dist/chunks/model-Du7Lta4C.js.map +1 -0
- package/dist/chunks/{number-BHz66zQO.js → number-D3NEx_8r.js} +3 -3
- package/dist/chunks/number-D3NEx_8r.js.map +1 -0
- package/dist/chunks/paintPreview-CuSZiHpR.js +42 -0
- package/dist/chunks/paintPreview-CuSZiHpR.js.map +1 -0
- package/dist/chunks/paintValue-BpaGPjV3.js +18 -0
- package/dist/chunks/paintValue-BpaGPjV3.js.map +1 -0
- package/dist/chunks/{portalHost-CjpCnuGU.js → portalHost-yTOVuCej.js} +1 -1
- package/dist/chunks/portalHost-yTOVuCej.js.map +1 -0
- package/dist/chunks/prefField-Dnl7nmjQ.js +197 -0
- package/dist/chunks/prefField-Dnl7nmjQ.js.map +1 -0
- package/dist/chunks/segmentTooltip-CStYHKzd.js +29 -0
- package/dist/chunks/segmentTooltip-CStYHKzd.js.map +1 -0
- package/dist/chunks/segmentedControl.module-Bv7DEg8f.js +11 -0
- package/dist/chunks/segmentedControl.module-Bv7DEg8f.js.map +1 -0
- package/dist/chunks/{snap-CEjuWOhN.js → snap-DRjbOiG9.js} +1 -1
- package/dist/chunks/snap-DRjbOiG9.js.map +1 -0
- package/dist/chunks/stance-BFQpS_fL.js +17 -0
- package/dist/chunks/stance-BFQpS_fL.js.map +1 -0
- package/dist/chunks/useReorderDragList-B_-5L5Gu.js +131 -0
- package/dist/chunks/useReorderDragList-B_-5L5Gu.js.map +1 -0
- package/dist/chunks/{useRovingTabIndex-Dkpf_KhN.js → useRovingTabIndex-Bp_hYm_h.js} +1 -1
- package/dist/chunks/useRovingTabIndex-Bp_hYm_h.js.map +1 -0
- package/dist/color/ramp.d.ts +38 -0
- package/dist/color/ramp.d.ts.map +1 -0
- package/dist/components/ActionBar/ActionBar.d.ts +7 -5
- package/dist/components/ActionBar/ActionBar.d.ts.map +1 -1
- package/dist/components/ActionBar/index.js +1 -1
- package/dist/components/Badge/Badge.d.ts +21 -7
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Badge/effects/Aqua.d.ts +1 -1
- package/dist/components/Badge/effects/Aqua.d.ts.map +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Badge/types.d.ts +6 -5
- package/dist/components/Badge/types.d.ts.map +1 -1
- package/dist/components/BandEditor/index.js +1 -1
- package/dist/components/Button/Button.d.ts +17 -3
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonBar/ButtonBar.d.ts +36 -0
- package/dist/components/ButtonBar/ButtonBar.d.ts.map +1 -0
- package/dist/components/ButtonBar/index.d.ts +3 -0
- package/dist/components/ButtonBar/index.d.ts.map +1 -0
- package/dist/components/ButtonBar/index.js +2 -0
- package/dist/components/Callout/Callout.d.ts +3 -6
- package/dist/components/Callout/Callout.d.ts.map +1 -1
- package/dist/components/Callout/index.d.ts +1 -1
- package/dist/components/Callout/index.d.ts.map +1 -1
- package/dist/components/Callout/index.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Code/Code.d.ts +28 -0
- package/dist/components/Code/Code.d.ts.map +1 -0
- package/dist/components/Code/index.d.ts +3 -0
- package/dist/components/Code/index.d.ts.map +1 -0
- package/dist/components/Code/index.js +2 -0
- package/dist/components/ColorField/ColorField.d.ts +1 -1
- package/dist/components/ColorField/ColorField.d.ts.map +1 -1
- package/dist/components/ColorField/index.js +1 -1
- package/dist/components/ColorModeControl/ColorModeControl.d.ts +21 -0
- package/dist/components/ColorModeControl/ColorModeControl.d.ts.map +1 -0
- package/dist/components/ColorModeControl/index.d.ts +3 -0
- package/dist/components/ColorModeControl/index.d.ts.map +1 -0
- package/dist/components/ColorModeControl/index.js +2 -0
- package/dist/components/ComboBox/ComboBox.d.ts +2 -2
- package/dist/components/ComboBox/ComboBox.d.ts.map +1 -1
- package/dist/components/ComboBox/index.js +1 -1
- package/dist/components/CurveEditor/CurveEditor.d.ts +1 -1
- package/dist/components/CurveEditor/CurveEditor.d.ts.map +1 -1
- package/dist/components/CurveEditor/LayeredCurveEditor.d.ts +1 -1
- package/dist/components/CurveEditor/LayeredCurveEditor.d.ts.map +1 -1
- package/dist/components/CurveEditor/index.js +3 -3
- package/dist/components/DataGrid/DataGrid.d.ts +23 -1
- package/dist/components/DataGrid/DataGrid.d.ts.map +1 -1
- package/dist/components/DataGrid/index.js +1 -1
- package/dist/components/DetailList/DetailList.d.ts +36 -0
- package/dist/components/DetailList/DetailList.d.ts.map +1 -0
- package/dist/components/DetailList/index.d.ts +3 -0
- package/dist/components/DetailList/index.d.ts.map +1 -0
- package/dist/components/DetailList/index.js +2 -0
- package/dist/components/DetentSlider/index.js +1 -1
- package/dist/components/Dialog/Dialog.d.ts +9 -3
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/Disclosure/Disclosure.d.ts +26 -18
- package/dist/components/Disclosure/Disclosure.d.ts.map +1 -1
- package/dist/components/Disclosure/index.d.ts +2 -2
- package/dist/components/Disclosure/index.d.ts.map +1 -1
- package/dist/components/Disclosure/index.js +2 -2
- package/dist/components/DragGhost/DragGhost.d.ts +21 -0
- package/dist/components/DragGhost/DragGhost.d.ts.map +1 -0
- package/dist/components/DragGhost/index.d.ts +3 -0
- package/dist/components/DragGhost/index.d.ts.map +1 -0
- package/dist/components/DragGhost/index.js +2 -0
- package/dist/components/DragHandleGlyph/DragHandleGlyph.d.ts +1 -1
- package/dist/components/DragHandleGlyph/DragHandleGlyph.d.ts.map +1 -1
- package/dist/components/DragHandleGlyph/index.js +1 -1
- package/dist/components/Field/Field.d.ts +1 -1
- package/dist/components/Field/Field.d.ts.map +1 -1
- package/dist/components/Field/index.js +1 -1
- package/dist/components/FillStrokeSwatch/FillStrokeSwatch.d.ts +45 -0
- package/dist/components/FillStrokeSwatch/FillStrokeSwatch.d.ts.map +1 -0
- package/dist/components/FillStrokeSwatch/index.d.ts +3 -0
- package/dist/components/FillStrokeSwatch/index.d.ts.map +1 -0
- package/dist/components/FillStrokeSwatch/index.js +2 -0
- package/dist/components/FontFamilySelect/FontFamilySelect.d.ts +1 -1
- package/dist/components/FontFamilySelect/FontFamilySelect.d.ts.map +1 -1
- package/dist/components/FontFamilySelect/index.js +1 -1
- package/dist/components/GradientEditor/SceneGradientHandles.d.ts.map +1 -1
- package/dist/components/GradientEditor/index.js +1 -1
- package/dist/components/InlineRange/InlineRange.d.ts +6 -2
- package/dist/components/InlineRange/InlineRange.d.ts.map +1 -1
- package/dist/components/InlineRange/index.js +1 -1
- package/dist/components/Input/Input.d.ts +13 -0
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/ItemList/ItemList.d.ts +70 -10
- package/dist/components/ItemList/ItemList.d.ts.map +1 -1
- package/dist/components/ItemList/index.js +1 -1
- package/dist/components/Jog/Jog.d.ts +1 -1
- package/dist/components/Jog/Jog.d.ts.map +1 -1
- package/dist/components/Jog/index.js +1 -1
- package/dist/components/Keycaps/Keycap.d.ts +1 -1
- package/dist/components/Keycaps/Keycap.d.ts.map +1 -1
- package/dist/components/Keycaps/Keycaps.d.ts +1 -1
- package/dist/components/Keycaps/Keycaps.d.ts.map +1 -1
- package/dist/components/Keycaps/index.d.ts +1 -0
- package/dist/components/Keycaps/index.d.ts.map +1 -1
- package/dist/components/Keycaps/index.js +3 -3
- package/dist/components/Keycaps/keySpecsFromMods.d.ts +2 -0
- package/dist/components/Keycaps/keySpecsFromMods.d.ts.map +1 -1
- package/dist/components/Keycaps/keySpecsFromShortcut.d.ts +16 -0
- package/dist/components/Keycaps/keySpecsFromShortcut.d.ts.map +1 -0
- package/dist/components/LayerList/LayerList.d.ts +79 -0
- package/dist/components/LayerList/LayerList.d.ts.map +1 -0
- package/dist/components/LayerList/index.d.ts +3 -0
- package/dist/components/LayerList/index.d.ts.map +1 -0
- package/dist/components/LayerList/index.js +2 -0
- package/dist/components/LayerList/useSceneLayerList.d.ts +20 -0
- package/dist/components/LayerList/useSceneLayerList.d.ts.map +1 -0
- package/dist/components/ListEditor/ListEditor.d.ts +23 -0
- package/dist/components/ListEditor/ListEditor.d.ts.map +1 -0
- package/dist/components/ListEditor/index.d.ts +3 -0
- package/dist/components/ListEditor/index.d.ts.map +1 -0
- package/dist/components/ListEditor/index.js +2 -0
- package/dist/components/MenuButton/MenuButton.d.ts +6 -2
- package/dist/components/MenuButton/MenuButton.d.ts.map +1 -1
- package/dist/components/MenuButton/index.js +1 -1
- package/dist/components/MeshEditor/index.js +1 -1
- package/dist/components/NumberField/NumberField.d.ts +13 -0
- package/dist/components/NumberField/NumberField.d.ts.map +1 -1
- package/dist/components/NumberField/UnitField.d.ts +1 -1
- package/dist/components/NumberField/UnitField.d.ts.map +1 -1
- package/dist/components/NumberField/index.js +1 -1
- package/dist/components/OptionsBar/index.js +1 -1
- package/dist/components/PaintField/index.js +1 -1
- package/dist/components/PaintInput/index.js +1 -1
- package/dist/components/PatternPicker/index.js +1 -1
- package/dist/components/Plot2D/index.js +1 -1
- package/dist/components/PointPlotter/PointPlotter.d.ts +1 -1
- package/dist/components/PointPlotter/PointPlotter.d.ts.map +1 -1
- package/dist/components/PointPlotter/index.js +1 -1
- package/dist/components/Powerline/Powerline.d.ts +5 -4
- package/dist/components/Powerline/Powerline.d.ts.map +1 -1
- package/dist/components/Powerline/index.js +2 -2
- package/dist/components/Prefs/PrefsDialog.d.ts +11 -3
- package/dist/components/Prefs/PrefsDialog.d.ts.map +1 -1
- package/dist/components/Prefs/PrefsForm.d.ts +27 -26
- package/dist/components/Prefs/PrefsForm.d.ts.map +1 -1
- package/dist/components/Prefs/PrefsPane.d.ts +24 -0
- package/dist/components/Prefs/PrefsPane.d.ts.map +1 -0
- package/dist/components/Prefs/PrefsRail.d.ts +32 -0
- package/dist/components/Prefs/PrefsRail.d.ts.map +1 -0
- package/dist/components/Prefs/PrefsRow.d.ts +32 -0
- package/dist/components/Prefs/PrefsRow.d.ts.map +1 -0
- package/dist/components/Prefs/index.d.ts +5 -2
- package/dist/components/Prefs/index.d.ts.map +1 -1
- package/dist/components/Prefs/index.js +3 -3
- package/dist/components/Prefs/prefField.d.ts +36 -0
- package/dist/components/Prefs/prefField.d.ts.map +1 -0
- package/dist/components/Prefs/schema.d.ts +30 -0
- package/dist/components/Prefs/schema.d.ts.map +1 -1
- package/dist/components/Properties/CurveField.d.ts +1 -1
- package/dist/components/Properties/CurveField.d.ts.map +1 -1
- package/dist/components/Properties/DialogRow.d.ts +33 -0
- package/dist/components/Properties/DialogRow.d.ts.map +1 -0
- package/dist/components/Properties/PropertyField.d.ts +238 -0
- package/dist/components/Properties/PropertyField.d.ts.map +1 -0
- package/dist/components/Properties/PropertyGroup.d.ts +12 -3
- package/dist/components/Properties/PropertyGroup.d.ts.map +1 -1
- package/dist/components/Properties/PropertyPanel.d.ts +34 -238
- package/dist/components/Properties/PropertyPanel.d.ts.map +1 -1
- package/dist/components/Properties/Subpanel.d.ts +14 -0
- package/dist/components/Properties/Subpanel.d.ts.map +1 -0
- package/dist/components/Properties/index.d.ts +8 -4
- package/dist/components/Properties/index.d.ts.map +1 -1
- package/dist/components/Properties/index.js +3 -2
- package/dist/components/Properties/storyLayouts.d.ts +1 -1
- package/dist/components/Properties/storyLayouts.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/RangeSlider/RangeSlider.d.ts +1 -1
- package/dist/components/RangeSlider/RangeSlider.d.ts.map +1 -1
- package/dist/components/RangeSlider/index.js +1 -1
- package/dist/components/ResizeHandle/ResizeHandle.d.ts +1 -1
- package/dist/components/ResizeHandle/ResizeHandle.d.ts.map +1 -1
- package/dist/components/ResizeHandle/index.js +1 -1
- package/dist/components/Select/Select.d.ts +40 -7
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/index.d.ts +2 -2
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +2 -2
- package/dist/components/SelectionPanel/SelectionPanel.d.ts +1 -1
- package/dist/components/SelectionPanel/SelectionPanel.d.ts.map +1 -1
- package/dist/components/SelectionPanel/index.js +2 -2
- package/dist/components/SelectionPanel/renderLeaf.d.ts +14 -8
- package/dist/components/SelectionPanel/renderLeaf.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/SidebarPanel/SidebarPanel.d.ts +3 -3
- package/dist/components/SidebarPanel/SidebarPanel.d.ts.map +1 -1
- package/dist/components/SidebarPanel/index.js +1 -1
- package/dist/components/Slider/Slider.d.ts +2 -1
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/StatusBar/StatusBar.d.ts +3 -3
- package/dist/components/StatusBar/StatusBar.d.ts.map +1 -1
- package/dist/components/StatusBar/index.js +1 -1
- package/dist/components/SwatchGrid/SwatchGrid.d.ts +34 -0
- package/dist/components/SwatchGrid/SwatchGrid.d.ts.map +1 -0
- package/dist/components/SwatchGrid/index.d.ts +3 -0
- package/dist/components/SwatchGrid/index.d.ts.map +1 -0
- package/dist/components/SwatchGrid/index.js +2 -0
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Tabs/Tabs.d.ts +4 -4
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Timeline/Lane.d.ts.map +1 -1
- package/dist/components/Timeline/index.js +1 -1
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/ToggleBar/ToggleBar.d.ts +2 -1
- package/dist/components/ToggleBar/ToggleBar.d.ts.map +1 -1
- package/dist/components/ToggleBar/index.js +1 -1
- package/dist/components/TokenPanel/TokenPanel.d.ts +1 -1
- package/dist/components/TokenPanel/TokenPanel.d.ts.map +1 -1
- package/dist/components/TokenPanel/index.js +1 -1
- package/dist/components/ToolButton/ToolButton.d.ts +1 -1
- package/dist/components/ToolButton/ToolButton.d.ts.map +1 -1
- package/dist/components/ToolButton/index.js +1 -1
- package/dist/components/ToolGroup/ToolGroup.d.ts +1 -1
- package/dist/components/ToolGroup/ToolGroup.d.ts.map +1 -1
- package/dist/components/ToolGroup/index.js +1 -1
- package/dist/components/ToolOptionsBar/ToolOptionsBar.d.ts +1 -1
- package/dist/components/ToolOptionsBar/ToolOptionsBar.d.ts.map +1 -1
- package/dist/components/ToolOptionsBar/index.js +1 -1
- package/dist/components/ToolPalette/ToolPalette.d.ts +1 -1
- package/dist/components/ToolPalette/ToolPalette.d.ts.map +1 -1
- package/dist/components/ToolPalette/index.d.ts +1 -0
- package/dist/components/ToolPalette/index.d.ts.map +1 -1
- package/dist/components/ToolPalette/index.js +3 -2
- package/dist/components/Tooltip/Tooltip.d.ts +8 -4
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +2 -2
- package/dist/components/Tree/Tree.d.ts +84 -0
- package/dist/components/Tree/Tree.d.ts.map +1 -0
- package/dist/components/Tree/index.d.ts +3 -0
- package/dist/components/Tree/index.d.ts.map +1 -0
- package/dist/components/Tree/index.js +2 -0
- package/dist/components/segmentTooltip.d.ts +30 -0
- package/dist/components/segmentTooltip.d.ts.map +1 -0
- package/dist/components/stance.d.ts +30 -0
- package/dist/components/stance.d.ts.map +1 -0
- package/dist/components/stanceCss.d.ts +31 -0
- package/dist/components/stanceCss.d.ts.map +1 -0
- package/dist/components/stanceSurfaces.d.ts +4 -0
- package/dist/components/stanceSurfaces.d.ts.map +1 -0
- package/dist/format/number.d.ts +3 -2
- package/dist/format/number.d.ts.map +1 -1
- package/dist/icons/Icon.d.ts +1 -1
- package/dist/icons/Icon.d.ts.map +1 -1
- package/dist/icons/ShapeKindIcon.d.ts +10 -0
- package/dist/icons/ShapeKindIcon.d.ts.map +1 -0
- package/dist/icons/index.d.ts +55 -53
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/paths.d.ts +2 -0
- package/dist/icons/paths.d.ts.map +1 -1
- package/dist/index.d.ts +17 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +130 -79
- package/dist/index.js.map +1 -1
- package/dist/interactiveTarget.d.ts +9 -0
- package/dist/interactiveTarget.d.ts.map +1 -0
- package/dist/overlays/portalHost.d.ts +1 -1
- package/dist/overlays/portalHost.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/useReorderDragList.d.ts +36 -7
- package/dist/useReorderDragList.d.ts.map +1 -1
- package/dist/useRovingTabIndex.d.ts +1 -1
- package/dist/useScrollSpy.d.ts +48 -0
- package/dist/useScrollSpy.d.ts.map +1 -0
- package/package.json +8 -8
- package/dist/chunks/ActionBar-CLwiY3Jg.js +0 -62
- package/dist/chunks/ActionBar-CLwiY3Jg.js.map +0 -1
- package/dist/chunks/ActionsBar-D84a4eGy.js +0 -41
- package/dist/chunks/ActionsBar-D84a4eGy.js.map +0 -1
- package/dist/chunks/Badge-CW9pBPFl.js.map +0 -1
- package/dist/chunks/BandEditor-jY-PFKY6.js.map +0 -1
- package/dist/chunks/Button-DRSApvnK.js +0 -90
- package/dist/chunks/Button-DRSApvnK.js.map +0 -1
- package/dist/chunks/Callout-DrNu-9Qr.js +0 -122
- package/dist/chunks/Callout-DrNu-9Qr.js.map +0 -1
- package/dist/chunks/Checkbox-BOsDAY2F.js.map +0 -1
- package/dist/chunks/ColorField-BYzgZM9o.js.map +0 -1
- package/dist/chunks/ComboBox-Cz3f0Y_8.js.map +0 -1
- package/dist/chunks/CurveEditor-DXwSP-iA.js.map +0 -1
- package/dist/chunks/DataGrid-C8KrYtw7.js +0 -104
- package/dist/chunks/DataGrid-C8KrYtw7.js.map +0 -1
- package/dist/chunks/DetentSlider-CAubVX0J.js.map +0 -1
- package/dist/chunks/Dialog-fGqqQ6o_.js +0 -61
- package/dist/chunks/Dialog-fGqqQ6o_.js.map +0 -1
- package/dist/chunks/Disclosure-CILDfWsU.js +0 -47
- package/dist/chunks/Disclosure-CILDfWsU.js.map +0 -1
- package/dist/chunks/DragHandleGlyph-CppAz4_8.js.map +0 -1
- package/dist/chunks/Field-DWnV8WZY.js.map +0 -1
- package/dist/chunks/FontFamilySelect-DxfgTC3G.js.map +0 -1
- package/dist/chunks/GradientEditor-rRBmf3G0.js +0 -333
- package/dist/chunks/GradientEditor-rRBmf3G0.js.map +0 -1
- package/dist/chunks/Icon-DT0x6HaQ.js.map +0 -1
- package/dist/chunks/InlineRange-DdIlfGqG.js +0 -29
- package/dist/chunks/InlineRange-DdIlfGqG.js.map +0 -1
- package/dist/chunks/Input-DbMKpkXy.js.map +0 -1
- package/dist/chunks/ItemList-B9zYb0GE.js +0 -42
- package/dist/chunks/ItemList-B9zYb0GE.js.map +0 -1
- package/dist/chunks/Jog-DkkTlL3_.js.map +0 -1
- package/dist/chunks/Keycaps-DunVpejA.js.map +0 -1
- package/dist/chunks/LayerStack-CfQ6GsRz.js +0 -142
- package/dist/chunks/LayerStack-CfQ6GsRz.js.map +0 -1
- package/dist/chunks/MenuButton-C_4nox39.js +0 -60
- package/dist/chunks/MenuButton-C_4nox39.js.map +0 -1
- package/dist/chunks/MeshEditor-Bipz-Ocl.js +0 -123
- package/dist/chunks/MeshEditor-Bipz-Ocl.js.map +0 -1
- package/dist/chunks/NumberField-CCjEDZCg.js.map +0 -1
- package/dist/chunks/OptionsBar-DeQ-vUeZ.js.map +0 -1
- package/dist/chunks/PaintField-jBOJ32rL.js.map +0 -1
- package/dist/chunks/PaintInput-Qs7Rul5R.js.map +0 -1
- package/dist/chunks/PatternPicker-BMpXWboq.js.map +0 -1
- package/dist/chunks/Plot2D-CXf_f7QD.js.map +0 -1
- package/dist/chunks/PointPlotter-S_gz7VYt.js.map +0 -1
- package/dist/chunks/Powerline-Ak5AWUlK.js +0 -36
- package/dist/chunks/Powerline-Ak5AWUlK.js.map +0 -1
- package/dist/chunks/Prefs-CNC8tzyN.js +0 -308
- package/dist/chunks/Prefs-CNC8tzyN.js.map +0 -1
- package/dist/chunks/Properties-Rnb6TAbN.js +0 -891
- package/dist/chunks/Properties-Rnb6TAbN.js.map +0 -1
- package/dist/chunks/RadioGroup-CsVp3SEu.js.map +0 -1
- package/dist/chunks/RangeSlider-DNr-pJpZ.js.map +0 -1
- package/dist/chunks/ResizeHandle-RXFf5fXr.js.map +0 -1
- package/dist/chunks/Select-BEope086.js +0 -190
- package/dist/chunks/Select-BEope086.js.map +0 -1
- package/dist/chunks/SelectionPanel-CEbLS-0D.js.map +0 -1
- package/dist/chunks/Sidebar-qn_oSCNX.js.map +0 -1
- package/dist/chunks/SidebarPanel-Bs6V21hg.js.map +0 -1
- package/dist/chunks/Slider-CIIrqiFS.js.map +0 -1
- package/dist/chunks/StatusBar-B4L15DSm.js.map +0 -1
- package/dist/chunks/Switch-DH5POG0T.js.map +0 -1
- package/dist/chunks/Tabs-BFHikpml.js.map +0 -1
- package/dist/chunks/Timeline-DNKY_yiK.js.map +0 -1
- package/dist/chunks/Toast-CI1UDuK6.js.map +0 -1
- package/dist/chunks/ToggleBar-CClus5Cd.js +0 -75
- package/dist/chunks/ToggleBar-CClus5Cd.js.map +0 -1
- package/dist/chunks/TokenPanel-BPHq24dc.js.map +0 -1
- package/dist/chunks/ToolButton-9QzJCmuM.js.map +0 -1
- package/dist/chunks/ToolGroup-BJiDrH_i.js.map +0 -1
- package/dist/chunks/ToolOptionsBar-CAM6RcUH.js.map +0 -1
- package/dist/chunks/ToolPalette-DGkKwE7D.js +0 -97
- package/dist/chunks/ToolPalette-DGkKwE7D.js.map +0 -1
- package/dist/chunks/Tooltip-C4YBczLq.js +0 -42
- package/dist/chunks/Tooltip-C4YBczLq.js.map +0 -1
- package/dist/chunks/createKeyframeLayer-DKtO0Sw_.js.map +0 -1
- package/dist/chunks/dlog-CMYiRF3Q.js.map +0 -1
- package/dist/chunks/icons-DFLytcui.js +0 -165
- package/dist/chunks/icons-DFLytcui.js.map +0 -1
- package/dist/chunks/keyGlyph-Bp0wnLHn.js.map +0 -1
- package/dist/chunks/model-13kZ_-mE.js +0 -483
- package/dist/chunks/model-13kZ_-mE.js.map +0 -1
- package/dist/chunks/number-BHz66zQO.js.map +0 -1
- package/dist/chunks/portalHost-CjpCnuGU.js.map +0 -1
- package/dist/chunks/range.module-DSsOIq1R.js +0 -8
- package/dist/chunks/range.module-DSsOIq1R.js.map +0 -1
- package/dist/chunks/schema-Dft4Cu2p.js +0 -47
- package/dist/chunks/schema-Dft4Cu2p.js.map +0 -1
- package/dist/chunks/segmentedControl.module-DS72X1ns.js +0 -11
- package/dist/chunks/segmentedControl.module-DS72X1ns.js.map +0 -1
- package/dist/chunks/snap-CEjuWOhN.js.map +0 -1
- package/dist/chunks/useReorderDragList-CSQGd7zQ.js +0 -102
- package/dist/chunks/useReorderDragList-CSQGd7zQ.js.map +0 -1
- package/dist/chunks/useRovingTabIndex-Dkpf_KhN.js.map +0 -1
- package/dist/components/ActionsBar/ActionsBar.d.ts +0 -35
- package/dist/components/ActionsBar/ActionsBar.d.ts.map +0 -1
- package/dist/components/ActionsBar/index.d.ts +0 -3
- package/dist/components/ActionsBar/index.d.ts.map +0 -1
- package/dist/components/ActionsBar/index.js +0 -2
- package/dist/components/LayerStack/LayerStack.d.ts +0 -62
- package/dist/components/LayerStack/LayerStack.d.ts.map +0 -1
- package/dist/components/LayerStack/index.d.ts +0 -2
- package/dist/components/LayerStack/index.d.ts.map +0 -1
- package/dist/components/LayerStack/index.js +0 -2
- package/dist/components/Properties/EffectCard.d.ts +0 -69
- package/dist/components/Properties/EffectCard.d.ts.map +0 -1
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { t as e } from "./Icon-Cgzy8VgC.js";
|
|
2
|
+
import { AlignBottomIcon as t, AlignCenterXIcon as n, AlignCenterYIcon as r, AlignLeftIcon as ee, AlignRightIcon as i, AlignTopIcon as a, ArrowIcon as o, BringForwardIcon as s, BringToFrontIcon as c, CopyIcon as l, CutIcon as u, DeleteIcon as d, DistributeHorizontalIcon as f, DistributeVerticalIcon as p, DuplicateIcon as m, EllipseIcon as h, EyedropperIcon as g, FlipXIcon as _, FlipYIcon as v, GroupIcon as y, HandIcon as b, ImageIcon as x, LassoIcon as S, LineIcon as C, PasteIcon as w, PenIcon as T, PencilIcon as E, PolygonIcon as D, RectIcon as O, RedoIcon as k, SelectIcon as A, SendBackwardIcon as j, SendToBackIcon as M, StarIcon as N, TextIcon as P, UndoIcon as F, UngroupIcon as I, UnknownIcon as L } from "@weasel-js/core";
|
|
3
|
+
import { jsx as R } from "react/jsx-runtime";
|
|
4
|
+
//#region src/icons/index.tsx
|
|
5
|
+
var z = (t) => /* @__PURE__ */ R(e, {
|
|
6
|
+
name: "clone",
|
|
7
|
+
...t
|
|
8
|
+
}), B = (t) => /* @__PURE__ */ R(e, {
|
|
9
|
+
name: "reset",
|
|
10
|
+
...t
|
|
11
|
+
}), V = (t) => /* @__PURE__ */ R(e, {
|
|
12
|
+
name: "close",
|
|
13
|
+
...t
|
|
14
|
+
}), H = (t) => /* @__PURE__ */ R(e, {
|
|
15
|
+
name: "export",
|
|
16
|
+
...t
|
|
17
|
+
}), U = (t) => /* @__PURE__ */ R(e, {
|
|
18
|
+
name: "zoomIn",
|
|
19
|
+
...t
|
|
20
|
+
}), W = (t) => /* @__PURE__ */ R(e, {
|
|
21
|
+
name: "pan",
|
|
22
|
+
...t
|
|
23
|
+
}), G = (t) => /* @__PURE__ */ R(e, {
|
|
24
|
+
name: "add",
|
|
25
|
+
...t
|
|
26
|
+
}), K = (t) => /* @__PURE__ */ R(e, {
|
|
27
|
+
name: "modeLight",
|
|
28
|
+
...t
|
|
29
|
+
}), q = (t) => /* @__PURE__ */ R(e, {
|
|
30
|
+
name: "modeDark",
|
|
31
|
+
...t
|
|
32
|
+
}), te = (t) => /* @__PURE__ */ R(e, {
|
|
33
|
+
name: "modeAuto",
|
|
34
|
+
...t
|
|
35
|
+
}), J = (t) => /* @__PURE__ */ R(e, {
|
|
36
|
+
name: "remove",
|
|
37
|
+
...t
|
|
38
|
+
}), Y = (t) => /* @__PURE__ */ R(e, {
|
|
39
|
+
name: "sort",
|
|
40
|
+
...t
|
|
41
|
+
}), X = (t) => /* @__PURE__ */ R(e, {
|
|
42
|
+
name: "zoomOut",
|
|
43
|
+
...t
|
|
44
|
+
}), Z = (t) => /* @__PURE__ */ R(e, {
|
|
45
|
+
name: "fit",
|
|
46
|
+
...t
|
|
47
|
+
}), Q = (t) => /* @__PURE__ */ R(e, {
|
|
48
|
+
name: "snapshot",
|
|
49
|
+
...t
|
|
50
|
+
}), ne = (t) => /* @__PURE__ */ R(e, {
|
|
51
|
+
name: "play",
|
|
52
|
+
...t
|
|
53
|
+
}), re = (t) => /* @__PURE__ */ R(e, {
|
|
54
|
+
name: "pause",
|
|
55
|
+
...t
|
|
56
|
+
}), ie = (t) => /* @__PURE__ */ R(e, {
|
|
57
|
+
name: "stop",
|
|
58
|
+
...t
|
|
59
|
+
}), ae = (t) => /* @__PURE__ */ R(e, {
|
|
60
|
+
name: "stepBack",
|
|
61
|
+
...t
|
|
62
|
+
}), $ = (t) => /* @__PURE__ */ R(e, {
|
|
63
|
+
name: "stepForward",
|
|
64
|
+
...t
|
|
65
|
+
}), oe = $, se = (t) => /* @__PURE__ */ R(e, {
|
|
66
|
+
name: "crosshair",
|
|
67
|
+
...t
|
|
68
|
+
}), ce = (t) => /* @__PURE__ */ R(e, {
|
|
69
|
+
name: "fullscreen",
|
|
70
|
+
...t
|
|
71
|
+
}), le = (t) => /* @__PURE__ */ R(e, {
|
|
72
|
+
name: "compare",
|
|
73
|
+
...t
|
|
74
|
+
}), ue = (t) => /* @__PURE__ */ R(e, {
|
|
75
|
+
name: "filter",
|
|
76
|
+
...t
|
|
77
|
+
}), de = (t) => /* @__PURE__ */ R(e, {
|
|
78
|
+
name: "search",
|
|
79
|
+
...t
|
|
80
|
+
}), fe = (t) => /* @__PURE__ */ R(e, {
|
|
81
|
+
name: "loupe",
|
|
82
|
+
...t
|
|
83
|
+
}), pe = (t) => /* @__PURE__ */ R(e, {
|
|
84
|
+
name: "layers",
|
|
85
|
+
...t
|
|
86
|
+
}), me = (t) => /* @__PURE__ */ R(e, {
|
|
87
|
+
name: "page",
|
|
88
|
+
...t
|
|
89
|
+
}), he = (t) => /* @__PURE__ */ R(e, {
|
|
90
|
+
name: "lock",
|
|
91
|
+
...t
|
|
92
|
+
}), ge = (t) => /* @__PURE__ */ R(e, {
|
|
93
|
+
name: "unlock",
|
|
94
|
+
...t
|
|
95
|
+
}), _e = (t) => /* @__PURE__ */ R(e, {
|
|
96
|
+
name: "visible",
|
|
97
|
+
...t
|
|
98
|
+
}), ve = (t) => /* @__PURE__ */ R(e, {
|
|
99
|
+
name: "hidden",
|
|
100
|
+
...t
|
|
101
|
+
}), ye = (t) => /* @__PURE__ */ R(e, {
|
|
102
|
+
name: "pin",
|
|
103
|
+
...t
|
|
104
|
+
}), be = (t) => /* @__PURE__ */ R(e, {
|
|
105
|
+
name: "link",
|
|
106
|
+
...t
|
|
107
|
+
}), xe = (t) => /* @__PURE__ */ R(e, {
|
|
108
|
+
name: "collapse",
|
|
109
|
+
...t
|
|
110
|
+
}), Se = (t) => /* @__PURE__ */ R(e, {
|
|
111
|
+
name: "expand",
|
|
112
|
+
...t
|
|
113
|
+
}), Ce = (t) => /* @__PURE__ */ R(e, {
|
|
114
|
+
name: "chevron",
|
|
115
|
+
...t
|
|
116
|
+
}), we = (t) => /* @__PURE__ */ R(e, {
|
|
117
|
+
name: "tune",
|
|
118
|
+
...t
|
|
119
|
+
}), Te = (t) => /* @__PURE__ */ R(e, {
|
|
120
|
+
name: "grid",
|
|
121
|
+
...t
|
|
122
|
+
}), Ee = (t) => /* @__PURE__ */ R(e, {
|
|
123
|
+
name: "snap",
|
|
124
|
+
...t
|
|
125
|
+
}), De = (t) => /* @__PURE__ */ R(e, {
|
|
126
|
+
name: "measure",
|
|
127
|
+
...t
|
|
128
|
+
}), Oe = (t) => /* @__PURE__ */ R(e, {
|
|
129
|
+
name: "randomize",
|
|
130
|
+
...t
|
|
131
|
+
}), ke = (t) => /* @__PURE__ */ R(e, {
|
|
132
|
+
name: "refresh",
|
|
133
|
+
...t
|
|
134
|
+
}), Ae = (t) => /* @__PURE__ */ R(e, {
|
|
135
|
+
name: "info",
|
|
136
|
+
...t
|
|
137
|
+
}), je = (t) => /* @__PURE__ */ R(e, {
|
|
138
|
+
name: "warning",
|
|
139
|
+
...t
|
|
140
|
+
}), Me = (t) => /* @__PURE__ */ R(e, {
|
|
141
|
+
name: "error",
|
|
142
|
+
...t
|
|
143
|
+
}), Ne = (t) => /* @__PURE__ */ R(e, {
|
|
144
|
+
name: "busy",
|
|
145
|
+
...t
|
|
146
|
+
}), Pe = (t) => /* @__PURE__ */ R(e, {
|
|
147
|
+
name: "check",
|
|
148
|
+
...t
|
|
149
|
+
}), Fe = (t) => /* @__PURE__ */ R(e, {
|
|
150
|
+
name: "layoutRows",
|
|
151
|
+
...t
|
|
152
|
+
}), Ie = (t) => /* @__PURE__ */ R(e, {
|
|
153
|
+
name: "layoutColumns",
|
|
154
|
+
...t
|
|
155
|
+
}), Le = (t) => /* @__PURE__ */ R(e, {
|
|
156
|
+
name: "layoutGrid",
|
|
157
|
+
...t
|
|
158
|
+
});
|
|
159
|
+
//#endregion
|
|
160
|
+
export { K as $, ue as A, I as At, Ae as B, p as C, ae as Ct, Se as D, P as Dt, Me as E, ie as Et, Te as F, U as Ft, Fe as G, pe as H, y as I, X as It, he as J, C as K, b as L, _ as M, ge as Mt, v as N, _e as Nt, H as O, we as Ot, ce as P, je as Pt, q as Q, ve as R, f as S, N as St, h as T, oe as Tt, Ie as U, S as V, Le as W, De as X, fe as Y, te as Z, le as _, j as _t, ee as a, E as at, u as b, Q as bt, o as c, D as ct, Ne as d, k as dt, me as et, Pe as f, ke as ft, xe as g, A as gt, V as h, de as ht, r as i, T as it, Z as j, L as jt, g as k, F as kt, s as l, Oe as lt, z as m, B as mt, t as n, w as nt, i as o, ye as ot, Ce as p, J as pt, be as q, n as r, re as rt, a as s, ne as st, G as t, W as tt, c as u, O as ut, l as v, M as vt, m as w, $ as wt, d as x, Y as xt, se as y, Ee as yt, x as z };
|
|
161
|
+
|
|
162
|
+
//# sourceMappingURL=icons-Dk8SRS8g.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons-Dk8SRS8g.js","names":["Icon","EllipseIcon$1","ImageIcon$1","LassoIcon$1","LineIcon$1","PenIcon$1","PencilIcon$1","PolygonIcon$1","RectIcon$1","StarIcon$1","TextIcon$1","UnknownIcon$1","CloneIcon","p","ResetIcon","CloseIcon","ExportIcon","ZoomInIcon","PanIcon","AddIcon","ModeLightIcon","ModeDarkIcon","ModeAutoIcon","RemoveIcon","SortIcon","ZoomOutIcon","FitIcon","SnapshotIcon","PlayIcon","PauseIcon","StopIcon","StepBackIcon","StepForwardIcon","StepIcon","CrosshairIcon","FullscreenIcon","CompareIcon","FilterIcon","SearchIcon","LoupeIcon","LayersIcon","PageIcon","LockIcon","UnlockIcon","VisibleIcon","HiddenIcon","PinIcon","LinkIcon","CollapseIcon","ExpandIcon","ChevronIcon","TuneIcon","GridIcon","SnapIcon","MeasureIcon","RandomizeIcon","RefreshIcon","InfoIcon","WarningIcon","ErrorIcon","BusyIcon","CheckIcon","LayoutRowsIcon","LayoutColumnsIcon","LayoutGridIcon","UngroupIcon","DistributeVerticalIcon","GroupIcon","HandIcon","FlipXIcon","FlipYIcon","DistributeHorizontalIcon","SendBackwardIcon","AlignLeftIcon","CutIcon","ArrowIcon","RedoIcon","SelectIcon","AlignCenterYIcon","EyedropperIcon","UndoIcon","BringForwardIcon","AlignBottomIcon","PasteIcon","AlignRightIcon","AlignCenterXIcon","AlignTopIcon","BringToFrontIcon","CopyIcon","SendToBackIcon","DuplicateIcon","DeleteIcon"],"sources":["../../src/icons/index.tsx"],"sourcesContent":["import { Icon, type IconProps } from './Icon';\n\nexport { Icon, isFillable } from './Icon';\nexport type { IconProps } from './Icon';\nexport { ICON_FILLS, ICON_GROUPS, ICON_PATHS } from './paths';\nexport { ShapeKindIcon } from './ShapeKindIcon';\nexport type { ShapeKindIconProps } from './ShapeKindIcon';\nexport type { FillableIconName, IconName } from './paths';\n\n// Tool glyphs live in @weasel-js/core because core needs them for\n// `Tool.presentation.icon` defaults and cannot depend on this package.\n// Re-exported here so consumers have one import site for the whole set.\nexport {\n SelectIcon, LassoIcon, RectIcon, EllipseIcon, ImageIcon, EyedropperIcon,\n LineIcon, ArrowIcon, PolygonIcon, StarIcon, PencilIcon, TextIcon, PenIcon, HandIcon,\n UnknownIcon,\n} from '@weasel-js/core';\n// The standard edit actions' glyphs live beside those actions in core, for the\n// same reason.\nexport {\n CutIcon, CopyIcon, PasteIcon, DuplicateIcon, GroupIcon, UngroupIcon,\n BringForwardIcon, BringToFrontIcon, SendBackwardIcon, SendToBackIcon, FlipXIcon, FlipYIcon,\n UndoIcon, RedoIcon, DeleteIcon,\n AlignLeftIcon, AlignCenterXIcon, AlignRightIcon, AlignTopIcon, AlignCenterYIcon, AlignBottomIcon,\n DistributeHorizontalIcon, DistributeVerticalIcon,\n} from '@weasel-js/core';\n\nexport const CloneIcon = (p: IconProps) => <Icon name=\"clone\" {...p} />;\nexport const ResetIcon = (p: IconProps) => <Icon name=\"reset\" {...p} />;\nexport const CloseIcon = (p: IconProps) => <Icon name=\"close\" {...p} />;\nexport const ExportIcon = (p: IconProps) => <Icon name=\"export\" {...p} />;\nexport const ZoomInIcon = (p: IconProps) => <Icon name=\"zoomIn\" {...p} />;\nexport const PanIcon = (p: IconProps) => <Icon name=\"pan\" {...p} />;\nexport const AddIcon = (p: IconProps) => <Icon name=\"add\" {...p} />;\nexport const ModeLightIcon = (p: IconProps) => <Icon name=\"modeLight\" {...p} />;\nexport const ModeDarkIcon = (p: IconProps) => <Icon name=\"modeDark\" {...p} />;\nexport const ModeAutoIcon = (p: IconProps) => <Icon name=\"modeAuto\" {...p} />;\nexport const RemoveIcon = (p: IconProps) => <Icon name=\"remove\" {...p} />;\nexport const SortIcon = (p: IconProps) => <Icon name=\"sort\" {...p} />;\nexport const ZoomOutIcon = (p: IconProps) => <Icon name=\"zoomOut\" {...p} />;\nexport const FitIcon = (p: IconProps) => <Icon name=\"fit\" {...p} />;\nexport const SnapshotIcon = (p: IconProps) => <Icon name=\"snapshot\" {...p} />;\nexport const PlayIcon = (p: IconProps) => <Icon name=\"play\" {...p} />;\nexport const PauseIcon = (p: IconProps) => <Icon name=\"pause\" {...p} />;\nexport const StopIcon = (p: IconProps) => <Icon name=\"stop\" {...p} />;\nexport const StepBackIcon = (p: IconProps) => <Icon name=\"stepBack\" {...p} />;\nexport const StepForwardIcon = (p: IconProps) => <Icon name=\"stepForward\" {...p} />;\n/** @deprecated Use {@link StepForwardIcon}; `step` alone stopped naming a direction. */\nexport const StepIcon = StepForwardIcon;\nexport const CrosshairIcon = (p: IconProps) => <Icon name=\"crosshair\" {...p} />;\nexport const FullscreenIcon = (p: IconProps) => <Icon name=\"fullscreen\" {...p} />;\nexport const CompareIcon = (p: IconProps) => <Icon name=\"compare\" {...p} />;\nexport const FilterIcon = (p: IconProps) => <Icon name=\"filter\" {...p} />;\nexport const SearchIcon = (p: IconProps) => <Icon name=\"search\" {...p} />;\nexport const LoupeIcon = (p: IconProps) => <Icon name=\"loupe\" {...p} />;\nexport const LayersIcon = (p: IconProps) => <Icon name=\"layers\" {...p} />;\nexport const PageIcon = (p: IconProps) => <Icon name=\"page\" {...p} />;\nexport const LockIcon = (p: IconProps) => <Icon name=\"lock\" {...p} />;\nexport const UnlockIcon = (p: IconProps) => <Icon name=\"unlock\" {...p} />;\nexport const VisibleIcon = (p: IconProps) => <Icon name=\"visible\" {...p} />;\nexport const HiddenIcon = (p: IconProps) => <Icon name=\"hidden\" {...p} />;\nexport const PinIcon = (p: IconProps) => <Icon name=\"pin\" {...p} />;\nexport const LinkIcon = (p: IconProps) => <Icon name=\"link\" {...p} />;\nexport const CollapseIcon = (p: IconProps) => <Icon name=\"collapse\" {...p} />;\nexport const ExpandIcon = (p: IconProps) => <Icon name=\"expand\" {...p} />;\nexport const ChevronIcon = (p: IconProps) => <Icon name=\"chevron\" {...p} />;\nexport const TuneIcon = (p: IconProps) => <Icon name=\"tune\" {...p} />;\nexport const GridIcon = (p: IconProps) => <Icon name=\"grid\" {...p} />;\nexport const SnapIcon = (p: IconProps) => <Icon name=\"snap\" {...p} />;\nexport const MeasureIcon = (p: IconProps) => <Icon name=\"measure\" {...p} />;\nexport const RandomizeIcon = (p: IconProps) => <Icon name=\"randomize\" {...p} />;\nexport const RefreshIcon = (p: IconProps) => <Icon name=\"refresh\" {...p} />;\nexport const InfoIcon = (p: IconProps) => <Icon name=\"info\" {...p} />;\nexport const WarningIcon = (p: IconProps) => <Icon name=\"warning\" {...p} />;\nexport const ErrorIcon = (p: IconProps) => <Icon name=\"error\" {...p} />;\nexport const BusyIcon = (p: IconProps) => <Icon name=\"busy\" {...p} />;\nexport const CheckIcon = (p: IconProps) => <Icon name=\"check\" {...p} />;\nexport const LayoutRowsIcon = (p: IconProps) => <Icon name=\"layoutRows\" {...p} />;\nexport const LayoutColumnsIcon = (p: IconProps) => <Icon name=\"layoutColumns\" {...p} />;\nexport const LayoutGridIcon = (p: IconProps) => <Icon name=\"layoutGrid\" {...p} />;\n"],"mappings":"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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/interactiveTarget.ts
|
|
2
|
+
var e = [
|
|
3
|
+
"button",
|
|
4
|
+
"input",
|
|
5
|
+
"select",
|
|
6
|
+
"textarea",
|
|
7
|
+
"a[href]",
|
|
8
|
+
"[contenteditable=\"\"]",
|
|
9
|
+
"[contenteditable=\"true\"]",
|
|
10
|
+
"[role=\"button\"]",
|
|
11
|
+
"[role=\"checkbox\"]",
|
|
12
|
+
"[role=\"switch\"]",
|
|
13
|
+
"[role=\"menuitem\"]",
|
|
14
|
+
"[role=\"link\"]"
|
|
15
|
+
].join(",");
|
|
16
|
+
function t(t, n) {
|
|
17
|
+
if (!(t instanceof Element)) return !1;
|
|
18
|
+
let r = t.closest(e);
|
|
19
|
+
return r !== null && r !== n && n.contains(r);
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { t as n, e as t };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=interactiveTarget-BNZmTow2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interactiveTarget-BNZmTow2.js","names":["CONTROL_SELECTOR","isInControlWithin","target","control","host"],"sources":["../../src/interactiveTarget.ts"],"sourcesContent":["/** Elements that handle their own press and keys. */\nexport const CONTROL_SELECTOR = [\n 'button', 'input', 'select', 'textarea', 'a[href]', '[contenteditable=\"\"]', '[contenteditable=\"true\"]',\n '[role=\"button\"]', '[role=\"checkbox\"]', '[role=\"switch\"]', '[role=\"menuitem\"]', '[role=\"link\"]',\n].join(',');\n\n/**\n * Whether `target` sits in a control of its own somewhere inside `host` — a\n * toggle in a list row. The host's handlers leave such an event to the\n * control, so a row's press, click and keys never swallow its controls'.\n */\nexport function isInControlWithin(target: EventTarget | null, host: Element): boolean {\n if (!(target instanceof Element)) return false;\n const control = target.closest(CONTROL_SELECTOR);\n return control !== null && control !== host && host.contains(control);\n}\n"],"mappings":";AACA,IAAaA,IAAmB;CAC9B;CAAU;CAAS;CAAU;CAAY;CAAW;CAAwB;CAC5E;CAAmB;CAAqB;CAAmB;CAAqB;AAClF,CAAC,CAAC,KAAK,GAAG;AAOV,SAAgBC,EAAkB,GAA4B,GAAwB;CACpF,IAAI,EAAEC,aAAkB,UAAU,OAAO;CACzC,IAAMC,IAAUD,EAAO,QAAQF,CAAgB;CAC/C,OAAOG,MAAY,QAAQA,MAAYC,KAAQA,EAAK,SAASD,CAAO;AACtE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyGlyph-C0qTakG-.js","names":["keyGlyph","rawKey"],"sources":["../../src/components/Keycaps/keyGlyph.ts"],"sourcesContent":["/** Apple-style glyph for a DOM `KeyboardEvent.key` value. Covers escape,\n * delete/backspace, arrows, enter/return, tab, space. Unknown keys are\n * upper-cased (so `'a'` reads as `A` on a keycap) and returned unchanged\n * otherwise — making this safe to apply uniformly without a `has-glyph`\n * check at the call site. */\nexport function keyGlyph(rawKey: string): string {\n switch (rawKey) {\n case 'Escape': return '⎋';\n case 'Backspace': return '⌫';\n case 'Delete': return '⌦';\n case 'ArrowUp': return '↑';\n case 'ArrowDown': return '↓';\n case 'ArrowLeft': return '←';\n case 'ArrowRight': return '→';\n case 'Enter':\n case 'Return': return '↵';\n case 'Tab': return '⇥';\n case ' ':\n case 'Space': return '␣';\n default: return rawKey.toUpperCase();\n }\n}\n"],"mappings":";AAKA,SAAgBA,EAAS,GAAwB;CAC/C,QAAQC,GAAR;EACE,KAAK,UAAU,OAAO;EACtB,KAAK,aAAa,OAAO;EACzB,KAAK,UAAU,OAAO;EACtB,KAAK,WAAW,OAAO;EACvB,KAAK,aAAa,OAAO;EACzB,KAAK,aAAa,OAAO;EACzB,KAAK,cAAc,OAAO;EAC1B,KAAK;EACL,KAAK,UAAU,OAAO;EACtB,KAAK,OAAO,OAAO;EACnB,KAAK;EACL,KAAK,SAAS,OAAO;EACrB,SAAS,OAAOA,EAAO,YAAY;CACrC;AACF"}
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import { a as e, t } from "./Icon-Cgzy8VgC.js";
|
|
2
|
+
import { t as n } from "./PropertyField-DGCecAnV.js";
|
|
3
|
+
import { t as r } from "./ToggleBar-DTjGeS0Q.js";
|
|
4
|
+
import { t as i } from "./prefField-Dnl7nmjQ.js";
|
|
5
|
+
import { MIXED as a } from "@weasel-js/core";
|
|
6
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
+
import { Fragment as c, createElement as l } from "react";
|
|
8
|
+
var u = {
|
|
9
|
+
root: "_root_11o7u_1",
|
|
10
|
+
header: "_header_11o7u_8",
|
|
11
|
+
kind: "_kind_11o7u_16",
|
|
12
|
+
breakdown: "_breakdown_11o7u_21",
|
|
13
|
+
section: "_section_11o7u_26",
|
|
14
|
+
sectionTitle: "_sectionTitle_11o7u_35",
|
|
15
|
+
row: "_row_11o7u_44",
|
|
16
|
+
rowLabel: "_rowLabel_11o7u_52",
|
|
17
|
+
rowControls: "_rowControls_11o7u_56",
|
|
18
|
+
namedField: "_namedField_11o7u_66",
|
|
19
|
+
blockRow: "_blockRow_11o7u_78",
|
|
20
|
+
toggle: "_toggle_11o7u_89",
|
|
21
|
+
flagToggle: "_flagToggle_11o7u_111",
|
|
22
|
+
number: "_number_11o7u_115",
|
|
23
|
+
select: "_select_11o7u_116",
|
|
24
|
+
unrenderable: "_unrenderable_11o7u_120",
|
|
25
|
+
objectLeaf: "_objectLeaf_11o7u_127",
|
|
26
|
+
objectGroup: "_objectGroup_11o7u_136",
|
|
27
|
+
slider: "_slider_11o7u_143"
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/components/SelectionPanel/renderLeaf.tsx
|
|
31
|
+
function d(e, t) {
|
|
32
|
+
let { leaf: n } = e;
|
|
33
|
+
return n.kind === "boolean" && n.control === "toggle" && n.pair !== void 0 && t?.[e.ctx.path] === void 0 && t?.[n.kind] === void 0;
|
|
34
|
+
}
|
|
35
|
+
function f(e, t) {
|
|
36
|
+
let n = [];
|
|
37
|
+
for (let r = 0; r < e.length;) {
|
|
38
|
+
let i = e[r];
|
|
39
|
+
if (!d(i, t)) {
|
|
40
|
+
let e = i.render();
|
|
41
|
+
e != null && n.push({
|
|
42
|
+
key: i.key,
|
|
43
|
+
leaf: i.leaf,
|
|
44
|
+
block: i.leaf.block === !0,
|
|
45
|
+
content: e
|
|
46
|
+
}), r += 1;
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
let a = r + 1;
|
|
50
|
+
for (; a < e.length && d(e[a], t) && e[a].leaf.pair === i.leaf.pair;) a += 1;
|
|
51
|
+
let s = e.slice(r, a);
|
|
52
|
+
n.push({
|
|
53
|
+
key: i.key,
|
|
54
|
+
leaf: i.leaf,
|
|
55
|
+
block: s.every((e) => e.leaf.block === !0),
|
|
56
|
+
content: /* @__PURE__ */ o(p, {
|
|
57
|
+
run: s,
|
|
58
|
+
ariaLabel: i.leaf.pair
|
|
59
|
+
})
|
|
60
|
+
}), r = a;
|
|
61
|
+
}
|
|
62
|
+
return n;
|
|
63
|
+
}
|
|
64
|
+
function p({ run: n, ariaLabel: i }) {
|
|
65
|
+
let a = n.filter((e) => e.ctx.value === !0).map((e) => e.key);
|
|
66
|
+
return /* @__PURE__ */ o(r, {
|
|
67
|
+
mode: "multiple",
|
|
68
|
+
size: "sm",
|
|
69
|
+
variant: "flat",
|
|
70
|
+
className: u.flagToggle,
|
|
71
|
+
ariaLabel: i,
|
|
72
|
+
items: n.map((n) => {
|
|
73
|
+
let r = n.leaf;
|
|
74
|
+
return {
|
|
75
|
+
value: n.key,
|
|
76
|
+
label: r.icon && r.icon in e ? /* @__PURE__ */ o(t, {
|
|
77
|
+
name: r.icon,
|
|
78
|
+
size: 14
|
|
79
|
+
}) : r.short ?? r.name.slice(0, 1),
|
|
80
|
+
ariaLabel: n.ariaLabel
|
|
81
|
+
};
|
|
82
|
+
}),
|
|
83
|
+
value: a,
|
|
84
|
+
mixedValues: n.filter((e) => e.ctx.mixed).map((e) => e.key),
|
|
85
|
+
onChange: (e) => {
|
|
86
|
+
for (let t of n) {
|
|
87
|
+
let n = e.includes(t.key);
|
|
88
|
+
n !== a.includes(t.key) && t.ctx.setValue(n);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
function m(e, t, r, a = "", c = !1) {
|
|
94
|
+
let { pref: d, value: f, mixed: p, unset: m, setValue: v } = e;
|
|
95
|
+
if (d.kind === "object") return /* @__PURE__ */ o(_, {
|
|
96
|
+
ctx: e,
|
|
97
|
+
renderers: r,
|
|
98
|
+
selectionKey: a
|
|
99
|
+
});
|
|
100
|
+
let y = i(d, {
|
|
101
|
+
value: f,
|
|
102
|
+
mixed: p,
|
|
103
|
+
unset: m,
|
|
104
|
+
siblings: e.siblings,
|
|
105
|
+
setValue: v,
|
|
106
|
+
fontVariant: {
|
|
107
|
+
weight: e.valueAt("data.style.fontWeight").value,
|
|
108
|
+
style: e.valueAt("data.style.fontStyle").value
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
if (y === null) return /* @__PURE__ */ s("span", {
|
|
112
|
+
className: u.unrenderable,
|
|
113
|
+
children: [
|
|
114
|
+
"(",
|
|
115
|
+
d.kind,
|
|
116
|
+
": no renderer)"
|
|
117
|
+
]
|
|
118
|
+
});
|
|
119
|
+
switch (y.kind) {
|
|
120
|
+
case "boolean": return /* @__PURE__ */ o(n, {
|
|
121
|
+
...y,
|
|
122
|
+
...h(t),
|
|
123
|
+
control: y.control ?? "switch",
|
|
124
|
+
className: y.control === "toggle" ? u.flagToggle : void 0
|
|
125
|
+
});
|
|
126
|
+
case "number": return /* @__PURE__ */ o(n, {
|
|
127
|
+
...y,
|
|
128
|
+
...h(t),
|
|
129
|
+
className: y.control === "slider" ? u.slider : u.number,
|
|
130
|
+
steppers: !1
|
|
131
|
+
});
|
|
132
|
+
case "string": return /* @__PURE__ */ o(n, {
|
|
133
|
+
...y,
|
|
134
|
+
...h(t),
|
|
135
|
+
onInput: g
|
|
136
|
+
});
|
|
137
|
+
case "enum": return /* @__PURE__ */ o(n, {
|
|
138
|
+
...y,
|
|
139
|
+
...h(t),
|
|
140
|
+
className: y.control === "toggle" ? u.toggle : y.control === "radio" ? void 0 : u.select
|
|
141
|
+
});
|
|
142
|
+
case "font-family": return /* @__PURE__ */ o(n, {
|
|
143
|
+
...y,
|
|
144
|
+
...h(t),
|
|
145
|
+
className: u.select
|
|
146
|
+
});
|
|
147
|
+
case "paint": return /* @__PURE__ */ l(n, {
|
|
148
|
+
...y,
|
|
149
|
+
...h(t),
|
|
150
|
+
key: a,
|
|
151
|
+
control: "inline",
|
|
152
|
+
allowNone: !c
|
|
153
|
+
});
|
|
154
|
+
default: return /* @__PURE__ */ o(n, {
|
|
155
|
+
...y,
|
|
156
|
+
...h(t)
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
var h = (e) => ({
|
|
161
|
+
chrome: "framed",
|
|
162
|
+
name: e
|
|
163
|
+
}), g = () => {};
|
|
164
|
+
function _({ ctx: n, renderers: r, selectionKey: i = "" }) {
|
|
165
|
+
let a = n.pref, l = typeof n.value == "object" && n.value !== null ? n.value : void 0, d = Object.values(a.children).every((e) => !("kind" in e)), p = (d, h) => {
|
|
166
|
+
let g = [], _ = (e) => typeof e == "object" && !!e && "controls" in e, v = [], y = () => {
|
|
167
|
+
for (let { key: e, leaf: t, block: n, content: i } of f(v, r)) {
|
|
168
|
+
let r = g[g.length - 1];
|
|
169
|
+
if (t.pair !== void 0 && _(r) && r.pair === t.pair) {
|
|
170
|
+
r.controls.push(/* @__PURE__ */ o(c, { children: i }, e)), r.block &&= n;
|
|
171
|
+
continue;
|
|
172
|
+
}
|
|
173
|
+
g.push({
|
|
174
|
+
key: e,
|
|
175
|
+
pair: t.pair,
|
|
176
|
+
label: t.pair ?? t.name,
|
|
177
|
+
title: t.description,
|
|
178
|
+
block: n,
|
|
179
|
+
controls: [/* @__PURE__ */ o(c, { children: i }, e)]
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
v = [];
|
|
183
|
+
};
|
|
184
|
+
for (let [c, f] of Object.entries(d)) {
|
|
185
|
+
if (!("kind" in f)) {
|
|
186
|
+
let e = f.name !== "", t = p(f.children, e);
|
|
187
|
+
if (t.length === 0) continue;
|
|
188
|
+
y(), g.push(/* @__PURE__ */ s("div", {
|
|
189
|
+
className: e && h ? u.objectGroup : void 0,
|
|
190
|
+
children: [e && /* @__PURE__ */ o("h5", {
|
|
191
|
+
className: u.sectionTitle,
|
|
192
|
+
children: f.name
|
|
193
|
+
}), t]
|
|
194
|
+
}, `group:${c}`));
|
|
195
|
+
continue;
|
|
196
|
+
}
|
|
197
|
+
let d = `${n.path}.${c}`, _ = {
|
|
198
|
+
path: d,
|
|
199
|
+
pref: f,
|
|
200
|
+
value: l?.[c],
|
|
201
|
+
mixed: n.mixed,
|
|
202
|
+
unset: !n.mixed && l?.[c] === void 0,
|
|
203
|
+
siblings: l,
|
|
204
|
+
valueAt: n.valueAt,
|
|
205
|
+
selectionKey: n.selectionKey,
|
|
206
|
+
setValue: (e) => {
|
|
207
|
+
let t = l ?? a.fromScalar?.(n.value) ?? (typeof a.default == "object" && a.default !== null ? { ...a.default } : {});
|
|
208
|
+
if (e === void 0) {
|
|
209
|
+
let { [c]: e, ...r } = t;
|
|
210
|
+
n.setValue(r);
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
n.setValue({
|
|
214
|
+
...t,
|
|
215
|
+
[c]: e
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
v.push({
|
|
220
|
+
key: d,
|
|
221
|
+
leaf: f,
|
|
222
|
+
ctx: _,
|
|
223
|
+
ariaLabel: f.name,
|
|
224
|
+
render: () => {
|
|
225
|
+
let n = r?.[d] ?? r?.[f.kind], a = n ? n(_) : m(_, f.name, r, i, !0);
|
|
226
|
+
return a == null ? null : (f.pair !== void 0 || f.block === !0) && f.icon && f.icon in e ? /* @__PURE__ */ s("span", {
|
|
227
|
+
className: u.namedField,
|
|
228
|
+
children: [/* @__PURE__ */ o(t, {
|
|
229
|
+
name: f.icon,
|
|
230
|
+
size: 14
|
|
231
|
+
}), a]
|
|
232
|
+
}) : a;
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
return y(), g.map((e) => typeof e == "object" && e && "controls" in e ? e.block ? /* @__PURE__ */ o("div", {
|
|
237
|
+
className: `${u.rowControls} ${u.blockRow}`,
|
|
238
|
+
title: e.title,
|
|
239
|
+
children: e.controls
|
|
240
|
+
}, e.key) : /* @__PURE__ */ s("div", {
|
|
241
|
+
className: u.row,
|
|
242
|
+
children: [/* @__PURE__ */ o("span", {
|
|
243
|
+
className: u.rowLabel,
|
|
244
|
+
title: e.title,
|
|
245
|
+
children: e.label
|
|
246
|
+
}), /* @__PURE__ */ o("span", {
|
|
247
|
+
className: u.rowControls,
|
|
248
|
+
children: e.controls
|
|
249
|
+
})]
|
|
250
|
+
}, e.key) : e);
|
|
251
|
+
}, h = p(a.children, !d);
|
|
252
|
+
return h.length === 0 ? null : /* @__PURE__ */ s("div", {
|
|
253
|
+
className: u.objectLeaf,
|
|
254
|
+
children: [!d && /* @__PURE__ */ o("h4", {
|
|
255
|
+
className: u.sectionTitle,
|
|
256
|
+
children: a.name
|
|
257
|
+
}), h]
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
//#endregion
|
|
261
|
+
//#region src/components/SelectionPanel/model.ts
|
|
262
|
+
function v(e, t) {
|
|
263
|
+
if (e.kind === "container") return "group";
|
|
264
|
+
for (let n of t) if (n.matches(e.data)) return n.name;
|
|
265
|
+
return "unknown";
|
|
266
|
+
}
|
|
267
|
+
function y(e) {
|
|
268
|
+
return !("kind" in e);
|
|
269
|
+
}
|
|
270
|
+
function b(e) {
|
|
271
|
+
let t = [], n = [], r = (e, t) => {
|
|
272
|
+
for (let [n, i] of Object.entries(e.children)) y(i) ? r(i, t) : t.push({
|
|
273
|
+
path: n,
|
|
274
|
+
leaf: i
|
|
275
|
+
});
|
|
276
|
+
};
|
|
277
|
+
for (let [i, a] of Object.entries(e.children)) if (y(a)) {
|
|
278
|
+
let e = [];
|
|
279
|
+
r(a, e), t.push({
|
|
280
|
+
key: i,
|
|
281
|
+
name: a.name,
|
|
282
|
+
rows: x(e)
|
|
283
|
+
});
|
|
284
|
+
} else n.push({
|
|
285
|
+
path: i,
|
|
286
|
+
leaf: a
|
|
287
|
+
});
|
|
288
|
+
return n.length > 0 && t.unshift({
|
|
289
|
+
key: "",
|
|
290
|
+
name: "",
|
|
291
|
+
rows: x(n)
|
|
292
|
+
}), t;
|
|
293
|
+
}
|
|
294
|
+
function x(e) {
|
|
295
|
+
let t = [];
|
|
296
|
+
for (let n of e) {
|
|
297
|
+
let e = n.leaf.pair, r = t[t.length - 1];
|
|
298
|
+
e !== void 0 && r !== void 0 && r.label === e ? r.leaves.push(n) : t.push({
|
|
299
|
+
label: e ?? n.leaf.name,
|
|
300
|
+
leaves: [n]
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
return t;
|
|
304
|
+
}
|
|
305
|
+
function S(e, t) {
|
|
306
|
+
let n = [...new Set(e)];
|
|
307
|
+
if (n.length === 0) return [];
|
|
308
|
+
let r = new Map(t.map((e) => [e.name, e])), i = n.map((e) => r.get(e)?.schema);
|
|
309
|
+
if (i.some((e) => e === void 0)) return [];
|
|
310
|
+
let [a, ...o] = i, s = b(a);
|
|
311
|
+
if (o.length === 0) return s;
|
|
312
|
+
let c = (e) => `${e.path}\0${e.leaf.kind}`, l = o.map((e) => new Set(b(e).flatMap((e) => e.rows).flatMap((e) => e.leaves).map(c))), u = (e) => l.every((t) => t.has(c(e)));
|
|
313
|
+
return s.map((e) => ({
|
|
314
|
+
...e,
|
|
315
|
+
rows: e.rows.map((e) => ({
|
|
316
|
+
...e,
|
|
317
|
+
leaves: e.leaves.filter(u)
|
|
318
|
+
})).filter((e) => e.leaves.length > 0)
|
|
319
|
+
})).filter((e) => e.rows.length > 0);
|
|
320
|
+
}
|
|
321
|
+
function C(e, t) {
|
|
322
|
+
let n = t.split(".");
|
|
323
|
+
if (n.length < 2) return;
|
|
324
|
+
let r = n[0], i = r === "pose" ? e.pose : r === "data" ? e.data : void 0;
|
|
325
|
+
for (let e = 1; e < n.length; e++) {
|
|
326
|
+
if (typeof i != "object" || !i) return;
|
|
327
|
+
i = i[n[e]];
|
|
328
|
+
}
|
|
329
|
+
return i;
|
|
330
|
+
}
|
|
331
|
+
function w(e, t, n) {
|
|
332
|
+
let [r, ...i] = t;
|
|
333
|
+
if (i.length === 0) return Array.isArray(e) ? Object.assign([...e], { [r]: n }) : {
|
|
334
|
+
...e,
|
|
335
|
+
[r]: n
|
|
336
|
+
};
|
|
337
|
+
let a = e[r], o = w(Array.isArray(a) ? [...a] : typeof a == "object" && a ? { ...a } : {}, i, n);
|
|
338
|
+
return Array.isArray(e) ? Object.assign([...e], { [r]: o }) : {
|
|
339
|
+
...e,
|
|
340
|
+
[r]: o
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
function T(e, t) {
|
|
344
|
+
let n, r = !0;
|
|
345
|
+
for (let i of e) {
|
|
346
|
+
let e = C(i, t);
|
|
347
|
+
if (r) n = e, r = !1;
|
|
348
|
+
else if (!Object.is(e, n)) return a;
|
|
349
|
+
}
|
|
350
|
+
return n;
|
|
351
|
+
}
|
|
352
|
+
function E(e) {
|
|
353
|
+
let t = /* @__PURE__ */ new Map();
|
|
354
|
+
for (let n of e) t.set(n, (t.get(n) ?? 0) + 1);
|
|
355
|
+
return [...t.entries()].map(([e, t]) => t > 1 ? `${e} ×${t}` : e).join(" · ");
|
|
356
|
+
}
|
|
357
|
+
//#endregion
|
|
358
|
+
export { y as a, x as c, f as d, u as f, S as i, w as l, T as n, E as o, v as r, C as s, a as t, m as u };
|
|
359
|
+
|
|
360
|
+
//# sourceMappingURL=model-Du7Lta4C.js.map
|