@plitzi/sdk-style 0.38.9 → 0.38.11
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 +189 -0
- package/dist/components/InputEasing/InputEasingButton.mjs +1 -1
- package/dist/components/InputEasing/InputEasingList.mjs +5 -5
- package/dist/components/Selector/Selector.mjs +2 -1
- package/dist/components/Selector/SelectorItem/ItemOptions.mjs +45 -41
- package/dist/components/Selector/SelectorItem/SelectorItem.mjs +4 -4
- package/dist/components/Selector/SelectorItem/helpers.d.ts +2 -0
- package/dist/components/Selector/SelectorItem/helpers.mjs +4 -0
- package/dist/components/StyleInspector/Inspector.mjs +185 -171
- package/dist/components/StyleInspector/InspectorSearchContext.d.ts +3 -0
- package/dist/components/StyleInspector/InspectorSearchContext.mjs +6 -0
- package/dist/components/StyleInspector/StyleInspector.mjs +154 -128
- package/dist/components/StyleInspector/categories/Background/Background.mjs +82 -114
- package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/BackgroundAttachment.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/BackgroundAttachment.mjs +53 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/BackgroundLayer.mjs +159 -153
- package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/helpers.d.ts +11 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/helpers.mjs +45 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundPosition/BackgroundPosition.mjs +26 -23
- package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/BackgroundSize.mjs +65 -56
- package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/helpers.d.ts +4 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/helpers.mjs +8 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundTile/BackgroundTile.mjs +28 -27
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientPreviewBar.d.ts +4 -2
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientPreviewBar.mjs +19 -18
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.d.ts +4 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.mjs +48 -80
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopEditor.d.ts +5 -3
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopEditor.mjs +51 -41
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.d.ts +5 -1
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.mjs +54 -32
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopTrack.d.ts +3 -1
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopTrack.mjs +14 -13
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/helpers.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/helpers.mjs +8 -0
- package/dist/components/StyleInspector/categories/Background/components/LayerGroup/LayerGroup.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Background/components/LayerGroup/LayerGroup.mjs +11 -0
- package/dist/components/StyleInspector/categories/Background/components/LayerGroup/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Background/components/LayerGroup/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Background/helpers/backgroundParser.d.ts +21 -7
- package/dist/components/StyleInspector/categories/Background/helpers/backgroundParser.mjs +114 -113
- package/dist/components/StyleInspector/categories/Background/helpers/layerValues.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Background/helpers/layerValues.mjs +11 -0
- package/dist/components/StyleInspector/categories/Background/modes/ConicGradientMode.mjs +52 -87
- package/dist/components/StyleInspector/categories/Background/modes/ImageMode.mjs +16 -77
- package/dist/components/StyleInspector/categories/Background/modes/LinearGradientMode.mjs +19 -62
- package/dist/components/StyleInspector/categories/Background/modes/RadialGradientMode.mjs +79 -97
- package/dist/components/StyleInspector/categories/Background/modes/RawMode.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Background/modes/RawMode.mjs +22 -0
- package/dist/components/StyleInspector/categories/Background/modes/helpers.d.ts +19 -0
- package/dist/components/StyleInspector/categories/Background/modes/helpers.mjs +54 -0
- package/dist/components/StyleInspector/categories/Border/Border.mjs +26 -43
- package/dist/components/StyleInspector/categories/Border/BorderPlacements.mjs +60 -51
- package/dist/components/StyleInspector/categories/Display/Display.mjs +32 -49
- package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayFlexChild.mjs +33 -38
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadow.mjs +21 -33
- package/dist/components/StyleInspector/categories/Effects/Effects.mjs +131 -154
- package/dist/components/StyleInspector/categories/Effects/Filters/Filter.mjs +23 -31
- package/dist/components/StyleInspector/categories/Effects/Filters/FilterItem.d.ts +9 -5
- package/dist/components/StyleInspector/categories/Effects/Filters/FilterItem.mjs +57 -124
- package/dist/components/StyleInspector/categories/Effects/Filters/helpers.d.ts +25 -0
- package/dist/components/StyleInspector/categories/Effects/Filters/helpers.mjs +87 -0
- package/dist/components/StyleInspector/categories/Effects/Transform/Transform.mjs +18 -28
- package/dist/components/StyleInspector/categories/Effects/Transform/TransformItem.d.ts +1 -2
- package/dist/components/StyleInspector/categories/Effects/Transform/TransformItem.mjs +52 -76
- package/dist/components/StyleInspector/categories/Effects/Transform/transformFunctions.d.ts +5 -0
- package/dist/components/StyleInspector/categories/Effects/Transform/transformFunctions.mjs +8 -2
- package/dist/components/StyleInspector/categories/Effects/Transition/Transition.mjs +21 -37
- package/dist/components/StyleInspector/categories/Effects/Transition/TransitionEasing.d.ts +10 -0
- package/dist/components/StyleInspector/categories/Effects/Transition/TransitionEasing.mjs +92 -0
- package/dist/components/StyleInspector/categories/Effects/Transition/TransitionItem.d.ts +4 -4
- package/dist/components/StyleInspector/categories/Effects/Transition/TransitionItem.mjs +78 -359
- package/dist/components/StyleInspector/categories/Effects/Transition/helpers.d.ts +39 -0
- package/dist/components/StyleInspector/categories/Effects/Transition/helpers.mjs +268 -0
- package/dist/components/StyleInspector/categories/List/List.mjs +39 -38
- package/dist/components/StyleInspector/categories/ListItem/ListItem.mjs +29 -29
- package/dist/components/StyleInspector/categories/Others/Others.mjs +66 -88
- package/dist/components/StyleInspector/categories/Position/Position.mjs +67 -75
- package/dist/components/StyleInspector/categories/RawStyle/RawStyle.mjs +19 -18
- package/dist/components/StyleInspector/categories/Size/Size.mjs +68 -88
- package/dist/components/StyleInspector/categories/Spacing/Spacing.mjs +18 -27
- package/dist/components/StyleInspector/categories/Spacing/SpacingMargin.mjs +2 -2
- package/dist/components/StyleInspector/categories/Spacing/SpacingPadding.mjs +4 -3
- package/dist/components/StyleInspector/categories/Typography/Typography.mjs +88 -98
- package/dist/components/StyleInspector/categories/Typography/TypographyFont.mjs +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyStyle.mjs +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyTextShadow.mjs +26 -39
- package/dist/components/StyleInspector/categories/Variables/Variables.mjs +38 -37
- package/dist/components/StyleInspector/categoryKeys.d.ts +45 -0
- package/dist/components/StyleInspector/categoryKeys.mjs +220 -0
- package/dist/components/StyleInspector/components/CategoryContainer/CategoryContainer.mjs +43 -38
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionIconGroup.mjs +2 -1
- package/dist/components/StyleInspector/components/CategorySection/CategorySection.mjs +30 -15
- package/dist/components/StyleInspector/components/ColorSwatch/ColorSwatch.d.ts +8 -0
- package/dist/components/StyleInspector/components/ColorSwatch/ColorSwatch.mjs +23 -0
- package/dist/components/StyleInspector/components/ColorSwatch/helpers.d.ts +3 -0
- package/dist/components/StyleInspector/components/ColorSwatch/helpers.mjs +9 -0
- package/dist/components/StyleInspector/components/ColorSwatch/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/ColorSwatch/index.mjs +5 -0
- package/dist/components/StyleInspector/components/InspectorDots/InspectorDots.d.ts +1 -0
- package/dist/components/StyleInspector/components/InspectorDots/InspectorDots.mjs +11 -11
- package/dist/components/StyleInspector/components/InspectorFooter/InspectorFooter.d.ts +11 -0
- package/dist/components/StyleInspector/components/InspectorFooter/InspectorFooter.mjs +38 -0
- package/dist/components/StyleInspector/components/InspectorFooter/helpers.d.ts +2 -0
- package/dist/components/StyleInspector/components/InspectorFooter/helpers.mjs +11 -0
- package/dist/components/StyleInspector/components/InspectorFooter/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/InspectorFooter/index.mjs +5 -0
- package/dist/components/StyleInspector/components/InspectorLabel/InspectorLabel.mjs +34 -31
- package/dist/components/StyleInspector/components/InspectorLabel/helpers.d.ts +17 -0
- package/dist/components/StyleInspector/components/InspectorLabel/helpers.mjs +16 -0
- package/dist/components/StyleInspector/components/InspectorSearch/InspectorSearch.d.ts +7 -0
- package/dist/components/StyleInspector/components/InspectorSearch/InspectorSearch.mjs +24 -0
- package/dist/components/StyleInspector/components/InspectorSearch/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/InspectorSearch/index.mjs +5 -0
- package/dist/components/StyleInspector/components/ShadowItem/ShadowItem.d.ts +9 -0
- package/dist/components/StyleInspector/components/ShadowItem/ShadowItem.mjs +110 -0
- package/dist/components/StyleInspector/components/ShadowItem/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/ShadowItem/index.mjs +5 -0
- package/dist/components/StyleInspector/components/TargetSummary/TargetSummary.d.ts +7 -0
- package/dist/components/StyleInspector/components/TargetSummary/TargetSummary.mjs +24 -0
- package/dist/components/StyleInspector/components/TargetSummary/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/TargetSummary/index.mjs +5 -0
- package/dist/components/StyleInspector/components/ValueList/ValueList.d.ts +12 -0
- package/dist/components/StyleInspector/components/ValueList/ValueList.mjs +25 -0
- package/dist/components/StyleInspector/components/ValueList/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/ValueList/index.mjs +5 -0
- package/dist/components/StyleInspector/components/ValueListItem/ValueListItem.d.ts +16 -0
- package/dist/components/StyleInspector/components/ValueListItem/ValueListItem.mjs +71 -0
- package/dist/components/StyleInspector/components/ValueListItem/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/ValueListItem/index.mjs +5 -0
- package/dist/components/StyleInspector/cssValues.d.ts +15 -0
- package/dist/components/StyleInspector/cssValues.mjs +27 -0
- package/dist/components/StyleInspector/helpers.d.ts +17 -1
- package/dist/components/StyleInspector/helpers.mjs +9 -2
- package/dist/components/StyleInspector/hooks/useInspectorValues.mjs +42 -45
- package/dist/components/StyleInspector/search.d.ts +11 -0
- package/dist/components/StyleInspector/search.mjs +14 -0
- package/dist/components/StyleInspector/shadowValue.d.ts +20 -0
- package/dist/components/StyleInspector/shadowValue.mjs +36 -0
- package/dist/components/StyleManager/StyleSelectorTag.mjs +1 -1
- package/package.json +185 -17
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadowItem.d.ts +0 -8
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadowItem.mjs +0 -132
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/helpers.d.ts +0 -2
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/helpers.mjs +0 -18
- package/dist/components/StyleInspector/categories/Typography/TypographyTextShadowItem.d.ts +0 -8
- package/dist/components/StyleInspector/categories/Typography/TypographyTextShadowItem.mjs +0 -83
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { makeSelector as e } from "../../StyleHelper.mjs";
|
|
2
|
-
import t from "./
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
import { CATEGORY_IDS as t, CATEGORY_KEYS as n } from "./categoryKeys.mjs";
|
|
3
|
+
import r from "./InspectorSearchContext.mjs";
|
|
4
|
+
import { categoryMatches as i, normalizeQuery as ee } from "./search.mjs";
|
|
5
|
+
import a from "./categories/Background/index.mjs";
|
|
6
|
+
import te from "./categories/Border/index.mjs";
|
|
7
|
+
import ne from "./categories/Display/index.mjs";
|
|
8
|
+
import re from "./categories/DisplayFlexChild/index.mjs";
|
|
9
|
+
import ie from "./categories/Effects/index.mjs";
|
|
7
10
|
import o from "./categories/List/index.mjs";
|
|
8
11
|
import s from "./categories/ListItem/index.mjs";
|
|
9
12
|
import c from "./categories/Others/index.mjs";
|
|
@@ -13,187 +16,198 @@ import d from "./categories/Size/index.mjs";
|
|
|
13
16
|
import f from "./categories/Spacing/index.mjs";
|
|
14
17
|
import p from "./categories/Typography/index.mjs";
|
|
15
18
|
import m from "./categories/Variables/index.mjs";
|
|
16
|
-
import h from "./
|
|
17
|
-
import g from "./
|
|
18
|
-
import
|
|
19
|
+
import h from "./components/InspectorFooter/index.mjs";
|
|
20
|
+
import g from "./components/InspectorSearch/index.mjs";
|
|
21
|
+
import ae from "./hooks/useStyleInherit.mjs";
|
|
22
|
+
import oe from "./StyleInspectorProvider.mjs";
|
|
23
|
+
import { use as se, useCallback as _, useMemo as v, useState as y } from "react";
|
|
19
24
|
import { get as b, set as x } from "@plitzi/plitzi-ui/helpers";
|
|
20
|
-
import { produce as
|
|
21
|
-
import { jsx as
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import D from "@plitzi/plitzi-ui/Switch";
|
|
25
|
+
import { produce as ce } from "immer";
|
|
26
|
+
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
27
|
+
import w from "@plitzi/sdk-shared/builder/contexts/BuilderContext";
|
|
28
|
+
import T from "@plitzi/plitzi-ui/hooks/useStorage";
|
|
25
29
|
//#region src/components/StyleInspector/Inspector.tsx
|
|
26
|
-
var
|
|
27
|
-
let { builderHandler:
|
|
28
|
-
element:
|
|
29
|
-
componentType:
|
|
30
|
-
componentSubType:
|
|
31
|
-
selector:
|
|
32
|
-
styleSelector:
|
|
33
|
-
styleState:
|
|
34
|
-
styleVariant:
|
|
35
|
-
styleAncestor:
|
|
36
|
-
stylePseudo:
|
|
37
|
-
styleCondition:
|
|
38
|
-
}),
|
|
30
|
+
var E = ({ selectors: E, componentType: D, componentSubType: le, selector: O, styleState: k, styleVariant: A, styleAncestor: j, stylePseudo: M, styleCondition: N, styleSelector: P = "base", element: F, displayMode: I, mode: L = "element" }) => {
|
|
31
|
+
let { builderHandler: R } = se(w), [z, B] = T(`builder-state.styleInspector.${L}.collapsedCache`, {}), [V, H] = T(`builder-state.styleInspector.${L}.showAllOptions`, !1), [U, W] = T(`builder-state.styleInspector.${L}.replaceTokens`, !1), [G, ue] = y(""), K = ee(G), q = ae({
|
|
32
|
+
element: F,
|
|
33
|
+
componentType: D,
|
|
34
|
+
componentSubType: le,
|
|
35
|
+
selector: O?.name,
|
|
36
|
+
styleSelector: P,
|
|
37
|
+
styleState: k,
|
|
38
|
+
styleVariant: A,
|
|
39
|
+
styleAncestor: j,
|
|
40
|
+
stylePseudo: M,
|
|
41
|
+
styleCondition: N
|
|
42
|
+
}), J = _((e, t) => B((n) => ({
|
|
39
43
|
...n,
|
|
40
44
|
[e]: t
|
|
41
|
-
})), [
|
|
42
|
-
if (
|
|
43
|
-
|
|
44
|
-
componentType:
|
|
45
|
-
styleSelector:
|
|
46
|
-
styleState:
|
|
47
|
-
styleVariant:
|
|
48
|
-
styleAncestor:
|
|
49
|
-
stylePseudo:
|
|
50
|
-
styleCondition:
|
|
45
|
+
})), [B]), de = _(() => B(Object.fromEntries(t.map((e) => [e, !0]))), [B]), fe = _((e) => H(e.target.checked), [H]), pe = _((e) => W(e.target.checked), [W]), me = _((t, n) => {
|
|
46
|
+
if (O) {
|
|
47
|
+
R("styleUpdateSelector", I, O.name, t, n, {
|
|
48
|
+
componentType: O.type === "element" ? D : void 0,
|
|
49
|
+
styleSelector: P,
|
|
50
|
+
styleState: k,
|
|
51
|
+
styleVariant: A,
|
|
52
|
+
styleAncestor: j,
|
|
53
|
+
stylePseudo: M,
|
|
54
|
+
styleCondition: N
|
|
51
55
|
});
|
|
52
56
|
return;
|
|
53
57
|
}
|
|
54
|
-
if (!
|
|
55
|
-
let r = e(
|
|
56
|
-
if (
|
|
57
|
-
styleSelector:
|
|
58
|
-
styleState:
|
|
59
|
-
styleVariant:
|
|
60
|
-
styleAncestor:
|
|
61
|
-
stylePseudo:
|
|
62
|
-
styleCondition:
|
|
63
|
-
}), !
|
|
64
|
-
let i = b(
|
|
65
|
-
|
|
66
|
-
i ? x(e, `definition.styleSelectors.${
|
|
58
|
+
if (!D) return;
|
|
59
|
+
let r = e(D, P);
|
|
60
|
+
if (R("styleAddSelector", I, r, "class", t, n, {
|
|
61
|
+
styleSelector: P,
|
|
62
|
+
styleState: k,
|
|
63
|
+
styleVariant: A,
|
|
64
|
+
styleAncestor: j,
|
|
65
|
+
stylePseudo: M,
|
|
66
|
+
styleCondition: N
|
|
67
|
+
}), !F) return;
|
|
68
|
+
let i = b(F, `definition.styleSelectors.${P}`);
|
|
69
|
+
R("schemaUpdateElement", ce(F, (e) => {
|
|
70
|
+
i ? x(e, `definition.styleSelectors.${P}`, `${i} ${r}`) : x(e, `definition.styleSelectors.${P}`, r);
|
|
67
71
|
}));
|
|
68
72
|
}, [
|
|
69
|
-
V,
|
|
70
|
-
k,
|
|
71
|
-
z,
|
|
72
73
|
R,
|
|
74
|
+
D,
|
|
75
|
+
I,
|
|
76
|
+
F,
|
|
77
|
+
O,
|
|
78
|
+
P,
|
|
79
|
+
k,
|
|
80
|
+
A,
|
|
73
81
|
j,
|
|
74
|
-
L,
|
|
75
82
|
M,
|
|
76
|
-
N
|
|
77
|
-
|
|
78
|
-
F
|
|
79
|
-
|
|
80
|
-
]), $ = y(() => {
|
|
81
|
-
let e = R?.definition.type;
|
|
82
|
-
return W || B === "manager" || e === "list" || e === "listItem";
|
|
83
|
+
N
|
|
84
|
+
]), Y = v(() => {
|
|
85
|
+
let e = F?.definition.type;
|
|
86
|
+
return V || L === "manager" || e === "list" || e === "listItem";
|
|
83
87
|
}, [
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
]),
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
]),
|
|
92
|
-
return /* @__PURE__ */
|
|
93
|
-
componentType:
|
|
94
|
-
displayMode:
|
|
95
|
-
styleSelector:
|
|
96
|
-
styleState:
|
|
97
|
-
styleVariant:
|
|
98
|
-
styleAncestor:
|
|
99
|
-
stylePseudo:
|
|
100
|
-
styleCondition:
|
|
101
|
-
selector:
|
|
102
|
-
element:
|
|
103
|
-
inheritData:
|
|
104
|
-
onChange:
|
|
105
|
-
children: /* @__PURE__ */
|
|
106
|
-
|
|
107
|
-
children:
|
|
108
|
-
className: "flex grow flex-col",
|
|
109
|
-
children: [
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
88
|
+
F?.definition.type,
|
|
89
|
+
L,
|
|
90
|
+
V
|
|
91
|
+
]), X = v(() => V || L === "manager" || b(q, "parentStyle.display", "block") === "flex", [
|
|
92
|
+
q,
|
|
93
|
+
L,
|
|
94
|
+
V
|
|
95
|
+
]), he = v(() => b(q, "parentStyle.flex-direction", "row") === "column", [q]), Z = _((e) => e === "list" || e === "listItem" ? Y : e !== "displayFlexChild" || X, [X, Y]), Q = _((e) => Z(e) && i(n[e], K), [Z, K]), $ = _((e) => !K && (z[e] ?? !0), [z, K]), ge = !!K && !t.some(Q);
|
|
96
|
+
return /* @__PURE__ */ S(oe, {
|
|
97
|
+
componentType: D,
|
|
98
|
+
displayMode: I,
|
|
99
|
+
styleSelector: P,
|
|
100
|
+
styleState: k,
|
|
101
|
+
styleVariant: A,
|
|
102
|
+
styleAncestor: j,
|
|
103
|
+
stylePseudo: M,
|
|
104
|
+
styleCondition: N,
|
|
105
|
+
selector: O,
|
|
106
|
+
element: F,
|
|
107
|
+
inheritData: q,
|
|
108
|
+
onChange: me,
|
|
109
|
+
children: /* @__PURE__ */ S(r, {
|
|
110
|
+
value: K,
|
|
111
|
+
children: /* @__PURE__ */ C("div", {
|
|
112
|
+
className: "flex grow flex-col justify-between",
|
|
113
|
+
children: [/* @__PURE__ */ C("div", {
|
|
114
|
+
className: "flex grow flex-col",
|
|
115
|
+
children: [
|
|
116
|
+
/* @__PURE__ */ S(g, {
|
|
117
|
+
value: G,
|
|
118
|
+
onChange: ue
|
|
119
|
+
}),
|
|
120
|
+
ge && /* @__PURE__ */ C("p", {
|
|
121
|
+
className: "m-0 px-3 py-4 text-xs text-zinc-500 dark:text-zinc-400",
|
|
122
|
+
children: [
|
|
123
|
+
"No property here matches “",
|
|
124
|
+
G.trim(),
|
|
125
|
+
"”.",
|
|
126
|
+
!V && L === "element" && " “All options” includes the categories this element does not use."
|
|
127
|
+
]
|
|
128
|
+
}),
|
|
129
|
+
Q("list") && /* @__PURE__ */ S(o, {
|
|
130
|
+
replaceTokens: U,
|
|
131
|
+
isCollapsed: $("list"),
|
|
132
|
+
onCollapse: J
|
|
133
|
+
}),
|
|
134
|
+
Q("listItem") && /* @__PURE__ */ S(s, {
|
|
135
|
+
replaceTokens: U,
|
|
136
|
+
isCollapsed: $("listItem"),
|
|
137
|
+
onCollapse: J
|
|
138
|
+
}),
|
|
139
|
+
Q("display") && /* @__PURE__ */ S(ne, {
|
|
140
|
+
replaceTokens: U,
|
|
141
|
+
isCollapsed: $("display"),
|
|
142
|
+
onCollapse: J
|
|
143
|
+
}),
|
|
144
|
+
Q("displayFlexChild") && /* @__PURE__ */ S(re, {
|
|
145
|
+
replaceTokens: U,
|
|
146
|
+
isCollapsed: $("displayFlexChild"),
|
|
147
|
+
isFlexVertical: he,
|
|
148
|
+
onCollapse: J
|
|
149
|
+
}),
|
|
150
|
+
Q("spacing") && /* @__PURE__ */ S(f, {
|
|
151
|
+
replaceTokens: U,
|
|
152
|
+
isCollapsed: $("spacing"),
|
|
153
|
+
onCollapse: J
|
|
154
|
+
}),
|
|
155
|
+
Q("size") && /* @__PURE__ */ S(d, {
|
|
156
|
+
replaceTokens: U,
|
|
157
|
+
isCollapsed: $("size"),
|
|
158
|
+
onCollapse: J
|
|
159
|
+
}),
|
|
160
|
+
Q("position") && /* @__PURE__ */ S(l, {
|
|
161
|
+
replaceTokens: U,
|
|
162
|
+
isCollapsed: $("position"),
|
|
163
|
+
onCollapse: J
|
|
164
|
+
}),
|
|
165
|
+
Q("typography") && /* @__PURE__ */ S(p, {
|
|
166
|
+
replaceTokens: U,
|
|
167
|
+
isCollapsed: $("typography"),
|
|
168
|
+
onCollapse: J
|
|
169
|
+
}),
|
|
170
|
+
Q("background") && /* @__PURE__ */ S(a, {
|
|
171
|
+
replaceTokens: U,
|
|
172
|
+
isCollapsed: $("background"),
|
|
173
|
+
onCollapse: J
|
|
174
|
+
}),
|
|
175
|
+
Q("border") && /* @__PURE__ */ S(te, {
|
|
176
|
+
replaceTokens: U,
|
|
177
|
+
isCollapsed: $("border"),
|
|
178
|
+
onCollapse: J
|
|
179
|
+
}),
|
|
180
|
+
Q("effects") && /* @__PURE__ */ S(ie, {
|
|
181
|
+
replaceTokens: U,
|
|
182
|
+
isCollapsed: $("effects"),
|
|
183
|
+
onCollapse: J
|
|
184
|
+
}),
|
|
185
|
+
Q("others") && /* @__PURE__ */ S(c, {
|
|
186
|
+
replaceTokens: U,
|
|
187
|
+
isCollapsed: $("others"),
|
|
188
|
+
onCollapse: J
|
|
189
|
+
}),
|
|
190
|
+
Q("variables") && /* @__PURE__ */ S(m, {
|
|
191
|
+
isCollapsed: $("variables"),
|
|
192
|
+
onCollapse: J
|
|
193
|
+
}),
|
|
194
|
+
Q("rawStyle") && /* @__PURE__ */ S(u, {
|
|
195
|
+
isCollapsed: $("rawStyle"),
|
|
196
|
+
selectors: E,
|
|
197
|
+
onCollapse: J
|
|
198
|
+
})
|
|
199
|
+
]
|
|
200
|
+
}), /* @__PURE__ */ S(h, {
|
|
201
|
+
replaceTokens: U,
|
|
202
|
+
showAllOptions: V,
|
|
203
|
+
canShowAllOptions: L === "element",
|
|
204
|
+
onCollapseAll: de,
|
|
205
|
+
onChangeReplaceTokens: pe,
|
|
206
|
+
onChangeShowAllOptions: fe
|
|
193
207
|
})]
|
|
194
|
-
})
|
|
208
|
+
})
|
|
195
209
|
})
|
|
196
210
|
});
|
|
197
211
|
};
|
|
198
212
|
//#endregion
|
|
199
|
-
export {
|
|
213
|
+
export { E as default };
|