@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,126 @@
|
|
|
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 "./BorderColor.mjs";
|
|
5
|
+
import i from "./BorderPlacements.mjs";
|
|
6
|
+
import a from "./BorderRadius.mjs";
|
|
7
|
+
import o from "./BorderStyle.mjs";
|
|
8
|
+
import s from "./BorderWidth.mjs";
|
|
9
|
+
import { memo as c, use as l, useCallback as u, useState as d } from "react";
|
|
10
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
11
|
+
//#region src/components/StyleInspector/categories/Border/Border.tsx
|
|
12
|
+
var m = [
|
|
13
|
+
"border-top-style",
|
|
14
|
+
"border-top-width",
|
|
15
|
+
"border-top-color",
|
|
16
|
+
"border-bottom-style",
|
|
17
|
+
"border-bottom-width",
|
|
18
|
+
"border-bottom-color",
|
|
19
|
+
"border-left-style",
|
|
20
|
+
"border-left-width",
|
|
21
|
+
"border-left-color",
|
|
22
|
+
"border-right-style",
|
|
23
|
+
"border-right-width",
|
|
24
|
+
"border-right-color",
|
|
25
|
+
"border-top-left-radius",
|
|
26
|
+
"border-top-right-radius",
|
|
27
|
+
"border-bottom-left-radius",
|
|
28
|
+
"border-bottom-right-radius"
|
|
29
|
+
], h = c(({ replaceTokens: c = !1, isCollapsed: h = !0, onCollapse: g }) => {
|
|
30
|
+
let [_, v] = d("all"), { setValue: y } = l(e), b = t({
|
|
31
|
+
keys: m,
|
|
32
|
+
asValue: !0,
|
|
33
|
+
replaceTokens: c
|
|
34
|
+
}), x = u((e) => (t) => {
|
|
35
|
+
switch (e) {
|
|
36
|
+
case "radius":
|
|
37
|
+
y(void 0, {
|
|
38
|
+
"border-top-left-radius": t,
|
|
39
|
+
"border-top-right-radius": t,
|
|
40
|
+
"border-bottom-left-radius": t,
|
|
41
|
+
"border-bottom-right-radius": t
|
|
42
|
+
});
|
|
43
|
+
break;
|
|
44
|
+
case "border-top-left-radius":
|
|
45
|
+
case "border-top-right-radius":
|
|
46
|
+
case "border-bottom-left-radius":
|
|
47
|
+
case "border-bottom-right-radius":
|
|
48
|
+
y(e, t);
|
|
49
|
+
break;
|
|
50
|
+
case "style":
|
|
51
|
+
case "color":
|
|
52
|
+
case "width": {
|
|
53
|
+
let n = [
|
|
54
|
+
"style",
|
|
55
|
+
"color",
|
|
56
|
+
"width"
|
|
57
|
+
].filter((t) => t !== e);
|
|
58
|
+
_ === "all" ? y(void 0, {
|
|
59
|
+
[`border-top-${e}`]: t,
|
|
60
|
+
[`border-bottom-${e}`]: t,
|
|
61
|
+
[`border-left-${e}`]: t,
|
|
62
|
+
[`border-right-${e}`]: t,
|
|
63
|
+
[`border-top-${n[0]}`]: b[`border-top-${n[0]}`],
|
|
64
|
+
[`border-bottom-${n[0]}`]: b[`border-bottom-${n[0]}`],
|
|
65
|
+
[`border-left-${n[0]}`]: b[`border-left-${n[0]}`],
|
|
66
|
+
[`border-right-${n[0]}`]: b[`border-right-${n[0]}`],
|
|
67
|
+
[`border-top-${n[1]}`]: b[`border-right-${n[1]}`],
|
|
68
|
+
[`border-bottom-${n[1]}`]: b[`border-bottom-${n[1]}`],
|
|
69
|
+
[`border-left-${n[1]}`]: b[`border-left-${n[1]}`],
|
|
70
|
+
[`border-right-${n[1]}`]: b[`border-right-${n[1]}`]
|
|
71
|
+
}) : y(void 0, {
|
|
72
|
+
[`border-${_}-${e}`]: t,
|
|
73
|
+
[`border-${_}-${n[0]}`]: b[`border-${_}-${n[0]}`],
|
|
74
|
+
[`border-${_}-${n[1]}`]: b[`border-${_}-${n[1]}`]
|
|
75
|
+
});
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
default: break;
|
|
79
|
+
}
|
|
80
|
+
}, [
|
|
81
|
+
_,
|
|
82
|
+
b,
|
|
83
|
+
y
|
|
84
|
+
]);
|
|
85
|
+
return /* @__PURE__ */ f(n, {
|
|
86
|
+
title: "Border",
|
|
87
|
+
dotKeys: m,
|
|
88
|
+
isCollapsed: h,
|
|
89
|
+
onCollapse: u((e) => g?.("border", e), [g]),
|
|
90
|
+
children: /* @__PURE__ */ p("div", {
|
|
91
|
+
className: "flex flex-col gap-2",
|
|
92
|
+
children: [/* @__PURE__ */ f(a, {
|
|
93
|
+
values: b,
|
|
94
|
+
onChange: x("radius"),
|
|
95
|
+
onChangeSegment: x
|
|
96
|
+
}), /* @__PURE__ */ p("div", {
|
|
97
|
+
className: "flex w-full flex-col gap-2",
|
|
98
|
+
children: [/* @__PURE__ */ f(i, {
|
|
99
|
+
currentPlacement: _,
|
|
100
|
+
setCurrentPlacement: v
|
|
101
|
+
}), /* @__PURE__ */ p("div", {
|
|
102
|
+
className: "flex w-full flex-col gap-2",
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ f(o, {
|
|
105
|
+
values: b,
|
|
106
|
+
currentPlacement: _,
|
|
107
|
+
onChange: x("style")
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ f(s, {
|
|
110
|
+
values: b,
|
|
111
|
+
currentPlacement: _,
|
|
112
|
+
onChange: x("width")
|
|
113
|
+
}),
|
|
114
|
+
/* @__PURE__ */ f(r, {
|
|
115
|
+
values: b,
|
|
116
|
+
currentPlacement: _,
|
|
117
|
+
onChange: x("color")
|
|
118
|
+
})
|
|
119
|
+
]
|
|
120
|
+
})]
|
|
121
|
+
})]
|
|
122
|
+
})
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
//#endregion
|
|
126
|
+
export { h as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type BorderColorProps = {
|
|
3
|
+
values: Record<StyleCategory, StyleValue | undefined>;
|
|
4
|
+
currentPlacement: string;
|
|
5
|
+
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const BorderColor: ({ values, currentPlacement, onChange }: BorderColorProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default BorderColor;
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
//#region src/components/StyleInspector/categories/Border/BorderColor.tsx
|
|
6
|
+
var i = ({ values: i, currentPlacement: a, onChange: o }) => {
|
|
7
|
+
let s = n(() => {
|
|
8
|
+
let { "border-top-color": e, "border-bottom-color": t, "border-left-color": n, "border-right-color": r } = i;
|
|
9
|
+
switch (!0) {
|
|
10
|
+
case a === "all": return e === t && e === n && e === r ? e : "#000000";
|
|
11
|
+
case a === "top": return e;
|
|
12
|
+
case a === "bottom": return t;
|
|
13
|
+
case a === "left": return n;
|
|
14
|
+
case a === "right": return r;
|
|
15
|
+
default: return "#000000";
|
|
16
|
+
}
|
|
17
|
+
}, [i, a]);
|
|
18
|
+
return /* @__PURE__ */ r(t, {
|
|
19
|
+
label: "Color",
|
|
20
|
+
keys: n(() => a === "all" ? [
|
|
21
|
+
"border-top-color",
|
|
22
|
+
"border-bottom-color",
|
|
23
|
+
"border-left-color",
|
|
24
|
+
"border-right-color"
|
|
25
|
+
] : [`border-${a}-color`], [a]),
|
|
26
|
+
children: /* @__PURE__ */ r(e, {
|
|
27
|
+
value: s,
|
|
28
|
+
onChange: o,
|
|
29
|
+
type: "color"
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { i as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type Placement = 'all' | 'top' | 'bottom' | 'left' | 'right';
|
|
2
|
+
export type BorderPlacementsProps = {
|
|
3
|
+
currentPlacement: Placement;
|
|
4
|
+
setCurrentPlacement: (value: Placement) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const BorderPlacements: ({ currentPlacement, setCurrentPlacement }: BorderPlacementsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default BorderPlacements;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import e from "clsx";
|
|
2
|
+
import { useCallback as t } from "react";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
import i from "@plitzi/plitzi-ui/Icon";
|
|
5
|
+
import a from "@plitzi/plitzi-ui/icons/BorderPlacementBottom";
|
|
6
|
+
import o from "@plitzi/plitzi-ui/icons/BorderPlacementCenter";
|
|
7
|
+
import s from "@plitzi/plitzi-ui/icons/BorderPlacementLeft";
|
|
8
|
+
import c from "@plitzi/plitzi-ui/icons/BorderPlacementRight";
|
|
9
|
+
import l from "@plitzi/plitzi-ui/icons/BorderPlacementTop";
|
|
10
|
+
//#region src/components/StyleInspector/categories/Border/BorderPlacements.tsx
|
|
11
|
+
var u = ({ currentPlacement: u, setCurrentPlacement: d }) => {
|
|
12
|
+
let f = t((e) => () => d(e), [d]);
|
|
13
|
+
return /* @__PURE__ */ r("div", {
|
|
14
|
+
className: "mx-auto grid grid-cols-3 grid-rows-3 place-items-center gap-2",
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ n(i, {
|
|
17
|
+
size: "2xl",
|
|
18
|
+
className: e("col-start-2 cursor-pointer rounded p-0.5", { "bg-primary-100": u === "top" }),
|
|
19
|
+
onClick: f("top"),
|
|
20
|
+
active: u === "top",
|
|
21
|
+
children: /* @__PURE__ */ n(l, {})
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ n(i, {
|
|
24
|
+
size: "2xl",
|
|
25
|
+
className: e("row-start-2 cursor-pointer rounded p-0.5", { "bg-primary-100": u === "left" }),
|
|
26
|
+
onClick: f("left"),
|
|
27
|
+
active: u === "left",
|
|
28
|
+
children: /* @__PURE__ */ n(s, {})
|
|
29
|
+
}),
|
|
30
|
+
/* @__PURE__ */ n(i, {
|
|
31
|
+
size: "2xl",
|
|
32
|
+
className: e("row-start-2 grid cursor-pointer grid-cols-3 rounded p-0.5", { "bg-primary-100": u === "all" }),
|
|
33
|
+
onClick: f("all"),
|
|
34
|
+
active: u === "all",
|
|
35
|
+
children: /* @__PURE__ */ n(o, {})
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ n(i, {
|
|
38
|
+
size: "2xl",
|
|
39
|
+
className: e("row-start-2 cursor-pointer rounded p-0.5", { "bg-primary-100": u === "right" }),
|
|
40
|
+
onClick: f("right"),
|
|
41
|
+
active: u === "right",
|
|
42
|
+
children: /* @__PURE__ */ n(c, {})
|
|
43
|
+
}),
|
|
44
|
+
/* @__PURE__ */ n(i, {
|
|
45
|
+
size: "2xl",
|
|
46
|
+
className: e("col-start-2 row-start-3 cursor-pointer rounded p-0.5", { "bg-primary-100": u === "bottom" }),
|
|
47
|
+
onClick: f("bottom"),
|
|
48
|
+
active: u === "bottom",
|
|
49
|
+
children: /* @__PURE__ */ n(a, {})
|
|
50
|
+
})
|
|
51
|
+
]
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
//#endregion
|
|
55
|
+
export { u as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type BorderRadiusProps = {
|
|
3
|
+
values: Record<StyleCategory, StyleValue | undefined>;
|
|
4
|
+
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
|
+
onChangeSegment?: (type: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const BorderRadius: ({ values, onChange, onChangeSegment }: BorderRadiusProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default BorderRadius;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import e from "../../components/CategoryOption/index.mjs";
|
|
2
|
+
import t from "../../components/CategorySection/index.mjs";
|
|
3
|
+
import { useCallback as n, useMemo as r, useState as i } from "react";
|
|
4
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/StyleInspector/categories/Border/BorderRadius.tsx
|
|
6
|
+
var s = [
|
|
7
|
+
"border-top-left-radius",
|
|
8
|
+
"border-top-right-radius",
|
|
9
|
+
"border-bottom-left-radius",
|
|
10
|
+
"border-bottom-right-radius"
|
|
11
|
+
], c = [{
|
|
12
|
+
label: "PX",
|
|
13
|
+
value: "px"
|
|
14
|
+
}, {
|
|
15
|
+
label: "%",
|
|
16
|
+
value: "%"
|
|
17
|
+
}], l = ({ values: l, onChange: u, onChangeSegment: d }) => {
|
|
18
|
+
let { "border-top-left-radius": f, "border-top-right-radius": p, "border-bottom-left-radius": m, "border-bottom-right-radius": h } = l, [g, _] = i(f !== p || f !== m || f !== h), v = "0px";
|
|
19
|
+
f === p && f === m && f === h && (v = f);
|
|
20
|
+
let y = n((e) => {
|
|
21
|
+
_(e);
|
|
22
|
+
}, []);
|
|
23
|
+
return /* @__PURE__ */ o("div", {
|
|
24
|
+
className: "flex flex-col gap-2",
|
|
25
|
+
children: [/* @__PURE__ */ o(t, {
|
|
26
|
+
label: "Radius",
|
|
27
|
+
keys: s,
|
|
28
|
+
children: [/* @__PURE__ */ a(e, {
|
|
29
|
+
items: r(() => [{
|
|
30
|
+
value: !1,
|
|
31
|
+
icon: "fa-regular fa-square",
|
|
32
|
+
description: "",
|
|
33
|
+
active: !g
|
|
34
|
+
}, {
|
|
35
|
+
value: !0,
|
|
36
|
+
icon: "fa-solid fa-expand",
|
|
37
|
+
description: "",
|
|
38
|
+
active: g
|
|
39
|
+
}], [g]),
|
|
40
|
+
type: "iconGroup",
|
|
41
|
+
onChange: y
|
|
42
|
+
}), /* @__PURE__ */ a(e, {
|
|
43
|
+
value: v,
|
|
44
|
+
units: c,
|
|
45
|
+
onChange: u,
|
|
46
|
+
type: "metric"
|
|
47
|
+
})]
|
|
48
|
+
}), g && /* @__PURE__ */ o("div", {
|
|
49
|
+
className: "grid grid-cols-3 grid-cols-[1fr_auto_1fr] grid-rows-3",
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ a("div", {
|
|
52
|
+
className: "flex max-w-[80px] items-center justify-self-end",
|
|
53
|
+
children: /* @__PURE__ */ a(e, {
|
|
54
|
+
value: f,
|
|
55
|
+
onChange: d?.("border-top-left-radius"),
|
|
56
|
+
type: "metric",
|
|
57
|
+
units: c,
|
|
58
|
+
className: "text-center"
|
|
59
|
+
})
|
|
60
|
+
}),
|
|
61
|
+
/* @__PURE__ */ a("div", {
|
|
62
|
+
className: "col-start-3 flex max-w-[80px] items-center justify-self-start",
|
|
63
|
+
children: /* @__PURE__ */ a(e, {
|
|
64
|
+
value: p,
|
|
65
|
+
onChange: d?.("border-top-right-radius"),
|
|
66
|
+
type: "metric",
|
|
67
|
+
units: c,
|
|
68
|
+
className: "text-center"
|
|
69
|
+
})
|
|
70
|
+
}),
|
|
71
|
+
/* @__PURE__ */ a("div", {
|
|
72
|
+
className: "col-start-2 row-start-2 flex items-center justify-center",
|
|
73
|
+
children: /* @__PURE__ */ o("div", {
|
|
74
|
+
className: "grid h-10 w-10 grid-cols-2 grid-rows-2 gap-2",
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ a("div", {
|
|
77
|
+
className: "h-4 w-4 border-t-3 border-l-3",
|
|
78
|
+
style: {
|
|
79
|
+
borderTopLeftRadius: f,
|
|
80
|
+
borderColor: f === "0px" ? "currentColor" : "#5900D6"
|
|
81
|
+
}
|
|
82
|
+
}),
|
|
83
|
+
/* @__PURE__ */ a("div", {
|
|
84
|
+
className: "h-4 w-4 border-t-3 border-r-3",
|
|
85
|
+
style: {
|
|
86
|
+
borderTopRightRadius: p,
|
|
87
|
+
borderColor: p === "0px" ? "currentColor" : "#5900D6"
|
|
88
|
+
}
|
|
89
|
+
}),
|
|
90
|
+
/* @__PURE__ */ a("div", {
|
|
91
|
+
className: "h-4 w-4 border-b-3 border-l-3",
|
|
92
|
+
style: {
|
|
93
|
+
borderBottomLeftRadius: m,
|
|
94
|
+
borderColor: m === "0px" ? "currentColor" : "#5900D6"
|
|
95
|
+
}
|
|
96
|
+
}),
|
|
97
|
+
/* @__PURE__ */ a("div", {
|
|
98
|
+
className: "h-4 w-4 border-r-3 border-b-3",
|
|
99
|
+
style: {
|
|
100
|
+
borderBottomRightRadius: h,
|
|
101
|
+
borderColor: h === "0px" ? "currentColor" : "#5900D6"
|
|
102
|
+
}
|
|
103
|
+
})
|
|
104
|
+
]
|
|
105
|
+
})
|
|
106
|
+
}),
|
|
107
|
+
/* @__PURE__ */ a("div", {
|
|
108
|
+
className: "row-start-3 flex max-w-[80px] items-center justify-self-end",
|
|
109
|
+
children: /* @__PURE__ */ a(e, {
|
|
110
|
+
value: m,
|
|
111
|
+
onChange: d?.("border-bottom-left-radius"),
|
|
112
|
+
type: "metric",
|
|
113
|
+
units: c,
|
|
114
|
+
className: "text-center"
|
|
115
|
+
})
|
|
116
|
+
}),
|
|
117
|
+
/* @__PURE__ */ a("div", {
|
|
118
|
+
className: "col-start-3 row-start-3 flex max-w-[80px] items-center justify-self-start",
|
|
119
|
+
children: /* @__PURE__ */ a(e, {
|
|
120
|
+
value: h,
|
|
121
|
+
onChange: d?.("border-bottom-right-radius"),
|
|
122
|
+
type: "metric",
|
|
123
|
+
units: c,
|
|
124
|
+
className: "text-center"
|
|
125
|
+
})
|
|
126
|
+
})
|
|
127
|
+
]
|
|
128
|
+
})]
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
//#endregion
|
|
132
|
+
export { l as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type BorderStyleProps = {
|
|
3
|
+
values: Record<StyleCategory, StyleValue | undefined>;
|
|
4
|
+
currentPlacement: string;
|
|
5
|
+
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const BorderStyle: ({ values, currentPlacement, onChange }: BorderStyleProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default BorderStyle;
|
|
@@ -0,0 +1,63 @@
|
|
|
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 i from "@plitzi/plitzi-ui/icons/XMark";
|
|
6
|
+
import a from "@plitzi/plitzi-ui/icons/BorderStyleDashed";
|
|
7
|
+
import o from "@plitzi/plitzi-ui/icons/BorderStyleDotted";
|
|
8
|
+
import s from "@plitzi/plitzi-ui/icons/BorderStyleSolid";
|
|
9
|
+
//#region src/components/StyleInspector/categories/Border/BorderStyle.tsx
|
|
10
|
+
var c = ({ values: c, currentPlacement: l, onChange: u }) => {
|
|
11
|
+
let d = n(() => {
|
|
12
|
+
let { "border-top-style": e, "border-bottom-style": t, "border-left-style": n, "border-right-style": r } = c;
|
|
13
|
+
switch (!0) {
|
|
14
|
+
case l === "all": return e === t && e === n && e === r ? e : "solid";
|
|
15
|
+
case l === "top": return e;
|
|
16
|
+
case l === "bottom": return t;
|
|
17
|
+
case l === "left": return n;
|
|
18
|
+
case l === "right": return r;
|
|
19
|
+
default: return "solid";
|
|
20
|
+
}
|
|
21
|
+
}, [c, l]), f = n(() => [
|
|
22
|
+
{
|
|
23
|
+
value: "none",
|
|
24
|
+
icon: /* @__PURE__ */ r(i, {}),
|
|
25
|
+
description: "",
|
|
26
|
+
active: d === "none"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
value: "solid",
|
|
30
|
+
icon: /* @__PURE__ */ r(s, {}),
|
|
31
|
+
description: "",
|
|
32
|
+
active: d === "solid"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
value: "dashed",
|
|
36
|
+
icon: /* @__PURE__ */ r(a, {}),
|
|
37
|
+
description: "",
|
|
38
|
+
active: d === "dashed"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
value: "dotted",
|
|
42
|
+
icon: /* @__PURE__ */ r(o, {}),
|
|
43
|
+
description: "",
|
|
44
|
+
active: d === "dotted"
|
|
45
|
+
}
|
|
46
|
+
], [d]);
|
|
47
|
+
return /* @__PURE__ */ r(t, {
|
|
48
|
+
label: "Style",
|
|
49
|
+
keys: n(() => l === "all" ? [
|
|
50
|
+
"border-top-style",
|
|
51
|
+
"border-bottom-style",
|
|
52
|
+
"border-left-style",
|
|
53
|
+
"border-right-style"
|
|
54
|
+
] : [`border-${l}-style`], [l]),
|
|
55
|
+
children: /* @__PURE__ */ r(e, {
|
|
56
|
+
onChange: u,
|
|
57
|
+
items: f,
|
|
58
|
+
type: "iconGroup"
|
|
59
|
+
})
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
//#endregion
|
|
63
|
+
export { c as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type BorderWidthProps = {
|
|
3
|
+
values: Record<StyleCategory, StyleValue | undefined>;
|
|
4
|
+
currentPlacement: string;
|
|
5
|
+
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const BorderWidth: ({ values, currentPlacement, onChange }: BorderWidthProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default BorderWidth;
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
//#region src/components/StyleInspector/categories/Border/BorderWidth.tsx
|
|
6
|
+
var i = ({ values: i, currentPlacement: a, onChange: o }) => {
|
|
7
|
+
let s = n(() => {
|
|
8
|
+
let { "border-top-width": e, "border-bottom-width": t, "border-left-width": n, "border-right-width": r } = i;
|
|
9
|
+
switch (!0) {
|
|
10
|
+
case a === "all": return e === t && e === n && e === r ? e : "0px";
|
|
11
|
+
case a === "top": return e;
|
|
12
|
+
case a === "bottom": return t;
|
|
13
|
+
case a === "left": return n;
|
|
14
|
+
case a === "right": return r;
|
|
15
|
+
default: return "0px";
|
|
16
|
+
}
|
|
17
|
+
}, [i, a]);
|
|
18
|
+
return /* @__PURE__ */ r(t, {
|
|
19
|
+
label: "Width",
|
|
20
|
+
keys: n(() => a === "all" ? [
|
|
21
|
+
"border-top-width",
|
|
22
|
+
"border-bottom-width",
|
|
23
|
+
"border-left-width",
|
|
24
|
+
"border-right-width"
|
|
25
|
+
] : [`border-${a}-width`], [a]),
|
|
26
|
+
children: /* @__PURE__ */ r(e, {
|
|
27
|
+
value: s,
|
|
28
|
+
onChange: o,
|
|
29
|
+
type: "metric"
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { i as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type DisplayProps = {
|
|
2
|
+
replaceTokens?: boolean;
|
|
3
|
+
isCollapsed?: boolean;
|
|
4
|
+
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: DisplayProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,120 @@
|
|
|
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 "./DisplayElements.mjs";
|
|
5
|
+
import i from "./DisplayFlex.mjs";
|
|
6
|
+
import a from "./DisplayFlexAlignContent.mjs";
|
|
7
|
+
import o from "./DisplayFlexAlignItems.mjs";
|
|
8
|
+
import s from "./DisplayFlexDirection.mjs";
|
|
9
|
+
import c from "./DisplayFlexJustify.mjs";
|
|
10
|
+
import l from "./DisplayGap.mjs";
|
|
11
|
+
import u from "./DisplayGridGap.mjs";
|
|
12
|
+
import d from "./DisplayGridTemplate.mjs";
|
|
13
|
+
import { memo as f, use as p, useCallback as m } from "react";
|
|
14
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
15
|
+
//#region src/components/StyleInspector/categories/Display/Display.tsx
|
|
16
|
+
var v = [
|
|
17
|
+
"flex-direction",
|
|
18
|
+
"flex-wrap",
|
|
19
|
+
"align-items",
|
|
20
|
+
"justify-content",
|
|
21
|
+
"align-content",
|
|
22
|
+
"column-gap",
|
|
23
|
+
"row-gap",
|
|
24
|
+
"grid-row-gap",
|
|
25
|
+
"grid-column-gap",
|
|
26
|
+
"grid-template-areas",
|
|
27
|
+
"grid-template-columns",
|
|
28
|
+
"grid-template-rows",
|
|
29
|
+
"grid-auto-flow",
|
|
30
|
+
"grid-auto-rows",
|
|
31
|
+
"grid-auto-columns",
|
|
32
|
+
"display"
|
|
33
|
+
], y = f(({ replaceTokens: f = !1, isCollapsed: y = !0, onCollapse: b }) => {
|
|
34
|
+
let { setValue: x } = p(e), { display: S, "flex-direction": C, "flex-wrap": w, "align-items": T, "justify-content": E, "row-gap": D, "column-gap": O, "grid-template-areas": k, "grid-template-columns": A, "grid-template-rows": j, "grid-auto-flow": M, "grid-auto-rows": N, "grid-auto-columns": P, "grid-row-gap": F, "grid-column-gap": I, "align-content": L } = t({
|
|
35
|
+
keys: v,
|
|
36
|
+
asValue: !0,
|
|
37
|
+
replaceTokens: f
|
|
38
|
+
}), R = m((e, t) => {
|
|
39
|
+
e === "display" ? x(void 0, {
|
|
40
|
+
"flex-direction": void 0,
|
|
41
|
+
"flex-wrap": void 0,
|
|
42
|
+
"align-items": void 0,
|
|
43
|
+
"justify-content": void 0,
|
|
44
|
+
"align-content": void 0,
|
|
45
|
+
"row-gap": void 0,
|
|
46
|
+
"column-gap": void 0,
|
|
47
|
+
"grid-row-gap": void 0,
|
|
48
|
+
"grid-column-gap": void 0,
|
|
49
|
+
"grid-template-areas": void 0,
|
|
50
|
+
"grid-template-columns": void 0,
|
|
51
|
+
"grid-template-rows": void 0,
|
|
52
|
+
"grid-auto-flow": void 0,
|
|
53
|
+
"grid-auto-rows": void 0,
|
|
54
|
+
"grid-auto-columns": void 0,
|
|
55
|
+
display: t
|
|
56
|
+
}) : x(e, t);
|
|
57
|
+
}, [x]), z = m((e) => b?.("display", e), [b]), B = typeof C == "string" && C.includes("reverse"), V = typeof C == "string" && C.includes("row"), H = typeof w == "string" && w.includes("reverse");
|
|
58
|
+
return /* @__PURE__ */ _(n, {
|
|
59
|
+
title: "Layout",
|
|
60
|
+
dotKeys: v,
|
|
61
|
+
isCollapsed: y,
|
|
62
|
+
onCollapse: z,
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ g(r, {
|
|
65
|
+
value: S,
|
|
66
|
+
onChange: R
|
|
67
|
+
}),
|
|
68
|
+
S === "flex" && /* @__PURE__ */ _(h, { children: [
|
|
69
|
+
/* @__PURE__ */ g(s, {
|
|
70
|
+
value: C,
|
|
71
|
+
onChange: R,
|
|
72
|
+
isReverse: B
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ g(o, {
|
|
75
|
+
value: T,
|
|
76
|
+
onChange: R,
|
|
77
|
+
isReverse: B,
|
|
78
|
+
isRow: V
|
|
79
|
+
}),
|
|
80
|
+
/* @__PURE__ */ g(c, {
|
|
81
|
+
value: E,
|
|
82
|
+
onChange: R,
|
|
83
|
+
isReverse: B,
|
|
84
|
+
isRow: V
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ g(i, {
|
|
87
|
+
value: w,
|
|
88
|
+
onChange: R,
|
|
89
|
+
isReverse: H
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ g(l, {
|
|
92
|
+
rowGap: D,
|
|
93
|
+
columnGap: O,
|
|
94
|
+
onChange: R
|
|
95
|
+
})
|
|
96
|
+
] }),
|
|
97
|
+
S === "grid" && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(d, {
|
|
98
|
+
templateAreas: k,
|
|
99
|
+
templateColumns: A,
|
|
100
|
+
templateRows: j,
|
|
101
|
+
templateAutoFlow: M,
|
|
102
|
+
templateAutoRows: N,
|
|
103
|
+
templateAutoColumns: P,
|
|
104
|
+
onChange: R
|
|
105
|
+
}), /* @__PURE__ */ g(u, {
|
|
106
|
+
rowGap: F,
|
|
107
|
+
columnGap: I,
|
|
108
|
+
onChange: R
|
|
109
|
+
})] }),
|
|
110
|
+
S === "flex" && (w === "wrap" || w === "wrap-reverse") && /* @__PURE__ */ g(a, {
|
|
111
|
+
value: L,
|
|
112
|
+
onChange: R,
|
|
113
|
+
isReverse: H,
|
|
114
|
+
isRow: V
|
|
115
|
+
})
|
|
116
|
+
]
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
//#endregion
|
|
120
|
+
export { y as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type DisplayElementsProps = {
|
|
3
|
+
value?: StyleValue;
|
|
4
|
+
onChange?: (type: StyleCategory, value: StyleValue) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const DisplayElements: ({ value, onChange }: DisplayElementsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default DisplayElements;
|