@weasel-js/ui 1.5.2 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/ActionBar-CYvfmEz0.js +57 -0
- package/dist/chunks/ActionBar-CYvfmEz0.js.map +1 -0
- package/dist/chunks/{Badge-CW9pBPFl.js → Badge-DZ0lFs14.js} +755 -738
- package/dist/chunks/Badge-DZ0lFs14.js.map +1 -0
- package/dist/chunks/{BandEditor-jY-PFKY6.js → BandEditor-D-nVrVO4.js} +34 -34
- package/dist/chunks/{BandEditor-jY-PFKY6.js.map → BandEditor-D-nVrVO4.js.map} +1 -1
- package/dist/chunks/Button-Dyp31jMt.js +111 -0
- package/dist/chunks/Button-Dyp31jMt.js.map +1 -0
- package/dist/chunks/ButtonBar-smZzFuEo.js +46 -0
- package/dist/chunks/ButtonBar-smZzFuEo.js.map +1 -0
- package/dist/chunks/Callout-xLjnx7Mp.js +119 -0
- package/dist/chunks/Callout-xLjnx7Mp.js.map +1 -0
- package/dist/chunks/{Checkbox-BOsDAY2F.js → Checkbox-ChZz30Ds.js} +1 -1
- package/dist/chunks/{Checkbox-BOsDAY2F.js.map → Checkbox-ChZz30Ds.js.map} +1 -1
- package/dist/chunks/Code-v4tDWuuN.js +24 -0
- package/dist/chunks/Code-v4tDWuuN.js.map +1 -0
- package/dist/chunks/{ColorField-BYzgZM9o.js → ColorField-DJSCuSJv.js} +15 -15
- package/dist/chunks/ColorField-DJSCuSJv.js.map +1 -0
- package/dist/chunks/ColorModeControl-JOEiqtE0.js +47 -0
- package/dist/chunks/ColorModeControl-JOEiqtE0.js.map +1 -0
- package/dist/chunks/{ComboBox-Cz3f0Y_8.js → ComboBox-C1JgIpML.js} +2 -2
- package/dist/chunks/{ComboBox-Cz3f0Y_8.js.map → ComboBox-C1JgIpML.js.map} +1 -1
- package/dist/chunks/{CurveEditor-DXwSP-iA.js → CurveEditor-f1R4kSbD.js} +2 -2
- package/dist/chunks/{CurveEditor-DXwSP-iA.js.map → CurveEditor-f1R4kSbD.js.map} +1 -1
- package/dist/chunks/DataGrid-CZPrB_3a.js +152 -0
- package/dist/chunks/DataGrid-CZPrB_3a.js.map +1 -0
- package/dist/chunks/DetailList-DHaXX4TG.js +43 -0
- package/dist/chunks/DetailList-DHaXX4TG.js.map +1 -0
- package/dist/chunks/{DetentSlider-CAubVX0J.js → DetentSlider-BYyaZha6.js} +2 -2
- package/dist/chunks/{DetentSlider-CAubVX0J.js.map → DetentSlider-BYyaZha6.js.map} +1 -1
- package/dist/chunks/Dialog-GIvjoDQj.js +66 -0
- package/dist/chunks/Dialog-GIvjoDQj.js.map +1 -0
- package/dist/chunks/Disclosure-D79jhmh2.js +58 -0
- package/dist/chunks/Disclosure-D79jhmh2.js.map +1 -0
- package/dist/chunks/DragGhost-DcU7cOwy.js +30 -0
- package/dist/chunks/DragGhost-DcU7cOwy.js.map +1 -0
- package/dist/chunks/{DragHandleGlyph-CppAz4_8.js → DragHandleGlyph-BtBxHjZS.js} +1 -1
- package/dist/chunks/{DragHandleGlyph-CppAz4_8.js.map → DragHandleGlyph-BtBxHjZS.js.map} +1 -1
- package/dist/chunks/{Field-DWnV8WZY.js → Field-xbqRmjsI.js} +1 -1
- package/dist/chunks/{Field-DWnV8WZY.js.map → Field-xbqRmjsI.js.map} +1 -1
- package/dist/chunks/FillStrokeSwatch-BViKXIPx.js +111 -0
- package/dist/chunks/FillStrokeSwatch-BViKXIPx.js.map +1 -0
- package/dist/chunks/{FontFamilySelect-DxfgTC3G.js → FontFamilySelect-r9TV_xIH.js} +2 -2
- package/dist/chunks/{FontFamilySelect-DxfgTC3G.js.map → FontFamilySelect-r9TV_xIH.js.map} +1 -1
- package/dist/chunks/GradientEditor-BRTxHG-W.js +333 -0
- package/dist/chunks/{GradientEditor-rRBmf3G0.js.map → GradientEditor-BRTxHG-W.js.map} +1 -1
- package/dist/chunks/{Icon-DT0x6HaQ.js → Icon-BW0qv_U7.js} +28 -20
- package/dist/chunks/Icon-BW0qv_U7.js.map +1 -0
- package/dist/chunks/InlineRange-BwGFDhpT.js +29 -0
- package/dist/chunks/InlineRange-BwGFDhpT.js.map +1 -0
- package/dist/chunks/{Input-DbMKpkXy.js → Input-Bx2cuUbS.js} +24 -19
- package/dist/chunks/Input-Bx2cuUbS.js.map +1 -0
- package/dist/chunks/ItemList-DzJ2lK0R.js +175 -0
- package/dist/chunks/ItemList-DzJ2lK0R.js.map +1 -0
- package/dist/chunks/ItemList.module-DDUXfuZL.js +14 -0
- package/dist/chunks/ItemList.module-DDUXfuZL.js.map +1 -0
- package/dist/chunks/{Jog-DkkTlL3_.js → Jog-LPoac9s4.js} +6 -6
- package/dist/chunks/{Jog-DkkTlL3_.js.map → Jog-LPoac9s4.js.map} +1 -1
- package/dist/chunks/{Keycaps-DunVpejA.js → Keycaps-CKiKOJnJ.js} +71 -65
- package/dist/chunks/Keycaps-CKiKOJnJ.js.map +1 -0
- package/dist/chunks/LayerList-BeGrkLb9.js +427 -0
- package/dist/chunks/LayerList-BeGrkLb9.js.map +1 -0
- package/dist/chunks/ListEditor-C6zLzCsJ.js +74 -0
- package/dist/chunks/ListEditor-C6zLzCsJ.js.map +1 -0
- package/dist/chunks/MenuButton-BcdhrNGh.js +70 -0
- package/dist/chunks/MenuButton-BcdhrNGh.js.map +1 -0
- package/dist/chunks/MeshEditor-BOOIFWnz.js +87 -0
- package/dist/chunks/MeshEditor-BOOIFWnz.js.map +1 -0
- package/dist/chunks/{NumberField-CCjEDZCg.js → NumberField-C1Y7zP-a.js} +27 -22
- package/dist/chunks/NumberField-C1Y7zP-a.js.map +1 -0
- package/dist/chunks/{OptionsBar-DeQ-vUeZ.js → OptionsBar-DlcagPYK.js} +3 -3
- package/dist/chunks/{OptionsBar-DeQ-vUeZ.js.map → OptionsBar-DlcagPYK.js.map} +1 -1
- package/dist/chunks/{PaintField-jBOJ32rL.js → PaintField-B2mLRZa4.js} +20 -20
- package/dist/chunks/PaintField-B2mLRZa4.js.map +1 -0
- package/dist/chunks/{PaintInput-Qs7Rul5R.js → PaintInput-BFKhd83I.js} +24 -24
- package/dist/chunks/{PaintInput-Qs7Rul5R.js.map → PaintInput-BFKhd83I.js.map} +1 -1
- package/dist/chunks/{PatternPicker-BMpXWboq.js → PatternPicker-DdfpxoQy.js} +2 -2
- package/dist/chunks/{PatternPicker-BMpXWboq.js.map → PatternPicker-DdfpxoQy.js.map} +1 -1
- package/dist/chunks/{Plot2D-CXf_f7QD.js → Plot2D-lyO7waPQ.js} +1 -1
- package/dist/chunks/{Plot2D-CXf_f7QD.js.map → Plot2D-lyO7waPQ.js.map} +1 -1
- package/dist/chunks/{PointPlotter-S_gz7VYt.js → PointPlotter-DGs9i5P-.js} +2 -2
- package/dist/chunks/{PointPlotter-S_gz7VYt.js.map → PointPlotter-DGs9i5P-.js.map} +1 -1
- package/dist/chunks/{Powerline-Ak5AWUlK.js → Powerline-DBEPceLE.js} +4 -2
- package/dist/chunks/Powerline-DBEPceLE.js.map +1 -0
- package/dist/chunks/Prefs-Ctu0H4-b.js +475 -0
- package/dist/chunks/Prefs-Ctu0H4-b.js.map +1 -0
- package/dist/chunks/Properties-Bbneh1ws.js +281 -0
- package/dist/chunks/Properties-Bbneh1ws.js.map +1 -0
- package/dist/chunks/PropertyField-CDb19d3F.js +756 -0
- package/dist/chunks/PropertyField-CDb19d3F.js.map +1 -0
- package/dist/chunks/{RadioGroup-CsVp3SEu.js → RadioGroup-BK2mD6Q0.js} +2 -2
- package/dist/chunks/{RadioGroup-CsVp3SEu.js.map → RadioGroup-BK2mD6Q0.js.map} +1 -1
- package/dist/chunks/{RangeSlider-DNr-pJpZ.js → RangeSlider-BiRAOsTh.js} +1 -1
- package/dist/chunks/{RangeSlider-DNr-pJpZ.js.map → RangeSlider-BiRAOsTh.js.map} +1 -1
- package/dist/chunks/{ResizeHandle-RXFf5fXr.js → ResizeHandle-Cc6EOehs.js} +9 -9
- package/dist/chunks/{ResizeHandle-RXFf5fXr.js.map → ResizeHandle-Cc6EOehs.js.map} +1 -1
- package/dist/chunks/Select-DVValBe1.js +225 -0
- package/dist/chunks/Select-DVValBe1.js.map +1 -0
- package/dist/chunks/{SelectionPanel-CEbLS-0D.js → SelectionPanel-C5LmZA7b.js} +21 -20
- package/dist/chunks/{SelectionPanel-CEbLS-0D.js.map → SelectionPanel-C5LmZA7b.js.map} +1 -1
- package/dist/chunks/{Sidebar-qn_oSCNX.js → Sidebar-DKKd4R-x.js} +1 -1
- package/dist/chunks/{Sidebar-qn_oSCNX.js.map → Sidebar-DKKd4R-x.js.map} +1 -1
- package/dist/chunks/{SidebarPanel-Bs6V21hg.js → SidebarPanel-u5NsuAZY.js} +15 -19
- package/dist/chunks/SidebarPanel-u5NsuAZY.js.map +1 -0
- package/dist/chunks/{Slider-CIIrqiFS.js → Slider-BwRrWHFW.js} +42 -42
- package/dist/chunks/{Slider-CIIrqiFS.js.map → Slider-BwRrWHFW.js.map} +1 -1
- package/dist/chunks/{StatusBar-B4L15DSm.js → StatusBar-CdPdmmda.js} +1 -1
- package/dist/chunks/{StatusBar-B4L15DSm.js.map → StatusBar-CdPdmmda.js.map} +1 -1
- package/dist/chunks/SwatchGrid-C-Zx2Exd.js +73 -0
- package/dist/chunks/SwatchGrid-C-Zx2Exd.js.map +1 -0
- package/dist/chunks/{Switch-DH5POG0T.js → Switch-DxF7TsEu.js} +1 -1
- package/dist/chunks/{Switch-DH5POG0T.js.map → Switch-DxF7TsEu.js.map} +1 -1
- package/dist/chunks/{Tabs-BFHikpml.js → Tabs-GXEfoe3o.js} +1 -1
- package/dist/chunks/{Tabs-BFHikpml.js.map → Tabs-GXEfoe3o.js.map} +1 -1
- package/dist/chunks/{Timeline-DNKY_yiK.js → Timeline-SgmpQtUV.js} +128 -132
- package/dist/chunks/Timeline-SgmpQtUV.js.map +1 -0
- package/dist/chunks/{Toast-CI1UDuK6.js → Toast-BfcljZz6.js} +1 -1
- package/dist/chunks/{Toast-CI1UDuK6.js.map → Toast-BfcljZz6.js.map} +1 -1
- package/dist/chunks/ToggleBar-Btnl5r7F.js +80 -0
- package/dist/chunks/{ToggleBar-CClus5Cd.js.map → ToggleBar-Btnl5r7F.js.map} +1 -1
- package/dist/chunks/{TokenPanel-BPHq24dc.js → TokenPanel-5ajHEHha.js} +40 -40
- package/dist/chunks/{TokenPanel-BPHq24dc.js.map → TokenPanel-5ajHEHha.js.map} +1 -1
- package/dist/chunks/{ToolButton-9QzJCmuM.js → ToolButton-rzqlFlAc.js} +4 -4
- package/dist/chunks/{ToolButton-9QzJCmuM.js.map → ToolButton-rzqlFlAc.js.map} +1 -1
- package/dist/chunks/{ToolGroup-BJiDrH_i.js → ToolGroup-4bUBV5k6.js} +1 -1
- package/dist/chunks/{ToolGroup-BJiDrH_i.js.map → ToolGroup-4bUBV5k6.js.map} +1 -1
- package/dist/chunks/{ToolOptionsBar-CAM6RcUH.js → ToolOptionsBar-BF3TNXA3.js} +2 -2
- package/dist/chunks/{ToolOptionsBar-CAM6RcUH.js.map → ToolOptionsBar-BF3TNXA3.js.map} +1 -1
- package/dist/chunks/ToolPalette-Uw4PvWwa.js +83 -0
- package/dist/chunks/ToolPalette-Uw4PvWwa.js.map +1 -0
- package/dist/chunks/{Tooltip-C4YBczLq.js → Tooltip-9XiJF937.js} +13 -13
- package/dist/chunks/Tooltip-9XiJF937.js.map +1 -0
- package/dist/chunks/Tree-BGt6P8tI.js +203 -0
- package/dist/chunks/Tree-BGt6P8tI.js.map +1 -0
- package/dist/chunks/{createKeyframeLayer-DKtO0Sw_.js → createKeyframeLayer-BzDRCrrh.js} +71 -71
- package/dist/chunks/{createKeyframeLayer-DKtO0Sw_.js.map → createKeyframeLayer-BzDRCrrh.js.map} +1 -1
- package/dist/chunks/formatShortcut-BoGqUoWi.js +15 -0
- package/dist/chunks/formatShortcut-BoGqUoWi.js.map +1 -0
- package/dist/chunks/icons-DbScMMqX.js +179 -0
- package/dist/chunks/icons-DbScMMqX.js.map +1 -0
- package/dist/chunks/interactiveTarget-C7QUBaJN.js +24 -0
- package/dist/chunks/interactiveTarget-C7QUBaJN.js.map +1 -0
- package/dist/chunks/{keyGlyph-Bp0wnLHn.js → keyGlyph-CLvUHU8c.js} +1 -1
- package/dist/chunks/{keyGlyph-Bp0wnLHn.js.map → keyGlyph-CLvUHU8c.js.map} +1 -1
- package/dist/chunks/model-BQMvTLnW.js +360 -0
- package/dist/chunks/model-BQMvTLnW.js.map +1 -0
- package/dist/chunks/{number-BHz66zQO.js → number-6S8IzXVt.js} +3 -3
- package/dist/chunks/number-6S8IzXVt.js.map +1 -0
- package/dist/chunks/paintPreview-DPtZS4yU.js +42 -0
- package/dist/chunks/paintPreview-DPtZS4yU.js.map +1 -0
- package/dist/chunks/paintValue-Bz6AVuh3.js +18 -0
- package/dist/chunks/paintValue-Bz6AVuh3.js.map +1 -0
- package/dist/chunks/prefField-CLkhrvYl.js +197 -0
- package/dist/chunks/prefField-CLkhrvYl.js.map +1 -0
- package/dist/chunks/segmentTooltip-CAkZlW-t.js +29 -0
- package/dist/chunks/segmentTooltip-CAkZlW-t.js.map +1 -0
- package/dist/chunks/segmentedControl.module-D2nw68Yo.js +11 -0
- package/dist/chunks/segmentedControl.module-D2nw68Yo.js.map +1 -0
- package/dist/chunks/{snap-CEjuWOhN.js → snap-DC4Km8xG.js} +1 -1
- package/dist/chunks/{snap-CEjuWOhN.js.map → snap-DC4Km8xG.js.map} +1 -1
- package/dist/chunks/stance-CarrcbbP.js +17 -0
- package/dist/chunks/stance-CarrcbbP.js.map +1 -0
- package/dist/chunks/useReorderDragList-Dcezzgix.js +131 -0
- package/dist/chunks/useReorderDragList-Dcezzgix.js.map +1 -0
- package/dist/chunks/{useRovingTabIndex-Dkpf_KhN.js → useRovingTabIndex-B4uJqiKP.js} +1 -1
- package/dist/chunks/useRovingTabIndex-B4uJqiKP.js.map +1 -0
- package/dist/color/ramp.d.ts +38 -0
- package/dist/color/ramp.d.ts.map +1 -0
- package/dist/components/ActionBar/ActionBar.d.ts +6 -4
- package/dist/components/ActionBar/ActionBar.d.ts.map +1 -1
- package/dist/components/ActionBar/index.js +1 -1
- package/dist/components/Badge/Badge.d.ts +21 -7
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Badge/effects/Aqua.d.ts +1 -1
- package/dist/components/Badge/effects/Aqua.d.ts.map +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Badge/types.d.ts +6 -5
- package/dist/components/Badge/types.d.ts.map +1 -1
- package/dist/components/BandEditor/index.js +1 -1
- package/dist/components/Button/Button.d.ts +17 -3
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonBar/ButtonBar.d.ts +36 -0
- package/dist/components/ButtonBar/ButtonBar.d.ts.map +1 -0
- package/dist/components/ButtonBar/index.d.ts +3 -0
- package/dist/components/ButtonBar/index.d.ts.map +1 -0
- package/dist/components/ButtonBar/index.js +2 -0
- package/dist/components/Callout/Callout.d.ts +2 -5
- package/dist/components/Callout/Callout.d.ts.map +1 -1
- package/dist/components/Callout/index.d.ts +1 -1
- package/dist/components/Callout/index.d.ts.map +1 -1
- package/dist/components/Callout/index.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Code/Code.d.ts +28 -0
- package/dist/components/Code/Code.d.ts.map +1 -0
- package/dist/components/Code/index.d.ts +3 -0
- package/dist/components/Code/index.d.ts.map +1 -0
- package/dist/components/Code/index.js +2 -0
- package/dist/components/ColorField/index.js +1 -1
- package/dist/components/ColorModeControl/ColorModeControl.d.ts +21 -0
- package/dist/components/ColorModeControl/ColorModeControl.d.ts.map +1 -0
- package/dist/components/ColorModeControl/index.d.ts +3 -0
- package/dist/components/ColorModeControl/index.d.ts.map +1 -0
- package/dist/components/ColorModeControl/index.js +2 -0
- package/dist/components/ComboBox/index.js +1 -1
- package/dist/components/CurveEditor/index.js +3 -3
- package/dist/components/DataGrid/DataGrid.d.ts +22 -0
- package/dist/components/DataGrid/DataGrid.d.ts.map +1 -1
- package/dist/components/DataGrid/index.js +1 -1
- package/dist/components/DetailList/DetailList.d.ts +36 -0
- package/dist/components/DetailList/DetailList.d.ts.map +1 -0
- package/dist/components/DetailList/index.d.ts +3 -0
- package/dist/components/DetailList/index.d.ts.map +1 -0
- package/dist/components/DetailList/index.js +2 -0
- package/dist/components/DetentSlider/index.js +1 -1
- package/dist/components/Dialog/Dialog.d.ts +8 -2
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/Disclosure/Disclosure.d.ts +25 -17
- package/dist/components/Disclosure/Disclosure.d.ts.map +1 -1
- package/dist/components/Disclosure/index.d.ts +2 -2
- package/dist/components/Disclosure/index.d.ts.map +1 -1
- package/dist/components/Disclosure/index.js +2 -2
- package/dist/components/DragGhost/DragGhost.d.ts +21 -0
- package/dist/components/DragGhost/DragGhost.d.ts.map +1 -0
- package/dist/components/DragGhost/index.d.ts +3 -0
- package/dist/components/DragGhost/index.d.ts.map +1 -0
- package/dist/components/DragGhost/index.js +2 -0
- package/dist/components/DragHandleGlyph/index.js +1 -1
- package/dist/components/Field/index.js +1 -1
- package/dist/components/FillStrokeSwatch/FillStrokeSwatch.d.ts +45 -0
- package/dist/components/FillStrokeSwatch/FillStrokeSwatch.d.ts.map +1 -0
- package/dist/components/FillStrokeSwatch/index.d.ts +3 -0
- package/dist/components/FillStrokeSwatch/index.d.ts.map +1 -0
- package/dist/components/FillStrokeSwatch/index.js +2 -0
- package/dist/components/FontFamilySelect/index.js +1 -1
- package/dist/components/GradientEditor/SceneGradientHandles.d.ts.map +1 -1
- package/dist/components/GradientEditor/index.js +1 -1
- package/dist/components/InlineRange/InlineRange.d.ts +6 -2
- package/dist/components/InlineRange/InlineRange.d.ts.map +1 -1
- package/dist/components/InlineRange/index.js +1 -1
- package/dist/components/Input/Input.d.ts +13 -0
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/ItemList/ItemList.d.ts +70 -10
- package/dist/components/ItemList/ItemList.d.ts.map +1 -1
- package/dist/components/ItemList/index.js +1 -1
- package/dist/components/Jog/index.js +1 -1
- package/dist/components/Keycaps/index.d.ts +1 -0
- package/dist/components/Keycaps/index.d.ts.map +1 -1
- package/dist/components/Keycaps/index.js +3 -3
- package/dist/components/Keycaps/keySpecsFromMods.d.ts +2 -0
- package/dist/components/Keycaps/keySpecsFromMods.d.ts.map +1 -1
- package/dist/components/Keycaps/keySpecsFromShortcut.d.ts +16 -0
- package/dist/components/Keycaps/keySpecsFromShortcut.d.ts.map +1 -0
- package/dist/components/LayerList/LayerList.d.ts +79 -0
- package/dist/components/LayerList/LayerList.d.ts.map +1 -0
- package/dist/components/LayerList/index.d.ts +3 -0
- package/dist/components/LayerList/index.d.ts.map +1 -0
- package/dist/components/LayerList/index.js +2 -0
- package/dist/components/LayerList/useSceneLayerList.d.ts +20 -0
- package/dist/components/LayerList/useSceneLayerList.d.ts.map +1 -0
- package/dist/components/ListEditor/ListEditor.d.ts +23 -0
- package/dist/components/ListEditor/ListEditor.d.ts.map +1 -0
- package/dist/components/ListEditor/index.d.ts +3 -0
- package/dist/components/ListEditor/index.d.ts.map +1 -0
- package/dist/components/ListEditor/index.js +2 -0
- package/dist/components/MenuButton/MenuButton.d.ts +6 -2
- package/dist/components/MenuButton/MenuButton.d.ts.map +1 -1
- package/dist/components/MenuButton/index.js +1 -1
- package/dist/components/MeshEditor/index.js +1 -1
- package/dist/components/NumberField/NumberField.d.ts +13 -0
- package/dist/components/NumberField/NumberField.d.ts.map +1 -1
- package/dist/components/NumberField/index.js +1 -1
- package/dist/components/OptionsBar/index.js +1 -1
- package/dist/components/PaintField/index.js +1 -1
- package/dist/components/PaintInput/index.js +1 -1
- package/dist/components/PatternPicker/index.js +1 -1
- package/dist/components/Plot2D/index.js +1 -1
- package/dist/components/PointPlotter/index.js +1 -1
- package/dist/components/Powerline/Powerline.d.ts +4 -3
- package/dist/components/Powerline/Powerline.d.ts.map +1 -1
- package/dist/components/Powerline/index.js +2 -2
- package/dist/components/Prefs/PrefsDialog.d.ts +10 -2
- package/dist/components/Prefs/PrefsDialog.d.ts.map +1 -1
- package/dist/components/Prefs/PrefsForm.d.ts +26 -25
- package/dist/components/Prefs/PrefsForm.d.ts.map +1 -1
- package/dist/components/Prefs/PrefsPane.d.ts +24 -0
- package/dist/components/Prefs/PrefsPane.d.ts.map +1 -0
- package/dist/components/Prefs/PrefsRail.d.ts +32 -0
- package/dist/components/Prefs/PrefsRail.d.ts.map +1 -0
- package/dist/components/Prefs/PrefsRow.d.ts +32 -0
- package/dist/components/Prefs/PrefsRow.d.ts.map +1 -0
- package/dist/components/Prefs/index.d.ts +5 -2
- package/dist/components/Prefs/index.d.ts.map +1 -1
- package/dist/components/Prefs/index.js +3 -3
- package/dist/components/Prefs/prefField.d.ts +36 -0
- package/dist/components/Prefs/prefField.d.ts.map +1 -0
- package/dist/components/Prefs/schema.d.ts +30 -0
- package/dist/components/Prefs/schema.d.ts.map +1 -1
- package/dist/components/Properties/DialogRow.d.ts +33 -0
- package/dist/components/Properties/DialogRow.d.ts.map +1 -0
- package/dist/components/Properties/PropertyField.d.ts +238 -0
- package/dist/components/Properties/PropertyField.d.ts.map +1 -0
- package/dist/components/Properties/PropertyGroup.d.ts +12 -3
- package/dist/components/Properties/PropertyGroup.d.ts.map +1 -1
- package/dist/components/Properties/PropertyPanel.d.ts +32 -236
- package/dist/components/Properties/PropertyPanel.d.ts.map +1 -1
- package/dist/components/Properties/Subpanel.d.ts +14 -0
- package/dist/components/Properties/Subpanel.d.ts.map +1 -0
- package/dist/components/Properties/index.d.ts +8 -4
- package/dist/components/Properties/index.d.ts.map +1 -1
- package/dist/components/Properties/index.js +3 -2
- package/dist/components/Properties/storyLayouts.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/RangeSlider/index.js +1 -1
- package/dist/components/ResizeHandle/index.js +1 -1
- package/dist/components/Select/Select.d.ts +38 -5
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/index.d.ts +2 -2
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +2 -2
- package/dist/components/SelectionPanel/index.js +2 -2
- package/dist/components/SelectionPanel/renderLeaf.d.ts +14 -8
- package/dist/components/SelectionPanel/renderLeaf.d.ts.map +1 -1
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/SidebarPanel/SidebarPanel.d.ts +2 -2
- package/dist/components/SidebarPanel/SidebarPanel.d.ts.map +1 -1
- package/dist/components/SidebarPanel/index.js +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/StatusBar/index.js +1 -1
- package/dist/components/SwatchGrid/SwatchGrid.d.ts +34 -0
- package/dist/components/SwatchGrid/SwatchGrid.d.ts.map +1 -0
- package/dist/components/SwatchGrid/index.d.ts +3 -0
- package/dist/components/SwatchGrid/index.d.ts.map +1 -0
- package/dist/components/SwatchGrid/index.js +2 -0
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Timeline/Lane.d.ts.map +1 -1
- package/dist/components/Timeline/index.js +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/ToggleBar/ToggleBar.d.ts +2 -1
- package/dist/components/ToggleBar/ToggleBar.d.ts.map +1 -1
- package/dist/components/ToggleBar/index.js +1 -1
- package/dist/components/TokenPanel/index.js +1 -1
- package/dist/components/ToolButton/index.js +1 -1
- package/dist/components/ToolGroup/index.js +1 -1
- package/dist/components/ToolOptionsBar/index.js +1 -1
- package/dist/components/ToolPalette/index.d.ts +1 -0
- package/dist/components/ToolPalette/index.d.ts.map +1 -1
- package/dist/components/ToolPalette/index.js +3 -2
- package/dist/components/Tooltip/Tooltip.d.ts +6 -2
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +2 -2
- package/dist/components/Tree/Tree.d.ts +84 -0
- package/dist/components/Tree/Tree.d.ts.map +1 -0
- package/dist/components/Tree/index.d.ts +3 -0
- package/dist/components/Tree/index.d.ts.map +1 -0
- package/dist/components/Tree/index.js +2 -0
- package/dist/components/segmentTooltip.d.ts +30 -0
- package/dist/components/segmentTooltip.d.ts.map +1 -0
- package/dist/components/stance.d.ts +30 -0
- package/dist/components/stance.d.ts.map +1 -0
- package/dist/components/stanceCss.d.ts +31 -0
- package/dist/components/stanceCss.d.ts.map +1 -0
- package/dist/components/stanceSurfaces.d.ts +4 -0
- package/dist/components/stanceSurfaces.d.ts.map +1 -0
- package/dist/format/number.d.ts +3 -2
- package/dist/format/number.d.ts.map +1 -1
- package/dist/icons/Icon.d.ts.map +1 -1
- package/dist/icons/ShapeKindIcon.d.ts +10 -0
- package/dist/icons/ShapeKindIcon.d.ts.map +1 -0
- package/dist/icons/index.d.ts +5 -3
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/paths.d.ts +2 -0
- package/dist/icons/paths.d.ts.map +1 -1
- package/dist/index.d.ts +16 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +110 -78
- package/dist/index.js.map +1 -1
- package/dist/interactiveTarget.d.ts +9 -0
- package/dist/interactiveTarget.d.ts.map +1 -0
- package/dist/style.css +1 -1
- package/dist/useReorderDragList.d.ts +36 -7
- package/dist/useReorderDragList.d.ts.map +1 -1
- package/dist/useRovingTabIndex.d.ts +1 -1
- package/dist/useScrollSpy.d.ts +48 -0
- package/dist/useScrollSpy.d.ts.map +1 -0
- package/package.json +8 -8
- package/dist/chunks/ActionBar-CLwiY3Jg.js +0 -62
- package/dist/chunks/ActionBar-CLwiY3Jg.js.map +0 -1
- package/dist/chunks/ActionsBar-D84a4eGy.js +0 -41
- package/dist/chunks/ActionsBar-D84a4eGy.js.map +0 -1
- package/dist/chunks/Badge-CW9pBPFl.js.map +0 -1
- package/dist/chunks/Button-DRSApvnK.js +0 -90
- package/dist/chunks/Button-DRSApvnK.js.map +0 -1
- package/dist/chunks/Callout-DrNu-9Qr.js +0 -122
- package/dist/chunks/Callout-DrNu-9Qr.js.map +0 -1
- package/dist/chunks/ColorField-BYzgZM9o.js.map +0 -1
- package/dist/chunks/DataGrid-C8KrYtw7.js +0 -104
- package/dist/chunks/DataGrid-C8KrYtw7.js.map +0 -1
- package/dist/chunks/Dialog-fGqqQ6o_.js +0 -61
- package/dist/chunks/Dialog-fGqqQ6o_.js.map +0 -1
- package/dist/chunks/Disclosure-CILDfWsU.js +0 -47
- package/dist/chunks/Disclosure-CILDfWsU.js.map +0 -1
- package/dist/chunks/GradientEditor-rRBmf3G0.js +0 -333
- package/dist/chunks/Icon-DT0x6HaQ.js.map +0 -1
- package/dist/chunks/InlineRange-DdIlfGqG.js +0 -29
- package/dist/chunks/InlineRange-DdIlfGqG.js.map +0 -1
- package/dist/chunks/Input-DbMKpkXy.js.map +0 -1
- package/dist/chunks/ItemList-B9zYb0GE.js +0 -42
- package/dist/chunks/ItemList-B9zYb0GE.js.map +0 -1
- package/dist/chunks/Keycaps-DunVpejA.js.map +0 -1
- package/dist/chunks/LayerStack-CfQ6GsRz.js +0 -142
- package/dist/chunks/LayerStack-CfQ6GsRz.js.map +0 -1
- package/dist/chunks/MenuButton-C_4nox39.js +0 -60
- package/dist/chunks/MenuButton-C_4nox39.js.map +0 -1
- package/dist/chunks/MeshEditor-Bipz-Ocl.js +0 -123
- package/dist/chunks/MeshEditor-Bipz-Ocl.js.map +0 -1
- package/dist/chunks/NumberField-CCjEDZCg.js.map +0 -1
- package/dist/chunks/PaintField-jBOJ32rL.js.map +0 -1
- package/dist/chunks/Powerline-Ak5AWUlK.js.map +0 -1
- package/dist/chunks/Prefs-CNC8tzyN.js +0 -308
- package/dist/chunks/Prefs-CNC8tzyN.js.map +0 -1
- package/dist/chunks/Properties-Rnb6TAbN.js +0 -891
- package/dist/chunks/Properties-Rnb6TAbN.js.map +0 -1
- package/dist/chunks/Select-BEope086.js +0 -190
- package/dist/chunks/Select-BEope086.js.map +0 -1
- package/dist/chunks/SidebarPanel-Bs6V21hg.js.map +0 -1
- package/dist/chunks/Timeline-DNKY_yiK.js.map +0 -1
- package/dist/chunks/ToggleBar-CClus5Cd.js +0 -75
- package/dist/chunks/ToolPalette-DGkKwE7D.js +0 -97
- package/dist/chunks/ToolPalette-DGkKwE7D.js.map +0 -1
- package/dist/chunks/Tooltip-C4YBczLq.js.map +0 -1
- package/dist/chunks/icons-DFLytcui.js +0 -165
- package/dist/chunks/icons-DFLytcui.js.map +0 -1
- package/dist/chunks/model-13kZ_-mE.js +0 -483
- package/dist/chunks/model-13kZ_-mE.js.map +0 -1
- package/dist/chunks/number-BHz66zQO.js.map +0 -1
- package/dist/chunks/range.module-DSsOIq1R.js +0 -8
- package/dist/chunks/range.module-DSsOIq1R.js.map +0 -1
- package/dist/chunks/schema-Dft4Cu2p.js +0 -47
- package/dist/chunks/schema-Dft4Cu2p.js.map +0 -1
- package/dist/chunks/segmentedControl.module-DS72X1ns.js +0 -11
- package/dist/chunks/segmentedControl.module-DS72X1ns.js.map +0 -1
- package/dist/chunks/useReorderDragList-CSQGd7zQ.js +0 -102
- package/dist/chunks/useReorderDragList-CSQGd7zQ.js.map +0 -1
- package/dist/chunks/useRovingTabIndex-Dkpf_KhN.js.map +0 -1
- package/dist/components/ActionsBar/ActionsBar.d.ts +0 -35
- package/dist/components/ActionsBar/ActionsBar.d.ts.map +0 -1
- package/dist/components/ActionsBar/index.d.ts +0 -3
- package/dist/components/ActionsBar/index.d.ts.map +0 -1
- package/dist/components/ActionsBar/index.js +0 -2
- package/dist/components/LayerStack/LayerStack.d.ts +0 -62
- package/dist/components/LayerStack/LayerStack.d.ts.map +0 -1
- package/dist/components/LayerStack/index.d.ts +0 -2
- package/dist/components/LayerStack/index.d.ts.map +0 -1
- package/dist/components/LayerStack/index.js +0 -2
- package/dist/components/Properties/EffectCard.d.ts +0 -69
- package/dist/components/Properties/EffectCard.d.ts.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type StanceProps } from '../stance';
|
|
3
|
+
import type { PropertyFieldChrome } from './PropertyField';
|
|
3
4
|
/**
|
|
4
5
|
* How much room a container gives its rows — gaps, padding, and field height,
|
|
5
6
|
* moved together. Set on any container in the family; it reaches every
|
|
@@ -28,14 +29,31 @@ export interface PropertyMetricProps {
|
|
|
28
29
|
* Exported for the family's other files, which share the same two props. */
|
|
29
30
|
export declare function propertyMetricClass(base: string, { density, align }: PropertyMetricProps, className?: string): string;
|
|
30
31
|
/** Props for `<PropertyPanel>`. */
|
|
31
|
-
export interface PropertyPanelProps extends PropertyMetricProps {
|
|
32
|
+
export interface PropertyPanelProps extends PropertyMetricProps, StanceProps {
|
|
32
33
|
title?: ReactNode;
|
|
34
|
+
/** Controls on the trailing edge of the title row — a switch, a clear
|
|
35
|
+
* button. They sit outside the heading, so they neither take its type nor
|
|
36
|
+
* join its accessible name. */
|
|
37
|
+
actions?: ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* Lets text inside the panel be selected and copied. A panel is chrome by
|
|
40
|
+
* default, so a drag across it moves a slider rather than painting a
|
|
41
|
+
* selection; a `debug` panel defaults to selectable, since what it shows —
|
|
42
|
+
* ids, keys, traces — is there to be copied.
|
|
43
|
+
*/
|
|
44
|
+
selectable?: boolean;
|
|
33
45
|
children: ReactNode;
|
|
34
46
|
className?: string;
|
|
35
47
|
}
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
|
|
48
|
+
/**
|
|
49
|
+
* A titled panel holding property rows — the sidebar container the rest of
|
|
50
|
+
* this module's components fill.
|
|
51
|
+
*
|
|
52
|
+
* `stance` says what kind of content it holds and `tone` which of its peers it
|
|
53
|
+
* is; the theme's `--wzl-panel-*` and `--wzl-stance-*` slots decide how each looks. A stanced
|
|
54
|
+
* panel's title takes the row-label recipe rather than the display title.
|
|
55
|
+
*/
|
|
56
|
+
export declare function PropertyPanel({ title, actions, selectable, children, className, density, align, stance, tone, }: PropertyPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
39
57
|
/** How a property list packs its rows into two columns. */
|
|
40
58
|
export type PropertyListPack = 'auto-color' | 'pairs' | 'one-up';
|
|
41
59
|
/** Props for `<PropertyList>`. */
|
|
@@ -58,7 +76,7 @@ export interface PropertyListProps extends PropertyMetricProps {
|
|
|
58
76
|
* Grid container for PropertyRows. Use standalone for chrome-less layouts, or
|
|
59
77
|
* nest inside <PropertyPanel/> for the standard glass card.
|
|
60
78
|
*/
|
|
61
|
-
export declare
|
|
79
|
+
export declare const PropertyList: import("react").ForwardRefExoticComponent<PropertyListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
62
80
|
/** Props for `<PropertySpan>`. */
|
|
63
81
|
export interface PropertySpanProps {
|
|
64
82
|
children: ReactNode;
|
|
@@ -125,238 +143,16 @@ export interface PropertyRowProps extends PropertyMetricProps {
|
|
|
125
143
|
* can show an auto state but not change it.
|
|
126
144
|
*
|
|
127
145
|
* The label then names that toggle, so a control passed as `children` has to
|
|
128
|
-
* carry its own accessible name — every
|
|
146
|
+
* carry its own accessible name — every `<PropertyField>` does. */
|
|
129
147
|
onAutoChange?: (next: boolean) => void;
|
|
130
|
-
}
|
|
131
|
-
/** The label-plus-control frame every typed row below is built from. Use it
|
|
132
|
-
* directly for a control this module does not cover. */
|
|
133
|
-
export declare function PropertyRow({ label, readout, description, variant, layout, span, children, htmlFor, group, className, density, align, auto, onAutoChange, }: PropertyRowProps): import("react/jsx-runtime").JSX.Element;
|
|
134
|
-
/** Props for `<SliderRow>`. */
|
|
135
|
-
export interface SliderRowProps extends PropertyMetricProps {
|
|
136
|
-
label: ReactNode;
|
|
137
|
-
value: number;
|
|
138
|
-
min: number;
|
|
139
|
-
max: number;
|
|
140
|
-
step?: number;
|
|
141
|
-
/**
|
|
142
|
-
* The committed value. Given `onInput` as well, it fires once a drag ends
|
|
143
|
-
* or a typed readout is accepted; on its own it fires on every move, which
|
|
144
|
-
* is what a row with one callback has always done.
|
|
145
|
-
*/
|
|
146
|
-
onChange: (next: number) => void;
|
|
147
|
-
/**
|
|
148
|
-
* The live value, fired continuously through a drag. Pass it alongside
|
|
149
|
-
* `onChange` when the write is expensive — cheap state here, the costly
|
|
150
|
-
* work there. Mirrors `<Slider>`'s `onInput` / `onChange` pair.
|
|
151
|
-
*/
|
|
152
|
-
onInput?: (next: number) => void;
|
|
153
|
-
/** Override how the value is rendered next to the label. Defaults to `value.toString()`. */
|
|
154
|
-
format?: (value: number) => ReactNode;
|
|
155
|
-
/**
|
|
156
|
-
* Static text in place of the editable readout. Use it when the row is not
|
|
157
|
-
* showing a number a caller could type back — an auto row's `auto`, say,
|
|
158
|
-
* which an editable field would seed a draft with and then fail to parse.
|
|
159
|
-
*/
|
|
160
|
-
readout?: ReactNode;
|
|
161
|
-
/** A named display for the value: `compact` reads `2.0M`. `format` wins when both are given. */
|
|
162
|
-
notation?: PrefNumberFormat;
|
|
163
|
-
/**
|
|
164
|
-
* Optional suffix rendered next to the readout. A string becomes a
|
|
165
|
-
* baseline-aligned dim "word" unit (e.g. "px"); pass JSX like `<sup>°</sup>`
|
|
166
|
-
* to get the browser's native super positioning for symbol units.
|
|
167
|
-
*/
|
|
168
|
-
unit?: ReactNode;
|
|
169
|
-
layout?: PropertyRowLayout;
|
|
170
|
-
description?: string;
|
|
171
|
-
/** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
|
|
172
|
-
span?: boolean;
|
|
173
|
-
/** The row is auto — see `<PropertyRow auto>`. */
|
|
174
|
-
auto?: boolean;
|
|
175
|
-
/** Toggles `auto` from the row's label — see `<PropertyRow onAutoChange>`. */
|
|
176
|
-
onAutoChange?: (next: boolean) => void;
|
|
177
|
-
}
|
|
178
|
-
/** A bounded number edited by dragging, with a live readout whose precision
|
|
179
|
-
* follows `step`. */
|
|
180
|
-
export declare function SliderRow({ label, value, min, max, step, onChange, onInput, format, readout, notation, unit, layout, description, span, density, align, auto, onAutoChange, }: SliderRowProps): import("react/jsx-runtime").JSX.Element;
|
|
181
|
-
/** Props for `<ColorRow>`. */
|
|
182
|
-
export interface ColorRowProps extends PropertyMetricProps {
|
|
183
|
-
label: ReactNode;
|
|
184
|
-
value: string;
|
|
185
|
-
/**
|
|
186
|
-
* The committed color. Given `onInput` as well, it fires once the picker
|
|
187
|
-
* closes; on its own it fires on every move inside it, which is what a row
|
|
188
|
-
* with one callback has always done.
|
|
189
|
-
*/
|
|
190
|
-
onChange: (next: string) => void;
|
|
191
148
|
/**
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
149
|
+
* What draws the row's control. `bare` (the default) is a native input the
|
|
150
|
+
* row's stylesheet dresses; `framed` is a kit field bringing its own frame,
|
|
151
|
+
* which the row then leaves alone — see {@link PropertyFieldChrome}.
|
|
195
152
|
*/
|
|
196
|
-
|
|
197
|
-
/** 0..1 alpha. When provided, a translucent slider renders beneath the swatch. */
|
|
198
|
-
alpha?: number;
|
|
199
|
-
/** The committed alpha, on the same terms as `onChange`. */
|
|
200
|
-
onAlphaChange?: (next: number) => void;
|
|
201
|
-
/** The live alpha, on the same terms as `onInput`. */
|
|
202
|
-
onAlphaInput?: (next: number) => void;
|
|
203
|
-
/**
|
|
204
|
-
* Render the alpha track as inert (dimmed, no thumb, not-allowed cursor).
|
|
205
|
-
* Use when the color's consumer drops alpha so the affordance reads dead.
|
|
206
|
-
*/
|
|
207
|
-
alphaDisabled?: boolean;
|
|
208
|
-
/** Label beside the swatch (default) or above it. */
|
|
209
|
-
layout?: PropertyRowLayout;
|
|
210
|
-
description?: string;
|
|
211
|
-
/** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
|
|
212
|
-
readout?: ReactNode;
|
|
213
|
-
/** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
|
|
214
|
-
span?: boolean;
|
|
215
|
-
/** The row is auto — see `<PropertyRow auto>`. */
|
|
216
|
-
auto?: boolean;
|
|
217
|
-
/** Toggles `auto` from the row's label — see `<PropertyRow onAutoChange>`. */
|
|
218
|
-
onAutoChange?: (next: boolean) => void;
|
|
219
|
-
}
|
|
220
|
-
/** A color swatch, optionally with an alpha slider beneath it. */
|
|
221
|
-
export declare function ColorRow({ label, readout, value, onChange, onInput, alpha, onAlphaChange, onAlphaInput, alphaDisabled, layout, description, span, density, align, auto, onAutoChange, }: ColorRowProps): import("react/jsx-runtime").JSX.Element;
|
|
222
|
-
/** Props for `<CheckboxRow>`. */
|
|
223
|
-
export interface CheckboxRowProps extends PropertyMetricProps {
|
|
224
|
-
label: ReactNode;
|
|
225
|
-
/** Absent reads as unchecked. */
|
|
226
|
-
value: boolean | undefined;
|
|
227
|
-
onChange: (next: boolean) => void;
|
|
228
|
-
/** Label beside the box (default) or above it. */
|
|
229
|
-
layout?: PropertyRowLayout;
|
|
230
|
-
description?: string;
|
|
231
|
-
/** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
|
|
232
|
-
readout?: ReactNode;
|
|
233
|
-
/** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
|
|
234
|
-
span?: boolean;
|
|
235
|
-
/** The row is auto — see `<PropertyRow auto>`. */
|
|
236
|
-
auto?: boolean;
|
|
237
|
-
/** Toggles `auto` from the row's label — see `<PropertyRow onAutoChange>`. */
|
|
238
|
-
onAutoChange?: (next: boolean) => void;
|
|
239
|
-
}
|
|
240
|
-
/** A boolean checkbox. */
|
|
241
|
-
export declare function CheckboxRow({ label, readout, value, onChange, layout, span, description, density, align, auto, onAutoChange, }: CheckboxRowProps): import("react/jsx-runtime").JSX.Element;
|
|
242
|
-
/** Props for `<SwitchRow>`. */
|
|
243
|
-
export interface SwitchRowProps extends Omit<CheckboxRowProps, 'value'> {
|
|
244
|
-
/** Absent reads as off. */
|
|
245
|
-
value: boolean | undefined;
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* A boolean switch — the same row as `<CheckboxRow>`, drawn as an on/off
|
|
249
|
-
* toggle. Reach for it where the change takes effect immediately, and for
|
|
250
|
-
* a checkbox where it is submitted with a form.
|
|
251
|
-
*/
|
|
252
|
-
export declare function SwitchRow({ label, readout, value, onChange, layout, span, description, density, align, auto, onAutoChange, }: SwitchRowProps): import("react/jsx-runtime").JSX.Element;
|
|
253
|
-
/** Props for `<TextRow>`. */
|
|
254
|
-
export interface TextRowProps extends PropertyMetricProps {
|
|
255
|
-
label: ReactNode;
|
|
256
|
-
/** Absent reads as an empty field. */
|
|
257
|
-
value: string | null | undefined;
|
|
258
|
-
onChange: (next: string) => void;
|
|
259
|
-
placeholder?: string;
|
|
260
|
-
maxLength?: number;
|
|
261
|
-
layout?: PropertyRowLayout;
|
|
262
|
-
description?: string;
|
|
263
|
-
/** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
|
|
264
|
-
readout?: ReactNode;
|
|
265
|
-
/** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
|
|
266
|
-
span?: boolean;
|
|
267
|
-
/** The row is auto — see `<PropertyRow auto>`. */
|
|
268
|
-
auto?: boolean;
|
|
269
|
-
/** Toggles `auto` from the row's label — see `<PropertyRow onAutoChange>`. */
|
|
270
|
-
onAutoChange?: (next: boolean) => void;
|
|
271
|
-
}
|
|
272
|
-
/** A single-line text input. */
|
|
273
|
-
export declare function TextRow({ label, readout, value, onChange, placeholder, maxLength, layout, description, span, density, align, auto, onAutoChange, }: TextRowProps): import("react/jsx-runtime").JSX.Element;
|
|
274
|
-
/** Props for `<NumberRow>`. */
|
|
275
|
-
export interface NumberRowProps extends PropertyMetricProps {
|
|
276
|
-
label: ReactNode;
|
|
277
|
-
/** Absent reads as an empty field. */
|
|
278
|
-
value: number | null | undefined;
|
|
279
|
-
/**
|
|
280
|
-
* The committed value. Given `onInput` as well, it fires on blur or Enter;
|
|
281
|
-
* on its own it fires on every keystroke, which is what a row with one
|
|
282
|
-
* callback has always done.
|
|
283
|
-
*/
|
|
284
|
-
onChange: (next: number) => void;
|
|
285
|
-
/**
|
|
286
|
-
* The live value, fired per keystroke. Pass it alongside `onChange` when the
|
|
287
|
-
* write is expensive — cheap state here, the costly work there. Mirrors
|
|
288
|
-
* `<Slider>`'s `onInput` / `onChange` pair.
|
|
289
|
-
*/
|
|
290
|
-
onInput?: (next: number) => void;
|
|
291
|
-
min?: number;
|
|
292
|
-
max?: number;
|
|
293
|
-
step?: number;
|
|
294
|
-
placeholder?: string;
|
|
295
|
-
/**
|
|
296
|
-
* Optional suffix rendered after the field. A string becomes a dim "word"
|
|
297
|
-
* unit (e.g. "px"); pass JSX like `<sup>°</sup>` for symbol units. Display
|
|
298
|
-
* only — it never participates in parsing, and the value stays a number.
|
|
299
|
-
*/
|
|
300
|
-
unit?: ReactNode;
|
|
301
|
-
layout?: PropertyRowLayout;
|
|
302
|
-
description?: string;
|
|
303
|
-
/** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
|
|
304
|
-
readout?: ReactNode;
|
|
305
|
-
/** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
|
|
306
|
-
span?: boolean;
|
|
307
|
-
/** The row is auto — see `<PropertyRow auto>`. */
|
|
308
|
-
auto?: boolean;
|
|
309
|
-
/** Toggles `auto` from the row's label — see `<PropertyRow onAutoChange>`. */
|
|
310
|
-
onAutoChange?: (next: boolean) => void;
|
|
311
|
-
}
|
|
312
|
-
/** A number typed directly. Reach for `<SliderRow>` when the range matters
|
|
313
|
-
* more than the exact value. */
|
|
314
|
-
export declare function NumberRow({ label, readout, value, onChange, onInput, min, max, step, placeholder, unit, layout, description, span, density, align, auto, onAutoChange, }: NumberRowProps): import("react/jsx-runtime").JSX.Element;
|
|
315
|
-
export interface PropertyOption<T extends string> {
|
|
316
|
-
value: T;
|
|
317
|
-
label: ReactNode;
|
|
318
|
-
}
|
|
319
|
-
/** Props for `<SelectRow>`. */
|
|
320
|
-
export interface SelectRowProps<T extends string> extends PropertyMetricProps {
|
|
321
|
-
label: ReactNode;
|
|
322
|
-
/** Absent, or not one of `options`, shows a placeholder rather than the first option. */
|
|
323
|
-
value: T | undefined;
|
|
324
|
-
options: ReadonlyArray<PropertyOption<T>>;
|
|
325
|
-
onChange: (next: T) => void;
|
|
326
|
-
/** Shown while no option is chosen. Defaults to "Choose option…". */
|
|
327
|
-
placeholder?: string;
|
|
328
|
-
layout?: PropertyRowLayout;
|
|
329
|
-
description?: string;
|
|
330
|
-
/** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
|
|
331
|
-
readout?: ReactNode;
|
|
332
|
-
/** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
|
|
333
|
-
span?: boolean;
|
|
334
|
-
/** The row is auto — see `<PropertyRow auto>`. */
|
|
335
|
-
auto?: boolean;
|
|
336
|
-
/** Toggles `auto` from the row's label — see `<PropertyRow onAutoChange>`. */
|
|
337
|
-
onAutoChange?: (next: boolean) => void;
|
|
338
|
-
}
|
|
339
|
-
/** A dropdown over a fixed set of choices. Prefer `<ToggleRow>` when there
|
|
340
|
-
* are only two or three and they should all stay visible. */
|
|
341
|
-
export declare function SelectRow<T extends string>({ label, readout, value, options, onChange, placeholder, layout, description, span, density, align, auto, onAutoChange, }: SelectRowProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
342
|
-
/** Props for `<ToggleRow>`. */
|
|
343
|
-
export interface ToggleRowProps<T extends string> extends PropertyMetricProps {
|
|
344
|
-
label: ReactNode;
|
|
345
|
-
value: T;
|
|
346
|
-
options: ReadonlyArray<PropertyOption<T>>;
|
|
347
|
-
onChange: (next: T) => void;
|
|
348
|
-
layout?: PropertyRowLayout;
|
|
349
|
-
description?: string;
|
|
350
|
-
/** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
|
|
351
|
-
readout?: ReactNode;
|
|
352
|
-
/** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
|
|
353
|
-
span?: boolean;
|
|
354
|
-
/** The row is auto — see `<PropertyRow auto>`. */
|
|
355
|
-
auto?: boolean;
|
|
356
|
-
/** Toggles `auto` from the row's label — see `<PropertyRow onAutoChange>`. */
|
|
357
|
-
onAutoChange?: (next: boolean) => void;
|
|
153
|
+
chrome?: PropertyFieldChrome;
|
|
358
154
|
}
|
|
359
|
-
/**
|
|
360
|
-
*
|
|
361
|
-
export declare function
|
|
155
|
+
/** The label-plus-control frame `<PropertyField>` draws its rows in. Use it
|
|
156
|
+
* directly for a control no field kind covers. */
|
|
157
|
+
export declare function PropertyRow({ label, readout, description, variant, layout, span, children, htmlFor, group, className, density, align, auto, onAutoChange, chrome, }: PropertyRowProps): import("react/jsx-runtime").JSX.Element;
|
|
362
158
|
//# sourceMappingURL=PropertyPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyPanel.d.ts","sourceRoot":"","sources":["../../../src/components/Properties/PropertyPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"PropertyPanel.d.ts","sourceRoot":"","sources":["../../../src/components/Properties/PropertyPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAwB,MAAM,OAAO,CAAC;AAExF,OAAO,EAAE,KAAK,WAAW,EAAa,MAAM,WAAW,CAAC;AAExD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG3D;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE3D;qDACqD;AACrD,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,UAAU,CAAC;AAEpE;qDACqD;AACrD,MAAM,WAAW,mBAAmB;IAClC,gFAAgF;IAChF,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAeD;6EAC6E;AAC7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actNode } from 'react';
|
|
2
|
+
import { type StanceProps } from '../stance';
|
|
3
|
+
import { type PropertyMetricProps } from './PropertyPanel';
|
|
4
|
+
/** Props for `<Subpanel>`. */
|
|
5
|
+
export interface SubpanelProps extends PropertyMetricProps, StanceProps {
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
/** A typographic divider inside a property list: a small title flanked by a
|
|
11
|
+
* rule. Purely a heading — use `<PropertyGroup>` for a bordered section. A
|
|
12
|
+
* stance or tone colors the title and rule. */
|
|
13
|
+
export declare function Subpanel({ title, children, className, density, align, stance, tone }: SubpanelProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=Subpanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Subpanel.d.ts","sourceRoot":"","sources":["../../../src/components/Properties/Subpanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,KAAK,WAAW,EAAa,MAAM,WAAW,CAAC;AAExD,OAAO,EAAE,KAAK,mBAAmB,EAAuB,MAAM,iBAAiB,CAAC;AAEhF,8BAA8B;AAC9B,MAAM,WAAW,aAAc,SAAQ,mBAAmB,EAAE,WAAW;IACrE,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;gDAEgD;AAChD,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,aAAa,2CAWnG"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export type { CurveFieldProps, CurveMark } from './CurveField';
|
|
2
2
|
export { CurveField } from './CurveField';
|
|
3
|
-
export type {
|
|
4
|
-
export {
|
|
3
|
+
export type { DialogRowProps } from './DialogRow';
|
|
4
|
+
export { DialogRow } from './DialogRow';
|
|
5
5
|
export type { PropertyGroupProps } from './PropertyGroup';
|
|
6
6
|
export { PropertyGroup } from './PropertyGroup';
|
|
7
|
-
export type {
|
|
8
|
-
export {
|
|
7
|
+
export type { PropertyBooleanFieldProps, PropertyColorFieldProps, PropertyControlProps, PropertyEnumFieldProps, PropertyFieldChrome, PropertyFieldKind, PropertyFieldProps, PropertyFieldRowProps, PropertyFontFamilyFieldProps, PropertyNumberFieldProps, PropertyOption, PropertyPaintFieldProps, PropertyStringFieldProps, } from './PropertyField';
|
|
8
|
+
export { PropertyControl, PropertyField } from './PropertyField';
|
|
9
|
+
export type { PropertyAlign, PropertyDensity, PropertyListPack, PropertyListProps, PropertyMetricProps, PropertyNoteProps, PropertyPanelProps, PropertyRowLayout, PropertyRowProps, PropertyRowVariant, PropertySpanProps, } from './PropertyPanel';
|
|
10
|
+
export { PropertyList, PropertyNote, PropertyPanel, PropertyRow, PropertySpan, } from './PropertyPanel';
|
|
11
|
+
export type { SubpanelProps } from './Subpanel';
|
|
12
|
+
export { Subpanel } from './Subpanel';
|
|
9
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Properties/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Properties/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EACV,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,4BAA4B,EAC5B,wBAAwB,EACxB,cAAc,EACd,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACjE,YAAY,EACV,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,WAAW,EACX,YAAY,GACb,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../../chunks/Properties-Bbneh1ws.js";
|
|
2
|
+
import { a as i, i as a, n as o, o as s, r as c, s as l, t as u } from "../../chunks/PropertyField-CDb19d3F.js";
|
|
3
|
+
export { e as CurveField, n as DialogRow, u as PropertyControl, o as PropertyField, t as PropertyGroup, c as PropertyList, a as PropertyNote, i as PropertyPanel, s as PropertyRow, l as PropertySpan, r as Subpanel };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storyLayouts.d.ts","sourceRoot":"","sources":["../../../src/components/Properties/storyLayouts.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"storyLayouts.d.ts","sourceRoot":"","sources":["../../../src/components/Properties/storyLayouts.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;IAAE,KAAK,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,SAAS,CAAA;CAAE,2CAapF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../chunks/RadioGroup-
|
|
1
|
+
import { n as e, t } from "../../chunks/RadioGroup-BK2mD6Q0.js";
|
|
2
2
|
export { t as Radio, e as RadioGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../chunks/RangeSlider-
|
|
1
|
+
import { t as e } from "../../chunks/RangeSlider-BiRAOsTh.js";
|
|
2
2
|
export { e as RangeSlider };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../chunks/ResizeHandle-
|
|
1
|
+
import { t as e } from "../../chunks/ResizeHandle-Cc6EOehs.js";
|
|
2
2
|
export { e as ResizeHandle };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type SelectProps as RACSelectProps, type ListBoxItemProps as RACListBoxItemProps, type ValidationResult } from 'react-aria-components';
|
|
3
|
+
import { type FieldOrientation } from '../Field/Field';
|
|
3
4
|
import { type OverlayPortalProps } from '../../overlays/portalHost';
|
|
5
|
+
import { type SegmentTooltipFields } from '../segmentTooltip';
|
|
4
6
|
/** One option in a {@link Select}'s `options` list. */
|
|
5
7
|
export type SelectOption = {
|
|
6
8
|
value: string;
|
|
@@ -14,6 +16,13 @@ export type SelectOption = {
|
|
|
14
16
|
*/
|
|
15
17
|
textValue?: string;
|
|
16
18
|
};
|
|
19
|
+
/** A titled group of options in a {@link Select}'s `options` list. */
|
|
20
|
+
export type SelectOptionGroup<T extends Key = string> = {
|
|
21
|
+
title: ReactNode;
|
|
22
|
+
options: ReadonlyArray<SelectOption & {
|
|
23
|
+
value: T;
|
|
24
|
+
}>;
|
|
25
|
+
};
|
|
17
26
|
type Key = string | number;
|
|
18
27
|
/** How a {@link Select} trigger signals that it opens a list. */
|
|
19
28
|
export type SelectIndicator = 'chevron' | 'underline' | 'none';
|
|
@@ -25,13 +34,22 @@ export type SelectPopup = 'over' | 'below';
|
|
|
25
34
|
*/
|
|
26
35
|
export type SelectProps<T extends Key = string> = Omit<RACSelectProps<object>, 'children' | 'className' | 'selectedKey' | 'defaultSelectedKey' | 'onSelectionChange'> & {
|
|
27
36
|
label?: ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* `'stacked'` (the default) puts the label above the trigger; `'row'` sets it
|
|
39
|
+
* beside the trigger at its own width, with any description or error on a
|
|
40
|
+
* line below. Same vocabulary as {@link Field}'s `orientation`.
|
|
41
|
+
*/
|
|
42
|
+
orientation?: FieldOrientation;
|
|
28
43
|
description?: ReactNode;
|
|
29
44
|
errorMessage?: ReactNode | ((v: ValidationResult) => ReactNode);
|
|
30
45
|
placeholder?: string;
|
|
31
|
-
/**
|
|
32
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Either pass `options` for a quick render, or `children` for full control.
|
|
48
|
+
* An entry with `title` and `options` of its own is a titled section.
|
|
49
|
+
*/
|
|
50
|
+
options?: ReadonlyArray<(SelectOption & {
|
|
33
51
|
value: T;
|
|
34
|
-
}
|
|
52
|
+
}) | SelectOptionGroup<T>>;
|
|
35
53
|
children?: ReactNode;
|
|
36
54
|
selectedKey?: T | null;
|
|
37
55
|
defaultSelectedKey?: T;
|
|
@@ -65,16 +83,31 @@ export type SelectProps<T extends Key = string> = Omit<RACSelectProps<object>, '
|
|
|
65
83
|
*/
|
|
66
84
|
triggerId?: string;
|
|
67
85
|
className?: string;
|
|
68
|
-
} & OverlayPortalProps;
|
|
86
|
+
} & SegmentTooltipFields & OverlayPortalProps;
|
|
69
87
|
/**
|
|
70
88
|
* Form select wrapping React Aria's Select. Pass either `options` for a
|
|
71
89
|
* quick declarative render or `children` of `<SelectItem>` for control over
|
|
72
|
-
* each row
|
|
90
|
+
* each row; `<SelectSection>` (or an `options` entry with a `title`) groups
|
|
91
|
+
* rows under a heading.
|
|
73
92
|
*
|
|
74
93
|
* The selection key type is parameterized so consumers with a string-literal
|
|
75
94
|
* union for `value` (e.g. `'r' | 'g' | 'b'`) get a typed `onSelectionChange`.
|
|
95
|
+
*
|
|
96
|
+
* `shortcut` puts a kit tooltip on the trigger reading `Name (⌘K)`, named by
|
|
97
|
+
* `aria-label` or a string `label`, as `Button` does; `tooltip` replaces that
|
|
98
|
+
* text.
|
|
76
99
|
*/
|
|
77
100
|
export declare function Select<T extends Key = string>(props: SelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
101
|
+
/** Props for {@link SelectSection}. */
|
|
102
|
+
export type SelectSectionProps = {
|
|
103
|
+
/** Heading shown above the section's rows; it also names the group for
|
|
104
|
+
* screen readers. */
|
|
105
|
+
title?: ReactNode;
|
|
106
|
+
children?: ReactNode;
|
|
107
|
+
className?: string;
|
|
108
|
+
};
|
|
109
|
+
/** A titled group of `SelectItem` rows in a {@link Select}'s list. */
|
|
110
|
+
export declare function SelectSection({ title, children, className }: SelectSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
78
111
|
/** Props for {@link SelectItem}, on top of React Aria's `ListBoxItem` props. */
|
|
79
112
|
export type SelectItemProps = Omit<RACListBoxItemProps, 'className' | 'children'> & {
|
|
80
113
|
children?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;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AClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,sEAAsE;AACtE,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,kBAAkB,2CAO/E;AAED,gFAAgF;AAChF,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,mBAAmB,EAAE,WAAW,GAAG,UAAU,CAAC,GAAG;IAClF,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAgBF;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,2CAatF"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Select, SelectItem } from './Select';
|
|
2
|
-
export type { SelectProps, SelectItemProps, SelectOption, SelectIndicator, SelectPopup, } from './Select';
|
|
1
|
+
export { Select, SelectItem, SelectSection } from './Select';
|
|
2
|
+
export type { SelectProps, SelectItemProps, SelectOption, SelectOptionGroup, SelectSectionProps, SelectIndicator, SelectPopup, } from './Select';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC7D,YAAY,EACV,WAAW,EACX,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,WAAW,GACZ,MAAM,UAAU,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../chunks/Select-
|
|
2
|
-
export {
|
|
1
|
+
import { n as e, r as t, t as n } from "../../chunks/Select-DVValBe1.js";
|
|
2
|
+
export { n as Select, e as SelectItem, t as SelectSection };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as e, l as t, n, o as r, r as i, s as a, t as o } from "../../chunks/model-
|
|
2
|
-
import { t as s } from "../../chunks/SelectionPanel-
|
|
1
|
+
import { i as e, l as t, n, o as r, r as i, s as a, t as o } from "../../chunks/model-BQMvTLnW.js";
|
|
2
|
+
import { t as s } from "../../chunks/SelectionPanel-C5LmZA7b.js";
|
|
3
3
|
export { o as MIXED, s as SelectionPanel, n as aggregateValue, i as classifyKind, e as effectiveSections, r as kindBreakdown, a as nodeValueAt, t as setAtPath };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* rendered
|
|
4
|
-
* toggles into a single segmented bar.
|
|
2
|
+
* A selection's leaves as cells: one `ToolPrefLeaf` and its aggregated value
|
|
3
|
+
* in, one rendered cell out, plus the run logic that turns a row of paired
|
|
4
|
+
* toggles into a single segmented bar and the rows of an object leaf.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* tool's options through the same
|
|
9
|
-
* decided once rather than once per surface.
|
|
6
|
+
* The control itself is `PropertyControl`'s, through `prefFieldProps`; what
|
|
7
|
+
* is decided here is how a selection surface sizes and composes it.
|
|
8
|
+
* `ToolOptionsBar` renders a tool's options through the same functions.
|
|
10
9
|
*/
|
|
11
10
|
import { type ReactNode } from 'react';
|
|
12
|
-
import {
|
|
11
|
+
import type { ToolPrefLeaf } from '@weasel-js/core';
|
|
13
12
|
/** What a {@link PropertyRenderer} is given for the property it is rendering. */
|
|
14
13
|
export interface PropertyRenderContext {
|
|
15
14
|
/** Dotted node path of the leaf (`pose.x`, `data.fill`). */
|
|
@@ -53,6 +52,13 @@ export interface PropertyRenderContext {
|
|
|
53
52
|
value: unknown;
|
|
54
53
|
mixed: boolean;
|
|
55
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* The ids of the nodes the values were read from, joined. It changes exactly
|
|
57
|
+
* when the selection does, so a control holding scratch that belongs to one
|
|
58
|
+
* selection can key on it and be remounted rather than carry it to the next.
|
|
59
|
+
* Absent where the values come from no selection, as in a tool options bar.
|
|
60
|
+
*/
|
|
61
|
+
selectionKey?: string;
|
|
56
62
|
}
|
|
57
63
|
/**
|
|
58
64
|
* Renders the control for one property across the whole selection.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderLeaf.d.ts","sourceRoot":"","sources":["../../../src/components/SelectionPanel/renderLeaf.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"renderLeaf.d.ts","sourceRoot":"","sources":["../../../src/components/SelectionPanel/renderLeaf.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EAGV,YAAY,EAEb,MAAM,iBAAiB,CAAC;AASzB,iFAAiF;AACjF,MAAM,WAAW,qBAAqB;IACpC,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,IAAI,EAAE,YAAY,CAAC;IACnB,8EAA8E;IAC9E,KAAK,EAAE,OAAO,CAAC;IACf,sDAAsD;IACtD,KAAK,EAAE,OAAO,CAAC;IACf;;;;;;;OAOG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,yEAAyE;IACzE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC;;;;;;;;OAQG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK;QAAE,KAAK,EAAE,O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chunks/Sidebar-DKKd4R-x.js";
|
|
2
2
|
export { e as Sidebar };
|
|
@@ -11,7 +11,7 @@ export interface SidebarPanelProps {
|
|
|
11
11
|
collapsed?: boolean;
|
|
12
12
|
/**
|
|
13
13
|
* Click handler for the title row. When provided, the header renders
|
|
14
|
-
* as a button (
|
|
14
|
+
* as a button (fold mark + label) and acts as the collapse toggle.
|
|
15
15
|
* When omitted, the title is static text and the panel can't collapse.
|
|
16
16
|
*/
|
|
17
17
|
onToggleCollapse?(): void;
|
|
@@ -28,7 +28,7 @@ export interface SidebarPanelProps {
|
|
|
28
28
|
* Generic collapsible panel section for sidebars. Pure presentation —
|
|
29
29
|
* caller manages `collapsed`/`hidden` state externally (the pattern is
|
|
30
30
|
* to drive it from app prefs so the Preferences modal and inline
|
|
31
|
-
*
|
|
31
|
+
* fold marks toggle the same map).
|
|
32
32
|
*
|
|
33
33
|
* Pair with `<Sidebar>` for the docked column layout.
|
|
34
34
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarPanel/SidebarPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,sCAAsC;AACtC,MAAM,WAAW,iBAAiB;IAChC,gDAAgD;IAChD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,CAAC,IAAI,IAAI,CAAC;IAC1B;;;;OAIG;IACH,MAAM,CAAC,IAAI,IAAI,CAAC;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"SidebarPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarPanel/SidebarPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,sCAAsC;AACtC,MAAM,WAAW,iBAAiB;IAChC,gDAAgD;IAChD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,CAAC,IAAI,IAAI,CAAC;IAC1B;;;;OAIG;IACH,MAAM,CAAC,IAAI,IAAI,CAAC;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CAyCpD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../chunks/SidebarPanel-
|
|
1
|
+
import { t as e } from "../../chunks/SidebarPanel-u5NsuAZY.js";
|
|
2
2
|
export { e as SidebarPanel };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../chunks/Slider-
|
|
1
|
+
import { t as e } from "../../chunks/Slider-BwRrWHFW.js";
|
|
2
2
|
export { e as Slider };
|