@plitzi/sdk-style 0.30.19
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/CHANGELOG.md +1398 -0
- package/dist/BuilderStyleContextProvider.d.ts +12 -0
- package/dist/BuilderStyleContextProvider.mjs +209 -0
- package/dist/SdkStyleContextProvider.d.ts +8 -0
- package/dist/SdkStyleContextProvider.mjs +16 -0
- package/dist/StyleAdvanceEditor.d.ts +2 -0
- package/dist/StyleAdvanceEditor.mjs +88 -0
- package/dist/StyleContext.d.ts +3 -0
- package/dist/StyleContext.mjs +5 -0
- package/dist/StyleHelper.d.ts +7 -0
- package/dist/StyleHelper.mjs +45 -0
- package/dist/StyleMap/StyleMap.d.ts +52 -0
- package/dist/StyleMap/StyleMap.mjs +61 -0
- package/dist/StyleMap/helpers/getStyleItem.d.ts +3 -0
- package/dist/StyleMap/helpers/getStyleItem.mjs +5 -0
- package/dist/StyleMap/helpers/isValueValid.d.ts +12 -0
- package/dist/StyleMap/helpers/isValueValid.mjs +7 -0
- package/dist/StyleMap/helpers/utils.d.ts +6 -0
- package/dist/StyleMap/helpers/utils.mjs +51 -0
- package/dist/StyleMap/index.d.ts +3 -0
- package/dist/StyleMap/index.mjs +5 -0
- package/dist/StyleMap/methods/addSelector.d.ts +8 -0
- package/dist/StyleMap/methods/addSelector.mjs +24 -0
- package/dist/StyleMap/methods/updateSelector.d.ts +8 -0
- package/dist/StyleMap/methods/updateSelector.mjs +13 -0
- package/dist/StyleReducer.d.ts +82 -0
- package/dist/StyleReducer.mjs +101 -0
- package/dist/_virtual/_rolldown/runtime.mjs +11 -0
- package/dist/components/InputEasing/BezierEasing.d.ts +1 -0
- package/dist/components/InputEasing/BezierEasing.mjs +34 -0
- package/dist/components/InputEasing/Curve.d.ts +9 -0
- package/dist/components/InputEasing/Curve.mjs +11 -0
- package/dist/components/InputEasing/Grid.d.ts +8 -0
- package/dist/components/InputEasing/Grid.mjs +51 -0
- package/dist/components/InputEasing/InputEasing.d.ts +31 -0
- package/dist/components/InputEasing/InputEasing.mjs +121 -0
- package/dist/components/InputEasing/InputEasingButton.d.ts +9 -0
- package/dist/components/InputEasing/InputEasingButton.mjs +16 -0
- package/dist/components/InputEasing/InputEasingHelper.d.ts +1 -0
- package/dist/components/InputEasing/InputEasingHelper.mjs +179 -0
- package/dist/components/InputEasing/InputEasingList.d.ts +6 -0
- package/dist/components/InputEasing/InputEasingList.mjs +291 -0
- package/dist/components/InputEasing/Progress.d.ts +10 -0
- package/dist/components/InputEasing/Progress.mjs +15 -0
- package/dist/components/InputEasing/index.d.ts +3 -0
- package/dist/components/InputEasing/index.mjs +5 -0
- package/dist/components/Selector/Selector.d.ts +16 -0
- package/dist/components/Selector/Selector.mjs +171 -0
- package/dist/components/Selector/SelectorHelper.d.ts +1 -0
- package/dist/components/Selector/SelectorHelper.mjs +4 -0
- package/dist/components/Selector/SelectorItem/ItemOptions.d.ts +9 -0
- package/dist/components/Selector/SelectorItem/ItemOptions.mjs +57 -0
- package/dist/components/Selector/SelectorItem/SelectorItem.d.ts +15 -0
- package/dist/components/Selector/SelectorItem/SelectorItem.mjs +50 -0
- package/dist/components/Selector/SelectorItem/index.d.ts +3 -0
- package/dist/components/Selector/SelectorItem/index.mjs +5 -0
- package/dist/components/Selector/SelectorSuggestions/SelectorSuggestions.d.ts +9 -0
- package/dist/components/Selector/SelectorSuggestions/SelectorSuggestions.mjs +23 -0
- package/dist/components/Selector/SelectorSuggestions/SuggestionsCreator.d.ts +7 -0
- package/dist/components/Selector/SelectorSuggestions/SuggestionsCreator.mjs +20 -0
- package/dist/components/Selector/SelectorSuggestions/SuggestionsList.d.ts +7 -0
- package/dist/components/Selector/SelectorSuggestions/SuggestionsList.mjs +25 -0
- package/dist/components/Selector/SelectorSuggestions/index.d.ts +3 -0
- package/dist/components/Selector/SelectorSuggestions/index.mjs +5 -0
- package/dist/components/Selector/index.d.ts +3 -0
- package/dist/components/Selector/index.mjs +5 -0
- package/dist/components/StyleInspector/Inspector.d.ts +15 -0
- package/dist/components/StyleInspector/Inspector.mjs +178 -0
- package/dist/components/StyleInspector/StyleInspector.d.ts +21 -0
- package/dist/components/StyleInspector/StyleInspector.mjs +201 -0
- package/dist/components/StyleInspector/StyleInspectorContext.d.ts +23 -0
- package/dist/components/StyleInspector/StyleInspectorContext.mjs +5 -0
- package/dist/components/StyleInspector/StyleInspectorProvider.d.ts +17 -0
- package/dist/components/StyleInspector/StyleInspectorProvider.mjs +86 -0
- package/dist/components/StyleInspector/categories/Background/Background.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Background/Background.mjs +142 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/BackgroundLayer.d.ts +12 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/BackgroundLayer.mjs +171 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundPosition/BackgroundPosition.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundPosition/BackgroundPosition.mjs +39 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundPosition/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundPosition/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/BackgroundSize.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/BackgroundSize.mjs +86 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundTile/BackgroundTile.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundTile/BackgroundTile.mjs +47 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundTile/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundTile/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientPreviewBar.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientPreviewBar.mjs +20 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.mjs +94 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopEditor.d.ts +10 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopEditor.mjs +48 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.d.ts +11 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.mjs +44 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopTrack.d.ts +9 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopTrack.mjs +27 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Background/helpers/backgroundParser.d.ts +56 -0
- package/dist/components/StyleInspector/categories/Background/helpers/backgroundParser.mjs +182 -0
- package/dist/components/StyleInspector/categories/Background/helpers/normalizeLeft.d.ts +2 -0
- package/dist/components/StyleInspector/categories/Background/helpers/normalizeLeft.mjs +10 -0
- package/dist/components/StyleInspector/categories/Background/helpers/parseToBgLayers.d.ts +5 -0
- package/dist/components/StyleInspector/categories/Background/helpers/parseToBgLayers.mjs +19 -0
- package/dist/components/StyleInspector/categories/Background/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Background/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Background/modes/ConicGradientMode.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Background/modes/ConicGradientMode.mjs +100 -0
- package/dist/components/StyleInspector/categories/Background/modes/ImageMode.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Background/modes/ImageMode.mjs +80 -0
- package/dist/components/StyleInspector/categories/Background/modes/LinearGradientMode.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Background/modes/LinearGradientMode.mjs +76 -0
- package/dist/components/StyleInspector/categories/Background/modes/RadialGradientMode.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Background/modes/RadialGradientMode.mjs +120 -0
- package/dist/components/StyleInspector/categories/Border/Border.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Border/Border.mjs +126 -0
- package/dist/components/StyleInspector/categories/Border/BorderColor.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Border/BorderColor.mjs +34 -0
- package/dist/components/StyleInspector/categories/Border/BorderPlacements.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Border/BorderPlacements.mjs +55 -0
- package/dist/components/StyleInspector/categories/Border/BorderRadius.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Border/BorderRadius.mjs +132 -0
- package/dist/components/StyleInspector/categories/Border/BorderStyle.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Border/BorderStyle.mjs +63 -0
- package/dist/components/StyleInspector/categories/Border/BorderWidth.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Border/BorderWidth.mjs +34 -0
- package/dist/components/StyleInspector/categories/Border/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Border/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Display/Display.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Display/Display.mjs +120 -0
- package/dist/components/StyleInspector/categories/Display/DisplayElements.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Display/DisplayElements.mjs +64 -0
- package/dist/components/StyleInspector/categories/Display/DisplayFlex.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Display/DisplayFlex.mjs +46 -0
- package/dist/components/StyleInspector/categories/Display/DisplayFlexAlignContent.d.ts +9 -0
- package/dist/components/StyleInspector/categories/Display/DisplayFlexAlignContent.mjs +97 -0
- package/dist/components/StyleInspector/categories/Display/DisplayFlexAlignItems.d.ts +9 -0
- package/dist/components/StyleInspector/categories/Display/DisplayFlexAlignItems.mjs +102 -0
- package/dist/components/StyleInspector/categories/Display/DisplayFlexDirection.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Display/DisplayFlexDirection.mjs +46 -0
- package/dist/components/StyleInspector/categories/Display/DisplayFlexJustify.d.ts +9 -0
- package/dist/components/StyleInspector/categories/Display/DisplayFlexJustify.mjs +88 -0
- package/dist/components/StyleInspector/categories/Display/DisplayGap.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Display/DisplayGap.mjs +27 -0
- package/dist/components/StyleInspector/categories/Display/DisplayGridGap.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Display/DisplayGridGap.mjs +27 -0
- package/dist/components/StyleInspector/categories/Display/DisplayGridTemplate.d.ts +12 -0
- package/dist/components/StyleInspector/categories/Display/DisplayGridTemplate.mjs +83 -0
- package/dist/components/StyleInspector/categories/Display/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Display/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayAlignSelf.d.ts +8 -0
- package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayAlignSelf.mjs +60 -0
- package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayFlexChild.d.ts +8 -0
- package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayFlexChild.mjs +125 -0
- package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayOrder.d.ts +7 -0
- package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayOrder.mjs +51 -0
- package/dist/components/StyleInspector/categories/DisplayFlexChild/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/DisplayFlexChild/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadow.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadow.mjs +37 -0
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadowItem.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadowItem.mjs +130 -0
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Effects/Effects.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Effects/Effects.mjs +247 -0
- package/dist/components/StyleInspector/categories/Effects/Filters/Filter.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Effects/Filters/Filter.mjs +37 -0
- package/dist/components/StyleInspector/categories/Effects/Filters/FilterItem.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Effects/Filters/FilterItem.mjs +129 -0
- package/dist/components/StyleInspector/categories/Effects/Filters/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Effects/Filters/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Effects/Transform/Transform.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Effects/Transform/Transform.mjs +37 -0
- package/dist/components/StyleInspector/categories/Effects/Transform/TransformItem.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Effects/Transform/TransformItem.mjs +148 -0
- package/dist/components/StyleInspector/categories/Effects/Transform/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Effects/Transform/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Effects/Transition/Transition.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Effects/Transition/Transition.mjs +41 -0
- package/dist/components/StyleInspector/categories/Effects/Transition/TransitionItem.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Effects/Transition/TransitionItem.mjs +365 -0
- package/dist/components/StyleInspector/categories/Effects/Transition/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Effects/Transition/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Effects/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Effects/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/List/List.d.ts +7 -0
- package/dist/components/StyleInspector/categories/List/List.mjs +82 -0
- package/dist/components/StyleInspector/categories/List/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/List/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/ListItem/ListItem.d.ts +7 -0
- package/dist/components/StyleInspector/categories/ListItem/ListItem.mjs +82 -0
- package/dist/components/StyleInspector/categories/ListItem/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/ListItem/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Position/Position.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Position/Position.mjs +129 -0
- package/dist/components/StyleInspector/categories/Position/PositionAdvanced.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Position/PositionAdvanced.mjs +88 -0
- package/dist/components/StyleInspector/categories/Position/PositionAdvancedButtons.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Position/PositionAdvancedButtons.mjs +132 -0
- package/dist/components/StyleInspector/categories/Position/PositionClear.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Position/PositionClear.mjs +45 -0
- package/dist/components/StyleInspector/categories/Position/PositionFloat.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Position/PositionFloat.mjs +38 -0
- package/dist/components/StyleInspector/categories/Position/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Position/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/RawStyle/RawStyle.d.ts +8 -0
- package/dist/components/StyleInspector/categories/RawStyle/RawStyle.mjs +27 -0
- package/dist/components/StyleInspector/categories/RawStyle/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/RawStyle/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Size/Size.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Size/Size.mjs +101 -0
- package/dist/components/StyleInspector/categories/Size/SizeFit.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Size/SizeFit.mjs +39 -0
- package/dist/components/StyleInspector/categories/Size/SizeOverflow.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Size/SizeOverflow.mjs +49 -0
- package/dist/components/StyleInspector/categories/Size/SizePosition.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Size/SizePosition.mjs +30 -0
- package/dist/components/StyleInspector/categories/Size/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Size/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Spacing/Spacing.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Spacing/Spacing.mjs +72 -0
- package/dist/components/StyleInspector/categories/Spacing/SpacingEditor.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Spacing/SpacingEditor.mjs +155 -0
- package/dist/components/StyleInspector/categories/Spacing/SpacingMargin.d.ts +19 -0
- package/dist/components/StyleInspector/categories/Spacing/SpacingMargin.mjs +72 -0
- package/dist/components/StyleInspector/categories/Spacing/SpacingNumber.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Spacing/SpacingNumber.mjs +17 -0
- package/dist/components/StyleInspector/categories/Spacing/SpacingPadding.d.ts +15 -0
- package/dist/components/StyleInspector/categories/Spacing/SpacingPadding.mjs +69 -0
- package/dist/components/StyleInspector/categories/Spacing/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Spacing/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Typography/Typography.d.ts +11 -0
- package/dist/components/StyleInspector/categories/Typography/Typography.mjs +224 -0
- package/dist/components/StyleInspector/categories/Typography/TypographyAlign.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Typography/TypographyAlign.mjs +41 -0
- package/dist/components/StyleInspector/categories/Typography/TypographyConstants.d.ts +5 -0
- package/dist/components/StyleInspector/categories/Typography/TypographyConstants.mjs +172 -0
- package/dist/components/StyleInspector/categories/Typography/TypographyFont.d.ts +10 -0
- package/dist/components/StyleInspector/categories/Typography/TypographyFont.mjs +22 -0
- package/dist/components/StyleInspector/categories/Typography/TypographyStyle.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Typography/TypographyStyle.mjs +64 -0
- package/dist/components/StyleInspector/categories/Typography/TypographyTextShadow.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Typography/TypographyTextShadow.mjs +43 -0
- package/dist/components/StyleInspector/categories/Typography/TypographyTextShadowItem.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Typography/TypographyTextShadowItem.mjs +83 -0
- package/dist/components/StyleInspector/categories/Typography/TypographyTransform.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Typography/TypographyTransform.mjs +68 -0
- package/dist/components/StyleInspector/categories/Typography/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Typography/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Variables/Variables.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Variables/Variables.mjs +55 -0
- package/dist/components/StyleInspector/categories/Variables/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Variables/index.mjs +5 -0
- package/dist/components/StyleInspector/components/CategoryContainer/CategoryContainer.d.ts +13 -0
- package/dist/components/StyleInspector/components/CategoryContainer/CategoryContainer.mjs +27 -0
- package/dist/components/StyleInspector/components/CategoryContainer/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/CategoryContainer/index.mjs +5 -0
- package/dist/components/StyleInspector/components/CategoryOption/CategoryOption.d.ts +39 -0
- package/dist/components/StyleInspector/components/CategoryOption/CategoryOption.mjs +30 -0
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionColor.d.ts +8 -0
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionColor.mjs +16 -0
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionIconGroup.d.ts +15 -0
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionIconGroup.mjs +27 -0
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionInput.d.ts +8 -0
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionInput.mjs +14 -0
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionMetricInput.d.ts +18 -0
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionMetricInput.mjs +69 -0
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionSelect.d.ts +10 -0
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionSelect.mjs +13 -0
- package/dist/components/StyleInspector/components/CategoryOption/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/CategoryOption/index.mjs +5 -0
- package/dist/components/StyleInspector/components/CategorySection/CategorySection.d.ts +12 -0
- package/dist/components/StyleInspector/components/CategorySection/CategorySection.mjs +18 -0
- package/dist/components/StyleInspector/components/CategorySection/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/CategorySection/index.mjs +5 -0
- package/dist/components/StyleInspector/components/InspectorDots/InspectorDots.d.ts +6 -0
- package/dist/components/StyleInspector/components/InspectorDots/InspectorDots.mjs +32 -0
- package/dist/components/StyleInspector/components/InspectorDots/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/InspectorDots/index.mjs +5 -0
- package/dist/components/StyleInspector/components/InspectorLabel/InspectorLabel.d.ts +11 -0
- package/dist/components/StyleInspector/components/InspectorLabel/InspectorLabel.mjs +40 -0
- package/dist/components/StyleInspector/components/InspectorLabel/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/InspectorLabel/index.mjs +5 -0
- package/dist/components/StyleInspector/hooks/useInspectorValues.d.ts +21 -0
- package/dist/components/StyleInspector/hooks/useInspectorValues.mjs +55 -0
- package/dist/components/StyleInspector/hooks/useStyleBinding.d.ts +6 -0
- package/dist/components/StyleInspector/hooks/useStyleBinding.mjs +20 -0
- package/dist/components/StyleInspector/hooks/useStyleInherit.d.ts +12 -0
- package/dist/components/StyleInspector/hooks/useStyleInherit.mjs +33 -0
- package/dist/components/StyleInspector/index.d.ts +3 -0
- package/dist/components/StyleInspector/index.mjs +5 -0
- package/dist/components/StyleManager/ManagerSelector.d.ts +11 -0
- package/dist/components/StyleManager/ManagerSelector.mjs +137 -0
- package/dist/components/StyleManager/StyleManager.d.ts +2 -0
- package/dist/components/StyleManager/StyleManager.mjs +47 -0
- package/dist/components/StyleManager/StyleSelectorTag.d.ts +12 -0
- package/dist/components/StyleManager/StyleSelectorTag.mjs +43 -0
- package/dist/components/StyleManager/index.d.ts +3 -0
- package/dist/components/StyleManager/index.mjs +5 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.mjs +6 -0
- package/dist/helpers/calculateInheriting.d.ts +121 -0
- package/dist/helpers/calculateInheriting.mjs +141 -0
- package/dist/helpers/formatCssFromSelector.d.ts +8 -0
- package/dist/helpers/formatCssFromSelector.mjs +54 -0
- package/dist/helpers/generateStyleSelector.d.ts +9 -0
- package/dist/helpers/generateStyleSelector.mjs +19 -0
- package/dist/helpers/index.d.ts +10 -0
- package/dist/helpers/index.mjs +18 -0
- package/dist/helpers/processCssTokens.d.ts +8 -0
- package/dist/helpers/processCssTokens.mjs +16 -0
- package/dist/helpers/processSelector.d.ts +4 -0
- package/dist/helpers/processSelector.mjs +39 -0
- package/dist/helpers/processSelectorAttributes.d.ts +17 -0
- package/dist/helpers/processSelectorAttributes.mjs +94 -0
- package/dist/helpers/processSelectorName.d.ts +3 -0
- package/dist/helpers/processSelectorName.mjs +19 -0
- package/dist/helpers/processSelectorVariables.d.ts +7 -0
- package/dist/helpers/processSelectorVariables.mjs +30 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.mjs +16 -0
- package/dist/models/SelectorForm/SelectorForm.d.ts +21 -0
- package/dist/models/SelectorForm/SelectorForm.mjs +73 -0
- package/dist/models/SelectorForm/index.d.ts +3 -0
- package/dist/models/SelectorForm/index.mjs +5 -0
- package/package.json +849 -0
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
//#region src/components/InputEasing/InputEasingHelper.ts
|
|
2
|
+
var e = {
|
|
3
|
+
ease: [
|
|
4
|
+
.25,
|
|
5
|
+
.1,
|
|
6
|
+
.25,
|
|
7
|
+
1
|
|
8
|
+
],
|
|
9
|
+
linear: [
|
|
10
|
+
0,
|
|
11
|
+
0,
|
|
12
|
+
1,
|
|
13
|
+
1
|
|
14
|
+
],
|
|
15
|
+
"ease-in": [
|
|
16
|
+
.42,
|
|
17
|
+
0,
|
|
18
|
+
1,
|
|
19
|
+
1
|
|
20
|
+
],
|
|
21
|
+
"ease-out": [
|
|
22
|
+
0,
|
|
23
|
+
0,
|
|
24
|
+
.58,
|
|
25
|
+
1
|
|
26
|
+
],
|
|
27
|
+
"ease-in-out": [
|
|
28
|
+
.42,
|
|
29
|
+
0,
|
|
30
|
+
.58,
|
|
31
|
+
1
|
|
32
|
+
],
|
|
33
|
+
easeInQuad: [
|
|
34
|
+
.11,
|
|
35
|
+
0,
|
|
36
|
+
.5,
|
|
37
|
+
0
|
|
38
|
+
],
|
|
39
|
+
easeInCubic: [
|
|
40
|
+
.32,
|
|
41
|
+
0,
|
|
42
|
+
.67,
|
|
43
|
+
0
|
|
44
|
+
],
|
|
45
|
+
easeInQuart: [
|
|
46
|
+
.5,
|
|
47
|
+
0,
|
|
48
|
+
.75,
|
|
49
|
+
0
|
|
50
|
+
],
|
|
51
|
+
easeInQuint: [
|
|
52
|
+
.64,
|
|
53
|
+
0,
|
|
54
|
+
.78,
|
|
55
|
+
0
|
|
56
|
+
],
|
|
57
|
+
easeInSine: [
|
|
58
|
+
.12,
|
|
59
|
+
0,
|
|
60
|
+
.39,
|
|
61
|
+
0
|
|
62
|
+
],
|
|
63
|
+
easeInExpo: [
|
|
64
|
+
.7,
|
|
65
|
+
0,
|
|
66
|
+
.84,
|
|
67
|
+
0
|
|
68
|
+
],
|
|
69
|
+
easeInCirc: [
|
|
70
|
+
.55,
|
|
71
|
+
0,
|
|
72
|
+
1,
|
|
73
|
+
.45
|
|
74
|
+
],
|
|
75
|
+
easeInBack: [
|
|
76
|
+
.36,
|
|
77
|
+
0,
|
|
78
|
+
.66,
|
|
79
|
+
-.56
|
|
80
|
+
],
|
|
81
|
+
easeOutQuad: [
|
|
82
|
+
.5,
|
|
83
|
+
1,
|
|
84
|
+
.89,
|
|
85
|
+
1
|
|
86
|
+
],
|
|
87
|
+
easeOutCubic: [
|
|
88
|
+
.33,
|
|
89
|
+
1,
|
|
90
|
+
.68,
|
|
91
|
+
1
|
|
92
|
+
],
|
|
93
|
+
easeOutQuart: [
|
|
94
|
+
.25,
|
|
95
|
+
1,
|
|
96
|
+
.5,
|
|
97
|
+
1
|
|
98
|
+
],
|
|
99
|
+
easeOutQuint: [
|
|
100
|
+
.22,
|
|
101
|
+
1,
|
|
102
|
+
.36,
|
|
103
|
+
1
|
|
104
|
+
],
|
|
105
|
+
easeOutSine: [
|
|
106
|
+
.61,
|
|
107
|
+
1,
|
|
108
|
+
.88,
|
|
109
|
+
1
|
|
110
|
+
],
|
|
111
|
+
easeOutExpo: [
|
|
112
|
+
.16,
|
|
113
|
+
1,
|
|
114
|
+
.3,
|
|
115
|
+
1
|
|
116
|
+
],
|
|
117
|
+
easeOutCirc: [
|
|
118
|
+
0,
|
|
119
|
+
.55,
|
|
120
|
+
.45,
|
|
121
|
+
1
|
|
122
|
+
],
|
|
123
|
+
easeOutBack: [
|
|
124
|
+
.34,
|
|
125
|
+
1.56,
|
|
126
|
+
.64,
|
|
127
|
+
1
|
|
128
|
+
],
|
|
129
|
+
easeInOutQuad: [
|
|
130
|
+
.45,
|
|
131
|
+
0,
|
|
132
|
+
.55,
|
|
133
|
+
1
|
|
134
|
+
],
|
|
135
|
+
easeInOutCubic: [
|
|
136
|
+
.65,
|
|
137
|
+
0,
|
|
138
|
+
.35,
|
|
139
|
+
1
|
|
140
|
+
],
|
|
141
|
+
easeInOutQuart: [
|
|
142
|
+
.76,
|
|
143
|
+
0,
|
|
144
|
+
.24,
|
|
145
|
+
1
|
|
146
|
+
],
|
|
147
|
+
easeInOutQuint: [
|
|
148
|
+
.83,
|
|
149
|
+
0,
|
|
150
|
+
.17,
|
|
151
|
+
1
|
|
152
|
+
],
|
|
153
|
+
easeInOutSine: [
|
|
154
|
+
.37,
|
|
155
|
+
0,
|
|
156
|
+
.63,
|
|
157
|
+
1
|
|
158
|
+
],
|
|
159
|
+
easeInOutExpo: [
|
|
160
|
+
.87,
|
|
161
|
+
0,
|
|
162
|
+
.13,
|
|
163
|
+
1
|
|
164
|
+
],
|
|
165
|
+
easeInOutCirc: [
|
|
166
|
+
.85,
|
|
167
|
+
0,
|
|
168
|
+
.15,
|
|
169
|
+
1
|
|
170
|
+
],
|
|
171
|
+
easeInOutBack: [
|
|
172
|
+
.68,
|
|
173
|
+
-.6,
|
|
174
|
+
.32,
|
|
175
|
+
1.6
|
|
176
|
+
]
|
|
177
|
+
};
|
|
178
|
+
//#endregion
|
|
179
|
+
export { e as easingGenerics };
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import e from "./InputEasingButton.mjs";
|
|
2
|
+
import t from "clsx";
|
|
3
|
+
import { useCallback as n } from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/InputEasing/InputEasingList.tsx
|
|
6
|
+
var a = ({ className: a = "", onChange: o }) => {
|
|
7
|
+
let s = n((e) => () => o?.(e), [o]);
|
|
8
|
+
return /* @__PURE__ */ i("div", {
|
|
9
|
+
className: t("flex flex-col border-r border-gray-300", a),
|
|
10
|
+
children: [
|
|
11
|
+
/* @__PURE__ */ i("div", {
|
|
12
|
+
className: "flex flex-col",
|
|
13
|
+
children: [/* @__PURE__ */ r("div", {
|
|
14
|
+
className: "bg-blue-400 p-1 text-xs text-white",
|
|
15
|
+
children: "Default"
|
|
16
|
+
}), /* @__PURE__ */ i("div", {
|
|
17
|
+
className: "flex flex-wrap",
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ r(e, {
|
|
20
|
+
title: "Linear",
|
|
21
|
+
onClick: s("linear"),
|
|
22
|
+
children: /* @__PURE__ */ r("path", {
|
|
23
|
+
d: "M30,0 C22.5,7.5 7.5,22.5 0,30",
|
|
24
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
25
|
+
})
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ r(e, {
|
|
28
|
+
title: "Ease",
|
|
29
|
+
onClick: s("ease"),
|
|
30
|
+
children: /* @__PURE__ */ r("path", {
|
|
31
|
+
d: "M30,0 C7.5,0 7.5,27 0,30",
|
|
32
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
33
|
+
})
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ r(e, {
|
|
36
|
+
title: "Ease-in",
|
|
37
|
+
onClick: s("ease-in"),
|
|
38
|
+
children: /* @__PURE__ */ r("path", {
|
|
39
|
+
d: "M30,0 C30,0 12.6,30 0,30",
|
|
40
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
41
|
+
})
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ r(e, {
|
|
44
|
+
title: "Ease-out",
|
|
45
|
+
onClick: s("ease-out"),
|
|
46
|
+
children: /* @__PURE__ */ r("path", {
|
|
47
|
+
d: "M30,0 C17.4,0 0,30 0,30",
|
|
48
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
49
|
+
})
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ r(e, {
|
|
52
|
+
title: "Ease-in-out",
|
|
53
|
+
onClick: s("ease-in-out"),
|
|
54
|
+
children: /* @__PURE__ */ r("path", {
|
|
55
|
+
d: "M30,0 C17.4,0 12.6,30 0,30",
|
|
56
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
57
|
+
})
|
|
58
|
+
})
|
|
59
|
+
]
|
|
60
|
+
})]
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ i("div", {
|
|
63
|
+
className: "flex flex-col",
|
|
64
|
+
children: [/* @__PURE__ */ r("div", {
|
|
65
|
+
className: "bg-blue-400 p-1 text-xs text-white",
|
|
66
|
+
children: "Ease In"
|
|
67
|
+
}), /* @__PURE__ */ i("div", {
|
|
68
|
+
className: "flex flex-wrap",
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ r(e, {
|
|
71
|
+
title: "Ease In Quad",
|
|
72
|
+
onClick: s("easeInQuad"),
|
|
73
|
+
children: /* @__PURE__ */ r("path", {
|
|
74
|
+
d: "M30,0 C20.400000000000002,14.1 16.5,27.45 0,30",
|
|
75
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
76
|
+
})
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ r(e, {
|
|
79
|
+
title: "Ease In Cubic",
|
|
80
|
+
onClick: s("easeInCubic"),
|
|
81
|
+
children: /* @__PURE__ */ r("path", {
|
|
82
|
+
d: "M30,0 C20.25,24.3 16.5,28.35 0,30",
|
|
83
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
84
|
+
})
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ r(e, {
|
|
87
|
+
title: "Ease In Quart",
|
|
88
|
+
onClick: s("easeInQuart"),
|
|
89
|
+
children: /* @__PURE__ */ r("path", {
|
|
90
|
+
d: "M30,0 C25.65,28.2 22.65,28.5 0,30",
|
|
91
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
92
|
+
})
|
|
93
|
+
}),
|
|
94
|
+
/* @__PURE__ */ r(e, {
|
|
95
|
+
title: "Ease In Quint",
|
|
96
|
+
onClick: s("easeInQuint"),
|
|
97
|
+
children: /* @__PURE__ */ r("path", {
|
|
98
|
+
d: "M30,0 C25.65,28.2 22.65,28.5 0,30",
|
|
99
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
100
|
+
})
|
|
101
|
+
}),
|
|
102
|
+
/* @__PURE__ */ r(e, {
|
|
103
|
+
title: "Ease In Sine",
|
|
104
|
+
onClick: s("easeInSine"),
|
|
105
|
+
children: /* @__PURE__ */ r("path", {
|
|
106
|
+
d: "M30,0 C22.35,8.55 14.1,30 0,30",
|
|
107
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
108
|
+
})
|
|
109
|
+
}),
|
|
110
|
+
/* @__PURE__ */ r(e, {
|
|
111
|
+
title: "Ease In Expo",
|
|
112
|
+
onClick: s("easeInExpo"),
|
|
113
|
+
children: /* @__PURE__ */ r("path", {
|
|
114
|
+
d: "M30,0 C23.85,28.95 28.5,28.5 0,30",
|
|
115
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
116
|
+
})
|
|
117
|
+
}),
|
|
118
|
+
/* @__PURE__ */ r(e, {
|
|
119
|
+
title: "Ease In Circ",
|
|
120
|
+
onClick: s("easeInCirc"),
|
|
121
|
+
children: /* @__PURE__ */ r("path", {
|
|
122
|
+
d: "M30,0 C29.4,19.95 18,28.8 0,30",
|
|
123
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
124
|
+
})
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ r(e, {
|
|
127
|
+
title: "Ease In Back",
|
|
128
|
+
onClick: s("easeInBack"),
|
|
129
|
+
children: /* @__PURE__ */ r("path", {
|
|
130
|
+
d: "M30,0 C22.05,28.65 18,38.4 0,30",
|
|
131
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
132
|
+
})
|
|
133
|
+
})
|
|
134
|
+
]
|
|
135
|
+
})]
|
|
136
|
+
}),
|
|
137
|
+
/* @__PURE__ */ i("div", {
|
|
138
|
+
className: "flex flex-col",
|
|
139
|
+
children: [/* @__PURE__ */ r("div", {
|
|
140
|
+
className: "bg-blue-400 p-1 text-xs text-white",
|
|
141
|
+
children: "Ease Out"
|
|
142
|
+
}), /* @__PURE__ */ i("div", {
|
|
143
|
+
className: "flex flex-wrap",
|
|
144
|
+
children: [
|
|
145
|
+
/* @__PURE__ */ r(e, {
|
|
146
|
+
title: "Ease Out Quad",
|
|
147
|
+
onClick: s("easeOutQuad"),
|
|
148
|
+
children: /* @__PURE__ */ r("path", {
|
|
149
|
+
d: "M30,0 C13.5,1.8000000000000007 7.5,16.2 0,30",
|
|
150
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
151
|
+
})
|
|
152
|
+
}),
|
|
153
|
+
/* @__PURE__ */ r(e, {
|
|
154
|
+
title: "Ease Out Cubic",
|
|
155
|
+
onClick: s("easeOutCubic"),
|
|
156
|
+
children: /* @__PURE__ */ r("path", {
|
|
157
|
+
d: "M30,0 C10.649999999999999,0 6.45,11.7 0,30",
|
|
158
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
159
|
+
})
|
|
160
|
+
}),
|
|
161
|
+
/* @__PURE__ */ r(e, {
|
|
162
|
+
title: "Ease Out Quart",
|
|
163
|
+
onClick: s("easeOutQuart"),
|
|
164
|
+
children: /* @__PURE__ */ r("path", {
|
|
165
|
+
d: "M30,0 C13.2,0 4.95,4.800000000000001 0,30",
|
|
166
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
167
|
+
})
|
|
168
|
+
}),
|
|
169
|
+
/* @__PURE__ */ r(e, {
|
|
170
|
+
title: "Ease Out Quint",
|
|
171
|
+
onClick: s("easeOutQuint"),
|
|
172
|
+
children: /* @__PURE__ */ r("path", {
|
|
173
|
+
d: "M30,0 C9.6,0 6.9,0 0,30",
|
|
174
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
175
|
+
})
|
|
176
|
+
}),
|
|
177
|
+
/* @__PURE__ */ r(e, {
|
|
178
|
+
title: "Ease Out Sine",
|
|
179
|
+
onClick: s("easeOutSine"),
|
|
180
|
+
children: /* @__PURE__ */ r("path", {
|
|
181
|
+
d: "M30,0 C16.95,0 11.700000000000001,12.75 0,30",
|
|
182
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
183
|
+
})
|
|
184
|
+
}),
|
|
185
|
+
/* @__PURE__ */ r(e, {
|
|
186
|
+
title: "Ease Out Expo",
|
|
187
|
+
onClick: s("easeOutExpo"),
|
|
188
|
+
children: /* @__PURE__ */ r("path", {
|
|
189
|
+
d: "M30,0 C6.6,0 5.7,0 0,30",
|
|
190
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
191
|
+
})
|
|
192
|
+
}),
|
|
193
|
+
/* @__PURE__ */ r(e, {
|
|
194
|
+
title: "Ease Out Circ",
|
|
195
|
+
onClick: s("easeOutCirc"),
|
|
196
|
+
children: /* @__PURE__ */ r("path", {
|
|
197
|
+
d: "M30,0 C4.95,0 2.25,5.400000000000002 0,30",
|
|
198
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
199
|
+
})
|
|
200
|
+
}),
|
|
201
|
+
/* @__PURE__ */ r(e, {
|
|
202
|
+
title: "Ease Out Back",
|
|
203
|
+
onClick: s("easeOutBack"),
|
|
204
|
+
children: /* @__PURE__ */ r("path", {
|
|
205
|
+
d: "M30,0 C9.6,-8.25 5.25,3.4499999999999993 0,30",
|
|
206
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
207
|
+
})
|
|
208
|
+
})
|
|
209
|
+
]
|
|
210
|
+
})]
|
|
211
|
+
}),
|
|
212
|
+
/* @__PURE__ */ i("div", {
|
|
213
|
+
className: "flex flex-col",
|
|
214
|
+
children: [/* @__PURE__ */ r("div", {
|
|
215
|
+
className: "bg-blue-400 p-1 text-xs text-white",
|
|
216
|
+
children: "Ease In Out"
|
|
217
|
+
}), /* @__PURE__ */ i("div", {
|
|
218
|
+
className: "flex flex-wrap",
|
|
219
|
+
children: [
|
|
220
|
+
/* @__PURE__ */ r(e, {
|
|
221
|
+
title: "Ease In Out Quad",
|
|
222
|
+
onClick: s("easeInOutQuad"),
|
|
223
|
+
children: /* @__PURE__ */ r("path", {
|
|
224
|
+
d: "M30,0 C15.450000000000001,1.3500000000000014 13.65,29.1 0,30",
|
|
225
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
226
|
+
})
|
|
227
|
+
}),
|
|
228
|
+
/* @__PURE__ */ r(e, {
|
|
229
|
+
title: "Ease In Out Cubic",
|
|
230
|
+
onClick: s("easeInOutCubic"),
|
|
231
|
+
children: /* @__PURE__ */ r("path", {
|
|
232
|
+
d: "M30,0 C10.649999999999999,0 19.35,28.65 0,30",
|
|
233
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
234
|
+
})
|
|
235
|
+
}),
|
|
236
|
+
/* @__PURE__ */ r(e, {
|
|
237
|
+
title: "Ease In Out Quart",
|
|
238
|
+
onClick: s("easeInOutQuart"),
|
|
239
|
+
children: /* @__PURE__ */ r("path", {
|
|
240
|
+
d: "M30,0 C5.25,0 23.1,30 0,30",
|
|
241
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
242
|
+
})
|
|
243
|
+
}),
|
|
244
|
+
/* @__PURE__ */ r(e, {
|
|
245
|
+
title: "Ease In Out Quint",
|
|
246
|
+
onClick: s("easeInOutQuint"),
|
|
247
|
+
children: /* @__PURE__ */ r("path", {
|
|
248
|
+
d: "M30,0 C2.1,0 25.8,30 0,30",
|
|
249
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
250
|
+
})
|
|
251
|
+
}),
|
|
252
|
+
/* @__PURE__ */ r(e, {
|
|
253
|
+
title: "Ease In Out Sine",
|
|
254
|
+
onClick: s("easeInOutSine"),
|
|
255
|
+
children: /* @__PURE__ */ r("path", {
|
|
256
|
+
d: "M30,0 C16.5,1.5 13.35,28.5 0,30",
|
|
257
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
258
|
+
})
|
|
259
|
+
}),
|
|
260
|
+
/* @__PURE__ */ r(e, {
|
|
261
|
+
title: "Ease In Out Expo",
|
|
262
|
+
onClick: s("easeInOutExpo"),
|
|
263
|
+
children: /* @__PURE__ */ r("path", {
|
|
264
|
+
d: "M30,0 C0,0 30,30 0,30",
|
|
265
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
266
|
+
})
|
|
267
|
+
}),
|
|
268
|
+
/* @__PURE__ */ r(e, {
|
|
269
|
+
title: "Ease In Out Circ",
|
|
270
|
+
onClick: s("easeInOutCirc"),
|
|
271
|
+
children: /* @__PURE__ */ r("path", {
|
|
272
|
+
d: "M30,0 C4.5,4.199999999999999 23.55,25.95 0,30",
|
|
273
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
274
|
+
})
|
|
275
|
+
}),
|
|
276
|
+
/* @__PURE__ */ r(e, {
|
|
277
|
+
title: "Ease In Out Back",
|
|
278
|
+
onClick: s("easeInOutBack"),
|
|
279
|
+
children: /* @__PURE__ */ r("path", {
|
|
280
|
+
d: "M30,0 C7.95,-16.5 20.400000000000002,46.5 0,30",
|
|
281
|
+
className: "fill-transparent stroke-current stroke-2"
|
|
282
|
+
})
|
|
283
|
+
})
|
|
284
|
+
]
|
|
285
|
+
})]
|
|
286
|
+
})
|
|
287
|
+
]
|
|
288
|
+
});
|
|
289
|
+
};
|
|
290
|
+
//#endregion
|
|
291
|
+
export { a as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type ProgressProps = {
|
|
2
|
+
progress?: number;
|
|
3
|
+
xFrom?: number;
|
|
4
|
+
xTo?: number;
|
|
5
|
+
yFrom?: number;
|
|
6
|
+
yTo?: number;
|
|
7
|
+
value: [number, number, number, number];
|
|
8
|
+
};
|
|
9
|
+
declare const Progress: ({ progress, xFrom, xTo, yFrom, yTo, value }: ProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default Progress;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import e from "./BezierEasing.mjs";
|
|
2
|
+
import { useMemo as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/InputEasing/Progress.tsx
|
|
5
|
+
var r = ({ progress: r = 0, xFrom: i = 0, xTo: a = 0, yFrom: o = 0, yTo: s = 0, value: c }) => {
|
|
6
|
+
let l = t(() => e(...c), [c]), u = (e, t, n) => e * (1 - n) + t * n, d = (e) => Math.round(u(i, a, e)), f = (e) => Math.round(u(o, s, e));
|
|
7
|
+
if (!r) return /* @__PURE__ */ n("path", {});
|
|
8
|
+
let p = d(0), m = f(0), h = d(r), g = f(l ? l(r) : 0);
|
|
9
|
+
return /* @__PURE__ */ n("path", {
|
|
10
|
+
className: "fill-transparent stroke-blue-400 stroke-1",
|
|
11
|
+
d: `M${h},${m} L${h},${g} L${p},${g}`
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { r as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { StyleItem } from '@plitzi/sdk-shared';
|
|
2
|
+
export type SelectorValue = Pick<StyleItem, 'name' | 'type'>;
|
|
3
|
+
export type SelectorProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
selectors?: Record<string, StyleItem>;
|
|
7
|
+
selector?: Pick<StyleItem, 'name' | 'type'>;
|
|
8
|
+
componentType?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
onSelectorSelected?: (selector?: SelectorValue) => void;
|
|
11
|
+
onAdd?: (selector: SelectorValue, isDuplicated: boolean, originalSelector?: SelectorValue) => void;
|
|
12
|
+
onChange?: (value: string) => void;
|
|
13
|
+
onRemove?: (selector: SelectorValue) => void;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: import('react').MemoExoticComponent<({ className, value, selectors, selector: selectorProp, componentType, disabled, onChange, onSelectorSelected, onAdd, onRemove }: SelectorProps) => import("react/jsx-runtime").JSX.Element>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { selectorFormatter as e } from "./SelectorHelper.mjs";
|
|
2
|
+
import t from "./SelectorItem/index.mjs";
|
|
3
|
+
import n from "./SelectorSuggestions/index.mjs";
|
|
4
|
+
import r from "../StyleManager/index.mjs";
|
|
5
|
+
import { get as i, omit as a, pick as o } from "@plitzi/plitzi-ui/helpers";
|
|
6
|
+
import s from "clsx";
|
|
7
|
+
import { memo as c, useCallback as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
8
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
9
|
+
import h, { useFloating as g } from "@plitzi/plitzi-ui/ContainerFloating";
|
|
10
|
+
import _ from "@plitzi/plitzi-ui/Button";
|
|
11
|
+
import { usePopup as v } from "@plitzi/plitzi-ui/Popup";
|
|
12
|
+
var y = c(({ className: c = "", value: y = "", selectors: b, selector: x, componentType: S, disabled: C = !1, onChange: w, onSelectorSelected: T, onAdd: E, onRemove: D }) => {
|
|
13
|
+
let O = d(null), [k, A] = f(""), [j, M, , N, P] = g({ disabled: C }), { existsPopup: F, addPopup: I } = v("floating"), L = u(() => Object.values(b ?? {}).find((e) => e.type === "element" && e.componentType === S), [S, b]), R = u(() => Object.values(o(b ?? {}, y.split(" "))).map((e) => o(e, ["name", "type"])), [b, y]), z = u(() => Object.values(a(b ?? {}, y.split(" "))), [b, y]), B = l((e) => {
|
|
14
|
+
M(e.target.value.length > 0), A(e.target.value);
|
|
15
|
+
}, [M]), V = l(() => {
|
|
16
|
+
O.current?.focus(), M(k.length > 0);
|
|
17
|
+
}, [
|
|
18
|
+
O,
|
|
19
|
+
k,
|
|
20
|
+
M
|
|
21
|
+
]), H = l((e) => T?.(e), [T]), U = l((e) => (t, n = !0) => {
|
|
22
|
+
let r = [...R.filter((t, n) => n !== e), t].filter((e) => !!e.name).reduce((e, t) => `${e} ${t.name}`, "").trim();
|
|
23
|
+
E?.(t, !1), w?.(r), n && T?.(t);
|
|
24
|
+
}, [
|
|
25
|
+
R,
|
|
26
|
+
E,
|
|
27
|
+
w,
|
|
28
|
+
T
|
|
29
|
+
]), W = l((e) => (t, n) => {
|
|
30
|
+
switch (t) {
|
|
31
|
+
case "remove":
|
|
32
|
+
case "delete": {
|
|
33
|
+
let n = R.filter((t, n) => n !== e), r = n.reduce((e, t) => `${e} ${t.name}`, "").trim();
|
|
34
|
+
x && R[e].name === x.name && T?.(i(n, "0")), w?.(r), t === "delete" && D?.(R[e]);
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
case "duplicate": {
|
|
38
|
+
if (!n) break;
|
|
39
|
+
let t = [...R, n].filter((e) => !!e.name).reduce((e, t) => `${e} ${t.name}`, "").trim();
|
|
40
|
+
E?.(n, !0, i(R, `${e}`)), w?.(t);
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
default: break;
|
|
44
|
+
}
|
|
45
|
+
}, [
|
|
46
|
+
R,
|
|
47
|
+
x,
|
|
48
|
+
w,
|
|
49
|
+
T,
|
|
50
|
+
E,
|
|
51
|
+
D
|
|
52
|
+
]), G = l((t) => {
|
|
53
|
+
switch (t.key) {
|
|
54
|
+
case "Enter": {
|
|
55
|
+
let { value: n } = t.target;
|
|
56
|
+
if (n !== "" && !R.find((e) => e.name === n)) {
|
|
57
|
+
A("");
|
|
58
|
+
let r = {
|
|
59
|
+
name: e(n),
|
|
60
|
+
type: "class"
|
|
61
|
+
}, i = [...R, r].filter((e) => !!e.name).reduce((e, t) => `${e} ${t.name}`, "").trim();
|
|
62
|
+
E?.(r, !1), w?.(i), M(!1), t.target.blur(), T?.(r);
|
|
63
|
+
}
|
|
64
|
+
setTimeout(() => {
|
|
65
|
+
O.current?.focus();
|
|
66
|
+
}, 0);
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
case "ArrowUp":
|
|
70
|
+
M(!1);
|
|
71
|
+
break;
|
|
72
|
+
case "ArrowDown":
|
|
73
|
+
M(!0);
|
|
74
|
+
break;
|
|
75
|
+
case "Escape":
|
|
76
|
+
t.stopPropagation(), A(""), t.target.blur();
|
|
77
|
+
break;
|
|
78
|
+
default: break;
|
|
79
|
+
}
|
|
80
|
+
}, [
|
|
81
|
+
R,
|
|
82
|
+
E,
|
|
83
|
+
w,
|
|
84
|
+
T,
|
|
85
|
+
M
|
|
86
|
+
]), K = l((e) => {
|
|
87
|
+
setTimeout(() => A(""), 0), M(!1);
|
|
88
|
+
let t = [...R, e].reduce((e, t) => `${e} ${t.name}`, "").trim();
|
|
89
|
+
w?.(t), T?.(e);
|
|
90
|
+
}, [
|
|
91
|
+
R,
|
|
92
|
+
w,
|
|
93
|
+
T,
|
|
94
|
+
M
|
|
95
|
+
]), q = l((e) => {
|
|
96
|
+
setTimeout(() => A(""), 0), M(!1);
|
|
97
|
+
let t = [...R, e].reduce((e, t) => `${e} ${t.name}`, "").trim();
|
|
98
|
+
w?.(t), E?.(e, !1), T?.(e);
|
|
99
|
+
}, [
|
|
100
|
+
R,
|
|
101
|
+
w,
|
|
102
|
+
E,
|
|
103
|
+
T,
|
|
104
|
+
M
|
|
105
|
+
]), J = l((e) => {
|
|
106
|
+
e.preventDefault(), e.stopPropagation(), F("styleManager") || I("styleManager", /* @__PURE__ */ p(r, {}), {
|
|
107
|
+
icon: /* @__PURE__ */ p("i", { className: "fas fa-swatchbook text-base" }),
|
|
108
|
+
title: "Style Manager",
|
|
109
|
+
resizeHandles: ["se"],
|
|
110
|
+
allowLeftSide: !0,
|
|
111
|
+
allowRightSide: !0,
|
|
112
|
+
placement: "floating",
|
|
113
|
+
width: 600
|
|
114
|
+
});
|
|
115
|
+
}, [I, F]), Y = u(() => ({ width: P?.width }), [P]), X = L ? [L, ...R] : R;
|
|
116
|
+
return /* @__PURE__ */ m(h, {
|
|
117
|
+
ref: N,
|
|
118
|
+
className: "w-full",
|
|
119
|
+
open: j,
|
|
120
|
+
children: [/* @__PURE__ */ p(h.Trigger, {
|
|
121
|
+
className: "w-full",
|
|
122
|
+
children: /* @__PURE__ */ m("div", {
|
|
123
|
+
className: s("bg-grayviolet-200 relative flex flex-wrap gap-1 rounded-sm p-1 dark:bg-zinc-800", c, {
|
|
124
|
+
"pointer-events-none cursor-not-allowed bg-gray-100 dark:bg-zinc-900": C,
|
|
125
|
+
"cursor-pointer": !C
|
|
126
|
+
}),
|
|
127
|
+
onClick: V,
|
|
128
|
+
onKeyDown: G,
|
|
129
|
+
children: [
|
|
130
|
+
/* @__PURE__ */ p(_, {
|
|
131
|
+
intent: "secondary",
|
|
132
|
+
size: "custom",
|
|
133
|
+
onClick: J,
|
|
134
|
+
className: "h-7 w-7 rounded-sm bg-white dark:bg-zinc-700 dark:text-zinc-200",
|
|
135
|
+
title: "Style Manager",
|
|
136
|
+
children: /* @__PURE__ */ p(_.Icon, { icon: "fas fa-swatchbook" })
|
|
137
|
+
}),
|
|
138
|
+
X.map((e, n) => /* @__PURE__ */ p(t, {
|
|
139
|
+
selector: e.name,
|
|
140
|
+
type: e.type,
|
|
141
|
+
editable: e.type !== "element",
|
|
142
|
+
active: e.name === x?.name.replace(/:.*/, ""),
|
|
143
|
+
onAction: W(L ? n - 1 : n),
|
|
144
|
+
onClick: H,
|
|
145
|
+
onChange: U(L ? n - 1 : n)
|
|
146
|
+
}, `${n}_${e.name}`)),
|
|
147
|
+
/* @__PURE__ */ p("input", {
|
|
148
|
+
ref: O,
|
|
149
|
+
className: "flex min-h-0 w-0 border-none bg-transparent px-1 py-0 text-xs text-inherit outline-hidden focus:min-w-[50px] focus:grow focus:ring-transparent",
|
|
150
|
+
autoComplete: "off",
|
|
151
|
+
autoCorrect: "off",
|
|
152
|
+
autoCapitalize: "off",
|
|
153
|
+
spellCheck: "false",
|
|
154
|
+
value: k,
|
|
155
|
+
onChange: B
|
|
156
|
+
})
|
|
157
|
+
]
|
|
158
|
+
})
|
|
159
|
+
}), /* @__PURE__ */ p(h.Content, {
|
|
160
|
+
style: Y,
|
|
161
|
+
children: /* @__PURE__ */ p(n, {
|
|
162
|
+
selector: k,
|
|
163
|
+
selectors: z,
|
|
164
|
+
onSelect: K,
|
|
165
|
+
onCreate: q
|
|
166
|
+
})
|
|
167
|
+
})]
|
|
168
|
+
});
|
|
169
|
+
});
|
|
170
|
+
//#endregion
|
|
171
|
+
export { y as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const selectorFormatter: (selector: string) => string;
|