@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
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./Icon-DT0x6HaQ.js";
|
|
2
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { ArrowIcon as n, EllipseIcon as r, EyedropperIcon as i, HandIcon as a, ImageIcon as o, LassoIcon as s, LineIcon as c, PenIcon as l, PencilIcon as u, PolygonIcon as d, RectIcon as f, SelectIcon as p, StarIcon as m, TextIcon as h, UnknownIcon as g } from "@weasel-js/core";
|
|
4
|
-
//#region src/icons/index.tsx
|
|
5
|
-
var _ = (n) => /* @__PURE__ */ t(e, {
|
|
6
|
-
name: "clone",
|
|
7
|
-
...n
|
|
8
|
-
}), v = (n) => /* @__PURE__ */ t(e, {
|
|
9
|
-
name: "reset",
|
|
10
|
-
...n
|
|
11
|
-
}), y = (n) => /* @__PURE__ */ t(e, {
|
|
12
|
-
name: "close",
|
|
13
|
-
...n
|
|
14
|
-
}), b = (n) => /* @__PURE__ */ t(e, {
|
|
15
|
-
name: "export",
|
|
16
|
-
...n
|
|
17
|
-
}), x = (n) => /* @__PURE__ */ t(e, {
|
|
18
|
-
name: "zoomIn",
|
|
19
|
-
...n
|
|
20
|
-
}), S = (n) => /* @__PURE__ */ t(e, {
|
|
21
|
-
name: "pan",
|
|
22
|
-
...n
|
|
23
|
-
}), C = (n) => /* @__PURE__ */ t(e, {
|
|
24
|
-
name: "add",
|
|
25
|
-
...n
|
|
26
|
-
}), w = (n) => /* @__PURE__ */ t(e, {
|
|
27
|
-
name: "modeLight",
|
|
28
|
-
...n
|
|
29
|
-
}), T = (n) => /* @__PURE__ */ t(e, {
|
|
30
|
-
name: "modeDark",
|
|
31
|
-
...n
|
|
32
|
-
}), E = (n) => /* @__PURE__ */ t(e, {
|
|
33
|
-
name: "modeAuto",
|
|
34
|
-
...n
|
|
35
|
-
}), D = (n) => /* @__PURE__ */ t(e, {
|
|
36
|
-
name: "remove",
|
|
37
|
-
...n
|
|
38
|
-
}), O = (n) => /* @__PURE__ */ t(e, {
|
|
39
|
-
name: "delete",
|
|
40
|
-
...n
|
|
41
|
-
}), k = (n) => /* @__PURE__ */ t(e, {
|
|
42
|
-
name: "sort",
|
|
43
|
-
...n
|
|
44
|
-
}), A = (n) => /* @__PURE__ */ t(e, {
|
|
45
|
-
name: "undo",
|
|
46
|
-
...n
|
|
47
|
-
}), j = (n) => /* @__PURE__ */ t(e, {
|
|
48
|
-
name: "redo",
|
|
49
|
-
...n
|
|
50
|
-
}), M = (n) => /* @__PURE__ */ t(e, {
|
|
51
|
-
name: "zoomOut",
|
|
52
|
-
...n
|
|
53
|
-
}), N = (n) => /* @__PURE__ */ t(e, {
|
|
54
|
-
name: "fit",
|
|
55
|
-
...n
|
|
56
|
-
}), P = (n) => /* @__PURE__ */ t(e, {
|
|
57
|
-
name: "snapshot",
|
|
58
|
-
...n
|
|
59
|
-
}), F = (n) => /* @__PURE__ */ t(e, {
|
|
60
|
-
name: "play",
|
|
61
|
-
...n
|
|
62
|
-
}), I = (n) => /* @__PURE__ */ t(e, {
|
|
63
|
-
name: "pause",
|
|
64
|
-
...n
|
|
65
|
-
}), L = (n) => /* @__PURE__ */ t(e, {
|
|
66
|
-
name: "stop",
|
|
67
|
-
...n
|
|
68
|
-
}), R = (n) => /* @__PURE__ */ t(e, {
|
|
69
|
-
name: "stepBack",
|
|
70
|
-
...n
|
|
71
|
-
}), z = (n) => /* @__PURE__ */ t(e, {
|
|
72
|
-
name: "stepForward",
|
|
73
|
-
...n
|
|
74
|
-
}), B = z, ee = (n) => /* @__PURE__ */ t(e, {
|
|
75
|
-
name: "crosshair",
|
|
76
|
-
...n
|
|
77
|
-
}), V = (n) => /* @__PURE__ */ t(e, {
|
|
78
|
-
name: "fullscreen",
|
|
79
|
-
...n
|
|
80
|
-
}), H = (n) => /* @__PURE__ */ t(e, {
|
|
81
|
-
name: "compare",
|
|
82
|
-
...n
|
|
83
|
-
}), U = (n) => /* @__PURE__ */ t(e, {
|
|
84
|
-
name: "filter",
|
|
85
|
-
...n
|
|
86
|
-
}), W = (n) => /* @__PURE__ */ t(e, {
|
|
87
|
-
name: "search",
|
|
88
|
-
...n
|
|
89
|
-
}), G = (n) => /* @__PURE__ */ t(e, {
|
|
90
|
-
name: "loupe",
|
|
91
|
-
...n
|
|
92
|
-
}), K = (n) => /* @__PURE__ */ t(e, {
|
|
93
|
-
name: "layers",
|
|
94
|
-
...n
|
|
95
|
-
}), q = (n) => /* @__PURE__ */ t(e, {
|
|
96
|
-
name: "lock",
|
|
97
|
-
...n
|
|
98
|
-
}), J = (n) => /* @__PURE__ */ t(e, {
|
|
99
|
-
name: "unlock",
|
|
100
|
-
...n
|
|
101
|
-
}), Y = (n) => /* @__PURE__ */ t(e, {
|
|
102
|
-
name: "visible",
|
|
103
|
-
...n
|
|
104
|
-
}), X = (n) => /* @__PURE__ */ t(e, {
|
|
105
|
-
name: "hidden",
|
|
106
|
-
...n
|
|
107
|
-
}), Z = (n) => /* @__PURE__ */ t(e, {
|
|
108
|
-
name: "pin",
|
|
109
|
-
...n
|
|
110
|
-
}), Q = (n) => /* @__PURE__ */ t(e, {
|
|
111
|
-
name: "link",
|
|
112
|
-
...n
|
|
113
|
-
}), $ = (n) => /* @__PURE__ */ t(e, {
|
|
114
|
-
name: "collapse",
|
|
115
|
-
...n
|
|
116
|
-
}), te = (n) => /* @__PURE__ */ t(e, {
|
|
117
|
-
name: "expand",
|
|
118
|
-
...n
|
|
119
|
-
}), ne = (n) => /* @__PURE__ */ t(e, {
|
|
120
|
-
name: "chevron",
|
|
121
|
-
...n
|
|
122
|
-
}), re = (n) => /* @__PURE__ */ t(e, {
|
|
123
|
-
name: "tune",
|
|
124
|
-
...n
|
|
125
|
-
}), ie = (n) => /* @__PURE__ */ t(e, {
|
|
126
|
-
name: "grid",
|
|
127
|
-
...n
|
|
128
|
-
}), ae = (n) => /* @__PURE__ */ t(e, {
|
|
129
|
-
name: "snap",
|
|
130
|
-
...n
|
|
131
|
-
}), oe = (n) => /* @__PURE__ */ t(e, {
|
|
132
|
-
name: "measure",
|
|
133
|
-
...n
|
|
134
|
-
}), se = (n) => /* @__PURE__ */ t(e, {
|
|
135
|
-
name: "randomize",
|
|
136
|
-
...n
|
|
137
|
-
}), ce = (n) => /* @__PURE__ */ t(e, {
|
|
138
|
-
name: "refresh",
|
|
139
|
-
...n
|
|
140
|
-
}), le = (n) => /* @__PURE__ */ t(e, {
|
|
141
|
-
name: "info",
|
|
142
|
-
...n
|
|
143
|
-
}), ue = (n) => /* @__PURE__ */ t(e, {
|
|
144
|
-
name: "warning",
|
|
145
|
-
...n
|
|
146
|
-
}), de = (n) => /* @__PURE__ */ t(e, {
|
|
147
|
-
name: "error",
|
|
148
|
-
...n
|
|
149
|
-
}), fe = (n) => /* @__PURE__ */ t(e, {
|
|
150
|
-
name: "busy",
|
|
151
|
-
...n
|
|
152
|
-
}), pe = (n) => /* @__PURE__ */ t(e, {
|
|
153
|
-
name: "layoutRows",
|
|
154
|
-
...n
|
|
155
|
-
}), me = (n) => /* @__PURE__ */ t(e, {
|
|
156
|
-
name: "layoutColumns",
|
|
157
|
-
...n
|
|
158
|
-
}), he = (n) => /* @__PURE__ */ t(e, {
|
|
159
|
-
name: "layoutGrid",
|
|
160
|
-
...n
|
|
161
|
-
});
|
|
162
|
-
//#endregion
|
|
163
|
-
export { P as $, Q as A, u as B, le as C, he as D, me as E, T as F, f as G, F as H, w as I, D as J, j as K, S as L, G as M, oe as N, pe as O, E as P, ae as Q, I as R, o as S, K as T, d as U, Z as V, se as W, W as X, v as Y, p as Z, N as _, _ as a, L as at, a as b, H as c, A as ct, r as d, Y as dt, k as et, de as f, ue as ft, U as g, i as h, ne as i, B as it, q as j, c as k, ee as l, g as lt, b as m, M as mt, n, R as nt, y as o, h as ot, te as p, x as pt, ce as q, fe as r, z as rt, $ as s, re as st, C as t, m as tt, O as u, J as ut, V as v, s as w, X as x, ie as y, l as z };
|
|
164
|
-
|
|
165
|
-
//# sourceMappingURL=icons-DFLytcui.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icons-DFLytcui.js","names":[],"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 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\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 DeleteIcon = (p: IconProps) => <Icon name=\"delete\" {...p} />;\nexport const SortIcon = (p: IconProps) => <Icon name=\"sort\" {...p} />;\nexport const UndoIcon = (p: IconProps) => <Icon name=\"undo\" {...p} />;\nexport const RedoIcon = (p: IconProps) => <Icon name=\"redo\" {...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 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 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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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyGlyph-Bp0wnLHn.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"}
|
|
@@ -1,483 +0,0 @@
|
|
|
1
|
-
import { a as e, t } from "./Icon-DT0x6HaQ.js";
|
|
2
|
-
import { t as n } from "./ToggleBar-CClus5Cd.js";
|
|
3
|
-
import { n as r, r as i } from "./schema-Dft4Cu2p.js";
|
|
4
|
-
import { t as a } from "./InlineRange-DdIlfGqG.js";
|
|
5
|
-
import { t as o } from "./ColorField-BYzgZM9o.js";
|
|
6
|
-
import { t as s } from "./Select-BEope086.js";
|
|
7
|
-
import { t as c } from "./FontFamilySelect-DxfgTC3G.js";
|
|
8
|
-
import { t as l } from "./PaintInput-Qs7Rul5R.js";
|
|
9
|
-
import { t as u } from "./Input-DbMKpkXy.js";
|
|
10
|
-
import { n as d, t as f } from "./NumberField-CCjEDZCg.js";
|
|
11
|
-
import { t as p } from "./Switch-DH5POG0T.js";
|
|
12
|
-
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
13
|
-
import { MIXED as _, isBuiltinToolPref as v } from "@weasel-js/core";
|
|
14
|
-
import { Fragment as y, useState as b } from "react";
|
|
15
|
-
var x = {
|
|
16
|
-
root: "_root_elklk_1",
|
|
17
|
-
header: "_header_elklk_8",
|
|
18
|
-
kind: "_kind_elklk_16",
|
|
19
|
-
breakdown: "_breakdown_elklk_21",
|
|
20
|
-
section: "_section_elklk_26",
|
|
21
|
-
sectionTitle: "_sectionTitle_elklk_35",
|
|
22
|
-
row: "_row_elklk_44",
|
|
23
|
-
rowLabel: "_rowLabel_elklk_52",
|
|
24
|
-
rowControls: "_rowControls_elklk_56",
|
|
25
|
-
namedField: "_namedField_elklk_66",
|
|
26
|
-
blockRow: "_blockRow_elklk_78",
|
|
27
|
-
toggle: "_toggle_elklk_89",
|
|
28
|
-
flagToggle: "_flagToggle_elklk_111",
|
|
29
|
-
number: "_number_elklk_115",
|
|
30
|
-
select: "_select_elklk_116",
|
|
31
|
-
unitSuffix: "_unitSuffix_elklk_120",
|
|
32
|
-
mixedSwitch: "_mixedSwitch_elklk_126",
|
|
33
|
-
unrenderable: "_unrenderable_elklk_130",
|
|
34
|
-
objectLeaf: "_objectLeaf_elklk_137",
|
|
35
|
-
objectGroup: "_objectGroup_elklk_146",
|
|
36
|
-
slider: "_slider_elklk_153",
|
|
37
|
-
sliderReadout: "_sliderReadout_elklk_157"
|
|
38
|
-
};
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region src/components/SelectionPanel/renderLeaf.tsx
|
|
41
|
-
function S(e, t) {
|
|
42
|
-
let { leaf: n } = e;
|
|
43
|
-
return n.kind === "boolean" && n.control === "toggle" && n.pair !== void 0 && t?.[e.ctx.path] === void 0 && t?.[n.kind] === void 0;
|
|
44
|
-
}
|
|
45
|
-
function C(e, t) {
|
|
46
|
-
let n = [];
|
|
47
|
-
for (let r = 0; r < e.length;) {
|
|
48
|
-
let i = e[r];
|
|
49
|
-
if (!S(i, t)) {
|
|
50
|
-
let e = i.render();
|
|
51
|
-
e != null && n.push({
|
|
52
|
-
key: i.key,
|
|
53
|
-
leaf: i.leaf,
|
|
54
|
-
block: i.leaf.block === !0,
|
|
55
|
-
content: e
|
|
56
|
-
}), r += 1;
|
|
57
|
-
continue;
|
|
58
|
-
}
|
|
59
|
-
let a = r + 1;
|
|
60
|
-
for (; a < e.length && S(e[a], t) && e[a].leaf.pair === i.leaf.pair;) a += 1;
|
|
61
|
-
let o = e.slice(r, a);
|
|
62
|
-
n.push({
|
|
63
|
-
key: i.key,
|
|
64
|
-
leaf: i.leaf,
|
|
65
|
-
block: o.every((e) => e.leaf.block === !0),
|
|
66
|
-
content: /* @__PURE__ */ h(w, {
|
|
67
|
-
run: o,
|
|
68
|
-
ariaLabel: i.leaf.pair
|
|
69
|
-
})
|
|
70
|
-
}), r = a;
|
|
71
|
-
}
|
|
72
|
-
return n;
|
|
73
|
-
}
|
|
74
|
-
function w({ run: r, ariaLabel: i }) {
|
|
75
|
-
let a = r.filter((e) => e.ctx.value === !0).map((e) => e.key);
|
|
76
|
-
return /* @__PURE__ */ h(n, {
|
|
77
|
-
mode: "multiple",
|
|
78
|
-
size: "sm",
|
|
79
|
-
variant: "flat",
|
|
80
|
-
className: x.flagToggle,
|
|
81
|
-
ariaLabel: i,
|
|
82
|
-
items: r.map((n) => {
|
|
83
|
-
let r = n.leaf;
|
|
84
|
-
return {
|
|
85
|
-
value: n.key,
|
|
86
|
-
label: r.icon && r.icon in e ? /* @__PURE__ */ h(t, {
|
|
87
|
-
name: r.icon,
|
|
88
|
-
size: 14
|
|
89
|
-
}) : r.short ?? r.name.slice(0, 1),
|
|
90
|
-
ariaLabel: n.ariaLabel
|
|
91
|
-
};
|
|
92
|
-
}),
|
|
93
|
-
value: a,
|
|
94
|
-
mixedValues: r.filter((e) => e.ctx.mixed).map((e) => e.key),
|
|
95
|
-
onChange: (e) => {
|
|
96
|
-
for (let t of r) {
|
|
97
|
-
let n = e.includes(t.key);
|
|
98
|
-
n !== a.includes(t.key) && t.ctx.setValue(n);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
function T(u, _, y, b = "", S = !1) {
|
|
104
|
-
let { pref: C, value: w, mixed: T, unset: O, setValue: k } = u;
|
|
105
|
-
if (C.kind === "font-family") {
|
|
106
|
-
let e = u.valueAt("data.style.fontWeight"), t = u.valueAt("data.style.fontStyle");
|
|
107
|
-
return /* @__PURE__ */ h(c, {
|
|
108
|
-
className: x.select,
|
|
109
|
-
value: T || typeof w != "string" ? void 0 : w,
|
|
110
|
-
mixed: T,
|
|
111
|
-
onChange: k,
|
|
112
|
-
weight: typeof e.value == "number" ? e.value : void 0,
|
|
113
|
-
fontStyle: t.value === "italic" ? "italic" : void 0,
|
|
114
|
-
"aria-label": _
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
if (!v(C)) return /* @__PURE__ */ g("span", {
|
|
118
|
-
className: x.unrenderable,
|
|
119
|
-
children: [
|
|
120
|
-
"(",
|
|
121
|
-
C.kind,
|
|
122
|
-
": no renderer)"
|
|
123
|
-
]
|
|
124
|
-
});
|
|
125
|
-
switch (C.kind) {
|
|
126
|
-
case "number": {
|
|
127
|
-
let e = C, t = typeof w == "number" && Number.isFinite(w) ? w : void 0, n = t === void 0 ? NaN : e.unit ? e.unit.toDisplay(t) : t, o = r(e);
|
|
128
|
-
if (e.control === "slider") {
|
|
129
|
-
let r = o.min ?? 0, i = o.max ?? 100, s = !T && t !== void 0;
|
|
130
|
-
return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(a, {
|
|
131
|
-
min: r,
|
|
132
|
-
max: i,
|
|
133
|
-
step: o.step,
|
|
134
|
-
value: s ? Math.min(Math.max(n, r), i) : r,
|
|
135
|
-
disabled: T,
|
|
136
|
-
className: x.slider,
|
|
137
|
-
"aria-label": _,
|
|
138
|
-
onChange: (t) => {
|
|
139
|
-
let n = Number(t.target.value);
|
|
140
|
-
k(e.unit ? e.unit.fromDisplay(n) : n);
|
|
141
|
-
}
|
|
142
|
-
}), /* @__PURE__ */ h("span", {
|
|
143
|
-
className: x.sliderReadout,
|
|
144
|
-
"aria-hidden": "true",
|
|
145
|
-
children: s ? e.unit?.format?.(t) ?? `${n}${e.unit?.suffix ?? ""}` : "—"
|
|
146
|
-
})] });
|
|
147
|
-
}
|
|
148
|
-
let s = e.unit, c = s ? /* @__PURE__ */ h(f, {
|
|
149
|
-
className: x.number,
|
|
150
|
-
value: T || t === void 0 ? NaN : n,
|
|
151
|
-
placeholder: T ? "Mixed" : void 0,
|
|
152
|
-
minValue: o.min,
|
|
153
|
-
maxValue: o.max,
|
|
154
|
-
step: o.step,
|
|
155
|
-
accepts: i(s),
|
|
156
|
-
"aria-label": _,
|
|
157
|
-
onChange: (e) => k(s.fromDisplay(e))
|
|
158
|
-
}) : /* @__PURE__ */ h(d, {
|
|
159
|
-
className: x.number,
|
|
160
|
-
value: T || t === void 0 ? NaN : n,
|
|
161
|
-
placeholder: T ? "Mixed" : void 0,
|
|
162
|
-
minValue: o.min,
|
|
163
|
-
maxValue: o.max,
|
|
164
|
-
step: o.step,
|
|
165
|
-
hideSteppers: !0,
|
|
166
|
-
"aria-label": _,
|
|
167
|
-
onChange: (e) => {
|
|
168
|
-
Number.isNaN(e) || k(e);
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
return s?.suffix === void 0 ? c : /* @__PURE__ */ g(m, { children: [c, /* @__PURE__ */ h("span", {
|
|
172
|
-
className: x.unitSuffix,
|
|
173
|
-
"aria-hidden": "true",
|
|
174
|
-
children: s.suffix
|
|
175
|
-
})] });
|
|
176
|
-
}
|
|
177
|
-
case "string": return /* @__PURE__ */ h(D, {
|
|
178
|
-
text: T ? void 0 : typeof w == "string" ? w : "",
|
|
179
|
-
placeholder: T ? "Mixed" : void 0,
|
|
180
|
-
ariaLabel: _,
|
|
181
|
-
onCommit: k
|
|
182
|
-
});
|
|
183
|
-
case "boolean": {
|
|
184
|
-
let r = C;
|
|
185
|
-
if (r.control === "toggle") return /* @__PURE__ */ h(n, {
|
|
186
|
-
mode: "multiple",
|
|
187
|
-
size: "sm",
|
|
188
|
-
variant: "flat",
|
|
189
|
-
className: x.flagToggle,
|
|
190
|
-
ariaLabel: _,
|
|
191
|
-
items: [{
|
|
192
|
-
value: u.path,
|
|
193
|
-
label: r.icon && r.icon in e ? /* @__PURE__ */ h(t, {
|
|
194
|
-
name: r.icon,
|
|
195
|
-
size: 14
|
|
196
|
-
}) : r.short ?? r.name.slice(0, 1),
|
|
197
|
-
ariaLabel: _
|
|
198
|
-
}],
|
|
199
|
-
value: w === !0 ? [u.path] : [],
|
|
200
|
-
mixedValues: T ? [u.path] : [],
|
|
201
|
-
onChange: (e) => k(e.includes(u.path))
|
|
202
|
-
});
|
|
203
|
-
let i = /* @__PURE__ */ h(p, {
|
|
204
|
-
isSelected: !!w,
|
|
205
|
-
onChange: k,
|
|
206
|
-
"aria-label": _
|
|
207
|
-
});
|
|
208
|
-
return !T && !O ? i : /* @__PURE__ */ h("span", {
|
|
209
|
-
className: x.mixedSwitch,
|
|
210
|
-
title: T ? "Mixed" : "Not set",
|
|
211
|
-
children: i
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
case "enum": {
|
|
215
|
-
let r = C, i = r.encoding ? T ? void 0 : r.encoding.read(w, u.siblings) : T || O ? void 0 : typeof w == "string" ? w : r.default, a = (e) => k(r.encoding ? r.encoding.write(e, u.siblings) : e);
|
|
216
|
-
return r.control === "toggle" ? /* @__PURE__ */ h(n, {
|
|
217
|
-
size: "sm",
|
|
218
|
-
variant: "flat",
|
|
219
|
-
className: x.toggle,
|
|
220
|
-
ariaLabel: _,
|
|
221
|
-
items: r.options.map((n) => ({
|
|
222
|
-
value: n.value,
|
|
223
|
-
label: n.icon && n.icon in e ? /* @__PURE__ */ h(t, {
|
|
224
|
-
name: n.icon,
|
|
225
|
-
size: 14
|
|
226
|
-
}) : n.short ?? n.label,
|
|
227
|
-
ariaLabel: n.label,
|
|
228
|
-
disabled: n.disabled
|
|
229
|
-
})),
|
|
230
|
-
value: i ?? null,
|
|
231
|
-
onChange: (e) => {
|
|
232
|
-
e !== null && a(e);
|
|
233
|
-
}
|
|
234
|
-
}) : /* @__PURE__ */ h(s, {
|
|
235
|
-
className: x.select,
|
|
236
|
-
options: r.options.map((e) => ({
|
|
237
|
-
value: e.value,
|
|
238
|
-
label: e.label,
|
|
239
|
-
isDisabled: e.disabled
|
|
240
|
-
})),
|
|
241
|
-
selectedKey: i ?? null,
|
|
242
|
-
placeholder: T ? "Mixed" : O ? "—" : void 0,
|
|
243
|
-
onSelectionChange: a,
|
|
244
|
-
"aria-label": _
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
case "color": {
|
|
248
|
-
let e = C;
|
|
249
|
-
return /* @__PURE__ */ h(o, {
|
|
250
|
-
value: T ? void 0 : typeof w == "string" ? w : e.default,
|
|
251
|
-
mixed: T,
|
|
252
|
-
alpha: e.alpha,
|
|
253
|
-
onChange: k,
|
|
254
|
-
"aria-label": _
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
case "paint": return /* @__PURE__ */ h(l, {
|
|
258
|
-
value: w === null ? null : w ?? (T ? void 0 : C.default),
|
|
259
|
-
mixed: T,
|
|
260
|
-
unset: O,
|
|
261
|
-
allowNone: !S,
|
|
262
|
-
onChange: k,
|
|
263
|
-
"aria-label": _
|
|
264
|
-
}, b);
|
|
265
|
-
case "object": return /* @__PURE__ */ h(E, {
|
|
266
|
-
ctx: u,
|
|
267
|
-
renderers: y,
|
|
268
|
-
selectionKey: b
|
|
269
|
-
});
|
|
270
|
-
default: throw Error(`SelectionPanel: no control for built-in pref kind "${C.kind}"`);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
function E({ ctx: n, renderers: r, selectionKey: i = "" }) {
|
|
274
|
-
let a = n.pref, o = typeof n.value == "object" && n.value !== null ? n.value : void 0, s = Object.values(a.children).every((e) => !("kind" in e)), c = (s, l) => {
|
|
275
|
-
let u = [], d = (e) => typeof e == "object" && !!e && "controls" in e, f = [], p = () => {
|
|
276
|
-
for (let { key: e, leaf: t, block: n, content: i } of C(f, r)) {
|
|
277
|
-
let r = u[u.length - 1];
|
|
278
|
-
if (t.pair !== void 0 && d(r) && r.pair === t.pair) {
|
|
279
|
-
r.controls.push(/* @__PURE__ */ h(y, { children: i }, e)), r.block &&= n;
|
|
280
|
-
continue;
|
|
281
|
-
}
|
|
282
|
-
u.push({
|
|
283
|
-
key: e,
|
|
284
|
-
pair: t.pair,
|
|
285
|
-
label: t.pair ?? t.name,
|
|
286
|
-
title: t.description,
|
|
287
|
-
block: n,
|
|
288
|
-
controls: [/* @__PURE__ */ h(y, { children: i }, e)]
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
f = [];
|
|
292
|
-
};
|
|
293
|
-
for (let [d, m] of Object.entries(s)) {
|
|
294
|
-
if (!("kind" in m)) {
|
|
295
|
-
let e = m.name !== "", t = c(m.children, e);
|
|
296
|
-
if (t.length === 0) continue;
|
|
297
|
-
p(), u.push(/* @__PURE__ */ g("div", {
|
|
298
|
-
className: e && l ? x.objectGroup : void 0,
|
|
299
|
-
children: [e && /* @__PURE__ */ h("h5", {
|
|
300
|
-
className: x.sectionTitle,
|
|
301
|
-
children: m.name
|
|
302
|
-
}), t]
|
|
303
|
-
}, `group:${d}`));
|
|
304
|
-
continue;
|
|
305
|
-
}
|
|
306
|
-
let s = `${n.path}.${d}`, _ = {
|
|
307
|
-
path: s,
|
|
308
|
-
pref: m,
|
|
309
|
-
value: o?.[d],
|
|
310
|
-
mixed: n.mixed,
|
|
311
|
-
unset: !n.mixed && o?.[d] === void 0,
|
|
312
|
-
siblings: o,
|
|
313
|
-
valueAt: n.valueAt,
|
|
314
|
-
setValue: (e) => {
|
|
315
|
-
let t = o ?? a.fromScalar?.(n.value) ?? (typeof a.default == "object" && a.default !== null ? { ...a.default } : {});
|
|
316
|
-
if (e === void 0) {
|
|
317
|
-
let { [d]: e, ...r } = t;
|
|
318
|
-
n.setValue(r);
|
|
319
|
-
return;
|
|
320
|
-
}
|
|
321
|
-
n.setValue({
|
|
322
|
-
...t,
|
|
323
|
-
[d]: e
|
|
324
|
-
});
|
|
325
|
-
}
|
|
326
|
-
};
|
|
327
|
-
f.push({
|
|
328
|
-
key: s,
|
|
329
|
-
leaf: m,
|
|
330
|
-
ctx: _,
|
|
331
|
-
ariaLabel: m.name,
|
|
332
|
-
render: () => {
|
|
333
|
-
let n = r?.[s] ?? r?.[m.kind], a = n ? n(_) : T(_, m.name, r, i, !0);
|
|
334
|
-
return a == null ? null : (m.pair !== void 0 || m.block === !0) && m.icon && m.icon in e ? /* @__PURE__ */ g("span", {
|
|
335
|
-
className: x.namedField,
|
|
336
|
-
children: [/* @__PURE__ */ h(t, {
|
|
337
|
-
name: m.icon,
|
|
338
|
-
size: 14
|
|
339
|
-
}), a]
|
|
340
|
-
}) : a;
|
|
341
|
-
}
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
return p(), u.map((e) => typeof e == "object" && e && "controls" in e ? e.block ? /* @__PURE__ */ h("div", {
|
|
345
|
-
className: `${x.rowControls} ${x.blockRow}`,
|
|
346
|
-
title: e.title,
|
|
347
|
-
children: e.controls
|
|
348
|
-
}, e.key) : /* @__PURE__ */ g("div", {
|
|
349
|
-
className: x.row,
|
|
350
|
-
children: [/* @__PURE__ */ h("span", {
|
|
351
|
-
className: x.rowLabel,
|
|
352
|
-
title: e.title,
|
|
353
|
-
children: e.label
|
|
354
|
-
}), /* @__PURE__ */ h("span", {
|
|
355
|
-
className: x.rowControls,
|
|
356
|
-
children: e.controls
|
|
357
|
-
})]
|
|
358
|
-
}, e.key) : e);
|
|
359
|
-
}, l = c(a.children, !s);
|
|
360
|
-
return l.length === 0 ? null : /* @__PURE__ */ g("div", {
|
|
361
|
-
className: x.objectLeaf,
|
|
362
|
-
children: [!s && /* @__PURE__ */ h("h4", {
|
|
363
|
-
className: x.sectionTitle,
|
|
364
|
-
children: a.name
|
|
365
|
-
}), l]
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
function D({ text: e, placeholder: t, ariaLabel: n, onCommit: r }) {
|
|
369
|
-
let [i, a] = b(null);
|
|
370
|
-
return /* @__PURE__ */ h(u, {
|
|
371
|
-
value: i ?? e ?? "",
|
|
372
|
-
placeholder: t,
|
|
373
|
-
"aria-label": n,
|
|
374
|
-
onChange: a,
|
|
375
|
-
onBlur: () => {
|
|
376
|
-
i !== null && i !== e && r(i), a(null);
|
|
377
|
-
},
|
|
378
|
-
onKeyDown: (e) => {
|
|
379
|
-
e.key === "Enter" && e.target.blur();
|
|
380
|
-
}
|
|
381
|
-
});
|
|
382
|
-
}
|
|
383
|
-
//#endregion
|
|
384
|
-
//#region src/components/SelectionPanel/model.ts
|
|
385
|
-
function O(e, t) {
|
|
386
|
-
if (e.kind === "container") return "group";
|
|
387
|
-
for (let n of t) if (n.matches(e.data)) return n.name;
|
|
388
|
-
return "unknown";
|
|
389
|
-
}
|
|
390
|
-
function k(e) {
|
|
391
|
-
return !("kind" in e);
|
|
392
|
-
}
|
|
393
|
-
function A(e) {
|
|
394
|
-
let t = [], n = [], r = (e, t) => {
|
|
395
|
-
for (let [n, i] of Object.entries(e.children)) k(i) ? r(i, t) : t.push({
|
|
396
|
-
path: n,
|
|
397
|
-
leaf: i
|
|
398
|
-
});
|
|
399
|
-
};
|
|
400
|
-
for (let [i, a] of Object.entries(e.children)) if (k(a)) {
|
|
401
|
-
let e = [];
|
|
402
|
-
r(a, e), t.push({
|
|
403
|
-
key: i,
|
|
404
|
-
name: a.name,
|
|
405
|
-
rows: j(e)
|
|
406
|
-
});
|
|
407
|
-
} else n.push({
|
|
408
|
-
path: i,
|
|
409
|
-
leaf: a
|
|
410
|
-
});
|
|
411
|
-
return n.length > 0 && t.unshift({
|
|
412
|
-
key: "",
|
|
413
|
-
name: "",
|
|
414
|
-
rows: j(n)
|
|
415
|
-
}), t;
|
|
416
|
-
}
|
|
417
|
-
function j(e) {
|
|
418
|
-
let t = [];
|
|
419
|
-
for (let n of e) {
|
|
420
|
-
let e = n.leaf.pair, r = t[t.length - 1];
|
|
421
|
-
e !== void 0 && r !== void 0 && r.label === e ? r.leaves.push(n) : t.push({
|
|
422
|
-
label: e ?? n.leaf.name,
|
|
423
|
-
leaves: [n]
|
|
424
|
-
});
|
|
425
|
-
}
|
|
426
|
-
return t;
|
|
427
|
-
}
|
|
428
|
-
function M(e, t) {
|
|
429
|
-
let n = [...new Set(e)];
|
|
430
|
-
if (n.length === 0) return [];
|
|
431
|
-
let r = new Map(t.map((e) => [e.name, e])), i = n.map((e) => r.get(e)?.schema);
|
|
432
|
-
if (i.some((e) => e === void 0)) return [];
|
|
433
|
-
let [a, ...o] = i, s = A(a);
|
|
434
|
-
if (o.length === 0) return s;
|
|
435
|
-
let c = (e) => `${e.path}\0${e.leaf.kind}`, l = o.map((e) => new Set(A(e).flatMap((e) => e.rows).flatMap((e) => e.leaves).map(c))), u = (e) => l.every((t) => t.has(c(e)));
|
|
436
|
-
return s.map((e) => ({
|
|
437
|
-
...e,
|
|
438
|
-
rows: e.rows.map((e) => ({
|
|
439
|
-
...e,
|
|
440
|
-
leaves: e.leaves.filter(u)
|
|
441
|
-
})).filter((e) => e.leaves.length > 0)
|
|
442
|
-
})).filter((e) => e.rows.length > 0);
|
|
443
|
-
}
|
|
444
|
-
function N(e, t) {
|
|
445
|
-
let n = t.split(".");
|
|
446
|
-
if (n.length < 2) return;
|
|
447
|
-
let r = n[0], i = r === "pose" ? e.pose : r === "data" ? e.data : void 0;
|
|
448
|
-
for (let e = 1; e < n.length; e++) {
|
|
449
|
-
if (typeof i != "object" || !i) return;
|
|
450
|
-
i = i[n[e]];
|
|
451
|
-
}
|
|
452
|
-
return i;
|
|
453
|
-
}
|
|
454
|
-
function P(e, t, n) {
|
|
455
|
-
let [r, ...i] = t;
|
|
456
|
-
if (i.length === 0) return Array.isArray(e) ? Object.assign([...e], { [r]: n }) : {
|
|
457
|
-
...e,
|
|
458
|
-
[r]: n
|
|
459
|
-
};
|
|
460
|
-
let a = e[r], o = P(Array.isArray(a) ? [...a] : typeof a == "object" && a ? { ...a } : {}, i, n);
|
|
461
|
-
return Array.isArray(e) ? Object.assign([...e], { [r]: o }) : {
|
|
462
|
-
...e,
|
|
463
|
-
[r]: o
|
|
464
|
-
};
|
|
465
|
-
}
|
|
466
|
-
function F(e, t) {
|
|
467
|
-
let n, r = !0;
|
|
468
|
-
for (let i of e) {
|
|
469
|
-
let e = N(i, t);
|
|
470
|
-
if (r) n = e, r = !1;
|
|
471
|
-
else if (!Object.is(e, n)) return _;
|
|
472
|
-
}
|
|
473
|
-
return n;
|
|
474
|
-
}
|
|
475
|
-
function I(e) {
|
|
476
|
-
let t = /* @__PURE__ */ new Map();
|
|
477
|
-
for (let n of e) t.set(n, (t.get(n) ?? 0) + 1);
|
|
478
|
-
return [...t.entries()].map(([e, t]) => t > 1 ? `${e} ×${t}` : e).join(" · ");
|
|
479
|
-
}
|
|
480
|
-
//#endregion
|
|
481
|
-
export { k as a, j as c, C as d, x as f, M as i, P as l, F as n, I as o, O as r, N as s, _ as t, T as u };
|
|
482
|
-
|
|
483
|
-
//# sourceMappingURL=model-13kZ_-mE.js.map
|