@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,39 @@
|
|
|
1
|
+
import e from "../../components/CategoryOption/index.mjs";
|
|
2
|
+
import t from "../../components/CategorySection/index.mjs";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/StyleInspector/categories/Size/SizeFit.tsx
|
|
5
|
+
var i = ["object-fit"], a = ({ value: a, onChange: o }) => /* @__PURE__ */ n(t, {
|
|
6
|
+
label: "Object Fit",
|
|
7
|
+
keys: i,
|
|
8
|
+
children: /* @__PURE__ */ r(e, {
|
|
9
|
+
keys: i,
|
|
10
|
+
label: "",
|
|
11
|
+
value: a,
|
|
12
|
+
onChange: o?.("object-fit"),
|
|
13
|
+
type: "select",
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ n("option", {
|
|
16
|
+
value: "fill",
|
|
17
|
+
children: "Fill"
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ n("option", {
|
|
20
|
+
value: "contain",
|
|
21
|
+
children: "Contain"
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ n("option", {
|
|
24
|
+
value: "cover",
|
|
25
|
+
children: "Cover"
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ n("option", {
|
|
28
|
+
value: "none",
|
|
29
|
+
children: "None"
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ n("option", {
|
|
32
|
+
value: "scale-down",
|
|
33
|
+
children: "Scale Down"
|
|
34
|
+
})
|
|
35
|
+
]
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
export { a as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type SizeOverflowProps = {
|
|
3
|
+
value?: StyleValue;
|
|
4
|
+
onChange?: (type: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const SizeOverflow: ({ value, onChange }: SizeOverflowProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SizeOverflow;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import e from "../../components/CategoryOption/index.mjs";
|
|
2
|
+
import t from "../../components/CategorySection/index.mjs";
|
|
3
|
+
import { useMemo as n } from "react";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
import { SizeOverflowScroll as i } from "@plitzi/plitzi-ui/icons";
|
|
6
|
+
//#region src/components/StyleInspector/categories/Size/SizeOverflow.tsx
|
|
7
|
+
var a = ({ value: a, onChange: o }) => {
|
|
8
|
+
let s = n(() => [
|
|
9
|
+
{
|
|
10
|
+
value: "visible",
|
|
11
|
+
icon: "fa-solid fa-eye",
|
|
12
|
+
description: "Visible",
|
|
13
|
+
active: a === "visible"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
value: "hidden",
|
|
17
|
+
icon: "fa-solid fa-eye-slash",
|
|
18
|
+
description: "Hidden",
|
|
19
|
+
active: a === "hidden"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
value: "scroll",
|
|
23
|
+
icon: /* @__PURE__ */ r(i, {}),
|
|
24
|
+
description: "Scroll",
|
|
25
|
+
active: a === "scroll"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
value: "auto",
|
|
29
|
+
icon: /* @__PURE__ */ r("div", {
|
|
30
|
+
className: "px-1 text-xs select-none",
|
|
31
|
+
children: "Auto"
|
|
32
|
+
}),
|
|
33
|
+
description: "",
|
|
34
|
+
active: a === "auto",
|
|
35
|
+
size: "custom"
|
|
36
|
+
}
|
|
37
|
+
], [a]);
|
|
38
|
+
return /* @__PURE__ */ r(t, {
|
|
39
|
+
label: "Overflow",
|
|
40
|
+
keys: ["overflow"],
|
|
41
|
+
children: /* @__PURE__ */ r(e, {
|
|
42
|
+
onChange: o?.("overflow"),
|
|
43
|
+
type: "iconGroup",
|
|
44
|
+
items: s
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
export { a as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type SizePositionProps = {
|
|
3
|
+
value?: StyleValue;
|
|
4
|
+
onChange?: (type: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const SizePosition: ({ value, onChange }: SizePositionProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SizePosition;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import e from "../../components/CategoryOption/index.mjs";
|
|
2
|
+
import t from "../../components/CategorySection/index.mjs";
|
|
3
|
+
import { useCallback as n } from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/StyleInspector/categories/Size/SizePosition.tsx
|
|
6
|
+
var a = ({ value: a, onChange: o }) => {
|
|
7
|
+
let s = a.split(" "), c = n((e) => (t) => {
|
|
8
|
+
let n = [...s];
|
|
9
|
+
e === "left" ? n[0] = t : e === "top" && (n[1] = t), o?.("object-position")(n.join(" "));
|
|
10
|
+
}, [o, s]);
|
|
11
|
+
return /* @__PURE__ */ i(t, {
|
|
12
|
+
label: "Object Pos",
|
|
13
|
+
keys: ["object-position"],
|
|
14
|
+
children: [/* @__PURE__ */ r(e, {
|
|
15
|
+
label: "Left",
|
|
16
|
+
direction: "column",
|
|
17
|
+
value: s[0],
|
|
18
|
+
onChange: c("left"),
|
|
19
|
+
type: "metric"
|
|
20
|
+
}), /* @__PURE__ */ r(e, {
|
|
21
|
+
label: "Top",
|
|
22
|
+
direction: "column",
|
|
23
|
+
value: s[1],
|
|
24
|
+
onChange: c("top"),
|
|
25
|
+
type: "metric"
|
|
26
|
+
})]
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { a as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type SpacingProps = {
|
|
2
|
+
replaceTokens?: boolean;
|
|
3
|
+
isCollapsed?: boolean;
|
|
4
|
+
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: SpacingProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import e from "../../StyleInspectorContext.mjs";
|
|
2
|
+
import t from "../../hooks/useInspectorValues.mjs";
|
|
3
|
+
import n from "../../components/CategoryContainer/index.mjs";
|
|
4
|
+
import r from "./SpacingEditor.mjs";
|
|
5
|
+
import i from "./SpacingMargin.mjs";
|
|
6
|
+
import { memo as a, use as o, useCallback as s, useState as c } from "react";
|
|
7
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
|
+
//#region src/components/StyleInspector/categories/Spacing/Spacing.tsx
|
|
9
|
+
var d = [
|
|
10
|
+
"margin-top",
|
|
11
|
+
"margin-bottom",
|
|
12
|
+
"margin-left",
|
|
13
|
+
"margin-right",
|
|
14
|
+
"padding-top",
|
|
15
|
+
"padding-bottom",
|
|
16
|
+
"padding-left",
|
|
17
|
+
"padding-right"
|
|
18
|
+
], f = a(({ replaceTokens: a = !1, isCollapsed: f = !0, onCollapse: p }) => {
|
|
19
|
+
let [m, h] = c(!1), { setValue: g } = o(e), _ = t({
|
|
20
|
+
keys: d,
|
|
21
|
+
asValue: !0,
|
|
22
|
+
replaceTokens: a
|
|
23
|
+
}), [v, y] = c(), b = s((e) => p?.("spacing", e), [p]), x = s(() => h((e) => !e), [h]), S = s((e, t) => {
|
|
24
|
+
if (!m) {
|
|
25
|
+
g(e, t);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
[
|
|
29
|
+
"margin-top",
|
|
30
|
+
"margin-bottom",
|
|
31
|
+
"margin-left",
|
|
32
|
+
"margin-right"
|
|
33
|
+
].includes(e) && g(void 0, {
|
|
34
|
+
"margin-top": t,
|
|
35
|
+
"margin-bottom": t,
|
|
36
|
+
"margin-left": t,
|
|
37
|
+
"margin-right": t
|
|
38
|
+
}), [
|
|
39
|
+
"padding-top",
|
|
40
|
+
"padding-bottom",
|
|
41
|
+
"padding-left",
|
|
42
|
+
"padding-right"
|
|
43
|
+
].includes(e) && g(void 0, {
|
|
44
|
+
"padding-top": t,
|
|
45
|
+
"padding-bottom": t,
|
|
46
|
+
"padding-left": t,
|
|
47
|
+
"padding-right": t
|
|
48
|
+
});
|
|
49
|
+
}, [m, g]);
|
|
50
|
+
return /* @__PURE__ */ l(n, {
|
|
51
|
+
title: "Spacing",
|
|
52
|
+
dotKeys: d,
|
|
53
|
+
isCollapsed: f,
|
|
54
|
+
onCollapse: b,
|
|
55
|
+
children: /* @__PURE__ */ u("div", {
|
|
56
|
+
className: "flex flex-col",
|
|
57
|
+
children: [/* @__PURE__ */ l(i, {
|
|
58
|
+
values: _,
|
|
59
|
+
fragmentSelected: v,
|
|
60
|
+
onSelectFragment: s((e) => y(e), [y]),
|
|
61
|
+
isLinked: m,
|
|
62
|
+
onLinkSelected: x
|
|
63
|
+
}), v && /* @__PURE__ */ l(r, {
|
|
64
|
+
fragmentSelected: v,
|
|
65
|
+
onChange: S,
|
|
66
|
+
value: _[v]
|
|
67
|
+
})]
|
|
68
|
+
})
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
//#endregion
|
|
72
|
+
export { f as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type SpacingEditorProps = {
|
|
3
|
+
fragmentSelected: StyleCategory;
|
|
4
|
+
value?: StyleValue;
|
|
5
|
+
onChange?: (type: StyleCategory, value: StyleValue) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const SpacingEditor: ({ fragmentSelected, value, onChange }: SpacingEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default SpacingEditor;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import n from "@plitzi/plitzi-ui/Icon";
|
|
3
|
+
import r from "@plitzi/plitzi-ui/Button";
|
|
4
|
+
import i from "@plitzi/plitzi-ui/MetricInput";
|
|
5
|
+
import a from "@plitzi/plitzi-ui/icons/MarginBottom";
|
|
6
|
+
import o from "@plitzi/plitzi-ui/icons/MarginLeft";
|
|
7
|
+
import s from "@plitzi/plitzi-ui/icons/MarginRight";
|
|
8
|
+
import c from "@plitzi/plitzi-ui/icons/MarginTop";
|
|
9
|
+
import l from "@plitzi/plitzi-ui/icons/PaddingBottom";
|
|
10
|
+
import u from "@plitzi/plitzi-ui/icons/PaddingLeft";
|
|
11
|
+
import d from "@plitzi/plitzi-ui/icons/PaddingRight";
|
|
12
|
+
import f from "@plitzi/plitzi-ui/icons/PaddingTop";
|
|
13
|
+
//#region src/components/StyleInspector/categories/Spacing/SpacingEditor.tsx
|
|
14
|
+
var p = {
|
|
15
|
+
"margin-top": /* @__PURE__ */ e(c, {}),
|
|
16
|
+
"margin-bottom": /* @__PURE__ */ e(a, {}),
|
|
17
|
+
"margin-left": /* @__PURE__ */ e(o, {}),
|
|
18
|
+
"margin-right": /* @__PURE__ */ e(s, {}),
|
|
19
|
+
"padding-top": /* @__PURE__ */ e(f, {}),
|
|
20
|
+
"padding-bottom": /* @__PURE__ */ e(l, {}),
|
|
21
|
+
"padding-left": /* @__PURE__ */ e(u, {}),
|
|
22
|
+
"padding-right": /* @__PURE__ */ e(d, {})
|
|
23
|
+
}, m = ({ fragmentSelected: a, value: o, onChange: s }) => {
|
|
24
|
+
let c = (e) => () => {
|
|
25
|
+
s?.(a, e);
|
|
26
|
+
}, l = (e) => {
|
|
27
|
+
s?.(a, e);
|
|
28
|
+
}, u = a.split("-")[0];
|
|
29
|
+
return /* @__PURE__ */ t("div", {
|
|
30
|
+
className: "mt-2 rounded-sm border border-gray-300 bg-white select-none dark:border-zinc-600 dark:bg-zinc-800",
|
|
31
|
+
children: [/* @__PURE__ */ t("div", {
|
|
32
|
+
className: "grid grid-cols-2 items-center gap-2 px-1 pt-1",
|
|
33
|
+
children: [/* @__PURE__ */ t("div", {
|
|
34
|
+
className: "mr-1 flex items-center capitalize",
|
|
35
|
+
children: [/* @__PURE__ */ e(n, {
|
|
36
|
+
className: "mr-1",
|
|
37
|
+
children: p[a]
|
|
38
|
+
}), /* @__PURE__ */ e("div", {
|
|
39
|
+
className: "truncate text-xs",
|
|
40
|
+
children: a.split("-").join(" ")
|
|
41
|
+
})]
|
|
42
|
+
}), /* @__PURE__ */ e(i, {
|
|
43
|
+
value: o,
|
|
44
|
+
size: "xs",
|
|
45
|
+
onChange: l,
|
|
46
|
+
units: [
|
|
47
|
+
{
|
|
48
|
+
label: "PX",
|
|
49
|
+
value: "px"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: "VW",
|
|
53
|
+
value: "vw"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: "VH",
|
|
57
|
+
value: "vh"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: "%",
|
|
61
|
+
value: "%"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: "EM",
|
|
65
|
+
value: "em"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: "REM",
|
|
69
|
+
value: "rem"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: "DVH",
|
|
73
|
+
value: "dvh"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
label: "DVW",
|
|
77
|
+
value: "dvw"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
label: "LVH",
|
|
81
|
+
value: "lvh"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
label: "LVW",
|
|
85
|
+
value: "lvw"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
className: "rounded-sm"
|
|
89
|
+
})]
|
|
90
|
+
}), /* @__PURE__ */ t("div", {
|
|
91
|
+
className: "flex",
|
|
92
|
+
children: [u === "margin" && /* @__PURE__ */ e(r, {
|
|
93
|
+
intent: "secondary",
|
|
94
|
+
size: "xs",
|
|
95
|
+
className: "m-1 w-14 grow",
|
|
96
|
+
onClick: c("auto"),
|
|
97
|
+
children: "Auto"
|
|
98
|
+
}), /* @__PURE__ */ t("div", {
|
|
99
|
+
className: "m-1 grid w-full grid-cols-4 grid-rows-2 gap-2",
|
|
100
|
+
children: [
|
|
101
|
+
/* @__PURE__ */ e(r, {
|
|
102
|
+
intent: "secondary",
|
|
103
|
+
size: "xs",
|
|
104
|
+
onClick: c("0px"),
|
|
105
|
+
children: "0"
|
|
106
|
+
}),
|
|
107
|
+
/* @__PURE__ */ e(r, {
|
|
108
|
+
intent: "secondary",
|
|
109
|
+
size: "xs",
|
|
110
|
+
onClick: c("10px"),
|
|
111
|
+
children: "10"
|
|
112
|
+
}),
|
|
113
|
+
/* @__PURE__ */ e(r, {
|
|
114
|
+
intent: "secondary",
|
|
115
|
+
size: "xs",
|
|
116
|
+
onClick: c("20px"),
|
|
117
|
+
children: "20"
|
|
118
|
+
}),
|
|
119
|
+
/* @__PURE__ */ e(r, {
|
|
120
|
+
intent: "secondary",
|
|
121
|
+
size: "xs",
|
|
122
|
+
onClick: c("40px"),
|
|
123
|
+
children: "40"
|
|
124
|
+
}),
|
|
125
|
+
/* @__PURE__ */ e(r, {
|
|
126
|
+
intent: "secondary",
|
|
127
|
+
size: "xs",
|
|
128
|
+
onClick: c("60px"),
|
|
129
|
+
children: "60"
|
|
130
|
+
}),
|
|
131
|
+
/* @__PURE__ */ e(r, {
|
|
132
|
+
intent: "secondary",
|
|
133
|
+
size: "xs",
|
|
134
|
+
onClick: c("100px"),
|
|
135
|
+
children: "100"
|
|
136
|
+
}),
|
|
137
|
+
/* @__PURE__ */ e(r, {
|
|
138
|
+
intent: "secondary",
|
|
139
|
+
size: "xs",
|
|
140
|
+
onClick: c("140px"),
|
|
141
|
+
children: "140"
|
|
142
|
+
}),
|
|
143
|
+
/* @__PURE__ */ e(r, {
|
|
144
|
+
intent: "secondary",
|
|
145
|
+
size: "xs",
|
|
146
|
+
onClick: c("220px"),
|
|
147
|
+
children: "220"
|
|
148
|
+
})
|
|
149
|
+
]
|
|
150
|
+
})]
|
|
151
|
+
})]
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
//#endregion
|
|
155
|
+
export { m as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type SpacingMarginProps = {
|
|
3
|
+
fragmentSelected?: StyleCategory;
|
|
4
|
+
values?: {
|
|
5
|
+
'margin-top'?: StyleValue;
|
|
6
|
+
'margin-bottom'?: StyleValue;
|
|
7
|
+
'margin-left'?: StyleValue;
|
|
8
|
+
'margin-right'?: StyleValue;
|
|
9
|
+
'padding-top'?: StyleValue;
|
|
10
|
+
'padding-bottom'?: StyleValue;
|
|
11
|
+
'padding-right'?: StyleValue;
|
|
12
|
+
'padding-left'?: StyleValue;
|
|
13
|
+
};
|
|
14
|
+
isLinked?: boolean;
|
|
15
|
+
onLinkSelected?: () => void;
|
|
16
|
+
onSelectFragment?: (fragment?: StyleCategory) => void;
|
|
17
|
+
};
|
|
18
|
+
declare const SpacingMargin: ({ fragmentSelected, values, isLinked, onLinkSelected, onSelectFragment }: SpacingMarginProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default SpacingMargin;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import e from "../../components/InspectorLabel/index.mjs";
|
|
2
|
+
import t from "./SpacingNumber.mjs";
|
|
3
|
+
import n from "./SpacingPadding.mjs";
|
|
4
|
+
import { useCallback as r } from "react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/StyleInspector/categories/Spacing/SpacingMargin.tsx
|
|
7
|
+
var o = [
|
|
8
|
+
"margin-top",
|
|
9
|
+
"margin-left",
|
|
10
|
+
"margin-right",
|
|
11
|
+
"margin-bottom"
|
|
12
|
+
], s = ({ fragmentSelected: s, values: c, isLinked: l = !1, onLinkSelected: u, onSelectFragment: d }) => {
|
|
13
|
+
let f = r((e) => () => {
|
|
14
|
+
e === s ? d?.(void 0) : d?.(e);
|
|
15
|
+
}, [s, d]), { "margin-top": p, "margin-bottom": m, "margin-left": h, "margin-right": g } = c ?? {};
|
|
16
|
+
return /* @__PURE__ */ a("div", {
|
|
17
|
+
className: "relative flex cursor-pointer flex-col rounded-md border border-gray-300 bg-white select-none dark:border-zinc-600 dark:bg-zinc-800",
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ a("div", {
|
|
20
|
+
className: "flex items-center justify-center py-0.5",
|
|
21
|
+
children: [/* @__PURE__ */ i(e, {
|
|
22
|
+
className: "absolute top-0 left-0 overflow-hidden rounded-br-md !p-0 text-[10px]",
|
|
23
|
+
size: "custom",
|
|
24
|
+
keyValue: o,
|
|
25
|
+
children: "MARGIN"
|
|
26
|
+
}), /* @__PURE__ */ i(t, {
|
|
27
|
+
value: p,
|
|
28
|
+
active: s === "margin-top",
|
|
29
|
+
onClick: f("margin-top")
|
|
30
|
+
})]
|
|
31
|
+
}),
|
|
32
|
+
/* @__PURE__ */ a("div", {
|
|
33
|
+
className: "flex items-center justify-center",
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ i("div", {
|
|
36
|
+
className: "flex items-center justify-center px-0.5",
|
|
37
|
+
children: /* @__PURE__ */ i(t, {
|
|
38
|
+
value: h,
|
|
39
|
+
active: s === "margin-left",
|
|
40
|
+
onClick: f("margin-left")
|
|
41
|
+
})
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ i(n, {
|
|
44
|
+
values: c,
|
|
45
|
+
fragmentSelected: s,
|
|
46
|
+
onSelectFragment: d,
|
|
47
|
+
isLinked: l,
|
|
48
|
+
onLinkSelected: u
|
|
49
|
+
}),
|
|
50
|
+
/* @__PURE__ */ i("div", {
|
|
51
|
+
className: "flex items-center justify-center px-0.5",
|
|
52
|
+
children: /* @__PURE__ */ i(t, {
|
|
53
|
+
value: g,
|
|
54
|
+
active: s === "margin-right",
|
|
55
|
+
onClick: f("margin-right")
|
|
56
|
+
})
|
|
57
|
+
})
|
|
58
|
+
]
|
|
59
|
+
}),
|
|
60
|
+
/* @__PURE__ */ i("div", {
|
|
61
|
+
className: "flex items-center justify-center py-0.5",
|
|
62
|
+
children: /* @__PURE__ */ i(t, {
|
|
63
|
+
value: m,
|
|
64
|
+
active: s === "margin-bottom",
|
|
65
|
+
onClick: f("margin-bottom")
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
]
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
export { s as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type SpacingNumberProps = {
|
|
3
|
+
value?: StyleValue;
|
|
4
|
+
active?: boolean;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
};
|
|
7
|
+
declare const SpacingNumber: ({ value, active, onClick }: SpacingNumberProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default SpacingNumber;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import e from "clsx";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/StyleInspector/categories/Spacing/SpacingNumber.tsx
|
|
4
|
+
var n = ({ value: n = "", active: r = !1, onClick: i }) => /* @__PURE__ */ t("div", {
|
|
5
|
+
className: e("mx-0.5 flex w-[30px] items-center justify-center rounded-md border px-0.5 text-xs", {
|
|
6
|
+
"border-transparent hover:border-blue-300 hover:bg-blue-100 hover:text-blue-400 dark:hover:bg-blue-900/50 dark:hover:text-blue-400": !r,
|
|
7
|
+
"border-blue-300 bg-blue-100 text-blue-400 dark:bg-blue-900/50": r
|
|
8
|
+
}),
|
|
9
|
+
title: n,
|
|
10
|
+
onClick: i,
|
|
11
|
+
children: /* @__PURE__ */ t("div", {
|
|
12
|
+
className: "truncate",
|
|
13
|
+
children: n.replace("px", "")
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { n as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type SpacingPaddingProps = {
|
|
3
|
+
fragmentSelected?: StyleCategory;
|
|
4
|
+
values?: {
|
|
5
|
+
'padding-top'?: StyleValue;
|
|
6
|
+
'padding-bottom'?: StyleValue;
|
|
7
|
+
'padding-left'?: StyleValue;
|
|
8
|
+
'padding-right'?: StyleValue;
|
|
9
|
+
};
|
|
10
|
+
isLinked?: boolean;
|
|
11
|
+
onLinkSelected?: () => void;
|
|
12
|
+
onSelectFragment?: (fragment?: StyleCategory) => void;
|
|
13
|
+
};
|
|
14
|
+
declare const SpacingPadding: ({ fragmentSelected, values, isLinked, onLinkSelected, onSelectFragment }: SpacingPaddingProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default SpacingPadding;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import e from "../../components/InspectorLabel/index.mjs";
|
|
2
|
+
import t from "./SpacingNumber.mjs";
|
|
3
|
+
import { useCallback as n } from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/StyleInspector/categories/Spacing/SpacingPadding.tsx
|
|
6
|
+
var a = [
|
|
7
|
+
"padding-top",
|
|
8
|
+
"padding-left",
|
|
9
|
+
"padding-right",
|
|
10
|
+
"padding-bottom"
|
|
11
|
+
], o = ({ fragmentSelected: o, values: s, isLinked: c = !1, onLinkSelected: l, onSelectFragment: u }) => {
|
|
12
|
+
let d = n((e) => () => {
|
|
13
|
+
e === o ? u?.(void 0) : u?.(e);
|
|
14
|
+
}, [u, o]), { "padding-top": f, "padding-bottom": p, "padding-left": m, "padding-right": h } = s ?? {};
|
|
15
|
+
return /* @__PURE__ */ i("div", {
|
|
16
|
+
className: "relative grow rounded-md border border-gray-300 dark:border-zinc-600",
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ i("div", {
|
|
19
|
+
className: "flex items-center justify-center py-0.5",
|
|
20
|
+
children: [/* @__PURE__ */ r(e, {
|
|
21
|
+
keyValue: a,
|
|
22
|
+
className: "absolute top-0 left-0 overflow-hidden rounded-br-md !p-0 text-[10px]",
|
|
23
|
+
size: "custom",
|
|
24
|
+
children: "PADDING"
|
|
25
|
+
}), /* @__PURE__ */ r(t, {
|
|
26
|
+
value: f,
|
|
27
|
+
active: o === "padding-top",
|
|
28
|
+
onClick: d("padding-top")
|
|
29
|
+
})]
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ i("div", {
|
|
32
|
+
className: "flex items-center justify-center",
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ r("div", {
|
|
35
|
+
className: "flex items-center justify-center px-0.5",
|
|
36
|
+
children: /* @__PURE__ */ r(t, {
|
|
37
|
+
value: m,
|
|
38
|
+
active: o === "padding-left",
|
|
39
|
+
onClick: d("padding-left")
|
|
40
|
+
})
|
|
41
|
+
}),
|
|
42
|
+
/* @__PURE__ */ i("div", {
|
|
43
|
+
className: "flex grow items-center justify-center rounded-md border border-gray-300 bg-slate-100 py-1 dark:border-zinc-600 dark:bg-zinc-700/50",
|
|
44
|
+
onClick: l,
|
|
45
|
+
children: [c && /* @__PURE__ */ r("i", { className: "fa-solid fa-link text-sm" }), !c && /* @__PURE__ */ r("i", { className: "fa-solid fa-link-slash text-sm" })]
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ r("div", {
|
|
48
|
+
className: "flex items-center justify-center px-0.5",
|
|
49
|
+
children: /* @__PURE__ */ r(t, {
|
|
50
|
+
value: h,
|
|
51
|
+
active: o === "padding-right",
|
|
52
|
+
onClick: d("padding-right")
|
|
53
|
+
})
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
}),
|
|
57
|
+
/* @__PURE__ */ r("div", {
|
|
58
|
+
className: "flex items-center justify-center py-0.5",
|
|
59
|
+
children: /* @__PURE__ */ r(t, {
|
|
60
|
+
value: p,
|
|
61
|
+
active: o === "padding-bottom",
|
|
62
|
+
onClick: d("padding-bottom")
|
|
63
|
+
})
|
|
64
|
+
})
|
|
65
|
+
]
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
//#endregion
|
|
69
|
+
export { o as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type TypographyProps = {
|
|
2
|
+
replaceTokens?: boolean;
|
|
3
|
+
isCollapsed?: boolean;
|
|
4
|
+
fonts?: {
|
|
5
|
+
name: string;
|
|
6
|
+
weights: string[];
|
|
7
|
+
}[];
|
|
8
|
+
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, fonts, onCollapse }: TypographyProps) => import("react/jsx-runtime").JSX.Element>;
|
|
11
|
+
export default _default;
|