@carto/ps-react-ui 0.1.0-alpha.5 → 0.1.0-alpha.6
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/ps-react-ui.es.js +63 -63
- package/dist/ps-react-ui.umd.js +1 -1
- package/package.json +3 -3
package/dist/ps-react-ui.es.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import * as
|
1
|
+
import * as V from "react";
|
2
2
|
import ue, { useRef as Tt, useState as Ue, useEffect as wt } from "react";
|
3
3
|
import { makeStyles as St, Box as ie, Typography as me, IconButton as _t, Button as Rt } from "@material-ui/core";
|
4
4
|
import { withStyles as At } from "@material-ui/styles";
|
@@ -17,8 +17,8 @@ function pt(e) {
|
|
17
17
|
return n;
|
18
18
|
}
|
19
19
|
function re() {
|
20
|
-
for (var e
|
21
|
-
(
|
20
|
+
for (var e, t, r = 0, n = ""; r < arguments.length; )
|
21
|
+
(e = arguments[r++]) && (t = pt(e)) && (n && (n += " "), n += t);
|
22
22
|
return n;
|
23
23
|
}
|
24
24
|
function It(e) {
|
@@ -250,7 +250,7 @@ function $t() {
|
|
250
250
|
}
|
251
251
|
}
|
252
252
|
}
|
253
|
-
var u = f, N = p,
|
253
|
+
var u = f, N = p, F = s, W = c, _ = t, k = d, B = n, X = g, te = b, Z = r, de = a, H = o, G = m, oe = !1;
|
254
254
|
function pe(l) {
|
255
255
|
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), i(l) || M(l) === f;
|
256
256
|
}
|
@@ -290,7 +290,7 @@ function $t() {
|
|
290
290
|
function L(l) {
|
291
291
|
return M(l) === m;
|
292
292
|
}
|
293
|
-
C.AsyncMode = u, C.ConcurrentMode = N, C.ContextConsumer =
|
293
|
+
C.AsyncMode = u, C.ConcurrentMode = N, C.ContextConsumer = F, C.ContextProvider = W, C.Element = _, C.ForwardRef = k, C.Fragment = B, C.Lazy = X, C.Memo = te, C.Portal = Z, C.Profiler = de, C.StrictMode = H, C.Suspense = G, C.isAsyncMode = pe, C.isConcurrentMode = i, C.isContextConsumer = v, C.isContextProvider = S, C.isElement = T, C.isForwardRef = x, C.isFragment = R, C.isLazy = O, C.isMemo = w, C.isPortal = A, C.isProfiler = $, C.isStrictMode = P, C.isSuspense = L, C.isValidElementType = j, C.typeOf = M;
|
294
294
|
}()), C;
|
295
295
|
}
|
296
296
|
var Ye;
|
@@ -448,7 +448,7 @@ function jt() {
|
|
448
448
|
instanceOf: N,
|
449
449
|
node: k(),
|
450
450
|
objectOf: W,
|
451
|
-
oneOf:
|
451
|
+
oneOf: F,
|
452
452
|
oneOfType: _,
|
453
453
|
shape: X,
|
454
454
|
exact: te
|
@@ -542,7 +542,7 @@ function jt() {
|
|
542
542
|
}
|
543
543
|
return E(v);
|
544
544
|
}
|
545
|
-
function
|
545
|
+
function F(i) {
|
546
546
|
if (!Array.isArray(i))
|
547
547
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a("Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).") : a("Invalid argument supplied to oneOf, expected an array.")), c;
|
548
548
|
function v(S, T, x, R, O) {
|
@@ -761,8 +761,8 @@ function Wt() {
|
|
761
761
|
}, Te;
|
762
762
|
}
|
763
763
|
if (process.env.NODE_ENV !== "production") {
|
764
|
-
var
|
765
|
-
U.exports = jt()(
|
764
|
+
var zt = ht(), Ft = !0;
|
765
|
+
U.exports = jt()(zt.isElement, Ft);
|
766
766
|
} else
|
767
767
|
U.exports = Wt()();
|
768
768
|
function se(e, t, r) {
|
@@ -783,7 +783,7 @@ function $e(e) {
|
|
783
783
|
throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: capitalize(string) expects a string argument." : ce(7));
|
784
784
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
785
785
|
}
|
786
|
-
function
|
786
|
+
function Vt() {
|
787
787
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
788
788
|
t[r] = arguments[r];
|
789
789
|
return t.reduce(function(n, o) {
|
@@ -907,7 +907,7 @@ var Yt = {
|
|
907
907
|
A400: "#303030",
|
908
908
|
A700: "#616161"
|
909
909
|
};
|
910
|
-
const
|
910
|
+
const ze = Yt;
|
911
911
|
var Bt = {
|
912
912
|
50: "#e8eaf6",
|
913
913
|
100: "#c5cae9",
|
@@ -1029,7 +1029,7 @@ function Qt(e) {
|
|
1029
1029
|
var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : (m + n / 30) % 12;
|
1030
1030
|
return a - c * Math.max(Math.min(y - 3, 9 - y, 1), -1);
|
1031
1031
|
}, f = "rgb", p = [Math.round(s(0) * 255), Math.round(s(8) * 255), Math.round(s(4) * 255)];
|
1032
|
-
return e.type === "hsla" && (f += "a", p.push(r[3])),
|
1032
|
+
return e.type === "hsla" && (f += "a", p.push(r[3])), Fe({
|
1033
1033
|
type: f,
|
1034
1034
|
values: p
|
1035
1035
|
});
|
@@ -1050,7 +1050,7 @@ function Q(e) {
|
|
1050
1050
|
values: n
|
1051
1051
|
};
|
1052
1052
|
}
|
1053
|
-
function
|
1053
|
+
function Fe(e) {
|
1054
1054
|
var t = e.type, r = e.values;
|
1055
1055
|
return t.indexOf("rgb") !== -1 ? r = r.map(function(n, o) {
|
1056
1056
|
return o < 3 ? parseInt(n, 10) : n;
|
@@ -1073,7 +1073,7 @@ function er(e, t) {
|
|
1073
1073
|
else if (e.type.indexOf("rgb") !== -1)
|
1074
1074
|
for (var r = 0; r < 3; r += 1)
|
1075
1075
|
e.values[r] *= 1 - t;
|
1076
|
-
return
|
1076
|
+
return Fe(e);
|
1077
1077
|
}
|
1078
1078
|
function tr(e, t) {
|
1079
1079
|
if (e = Q(e), t = bt(t), e.type.indexOf("hsl") !== -1)
|
@@ -1081,7 +1081,7 @@ function tr(e, t) {
|
|
1081
1081
|
else if (e.type.indexOf("rgb") !== -1)
|
1082
1082
|
for (var r = 0; r < 3; r += 1)
|
1083
1083
|
e.values[r] += (255 - e.values[r]) * t;
|
1084
|
-
return
|
1084
|
+
return Fe(e);
|
1085
1085
|
}
|
1086
1086
|
var et = {
|
1087
1087
|
text: {
|
@@ -1093,7 +1093,7 @@ var et = {
|
|
1093
1093
|
divider: "rgba(0, 0, 0, 0.12)",
|
1094
1094
|
background: {
|
1095
1095
|
paper: fe.white,
|
1096
|
-
default:
|
1096
|
+
default: ze[50]
|
1097
1097
|
},
|
1098
1098
|
action: {
|
1099
1099
|
active: "rgba(0, 0, 0, 0.54)",
|
@@ -1118,7 +1118,7 @@ var et = {
|
|
1118
1118
|
},
|
1119
1119
|
divider: "rgba(255, 255, 255, 0.12)",
|
1120
1120
|
background: {
|
1121
|
-
paper:
|
1121
|
+
paper: ze[800],
|
1122
1122
|
default: "#303030"
|
1123
1123
|
},
|
1124
1124
|
action: {
|
@@ -1198,7 +1198,7 @@ const theme2 = createTheme({ palette: {
|
|
1198
1198
|
light: et
|
1199
1199
|
};
|
1200
1200
|
process.env.NODE_ENV !== "production" && (N[g] || console.error("Material-UI: The palette type `".concat(g, "` is not supported.")));
|
1201
|
-
var
|
1201
|
+
var F = ne(Y({
|
1202
1202
|
common: fe,
|
1203
1203
|
type: g,
|
1204
1204
|
primary: u(r),
|
@@ -1207,13 +1207,13 @@ const theme2 = createTheme({ palette: {
|
|
1207
1207
|
warning: u(f),
|
1208
1208
|
info: u(d),
|
1209
1209
|
success: u(y),
|
1210
|
-
grey:
|
1210
|
+
grey: ze,
|
1211
1211
|
contrastThreshold: E,
|
1212
1212
|
getContrastText: M,
|
1213
1213
|
augmentColor: u,
|
1214
1214
|
tonalOffset: q
|
1215
1215
|
}, N[g]), j);
|
1216
|
-
return
|
1216
|
+
return F;
|
1217
1217
|
}
|
1218
1218
|
function Et(e) {
|
1219
1219
|
return Math.round(e * 1e5) / 1e5;
|
@@ -1240,7 +1240,7 @@ function or(e, t) {
|
|
1240
1240
|
}, o === ot ? {
|
1241
1241
|
letterSpacing: "".concat(Et(X / k), "em")
|
1242
1242
|
} : {}, te, D);
|
1243
|
-
},
|
1243
|
+
}, F = {
|
1244
1244
|
h1: N(f, 96, 1.167, -1.5),
|
1245
1245
|
h2: N(f, 60, 1.2, -0.5),
|
1246
1246
|
h3: N(d, 48, 1.167, 0),
|
@@ -1265,15 +1265,15 @@ function or(e, t) {
|
|
1265
1265
|
fontWeightRegular: d,
|
1266
1266
|
fontWeightMedium: y,
|
1267
1267
|
fontWeightBold: g
|
1268
|
-
},
|
1268
|
+
}, F), j, {
|
1269
1269
|
clone: !1
|
1270
1270
|
});
|
1271
1271
|
}
|
1272
1272
|
var ar = 0.2, ir = 0.14, ur = 0.12;
|
1273
|
-
function
|
1273
|
+
function z() {
|
1274
1274
|
return ["".concat(arguments.length <= 0 ? void 0 : arguments[0], "px ").concat(arguments.length <= 1 ? void 0 : arguments[1], "px ").concat(arguments.length <= 2 ? void 0 : arguments[2], "px ").concat(arguments.length <= 3 ? void 0 : arguments[3], "px rgba(0,0,0,").concat(ar, ")"), "".concat(arguments.length <= 4 ? void 0 : arguments[4], "px ").concat(arguments.length <= 5 ? void 0 : arguments[5], "px ").concat(arguments.length <= 6 ? void 0 : arguments[6], "px ").concat(arguments.length <= 7 ? void 0 : arguments[7], "px rgba(0,0,0,").concat(ir, ")"), "".concat(arguments.length <= 8 ? void 0 : arguments[8], "px ").concat(arguments.length <= 9 ? void 0 : arguments[9], "px ").concat(arguments.length <= 10 ? void 0 : arguments[10], "px ").concat(arguments.length <= 11 ? void 0 : arguments[11], "px rgba(0,0,0,").concat(ur, ")")].join(",");
|
1275
1275
|
}
|
1276
|
-
var sr = ["none",
|
1276
|
+
var sr = ["none", z(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), z(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), z(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), z(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), z(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), z(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), z(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), z(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), z(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), z(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), z(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), z(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), z(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), z(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), z(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), z(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), z(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), z(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), z(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), z(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), z(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), z(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), z(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), z(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
|
1277
1277
|
const cr = sr;
|
1278
1278
|
var fr = {
|
1279
1279
|
borderRadius: 4
|
@@ -1391,10 +1391,10 @@ function Er() {
|
|
1391
1391
|
return ne(M, u);
|
1392
1392
|
}, g), process.env.NODE_ENV !== "production") {
|
1393
1393
|
var q = ["checked", "disabled", "error", "focused", "focusVisible", "required", "expanded", "selected"], j = function M(u, N) {
|
1394
|
-
var
|
1394
|
+
var F = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, W;
|
1395
1395
|
for (W in u) {
|
1396
1396
|
var _ = u[W];
|
1397
|
-
|
1397
|
+
F === 1 ? W.indexOf("Mui") === 0 && _ && M(_, W, F + 1) : q.indexOf(W) !== -1 && Object.keys(_).length > 0 && (process.env.NODE_ENV !== "production" && console.error(["Material-UI: The `".concat(N, "` component increases ") + "the CSS specificity of the `".concat(W, "` internal state."), "You can not override it like this: ", JSON.stringify(u, null, 2), "", "Instead, you need to use the $ruleName syntax:", JSON.stringify({
|
1398
1398
|
root: se({}, "&$".concat(W), _)
|
1399
1399
|
}, null, 2), "", "https://mui.com/r/pseudo-classes-guide"].join(`
|
1400
1400
|
`)), u[W] = {});
|
@@ -1450,9 +1450,9 @@ var wr = function(t) {
|
|
1450
1450
|
fontSize: t.typography.pxToRem(35)
|
1451
1451
|
}
|
1452
1452
|
};
|
1453
|
-
},
|
1453
|
+
}, Ve = /* @__PURE__ */ V.forwardRef(function(t, r) {
|
1454
1454
|
var n = t.children, o = t.classes, a = t.className, c = t.color, s = c === void 0 ? "inherit" : c, f = t.component, p = f === void 0 ? "svg" : f, d = t.fontSize, m = d === void 0 ? "medium" : d, y = t.htmlColor, b = t.titleAccess, g = t.viewBox, h = g === void 0 ? "0 0 24 24" : g, E = ee(t, ["children", "classes", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"]);
|
1455
|
-
return /* @__PURE__ */
|
1455
|
+
return /* @__PURE__ */ V.createElement(p, Y({
|
1456
1456
|
className: re(o.root, a, s !== "inherit" && o["color".concat($e(s))], m !== "default" && m !== "medium" && o["fontSize".concat($e(m))]),
|
1457
1457
|
focusable: "false",
|
1458
1458
|
viewBox: h,
|
@@ -1460,9 +1460,9 @@ var wr = function(t) {
|
|
1460
1460
|
"aria-hidden": b ? void 0 : !0,
|
1461
1461
|
role: b ? "img" : void 0,
|
1462
1462
|
ref: r
|
1463
|
-
}, E), n, b ? /* @__PURE__ */
|
1463
|
+
}, E), n, b ? /* @__PURE__ */ V.createElement("title", null, b) : null);
|
1464
1464
|
});
|
1465
|
-
process.env.NODE_ENV !== "production" && (
|
1465
|
+
process.env.NODE_ENV !== "production" && (Ve.propTypes = {
|
1466
1466
|
children: U.exports.node,
|
1467
1467
|
classes: U.exports.object,
|
1468
1468
|
className: U.exports.string,
|
@@ -1479,10 +1479,10 @@ process.env.NODE_ENV !== "production" && (Fe.propTypes = {
|
|
1479
1479
|
titleAccess: U.exports.string,
|
1480
1480
|
viewBox: U.exports.string
|
1481
1481
|
});
|
1482
|
-
|
1482
|
+
Ve.muiName = "SvgIcon";
|
1483
1483
|
const ct = Tr(wr, {
|
1484
1484
|
name: "MuiSvgIcon"
|
1485
|
-
})(
|
1485
|
+
})(Ve);
|
1486
1486
|
function Sr(e, t) {
|
1487
1487
|
var r = function(o, a) {
|
1488
1488
|
return /* @__PURE__ */ ue.createElement(ct, Y({
|
@@ -1514,7 +1514,7 @@ function Rr(e, t) {
|
|
1514
1514
|
};
|
1515
1515
|
}
|
1516
1516
|
function Ar(e, t) {
|
1517
|
-
return /* @__PURE__ */
|
1517
|
+
return /* @__PURE__ */ V.isValidElement(e) && t.indexOf(e.type.muiName) !== -1;
|
1518
1518
|
}
|
1519
1519
|
function xt(e) {
|
1520
1520
|
return e && e.ownerDocument || document;
|
@@ -1546,42 +1546,42 @@ function Cr(e, t, r, n, o) {
|
|
1546
1546
|
return typeof e[t] < "u" ? new Error("The prop `".concat(a, "` is not supported. Please remove it.")) : null;
|
1547
1547
|
}
|
1548
1548
|
function Mr(e) {
|
1549
|
-
var t = e.controlled, r = e.default, n = e.name, o = e.state, a = o === void 0 ? "value" : o, c =
|
1549
|
+
var t = e.controlled, r = e.default, n = e.name, o = e.state, a = o === void 0 ? "value" : o, c = V.useRef(t !== void 0), s = c.current, f = V.useState(r), p = f[0], d = f[1], m = s ? t : p;
|
1550
1550
|
if (process.env.NODE_ENV !== "production") {
|
1551
|
-
|
1551
|
+
V.useEffect(function() {
|
1552
1552
|
s !== (t !== void 0) && console.error(["Material-UI: A component is changing the ".concat(s ? "" : "un", "controlled ").concat(a, " state of ").concat(n, " to be ").concat(s ? "un" : "", "controlled."), "Elements should not switch from uncontrolled to controlled (or vice versa).", "Decide between using a controlled or uncontrolled ".concat(n, " ") + "element for the lifetime of the component.", "The nature of the state is determined during the first render, it's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
1553
1553
|
`));
|
1554
1554
|
}, [t]);
|
1555
|
-
var y =
|
1556
|
-
|
1555
|
+
var y = V.useRef(r), b = y.current;
|
1556
|
+
V.useEffect(function() {
|
1557
1557
|
!s && b !== r && console.error(["Material-UI: A component is changing the default ".concat(a, " state of an uncontrolled ").concat(n, " after being initialized. ") + "To suppress this warning opt to use a controlled ".concat(n, ".")].join(`
|
1558
1558
|
`));
|
1559
1559
|
}, [JSON.stringify(r)]);
|
1560
1560
|
}
|
1561
|
-
var g =
|
1561
|
+
var g = V.useCallback(function(h) {
|
1562
1562
|
s || d(h);
|
1563
1563
|
}, []);
|
1564
1564
|
return [m, g];
|
1565
1565
|
}
|
1566
|
-
var $r = typeof window < "u" ?
|
1566
|
+
var $r = typeof window < "u" ? V.useLayoutEffect : V.useEffect;
|
1567
1567
|
function Nr(e) {
|
1568
|
-
var t =
|
1568
|
+
var t = V.useRef(e);
|
1569
1569
|
return $r(function() {
|
1570
1570
|
t.current = e;
|
1571
|
-
}),
|
1571
|
+
}), V.useCallback(function() {
|
1572
1572
|
return t.current.apply(void 0, arguments);
|
1573
1573
|
}, []);
|
1574
1574
|
}
|
1575
1575
|
function Dr(e, t) {
|
1576
|
-
return
|
1576
|
+
return V.useMemo(function() {
|
1577
1577
|
return e == null && t == null ? null : function(r) {
|
1578
1578
|
Ne(e, r), Ne(t, r);
|
1579
1579
|
};
|
1580
1580
|
}, [e, t]);
|
1581
1581
|
}
|
1582
1582
|
function jr(e) {
|
1583
|
-
var t =
|
1584
|
-
return
|
1583
|
+
var t = V.useState(e), r = t[0], n = t[1], o = e || r;
|
1584
|
+
return V.useEffect(function() {
|
1585
1585
|
r == null && n("mui-".concat(Math.round(Math.random() * 1e5)));
|
1586
1586
|
}, [r]), o;
|
1587
1587
|
}
|
@@ -1600,21 +1600,21 @@ var le = !0, De = !1, ft = null, Wr = {
|
|
1600
1600
|
datetime: !0,
|
1601
1601
|
"datetime-local": !0
|
1602
1602
|
};
|
1603
|
-
function
|
1603
|
+
function zr(e) {
|
1604
1604
|
var t = e.type, r = e.tagName;
|
1605
1605
|
return !!(r === "INPUT" && Wr[t] && !e.readOnly || r === "TEXTAREA" && !e.readOnly || e.isContentEditable);
|
1606
1606
|
}
|
1607
|
-
function
|
1607
|
+
function Fr(e) {
|
1608
1608
|
e.metaKey || e.altKey || e.ctrlKey || (le = !0);
|
1609
1609
|
}
|
1610
1610
|
function Ce() {
|
1611
1611
|
le = !1;
|
1612
1612
|
}
|
1613
|
-
function
|
1613
|
+
function Vr() {
|
1614
1614
|
this.visibilityState === "hidden" && De && (le = !0);
|
1615
1615
|
}
|
1616
1616
|
function kr(e) {
|
1617
|
-
e.addEventListener("keydown",
|
1617
|
+
e.addEventListener("keydown", Fr, !0), e.addEventListener("mousedown", Ce, !0), e.addEventListener("pointerdown", Ce, !0), e.addEventListener("touchstart", Ce, !0), e.addEventListener("visibilitychange", Vr, !0);
|
1618
1618
|
}
|
1619
1619
|
function lt(e) {
|
1620
1620
|
var t = e.target;
|
@@ -1622,7 +1622,7 @@ function lt(e) {
|
|
1622
1622
|
return t.matches(":focus-visible");
|
1623
1623
|
} catch {
|
1624
1624
|
}
|
1625
|
-
return le ||
|
1625
|
+
return le || zr(t);
|
1626
1626
|
}
|
1627
1627
|
function Ur() {
|
1628
1628
|
De = !0, window.clearTimeout(ft), ft = window.setTimeout(function() {
|
@@ -1630,11 +1630,11 @@ function Ur() {
|
|
1630
1630
|
}, 100);
|
1631
1631
|
}
|
1632
1632
|
function qr() {
|
1633
|
-
var e =
|
1633
|
+
var e = V.useCallback(function(t) {
|
1634
1634
|
var r = Pt.findDOMNode(t);
|
1635
1635
|
r != null && kr(r.ownerDocument);
|
1636
1636
|
}, []);
|
1637
|
-
return process.env.NODE_ENV !== "production" &&
|
1637
|
+
return process.env.NODE_ENV !== "production" && V.useDebugValue(lt), {
|
1638
1638
|
isFocusVisible: lt,
|
1639
1639
|
onBlurVisible: Ur,
|
1640
1640
|
ref: e
|
@@ -1643,7 +1643,7 @@ function qr() {
|
|
1643
1643
|
const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1644
1644
|
__proto__: null,
|
1645
1645
|
capitalize: $e,
|
1646
|
-
createChainedFunction:
|
1646
|
+
createChainedFunction: Vt,
|
1647
1647
|
createSvgIcon: Sr,
|
1648
1648
|
debounce: _r,
|
1649
1649
|
deprecatedPropType: Rr,
|
@@ -1784,25 +1784,25 @@ function rn({
|
|
1784
1784
|
}) {
|
1785
1785
|
const m = Zr({ variant: f }), y = Tt(null), [b, g] = Ue(""), [h, E] = Ue(!1);
|
1786
1786
|
wt(() => {
|
1787
|
-
let
|
1788
|
-
p.length === 1 ?
|
1787
|
+
let F = "";
|
1788
|
+
p.length === 1 ? F = p[0].name : p.length > 1 && (F = `${p.length} ${r}`), g(F);
|
1789
1789
|
}, [p, r]);
|
1790
1790
|
const D = () => {
|
1791
1791
|
y.current?.click();
|
1792
|
-
}, q = (
|
1793
|
-
|
1794
|
-
}, j = (
|
1795
|
-
|
1796
|
-
}, M = (
|
1797
|
-
|
1798
|
-
const W = [], _ =
|
1792
|
+
}, q = (F) => {
|
1793
|
+
F.preventDefault(), E(!0);
|
1794
|
+
}, j = (F) => {
|
1795
|
+
F.preventDefault(), E(!1);
|
1796
|
+
}, M = (F) => {
|
1797
|
+
F.preventDefault();
|
1798
|
+
const W = [], _ = F.dataTransfer.items;
|
1799
1799
|
for (let k = 0; k < _.length; k++) {
|
1800
1800
|
const B = _[k].getAsFile();
|
1801
1801
|
W.push(B);
|
1802
1802
|
}
|
1803
1803
|
E(!1), d(W);
|
1804
|
-
}, u = (
|
1805
|
-
const W = Array.from(
|
1804
|
+
}, u = (F) => {
|
1805
|
+
const W = Array.from(F.target.files);
|
1806
1806
|
d(W);
|
1807
1807
|
}, N = () => {
|
1808
1808
|
d([]);
|
package/dist/ps-react-ui.umd.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
(function(B,H){typeof exports=="object"&&typeof module<"u"?H(exports,require("react"),require("@material-ui/core"),require("@material-ui/styles"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@material-ui/core","@material-ui/styles","react-dom"],H):(B=typeof globalThis<"u"?globalThis:B||self,H(B.PsReactUi={},B.react,B["@material-ui/core"],B["@material-ui/styles"],B["react-dom"]))})(this,function(B,H,J,wt,St){"use strict";const _t=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function Ue(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const V=Ue(H),ue=_t(H),Rt=Ue(St);function qe(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=qe(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function oe(){for(var e
|
1
|
+
(function(B,H){typeof exports=="object"&&typeof module<"u"?H(exports,require("react"),require("@material-ui/core"),require("@material-ui/styles"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@material-ui/core","@material-ui/styles","react-dom"],H):(B=typeof globalThis<"u"?globalThis:B||self,H(B.PsReactUi={},B.react,B["@material-ui/core"],B["@material-ui/styles"],B["react-dom"]))})(this,function(B,H,J,wt,St){"use strict";const _t=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function Ue(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const V=Ue(H),ue=_t(H),Rt=Ue(St);function qe(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=qe(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function oe(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=qe(e))&&(n&&(n+=" "),n+=t);return n}function At(e){var t=e.default;if(typeof t=="function"){var r=function(){return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var me={},Le={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Le);var Ye={exports:{}},Be={exports:{}};(function(e){function t(r){return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Be),function(e){var t=Be.exports.default;function r(o){if(typeof WeakMap!="function")return null;var a=new WeakMap,c=new WeakMap;return(r=function(f){return f?c:a})(o)}function n(o,a){if(!a&&o&&o.__esModule)return o;if(o===null||t(o)!=="object"&&typeof o!="function")return{default:o};var c=r(a);if(c&&c.has(o))return c.get(o);var s={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in o)if(p!=="default"&&Object.prototype.hasOwnProperty.call(o,p)){var d=f?Object.getOwnPropertyDescriptor(o,p):null;d&&(d.get||d.set)?Object.defineProperty(s,p,d):s[p]=o[p]}return s.default=o,c&&c.set(o,s),s}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Ye);var ve={};function Pt(e,t){return process.env.NODE_ENV==="production"?function(){return null}:function(){return e.apply(void 0,arguments)||t.apply(void 0,arguments)}}function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},L.apply(this,arguments)}function ge(e){return ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ge(e)}function ye(e){return e&&ge(e)==="object"&&e.constructor===Object}function ae(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},n=r.clone?L({},e):e;return ye(e)&&ye(t)&&Object.keys(t).forEach(function(o){o!=="__proto__"&&(ye(t[o])&&o in e?n[o]=ae(e[o],t[o],r):n[o]=t[o])}),n}var U={exports:{}},he={exports:{}},M={};/** @license React v16.13.1
|
2
2
|
* react-is.production.min.js
|
3
3
|
*
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@carto/ps-react-ui",
|
3
|
-
"version": "0.1.0-alpha.
|
3
|
+
"version": "0.1.0-alpha.6",
|
4
4
|
"description": "CARTO's Professional Service React UI library",
|
5
5
|
"files": [
|
6
6
|
"dist"
|
@@ -28,8 +28,8 @@
|
|
28
28
|
"storybook:build": "build-storybook"
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"@carto/react-core": "1.
|
32
|
-
"@carto/react-ui": "1.
|
31
|
+
"@carto/react-core": "1.2.1",
|
32
|
+
"@carto/react-ui": "1.2.1",
|
33
33
|
"@material-ui/core": "4.12.4",
|
34
34
|
"@material-ui/icons": "4.11.3",
|
35
35
|
"@material-ui/lab": "4.0.0-alpha.61",
|