@plitzi/sdk-style 0.38.11 → 0.38.13
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 +119 -0
- package/dist/StyleMap/helpers/isValueValid.mjs +5 -4
- package/dist/StyleMap/helpers/utils.mjs +13 -12
- package/dist/components/StyleInspector/StyleInspector.mjs +217 -217
- package/dist/components/StyleInspector/categories/Background/Background.mjs +86 -147
- package/dist/components/StyleInspector/categories/Background/components/GradientCenter/GradientCenter.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientCenter/GradientCenter.mjs +28 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientCenter/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientCenter/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Background/modes/ConicGradientMode.mjs +26 -48
- package/dist/components/StyleInspector/categories/Background/modes/RadialGradientMode.mjs +45 -67
- package/dist/components/StyleInspector/categories/Display/Display.mjs +59 -58
- package/dist/components/StyleInspector/categories/Display/DisplayGap.d.ts +14 -1
- package/dist/components/StyleInspector/categories/Display/DisplayGap.mjs +26 -13
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadow.mjs +13 -24
- package/dist/components/StyleInspector/categories/Effects/Effects.mjs +41 -102
- package/dist/components/StyleInspector/categories/List/List.mjs +15 -65
- package/dist/components/StyleInspector/categories/ListItem/ListItem.mjs +15 -64
- package/dist/components/StyleInspector/categories/Others/Others.mjs +60 -60
- package/dist/components/StyleInspector/categories/Size/Size.mjs +67 -67
- package/dist/components/StyleInspector/categories/Spacing/SpacingBox.d.ts +15 -0
- package/dist/components/StyleInspector/categories/Spacing/SpacingBox.mjs +63 -0
- package/dist/components/StyleInspector/categories/Spacing/SpacingMargin.d.ts +3 -11
- package/dist/components/StyleInspector/categories/Spacing/SpacingMargin.mjs +18 -70
- package/dist/components/StyleInspector/categories/Spacing/SpacingPadding.d.ts +3 -7
- package/dist/components/StyleInspector/categories/Spacing/SpacingPadding.mjs +16 -68
- package/dist/components/StyleInspector/categories/Typography/Typography.mjs +79 -78
- package/dist/components/StyleInspector/categories/Typography/TypographyTextShadow.mjs +17 -28
- package/dist/components/StyleInspector/categories/blendModes.d.ts +2 -0
- package/dist/components/StyleInspector/categories/blendModes.mjs +21 -0
- package/dist/components/StyleInspector/categories/listMarkers.d.ts +8 -0
- package/dist/components/StyleInspector/categories/listMarkers.mjs +25 -0
- package/dist/components/StyleInspector/components/ShadowList/ShadowList.d.ts +15 -0
- package/dist/components/StyleInspector/components/ShadowList/ShadowList.mjs +25 -0
- package/dist/components/StyleInspector/components/ShadowList/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/ShadowList/index.mjs +5 -0
- package/dist/components/StyleInspector/cssValues.d.ts +2 -4
- package/dist/components/StyleInspector/cssValues.mjs +12 -16
- package/dist/components/StyleInspector/hooks/usePropertyChange.d.ts +6 -0
- package/dist/components/StyleInspector/hooks/usePropertyChange.mjs +9 -0
- package/package.json +44 -8
- package/dist/components/StyleInspector/categories/Display/DisplayGridGap.d.ts +0 -8
- package/dist/components/StyleInspector/categories/Display/DisplayGridGap.mjs +0 -27
|
@@ -9,17 +9,16 @@ import s from "./DisplayFlexAlignItems.mjs";
|
|
|
9
9
|
import c from "./DisplayFlexDirection.mjs";
|
|
10
10
|
import l from "./DisplayFlexJustify.mjs";
|
|
11
11
|
import u from "./DisplayGap.mjs";
|
|
12
|
-
import d from "./
|
|
13
|
-
import f from "
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
let { setValue: x } = m(e), { display: S, "flex-direction": C, "flex-wrap": w, "align-items": T, "justify-content": E, "row-gap": D, "column-gap": O, "grid-template-areas": k, "grid-template-columns": A, "grid-template-rows": j, "grid-auto-flow": M, "grid-auto-rows": N, "grid-auto-columns": P, "grid-row-gap": F, "grid-column-gap": I, "align-content": L } = t({
|
|
12
|
+
import d from "./DisplayGridTemplate.mjs";
|
|
13
|
+
import { memo as f, use as p, useCallback as m } from "react";
|
|
14
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
15
|
+
var v = f(({ replaceTokens: f = !1, isCollapsed: v = !0, onCollapse: y }) => {
|
|
16
|
+
let { setValue: b } = p(e), { display: x, "flex-direction": S, "flex-wrap": C, "align-items": w, "justify-content": T, "row-gap": E, "column-gap": D, "grid-template-areas": O, "grid-template-columns": k, "grid-template-rows": A, "grid-auto-flow": j, "grid-auto-rows": M, "grid-auto-columns": N, "grid-row-gap": P, "grid-column-gap": F, "align-content": I } = t({
|
|
18
17
|
keys: n.dot,
|
|
19
18
|
asValue: !0,
|
|
20
|
-
replaceTokens:
|
|
21
|
-
}),
|
|
22
|
-
e === "display" ?
|
|
19
|
+
replaceTokens: f
|
|
20
|
+
}), L = m((e, t) => {
|
|
21
|
+
e === "display" ? b(void 0, {
|
|
23
22
|
"flex-direction": void 0,
|
|
24
23
|
"flex-wrap": void 0,
|
|
25
24
|
"align-items": void 0,
|
|
@@ -36,68 +35,70 @@ var y = p(({ replaceTokens: p = !1, isCollapsed: y = !0, onCollapse: b }) => {
|
|
|
36
35
|
"grid-auto-rows": void 0,
|
|
37
36
|
"grid-auto-columns": void 0,
|
|
38
37
|
display: t
|
|
39
|
-
}) :
|
|
40
|
-
}, [
|
|
41
|
-
return /* @__PURE__ */
|
|
38
|
+
}) : b(e, t);
|
|
39
|
+
}, [b]), R = m((e) => y?.("display", e), [y]), z = typeof S == "string" && S.includes("reverse"), B = typeof S == "string" && S.includes("row"), V = typeof C == "string" && C.includes("reverse");
|
|
40
|
+
return /* @__PURE__ */ _(r, {
|
|
42
41
|
title: n.title,
|
|
43
42
|
dotKeys: n.dot,
|
|
44
|
-
isCollapsed:
|
|
45
|
-
onCollapse:
|
|
43
|
+
isCollapsed: v,
|
|
44
|
+
onCollapse: R,
|
|
46
45
|
children: [
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
value:
|
|
49
|
-
onChange:
|
|
46
|
+
/* @__PURE__ */ g(i, {
|
|
47
|
+
value: x,
|
|
48
|
+
onChange: L
|
|
50
49
|
}),
|
|
51
|
-
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
value:
|
|
54
|
-
onChange:
|
|
55
|
-
isReverse:
|
|
50
|
+
x === "flex" && /* @__PURE__ */ _(h, { children: [
|
|
51
|
+
/* @__PURE__ */ g(c, {
|
|
52
|
+
value: S,
|
|
53
|
+
onChange: L,
|
|
54
|
+
isReverse: z
|
|
56
55
|
}),
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
value:
|
|
59
|
-
onChange:
|
|
60
|
-
isReverse:
|
|
61
|
-
isRow:
|
|
56
|
+
/* @__PURE__ */ g(s, {
|
|
57
|
+
value: w,
|
|
58
|
+
onChange: L,
|
|
59
|
+
isReverse: z,
|
|
60
|
+
isRow: B
|
|
62
61
|
}),
|
|
63
|
-
/* @__PURE__ */
|
|
64
|
-
value:
|
|
65
|
-
onChange:
|
|
66
|
-
isReverse:
|
|
67
|
-
isRow:
|
|
62
|
+
/* @__PURE__ */ g(l, {
|
|
63
|
+
value: T,
|
|
64
|
+
onChange: L,
|
|
65
|
+
isReverse: z,
|
|
66
|
+
isRow: B
|
|
68
67
|
}),
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
value:
|
|
71
|
-
onChange:
|
|
72
|
-
isReverse:
|
|
68
|
+
/* @__PURE__ */ g(a, {
|
|
69
|
+
value: C,
|
|
70
|
+
onChange: L,
|
|
71
|
+
isReverse: V
|
|
73
72
|
}),
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
/* @__PURE__ */ g(u, {
|
|
74
|
+
layout: "flex",
|
|
75
|
+
rowGap: E,
|
|
76
|
+
columnGap: D,
|
|
77
|
+
onChange: L
|
|
78
78
|
})
|
|
79
79
|
] }),
|
|
80
|
-
|
|
81
|
-
templateAreas:
|
|
82
|
-
templateColumns:
|
|
83
|
-
templateRows:
|
|
84
|
-
templateAutoFlow:
|
|
85
|
-
templateAutoRows:
|
|
86
|
-
templateAutoColumns:
|
|
87
|
-
onChange:
|
|
88
|
-
}), /* @__PURE__ */
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
80
|
+
x === "grid" && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(d, {
|
|
81
|
+
templateAreas: O,
|
|
82
|
+
templateColumns: k,
|
|
83
|
+
templateRows: A,
|
|
84
|
+
templateAutoFlow: j,
|
|
85
|
+
templateAutoRows: M,
|
|
86
|
+
templateAutoColumns: N,
|
|
87
|
+
onChange: L
|
|
88
|
+
}), /* @__PURE__ */ g(u, {
|
|
89
|
+
layout: "grid",
|
|
90
|
+
rowGap: P,
|
|
91
|
+
columnGap: F,
|
|
92
|
+
onChange: L
|
|
92
93
|
})] }),
|
|
93
|
-
|
|
94
|
-
value:
|
|
95
|
-
onChange:
|
|
96
|
-
isReverse:
|
|
97
|
-
isRow:
|
|
94
|
+
x === "flex" && (C === "wrap" || C === "wrap-reverse") && /* @__PURE__ */ g(o, {
|
|
95
|
+
value: I,
|
|
96
|
+
onChange: L,
|
|
97
|
+
isReverse: V,
|
|
98
|
+
isRow: B
|
|
98
99
|
})
|
|
99
100
|
]
|
|
100
101
|
});
|
|
101
102
|
});
|
|
102
103
|
//#endregion
|
|
103
|
-
export {
|
|
104
|
+
export { v as default };
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
/** The two gaps each layout writes. */
|
|
3
|
+
declare const GAPS: {
|
|
4
|
+
readonly flex: {
|
|
5
|
+
readonly row: "row-gap";
|
|
6
|
+
readonly column: "column-gap";
|
|
7
|
+
};
|
|
8
|
+
readonly grid: {
|
|
9
|
+
readonly row: "grid-row-gap";
|
|
10
|
+
readonly column: "grid-column-gap";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
2
13
|
export type DisplayGapProps = {
|
|
14
|
+
/** Whose gaps: a flex container's, or a grid's. */
|
|
15
|
+
layout: keyof typeof GAPS;
|
|
3
16
|
rowGap?: StyleValue;
|
|
4
17
|
columnGap?: StyleValue;
|
|
5
18
|
onChange?: (type: StyleCategory, value: StyleValue) => void;
|
|
6
19
|
};
|
|
7
|
-
declare const DisplayGap: ({ rowGap, columnGap, onChange }: DisplayGapProps) => import('react').JSX.Element;
|
|
20
|
+
declare const DisplayGap: ({ layout, rowGap, columnGap, onChange }: DisplayGapProps) => import('react').JSX.Element;
|
|
8
21
|
export default DisplayGap;
|
|
@@ -1,27 +1,40 @@
|
|
|
1
1
|
import e from "../../components/CategoryOption/index.mjs";
|
|
2
2
|
import t from "../../components/CategorySection/index.mjs";
|
|
3
|
-
import { useCallback as n } from "react";
|
|
4
|
-
import { jsx as
|
|
3
|
+
import { useCallback as n, useMemo as r } from "react";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/StyleInspector/categories/Display/DisplayGap.tsx
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var o = {
|
|
7
|
+
flex: {
|
|
8
|
+
row: "row-gap",
|
|
9
|
+
column: "column-gap"
|
|
10
|
+
},
|
|
11
|
+
grid: {
|
|
12
|
+
row: "grid-row-gap",
|
|
13
|
+
column: "grid-column-gap"
|
|
14
|
+
}
|
|
15
|
+
}, s = ({ layout: s, rowGap: c = "0px", columnGap: l = "0px", onChange: u }) => {
|
|
16
|
+
let { row: d, column: f } = o[s], p = r(() => ({
|
|
17
|
+
both: [d, f],
|
|
18
|
+
row: [d],
|
|
19
|
+
column: [f]
|
|
20
|
+
}), [f, d]), m = n((e) => u?.(d, e), [u, d]), h = n((e) => u?.(f, e), [f, u]);
|
|
21
|
+
return /* @__PURE__ */ a(t, {
|
|
9
22
|
label: "Gap",
|
|
10
|
-
keys:
|
|
11
|
-
children: [/* @__PURE__ */
|
|
12
|
-
keys:
|
|
23
|
+
keys: p.both,
|
|
24
|
+
children: [/* @__PURE__ */ i(e, {
|
|
25
|
+
keys: p.row,
|
|
13
26
|
label: "Row",
|
|
14
27
|
value: c,
|
|
15
|
-
onChange:
|
|
28
|
+
onChange: m,
|
|
16
29
|
type: "metric"
|
|
17
|
-
}), /* @__PURE__ */
|
|
18
|
-
keys:
|
|
30
|
+
}), /* @__PURE__ */ i(e, {
|
|
31
|
+
keys: p.column,
|
|
19
32
|
label: "Column",
|
|
20
33
|
value: l,
|
|
21
|
-
onChange:
|
|
34
|
+
onChange: h,
|
|
22
35
|
type: "metric"
|
|
23
36
|
})]
|
|
24
37
|
});
|
|
25
38
|
};
|
|
26
39
|
//#endregion
|
|
27
|
-
export {
|
|
40
|
+
export { s as default };
|
|
@@ -1,26 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import i from "../../../components/ShadowItem/index.mjs";
|
|
5
|
-
import { useCallback as a } from "react";
|
|
6
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
1
|
+
import { DEFAULT_SHADOW as e, serializeShadow as t } from "../../../shadowValue.mjs";
|
|
2
|
+
import n from "../../../components/ShadowList/index.mjs";
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
7
4
|
//#region src/components/StyleInspector/categories/Effects/BoxShadow/BoxShadow.tsx
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
children: u.length > 0 && u.map((e, t) => /* @__PURE__ */ o(i, {
|
|
18
|
-
value: e,
|
|
19
|
-
withSpread: !0,
|
|
20
|
-
onChange: p(t),
|
|
21
|
-
onRemove: f(t)
|
|
22
|
-
}, t))
|
|
23
|
-
});
|
|
24
|
-
};
|
|
5
|
+
var i = ["box-shadow"], a = t(e, { withSpread: !0 }), o = ({ value: e, onChange: t }) => /* @__PURE__ */ r(n, {
|
|
6
|
+
label: "Box Shadow",
|
|
7
|
+
keys: i,
|
|
8
|
+
addLabel: "Add box shadow",
|
|
9
|
+
withSpread: !0,
|
|
10
|
+
added: a,
|
|
11
|
+
value: e,
|
|
12
|
+
onChange: t
|
|
13
|
+
});
|
|
25
14
|
//#endregion
|
|
26
|
-
export {
|
|
15
|
+
export { o as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from "
|
|
1
|
+
import { BLEND_MODES as e } from "../blendModes.mjs";
|
|
2
2
|
import t from "../../hooks/useInspectorValues.mjs";
|
|
3
3
|
import n from "../../components/CategoryOption/index.mjs";
|
|
4
4
|
import r from "../../components/CategorySection/index.mjs";
|
|
@@ -9,10 +9,11 @@ import s from "./BoxShadow/index.mjs";
|
|
|
9
9
|
import c from "./Filters/Filter.mjs";
|
|
10
10
|
import l from "./Transform/index.mjs";
|
|
11
11
|
import u from "./Transition/index.mjs";
|
|
12
|
-
import
|
|
12
|
+
import d from "../../hooks/usePropertyChange.mjs";
|
|
13
|
+
import { memo as f, useCallback as p } from "react";
|
|
13
14
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
14
|
-
var g =
|
|
15
|
-
let {
|
|
15
|
+
var g = f(({ replaceTokens: f = !1, isCollapsed: g = !0, onCollapse: _ }) => {
|
|
16
|
+
let { opacity: v, visibility: y, cursor: b, transition: x, "box-shadow": S, filter: C, "backdrop-filter": w, "mix-blend-mode": T, isolation: E, "clip-path": D, transform: O, "transform-origin": k, perspective: A, "will-change": j } = t({
|
|
16
17
|
keys: i.dot,
|
|
17
18
|
asValue: !0,
|
|
18
19
|
strictMode: !0,
|
|
@@ -32,14 +33,14 @@ var g = d(({ replaceTokens: d = !1, isCollapsed: g = !0, onCollapse: _ }) => {
|
|
|
32
33
|
perspective: void 0,
|
|
33
34
|
"will-change": void 0
|
|
34
35
|
},
|
|
35
|
-
replaceTokens:
|
|
36
|
-
}),
|
|
36
|
+
replaceTokens: f
|
|
37
|
+
}), M = p((e) => _?.("effects", e), [_]), N = d();
|
|
37
38
|
return /* @__PURE__ */ m(o, {
|
|
38
39
|
title: i.title,
|
|
39
40
|
dotKeys: i.dot,
|
|
40
41
|
advancedKeys: i.advanced,
|
|
41
42
|
isCollapsed: g,
|
|
42
|
-
onCollapse:
|
|
43
|
+
onCollapse: M,
|
|
43
44
|
children: /* @__PURE__ */ h("div", {
|
|
44
45
|
className: "flex flex-col gap-2",
|
|
45
46
|
children: [
|
|
@@ -48,14 +49,14 @@ var g = d(({ replaceTokens: d = !1, isCollapsed: g = !0, onCollapse: _ }) => {
|
|
|
48
49
|
children: [/* @__PURE__ */ m(n, {
|
|
49
50
|
keys: ["opacity"],
|
|
50
51
|
label: "Opacity",
|
|
51
|
-
value:
|
|
52
|
-
onChange:
|
|
52
|
+
value: v,
|
|
53
|
+
onChange: N("opacity"),
|
|
53
54
|
type: "metric"
|
|
54
55
|
}), /* @__PURE__ */ h(n, {
|
|
55
56
|
keys: ["visibility"],
|
|
56
57
|
label: "Visibility",
|
|
57
|
-
value:
|
|
58
|
-
onChange:
|
|
58
|
+
value: y,
|
|
59
|
+
onChange: N("visibility"),
|
|
59
60
|
type: "select",
|
|
60
61
|
children: [
|
|
61
62
|
/* @__PURE__ */ m("option", {
|
|
@@ -77,8 +78,8 @@ var g = d(({ replaceTokens: d = !1, isCollapsed: g = !0, onCollapse: _ }) => {
|
|
|
77
78
|
label: "Cursor",
|
|
78
79
|
keys: ["cursor"],
|
|
79
80
|
children: /* @__PURE__ */ h(n, {
|
|
80
|
-
value:
|
|
81
|
-
onChange:
|
|
81
|
+
value: b,
|
|
82
|
+
onChange: N("cursor"),
|
|
82
83
|
type: "select",
|
|
83
84
|
children: [
|
|
84
85
|
/* @__PURE__ */ h("optgroup", {
|
|
@@ -248,122 +249,60 @@ var g = d(({ replaceTokens: d = !1, isCollapsed: g = !0, onCollapse: _ }) => {
|
|
|
248
249
|
})
|
|
249
250
|
}),
|
|
250
251
|
/* @__PURE__ */ m(s, {
|
|
251
|
-
onChange:
|
|
252
|
-
value:
|
|
252
|
+
onChange: N("box-shadow"),
|
|
253
|
+
value: S
|
|
253
254
|
}),
|
|
254
255
|
/* @__PURE__ */ m(l, {
|
|
255
|
-
onChange:
|
|
256
|
-
value:
|
|
256
|
+
onChange: N("transform"),
|
|
257
|
+
value: O
|
|
257
258
|
}),
|
|
258
259
|
/* @__PURE__ */ m(a, { children: /* @__PURE__ */ h(r, {
|
|
259
260
|
label: "",
|
|
260
261
|
children: [/* @__PURE__ */ m(n, {
|
|
261
262
|
keys: ["transform-origin"],
|
|
262
263
|
label: "Origin",
|
|
263
|
-
value:
|
|
264
|
-
onChange:
|
|
264
|
+
value: k,
|
|
265
|
+
onChange: N("transform-origin")
|
|
265
266
|
}), /* @__PURE__ */ m(n, {
|
|
266
267
|
keys: ["perspective"],
|
|
267
268
|
label: "Perspective",
|
|
268
|
-
value:
|
|
269
|
-
onChange:
|
|
269
|
+
value: A,
|
|
270
|
+
onChange: N("perspective"),
|
|
270
271
|
type: "metric"
|
|
271
272
|
})]
|
|
272
273
|
}) }),
|
|
273
274
|
/* @__PURE__ */ m(u, {
|
|
274
|
-
onChange:
|
|
275
|
-
value:
|
|
275
|
+
onChange: N("transition"),
|
|
276
|
+
value: x
|
|
276
277
|
}),
|
|
277
278
|
/* @__PURE__ */ m(c, {
|
|
278
|
-
onChange:
|
|
279
|
-
value:
|
|
279
|
+
onChange: N("filter"),
|
|
280
|
+
value: C
|
|
280
281
|
}),
|
|
281
282
|
/* @__PURE__ */ h(a, { children: [
|
|
282
283
|
/* @__PURE__ */ m(c, {
|
|
283
284
|
styleKey: "backdrop-filter",
|
|
284
285
|
label: "Backdrop Filters",
|
|
285
|
-
onChange:
|
|
286
|
-
value:
|
|
286
|
+
onChange: N("backdrop-filter"),
|
|
287
|
+
value: w
|
|
287
288
|
}),
|
|
288
289
|
/* @__PURE__ */ h(r, {
|
|
289
290
|
label: "",
|
|
290
|
-
children: [/* @__PURE__ */
|
|
291
|
+
children: [/* @__PURE__ */ m(n, {
|
|
291
292
|
keys: ["mix-blend-mode"],
|
|
292
293
|
label: "Blend",
|
|
293
|
-
value:
|
|
294
|
-
onChange:
|
|
294
|
+
value: T,
|
|
295
|
+
onChange: N("mix-blend-mode"),
|
|
295
296
|
type: "select",
|
|
296
|
-
children: [
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
}),
|
|
301
|
-
/* @__PURE__ */ m("option", {
|
|
302
|
-
value: "multiply",
|
|
303
|
-
children: "Multiply"
|
|
304
|
-
}),
|
|
305
|
-
/* @__PURE__ */ m("option", {
|
|
306
|
-
value: "screen",
|
|
307
|
-
children: "Screen"
|
|
308
|
-
}),
|
|
309
|
-
/* @__PURE__ */ m("option", {
|
|
310
|
-
value: "overlay",
|
|
311
|
-
children: "Overlay"
|
|
312
|
-
}),
|
|
313
|
-
/* @__PURE__ */ m("option", {
|
|
314
|
-
value: "darken",
|
|
315
|
-
children: "Darken"
|
|
316
|
-
}),
|
|
317
|
-
/* @__PURE__ */ m("option", {
|
|
318
|
-
value: "lighten",
|
|
319
|
-
children: "Lighten"
|
|
320
|
-
}),
|
|
321
|
-
/* @__PURE__ */ m("option", {
|
|
322
|
-
value: "color-dodge",
|
|
323
|
-
children: "Color Dodge"
|
|
324
|
-
}),
|
|
325
|
-
/* @__PURE__ */ m("option", {
|
|
326
|
-
value: "color-burn",
|
|
327
|
-
children: "Color Burn"
|
|
328
|
-
}),
|
|
329
|
-
/* @__PURE__ */ m("option", {
|
|
330
|
-
value: "hard-light",
|
|
331
|
-
children: "Hard Light"
|
|
332
|
-
}),
|
|
333
|
-
/* @__PURE__ */ m("option", {
|
|
334
|
-
value: "soft-light",
|
|
335
|
-
children: "Soft Light"
|
|
336
|
-
}),
|
|
337
|
-
/* @__PURE__ */ m("option", {
|
|
338
|
-
value: "difference",
|
|
339
|
-
children: "Difference"
|
|
340
|
-
}),
|
|
341
|
-
/* @__PURE__ */ m("option", {
|
|
342
|
-
value: "exclusion",
|
|
343
|
-
children: "Exclusion"
|
|
344
|
-
}),
|
|
345
|
-
/* @__PURE__ */ m("option", {
|
|
346
|
-
value: "hue",
|
|
347
|
-
children: "Hue"
|
|
348
|
-
}),
|
|
349
|
-
/* @__PURE__ */ m("option", {
|
|
350
|
-
value: "saturation",
|
|
351
|
-
children: "Saturation"
|
|
352
|
-
}),
|
|
353
|
-
/* @__PURE__ */ m("option", {
|
|
354
|
-
value: "color",
|
|
355
|
-
children: "Color"
|
|
356
|
-
}),
|
|
357
|
-
/* @__PURE__ */ m("option", {
|
|
358
|
-
value: "luminosity",
|
|
359
|
-
children: "Luminosity"
|
|
360
|
-
})
|
|
361
|
-
]
|
|
297
|
+
children: e.map(([e, t]) => /* @__PURE__ */ m("option", {
|
|
298
|
+
value: e,
|
|
299
|
+
children: t
|
|
300
|
+
}, e))
|
|
362
301
|
}), /* @__PURE__ */ h(n, {
|
|
363
302
|
keys: ["isolation"],
|
|
364
303
|
label: "Isolation",
|
|
365
|
-
value:
|
|
366
|
-
onChange:
|
|
304
|
+
value: E,
|
|
305
|
+
onChange: N("isolation"),
|
|
367
306
|
type: "select",
|
|
368
307
|
children: [/* @__PURE__ */ m("option", {
|
|
369
308
|
value: "auto",
|
|
@@ -379,13 +318,13 @@ var g = d(({ replaceTokens: d = !1, isCollapsed: g = !0, onCollapse: _ }) => {
|
|
|
379
318
|
children: [/* @__PURE__ */ m(n, {
|
|
380
319
|
keys: ["clip-path"],
|
|
381
320
|
label: "Clip Path",
|
|
382
|
-
value:
|
|
383
|
-
onChange:
|
|
321
|
+
value: D,
|
|
322
|
+
onChange: N("clip-path")
|
|
384
323
|
}), /* @__PURE__ */ m(n, {
|
|
385
324
|
keys: ["will-change"],
|
|
386
325
|
label: "Will Change",
|
|
387
|
-
value:
|
|
388
|
-
onChange:
|
|
326
|
+
value: j,
|
|
327
|
+
onChange: N("will-change")
|
|
389
328
|
})]
|
|
390
329
|
})
|
|
391
330
|
] })
|
|
@@ -4,80 +4,30 @@ import n from "../../components/CategoryOption/index.mjs";
|
|
|
4
4
|
import r from "../../components/CategorySection/index.mjs";
|
|
5
5
|
import { LIST_KEYS as i } from "../../categoryKeys.mjs";
|
|
6
6
|
import a from "../../components/CategoryContainer/index.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import d from "
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import m from "@plitzi/plitzi-ui/icons/ListLetters";
|
|
13
|
-
import h from "@plitzi/plitzi-ui/icons/ListNumbers";
|
|
14
|
-
import g from "@plitzi/plitzi-ui/icons/ListRoman";
|
|
15
|
-
import _ from "@plitzi/plitzi-ui/icons/ListSquares";
|
|
16
|
-
//#region src/components/StyleInspector/categories/List/List.tsx
|
|
17
|
-
var v = "none", y = "circle", b = "decimal", x = "disc", S = "square", C = "lower-alpha", w = "lower-roman", T = o(({ replaceTokens: o = !1, isCollapsed: T = !0, onCollapse: E }) => {
|
|
18
|
-
let { setValue: D } = s(e), { "list-style": O } = t({
|
|
7
|
+
import { listMarkerItems as o } from "../listMarkers.mjs";
|
|
8
|
+
import { memo as s, use as c, useCallback as l, useMemo as u } from "react";
|
|
9
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
10
|
+
var f = s(({ replaceTokens: s = !1, isCollapsed: f = !0, onCollapse: p }) => {
|
|
11
|
+
let { setValue: m } = c(e), { "list-style": h } = t({
|
|
19
12
|
keys: i.dot,
|
|
20
13
|
asValue: !0,
|
|
21
|
-
replaceTokens:
|
|
22
|
-
}),
|
|
23
|
-
|
|
24
|
-
value: v,
|
|
25
|
-
icon: /* @__PURE__ */ u(d, {}),
|
|
26
|
-
description: "",
|
|
27
|
-
active: O === v
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
value: x,
|
|
31
|
-
icon: /* @__PURE__ */ u(p, {}),
|
|
32
|
-
description: "",
|
|
33
|
-
active: O === x
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
value: y,
|
|
37
|
-
icon: /* @__PURE__ */ u(f, {}),
|
|
38
|
-
description: "",
|
|
39
|
-
active: O === y
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
value: S,
|
|
43
|
-
icon: /* @__PURE__ */ u(_, {}),
|
|
44
|
-
description: "",
|
|
45
|
-
active: O === S
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
value: b,
|
|
49
|
-
icon: /* @__PURE__ */ u(h, {}),
|
|
50
|
-
description: "",
|
|
51
|
-
active: O === b
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
value: C,
|
|
55
|
-
icon: /* @__PURE__ */ u(m, {}),
|
|
56
|
-
description: "",
|
|
57
|
-
active: O === C
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
value: w,
|
|
61
|
-
icon: /* @__PURE__ */ u(g, {}),
|
|
62
|
-
description: "",
|
|
63
|
-
active: O === w
|
|
64
|
-
}
|
|
65
|
-
], [O]);
|
|
66
|
-
return /* @__PURE__ */ u(a, {
|
|
14
|
+
replaceTokens: s
|
|
15
|
+
}), g = l((e) => p?.("list", e), [p]), _ = l((e) => m("list-style", e), [m]), v = u(() => o(h), [h]);
|
|
16
|
+
return /* @__PURE__ */ d(a, {
|
|
67
17
|
title: i.title,
|
|
68
18
|
dotKeys: i.dot,
|
|
69
|
-
isCollapsed:
|
|
70
|
-
onCollapse:
|
|
71
|
-
children: /* @__PURE__ */
|
|
19
|
+
isCollapsed: f,
|
|
20
|
+
onCollapse: g,
|
|
21
|
+
children: /* @__PURE__ */ d(r, {
|
|
72
22
|
keys: i.dot,
|
|
73
23
|
label: "Style",
|
|
74
|
-
children: /* @__PURE__ */
|
|
75
|
-
onChange:
|
|
24
|
+
children: /* @__PURE__ */ d(n, {
|
|
25
|
+
onChange: _,
|
|
76
26
|
type: "iconGroup",
|
|
77
|
-
items:
|
|
27
|
+
items: v
|
|
78
28
|
})
|
|
79
29
|
})
|
|
80
30
|
});
|
|
81
31
|
});
|
|
82
32
|
//#endregion
|
|
83
|
-
export {
|
|
33
|
+
export { f as default };
|