@weasel-js/ui 1.7.0 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/ActionBar-xA73vzzF.js +64 -0
- package/dist/chunks/ActionBar-xA73vzzF.js.map +1 -0
- package/dist/chunks/{Badge-D2aD7xVL.js → Badge-jYQjrTKc.js} +235 -264
- package/dist/chunks/{Badge-D2aD7xVL.js.map → Badge-jYQjrTKc.js.map} +1 -1
- package/dist/chunks/{BandEditor-Dd0egAgE.js → BandEditor-B4jUAHQ8.js} +13 -13
- package/dist/chunks/BandEditor-B4jUAHQ8.js.map +1 -0
- package/dist/chunks/{Button-BIdXHQOx.js → Button-XB-T75YL.js} +2 -2
- package/dist/chunks/{Button-BIdXHQOx.js.map → Button-XB-T75YL.js.map} +1 -1
- package/dist/chunks/{ButtonBar-DIQTe5GQ.js → ButtonBar-CIMKPPRS.js} +7 -9
- package/dist/chunks/{ButtonBar-DIQTe5GQ.js.map → ButtonBar-CIMKPPRS.js.map} +1 -1
- package/dist/chunks/Callout-BUn0dP_S.js +115 -0
- package/dist/chunks/Callout-BUn0dP_S.js.map +1 -0
- package/dist/chunks/Checkbox-DFn-x0JO.js +37 -0
- package/dist/chunks/Checkbox-DFn-x0JO.js.map +1 -0
- package/dist/chunks/{CloseButton-C2J7wVfo.js → CloseButton-BmNmRVtb.js} +3 -3
- package/dist/chunks/{CloseButton-C2J7wVfo.js.map → CloseButton-BmNmRVtb.js.map} +1 -1
- package/dist/chunks/ColorField-BwlelY26.js +90 -0
- package/dist/chunks/ColorField-BwlelY26.js.map +1 -0
- package/dist/chunks/{ColorModeControl-BewxA0rX.js → ColorModeControl-DaVJ-SyX.js} +3 -3
- package/dist/chunks/{ColorModeControl-BewxA0rX.js.map → ColorModeControl-DaVJ-SyX.js.map} +1 -1
- package/dist/chunks/ComboBox-DKln_mOd.js +138 -0
- package/dist/chunks/ComboBox-DKln_mOd.js.map +1 -0
- package/dist/chunks/{CurveEditor-DUVjd25R.js → CurveEditor-0EE00D6s.js} +90 -87
- package/dist/chunks/CurveEditor-0EE00D6s.js.map +1 -0
- package/dist/chunks/{DataGrid-LZ2JgY2Y.js → DataGrid-CmHJe57v.js} +23 -18
- package/dist/chunks/DataGrid-CmHJe57v.js.map +1 -0
- package/dist/chunks/DetailList-BpU50XVe.js +54 -0
- package/dist/chunks/DetailList-BpU50XVe.js.map +1 -0
- package/dist/chunks/{DetentSlider-5uQPFucv.js → DetentSlider-DNTAk8xP.js} +2 -2
- package/dist/chunks/{DetentSlider-5uQPFucv.js.map → DetentSlider-DNTAk8xP.js.map} +1 -1
- package/dist/chunks/{Dialog-DGFutQ--.js → Dialog-DKfsk5VN.js} +3 -3
- package/dist/chunks/{Dialog-DGFutQ--.js.map → Dialog-DKfsk5VN.js.map} +1 -1
- package/dist/chunks/{DragGhost-B5_hb9W9.js → DragGhost-BeYDJyLZ.js} +2 -2
- package/dist/chunks/{DragGhost-B5_hb9W9.js.map → DragGhost-BeYDJyLZ.js.map} +1 -1
- package/dist/chunks/{FallthroughDiagram-BEHiM5IS.js → FallthroughDiagram-CS1IhQaU.js} +16 -16
- package/dist/chunks/FallthroughDiagram-CS1IhQaU.js.map +1 -0
- package/dist/chunks/Field-DiX_WByH.js +25 -0
- package/dist/chunks/Field-DiX_WByH.js.map +1 -0
- package/dist/chunks/FillStrokeSwatch-C4h3rUFM.js +112 -0
- package/dist/chunks/FillStrokeSwatch-C4h3rUFM.js.map +1 -0
- package/dist/chunks/{FontFamilySelect-DkRgNtag.js → FontFamilySelect-DEvMXyZd.js} +2 -2
- package/dist/chunks/FontFamilySelect-DEvMXyZd.js.map +1 -0
- package/dist/chunks/FontWeightSelect-BLQ_LMJF.js +49 -0
- package/dist/chunks/FontWeightSelect-BLQ_LMJF.js.map +1 -0
- package/dist/chunks/{GestureRoute-C_YGl7bJ.js → GestureRoute-BXESrHI0.js} +2 -2
- package/dist/chunks/{GestureRoute-C_YGl7bJ.js.map → GestureRoute-BXESrHI0.js.map} +1 -1
- package/dist/chunks/GradientEditor-DD2OjQtn.js +325 -0
- package/dist/chunks/GradientEditor-DD2OjQtn.js.map +1 -0
- package/dist/chunks/{Icon-CcVjdq2C.js → Icon--B1ME-6c.js} +3 -1
- package/dist/chunks/Icon--B1ME-6c.js.map +1 -0
- package/dist/chunks/{InlineRange-P01ABSzo.js → InlineRange-DPjIsJB3.js} +3 -3
- package/dist/chunks/InlineRange-DPjIsJB3.js.map +1 -0
- package/dist/chunks/{Input-CHmkfYaD.js → Input-D7SDKbST.js} +10 -15
- package/dist/chunks/Input-D7SDKbST.js.map +1 -0
- package/dist/chunks/{ItemList-Cm-HUWCi.js → ItemList-CRu9y7hL.js} +2 -2
- package/dist/chunks/ItemList-CRu9y7hL.js.map +1 -0
- package/dist/chunks/{Jog-DRmfrkCg.js → Jog-BrkzdGV2.js} +8 -8
- package/dist/chunks/Jog-BrkzdGV2.js.map +1 -0
- package/dist/chunks/{LayerList-wCI1EueM.js → LayerList-Bxj1N6bj.js} +151 -153
- package/dist/chunks/LayerList-Bxj1N6bj.js.map +1 -0
- package/dist/chunks/ListEditor-OQDzG4A5.js +72 -0
- package/dist/chunks/ListEditor-OQDzG4A5.js.map +1 -0
- package/dist/chunks/MenuButton-TAFg88Lp.js +75 -0
- package/dist/chunks/MenuButton-TAFg88Lp.js.map +1 -0
- package/dist/chunks/MeshEditor-DWpvg8H6.js +199 -0
- package/dist/chunks/MeshEditor-DWpvg8H6.js.map +1 -0
- package/dist/chunks/{NumberField-BnJxcazc.js → NumberField-DS0WSiin.js} +26 -23
- package/dist/chunks/NumberField-DS0WSiin.js.map +1 -0
- package/dist/chunks/{OptionsBar-ujxYidhj.js → OptionsBar-DeTAjVb7.js} +6 -8
- package/dist/chunks/{OptionsBar-ujxYidhj.js.map → OptionsBar-DeTAjVb7.js.map} +1 -1
- package/dist/chunks/PaintField-BdmQM53v.js +63 -0
- package/dist/chunks/PaintField-BdmQM53v.js.map +1 -0
- package/dist/chunks/PaintInput-DaQMeBsI.js +132 -0
- package/dist/chunks/PaintInput-DaQMeBsI.js.map +1 -0
- package/dist/chunks/PatternPicker-B3HcMZWg.js +135 -0
- package/dist/chunks/PatternPicker-B3HcMZWg.js.map +1 -0
- package/dist/chunks/{Plot2D-CTXHkL5p.js → Plot2D-BrvQS0dh.js} +7 -7
- package/dist/chunks/Plot2D-BrvQS0dh.js.map +1 -0
- package/dist/chunks/{PointPlotter-ldI4RrU1.js → PointPlotter-BBXpQ_QD.js} +2 -2
- package/dist/chunks/{PointPlotter-ldI4RrU1.js.map → PointPlotter-BBXpQ_QD.js.map} +1 -1
- package/dist/chunks/{Powerline-DNyH885r.js → Powerline-6wIFmDik.js} +2 -2
- package/dist/chunks/{Powerline-DNyH885r.js.map → Powerline-6wIFmDik.js.map} +1 -1
- package/dist/chunks/{Prefs-ByA-x51i.js → Prefs-C4MZ28SX.js} +118 -95
- package/dist/chunks/Prefs-C4MZ28SX.js.map +1 -0
- package/dist/chunks/{Properties-DmAeQ3mk.js → Properties-DseN56WI.js} +29 -29
- package/dist/chunks/{Properties-DmAeQ3mk.js.map → Properties-DseN56WI.js.map} +1 -1
- package/dist/chunks/PropertyField-BbNqK8xr.js +743 -0
- package/dist/chunks/PropertyField-BbNqK8xr.js.map +1 -0
- package/dist/chunks/{RadioGroup-Bh4-12e-.js → RadioGroup-B70_M-gT.js} +2 -2
- package/dist/chunks/{RadioGroup-Bh4-12e-.js.map → RadioGroup-B70_M-gT.js.map} +1 -1
- package/dist/chunks/{RangeSlider-SEGE-7VF.js → RangeSlider-DO5TZVk7.js} +8 -8
- package/dist/chunks/{RangeSlider-SEGE-7VF.js.map → RangeSlider-DO5TZVk7.js.map} +1 -1
- package/dist/chunks/RecentColorsProvider-DHcfk25u.js +84 -0
- package/dist/chunks/RecentColorsProvider-DHcfk25u.js.map +1 -0
- package/dist/chunks/ResizeHandle-CbAgCQOt.js +81 -0
- package/dist/chunks/ResizeHandle-CbAgCQOt.js.map +1 -0
- package/dist/chunks/Select-ouV8O6cp.js +236 -0
- package/dist/chunks/Select-ouV8O6cp.js.map +1 -0
- package/dist/chunks/{SelectionPanel-BaQnX4Bs.js → SelectionPanel-C3WzyaZV.js} +14 -13
- package/dist/chunks/{SelectionPanel-BaQnX4Bs.js.map → SelectionPanel-C3WzyaZV.js.map} +1 -1
- package/dist/chunks/{SidebarPanel-BblDEz4G.js → SidebarPanel-AXQ0jRDx.js} +2 -2
- package/dist/chunks/{SidebarPanel-BblDEz4G.js.map → SidebarPanel-AXQ0jRDx.js.map} +1 -1
- package/dist/chunks/{Slider-YofwGOI4.js → Slider-DSrlMEq8.js} +19 -19
- package/dist/chunks/Slider-DSrlMEq8.js.map +1 -0
- package/dist/chunks/{StatusBar-Ca9Dvhhq.js → StatusBar-BEOfOX0D.js} +6 -6
- package/dist/chunks/StatusBar-BEOfOX0D.js.map +1 -0
- package/dist/chunks/SwatchGrid-9ZPiDmxd.js +78 -0
- package/dist/chunks/SwatchGrid-9ZPiDmxd.js.map +1 -0
- package/dist/chunks/SwatchStrip-Bi9iPLoh.js +577 -0
- package/dist/chunks/SwatchStrip-Bi9iPLoh.js.map +1 -0
- package/dist/chunks/{ThemeSwitcher-BlsInAmR.js → ThemeSwitcher-DiBmMh_B.js} +3 -3
- package/dist/chunks/{ThemeSwitcher-BlsInAmR.js.map → ThemeSwitcher-DiBmMh_B.js.map} +1 -1
- package/dist/chunks/{Timeline-B39cwfMB.js → Timeline-sMCH2fah.js} +293 -280
- package/dist/chunks/Timeline-sMCH2fah.js.map +1 -0
- package/dist/chunks/Toast-C3ozq11V.js +170 -0
- package/dist/chunks/Toast-C3ozq11V.js.map +1 -0
- package/dist/chunks/{ToggleBar-BTYkBXU9.js → ToggleBar-Z2jZiguF.js} +6 -8
- package/dist/chunks/{ToggleBar-BTYkBXU9.js.map → ToggleBar-Z2jZiguF.js.map} +1 -1
- package/dist/chunks/{TokenPanel-CMDAOfYH.js → TokenPanel-WtKGY2Db.js} +32 -32
- package/dist/chunks/TokenPanel-WtKGY2Db.js.map +1 -0
- package/dist/chunks/{ToolButton-CAHBa08P.js → ToolButton-BURp4YIO.js} +7 -9
- package/dist/chunks/ToolButton-BURp4YIO.js.map +1 -0
- package/dist/chunks/{ToolOptionsBar-D_GCrBAN.js → ToolOptionsBar-CZTYPoC2.js} +3 -2
- package/dist/chunks/{ToolOptionsBar-D_GCrBAN.js.map → ToolOptionsBar-CZTYPoC2.js.map} +1 -1
- package/dist/chunks/{ToolPalette-OOWN51Xx.js → ToolPalette-DKDFWOX-.js} +7 -9
- package/dist/chunks/{ToolPalette-OOWN51Xx.js.map → ToolPalette-DKDFWOX-.js.map} +1 -1
- package/dist/chunks/{Tooltip-Clg2mhSt.js → Tooltip-C6eFCYxw.js} +2 -2
- package/dist/chunks/{Tooltip-Clg2mhSt.js.map → Tooltip-C6eFCYxw.js.map} +1 -1
- package/dist/chunks/Tree-Cc8lIzgM.js.map +1 -1
- package/dist/chunks/checkbox.module-DLQV9tMX.js +5 -0
- package/dist/chunks/checkbox.module-DLQV9tMX.js.map +1 -0
- package/dist/chunks/{createKeyframeLayer-DVl321_l.js → createKeyframeLayer-DSVf13Su.js} +194 -208
- package/dist/chunks/createKeyframeLayer-DSVf13Su.js.map +1 -0
- package/dist/chunks/field.module-B27pWv0i.js +15 -0
- package/dist/chunks/field.module-B27pWv0i.js.map +1 -0
- package/dist/chunks/formatShortcut-DRQrVThu.js.map +1 -1
- package/dist/chunks/handles-CqVANLtu.js +17 -0
- package/dist/chunks/handles-CqVANLtu.js.map +1 -0
- package/dist/chunks/{icons-BhcR1l64.js → icons-Dr2-r30x.js} +2 -2
- package/dist/chunks/icons-Dr2-r30x.js.map +1 -0
- package/dist/chunks/listbox.module-BcdVJMbm.js +8 -0
- package/dist/chunks/listbox.module-BcdVJMbm.js.map +1 -0
- package/dist/chunks/model-qsAFK7_0.js +386 -0
- package/dist/chunks/model-qsAFK7_0.js.map +1 -0
- package/dist/chunks/{portalHost-yTOVuCej.js → portalHost-CE70wLzo.js} +10 -6
- package/dist/chunks/portalHost-CE70wLzo.js.map +1 -0
- package/dist/chunks/prefField-BE_Ytr2H.js +229 -0
- package/dist/chunks/prefField-BE_Ytr2H.js.map +1 -0
- package/dist/chunks/{segmentTooltip-CStYHKzd.js → segmentTooltip-CGxCOWNz.js} +2 -2
- package/dist/chunks/{segmentTooltip-CStYHKzd.js.map → segmentTooltip-CGxCOWNz.js.map} +1 -1
- package/dist/chunks/segmentedControl.module-BzGXUL5G.js +11 -0
- package/dist/chunks/segmentedControl.module-BzGXUL5G.js.map +1 -0
- package/dist/chunks/useReorderDragList-CStYKjHl.js +133 -0
- package/dist/chunks/useReorderDragList-CStYKjHl.js.map +1 -0
- package/dist/chunks/useRovingTabIndex-D7u22Ia_.js +91 -0
- package/dist/chunks/useRovingTabIndex-D7u22Ia_.js.map +1 -0
- package/dist/components/ActionBar/ActionBar.d.ts.map +1 -1
- package/dist/components/ActionBar/index.js +1 -1
- package/dist/components/Badge/bases/ChamferedRect.d.ts.map +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/BandEditor/BandEditor.d.ts +1 -0
- package/dist/components/BandEditor/BandEditor.d.ts.map +1 -1
- package/dist/components/BandEditor/index.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonBar/ButtonBar.d.ts.map +1 -1
- package/dist/components/ButtonBar/index.js +1 -1
- package/dist/components/Callout/Callout.d.ts.map +1 -1
- package/dist/components/Callout/index.js +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +28 -13
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/CloseButton/index.js +1 -1
- package/dist/components/ColorField/ColorField.d.ts.map +1 -1
- package/dist/components/ColorField/OpacityRange.d.ts +18 -0
- package/dist/components/ColorField/OpacityRange.d.ts.map +1 -0
- package/dist/components/ColorField/index.js +1 -1
- package/dist/components/ColorModeControl/index.js +1 -1
- package/dist/components/ComboBox/ComboBox.d.ts +7 -0
- package/dist/components/ComboBox/ComboBox.d.ts.map +1 -1
- package/dist/components/ComboBox/index.js +1 -1
- package/dist/components/CurveEditor/CurveEditor.d.ts.map +1 -1
- package/dist/components/CurveEditor/LayeredCurveEditor.d.ts.map +1 -1
- package/dist/components/CurveEditor/index.js +2 -2
- package/dist/components/DataGrid/DataGrid.d.ts +3 -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 +1 -1
- package/dist/components/DetailList/DetailList.d.ts.map +1 -1
- package/dist/components/DetailList/index.js +1 -1
- package/dist/components/DetentSlider/index.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/DragGhost/index.js +1 -1
- package/dist/components/FallthroughDiagram/index.js +1 -1
- package/dist/components/Field/index.js +1 -1
- package/dist/components/FillStrokeSwatch/FillStrokeSwatch.d.ts +5 -2
- package/dist/components/FillStrokeSwatch/FillStrokeSwatch.d.ts.map +1 -1
- package/dist/components/FillStrokeSwatch/index.js +1 -1
- package/dist/components/FontFamilySelect/FontFamilySelect.d.ts +20 -0
- package/dist/components/FontFamilySelect/FontFamilySelect.d.ts.map +1 -1
- package/dist/components/FontFamilySelect/index.js +1 -1
- package/dist/components/FontWeightSelect/FontWeightSelect.d.ts +26 -0
- package/dist/components/FontWeightSelect/FontWeightSelect.d.ts.map +1 -0
- package/dist/components/FontWeightSelect/index.d.ts +3 -0
- package/dist/components/FontWeightSelect/index.d.ts.map +1 -0
- package/dist/components/FontWeightSelect/index.js +2 -0
- package/dist/components/GestureRoute/index.js +1 -1
- package/dist/components/GradientEditor/GradientHandles.d.ts +1 -8
- package/dist/components/GradientEditor/GradientHandles.d.ts.map +1 -1
- package/dist/components/GradientEditor/SceneGradientHandles.d.ts +7 -5
- package/dist/components/GradientEditor/SceneGradientHandles.d.ts.map +1 -1
- package/dist/components/GradientEditor/handleOverlay.d.ts +41 -0
- package/dist/components/GradientEditor/handleOverlay.d.ts.map +1 -0
- package/dist/components/GradientEditor/index.js +1 -1
- package/dist/components/InlineRange/index.js +1 -1
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/ItemList/ItemList.d.ts +32 -31
- package/dist/components/ItemList/ItemList.d.ts.map +1 -1
- package/dist/components/ItemList/index.js +1 -1
- package/dist/components/Jog/index.js +1 -1
- package/dist/components/LayerList/LayerList.d.ts.map +1 -1
- package/dist/components/LayerList/index.js +1 -1
- package/dist/components/ListEditor/ListEditor.d.ts.map +1 -1
- package/dist/components/ListEditor/index.js +1 -1
- package/dist/components/MenuButton/MenuButton.d.ts.map +1 -1
- package/dist/components/MenuButton/index.js +1 -1
- package/dist/components/MeshEditor/MeshEditor.d.ts +4 -3
- package/dist/components/MeshEditor/MeshEditor.d.ts.map +1 -1
- package/dist/components/MeshEditor/MeshHandles.d.ts +38 -0
- package/dist/components/MeshEditor/MeshHandles.d.ts.map +1 -0
- package/dist/components/MeshEditor/index.d.ts +2 -0
- package/dist/components/MeshEditor/index.d.ts.map +1 -1
- package/dist/components/MeshEditor/index.js +2 -2
- package/dist/components/NumberField/NumberField.d.ts +1 -1
- package/dist/components/NumberField/NumberField.d.ts.map +1 -1
- package/dist/components/NumberField/index.js +1 -1
- package/dist/components/OptionsBar/OptionsBar.d.ts.map +1 -1
- package/dist/components/OptionsBar/index.js +1 -1
- package/dist/components/PaintField/PaintField.d.ts.map +1 -1
- package/dist/components/PaintField/index.js +1 -1
- package/dist/components/PaintInput/PaintInput.d.ts.map +1 -1
- package/dist/components/PaintInput/index.js +1 -1
- package/dist/components/PatternPicker/PatternPicker.d.ts +6 -5
- package/dist/components/PatternPicker/PatternPicker.d.ts.map +1 -1
- package/dist/components/PatternPicker/index.js +1 -1
- package/dist/components/Plot2D/index.js +1 -1
- package/dist/components/PointPlotter/index.js +1 -1
- package/dist/components/Powerline/index.js +2 -2
- package/dist/components/Prefs/PrefsForm.d.ts +22 -0
- package/dist/components/Prefs/PrefsForm.d.ts.map +1 -1
- package/dist/components/Prefs/PrefsRail.d.ts +3 -2
- package/dist/components/Prefs/PrefsRail.d.ts.map +1 -1
- package/dist/components/Prefs/PrefsRow.d.ts +4 -0
- package/dist/components/Prefs/PrefsRow.d.ts.map +1 -1
- package/dist/components/Prefs/index.js +2 -2
- package/dist/components/Prefs/prefField.d.ts +13 -0
- package/dist/components/Prefs/prefField.d.ts.map +1 -1
- package/dist/components/Properties/PropertyField.d.ts +13 -2
- package/dist/components/Properties/PropertyField.d.ts.map +1 -1
- package/dist/components/Properties/PropertyPanel.d.ts +18 -1
- package/dist/components/Properties/PropertyPanel.d.ts.map +1 -1
- package/dist/components/Properties/index.d.ts +2 -2
- package/dist/components/Properties/index.d.ts.map +1 -1
- package/dist/components/Properties/index.js +3 -3
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/RangeSlider/index.js +1 -1
- package/dist/components/RecentColors/RecentColorsProvider.d.ts +24 -0
- package/dist/components/RecentColors/RecentColorsProvider.d.ts.map +1 -0
- package/dist/components/RecentColors/index.d.ts +5 -0
- package/dist/components/RecentColors/index.d.ts.map +1 -0
- package/dist/components/RecentColors/index.js +2 -0
- package/dist/components/RecentColors/recentColors.d.ts +39 -0
- package/dist/components/RecentColors/recentColors.d.ts.map +1 -0
- package/dist/components/ResizeHandle/ResizeHandle.d.ts.map +1 -1
- package/dist/components/ResizeHandle/index.js +1 -1
- package/dist/components/Select/Select.d.ts +6 -2
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/SelectionPanel/index.js +2 -2
- package/dist/components/SelectionPanel/renderLeaf.d.ts +12 -2
- package/dist/components/SelectionPanel/renderLeaf.d.ts.map +1 -1
- package/dist/components/SidebarPanel/index.js +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/StatusBar/StatusBar.d.ts +1 -1
- package/dist/components/StatusBar/index.js +1 -1
- package/dist/components/SwatchGrid/SwatchGrid.d.ts.map +1 -1
- package/dist/components/SwatchGrid/index.js +1 -1
- package/dist/components/SwatchStrip/SwatchStrip.d.ts +44 -0
- package/dist/components/SwatchStrip/SwatchStrip.d.ts.map +1 -0
- package/dist/components/SwatchStrip/index.d.ts +5 -0
- package/dist/components/SwatchStrip/index.d.ts.map +1 -0
- package/dist/components/SwatchStrip/index.js +2 -0
- package/dist/components/SwatchStrip/palettes.d.ts +21 -0
- package/dist/components/SwatchStrip/palettes.d.ts.map +1 -0
- package/dist/components/ThemeSwitcher/index.js +1 -1
- package/dist/components/Timeline/AnimatedTimeline.d.ts +1 -0
- package/dist/components/Timeline/AnimatedTimeline.d.ts.map +1 -1
- package/dist/components/Timeline/EasingPicker.d.ts +3 -0
- package/dist/components/Timeline/EasingPicker.d.ts.map +1 -1
- package/dist/components/Timeline/LaneGraph.d.ts +1 -1
- package/dist/components/Timeline/LaneGraph.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.d.ts +10 -1
- package/dist/components/Timeline/Timeline.d.ts.map +1 -1
- package/dist/components/Timeline/Transport.d.ts +6 -0
- package/dist/components/Timeline/Transport.d.ts.map +1 -1
- package/dist/components/Timeline/index.js +1 -1
- package/dist/components/Timeline/keys.d.ts +1 -0
- package/dist/components/Timeline/keys.d.ts.map +1 -1
- package/dist/components/Toast/Toast.d.ts +12 -3
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/ToggleBar/ToggleBar.d.ts.map +1 -1
- package/dist/components/ToggleBar/index.js +1 -1
- package/dist/components/TokenPanel/index.js +1 -1
- package/dist/components/TokenPanel/tokenTypes.d.ts +1 -0
- package/dist/components/TokenPanel/tokenTypes.d.ts.map +1 -1
- package/dist/components/ToolButton/ToolButton.d.ts +1 -10
- package/dist/components/ToolButton/ToolButton.d.ts.map +1 -1
- package/dist/components/ToolButton/index.js +1 -1
- package/dist/components/ToolOptionsBar/index.js +1 -1
- package/dist/components/ToolPalette/ToolPalette.d.ts.map +1 -1
- package/dist/components/ToolPalette/formatShortcut.d.ts +2 -0
- package/dist/components/ToolPalette/formatShortcut.d.ts.map +1 -1
- package/dist/components/ToolPalette/index.js +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Tree/Tree.d.ts +27 -26
- package/dist/components/Tree/Tree.d.ts.map +1 -1
- package/dist/icons/index.d.ts +51 -0
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/paths.d.ts +2 -0
- package/dist/icons/paths.d.ts.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +98 -95
- package/dist/index.js.map +1 -1
- package/dist/overlays/portalHost.d.ts +6 -0
- package/dist/overlays/portalHost.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/useAsyncOptions.d.ts.map +1 -1
- package/dist/useReorderDragList.d.ts.map +1 -1
- package/dist/useRovingTabIndex.d.ts +40 -39
- package/dist/useRovingTabIndex.d.ts.map +1 -1
- package/package.json +9 -9
- package/dist/chunks/ActionBar-DCq16yFA.js +0 -57
- package/dist/chunks/ActionBar-DCq16yFA.js.map +0 -1
- package/dist/chunks/BandEditor-Dd0egAgE.js.map +0 -1
- package/dist/chunks/Callout-ndW5_Bqx.js +0 -116
- package/dist/chunks/Callout-ndW5_Bqx.js.map +0 -1
- package/dist/chunks/Checkbox-DHXTUHO9.js +0 -47
- package/dist/chunks/Checkbox-DHXTUHO9.js.map +0 -1
- package/dist/chunks/ColorField-Yz_BkcCT.js +0 -69
- package/dist/chunks/ColorField-Yz_BkcCT.js.map +0 -1
- package/dist/chunks/ComboBox-B34H76CW.js +0 -138
- package/dist/chunks/ComboBox-B34H76CW.js.map +0 -1
- package/dist/chunks/CurveEditor-DUVjd25R.js.map +0 -1
- package/dist/chunks/DataGrid-LZ2JgY2Y.js.map +0 -1
- package/dist/chunks/DetailList-BKomDzg5.js +0 -52
- package/dist/chunks/DetailList-BKomDzg5.js.map +0 -1
- package/dist/chunks/FallthroughDiagram-BEHiM5IS.js.map +0 -1
- package/dist/chunks/Field--onYxXTF.js +0 -32
- package/dist/chunks/Field--onYxXTF.js.map +0 -1
- package/dist/chunks/FillStrokeSwatch-DNb0KXPk.js +0 -111
- package/dist/chunks/FillStrokeSwatch-DNb0KXPk.js.map +0 -1
- package/dist/chunks/FontFamilySelect-DkRgNtag.js.map +0 -1
- package/dist/chunks/GradientEditor-b7v4Ph3i.js +0 -363
- package/dist/chunks/GradientEditor-b7v4Ph3i.js.map +0 -1
- package/dist/chunks/Icon-CcVjdq2C.js.map +0 -1
- package/dist/chunks/InlineRange-P01ABSzo.js.map +0 -1
- package/dist/chunks/Input-CHmkfYaD.js.map +0 -1
- package/dist/chunks/ItemList-Cm-HUWCi.js.map +0 -1
- package/dist/chunks/Jog-DRmfrkCg.js.map +0 -1
- package/dist/chunks/LayerList-wCI1EueM.js.map +0 -1
- package/dist/chunks/ListEditor-BeA60TAA.js +0 -71
- package/dist/chunks/ListEditor-BeA60TAA.js.map +0 -1
- package/dist/chunks/MenuButton-BSqEChJE.js +0 -70
- package/dist/chunks/MenuButton-BSqEChJE.js.map +0 -1
- package/dist/chunks/MeshEditor-D1HLZcAh.js +0 -87
- package/dist/chunks/MeshEditor-D1HLZcAh.js.map +0 -1
- package/dist/chunks/NumberField-BnJxcazc.js.map +0 -1
- package/dist/chunks/PaintField-DadOELMg.js +0 -62
- package/dist/chunks/PaintField-DadOELMg.js.map +0 -1
- package/dist/chunks/PaintInput-v8Y7MDbH.js +0 -121
- package/dist/chunks/PaintInput-v8Y7MDbH.js.map +0 -1
- package/dist/chunks/PatternPicker-R_EQtw2Q.js +0 -93
- package/dist/chunks/PatternPicker-R_EQtw2Q.js.map +0 -1
- package/dist/chunks/Plot2D-CTXHkL5p.js.map +0 -1
- package/dist/chunks/Prefs-ByA-x51i.js.map +0 -1
- package/dist/chunks/PropertyField-DfIJJ5GS.js +0 -673
- package/dist/chunks/PropertyField-DfIJJ5GS.js.map +0 -1
- package/dist/chunks/ResizeHandle-rKVWyeTG.js +0 -79
- package/dist/chunks/ResizeHandle-rKVWyeTG.js.map +0 -1
- package/dist/chunks/Select-ClmKtyWg.js +0 -229
- package/dist/chunks/Select-ClmKtyWg.js.map +0 -1
- package/dist/chunks/Slider-YofwGOI4.js.map +0 -1
- package/dist/chunks/StatusBar-Ca9Dvhhq.js.map +0 -1
- package/dist/chunks/SwatchGrid-BYvA8Bmh.js +0 -73
- package/dist/chunks/SwatchGrid-BYvA8Bmh.js.map +0 -1
- package/dist/chunks/Timeline-B39cwfMB.js.map +0 -1
- package/dist/chunks/Toast-BF9GE0HC.js +0 -126
- package/dist/chunks/Toast-BF9GE0HC.js.map +0 -1
- package/dist/chunks/TokenPanel-CMDAOfYH.js.map +0 -1
- package/dist/chunks/ToolButton-CAHBa08P.js.map +0 -1
- package/dist/chunks/createKeyframeLayer-DVl321_l.js.map +0 -1
- package/dist/chunks/icons-BhcR1l64.js.map +0 -1
- package/dist/chunks/model-BaF65rnX.js +0 -365
- package/dist/chunks/model-BaF65rnX.js.map +0 -1
- package/dist/chunks/portalHost-yTOVuCej.js.map +0 -1
- package/dist/chunks/prefField-BopW9bjx.js +0 -201
- package/dist/chunks/prefField-BopW9bjx.js.map +0 -1
- package/dist/chunks/segmentedControl.module-D6SzYJD7.js +0 -11
- package/dist/chunks/segmentedControl.module-D6SzYJD7.js.map +0 -1
- package/dist/chunks/useReorderDragList-FCMoFIzH.js +0 -131
- package/dist/chunks/useReorderDragList-FCMoFIzH.js.map +0 -1
- package/dist/chunks/useRovingTabIndex-Bp_hYm_h.js +0 -65
- package/dist/chunks/useRovingTabIndex-Bp_hYm_h.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./Tooltip-
|
|
1
|
+
import { n as e, r as t, t as n } from "./Tooltip-C6eFCYxw.js";
|
|
2
2
|
import { t as r } from "./stance-BFQpS_fL.js";
|
|
3
3
|
import { useVisibleRaf as i } from "@weasel-js/core";
|
|
4
4
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
@@ -234,7 +234,7 @@ function D(e, t) {
|
|
|
234
234
|
[0, n]
|
|
235
235
|
];
|
|
236
236
|
}
|
|
237
|
-
var
|
|
237
|
+
var ee = {
|
|
238
238
|
compose: (e) => {
|
|
239
239
|
let t = {
|
|
240
240
|
...E,
|
|
@@ -253,14 +253,14 @@ var O = {
|
|
|
253
253
|
},
|
|
254
254
|
stretches: !0,
|
|
255
255
|
defaults: E
|
|
256
|
-
},
|
|
256
|
+
}, O = {
|
|
257
257
|
points: 12,
|
|
258
258
|
outerR: 48,
|
|
259
259
|
innerR: 36,
|
|
260
260
|
rotation: -7,
|
|
261
261
|
erosion: 0
|
|
262
262
|
};
|
|
263
|
-
function
|
|
263
|
+
function k(e, t, n, r, i) {
|
|
264
264
|
let a = e * 2, o = Math.PI * 2 / a, s = r * Math.PI / 180, c = Math.max(0, Math.min(i, 1)), l = [];
|
|
265
265
|
for (let e = 0; e < a; e++) {
|
|
266
266
|
let r = e % 2 == 0 ? t : n, i = s + e * o;
|
|
@@ -278,12 +278,12 @@ function A(e, t, n, r, i) {
|
|
|
278
278
|
}
|
|
279
279
|
return u + " Z";
|
|
280
280
|
}
|
|
281
|
-
var
|
|
281
|
+
var A = {
|
|
282
282
|
Component: ({ variant: e, focused: t, params: n }) => {
|
|
283
283
|
let r = {
|
|
284
|
-
...
|
|
284
|
+
...O,
|
|
285
285
|
...n
|
|
286
|
-
}, i =
|
|
286
|
+
}, i = k(r.points, r.outerR, r.innerR, r.rotation, r.erosion), c = k(r.points, r.outerR + 4, r.innerR + 3, r.rotation, r.erosion);
|
|
287
287
|
return /* @__PURE__ */ s(a, { children: [
|
|
288
288
|
(e === "solid" || e === "subtle") && /* @__PURE__ */ o("path", {
|
|
289
289
|
className: "badge-fill",
|
|
@@ -306,15 +306,15 @@ var j = {
|
|
|
306
306
|
left: 8
|
|
307
307
|
},
|
|
308
308
|
stretches: !0,
|
|
309
|
-
defaults:
|
|
310
|
-
},
|
|
309
|
+
defaults: O
|
|
310
|
+
}, j = {
|
|
311
311
|
scallopRadius: 5,
|
|
312
312
|
scallopSpacing: 12,
|
|
313
313
|
irregularity: 0
|
|
314
|
-
},
|
|
314
|
+
}, M = {
|
|
315
315
|
compose: (e) => {
|
|
316
316
|
let t = {
|
|
317
|
-
...
|
|
317
|
+
...j,
|
|
318
318
|
...e
|
|
319
319
|
};
|
|
320
320
|
return {
|
|
@@ -337,16 +337,16 @@ var j = {
|
|
|
337
337
|
left: 6
|
|
338
338
|
},
|
|
339
339
|
stretches: !0,
|
|
340
|
-
defaults:
|
|
341
|
-
},
|
|
340
|
+
defaults: j
|
|
341
|
+
}, N = {
|
|
342
342
|
pointDepth: 100,
|
|
343
343
|
shoulderY: 55,
|
|
344
344
|
curveTightness: .7,
|
|
345
345
|
erosion: .33
|
|
346
346
|
};
|
|
347
|
-
function
|
|
347
|
+
function te({ variant: e, focused: t, params: n }) {
|
|
348
348
|
let r = {
|
|
349
|
-
...
|
|
349
|
+
...N,
|
|
350
350
|
...n
|
|
351
351
|
}, i = f(null), a = S(i), c = Math.max(60, Math.min(r.pointDepth, 110)), l = Math.max(20, Math.min(r.shoulderY, c - 5)), u = l + (c - l) * Math.max(.1, Math.min(r.curveTightness, 1)), d = Math.max(0, Math.min(r.erosion, 1)) * 12, p = d / a.w * 100, m = d / a.h * 100, h = [
|
|
352
352
|
`M ${p.toFixed(3)} 0`,
|
|
@@ -378,8 +378,8 @@ function ee({ variant: e, focused: t, params: n }) {
|
|
|
378
378
|
]
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
|
-
var
|
|
382
|
-
Component:
|
|
381
|
+
var ne = {
|
|
382
|
+
Component: te,
|
|
383
383
|
insets: {
|
|
384
384
|
top: 2,
|
|
385
385
|
right: 8,
|
|
@@ -387,16 +387,16 @@ var te = {
|
|
|
387
387
|
left: 8
|
|
388
388
|
},
|
|
389
389
|
stretches: !0,
|
|
390
|
-
defaults:
|
|
391
|
-
},
|
|
390
|
+
defaults: N
|
|
391
|
+
}, P = {
|
|
392
392
|
left: "inward",
|
|
393
393
|
right: "outward",
|
|
394
394
|
taperWidth: 8
|
|
395
|
-
},
|
|
395
|
+
}, re = {
|
|
396
396
|
compose: (e) => ({
|
|
397
397
|
base: "ribbon",
|
|
398
398
|
baseParams: {
|
|
399
|
-
...
|
|
399
|
+
...P,
|
|
400
400
|
...e
|
|
401
401
|
}
|
|
402
402
|
}),
|
|
@@ -407,17 +407,17 @@ var te = {
|
|
|
407
407
|
left: 0
|
|
408
408
|
},
|
|
409
409
|
stretches: !0,
|
|
410
|
-
defaults:
|
|
411
|
-
},
|
|
410
|
+
defaults: P
|
|
411
|
+
}, ie = {
|
|
412
412
|
points: 44,
|
|
413
413
|
cornerRadius: 6,
|
|
414
414
|
spikeLen: 12,
|
|
415
415
|
spikeBaseWidth: 3,
|
|
416
416
|
irregularity: 0
|
|
417
|
-
},
|
|
417
|
+
}, ae = {
|
|
418
418
|
compose: (e) => {
|
|
419
419
|
let t = {
|
|
420
|
-
...
|
|
420
|
+
...ie,
|
|
421
421
|
...e
|
|
422
422
|
};
|
|
423
423
|
return {
|
|
@@ -444,14 +444,14 @@ var te = {
|
|
|
444
444
|
left: 8
|
|
445
445
|
},
|
|
446
446
|
stretches: !0,
|
|
447
|
-
defaults:
|
|
448
|
-
},
|
|
447
|
+
defaults: ie
|
|
448
|
+
}, oe = {
|
|
449
449
|
points: 16,
|
|
450
450
|
outerR: 58,
|
|
451
451
|
innerR: 50,
|
|
452
452
|
rotation: -5
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function se(e, t, n, r) {
|
|
455
455
|
let i = e * 2, a = Math.PI * 2 / i, o = r * Math.PI / 180, s = "";
|
|
456
456
|
for (let e = 0; e < i; e++) {
|
|
457
457
|
let r = e % 2 == 0 ? t : n, i = o + e * a, c = 50 + Math.cos(i) * r, l = 50 + Math.sin(i) * r;
|
|
@@ -459,12 +459,12 @@ function oe(e, t, n, r) {
|
|
|
459
459
|
}
|
|
460
460
|
return s + " Z";
|
|
461
461
|
}
|
|
462
|
-
var
|
|
462
|
+
var ce = {
|
|
463
463
|
Component: ({ variant: e, focused: t, params: n }) => {
|
|
464
464
|
let { points: r, outerR: i, innerR: c, rotation: l } = {
|
|
465
|
-
...
|
|
465
|
+
...oe,
|
|
466
466
|
...n
|
|
467
|
-
}, u =
|
|
467
|
+
}, u = se(r, i, c, l), d = se(r, i + 4, c + 3, l);
|
|
468
468
|
return /* @__PURE__ */ s(a, { children: [
|
|
469
469
|
(e === "solid" || e === "subtle") && /* @__PURE__ */ o("path", {
|
|
470
470
|
className: "badge-fill",
|
|
@@ -487,15 +487,15 @@ var se = {
|
|
|
487
487
|
left: 4
|
|
488
488
|
},
|
|
489
489
|
stretches: !0,
|
|
490
|
-
defaults:
|
|
491
|
-
},
|
|
490
|
+
defaults: oe
|
|
491
|
+
}, le = {
|
|
492
492
|
biteRadius: 3,
|
|
493
493
|
biteSpacing: 8,
|
|
494
494
|
irregularity: 0
|
|
495
|
-
},
|
|
495
|
+
}, ue = {
|
|
496
496
|
compose: (e) => {
|
|
497
497
|
let t = {
|
|
498
|
-
...
|
|
498
|
+
...le,
|
|
499
499
|
...e
|
|
500
500
|
};
|
|
501
501
|
return {
|
|
@@ -518,16 +518,16 @@ var se = {
|
|
|
518
518
|
left: 6
|
|
519
519
|
},
|
|
520
520
|
stretches: !0,
|
|
521
|
-
defaults:
|
|
522
|
-
},
|
|
521
|
+
defaults: le
|
|
522
|
+
}, de = {
|
|
523
523
|
bumpWidth: 24,
|
|
524
524
|
puffiness: 14,
|
|
525
525
|
erosion: .2,
|
|
526
526
|
irregularity: 0
|
|
527
|
-
},
|
|
527
|
+
}, fe = {
|
|
528
528
|
compose: (e) => {
|
|
529
529
|
let t = {
|
|
530
|
-
...
|
|
530
|
+
...de,
|
|
531
531
|
...e
|
|
532
532
|
};
|
|
533
533
|
return {
|
|
@@ -550,15 +550,15 @@ var se = {
|
|
|
550
550
|
left: 8
|
|
551
551
|
},
|
|
552
552
|
stretches: !0,
|
|
553
|
-
defaults:
|
|
554
|
-
},
|
|
553
|
+
defaults: de
|
|
554
|
+
}, F = {
|
|
555
555
|
eaveY: 32,
|
|
556
556
|
peakHeight: 32,
|
|
557
557
|
roofOverhang: 0
|
|
558
|
-
},
|
|
558
|
+
}, pe = {
|
|
559
559
|
compose: (e) => {
|
|
560
560
|
let t = {
|
|
561
|
-
...
|
|
561
|
+
...F,
|
|
562
562
|
...e
|
|
563
563
|
}, n = Math.max(2, Math.min(t.eaveY, 95)), r = n - Math.max(0, t.peakHeight), i = Math.max(0, Math.min(t.roofOverhang, 12));
|
|
564
564
|
return {
|
|
@@ -581,17 +581,17 @@ var se = {
|
|
|
581
581
|
left: 4
|
|
582
582
|
},
|
|
583
583
|
stretches: !0,
|
|
584
|
-
defaults:
|
|
585
|
-
},
|
|
584
|
+
defaults: F
|
|
585
|
+
}, I = {
|
|
586
586
|
bevelWidth: 6,
|
|
587
587
|
lightFrom: "tl",
|
|
588
588
|
rivetRadius: 2.4,
|
|
589
589
|
rivetInset: 7,
|
|
590
590
|
sheenIntensity: .22
|
|
591
|
-
},
|
|
591
|
+
}, me = {
|
|
592
592
|
compose: (e) => {
|
|
593
593
|
let t = {
|
|
594
|
-
...
|
|
594
|
+
...I,
|
|
595
595
|
...e
|
|
596
596
|
};
|
|
597
597
|
return {
|
|
@@ -630,12 +630,12 @@ var se = {
|
|
|
630
630
|
left: 8
|
|
631
631
|
},
|
|
632
632
|
stretches: !0,
|
|
633
|
-
defaults:
|
|
634
|
-
},
|
|
633
|
+
defaults: I
|
|
634
|
+
}, he = {
|
|
635
635
|
topInset: 12,
|
|
636
636
|
pointDepth: 100
|
|
637
637
|
};
|
|
638
|
-
function
|
|
638
|
+
function ge(e, t) {
|
|
639
639
|
let n = Math.max(0, Math.min(e, 35)), r = Math.max(60, Math.min(t, 110));
|
|
640
640
|
return [
|
|
641
641
|
`M ${n} 6`,
|
|
@@ -648,12 +648,12 @@ function he(e, t) {
|
|
|
648
648
|
"Z"
|
|
649
649
|
].join(" ");
|
|
650
650
|
}
|
|
651
|
-
var
|
|
651
|
+
var L = {
|
|
652
652
|
Component: ({ variant: e, focused: t, params: n }) => {
|
|
653
653
|
let r = {
|
|
654
|
-
...
|
|
654
|
+
...he,
|
|
655
655
|
...n
|
|
656
|
-
}, i =
|
|
656
|
+
}, i = ge(r.topInset, r.pointDepth);
|
|
657
657
|
return /* @__PURE__ */ s(a, { children: [
|
|
658
658
|
(e === "solid" || e === "subtle") && /* @__PURE__ */ o("path", {
|
|
659
659
|
className: "badge-fill",
|
|
@@ -677,20 +677,20 @@ var R = {
|
|
|
677
677
|
left: 10
|
|
678
678
|
},
|
|
679
679
|
stretches: !0,
|
|
680
|
-
defaults:
|
|
681
|
-
},
|
|
680
|
+
defaults: he
|
|
681
|
+
}, R = "M 35 0 L 30 12 Q 15 30 15 55 Q 15 75 30 90 L 30 100 L 70 100 L 70 90 Q 85 75 85 55 Q 85 30 70 12 L 65 0 Z", _e = {
|
|
682
682
|
Component: ({ variant: e, focused: t }) => /* @__PURE__ */ s(a, { children: [
|
|
683
683
|
(e === "solid" || e === "subtle") && /* @__PURE__ */ o("path", {
|
|
684
684
|
className: "badge-fill",
|
|
685
|
-
d:
|
|
685
|
+
d: R
|
|
686
686
|
}),
|
|
687
687
|
(e === "outline" || e === "solid") && /* @__PURE__ */ o("path", {
|
|
688
688
|
className: "badge-stroke",
|
|
689
|
-
d:
|
|
689
|
+
d: R
|
|
690
690
|
}),
|
|
691
691
|
t && /* @__PURE__ */ o("path", {
|
|
692
692
|
className: "badge-focus",
|
|
693
|
-
d:
|
|
693
|
+
d: R,
|
|
694
694
|
transform: "translate(50 50) scale(1.05) translate(-50 -50)"
|
|
695
695
|
})
|
|
696
696
|
] }),
|
|
@@ -701,17 +701,17 @@ var R = {
|
|
|
701
701
|
left: 12
|
|
702
702
|
},
|
|
703
703
|
stretches: !0
|
|
704
|
-
},
|
|
704
|
+
}, z = {
|
|
705
705
|
headX: 6,
|
|
706
706
|
headHalfHeight: 23,
|
|
707
707
|
shoulderX: 33,
|
|
708
708
|
shoulderHalfHeight: 36,
|
|
709
709
|
footX: 100,
|
|
710
710
|
footHalfHeight: 29
|
|
711
|
-
},
|
|
711
|
+
}, ve = {
|
|
712
712
|
compose: (e) => {
|
|
713
713
|
let t = {
|
|
714
|
-
...
|
|
714
|
+
...z,
|
|
715
715
|
...e
|
|
716
716
|
}, n = Math.max(0, Math.min(t.headX, 40)), r = Math.max(n + 1, Math.min(t.shoulderX, 70)), i = Math.max(r + 1, Math.min(t.footX, 100)), a = Math.max(2, Math.min(t.headHalfHeight, 50)), o = Math.max(0, Math.min(t.shoulderHalfHeight, 50)), s = Math.min(50, a + o), c = Math.max(2, Math.min(t.footHalfHeight, 50));
|
|
717
717
|
return {
|
|
@@ -733,13 +733,13 @@ var R = {
|
|
|
733
733
|
left: 11
|
|
734
734
|
},
|
|
735
735
|
stretches: !0,
|
|
736
|
-
defaults:
|
|
737
|
-
},
|
|
736
|
+
defaults: z
|
|
737
|
+
}, B = {
|
|
738
738
|
teeth: 11,
|
|
739
739
|
tearDepth: 4,
|
|
740
740
|
sideToTopRatio: 3
|
|
741
741
|
};
|
|
742
|
-
function
|
|
742
|
+
function V(e, t) {
|
|
743
743
|
let n = Math.max(3, Math.floor(e)), r = Math.max(1, t), i = (e) => r * (.55 + .55 * Math.abs(Math.sin(e * 1.73 + .5))), a = "M 0 0 L 100 0";
|
|
744
744
|
for (let e = 0; e < n; e++) {
|
|
745
745
|
let t = (e + .5) / n * 100, r = (e + 1) / n * 100;
|
|
@@ -752,12 +752,12 @@ function H(e, t) {
|
|
|
752
752
|
}
|
|
753
753
|
return a + " Z";
|
|
754
754
|
}
|
|
755
|
-
var
|
|
755
|
+
var ye = 2, be = {
|
|
756
756
|
Component: ({ variant: e, focused: t, params: n }) => {
|
|
757
757
|
let r = {
|
|
758
|
-
...
|
|
758
|
+
...B,
|
|
759
759
|
...n
|
|
760
|
-
}, i =
|
|
760
|
+
}, i = V(r.teeth, r.tearDepth);
|
|
761
761
|
return /* @__PURE__ */ s(a, { children: [
|
|
762
762
|
(e === "solid" || e === "subtle") && /* @__PURE__ */ o("path", {
|
|
763
763
|
className: "badge-fill",
|
|
@@ -775,7 +775,7 @@ var ve = 2, ye = {
|
|
|
775
775
|
] });
|
|
776
776
|
},
|
|
777
777
|
insets: (e) => {
|
|
778
|
-
let t = Math.max(.2, Math.min(e.sideToTopRatio ??
|
|
778
|
+
let t = Math.max(.2, Math.min(e.sideToTopRatio ?? B.sideToTopRatio, 10)), n = ye, r = Math.round(n * t);
|
|
779
779
|
return {
|
|
780
780
|
top: n,
|
|
781
781
|
right: r,
|
|
@@ -784,16 +784,16 @@ var ve = 2, ye = {
|
|
|
784
784
|
};
|
|
785
785
|
},
|
|
786
786
|
stretches: !0,
|
|
787
|
-
defaults:
|
|
788
|
-
},
|
|
787
|
+
defaults: B
|
|
788
|
+
}, H = "M 8 30 Q 0 50 8 70 L 92 70 Q 100 50 92 30 Z", xe = {
|
|
789
789
|
Component: ({ variant: e, focused: t }) => /* @__PURE__ */ s(a, { children: [
|
|
790
790
|
(e === "solid" || e === "subtle") && /* @__PURE__ */ o("path", {
|
|
791
791
|
className: "badge-fill",
|
|
792
|
-
d:
|
|
792
|
+
d: H
|
|
793
793
|
}),
|
|
794
794
|
(e === "outline" || e === "solid") && /* @__PURE__ */ o("path", {
|
|
795
795
|
className: "badge-stroke",
|
|
796
|
-
d:
|
|
796
|
+
d: H
|
|
797
797
|
}),
|
|
798
798
|
(e === "outline" || e === "solid") && /* @__PURE__ */ s(a, { children: [
|
|
799
799
|
/* @__PURE__ */ o("path", {
|
|
@@ -850,7 +850,7 @@ var ve = 2, ye = {
|
|
|
850
850
|
] }),
|
|
851
851
|
t && /* @__PURE__ */ o("path", {
|
|
852
852
|
className: "badge-focus",
|
|
853
|
-
d:
|
|
853
|
+
d: H,
|
|
854
854
|
transform: "translate(50 50) scale(1.05) translate(-50 -50)"
|
|
855
855
|
})
|
|
856
856
|
] }),
|
|
@@ -861,7 +861,7 @@ var ve = 2, ye = {
|
|
|
861
861
|
left: 4
|
|
862
862
|
},
|
|
863
863
|
stretches: !0
|
|
864
|
-
},
|
|
864
|
+
}, U = {
|
|
865
865
|
spikeR: 50,
|
|
866
866
|
lobeR: 42,
|
|
867
867
|
valleyR: 25,
|
|
@@ -875,33 +875,33 @@ var ve = 2, ye = {
|
|
|
875
875
|
valleySmooth: 3,
|
|
876
876
|
rotation: 0,
|
|
877
877
|
samples: 192
|
|
878
|
-
},
|
|
878
|
+
}, Se = {
|
|
879
879
|
pill: h,
|
|
880
880
|
plain: g,
|
|
881
881
|
square: v,
|
|
882
882
|
notched: x,
|
|
883
883
|
perforated: T,
|
|
884
|
-
hexagon:
|
|
885
|
-
starburst:
|
|
886
|
-
scalloped:
|
|
887
|
-
shield:
|
|
888
|
-
ribbon:
|
|
889
|
-
beavis:
|
|
890
|
-
sparkler:
|
|
891
|
-
postage:
|
|
892
|
-
cloud:
|
|
893
|
-
house:
|
|
894
|
-
plaque:
|
|
895
|
-
crest:
|
|
896
|
-
urn:
|
|
897
|
-
coffin:
|
|
898
|
-
receipt:
|
|
899
|
-
wood:
|
|
884
|
+
hexagon: ee,
|
|
885
|
+
starburst: A,
|
|
886
|
+
scalloped: M,
|
|
887
|
+
shield: ne,
|
|
888
|
+
ribbon: re,
|
|
889
|
+
beavis: ae,
|
|
890
|
+
sparkler: ce,
|
|
891
|
+
postage: ue,
|
|
892
|
+
cloud: fe,
|
|
893
|
+
house: pe,
|
|
894
|
+
plaque: me,
|
|
895
|
+
crest: L,
|
|
896
|
+
urn: _e,
|
|
897
|
+
coffin: ve,
|
|
898
|
+
receipt: be,
|
|
899
|
+
wood: xe,
|
|
900
900
|
quatrefoil: {
|
|
901
901
|
compose: (e) => ({
|
|
902
902
|
base: "quatrefoil",
|
|
903
903
|
baseParams: {
|
|
904
|
-
...
|
|
904
|
+
...U,
|
|
905
905
|
...e
|
|
906
906
|
}
|
|
907
907
|
}),
|
|
@@ -912,14 +912,53 @@ var ve = 2, ye = {
|
|
|
912
912
|
left: 14
|
|
913
913
|
},
|
|
914
914
|
stretches: !0,
|
|
915
|
-
defaults:
|
|
915
|
+
defaults: U
|
|
916
|
+
}
|
|
917
|
+
};
|
|
918
|
+
//#endregion
|
|
919
|
+
//#region src/components/Badge/bases/polygonSampler.ts
|
|
920
|
+
function W(e, t, n) {
|
|
921
|
+
let r = 100 / t, i = 100 / n, a = [], o = [0];
|
|
922
|
+
for (let t = 0; t < e.length; t++) {
|
|
923
|
+
let n = e[t], s = e[(t + 1) % e.length], c = (s[0] - n[0]) / r, l = (s[1] - n[1]) / i, u = Math.hypot(c, l);
|
|
924
|
+
a.push(u), o.push(o[o.length - 1] + u);
|
|
916
925
|
}
|
|
917
|
-
|
|
926
|
+
let s = o[o.length - 1];
|
|
927
|
+
return {
|
|
928
|
+
bodyPath: `M ${e[0][0]} ${e[0][1]} ` + e.slice(1).map(([e, t]) => `L ${e} ${t}`).join(" ") + " Z",
|
|
929
|
+
perimeterAt: (t) => {
|
|
930
|
+
let n = (t % s + s) % s;
|
|
931
|
+
for (let t = 0; t < a.length; t++) {
|
|
932
|
+
let s = o[t];
|
|
933
|
+
if (n <= o[t + 1] + 1e-9) {
|
|
934
|
+
let o = a[t] > 0 ? (n - s) / a[t] : 0, c = e[t], l = e[(t + 1) % e.length], u = c[0] + (l[0] - c[0]) * o, d = c[1] + (l[1] - c[1]) * o, f = (l[0] - c[0]) / r, p = (l[1] - c[1]) / i, m = Math.hypot(f, p) || 1;
|
|
935
|
+
return {
|
|
936
|
+
x: u,
|
|
937
|
+
y: d,
|
|
938
|
+
nx: p / m,
|
|
939
|
+
ny: -f / m
|
|
940
|
+
};
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
return {
|
|
944
|
+
x: e[0][0],
|
|
945
|
+
y: e[0][1],
|
|
946
|
+
nx: 0,
|
|
947
|
+
ny: -1
|
|
948
|
+
};
|
|
949
|
+
},
|
|
950
|
+
totalCss: s
|
|
951
|
+
};
|
|
952
|
+
}
|
|
953
|
+
//#endregion
|
|
954
|
+
//#region src/components/Badge/bases/ChamferedRect.tsx
|
|
955
|
+
var G = { chamfer: 6 }, Ce = {
|
|
918
956
|
build: (e, t, n) => {
|
|
919
957
|
let r = {
|
|
920
958
|
...G,
|
|
921
959
|
...e
|
|
922
|
-
}, i = 100 / t, a = 100 / n, o = r.chamfer * i, s = r.chamfer * a
|
|
960
|
+
}, i = 100 / t, a = 100 / n, o = r.chamfer * i, s = r.chamfer * a;
|
|
961
|
+
return W([
|
|
923
962
|
[o, 0],
|
|
924
963
|
[100 - o, 0],
|
|
925
964
|
[100, s],
|
|
@@ -928,37 +967,7 @@ var ve = 2, ye = {
|
|
|
928
967
|
[o, 100],
|
|
929
968
|
[0, 100 - s],
|
|
930
969
|
[0, s]
|
|
931
|
-
],
|
|
932
|
-
for (let e = 0; e < c.length; e++) {
|
|
933
|
-
let t = c[e], n = c[(e + 1) % c.length], r = (n[0] - t[0]) / i, o = (n[1] - t[1]) / a, s = Math.hypot(r, o);
|
|
934
|
-
l.push(s), u.push(u[u.length - 1] + s);
|
|
935
|
-
}
|
|
936
|
-
let d = u[u.length - 1];
|
|
937
|
-
return {
|
|
938
|
-
bodyPath: `M ${c[0][0]} ${c[0][1]} ` + c.slice(1).map(([e, t]) => `L ${e} ${t}`).join(" ") + " Z",
|
|
939
|
-
perimeterAt: (e) => {
|
|
940
|
-
let t = (e % d + d) % d;
|
|
941
|
-
for (let e = 0; e < l.length; e++) {
|
|
942
|
-
let n = u[e];
|
|
943
|
-
if (t <= u[e + 1] + 1e-9) {
|
|
944
|
-
let r = l[e] > 0 ? (t - n) / l[e] : 0, o = c[e], s = c[(e + 1) % c.length], u = o[0] + (s[0] - o[0]) * r, d = o[1] + (s[1] - o[1]) * r, f = (s[0] - o[0]) / i, p = (s[1] - o[1]) / a, m = Math.hypot(f, p) || 1;
|
|
945
|
-
return {
|
|
946
|
-
x: u,
|
|
947
|
-
y: d,
|
|
948
|
-
nx: p / m,
|
|
949
|
-
ny: -f / m
|
|
950
|
-
};
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
return {
|
|
954
|
-
x: c[0][0],
|
|
955
|
-
y: c[0][1],
|
|
956
|
-
nx: 0,
|
|
957
|
-
ny: -1
|
|
958
|
-
};
|
|
959
|
-
},
|
|
960
|
-
totalCss: d
|
|
961
|
-
};
|
|
970
|
+
], t, n);
|
|
962
971
|
},
|
|
963
972
|
defaults: G,
|
|
964
973
|
insets: {
|
|
@@ -967,14 +976,14 @@ var ve = 2, ye = {
|
|
|
967
976
|
bottom: 0,
|
|
968
977
|
left: 4
|
|
969
978
|
}
|
|
970
|
-
},
|
|
979
|
+
}, K = {
|
|
971
980
|
erosion: .16,
|
|
972
981
|
eccentricity: 1,
|
|
973
982
|
pinch: 0
|
|
974
|
-
},
|
|
983
|
+
}, q = {
|
|
975
984
|
build: (e, t, n) => {
|
|
976
985
|
let r = {
|
|
977
|
-
...
|
|
986
|
+
...K,
|
|
978
987
|
...e
|
|
979
988
|
}, i = 100 / t, a = 100 / n, o = Math.max(0, Math.min(r.erosion, 1)), s = Math.max(.1, Math.min(r.eccentricity, 10)), c = Math.min(t, n) / 2 * o, l = c * i * s, u = c * a / s, d = Math.max(0, Math.min(l, 50)), f = Math.max(0, Math.min(u, 50)), p = (100 - 2 * d) / i, m = (100 - 2 * f) / a, h = c + c || 1, g = Math.PI * h * 1 / 4, _ = [
|
|
980
989
|
{
|
|
@@ -1125,58 +1134,20 @@ var ve = 2, ye = {
|
|
|
1125
1134
|
totalCss: y
|
|
1126
1135
|
};
|
|
1127
1136
|
},
|
|
1128
|
-
defaults:
|
|
1137
|
+
defaults: K,
|
|
1129
1138
|
insets: {
|
|
1130
1139
|
top: 0,
|
|
1131
1140
|
right: 4,
|
|
1132
1141
|
bottom: 0,
|
|
1133
1142
|
left: 4
|
|
1134
1143
|
}
|
|
1135
|
-
}
|
|
1136
|
-
//#endregion
|
|
1137
|
-
//#region src/components/Badge/bases/polygonSampler.ts
|
|
1138
|
-
function q(e, t, n) {
|
|
1139
|
-
let r = 100 / t, i = 100 / n, a = [], o = [0];
|
|
1140
|
-
for (let t = 0; t < e.length; t++) {
|
|
1141
|
-
let n = e[t], s = e[(t + 1) % e.length], c = (s[0] - n[0]) / r, l = (s[1] - n[1]) / i, u = Math.hypot(c, l);
|
|
1142
|
-
a.push(u), o.push(o[o.length - 1] + u);
|
|
1143
|
-
}
|
|
1144
|
-
let s = o[o.length - 1];
|
|
1145
|
-
return {
|
|
1146
|
-
bodyPath: `M ${e[0][0]} ${e[0][1]} ` + e.slice(1).map(([e, t]) => `L ${e} ${t}`).join(" ") + " Z",
|
|
1147
|
-
perimeterAt: (t) => {
|
|
1148
|
-
let n = (t % s + s) % s;
|
|
1149
|
-
for (let t = 0; t < a.length; t++) {
|
|
1150
|
-
let s = o[t];
|
|
1151
|
-
if (n <= o[t + 1] + 1e-9) {
|
|
1152
|
-
let o = a[t] > 0 ? (n - s) / a[t] : 0, c = e[t], l = e[(t + 1) % e.length], u = c[0] + (l[0] - c[0]) * o, d = c[1] + (l[1] - c[1]) * o, f = (l[0] - c[0]) / r, p = (l[1] - c[1]) / i, m = Math.hypot(f, p) || 1;
|
|
1153
|
-
return {
|
|
1154
|
-
x: u,
|
|
1155
|
-
y: d,
|
|
1156
|
-
nx: p / m,
|
|
1157
|
-
ny: -f / m
|
|
1158
|
-
};
|
|
1159
|
-
}
|
|
1160
|
-
}
|
|
1161
|
-
return {
|
|
1162
|
-
x: e[0][0],
|
|
1163
|
-
y: e[0][1],
|
|
1164
|
-
nx: 0,
|
|
1165
|
-
ny: -1
|
|
1166
|
-
};
|
|
1167
|
-
},
|
|
1168
|
-
totalCss: s
|
|
1169
|
-
};
|
|
1170
|
-
}
|
|
1171
|
-
//#endregion
|
|
1172
|
-
//#region src/components/Badge/bases/Polygon.tsx
|
|
1173
|
-
var J = [
|
|
1144
|
+
}, J = [
|
|
1174
1145
|
[0, 0],
|
|
1175
1146
|
[100, 0],
|
|
1176
1147
|
[100, 100],
|
|
1177
1148
|
[0, 100]
|
|
1178
1149
|
], we = {
|
|
1179
|
-
build: (e, t, n) =>
|
|
1150
|
+
build: (e, t, n) => W(e?.vertices && e.vertices.length >= 3 ? e.vertices : J, t, n),
|
|
1180
1151
|
defaults: { vertices: J },
|
|
1181
1152
|
insets: {
|
|
1182
1153
|
top: 0,
|
|
@@ -1194,13 +1165,13 @@ var J = [
|
|
|
1194
1165
|
}, Y = .62;
|
|
1195
1166
|
function X(e, t, n, r, i, a, o) {
|
|
1196
1167
|
if (i === "flat") return [t];
|
|
1197
|
-
let s = i === "out" ? 1 : -1, c = t[0] - e[0], l = t[1] - e[1], u = Math.hypot(c, l) || 1, d = c / u, f = l / u, p = (e[0] + t[0]) / 2, m = (e[1] + t[1]) / 2, h = p + n * s * a * Y, g = m + r * s * a * Y, _ = a * Math.sqrt(Math.max(0, 1 - Y * Y)), v = [p - d * _, m - f * _], y = [p + d * _, m + f * _], b = [p + n * s * (a + a * .38), m + r * s * (a + a * .38)], x = Math.hypot(v[0] - h, v[1] - g), S = Math.atan2(v[1] - g, v[0] - h), C = Math.atan2(y[1] - g, y[0] - h), w = Math.atan2(b[1] - g, b[0] - h), T = Math.PI * 2, E = ((w - S) % T + T) % T, D = ((C - S) % T + T) % T,
|
|
1198
|
-
|
|
1168
|
+
let s = i === "out" ? 1 : -1, c = t[0] - e[0], l = t[1] - e[1], u = Math.hypot(c, l) || 1, d = c / u, f = l / u, p = (e[0] + t[0]) / 2, m = (e[1] + t[1]) / 2, h = p + n * s * a * Y, g = m + r * s * a * Y, _ = a * Math.sqrt(Math.max(0, 1 - Y * Y)), v = [p - d * _, m - f * _], y = [p + d * _, m + f * _], b = [p + n * s * (a + a * .38), m + r * s * (a + a * .38)], x = Math.hypot(v[0] - h, v[1] - g), S = Math.atan2(v[1] - g, v[0] - h), C = Math.atan2(y[1] - g, y[0] - h), w = Math.atan2(b[1] - g, b[0] - h), T = Math.PI * 2, E = ((w - S) % T + T) % T, D = ((C - S) % T + T) % T, ee = E < D ? D : D - T, O = [];
|
|
1169
|
+
O.push(v);
|
|
1199
1170
|
for (let e = 1; e <= o; e++) {
|
|
1200
|
-
let t = S + e / o *
|
|
1201
|
-
|
|
1171
|
+
let t = S + e / o * ee;
|
|
1172
|
+
O.push([h + x * Math.cos(t), g + x * Math.sin(t)]);
|
|
1202
1173
|
}
|
|
1203
|
-
return
|
|
1174
|
+
return O.push(t), O;
|
|
1204
1175
|
}
|
|
1205
1176
|
var Ee = {
|
|
1206
1177
|
build: (e, t, n) => {
|
|
@@ -1208,7 +1179,7 @@ var Ee = {
|
|
|
1208
1179
|
...Te,
|
|
1209
1180
|
...e
|
|
1210
1181
|
}, i = Math.max(2, Math.min(r.tabSize, 40)), a = Math.max(6, Math.floor(r.arcSamples)), o = [0, 0], s = [100, 0], c = [100, 100], l = [0, 100], u = [o];
|
|
1211
|
-
return u.push(...X(o, s, 0, -1, r.top, i, a)), u.push(...X(s, c, 1, 0, r.right, i, a)), u.push(...X(c, l, 0, 1, r.bottom, i, a)), u.push(...X(l, o, -1, 0, r.left, i, a)), u.length > 1 && u[u.length - 1][0] === o[0] && u[u.length - 1][1] === o[1] && u.pop(),
|
|
1182
|
+
return u.push(...X(o, s, 0, -1, r.top, i, a)), u.push(...X(s, c, 1, 0, r.right, i, a)), u.push(...X(c, l, 0, 1, r.bottom, i, a)), u.push(...X(l, o, -1, 0, r.left, i, a)), u.length > 1 && u[u.length - 1][0] === o[0] && u[u.length - 1][1] === o[1] && u.pop(), W(u, t, n);
|
|
1212
1183
|
},
|
|
1213
1184
|
defaults: Te,
|
|
1214
1185
|
insets: {
|
|
@@ -1254,7 +1225,7 @@ function ke(e = {}) {
|
|
|
1254
1225
|
return h;
|
|
1255
1226
|
}
|
|
1256
1227
|
var Ae = {
|
|
1257
|
-
build: (e, t, n) =>
|
|
1228
|
+
build: (e, t, n) => W(ke(e), t, n),
|
|
1258
1229
|
defaults: De,
|
|
1259
1230
|
insets: {
|
|
1260
1231
|
top: 10,
|
|
@@ -1401,7 +1372,7 @@ var Ie = {
|
|
|
1401
1372
|
let u = Fe(l, i);
|
|
1402
1373
|
s.push([50 + u * Math.cos(t), 50 + u * Math.sin(t)]);
|
|
1403
1374
|
}
|
|
1404
|
-
return
|
|
1375
|
+
return W(s, t, n);
|
|
1405
1376
|
},
|
|
1406
1377
|
defaults: je,
|
|
1407
1378
|
insets: {
|
|
@@ -1602,7 +1573,7 @@ var Ke = {
|
|
|
1602
1573
|
let u = Ge(l, i);
|
|
1603
1574
|
s.push([50 + u * Math.cos(t), 50 + u * Math.sin(t)]);
|
|
1604
1575
|
}
|
|
1605
|
-
return
|
|
1576
|
+
return W(s, t, n);
|
|
1606
1577
|
},
|
|
1607
1578
|
defaults: Le,
|
|
1608
1579
|
insets: {
|
|
@@ -1649,7 +1620,7 @@ var Xe = {
|
|
|
1649
1620
|
...qe,
|
|
1650
1621
|
...e
|
|
1651
1622
|
}, i = Math.max(0, r.taperWidth), a = t > 0 ? i / t * 100 : 0, o = Je(r.left, 0, 1, a), s = Je(r.right, 100, -1, a), c = [o.top];
|
|
1652
|
-
return c.push(s.top), s.mid && c.push(s.mid), c.push(s.bottom), c.push(o.bottom), o.mid && c.push(o.mid),
|
|
1623
|
+
return c.push(s.top), s.mid && c.push(s.mid), c.push(s.bottom), c.push(o.bottom), o.mid && c.push(o.mid), W(c, t, n);
|
|
1653
1624
|
},
|
|
1654
1625
|
insets: (e) => {
|
|
1655
1626
|
let t = {
|
|
@@ -1738,8 +1709,8 @@ var st = {
|
|
|
1738
1709
|
rightEdge: "flat",
|
|
1739
1710
|
depth: 6
|
|
1740
1711
|
}, ct = 20, lt = {
|
|
1741
|
-
"chamfered-rect":
|
|
1742
|
-
"rounded-rect":
|
|
1712
|
+
"chamfered-rect": Ce,
|
|
1713
|
+
"rounded-rect": q,
|
|
1743
1714
|
polygon: we,
|
|
1744
1715
|
puzzle: Ee,
|
|
1745
1716
|
quatrefoil: Ae,
|
|
@@ -2369,17 +2340,17 @@ var zt = {
|
|
|
2369
2340
|
opacity: Math.max(0, Math.min(i.opacity * g(e), 1))
|
|
2370
2341
|
}), x += v + y;
|
|
2371
2342
|
}
|
|
2372
|
-
let C = i.gradientAngle * Math.PI / 180, w = Math.cos(C), T = Math.sin(C), E = 50 - w * 100 / 2, D = 50 - T * 100 / 2,
|
|
2343
|
+
let C = i.gradientAngle * Math.PI / 180, w = Math.cos(C), T = Math.sin(C), E = 50 - w * 100 / 2, D = 50 - T * 100 / 2, ee = 50 + w * 100 / 2, O = 50 + T * 100 / 2, k = Math.max(0, Math.min(i.gradientStart, 1)), A = Math.max(0, Math.min(i.gradientEnd, 1)), j = k <= A ? [
|
|
2373
2344
|
{
|
|
2374
2345
|
offset: 0,
|
|
2375
2346
|
color: "#fff"
|
|
2376
2347
|
},
|
|
2377
2348
|
{
|
|
2378
|
-
offset:
|
|
2349
|
+
offset: k,
|
|
2379
2350
|
color: "#fff"
|
|
2380
2351
|
},
|
|
2381
2352
|
{
|
|
2382
|
-
offset:
|
|
2353
|
+
offset: A,
|
|
2383
2354
|
color: "#000"
|
|
2384
2355
|
},
|
|
2385
2356
|
{
|
|
@@ -2392,11 +2363,11 @@ var zt = {
|
|
|
2392
2363
|
color: "#000"
|
|
2393
2364
|
},
|
|
2394
2365
|
{
|
|
2395
|
-
offset:
|
|
2366
|
+
offset: A,
|
|
2396
2367
|
color: "#000"
|
|
2397
2368
|
},
|
|
2398
2369
|
{
|
|
2399
|
-
offset:
|
|
2370
|
+
offset: k,
|
|
2400
2371
|
color: "#fff"
|
|
2401
2372
|
},
|
|
2402
2373
|
{
|
|
@@ -2413,10 +2384,10 @@ var zt = {
|
|
|
2413
2384
|
id: d,
|
|
2414
2385
|
x1: E,
|
|
2415
2386
|
y1: D,
|
|
2416
|
-
x2:
|
|
2417
|
-
y2:
|
|
2387
|
+
x2: ee,
|
|
2388
|
+
y2: O,
|
|
2418
2389
|
gradientUnits: "userSpaceOnUse",
|
|
2419
|
-
children:
|
|
2390
|
+
children: j.map((e, t) => /* @__PURE__ */ o("stop", {
|
|
2420
2391
|
offset: e.offset,
|
|
2421
2392
|
stopColor: e.color
|
|
2422
2393
|
}, t))
|
|
@@ -2668,7 +2639,7 @@ var zt = {
|
|
|
2668
2639
|
for (let n = 1; n < e.length; n++) t += ` L ${e[n].x.toFixed(3)} ${e[n].y.toFixed(3)}`;
|
|
2669
2640
|
_.push(t);
|
|
2670
2641
|
}
|
|
2671
|
-
let v = 100 / t, y = 100 / n, b = Math.max(v, y), x = f.bezelWidth * b, S = f.rimWidth * b, C = Math.max(0, f.equator - f.equatorSpread), w = Math.min(100, f.equator + f.equatorSpread), T = 100 - Math.round(p * 85), E = `color-mix(in srgb, ${f.accent} ${T}%, white)`, D = `color-mix(in srgb, ${f.accent} ${f.topDarkness}%, black)`,
|
|
2642
|
+
let v = 100 / t, y = 100 / n, b = Math.max(v, y), x = f.bezelWidth * b, S = f.rimWidth * b, C = Math.max(0, f.equator - f.equatorSpread), w = Math.min(100, f.equator + f.equatorSpread), T = 100 - Math.round(p * 85), E = `color-mix(in srgb, ${f.accent} ${T}%, white)`, D = `color-mix(in srgb, ${f.accent} ${f.topDarkness}%, black)`, ee = `color-mix(in srgb, ${f.accent} ${f.baseDarkness}%, black)`, O = 100 - Math.round(p * 50), k = 100 - Math.round(p * 30), A = `color-mix(in srgb, ${f.accent} ${O}%, white)`, j = `color-mix(in srgb, ${f.accent} ${k}%, white)`, M = f.glossAlphaTop * p, N = f.bezelAlpha * (.4 + .6 * p), te = f.rimAlpha * (.6 + .4 * p);
|
|
2672
2643
|
return /* @__PURE__ */ s(a, { children: [
|
|
2673
2644
|
/* @__PURE__ */ s("defs", { children: [
|
|
2674
2645
|
/* @__PURE__ */ s("linearGradient", {
|
|
@@ -2684,7 +2655,7 @@ var zt = {
|
|
|
2684
2655
|
}),
|
|
2685
2656
|
/* @__PURE__ */ o("stop", {
|
|
2686
2657
|
offset: `${C}%`,
|
|
2687
|
-
style: { stopColor:
|
|
2658
|
+
style: { stopColor: A }
|
|
2688
2659
|
}),
|
|
2689
2660
|
/* @__PURE__ */ o("stop", {
|
|
2690
2661
|
offset: `${f.equator}%`,
|
|
@@ -2692,11 +2663,11 @@ var zt = {
|
|
|
2692
2663
|
}),
|
|
2693
2664
|
/* @__PURE__ */ o("stop", {
|
|
2694
2665
|
offset: `${w}%`,
|
|
2695
|
-
style: { stopColor:
|
|
2666
|
+
style: { stopColor: j }
|
|
2696
2667
|
}),
|
|
2697
2668
|
/* @__PURE__ */ o("stop", {
|
|
2698
2669
|
offset: "100%",
|
|
2699
|
-
style: { stopColor:
|
|
2670
|
+
style: { stopColor: ee }
|
|
2700
2671
|
})
|
|
2701
2672
|
]
|
|
2702
2673
|
}),
|
|
@@ -2710,7 +2681,7 @@ var zt = {
|
|
|
2710
2681
|
offset: "0%",
|
|
2711
2682
|
style: {
|
|
2712
2683
|
stopColor: "white",
|
|
2713
|
-
stopOpacity:
|
|
2684
|
+
stopOpacity: M
|
|
2714
2685
|
}
|
|
2715
2686
|
}), /* @__PURE__ */ o("stop", {
|
|
2716
2687
|
offset: "100%",
|
|
@@ -2730,7 +2701,7 @@ var zt = {
|
|
|
2730
2701
|
fill: `url(#${c})`,
|
|
2731
2702
|
style: { pointerEvents: "none" }
|
|
2732
2703
|
}),
|
|
2733
|
-
|
|
2704
|
+
M > 0 && /* @__PURE__ */ o("rect", {
|
|
2734
2705
|
x: "0",
|
|
2735
2706
|
y: "0",
|
|
2736
2707
|
width: "100",
|
|
@@ -2743,7 +2714,7 @@ var zt = {
|
|
|
2743
2714
|
d: e,
|
|
2744
2715
|
fill: "none",
|
|
2745
2716
|
stroke: "white",
|
|
2746
|
-
strokeOpacity:
|
|
2717
|
+
strokeOpacity: N,
|
|
2747
2718
|
strokeWidth: x,
|
|
2748
2719
|
strokeLinecap: "round",
|
|
2749
2720
|
vectorEffect: "non-scaling-stroke",
|
|
@@ -2753,7 +2724,7 @@ var zt = {
|
|
|
2753
2724
|
d: e.bodyPath,
|
|
2754
2725
|
fill: "none",
|
|
2755
2726
|
stroke: "black",
|
|
2756
|
-
strokeOpacity:
|
|
2727
|
+
strokeOpacity: te,
|
|
2757
2728
|
strokeWidth: S,
|
|
2758
2729
|
vectorEffect: "non-scaling-stroke",
|
|
2759
2730
|
style: { pointerEvents: "none" }
|
|
@@ -2770,67 +2741,67 @@ function Yt(e) {
|
|
|
2770
2741
|
return e.as ? e.as : e.href ? "a" : e.onClick ? "button" : "span";
|
|
2771
2742
|
}
|
|
2772
2743
|
var Xt = c(function(c, d) {
|
|
2773
|
-
let { shape: h = "pill", status: g = "neutral", stance: _, tone: v, variant: y = "outline", size: b = "sm", onClick: x, onRemove: C, removeLabel: w, href: T, children: E, className: D, shapeParams:
|
|
2774
|
-
...
|
|
2775
|
-
...
|
|
2776
|
-
},
|
|
2777
|
-
let t = typeof
|
|
2778
|
-
|
|
2744
|
+
let { shape: h = "pill", status: g = "neutral", stance: _, tone: v, variant: y = "outline", size: b = "sm", onClick: x, onRemove: C, removeLabel: w, href: T, children: E, className: D, shapeParams: ee, bloat: O, padding: k, style: A, breakStyle: j, crawl: M, base: N, baseParams: te, effects: ne, tooltip: P, as: re, "aria-label": ie, onFocus: ae, onBlur: oe, ...se } = c, ce = Yt(c), le = P != null && ce === "span", ue = ie ?? (le && (typeof E == "string" || typeof E == "number") ? String(E) : void 0), [de, fe] = p(!1), [F, pe] = p(0), I = Se[h] ?? Se.pill, me = Se[h] ? h : "pill", he = I.Component, ge = {
|
|
2745
|
+
...I.defaults ?? {},
|
|
2746
|
+
...ee ?? {}
|
|
2747
|
+
}, L = f(null), R = i((e) => {
|
|
2748
|
+
let t = typeof M == "number" ? M : .2, n = L.current;
|
|
2749
|
+
L.current = e, n !== null && pe((r) => (r + t * (e - n) / 1e3) % 1), R.request();
|
|
2779
2750
|
}, { onResume: () => {
|
|
2780
|
-
|
|
2751
|
+
L.current = null;
|
|
2781
2752
|
} });
|
|
2782
2753
|
l(() => {
|
|
2783
|
-
if (!
|
|
2784
|
-
|
|
2754
|
+
if (!M) {
|
|
2755
|
+
pe(0);
|
|
2785
2756
|
return;
|
|
2786
2757
|
}
|
|
2787
|
-
return
|
|
2788
|
-
}, [
|
|
2789
|
-
let
|
|
2758
|
+
return L.current = null, R.request(), () => R.cancel();
|
|
2759
|
+
}, [M, R]);
|
|
2760
|
+
let _e = [m.badge, D].filter(Boolean).join(" "), z = r({
|
|
2790
2761
|
stance: _,
|
|
2791
2762
|
tone: v
|
|
2792
|
-
}),
|
|
2793
|
-
...
|
|
2794
|
-
...
|
|
2795
|
-
} : null,
|
|
2763
|
+
}), ve = !N && I.compose ? I.compose(ge) : null, B = N ?? ve?.base, V = B ? lt[B] : null, ye = N ? te : ve?.baseParams, be = N ? ne : ve?.effects ?? ne, H = V ? {
|
|
2764
|
+
...V.defaults ?? {},
|
|
2765
|
+
...ye ?? {}
|
|
2766
|
+
} : null, xe = f(null), U = S(xe, V), W = V ? V.build(H, U.w, U.h) : null, G = V ? (typeof V.insets == "function" ? V.insets(H) : V.insets) ?? {
|
|
2796
2767
|
top: 0,
|
|
2797
2768
|
right: 0,
|
|
2798
2769
|
bottom: 0,
|
|
2799
2770
|
left: 0
|
|
2800
|
-
} : typeof
|
|
2801
|
-
...
|
|
2802
|
-
"--badge-inset-top": `${
|
|
2803
|
-
"--badge-inset-right": `${
|
|
2804
|
-
"--badge-inset-bottom": `${
|
|
2805
|
-
"--badge-inset-left": `${
|
|
2806
|
-
...
|
|
2807
|
-
...
|
|
2808
|
-
boxDecorationBreak:
|
|
2809
|
-
WebkitBoxDecorationBreak:
|
|
2771
|
+
} : typeof I.insets == "function" ? I.insets(ge) : I.insets, Ce = {
|
|
2772
|
+
...z.style,
|
|
2773
|
+
"--badge-inset-top": `${G.top}px`,
|
|
2774
|
+
"--badge-inset-right": `${G.right}px`,
|
|
2775
|
+
"--badge-inset-bottom": `${G.bottom}px`,
|
|
2776
|
+
"--badge-inset-left": `${G.left}px`,
|
|
2777
|
+
...k !== void 0 && { padding: typeof k == "number" ? `${k}px` : k },
|
|
2778
|
+
...j !== void 0 && {
|
|
2779
|
+
boxDecorationBreak: j,
|
|
2780
|
+
WebkitBoxDecorationBreak: j
|
|
2810
2781
|
},
|
|
2811
|
-
...
|
|
2812
|
-
},
|
|
2813
|
-
...
|
|
2814
|
-
...
|
|
2815
|
-
className:
|
|
2816
|
-
style:
|
|
2817
|
-
"data-shape":
|
|
2782
|
+
...A
|
|
2783
|
+
}, K = {
|
|
2784
|
+
...se,
|
|
2785
|
+
...le && se.role === void 0 && { role: "img" },
|
|
2786
|
+
className: _e,
|
|
2787
|
+
style: Ce,
|
|
2788
|
+
"data-shape": V ? "compose" : me,
|
|
2818
2789
|
"data-status": g,
|
|
2819
|
-
"data-stance":
|
|
2820
|
-
"data-tone":
|
|
2790
|
+
"data-stance": z["data-stance"],
|
|
2791
|
+
"data-tone": z["data-tone"],
|
|
2821
2792
|
"data-variant": y,
|
|
2822
2793
|
"data-size": b,
|
|
2823
|
-
"data-focused":
|
|
2794
|
+
"data-focused": de ? "true" : void 0,
|
|
2824
2795
|
onFocus: (e) => {
|
|
2825
|
-
|
|
2796
|
+
fe(!0), ae?.(e);
|
|
2826
2797
|
},
|
|
2827
2798
|
onBlur: (e) => {
|
|
2828
|
-
|
|
2799
|
+
fe(!1), oe?.(e);
|
|
2829
2800
|
},
|
|
2830
|
-
"aria-label":
|
|
2801
|
+
"aria-label": ue
|
|
2831
2802
|
}, q = (() => {
|
|
2832
|
-
if (!
|
|
2833
|
-
let e = (
|
|
2803
|
+
if (!V || !W) return null;
|
|
2804
|
+
let e = (be ?? []).map((e) => {
|
|
2834
2805
|
let t = $[e.type];
|
|
2835
2806
|
if (!t?.offsetAt) return null;
|
|
2836
2807
|
let n = {
|
|
@@ -2841,16 +2812,16 @@ var Xt = c(function(c, d) {
|
|
|
2841
2812
|
offsetAt: t.offsetAt,
|
|
2842
2813
|
params: n
|
|
2843
2814
|
};
|
|
2844
|
-
}).filter(Boolean), t =
|
|
2845
|
-
if (e.length === 0 && t === 0) return
|
|
2846
|
-
let n = 100 /
|
|
2847
|
-
let o = (a % i + i) % i, s =
|
|
2815
|
+
}).filter(Boolean), t = O ?? 0;
|
|
2816
|
+
if (e.length === 0 && t === 0) return W;
|
|
2817
|
+
let n = 100 / U.w, r = 100 / U.h, i = W.totalCss, a = (a) => {
|
|
2818
|
+
let o = (a % i + i) % i, s = W.perimeterAt(o), c = s.nx * t, l = s.ny * t;
|
|
2848
2819
|
for (let t of e) {
|
|
2849
2820
|
let e = t.offsetAt(o, {
|
|
2850
2821
|
params: t.params,
|
|
2851
|
-
phase:
|
|
2822
|
+
phase: F,
|
|
2852
2823
|
totalCss: i,
|
|
2853
|
-
perimeterAt:
|
|
2824
|
+
perimeterAt: W.perimeterAt
|
|
2854
2825
|
});
|
|
2855
2826
|
c += e.dx, l += e.dy;
|
|
2856
2827
|
}
|
|
@@ -2876,7 +2847,7 @@ var Xt = c(function(c, d) {
|
|
|
2876
2847
|
},
|
|
2877
2848
|
totalCss: i
|
|
2878
2849
|
};
|
|
2879
|
-
})(), J = (
|
|
2850
|
+
})(), J = (be ?? []).filter((e) => $[e.type]?.Component), we = J.filter((e) => ($[e.type].zone ?? "foreground") === "background"), Te = J.filter((e) => ($[e.type].zone ?? "foreground") === "foreground"), Y = J.filter((e) => $[e.type].zone === "mask"), X = `badge-mask-${u().replace(/:/g, "")}`, Ee = (e, t) => {
|
|
2880
2851
|
let n = $[e.type], r = n?.Component;
|
|
2881
2852
|
if (!r || !q) return null;
|
|
2882
2853
|
let i = {
|
|
@@ -2885,14 +2856,14 @@ var Xt = c(function(c, d) {
|
|
|
2885
2856
|
};
|
|
2886
2857
|
return /* @__PURE__ */ o(r, {
|
|
2887
2858
|
sampler: q,
|
|
2888
|
-
boxW:
|
|
2889
|
-
boxH:
|
|
2859
|
+
boxW: U.w,
|
|
2860
|
+
boxH: U.h,
|
|
2890
2861
|
variant: y,
|
|
2891
2862
|
params: i,
|
|
2892
|
-
phase:
|
|
2863
|
+
phase: F
|
|
2893
2864
|
}, `${e.type}-${t}`);
|
|
2894
|
-
}, De =
|
|
2895
|
-
ref:
|
|
2865
|
+
}, De = V && q ? /* @__PURE__ */ s("svg", {
|
|
2866
|
+
ref: xe,
|
|
2896
2867
|
className: m.deco,
|
|
2897
2868
|
viewBox: "0 0 100 100",
|
|
2898
2869
|
preserveAspectRatio: "none",
|
|
@@ -2926,16 +2897,16 @@ var Xt = c(function(c, d) {
|
|
|
2926
2897
|
}),
|
|
2927
2898
|
Te.map(Ee)
|
|
2928
2899
|
]
|
|
2929
|
-
}) :
|
|
2900
|
+
}) : I.renderMode !== "css" && he ? /* @__PURE__ */ o("svg", {
|
|
2930
2901
|
className: m.deco,
|
|
2931
2902
|
viewBox: "0 0 100 100",
|
|
2932
|
-
preserveAspectRatio:
|
|
2903
|
+
preserveAspectRatio: I.stretches === !1 ? "xMidYMid meet" : "none",
|
|
2933
2904
|
"aria-hidden": "true",
|
|
2934
|
-
children: /* @__PURE__ */ o(
|
|
2905
|
+
children: /* @__PURE__ */ o(he, {
|
|
2935
2906
|
variant: y,
|
|
2936
|
-
focused:
|
|
2937
|
-
params:
|
|
2938
|
-
phase:
|
|
2907
|
+
focused: de,
|
|
2908
|
+
params: ge,
|
|
2909
|
+
phase: F
|
|
2939
2910
|
})
|
|
2940
2911
|
}) : null, Oe = /* @__PURE__ */ s(a, { children: [De, /* @__PURE__ */ s("span", {
|
|
2941
2912
|
className: m.content,
|
|
@@ -2962,25 +2933,25 @@ var Xt = c(function(c, d) {
|
|
|
2962
2933
|
})
|
|
2963
2934
|
})]
|
|
2964
2935
|
})] }), Z;
|
|
2965
|
-
return Z =
|
|
2936
|
+
return Z = ce === "button" ? /* @__PURE__ */ o("button", {
|
|
2966
2937
|
type: "button",
|
|
2967
|
-
...
|
|
2938
|
+
...K,
|
|
2968
2939
|
ref: d,
|
|
2969
2940
|
onClick: x,
|
|
2970
2941
|
children: Oe
|
|
2971
|
-
}) :
|
|
2942
|
+
}) : ce === "a" ? /* @__PURE__ */ o("a", {
|
|
2972
2943
|
href: T,
|
|
2973
|
-
...
|
|
2944
|
+
...K,
|
|
2974
2945
|
ref: d,
|
|
2975
2946
|
onClick: x,
|
|
2976
2947
|
children: Oe
|
|
2977
2948
|
}) : /* @__PURE__ */ o("span", {
|
|
2978
|
-
...
|
|
2949
|
+
...K,
|
|
2979
2950
|
ref: d,
|
|
2980
2951
|
children: Oe
|
|
2981
|
-
}),
|
|
2952
|
+
}), P == null ? Z : /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ o(n, { children: Z }), /* @__PURE__ */ o(e, { children: P })] });
|
|
2982
2953
|
});
|
|
2983
2954
|
//#endregion
|
|
2984
2955
|
export { Ze as n, Xt as t };
|
|
2985
2956
|
|
|
2986
|
-
//# sourceMappingURL=Badge-
|
|
2957
|
+
//# sourceMappingURL=Badge-jYQjrTKc.js.map
|