@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,41 @@
|
|
|
1
|
+
import e from "../../../components/InspectorLabel/index.mjs";
|
|
2
|
+
import t from "./TransitionItem.mjs";
|
|
3
|
+
import { useCallback as n } from "react";
|
|
4
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
import o from "@plitzi/plitzi-ui/Icon";
|
|
6
|
+
//#region src/components/StyleInspector/categories/Effects/Transition/Transition.tsx
|
|
7
|
+
var s = ({ value: s, onChange: c }) => {
|
|
8
|
+
let l = [];
|
|
9
|
+
s && s !== "" && (l = s.split(/,(?![^()]*\))/gim));
|
|
10
|
+
let u = (e) => (t) => {
|
|
11
|
+
t.stopPropagation(), t.preventDefault(), l.splice(e, 1), l.length > 0 ? c?.(l.join(",")) : c?.("");
|
|
12
|
+
}, d = (e) => (t) => {
|
|
13
|
+
t !== l[e] && (l[e] = t, c?.(l.join(",")));
|
|
14
|
+
}, f = n(() => {
|
|
15
|
+
l.length > 0 ? c?.(`${s},opacity 200ms ease 0ms`) : c?.("opacity 200ms ease 0ms");
|
|
16
|
+
}, [
|
|
17
|
+
c,
|
|
18
|
+
l.length,
|
|
19
|
+
s
|
|
20
|
+
]);
|
|
21
|
+
return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("div", {
|
|
22
|
+
className: "flex justify-between",
|
|
23
|
+
children: [/* @__PURE__ */ i(e, {
|
|
24
|
+
keyValue: ["transition"],
|
|
25
|
+
children: "Transitions"
|
|
26
|
+
}), /* @__PURE__ */ i(o, {
|
|
27
|
+
className: "cursor-pointer",
|
|
28
|
+
icon: "fas fa-plus",
|
|
29
|
+
onClick: f
|
|
30
|
+
})]
|
|
31
|
+
}), l.length > 0 && /* @__PURE__ */ i("div", {
|
|
32
|
+
className: "flex flex-col",
|
|
33
|
+
children: l.map((e, n) => /* @__PURE__ */ i(t, {
|
|
34
|
+
value: e,
|
|
35
|
+
onChange: d(n),
|
|
36
|
+
onRemove: u(n)
|
|
37
|
+
}, n))
|
|
38
|
+
})] });
|
|
39
|
+
};
|
|
40
|
+
//#endregion
|
|
41
|
+
export { s as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
export type TransitionItemProps = {
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (value: string) => void;
|
|
5
|
+
onRemove?: (e: MouseEvent) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const TransitionItem: ({ value, onRemove, onChange }: TransitionItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default TransitionItem;
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import e from "../../../../InputEasing/index.mjs";
|
|
2
|
+
import t from "../../../components/InspectorLabel/index.mjs";
|
|
3
|
+
import n from "../../../components/CategoryOption/index.mjs";
|
|
4
|
+
import r from "../../../components/CategorySection/index.mjs";
|
|
5
|
+
import { easingGenerics as i } from "../../../../InputEasing/InputEasingHelper.mjs";
|
|
6
|
+
import a from "../../../../InputEasing/InputEasingList.mjs";
|
|
7
|
+
import { useCallback as o, useRef as s, useState as c } from "react";
|
|
8
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
|
+
import d from "@plitzi/plitzi-ui/ContainerFloating";
|
|
10
|
+
import f from "@plitzi/plitzi-ui/Icon";
|
|
11
|
+
import p from "@plitzi/plitzi-ui/Input";
|
|
12
|
+
import m from "@plitzi/plitzi-ui/icons/EffectsTransitionEase";
|
|
13
|
+
//#region src/components/StyleInspector/categories/Effects/Transition/TransitionItem.tsx
|
|
14
|
+
var h = ({ value: h = "", onRemove: g, onChange: _ }) => {
|
|
15
|
+
let [v, y] = c(0), [b, x] = c(void 0), S = () => {
|
|
16
|
+
if (b) {
|
|
17
|
+
clearInterval(b), x(void 0), y(0);
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
x(setInterval(() => {
|
|
21
|
+
y((e) => (e + .005 <= 1 ? e += .005 : e = 0, e));
|
|
22
|
+
}, 10));
|
|
23
|
+
}, C = h.split(/ (?![^()]*\))/gim), { property: w = "opacity", duration: T = "0ms", easing: E = "ease", delay: D = "0ms" } = {};
|
|
24
|
+
C.length === 4 && ([w, T, E, D] = C);
|
|
25
|
+
let O = s({
|
|
26
|
+
property: w,
|
|
27
|
+
duration: T,
|
|
28
|
+
easing: E,
|
|
29
|
+
delay: D
|
|
30
|
+
});
|
|
31
|
+
O.current = {
|
|
32
|
+
property: w,
|
|
33
|
+
duration: T,
|
|
34
|
+
easing: E,
|
|
35
|
+
delay: D
|
|
36
|
+
};
|
|
37
|
+
let k = o((e) => (t) => {
|
|
38
|
+
let n = { ...O.current };
|
|
39
|
+
if (e === "easing" && t.includes(",")) {
|
|
40
|
+
let r = t.split(",");
|
|
41
|
+
n[e] = `cubic-bezier(${r[0]}, ${r[1]}, ${r[2]}, ${r[3]})`;
|
|
42
|
+
} else e === "easing" && Array.isArray(t) ? n[e] = `cubic-bezier(${t[0]}, ${t[1]}, ${t[2]}, ${t[3]})` : n[e] = t;
|
|
43
|
+
let { duration: r, delay: i, property: a, easing: o } = n;
|
|
44
|
+
console.log("called", e, o, t), _?.(`${a} ${r} ${o} ${i}`);
|
|
45
|
+
}, [_]), A = o((e) => k("easing")(e), [k]), j = [];
|
|
46
|
+
return j = E in i ? i[E] : E.match(/[0-9.]+/gim), /* @__PURE__ */ u(d, {
|
|
47
|
+
className: "w-full",
|
|
48
|
+
closeOnClick: !1,
|
|
49
|
+
children: [/* @__PURE__ */ u(d.Trigger, {
|
|
50
|
+
className: "flex w-full cursor-pointer items-center justify-between rounded-sm border border-gray-300 bg-white px-2 py-0.5 select-none hover:bg-gray-100 dark:border-zinc-600 dark:bg-zinc-800 dark:hover:bg-zinc-700/60",
|
|
51
|
+
children: [/* @__PURE__ */ l("div", {
|
|
52
|
+
className: "flex items-center",
|
|
53
|
+
children: `${w} ${T} after ${D}`
|
|
54
|
+
}), /* @__PURE__ */ l("div", {
|
|
55
|
+
className: "flex",
|
|
56
|
+
children: /* @__PURE__ */ l(f, {
|
|
57
|
+
size: "xs",
|
|
58
|
+
icon: "fas fa-trash-alt",
|
|
59
|
+
onClick: g,
|
|
60
|
+
intent: "danger",
|
|
61
|
+
title: "Remove"
|
|
62
|
+
})
|
|
63
|
+
})]
|
|
64
|
+
}), /* @__PURE__ */ l(d.Content, {
|
|
65
|
+
className: "w-[260px]",
|
|
66
|
+
children: /* @__PURE__ */ u("div", {
|
|
67
|
+
className: "flex w-full flex-col gap-2 p-2",
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ l(r, {
|
|
70
|
+
label: "Property",
|
|
71
|
+
children: /* @__PURE__ */ u(n, {
|
|
72
|
+
onChange: k("property"),
|
|
73
|
+
type: "select",
|
|
74
|
+
value: w,
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ u("optgroup", {
|
|
77
|
+
label: "Common",
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ l("option", {
|
|
80
|
+
value: "opacity",
|
|
81
|
+
children: "Opacity"
|
|
82
|
+
}),
|
|
83
|
+
/* @__PURE__ */ l("option", {
|
|
84
|
+
value: "margin",
|
|
85
|
+
children: "Margin"
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ l("option", {
|
|
88
|
+
value: "padding",
|
|
89
|
+
children: "Padding"
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ l("option", {
|
|
92
|
+
value: "border",
|
|
93
|
+
children: "Border"
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ l("option", {
|
|
96
|
+
value: "transform",
|
|
97
|
+
children: "Transform"
|
|
98
|
+
}),
|
|
99
|
+
/* @__PURE__ */ l("option", {
|
|
100
|
+
value: "filter",
|
|
101
|
+
children: "Filter"
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ l("option", {
|
|
104
|
+
value: "flex",
|
|
105
|
+
children: "Flex"
|
|
106
|
+
})
|
|
107
|
+
]
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ u("optgroup", {
|
|
110
|
+
label: "Background",
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ l("option", {
|
|
113
|
+
value: "background-color",
|
|
114
|
+
children: "Background Color"
|
|
115
|
+
}),
|
|
116
|
+
/* @__PURE__ */ l("option", {
|
|
117
|
+
value: "background-position",
|
|
118
|
+
children: "Background Position"
|
|
119
|
+
}),
|
|
120
|
+
/* @__PURE__ */ l("option", {
|
|
121
|
+
value: "text-shadow",
|
|
122
|
+
children: "Text Shadow"
|
|
123
|
+
}),
|
|
124
|
+
/* @__PURE__ */ l("option", {
|
|
125
|
+
value: "box-shadow",
|
|
126
|
+
children: "Box Shadow"
|
|
127
|
+
})
|
|
128
|
+
]
|
|
129
|
+
}),
|
|
130
|
+
/* @__PURE__ */ u("optgroup", {
|
|
131
|
+
label: "Size",
|
|
132
|
+
children: [
|
|
133
|
+
/* @__PURE__ */ l("option", {
|
|
134
|
+
value: "width",
|
|
135
|
+
children: "Width"
|
|
136
|
+
}),
|
|
137
|
+
/* @__PURE__ */ l("option", {
|
|
138
|
+
value: "height",
|
|
139
|
+
children: "Height"
|
|
140
|
+
}),
|
|
141
|
+
/* @__PURE__ */ l("option", {
|
|
142
|
+
value: "max-width",
|
|
143
|
+
children: "Max Width"
|
|
144
|
+
}),
|
|
145
|
+
/* @__PURE__ */ l("option", {
|
|
146
|
+
value: "max-height",
|
|
147
|
+
children: "Max Height"
|
|
148
|
+
}),
|
|
149
|
+
/* @__PURE__ */ l("option", {
|
|
150
|
+
value: "min-width",
|
|
151
|
+
children: "Min Width"
|
|
152
|
+
}),
|
|
153
|
+
/* @__PURE__ */ l("option", {
|
|
154
|
+
value: "min-height",
|
|
155
|
+
children: "Min Height"
|
|
156
|
+
})
|
|
157
|
+
]
|
|
158
|
+
}),
|
|
159
|
+
/* @__PURE__ */ u("optgroup", {
|
|
160
|
+
label: "Borders",
|
|
161
|
+
children: [
|
|
162
|
+
/* @__PURE__ */ l("option", {
|
|
163
|
+
value: "border-radius",
|
|
164
|
+
children: "Border Radius"
|
|
165
|
+
}),
|
|
166
|
+
/* @__PURE__ */ l("option", {
|
|
167
|
+
value: "border-color",
|
|
168
|
+
children: "Border Color"
|
|
169
|
+
}),
|
|
170
|
+
/* @__PURE__ */ l("option", {
|
|
171
|
+
value: "border-width",
|
|
172
|
+
children: "Border Width"
|
|
173
|
+
})
|
|
174
|
+
]
|
|
175
|
+
}),
|
|
176
|
+
/* @__PURE__ */ u("optgroup", {
|
|
177
|
+
label: "Typography",
|
|
178
|
+
children: [
|
|
179
|
+
/* @__PURE__ */ l("option", {
|
|
180
|
+
value: "font-color",
|
|
181
|
+
children: "Font Color"
|
|
182
|
+
}),
|
|
183
|
+
/* @__PURE__ */ l("option", {
|
|
184
|
+
value: "font-size",
|
|
185
|
+
children: "Font Size"
|
|
186
|
+
}),
|
|
187
|
+
/* @__PURE__ */ l("option", {
|
|
188
|
+
value: "line-height",
|
|
189
|
+
children: "Line Height"
|
|
190
|
+
}),
|
|
191
|
+
/* @__PURE__ */ l("option", {
|
|
192
|
+
value: "letter-spacing",
|
|
193
|
+
children: "Letter Spacing"
|
|
194
|
+
}),
|
|
195
|
+
/* @__PURE__ */ l("option", {
|
|
196
|
+
value: "text-indent",
|
|
197
|
+
children: "Text Indent"
|
|
198
|
+
}),
|
|
199
|
+
/* @__PURE__ */ l("option", {
|
|
200
|
+
value: "word-spacing",
|
|
201
|
+
children: "Word Spacing"
|
|
202
|
+
})
|
|
203
|
+
]
|
|
204
|
+
}),
|
|
205
|
+
/* @__PURE__ */ u("optgroup", {
|
|
206
|
+
label: "Position",
|
|
207
|
+
children: [
|
|
208
|
+
/* @__PURE__ */ l("option", {
|
|
209
|
+
value: "top",
|
|
210
|
+
children: "Top"
|
|
211
|
+
}),
|
|
212
|
+
/* @__PURE__ */ l("option", {
|
|
213
|
+
value: "left",
|
|
214
|
+
children: "Left"
|
|
215
|
+
}),
|
|
216
|
+
/* @__PURE__ */ l("option", {
|
|
217
|
+
value: "bottom",
|
|
218
|
+
children: "Bottom"
|
|
219
|
+
}),
|
|
220
|
+
/* @__PURE__ */ l("option", {
|
|
221
|
+
value: "right",
|
|
222
|
+
children: "Right"
|
|
223
|
+
}),
|
|
224
|
+
/* @__PURE__ */ l("option", {
|
|
225
|
+
value: "z-index",
|
|
226
|
+
children: "Z Index"
|
|
227
|
+
})
|
|
228
|
+
]
|
|
229
|
+
}),
|
|
230
|
+
/* @__PURE__ */ u("optgroup", {
|
|
231
|
+
label: "Margin",
|
|
232
|
+
children: [
|
|
233
|
+
/* @__PURE__ */ l("option", {
|
|
234
|
+
value: "margin-bottom",
|
|
235
|
+
children: "Margin Bottom"
|
|
236
|
+
}),
|
|
237
|
+
/* @__PURE__ */ l("option", {
|
|
238
|
+
value: "margin-left",
|
|
239
|
+
children: "Margin Left"
|
|
240
|
+
}),
|
|
241
|
+
/* @__PURE__ */ l("option", {
|
|
242
|
+
value: "margin-right",
|
|
243
|
+
children: "Margin RIght"
|
|
244
|
+
}),
|
|
245
|
+
/* @__PURE__ */ l("option", {
|
|
246
|
+
value: "margin-top",
|
|
247
|
+
children: "Margin Top"
|
|
248
|
+
})
|
|
249
|
+
]
|
|
250
|
+
}),
|
|
251
|
+
/* @__PURE__ */ u("optgroup", {
|
|
252
|
+
label: "Padding",
|
|
253
|
+
children: [
|
|
254
|
+
/* @__PURE__ */ l("option", {
|
|
255
|
+
value: "padding-bottom",
|
|
256
|
+
children: "Padding Bottom"
|
|
257
|
+
}),
|
|
258
|
+
/* @__PURE__ */ l("option", {
|
|
259
|
+
value: "padding-left",
|
|
260
|
+
children: "Padding Left"
|
|
261
|
+
}),
|
|
262
|
+
/* @__PURE__ */ l("option", {
|
|
263
|
+
value: "padding-right",
|
|
264
|
+
children: "Padding Right"
|
|
265
|
+
}),
|
|
266
|
+
/* @__PURE__ */ l("option", {
|
|
267
|
+
value: "padding-top",
|
|
268
|
+
children: "Padding Top"
|
|
269
|
+
})
|
|
270
|
+
]
|
|
271
|
+
}),
|
|
272
|
+
/* @__PURE__ */ u("optgroup", {
|
|
273
|
+
label: "Flex",
|
|
274
|
+
children: [
|
|
275
|
+
/* @__PURE__ */ l("option", {
|
|
276
|
+
value: "flex-grow",
|
|
277
|
+
children: "Flex Grow"
|
|
278
|
+
}),
|
|
279
|
+
/* @__PURE__ */ l("option", {
|
|
280
|
+
value: "flex-shrink",
|
|
281
|
+
children: "Flex Shrink"
|
|
282
|
+
}),
|
|
283
|
+
/* @__PURE__ */ l("option", {
|
|
284
|
+
value: "flex-basis",
|
|
285
|
+
children: "Flex Basis"
|
|
286
|
+
})
|
|
287
|
+
]
|
|
288
|
+
}),
|
|
289
|
+
/* @__PURE__ */ l("optgroup", {
|
|
290
|
+
label: "Advanced",
|
|
291
|
+
children: /* @__PURE__ */ l("option", {
|
|
292
|
+
value: "all",
|
|
293
|
+
children: "All Properties"
|
|
294
|
+
})
|
|
295
|
+
})
|
|
296
|
+
]
|
|
297
|
+
})
|
|
298
|
+
}),
|
|
299
|
+
/* @__PURE__ */ u(r, { children: [/* @__PURE__ */ l(n, {
|
|
300
|
+
label: "Duration",
|
|
301
|
+
value: T,
|
|
302
|
+
onChange: k("duration"),
|
|
303
|
+
type: "metric",
|
|
304
|
+
units: [{
|
|
305
|
+
label: "MS",
|
|
306
|
+
value: "ms"
|
|
307
|
+
}],
|
|
308
|
+
min: 0
|
|
309
|
+
}), /* @__PURE__ */ l(n, {
|
|
310
|
+
label: "Delay",
|
|
311
|
+
value: D,
|
|
312
|
+
onChange: k("delay"),
|
|
313
|
+
type: "metric",
|
|
314
|
+
units: [{
|
|
315
|
+
label: "MS",
|
|
316
|
+
value: "ms"
|
|
317
|
+
}],
|
|
318
|
+
min: 0
|
|
319
|
+
})] }),
|
|
320
|
+
/* @__PURE__ */ u(r, {
|
|
321
|
+
label: "Easing",
|
|
322
|
+
children: [/* @__PURE__ */ u(d, {
|
|
323
|
+
containerLeftOffset: -92,
|
|
324
|
+
containerTopOffset: 154,
|
|
325
|
+
closeOnClick: !1,
|
|
326
|
+
children: [/* @__PURE__ */ l(d.Trigger, { children: /* @__PURE__ */ l(f, {
|
|
327
|
+
className: "rounded-sm border border-gray-300 p-0.5 dark:border-zinc-600",
|
|
328
|
+
size: "xl",
|
|
329
|
+
children: /* @__PURE__ */ l(m, {})
|
|
330
|
+
}) }), /* @__PURE__ */ u(d.Content, {
|
|
331
|
+
className: "flex h-[456px] w-[260px] flex-col items-center overflow-y-auto",
|
|
332
|
+
children: [/* @__PURE__ */ l(a, {
|
|
333
|
+
className: "w-[260px]",
|
|
334
|
+
onChange: k("easing")
|
|
335
|
+
}), /* @__PURE__ */ u("div", {
|
|
336
|
+
className: "m-2 flex flex-col",
|
|
337
|
+
children: [/* @__PURE__ */ u("div", {
|
|
338
|
+
className: "flex",
|
|
339
|
+
onClick: S,
|
|
340
|
+
children: [/* @__PURE__ */ l(f, { icon: b ? "fas fa-pause" : "fas fa-play" }), /* @__PURE__ */ l(t, { children: b ? "Pause" : "Play" })]
|
|
341
|
+
}), /* @__PURE__ */ l(e, {
|
|
342
|
+
value: j,
|
|
343
|
+
progress: v,
|
|
344
|
+
height: 200,
|
|
345
|
+
width: 200,
|
|
346
|
+
handleRadius: 6
|
|
347
|
+
})]
|
|
348
|
+
})]
|
|
349
|
+
})]
|
|
350
|
+
}), /* @__PURE__ */ l(p, {
|
|
351
|
+
className: "w-full grow",
|
|
352
|
+
type: "text",
|
|
353
|
+
size: "xs",
|
|
354
|
+
value: j.toString(),
|
|
355
|
+
readOnly: !0,
|
|
356
|
+
onChange: A
|
|
357
|
+
})]
|
|
358
|
+
})
|
|
359
|
+
]
|
|
360
|
+
})
|
|
361
|
+
})]
|
|
362
|
+
});
|
|
363
|
+
};
|
|
364
|
+
//#endregion
|
|
365
|
+
export { h as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type ListProps = {
|
|
2
|
+
replaceTokens?: boolean;
|
|
3
|
+
isCollapsed?: boolean;
|
|
4
|
+
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: ListProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import e from "../../StyleInspectorContext.mjs";
|
|
2
|
+
import t from "../../hooks/useInspectorValues.mjs";
|
|
3
|
+
import n from "../../components/CategoryOption/index.mjs";
|
|
4
|
+
import r from "../../components/CategorySection/index.mjs";
|
|
5
|
+
import i from "../../components/CategoryContainer/index.mjs";
|
|
6
|
+
import { memo as a, use as o, useCallback as s, useMemo as c } from "react";
|
|
7
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
8
|
+
import u from "@plitzi/plitzi-ui/icons/XMark";
|
|
9
|
+
import d from "@plitzi/plitzi-ui/icons/ListCircles";
|
|
10
|
+
import f from "@plitzi/plitzi-ui/icons/ListDots";
|
|
11
|
+
import p from "@plitzi/plitzi-ui/icons/ListLetters";
|
|
12
|
+
import m from "@plitzi/plitzi-ui/icons/ListNumbers";
|
|
13
|
+
import h from "@plitzi/plitzi-ui/icons/ListRoman";
|
|
14
|
+
import g from "@plitzi/plitzi-ui/icons/ListSquares";
|
|
15
|
+
//#region src/components/StyleInspector/categories/List/List.tsx
|
|
16
|
+
var _ = "none", v = "circle", y = "decimal", b = "disc", x = "square", S = "lower-alpha", C = "lower-roman", w = ["list-style"], T = a(({ replaceTokens: a = !1, isCollapsed: T = !0, onCollapse: E }) => {
|
|
17
|
+
let { setValue: D } = o(e), { "list-style": O } = t({
|
|
18
|
+
keys: w,
|
|
19
|
+
asValue: !0,
|
|
20
|
+
replaceTokens: a
|
|
21
|
+
});
|
|
22
|
+
return /* @__PURE__ */ l(i, {
|
|
23
|
+
title: "List",
|
|
24
|
+
dotKeys: w,
|
|
25
|
+
isCollapsed: T,
|
|
26
|
+
onCollapse: s((e) => E?.("list", e), [E]),
|
|
27
|
+
children: /* @__PURE__ */ l(r, {
|
|
28
|
+
keys: w,
|
|
29
|
+
label: "Style",
|
|
30
|
+
children: /* @__PURE__ */ l(n, {
|
|
31
|
+
onChange: s((e) => D("list-style", e), [D]),
|
|
32
|
+
type: "iconGroup",
|
|
33
|
+
items: c(() => [
|
|
34
|
+
{
|
|
35
|
+
value: _,
|
|
36
|
+
icon: /* @__PURE__ */ l(u, {}),
|
|
37
|
+
description: "",
|
|
38
|
+
active: O === _
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
value: b,
|
|
42
|
+
icon: /* @__PURE__ */ l(f, {}),
|
|
43
|
+
description: "",
|
|
44
|
+
active: O === b
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
value: v,
|
|
48
|
+
icon: /* @__PURE__ */ l(d, {}),
|
|
49
|
+
description: "",
|
|
50
|
+
active: O === v
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
value: x,
|
|
54
|
+
icon: /* @__PURE__ */ l(g, {}),
|
|
55
|
+
description: "",
|
|
56
|
+
active: O === x
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
value: y,
|
|
60
|
+
icon: /* @__PURE__ */ l(m, {}),
|
|
61
|
+
description: "",
|
|
62
|
+
active: O === y
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
value: S,
|
|
66
|
+
icon: /* @__PURE__ */ l(p, {}),
|
|
67
|
+
description: "",
|
|
68
|
+
active: O === S
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
value: C,
|
|
72
|
+
icon: /* @__PURE__ */ l(h, {}),
|
|
73
|
+
description: "",
|
|
74
|
+
active: O === C
|
|
75
|
+
}
|
|
76
|
+
], [O])
|
|
77
|
+
})
|
|
78
|
+
})
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
//#endregion
|
|
82
|
+
export { T as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type ListItemProps = {
|
|
2
|
+
replaceTokens?: boolean;
|
|
3
|
+
isCollapsed?: boolean;
|
|
4
|
+
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: ListItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import e from "../../StyleInspectorContext.mjs";
|
|
2
|
+
import t from "../../hooks/useInspectorValues.mjs";
|
|
3
|
+
import n from "../../components/CategoryOption/index.mjs";
|
|
4
|
+
import r from "../../components/CategorySection/index.mjs";
|
|
5
|
+
import i from "../../components/CategoryContainer/index.mjs";
|
|
6
|
+
import { memo as a, use as o, useCallback as s, useMemo as c } from "react";
|
|
7
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
8
|
+
import u from "@plitzi/plitzi-ui/icons/XMark";
|
|
9
|
+
import d from "@plitzi/plitzi-ui/icons/ListCircles";
|
|
10
|
+
import f from "@plitzi/plitzi-ui/icons/ListDots";
|
|
11
|
+
import p from "@plitzi/plitzi-ui/icons/ListLetters";
|
|
12
|
+
import m from "@plitzi/plitzi-ui/icons/ListNumbers";
|
|
13
|
+
import h from "@plitzi/plitzi-ui/icons/ListRoman";
|
|
14
|
+
import g from "@plitzi/plitzi-ui/icons/ListSquares";
|
|
15
|
+
//#region src/components/StyleInspector/categories/ListItem/ListItem.tsx
|
|
16
|
+
var _ = ["list-style-type"], v = a(({ replaceTokens: a = !1, isCollapsed: v = !0, onCollapse: y }) => {
|
|
17
|
+
let { setValue: b } = o(e), { "list-style-type": x } = t({
|
|
18
|
+
keys: _,
|
|
19
|
+
asValue: !0,
|
|
20
|
+
replaceTokens: a
|
|
21
|
+
});
|
|
22
|
+
return /* @__PURE__ */ l(i, {
|
|
23
|
+
title: "List Item",
|
|
24
|
+
dotKeys: _,
|
|
25
|
+
isCollapsed: v,
|
|
26
|
+
onCollapse: s((e) => y?.("listItem", e), [y]),
|
|
27
|
+
children: /* @__PURE__ */ l(r, {
|
|
28
|
+
keys: _,
|
|
29
|
+
label: "Style",
|
|
30
|
+
children: /* @__PURE__ */ l(n, {
|
|
31
|
+
onChange: s((e) => b("list-style-type", e), [b]),
|
|
32
|
+
type: "iconGroup",
|
|
33
|
+
items: c(() => [
|
|
34
|
+
{
|
|
35
|
+
value: "none",
|
|
36
|
+
icon: /* @__PURE__ */ l(u, {}),
|
|
37
|
+
description: "",
|
|
38
|
+
active: x === "none"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
value: "disc",
|
|
42
|
+
icon: /* @__PURE__ */ l(f, {}),
|
|
43
|
+
description: "",
|
|
44
|
+
active: x === "disc"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
value: "circle",
|
|
48
|
+
icon: /* @__PURE__ */ l(d, {}),
|
|
49
|
+
description: "",
|
|
50
|
+
active: x === "circle"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
value: "square",
|
|
54
|
+
icon: /* @__PURE__ */ l(g, {}),
|
|
55
|
+
description: "",
|
|
56
|
+
active: x === "square"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
value: "decimal",
|
|
60
|
+
icon: /* @__PURE__ */ l(m, {}),
|
|
61
|
+
description: "",
|
|
62
|
+
active: x === "decimal"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
value: "lower-alpha",
|
|
66
|
+
icon: /* @__PURE__ */ l(p, {}),
|
|
67
|
+
description: "",
|
|
68
|
+
active: x === "lower-alpha"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
value: "lower-roman",
|
|
72
|
+
icon: /* @__PURE__ */ l(h, {}),
|
|
73
|
+
description: "",
|
|
74
|
+
active: x === "lower-roman"
|
|
75
|
+
}
|
|
76
|
+
], [x])
|
|
77
|
+
})
|
|
78
|
+
})
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
//#endregion
|
|
82
|
+
export { v as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type PositionProps = {
|
|
2
|
+
replaceTokens?: boolean;
|
|
3
|
+
isCollapsed?: boolean;
|
|
4
|
+
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: PositionProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default _default;
|