@hortiview/shared-components 2.25.0 → 2.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/dist/{AlertBanner-BFzaGOer.js → AlertBanner-C9TvBTkH.js} +3 -3
- package/dist/{GenericCard-grpa3KJR.js → GenericCard-2v0lBsVu.js} +3 -3
- package/dist/{ListAreaService-B0x97Jin.js → ListAreaService-PaN1DrXf.js} +5 -5
- package/dist/assets/ContextMenu.css +1 -1
- package/dist/assets/FormSelect.css +1 -1
- package/dist/components/AlertBanner/AlertBanner.js +4 -4
- package/dist/components/AlertBanner/LinkBanner.js +3 -3
- package/dist/components/AllowedButton/AllowedButton.js +1 -1
- package/dist/components/AllowedIconButton/AllowedIconButton.js +1 -1
- package/dist/components/BaseView/BaseView.js +4 -4
- package/dist/components/BasicHeading/BasicHeading.js +4 -4
- package/dist/components/BlockView/BlockView.js +2 -2
- package/dist/components/ButtonCard/ButtonCard.js +3 -3
- package/dist/components/ChipCard/ChipCard.js +10 -10
- package/dist/components/ConfirmationModal/ConfirmationModal.js +3 -3
- package/dist/components/ContextMenu/ContextMenu.js +98 -68
- package/dist/components/DeleteModal/DeleteModal.js +4 -4
- package/dist/components/DetailContentWrapper/DetailContentWrapper.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.js +3 -3
- package/dist/components/EmptyView/EmptyView.js +3 -3
- package/dist/components/ErrorBanner/ErrorBanner.js +5 -5
- package/dist/components/Filter/Filter.js +6 -6
- package/dist/components/FloatingActionButton/FloatingActionButton.js +3 -3
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +4 -4
- package/dist/components/FormComponents/FormNumber/CustomTextField.js +1 -1
- package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
- package/dist/components/FormComponents/FormSelect/FormSelect.js +104 -99
- package/dist/components/FormComponents/FormSelect/FormSelectService.d.ts +34 -0
- package/dist/components/FormComponents/FormSelect/FormSelectService.js +20 -0
- package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +2 -2
- package/dist/components/FormComponents/FormSlider/FormSlider.js +6 -6
- package/dist/components/FormComponents/FormText/FormText.js +2 -2
- package/dist/components/FormComponents/FormToggle/FormToggle.js +3 -3
- package/dist/components/GenericTable/GenericTable.js +5349 -5409
- package/dist/components/GenericTable/Mobile/GenericCard.js +4 -4
- package/dist/components/GenericTable/Mobile/GenericCardList.js +4 -4
- package/dist/components/HashTabView/HashTabView.js +6 -6
- package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
- package/dist/components/Iconify/Iconify.js +1 -1
- package/dist/components/InfoCard/InfoCard.js +4 -4
- package/dist/components/InfoGroup/InfoGroup.js +3 -3
- package/dist/components/ListArea/ListArea.js +5 -5
- package/dist/components/ListArea/ListAreaService.js +6 -6
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +1 -1
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +5 -5
- package/dist/components/Modal/Modal.js +150 -142
- package/dist/components/ModulePadding/ModulePadding.js +1 -1
- package/dist/components/OfflineView/OfflineView.js +3 -3
- package/dist/components/OnboardingBanner/OnboardingBanner.js +7 -7
- package/dist/components/OverflowTooltip/OverflowTooltip.js +1 -1
- package/dist/components/SearchBar/SearchBar.js +2 -2
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/components/StepperButton.js +1 -1
- package/dist/components/Stepper/components/StepperHeader.js +2 -2
- package/dist/components/Stepper/components/StepperItem.js +2 -2
- package/dist/{defineProperty-B7N9EBBI.js → defineProperty-SoB5opr-.js} +51 -51
- package/dist/{es.string.iterator-DBx2A42F.js → es.string.iterator-BrOvr7F6.js} +78 -78
- package/dist/{find-eU9ab_u7.js → find-OaLSg5iu.js} +35 -35
- package/dist/includes-CSD_V_RY.js +112 -0
- package/dist/{index-Df2FYN-K.js → index-_-9ybP20.js} +76 -76
- package/dist/{index.es-C27R5Xae.js → index.es-0SkNh4dU.js} +2 -2
- package/dist/{index.es-B19PQgzU.js → index.es-B1cewJEy.js} +4 -4
- package/dist/{index.es-Z0aF-7Cn.js → index.es-BE1XL1dD.js} +3 -3
- package/dist/{index.es-BcnmoCEg.js → index.es-BSaDtduL.js} +6 -6
- package/dist/{index.es-Ci3O23C_.js → index.es-BVW2k-5y.js} +4 -4
- package/dist/index.es-BZkGOjEo.js +383 -0
- package/dist/{index.es-Cr1PSTyq.js → index.es-C2ejWpji.js} +3 -3
- package/dist/{index.es-DgncYOqO.js → index.es-C8AExypY.js} +2 -2
- package/dist/{index.es-BOvO8moE.js → index.es-CNrSvjAv.js} +5 -6
- package/dist/{index.es-l_3PNohs.js → index.es-CTKwa3Es.js} +1 -1
- package/dist/{index.es-BwafUoK3.js → index.es-CVPUG1pf.js} +785 -781
- package/dist/index.es-CpPnZRt7.js +604 -0
- package/dist/{index.es-DHoIQ8lu.js → index.es-CwgwR6SB.js} +1 -1
- package/dist/{index.es-BOG3_7IM.js → index.es-DHL1mFb3.js} +249 -317
- package/dist/{index.es-DHnCVuQ8.js → index.es-DPGGEmi5.js} +5 -5
- package/dist/{index.es-C6I3L4U4.js → index.es-DRC-9PLs.js} +43 -43
- package/dist/{index.es-C2IOpX7R.js → index.es-DVgCBhVx.js} +3020 -2798
- package/dist/{index.es-B9BUXRQn.js → index.es-DsOSfaF5.js} +39 -39
- package/dist/{index.es-DUrjyxNI.js → index.es-EXzC8zuP.js} +2 -2
- package/dist/index.es-LckFzDz-.js +1069 -0
- package/dist/{index.es-DdeCB7LW.js → index.es-Pc5KKhcb.js} +1 -1
- package/dist/{index.es-Cg57snrN.js → index.es-_PSuLbjQ.js} +15 -16
- package/dist/{index.es-DhlgTSuU.js → index.es-eZDofmng.js} +10 -13
- package/dist/{keyboard-DbG3oyPU.js → keyboard-DQ9O_Ke1.js} +21 -21
- package/dist/main.js +1 -1
- package/dist/{map-ZSVweMI1.js → map-BErBeya5.js} +85 -85
- package/dist/parse-int-BYd7r_4n.js +47 -0
- package/dist/{slicedToArray-DC6VAZtW.js → slicedToArray-C2Ed3239.js} +67 -67
- package/dist/string-trim-v5pkXsl2.js +32 -0
- package/package.json +4 -4
- package/dist/correct-is-regexp-logic-BJ-OWRrn.js +0 -44
- package/dist/index.es-CkB4776y.js +0 -391
- package/dist/index.es-D1iB_QlE.js +0 -608
- package/dist/index.es-DEBGoIKX.js +0 -1061
- package/dist/parse-int-CGpIXMGa.js +0 -75
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { _ as Oe, a as te, c as
|
|
2
|
-
import { g as Mn, _ as jn, a as Pt, b as $n, c as Bn, d as Xt, e as Ft, f as kn } from "./defineProperty-
|
|
3
|
-
import { _ as St } from "./index.es-
|
|
4
|
-
import { _ as
|
|
5
|
-
import { e as Ee, w as Un, _ as Vt, c as Gt, d as P,
|
|
6
|
-
import d, { forwardRef as Ae, useRef as O, useImperativeHandle as zt, useEffect as v, useState as
|
|
7
|
-
import { M as Xn, a as Gn, N as zn, F as Ht, T as Yn } from "./index.es-
|
|
1
|
+
import { _ as Oe, a as te, c as B, P as a, b as Nt, d as wn } from "./index-_-9ybP20.js";
|
|
2
|
+
import { g as Mn, _ as jn, a as Pt, b as $n, c as Bn, d as Xt, e as Ft, f as kn } from "./defineProperty-SoB5opr-.js";
|
|
3
|
+
import { _ as St } from "./index.es-CNrSvjAv.js";
|
|
4
|
+
import { _ as M } from "./slicedToArray-C2Ed3239.js";
|
|
5
|
+
import { e as Ee, w as Un, _ as Vt, c as Gt, d as P, r as qn } from "./index.es-DRC-9PLs.js";
|
|
6
|
+
import d, { forwardRef as Ae, useRef as O, useImperativeHandle as zt, useEffect as v, useState as j, useMemo as Wn, useCallback as Dt } from "react";
|
|
7
|
+
import { M as Xn, a as Gn, N as zn, F as Ht, T as Yn } from "./index.es-CpPnZRt7.js";
|
|
8
8
|
import { b as A, c as f } from "./tslib.es6-BDCynO9F.js";
|
|
9
9
|
import { M as ne, a as ie } from "./component-By6nyiBU.js";
|
|
10
|
-
import { c as Kn, I as Yt } from "./index.es-
|
|
10
|
+
import { c as Kn, I as Yt } from "./index.es-LckFzDz-.js";
|
|
11
11
|
import { a as pe, M as wt, m as Jn, b as Qn } from "./component-DYpB_4EP.js";
|
|
12
|
-
var
|
|
12
|
+
var $ = {
|
|
13
13
|
LINE_RIPPLE_ACTIVE: "mdc-line-ripple--active",
|
|
14
14
|
LINE_RIPPLE_DEACTIVATING: "mdc-line-ripple--deactivating"
|
|
15
15
|
};
|
|
@@ -25,7 +25,7 @@ var Zn = (
|
|
|
25
25
|
}
|
|
26
26
|
return Object.defineProperty(t, "cssClasses", {
|
|
27
27
|
get: function() {
|
|
28
|
-
return
|
|
28
|
+
return $;
|
|
29
29
|
},
|
|
30
30
|
enumerable: !1,
|
|
31
31
|
configurable: !0
|
|
@@ -57,14 +57,14 @@ var Zn = (
|
|
|
57
57
|
}, t.prototype.destroy = function() {
|
|
58
58
|
this.adapter.deregisterEventHandler("transitionend", this.transitionEndHandler_);
|
|
59
59
|
}, t.prototype.activate = function() {
|
|
60
|
-
this.adapter.removeClass(
|
|
60
|
+
this.adapter.removeClass($.LINE_RIPPLE_DEACTIVATING), this.adapter.addClass($.LINE_RIPPLE_ACTIVE);
|
|
61
61
|
}, t.prototype.setRippleCenter = function(e) {
|
|
62
62
|
this.adapter.setStyle("transform-origin", e + "px center");
|
|
63
63
|
}, t.prototype.deactivate = function() {
|
|
64
|
-
this.adapter.addClass(
|
|
64
|
+
this.adapter.addClass($.LINE_RIPPLE_DEACTIVATING);
|
|
65
65
|
}, t.prototype.handleTransitionEnd = function(e) {
|
|
66
|
-
var n = this.adapter.hasClass(
|
|
67
|
-
e.propertyName === "opacity" && n && (this.adapter.removeClass(
|
|
66
|
+
var n = this.adapter.hasClass($.LINE_RIPPLE_DEACTIVATING);
|
|
67
|
+
e.propertyName === "opacity" && n && (this.adapter.removeClass($.LINE_RIPPLE_ACTIVE), this.adapter.removeClass($.LINE_RIPPLE_DEACTIVATING));
|
|
68
68
|
}, t;
|
|
69
69
|
})(ne)
|
|
70
70
|
);
|
|
@@ -749,8 +749,8 @@ var li = (
|
|
|
749
749
|
!S && z && F && (S = F.querySelector(Y.ROOT_SELECTOR)), this.characterCounter_ = S ? o(S) : null;
|
|
750
750
|
var K = this.root.querySelector(x.LEADING_ICON_SELECTOR);
|
|
751
751
|
this.leadingIcon_ = K ? s(K) : null;
|
|
752
|
-
var
|
|
753
|
-
this.trailingIcon_ =
|
|
752
|
+
var k = this.root.querySelector(x.TRAILING_ICON_SELECTOR);
|
|
753
|
+
this.trailingIcon_ = k ? s(k) : null, this.prefix_ = this.root.querySelector(x.PREFIX_SELECTOR), this.suffix_ = this.root.querySelector(x.SUFFIX_SELECTOR), this.ripple = this.createRipple_(e);
|
|
754
754
|
}, t.prototype.destroy = function() {
|
|
755
755
|
this.ripple && this.ripple.destroy(), this.lineRipple_ && this.lineRipple_.destroy(), this.helperText_ && this.helperText_.destroy(), this.characterCounter_ && this.characterCounter_.destroy(), this.leadingIcon_ && this.leadingIcon_.destroy(), this.trailingIcon_ && this.trailingIcon_.destroy(), this.label_ && this.label_.destroy(), this.outline_ && this.outline_.destroy(), r.prototype.destroy.call(this);
|
|
756
756
|
}, t.prototype.initialSyncWithDOM = function() {
|
|
@@ -1127,7 +1127,7 @@ var li = (
|
|
|
1127
1127
|
o && y.current.setRippleCenter(o);
|
|
1128
1128
|
}, [o]), /* @__PURE__ */ d.createElement("div", te({
|
|
1129
1129
|
ref: T,
|
|
1130
|
-
className:
|
|
1130
|
+
className: B("lmnt", "mdc-line-ripple", _)
|
|
1131
1131
|
}, p));
|
|
1132
1132
|
});
|
|
1133
1133
|
Re.displayName = "LineRipple";
|
|
@@ -1492,7 +1492,7 @@ var Wt = function(t, e) {
|
|
|
1492
1492
|
className: "mdc-text-field__icon lmnt-text-field__icon mdc-text-field__icon--leading",
|
|
1493
1493
|
icon: t
|
|
1494
1494
|
}) : Gt(t, {
|
|
1495
|
-
className:
|
|
1495
|
+
className: B("mdc-text-field__icon lmnt-text-field__icon mdc-text-field__icon--leading", o === "IconButton" && "lmnt-text-field__icon-button--leading"),
|
|
1496
1496
|
dense: o === "IconButton" ? !0 : void 0,
|
|
1497
1497
|
role: "button"
|
|
1498
1498
|
});
|
|
@@ -1502,20 +1502,20 @@ var Wt = function(t, e) {
|
|
|
1502
1502
|
className: "mdc-text-field__icon lmnt-text-field__icon mdc-text-field__icon--trailing",
|
|
1503
1503
|
icon: t
|
|
1504
1504
|
}) : Gt(t, {
|
|
1505
|
-
className:
|
|
1505
|
+
className: B("mdc-text-field__icon lmnt-text-field__icon mdc-text-field__icon--trailing", o === "IconButton" && "lmnt-text-field__icon-button--trailing"),
|
|
1506
1506
|
dense: o === "IconButton" ? !0 : void 0,
|
|
1507
1507
|
role: o === "IconButton" ? "button" : null
|
|
1508
1508
|
});
|
|
1509
1509
|
}, l = pi, nn = /* @__PURE__ */ Ae(function(r, t) {
|
|
1510
|
-
var e = r.alignment, n = e === void 0 ? l.alignment : e, i = r.block, o = i === void 0 ? l.block : i, s = r.className, _ = s === void 0 ? l.className : s, p = r.containerClass, y = p === void 0 ? l.containerClass : p, T = r.containerProps, re = T === void 0 ? l.containerProps : T, ae = r.containerStyle, F = ae === void 0 ? l.containerStyle : ae, z = r.counter, R = z === void 0 ? l.counter : z, Y = r.defaultValue, S = Y === void 0 ? l.defaultValue : Y, K = r.dense,
|
|
1510
|
+
var e = r.alignment, n = e === void 0 ? l.alignment : e, i = r.block, o = i === void 0 ? l.block : i, s = r.className, _ = s === void 0 ? l.className : s, p = r.containerClass, y = p === void 0 ? l.containerClass : p, T = r.containerProps, re = T === void 0 ? l.containerProps : T, ae = r.containerStyle, F = ae === void 0 ? l.containerStyle : ae, z = r.counter, R = z === void 0 ? l.counter : z, Y = r.defaultValue, S = Y === void 0 ? l.defaultValue : Y, K = r.dense, k = K === void 0 ? l.dense : K, h = r.disabled, U = h === void 0 ? l.disabled : h, Ne = r.embedded, Pe = Ne === void 0 ? l.embedded : Ne, Fe = r.filled, rn = Fe === void 0 ? l.filled : Fe, Se = r.focused, Ve = Se === void 0 ? l.focused : Se, De = r.fullWidth, an = De === void 0 ? l.fullWidth : De, He = r.helperText, b = He === void 0 ? l.helperText : He, we = r.helperTextId, on = we === void 0 ? l.helperTextId : we, Me = r.helperTextPersistent, oe = Me === void 0 ? l.helperTextPersistent : Me, je = r.helperTextValidation, _e = je === void 0 ? l.helperTextValidation : je, $e = r.id, ln = $e === void 0 ? l.id : $e, Be = r.label, D = Be === void 0 ? l.label : Be, ke = r.labelId, sn = ke === void 0 ? l.labelId : ke, Ue = r.leadingContent, un = Ue === void 0 ? l.leadingContent : Ue, qe = r.leadingIcon, J = qe === void 0 ? l.leadingIcon : qe, We = r.maxLength, ve = We === void 0 ? l.maxLength : We, Xe = r.maxlength, le = Xe === void 0 ? l.maxlength : Xe, Ge = r.noResize, se = Ge === void 0 ? l.noResize : Ge, ze = r.onBlur, Ye = ze === void 0 ? l.onBlur : ze, Ke = r.outlined, dn = Ke === void 0 ? l.outlined : Ke, Je = r.placeholder, cn = Je === void 0 ? l.placeholder : Je, Qe = r.prefixText, Ze = Qe === void 0 ? l.prefixText : Qe, et = r.primary, fn = et === void 0 ? l.primary : et, tt = r.search, pn = tt === void 0 ? l.search : tt, nt = r.secondary, hn = nt === void 0 ? l.secondary : nt, it = r.suffixText, rt = it === void 0 ? l.suffixText : it, at = r.textarea, g = at === void 0 ? l.textarea : at, ot = r.tooltip, I = ot === void 0 ? l.tooltip : ot, lt = r.trailingContent, _n = lt === void 0 ? l.trailingContent : lt, st = r.trailingIcon, Q = st === void 0 ? l.trailingIcon : st, ut = r.type, dt = ut === void 0 ? l.type : ut, ct = r.valid, q = ct === void 0 ? l.valid : ct, ft = r.value, N = ft === void 0 ? l.value : ft, pt = r.variant, ge = pt === void 0 ? l.variant : pt, me = Oe(r, hi), ht = I && Mn(I) === "object" ? I : {}, vn = ht.hoisted, _t = ht.position, vt = _t === void 0 ? "bottom" : _t, gn = j(function() {
|
|
1511
1511
|
return ln || Ee();
|
|
1512
|
-
}), mn =
|
|
1512
|
+
}), mn = M(gn, 1), ue = mn[0], bn = j(function() {
|
|
1513
1513
|
return on || Ee();
|
|
1514
|
-
}), In =
|
|
1514
|
+
}), In = M(bn, 1), be = In[0], xn = j(function() {
|
|
1515
1515
|
return sn || Ee();
|
|
1516
|
-
}), yn =
|
|
1516
|
+
}), yn = M(xn, 1), Ie = yn[0], Tn = j(!0), gt = M(Tn, 2), mt = gt[0], Cn = gt[1], En = j(!1), bt = M(En, 2), xe = bt[0], Ln = bt[1], On = j(le), It = M(On, 2), H = It[0], An = It[1], Rn = j(Ve || !1), xt = M(Rn, 2), Nn = xt[0], yt = xt[1], Pn = b || R && H, Fn = g ? "textarea" : "input", Tt = O(), w = O(), m = O(), ye = O(), Ct = O(), Te = O(), de = O(), Z = O(), Sn = (Q || J) && !g, W = Wn(function() {
|
|
1517
1517
|
return q ?? !0;
|
|
1518
|
-
}, [q]), X = !g && (Pe || pn || ge === "embedded"), ce = !Pe && (dn || hn || ge === "outlined"), fe = !ce && !X && (fn || rn || ge === "filled"), ee = X || an || o, Ce = !X && !!
|
|
1518
|
+
}, [q]), X = !g && (Pe || pn || ge === "embedded"), ce = !Pe && (dn || hn || ge === "outlined"), fe = !ce && !X && (fn || rn || ge === "filled"), ee = X || an || o, Ce = !X && !!D && !k;
|
|
1519
1519
|
v(function() {
|
|
1520
1520
|
return m.current = li.attachTo(ye.current), function() {
|
|
1521
1521
|
m.current.destroy();
|
|
@@ -1528,13 +1528,13 @@ var Wt = function(t, e) {
|
|
|
1528
1528
|
label: ye.current
|
|
1529
1529
|
};
|
|
1530
1530
|
}), v(function() {
|
|
1531
|
-
return b && typeof b == "string" && (
|
|
1532
|
-
|
|
1531
|
+
return b && typeof b == "string" && (w.current = new en(Tt.current)), function() {
|
|
1532
|
+
w.current && w.current.destroy();
|
|
1533
1533
|
};
|
|
1534
1534
|
}, [b]), v(function() {
|
|
1535
1535
|
if (b) {
|
|
1536
1536
|
var c, u, C, E;
|
|
1537
|
-
(c =
|
|
1537
|
+
(c = w.current) === null || c === void 0 || c.foundation.setValidation(_e), (u = w.current) === null || u === void 0 || u.foundation.setValidity(W), (C = w.current) === null || C === void 0 || C.foundation.setPersistent(oe), (E = w.current) === null || E === void 0 || E.foundation.setContent(b);
|
|
1538
1538
|
}
|
|
1539
1539
|
}, [b, oe, _e, W]), v(function() {
|
|
1540
1540
|
S || (m.current.value = N || N === 0 ? N : ""), m.current.valid = W;
|
|
@@ -1543,8 +1543,8 @@ var Wt = function(t, e) {
|
|
|
1543
1543
|
}, [m, U]), v(function() {
|
|
1544
1544
|
An(ve && !le ? ve : le);
|
|
1545
1545
|
}, [le, ve]), v(function() {
|
|
1546
|
-
Ln(
|
|
1547
|
-
}, [
|
|
1546
|
+
Ln(H > 0 && R);
|
|
1547
|
+
}, [H, R]), v(function() {
|
|
1548
1548
|
var c = ee || R || b;
|
|
1549
1549
|
Cn(c);
|
|
1550
1550
|
}, [ee, R, b]);
|
|
@@ -1620,7 +1620,7 @@ var Wt = function(t, e) {
|
|
|
1620
1620
|
return /* @__PURE__ */ d.createElement("div", te({
|
|
1621
1621
|
ref: Te,
|
|
1622
1622
|
style: F,
|
|
1623
|
-
className:
|
|
1623
|
+
className: B("lmnt", "lmnt-text-field--container", ee && "lmnt-text-field--container-full-width", !ee && mt && "lmnt-text-field--container-to-content-width", !mt && "lmnt-text-field-inline-container", y)
|
|
1624
1624
|
}, re, {
|
|
1625
1625
|
onMouseEnter: I && Lt,
|
|
1626
1626
|
onFocus: I && Lt,
|
|
@@ -1629,7 +1629,7 @@ var Wt = function(t, e) {
|
|
|
1629
1629
|
}), un, /* @__PURE__ */ d.createElement("label", {
|
|
1630
1630
|
htmlFor: ue,
|
|
1631
1631
|
ref: ye,
|
|
1632
|
-
className:
|
|
1632
|
+
className: B(["lmnt", "mdc-text-field", "lmnt-text-field", X && "lmnt-text-field--embedded", ee && "lmnt-text-field--full-width", Sn && "lmnt-text-field--with-icon", !W && "mdc-text-field--invalid", U && "mdc-text-field--disabled", Ve && "mdc-text-field--focused", !Ce && "mdc-text-field--no-label", J && !g && "mdc-text-field--with-leading-icon", g && "mdc-text-field--textarea", g && R && H && !se && "mdc-text-field--with-internal-counter", Q && !g && "mdc-text-field--with-trailing-icon", fe && "mdc-text-field--filled", ce && "mdc-text-field--outlined", k && "lmnt-text-field--dense", _])
|
|
1633
1633
|
}, fe && /* @__PURE__ */ d.createElement("span", {
|
|
1634
1634
|
className: "mdc-text-field__ripple"
|
|
1635
1635
|
}), J && !g && _i(J), Ze && !J && !g && /* @__PURE__ */ d.createElement("span", {
|
|
@@ -1640,33 +1640,33 @@ var Wt = function(t, e) {
|
|
|
1640
1640
|
"aria-controls": be,
|
|
1641
1641
|
"aria-describedby": be,
|
|
1642
1642
|
"aria-labelledby": Ie,
|
|
1643
|
-
className:
|
|
1643
|
+
className: B("mdc-text-field__input", n === "right" && "lmnt-text-field--alignment-right", dt === "color" && "lmnt-text-field__input--color"),
|
|
1644
1644
|
disabled: U,
|
|
1645
1645
|
id: ue,
|
|
1646
1646
|
type: dt,
|
|
1647
1647
|
onBlur: Dn,
|
|
1648
1648
|
onFocus: Hn,
|
|
1649
1649
|
defaultValue: S,
|
|
1650
|
-
placeholder: ce &&
|
|
1651
|
-
maxLength:
|
|
1650
|
+
placeholder: ce && Nn ? "" : cn || (X && D ? D : "") || (k && D ? D : ""),
|
|
1651
|
+
maxLength: H,
|
|
1652
1652
|
ref: Ct,
|
|
1653
1653
|
value: N
|
|
1654
|
-
}, me)), !se && Wt(xe,
|
|
1654
|
+
}, me)), !se && Wt(xe, H)), Q && !g && vi(Q), rt && !Q && !g && /* @__PURE__ */ d.createElement("span", {
|
|
1655
1655
|
className: "mdc-text-field__affix mdc-text-field__affix--suffix"
|
|
1656
1656
|
}, rt), ce && /* @__PURE__ */ d.createElement(zn, null, Ce && /* @__PURE__ */ d.createElement(Ht, {
|
|
1657
1657
|
id: Ie,
|
|
1658
1658
|
htmlFor: ue
|
|
1659
|
-
},
|
|
1659
|
+
}, D)), fe && Ce && /* @__PURE__ */ d.createElement(Ht, {
|
|
1660
1660
|
id: Ie,
|
|
1661
1661
|
htmlFor: ue
|
|
1662
|
-
},
|
|
1662
|
+
}, D), (fe || X) && /* @__PURE__ */ d.createElement(Re, null)), _n, Pn && /* @__PURE__ */ d.createElement("div", {
|
|
1663
1663
|
className: "mdc-text-field-helper-line"
|
|
1664
1664
|
}, b && /* @__PURE__ */ d.createElement("div", {
|
|
1665
1665
|
ref: Tt,
|
|
1666
1666
|
id: be,
|
|
1667
1667
|
"aria-hidden": oe ? "false" : "true",
|
|
1668
|
-
className:
|
|
1669
|
-
}, b), se && Wt(xe,
|
|
1668
|
+
className: B(["mdc-text-field-helper-text", oe && "mdc-text-field-helper-text--persistent", _e && "mdc-text-field-helper-text--validation-msg"])
|
|
1669
|
+
}, b), se && Wt(xe, H)), I && /* @__PURE__ */ d.createElement(Yn, te({
|
|
1670
1670
|
role: "tooltip"
|
|
1671
1671
|
}, I, {
|
|
1672
1672
|
ref: de,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as k, c as $, a as m, P as e } from "./index-
|
|
1
|
+
import { _ as k, c as $, a as m, P as e } from "./index-_-9ybP20.js";
|
|
2
2
|
import c, { forwardRef as O, useRef as C, useImperativeHandle as T, useEffect as M } from "react";
|
|
3
|
-
import { b as P, f as Q } from "./index.es-
|
|
3
|
+
import { b as P, f as Q } from "./index.es-DRC-9PLs.js";
|
|
4
4
|
import { c as W } from "./tslib.es6-BDCynO9F.js";
|
|
5
5
|
function V(t) {
|
|
6
6
|
return t.toLowerCase();
|