@plitzi/sdk-style 0.32.1 → 0.32.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 +20 -0
- package/dist/BuilderStyleContextProvider.d.ts +1 -1
- package/dist/BuilderStyleContextProvider.mjs +47 -45
- package/dist/SdkStyleContextProvider.d.ts +1 -1
- package/dist/SdkStyleContextProvider.mjs +3 -3
- package/dist/StyleAdvanceEditor.d.ts +1 -1
- package/dist/StyleAdvanceEditor.mjs +20 -20
- package/dist/StyleMap/helpers/isValueValid.mjs +1 -1
- package/dist/StyleMap/helpers/utils.mjs +1 -1
- package/dist/components/InputEasing/BezierEasing.mjs +26 -26
- package/dist/components/InputEasing/Curve.d.ts +1 -1
- package/dist/components/InputEasing/Grid.d.ts +1 -1
- package/dist/components/InputEasing/Grid.mjs +7 -1
- package/dist/components/InputEasing/InputEasing.d.ts +1 -1
- package/dist/components/InputEasing/InputEasingButton.d.ts +1 -1
- package/dist/components/InputEasing/InputEasingList.d.ts +1 -1
- package/dist/components/InputEasing/Progress.d.ts +1 -1
- package/dist/components/Selector/Selector.d.ts +1 -1
- package/dist/components/Selector/SelectorItem/ItemOptions.d.ts +1 -1
- package/dist/components/Selector/SelectorItem/SelectorItem.d.ts +1 -1
- package/dist/components/Selector/SelectorSuggestions/SelectorSuggestions.d.ts +1 -1
- package/dist/components/Selector/SelectorSuggestions/SuggestionsCreator.d.ts +1 -1
- package/dist/components/Selector/SelectorSuggestions/SuggestionsList.d.ts +1 -1
- package/dist/components/StyleInspector/Inspector.d.ts +1 -1
- package/dist/components/StyleInspector/StyleInspector.d.ts +1 -1
- package/dist/components/StyleInspector/StyleInspector.mjs +66 -66
- package/dist/components/StyleInspector/StyleInspectorProvider.d.ts +1 -1
- package/dist/components/StyleInspector/StyleInspectorProvider.mjs +24 -21
- package/dist/components/StyleInspector/categories/Background/Background.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/BackgroundLayer.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/components/BackgroundPosition/BackgroundPosition.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/BackgroundSize.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/components/BackgroundTile/BackgroundTile.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientPreviewBar.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopEditor.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopTrack.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/helpers/backgroundParser.mjs +1 -1
- package/dist/components/StyleInspector/categories/Background/modes/ConicGradientMode.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/modes/ImageMode.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/modes/LinearGradientMode.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Background/modes/RadialGradientMode.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Border/Border.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Border/BorderColor.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Border/BorderPlacements.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Border/BorderRadius.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Border/BorderStyle.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Border/BorderWidth.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/Display.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/DisplayElements.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/DisplayFlex.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/DisplayFlexAlignContent.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/DisplayFlexAlignItems.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/DisplayFlexDirection.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/DisplayFlexJustify.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/DisplayGap.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/DisplayGridGap.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Display/DisplayGridTemplate.d.ts +1 -1
- package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayAlignSelf.d.ts +1 -1
- package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayFlexChild.d.ts +1 -1
- package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayOrder.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadow.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadowItem.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Effects/Effects.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Effects/Filters/Filter.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Effects/Filters/FilterItem.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Effects/Transform/Transform.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Effects/Transform/TransformItem.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Effects/Transition/Transition.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Effects/Transition/TransitionItem.d.ts +1 -1
- package/dist/components/StyleInspector/categories/List/List.d.ts +1 -1
- package/dist/components/StyleInspector/categories/ListItem/ListItem.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Position/Position.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Position/PositionAdvanced.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Position/PositionAdvancedButtons.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Position/PositionClear.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Position/PositionFloat.d.ts +1 -1
- package/dist/components/StyleInspector/categories/RawStyle/RawStyle.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Size/Size.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Size/SizeFit.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Size/SizeOverflow.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Size/SizePosition.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Spacing/Spacing.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Spacing/SpacingEditor.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Spacing/SpacingMargin.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Spacing/SpacingNumber.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Spacing/SpacingPadding.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Typography/Typography.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyAlign.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyFont.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyStyle.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyTextShadow.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyTextShadowItem.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyTransform.d.ts +1 -1
- package/dist/components/StyleInspector/categories/Variables/Variables.d.ts +1 -1
- package/dist/components/StyleInspector/components/CategoryContainer/CategoryContainer.d.ts +1 -1
- package/dist/components/StyleInspector/components/CategoryOption/CategoryOption.d.ts +1 -1
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionColor.d.ts +1 -1
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionIconGroup.d.ts +1 -1
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionInput.d.ts +1 -1
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionMetricInput.d.ts +1 -1
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionSelect.d.ts +1 -1
- package/dist/components/StyleInspector/components/CategorySection/CategorySection.d.ts +1 -1
- package/dist/components/StyleInspector/components/InspectorDots/InspectorDots.d.ts +1 -1
- package/dist/components/StyleInspector/components/InspectorLabel/InspectorLabel.d.ts +1 -1
- package/dist/components/StyleInspector/hooks/useStyleBinding.mjs +4 -4
- package/dist/components/StyleInspector/hooks/useStyleInherit.mjs +5 -5
- package/dist/components/StyleManager/ManagerSelector.d.ts +1 -1
- package/dist/components/StyleManager/StyleManager.d.ts +1 -1
- package/dist/components/StyleManager/StyleManager.mjs +13 -13
- package/dist/components/StyleManager/StyleSelectorTag.d.ts +1 -1
- package/dist/helpers/processSelectorAttributes.mjs +1 -1
- package/dist/models/SelectorForm/SelectorForm.d.ts +1 -1
- package/package.json +7 -7
|
@@ -4,7 +4,7 @@ import { get as n, pick as r, set as i } from "@plitzi/plitzi-ui/helpers";
|
|
|
4
4
|
import { clsx as a } from "clsx";
|
|
5
5
|
import { use as o, useCallback as s, useEffect as c, useMemo as l, useState as u } from "react";
|
|
6
6
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { useBuilderStoreSync as p } from "@plitzi/sdk-shared/store";
|
|
8
8
|
import { produce as m } from "immer";
|
|
9
9
|
import h from "@plitzi/sdk-shared/builder/contexts/BuilderContext";
|
|
10
10
|
import g from "@plitzi/plitzi-ui/hooks/useDidUpdateEffect";
|
|
@@ -12,106 +12,106 @@ import _ from "@plitzi/plitzi-ui/Select";
|
|
|
12
12
|
import v from "@plitzi/plitzi-ui/Select2";
|
|
13
13
|
//#region src/components/StyleInspector/StyleInspector.tsx
|
|
14
14
|
var y = ({ displayMode: y, selectors: b, value: x, element: S, mode: C = "element", componentType: w, styleSelectors: T, styleSelectorsAvailables: E, componentSubTypesAvailables: D, allowStyleSelector: O = !0, allowStyleState: k = !0, allowStyleVariant: A = !0, onChange: j, onRemoveVariant: M }) => {
|
|
15
|
-
let
|
|
16
|
-
|
|
17
|
-
let { builderHandler:
|
|
15
|
+
let [N, P] = u(void 0), [F, I] = u("base"), [L, R] = u(void 0), [z, B] = u(void 0);
|
|
16
|
+
p("styleSelector", F, { enabled: C === "element" }), p("styleVariant", L, { enabled: C === "element" }), p("styleState", z, { enabled: C === "element" });
|
|
17
|
+
let { builderHandler: V } = o(h), H = l(() => n(T, F, ""), [T, F]), U = l(() => Object.values(r(b ?? {}, S ? [S.definition.type, ...H.split(" ")] : H.split(" "))), [
|
|
18
18
|
b,
|
|
19
19
|
S,
|
|
20
|
-
|
|
21
|
-
]),
|
|
20
|
+
H
|
|
21
|
+
]), W = l(() => x ? n(b, x) : void 0, [b, x]), G = l(() => Object.keys(W?.attributes[F]?.variants ?? {}).map((e) => ({
|
|
22
22
|
label: e,
|
|
23
23
|
value: e
|
|
24
|
-
})), [
|
|
24
|
+
})), [W?.attributes, F]);
|
|
25
25
|
c(() => {
|
|
26
|
-
if (
|
|
26
|
+
if (I("base"), C !== "element") return;
|
|
27
27
|
let e = n(T, "base", "").split(" "), t = e[e.length - 1];
|
|
28
|
-
j?.(t || ""),
|
|
28
|
+
j?.(t || ""), B(void 0), P(void 0);
|
|
29
29
|
}, [j, T]), g(() => {
|
|
30
30
|
if (C === "element") {
|
|
31
31
|
if (x !== S?.definition.type) {
|
|
32
|
-
let e = n(T,
|
|
32
|
+
let e = n(T, F, "").split(" ");
|
|
33
33
|
j?.(e[e.length - 1]);
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
B(void 0), R(void 0), P(void 0);
|
|
36
36
|
}
|
|
37
|
-
}, [
|
|
38
|
-
|
|
37
|
+
}, [F]), g(() => {
|
|
38
|
+
B(void 0), R(void 0), P(void 0);
|
|
39
39
|
}, [x]);
|
|
40
|
-
let
|
|
40
|
+
let K = s((e, t, r) => {
|
|
41
41
|
if (t && !r) return;
|
|
42
42
|
let { name: i, type: a } = e;
|
|
43
|
-
!t && i !== "" && !b?.[i] ?
|
|
44
|
-
styleSelector:
|
|
43
|
+
!t && i !== "" && !b?.[i] ? V("styleAddSelector", y, i, a, void 0, void 0, {
|
|
44
|
+
styleSelector: F,
|
|
45
45
|
componentType: a === "element" ? w : void 0
|
|
46
|
-
}) : t && r && r.name !== i && b?.[r.name] && !b[i] &&
|
|
47
|
-
styleSelector:
|
|
46
|
+
}) : t && r && r.name !== i && b?.[r.name] && !b[i] && V("styleAddSelector", y, i, a, void 0, n(b, `${r.name}.attributes`, {}), {
|
|
47
|
+
styleSelector: F,
|
|
48
48
|
componentType: a === "element" ? w : void 0
|
|
49
49
|
});
|
|
50
50
|
}, [
|
|
51
|
-
|
|
51
|
+
V,
|
|
52
52
|
w,
|
|
53
53
|
y,
|
|
54
54
|
b,
|
|
55
|
-
|
|
56
|
-
]),
|
|
55
|
+
F
|
|
56
|
+
]), q = s((e) => {
|
|
57
57
|
if (!e || x && x === e.name) {
|
|
58
58
|
j?.(void 0);
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
61
|
j?.(e.name);
|
|
62
|
-
}, [j, x]),
|
|
63
|
-
S &&
|
|
64
|
-
i(t, `definition.styleSelectors.${
|
|
62
|
+
}, [j, x]), J = s((e) => {
|
|
63
|
+
S && V("schemaUpdateElement", m(S, (t) => {
|
|
64
|
+
i(t, `definition.styleSelectors.${F}`, e);
|
|
65
65
|
}));
|
|
66
66
|
}, [
|
|
67
67
|
S,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
]),
|
|
71
|
-
|
|
72
|
-
}, [
|
|
73
|
-
|
|
74
|
-
}, []),
|
|
75
|
-
|
|
76
|
-
}, []),
|
|
77
|
-
M?.(e.value),
|
|
78
|
-
styleSelector:
|
|
68
|
+
V,
|
|
69
|
+
F
|
|
70
|
+
]), Y = s((e) => {
|
|
71
|
+
V("styleRemoveSelector", y, e.name);
|
|
72
|
+
}, [V, y]), X = s((e) => P(e), []), Z = s((e) => {
|
|
73
|
+
I(e);
|
|
74
|
+
}, []), Q = s((e) => B(e?.value), []), $ = s((e) => {
|
|
75
|
+
R(e?.value);
|
|
76
|
+
}, []), ee = s((e) => {
|
|
77
|
+
M?.(e.value), z && B(void 0), e.value === L && R(void 0), V("styleUpdateSelector", y, W?.name, void 0, void 0, {
|
|
78
|
+
styleSelector: F,
|
|
79
79
|
styleVariant: e.value,
|
|
80
|
-
styleState:
|
|
81
|
-
componentType:
|
|
80
|
+
styleState: z,
|
|
81
|
+
componentType: W?.componentType
|
|
82
82
|
});
|
|
83
83
|
}, [
|
|
84
|
-
|
|
84
|
+
V,
|
|
85
85
|
y,
|
|
86
86
|
M,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
]),
|
|
87
|
+
W?.componentType,
|
|
88
|
+
W?.name,
|
|
89
|
+
F,
|
|
90
|
+
z,
|
|
91
|
+
L
|
|
92
|
+
]), te = O && (A || k || !!E?.length || !!D?.length);
|
|
93
93
|
return /* @__PURE__ */ f("div", {
|
|
94
94
|
className: "flex w-full grow flex-col gap-2",
|
|
95
95
|
children: [/* @__PURE__ */ f("div", {
|
|
96
96
|
className: "flex w-full flex-col gap-2 px-1",
|
|
97
97
|
children: [C === "element" && /* @__PURE__ */ d(t, {
|
|
98
98
|
className: "min-h-0 w-full",
|
|
99
|
-
value:
|
|
99
|
+
value: H,
|
|
100
100
|
selectors: b,
|
|
101
|
-
selector:
|
|
101
|
+
selector: W,
|
|
102
102
|
componentType: w,
|
|
103
|
-
onAdd:
|
|
104
|
-
onChange:
|
|
105
|
-
onRemove:
|
|
106
|
-
onSelectorSelected:
|
|
107
|
-
}),
|
|
103
|
+
onAdd: K,
|
|
104
|
+
onChange: J,
|
|
105
|
+
onRemove: Y,
|
|
106
|
+
onSelectorSelected: q
|
|
107
|
+
}), te && /* @__PURE__ */ f("div", {
|
|
108
108
|
className: a("flex w-full items-center gap-2", { "mt-2": C === "manager" }),
|
|
109
109
|
children: [
|
|
110
110
|
!!D?.length && /* @__PURE__ */ d(_, {
|
|
111
111
|
className: "grow basis-0",
|
|
112
112
|
size: "xs",
|
|
113
|
-
value:
|
|
114
|
-
onChange:
|
|
113
|
+
value: N,
|
|
114
|
+
onChange: X,
|
|
115
115
|
children: D.map((e) => /* @__PURE__ */ d("option", {
|
|
116
116
|
value: e,
|
|
117
117
|
children: e
|
|
@@ -120,8 +120,8 @@ var y = ({ displayMode: y, selectors: b, value: x, element: S, mode: C = "elemen
|
|
|
120
120
|
E && E.length > 1 && /* @__PURE__ */ d(_, {
|
|
121
121
|
className: "grow basis-0",
|
|
122
122
|
size: "xs",
|
|
123
|
-
onChange:
|
|
124
|
-
value:
|
|
123
|
+
onChange: Z,
|
|
124
|
+
value: F,
|
|
125
125
|
children: E.map((e) => /* @__PURE__ */ d("option", {
|
|
126
126
|
value: e,
|
|
127
127
|
children: e
|
|
@@ -131,22 +131,22 @@ var y = ({ displayMode: y, selectors: b, value: x, element: S, mode: C = "elemen
|
|
|
131
131
|
className: "grow basis-0",
|
|
132
132
|
children: /* @__PURE__ */ d(v, {
|
|
133
133
|
className: "grow basis-0",
|
|
134
|
-
value:
|
|
135
|
-
options:
|
|
134
|
+
value: L,
|
|
135
|
+
options: G,
|
|
136
136
|
placeholder: "Variant",
|
|
137
137
|
size: "xs",
|
|
138
138
|
allowCreateOptions: !0,
|
|
139
139
|
allowRemoveOptions: !0,
|
|
140
140
|
clearable: !0,
|
|
141
|
-
onChange:
|
|
142
|
-
onRemove:
|
|
141
|
+
onChange: $,
|
|
142
|
+
onRemove: ee
|
|
143
143
|
})
|
|
144
144
|
}),
|
|
145
145
|
k && /* @__PURE__ */ d("div", {
|
|
146
146
|
className: "grow basis-0",
|
|
147
147
|
children: /* @__PURE__ */ d(v, {
|
|
148
148
|
className: "grow basis-0",
|
|
149
|
-
value:
|
|
149
|
+
value: z,
|
|
150
150
|
options: [
|
|
151
151
|
{
|
|
152
152
|
label: "Hover",
|
|
@@ -176,7 +176,7 @@ var y = ({ displayMode: y, selectors: b, value: x, element: S, mode: C = "elemen
|
|
|
176
176
|
placeholder: "State",
|
|
177
177
|
size: "xs",
|
|
178
178
|
clearable: !0,
|
|
179
|
-
onChange:
|
|
179
|
+
onChange: Q
|
|
180
180
|
})
|
|
181
181
|
})
|
|
182
182
|
]
|
|
@@ -184,12 +184,12 @@ var y = ({ displayMode: y, selectors: b, value: x, element: S, mode: C = "elemen
|
|
|
184
184
|
}), /* @__PURE__ */ d("div", {
|
|
185
185
|
className: "flex grow basis-0 flex-col overflow-auto border-t border-gray-300 dark:border-zinc-700",
|
|
186
186
|
children: /* @__PURE__ */ d(e, {
|
|
187
|
-
selectors:
|
|
187
|
+
selectors: U,
|
|
188
188
|
componentType: w,
|
|
189
|
-
selector:
|
|
190
|
-
styleSelector:
|
|
191
|
-
styleState:
|
|
192
|
-
styleVariant:
|
|
189
|
+
selector: W,
|
|
190
|
+
styleSelector: F,
|
|
191
|
+
styleState: z,
|
|
192
|
+
styleVariant: L,
|
|
193
193
|
element: S,
|
|
194
194
|
displayMode: y,
|
|
195
195
|
mode: C
|
|
@@ -13,5 +13,5 @@ export type StyleInspectorProviderProps = {
|
|
|
13
13
|
displayMode: DisplayMode;
|
|
14
14
|
onChange?: (path?: StyleCategory, values?: StyleObject | StyleValue) => void;
|
|
15
15
|
};
|
|
16
|
-
declare const StyleInspectorProvider: ({ children, componentType, selector, styleSelector, styleState, styleVariant, element, inheritData, displayMode, onChange }: StyleInspectorProviderProps) => import("react
|
|
16
|
+
declare const StyleInspectorProvider: ({ children, componentType, selector, styleSelector, styleState, styleVariant, element, inheritData, displayMode, onChange }: StyleInspectorProviderProps) => import("react").JSX.Element;
|
|
17
17
|
export default StyleInspectorProvider;
|
|
@@ -4,11 +4,11 @@ import { get as n, omit as r } from "@plitzi/plitzi-ui/helpers";
|
|
|
4
4
|
import { useCallback as i, useMemo as a } from "react";
|
|
5
5
|
import { jsx as o } from "react/jsx-runtime";
|
|
6
6
|
import { emptyObject as s } from "@plitzi/sdk-shared/helpers/utils";
|
|
7
|
-
import {
|
|
7
|
+
import { useCommonStore as c } from "@plitzi/sdk-shared/store";
|
|
8
8
|
import { baseDefaultValue as l } from "@plitzi/sdk-shared";
|
|
9
9
|
//#region src/components/StyleInspector/StyleInspectorProvider.tsx
|
|
10
10
|
var u = ({ children: u, componentType: d, selector: f, styleSelector: p = "base", styleState: m, styleVariant: h, element: g, inheritData: _, displayMode: v, onChange: y }) => {
|
|
11
|
-
let b = t({ element: g }),
|
|
11
|
+
let b = t({ element: g }), [x = s] = c("runtime.sources.variables"), S = i(() => {
|
|
12
12
|
let e;
|
|
13
13
|
if (f && p && f.attributes[p]) {
|
|
14
14
|
let t = f.attributes[p];
|
|
@@ -20,11 +20,11 @@ var u = ({ children: u, componentType: d, selector: f, styleSelector: p = "base"
|
|
|
20
20
|
p,
|
|
21
21
|
m,
|
|
22
22
|
h
|
|
23
|
-
]),
|
|
23
|
+
]), C = i((e, t) => {
|
|
24
24
|
if (!(e && typeof t != "string" && typeof t != "number" && t !== void 0 || !e && typeof t != "object" && t !== void 0 || e && n(b, e))) {
|
|
25
25
|
if (!e && t && typeof t == "object" && (t = r(t, Object.keys(b))), !e && f && typeof t == "object") {
|
|
26
26
|
let e = {
|
|
27
|
-
...
|
|
27
|
+
...S(),
|
|
28
28
|
...t
|
|
29
29
|
};
|
|
30
30
|
Object.keys(e).forEach((t) => {
|
|
@@ -35,18 +35,21 @@ var u = ({ children: u, componentType: d, selector: f, styleSelector: p = "base"
|
|
|
35
35
|
}
|
|
36
36
|
}, [
|
|
37
37
|
b,
|
|
38
|
-
|
|
38
|
+
S,
|
|
39
39
|
y,
|
|
40
40
|
f
|
|
41
|
-
]),
|
|
41
|
+
]), w = i((e) => Array.isArray(e) ? e.reduce((e, t) => ({
|
|
42
42
|
...e,
|
|
43
43
|
[t]: n(l, t)
|
|
44
|
-
}), {}) : e ? n(l, e) : l, []),
|
|
45
|
-
Array.isArray(e)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
}), {}) : e ? n(l, e) : l, []), T = i((e) => {
|
|
45
|
+
if (Array.isArray(e)) {
|
|
46
|
+
let t = e.reduce((e, t) => ({
|
|
47
|
+
...e,
|
|
48
|
+
[t]: void 0
|
|
49
|
+
}), {});
|
|
50
|
+
C(void 0, t);
|
|
51
|
+
} else C(e);
|
|
52
|
+
}, [C]);
|
|
50
53
|
return /* @__PURE__ */ o(e, {
|
|
51
54
|
value: a(() => ({
|
|
52
55
|
componentType: d,
|
|
@@ -55,13 +58,13 @@ var u = ({ children: u, componentType: d, selector: f, styleSelector: p = "base"
|
|
|
55
58
|
styleState: m,
|
|
56
59
|
styleVariant: h,
|
|
57
60
|
displayMode: v,
|
|
58
|
-
variables:
|
|
61
|
+
variables: x,
|
|
59
62
|
inheritData: _.style,
|
|
60
63
|
bindingData: b,
|
|
61
|
-
getValues:
|
|
62
|
-
setValue:
|
|
63
|
-
resetValue:
|
|
64
|
-
getDefaultValue:
|
|
64
|
+
getValues: S,
|
|
65
|
+
setValue: C,
|
|
66
|
+
resetValue: T,
|
|
67
|
+
getDefaultValue: w
|
|
65
68
|
}), [
|
|
66
69
|
d,
|
|
67
70
|
f,
|
|
@@ -69,13 +72,13 @@ var u = ({ children: u, componentType: d, selector: f, styleSelector: p = "base"
|
|
|
69
72
|
m,
|
|
70
73
|
h,
|
|
71
74
|
v,
|
|
72
|
-
|
|
75
|
+
x,
|
|
73
76
|
_.style,
|
|
74
77
|
b,
|
|
78
|
+
S,
|
|
75
79
|
C,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
T
|
|
80
|
+
T,
|
|
81
|
+
w
|
|
79
82
|
]),
|
|
80
83
|
children: u
|
|
81
84
|
});
|
|
@@ -3,5 +3,5 @@ export type BackgroundProps = {
|
|
|
3
3
|
isCollapsed?: boolean;
|
|
4
4
|
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: BackgroundProps) => import("react
|
|
6
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: BackgroundProps) => import("react").JSX.Element>;
|
|
7
7
|
export default _default;
|
|
@@ -8,5 +8,5 @@ export type BackgroundLayerProps = {
|
|
|
8
8
|
onRemove: () => void;
|
|
9
9
|
onReorder: (fromIndex: number, toIndex: number) => void;
|
|
10
10
|
};
|
|
11
|
-
declare const _default: import('react').MemoExoticComponent<({ layer, index, expanded, onExpand, onChange, onRemove, onReorder }: BackgroundLayerProps) => import("react
|
|
11
|
+
declare const _default: import('react').MemoExoticComponent<({ layer, index, expanded, onExpand, onChange, onRemove, onReorder }: BackgroundLayerProps) => import("react").JSX.Element>;
|
|
12
12
|
export default _default;
|
|
@@ -3,5 +3,5 @@ export type BackgroundPositionProps = {
|
|
|
3
3
|
layer: BackgroundLayer;
|
|
4
4
|
onChange?: (layer: BackgroundLayer) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const BackgroundPosition: ({ layer, onChange }: BackgroundPositionProps) => import("react
|
|
6
|
+
declare const BackgroundPosition: ({ layer, onChange }: BackgroundPositionProps) => import("react").JSX.Element;
|
|
7
7
|
export default BackgroundPosition;
|
|
@@ -3,5 +3,5 @@ export type BackgroundSizeProps = {
|
|
|
3
3
|
layer: BackgroundLayer;
|
|
4
4
|
onChange?: (layer: BackgroundLayer) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const BackgroundSize: ({ layer, onChange }: BackgroundSizeProps) => import("react
|
|
6
|
+
declare const BackgroundSize: ({ layer, onChange }: BackgroundSizeProps) => import("react").JSX.Element;
|
|
7
7
|
export default BackgroundSize;
|
|
@@ -3,5 +3,5 @@ export type BackgroundTileProps = {
|
|
|
3
3
|
layer: BackgroundLayer;
|
|
4
4
|
onChange?: (layer: BackgroundLayer) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const BackgroundTile: ({ layer, onChange }: BackgroundTileProps) => import("react
|
|
6
|
+
declare const BackgroundTile: ({ layer, onChange }: BackgroundTileProps) => import("react").JSX.Element;
|
|
7
7
|
export default BackgroundTile;
|
|
@@ -3,5 +3,5 @@ type GradientPreviewBarProps = {
|
|
|
3
3
|
gradientCSS: string;
|
|
4
4
|
onClick: (e: MouseEvent<HTMLDivElement>) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const GradientPreviewBar: ({ gradientCSS, onClick }: GradientPreviewBarProps) => import("react
|
|
6
|
+
declare const GradientPreviewBar: ({ gradientCSS, onClick }: GradientPreviewBarProps) => import("react").JSX.Element;
|
|
7
7
|
export default GradientPreviewBar;
|
|
@@ -3,5 +3,5 @@ export type GradientStopBarProps = {
|
|
|
3
3
|
stops: GradientStop[];
|
|
4
4
|
onChange?: (stops: GradientStop[]) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const GradientStopBar: ({ stops, onChange }: GradientStopBarProps) => import("react
|
|
6
|
+
declare const GradientStopBar: ({ stops, onChange }: GradientStopBarProps) => import("react").JSX.Element;
|
|
7
7
|
export default GradientStopBar;
|
|
@@ -6,5 +6,5 @@ type GradientStopEditorProps = {
|
|
|
6
6
|
onPositionChange: (value: unknown) => void;
|
|
7
7
|
onRemove: () => void;
|
|
8
8
|
};
|
|
9
|
-
declare const GradientStopEditor: ({ stop, showRemove, onColorChange, onPositionChange, onRemove }: GradientStopEditorProps) => import("react
|
|
9
|
+
declare const GradientStopEditor: ({ stop, showRemove, onColorChange, onPositionChange, onRemove }: GradientStopEditorProps) => import("react").JSX.Element;
|
|
10
10
|
export default GradientStopEditor;
|
|
@@ -7,5 +7,5 @@ type GradientStopHandleProps = {
|
|
|
7
7
|
onPositionChange: (stopId: string, pct: number) => void;
|
|
8
8
|
onSelect: (stopId: string) => void;
|
|
9
9
|
};
|
|
10
|
-
declare const GradientStopHandle: ({ stop, selected, trackRef, onPositionChange, onSelect }: GradientStopHandleProps) => import("react
|
|
10
|
+
declare const GradientStopHandle: ({ stop, selected, trackRef, onPositionChange, onSelect }: GradientStopHandleProps) => import("react").JSX.Element;
|
|
11
11
|
export default GradientStopHandle;
|
|
@@ -5,5 +5,5 @@ type GradientStopTrackProps = {
|
|
|
5
5
|
onChange?: (stops: GradientStop[]) => void;
|
|
6
6
|
onSelect: (id: string) => void;
|
|
7
7
|
};
|
|
8
|
-
declare const GradientStopTrack: ({ stops, selectedId, onChange, onSelect }: GradientStopTrackProps) => import("react
|
|
8
|
+
declare const GradientStopTrack: ({ stops, selectedId, onChange, onSelect }: GradientStopTrackProps) => import("react").JSX.Element;
|
|
9
9
|
export default GradientStopTrack;
|
|
@@ -179,4 +179,4 @@ function h(e) {
|
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
181
|
//#endregion
|
|
182
|
-
export { t as DEFAULT_LAYER_PROPS, e as DEFAULT_STOPS, r as newLayerId, i as newStopId, f as parseBackgroundLayers, m as serializeLayerImage, h as serializeLayersToCSS };
|
|
182
|
+
export { t as DEFAULT_LAYER_PROPS, e as DEFAULT_STOPS, r as newLayerId, i as newStopId, f as parseBackgroundLayers, m as serializeLayerImage, h as serializeLayersToCSS, p as serializeStop, a as splitTopLevelCommas };
|
|
@@ -3,5 +3,5 @@ export type ConicGradientModeProps = {
|
|
|
3
3
|
layer: BackgroundLayer;
|
|
4
4
|
onChange?: (layer: BackgroundLayer) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const ConicGradientMode: ({ layer, onChange }: ConicGradientModeProps) => import("react
|
|
6
|
+
declare const ConicGradientMode: ({ layer, onChange }: ConicGradientModeProps) => import("react").JSX.Element;
|
|
7
7
|
export default ConicGradientMode;
|
|
@@ -3,5 +3,5 @@ export type ImageModeProps = {
|
|
|
3
3
|
layer: BackgroundLayer;
|
|
4
4
|
onChange?: (layer: BackgroundLayer) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const ImageMode: ({ layer, onChange }: ImageModeProps) => import("react
|
|
6
|
+
declare const ImageMode: ({ layer, onChange }: ImageModeProps) => import("react").JSX.Element;
|
|
7
7
|
export default ImageMode;
|
|
@@ -3,5 +3,5 @@ export type LinearGradientModeProps = {
|
|
|
3
3
|
layer: BackgroundLayer;
|
|
4
4
|
onChange?: (layer: BackgroundLayer) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const LinearGradientMode: ({ layer, onChange }: LinearGradientModeProps) => import("react
|
|
6
|
+
declare const LinearGradientMode: ({ layer, onChange }: LinearGradientModeProps) => import("react").JSX.Element;
|
|
7
7
|
export default LinearGradientMode;
|
|
@@ -3,5 +3,5 @@ export type RadialGradientModeProps = {
|
|
|
3
3
|
layer: BackgroundLayer;
|
|
4
4
|
onChange?: (layer: BackgroundLayer) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const RadialGradientMode: ({ layer, onChange }: RadialGradientModeProps) => import("react
|
|
6
|
+
declare const RadialGradientMode: ({ layer, onChange }: RadialGradientModeProps) => import("react").JSX.Element;
|
|
7
7
|
export default RadialGradientMode;
|
|
@@ -3,5 +3,5 @@ export type BorderProps = {
|
|
|
3
3
|
isCollapsed?: boolean;
|
|
4
4
|
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: BorderProps) => import("react
|
|
6
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: BorderProps) => import("react").JSX.Element>;
|
|
7
7
|
export default _default;
|
|
@@ -4,5 +4,5 @@ export type BorderColorProps = {
|
|
|
4
4
|
currentPlacement: string;
|
|
5
5
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const BorderColor: ({ values, currentPlacement, onChange }: BorderColorProps) => import("react
|
|
7
|
+
declare const BorderColor: ({ values, currentPlacement, onChange }: BorderColorProps) => import("react").JSX.Element;
|
|
8
8
|
export default BorderColor;
|
|
@@ -3,5 +3,5 @@ export type BorderPlacementsProps = {
|
|
|
3
3
|
currentPlacement: Placement;
|
|
4
4
|
setCurrentPlacement: (value: Placement) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const BorderPlacements: ({ currentPlacement, setCurrentPlacement }: BorderPlacementsProps) => import("react
|
|
6
|
+
declare const BorderPlacements: ({ currentPlacement, setCurrentPlacement }: BorderPlacementsProps) => import("react").JSX.Element;
|
|
7
7
|
export default BorderPlacements;
|
|
@@ -4,5 +4,5 @@ export type BorderRadiusProps = {
|
|
|
4
4
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
5
|
onChangeSegment?: (type: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const BorderRadius: ({ values, onChange, onChangeSegment }: BorderRadiusProps) => import("react
|
|
7
|
+
declare const BorderRadius: ({ values, onChange, onChangeSegment }: BorderRadiusProps) => import("react").JSX.Element;
|
|
8
8
|
export default BorderRadius;
|
|
@@ -4,5 +4,5 @@ export type BorderStyleProps = {
|
|
|
4
4
|
currentPlacement: string;
|
|
5
5
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const BorderStyle: ({ values, currentPlacement, onChange }: BorderStyleProps) => import("react
|
|
7
|
+
declare const BorderStyle: ({ values, currentPlacement, onChange }: BorderStyleProps) => import("react").JSX.Element;
|
|
8
8
|
export default BorderStyle;
|
|
@@ -4,5 +4,5 @@ export type BorderWidthProps = {
|
|
|
4
4
|
currentPlacement: string;
|
|
5
5
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const BorderWidth: ({ values, currentPlacement, onChange }: BorderWidthProps) => import("react
|
|
7
|
+
declare const BorderWidth: ({ values, currentPlacement, onChange }: BorderWidthProps) => import("react").JSX.Element;
|
|
8
8
|
export default BorderWidth;
|
|
@@ -3,5 +3,5 @@ export type DisplayProps = {
|
|
|
3
3
|
isCollapsed?: boolean;
|
|
4
4
|
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: DisplayProps) => import("react
|
|
6
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: DisplayProps) => import("react").JSX.Element>;
|
|
7
7
|
export default _default;
|
|
@@ -3,5 +3,5 @@ export type DisplayElementsProps = {
|
|
|
3
3
|
value?: StyleValue;
|
|
4
4
|
onChange?: (type: StyleCategory, value: StyleValue) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const DisplayElements: ({ value, onChange }: DisplayElementsProps) => import("react
|
|
6
|
+
declare const DisplayElements: ({ value, onChange }: DisplayElementsProps) => import("react").JSX.Element;
|
|
7
7
|
export default DisplayElements;
|
|
@@ -4,5 +4,5 @@ export type DisplayFlexProps = {
|
|
|
4
4
|
isReverse: boolean;
|
|
5
5
|
onChange?: (type: StyleCategory, value: StyleValue) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const DisplayFlex: ({ value, isReverse, onChange }: DisplayFlexProps) => import("react
|
|
7
|
+
declare const DisplayFlex: ({ value, isReverse, onChange }: DisplayFlexProps) => import("react").JSX.Element;
|
|
8
8
|
export default DisplayFlex;
|
|
@@ -5,5 +5,5 @@ export type DisplayFlexAlignContentProps = {
|
|
|
5
5
|
isRow?: boolean;
|
|
6
6
|
onChange?: (type: StyleCategory, value: StyleValue) => void;
|
|
7
7
|
};
|
|
8
|
-
declare const DisplayFlexAlignContent: ({ value, isReverse, isRow, onChange }: DisplayFlexAlignContentProps) => import("react
|
|
8
|
+
declare const DisplayFlexAlignContent: ({ value, isReverse, isRow, onChange }: DisplayFlexAlignContentProps) => import("react").JSX.Element;
|
|
9
9
|
export default DisplayFlexAlignContent;
|
|
@@ -5,5 +5,5 @@ export type DisplayFlexAlignItemsProps = {
|
|
|
5
5
|
isRow: boolean;
|
|
6
6
|
onChange?: (type: StyleCategory, value: StyleValue) => void;
|
|
7
7
|
};
|
|
8
|
-
declare const DisplayFlexAlignItems: ({ value, isReverse, isRow, onChange }: DisplayFlexAlignItemsProps) => import("react
|
|
8
|
+
declare const DisplayFlexAlignItems: ({ value, isReverse, isRow, onChange }: DisplayFlexAlignItemsProps) => import("react").JSX.Element;
|
|
9
9
|
export default DisplayFlexAlignItems;
|
|
@@ -4,5 +4,5 @@ export type DisplayFlexDirectionProps = {
|
|
|
4
4
|
isReverse: boolean;
|
|
5
5
|
onChange?: (type: StyleCategory, value: StyleValue) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const DisplayFlexDirection: ({ value, isReverse, onChange }: DisplayFlexDirectionProps) => import("react
|
|
7
|
+
declare const DisplayFlexDirection: ({ value, isReverse, onChange }: DisplayFlexDirectionProps) => import("react").JSX.Element;
|
|
8
8
|
export default DisplayFlexDirection;
|
|
@@ -5,5 +5,5 @@ export type DisplayFlexJustifyProps = {
|
|
|
5
5
|
isRow: boolean;
|
|
6
6
|
onChange?: (type: StyleCategory, value: StyleValue) => void;
|
|
7
7
|
};
|
|
8
|
-
declare const DisplayFlexJustify: ({ value, isReverse, isRow, onChange }: DisplayFlexJustifyProps) => import("react
|
|
8
|
+
declare const DisplayFlexJustify: ({ value, isReverse, isRow, onChange }: DisplayFlexJustifyProps) => import("react").JSX.Element;
|
|
9
9
|
export default DisplayFlexJustify;
|
|
@@ -4,5 +4,5 @@ export type DisplayGapProps = {
|
|
|
4
4
|
columnGap?: StyleValue;
|
|
5
5
|
onChange?: (type: StyleCategory, value: StyleValue) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const DisplayGap: ({ rowGap, columnGap, onChange }: DisplayGapProps) => import("react
|
|
7
|
+
declare const DisplayGap: ({ rowGap, columnGap, onChange }: DisplayGapProps) => import("react").JSX.Element;
|
|
8
8
|
export default DisplayGap;
|
|
@@ -4,5 +4,5 @@ export type DisplayGridGapProps = {
|
|
|
4
4
|
columnGap?: StyleValue;
|
|
5
5
|
onChange?: (type: StyleCategory, value: StyleValue) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const DisplayGridGap: ({ rowGap, columnGap, onChange }: DisplayGridGapProps) => import("react
|
|
7
|
+
declare const DisplayGridGap: ({ rowGap, columnGap, onChange }: DisplayGridGapProps) => import("react").JSX.Element;
|
|
8
8
|
export default DisplayGridGap;
|
|
@@ -8,5 +8,5 @@ export type DisplayGridTemplateProps = {
|
|
|
8
8
|
templateAutoColumns?: StyleValue;
|
|
9
9
|
onChange?: (type: StyleCategory, value: StyleValue) => void;
|
|
10
10
|
};
|
|
11
|
-
declare const DisplayGridTemplate: ({ templateAreas, templateColumns, templateRows, templateAutoFlow, templateAutoRows, templateAutoColumns, onChange }: DisplayGridTemplateProps) => import("react
|
|
11
|
+
declare const DisplayGridTemplate: ({ templateAreas, templateColumns, templateRows, templateAutoFlow, templateAutoRows, templateAutoColumns, onChange }: DisplayGridTemplateProps) => import("react").JSX.Element;
|
|
12
12
|
export default DisplayGridTemplate;
|
|
@@ -4,5 +4,5 @@ export type DisplayAlignSelfProps = {
|
|
|
4
4
|
isFlexVertical?: boolean;
|
|
5
5
|
onChange?: (type: StyleCategory, value: StyleValue) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const DisplayAlignSelf: ({ value, isFlexVertical, onChange }: DisplayAlignSelfProps) => import("react
|
|
7
|
+
declare const DisplayAlignSelf: ({ value, isFlexVertical, onChange }: DisplayAlignSelfProps) => import("react").JSX.Element;
|
|
8
8
|
export default DisplayAlignSelf;
|
|
@@ -4,5 +4,5 @@ export type DisplayFlexChildProps = {
|
|
|
4
4
|
isFlexVertical: boolean;
|
|
5
5
|
onCollapse?: (category: string, isCollapsed: boolean) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, isFlexVertical, onCollapse }: DisplayFlexChildProps) => import("react
|
|
7
|
+
declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, isFlexVertical, onCollapse }: DisplayFlexChildProps) => import("react").JSX.Element>;
|
|
8
8
|
export default _default;
|
|
@@ -3,5 +3,5 @@ export type DisplayOrderProps = {
|
|
|
3
3
|
value?: StyleValue;
|
|
4
4
|
onChange?: (type: StyleCategory, value: StyleValue) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const DisplayOrder: ({ value, onChange }: DisplayOrderProps) => import("react
|
|
6
|
+
declare const DisplayOrder: ({ value, onChange }: DisplayOrderProps) => import("react").JSX.Element;
|
|
7
7
|
export default DisplayOrder;
|
|
@@ -3,5 +3,5 @@ export type BoxShadowProps = {
|
|
|
3
3
|
value?: StyleValue;
|
|
4
4
|
onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const BoxShadow: ({ value, onChange }: BoxShadowProps) => import("react
|
|
6
|
+
declare const BoxShadow: ({ value, onChange }: BoxShadowProps) => import("react").JSX.Element;
|
|
7
7
|
export default BoxShadow;
|