@hortiview/default-components 1.3.0 → 1.4.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.
Files changed (41) hide show
  1. package/dist/{HealthCheckFailed-BA_vyKwG.js → HealthCheckFailed-DoqoTvwZ.js} +12 -11
  2. package/dist/Iconify-Cjdr-ccS.js +82 -0
  3. package/dist/{LoadingSpinner-5JYKhDod.js → LoadingSpinner-FRQEZvxs.js} +26 -25
  4. package/dist/OfflineView-HbuDPpQL-BX2tMPh9.js +46 -0
  5. package/dist/assets/DefaultFormSelect.css +1 -0
  6. package/dist/{component-DsB0poTj-uxpi4oSj.js → component-DsB0poTj-BZ89hFvY.js} +3 -3
  7. package/dist/components/DefaultFormNumber/DefaultFormNumber.js +239 -251
  8. package/dist/components/DefaultFormSelect/DefaultFormSelect.d.ts +14 -0
  9. package/dist/components/DefaultFormSelect/DefaultFormSelect.js +189 -0
  10. package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +2 -2
  11. package/dist/components/GenericTable/GenericTable.js +9928 -23562
  12. package/dist/components/HealthChecks/DataBaseHealthCheck.js +2 -2
  13. package/dist/components/HealthChecks/DefaultHealthCheck.js +2 -2
  14. package/dist/components/HealthChecks/IotServiceHealthCheck.js +2 -2
  15. package/dist/components/HealthChecks/PlatformHealthCheck.js +2 -2
  16. package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +2 -2
  17. package/dist/components/OfflineView/OfflineView.js +2 -2
  18. package/dist/index.es--yyG47az-DBKBm3yD.js +825 -0
  19. package/dist/{index.es-CiqbARoC-D-muiSwa.js → index.es-Bx1E5MPK-BWa0n8W0.js} +31 -31
  20. package/dist/index.es-CzUKBF7E-BPJhlGEA.js +13567 -0
  21. package/dist/{index.es-D-CKRzIB-DPq2PQz-.js → index.es-D-ph6ImM-CWxTa_iD.js} +15 -15
  22. package/dist/index.es-DDo_AHL0-Bnqdxr8c.js +1033 -0
  23. package/dist/index.es-Kg9soDed-DUORjY8X.js +440 -0
  24. package/dist/index.es-U5-b20Gv-Bta-iNSF.js +1010 -0
  25. package/dist/locales/en-US.js +9 -7
  26. package/dist/locales/en-US.json.d.ts +8 -2
  27. package/dist/locales/es-MX.js +8 -6
  28. package/dist/locales/es-MX.json.d.ts +8 -2
  29. package/dist/locales/tr-TR.js +15 -13
  30. package/dist/locales/tr-TR.json.d.ts +8 -2
  31. package/dist/main.d.ts +6 -3
  32. package/dist/main.js +22 -20
  33. package/dist/{index.es-25EARqhH-CciUgLci.js → omit-1Eom1PmQ-DluRHOwa.js} +748 -1314
  34. package/dist/useHelperText-BjFihJ7h.js +21 -0
  35. package/dist/useTranslation-B_ODv8uN.js +4306 -0
  36. package/package.json +3 -3
  37. package/dist/Iconify-B42tJF6q.js +0 -979
  38. package/dist/OfflineView-BW19N4Cu-CpgiY6nC.js +0 -45
  39. package/dist/index.es-6TJ1S8Jr-C4X_iaSC.js +0 -1468
  40. package/dist/useTranslation-v0qSkb40.js +0 -4223
  41. /package/dist/assets/{OfflineView-BW19N4Cu.css → OfflineView-HbuDPpQL.css} +0 -0
@@ -0,0 +1,825 @@
1
+ import { c as s, I as f, j as e, m as A, p as w, y as b, q as z } from "./useTranslation-B_ODv8uN.js";
2
+ import d, { forwardRef as p, useRef as u, useImperativeHandle as m, useEffect as R } from "react";
3
+ const j = {
4
+ /**
5
+ * Children to be rendered. Expects multiple components of a similar type.
6
+ *
7
+ * Defaults to **null**.
8
+ */
9
+ children: e.node,
10
+ /**
11
+ * The grouping direction.
12
+ *
13
+ * Defaults to **'horizontal'**.
14
+ */
15
+ direction: e.oneOf(["horizontal", "vertical", "horizontal-reverse", "vertical-reverse"]),
16
+ /**
17
+ * Sets the Group width to be 100%.
18
+ *
19
+ * Defaults to **false**.
20
+ */
21
+ fullWidth: e.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: e.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: A(e.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: e.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: e.oneOf(["start", "end", "center", "stretch", "baseline"])
48
+ }, Z = {
49
+ children: null,
50
+ direction: "horizontal",
51
+ fullWidth: !1,
52
+ gap: "standard",
53
+ padding: void 0,
54
+ primaryAlign: "start",
55
+ secondaryAlign: "baseline"
56
+ }, G = (i) => {
57
+ switch (i) {
58
+ case "end":
59
+ return "flex-end";
60
+ case "start":
61
+ return "flex-start";
62
+ case "center":
63
+ return "center";
64
+ case "stretch":
65
+ return "stretch";
66
+ case "baseline":
67
+ default:
68
+ return "baseline";
69
+ }
70
+ }, W = (i) => {
71
+ switch (i) {
72
+ case "end":
73
+ return "flex-end";
74
+ case "center":
75
+ return "center";
76
+ case "space-evenly":
77
+ return "space-evenly";
78
+ case "space-between":
79
+ return "space-between";
80
+ case "space-around":
81
+ return "space-around";
82
+ case "start":
83
+ default:
84
+ return "flex-start";
85
+ }
86
+ }, _ = (i) => {
87
+ switch (i) {
88
+ case "dense":
89
+ return "8px";
90
+ case "airy":
91
+ return "24px";
92
+ case "standard":
93
+ return "16px";
94
+ case "none":
95
+ default:
96
+ return "0px";
97
+ }
98
+ }, q = (i) => {
99
+ switch (i) {
100
+ case "horizontal":
101
+ return "row";
102
+ case "vertical":
103
+ return "column";
104
+ case "horizontal-reverse":
105
+ return "row-reverse";
106
+ case "vertical-reverse":
107
+ return "column-reverse";
108
+ default:
109
+ return "row";
110
+ }
111
+ }, E = /* @__PURE__ */ p((i, l) => {
112
+ const {
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 = {
126
+ display: "flex",
127
+ flexDirection: q(c),
128
+ justifyContent: W(t),
129
+ alignItems: G(h),
130
+ gap: _(a || r)
131
+ };
132
+ o && (N = {
133
+ ...N,
134
+ width: "100%"
135
+ }), N = {
136
+ ...N,
137
+ ...y
138
+ };
139
+ const I = u();
140
+ return m(l, () => I.current, []), /* @__PURE__ */ d.createElement("div", s({
141
+ ref: I,
142
+ className: f(
143
+ "lmnt",
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);
152
+ });
153
+ E.displayName = "Group";
154
+ E.propTypes = j;
155
+ E.defaultProps = Z;
156
+ function F(i) {
157
+ return i.toLowerCase();
158
+ }
159
+ var J = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g], K = /[^A-Z0-9]+/gi;
160
+ function M(i, l) {
161
+ l === void 0 && (l = {});
162
+ for (var g = l.splitRegexp, n = g === void 0 ? J : g, c = l.stripRegexp, o = c === void 0 ? K : c, r = l.transform, a = r === void 0 ? F : r, t = l.delimiter, h = t === void 0 ? " " : t, y = S(S(i, n, "$1\0$2"), o, "\0"), k = 0, T = y.length; y.charAt(k) === "\0"; )
163
+ k++;
164
+ for (; y.charAt(T - 1) === "\0"; )
165
+ T--;
166
+ return y.slice(k, T).split("\0").map(a).join(h);
167
+ }
168
+ function S(i, l, g) {
169
+ return l instanceof RegExp ? i.replace(l, g) : l.reduce(function(n, c) {
170
+ return n.replace(c, g);
171
+ }, i);
172
+ }
173
+ function Q(i, l) {
174
+ return l === void 0 && (l = {}), M(i, w({ delimiter: "." }, l));
175
+ }
176
+ function v(i, l) {
177
+ return l === void 0 && (l = {}), Q(i, w({ delimiter: "-" }, l));
178
+ }
179
+ const U = {
180
+ /**
181
+ * If true the typography will be bold. Applies to 1body, body2, caption, subtitle1, subtitle2
182
+ *
183
+ * Defaults to **false**.
184
+ */
185
+ bold: e.bool,
186
+ /**
187
+ * Expects a string, accepts any valid markup.
188
+ *
189
+ * Defaults to **null**.
190
+ */
191
+ children: e.node,
192
+ /**
193
+ * The css class name to be passed through to the component markup.
194
+ *
195
+ * Defaults to **undefined**.
196
+ */
197
+ className: e.string,
198
+ /**
199
+ * The DOM element to display the typography.
200
+ *
201
+ * Defaults to **'span'**.
202
+ */
203
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(d.Component)]),
204
+ /**
205
+ * Sets theme color for the typography. Does not apply to Link.
206
+ *
207
+ * Defaults to **undefined**.
208
+ */
209
+ themeColor: b(e.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
+ /**
211
+ * Sets typography class for the element.
212
+ *
213
+ * Defaults to **'body1'**.
214
+ */
215
+ type: b(e.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'.")
216
+ }, V = {
217
+ bold: !1,
218
+ children: null,
219
+ className: void 0,
220
+ tag: "span",
221
+ themeColor: void 0,
222
+ type: "body1"
223
+ }, X = {
224
+ /**
225
+ * If true the typography will be bold.
226
+ *
227
+ * Defaults to **false**.
228
+ */
229
+ bold: e.bool,
230
+ /**
231
+ * Expects a string, accepts any valid markup.
232
+ *
233
+ * Defaults to **null**.
234
+ */
235
+ children: e.node,
236
+ /**
237
+ * The css class name to be passed through to the component markup.
238
+ *
239
+ * Defaults to **undefined**.
240
+ */
241
+ className: e.string,
242
+ /**
243
+ * Sets font properties for body. Acceptable values range from 1 - 2. Higher levels produce smaller type.
244
+ *
245
+ * Defaults to **1**.
246
+ */
247
+ level: e.oneOf([1, 2]),
248
+ /**
249
+ * The DOM element to display the typography.
250
+ *
251
+ * Defaults to **'span'**.
252
+ */
253
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(d.Component)]),
254
+ /**
255
+ * Sets theme color for the typography.
256
+ *
257
+ * Defaults to **undefined**.
258
+ */
259
+ themeColor: b(e.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'.")
260
+ }, Y = {
261
+ bold: !1,
262
+ children: null,
263
+ className: void 0,
264
+ level: 1,
265
+ tag: "span",
266
+ themeColor: void 0
267
+ }, ee = {
268
+ /**
269
+ * Expects a string, accepts any valid markup.
270
+ *
271
+ * Defaults to **null**.
272
+ */
273
+ children: e.node,
274
+ /**
275
+ * The css class name to be passed through to the component markup.
276
+ *
277
+ * Defaults to **undefined**.
278
+ */
279
+ className: e.string,
280
+ /**
281
+ * The DOM element to display the typography.
282
+ *
283
+ * Defaults to **'span'**.
284
+ */
285
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(d.Component)]),
286
+ /**
287
+ * Sets theme color for the typography.
288
+ *
289
+ * Defaults to **undefined**.
290
+ */
291
+ themeColor: b(e.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'.")
292
+ }, te = {
293
+ children: null,
294
+ className: void 0,
295
+ tag: "span",
296
+ themeColor: void 0
297
+ }, ne = {
298
+ /**
299
+ * If true the typography will be bold.
300
+ *
301
+ * Defaults to **false**.
302
+ */
303
+ bold: e.bool,
304
+ /**
305
+ * Expects a string, accepts any valid markup.
306
+ *
307
+ * Defaults to **null**.
308
+ */
309
+ children: e.node,
310
+ /**
311
+ * The css class name to be passed through to the component markup.
312
+ *
313
+ * Defaults to **undefined**.
314
+ */
315
+ className: e.string,
316
+ /**
317
+ * The DOM element to display the typography.
318
+ *
319
+ * Defaults to **'span'**.
320
+ */
321
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(d.Component)]),
322
+ /**
323
+ * Sets theme color for the typography.
324
+ *
325
+ * Defaults to **undefined**.
326
+ */
327
+ themeColor: b(e.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'.")
328
+ }, oe = {
329
+ bold: !1,
330
+ children: null,
331
+ className: void 0,
332
+ tag: "span",
333
+ themeColor: void 0
334
+ }, re = {
335
+ /**
336
+ * Expects a string, accepts any valid markup.
337
+ *
338
+ * Defaults to **null**.
339
+ */
340
+ children: e.node,
341
+ /**
342
+ * The css class name to be passed through to the component markup.
343
+ *
344
+ * Defaults to **undefined**.
345
+ */
346
+ className: e.string,
347
+ /**
348
+ * Sets font properties for body. Acceptable values range from 1 to 6. Higher levels produce smaller type.
349
+ *
350
+ * Defaults to **1**.
351
+ */
352
+ level: e.oneOfType([e.oneOf([1, 2, 3, 4, 5, 6, "1", "2", "3", "4", "5", "6"]), e.oneOf([1, 2, 3, 4, 5, 6, "1", "2", "3", "4", "5", "6"])]),
353
+ /**
354
+ * The DOM element to display the typography.
355
+ *
356
+ * Defaults to **'span'**.
357
+ */
358
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(d.Component)]),
359
+ /**
360
+ * Sets theme color for the typography.
361
+ *
362
+ * Defaults to **undefined**.
363
+ */
364
+ themeColor: b(e.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'.")
365
+ }, ae = {
366
+ children: null,
367
+ className: void 0,
368
+ level: 1,
369
+ tag: "span",
370
+ themeColor: void 0
371
+ }, ie = {
372
+ /**
373
+ * Expects a string, accepts any valid markup.
374
+ *
375
+ * Defaults to **null**.
376
+ */
377
+ children: e.node,
378
+ /**
379
+ * The css class name to be passed through to the component markup.
380
+ *
381
+ * Defaults to **undefined**.
382
+ */
383
+ className: e.string,
384
+ /**
385
+ * Sets font properties for body. Acceptable values range from 1 to 6. Higher levels produce smaller type.
386
+ *
387
+ * Defaults to **1**.
388
+ */
389
+ level: e.oneOfType([e.oneOf([1, 2, 3, 4, 5, 6, "1", "2", "3", "4", "5", "6"]), e.oneOf([1, 2, 3, 4, 5, 6, "1", "2", "3", "4", "5", "6"])]),
390
+ /**
391
+ * The DOM element to display the typography.
392
+ *
393
+ * Defaults to **'span'**.
394
+ */
395
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(d.Component)]),
396
+ /**
397
+ * Sets theme color for the typography.
398
+ *
399
+ * Defaults to **undefined**.
400
+ */
401
+ themeColor: b(e.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'.")
402
+ }, le = {
403
+ children: null,
404
+ className: void 0,
405
+ level: 1,
406
+ tag: "span",
407
+ themeColor: void 0
408
+ }, de = {
409
+ /**
410
+ * Expects a string, accepts any valid markup.
411
+ *
412
+ * Defaults to **null**.
413
+ */
414
+ children: e.node,
415
+ /**
416
+ * The css class name to be passed through to the component markup.
417
+ *
418
+ * Defaults to **undefined**.
419
+ */
420
+ className: e.string,
421
+ /**
422
+ * The DOM element to display the typography.
423
+ *
424
+ * Defaults to **'a'**.
425
+ */
426
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(d.Component)])
427
+ }, ce = {
428
+ children: null,
429
+ className: void 0,
430
+ tag: "a"
431
+ }, se = {
432
+ /**
433
+ * Expects a string, accepts any valid markup.
434
+ *
435
+ * Defaults to **null**.
436
+ */
437
+ children: e.node,
438
+ /**
439
+ * The css class name to be passed through to the component markup.
440
+ *
441
+ * Defaults to **undefined**.
442
+ */
443
+ className: e.string,
444
+ /**
445
+ * The DOM element to display the typography.
446
+ *
447
+ * Defaults to **'span'**.
448
+ */
449
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(d.Component)]),
450
+ /**
451
+ * Sets theme color for the typography.
452
+ *
453
+ * Defaults to **undefined**.
454
+ */
455
+ themeColor: b(e.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'.")
456
+ }, ge = {
457
+ children: null,
458
+ className: void 0,
459
+ tag: "span",
460
+ themeColor: void 0
461
+ }, he = {
462
+ /**
463
+ * If true the typography will be bold.
464
+ *
465
+ * Defaults to **false**.
466
+ */
467
+ bold: e.bool,
468
+ /**
469
+ * Expects a string, accepts any valid markup.
470
+ *
471
+ * Defaults to **null**.
472
+ */
473
+ children: e.node,
474
+ /**
475
+ * The css class name to be passed through to the component markup.
476
+ *
477
+ * Defaults to **undefined**.
478
+ */
479
+ className: e.string,
480
+ /**
481
+ * Sets font properties for body.
482
+ *
483
+ * Defaults to **1**.
484
+ */
485
+ level: e.oneOf([1, 2]),
486
+ /**
487
+ * The DOM element to display the typography.
488
+ *
489
+ * Defaults to **'span'**.
490
+ */
491
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(d.Component)]),
492
+ /**
493
+ * Sets theme color for the typography.
494
+ *
495
+ * Defaults to **undefined**.
496
+ */
497
+ themeColor: b(e.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'.")
498
+ }, ye = {
499
+ bold: !1,
500
+ children: null,
501
+ className: void 0,
502
+ level: 1,
503
+ tag: "span",
504
+ themeColor: void 0
505
+ }, O = /* @__PURE__ */ p((i, l) => {
506
+ const {
507
+ className: g,
508
+ children: n,
509
+ themeColor: c,
510
+ level: o,
511
+ bold: r,
512
+ tag: a,
513
+ ...t
514
+ } = i, h = u();
515
+ m(l, () => h.current, []);
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);
522
+ });
523
+ O.displayName = "TypoBody";
524
+ O.propTypes = X;
525
+ O.defaultProps = Y;
526
+ const L = /* @__PURE__ */ p((i, l) => {
527
+ const {
528
+ className: g,
529
+ children: n,
530
+ themeColor: c,
531
+ tag: o,
532
+ ...r
533
+ } = i, a = f("mdc-typography", "lmnt mdc-typography--button", c && `mdc-theme--${v(c)}`, g), t = u();
534
+ m(l, () => t.current, []);
535
+ const h = o;
536
+ return /* @__PURE__ */ d.createElement(h, s({
537
+ ref: t,
538
+ className: a
539
+ }, r), n);
540
+ });
541
+ L.displayName = "TypoButton";
542
+ L.propTypes = ee;
543
+ L.defaultProps = te;
544
+ const B = /* @__PURE__ */ p((i, l) => {
545
+ const {
546
+ className: g,
547
+ children: n,
548
+ themeColor: c,
549
+ tag: o,
550
+ bold: r,
551
+ ...a
552
+ } = i, t = f("mdc-typography", "lmnt mdc-typography--caption", r && "mdc-typography--caption-bold", c && `mdc-theme--${v(c)}`, g), h = u();
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);
559
+ });
560
+ B.displayName = "TypoCaption";
561
+ B.propTypes = ne;
562
+ B.defaultProps = oe;
563
+ const x = /* @__PURE__ */ p((i, l) => {
564
+ const {
565
+ className: g,
566
+ children: n,
567
+ themeColor: c,
568
+ level: o,
569
+ tag: r,
570
+ ...a
571
+ } = i, t = f("mdc-typography", `lmnt mdc-typography--headline${o}`, c && `mdc-theme--${v(c)}`, g), h = u();
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);
578
+ });
579
+ x.displayName = "TypoDisplay";
580
+ x.propTypes = re;
581
+ x.defaultProps = ae;
582
+ const D = /* @__PURE__ */ p((i, l) => {
583
+ const {
584
+ className: g,
585
+ children: n,
586
+ themeColor: c,
587
+ level: o,
588
+ tag: r,
589
+ ...a
590
+ } = i;
591
+ R(() => z("TypoHeadline", "This component is being replaced with TypoDisplay and will be removed in a future version. Please use TypoDisplay instead."), []);
592
+ const t = f("mdc-typography", `lmnt mdc-typography--headline${o}`, c && `mdc-theme--${v(c)}`, g), h = u();
593
+ m(l, () => h.current, []);
594
+ const y = r;
595
+ return /* @__PURE__ */ d.createElement(y, s({
596
+ ref: h,
597
+ className: t
598
+ }, a), n);
599
+ });
600
+ D.displayName = "TypoHeadline";
601
+ D.propTypes = ie;
602
+ D.defaultProps = le;
603
+ const H = /* @__PURE__ */ p((i, l) => {
604
+ const {
605
+ className: g,
606
+ children: n,
607
+ themeColor: c,
608
+ tag: o,
609
+ ...r
610
+ } = i, a = f("mdc-typography lmnt-theme-link", c && `mdc-theme--${v(c)}`, g), t = u();
611
+ m(l, () => t.current, []);
612
+ const h = o;
613
+ return /* @__PURE__ */ d.createElement(h, s({
614
+ ref: t,
615
+ className: a
616
+ }, r), n);
617
+ });
618
+ H.displayName = "TypoLink";
619
+ H.propTypes = de;
620
+ H.defaultProps = ce;
621
+ const P = /* @__PURE__ */ p((i, l) => {
622
+ const {
623
+ className: g,
624
+ children: n,
625
+ themeColor: c,
626
+ tag: o,
627
+ ...r
628
+ } = i, a = f("mdc-typography", "lmnt mdc-typography--overline", c && `mdc-theme--${v(c)}`, g), t = u();
629
+ m(l, () => t.current, []);
630
+ const h = o;
631
+ return /* @__PURE__ */ d.createElement(h, s({
632
+ ref: t,
633
+ className: a
634
+ }, r), n);
635
+ });
636
+ P.displayName = "TypoOverline";
637
+ P.propTypes = se;
638
+ P.defaultProps = ge;
639
+ const C = /* @__PURE__ */ p((i, l) => {
640
+ const {
641
+ className: g,
642
+ children: n,
643
+ themeColor: c,
644
+ level: o,
645
+ tag: r,
646
+ bold: a,
647
+ ...t
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);
655
+ });
656
+ C.displayName = "TypoSubtitle";
657
+ C.propTypes = he;
658
+ C.defaultProps = ye;
659
+ const $ = /* @__PURE__ */ p((i, l) => {
660
+ const {
661
+ bold: g,
662
+ children: n,
663
+ type: c,
664
+ themeColor: o,
665
+ tag: r,
666
+ ...a
667
+ } = i, t = u();
668
+ switch (m(l, () => t.current, []), c) {
669
+ case "body1":
670
+ return /* @__PURE__ */ d.createElement(O, s({
671
+ level: 1,
672
+ tag: r,
673
+ ref: t,
674
+ themeColor: o
675
+ }, a), n);
676
+ case "body1-bold":
677
+ return /* @__PURE__ */ d.createElement(O, s({
678
+ bold: !0,
679
+ level: 1,
680
+ tag: r,
681
+ ref: t,
682
+ themeColor: o
683
+ }, a), n);
684
+ case "body2-bold":
685
+ return /* @__PURE__ */ d.createElement(O, s({
686
+ bold: !0,
687
+ level: 2,
688
+ tag: r,
689
+ ref: t,
690
+ themeColor: o
691
+ }, a), n);
692
+ case "body2":
693
+ return /* @__PURE__ */ d.createElement(O, s({
694
+ level: 2,
695
+ tag: r,
696
+ ref: t,
697
+ themeColor: o
698
+ }, a), n);
699
+ case "button":
700
+ return /* @__PURE__ */ d.createElement(L, s({
701
+ tag: r,
702
+ ref: t,
703
+ themeColor: o
704
+ }, a), n);
705
+ case "caption":
706
+ return /* @__PURE__ */ d.createElement(B, s({
707
+ tag: r,
708
+ ref: t,
709
+ themeColor: o
710
+ }, a), n);
711
+ case "caption-bold":
712
+ return /* @__PURE__ */ d.createElement(B, s({
713
+ bold: !0,
714
+ tag: r,
715
+ ref: t,
716
+ themeColor: o
717
+ }, a), n);
718
+ case "display1":
719
+ case "headline1":
720
+ return /* @__PURE__ */ d.createElement(x, s({
721
+ level: 1,
722
+ tag: r,
723
+ ref: t,
724
+ themeColor: o
725
+ }, a), n);
726
+ case "display2":
727
+ case "headline2":
728
+ return /* @__PURE__ */ d.createElement(x, s({
729
+ level: 2,
730
+ tag: r,
731
+ ref: t,
732
+ themeColor: o
733
+ }, a), n);
734
+ case "display3":
735
+ case "headline3":
736
+ return /* @__PURE__ */ d.createElement(x, s({
737
+ level: 3,
738
+ tag: r,
739
+ ref: t,
740
+ themeColor: o
741
+ }, a), n);
742
+ case "display4":
743
+ case "headline4":
744
+ return /* @__PURE__ */ d.createElement(x, s({
745
+ level: 4,
746
+ tag: r,
747
+ ref: t,
748
+ themeColor: o
749
+ }, a), n);
750
+ case "display5":
751
+ case "headline5":
752
+ return /* @__PURE__ */ d.createElement(x, s({
753
+ level: 5,
754
+ tag: r,
755
+ ref: t,
756
+ themeColor: o
757
+ }, a), n);
758
+ case "display6":
759
+ case "headline6":
760
+ return /* @__PURE__ */ d.createElement(x, s({
761
+ level: 6,
762
+ tag: r,
763
+ ref: t,
764
+ themeColor: o
765
+ }, a), n);
766
+ case "overline":
767
+ return /* @__PURE__ */ d.createElement(P, s({
768
+ tag: r,
769
+ ref: t,
770
+ themeColor: o
771
+ }, a), n);
772
+ case "subtitle1":
773
+ return /* @__PURE__ */ d.createElement(C, s({
774
+ tag: r,
775
+ ref: t,
776
+ themeColor: o
777
+ }, a, {
778
+ level: 1
779
+ }), n);
780
+ case "subtitle1-bold":
781
+ return /* @__PURE__ */ d.createElement(C, s({
782
+ bold: !0,
783
+ tag: r,
784
+ ref: t,
785
+ themeColor: o
786
+ }, a, {
787
+ level: 1
788
+ }), n);
789
+ case "subtitle2-bold":
790
+ return /* @__PURE__ */ d.createElement(C, s({
791
+ bold: !0,
792
+ tag: r,
793
+ ref: t,
794
+ themeColor: o
795
+ }, a, {
796
+ level: 2
797
+ }), n);
798
+ case "subtitle2":
799
+ return /* @__PURE__ */ d.createElement(C, s({
800
+ level: 2,
801
+ tag: r,
802
+ ref: t,
803
+ themeColor: o
804
+ }, a), n);
805
+ default:
806
+ return /* @__PURE__ */ d.createElement(O, s({
807
+ tag: r,
808
+ ref: t,
809
+ themeColor: o
810
+ }, a, {
811
+ level: 1
812
+ }), n);
813
+ }
814
+ });
815
+ $.displayName = "Typography";
816
+ $.propTypes = U;
817
+ $.defaultProps = V;
818
+ export {
819
+ C,
820
+ $ as D,
821
+ B as P,
822
+ O as f,
823
+ x as h,
824
+ E as n
825
+ };