@hortiview/default-components 1.2.0 → 1.3.0

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 (39) hide show
  1. package/README.md +12 -0
  2. package/dist/{HealthCheckFailed-BfzG8Esl.js → HealthCheckFailed-BA_vyKwG.js} +6 -6
  3. package/dist/Iconify-B42tJF6q.js +979 -0
  4. package/dist/{LoadingSpinner-BCdWKiWZ.js → LoadingSpinner-5JYKhDod.js} +12 -12
  5. package/dist/OfflineView-BW19N4Cu-CpgiY6nC.js +45 -0
  6. package/dist/assets/GenericTable.css +1 -1
  7. package/dist/assets/OfflineView-BW19N4Cu.css +1 -0
  8. package/dist/{component-DsB0poTj-CmUZ4Kqw.js → component-DsB0poTj-uxpi4oSj.js} +1 -1
  9. package/dist/components/DefaultFormNumber/DefaultFormNumber.js +5 -6
  10. package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +7 -8
  11. package/dist/components/GenericTable/GenericTable.js +5083 -5054
  12. package/dist/components/HealthChecks/DataBaseHealthCheck.js +4 -5
  13. package/dist/components/HealthChecks/DefaultHealthCheck.js +4 -5
  14. package/dist/components/HealthChecks/IotServiceHealthCheck.js +4 -5
  15. package/dist/components/HealthChecks/PlatformHealthCheck.js +5 -6
  16. package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +7 -8
  17. package/dist/components/InternationalizationWrapper/InternationalizationWrapper.js +1 -1
  18. package/dist/components/OfflineView/OfflineView.d.ts +4 -0
  19. package/dist/components/OfflineView/OfflineView.js +18 -0
  20. package/dist/{i18n-BhmFdUcK.js → i18n-CCQpJsQK.js} +8 -8
  21. package/dist/i18n.js +2 -3
  22. package/dist/{i18nInstance-l1IFPZ5d.js → i18nInstance-D_96ADqd.js} +1 -1
  23. package/dist/{index.es-25EARqhH-By1Ap282.js → index.es-25EARqhH-CciUgLci.js} +2 -2
  24. package/dist/{index.es-6TJ1S8Jr-BFJPMGBn.js → index.es-6TJ1S8Jr-C4X_iaSC.js} +493 -831
  25. package/dist/index.es-CiqbARoC-D-muiSwa.js +344 -0
  26. package/dist/index.es-D-CKRzIB-DPq2PQz-.js +63 -0
  27. package/dist/locales/en-US.js +6 -4
  28. package/dist/locales/en-US.json.d.ts +4 -0
  29. package/dist/locales/es-MX.js +6 -4
  30. package/dist/locales/es-MX.json.d.ts +4 -0
  31. package/dist/locales/tr-TR.js +6 -4
  32. package/dist/locales/tr-TR.json.d.ts +4 -0
  33. package/dist/main.d.ts +1 -0
  34. package/dist/main.js +12 -10
  35. package/dist/{useTranslation-B6E1rHIA.js → useTranslation-v0qSkb40.js} +280 -280
  36. package/package.json +3 -3
  37. package/dist/Iconify-DQUxnnUE.js +0 -81
  38. package/dist/assets/i18nInstance.css +0 -1
  39. package/dist/index.es-D-CKRzIB-C6Z-ohcV.js +0 -959
@@ -1,8 +1,9 @@
1
- import { _ as y, N, R as e, b as A, L as Y, r as ie, h as we, f as $e, p as Te, a as Se, q as Z, n as Ae, o as Be } from "./useTranslation-B6E1rHIA.js";
2
- import i, { forwardRef as k, useRef as D, useImperativeHandle as F, useEffect as V, useCallback as Le, useState as de, useMemo as ee, createContext as De, useLayoutEffect as ze } from "react";
3
- import { U as ce } from "./component-DsB0poTj-CmUZ4Kqw.js";
4
- import { a as Fe } from "./index.es-D-CKRzIB-C6Z-ohcV.js";
5
- const Me = {
1
+ import { _ as m, N as b, R as e, b as x, L as pe, r as G, h as ge, f as Ae, p as me, a as Ne, q as K, I as ye } from "./useTranslation-v0qSkb40.js";
2
+ import d, { forwardRef as v, useRef as L, useImperativeHandle as w, useEffect as D, useState as J, useMemo as U, createContext as Te, useLayoutEffect as ke } from "react";
3
+ import { O as Be } from "./index.es-CiqbARoC-D-muiSwa.js";
4
+ import { U as ue } from "./component-DsB0poTj-uxpi4oSj.js";
5
+ import { n as Le } from "./Iconify-B42tJF6q.js";
6
+ const Ee = {
6
7
  /**
7
8
  * The css class name to be passed through to the component markup.
8
9
  *
@@ -16,7 +17,7 @@ const Me = {
16
17
  *
17
18
  * Defaults to **undefined**.
18
19
  */
19
- dividerColor: A(e.string, "Divider", "Use `themeColor` instead."),
20
+ dividerColor: x(e.string, "Divider", "Use `themeColor` instead."),
20
21
  /**
21
22
  * @deprecated _Use `themeColorImportant` instead._
22
23
  *
@@ -24,7 +25,7 @@ const Me = {
24
25
  *
25
26
  * Defaults to **undefined**.
26
27
  */
27
- dividerColorImportant: A(e.bool, "Divider", "Use `themeColorImportant` instead."),
28
+ dividerColorImportant: x(e.bool, "Divider", "Use `themeColorImportant` instead."),
28
29
  /**
29
30
  * @deprecated _Use `variant` instead._
30
31
  *
@@ -32,7 +33,7 @@ const Me = {
32
33
  *
33
34
  * Defaults to **undefined**.
34
35
  */
35
- dividerHeight: A(e.string, "Divider", "Use `variant` instead."),
36
+ dividerHeight: x(e.string, "Divider", "Use `variant` instead."),
36
37
  /**
37
38
  * Set the border-style with default browser styles. In general, avoid using.
38
39
  *
@@ -52,7 +53,7 @@ const Me = {
52
53
  *
53
54
  * Defaults to **undefined**.
54
55
  */
55
- themeColorImportant: A(e.bool, "Divider", "No longer needed."),
56
+ themeColorImportant: x(e.bool, "Divider", "No longer needed."),
56
57
  /**
57
58
  * Choose between dense and tall variants.
58
59
  *
@@ -65,7 +66,7 @@ const Me = {
65
66
  * Defaults to **'none'**.
66
67
  */
67
68
  verticalMargin: e.oneOf(["none", "dense", "standard", "airy"])
68
- }, We = {
69
+ }, Ie = {
69
70
  className: void 0,
70
71
  dividerColor: void 0,
71
72
  dividerColorImportant: void 0,
@@ -75,68 +76,29 @@ const Me = {
75
76
  themeColorImportant: void 0,
76
77
  variant: "dense",
77
78
  verticalMargin: "none"
78
- }, ne = /* @__PURE__ */ k((l, a) => {
79
+ }, z = /* @__PURE__ */ v((o, n) => {
79
80
  const {
80
- dividerColor: n,
81
- dividerColorImportant: t,
82
- dividerHeight: r,
83
- dividerStyle: o,
81
+ dividerColor: a,
82
+ dividerColorImportant: r,
83
+ dividerHeight: t,
84
+ dividerStyle: l,
84
85
  themeColor: c,
85
- themeColorImportant: p,
86
- variant: d,
87
- className: f,
88
- verticalMargin: b,
89
- ..._
90
- } = l, T = t || p, g = r || d, C = n || c, w = D();
91
- F(a, () => w.current, []);
92
- 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);
93
- return /* @__PURE__ */ i.createElement("hr", N({
94
- ref: w,
95
- className: R
96
- }, _));
97
- });
98
- ne.displayName = "Divider";
99
- ne.propTypes = Me;
100
- ne.defaultProps = We;
101
- const qe = {
102
- /**
103
- * Content to be rendered inside the component.
104
- *
105
- * Defaults to **null**.
106
- */
107
- children: e.node,
108
- /**
109
- * A reference to the component to apply the ripple to.
110
- *
111
- * Defaults to **undefined**.
112
- */
113
- componentRef: e.object,
114
- /**
115
- * Allows the ripple to extend beyond the component boundaries.
116
- *
117
- * Defaults to **undefined**.
118
- */
119
- unbounded: e.bool
120
- }, je = {
121
- children: null,
122
- componentRef: void 0,
123
- unbounded: void 0
124
- }, te = /* @__PURE__ */ k((l, a) => {
125
- const {
126
- componentRef: n,
127
- unbounded: t,
128
- children: r
129
- } = l, o = D();
130
- return F(a, () => o.current, []), V(() => {
131
- const c = n.current;
132
- return c && (o.current = ce.attachTo(n.current), t && (o.current.unbounded = !0)), () => {
133
- c && o.current.destroy();
134
- };
135
- }, [n, t]), r;
86
+ themeColorImportant: y,
87
+ variant: i,
88
+ className: u,
89
+ verticalMargin: f,
90
+ ...h
91
+ } = o, O = r || y, p = t || i, _ = a || c, C = L();
92
+ w(n, () => C.current, []);
93
+ const E = m("lmnt", "lmnt-divider", O && "lmnt-divider--color-important", p && `lmnt-divider--${p}`, l && `lmnt-divider--${l}`, _ && `lmnt-divider--${_}`, f && f !== "none" && `lmnt-divider--margin-${f}`, u);
94
+ return /* @__PURE__ */ d.createElement("hr", b({
95
+ ref: C,
96
+ className: E
97
+ }, h));
136
98
  });
137
- te.displayName = "Ripple";
138
- te.propTypes = qe;
139
- te.defaultProps = je;
99
+ z.displayName = "Divider";
100
+ z.propTypes = Ee;
101
+ z.defaultProps = Ie;
140
102
  /**
141
103
  * @license
142
104
  * Copyright 2018 Google Inc.
@@ -159,10 +121,10 @@ te.defaultProps = je;
159
121
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
160
122
  * THE SOFTWARE.
161
123
  */
162
- var X = {
124
+ var S = {
163
125
  ICON_BUTTON_ON: "mdc-icon-button--on",
164
126
  ROOT: "mdc-icon-button"
165
- }, z = {
127
+ }, T = {
166
128
  ARIA_LABEL: "aria-label",
167
129
  ARIA_PRESSED: "aria-pressed",
168
130
  DATA_ARIA_LABEL_OFF: "data-aria-label-off",
@@ -191,27 +153,27 @@ var X = {
191
153
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
192
154
  * THE SOFTWARE.
193
155
  */
194
- var xe = (
156
+ var fe = (
195
157
  /** @class */
196
- function(l) {
197
- we(a, l);
198
- function a(n) {
199
- var t = l.call(this, Te(Te({}, a.defaultAdapter), n)) || this;
200
- return t.hasToggledAriaLabel = !1, t;
158
+ function(o) {
159
+ ge(n, o);
160
+ function n(a) {
161
+ var r = o.call(this, me(me({}, n.defaultAdapter), a)) || this;
162
+ return r.hasToggledAriaLabel = !1, r;
201
163
  }
202
- return Object.defineProperty(a, "cssClasses", {
164
+ return Object.defineProperty(n, "cssClasses", {
203
165
  get: function() {
204
- return X;
166
+ return S;
205
167
  },
206
168
  enumerable: !1,
207
169
  configurable: !0
208
- }), Object.defineProperty(a, "strings", {
170
+ }), Object.defineProperty(n, "strings", {
209
171
  get: function() {
210
- return z;
172
+ return T;
211
173
  },
212
174
  enumerable: !1,
213
175
  configurable: !0
214
- }), Object.defineProperty(a, "defaultAdapter", {
176
+ }), Object.defineProperty(n, "defaultAdapter", {
215
177
  get: function() {
216
178
  return {
217
179
  addClass: function() {
@@ -232,26 +194,26 @@ var xe = (
232
194
  },
233
195
  enumerable: !1,
234
196
  configurable: !0
235
- }), a.prototype.init = function() {
236
- var n = this.adapter.getAttr(z.DATA_ARIA_LABEL_ON), t = this.adapter.getAttr(z.DATA_ARIA_LABEL_OFF);
237
- if (n && t) {
238
- if (this.adapter.getAttr(z.ARIA_PRESSED) !== null)
197
+ }), n.prototype.init = function() {
198
+ var a = this.adapter.getAttr(T.DATA_ARIA_LABEL_ON), r = this.adapter.getAttr(T.DATA_ARIA_LABEL_OFF);
199
+ if (a && r) {
200
+ if (this.adapter.getAttr(T.ARIA_PRESSED) !== null)
239
201
  throw new Error("MDCIconButtonToggleFoundation: Button should not set `aria-pressed` if it has a toggled aria label.");
240
202
  this.hasToggledAriaLabel = !0;
241
203
  } else
242
- this.adapter.setAttr(z.ARIA_PRESSED, String(this.isOn()));
243
- }, a.prototype.handleClick = function() {
204
+ this.adapter.setAttr(T.ARIA_PRESSED, String(this.isOn()));
205
+ }, n.prototype.handleClick = function() {
244
206
  this.toggle(), this.adapter.notifyChange({ isOn: this.isOn() });
245
- }, a.prototype.isOn = function() {
246
- return this.adapter.hasClass(X.ICON_BUTTON_ON);
247
- }, a.prototype.toggle = function(n) {
248
- if (n === void 0 && (n = !this.isOn()), n ? this.adapter.addClass(X.ICON_BUTTON_ON) : this.adapter.removeClass(X.ICON_BUTTON_ON), this.hasToggledAriaLabel) {
249
- var t = n ? this.adapter.getAttr(z.DATA_ARIA_LABEL_ON) : this.adapter.getAttr(z.DATA_ARIA_LABEL_OFF);
250
- this.adapter.setAttr(z.ARIA_LABEL, t || "");
207
+ }, n.prototype.isOn = function() {
208
+ return this.adapter.hasClass(S.ICON_BUTTON_ON);
209
+ }, n.prototype.toggle = function(a) {
210
+ if (a === void 0 && (a = !this.isOn()), a ? this.adapter.addClass(S.ICON_BUTTON_ON) : this.adapter.removeClass(S.ICON_BUTTON_ON), this.hasToggledAriaLabel) {
211
+ var r = a ? this.adapter.getAttr(T.DATA_ARIA_LABEL_ON) : this.adapter.getAttr(T.DATA_ARIA_LABEL_OFF);
212
+ this.adapter.setAttr(T.ARIA_LABEL, r || "");
251
213
  } else
252
- this.adapter.setAttr(z.ARIA_PRESSED, "" + n);
253
- }, a;
254
- }(Se)
214
+ this.adapter.setAttr(T.ARIA_PRESSED, "" + a);
215
+ }, n;
216
+ }(Ne)
255
217
  );
256
218
  /**
257
219
  * @license
@@ -275,67 +237,67 @@ var xe = (
275
237
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
276
238
  * THE SOFTWARE.
277
239
  */
278
- var He = xe.strings, Ve = (
240
+ var we = fe.strings, Pe = (
279
241
  /** @class */
280
- function(l) {
281
- we(a, l);
282
- function a() {
283
- var n = l !== null && l.apply(this, arguments) || this;
284
- return n.rippleComponent = n.createRipple(), n;
242
+ function(o) {
243
+ ge(n, o);
244
+ function n() {
245
+ var a = o !== null && o.apply(this, arguments) || this;
246
+ return a.rippleComponent = a.createRipple(), a;
285
247
  }
286
- return a.attachTo = function(n) {
287
- return new a(n);
288
- }, a.prototype.initialSyncWithDOM = function() {
289
- var n = this;
248
+ return n.attachTo = function(a) {
249
+ return new n(a);
250
+ }, n.prototype.initialSyncWithDOM = function() {
251
+ var a = this;
290
252
  this.handleClick = function() {
291
- n.foundation.handleClick();
253
+ a.foundation.handleClick();
292
254
  }, this.listen("click", this.handleClick);
293
- }, a.prototype.destroy = function() {
294
- this.unlisten("click", this.handleClick), this.ripple.destroy(), l.prototype.destroy.call(this);
295
- }, a.prototype.getDefaultFoundation = function() {
296
- var n = this, t = {
297
- addClass: function(r) {
298
- return n.root.classList.add(r);
255
+ }, n.prototype.destroy = function() {
256
+ this.unlisten("click", this.handleClick), this.ripple.destroy(), o.prototype.destroy.call(this);
257
+ }, n.prototype.getDefaultFoundation = function() {
258
+ var a = this, r = {
259
+ addClass: function(t) {
260
+ return a.root.classList.add(t);
299
261
  },
300
- hasClass: function(r) {
301
- return n.root.classList.contains(r);
262
+ hasClass: function(t) {
263
+ return a.root.classList.contains(t);
302
264
  },
303
- notifyChange: function(r) {
304
- n.emit(He.CHANGE_EVENT, r);
265
+ notifyChange: function(t) {
266
+ a.emit(we.CHANGE_EVENT, t);
305
267
  },
306
- removeClass: function(r) {
307
- return n.root.classList.remove(r);
268
+ removeClass: function(t) {
269
+ return a.root.classList.remove(t);
308
270
  },
309
- getAttr: function(r) {
310
- return n.root.getAttribute(r);
271
+ getAttr: function(t) {
272
+ return a.root.getAttribute(t);
311
273
  },
312
- setAttr: function(r, o) {
313
- return n.root.setAttribute(r, o);
274
+ setAttr: function(t, l) {
275
+ return a.root.setAttribute(t, l);
314
276
  }
315
277
  };
316
- return new xe(t);
317
- }, Object.defineProperty(a.prototype, "ripple", {
278
+ return new fe(r);
279
+ }, Object.defineProperty(n.prototype, "ripple", {
318
280
  get: function() {
319
281
  return this.rippleComponent;
320
282
  },
321
283
  enumerable: !1,
322
284
  configurable: !0
323
- }), Object.defineProperty(a.prototype, "on", {
285
+ }), Object.defineProperty(n.prototype, "on", {
324
286
  get: function() {
325
287
  return this.foundation.isOn();
326
288
  },
327
- set: function(n) {
328
- this.foundation.toggle(n);
289
+ set: function(a) {
290
+ this.foundation.toggle(a);
329
291
  },
330
292
  enumerable: !1,
331
293
  configurable: !0
332
- }), a.prototype.createRipple = function() {
333
- var n = new ce(this.root);
334
- return n.unbounded = !0, n;
335
- }, a;
336
- }($e)
294
+ }), n.prototype.createRipple = function() {
295
+ var a = new ue(this.root);
296
+ return a.unbounded = !0, a;
297
+ }, n;
298
+ }(Ae)
337
299
  );
338
- const Ge = {
300
+ const xe = {
339
301
  /**
340
302
  * Programmatically sets the toggle state of the button when used as a toggle button. If not set, the toggle state will be managed internally.
341
303
  *
@@ -385,7 +347,7 @@ const Ge = {
385
347
  *
386
348
  * Defaults to **undefined**.
387
349
  */
388
- dense: A(e.bool, "IconButton", 'Use iconSize="small" instead.'),
350
+ dense: x(e.bool, "IconButton", 'Use iconSize="small" instead.'),
389
351
  /**
390
352
  * Disables the icon button.
391
353
  *
@@ -427,7 +389,7 @@ const Ge = {
427
389
  *
428
390
  * Defaults to **null**.
429
391
  */
430
- tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
392
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(d.Component)]),
431
393
  /**
432
394
  * 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.
433
395
  *
@@ -469,8 +431,8 @@ const Ge = {
469
431
  *
470
432
  * Defaults to **empty string**.
471
433
  */
472
- variant: Z(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'.")
473
- }, Je = {
434
+ variant: K(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'.")
435
+ }, Re = {
474
436
  active: !1,
475
437
  ariaLabel: null,
476
438
  ariaLabelledBy: null,
@@ -492,385 +454,87 @@ const Ge = {
492
454
  toggleOnAriaLabel: null,
493
455
  toggleOnAriaLabelledBy: null,
494
456
  variant: ""
495
- }, ae = /* @__PURE__ */ k((l, a) => {
457
+ }, F = /* @__PURE__ */ v((o, n) => {
496
458
  const {
497
- active: n,
498
- ariaLabel: t,
499
- ariaLabelledBy: r,
500
- badge: o,
459
+ active: a,
460
+ ariaLabel: r,
461
+ ariaLabelledBy: t,
462
+ badge: l,
501
463
  badgePlacement: c,
502
- children: p,
503
- className: d,
504
- dense: f,
505
- disabled: b,
506
- icon: _,
507
- iconSize: T,
508
- iconType: g,
509
- onClick: C,
510
- noHover: w,
511
- tabIndex: R,
464
+ children: y,
465
+ className: i,
466
+ dense: u,
467
+ disabled: f,
468
+ icon: h,
469
+ iconSize: O,
470
+ iconType: p,
471
+ onClick: _,
472
+ noHover: C,
473
+ tabIndex: E,
512
474
  tag: q,
513
- toggleOff: I,
514
- toggleOffAriaLabel: j,
515
- toggleOffAriaLabelledBy: H,
516
- toggleOn: G,
517
- toggleOnAriaLabel: h,
518
- toggleOnAriaLabelledBy: P,
519
- variant: m,
520
- ...v
521
- } = l, B = D(), W = D(), U = D(), $ = G && I;
522
- let S = T;
523
- S === "medium" && f && (S = "small"), o && (S === "small" || S === "xsmall") && (S = "medium"), F(a, () => B.current, []);
524
- const x = y("lmnt", "lmnt-icon-button", "mdc-icon-button", w && "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);
525
- V(() => ($ ? U.current = Ve.attachTo(B.current) : (W.current = ce.attachTo(B.current), W.current.unbounded = !0), () => {
526
- $ ? U.current.destroy() : W.current.destroy();
527
- }), [U, $, W]), V(() => {
528
- $ && (U.current.on = n);
529
- }, [n, $, U]);
530
- const J = (s) => {
531
- C && C($ ? U.current.on : s);
532
- }, E = q || "button";
533
- return /* @__PURE__ */ i.createElement(E, N({
534
- "aria-label": t,
535
- "aria-labelledby": r,
536
- "data-aria-label-on": h || P || t,
537
- "data-aria-label-off": j || H || t,
538
- onClick: J,
539
- ref: B,
540
- className: x,
541
- disabled: b,
542
- tabIndex: R
543
- }, v), _ && /* @__PURE__ */ i.createElement(Y, {
544
- badge: o,
475
+ toggleOff: ce,
476
+ toggleOffAriaLabel: H,
477
+ toggleOffAriaLabelledBy: j,
478
+ toggleOn: se,
479
+ toggleOnAriaLabel: W,
480
+ toggleOnAriaLabelledBy: V,
481
+ variant: s,
482
+ ...ve
483
+ } = o, R = L(), $ = L(), P = L(), k = se && ce;
484
+ let B = O;
485
+ B === "medium" && u && (B = "small"), l && (B === "small" || B === "xsmall") && (B = "medium"), w(n, () => R.current, []);
486
+ const _e = m("lmnt", "lmnt-icon-button", "mdc-icon-button", C && "lmnt-icon-button__no-hover", (s === "primary" || s === "primary-alt" || s === "secondary" || s === "danger" || s === "danger-alt" || s === "filled-primary" || s === "filled-primary-alt" || s === "filled-secondary" || s === "filled-danger" || s === "filled-danger-alt") && "lmnt-icon-button--fill", (s === "danger-alt" || s === "filled-danger-alt") && "lmnt-icon-button--fill-danger-alt", (s === "danger" || s === "filled-danger") && "lmnt-icon-button--fill-danger", (s === "primary" || s === "filled-primary") && "lmnt-icon-button--fill-primary", (s === "primary-alt" || s === "filled-secondary") && "lmnt-icon-button--fill-secondary", (s === "secondary-alt" || s === "color-on-dark") && "lmnt-icon-button--color-on-dark", s === "color-primary" && "lmnt-icon-button--color-primary", s === "color-secondary" && "lmnt-icon-button--color-secondary", s === "color-on-unknown-black" && "lmnt-icon-button--on-unknown-black", s === "secondary-on-surface" && "lmnt-icon-button--secondary-on-surface", B && `lmnt-icon-button--${B}`, i);
487
+ D(() => (k ? P.current = Pe.attachTo(R.current) : ($.current = ue.attachTo(R.current), $.current.unbounded = !0), () => {
488
+ k ? P.current.destroy() : $.current.destroy();
489
+ }), [P, k, $]), D(() => {
490
+ k && (P.current.on = a);
491
+ }, [a, k, P]);
492
+ const Oe = (g) => {
493
+ _ && _(k ? P.current.on : g);
494
+ }, Ce = q || "button";
495
+ return /* @__PURE__ */ d.createElement(Ce, b({
496
+ "aria-label": r,
497
+ "aria-labelledby": t,
498
+ "data-aria-label-on": W || V || r,
499
+ "data-aria-label-off": H || j || r,
500
+ onClick: Oe,
501
+ ref: R,
502
+ className: _e,
503
+ disabled: f,
504
+ tabIndex: E
505
+ }, ve), h && /* @__PURE__ */ d.createElement(pe, {
506
+ badge: l,
545
507
  badgePlacement: c,
546
- icon: _,
547
- iconSize: S,
548
- iconType: g
549
- }), p && ie(p, (s) => {
550
- var O, u;
508
+ icon: h,
509
+ iconSize: B,
510
+ iconType: p
511
+ }), y && G(y, (g) => {
512
+ var A, N;
551
513
  return {
552
- className: y("mdc-icon-button__icon", s == null || (O = s.props) === null || O === void 0 ? void 0 : O.className),
553
- "aria-hidden": (s == null || (u = s.props) === null || u === void 0 ? void 0 : u["aria-hidden"]) || t || r
514
+ className: m("mdc-icon-button__icon", g == null || (A = g.props) === null || A === void 0 ? void 0 : A.className),
515
+ "aria-hidden": (g == null || (N = g.props) === null || N === void 0 ? void 0 : N["aria-hidden"]) || r || t
554
516
  };
555
- }), $ && n && ie(G, (s) => {
556
- var O, u, L;
517
+ }), k && a && G(se, (g) => {
518
+ var A, N, I;
557
519
  return {
558
- className: y("mdc-icon-button__icon", s == null || (O = s.props) === null || O === void 0 ? void 0 : O.className),
559
- "aria-label": (s == null || (u = s.props) === null || u === void 0 ? void 0 : u["aria-label"]) || h || P || t,
560
- "aria-hidden": (s == null || (L = s.props) === null || L === void 0 ? void 0 : L["aria-hidden"]) || h || P || t
520
+ className: m("mdc-icon-button__icon", g == null || (A = g.props) === null || A === void 0 ? void 0 : A.className),
521
+ "aria-label": (g == null || (N = g.props) === null || N === void 0 ? void 0 : N["aria-label"]) || W || V || r,
522
+ "aria-hidden": (g == null || (I = g.props) === null || I === void 0 ? void 0 : I["aria-hidden"]) || W || V || r
561
523
  };
562
- }), $ && !n && ie(I, (s) => {
563
- var O, u, L;
524
+ }), k && !a && G(ce, (g) => {
525
+ var A, N, I;
564
526
  return {
565
- className: y("mdc-icon-button__icon", s == null || (O = s.props) === null || O === void 0 ? void 0 : O.className),
566
- "aria-label": (s == null || (u = s.props) === null || u === void 0 ? void 0 : u["aria-label"]) || j || H || t,
567
- "aria-hidden": (s == null || (L = s.props) === null || L === void 0 ? void 0 : L["aria-hidden"]) || j || H || t
527
+ className: m("mdc-icon-button__icon", g == null || (A = g.props) === null || A === void 0 ? void 0 : A.className),
528
+ "aria-label": (g == null || (N = g.props) === null || N === void 0 ? void 0 : N["aria-label"]) || H || j || r,
529
+ "aria-hidden": (g == null || (I = g.props) === null || I === void 0 ? void 0 : I["aria-hidden"]) || H || j || r
568
530
  };
569
531
  }));
570
532
  });
571
- ae.displayName = "IconButton";
572
- ae.propTypes = Ge;
573
- ae.defaultProps = Je;
574
- const Ke = {
575
- /**
576
- * @deprecated _Use `themeColor='secondary'` instead._
577
- *
578
- * Preview feature, this may change. Apply alternative button color scheme (defined by the individual theme).
579
- *
580
- * Defaults to **undefined**.
581
- */
582
- altColor: A(e.bool, "Button", 'Use `themeColor="secondary"` instead.'),
583
- /**
584
- * One of 'xsmall', 'small', 'medium', 'large' and 'xlarge' will change the size of the button. Defaults according to your theme.
585
- *
586
- * Defaults to **'themeDefault'**.
587
- */
588
- buttonSize: e.oneOf(["xsmall", "small", "medium", "large", "xlarge", "themeDefault"]),
589
- /**
590
- * 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._
591
- *
592
- * Defaults to **null**.
593
- */
594
- children: e.node,
595
- /**
596
- * The css class name to be passed through to the component markup.
597
- *
598
- * Defaults to **undefined**.
599
- */
600
- className: e.string,
601
- /**
602
- * @deprecated _forwardRef has been implemented for Button._
603
- *
604
- * Reference to the DOM button. This enables a greater level of integration.
605
- *
606
- * Defaults to **undefined**.
607
- */
608
- customRef: A(e.oneOfType([
609
- e.func,
610
- // eslint-disable-next-line react/forbid-prop-types
611
- e.shape({
612
- current: e.any
613
- })
614
- ]), "Button", "forwardRef has been implemented for Button."),
615
- /**
616
- * @deprecated _Use `variant='danger'` instead._
617
- *
618
- * Apply danger style to the button.
619
- *
620
- * Defaults to **undefined**.
621
- */
622
- danger: A(e.bool, "Button", 'Use `variant="danger"` instead.'),
623
- /**
624
- * Prevent the user from interacting with the component.
625
- *
626
- * Defaults to **false**.
627
- */
628
- disabled: e.bool,
629
- /**
630
- * Sets elevation of the button. Default will be the theme default.
631
- *
632
- * Defaults to **'default'**.
633
- */
634
- elevation: e.oneOf(["default", "elevated", "flat"]),
635
- /**
636
- * @deprecated _Use `variant='filled'` instead._
637
- *
638
- * Apply a filled-in style. Previously called `primary`.
639
- *
640
- * Defaults to **undefined**.
641
- */
642
- filled: A(e.bool, "Button", 'Use `variant="filled"` instead.'),
643
- /**
644
- * Applies a full-width style where the textfield will fill it's container.
645
- *
646
- * Defaults to **false**.
647
- */
648
- fullWidth: e.bool,
649
- /**
650
- * The button will render as an anchor tag. If the tag prop is set, that prop will take precedence.
651
- *
652
- * Defaults to **null**.
653
- */
654
- href: e.string,
655
- /**
656
- * The displayed text. Expects a valid string. If label and children are both set, label will take priority.
657
- *
658
- * Defaults to **null**.
659
- */
660
- label: e.string,
661
- /**
662
- * 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,
663
- *
664
- * Defaults to **undefined**.
665
- */
666
- leadingIcon: e.oneOfType([e.string, e.func, e.node]),
667
- /**
668
- * The primary interaction event for button.
669
- *
670
- * Defaults to **null**.
671
- */
672
- onClick: e.func,
673
- /**
674
- * @deprecated _Use `variant='outlined'`._
675
- *
676
- * Apply outlined style to the button. Previously called `secondary`.
677
- *
678
- * Defaults to **undefined**.
679
- */
680
- outlined: A(e.bool, "Button", 'Use `variant="outlined"`.'),
681
- /**
682
- * @deprecated _Use `variant='filled'` instead._
683
- *
684
- * Apply primary style to the Button.
685
- *
686
- * Defaults to **undefined**.
687
- */
688
- primary: A(e.bool, "Button", 'Use `variant="filled"` instead.'),
689
- /**
690
- * @deprecated _Use `'variant=outlined'` instead._
691
- *
692
- * Apply secondary style to the Button.
693
- *
694
- * Defaults to **undefined**.
695
- */
696
- secondary: A(e.bool, "Button", 'Use `"variant=outlined"` instead.'),
697
- /**
698
- * 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.
699
- *
700
- * Defaults to **null**.
701
- */
702
- tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
703
- /**
704
- * @deprecated _Use `variant='embedded'` instead._
705
- *
706
- * Apply tertiary style to the Button.
707
- *
708
- * Defaults to **undefined**.
709
- */
710
- tertiary: A(e.bool, "Button", 'Use `variant="embedded"` instead.'),
711
- /**
712
- * @deprecated _Use `variant='text'` instead._
713
- *
714
- * Apply unfilled, un-outlined style to the Button. Previously called `tertiary`.
715
- *
716
- * Defaults to **undefined**.
717
- */
718
- text: A(e.bool, "Button", 'Use `variant="text"` instead.'),
719
- /**
720
- * Sets the theme color for the button. Most commonly used when the control is placed on a darker surface.
721
- *
722
- * Defaults to **'primary'**.
723
- */
724
- themeColor: Z(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'."),
725
- /**
726
- * 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.
727
- *
728
- * Defaults to **undefined**.
729
- */
730
- trailingIcon: e.oneOfType([e.string, e.func, e.node]),
731
- /**
732
- * This applies the html button type (button, submit, reset) or the anchor media type when used with the href property.
733
- *
734
- * Defaults to **'button'**.
735
- */
736
- type: e.oneOf(["button", "submit", "reset"]),
737
- /**
738
- * @deprecated _Use `elevation='flat' instead._
739
- *
740
- * Remove elevation.
741
- *
742
- * Defaults to **undefined**.
743
- */
744
- unelevated: A(e.bool, "Button", 'Use `elevation="flat" instead.'),
745
- /**
746
- * Applies the selected style to the button. `rounded-small` and `rounded-micro` are only available on select themes.
747
- *
748
- * Defaults to **'filled'**.
749
- */
750
- variant: e.oneOf(["filled", "outlined", "danger", "text", "success", "rounded-small", "rounded-micro"])
751
- }, Qe = {
752
- altColor: void 0,
753
- buttonSize: "themeDefault",
754
- children: null,
755
- className: void 0,
756
- customRef: void 0,
757
- danger: void 0,
758
- disabled: !1,
759
- elevation: "default",
760
- filled: void 0,
761
- fullWidth: !1,
762
- href: null,
763
- label: null,
764
- leadingIcon: void 0,
765
- outlined: void 0,
766
- primary: void 0,
767
- secondary: void 0,
768
- tag: null,
769
- tertiary: void 0,
770
- text: void 0,
771
- themeColor: "primary",
772
- trailingIcon: void 0,
773
- type: "button",
774
- unelevated: void 0,
775
- variant: "filled"
776
- }, Xe = {
777
- /**
778
- * Children to be rendered. Expects multiple Element Buttons
779
- *
780
- * Defaults to **null**.
781
- */
782
- children: e.node,
783
- /**
784
- * How much spacing between buttons. Dense is 8p, standard is 16px and airy is 24px.
785
- *
786
- * Defaults to **'standard'**.
787
- */
788
- variant: e.oneOf(["dense", "standard", "airy"])
789
- }, Ye = {
790
- children: null,
791
- variant: "standard"
792
- }, re = /* @__PURE__ */ k((l, a) => {
793
- const {
794
- altColor: n,
795
- buttonSize: t,
796
- children: r,
797
- className: o,
798
- customRef: c,
799
- disabled: p,
800
- elevation: d,
801
- primary: f,
802
- secondary: b,
803
- tertiary: _,
804
- text: T,
805
- danger: g,
806
- filled: C,
807
- fullWidth: w,
808
- href: R,
809
- label: q,
810
- leadingIcon: I,
811
- onClick: j,
812
- outlined: H,
813
- tag: G,
814
- themeColor: h,
815
- trailingIcon: P,
816
- type: m,
817
- unelevated: v,
818
- variant: B,
819
- ...W
820
- } = l, U = D(c || null);
821
- F(a, () => U.current, []);
822
- const $ = q || r, S = G || (R ? "a" : "button"), x = B === "outlined" || H || b, J = B === "rounded-small" || B === "rounded-micro", E = B === "text" || T || _, s = B === "danger" || g || h === "danger", O = B === "success" || h === "success", u = !x && !E && (B === "filled" || C || f), L = n || h === "secondary", M = h === "primary", Pe = P && !I, K = h === "onUnknownBlack" || h === "on-unknown-black", Q = h === "onUnknownWhite" || h === "on-unknown-white", le = h === "onPrimary" || h === "on-primary", Ce = h === "onSecondary" || h === "on-secondary", Re = Le(() => typeof I == "string" ? /* @__PURE__ */ i.createElement(Y, {
823
- tabIndex: 0,
824
- role: "button",
825
- className: "mdc-button__icon lmnt-button__icon--leading",
826
- icon: I
827
- }) : typeof I == "function" ? I({
828
- className: "mdc-button__icon lmnt-button__icon--leading"
829
- }) : Ae(I, "mdc-button__icon lmnt-button__icon--leading"), [I]), Ue = Le(() => typeof P == "string" ? /* @__PURE__ */ i.createElement(Y, {
830
- tabIndex: 0,
831
- role: "button",
832
- className: "mdc-button__icon lmnt-button__icon--trailing",
833
- icon: P
834
- }) : typeof P == "function" ? P({
835
- className: "mdc-button__icon lmnt-button__icon--trailing"
836
- }) : Ae(P, "mdc-button__icon lmnt-button__icon--trailing"), [P]);
837
- return /* @__PURE__ */ i.createElement(te, {
838
- componentRef: U
839
- }, /* @__PURE__ */ i.createElement(S, N({
840
- ref: U,
841
- href: R,
842
- onClick: j,
843
- type: m,
844
- disabled: p,
845
- className: y("lmnt", "mdc-button", "lmnt-button", "mdc-button--touch", u && v && M && "lmnt-button--filled-primary", u && s && "lmnt-button--filled-danger", u && O && "lmnt-button--filled-success", u && v && L && "lmnt-button--filled-secondary", u && !v && M && ["lmnt-button--filled-primary", "mdc-button--raised"], u && !v && L && ["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 && K && ["lmnt-button--filled-on-unknown-black", "mdc-button--raised"], u && !v && Q && ["lmnt-button--filled-on-unknown-white", "mdc-button--raised"], x && M && ["lmnt-button--outlined-primary", "mdc-button--outlined"], u && !v && le && ["lmnt-button--filled-on-primary", "mdc-button--raised"], x && L && ["lmnt-button--outlined-secondary", "mdc-button--outlined"], x && le && "lmnt-button--outlined-on-primary mdc-button--outlined", x && Ce && "lmnt-button--outlined-on-secondary mdc-button--outlined", x && Q && "lmnt-button--outlined-on-unknown-white mdc-button--outlined", x && K && "lmnt-button--outlined-on-unknown-black mdc-button--outlined", E && le && "lmnt-button--text-on-primary mdc-button__text", E && Ce && "lmnt-button--text-on-secondary mdc-button__text", E && Q && "lmnt-button--text-on-unknown-white mdc-button__text", E && K && "lmnt-button--text-on-unknown-black mdc-button__text", J && Q && "lmnt-button--text-on-unknown-white mdc-button__text", J && K && "lmnt-button--text-on-unknown-black mdc-button__text", E && M && "lmnt-button--text-primary", E && L && "lmnt-button--text-secondary", E && s && "lmnt-button--text-danger", E && O && "lmnt-button--text-success", s && v && L && "lmnt-button--danger-secondary", s && !v && L && ["lmnt-button--danger-secondary", "mdc-button--raised"], s && v && M && "lmnt-button--danger-primary", s && !v && M && ["lmnt-button--danger-primary", "mdc-button--raised"], s && x && ["lmnt-button--danger-primary", "mdc-button--outlined"], O && v && M && "lmnt-button--success-primary", O && !v && M && ["lmnt-button--success-primary", "mdc-button--raised"], O && x && ["lmnt-button--success-primary", "mdc-button--outlined"], O && x && ["lmnt-button--success-primary", "mdc-button--outlined"], w && "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")
846
- }, W), /* @__PURE__ */ i.createElement("span", {
847
- className: "mdc-button__ripple"
848
- }), I && Re(), /* @__PURE__ */ i.createElement("span", {
849
- className: "mdc-button__label"
850
- }, $), Pe && Ue(), /* @__PURE__ */ i.createElement("span", {
851
- className: "mdc-button__touch"
852
- })));
853
- });
854
- re.displayName = "Button";
855
- re.propTypes = Ke;
856
- re.defaultProps = Qe;
857
- const se = /* @__PURE__ */ k((l, a) => {
858
- const {
859
- children: n,
860
- className: t,
861
- variant: r,
862
- ...o
863
- } = l;
864
- return /* @__PURE__ */ i.createElement("div", N({
865
- ref: a,
866
- 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)
867
- }, o), n);
868
- });
869
- se.displayName = "ButtonGroup";
870
- se.propTypes = Xe;
871
- se.defaultProps = Ye;
872
- var Ze = function() {
873
- }, Ee = typeof window < "u", en = Ee ? ze : V, Ie = {
533
+ F.displayName = "IconButton";
534
+ F.propTypes = xe;
535
+ F.defaultProps = Re;
536
+ var $e = function() {
537
+ }, he = typeof window < "u", Se = he ? ke : D, be = {
874
538
  x: 0,
875
539
  y: 0,
876
540
  width: 0,
@@ -880,25 +544,25 @@ var Ze = function() {
880
544
  bottom: 0,
881
545
  right: 0
882
546
  };
883
- function nn() {
884
- var l = de(null), a = l[0], n = l[1], t = de(Ie), r = t[0], o = t[1], c = ee(function() {
885
- return new window.ResizeObserver(function(p) {
886
- if (p[0]) {
887
- var d = p[0].contentRect, f = d.x, b = d.y, _ = d.width, T = d.height, g = d.top, C = d.left, w = d.bottom, R = d.right;
888
- o({ x: f, y: b, width: _, height: T, top: g, left: C, bottom: w, right: R });
547
+ function De() {
548
+ var o = J(null), n = o[0], a = o[1], r = J(be), t = r[0], l = r[1], c = U(function() {
549
+ return new window.ResizeObserver(function(y) {
550
+ if (y[0]) {
551
+ var i = y[0].contentRect, u = i.x, f = i.y, h = i.width, O = i.height, p = i.top, _ = i.left, C = i.bottom, E = i.right;
552
+ l({ x: u, y: f, width: h, height: O, top: p, left: _, bottom: C, right: E });
889
553
  }
890
554
  });
891
555
  }, []);
892
- return en(function() {
893
- if (a)
894
- return c.observe(a), function() {
556
+ return Se(function() {
557
+ if (n)
558
+ return c.observe(n), function() {
895
559
  c.disconnect();
896
560
  };
897
- }, [a]), [n, r];
561
+ }, [n]), [a, t];
898
562
  }
899
- const tn = Ee && typeof window.ResizeObserver < "u" ? nn : function() {
900
- return [Ze, Ie];
901
- }, an = {
563
+ const Ue = he && typeof window.ResizeObserver < "u" ? De : function() {
564
+ return [$e, be];
565
+ }, ze = {
902
566
  /**
903
567
  * Alignment of the Card Body.
904
568
  *
@@ -941,7 +605,7 @@ const tn = Ee && typeof window.ResizeObserver < "u" ? nn : function() {
941
605
  * Defaults to **'default'**.
942
606
  */
943
607
  variant: e.oneOf(["default", "flat", "outlined", "raised"])
944
- }, rn = {
608
+ }, Fe = {
945
609
  bodyAlignment: "left-top",
946
610
  children: null,
947
611
  height: "auto",
@@ -949,7 +613,7 @@ const tn = Ee && typeof window.ResizeObserver < "u" ? nn : function() {
949
613
  style: null,
950
614
  themeColor: "surface",
951
615
  variant: "default"
952
- }, on = {
616
+ }, Me = {
953
617
  /**
954
618
  * Override the default (`primary`) color with the `secondary` color. Most commonly used when the control is placed on a darker surface.
955
619
  *
@@ -1028,7 +692,7 @@ const tn = Ee && typeof window.ResizeObserver < "u" ? nn : function() {
1028
692
  * Defaults to **'button'**.
1029
693
  */
1030
694
  type: e.oneOf(["button", "submit", "reset"])
1031
- }, ln = {
695
+ }, qe = {
1032
696
  actionButtonThemeColor: "primary",
1033
697
  children: null,
1034
698
  className: void 0,
@@ -1040,7 +704,7 @@ const tn = Ee && typeof window.ResizeObserver < "u" ? nn : function() {
1040
704
  leadingIcon: null,
1041
705
  trailingIcon: null,
1042
706
  type: "button"
1043
- }, dn = {
707
+ }, He = {
1044
708
  /**
1045
709
  * Programmatically sets the toggle state of the button when used as a toggle button. If not set, the toggle state will be managed internally.
1046
710
  *
@@ -1124,8 +788,8 @@ const tn = Ee && typeof window.ResizeObserver < "u" ? nn : function() {
1124
788
  *
1125
789
  * Defaults to **empty string**.
1126
790
  */
1127
- variant: Z(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'.")
1128
- }, cn = {
791
+ variant: K(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'.")
792
+ }, je = {
1129
793
  active: !1,
1130
794
  ariaLabel: null,
1131
795
  ariaLabelledBy: null,
@@ -1139,7 +803,7 @@ const tn = Ee && typeof window.ResizeObserver < "u" ? nn : function() {
1139
803
  toggleOnAriaLabel: null,
1140
804
  toggleOnAriaLabelledBy: null,
1141
805
  variant: ""
1142
- }, sn = {
806
+ }, We = {
1143
807
  /**
1144
808
  * Add buttons to card actions.
1145
809
  *
@@ -1158,11 +822,11 @@ const tn = Ee && typeof window.ResizeObserver < "u" ? nn : function() {
1158
822
  * Defaults to **'leading'**.
1159
823
  */
1160
824
  alignment: e.oneOf(["leading", "center", "trailing"])
1161
- }, mn = {
825
+ }, Ve = {
1162
826
  actionButtons: null,
1163
827
  actionIcons: null,
1164
828
  alignment: "leading"
1165
- }, un = {
829
+ }, Ge = {
1166
830
  /**
1167
831
  * Content to be rendered inside the title block. Accepts any valid markup.
1168
832
  *
@@ -1180,21 +844,21 @@ const tn = Ee && typeof window.ResizeObserver < "u" ? nn : function() {
1180
844
  *
1181
845
  * Defaults to **'body2'**.
1182
846
  */
1183
- typographyType: Z(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'.")
1184
- }, yn = {
847
+ typographyType: K(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'.")
848
+ }, Je = {
1185
849
  children: null,
1186
850
  themeColor: "surface",
1187
851
  typographyType: "body2"
1188
- }, pn = {
852
+ }, Ke = {
1189
853
  /**
1190
854
  * Content to be rendered inside the content block. Accepts any valid markup.
1191
855
  *
1192
856
  * Defaults to **null**.
1193
857
  */
1194
858
  children: e.node
1195
- }, gn = {
859
+ }, Qe = {
1196
860
  children: null
1197
- }, fn = {
861
+ }, Xe = {
1198
862
  /**
1199
863
  * Theme color for the Card Divider. Leave empty for gray.
1200
864
  *
@@ -1207,10 +871,10 @@ const tn = Ee && typeof window.ResizeObserver < "u" ? nn : function() {
1207
871
  * Defaults to **'dense'**.
1208
872
  */
1209
873
  dividerVariant: e.oneOf(["dense", "tall"])
1210
- }, bn = {
874
+ }, Ye = {
1211
875
  dividerThemeColor: "on-surface-stroke",
1212
876
  dividerVariant: "dense"
1213
- }, hn = {
877
+ }, Ze = {
1214
878
  /**
1215
879
  * Content to be rendered inside the title block. Mostly commonly a Select, Textfield component, however any valid components or markup may be used.
1216
880
  *
@@ -1229,11 +893,11 @@ const tn = Ee && typeof window.ResizeObserver < "u" ? nn : function() {
1229
893
  * Defaults to **'tabs'**.
1230
894
  */
1231
895
  filterType: e.oneOf(["tabs", "chips", "select", "select-2"])
1232
- }, vn = {
896
+ }, ea = {
1233
897
  children: null,
1234
898
  className: void 0,
1235
899
  filterType: "tabs"
1236
- }, _n = {
900
+ }, aa = {
1237
901
  /**
1238
902
  * Most commonly text or a Typography component, but accepts any valid markup.
1239
903
  *
@@ -1252,11 +916,11 @@ const tn = Ee && typeof window.ResizeObserver < "u" ? nn : function() {
1252
916
  * Defaults to **false**.
1253
917
  */
1254
918
  rtl: e.bool
1255
- }, kn = {
919
+ }, ra = {
1256
920
  children: null,
1257
921
  className: void 0,
1258
922
  rtl: !1
1259
- }, On = {
923
+ }, na = {
1260
924
  /**
1261
925
  * Url for Card media
1262
926
  *
@@ -1275,11 +939,11 @@ const tn = Ee && typeof window.ResizeObserver < "u" ? nn : function() {
1275
939
  * Defaults to **'30%'**.
1276
940
  */
1277
941
  width: e.oneOfType([e.number, e.string])
1278
- }, Nn = {
942
+ }, ta = {
1279
943
  mediaUrl: null,
1280
944
  ratio: "square",
1281
945
  width: "30%"
1282
- }, Cn = {
946
+ }, la = {
1283
947
  /**
1284
948
  * Child components will be rendered on top of the provided image. Use `contentBottom` and `contentTop` to control content positioning. Accepts any valid markup.
1285
949
  *
@@ -1316,14 +980,14 @@ const tn = Ee && typeof window.ResizeObserver < "u" ? nn : function() {
1316
980
  * Defaults to **'square'**.
1317
981
  */
1318
982
  ratio: e.oneOf(["square", "sixteen-nine", "four-three", "four-five", "two-one"])
1319
- }, Tn = {
983
+ }, oa = {
1320
984
  children: null,
1321
985
  contentPlacement: "bottom",
1322
986
  imageUrl: null,
1323
987
  overlay: !1,
1324
988
  overlayThemeColor: "dark",
1325
989
  ratio: "square"
1326
- }, An = {
990
+ }, ia = {
1327
991
  /**
1328
992
  * Content to be rendered inside the Card Overlay. Useful for angles or other non semantic elements displayed in the Card.
1329
993
  *
@@ -1348,12 +1012,12 @@ const tn = Ee && typeof window.ResizeObserver < "u" ? nn : function() {
1348
1012
  * Defaults to **'full'**.
1349
1013
  */
1350
1014
  position: e.oneOf(["full", "leading", "trailing"])
1351
- }, Bn = {
1015
+ }, da = {
1352
1016
  children: null,
1353
1017
  className: void 0,
1354
1018
  overlayThemeColor: "dark",
1355
1019
  position: "full"
1356
- }, Ln = {
1020
+ }, ca = {
1357
1021
  /**
1358
1022
  * Content to be rendered as the primary action.
1359
1023
  *
@@ -1371,11 +1035,11 @@ const tn = Ee && typeof window.ResizeObserver < "u" ? nn : function() {
1371
1035
  *
1372
1036
  * Defaults to **'div'**.
1373
1037
  */
1374
- tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)])
1375
- }, wn = {
1038
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(d.Component)])
1039
+ }, sa = {
1376
1040
  children: null,
1377
1041
  tag: "div"
1378
- }, xn = {
1042
+ }, ma = {
1379
1043
  /**
1380
1044
  * The css class name to be passed through to the component markup.
1381
1045
  *
@@ -1387,7 +1051,7 @@ const tn = Ee && typeof window.ResizeObserver < "u" ? nn : function() {
1387
1051
  *
1388
1052
  * Defaults to **null**.
1389
1053
  */
1390
- leadingBlock: Be(e.node, "CardTitle", "leadingBlockType"),
1054
+ leadingBlock: ye(e.node, "CardTitle", "leadingBlockType"),
1391
1055
  /**
1392
1056
  * The type of media that will render in the leading block. See README for size constraints.
1393
1057
  *
@@ -1441,14 +1105,14 @@ const tn = Ee && typeof window.ResizeObserver < "u" ? nn : function() {
1441
1105
  *
1442
1106
  * Defaults to **null**.
1443
1107
  */
1444
- trailingBlock: Be(e.node, "CardTitle", "trailingBlockType"),
1108
+ trailingBlock: ye(e.node, "CardTitle", "trailingBlockType"),
1445
1109
  /**
1446
1110
  * The type of media that will render in the trailing block. See README for size constraints.
1447
1111
  *
1448
1112
  * Defaults to **empty string**.
1449
1113
  */
1450
1114
  trailingBlockType: e.oneOf(["", "title-actions", "avatar", "badge", "icon", "icon-with-background", "thumbnail"])
1451
- }, En = {
1115
+ }, ya = {
1452
1116
  className: void 0,
1453
1117
  leadingBlock: null,
1454
1118
  leadingBlockType: "",
@@ -1461,346 +1125,344 @@ const tn = Ee && typeof window.ResizeObserver < "u" ? nn : function() {
1461
1125
  themeColor: "surface",
1462
1126
  trailingBlock: null,
1463
1127
  trailingBlockType: ""
1464
- }, me = /* @__PURE__ */ k((l, a) => {
1128
+ }, Q = /* @__PURE__ */ v((o, n) => {
1465
1129
  const {
1466
- bodyAlignment: n,
1467
- children: t,
1468
- className: r,
1469
- direction: o,
1130
+ bodyAlignment: a,
1131
+ children: r,
1132
+ className: t,
1133
+ direction: l,
1470
1134
  height: c,
1471
- loadingCard: p,
1472
- outlined: d,
1473
- style: f,
1474
- themeColor: b,
1475
- variant: _,
1476
- ...T
1477
- } = l, [g, C] = de({
1135
+ loadingCard: y,
1136
+ outlined: i,
1137
+ style: u,
1138
+ themeColor: f,
1139
+ variant: h,
1140
+ ...O
1141
+ } = o, [p, _] = J({
1478
1142
  height: c,
1479
- direction: o,
1480
- ...f
1481
- }), w = D();
1482
- return F(a, () => w.current, []), V(() => {
1483
- C({
1143
+ direction: l,
1144
+ ...u
1145
+ }), C = L();
1146
+ return w(n, () => C.current, []), D(() => {
1147
+ _({
1484
1148
  height: c,
1485
1149
  // display: 'flex', do we need this?
1486
- direction: o,
1487
- ...f
1150
+ direction: l,
1151
+ ...u
1488
1152
  });
1489
- }, [c, o, f]), /* @__PURE__ */ i.createElement("div", N({
1490
- ref: w,
1491
- 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),
1492
- style: g
1493
- }, T), t);
1153
+ }, [c, l, u]), /* @__PURE__ */ d.createElement("div", b({
1154
+ ref: C,
1155
+ className: m("lmnt", "lmnt-card", "mdc-card", h === "outlined" && "mdc-card--outlined", h === "flat" && "lmnt-card--flat", h === "raised" && "lmnt-card--raised", y && "lmnt-card--loading", `lmnt-card--${a}`, `lmnt-theme-${f}-bg`, t),
1156
+ style: p
1157
+ }, O), r);
1494
1158
  });
1495
- me.displayName = "Card";
1496
- me.propTypes = an;
1497
- me.defaultProps = rn;
1498
- const ue = /* @__PURE__ */ k((l, a) => {
1159
+ Q.displayName = "Card";
1160
+ Q.propTypes = ze;
1161
+ Q.defaultProps = Fe;
1162
+ const X = /* @__PURE__ */ v((o, n) => {
1499
1163
  const {
1500
- children: n,
1501
- className: t,
1502
- customRef: r,
1503
- disabled: o,
1164
+ children: a,
1165
+ className: r,
1166
+ customRef: t,
1167
+ disabled: l,
1504
1168
  fullWidth: c,
1505
- href: p,
1506
- label: d,
1507
- leadingIcon: f,
1508
- actionButtonThemeColor: b,
1509
- trailingIcon: _,
1510
- type: T,
1511
- ...g
1512
- } = l, C = ee(() => d || n, [d, n]);
1513
- return /* @__PURE__ */ i.createElement(re, N({
1514
- ref: a,
1515
- customRef: r,
1516
- disabled: o,
1169
+ href: y,
1170
+ label: i,
1171
+ leadingIcon: u,
1172
+ actionButtonThemeColor: f,
1173
+ trailingIcon: h,
1174
+ type: O,
1175
+ ...p
1176
+ } = o, _ = U(() => i || a, [i, a]);
1177
+ return /* @__PURE__ */ d.createElement(Be, b({
1178
+ ref: n,
1179
+ customRef: t,
1180
+ disabled: l,
1517
1181
  fullWidth: c,
1518
- href: p,
1519
- label: d,
1520
- leadingIcon: f,
1521
- themeColor: b,
1522
- trailingIcon: _,
1523
- type: T,
1182
+ href: y,
1183
+ label: i,
1184
+ leadingIcon: u,
1185
+ themeColor: f,
1186
+ trailingIcon: h,
1187
+ type: O,
1524
1188
  variant: "text",
1525
- className: y("mdc-card__action mdc-card__action--button", t)
1526
- }, g), C);
1189
+ className: m("mdc-card__action mdc-card__action--button", r)
1190
+ }, p), _);
1527
1191
  });
1528
- ue.displayName = "CardActionButton";
1529
- ue.propTypes = on;
1530
- ue.defaultProps = ln;
1531
- const ye = /* @__PURE__ */ k((l, a) => {
1192
+ X.displayName = "CardActionButton";
1193
+ X.propTypes = Me;
1194
+ X.defaultProps = qe;
1195
+ const Y = /* @__PURE__ */ v((o, n) => {
1532
1196
  const {
1533
- active: n,
1534
- ariaLabel: t,
1535
- ariaLabelledBy: r,
1536
- children: o,
1197
+ active: a,
1198
+ ariaLabel: r,
1199
+ ariaLabelledBy: t,
1200
+ children: l,
1537
1201
  className: c,
1538
- disabled: p,
1539
- onClick: d,
1540
- toggleOff: f,
1541
- toggleOffAriaLabel: b,
1542
- toggleOffAriaLabelledBy: _,
1543
- toggleOn: T,
1544
- toggleOnAriaLabel: g,
1545
- toggleOnAriaLabelledBy: C,
1546
- variant: w,
1547
- ...R
1548
- } = l, q = ee(() => typeof o == "string" ? /* @__PURE__ */ i.createElement(Y, {
1549
- icon: o
1550
- }) : o, [o]);
1551
- return /* @__PURE__ */ i.createElement(ae, N({
1552
- ref: a,
1553
- variant: w,
1554
- disabled: p,
1555
- onClick: d,
1556
- ariaLabel: t,
1557
- toggleOffAriaLabel: b,
1558
- toggleOffAriaLabelledBy: _,
1559
- toggleOnAriaLabel: g,
1560
- toggleOnAriaLabelledBy: C,
1561
- toggleOn: T,
1562
- toggleOff: f,
1563
- className: y("mdc-card__action mdc-card__action--icon", c)
1564
- }, R), q);
1202
+ disabled: y,
1203
+ onClick: i,
1204
+ toggleOff: u,
1205
+ toggleOffAriaLabel: f,
1206
+ toggleOffAriaLabelledBy: h,
1207
+ toggleOn: O,
1208
+ toggleOnAriaLabel: p,
1209
+ toggleOnAriaLabelledBy: _,
1210
+ variant: C,
1211
+ ...E
1212
+ } = o, q = U(() => typeof l == "string" ? /* @__PURE__ */ d.createElement(pe, {
1213
+ icon: l
1214
+ }) : l, [l]);
1215
+ return /* @__PURE__ */ d.createElement(F, b({
1216
+ ref: n,
1217
+ variant: C,
1218
+ disabled: y,
1219
+ onClick: i,
1220
+ ariaLabel: r,
1221
+ toggleOffAriaLabel: f,
1222
+ toggleOffAriaLabelledBy: h,
1223
+ toggleOnAriaLabel: p,
1224
+ toggleOnAriaLabelledBy: _,
1225
+ toggleOn: O,
1226
+ toggleOff: u,
1227
+ className: m("mdc-card__action mdc-card__action--icon", c)
1228
+ }, E), q);
1565
1229
  });
1566
- ye.displayName = "CardActionIcon";
1567
- ye.propTypes = dn;
1568
- ye.defaultProps = cn;
1569
- const pe = /* @__PURE__ */ k((l, a) => {
1230
+ Y.displayName = "CardActionIcon";
1231
+ Y.propTypes = He;
1232
+ Y.defaultProps = je;
1233
+ const Z = /* @__PURE__ */ v((o, n) => {
1570
1234
  const {
1571
- alignment: n,
1572
- actionIcons: t,
1573
- actionButtons: r,
1574
- className: o,
1235
+ alignment: a,
1236
+ actionIcons: r,
1237
+ actionButtons: t,
1238
+ className: l,
1575
1239
  ...c
1576
- } = l;
1577
- return /* @__PURE__ */ i.createElement("div", N({
1578
- ref: a,
1579
- 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)
1580
- }, c), r && /* @__PURE__ */ i.createElement("div", {
1240
+ } = o;
1241
+ return /* @__PURE__ */ d.createElement("div", b({
1242
+ ref: n,
1243
+ className: m("lmnt", "mdc-card__actions", a === "leading" && "lmnt-card__actions--leading", a === "center" && "lmnt-card__actions--center", a === "trailing" && "lmnt-card__actions--trailing", l)
1244
+ }, c), t && /* @__PURE__ */ d.createElement("div", {
1581
1245
  className: "mdc-card__action-buttons"
1582
- }, r), t && n === "leading" && /* @__PURE__ */ i.createElement("div", {
1246
+ }, t), r && a === "leading" && /* @__PURE__ */ d.createElement("div", {
1583
1247
  className: "mdc-card__action-icons"
1584
- }, t));
1248
+ }, r));
1585
1249
  });
1586
- pe.displayName = "CardActions";
1587
- pe.propTypes = sn;
1588
- pe.defaultProps = mn;
1589
- const ge = /* @__PURE__ */ k((l, a) => {
1250
+ Z.displayName = "CardActions";
1251
+ Z.propTypes = We;
1252
+ Z.defaultProps = Ve;
1253
+ const ee = /* @__PURE__ */ v((o, n) => {
1590
1254
  const {
1591
- children: n,
1592
- typographyType: t,
1593
- themeColor: r,
1594
- className: o,
1255
+ children: a,
1256
+ typographyType: r,
1257
+ themeColor: t,
1258
+ className: l,
1595
1259
  ...c
1596
- } = l;
1597
- return /* @__PURE__ */ i.createElement("div", N({
1598
- ref: a,
1599
- 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)
1600
- }, c), n);
1260
+ } = o;
1261
+ return /* @__PURE__ */ d.createElement("div", b({
1262
+ ref: n,
1263
+ className: m("lmnt-card-body", r === "body1" && " mdc-typography--body1", r === "body2" && " mdc-typography--body2", r === "button" && " mdc-typography--button", r === "caption" && " mdc-typography--caption", r === "headline1" && " mdc-typography--headline1", r === "headline2" && " mdc-typography--headline2", r === "headline3" && " mdc-typography--headline3", r === "headline4" && " mdc-typography--headline4", r === "headline5" && " mdc-typography--headline5", r === "headline6" && " mdc-typography--headline6", r === "display1" && " mdc-typography--headline1", r === "display2" && " mdc-typography--headline2", r === "display3" && " mdc-typography--headline3", r === "display4" && " mdc-typography--headline4", r === "display5" && " mdc-typography--headline5", r === "display6" && " mdc-typography--headline6", r === "overline" && " mdc-typography--overline", r === "subtitle1" && " mdc-typography--subtitle1", r === "subtitle2" && " mdc-typography--subtitle2", `lmnt-theme-${t}-bg`, l)
1264
+ }, c), a);
1601
1265
  });
1602
- ge.displayName = "CardBody";
1603
- ge.propTypes = un;
1604
- ge.defaultProps = yn;
1605
- const fe = /* @__PURE__ */ k((l, a) => {
1266
+ ee.displayName = "CardBody";
1267
+ ee.propTypes = Ge;
1268
+ ee.defaultProps = Je;
1269
+ const ae = /* @__PURE__ */ v((o, n) => {
1606
1270
  const {
1607
- children: n,
1608
- className: t,
1609
- ...r
1610
- } = l;
1611
- return /* @__PURE__ */ i.createElement("div", N({
1612
- ref: a,
1613
- className: y(["lmnt", "mdc-card__content"], t)
1614
- }, r), n);
1271
+ children: a,
1272
+ className: r,
1273
+ ...t
1274
+ } = o;
1275
+ return /* @__PURE__ */ d.createElement("div", b({
1276
+ ref: n,
1277
+ className: m(["lmnt", "mdc-card__content"], r)
1278
+ }, t), a);
1615
1279
  });
1616
- fe.displayName = "CardContent";
1617
- fe.propTypes = pn;
1618
- fe.defaultProps = gn;
1619
- const be = /* @__PURE__ */ k((l, a) => {
1280
+ ae.displayName = "CardContent";
1281
+ ae.propTypes = Ke;
1282
+ ae.defaultProps = Qe;
1283
+ const re = /* @__PURE__ */ v((o, n) => {
1620
1284
  const {
1621
- className: n,
1622
- dividerVariant: t,
1623
- dividerThemeColor: r,
1624
- ...o
1625
- } = l;
1626
- return /* @__PURE__ */ i.createElement(ne, N({
1627
- ref: a,
1628
- variant: t,
1629
- themeColor: r,
1630
- className: y("mdc-card__divider", "lmnt-card-divider", n)
1631
- }, o));
1285
+ className: a,
1286
+ dividerVariant: r,
1287
+ dividerThemeColor: t,
1288
+ ...l
1289
+ } = o;
1290
+ return /* @__PURE__ */ d.createElement(z, b({
1291
+ ref: n,
1292
+ variant: r,
1293
+ themeColor: t,
1294
+ className: m("mdc-card__divider", "lmnt-card-divider", a)
1295
+ }, l));
1632
1296
  });
1633
- be.displayName = "CardDivider";
1634
- be.propTypes = fn;
1635
- be.defaultProps = bn;
1636
- const he = /* @__PURE__ */ k((l, a) => {
1297
+ re.displayName = "CardDivider";
1298
+ re.propTypes = Xe;
1299
+ re.defaultProps = Ye;
1300
+ const ne = /* @__PURE__ */ v((o, n) => {
1637
1301
  const {
1638
- children: n,
1639
- className: t,
1640
- filterType: r,
1641
- ...o
1642
- } = l;
1643
- return /* @__PURE__ */ i.createElement("div", N({
1644
- ref: a,
1645
- 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)
1646
- }, o), n);
1302
+ children: a,
1303
+ className: r,
1304
+ filterType: t,
1305
+ ...l
1306
+ } = o;
1307
+ return /* @__PURE__ */ d.createElement("div", b({
1308
+ ref: n,
1309
+ className: m("lmnt", "lmnt-card__filters", t === "chips" && "lmnt-card__filters--chips", t === "select" && "lmnt-card__filters--select", t === "select-2" && "lmnt-card__filters--select lmnt-card__filters--select-2", r)
1310
+ }, l), a);
1647
1311
  });
1648
- he.displayName = "CardFilter";
1649
- he.propTypes = hn;
1650
- he.defaultProps = vn;
1651
- const In = /* @__PURE__ */ De({
1312
+ ne.displayName = "CardFilter";
1313
+ ne.propTypes = Ze;
1314
+ ne.defaultProps = ea;
1315
+ const pa = /* @__PURE__ */ Te({
1652
1316
  groupRect: {}
1653
- }), ve = /* @__PURE__ */ k((l, a) => {
1317
+ }), te = /* @__PURE__ */ v((o, n) => {
1654
1318
  const {
1655
- children: n,
1656
- className: t,
1657
- rtl: r,
1658
- ...o
1659
- } = l, [c, p] = tn(), d = D(c);
1660
- return F(a, () => d.current, []), F(c, () => d.current, []), // eslint-disable-next-line react/jsx-no-constructed-context-values
1661
- /* @__PURE__ */ i.createElement(In.Provider, {
1319
+ children: a,
1320
+ className: r,
1321
+ rtl: t,
1322
+ ...l
1323
+ } = o, [c, y] = Ue(), i = L(c);
1324
+ return w(n, () => i.current, []), w(c, () => i.current, []), // eslint-disable-next-line react/jsx-no-constructed-context-values
1325
+ /* @__PURE__ */ d.createElement(pa.Provider, {
1662
1326
  value: {
1663
- groupRect: p
1327
+ groupRect: y
1664
1328
  }
1665
- }, /* @__PURE__ */ i.createElement(Fe, N({
1666
- className: y("lmnt-card__horizontal-group", "lmnt-card--horizontal", t),
1667
- ref: d,
1329
+ }, /* @__PURE__ */ d.createElement(Le, b({
1330
+ className: m("lmnt-card__horizontal-group", "lmnt-card--horizontal", r),
1331
+ ref: i,
1668
1332
  gap: "none",
1669
- direction: r ? "horizontal-reverse" : "horizontal",
1333
+ direction: t ? "horizontal-reverse" : "horizontal",
1670
1334
  secondaryAlign: "start"
1671
- }, o), n));
1335
+ }, l), a));
1672
1336
  });
1673
- ve.propTypes = _n;
1674
- ve.defaultProps = kn;
1675
- ve.displayName = "CardHorizontalGroup";
1676
- const oe = /* @__PURE__ */ k((l, a) => {
1337
+ te.propTypes = aa;
1338
+ te.defaultProps = ra;
1339
+ te.displayName = "CardHorizontalGroup";
1340
+ const M = /* @__PURE__ */ v((o, n) => {
1677
1341
  const {
1678
- children: n,
1679
- className: t,
1680
- position: r,
1681
- overlayThemeColor: o,
1342
+ children: a,
1343
+ className: r,
1344
+ position: t,
1345
+ overlayThemeColor: l,
1682
1346
  ...c
1683
- } = l, p = D();
1684
- F(a, () => p.current, []);
1685
- const d = ee(() => 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]);
1686
- return /* @__PURE__ */ i.createElement("div", N({
1687
- className: d
1688
- }, c), n && n);
1347
+ } = o, y = L();
1348
+ w(n, () => y.current, []);
1349
+ const i = U(() => t !== "none" && m("lmnt", "lmnt-card-overlay ", !l.includes("gradient") && l !== "surface" && `lmnt-card-overlay__${l}`, l.includes("gradient") && l !== "surface" && `lmnt-theme--bg-${l}`, l === "surface" && "lmnt-theme-surface-bg", `lmnt-card-overlay__${t}`, r), [l, t, r]);
1350
+ return /* @__PURE__ */ d.createElement("div", b({
1351
+ className: i
1352
+ }, c), a && a);
1689
1353
  });
1690
- oe.displayName = "CardOverlay";
1691
- oe.propTypes = An;
1692
- oe.defaultProps = Bn;
1693
- const _e = /* @__PURE__ */ k((l, a) => {
1354
+ M.displayName = "CardOverlay";
1355
+ M.propTypes = ia;
1356
+ M.defaultProps = da;
1357
+ const le = /* @__PURE__ */ v((o, n) => {
1694
1358
  const {
1695
- children: n,
1696
- className: t,
1697
- contentPlacement: r,
1698
- imageUrl: o,
1359
+ children: a,
1360
+ className: r,
1361
+ contentPlacement: t,
1362
+ imageUrl: l,
1699
1363
  overlay: c,
1700
- overlayThemeColor: p,
1701
- ratio: d,
1702
- style: f,
1703
- ...b
1704
- } = l;
1705
- return /* @__PURE__ */ i.createElement("div", N({
1706
- ref: a,
1707
- 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),
1364
+ overlayThemeColor: y,
1365
+ ratio: i,
1366
+ style: u,
1367
+ ...f
1368
+ } = o;
1369
+ return /* @__PURE__ */ d.createElement("div", b({
1370
+ ref: n,
1371
+ className: m("lmnt", "mdc-card__media", (i === "square" || !i) && "mdc-card__media--square", i === "sixteen-nine" && "mdc-card__media--16-9", i === "four-three" && "lmnt-card__media--4-3", i === "four-five" && "lmnt-card__media--4-5", i === "two-one" && "lmnt-card__media--2-1", r),
1708
1372
  style: {
1709
- backgroundImage: `url(${o})`,
1710
- ...f
1373
+ backgroundImage: `url(${l})`,
1374
+ ...u
1711
1375
  }
1712
- }, b), c && /* @__PURE__ */ i.createElement(oe, {
1713
- overlayThemeColor: p
1714
- }), n && /* @__PURE__ */ i.createElement("div", {
1715
- 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")
1716
- }, /* @__PURE__ */ i.createElement("div", {
1376
+ }, f), c && /* @__PURE__ */ d.createElement(M, {
1377
+ overlayThemeColor: y
1378
+ }), a && /* @__PURE__ */ d.createElement("div", {
1379
+ className: m("mdc-card__media-content", c && "lmnt-card__media-content--with-overlay", t === "bottom" && "lmnt-card__content--bottom", t === "top" && "lmnt-card__content--top")
1380
+ }, /* @__PURE__ */ d.createElement("div", {
1717
1381
  className: "lmnt-card__media-inner-content"
1718
- }, n)));
1382
+ }, a)));
1719
1383
  });
1720
- _e.displayName = "CardMedia";
1721
- _e.propTypes = Cn;
1722
- _e.defaultProps = Tn;
1723
- const ke = /* @__PURE__ */ k((l, a) => {
1384
+ le.displayName = "CardMedia";
1385
+ le.propTypes = la;
1386
+ le.defaultProps = oa;
1387
+ const oe = /* @__PURE__ */ v((o, n) => {
1724
1388
  const {
1725
- children: n,
1726
- className: t,
1727
- tag: r = "div",
1728
- ...o
1729
- } = l;
1730
- return /* @__PURE__ */ i.createElement(r, N({
1731
- ref: a,
1389
+ children: a,
1390
+ className: r,
1391
+ tag: t = "div",
1392
+ ...l
1393
+ } = o;
1394
+ return /* @__PURE__ */ d.createElement(t, b({
1395
+ ref: n,
1732
1396
  tabIndex: "0",
1733
- className: y(["lmnt", "mdc-card__primary-action"], t)
1734
- }, o), n);
1397
+ className: m(["lmnt", "mdc-card__primary-action"], r)
1398
+ }, l), a);
1735
1399
  });
1736
- ke.displayName = "CardPrimaryAction";
1737
- ke.propTypes = Ln;
1738
- ke.defaultProps = wn;
1739
- const Oe = /* @__PURE__ */ k((l, a) => {
1400
+ oe.displayName = "CardPrimaryAction";
1401
+ oe.propTypes = ca;
1402
+ oe.defaultProps = sa;
1403
+ const ie = /* @__PURE__ */ v((o, n) => {
1740
1404
  const {
1741
- className: n,
1742
- leadingBlock: t,
1743
- leadingBlockType: r,
1744
- overlineText: o,
1405
+ className: a,
1406
+ leadingBlock: r,
1407
+ leadingBlockType: t,
1408
+ overlineText: l,
1745
1409
  placement: c,
1746
- primaryText: p,
1747
- secondaryText: d,
1748
- stackedSecondaryText: f,
1749
- stacked: b,
1750
- themeColor: _,
1751
- trailingBlock: T,
1752
- trailingBlockType: g,
1753
- ...C
1754
- } = l;
1755
- return /* @__PURE__ */ i.createElement("div", N({
1756
- ref: a,
1757
- 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)
1758
- }, C), r ? /* @__PURE__ */ i.createElement("div", {
1759
- 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")
1760
- }, t) : null, /* @__PURE__ */ i.createElement("div", {
1410
+ primaryText: y,
1411
+ secondaryText: i,
1412
+ stackedSecondaryText: u,
1413
+ stacked: f,
1414
+ themeColor: h,
1415
+ trailingBlock: O,
1416
+ trailingBlockType: p,
1417
+ ..._
1418
+ } = o;
1419
+ return /* @__PURE__ */ d.createElement("div", b({
1420
+ ref: n,
1421
+ className: m("lmnt", "lmnt-card-title", f && "lmnt-card-title--stacked", c === "top" && "lmnt-card-title--top-placement", c === "bottom" && "lmnt-card-title--bottom-placement", h === "primary" && "lmnt-theme-primary-bg", h === "secondary" && "lmnt-theme-secondary-bg", a)
1422
+ }, _), t ? /* @__PURE__ */ d.createElement("div", {
1423
+ className: m("lmnt-card-title__leadingBlock", t === "avatar" && "lmnt-card-title__leadingBlock--avatar", t === "icon" && "lmnt-card-title__leadingBlock--icon", t === "icon-with-background" && "lmnt-card-title__leadingBlock--icon-with-background", t === "thumbnail" && "lmnt-card-title__leadingBlock--thumbnail")
1424
+ }, r) : null, /* @__PURE__ */ d.createElement("div", {
1761
1425
  className: "lmnt-card-title__text"
1762
- }, o && /* @__PURE__ */ i.createElement("div", {
1426
+ }, l && /* @__PURE__ */ d.createElement("div", {
1763
1427
  className: "lmnt-card-title__overlineText"
1764
- }, o), p, (d || f) && /* @__PURE__ */ i.createElement("div", {
1765
- className: y("lmnt-card-title-secondaryText-container", !b && "lmnt-card-title__items")
1766
- }, d && /* @__PURE__ */ i.createElement("div", {
1428
+ }, l), y, (i || u) && /* @__PURE__ */ d.createElement("div", {
1429
+ className: m("lmnt-card-title-secondaryText-container", !f && "lmnt-card-title__items")
1430
+ }, i && /* @__PURE__ */ d.createElement("div", {
1767
1431
  className: "lmnt-card-title__secondaryText"
1768
- }, d), f && /* @__PURE__ */ i.createElement("div", {
1432
+ }, i), u && /* @__PURE__ */ d.createElement("div", {
1769
1433
  className: "lmnt-card-title__secondaryText"
1770
- }, f))), g ? /* @__PURE__ */ i.createElement("div", {
1771
- 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")
1772
- }, T) : null);
1434
+ }, u))), p ? /* @__PURE__ */ d.createElement("div", {
1435
+ className: m("lmnt-card-title__trailingBlock", p === "title-actions" && "lmnt-card-title__trailingBlock--title-actions", p === "avatar" && "lmnt-card-title__trailingBlock--avatar", p === "icon" && "lmnt-card-title__trailingBlock--icon", p === "icon-with-background" && "lmnt-card-title__trailingBlock--icon-with-background", p === "thumbnail" && "lmnt-card-title__trailingBlock--thumbnail", p === "badge" && "lmnt-card-title__trailingBlock--badge")
1436
+ }, O) : null);
1773
1437
  });
1774
- Oe.displayName = "CardTitle";
1775
- Oe.propTypes = xn;
1776
- Oe.defaultProps = En;
1777
- const Ne = /* @__PURE__ */ k((l, a) => {
1438
+ ie.displayName = "CardTitle";
1439
+ ie.propTypes = ma;
1440
+ ie.defaultProps = ya;
1441
+ const de = /* @__PURE__ */ v((o, n) => {
1778
1442
  const {
1779
- style: n,
1780
- mediaUrl: t,
1781
- width: r,
1782
- ...o
1783
- } = l, c = D();
1784
- return F(a, () => c.current, []), /* @__PURE__ */ i.createElement("img", N({
1785
- src: t,
1443
+ style: a,
1444
+ mediaUrl: r,
1445
+ width: t,
1446
+ ...l
1447
+ } = o, c = L();
1448
+ return w(n, () => c.current, []), /* @__PURE__ */ d.createElement("img", b({
1449
+ src: r,
1786
1450
  alt: "leadingCardMedia",
1787
- width: r,
1451
+ width: t,
1788
1452
  style: {
1789
1453
  flexShrink: 0,
1790
- ...n
1454
+ ...a
1791
1455
  }
1792
- }, o));
1456
+ }, l));
1793
1457
  });
1794
- Ne.propTypes = On;
1795
- Ne.defaultProps = Nn;
1796
- Ne.displayName = "CardLeadingMedia";
1458
+ de.propTypes = na;
1459
+ de.defaultProps = ta;
1460
+ de.displayName = "CardLeadingMedia";
1797
1461
  export {
1798
- Oe as $,
1799
- me as B,
1800
- be as I,
1801
- re as O,
1802
- ae as a,
1803
- te as o,
1804
- fe as w,
1805
- ge as x
1462
+ ie as $,
1463
+ Q as B,
1464
+ re as I,
1465
+ F as a,
1466
+ ae as w,
1467
+ ee as x
1806
1468
  };