@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
|
@@ -4,43 +4,46 @@ import { useCallback as n, useMemo as r } from "react";
|
|
|
4
4
|
import { jsx as i } from "react/jsx-runtime";
|
|
5
5
|
import a from "@plitzi/plitzi-ui/icons/ArrowReverse";
|
|
6
6
|
//#region src/components/StyleInspector/categories/Display/DisplayFlex.tsx
|
|
7
|
-
var o = ["flex-wrap"], s = ({ value: s, isReverse: c = !1, onChange: l }) =>
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
7
|
+
var o = ["flex-wrap"], s = ({ value: s, isReverse: c = !1, onChange: l }) => {
|
|
8
|
+
let u = n((e) => {
|
|
9
|
+
typeof e == "boolean" ? e ? l?.("flex-wrap", `${s}-reverse`) : l?.("flex-wrap", s.replace("-reverse", "")) : l?.("flex-wrap", e);
|
|
10
|
+
}, [l, s]), d = r(() => [
|
|
11
|
+
{
|
|
12
|
+
value: c ? "nowrap-reverse" : "nowrap",
|
|
13
|
+
icon: /* @__PURE__ */ i("div", {
|
|
14
|
+
className: "px-1 text-xs whitespace-nowrap select-none",
|
|
15
|
+
children: "Don't Wrap"
|
|
16
|
+
}),
|
|
17
|
+
description: "",
|
|
18
|
+
active: s === "nowrap" || s === "nowrap-reverse",
|
|
19
|
+
size: "custom"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
value: c ? "wrap-reverse" : "wrap",
|
|
23
|
+
icon: /* @__PURE__ */ i("div", {
|
|
24
|
+
className: "px-1 text-xs select-none",
|
|
25
|
+
children: "Wrap"
|
|
26
|
+
}),
|
|
27
|
+
description: "",
|
|
28
|
+
active: s === "wrap" || s === "wrap-reverse",
|
|
29
|
+
size: "custom"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
value: !c,
|
|
33
|
+
icon: /* @__PURE__ */ i(a, {}),
|
|
34
|
+
description: "Reverse Wrap",
|
|
35
|
+
active: c
|
|
36
|
+
}
|
|
37
|
+
], [s, c]);
|
|
38
|
+
return /* @__PURE__ */ i(t, {
|
|
39
|
+
label: "Children",
|
|
40
|
+
keys: o,
|
|
41
|
+
children: /* @__PURE__ */ i(e, {
|
|
42
|
+
onChange: u,
|
|
43
|
+
type: "iconGroup",
|
|
44
|
+
items: d
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
|
+
};
|
|
45
48
|
//#endregion
|
|
46
49
|
export { s as default };
|
|
@@ -40,56 +40,56 @@ var x = ["align-content"], S = ({ value: S, isReverse: C = !1, isRow: w = !1, on
|
|
|
40
40
|
case "space-around": return i(t ? f : d, {});
|
|
41
41
|
default: return;
|
|
42
42
|
}
|
|
43
|
-
}, [])
|
|
43
|
+
}, []), O = r(() => [
|
|
44
|
+
{
|
|
45
|
+
value: "flex-start",
|
|
46
|
+
icon: D("flex-start", w, C),
|
|
47
|
+
description: "Align Rows: Start",
|
|
48
|
+
active: S === "flex-start"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
value: "center",
|
|
52
|
+
icon: D("center", w, C),
|
|
53
|
+
description: "Align Rows: Center",
|
|
54
|
+
active: S === "center"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
value: "flex-end",
|
|
58
|
+
icon: D("flex-end", w, C),
|
|
59
|
+
description: "Align Rows: End",
|
|
60
|
+
active: S === "flex-end"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
value: "stretch",
|
|
64
|
+
icon: D("stretch", w, C),
|
|
65
|
+
description: "Align Rows: Stretch",
|
|
66
|
+
active: S === "stretch"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
value: "space-between",
|
|
70
|
+
icon: D("space-between", w, C),
|
|
71
|
+
description: "Align Rows: Space Between",
|
|
72
|
+
active: S === "space-between"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
value: "space-around",
|
|
76
|
+
icon: D("space-around", w, C),
|
|
77
|
+
description: "Align Rows: Space Around",
|
|
78
|
+
active: S === "space-around"
|
|
79
|
+
}
|
|
80
|
+
], [
|
|
81
|
+
D,
|
|
82
|
+
w,
|
|
83
|
+
C,
|
|
84
|
+
S
|
|
85
|
+
]);
|
|
44
86
|
return /* @__PURE__ */ i(t, {
|
|
45
87
|
keys: x,
|
|
46
88
|
label: "Align",
|
|
47
89
|
children: /* @__PURE__ */ i(e, {
|
|
48
90
|
onChange: E,
|
|
49
91
|
type: "iconGroup",
|
|
50
|
-
items:
|
|
51
|
-
{
|
|
52
|
-
value: "flex-start",
|
|
53
|
-
icon: D("flex-start", w, C),
|
|
54
|
-
description: "Align Rows: Start",
|
|
55
|
-
active: S === "flex-start"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
value: "center",
|
|
59
|
-
icon: D("center", w, C),
|
|
60
|
-
description: "Align Rows: Center",
|
|
61
|
-
active: S === "center"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
value: "flex-end",
|
|
65
|
-
icon: D("flex-end", w, C),
|
|
66
|
-
description: "Align Rows: End",
|
|
67
|
-
active: S === "flex-end"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
value: "stretch",
|
|
71
|
-
icon: D("stretch", w, C),
|
|
72
|
-
description: "Align Rows: Stretch",
|
|
73
|
-
active: S === "stretch"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
value: "space-between",
|
|
77
|
-
icon: D("space-between", w, C),
|
|
78
|
-
description: "Align Rows: Space Between",
|
|
79
|
-
active: S === "space-between"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
value: "space-around",
|
|
83
|
-
icon: D("space-around", w, C),
|
|
84
|
-
description: "Align Rows: Space Around",
|
|
85
|
-
active: S === "space-around"
|
|
86
|
-
}
|
|
87
|
-
], [
|
|
88
|
-
D,
|
|
89
|
-
w,
|
|
90
|
-
C,
|
|
91
|
-
S
|
|
92
|
-
])
|
|
92
|
+
items: O
|
|
93
93
|
})
|
|
94
94
|
});
|
|
95
95
|
};
|
|
@@ -51,50 +51,50 @@ var C = ["align-items"], w = ({ value: w, isReverse: T = !1, isRow: E = !1, onCh
|
|
|
51
51
|
break;
|
|
52
52
|
default: return;
|
|
53
53
|
}
|
|
54
|
-
}, [])
|
|
54
|
+
}, []), A = r(() => [
|
|
55
|
+
{
|
|
56
|
+
value: "flex-start",
|
|
57
|
+
icon: k("flex-start", E, T),
|
|
58
|
+
description: "Align Start",
|
|
59
|
+
active: w === "flex-start"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
value: "center",
|
|
63
|
+
icon: k("center", E, T),
|
|
64
|
+
description: "Align Center",
|
|
65
|
+
active: w === "center"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
value: "flex-end",
|
|
69
|
+
icon: k("flex-end", E, T),
|
|
70
|
+
description: "Align End",
|
|
71
|
+
active: w === "flex-end"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
value: "stretch",
|
|
75
|
+
icon: k("stretch", E, T),
|
|
76
|
+
description: "Align Stretch",
|
|
77
|
+
active: w === "stretch"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
value: "baseline",
|
|
81
|
+
icon: k("baseline", E, T),
|
|
82
|
+
description: "Align Baseline",
|
|
83
|
+
active: w === "space-between"
|
|
84
|
+
}
|
|
85
|
+
], [
|
|
86
|
+
w,
|
|
87
|
+
T,
|
|
88
|
+
E,
|
|
89
|
+
k
|
|
90
|
+
]);
|
|
55
91
|
return /* @__PURE__ */ i(t, {
|
|
56
92
|
keys: C,
|
|
57
93
|
label: "Align",
|
|
58
94
|
children: /* @__PURE__ */ i(e, {
|
|
59
95
|
onChange: O,
|
|
60
96
|
type: "iconGroup",
|
|
61
|
-
items:
|
|
62
|
-
{
|
|
63
|
-
value: "flex-start",
|
|
64
|
-
icon: k("flex-start", E, T),
|
|
65
|
-
description: "Align Start",
|
|
66
|
-
active: w === "flex-start"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
value: "center",
|
|
70
|
-
icon: k("center", E, T),
|
|
71
|
-
description: "Align Center",
|
|
72
|
-
active: w === "center"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
value: "flex-end",
|
|
76
|
-
icon: k("flex-end", E, T),
|
|
77
|
-
description: "Align End",
|
|
78
|
-
active: w === "flex-end"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
value: "stretch",
|
|
82
|
-
icon: k("stretch", E, T),
|
|
83
|
-
description: "Align Stretch",
|
|
84
|
-
active: w === "stretch"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
value: "baseline",
|
|
88
|
-
icon: k("baseline", E, T),
|
|
89
|
-
description: "Align Baseline",
|
|
90
|
-
active: w === "space-between"
|
|
91
|
-
}
|
|
92
|
-
], [
|
|
93
|
-
w,
|
|
94
|
-
T,
|
|
95
|
-
E,
|
|
96
|
-
k
|
|
97
|
-
])
|
|
97
|
+
items: A
|
|
98
98
|
})
|
|
99
99
|
});
|
|
100
100
|
};
|
|
@@ -4,43 +4,46 @@ import { useCallback as n, useMemo as r } from "react";
|
|
|
4
4
|
import { jsx as i } from "react/jsx-runtime";
|
|
5
5
|
import a from "@plitzi/plitzi-ui/icons/ArrowReverse";
|
|
6
6
|
//#region src/components/StyleInspector/categories/Display/DisplayFlexDirection.tsx
|
|
7
|
-
var o = ["flex-direction"], s = ({ value: s = "row", isReverse: c = !1, onChange: l }) =>
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
7
|
+
var o = ["flex-direction"], s = ({ value: s = "row", isReverse: c = !1, onChange: l }) => {
|
|
8
|
+
let u = n((e) => {
|
|
9
|
+
typeof e == "boolean" ? e ? l?.("flex-direction", `${s}-reverse`) : l?.("flex-direction", s.replace("-reverse", "")) : l?.("flex-direction", e);
|
|
10
|
+
}, [l, s]), d = r(() => [
|
|
11
|
+
{
|
|
12
|
+
value: c ? "row-reverse" : "row",
|
|
13
|
+
icon: /* @__PURE__ */ i("div", {
|
|
14
|
+
className: "px-1 text-xs select-none",
|
|
15
|
+
children: "Horizontal"
|
|
16
|
+
}),
|
|
17
|
+
description: "",
|
|
18
|
+
active: s === "row" || s === "row-reverse",
|
|
19
|
+
size: "custom"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
value: c ? "column-reverse" : "column",
|
|
23
|
+
icon: /* @__PURE__ */ i("div", {
|
|
24
|
+
className: "px-1 text-xs select-none",
|
|
25
|
+
children: "Vertical"
|
|
26
|
+
}),
|
|
27
|
+
description: "",
|
|
28
|
+
active: s === "column" || s === "column-reverse",
|
|
29
|
+
size: "custom"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
value: !c,
|
|
33
|
+
icon: /* @__PURE__ */ i(a, {}),
|
|
34
|
+
description: "Reverse Direction",
|
|
35
|
+
active: c
|
|
36
|
+
}
|
|
37
|
+
], [s, c]);
|
|
38
|
+
return /* @__PURE__ */ i(t, {
|
|
39
|
+
keys: o,
|
|
40
|
+
label: "Direction",
|
|
41
|
+
children: /* @__PURE__ */ i(e, {
|
|
42
|
+
onChange: u,
|
|
43
|
+
type: "iconGroup",
|
|
44
|
+
items: d
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
|
+
};
|
|
45
48
|
//#endregion
|
|
46
49
|
export { s as default };
|
|
@@ -37,50 +37,50 @@ var y = ["justify-content"], b = ({ value: b, isReverse: x = !1, isRow: S = !1,
|
|
|
37
37
|
case "space-around": return i(t ? f : d, {});
|
|
38
38
|
default: return;
|
|
39
39
|
}
|
|
40
|
-
}, [])
|
|
40
|
+
}, []), E = r(() => [
|
|
41
|
+
{
|
|
42
|
+
value: "flex-start",
|
|
43
|
+
icon: T("flex-start", S, x),
|
|
44
|
+
description: "Justify Start",
|
|
45
|
+
active: b === "flex-start"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
value: "center",
|
|
49
|
+
icon: T("center", S, x),
|
|
50
|
+
description: "Justify Center",
|
|
51
|
+
active: b === "center"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
value: "flex-end",
|
|
55
|
+
icon: T("flex-end", S, x),
|
|
56
|
+
description: "Justify End",
|
|
57
|
+
active: b === "flex-end"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
value: "space-between",
|
|
61
|
+
icon: T("space-between", S, x),
|
|
62
|
+
description: "Justify Space Between - distribute evenly from start to end",
|
|
63
|
+
active: b === "space-between"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
value: "space-around",
|
|
67
|
+
icon: T("space-around", S, x),
|
|
68
|
+
description: "Justify Space Around - distribute evenly, why space around all children",
|
|
69
|
+
active: b === "space-around"
|
|
70
|
+
}
|
|
71
|
+
], [
|
|
72
|
+
T,
|
|
73
|
+
S,
|
|
74
|
+
x,
|
|
75
|
+
b
|
|
76
|
+
]);
|
|
41
77
|
return /* @__PURE__ */ i(t, {
|
|
42
78
|
label: "Justify",
|
|
43
79
|
keys: y,
|
|
44
80
|
children: /* @__PURE__ */ i(e, {
|
|
45
81
|
onChange: w,
|
|
46
82
|
type: "iconGroup",
|
|
47
|
-
items:
|
|
48
|
-
{
|
|
49
|
-
value: "flex-start",
|
|
50
|
-
icon: T("flex-start", S, x),
|
|
51
|
-
description: "Justify Start",
|
|
52
|
-
active: b === "flex-start"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
value: "center",
|
|
56
|
-
icon: T("center", S, x),
|
|
57
|
-
description: "Justify Center",
|
|
58
|
-
active: b === "center"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
value: "flex-end",
|
|
62
|
-
icon: T("flex-end", S, x),
|
|
63
|
-
description: "Justify End",
|
|
64
|
-
active: b === "flex-end"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
value: "space-between",
|
|
68
|
-
icon: T("space-between", S, x),
|
|
69
|
-
description: "Justify Space Between - distribute evenly from start to end",
|
|
70
|
-
active: b === "space-between"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
value: "space-around",
|
|
74
|
-
icon: T("space-around", S, x),
|
|
75
|
-
description: "Justify Space Around - distribute evenly, why space around all children",
|
|
76
|
-
active: b === "space-around"
|
|
77
|
-
}
|
|
78
|
-
], [
|
|
79
|
-
T,
|
|
80
|
-
S,
|
|
81
|
-
x,
|
|
82
|
-
b
|
|
83
|
-
])
|
|
83
|
+
items: E
|
|
84
84
|
})
|
|
85
85
|
});
|
|
86
86
|
};
|
|
@@ -4,32 +4,32 @@ import { useCallback as n, useMemo as r } from "react";
|
|
|
4
4
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/StyleInspector/categories/Display/DisplayGridTemplate.tsx
|
|
6
6
|
var s = ["grid-auto-flow"], c = ["grid-template-columns", "grid-template-rows"], l = ["grid-auto-columns", "grid-auto-rows"], u = ({ templateAreas: u = "none", templateColumns: d = "none", templateRows: f = "none", templateAutoFlow: p = "row", templateAutoRows: m = "none", templateAutoColumns: h = "none", onChange: g }) => {
|
|
7
|
-
let _ = n((e) => g?.("grid-template-areas", e), [g]), v = n((e) => g?.("grid-template-rows", e), [g]), y = n((e) => g?.("grid-template-columns", e), [g]), b = n((e) => g?.("grid-auto-rows", e), [g]), x = n((e) => g?.("grid-auto-columns", e), [g]), S = n((e) => g?.("grid-auto-flow", e), [g])
|
|
7
|
+
let _ = n((e) => g?.("grid-template-areas", e), [g]), v = n((e) => g?.("grid-template-rows", e), [g]), y = n((e) => g?.("grid-template-columns", e), [g]), b = n((e) => g?.("grid-auto-rows", e), [g]), x = n((e) => g?.("grid-auto-columns", e), [g]), S = n((e) => g?.("grid-auto-flow", e), [g]), C = r(() => [{
|
|
8
|
+
value: "row",
|
|
9
|
+
icon: /* @__PURE__ */ a("div", {
|
|
10
|
+
className: "px-1 text-xs whitespace-nowrap select-none",
|
|
11
|
+
children: "Row"
|
|
12
|
+
}),
|
|
13
|
+
description: "",
|
|
14
|
+
active: p === "row",
|
|
15
|
+
size: "custom"
|
|
16
|
+
}, {
|
|
17
|
+
value: "column",
|
|
18
|
+
icon: /* @__PURE__ */ a("div", {
|
|
19
|
+
className: "px-1 text-xs select-none",
|
|
20
|
+
children: "Column"
|
|
21
|
+
}),
|
|
22
|
+
description: "",
|
|
23
|
+
active: p === "column",
|
|
24
|
+
size: "custom"
|
|
25
|
+
}], [p]);
|
|
8
26
|
return /* @__PURE__ */ o(i, { children: [
|
|
9
27
|
/* @__PURE__ */ a(t, {
|
|
10
28
|
label: "Direction",
|
|
11
29
|
keys: s,
|
|
12
30
|
children: /* @__PURE__ */ a(e, {
|
|
13
31
|
type: "iconGroup",
|
|
14
|
-
items:
|
|
15
|
-
value: "row",
|
|
16
|
-
icon: /* @__PURE__ */ a("div", {
|
|
17
|
-
className: "px-1 text-xs whitespace-nowrap select-none",
|
|
18
|
-
children: "Row"
|
|
19
|
-
}),
|
|
20
|
-
description: "",
|
|
21
|
-
active: p === "row",
|
|
22
|
-
size: "custom"
|
|
23
|
-
}, {
|
|
24
|
-
value: "column",
|
|
25
|
-
icon: /* @__PURE__ */ a("div", {
|
|
26
|
-
className: "px-1 text-xs select-none",
|
|
27
|
-
children: "Column"
|
|
28
|
-
}),
|
|
29
|
-
description: "",
|
|
30
|
-
active: p === "column",
|
|
31
|
-
size: "custom"
|
|
32
|
-
}], [p]),
|
|
32
|
+
items: C,
|
|
33
33
|
onChange: S
|
|
34
34
|
})
|
|
35
35
|
}),
|
|
@@ -10,51 +10,54 @@ import l from "@plitzi/plitzi-ui/icons/AlignSelfEndRow";
|
|
|
10
10
|
import u from "@plitzi/plitzi-ui/icons/AlignSelfStartRow";
|
|
11
11
|
import d from "@plitzi/plitzi-ui/icons/AlignSelfStretchRow";
|
|
12
12
|
//#region src/components/StyleInspector/categories/DisplayFlexChild/DisplayAlignSelf.tsx
|
|
13
|
-
var f = ["align-self"], p = ({ value: p, isFlexVertical: m = !1, onChange: h }) =>
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
13
|
+
var f = ["align-self"], p = ({ value: p, isFlexVertical: m = !1, onChange: h }) => {
|
|
14
|
+
let g = r((e) => h?.("align-self", e), [h]), _ = i(() => [
|
|
15
|
+
{
|
|
16
|
+
value: "auto",
|
|
17
|
+
icon: /* @__PURE__ */ a(o, {}),
|
|
18
|
+
description: "Align Auto",
|
|
19
|
+
active: p === "auto"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
value: "flex-start",
|
|
23
|
+
icon: /* @__PURE__ */ a(u, { className: n({ "-rotate-90": m }) }),
|
|
24
|
+
description: "Align Start",
|
|
25
|
+
active: p === "flex-start"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
value: "center",
|
|
29
|
+
icon: /* @__PURE__ */ a(c, { className: n({ "-rotate-90": m }) }),
|
|
30
|
+
description: "Align Center",
|
|
31
|
+
active: p === "center"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
value: "flex-end",
|
|
35
|
+
icon: /* @__PURE__ */ a(l, { className: n({ "-rotate-90": m }) }),
|
|
36
|
+
description: "Align End",
|
|
37
|
+
active: p === "flex-end"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
value: "stretch",
|
|
41
|
+
icon: /* @__PURE__ */ a(d, { className: n({ "-rotate-90": m }) }),
|
|
42
|
+
description: "Align Stretch",
|
|
43
|
+
active: p === "stretch"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
value: "baseline",
|
|
47
|
+
icon: /* @__PURE__ */ a(s, {}),
|
|
48
|
+
description: "Align Baseline",
|
|
49
|
+
active: p === "baseline"
|
|
50
|
+
}
|
|
51
|
+
], [m, p]);
|
|
52
|
+
return /* @__PURE__ */ a(t, {
|
|
53
|
+
label: "Align",
|
|
54
|
+
keys: f,
|
|
55
|
+
children: /* @__PURE__ */ a(e, {
|
|
56
|
+
onChange: g,
|
|
57
|
+
type: "iconGroup",
|
|
58
|
+
items: _
|
|
59
|
+
})
|
|
60
|
+
});
|
|
61
|
+
};
|
|
59
62
|
//#endregion
|
|
60
63
|
export { p as default };
|
|
@@ -35,7 +35,7 @@ var g = [
|
|
|
35
35
|
}, [x]), A = l((e) => {
|
|
36
36
|
x("flex-basis", e);
|
|
37
37
|
}, [x]), j = l((e) => b?.("displayFlexChild", e), [b]), M = u(() => {
|
|
38
|
-
let e =
|
|
38
|
+
let e = (S !== "0" || C !== "1" || w !== "auto") && (S !== "1" || C !== "1" || w !== "0%") && (S !== "0" || C !== "0" || w !== "auto");
|
|
39
39
|
return [
|
|
40
40
|
{
|
|
41
41
|
value: {
|