@hortiview/default-components 1.0.0 → 1.0.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 (47) hide show
  1. package/README.md +189 -50
  2. package/dist/HealthCheckFailed-j1XFU5px.js +1839 -0
  3. package/dist/InternationalizationWrapper-BtWuzVFG.js +41 -0
  4. package/dist/LoadingSpinner-BxqY1o89.js +514 -0
  5. package/dist/assets/DefaultFormNumber.css +1 -0
  6. package/dist/assets/HealthCheckFailed.css +1 -0
  7. package/dist/assets/LoadingSpinner.css +1 -0
  8. package/dist/assets/i18n.css +1 -0
  9. package/dist/assets/index.css +1 -0
  10. package/dist/component-DsB0poTj-B4NF-JCy.js +530 -0
  11. package/dist/components/DefaultFormNumber/DefaultFormNumber.d.ts +5 -0
  12. package/dist/components/DefaultFormNumber/DefaultFormNumber.js +3600 -0
  13. package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.d.ts +4 -0
  14. package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +12 -0
  15. package/dist/components/HealthChecks/DataBaseHealthCheck.d.ts +4 -0
  16. package/dist/components/HealthChecks/DataBaseHealthCheck.js +20 -0
  17. package/dist/components/HealthChecks/DefaultHealthCheck.d.ts +4 -0
  18. package/dist/components/HealthChecks/DefaultHealthCheck.js +20 -0
  19. package/dist/components/HealthChecks/HealthCheck.test.js +23910 -0
  20. package/dist/components/HealthChecks/IotServiceHealthCheck.d.ts +4 -0
  21. package/dist/components/HealthChecks/IotServiceHealthCheck.js +20 -0
  22. package/dist/components/HealthChecks/PlatformHealthCheck.d.ts +4 -0
  23. package/dist/components/HealthChecks/PlatformHealthCheck.js +20 -0
  24. package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.d.ts +4 -0
  25. package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +19 -0
  26. package/dist/components/InternationalizationWrapper/InternationalizationWrapper.d.ts +14 -0
  27. package/dist/components/InternationalizationWrapper/InternationalizationWrapper.js +8 -0
  28. package/dist/i18n-DIprVS_u.js +1749 -0
  29. package/dist/i18n.d.ts +2 -0
  30. package/dist/i18n.js +7 -0
  31. package/dist/index.es-D-CKRzIB-Cv9zF1oG.js +1029 -0
  32. package/dist/locales/en-US.js +11 -0
  33. package/dist/locales/en-US.json.d.ts +22 -0
  34. package/dist/locales/es-MX.js +12 -0
  35. package/dist/locales/es-MX.json.d.ts +24 -0
  36. package/dist/locales/tr-TR.js +12 -0
  37. package/dist/locales/tr-TR.json.d.ts +24 -0
  38. package/dist/magic-string.es-D4UQQyt0.js +859 -0
  39. package/dist/main.d.ts +14 -0
  40. package/dist/main.js +16 -4
  41. package/dist/useTranslation-Bh0VR1ML.js +4070 -0
  42. package/package.json +144 -67
  43. package/dist/assets/App.css +0 -1
  44. package/dist/assets/Button.css +0 -1
  45. package/dist/components/App/App.test.js +0 -32948
  46. package/dist/components/Button/Button.js +0 -11
  47. package/dist/components/Label/Label.js +0 -7
@@ -0,0 +1,1839 @@
1
+ import { jsx as W, jsxs as We } from "react/jsx-runtime";
2
+ import { _ as y, N, R as e, b as A, L as Z, r as me, h as Ie, f as je, p as Ae, a as Fe, q as ee, d as Be, I as xe } from "./useTranslation-Bh0VR1ML.js";
3
+ import i, { forwardRef as k, useRef as D, useImperativeHandle as j, useEffect as G, useCallback as Le, useState as ue, useMemo as ne, createContext as Me, useLayoutEffect as qe } from "react";
4
+ import { U as ye } from "./component-DsB0poTj-B4NF-JCy.js";
5
+ import { a as Pe, n as He, f as we, l as Ve } from "./index.es-D-CKRzIB-Cv9zF1oG.js";
6
+ import './assets/HealthCheckFailed.css';const Ge = {
7
+ /**
8
+ * The css class name to be passed through to the component markup.
9
+ *
10
+ * Defaults to **undefined**.
11
+ */
12
+ className: e.string,
13
+ /**
14
+ * @deprecated _Use `themeColor` instead._
15
+ *
16
+ * The name of the desired Element color like 'primary'
17
+ *
18
+ * Defaults to **undefined**.
19
+ */
20
+ dividerColor: A(e.string, "Divider", "Use `themeColor` instead."),
21
+ /**
22
+ * @deprecated _Use `themeColorImportant` instead._
23
+ *
24
+ * If the border-color should be set with !important
25
+ *
26
+ * Defaults to **undefined**.
27
+ */
28
+ dividerColorImportant: A(e.bool, "Divider", "Use `themeColorImportant` instead."),
29
+ /**
30
+ * @deprecated _Use `variant` instead._
31
+ *
32
+ * Choose between dense and tall variants.
33
+ *
34
+ * Defaults to **undefined**.
35
+ */
36
+ dividerHeight: A(e.string, "Divider", "Use `variant` instead."),
37
+ /**
38
+ * Set the border-style with default browser styles. In general, avoid using.
39
+ *
40
+ * Defaults to **empty string**.
41
+ */
42
+ dividerStyle: e.string,
43
+ /**
44
+ * The name of the desired Element color like 'primary'
45
+ *
46
+ * Defaults to **'on-surface-stroke'**.
47
+ */
48
+ themeColor: e.oneOf(["", "primary", "primary-variant", "primary-50", "primary-100", "primary-200", "primary-300", "primary-400", "primary-500", "primary-600", "primary-700", "primary-800", "primary-900", "secondary", "secondary-variant", "secondary-50", "secondary-100", "secondary-200", "secondary-300", "secondary-400", "secondary-500", "secondary-600", "secondary-700", "secondary-800", "secondary-900", "danger", "danger-variant", "danger-50", "danger-100", "danger-200", "danger-300", "danger-400", "danger-500", "danger-600", "danger-700", "danger-800", "danger-900", "success", "success-variant", "success-50", "success-100", "success-200", "success-300", "success-400", "success-500", "success-600", "success-700", "success-800", "success-900", "ancillary-100", "ancillary-200", "ancillary-300", "ancillary-400", "ancillary-500", "ancillary-600", "ancillary-700", "ancillary-800", "ancillary-900", "on-surface-stroke"]),
49
+ /**
50
+ * @deprecated _No longer needed._
51
+ *
52
+ * In some cases `themeColor` may be inadvertently overridden by another style, this will ensure the selected color is applied.
53
+ *
54
+ * Defaults to **undefined**.
55
+ */
56
+ themeColorImportant: A(e.bool, "Divider", "No longer needed."),
57
+ /**
58
+ * Choose between dense and tall variants.
59
+ *
60
+ * Defaults to **'dense'**.
61
+ */
62
+ variant: e.oneOf(["dense", "tall"]),
63
+ /**
64
+ * Adds top and bottom margin.
65
+ *
66
+ * Defaults to **'none'**.
67
+ */
68
+ verticalMargin: e.oneOf(["none", "dense", "standard", "airy"])
69
+ }, Je = {
70
+ className: void 0,
71
+ dividerColor: void 0,
72
+ dividerColorImportant: void 0,
73
+ dividerHeight: void 0,
74
+ dividerStyle: "",
75
+ themeColor: "on-surface-stroke",
76
+ themeColorImportant: void 0,
77
+ variant: "dense",
78
+ verticalMargin: "none"
79
+ }, te = /* @__PURE__ */ k((l, a) => {
80
+ const {
81
+ dividerColor: n,
82
+ dividerColorImportant: t,
83
+ dividerHeight: r,
84
+ dividerStyle: o,
85
+ themeColor: c,
86
+ themeColorImportant: p,
87
+ variant: d,
88
+ className: f,
89
+ verticalMargin: b,
90
+ ..._
91
+ } = l, T = t || p, g = r || d, C = n || c, L = D();
92
+ j(a, () => L.current, []);
93
+ const R = y("lmnt", "lmnt-divider", T && "lmnt-divider--color-important", g && `lmnt-divider--${g}`, o && `lmnt-divider--${o}`, C && `lmnt-divider--${C}`, b && b !== "none" && `lmnt-divider--margin-${b}`, f);
94
+ return /* @__PURE__ */ i.createElement("hr", N({
95
+ ref: L,
96
+ className: R
97
+ }, _));
98
+ });
99
+ te.displayName = "Divider";
100
+ te.propTypes = Ge;
101
+ te.defaultProps = Je;
102
+ const Ke = {
103
+ /**
104
+ * Content to be rendered inside the component.
105
+ *
106
+ * Defaults to **null**.
107
+ */
108
+ children: e.node,
109
+ /**
110
+ * A reference to the component to apply the ripple to.
111
+ *
112
+ * Defaults to **undefined**.
113
+ */
114
+ componentRef: e.object,
115
+ /**
116
+ * Allows the ripple to extend beyond the component boundaries.
117
+ *
118
+ * Defaults to **undefined**.
119
+ */
120
+ unbounded: e.bool
121
+ }, Qe = {
122
+ children: null,
123
+ componentRef: void 0,
124
+ unbounded: void 0
125
+ }, ae = /* @__PURE__ */ k((l, a) => {
126
+ const {
127
+ componentRef: n,
128
+ unbounded: t,
129
+ children: r
130
+ } = l, o = D();
131
+ return j(a, () => o.current, []), G(() => {
132
+ const c = n.current;
133
+ return c && (o.current = ye.attachTo(n.current), t && (o.current.unbounded = !0)), () => {
134
+ c && o.current.destroy();
135
+ };
136
+ }, [n, t]), r;
137
+ });
138
+ ae.displayName = "Ripple";
139
+ ae.propTypes = Ke;
140
+ ae.defaultProps = Qe;
141
+ /**
142
+ * @license
143
+ * Copyright 2018 Google Inc.
144
+ *
145
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
146
+ * of this software and associated documentation files (the "Software"), to deal
147
+ * in the Software without restriction, including without limitation the rights
148
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
149
+ * copies of the Software, and to permit persons to whom the Software is
150
+ * furnished to do so, subject to the following conditions:
151
+ *
152
+ * The above copyright notice and this permission notice shall be included in
153
+ * all copies or substantial portions of the Software.
154
+ *
155
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
156
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
157
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
158
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
159
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
160
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
161
+ * THE SOFTWARE.
162
+ */
163
+ var Y = {
164
+ ICON_BUTTON_ON: "mdc-icon-button--on",
165
+ ROOT: "mdc-icon-button"
166
+ }, z = {
167
+ ARIA_LABEL: "aria-label",
168
+ ARIA_PRESSED: "aria-pressed",
169
+ DATA_ARIA_LABEL_OFF: "data-aria-label-off",
170
+ DATA_ARIA_LABEL_ON: "data-aria-label-on",
171
+ CHANGE_EVENT: "MDCIconButtonToggle:change"
172
+ };
173
+ /**
174
+ * @license
175
+ * Copyright 2018 Google Inc.
176
+ *
177
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
178
+ * of this software and associated documentation files (the "Software"), to deal
179
+ * in the Software without restriction, including without limitation the rights
180
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
181
+ * copies of the Software, and to permit persons to whom the Software is
182
+ * furnished to do so, subject to the following conditions:
183
+ *
184
+ * The above copyright notice and this permission notice shall be included in
185
+ * all copies or substantial portions of the Software.
186
+ *
187
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
188
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
189
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
190
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
191
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
192
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
193
+ * THE SOFTWARE.
194
+ */
195
+ var Re = (
196
+ /** @class */
197
+ function(l) {
198
+ Ie(a, l);
199
+ function a(n) {
200
+ var t = l.call(this, Ae(Ae({}, a.defaultAdapter), n)) || this;
201
+ return t.hasToggledAriaLabel = !1, t;
202
+ }
203
+ return Object.defineProperty(a, "cssClasses", {
204
+ get: function() {
205
+ return Y;
206
+ },
207
+ enumerable: !1,
208
+ configurable: !0
209
+ }), Object.defineProperty(a, "strings", {
210
+ get: function() {
211
+ return z;
212
+ },
213
+ enumerable: !1,
214
+ configurable: !0
215
+ }), Object.defineProperty(a, "defaultAdapter", {
216
+ get: function() {
217
+ return {
218
+ addClass: function() {
219
+ },
220
+ hasClass: function() {
221
+ return !1;
222
+ },
223
+ notifyChange: function() {
224
+ },
225
+ removeClass: function() {
226
+ },
227
+ getAttr: function() {
228
+ return null;
229
+ },
230
+ setAttr: function() {
231
+ }
232
+ };
233
+ },
234
+ enumerable: !1,
235
+ configurable: !0
236
+ }), a.prototype.init = function() {
237
+ var n = this.adapter.getAttr(z.DATA_ARIA_LABEL_ON), t = this.adapter.getAttr(z.DATA_ARIA_LABEL_OFF);
238
+ if (n && t) {
239
+ if (this.adapter.getAttr(z.ARIA_PRESSED) !== null)
240
+ throw new Error("MDCIconButtonToggleFoundation: Button should not set `aria-pressed` if it has a toggled aria label.");
241
+ this.hasToggledAriaLabel = !0;
242
+ } else
243
+ this.adapter.setAttr(z.ARIA_PRESSED, String(this.isOn()));
244
+ }, a.prototype.handleClick = function() {
245
+ this.toggle(), this.adapter.notifyChange({ isOn: this.isOn() });
246
+ }, a.prototype.isOn = function() {
247
+ return this.adapter.hasClass(Y.ICON_BUTTON_ON);
248
+ }, a.prototype.toggle = function(n) {
249
+ if (n === void 0 && (n = !this.isOn()), n ? this.adapter.addClass(Y.ICON_BUTTON_ON) : this.adapter.removeClass(Y.ICON_BUTTON_ON), this.hasToggledAriaLabel) {
250
+ var t = n ? this.adapter.getAttr(z.DATA_ARIA_LABEL_ON) : this.adapter.getAttr(z.DATA_ARIA_LABEL_OFF);
251
+ this.adapter.setAttr(z.ARIA_LABEL, t || "");
252
+ } else
253
+ this.adapter.setAttr(z.ARIA_PRESSED, "" + n);
254
+ }, a;
255
+ }(Fe)
256
+ );
257
+ /**
258
+ * @license
259
+ * Copyright 2018 Google Inc.
260
+ *
261
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
262
+ * of this software and associated documentation files (the "Software"), to deal
263
+ * in the Software without restriction, including without limitation the rights
264
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
265
+ * copies of the Software, and to permit persons to whom the Software is
266
+ * furnished to do so, subject to the following conditions:
267
+ *
268
+ * The above copyright notice and this permission notice shall be included in
269
+ * all copies or substantial portions of the Software.
270
+ *
271
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
272
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
273
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
274
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
275
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
276
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
277
+ * THE SOFTWARE.
278
+ */
279
+ var Xe = Re.strings, Ye = (
280
+ /** @class */
281
+ function(l) {
282
+ Ie(a, l);
283
+ function a() {
284
+ var n = l !== null && l.apply(this, arguments) || this;
285
+ return n.rippleComponent = n.createRipple(), n;
286
+ }
287
+ return a.attachTo = function(n) {
288
+ return new a(n);
289
+ }, a.prototype.initialSyncWithDOM = function() {
290
+ var n = this;
291
+ this.handleClick = function() {
292
+ n.foundation.handleClick();
293
+ }, this.listen("click", this.handleClick);
294
+ }, a.prototype.destroy = function() {
295
+ this.unlisten("click", this.handleClick), this.ripple.destroy(), l.prototype.destroy.call(this);
296
+ }, a.prototype.getDefaultFoundation = function() {
297
+ var n = this, t = {
298
+ addClass: function(r) {
299
+ return n.root.classList.add(r);
300
+ },
301
+ hasClass: function(r) {
302
+ return n.root.classList.contains(r);
303
+ },
304
+ notifyChange: function(r) {
305
+ n.emit(Xe.CHANGE_EVENT, r);
306
+ },
307
+ removeClass: function(r) {
308
+ return n.root.classList.remove(r);
309
+ },
310
+ getAttr: function(r) {
311
+ return n.root.getAttribute(r);
312
+ },
313
+ setAttr: function(r, o) {
314
+ return n.root.setAttribute(r, o);
315
+ }
316
+ };
317
+ return new Re(t);
318
+ }, Object.defineProperty(a.prototype, "ripple", {
319
+ get: function() {
320
+ return this.rippleComponent;
321
+ },
322
+ enumerable: !1,
323
+ configurable: !0
324
+ }), Object.defineProperty(a.prototype, "on", {
325
+ get: function() {
326
+ return this.foundation.isOn();
327
+ },
328
+ set: function(n) {
329
+ this.foundation.toggle(n);
330
+ },
331
+ enumerable: !1,
332
+ configurable: !0
333
+ }), a.prototype.createRipple = function() {
334
+ var n = new ye(this.root);
335
+ return n.unbounded = !0, n;
336
+ }, a;
337
+ }(je)
338
+ );
339
+ const Ze = {
340
+ /**
341
+ * Programmatically sets the toggle state of the button when used as a toggle button. If not set, the toggle state will be managed internally.
342
+ *
343
+ * Defaults to **false**.
344
+ */
345
+ active: e.bool,
346
+ /**
347
+ * Accessibility label for assistive technologies.
348
+ *
349
+ * Defaults to **null**.
350
+ */
351
+ ariaLabel: e.string,
352
+ /**
353
+ * Id of an element serving as a label for this IconButton instance. Used by assistive technologies.
354
+ *
355
+ * Defaults to **null**.
356
+ */
357
+ ariaLabelledBy: e.string,
358
+ /**
359
+ * The custom icon button notification badge to be rendered.
360
+ *
361
+ * Defaults to **undefined**.
362
+ */
363
+ badge: e.node,
364
+ /**
365
+ * The placement of the notification badge on the icon to start. It will flip to the opposite side if there is no room.
366
+ *
367
+ * Defaults to **'right-start'**.
368
+ */
369
+ badgePlacement: e.oneOf(["right-start", "left-start"]),
370
+ /**
371
+ * The content when when using the IconButton normally. Expects an `Icon` component. For toggle button functionality, use `toggleOn` and `toggleOff` instead.
372
+ *
373
+ * Defaults to **null**.
374
+ */
375
+ children: e.node,
376
+ /**
377
+ * The css class name to be passed through to the component markup.
378
+ *
379
+ * Defaults to **undefined**.
380
+ */
381
+ className: e.string,
382
+ /**
383
+ * @deprecated _Use iconSize='small' instead._
384
+ *
385
+ * Enables a smaller IconButton.
386
+ *
387
+ * Defaults to **undefined**.
388
+ */
389
+ dense: A(e.bool, "IconButton", 'Use iconSize="small" instead.'),
390
+ /**
391
+ * Disables the icon button.
392
+ *
393
+ * Defaults to **false**.
394
+ */
395
+ disabled: e.bool,
396
+ /**
397
+ * For simple use-cases, this will automatically create the icon object. Does not work with `toggle='true'`
398
+ *
399
+ * Defaults to **null**.
400
+ */
401
+ icon: e.oneOfType([e.string, e.node]),
402
+ /**
403
+ * One of 'xsmall', 'small', 'medium', 'large', and 'xlarge' will change the size of the icon. Defaults to medium.
404
+ *
405
+ * Defaults to **'medium'**.
406
+ */
407
+ iconSize: e.oneOf(["xsmall", "small", "medium", "large", "xlarge"]),
408
+ /**
409
+ * The icon type to be rendered. Not all icons have every type. To see which icons are available for different types see [Material Icons docs](https://material.io/tools/icons)
410
+ *
411
+ * Defaults to **'filled'**.
412
+ */
413
+ iconType: e.oneOf(["filled", "outlined", "rounded", "two-tone", "sharp"]),
414
+ /**
415
+ * Fired when the user clicks the IconButton, will return toggle state, if applicable.
416
+ *
417
+ * Defaults to **null**.
418
+ */
419
+ onClick: e.func,
420
+ /**
421
+ * TabIndex of the button.
422
+ *
423
+ * Defaults to **0**.
424
+ */
425
+ tabIndex: e.number,
426
+ /**
427
+ * By default a button will be rendered, this allows another tag/component to be used instead. A block type element/component is suggested.
428
+ *
429
+ * Defaults to **null**.
430
+ */
431
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
432
+ /**
433
+ * The content to be rendered when the `IconButton` is toggled off. Expects an `Icon` component. The typical use case for a toggle button would be to set an Icon for `toggleOn` and `toggleOff`, leaving children blank.
434
+ *
435
+ * Defaults to **null**.
436
+ */
437
+ toggleOff: e.node,
438
+ /**
439
+ * The `aria-label` value to be read by a screen-reader when the button is toggled off. Example 'Add to Favorites'. Alternatively, `toggleOffAriaLabelledBy` may be used instead.
440
+ *
441
+ * Defaults to **null**.
442
+ */
443
+ toggleOffAriaLabel: e.string,
444
+ /**
445
+ * The `aria-labelledby`value when the button is toggled on. This should be the `id `of a parent element to be read by a screen reader instead of `aria-label`.
446
+ *
447
+ * Defaults to **null**.
448
+ */
449
+ toggleOffAriaLabelledBy: e.string,
450
+ /**
451
+ * The content to be rendered when the `IconButton` is toggled on. Expects an `Icon` component. The typical use case for a toggle button would be to set an Icon for `toggleOn` and `toggleOff`, leaving children blank.
452
+ *
453
+ * Defaults to **null**.
454
+ */
455
+ toggleOn: e.node,
456
+ /**
457
+ * The `aria-label` value to be read by a screen-reader when the button is toggled on. Example 'Remove from Favorites'. Alternatively, `toggleOnAriaLabelledBy` may be used instead.
458
+ *
459
+ * Defaults to **null**.
460
+ */
461
+ toggleOnAriaLabel: e.string,
462
+ /**
463
+ * The `aria-labelledby`value when the button is toggled on. This should be the `id` of a parent element to be read by a screen reader instead of `aria-label`.
464
+ *
465
+ * Defaults to **null**.
466
+ */
467
+ toggleOnAriaLabelledBy: e.string,
468
+ /**
469
+ * Variants prefixed with `filled-` will add a background color to the icon according to the theme. Variants prefixed with ` color-` will change the color of the icon according to the theme.
470
+ *
471
+ * Defaults to **empty string**.
472
+ */
473
+ variant: ee(e.oneOf(["", "filled-danger-alt", "filled-danger", "filled-primary", "filled-secondary", "color-primary", "color-secondary", "color-on-dark", "color-on-unknown-black", "secondary-on-surface"]), ["primary-alt", "secondary-alt", "primary", "danger-alt", "danger"], "IconButton", "Please use one of '','filled-danger-alt','filled-danger','filled-primary','filled-secondary','color-primary','color-secondary','color-on-dark','color-on-unknown-black','secondary-on-surface'.")
474
+ }, en = {
475
+ active: !1,
476
+ ariaLabel: null,
477
+ ariaLabelledBy: null,
478
+ badge: void 0,
479
+ badgePlacement: "right-start",
480
+ children: null,
481
+ className: void 0,
482
+ dense: void 0,
483
+ disabled: !1,
484
+ icon: null,
485
+ iconSize: "medium",
486
+ iconType: "filled",
487
+ tabIndex: 0,
488
+ tag: null,
489
+ toggleOff: null,
490
+ toggleOffAriaLabel: null,
491
+ toggleOffAriaLabelledBy: null,
492
+ toggleOn: null,
493
+ toggleOnAriaLabel: null,
494
+ toggleOnAriaLabelledBy: null,
495
+ variant: ""
496
+ }, re = /* @__PURE__ */ k((l, a) => {
497
+ const {
498
+ active: n,
499
+ ariaLabel: t,
500
+ ariaLabelledBy: r,
501
+ badge: o,
502
+ badgePlacement: c,
503
+ children: p,
504
+ className: d,
505
+ dense: f,
506
+ disabled: b,
507
+ icon: _,
508
+ iconSize: T,
509
+ iconType: g,
510
+ onClick: C,
511
+ noHover: L,
512
+ tabIndex: R,
513
+ tag: q,
514
+ toggleOff: I,
515
+ toggleOffAriaLabel: H,
516
+ toggleOffAriaLabelledBy: V,
517
+ toggleOn: J,
518
+ toggleOnAriaLabel: h,
519
+ toggleOnAriaLabelledBy: P,
520
+ variant: m,
521
+ ...v
522
+ } = l, B = D(), M = D(), $ = D(), U = J && I;
523
+ let S = T;
524
+ S === "medium" && f && (S = "small"), o && (S === "small" || S === "xsmall") && (S = "medium"), j(a, () => B.current, []);
525
+ const w = y("lmnt", "lmnt-icon-button", "mdc-icon-button", L && "lmnt-icon-button__no-hover", (m === "primary" || m === "primary-alt" || m === "secondary" || m === "danger" || m === "danger-alt" || m === "filled-primary" || m === "filled-primary-alt" || m === "filled-secondary" || m === "filled-danger" || m === "filled-danger-alt") && "lmnt-icon-button--fill", (m === "danger-alt" || m === "filled-danger-alt") && "lmnt-icon-button--fill-danger-alt", (m === "danger" || m === "filled-danger") && "lmnt-icon-button--fill-danger", (m === "primary" || m === "filled-primary") && "lmnt-icon-button--fill-primary", (m === "primary-alt" || m === "filled-secondary") && "lmnt-icon-button--fill-secondary", (m === "secondary-alt" || m === "color-on-dark") && "lmnt-icon-button--color-on-dark", m === "color-primary" && "lmnt-icon-button--color-primary", m === "color-secondary" && "lmnt-icon-button--color-secondary", m === "color-on-unknown-black" && "lmnt-icon-button--on-unknown-black", m === "secondary-on-surface" && "lmnt-icon-button--secondary-on-surface", S && `lmnt-icon-button--${S}`, d);
526
+ G(() => (U ? $.current = Ye.attachTo(B.current) : (M.current = ye.attachTo(B.current), M.current.unbounded = !0), () => {
527
+ U ? $.current.destroy() : M.current.destroy();
528
+ }), [$, U, M]), G(() => {
529
+ U && ($.current.on = n);
530
+ }, [n, U, $]);
531
+ const K = (s) => {
532
+ C && C(U ? $.current.on : s);
533
+ }, E = q || "button";
534
+ return /* @__PURE__ */ i.createElement(E, N({
535
+ "aria-label": t,
536
+ "aria-labelledby": r,
537
+ "data-aria-label-on": h || P || t,
538
+ "data-aria-label-off": H || V || t,
539
+ onClick: K,
540
+ ref: B,
541
+ className: w,
542
+ disabled: b,
543
+ tabIndex: R
544
+ }, v), _ && /* @__PURE__ */ i.createElement(Z, {
545
+ badge: o,
546
+ badgePlacement: c,
547
+ icon: _,
548
+ iconSize: S,
549
+ iconType: g
550
+ }), p && me(p, (s) => {
551
+ var O, u;
552
+ return {
553
+ className: y("mdc-icon-button__icon", s == null || (O = s.props) === null || O === void 0 ? void 0 : O.className),
554
+ "aria-hidden": (s == null || (u = s.props) === null || u === void 0 ? void 0 : u["aria-hidden"]) || t || r
555
+ };
556
+ }), U && n && me(J, (s) => {
557
+ var O, u, x;
558
+ return {
559
+ className: y("mdc-icon-button__icon", s == null || (O = s.props) === null || O === void 0 ? void 0 : O.className),
560
+ "aria-label": (s == null || (u = s.props) === null || u === void 0 ? void 0 : u["aria-label"]) || h || P || t,
561
+ "aria-hidden": (s == null || (x = s.props) === null || x === void 0 ? void 0 : x["aria-hidden"]) || h || P || t
562
+ };
563
+ }), U && !n && me(I, (s) => {
564
+ var O, u, x;
565
+ return {
566
+ className: y("mdc-icon-button__icon", s == null || (O = s.props) === null || O === void 0 ? void 0 : O.className),
567
+ "aria-label": (s == null || (u = s.props) === null || u === void 0 ? void 0 : u["aria-label"]) || H || V || t,
568
+ "aria-hidden": (s == null || (x = s.props) === null || x === void 0 ? void 0 : x["aria-hidden"]) || H || V || t
569
+ };
570
+ }));
571
+ });
572
+ re.displayName = "IconButton";
573
+ re.propTypes = Ze;
574
+ re.defaultProps = en;
575
+ const nn = {
576
+ /**
577
+ * @deprecated _Use `themeColor='secondary'` instead._
578
+ *
579
+ * Preview feature, this may change. Apply alternative button color scheme (defined by the individual theme).
580
+ *
581
+ * Defaults to **undefined**.
582
+ */
583
+ altColor: A(e.bool, "Button", 'Use `themeColor="secondary"` instead.'),
584
+ /**
585
+ * One of 'xsmall', 'small', 'medium', 'large' and 'xlarge' will change the size of the button. Defaults according to your theme.
586
+ *
587
+ * Defaults to **'themeDefault'**.
588
+ */
589
+ buttonSize: e.oneOf(["xsmall", "small", "medium", "large", "xlarge", "themeDefault"]),
590
+ /**
591
+ * Content to be rendered inside the button. Can be used instead `label` of to provide more flexibility. Accepts any valid markup. _Warning, if Label is set, it will be used instead of child content._
592
+ *
593
+ * Defaults to **null**.
594
+ */
595
+ children: e.node,
596
+ /**
597
+ * The css class name to be passed through to the component markup.
598
+ *
599
+ * Defaults to **undefined**.
600
+ */
601
+ className: e.string,
602
+ /**
603
+ * @deprecated _forwardRef has been implemented for Button._
604
+ *
605
+ * Reference to the DOM button. This enables a greater level of integration.
606
+ *
607
+ * Defaults to **undefined**.
608
+ */
609
+ customRef: A(e.oneOfType([
610
+ e.func,
611
+ // eslint-disable-next-line react/forbid-prop-types
612
+ e.shape({
613
+ current: e.any
614
+ })
615
+ ]), "Button", "forwardRef has been implemented for Button."),
616
+ /**
617
+ * @deprecated _Use `variant='danger'` instead._
618
+ *
619
+ * Apply danger style to the button.
620
+ *
621
+ * Defaults to **undefined**.
622
+ */
623
+ danger: A(e.bool, "Button", 'Use `variant="danger"` instead.'),
624
+ /**
625
+ * Prevent the user from interacting with the component.
626
+ *
627
+ * Defaults to **false**.
628
+ */
629
+ disabled: e.bool,
630
+ /**
631
+ * Sets elevation of the button. Default will be the theme default.
632
+ *
633
+ * Defaults to **'default'**.
634
+ */
635
+ elevation: e.oneOf(["default", "elevated", "flat"]),
636
+ /**
637
+ * @deprecated _Use `variant='filled'` instead._
638
+ *
639
+ * Apply a filled-in style. Previously called `primary`.
640
+ *
641
+ * Defaults to **undefined**.
642
+ */
643
+ filled: A(e.bool, "Button", 'Use `variant="filled"` instead.'),
644
+ /**
645
+ * Applies a full-width style where the textfield will fill it's container.
646
+ *
647
+ * Defaults to **false**.
648
+ */
649
+ fullWidth: e.bool,
650
+ /**
651
+ * The button will render as an anchor tag. If the tag prop is set, that prop will take precedence.
652
+ *
653
+ * Defaults to **null**.
654
+ */
655
+ href: e.string,
656
+ /**
657
+ * The displayed text. Expects a valid string. If label and children are both set, label will take priority.
658
+ *
659
+ * Defaults to **null**.
660
+ */
661
+ label: e.string,
662
+ /**
663
+ * Adds the given Icon to the left of the button text. May not be used with `trailingIcon` - if `leadingIcon` and `trailingIcon` are both set, `leadingIcon` will take priority. Expects the name of a valid Material.io icon, however an icon component may be passed in instead for more control,
664
+ *
665
+ * Defaults to **undefined**.
666
+ */
667
+ leadingIcon: e.oneOfType([e.string, e.func, e.node]),
668
+ /**
669
+ * The primary interaction event for button.
670
+ *
671
+ * Defaults to **null**.
672
+ */
673
+ onClick: e.func,
674
+ /**
675
+ * @deprecated _Use `variant='outlined'`._
676
+ *
677
+ * Apply outlined style to the button. Previously called `secondary`.
678
+ *
679
+ * Defaults to **undefined**.
680
+ */
681
+ outlined: A(e.bool, "Button", 'Use `variant="outlined"`.'),
682
+ /**
683
+ * @deprecated _Use `variant='filled'` instead._
684
+ *
685
+ * Apply primary style to the Button.
686
+ *
687
+ * Defaults to **undefined**.
688
+ */
689
+ primary: A(e.bool, "Button", 'Use `variant="filled"` instead.'),
690
+ /**
691
+ * @deprecated _Use `'variant=outlined'` instead._
692
+ *
693
+ * Apply secondary style to the Button.
694
+ *
695
+ * Defaults to **undefined**.
696
+ */
697
+ secondary: A(e.bool, "Button", 'Use `"variant=outlined"` instead.'),
698
+ /**
699
+ * By default a button or anchor tag will be rendered, this allows another tag/component to be used instead. A block type element/component is suggested.
700
+ *
701
+ * Defaults to **null**.
702
+ */
703
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
704
+ /**
705
+ * @deprecated _Use `variant='embedded'` instead._
706
+ *
707
+ * Apply tertiary style to the Button.
708
+ *
709
+ * Defaults to **undefined**.
710
+ */
711
+ tertiary: A(e.bool, "Button", 'Use `variant="embedded"` instead.'),
712
+ /**
713
+ * @deprecated _Use `variant='text'` instead._
714
+ *
715
+ * Apply unfilled, un-outlined style to the Button. Previously called `tertiary`.
716
+ *
717
+ * Defaults to **undefined**.
718
+ */
719
+ text: A(e.bool, "Button", 'Use `variant="text"` instead.'),
720
+ /**
721
+ * Sets the theme color for the button. Most commonly used when the control is placed on a darker surface.
722
+ *
723
+ * Defaults to **'primary'**.
724
+ */
725
+ themeColor: ee(e.oneOf(["primary", "secondary", "danger", "success", "on-unknown-black", "on-unknown-white", "on-primary", "on-secondary", "on-success", "on-danger"]), ["onUnknownBlack", "onUnknownWhite"], "Button", "Please use one of 'primary','secondary','danger','success','on-unknown-black','on-unknown-white','on-primary','on-secondary','on-success','on-danger'."),
726
+ /**
727
+ * Adds the given Icon to the right of the button text. May not be used with `leadingIcon` - if `leadingIcon` and `trailingIcon` are both set, `leadingIcon` will take priority. Expects the name of a valid Material.io icon, however an icon component may be passed in instead for more control.
728
+ *
729
+ * Defaults to **undefined**.
730
+ */
731
+ trailingIcon: e.oneOfType([e.string, e.func, e.node]),
732
+ /**
733
+ * This applies the html button type (button, submit, reset) or the anchor media type when used with the href property.
734
+ *
735
+ * Defaults to **'button'**.
736
+ */
737
+ type: e.oneOf(["button", "submit", "reset"]),
738
+ /**
739
+ * @deprecated _Use `elevation='flat' instead._
740
+ *
741
+ * Remove elevation.
742
+ *
743
+ * Defaults to **undefined**.
744
+ */
745
+ unelevated: A(e.bool, "Button", 'Use `elevation="flat" instead.'),
746
+ /**
747
+ * Applies the selected style to the button. `rounded-small` and `rounded-micro` are only available on select themes.
748
+ *
749
+ * Defaults to **'filled'**.
750
+ */
751
+ variant: e.oneOf(["filled", "outlined", "danger", "text", "success", "rounded-small", "rounded-micro"])
752
+ }, tn = {
753
+ altColor: void 0,
754
+ buttonSize: "themeDefault",
755
+ children: null,
756
+ className: void 0,
757
+ customRef: void 0,
758
+ danger: void 0,
759
+ disabled: !1,
760
+ elevation: "default",
761
+ filled: void 0,
762
+ fullWidth: !1,
763
+ href: null,
764
+ label: null,
765
+ leadingIcon: void 0,
766
+ outlined: void 0,
767
+ primary: void 0,
768
+ secondary: void 0,
769
+ tag: null,
770
+ tertiary: void 0,
771
+ text: void 0,
772
+ themeColor: "primary",
773
+ trailingIcon: void 0,
774
+ type: "button",
775
+ unelevated: void 0,
776
+ variant: "filled"
777
+ }, an = {
778
+ /**
779
+ * Children to be rendered. Expects multiple Element Buttons
780
+ *
781
+ * Defaults to **null**.
782
+ */
783
+ children: e.node,
784
+ /**
785
+ * How much spacing between buttons. Dense is 8p, standard is 16px and airy is 24px.
786
+ *
787
+ * Defaults to **'standard'**.
788
+ */
789
+ variant: e.oneOf(["dense", "standard", "airy"])
790
+ }, rn = {
791
+ children: null,
792
+ variant: "standard"
793
+ }, oe = /* @__PURE__ */ k((l, a) => {
794
+ const {
795
+ altColor: n,
796
+ buttonSize: t,
797
+ children: r,
798
+ className: o,
799
+ customRef: c,
800
+ disabled: p,
801
+ elevation: d,
802
+ primary: f,
803
+ secondary: b,
804
+ tertiary: _,
805
+ text: T,
806
+ danger: g,
807
+ filled: C,
808
+ fullWidth: L,
809
+ href: R,
810
+ label: q,
811
+ leadingIcon: I,
812
+ onClick: H,
813
+ outlined: V,
814
+ tag: J,
815
+ themeColor: h,
816
+ trailingIcon: P,
817
+ type: m,
818
+ unelevated: v,
819
+ variant: B,
820
+ ...M
821
+ } = l, $ = D(c || null);
822
+ j(a, () => $.current, []);
823
+ const U = q || r, S = J || (R ? "a" : "button"), w = B === "outlined" || V || b, K = B === "rounded-small" || B === "rounded-micro", E = B === "text" || T || _, s = B === "danger" || g || h === "danger", O = B === "success" || h === "success", u = !w && !E && (B === "filled" || C || f), x = n || h === "secondary", F = h === "primary", Se = P && !I, Q = h === "onUnknownBlack" || h === "on-unknown-black", X = h === "onUnknownWhite" || h === "on-unknown-white", se = h === "onPrimary" || h === "on-primary", Te = h === "onSecondary" || h === "on-secondary", De = Le(() => typeof I == "string" ? /* @__PURE__ */ i.createElement(Z, {
824
+ tabIndex: 0,
825
+ role: "button",
826
+ className: "mdc-button__icon lmnt-button__icon--leading",
827
+ icon: I
828
+ }) : typeof I == "function" ? I({
829
+ className: "mdc-button__icon lmnt-button__icon--leading"
830
+ }) : Be(I, "mdc-button__icon lmnt-button__icon--leading"), [I]), ze = Le(() => typeof P == "string" ? /* @__PURE__ */ i.createElement(Z, {
831
+ tabIndex: 0,
832
+ role: "button",
833
+ className: "mdc-button__icon lmnt-button__icon--trailing",
834
+ icon: P
835
+ }) : typeof P == "function" ? P({
836
+ className: "mdc-button__icon lmnt-button__icon--trailing"
837
+ }) : Be(P, "mdc-button__icon lmnt-button__icon--trailing"), [P]);
838
+ return /* @__PURE__ */ i.createElement(ae, {
839
+ componentRef: $
840
+ }, /* @__PURE__ */ i.createElement(S, N({
841
+ ref: $,
842
+ href: R,
843
+ onClick: H,
844
+ type: m,
845
+ disabled: p,
846
+ className: y("lmnt", "mdc-button", "lmnt-button", "mdc-button--touch", u && v && F && "lmnt-button--filled-primary", u && s && "lmnt-button--filled-danger", u && O && "lmnt-button--filled-success", u && v && x && "lmnt-button--filled-secondary", u && !v && F && ["lmnt-button--filled-primary", "mdc-button--raised"], u && !v && x && ["lmnt-button--filled-secondary", "mdc-button--raised"], u && !v && h === "on-primary" && ["lmnt-button--filled-on-primary", "mdc-button--raised"], u && !v && h === "on-secondary" && ["lmnt-button--filled-on-secondary", "mdc-button--raised"], u && !v && h === "on-success" && ["lmnt-button--filled-on-success", "mdc-button--raised"], u && !v && h === "on-danger" && ["lmnt-button--filled-on-danger", "mdc-button--raised"], u && !v && Q && ["lmnt-button--filled-on-unknown-black", "mdc-button--raised"], u && !v && X && ["lmnt-button--filled-on-unknown-white", "mdc-button--raised"], w && F && ["lmnt-button--outlined-primary", "mdc-button--outlined"], u && !v && se && ["lmnt-button--filled-on-primary", "mdc-button--raised"], w && x && ["lmnt-button--outlined-secondary", "mdc-button--outlined"], w && se && "lmnt-button--outlined-on-primary mdc-button--outlined", w && Te && "lmnt-button--outlined-on-secondary mdc-button--outlined", w && X && "lmnt-button--outlined-on-unknown-white mdc-button--outlined", w && Q && "lmnt-button--outlined-on-unknown-black mdc-button--outlined", E && se && "lmnt-button--text-on-primary mdc-button__text", E && Te && "lmnt-button--text-on-secondary mdc-button__text", E && X && "lmnt-button--text-on-unknown-white mdc-button__text", E && Q && "lmnt-button--text-on-unknown-black mdc-button__text", K && X && "lmnt-button--text-on-unknown-white mdc-button__text", K && Q && "lmnt-button--text-on-unknown-black mdc-button__text", E && F && "lmnt-button--text-primary", E && x && "lmnt-button--text-secondary", E && s && "lmnt-button--text-danger", E && O && "lmnt-button--text-success", s && v && x && "lmnt-button--danger-secondary", s && !v && x && ["lmnt-button--danger-secondary", "mdc-button--raised"], s && v && F && "lmnt-button--danger-primary", s && !v && F && ["lmnt-button--danger-primary", "mdc-button--raised"], s && w && ["lmnt-button--danger-primary", "mdc-button--outlined"], O && v && F && "lmnt-button--success-primary", O && !v && F && ["lmnt-button--success-primary", "mdc-button--raised"], O && w && ["lmnt-button--success-primary", "mdc-button--outlined"], O && w && ["lmnt-button--success-primary", "mdc-button--outlined"], L && "lmnt-button--full-width", v && !E && "mdc-button--unelevated", d === "flat" && "lmnt-button--flat", d === "elevated" && "lmnt-button--elevated", `lmnt-button--${t}`, B === "rounded-small" && "lmnt-button--rounded lmnt-button--rounded-small mdc-button__text lmnt-button--text-primary", B === "rounded-micro" && "lmnt-button--rounded lmnt-button--rounded-micro mdc-button__text lmnt-button--text-primary", o, "mdc-touch-target-wrapper")
847
+ }, M), /* @__PURE__ */ i.createElement("span", {
848
+ className: "mdc-button__ripple"
849
+ }), I && De(), /* @__PURE__ */ i.createElement("span", {
850
+ className: "mdc-button__label"
851
+ }, U), Se && ze(), /* @__PURE__ */ i.createElement("span", {
852
+ className: "mdc-button__touch"
853
+ })));
854
+ });
855
+ oe.displayName = "Button";
856
+ oe.propTypes = nn;
857
+ oe.defaultProps = tn;
858
+ const pe = /* @__PURE__ */ k((l, a) => {
859
+ const {
860
+ children: n,
861
+ className: t,
862
+ variant: r,
863
+ ...o
864
+ } = l;
865
+ return /* @__PURE__ */ i.createElement("div", N({
866
+ ref: a,
867
+ className: y("lmnt", "lmnt-button-group", r === "dense" && "lmnt-button-group--dense", r === "standard" && "lmnt-button-group--standard", r === "airy" && "lmnt-button-group--airy", t)
868
+ }, o), n);
869
+ });
870
+ pe.displayName = "ButtonGroup";
871
+ pe.propTypes = an;
872
+ pe.defaultProps = rn;
873
+ var on = function() {
874
+ }, $e = typeof window < "u", ln = $e ? qe : G, Ue = {
875
+ x: 0,
876
+ y: 0,
877
+ width: 0,
878
+ height: 0,
879
+ top: 0,
880
+ left: 0,
881
+ bottom: 0,
882
+ right: 0
883
+ };
884
+ function dn() {
885
+ var l = ue(null), a = l[0], n = l[1], t = ue(Ue), r = t[0], o = t[1], c = ne(function() {
886
+ return new window.ResizeObserver(function(p) {
887
+ if (p[0]) {
888
+ var d = p[0].contentRect, f = d.x, b = d.y, _ = d.width, T = d.height, g = d.top, C = d.left, L = d.bottom, R = d.right;
889
+ o({ x: f, y: b, width: _, height: T, top: g, left: C, bottom: L, right: R });
890
+ }
891
+ });
892
+ }, []);
893
+ return ln(function() {
894
+ if (a)
895
+ return c.observe(a), function() {
896
+ c.disconnect();
897
+ };
898
+ }, [a]), [n, r];
899
+ }
900
+ const cn = $e && typeof window.ResizeObserver < "u" ? dn : function() {
901
+ return [on, Ue];
902
+ }, sn = {
903
+ /**
904
+ * Alignment of the Card Body.
905
+ *
906
+ * Defaults to **'left-top'**.
907
+ */
908
+ bodyAlignment: e.oneOf(["left-center", "left-top", "left-bottom", "centered", "right-center", "right-top", "right-bottom"]),
909
+ /**
910
+ * Content to be rendered inside the Card. Should be one of CardActions, CardBody, CardContent, CardDivider, CardFilter, CardMedia, or CardTitle.
911
+ *
912
+ * Defaults to **null**.
913
+ */
914
+ children: e.node,
915
+ /**
916
+ * Height style property of card.
917
+ *
918
+ * Defaults to **'auto'**.
919
+ */
920
+ height: e.string,
921
+ /**
922
+ * If true the card will be styled for a loading spinner
923
+ *
924
+ * Defaults to **false**.
925
+ */
926
+ loadingCard: e.bool,
927
+ /**
928
+ * Passthrough style object.
929
+ *
930
+ * Defaults to **null**.
931
+ */
932
+ style: e.object,
933
+ /**
934
+ * Background color of the card. It is recommended to set to transparent if setting theme color on the Card Title or Card Body.
935
+ *
936
+ * Defaults to **'surface'**.
937
+ */
938
+ themeColor: e.oneOf(["transparent", "surface", "surface-variant", "primary", "primary-variant", "primary-50", "primary-100", "primary-200", "primary-300", "primary-400", "primary-500", "primary-600", "primary-700", "primary-800", "primary-900", "secondary", "secondary-variant", "secondary-50", "secondary-100", "secondary-200", "secondary-300", "secondary-400", "secondary-500", "secondary-600", "secondary-700", "secondary-800", "secondary-900", "danger", "danger-variant", "danger-50", "danger-100", "danger-200", "danger-300", "danger-400", "danger-500", "danger-600", "danger-700", "danger-800", "danger-900", "ancillary-100", "ancillary-200", "ancillary-300", "ancillary-400", "ancillary-500", "ancillary-600", "ancillary-700", "ancillary-800", "ancillary-900"]),
939
+ /**
940
+ * Variant options include `default` (set by theme), `flat`, `outlined`, and `raised`. The `flat` variant removes elevation. The `outlined` variant adds border and removes elevation. The `raised` variant adds elevation.
941
+ *
942
+ * Defaults to **'default'**.
943
+ */
944
+ variant: e.oneOf(["default", "flat", "outlined", "raised"])
945
+ }, mn = {
946
+ bodyAlignment: "left-top",
947
+ children: null,
948
+ height: "auto",
949
+ loadingCard: !1,
950
+ style: null,
951
+ themeColor: "surface",
952
+ variant: "default"
953
+ }, un = {
954
+ /**
955
+ * Override the default (`primary`) color with the `secondary` color. Most commonly used when the control is placed on a darker surface.
956
+ *
957
+ * Defaults to **'primary'**.
958
+ */
959
+ actionButtonThemeColor: e.oneOf(["primary", "secondary"]),
960
+ /**
961
+ * Content to be rendered inside the button. Can be used instead `label` of to provide more flexibility. Accepts any valid markup. _Warning, if Label is set, it will be used instead of child content._
962
+ *
963
+ * Defaults to **null**.
964
+ */
965
+ children: e.node,
966
+ /**
967
+ * The css class name to be passed through to the component markup.
968
+ *
969
+ * Defaults to **undefined**.
970
+ */
971
+ className: e.string,
972
+ /**
973
+ * Reference to the DOM button. This enables a greater level of integration.
974
+ *
975
+ * Defaults to **undefined**.
976
+ */
977
+ customRef: e.oneOfType([
978
+ e.func,
979
+ // eslint-disable-next-line react/forbid-prop-types
980
+ e.shape({
981
+ current: e.any
982
+ })
983
+ ]),
984
+ /**
985
+ * Prevent the user from interacting with the component.
986
+ *
987
+ * Defaults to **false**.
988
+ */
989
+ disabled: e.bool,
990
+ /**
991
+ * Applies a full-width style where the button will fill it's container.
992
+ *
993
+ * Defaults to **false**.
994
+ */
995
+ fullWidth: e.bool,
996
+ /**
997
+ * The button will render as an anchor tag.
998
+ *
999
+ * Defaults to **null**.
1000
+ */
1001
+ href: e.string,
1002
+ /**
1003
+ * The displayed text. Expects a valid string. If label and children are both set, label will take priority.
1004
+ *
1005
+ * Defaults to **null**.
1006
+ */
1007
+ label: e.string,
1008
+ /**
1009
+ * Adds the given Icon to the left of the button text. May not be used with `trailingIcon` - if `leadingIcon` and `trailingIcon` are both set, `leadingIcon` will take priority. Expects the name of a valid Material.io icon, however an icon component may be passed in instead for more control,
1010
+ *
1011
+ * Defaults to **null**.
1012
+ */
1013
+ leadingIcon: e.oneOfType([e.string, e.node]),
1014
+ /**
1015
+ * The primary interaction event for button.
1016
+ *
1017
+ * Defaults to **null**.
1018
+ */
1019
+ onClick: e.func,
1020
+ /**
1021
+ * Adds the given Icon to the right of the button text. May not be used with `leadingIcon` - if `leadingIcon` and `trailingIcon` are both set, `leadingIcon` will take priority. Expects the name of a valid Material.io icon, however an icon component may be passed in instead for more control.
1022
+ *
1023
+ * Defaults to **null**.
1024
+ */
1025
+ trailingIcon: e.oneOfType([e.string, e.node]),
1026
+ /**
1027
+ * This applies the html button type (button, submit, reset) or the anchor media type when used with the href property.
1028
+ *
1029
+ * Defaults to **'button'**.
1030
+ */
1031
+ type: e.oneOf(["button", "submit", "reset"])
1032
+ }, yn = {
1033
+ actionButtonThemeColor: "primary",
1034
+ children: null,
1035
+ className: void 0,
1036
+ customRef: void 0,
1037
+ disabled: !1,
1038
+ fullWidth: !1,
1039
+ href: null,
1040
+ label: null,
1041
+ leadingIcon: null,
1042
+ trailingIcon: null,
1043
+ type: "button"
1044
+ }, pn = {
1045
+ /**
1046
+ * Programmatically sets the toggle state of the button when used as a toggle button. If not set, the toggle state will be managed internally.
1047
+ *
1048
+ * Defaults to **false**.
1049
+ */
1050
+ active: e.bool,
1051
+ /**
1052
+ * Accessibility label for assistive technologies.
1053
+ *
1054
+ * Defaults to **null**.
1055
+ */
1056
+ ariaLabel: e.string,
1057
+ /**
1058
+ * Id of the component being labeled for assistive technologies.
1059
+ *
1060
+ * Defaults to **null**.
1061
+ */
1062
+ ariaLabelledBy: e.string,
1063
+ /**
1064
+ * The content when when using the Card Action Icon Button normally. Expects a string, but a valid custom icon is accepted. For toggle button functionality, use `toggleOn` and `toggleOff` instead.
1065
+ *
1066
+ * Defaults to **null**.
1067
+ */
1068
+ children: e.node,
1069
+ /**
1070
+ * The css class name to be passed through to the component markup.
1071
+ *
1072
+ * Defaults to **undefined**.
1073
+ */
1074
+ className: e.string,
1075
+ /**
1076
+ * Disables the icon button.
1077
+ *
1078
+ * Defaults to **false**.
1079
+ */
1080
+ disabled: e.bool,
1081
+ /**
1082
+ * Fired when the user clicks the Card Action Icon Button, will return toggle state, if applicable.
1083
+ *
1084
+ * Defaults to **null**.
1085
+ */
1086
+ onClick: e.func,
1087
+ /**
1088
+ * The content to be rendered when the Card Action Icon Button is toggled off. Expects a string, but a valid custom icon is accepted. The typical use case for a toggle button would be to set an Icon for `toggleOn` and `toggleOff`, leaving children blank.
1089
+ *
1090
+ * Defaults to **null**.
1091
+ */
1092
+ toggleOff: e.node,
1093
+ /**
1094
+ * The `aria-label` value to be read by a screen-reader when the button is toggled off. Example 'Add to Favorites'. Alternatively, `toggleOffAriaLabelledBy` may be used instead.
1095
+ *
1096
+ * Defaults to **null**.
1097
+ */
1098
+ toggleOffAriaLabel: e.string,
1099
+ /**
1100
+ * The `aria-labelledby`value when the button is toggled on. This should be the `id `of a parent element to be read by a screen reader instead of `aria-label`.
1101
+ *
1102
+ * Defaults to **null**.
1103
+ */
1104
+ toggleOffAriaLabelledBy: e.string,
1105
+ /**
1106
+ * The content to be rendered when the Card Action Icon Button is toggled on. Expects a string, but a valid custom icon is accepted. The typical use case for a toggle button would be to set an Icon for `toggleOn` and `toggleOff`, leaving children blank.
1107
+ *
1108
+ * Defaults to **null**.
1109
+ */
1110
+ toggleOn: e.node,
1111
+ /**
1112
+ * The `aria-label` value to be read by a screen-reader when the button is toggled on. Example 'Remove from Favorites'. Alternatively, `toggleOnAriaLabelledBy` may be used instead.
1113
+ *
1114
+ * Defaults to **null**.
1115
+ */
1116
+ toggleOnAriaLabel: e.string,
1117
+ /**
1118
+ * The `aria-labelledby`value when the button is toggled on. This should be the `id` of a parent element to be read by a screen reader instead of `aria-label`.
1119
+ *
1120
+ * Defaults to **null**.
1121
+ */
1122
+ toggleOnAriaLabelledBy: e.string,
1123
+ /**
1124
+ * Variants prefixed with `filled-` will add a background color to the icon according to the theme. Variants prefixed with ` color-` will change the color of the icon according to the theme.
1125
+ *
1126
+ * Defaults to **empty string**.
1127
+ */
1128
+ variant: ee(e.oneOf(["", "filled-danger-alt", "filled-danger", "filled-primary", "filled-secondary", "color-primary", "color-secondary", "color-on-dark"]), ["primary-alt", "secondary-alt", "primary", "danger-alt", "danger"], "CardActionIcon", "Please use one of '','filled-danger-alt','filled-danger','filled-primary','filled-secondary','color-primary','color-secondary','color-on-dark'.")
1129
+ }, gn = {
1130
+ active: !1,
1131
+ ariaLabel: null,
1132
+ ariaLabelledBy: null,
1133
+ children: null,
1134
+ className: void 0,
1135
+ disabled: !1,
1136
+ toggleOff: null,
1137
+ toggleOffAriaLabel: null,
1138
+ toggleOffAriaLabelledBy: null,
1139
+ toggleOn: null,
1140
+ toggleOnAriaLabel: null,
1141
+ toggleOnAriaLabelledBy: null,
1142
+ variant: ""
1143
+ }, fn = {
1144
+ /**
1145
+ * Add buttons to card actions.
1146
+ *
1147
+ * Defaults to **null**.
1148
+ */
1149
+ actionButtons: e.node,
1150
+ /**
1151
+ * Add icons to card actions.
1152
+ *
1153
+ * Defaults to **null**.
1154
+ */
1155
+ actionIcons: e.node,
1156
+ /**
1157
+ * Aligns action buttons and icon buttons. 'center' and 'trailing' only allow buttons.
1158
+ *
1159
+ * Defaults to **'leading'**.
1160
+ */
1161
+ alignment: e.oneOf(["leading", "center", "trailing"])
1162
+ }, bn = {
1163
+ actionButtons: null,
1164
+ actionIcons: null,
1165
+ alignment: "leading"
1166
+ }, hn = {
1167
+ /**
1168
+ * Content to be rendered inside the title block. Accepts any valid markup.
1169
+ *
1170
+ * Defaults to **null**.
1171
+ */
1172
+ children: e.node,
1173
+ /**
1174
+ * Background color of the card body. It is recommended to set to the Card themeColor to transparent if setting the Card Body color.
1175
+ *
1176
+ * Defaults to **'surface'**.
1177
+ */
1178
+ themeColor: e.oneOf(["surface", "surface-variant", "primary", "primary-variant", "primary-50", "primary-100", "primary-200", "primary-300", "primary-400", "primary-500", "primary-600", "primary-700", "primary-800", "primary-900", "secondary", "secondary-variant", "secondary-50", "secondary-100", "secondary-200", "secondary-300", "secondary-400", "secondary-500", "secondary-600", "secondary-700", "secondary-800", "secondary-900", "danger", "danger-variant", "danger-50", "danger-100", "danger-200", "danger-300", "danger-400", "danger-500", "danger-600", "danger-700", "danger-800", "danger-900", "ancillary-100", "ancillary-200", "ancillary-300", "ancillary-400", "ancillary-500", "ancillary-600", "ancillary-700", "ancillary-800", "ancillary-900"]),
1179
+ /**
1180
+ * Sets typography class for Card Body. This can be overwritten by the children markup
1181
+ *
1182
+ * Defaults to **'body2'**.
1183
+ */
1184
+ typographyType: ee(e.oneOf(["body1", "body2", "button", "caption", "display1", "display2", "display3", "display4", "display5", "display6", "overline", "subtitle1", "subtitle2"]), ["headline1", "headline2", "headline3", "headline4", "headline5", "headline6"], "CardBody", "Please use one of 'body1','body2','button','caption','display1','display2','display3','display4','display5','display6','overline','subtitle1','subtitle2'.")
1185
+ }, vn = {
1186
+ children: null,
1187
+ themeColor: "surface",
1188
+ typographyType: "body2"
1189
+ }, _n = {
1190
+ /**
1191
+ * Content to be rendered inside the content block. Accepts any valid markup.
1192
+ *
1193
+ * Defaults to **null**.
1194
+ */
1195
+ children: e.node
1196
+ }, kn = {
1197
+ children: null
1198
+ }, On = {
1199
+ /**
1200
+ * Theme color for the Card Divider. Leave empty for gray.
1201
+ *
1202
+ * Defaults to **'on-surface-stroke'**.
1203
+ */
1204
+ dividerThemeColor: e.oneOf(["null", "on-surface-stroke", "primary", "primary-variant", "primary-50", "primary-100", "primary-200", "primary-300", "primary-400", "primary-500", "primary-600", "primary-700", "primary-800", "primary-900", "secondary", "secondary-variant", "secondary-50", "secondary-100", "secondary-200", "secondary-300", "secondary-400", "secondary-500", "secondary-600", "secondary-700", "secondary-800", "secondary-900", "danger", "danger-variant", "danger-50", "danger-100", "danger-200", "danger-300", "danger-400", "danger-500", "danger-600", "danger-700", "danger-800", "danger-900", "ancillary-100", "ancillary-200", "ancillary-300", "ancillary-400"]),
1205
+ /**
1206
+ * Choose between dense and tall variants.
1207
+ *
1208
+ * Defaults to **'dense'**.
1209
+ */
1210
+ dividerVariant: e.oneOf(["dense", "tall"])
1211
+ }, Nn = {
1212
+ dividerThemeColor: "on-surface-stroke",
1213
+ dividerVariant: "dense"
1214
+ }, Cn = {
1215
+ /**
1216
+ * Content to be rendered inside the title block. Mostly commonly a Select, Textfield component, however any valid components or markup may be used.
1217
+ *
1218
+ * Defaults to **null**.
1219
+ */
1220
+ children: e.node,
1221
+ /**
1222
+ * The css class name to be passed through to the component markup.
1223
+ *
1224
+ * Defaults to **undefined**.
1225
+ */
1226
+ className: e.string,
1227
+ /**
1228
+ * Type of filter being used.
1229
+ *
1230
+ * Defaults to **'tabs'**.
1231
+ */
1232
+ filterType: e.oneOf(["tabs", "chips", "select", "select-2"])
1233
+ }, Tn = {
1234
+ children: null,
1235
+ className: void 0,
1236
+ filterType: "tabs"
1237
+ }, An = {
1238
+ /**
1239
+ * Most commonly text or a Typography component, but accepts any valid markup.
1240
+ *
1241
+ * Defaults to **null**.
1242
+ */
1243
+ children: e.node,
1244
+ /**
1245
+ * The css class name to be passed through to the component markup.
1246
+ *
1247
+ * Defaults to **undefined**.
1248
+ */
1249
+ className: e.string,
1250
+ /**
1251
+ * Changes which side of content the Card side media renders on. Improves layout for right-to-left languages.
1252
+ *
1253
+ * Defaults to **false**.
1254
+ */
1255
+ rtl: e.bool
1256
+ }, Bn = {
1257
+ children: null,
1258
+ className: void 0,
1259
+ rtl: !1
1260
+ }, xn = {
1261
+ /**
1262
+ * Url for Card media
1263
+ *
1264
+ * Defaults to **null**.
1265
+ */
1266
+ mediaUrl: e.string,
1267
+ /**
1268
+ * Applies aspect ratio style to the card media.
1269
+ *
1270
+ * Defaults to **'square'**.
1271
+ */
1272
+ ratio: e.oneOf(["square"]),
1273
+ /**
1274
+ * Width for Card media
1275
+ *
1276
+ * Defaults to **'30%'**.
1277
+ */
1278
+ width: e.oneOfType([e.number, e.string])
1279
+ }, Ln = {
1280
+ mediaUrl: null,
1281
+ ratio: "square",
1282
+ width: "30%"
1283
+ }, wn = {
1284
+ /**
1285
+ * Child components will be rendered on top of the provided image. Use `contentBottom` and `contentTop` to control content positioning. Accepts any valid markup.
1286
+ *
1287
+ * Defaults to **null**.
1288
+ */
1289
+ children: e.node,
1290
+ /**
1291
+ * Adjust placement of the media content.
1292
+ *
1293
+ * Defaults to **'bottom'**.
1294
+ */
1295
+ contentPlacement: e.oneOf(["bottom", "top"]),
1296
+ /**
1297
+ * Image Url for card background image
1298
+ *
1299
+ * Defaults to **null**.
1300
+ */
1301
+ imageUrl: e.string,
1302
+ /**
1303
+ * Adds an overlay over to the Card Media.
1304
+ *
1305
+ * Defaults to **false**.
1306
+ */
1307
+ overlay: e.bool,
1308
+ /**
1309
+ * Overlay theme color.
1310
+ *
1311
+ * Defaults to **'dark'**.
1312
+ */
1313
+ overlayThemeColor: e.oneOf(["dark", "light", "surface", "linear-gradient-white-to-bottom", "linear-gradient-white-to-top", "linear-gradient-black-to-bottom", "linear-gradient-black-to-top", "linear-gradient-primary-dark-to-bottom", "linear-gradient-primary-dark-to-top", "linear-gradient-primary-darker-to-bottom", "linear-gradient-primary-darker-to-top", "linear-gradient-primary-to-bottom", "linear-gradient-primary-to-top", "linear-gradient-secondary-dark-to-bottom", "linear-gradient-secondary-dark-to-top", "linear-gradient-secondary-darker-to-bottom", "linear-gradient-secondary-darker-to-top", "linear-gradient-secondary-to-bottom", "linear-gradient-secondary-to-top"]),
1314
+ /**
1315
+ * Applies aspect ratio style to the card media.
1316
+ *
1317
+ * Defaults to **'square'**.
1318
+ */
1319
+ ratio: e.oneOf(["square", "sixteen-nine", "four-three", "four-five", "two-one"])
1320
+ }, En = {
1321
+ children: null,
1322
+ contentPlacement: "bottom",
1323
+ imageUrl: null,
1324
+ overlay: !1,
1325
+ overlayThemeColor: "dark",
1326
+ ratio: "square"
1327
+ }, In = {
1328
+ /**
1329
+ * Content to be rendered inside the Card Overlay. Useful for angles or other non semantic elements displayed in the Card.
1330
+ *
1331
+ * Defaults to **null**.
1332
+ */
1333
+ children: e.node,
1334
+ /**
1335
+ * The css class name to be passed through to the component markup.
1336
+ *
1337
+ * Defaults to **undefined**.
1338
+ */
1339
+ className: e.string,
1340
+ /**
1341
+ * Overlay theme color.
1342
+ *
1343
+ * Defaults to **'dark'**.
1344
+ */
1345
+ overlayThemeColor: e.oneOf(["dark", "light", "surface", "linear-gradient-white-to-bottom", "linear-gradient-white-to-top", "linear-gradient-black-to-bottom", "linear-gradient-black-to-top", "linear-gradient-primary-dark-to-bottom", "linear-gradient-primary-dark-to-top", "linear-gradient-primary-darker-to-bottom", "linear-gradient-primary-darker-to-top", "linear-gradient-primary-to-bottom", "linear-gradient-primary-to-top", "linear-gradient-secondary-dark-to-bottom", "linear-gradient-secondary-dark-to-top", "linear-gradient-secondary-darker-to-bottom", "linear-gradient-secondary-darker-to-top", "linear-gradient-secondary-to-bottom", "linear-gradient-secondary-to-top"]),
1346
+ /**
1347
+ * Position of the Overlay. Use `overlayThemeColor` to change the theme color. If set to leading or trailing be sure to set `alignment` on Card accordingly to have Card Content over the overlay.
1348
+ *
1349
+ * Defaults to **'full'**.
1350
+ */
1351
+ position: e.oneOf(["full", "leading", "trailing"])
1352
+ }, Pn = {
1353
+ children: null,
1354
+ className: void 0,
1355
+ overlayThemeColor: "dark",
1356
+ position: "full"
1357
+ }, Rn = {
1358
+ /**
1359
+ * Content to be rendered as the primary action.
1360
+ *
1361
+ * Defaults to **null**.
1362
+ */
1363
+ children: e.node,
1364
+ /**
1365
+ * The primary interaction event for card.
1366
+ *
1367
+ * Defaults to **null**.
1368
+ */
1369
+ onClick: e.func,
1370
+ /**
1371
+ * By default a div will be rendered, this allows another tag/component to be used instead. A block type element/component is suggested.
1372
+ *
1373
+ * Defaults to **'div'**.
1374
+ */
1375
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)])
1376
+ }, $n = {
1377
+ children: null,
1378
+ tag: "div"
1379
+ }, Un = {
1380
+ /**
1381
+ * The css class name to be passed through to the component markup.
1382
+ *
1383
+ * Defaults to **undefined**.
1384
+ */
1385
+ className: e.string,
1386
+ /**
1387
+ * Content to be displayed in the leading block container. See README for types supported.
1388
+ *
1389
+ * Defaults to **null**.
1390
+ */
1391
+ leadingBlock: xe(e.node, "CardTitle", "leadingBlockType"),
1392
+ /**
1393
+ * The type of media that will render in the leading block. See README for size constraints.
1394
+ *
1395
+ * Defaults to **empty string**.
1396
+ */
1397
+ leadingBlockType: e.oneOf(["", "avatar", "icon", "icon-with-background", "thumbnail"]),
1398
+ /**
1399
+ * Content to be displayed in the Overline text of the title. Expects a string, but can be any valid markup.
1400
+ *
1401
+ * Defaults to **null**.
1402
+ */
1403
+ overlineText: e.node,
1404
+ /**
1405
+ * Where title appears in card.
1406
+ *
1407
+ * Defaults to **'top'**.
1408
+ */
1409
+ placement: e.oneOf(["top", "middle", "bottom"]),
1410
+ /**
1411
+ * Content to be displayed in the Primary text of the title. Expects a string, but can be any valid markup.
1412
+ *
1413
+ * Defaults to **null**.
1414
+ */
1415
+ primaryText: e.node,
1416
+ /**
1417
+ * Content to be displayed in the Secondary text of the title. Expects a string, but can be any valid markup.
1418
+ *
1419
+ * Defaults to **null**.
1420
+ */
1421
+ secondaryText: e.node,
1422
+ /**
1423
+ * Prop that makes card title stackable.
1424
+ *
1425
+ * Defaults to **false**.
1426
+ */
1427
+ stacked: e.bool,
1428
+ /**
1429
+ * Content to be displayed in the Secondary text of the title and could be used to make Card title stackable. Expects a string, but can be any valid markup.
1430
+ *
1431
+ * Defaults to **null**.
1432
+ */
1433
+ stackedSecondaryText: e.node,
1434
+ /**
1435
+ * Background color of the `CardTitle`.
1436
+ *
1437
+ * Defaults to **'surface'**.
1438
+ */
1439
+ themeColor: e.oneOf(["surface", "primary", "secondary"]),
1440
+ /**
1441
+ * Content to be displayed in the trailing block container. See README for types supported.
1442
+ *
1443
+ * Defaults to **null**.
1444
+ */
1445
+ trailingBlock: xe(e.node, "CardTitle", "trailingBlockType"),
1446
+ /**
1447
+ * The type of media that will render in the trailing block. See README for size constraints.
1448
+ *
1449
+ * Defaults to **empty string**.
1450
+ */
1451
+ trailingBlockType: e.oneOf(["", "title-actions", "avatar", "badge", "icon", "icon-with-background", "thumbnail"])
1452
+ }, Sn = {
1453
+ className: void 0,
1454
+ leadingBlock: null,
1455
+ leadingBlockType: "",
1456
+ overlineText: null,
1457
+ placement: "top",
1458
+ primaryText: null,
1459
+ secondaryText: null,
1460
+ stacked: !1,
1461
+ stackedSecondaryText: null,
1462
+ themeColor: "surface",
1463
+ trailingBlock: null,
1464
+ trailingBlockType: ""
1465
+ }, le = /* @__PURE__ */ k((l, a) => {
1466
+ const {
1467
+ bodyAlignment: n,
1468
+ children: t,
1469
+ className: r,
1470
+ direction: o,
1471
+ height: c,
1472
+ loadingCard: p,
1473
+ outlined: d,
1474
+ style: f,
1475
+ themeColor: b,
1476
+ variant: _,
1477
+ ...T
1478
+ } = l, [g, C] = ue({
1479
+ height: c,
1480
+ direction: o,
1481
+ ...f
1482
+ }), L = D();
1483
+ return j(a, () => L.current, []), G(() => {
1484
+ C({
1485
+ height: c,
1486
+ // display: 'flex', do we need this?
1487
+ direction: o,
1488
+ ...f
1489
+ });
1490
+ }, [c, o, f]), /* @__PURE__ */ i.createElement("div", N({
1491
+ ref: L,
1492
+ className: y("lmnt", "lmnt-card", "mdc-card", _ === "outlined" && "mdc-card--outlined", _ === "flat" && "lmnt-card--flat", _ === "raised" && "lmnt-card--raised", p && "lmnt-card--loading", `lmnt-card--${n}`, `lmnt-theme-${b}-bg`, r),
1493
+ style: g
1494
+ }, T), t);
1495
+ });
1496
+ le.displayName = "Card";
1497
+ le.propTypes = sn;
1498
+ le.defaultProps = mn;
1499
+ const ge = /* @__PURE__ */ k((l, a) => {
1500
+ const {
1501
+ children: n,
1502
+ className: t,
1503
+ customRef: r,
1504
+ disabled: o,
1505
+ fullWidth: c,
1506
+ href: p,
1507
+ label: d,
1508
+ leadingIcon: f,
1509
+ actionButtonThemeColor: b,
1510
+ trailingIcon: _,
1511
+ type: T,
1512
+ ...g
1513
+ } = l, C = ne(() => d || n, [d, n]);
1514
+ return /* @__PURE__ */ i.createElement(oe, N({
1515
+ ref: a,
1516
+ customRef: r,
1517
+ disabled: o,
1518
+ fullWidth: c,
1519
+ href: p,
1520
+ label: d,
1521
+ leadingIcon: f,
1522
+ themeColor: b,
1523
+ trailingIcon: _,
1524
+ type: T,
1525
+ variant: "text",
1526
+ className: y("mdc-card__action mdc-card__action--button", t)
1527
+ }, g), C);
1528
+ });
1529
+ ge.displayName = "CardActionButton";
1530
+ ge.propTypes = un;
1531
+ ge.defaultProps = yn;
1532
+ const fe = /* @__PURE__ */ k((l, a) => {
1533
+ const {
1534
+ active: n,
1535
+ ariaLabel: t,
1536
+ ariaLabelledBy: r,
1537
+ children: o,
1538
+ className: c,
1539
+ disabled: p,
1540
+ onClick: d,
1541
+ toggleOff: f,
1542
+ toggleOffAriaLabel: b,
1543
+ toggleOffAriaLabelledBy: _,
1544
+ toggleOn: T,
1545
+ toggleOnAriaLabel: g,
1546
+ toggleOnAriaLabelledBy: C,
1547
+ variant: L,
1548
+ ...R
1549
+ } = l, q = ne(() => typeof o == "string" ? /* @__PURE__ */ i.createElement(Z, {
1550
+ icon: o
1551
+ }) : o, [o]);
1552
+ return /* @__PURE__ */ i.createElement(re, N({
1553
+ ref: a,
1554
+ variant: L,
1555
+ disabled: p,
1556
+ onClick: d,
1557
+ ariaLabel: t,
1558
+ toggleOffAriaLabel: b,
1559
+ toggleOffAriaLabelledBy: _,
1560
+ toggleOnAriaLabel: g,
1561
+ toggleOnAriaLabelledBy: C,
1562
+ toggleOn: T,
1563
+ toggleOff: f,
1564
+ className: y("mdc-card__action mdc-card__action--icon", c)
1565
+ }, R), q);
1566
+ });
1567
+ fe.displayName = "CardActionIcon";
1568
+ fe.propTypes = pn;
1569
+ fe.defaultProps = gn;
1570
+ const be = /* @__PURE__ */ k((l, a) => {
1571
+ const {
1572
+ alignment: n,
1573
+ actionIcons: t,
1574
+ actionButtons: r,
1575
+ className: o,
1576
+ ...c
1577
+ } = l;
1578
+ return /* @__PURE__ */ i.createElement("div", N({
1579
+ ref: a,
1580
+ className: y("lmnt", "mdc-card__actions", n === "leading" && "lmnt-card__actions--leading", n === "center" && "lmnt-card__actions--center", n === "trailing" && "lmnt-card__actions--trailing", o)
1581
+ }, c), r && /* @__PURE__ */ i.createElement("div", {
1582
+ className: "mdc-card__action-buttons"
1583
+ }, r), t && n === "leading" && /* @__PURE__ */ i.createElement("div", {
1584
+ className: "mdc-card__action-icons"
1585
+ }, t));
1586
+ });
1587
+ be.displayName = "CardActions";
1588
+ be.propTypes = fn;
1589
+ be.defaultProps = bn;
1590
+ const ie = /* @__PURE__ */ k((l, a) => {
1591
+ const {
1592
+ children: n,
1593
+ typographyType: t,
1594
+ themeColor: r,
1595
+ className: o,
1596
+ ...c
1597
+ } = l;
1598
+ return /* @__PURE__ */ i.createElement("div", N({
1599
+ ref: a,
1600
+ className: y("lmnt-card-body", t === "body1" && " mdc-typography--body1", t === "body2" && " mdc-typography--body2", t === "button" && " mdc-typography--button", t === "caption" && " mdc-typography--caption", t === "headline1" && " mdc-typography--headline1", t === "headline2" && " mdc-typography--headline2", t === "headline3" && " mdc-typography--headline3", t === "headline4" && " mdc-typography--headline4", t === "headline5" && " mdc-typography--headline5", t === "headline6" && " mdc-typography--headline6", t === "display1" && " mdc-typography--headline1", t === "display2" && " mdc-typography--headline2", t === "display3" && " mdc-typography--headline3", t === "display4" && " mdc-typography--headline4", t === "display5" && " mdc-typography--headline5", t === "display6" && " mdc-typography--headline6", t === "overline" && " mdc-typography--overline", t === "subtitle1" && " mdc-typography--subtitle1", t === "subtitle2" && " mdc-typography--subtitle2", `lmnt-theme-${r}-bg`, o)
1601
+ }, c), n);
1602
+ });
1603
+ ie.displayName = "CardBody";
1604
+ ie.propTypes = hn;
1605
+ ie.defaultProps = vn;
1606
+ const de = /* @__PURE__ */ k((l, a) => {
1607
+ const {
1608
+ children: n,
1609
+ className: t,
1610
+ ...r
1611
+ } = l;
1612
+ return /* @__PURE__ */ i.createElement("div", N({
1613
+ ref: a,
1614
+ className: y(["lmnt", "mdc-card__content"], t)
1615
+ }, r), n);
1616
+ });
1617
+ de.displayName = "CardContent";
1618
+ de.propTypes = _n;
1619
+ de.defaultProps = kn;
1620
+ const he = /* @__PURE__ */ k((l, a) => {
1621
+ const {
1622
+ className: n,
1623
+ dividerVariant: t,
1624
+ dividerThemeColor: r,
1625
+ ...o
1626
+ } = l;
1627
+ return /* @__PURE__ */ i.createElement(te, N({
1628
+ ref: a,
1629
+ variant: t,
1630
+ themeColor: r,
1631
+ className: y("mdc-card__divider", "lmnt-card-divider", n)
1632
+ }, o));
1633
+ });
1634
+ he.displayName = "CardDivider";
1635
+ he.propTypes = On;
1636
+ he.defaultProps = Nn;
1637
+ const ve = /* @__PURE__ */ k((l, a) => {
1638
+ const {
1639
+ children: n,
1640
+ className: t,
1641
+ filterType: r,
1642
+ ...o
1643
+ } = l;
1644
+ return /* @__PURE__ */ i.createElement("div", N({
1645
+ ref: a,
1646
+ className: y("lmnt", "lmnt-card__filters", r === "chips" && "lmnt-card__filters--chips", r === "select" && "lmnt-card__filters--select", r === "select-2" && "lmnt-card__filters--select lmnt-card__filters--select-2", t)
1647
+ }, o), n);
1648
+ });
1649
+ ve.displayName = "CardFilter";
1650
+ ve.propTypes = Cn;
1651
+ ve.defaultProps = Tn;
1652
+ const Dn = /* @__PURE__ */ Me({
1653
+ groupRect: {}
1654
+ }), _e = /* @__PURE__ */ k((l, a) => {
1655
+ const {
1656
+ children: n,
1657
+ className: t,
1658
+ rtl: r,
1659
+ ...o
1660
+ } = l, [c, p] = cn(), d = D(c);
1661
+ return j(a, () => d.current, []), j(c, () => d.current, []), // eslint-disable-next-line react/jsx-no-constructed-context-values
1662
+ /* @__PURE__ */ i.createElement(Dn.Provider, {
1663
+ value: {
1664
+ groupRect: p
1665
+ }
1666
+ }, /* @__PURE__ */ i.createElement(Pe, N({
1667
+ className: y("lmnt-card__horizontal-group", "lmnt-card--horizontal", t),
1668
+ ref: d,
1669
+ gap: "none",
1670
+ direction: r ? "horizontal-reverse" : "horizontal",
1671
+ secondaryAlign: "start"
1672
+ }, o), n));
1673
+ });
1674
+ _e.propTypes = An;
1675
+ _e.defaultProps = Bn;
1676
+ _e.displayName = "CardHorizontalGroup";
1677
+ const ce = /* @__PURE__ */ k((l, a) => {
1678
+ const {
1679
+ children: n,
1680
+ className: t,
1681
+ position: r,
1682
+ overlayThemeColor: o,
1683
+ ...c
1684
+ } = l, p = D();
1685
+ j(a, () => p.current, []);
1686
+ const d = ne(() => r !== "none" && y("lmnt", "lmnt-card-overlay ", !o.includes("gradient") && o !== "surface" && `lmnt-card-overlay__${o}`, o.includes("gradient") && o !== "surface" && `lmnt-theme--bg-${o}`, o === "surface" && "lmnt-theme-surface-bg", `lmnt-card-overlay__${r}`, t), [o, r, t]);
1687
+ return /* @__PURE__ */ i.createElement("div", N({
1688
+ className: d
1689
+ }, c), n && n);
1690
+ });
1691
+ ce.displayName = "CardOverlay";
1692
+ ce.propTypes = In;
1693
+ ce.defaultProps = Pn;
1694
+ const ke = /* @__PURE__ */ k((l, a) => {
1695
+ const {
1696
+ children: n,
1697
+ className: t,
1698
+ contentPlacement: r,
1699
+ imageUrl: o,
1700
+ overlay: c,
1701
+ overlayThemeColor: p,
1702
+ ratio: d,
1703
+ style: f,
1704
+ ...b
1705
+ } = l;
1706
+ return /* @__PURE__ */ i.createElement("div", N({
1707
+ ref: a,
1708
+ className: y("lmnt", "mdc-card__media", (d === "square" || !d) && "mdc-card__media--square", d === "sixteen-nine" && "mdc-card__media--16-9", d === "four-three" && "lmnt-card__media--4-3", d === "four-five" && "lmnt-card__media--4-5", d === "two-one" && "lmnt-card__media--2-1", t),
1709
+ style: {
1710
+ backgroundImage: `url(${o})`,
1711
+ ...f
1712
+ }
1713
+ }, b), c && /* @__PURE__ */ i.createElement(ce, {
1714
+ overlayThemeColor: p
1715
+ }), n && /* @__PURE__ */ i.createElement("div", {
1716
+ className: y("mdc-card__media-content", c && "lmnt-card__media-content--with-overlay", r === "bottom" && "lmnt-card__content--bottom", r === "top" && "lmnt-card__content--top")
1717
+ }, /* @__PURE__ */ i.createElement("div", {
1718
+ className: "lmnt-card__media-inner-content"
1719
+ }, n)));
1720
+ });
1721
+ ke.displayName = "CardMedia";
1722
+ ke.propTypes = wn;
1723
+ ke.defaultProps = En;
1724
+ const Oe = /* @__PURE__ */ k((l, a) => {
1725
+ const {
1726
+ children: n,
1727
+ className: t,
1728
+ tag: r = "div",
1729
+ ...o
1730
+ } = l;
1731
+ return /* @__PURE__ */ i.createElement(r, N({
1732
+ ref: a,
1733
+ tabIndex: "0",
1734
+ className: y(["lmnt", "mdc-card__primary-action"], t)
1735
+ }, o), n);
1736
+ });
1737
+ Oe.displayName = "CardPrimaryAction";
1738
+ Oe.propTypes = Rn;
1739
+ Oe.defaultProps = $n;
1740
+ const Ne = /* @__PURE__ */ k((l, a) => {
1741
+ const {
1742
+ className: n,
1743
+ leadingBlock: t,
1744
+ leadingBlockType: r,
1745
+ overlineText: o,
1746
+ placement: c,
1747
+ primaryText: p,
1748
+ secondaryText: d,
1749
+ stackedSecondaryText: f,
1750
+ stacked: b,
1751
+ themeColor: _,
1752
+ trailingBlock: T,
1753
+ trailingBlockType: g,
1754
+ ...C
1755
+ } = l;
1756
+ return /* @__PURE__ */ i.createElement("div", N({
1757
+ ref: a,
1758
+ className: y("lmnt", "lmnt-card-title", b && "lmnt-card-title--stacked", c === "top" && "lmnt-card-title--top-placement", c === "bottom" && "lmnt-card-title--bottom-placement", _ === "primary" && "lmnt-theme-primary-bg", _ === "secondary" && "lmnt-theme-secondary-bg", n)
1759
+ }, C), r ? /* @__PURE__ */ i.createElement("div", {
1760
+ className: y("lmnt-card-title__leadingBlock", r === "avatar" && "lmnt-card-title__leadingBlock--avatar", r === "icon" && "lmnt-card-title__leadingBlock--icon", r === "icon-with-background" && "lmnt-card-title__leadingBlock--icon-with-background", r === "thumbnail" && "lmnt-card-title__leadingBlock--thumbnail")
1761
+ }, t) : null, /* @__PURE__ */ i.createElement("div", {
1762
+ className: "lmnt-card-title__text"
1763
+ }, o && /* @__PURE__ */ i.createElement("div", {
1764
+ className: "lmnt-card-title__overlineText"
1765
+ }, o), p, (d || f) && /* @__PURE__ */ i.createElement("div", {
1766
+ className: y("lmnt-card-title-secondaryText-container", !b && "lmnt-card-title__items")
1767
+ }, d && /* @__PURE__ */ i.createElement("div", {
1768
+ className: "lmnt-card-title__secondaryText"
1769
+ }, d), f && /* @__PURE__ */ i.createElement("div", {
1770
+ className: "lmnt-card-title__secondaryText"
1771
+ }, f))), g ? /* @__PURE__ */ i.createElement("div", {
1772
+ className: y("lmnt-card-title__trailingBlock", g === "title-actions" && "lmnt-card-title__trailingBlock--title-actions", g === "avatar" && "lmnt-card-title__trailingBlock--avatar", g === "icon" && "lmnt-card-title__trailingBlock--icon", g === "icon-with-background" && "lmnt-card-title__trailingBlock--icon-with-background", g === "thumbnail" && "lmnt-card-title__trailingBlock--thumbnail", g === "badge" && "lmnt-card-title__trailingBlock--badge")
1773
+ }, T) : null);
1774
+ });
1775
+ Ne.displayName = "CardTitle";
1776
+ Ne.propTypes = Un;
1777
+ Ne.defaultProps = Sn;
1778
+ const Ce = /* @__PURE__ */ k((l, a) => {
1779
+ const {
1780
+ style: n,
1781
+ mediaUrl: t,
1782
+ width: r,
1783
+ ...o
1784
+ } = l, c = D();
1785
+ return j(a, () => c.current, []), /* @__PURE__ */ i.createElement("img", N({
1786
+ src: t,
1787
+ alt: "leadingCardMedia",
1788
+ width: r,
1789
+ style: {
1790
+ flexShrink: 0,
1791
+ ...n
1792
+ }
1793
+ }, o));
1794
+ });
1795
+ Ce.propTypes = xn;
1796
+ Ce.defaultProps = Ln;
1797
+ Ce.displayName = "CardLeadingMedia";
1798
+ const zn = "_database_11ki8_1", Wn = "_spin_11ki8_1", jn = "_iot_11ki8_16", Fn = "_platform_11ki8_17", Mn = "_other_11ki8_18", qn = "_crossedOut_11ki8_22", Ee = {
1799
+ database: zn,
1800
+ spin: Wn,
1801
+ iot: jn,
1802
+ platform: Fn,
1803
+ other: Mn,
1804
+ crossedOut: qn
1805
+ }, Yn = ({
1806
+ title: l,
1807
+ subtitle: a,
1808
+ type: n,
1809
+ isOutlined: t = !0
1810
+ }) => /* @__PURE__ */ W(
1811
+ le,
1812
+ {
1813
+ variant: t ? "outlined" : "flat",
1814
+ "data-testid": `${n}-health-check-failed-card`,
1815
+ children: /* @__PURE__ */ W(de, { children: /* @__PURE__ */ W(He, { variant: "airy", children: /* @__PURE__ */ W(ie, { children: /* @__PURE__ */ We(
1816
+ Pe,
1817
+ {
1818
+ gap: "none",
1819
+ primaryAlign: "center",
1820
+ secondaryAlign: "center",
1821
+ direction: "vertical",
1822
+ fullWidth: !0,
1823
+ children: [
1824
+ /* @__PURE__ */ W(Vn, { type: n }),
1825
+ /* @__PURE__ */ W(we, { level: 1, bold: !0, children: l }),
1826
+ /* @__PURE__ */ W(we, { level: 2, themeColor: "text-secondary-on-background", children: a })
1827
+ ]
1828
+ }
1829
+ ) }) }) })
1830
+ }
1831
+ ), Hn = {
1832
+ database: "sync",
1833
+ iot: "settings_input_antenna",
1834
+ platform: "engineering",
1835
+ other: "error"
1836
+ }, Vn = ({ type: l }) => /* @__PURE__ */ W("span", { className: l === "iot" ? Ee.crossedOut : "", children: /* @__PURE__ */ W(Ve, { icon: Hn[l], className: Ee[l], iconSize: "xlarge" }) });
1837
+ export {
1838
+ Yn as N
1839
+ };