mainstack-design-system 0.3.5 → 0.3.7
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.
|
@@ -63604,11 +63604,11 @@ const Xue = ({
|
|
|
63604
63604
|
...m
|
|
63605
63605
|
}) => {
|
|
63606
63606
|
const p = Lt(null), v = () => {
|
|
63607
|
-
|
|
63608
|
-
p.current.getEditor(), y.setAttribute("type", "file"), y.setAttribute("accept", "image/*"), y.click(), y.onchange = () => {
|
|
63607
|
+
let y;
|
|
63608
|
+
window && (y = document.createElement("input"), p.current.getEditor(), y.setAttribute("type", "file"), y.setAttribute("accept", "image/*"), y.click(), y.onchange = () => {
|
|
63609
63609
|
const b = y && y.files && y.files[0];
|
|
63610
63610
|
b && d(b);
|
|
63611
|
-
};
|
|
63611
|
+
});
|
|
63612
63612
|
}, g = z1(
|
|
63613
63613
|
() => ({
|
|
63614
63614
|
toolbar: {
|
|
@@ -63735,7 +63735,9 @@ const Xue = ({
|
|
|
63735
63735
|
fontFamily: b,
|
|
63736
63736
|
...x
|
|
63737
63737
|
}) => {
|
|
63738
|
-
const [_, T] = Et(
|
|
63738
|
+
const [_, T] = Et(
|
|
63739
|
+
(i == null ? void 0 : i.length) ?? (d == null ? void 0 : d.length) ?? 0
|
|
63740
|
+
), [k, M] = Et(!1), L = (I) => {
|
|
63739
63741
|
var O;
|
|
63740
63742
|
const E = (O = I == null ? void 0 : I.target) == null ? void 0 : O.value;
|
|
63741
63743
|
T(E.length), E.length > (v || 200) ? M(!0) : M(!1);
|