@plitzi/sdk-style 0.32.20 → 0.32.22
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
|
@@ -2,100 +2,130 @@ import e from "../../StyleInspectorContext.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";
|
|
5
|
-
import i from "../../components/
|
|
6
|
-
import a from "
|
|
7
|
-
import o from "./
|
|
8
|
-
import s from "./
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
5
|
+
import i from "../../components/CategoryAdvanced/index.mjs";
|
|
6
|
+
import a from "../../components/CategoryContainer/index.mjs";
|
|
7
|
+
import o from "./SizeFit.mjs";
|
|
8
|
+
import s from "./SizeOverflow.mjs";
|
|
9
|
+
import c from "./SizePosition.mjs";
|
|
10
|
+
import { memo as l, use as u, useCallback as d } from "react";
|
|
11
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
11
12
|
//#region src/components/StyleInspector/categories/Size/Size.tsx
|
|
12
|
-
var
|
|
13
|
+
var m = [
|
|
13
14
|
"width",
|
|
14
15
|
"height",
|
|
15
16
|
"min-width",
|
|
16
17
|
"min-height",
|
|
17
18
|
"max-width",
|
|
18
19
|
"max-height",
|
|
20
|
+
"aspect-ratio",
|
|
21
|
+
"box-sizing",
|
|
19
22
|
"overflow",
|
|
20
23
|
"object-fit",
|
|
21
24
|
"object-position"
|
|
22
|
-
],
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
], h = [
|
|
26
|
+
"aspect-ratio",
|
|
27
|
+
"box-sizing",
|
|
28
|
+
"object-position",
|
|
29
|
+
"object-fit"
|
|
30
|
+
], g = ["width", "height"], _ = ["min-width", "min-height"], v = ["max-width", "max-height"], y = l(({ replaceTokens: l = !1, isCollapsed: y = !0, onCollapse: b }) => {
|
|
31
|
+
let { setValue: x } = u(e), { width: S, height: C, "min-width": w, "min-height": T, "max-width": E, "max-height": D, "aspect-ratio": O, "box-sizing": k, overflow: A, "object-position": j, "object-fit": M } = t({
|
|
32
|
+
keys: m,
|
|
25
33
|
asValue: !0,
|
|
26
|
-
replaceTokens:
|
|
27
|
-
}),
|
|
28
|
-
return /* @__PURE__ */
|
|
34
|
+
replaceTokens: l
|
|
35
|
+
}), N = d((e) => b?.("size", e), [b]), P = d((e) => (t) => x(e, t), [x]);
|
|
36
|
+
return /* @__PURE__ */ p(a, {
|
|
29
37
|
title: "Size",
|
|
30
|
-
dotKeys:
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
dotKeys: m,
|
|
39
|
+
advancedKeys: h,
|
|
40
|
+
isCollapsed: y,
|
|
41
|
+
onCollapse: N,
|
|
33
42
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ p(r, {
|
|
35
44
|
label: "Size",
|
|
36
|
-
keys:
|
|
37
|
-
children: [/* @__PURE__ */
|
|
45
|
+
keys: g,
|
|
46
|
+
children: [/* @__PURE__ */ f(n, {
|
|
38
47
|
keys: ["width"],
|
|
39
48
|
preffix: "W",
|
|
40
|
-
value:
|
|
41
|
-
onChange:
|
|
49
|
+
value: S,
|
|
50
|
+
onChange: P("width"),
|
|
42
51
|
type: "metric"
|
|
43
|
-
}), /* @__PURE__ */
|
|
52
|
+
}), /* @__PURE__ */ f(n, {
|
|
44
53
|
keys: ["height"],
|
|
45
54
|
preffix: "H",
|
|
46
|
-
value:
|
|
47
|
-
onChange:
|
|
55
|
+
value: C,
|
|
56
|
+
onChange: P("height"),
|
|
48
57
|
type: "metric"
|
|
49
58
|
})]
|
|
50
59
|
}),
|
|
51
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ p(r, {
|
|
52
61
|
label: "Min Size",
|
|
53
|
-
keys:
|
|
54
|
-
children: [/* @__PURE__ */
|
|
62
|
+
keys: _,
|
|
63
|
+
children: [/* @__PURE__ */ f(n, {
|
|
55
64
|
keys: ["min-width"],
|
|
56
65
|
preffix: "W",
|
|
57
|
-
value:
|
|
58
|
-
onChange:
|
|
66
|
+
value: w,
|
|
67
|
+
onChange: P("min-width"),
|
|
59
68
|
type: "metric"
|
|
60
|
-
}), /* @__PURE__ */
|
|
69
|
+
}), /* @__PURE__ */ f(n, {
|
|
61
70
|
keys: ["min-height"],
|
|
62
71
|
preffix: "H",
|
|
63
|
-
value:
|
|
64
|
-
onChange:
|
|
72
|
+
value: T,
|
|
73
|
+
onChange: P("min-height"),
|
|
65
74
|
type: "metric"
|
|
66
75
|
})]
|
|
67
76
|
}),
|
|
68
|
-
/* @__PURE__ */
|
|
77
|
+
/* @__PURE__ */ p(r, {
|
|
69
78
|
label: "Max Size",
|
|
70
|
-
keys:
|
|
71
|
-
children: [/* @__PURE__ */
|
|
79
|
+
keys: v,
|
|
80
|
+
children: [/* @__PURE__ */ f(n, {
|
|
72
81
|
keys: ["max-width"],
|
|
73
82
|
preffix: "W",
|
|
74
|
-
value:
|
|
75
|
-
onChange:
|
|
83
|
+
value: E,
|
|
84
|
+
onChange: P("max-width"),
|
|
76
85
|
type: "metric"
|
|
77
|
-
}), /* @__PURE__ */
|
|
86
|
+
}), /* @__PURE__ */ f(n, {
|
|
78
87
|
keys: ["max-height"],
|
|
79
88
|
preffix: "H",
|
|
80
|
-
value:
|
|
81
|
-
onChange:
|
|
89
|
+
value: D,
|
|
90
|
+
onChange: P("max-height"),
|
|
82
91
|
type: "metric"
|
|
83
92
|
})]
|
|
84
93
|
}),
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
94
|
+
/* @__PURE__ */ f(i, { children: /* @__PURE__ */ p(r, {
|
|
95
|
+
label: "",
|
|
96
|
+
children: [/* @__PURE__ */ f(n, {
|
|
97
|
+
keys: ["aspect-ratio"],
|
|
98
|
+
label: "Ratio",
|
|
99
|
+
value: O,
|
|
100
|
+
onChange: P("aspect-ratio")
|
|
101
|
+
}), /* @__PURE__ */ p(n, {
|
|
102
|
+
keys: ["box-sizing"],
|
|
103
|
+
label: "Box Sizing",
|
|
104
|
+
value: k,
|
|
105
|
+
onChange: P("box-sizing"),
|
|
106
|
+
type: "select",
|
|
107
|
+
children: [/* @__PURE__ */ f("option", {
|
|
108
|
+
value: "border-box",
|
|
109
|
+
children: "Border Box"
|
|
110
|
+
}), /* @__PURE__ */ f("option", {
|
|
111
|
+
value: "content-box",
|
|
112
|
+
children: "Content Box"
|
|
113
|
+
})]
|
|
114
|
+
})]
|
|
115
|
+
}) }),
|
|
116
|
+
/* @__PURE__ */ f(s, {
|
|
117
|
+
value: A,
|
|
118
|
+
onChange: P
|
|
92
119
|
}),
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
value:
|
|
95
|
-
onChange:
|
|
96
|
-
})
|
|
120
|
+
/* @__PURE__ */ p(i, { children: [/* @__PURE__ */ f(c, {
|
|
121
|
+
value: j,
|
|
122
|
+
onChange: P
|
|
123
|
+
}), /* @__PURE__ */ f(o, {
|
|
124
|
+
value: M,
|
|
125
|
+
onChange: P
|
|
126
|
+
})] })
|
|
97
127
|
]
|
|
98
128
|
});
|
|
99
129
|
});
|
|
100
130
|
//#endregion
|
|
101
|
-
export {
|
|
131
|
+
export { y as default };
|
|
@@ -2,17 +2,20 @@ import e from "../../StyleInspectorContext.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";
|
|
5
|
-
import i from "../../components/
|
|
6
|
-
import a from "
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import u from "./
|
|
11
|
-
import d from "./
|
|
12
|
-
import
|
|
13
|
-
import
|
|
5
|
+
import i from "../../components/CategoryAdvanced/index.mjs";
|
|
6
|
+
import a from "../../components/CategoryContainer/index.mjs";
|
|
7
|
+
import o from "./TypographyAlign.mjs";
|
|
8
|
+
import s from "./TypographyBreaking.mjs";
|
|
9
|
+
import c from "./TypographyClamp.mjs";
|
|
10
|
+
import { defaultFonts as l, weights as u } from "./TypographyConstants.mjs";
|
|
11
|
+
import d from "./TypographyFont.mjs";
|
|
12
|
+
import f from "./TypographyStyle.mjs";
|
|
13
|
+
import p from "./TypographyTextShadow.mjs";
|
|
14
|
+
import m from "./TypographyTransform.mjs";
|
|
15
|
+
import { memo as h, use as g, useCallback as _ } from "react";
|
|
16
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
14
17
|
//#region src/components/StyleInspector/categories/Typography/Typography.tsx
|
|
15
|
-
var
|
|
18
|
+
var b = [
|
|
16
19
|
"font-family",
|
|
17
20
|
"font-weight",
|
|
18
21
|
"font-size",
|
|
@@ -21,204 +24,182 @@ var _ = [
|
|
|
21
24
|
"text-align",
|
|
22
25
|
"font-style",
|
|
23
26
|
"text-decoration",
|
|
27
|
+
"text-decoration-thickness",
|
|
28
|
+
"text-underline-offset",
|
|
24
29
|
"letter-spacing",
|
|
30
|
+
"word-spacing",
|
|
25
31
|
"text-indent",
|
|
26
32
|
"text-transform",
|
|
27
33
|
"direction",
|
|
28
34
|
"text-shadow",
|
|
29
35
|
"white-space",
|
|
30
36
|
"text-wrap",
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
"word-break",
|
|
38
|
+
"overflow-wrap",
|
|
39
|
+
"hyphens",
|
|
40
|
+
"vertical-align",
|
|
41
|
+
"text-overflow",
|
|
42
|
+
"line-clamp"
|
|
43
|
+
], x = [
|
|
44
|
+
"text-decoration-thickness",
|
|
45
|
+
"text-underline-offset",
|
|
46
|
+
"word-break",
|
|
47
|
+
"overflow-wrap",
|
|
48
|
+
"hyphens",
|
|
49
|
+
"vertical-align",
|
|
50
|
+
"text-shadow"
|
|
51
|
+
], S = [
|
|
52
|
+
"letter-spacing",
|
|
53
|
+
"word-spacing",
|
|
54
|
+
"text-indent"
|
|
55
|
+
], C = h(({ replaceTokens: h = !1, isCollapsed: C = !0, fonts: w, onCollapse: T }) => {
|
|
56
|
+
let { setValue: E } = g(e), { "font-family": D, "font-weight": O, "font-size": k, "font-style": A, "text-align": j, "text-decoration": M, "text-decoration-thickness": N, "text-underline-offset": ee, "text-indent": P, "text-transform": F, "text-shadow": I, "white-space": L, "text-wrap": R, "word-break": z, "overflow-wrap": B, hyphens: V, "vertical-align": H, "text-overflow": U, "line-clamp": W, "line-height": G, color: K, "letter-spacing": q, "word-spacing": J, direction: Y } = t({
|
|
57
|
+
keys: b,
|
|
35
58
|
asValue: !0,
|
|
36
|
-
replaceTokens:
|
|
37
|
-
}),
|
|
38
|
-
return /* @__PURE__ */
|
|
59
|
+
replaceTokens: h
|
|
60
|
+
}), X = _((e) => T?.("typography", e), [T]), Z = [...w ?? [], ...l].find((e) => e.name === D), Q = _((e) => (t) => E(e, t), [E]), $ = _((e) => E(void 0, e), [E]);
|
|
61
|
+
return /* @__PURE__ */ y(a, {
|
|
39
62
|
title: "Typography",
|
|
40
|
-
dotKeys:
|
|
41
|
-
|
|
42
|
-
|
|
63
|
+
dotKeys: b,
|
|
64
|
+
advancedKeys: x,
|
|
65
|
+
isCollapsed: C,
|
|
66
|
+
onCollapse: X,
|
|
43
67
|
children: [
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
partialValue:
|
|
46
|
-
onChange:
|
|
68
|
+
/* @__PURE__ */ v(o, {
|
|
69
|
+
partialValue: j,
|
|
70
|
+
onChange: Q("text-align")
|
|
47
71
|
}),
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
partialValue:
|
|
50
|
-
fonts:
|
|
51
|
-
onChange:
|
|
72
|
+
/* @__PURE__ */ v(d, {
|
|
73
|
+
partialValue: D,
|
|
74
|
+
fonts: w,
|
|
75
|
+
onChange: Q("font-family")
|
|
52
76
|
}),
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
label: "
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
77
|
+
/* @__PURE__ */ y(r, {
|
|
78
|
+
label: "",
|
|
79
|
+
children: [/* @__PURE__ */ v(n, {
|
|
80
|
+
keys: ["font-weight"],
|
|
81
|
+
label: "Weight",
|
|
82
|
+
value: O,
|
|
83
|
+
onChange: Q("font-weight"),
|
|
59
84
|
type: "select",
|
|
60
|
-
children: Object.keys(
|
|
85
|
+
children: Object.keys(u).map((e) => /* @__PURE__ */ v("option", {
|
|
61
86
|
value: e,
|
|
62
|
-
disabled: !
|
|
63
|
-
children:
|
|
87
|
+
disabled: !Z || !Z.weights.includes(e),
|
|
88
|
+
children: u[Number(e)]
|
|
64
89
|
}, e))
|
|
65
|
-
})
|
|
90
|
+
}), /* @__PURE__ */ v(n, {
|
|
91
|
+
keys: ["color"],
|
|
92
|
+
label: "Color",
|
|
93
|
+
type: "color",
|
|
94
|
+
value: K,
|
|
95
|
+
onChange: Q("color")
|
|
96
|
+
})]
|
|
66
97
|
}),
|
|
67
|
-
/* @__PURE__ */
|
|
98
|
+
/* @__PURE__ */ y(r, {
|
|
68
99
|
label: "",
|
|
69
|
-
children: [/* @__PURE__ */
|
|
100
|
+
children: [/* @__PURE__ */ v(n, {
|
|
70
101
|
keys: ["font-size"],
|
|
71
102
|
label: "Size",
|
|
72
|
-
value:
|
|
73
|
-
onChange:
|
|
103
|
+
value: k,
|
|
104
|
+
onChange: Q("font-size"),
|
|
74
105
|
type: "metric"
|
|
75
|
-
}), /* @__PURE__ */
|
|
106
|
+
}), /* @__PURE__ */ v(n, {
|
|
76
107
|
keys: ["line-height"],
|
|
77
108
|
label: "Line Height",
|
|
78
|
-
value:
|
|
79
|
-
onChange:
|
|
109
|
+
value: G,
|
|
110
|
+
onChange: Q("line-height"),
|
|
80
111
|
type: "metric"
|
|
81
112
|
})]
|
|
82
113
|
}),
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
onChange: V("color")
|
|
90
|
-
})
|
|
91
|
-
}),
|
|
92
|
-
/* @__PURE__ */ h(l, {
|
|
93
|
-
fontStyle: E,
|
|
94
|
-
textDecoration: O,
|
|
95
|
-
onChange: V
|
|
114
|
+
/* @__PURE__ */ v(f, {
|
|
115
|
+
fontStyle: A,
|
|
116
|
+
textDecoration: M,
|
|
117
|
+
textDecorationThickness: N,
|
|
118
|
+
textUnderlineOffset: ee,
|
|
119
|
+
onChange: Q
|
|
96
120
|
}),
|
|
97
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ y(r, {
|
|
98
122
|
label: "Letter",
|
|
99
|
-
keys:
|
|
100
|
-
children: [
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
123
|
+
keys: S,
|
|
124
|
+
children: [
|
|
125
|
+
/* @__PURE__ */ v(n, {
|
|
126
|
+
keys: ["letter-spacing"],
|
|
127
|
+
label: "Spacing",
|
|
128
|
+
value: q,
|
|
129
|
+
onChange: Q("letter-spacing"),
|
|
130
|
+
type: "metric"
|
|
131
|
+
}),
|
|
132
|
+
/* @__PURE__ */ v(n, {
|
|
133
|
+
keys: ["word-spacing"],
|
|
134
|
+
label: "Word",
|
|
135
|
+
value: J,
|
|
136
|
+
onChange: Q("word-spacing"),
|
|
137
|
+
type: "metric"
|
|
138
|
+
}),
|
|
139
|
+
/* @__PURE__ */ v(n, {
|
|
140
|
+
keys: ["text-indent"],
|
|
141
|
+
label: "Indent",
|
|
142
|
+
value: P,
|
|
143
|
+
onChange: Q("text-indent"),
|
|
144
|
+
type: "metric"
|
|
145
|
+
})
|
|
146
|
+
]
|
|
113
147
|
}),
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
textTransform:
|
|
116
|
-
direction:
|
|
117
|
-
onChange:
|
|
148
|
+
/* @__PURE__ */ v(m, {
|
|
149
|
+
textTransform: F,
|
|
150
|
+
direction: Y,
|
|
151
|
+
onChange: Q
|
|
118
152
|
}),
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
/* @__PURE__ */ h("option", {
|
|
128
|
-
value: "normal",
|
|
129
|
-
children: "Normal"
|
|
130
|
-
}),
|
|
131
|
-
/* @__PURE__ */ h("option", {
|
|
132
|
-
value: "nowrap",
|
|
133
|
-
children: "No Wrap"
|
|
134
|
-
}),
|
|
135
|
-
/* @__PURE__ */ h("option", {
|
|
136
|
-
value: "pre",
|
|
137
|
-
children: "Pre"
|
|
138
|
-
}),
|
|
139
|
-
/* @__PURE__ */ h("option", {
|
|
140
|
-
value: "pre-wrap",
|
|
141
|
-
children: "Pre Wrap"
|
|
142
|
-
}),
|
|
143
|
-
/* @__PURE__ */ h("option", {
|
|
144
|
-
value: "pre-line",
|
|
145
|
-
children: "Pre Line"
|
|
146
|
-
}),
|
|
147
|
-
/* @__PURE__ */ h("option", {
|
|
148
|
-
value: "break-spaces",
|
|
149
|
-
children: "Break Spaces"
|
|
150
|
-
})
|
|
151
|
-
]
|
|
152
|
-
})
|
|
153
|
-
}),
|
|
154
|
-
/* @__PURE__ */ h(r, {
|
|
155
|
-
label: "Wrap",
|
|
156
|
-
keys: ["text-wrap"],
|
|
157
|
-
children: /* @__PURE__ */ g(n, {
|
|
158
|
-
value: N,
|
|
159
|
-
onChange: V("text-wrap"),
|
|
160
|
-
type: "select",
|
|
161
|
-
children: [
|
|
162
|
-
/* @__PURE__ */ h("option", {
|
|
163
|
-
value: "wrap",
|
|
164
|
-
children: "Wrap"
|
|
165
|
-
}),
|
|
166
|
-
/* @__PURE__ */ h("option", {
|
|
167
|
-
value: "nowrap",
|
|
168
|
-
children: "No Wrap"
|
|
169
|
-
}),
|
|
170
|
-
/* @__PURE__ */ h("option", {
|
|
171
|
-
value: "balance",
|
|
172
|
-
children: "Balance"
|
|
173
|
-
}),
|
|
174
|
-
/* @__PURE__ */ h("option", {
|
|
175
|
-
value: "pretty",
|
|
176
|
-
children: "Pretty"
|
|
177
|
-
}),
|
|
178
|
-
/* @__PURE__ */ h("option", {
|
|
179
|
-
value: "stable",
|
|
180
|
-
children: "Stable"
|
|
181
|
-
})
|
|
182
|
-
]
|
|
183
|
-
})
|
|
153
|
+
/* @__PURE__ */ v(s, {
|
|
154
|
+
whiteSpace: L,
|
|
155
|
+
textWrap: R,
|
|
156
|
+
wordBreak: z,
|
|
157
|
+
overflowWrap: B,
|
|
158
|
+
hyphens: V,
|
|
159
|
+
verticalAlign: H,
|
|
160
|
+
onChange: Q
|
|
184
161
|
}),
|
|
185
|
-
/* @__PURE__ */
|
|
186
|
-
label: "
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
162
|
+
/* @__PURE__ */ y(r, {
|
|
163
|
+
label: "",
|
|
164
|
+
children: [/* @__PURE__ */ y(n, {
|
|
165
|
+
keys: ["text-overflow"],
|
|
166
|
+
label: "Overflow",
|
|
167
|
+
value: U,
|
|
168
|
+
onChange: Q("text-overflow"),
|
|
191
169
|
type: "select",
|
|
192
170
|
children: [
|
|
193
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ v("option", {
|
|
194
172
|
value: "clip",
|
|
195
173
|
children: "Clip"
|
|
196
174
|
}),
|
|
197
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ v("option", {
|
|
198
176
|
value: "ellipsis",
|
|
199
177
|
children: "Ellipsis"
|
|
200
178
|
}),
|
|
201
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ v("option", {
|
|
202
180
|
value: "string",
|
|
203
181
|
children: "String"
|
|
204
182
|
}),
|
|
205
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ v("option", {
|
|
206
184
|
value: "initial",
|
|
207
185
|
children: "Initial"
|
|
208
186
|
}),
|
|
209
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ v("option", {
|
|
210
188
|
value: "inherit",
|
|
211
189
|
children: "Inherit"
|
|
212
190
|
})
|
|
213
191
|
]
|
|
214
|
-
})
|
|
192
|
+
}), /* @__PURE__ */ v(c, {
|
|
193
|
+
value: W,
|
|
194
|
+
onChange: $
|
|
195
|
+
})]
|
|
215
196
|
}),
|
|
216
|
-
/* @__PURE__ */
|
|
217
|
-
value:
|
|
218
|
-
onChange:
|
|
219
|
-
})
|
|
197
|
+
/* @__PURE__ */ v(i, { children: /* @__PURE__ */ v(p, {
|
|
198
|
+
value: I,
|
|
199
|
+
onChange: Q("text-shadow")
|
|
200
|
+
}) })
|
|
220
201
|
]
|
|
221
202
|
});
|
|
222
203
|
});
|
|
223
204
|
//#endregion
|
|
224
|
-
export {
|
|
205
|
+
export { C as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type TypographyBreakingProps = {
|
|
3
|
+
whiteSpace?: StyleValue;
|
|
4
|
+
textWrap?: StyleValue;
|
|
5
|
+
wordBreak?: StyleValue;
|
|
6
|
+
overflowWrap?: StyleValue;
|
|
7
|
+
hyphens?: StyleValue;
|
|
8
|
+
verticalAlign?: StyleValue;
|
|
9
|
+
onChange?: (category: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
|
|
10
|
+
};
|
|
11
|
+
declare const TypographyBreaking: ({ whiteSpace, textWrap, wordBreak, overflowWrap, hyphens, verticalAlign, onChange }: TypographyBreakingProps) => import("react").JSX.Element;
|
|
12
|
+
export default TypographyBreaking;
|