@hortiview/default-components 1.4.0 → 1.4.2

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