@contentmunch/contentmunch-ui 1.0.38 → 1.0.40
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/lib/accordion/assets/accordion.css +3 -2
- package/lib/index.cjs.js +4 -4
- package/lib/index.es.js +98 -96
- package/lib/index.umd.js +4 -4
- package/package.json +1 -1
package/lib/index.es.js
CHANGED
|
@@ -150,7 +150,7 @@ function ye() {
|
|
|
150
150
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
151
151
|
)), l = this.props.ref, l !== void 0 ? l : null;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function u(l, y, w, E, D, V, ee, se) {
|
|
154
154
|
return w = V.ref, l = {
|
|
155
155
|
$$typeof: f,
|
|
156
156
|
type: l,
|
|
@@ -182,19 +182,19 @@ function ye() {
|
|
|
182
182
|
value: se
|
|
183
183
|
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function d(l, y, w, E, D, V, ee, se) {
|
|
186
186
|
var R = y.children;
|
|
187
187
|
if (R !== void 0)
|
|
188
188
|
if (E)
|
|
189
189
|
if (Z(R)) {
|
|
190
190
|
for (E = 0; E < R.length; E++)
|
|
191
|
-
|
|
191
|
+
h(R[E]);
|
|
192
192
|
Object.freeze && Object.freeze(R);
|
|
193
193
|
} else
|
|
194
194
|
console.error(
|
|
195
195
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
196
196
|
);
|
|
197
|
-
else
|
|
197
|
+
else h(R);
|
|
198
198
|
if (X.call(y, "key")) {
|
|
199
199
|
R = n(l);
|
|
200
200
|
var F = Object.keys(y).filter(function(je) {
|
|
@@ -221,7 +221,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
221
221
|
return R && x(
|
|
222
222
|
w,
|
|
223
223
|
typeof l == "function" ? l.displayName || l.name || "Unknown" : l
|
|
224
|
-
),
|
|
224
|
+
), u(
|
|
225
225
|
l,
|
|
226
226
|
R,
|
|
227
227
|
V,
|
|
@@ -232,7 +232,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
232
232
|
se
|
|
233
233
|
);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function h(l) {
|
|
236
236
|
typeof l == "object" && l !== null && l.$$typeof === f && l._store && (l._store.validated = 1);
|
|
237
237
|
}
|
|
238
238
|
var p = oe, f = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), S = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), M = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), L = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, X = Object.prototype.hasOwnProperty, Z = Array.isArray, I = console.createTask ? console.createTask : function() {
|
|
@@ -249,7 +249,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
249
249
|
)(), W = I(i(a)), re = {};
|
|
250
250
|
J.Fragment = g, J.jsx = function(l, y, w, E, D) {
|
|
251
251
|
var V = 1e4 > L.recentlyCreatedOwnerStacks++;
|
|
252
|
-
return
|
|
252
|
+
return d(
|
|
253
253
|
l,
|
|
254
254
|
y,
|
|
255
255
|
w,
|
|
@@ -261,7 +261,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
261
261
|
);
|
|
262
262
|
}, J.jsxs = function(l, y, w, E, D) {
|
|
263
263
|
var V = 1e4 > L.recentlyCreatedOwnerStacks++;
|
|
264
|
-
return
|
|
264
|
+
return d(
|
|
265
265
|
l,
|
|
266
266
|
y,
|
|
267
267
|
w,
|
|
@@ -281,13 +281,15 @@ function pe() {
|
|
|
281
281
|
var e = pe();
|
|
282
282
|
const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
283
283
|
const { folds: i } = r, [c, a] = A(t ? -1 : 0), o = (d) => d === c ? "fold active" : "fold", x = (d) => "fold-button" + (n ? " fold-button--" + n : "") + (i[d].foldColor ? " fold-button--primary fold-button--" + i[d].foldColor : ""), j = (d) => {
|
|
284
|
-
const h = d.which.toString(),
|
|
285
|
-
if (h.match(/38|40/) ||
|
|
286
|
-
const
|
|
287
|
-
a(
|
|
284
|
+
const h = d.which.toString(), p = d.ctrlKey && h.match(/33|34/);
|
|
285
|
+
if (h.match(/38|40/) || p) {
|
|
286
|
+
const f = h.match(/34|40/) ? 1 : -1, b = i.length, g = (c + b + f) % b;
|
|
287
|
+
a(g);
|
|
288
288
|
} else
|
|
289
289
|
h === "36" && a(0), h === "35" && a(i.length - 1);
|
|
290
290
|
d.preventDefault();
|
|
291
|
+
}, u = (d) => {
|
|
292
|
+
a(c === d ? -1 : d);
|
|
291
293
|
};
|
|
292
294
|
return /* @__PURE__ */ e.jsx("div", { className: "muncher-accordion", children: i.map(
|
|
293
295
|
(d, h) => /* @__PURE__ */ e.jsxs(
|
|
@@ -301,7 +303,7 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
301
303
|
{
|
|
302
304
|
className: x(h),
|
|
303
305
|
onKeyDown: j,
|
|
304
|
-
onClick: () =>
|
|
306
|
+
onClick: () => u(h),
|
|
305
307
|
children: /* @__PURE__ */ e.jsx("span", { children: d.heading })
|
|
306
308
|
}
|
|
307
309
|
),
|
|
@@ -1117,9 +1119,9 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1117
1119
|
rounded: o,
|
|
1118
1120
|
onClick: x,
|
|
1119
1121
|
onMouseDown: j,
|
|
1120
|
-
onMouseEnter:
|
|
1121
|
-
onMouseLeave:
|
|
1122
|
-
children:
|
|
1122
|
+
onMouseEnter: u,
|
|
1123
|
+
onMouseLeave: d,
|
|
1124
|
+
children: h,
|
|
1123
1125
|
...p
|
|
1124
1126
|
}) => {
|
|
1125
1127
|
const f = "muncher-button" + (n && n === "nav" ? " muncher-button--nav" : "") + (t ? " muncher-button--" + t : "") + (r ? " muncher-button--" + r : "") + (c ? " muncher-button--active" : "") + (o ? " muncher-button--rounded" : "");
|
|
@@ -1132,10 +1134,10 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1132
1134
|
title: i,
|
|
1133
1135
|
onClick: x,
|
|
1134
1136
|
onMouseDown: j,
|
|
1135
|
-
onMouseEnter:
|
|
1136
|
-
onMouseLeave:
|
|
1137
|
+
onMouseEnter: u,
|
|
1138
|
+
onMouseLeave: d,
|
|
1137
1139
|
...p,
|
|
1138
|
-
children:
|
|
1140
|
+
children: h
|
|
1139
1141
|
}
|
|
1140
1142
|
);
|
|
1141
1143
|
}, ve = ({
|
|
@@ -1148,19 +1150,19 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1148
1150
|
onMouseDown: o,
|
|
1149
1151
|
rounded: x,
|
|
1150
1152
|
drop: j,
|
|
1151
|
-
onClick:
|
|
1152
|
-
onClose:
|
|
1153
|
-
showContent:
|
|
1153
|
+
onClick: u,
|
|
1154
|
+
onClose: d,
|
|
1155
|
+
showContent: h,
|
|
1154
1156
|
setShowContent: p,
|
|
1155
1157
|
withDropIcon: f,
|
|
1156
1158
|
children: b,
|
|
1157
1159
|
...g
|
|
1158
1160
|
}) => {
|
|
1159
1161
|
const T = de(null), v = (k) => {
|
|
1160
|
-
k.preventDefault(),
|
|
1162
|
+
k.preventDefault(), u && u(k), p && p(!0);
|
|
1161
1163
|
}, _ = G(() => {
|
|
1162
|
-
p(!1),
|
|
1163
|
-
}, [
|
|
1164
|
+
p(!1), d && d();
|
|
1165
|
+
}, [d, p]), S = G((k) => {
|
|
1164
1166
|
k.keyCode === 27 && _();
|
|
1165
1167
|
}, [_]);
|
|
1166
1168
|
Q(() => {
|
|
@@ -1215,7 +1217,7 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1215
1217
|
]
|
|
1216
1218
|
}
|
|
1217
1219
|
),
|
|
1218
|
-
|
|
1220
|
+
h ? /* @__PURE__ */ e.jsx("div", { className: z(), children: b }) : ""
|
|
1219
1221
|
] });
|
|
1220
1222
|
}, Ae = ({
|
|
1221
1223
|
title: n,
|
|
@@ -1247,7 +1249,7 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1247
1249
|
variant: t = "secondary",
|
|
1248
1250
|
size: r = "small"
|
|
1249
1251
|
}) => {
|
|
1250
|
-
const [i, c] = A(), [a, o] = A("copy"), [x, j] = A("copy link"),
|
|
1252
|
+
const [i, c] = A(), [a, o] = A("copy"), [x, j] = A("copy link"), u = () => {
|
|
1251
1253
|
ge(n), c("green"), o("check"), j("copied!"), setTimeout(function() {
|
|
1252
1254
|
c(""), o("copy");
|
|
1253
1255
|
}, 2e3);
|
|
@@ -1258,7 +1260,7 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1258
1260
|
size: r,
|
|
1259
1261
|
variant: t,
|
|
1260
1262
|
title: x,
|
|
1261
|
-
onClick:
|
|
1263
|
+
onClick: u,
|
|
1262
1264
|
children: /* @__PURE__ */ e.jsx(N, { name: a, color: i })
|
|
1263
1265
|
}
|
|
1264
1266
|
);
|
|
@@ -1320,10 +1322,10 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1320
1322
|
disabled: x,
|
|
1321
1323
|
rounded: j
|
|
1322
1324
|
}) => {
|
|
1323
|
-
const
|
|
1324
|
-
` + t.map((
|
|
1325
|
+
const u = encodeURI("data:text/csv;charset=utf-8," + n.join(",") + `
|
|
1326
|
+
` + t.map((d) => d.join(",")).join(`
|
|
1325
1327
|
`));
|
|
1326
|
-
return /* @__PURE__ */ e.jsx("div", { className: "muncher-csv", children: /* @__PURE__ */ e.jsx(O, { variant: i, size: c, active: o, disabled: x, rounded: j, children: /* @__PURE__ */ e.jsx("a", { href:
|
|
1328
|
+
return /* @__PURE__ */ e.jsx("div", { className: "muncher-csv", children: /* @__PURE__ */ e.jsx(O, { variant: i, size: c, active: o, disabled: x, rounded: j, children: /* @__PURE__ */ e.jsx("a", { href: u, download: r + ".csv", children: /* @__PURE__ */ e.jsx(N, { name: "download", children: a || "Download" }) }) }) });
|
|
1327
1329
|
}, Ne = ({
|
|
1328
1330
|
variant: n = "transparent",
|
|
1329
1331
|
size: t = "small",
|
|
@@ -1334,7 +1336,7 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1334
1336
|
onClick: o,
|
|
1335
1337
|
children: x
|
|
1336
1338
|
}) => {
|
|
1337
|
-
const [j,
|
|
1339
|
+
const [j, u] = A(!1), d = () => !c || c && !j ? i ? /* @__PURE__ */ e.jsx(N, { name: "sort-asc" }) : /* @__PURE__ */ e.jsx(N, { name: "sort-desc" }) : i ? /* @__PURE__ */ e.jsx(N, { name: "sort-desc" }) : /* @__PURE__ */ e.jsx(N, { name: "sort-asc" });
|
|
1338
1340
|
return /* @__PURE__ */ e.jsxs(
|
|
1339
1341
|
O,
|
|
1340
1342
|
{
|
|
@@ -1343,15 +1345,15 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1343
1345
|
title: r,
|
|
1344
1346
|
rounded: a,
|
|
1345
1347
|
onMouseEnter: () => {
|
|
1346
|
-
|
|
1348
|
+
u(!0);
|
|
1347
1349
|
},
|
|
1348
1350
|
onMouseLeave: () => {
|
|
1349
|
-
|
|
1351
|
+
u(!1);
|
|
1350
1352
|
},
|
|
1351
1353
|
onClick: o,
|
|
1352
1354
|
children: [
|
|
1353
1355
|
x,
|
|
1354
|
-
c || j ? /* @__PURE__ */ e.jsx(
|
|
1356
|
+
c || j ? /* @__PURE__ */ e.jsx(d, {}) : ""
|
|
1355
1357
|
]
|
|
1356
1358
|
}
|
|
1357
1359
|
);
|
|
@@ -1448,14 +1450,14 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1448
1450
|
isUploading: o,
|
|
1449
1451
|
handleOnChange: x,
|
|
1450
1452
|
warningMessage: j,
|
|
1451
|
-
successMessage:
|
|
1452
|
-
...
|
|
1453
|
+
successMessage: u,
|
|
1454
|
+
...d
|
|
1453
1455
|
}) => {
|
|
1454
|
-
const
|
|
1456
|
+
const h = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (a ? " muncher-button--active" : ""), p = (f) => {
|
|
1455
1457
|
x && x(f.currentTarget.files[0]);
|
|
1456
1458
|
};
|
|
1457
1459
|
return /* @__PURE__ */ e.jsx("div", { className: "muncher-file-input--div", children: /* @__PURE__ */ e.jsxs("div", { className: "file-input-element", children: [
|
|
1458
|
-
/* @__PURE__ */ e.jsxs("label", { htmlFor: n, className:
|
|
1460
|
+
/* @__PURE__ */ e.jsxs("label", { htmlFor: n, className: h, children: [
|
|
1459
1461
|
/* @__PURE__ */ e.jsx(N, { name: "upload" }),
|
|
1460
1462
|
" ",
|
|
1461
1463
|
t || "Upload CSV",
|
|
@@ -1471,11 +1473,11 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1471
1473
|
required: c,
|
|
1472
1474
|
onChange: p,
|
|
1473
1475
|
accept: "text/csv",
|
|
1474
|
-
...
|
|
1476
|
+
...d
|
|
1475
1477
|
}
|
|
1476
1478
|
),
|
|
1477
1479
|
j && j !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-danger", children: j }) : "",
|
|
1478
|
-
|
|
1480
|
+
u && u !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-success", children: u }) : ""
|
|
1479
1481
|
] }) });
|
|
1480
1482
|
}, ze = ({
|
|
1481
1483
|
name: n,
|
|
@@ -1487,10 +1489,10 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1487
1489
|
setFiles: o,
|
|
1488
1490
|
error: x,
|
|
1489
1491
|
multiple: j = !1,
|
|
1490
|
-
maxFiles:
|
|
1491
|
-
...
|
|
1492
|
+
maxFiles: u,
|
|
1493
|
+
...d
|
|
1492
1494
|
}) => {
|
|
1493
|
-
const [
|
|
1495
|
+
const [h, p] = A(""), [f, b] = A(""), g = u || 3, T = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (a ? " muncher-button--active" : ""), v = (S) => {
|
|
1494
1496
|
if (j) {
|
|
1495
1497
|
let z = Array.from(S.currentTarget.files);
|
|
1496
1498
|
z.length > g && (z = z.slice(0, g), b("Only first " + g + " files included")), o(z), p(z.map((k) => k.name).join(", "));
|
|
@@ -1505,7 +1507,7 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1505
1507
|
t,
|
|
1506
1508
|
c ? /* @__PURE__ */ e.jsx("span", { className: "required", children: " *" }) : ""
|
|
1507
1509
|
] }),
|
|
1508
|
-
/* @__PURE__ */ e.jsx("span", { className: "span-file-name", children:
|
|
1510
|
+
/* @__PURE__ */ e.jsx("span", { className: "span-file-name", children: h }),
|
|
1509
1511
|
/* @__PURE__ */ e.jsx(
|
|
1510
1512
|
"input",
|
|
1511
1513
|
{
|
|
@@ -1516,7 +1518,7 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1516
1518
|
onChange: v,
|
|
1517
1519
|
multiple: j,
|
|
1518
1520
|
accept: "image/*",
|
|
1519
|
-
...
|
|
1521
|
+
...d
|
|
1520
1522
|
}
|
|
1521
1523
|
)
|
|
1522
1524
|
] }),
|
|
@@ -1533,9 +1535,9 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1533
1535
|
onHoverIconClick: o,
|
|
1534
1536
|
type: x = "text",
|
|
1535
1537
|
list: j,
|
|
1536
|
-
onBlur:
|
|
1537
|
-
labelPosition:
|
|
1538
|
-
onKeyDown:
|
|
1538
|
+
onBlur: u,
|
|
1539
|
+
labelPosition: d = "top",
|
|
1540
|
+
onKeyDown: h,
|
|
1539
1541
|
error: p,
|
|
1540
1542
|
focus: f = !1,
|
|
1541
1543
|
placeholder: b,
|
|
@@ -1549,14 +1551,14 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1549
1551
|
}) => {
|
|
1550
1552
|
const H = () => p && p !== "", P = () => {
|
|
1551
1553
|
let C = "muncher-input";
|
|
1552
|
-
return (c || a) && (C += " muncher-input-icon"), H() && (C += " muncher-input-error"),
|
|
1554
|
+
return (c || a) && (C += " muncher-input-icon"), H() && (C += " muncher-input-error"), d === "side" && (C += " muncher-label-side"), C;
|
|
1553
1555
|
}, m = () => t ? /* @__PURE__ */ e.jsx(q, { label: t, required: r, id: n }) : "", M = (C) => {
|
|
1554
|
-
C.key === "Enter" && S && S(),
|
|
1556
|
+
C.key === "Enter" && S && S(), h && h(C);
|
|
1555
1557
|
};
|
|
1556
1558
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
|
|
1557
|
-
|
|
1559
|
+
d !== "side" ? m() : "",
|
|
1558
1560
|
/* @__PURE__ */ e.jsxs("div", { className: "muncher-input-element", children: [
|
|
1559
|
-
|
|
1561
|
+
d === "side" ? m() : "",
|
|
1560
1562
|
c ? /* @__PURE__ */ e.jsx(N, { name: c }) : "",
|
|
1561
1563
|
a ? /* @__PURE__ */ e.jsxs("span", { className: "muncher-icon-hover", children: [
|
|
1562
1564
|
/* @__PURE__ */ e.jsx(N, { name: a, onClick: o }),
|
|
@@ -1579,7 +1581,7 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1579
1581
|
readOnly: i,
|
|
1580
1582
|
list: j,
|
|
1581
1583
|
onKeyDown: M,
|
|
1582
|
-
onBlur:
|
|
1584
|
+
onBlur: u,
|
|
1583
1585
|
step: T,
|
|
1584
1586
|
maxLength: _,
|
|
1585
1587
|
...k
|
|
@@ -1622,9 +1624,9 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1622
1624
|
value: x,
|
|
1623
1625
|
...j
|
|
1624
1626
|
}) => {
|
|
1625
|
-
const
|
|
1626
|
-
let
|
|
1627
|
-
return
|
|
1627
|
+
const u = () => a && a !== "", d = () => {
|
|
1628
|
+
let h = "muncher-input";
|
|
1629
|
+
return u() && (h += " muncher-input-error"), h;
|
|
1628
1630
|
};
|
|
1629
1631
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
|
|
1630
1632
|
r ? /* @__PURE__ */ e.jsx(q, { label: r, required: i, id: n }) : "",
|
|
@@ -1632,7 +1634,7 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1632
1634
|
"select",
|
|
1633
1635
|
{
|
|
1634
1636
|
id: n,
|
|
1635
|
-
className:
|
|
1637
|
+
className: d(),
|
|
1636
1638
|
name: n,
|
|
1637
1639
|
value: x,
|
|
1638
1640
|
onChange: o,
|
|
@@ -1642,12 +1644,12 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1642
1644
|
children: [
|
|
1643
1645
|
i ? /* @__PURE__ */ e.jsx("option", { value: "", children: "-- Select --" }) : "",
|
|
1644
1646
|
t.map(
|
|
1645
|
-
(
|
|
1647
|
+
(h, p) => /* @__PURE__ */ e.jsx("option", { value: h.value, children: h.label }, `select-option-${p}`)
|
|
1646
1648
|
)
|
|
1647
1649
|
]
|
|
1648
1650
|
}
|
|
1649
1651
|
) }),
|
|
1650
|
-
|
|
1652
|
+
u() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(N, { name: "alert", children: a }) }) : ""
|
|
1651
1653
|
] });
|
|
1652
1654
|
}, Oe = ({
|
|
1653
1655
|
name: n,
|
|
@@ -1659,10 +1661,10 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1659
1661
|
focus: o = !1,
|
|
1660
1662
|
placeholder: x,
|
|
1661
1663
|
onChange: j,
|
|
1662
|
-
value:
|
|
1663
|
-
...
|
|
1664
|
+
value: u,
|
|
1665
|
+
...d
|
|
1664
1666
|
}) => {
|
|
1665
|
-
const [
|
|
1667
|
+
const [h, p] = A(u), f = (b) => {
|
|
1666
1668
|
p(b.target.value), j && j(b);
|
|
1667
1669
|
};
|
|
1668
1670
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
|
|
@@ -1676,16 +1678,16 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1676
1678
|
maxLength: a,
|
|
1677
1679
|
name: n,
|
|
1678
1680
|
autoFocus: o,
|
|
1679
|
-
value:
|
|
1681
|
+
value: u,
|
|
1680
1682
|
placeholder: x,
|
|
1681
1683
|
onChange: f,
|
|
1682
1684
|
required: r,
|
|
1683
1685
|
readOnly: i,
|
|
1684
|
-
...
|
|
1686
|
+
...d
|
|
1685
1687
|
}
|
|
1686
1688
|
),
|
|
1687
1689
|
/* @__PURE__ */ e.jsxs("p", { children: [
|
|
1688
|
-
|
|
1690
|
+
h ? a ? a - h.length : 1e3 : a,
|
|
1689
1691
|
" characters left"
|
|
1690
1692
|
] })
|
|
1691
1693
|
] });
|
|
@@ -1699,10 +1701,10 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1699
1701
|
value: o,
|
|
1700
1702
|
label: x,
|
|
1701
1703
|
error: j,
|
|
1702
|
-
required:
|
|
1703
|
-
children:
|
|
1704
|
+
required: u,
|
|
1705
|
+
children: d
|
|
1704
1706
|
}) => {
|
|
1705
|
-
const
|
|
1707
|
+
const h = de(null), p = (g) => {
|
|
1706
1708
|
c(!0), r(g.target.value);
|
|
1707
1709
|
}, f = G(() => {
|
|
1708
1710
|
c(!1);
|
|
@@ -1711,15 +1713,15 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1711
1713
|
}, [f]);
|
|
1712
1714
|
return Q(() => {
|
|
1713
1715
|
const g = (T) => {
|
|
1714
|
-
if (
|
|
1715
|
-
const v =
|
|
1716
|
+
if (h && h !== null) {
|
|
1717
|
+
const v = h.current;
|
|
1716
1718
|
v && !v.contains(T.target) && f();
|
|
1717
1719
|
}
|
|
1718
1720
|
};
|
|
1719
1721
|
return document.addEventListener("keydown", b, !1), document.addEventListener("mousedown", g), () => {
|
|
1720
1722
|
document.removeEventListener("keydown", b, !1);
|
|
1721
1723
|
};
|
|
1722
|
-
}, [b, f]), /* @__PURE__ */ e.jsxs("div", { className: "muncher-input-drop-down", ref:
|
|
1724
|
+
}, [b, f]), /* @__PURE__ */ e.jsxs("div", { className: "muncher-input-drop-down", ref: h, children: [
|
|
1723
1725
|
/* @__PURE__ */ e.jsx(
|
|
1724
1726
|
ke,
|
|
1725
1727
|
{
|
|
@@ -1730,11 +1732,11 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1730
1732
|
readOnly: a,
|
|
1731
1733
|
value: o,
|
|
1732
1734
|
label: x,
|
|
1733
|
-
required:
|
|
1735
|
+
required: u,
|
|
1734
1736
|
error: j
|
|
1735
1737
|
}
|
|
1736
1738
|
),
|
|
1737
|
-
i ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-drop-down--content", children:
|
|
1739
|
+
i ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-drop-down--content", children: d }) : ""
|
|
1738
1740
|
] });
|
|
1739
1741
|
}, Le = ({ children: n }) => /* @__PURE__ */ e.jsx("ul", { className: "muncher-ul", children: n }), Pe = ({ isFeatured: n, bulletIcon: t = "arrow-right", bulletWeight: r = 2, bulletSize: i = "small", bulletColor: c, children: a }) => /* @__PURE__ */ e.jsx("li", { className: n ? "muncher-li featured" : "muncher-li", children: /* @__PURE__ */ e.jsx(
|
|
1740
1742
|
N,
|
|
@@ -1790,7 +1792,7 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1790
1792
|
const i = "muncher-hr" + (n ? " muncher-hr--" + n : "") + (t ? " muncher-hr--" + t : "") + (r ? " muncher-hr--" + r : "");
|
|
1791
1793
|
return /* @__PURE__ */ e.jsx("hr", { className: i });
|
|
1792
1794
|
}, Ue = ({ sliderItems: n, navButtonSize: t = "large", navButtonWeight: r = 2, variant: i, navIcon: c, navButtonPlacement: a = "inside" }) => {
|
|
1793
|
-
const [o, x] = A(0), [j,
|
|
1795
|
+
const [o, x] = A(0), [j, u] = A(0), d = () => n.length > 1 && o > 0 ? /* @__PURE__ */ e.jsx(
|
|
1794
1796
|
xe,
|
|
1795
1797
|
{
|
|
1796
1798
|
direction: "left",
|
|
@@ -1799,10 +1801,10 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1799
1801
|
navIcon: c,
|
|
1800
1802
|
weight: r,
|
|
1801
1803
|
onClick: () => {
|
|
1802
|
-
o === 0 ? (
|
|
1804
|
+
o === 0 ? (u(-(n.length - 1) * 100), x(n.length - 1)) : (u(j + 100), x(o - 1));
|
|
1803
1805
|
}
|
|
1804
1806
|
}
|
|
1805
|
-
) : "",
|
|
1807
|
+
) : "", h = () => n.length > 1 && o < n.length - 1 ? /* @__PURE__ */ e.jsx(
|
|
1806
1808
|
xe,
|
|
1807
1809
|
{
|
|
1808
1810
|
direction: "right",
|
|
@@ -1811,14 +1813,14 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1811
1813
|
navIcon: c,
|
|
1812
1814
|
variant: i,
|
|
1813
1815
|
onClick: () => {
|
|
1814
|
-
o === n.length - 1 ? (x(0),
|
|
1816
|
+
o === n.length - 1 ? (x(0), u(0)) : (u(j - 100), x(o + 1));
|
|
1815
1817
|
}
|
|
1816
1818
|
}
|
|
1817
1819
|
) : "";
|
|
1818
1820
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-item-slider-wrapper--" + a, children: [
|
|
1819
|
-
a === "outside" ?
|
|
1821
|
+
a === "outside" ? d() : "",
|
|
1820
1822
|
/* @__PURE__ */ e.jsxs("div", { className: "muncher-item-slider", children: [
|
|
1821
|
-
a === "inside" ?
|
|
1823
|
+
a === "inside" ? d() : "",
|
|
1822
1824
|
/* @__PURE__ */ e.jsx("div", { className: "slider-container", style: { width: `${100 * n.length}%` }, children: n.map(
|
|
1823
1825
|
(p, f) => /* @__PURE__ */ e.jsx(
|
|
1824
1826
|
"div",
|
|
@@ -1830,9 +1832,9 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1830
1832
|
"slider-item" + f
|
|
1831
1833
|
)
|
|
1832
1834
|
) }),
|
|
1833
|
-
a === "inside" ?
|
|
1835
|
+
a === "inside" ? h() : ""
|
|
1834
1836
|
] }),
|
|
1835
|
-
a === "outside" ?
|
|
1837
|
+
a === "outside" ? h() : ""
|
|
1836
1838
|
] });
|
|
1837
1839
|
}, We = ({
|
|
1838
1840
|
min: n,
|
|
@@ -1846,15 +1848,15 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1846
1848
|
currency: "USD"
|
|
1847
1849
|
}).format(x)
|
|
1848
1850
|
}) => {
|
|
1849
|
-
const x = (
|
|
1850
|
-
const
|
|
1851
|
+
const x = (d) => {
|
|
1852
|
+
const h = +d.target.value, p = h < i - 1 ? h : r;
|
|
1851
1853
|
c(p);
|
|
1852
|
-
}, j = (
|
|
1853
|
-
const
|
|
1854
|
+
}, j = (d) => {
|
|
1855
|
+
const h = +d.target.value, p = h > r + 1 ? h : i;
|
|
1854
1856
|
a(p);
|
|
1855
|
-
},
|
|
1857
|
+
}, u = (d) => o && d ? o(d) : d;
|
|
1856
1858
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-slider", children: [
|
|
1857
|
-
/* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children:
|
|
1859
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children: u(r) + " - " + u(i) }) }),
|
|
1858
1860
|
/* @__PURE__ */ e.jsx(
|
|
1859
1861
|
"input",
|
|
1860
1862
|
{
|
|
@@ -1878,8 +1880,8 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1878
1880
|
}
|
|
1879
1881
|
),
|
|
1880
1882
|
/* @__PURE__ */ e.jsxs("div", { className: "slider-values", children: [
|
|
1881
|
-
/* @__PURE__ */ e.jsx("div", { className: "slider-min", children:
|
|
1882
|
-
/* @__PURE__ */ e.jsx("div", { className: "slider-max", children:
|
|
1883
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-min", children: u(n) }),
|
|
1884
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-max", children: u(t) })
|
|
1883
1885
|
] })
|
|
1884
1886
|
] });
|
|
1885
1887
|
}, Be = ({
|
|
@@ -1966,9 +1968,9 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
1966
1968
|
includeUpload: o,
|
|
1967
1969
|
isUploading: x,
|
|
1968
1970
|
uploadWarningMessage: j,
|
|
1969
|
-
uploadSuccessMessage:
|
|
1970
|
-
excludePagination:
|
|
1971
|
-
footer:
|
|
1971
|
+
uploadSuccessMessage: u,
|
|
1972
|
+
excludePagination: d,
|
|
1973
|
+
footer: h,
|
|
1972
1974
|
children: p
|
|
1973
1975
|
}) => {
|
|
1974
1976
|
const { header: f, rows: b } = p, [g, T] = A(c ?? { index: 0 }), [v, _] = A({ num: 0, size: t }), S = (m) => {
|
|
@@ -2019,7 +2021,7 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
2019
2021
|
`row-col-${M}-${L}`
|
|
2020
2022
|
)
|
|
2021
2023
|
) }, `row-${M}`)),
|
|
2022
|
-
|
|
2024
|
+
h ?? null,
|
|
2023
2025
|
/* @__PURE__ */ e.jsxs("div", { className: "row-footer", children: [
|
|
2024
2026
|
/* @__PURE__ */ e.jsxs("div", { className: "row-footer-buttons", children: [
|
|
2025
2027
|
!a && /* @__PURE__ */ e.jsx(
|
|
@@ -2039,11 +2041,11 @@ const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
|
2039
2041
|
handleOnChange: i,
|
|
2040
2042
|
isUploading: x,
|
|
2041
2043
|
warningMessage: j,
|
|
2042
|
-
successMessage:
|
|
2044
|
+
successMessage: u
|
|
2043
2045
|
}
|
|
2044
2046
|
)
|
|
2045
2047
|
] }),
|
|
2046
|
-
!
|
|
2048
|
+
!d && /* @__PURE__ */ e.jsxs("div", { className: "pagination", children: [
|
|
2047
2049
|
/* @__PURE__ */ e.jsxs("div", { className: "left", children: [
|
|
2048
2050
|
"Rows:",
|
|
2049
2051
|
/* @__PURE__ */ e.jsx(
|