@plitzi/sdk-style 0.32.14 → 0.32.16
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/StyleAdvanceEditor.mjs +5 -5
- package/dist/StyleMap/StyleMap.mjs +1 -1
- package/dist/StyleMap/helpers/utils.mjs +10 -4
- package/dist/components/InputEasing/Curve.mjs +2 -2
- package/dist/components/InputEasing/Progress.mjs +2 -2
- package/dist/components/Selector/Selector.mjs +1 -5
- package/dist/components/StyleInspector/StyleInspectorProvider.mjs +30 -30
- package/dist/components/StyleInspector/categories/Background/Background.mjs +2 -2
- package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/BackgroundSize.mjs +33 -33
- package/dist/components/StyleInspector/categories/Background/components/BackgroundTile/BackgroundTile.mjs +39 -36
- package/dist/components/StyleInspector/categories/Border/Border.mjs +2 -3
- package/dist/components/StyleInspector/categories/Border/BorderColor.mjs +7 -7
- package/dist/components/StyleInspector/categories/Border/BorderRadius.mjs +12 -12
- package/dist/components/StyleInspector/categories/Border/BorderStyle.mjs +7 -7
- package/dist/components/StyleInspector/categories/Border/BorderWidth.mjs +7 -7
- package/dist/components/StyleInspector/categories/Display/DisplayElements.mjs +49 -46
- package/dist/components/StyleInspector/categories/Display/DisplayFlex.mjs +41 -38
- package/dist/components/StyleInspector/categories/Display/DisplayFlexAlignContent.mjs +44 -44
- package/dist/components/StyleInspector/categories/Display/DisplayFlexAlignItems.mjs +38 -38
- package/dist/components/StyleInspector/categories/Display/DisplayFlexDirection.mjs +41 -38
- package/dist/components/StyleInspector/categories/Display/DisplayFlexJustify.mjs +38 -38
- package/dist/components/StyleInspector/categories/Display/DisplayGridTemplate.mjs +20 -20
- package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayAlignSelf.mjs +49 -46
- package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayFlexChild.mjs +1 -1
- package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayOrder.mjs +29 -29
- package/dist/components/StyleInspector/categories/Effects/Transition/TransitionItem.mjs +1 -1
- package/dist/components/StyleInspector/categories/List/List.mjs +47 -47
- package/dist/components/StyleInspector/categories/ListItem/ListItem.mjs +47 -47
- package/dist/components/StyleInspector/categories/Position/PositionAdvancedButtons.mjs +107 -107
- package/dist/components/StyleInspector/categories/Position/PositionClear.mjs +37 -34
- package/dist/components/StyleInspector/categories/Position/PositionFloat.mjs +31 -28
- package/dist/components/StyleInspector/categories/Spacing/Spacing.mjs +2 -2
- package/dist/components/StyleInspector/categories/Typography/TypographyAlign.mjs +37 -34
- package/dist/components/StyleManager/ManagerSelector.mjs +57 -57
- package/dist/helpers/processSelectorName.mjs +1 -4
- package/dist/models/SelectorForm/SelectorForm.mjs +2 -2
- package/package.json +5 -5
|
@@ -5,41 +5,41 @@ import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
|
5
5
|
import o from "@plitzi/plitzi-ui/icons/XMark";
|
|
6
6
|
//#region src/components/StyleInspector/categories/DisplayFlexChild/DisplayOrder.tsx
|
|
7
7
|
var s = ["order"], c = ({ value: c, onChange: l }) => {
|
|
8
|
-
let u = n((e) => l?.("order", e), [l])
|
|
8
|
+
let u = n((e) => l?.("order", e), [l]), d = r(() => [
|
|
9
|
+
{
|
|
10
|
+
value: "0",
|
|
11
|
+
icon: /* @__PURE__ */ i(o, {}),
|
|
12
|
+
description: "Order Auto",
|
|
13
|
+
active: c === "0"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
value: "-1",
|
|
17
|
+
icon: /* @__PURE__ */ i("div", {
|
|
18
|
+
className: "text-xs select-none",
|
|
19
|
+
children: "First"
|
|
20
|
+
}),
|
|
21
|
+
description: "Order First",
|
|
22
|
+
active: c === "-1",
|
|
23
|
+
size: "custom"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
value: "1",
|
|
27
|
+
icon: /* @__PURE__ */ i("div", {
|
|
28
|
+
className: "text-xs select-none",
|
|
29
|
+
children: "Last"
|
|
30
|
+
}),
|
|
31
|
+
description: "Order Last",
|
|
32
|
+
active: c === "1",
|
|
33
|
+
size: "custom"
|
|
34
|
+
}
|
|
35
|
+
], [c]);
|
|
9
36
|
return /* @__PURE__ */ a(t, {
|
|
10
37
|
label: "Align",
|
|
11
38
|
keys: s,
|
|
12
39
|
children: [/* @__PURE__ */ i(e, {
|
|
13
40
|
onChange: u,
|
|
14
41
|
type: "iconGroup",
|
|
15
|
-
items:
|
|
16
|
-
{
|
|
17
|
-
value: "0",
|
|
18
|
-
icon: /* @__PURE__ */ i(o, {}),
|
|
19
|
-
description: "Order Auto",
|
|
20
|
-
active: c === "0"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
value: "-1",
|
|
24
|
-
icon: /* @__PURE__ */ i("div", {
|
|
25
|
-
className: "text-xs select-none",
|
|
26
|
-
children: "First"
|
|
27
|
-
}),
|
|
28
|
-
description: "Order First",
|
|
29
|
-
active: c === "-1",
|
|
30
|
-
size: "custom"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
value: "1",
|
|
34
|
-
icon: /* @__PURE__ */ i("div", {
|
|
35
|
-
className: "text-xs select-none",
|
|
36
|
-
children: "Last"
|
|
37
|
-
}),
|
|
38
|
-
description: "Order Last",
|
|
39
|
-
active: c === "1",
|
|
40
|
-
size: "custom"
|
|
41
|
-
}
|
|
42
|
-
], [c])
|
|
42
|
+
items: d
|
|
43
43
|
}), /* @__PURE__ */ i(e, {
|
|
44
44
|
onChange: u,
|
|
45
45
|
type: "input",
|
|
@@ -39,7 +39,7 @@ var h = ({ value: h = "", onRemove: g, onChange: _ }) => {
|
|
|
39
39
|
if (e === "easing" && t.includes(",")) {
|
|
40
40
|
let r = t.split(",");
|
|
41
41
|
n[e] = `cubic-bezier(${r[0]}, ${r[1]}, ${r[2]}, ${r[3]})`;
|
|
42
|
-
} else e === "easing" && Array.isArray(t) ?
|
|
42
|
+
} else n[e] = e === "easing" && Array.isArray(t) ? `cubic-bezier(${t[0]}, ${t[1]}, ${t[2]}, ${t[3]})` : t;
|
|
43
43
|
let { duration: r, delay: i, property: a, easing: o } = n;
|
|
44
44
|
console.log("called", e, o, t), _?.(`${a} ${r} ${o} ${i}`);
|
|
45
45
|
}, [_]), A = o((e) => k("easing")(e), [k]), j = [];
|
|
@@ -18,62 +18,62 @@ var _ = "none", v = "circle", y = "decimal", b = "disc", x = "square", S = "lowe
|
|
|
18
18
|
keys: w,
|
|
19
19
|
asValue: !0,
|
|
20
20
|
replaceTokens: a
|
|
21
|
-
})
|
|
21
|
+
}), k = s((e) => E?.("list", e), [E]), A = s((e) => D("list-style", e), [D]), j = c(() => [
|
|
22
|
+
{
|
|
23
|
+
value: _,
|
|
24
|
+
icon: /* @__PURE__ */ l(u, {}),
|
|
25
|
+
description: "",
|
|
26
|
+
active: O === _
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
value: b,
|
|
30
|
+
icon: /* @__PURE__ */ l(f, {}),
|
|
31
|
+
description: "",
|
|
32
|
+
active: O === b
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
value: v,
|
|
36
|
+
icon: /* @__PURE__ */ l(d, {}),
|
|
37
|
+
description: "",
|
|
38
|
+
active: O === v
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
value: x,
|
|
42
|
+
icon: /* @__PURE__ */ l(g, {}),
|
|
43
|
+
description: "",
|
|
44
|
+
active: O === x
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
value: y,
|
|
48
|
+
icon: /* @__PURE__ */ l(m, {}),
|
|
49
|
+
description: "",
|
|
50
|
+
active: O === y
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
value: S,
|
|
54
|
+
icon: /* @__PURE__ */ l(p, {}),
|
|
55
|
+
description: "",
|
|
56
|
+
active: O === S
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
value: C,
|
|
60
|
+
icon: /* @__PURE__ */ l(h, {}),
|
|
61
|
+
description: "",
|
|
62
|
+
active: O === C
|
|
63
|
+
}
|
|
64
|
+
], [O]);
|
|
22
65
|
return /* @__PURE__ */ l(i, {
|
|
23
66
|
title: "List",
|
|
24
67
|
dotKeys: w,
|
|
25
68
|
isCollapsed: T,
|
|
26
|
-
onCollapse:
|
|
69
|
+
onCollapse: k,
|
|
27
70
|
children: /* @__PURE__ */ l(r, {
|
|
28
71
|
keys: w,
|
|
29
72
|
label: "Style",
|
|
30
73
|
children: /* @__PURE__ */ l(n, {
|
|
31
|
-
onChange:
|
|
74
|
+
onChange: A,
|
|
32
75
|
type: "iconGroup",
|
|
33
|
-
items:
|
|
34
|
-
{
|
|
35
|
-
value: _,
|
|
36
|
-
icon: /* @__PURE__ */ l(u, {}),
|
|
37
|
-
description: "",
|
|
38
|
-
active: O === _
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
value: b,
|
|
42
|
-
icon: /* @__PURE__ */ l(f, {}),
|
|
43
|
-
description: "",
|
|
44
|
-
active: O === b
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
value: v,
|
|
48
|
-
icon: /* @__PURE__ */ l(d, {}),
|
|
49
|
-
description: "",
|
|
50
|
-
active: O === v
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
value: x,
|
|
54
|
-
icon: /* @__PURE__ */ l(g, {}),
|
|
55
|
-
description: "",
|
|
56
|
-
active: O === x
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
value: y,
|
|
60
|
-
icon: /* @__PURE__ */ l(m, {}),
|
|
61
|
-
description: "",
|
|
62
|
-
active: O === y
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
value: S,
|
|
66
|
-
icon: /* @__PURE__ */ l(p, {}),
|
|
67
|
-
description: "",
|
|
68
|
-
active: O === S
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
value: C,
|
|
72
|
-
icon: /* @__PURE__ */ l(h, {}),
|
|
73
|
-
description: "",
|
|
74
|
-
active: O === C
|
|
75
|
-
}
|
|
76
|
-
], [O])
|
|
76
|
+
items: j
|
|
77
77
|
})
|
|
78
78
|
})
|
|
79
79
|
});
|
|
@@ -18,62 +18,62 @@ var _ = ["list-style-type"], v = a(({ replaceTokens: a = !1, isCollapsed: v = !0
|
|
|
18
18
|
keys: _,
|
|
19
19
|
asValue: !0,
|
|
20
20
|
replaceTokens: a
|
|
21
|
-
})
|
|
21
|
+
}), S = s((e) => y?.("listItem", e), [y]), C = s((e) => b("list-style-type", e), [b]), w = c(() => [
|
|
22
|
+
{
|
|
23
|
+
value: "none",
|
|
24
|
+
icon: /* @__PURE__ */ l(u, {}),
|
|
25
|
+
description: "",
|
|
26
|
+
active: x === "none"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
value: "disc",
|
|
30
|
+
icon: /* @__PURE__ */ l(f, {}),
|
|
31
|
+
description: "",
|
|
32
|
+
active: x === "disc"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
value: "circle",
|
|
36
|
+
icon: /* @__PURE__ */ l(d, {}),
|
|
37
|
+
description: "",
|
|
38
|
+
active: x === "circle"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
value: "square",
|
|
42
|
+
icon: /* @__PURE__ */ l(g, {}),
|
|
43
|
+
description: "",
|
|
44
|
+
active: x === "square"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
value: "decimal",
|
|
48
|
+
icon: /* @__PURE__ */ l(m, {}),
|
|
49
|
+
description: "",
|
|
50
|
+
active: x === "decimal"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
value: "lower-alpha",
|
|
54
|
+
icon: /* @__PURE__ */ l(p, {}),
|
|
55
|
+
description: "",
|
|
56
|
+
active: x === "lower-alpha"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
value: "lower-roman",
|
|
60
|
+
icon: /* @__PURE__ */ l(h, {}),
|
|
61
|
+
description: "",
|
|
62
|
+
active: x === "lower-roman"
|
|
63
|
+
}
|
|
64
|
+
], [x]);
|
|
22
65
|
return /* @__PURE__ */ l(i, {
|
|
23
66
|
title: "List Item",
|
|
24
67
|
dotKeys: _,
|
|
25
68
|
isCollapsed: v,
|
|
26
|
-
onCollapse:
|
|
69
|
+
onCollapse: S,
|
|
27
70
|
children: /* @__PURE__ */ l(r, {
|
|
28
71
|
keys: _,
|
|
29
72
|
label: "Style",
|
|
30
73
|
children: /* @__PURE__ */ l(n, {
|
|
31
|
-
onChange:
|
|
74
|
+
onChange: C,
|
|
32
75
|
type: "iconGroup",
|
|
33
|
-
items:
|
|
34
|
-
{
|
|
35
|
-
value: "none",
|
|
36
|
-
icon: /* @__PURE__ */ l(u, {}),
|
|
37
|
-
description: "",
|
|
38
|
-
active: x === "none"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
value: "disc",
|
|
42
|
-
icon: /* @__PURE__ */ l(f, {}),
|
|
43
|
-
description: "",
|
|
44
|
-
active: x === "disc"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
value: "circle",
|
|
48
|
-
icon: /* @__PURE__ */ l(d, {}),
|
|
49
|
-
description: "",
|
|
50
|
-
active: x === "circle"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
value: "square",
|
|
54
|
-
icon: /* @__PURE__ */ l(g, {}),
|
|
55
|
-
description: "",
|
|
56
|
-
active: x === "square"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
value: "decimal",
|
|
60
|
-
icon: /* @__PURE__ */ l(m, {}),
|
|
61
|
-
description: "",
|
|
62
|
-
active: x === "decimal"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
value: "lower-alpha",
|
|
66
|
-
icon: /* @__PURE__ */ l(p, {}),
|
|
67
|
-
description: "",
|
|
68
|
-
active: x === "lower-alpha"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
value: "lower-roman",
|
|
72
|
-
icon: /* @__PURE__ */ l(h, {}),
|
|
73
|
-
description: "",
|
|
74
|
-
active: x === "lower-roman"
|
|
75
|
-
}
|
|
76
|
-
], [x])
|
|
76
|
+
items: w
|
|
77
77
|
})
|
|
78
78
|
})
|
|
79
79
|
});
|
|
@@ -13,118 +13,118 @@ import d from "@plitzi/plitzi-ui/icons/PositionTopLeft";
|
|
|
13
13
|
import f from "@plitzi/plitzi-ui/icons/PositionTopRight";
|
|
14
14
|
//#region src/components/StyleInspector/categories/Position/PositionAdvancedButtons.tsx
|
|
15
15
|
var p = ({ value: p, onChange: m }) => {
|
|
16
|
-
let { top: h, bottom: g, left: _, right: v } = p ?? {}
|
|
16
|
+
let { top: h, bottom: g, left: _, right: v } = p ?? {}, y = n(() => [
|
|
17
|
+
{
|
|
18
|
+
value: {
|
|
19
|
+
top: "0%",
|
|
20
|
+
left: "0%",
|
|
21
|
+
bottom: "auto",
|
|
22
|
+
right: "auto"
|
|
23
|
+
},
|
|
24
|
+
icon: /* @__PURE__ */ r(d, {}),
|
|
25
|
+
description: "Top Left",
|
|
26
|
+
active: h === "0%" && _ === "0%" && g === "auto" && v === "auto"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
value: {
|
|
30
|
+
top: "0%",
|
|
31
|
+
left: "auto",
|
|
32
|
+
bottom: "auto",
|
|
33
|
+
right: "0%"
|
|
34
|
+
},
|
|
35
|
+
icon: /* @__PURE__ */ r(f, {}),
|
|
36
|
+
description: "Top Right",
|
|
37
|
+
active: h === "0%" && _ === "auto" && g === "auto" && v === "0%"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
value: {
|
|
41
|
+
top: "auto",
|
|
42
|
+
left: "0%",
|
|
43
|
+
bottom: "0%",
|
|
44
|
+
right: "auto"
|
|
45
|
+
},
|
|
46
|
+
icon: /* @__PURE__ */ r(o, {}),
|
|
47
|
+
description: "Bottom Left",
|
|
48
|
+
active: h === "auto" && _ === "0%" && g === "0%" && v === "auto"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
value: {
|
|
52
|
+
top: "auto",
|
|
53
|
+
left: "auto",
|
|
54
|
+
bottom: "0%",
|
|
55
|
+
right: "0%"
|
|
56
|
+
},
|
|
57
|
+
icon: /* @__PURE__ */ r(s, {}),
|
|
58
|
+
description: "Bottom Right",
|
|
59
|
+
active: h === "0%" && _ === "0%" && g === "0%" && v === "auto"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
value: {
|
|
63
|
+
top: "0%",
|
|
64
|
+
left: "0%",
|
|
65
|
+
bottom: "0%",
|
|
66
|
+
right: "auto"
|
|
67
|
+
},
|
|
68
|
+
icon: /* @__PURE__ */ r(c, {}),
|
|
69
|
+
description: "Left",
|
|
70
|
+
active: h === "0%" && _ === "0%" && g === "0%" && v === "auto"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
value: {
|
|
74
|
+
top: "0%",
|
|
75
|
+
left: "auto",
|
|
76
|
+
bottom: "0%",
|
|
77
|
+
right: "0%"
|
|
78
|
+
},
|
|
79
|
+
icon: /* @__PURE__ */ r(l, {}),
|
|
80
|
+
description: "Right",
|
|
81
|
+
active: h === "0%" && _ === "auto" && g === "0%" && v === "0%"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
value: {
|
|
85
|
+
top: "auto",
|
|
86
|
+
left: "0%",
|
|
87
|
+
bottom: "0%",
|
|
88
|
+
right: "0%"
|
|
89
|
+
},
|
|
90
|
+
icon: /* @__PURE__ */ r(a, {}),
|
|
91
|
+
description: "Bottom",
|
|
92
|
+
active: h === "auto" && _ === "0%" && g === "0%" && v === "0%"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
value: {
|
|
96
|
+
top: "0%",
|
|
97
|
+
left: "0%",
|
|
98
|
+
bottom: "auto",
|
|
99
|
+
right: "0%"
|
|
100
|
+
},
|
|
101
|
+
icon: /* @__PURE__ */ r(u, {}),
|
|
102
|
+
description: "Top",
|
|
103
|
+
active: h === "0%" && _ === "0%" && g === "auto" && v === "0%"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
value: {
|
|
107
|
+
top: "0%",
|
|
108
|
+
left: "0%",
|
|
109
|
+
bottom: "0%",
|
|
110
|
+
right: "0%"
|
|
111
|
+
},
|
|
112
|
+
icon: /* @__PURE__ */ r(i, {}),
|
|
113
|
+
description: "Full",
|
|
114
|
+
active: h === "0%" && _ === "0%" && g === "0%" && v === "0%"
|
|
115
|
+
}
|
|
116
|
+
], [
|
|
117
|
+
h,
|
|
118
|
+
_,
|
|
119
|
+
g,
|
|
120
|
+
v
|
|
121
|
+
]);
|
|
17
122
|
return /* @__PURE__ */ r(t, {
|
|
18
123
|
label: "",
|
|
19
124
|
children: /* @__PURE__ */ r(e, {
|
|
20
125
|
onChange: m,
|
|
21
126
|
type: "iconGroup",
|
|
22
|
-
items:
|
|
23
|
-
{
|
|
24
|
-
value: {
|
|
25
|
-
top: "0%",
|
|
26
|
-
left: "0%",
|
|
27
|
-
bottom: "auto",
|
|
28
|
-
right: "auto"
|
|
29
|
-
},
|
|
30
|
-
icon: /* @__PURE__ */ r(d, {}),
|
|
31
|
-
description: "Top Left",
|
|
32
|
-
active: h === "0%" && _ === "0%" && g === "auto" && v === "auto"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
value: {
|
|
36
|
-
top: "0%",
|
|
37
|
-
left: "auto",
|
|
38
|
-
bottom: "auto",
|
|
39
|
-
right: "0%"
|
|
40
|
-
},
|
|
41
|
-
icon: /* @__PURE__ */ r(f, {}),
|
|
42
|
-
description: "Top Right",
|
|
43
|
-
active: h === "0%" && _ === "auto" && g === "auto" && v === "0%"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
value: {
|
|
47
|
-
top: "auto",
|
|
48
|
-
left: "0%",
|
|
49
|
-
bottom: "0%",
|
|
50
|
-
right: "auto"
|
|
51
|
-
},
|
|
52
|
-
icon: /* @__PURE__ */ r(o, {}),
|
|
53
|
-
description: "Bottom Left",
|
|
54
|
-
active: h === "auto" && _ === "0%" && g === "0%" && v === "auto"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
value: {
|
|
58
|
-
top: "auto",
|
|
59
|
-
left: "auto",
|
|
60
|
-
bottom: "0%",
|
|
61
|
-
right: "0%"
|
|
62
|
-
},
|
|
63
|
-
icon: /* @__PURE__ */ r(s, {}),
|
|
64
|
-
description: "Bottom Right",
|
|
65
|
-
active: h === "0%" && _ === "0%" && g === "0%" && v === "auto"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
value: {
|
|
69
|
-
top: "0%",
|
|
70
|
-
left: "0%",
|
|
71
|
-
bottom: "0%",
|
|
72
|
-
right: "auto"
|
|
73
|
-
},
|
|
74
|
-
icon: /* @__PURE__ */ r(c, {}),
|
|
75
|
-
description: "Left",
|
|
76
|
-
active: h === "0%" && _ === "0%" && g === "0%" && v === "auto"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
value: {
|
|
80
|
-
top: "0%",
|
|
81
|
-
left: "auto",
|
|
82
|
-
bottom: "0%",
|
|
83
|
-
right: "0%"
|
|
84
|
-
},
|
|
85
|
-
icon: /* @__PURE__ */ r(l, {}),
|
|
86
|
-
description: "Right",
|
|
87
|
-
active: h === "0%" && _ === "auto" && g === "0%" && v === "0%"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
value: {
|
|
91
|
-
top: "auto",
|
|
92
|
-
left: "0%",
|
|
93
|
-
bottom: "0%",
|
|
94
|
-
right: "0%"
|
|
95
|
-
},
|
|
96
|
-
icon: /* @__PURE__ */ r(a, {}),
|
|
97
|
-
description: "Bottom",
|
|
98
|
-
active: h === "auto" && _ === "0%" && g === "0%" && v === "0%"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
value: {
|
|
102
|
-
top: "0%",
|
|
103
|
-
left: "0%",
|
|
104
|
-
bottom: "auto",
|
|
105
|
-
right: "0%"
|
|
106
|
-
},
|
|
107
|
-
icon: /* @__PURE__ */ r(u, {}),
|
|
108
|
-
description: "Top",
|
|
109
|
-
active: h === "0%" && _ === "0%" && g === "auto" && v === "0%"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
value: {
|
|
113
|
-
top: "0%",
|
|
114
|
-
left: "0%",
|
|
115
|
-
bottom: "0%",
|
|
116
|
-
right: "0%"
|
|
117
|
-
},
|
|
118
|
-
icon: /* @__PURE__ */ r(i, {}),
|
|
119
|
-
description: "Full",
|
|
120
|
-
active: h === "0%" && _ === "0%" && g === "0%" && v === "0%"
|
|
121
|
-
}
|
|
122
|
-
], [
|
|
123
|
-
h,
|
|
124
|
-
_,
|
|
125
|
-
g,
|
|
126
|
-
v
|
|
127
|
-
])
|
|
127
|
+
items: y
|
|
128
128
|
})
|
|
129
129
|
});
|
|
130
130
|
};
|
|
@@ -7,39 +7,42 @@ import a from "@plitzi/plitzi-ui/icons/ClearBoth";
|
|
|
7
7
|
import o from "@plitzi/plitzi-ui/icons/ClearLeft";
|
|
8
8
|
import s from "@plitzi/plitzi-ui/icons/ClearRight";
|
|
9
9
|
//#region src/components/StyleInspector/categories/Position/PositionClear.tsx
|
|
10
|
-
var c = ({ value: c, onChange: l }) =>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
10
|
+
var c = ({ value: c, onChange: l }) => {
|
|
11
|
+
let u = n(() => [
|
|
12
|
+
{
|
|
13
|
+
value: "none",
|
|
14
|
+
icon: /* @__PURE__ */ r(i, {}),
|
|
15
|
+
description: "Static",
|
|
16
|
+
active: c === "none"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
value: "left",
|
|
20
|
+
icon: /* @__PURE__ */ r(o, {}),
|
|
21
|
+
description: "Clear Left",
|
|
22
|
+
active: c === "left"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
value: "right",
|
|
26
|
+
icon: /* @__PURE__ */ r(s, {}),
|
|
27
|
+
description: "Clear Right",
|
|
28
|
+
active: c === "right"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
value: "both",
|
|
32
|
+
icon: /* @__PURE__ */ r(a, {}),
|
|
33
|
+
description: "Clear Both",
|
|
34
|
+
active: c === "both"
|
|
35
|
+
}
|
|
36
|
+
], [c]);
|
|
37
|
+
return /* @__PURE__ */ r(t, {
|
|
38
|
+
label: "Clear",
|
|
39
|
+
keys: ["clear"],
|
|
40
|
+
children: /* @__PURE__ */ r(e, {
|
|
41
|
+
onChange: l,
|
|
42
|
+
type: "iconGroup",
|
|
43
|
+
items: u
|
|
44
|
+
})
|
|
45
|
+
});
|
|
46
|
+
};
|
|
44
47
|
//#endregion
|
|
45
48
|
export { c as default };
|
|
@@ -6,33 +6,36 @@ import i from "@plitzi/plitzi-ui/icons/XMark";
|
|
|
6
6
|
import a from "@plitzi/plitzi-ui/icons/FloatLeft";
|
|
7
7
|
import o from "@plitzi/plitzi-ui/icons/FloatRight";
|
|
8
8
|
//#region src/components/StyleInspector/categories/Position/PositionFloat.tsx
|
|
9
|
-
var s = ({ value: s, onChange: c }) =>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
9
|
+
var s = ({ value: s, onChange: c }) => {
|
|
10
|
+
let l = n(() => [
|
|
11
|
+
{
|
|
12
|
+
value: "none",
|
|
13
|
+
icon: /* @__PURE__ */ r(i, {}),
|
|
14
|
+
description: "Static",
|
|
15
|
+
active: s === "none"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
value: "left",
|
|
19
|
+
icon: /* @__PURE__ */ r(a, {}),
|
|
20
|
+
description: "Float Left",
|
|
21
|
+
active: s === "left"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
value: "right",
|
|
25
|
+
icon: /* @__PURE__ */ r(o, {}),
|
|
26
|
+
description: "Float Right",
|
|
27
|
+
active: s === "right"
|
|
28
|
+
}
|
|
29
|
+
], [s]);
|
|
30
|
+
return /* @__PURE__ */ r(t, {
|
|
31
|
+
label: "Float",
|
|
32
|
+
keys: ["float"],
|
|
33
|
+
children: /* @__PURE__ */ r(e, {
|
|
34
|
+
onChange: c,
|
|
35
|
+
type: "iconGroup",
|
|
36
|
+
items: l
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
};
|
|
37
40
|
//#endregion
|
|
38
41
|
export { s as default };
|
|
@@ -46,7 +46,7 @@ var d = [
|
|
|
46
46
|
"padding-left": t,
|
|
47
47
|
"padding-right": t
|
|
48
48
|
});
|
|
49
|
-
}, [m, g]);
|
|
49
|
+
}, [m, g]), C = s((e) => y(e), [y]);
|
|
50
50
|
return /* @__PURE__ */ l(n, {
|
|
51
51
|
title: "Spacing",
|
|
52
52
|
dotKeys: d,
|
|
@@ -57,7 +57,7 @@ var d = [
|
|
|
57
57
|
children: [/* @__PURE__ */ l(i, {
|
|
58
58
|
values: _,
|
|
59
59
|
fragmentSelected: v,
|
|
60
|
-
onSelectFragment:
|
|
60
|
+
onSelectFragment: C,
|
|
61
61
|
isLinked: m,
|
|
62
62
|
onLinkSelected: x
|
|
63
63
|
}), v && /* @__PURE__ */ l(r, {
|