@hortiview/default-components 1.4.4 → 1.5.1
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 +51 -0
- package/dist/components/DefaultAllowedComponent/DefaultAllowedComponent.d.ts +11 -0
- package/dist/components/DefaultAllowedComponent/DefaultAllowedComponent.js +11 -0
- package/dist/components/DefaultFormNumber/DefaultFormNumber.js +12 -1496
- package/dist/components/DefaultFormSelect/DefaultFormSelect.js +9 -178
- package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +6 -6
- package/dist/components/GenericTable/GenericTable.js +12 -18731
- package/dist/components/HealthChecks/DataBaseHealthCheck.js +2 -2
- package/dist/components/HealthChecks/DefaultHealthCheck.js +4 -4
- package/dist/components/HealthChecks/IotServiceHealthCheck.js +5 -5
- package/dist/components/HealthChecks/PlatformHealthCheck.js +4 -4
- package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +9 -9
- package/dist/components/InternationalizationWrapper/InternationalizationWrapper.js +4 -4
- package/dist/components/OfflineView/OfflineView.js +9 -9
- package/dist/i18n.js +1696 -5
- package/dist/{i18nInstance-D_96ADqd.js → i18nInstance-CYqpK5II.js} +2 -2
- package/dist/locales/en-US.js +16 -14
- package/dist/locales/en-US.json.d.ts +3 -0
- package/dist/locales/es-MX.js +16 -14
- package/dist/locales/es-MX.json.d.ts +3 -0
- package/dist/locales/tr-TR.js +17 -15
- package/dist/locales/tr-TR.json.d.ts +3 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +24 -22
- package/dist/useTranslation-DGtUf8nl.js +101 -0
- package/package.json +3 -32
- package/dist/Iconify-aUog1Oez.js +0 -83
- package/dist/InfoCard-BxjAQiFE.js +0 -58
- package/dist/LoadingSpinner-DBMjIfY1.js +0 -502
- package/dist/OfflineView-NUM9WE0F-BI9rnget.js +0 -46
- package/dist/assets/DefaultFormNumber.css +0 -1
- package/dist/assets/DefaultFormSelect.css +0 -1
- package/dist/assets/GenericTable.css +0 -1
- package/dist/assets/Iconify.css +0 -1
- package/dist/assets/InfoCard.css +0 -1
- package/dist/assets/LoadingSpinner.css +0 -1
- package/dist/assets/OfflineView-NUM9WE0F.css +0 -1
- package/dist/component-DsB0poTj-DgsYK0_R.js +0 -570
- package/dist/correct-is-regexp-logic-BBlm4UpN-CvII841s.js +0 -493
- package/dist/i18n-CCQpJsQK.js +0 -1707
- package/dist/index.es-B0QNuIUR-Bte5aF5M.js +0 -360
- package/dist/index.es-CIsLNz4j-ZEEcPmTs.js +0 -79
- package/dist/index.es-CvHDFF6V-CjZvA03R.js +0 -2004
- package/dist/index.es-DiONypF4-eT98Y3u_.js +0 -844
- package/dist/index.es-DnEIFMjv-DuuORGfo.js +0 -1044
- package/dist/index.es-NEYPxnlS-C8xQv2De.js +0 -860
- package/dist/index.es-fV9oWpEf-BXuhoGtE.js +0 -14374
- package/dist/isTypedArray-Dw_IY7Zq-wj3MphCb.js +0 -210
- package/dist/slicedToArray-h0Nnkd_P-C4SkVJMK.js +0 -432
- package/dist/useHelperText-B7OMZXvE.js +0 -391
- package/dist/useTranslation-B_lNCuLm.js +0 -5343
|
@@ -1,860 +0,0 @@
|
|
|
1
|
-
import { r as O, h as y, e as B, Z as U, c as de, p as V, f as le, v as ce, s as ee, X as se, a as Y, b as ge, t, q as he, l as te, ae as T, an as xe } from "./useTranslation-B_lNCuLm.js";
|
|
2
|
-
import g, { forwardRef as k, useRef as P, useImperativeHandle as C, useEffect as ue } from "react";
|
|
3
|
-
var ye = {
|
|
4
|
-
/**
|
|
5
|
-
* Children to be rendered. Expects multiple components of a similar type.
|
|
6
|
-
*
|
|
7
|
-
* Defaults to **null**.
|
|
8
|
-
*/
|
|
9
|
-
children: t.node,
|
|
10
|
-
/**
|
|
11
|
-
* The grouping direction.
|
|
12
|
-
*
|
|
13
|
-
* Defaults to **'horizontal'**.
|
|
14
|
-
*/
|
|
15
|
-
direction: t.oneOf(["horizontal", "vertical", "horizontal-reverse", "vertical-reverse"]),
|
|
16
|
-
/**
|
|
17
|
-
* Sets the Group width to be 100%.
|
|
18
|
-
*
|
|
19
|
-
* Defaults to **false**.
|
|
20
|
-
*/
|
|
21
|
-
fullWidth: t.bool,
|
|
22
|
-
/**
|
|
23
|
-
* How much spacing between items. Dense is 8p, standard is 16px and airy is 24px.
|
|
24
|
-
*
|
|
25
|
-
* Defaults to **'standard'**.
|
|
26
|
-
*/
|
|
27
|
-
gap: t.oneOf(["dense", "standard", "airy", "none"]),
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated _Renamed for improved clarity. See `gap`._
|
|
30
|
-
*
|
|
31
|
-
* How much spacing between items. Dense is 8p, standard is 16px and airy is 24px.
|
|
32
|
-
*
|
|
33
|
-
* Defaults to **undefined**.
|
|
34
|
-
*/
|
|
35
|
-
padding: he(t.oneOf(["dense", "standard", "airy", "none"]), "Group", "Renamed for improved clarity. See `gap`."),
|
|
36
|
-
/**
|
|
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
|
-
*
|
|
39
|
-
* Defaults to **'start'**.
|
|
40
|
-
*/
|
|
41
|
-
primaryAlign: t.oneOf(["start", "end", "center", "space-evenly", "space-between", "space-around"]),
|
|
42
|
-
/**
|
|
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
|
-
*
|
|
45
|
-
* Defaults to **'baseline'**.
|
|
46
|
-
*/
|
|
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 = {
|
|
55
|
-
children: null,
|
|
56
|
-
direction: "horizontal",
|
|
57
|
-
fullWidth: !1,
|
|
58
|
-
gap: "standard",
|
|
59
|
-
padding: void 0,
|
|
60
|
-
primaryAlign: "start",
|
|
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 (Y) {
|
|
67
|
-
var n = Y(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 ? U(i = M(Object(d), !0)).call(i, function(p) {
|
|
78
|
-
de(e, p, d[p]);
|
|
79
|
-
}) : V ? le(e, V(d)) : U(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) {
|
|
87
|
-
case "end":
|
|
88
|
-
return "flex-end";
|
|
89
|
-
case "start":
|
|
90
|
-
return "flex-start";
|
|
91
|
-
case "center":
|
|
92
|
-
return "center";
|
|
93
|
-
case "stretch":
|
|
94
|
-
return "stretch";
|
|
95
|
-
case "baseline":
|
|
96
|
-
default:
|
|
97
|
-
return "baseline";
|
|
98
|
-
}
|
|
99
|
-
}, be = function(e) {
|
|
100
|
-
switch (e) {
|
|
101
|
-
case "end":
|
|
102
|
-
return "flex-end";
|
|
103
|
-
case "center":
|
|
104
|
-
return "center";
|
|
105
|
-
case "space-evenly":
|
|
106
|
-
return "space-evenly";
|
|
107
|
-
case "space-between":
|
|
108
|
-
return "space-between";
|
|
109
|
-
case "space-around":
|
|
110
|
-
return "space-around";
|
|
111
|
-
case "start":
|
|
112
|
-
default:
|
|
113
|
-
return "flex-start";
|
|
114
|
-
}
|
|
115
|
-
}, ve = function(e) {
|
|
116
|
-
switch (e) {
|
|
117
|
-
case "dense":
|
|
118
|
-
return "8px";
|
|
119
|
-
case "airy":
|
|
120
|
-
return "24px";
|
|
121
|
-
case "standard":
|
|
122
|
-
return "16px";
|
|
123
|
-
case "none":
|
|
124
|
-
default:
|
|
125
|
-
return "0px";
|
|
126
|
-
}
|
|
127
|
-
}, Oe = function(e) {
|
|
128
|
-
switch (e) {
|
|
129
|
-
case "horizontal":
|
|
130
|
-
return "row";
|
|
131
|
-
case "vertical":
|
|
132
|
-
return "column";
|
|
133
|
-
case "horizontal-reverse":
|
|
134
|
-
return "row-reverse";
|
|
135
|
-
case "vertical-reverse":
|
|
136
|
-
return "column-reverse";
|
|
137
|
-
default:
|
|
138
|
-
return "row";
|
|
139
|
-
}
|
|
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, z = D === void 0 ? N.style : D, ie = O(e, me), R = {
|
|
142
|
-
display: "flex",
|
|
143
|
-
flexDirection: Oe(o),
|
|
144
|
-
justifyContent: be(f),
|
|
145
|
-
alignItems: fe(v),
|
|
146
|
-
gap: ve(s || l)
|
|
147
|
-
};
|
|
148
|
-
c && (R = _(_({}, R), {}, {
|
|
149
|
-
width: "100%"
|
|
150
|
-
})), R = _(_({}, R), z);
|
|
151
|
-
var K = P();
|
|
152
|
-
return C(r, function() {
|
|
153
|
-
return K.current;
|
|
154
|
-
}, []), /* @__PURE__ */ g.createElement("div", y({
|
|
155
|
-
ref: K,
|
|
156
|
-
className: B("lmnt", "lmnt-group", p),
|
|
157
|
-
style: R
|
|
158
|
-
}, ie), n);
|
|
159
|
-
});
|
|
160
|
-
ne.displayName = "Group";
|
|
161
|
-
ne.propTypes = ye;
|
|
162
|
-
function ke(e) {
|
|
163
|
-
return e.toLowerCase();
|
|
164
|
-
}
|
|
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);
|
|
173
|
-
}
|
|
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);
|
|
178
|
-
}
|
|
179
|
-
function Te(e, r) {
|
|
180
|
-
return r === void 0 && (r = {}), Ne(e, te({ delimiter: "." }, r));
|
|
181
|
-
}
|
|
182
|
-
function E(e, r) {
|
|
183
|
-
return r === void 0 && (r = {}), Te(e, te({ delimiter: "-" }, r));
|
|
184
|
-
}
|
|
185
|
-
var Be = {
|
|
186
|
-
/**
|
|
187
|
-
* If true the typography will be bold. Applies to 1body, body2, caption, subtitle1, subtitle2
|
|
188
|
-
*
|
|
189
|
-
* Defaults to **false**.
|
|
190
|
-
*/
|
|
191
|
-
bold: t.bool,
|
|
192
|
-
/**
|
|
193
|
-
* Expects a string, accepts any valid markup.
|
|
194
|
-
*
|
|
195
|
-
* Defaults to **null**.
|
|
196
|
-
*/
|
|
197
|
-
children: t.node,
|
|
198
|
-
/**
|
|
199
|
-
* The css class name to be passed through to the component markup.
|
|
200
|
-
*
|
|
201
|
-
* Defaults to **undefined**.
|
|
202
|
-
*/
|
|
203
|
-
className: t.string,
|
|
204
|
-
/**
|
|
205
|
-
* Forces consistent padding when using different html tags.
|
|
206
|
-
*
|
|
207
|
-
* Defaults to **false**.
|
|
208
|
-
*/
|
|
209
|
-
fixedPadding: t.bool,
|
|
210
|
-
/**
|
|
211
|
-
* The DOM element to display the typography.
|
|
212
|
-
*
|
|
213
|
-
* Defaults to **'span'**.
|
|
214
|
-
*/
|
|
215
|
-
tag: t.oneOfType([t.string, t.elementType, t.instanceOf(g.Component)]),
|
|
216
|
-
/**
|
|
217
|
-
* Sets theme color for the typography. Does not apply to Link.
|
|
218
|
-
*
|
|
219
|
-
* Defaults to **undefined**.
|
|
220
|
-
*/
|
|
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'."),
|
|
222
|
-
/**
|
|
223
|
-
* Sets typography class for the element.
|
|
224
|
-
*
|
|
225
|
-
* Defaults to **'body1'**.
|
|
226
|
-
*/
|
|
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 = {
|
|
229
|
-
children: null,
|
|
230
|
-
fixedPadding: !1,
|
|
231
|
-
tag: "span",
|
|
232
|
-
themeColor: void 0,
|
|
233
|
-
type: "body1"
|
|
234
|
-
}, Ee = {
|
|
235
|
-
/**
|
|
236
|
-
* If true the typography will be bold.
|
|
237
|
-
*
|
|
238
|
-
* Defaults to **false**.
|
|
239
|
-
*/
|
|
240
|
-
bold: t.bool,
|
|
241
|
-
/**
|
|
242
|
-
* Expects a string, accepts any valid markup.
|
|
243
|
-
*
|
|
244
|
-
* Defaults to **null**.
|
|
245
|
-
*/
|
|
246
|
-
children: t.node,
|
|
247
|
-
/**
|
|
248
|
-
* The css class name to be passed through to the component markup.
|
|
249
|
-
*
|
|
250
|
-
* Defaults to **undefined**.
|
|
251
|
-
*/
|
|
252
|
-
className: t.string,
|
|
253
|
-
/**
|
|
254
|
-
* Forces consistent padding when using different html tags.
|
|
255
|
-
*
|
|
256
|
-
* Defaults to **false**.
|
|
257
|
-
*/
|
|
258
|
-
fixedPadding: t.bool,
|
|
259
|
-
/**
|
|
260
|
-
* Sets font properties for body. Acceptable values range from 1 - 2. Higher levels produce smaller type.
|
|
261
|
-
*
|
|
262
|
-
* Defaults to **1**.
|
|
263
|
-
*/
|
|
264
|
-
level: t.oneOf([1, 2]),
|
|
265
|
-
/**
|
|
266
|
-
* The DOM element to display the typography.
|
|
267
|
-
*
|
|
268
|
-
* Defaults to **'span'**.
|
|
269
|
-
*/
|
|
270
|
-
tag: t.oneOfType([t.string, t.elementType, t.instanceOf(g.Component)]),
|
|
271
|
-
/**
|
|
272
|
-
* Sets theme color for the typography.
|
|
273
|
-
*
|
|
274
|
-
* Defaults to **undefined**.
|
|
275
|
-
*/
|
|
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 = {
|
|
278
|
-
bold: !1,
|
|
279
|
-
children: null,
|
|
280
|
-
className: void 0,
|
|
281
|
-
fixedPadding: !1,
|
|
282
|
-
level: 1,
|
|
283
|
-
tag: "span",
|
|
284
|
-
themeColor: void 0
|
|
285
|
-
}, He = {
|
|
286
|
-
/**
|
|
287
|
-
* Expects a string, accepts any valid markup.
|
|
288
|
-
*
|
|
289
|
-
* Defaults to **null**.
|
|
290
|
-
*/
|
|
291
|
-
children: t.node,
|
|
292
|
-
/**
|
|
293
|
-
* The css class name to be passed through to the component markup.
|
|
294
|
-
*
|
|
295
|
-
* Defaults to **undefined**.
|
|
296
|
-
*/
|
|
297
|
-
className: t.string,
|
|
298
|
-
/**
|
|
299
|
-
* Forces consistent padding when using different html tags.
|
|
300
|
-
*
|
|
301
|
-
* Defaults to **false**.
|
|
302
|
-
*/
|
|
303
|
-
fixedPadding: t.bool,
|
|
304
|
-
/**
|
|
305
|
-
* The DOM element to display the typography.
|
|
306
|
-
*
|
|
307
|
-
* Defaults to **'span'**.
|
|
308
|
-
*/
|
|
309
|
-
tag: t.oneOfType([t.string, t.elementType, t.instanceOf(g.Component)]),
|
|
310
|
-
/**
|
|
311
|
-
* Sets theme color for the typography.
|
|
312
|
-
*
|
|
313
|
-
* Defaults to **undefined**.
|
|
314
|
-
*/
|
|
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 = {
|
|
317
|
-
children: null,
|
|
318
|
-
className: void 0,
|
|
319
|
-
fixedPadding: !1,
|
|
320
|
-
tag: "span",
|
|
321
|
-
themeColor: void 0
|
|
322
|
-
}, Ie = {
|
|
323
|
-
/**
|
|
324
|
-
* If true the typography will be bold.
|
|
325
|
-
*
|
|
326
|
-
* Defaults to **false**.
|
|
327
|
-
*/
|
|
328
|
-
bold: t.bool,
|
|
329
|
-
/**
|
|
330
|
-
* Expects a string, accepts any valid markup.
|
|
331
|
-
*
|
|
332
|
-
* Defaults to **null**.
|
|
333
|
-
*/
|
|
334
|
-
children: t.node,
|
|
335
|
-
/**
|
|
336
|
-
* The css class name to be passed through to the component markup.
|
|
337
|
-
*
|
|
338
|
-
* Defaults to **undefined**.
|
|
339
|
-
*/
|
|
340
|
-
className: t.string,
|
|
341
|
-
/**
|
|
342
|
-
* Forces consistent padding when using different html tags.
|
|
343
|
-
*
|
|
344
|
-
* Defaults to **false**.
|
|
345
|
-
*/
|
|
346
|
-
fixedPadding: t.bool,
|
|
347
|
-
/**
|
|
348
|
-
* The DOM element to display the typography.
|
|
349
|
-
*
|
|
350
|
-
* Defaults to **'span'**.
|
|
351
|
-
*/
|
|
352
|
-
tag: t.oneOfType([t.string, t.elementType, t.instanceOf(g.Component)]),
|
|
353
|
-
/**
|
|
354
|
-
* Sets theme color for the typography.
|
|
355
|
-
*
|
|
356
|
-
* Defaults to **undefined**.
|
|
357
|
-
*/
|
|
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 = {
|
|
360
|
-
bold: !1,
|
|
361
|
-
children: null,
|
|
362
|
-
className: void 0,
|
|
363
|
-
fixedPadding: !1,
|
|
364
|
-
tag: "span",
|
|
365
|
-
themeColor: void 0
|
|
366
|
-
}, Ae = {
|
|
367
|
-
/**
|
|
368
|
-
* Expects a string, accepts any valid markup.
|
|
369
|
-
*
|
|
370
|
-
* Defaults to **null**.
|
|
371
|
-
*/
|
|
372
|
-
children: t.node,
|
|
373
|
-
/**
|
|
374
|
-
* The css class name to be passed through to the component markup.
|
|
375
|
-
*
|
|
376
|
-
* Defaults to **undefined**.
|
|
377
|
-
*/
|
|
378
|
-
className: t.string,
|
|
379
|
-
/**
|
|
380
|
-
* Forces consistent padding when using different html tags.
|
|
381
|
-
*
|
|
382
|
-
* Defaults to **false**.
|
|
383
|
-
*/
|
|
384
|
-
fixedPadding: t.bool,
|
|
385
|
-
/**
|
|
386
|
-
* Sets font properties for body. Acceptable values range from 1 to 6. Higher levels produce smaller type.
|
|
387
|
-
*
|
|
388
|
-
* Defaults to **1**.
|
|
389
|
-
*/
|
|
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"])]),
|
|
391
|
-
/**
|
|
392
|
-
* The DOM element to display the typography.
|
|
393
|
-
*
|
|
394
|
-
* Defaults to **'span'**.
|
|
395
|
-
*/
|
|
396
|
-
tag: t.oneOfType([t.string, t.elementType, t.instanceOf(g.Component)]),
|
|
397
|
-
/**
|
|
398
|
-
* Sets theme color for the typography.
|
|
399
|
-
*
|
|
400
|
-
* Defaults to **undefined**.
|
|
401
|
-
*/
|
|
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
|
-
}, $e = {
|
|
404
|
-
children: null,
|
|
405
|
-
className: void 0,
|
|
406
|
-
fixedPadding: !1,
|
|
407
|
-
level: 1,
|
|
408
|
-
tag: "span",
|
|
409
|
-
themeColor: void 0
|
|
410
|
-
}, je = {
|
|
411
|
-
/**
|
|
412
|
-
* Expects a string, accepts any valid markup.
|
|
413
|
-
*
|
|
414
|
-
* Defaults to **null**.
|
|
415
|
-
*/
|
|
416
|
-
children: t.node,
|
|
417
|
-
/**
|
|
418
|
-
* The css class name to be passed through to the component markup.
|
|
419
|
-
*
|
|
420
|
-
* Defaults to **undefined**.
|
|
421
|
-
*/
|
|
422
|
-
className: t.string,
|
|
423
|
-
/**
|
|
424
|
-
* Forces consistent padding when using different html tags.
|
|
425
|
-
*
|
|
426
|
-
* Defaults to **false**.
|
|
427
|
-
*/
|
|
428
|
-
fixedPadding: t.bool,
|
|
429
|
-
/**
|
|
430
|
-
* Sets font properties for body. Acceptable values range from 1 to 6. Higher levels produce smaller type.
|
|
431
|
-
*
|
|
432
|
-
* Defaults to **1**.
|
|
433
|
-
*/
|
|
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"])]),
|
|
435
|
-
/**
|
|
436
|
-
* The DOM element to display the typography.
|
|
437
|
-
*
|
|
438
|
-
* Defaults to **'span'**.
|
|
439
|
-
*/
|
|
440
|
-
tag: t.oneOfType([t.string, t.elementType, t.instanceOf(g.Component)]),
|
|
441
|
-
/**
|
|
442
|
-
* Sets theme color for the typography.
|
|
443
|
-
*
|
|
444
|
-
* Defaults to **undefined**.
|
|
445
|
-
*/
|
|
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
|
-
}, ze = {
|
|
448
|
-
children: null,
|
|
449
|
-
className: void 0,
|
|
450
|
-
fixedPadding: !1,
|
|
451
|
-
level: 1,
|
|
452
|
-
tag: "span",
|
|
453
|
-
themeColor: void 0
|
|
454
|
-
}, Re = {
|
|
455
|
-
/**
|
|
456
|
-
* Expects a string, accepts any valid markup.
|
|
457
|
-
*
|
|
458
|
-
* Defaults to **null**.
|
|
459
|
-
*/
|
|
460
|
-
children: t.node,
|
|
461
|
-
/**
|
|
462
|
-
* The css class name to be passed through to the component markup.
|
|
463
|
-
*
|
|
464
|
-
* Defaults to **undefined**.
|
|
465
|
-
*/
|
|
466
|
-
className: t.string,
|
|
467
|
-
/**
|
|
468
|
-
* Forces consistent padding when using different html tags.
|
|
469
|
-
*
|
|
470
|
-
* Defaults to **false**.
|
|
471
|
-
*/
|
|
472
|
-
fixedPadding: t.bool,
|
|
473
|
-
/**
|
|
474
|
-
* The DOM element to display the typography.
|
|
475
|
-
*
|
|
476
|
-
* Defaults to **'a'**.
|
|
477
|
-
*/
|
|
478
|
-
tag: t.oneOfType([t.string, t.elementType, t.instanceOf(g.Component)])
|
|
479
|
-
}, Ze = {
|
|
480
|
-
children: null,
|
|
481
|
-
className: void 0,
|
|
482
|
-
fixedPadding: !1,
|
|
483
|
-
tag: "a"
|
|
484
|
-
}, We = {
|
|
485
|
-
/**
|
|
486
|
-
* Expects a string, accepts any valid markup.
|
|
487
|
-
*
|
|
488
|
-
* Defaults to **null**.
|
|
489
|
-
*/
|
|
490
|
-
children: t.node,
|
|
491
|
-
/**
|
|
492
|
-
* The css class name to be passed through to the component markup.
|
|
493
|
-
*
|
|
494
|
-
* Defaults to **undefined**.
|
|
495
|
-
*/
|
|
496
|
-
className: t.string,
|
|
497
|
-
/**
|
|
498
|
-
* Forces consistent padding when using different html tags.
|
|
499
|
-
*
|
|
500
|
-
* Defaults to **false**.
|
|
501
|
-
*/
|
|
502
|
-
fixedPadding: t.bool,
|
|
503
|
-
/**
|
|
504
|
-
* The DOM element to display the typography.
|
|
505
|
-
*
|
|
506
|
-
* Defaults to **'span'**.
|
|
507
|
-
*/
|
|
508
|
-
tag: t.oneOfType([t.string, t.elementType, t.instanceOf(g.Component)]),
|
|
509
|
-
/**
|
|
510
|
-
* Sets theme color for the typography.
|
|
511
|
-
*
|
|
512
|
-
* Defaults to **undefined**.
|
|
513
|
-
*/
|
|
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 = {
|
|
516
|
-
children: null,
|
|
517
|
-
className: void 0,
|
|
518
|
-
fixedPadding: !1,
|
|
519
|
-
tag: "span",
|
|
520
|
-
themeColor: void 0
|
|
521
|
-
}, Ge = {
|
|
522
|
-
/**
|
|
523
|
-
* If true the typography will be bold.
|
|
524
|
-
*
|
|
525
|
-
* Defaults to **false**.
|
|
526
|
-
*/
|
|
527
|
-
bold: t.bool,
|
|
528
|
-
/**
|
|
529
|
-
* Expects a string, accepts any valid markup.
|
|
530
|
-
*
|
|
531
|
-
* Defaults to **null**.
|
|
532
|
-
*/
|
|
533
|
-
children: t.node,
|
|
534
|
-
/**
|
|
535
|
-
* The css class name to be passed through to the component markup.
|
|
536
|
-
*
|
|
537
|
-
* Defaults to **undefined**.
|
|
538
|
-
*/
|
|
539
|
-
className: t.string,
|
|
540
|
-
/**
|
|
541
|
-
* Forces consistent padding when using different html tags.
|
|
542
|
-
*
|
|
543
|
-
* Defaults to **false**.
|
|
544
|
-
*/
|
|
545
|
-
fixedPadding: t.bool,
|
|
546
|
-
/**
|
|
547
|
-
* Sets font properties for body.
|
|
548
|
-
*
|
|
549
|
-
* Defaults to **1**.
|
|
550
|
-
*/
|
|
551
|
-
level: t.oneOf([1, 2]),
|
|
552
|
-
/**
|
|
553
|
-
* The DOM element to display the typography.
|
|
554
|
-
*
|
|
555
|
-
* Defaults to **'span'**.
|
|
556
|
-
*/
|
|
557
|
-
tag: t.oneOfType([t.string, t.elementType, t.instanceOf(g.Component)]),
|
|
558
|
-
/**
|
|
559
|
-
* Sets theme color for the typography.
|
|
560
|
-
*
|
|
561
|
-
* Defaults to **undefined**.
|
|
562
|
-
*/
|
|
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 = {
|
|
565
|
-
bold: !1,
|
|
566
|
-
children: null,
|
|
567
|
-
className: void 0,
|
|
568
|
-
fixedPadding: !1,
|
|
569
|
-
level: 1,
|
|
570
|
-
tag: "span",
|
|
571
|
-
themeColor: void 0
|
|
572
|
-
}, qe = ["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, qe), v = P();
|
|
574
|
-
C(r, function() {
|
|
575
|
-
return v.current;
|
|
576
|
-
}, []);
|
|
577
|
-
var D = s, z = 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: z
|
|
580
|
-
}, b, {
|
|
581
|
-
ref: v
|
|
582
|
-
}), p);
|
|
583
|
-
});
|
|
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);
|
|
596
|
-
});
|
|
597
|
-
F.displayName = "TypoButton";
|
|
598
|
-
F.propTypes = He;
|
|
599
|
-
var Je = ["className", "children", "themeColor", "tag", "bold", "fixedPadding"], w = we, q = /* @__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);
|
|
609
|
-
});
|
|
610
|
-
q.displayName = "TypoCaption";
|
|
611
|
-
q.propTypes = Ie;
|
|
612
|
-
var Ke = ["className", "children", "themeColor", "level", "tag", "fixedPadding"], A = $e, 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, Ke), 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);
|
|
622
|
-
});
|
|
623
|
-
L.displayName = "TypoDisplay";
|
|
624
|
-
L.propTypes = Ae;
|
|
625
|
-
var Ue = ["className", "children", "themeColor", "fixedPadding", "level", "tag"], $ = ze, oe = /* @__PURE__ */ k(function(e, r) {
|
|
626
|
-
var i = e.className, n = i === void 0 ? $.className : i, d = e.children, p = d === void 0 ? $.children : d, x = e.themeColor, o = x === void 0 ? $.themeColor : x, u = e.fixedPadding, c = u === void 0 ? $.fixedPadding : u, h = e.level, l = h === void 0 ? $.level : h, a = e.tag, s = a === void 0 ? $.tag : a, m = O(e, Ue);
|
|
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);
|
|
639
|
-
});
|
|
640
|
-
oe.displayName = "TypoHeadline";
|
|
641
|
-
oe.propTypes = je;
|
|
642
|
-
var Ve = ["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, Ve), 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);
|
|
652
|
-
});
|
|
653
|
-
ae.displayName = "TypoLink";
|
|
654
|
-
ae.propTypes = Re;
|
|
655
|
-
var Ye = ["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, Ye), 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);
|
|
665
|
-
});
|
|
666
|
-
J.displayName = "TypoOverline";
|
|
667
|
-
J.propTypes = We;
|
|
668
|
-
var Me = ["className", "children", "themeColor", "fixedPadding", "level", "tag", "bold"], S = _e, j = /* @__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 z = s;
|
|
674
|
-
return /* @__PURE__ */ g.createElement(z, y({
|
|
675
|
-
ref: D,
|
|
676
|
-
className: v
|
|
677
|
-
}, b), p);
|
|
678
|
-
});
|
|
679
|
-
j.displayName = "TypoSubtitle";
|
|
680
|
-
j.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) {
|
|
687
|
-
case "body1":
|
|
688
|
-
return /* @__PURE__ */ g.createElement(I, y({
|
|
689
|
-
level: 1,
|
|
690
|
-
tag: l,
|
|
691
|
-
ref: s,
|
|
692
|
-
themeColor: o
|
|
693
|
-
}, a), n);
|
|
694
|
-
case "body1-bold":
|
|
695
|
-
return /* @__PURE__ */ g.createElement(I, y({
|
|
696
|
-
bold: !0,
|
|
697
|
-
level: 1,
|
|
698
|
-
tag: l,
|
|
699
|
-
ref: s,
|
|
700
|
-
fixedPadding: c,
|
|
701
|
-
themeColor: o
|
|
702
|
-
}, a), n);
|
|
703
|
-
case "body2-bold":
|
|
704
|
-
return /* @__PURE__ */ g.createElement(I, y({
|
|
705
|
-
bold: !0,
|
|
706
|
-
level: 2,
|
|
707
|
-
tag: l,
|
|
708
|
-
ref: s,
|
|
709
|
-
fixedPadding: c,
|
|
710
|
-
themeColor: o
|
|
711
|
-
}, a), n);
|
|
712
|
-
case "body2":
|
|
713
|
-
return /* @__PURE__ */ g.createElement(I, y({
|
|
714
|
-
level: 2,
|
|
715
|
-
tag: l,
|
|
716
|
-
ref: s,
|
|
717
|
-
fixedPadding: c,
|
|
718
|
-
themeColor: o
|
|
719
|
-
}, a), n);
|
|
720
|
-
case "button":
|
|
721
|
-
return /* @__PURE__ */ g.createElement(F, y({
|
|
722
|
-
tag: l,
|
|
723
|
-
ref: s,
|
|
724
|
-
fixedPadding: c,
|
|
725
|
-
themeColor: o
|
|
726
|
-
}, a), n);
|
|
727
|
-
case "caption":
|
|
728
|
-
return /* @__PURE__ */ g.createElement(q, y({
|
|
729
|
-
tag: l,
|
|
730
|
-
ref: s,
|
|
731
|
-
fixedPadding: c,
|
|
732
|
-
themeColor: o
|
|
733
|
-
}, a), n);
|
|
734
|
-
case "caption-bold":
|
|
735
|
-
return /* @__PURE__ */ g.createElement(q, y({
|
|
736
|
-
bold: !0,
|
|
737
|
-
tag: l,
|
|
738
|
-
ref: s,
|
|
739
|
-
fixedPadding: c,
|
|
740
|
-
themeColor: o
|
|
741
|
-
}, a), n);
|
|
742
|
-
case "display1":
|
|
743
|
-
case "headline1":
|
|
744
|
-
return /* @__PURE__ */ g.createElement(L, y({
|
|
745
|
-
level: 1,
|
|
746
|
-
tag: l,
|
|
747
|
-
ref: s,
|
|
748
|
-
fixedPadding: c,
|
|
749
|
-
themeColor: o
|
|
750
|
-
}, a), n);
|
|
751
|
-
case "display2":
|
|
752
|
-
case "headline2":
|
|
753
|
-
return /* @__PURE__ */ g.createElement(L, y({
|
|
754
|
-
level: 2,
|
|
755
|
-
tag: l,
|
|
756
|
-
ref: s,
|
|
757
|
-
fixedPadding: c,
|
|
758
|
-
themeColor: o
|
|
759
|
-
}, a), n);
|
|
760
|
-
case "display3":
|
|
761
|
-
case "headline3":
|
|
762
|
-
return /* @__PURE__ */ g.createElement(L, y({
|
|
763
|
-
level: 3,
|
|
764
|
-
tag: l,
|
|
765
|
-
ref: s,
|
|
766
|
-
fixedPadding: c,
|
|
767
|
-
themeColor: o
|
|
768
|
-
}, a), n);
|
|
769
|
-
case "display4":
|
|
770
|
-
case "headline4":
|
|
771
|
-
return /* @__PURE__ */ g.createElement(L, y({
|
|
772
|
-
level: 4,
|
|
773
|
-
tag: l,
|
|
774
|
-
ref: s,
|
|
775
|
-
fixedPadding: c,
|
|
776
|
-
themeColor: o
|
|
777
|
-
}, a), n);
|
|
778
|
-
case "display5":
|
|
779
|
-
case "headline5":
|
|
780
|
-
return /* @__PURE__ */ g.createElement(L, y({
|
|
781
|
-
level: 5,
|
|
782
|
-
tag: l,
|
|
783
|
-
ref: s,
|
|
784
|
-
fixedPadding: c,
|
|
785
|
-
themeColor: o
|
|
786
|
-
}, a), n);
|
|
787
|
-
case "display6":
|
|
788
|
-
case "headline6":
|
|
789
|
-
return /* @__PURE__ */ g.createElement(L, y({
|
|
790
|
-
level: 6,
|
|
791
|
-
tag: l,
|
|
792
|
-
ref: s,
|
|
793
|
-
fixedPadding: c,
|
|
794
|
-
themeColor: o
|
|
795
|
-
}, a), n);
|
|
796
|
-
case "overline":
|
|
797
|
-
return /* @__PURE__ */ g.createElement(J, y({
|
|
798
|
-
tag: l,
|
|
799
|
-
ref: s,
|
|
800
|
-
fixedPadding: c,
|
|
801
|
-
themeColor: o
|
|
802
|
-
}, a), n);
|
|
803
|
-
case "subtitle1":
|
|
804
|
-
return /* @__PURE__ */ g.createElement(j, y({
|
|
805
|
-
tag: l,
|
|
806
|
-
ref: s,
|
|
807
|
-
fixedPadding: c,
|
|
808
|
-
themeColor: o
|
|
809
|
-
}, a, {
|
|
810
|
-
level: 1
|
|
811
|
-
}), n);
|
|
812
|
-
case "subtitle1-bold":
|
|
813
|
-
return /* @__PURE__ */ g.createElement(j, y({
|
|
814
|
-
bold: !0,
|
|
815
|
-
tag: l,
|
|
816
|
-
ref: s,
|
|
817
|
-
fixedPadding: c,
|
|
818
|
-
themeColor: o
|
|
819
|
-
}, a, {
|
|
820
|
-
level: 1
|
|
821
|
-
}), n);
|
|
822
|
-
case "subtitle2-bold":
|
|
823
|
-
return /* @__PURE__ */ g.createElement(j, y({
|
|
824
|
-
bold: !0,
|
|
825
|
-
tag: l,
|
|
826
|
-
ref: s,
|
|
827
|
-
fixedPadding: c,
|
|
828
|
-
themeColor: o
|
|
829
|
-
}, a, {
|
|
830
|
-
level: 2
|
|
831
|
-
}), n);
|
|
832
|
-
case "subtitle2":
|
|
833
|
-
return /* @__PURE__ */ g.createElement(j, y({
|
|
834
|
-
level: 2,
|
|
835
|
-
tag: l,
|
|
836
|
-
ref: s,
|
|
837
|
-
fixedPadding: c,
|
|
838
|
-
themeColor: o
|
|
839
|
-
}, a), n);
|
|
840
|
-
default:
|
|
841
|
-
return /* @__PURE__ */ g.createElement(I, y({
|
|
842
|
-
tag: l,
|
|
843
|
-
ref: s,
|
|
844
|
-
fixedPadding: c,
|
|
845
|
-
themeColor: o
|
|
846
|
-
}, a, {
|
|
847
|
-
level: 1
|
|
848
|
-
}), n);
|
|
849
|
-
}
|
|
850
|
-
});
|
|
851
|
-
re.displayName = "Typography";
|
|
852
|
-
re.propTypes = Be;
|
|
853
|
-
export {
|
|
854
|
-
I as D,
|
|
855
|
-
j as I,
|
|
856
|
-
re as K,
|
|
857
|
-
L as N,
|
|
858
|
-
ne as O,
|
|
859
|
-
q as z
|
|
860
|
-
};
|