@weasel-js/ui 1.7.0 → 1.7.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-xA73vzzF.js +64 -0
- package/dist/chunks/ActionBar-xA73vzzF.js.map +1 -0
- package/dist/chunks/{Badge-D2aD7xVL.js → Badge-jYQjrTKc.js} +235 -264
- package/dist/chunks/{Badge-D2aD7xVL.js.map → Badge-jYQjrTKc.js.map} +1 -1
- package/dist/chunks/BandEditor-Dd0egAgE.js.map +1 -1
- package/dist/chunks/{Button-BIdXHQOx.js → Button-XB-T75YL.js} +2 -2
- package/dist/chunks/{Button-BIdXHQOx.js.map → Button-XB-T75YL.js.map} +1 -1
- package/dist/chunks/{ButtonBar-DIQTe5GQ.js → ButtonBar-CIMKPPRS.js} +7 -9
- package/dist/chunks/{ButtonBar-DIQTe5GQ.js.map → ButtonBar-CIMKPPRS.js.map} +1 -1
- package/dist/chunks/Callout-BUn0dP_S.js +115 -0
- package/dist/chunks/Callout-BUn0dP_S.js.map +1 -0
- package/dist/chunks/Checkbox-DFn-x0JO.js +37 -0
- package/dist/chunks/Checkbox-DFn-x0JO.js.map +1 -0
- package/dist/chunks/{CloseButton-C2J7wVfo.js → CloseButton-BmNmRVtb.js} +3 -3
- package/dist/chunks/{CloseButton-C2J7wVfo.js.map → CloseButton-BmNmRVtb.js.map} +1 -1
- package/dist/chunks/ColorField-BLs9fbeq.js +90 -0
- package/dist/chunks/ColorField-BLs9fbeq.js.map +1 -0
- package/dist/chunks/{ColorModeControl-BewxA0rX.js → ColorModeControl-DaVJ-SyX.js} +3 -3
- package/dist/chunks/{ColorModeControl-BewxA0rX.js.map → ColorModeControl-DaVJ-SyX.js.map} +1 -1
- package/dist/chunks/ComboBox-CuTLRmUg.js +138 -0
- package/dist/chunks/ComboBox-CuTLRmUg.js.map +1 -0
- package/dist/chunks/{CurveEditor-DUVjd25R.js → CurveEditor-jVBEqqdv.js} +90 -87
- package/dist/chunks/CurveEditor-jVBEqqdv.js.map +1 -0
- package/dist/chunks/{DataGrid-LZ2JgY2Y.js → DataGrid-BklgBqS0.js} +2 -2
- package/dist/chunks/{DataGrid-LZ2JgY2Y.js.map → DataGrid-BklgBqS0.js.map} +1 -1
- package/dist/chunks/{DetailList-BKomDzg5.js → DetailList-DFtqdOJj.js} +7 -7
- package/dist/chunks/DetailList-DFtqdOJj.js.map +1 -0
- package/dist/chunks/{DetentSlider-5uQPFucv.js → DetentSlider-Bh7EpMqT.js} +2 -2
- package/dist/chunks/{DetentSlider-5uQPFucv.js.map → DetentSlider-Bh7EpMqT.js.map} +1 -1
- package/dist/chunks/{Dialog-DGFutQ--.js → Dialog-DKfsk5VN.js} +3 -3
- package/dist/chunks/{Dialog-DGFutQ--.js.map → Dialog-DKfsk5VN.js.map} +1 -1
- package/dist/chunks/{DragGhost-B5_hb9W9.js → DragGhost-BeYDJyLZ.js} +2 -2
- package/dist/chunks/{DragGhost-B5_hb9W9.js.map → DragGhost-BeYDJyLZ.js.map} +1 -1
- package/dist/chunks/{FallthroughDiagram-BEHiM5IS.js → FallthroughDiagram-C7BUe8eU.js} +3 -3
- package/dist/chunks/{FallthroughDiagram-BEHiM5IS.js.map → FallthroughDiagram-C7BUe8eU.js.map} +1 -1
- package/dist/chunks/Field-DsBlnFKf.js +25 -0
- package/dist/chunks/Field-DsBlnFKf.js.map +1 -0
- package/dist/chunks/FillStrokeSwatch-CgsYQgew.js +112 -0
- package/dist/chunks/FillStrokeSwatch-CgsYQgew.js.map +1 -0
- package/dist/chunks/{FontFamilySelect-DkRgNtag.js → FontFamilySelect-CGJ5OIOy.js} +2 -2
- package/dist/chunks/FontFamilySelect-CGJ5OIOy.js.map +1 -0
- package/dist/chunks/FontWeightSelect-RbcXYJPS.js +49 -0
- package/dist/chunks/FontWeightSelect-RbcXYJPS.js.map +1 -0
- package/dist/chunks/{GestureRoute-C_YGl7bJ.js → GestureRoute-BXESrHI0.js} +2 -2
- package/dist/chunks/{GestureRoute-C_YGl7bJ.js.map → GestureRoute-BXESrHI0.js.map} +1 -1
- package/dist/chunks/GradientEditor-DypXzMc-.js +325 -0
- package/dist/chunks/GradientEditor-DypXzMc-.js.map +1 -0
- package/dist/chunks/{Icon-CcVjdq2C.js → Icon--B1ME-6c.js} +3 -1
- package/dist/chunks/Icon--B1ME-6c.js.map +1 -0
- package/dist/chunks/{Input-CHmkfYaD.js → Input-CzwvCZs_.js} +10 -15
- package/dist/chunks/Input-CzwvCZs_.js.map +1 -0
- package/dist/chunks/{ItemList-Cm-HUWCi.js → ItemList-CRu9y7hL.js} +2 -2
- package/dist/chunks/ItemList-CRu9y7hL.js.map +1 -0
- package/dist/chunks/{Jog-DRmfrkCg.js → Jog-DfNUYejm.js} +8 -8
- package/dist/chunks/Jog-DfNUYejm.js.map +1 -0
- package/dist/chunks/{LayerList-wCI1EueM.js → LayerList-CsDqwYh-.js} +151 -153
- package/dist/chunks/LayerList-CsDqwYh-.js.map +1 -0
- package/dist/chunks/ListEditor-BnGzqERm.js +72 -0
- package/dist/chunks/ListEditor-BnGzqERm.js.map +1 -0
- package/dist/chunks/MenuButton-L9f5vido.js +75 -0
- package/dist/chunks/MenuButton-L9f5vido.js.map +1 -0
- package/dist/chunks/MeshEditor-GbqqiPk8.js +199 -0
- package/dist/chunks/MeshEditor-GbqqiPk8.js.map +1 -0
- package/dist/chunks/{NumberField-BnJxcazc.js → NumberField-DLXXgh48.js} +26 -23
- package/dist/chunks/NumberField-DLXXgh48.js.map +1 -0
- package/dist/chunks/{OptionsBar-ujxYidhj.js → OptionsBar-DeTAjVb7.js} +6 -8
- package/dist/chunks/{OptionsBar-ujxYidhj.js.map → OptionsBar-DeTAjVb7.js.map} +1 -1
- package/dist/chunks/PaintField-C0hoXc0Y.js +63 -0
- package/dist/chunks/PaintField-C0hoXc0Y.js.map +1 -0
- package/dist/chunks/PaintInput-jQRxM95Y.js +132 -0
- package/dist/chunks/PaintInput-jQRxM95Y.js.map +1 -0
- package/dist/chunks/PatternPicker-CaMYXzhF.js +135 -0
- package/dist/chunks/PatternPicker-CaMYXzhF.js.map +1 -0
- package/dist/chunks/{Plot2D-CTXHkL5p.js → Plot2D-BHNbgCAl.js} +7 -7
- package/dist/chunks/Plot2D-BHNbgCAl.js.map +1 -0
- package/dist/chunks/{PointPlotter-ldI4RrU1.js → PointPlotter-BZ_vk6gV.js} +2 -2
- package/dist/chunks/{PointPlotter-ldI4RrU1.js.map → PointPlotter-BZ_vk6gV.js.map} +1 -1
- package/dist/chunks/{Powerline-DNyH885r.js → Powerline-6wIFmDik.js} +2 -2
- package/dist/chunks/{Powerline-DNyH885r.js.map → Powerline-6wIFmDik.js.map} +1 -1
- package/dist/chunks/{Prefs-ByA-x51i.js → Prefs-CkyldX-e.js} +83 -70
- package/dist/chunks/Prefs-CkyldX-e.js.map +1 -0
- package/dist/chunks/{Properties-DmAeQ3mk.js → Properties-D15c8NP-.js} +25 -25
- package/dist/chunks/{Properties-DmAeQ3mk.js.map → Properties-D15c8NP-.js.map} +1 -1
- package/dist/chunks/PropertyField-CV_Gw57S.js +686 -0
- package/dist/chunks/PropertyField-CV_Gw57S.js.map +1 -0
- package/dist/chunks/{RadioGroup-Bh4-12e-.js → RadioGroup-4dbzqvGy.js} +2 -2
- package/dist/chunks/{RadioGroup-Bh4-12e-.js.map → RadioGroup-4dbzqvGy.js.map} +1 -1
- package/dist/chunks/{RangeSlider-SEGE-7VF.js → RangeSlider-BxokZViJ.js} +8 -8
- package/dist/chunks/RangeSlider-BxokZViJ.js.map +1 -0
- package/dist/chunks/RecentColorsProvider-DHcfk25u.js +84 -0
- package/dist/chunks/RecentColorsProvider-DHcfk25u.js.map +1 -0
- package/dist/chunks/ResizeHandle-CbAgCQOt.js +81 -0
- package/dist/chunks/ResizeHandle-CbAgCQOt.js.map +1 -0
- package/dist/chunks/Select-BppLsJTz.js +236 -0
- package/dist/chunks/Select-BppLsJTz.js.map +1 -0
- package/dist/chunks/{SelectionPanel-BaQnX4Bs.js → SelectionPanel-Cm1qu-ZX.js} +14 -13
- package/dist/chunks/{SelectionPanel-BaQnX4Bs.js.map → SelectionPanel-Cm1qu-ZX.js.map} +1 -1
- package/dist/chunks/{SidebarPanel-BblDEz4G.js → SidebarPanel-AXQ0jRDx.js} +2 -2
- package/dist/chunks/{SidebarPanel-BblDEz4G.js.map → SidebarPanel-AXQ0jRDx.js.map} +1 -1
- package/dist/chunks/{Slider-YofwGOI4.js → Slider-Cl5RCeZ7.js} +19 -19
- package/dist/chunks/Slider-Cl5RCeZ7.js.map +1 -0
- package/dist/chunks/SwatchGrid-9ZPiDmxd.js +78 -0
- package/dist/chunks/SwatchGrid-9ZPiDmxd.js.map +1 -0
- package/dist/chunks/SwatchStrip-Cw0l8Om7.js +577 -0
- package/dist/chunks/SwatchStrip-Cw0l8Om7.js.map +1 -0
- package/dist/chunks/{ThemeSwitcher-BlsInAmR.js → ThemeSwitcher-DiBmMh_B.js} +3 -3
- package/dist/chunks/{ThemeSwitcher-BlsInAmR.js.map → ThemeSwitcher-DiBmMh_B.js.map} +1 -1
- package/dist/chunks/{Timeline-B39cwfMB.js → Timeline-pqnYk5cV.js} +244 -246
- package/dist/chunks/Timeline-pqnYk5cV.js.map +1 -0
- package/dist/chunks/Toast-C3ozq11V.js +170 -0
- package/dist/chunks/Toast-C3ozq11V.js.map +1 -0
- package/dist/chunks/{ToggleBar-BTYkBXU9.js → ToggleBar-Z2jZiguF.js} +6 -8
- package/dist/chunks/{ToggleBar-BTYkBXU9.js.map → ToggleBar-Z2jZiguF.js.map} +1 -1
- package/dist/chunks/{TokenPanel-CMDAOfYH.js → TokenPanel-DAkL6vwQ.js} +32 -32
- package/dist/chunks/TokenPanel-DAkL6vwQ.js.map +1 -0
- package/dist/chunks/{ToolButton-CAHBa08P.js → ToolButton-BURp4YIO.js} +7 -9
- package/dist/chunks/ToolButton-BURp4YIO.js.map +1 -0
- package/dist/chunks/{ToolOptionsBar-D_GCrBAN.js → ToolOptionsBar-COsTJ1cu.js} +3 -2
- package/dist/chunks/{ToolOptionsBar-D_GCrBAN.js.map → ToolOptionsBar-COsTJ1cu.js.map} +1 -1
- package/dist/chunks/{ToolPalette-OOWN51Xx.js → ToolPalette-DKDFWOX-.js} +7 -9
- package/dist/chunks/{ToolPalette-OOWN51Xx.js.map → ToolPalette-DKDFWOX-.js.map} +1 -1
- package/dist/chunks/{Tooltip-Clg2mhSt.js → Tooltip-C6eFCYxw.js} +2 -2
- package/dist/chunks/{Tooltip-Clg2mhSt.js.map → Tooltip-C6eFCYxw.js.map} +1 -1
- package/dist/chunks/Tree-Cc8lIzgM.js.map +1 -1
- package/dist/chunks/checkbox.module-DLQV9tMX.js +5 -0
- package/dist/chunks/checkbox.module-DLQV9tMX.js.map +1 -0
- package/dist/chunks/{createKeyframeLayer-DVl321_l.js → createKeyframeLayer-BTa4LyJE.js} +194 -208
- package/dist/chunks/createKeyframeLayer-BTa4LyJE.js.map +1 -0
- package/dist/chunks/field.module-Bh7BTKMh.js +15 -0
- package/dist/chunks/field.module-Bh7BTKMh.js.map +1 -0
- package/dist/chunks/formatShortcut-DRQrVThu.js.map +1 -1
- package/dist/chunks/handles-CqVANLtu.js +17 -0
- package/dist/chunks/handles-CqVANLtu.js.map +1 -0
- package/dist/chunks/{icons-BhcR1l64.js → icons-Dr2-r30x.js} +2 -2
- package/dist/chunks/icons-Dr2-r30x.js.map +1 -0
- package/dist/chunks/listbox.module-BcdVJMbm.js +8 -0
- package/dist/chunks/listbox.module-BcdVJMbm.js.map +1 -0
- package/dist/chunks/model-B1-gMBIW.js +386 -0
- package/dist/chunks/model-B1-gMBIW.js.map +1 -0
- package/dist/chunks/{portalHost-yTOVuCej.js → portalHost-CE70wLzo.js} +10 -6
- package/dist/chunks/portalHost-CE70wLzo.js.map +1 -0
- package/dist/chunks/prefField-BE_Ytr2H.js +229 -0
- package/dist/chunks/prefField-BE_Ytr2H.js.map +1 -0
- package/dist/chunks/{segmentTooltip-CStYHKzd.js → segmentTooltip-CGxCOWNz.js} +2 -2
- package/dist/chunks/{segmentTooltip-CStYHKzd.js.map → segmentTooltip-CGxCOWNz.js.map} +1 -1
- package/dist/chunks/segmentedControl.module-BzGXUL5G.js +11 -0
- package/dist/chunks/segmentedControl.module-BzGXUL5G.js.map +1 -0
- package/dist/chunks/useReorderDragList-CStYKjHl.js +133 -0
- package/dist/chunks/useReorderDragList-CStYKjHl.js.map +1 -0
- package/dist/chunks/useRovingTabIndex-D7u22Ia_.js +91 -0
- package/dist/chunks/useRovingTabIndex-D7u22Ia_.js.map +1 -0
- package/dist/components/ActionBar/ActionBar.d.ts.map +1 -1
- package/dist/components/ActionBar/index.js +1 -1
- package/dist/components/Badge/bases/ChamferedRect.d.ts.map +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/BandEditor/BandEditor.d.ts +1 -0
- package/dist/components/BandEditor/BandEditor.d.ts.map +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonBar/ButtonBar.d.ts.map +1 -1
- package/dist/components/ButtonBar/index.js +1 -1
- package/dist/components/Callout/Callout.d.ts.map +1 -1
- package/dist/components/Callout/index.js +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +28 -13
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/CloseButton/index.js +1 -1
- package/dist/components/ColorField/ColorField.d.ts.map +1 -1
- package/dist/components/ColorField/OpacityRange.d.ts +18 -0
- package/dist/components/ColorField/OpacityRange.d.ts.map +1 -0
- package/dist/components/ColorField/index.js +1 -1
- package/dist/components/ColorModeControl/index.js +1 -1
- package/dist/components/ComboBox/ComboBox.d.ts +7 -0
- 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.map +1 -1
- package/dist/components/CurveEditor/LayeredCurveEditor.d.ts.map +1 -1
- package/dist/components/CurveEditor/index.js +2 -2
- package/dist/components/DataGrid/index.js +1 -1
- package/dist/components/DetailList/index.js +1 -1
- package/dist/components/DetentSlider/index.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/DragGhost/index.js +1 -1
- package/dist/components/FallthroughDiagram/index.js +1 -1
- package/dist/components/Field/index.js +1 -1
- package/dist/components/FillStrokeSwatch/FillStrokeSwatch.d.ts.map +1 -1
- package/dist/components/FillStrokeSwatch/index.js +1 -1
- package/dist/components/FontFamilySelect/FontFamilySelect.d.ts +20 -0
- package/dist/components/FontFamilySelect/FontFamilySelect.d.ts.map +1 -1
- package/dist/components/FontFamilySelect/index.js +1 -1
- package/dist/components/FontWeightSelect/FontWeightSelect.d.ts +26 -0
- package/dist/components/FontWeightSelect/FontWeightSelect.d.ts.map +1 -0
- package/dist/components/FontWeightSelect/index.d.ts +3 -0
- package/dist/components/FontWeightSelect/index.d.ts.map +1 -0
- package/dist/components/FontWeightSelect/index.js +2 -0
- package/dist/components/GestureRoute/index.js +1 -1
- package/dist/components/GradientEditor/GradientHandles.d.ts +1 -8
- package/dist/components/GradientEditor/GradientHandles.d.ts.map +1 -1
- package/dist/components/GradientEditor/SceneGradientHandles.d.ts +7 -5
- package/dist/components/GradientEditor/SceneGradientHandles.d.ts.map +1 -1
- package/dist/components/GradientEditor/handleOverlay.d.ts +41 -0
- package/dist/components/GradientEditor/handleOverlay.d.ts.map +1 -0
- package/dist/components/GradientEditor/index.js +1 -1
- package/dist/components/Input/Input.d.ts +1 -1
- 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 +32 -31
- 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/LayerList/LayerList.d.ts.map +1 -1
- package/dist/components/LayerList/index.js +1 -1
- package/dist/components/ListEditor/ListEditor.d.ts.map +1 -1
- package/dist/components/ListEditor/index.js +1 -1
- package/dist/components/MenuButton/MenuButton.d.ts.map +1 -1
- package/dist/components/MenuButton/index.js +1 -1
- package/dist/components/MeshEditor/MeshEditor.d.ts +4 -3
- package/dist/components/MeshEditor/MeshEditor.d.ts.map +1 -1
- package/dist/components/MeshEditor/MeshHandles.d.ts +38 -0
- package/dist/components/MeshEditor/MeshHandles.d.ts.map +1 -0
- package/dist/components/MeshEditor/index.d.ts +2 -0
- package/dist/components/MeshEditor/index.d.ts.map +1 -1
- package/dist/components/MeshEditor/index.js +2 -2
- package/dist/components/NumberField/NumberField.d.ts +1 -1
- package/dist/components/NumberField/NumberField.d.ts.map +1 -1
- package/dist/components/NumberField/index.js +1 -1
- package/dist/components/OptionsBar/OptionsBar.d.ts.map +1 -1
- package/dist/components/OptionsBar/index.js +1 -1
- package/dist/components/PaintField/PaintField.d.ts.map +1 -1
- package/dist/components/PaintField/index.js +1 -1
- package/dist/components/PaintInput/PaintInput.d.ts.map +1 -1
- package/dist/components/PaintInput/index.js +1 -1
- package/dist/components/PatternPicker/PatternPicker.d.ts +6 -5
- package/dist/components/PatternPicker/PatternPicker.d.ts.map +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/index.js +2 -2
- package/dist/components/Prefs/PrefsForm.d.ts +8 -0
- package/dist/components/Prefs/PrefsForm.d.ts.map +1 -1
- package/dist/components/Prefs/PrefsRail.d.ts +3 -2
- package/dist/components/Prefs/PrefsRail.d.ts.map +1 -1
- package/dist/components/Prefs/index.js +2 -2
- package/dist/components/Prefs/prefField.d.ts +13 -0
- package/dist/components/Prefs/prefField.d.ts.map +1 -1
- package/dist/components/Properties/PropertyField.d.ts +13 -2
- package/dist/components/Properties/PropertyField.d.ts.map +1 -1
- package/dist/components/Properties/index.js +3 -3
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/RangeSlider/index.js +1 -1
- package/dist/components/RecentColors/RecentColorsProvider.d.ts +24 -0
- package/dist/components/RecentColors/RecentColorsProvider.d.ts.map +1 -0
- package/dist/components/RecentColors/index.d.ts +5 -0
- package/dist/components/RecentColors/index.d.ts.map +1 -0
- package/dist/components/RecentColors/index.js +2 -0
- package/dist/components/RecentColors/recentColors.d.ts +39 -0
- package/dist/components/RecentColors/recentColors.d.ts.map +1 -0
- 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 +6 -2
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/SelectionPanel/index.js +2 -2
- package/dist/components/SelectionPanel/renderLeaf.d.ts +12 -2
- package/dist/components/SelectionPanel/renderLeaf.d.ts.map +1 -1
- package/dist/components/SidebarPanel/index.js +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/SwatchGrid/SwatchGrid.d.ts.map +1 -1
- package/dist/components/SwatchGrid/index.js +1 -1
- package/dist/components/SwatchStrip/SwatchStrip.d.ts +44 -0
- package/dist/components/SwatchStrip/SwatchStrip.d.ts.map +1 -0
- package/dist/components/SwatchStrip/index.d.ts +5 -0
- package/dist/components/SwatchStrip/index.d.ts.map +1 -0
- package/dist/components/SwatchStrip/index.js +2 -0
- package/dist/components/SwatchStrip/palettes.d.ts +21 -0
- package/dist/components/SwatchStrip/palettes.d.ts.map +1 -0
- package/dist/components/ThemeSwitcher/index.js +1 -1
- package/dist/components/Timeline/AnimatedTimeline.d.ts +1 -0
- package/dist/components/Timeline/AnimatedTimeline.d.ts.map +1 -1
- package/dist/components/Timeline/EasingPicker.d.ts +3 -0
- package/dist/components/Timeline/EasingPicker.d.ts.map +1 -1
- package/dist/components/Timeline/LaneGraph.d.ts +1 -1
- package/dist/components/Timeline/LaneGraph.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.d.ts +10 -1
- package/dist/components/Timeline/Timeline.d.ts.map +1 -1
- package/dist/components/Timeline/Transport.d.ts +6 -0
- package/dist/components/Timeline/Transport.d.ts.map +1 -1
- package/dist/components/Timeline/index.js +1 -1
- package/dist/components/Timeline/keys.d.ts +1 -0
- package/dist/components/Timeline/keys.d.ts.map +1 -1
- package/dist/components/Toast/Toast.d.ts +12 -3
- 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.map +1 -1
- package/dist/components/ToggleBar/index.js +1 -1
- package/dist/components/TokenPanel/index.js +1 -1
- package/dist/components/TokenPanel/tokenTypes.d.ts +1 -0
- package/dist/components/TokenPanel/tokenTypes.d.ts.map +1 -1
- package/dist/components/ToolButton/ToolButton.d.ts +1 -10
- package/dist/components/ToolButton/ToolButton.d.ts.map +1 -1
- package/dist/components/ToolButton/index.js +1 -1
- package/dist/components/ToolOptionsBar/index.js +1 -1
- package/dist/components/ToolPalette/ToolPalette.d.ts.map +1 -1
- package/dist/components/ToolPalette/formatShortcut.d.ts +2 -0
- package/dist/components/ToolPalette/formatShortcut.d.ts.map +1 -1
- package/dist/components/ToolPalette/index.js +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Tree/Tree.d.ts +27 -26
- package/dist/components/Tree/Tree.d.ts.map +1 -1
- package/dist/icons/index.d.ts +51 -0
- 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 +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +98 -95
- package/dist/index.js.map +1 -1
- package/dist/overlays/portalHost.d.ts +6 -0
- package/dist/overlays/portalHost.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/useAsyncOptions.d.ts.map +1 -1
- package/dist/useReorderDragList.d.ts.map +1 -1
- package/dist/useRovingTabIndex.d.ts +40 -39
- package/dist/useRovingTabIndex.d.ts.map +1 -1
- package/package.json +9 -9
- package/dist/chunks/ActionBar-DCq16yFA.js +0 -57
- package/dist/chunks/ActionBar-DCq16yFA.js.map +0 -1
- package/dist/chunks/Callout-ndW5_Bqx.js +0 -116
- package/dist/chunks/Callout-ndW5_Bqx.js.map +0 -1
- package/dist/chunks/Checkbox-DHXTUHO9.js +0 -47
- package/dist/chunks/Checkbox-DHXTUHO9.js.map +0 -1
- package/dist/chunks/ColorField-Yz_BkcCT.js +0 -69
- package/dist/chunks/ColorField-Yz_BkcCT.js.map +0 -1
- package/dist/chunks/ComboBox-B34H76CW.js +0 -138
- package/dist/chunks/ComboBox-B34H76CW.js.map +0 -1
- package/dist/chunks/CurveEditor-DUVjd25R.js.map +0 -1
- package/dist/chunks/DetailList-BKomDzg5.js.map +0 -1
- package/dist/chunks/Field--onYxXTF.js +0 -32
- package/dist/chunks/Field--onYxXTF.js.map +0 -1
- package/dist/chunks/FillStrokeSwatch-DNb0KXPk.js +0 -111
- package/dist/chunks/FillStrokeSwatch-DNb0KXPk.js.map +0 -1
- package/dist/chunks/FontFamilySelect-DkRgNtag.js.map +0 -1
- package/dist/chunks/GradientEditor-b7v4Ph3i.js +0 -363
- package/dist/chunks/GradientEditor-b7v4Ph3i.js.map +0 -1
- package/dist/chunks/Icon-CcVjdq2C.js.map +0 -1
- package/dist/chunks/Input-CHmkfYaD.js.map +0 -1
- package/dist/chunks/ItemList-Cm-HUWCi.js.map +0 -1
- package/dist/chunks/Jog-DRmfrkCg.js.map +0 -1
- package/dist/chunks/LayerList-wCI1EueM.js.map +0 -1
- package/dist/chunks/ListEditor-BeA60TAA.js +0 -71
- package/dist/chunks/ListEditor-BeA60TAA.js.map +0 -1
- package/dist/chunks/MenuButton-BSqEChJE.js +0 -70
- package/dist/chunks/MenuButton-BSqEChJE.js.map +0 -1
- package/dist/chunks/MeshEditor-D1HLZcAh.js +0 -87
- package/dist/chunks/MeshEditor-D1HLZcAh.js.map +0 -1
- package/dist/chunks/NumberField-BnJxcazc.js.map +0 -1
- package/dist/chunks/PaintField-DadOELMg.js +0 -62
- package/dist/chunks/PaintField-DadOELMg.js.map +0 -1
- package/dist/chunks/PaintInput-v8Y7MDbH.js +0 -121
- package/dist/chunks/PaintInput-v8Y7MDbH.js.map +0 -1
- package/dist/chunks/PatternPicker-R_EQtw2Q.js +0 -93
- package/dist/chunks/PatternPicker-R_EQtw2Q.js.map +0 -1
- package/dist/chunks/Plot2D-CTXHkL5p.js.map +0 -1
- package/dist/chunks/Prefs-ByA-x51i.js.map +0 -1
- package/dist/chunks/PropertyField-DfIJJ5GS.js +0 -673
- package/dist/chunks/PropertyField-DfIJJ5GS.js.map +0 -1
- package/dist/chunks/RangeSlider-SEGE-7VF.js.map +0 -1
- package/dist/chunks/ResizeHandle-rKVWyeTG.js +0 -79
- package/dist/chunks/ResizeHandle-rKVWyeTG.js.map +0 -1
- package/dist/chunks/Select-ClmKtyWg.js +0 -229
- package/dist/chunks/Select-ClmKtyWg.js.map +0 -1
- package/dist/chunks/Slider-YofwGOI4.js.map +0 -1
- package/dist/chunks/SwatchGrid-BYvA8Bmh.js +0 -73
- package/dist/chunks/SwatchGrid-BYvA8Bmh.js.map +0 -1
- package/dist/chunks/Timeline-B39cwfMB.js.map +0 -1
- package/dist/chunks/Toast-BF9GE0HC.js +0 -126
- package/dist/chunks/Toast-BF9GE0HC.js.map +0 -1
- package/dist/chunks/TokenPanel-CMDAOfYH.js.map +0 -1
- package/dist/chunks/ToolButton-CAHBa08P.js.map +0 -1
- package/dist/chunks/createKeyframeLayer-DVl321_l.js.map +0 -1
- package/dist/chunks/icons-BhcR1l64.js.map +0 -1
- package/dist/chunks/model-BaF65rnX.js +0 -365
- package/dist/chunks/model-BaF65rnX.js.map +0 -1
- package/dist/chunks/portalHost-yTOVuCej.js.map +0 -1
- package/dist/chunks/prefField-BopW9bjx.js +0 -201
- package/dist/chunks/prefField-BopW9bjx.js.map +0 -1
- package/dist/chunks/segmentedControl.module-D6SzYJD7.js +0 -11
- package/dist/chunks/segmentedControl.module-D6SzYJD7.js.map +0 -1
- package/dist/chunks/useReorderDragList-FCMoFIzH.js +0 -131
- package/dist/chunks/useReorderDragList-FCMoFIzH.js.map +0 -1
- package/dist/chunks/useRovingTabIndex-Bp_hYm_h.js +0 -65
- package/dist/chunks/useRovingTabIndex-Bp_hYm_h.js.map +0 -1
|
@@ -0,0 +1,686 @@
|
|
|
1
|
+
import { t as e } from "./dlog-F0I8KsIW.js";
|
|
2
|
+
import { n as t, r as n } from "./Tooltip-C6eFCYxw.js";
|
|
3
|
+
import { t as r } from "./stance-BFQpS_fL.js";
|
|
4
|
+
import { n as i } from "./InlineRange-P01ABSzo.js";
|
|
5
|
+
import { t as a } from "./ColorField-BLs9fbeq.js";
|
|
6
|
+
import { t as o } from "./Select-BppLsJTz.js";
|
|
7
|
+
import { t as s } from "./FontFamilySelect-CGJ5OIOy.js";
|
|
8
|
+
import { t as c } from "./FontWeightSelect-RbcXYJPS.js";
|
|
9
|
+
import { t as l } from "./Input-CzwvCZs_.js";
|
|
10
|
+
import { n as u, t as d } from "./NumberField-DLXXgh48.js";
|
|
11
|
+
import { t as f } from "./ToggleBar-Z2jZiguF.js";
|
|
12
|
+
import { t as p } from "./PaintInput-jQRxM95Y.js";
|
|
13
|
+
import { t as m } from "./PaintField-C0hoXc0Y.js";
|
|
14
|
+
import { n as h, t as g } from "./RadioGroup-4dbzqvGy.js";
|
|
15
|
+
import { t as _ } from "./Switch-CSYmcM8y.js";
|
|
16
|
+
import { t as v } from "./checkbox.module-DLQV9tMX.js";
|
|
17
|
+
import { getAlpha01 as y, toHex8 as b, withAlpha01 as x } from "@weasel-js/core";
|
|
18
|
+
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
19
|
+
import { createContext as ee, forwardRef as T, useContext as te, useEffect as E, useId as ne, useRef as D, useState as O } from "react";
|
|
20
|
+
import { Focusable as k } from "react-aria-components";
|
|
21
|
+
import { decimal as A, parseAs as re, qty as j } from "@weasel-js/quantity";
|
|
22
|
+
var M = {
|
|
23
|
+
panel: "_panel_tasmr_9",
|
|
24
|
+
list: "_list_tasmr_3",
|
|
25
|
+
row: "_row_tasmr_4",
|
|
26
|
+
group: "_group_tasmr_4",
|
|
27
|
+
subpanel: "_subpanel_tasmr_3",
|
|
28
|
+
card: "_card_tasmr_37",
|
|
29
|
+
cardList: "_cardList_tasmr_37",
|
|
30
|
+
readout: "_readout_tasmr_42",
|
|
31
|
+
readoutInput: "_readoutInput_tasmr_43",
|
|
32
|
+
panelTitle: "_panelTitle_tasmr_72",
|
|
33
|
+
panelHeader: "_panelHeader_tasmr_84",
|
|
34
|
+
panelActions: "_panelActions_tasmr_97",
|
|
35
|
+
listPairs: "_listPairs_tasmr_3",
|
|
36
|
+
rowColor: "_rowColor_tasmr_4",
|
|
37
|
+
span: "_span_tasmr_505",
|
|
38
|
+
listOneUp: "_listOneUp_tasmr_513",
|
|
39
|
+
densityTight: "_densityTight_tasmr_524",
|
|
40
|
+
densityNormal: "_densityNormal_tasmr_536",
|
|
41
|
+
densityRoomy: "_densityRoomy_tasmr_548",
|
|
42
|
+
alignStart: "_alignStart_tasmr_574",
|
|
43
|
+
alignCenter: "_alignCenter_tasmr_580",
|
|
44
|
+
alignEnd: "_alignEnd_tasmr_586",
|
|
45
|
+
alignBaseline: "_alignBaseline_tasmr_592",
|
|
46
|
+
rowInline: "_rowInline_tasmr_623",
|
|
47
|
+
rowLabel: "_rowLabel_tasmr_629",
|
|
48
|
+
rowBlock: "_rowBlock_tasmr_654",
|
|
49
|
+
rowCheckbox: "_rowCheckbox_tasmr_655",
|
|
50
|
+
readoutAfter: "_readoutAfter_tasmr_674",
|
|
51
|
+
readoutText: "_readoutText_tasmr_685",
|
|
52
|
+
help: "_help_tasmr_698",
|
|
53
|
+
autoToggle: "_autoToggle_tasmr_732",
|
|
54
|
+
readoutGroup: "_readoutGroup_tasmr_680",
|
|
55
|
+
readoutUnit: "_readoutUnit_tasmr_809",
|
|
56
|
+
fieldUnitGroup: "_fieldUnitGroup_tasmr_834",
|
|
57
|
+
numberField: "_numberField_tasmr_842",
|
|
58
|
+
toggleBar: "_toggleBar_tasmr_882",
|
|
59
|
+
textField: "_textField_tasmr_900",
|
|
60
|
+
select: "_select_tasmr_913",
|
|
61
|
+
dialogTrigger: "_dialogTrigger_tasmr_1034",
|
|
62
|
+
dialogSummary: "_dialogSummary_tasmr_1069",
|
|
63
|
+
dialogGlyph: "_dialogGlyph_tasmr_1077",
|
|
64
|
+
colorField: "_colorField_tasmr_1151",
|
|
65
|
+
dimmed: "_dimmed_tasmr_1232",
|
|
66
|
+
cellReadout: "_cellReadout_tasmr_1238",
|
|
67
|
+
textarea: "_textarea_tasmr_1244",
|
|
68
|
+
groupHeadRow: "_groupHeadRow_tasmr_1280",
|
|
69
|
+
groupTitle: "_groupTitle_tasmr_1288",
|
|
70
|
+
groupLeading: "_groupLeading_tasmr_1294",
|
|
71
|
+
groupActions: "_groupActions_tasmr_1295",
|
|
72
|
+
note: "_note_tasmr_1492",
|
|
73
|
+
groupTitleMid: "_groupTitleMid_tasmr_1522",
|
|
74
|
+
groupTwisty: "_groupTwisty_tasmr_1528",
|
|
75
|
+
groupBody: "_groupBody_tasmr_4",
|
|
76
|
+
groupPairs: "_groupPairs_tasmr_1557",
|
|
77
|
+
groupOneUp: "_groupOneUp_tasmr_1570",
|
|
78
|
+
subpanelTitle: "_subpanelTitle_tasmr_1710",
|
|
79
|
+
rowAuto: "_rowAuto_tasmr_1747"
|
|
80
|
+
}, ie = {
|
|
81
|
+
tight: M.densityTight,
|
|
82
|
+
normal: M.densityNormal,
|
|
83
|
+
roomy: M.densityRoomy
|
|
84
|
+
}, ae = {
|
|
85
|
+
start: M.alignStart,
|
|
86
|
+
center: M.alignCenter,
|
|
87
|
+
end: M.alignEnd,
|
|
88
|
+
baseline: M.alignBaseline
|
|
89
|
+
};
|
|
90
|
+
function N(e, { density: t, align: n }, r) {
|
|
91
|
+
return [
|
|
92
|
+
e,
|
|
93
|
+
t && ie[t],
|
|
94
|
+
n && ae[n],
|
|
95
|
+
r
|
|
96
|
+
].filter(Boolean).join(" ");
|
|
97
|
+
}
|
|
98
|
+
var P = ee(!1);
|
|
99
|
+
function oe({ title: e, actions: t, selectable: n, children: i, className: a, density: o, align: s, stance: c, tone: l }) {
|
|
100
|
+
let u = te(P), d = r({
|
|
101
|
+
stance: c,
|
|
102
|
+
tone: l
|
|
103
|
+
}), f = e != null && /* @__PURE__ */ C("h2", {
|
|
104
|
+
className: M.panelTitle,
|
|
105
|
+
children: e
|
|
106
|
+
});
|
|
107
|
+
return /* @__PURE__ */ w("div", {
|
|
108
|
+
className: N(M.panel, {
|
|
109
|
+
density: o,
|
|
110
|
+
align: s
|
|
111
|
+
}, a),
|
|
112
|
+
...d,
|
|
113
|
+
"data-nested": u || void 0,
|
|
114
|
+
"data-selectable": (n ?? c === "debug") || void 0,
|
|
115
|
+
children: [t == null ? f : /* @__PURE__ */ w("div", {
|
|
116
|
+
className: M.panelHeader,
|
|
117
|
+
children: [f, /* @__PURE__ */ C("div", {
|
|
118
|
+
className: M.panelActions,
|
|
119
|
+
children: t
|
|
120
|
+
})]
|
|
121
|
+
}), /* @__PURE__ */ C(P.Provider, {
|
|
122
|
+
value: !0,
|
|
123
|
+
children: i
|
|
124
|
+
})]
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
var se = T(function({ children: e, className: t, pack: n = "auto-color", density: r, align: i }, a) {
|
|
128
|
+
let o = `${M.list}${n === "pairs" ? ` ${M.listPairs}` : n === "one-up" ? ` ${M.listOneUp}` : ""}`;
|
|
129
|
+
return /* @__PURE__ */ C("div", {
|
|
130
|
+
ref: a,
|
|
131
|
+
className: N(o, {
|
|
132
|
+
density: r,
|
|
133
|
+
align: i
|
|
134
|
+
}, t),
|
|
135
|
+
children: e
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
function ce({ children: e, className: t }) {
|
|
139
|
+
return /* @__PURE__ */ C("div", {
|
|
140
|
+
className: t ? `${M.span} ${t}` : M.span,
|
|
141
|
+
children: e
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
function le({ children: e, className: t }) {
|
|
145
|
+
return /* @__PURE__ */ C("p", {
|
|
146
|
+
className: t ? `${M.note} ${t}` : M.note,
|
|
147
|
+
children: e
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
function F({ label: e, readout: t, description: n, variant: r = "default", layout: i, span: a, children: o, htmlFor: s, group: c, className: l, density: u, align: d, auto: f, onAutoChange: p }) {
|
|
151
|
+
let m = r === "color" ? M.rowColor : r === "checkbox" ? M.rowCheckbox : "", h = r === "default" ? "block" : "inline", g = i ?? h, _ = g === h ? "" : g === "inline" ? M.rowInline : M.rowBlock, v = N([
|
|
152
|
+
M.row,
|
|
153
|
+
m,
|
|
154
|
+
_,
|
|
155
|
+
a && M.span,
|
|
156
|
+
f && M.rowAuto
|
|
157
|
+
].filter(Boolean).join(" "), {
|
|
158
|
+
density: u,
|
|
159
|
+
align: d
|
|
160
|
+
}, l), y = g === "inline" && t != null, b = /* @__PURE__ */ w("span", {
|
|
161
|
+
className: M.rowLabel,
|
|
162
|
+
children: [
|
|
163
|
+
p ? /* @__PURE__ */ C(I, {
|
|
164
|
+
auto: f ?? !1,
|
|
165
|
+
label: e,
|
|
166
|
+
onChange: p
|
|
167
|
+
}) : e,
|
|
168
|
+
n ? /* @__PURE__ */ C(L, {
|
|
169
|
+
label: e,
|
|
170
|
+
description: n
|
|
171
|
+
}) : null,
|
|
172
|
+
t != null && !y && /* @__PURE__ */ C("em", {
|
|
173
|
+
className: M.readout,
|
|
174
|
+
children: t
|
|
175
|
+
})
|
|
176
|
+
]
|
|
177
|
+
}), x = y ? /* @__PURE__ */ C("em", {
|
|
178
|
+
className: `${M.readout} ${M.readoutAfter}`,
|
|
179
|
+
children: t
|
|
180
|
+
}) : null;
|
|
181
|
+
return c ? /* @__PURE__ */ w("div", {
|
|
182
|
+
className: v,
|
|
183
|
+
children: [
|
|
184
|
+
b,
|
|
185
|
+
o,
|
|
186
|
+
x
|
|
187
|
+
]
|
|
188
|
+
}) : /* @__PURE__ */ w("label", {
|
|
189
|
+
className: v,
|
|
190
|
+
htmlFor: s,
|
|
191
|
+
children: [
|
|
192
|
+
b,
|
|
193
|
+
o,
|
|
194
|
+
x
|
|
195
|
+
]
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
function I({ auto: e, label: t, onChange: n }) {
|
|
199
|
+
let r = typeof t == "string" ? t : "this setting", i = (t) => {
|
|
200
|
+
t.preventDefault(), t.stopPropagation(), n(!e);
|
|
201
|
+
};
|
|
202
|
+
return /* @__PURE__ */ C("span", {
|
|
203
|
+
role: "button",
|
|
204
|
+
tabIndex: 0,
|
|
205
|
+
className: M.autoToggle,
|
|
206
|
+
"aria-pressed": !e,
|
|
207
|
+
"aria-label": `Pin ${r}`,
|
|
208
|
+
onClick: i,
|
|
209
|
+
onKeyDown: (e) => {
|
|
210
|
+
(e.key === "Enter" || e.key === " ") && i(e);
|
|
211
|
+
},
|
|
212
|
+
onMouseDown: (e) => e.stopPropagation(),
|
|
213
|
+
children: t
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
function L({ label: e, description: r }) {
|
|
217
|
+
let i = typeof e == "string" ? e : "this setting";
|
|
218
|
+
return /* @__PURE__ */ w(n, { children: [/* @__PURE__ */ C(k, { children: /* @__PURE__ */ C("button", {
|
|
219
|
+
type: "button",
|
|
220
|
+
className: M.help,
|
|
221
|
+
"aria-label": `About ${i}`,
|
|
222
|
+
onClick: (e) => {
|
|
223
|
+
e.preventDefault(), e.stopPropagation();
|
|
224
|
+
},
|
|
225
|
+
onMouseDown: (e) => e.stopPropagation(),
|
|
226
|
+
children: "ⓘ"
|
|
227
|
+
}) }), /* @__PURE__ */ C(t, { children: r })] });
|
|
228
|
+
}
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region src/components/Properties/PropertyField.tsx
|
|
231
|
+
function R(e) {
|
|
232
|
+
let { label: t, readout: n, description: r, layout: i, span: a, density: o, align: s, auto: c, onAutoChange: l, rowClassName: u, controlClassName: d, ...f } = e, p = ne(), m = {
|
|
233
|
+
...f,
|
|
234
|
+
name: f.name ?? X(t),
|
|
235
|
+
className: d,
|
|
236
|
+
id: p
|
|
237
|
+
}, h = B(m), g = {
|
|
238
|
+
label: t,
|
|
239
|
+
description: r,
|
|
240
|
+
layout: i,
|
|
241
|
+
span: a,
|
|
242
|
+
density: o,
|
|
243
|
+
align: s,
|
|
244
|
+
auto: c,
|
|
245
|
+
onAutoChange: l,
|
|
246
|
+
className: u,
|
|
247
|
+
variant: h.variant,
|
|
248
|
+
group: h.group,
|
|
249
|
+
htmlFor: h.group || m.kind === "font-family" || m.kind === "font-weight" ? void 0 : p
|
|
250
|
+
};
|
|
251
|
+
return m.kind === "number" && m.control === "slider" ? /* @__PURE__ */ C(F, {
|
|
252
|
+
...g,
|
|
253
|
+
readout: Y(n) ?? /* @__PURE__ */ C(J, { ...m }),
|
|
254
|
+
children: /* @__PURE__ */ C(q, { ...m })
|
|
255
|
+
}) : /* @__PURE__ */ C(F, {
|
|
256
|
+
...g,
|
|
257
|
+
readout: n,
|
|
258
|
+
children: /* @__PURE__ */ C(V, { ...m })
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
function z(e) {
|
|
262
|
+
let t = e;
|
|
263
|
+
return t.kind === "number" && t.control === "slider" ? /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(q, { ...t }), /* @__PURE__ */ C("span", {
|
|
264
|
+
className: M.cellReadout,
|
|
265
|
+
children: /* @__PURE__ */ C(J, { ...t })
|
|
266
|
+
})] }) : /* @__PURE__ */ C(V, { ...t });
|
|
267
|
+
}
|
|
268
|
+
function B(e) {
|
|
269
|
+
switch (e.kind) {
|
|
270
|
+
case "boolean": return {
|
|
271
|
+
variant: "checkbox",
|
|
272
|
+
group: e.control === "switch" || e.control === "toggle"
|
|
273
|
+
};
|
|
274
|
+
case "enum": return {
|
|
275
|
+
variant: "default",
|
|
276
|
+
group: e.control === "radio" || e.control === "toggle"
|
|
277
|
+
};
|
|
278
|
+
case "color": return {
|
|
279
|
+
variant: "color",
|
|
280
|
+
group: !1
|
|
281
|
+
};
|
|
282
|
+
case "paint": return {
|
|
283
|
+
variant: "default",
|
|
284
|
+
group: !0
|
|
285
|
+
};
|
|
286
|
+
default: return {
|
|
287
|
+
variant: "default",
|
|
288
|
+
group: !1
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
function V(e) {
|
|
293
|
+
switch (e.kind) {
|
|
294
|
+
case "boolean": return /* @__PURE__ */ C(U, { ...e });
|
|
295
|
+
case "number": return /* @__PURE__ */ C(de, { ...e });
|
|
296
|
+
case "string": return /* @__PURE__ */ C(me, { ...e });
|
|
297
|
+
case "enum": return /* @__PURE__ */ C(he, { ...e });
|
|
298
|
+
case "color": return /* @__PURE__ */ C(ge, { ...e });
|
|
299
|
+
case "paint": return /* @__PURE__ */ C(_e, { ...e });
|
|
300
|
+
case "font-family": return /* @__PURE__ */ C(s, {
|
|
301
|
+
className: e.className,
|
|
302
|
+
value: e.mixed ? void 0 : e.value,
|
|
303
|
+
mixed: e.mixed,
|
|
304
|
+
onChange: e.onChange,
|
|
305
|
+
weight: e.weight,
|
|
306
|
+
fontStyle: e.fontStyle,
|
|
307
|
+
"aria-label": e.name
|
|
308
|
+
});
|
|
309
|
+
case "font-weight": return /* @__PURE__ */ C(c, {
|
|
310
|
+
className: e.className,
|
|
311
|
+
value: e.mixed ? void 0 : e.value,
|
|
312
|
+
mixed: e.mixed,
|
|
313
|
+
family: e.family,
|
|
314
|
+
onChange: e.onChange,
|
|
315
|
+
"aria-label": e.name
|
|
316
|
+
});
|
|
317
|
+
default: throw Error(`PropertyControl: no control for kind "${e.kind}"`);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
function H({ mixed: e, unset: t, children: n }) {
|
|
321
|
+
return !e && !t ? /* @__PURE__ */ C(S, { children: n }) : /* @__PURE__ */ C("span", {
|
|
322
|
+
className: M.dimmed,
|
|
323
|
+
title: e ? "Mixed" : "Not set",
|
|
324
|
+
children: n
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
function U(e) {
|
|
328
|
+
let t = !e.mixed && e.value === !0, n = D(null);
|
|
329
|
+
return E(() => {
|
|
330
|
+
n.current && (n.current.indeterminate = e.mixed === !0);
|
|
331
|
+
}), e.control === "toggle" ? /* @__PURE__ */ C(f, {
|
|
332
|
+
mode: "multiple",
|
|
333
|
+
size: "sm",
|
|
334
|
+
variant: "flat",
|
|
335
|
+
className: e.className,
|
|
336
|
+
ariaLabel: e.name,
|
|
337
|
+
items: [{
|
|
338
|
+
value: "on",
|
|
339
|
+
label: e.glyph ?? e.name?.slice(0, 1),
|
|
340
|
+
ariaLabel: e.name
|
|
341
|
+
}],
|
|
342
|
+
value: t ? ["on"] : [],
|
|
343
|
+
mixedValues: e.mixed ? ["on"] : [],
|
|
344
|
+
onChange: (t) => e.onChange(t.includes("on"))
|
|
345
|
+
}) : e.control === "switch" ? /* @__PURE__ */ C(H, {
|
|
346
|
+
mixed: e.mixed,
|
|
347
|
+
unset: e.unset,
|
|
348
|
+
children: /* @__PURE__ */ C(_, {
|
|
349
|
+
className: e.className,
|
|
350
|
+
isSelected: t,
|
|
351
|
+
onChange: e.onChange,
|
|
352
|
+
"aria-label": e.name
|
|
353
|
+
})
|
|
354
|
+
}) : /* @__PURE__ */ C(H, {
|
|
355
|
+
unset: e.unset,
|
|
356
|
+
children: /* @__PURE__ */ C("input", {
|
|
357
|
+
ref: n,
|
|
358
|
+
id: e.id,
|
|
359
|
+
type: "checkbox",
|
|
360
|
+
className: e.className ? `${v.checkbox} ${e.className}` : v.checkbox,
|
|
361
|
+
"aria-label": e.name,
|
|
362
|
+
checked: t,
|
|
363
|
+
onChange: (t) => e.onChange(t.target.checked)
|
|
364
|
+
})
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
function ue(e) {
|
|
368
|
+
let t = D(null), n = D(e);
|
|
369
|
+
return E(() => {
|
|
370
|
+
n.current = e;
|
|
371
|
+
}), E(() => {
|
|
372
|
+
let e = t.current;
|
|
373
|
+
if (!e) return;
|
|
374
|
+
let r = () => n.current?.(e.value);
|
|
375
|
+
return e.addEventListener("change", r), () => e.removeEventListener("change", r);
|
|
376
|
+
}, []), t;
|
|
377
|
+
}
|
|
378
|
+
function W(e, t) {
|
|
379
|
+
return e == null ? null : typeof e == "string" ? /* @__PURE__ */ C("span", {
|
|
380
|
+
className: t,
|
|
381
|
+
children: e
|
|
382
|
+
}) : e;
|
|
383
|
+
}
|
|
384
|
+
var G = () => {};
|
|
385
|
+
function de(e) {
|
|
386
|
+
let t = !e.mixed && typeof e.value == "number" && Number.isFinite(e.value), n = /* @__PURE__ */ C(d, {
|
|
387
|
+
id: e.id,
|
|
388
|
+
className: e.className ? `${M.numberField} ${e.className}` : M.numberField,
|
|
389
|
+
value: t ? e.value : NaN,
|
|
390
|
+
placeholder: e.mixed ? "Mixed" : e.placeholder,
|
|
391
|
+
minValue: e.min,
|
|
392
|
+
maxValue: e.max,
|
|
393
|
+
step: e.step,
|
|
394
|
+
accepts: e.accepts,
|
|
395
|
+
display: e.display,
|
|
396
|
+
steppers: e.steppers,
|
|
397
|
+
"aria-label": e.name,
|
|
398
|
+
onInput: e.onInput ?? e.onChange,
|
|
399
|
+
onChange: e.onInput ? e.onChange : G
|
|
400
|
+
});
|
|
401
|
+
return e.unit == null ? n : /* @__PURE__ */ w("span", {
|
|
402
|
+
className: M.fieldUnitGroup,
|
|
403
|
+
children: [n, W(e.unit, M.readoutUnit)]
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
function K(e) {
|
|
407
|
+
return {
|
|
408
|
+
min: e.min ?? 0,
|
|
409
|
+
max: e.max ?? 100,
|
|
410
|
+
step: e.step ?? 1
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
function q(t) {
|
|
414
|
+
let { min: n, max: r, step: a } = K(t), o = t.onInput ?? t.onChange, s = t.onInput ? t.onChange : void 0, c = ue(s && ((e) => s(Number(e)))), l = !t.mixed && typeof t.value == "number" && Number.isFinite(t.value) ? Math.min(Math.max(t.value, n), r) : n;
|
|
415
|
+
return /* @__PURE__ */ C("input", {
|
|
416
|
+
ref: c,
|
|
417
|
+
type: "range",
|
|
418
|
+
id: t.id,
|
|
419
|
+
className: t.className ? `${i.range} ${t.className}` : i.range,
|
|
420
|
+
"aria-label": t.name,
|
|
421
|
+
tabIndex: -1,
|
|
422
|
+
min: n,
|
|
423
|
+
max: r,
|
|
424
|
+
step: a,
|
|
425
|
+
value: l,
|
|
426
|
+
disabled: t.mixed,
|
|
427
|
+
onChange: (n) => {
|
|
428
|
+
let r = Number(n.target.value);
|
|
429
|
+
e("property-panel", "slider", {
|
|
430
|
+
name: t.name,
|
|
431
|
+
value: r
|
|
432
|
+
}), o(r);
|
|
433
|
+
}
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
function J(e) {
|
|
437
|
+
let { min: t, max: n, step: r } = K(e);
|
|
438
|
+
if (e.mixed || typeof e.value != "number" || !Number.isFinite(e.value)) return /* @__PURE__ */ C(S, { children: Y("—") });
|
|
439
|
+
let i = r >= 1 ? 0 : Math.min(6, Math.max(0, Math.ceil(-Math.log10(r)))), a = e.display ?? A({
|
|
440
|
+
places: i,
|
|
441
|
+
grouping: !1
|
|
442
|
+
});
|
|
443
|
+
return /* @__PURE__ */ C(fe, {
|
|
444
|
+
name: e.name,
|
|
445
|
+
value: e.value,
|
|
446
|
+
min: t,
|
|
447
|
+
max: n,
|
|
448
|
+
step: r,
|
|
449
|
+
display: a,
|
|
450
|
+
format: e.format,
|
|
451
|
+
unit: e.unit,
|
|
452
|
+
onCommit: (t) => {
|
|
453
|
+
e.onInput?.(t), e.onChange(t);
|
|
454
|
+
}
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
function Y(e) {
|
|
458
|
+
return typeof e != "string" && typeof e != "number" ? e : /* @__PURE__ */ C("span", {
|
|
459
|
+
className: M.readoutGroup,
|
|
460
|
+
children: /* @__PURE__ */ C("span", {
|
|
461
|
+
className: M.readoutText,
|
|
462
|
+
children: e
|
|
463
|
+
})
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
function fe({ name: e, value: t, min: n, max: r, step: i, display: a, format: o, unit: s, onCommit: c }) {
|
|
467
|
+
let [l, d] = O(null), f = (e) => o ? String(o(e)) : j(e, a).text, p = (e) => re(e, a), m = l === null ? f(t) : l, h = { "--wzl-property-readout-fit": `${Math.max(f(n).length, f(r).length)}ch` }, g = () => {
|
|
468
|
+
if (l !== null) {
|
|
469
|
+
let e = p(l);
|
|
470
|
+
Number.isFinite(e) && c(Math.min(r, Math.max(n, e)));
|
|
471
|
+
}
|
|
472
|
+
d(null);
|
|
473
|
+
};
|
|
474
|
+
return /* @__PURE__ */ w("span", {
|
|
475
|
+
className: M.readoutGroup,
|
|
476
|
+
children: [/* @__PURE__ */ C("input", {
|
|
477
|
+
type: "text",
|
|
478
|
+
role: "spinbutton",
|
|
479
|
+
"aria-label": e,
|
|
480
|
+
"aria-valuenow": t,
|
|
481
|
+
"aria-valuetext": o ? f(t) : j(t, a).spoken,
|
|
482
|
+
"aria-valuemin": n,
|
|
483
|
+
"aria-valuemax": r,
|
|
484
|
+
inputMode: "decimal",
|
|
485
|
+
className: M.readoutInput,
|
|
486
|
+
style: h,
|
|
487
|
+
value: m,
|
|
488
|
+
onFocus: (e) => {
|
|
489
|
+
d(f(t)), e.currentTarget.select();
|
|
490
|
+
},
|
|
491
|
+
onChange: (e) => d(e.target.value.replace(/-/g, "−")),
|
|
492
|
+
onBlur: g,
|
|
493
|
+
onClick: (e) => {
|
|
494
|
+
e.preventDefault(), e.stopPropagation(), e.currentTarget.focus();
|
|
495
|
+
},
|
|
496
|
+
onMouseDown: (e) => e.stopPropagation(),
|
|
497
|
+
onKeyDown: (e) => {
|
|
498
|
+
if (e.key === "Enter") g(), e.currentTarget.blur();
|
|
499
|
+
else if (e.key === "Escape") d(null), e.currentTarget.blur();
|
|
500
|
+
else {
|
|
501
|
+
let a = l === null ? t : p(l), o = u(e.key, Number.isFinite(a) ? a : t, {
|
|
502
|
+
step: i,
|
|
503
|
+
min: n,
|
|
504
|
+
max: r
|
|
505
|
+
});
|
|
506
|
+
if (o === null) return;
|
|
507
|
+
e.preventDefault(), c(o), d(null);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}), W(s, M.readoutUnit)]
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
function pe(e) {
|
|
514
|
+
let [t, n] = O(null), r = e.mixed ? "" : e.value ?? "", i = e.onInput !== void 0;
|
|
515
|
+
return {
|
|
516
|
+
shown: t ?? r,
|
|
517
|
+
type: (t) => {
|
|
518
|
+
if (!i) {
|
|
519
|
+
e.onChange(t);
|
|
520
|
+
return;
|
|
521
|
+
}
|
|
522
|
+
n(t), e.onInput?.(t);
|
|
523
|
+
},
|
|
524
|
+
settle: () => {
|
|
525
|
+
t !== null && t !== r && e.onChange(t), n(null);
|
|
526
|
+
}
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
function me(e) {
|
|
530
|
+
let t = pe(e), n = e.mixed ? "Mixed" : e.placeholder;
|
|
531
|
+
return e.control === "textarea" ? /* @__PURE__ */ C("textarea", {
|
|
532
|
+
id: e.id,
|
|
533
|
+
className: e.className ? `${M.textarea} ${e.className}` : M.textarea,
|
|
534
|
+
"aria-label": e.name,
|
|
535
|
+
value: t.shown,
|
|
536
|
+
placeholder: n,
|
|
537
|
+
maxLength: e.maxLength,
|
|
538
|
+
rows: 3,
|
|
539
|
+
onChange: (e) => t.type(e.target.value),
|
|
540
|
+
onBlur: t.settle
|
|
541
|
+
}) : /* @__PURE__ */ C(l, {
|
|
542
|
+
id: e.id,
|
|
543
|
+
className: e.className ? `${M.textField} ${e.className}` : M.textField,
|
|
544
|
+
value: t.shown,
|
|
545
|
+
placeholder: n,
|
|
546
|
+
maxLength: e.maxLength,
|
|
547
|
+
"aria-label": e.name,
|
|
548
|
+
onChange: t.type,
|
|
549
|
+
onBlur: t.settle,
|
|
550
|
+
onKeyDown: (e) => {
|
|
551
|
+
e.key === "Enter" && e.target.blur();
|
|
552
|
+
}
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
function X(e) {
|
|
556
|
+
return typeof e == "string" ? e : void 0;
|
|
557
|
+
}
|
|
558
|
+
function Z(e) {
|
|
559
|
+
return e == null || typeof e == "string" || typeof e == "number" ? void 0 : e;
|
|
560
|
+
}
|
|
561
|
+
function Q(e) {
|
|
562
|
+
return e.glyph === void 0 || e.glyph === null ? void 0 : e.label;
|
|
563
|
+
}
|
|
564
|
+
function he(t) {
|
|
565
|
+
let n = !t.mixed && t.options.some((e) => e.value === t.value) ? t.value : null;
|
|
566
|
+
if (t.control === "radio") return /* @__PURE__ */ C(h, {
|
|
567
|
+
className: t.className,
|
|
568
|
+
value: n,
|
|
569
|
+
onChange: t.onChange,
|
|
570
|
+
"aria-label": t.name,
|
|
571
|
+
children: t.options.map((e) => /* @__PURE__ */ C(g, {
|
|
572
|
+
value: e.value,
|
|
573
|
+
isDisabled: e.disabled,
|
|
574
|
+
children: e.label
|
|
575
|
+
}, e.value))
|
|
576
|
+
});
|
|
577
|
+
if (t.control === "toggle" && t.onClear) {
|
|
578
|
+
let { onClear: e } = t, r = n === null ? [] : [n];
|
|
579
|
+
return /* @__PURE__ */ C(f, {
|
|
580
|
+
mode: "multiple",
|
|
581
|
+
size: "sm",
|
|
582
|
+
variant: "flat",
|
|
583
|
+
className: t.className ? `${M.toggleBar} ${t.className}` : M.toggleBar,
|
|
584
|
+
ariaLabel: t.name,
|
|
585
|
+
items: t.options.map((e) => ({
|
|
586
|
+
value: e.value,
|
|
587
|
+
label: e.glyph ?? e.label,
|
|
588
|
+
ariaLabel: X(e.label),
|
|
589
|
+
tooltip: Q(e),
|
|
590
|
+
disabled: e.disabled
|
|
591
|
+
})),
|
|
592
|
+
value: r,
|
|
593
|
+
mixedValues: t.mixed ? t.options.map((e) => e.value) : [],
|
|
594
|
+
onChange: (n) => {
|
|
595
|
+
let i = n.find((e) => !r.includes(e));
|
|
596
|
+
i === void 0 ? e() : t.onChange(i);
|
|
597
|
+
}
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
return t.control === "toggle" ? /* @__PURE__ */ C(f, {
|
|
601
|
+
size: "sm",
|
|
602
|
+
variant: "flat",
|
|
603
|
+
className: t.className ? `${M.toggleBar} ${t.className}` : M.toggleBar,
|
|
604
|
+
ariaLabel: t.name,
|
|
605
|
+
items: t.options.map((e) => ({
|
|
606
|
+
value: e.value,
|
|
607
|
+
label: e.glyph ?? e.label,
|
|
608
|
+
ariaLabel: X(e.label),
|
|
609
|
+
tooltip: Q(e),
|
|
610
|
+
disabled: e.disabled
|
|
611
|
+
})),
|
|
612
|
+
value: n,
|
|
613
|
+
onChange: (e) => {
|
|
614
|
+
e !== null && t.onChange(e);
|
|
615
|
+
}
|
|
616
|
+
}) : /* @__PURE__ */ C(o, {
|
|
617
|
+
className: t.className ? `${M.select} ${t.className}` : M.select,
|
|
618
|
+
triggerId: t.id,
|
|
619
|
+
"aria-label": t.name,
|
|
620
|
+
placeholder: t.mixed ? "Mixed" : t.placeholder ?? (t.unset ? "—" : "Choose option…"),
|
|
621
|
+
selectedKey: n,
|
|
622
|
+
options: t.options.map((e) => ({
|
|
623
|
+
value: e.value,
|
|
624
|
+
label: e.label,
|
|
625
|
+
icon: Z(e.glyph),
|
|
626
|
+
isDisabled: e.disabled
|
|
627
|
+
})),
|
|
628
|
+
onSelectionChange: (n) => {
|
|
629
|
+
e("property-panel", "select", {
|
|
630
|
+
name: t.name,
|
|
631
|
+
value: n
|
|
632
|
+
}), t.onChange(n);
|
|
633
|
+
}
|
|
634
|
+
});
|
|
635
|
+
}
|
|
636
|
+
function $(e) {
|
|
637
|
+
let t = b(e?.trim() ?? "");
|
|
638
|
+
return /^#[0-9a-f]{8}$/i.test(t) ? {
|
|
639
|
+
rgb: t.slice(0, 7).toLowerCase(),
|
|
640
|
+
alpha: y(t)
|
|
641
|
+
} : {
|
|
642
|
+
rgb: "#000000",
|
|
643
|
+
alpha: 1
|
|
644
|
+
};
|
|
645
|
+
}
|
|
646
|
+
function ge(e) {
|
|
647
|
+
let t = e.alpha !== void 0 && e.alpha !== !1, n = typeof e.alpha == "number", r = $(e.value), i = n ? e.alpha : r.alpha, o = (e, t) => (a) => {
|
|
648
|
+
if (!n) {
|
|
649
|
+
e(a);
|
|
650
|
+
return;
|
|
651
|
+
}
|
|
652
|
+
let o = $(a);
|
|
653
|
+
(o.rgb !== r.rgb || !t) && e(o.rgb);
|
|
654
|
+
let s = Math.round(o.alpha * 100) / 100;
|
|
655
|
+
s !== Math.round(i * 100) / 100 && t?.(s);
|
|
656
|
+
}, s = e.onInput !== void 0 || e.onAlphaInput !== void 0, c = o(e.onInput ?? e.onChange, e.onAlphaInput ?? e.onAlphaChange), l = s ? o(e.onChange, e.onAlphaChange) : G;
|
|
657
|
+
return /* @__PURE__ */ C(a, {
|
|
658
|
+
id: e.id,
|
|
659
|
+
className: e.className ? `${M.colorField} ${e.className}` : M.colorField,
|
|
660
|
+
value: e.mixed ? void 0 : t ? x(r.rgb, i) : e.value ?? "#000000",
|
|
661
|
+
mixed: e.mixed,
|
|
662
|
+
alpha: t,
|
|
663
|
+
alphaDisabled: e.alphaDisabled,
|
|
664
|
+
onInput: c,
|
|
665
|
+
onChange: l,
|
|
666
|
+
"aria-label": e.name
|
|
667
|
+
});
|
|
668
|
+
}
|
|
669
|
+
function _e(e) {
|
|
670
|
+
let t = e.control === "inline" ? p : m;
|
|
671
|
+
return /* @__PURE__ */ C(t, {
|
|
672
|
+
className: e.className,
|
|
673
|
+
value: e.value,
|
|
674
|
+
mixed: e.mixed,
|
|
675
|
+
unset: e.unset,
|
|
676
|
+
kinds: e.kinds,
|
|
677
|
+
allowNone: e.allowNone,
|
|
678
|
+
onChange: e.onChange,
|
|
679
|
+
onInput: e.onInput,
|
|
680
|
+
"aria-label": e.name
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
//#endregion
|
|
684
|
+
export { le as a, ce as c, se as i, N as l, R as n, oe as o, Z as r, F as s, z as t, M as u };
|
|
685
|
+
|
|
686
|
+
//# sourceMappingURL=PropertyField-CV_Gw57S.js.map
|