@hortiview/default-components 1.4.2 → 1.4.4

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 (32) hide show
  1. package/dist/{Iconify-CUZc8WnW.js → Iconify-aUog1Oez.js} +5 -5
  2. package/dist/{InfoCard-CFmkh7DJ.js → InfoCard-BxjAQiFE.js} +6 -6
  3. package/dist/{LoadingSpinner-DVBQ1tGJ.js → LoadingSpinner-DBMjIfY1.js} +9 -9
  4. package/dist/{OfflineView-DHtzNLwt-BmxTfGZq.js → OfflineView-NUM9WE0F-BI9rnget.js} +4 -4
  5. package/dist/assets/DefaultFormNumber.css +1 -1
  6. package/dist/assets/DefaultFormSelect.css +1 -1
  7. package/dist/assets/GenericTable.css +1 -1
  8. package/dist/{component-DsB0poTj-CeLHB9Ok.js → component-DsB0poTj-DgsYK0_R.js} +1 -1
  9. package/dist/components/DefaultFormNumber/DefaultFormNumber.js +294 -293
  10. package/dist/components/DefaultFormSelect/DefaultFormSelect.js +53 -53
  11. package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +2 -2
  12. package/dist/components/GenericTable/GenericTable.js +9553 -8760
  13. package/dist/components/HealthChecks/DataBaseHealthCheck.js +2 -2
  14. package/dist/components/HealthChecks/DefaultHealthCheck.js +2 -2
  15. package/dist/components/HealthChecks/IotServiceHealthCheck.js +2 -2
  16. package/dist/components/HealthChecks/PlatformHealthCheck.js +2 -2
  17. package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +2 -2
  18. package/dist/components/OfflineView/OfflineView.js +2 -2
  19. package/dist/{index.es-IXyb5F6n-B5afcHX8.js → correct-is-regexp-logic-BBlm4UpN-CvII841s.js} +147 -106
  20. package/dist/{index.es-0QJC9VS2-CNPew9LK.js → index.es-B0QNuIUR-Bte5aF5M.js} +16 -16
  21. package/dist/{index.es-Bo1Rhtyb-B650l9Yk.js → index.es-CIsLNz4j-ZEEcPmTs.js} +1 -1
  22. package/dist/{index.es-DENZVv7_-PUEN9sIa.js → index.es-CvHDFF6V-CjZvA03R.js} +25 -25
  23. package/dist/{index.es-Cq04gn3U-Bvzrqtm6.js → index.es-DiONypF4-eT98Y3u_.js} +19 -19
  24. package/dist/{index.es-Bg8hxXM8-BlFd894m.js → index.es-DnEIFMjv-DuuORGfo.js} +234 -273
  25. package/dist/{index.es-BGordhUK-C36NK84Q.js → index.es-NEYPxnlS-C8xQv2De.js} +42 -42
  26. package/dist/{index.es-CK4oZMKs-Da8pin7D.js → index.es-fV9oWpEf-BXuhoGtE.js} +4790 -4493
  27. package/dist/{isTypedArray-Dw_IY7Zq-BZ-4N8-Z.js → isTypedArray-Dw_IY7Zq-wj3MphCb.js} +61 -61
  28. package/dist/{slicedToArray-BWk2gTCn-Cfzj7tjm.js → slicedToArray-h0Nnkd_P-C4SkVJMK.js} +137 -137
  29. package/dist/{useHelperText-3ahu6tTS.js → useHelperText-B7OMZXvE.js} +44 -44
  30. package/dist/{useTranslation-CVaIJbcK.js → useTranslation-B_lNCuLm.js} +2344 -2278
  31. package/package.json +5 -4
  32. /package/dist/assets/{OfflineView-DHtzNLwt.css → OfflineView-NUM9WE0F.css} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { G as r } from "../../InfoCard-CFmkh7DJ.js";
2
+ import { G as r } from "../../InfoCard-BxjAQiFE.js";
3
3
  import { InternationalizationWrapper as o } from "../InternationalizationWrapper/InternationalizationWrapper.js";
4
- import { u as i } from "../../useTranslation-CVaIJbcK.js";
4
+ import { u as i } from "../../useTranslation-B_lNCuLm.js";
5
5
  const m = ({ ...e }) => {
6
6
  const { t } = i();
7
7
  return /* @__PURE__ */ a(o, { children: /* @__PURE__ */ a(
@@ -1,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { G as o } from "../../InfoCard-CFmkh7DJ.js";
2
+ import { G as o } from "../../InfoCard-BxjAQiFE.js";
3
3
  import { InternationalizationWrapper as a } from "../InternationalizationWrapper/InternationalizationWrapper.js";
4
- import { u as i } from "../../useTranslation-CVaIJbcK.js";
4
+ import { u as i } from "../../useTranslation-B_lNCuLm.js";
5
5
  const p = ({ ...r }) => {
6
6
  const { t } = i();
7
7
  return /* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(
@@ -1,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { G as i } from "../../InfoCard-CFmkh7DJ.js";
2
+ import { G as i } from "../../InfoCard-BxjAQiFE.js";
3
3
  import { InternationalizationWrapper as o } from "../InternationalizationWrapper/InternationalizationWrapper.js";
4
- import { u as a } from "../../useTranslation-CVaIJbcK.js";
4
+ import { u as a } from "../../useTranslation-B_lNCuLm.js";
5
5
  const m = ({ ...r }) => {
6
6
  const { t } = a();
7
7
  return /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
@@ -1,7 +1,7 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { G as e } from "../../InfoCard-CFmkh7DJ.js";
2
+ import { G as e } from "../../InfoCard-BxjAQiFE.js";
3
3
  import { InternationalizationWrapper as a } from "../InternationalizationWrapper/InternationalizationWrapper.js";
4
- import { u as l } from "../../useTranslation-CVaIJbcK.js";
4
+ import { u as l } from "../../useTranslation-B_lNCuLm.js";
5
5
  const h = ({ isOutlined: o }) => {
6
6
  const { t } = l();
7
7
  return /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { N as r } from "../../LoadingSpinner-DVBQ1tGJ.js";
2
+ import { N as r } from "../../LoadingSpinner-DBMjIfY1.js";
3
3
  import { InternationalizationWrapper as a } from "../InternationalizationWrapper/InternationalizationWrapper.js";
4
- import { u as t } from "../../useTranslation-CVaIJbcK.js";
4
+ import { u as t } from "../../useTranslation-B_lNCuLm.js";
5
5
  const c = ({ ...i }) => {
6
6
  const { t: e } = t();
7
7
  return /* @__PURE__ */ n(a, { children: /* @__PURE__ */ n(
@@ -1,7 +1,7 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { j as o } from "../../OfflineView-DHtzNLwt-BmxTfGZq.js";
2
+ import { j as o } from "../../OfflineView-NUM9WE0F-BI9rnget.js";
3
3
  import { InternationalizationWrapper as r } from "../InternationalizationWrapper/InternationalizationWrapper.js";
4
- import { u as n } from "../../useTranslation-CVaIJbcK.js";
4
+ import { u as n } from "../../useTranslation-B_lNCuLm.js";
5
5
  const a = ({ ...e }) => {
6
6
  const { t } = n();
7
7
  return /* @__PURE__ */ i(r, { children: /* @__PURE__ */ i(
@@ -1,12 +1,12 @@
1
- import { r as Ee, d as Se, e as v, h as ie, l as Re, B as T, g as ue, i as Pe, F as we, j as re, k as De, Y as xe, t as a, m as Fe } from "./useTranslation-CVaIJbcK.js";
2
- import N, { forwardRef as je, useRef as B, useImperativeHandle as He, useEffect as de } from "react";
3
- import { U as fe } from "./component-DsB0poTj-CeLHB9Ok.js";
4
- var se, ce;
5
- function ze() {
6
- return ce || (ce = 1, se = /* @__PURE__ */ we()), se;
1
+ import { r as ze, z as Fe, e as y, h as ce, n as He, B as C, k as he, m as je, ak as Ue, l as de, o as $e, ae as qe, t as a, q as Ge, Q as ve, a1 as Me, al as Ve } from "./useTranslation-B_lNCuLm.js";
2
+ import k, { forwardRef as We, useRef as B, useImperativeHandle as Qe, useEffect as ue } from "react";
3
+ import { U as ye } from "./component-DsB0poTj-DgsYK0_R.js";
4
+ var fe, ge;
5
+ function Xe() {
6
+ return ge || (ge = 1, fe = /* @__PURE__ */ Ue()), fe;
7
7
  }
8
- var Ue = ze();
9
- const $e = /* @__PURE__ */ Se(Ue);
8
+ var Ye = Xe();
9
+ const Je = /* @__PURE__ */ Fe(Ye);
10
10
  /**
11
11
  * @license
12
12
  * Copyright 2018 Google Inc.
@@ -61,27 +61,27 @@ var A = {
61
61
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
62
62
  * THE SOFTWARE.
63
63
  */
64
- var ge = (
64
+ var Ae = (
65
65
  /** @class */
66
66
  function(e) {
67
- ue(l, e);
68
- function l(n) {
69
- var d = e.call(this, re(re({}, l.defaultAdapter), n)) || this;
70
- return d.hasToggledAriaLabel = !1, d;
67
+ he(t, e);
68
+ function t(n) {
69
+ var l = e.call(this, de(de({}, t.defaultAdapter), n)) || this;
70
+ return l.hasToggledAriaLabel = !1, l;
71
71
  }
72
- return Object.defineProperty(l, "cssClasses", {
72
+ return Object.defineProperty(t, "cssClasses", {
73
73
  get: function() {
74
74
  return A;
75
75
  },
76
76
  enumerable: !1,
77
77
  configurable: !0
78
- }), Object.defineProperty(l, "strings", {
78
+ }), Object.defineProperty(t, "strings", {
79
79
  get: function() {
80
80
  return f;
81
81
  },
82
82
  enumerable: !1,
83
83
  configurable: !0
84
- }), Object.defineProperty(l, "defaultAdapter", {
84
+ }), Object.defineProperty(t, "defaultAdapter", {
85
85
  get: function() {
86
86
  return {
87
87
  addClass: function() {
@@ -102,26 +102,26 @@ var ge = (
102
102
  },
103
103
  enumerable: !1,
104
104
  configurable: !0
105
- }), l.prototype.init = function() {
106
- var n = this.adapter.getAttr(f.DATA_ARIA_LABEL_ON), d = this.adapter.getAttr(f.DATA_ARIA_LABEL_OFF);
107
- if (n && d) {
105
+ }), t.prototype.init = function() {
106
+ var n = this.adapter.getAttr(f.DATA_ARIA_LABEL_ON), l = this.adapter.getAttr(f.DATA_ARIA_LABEL_OFF);
107
+ if (n && l) {
108
108
  if (this.adapter.getAttr(f.ARIA_PRESSED) !== null)
109
109
  throw new Error("MDCIconButtonToggleFoundation: Button should not set `aria-pressed` if it has a toggled aria label.");
110
110
  this.hasToggledAriaLabel = !0;
111
111
  } else
112
112
  this.adapter.setAttr(f.ARIA_PRESSED, String(this.isOn()));
113
- }, l.prototype.handleClick = function() {
113
+ }, t.prototype.handleClick = function() {
114
114
  this.toggle(), this.adapter.notifyChange({ isOn: this.isOn() });
115
- }, l.prototype.isOn = function() {
115
+ }, t.prototype.isOn = function() {
116
116
  return this.adapter.hasClass(A.ICON_BUTTON_ON);
117
- }, l.prototype.toggle = function(n) {
117
+ }, t.prototype.toggle = function(n) {
118
118
  if (n === void 0 && (n = !this.isOn()), n ? this.adapter.addClass(A.ICON_BUTTON_ON) : this.adapter.removeClass(A.ICON_BUTTON_ON), this.hasToggledAriaLabel) {
119
- var d = n ? this.adapter.getAttr(f.DATA_ARIA_LABEL_ON) : this.adapter.getAttr(f.DATA_ARIA_LABEL_OFF);
120
- this.adapter.setAttr(f.ARIA_LABEL, d || "");
119
+ var l = n ? this.adapter.getAttr(f.DATA_ARIA_LABEL_ON) : this.adapter.getAttr(f.DATA_ARIA_LABEL_OFF);
120
+ this.adapter.setAttr(f.ARIA_LABEL, l || "");
121
121
  } else
122
122
  this.adapter.setAttr(f.ARIA_PRESSED, "" + n);
123
- }, l;
124
- }(De)
123
+ }, t;
124
+ }($e)
125
125
  );
126
126
  /**
127
127
  * @license
@@ -145,52 +145,52 @@ var ge = (
145
145
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
146
146
  * THE SOFTWARE.
147
147
  */
148
- var Ge = ge.strings, Me = (
148
+ var Ke = Ae.strings, Ze = (
149
149
  /** @class */
150
150
  function(e) {
151
- ue(l, e);
152
- function l() {
151
+ he(t, e);
152
+ function t() {
153
153
  var n = e !== null && e.apply(this, arguments) || this;
154
154
  return n.rippleComponent = n.createRipple(), n;
155
155
  }
156
- return l.attachTo = function(n) {
157
- return new l(n);
158
- }, l.prototype.initialSyncWithDOM = function() {
156
+ return t.attachTo = function(n) {
157
+ return new t(n);
158
+ }, t.prototype.initialSyncWithDOM = function() {
159
159
  var n = this;
160
160
  this.handleClick = function() {
161
161
  n.foundation.handleClick();
162
162
  }, this.listen("click", this.handleClick);
163
- }, l.prototype.destroy = function() {
163
+ }, t.prototype.destroy = function() {
164
164
  this.unlisten("click", this.handleClick), this.ripple.destroy(), e.prototype.destroy.call(this);
165
- }, l.prototype.getDefaultFoundation = function() {
166
- var n = this, d = {
167
- addClass: function(r) {
168
- return n.root.classList.add(r);
165
+ }, t.prototype.getDefaultFoundation = function() {
166
+ var n = this, l = {
167
+ addClass: function(s) {
168
+ return n.root.classList.add(s);
169
169
  },
170
- hasClass: function(r) {
171
- return n.root.classList.contains(r);
170
+ hasClass: function(s) {
171
+ return n.root.classList.contains(s);
172
172
  },
173
- notifyChange: function(r) {
174
- n.emit(Ge.CHANGE_EVENT, r);
173
+ notifyChange: function(s) {
174
+ n.emit(Ke.CHANGE_EVENT, s);
175
175
  },
176
- removeClass: function(r) {
177
- return n.root.classList.remove(r);
176
+ removeClass: function(s) {
177
+ return n.root.classList.remove(s);
178
178
  },
179
- getAttr: function(r) {
180
- return n.root.getAttribute(r);
179
+ getAttr: function(s) {
180
+ return n.root.getAttribute(s);
181
181
  },
182
- setAttr: function(r, u) {
183
- return n.root.setAttribute(r, u);
182
+ setAttr: function(s, c) {
183
+ return n.root.setAttribute(s, c);
184
184
  }
185
185
  };
186
- return new ge(d);
187
- }, Object.defineProperty(l.prototype, "ripple", {
186
+ return new Ae(l);
187
+ }, Object.defineProperty(t.prototype, "ripple", {
188
188
  get: function() {
189
189
  return this.rippleComponent;
190
190
  },
191
191
  enumerable: !1,
192
192
  configurable: !0
193
- }), Object.defineProperty(l.prototype, "on", {
193
+ }), Object.defineProperty(t.prototype, "on", {
194
194
  get: function() {
195
195
  return this.foundation.isOn();
196
196
  },
@@ -199,12 +199,12 @@ var Ge = ge.strings, Me = (
199
199
  },
200
200
  enumerable: !1,
201
201
  configurable: !0
202
- }), l.prototype.createRipple = function() {
203
- var n = new fe(this.root);
202
+ }), t.prototype.createRipple = function() {
203
+ var n = new ye(this.root);
204
204
  return n.unbounded = !0, n;
205
- }, l;
206
- }(Pe)
207
- ), Ve = {
205
+ }, t;
206
+ }(je)
207
+ ), en = {
208
208
  /**
209
209
  * Programmatically sets the toggle state of the button when used as a toggle button. If not set, the toggle state will be managed internally.
210
210
  *
@@ -254,7 +254,7 @@ var Ge = ge.strings, Me = (
254
254
  *
255
255
  * Defaults to **undefined**.
256
256
  */
257
- dense: Fe(a.bool, "IconButton", 'Use iconSize="small" instead.'),
257
+ dense: Ge(a.bool, "IconButton", 'Use iconSize="small" instead.'),
258
258
  /**
259
259
  * Disables the icon button.
260
260
  *
@@ -320,7 +320,7 @@ var Ge = ge.strings, Me = (
320
320
  *
321
321
  * Defaults to **null**.
322
322
  */
323
- tag: a.oneOfType([a.string, a.elementType, a.instanceOf(N.Component)]),
323
+ tag: a.oneOfType([a.string, a.elementType, a.instanceOf(k.Component)]),
324
324
  /**
325
325
  * 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.
326
326
  *
@@ -362,8 +362,8 @@ var Ge = ge.strings, Me = (
362
362
  *
363
363
  * Defaults to **empty string**.
364
364
  */
365
- variant: xe(a.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'.")
366
- }, We = {
365
+ variant: qe(a.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'.")
366
+ }, nn = {
367
367
  active: !1,
368
368
  ariaLabel: null,
369
369
  ariaLabelledBy: null,
@@ -389,64 +389,105 @@ var Ge = ge.strings, Me = (
389
389
  toggleOnAriaLabel: null,
390
390
  toggleOnAriaLabelledBy: null,
391
391
  variant: ""
392
- }, Ye = ["active", "ariaLabel", "ariaLabelledBy", "badge", "badgePlacement", "children", "className", "dense", "disabled", "emphasis", "icon", "iconSize", "iconType", "onClick", "noHover", "tabIndex", "iconSource", "tag", "toggleOff", "toggleOffAriaLabel", "toggleOffAriaLabelledBy", "toggleOn", "toggleOnAriaLabel", "toggleOnAriaLabelledBy", "variant", "iconProps"], o = We, be = /* @__PURE__ */ je(function(e, l) {
393
- var n = e.active, d = n === void 0 ? o.active : n, r = e.ariaLabel, u = r === void 0 ? o.ariaLabel : r, I = e.ariaLabelledBy, k = I === void 0 ? o.ariaLabelledBy : I, E = e.badge, S = E === void 0 ? o.badge : E, R = e.badgePlacement, pe = R === void 0 ? o.badgePlacement : R, P = e.children, w = P === void 0 ? o.children : P, D = e.className, me = D === void 0 ? o.className : D, x = e.dense, he = x === void 0 ? o.dense : x, F = e.disabled, ye = F === void 0 ? o.disabled : F, j = e.emphasis, H = j === void 0 ? o.emphasis : j, z = e.icon, U = z === void 0 ? o.icon : z, $ = e.iconSize, ve = $ === void 0 ? o.iconSize : $, G = e.iconType, Ae = G === void 0 ? o.iconType : G, M = e.onClick, V = M === void 0 ? o.onClick : M, W = e.noHover, Oe = W === void 0 ? o.noHover : W, Y = e.tabIndex, Le = Y === void 0 ? o.tabIndex : Y, q = e.iconSource, _e = q === void 0 ? o.iconSource : q, X = e.tag, Ce = X === void 0 ? o.tag : X, J = e.toggleOff, K = J === void 0 ? o.toggleOff : J, Q = e.toggleOffAriaLabel, O = Q === void 0 ? o.toggleOffAriaLabel : Q, Z = e.toggleOffAriaLabelledBy, L = Z === void 0 ? o.toggleOffAriaLabelledBy : Z, ee = e.toggleOn, ne = ee === void 0 ? o.toggleOn : ee, ae = e.toggleOnAriaLabel, _ = ae === void 0 ? o.toggleOnAriaLabel : ae, te = e.toggleOnAriaLabelledBy, C = te === void 0 ? o.toggleOnAriaLabelledBy : te, oe = e.variant, t = oe === void 0 ? o.variant : oe, Te = e.iconProps, Be = Ee(e, Ye), h = B(), y = B(), m = B(), g = ne && K, le = t && $e(t).call(t, "filled") > -1, b = ve;
394
- b === "medium" && he && (b = "small"), S && (b === "small" || b === "xsmall") && (b = "medium"), He(l, function() {
392
+ }, an = ["active", "ariaLabel", "ariaLabelledBy", "badge", "badgePlacement", "children", "className", "dense", "disabled", "emphasis", "icon", "iconSize", "iconType", "onClick", "noHover", "tabIndex", "iconSource", "tag", "toggleOff", "toggleOffAriaLabel", "toggleOffAriaLabelledBy", "toggleOn", "toggleOnAriaLabel", "toggleOnAriaLabelledBy", "variant", "iconProps"], r = nn, Oe = /* @__PURE__ */ We(function(e, t) {
393
+ var n = e.active, l = n === void 0 ? r.active : n, s = e.ariaLabel, c = s === void 0 ? r.ariaLabel : s, S = e.ariaLabelledBy, R = S === void 0 ? r.ariaLabelledBy : S, P = e.badge, w = P === void 0 ? r.badge : P, D = e.badgePlacement, Le = D === void 0 ? r.badgePlacement : D, x = e.children, z = x === void 0 ? r.children : x, F = e.className, _e = F === void 0 ? r.className : F, H = e.dense, Te = H === void 0 ? r.dense : H, j = e.disabled, Ce = j === void 0 ? r.disabled : j, U = e.emphasis, $ = U === void 0 ? r.emphasis : U, q = e.icon, G = q === void 0 ? r.icon : q, M = e.iconSize, Be = M === void 0 ? r.iconSize : M, V = e.iconType, Ne = V === void 0 ? r.iconType : V, W = e.onClick, Q = W === void 0 ? r.onClick : W, X = e.noHover, Ee = X === void 0 ? r.noHover : X, Y = e.tabIndex, Ie = Y === void 0 ? r.tabIndex : Y, J = e.iconSource, ke = J === void 0 ? r.iconSource : J, K = e.tag, Se = K === void 0 ? r.tag : K, Z = e.toggleOff, ee = Z === void 0 ? r.toggleOff : Z, ne = e.toggleOffAriaLabel, O = ne === void 0 ? r.toggleOffAriaLabel : ne, ae = e.toggleOffAriaLabelledBy, L = ae === void 0 ? r.toggleOffAriaLabelledBy : ae, te = e.toggleOn, oe = te === void 0 ? r.toggleOn : te, re = e.toggleOnAriaLabel, _ = re === void 0 ? r.toggleOnAriaLabel : re, ie = e.toggleOnAriaLabelledBy, T = ie === void 0 ? r.toggleOnAriaLabelledBy : ie, le = e.variant, o = le === void 0 ? r.variant : le, Re = e.iconProps, Pe = ze(e, an), h = B(), v = B(), m = B(), g = oe && ee, se = o && Je(o).call(o, "filled") > -1, p = Be;
394
+ p === "medium" && Te && (p = "small"), w && (p === "small" || p === "xsmall") && (p = "medium"), Qe(t, function() {
395
395
  return h.current;
396
396
  }, []);
397
- var Ne = v("lmnt", "lmnt-icon-button", "mdc-icon-button", Oe && "lmnt-icon-button__no-hover", le && H === "low" && "lmnt-icon-button--emphasis-low", le && H === "high" && "lmnt-icon-button--emphasis-high", (t === "primary" || t === "primary-alt" || t === "secondary" || t === "danger" || t === "danger-alt" || t === "filled-primary" || t === "filled-primary-alt" || t === "filled-secondary" || t === "filled-danger" || t === "filled-danger-alt") && "lmnt-icon-button--fill", (t === "danger-alt" || t === "filled-danger-alt") && "lmnt-icon-button--fill-danger-alt", (t === "danger" || t === "filled-danger") && "lmnt-icon-button--fill-danger", (t === "primary" || t === "filled-primary") && "lmnt-icon-button--fill-primary", (t === "primary-alt" || t === "filled-secondary") && "lmnt-icon-button--fill-secondary", (t === "secondary-alt" || t === "color-on-dark") && "lmnt-icon-button--color-on-dark", t === "color-primary" && "lmnt-icon-button--color-primary", t === "color-secondary" && "lmnt-icon-button--color-secondary", t === "color-on-unknown-black" && "lmnt-icon-button--on-unknown-black", t === "secondary-on-surface" && "lmnt-icon-button--secondary-on-surface", b && "lmnt-icon-button--".concat(b), me);
398
- de(function() {
399
- return g ? m.current = Me.attachTo(h.current) : (y.current = fe.attachTo(h.current), y.current.unbounded = !0), function() {
400
- g ? m.current.destroy() : y.current.destroy();
397
+ var we = y("lmnt", "lmnt-icon-button", "mdc-icon-button", Ee && "lmnt-icon-button__no-hover", se && $ === "low" && "lmnt-icon-button--emphasis-low", se && $ === "high" && "lmnt-icon-button--emphasis-high", (o === "primary" || o === "primary-alt" || o === "secondary" || o === "danger" || o === "danger-alt" || o === "filled-primary" || o === "filled-primary-alt" || o === "filled-secondary" || o === "filled-danger" || o === "filled-danger-alt") && "lmnt-icon-button--fill", (o === "danger-alt" || o === "filled-danger-alt") && "lmnt-icon-button--fill-danger-alt", (o === "danger" || o === "filled-danger") && "lmnt-icon-button--fill-danger", (o === "primary" || o === "filled-primary") && "lmnt-icon-button--fill-primary", (o === "primary-alt" || o === "filled-secondary") && "lmnt-icon-button--fill-secondary", (o === "secondary-alt" || o === "color-on-dark") && "lmnt-icon-button--color-on-dark", o === "color-primary" && "lmnt-icon-button--color-primary", o === "color-secondary" && "lmnt-icon-button--color-secondary", o === "color-on-unknown-black" && "lmnt-icon-button--on-unknown-black", o === "secondary-on-surface" && "lmnt-icon-button--secondary-on-surface", p && "lmnt-icon-button--".concat(p), _e);
398
+ ue(function() {
399
+ return g ? m.current = Ze.attachTo(h.current) : (v.current = ye.attachTo(h.current), v.current.unbounded = !0), function() {
400
+ g ? m.current.destroy() : v.current.destroy();
401
401
  };
402
- }, [m, g, y]), de(function() {
403
- g && (m.current.on = d);
404
- }, [d, g, m]);
405
- var Ie = function(i) {
406
- V && V(g ? m.current.on : i);
407
- }, ke = Ce || "button";
408
- return /* @__PURE__ */ N.createElement(ke, ie({
409
- "aria-label": u,
410
- "aria-labelledby": k,
411
- "data-aria-label-on": _ || C || u,
412
- "data-aria-label-off": O || L || u,
413
- onClick: Ie,
402
+ }, [m, g, v]), ue(function() {
403
+ g && (m.current.on = l);
404
+ }, [l, g, m]);
405
+ var De = function(i) {
406
+ Q && Q(g ? m.current.on : i);
407
+ }, xe = Se || "button";
408
+ return /* @__PURE__ */ k.createElement(xe, ce({
409
+ "aria-label": c,
410
+ "aria-labelledby": R,
411
+ "data-aria-label-on": _ || T || c,
412
+ "data-aria-label-off": O || L || c,
413
+ onClick: De,
414
414
  ref: h,
415
- className: Ne,
416
- disabled: ye,
417
- tabIndex: Le
418
- }, Be), U && /* @__PURE__ */ N.createElement(Re, ie({
419
- badge: S,
420
- badgePlacement: pe,
421
- icon: U,
422
- iconSize: b,
423
- iconSource: _e,
424
- iconType: Ae
425
- }, Te)), w && T(w, function(i) {
426
- var s, c;
415
+ className: we,
416
+ disabled: Ce,
417
+ tabIndex: Ie
418
+ }, Pe), G && /* @__PURE__ */ k.createElement(He, ce({
419
+ badge: w,
420
+ badgePlacement: Le,
421
+ icon: G,
422
+ iconSize: p,
423
+ iconSource: ke,
424
+ iconType: Ne
425
+ }, Re)), z && C(z, function(i) {
426
+ var d, u;
427
427
  return {
428
- className: v("mdc-icon-button__icon", i == null || (s = i.props) === null || s === void 0 ? void 0 : s.className),
429
- "aria-hidden": (i == null || (c = i.props) === null || c === void 0 ? void 0 : c["aria-hidden"]) || u || k
428
+ className: y("mdc-icon-button__icon", i == null || (d = i.props) === null || d === void 0 ? void 0 : d.className),
429
+ "aria-hidden": (i == null || (u = i.props) === null || u === void 0 ? void 0 : u["aria-hidden"]) || c || R
430
430
  };
431
- }), g && d && T(ne, function(i) {
432
- var s, c, p;
431
+ }), g && l && C(oe, function(i) {
432
+ var d, u, b;
433
433
  return {
434
- className: v("mdc-icon-button__icon", i == null || (s = i.props) === null || s === void 0 ? void 0 : s.className),
435
- "aria-label": (i == null || (c = i.props) === null || c === void 0 ? void 0 : c["aria-label"]) || _ || C || u,
436
- "aria-hidden": (i == null || (p = i.props) === null || p === void 0 ? void 0 : p["aria-hidden"]) || _ || C || u
434
+ className: y("mdc-icon-button__icon", i == null || (d = i.props) === null || d === void 0 ? void 0 : d.className),
435
+ "aria-label": (i == null || (u = i.props) === null || u === void 0 ? void 0 : u["aria-label"]) || _ || T || c,
436
+ "aria-hidden": (i == null || (b = i.props) === null || b === void 0 ? void 0 : b["aria-hidden"]) || _ || T || c
437
437
  };
438
- }), g && !d && T(K, function(i) {
439
- var s, c, p;
438
+ }), g && !l && C(ee, function(i) {
439
+ var d, u, b;
440
440
  return {
441
- className: v("mdc-icon-button__icon", i == null || (s = i.props) === null || s === void 0 ? void 0 : s.className),
442
- "aria-label": (i == null || (c = i.props) === null || c === void 0 ? void 0 : c["aria-label"]) || O || L || u,
443
- "aria-hidden": (i == null || (p = i.props) === null || p === void 0 ? void 0 : p["aria-hidden"]) || O || L || u
441
+ className: y("mdc-icon-button__icon", i == null || (d = i.props) === null || d === void 0 ? void 0 : d.className),
442
+ "aria-label": (i == null || (u = i.props) === null || u === void 0 ? void 0 : u["aria-label"]) || O || L || c,
443
+ "aria-hidden": (i == null || (b = i.props) === null || b === void 0 ? void 0 : b["aria-hidden"]) || O || L || c
444
444
  };
445
445
  }));
446
446
  });
447
- be.displayName = "IconButton";
448
- be.propTypes = Ve;
447
+ Oe.displayName = "IconButton";
448
+ Oe.propTypes = en;
449
+ var N, pe;
450
+ function tn() {
451
+ if (pe) return N;
452
+ pe = 1;
453
+ var e = /* @__PURE__ */ Me(), t = /* @__PURE__ */ Ve(), n = /* @__PURE__ */ ve(), l = n("match");
454
+ return N = function(s) {
455
+ var c;
456
+ return e(s) && ((c = s[l]) !== void 0 ? !!c : t(s) === "RegExp");
457
+ }, N;
458
+ }
459
+ var E, be;
460
+ function sn() {
461
+ if (be) return E;
462
+ be = 1;
463
+ var e = /* @__PURE__ */ tn(), t = TypeError;
464
+ return E = function(n) {
465
+ if (e(n))
466
+ throw new t("The method doesn't accept regular expressions");
467
+ return n;
468
+ }, E;
469
+ }
470
+ var I, me;
471
+ function cn() {
472
+ if (me) return I;
473
+ me = 1;
474
+ var e = /* @__PURE__ */ ve(), t = e("match");
475
+ return I = function(n) {
476
+ var l = /./;
477
+ try {
478
+ "/./"[n](l);
479
+ } catch {
480
+ try {
481
+ return l[t] = !1, "/./"[n](l);
482
+ } catch {
483
+ }
484
+ }
485
+ return !1;
486
+ }, I;
487
+ }
449
488
  export {
450
- $e as j,
451
- be as p
489
+ sn as h,
490
+ Je as j,
491
+ Oe as p,
492
+ cn as q
452
493
  };
@@ -1,7 +1,7 @@
1
- import { t, r as rn, h as un, e as dn, q as xn, ag as Cn, l as On, m as h, Y as _n } from "./useTranslation-CVaIJbcK.js";
1
+ import { t, r as rn, h as un, e as dn, i as xn, am as Cn, n as On, q as h, ae as _n } from "./useTranslation-B_lNCuLm.js";
2
2
  import y, { forwardRef as D, useRef as sn, useImperativeHandle as cn, useEffect as Nn, useMemo as an } from "react";
3
- import { U as Un } from "./component-DsB0poTj-CeLHB9Ok.js";
4
- var Bn = {
3
+ import { U as Bn } from "./component-DsB0poTj-DgsYK0_R.js";
4
+ var Un = {
5
5
  /**
6
6
  * Content to be rendered inside the component.
7
7
  *
@@ -30,13 +30,13 @@ var Bn = {
30
30
  return m.current;
31
31
  }, []), Nn(function() {
32
32
  var r = u.current;
33
- return r && (m.current = Un.attachTo(u.current), p && (m.current.unbounded = !0)), function() {
33
+ return r && (m.current = Bn.attachTo(u.current), p && (m.current.unbounded = !0)), function() {
34
34
  r && m.current.destroy();
35
35
  };
36
36
  }, [u, p]), b;
37
37
  });
38
38
  $.displayName = "Ripple";
39
- $.propTypes = Bn;
39
+ $.propTypes = Un;
40
40
  var Rn = {
41
41
  /**
42
42
  * @deprecated _Use `themeColor='secondary'` instead._
@@ -257,7 +257,7 @@ var Rn = {
257
257
  children: null,
258
258
  variant: "standard"
259
259
  }, En = ["altColor", "buttonSize", "children", "className", "customRef", "disabled", "elevation", "primary", "secondary", "tertiary", "text", "danger", "filled", "fullWidth", "href", "label", "leadingIcon", "onClick", "outlined", "tag", "themeColor", "trailingIcon", "type", "unelevated", "variant"], o = In, mn = /* @__PURE__ */ D(function(n, a) {
260
- var l = n.altColor, u = l === void 0 ? o.altColor : l, c = n.buttonSize, p = c === void 0 ? o.buttonSize : c, e = n.children, b = e === void 0 ? o.children : e, m = n.className, r = m === void 0 ? o.className : m, k = n.customRef, T = k === void 0 ? o.customRef : k, C = n.disabled, U = C === void 0 ? o.disabled : C, O = n.elevation, g = O === void 0 ? o.elevation : O, v = n.primary, w = v === void 0 ? o.primary : v, x = n.secondary, _ = x === void 0 ? o.secondary : x, N = n.tertiary, R = N === void 0 ? o.tertiary : N, I = n.text, B = I === void 0 ? o.text : I, i = n.danger, S = i === void 0 ? o.danger : i, f = n.filled, d = f === void 0 ? o.filled : f, s = n.fullWidth, W = s === void 0 ? o.fullWidth : s, Y = n.href, j = Y === void 0 ? o.href : Y, q = n.label, bn = q === void 0 ? o.label : q, G = n.leadingIcon, H = G === void 0 ? o.leadingIcon : G, M = n.onClick, vn = M === void 0 ? o.onClick : M, X = n.outlined, A = X === void 0 ? o.outlined : X, F = n.tag, fn = F === void 0 ? o.tag : F, J = n.themeColor, K = J === void 0 ? o.themeColor : J, L = n.trailingIcon, Q = L === void 0 ? o.trailingIcon : L, V = n.type, hn = V === void 0 ? o.type : V, Z = n.unelevated, nn = Z === void 0 ? o.unelevated : Z, tn = n.variant, en = tn === void 0 ? o.variant : tn, yn = rn(n, En), E = sn(T || null);
260
+ var l = n.altColor, u = l === void 0 ? o.altColor : l, c = n.buttonSize, p = c === void 0 ? o.buttonSize : c, e = n.children, b = e === void 0 ? o.children : e, m = n.className, r = m === void 0 ? o.className : m, k = n.customRef, T = k === void 0 ? o.customRef : k, C = n.disabled, B = C === void 0 ? o.disabled : C, O = n.elevation, g = O === void 0 ? o.elevation : O, v = n.primary, w = v === void 0 ? o.primary : v, x = n.secondary, _ = x === void 0 ? o.secondary : x, N = n.tertiary, R = N === void 0 ? o.tertiary : N, I = n.text, U = I === void 0 ? o.text : I, i = n.danger, S = i === void 0 ? o.danger : i, f = n.filled, d = f === void 0 ? o.filled : f, s = n.fullWidth, W = s === void 0 ? o.fullWidth : s, H = n.href, j = H === void 0 ? o.href : H, q = n.label, bn = q === void 0 ? o.label : q, G = n.leadingIcon, M = G === void 0 ? o.leadingIcon : G, X = n.onClick, vn = X === void 0 ? o.onClick : X, Y = n.outlined, A = Y === void 0 ? o.outlined : Y, F = n.tag, fn = F === void 0 ? o.tag : F, J = n.themeColor, K = J === void 0 ? o.themeColor : J, L = n.trailingIcon, Q = L === void 0 ? o.trailingIcon : L, V = n.type, hn = V === void 0 ? o.type : V, Z = n.unelevated, nn = Z === void 0 ? o.unelevated : Z, tn = n.variant, en = tn === void 0 ? o.variant : tn, yn = rn(n, En), E = sn(T || null);
261
261
  cn(a, function() {
262
262
  return E.current;
263
263
  }, []);
@@ -265,7 +265,7 @@ var Rn = {
265
265
  return {
266
266
  variant: en,
267
267
  outlined: A,
268
- text: B,
268
+ text: U,
269
269
  tertiary: R,
270
270
  danger: S,
271
271
  themeColor: K,
@@ -279,7 +279,7 @@ var Rn = {
279
279
  className: r,
280
280
  altColor: u
281
281
  };
282
- }, [en, A, B, R, S, K, d, w, _, nn, W, g, p, r, u]), wn = an(function() {
282
+ }, [en, A, U, R, S, K, d, w, _, nn, W, g, p, r, u]), wn = an(function() {
283
283
  return zn(on);
284
284
  }, [on]);
285
285
  return /* @__PURE__ */ y.createElement($, {
@@ -289,12 +289,12 @@ var Rn = {
289
289
  href: j,
290
290
  onClick: vn,
291
291
  type: hn,
292
- disabled: U,
292
+ disabled: B,
293
293
  className: wn
294
294
  }, yn), /* @__PURE__ */ y.createElement("span", {
295
295
  className: "mdc-button__ripple"
296
- }), H && /* @__PURE__ */ y.createElement(ln, {
297
- icon: H,
296
+ }), M && /* @__PURE__ */ y.createElement(ln, {
297
+ icon: M,
298
298
  position: "leading"
299
299
  }), /* @__PURE__ */ y.createElement("span", {
300
300
  className: "mdc-button__label"
@@ -324,16 +324,16 @@ var Rn = {
324
324
  isOnDanger: e === "on-danger"
325
325
  };
326
326
  }, zn = function(n) {
327
- var a = n.variant, l = n.unelevated, u = n.fullWidth, c = n.elevation, p = n.buttonSize, e = n.className, b = n.filled, m = n.primary, r = Pn(n), k = r.isOutlined, T = r.isRounded, C = r.isText, U = r.isDanger, O = r.isSuccess, g = r.isSecondaryColor, v = r.isPrimaryColor, w = r.isOnUnknownBlack, x = r.isOnUnknownWhite, _ = r.isOnPrimary, N = r.isOnSecondary, R = r.isOnSuccess, I = r.isOnDanger, B = ["lmnt", "mdc-button", "lmnt-button", "mdc-button--touch", "mdc-touch-target-wrapper"], i = [], S = !k && !C && (a === "filled" || b || m);
328
- S && l && (v && i.push("lmnt-button--filled-primary"), g && i.push("lmnt-button--filled-secondary"), U && i.push("lmnt-button--filled-danger"), O && i.push("lmnt-button--filled-success")), S && !l && (i.push("mdc-button--raised"), v && i.push("lmnt-button--filled-primary"), g && i.push("lmnt-button--filled-secondary"), _ && i.push("lmnt-button--filled-on-primary"), N && i.push("lmnt-button--filled-on-secondary"), R && i.push("lmnt-button--filled-on-success"), I && i.push("lmnt-button--filled-on-danger"), w && i.push("lmnt-button--filled-on-unknown-black"), x && i.push("lmnt-button--filled-on-unknown-white"));
327
+ var a = n.variant, l = n.unelevated, u = n.fullWidth, c = n.elevation, p = n.buttonSize, e = n.className, b = n.filled, m = n.primary, r = Pn(n), k = r.isOutlined, T = r.isRounded, C = r.isText, B = r.isDanger, O = r.isSuccess, g = r.isSecondaryColor, v = r.isPrimaryColor, w = r.isOnUnknownBlack, x = r.isOnUnknownWhite, _ = r.isOnPrimary, N = r.isOnSecondary, R = r.isOnSuccess, I = r.isOnDanger, U = ["lmnt", "mdc-button", "lmnt-button", "mdc-button--touch", "mdc-touch-target-wrapper"], i = [], S = !k && !C && (a === "filled" || b || m);
328
+ S && l && (v && i.push("lmnt-button--filled-primary"), g && i.push("lmnt-button--filled-secondary"), B && i.push("lmnt-button--filled-danger"), O && i.push("lmnt-button--filled-success")), S && !l && (i.push("mdc-button--raised"), v && i.push("lmnt-button--filled-primary"), g && i.push("lmnt-button--filled-secondary"), _ && i.push("lmnt-button--filled-on-primary"), N && i.push("lmnt-button--filled-on-secondary"), R && i.push("lmnt-button--filled-on-success"), I && i.push("lmnt-button--filled-on-danger"), w && i.push("lmnt-button--filled-on-unknown-black"), x && i.push("lmnt-button--filled-on-unknown-white"));
329
329
  var f = [];
330
330
  k && (f.push("mdc-button--outlined"), v && f.push("lmnt-button--outlined-primary"), g && f.push("lmnt-button--outlined-secondary"), _ && f.push("lmnt-button--outlined-on-primary"), N && f.push("lmnt-button--outlined-on-secondary"), x && f.push("lmnt-button--outlined-on-unknown-white"), w && f.push("lmnt-button--outlined-on-unknown-black"));
331
331
  var d = [];
332
- C && (d.push("mdc-button__text"), _ && d.push("lmnt-button--text-on-primary"), N && d.push("lmnt-button--text-on-secondary"), x && d.push("lmnt-button--text-on-unknown-white"), w && d.push("lmnt-button--text-on-unknown-black"), v && d.push("lmnt-button--text-primary"), g && d.push("lmnt-button--text-secondary"), U && d.push("lmnt-button--text-danger"), O && d.push("lmnt-button--text-success")), T && (x && d.push("lmnt-button--text-on-unknown-white mdc-button__text"), w && d.push("lmnt-button--text-on-unknown-black mdc-button__text"));
332
+ C && (d.push("mdc-button__text"), _ && d.push("lmnt-button--text-on-primary"), N && d.push("lmnt-button--text-on-secondary"), x && d.push("lmnt-button--text-on-unknown-white"), w && d.push("lmnt-button--text-on-unknown-black"), v && d.push("lmnt-button--text-primary"), g && d.push("lmnt-button--text-secondary"), B && d.push("lmnt-button--text-danger"), O && d.push("lmnt-button--text-success")), T && (x && d.push("lmnt-button--text-on-unknown-white mdc-button__text"), w && d.push("lmnt-button--text-on-unknown-black mdc-button__text"));
333
333
  var s = [];
334
- U ? (l && g && s.push("lmnt-button--danger-secondary"), !l && g && (s.push("lmnt-button--danger-secondary"), s.push("mdc-button--raised")), l && v && s.push("lmnt-button--danger-primary"), !l && v && (s.push("lmnt-button--danger-primary"), s.push("mdc-button--raised")), k && s.push("lmnt-button--danger-primary")) : O && (l && v && s.push("lmnt-button--success-primary"), !l && v && (s.push("lmnt-button--success-primary"), s.push("mdc-button--raised")), k && s.push("lmnt-button--success-primary"));
334
+ B ? (l && g && s.push("lmnt-button--danger-secondary"), !l && g && (s.push("lmnt-button--danger-secondary"), s.push("mdc-button--raised")), l && v && s.push("lmnt-button--danger-primary"), !l && v && (s.push("lmnt-button--danger-primary"), s.push("mdc-button--raised")), k && s.push("lmnt-button--danger-primary")) : O && (l && v && s.push("lmnt-button--success-primary"), !l && v && (s.push("lmnt-button--success-primary"), s.push("mdc-button--raised")), k && s.push("lmnt-button--success-primary"));
335
335
  var W = [u && "lmnt-button--full-width", l && !C && "mdc-button--unelevated", c === "flat" && "lmnt-button--flat", c === "elevated" && "lmnt-button--elevated", "lmnt-button--".concat(p), a === "rounded-small" && "lmnt-button--rounded lmnt-button--rounded-small mdc-button__text lmnt-button--text-primary", a === "rounded-micro" && "lmnt-button--rounded lmnt-button--rounded-micro mdc-button__text lmnt-button--text-primary", e];
336
- return dn.apply(void 0, xn(B).call(B, i, f, d, s, W));
336
+ return dn.apply(void 0, xn(U).call(U, i, f, d, s, W));
337
337
  }, ln = function(n) {
338
338
  var a = n.icon, l = n.position, u = "mdc-button__icon lmnt-button__icon--".concat(l);
339
339
  return typeof a == "string" ? /* @__PURE__ */ y.createElement(On, {
@@ -1,4 +1,4 @@
1
- import { r as Z, h as _, e as q, Z as g, c as w, p, f as x, v as z, s as N, X as A, a as f, b as B, t as d } from "./useTranslation-CVaIJbcK.js";
1
+ import { r as Z, h as _, e as q, Z as g, c as w, p, f as x, v as z, s as N, X as A, a as f, b as B, t as d } from "./useTranslation-B_lNCuLm.js";
2
2
  import E, { forwardRef as H, useMemo as I, useRef as M, useImperativeHandle as $ } from "react";
3
3
  var k = {
4
4
  /**