@hortiview/default-components 1.4.4 → 1.5.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.
- package/README.md +51 -0
- package/dist/{Iconify-aUog1Oez.js → Iconify-D3gVmKx3.js} +11 -10
- package/dist/{InfoCard-BxjAQiFE.js → InfoCard-Ba-VFnki.js} +4 -4
- package/dist/{LoadingSpinner-DBMjIfY1.js → LoadingSpinner-CmwCv7BO.js} +22 -21
- package/dist/{OfflineView-NUM9WE0F-BI9rnget.js → OfflineView-CIwV08EQ-BClnJRzV.js} +4 -4
- package/dist/assets/DefaultAllowedComponent.css +1 -0
- package/dist/assets/GenericTable.css +1 -1
- package/dist/component-Bz_dtX1r-DqCAj-DR.js +304 -0
- package/dist/{component-DsB0poTj-DgsYK0_R.js → component-DEJuY56h-CYiwt7Ga.js} +6 -5
- package/dist/components/DefaultAllowedComponent/DefaultAllowedComponent.d.ts +11 -0
- package/dist/components/DefaultAllowedComponent/DefaultAllowedComponent.js +51 -0
- package/dist/components/DefaultFormNumber/DefaultFormNumber.js +475 -457
- package/dist/components/DefaultFormSelect/DefaultFormSelect.js +29 -29
- package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +2 -2
- package/dist/components/GenericTable/GenericTable.js +2204 -2189
- package/dist/components/HealthChecks/DataBaseHealthCheck.js +2 -2
- package/dist/components/HealthChecks/DefaultHealthCheck.js +2 -2
- package/dist/components/HealthChecks/IotServiceHealthCheck.js +2 -2
- package/dist/components/HealthChecks/PlatformHealthCheck.js +2 -2
- package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +2 -2
- package/dist/components/OfflineView/OfflineView.js +2 -2
- package/dist/{correct-is-regexp-logic-BBlm4UpN-CvII841s.js → correct-is-regexp-logic-Y0ToWEjF-pByZFQLo.js} +49 -48
- package/dist/{index.es-DiONypF4-eT98Y3u_.js → index.es--C-VLspF-B3Cy1zrT.js} +36 -35
- package/dist/{index.es-CvHDFF6V-CjZvA03R.js → index.es-B74L_Dje-mYAvKwSb.js} +5 -4
- package/dist/{index.es-B0QNuIUR-Bte5aF5M.js → index.es-B8p8KCdj--cmqwwUJ.js} +5 -5
- package/dist/{index.es-DnEIFMjv-DuuORGfo.js → index.es-BPv5dCFQ-BmH1Hq7_.js} +61 -61
- package/dist/{index.es-CIsLNz4j-ZEEcPmTs.js → index.es-BanVdXEd-BYOBCuJj.js} +1 -1
- package/dist/{index.es-NEYPxnlS-C8xQv2De.js → index.es-SjZ_-d7U-HvaOH_Z0.js} +33 -33
- package/dist/{index.es-fV9oWpEf-BXuhoGtE.js → index.es-nwjKmW7--CUlbl1RR.js} +12 -11
- package/dist/{isTypedArray-Dw_IY7Zq-wj3MphCb.js → isTypedArray-DziahYkI-Cw9ssvDH.js} +18 -18
- package/dist/locales/en-US.js +16 -14
- package/dist/locales/en-US.json.d.ts +3 -0
- package/dist/locales/es-MX.js +16 -14
- package/dist/locales/es-MX.json.d.ts +3 -0
- package/dist/locales/tr-TR.js +17 -15
- package/dist/locales/tr-TR.json.d.ts +3 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +24 -22
- package/dist/{slicedToArray-h0Nnkd_P-C4SkVJMK.js → slicedToArray-ByMQIs5x-BsvSjTDl.js} +158 -158
- package/dist/{useHelperText-B7OMZXvE.js → useHelperText-Cqx6ggnc.js} +55 -54
- package/dist/useTranslation-BQQybhSd.js +5042 -0
- package/package.json +2 -31
- package/dist/useTranslation-B_lNCuLm.js +0 -5343
- /package/dist/assets/{OfflineView-NUM9WE0F.css → OfflineView-CIwV08EQ.css} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { G as r } from "../../InfoCard-
|
|
2
|
+
import { G as r } from "../../InfoCard-Ba-VFnki.js";
|
|
3
3
|
import { InternationalizationWrapper as o } from "../InternationalizationWrapper/InternationalizationWrapper.js";
|
|
4
|
-
import { u as i } from "../../useTranslation-
|
|
4
|
+
import { u as i } from "../../useTranslation-BQQybhSd.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-
|
|
2
|
+
import { G as o } from "../../InfoCard-Ba-VFnki.js";
|
|
3
3
|
import { InternationalizationWrapper as a } from "../InternationalizationWrapper/InternationalizationWrapper.js";
|
|
4
|
-
import { u as i } from "../../useTranslation-
|
|
4
|
+
import { u as i } from "../../useTranslation-BQQybhSd.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-
|
|
2
|
+
import { G as i } from "../../InfoCard-Ba-VFnki.js";
|
|
3
3
|
import { InternationalizationWrapper as o } from "../InternationalizationWrapper/InternationalizationWrapper.js";
|
|
4
|
-
import { u as a } from "../../useTranslation-
|
|
4
|
+
import { u as a } from "../../useTranslation-BQQybhSd.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-
|
|
2
|
+
import { G as e } from "../../InfoCard-Ba-VFnki.js";
|
|
3
3
|
import { InternationalizationWrapper as a } from "../InternationalizationWrapper/InternationalizationWrapper.js";
|
|
4
|
-
import { u as l } from "../../useTranslation-
|
|
4
|
+
import { u as l } from "../../useTranslation-BQQybhSd.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-
|
|
2
|
+
import { N as r } from "../../LoadingSpinner-CmwCv7BO.js";
|
|
3
3
|
import { InternationalizationWrapper as a } from "../InternationalizationWrapper/InternationalizationWrapper.js";
|
|
4
|
-
import { u as t } from "../../useTranslation-
|
|
4
|
+
import { u as t } from "../../useTranslation-BQQybhSd.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-
|
|
2
|
+
import { j as o } from "../../OfflineView-CIwV08EQ-BClnJRzV.js";
|
|
3
3
|
import { InternationalizationWrapper as r } from "../InternationalizationWrapper/InternationalizationWrapper.js";
|
|
4
|
-
import { u as n } from "../../useTranslation-
|
|
4
|
+
import { u as n } from "../../useTranslation-BQQybhSd.js";
|
|
5
5
|
const a = ({ ...e }) => {
|
|
6
6
|
const { t } = n();
|
|
7
7
|
return /* @__PURE__ */ i(r, { children: /* @__PURE__ */ i(
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import k, { forwardRef as
|
|
3
|
-
import {
|
|
1
|
+
import { r as Fe, q as He, e as y, h as se, m as je, B as C, k as he, aa as ze, l as de, a4 as Ue, t as a, n as $e, A as ve, M as Me, ab as qe } from "./useTranslation-BQQybhSd.js";
|
|
2
|
+
import k, { forwardRef as Ge, useRef as B, useImperativeHandle as Ve, useEffect as ue } from "react";
|
|
3
|
+
import { f as We, a as Xe } from "./component-Bz_dtX1r-DqCAj-DR.js";
|
|
4
|
+
import { U as ye } from "./component-DEJuY56h-CYiwt7Ga.js";
|
|
4
5
|
var fe, ge;
|
|
5
|
-
function
|
|
6
|
-
return ge || (ge = 1, fe = /* @__PURE__ */
|
|
6
|
+
function Ye() {
|
|
7
|
+
return ge || (ge = 1, fe = /* @__PURE__ */ ze()), fe;
|
|
7
8
|
}
|
|
8
|
-
var
|
|
9
|
-
const
|
|
9
|
+
var Je = Ye();
|
|
10
|
+
const Ke = /* @__PURE__ */ He(Je);
|
|
10
11
|
/**
|
|
11
12
|
* @license
|
|
12
13
|
* Copyright 2018 Google Inc.
|
|
@@ -121,7 +122,7 @@ var Ae = (
|
|
|
121
122
|
} else
|
|
122
123
|
this.adapter.setAttr(f.ARIA_PRESSED, "" + n);
|
|
123
124
|
}, t;
|
|
124
|
-
}(
|
|
125
|
+
}(Xe)
|
|
125
126
|
);
|
|
126
127
|
/**
|
|
127
128
|
* @license
|
|
@@ -145,7 +146,7 @@ var Ae = (
|
|
|
145
146
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
146
147
|
* THE SOFTWARE.
|
|
147
148
|
*/
|
|
148
|
-
var
|
|
149
|
+
var Qe = Ae.strings, Ze = (
|
|
149
150
|
/** @class */
|
|
150
151
|
function(e) {
|
|
151
152
|
he(t, e);
|
|
@@ -164,23 +165,23 @@ var Ke = Ae.strings, Ze = (
|
|
|
164
165
|
this.unlisten("click", this.handleClick), this.ripple.destroy(), e.prototype.destroy.call(this);
|
|
165
166
|
}, t.prototype.getDefaultFoundation = function() {
|
|
166
167
|
var n = this, l = {
|
|
167
|
-
addClass: function(
|
|
168
|
-
return n.root.classList.add(
|
|
168
|
+
addClass: function(c) {
|
|
169
|
+
return n.root.classList.add(c);
|
|
169
170
|
},
|
|
170
|
-
hasClass: function(
|
|
171
|
-
return n.root.classList.contains(
|
|
171
|
+
hasClass: function(c) {
|
|
172
|
+
return n.root.classList.contains(c);
|
|
172
173
|
},
|
|
173
|
-
notifyChange: function(
|
|
174
|
-
n.emit(
|
|
174
|
+
notifyChange: function(c) {
|
|
175
|
+
n.emit(Qe.CHANGE_EVENT, c);
|
|
175
176
|
},
|
|
176
|
-
removeClass: function(
|
|
177
|
-
return n.root.classList.remove(
|
|
177
|
+
removeClass: function(c) {
|
|
178
|
+
return n.root.classList.remove(c);
|
|
178
179
|
},
|
|
179
|
-
getAttr: function(
|
|
180
|
-
return n.root.getAttribute(
|
|
180
|
+
getAttr: function(c) {
|
|
181
|
+
return n.root.getAttribute(c);
|
|
181
182
|
},
|
|
182
|
-
setAttr: function(
|
|
183
|
-
return n.root.setAttribute(
|
|
183
|
+
setAttr: function(c, s) {
|
|
184
|
+
return n.root.setAttribute(c, s);
|
|
184
185
|
}
|
|
185
186
|
};
|
|
186
187
|
return new Ae(l);
|
|
@@ -203,7 +204,7 @@ var Ke = Ae.strings, Ze = (
|
|
|
203
204
|
var n = new ye(this.root);
|
|
204
205
|
return n.unbounded = !0, n;
|
|
205
206
|
}, t;
|
|
206
|
-
}(
|
|
207
|
+
}(We)
|
|
207
208
|
), en = {
|
|
208
209
|
/**
|
|
209
210
|
* Programmatically sets the toggle state of the button when used as a toggle button. If not set, the toggle state will be managed internally.
|
|
@@ -254,7 +255,7 @@ var Ke = Ae.strings, Ze = (
|
|
|
254
255
|
*
|
|
255
256
|
* Defaults to **undefined**.
|
|
256
257
|
*/
|
|
257
|
-
dense:
|
|
258
|
+
dense: $e(a.bool, "IconButton", 'Use iconSize="small" instead.'),
|
|
258
259
|
/**
|
|
259
260
|
* Disables the icon button.
|
|
260
261
|
*
|
|
@@ -362,7 +363,7 @@ var Ke = Ae.strings, Ze = (
|
|
|
362
363
|
*
|
|
363
364
|
* Defaults to **empty string**.
|
|
364
365
|
*/
|
|
365
|
-
variant:
|
|
366
|
+
variant: Ue(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
367
|
}, nn = {
|
|
367
368
|
active: !1,
|
|
368
369
|
ariaLabel: null,
|
|
@@ -389,12 +390,12 @@ var Ke = Ae.strings, Ze = (
|
|
|
389
390
|
toggleOnAriaLabel: null,
|
|
390
391
|
toggleOnAriaLabelledBy: null,
|
|
391
392
|
variant: ""
|
|
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__ */
|
|
393
|
-
var n = e.active, l = n === void 0 ? r.active : n,
|
|
394
|
-
p === "medium" && Te && (p = "small"), w && (p === "small" || p === "xsmall") && (p = "medium"),
|
|
393
|
+
}, 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__ */ Ge(function(e, t) {
|
|
394
|
+
var n = e.active, l = n === void 0 ? r.active : n, c = e.ariaLabel, s = c === void 0 ? r.ariaLabel : c, 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, F = x === void 0 ? r.children : x, H = e.className, _e = H === void 0 ? r.className : H, j = e.dense, Te = j === void 0 ? r.dense : j, z = e.disabled, Ce = z === void 0 ? r.disabled : z, U = e.emphasis, $ = U === void 0 ? r.emphasis : U, M = e.icon, q = M === void 0 ? r.icon : M, G = e.iconSize, Be = G === void 0 ? r.iconSize : G, V = e.iconType, Ne = V === void 0 ? r.iconType : V, W = e.onClick, X = W === void 0 ? r.onClick : W, Y = e.noHover, Ee = Y === void 0 ? r.noHover : Y, J = e.tabIndex, Ie = J === void 0 ? r.tabIndex : J, K = e.iconSource, ke = K === void 0 ? r.iconSource : K, Q = e.tag, Se = Q === void 0 ? r.tag : Q, 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 = Fe(e, an), h = B(), v = B(), m = B(), g = oe && ee, ce = o && Ke(o).call(o, "filled") > -1, p = Be;
|
|
395
|
+
p === "medium" && Te && (p = "small"), w && (p === "small" || p === "xsmall") && (p = "medium"), Ve(t, function() {
|
|
395
396
|
return h.current;
|
|
396
397
|
}, []);
|
|
397
|
-
var we = y("lmnt", "lmnt-icon-button", "mdc-icon-button", Ee && "lmnt-icon-button__no-hover",
|
|
398
|
+
var we = y("lmnt", "lmnt-icon-button", "mdc-icon-button", Ee && "lmnt-icon-button__no-hover", ce && $ === "low" && "lmnt-icon-button--emphasis-low", ce && $ === "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
399
|
ue(function() {
|
|
399
400
|
return g ? m.current = Ze.attachTo(h.current) : (v.current = ye.attachTo(h.current), v.current.unbounded = !0), function() {
|
|
400
401
|
g ? m.current.destroy() : v.current.destroy();
|
|
@@ -403,44 +404,44 @@ var Ke = Ae.strings, Ze = (
|
|
|
403
404
|
g && (m.current.on = l);
|
|
404
405
|
}, [l, g, m]);
|
|
405
406
|
var De = function(i) {
|
|
406
|
-
|
|
407
|
+
X && X(g ? m.current.on : i);
|
|
407
408
|
}, xe = Se || "button";
|
|
408
|
-
return /* @__PURE__ */ k.createElement(xe,
|
|
409
|
-
"aria-label":
|
|
409
|
+
return /* @__PURE__ */ k.createElement(xe, se({
|
|
410
|
+
"aria-label": s,
|
|
410
411
|
"aria-labelledby": R,
|
|
411
|
-
"data-aria-label-on": _ || T ||
|
|
412
|
-
"data-aria-label-off": O || L ||
|
|
412
|
+
"data-aria-label-on": _ || T || s,
|
|
413
|
+
"data-aria-label-off": O || L || s,
|
|
413
414
|
onClick: De,
|
|
414
415
|
ref: h,
|
|
415
416
|
className: we,
|
|
416
417
|
disabled: Ce,
|
|
417
418
|
tabIndex: Ie
|
|
418
|
-
}, Pe),
|
|
419
|
+
}, Pe), q && /* @__PURE__ */ k.createElement(je, se({
|
|
419
420
|
badge: w,
|
|
420
421
|
badgePlacement: Le,
|
|
421
|
-
icon:
|
|
422
|
+
icon: q,
|
|
422
423
|
iconSize: p,
|
|
423
424
|
iconSource: ke,
|
|
424
425
|
iconType: Ne
|
|
425
|
-
}, Re)),
|
|
426
|
+
}, Re)), F && C(F, function(i) {
|
|
426
427
|
var d, u;
|
|
427
428
|
return {
|
|
428
429
|
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"]) ||
|
|
430
|
+
"aria-hidden": (i == null || (u = i.props) === null || u === void 0 ? void 0 : u["aria-hidden"]) || s || R
|
|
430
431
|
};
|
|
431
432
|
}), g && l && C(oe, function(i) {
|
|
432
433
|
var d, u, b;
|
|
433
434
|
return {
|
|
434
435
|
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 ||
|
|
436
|
-
"aria-hidden": (i == null || (b = i.props) === null || b === void 0 ? void 0 : b["aria-hidden"]) || _ || T ||
|
|
436
|
+
"aria-label": (i == null || (u = i.props) === null || u === void 0 ? void 0 : u["aria-label"]) || _ || T || s,
|
|
437
|
+
"aria-hidden": (i == null || (b = i.props) === null || b === void 0 ? void 0 : b["aria-hidden"]) || _ || T || s
|
|
437
438
|
};
|
|
438
439
|
}), g && !l && C(ee, function(i) {
|
|
439
440
|
var d, u, b;
|
|
440
441
|
return {
|
|
441
442
|
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 ||
|
|
443
|
-
"aria-hidden": (i == null || (b = i.props) === null || b === void 0 ? void 0 : b["aria-hidden"]) || O || L ||
|
|
443
|
+
"aria-label": (i == null || (u = i.props) === null || u === void 0 ? void 0 : u["aria-label"]) || O || L || s,
|
|
444
|
+
"aria-hidden": (i == null || (b = i.props) === null || b === void 0 ? void 0 : b["aria-hidden"]) || O || L || s
|
|
444
445
|
};
|
|
445
446
|
}));
|
|
446
447
|
});
|
|
@@ -450,10 +451,10 @@ var N, pe;
|
|
|
450
451
|
function tn() {
|
|
451
452
|
if (pe) return N;
|
|
452
453
|
pe = 1;
|
|
453
|
-
var e = /* @__PURE__ */ Me(), t = /* @__PURE__ */
|
|
454
|
-
return N = function(
|
|
455
|
-
var
|
|
456
|
-
return e(
|
|
454
|
+
var e = /* @__PURE__ */ Me(), t = /* @__PURE__ */ qe(), n = /* @__PURE__ */ ve(), l = n("match");
|
|
455
|
+
return N = function(c) {
|
|
456
|
+
var s;
|
|
457
|
+
return e(c) && ((s = c[l]) !== void 0 ? !!s : t(c) === "RegExp");
|
|
457
458
|
}, N;
|
|
458
459
|
}
|
|
459
460
|
var E, be;
|
|
@@ -468,7 +469,7 @@ function sn() {
|
|
|
468
469
|
}, E;
|
|
469
470
|
}
|
|
470
471
|
var I, me;
|
|
471
|
-
function
|
|
472
|
+
function dn() {
|
|
472
473
|
if (me) return I;
|
|
473
474
|
me = 1;
|
|
474
475
|
var e = /* @__PURE__ */ ve(), t = e("match");
|
|
@@ -487,7 +488,7 @@ function cn() {
|
|
|
487
488
|
}
|
|
488
489
|
export {
|
|
489
490
|
sn as h,
|
|
490
|
-
|
|
491
|
+
Ke as j,
|
|
491
492
|
Oe as p,
|
|
492
|
-
|
|
493
|
+
dn as q
|
|
493
494
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { h as wt, U as $t, F as jt, N as qt, f as Et, a as Nt } from "./component-Bz_dtX1r-DqCAj-DR.js";
|
|
2
|
+
import { P as Ut, ae as st, af as Mt, t as i, r as $, h as A, e as F, g as Ct, k as j, l as w, ag as Gt, L as Kt, i as lt, ah as Xt, B as Qt, Z as ct, c as Vt, p as ut, f as Zt, v as zt, s as _t, X as Jt, a as dt, b as Yt } from "./useTranslation-BQQybhSd.js";
|
|
3
|
+
import p, { forwardRef as R, useState as Z, useRef as E, useImperativeHandle as S, useEffect as O, useMemo as Ot, useCallback as H, Fragment as ft } from "react";
|
|
4
|
+
import { D as te } from "./component-DEJuY56h-CYiwt7Ga.js";
|
|
5
|
+
import { I as ee, C as ne, X as oe, F as re, p as ie, S as z } from "./slicedToArray-ByMQIs5x-BsvSjTDl.js";
|
|
5
6
|
import ae from "react-dom";
|
|
6
7
|
function se(t) {
|
|
7
8
|
if (ne(t)) return oe(t);
|
|
8
9
|
}
|
|
9
10
|
function le(t) {
|
|
10
|
-
if (typeof
|
|
11
|
+
if (typeof Ut < "u" && re(t) != null || t["@@iterator"] != null) return ie(t);
|
|
11
12
|
}
|
|
12
13
|
function ce() {
|
|
13
14
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
@@ -38,8 +39,8 @@ var ue = {
|
|
|
38
39
|
}, de = {
|
|
39
40
|
children: null,
|
|
40
41
|
disabled: !1
|
|
41
|
-
},
|
|
42
|
-
var n = t.children, o = n === void 0 ?
|
|
42
|
+
}, U = de, J = /* @__PURE__ */ R(function(t, e) {
|
|
43
|
+
var n = t.children, o = n === void 0 ? U.children : n, r = t.container, a = r === void 0 ? U.container : r, u = t.disabled, l = u === void 0 ? U.disabled : u, d = Z(st() ? document.body : null), h = z(d, 2), m = h[0], v = h[1], y = E();
|
|
43
44
|
return S(e, function() {
|
|
44
45
|
return y.current;
|
|
45
46
|
}, []), O(function() {
|
|
@@ -48,7 +49,7 @@ var ue = {
|
|
|
48
49
|
if (a === "document.body")
|
|
49
50
|
v(s);
|
|
50
51
|
else {
|
|
51
|
-
var f =
|
|
52
|
+
var f = Mt(a);
|
|
52
53
|
v(f || s);
|
|
53
54
|
}
|
|
54
55
|
else
|
|
@@ -58,22 +59,22 @@ var ue = {
|
|
|
58
59
|
});
|
|
59
60
|
J.displayName = "Portal";
|
|
60
61
|
J.propTypes = ue;
|
|
61
|
-
var fe = /* @__PURE__ */ p.memo(J),
|
|
62
|
+
var fe = /* @__PURE__ */ p.memo(J), M, ht;
|
|
62
63
|
function pe() {
|
|
63
|
-
if (ht) return
|
|
64
|
+
if (ht) return M;
|
|
64
65
|
ht = 1;
|
|
65
66
|
function t(e, n) {
|
|
66
67
|
for (var o = -1, r = e == null ? 0 : e.length, a = Array(r); ++o < r; )
|
|
67
68
|
a[o] = n(e[o], o, e);
|
|
68
69
|
return a;
|
|
69
70
|
}
|
|
70
|
-
return
|
|
71
|
+
return M = t, M;
|
|
71
72
|
}
|
|
72
73
|
var G, mt;
|
|
73
74
|
function he() {
|
|
74
75
|
if (mt) return G;
|
|
75
76
|
mt = 1;
|
|
76
|
-
var t =
|
|
77
|
+
var t = jt(), e = qt(), n = "[object Symbol]";
|
|
77
78
|
function o(r) {
|
|
78
79
|
return typeof r == "symbol" || e(r) && t(r) == n;
|
|
79
80
|
}
|
|
@@ -83,7 +84,7 @@ var K, vt;
|
|
|
83
84
|
function me() {
|
|
84
85
|
if (vt) return K;
|
|
85
86
|
vt = 1;
|
|
86
|
-
var t =
|
|
87
|
+
var t = wt(), e = pe(), n = $t(), o = he(), r = t ? t.prototype : void 0, a = r ? r.toString : void 0;
|
|
87
88
|
function u(l) {
|
|
88
89
|
if (typeof l == "string")
|
|
89
90
|
return l;
|
|
@@ -97,7 +98,7 @@ function me() {
|
|
|
97
98
|
return K = u, K;
|
|
98
99
|
}
|
|
99
100
|
var X, yt;
|
|
100
|
-
function
|
|
101
|
+
function Be() {
|
|
101
102
|
if (yt) return X;
|
|
102
103
|
yt = 1;
|
|
103
104
|
var t = me();
|
|
@@ -212,7 +213,7 @@ var Tt = (
|
|
|
212
213
|
var n = e.cssClasses.LABEL_SHAKE;
|
|
213
214
|
this.adapter.removeClass(n);
|
|
214
215
|
}, e;
|
|
215
|
-
}(
|
|
216
|
+
}(Nt)
|
|
216
217
|
);
|
|
217
218
|
/**
|
|
218
219
|
* @license
|
|
@@ -273,7 +274,7 @@ var ye = (
|
|
|
273
274
|
};
|
|
274
275
|
return new Tt(o);
|
|
275
276
|
}, e;
|
|
276
|
-
}(
|
|
277
|
+
}(Et)
|
|
277
278
|
);
|
|
278
279
|
/**
|
|
279
280
|
* @license
|
|
@@ -379,7 +380,7 @@ var be = (
|
|
|
379
380
|
var n = e.cssClasses.OUTLINE_NOTCHED;
|
|
380
381
|
this.adapter.removeClass(n), this.adapter.removeNotchWidthProperty();
|
|
381
382
|
}, e;
|
|
382
|
-
}(
|
|
383
|
+
}(Nt)
|
|
383
384
|
);
|
|
384
385
|
/**
|
|
385
386
|
* @license
|
|
@@ -439,7 +440,7 @@ var ge = (
|
|
|
439
440
|
};
|
|
440
441
|
return new be(o);
|
|
441
442
|
}, e;
|
|
442
|
-
}(
|
|
443
|
+
}(Et)
|
|
443
444
|
), Ee = {
|
|
444
445
|
/**
|
|
445
446
|
* Content to be rendered inside the label. Expects a string, though accepts any valid markup.
|
|
@@ -474,7 +475,7 @@ var ge = (
|
|
|
474
475
|
}, Ne = {
|
|
475
476
|
children: null,
|
|
476
477
|
className: void 0
|
|
477
|
-
}, Ce = ["children", "htmlFor", "shake", "float", "className", "style"], Q = Ne, Pt = /* @__PURE__ */
|
|
478
|
+
}, Ce = ["children", "htmlFor", "shake", "float", "className", "style"], Q = Ne, Pt = /* @__PURE__ */ R(function(t, e) {
|
|
478
479
|
var n = t.children, o = n === void 0 ? Q.children : n, r = t.htmlFor, a = r === void 0 ? "" : r, u = t.shake, l = u === void 0 ? !1 : u, d = t.float, h = d === void 0 ? !1 : d, m = t.className, v = m === void 0 ? Q.className : m, y = t.style, s = y === void 0 ? Q.style : y, f = $(t, Ce), C = E(), _ = o, N = E();
|
|
479
480
|
return S(e, function() {
|
|
480
481
|
return N.current;
|
|
@@ -487,7 +488,7 @@ var ge = (
|
|
|
487
488
|
}, [h]), /* @__PURE__ */ p.createElement("label", A({
|
|
488
489
|
ref: N,
|
|
489
490
|
htmlFor: a,
|
|
490
|
-
className:
|
|
491
|
+
className: F("lmnt", "mdc-floating-label", h && "mdc-floating-label--float-above", l && "mdc-floating-label--shake", v)
|
|
491
492
|
}, f, {
|
|
492
493
|
style: s
|
|
493
494
|
}), _);
|
|
@@ -531,7 +532,7 @@ var _e = {
|
|
|
531
532
|
closed: void 0,
|
|
532
533
|
outlineOnly: void 0,
|
|
533
534
|
width: null
|
|
534
|
-
}, Te = ["closed", "className", "children", "outlineOnly", "width"], x = Oe, At = /* @__PURE__ */
|
|
535
|
+
}, Te = ["closed", "className", "children", "outlineOnly", "width"], x = Oe, At = /* @__PURE__ */ R(function(t, e) {
|
|
535
536
|
var n = t.closed, o = n === void 0 ? x.closed : n, r = t.className, a = r === void 0 ? x.className : r, u = t.children, l = u === void 0 ? x.children : u, d = t.outlineOnly, h = d === void 0 ? x.outlineOnly : d, m = t.width, v = m === void 0 ? x.width : m, y = $(t, Te), s = E(), f = E();
|
|
536
537
|
return S(e, function() {
|
|
537
538
|
return s.current;
|
|
@@ -544,7 +545,7 @@ var _e = {
|
|
|
544
545
|
}, [o]), O(function() {
|
|
545
546
|
v ? f.current.foundation.adapter.setNotchWidthProperty(v) : f.current.foundation.adapter.removeNotchWidthProperty();
|
|
546
547
|
}, [v]), /* @__PURE__ */ p.createElement("div", A({
|
|
547
|
-
className:
|
|
548
|
+
className: F("lmnt", "mdc-notched-outline", a),
|
|
548
549
|
ref: s
|
|
549
550
|
}, y), /* @__PURE__ */ p.createElement("div", {
|
|
550
551
|
className: "mdc-notched-outline__leading"
|
|
@@ -672,15 +673,15 @@ var Le = {
|
|
|
672
673
|
id: void 0,
|
|
673
674
|
portalContainer: "document.body",
|
|
674
675
|
text: null
|
|
675
|
-
}, Ie = ["className", "hoisted", "id", "portalContainer", "text"],
|
|
676
|
-
var n = t.className, o = n === void 0 ?
|
|
677
|
-
return l ||
|
|
676
|
+
}, Ie = ["className", "hoisted", "id", "portalContainer", "text"], W = ke, Y = /* @__PURE__ */ R(function(t, e) {
|
|
677
|
+
var n = t.className, o = n === void 0 ? W.className : n, r = t.hoisted, a = r === void 0 ? W.hoisted : r, u = t.id, l = u === void 0 ? W.id : u, d = t.portalContainer, h = d === void 0 ? W.portalContainer : d, m = t.text, v = m === void 0 ? W.text : m, y = $(t, Ie), s = Z(function() {
|
|
678
|
+
return l || Ct();
|
|
678
679
|
}), f = z(s, 1), C = f[0], _ = E();
|
|
679
680
|
S(e, function() {
|
|
680
681
|
return _.current;
|
|
681
682
|
}, []);
|
|
682
683
|
var N = Ot(function() {
|
|
683
|
-
return
|
|
684
|
+
return F(["lmnt", o, "lmnt-tooltip__text-content", "mdc-typography--caption"]);
|
|
684
685
|
}, [o]);
|
|
685
686
|
return /* @__PURE__ */ p.createElement(fe, {
|
|
686
687
|
disabled: !a,
|
|
@@ -717,16 +718,16 @@ function B(t) {
|
|
|
717
718
|
}
|
|
718
719
|
return t;
|
|
719
720
|
}
|
|
720
|
-
var g = Pe, kt = /* @__PURE__ */
|
|
721
|
+
var g = Pe, kt = /* @__PURE__ */ R(function(t, e) {
|
|
721
722
|
var n = t.children, o = n === void 0 ? g.children : n, r = t.className, a = r === void 0 ? g.className : r, u = t.containerType, l = u === void 0 ? g.containerType : u, d = t.hoisted, h = d === void 0 ? g.hoisted : d, m = t.id, v = m === void 0 ? g.id : m, y = t.onClick, s = y === void 0 ? g.onClick : y, f = t.portalContainer, C = f === void 0 ? g.portalContainer : f, _ = t.position, N = _ === void 0 ? g.position : _, tt = t.text, k = tt === void 0 ? g.text : tt, et = t.tooltipProps, It = et === void 0 ? g.tooltipProps : et, nt = t.triggerProps, Dt = nt === void 0 ? g.triggerProps : nt, Ht = $(t, De), q = E(), T = E(), I = E();
|
|
722
723
|
S(e, function() {
|
|
723
724
|
return T.current;
|
|
724
725
|
}, []);
|
|
725
726
|
var xt = Z(function() {
|
|
726
|
-
return v ||
|
|
727
|
-
}),
|
|
727
|
+
return v || Ct();
|
|
728
|
+
}), Wt = z(xt, 1), L = Wt[0], Ft = H(function() {
|
|
728
729
|
s == null || s();
|
|
729
|
-
}, [s]),
|
|
730
|
+
}, [s]), Rt = H(function(c) {
|
|
730
731
|
c.key === "Enter" && (s == null || s());
|
|
731
732
|
}, [s]);
|
|
732
733
|
Gt(function() {
|
|
@@ -803,13 +804,13 @@ var g = Pe, kt = /* @__PURE__ */ F(function(t, e) {
|
|
|
803
804
|
), Bt = s ? {
|
|
804
805
|
tabIndex: 0,
|
|
805
806
|
role: s ? "button" : "note",
|
|
806
|
-
onKeyPress:
|
|
807
|
-
onClick:
|
|
807
|
+
onKeyPress: Rt,
|
|
808
|
+
onClick: Ft
|
|
808
809
|
} : {};
|
|
809
810
|
return /* @__PURE__ */ p.createElement("span", A({
|
|
810
|
-
className:
|
|
811
|
+
className: F("lmnt lmnt-tooltip", l === "block" ? "lmnt-tooltip--block" : "lmnt-tooltip--inline")
|
|
811
812
|
}, Bt, Ht), /* @__PURE__ */ p.createElement("span", A({
|
|
812
|
-
className:
|
|
813
|
+
className: F("lmnt-tooltip__content", l === "block" ? "lmnt-tooltip--block" : "lmnt-tooltip--inline")
|
|
813
814
|
}, Dt, {
|
|
814
815
|
ref: q,
|
|
815
816
|
onMouseEnter: ot,
|
|
@@ -833,7 +834,7 @@ export {
|
|
|
833
834
|
pt as B,
|
|
834
835
|
fe as G,
|
|
835
836
|
Y as K,
|
|
836
|
-
|
|
837
|
+
Be as M,
|
|
837
838
|
le as O,
|
|
838
839
|
ge as W,
|
|
839
840
|
ye as a,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { r as Ot, d as wn, g as Ct, j as jn, L as Bn, i as Ne, h as tt, e as U, k as A, l as c,
|
|
2
|
-
import { B as Se, y as Wn, v as He, K as $n, a as zn, W as Zn } from "./index.es-
|
|
3
|
-
import { S as B } from "./slicedToArray-
|
|
1
|
+
import { r as Ot, d as wn, g as Ct, j as jn, L as Bn, i as Ne, h as tt, e as U, k as A, l as c, Z as Fe, c as kn, p as Pe, f as Mn, v as Un, s as We, B as $e, m as ze, X as qn, a as Ve, b as Xn, t as a, n as F, o as Gn } from "./useTranslation-BQQybhSd.js";
|
|
2
|
+
import { B as Se, y as Wn, v as He, K as $n, a as zn, W as Zn } from "./index.es--C-VLspF-B3Cy1zrT.js";
|
|
3
|
+
import { S as B } from "./slicedToArray-ByMQIs5x-BsvSjTDl.js";
|
|
4
4
|
import u, { forwardRef as At, useState as k, useRef as O, useMemo as Yn, useEffect as g, useImperativeHandle as Ze, useCallback as De } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { f as et, a as nt } from "./component-Bz_dtX1r-DqCAj-DR.js";
|
|
6
|
+
import { p as pt, U as we, _ as Kn, O as Jn } from "./component-DEJuY56h-CYiwt7Ga.js";
|
|
6
7
|
/**
|
|
7
8
|
* @license
|
|
8
9
|
* Copyright 2018 Google Inc.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t, r as rn, h as un, e as dn, i as xn,
|
|
1
|
+
import { t, r as rn, h as un, e as dn, i as xn, ac as Cn, m as On, n as h, a4 as _n } from "./useTranslation-BQQybhSd.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 Bn } from "./component-
|
|
3
|
+
import { U as Bn } from "./component-DEJuY56h-CYiwt7Ga.js";
|
|
4
4
|
var Un = {
|
|
5
5
|
/**
|
|
6
6
|
* Content to be rendered inside the component.
|
|
@@ -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, 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,
|
|
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, G = n.label, bn = G === void 0 ? o.label : G, M = n.leadingIcon, X = M === void 0 ? o.leadingIcon : M, Y = n.onClick, vn = Y === void 0 ? o.onClick : Y, q = n.outlined, A = q === void 0 ? o.outlined : q, 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
|
}, []);
|
|
@@ -293,8 +293,8 @@ var Rn = {
|
|
|
293
293
|
className: wn
|
|
294
294
|
}, yn), /* @__PURE__ */ y.createElement("span", {
|
|
295
295
|
className: "mdc-button__ripple"
|
|
296
|
-
}),
|
|
297
|
-
icon:
|
|
296
|
+
}), X && /* @__PURE__ */ y.createElement(ln, {
|
|
297
|
+
icon: X,
|
|
298
298
|
position: "leading"
|
|
299
299
|
}), /* @__PURE__ */ y.createElement("span", {
|
|
300
300
|
className: "mdc-button__label"
|