@plitzi/sdk-style 0.32.15 → 0.32.17
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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @plitzi/sdk-style
|
|
2
2
|
|
|
3
|
+
## 0.32.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- v0.32.17
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @plitzi/sdk-plugins@0.32.17
|
|
10
|
+
- @plitzi/sdk-shared@0.32.17
|
|
11
|
+
- @plitzi/sdk-variables@0.32.17
|
|
12
|
+
|
|
13
|
+
## 0.32.16
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- v0.32.16
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
- @plitzi/sdk-plugins@0.32.16
|
|
20
|
+
- @plitzi/sdk-shared@0.32.16
|
|
21
|
+
- @plitzi/sdk-variables@0.32.16
|
|
22
|
+
|
|
3
23
|
## 0.32.15
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -29,16 +29,16 @@ var g = () => {
|
|
|
29
29
|
T,
|
|
30
30
|
b,
|
|
31
31
|
S
|
|
32
|
-
])
|
|
32
|
+
]), k = i(() => v ? Object.keys(v).flatMap((e) => Object.keys(v[e] ?? {})).map((e) => ({
|
|
33
|
+
type: "css-token",
|
|
34
|
+
value: e
|
|
35
|
+
})) : [], [v]);
|
|
33
36
|
return /* @__PURE__ */ s("div", {
|
|
34
37
|
className: "relative flex h-full w-full flex-col",
|
|
35
38
|
children: [/* @__PURE__ */ o(d, {
|
|
36
39
|
className: "h-full",
|
|
37
40
|
value: b,
|
|
38
|
-
autoComplete:
|
|
39
|
-
type: "css-token",
|
|
40
|
-
value: e
|
|
41
|
-
})) : [], [v]),
|
|
41
|
+
autoComplete: k,
|
|
42
42
|
theme: g === "dark" ? "dark" : "light",
|
|
43
43
|
lineWrapping: !0,
|
|
44
44
|
onChange: D
|
|
@@ -50,7 +50,7 @@ var o = class {
|
|
|
50
50
|
return !s || !s.variables || !s.variables[i] || !s.variables[i][o] ? !1 : (delete s.variables[i][o], Object.keys(s.variables[i]).length === 0 && delete s.variables[i], Object.keys(s.variables).length === 0 && delete s.variables, a(this.platform, `${n}.${r}.cache`, e(s)), !0);
|
|
51
51
|
};
|
|
52
52
|
static removeSelectorVariable = (e, t, n, r, i) => this.getInstance(e).removeSelectorVariable(t, n, r, i);
|
|
53
|
-
addVariable = (e, t, n) => (this.variables[e] || (this.variables[e] = {}), this.variables[e][t]
|
|
53
|
+
addVariable = (e, t, n) => (this.variables[e] || (this.variables[e] = {}), !this.variables[e][t] && (this.variables[e][t] = n, !0));
|
|
54
54
|
static addVariable = (e, t, n, r) => this.getInstance(e).addVariable(t, n, r);
|
|
55
55
|
updateVariable = (e, t, n) => !this.variables[e] || !this.variables[e][t] ? !1 : (this.variables[e][t] = n, !0);
|
|
56
56
|
static updateVariable = (e, t, n, r) => this.getInstance(e).updateVariable(t, n, r);
|
|
@@ -16,19 +16,25 @@ var i = (t, n, r) => {
|
|
|
16
16
|
let m = a(l, p, f), h = !!f || !!p;
|
|
17
17
|
if (d !== void 0) {
|
|
18
18
|
if (e(d) && o(d)) {
|
|
19
|
-
if (s === "update" && h
|
|
19
|
+
if (s === "update" && h) {
|
|
20
|
+
let e = p ? `attributes.${l}.variants` : `attributes.${l}.states`;
|
|
21
|
+
if (!t(c, e)) return;
|
|
22
|
+
}
|
|
20
23
|
r(c, m, {});
|
|
21
24
|
return;
|
|
22
25
|
}
|
|
23
|
-
|
|
26
|
+
let n = t(c, m, {});
|
|
27
|
+
r(c, m, i(u, d, n));
|
|
24
28
|
return;
|
|
25
29
|
}
|
|
26
30
|
if (s === "add" && !u && h) {
|
|
27
|
-
|
|
31
|
+
let e = p ? `attributes.${l}.variants` : `attributes.${l}.states`;
|
|
32
|
+
t(c, e) || r(c, m, {});
|
|
28
33
|
return;
|
|
29
34
|
}
|
|
30
35
|
if (u) {
|
|
31
|
-
|
|
36
|
+
let e = t(c, m, {});
|
|
37
|
+
r(c, m, n(e, [u]));
|
|
32
38
|
return;
|
|
33
39
|
}
|
|
34
40
|
if (p) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
//#region src/components/InputEasing/Curve.tsx
|
|
3
3
|
var t = [], n = ({ value: n = t, xFrom: r = 0, xTo: i = 0, yFrom: a = 0, yTo: o = 0 }) => {
|
|
4
|
-
let s = (e, t, n) => e * (1 - n) + t * n, c = (e) => Math.round(s(r, i, e)), l = (e) => Math.round(s(a, o, e)), u = c(0), d = l(0), f = c(1), p = l(1);
|
|
4
|
+
let s = (e, t, n) => e * (1 - n) + t * n, c = (e) => Math.round(s(r, i, e)), l = (e) => Math.round(s(a, o, e)), u = c(0), d = l(0), f = c(1), p = l(1), m = c(n[0]), h = l(n[1]), g = c(n[2]), _ = l(n[3]);
|
|
5
5
|
return /* @__PURE__ */ e("path", {
|
|
6
6
|
className: "fill-transparent stroke-gray-900 stroke-2",
|
|
7
|
-
d: `M${u},${d} C${
|
|
7
|
+
d: `M${u},${d} C${m},${h} ${g},${_} ${f},${p}`
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
@@ -5,10 +5,10 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
5
5
|
var r = ({ progress: r = 0, xFrom: i = 0, xTo: a = 0, yFrom: o = 0, yTo: s = 0, value: c }) => {
|
|
6
6
|
let l = t(() => e(...c), [c]), u = (e, t, n) => e * (1 - n) + t * n, d = (e) => Math.round(u(i, a, e)), f = (e) => Math.round(u(o, s, e));
|
|
7
7
|
if (!r) return /* @__PURE__ */ n("path", {});
|
|
8
|
-
let p = d(0), m = f(0), h = d(r), g = f(l ? l(r) : 0)
|
|
8
|
+
let p = d(0), m = f(0), h = d(r), g = f(l ? l(r) : 0), _ = `M${h},${m} L${h},${g} L${p},${g}`;
|
|
9
9
|
return /* @__PURE__ */ n("path", {
|
|
10
10
|
className: "fill-transparent stroke-blue-400 stroke-1",
|
|
11
|
-
d:
|
|
11
|
+
d: _
|
|
12
12
|
});
|
|
13
13
|
};
|
|
14
14
|
//#endregion
|
|
@@ -40,7 +40,6 @@ var y = c(({ className: c = "", value: y = "", selectors: b, selector: x, compon
|
|
|
40
40
|
E?.(n, !0, i(R, `${e}`)), w?.(t);
|
|
41
41
|
break;
|
|
42
42
|
}
|
|
43
|
-
default: break;
|
|
44
43
|
}
|
|
45
44
|
}, [
|
|
46
45
|
R,
|
|
@@ -72,10 +71,7 @@ var y = c(({ className: c = "", value: y = "", selectors: b, selector: x, compon
|
|
|
72
71
|
case "ArrowDown":
|
|
73
72
|
M(!0);
|
|
74
73
|
break;
|
|
75
|
-
case "Escape":
|
|
76
|
-
t.stopPropagation(), A(""), t.target.blur();
|
|
77
|
-
break;
|
|
78
|
-
default: break;
|
|
74
|
+
case "Escape": t.stopPropagation(), A(""), t.target.blur();
|
|
79
75
|
}
|
|
80
76
|
}, [
|
|
81
77
|
R,
|
|
@@ -49,37 +49,37 @@ var u = ({ children: u, componentType: d, selector: f, styleSelector: p = "base"
|
|
|
49
49
|
}), {});
|
|
50
50
|
C(void 0, t);
|
|
51
51
|
} else C(e);
|
|
52
|
-
}, [C])
|
|
52
|
+
}, [C]), E = a(() => ({
|
|
53
|
+
componentType: d,
|
|
54
|
+
selector: f,
|
|
55
|
+
styleSelector: p,
|
|
56
|
+
styleState: m,
|
|
57
|
+
styleVariant: h,
|
|
58
|
+
displayMode: v,
|
|
59
|
+
variables: x,
|
|
60
|
+
inheritData: _.style,
|
|
61
|
+
bindingData: b,
|
|
62
|
+
getValues: S,
|
|
63
|
+
setValue: C,
|
|
64
|
+
resetValue: T,
|
|
65
|
+
getDefaultValue: w
|
|
66
|
+
}), [
|
|
67
|
+
d,
|
|
68
|
+
f,
|
|
69
|
+
p,
|
|
70
|
+
m,
|
|
71
|
+
h,
|
|
72
|
+
v,
|
|
73
|
+
x,
|
|
74
|
+
_.style,
|
|
75
|
+
b,
|
|
76
|
+
S,
|
|
77
|
+
C,
|
|
78
|
+
T,
|
|
79
|
+
w
|
|
80
|
+
]);
|
|
53
81
|
return /* @__PURE__ */ o(e, {
|
|
54
|
-
value:
|
|
55
|
-
componentType: d,
|
|
56
|
-
selector: f,
|
|
57
|
-
styleSelector: p,
|
|
58
|
-
styleState: m,
|
|
59
|
-
styleVariant: h,
|
|
60
|
-
displayMode: v,
|
|
61
|
-
variables: x,
|
|
62
|
-
inheritData: _.style,
|
|
63
|
-
bindingData: b,
|
|
64
|
-
getValues: S,
|
|
65
|
-
setValue: C,
|
|
66
|
-
resetValue: T,
|
|
67
|
-
getDefaultValue: w
|
|
68
|
-
}), [
|
|
69
|
-
d,
|
|
70
|
-
f,
|
|
71
|
-
p,
|
|
72
|
-
m,
|
|
73
|
-
h,
|
|
74
|
-
v,
|
|
75
|
-
x,
|
|
76
|
-
_.style,
|
|
77
|
-
b,
|
|
78
|
-
S,
|
|
79
|
-
C,
|
|
80
|
-
T,
|
|
81
|
-
w
|
|
82
|
-
]),
|
|
82
|
+
value: E,
|
|
83
83
|
children: u
|
|
84
84
|
});
|
|
85
85
|
};
|
|
@@ -74,12 +74,12 @@ var x = [
|
|
|
74
74
|
E("background-color", e);
|
|
75
75
|
}, [E]), W = h((e) => {
|
|
76
76
|
E("mask-image", e);
|
|
77
|
-
}, [E]);
|
|
77
|
+
}, [E]), G = h((e) => T?.("background", e), [T]);
|
|
78
78
|
return /* @__PURE__ */ v(d, {
|
|
79
79
|
title: "Background",
|
|
80
80
|
dotKeys: x,
|
|
81
81
|
isCollapsed: w,
|
|
82
|
-
onCollapse:
|
|
82
|
+
onCollapse: G,
|
|
83
83
|
children: /* @__PURE__ */ y("div", {
|
|
84
84
|
className: "flex flex-col gap-2",
|
|
85
85
|
children: [
|
|
@@ -31,43 +31,43 @@ var s = ({ layer: s, onChange: c }) => {
|
|
|
31
31
|
s,
|
|
32
32
|
c,
|
|
33
33
|
u
|
|
34
|
-
])
|
|
34
|
+
]), h = r(() => [
|
|
35
|
+
{
|
|
36
|
+
value: "auto",
|
|
37
|
+
icon: /* @__PURE__ */ a("div", {
|
|
38
|
+
className: "px-1 text-xs select-none",
|
|
39
|
+
children: "Custom"
|
|
40
|
+
}),
|
|
41
|
+
description: "Custom dimensions",
|
|
42
|
+
active: f === "auto",
|
|
43
|
+
size: "custom"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
value: "cover",
|
|
47
|
+
icon: /* @__PURE__ */ a("div", {
|
|
48
|
+
className: "px-1 text-xs select-none",
|
|
49
|
+
children: "Cover"
|
|
50
|
+
}),
|
|
51
|
+
description: "Cover the element",
|
|
52
|
+
active: f === "cover",
|
|
53
|
+
size: "custom"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
value: "contain",
|
|
57
|
+
icon: /* @__PURE__ */ a("div", {
|
|
58
|
+
className: "px-1 text-xs select-none",
|
|
59
|
+
children: "Contain"
|
|
60
|
+
}),
|
|
61
|
+
description: "Fit inside the element",
|
|
62
|
+
active: f === "contain",
|
|
63
|
+
size: "custom"
|
|
64
|
+
}
|
|
65
|
+
], [f]);
|
|
35
66
|
return /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a(t, {
|
|
36
67
|
label: "Size",
|
|
37
68
|
children: /* @__PURE__ */ a(e, {
|
|
38
69
|
type: "iconGroup",
|
|
39
|
-
items:
|
|
40
|
-
{
|
|
41
|
-
value: "auto",
|
|
42
|
-
icon: /* @__PURE__ */ a("div", {
|
|
43
|
-
className: "px-1 text-xs select-none",
|
|
44
|
-
children: "Custom"
|
|
45
|
-
}),
|
|
46
|
-
description: "Custom dimensions",
|
|
47
|
-
active: f === "auto",
|
|
48
|
-
size: "custom"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
value: "cover",
|
|
52
|
-
icon: /* @__PURE__ */ a("div", {
|
|
53
|
-
className: "px-1 text-xs select-none",
|
|
54
|
-
children: "Cover"
|
|
55
|
-
}),
|
|
56
|
-
description: "Cover the element",
|
|
57
|
-
active: f === "cover",
|
|
58
|
-
size: "custom"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
value: "contain",
|
|
62
|
-
icon: /* @__PURE__ */ a("div", {
|
|
63
|
-
className: "px-1 text-xs select-none",
|
|
64
|
-
children: "Contain"
|
|
65
|
-
}),
|
|
66
|
-
description: "Fit inside the element",
|
|
67
|
-
active: f === "contain",
|
|
68
|
-
size: "custom"
|
|
69
|
-
}
|
|
70
|
-
], [f]),
|
|
70
|
+
items: h,
|
|
71
71
|
onChange: d
|
|
72
72
|
})
|
|
73
73
|
}), l && /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ a(e, {
|
|
@@ -7,41 +7,44 @@ import o from "@plitzi/plitzi-ui/icons/BackgroundTileXY";
|
|
|
7
7
|
import s from "@plitzi/plitzi-ui/icons/BackgroundTileY";
|
|
8
8
|
import c from "@plitzi/plitzi-ui/icons/XMark";
|
|
9
9
|
//#region src/components/StyleInspector/categories/Background/components/BackgroundTile/BackgroundTile.tsx
|
|
10
|
-
var l = ({ layer: l, onChange: u }) =>
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
10
|
+
var l = ({ layer: l, onChange: u }) => {
|
|
11
|
+
let d = r(() => [
|
|
12
|
+
{
|
|
13
|
+
value: "repeat",
|
|
14
|
+
icon: /* @__PURE__ */ i(o, {}),
|
|
15
|
+
description: "Horizontally and Vertically",
|
|
16
|
+
active: l.repeat === "repeat"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
value: "repeat-x",
|
|
20
|
+
icon: /* @__PURE__ */ i(a, {}),
|
|
21
|
+
description: "Horizontally",
|
|
22
|
+
active: l.repeat === "repeat-x"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
value: "repeat-y",
|
|
26
|
+
icon: /* @__PURE__ */ i(s, {}),
|
|
27
|
+
description: "Vertically",
|
|
28
|
+
active: l.repeat === "repeat-y"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
value: "no-repeat",
|
|
32
|
+
icon: /* @__PURE__ */ i(c, {}),
|
|
33
|
+
description: "Don't tile",
|
|
34
|
+
active: l.repeat === "no-repeat"
|
|
35
|
+
}
|
|
36
|
+
], [l.repeat]), f = n((e) => u?.({
|
|
37
|
+
...l,
|
|
38
|
+
repeat: String(e)
|
|
39
|
+
}), [l, u]);
|
|
40
|
+
return /* @__PURE__ */ i(t, {
|
|
41
|
+
label: "Tile",
|
|
42
|
+
children: /* @__PURE__ */ i(e, {
|
|
43
|
+
type: "iconGroup",
|
|
44
|
+
items: d,
|
|
45
|
+
onChange: f
|
|
46
|
+
})
|
|
47
|
+
});
|
|
48
|
+
};
|
|
46
49
|
//#endregion
|
|
47
50
|
export { l as default };
|
|
@@ -75,18 +75,17 @@ var m = [
|
|
|
75
75
|
});
|
|
76
76
|
break;
|
|
77
77
|
}
|
|
78
|
-
default: break;
|
|
79
78
|
}
|
|
80
79
|
}, [
|
|
81
80
|
_,
|
|
82
81
|
b,
|
|
83
82
|
y
|
|
84
|
-
]);
|
|
83
|
+
]), S = u((e) => g?.("border", e), [g]);
|
|
85
84
|
return /* @__PURE__ */ f(n, {
|
|
86
85
|
title: "Border",
|
|
87
86
|
dotKeys: m,
|
|
88
87
|
isCollapsed: h,
|
|
89
|
-
onCollapse:
|
|
88
|
+
onCollapse: S,
|
|
90
89
|
children: /* @__PURE__ */ p("div", {
|
|
91
90
|
className: "flex flex-col gap-2",
|
|
92
91
|
children: [/* @__PURE__ */ f(a, {
|
|
@@ -14,15 +14,15 @@ var i = ({ values: i, currentPlacement: a, onChange: o }) => {
|
|
|
14
14
|
case a === "right": return r;
|
|
15
15
|
default: return "#000000";
|
|
16
16
|
}
|
|
17
|
-
}, [i, a])
|
|
17
|
+
}, [i, a]), c = n(() => a === "all" ? [
|
|
18
|
+
"border-top-color",
|
|
19
|
+
"border-bottom-color",
|
|
20
|
+
"border-left-color",
|
|
21
|
+
"border-right-color"
|
|
22
|
+
] : [`border-${a}-color`], [a]);
|
|
18
23
|
return /* @__PURE__ */ r(t, {
|
|
19
24
|
label: "Color",
|
|
20
|
-
keys:
|
|
21
|
-
"border-top-color",
|
|
22
|
-
"border-bottom-color",
|
|
23
|
-
"border-left-color",
|
|
24
|
-
"border-right-color"
|
|
25
|
-
] : [`border-${a}-color`], [a]),
|
|
25
|
+
keys: c,
|
|
26
26
|
children: /* @__PURE__ */ r(e, {
|
|
27
27
|
value: s,
|
|
28
28
|
onChange: o,
|
|
@@ -19,24 +19,24 @@ var s = [
|
|
|
19
19
|
f === p && f === m && f === h && (v = f);
|
|
20
20
|
let y = n((e) => {
|
|
21
21
|
_(e);
|
|
22
|
-
}, [])
|
|
22
|
+
}, []), b = r(() => [{
|
|
23
|
+
value: !1,
|
|
24
|
+
icon: "fa-regular fa-square",
|
|
25
|
+
description: "",
|
|
26
|
+
active: !g
|
|
27
|
+
}, {
|
|
28
|
+
value: !0,
|
|
29
|
+
icon: "fa-solid fa-expand",
|
|
30
|
+
description: "",
|
|
31
|
+
active: g
|
|
32
|
+
}], [g]);
|
|
23
33
|
return /* @__PURE__ */ o("div", {
|
|
24
34
|
className: "flex flex-col gap-2",
|
|
25
35
|
children: [/* @__PURE__ */ o(t, {
|
|
26
36
|
label: "Radius",
|
|
27
37
|
keys: s,
|
|
28
38
|
children: [/* @__PURE__ */ a(e, {
|
|
29
|
-
items:
|
|
30
|
-
value: !1,
|
|
31
|
-
icon: "fa-regular fa-square",
|
|
32
|
-
description: "",
|
|
33
|
-
active: !g
|
|
34
|
-
}, {
|
|
35
|
-
value: !0,
|
|
36
|
-
icon: "fa-solid fa-expand",
|
|
37
|
-
description: "",
|
|
38
|
-
active: g
|
|
39
|
-
}], [g]),
|
|
39
|
+
items: b,
|
|
40
40
|
type: "iconGroup",
|
|
41
41
|
onChange: y
|
|
42
42
|
}), /* @__PURE__ */ a(e, {
|
|
@@ -43,15 +43,15 @@ var c = ({ values: c, currentPlacement: l, onChange: u }) => {
|
|
|
43
43
|
description: "",
|
|
44
44
|
active: d === "dotted"
|
|
45
45
|
}
|
|
46
|
-
], [d])
|
|
46
|
+
], [d]), p = n(() => l === "all" ? [
|
|
47
|
+
"border-top-style",
|
|
48
|
+
"border-bottom-style",
|
|
49
|
+
"border-left-style",
|
|
50
|
+
"border-right-style"
|
|
51
|
+
] : [`border-${l}-style`], [l]);
|
|
47
52
|
return /* @__PURE__ */ r(t, {
|
|
48
53
|
label: "Style",
|
|
49
|
-
keys:
|
|
50
|
-
"border-top-style",
|
|
51
|
-
"border-bottom-style",
|
|
52
|
-
"border-left-style",
|
|
53
|
-
"border-right-style"
|
|
54
|
-
] : [`border-${l}-style`], [l]),
|
|
54
|
+
keys: p,
|
|
55
55
|
children: /* @__PURE__ */ r(e, {
|
|
56
56
|
onChange: u,
|
|
57
57
|
items: f,
|
|
@@ -14,15 +14,15 @@ var i = ({ values: i, currentPlacement: a, onChange: o }) => {
|
|
|
14
14
|
case a === "right": return r;
|
|
15
15
|
default: return "0px";
|
|
16
16
|
}
|
|
17
|
-
}, [i, a])
|
|
17
|
+
}, [i, a]), c = n(() => a === "all" ? [
|
|
18
|
+
"border-top-width",
|
|
19
|
+
"border-bottom-width",
|
|
20
|
+
"border-left-width",
|
|
21
|
+
"border-right-width"
|
|
22
|
+
] : [`border-${a}-width`], [a]);
|
|
18
23
|
return /* @__PURE__ */ r(t, {
|
|
19
24
|
label: "Width",
|
|
20
|
-
keys:
|
|
21
|
-
"border-top-width",
|
|
22
|
-
"border-bottom-width",
|
|
23
|
-
"border-left-width",
|
|
24
|
-
"border-right-width"
|
|
25
|
-
] : [`border-${a}-width`], [a]),
|
|
25
|
+
keys: c,
|
|
26
26
|
children: /* @__PURE__ */ r(e, {
|
|
27
27
|
value: s,
|
|
28
28
|
onChange: o,
|
|
@@ -14,51 +14,54 @@ var u = [
|
|
|
14
14
|
"align-items",
|
|
15
15
|
"justify-content",
|
|
16
16
|
"flex-wrap"
|
|
17
|
-
], d = ({ value: d = "block", onChange: f }) =>
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
17
|
+
], d = ({ value: d = "block", onChange: f }) => {
|
|
18
|
+
let p = n((e) => f?.("display", e), [f]), m = r(() => [
|
|
19
|
+
{
|
|
20
|
+
value: "block",
|
|
21
|
+
icon: /* @__PURE__ */ i(a, {}),
|
|
22
|
+
description: "Block elements start on a new line and take up the full available width.",
|
|
23
|
+
active: d === "block"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
value: "flex",
|
|
27
|
+
icon: /* @__PURE__ */ i(o, {}),
|
|
28
|
+
description: "Flex lays out its child elements on a horizontal or vertical axis.",
|
|
29
|
+
active: d === "flex"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
value: "grid",
|
|
33
|
+
icon: /* @__PURE__ */ i(s, {}),
|
|
34
|
+
description: "Grid lets place you items within rows and columns.",
|
|
35
|
+
active: d === "grid"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
value: "inline-block",
|
|
39
|
+
icon: /* @__PURE__ */ i(l, {}),
|
|
40
|
+
description: "Inline-block behaves like inline, but accepts width and height properties.",
|
|
41
|
+
active: d === "inline-block"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
value: "inline",
|
|
45
|
+
icon: /* @__PURE__ */ i(c, {}),
|
|
46
|
+
description: "Inline is the default for text content. The text's font size and line height determine its size",
|
|
47
|
+
active: d === "inline"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
value: "none",
|
|
51
|
+
icon: "fa-solid fa-eye-slash",
|
|
52
|
+
description: "None hides elements.",
|
|
53
|
+
active: d === "none"
|
|
54
|
+
}
|
|
55
|
+
], [d]);
|
|
56
|
+
return /* @__PURE__ */ i(t, {
|
|
57
|
+
keys: u,
|
|
58
|
+
label: "Display",
|
|
59
|
+
children: /* @__PURE__ */ i(e, {
|
|
60
|
+
onChange: p,
|
|
61
|
+
type: "iconGroup",
|
|
62
|
+
items: m
|
|
63
|
+
})
|
|
64
|
+
});
|
|
65
|
+
};
|
|
63
66
|
//#endregion
|
|
64
67
|
export { d as default };
|