@plitzi/sdk-style 0.39.1 → 0.39.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 +11 -0
- package/dist/SdkStyleContextProvider.mjs +2 -3
- package/dist/StyleContext.mjs +1 -2
- package/dist/StyleHelper.mjs +1 -2
- package/dist/StyleMap/StyleMap.mjs +1 -2
- package/dist/StyleMap/helpers/getStyleItem.mjs +1 -2
- package/dist/StyleMap/helpers/isValueValid.mjs +1 -2
- package/dist/StyleMap/helpers/utils.mjs +1 -2
- package/dist/StyleMap/index.mjs +1 -2
- package/dist/StyleMap/methods/addSelector.mjs +2 -3
- package/dist/StyleMap/methods/updateSelector.mjs +1 -2
- package/dist/StyleReducer.mjs +1 -2
- package/dist/_virtual/_rolldown/runtime.mjs +1 -2
- package/dist/builder/BuilderStyleContextProvider.mjs +2 -3
- package/dist/builder/StyleAdvanceEditor.mjs +3 -4
- package/dist/builder/components/InputEasing/BezierEasing.mjs +1 -2
- package/dist/builder/components/InputEasing/Curve.mjs +1 -2
- package/dist/builder/components/InputEasing/Grid.mjs +1 -2
- package/dist/builder/components/InputEasing/InputEasing.mjs +1 -2
- package/dist/builder/components/InputEasing/InputEasingButton.mjs +1 -2
- package/dist/builder/components/InputEasing/InputEasingHelper.mjs +1 -2
- package/dist/builder/components/InputEasing/InputEasingList.mjs +1 -2
- package/dist/builder/components/InputEasing/Progress.mjs +1 -2
- package/dist/builder/components/InputEasing/index.mjs +1 -2
- package/dist/builder/components/Selector/Selector.mjs +1 -2
- package/dist/builder/components/Selector/SelectorHelper.mjs +1 -2
- package/dist/builder/components/Selector/SelectorItem/ItemOptions.mjs +12 -13
- package/dist/builder/components/Selector/SelectorItem/SelectorItem.mjs +1 -2
- package/dist/builder/components/Selector/SelectorItem/helpers.mjs +1 -2
- package/dist/builder/components/Selector/SelectorItem/index.mjs +1 -2
- package/dist/builder/components/Selector/SelectorSuggestions/SelectorSuggestions.mjs +1 -2
- package/dist/builder/components/Selector/SelectorSuggestions/SuggestionsCreator.mjs +1 -2
- package/dist/builder/components/Selector/SelectorSuggestions/SuggestionsList.mjs +1 -2
- package/dist/builder/components/Selector/SelectorSuggestions/index.mjs +1 -2
- package/dist/builder/components/Selector/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/Inspector.mjs +151 -152
- package/dist/builder/components/StyleInspector/InspectorSearchContext.mjs +1 -2
- package/dist/builder/components/StyleInspector/StyleInspector.mjs +14 -15
- package/dist/builder/components/StyleInspector/StyleInspectorContext.mjs +0 -1
- package/dist/builder/components/StyleInspector/StyleInspectorProvider.mjs +7 -8
- package/dist/builder/components/StyleInspector/categories/Background/Background.mjs +32 -33
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundAttachment/BackgroundAttachment.mjs +8 -9
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundAttachment/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundLayer/BackgroundLayer.mjs +36 -37
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundLayer/helpers.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundLayer/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundPosition/BackgroundPosition.mjs +11 -12
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundPosition/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundSize/BackgroundSize.mjs +18 -19
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundSize/helpers.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundSize/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundTile/BackgroundTile.mjs +8 -9
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundTile/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/GradientCenter/GradientCenter.mjs +8 -9
- package/dist/builder/components/StyleInspector/categories/Background/components/GradientCenter/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/GradientStopBar/GradientPreviewBar.mjs +6 -7
- package/dist/builder/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.mjs +14 -15
- package/dist/builder/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopEditor.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.mjs +11 -12
- package/dist/builder/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopTrack.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/GradientStopBar/helpers.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/GradientStopBar/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/LayerGroup/LayerGroup.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/LayerGroup/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/helpers/backgroundParser.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/helpers/layerValues.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/helpers/normalizeLeft.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/helpers/parseToBgLayers.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/modes/ConicGradientMode.mjs +6 -7
- package/dist/builder/components/StyleInspector/categories/Background/modes/ImageMode.mjs +6 -7
- package/dist/builder/components/StyleInspector/categories/Background/modes/LinearGradientMode.mjs +11 -12
- package/dist/builder/components/StyleInspector/categories/Background/modes/RadialGradientMode.mjs +19 -20
- package/dist/builder/components/StyleInspector/categories/Background/modes/RawMode.mjs +6 -7
- package/dist/builder/components/StyleInspector/categories/Background/modes/helpers.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Border/Border.mjs +19 -20
- package/dist/builder/components/StyleInspector/categories/Border/BorderColor.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Border/BorderPlacements.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Border/BorderRadius.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Border/BorderStyle.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Border/BorderWidth.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Border/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Display/Display.mjs +26 -27
- package/dist/builder/components/StyleInspector/categories/Display/DisplayElements.mjs +7 -2
- package/dist/builder/components/StyleInspector/categories/Display/DisplayFlex.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Display/DisplayFlexAlignContent.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Display/DisplayFlexAlignItems.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Display/DisplayFlexDirection.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Display/DisplayFlexJustify.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Display/DisplayGap.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Display/DisplayGridTemplate.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Display/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/DisplayFlexChild/DisplayAlignSelf.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/DisplayFlexChild/DisplayFlexChild.mjs +21 -22
- package/dist/builder/components/StyleInspector/categories/DisplayFlexChild/DisplayOrder.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/DisplayFlexChild/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Effects/BoxShadow/BoxShadow.mjs +6 -7
- package/dist/builder/components/StyleInspector/categories/Effects/BoxShadow/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Effects/Effects.mjs +36 -37
- package/dist/builder/components/StyleInspector/categories/Effects/Filters/Filter.mjs +14 -15
- package/dist/builder/components/StyleInspector/categories/Effects/Filters/FilterItem.mjs +20 -21
- package/dist/builder/components/StyleInspector/categories/Effects/Filters/helpers.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Effects/Filters/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Effects/Transform/Transform.mjs +8 -9
- package/dist/builder/components/StyleInspector/categories/Effects/Transform/TransformItem.mjs +17 -18
- package/dist/builder/components/StyleInspector/categories/Effects/Transform/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Effects/Transform/transformFunctions.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Effects/Transition/Transition.mjs +9 -10
- package/dist/builder/components/StyleInspector/categories/Effects/Transition/TransitionEasing.mjs +21 -22
- package/dist/builder/components/StyleInspector/categories/Effects/Transition/TransitionItem.mjs +21 -22
- package/dist/builder/components/StyleInspector/categories/Effects/Transition/helpers.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Effects/Transition/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Effects/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/List/List.mjs +10 -11
- package/dist/builder/components/StyleInspector/categories/List/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/ListItem/ListItem.mjs +10 -11
- package/dist/builder/components/StyleInspector/categories/ListItem/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Others/Others.mjs +27 -28
- package/dist/builder/components/StyleInspector/categories/Others/OthersForm.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Others/OthersInteraction.mjs +16 -17
- package/dist/builder/components/StyleInspector/categories/Others/OthersOutline.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Others/OthersScrollSnap.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Others/OthersScrollbar.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Others/OthersSvg.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Others/OthersTable.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Others/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Position/Position.mjs +18 -19
- package/dist/builder/components/StyleInspector/categories/Position/PositionAdvanced.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Position/PositionAdvancedButtons.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Position/PositionClear.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Position/PositionFloat.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Position/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/RawStyle/RawStyle.mjs +2 -3
- package/dist/builder/components/StyleInspector/categories/RawStyle/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Size/Size.mjs +36 -37
- package/dist/builder/components/StyleInspector/categories/Size/SizeContainer.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Size/SizeFit.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Size/SizeOverflow.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Size/SizePosition.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Size/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Spacing/Spacing.mjs +7 -8
- package/dist/builder/components/StyleInspector/categories/Spacing/SpacingBox.mjs +8 -9
- package/dist/builder/components/StyleInspector/categories/Spacing/SpacingEditor.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Spacing/SpacingMargin.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Spacing/SpacingNumber.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Spacing/SpacingPadding.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Spacing/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Typography/Typography.mjs +48 -49
- package/dist/builder/components/StyleInspector/categories/Typography/TypographyAlign.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Typography/TypographyBreaking.mjs +13 -14
- package/dist/builder/components/StyleInspector/categories/Typography/TypographyClamp.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Typography/TypographyConstants.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Typography/TypographyFigures.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Typography/TypographyFont.mjs +7 -8
- package/dist/builder/components/StyleInspector/categories/Typography/TypographyStyle.mjs +10 -11
- package/dist/builder/components/StyleInspector/categories/Typography/TypographyTextShadow.mjs +8 -9
- package/dist/builder/components/StyleInspector/categories/Typography/TypographyTransform.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Typography/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Variables/Variables.mjs +7 -8
- package/dist/builder/components/StyleInspector/categories/Variables/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/blendModes.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/listMarkers.mjs +1 -2
- package/dist/builder/components/StyleInspector/categoryKeys.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/AncestorRules/AncestorRuleChip.mjs +0 -1
- package/dist/builder/components/StyleInspector/components/AncestorRules/AncestorRules.mjs +0 -1
- package/dist/builder/components/StyleInspector/components/AncestorRules/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryAdvanced/CategoryAdvanced.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryAdvanced/CategoryAdvancedContext.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryAdvanced/index.mjs +5 -6
- package/dist/builder/components/StyleInspector/components/CategoryContainer/CategoryContainer.mjs +6 -7
- package/dist/builder/components/StyleInspector/components/CategoryContainer/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryOption/CategoryOption.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryOption/categoryTypes/OptionColor.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryOption/categoryTypes/OptionIconGroup.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryOption/categoryTypes/OptionInput.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryOption/categoryTypes/OptionMetricInput.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryOption/categoryTypes/OptionSelect.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryOption/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategorySection/CategorySection.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategorySection/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/ColorSwatch/ColorSwatch.mjs +5 -6
- package/dist/builder/components/StyleInspector/components/ColorSwatch/helpers.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/ColorSwatch/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/InspectorDots/InspectorDots.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/InspectorDots/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/InspectorFooter/InspectorFooter.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/InspectorFooter/helpers.mjs +2 -10
- package/dist/builder/components/StyleInspector/components/InspectorFooter/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/InspectorLabel/InspectorLabel.mjs +3 -4
- package/dist/builder/components/StyleInspector/components/InspectorLabel/helpers.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/InspectorLabel/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/InspectorSearch/InspectorSearch.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/InspectorSearch/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/ShadowItem/ShadowItem.mjs +18 -19
- package/dist/builder/components/StyleInspector/components/ShadowItem/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/ShadowList/ShadowList.mjs +8 -9
- package/dist/builder/components/StyleInspector/components/ShadowList/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/TargetSummary/TargetSummary.mjs +0 -1
- package/dist/builder/components/StyleInspector/components/TargetSummary/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/ValueList/ValueList.mjs +0 -1
- package/dist/builder/components/StyleInspector/components/ValueList/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/ValueListItem/ValueListItem.mjs +0 -1
- package/dist/builder/components/StyleInspector/components/ValueListItem/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/cssValues.mjs +1 -2
- package/dist/builder/components/StyleInspector/helpers.mjs +1 -2
- package/dist/builder/components/StyleInspector/hooks/useInspectorValues.mjs +1 -2
- package/dist/builder/components/StyleInspector/hooks/usePropertyChange.mjs +1 -2
- package/dist/builder/components/StyleInspector/hooks/useStyleBinding.mjs +1 -2
- package/dist/builder/components/StyleInspector/hooks/useStyleInherit.mjs +1 -2
- package/dist/builder/components/StyleInspector/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/search.mjs +1 -2
- package/dist/builder/components/StyleInspector/shadowValue.mjs +1 -2
- package/dist/builder/components/StyleManager/ManagerSelector.mjs +0 -1
- package/dist/builder/components/StyleManager/StyleManager.mjs +1 -2
- package/dist/builder/components/StyleManager/StyleSelectorTag.mjs +0 -1
- package/dist/builder/components/StyleManager/index.mjs +1 -2
- package/dist/builder/components/index.mjs +1 -2
- package/dist/builder/hooks/useSpaceFonts.mjs +1 -2
- package/dist/builder/index.mjs +3 -3
- package/dist/builder/models/SelectorForm/SelectorForm.mjs +1 -2
- package/dist/builder/models/SelectorForm/index.mjs +1 -2
- package/dist/helpers/calculateInheriting.mjs +2 -3
- package/dist/helpers/formatCssFromSelector.mjs +1 -2
- package/dist/helpers/generateStyleSelector.mjs +1 -2
- package/dist/helpers/index.mjs +11 -12
- package/dist/helpers/processCssTokens.mjs +1 -2
- package/dist/helpers/processSelector.mjs +1 -2
- package/dist/helpers/processSelectorAttributes.mjs +1 -2
- package/dist/helpers/processSelectorName.mjs +1 -2
- package/dist/helpers/processSelectorVariables.mjs +1 -2
- package/dist/index.mjs +11 -11
- package/package.json +15 -12
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import e from "../../components/
|
|
2
|
-
import t from "../../components/
|
|
3
|
-
import n from "../../components/
|
|
1
|
+
import e from "../../components/CategoryAdvanced/index.mjs";
|
|
2
|
+
import t from "../../components/CategoryOption/index.mjs";
|
|
3
|
+
import n from "../../components/CategorySection/index.mjs";
|
|
4
4
|
import { useMemo as r } from "react";
|
|
5
5
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
6
|
import s from "@plitzi/plitzi-ui/icons/XMark";
|
|
7
7
|
import c from "@plitzi/plitzi-ui/icons/TextDecorationOverline";
|
|
8
|
-
|
|
8
|
+
// src/builder/components/StyleInspector/categories/Typography/TypographyStyle.tsx
|
|
9
9
|
var l = ({ fontStyle: l, textDecoration: u, textDecorationThickness: d, textUnderlineOffset: f, onChange: p }) => {
|
|
10
10
|
let m = r(() => [{
|
|
11
11
|
value: "normal",
|
|
@@ -43,30 +43,30 @@ var l = ({ fontStyle: l, textDecoration: u, textDecorationThickness: d, textUnde
|
|
|
43
43
|
active: u === "overline"
|
|
44
44
|
}
|
|
45
45
|
], [u]);
|
|
46
|
-
return /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ o(
|
|
46
|
+
return /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ o(n, {
|
|
47
47
|
label: "",
|
|
48
|
-
children: [/* @__PURE__ */ a(
|
|
48
|
+
children: [/* @__PURE__ */ a(t, {
|
|
49
49
|
keys: ["font-style"],
|
|
50
50
|
label: "Style",
|
|
51
51
|
onChange: p?.("font-style"),
|
|
52
52
|
type: "iconGroup",
|
|
53
53
|
items: m
|
|
54
|
-
}), /* @__PURE__ */ a(
|
|
54
|
+
}), /* @__PURE__ */ a(t, {
|
|
55
55
|
keys: ["text-decoration"],
|
|
56
56
|
label: "Decoration",
|
|
57
57
|
onChange: p?.("text-decoration"),
|
|
58
58
|
type: "iconGroup",
|
|
59
59
|
items: h
|
|
60
60
|
})]
|
|
61
|
-
}), /* @__PURE__ */ a(
|
|
61
|
+
}), /* @__PURE__ */ a(e, { children: /* @__PURE__ */ o(n, {
|
|
62
62
|
label: "",
|
|
63
|
-
children: [/* @__PURE__ */ a(
|
|
63
|
+
children: [/* @__PURE__ */ a(t, {
|
|
64
64
|
keys: ["text-decoration-thickness"],
|
|
65
65
|
label: "Thickness",
|
|
66
66
|
value: d,
|
|
67
67
|
onChange: p?.("text-decoration-thickness"),
|
|
68
68
|
type: "metric"
|
|
69
|
-
}), /* @__PURE__ */ a(
|
|
69
|
+
}), /* @__PURE__ */ a(t, {
|
|
70
70
|
keys: ["text-underline-offset"],
|
|
71
71
|
label: "Offset",
|
|
72
72
|
value: f,
|
|
@@ -75,5 +75,4 @@ var l = ({ fontStyle: l, textDecoration: u, textDecorationThickness: d, textUnde
|
|
|
75
75
|
})]
|
|
76
76
|
}) })] });
|
|
77
77
|
};
|
|
78
|
-
//#endregion
|
|
79
78
|
export { l as default };
|
package/dist/builder/components/StyleInspector/categories/Typography/TypographyTextShadow.mjs
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import n from "../../
|
|
1
|
+
import e from "../../components/ShadowList/index.mjs";
|
|
2
|
+
import { DEFAULT_SHADOW as t, serializeShadow as n } from "../../shadowValue.mjs";
|
|
3
3
|
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
var i = ["text-shadow"], a =
|
|
6
|
-
...
|
|
4
|
+
// src/builder/components/StyleInspector/categories/Typography/TypographyTextShadow.tsx
|
|
5
|
+
var i = ["text-shadow"], a = n({
|
|
6
|
+
...t,
|
|
7
7
|
y: "1px",
|
|
8
8
|
blur: "2px"
|
|
9
|
-
}, { withSpread: !1 }), o = ({ value:
|
|
9
|
+
}, { withSpread: !1 }), o = ({ value: t, onChange: n }) => /* @__PURE__ */ r(e, {
|
|
10
10
|
label: "Text Shadow",
|
|
11
11
|
keys: i,
|
|
12
12
|
addLabel: "Add text shadow",
|
|
13
13
|
withSpread: !1,
|
|
14
14
|
added: a,
|
|
15
|
-
value:
|
|
16
|
-
onChange:
|
|
15
|
+
value: t,
|
|
16
|
+
onChange: n
|
|
17
17
|
});
|
|
18
|
-
//#endregion
|
|
19
18
|
export { o as default };
|
package/dist/builder/components/StyleInspector/categories/Typography/TypographyTransform.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
|
5
5
|
import o from "@plitzi/plitzi-ui/icons/XMark";
|
|
6
6
|
import s from "@plitzi/plitzi-ui/icons/TextDirectionLtr";
|
|
7
7
|
import c from "@plitzi/plitzi-ui/icons/TextDirectionRtl";
|
|
8
|
-
|
|
8
|
+
// src/builder/components/StyleInspector/categories/Typography/TypographyTransform.tsx
|
|
9
9
|
var l = ({ textTransform: l, direction: u, onChange: d }) => {
|
|
10
10
|
let f = n(() => [
|
|
11
11
|
{
|
|
@@ -72,5 +72,4 @@ var l = ({ textTransform: l, direction: u, onChange: d }) => {
|
|
|
72
72
|
})]
|
|
73
73
|
}) });
|
|
74
74
|
};
|
|
75
|
-
//#endregion
|
|
76
75
|
export { l as default };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import e from "../../
|
|
2
|
-
import
|
|
3
|
-
import n from "../../
|
|
1
|
+
import { VARIABLES_KEYS as e } from "../../categoryKeys.mjs";
|
|
2
|
+
import t from "../../components/CategoryContainer/index.mjs";
|
|
3
|
+
import n from "../../StyleInspectorContext.mjs";
|
|
4
4
|
import { use as r, useCallback as i } from "react";
|
|
5
5
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
6
|
import s, { useModal as c } from "@plitzi/plitzi-ui/Modal";
|
|
7
7
|
import { BuilderContext as l } from "@plitzi/sdk-shared/builder/contexts";
|
|
8
8
|
import { useToast as u } from "@plitzi/plitzi-ui/Toast";
|
|
9
9
|
import { StyleVariables as d } from "@plitzi/sdk-variables/builder";
|
|
10
|
-
|
|
10
|
+
// src/builder/components/StyleInspector/categories/Variables/Variables.tsx
|
|
11
11
|
var f = ({ isCollapsed: f, onCollapse: p }) => {
|
|
12
|
-
let { displayMode: m, selector: h } = r(
|
|
12
|
+
let { displayMode: m, selector: h } = r(n), { builderHandler: g } = r(l), { showDialog: _ } = c(), { addToast: v } = u(), y = i((e) => p?.("variables", e), [p]), b = i((e) => {
|
|
13
13
|
if (!h) return;
|
|
14
14
|
let { name: t, category: n, value: r } = e;
|
|
15
15
|
h.variables?.[n]?.[t] ? v(/* @__PURE__ */ o("span", { children: [
|
|
@@ -40,8 +40,8 @@ var f = ({ isCollapsed: f, onCollapse: p }) => {
|
|
|
40
40
|
h,
|
|
41
41
|
_
|
|
42
42
|
]);
|
|
43
|
-
if (h) return /* @__PURE__ */ a(
|
|
44
|
-
title:
|
|
43
|
+
if (h) return /* @__PURE__ */ a(t, {
|
|
44
|
+
title: e.title,
|
|
45
45
|
isCollapsed: f,
|
|
46
46
|
onCollapse: y,
|
|
47
47
|
children: /* @__PURE__ */ a(d, {
|
|
@@ -52,5 +52,4 @@ var f = ({ isCollapsed: f, onCollapse: p }) => {
|
|
|
52
52
|
})
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
|
-
//#endregion
|
|
56
55
|
export { f as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/builder/components/StyleInspector/categories/blendModes.ts
|
|
2
2
|
var e = [
|
|
3
3
|
["normal", "Normal"],
|
|
4
4
|
["multiply", "Multiply"],
|
|
@@ -17,5 +17,4 @@ var e = [
|
|
|
17
17
|
["color", "Color"],
|
|
18
18
|
["luminosity", "Luminosity"]
|
|
19
19
|
];
|
|
20
|
-
//#endregion
|
|
21
20
|
export { e as BLEND_MODES };
|
|
@@ -6,7 +6,7 @@ import i from "@plitzi/plitzi-ui/icons/ListLetters";
|
|
|
6
6
|
import a from "@plitzi/plitzi-ui/icons/ListNumbers";
|
|
7
7
|
import o from "@plitzi/plitzi-ui/icons/ListRoman";
|
|
8
8
|
import s from "@plitzi/plitzi-ui/icons/ListSquares";
|
|
9
|
-
|
|
9
|
+
// src/builder/components/StyleInspector/categories/listMarkers.tsx
|
|
10
10
|
var c = (c) => [
|
|
11
11
|
["none", /* @__PURE__ */ e(t, {}, "none")],
|
|
12
12
|
["disc", /* @__PURE__ */ e(r, {}, "disc")],
|
|
@@ -21,5 +21,4 @@ var c = (c) => [
|
|
|
21
21
|
description: "",
|
|
22
22
|
active: c === e
|
|
23
23
|
}));
|
|
24
|
-
//#endregion
|
|
25
24
|
export { c as listMarkerItems };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/builder/components/StyleInspector/categoryKeys.ts
|
|
2
2
|
var e = {
|
|
3
3
|
title: "List",
|
|
4
4
|
dot: ["list-style"],
|
|
@@ -194,5 +194,4 @@ var e = {
|
|
|
194
194
|
variables: f,
|
|
195
195
|
rawStyle: p
|
|
196
196
|
}, h = Object.keys(m);
|
|
197
|
-
//#endregion
|
|
198
197
|
export { c as BACKGROUND_KEYS, l as BORDER_KEYS, h as CATEGORY_IDS, m as CATEGORY_KEYS, n as DISPLAY_KEYS, u as EFFECTS_KEYS, r as FLEX_CHILD_KEYS, t as LIST_ITEM_KEYS, e as LIST_KEYS, d as OTHERS_KEYS, o as POSITION_KEYS, p as RAW_STYLE_KEYS, a as SIZE_KEYS, i as SPACING_KEYS, s as TYPOGRAPHY_KEYS, f as VARIABLES_KEYS };
|
package/dist/builder/components/StyleInspector/components/CategoryAdvanced/CategoryAdvanced.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import e from "./CategoryAdvancedContext.mjs";
|
|
2
2
|
import { use as t } from "react";
|
|
3
|
-
|
|
3
|
+
// src/builder/components/StyleInspector/components/CategoryAdvanced/CategoryAdvanced.tsx
|
|
4
4
|
var n = ({ children: n }) => t(e) ? n : null;
|
|
5
|
-
//#endregion
|
|
6
5
|
export { n as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createContext as e } from "react";
|
|
2
|
-
|
|
2
|
+
// src/builder/components/StyleInspector/components/CategoryAdvanced/CategoryAdvancedContext.ts
|
|
3
3
|
var t = e(!1);
|
|
4
|
-
//#endregion
|
|
5
4
|
export { t as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
import t from "./
|
|
3
|
-
|
|
4
|
-
var n =
|
|
5
|
-
|
|
6
|
-
export { e as CategoryAdvancedContext, n as default };
|
|
1
|
+
import e from "./CategoryAdvanced.mjs";
|
|
2
|
+
import t from "./CategoryAdvancedContext.mjs";
|
|
3
|
+
// src/builder/components/StyleInspector/components/CategoryAdvanced/index.ts
|
|
4
|
+
var n = e;
|
|
5
|
+
export { t as CategoryAdvancedContext, n as default };
|
package/dist/builder/components/StyleInspector/components/CategoryContainer/CategoryContainer.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../../hooks/useInspectorValues.mjs";
|
|
2
|
-
import t from "
|
|
3
|
-
import n from "../../
|
|
4
|
-
import
|
|
2
|
+
import t from "../../InspectorSearchContext.mjs";
|
|
3
|
+
import { advancedMatches as n } from "../../search.mjs";
|
|
4
|
+
import r from "../CategoryAdvanced/CategoryAdvancedContext.mjs";
|
|
5
5
|
import i from "../InspectorDots/index.mjs";
|
|
6
6
|
import { use as a, useCallback as o } from "react";
|
|
7
7
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
@@ -9,12 +9,12 @@ import l from "clsx";
|
|
|
9
9
|
import u from "@plitzi/plitzi-ui/Icon";
|
|
10
10
|
import d from "@plitzi/plitzi-ui/hooks/useStorage";
|
|
11
11
|
import f from "@plitzi/plitzi-ui/ContainerCollapsable";
|
|
12
|
-
|
|
12
|
+
// src/builder/components/StyleInspector/components/CategoryContainer/CategoryContainer.tsx
|
|
13
13
|
var p = ({ className: p, classNameContent: m, children: h, title: g = "Title", dotKeys: _, advancedKeys: v, isCollapsed: y = !0, onCollapse: b }) => {
|
|
14
14
|
let [x, S] = d(`builder-state.styleInspector.advanced.${g}`, !1), { hasValues: C } = e({
|
|
15
15
|
keys: v,
|
|
16
16
|
asValue: !1
|
|
17
|
-
}), w = a(
|
|
17
|
+
}), w = a(t), T = n(v, w), E = x || T, D = o((e) => {
|
|
18
18
|
e.stopPropagation(), S((e) => !e);
|
|
19
19
|
}, [S]);
|
|
20
20
|
return /* @__PURE__ */ c(f, {
|
|
@@ -48,12 +48,11 @@ var p = ({ className: p, classNameContent: m, children: h, title: g = "Title", d
|
|
|
48
48
|
})
|
|
49
49
|
}), /* @__PURE__ */ s(f.Content, {
|
|
50
50
|
className: l("flex flex-col gap-3 px-2.5 py-3", { "border-b border-gray-200 dark:border-zinc-800": !y }, m),
|
|
51
|
-
children: /* @__PURE__ */ s(
|
|
51
|
+
children: /* @__PURE__ */ s(r, {
|
|
52
52
|
value: E,
|
|
53
53
|
children: h
|
|
54
54
|
})
|
|
55
55
|
})]
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
|
-
//#endregion
|
|
59
58
|
export { p as default };
|
|
@@ -6,7 +6,7 @@ import i from "./categoryTypes/OptionMetricInput.mjs";
|
|
|
6
6
|
import a from "./categoryTypes/OptionSelect.mjs";
|
|
7
7
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
import l from "@plitzi/plitzi-ui/Flex";
|
|
9
|
-
|
|
9
|
+
// src/builder/components/StyleInspector/components/CategoryOption/CategoryOption.tsx
|
|
10
10
|
var u = (u) => {
|
|
11
11
|
let { direction: d = "column", label: f, keys: p, type: m = "input", ...h } = u;
|
|
12
12
|
return /* @__PURE__ */ c(l, {
|
|
@@ -26,5 +26,4 @@ var u = (u) => {
|
|
|
26
26
|
] })]
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
-
//#endregion
|
|
30
29
|
export { u as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import t from "@plitzi/plitzi-ui/ColorPicker";
|
|
3
|
-
|
|
3
|
+
// src/builder/components/StyleInspector/components/CategoryOption/categoryTypes/OptionColor.tsx
|
|
4
4
|
var n = ["inherit"], r = ({ className: r, value: i, onChange: a }) => /* @__PURE__ */ e(t, {
|
|
5
5
|
size: "xs",
|
|
6
6
|
className: {
|
|
@@ -12,5 +12,4 @@ var n = ["inherit"], r = ({ className: r, value: i, onChange: a }) => /* @__PURE
|
|
|
12
12
|
allowVariables: !0,
|
|
13
13
|
allowedWords: n
|
|
14
14
|
});
|
|
15
|
-
//#endregion
|
|
16
15
|
export { r as default };
|
|
@@ -2,7 +2,7 @@ import { useCallback as e, useMemo as t } from "react";
|
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
3
|
import r from "clsx";
|
|
4
4
|
import i from "@plitzi/plitzi-ui/IconGroup";
|
|
5
|
-
|
|
5
|
+
// src/builder/components/StyleInspector/components/CategoryOption/categoryTypes/OptionIconGroup.tsx
|
|
6
6
|
var a = ({ items: a = [], onChange: o }) => {
|
|
7
7
|
let s = t(() => a.filter((e) => typeof e.isVisible != "boolean" || e.isVisible), [a]), c = e((e) => () => o?.(e), [o]);
|
|
8
8
|
return /* @__PURE__ */ n(i, {
|
|
@@ -25,5 +25,4 @@ var a = ({ items: a = [], onChange: o }) => {
|
|
|
25
25
|
}, t))
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
-
//#endregion
|
|
29
28
|
export { a as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import t from "@plitzi/plitzi-ui/Input";
|
|
3
|
-
|
|
3
|
+
// src/builder/components/StyleInspector/components/CategoryOption/categoryTypes/OptionInput.tsx
|
|
4
4
|
var n = ({ value: n, className: r, onChange: i }) => /* @__PURE__ */ e(t, {
|
|
5
5
|
size: "xs",
|
|
6
6
|
value: n,
|
|
@@ -10,5 +10,4 @@ var n = ({ value: n, className: r, onChange: i }) => /* @__PURE__ */ e(t, {
|
|
|
10
10
|
input: r
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
//#endregion
|
|
14
13
|
export { n as default };
|
|
@@ -2,7 +2,7 @@ import { useCallback as e } from "react";
|
|
|
2
2
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
3
|
import r from "clsx";
|
|
4
4
|
import i from "@plitzi/plitzi-ui/MetricInput";
|
|
5
|
-
|
|
5
|
+
// src/builder/components/StyleInspector/components/CategoryOption/categoryTypes/OptionMetricInput.tsx
|
|
6
6
|
var a = ({ value: a, className: o, preffix: s = "", min: c, max: l, step: u, units: d = [
|
|
7
7
|
{
|
|
8
8
|
label: "PX",
|
|
@@ -65,5 +65,4 @@ var a = ({ value: a, className: o, preffix: s = "", min: c, max: l, step: u, uni
|
|
|
65
65
|
})]
|
|
66
66
|
});
|
|
67
67
|
};
|
|
68
|
-
//#endregion
|
|
69
68
|
export { a as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import t from "clsx";
|
|
3
3
|
import n from "@plitzi/plitzi-ui/Select";
|
|
4
|
-
|
|
4
|
+
// src/builder/components/StyleInspector/components/CategoryOption/categoryTypes/OptionSelect.tsx
|
|
5
5
|
var r = ({ children: r, className: i, value: a, onChange: o }) => /* @__PURE__ */ e(n, {
|
|
6
6
|
size: "xs",
|
|
7
7
|
value: a,
|
|
@@ -9,5 +9,4 @@ var r = ({ children: r, className: i, value: a, onChange: o }) => /* @__PURE__ *
|
|
|
9
9
|
className: t("w-full min-w-0", i),
|
|
10
10
|
children: r
|
|
11
11
|
});
|
|
12
|
-
//#endregion
|
|
13
12
|
export { r as default };
|
package/dist/builder/components/StyleInspector/components/CategorySection/CategorySection.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { Children as t } from "react";
|
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
import i from "clsx";
|
|
5
5
|
import a from "@plitzi/plitzi-ui/Flex";
|
|
6
|
-
|
|
6
|
+
// src/builder/components/StyleInspector/components/CategorySection/CategorySection.tsx
|
|
7
7
|
var o = 2, s = ({ children: s, className: c, direction: l = "row", label: u, keys: d }) => {
|
|
8
8
|
let f = t.toArray(s).length;
|
|
9
9
|
return l === "row" && f > o ? /* @__PURE__ */ r("div", {
|
|
@@ -29,5 +29,4 @@ var o = 2, s = ({ children: s, className: c, direction: l = "row", label: u, key
|
|
|
29
29
|
}), s]
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
-
//#endregion
|
|
33
32
|
export { s as default };
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import t from "../../
|
|
3
|
-
import
|
|
1
|
+
import { CHECKERBOARD as e } from "./helpers.mjs";
|
|
2
|
+
import { resolveTokens as t } from "../../cssValues.mjs";
|
|
3
|
+
import n from "../../StyleInspectorContext.mjs";
|
|
4
4
|
import { memo as r, use as i, useMemo as a } from "react";
|
|
5
5
|
import { jsx as o } from "react/jsx-runtime";
|
|
6
6
|
import s from "clsx";
|
|
7
7
|
var c = r(({ className: r, value: c, property: l = "background-color" }) => {
|
|
8
|
-
let { variables: u } = i(
|
|
8
|
+
let { variables: u } = i(n), d = a(() => ({ [l === "background" ? "background" : "backgroundColor"]: t(c, u) }), [
|
|
9
9
|
l,
|
|
10
10
|
c,
|
|
11
11
|
u
|
|
12
12
|
]);
|
|
13
13
|
return /* @__PURE__ */ o("span", {
|
|
14
14
|
className: s("relative inline-flex shrink-0 overflow-hidden rounded ring-1 ring-black/15 ring-inset dark:ring-white/20", r),
|
|
15
|
-
style:
|
|
15
|
+
style: e,
|
|
16
16
|
children: /* @__PURE__ */ o("span", {
|
|
17
17
|
className: "absolute inset-0",
|
|
18
18
|
style: d
|
|
19
19
|
})
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
|
-
//#endregion
|
|
23
22
|
export { c as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
// src/builder/components/StyleInspector/components/ColorSwatch/helpers.ts
|
|
2
2
|
var e = {
|
|
3
3
|
backgroundImage: "linear-gradient(45deg, #cfcfd8 25%, transparent 25%), linear-gradient(-45deg, #cfcfd8 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #cfcfd8 75%), linear-gradient(-45deg, transparent 75%, #cfcfd8 75%)",
|
|
4
4
|
backgroundColor: "#ffffff",
|
|
5
5
|
backgroundSize: "8px 8px",
|
|
6
6
|
backgroundPosition: "0 0, 0 4px, 4px -4px, -4px 0"
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { e as CHECKERBOARD };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "../../hooks/useInspectorValues.mjs";
|
|
2
2
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/builder/components/StyleInspector/components/InspectorDots/InspectorDots.tsx
|
|
4
4
|
var r = ({ styleKeys: r }) => {
|
|
5
5
|
let { hasInherit: i, hasBinding: a, hasVariables: o, hasValues: s } = e({
|
|
6
6
|
keys: r,
|
|
@@ -28,5 +28,4 @@ var r = ({ styleKeys: r }) => {
|
|
|
28
28
|
]
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
|
-
//#endregion
|
|
32
31
|
export { r as default };
|
package/dist/builder/components/StyleInspector/components/InspectorFooter/InspectorFooter.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { LEGEND as e } from "./helpers.mjs";
|
|
|
2
2
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
3
|
import r from "@plitzi/plitzi-ui/Icon";
|
|
4
4
|
import i from "@plitzi/plitzi-ui/Switch";
|
|
5
|
-
|
|
5
|
+
// src/builder/components/StyleInspector/components/InspectorFooter/InspectorFooter.tsx
|
|
6
6
|
var a = ({ replaceTokens: a, showAllOptions: o, canShowAllOptions: s, onCollapseAll: c, onChangeReplaceTokens: l, onChangeShowAllOptions: u }) => /* @__PURE__ */ n("div", {
|
|
7
7
|
className: "flex items-center justify-between gap-3 border-t border-gray-200 px-2.5 py-1.5 dark:border-zinc-800",
|
|
8
8
|
children: [/* @__PURE__ */ n("div", {
|
|
@@ -34,5 +34,4 @@ var a = ({ replaceTokens: a, showAllOptions: o, canShowAllOptions: s, onCollapse
|
|
|
34
34
|
})]
|
|
35
35
|
})]
|
|
36
36
|
});
|
|
37
|
-
//#endregion
|
|
38
37
|
export { a as default };
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
var e =
|
|
3
|
-
"Label colours",
|
|
4
|
-
"Blue — set on this selector (click the label to reset it)",
|
|
5
|
-
"Green — set from a token",
|
|
6
|
-
"Violet — bound to data",
|
|
7
|
-
"Amber — inherited from another selector or breakpoint",
|
|
8
|
-
"Grey — nothing set, the default applies"
|
|
9
|
-
].join("\n");
|
|
10
|
-
//#endregion
|
|
1
|
+
// src/builder/components/StyleInspector/components/InspectorFooter/helpers.ts
|
|
2
|
+
var e = "Label colours\nBlue — set on this selector (click the label to reset it)\nGreen — set from a token\nViolet — bound to data\nAmber — inherited from another selector or breakpoint\nGrey — nothing set, the default applies";
|
|
11
3
|
export { e as LEGEND };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { labelHint as e, labelSource as t } from "./helpers.mjs";
|
|
2
|
-
import n from "../../
|
|
3
|
-
import r from "../../
|
|
2
|
+
import n from "../../hooks/useInspectorValues.mjs";
|
|
3
|
+
import r from "../../StyleInspectorContext.mjs";
|
|
4
4
|
import { memo as i, use as a, useCallback as o } from "react";
|
|
5
5
|
import { jsx as s } from "react/jsx-runtime";
|
|
6
6
|
import c from "clsx";
|
|
7
7
|
var l = i(({ keyValue: i, children: l, className: u = "", size: d = "small", sectionTitle: f = !1 }) => {
|
|
8
|
-
let { resetValue: p, inheritData: m } = a(
|
|
8
|
+
let { resetValue: p, inheritData: m } = a(r), h = n({
|
|
9
9
|
keys: i,
|
|
10
10
|
asValue: !1
|
|
11
11
|
}), { hasValues: g } = h, _ = t(h), v = e(_, g, i, m), y = o(() => {
|
|
@@ -39,5 +39,4 @@ var l = i(({ keyValue: i, children: l, className: u = "", size: d = "small", sec
|
|
|
39
39
|
})
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
|
-
//#endregion
|
|
43
42
|
export { l as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/builder/components/StyleInspector/components/InspectorLabel/helpers.ts
|
|
2
2
|
var e = ({ hasValues: e, hasInherit: t, hasBinding: n, hasVariables: r }) => n ? "binding" : r ? "variable" : e ? "value" : t ? "inherit" : "none", t = {
|
|
3
3
|
binding: "Bound to data",
|
|
4
4
|
variable: "Set on this selector, from a token",
|
|
@@ -12,5 +12,4 @@ var e = ({ hasValues: e, hasInherit: t, hasBinding: n, hasVariables: r }) => n ?
|
|
|
12
12
|
return n ? `${t[e]} — click to reset` : t[e];
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
|
-
//#endregion
|
|
16
15
|
export { n as labelHint, e as labelSource };
|
package/dist/builder/components/StyleInspector/components/InspectorSearch/InspectorSearch.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback as e } from "react";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import n from "@plitzi/plitzi-ui/Input";
|
|
4
|
-
|
|
4
|
+
// src/builder/components/StyleInspector/components/InspectorSearch/InspectorSearch.tsx
|
|
5
5
|
var r = ({ value: r, onChange: i }) => {
|
|
6
6
|
let a = e((e) => {
|
|
7
7
|
e.key === "Escape" && r && (e.stopPropagation(), i(""));
|
|
@@ -20,5 +20,4 @@ var r = ({ value: r, onChange: i }) => {
|
|
|
20
20
|
})
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
|
-
//#endregion
|
|
24
23
|
export { r as default };
|