@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,129 @@
|
|
|
1
|
+
import e from "../../StyleInspectorContext.mjs";
|
|
2
|
+
import t from "../../hooks/useInspectorValues.mjs";
|
|
3
|
+
import n from "../../components/CategoryOption/index.mjs";
|
|
4
|
+
import r from "../../components/CategorySection/index.mjs";
|
|
5
|
+
import i from "../../components/CategoryContainer/index.mjs";
|
|
6
|
+
import a from "./PositionAdvanced.mjs";
|
|
7
|
+
import o from "./PositionAdvancedButtons.mjs";
|
|
8
|
+
import s from "./PositionClear.mjs";
|
|
9
|
+
import c from "./PositionFloat.mjs";
|
|
10
|
+
import { memo as l, use as u, useCallback as d, useMemo as f } from "react";
|
|
11
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
12
|
+
import h from "@plitzi/plitzi-ui/icons/XMark";
|
|
13
|
+
import g from "@plitzi/plitzi-ui/icons/ListNumbers";
|
|
14
|
+
import _ from "@plitzi/plitzi-ui/icons/PositionAbsolute";
|
|
15
|
+
import v from "@plitzi/plitzi-ui/icons/PositionFixed";
|
|
16
|
+
import y from "@plitzi/plitzi-ui/icons/PositionRelative";
|
|
17
|
+
//#region src/components/StyleInspector/categories/Position/Position.tsx
|
|
18
|
+
var b = [
|
|
19
|
+
"position",
|
|
20
|
+
"top",
|
|
21
|
+
"bottom",
|
|
22
|
+
"z-index",
|
|
23
|
+
"float",
|
|
24
|
+
"clear",
|
|
25
|
+
"left",
|
|
26
|
+
"right"
|
|
27
|
+
], x = [
|
|
28
|
+
"position",
|
|
29
|
+
"top",
|
|
30
|
+
"bottom",
|
|
31
|
+
"left",
|
|
32
|
+
"right"
|
|
33
|
+
], S = l(({ replaceTokens: l = !1, isCollapsed: S = !0, onCollapse: C }) => {
|
|
34
|
+
let { setValue: w } = u(e), { position: T, top: E, bottom: D, left: O, right: k, float: A, clear: j, "z-index": M } = t({
|
|
35
|
+
keys: b,
|
|
36
|
+
asValue: !0,
|
|
37
|
+
replaceTokens: l
|
|
38
|
+
}), N = f(() => ({
|
|
39
|
+
top: E,
|
|
40
|
+
bottom: D,
|
|
41
|
+
left: O,
|
|
42
|
+
right: k
|
|
43
|
+
}), [
|
|
44
|
+
E,
|
|
45
|
+
D,
|
|
46
|
+
O,
|
|
47
|
+
k
|
|
48
|
+
]), P = d((e) => C?.("position", e), [C]), F = d((e) => (t) => {
|
|
49
|
+
w(e === "position-path" ? void 0 : e, t);
|
|
50
|
+
}, [w]), I = f(() => [
|
|
51
|
+
{
|
|
52
|
+
value: "static",
|
|
53
|
+
icon: /* @__PURE__ */ p(h, {}),
|
|
54
|
+
description: "Static",
|
|
55
|
+
active: T === "static"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
value: "relative",
|
|
59
|
+
icon: /* @__PURE__ */ p(y, {}),
|
|
60
|
+
description: "Relative",
|
|
61
|
+
active: T === "relative"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
value: "absolute",
|
|
65
|
+
icon: /* @__PURE__ */ p(_, {}),
|
|
66
|
+
description: "Absolute",
|
|
67
|
+
active: T === "absolute"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
value: "fixed",
|
|
71
|
+
icon: /* @__PURE__ */ p(v, {}),
|
|
72
|
+
description: "Fixed",
|
|
73
|
+
active: T === "fixed"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
value: "sticky",
|
|
77
|
+
icon: /* @__PURE__ */ p(g, {}),
|
|
78
|
+
description: "Sticky",
|
|
79
|
+
active: T === "sticky"
|
|
80
|
+
}
|
|
81
|
+
], [T]);
|
|
82
|
+
return /* @__PURE__ */ p(i, {
|
|
83
|
+
title: "Position",
|
|
84
|
+
dotKeys: b,
|
|
85
|
+
isCollapsed: S,
|
|
86
|
+
onCollapse: P,
|
|
87
|
+
children: /* @__PURE__ */ m("div", {
|
|
88
|
+
className: "flex flex-col gap-2",
|
|
89
|
+
children: [
|
|
90
|
+
/* @__PURE__ */ p(r, {
|
|
91
|
+
keys: x,
|
|
92
|
+
label: "Position",
|
|
93
|
+
children: /* @__PURE__ */ p(n, {
|
|
94
|
+
onChange: F("position"),
|
|
95
|
+
type: "iconGroup",
|
|
96
|
+
items: I
|
|
97
|
+
})
|
|
98
|
+
}),
|
|
99
|
+
(T === "fixed" || T === "absolute") && /* @__PURE__ */ p(o, {
|
|
100
|
+
value: N,
|
|
101
|
+
onChange: F("position-path")
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ p(a, {
|
|
104
|
+
value: N,
|
|
105
|
+
onChange: F
|
|
106
|
+
}),
|
|
107
|
+
/* @__PURE__ */ p(c, {
|
|
108
|
+
value: A,
|
|
109
|
+
onChange: F("float")
|
|
110
|
+
}),
|
|
111
|
+
/* @__PURE__ */ p(s, {
|
|
112
|
+
value: j,
|
|
113
|
+
onChange: F("clear")
|
|
114
|
+
}),
|
|
115
|
+
/* @__PURE__ */ p(r, {
|
|
116
|
+
keys: ["z-index"],
|
|
117
|
+
label: "Z-Index",
|
|
118
|
+
children: /* @__PURE__ */ p(n, {
|
|
119
|
+
onChange: F("z-index"),
|
|
120
|
+
type: "input",
|
|
121
|
+
value: M
|
|
122
|
+
})
|
|
123
|
+
})
|
|
124
|
+
]
|
|
125
|
+
})
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
//#endregion
|
|
129
|
+
export { S as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type PositionAdvancedProps = {
|
|
3
|
+
value?: Record<StyleCategory, StyleValue | undefined>;
|
|
4
|
+
onChange?: (category: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const PositionAdvanced: ({ value, onChange }: PositionAdvancedProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default PositionAdvanced;
|
|
@@ -0,0 +1,88 @@
|
|
|
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/Position/PositionAdvanced.tsx
|
|
5
|
+
var i = [{
|
|
6
|
+
label: "PX",
|
|
7
|
+
value: "px"
|
|
8
|
+
}, {
|
|
9
|
+
label: "%",
|
|
10
|
+
value: "%"
|
|
11
|
+
}], a = ["auto"], o = ({ value: o, onChange: s }) => {
|
|
12
|
+
let { top: c, bottom: l, left: u, right: d } = o ?? {};
|
|
13
|
+
return /* @__PURE__ */ n(t, {
|
|
14
|
+
label: "",
|
|
15
|
+
keys: [
|
|
16
|
+
"top",
|
|
17
|
+
"bottom",
|
|
18
|
+
"left",
|
|
19
|
+
"right"
|
|
20
|
+
],
|
|
21
|
+
className: "justify-center",
|
|
22
|
+
children: /* @__PURE__ */ r("div", {
|
|
23
|
+
className: "grid grid-cols-3 place-items-center items-center justify-center gap-2",
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ n("div", {
|
|
26
|
+
className: "col-start-2 flex max-w-[80px] items-center justify-center",
|
|
27
|
+
children: /* @__PURE__ */ n(e, {
|
|
28
|
+
keys: ["top"],
|
|
29
|
+
value: c,
|
|
30
|
+
onChange: s?.("top"),
|
|
31
|
+
type: "metric",
|
|
32
|
+
units: i,
|
|
33
|
+
allowedWords: a,
|
|
34
|
+
className: "text-center"
|
|
35
|
+
})
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ n("div", {
|
|
38
|
+
className: "row-start-2 flex max-w-[80px] items-center justify-self-end",
|
|
39
|
+
children: /* @__PURE__ */ n(e, {
|
|
40
|
+
keys: ["left"],
|
|
41
|
+
value: u,
|
|
42
|
+
onChange: s?.("left"),
|
|
43
|
+
type: "metric",
|
|
44
|
+
units: i,
|
|
45
|
+
allowedWords: a,
|
|
46
|
+
className: "text-center"
|
|
47
|
+
})
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ r("div", {
|
|
50
|
+
className: "row-start-2 grid h-24 w-full auto-rows-fr grid-cols-3 place-items-center gap-2",
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ n("div", { className: "col-start-2 h-full w-0.5 bg-gray-300 dark:bg-zinc-600" }),
|
|
53
|
+
/* @__PURE__ */ n("div", { className: "row-start-2 h-0.5 w-full bg-gray-300 dark:bg-zinc-600" }),
|
|
54
|
+
/* @__PURE__ */ n("div", { className: "row-start-2 h-8 w-8 rounded bg-gray-300 dark:bg-zinc-600" }),
|
|
55
|
+
/* @__PURE__ */ n("div", { className: "row-start-2 h-0.5 w-full bg-gray-300 dark:bg-zinc-600" }),
|
|
56
|
+
/* @__PURE__ */ n("div", { className: "col-start-2 row-start-3 h-full w-0.5 bg-gray-300 dark:bg-zinc-600" })
|
|
57
|
+
]
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ n("div", {
|
|
60
|
+
className: "row-start-2 flex max-w-[80px] items-center justify-self-start",
|
|
61
|
+
children: /* @__PURE__ */ n(e, {
|
|
62
|
+
keys: ["right"],
|
|
63
|
+
value: d,
|
|
64
|
+
onChange: s?.("right"),
|
|
65
|
+
type: "metric",
|
|
66
|
+
units: i,
|
|
67
|
+
allowedWords: a,
|
|
68
|
+
className: "text-center"
|
|
69
|
+
})
|
|
70
|
+
}),
|
|
71
|
+
/* @__PURE__ */ n("div", {
|
|
72
|
+
className: "col-start-2 row-start-3 flex max-w-[80px] items-center justify-center",
|
|
73
|
+
children: /* @__PURE__ */ n(e, {
|
|
74
|
+
keys: ["bottom"],
|
|
75
|
+
value: l,
|
|
76
|
+
onChange: s?.("bottom"),
|
|
77
|
+
type: "metric",
|
|
78
|
+
units: i,
|
|
79
|
+
allowedWords: a,
|
|
80
|
+
className: "text-center"
|
|
81
|
+
})
|
|
82
|
+
})
|
|
83
|
+
]
|
|
84
|
+
})
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
//#endregion
|
|
88
|
+
export { o as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type PositionAdvancedButtonsProps = {
|
|
3
|
+
value?: Record<StyleCategory, StyleValue | undefined>;
|
|
4
|
+
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const PositionAdvancedButtons: ({ value, onChange }: PositionAdvancedButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default PositionAdvancedButtons;
|
|
@@ -0,0 +1,132 @@
|
|
|
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/PositionAll";
|
|
6
|
+
import a from "@plitzi/plitzi-ui/icons/PositionBottom";
|
|
7
|
+
import o from "@plitzi/plitzi-ui/icons/PositionBottomLeft";
|
|
8
|
+
import s from "@plitzi/plitzi-ui/icons/PositionBottomRight";
|
|
9
|
+
import c from "@plitzi/plitzi-ui/icons/PositionLeft";
|
|
10
|
+
import l from "@plitzi/plitzi-ui/icons/PositionRight";
|
|
11
|
+
import u from "@plitzi/plitzi-ui/icons/PositionTop";
|
|
12
|
+
import d from "@plitzi/plitzi-ui/icons/PositionTopLeft";
|
|
13
|
+
import f from "@plitzi/plitzi-ui/icons/PositionTopRight";
|
|
14
|
+
//#region src/components/StyleInspector/categories/Position/PositionAdvancedButtons.tsx
|
|
15
|
+
var p = ({ value: p, onChange: m }) => {
|
|
16
|
+
let { top: h, bottom: g, left: _, right: v } = p ?? {};
|
|
17
|
+
return /* @__PURE__ */ r(t, {
|
|
18
|
+
label: "",
|
|
19
|
+
children: /* @__PURE__ */ r(e, {
|
|
20
|
+
onChange: m,
|
|
21
|
+
type: "iconGroup",
|
|
22
|
+
items: n(() => [
|
|
23
|
+
{
|
|
24
|
+
value: {
|
|
25
|
+
top: "0%",
|
|
26
|
+
left: "0%",
|
|
27
|
+
bottom: "auto",
|
|
28
|
+
right: "auto"
|
|
29
|
+
},
|
|
30
|
+
icon: /* @__PURE__ */ r(d, {}),
|
|
31
|
+
description: "Top Left",
|
|
32
|
+
active: h === "0%" && _ === "0%" && g === "auto" && v === "auto"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
value: {
|
|
36
|
+
top: "0%",
|
|
37
|
+
left: "auto",
|
|
38
|
+
bottom: "auto",
|
|
39
|
+
right: "0%"
|
|
40
|
+
},
|
|
41
|
+
icon: /* @__PURE__ */ r(f, {}),
|
|
42
|
+
description: "Top Right",
|
|
43
|
+
active: h === "0%" && _ === "auto" && g === "auto" && v === "0%"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
value: {
|
|
47
|
+
top: "auto",
|
|
48
|
+
left: "0%",
|
|
49
|
+
bottom: "0%",
|
|
50
|
+
right: "auto"
|
|
51
|
+
},
|
|
52
|
+
icon: /* @__PURE__ */ r(o, {}),
|
|
53
|
+
description: "Bottom Left",
|
|
54
|
+
active: h === "auto" && _ === "0%" && g === "0%" && v === "auto"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
value: {
|
|
58
|
+
top: "auto",
|
|
59
|
+
left: "auto",
|
|
60
|
+
bottom: "0%",
|
|
61
|
+
right: "0%"
|
|
62
|
+
},
|
|
63
|
+
icon: /* @__PURE__ */ r(s, {}),
|
|
64
|
+
description: "Bottom Right",
|
|
65
|
+
active: h === "0%" && _ === "0%" && g === "0%" && v === "auto"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
value: {
|
|
69
|
+
top: "0%",
|
|
70
|
+
left: "0%",
|
|
71
|
+
bottom: "0%",
|
|
72
|
+
right: "auto"
|
|
73
|
+
},
|
|
74
|
+
icon: /* @__PURE__ */ r(c, {}),
|
|
75
|
+
description: "Left",
|
|
76
|
+
active: h === "0%" && _ === "0%" && g === "0%" && v === "auto"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
value: {
|
|
80
|
+
top: "0%",
|
|
81
|
+
left: "auto",
|
|
82
|
+
bottom: "0%",
|
|
83
|
+
right: "0%"
|
|
84
|
+
},
|
|
85
|
+
icon: /* @__PURE__ */ r(l, {}),
|
|
86
|
+
description: "Right",
|
|
87
|
+
active: h === "0%" && _ === "auto" && g === "0%" && v === "0%"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
value: {
|
|
91
|
+
top: "auto",
|
|
92
|
+
left: "0%",
|
|
93
|
+
bottom: "0%",
|
|
94
|
+
right: "0%"
|
|
95
|
+
},
|
|
96
|
+
icon: /* @__PURE__ */ r(a, {}),
|
|
97
|
+
description: "Bottom",
|
|
98
|
+
active: h === "auto" && _ === "0%" && g === "0%" && v === "0%"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
value: {
|
|
102
|
+
top: "0%",
|
|
103
|
+
left: "0%",
|
|
104
|
+
bottom: "auto",
|
|
105
|
+
right: "0%"
|
|
106
|
+
},
|
|
107
|
+
icon: /* @__PURE__ */ r(u, {}),
|
|
108
|
+
description: "Top",
|
|
109
|
+
active: h === "0%" && _ === "0%" && g === "auto" && v === "0%"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
value: {
|
|
113
|
+
top: "0%",
|
|
114
|
+
left: "0%",
|
|
115
|
+
bottom: "0%",
|
|
116
|
+
right: "0%"
|
|
117
|
+
},
|
|
118
|
+
icon: /* @__PURE__ */ r(i, {}),
|
|
119
|
+
description: "Full",
|
|
120
|
+
active: h === "0%" && _ === "0%" && g === "0%" && v === "0%"
|
|
121
|
+
}
|
|
122
|
+
], [
|
|
123
|
+
h,
|
|
124
|
+
_,
|
|
125
|
+
g,
|
|
126
|
+
v
|
|
127
|
+
])
|
|
128
|
+
})
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
//#endregion
|
|
132
|
+
export { p as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type PositionClearProps = {
|
|
3
|
+
value?: StyleValue;
|
|
4
|
+
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const PositionClear: ({ value, onChange }: PositionClearProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default PositionClear;
|
|
@@ -0,0 +1,45 @@
|
|
|
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/ClearBoth";
|
|
7
|
+
import o from "@plitzi/plitzi-ui/icons/ClearLeft";
|
|
8
|
+
import s from "@plitzi/plitzi-ui/icons/ClearRight";
|
|
9
|
+
//#region src/components/StyleInspector/categories/Position/PositionClear.tsx
|
|
10
|
+
var c = ({ value: c, onChange: l }) => /* @__PURE__ */ r(t, {
|
|
11
|
+
label: "Clear",
|
|
12
|
+
keys: ["clear"],
|
|
13
|
+
children: /* @__PURE__ */ r(e, {
|
|
14
|
+
onChange: l,
|
|
15
|
+
type: "iconGroup",
|
|
16
|
+
items: n(() => [
|
|
17
|
+
{
|
|
18
|
+
value: "none",
|
|
19
|
+
icon: /* @__PURE__ */ r(i, {}),
|
|
20
|
+
description: "Static",
|
|
21
|
+
active: c === "none"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
value: "left",
|
|
25
|
+
icon: /* @__PURE__ */ r(o, {}),
|
|
26
|
+
description: "Clear Left",
|
|
27
|
+
active: c === "left"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
value: "right",
|
|
31
|
+
icon: /* @__PURE__ */ r(s, {}),
|
|
32
|
+
description: "Clear Right",
|
|
33
|
+
active: c === "right"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
value: "both",
|
|
37
|
+
icon: /* @__PURE__ */ r(a, {}),
|
|
38
|
+
description: "Clear Both",
|
|
39
|
+
active: c === "both"
|
|
40
|
+
}
|
|
41
|
+
], [c])
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
export { c as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type PositionFloatProps = {
|
|
3
|
+
value?: StyleValue;
|
|
4
|
+
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const PositionFloat: ({ value, onChange }: PositionFloatProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default PositionFloat;
|
|
@@ -0,0 +1,38 @@
|
|
|
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/FloatLeft";
|
|
7
|
+
import o from "@plitzi/plitzi-ui/icons/FloatRight";
|
|
8
|
+
//#region src/components/StyleInspector/categories/Position/PositionFloat.tsx
|
|
9
|
+
var s = ({ value: s, onChange: c }) => /* @__PURE__ */ r(t, {
|
|
10
|
+
label: "Float",
|
|
11
|
+
keys: ["float"],
|
|
12
|
+
children: /* @__PURE__ */ r(e, {
|
|
13
|
+
onChange: c,
|
|
14
|
+
type: "iconGroup",
|
|
15
|
+
items: n(() => [
|
|
16
|
+
{
|
|
17
|
+
value: "none",
|
|
18
|
+
icon: /* @__PURE__ */ r(i, {}),
|
|
19
|
+
description: "Static",
|
|
20
|
+
active: s === "none"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
value: "left",
|
|
24
|
+
icon: /* @__PURE__ */ r(a, {}),
|
|
25
|
+
description: "Float Left",
|
|
26
|
+
active: s === "left"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
value: "right",
|
|
30
|
+
icon: /* @__PURE__ */ r(o, {}),
|
|
31
|
+
description: "Float Right",
|
|
32
|
+
active: s === "right"
|
|
33
|
+
}
|
|
34
|
+
], [s])
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { s as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StyleItem } from '@plitzi/sdk-shared';
|
|
2
|
+
export type VariablesProps = {
|
|
3
|
+
selectors?: StyleItem[];
|
|
4
|
+
isCollapsed?: boolean;
|
|
5
|
+
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const RawStyle: ({ selectors, isCollapsed, onCollapse }: VariablesProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default RawStyle;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { processSelectors as e } from "../../../../helpers/processSelector.mjs";
|
|
2
|
+
import t from "../../components/CategoryContainer/index.mjs";
|
|
3
|
+
import n from "clsx";
|
|
4
|
+
import { use as r, useCallback as i, useMemo as a } from "react";
|
|
5
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
6
|
+
import s from "@plitzi/plitzi-ui/CodeMirror";
|
|
7
|
+
import { ThemeContext as c } from "@plitzi/sdk-shared/theme/ThemeProvider";
|
|
8
|
+
//#region src/components/StyleInspector/categories/RawStyle/RawStyle.tsx
|
|
9
|
+
var l = ({ selectors: l, isCollapsed: u, onCollapse: d }) => {
|
|
10
|
+
let { theme: f } = r(c), p = a(() => e(l ?? [], !1).join("\n\n"), [l]), m = i((e) => d?.("rawStyle", e), [d]);
|
|
11
|
+
return /* @__PURE__ */ o(t, {
|
|
12
|
+
className: u ? "" : "grow",
|
|
13
|
+
classNameContent: n("p-0", { grow: !u }),
|
|
14
|
+
title: "Raw Style",
|
|
15
|
+
isCollapsed: u,
|
|
16
|
+
onCollapse: m,
|
|
17
|
+
children: /* @__PURE__ */ o(s, {
|
|
18
|
+
value: p,
|
|
19
|
+
className: "h-full",
|
|
20
|
+
theme: f === "dark" ? "dark" : "light",
|
|
21
|
+
lineWrapping: !0,
|
|
22
|
+
readOnly: !0
|
|
23
|
+
})
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { l as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type SizeProps = {
|
|
2
|
+
replaceTokens?: boolean;
|
|
3
|
+
isCollapsed?: boolean;
|
|
4
|
+
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: SizeProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import e from "../../StyleInspectorContext.mjs";
|
|
2
|
+
import t from "../../hooks/useInspectorValues.mjs";
|
|
3
|
+
import n from "../../components/CategoryOption/index.mjs";
|
|
4
|
+
import r from "../../components/CategorySection/index.mjs";
|
|
5
|
+
import i from "../../components/CategoryContainer/index.mjs";
|
|
6
|
+
import a from "./SizeFit.mjs";
|
|
7
|
+
import o from "./SizeOverflow.mjs";
|
|
8
|
+
import s from "./SizePosition.mjs";
|
|
9
|
+
import { memo as c, use as l, useCallback as u } from "react";
|
|
10
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
11
|
+
//#region src/components/StyleInspector/categories/Size/Size.tsx
|
|
12
|
+
var p = [
|
|
13
|
+
"width",
|
|
14
|
+
"height",
|
|
15
|
+
"min-width",
|
|
16
|
+
"min-height",
|
|
17
|
+
"max-width",
|
|
18
|
+
"max-height",
|
|
19
|
+
"overflow",
|
|
20
|
+
"object-fit",
|
|
21
|
+
"object-position"
|
|
22
|
+
], m = ["width", "height"], h = ["min-width", "min-height"], g = ["max-width", "max-height"], _ = c(({ replaceTokens: c = !1, isCollapsed: _ = !0, onCollapse: v }) => {
|
|
23
|
+
let { setValue: y } = l(e), { width: b, height: x, "min-width": S, "min-height": C, "max-width": w, "max-height": T, overflow: E, "object-position": D, "object-fit": O } = t({
|
|
24
|
+
keys: p,
|
|
25
|
+
asValue: !0,
|
|
26
|
+
replaceTokens: c
|
|
27
|
+
}), k = u((e) => v?.("size", e), [v]), A = u((e) => (t) => y(e, t), [y]);
|
|
28
|
+
return /* @__PURE__ */ f(i, {
|
|
29
|
+
title: "Size",
|
|
30
|
+
dotKeys: p,
|
|
31
|
+
isCollapsed: _,
|
|
32
|
+
onCollapse: k,
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ f(r, {
|
|
35
|
+
label: "Size",
|
|
36
|
+
keys: m,
|
|
37
|
+
children: [/* @__PURE__ */ d(n, {
|
|
38
|
+
keys: ["width"],
|
|
39
|
+
preffix: "W",
|
|
40
|
+
value: b,
|
|
41
|
+
onChange: A("width"),
|
|
42
|
+
type: "metric"
|
|
43
|
+
}), /* @__PURE__ */ d(n, {
|
|
44
|
+
keys: ["height"],
|
|
45
|
+
preffix: "H",
|
|
46
|
+
value: x,
|
|
47
|
+
onChange: A("height"),
|
|
48
|
+
type: "metric"
|
|
49
|
+
})]
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ f(r, {
|
|
52
|
+
label: "Min Size",
|
|
53
|
+
keys: h,
|
|
54
|
+
children: [/* @__PURE__ */ d(n, {
|
|
55
|
+
keys: ["min-width"],
|
|
56
|
+
preffix: "W",
|
|
57
|
+
value: S,
|
|
58
|
+
onChange: A("min-width"),
|
|
59
|
+
type: "metric"
|
|
60
|
+
}), /* @__PURE__ */ d(n, {
|
|
61
|
+
keys: ["min-height"],
|
|
62
|
+
preffix: "H",
|
|
63
|
+
value: C,
|
|
64
|
+
onChange: A("min-height"),
|
|
65
|
+
type: "metric"
|
|
66
|
+
})]
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ f(r, {
|
|
69
|
+
label: "Max Size",
|
|
70
|
+
keys: g,
|
|
71
|
+
children: [/* @__PURE__ */ d(n, {
|
|
72
|
+
keys: ["max-width"],
|
|
73
|
+
preffix: "W",
|
|
74
|
+
value: w,
|
|
75
|
+
onChange: A("max-width"),
|
|
76
|
+
type: "metric"
|
|
77
|
+
}), /* @__PURE__ */ d(n, {
|
|
78
|
+
keys: ["max-height"],
|
|
79
|
+
preffix: "H",
|
|
80
|
+
value: T,
|
|
81
|
+
onChange: A("max-height"),
|
|
82
|
+
type: "metric"
|
|
83
|
+
})]
|
|
84
|
+
}),
|
|
85
|
+
/* @__PURE__ */ d(o, {
|
|
86
|
+
value: E,
|
|
87
|
+
onChange: A
|
|
88
|
+
}),
|
|
89
|
+
/* @__PURE__ */ d(s, {
|
|
90
|
+
value: D,
|
|
91
|
+
onChange: A
|
|
92
|
+
}),
|
|
93
|
+
/* @__PURE__ */ d(a, {
|
|
94
|
+
value: O,
|
|
95
|
+
onChange: A
|
|
96
|
+
})
|
|
97
|
+
]
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
//#endregion
|
|
101
|
+
export { _ as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type SizeFitProps = {
|
|
3
|
+
value?: StyleValue;
|
|
4
|
+
onChange?: (type: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const SizeFit: ({ value, onChange }: SizeFitProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SizeFit;
|