@weasel-js/ui 1.5.1 → 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-Bf8Rd1R6.js → Badge-DZ0lFs14.js} +755 -738
- package/dist/chunks/Badge-DZ0lFs14.js.map +1 -0
- package/dist/chunks/{BandEditor-D8I5Uun-.js → BandEditor-D-nVrVO4.js} +44 -44
- package/dist/chunks/BandEditor-D-nVrVO4.js.map +1 -0
- 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-BZZsPaVF.js → Checkbox-ChZz30Ds.js} +5 -5
- package/dist/chunks/Checkbox-ChZz30Ds.js.map +1 -0
- package/dist/chunks/Code-v4tDWuuN.js +24 -0
- package/dist/chunks/Code-v4tDWuuN.js.map +1 -0
- package/dist/chunks/{ColorField-YVf8irfr.js → ColorField-DJSCuSJv.js} +15 -15
- package/dist/chunks/{ColorField-YVf8irfr.js.map → ColorField-DJSCuSJv.js.map} +1 -1
- package/dist/chunks/ColorModeControl-JOEiqtE0.js +47 -0
- package/dist/chunks/ColorModeControl-JOEiqtE0.js.map +1 -0
- package/dist/chunks/{ComboBox-D57tNYDD.js → ComboBox-C1JgIpML.js} +13 -13
- package/dist/chunks/ComboBox-C1JgIpML.js.map +1 -0
- package/dist/chunks/{CurveEditor-BXiMoN9d.js → CurveEditor-f1R4kSbD.js} +2 -2
- package/dist/chunks/{CurveEditor-BXiMoN9d.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-BWNSv07Z.js → DetentSlider-BYyaZha6.js} +2 -2
- package/dist/chunks/{DetentSlider-BWNSv07Z.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-BNqvUJfg.js → Field-xbqRmjsI.js} +6 -6
- package/dist/chunks/Field-xbqRmjsI.js.map +1 -0
- package/dist/chunks/FillStrokeSwatch-BViKXIPx.js +111 -0
- package/dist/chunks/FillStrokeSwatch-BViKXIPx.js.map +1 -0
- package/dist/chunks/{FontFamilySelect-CO19kyOO.js → FontFamilySelect-r9TV_xIH.js} +2 -2
- package/dist/chunks/{FontFamilySelect-CO19kyOO.js.map → FontFamilySelect-r9TV_xIH.js.map} +1 -1
- package/dist/chunks/GradientEditor-BRTxHG-W.js +333 -0
- package/dist/chunks/GradientEditor-BRTxHG-W.js.map +1 -0
- package/dist/chunks/{Icon-QhLhaGFe.js → Icon-BW0qv_U7.js} +50 -21
- 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-B9Vh7ASP.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-BYrxbAQU.js → Jog-LPoac9s4.js} +10 -10
- package/dist/chunks/Jog-LPoac9s4.js.map +1 -0
- package/dist/chunks/{Keycaps-CGNQV2Pz.js → Keycaps-CKiKOJnJ.js} +75 -69
- 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-CQzS6TjF.js → NumberField-C1Y7zP-a.js} +27 -22
- package/dist/chunks/NumberField-C1Y7zP-a.js.map +1 -0
- package/dist/chunks/{OptionsBar-BWaYG_OH.js → OptionsBar-DlcagPYK.js} +3 -3
- package/dist/chunks/{OptionsBar-BWaYG_OH.js.map → OptionsBar-DlcagPYK.js.map} +1 -1
- package/dist/chunks/{PaintField-BVYMu3OI.js → PaintField-B2mLRZa4.js} +20 -20
- package/dist/chunks/PaintField-B2mLRZa4.js.map +1 -0
- package/dist/chunks/{PaintInput-BzAHCKro.js → PaintInput-BFKhd83I.js} +27 -27
- package/dist/chunks/PaintInput-BFKhd83I.js.map +1 -0
- package/dist/chunks/{PatternPicker-C4OryrYi.js → PatternPicker-DdfpxoQy.js} +6 -6
- package/dist/chunks/PatternPicker-DdfpxoQy.js.map +1 -0
- package/dist/chunks/{Plot2D-Czvyt_vG.js → Plot2D-lyO7waPQ.js} +1 -1
- package/dist/chunks/{Plot2D-Czvyt_vG.js.map → Plot2D-lyO7waPQ.js.map} +1 -1
- package/dist/chunks/{PointPlotter-Xvb98GwB.js → PointPlotter-DGs9i5P-.js} +2 -2
- package/dist/chunks/{PointPlotter-Xvb98GwB.js.map → PointPlotter-DGs9i5P-.js.map} +1 -1
- package/dist/chunks/{Powerline-B_EH-7Z-.js → Powerline-DBEPceLE.js} +7 -5
- 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-C6xpdQNg.js → RadioGroup-BK2mD6Q0.js} +6 -6
- package/dist/chunks/RadioGroup-BK2mD6Q0.js.map +1 -0
- package/dist/chunks/{RangeSlider-CzgeGLVS.js → RangeSlider-BiRAOsTh.js} +8 -8
- package/dist/chunks/RangeSlider-BiRAOsTh.js.map +1 -0
- package/dist/chunks/{ResizeHandle-1Ey8AOij.js → ResizeHandle-Cc6EOehs.js} +9 -9
- package/dist/chunks/{ResizeHandle-1Ey8AOij.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-C5LmZA7b.js +103 -0
- package/dist/chunks/SelectionPanel-C5LmZA7b.js.map +1 -0
- package/dist/chunks/{Sidebar-BlUjn8lD.js → Sidebar-DKKd4R-x.js} +4 -4
- package/dist/chunks/Sidebar-DKKd4R-x.js.map +1 -0
- package/dist/chunks/{SidebarPanel-BqHfz6VK.js → SidebarPanel-u5NsuAZY.js} +15 -19
- package/dist/chunks/SidebarPanel-u5NsuAZY.js.map +1 -0
- package/dist/chunks/{Slider-B2ywUZH6.js → Slider-BwRrWHFW.js} +58 -58
- package/dist/chunks/Slider-BwRrWHFW.js.map +1 -0
- package/dist/chunks/{StatusBar-BFt7Yw5O.js → StatusBar-CdPdmmda.js} +6 -6
- package/dist/chunks/StatusBar-CdPdmmda.js.map +1 -0
- package/dist/chunks/SwatchGrid-C-Zx2Exd.js +73 -0
- package/dist/chunks/SwatchGrid-C-Zx2Exd.js.map +1 -0
- package/dist/chunks/{Switch-Om3t3ASc.js → Switch-DxF7TsEu.js} +5 -5
- package/dist/chunks/Switch-DxF7TsEu.js.map +1 -0
- package/dist/chunks/{Tabs-EAvYywil.js → Tabs-GXEfoe3o.js} +5 -5
- package/dist/chunks/Tabs-GXEfoe3o.js.map +1 -0
- package/dist/chunks/{Timeline-BEyKaBXl.js → Timeline-SgmpQtUV.js} +128 -132
- package/dist/chunks/Timeline-SgmpQtUV.js.map +1 -0
- package/dist/chunks/{Toast-iqLDD_XZ.js → Toast-BfcljZz6.js} +15 -15
- package/dist/chunks/Toast-BfcljZz6.js.map +1 -0
- package/dist/chunks/ToggleBar-Btnl5r7F.js +80 -0
- package/dist/chunks/ToggleBar-Btnl5r7F.js.map +1 -0
- package/dist/chunks/TokenPanel-5ajHEHha.js +634 -0
- package/dist/chunks/TokenPanel-5ajHEHha.js.map +1 -0
- package/dist/chunks/{ToolButton-Dd-1T5aX.js → ToolButton-rzqlFlAc.js} +9 -9
- package/dist/chunks/ToolButton-rzqlFlAc.js.map +1 -0
- package/dist/chunks/{ToolGroup-BBI-W-Gm.js → ToolGroup-4bUBV5k6.js} +3 -3
- package/dist/chunks/ToolGroup-4bUBV5k6.js.map +1 -0
- package/dist/chunks/ToolOptionsBar-BF3TNXA3.js +85 -0
- package/dist/chunks/ToolOptionsBar-BF3TNXA3.js.map +1 -0
- package/dist/chunks/ToolPalette-Uw4PvWwa.js +83 -0
- package/dist/chunks/ToolPalette-Uw4PvWwa.js.map +1 -0
- package/dist/chunks/Tooltip-9XiJF937.js +42 -0
- 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-7j7ukrSx.js → createKeyframeLayer-BzDRCrrh.js} +71 -71
- package/dist/chunks/{createKeyframeLayer-7j7ukrSx.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-6S8IzXVt.js +89 -0
- 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-B0WQwetQ.js → snap-DC4Km8xG.js} +1 -1
- package/dist/chunks/{snap-B0WQwetQ.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/oklch.d.ts +2 -1
- package/dist/color/oklch.d.ts.map +1 -1
- 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/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/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 +32 -1
- 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 +18 -3
- package/dist/components/Properties/PropertyGroup.d.ts.map +1 -1
- package/dist/components/Properties/PropertyPanel.d.ts +50 -256
- 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 -6
- 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 +56 -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/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 +112 -0
- package/dist/components/SelectionPanel/renderLeaf.d.ts.map +1 -0
- 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/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.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 +13 -3
- 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 +11 -1
- 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 -84
- 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 +8 -6
- package/dist/useRovingTabIndex.d.ts.map +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-GZdcfdQL.js +0 -62
- package/dist/chunks/ActionBar-GZdcfdQL.js.map +0 -1
- package/dist/chunks/ActionsBar-Fhx_40iP.js +0 -41
- package/dist/chunks/ActionsBar-Fhx_40iP.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 +0 -90
- package/dist/chunks/Button-CExdkQcU.js.map +0 -1
- package/dist/chunks/Callout-cx5_CWcW.js +0 -122
- package/dist/chunks/Callout-cx5_CWcW.js.map +0 -1
- package/dist/chunks/Checkbox-BZZsPaVF.js.map +0 -1
- package/dist/chunks/ComboBox-D57tNYDD.js.map +0 -1
- package/dist/chunks/DataGrid-BVdDMZkQ.js +0 -104
- package/dist/chunks/DataGrid-BVdDMZkQ.js.map +0 -1
- package/dist/chunks/Dialog-DuOzsR2g.js +0 -61
- package/dist/chunks/Dialog-DuOzsR2g.js.map +0 -1
- package/dist/chunks/Disclosure-9UgDzc7Z.js +0 -47
- 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 +0 -333
- package/dist/chunks/GradientEditor-B_ymIr4Q.js.map +0 -1
- package/dist/chunks/Icon-QhLhaGFe.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-B9Vh7ASP.js.map +0 -1
- package/dist/chunks/ItemList-BZJQReXD.js +0 -42
- package/dist/chunks/ItemList-BZJQReXD.js.map +0 -1
- package/dist/chunks/Jog-BYrxbAQU.js.map +0 -1
- package/dist/chunks/Keycaps-CGNQV2Pz.js.map +0 -1
- package/dist/chunks/LayerStack-DOylrQcm.js +0 -142
- package/dist/chunks/LayerStack-DOylrQcm.js.map +0 -1
- package/dist/chunks/MenuButton-DGE-0DP0.js +0 -60
- package/dist/chunks/MenuButton-DGE-0DP0.js.map +0 -1
- package/dist/chunks/MeshEditor-CHoGQ9K8.js +0 -123
- 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 +0 -874
- 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 +0 -75
- 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 +0 -97
- package/dist/chunks/ToolPalette-BmTDDpmz.js.map +0 -1
- package/dist/chunks/Tooltip-BHre_vbI.js +0 -42
- package/dist/chunks/Tooltip-BHre_vbI.js.map +0 -1
- package/dist/chunks/icons-Btrs-JD7.js +0 -165
- package/dist/chunks/icons-Btrs-JD7.js.map +0 -1
- package/dist/chunks/number-f6PydOZK.js +0 -52
- package/dist/chunks/number-f6PydOZK.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-MCVT1MLv.js +0 -47
- 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/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
- package/dist/components/Properties/PinDot.d.ts +0 -18
- package/dist/components/Properties/PinDot.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;
|
|
@@ -71,6 +89,17 @@ export interface PropertySpanProps {
|
|
|
71
89
|
* everything else a consumer puts in the grid.
|
|
72
90
|
*/
|
|
73
91
|
export declare function PropertySpan({ children, className }: PropertySpanProps): import("react/jsx-runtime").JSX.Element;
|
|
92
|
+
/** Props for `<PropertyNote>`. */
|
|
93
|
+
export interface PropertyNoteProps {
|
|
94
|
+
children: ReactNode;
|
|
95
|
+
className?: string;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Muted paragraph that spans both columns of the grid — a group's help text,
|
|
99
|
+
* sitting above the rows it describes rather than beside one of them.
|
|
100
|
+
* `<PropertyRow description>` covers the per-row case.
|
|
101
|
+
*/
|
|
102
|
+
export declare function PropertyNote({ children, className }: PropertyNoteProps): import("react/jsx-runtime").JSX.Element;
|
|
74
103
|
/** Which control shape a row holds, which decides its intrinsic layout. */
|
|
75
104
|
export type PropertyRowVariant = 'default' | 'color' | 'checkbox';
|
|
76
105
|
/** Whether a row's label sits above its control or beside it. */
|
|
@@ -106,259 +135,24 @@ export interface PropertyRowProps extends PropertyMetricProps {
|
|
|
106
135
|
* member has to carry its own name. */
|
|
107
136
|
group?: boolean;
|
|
108
137
|
className?: string;
|
|
109
|
-
/** The row is auto: its value is not pinned and the owner computes it.
|
|
110
|
-
* the
|
|
111
|
-
|
|
112
|
-
/** Given, the row carries a pin dot that toggles `auto`. Omitted, the row can
|
|
113
|
-
* show an auto state but not change it. */
|
|
114
|
-
onAutoChange?: (next: boolean) => void;
|
|
115
|
-
/** Marks the row's element for a panel-level gesture handler. `PropertyRow`
|
|
116
|
-
* does not spread unknown props, so this is declared rather than inherited. */
|
|
117
|
-
'data-auto-path'?: string;
|
|
118
|
-
}
|
|
119
|
-
/** The label-plus-control frame every typed row below is built from. Use it
|
|
120
|
-
* directly for a control this module does not cover. */
|
|
121
|
-
export declare function PropertyRow({ label, readout, description, variant, layout, span, children, htmlFor, group, className, density, align, auto, onAutoChange, 'data-auto-path': autoPath, }: PropertyRowProps): import("react/jsx-runtime").JSX.Element;
|
|
122
|
-
/** Props for `<SliderRow>`. */
|
|
123
|
-
export interface SliderRowProps extends PropertyMetricProps {
|
|
124
|
-
label: ReactNode;
|
|
125
|
-
value: number;
|
|
126
|
-
min: number;
|
|
127
|
-
max: number;
|
|
128
|
-
step?: number;
|
|
129
|
-
/**
|
|
130
|
-
* The committed value. Given `onInput` as well, it fires once a drag ends
|
|
131
|
-
* or a typed readout is accepted; on its own it fires on every move, which
|
|
132
|
-
* is what a row with one callback has always done.
|
|
133
|
-
*/
|
|
134
|
-
onChange: (next: number) => void;
|
|
135
|
-
/**
|
|
136
|
-
* The live value, fired continuously through a drag. Pass it alongside
|
|
137
|
-
* `onChange` when the write is expensive — cheap state here, the costly
|
|
138
|
-
* work there. Mirrors `<Slider>`'s `onInput` / `onChange` pair.
|
|
139
|
-
*/
|
|
140
|
-
onInput?: (next: number) => void;
|
|
141
|
-
/** Override how the value is rendered next to the label. Defaults to `value.toString()`. */
|
|
142
|
-
format?: (value: number) => ReactNode;
|
|
143
|
-
/**
|
|
144
|
-
* Static text in place of the editable readout. Use it when the row is not
|
|
145
|
-
* showing a number a caller could type back — an auto row's `auto · 18`, say,
|
|
146
|
-
* which an editable field would seed a draft with and then fail to parse.
|
|
147
|
-
*/
|
|
148
|
-
readout?: ReactNode;
|
|
149
|
-
/** A named display for the value: `compact` reads `2.0M`. `format` wins when both are given. */
|
|
150
|
-
notation?: PrefNumberFormat;
|
|
151
|
-
/**
|
|
152
|
-
* Optional suffix rendered next to the readout. A string becomes a
|
|
153
|
-
* baseline-aligned dim "word" unit (e.g. "px"); pass JSX like `<sup>°</sup>`
|
|
154
|
-
* to get the browser's native super positioning for symbol units.
|
|
155
|
-
*/
|
|
156
|
-
unit?: ReactNode;
|
|
157
|
-
layout?: PropertyRowLayout;
|
|
158
|
-
description?: string;
|
|
159
|
-
/** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
|
|
160
|
-
span?: boolean;
|
|
161
|
-
/** The row is auto — see `<PropertyRow auto>`. */
|
|
162
|
-
auto?: boolean;
|
|
163
|
-
/** Toggles `auto` from a pin dot — see `<PropertyRow onAutoChange>`. */
|
|
164
|
-
onAutoChange?: (next: boolean) => void;
|
|
165
|
-
/** Marks the row for a panel-level gesture handler — see `<PropertyRow data-auto-path>`. */
|
|
166
|
-
'data-auto-path'?: string;
|
|
167
|
-
}
|
|
168
|
-
/** A bounded number edited by dragging, with a live readout whose precision
|
|
169
|
-
* follows `step`. */
|
|
170
|
-
export declare function SliderRow({ label, value, min, max, step, onChange, onInput, format, readout, notation, unit, layout, description, span, density, align, auto, onAutoChange, 'data-auto-path': autoPath, }: SliderRowProps): import("react/jsx-runtime").JSX.Element;
|
|
171
|
-
/** Props for `<ColorRow>`. */
|
|
172
|
-
export interface ColorRowProps extends PropertyMetricProps {
|
|
173
|
-
label: ReactNode;
|
|
174
|
-
value: string;
|
|
175
|
-
/**
|
|
176
|
-
* The committed color. Given `onInput` as well, it fires once the picker
|
|
177
|
-
* closes; on its own it fires on every move inside it, which is what a row
|
|
178
|
-
* with one callback has always done.
|
|
179
|
-
*/
|
|
180
|
-
onChange: (next: string) => void;
|
|
181
|
-
/**
|
|
182
|
-
* The live color, fired continuously while the picker is open. Pass it
|
|
183
|
-
* alongside `onChange` when the write is expensive — cheap state here, the
|
|
184
|
-
* costly work there. Mirrors `<Slider>`'s `onInput` / `onChange` pair.
|
|
185
|
-
*/
|
|
186
|
-
onInput?: (next: string) => void;
|
|
187
|
-
/** 0..1 alpha. When provided, a translucent slider renders beneath the swatch. */
|
|
188
|
-
alpha?: number;
|
|
189
|
-
/** The committed alpha, on the same terms as `onChange`. */
|
|
190
|
-
onAlphaChange?: (next: number) => void;
|
|
191
|
-
/** The live alpha, on the same terms as `onInput`. */
|
|
192
|
-
onAlphaInput?: (next: number) => void;
|
|
193
|
-
/**
|
|
194
|
-
* Render the alpha track as inert (dimmed, no thumb, not-allowed cursor).
|
|
195
|
-
* Use when the color's consumer drops alpha so the affordance reads dead.
|
|
196
|
-
*/
|
|
197
|
-
alphaDisabled?: boolean;
|
|
198
|
-
/** Label beside the swatch (default) or above it. */
|
|
199
|
-
layout?: PropertyRowLayout;
|
|
200
|
-
description?: string;
|
|
201
|
-
/** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
|
|
202
|
-
readout?: ReactNode;
|
|
203
|
-
/** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
|
|
204
|
-
span?: boolean;
|
|
205
|
-
/** The row is auto — see `<PropertyRow auto>`. */
|
|
206
|
-
auto?: boolean;
|
|
207
|
-
/** Toggles `auto` from a pin dot — see `<PropertyRow onAutoChange>`. */
|
|
208
|
-
onAutoChange?: (next: boolean) => void;
|
|
209
|
-
/** Marks the row for a panel-level gesture handler — see `<PropertyRow data-auto-path>`. */
|
|
210
|
-
'data-auto-path'?: string;
|
|
211
|
-
}
|
|
212
|
-
/** A color swatch, optionally with an alpha slider beneath it. */
|
|
213
|
-
export declare function ColorRow({ label, readout, value, onChange, onInput, alpha, onAlphaChange, onAlphaInput, alphaDisabled, layout, description, span, density, align, auto, onAutoChange, 'data-auto-path': autoPath, }: ColorRowProps): import("react/jsx-runtime").JSX.Element;
|
|
214
|
-
/** Props for `<CheckboxRow>`. */
|
|
215
|
-
export interface CheckboxRowProps extends PropertyMetricProps {
|
|
216
|
-
label: ReactNode;
|
|
217
|
-
/** Absent reads as unchecked. */
|
|
218
|
-
value: boolean | undefined;
|
|
219
|
-
onChange: (next: boolean) => void;
|
|
220
|
-
/** Label beside the box (default) or above it. */
|
|
221
|
-
layout?: PropertyRowLayout;
|
|
222
|
-
description?: string;
|
|
223
|
-
/** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
|
|
224
|
-
readout?: ReactNode;
|
|
225
|
-
/** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
|
|
226
|
-
span?: boolean;
|
|
227
|
-
/** The row is auto — see `<PropertyRow auto>`. */
|
|
228
|
-
auto?: boolean;
|
|
229
|
-
/** Toggles `auto` from a pin dot — see `<PropertyRow onAutoChange>`. */
|
|
230
|
-
onAutoChange?: (next: boolean) => void;
|
|
231
|
-
/** Marks the row for a panel-level gesture handler — see `<PropertyRow data-auto-path>`. */
|
|
232
|
-
'data-auto-path'?: string;
|
|
233
|
-
}
|
|
234
|
-
/** A boolean checkbox. */
|
|
235
|
-
export declare function CheckboxRow({ label, readout, value, onChange, layout, span, description, density, align, auto, onAutoChange, 'data-auto-path': autoPath, }: CheckboxRowProps): import("react/jsx-runtime").JSX.Element;
|
|
236
|
-
/** Props for `<SwitchRow>`. */
|
|
237
|
-
export interface SwitchRowProps extends Omit<CheckboxRowProps, 'value'> {
|
|
238
|
-
/** Absent reads as off. */
|
|
239
|
-
value: boolean | undefined;
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* A boolean switch — the same row as `<CheckboxRow>`, drawn as an on/off
|
|
243
|
-
* toggle. Reach for it where the change takes effect immediately, and for
|
|
244
|
-
* a checkbox where it is submitted with a form.
|
|
245
|
-
*/
|
|
246
|
-
export declare function SwitchRow({ label, readout, value, onChange, layout, span, description, density, align, auto, onAutoChange, 'data-auto-path': autoPath, }: SwitchRowProps): import("react/jsx-runtime").JSX.Element;
|
|
247
|
-
/** Props for `<TextRow>`. */
|
|
248
|
-
export interface TextRowProps extends PropertyMetricProps {
|
|
249
|
-
label: ReactNode;
|
|
250
|
-
/** Absent reads as an empty field. */
|
|
251
|
-
value: string | null | undefined;
|
|
252
|
-
onChange: (next: string) => void;
|
|
253
|
-
placeholder?: string;
|
|
254
|
-
maxLength?: number;
|
|
255
|
-
layout?: PropertyRowLayout;
|
|
256
|
-
description?: string;
|
|
257
|
-
/** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
|
|
258
|
-
readout?: ReactNode;
|
|
259
|
-
/** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
|
|
260
|
-
span?: boolean;
|
|
261
|
-
/** The row is auto — see `<PropertyRow auto>`. */
|
|
138
|
+
/** The row is auto: its value is not pinned and the owner computes it. The
|
|
139
|
+
* control is hidden — its box kept, so the row does not resize — and the
|
|
140
|
+
* row reads out the word instead. */
|
|
262
141
|
auto?: boolean;
|
|
263
|
-
/**
|
|
142
|
+
/** Given, the row's label toggles `auto` when it is clicked. Omitted, the row
|
|
143
|
+
* can show an auto state but not change it.
|
|
144
|
+
*
|
|
145
|
+
* The label then names that toggle, so a control passed as `children` has to
|
|
146
|
+
* carry its own accessible name — every `<PropertyField>` does. */
|
|
264
147
|
onAutoChange?: (next: boolean) => void;
|
|
265
|
-
/** Marks the row for a panel-level gesture handler — see `<PropertyRow data-auto-path>`. */
|
|
266
|
-
'data-auto-path'?: string;
|
|
267
|
-
}
|
|
268
|
-
/** A single-line text input. */
|
|
269
|
-
export declare function TextRow({ label, readout, value, onChange, placeholder, maxLength, layout, description, span, density, align, auto, onAutoChange, 'data-auto-path': autoPath, }: TextRowProps): import("react/jsx-runtime").JSX.Element;
|
|
270
|
-
/** Props for `<NumberRow>`. */
|
|
271
|
-
export interface NumberRowProps extends PropertyMetricProps {
|
|
272
|
-
label: ReactNode;
|
|
273
|
-
/** Absent reads as an empty field. */
|
|
274
|
-
value: number | null | undefined;
|
|
275
148
|
/**
|
|
276
|
-
*
|
|
277
|
-
*
|
|
278
|
-
*
|
|
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}.
|
|
279
152
|
*/
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* The live value, fired per keystroke. Pass it alongside `onChange` when the
|
|
283
|
-
* write is expensive — cheap state here, the costly work there. Mirrors
|
|
284
|
-
* `<Slider>`'s `onInput` / `onChange` pair.
|
|
285
|
-
*/
|
|
286
|
-
onInput?: (next: number) => void;
|
|
287
|
-
min?: number;
|
|
288
|
-
max?: number;
|
|
289
|
-
step?: number;
|
|
290
|
-
placeholder?: string;
|
|
291
|
-
/**
|
|
292
|
-
* Optional suffix rendered after the field. A string becomes a dim "word"
|
|
293
|
-
* unit (e.g. "px"); pass JSX like `<sup>°</sup>` for symbol units. Display
|
|
294
|
-
* only — it never participates in parsing, and the value stays a number.
|
|
295
|
-
*/
|
|
296
|
-
unit?: ReactNode;
|
|
297
|
-
layout?: PropertyRowLayout;
|
|
298
|
-
description?: string;
|
|
299
|
-
/** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
|
|
300
|
-
readout?: ReactNode;
|
|
301
|
-
/** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
|
|
302
|
-
span?: boolean;
|
|
303
|
-
/** The row is auto — see `<PropertyRow auto>`. */
|
|
304
|
-
auto?: boolean;
|
|
305
|
-
/** Toggles `auto` from a pin dot — see `<PropertyRow onAutoChange>`. */
|
|
306
|
-
onAutoChange?: (next: boolean) => void;
|
|
307
|
-
/** Marks the row for a panel-level gesture handler — see `<PropertyRow data-auto-path>`. */
|
|
308
|
-
'data-auto-path'?: string;
|
|
309
|
-
}
|
|
310
|
-
/** A number typed directly. Reach for `<SliderRow>` when the range matters
|
|
311
|
-
* more than the exact value. */
|
|
312
|
-
export declare function NumberRow({ label, readout, value, onChange, onInput, min, max, step, placeholder, unit, layout, description, span, density, align, auto, onAutoChange, 'data-auto-path': autoPath, }: NumberRowProps): import("react/jsx-runtime").JSX.Element;
|
|
313
|
-
export interface PropertyOption<T extends string> {
|
|
314
|
-
value: T;
|
|
315
|
-
label: ReactNode;
|
|
316
|
-
}
|
|
317
|
-
/** Props for `<SelectRow>`. */
|
|
318
|
-
export interface SelectRowProps<T extends string> extends PropertyMetricProps {
|
|
319
|
-
label: ReactNode;
|
|
320
|
-
/** Absent, or not one of `options`, shows a placeholder rather than the first option. */
|
|
321
|
-
value: T | undefined;
|
|
322
|
-
options: ReadonlyArray<PropertyOption<T>>;
|
|
323
|
-
onChange: (next: T) => void;
|
|
324
|
-
/** Shown while no option is chosen. Defaults to "Choose option…". */
|
|
325
|
-
placeholder?: string;
|
|
326
|
-
layout?: PropertyRowLayout;
|
|
327
|
-
description?: string;
|
|
328
|
-
/** Right-aligned readout shown next to the label — see `<PropertyRow readout>`. */
|
|
329
|
-
readout?: ReactNode;
|
|
330
|
-
/** Take the full width of the enclosing grid — see `<PropertyRow span>`. */
|
|
331
|
-
span?: boolean;
|
|
332
|
-
/** The row is auto — see `<PropertyRow auto>`. */
|
|
333
|
-
auto?: boolean;
|
|
334
|
-
/** Toggles `auto` from a pin dot — see `<PropertyRow onAutoChange>`. */
|
|
335
|
-
onAutoChange?: (next: boolean) => void;
|
|
336
|
-
/** Marks the row for a panel-level gesture handler — see `<PropertyRow data-auto-path>`. */
|
|
337
|
-
'data-auto-path'?: string;
|
|
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, 'data-auto-path': autoPath, }: 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 a pin dot — see `<PropertyRow onAutoChange>`. */
|
|
357
|
-
onAutoChange?: (next: boolean) => void;
|
|
358
|
-
/** Marks the row for a panel-level gesture handler — see `<PropertyRow data-auto-path>`. */
|
|
359
|
-
'data-auto-path'?: string;
|
|
153
|
+
chrome?: PropertyFieldChrome;
|
|
360
154
|
}
|
|
361
|
-
/**
|
|
362
|
-
*
|
|
363
|
-
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;
|
|
364
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":"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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } 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,11 +1,13 @@
|
|
|
1
1
|
export type { CurveFieldProps, CurveMark } from './CurveField';
|
|
2
2
|
export { CurveField } from './CurveField';
|
|
3
|
-
export type {
|
|
4
|
-
export {
|
|
5
|
-
export type { PinDotProps } from './PinDot';
|
|
6
|
-
export { PinDot } from './PinDot';
|
|
3
|
+
export type { DialogRowProps } from './DialogRow';
|
|
4
|
+
export { DialogRow } from './DialogRow';
|
|
7
5
|
export type { PropertyGroupProps } from './PropertyGroup';
|
|
8
6
|
export { PropertyGroup } from './PropertyGroup';
|
|
9
|
-
export type {
|
|
10
|
-
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';
|
|
11
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,20 +16,40 @@ 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;
|
|
27
|
+
/** How a {@link Select} trigger signals that it opens a list. */
|
|
28
|
+
export type SelectIndicator = 'chevron' | 'underline' | 'none';
|
|
29
|
+
/** Where a {@link Select}'s list opens relative to its trigger. */
|
|
30
|
+
export type SelectPopup = 'over' | 'below';
|
|
18
31
|
/**
|
|
19
32
|
* Props for {@link Select}, on top of React Aria's `Select` props, with the
|
|
20
33
|
* selection key narrowed to the option value type.
|
|
21
34
|
*/
|
|
22
35
|
export type SelectProps<T extends Key = string> = Omit<RACSelectProps<object>, 'children' | 'className' | 'selectedKey' | 'defaultSelectedKey' | 'onSelectionChange'> & {
|
|
23
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;
|
|
24
43
|
description?: ReactNode;
|
|
25
44
|
errorMessage?: ReactNode | ((v: ValidationResult) => ReactNode);
|
|
26
45
|
placeholder?: string;
|
|
27
|
-
/**
|
|
28
|
-
|
|
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 & {
|
|
29
51
|
value: T;
|
|
30
|
-
}
|
|
52
|
+
}) | SelectOptionGroup<T>>;
|
|
31
53
|
children?: ReactNode;
|
|
32
54
|
selectedKey?: T | null;
|
|
33
55
|
defaultSelectedKey?: T;
|
|
@@ -40,6 +62,20 @@ export type SelectProps<T extends Key = string> = Omit<RACSelectProps<object>, '
|
|
|
40
62
|
width?: 'fill' | 'fit';
|
|
41
63
|
/** `'bare'` drops the box, for a select set in a row of other chrome such as a property row. */
|
|
42
64
|
variant?: 'field' | 'bare';
|
|
65
|
+
/**
|
|
66
|
+
* How the trigger says it opens a list. `'chevron'` draws the caret beside
|
|
67
|
+
* the value; `'underline'` marks the value itself, dotted at rest and solid
|
|
68
|
+
* while it is pointed at or open; `'none'` says nothing. Unset takes the
|
|
69
|
+
* variant's own: a boxed select shows the caret, a bare one — set in a row
|
|
70
|
+
* where 10px of caret is a tenth of the value's width — underlines.
|
|
71
|
+
*/
|
|
72
|
+
indicator?: SelectIndicator;
|
|
73
|
+
/**
|
|
74
|
+
* Where the list opens. `'over'` (the default) puts the selected row on the
|
|
75
|
+
* trigger, its label in the trigger's own text column, so choosing what is
|
|
76
|
+
* already chosen moves nothing; `'below'` hangs it under the trigger.
|
|
77
|
+
*/
|
|
78
|
+
popup?: SelectPopup;
|
|
43
79
|
/**
|
|
44
80
|
* Id for the trigger button. React Aria puts a plain `id` on the wrapper,
|
|
45
81
|
* which is not labelable, so an outer `<label for>` needs this to reach a
|
|
@@ -47,16 +83,31 @@ export type SelectProps<T extends Key = string> = Omit<RACSelectProps<object>, '
|
|
|
47
83
|
*/
|
|
48
84
|
triggerId?: string;
|
|
49
85
|
className?: string;
|
|
50
|
-
} & OverlayPortalProps;
|
|
86
|
+
} & SegmentTooltipFields & OverlayPortalProps;
|
|
51
87
|
/**
|
|
52
88
|
* Form select wrapping React Aria's Select. Pass either `options` for a
|
|
53
89
|
* quick declarative render or `children` of `<SelectItem>` for control over
|
|
54
|
-
* each row
|
|
90
|
+
* each row; `<SelectSection>` (or an `options` entry with a `title`) groups
|
|
91
|
+
* rows under a heading.
|
|
55
92
|
*
|
|
56
93
|
* The selection key type is parameterized so consumers with a string-literal
|
|
57
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.
|
|
58
99
|
*/
|
|
59
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;
|
|
60
111
|
/** Props for {@link SelectItem}, on top of React Aria's `ListBoxItem` props. */
|
|
61
112
|
export type SelectItemProps = Omit<RACListBoxItemProps, 'className' | 'children'> & {
|
|
62
113
|
children?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
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;AACf,OAAO,EAYL,KAAK,WAAW,IAAI,cAAc,EAClC,KAAK,gBAAgB,IAAI,mBAAmB,EAC5C,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAoB,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEtF,OAAO,EAAyC,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAErG,uDAAuD;AACvD,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,sEAAsE;AACtE,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,GAAG,GAAG,MAAM,IAAI;IACtD,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,aAAa,CAAC,YAAY,GAAG;QAAE,KAAK,EAAE,CAAC,CAAA;KAAE,CAAC,CAAC;CACrD,CAAC;AAEF,KAAK,GAAG,GAAG,MAAM,GAAG,MAAM,CAAC;AAQ3B,iEAAiE;AACjE,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,WAAW,GAAG,MAAM,CAAC;AAE/D,mEAAmE;AACnE,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC;AAE3C;;;GAGG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,GAAG,GAAG,MAAM,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,oBAAoB,GAAG,mBAAmB,CAAC,GAAG;IACtK,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,CAAC,EAAE,gBAAgB,KAAK,SAAS,CAAC,CAAC;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC,CAAC,YAAY,GAAG;QAAE,KAAK,EAAE,CAAC,CAAA;KAAE,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9E,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACvB,kBAAkB,CAAC,EAAE,CAAC,CAAC;IACvB,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC;IACrC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACvB,gGAAgG;IAChG,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;;;OAIG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,oBAAoB,GAAG,kBAAkB,CAAC;AAE9C;;;;;;;;;;;;GAYG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,GAAG,GAAG,MAAM,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,2CAmInE;AA6JD,uCAAuC;AACvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B;0BACsB;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,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 } 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 };
|