@hortiview/default-components 1.4.0 → 1.4.2
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/README.md +1 -1
- package/dist/{Iconify-Cjdr-ccS.js → Iconify-CUZc8WnW.js} +17 -16
- package/dist/InfoCard-CFmkh7DJ.js +58 -0
- package/dist/{LoadingSpinner-FRQEZvxs.js → LoadingSpinner-DVBQ1tGJ.js} +178 -192
- package/dist/OfflineView-DHtzNLwt-BmxTfGZq.js +46 -0
- package/dist/assets/InfoCard.css +1 -0
- package/dist/assets/OfflineView-DHtzNLwt.css +1 -0
- package/dist/{component-DsB0poTj-BDGiEcbP.js → component-DsB0poTj-CeLHB9Ok.js} +3 -3
- package/dist/components/DefaultFormNumber/DefaultFormNumber.js +1337 -505
- package/dist/components/DefaultFormSelect/DefaultFormSelect.js +25 -25
- package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +2 -2
- package/dist/components/GenericTable/GenericTable.js +11524 -9875
- package/dist/components/HealthChecks/DataBaseHealthCheck.d.ts +2 -2
- package/dist/components/HealthChecks/DataBaseHealthCheck.js +2 -2
- package/dist/components/HealthChecks/DefaultHealthCheck.d.ts +2 -2
- package/dist/components/HealthChecks/DefaultHealthCheck.js +2 -2
- package/dist/components/HealthChecks/IotServiceHealthCheck.d.ts +2 -2
- package/dist/components/HealthChecks/IotServiceHealthCheck.js +2 -2
- package/dist/components/HealthChecks/PlatformHealthCheck.d.ts +2 -2
- package/dist/components/HealthChecks/PlatformHealthCheck.js +2 -2
- package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +2 -2
- package/dist/components/OfflineView/OfflineView.js +2 -2
- package/dist/index.es-0QJC9VS2-CNPew9LK.js +360 -0
- package/dist/{index.es--yyG47az-DBKBm3yD.js → index.es-BGordhUK-C36NK84Q.js} +400 -365
- package/dist/index.es-Bg8hxXM8-BlFd894m.js +1083 -0
- package/dist/index.es-Bo1Rhtyb-B650l9Yk.js +79 -0
- package/dist/index.es-CK4oZMKs-Da8pin7D.js +14077 -0
- package/dist/{index.es-U5-b20Gv-ChQ_O81C.js → index.es-Cq04gn3U-Bvzrqtm6.js} +369 -535
- package/dist/{omit-1Eom1PmQ-BLY9iMqj.js → index.es-DENZVv7_-PUEN9sIa.js} +495 -869
- package/dist/index.es-IXyb5F6n-B5afcHX8.js +452 -0
- package/dist/isTypedArray-Dw_IY7Zq-BZ-4N8-Z.js +210 -0
- package/dist/main.d.ts +3 -2
- package/dist/main.js +8 -8
- package/dist/slicedToArray-BWk2gTCn-Cfzj7tjm.js +432 -0
- package/dist/useHelperText-3ahu6tTS.js +391 -0
- package/dist/useTranslation-CVaIJbcK.js +5277 -0
- package/package.json +4 -4
- package/dist/HealthCheckFailed-CqLYAwpc.js +0 -47
- package/dist/OfflineView-HbuDPpQL-kqlzfoUS.js +0 -46
- package/dist/assets/HealthCheckFailed.css +0 -1
- package/dist/assets/OfflineView-HbuDPpQL.css +0 -1
- package/dist/index.es-Bx1E5MPK-CaV59rEP.js +0 -344
- package/dist/index.es-CzUKBF7E-C0X-mcdY.js +0 -13567
- package/dist/index.es-D-ph6ImM-CWxTa_iD.js +0 -63
- package/dist/index.es-DDo_AHL0-VqD9ikmU.js +0 -1033
- package/dist/index.es-Kg9soDed-BkTwDySy.js +0 -440
- package/dist/useHelperText-DD9_Dtkk.js +0 -21
- package/dist/useTranslation-B_ODv8uN.js +0 -4306
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { r as O, h as y, e as B, Z as V, c as de, p as q, f as le, v as ce, s as ee, X as se, a as K, b as ge, t, m as he, j as te, Y as T, ah as xe } from "./useTranslation-CVaIJbcK.js";
|
|
2
|
+
import g, { forwardRef as k, useRef as P, useImperativeHandle as C, useEffect as ue } from "react";
|
|
3
|
+
var ye = {
|
|
4
4
|
/**
|
|
5
5
|
* Children to be rendered. Expects multiple components of a similar type.
|
|
6
6
|
*
|
|
7
7
|
* Defaults to **null**.
|
|
8
8
|
*/
|
|
9
|
-
children:
|
|
9
|
+
children: t.node,
|
|
10
10
|
/**
|
|
11
11
|
* The grouping direction.
|
|
12
12
|
*
|
|
13
13
|
* Defaults to **'horizontal'**.
|
|
14
14
|
*/
|
|
15
|
-
direction:
|
|
15
|
+
direction: t.oneOf(["horizontal", "vertical", "horizontal-reverse", "vertical-reverse"]),
|
|
16
16
|
/**
|
|
17
17
|
* Sets the Group width to be 100%.
|
|
18
18
|
*
|
|
19
19
|
* Defaults to **false**.
|
|
20
20
|
*/
|
|
21
|
-
fullWidth:
|
|
21
|
+
fullWidth: t.bool,
|
|
22
22
|
/**
|
|
23
23
|
* How much spacing between items. Dense is 8p, standard is 16px and airy is 24px.
|
|
24
24
|
*
|
|
25
25
|
* Defaults to **'standard'**.
|
|
26
26
|
*/
|
|
27
|
-
gap:
|
|
27
|
+
gap: t.oneOf(["dense", "standard", "airy", "none"]),
|
|
28
28
|
/**
|
|
29
29
|
* @deprecated _Renamed for improved clarity. See `gap`._
|
|
30
30
|
*
|
|
@@ -32,29 +32,58 @@ const j = {
|
|
|
32
32
|
*
|
|
33
33
|
* Defaults to **undefined**.
|
|
34
34
|
*/
|
|
35
|
-
padding:
|
|
35
|
+
padding: he(t.oneOf(["dense", "standard", "airy", "none"]), "Group", "Renamed for improved clarity. See `gap`."),
|
|
36
36
|
/**
|
|
37
37
|
* Alignment along the primary axis. 'For `horizontal` grouping this means the x-axis positioning, for `vertical`, this means the y-axis positioning.Equivalent to flexbox 'justify-content.
|
|
38
38
|
*
|
|
39
39
|
* Defaults to **'start'**.
|
|
40
40
|
*/
|
|
41
|
-
primaryAlign:
|
|
41
|
+
primaryAlign: t.oneOf(["start", "end", "center", "space-evenly", "space-between", "space-around"]),
|
|
42
42
|
/**
|
|
43
43
|
* Alignment along the secondary axis. For horizontal grouping this means the y-axis positioning, for vertical, this means the x-axis positioning.Equivalent to flexbox 'align-items.
|
|
44
44
|
*
|
|
45
45
|
* Defaults to **'baseline'**.
|
|
46
46
|
*/
|
|
47
|
-
secondaryAlign:
|
|
48
|
-
|
|
47
|
+
secondaryAlign: t.oneOf(["start", "end", "center", "stretch", "baseline"]),
|
|
48
|
+
/**
|
|
49
|
+
* Styles for the grid.
|
|
50
|
+
*
|
|
51
|
+
* Defaults to **undefined**.
|
|
52
|
+
*/
|
|
53
|
+
style: t.object
|
|
54
|
+
}, pe = {
|
|
49
55
|
children: null,
|
|
50
56
|
direction: "horizontal",
|
|
51
57
|
fullWidth: !1,
|
|
52
58
|
gap: "standard",
|
|
53
59
|
padding: void 0,
|
|
54
60
|
primaryAlign: "start",
|
|
55
|
-
secondaryAlign: "baseline"
|
|
56
|
-
|
|
57
|
-
|
|
61
|
+
secondaryAlign: "baseline",
|
|
62
|
+
style: void 0
|
|
63
|
+
}, me = ["children", "className", "direction", "fullWidth", "gap", "padding", "primaryAlign", "secondaryAlign", "style"];
|
|
64
|
+
function M(e, r) {
|
|
65
|
+
var i = se(e);
|
|
66
|
+
if (K) {
|
|
67
|
+
var n = K(e);
|
|
68
|
+
r && (n = ge(n).call(n, function(d) {
|
|
69
|
+
return ee(e, d).enumerable;
|
|
70
|
+
})), i.push.apply(i, n);
|
|
71
|
+
}
|
|
72
|
+
return i;
|
|
73
|
+
}
|
|
74
|
+
function _(e) {
|
|
75
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
76
|
+
var i, n, d = arguments[r] != null ? arguments[r] : {};
|
|
77
|
+
r % 2 ? V(i = M(Object(d), !0)).call(i, function(p) {
|
|
78
|
+
de(e, p, d[p]);
|
|
79
|
+
}) : q ? le(e, q(d)) : V(n = M(Object(d))).call(n, function(p) {
|
|
80
|
+
ce(e, p, ee(d, p));
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
return e;
|
|
84
|
+
}
|
|
85
|
+
var N = pe, fe = function(e) {
|
|
86
|
+
switch (e) {
|
|
58
87
|
case "end":
|
|
59
88
|
return "flex-end";
|
|
60
89
|
case "start":
|
|
@@ -67,8 +96,8 @@ const j = {
|
|
|
67
96
|
default:
|
|
68
97
|
return "baseline";
|
|
69
98
|
}
|
|
70
|
-
},
|
|
71
|
-
switch (
|
|
99
|
+
}, be = function(e) {
|
|
100
|
+
switch (e) {
|
|
72
101
|
case "end":
|
|
73
102
|
return "flex-end";
|
|
74
103
|
case "center":
|
|
@@ -83,8 +112,8 @@ const j = {
|
|
|
83
112
|
default:
|
|
84
113
|
return "flex-start";
|
|
85
114
|
}
|
|
86
|
-
},
|
|
87
|
-
switch (
|
|
115
|
+
}, ve = function(e) {
|
|
116
|
+
switch (e) {
|
|
88
117
|
case "dense":
|
|
89
118
|
return "8px";
|
|
90
119
|
case "airy":
|
|
@@ -95,8 +124,8 @@ const j = {
|
|
|
95
124
|
default:
|
|
96
125
|
return "0px";
|
|
97
126
|
}
|
|
98
|
-
},
|
|
99
|
-
switch (
|
|
127
|
+
}, Oe = function(e) {
|
|
128
|
+
switch (e) {
|
|
100
129
|
case "horizontal":
|
|
101
130
|
return "row";
|
|
102
131
|
case "vertical":
|
|
@@ -108,718 +137,724 @@ const j = {
|
|
|
108
137
|
default:
|
|
109
138
|
return "row";
|
|
110
139
|
}
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
children: g,
|
|
114
|
-
className: n,
|
|
115
|
-
direction: c,
|
|
116
|
-
fullWidth: o,
|
|
117
|
-
gap: r,
|
|
118
|
-
padding: a,
|
|
119
|
-
primaryAlign: t,
|
|
120
|
-
secondaryAlign: h,
|
|
121
|
-
style: y,
|
|
122
|
-
variant: k,
|
|
123
|
-
...T
|
|
124
|
-
} = i;
|
|
125
|
-
let N = {
|
|
140
|
+
}, ne = /* @__PURE__ */ k(function(e, r) {
|
|
141
|
+
var i = e.children, n = i === void 0 ? N.children : i, d = e.className, p = d === void 0 ? N.className : d, x = e.direction, o = x === void 0 ? N.direction : x, u = e.fullWidth, c = u === void 0 ? N.fullWidth : u, h = e.gap, l = h === void 0 ? N.gap : h, a = e.padding, s = a === void 0 ? N.padding : a, m = e.primaryAlign, f = m === void 0 ? N.primaryAlign : m, b = e.secondaryAlign, v = b === void 0 ? N.secondaryAlign : b, D = e.style, $ = D === void 0 ? N.style : D, ie = O(e, me), R = {
|
|
126
142
|
display: "flex",
|
|
127
|
-
flexDirection:
|
|
128
|
-
justifyContent:
|
|
129
|
-
alignItems:
|
|
130
|
-
gap:
|
|
143
|
+
flexDirection: Oe(o),
|
|
144
|
+
justifyContent: be(f),
|
|
145
|
+
alignItems: fe(v),
|
|
146
|
+
gap: ve(s || l)
|
|
131
147
|
};
|
|
132
|
-
|
|
133
|
-
...N,
|
|
148
|
+
c && (R = _(_({}, R), {}, {
|
|
134
149
|
width: "100%"
|
|
135
|
-
}),
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
"lmnt-group",
|
|
145
|
-
// variant === 'dense' && 'lmnt-button-group--dense',
|
|
146
|
-
// variant === 'standard' && 'lmnt-button-group--standard',
|
|
147
|
-
// variant === 'airy' && 'lmnt-button-group--airy',
|
|
148
|
-
n
|
|
149
|
-
),
|
|
150
|
-
style: N
|
|
151
|
-
}, T), g);
|
|
150
|
+
})), R = _(_({}, R), $);
|
|
151
|
+
var U = P();
|
|
152
|
+
return C(r, function() {
|
|
153
|
+
return U.current;
|
|
154
|
+
}, []), /* @__PURE__ */ g.createElement("div", y({
|
|
155
|
+
ref: U,
|
|
156
|
+
className: B("lmnt", "lmnt-group", p),
|
|
157
|
+
style: R
|
|
158
|
+
}, ie), n);
|
|
152
159
|
});
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
return i.toLowerCase();
|
|
160
|
+
ne.displayName = "Group";
|
|
161
|
+
ne.propTypes = ye;
|
|
162
|
+
function ke(e) {
|
|
163
|
+
return e.toLowerCase();
|
|
158
164
|
}
|
|
159
|
-
var
|
|
160
|
-
function
|
|
161
|
-
|
|
162
|
-
for (var
|
|
163
|
-
|
|
164
|
-
for (;
|
|
165
|
-
|
|
166
|
-
return
|
|
165
|
+
var Pe = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g], Ce = /[^A-Z0-9]+/gi;
|
|
166
|
+
function Ne(e, r) {
|
|
167
|
+
r === void 0 && (r = {});
|
|
168
|
+
for (var i = r.splitRegexp, n = i === void 0 ? Pe : i, d = r.stripRegexp, p = d === void 0 ? Ce : d, x = r.transform, o = x === void 0 ? ke : x, u = r.delimiter, c = u === void 0 ? " " : u, h = Q(Q(e, n, "$1\0$2"), p, "\0"), l = 0, a = h.length; h.charAt(l) === "\0"; )
|
|
169
|
+
l++;
|
|
170
|
+
for (; h.charAt(a - 1) === "\0"; )
|
|
171
|
+
a--;
|
|
172
|
+
return h.slice(l, a).split("\0").map(o).join(c);
|
|
167
173
|
}
|
|
168
|
-
function
|
|
169
|
-
return
|
|
170
|
-
return n.replace(
|
|
171
|
-
},
|
|
174
|
+
function Q(e, r, i) {
|
|
175
|
+
return r instanceof RegExp ? e.replace(r, i) : r.reduce(function(n, d) {
|
|
176
|
+
return n.replace(d, i);
|
|
177
|
+
}, e);
|
|
172
178
|
}
|
|
173
|
-
function
|
|
174
|
-
return
|
|
179
|
+
function Te(e, r) {
|
|
180
|
+
return r === void 0 && (r = {}), Ne(e, te({ delimiter: "." }, r));
|
|
175
181
|
}
|
|
176
|
-
function
|
|
177
|
-
return
|
|
182
|
+
function E(e, r) {
|
|
183
|
+
return r === void 0 && (r = {}), Te(e, te({ delimiter: "-" }, r));
|
|
178
184
|
}
|
|
179
|
-
|
|
185
|
+
var Be = {
|
|
180
186
|
/**
|
|
181
187
|
* If true the typography will be bold. Applies to 1body, body2, caption, subtitle1, subtitle2
|
|
182
188
|
*
|
|
183
189
|
* Defaults to **false**.
|
|
184
190
|
*/
|
|
185
|
-
bold:
|
|
191
|
+
bold: t.bool,
|
|
186
192
|
/**
|
|
187
193
|
* Expects a string, accepts any valid markup.
|
|
188
194
|
*
|
|
189
195
|
* Defaults to **null**.
|
|
190
196
|
*/
|
|
191
|
-
children:
|
|
197
|
+
children: t.node,
|
|
192
198
|
/**
|
|
193
199
|
* The css class name to be passed through to the component markup.
|
|
194
200
|
*
|
|
195
201
|
* Defaults to **undefined**.
|
|
196
202
|
*/
|
|
197
|
-
className:
|
|
203
|
+
className: t.string,
|
|
204
|
+
/**
|
|
205
|
+
* Forces consistent padding when using different html tags.
|
|
206
|
+
*
|
|
207
|
+
* Defaults to **false**.
|
|
208
|
+
*/
|
|
209
|
+
fixedPadding: t.bool,
|
|
198
210
|
/**
|
|
199
211
|
* The DOM element to display the typography.
|
|
200
212
|
*
|
|
201
213
|
* Defaults to **'span'**.
|
|
202
214
|
*/
|
|
203
|
-
tag:
|
|
215
|
+
tag: t.oneOfType([t.string, t.elementType, t.instanceOf(g.Component)]),
|
|
204
216
|
/**
|
|
205
217
|
* Sets theme color for the typography. Does not apply to Link.
|
|
206
218
|
*
|
|
207
219
|
* Defaults to **undefined**.
|
|
208
220
|
*/
|
|
209
|
-
themeColor:
|
|
221
|
+
themeColor: T(t.oneOf(["primary", "secondary", "error", "text-primary-on-background", "text-secondary-on-background", "text-hint-on-background", "text-disabled-on-background", "text-icon-on-background", "text-primary-on-light", "text-secondary-on-light", "text-hint-on-light", "text-disabled-on-light", "text-icon-on-light"]), ["textPrimaryOnBackground", "textSecondaryOnBackground", "textHintOnBackground", "textDisabledOnBackground", "textIconOnBackground", "textPrimaryOnLight", "textSecondaryOnLight", "textHintOnLight", "textDisabledOnLight", "textIconOnLight"], "Typography", "Please use one of 'primary','secondary','error','text-primary-on-background','text-secondary-on-background','text-hint-on-background','text-disabled-on-background','text-icon-on-background','text-primary-on-light','text-secondary-on-light','text-hint-on-light','text-disabled-on-light','text-icon-on-light'."),
|
|
210
222
|
/**
|
|
211
223
|
* Sets typography class for the element.
|
|
212
224
|
*
|
|
213
225
|
* Defaults to **'body1'**.
|
|
214
226
|
*/
|
|
215
|
-
type:
|
|
216
|
-
},
|
|
217
|
-
bold: !1,
|
|
227
|
+
type: T(t.oneOf(["body1", "body1-bold", "body2", "body2-bold", "button", "caption", "caption-bold", "display1", "display2", "display3", "display4", "display5", "display6", "link", "overline", "subtitle1", "subtitle1-bold", "subtitle2", "subtitle2-bold"]), ["headline1", "headline2", "headline3", "headline4", "headline5", "headline6"], "Typography", "Please use one of 'body1','body1-bold','body2','body2-bold','button','caption','caption-bold','display1','display2','display3','display4','display5','display6','link','overline','subtitle1','subtitle1-bold','subtitle2','subtitle2-bold'.")
|
|
228
|
+
}, Le = {
|
|
218
229
|
children: null,
|
|
219
|
-
|
|
230
|
+
fixedPadding: !1,
|
|
220
231
|
tag: "span",
|
|
221
232
|
themeColor: void 0,
|
|
222
233
|
type: "body1"
|
|
223
|
-
},
|
|
234
|
+
}, Ee = {
|
|
224
235
|
/**
|
|
225
236
|
* If true the typography will be bold.
|
|
226
237
|
*
|
|
227
238
|
* Defaults to **false**.
|
|
228
239
|
*/
|
|
229
|
-
bold:
|
|
240
|
+
bold: t.bool,
|
|
230
241
|
/**
|
|
231
242
|
* Expects a string, accepts any valid markup.
|
|
232
243
|
*
|
|
233
244
|
* Defaults to **null**.
|
|
234
245
|
*/
|
|
235
|
-
children:
|
|
246
|
+
children: t.node,
|
|
236
247
|
/**
|
|
237
248
|
* The css class name to be passed through to the component markup.
|
|
238
249
|
*
|
|
239
250
|
* Defaults to **undefined**.
|
|
240
251
|
*/
|
|
241
|
-
className:
|
|
252
|
+
className: t.string,
|
|
253
|
+
/**
|
|
254
|
+
* Forces consistent padding when using different html tags.
|
|
255
|
+
*
|
|
256
|
+
* Defaults to **false**.
|
|
257
|
+
*/
|
|
258
|
+
fixedPadding: t.bool,
|
|
242
259
|
/**
|
|
243
260
|
* Sets font properties for body. Acceptable values range from 1 - 2. Higher levels produce smaller type.
|
|
244
261
|
*
|
|
245
262
|
* Defaults to **1**.
|
|
246
263
|
*/
|
|
247
|
-
level:
|
|
264
|
+
level: t.oneOf([1, 2]),
|
|
248
265
|
/**
|
|
249
266
|
* The DOM element to display the typography.
|
|
250
267
|
*
|
|
251
268
|
* Defaults to **'span'**.
|
|
252
269
|
*/
|
|
253
|
-
tag:
|
|
270
|
+
tag: t.oneOfType([t.string, t.elementType, t.instanceOf(g.Component)]),
|
|
254
271
|
/**
|
|
255
272
|
* Sets theme color for the typography.
|
|
256
273
|
*
|
|
257
274
|
* Defaults to **undefined**.
|
|
258
275
|
*/
|
|
259
|
-
themeColor:
|
|
260
|
-
},
|
|
276
|
+
themeColor: T(t.oneOf(["primary", "secondary", "error", "text-primary-on-background", "text-secondary-on-background", "text-hint-on-background", "text-disabled-on-background", "text-icon-on-background", "text-primary-on-light", "text-secondary-on-light", "text-hint-on-light", "text-disabled-on-light", "text-icon-on-light"]), ["textPrimaryOnBackground", "textSecondaryOnBackground", "textHintOnBackground", "textDisabledOnBackground", "textIconOnBackground", "textPrimaryOnLight", "textSecondaryOnLight", "textHintOnLight", "textDisabledOnLight", "textIconOnLight"], "TypoBody", "Please use one of 'primary','secondary','error','text-primary-on-background','text-secondary-on-background','text-hint-on-background','text-disabled-on-background','text-icon-on-background','text-primary-on-light','text-secondary-on-light','text-hint-on-light','text-disabled-on-light','text-icon-on-light'.")
|
|
277
|
+
}, De = {
|
|
261
278
|
bold: !1,
|
|
262
279
|
children: null,
|
|
263
280
|
className: void 0,
|
|
281
|
+
fixedPadding: !1,
|
|
264
282
|
level: 1,
|
|
265
283
|
tag: "span",
|
|
266
284
|
themeColor: void 0
|
|
267
|
-
},
|
|
285
|
+
}, He = {
|
|
268
286
|
/**
|
|
269
287
|
* Expects a string, accepts any valid markup.
|
|
270
288
|
*
|
|
271
289
|
* Defaults to **null**.
|
|
272
290
|
*/
|
|
273
|
-
children:
|
|
291
|
+
children: t.node,
|
|
274
292
|
/**
|
|
275
293
|
* The css class name to be passed through to the component markup.
|
|
276
294
|
*
|
|
277
295
|
* Defaults to **undefined**.
|
|
278
296
|
*/
|
|
279
|
-
className:
|
|
297
|
+
className: t.string,
|
|
298
|
+
/**
|
|
299
|
+
* Forces consistent padding when using different html tags.
|
|
300
|
+
*
|
|
301
|
+
* Defaults to **false**.
|
|
302
|
+
*/
|
|
303
|
+
fixedPadding: t.bool,
|
|
280
304
|
/**
|
|
281
305
|
* The DOM element to display the typography.
|
|
282
306
|
*
|
|
283
307
|
* Defaults to **'span'**.
|
|
284
308
|
*/
|
|
285
|
-
tag:
|
|
309
|
+
tag: t.oneOfType([t.string, t.elementType, t.instanceOf(g.Component)]),
|
|
286
310
|
/**
|
|
287
311
|
* Sets theme color for the typography.
|
|
288
312
|
*
|
|
289
313
|
* Defaults to **undefined**.
|
|
290
314
|
*/
|
|
291
|
-
themeColor:
|
|
292
|
-
},
|
|
315
|
+
themeColor: T(t.oneOf(["primary", "secondary", "error", "text-primary-on-background", "text-secondary-on-background", "text-hint-on-background", "text-disabled-on-background", "text-icon-on-background", "text-primary-on-light", "text-secondary-on-light", "text-hint-on-light", "text-disabled-on-light", "text-icon-on-light"]), ["textPrimaryOnBackground", "textSecondaryOnBackground", "textHintOnBackground", "textDisabledOnBackground", "textIconOnBackground", "textPrimaryOnLight", "textSecondaryOnLight", "textHintOnLight", "textDisabledOnLight", "textIconOnLight"], "TypoButton", "Please use one of 'primary','secondary','error','text-primary-on-background','text-secondary-on-background','text-hint-on-background','text-disabled-on-background','text-icon-on-background','text-primary-on-light','text-secondary-on-light','text-hint-on-light','text-disabled-on-light','text-icon-on-light'.")
|
|
316
|
+
}, Se = {
|
|
293
317
|
children: null,
|
|
294
318
|
className: void 0,
|
|
319
|
+
fixedPadding: !1,
|
|
295
320
|
tag: "span",
|
|
296
321
|
themeColor: void 0
|
|
297
|
-
},
|
|
322
|
+
}, Ie = {
|
|
298
323
|
/**
|
|
299
324
|
* If true the typography will be bold.
|
|
300
325
|
*
|
|
301
326
|
* Defaults to **false**.
|
|
302
327
|
*/
|
|
303
|
-
bold:
|
|
328
|
+
bold: t.bool,
|
|
304
329
|
/**
|
|
305
330
|
* Expects a string, accepts any valid markup.
|
|
306
331
|
*
|
|
307
332
|
* Defaults to **null**.
|
|
308
333
|
*/
|
|
309
|
-
children:
|
|
334
|
+
children: t.node,
|
|
310
335
|
/**
|
|
311
336
|
* The css class name to be passed through to the component markup.
|
|
312
337
|
*
|
|
313
338
|
* Defaults to **undefined**.
|
|
314
339
|
*/
|
|
315
|
-
className:
|
|
340
|
+
className: t.string,
|
|
341
|
+
/**
|
|
342
|
+
* Forces consistent padding when using different html tags.
|
|
343
|
+
*
|
|
344
|
+
* Defaults to **false**.
|
|
345
|
+
*/
|
|
346
|
+
fixedPadding: t.bool,
|
|
316
347
|
/**
|
|
317
348
|
* The DOM element to display the typography.
|
|
318
349
|
*
|
|
319
350
|
* Defaults to **'span'**.
|
|
320
351
|
*/
|
|
321
|
-
tag:
|
|
352
|
+
tag: t.oneOfType([t.string, t.elementType, t.instanceOf(g.Component)]),
|
|
322
353
|
/**
|
|
323
354
|
* Sets theme color for the typography.
|
|
324
355
|
*
|
|
325
356
|
* Defaults to **undefined**.
|
|
326
357
|
*/
|
|
327
|
-
themeColor:
|
|
328
|
-
},
|
|
358
|
+
themeColor: T(t.oneOf(["primary", "secondary", "error", "text-primary-on-background", "text-secondary-on-background", "text-hint-on-background", "text-disabled-on-background", "text-icon-on-background", "text-primary-on-light", "text-secondary-on-light", "text-hint-on-light", "text-disabled-on-light", "text-icon-on-light"]), ["textPrimaryOnBackground", "textSecondaryOnBackground", "textHintOnBackground", "textDisabledOnBackground", "textIconOnBackground", "textPrimaryOnLight", "textSecondaryOnLight", "textHintOnLight", "textDisabledOnLight", "textIconOnLight"], "TypoCaption", "Please use one of 'primary','secondary','error','text-primary-on-background','text-secondary-on-background','text-hint-on-background','text-disabled-on-background','text-icon-on-background','text-primary-on-light','text-secondary-on-light','text-hint-on-light','text-disabled-on-light','text-icon-on-light'.")
|
|
359
|
+
}, we = {
|
|
329
360
|
bold: !1,
|
|
330
361
|
children: null,
|
|
331
362
|
className: void 0,
|
|
363
|
+
fixedPadding: !1,
|
|
332
364
|
tag: "span",
|
|
333
365
|
themeColor: void 0
|
|
334
|
-
},
|
|
366
|
+
}, Ae = {
|
|
335
367
|
/**
|
|
336
368
|
* Expects a string, accepts any valid markup.
|
|
337
369
|
*
|
|
338
370
|
* Defaults to **null**.
|
|
339
371
|
*/
|
|
340
|
-
children:
|
|
372
|
+
children: t.node,
|
|
341
373
|
/**
|
|
342
374
|
* The css class name to be passed through to the component markup.
|
|
343
375
|
*
|
|
344
376
|
* Defaults to **undefined**.
|
|
345
377
|
*/
|
|
346
|
-
className:
|
|
378
|
+
className: t.string,
|
|
379
|
+
/**
|
|
380
|
+
* Forces consistent padding when using different html tags.
|
|
381
|
+
*
|
|
382
|
+
* Defaults to **false**.
|
|
383
|
+
*/
|
|
384
|
+
fixedPadding: t.bool,
|
|
347
385
|
/**
|
|
348
386
|
* Sets font properties for body. Acceptable values range from 1 to 6. Higher levels produce smaller type.
|
|
349
387
|
*
|
|
350
388
|
* Defaults to **1**.
|
|
351
389
|
*/
|
|
352
|
-
level:
|
|
390
|
+
level: t.oneOfType([t.oneOf([1, 2, 3, 4, 5, 6, "1", "2", "3", "4", "5", "6"]), t.oneOf([1, 2, 3, 4, 5, 6, "1", "2", "3", "4", "5", "6"])]),
|
|
353
391
|
/**
|
|
354
392
|
* The DOM element to display the typography.
|
|
355
393
|
*
|
|
356
394
|
* Defaults to **'span'**.
|
|
357
395
|
*/
|
|
358
|
-
tag:
|
|
396
|
+
tag: t.oneOfType([t.string, t.elementType, t.instanceOf(g.Component)]),
|
|
359
397
|
/**
|
|
360
398
|
* Sets theme color for the typography.
|
|
361
399
|
*
|
|
362
400
|
* Defaults to **undefined**.
|
|
363
401
|
*/
|
|
364
|
-
themeColor:
|
|
365
|
-
},
|
|
402
|
+
themeColor: T(t.oneOf(["primary", "secondary", "error", "text-primary-on-background", "text-secondary-on-background", "text-hint-on-background", "text-disabled-on-background", "text-icon-on-background", "text-primary-on-light", "text-secondary-on-light", "text-hint-on-light", "text-disabled-on-light", "text-icon-on-light"]), ["textPrimaryOnBackground", "textSecondaryOnBackground", "textHintOnBackground", "textDisabledOnBackground", "textIconOnBackground", "textPrimaryOnLight", "textSecondaryOnLight", "textHintOnLight", "textDisabledOnLight", "textIconOnLight"], "TypoDisplay", "Please use one of 'primary','secondary','error','text-primary-on-background','text-secondary-on-background','text-hint-on-background','text-disabled-on-background','text-icon-on-background','text-primary-on-light','text-secondary-on-light','text-hint-on-light','text-disabled-on-light','text-icon-on-light'.")
|
|
403
|
+
}, je = {
|
|
366
404
|
children: null,
|
|
367
405
|
className: void 0,
|
|
406
|
+
fixedPadding: !1,
|
|
368
407
|
level: 1,
|
|
369
408
|
tag: "span",
|
|
370
409
|
themeColor: void 0
|
|
371
|
-
},
|
|
410
|
+
}, ze = {
|
|
372
411
|
/**
|
|
373
412
|
* Expects a string, accepts any valid markup.
|
|
374
413
|
*
|
|
375
414
|
* Defaults to **null**.
|
|
376
415
|
*/
|
|
377
|
-
children:
|
|
416
|
+
children: t.node,
|
|
378
417
|
/**
|
|
379
418
|
* The css class name to be passed through to the component markup.
|
|
380
419
|
*
|
|
381
420
|
* Defaults to **undefined**.
|
|
382
421
|
*/
|
|
383
|
-
className:
|
|
422
|
+
className: t.string,
|
|
423
|
+
/**
|
|
424
|
+
* Forces consistent padding when using different html tags.
|
|
425
|
+
*
|
|
426
|
+
* Defaults to **false**.
|
|
427
|
+
*/
|
|
428
|
+
fixedPadding: t.bool,
|
|
384
429
|
/**
|
|
385
430
|
* Sets font properties for body. Acceptable values range from 1 to 6. Higher levels produce smaller type.
|
|
386
431
|
*
|
|
387
432
|
* Defaults to **1**.
|
|
388
433
|
*/
|
|
389
|
-
level:
|
|
434
|
+
level: t.oneOfType([t.oneOf([1, 2, 3, 4, 5, 6, "1", "2", "3", "4", "5", "6"]), t.oneOf([1, 2, 3, 4, 5, 6, "1", "2", "3", "4", "5", "6"])]),
|
|
390
435
|
/**
|
|
391
436
|
* The DOM element to display the typography.
|
|
392
437
|
*
|
|
393
438
|
* Defaults to **'span'**.
|
|
394
439
|
*/
|
|
395
|
-
tag:
|
|
440
|
+
tag: t.oneOfType([t.string, t.elementType, t.instanceOf(g.Component)]),
|
|
396
441
|
/**
|
|
397
442
|
* Sets theme color for the typography.
|
|
398
443
|
*
|
|
399
444
|
* Defaults to **undefined**.
|
|
400
445
|
*/
|
|
401
|
-
themeColor:
|
|
402
|
-
},
|
|
446
|
+
themeColor: T(t.oneOf(["primary", "secondary", "error", "text-primary-on-background", "text-secondary-on-background", "text-hint-on-background", "text-disabled-on-background", "text-icon-on-background", "text-primary-on-light", "text-secondary-on-light", "text-hint-on-light", "text-disabled-on-light", "text-icon-on-light"]), ["textPrimaryOnBackground", "textSecondaryOnBackground", "textHintOnBackground", "textDisabledOnBackground", "textIconOnBackground", "textPrimaryOnLight", "textSecondaryOnLight", "textHintOnLight", "textDisabledOnLight", "textIconOnLight"], "TypoHeadline", "Please use one of 'primary','secondary','error','text-primary-on-background','text-secondary-on-background','text-hint-on-background','text-disabled-on-background','text-icon-on-background','text-primary-on-light','text-secondary-on-light','text-hint-on-light','text-disabled-on-light','text-icon-on-light'.")
|
|
447
|
+
}, $e = {
|
|
403
448
|
children: null,
|
|
404
449
|
className: void 0,
|
|
450
|
+
fixedPadding: !1,
|
|
405
451
|
level: 1,
|
|
406
452
|
tag: "span",
|
|
407
453
|
themeColor: void 0
|
|
408
|
-
},
|
|
454
|
+
}, Re = {
|
|
409
455
|
/**
|
|
410
456
|
* Expects a string, accepts any valid markup.
|
|
411
457
|
*
|
|
412
458
|
* Defaults to **null**.
|
|
413
459
|
*/
|
|
414
|
-
children:
|
|
460
|
+
children: t.node,
|
|
415
461
|
/**
|
|
416
462
|
* The css class name to be passed through to the component markup.
|
|
417
463
|
*
|
|
418
464
|
* Defaults to **undefined**.
|
|
419
465
|
*/
|
|
420
|
-
className:
|
|
466
|
+
className: t.string,
|
|
467
|
+
/**
|
|
468
|
+
* Forces consistent padding when using different html tags.
|
|
469
|
+
*
|
|
470
|
+
* Defaults to **false**.
|
|
471
|
+
*/
|
|
472
|
+
fixedPadding: t.bool,
|
|
421
473
|
/**
|
|
422
474
|
* The DOM element to display the typography.
|
|
423
475
|
*
|
|
424
476
|
* Defaults to **'a'**.
|
|
425
477
|
*/
|
|
426
|
-
tag:
|
|
427
|
-
},
|
|
478
|
+
tag: t.oneOfType([t.string, t.elementType, t.instanceOf(g.Component)])
|
|
479
|
+
}, Ze = {
|
|
428
480
|
children: null,
|
|
429
481
|
className: void 0,
|
|
482
|
+
fixedPadding: !1,
|
|
430
483
|
tag: "a"
|
|
431
|
-
},
|
|
484
|
+
}, We = {
|
|
432
485
|
/**
|
|
433
486
|
* Expects a string, accepts any valid markup.
|
|
434
487
|
*
|
|
435
488
|
* Defaults to **null**.
|
|
436
489
|
*/
|
|
437
|
-
children:
|
|
490
|
+
children: t.node,
|
|
438
491
|
/**
|
|
439
492
|
* The css class name to be passed through to the component markup.
|
|
440
493
|
*
|
|
441
494
|
* Defaults to **undefined**.
|
|
442
495
|
*/
|
|
443
|
-
className:
|
|
496
|
+
className: t.string,
|
|
497
|
+
/**
|
|
498
|
+
* Forces consistent padding when using different html tags.
|
|
499
|
+
*
|
|
500
|
+
* Defaults to **false**.
|
|
501
|
+
*/
|
|
502
|
+
fixedPadding: t.bool,
|
|
444
503
|
/**
|
|
445
504
|
* The DOM element to display the typography.
|
|
446
505
|
*
|
|
447
506
|
* Defaults to **'span'**.
|
|
448
507
|
*/
|
|
449
|
-
tag:
|
|
508
|
+
tag: t.oneOfType([t.string, t.elementType, t.instanceOf(g.Component)]),
|
|
450
509
|
/**
|
|
451
510
|
* Sets theme color for the typography.
|
|
452
511
|
*
|
|
453
512
|
* Defaults to **undefined**.
|
|
454
513
|
*/
|
|
455
|
-
themeColor:
|
|
456
|
-
},
|
|
514
|
+
themeColor: T(t.oneOf(["primary", "secondary", "error", "text-primary-on-background", "text-secondary-on-background", "text-hint-on-background", "text-disabled-on-background", "text-icon-on-background", "text-primary-on-light", "text-secondary-on-light", "text-hint-on-light", "text-disabled-on-light", "text-icon-on-light"]), ["textPrimaryOnBackground", "textSecondaryOnBackground", "textHintOnBackground", "textDisabledOnBackground", "textIconOnBackground", "textPrimaryOnLight", "textSecondaryOnLight", "textHintOnLight", "textDisabledOnLight", "textIconOnLight"], "TypoOverline", "Please use one of 'primary','secondary','error','text-primary-on-background','text-secondary-on-background','text-hint-on-background','text-disabled-on-background','text-icon-on-background','text-primary-on-light','text-secondary-on-light','text-hint-on-light','text-disabled-on-light','text-icon-on-light'.")
|
|
515
|
+
}, Xe = {
|
|
457
516
|
children: null,
|
|
458
517
|
className: void 0,
|
|
518
|
+
fixedPadding: !1,
|
|
459
519
|
tag: "span",
|
|
460
520
|
themeColor: void 0
|
|
461
|
-
},
|
|
521
|
+
}, Ge = {
|
|
462
522
|
/**
|
|
463
523
|
* If true the typography will be bold.
|
|
464
524
|
*
|
|
465
525
|
* Defaults to **false**.
|
|
466
526
|
*/
|
|
467
|
-
bold:
|
|
527
|
+
bold: t.bool,
|
|
468
528
|
/**
|
|
469
529
|
* Expects a string, accepts any valid markup.
|
|
470
530
|
*
|
|
471
531
|
* Defaults to **null**.
|
|
472
532
|
*/
|
|
473
|
-
children:
|
|
533
|
+
children: t.node,
|
|
474
534
|
/**
|
|
475
535
|
* The css class name to be passed through to the component markup.
|
|
476
536
|
*
|
|
477
537
|
* Defaults to **undefined**.
|
|
478
538
|
*/
|
|
479
|
-
className:
|
|
539
|
+
className: t.string,
|
|
540
|
+
/**
|
|
541
|
+
* Forces consistent padding when using different html tags.
|
|
542
|
+
*
|
|
543
|
+
* Defaults to **false**.
|
|
544
|
+
*/
|
|
545
|
+
fixedPadding: t.bool,
|
|
480
546
|
/**
|
|
481
547
|
* Sets font properties for body.
|
|
482
548
|
*
|
|
483
549
|
* Defaults to **1**.
|
|
484
550
|
*/
|
|
485
|
-
level:
|
|
551
|
+
level: t.oneOf([1, 2]),
|
|
486
552
|
/**
|
|
487
553
|
* The DOM element to display the typography.
|
|
488
554
|
*
|
|
489
555
|
* Defaults to **'span'**.
|
|
490
556
|
*/
|
|
491
|
-
tag:
|
|
557
|
+
tag: t.oneOfType([t.string, t.elementType, t.instanceOf(g.Component)]),
|
|
492
558
|
/**
|
|
493
559
|
* Sets theme color for the typography.
|
|
494
560
|
*
|
|
495
561
|
* Defaults to **undefined**.
|
|
496
562
|
*/
|
|
497
|
-
themeColor:
|
|
498
|
-
},
|
|
563
|
+
themeColor: T(t.oneOf(["primary", "secondary", "error", "text-primary-on-background", "text-secondary-on-background", "text-hint-on-background", "text-disabled-on-background", "text-icon-on-background", "text-primary-on-light", "text-secondary-on-light", "text-hint-on-light", "text-disabled-on-light", "text-icon-on-light"]), ["textPrimaryOnBackground", "textSecondaryOnBackground", "textHintOnBackground", "textDisabledOnBackground", "textIconOnBackground", "textPrimaryOnLight", "textSecondaryOnLight", "textHintOnLight", "textDisabledOnLight", "textIconOnLight"], "TypoSubtitle", "Please use one of 'primary','secondary','error','text-primary-on-background','text-secondary-on-background','text-hint-on-background','text-disabled-on-background','text-icon-on-background','text-primary-on-light','text-secondary-on-light','text-hint-on-light','text-disabled-on-light','text-icon-on-light'.")
|
|
564
|
+
}, _e = {
|
|
499
565
|
bold: !1,
|
|
500
566
|
children: null,
|
|
501
567
|
className: void 0,
|
|
568
|
+
fixedPadding: !1,
|
|
502
569
|
level: 1,
|
|
503
570
|
tag: "span",
|
|
504
571
|
themeColor: void 0
|
|
505
|
-
},
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
const y = f("mdc-typography", `lmnt mdc-typography--body${o}`, r && `mdc-typography--body${o}-bold`, c && `mdc-theme--${v(c)}`, g), k = a;
|
|
517
|
-
return /* @__PURE__ */ d.createElement(k, s({
|
|
518
|
-
className: y
|
|
519
|
-
}, t, {
|
|
520
|
-
ref: h
|
|
521
|
-
}), n);
|
|
572
|
+
}, Ye = ["className", "children", "themeColor", "level", "bold", "tag", "fixedPadding"], H = De, I = /* @__PURE__ */ k(function(e, r) {
|
|
573
|
+
var i = e.className, n = i === void 0 ? H.className : i, d = e.children, p = d === void 0 ? H.children : d, x = e.themeColor, o = x === void 0 ? H.themeColor : x, u = e.level, c = u === void 0 ? H.level : u, h = e.bold, l = h === void 0 ? H.bold : h, a = e.tag, s = a === void 0 ? H.tag : a, m = e.fixedPadding, f = m === void 0 ? H.fixedPadding : m, b = O(e, Ye), v = P();
|
|
574
|
+
C(r, function() {
|
|
575
|
+
return v.current;
|
|
576
|
+
}, []);
|
|
577
|
+
var D = s, $ = B("mdc-typography", "lmnt mdc-typography--body".concat(c), f && "typography--fixed-padding", l && "mdc-typography--body".concat(c, "-bold"), o && "mdc-theme--".concat(E(o)), n);
|
|
578
|
+
return /* @__PURE__ */ g.createElement(D, y({
|
|
579
|
+
className: $
|
|
580
|
+
}, b, {
|
|
581
|
+
ref: v
|
|
582
|
+
}), p);
|
|
522
583
|
});
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
const h = o;
|
|
536
|
-
return /* @__PURE__ */ d.createElement(h, s({
|
|
537
|
-
ref: t,
|
|
538
|
-
className: a
|
|
539
|
-
}, r), n);
|
|
584
|
+
I.displayName = "TypoBody";
|
|
585
|
+
I.propTypes = Ee;
|
|
586
|
+
var Fe = ["className", "children", "themeColor", "fixedPadding", "tag"], Z = Se, F = /* @__PURE__ */ k(function(e, r) {
|
|
587
|
+
var i = e.className, n = i === void 0 ? Z.className : i, d = e.children, p = d === void 0 ? Z.children : d, x = e.themeColor, o = x === void 0 ? Z.themeColor : x, u = e.fixedPadding, c = u === void 0 ? Z.fixedPadding : u, h = e.tag, l = h === void 0 ? Z.tag : h, a = O(e, Fe), s = B("mdc-typography", "lmnt mdc-typography--button", c && "typography--fixed-padding", o && "mdc-theme--".concat(E(o)), n), m = P();
|
|
588
|
+
C(r, function() {
|
|
589
|
+
return m.current;
|
|
590
|
+
}, []);
|
|
591
|
+
var f = l;
|
|
592
|
+
return /* @__PURE__ */ g.createElement(f, y({
|
|
593
|
+
ref: m,
|
|
594
|
+
className: s
|
|
595
|
+
}, a), p);
|
|
540
596
|
});
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
}
|
|
553
|
-
m(l, () => h.current, []);
|
|
554
|
-
const y = o;
|
|
555
|
-
return /* @__PURE__ */ d.createElement(y, s({
|
|
556
|
-
ref: h,
|
|
557
|
-
className: t
|
|
558
|
-
}, a), n);
|
|
597
|
+
F.displayName = "TypoButton";
|
|
598
|
+
F.propTypes = He;
|
|
599
|
+
var Je = ["className", "children", "themeColor", "tag", "bold", "fixedPadding"], w = we, Y = /* @__PURE__ */ k(function(e, r) {
|
|
600
|
+
var i = e.className, n = i === void 0 ? w.className : i, d = e.children, p = d === void 0 ? w.children : d, x = e.themeColor, o = x === void 0 ? w.themeColor : x, u = e.tag, c = u === void 0 ? w.tag : u, h = e.bold, l = h === void 0 ? w.bold : h, a = e.fixedPadding, s = a === void 0 ? w.fixedPadding : a, m = O(e, Je), f = B("mdc-typography", "lmnt mdc-typography--caption", s && "typography--fixed-padding", l && "mdc-typography--caption-bold", o && "mdc-theme--".concat(E(o)), n), b = P();
|
|
601
|
+
C(r, function() {
|
|
602
|
+
return b.current;
|
|
603
|
+
}, []);
|
|
604
|
+
var v = c;
|
|
605
|
+
return /* @__PURE__ */ g.createElement(v, y({
|
|
606
|
+
ref: b,
|
|
607
|
+
className: f
|
|
608
|
+
}, m), p);
|
|
559
609
|
});
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
}
|
|
572
|
-
m(l, () => h.current, []);
|
|
573
|
-
const y = r;
|
|
574
|
-
return /* @__PURE__ */ d.createElement(y, s({
|
|
575
|
-
ref: h,
|
|
576
|
-
className: t
|
|
577
|
-
}, a), n);
|
|
610
|
+
Y.displayName = "TypoCaption";
|
|
611
|
+
Y.propTypes = Ie;
|
|
612
|
+
var Ue = ["className", "children", "themeColor", "level", "tag", "fixedPadding"], A = je, L = /* @__PURE__ */ k(function(e, r) {
|
|
613
|
+
var i = e.className, n = i === void 0 ? A.className : i, d = e.children, p = d === void 0 ? A.children : d, x = e.themeColor, o = x === void 0 ? A.themeColor : x, u = e.level, c = u === void 0 ? A.level : u, h = e.tag, l = h === void 0 ? A.tag : h, a = e.fixedPadding, s = a === void 0 ? A.fixedPadding : a, m = O(e, Ue), f = P();
|
|
614
|
+
C(r, function() {
|
|
615
|
+
return f.current;
|
|
616
|
+
}, []);
|
|
617
|
+
var b = l, v = B("mdc-typography", "lmnt mdc-typography--headline".concat(c), s && "typography--fixed-padding", o && "mdc-theme--".concat(E(o)), s && "typography--fixed-padding", n);
|
|
618
|
+
return /* @__PURE__ */ g.createElement(b, y({
|
|
619
|
+
ref: f,
|
|
620
|
+
className: v
|
|
621
|
+
}, m), p);
|
|
578
622
|
});
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
return /* @__PURE__ */ d.createElement(y, s({
|
|
596
|
-
ref: h,
|
|
597
|
-
className: t
|
|
598
|
-
}, a), n);
|
|
623
|
+
L.displayName = "TypoDisplay";
|
|
624
|
+
L.propTypes = Ae;
|
|
625
|
+
var Ve = ["className", "children", "themeColor", "fixedPadding", "level", "tag"], j = $e, oe = /* @__PURE__ */ k(function(e, r) {
|
|
626
|
+
var i = e.className, n = i === void 0 ? j.className : i, d = e.children, p = d === void 0 ? j.children : d, x = e.themeColor, o = x === void 0 ? j.themeColor : x, u = e.fixedPadding, c = u === void 0 ? j.fixedPadding : u, h = e.level, l = h === void 0 ? j.level : h, a = e.tag, s = a === void 0 ? j.tag : a, m = O(e, Ve);
|
|
627
|
+
ue(function() {
|
|
628
|
+
return xe("TypoHeadline", "This component is being replaced with TypoDisplay and will be removed in a future version. Please use TypoDisplay instead.");
|
|
629
|
+
}, []);
|
|
630
|
+
var f = B("mdc-typography", "lmnt mdc-typography--headline".concat(l), c && "typography--fixed-padding", o && "mdc-theme--".concat(E(o)), n), b = P();
|
|
631
|
+
C(r, function() {
|
|
632
|
+
return b.current;
|
|
633
|
+
}, []);
|
|
634
|
+
var v = s;
|
|
635
|
+
return /* @__PURE__ */ g.createElement(v, y({
|
|
636
|
+
ref: b,
|
|
637
|
+
className: f
|
|
638
|
+
}, m), p);
|
|
599
639
|
});
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
const h = o;
|
|
613
|
-
return /* @__PURE__ */ d.createElement(h, s({
|
|
614
|
-
ref: t,
|
|
615
|
-
className: a
|
|
616
|
-
}, r), n);
|
|
640
|
+
oe.displayName = "TypoHeadline";
|
|
641
|
+
oe.propTypes = ze;
|
|
642
|
+
var qe = ["className", "children", "themeColor", "fixedPadding", "tag"], W = Ze, ae = /* @__PURE__ */ k(function(e, r) {
|
|
643
|
+
var i = e.className, n = i === void 0 ? W.className : i, d = e.children, p = d === void 0 ? W.children : d, x = e.themeColor, o = x === void 0 ? W.themeColor : x, u = e.fixedPadding, c = u === void 0 ? W.fixedPadding : u, h = e.tag, l = h === void 0 ? W.tag : h, a = O(e, qe), s = B("mdc-typography lmnt-theme-link", c && "typography--fixed-padding", o && "mdc-theme--".concat(E(o)), n), m = P();
|
|
644
|
+
C(r, function() {
|
|
645
|
+
return m.current;
|
|
646
|
+
}, []);
|
|
647
|
+
var f = l;
|
|
648
|
+
return /* @__PURE__ */ g.createElement(f, y({
|
|
649
|
+
ref: m,
|
|
650
|
+
className: s
|
|
651
|
+
}, a), p);
|
|
617
652
|
});
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
const h = o;
|
|
631
|
-
return /* @__PURE__ */ d.createElement(h, s({
|
|
632
|
-
ref: t,
|
|
633
|
-
className: a
|
|
634
|
-
}, r), n);
|
|
653
|
+
ae.displayName = "TypoLink";
|
|
654
|
+
ae.propTypes = Re;
|
|
655
|
+
var Ke = ["className", "children", "themeColor", "fixedPadding", "tag"], X = Xe, J = /* @__PURE__ */ k(function(e, r) {
|
|
656
|
+
var i = e.className, n = i === void 0 ? X.className : i, d = e.children, p = d === void 0 ? X.children : d, x = e.themeColor, o = x === void 0 ? X.themeColor : x, u = e.fixedPadding, c = u === void 0 ? X.fixedPadding : u, h = e.tag, l = h === void 0 ? X.tag : h, a = O(e, Ke), s = B("mdc-typography", "lmnt mdc-typography--overline", c && "typography--fixed-padding", o && "mdc-theme--".concat(E(o)), n), m = P();
|
|
657
|
+
C(r, function() {
|
|
658
|
+
return m.current;
|
|
659
|
+
}, []);
|
|
660
|
+
var f = l;
|
|
661
|
+
return /* @__PURE__ */ g.createElement(f, y({
|
|
662
|
+
ref: m,
|
|
663
|
+
className: s
|
|
664
|
+
}, a), p);
|
|
635
665
|
});
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
} = i, h = f("mdc-typography", `lmnt mdc-typography--subtitle${o || ""}`, a && `mdc-typography--subtitle${o}-bold`, c && `mdc-theme--${v(c)}`, g), y = u();
|
|
649
|
-
m(l, () => y.current, []);
|
|
650
|
-
const k = r;
|
|
651
|
-
return /* @__PURE__ */ d.createElement(k, s({
|
|
652
|
-
ref: y,
|
|
653
|
-
className: h
|
|
654
|
-
}, t), n);
|
|
666
|
+
J.displayName = "TypoOverline";
|
|
667
|
+
J.propTypes = We;
|
|
668
|
+
var Me = ["className", "children", "themeColor", "fixedPadding", "level", "tag", "bold"], S = _e, z = /* @__PURE__ */ k(function(e, r) {
|
|
669
|
+
var i = e.className, n = i === void 0 ? S.className : i, d = e.children, p = d === void 0 ? S.children : d, x = e.themeColor, o = x === void 0 ? S.themeColor : x, u = e.fixedPadding, c = u === void 0 ? S.fixedPadding : u, h = e.level, l = h === void 0 ? S.level : h, a = e.tag, s = a === void 0 ? S.tag : a, m = e.bold, f = m === void 0 ? S.bold : m, b = O(e, Me), v = B("mdc-typography", "lmnt mdc-typography--subtitle".concat(l || ""), c && "typography--fixed-padding", f && "mdc-typography--subtitle".concat(l || "", "-bold"), o && "mdc-theme--".concat(E(o)), n), D = P();
|
|
670
|
+
C(r, function() {
|
|
671
|
+
return D.current;
|
|
672
|
+
}, []);
|
|
673
|
+
var $ = s;
|
|
674
|
+
return /* @__PURE__ */ g.createElement($, y({
|
|
675
|
+
ref: D,
|
|
676
|
+
className: v
|
|
677
|
+
}, b), p);
|
|
655
678
|
});
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
themeColor: o,
|
|
665
|
-
tag: r,
|
|
666
|
-
...a
|
|
667
|
-
} = i, t = u();
|
|
668
|
-
switch (m(l, () => t.current, []), c) {
|
|
679
|
+
z.displayName = "TypoSubtitle";
|
|
680
|
+
z.propTypes = Ge;
|
|
681
|
+
var Qe = ["bold", "children", "type", "themeColor", "fixedPadding", "tag"], G = Le, re = /* @__PURE__ */ k(function(e, r) {
|
|
682
|
+
e.bold;
|
|
683
|
+
var i = e.children, n = i === void 0 ? G.children : i, d = e.type, p = d === void 0 ? G.type : d, x = e.themeColor, o = x === void 0 ? G.themeColor : x, u = e.fixedPadding, c = u === void 0 ? G.fixedPadding : u, h = e.tag, l = h === void 0 ? G.tag : h, a = O(e, Qe), s = P();
|
|
684
|
+
switch (C(r, function() {
|
|
685
|
+
return s.current;
|
|
686
|
+
}, []), p) {
|
|
669
687
|
case "body1":
|
|
670
|
-
return /* @__PURE__ */
|
|
688
|
+
return /* @__PURE__ */ g.createElement(I, y({
|
|
671
689
|
level: 1,
|
|
672
|
-
tag:
|
|
673
|
-
ref:
|
|
690
|
+
tag: l,
|
|
691
|
+
ref: s,
|
|
674
692
|
themeColor: o
|
|
675
693
|
}, a), n);
|
|
676
694
|
case "body1-bold":
|
|
677
|
-
return /* @__PURE__ */
|
|
695
|
+
return /* @__PURE__ */ g.createElement(I, y({
|
|
678
696
|
bold: !0,
|
|
679
697
|
level: 1,
|
|
680
|
-
tag:
|
|
681
|
-
ref:
|
|
698
|
+
tag: l,
|
|
699
|
+
ref: s,
|
|
700
|
+
fixedPadding: c,
|
|
682
701
|
themeColor: o
|
|
683
702
|
}, a), n);
|
|
684
703
|
case "body2-bold":
|
|
685
|
-
return /* @__PURE__ */
|
|
704
|
+
return /* @__PURE__ */ g.createElement(I, y({
|
|
686
705
|
bold: !0,
|
|
687
706
|
level: 2,
|
|
688
|
-
tag:
|
|
689
|
-
ref:
|
|
707
|
+
tag: l,
|
|
708
|
+
ref: s,
|
|
709
|
+
fixedPadding: c,
|
|
690
710
|
themeColor: o
|
|
691
711
|
}, a), n);
|
|
692
712
|
case "body2":
|
|
693
|
-
return /* @__PURE__ */
|
|
713
|
+
return /* @__PURE__ */ g.createElement(I, y({
|
|
694
714
|
level: 2,
|
|
695
|
-
tag:
|
|
696
|
-
ref:
|
|
715
|
+
tag: l,
|
|
716
|
+
ref: s,
|
|
717
|
+
fixedPadding: c,
|
|
697
718
|
themeColor: o
|
|
698
719
|
}, a), n);
|
|
699
720
|
case "button":
|
|
700
|
-
return /* @__PURE__ */
|
|
701
|
-
tag:
|
|
702
|
-
ref:
|
|
721
|
+
return /* @__PURE__ */ g.createElement(F, y({
|
|
722
|
+
tag: l,
|
|
723
|
+
ref: s,
|
|
724
|
+
fixedPadding: c,
|
|
703
725
|
themeColor: o
|
|
704
726
|
}, a), n);
|
|
705
727
|
case "caption":
|
|
706
|
-
return /* @__PURE__ */
|
|
707
|
-
tag:
|
|
708
|
-
ref:
|
|
728
|
+
return /* @__PURE__ */ g.createElement(Y, y({
|
|
729
|
+
tag: l,
|
|
730
|
+
ref: s,
|
|
731
|
+
fixedPadding: c,
|
|
709
732
|
themeColor: o
|
|
710
733
|
}, a), n);
|
|
711
734
|
case "caption-bold":
|
|
712
|
-
return /* @__PURE__ */
|
|
735
|
+
return /* @__PURE__ */ g.createElement(Y, y({
|
|
713
736
|
bold: !0,
|
|
714
|
-
tag:
|
|
715
|
-
ref:
|
|
737
|
+
tag: l,
|
|
738
|
+
ref: s,
|
|
739
|
+
fixedPadding: c,
|
|
716
740
|
themeColor: o
|
|
717
741
|
}, a), n);
|
|
718
742
|
case "display1":
|
|
719
743
|
case "headline1":
|
|
720
|
-
return /* @__PURE__ */
|
|
744
|
+
return /* @__PURE__ */ g.createElement(L, y({
|
|
721
745
|
level: 1,
|
|
722
|
-
tag:
|
|
723
|
-
ref:
|
|
746
|
+
tag: l,
|
|
747
|
+
ref: s,
|
|
748
|
+
fixedPadding: c,
|
|
724
749
|
themeColor: o
|
|
725
750
|
}, a), n);
|
|
726
751
|
case "display2":
|
|
727
752
|
case "headline2":
|
|
728
|
-
return /* @__PURE__ */
|
|
753
|
+
return /* @__PURE__ */ g.createElement(L, y({
|
|
729
754
|
level: 2,
|
|
730
|
-
tag:
|
|
731
|
-
ref:
|
|
755
|
+
tag: l,
|
|
756
|
+
ref: s,
|
|
757
|
+
fixedPadding: c,
|
|
732
758
|
themeColor: o
|
|
733
759
|
}, a), n);
|
|
734
760
|
case "display3":
|
|
735
761
|
case "headline3":
|
|
736
|
-
return /* @__PURE__ */
|
|
762
|
+
return /* @__PURE__ */ g.createElement(L, y({
|
|
737
763
|
level: 3,
|
|
738
|
-
tag:
|
|
739
|
-
ref:
|
|
764
|
+
tag: l,
|
|
765
|
+
ref: s,
|
|
766
|
+
fixedPadding: c,
|
|
740
767
|
themeColor: o
|
|
741
768
|
}, a), n);
|
|
742
769
|
case "display4":
|
|
743
770
|
case "headline4":
|
|
744
|
-
return /* @__PURE__ */
|
|
771
|
+
return /* @__PURE__ */ g.createElement(L, y({
|
|
745
772
|
level: 4,
|
|
746
|
-
tag:
|
|
747
|
-
ref:
|
|
773
|
+
tag: l,
|
|
774
|
+
ref: s,
|
|
775
|
+
fixedPadding: c,
|
|
748
776
|
themeColor: o
|
|
749
777
|
}, a), n);
|
|
750
778
|
case "display5":
|
|
751
779
|
case "headline5":
|
|
752
|
-
return /* @__PURE__ */
|
|
780
|
+
return /* @__PURE__ */ g.createElement(L, y({
|
|
753
781
|
level: 5,
|
|
754
|
-
tag:
|
|
755
|
-
ref:
|
|
782
|
+
tag: l,
|
|
783
|
+
ref: s,
|
|
784
|
+
fixedPadding: c,
|
|
756
785
|
themeColor: o
|
|
757
786
|
}, a), n);
|
|
758
787
|
case "display6":
|
|
759
788
|
case "headline6":
|
|
760
|
-
return /* @__PURE__ */
|
|
789
|
+
return /* @__PURE__ */ g.createElement(L, y({
|
|
761
790
|
level: 6,
|
|
762
|
-
tag:
|
|
763
|
-
ref:
|
|
791
|
+
tag: l,
|
|
792
|
+
ref: s,
|
|
793
|
+
fixedPadding: c,
|
|
764
794
|
themeColor: o
|
|
765
795
|
}, a), n);
|
|
766
796
|
case "overline":
|
|
767
|
-
return /* @__PURE__ */
|
|
768
|
-
tag:
|
|
769
|
-
ref:
|
|
797
|
+
return /* @__PURE__ */ g.createElement(J, y({
|
|
798
|
+
tag: l,
|
|
799
|
+
ref: s,
|
|
800
|
+
fixedPadding: c,
|
|
770
801
|
themeColor: o
|
|
771
802
|
}, a), n);
|
|
772
803
|
case "subtitle1":
|
|
773
|
-
return /* @__PURE__ */
|
|
774
|
-
tag:
|
|
775
|
-
ref:
|
|
804
|
+
return /* @__PURE__ */ g.createElement(z, y({
|
|
805
|
+
tag: l,
|
|
806
|
+
ref: s,
|
|
807
|
+
fixedPadding: c,
|
|
776
808
|
themeColor: o
|
|
777
809
|
}, a, {
|
|
778
810
|
level: 1
|
|
779
811
|
}), n);
|
|
780
812
|
case "subtitle1-bold":
|
|
781
|
-
return /* @__PURE__ */
|
|
813
|
+
return /* @__PURE__ */ g.createElement(z, y({
|
|
782
814
|
bold: !0,
|
|
783
|
-
tag:
|
|
784
|
-
ref:
|
|
815
|
+
tag: l,
|
|
816
|
+
ref: s,
|
|
817
|
+
fixedPadding: c,
|
|
785
818
|
themeColor: o
|
|
786
819
|
}, a, {
|
|
787
820
|
level: 1
|
|
788
821
|
}), n);
|
|
789
822
|
case "subtitle2-bold":
|
|
790
|
-
return /* @__PURE__ */
|
|
823
|
+
return /* @__PURE__ */ g.createElement(z, y({
|
|
791
824
|
bold: !0,
|
|
792
|
-
tag:
|
|
793
|
-
ref:
|
|
825
|
+
tag: l,
|
|
826
|
+
ref: s,
|
|
827
|
+
fixedPadding: c,
|
|
794
828
|
themeColor: o
|
|
795
829
|
}, a, {
|
|
796
830
|
level: 2
|
|
797
831
|
}), n);
|
|
798
832
|
case "subtitle2":
|
|
799
|
-
return /* @__PURE__ */
|
|
833
|
+
return /* @__PURE__ */ g.createElement(z, y({
|
|
800
834
|
level: 2,
|
|
801
|
-
tag:
|
|
802
|
-
ref:
|
|
835
|
+
tag: l,
|
|
836
|
+
ref: s,
|
|
837
|
+
fixedPadding: c,
|
|
803
838
|
themeColor: o
|
|
804
839
|
}, a), n);
|
|
805
840
|
default:
|
|
806
|
-
return /* @__PURE__ */
|
|
807
|
-
tag:
|
|
808
|
-
ref:
|
|
841
|
+
return /* @__PURE__ */ g.createElement(I, y({
|
|
842
|
+
tag: l,
|
|
843
|
+
ref: s,
|
|
844
|
+
fixedPadding: c,
|
|
809
845
|
themeColor: o
|
|
810
846
|
}, a, {
|
|
811
847
|
level: 1
|
|
812
848
|
}), n);
|
|
813
849
|
}
|
|
814
850
|
});
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
$.defaultProps = V;
|
|
851
|
+
re.displayName = "Typography";
|
|
852
|
+
re.propTypes = Be;
|
|
818
853
|
export {
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
854
|
+
I as D,
|
|
855
|
+
z as I,
|
|
856
|
+
re as K,
|
|
857
|
+
L as N,
|
|
858
|
+
ne as O,
|
|
859
|
+
Y as z
|
|
825
860
|
};
|