@plitzi/sdk-style 0.37.1 → 0.37.3
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 +1298 -0
- package/dist/SdkStyleContextProvider.d.ts +1 -1
- package/dist/StyleAdvanceEditor.d.ts +1 -1
- package/dist/components/InputEasing/Curve.d.ts +1 -1
- package/dist/components/InputEasing/Grid.d.ts +1 -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/StyleInspectorProvider.d.ts +1 -1
- 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/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/Effects/Transition/TransitionItem.mjs +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/Others/Others.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Others/OthersForm.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Others/OthersInteraction.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Others/OthersOutline.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Others/OthersScrollbar.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Others/OthersSvg.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Others/OthersTable.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/TypographyBreaking.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyClamp.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyFigures.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/AncestorRules/AncestorRuleChip.d.ts +1 -1
- package/dist/components/StyleInspector/components/AncestorRules/AncestorRules.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/StyleManager/ManagerSelector.d.ts +1 -1
- package/dist/components/StyleManager/StyleManager.d.ts +1 -1
- package/dist/components/StyleManager/StyleSelectorTag.d.ts +1 -1
- package/dist/helpers/processSelector.mjs +52 -46
- package/dist/helpers/processSelectorAttributes.mjs +86 -66
- package/dist/models/SelectorForm/SelectorForm.d.ts +1 -1
- package/package.json +22 -6
|
@@ -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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
14
|
+
declare const SpacingPadding: ({ fragmentSelected, values, isLinked, onLinkSelected, onSelectFragment }: SpacingPaddingProps) => import('react').JSX.Element;
|
|
15
15
|
export default SpacingPadding;
|
|
@@ -3,5 +3,5 @@ export type TypographyProps = {
|
|
|
3
3
|
isCollapsed?: boolean;
|
|
4
4
|
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: TypographyProps) => import(
|
|
6
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: TypographyProps) => import('react').JSX.Element>;
|
|
7
7
|
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(
|
|
6
|
+
declare const TypographyAlign: ({ partialValue, onChange }: TypographyAlignProps) => import('react').JSX.Element;
|
|
7
7
|
export default TypographyAlign;
|
|
@@ -8,5 +8,5 @@ export type TypographyBreakingProps = {
|
|
|
8
8
|
verticalAlign?: StyleValue;
|
|
9
9
|
onChange?: (category: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
10
10
|
};
|
|
11
|
-
declare const TypographyBreaking: ({ whiteSpace, textWrap, wordBreak, overflowWrap, hyphens, verticalAlign, onChange }: TypographyBreakingProps) => import(
|
|
11
|
+
declare const TypographyBreaking: ({ whiteSpace, textWrap, wordBreak, overflowWrap, hyphens, verticalAlign, onChange }: TypographyBreakingProps) => import('react').JSX.Element;
|
|
12
12
|
export default TypographyBreaking;
|
|
@@ -3,5 +3,5 @@ export type TypographyClampProps = {
|
|
|
3
3
|
value?: StyleValue;
|
|
4
4
|
onChange?: (values: StyleObject) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const TypographyClamp: ({ value, onChange }: TypographyClampProps) => import(
|
|
6
|
+
declare const TypographyClamp: ({ value, onChange }: TypographyClampProps) => import('react').JSX.Element;
|
|
7
7
|
export default TypographyClamp;
|
|
@@ -9,5 +9,5 @@ export type TypographyFiguresProps = {
|
|
|
9
9
|
* How figures and glyphs are drawn: numbers that line up in a column, the font's own optional features, and the fill
|
|
10
10
|
* that text painted with its background (`background-clip: text`) needs made transparent.
|
|
11
11
|
*/
|
|
12
|
-
declare const TypographyFigures: ({ fontVariantNumeric, fontFeatureSettings, textFillColor, onChange }: TypographyFiguresProps) => import(
|
|
12
|
+
declare const TypographyFigures: ({ fontVariantNumeric, fontFeatureSettings, textFillColor, onChange }: TypographyFiguresProps) => import('react').JSX.Element;
|
|
13
13
|
export default TypographyFigures;
|
|
@@ -3,5 +3,5 @@ export type TypographyFontProps = {
|
|
|
3
3
|
partialValue?: StyleValue;
|
|
4
4
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const TypographyFont: ({ partialValue, onChange }: TypographyFontProps) => import(
|
|
6
|
+
declare const TypographyFont: ({ partialValue, onChange }: TypographyFontProps) => import('react').JSX.Element;
|
|
7
7
|
export default TypographyFont;
|
|
@@ -6,5 +6,5 @@ export type TypographyStyleProps = {
|
|
|
6
6
|
textUnderlineOffset?: StyleValue;
|
|
7
7
|
onChange?: (category: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
8
8
|
};
|
|
9
|
-
declare const TypographyStyle: ({ fontStyle, textDecoration, textDecorationThickness, textUnderlineOffset, onChange }: TypographyStyleProps) => import(
|
|
9
|
+
declare const TypographyStyle: ({ fontStyle, textDecoration, textDecorationThickness, textUnderlineOffset, onChange }: TypographyStyleProps) => import('react').JSX.Element;
|
|
10
10
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
6
|
+
declare const Variables: ({ isCollapsed, onCollapse }: VariablesProps) => import('react').JSX.Element | undefined;
|
|
7
7
|
export default Variables;
|
|
@@ -6,5 +6,5 @@ export type AncestorRuleChipProps = {
|
|
|
6
6
|
onSelect?: (condition: AncestorCondition) => void;
|
|
7
7
|
onRemove?: (condition: AncestorCondition) => void;
|
|
8
8
|
};
|
|
9
|
-
declare const _default: import('react').MemoExoticComponent<({ condition, active, unused, onSelect, onRemove }: AncestorRuleChipProps) => import(
|
|
9
|
+
declare const _default: import('react').MemoExoticComponent<({ condition, active, unused, onSelect, onRemove }: AncestorRuleChipProps) => import('react').JSX.Element>;
|
|
10
10
|
export default _default;
|
|
@@ -10,5 +10,5 @@ export type AncestorRulesProps = {
|
|
|
10
10
|
onRemove?: (condition: AncestorCondition) => void;
|
|
11
11
|
onRemoveUnused?: () => void;
|
|
12
12
|
};
|
|
13
|
-
declare const _default: import('react').MemoExoticComponent<({ conditions, unused, activeAncestor, activeState, activeVariant, onSelect, onRemove, onRemoveUnused }: AncestorRulesProps) => import(
|
|
13
|
+
declare const _default: import('react').MemoExoticComponent<({ conditions, unused, activeAncestor, activeState, activeVariant, onSelect, onRemove, onRemoveUnused }: AncestorRulesProps) => import('react').JSX.Element>;
|
|
14
14
|
export default _default;
|
|
@@ -10,5 +10,5 @@ export type CategoryContainerProps = {
|
|
|
10
10
|
isCollapsed?: boolean;
|
|
11
11
|
onCollapse: (collapsed: boolean) => void;
|
|
12
12
|
};
|
|
13
|
-
declare const CategoryContainer: ({ className, classNameContent, children, title, dotKeys, advancedKeys, isCollapsed, onCollapse }: CategoryContainerProps) => import(
|
|
13
|
+
declare const CategoryContainer: ({ className, classNameContent, children, title, dotKeys, advancedKeys, isCollapsed, onCollapse }: CategoryContainerProps) => import('react').JSX.Element;
|
|
14
14
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
10
|
+
declare const _default: import('react').MemoExoticComponent<({ keyValue, children, className, size, sectionTitle }: InspectorLabelProps) => import('react').JSX.Element>;
|
|
11
11
|
export default _default;
|
|
@@ -8,5 +8,5 @@ export type ManagerSelectorProps = {
|
|
|
8
8
|
onSelect?: Dispatch<SetStateAction<StyleItem | undefined>>;
|
|
9
9
|
selectors?: Record<string, StyleItem>;
|
|
10
10
|
};
|
|
11
|
-
declare const _default: import('react').MemoExoticComponent<({ displayMode, flat, flatList, selectors, selected, onSelect }: ManagerSelectorProps) => import(
|
|
11
|
+
declare const _default: import('react').MemoExoticComponent<({ displayMode, flat, flatList, selectors, selected, onSelect }: ManagerSelectorProps) => import('react').JSX.Element>;
|
|
12
12
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const StyleManager: () => import(
|
|
1
|
+
declare const StyleManager: () => import('react').JSX.Element;
|
|
2
2
|
export default StyleManager;
|
|
@@ -13,5 +13,5 @@ export type StyleSelectorTagProps = {
|
|
|
13
13
|
onDelete?: (id: string) => void;
|
|
14
14
|
onToggleCheck?: (id: string) => void;
|
|
15
15
|
};
|
|
16
|
-
declare const _default: import('react').MemoExoticComponent<({ id, label, active, checked, elementsCount, ancestorsCount, unusedAncestorsCount, type, onSelect, onDelete, onToggleCheck }: StyleSelectorTagProps) => import(
|
|
16
|
+
declare const _default: import('react').MemoExoticComponent<({ id, label, active, checked, elementsCount, ancestorsCount, unusedAncestorsCount, type, onSelect, onDelete, onToggleCheck }: StyleSelectorTagProps) => import('react').JSX.Element>;
|
|
17
17
|
export default _default;
|
|
@@ -1,64 +1,70 @@
|
|
|
1
1
|
import e from "./processSelectorAttributes.mjs";
|
|
2
2
|
import t from "./processSelectorName.mjs";
|
|
3
3
|
import n from "./processSelectorVariables.mjs";
|
|
4
|
-
import { inCascadeOrder as r } from "@plitzi/sdk-shared/style/styleStates";
|
|
4
|
+
import { inCascadeOrder as r, isStartingState as i, stateSuffix as a } from "@plitzi/sdk-shared/style/styleStates";
|
|
5
5
|
//#region src/helpers/processSelector.ts
|
|
6
|
-
var
|
|
7
|
-
let
|
|
6
|
+
var o = 2, s = (e = o) => " ".repeat(e), c = (e, t, n) => `${n || !t.length ? e : `${e}\n`}${t.join(n ? "" : "\n")}`, l = (e, t, n = !0, r = o) => {
|
|
7
|
+
let i = [], a = s(r), c = s(r + o);
|
|
8
8
|
for (let r of ["light", "dark"]) if (t[r].length) {
|
|
9
|
-
if (n)
|
|
9
|
+
if (n) i.push(`@media(prefers-color-scheme:${r}){${e}{${t[r].join("")}}}`);
|
|
10
10
|
else {
|
|
11
11
|
let n = t[r].map((e) => `${c}${e}`).join("\n").replaceAll(":", ": ");
|
|
12
|
-
|
|
12
|
+
i.push(`\n@media(prefers-color-scheme: ${r}) {\n${a}${e} {\n${n}\n${a}}\n}`);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
return
|
|
16
|
-
},
|
|
17
|
-
let
|
|
18
|
-
for (let [
|
|
19
|
-
|
|
20
|
-
for (let [e,
|
|
21
|
-
for (let [e,
|
|
22
|
-
if (
|
|
23
|
-
let r =
|
|
24
|
-
|
|
15
|
+
return i;
|
|
16
|
+
}, u = (e, t, n = "") => [`${e}[data-variant="${t}"]${n}`, `${e}--${t}${n}`], d = (e, t, n) => {
|
|
17
|
+
let o = t ? "," : ", ", s = [];
|
|
18
|
+
for (let [c, { default: l, states: d, variants: f }] of Object.entries(e)) {
|
|
19
|
+
l?.length && s.push(m(`:where(.${c}) &`, l, {}, t, n));
|
|
20
|
+
for (let [e, o] of r(d ?? {})) s.push(m(`:where(.${c}${a(e)}) &`, o, {}, t, n)), i(e) && s.push(p(`:where(.${c}) &`, o, t, n));
|
|
21
|
+
for (let [e, l] of Object.entries(f ?? {})) {
|
|
22
|
+
if (l.default.length) {
|
|
23
|
+
let r = u(`.${c}`, e).join(o);
|
|
24
|
+
s.push(m(`:where(${r}) &`, l.default, {}, t, n));
|
|
25
25
|
}
|
|
26
|
-
for (let [
|
|
27
|
-
let r =
|
|
28
|
-
|
|
26
|
+
for (let [d, f] of r(l.states ?? {})) {
|
|
27
|
+
let r = u(`.${c}`, e, a(d)).join(o);
|
|
28
|
+
if (s.push(m(`:where(${r}) &`, f, {}, t, n)), i(d)) {
|
|
29
|
+
let r = u(`.${c}`, e).join(o);
|
|
30
|
+
s.push(p(`:where(${r}) &`, f, t, n));
|
|
31
|
+
}
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
|
-
return
|
|
33
|
-
},
|
|
34
|
-
let { states:
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
return s;
|
|
36
|
+
}, f = (e, t, n, c = !0, l = o) => {
|
|
37
|
+
let { states: u, variants: f, ancestors: h } = n, g = c ? t.join("") : t.map((e) => `${s(l + o)}${e}`).join("\n").replaceAll(":", ": "), _ = u ? r(u).flatMap(([e, t]) => {
|
|
38
|
+
let n = m(`&${a(e)}`, t, {}, c, l + o);
|
|
39
|
+
return i(e) ? [n, p("&", t, c, l + o)] : [n];
|
|
40
|
+
}) : [], v = e.replace("plitzi__", ""), y = f ? Object.entries(f).map(([e, t]) => m(`&[data-variant="${e}"]${c ? "," : ", "}&${v}--${e}`, t.default, { states: t.states }, c, l + o)) : [], b = h ? d(h, c, l + o) : [];
|
|
41
|
+
if (c) return `${g}${_.join("")}${y.join("")}${b.join("")}`;
|
|
42
|
+
let x = g ? [g] : [];
|
|
37
43
|
for (let e of [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
]) e.length &&
|
|
42
|
-
return
|
|
43
|
-
},
|
|
44
|
-
let
|
|
45
|
-
return r ? `${e}{${
|
|
46
|
-
},
|
|
47
|
-
let
|
|
48
|
-
for (let [
|
|
49
|
-
if (
|
|
50
|
-
let t =
|
|
51
|
-
t &&
|
|
44
|
+
_,
|
|
45
|
+
y,
|
|
46
|
+
b
|
|
47
|
+
]) e.length && x.push(e.join("\n\n"));
|
|
48
|
+
return x.join("\n\n");
|
|
49
|
+
}, p = (e, t, n, r) => n ? `@starting-style{${m(e, t, {}, n, r)}}` : `${s(r)}@starting-style {\n${m(e, t, {}, n, r + o)}\n${s(r)}}`, m = (e, t, n, r = !0, i = o) => {
|
|
50
|
+
let a = f(e, t, n, r, i);
|
|
51
|
+
return r ? `${e}{${a}}` : `${s(i)}${e} {\n${a}\n${s(i)}}`;
|
|
52
|
+
}, h = (e, t, n = !0, r = o) => {
|
|
53
|
+
let i = [];
|
|
54
|
+
for (let [a, s] of Object.entries(t)) {
|
|
55
|
+
if (a === "base") {
|
|
56
|
+
let t = f(e, s.default, s, n, r);
|
|
57
|
+
t && i.push(t);
|
|
52
58
|
continue;
|
|
53
59
|
}
|
|
54
|
-
|
|
60
|
+
i.push(m(`${e}-${a}`, s.default, s, n, r + o));
|
|
55
61
|
}
|
|
56
|
-
return n ? `${e}{${
|
|
57
|
-
},
|
|
58
|
-
let a = t(r),
|
|
59
|
-
|
|
60
|
-
let d =
|
|
61
|
-
return u ?
|
|
62
|
-
},
|
|
62
|
+
return n ? `${e}{${i.join("")}}` : `${e} {\n${i.join("\n\n")}\n}`;
|
|
63
|
+
}, g = (r, i = !0) => {
|
|
64
|
+
let a = t(r), o = n(r), s = e(r), u = o ? l(a, o, i) : void 0;
|
|
65
|
+
o && s.attributes.base.default.push(...o.default);
|
|
66
|
+
let d = h(a, s.attributes, i, 0);
|
|
67
|
+
return u ? c(d, u, i) : d;
|
|
68
|
+
}, _ = (e, t = !1) => e.map((e) => g(e, t));
|
|
63
69
|
//#endregion
|
|
64
|
-
export {
|
|
70
|
+
export { g as default, _ as processSelectors };
|