@hortiview/shared-components 0.0.4723 → 0.0.4724

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 (58) hide show
  1. package/dist/_getTag-DyrzUAbj.js +494 -0
  2. package/dist/components/BaseView/BaseView.js +43 -297
  3. package/dist/components/BasicHeading/BasicHeading.js +24 -25
  4. package/dist/components/BasicHeading/BasicHeading.test.js +4 -4
  5. package/dist/components/BlockView/BlockView.js +14 -14
  6. package/dist/components/DeleteModal/DeleteModal.js +49 -4687
  7. package/dist/components/Disclaimer/Disclaimer.js +8 -10
  8. package/dist/components/EmptyView/EmptyView.js +8 -247
  9. package/dist/components/HashTabView/HashTabView.js +52 -1838
  10. package/dist/components/HeaderFilter/HeaderFilter.js +18 -7595
  11. package/dist/components/Iconify/Iconify.js +1 -1
  12. package/dist/components/ListArea/ListArea.js +316 -261
  13. package/dist/components/ListArea/ListArea.test.js +1 -1
  14. package/dist/components/ListArea/ListAreaService.js +34 -35
  15. package/dist/components/SearchBar/SearchBar.js +21 -2043
  16. package/package.json +1 -1
  17. package/dist/BlockView.module-ypKp14Lt.cjs +0 -1
  18. package/dist/HashTabView.module-B20c3S70.cjs +0 -1
  19. package/dist/HeaderFilter.module-DSCJz6-s.cjs +0 -1
  20. package/dist/_commonjsHelpers-DwTZ_eVU.cjs +0 -1
  21. package/dist/_getTag-DNUtgXkb.js +0 -136
  22. package/dist/_getTag-DSIzMwlx.cjs +0 -1
  23. package/dist/_stringToPath-B-GSTJ2e.cjs +0 -1
  24. package/dist/_stringToPath-BfzwTbL6.js +0 -54
  25. package/dist/baseView.module--VUY4h_X.cjs +0 -1
  26. package/dist/basicHeading.module-BbcVMp42.cjs +0 -1
  27. package/dist/component-DJvMx3oL.cjs +0 -148
  28. package/dist/component-Rx4bNsGO.js +0 -680
  29. package/dist/disclaimer.module-BfrBh-Rf.cjs +0 -1
  30. package/dist/index.es-80RhGkCD.cjs +0 -1
  31. package/dist/index.es-Ba9oZK_n.js +0 -769
  32. package/dist/index.es-C1ojb4Lq.js +0 -106
  33. package/dist/index.es-CEydmFbW.cjs +0 -23
  34. package/dist/index.es-CKdjg72r.cjs +0 -64
  35. package/dist/index.es-CNBieliG.js +0 -151
  36. package/dist/index.es-CPRODq-I.cjs +0 -127
  37. package/dist/index.es-CQ3ep412.js +0 -305
  38. package/dist/index.es-CSD_u-fK.cjs +0 -1
  39. package/dist/index.es-CVCp4d0C.js +0 -45
  40. package/dist/index.es-Cct4Uapb.js +0 -1776
  41. package/dist/index.es-Cj9DW-2T.js +0 -430
  42. package/dist/index.es-Cm4X20_S.js +0 -673
  43. package/dist/index.es-Cqx46S1V.cjs +0 -540
  44. package/dist/index.es-DiO-sp-V.cjs +0 -1
  45. package/dist/index.es-DyXn5zZ8.cjs +0 -1
  46. package/dist/index.es-InSNsV4f.js +0 -1067
  47. package/dist/index.es-J3ub0jmR.cjs +0 -1
  48. package/dist/index.es-L0ZCcbUf.js +0 -4939
  49. package/dist/index.es-gvcK6-6t.cjs +0 -1
  50. package/dist/listArea.module-CMO-yRdf.cjs +0 -1
  51. package/dist/magic-string.es-EQkD18No.cjs +0 -10
  52. package/dist/react.esm-CMNZXU0t.cjs +0 -93
  53. package/dist/searchBar.module-CFi8D8zn.cjs +0 -1
  54. package/dist/tslib.es6-CIXEwqhg.js +0 -72
  55. package/dist/tslib.es6-D1TYK0An.cjs +0 -1
  56. package/dist/useBreakpoint-PUopk3AO.cjs +0 -1
  57. package/dist/verticalDivider.module-Ciw9Fnt1.cjs +0 -1
  58. package/dist/vi.JYQecGiw-M1q0RI3O.cjs +0 -512
@@ -1,673 +0,0 @@
1
- import { P as e, a as m, c as k, _ as s, f as I } from "./index.es-Cct4Uapb.js";
2
- import i, { forwardRef as u, useRef as x, useImperativeHandle as b, useEffect as $ } from "react";
3
- import { a as S } from "./tslib.es6-CIXEwqhg.js";
4
- function _(c) {
5
- return c.toLowerCase();
6
- }
7
- var R = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g], w = /[^A-Z0-9]+/gi;
8
- function A(c, l) {
9
- l === void 0 && (l = {});
10
- for (var g = l.splitRegexp, n = g === void 0 ? R : g, d = l.stripRegexp, o = d === void 0 ? w : d, r = l.transform, a = r === void 0 ? _ : r, t = l.delimiter, p = t === void 0 ? " " : t, y = H(H(c, n, "$1\0$2"), o, "\0"), T = 0, L = y.length; y.charAt(T) === "\0"; )
11
- T++;
12
- for (; y.charAt(L - 1) === "\0"; )
13
- L--;
14
- return y.slice(T, L).split("\0").map(a).join(p);
15
- }
16
- function H(c, l, g) {
17
- return l instanceof RegExp ? c.replace(l, g) : l.reduce(function(n, d) {
18
- return n.replace(d, g);
19
- }, c);
20
- }
21
- function Z(c, l) {
22
- return l === void 0 && (l = {}), A(c, S({ delimiter: "." }, l));
23
- }
24
- function O(c, l) {
25
- return l === void 0 && (l = {}), Z(c, S({ delimiter: "-" }, l));
26
- }
27
- const z = {
28
- /**
29
- * If true the typography will be bold. Applies to 1body, body2, caption, subtitle1, subtitle2
30
- *
31
- * Defaults to **false**.
32
- */
33
- bold: e.bool,
34
- /**
35
- * Expects a string, accepts any valid markup.
36
- *
37
- * Defaults to **null**.
38
- */
39
- children: e.node,
40
- /**
41
- * The css class name to be passed through to the component markup.
42
- *
43
- * Defaults to **undefined**.
44
- */
45
- className: e.string,
46
- /**
47
- * The DOM element to display the typography.
48
- *
49
- * Defaults to **'span'**.
50
- */
51
- tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
52
- /**
53
- * Sets theme color for the typography. Does not apply to Link.
54
- *
55
- * Defaults to **undefined**.
56
- */
57
- themeColor: m(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'."),
58
- /**
59
- * Sets typography class for the element.
60
- *
61
- * Defaults to **'body1'**.
62
- */
63
- type: m(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'.")
64
- }, F = {
65
- bold: !1,
66
- children: null,
67
- className: void 0,
68
- tag: "span",
69
- themeColor: void 0,
70
- type: "body1"
71
- }, G = {
72
- /**
73
- * If true the typography will be bold.
74
- *
75
- * Defaults to **false**.
76
- */
77
- bold: e.bool,
78
- /**
79
- * Expects a string, accepts any valid markup.
80
- *
81
- * Defaults to **null**.
82
- */
83
- children: e.node,
84
- /**
85
- * The css class name to be passed through to the component markup.
86
- *
87
- * Defaults to **undefined**.
88
- */
89
- className: e.string,
90
- /**
91
- * Sets font properties for body. Acceptable values range from 1 - 2. Higher levels produce smaller type.
92
- *
93
- * Defaults to **1**.
94
- */
95
- level: e.oneOf([1, 2]),
96
- /**
97
- * The DOM element to display the typography.
98
- *
99
- * Defaults to **'span'**.
100
- */
101
- tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
102
- /**
103
- * Sets theme color for the typography.
104
- *
105
- * Defaults to **undefined**.
106
- */
107
- themeColor: m(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'.")
108
- }, U = {
109
- bold: !1,
110
- children: null,
111
- className: void 0,
112
- level: 1,
113
- tag: "span",
114
- themeColor: void 0
115
- }, X = {
116
- /**
117
- * Expects a string, accepts any valid markup.
118
- *
119
- * Defaults to **null**.
120
- */
121
- children: e.node,
122
- /**
123
- * The css class name to be passed through to the component markup.
124
- *
125
- * Defaults to **undefined**.
126
- */
127
- className: e.string,
128
- /**
129
- * The DOM element to display the typography.
130
- *
131
- * Defaults to **'span'**.
132
- */
133
- tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
134
- /**
135
- * Sets theme color for the typography.
136
- *
137
- * Defaults to **undefined**.
138
- */
139
- themeColor: m(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'.")
140
- }, j = {
141
- children: null,
142
- className: void 0,
143
- tag: "span",
144
- themeColor: void 0
145
- }, q = {
146
- /**
147
- * If true the typography will be bold.
148
- *
149
- * Defaults to **false**.
150
- */
151
- bold: e.bool,
152
- /**
153
- * Expects a string, accepts any valid markup.
154
- *
155
- * Defaults to **null**.
156
- */
157
- children: e.node,
158
- /**
159
- * The css class name to be passed through to the component markup.
160
- *
161
- * Defaults to **undefined**.
162
- */
163
- className: e.string,
164
- /**
165
- * The DOM element to display the typography.
166
- *
167
- * Defaults to **'span'**.
168
- */
169
- tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
170
- /**
171
- * Sets theme color for the typography.
172
- *
173
- * Defaults to **undefined**.
174
- */
175
- themeColor: m(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'.")
176
- }, J = {
177
- bold: !1,
178
- children: null,
179
- className: void 0,
180
- tag: "span",
181
- themeColor: void 0
182
- }, K = {
183
- /**
184
- * Expects a string, accepts any valid markup.
185
- *
186
- * Defaults to **null**.
187
- */
188
- children: e.node,
189
- /**
190
- * The css class name to be passed through to the component markup.
191
- *
192
- * Defaults to **undefined**.
193
- */
194
- className: e.string,
195
- /**
196
- * Sets font properties for body. Acceptable values range from 1 to 6. Higher levels produce smaller type.
197
- *
198
- * Defaults to **1**.
199
- */
200
- 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"])]),
201
- /**
202
- * The DOM element to display the typography.
203
- *
204
- * Defaults to **'span'**.
205
- */
206
- tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
207
- /**
208
- * Sets theme color for the typography.
209
- *
210
- * Defaults to **undefined**.
211
- */
212
- themeColor: m(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'.")
213
- }, M = {
214
- children: null,
215
- className: void 0,
216
- level: 1,
217
- tag: "span",
218
- themeColor: void 0
219
- }, Q = {
220
- /**
221
- * Expects a string, accepts any valid markup.
222
- *
223
- * Defaults to **null**.
224
- */
225
- children: e.node,
226
- /**
227
- * The css class name to be passed through to the component markup.
228
- *
229
- * Defaults to **undefined**.
230
- */
231
- className: e.string,
232
- /**
233
- * Sets font properties for body. Acceptable values range from 1 to 6. Higher levels produce smaller type.
234
- *
235
- * Defaults to **1**.
236
- */
237
- 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"])]),
238
- /**
239
- * The DOM element to display the typography.
240
- *
241
- * Defaults to **'span'**.
242
- */
243
- tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
244
- /**
245
- * Sets theme color for the typography.
246
- *
247
- * Defaults to **undefined**.
248
- */
249
- themeColor: m(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'.")
250
- }, V = {
251
- children: null,
252
- className: void 0,
253
- level: 1,
254
- tag: "span",
255
- themeColor: void 0
256
- }, W = {
257
- /**
258
- * Expects a string, accepts any valid markup.
259
- *
260
- * Defaults to **null**.
261
- */
262
- children: e.node,
263
- /**
264
- * The css class name to be passed through to the component markup.
265
- *
266
- * Defaults to **undefined**.
267
- */
268
- className: e.string,
269
- /**
270
- * The DOM element to display the typography.
271
- *
272
- * Defaults to **'a'**.
273
- */
274
- tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)])
275
- }, Y = {
276
- children: null,
277
- className: void 0,
278
- tag: "a"
279
- }, ee = {
280
- /**
281
- * Expects a string, accepts any valid markup.
282
- *
283
- * Defaults to **null**.
284
- */
285
- children: e.node,
286
- /**
287
- * The css class name to be passed through to the component markup.
288
- *
289
- * Defaults to **undefined**.
290
- */
291
- className: e.string,
292
- /**
293
- * The DOM element to display the typography.
294
- *
295
- * Defaults to **'span'**.
296
- */
297
- tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
298
- /**
299
- * Sets theme color for the typography.
300
- *
301
- * Defaults to **undefined**.
302
- */
303
- themeColor: m(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'.")
304
- }, te = {
305
- children: null,
306
- className: void 0,
307
- tag: "span",
308
- themeColor: void 0
309
- }, ne = {
310
- /**
311
- * If true the typography will be bold.
312
- *
313
- * Defaults to **false**.
314
- */
315
- bold: e.bool,
316
- /**
317
- * Expects a string, accepts any valid markup.
318
- *
319
- * Defaults to **null**.
320
- */
321
- children: e.node,
322
- /**
323
- * The css class name to be passed through to the component markup.
324
- *
325
- * Defaults to **undefined**.
326
- */
327
- className: e.string,
328
- /**
329
- * Sets font properties for body.
330
- *
331
- * Defaults to **1**.
332
- */
333
- level: e.oneOf([1, 2]),
334
- /**
335
- * The DOM element to display the typography.
336
- *
337
- * Defaults to **'span'**.
338
- */
339
- tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
340
- /**
341
- * Sets theme color for the typography.
342
- *
343
- * Defaults to **undefined**.
344
- */
345
- themeColor: m(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'.")
346
- }, oe = {
347
- bold: !1,
348
- children: null,
349
- className: void 0,
350
- level: 1,
351
- tag: "span",
352
- themeColor: void 0
353
- }, f = /* @__PURE__ */ u((c, l) => {
354
- const {
355
- className: g,
356
- children: n,
357
- themeColor: d,
358
- level: o,
359
- bold: r,
360
- tag: a,
361
- ...t
362
- } = c, p = x();
363
- b(l, () => p.current, []);
364
- const y = k("mdc-typography", `lmnt mdc-typography--body${o}`, r && `mdc-typography--body${o}-bold`, d && `mdc-theme--${O(d)}`, g), T = a;
365
- return /* @__PURE__ */ i.createElement(T, s({
366
- className: y
367
- }, t, {
368
- ref: p
369
- }), n);
370
- });
371
- f.displayName = "TypoBody";
372
- f.propTypes = G;
373
- f.defaultProps = U;
374
- const v = /* @__PURE__ */ u((c, l) => {
375
- const {
376
- className: g,
377
- children: n,
378
- themeColor: d,
379
- tag: o,
380
- ...r
381
- } = c, a = k("mdc-typography", "lmnt mdc-typography--button", d && `mdc-theme--${O(d)}`, g), t = x();
382
- b(l, () => t.current, []);
383
- const p = o;
384
- return /* @__PURE__ */ i.createElement(p, s({
385
- ref: t,
386
- className: a
387
- }, r), n);
388
- });
389
- v.displayName = "TypoButton";
390
- v.propTypes = X;
391
- v.defaultProps = j;
392
- const P = /* @__PURE__ */ u((c, l) => {
393
- const {
394
- className: g,
395
- children: n,
396
- themeColor: d,
397
- tag: o,
398
- bold: r,
399
- ...a
400
- } = c, t = k("mdc-typography", "lmnt mdc-typography--caption", r && "mdc-typography--caption-bold", d && `mdc-theme--${O(d)}`, g), p = x();
401
- b(l, () => p.current, []);
402
- const y = o;
403
- return /* @__PURE__ */ i.createElement(y, s({
404
- ref: p,
405
- className: t
406
- }, a), n);
407
- });
408
- P.displayName = "TypoCaption";
409
- P.propTypes = q;
410
- P.defaultProps = J;
411
- const h = /* @__PURE__ */ u((c, l) => {
412
- const {
413
- className: g,
414
- children: n,
415
- themeColor: d,
416
- level: o,
417
- tag: r,
418
- ...a
419
- } = c, t = k("mdc-typography", `lmnt mdc-typography--headline${o}`, d && `mdc-theme--${O(d)}`, g), p = x();
420
- b(l, () => p.current, []);
421
- const y = r;
422
- return /* @__PURE__ */ i.createElement(y, s({
423
- ref: p,
424
- className: t
425
- }, a), n);
426
- });
427
- h.displayName = "TypoDisplay";
428
- h.propTypes = K;
429
- h.defaultProps = M;
430
- const N = /* @__PURE__ */ u((c, l) => {
431
- const {
432
- className: g,
433
- children: n,
434
- themeColor: d,
435
- level: o,
436
- tag: r,
437
- ...a
438
- } = c;
439
- $(() => I("TypoHeadline", "This component is being replaced with TypoDisplay and will be removed in a future version. Please use TypoDisplay instead."), []);
440
- const t = k("mdc-typography", `lmnt mdc-typography--headline${o}`, d && `mdc-theme--${O(d)}`, g), p = x();
441
- b(l, () => p.current, []);
442
- const y = r;
443
- return /* @__PURE__ */ i.createElement(y, s({
444
- ref: p,
445
- className: t
446
- }, a), n);
447
- });
448
- N.displayName = "TypoHeadline";
449
- N.propTypes = Q;
450
- N.defaultProps = V;
451
- const E = /* @__PURE__ */ u((c, l) => {
452
- const {
453
- className: g,
454
- children: n,
455
- themeColor: d,
456
- tag: o,
457
- ...r
458
- } = c, a = k("mdc-typography lmnt-theme-link", d && `mdc-theme--${O(d)}`, g), t = x();
459
- b(l, () => t.current, []);
460
- const p = o;
461
- return /* @__PURE__ */ i.createElement(p, s({
462
- ref: t,
463
- className: a
464
- }, r), n);
465
- });
466
- E.displayName = "TypoLink";
467
- E.propTypes = W;
468
- E.defaultProps = Y;
469
- const B = /* @__PURE__ */ u((c, l) => {
470
- const {
471
- className: g,
472
- children: n,
473
- themeColor: d,
474
- tag: o,
475
- ...r
476
- } = c, a = k("mdc-typography", "lmnt mdc-typography--overline", d && `mdc-theme--${O(d)}`, g), t = x();
477
- b(l, () => t.current, []);
478
- const p = o;
479
- return /* @__PURE__ */ i.createElement(p, s({
480
- ref: t,
481
- className: a
482
- }, r), n);
483
- });
484
- B.displayName = "TypoOverline";
485
- B.propTypes = ee;
486
- B.defaultProps = te;
487
- const C = /* @__PURE__ */ u((c, l) => {
488
- const {
489
- className: g,
490
- children: n,
491
- themeColor: d,
492
- level: o,
493
- tag: r,
494
- bold: a,
495
- ...t
496
- } = c, p = k("mdc-typography", `lmnt mdc-typography--subtitle${o || ""}`, a && `mdc-typography--subtitle${o}-bold`, d && `mdc-theme--${O(d)}`, g), y = x();
497
- b(l, () => y.current, []);
498
- const T = r;
499
- return /* @__PURE__ */ i.createElement(T, s({
500
- ref: y,
501
- className: p
502
- }, t), n);
503
- });
504
- C.displayName = "TypoSubtitle";
505
- C.propTypes = ne;
506
- C.defaultProps = oe;
507
- const D = /* @__PURE__ */ u((c, l) => {
508
- const {
509
- bold: g,
510
- children: n,
511
- type: d,
512
- themeColor: o,
513
- tag: r,
514
- ...a
515
- } = c, t = x();
516
- switch (b(l, () => t.current, []), d) {
517
- case "body1":
518
- return /* @__PURE__ */ i.createElement(f, s({
519
- level: 1,
520
- tag: r,
521
- ref: t,
522
- themeColor: o
523
- }, a), n);
524
- case "body1-bold":
525
- return /* @__PURE__ */ i.createElement(f, s({
526
- bold: !0,
527
- level: 1,
528
- tag: r,
529
- ref: t,
530
- themeColor: o
531
- }, a), n);
532
- case "body2-bold":
533
- return /* @__PURE__ */ i.createElement(f, s({
534
- bold: !0,
535
- level: 2,
536
- tag: r,
537
- ref: t,
538
- themeColor: o
539
- }, a), n);
540
- case "body2":
541
- return /* @__PURE__ */ i.createElement(f, s({
542
- level: 2,
543
- tag: r,
544
- ref: t,
545
- themeColor: o
546
- }, a), n);
547
- case "button":
548
- return /* @__PURE__ */ i.createElement(v, s({
549
- tag: r,
550
- ref: t,
551
- themeColor: o
552
- }, a), n);
553
- case "caption":
554
- return /* @__PURE__ */ i.createElement(P, s({
555
- tag: r,
556
- ref: t,
557
- themeColor: o
558
- }, a), n);
559
- case "caption-bold":
560
- return /* @__PURE__ */ i.createElement(P, s({
561
- bold: !0,
562
- tag: r,
563
- ref: t,
564
- themeColor: o
565
- }, a), n);
566
- case "display1":
567
- case "headline1":
568
- return /* @__PURE__ */ i.createElement(h, s({
569
- level: 1,
570
- tag: r,
571
- ref: t,
572
- themeColor: o
573
- }, a), n);
574
- case "display2":
575
- case "headline2":
576
- return /* @__PURE__ */ i.createElement(h, s({
577
- level: 2,
578
- tag: r,
579
- ref: t,
580
- themeColor: o
581
- }, a), n);
582
- case "display3":
583
- case "headline3":
584
- return /* @__PURE__ */ i.createElement(h, s({
585
- level: 3,
586
- tag: r,
587
- ref: t,
588
- themeColor: o
589
- }, a), n);
590
- case "display4":
591
- case "headline4":
592
- return /* @__PURE__ */ i.createElement(h, s({
593
- level: 4,
594
- tag: r,
595
- ref: t,
596
- themeColor: o
597
- }, a), n);
598
- case "display5":
599
- case "headline5":
600
- return /* @__PURE__ */ i.createElement(h, s({
601
- level: 5,
602
- tag: r,
603
- ref: t,
604
- themeColor: o
605
- }, a), n);
606
- case "display6":
607
- case "headline6":
608
- return /* @__PURE__ */ i.createElement(h, s({
609
- level: 6,
610
- tag: r,
611
- ref: t,
612
- themeColor: o
613
- }, a), n);
614
- case "overline":
615
- return /* @__PURE__ */ i.createElement(B, s({
616
- tag: r,
617
- ref: t,
618
- themeColor: o
619
- }, a), n);
620
- case "subtitle1":
621
- return /* @__PURE__ */ i.createElement(C, s({
622
- tag: r,
623
- ref: t,
624
- themeColor: o
625
- }, a, {
626
- level: 1
627
- }), n);
628
- case "subtitle1-bold":
629
- return /* @__PURE__ */ i.createElement(C, s({
630
- bold: !0,
631
- tag: r,
632
- ref: t,
633
- themeColor: o
634
- }, a, {
635
- level: 1
636
- }), n);
637
- case "subtitle2-bold":
638
- return /* @__PURE__ */ i.createElement(C, s({
639
- bold: !0,
640
- tag: r,
641
- ref: t,
642
- themeColor: o
643
- }, a, {
644
- level: 2
645
- }), n);
646
- case "subtitle2":
647
- return /* @__PURE__ */ i.createElement(C, s({
648
- level: 2,
649
- tag: r,
650
- ref: t,
651
- themeColor: o
652
- }, a), n);
653
- default:
654
- return /* @__PURE__ */ i.createElement(f, s({
655
- tag: r,
656
- ref: t,
657
- themeColor: o
658
- }, a, {
659
- level: 1
660
- }), n);
661
- }
662
- });
663
- D.displayName = "Typography";
664
- D.propTypes = z;
665
- D.defaultProps = F;
666
- export {
667
- v as T,
668
- C as a,
669
- f as b,
670
- h as c,
671
- D as d,
672
- P as e
673
- };