@weasel-js/ui 1.5.1 → 1.5.2
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-GZdcfdQL.js → ActionBar-CLwiY3Jg.js} +5 -5
- package/dist/chunks/ActionBar-CLwiY3Jg.js.map +1 -0
- package/dist/chunks/{ActionsBar-Fhx_40iP.js → ActionsBar-D84a4eGy.js} +2 -2
- package/dist/chunks/{ActionsBar-Fhx_40iP.js.map → ActionsBar-D84a4eGy.js.map} +1 -1
- package/dist/chunks/{Badge-Bf8Rd1R6.js → Badge-CW9pBPFl.js} +5 -5
- package/dist/chunks/Badge-CW9pBPFl.js.map +1 -0
- package/dist/chunks/{BandEditor-D8I5Uun-.js → BandEditor-jY-PFKY6.js} +12 -12
- package/dist/chunks/BandEditor-jY-PFKY6.js.map +1 -0
- package/dist/chunks/{Button-CExdkQcU.js → Button-DRSApvnK.js} +15 -15
- package/dist/chunks/Button-DRSApvnK.js.map +1 -0
- package/dist/chunks/{Callout-cx5_CWcW.js → Callout-DrNu-9Qr.js} +12 -12
- package/dist/chunks/Callout-DrNu-9Qr.js.map +1 -0
- package/dist/chunks/{Checkbox-BZZsPaVF.js → Checkbox-BOsDAY2F.js} +5 -5
- package/dist/chunks/Checkbox-BOsDAY2F.js.map +1 -0
- package/dist/chunks/{ColorField-YVf8irfr.js → ColorField-BYzgZM9o.js} +6 -6
- package/dist/chunks/ColorField-BYzgZM9o.js.map +1 -0
- package/dist/chunks/{ComboBox-D57tNYDD.js → ComboBox-Cz3f0Y_8.js} +13 -13
- package/dist/chunks/ComboBox-Cz3f0Y_8.js.map +1 -0
- package/dist/chunks/{CurveEditor-BXiMoN9d.js → CurveEditor-DXwSP-iA.js} +2 -2
- package/dist/chunks/{CurveEditor-BXiMoN9d.js.map → CurveEditor-DXwSP-iA.js.map} +1 -1
- package/dist/chunks/{DataGrid-BVdDMZkQ.js → DataGrid-C8KrYtw7.js} +11 -11
- package/dist/chunks/DataGrid-C8KrYtw7.js.map +1 -0
- package/dist/chunks/{DetentSlider-BWNSv07Z.js → DetentSlider-CAubVX0J.js} +2 -2
- package/dist/chunks/{DetentSlider-BWNSv07Z.js.map → DetentSlider-CAubVX0J.js.map} +1 -1
- package/dist/chunks/{Dialog-DuOzsR2g.js → Dialog-fGqqQ6o_.js} +9 -9
- package/dist/chunks/Dialog-fGqqQ6o_.js.map +1 -0
- package/dist/chunks/{Disclosure-9UgDzc7Z.js → Disclosure-CILDfWsU.js} +6 -6
- package/dist/chunks/Disclosure-CILDfWsU.js.map +1 -0
- package/dist/chunks/{Field-BNqvUJfg.js → Field-DWnV8WZY.js} +6 -6
- package/dist/chunks/Field-DWnV8WZY.js.map +1 -0
- package/dist/chunks/{FontFamilySelect-CO19kyOO.js → FontFamilySelect-DxfgTC3G.js} +2 -2
- package/dist/chunks/{FontFamilySelect-CO19kyOO.js.map → FontFamilySelect-DxfgTC3G.js.map} +1 -1
- package/dist/chunks/{GradientEditor-B_ymIr4Q.js → GradientEditor-rRBmf3G0.js} +7 -7
- package/dist/chunks/GradientEditor-rRBmf3G0.js.map +1 -0
- package/dist/chunks/{Icon-QhLhaGFe.js → Icon-DT0x6HaQ.js} +23 -2
- package/dist/chunks/Icon-DT0x6HaQ.js.map +1 -0
- package/dist/chunks/{Input-B9Vh7ASP.js → Input-DbMKpkXy.js} +5 -5
- package/dist/chunks/Input-DbMKpkXy.js.map +1 -0
- package/dist/chunks/{ItemList-BZJQReXD.js → ItemList-B9zYb0GE.js} +7 -7
- package/dist/chunks/ItemList-B9zYb0GE.js.map +1 -0
- package/dist/chunks/{Jog-BYrxbAQU.js → Jog-DkkTlL3_.js} +8 -8
- package/dist/chunks/Jog-DkkTlL3_.js.map +1 -0
- package/dist/chunks/{Keycaps-CGNQV2Pz.js → Keycaps-DunVpejA.js} +5 -5
- package/dist/chunks/{Keycaps-CGNQV2Pz.js.map → Keycaps-DunVpejA.js.map} +1 -1
- package/dist/chunks/{LayerStack-DOylrQcm.js → LayerStack-CfQ6GsRz.js} +18 -18
- package/dist/chunks/LayerStack-CfQ6GsRz.js.map +1 -0
- package/dist/chunks/{MenuButton-DGE-0DP0.js → MenuButton-C_4nox39.js} +7 -7
- package/dist/chunks/MenuButton-C_4nox39.js.map +1 -0
- package/dist/chunks/{MeshEditor-CHoGQ9K8.js → MeshEditor-Bipz-Ocl.js} +8 -8
- package/dist/chunks/MeshEditor-Bipz-Ocl.js.map +1 -0
- package/dist/chunks/{NumberField-CQzS6TjF.js → NumberField-CCjEDZCg.js} +9 -9
- package/dist/chunks/NumberField-CCjEDZCg.js.map +1 -0
- package/dist/chunks/{OptionsBar-BWaYG_OH.js → OptionsBar-DeQ-vUeZ.js} +2 -2
- package/dist/chunks/{OptionsBar-BWaYG_OH.js.map → OptionsBar-DeQ-vUeZ.js.map} +1 -1
- package/dist/chunks/{PaintField-BVYMu3OI.js → PaintField-jBOJ32rL.js} +8 -8
- package/dist/chunks/PaintField-jBOJ32rL.js.map +1 -0
- package/dist/chunks/{PaintInput-BzAHCKro.js → PaintInput-Qs7Rul5R.js} +10 -10
- package/dist/chunks/PaintInput-Qs7Rul5R.js.map +1 -0
- package/dist/chunks/{PatternPicker-C4OryrYi.js → PatternPicker-BMpXWboq.js} +6 -6
- package/dist/chunks/PatternPicker-BMpXWboq.js.map +1 -0
- package/dist/chunks/{Plot2D-Czvyt_vG.js → Plot2D-CXf_f7QD.js} +1 -1
- package/dist/chunks/{Plot2D-Czvyt_vG.js.map → Plot2D-CXf_f7QD.js.map} +1 -1
- package/dist/chunks/{PointPlotter-Xvb98GwB.js → PointPlotter-S_gz7VYt.js} +2 -2
- package/dist/chunks/{PointPlotter-Xvb98GwB.js.map → PointPlotter-S_gz7VYt.js.map} +1 -1
- package/dist/chunks/{Powerline-B_EH-7Z-.js → Powerline-Ak5AWUlK.js} +5 -5
- package/dist/chunks/Powerline-Ak5AWUlK.js.map +1 -0
- package/dist/chunks/Prefs-CNC8tzyN.js +308 -0
- package/dist/chunks/Prefs-CNC8tzyN.js.map +1 -0
- package/dist/chunks/{Properties-B3KU69NI.js → Properties-Rnb6TAbN.js} +230 -213
- package/dist/chunks/Properties-Rnb6TAbN.js.map +1 -0
- package/dist/chunks/{RadioGroup-C6xpdQNg.js → RadioGroup-CsVp3SEu.js} +6 -6
- package/dist/chunks/RadioGroup-CsVp3SEu.js.map +1 -0
- package/dist/chunks/{RangeSlider-CzgeGLVS.js → RangeSlider-DNr-pJpZ.js} +8 -8
- package/dist/chunks/RangeSlider-DNr-pJpZ.js.map +1 -0
- package/dist/chunks/{ResizeHandle-1Ey8AOij.js → ResizeHandle-RXFf5fXr.js} +1 -1
- package/dist/chunks/{ResizeHandle-1Ey8AOij.js.map → ResizeHandle-RXFf5fXr.js.map} +1 -1
- package/dist/chunks/Select-BEope086.js +190 -0
- package/dist/chunks/Select-BEope086.js.map +1 -0
- package/dist/chunks/SelectionPanel-CEbLS-0D.js +102 -0
- package/dist/chunks/SelectionPanel-CEbLS-0D.js.map +1 -0
- package/dist/chunks/{Sidebar-BlUjn8lD.js → Sidebar-qn_oSCNX.js} +4 -4
- package/dist/chunks/Sidebar-qn_oSCNX.js.map +1 -0
- package/dist/chunks/{SidebarPanel-BqHfz6VK.js → SidebarPanel-Bs6V21hg.js} +12 -12
- package/dist/chunks/SidebarPanel-Bs6V21hg.js.map +1 -0
- package/dist/chunks/{Slider-B2ywUZH6.js → Slider-CIIrqiFS.js} +18 -18
- package/dist/chunks/Slider-CIIrqiFS.js.map +1 -0
- package/dist/chunks/{StatusBar-BFt7Yw5O.js → StatusBar-B4L15DSm.js} +6 -6
- package/dist/chunks/StatusBar-B4L15DSm.js.map +1 -0
- package/dist/chunks/{Switch-Om3t3ASc.js → Switch-DH5POG0T.js} +5 -5
- package/dist/chunks/Switch-DH5POG0T.js.map +1 -0
- package/dist/chunks/{Tabs-EAvYywil.js → Tabs-BFHikpml.js} +5 -5
- package/dist/chunks/Tabs-BFHikpml.js.map +1 -0
- package/dist/chunks/{Timeline-BEyKaBXl.js → Timeline-DNKY_yiK.js} +40 -40
- package/dist/chunks/Timeline-DNKY_yiK.js.map +1 -0
- package/dist/chunks/{Toast-iqLDD_XZ.js → Toast-CI1UDuK6.js} +15 -15
- package/dist/chunks/Toast-CI1UDuK6.js.map +1 -0
- package/dist/chunks/{ToggleBar--9As2PWG.js → ToggleBar-CClus5Cd.js} +8 -8
- package/dist/chunks/ToggleBar-CClus5Cd.js.map +1 -0
- package/dist/chunks/TokenPanel-BPHq24dc.js +634 -0
- package/dist/chunks/TokenPanel-BPHq24dc.js.map +1 -0
- package/dist/chunks/{ToolButton-Dd-1T5aX.js → ToolButton-9QzJCmuM.js} +7 -7
- package/dist/chunks/ToolButton-9QzJCmuM.js.map +1 -0
- package/dist/chunks/{ToolGroup-BBI-W-Gm.js → ToolGroup-BJiDrH_i.js} +3 -3
- package/dist/chunks/ToolGroup-BJiDrH_i.js.map +1 -0
- package/dist/chunks/ToolOptionsBar-CAM6RcUH.js +85 -0
- package/dist/chunks/ToolOptionsBar-CAM6RcUH.js.map +1 -0
- package/dist/chunks/{ToolPalette-BmTDDpmz.js → ToolPalette-DGkKwE7D.js} +8 -8
- package/dist/chunks/ToolPalette-DGkKwE7D.js.map +1 -0
- package/dist/chunks/{Tooltip-BHre_vbI.js → Tooltip-C4YBczLq.js} +3 -3
- package/dist/chunks/Tooltip-C4YBczLq.js.map +1 -0
- package/dist/chunks/{createKeyframeLayer-7j7ukrSx.js → createKeyframeLayer-DKtO0Sw_.js} +3 -3
- package/dist/chunks/{createKeyframeLayer-7j7ukrSx.js.map → createKeyframeLayer-DKtO0Sw_.js.map} +1 -1
- package/dist/chunks/{icons-Btrs-JD7.js → icons-DFLytcui.js} +2 -2
- package/dist/chunks/{icons-Btrs-JD7.js.map → icons-DFLytcui.js.map} +1 -1
- package/dist/chunks/model-13kZ_-mE.js +483 -0
- package/dist/chunks/model-13kZ_-mE.js.map +1 -0
- package/dist/chunks/number-BHz66zQO.js +89 -0
- package/dist/chunks/number-BHz66zQO.js.map +1 -0
- package/dist/chunks/{schema-MCVT1MLv.js → schema-Dft4Cu2p.js} +1 -1
- package/dist/chunks/schema-Dft4Cu2p.js.map +1 -0
- package/dist/chunks/segmentedControl.module-DS72X1ns.js +11 -0
- package/dist/chunks/segmentedControl.module-DS72X1ns.js.map +1 -0
- package/dist/chunks/{snap-B0WQwetQ.js → snap-CEjuWOhN.js} +1 -1
- package/dist/chunks/{snap-B0WQwetQ.js.map → snap-CEjuWOhN.js.map} +1 -1
- package/dist/chunks/useRovingTabIndex-Dkpf_KhN.js.map +1 -1
- package/dist/color/oklch.d.ts +2 -1
- package/dist/color/oklch.d.ts.map +1 -1
- package/dist/components/ActionBar/index.js +1 -1
- package/dist/components/ActionsBar/index.js +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/BandEditor/index.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Callout/index.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/ColorField/index.js +1 -1
- package/dist/components/ComboBox/index.js +1 -1
- package/dist/components/CurveEditor/index.js +3 -3
- package/dist/components/DataGrid/index.js +1 -1
- package/dist/components/DetentSlider/index.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/Disclosure/index.js +1 -1
- package/dist/components/Field/index.js +1 -1
- package/dist/components/FontFamilySelect/index.js +1 -1
- package/dist/components/GradientEditor/index.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/ItemList/index.js +1 -1
- package/dist/components/Jog/index.js +1 -1
- package/dist/components/Keycaps/index.js +1 -1
- package/dist/components/LayerStack/index.js +1 -1
- package/dist/components/MenuButton/index.js +1 -1
- package/dist/components/MeshEditor/index.js +1 -1
- package/dist/components/NumberField/UnitField.d.ts +2 -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/index.js +1 -1
- package/dist/components/Powerline/index.js +2 -2
- package/dist/components/Prefs/index.js +2 -2
- package/dist/components/Prefs/schema.d.ts +2 -1
- package/dist/components/Prefs/schema.d.ts.map +1 -1
- package/dist/components/Properties/PropertyGroup.d.ts +7 -1
- package/dist/components/Properties/PropertyGroup.d.ts.map +1 -1
- package/dist/components/Properties/PropertyPanel.d.ts +36 -38
- package/dist/components/Properties/PropertyPanel.d.ts.map +1 -1
- package/dist/components/Properties/index.d.ts +2 -4
- package/dist/components/Properties/index.d.ts.map +1 -1
- package/dist/components/Properties/index.js +2 -2
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/RangeSlider/index.js +1 -1
- package/dist/components/ResizeHandle/index.js +1 -1
- package/dist/components/Select/Select.d.ts +18 -0
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/SelectionPanel/SelectionPanel.d.ts +3 -50
- package/dist/components/SelectionPanel/SelectionPanel.d.ts.map +1 -1
- package/dist/components/SelectionPanel/index.js +3 -2
- package/dist/components/SelectionPanel/model.d.ts +4 -1
- package/dist/components/SelectionPanel/model.d.ts.map +1 -1
- package/dist/components/SelectionPanel/renderLeaf.d.ts +106 -0
- package/dist/components/SelectionPanel/renderLeaf.d.ts.map +1 -0
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/SidebarPanel/index.js +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/StatusBar/index.js +1 -1
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Timeline/index.js +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/ToggleBar/index.js +1 -1
- package/dist/components/TokenPanel/TokenPanel.d.ts +10 -4
- package/dist/components/TokenPanel/TokenPanel.d.ts.map +1 -1
- package/dist/components/TokenPanel/index.d.ts +2 -2
- package/dist/components/TokenPanel/index.d.ts.map +1 -1
- package/dist/components/TokenPanel/index.js +2 -2
- package/dist/components/TokenPanel/tokenTypes.d.ts +24 -0
- package/dist/components/TokenPanel/tokenTypes.d.ts.map +1 -1
- package/dist/components/ToolButton/index.js +1 -1
- package/dist/components/ToolGroup/index.js +1 -1
- package/dist/components/ToolOptionsBar/ToolOptionsBar.d.ts +29 -18
- 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 +5 -4
- package/dist/components/ToolPalette/ToolPalette.d.ts.map +1 -1
- package/dist/components/ToolPalette/index.js +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/format/number.d.ts +10 -1
- package/dist/format/number.d.ts.map +1 -1
- package/dist/icons/paths.d.ts +9 -1
- package/dist/icons/paths.d.ts.map +1 -1
- package/dist/index.js +69 -75
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/useRovingTabIndex.d.ts +7 -5
- package/dist/useRovingTabIndex.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/chunks/ActionBar-GZdcfdQL.js.map +0 -1
- package/dist/chunks/Badge-Bf8Rd1R6.js.map +0 -1
- package/dist/chunks/BandEditor-D8I5Uun-.js.map +0 -1
- package/dist/chunks/Button-CExdkQcU.js.map +0 -1
- package/dist/chunks/Callout-cx5_CWcW.js.map +0 -1
- package/dist/chunks/Checkbox-BZZsPaVF.js.map +0 -1
- package/dist/chunks/ColorField-YVf8irfr.js.map +0 -1
- package/dist/chunks/ComboBox-D57tNYDD.js.map +0 -1
- package/dist/chunks/DataGrid-BVdDMZkQ.js.map +0 -1
- package/dist/chunks/Dialog-DuOzsR2g.js.map +0 -1
- package/dist/chunks/Disclosure-9UgDzc7Z.js.map +0 -1
- package/dist/chunks/Field-BNqvUJfg.js.map +0 -1
- package/dist/chunks/GradientEditor-B_ymIr4Q.js.map +0 -1
- package/dist/chunks/Icon-QhLhaGFe.js.map +0 -1
- package/dist/chunks/Input-B9Vh7ASP.js.map +0 -1
- package/dist/chunks/ItemList-BZJQReXD.js.map +0 -1
- package/dist/chunks/Jog-BYrxbAQU.js.map +0 -1
- package/dist/chunks/LayerStack-DOylrQcm.js.map +0 -1
- package/dist/chunks/MenuButton-DGE-0DP0.js.map +0 -1
- package/dist/chunks/MeshEditor-CHoGQ9K8.js.map +0 -1
- package/dist/chunks/NumberField-CQzS6TjF.js.map +0 -1
- package/dist/chunks/PaintField-BVYMu3OI.js.map +0 -1
- package/dist/chunks/PaintInput-BzAHCKro.js.map +0 -1
- package/dist/chunks/PatternPicker-C4OryrYi.js.map +0 -1
- package/dist/chunks/Powerline-B_EH-7Z-.js.map +0 -1
- package/dist/chunks/Prefs-FuaJBs3t.js +0 -308
- package/dist/chunks/Prefs-FuaJBs3t.js.map +0 -1
- package/dist/chunks/Properties-B3KU69NI.js.map +0 -1
- package/dist/chunks/RadioGroup-C6xpdQNg.js.map +0 -1
- package/dist/chunks/RangeSlider-CzgeGLVS.js.map +0 -1
- package/dist/chunks/Select-BMYVh10x.js +0 -127
- package/dist/chunks/Select-BMYVh10x.js.map +0 -1
- package/dist/chunks/SelectionPanel-DTpcQidl.js +0 -572
- package/dist/chunks/SelectionPanel-DTpcQidl.js.map +0 -1
- package/dist/chunks/Sidebar-BlUjn8lD.js.map +0 -1
- package/dist/chunks/SidebarPanel-BqHfz6VK.js.map +0 -1
- package/dist/chunks/Slider-B2ywUZH6.js.map +0 -1
- package/dist/chunks/StatusBar-BFt7Yw5O.js.map +0 -1
- package/dist/chunks/Switch-Om3t3ASc.js.map +0 -1
- package/dist/chunks/Tabs-EAvYywil.js.map +0 -1
- package/dist/chunks/Timeline-BEyKaBXl.js.map +0 -1
- package/dist/chunks/Toast-iqLDD_XZ.js.map +0 -1
- package/dist/chunks/ToggleBar--9As2PWG.js.map +0 -1
- package/dist/chunks/TokenPanel-BL9hlq7x.js +0 -374
- package/dist/chunks/TokenPanel-BL9hlq7x.js.map +0 -1
- package/dist/chunks/ToolButton-Dd-1T5aX.js.map +0 -1
- package/dist/chunks/ToolGroup-BBI-W-Gm.js.map +0 -1
- package/dist/chunks/ToolOptionsBar-B2xPWzJf.js +0 -27
- package/dist/chunks/ToolOptionsBar-B2xPWzJf.js.map +0 -1
- package/dist/chunks/ToolPalette-BmTDDpmz.js.map +0 -1
- package/dist/chunks/Tooltip-BHre_vbI.js.map +0 -1
- package/dist/chunks/number-f6PydOZK.js +0 -52
- package/dist/chunks/number-f6PydOZK.js.map +0 -1
- package/dist/chunks/schema-MCVT1MLv.js.map +0 -1
- package/dist/chunks/segmentedControl.module-DmeUMYe3.js +0 -11
- package/dist/chunks/segmentedControl.module-DmeUMYe3.js.map +0 -1
- package/dist/components/Properties/PinDot.d.ts +0 -18
- package/dist/components/Properties/PinDot.d.ts.map +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as e } from "./dlog-CMYiRF3Q.js";
|
|
2
|
-
import { n as t, t as n } from "./Tooltip-
|
|
3
|
-
import { n as r } from "./Disclosure-
|
|
4
|
-
import { a as i, n as a, r as o } from "./number-
|
|
2
|
+
import { n as t, t as n } from "./Tooltip-C4YBczLq.js";
|
|
3
|
+
import { n as r } from "./Disclosure-CILDfWsU.js";
|
|
4
|
+
import { a as i, n as a, r as o } from "./number-BHz66zQO.js";
|
|
5
5
|
import { t as s } from "./range.module-DSsOIq1R.js";
|
|
6
|
-
import { t as c } from "./Select-
|
|
7
|
-
import { t as l } from "./Switch-
|
|
8
|
-
import { n as u } from "./CurveEditor-
|
|
6
|
+
import { t as c } from "./Select-BEope086.js";
|
|
7
|
+
import { t as l } from "./Switch-DH5POG0T.js";
|
|
8
|
+
import { n as u } from "./CurveEditor-DXwSP-iA.js";
|
|
9
9
|
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
10
10
|
import { useCallback as m, useEffect as h, useId as g, useMemo as _, useRef as v, useState as y } from "react";
|
|
11
11
|
import { Focusable as b } from "react-aria-components";
|
|
12
12
|
var x = {
|
|
13
|
-
field: "
|
|
14
|
-
plot: "
|
|
15
|
-
marks: "
|
|
16
|
-
actions: "
|
|
17
|
-
action: "
|
|
13
|
+
field: "_field_18v33_1",
|
|
14
|
+
plot: "_plot_18v33_12",
|
|
15
|
+
marks: "_marks_18v33_17",
|
|
16
|
+
actions: "_actions_18v33_23",
|
|
17
|
+
action: "_action_18v33_23"
|
|
18
18
|
};
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/components/Properties/CurveField.tsx
|
|
@@ -156,105 +156,85 @@ function S({ values: t, min: n, max: r, step: i, width: a, height: o = 110, defa
|
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
var C = {
|
|
159
|
-
panel: "
|
|
160
|
-
list: "
|
|
161
|
-
row: "
|
|
162
|
-
group: "
|
|
163
|
-
subpanel: "
|
|
164
|
-
card: "
|
|
165
|
-
cardList: "
|
|
166
|
-
panelTitle: "
|
|
167
|
-
listPairs: "
|
|
168
|
-
rowColor: "
|
|
169
|
-
span: "
|
|
170
|
-
listOneUp: "
|
|
171
|
-
densityTight: "
|
|
172
|
-
densityNormal: "
|
|
173
|
-
densityRoomy: "
|
|
174
|
-
alignStart: "
|
|
175
|
-
alignCenter: "
|
|
176
|
-
alignEnd: "
|
|
177
|
-
alignBaseline: "
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
function w({ auto: e, label: t, onChange: n }) {
|
|
219
|
-
let r = typeof t == "string" ? t : "this setting", i = (t) => {
|
|
220
|
-
t.preventDefault(), t.stopPropagation(), n(!e);
|
|
221
|
-
};
|
|
222
|
-
return /* @__PURE__ */ f("span", {
|
|
223
|
-
role: "button",
|
|
224
|
-
tabIndex: 0,
|
|
225
|
-
className: e ? `${C.pin} ${C.pinAuto}` : C.pin,
|
|
226
|
-
"aria-pressed": !e,
|
|
227
|
-
"aria-label": `Pin ${r}`,
|
|
228
|
-
onClick: i,
|
|
229
|
-
onKeyDown: (e) => {
|
|
230
|
-
(e.key === "Enter" || e.key === " ") && i(e);
|
|
231
|
-
},
|
|
232
|
-
onMouseDown: (e) => e.stopPropagation()
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
//#endregion
|
|
236
|
-
//#region src/components/Properties/PropertyPanel.tsx
|
|
237
|
-
var T = {
|
|
159
|
+
panel: "_panel_f8jk4_9",
|
|
160
|
+
list: "_list_f8jk4_3",
|
|
161
|
+
row: "_row_f8jk4_4",
|
|
162
|
+
group: "_group_f8jk4_4",
|
|
163
|
+
subpanel: "_subpanel_f8jk4_3",
|
|
164
|
+
card: "_card_f8jk4_14",
|
|
165
|
+
cardList: "_cardList_f8jk4_15",
|
|
166
|
+
panelTitle: "_panelTitle_f8jk4_42",
|
|
167
|
+
listPairs: "_listPairs_f8jk4_3",
|
|
168
|
+
rowColor: "_rowColor_f8jk4_4",
|
|
169
|
+
span: "_span_f8jk4_82",
|
|
170
|
+
listOneUp: "_listOneUp_f8jk4_90",
|
|
171
|
+
densityTight: "_densityTight_f8jk4_101",
|
|
172
|
+
densityNormal: "_densityNormal_f8jk4_113",
|
|
173
|
+
densityRoomy: "_densityRoomy_f8jk4_125",
|
|
174
|
+
alignStart: "_alignStart_f8jk4_147",
|
|
175
|
+
alignCenter: "_alignCenter_f8jk4_152",
|
|
176
|
+
alignEnd: "_alignEnd_f8jk4_157",
|
|
177
|
+
alignBaseline: "_alignBaseline_f8jk4_162",
|
|
178
|
+
rowInline: "_rowInline_f8jk4_192",
|
|
179
|
+
rowLabel: "_rowLabel_f8jk4_198",
|
|
180
|
+
rowBlock: "_rowBlock_f8jk4_223",
|
|
181
|
+
rowCheckbox: "_rowCheckbox_f8jk4_224",
|
|
182
|
+
readout: "_readout_f8jk4_228",
|
|
183
|
+
readoutAfter: "_readoutAfter_f8jk4_240",
|
|
184
|
+
readoutText: "_readoutText_f8jk4_251",
|
|
185
|
+
help: "_help_f8jk4_268",
|
|
186
|
+
autoToggle: "_autoToggle_f8jk4_305",
|
|
187
|
+
readoutInput: "_readoutInput_f8jk4_246",
|
|
188
|
+
readoutGroup: "_readoutGroup_f8jk4_246",
|
|
189
|
+
readoutUnit: "_readoutUnit_f8jk4_381",
|
|
190
|
+
fieldUnitGroup: "_fieldUnitGroup_f8jk4_388",
|
|
191
|
+
toggle: "_toggle_f8jk4_427",
|
|
192
|
+
select: "_select_f8jk4_457",
|
|
193
|
+
alpha: "_alpha_f8jk4_597",
|
|
194
|
+
toggleButton: "_toggleButton_f8jk4_661",
|
|
195
|
+
toggleButtonSelected: "_toggleButtonSelected_f8jk4_687",
|
|
196
|
+
note: "_note_f8jk4_707",
|
|
197
|
+
groupTitle: "_groupTitle_f8jk4_715",
|
|
198
|
+
groupHead: "_groupHead_f8jk4_737",
|
|
199
|
+
groupBody: "_groupBody_f8jk4_4",
|
|
200
|
+
groupPairs: "_groupPairs_f8jk4_761",
|
|
201
|
+
groupOneUp: "_groupOneUp_f8jk4_774",
|
|
202
|
+
subpanelTitle: "_subpanelTitle_f8jk4_797",
|
|
203
|
+
cardDragging: "_cardDragging_f8jk4_841",
|
|
204
|
+
cardExpanded: "_cardExpanded_f8jk4_845",
|
|
205
|
+
cardAccented: "_cardAccented_f8jk4_849",
|
|
206
|
+
cardHead: "_cardHead_f8jk4_864",
|
|
207
|
+
cardHandle: "_cardHandle_f8jk4_885",
|
|
208
|
+
cardIndexBadge: "_cardIndexBadge_f8jk4_898",
|
|
209
|
+
cardTitle: "_cardTitle_f8jk4_916",
|
|
210
|
+
cardPrimary: "_cardPrimary_f8jk4_926",
|
|
211
|
+
cardRemove: "_cardRemove_f8jk4_941",
|
|
212
|
+
cardBody: "_cardBody_f8jk4_970",
|
|
213
|
+
cardListWrap: "_cardListWrap_f8jk4_982",
|
|
214
|
+
cardDropHint: "_cardDropHint_f8jk4_986",
|
|
215
|
+
cardListEmpty: "_cardListEmpty_f8jk4_994",
|
|
216
|
+
rowAuto: "_rowAuto_f8jk4_1012"
|
|
217
|
+
}, w = {
|
|
238
218
|
tight: C.densityTight,
|
|
239
219
|
normal: C.densityNormal,
|
|
240
220
|
roomy: C.densityRoomy
|
|
241
|
-
},
|
|
221
|
+
}, T = {
|
|
242
222
|
start: C.alignStart,
|
|
243
223
|
center: C.alignCenter,
|
|
244
224
|
end: C.alignEnd,
|
|
245
225
|
baseline: C.alignBaseline
|
|
246
226
|
};
|
|
247
|
-
function
|
|
227
|
+
function E(e, { density: t, align: n }, r) {
|
|
248
228
|
return [
|
|
249
229
|
e,
|
|
250
|
-
t &&
|
|
251
|
-
n &&
|
|
230
|
+
t && w[t],
|
|
231
|
+
n && T[n],
|
|
252
232
|
r
|
|
253
233
|
].filter(Boolean).join(" ");
|
|
254
234
|
}
|
|
255
|
-
function
|
|
235
|
+
function D({ title: e, children: t, className: n, density: r, align: i }) {
|
|
256
236
|
return /* @__PURE__ */ p("div", {
|
|
257
|
-
className:
|
|
237
|
+
className: E(C.panel, {
|
|
258
238
|
density: r,
|
|
259
239
|
align: i
|
|
260
240
|
}, n),
|
|
@@ -264,62 +244,94 @@ function O({ title: e, children: t, className: n, density: r, align: i }) {
|
|
|
264
244
|
}), t]
|
|
265
245
|
});
|
|
266
246
|
}
|
|
267
|
-
function
|
|
247
|
+
function O({ children: e, className: t, pack: n = "auto-color", density: r, align: i }) {
|
|
268
248
|
return /* @__PURE__ */ f("div", {
|
|
269
|
-
className:
|
|
249
|
+
className: E(`${C.list}${n === "pairs" ? ` ${C.listPairs}` : n === "one-up" ? ` ${C.listOneUp}` : ""}`, {
|
|
270
250
|
density: r,
|
|
271
251
|
align: i
|
|
272
252
|
}, t),
|
|
273
253
|
children: e
|
|
274
254
|
});
|
|
275
255
|
}
|
|
276
|
-
function
|
|
256
|
+
function k({ children: e, className: t }) {
|
|
277
257
|
return /* @__PURE__ */ f("div", {
|
|
278
258
|
className: t ? `${C.span} ${t}` : C.span,
|
|
279
259
|
children: e
|
|
280
260
|
});
|
|
281
261
|
}
|
|
282
|
-
function
|
|
283
|
-
|
|
262
|
+
function A({ children: e, className: t }) {
|
|
263
|
+
return /* @__PURE__ */ f("p", {
|
|
264
|
+
className: t ? `${C.note} ${t}` : C.note,
|
|
265
|
+
children: e
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
function j({ 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: m, onAutoChange: h }) {
|
|
269
|
+
let g = r === "color" ? C.rowColor : r === "checkbox" ? C.rowCheckbox : "", _ = r === "default" ? "block" : "inline", v = i ?? _, y = v === _ ? "" : v === "inline" ? C.rowInline : C.rowBlock, b = E([
|
|
284
270
|
C.row,
|
|
285
|
-
|
|
286
|
-
|
|
271
|
+
g,
|
|
272
|
+
y,
|
|
287
273
|
a && C.span,
|
|
288
274
|
m && C.rowAuto
|
|
289
275
|
].filter(Boolean).join(" "), {
|
|
290
276
|
density: u,
|
|
291
277
|
align: d
|
|
292
|
-
}, l), S = /* @__PURE__ */ p("span", {
|
|
278
|
+
}, l), x = v === "inline" && t != null, S = /* @__PURE__ */ p("span", {
|
|
293
279
|
className: C.rowLabel,
|
|
294
280
|
children: [
|
|
295
|
-
|
|
296
|
-
n ? /* @__PURE__ */ f(M, {
|
|
297
|
-
label: e,
|
|
298
|
-
description: n
|
|
299
|
-
}) : null,
|
|
300
|
-
h ? /* @__PURE__ */ f(w, {
|
|
281
|
+
h ? /* @__PURE__ */ f(M, {
|
|
301
282
|
auto: m ?? !1,
|
|
302
283
|
label: e,
|
|
303
284
|
onChange: h
|
|
285
|
+
}) : e,
|
|
286
|
+
n ? /* @__PURE__ */ f(N, {
|
|
287
|
+
label: e,
|
|
288
|
+
description: n
|
|
304
289
|
}) : null,
|
|
305
|
-
t != null && /* @__PURE__ */ f("em", {
|
|
290
|
+
t != null && !x && /* @__PURE__ */ f("em", {
|
|
306
291
|
className: C.readout,
|
|
307
292
|
children: t
|
|
308
293
|
})
|
|
309
294
|
]
|
|
310
|
-
})
|
|
295
|
+
}), w = x ? /* @__PURE__ */ f("em", {
|
|
296
|
+
className: `${C.readout} ${C.readoutAfter}`,
|
|
297
|
+
children: t
|
|
298
|
+
}) : null;
|
|
311
299
|
return c ? /* @__PURE__ */ p("div", {
|
|
312
|
-
className:
|
|
313
|
-
|
|
314
|
-
|
|
300
|
+
className: b,
|
|
301
|
+
children: [
|
|
302
|
+
S,
|
|
303
|
+
o,
|
|
304
|
+
w
|
|
305
|
+
]
|
|
315
306
|
}) : /* @__PURE__ */ p("label", {
|
|
316
|
-
className:
|
|
307
|
+
className: b,
|
|
317
308
|
htmlFor: s,
|
|
318
|
-
|
|
319
|
-
|
|
309
|
+
children: [
|
|
310
|
+
S,
|
|
311
|
+
o,
|
|
312
|
+
w
|
|
313
|
+
]
|
|
320
314
|
});
|
|
321
315
|
}
|
|
322
|
-
function M({
|
|
316
|
+
function M({ auto: e, label: t, onChange: n }) {
|
|
317
|
+
let r = typeof t == "string" ? t : "this setting", i = (t) => {
|
|
318
|
+
t.preventDefault(), t.stopPropagation(), n(!e);
|
|
319
|
+
};
|
|
320
|
+
return /* @__PURE__ */ f("span", {
|
|
321
|
+
role: "button",
|
|
322
|
+
tabIndex: 0,
|
|
323
|
+
className: C.autoToggle,
|
|
324
|
+
"aria-pressed": !e,
|
|
325
|
+
"aria-label": `Pin ${r}`,
|
|
326
|
+
onClick: i,
|
|
327
|
+
onKeyDown: (e) => {
|
|
328
|
+
(e.key === "Enter" || e.key === " ") && i(e);
|
|
329
|
+
},
|
|
330
|
+
onMouseDown: (e) => e.stopPropagation(),
|
|
331
|
+
children: t
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
function N({ label: e, description: r }) {
|
|
323
335
|
let i = typeof e == "string" ? e : "this setting";
|
|
324
336
|
return /* @__PURE__ */ p(t, { children: [/* @__PURE__ */ f(b, { children: /* @__PURE__ */ f("button", {
|
|
325
337
|
type: "button",
|
|
@@ -332,10 +344,10 @@ function M({ label: e, description: r }) {
|
|
|
332
344
|
children: "ⓘ"
|
|
333
345
|
}) }), /* @__PURE__ */ f(n, { children: r })] });
|
|
334
346
|
}
|
|
335
|
-
function
|
|
347
|
+
function P(e) {
|
|
336
348
|
return typeof e == "string" ? e : void 0;
|
|
337
349
|
}
|
|
338
|
-
function
|
|
350
|
+
function F(e) {
|
|
339
351
|
let t = v(null), n = v(e);
|
|
340
352
|
return h(() => {
|
|
341
353
|
n.current = e;
|
|
@@ -346,24 +358,24 @@ function P(e) {
|
|
|
346
358
|
return e.addEventListener("change", r), () => e.removeEventListener("change", r);
|
|
347
359
|
}, []), t;
|
|
348
360
|
}
|
|
349
|
-
function
|
|
350
|
-
let
|
|
361
|
+
function I({ label: t, value: n, min: r, max: i, step: c = 1, onChange: l, onInput: u, format: d, readout: p, notation: m, unit: h, layout: g, description: _, span: v, density: y, align: b, auto: x, onAutoChange: S }) {
|
|
362
|
+
let C = c >= 1 ? 0 : Math.min(6, Math.max(0, Math.ceil(-Math.log10(c)))), w = u ?? l, T = u ? l : void 0, E = F(T && ((e) => T(Number(e)))), D = d ?? (m === "compact" ? (e) => a(e, C) : (e) => o(e, {
|
|
351
363
|
useGrouping: !1,
|
|
352
|
-
minimumFractionDigits:
|
|
353
|
-
maximumFractionDigits:
|
|
364
|
+
minimumFractionDigits: C,
|
|
365
|
+
maximumFractionDigits: C
|
|
354
366
|
}));
|
|
355
367
|
return /* @__PURE__ */ f(j, {
|
|
356
368
|
span: v,
|
|
357
369
|
label: t,
|
|
358
|
-
readout: p ?? /* @__PURE__ */ f(
|
|
359
|
-
name:
|
|
370
|
+
readout: L(p) ?? /* @__PURE__ */ f(R, {
|
|
371
|
+
name: P(t),
|
|
360
372
|
value: n,
|
|
361
373
|
min: r,
|
|
362
374
|
max: i,
|
|
363
|
-
format:
|
|
375
|
+
format: D,
|
|
364
376
|
unit: h,
|
|
365
377
|
onCommit: (e) => {
|
|
366
|
-
|
|
378
|
+
w(e), T?.(e);
|
|
367
379
|
}
|
|
368
380
|
}),
|
|
369
381
|
layout: g,
|
|
@@ -372,11 +384,10 @@ function F({ label: t, value: n, min: r, max: i, step: c = 1, onChange: l, onInp
|
|
|
372
384
|
align: b,
|
|
373
385
|
auto: x,
|
|
374
386
|
onAutoChange: S,
|
|
375
|
-
"data-auto-path": C,
|
|
376
387
|
children: /* @__PURE__ */ f("input", {
|
|
377
|
-
ref:
|
|
388
|
+
ref: E,
|
|
378
389
|
type: "range",
|
|
379
|
-
"aria-label":
|
|
390
|
+
"aria-label": P(t),
|
|
380
391
|
className: s.range,
|
|
381
392
|
tabIndex: -1,
|
|
382
393
|
min: r,
|
|
@@ -388,12 +399,21 @@ function F({ label: t, value: n, min: r, max: i, step: c = 1, onChange: l, onInp
|
|
|
388
399
|
e("property-panel", "slider", {
|
|
389
400
|
label: t,
|
|
390
401
|
value: r
|
|
391
|
-
}),
|
|
402
|
+
}), w(r);
|
|
392
403
|
}
|
|
393
404
|
})
|
|
394
405
|
});
|
|
395
406
|
}
|
|
396
|
-
function
|
|
407
|
+
function L(e) {
|
|
408
|
+
return typeof e != "string" && typeof e != "number" ? e : /* @__PURE__ */ f("span", {
|
|
409
|
+
className: C.readoutGroup,
|
|
410
|
+
children: /* @__PURE__ */ f("span", {
|
|
411
|
+
className: C.readoutText,
|
|
412
|
+
children: e
|
|
413
|
+
})
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
function R({ name: e, value: t, min: n, max: r, format: a, unit: s, onCommit: c }) {
|
|
397
417
|
let [l, u] = y(null), d = (e) => a ? a(e) : o(e, {
|
|
398
418
|
useGrouping: !1,
|
|
399
419
|
maximumFractionDigits: 20
|
|
@@ -435,8 +455,8 @@ function I({ name: e, value: t, min: n, max: r, format: a, unit: s, onCommit: c
|
|
|
435
455
|
}), _]
|
|
436
456
|
});
|
|
437
457
|
}
|
|
438
|
-
function
|
|
439
|
-
let
|
|
458
|
+
function z({ label: e, readout: t, value: n, onChange: r, onInput: i, alpha: a, onAlphaChange: o, onAlphaInput: c, alphaDisabled: l, layout: u, description: d, span: m, density: h, align: _, auto: v, onAutoChange: y }) {
|
|
459
|
+
let b = a != null, x = i ?? r, S = F(i && ((e) => r(e))), w = c ?? o, T = F(c && o && ((e) => o(Number(e)))), E = g();
|
|
440
460
|
return /* @__PURE__ */ p(j, {
|
|
441
461
|
span: m,
|
|
442
462
|
label: e,
|
|
@@ -448,17 +468,16 @@ function L({ label: e, readout: t, value: n, onChange: r, onInput: i, alpha: a,
|
|
|
448
468
|
align: _,
|
|
449
469
|
auto: v,
|
|
450
470
|
onAutoChange: y,
|
|
451
|
-
|
|
452
|
-
htmlFor: D,
|
|
471
|
+
htmlFor: E,
|
|
453
472
|
children: [/* @__PURE__ */ f("input", {
|
|
454
|
-
ref:
|
|
455
|
-
id:
|
|
473
|
+
ref: S,
|
|
474
|
+
id: E,
|
|
456
475
|
type: "color",
|
|
457
|
-
"aria-label":
|
|
476
|
+
"aria-label": P(e),
|
|
458
477
|
value: n,
|
|
459
|
-
onChange: (e) =>
|
|
460
|
-
}),
|
|
461
|
-
ref:
|
|
478
|
+
onChange: (e) => x(e.target.value)
|
|
479
|
+
}), b && /* @__PURE__ */ f("input", {
|
|
480
|
+
ref: T,
|
|
462
481
|
type: "range",
|
|
463
482
|
"aria-label": typeof e == "string" ? `${e} opacity` : void 0,
|
|
464
483
|
className: `${s.range} ${s.alpha} ${C.alpha}`,
|
|
@@ -467,12 +486,12 @@ function L({ label: e, readout: t, value: n, onChange: r, onInput: i, alpha: a,
|
|
|
467
486
|
step: .01,
|
|
468
487
|
value: a,
|
|
469
488
|
disabled: l,
|
|
470
|
-
onChange: (e) =>
|
|
489
|
+
onChange: (e) => w?.(Number(e.target.value))
|
|
471
490
|
})]
|
|
472
491
|
});
|
|
473
492
|
}
|
|
474
|
-
function
|
|
475
|
-
let
|
|
493
|
+
function B({ label: e, readout: t, value: n, onChange: r, layout: i, span: a, description: o, density: s, align: c, auto: l, onAutoChange: u }) {
|
|
494
|
+
let d = g();
|
|
476
495
|
return /* @__PURE__ */ f(j, {
|
|
477
496
|
span: a,
|
|
478
497
|
label: e,
|
|
@@ -484,18 +503,17 @@ function R({ label: e, readout: t, value: n, onChange: r, layout: i, span: a, de
|
|
|
484
503
|
align: c,
|
|
485
504
|
auto: l,
|
|
486
505
|
onAutoChange: u,
|
|
487
|
-
|
|
488
|
-
htmlFor: p,
|
|
506
|
+
htmlFor: d,
|
|
489
507
|
children: /* @__PURE__ */ f("input", {
|
|
490
|
-
id:
|
|
508
|
+
id: d,
|
|
491
509
|
type: "checkbox",
|
|
492
|
-
"aria-label":
|
|
510
|
+
"aria-label": P(e),
|
|
493
511
|
checked: n === !0,
|
|
494
512
|
onChange: (e) => r(e.target.checked)
|
|
495
513
|
})
|
|
496
514
|
});
|
|
497
515
|
}
|
|
498
|
-
function
|
|
516
|
+
function V({ label: e, readout: t, value: n, onChange: r, layout: i, span: a, description: o, density: s, align: c, auto: u, onAutoChange: d }) {
|
|
499
517
|
return /* @__PURE__ */ f(j, {
|
|
500
518
|
group: !0,
|
|
501
519
|
span: a,
|
|
@@ -508,16 +526,15 @@ function z({ label: e, readout: t, value: n, onChange: r, layout: i, span: a, de
|
|
|
508
526
|
align: c,
|
|
509
527
|
auto: u,
|
|
510
528
|
onAutoChange: d,
|
|
511
|
-
"data-auto-path": p,
|
|
512
529
|
children: /* @__PURE__ */ f(l, {
|
|
513
|
-
"aria-label":
|
|
530
|
+
"aria-label": P(e),
|
|
514
531
|
isSelected: n === !0,
|
|
515
532
|
onChange: r
|
|
516
533
|
})
|
|
517
534
|
});
|
|
518
535
|
}
|
|
519
|
-
function
|
|
520
|
-
let
|
|
536
|
+
function H({ label: e, readout: t, value: n, onChange: r, placeholder: i, maxLength: a, layout: o, description: s, span: c, density: l, align: u, auto: d, onAutoChange: p }) {
|
|
537
|
+
let m = g();
|
|
521
538
|
return /* @__PURE__ */ f(j, {
|
|
522
539
|
span: c,
|
|
523
540
|
label: e,
|
|
@@ -528,12 +545,11 @@ function B({ label: e, readout: t, value: n, onChange: r, placeholder: i, maxLen
|
|
|
528
545
|
align: u,
|
|
529
546
|
auto: d,
|
|
530
547
|
onAutoChange: p,
|
|
531
|
-
|
|
532
|
-
htmlFor: h,
|
|
548
|
+
htmlFor: m,
|
|
533
549
|
children: /* @__PURE__ */ f("input", {
|
|
534
|
-
id:
|
|
550
|
+
id: m,
|
|
535
551
|
type: "text",
|
|
536
|
-
"aria-label":
|
|
552
|
+
"aria-label": P(e),
|
|
537
553
|
value: n ?? "",
|
|
538
554
|
placeholder: i,
|
|
539
555
|
maxLength: a,
|
|
@@ -541,16 +557,16 @@ function B({ label: e, readout: t, value: n, onChange: r, placeholder: i, maxLen
|
|
|
541
557
|
})
|
|
542
558
|
});
|
|
543
559
|
}
|
|
544
|
-
function
|
|
545
|
-
let
|
|
560
|
+
function U({ label: e, readout: t, value: n, onChange: r, onInput: i, min: a, max: o, step: s, placeholder: c, unit: l, layout: u, description: d, span: m, density: h, align: _, auto: v, onAutoChange: y }) {
|
|
561
|
+
let b = i ?? r, x = F(i && ((e) => {
|
|
546
562
|
if (e === "") return;
|
|
547
563
|
let t = Number(e);
|
|
548
564
|
Number.isFinite(t) && r(t);
|
|
549
|
-
})),
|
|
550
|
-
ref:
|
|
551
|
-
id:
|
|
565
|
+
})), S = g(), w = /* @__PURE__ */ f("input", {
|
|
566
|
+
ref: x,
|
|
567
|
+
id: S,
|
|
552
568
|
type: "number",
|
|
553
|
-
"aria-label":
|
|
569
|
+
"aria-label": P(e),
|
|
554
570
|
value: n ?? "",
|
|
555
571
|
min: a,
|
|
556
572
|
max: o,
|
|
@@ -560,7 +576,7 @@ function V({ label: e, readout: t, value: n, onChange: r, onInput: i, min: a, ma
|
|
|
560
576
|
let t = e.target.value;
|
|
561
577
|
if (t === "") return;
|
|
562
578
|
let n = Number(t);
|
|
563
|
-
Number.isFinite(n) &&
|
|
579
|
+
Number.isFinite(n) && b(n);
|
|
564
580
|
}
|
|
565
581
|
});
|
|
566
582
|
return /* @__PURE__ */ f(j, {
|
|
@@ -573,19 +589,18 @@ function V({ label: e, readout: t, value: n, onChange: r, onInput: i, min: a, ma
|
|
|
573
589
|
align: _,
|
|
574
590
|
auto: v,
|
|
575
591
|
onAutoChange: y,
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
children: l == null ? T : /* @__PURE__ */ p("span", {
|
|
592
|
+
htmlFor: S,
|
|
593
|
+
children: l == null ? w : /* @__PURE__ */ p("span", {
|
|
579
594
|
className: C.fieldUnitGroup,
|
|
580
|
-
children: [
|
|
595
|
+
children: [w, typeof l == "string" ? /* @__PURE__ */ f("span", {
|
|
581
596
|
className: C.readoutUnit,
|
|
582
597
|
children: l
|
|
583
598
|
}) : l]
|
|
584
599
|
})
|
|
585
600
|
});
|
|
586
601
|
}
|
|
587
|
-
function
|
|
588
|
-
let
|
|
602
|
+
function W({ label: t, readout: n, value: r, options: i, onChange: a, placeholder: o = "Choose option…", layout: s, description: l, span: u, density: d, align: p, auto: m, onAutoChange: h }) {
|
|
603
|
+
let _ = i.some((e) => e.value === r), v = g();
|
|
589
604
|
return /* @__PURE__ */ f(j, {
|
|
590
605
|
span: u,
|
|
591
606
|
label: t,
|
|
@@ -596,15 +611,14 @@ function H({ label: t, readout: n, value: r, options: i, onChange: a, placeholde
|
|
|
596
611
|
align: p,
|
|
597
612
|
auto: m,
|
|
598
613
|
onAutoChange: h,
|
|
599
|
-
|
|
600
|
-
htmlFor: y,
|
|
614
|
+
htmlFor: v,
|
|
601
615
|
children: /* @__PURE__ */ f(c, {
|
|
602
616
|
className: C.select,
|
|
603
617
|
variant: "bare",
|
|
604
|
-
triggerId:
|
|
605
|
-
"aria-label":
|
|
618
|
+
triggerId: v,
|
|
619
|
+
"aria-label": P(t),
|
|
606
620
|
placeholder: o,
|
|
607
|
-
selectedKey:
|
|
621
|
+
selectedKey: _ ? r : null,
|
|
608
622
|
options: i,
|
|
609
623
|
onSelectionChange: (n) => {
|
|
610
624
|
e("property-panel", "select", {
|
|
@@ -615,7 +629,7 @@ function H({ label: t, readout: n, value: r, options: i, onChange: a, placeholde
|
|
|
615
629
|
})
|
|
616
630
|
});
|
|
617
631
|
}
|
|
618
|
-
function
|
|
632
|
+
function G({ label: e, readout: t, value: n, options: r, onChange: i, layout: a, description: o, span: s, density: c, align: l, auto: u, onAutoChange: d }) {
|
|
619
633
|
return /* @__PURE__ */ f(j, {
|
|
620
634
|
group: !0,
|
|
621
635
|
span: s,
|
|
@@ -627,17 +641,16 @@ function U({ label: e, readout: t, value: n, options: r, onChange: i, layout: a,
|
|
|
627
641
|
align: l,
|
|
628
642
|
auto: u,
|
|
629
643
|
onAutoChange: d,
|
|
630
|
-
"data-auto-path": p,
|
|
631
644
|
children: /* @__PURE__ */ f("div", {
|
|
632
645
|
className: C.toggle,
|
|
633
646
|
role: "group",
|
|
634
|
-
"aria-label":
|
|
647
|
+
"aria-label": P(e),
|
|
635
648
|
children: r.map((e) => {
|
|
636
649
|
let t = e.value === n;
|
|
637
650
|
return /* @__PURE__ */ f("button", {
|
|
638
651
|
type: "button",
|
|
639
652
|
"aria-pressed": t,
|
|
640
|
-
"aria-label":
|
|
653
|
+
"aria-label": P(e.label),
|
|
641
654
|
className: t ? `${C.toggleButton} ${C.toggleButtonSelected}` : C.toggleButton,
|
|
642
655
|
onClick: () => i(e.value),
|
|
643
656
|
children: e.label
|
|
@@ -648,9 +661,9 @@ function U({ label: e, readout: t, value: n, options: r, onChange: i, layout: a,
|
|
|
648
661
|
}
|
|
649
662
|
//#endregion
|
|
650
663
|
//#region src/components/Properties/EffectCard.tsx
|
|
651
|
-
function
|
|
664
|
+
function K({ title: e, children: t, className: n, density: r, align: i }) {
|
|
652
665
|
return /* @__PURE__ */ p("div", {
|
|
653
|
-
className:
|
|
666
|
+
className: E(C.subpanel, {
|
|
654
667
|
density: r,
|
|
655
668
|
align: i
|
|
656
669
|
}, n),
|
|
@@ -660,7 +673,7 @@ function W({ title: e, children: t, className: n, density: r, align: i }) {
|
|
|
660
673
|
}), t]
|
|
661
674
|
});
|
|
662
675
|
}
|
|
663
|
-
function
|
|
676
|
+
function q({ title: e, primary: t, accent: n, index: r, expanded: i = !0, onToggleExpanded: a, onRemove: o, draggable: s, onPressHandle: c, onReleaseHandle: l, onDragStart: u, onDragEnd: d, onDragOver: m, onDragLeave: h, onDrop: g, dragging: _, children: v, className: y }) {
|
|
664
677
|
let b = `${i ? ` ${C.cardExpanded}` : ""}${_ ? ` ${C.cardDragging}` : ""}${n ? ` ${C.cardAccented}` : ""}`, x = `${C.card}${b}${y ? ` ${y}` : ""}`, S = n ? { "--wzl-effect-card-accent": n } : void 0, w = a ? {
|
|
665
678
|
role: "button",
|
|
666
679
|
tabIndex: 0,
|
|
@@ -688,7 +701,7 @@ function G({ title: e, primary: t, accent: n, index: r, expanded: i = !0, onTogg
|
|
|
688
701
|
title: "Drag to reorder",
|
|
689
702
|
onMouseDown: c,
|
|
690
703
|
onMouseUp: l,
|
|
691
|
-
children: /* @__PURE__ */ f(
|
|
704
|
+
children: /* @__PURE__ */ f(J, {})
|
|
692
705
|
}) : /* @__PURE__ */ f("button", {
|
|
693
706
|
type: "button",
|
|
694
707
|
className: `${C.cardIndexBadge} ${C.cardHandle}`,
|
|
@@ -726,7 +739,7 @@ function G({ title: e, primary: t, accent: n, index: r, expanded: i = !0, onTogg
|
|
|
726
739
|
})]
|
|
727
740
|
});
|
|
728
741
|
}
|
|
729
|
-
function
|
|
742
|
+
function J() {
|
|
730
743
|
return /* @__PURE__ */ p("svg", {
|
|
731
744
|
width: "10",
|
|
732
745
|
height: "14",
|
|
@@ -772,7 +785,7 @@ function K() {
|
|
|
772
785
|
]
|
|
773
786
|
});
|
|
774
787
|
}
|
|
775
|
-
function
|
|
788
|
+
function Y({ items: e, renderItem: t, onReorder: n, empty: r, defaultExpandedIds: i }) {
|
|
776
789
|
let [a, o] = y(() => new Set(i ?? [])), [s, c] = y(null), [l, u] = y(null), [m, h] = y(null);
|
|
777
790
|
return e.length === 0 ? /* @__PURE__ */ f(d, { children: r ?? /* @__PURE__ */ f("div", {
|
|
778
791
|
className: C.cardListEmpty,
|
|
@@ -835,15 +848,15 @@ function q({ items: e, renderItem: t, onReorder: n, empty: r, defaultExpandedIds
|
|
|
835
848
|
}
|
|
836
849
|
//#endregion
|
|
837
850
|
//#region src/components/Properties/PropertyGroup.tsx
|
|
838
|
-
function
|
|
839
|
-
let
|
|
840
|
-
if (
|
|
841
|
-
let
|
|
842
|
-
|
|
843
|
-
},
|
|
844
|
-
density:
|
|
845
|
-
align:
|
|
846
|
-
},
|
|
851
|
+
function X({ title: e, description: t, hidden: n, collapsible: i, defaultCollapsed: a, collapsed: o, onCollapsedChange: s, children: c, className: l, span: u, pack: d = "auto-color", density: m, align: h }) {
|
|
852
|
+
let _ = g(), [v, b] = y(a ?? !1);
|
|
853
|
+
if (n) return null;
|
|
854
|
+
let x = i ?? (a !== void 0 || o !== void 0 || s !== void 0), S = x && (o ?? v), w = () => {
|
|
855
|
+
o === void 0 && b(!S), s?.(!S);
|
|
856
|
+
}, T = `${C.group}${d === "pairs" ? ` ${C.groupPairs}` : d === "one-up" ? ` ${C.groupOneUp}` : ""}`, D = E(u ? `${T} ${C.span}` : T, {
|
|
857
|
+
density: m,
|
|
858
|
+
align: h
|
|
859
|
+
}, l), O = /* @__PURE__ */ p("h3", {
|
|
847
860
|
className: C.groupTitle,
|
|
848
861
|
children: [
|
|
849
862
|
/* @__PURE__ */ f("hr", {}),
|
|
@@ -852,23 +865,27 @@ function J({ title: e, hidden: t, collapsible: n, defaultCollapsed: i, collapsed
|
|
|
852
865
|
]
|
|
853
866
|
});
|
|
854
867
|
return /* @__PURE__ */ p("div", {
|
|
855
|
-
className:
|
|
856
|
-
children: [
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
868
|
+
className: D,
|
|
869
|
+
children: [
|
|
870
|
+
x ? /* @__PURE__ */ f(r, {
|
|
871
|
+
className: C.groupHead,
|
|
872
|
+
open: !S,
|
|
873
|
+
onToggle: w,
|
|
874
|
+
label: typeof e == "string" ? e : "this section",
|
|
875
|
+
controls: _,
|
|
876
|
+
children: O
|
|
877
|
+
}) : O,
|
|
878
|
+
t !== void 0 && t !== "" && /* @__PURE__ */ f(A, { children: t }),
|
|
879
|
+
/* @__PURE__ */ f("div", {
|
|
880
|
+
id: _,
|
|
881
|
+
className: C.groupBody,
|
|
882
|
+
hidden: S,
|
|
883
|
+
children: c
|
|
884
|
+
})
|
|
885
|
+
]
|
|
869
886
|
});
|
|
870
887
|
}
|
|
871
888
|
//#endregion
|
|
872
|
-
export {
|
|
889
|
+
export { G as _, B as a, O as c, j as d, k as f, H as g, V as h, K as i, A as l, I as m, q as n, z as o, W as p, Y as r, U as s, X as t, D as u, S as v };
|
|
873
890
|
|
|
874
|
-
//# sourceMappingURL=Properties-
|
|
891
|
+
//# sourceMappingURL=Properties-Rnb6TAbN.js.map
|