@plitzi/sdk-style 0.32.19 → 0.32.21
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/components/StyleInspector/Inspector.mjs +137 -131
- package/dist/components/StyleInspector/categories/Background/Background.mjs +151 -69
- package/dist/components/StyleInspector/categories/Effects/Effects.mjs +257 -84
- package/dist/components/StyleInspector/categories/Effects/Filters/Filter.d.ts +3 -1
- package/dist/components/StyleInspector/categories/Effects/Filters/Filter.mjs +17 -17
- package/dist/components/StyleInspector/categories/Others/Others.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Others/Others.mjs +103 -0
- package/dist/components/StyleInspector/categories/Others/OthersForm.d.ts +9 -0
- package/dist/components/StyleInspector/categories/Others/OthersForm.mjs +48 -0
- package/dist/components/StyleInspector/categories/Others/OthersInteraction.d.ts +13 -0
- package/dist/components/StyleInspector/categories/Others/OthersInteraction.mjs +162 -0
- package/dist/components/StyleInspector/categories/Others/OthersOutline.d.ts +10 -0
- package/dist/components/StyleInspector/categories/Others/OthersOutline.mjs +75 -0
- package/dist/components/StyleInspector/categories/Others/OthersSvg.d.ts +9 -0
- package/dist/components/StyleInspector/categories/Others/OthersSvg.mjs +31 -0
- package/dist/components/StyleInspector/categories/Others/OthersTable.d.ts +9 -0
- package/dist/components/StyleInspector/categories/Others/OthersTable.mjs +44 -0
- package/dist/components/StyleInspector/categories/Others/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Others/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Position/Position.mjs +70 -69
- package/dist/components/StyleInspector/categories/Size/Size.mjs +82 -52
- package/dist/components/StyleInspector/categories/Typography/Typography.mjs +139 -158
- package/dist/components/StyleInspector/categories/Typography/TypographyBreaking.d.ts +12 -0
- package/dist/components/StyleInspector/categories/Typography/TypographyBreaking.mjs +181 -0
- package/dist/components/StyleInspector/categories/Typography/TypographyClamp.d.ts +7 -0
- package/dist/components/StyleInspector/categories/Typography/TypographyClamp.mjs +35 -0
- package/dist/components/StyleInspector/categories/Typography/TypographyStyle.d.ts +3 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyStyle.mjs +47 -32
- package/dist/components/StyleInspector/categories/Typography/TypographyTransform.mjs +10 -11
- package/dist/components/StyleInspector/components/CategoryAdvanced/CategoryAdvanced.d.ts +6 -0
- package/dist/components/StyleInspector/components/CategoryAdvanced/CategoryAdvanced.mjs +6 -0
- package/dist/components/StyleInspector/components/CategoryAdvanced/CategoryAdvancedContext.d.ts +2 -0
- package/dist/components/StyleInspector/components/CategoryAdvanced/CategoryAdvancedContext.mjs +5 -0
- package/dist/components/StyleInspector/components/CategoryAdvanced/index.d.ts +4 -0
- package/dist/components/StyleInspector/components/CategoryAdvanced/index.mjs +6 -0
- package/dist/components/StyleInspector/components/CategoryContainer/CategoryContainer.d.ts +2 -1
- package/dist/components/StyleInspector/components/CategoryContainer/CategoryContainer.mjs +52 -25
- package/package.json +60 -4
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import e from "../../components/CategoryOption/index.mjs";
|
|
2
|
+
import t from "../../components/CategorySection/index.mjs";
|
|
3
|
+
import n from "../../components/CategoryAdvanced/index.mjs";
|
|
4
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/StyleInspector/categories/Typography/TypographyBreaking.tsx
|
|
6
|
+
var o = ({ whiteSpace: o, textWrap: s, wordBreak: c, overflowWrap: l, hyphens: u, verticalAlign: d, onChange: f }) => /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a(t, {
|
|
7
|
+
label: "",
|
|
8
|
+
children: [/* @__PURE__ */ a(e, {
|
|
9
|
+
keys: ["white-space"],
|
|
10
|
+
label: "Breaking",
|
|
11
|
+
value: o,
|
|
12
|
+
onChange: f?.("white-space"),
|
|
13
|
+
type: "select",
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ i("option", {
|
|
16
|
+
value: "normal",
|
|
17
|
+
children: "Normal"
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ i("option", {
|
|
20
|
+
value: "nowrap",
|
|
21
|
+
children: "No Wrap"
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ i("option", {
|
|
24
|
+
value: "pre",
|
|
25
|
+
children: "Pre"
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ i("option", {
|
|
28
|
+
value: "pre-wrap",
|
|
29
|
+
children: "Pre Wrap"
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ i("option", {
|
|
32
|
+
value: "pre-line",
|
|
33
|
+
children: "Pre Line"
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ i("option", {
|
|
36
|
+
value: "break-spaces",
|
|
37
|
+
children: "Break Spaces"
|
|
38
|
+
})
|
|
39
|
+
]
|
|
40
|
+
}), /* @__PURE__ */ a(e, {
|
|
41
|
+
keys: ["text-wrap"],
|
|
42
|
+
label: "Wrap",
|
|
43
|
+
value: s,
|
|
44
|
+
onChange: f?.("text-wrap"),
|
|
45
|
+
type: "select",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ i("option", {
|
|
48
|
+
value: "wrap",
|
|
49
|
+
children: "Wrap"
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ i("option", {
|
|
52
|
+
value: "nowrap",
|
|
53
|
+
children: "No Wrap"
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ i("option", {
|
|
56
|
+
value: "balance",
|
|
57
|
+
children: "Balance"
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ i("option", {
|
|
60
|
+
value: "pretty",
|
|
61
|
+
children: "Pretty"
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ i("option", {
|
|
64
|
+
value: "stable",
|
|
65
|
+
children: "Stable"
|
|
66
|
+
})
|
|
67
|
+
]
|
|
68
|
+
})]
|
|
69
|
+
}), /* @__PURE__ */ a(n, { children: [/* @__PURE__ */ a(t, {
|
|
70
|
+
label: "",
|
|
71
|
+
children: [/* @__PURE__ */ a(e, {
|
|
72
|
+
keys: ["word-break"],
|
|
73
|
+
label: "Word Break",
|
|
74
|
+
value: c,
|
|
75
|
+
onChange: f?.("word-break"),
|
|
76
|
+
type: "select",
|
|
77
|
+
children: [
|
|
78
|
+
/* @__PURE__ */ i("option", {
|
|
79
|
+
value: "normal",
|
|
80
|
+
children: "Normal"
|
|
81
|
+
}),
|
|
82
|
+
/* @__PURE__ */ i("option", {
|
|
83
|
+
value: "break-all",
|
|
84
|
+
children: "Break All"
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ i("option", {
|
|
87
|
+
value: "keep-all",
|
|
88
|
+
children: "Keep All"
|
|
89
|
+
}),
|
|
90
|
+
/* @__PURE__ */ i("option", {
|
|
91
|
+
value: "break-word",
|
|
92
|
+
children: "Break Word"
|
|
93
|
+
})
|
|
94
|
+
]
|
|
95
|
+
}), /* @__PURE__ */ a(e, {
|
|
96
|
+
keys: ["overflow-wrap"],
|
|
97
|
+
label: "Overflow Wrap",
|
|
98
|
+
value: l,
|
|
99
|
+
onChange: f?.("overflow-wrap"),
|
|
100
|
+
type: "select",
|
|
101
|
+
children: [
|
|
102
|
+
/* @__PURE__ */ i("option", {
|
|
103
|
+
value: "normal",
|
|
104
|
+
children: "Normal"
|
|
105
|
+
}),
|
|
106
|
+
/* @__PURE__ */ i("option", {
|
|
107
|
+
value: "break-word",
|
|
108
|
+
children: "Break Word"
|
|
109
|
+
}),
|
|
110
|
+
/* @__PURE__ */ i("option", {
|
|
111
|
+
value: "anywhere",
|
|
112
|
+
children: "Anywhere"
|
|
113
|
+
})
|
|
114
|
+
]
|
|
115
|
+
})]
|
|
116
|
+
}), /* @__PURE__ */ a(t, {
|
|
117
|
+
label: "",
|
|
118
|
+
children: [/* @__PURE__ */ a(e, {
|
|
119
|
+
keys: ["hyphens"],
|
|
120
|
+
label: "Hyphens",
|
|
121
|
+
value: u,
|
|
122
|
+
onChange: f?.("hyphens"),
|
|
123
|
+
type: "select",
|
|
124
|
+
children: [
|
|
125
|
+
/* @__PURE__ */ i("option", {
|
|
126
|
+
value: "none",
|
|
127
|
+
children: "None"
|
|
128
|
+
}),
|
|
129
|
+
/* @__PURE__ */ i("option", {
|
|
130
|
+
value: "manual",
|
|
131
|
+
children: "Manual"
|
|
132
|
+
}),
|
|
133
|
+
/* @__PURE__ */ i("option", {
|
|
134
|
+
value: "auto",
|
|
135
|
+
children: "Auto"
|
|
136
|
+
})
|
|
137
|
+
]
|
|
138
|
+
}), /* @__PURE__ */ a(e, {
|
|
139
|
+
keys: ["vertical-align"],
|
|
140
|
+
label: "Vertical Align",
|
|
141
|
+
value: d,
|
|
142
|
+
onChange: f?.("vertical-align"),
|
|
143
|
+
type: "select",
|
|
144
|
+
children: [
|
|
145
|
+
/* @__PURE__ */ i("option", {
|
|
146
|
+
value: "baseline",
|
|
147
|
+
children: "Baseline"
|
|
148
|
+
}),
|
|
149
|
+
/* @__PURE__ */ i("option", {
|
|
150
|
+
value: "top",
|
|
151
|
+
children: "Top"
|
|
152
|
+
}),
|
|
153
|
+
/* @__PURE__ */ i("option", {
|
|
154
|
+
value: "middle",
|
|
155
|
+
children: "Middle"
|
|
156
|
+
}),
|
|
157
|
+
/* @__PURE__ */ i("option", {
|
|
158
|
+
value: "bottom",
|
|
159
|
+
children: "Bottom"
|
|
160
|
+
}),
|
|
161
|
+
/* @__PURE__ */ i("option", {
|
|
162
|
+
value: "text-top",
|
|
163
|
+
children: "Text Top"
|
|
164
|
+
}),
|
|
165
|
+
/* @__PURE__ */ i("option", {
|
|
166
|
+
value: "text-bottom",
|
|
167
|
+
children: "Text Bottom"
|
|
168
|
+
}),
|
|
169
|
+
/* @__PURE__ */ i("option", {
|
|
170
|
+
value: "sub",
|
|
171
|
+
children: "Sub"
|
|
172
|
+
}),
|
|
173
|
+
/* @__PURE__ */ i("option", {
|
|
174
|
+
value: "super",
|
|
175
|
+
children: "Super"
|
|
176
|
+
})
|
|
177
|
+
]
|
|
178
|
+
})]
|
|
179
|
+
})] })] });
|
|
180
|
+
//#endregion
|
|
181
|
+
export { o as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StyleObject, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type TypographyClampProps = {
|
|
3
|
+
value?: StyleValue;
|
|
4
|
+
onChange?: (values: StyleObject) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const TypographyClamp: ({ value, onChange }: TypographyClampProps) => import("react").JSX.Element;
|
|
7
|
+
export default TypographyClamp;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import e from "../../components/CategoryOption/index.mjs";
|
|
2
|
+
import { useCallback as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/StyleInspector/categories/Typography/TypographyClamp.tsx
|
|
5
|
+
var r = [
|
|
6
|
+
"line-clamp",
|
|
7
|
+
"-webkit-line-clamp",
|
|
8
|
+
"-webkit-box-orient"
|
|
9
|
+
], i = ({ value: i, onChange: a }) => {
|
|
10
|
+
let o = t((e) => {
|
|
11
|
+
let t = typeof e == "string" || typeof e == "number" ? String(e).trim() : "";
|
|
12
|
+
if (!t) {
|
|
13
|
+
a?.({
|
|
14
|
+
"line-clamp": void 0,
|
|
15
|
+
"-webkit-line-clamp": void 0,
|
|
16
|
+
"-webkit-box-orient": void 0
|
|
17
|
+
});
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
a?.({
|
|
21
|
+
display: "-webkit-box",
|
|
22
|
+
"line-clamp": t,
|
|
23
|
+
"-webkit-line-clamp": t,
|
|
24
|
+
"-webkit-box-orient": "vertical"
|
|
25
|
+
});
|
|
26
|
+
}, [a]);
|
|
27
|
+
return /* @__PURE__ */ n(e, {
|
|
28
|
+
keys: r,
|
|
29
|
+
label: "Line Clamp",
|
|
30
|
+
value: i,
|
|
31
|
+
onChange: o
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { i as default };
|
|
@@ -2,7 +2,9 @@ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
|
2
2
|
export type TypographyStyleProps = {
|
|
3
3
|
fontStyle?: StyleValue;
|
|
4
4
|
textDecoration?: StyleValue;
|
|
5
|
+
textDecorationThickness?: StyleValue;
|
|
6
|
+
textUnderlineOffset?: StyleValue;
|
|
5
7
|
onChange?: (category: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
6
8
|
};
|
|
7
|
-
declare const TypographyStyle: ({ fontStyle, textDecoration, onChange }: TypographyStyleProps) => import("react").JSX.Element;
|
|
9
|
+
declare const TypographyStyle: ({ fontStyle, textDecoration, textDecorationThickness, textUnderlineOffset, onChange }: TypographyStyleProps) => import("react").JSX.Element;
|
|
8
10
|
export default TypographyStyle;
|
|
@@ -1,64 +1,79 @@
|
|
|
1
1
|
import e from "../../components/CategoryOption/index.mjs";
|
|
2
2
|
import t from "../../components/CategorySection/index.mjs";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import o from "
|
|
6
|
-
import s from "@plitzi/plitzi-ui/icons/
|
|
3
|
+
import n from "../../components/CategoryAdvanced/index.mjs";
|
|
4
|
+
import { useMemo as r } from "react";
|
|
5
|
+
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import s from "@plitzi/plitzi-ui/icons/XMark";
|
|
7
|
+
import c from "@plitzi/plitzi-ui/icons/TextDecorationOverline";
|
|
7
8
|
//#region src/components/StyleInspector/categories/Typography/TypographyStyle.tsx
|
|
8
|
-
var
|
|
9
|
-
let
|
|
9
|
+
var l = ({ fontStyle: l, textDecoration: u, textDecorationThickness: d, textUnderlineOffset: f, onChange: p }) => {
|
|
10
|
+
let m = r(() => [{
|
|
10
11
|
value: "normal",
|
|
11
12
|
icon: "fa-solid fa-font",
|
|
12
13
|
description: "Normal",
|
|
13
|
-
active:
|
|
14
|
+
active: l === "normal"
|
|
14
15
|
}, {
|
|
15
16
|
value: "italic",
|
|
16
17
|
icon: "fa-solid fa-italic",
|
|
17
18
|
description: "Italic",
|
|
18
|
-
active:
|
|
19
|
-
}], [
|
|
19
|
+
active: l === "italic"
|
|
20
|
+
}], [l]), h = r(() => [
|
|
20
21
|
{
|
|
21
22
|
value: "none",
|
|
22
|
-
icon: /* @__PURE__ */
|
|
23
|
+
icon: /* @__PURE__ */ a(s, {}),
|
|
23
24
|
description: "None",
|
|
24
|
-
active:
|
|
25
|
+
active: u === "none"
|
|
25
26
|
},
|
|
26
27
|
{
|
|
27
28
|
value: "line-through",
|
|
28
29
|
icon: "fa-solid fa-strikethrough",
|
|
29
30
|
description: "Strikethrough",
|
|
30
|
-
active:
|
|
31
|
+
active: u === "line-through"
|
|
31
32
|
},
|
|
32
33
|
{
|
|
33
34
|
value: "underline",
|
|
34
35
|
icon: "fa-solid fa-underline",
|
|
35
36
|
description: "Underline",
|
|
36
|
-
active:
|
|
37
|
+
active: u === "underline"
|
|
37
38
|
},
|
|
38
39
|
{
|
|
39
40
|
value: "overline",
|
|
40
|
-
icon: /* @__PURE__ */
|
|
41
|
+
icon: /* @__PURE__ */ a(c, {}),
|
|
41
42
|
description: "Overline",
|
|
42
|
-
active:
|
|
43
|
+
active: u === "overline"
|
|
43
44
|
}
|
|
44
|
-
], [
|
|
45
|
-
return /* @__PURE__ */
|
|
46
|
-
label: "
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
], [u]);
|
|
46
|
+
return /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ o(t, {
|
|
47
|
+
label: "",
|
|
48
|
+
children: [/* @__PURE__ */ a(e, {
|
|
49
|
+
keys: ["font-style"],
|
|
50
|
+
label: "Italicize",
|
|
51
|
+
onChange: p?.("font-style"),
|
|
50
52
|
type: "iconGroup",
|
|
51
|
-
items:
|
|
52
|
-
})
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
children: /* @__PURE__ */ i(e, {
|
|
57
|
-
onChange: u?.("text-decoration"),
|
|
53
|
+
items: m
|
|
54
|
+
}), /* @__PURE__ */ a(e, {
|
|
55
|
+
keys: ["text-decoration"],
|
|
56
|
+
label: "Decoration",
|
|
57
|
+
onChange: p?.("text-decoration"),
|
|
58
58
|
type: "iconGroup",
|
|
59
|
-
items:
|
|
60
|
-
})
|
|
61
|
-
})
|
|
59
|
+
items: h
|
|
60
|
+
})]
|
|
61
|
+
}), /* @__PURE__ */ a(n, { children: /* @__PURE__ */ o(t, {
|
|
62
|
+
label: "",
|
|
63
|
+
children: [/* @__PURE__ */ a(e, {
|
|
64
|
+
keys: ["text-decoration-thickness"],
|
|
65
|
+
label: "Thickness",
|
|
66
|
+
value: d,
|
|
67
|
+
onChange: p?.("text-decoration-thickness"),
|
|
68
|
+
type: "metric"
|
|
69
|
+
}), /* @__PURE__ */ a(e, {
|
|
70
|
+
keys: ["text-underline-offset"],
|
|
71
|
+
label: "Offset",
|
|
72
|
+
value: f,
|
|
73
|
+
onChange: p?.("text-underline-offset"),
|
|
74
|
+
type: "metric"
|
|
75
|
+
})]
|
|
76
|
+
}) })] });
|
|
62
77
|
};
|
|
63
78
|
//#endregion
|
|
64
|
-
export {
|
|
79
|
+
export { l as default };
|
|
@@ -46,23 +46,22 @@ var l = ({ textTransform: l, direction: u, onChange: d }) => {
|
|
|
46
46
|
description: "Right To Left",
|
|
47
47
|
active: u === "rtl"
|
|
48
48
|
}], [u]);
|
|
49
|
-
return /* @__PURE__ */
|
|
50
|
-
label: "
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
return /* @__PURE__ */ i(r, { children: /* @__PURE__ */ a(t, {
|
|
50
|
+
label: "",
|
|
51
|
+
children: [/* @__PURE__ */ i(e, {
|
|
52
|
+
keys: ["text-transform"],
|
|
53
|
+
label: "Capitalize",
|
|
53
54
|
onChange: d?.("text-transform"),
|
|
54
55
|
type: "iconGroup",
|
|
55
56
|
items: f
|
|
56
|
-
})
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
keys: ["direction"],
|
|
60
|
-
children: /* @__PURE__ */ i(e, {
|
|
57
|
+
}), /* @__PURE__ */ i(e, {
|
|
58
|
+
keys: ["direction"],
|
|
59
|
+
label: "Direction",
|
|
61
60
|
onChange: d?.("direction"),
|
|
62
61
|
type: "iconGroup",
|
|
63
62
|
items: p
|
|
64
|
-
})
|
|
65
|
-
})
|
|
63
|
+
})]
|
|
64
|
+
}) });
|
|
66
65
|
};
|
|
67
66
|
//#endregion
|
|
68
67
|
export { l as default };
|
|
@@ -6,8 +6,9 @@ export type CategoryContainerProps = {
|
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
title?: string;
|
|
8
8
|
dotKeys?: StyleCategory[];
|
|
9
|
+
advancedKeys?: StyleCategory[];
|
|
9
10
|
isCollapsed?: boolean;
|
|
10
11
|
onCollapse: (collapsed: boolean) => void;
|
|
11
12
|
};
|
|
12
|
-
declare const CategoryContainer: ({ className, classNameContent, children, title, dotKeys, isCollapsed, onCollapse }: CategoryContainerProps) => import("react").JSX.Element;
|
|
13
|
+
declare const CategoryContainer: ({ className, classNameContent, children, title, dotKeys, advancedKeys, isCollapsed, onCollapse }: CategoryContainerProps) => import("react").JSX.Element;
|
|
13
14
|
export default CategoryContainer;
|
|
@@ -1,27 +1,54 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import e from "../../hooks/useInspectorValues.mjs";
|
|
2
|
+
import t from "../CategoryAdvanced/CategoryAdvancedContext.mjs";
|
|
3
|
+
import n from "../InspectorDots/index.mjs";
|
|
4
|
+
import r from "clsx";
|
|
5
|
+
import { useCallback as i } from "react";
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
+
import s from "@plitzi/plitzi-ui/Icon";
|
|
8
|
+
import c from "@plitzi/plitzi-ui/hooks/useStorage";
|
|
9
|
+
import l from "@plitzi/plitzi-ui/ContainerCollapsable";
|
|
6
10
|
//#region src/components/StyleInspector/components/CategoryContainer/CategoryContainer.tsx
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})
|
|
11
|
+
var u = ({ className: u, classNameContent: d, children: f, title: p = "Title", dotKeys: m, advancedKeys: h, isCollapsed: g = !0, onCollapse: _ }) => {
|
|
12
|
+
let [v, y] = c(`builder-state.styleInspector.advanced.${p}`, !1), { hasValues: b } = e({
|
|
13
|
+
keys: h,
|
|
14
|
+
asValue: !1
|
|
15
|
+
}), x = i((e) => {
|
|
16
|
+
e.stopPropagation(), y((e) => !e);
|
|
17
|
+
}, [y]);
|
|
18
|
+
return /* @__PURE__ */ o(l, {
|
|
19
|
+
className: u,
|
|
20
|
+
collapsed: g,
|
|
21
|
+
onChange: _,
|
|
22
|
+
children: [/* @__PURE__ */ a(l.Header, {
|
|
23
|
+
className: r("h-8", {
|
|
24
|
+
"border-b border-gray-200 hover:bg-slate-100 dark:border-zinc-700 dark:hover:bg-zinc-700/50": g,
|
|
25
|
+
"bg-slate-100 dark:bg-zinc-700/50": !g
|
|
26
|
+
}),
|
|
27
|
+
title: p,
|
|
28
|
+
placement: "right",
|
|
29
|
+
iconCollapsed: /* @__PURE__ */ a(s, { icon: "fa-solid fa-angle-down" }),
|
|
30
|
+
iconExpanded: /* @__PURE__ */ a(s, { icon: "fa-solid fa-angle-up" }),
|
|
31
|
+
children: /* @__PURE__ */ o("div", {
|
|
32
|
+
className: "flex items-center gap-2",
|
|
33
|
+
children: [/* @__PURE__ */ a(n, { styleKeys: m }), !!h?.length && !g && /* @__PURE__ */ a(s, {
|
|
34
|
+
className: r("cursor-pointer text-xs", {
|
|
35
|
+
"text-blue-500": v,
|
|
36
|
+
"text-orange-500": !v && b,
|
|
37
|
+
"text-gray-400 hover:text-gray-600 dark:text-zinc-500 dark:hover:text-zinc-300": !v && !b
|
|
38
|
+
}),
|
|
39
|
+
icon: "fa-solid fa-sliders",
|
|
40
|
+
title: v ? "Hide advanced properties" : "Show advanced properties",
|
|
41
|
+
onClick: x
|
|
42
|
+
})]
|
|
43
|
+
})
|
|
44
|
+
}), /* @__PURE__ */ a(l.Content, {
|
|
45
|
+
className: r("flex flex-col gap-3 p-2", { "border-b border-gray-200 dark:border-zinc-700": !g }, d),
|
|
46
|
+
children: /* @__PURE__ */ a(t, {
|
|
47
|
+
value: v,
|
|
48
|
+
children: f
|
|
49
|
+
})
|
|
50
|
+
})]
|
|
51
|
+
});
|
|
52
|
+
};
|
|
26
53
|
//#endregion
|
|
27
|
-
export {
|
|
54
|
+
export { u as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-style",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.21",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -502,6 +502,38 @@
|
|
|
502
502
|
"types": "./dist/components/StyleInspector/categories/ListItem/index.d.ts",
|
|
503
503
|
"import": "./dist/components/StyleInspector/categories/ListItem/index.mjs"
|
|
504
504
|
},
|
|
505
|
+
"./components/StyleInspector/categories/Others": {
|
|
506
|
+
"types": "./dist/components/StyleInspector/categories/Others/index.d.ts",
|
|
507
|
+
"import": "./dist/components/StyleInspector/categories/Others/index.mjs"
|
|
508
|
+
},
|
|
509
|
+
"./components/StyleInspector/categories/Others/Others": {
|
|
510
|
+
"types": "./dist/components/StyleInspector/categories/Others/Others.d.ts",
|
|
511
|
+
"import": "./dist/components/StyleInspector/categories/Others/Others.mjs"
|
|
512
|
+
},
|
|
513
|
+
"./components/StyleInspector/categories/Others/OthersForm": {
|
|
514
|
+
"types": "./dist/components/StyleInspector/categories/Others/OthersForm.d.ts",
|
|
515
|
+
"import": "./dist/components/StyleInspector/categories/Others/OthersForm.mjs"
|
|
516
|
+
},
|
|
517
|
+
"./components/StyleInspector/categories/Others/OthersInteraction": {
|
|
518
|
+
"types": "./dist/components/StyleInspector/categories/Others/OthersInteraction.d.ts",
|
|
519
|
+
"import": "./dist/components/StyleInspector/categories/Others/OthersInteraction.mjs"
|
|
520
|
+
},
|
|
521
|
+
"./components/StyleInspector/categories/Others/OthersOutline": {
|
|
522
|
+
"types": "./dist/components/StyleInspector/categories/Others/OthersOutline.d.ts",
|
|
523
|
+
"import": "./dist/components/StyleInspector/categories/Others/OthersOutline.mjs"
|
|
524
|
+
},
|
|
525
|
+
"./components/StyleInspector/categories/Others/OthersSvg": {
|
|
526
|
+
"types": "./dist/components/StyleInspector/categories/Others/OthersSvg.d.ts",
|
|
527
|
+
"import": "./dist/components/StyleInspector/categories/Others/OthersSvg.mjs"
|
|
528
|
+
},
|
|
529
|
+
"./components/StyleInspector/categories/Others/OthersTable": {
|
|
530
|
+
"types": "./dist/components/StyleInspector/categories/Others/OthersTable.d.ts",
|
|
531
|
+
"import": "./dist/components/StyleInspector/categories/Others/OthersTable.mjs"
|
|
532
|
+
},
|
|
533
|
+
"./components/StyleInspector/categories/Others/index": {
|
|
534
|
+
"types": "./dist/components/StyleInspector/categories/Others/index.d.ts",
|
|
535
|
+
"import": "./dist/components/StyleInspector/categories/Others/index.mjs"
|
|
536
|
+
},
|
|
505
537
|
"./components/StyleInspector/categories/Position": {
|
|
506
538
|
"types": "./dist/components/StyleInspector/categories/Position/index.d.ts",
|
|
507
539
|
"import": "./dist/components/StyleInspector/categories/Position/index.mjs"
|
|
@@ -606,6 +638,14 @@
|
|
|
606
638
|
"types": "./dist/components/StyleInspector/categories/Typography/TypographyAlign.d.ts",
|
|
607
639
|
"import": "./dist/components/StyleInspector/categories/Typography/TypographyAlign.mjs"
|
|
608
640
|
},
|
|
641
|
+
"./components/StyleInspector/categories/Typography/TypographyBreaking": {
|
|
642
|
+
"types": "./dist/components/StyleInspector/categories/Typography/TypographyBreaking.d.ts",
|
|
643
|
+
"import": "./dist/components/StyleInspector/categories/Typography/TypographyBreaking.mjs"
|
|
644
|
+
},
|
|
645
|
+
"./components/StyleInspector/categories/Typography/TypographyClamp": {
|
|
646
|
+
"types": "./dist/components/StyleInspector/categories/Typography/TypographyClamp.d.ts",
|
|
647
|
+
"import": "./dist/components/StyleInspector/categories/Typography/TypographyClamp.mjs"
|
|
648
|
+
},
|
|
609
649
|
"./components/StyleInspector/categories/Typography/TypographyConstants": {
|
|
610
650
|
"types": "./dist/components/StyleInspector/categories/Typography/TypographyConstants.d.ts",
|
|
611
651
|
"import": "./dist/components/StyleInspector/categories/Typography/TypographyConstants.mjs"
|
|
@@ -646,6 +686,22 @@
|
|
|
646
686
|
"types": "./dist/components/StyleInspector/categories/Variables/index.d.ts",
|
|
647
687
|
"import": "./dist/components/StyleInspector/categories/Variables/index.mjs"
|
|
648
688
|
},
|
|
689
|
+
"./components/StyleInspector/components/CategoryAdvanced": {
|
|
690
|
+
"types": "./dist/components/StyleInspector/components/CategoryAdvanced/index.d.ts",
|
|
691
|
+
"import": "./dist/components/StyleInspector/components/CategoryAdvanced/index.mjs"
|
|
692
|
+
},
|
|
693
|
+
"./components/StyleInspector/components/CategoryAdvanced/CategoryAdvanced": {
|
|
694
|
+
"types": "./dist/components/StyleInspector/components/CategoryAdvanced/CategoryAdvanced.d.ts",
|
|
695
|
+
"import": "./dist/components/StyleInspector/components/CategoryAdvanced/CategoryAdvanced.mjs"
|
|
696
|
+
},
|
|
697
|
+
"./components/StyleInspector/components/CategoryAdvanced/CategoryAdvancedContext": {
|
|
698
|
+
"types": "./dist/components/StyleInspector/components/CategoryAdvanced/CategoryAdvancedContext.d.ts",
|
|
699
|
+
"import": "./dist/components/StyleInspector/components/CategoryAdvanced/CategoryAdvancedContext.mjs"
|
|
700
|
+
},
|
|
701
|
+
"./components/StyleInspector/components/CategoryAdvanced/index": {
|
|
702
|
+
"types": "./dist/components/StyleInspector/components/CategoryAdvanced/index.d.ts",
|
|
703
|
+
"import": "./dist/components/StyleInspector/components/CategoryAdvanced/index.mjs"
|
|
704
|
+
},
|
|
649
705
|
"./components/StyleInspector/components/CategoryContainer": {
|
|
650
706
|
"types": "./dist/components/StyleInspector/components/CategoryContainer/index.d.ts",
|
|
651
707
|
"import": "./dist/components/StyleInspector/components/CategoryContainer/index.mjs"
|
|
@@ -836,9 +892,9 @@
|
|
|
836
892
|
},
|
|
837
893
|
"dependencies": {
|
|
838
894
|
"@plitzi/plitzi-ui": "^1.6.18",
|
|
839
|
-
"@plitzi/sdk-plugins": "0.32.
|
|
840
|
-
"@plitzi/sdk-shared": "0.32.
|
|
841
|
-
"@plitzi/sdk-variables": "0.32.
|
|
895
|
+
"@plitzi/sdk-plugins": "0.32.21",
|
|
896
|
+
"@plitzi/sdk-shared": "0.32.21",
|
|
897
|
+
"@plitzi/sdk-variables": "0.32.21",
|
|
842
898
|
"clsx": "^2.1.1",
|
|
843
899
|
"immer": "^11.1.15",
|
|
844
900
|
"prop-types": "^15.8.1",
|