@weasel-js/ui 1.5.2 → 1.6.0
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-CYvfmEz0.js +57 -0
- package/dist/chunks/ActionBar-CYvfmEz0.js.map +1 -0
- package/dist/chunks/{Badge-CW9pBPFl.js → Badge-DZ0lFs14.js} +755 -738
- package/dist/chunks/Badge-DZ0lFs14.js.map +1 -0
- package/dist/chunks/{BandEditor-jY-PFKY6.js → BandEditor-D-nVrVO4.js} +34 -34
- package/dist/chunks/{BandEditor-jY-PFKY6.js.map → BandEditor-D-nVrVO4.js.map} +1 -1
- package/dist/chunks/Button-Dyp31jMt.js +111 -0
- package/dist/chunks/Button-Dyp31jMt.js.map +1 -0
- package/dist/chunks/ButtonBar-smZzFuEo.js +46 -0
- package/dist/chunks/ButtonBar-smZzFuEo.js.map +1 -0
- package/dist/chunks/Callout-xLjnx7Mp.js +119 -0
- package/dist/chunks/Callout-xLjnx7Mp.js.map +1 -0
- package/dist/chunks/{Checkbox-BOsDAY2F.js → Checkbox-ChZz30Ds.js} +1 -1
- package/dist/chunks/{Checkbox-BOsDAY2F.js.map → Checkbox-ChZz30Ds.js.map} +1 -1
- package/dist/chunks/Code-v4tDWuuN.js +24 -0
- package/dist/chunks/Code-v4tDWuuN.js.map +1 -0
- package/dist/chunks/{ColorField-BYzgZM9o.js → ColorField-DJSCuSJv.js} +15 -15
- package/dist/chunks/ColorField-DJSCuSJv.js.map +1 -0
- package/dist/chunks/ColorModeControl-JOEiqtE0.js +47 -0
- package/dist/chunks/ColorModeControl-JOEiqtE0.js.map +1 -0
- package/dist/chunks/{ComboBox-Cz3f0Y_8.js → ComboBox-C1JgIpML.js} +2 -2
- package/dist/chunks/{ComboBox-Cz3f0Y_8.js.map → ComboBox-C1JgIpML.js.map} +1 -1
- package/dist/chunks/{CurveEditor-DXwSP-iA.js → CurveEditor-f1R4kSbD.js} +2 -2
- package/dist/chunks/{CurveEditor-DXwSP-iA.js.map → CurveEditor-f1R4kSbD.js.map} +1 -1
- package/dist/chunks/DataGrid-CZPrB_3a.js +152 -0
- package/dist/chunks/DataGrid-CZPrB_3a.js.map +1 -0
- package/dist/chunks/DetailList-DHaXX4TG.js +43 -0
- package/dist/chunks/DetailList-DHaXX4TG.js.map +1 -0
- package/dist/chunks/{DetentSlider-CAubVX0J.js → DetentSlider-BYyaZha6.js} +2 -2
- package/dist/chunks/{DetentSlider-CAubVX0J.js.map → DetentSlider-BYyaZha6.js.map} +1 -1
- package/dist/chunks/Dialog-GIvjoDQj.js +66 -0
- package/dist/chunks/Dialog-GIvjoDQj.js.map +1 -0
- package/dist/chunks/Disclosure-D79jhmh2.js +58 -0
- package/dist/chunks/Disclosure-D79jhmh2.js.map +1 -0
- package/dist/chunks/DragGhost-DcU7cOwy.js +30 -0
- package/dist/chunks/DragGhost-DcU7cOwy.js.map +1 -0
- package/dist/chunks/{DragHandleGlyph-CppAz4_8.js → DragHandleGlyph-BtBxHjZS.js} +1 -1
- package/dist/chunks/{DragHandleGlyph-CppAz4_8.js.map → DragHandleGlyph-BtBxHjZS.js.map} +1 -1
- package/dist/chunks/{Field-DWnV8WZY.js → Field-xbqRmjsI.js} +1 -1
- package/dist/chunks/{Field-DWnV8WZY.js.map → Field-xbqRmjsI.js.map} +1 -1
- package/dist/chunks/FillStrokeSwatch-BViKXIPx.js +111 -0
- package/dist/chunks/FillStrokeSwatch-BViKXIPx.js.map +1 -0
- package/dist/chunks/{FontFamilySelect-DxfgTC3G.js → FontFamilySelect-r9TV_xIH.js} +2 -2
- package/dist/chunks/{FontFamilySelect-DxfgTC3G.js.map → FontFamilySelect-r9TV_xIH.js.map} +1 -1
- package/dist/chunks/GradientEditor-BRTxHG-W.js +333 -0
- package/dist/chunks/{GradientEditor-rRBmf3G0.js.map → GradientEditor-BRTxHG-W.js.map} +1 -1
- package/dist/chunks/{Icon-DT0x6HaQ.js → Icon-BW0qv_U7.js} +28 -20
- package/dist/chunks/Icon-BW0qv_U7.js.map +1 -0
- package/dist/chunks/InlineRange-BwGFDhpT.js +29 -0
- package/dist/chunks/InlineRange-BwGFDhpT.js.map +1 -0
- package/dist/chunks/{Input-DbMKpkXy.js → Input-Bx2cuUbS.js} +24 -19
- package/dist/chunks/Input-Bx2cuUbS.js.map +1 -0
- package/dist/chunks/ItemList-DzJ2lK0R.js +175 -0
- package/dist/chunks/ItemList-DzJ2lK0R.js.map +1 -0
- package/dist/chunks/ItemList.module-DDUXfuZL.js +14 -0
- package/dist/chunks/ItemList.module-DDUXfuZL.js.map +1 -0
- package/dist/chunks/{Jog-DkkTlL3_.js → Jog-LPoac9s4.js} +6 -6
- package/dist/chunks/{Jog-DkkTlL3_.js.map → Jog-LPoac9s4.js.map} +1 -1
- package/dist/chunks/{Keycaps-DunVpejA.js → Keycaps-CKiKOJnJ.js} +71 -65
- package/dist/chunks/Keycaps-CKiKOJnJ.js.map +1 -0
- package/dist/chunks/LayerList-BeGrkLb9.js +427 -0
- package/dist/chunks/LayerList-BeGrkLb9.js.map +1 -0
- package/dist/chunks/ListEditor-C6zLzCsJ.js +74 -0
- package/dist/chunks/ListEditor-C6zLzCsJ.js.map +1 -0
- package/dist/chunks/MenuButton-BcdhrNGh.js +70 -0
- package/dist/chunks/MenuButton-BcdhrNGh.js.map +1 -0
- package/dist/chunks/MeshEditor-BOOIFWnz.js +87 -0
- package/dist/chunks/MeshEditor-BOOIFWnz.js.map +1 -0
- package/dist/chunks/{NumberField-CCjEDZCg.js → NumberField-C1Y7zP-a.js} +27 -22
- package/dist/chunks/NumberField-C1Y7zP-a.js.map +1 -0
- package/dist/chunks/{OptionsBar-DeQ-vUeZ.js → OptionsBar-DlcagPYK.js} +3 -3
- package/dist/chunks/{OptionsBar-DeQ-vUeZ.js.map → OptionsBar-DlcagPYK.js.map} +1 -1
- package/dist/chunks/{PaintField-jBOJ32rL.js → PaintField-B2mLRZa4.js} +20 -20
- package/dist/chunks/PaintField-B2mLRZa4.js.map +1 -0
- package/dist/chunks/{PaintInput-Qs7Rul5R.js → PaintInput-BFKhd83I.js} +24 -24
- package/dist/chunks/{PaintInput-Qs7Rul5R.js.map → PaintInput-BFKhd83I.js.map} +1 -1
- package/dist/chunks/{PatternPicker-BMpXWboq.js → PatternPicker-DdfpxoQy.js} +2 -2
- package/dist/chunks/{PatternPicker-BMpXWboq.js.map → PatternPicker-DdfpxoQy.js.map} +1 -1
- package/dist/chunks/{Plot2D-CXf_f7QD.js → Plot2D-lyO7waPQ.js} +1 -1
- package/dist/chunks/{Plot2D-CXf_f7QD.js.map → Plot2D-lyO7waPQ.js.map} +1 -1
- package/dist/chunks/{PointPlotter-S_gz7VYt.js → PointPlotter-DGs9i5P-.js} +2 -2
- package/dist/chunks/{PointPlotter-S_gz7VYt.js.map → PointPlotter-DGs9i5P-.js.map} +1 -1
- package/dist/chunks/{Powerline-Ak5AWUlK.js → Powerline-DBEPceLE.js} +4 -2
- package/dist/chunks/Powerline-DBEPceLE.js.map +1 -0
- package/dist/chunks/Prefs-Ctu0H4-b.js +475 -0
- package/dist/chunks/Prefs-Ctu0H4-b.js.map +1 -0
- package/dist/chunks/Properties-Bbneh1ws.js +281 -0
- package/dist/chunks/Properties-Bbneh1ws.js.map +1 -0
- package/dist/chunks/PropertyField-CDb19d3F.js +756 -0
- package/dist/chunks/PropertyField-CDb19d3F.js.map +1 -0
- package/dist/chunks/{RadioGroup-CsVp3SEu.js → RadioGroup-BK2mD6Q0.js} +2 -2
- package/dist/chunks/{RadioGroup-CsVp3SEu.js.map → RadioGroup-BK2mD6Q0.js.map} +1 -1
- package/dist/chunks/{RangeSlider-DNr-pJpZ.js → RangeSlider-BiRAOsTh.js} +1 -1
- package/dist/chunks/{RangeSlider-DNr-pJpZ.js.map → RangeSlider-BiRAOsTh.js.map} +1 -1
- package/dist/chunks/{ResizeHandle-RXFf5fXr.js → ResizeHandle-Cc6EOehs.js} +9 -9
- package/dist/chunks/{ResizeHandle-RXFf5fXr.js.map → ResizeHandle-Cc6EOehs.js.map} +1 -1
- package/dist/chunks/Select-DVValBe1.js +225 -0
- package/dist/chunks/Select-DVValBe1.js.map +1 -0
- package/dist/chunks/{SelectionPanel-CEbLS-0D.js → SelectionPanel-C5LmZA7b.js} +21 -20
- package/dist/chunks/{SelectionPanel-CEbLS-0D.js.map → SelectionPanel-C5LmZA7b.js.map} +1 -1
- package/dist/chunks/{Sidebar-qn_oSCNX.js → Sidebar-DKKd4R-x.js} +1 -1
- package/dist/chunks/{Sidebar-qn_oSCNX.js.map → Sidebar-DKKd4R-x.js.map} +1 -1
- package/dist/chunks/{SidebarPanel-Bs6V21hg.js → SidebarPanel-u5NsuAZY.js} +15 -19
- package/dist/chunks/SidebarPanel-u5NsuAZY.js.map +1 -0
- package/dist/chunks/{Slider-CIIrqiFS.js → Slider-BwRrWHFW.js} +42 -42
- package/dist/chunks/{Slider-CIIrqiFS.js.map → Slider-BwRrWHFW.js.map} +1 -1
- package/dist/chunks/{StatusBar-B4L15DSm.js → StatusBar-CdPdmmda.js} +1 -1
- package/dist/chunks/{StatusBar-B4L15DSm.js.map → StatusBar-CdPdmmda.js.map} +1 -1
- package/dist/chunks/SwatchGrid-C-Zx2Exd.js +73 -0
- package/dist/chunks/SwatchGrid-C-Zx2Exd.js.map +1 -0
- package/dist/chunks/{Switch-DH5POG0T.js → Switch-DxF7TsEu.js} +1 -1
- package/dist/chunks/{Switch-DH5POG0T.js.map → Switch-DxF7TsEu.js.map} +1 -1
- package/dist/chunks/{Tabs-BFHikpml.js → Tabs-GXEfoe3o.js} +1 -1
- package/dist/chunks/{Tabs-BFHikpml.js.map → Tabs-GXEfoe3o.js.map} +1 -1
- package/dist/chunks/{Timeline-DNKY_yiK.js → Timeline-SgmpQtUV.js} +128 -132
- package/dist/chunks/Timeline-SgmpQtUV.js.map +1 -0
- package/dist/chunks/{Toast-CI1UDuK6.js → Toast-BfcljZz6.js} +1 -1
- package/dist/chunks/{Toast-CI1UDuK6.js.map → Toast-BfcljZz6.js.map} +1 -1
- package/dist/chunks/ToggleBar-Btnl5r7F.js +80 -0
- package/dist/chunks/{ToggleBar-CClus5Cd.js.map → ToggleBar-Btnl5r7F.js.map} +1 -1
- package/dist/chunks/{TokenPanel-BPHq24dc.js → TokenPanel-5ajHEHha.js} +40 -40
- package/dist/chunks/{TokenPanel-BPHq24dc.js.map → TokenPanel-5ajHEHha.js.map} +1 -1
- package/dist/chunks/{ToolButton-9QzJCmuM.js → ToolButton-rzqlFlAc.js} +4 -4
- package/dist/chunks/{ToolButton-9QzJCmuM.js.map → ToolButton-rzqlFlAc.js.map} +1 -1
- package/dist/chunks/{ToolGroup-BJiDrH_i.js → ToolGroup-4bUBV5k6.js} +1 -1
- package/dist/chunks/{ToolGroup-BJiDrH_i.js.map → ToolGroup-4bUBV5k6.js.map} +1 -1
- package/dist/chunks/{ToolOptionsBar-CAM6RcUH.js → ToolOptionsBar-BF3TNXA3.js} +2 -2
- package/dist/chunks/{ToolOptionsBar-CAM6RcUH.js.map → ToolOptionsBar-BF3TNXA3.js.map} +1 -1
- package/dist/chunks/ToolPalette-Uw4PvWwa.js +83 -0
- package/dist/chunks/ToolPalette-Uw4PvWwa.js.map +1 -0
- package/dist/chunks/{Tooltip-C4YBczLq.js → Tooltip-9XiJF937.js} +13 -13
- package/dist/chunks/Tooltip-9XiJF937.js.map +1 -0
- package/dist/chunks/Tree-BGt6P8tI.js +203 -0
- package/dist/chunks/Tree-BGt6P8tI.js.map +1 -0
- package/dist/chunks/{createKeyframeLayer-DKtO0Sw_.js → createKeyframeLayer-BzDRCrrh.js} +71 -71
- package/dist/chunks/{createKeyframeLayer-DKtO0Sw_.js.map → createKeyframeLayer-BzDRCrrh.js.map} +1 -1
- package/dist/chunks/formatShortcut-BoGqUoWi.js +15 -0
- package/dist/chunks/formatShortcut-BoGqUoWi.js.map +1 -0
- package/dist/chunks/icons-DbScMMqX.js +179 -0
- package/dist/chunks/icons-DbScMMqX.js.map +1 -0
- package/dist/chunks/interactiveTarget-C7QUBaJN.js +24 -0
- package/dist/chunks/interactiveTarget-C7QUBaJN.js.map +1 -0
- package/dist/chunks/{keyGlyph-Bp0wnLHn.js → keyGlyph-CLvUHU8c.js} +1 -1
- package/dist/chunks/{keyGlyph-Bp0wnLHn.js.map → keyGlyph-CLvUHU8c.js.map} +1 -1
- package/dist/chunks/model-BQMvTLnW.js +360 -0
- package/dist/chunks/model-BQMvTLnW.js.map +1 -0
- package/dist/chunks/{number-BHz66zQO.js → number-6S8IzXVt.js} +3 -3
- package/dist/chunks/number-6S8IzXVt.js.map +1 -0
- package/dist/chunks/paintPreview-DPtZS4yU.js +42 -0
- package/dist/chunks/paintPreview-DPtZS4yU.js.map +1 -0
- package/dist/chunks/paintValue-Bz6AVuh3.js +18 -0
- package/dist/chunks/paintValue-Bz6AVuh3.js.map +1 -0
- package/dist/chunks/prefField-CLkhrvYl.js +197 -0
- package/dist/chunks/prefField-CLkhrvYl.js.map +1 -0
- package/dist/chunks/segmentTooltip-CAkZlW-t.js +29 -0
- package/dist/chunks/segmentTooltip-CAkZlW-t.js.map +1 -0
- package/dist/chunks/segmentedControl.module-D2nw68Yo.js +11 -0
- package/dist/chunks/segmentedControl.module-D2nw68Yo.js.map +1 -0
- package/dist/chunks/{snap-CEjuWOhN.js → snap-DC4Km8xG.js} +1 -1
- package/dist/chunks/{snap-CEjuWOhN.js.map → snap-DC4Km8xG.js.map} +1 -1
- package/dist/chunks/stance-CarrcbbP.js +17 -0
- package/dist/chunks/stance-CarrcbbP.js.map +1 -0
- package/dist/chunks/useReorderDragList-Dcezzgix.js +131 -0
- package/dist/chunks/useReorderDragList-Dcezzgix.js.map +1 -0
- package/dist/chunks/{useRovingTabIndex-Dkpf_KhN.js → useRovingTabIndex-B4uJqiKP.js} +1 -1
- package/dist/chunks/useRovingTabIndex-B4uJqiKP.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 +6 -4
- 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 +2 -5
- 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/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/index.js +1 -1
- package/dist/components/CurveEditor/index.js +3 -3
- package/dist/components/DataGrid/DataGrid.d.ts +22 -0
- 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 +8 -2
- 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 +25 -17
- 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/index.js +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/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/index.js +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/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/index.js +1 -1
- package/dist/components/Powerline/Powerline.d.ts +4 -3
- 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 +10 -2
- package/dist/components/Prefs/PrefsDialog.d.ts.map +1 -1
- package/dist/components/Prefs/PrefsForm.d.ts +26 -25
- 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/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 +32 -236
- 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.map +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/RangeSlider/index.js +1 -1
- package/dist/components/ResizeHandle/index.js +1 -1
- package/dist/components/Select/Select.d.ts +38 -5
- 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/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/index.js +1 -1
- package/dist/components/SidebarPanel/SidebarPanel.d.ts +2 -2
- package/dist/components/SidebarPanel/SidebarPanel.d.ts.map +1 -1
- package/dist/components/SidebarPanel/index.js +1 -1
- package/dist/components/Slider/index.js +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/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/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/index.js +1 -1
- package/dist/components/ToolButton/index.js +1 -1
- package/dist/components/ToolGroup/index.js +1 -1
- package/dist/components/ToolOptionsBar/index.js +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 +6 -2
- 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.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 +5 -3
- 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 +16 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +110 -78
- package/dist/index.js.map +1 -1
- package/dist/interactiveTarget.d.ts +9 -0
- package/dist/interactiveTarget.d.ts.map +1 -0
- 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/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/ColorField-BYzgZM9o.js.map +0 -1
- package/dist/chunks/DataGrid-C8KrYtw7.js +0 -104
- package/dist/chunks/DataGrid-C8KrYtw7.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/GradientEditor-rRBmf3G0.js +0 -333
- 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/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/PaintField-jBOJ32rL.js.map +0 -1
- 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/Select-BEope086.js +0 -190
- package/dist/chunks/Select-BEope086.js.map +0 -1
- package/dist/chunks/SidebarPanel-Bs6V21hg.js.map +0 -1
- package/dist/chunks/Timeline-DNKY_yiK.js.map +0 -1
- package/dist/chunks/ToggleBar-CClus5Cd.js +0 -75
- package/dist/chunks/ToolPalette-DGkKwE7D.js +0 -97
- package/dist/chunks/ToolPalette-DGkKwE7D.js.map +0 -1
- package/dist/chunks/Tooltip-C4YBczLq.js.map +0 -1
- package/dist/chunks/icons-DFLytcui.js +0 -165
- package/dist/chunks/icons-DFLytcui.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/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/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 @@
|
|
|
1
|
+
{"version":3,"file":"formatShortcut-BoGqUoWi.js","names":[],"sources":["../../src/components/ToolPalette/formatShortcut.ts"],"sourcesContent":["import { keyGlyph } from '../Keycaps/keyGlyph';\n\nexport interface ShortcutInput {\n key: string | readonly string[];\n mod?: boolean;\n alt?: boolean;\n shift?: boolean | 'optional';\n}\n\n/** Format a shortcut as an array of display chips, one per key — modifier\n * icons (⌘, ↑, ⌥) followed by the key glyph. UIs that want a boxed\n * per-key look render each chip in its own element. `shift: 'optional'` is\n * treated as falsy. */\nexport function formatShortcutParts(b: ShortcutInput | undefined): readonly string[] | undefined {\n if (!b) return undefined;\n const rawKey = Array.isArray(b.key) ? b.key[0] : (b.key as string);\n const parts: string[] = [];\n if (b.mod) parts.push('⌘');\n if (b.shift === true) parts.push('⇧');\n if (b.alt) parts.push('⌥');\n parts.push(keyGlyph(rawKey));\n return parts;\n}\n\n/** Format a shortcut as a single display string. Order: mod, shift, alt,\n * key. Returns `undefined` for `undefined` input so callers can `??` a\n * fallback. When `key` is an array, the first element is used. `shift: 'optional'`\n * is treated as falsy. */\nexport function formatShortcut(b: ShortcutInput | undefined): string | undefined {\n const parts = formatShortcutParts(b);\n return parts ? parts.join('') : undefined;\n}\n"],"mappings":";;AAaA,SAAgB,EAAoB,GAA6D;AAC/F,KAAI,CAAC,EAAG;CACR,IAAM,IAAS,MAAM,QAAQ,EAAE,IAAI,GAAG,EAAE,IAAI,KAAM,EAAE,KAC9C,IAAkB,EAAE;AAK1B,QAJI,EAAE,OAAK,EAAM,KAAK,IAAI,EACtB,EAAE,UAAU,MAAM,EAAM,KAAK,IAAI,EACjC,EAAE,OAAK,EAAM,KAAK,IAAI,EAC1B,EAAM,KAAK,EAAS,EAAO,CAAC,EACrB;;AAOT,SAAgB,EAAe,GAAkD;CAC/E,IAAM,IAAQ,EAAoB,EAAE;AACpC,QAAO,IAAQ,EAAM,KAAK,GAAG,GAAG,KAAA"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { t as e } from "./Icon-BW0qv_U7.js";
|
|
2
|
+
import { AlignBottomIcon as t, AlignCenterXIcon as n, AlignCenterYIcon as ee, AlignLeftIcon as te, AlignRightIcon as ne, AlignTopIcon as r, ArrowIcon as i, BringForwardIcon as a, BringToFrontIcon as o, CopyIcon as s, CutIcon as c, DeleteIcon as l, DistributeHorizontalIcon as u, DistributeVerticalIcon as d, DuplicateIcon as f, EllipseIcon as p, EllipseIcon as m, EyedropperIcon as h, FlipXIcon as g, FlipYIcon as _, GroupIcon as v, HandIcon as y, ImageIcon as b, ImageIcon as x, LassoIcon as S, LassoIcon as C, LineIcon as w, LineIcon as T, PasteIcon as E, PenIcon as D, PenIcon as O, PencilIcon as k, PencilIcon as A, PolygonIcon as j, PolygonIcon as M, RectIcon as N, RectIcon as P, RedoIcon as F, SelectIcon as I, SendBackwardIcon as L, SendToBackIcon as R, StarIcon as z, StarIcon as B, TextIcon as V, TextIcon as H, UndoIcon as U, UngroupIcon as W, UnknownIcon as G, UnknownIcon as K } from "@weasel-js/core";
|
|
3
|
+
import { jsx as q } from "react/jsx-runtime";
|
|
4
|
+
//#region src/icons/ShapeKindIcon.tsx
|
|
5
|
+
var J = {
|
|
6
|
+
rect: N,
|
|
7
|
+
ellipse: p,
|
|
8
|
+
line: w,
|
|
9
|
+
polygon: j,
|
|
10
|
+
star: z,
|
|
11
|
+
pen: D,
|
|
12
|
+
pencil: k,
|
|
13
|
+
lasso: S,
|
|
14
|
+
text: V,
|
|
15
|
+
image: b
|
|
16
|
+
};
|
|
17
|
+
function Y({ kind: e, ...t }) {
|
|
18
|
+
return /* @__PURE__ */ q(J[e] ?? G, { ...t });
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/icons/index.tsx
|
|
22
|
+
var X = (t) => /* @__PURE__ */ q(e, {
|
|
23
|
+
name: "clone",
|
|
24
|
+
...t
|
|
25
|
+
}), Z = (t) => /* @__PURE__ */ q(e, {
|
|
26
|
+
name: "reset",
|
|
27
|
+
...t
|
|
28
|
+
}), re = (t) => /* @__PURE__ */ q(e, {
|
|
29
|
+
name: "close",
|
|
30
|
+
...t
|
|
31
|
+
}), Q = (t) => /* @__PURE__ */ q(e, {
|
|
32
|
+
name: "export",
|
|
33
|
+
...t
|
|
34
|
+
}), ie = (t) => /* @__PURE__ */ q(e, {
|
|
35
|
+
name: "zoomIn",
|
|
36
|
+
...t
|
|
37
|
+
}), ae = (t) => /* @__PURE__ */ q(e, {
|
|
38
|
+
name: "pan",
|
|
39
|
+
...t
|
|
40
|
+
}), oe = (t) => /* @__PURE__ */ q(e, {
|
|
41
|
+
name: "add",
|
|
42
|
+
...t
|
|
43
|
+
}), se = (t) => /* @__PURE__ */ q(e, {
|
|
44
|
+
name: "modeLight",
|
|
45
|
+
...t
|
|
46
|
+
}), ce = (t) => /* @__PURE__ */ q(e, {
|
|
47
|
+
name: "modeDark",
|
|
48
|
+
...t
|
|
49
|
+
}), le = (t) => /* @__PURE__ */ q(e, {
|
|
50
|
+
name: "modeAuto",
|
|
51
|
+
...t
|
|
52
|
+
}), ue = (t) => /* @__PURE__ */ q(e, {
|
|
53
|
+
name: "remove",
|
|
54
|
+
...t
|
|
55
|
+
}), de = (t) => /* @__PURE__ */ q(e, {
|
|
56
|
+
name: "sort",
|
|
57
|
+
...t
|
|
58
|
+
}), fe = (t) => /* @__PURE__ */ q(e, {
|
|
59
|
+
name: "zoomOut",
|
|
60
|
+
...t
|
|
61
|
+
}), pe = (t) => /* @__PURE__ */ q(e, {
|
|
62
|
+
name: "fit",
|
|
63
|
+
...t
|
|
64
|
+
}), me = (t) => /* @__PURE__ */ q(e, {
|
|
65
|
+
name: "snapshot",
|
|
66
|
+
...t
|
|
67
|
+
}), he = (t) => /* @__PURE__ */ q(e, {
|
|
68
|
+
name: "play",
|
|
69
|
+
...t
|
|
70
|
+
}), ge = (t) => /* @__PURE__ */ q(e, {
|
|
71
|
+
name: "pause",
|
|
72
|
+
...t
|
|
73
|
+
}), _e = (t) => /* @__PURE__ */ q(e, {
|
|
74
|
+
name: "stop",
|
|
75
|
+
...t
|
|
76
|
+
}), ve = (t) => /* @__PURE__ */ q(e, {
|
|
77
|
+
name: "stepBack",
|
|
78
|
+
...t
|
|
79
|
+
}), $ = (t) => /* @__PURE__ */ q(e, {
|
|
80
|
+
name: "stepForward",
|
|
81
|
+
...t
|
|
82
|
+
}), ye = $, be = (t) => /* @__PURE__ */ q(e, {
|
|
83
|
+
name: "crosshair",
|
|
84
|
+
...t
|
|
85
|
+
}), xe = (t) => /* @__PURE__ */ q(e, {
|
|
86
|
+
name: "fullscreen",
|
|
87
|
+
...t
|
|
88
|
+
}), Se = (t) => /* @__PURE__ */ q(e, {
|
|
89
|
+
name: "compare",
|
|
90
|
+
...t
|
|
91
|
+
}), Ce = (t) => /* @__PURE__ */ q(e, {
|
|
92
|
+
name: "filter",
|
|
93
|
+
...t
|
|
94
|
+
}), we = (t) => /* @__PURE__ */ q(e, {
|
|
95
|
+
name: "search",
|
|
96
|
+
...t
|
|
97
|
+
}), Te = (t) => /* @__PURE__ */ q(e, {
|
|
98
|
+
name: "loupe",
|
|
99
|
+
...t
|
|
100
|
+
}), Ee = (t) => /* @__PURE__ */ q(e, {
|
|
101
|
+
name: "layers",
|
|
102
|
+
...t
|
|
103
|
+
}), De = (t) => /* @__PURE__ */ q(e, {
|
|
104
|
+
name: "page",
|
|
105
|
+
...t
|
|
106
|
+
}), Oe = (t) => /* @__PURE__ */ q(e, {
|
|
107
|
+
name: "lock",
|
|
108
|
+
...t
|
|
109
|
+
}), ke = (t) => /* @__PURE__ */ q(e, {
|
|
110
|
+
name: "unlock",
|
|
111
|
+
...t
|
|
112
|
+
}), Ae = (t) => /* @__PURE__ */ q(e, {
|
|
113
|
+
name: "visible",
|
|
114
|
+
...t
|
|
115
|
+
}), je = (t) => /* @__PURE__ */ q(e, {
|
|
116
|
+
name: "hidden",
|
|
117
|
+
...t
|
|
118
|
+
}), Me = (t) => /* @__PURE__ */ q(e, {
|
|
119
|
+
name: "pin",
|
|
120
|
+
...t
|
|
121
|
+
}), Ne = (t) => /* @__PURE__ */ q(e, {
|
|
122
|
+
name: "link",
|
|
123
|
+
...t
|
|
124
|
+
}), Pe = (t) => /* @__PURE__ */ q(e, {
|
|
125
|
+
name: "collapse",
|
|
126
|
+
...t
|
|
127
|
+
}), Fe = (t) => /* @__PURE__ */ q(e, {
|
|
128
|
+
name: "expand",
|
|
129
|
+
...t
|
|
130
|
+
}), Ie = (t) => /* @__PURE__ */ q(e, {
|
|
131
|
+
name: "chevron",
|
|
132
|
+
...t
|
|
133
|
+
}), Le = (t) => /* @__PURE__ */ q(e, {
|
|
134
|
+
name: "tune",
|
|
135
|
+
...t
|
|
136
|
+
}), Re = (t) => /* @__PURE__ */ q(e, {
|
|
137
|
+
name: "grid",
|
|
138
|
+
...t
|
|
139
|
+
}), ze = (t) => /* @__PURE__ */ q(e, {
|
|
140
|
+
name: "snap",
|
|
141
|
+
...t
|
|
142
|
+
}), Be = (t) => /* @__PURE__ */ q(e, {
|
|
143
|
+
name: "measure",
|
|
144
|
+
...t
|
|
145
|
+
}), Ve = (t) => /* @__PURE__ */ q(e, {
|
|
146
|
+
name: "randomize",
|
|
147
|
+
...t
|
|
148
|
+
}), He = (t) => /* @__PURE__ */ q(e, {
|
|
149
|
+
name: "refresh",
|
|
150
|
+
...t
|
|
151
|
+
}), Ue = (t) => /* @__PURE__ */ q(e, {
|
|
152
|
+
name: "info",
|
|
153
|
+
...t
|
|
154
|
+
}), We = (t) => /* @__PURE__ */ q(e, {
|
|
155
|
+
name: "warning",
|
|
156
|
+
...t
|
|
157
|
+
}), Ge = (t) => /* @__PURE__ */ q(e, {
|
|
158
|
+
name: "error",
|
|
159
|
+
...t
|
|
160
|
+
}), Ke = (t) => /* @__PURE__ */ q(e, {
|
|
161
|
+
name: "busy",
|
|
162
|
+
...t
|
|
163
|
+
}), qe = (t) => /* @__PURE__ */ q(e, {
|
|
164
|
+
name: "check",
|
|
165
|
+
...t
|
|
166
|
+
}), Je = (t) => /* @__PURE__ */ q(e, {
|
|
167
|
+
name: "layoutRows",
|
|
168
|
+
...t
|
|
169
|
+
}), Ye = (t) => /* @__PURE__ */ q(e, {
|
|
170
|
+
name: "layoutColumns",
|
|
171
|
+
...t
|
|
172
|
+
}), Xe = (t) => /* @__PURE__ */ q(e, {
|
|
173
|
+
name: "layoutGrid",
|
|
174
|
+
...t
|
|
175
|
+
});
|
|
176
|
+
//#endregion
|
|
177
|
+
export { se as $, Ce as A, W as At, Ue as B, d as C, ve as Ct, Fe as D, H as Dt, Ge as E, _e as Et, Re as F, ie as Ft, Je as G, Ee as H, v as I, fe as It, Oe as J, T as K, y as L, Y as Lt, g as M, ke as Mt, _ as N, Ae as Nt, Q as O, Le as Ot, xe as P, We as Pt, ce as Q, je as R, u as S, B as St, m as T, ye as Tt, Ye as U, C as V, Xe as W, Be as X, Te as Y, le as Z, Se as _, L as _t, te as a, A as at, c as b, me as bt, i as c, M as ct, Ke as d, F as dt, De as et, qe as f, He as ft, Pe as g, I as gt, re as h, we as ht, ee as i, O as it, pe as j, K as jt, h as k, U as kt, a as l, Ve as lt, X as m, Z as mt, t as n, E as nt, ne as o, Me as ot, Ie as p, ue as pt, Ne as q, n as r, ge as rt, r as s, he as st, oe as t, ae as tt, o as u, P as ut, s as v, R as vt, f as w, $ as wt, l as x, de as xt, be as y, ze as yt, x as z };
|
|
178
|
+
|
|
179
|
+
//# sourceMappingURL=icons-DbScMMqX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons-DbScMMqX.js","names":[],"sources":["../../src/icons/ShapeKindIcon.tsx","../../src/icons/index.tsx"],"sourcesContent":["import type { ComponentType } from 'react';\nimport {\n EllipseIcon, ImageIcon, LassoIcon, LineIcon, PenIcon, PencilIcon, PolygonIcon, RectIcon,\n StarIcon, TextIcon, UnknownIcon,\n type IconProps, type ShapeKind,\n} from '@weasel-js/core';\n\nconst BY_KIND = {\n rect: RectIcon,\n ellipse: EllipseIcon,\n line: LineIcon,\n polygon: PolygonIcon,\n star: StarIcon,\n pen: PenIcon,\n pencil: PencilIcon,\n lasso: LassoIcon,\n text: TextIcon,\n image: ImageIcon,\n} satisfies Record<ShapeKind, ComponentType<IconProps>>;\n\nexport interface ShapeKindIconProps extends IconProps {\n /** A built-in shape kind. Any other string draws `UnknownIcon`, so a\n * consumer-defined kind still gets a glyph. */\n kind: ShapeKind | (string & {});\n}\n\n/** The glyph for a shape kind — the same one its insertion tool shows, so a\n * row in a layer list or inspector matches the palette that made it. */\nexport function ShapeKindIcon({ kind, ...props }: ShapeKindIconProps) {\n const Glyph = (BY_KIND as Record<string, ComponentType<IconProps>>)[kind] ?? UnknownIcon;\n return <Glyph {...props} />;\n}\n","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-C7QUBaJN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interactiveTarget-C7QUBaJN.js","names":[],"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,IAAa,IAAmB;CAC9B;CAAU;CAAS;CAAU;CAAY;CAAW;CAAwB;CAC5E;CAAmB;CAAqB;CAAmB;CAAqB;CACjF,CAAC,KAAK,IAAI;AAOX,SAAgB,EAAkB,GAA4B,GAAwB;AACpF,KAAI,EAAE,aAAkB,SAAU,QAAO;CACzC,IAAM,IAAU,EAAO,QAAQ,EAAiB;AAChD,QAAO,MAAY,QAAQ,MAAY,KAAQ,EAAK,SAAS,EAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyGlyph-
|
|
1
|
+
{"version":3,"file":"keyGlyph-CLvUHU8c.js","names":[],"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,SAAgB,EAAS,GAAwB;AAC/C,SAAQ,GAAR;EACE,KAAK,SAAU,QAAO;EACtB,KAAK,YAAa,QAAO;EACzB,KAAK,SAAU,QAAO;EACtB,KAAK,UAAW,QAAO;EACvB,KAAK,YAAa,QAAO;EACzB,KAAK,YAAa,QAAO;EACzB,KAAK,aAAc,QAAO;EAC1B,KAAK;EACL,KAAK,SAAU,QAAO;EACtB,KAAK,MAAO,QAAO;EACnB,KAAK;EACL,KAAK,QAAS,QAAO;EACrB,QAAS,QAAO,EAAO,aAAa"}
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import { a as e, t } from "./Icon-BW0qv_U7.js";
|
|
2
|
+
import { t as n } from "./PropertyField-CDb19d3F.js";
|
|
3
|
+
import { t as r } from "./ToggleBar-Btnl5r7F.js";
|
|
4
|
+
import { t as i } from "./prefField-CLkhrvYl.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-BQMvTLnW.js.map
|