@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,8 @@
|
|
|
1
|
+
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type DisplayAlignSelfProps = {
|
|
3
|
+
value?: StyleValue;
|
|
4
|
+
isFlexVertical?: boolean;
|
|
5
|
+
onChange?: (type: StyleCategory, value: StyleValue) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const DisplayAlignSelf: ({ value, isFlexVertical, onChange }: DisplayAlignSelfProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default DisplayAlignSelf;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import e from "../../components/CategoryOption/index.mjs";
|
|
2
|
+
import t from "../../components/CategorySection/index.mjs";
|
|
3
|
+
import n from "clsx";
|
|
4
|
+
import { useCallback as r, useMemo as i } from "react";
|
|
5
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
6
|
+
import o from "@plitzi/plitzi-ui/icons/XMark";
|
|
7
|
+
import s from "@plitzi/plitzi-ui/icons/AlignSelfBaselineRow";
|
|
8
|
+
import c from "@plitzi/plitzi-ui/icons/AlignSelfCenterRow";
|
|
9
|
+
import l from "@plitzi/plitzi-ui/icons/AlignSelfEndRow";
|
|
10
|
+
import u from "@plitzi/plitzi-ui/icons/AlignSelfStartRow";
|
|
11
|
+
import d from "@plitzi/plitzi-ui/icons/AlignSelfStretchRow";
|
|
12
|
+
//#region src/components/StyleInspector/categories/DisplayFlexChild/DisplayAlignSelf.tsx
|
|
13
|
+
var f = ["align-self"], p = ({ value: p, isFlexVertical: m = !1, onChange: h }) => /* @__PURE__ */ a(t, {
|
|
14
|
+
label: "Align",
|
|
15
|
+
keys: f,
|
|
16
|
+
children: /* @__PURE__ */ a(e, {
|
|
17
|
+
onChange: r((e) => h?.("align-self", e), [h]),
|
|
18
|
+
type: "iconGroup",
|
|
19
|
+
items: i(() => [
|
|
20
|
+
{
|
|
21
|
+
value: "auto",
|
|
22
|
+
icon: /* @__PURE__ */ a(o, {}),
|
|
23
|
+
description: "Align Auto",
|
|
24
|
+
active: p === "auto"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
value: "flex-start",
|
|
28
|
+
icon: /* @__PURE__ */ a(u, { className: n({ "-rotate-90": m }) }),
|
|
29
|
+
description: "Align Start",
|
|
30
|
+
active: p === "flex-start"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
value: "center",
|
|
34
|
+
icon: /* @__PURE__ */ a(c, { className: n({ "-rotate-90": m }) }),
|
|
35
|
+
description: "Align Center",
|
|
36
|
+
active: p === "center"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
value: "flex-end",
|
|
40
|
+
icon: /* @__PURE__ */ a(l, { className: n({ "-rotate-90": m }) }),
|
|
41
|
+
description: "Align End",
|
|
42
|
+
active: p === "flex-end"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
value: "stretch",
|
|
46
|
+
icon: /* @__PURE__ */ a(d, { className: n({ "-rotate-90": m }) }),
|
|
47
|
+
description: "Align Stretch",
|
|
48
|
+
active: p === "stretch"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
value: "baseline",
|
|
52
|
+
icon: /* @__PURE__ */ a(s, {}),
|
|
53
|
+
description: "Align Baseline",
|
|
54
|
+
active: p === "baseline"
|
|
55
|
+
}
|
|
56
|
+
], [m, p])
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
//#endregion
|
|
60
|
+
export { p as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type DisplayFlexChildProps = {
|
|
2
|
+
replaceTokens?: boolean;
|
|
3
|
+
isCollapsed?: boolean;
|
|
4
|
+
isFlexVertical: boolean;
|
|
5
|
+
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, isFlexVertical, onCollapse }: DisplayFlexChildProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,125 @@
|
|
|
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 a from "./DisplayAlignSelf.mjs";
|
|
7
|
+
import o from "./DisplayOrder.mjs";
|
|
8
|
+
import { memo as s, use as c, useCallback as l, useMemo as u } from "react";
|
|
9
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
10
|
+
import p from "@plitzi/plitzi-ui/icons/FlexGrowRow";
|
|
11
|
+
import m from "@plitzi/plitzi-ui/icons/FlexNoneRow";
|
|
12
|
+
import h from "@plitzi/plitzi-ui/icons/FlexShrinkRow";
|
|
13
|
+
//#region src/components/StyleInspector/categories/DisplayFlexChild/DisplayFlexChild.tsx
|
|
14
|
+
var g = [
|
|
15
|
+
"align-self",
|
|
16
|
+
"order",
|
|
17
|
+
"flex-grow",
|
|
18
|
+
"flex-shrink",
|
|
19
|
+
"flex-basis"
|
|
20
|
+
], _ = [
|
|
21
|
+
"flex-grow",
|
|
22
|
+
"flex-shrink",
|
|
23
|
+
"flex-basis"
|
|
24
|
+
], v = s(({ replaceTokens: s = !1, isCollapsed: v = !0, isFlexVertical: y = !1, onCollapse: b }) => {
|
|
25
|
+
let { setValue: x } = c(e), { "flex-grow": S, "flex-shrink": C, "flex-basis": w, "align-self": T, order: E } = t({
|
|
26
|
+
keys: g,
|
|
27
|
+
asValue: !0,
|
|
28
|
+
replaceTokens: s
|
|
29
|
+
}), D = l((e) => {
|
|
30
|
+
x(void 0, e);
|
|
31
|
+
}, [x]), O = l((e) => {
|
|
32
|
+
x("flex-grow", e);
|
|
33
|
+
}, [x]), k = l((e) => {
|
|
34
|
+
x("flex-shrink", e);
|
|
35
|
+
}, [x]), A = l((e) => {
|
|
36
|
+
x("flex-basis", e);
|
|
37
|
+
}, [x]), j = l((e) => b?.("displayFlexChild", e), [b]), M = u(() => {
|
|
38
|
+
let e = !(S === "0" && C === "1" && w === "auto") && !(S === "1" && C === "1" && w === "0%") && !(S === "0" && C === "0" && w === "auto");
|
|
39
|
+
return [
|
|
40
|
+
{
|
|
41
|
+
value: {
|
|
42
|
+
"flex-grow": "0",
|
|
43
|
+
"flex-shrink": "1",
|
|
44
|
+
"flex-basis": "auto"
|
|
45
|
+
},
|
|
46
|
+
icon: /* @__PURE__ */ d(h, {}),
|
|
47
|
+
description: "Shrink if needed",
|
|
48
|
+
active: !e && S === "0" && C === "1" && w === "auto"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
value: {
|
|
52
|
+
"flex-grow": "1",
|
|
53
|
+
"flex-shrink": "1",
|
|
54
|
+
"flex-basis": "0%"
|
|
55
|
+
},
|
|
56
|
+
icon: /* @__PURE__ */ d(p, {}),
|
|
57
|
+
description: "Grow if possible",
|
|
58
|
+
active: !e && S === "1" && C === "1" && w === "0%"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
value: {
|
|
62
|
+
"flex-grow": "0",
|
|
63
|
+
"flex-shrink": "0",
|
|
64
|
+
"flex-basis": "auto"
|
|
65
|
+
},
|
|
66
|
+
icon: /* @__PURE__ */ d(m, {}),
|
|
67
|
+
description: "Don't shrink or grow",
|
|
68
|
+
active: !e && S === "0" && C === "0" && w === "auto"
|
|
69
|
+
}
|
|
70
|
+
];
|
|
71
|
+
}, [
|
|
72
|
+
S,
|
|
73
|
+
C,
|
|
74
|
+
w
|
|
75
|
+
]), N = l((e, t) => x(e, t), [x]);
|
|
76
|
+
return /* @__PURE__ */ f(i, {
|
|
77
|
+
title: "Flex Child",
|
|
78
|
+
dotKeys: g,
|
|
79
|
+
isCollapsed: v,
|
|
80
|
+
onCollapse: j,
|
|
81
|
+
children: [
|
|
82
|
+
/* @__PURE__ */ d(n, {
|
|
83
|
+
keys: _,
|
|
84
|
+
label: "Sizing",
|
|
85
|
+
onChange: D,
|
|
86
|
+
type: "iconGroup",
|
|
87
|
+
items: M
|
|
88
|
+
}),
|
|
89
|
+
/* @__PURE__ */ f(r, { children: [
|
|
90
|
+
/* @__PURE__ */ d(n, {
|
|
91
|
+
keys: ["flex-grow"],
|
|
92
|
+
label: "Grow",
|
|
93
|
+
onChange: O,
|
|
94
|
+
type: "input",
|
|
95
|
+
value: S
|
|
96
|
+
}),
|
|
97
|
+
/* @__PURE__ */ d(n, {
|
|
98
|
+
keys: ["flex-shrink"],
|
|
99
|
+
label: "Shrink",
|
|
100
|
+
onChange: k,
|
|
101
|
+
type: "input",
|
|
102
|
+
value: C
|
|
103
|
+
}),
|
|
104
|
+
/* @__PURE__ */ d(n, {
|
|
105
|
+
keys: ["flex-basis"],
|
|
106
|
+
label: "Basis",
|
|
107
|
+
onChange: A,
|
|
108
|
+
type: "metric",
|
|
109
|
+
value: w
|
|
110
|
+
})
|
|
111
|
+
] }),
|
|
112
|
+
/* @__PURE__ */ d(a, {
|
|
113
|
+
value: T,
|
|
114
|
+
isFlexVertical: y,
|
|
115
|
+
onChange: N
|
|
116
|
+
}),
|
|
117
|
+
/* @__PURE__ */ d(o, {
|
|
118
|
+
value: E,
|
|
119
|
+
onChange: N
|
|
120
|
+
})
|
|
121
|
+
]
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
//#endregion
|
|
125
|
+
export { v as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type DisplayOrderProps = {
|
|
3
|
+
value?: StyleValue;
|
|
4
|
+
onChange?: (type: StyleCategory, value: StyleValue) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const DisplayOrder: ({ value, onChange }: DisplayOrderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default DisplayOrder;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import e from "../../components/CategoryOption/index.mjs";
|
|
2
|
+
import t from "../../components/CategorySection/index.mjs";
|
|
3
|
+
import { useCallback as n, useMemo as r } from "react";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
import o from "@plitzi/plitzi-ui/icons/XMark";
|
|
6
|
+
//#region src/components/StyleInspector/categories/DisplayFlexChild/DisplayOrder.tsx
|
|
7
|
+
var s = ["order"], c = ({ value: c, onChange: l }) => {
|
|
8
|
+
let u = n((e) => l?.("order", e), [l]);
|
|
9
|
+
return /* @__PURE__ */ a(t, {
|
|
10
|
+
label: "Align",
|
|
11
|
+
keys: s,
|
|
12
|
+
children: [/* @__PURE__ */ i(e, {
|
|
13
|
+
onChange: u,
|
|
14
|
+
type: "iconGroup",
|
|
15
|
+
items: r(() => [
|
|
16
|
+
{
|
|
17
|
+
value: "0",
|
|
18
|
+
icon: /* @__PURE__ */ i(o, {}),
|
|
19
|
+
description: "Order Auto",
|
|
20
|
+
active: c === "0"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
value: "-1",
|
|
24
|
+
icon: /* @__PURE__ */ i("div", {
|
|
25
|
+
className: "text-xs select-none",
|
|
26
|
+
children: "First"
|
|
27
|
+
}),
|
|
28
|
+
description: "Order First",
|
|
29
|
+
active: c === "-1",
|
|
30
|
+
size: "custom"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
value: "1",
|
|
34
|
+
icon: /* @__PURE__ */ i("div", {
|
|
35
|
+
className: "text-xs select-none",
|
|
36
|
+
children: "Last"
|
|
37
|
+
}),
|
|
38
|
+
description: "Order Last",
|
|
39
|
+
active: c === "1",
|
|
40
|
+
size: "custom"
|
|
41
|
+
}
|
|
42
|
+
], [c])
|
|
43
|
+
}), /* @__PURE__ */ i(e, {
|
|
44
|
+
onChange: u,
|
|
45
|
+
type: "input",
|
|
46
|
+
value: c
|
|
47
|
+
})]
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
//#endregion
|
|
51
|
+
export { c as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type BoxShadowProps = {
|
|
3
|
+
value?: StyleValue;
|
|
4
|
+
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const BoxShadow: ({ value, onChange }: BoxShadowProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default BoxShadow;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import e from "../../../components/InspectorLabel/index.mjs";
|
|
2
|
+
import t from "./BoxShadowItem.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/BoxShadow/BoxShadow.tsx
|
|
7
|
+
var s = ({ value: s = "", onChange: c }) => {
|
|
8
|
+
let l = /,(?![^(]*\))/gim, u = [];
|
|
9
|
+
s && s !== "" && (u = s.split(l));
|
|
10
|
+
let d = (e) => (t) => {
|
|
11
|
+
t.stopPropagation(), t.preventDefault(), u.splice(e, 1), u.length > 0 ? c?.(u.join(",")) : c?.("");
|
|
12
|
+
}, f = (e) => (t) => {
|
|
13
|
+
t !== u[e] && (u[e] = t, c?.(u.join(",")));
|
|
14
|
+
}, p = n(() => {
|
|
15
|
+
s ? c?.(`${s},1px 1px 3px 1px black`) : c?.("1px 1px 3px 1px black");
|
|
16
|
+
}, [s, c]);
|
|
17
|
+
return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("div", {
|
|
18
|
+
className: "flex items-center justify-between",
|
|
19
|
+
children: [/* @__PURE__ */ i(e, {
|
|
20
|
+
keyValue: ["box-shadow"],
|
|
21
|
+
children: "Box Shadow"
|
|
22
|
+
}), /* @__PURE__ */ i(o, {
|
|
23
|
+
className: "cursor-pointer",
|
|
24
|
+
icon: "fas fa-plus",
|
|
25
|
+
onClick: p
|
|
26
|
+
})]
|
|
27
|
+
}), u.length > 0 && /* @__PURE__ */ i("div", {
|
|
28
|
+
className: "flex flex-col",
|
|
29
|
+
children: u.map((e, n) => /* @__PURE__ */ i(t, {
|
|
30
|
+
value: e.trim(),
|
|
31
|
+
onChange: f(n),
|
|
32
|
+
onRemove: d(n)
|
|
33
|
+
}, n))
|
|
34
|
+
})] });
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
export { s as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
export type BoxShadowItemProps = {
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (value: string) => void;
|
|
5
|
+
onRemove?: (e: MouseEvent) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const BoxShadowItem: ({ value, onChange, onRemove }: BoxShadowItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default BoxShadowItem;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import e from "../../../components/CategoryOption/index.mjs";
|
|
2
|
+
import t from "../../../components/CategorySection/index.mjs";
|
|
3
|
+
import { useCallback as n, useMemo as r, useRef as i } from "react";
|
|
4
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
|
+
import s from "@plitzi/plitzi-ui/ContainerFloating";
|
|
6
|
+
import c from "@plitzi/plitzi-ui/Icon";
|
|
7
|
+
//#region src/components/StyleInspector/categories/Effects/BoxShadow/BoxShadowItem.tsx
|
|
8
|
+
var l = ({ value: l = "1px 1px 3px 1px black", onChange: u, onRemove: d }) => {
|
|
9
|
+
let f = l.split(/ (?![^(]*\))/gim), { type: p = "", posX: m = "1px", posY: h = "1px", blur: g = "3px", size: _ = "1px", color: v = "black" } = {};
|
|
10
|
+
f.length === 6 ? [p, m, h, g, _, v] = f : f.length === 5 && (p = "", [m, h, g, _, v] = f);
|
|
11
|
+
let y = i({
|
|
12
|
+
type: p,
|
|
13
|
+
posX: m,
|
|
14
|
+
posY: h,
|
|
15
|
+
blur: g,
|
|
16
|
+
size: _,
|
|
17
|
+
color: v
|
|
18
|
+
});
|
|
19
|
+
y.current = {
|
|
20
|
+
type: p,
|
|
21
|
+
posX: m,
|
|
22
|
+
posY: h,
|
|
23
|
+
blur: g,
|
|
24
|
+
size: _,
|
|
25
|
+
color: v
|
|
26
|
+
};
|
|
27
|
+
let b = n((e) => (t) => {
|
|
28
|
+
let n = { ...y.current };
|
|
29
|
+
n[e] = t;
|
|
30
|
+
let { type: r, posX: i, posY: a, blur: o, size: s, color: c } = n;
|
|
31
|
+
r ? u?.(`${r} ${i} ${a} ${o} ${s} ${c}`) : u?.(`${i} ${a} ${o} ${s} ${c}`);
|
|
32
|
+
}, [u]), x = r(() => [{
|
|
33
|
+
value: "",
|
|
34
|
+
icon: /* @__PURE__ */ a("div", {
|
|
35
|
+
className: "px-1 text-xs select-none",
|
|
36
|
+
children: "Outside"
|
|
37
|
+
}),
|
|
38
|
+
description: "",
|
|
39
|
+
active: p === "",
|
|
40
|
+
size: "custom"
|
|
41
|
+
}, {
|
|
42
|
+
value: "inset",
|
|
43
|
+
icon: /* @__PURE__ */ a("div", {
|
|
44
|
+
className: "px-1 text-xs select-none",
|
|
45
|
+
children: "Inside"
|
|
46
|
+
}),
|
|
47
|
+
description: "",
|
|
48
|
+
active: p === "inset",
|
|
49
|
+
size: "custom"
|
|
50
|
+
}], [p]);
|
|
51
|
+
return /* @__PURE__ */ o(s, {
|
|
52
|
+
className: "w-full",
|
|
53
|
+
closeOnClick: !1,
|
|
54
|
+
children: [/* @__PURE__ */ o(s.Trigger, {
|
|
55
|
+
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",
|
|
56
|
+
children: [/* @__PURE__ */ o("div", {
|
|
57
|
+
className: "flex items-center",
|
|
58
|
+
children: [/* @__PURE__ */ a("div", {
|
|
59
|
+
className: "mr-1 h-5 w-5 rounded-sm",
|
|
60
|
+
style: { backgroundColor: v }
|
|
61
|
+
}), /* @__PURE__ */ a("div", {
|
|
62
|
+
className: "flex",
|
|
63
|
+
children: l
|
|
64
|
+
})]
|
|
65
|
+
}), /* @__PURE__ */ a("div", {
|
|
66
|
+
className: "flex",
|
|
67
|
+
children: /* @__PURE__ */ a(c, {
|
|
68
|
+
size: "xs",
|
|
69
|
+
icon: "fas fa-trash-alt",
|
|
70
|
+
onClick: d,
|
|
71
|
+
intent: "danger",
|
|
72
|
+
title: "Remove"
|
|
73
|
+
})
|
|
74
|
+
})]
|
|
75
|
+
}), /* @__PURE__ */ a(s.Content, {
|
|
76
|
+
className: "w-[260px]",
|
|
77
|
+
children: /* @__PURE__ */ o("div", {
|
|
78
|
+
className: "flex w-full flex-col gap-2 p-2",
|
|
79
|
+
children: [
|
|
80
|
+
/* @__PURE__ */ a(t, {
|
|
81
|
+
label: "Type",
|
|
82
|
+
children: /* @__PURE__ */ a(e, {
|
|
83
|
+
onChange: b("type"),
|
|
84
|
+
type: "iconGroup",
|
|
85
|
+
items: x
|
|
86
|
+
})
|
|
87
|
+
}),
|
|
88
|
+
/* @__PURE__ */ o(t, {
|
|
89
|
+
label: "Position",
|
|
90
|
+
children: [/* @__PURE__ */ a(e, {
|
|
91
|
+
label: "Pos X",
|
|
92
|
+
value: m,
|
|
93
|
+
onChange: b("posX"),
|
|
94
|
+
type: "metric"
|
|
95
|
+
}), /* @__PURE__ */ a(e, {
|
|
96
|
+
label: "Pos Y",
|
|
97
|
+
value: h,
|
|
98
|
+
onChange: b("posY"),
|
|
99
|
+
type: "metric"
|
|
100
|
+
})]
|
|
101
|
+
}),
|
|
102
|
+
/* @__PURE__ */ o(t, {
|
|
103
|
+
label: "Style",
|
|
104
|
+
children: [/* @__PURE__ */ a(e, {
|
|
105
|
+
label: "Blur",
|
|
106
|
+
value: g,
|
|
107
|
+
onChange: b("blur"),
|
|
108
|
+
type: "metric"
|
|
109
|
+
}), /* @__PURE__ */ a(e, {
|
|
110
|
+
label: "Size",
|
|
111
|
+
value: _,
|
|
112
|
+
onChange: b("size"),
|
|
113
|
+
type: "metric"
|
|
114
|
+
})]
|
|
115
|
+
}),
|
|
116
|
+
/* @__PURE__ */ a(t, {
|
|
117
|
+
label: "Color",
|
|
118
|
+
children: /* @__PURE__ */ a(e, {
|
|
119
|
+
value: v,
|
|
120
|
+
onChange: b("color"),
|
|
121
|
+
type: "color"
|
|
122
|
+
})
|
|
123
|
+
})
|
|
124
|
+
]
|
|
125
|
+
})
|
|
126
|
+
})]
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
//#endregion
|
|
130
|
+
export { l as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type EffectsProps = {
|
|
2
|
+
replaceTokens?: boolean;
|
|
3
|
+
isCollapsed?: boolean;
|
|
4
|
+
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: EffectsProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default _default;
|