@livechat/design-system-react-components 1.16.7 → 1.16.8
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/dist/dsrc.cjs.js +1 -1
- package/dist/dsrc.es.js +40 -28
- package/dist/preview-stats.json +542 -542
- package/package.json +2 -2
package/dist/dsrc.es.js
CHANGED
|
@@ -2798,30 +2798,42 @@ const bc = (t) => {
|
|
|
2798
2798
|
[Ce[`${Ne}--read-only`]]: c.readOnly
|
|
2799
2799
|
}
|
|
2800
2800
|
), f = r ? "var(--content-disabled)" : "var(--content-default)", k = m ? Fr : Rr, w = _ && _.place === "left", C = _ && b !== "password" && _.place === "right";
|
|
2801
|
-
return /* @__PURE__ */ e.createElement(
|
|
2802
|
-
|
|
2803
|
-
x(E({}, c), {
|
|
2804
|
-
ref: d,
|
|
2805
|
-
onFocus: ($) => {
|
|
2806
|
-
p(!0), h == null || h($);
|
|
2807
|
-
},
|
|
2808
|
-
onBlur: ($) => {
|
|
2809
|
-
p(!1), g == null || g($);
|
|
2810
|
-
},
|
|
2811
|
-
disabled: r,
|
|
2812
|
-
type: b && !m ? b : "text"
|
|
2813
|
-
})
|
|
2814
|
-
)), C && ja(_, r), b === "password" && /* @__PURE__ */ e.createElement(
|
|
2815
|
-
U,
|
|
2801
|
+
return /* @__PURE__ */ e.createElement(
|
|
2802
|
+
R,
|
|
2816
2803
|
{
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2804
|
+
as: "div",
|
|
2805
|
+
className: v,
|
|
2806
|
+
"aria-disabled": r,
|
|
2807
|
+
"tab-index": "0"
|
|
2808
|
+
},
|
|
2809
|
+
w && ja(_, r),
|
|
2810
|
+
/* @__PURE__ */ e.createElement(
|
|
2811
|
+
"input",
|
|
2812
|
+
x(E({}, c), {
|
|
2813
|
+
ref: d,
|
|
2814
|
+
onFocus: ($) => {
|
|
2815
|
+
p(!0), h == null || h($);
|
|
2816
|
+
},
|
|
2817
|
+
onBlur: ($) => {
|
|
2818
|
+
p(!1), g == null || g($);
|
|
2819
|
+
},
|
|
2820
|
+
disabled: r,
|
|
2821
|
+
type: b && !m ? b : "text"
|
|
2822
|
+
})
|
|
2823
|
+
),
|
|
2824
|
+
C && ja(_, r),
|
|
2825
|
+
b === "password" && /* @__PURE__ */ e.createElement(
|
|
2826
|
+
U,
|
|
2827
|
+
{
|
|
2828
|
+
disabled: r,
|
|
2829
|
+
kind: "text",
|
|
2830
|
+
size: "compact",
|
|
2831
|
+
icon: /* @__PURE__ */ e.createElement(T, { customColor: f, source: k }),
|
|
2832
|
+
onClick: () => y(($) => !$),
|
|
2833
|
+
className: Ce[`${Ne}__visibility-button`]
|
|
2834
|
+
}
|
|
2835
|
+
)
|
|
2836
|
+
);
|
|
2825
2837
|
}
|
|
2826
2838
|
), xo = "lc-Link-module__link___kqx52", Za = {
|
|
2827
2839
|
link: xo,
|
|
@@ -4744,7 +4756,7 @@ const ht = {
|
|
|
4744
4756
|
const z = P.clipboardData.getData("text/plain").split(/[\s,;\n]+/);
|
|
4745
4757
|
r([...a || [], ...z]);
|
|
4746
4758
|
};
|
|
4747
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div",
|
|
4759
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(R, { as: "div", className: b }, a == null ? void 0 : a.map((P, M) => /* @__PURE__ */ e.createElement(
|
|
4748
4760
|
yl,
|
|
4749
4761
|
{
|
|
4750
4762
|
index: M,
|
|
@@ -4756,7 +4768,7 @@ const ht = {
|
|
|
4756
4768
|
size: c
|
|
4757
4769
|
},
|
|
4758
4770
|
P
|
|
4759
|
-
)), /* @__PURE__ */ e.createElement(
|
|
4771
|
+
)), /* @__PURE__ */ e.createElement(
|
|
4760
4772
|
"input",
|
|
4761
4773
|
x(E({}, p), {
|
|
4762
4774
|
id: t,
|
|
@@ -4769,7 +4781,7 @@ const ht = {
|
|
|
4769
4781
|
onPaste: O,
|
|
4770
4782
|
onBlur: B
|
|
4771
4783
|
})
|
|
4772
|
-
))
|
|
4784
|
+
)), o && /* @__PURE__ */ e.createElement(Ia, null, o));
|
|
4773
4785
|
}, Cl = /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)])$/i, Nl = "name@company.com", xl = (t) => Cl.test(t), Hc = (d) => {
|
|
4774
4786
|
var n = d, {
|
|
4775
4787
|
id: t,
|
|
@@ -4942,14 +4954,14 @@ const ht = {
|
|
|
4942
4954
|
}, y = (b) => {
|
|
4943
4955
|
i(!0), n == null || n(b);
|
|
4944
4956
|
};
|
|
4945
|
-
return /* @__PURE__ */ e.createElement(
|
|
4957
|
+
return /* @__PURE__ */ e.createElement(R, { as: "div", className: p }, /* @__PURE__ */ e.createElement(
|
|
4946
4958
|
"textarea",
|
|
4947
4959
|
x(E({}, r), {
|
|
4948
4960
|
ref: _,
|
|
4949
4961
|
onFocus: y,
|
|
4950
4962
|
onBlur: m
|
|
4951
4963
|
})
|
|
4952
|
-
))
|
|
4964
|
+
));
|
|
4953
4965
|
}
|
|
4954
4966
|
), ka = {
|
|
4955
4967
|
"file-upload-progress-actions": "lc-FileUploadProgressActions-module__file-upload-progress-actions___qOBr2",
|