@plitzi/sdk-style 0.32.0 → 0.32.2
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 +20 -0
- package/dist/BuilderStyleContextProvider.d.ts +1 -1
- package/dist/BuilderStyleContextProvider.mjs +47 -45
- package/dist/SdkStyleContextProvider.d.ts +1 -1
- package/dist/SdkStyleContextProvider.mjs +3 -3
- package/dist/StyleAdvanceEditor.d.ts +1 -1
- package/dist/StyleAdvanceEditor.mjs +20 -20
- package/dist/StyleMap/helpers/isValueValid.mjs +1 -1
- package/dist/StyleMap/helpers/utils.mjs +1 -1
- package/dist/components/InputEasing/BezierEasing.mjs +26 -26
- package/dist/components/InputEasing/Curve.d.ts +1 -1
- package/dist/components/InputEasing/Grid.d.ts +1 -1
- package/dist/components/InputEasing/Grid.mjs +7 -1
- package/dist/components/InputEasing/InputEasing.d.ts +1 -1
- package/dist/components/InputEasing/InputEasingButton.d.ts +1 -1
- package/dist/components/InputEasing/InputEasingList.d.ts +1 -1
- package/dist/components/InputEasing/Progress.d.ts +1 -1
- package/dist/components/Selector/Selector.d.ts +1 -1
- package/dist/components/Selector/SelectorItem/ItemOptions.d.ts +1 -1
- package/dist/components/Selector/SelectorItem/SelectorItem.d.ts +1 -1
- package/dist/components/Selector/SelectorSuggestions/SelectorSuggestions.d.ts +1 -1
- package/dist/components/Selector/SelectorSuggestions/SuggestionsCreator.d.ts +1 -1
- package/dist/components/Selector/SelectorSuggestions/SuggestionsList.d.ts +1 -1
- package/dist/components/StyleInspector/Inspector.d.ts +1 -1
- package/dist/components/StyleInspector/StyleInspector.d.ts +1 -1
- package/dist/components/StyleInspector/StyleInspector.mjs +66 -66
- package/dist/components/StyleInspector/StyleInspectorProvider.d.ts +1 -1
- package/dist/components/StyleInspector/StyleInspectorProvider.mjs +24 -21
- package/dist/components/StyleInspector/categories/Background/Background.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/BackgroundLayer.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/components/BackgroundPosition/BackgroundPosition.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/BackgroundSize.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/components/BackgroundTile/BackgroundTile.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientPreviewBar.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopEditor.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopTrack.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/helpers/backgroundParser.mjs +1 -1
- package/dist/components/StyleInspector/categories/Background/modes/ConicGradientMode.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/modes/ImageMode.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/modes/LinearGradientMode.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/modes/RadialGradientMode.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Border/Border.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Border/BorderColor.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Border/BorderPlacements.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Border/BorderRadius.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Border/BorderStyle.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Border/BorderWidth.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/Display.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/DisplayElements.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/DisplayFlex.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/DisplayFlexAlignContent.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/DisplayFlexAlignItems.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/DisplayFlexDirection.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/DisplayFlexJustify.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/DisplayGap.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/DisplayGridGap.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/DisplayGridTemplate.d.ts +1 -1
- package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayAlignSelf.d.ts +1 -1
- package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayFlexChild.d.ts +1 -1
- package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayOrder.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadow.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadowItem.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Effects/Effects.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Effects/Filters/Filter.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Effects/Filters/FilterItem.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Effects/Transform/Transform.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Effects/Transform/TransformItem.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Effects/Transition/Transition.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Effects/Transition/TransitionItem.d.ts +1 -1
- package/dist/components/StyleInspector/categories/List/List.d.ts +1 -1
- package/dist/components/StyleInspector/categories/ListItem/ListItem.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Position/Position.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Position/PositionAdvanced.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Position/PositionAdvancedButtons.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Position/PositionClear.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Position/PositionFloat.d.ts +1 -1
- package/dist/components/StyleInspector/categories/RawStyle/RawStyle.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Size/Size.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Size/SizeFit.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Size/SizeOverflow.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Size/SizePosition.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Spacing/Spacing.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Spacing/SpacingEditor.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Spacing/SpacingMargin.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Spacing/SpacingNumber.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Spacing/SpacingPadding.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Typography/Typography.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyAlign.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyFont.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyStyle.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyTextShadow.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyTextShadowItem.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyTransform.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Variables/Variables.d.ts +1 -1
- package/dist/components/StyleInspector/components/CategoryContainer/CategoryContainer.d.ts +1 -1
- package/dist/components/StyleInspector/components/CategoryOption/CategoryOption.d.ts +1 -1
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionColor.d.ts +1 -1
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionIconGroup.d.ts +1 -1
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionInput.d.ts +1 -1
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionMetricInput.d.ts +1 -1
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionSelect.d.ts +1 -1
- package/dist/components/StyleInspector/components/CategorySection/CategorySection.d.ts +1 -1
- package/dist/components/StyleInspector/components/InspectorDots/InspectorDots.d.ts +1 -1
- package/dist/components/StyleInspector/components/InspectorLabel/InspectorLabel.d.ts +1 -1
- package/dist/components/StyleInspector/hooks/useStyleBinding.mjs +4 -4
- package/dist/components/StyleInspector/hooks/useStyleInherit.mjs +5 -5
- package/dist/components/StyleManager/ManagerSelector.d.ts +1 -1
- package/dist/components/StyleManager/StyleManager.d.ts +1 -1
- package/dist/components/StyleManager/StyleManager.mjs +13 -13
- package/dist/components/StyleManager/StyleSelectorTag.d.ts +1 -1
- package/dist/helpers/processSelectorAttributes.mjs +1 -1
- package/dist/models/SelectorForm/SelectorForm.d.ts +1 -1
- package/package.json +7 -7
|
@@ -4,5 +4,5 @@ export type BoxShadowItemProps = {
|
|
|
4
4
|
onChange?: (value: string) => void;
|
|
5
5
|
onRemove?: (e: MouseEvent) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const BoxShadowItem: ({ value, onChange, onRemove }: BoxShadowItemProps) => import("react
|
|
7
|
+
declare const BoxShadowItem: ({ value, onChange, onRemove }: BoxShadowItemProps) => import("react").JSX.Element;
|
|
8
8
|
export default BoxShadowItem;
|
|
@@ -3,5 +3,5 @@ export type EffectsProps = {
|
|
|
3
3
|
isCollapsed?: boolean;
|
|
4
4
|
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: EffectsProps) => import("react
|
|
6
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: EffectsProps) => import("react").JSX.Element>;
|
|
7
7
|
export default _default;
|
|
@@ -3,5 +3,5 @@ export type FilterProps = {
|
|
|
3
3
|
value?: StyleValue;
|
|
4
4
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const Filter: ({ value, onChange }: FilterProps) => import("react
|
|
6
|
+
declare const Filter: ({ value, onChange }: FilterProps) => import("react").JSX.Element;
|
|
7
7
|
export default Filter;
|
|
@@ -4,5 +4,5 @@ export type FilterItemProps = {
|
|
|
4
4
|
onChange?: (value: string) => void;
|
|
5
5
|
onRemove?: (e: MouseEvent) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const FilterItem: ({ value, onRemove, onChange }: FilterItemProps) => import("react
|
|
7
|
+
declare const FilterItem: ({ value, onRemove, onChange }: FilterItemProps) => import("react").JSX.Element;
|
|
8
8
|
export default FilterItem;
|
|
@@ -3,5 +3,5 @@ export type TransformProps = {
|
|
|
3
3
|
value?: StyleValue;
|
|
4
4
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const Transform: ({ value, onChange }: TransformProps) => import("react
|
|
6
|
+
declare const Transform: ({ value, onChange }: TransformProps) => import("react").JSX.Element;
|
|
7
7
|
export default Transform;
|
|
@@ -4,5 +4,5 @@ export type TransformItemProps = {
|
|
|
4
4
|
onChange?: (value: string) => void;
|
|
5
5
|
onRemove?: (e: MouseEvent) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const TransformItem: ({ value, onRemove, onChange }: TransformItemProps) => import("react
|
|
7
|
+
declare const TransformItem: ({ value, onRemove, onChange }: TransformItemProps) => import("react").JSX.Element;
|
|
8
8
|
export default TransformItem;
|
|
@@ -3,5 +3,5 @@ export type TransitionProps = {
|
|
|
3
3
|
value?: StyleValue;
|
|
4
4
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const Transition: ({ value, onChange }: TransitionProps) => import("react
|
|
6
|
+
declare const Transition: ({ value, onChange }: TransitionProps) => import("react").JSX.Element;
|
|
7
7
|
export default Transition;
|
|
@@ -4,5 +4,5 @@ export type TransitionItemProps = {
|
|
|
4
4
|
onChange?: (value: string) => void;
|
|
5
5
|
onRemove?: (e: MouseEvent) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const TransitionItem: ({ value, onRemove, onChange }: TransitionItemProps) => import("react
|
|
7
|
+
declare const TransitionItem: ({ value, onRemove, onChange }: TransitionItemProps) => import("react").JSX.Element;
|
|
8
8
|
export default TransitionItem;
|
|
@@ -3,5 +3,5 @@ export type ListProps = {
|
|
|
3
3
|
isCollapsed?: boolean;
|
|
4
4
|
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: ListProps) => import("react
|
|
6
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: ListProps) => import("react").JSX.Element>;
|
|
7
7
|
export default _default;
|
|
@@ -3,5 +3,5 @@ export type ListItemProps = {
|
|
|
3
3
|
isCollapsed?: boolean;
|
|
4
4
|
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: ListItemProps) => import("react
|
|
6
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: ListItemProps) => import("react").JSX.Element>;
|
|
7
7
|
export default _default;
|
|
@@ -3,5 +3,5 @@ export type PositionProps = {
|
|
|
3
3
|
isCollapsed?: boolean;
|
|
4
4
|
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: PositionProps) => import("react
|
|
6
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: PositionProps) => import("react").JSX.Element>;
|
|
7
7
|
export default _default;
|
|
@@ -3,5 +3,5 @@ export type PositionAdvancedProps = {
|
|
|
3
3
|
value?: Record<StyleCategory, StyleValue | undefined>;
|
|
4
4
|
onChange?: (category: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const PositionAdvanced: ({ value, onChange }: PositionAdvancedProps) => import("react
|
|
6
|
+
declare const PositionAdvanced: ({ value, onChange }: PositionAdvancedProps) => import("react").JSX.Element;
|
|
7
7
|
export default PositionAdvanced;
|
|
@@ -3,5 +3,5 @@ export type PositionAdvancedButtonsProps = {
|
|
|
3
3
|
value?: Record<StyleCategory, StyleValue | undefined>;
|
|
4
4
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const PositionAdvancedButtons: ({ value, onChange }: PositionAdvancedButtonsProps) => import("react
|
|
6
|
+
declare const PositionAdvancedButtons: ({ value, onChange }: PositionAdvancedButtonsProps) => import("react").JSX.Element;
|
|
7
7
|
export default PositionAdvancedButtons;
|
|
@@ -3,5 +3,5 @@ export type PositionClearProps = {
|
|
|
3
3
|
value?: StyleValue;
|
|
4
4
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const PositionClear: ({ value, onChange }: PositionClearProps) => import("react
|
|
6
|
+
declare const PositionClear: ({ value, onChange }: PositionClearProps) => import("react").JSX.Element;
|
|
7
7
|
export default PositionClear;
|
|
@@ -3,5 +3,5 @@ export type PositionFloatProps = {
|
|
|
3
3
|
value?: StyleValue;
|
|
4
4
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const PositionFloat: ({ value, onChange }: PositionFloatProps) => import("react
|
|
6
|
+
declare const PositionFloat: ({ value, onChange }: PositionFloatProps) => import("react").JSX.Element;
|
|
7
7
|
export default PositionFloat;
|
|
@@ -4,5 +4,5 @@ export type VariablesProps = {
|
|
|
4
4
|
isCollapsed?: boolean;
|
|
5
5
|
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const RawStyle: ({ selectors, isCollapsed, onCollapse }: VariablesProps) => import("react
|
|
7
|
+
declare const RawStyle: ({ selectors, isCollapsed, onCollapse }: VariablesProps) => import("react").JSX.Element;
|
|
8
8
|
export default RawStyle;
|
|
@@ -3,5 +3,5 @@ export type SizeProps = {
|
|
|
3
3
|
isCollapsed?: boolean;
|
|
4
4
|
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: SizeProps) => import("react
|
|
6
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: SizeProps) => import("react").JSX.Element>;
|
|
7
7
|
export default _default;
|
|
@@ -3,5 +3,5 @@ export type SizeFitProps = {
|
|
|
3
3
|
value?: StyleValue;
|
|
4
4
|
onChange?: (type: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const SizeFit: ({ value, onChange }: SizeFitProps) => import("react
|
|
6
|
+
declare const SizeFit: ({ value, onChange }: SizeFitProps) => import("react").JSX.Element;
|
|
7
7
|
export default SizeFit;
|
|
@@ -3,5 +3,5 @@ export type SizeOverflowProps = {
|
|
|
3
3
|
value?: StyleValue;
|
|
4
4
|
onChange?: (type: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const SizeOverflow: ({ value, onChange }: SizeOverflowProps) => import("react
|
|
6
|
+
declare const SizeOverflow: ({ value, onChange }: SizeOverflowProps) => import("react").JSX.Element;
|
|
7
7
|
export default SizeOverflow;
|
|
@@ -3,5 +3,5 @@ export type SizePositionProps = {
|
|
|
3
3
|
value?: StyleValue;
|
|
4
4
|
onChange?: (type: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const SizePosition: ({ value, onChange }: SizePositionProps) => import("react
|
|
6
|
+
declare const SizePosition: ({ value, onChange }: SizePositionProps) => import("react").JSX.Element;
|
|
7
7
|
export default SizePosition;
|
|
@@ -3,5 +3,5 @@ export type SpacingProps = {
|
|
|
3
3
|
isCollapsed?: boolean;
|
|
4
4
|
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: SpacingProps) => import("react
|
|
6
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: SpacingProps) => import("react").JSX.Element>;
|
|
7
7
|
export default _default;
|
|
@@ -4,5 +4,5 @@ export type SpacingEditorProps = {
|
|
|
4
4
|
value?: StyleValue;
|
|
5
5
|
onChange?: (type: StyleCategory, value: StyleValue) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const SpacingEditor: ({ fragmentSelected, value, onChange }: SpacingEditorProps) => import("react
|
|
7
|
+
declare const SpacingEditor: ({ fragmentSelected, value, onChange }: SpacingEditorProps) => import("react").JSX.Element;
|
|
8
8
|
export default SpacingEditor;
|
|
@@ -15,5 +15,5 @@ export type SpacingMarginProps = {
|
|
|
15
15
|
onLinkSelected?: () => void;
|
|
16
16
|
onSelectFragment?: (fragment?: StyleCategory) => void;
|
|
17
17
|
};
|
|
18
|
-
declare const SpacingMargin: ({ fragmentSelected, values, isLinked, onLinkSelected, onSelectFragment }: SpacingMarginProps) => import("react
|
|
18
|
+
declare const SpacingMargin: ({ fragmentSelected, values, isLinked, onLinkSelected, onSelectFragment }: SpacingMarginProps) => import("react").JSX.Element;
|
|
19
19
|
export default SpacingMargin;
|
|
@@ -4,5 +4,5 @@ export type SpacingNumberProps = {
|
|
|
4
4
|
active?: boolean;
|
|
5
5
|
onClick?: () => void;
|
|
6
6
|
};
|
|
7
|
-
declare const SpacingNumber: ({ value, active, onClick }: SpacingNumberProps) => import("react
|
|
7
|
+
declare const SpacingNumber: ({ value, active, onClick }: SpacingNumberProps) => import("react").JSX.Element;
|
|
8
8
|
export default SpacingNumber;
|
|
@@ -11,5 +11,5 @@ export type SpacingPaddingProps = {
|
|
|
11
11
|
onLinkSelected?: () => void;
|
|
12
12
|
onSelectFragment?: (fragment?: StyleCategory) => void;
|
|
13
13
|
};
|
|
14
|
-
declare const SpacingPadding: ({ fragmentSelected, values, isLinked, onLinkSelected, onSelectFragment }: SpacingPaddingProps) => import("react
|
|
14
|
+
declare const SpacingPadding: ({ fragmentSelected, values, isLinked, onLinkSelected, onSelectFragment }: SpacingPaddingProps) => import("react").JSX.Element;
|
|
15
15
|
export default SpacingPadding;
|
|
@@ -7,5 +7,5 @@ export type TypographyProps = {
|
|
|
7
7
|
}[];
|
|
8
8
|
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
9
9
|
};
|
|
10
|
-
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, fonts, onCollapse }: TypographyProps) => import("react
|
|
10
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, fonts, onCollapse }: TypographyProps) => import("react").JSX.Element>;
|
|
11
11
|
export default _default;
|
|
@@ -3,5 +3,5 @@ export type TypographyAlignProps = {
|
|
|
3
3
|
partialValue?: StyleValue;
|
|
4
4
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const TypographyAlign: ({ partialValue, onChange }: TypographyAlignProps) => import("react
|
|
6
|
+
declare const TypographyAlign: ({ partialValue, onChange }: TypographyAlignProps) => import("react").JSX.Element;
|
|
7
7
|
export default TypographyAlign;
|
|
@@ -6,5 +6,5 @@ export type TypographyFontProps = {
|
|
|
6
6
|
}[];
|
|
7
7
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
8
8
|
};
|
|
9
|
-
declare const TypographyFont: ({ partialValue, fonts, onChange }: TypographyFontProps) => import("react
|
|
9
|
+
declare const TypographyFont: ({ partialValue, fonts, onChange }: TypographyFontProps) => import("react").JSX.Element;
|
|
10
10
|
export default TypographyFont;
|
|
@@ -4,5 +4,5 @@ export type TypographyStyleProps = {
|
|
|
4
4
|
textDecoration?: StyleValue;
|
|
5
5
|
onChange?: (category: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const TypographyStyle: ({ fontStyle, textDecoration, onChange }: TypographyStyleProps) => import("react
|
|
7
|
+
declare const TypographyStyle: ({ fontStyle, textDecoration, onChange }: TypographyStyleProps) => import("react").JSX.Element;
|
|
8
8
|
export default TypographyStyle;
|
|
@@ -3,5 +3,5 @@ export type TypographyTextShadowProps = {
|
|
|
3
3
|
value?: StyleValue;
|
|
4
4
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const TypographyTextShadow: ({ value, onChange }: TypographyTextShadowProps) => import("react
|
|
6
|
+
declare const TypographyTextShadow: ({ value, onChange }: TypographyTextShadowProps) => import("react").JSX.Element;
|
|
7
7
|
export default TypographyTextShadow;
|
|
@@ -4,5 +4,5 @@ export type TypographyTextShadowItemProps = {
|
|
|
4
4
|
onChange?: (value: string) => void;
|
|
5
5
|
onRemove?: (e: MouseEvent) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const TypographyTextShadowItem: ({ value, onRemove, onChange }: TypographyTextShadowItemProps) => import("react
|
|
7
|
+
declare const TypographyTextShadowItem: ({ value, onRemove, onChange }: TypographyTextShadowItemProps) => import("react").JSX.Element;
|
|
8
8
|
export default TypographyTextShadowItem;
|
|
@@ -4,5 +4,5 @@ export type TypographyTransformProps = {
|
|
|
4
4
|
direction?: StyleValue;
|
|
5
5
|
onChange?: (category: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const TypographyTransform: ({ textTransform, direction, onChange }: TypographyTransformProps) => import("react
|
|
7
|
+
declare const TypographyTransform: ({ textTransform, direction, onChange }: TypographyTransformProps) => import("react").JSX.Element;
|
|
8
8
|
export default TypographyTransform;
|
|
@@ -3,5 +3,5 @@ export type VariablesProps = {
|
|
|
3
3
|
isCollapsed?: boolean;
|
|
4
4
|
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const Variables: ({ isCollapsed, onCollapse }: VariablesProps) => import("react
|
|
6
|
+
declare const Variables: ({ isCollapsed, onCollapse }: VariablesProps) => import("react").JSX.Element | undefined;
|
|
7
7
|
export default Variables;
|
|
@@ -9,5 +9,5 @@ export type CategoryContainerProps = {
|
|
|
9
9
|
isCollapsed?: boolean;
|
|
10
10
|
onCollapse: (collapsed: boolean) => void;
|
|
11
11
|
};
|
|
12
|
-
declare const CategoryContainer: ({ className, classNameContent, children, title, dotKeys, isCollapsed, onCollapse }: CategoryContainerProps) => import("react
|
|
12
|
+
declare const CategoryContainer: ({ className, classNameContent, children, title, dotKeys, isCollapsed, onCollapse }: CategoryContainerProps) => import("react").JSX.Element;
|
|
13
13
|
export default CategoryContainer;
|
|
@@ -35,5 +35,5 @@ export type CategoryOptionProps = (CategoryOptionPropsBase & {
|
|
|
35
35
|
type?: 'input' | 'select';
|
|
36
36
|
value?: StyleValue;
|
|
37
37
|
});
|
|
38
|
-
declare const CategoryOption: (props: CategoryOptionProps) => import("react
|
|
38
|
+
declare const CategoryOption: (props: CategoryOptionProps) => import("react").JSX.Element;
|
|
39
39
|
export default CategoryOption;
|
package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionColor.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ export type OptionColorProps = {
|
|
|
4
4
|
value?: StyleValue;
|
|
5
5
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue>) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const OptionColor: ({ className, value, onChange }: OptionColorProps) => import("react
|
|
7
|
+
declare const OptionColor: ({ className, value, onChange }: OptionColorProps) => import("react").JSX.Element;
|
|
8
8
|
export default OptionColor;
|
package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionIconGroup.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ export type OptionIconGroupProps = {
|
|
|
11
11
|
}[];
|
|
12
12
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
13
13
|
};
|
|
14
|
-
declare const OptionIconGroup: ({ items, onChange }: OptionIconGroupProps) => import("react
|
|
14
|
+
declare const OptionIconGroup: ({ items, onChange }: OptionIconGroupProps) => import("react").JSX.Element;
|
|
15
15
|
export default OptionIconGroup;
|
package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionInput.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ export type OptionInputProps = {
|
|
|
4
4
|
value?: StyleValue;
|
|
5
5
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue>) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const OptionInput: ({ value, className, onChange }: OptionInputProps) => import("react
|
|
7
|
+
declare const OptionInput: ({ value, className, onChange }: OptionInputProps) => import("react").JSX.Element;
|
|
8
8
|
export default OptionInput;
|
|
@@ -14,5 +14,5 @@ export type OptionMetricInputProps = {
|
|
|
14
14
|
allowVariables?: boolean;
|
|
15
15
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue>) => void;
|
|
16
16
|
};
|
|
17
|
-
declare const OptionMetricInput: ({ value, className, preffix, min, max, step, units, allowedWords, allowVariables, onChange }: OptionMetricInputProps) => import("react
|
|
17
|
+
declare const OptionMetricInput: ({ value, className, preffix, min, max, step, units, allowedWords, allowVariables, onChange }: OptionMetricInputProps) => import("react").JSX.Element;
|
|
18
18
|
export default OptionMetricInput;
|
package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionSelect.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export type OptionSelectProps = {
|
|
|
6
6
|
value?: StyleValue;
|
|
7
7
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue>) => void;
|
|
8
8
|
};
|
|
9
|
-
declare const OptionSelect: ({ children, className, value, onChange }: OptionSelectProps) => import("react
|
|
9
|
+
declare const OptionSelect: ({ children, className, value, onChange }: OptionSelectProps) => import("react").JSX.Element;
|
|
10
10
|
export default OptionSelect;
|
|
@@ -8,5 +8,5 @@ export type CategoryOptionProps = {
|
|
|
8
8
|
direction?: 'column' | 'row';
|
|
9
9
|
keys?: StyleCategory[];
|
|
10
10
|
};
|
|
11
|
-
declare const CategorySection: ({ children, className, direction, label, keys }: CategoryOptionProps) => import("react
|
|
11
|
+
declare const CategorySection: ({ children, className, direction, label, keys }: CategoryOptionProps) => import("react").JSX.Element;
|
|
12
12
|
export default CategorySection;
|
|
@@ -2,5 +2,5 @@ import { StyleCategory } from '@plitzi/sdk-shared';
|
|
|
2
2
|
export type InspectorDotsProps = {
|
|
3
3
|
styleKeys?: StyleCategory[];
|
|
4
4
|
};
|
|
5
|
-
declare const InspectorDots: ({ styleKeys }: InspectorDotsProps) => import("react
|
|
5
|
+
declare const InspectorDots: ({ styleKeys }: InspectorDotsProps) => import("react").JSX.Element;
|
|
6
6
|
export default InspectorDots;
|
|
@@ -7,5 +7,5 @@ export type InspectorLabelProps = {
|
|
|
7
7
|
size?: 'small' | 'medium' | 'normal' | 'custom';
|
|
8
8
|
sectionTitle?: boolean;
|
|
9
9
|
};
|
|
10
|
-
declare const _default: import('react').MemoExoticComponent<({ keyValue, children, className, size, sectionTitle }: InspectorLabelProps) => import("react
|
|
10
|
+
declare const _default: import('react').MemoExoticComponent<({ keyValue, children, className, size, sectionTitle }: InspectorLabelProps) => import("react").JSX.Element>;
|
|
11
11
|
export default _default;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { get as e, set as t } from "@plitzi/plitzi-ui/helpers";
|
|
2
2
|
import { useMemo as n } from "react";
|
|
3
3
|
import { emptyObject as r } from "@plitzi/sdk-shared/helpers/utils";
|
|
4
|
-
import {
|
|
4
|
+
import { useCommonStore as i } from "@plitzi/sdk-shared/store";
|
|
5
5
|
//#region src/components/StyleInspector/hooks/useStyleBinding.ts
|
|
6
6
|
var a = ({ element: a }) => {
|
|
7
|
-
let
|
|
7
|
+
let [o = r] = i("runtime.sources");
|
|
8
8
|
return n(() => {
|
|
9
9
|
let n = {};
|
|
10
10
|
if (!a) return n;
|
|
11
11
|
let { definition: { bindings: r } } = a;
|
|
12
12
|
return r?.style && r.style.forEach((r) => {
|
|
13
|
-
e(
|
|
13
|
+
e(o, `${r.source}.${r.fromPath}`) === void 0 || !r.enabled || t(n, r.toPath, e(o, `${r.source}.${r.fromPath}`));
|
|
14
14
|
}), n;
|
|
15
|
-
}, [
|
|
15
|
+
}, [o, a]);
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
18
18
|
export { a as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import e from "../../../helpers/calculateInheriting.mjs";
|
|
2
2
|
import { use as t, useMemo as n } from "react";
|
|
3
|
-
import
|
|
4
|
-
import i from "@plitzi/sdk-shared/
|
|
3
|
+
import r from "@plitzi/sdk-shared/elements/ComponentContext";
|
|
4
|
+
import { useBuilderStore as i } from "@plitzi/sdk-shared/store";
|
|
5
5
|
//#region src/components/StyleInspector/hooks/useStyleInherit.ts
|
|
6
6
|
var a = ({ element: a, componentType: o, componentSubType: s, selector: c, styleSelector: l = "base", styleState: u, styleVariant: d }) => {
|
|
7
|
-
let
|
|
7
|
+
let [[f, p]] = i(["schema.flat", "style.platform"]), { componentDefinitions: m } = t(r);
|
|
8
8
|
return n(() => {
|
|
9
9
|
let t = [], n = [], r = (a?.definition.styleSelectors[l] ?? "").split(" ");
|
|
10
|
-
return c && r.length > 1 && t.push(c), e(a, o, p, m
|
|
10
|
+
return c && r.length > 1 && t.push(c), e(a, o, f, p, m.current, {
|
|
11
11
|
componentSubType: s,
|
|
12
12
|
styleSelector: l,
|
|
13
13
|
styleState: u,
|
|
@@ -21,9 +21,9 @@ var a = ({ element: a, componentType: o, componentSubType: s, selector: c, style
|
|
|
21
21
|
l,
|
|
22
22
|
c,
|
|
23
23
|
o,
|
|
24
|
+
f,
|
|
24
25
|
p,
|
|
25
26
|
m,
|
|
26
|
-
h,
|
|
27
27
|
s,
|
|
28
28
|
u,
|
|
29
29
|
d
|
|
@@ -7,5 +7,5 @@ export type ManagerSelectorProps = {
|
|
|
7
7
|
onSelect?: Dispatch<SetStateAction<StyleItem | undefined>>;
|
|
8
8
|
selectors?: Record<string, StyleItem>;
|
|
9
9
|
};
|
|
10
|
-
declare const _default: import('react').MemoExoticComponent<({ displayMode, flatList, selectors, selected, onSelect }: ManagerSelectorProps) => import("react
|
|
10
|
+
declare const _default: import('react').MemoExoticComponent<({ displayMode, flatList, selectors, selected, onSelect }: ManagerSelectorProps) => import("react").JSX.Element>;
|
|
11
11
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const StyleManager: () => import("react
|
|
1
|
+
declare const StyleManager: () => import("react").JSX.Element;
|
|
2
2
|
export default StyleManager;
|
|
@@ -3,35 +3,35 @@ import t from "../StyleInspector/index.mjs";
|
|
|
3
3
|
import { get as n } from "@plitzi/plitzi-ui/helpers";
|
|
4
4
|
import { use as r, useMemo as i, useState as a } from "react";
|
|
5
5
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
-
import
|
|
7
|
-
import l from "@plitzi/sdk-shared/
|
|
6
|
+
import c from "@plitzi/sdk-shared/elements/ComponentContext";
|
|
7
|
+
import { useBuilderStore as l } from "@plitzi/sdk-shared/store";
|
|
8
8
|
//#region src/components/StyleManager/StyleManager.tsx
|
|
9
9
|
var u = () => {
|
|
10
|
-
let { componentDefinitions: u } = r(
|
|
11
|
-
if (d) return d.type === "element" &&
|
|
10
|
+
let { componentDefinitions: u } = r(c), [d, f] = a(void 0), [[p, m]] = l(["schema.flat", "displayMode"]), [h] = l(`style.platform.${m}`), g = i(() => Object.values(p), [p]), _ = i(() => d?.type === "element" ? Object.keys(n(u.current, `${d.componentType}.definition.styleSelectors`, {})) : ["base"], [u, d]), v = i(() => d?.type === "element" ? Object.keys(n(u.current, `${d.componentType}.defaultStyle.subTypes`, {})) : [], [u, d]), y = i(() => {
|
|
11
|
+
if (d) return d.type === "element" && _.length > 1 ? _.reduce((e, t) => ({
|
|
12
12
|
...e,
|
|
13
13
|
[t]: d.componentType
|
|
14
14
|
}), {}) : { base: d.name };
|
|
15
|
-
}, [d,
|
|
15
|
+
}, [d, _]);
|
|
16
16
|
return /* @__PURE__ */ o("div", {
|
|
17
17
|
className: "flex h-full grow flex-col overflow-auto",
|
|
18
18
|
children: /* @__PURE__ */ s("div", {
|
|
19
19
|
className: "flex grow overflow-auto",
|
|
20
20
|
children: [/* @__PURE__ */ o(e, {
|
|
21
|
-
displayMode:
|
|
22
|
-
selectors:
|
|
23
|
-
flatList:
|
|
21
|
+
displayMode: m,
|
|
22
|
+
selectors: h,
|
|
23
|
+
flatList: g,
|
|
24
24
|
selected: d?.name,
|
|
25
25
|
onSelect: f
|
|
26
26
|
}), /* @__PURE__ */ s("div", {
|
|
27
27
|
className: "flex grow basis-0 flex-col overflow-auto",
|
|
28
28
|
children: [d && /* @__PURE__ */ o(t, {
|
|
29
29
|
mode: "manager",
|
|
30
|
-
displayMode:
|
|
31
|
-
selectors:
|
|
32
|
-
styleSelectors:
|
|
33
|
-
styleSelectorsAvailables:
|
|
34
|
-
componentSubTypesAvailables:
|
|
30
|
+
displayMode: m,
|
|
31
|
+
selectors: h,
|
|
32
|
+
styleSelectors: y,
|
|
33
|
+
styleSelectorsAvailables: _,
|
|
34
|
+
componentSubTypesAvailables: v,
|
|
35
35
|
allowStyleSelector: d.type === "element",
|
|
36
36
|
componentType: d.componentType,
|
|
37
37
|
value: d.name
|
|
@@ -8,5 +8,5 @@ export type StyleSelectorTagProps = {
|
|
|
8
8
|
onSelect?: (id: string) => void;
|
|
9
9
|
onDelete?: (id: string) => void;
|
|
10
10
|
};
|
|
11
|
-
declare const _default: import('react').MemoExoticComponent<({ id, label, active, elementsCount, type, onSelect, onDelete }: StyleSelectorTagProps) => import("react
|
|
11
|
+
declare const _default: import('react').MemoExoticComponent<({ id, label, active, elementsCount, type, onSelect, onDelete }: StyleSelectorTagProps) => import("react").JSX.Element>;
|
|
12
12
|
export default _default;
|
|
@@ -17,5 +17,5 @@ export type SelectorFormProps = {
|
|
|
17
17
|
onClose?: () => void | Promise<void>;
|
|
18
18
|
onSubmit?: (e: MouseEvent | undefined, values: SelectorFormValues) => void | Promise<void>;
|
|
19
19
|
};
|
|
20
|
-
declare const SelectorForm: ({ name, mode, componentType, components, componentsNotAvailables, onClose, onSubmit }: SelectorFormProps) => import("react
|
|
20
|
+
declare const SelectorForm: ({ name, mode, componentType, components, componentsNotAvailables, onClose, onSubmit }: SelectorFormProps) => import("react").JSX.Element;
|
|
21
21
|
export default SelectorForm;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-style",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.2",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -831,10 +831,10 @@
|
|
|
831
831
|
"build:prod": "vite build && node ../sdk-shared/scripts/generate-exports.mjs"
|
|
832
832
|
},
|
|
833
833
|
"dependencies": {
|
|
834
|
-
"@plitzi/plitzi-ui": "^1.6.
|
|
835
|
-
"@plitzi/sdk-plugins": "0.32.
|
|
836
|
-
"@plitzi/sdk-shared": "0.32.
|
|
837
|
-
"@plitzi/sdk-variables": "0.32.
|
|
834
|
+
"@plitzi/plitzi-ui": "^1.6.13",
|
|
835
|
+
"@plitzi/sdk-plugins": "0.32.2",
|
|
836
|
+
"@plitzi/sdk-shared": "0.32.2",
|
|
837
|
+
"@plitzi/sdk-variables": "0.32.2",
|
|
838
838
|
"clsx": "^2.1.1",
|
|
839
839
|
"immer": "^11.1.8",
|
|
840
840
|
"prop-types": "^15.8.1",
|
|
@@ -843,7 +843,7 @@
|
|
|
843
843
|
"devDependencies": {
|
|
844
844
|
"eslint": "^9.39.4",
|
|
845
845
|
"typescript": "^6.0.3",
|
|
846
|
-
"vite": "^8.0.
|
|
847
|
-
"vitest": "^4.1.
|
|
846
|
+
"vite": "^8.0.16",
|
|
847
|
+
"vitest": "^4.1.9"
|
|
848
848
|
}
|
|
849
849
|
}
|