@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.
Files changed (43) hide show
  1. package/CHANGELOG.md +119 -0
  2. package/dist/StyleMap/helpers/isValueValid.mjs +5 -4
  3. package/dist/StyleMap/helpers/utils.mjs +13 -12
  4. package/dist/components/StyleInspector/StyleInspector.mjs +217 -217
  5. package/dist/components/StyleInspector/categories/Background/Background.mjs +86 -147
  6. package/dist/components/StyleInspector/categories/Background/components/GradientCenter/GradientCenter.d.ts +8 -0
  7. package/dist/components/StyleInspector/categories/Background/components/GradientCenter/GradientCenter.mjs +28 -0
  8. package/dist/components/StyleInspector/categories/Background/components/GradientCenter/index.d.ts +3 -0
  9. package/dist/components/StyleInspector/categories/Background/components/GradientCenter/index.mjs +5 -0
  10. package/dist/components/StyleInspector/categories/Background/modes/ConicGradientMode.mjs +26 -48
  11. package/dist/components/StyleInspector/categories/Background/modes/RadialGradientMode.mjs +45 -67
  12. package/dist/components/StyleInspector/categories/Display/Display.mjs +59 -58
  13. package/dist/components/StyleInspector/categories/Display/DisplayGap.d.ts +14 -1
  14. package/dist/components/StyleInspector/categories/Display/DisplayGap.mjs +26 -13
  15. package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadow.mjs +13 -24
  16. package/dist/components/StyleInspector/categories/Effects/Effects.mjs +41 -102
  17. package/dist/components/StyleInspector/categories/List/List.mjs +15 -65
  18. package/dist/components/StyleInspector/categories/ListItem/ListItem.mjs +15 -64
  19. package/dist/components/StyleInspector/categories/Others/Others.mjs +60 -60
  20. package/dist/components/StyleInspector/categories/Size/Size.mjs +67 -67
  21. package/dist/components/StyleInspector/categories/Spacing/SpacingBox.d.ts +15 -0
  22. package/dist/components/StyleInspector/categories/Spacing/SpacingBox.mjs +63 -0
  23. package/dist/components/StyleInspector/categories/Spacing/SpacingMargin.d.ts +3 -11
  24. package/dist/components/StyleInspector/categories/Spacing/SpacingMargin.mjs +18 -70
  25. package/dist/components/StyleInspector/categories/Spacing/SpacingPadding.d.ts +3 -7
  26. package/dist/components/StyleInspector/categories/Spacing/SpacingPadding.mjs +16 -68
  27. package/dist/components/StyleInspector/categories/Typography/Typography.mjs +79 -78
  28. package/dist/components/StyleInspector/categories/Typography/TypographyTextShadow.mjs +17 -28
  29. package/dist/components/StyleInspector/categories/blendModes.d.ts +2 -0
  30. package/dist/components/StyleInspector/categories/blendModes.mjs +21 -0
  31. package/dist/components/StyleInspector/categories/listMarkers.d.ts +8 -0
  32. package/dist/components/StyleInspector/categories/listMarkers.mjs +25 -0
  33. package/dist/components/StyleInspector/components/ShadowList/ShadowList.d.ts +15 -0
  34. package/dist/components/StyleInspector/components/ShadowList/ShadowList.mjs +25 -0
  35. package/dist/components/StyleInspector/components/ShadowList/index.d.ts +3 -0
  36. package/dist/components/StyleInspector/components/ShadowList/index.mjs +5 -0
  37. package/dist/components/StyleInspector/cssValues.d.ts +2 -4
  38. package/dist/components/StyleInspector/cssValues.mjs +12 -16
  39. package/dist/components/StyleInspector/hooks/usePropertyChange.d.ts +6 -0
  40. package/dist/components/StyleInspector/hooks/usePropertyChange.mjs +9 -0
  41. package/package.json +44 -8
  42. package/dist/components/StyleInspector/categories/Display/DisplayGridGap.d.ts +0 -8
  43. 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 "./DisplayGridGap.mjs";
13
- import f from "./DisplayGridTemplate.mjs";
14
- import { memo as p, use as m, useCallback as h } from "react";
15
- import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
16
- var y = p(({ replaceTokens: p = !1, isCollapsed: y = !0, onCollapse: b }) => {
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: p
21
- }), R = h((e, t) => {
22
- e === "display" ? x(void 0, {
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
- }) : x(e, t);
40
- }, [x]), z = h((e) => b?.("display", e), [b]), B = typeof C == "string" && C.includes("reverse"), V = typeof C == "string" && C.includes("row"), H = typeof w == "string" && w.includes("reverse");
41
- return /* @__PURE__ */ v(r, {
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: y,
45
- onCollapse: z,
43
+ isCollapsed: v,
44
+ onCollapse: R,
46
45
  children: [
47
- /* @__PURE__ */ _(i, {
48
- value: S,
49
- onChange: R
46
+ /* @__PURE__ */ g(i, {
47
+ value: x,
48
+ onChange: L
50
49
  }),
51
- S === "flex" && /* @__PURE__ */ v(g, { children: [
52
- /* @__PURE__ */ _(c, {
53
- value: C,
54
- onChange: R,
55
- isReverse: B
50
+ x === "flex" && /* @__PURE__ */ _(h, { children: [
51
+ /* @__PURE__ */ g(c, {
52
+ value: S,
53
+ onChange: L,
54
+ isReverse: z
56
55
  }),
57
- /* @__PURE__ */ _(s, {
58
- value: T,
59
- onChange: R,
60
- isReverse: B,
61
- isRow: V
56
+ /* @__PURE__ */ g(s, {
57
+ value: w,
58
+ onChange: L,
59
+ isReverse: z,
60
+ isRow: B
62
61
  }),
63
- /* @__PURE__ */ _(l, {
64
- value: E,
65
- onChange: R,
66
- isReverse: B,
67
- isRow: V
62
+ /* @__PURE__ */ g(l, {
63
+ value: T,
64
+ onChange: L,
65
+ isReverse: z,
66
+ isRow: B
68
67
  }),
69
- /* @__PURE__ */ _(a, {
70
- value: w,
71
- onChange: R,
72
- isReverse: H
68
+ /* @__PURE__ */ g(a, {
69
+ value: C,
70
+ onChange: L,
71
+ isReverse: V
73
72
  }),
74
- /* @__PURE__ */ _(u, {
75
- rowGap: D,
76
- columnGap: O,
77
- onChange: R
73
+ /* @__PURE__ */ g(u, {
74
+ layout: "flex",
75
+ rowGap: E,
76
+ columnGap: D,
77
+ onChange: L
78
78
  })
79
79
  ] }),
80
- S === "grid" && /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(f, {
81
- templateAreas: k,
82
- templateColumns: A,
83
- templateRows: j,
84
- templateAutoFlow: M,
85
- templateAutoRows: N,
86
- templateAutoColumns: P,
87
- onChange: R
88
- }), /* @__PURE__ */ _(d, {
89
- rowGap: F,
90
- columnGap: I,
91
- onChange: R
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
- S === "flex" && (w === "wrap" || w === "wrap-reverse") && /* @__PURE__ */ _(o, {
94
- value: L,
95
- onChange: R,
96
- isReverse: H,
97
- isRow: V
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 { y as default };
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 r, jsxs as i } from "react/jsx-runtime";
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 a = ["row-gap", "column-gap"], o = ["row-gap"], s = ["column-gap"], c = ({ rowGap: c = "0px", columnGap: l = "0px", onChange: u }) => {
7
- let d = n((e) => u?.("row-gap", e), [u]), f = n((e) => u?.("column-gap", e), [u]);
8
- return /* @__PURE__ */ i(t, {
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: a,
11
- children: [/* @__PURE__ */ r(e, {
12
- keys: o,
23
+ keys: p.both,
24
+ children: [/* @__PURE__ */ i(e, {
25
+ keys: p.row,
13
26
  label: "Row",
14
27
  value: c,
15
- onChange: d,
28
+ onChange: m,
16
29
  type: "metric"
17
- }), /* @__PURE__ */ r(e, {
18
- keys: s,
30
+ }), /* @__PURE__ */ i(e, {
31
+ keys: p.column,
19
32
  label: "Column",
20
33
  value: l,
21
- onChange: f,
34
+ onChange: h,
22
35
  type: "metric"
23
36
  })]
24
37
  });
25
38
  };
26
39
  //#endregion
27
- export { c as default };
40
+ export { s as default };
@@ -1,26 +1,15 @@
1
- import { splitByCommaOutsideParens as e } from "../../../cssValues.mjs";
2
- import t from "../../../components/ValueList/index.mjs";
3
- import { DEFAULT_SHADOW as n, serializeShadow as r } from "../../../shadowValue.mjs";
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 s = ["box-shadow"], c = ({ value: c = "", onChange: l }) => {
9
- let u = typeof c == "string" && c !== "" ? e(c).map((e) => e.trim()) : [], d = a((e) => l?.(e.length > 0 ? e.join(", ") : ""), [l]), f = (e) => () => d(u.filter((t, n) => n !== e)), p = (e) => (t) => {
10
- t !== u[e] && d(u.map((n, r) => r === e ? t : n));
11
- };
12
- return /* @__PURE__ */ o(t, {
13
- label: "Box Shadow",
14
- keys: s,
15
- addLabel: "Add box shadow",
16
- onAdd: () => d([...u, r(n, { withSpread: !0 })]),
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 { c as default };
15
+ export { o as default };
@@ -1,4 +1,4 @@
1
- import e from "../../StyleInspectorContext.mjs";
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 { memo as d, use as f, useCallback as p } from "react";
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 = d(({ replaceTokens: d = !1, isCollapsed: g = !0, onCollapse: _ }) => {
15
- let { setValue: v } = f(e), { opacity: y, visibility: b, cursor: x, transition: S, "box-shadow": C, filter: w, "backdrop-filter": T, "mix-blend-mode": E, isolation: D, "clip-path": O, transform: k, "transform-origin": A, perspective: j, "will-change": M } = t({
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: d
36
- }), N = p((e) => _?.("effects", e), [_]), P = p((e) => (t) => v(e, t), [v]);
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: N,
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: y,
52
- onChange: P("opacity"),
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: b,
58
- onChange: P("visibility"),
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: x,
81
- onChange: P("cursor"),
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: P("box-shadow"),
252
- value: C
252
+ onChange: N("box-shadow"),
253
+ value: S
253
254
  }),
254
255
  /* @__PURE__ */ m(l, {
255
- onChange: P("transform"),
256
- value: k
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: A,
264
- onChange: P("transform-origin")
264
+ value: k,
265
+ onChange: N("transform-origin")
265
266
  }), /* @__PURE__ */ m(n, {
266
267
  keys: ["perspective"],
267
268
  label: "Perspective",
268
- value: j,
269
- onChange: P("perspective"),
269
+ value: A,
270
+ onChange: N("perspective"),
270
271
  type: "metric"
271
272
  })]
272
273
  }) }),
273
274
  /* @__PURE__ */ m(u, {
274
- onChange: P("transition"),
275
- value: S
275
+ onChange: N("transition"),
276
+ value: x
276
277
  }),
277
278
  /* @__PURE__ */ m(c, {
278
- onChange: P("filter"),
279
- value: w
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: P("backdrop-filter"),
286
- value: T
286
+ onChange: N("backdrop-filter"),
287
+ value: w
287
288
  }),
288
289
  /* @__PURE__ */ h(r, {
289
290
  label: "",
290
- children: [/* @__PURE__ */ h(n, {
291
+ children: [/* @__PURE__ */ m(n, {
291
292
  keys: ["mix-blend-mode"],
292
293
  label: "Blend",
293
- value: E,
294
- onChange: P("mix-blend-mode"),
294
+ value: T,
295
+ onChange: N("mix-blend-mode"),
295
296
  type: "select",
296
- children: [
297
- /* @__PURE__ */ m("option", {
298
- value: "normal",
299
- children: "Normal"
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: D,
366
- onChange: P("isolation"),
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: O,
383
- onChange: P("clip-path")
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: M,
388
- onChange: P("will-change")
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 { memo as o, use as s, useCallback as c, useMemo as l } from "react";
8
- import { jsx as u } from "react/jsx-runtime";
9
- import d from "@plitzi/plitzi-ui/icons/XMark";
10
- import f from "@plitzi/plitzi-ui/icons/ListCircles";
11
- import p from "@plitzi/plitzi-ui/icons/ListDots";
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: o
22
- }), k = c((e) => E?.("list", e), [E]), A = c((e) => D("list-style", e), [D]), j = l(() => [
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: T,
70
- onCollapse: k,
71
- children: /* @__PURE__ */ u(r, {
19
+ isCollapsed: f,
20
+ onCollapse: g,
21
+ children: /* @__PURE__ */ d(r, {
72
22
  keys: i.dot,
73
23
  label: "Style",
74
- children: /* @__PURE__ */ u(n, {
75
- onChange: A,
24
+ children: /* @__PURE__ */ d(n, {
25
+ onChange: _,
76
26
  type: "iconGroup",
77
- items: j
27
+ items: v
78
28
  })
79
29
  })
80
30
  });
81
31
  });
82
32
  //#endregion
83
- export { T as default };
33
+ export { f as default };