@contentmunch/contentmunch-ui 1.0.37 → 1.0.38
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/Accordion.d.ts +1 -0
- package/lib/accordion/assets/accordion.css +8 -2
- package/lib/index.cjs.js +4 -4
- package/lib/index.es.js +167 -167
- package/lib/index.umd.js +5 -5
- package/package.json +1 -1
package/lib/index.es.js
CHANGED
|
@@ -67,7 +67,7 @@ function ye() {
|
|
|
67
67
|
switch (typeof l.tag == "number" && console.error(
|
|
68
68
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
69
|
), l.$$typeof) {
|
|
70
|
-
case
|
|
70
|
+
case b:
|
|
71
71
|
return "Portal";
|
|
72
72
|
case S:
|
|
73
73
|
return (l.displayName || "Context") + ".Provider";
|
|
@@ -99,8 +99,8 @@ function ye() {
|
|
|
99
99
|
}
|
|
100
100
|
if (y) {
|
|
101
101
|
y = console;
|
|
102
|
-
var
|
|
103
|
-
return
|
|
102
|
+
var w = y.error, E = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
|
|
103
|
+
return w.call(
|
|
104
104
|
y,
|
|
105
105
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
106
|
E
|
|
@@ -133,33 +133,33 @@ function ye() {
|
|
|
133
133
|
return l.key !== void 0;
|
|
134
134
|
}
|
|
135
135
|
function x(l, y) {
|
|
136
|
-
function
|
|
136
|
+
function w() {
|
|
137
137
|
$ || ($ = !0, console.error(
|
|
138
138
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
139
139
|
y
|
|
140
140
|
));
|
|
141
141
|
}
|
|
142
|
-
|
|
143
|
-
get:
|
|
142
|
+
w.isReactWarning = !0, Object.defineProperty(l, "key", {
|
|
143
|
+
get: w,
|
|
144
144
|
configurable: !0
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function j() {
|
|
148
148
|
var l = n(this.type);
|
|
149
149
|
return Y[l] || (Y[l] = !0, console.error(
|
|
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
|
|
154
|
-
return
|
|
153
|
+
function d(l, y, w, E, D, V, ee, se) {
|
|
154
|
+
return w = V.ref, l = {
|
|
155
155
|
$$typeof: f,
|
|
156
156
|
type: l,
|
|
157
157
|
key: y,
|
|
158
158
|
props: V,
|
|
159
159
|
_owner: D
|
|
160
|
-
}, (
|
|
160
|
+
}, (w !== void 0 ? w : null) !== null ? Object.defineProperty(l, "ref", {
|
|
161
161
|
enumerable: !1,
|
|
162
|
-
get:
|
|
162
|
+
get: j
|
|
163
163
|
}) : Object.defineProperty(l, "ref", { enumerable: !1, value: null }), l._store = {}, Object.defineProperty(l._store, "validated", {
|
|
164
164
|
configurable: !1,
|
|
165
165
|
enumerable: !1,
|
|
@@ -182,7 +182,7 @@ function ye() {
|
|
|
182
182
|
value: se
|
|
183
183
|
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function h(l, y, w, E, D, V, ee, se) {
|
|
186
186
|
var R = y.children;
|
|
187
187
|
if (R !== void 0)
|
|
188
188
|
if (E)
|
|
@@ -213,21 +213,21 @@ React keys must be passed directly to JSX without using spread:
|
|
|
213
213
|
R
|
|
214
214
|
), re[R + E] = !0);
|
|
215
215
|
}
|
|
216
|
-
if (R = null,
|
|
217
|
-
|
|
216
|
+
if (R = null, w !== void 0 && (r(w), R = "" + w), o(y) && (r(y.key), R = "" + y.key), "key" in y) {
|
|
217
|
+
w = {};
|
|
218
218
|
for (var ne in y)
|
|
219
|
-
ne !== "key" && (
|
|
220
|
-
} else
|
|
219
|
+
ne !== "key" && (w[ne] = y[ne]);
|
|
220
|
+
} else w = y;
|
|
221
221
|
return R && x(
|
|
222
|
-
|
|
222
|
+
w,
|
|
223
223
|
typeof l == "function" ? l.displayName || l.name || "Unknown" : l
|
|
224
|
-
),
|
|
224
|
+
), d(
|
|
225
225
|
l,
|
|
226
226
|
R,
|
|
227
227
|
V,
|
|
228
228
|
D,
|
|
229
229
|
c(),
|
|
230
|
-
|
|
230
|
+
w,
|
|
231
231
|
ee,
|
|
232
232
|
se
|
|
233
233
|
);
|
|
@@ -235,7 +235,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
235
235
|
function u(l) {
|
|
236
236
|
typeof l == "object" && l !== null && l.$$typeof === f && l._store && (l._store.validated = 1);
|
|
237
237
|
}
|
|
238
|
-
var p = oe, f = Symbol.for("react.transitional.element"),
|
|
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() {
|
|
239
239
|
return null;
|
|
240
240
|
};
|
|
241
241
|
p = {
|
|
@@ -247,24 +247,24 @@ React keys must be passed directly to JSX without using spread:
|
|
|
247
247
|
p,
|
|
248
248
|
a
|
|
249
249
|
)(), W = I(i(a)), re = {};
|
|
250
|
-
J.Fragment = g, J.jsx = function(l, y,
|
|
250
|
+
J.Fragment = g, J.jsx = function(l, y, w, E, D) {
|
|
251
251
|
var V = 1e4 > L.recentlyCreatedOwnerStacks++;
|
|
252
|
-
return
|
|
252
|
+
return h(
|
|
253
253
|
l,
|
|
254
254
|
y,
|
|
255
|
-
|
|
255
|
+
w,
|
|
256
256
|
!1,
|
|
257
257
|
E,
|
|
258
258
|
D,
|
|
259
259
|
V ? Error("react-stack-top-frame") : U,
|
|
260
260
|
V ? I(i(l)) : W
|
|
261
261
|
);
|
|
262
|
-
}, J.jsxs = function(l, y,
|
|
262
|
+
}, J.jsxs = function(l, y, w, E, D) {
|
|
263
263
|
var V = 1e4 > L.recentlyCreatedOwnerStacks++;
|
|
264
|
-
return
|
|
264
|
+
return h(
|
|
265
265
|
l,
|
|
266
266
|
y,
|
|
267
|
-
|
|
267
|
+
w,
|
|
268
268
|
!0,
|
|
269
269
|
E,
|
|
270
270
|
D,
|
|
@@ -279,29 +279,29 @@ function pe() {
|
|
|
279
279
|
return ie || (ie = 1, process.env.NODE_ENV === "production" ? K.exports = ue() : K.exports = ye()), K.exports;
|
|
280
280
|
}
|
|
281
281
|
var e = pe();
|
|
282
|
-
const Re = ({ variant: n,
|
|
283
|
-
const { folds:
|
|
284
|
-
const h = d.which.toString(),
|
|
285
|
-
if (h.match(/38|40/) ||
|
|
286
|
-
const
|
|
287
|
-
|
|
282
|
+
const Re = ({ variant: n, collapsed: t, children: r }) => {
|
|
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(), u = d.ctrlKey && h.match(/33|34/);
|
|
285
|
+
if (h.match(/38|40/) || u) {
|
|
286
|
+
const p = h.match(/34|40/) ? 1 : -1, f = i.length, b = (c + f + p) % f;
|
|
287
|
+
a(b);
|
|
288
288
|
} else
|
|
289
|
-
h === "36" &&
|
|
289
|
+
h === "36" && a(0), h === "35" && a(i.length - 1);
|
|
290
290
|
d.preventDefault();
|
|
291
291
|
};
|
|
292
|
-
return /* @__PURE__ */ e.jsx("div", { className: "muncher-accordion", children:
|
|
292
|
+
return /* @__PURE__ */ e.jsx("div", { className: "muncher-accordion", children: i.map(
|
|
293
293
|
(d, h) => /* @__PURE__ */ e.jsxs(
|
|
294
294
|
"div",
|
|
295
295
|
{
|
|
296
|
-
className:
|
|
297
|
-
"aria-expanded":
|
|
296
|
+
className: o(h),
|
|
297
|
+
"aria-expanded": c === h,
|
|
298
298
|
children: [
|
|
299
299
|
/* @__PURE__ */ e.jsx(
|
|
300
300
|
"button",
|
|
301
301
|
{
|
|
302
|
-
className:
|
|
303
|
-
onKeyDown:
|
|
304
|
-
onClick: () =>
|
|
302
|
+
className: x(h),
|
|
303
|
+
onKeyDown: j,
|
|
304
|
+
onClick: () => a(h),
|
|
305
305
|
children: /* @__PURE__ */ e.jsx("span", { children: d.heading })
|
|
306
306
|
}
|
|
307
307
|
),
|
|
@@ -1069,14 +1069,14 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1069
1069
|
/* @__PURE__ */ e.jsx("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" }),
|
|
1070
1070
|
/* @__PURE__ */ e.jsx("text", { x: "6", y: "14", fontSize: "6", fontFamily: "'Lucida Grande', sans-serif", children: "360" })
|
|
1071
1071
|
] })
|
|
1072
|
-
},
|
|
1073
|
-
const
|
|
1072
|
+
}, N = ({ color: n, name: t, size: r = "small", weight: i = 2, onClick: c, iconString: a, orientation: o, children: x }) => {
|
|
1073
|
+
const j = r ? "muncher-icon--" + r : "muncher-icon--small";
|
|
1074
1074
|
return /* @__PURE__ */ e.jsxs("span", { className: "muncher-icon", children: [
|
|
1075
1075
|
x && o && o === "right" ? /* @__PURE__ */ e.jsx("span", { className: "content-left", children: x }) : "",
|
|
1076
1076
|
/* @__PURE__ */ e.jsx(
|
|
1077
1077
|
"svg",
|
|
1078
1078
|
{
|
|
1079
|
-
className:
|
|
1079
|
+
className: j,
|
|
1080
1080
|
stroke: n || "currentColor",
|
|
1081
1081
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1082
1082
|
viewBox: "0 0 24 24",
|
|
@@ -1103,7 +1103,7 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1103
1103
|
onClick: i,
|
|
1104
1104
|
...c,
|
|
1105
1105
|
children: [
|
|
1106
|
-
/* @__PURE__ */ e.jsx(
|
|
1106
|
+
/* @__PURE__ */ e.jsx(N, { name: t }),
|
|
1107
1107
|
r === "" ? "" : /* @__PURE__ */ e.jsx(fe, { variant: n, children: r })
|
|
1108
1108
|
]
|
|
1109
1109
|
}
|
|
@@ -1116,9 +1116,9 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1116
1116
|
disabled: a,
|
|
1117
1117
|
rounded: o,
|
|
1118
1118
|
onClick: x,
|
|
1119
|
-
onMouseDown:
|
|
1120
|
-
onMouseEnter:
|
|
1121
|
-
onMouseLeave:
|
|
1119
|
+
onMouseDown: j,
|
|
1120
|
+
onMouseEnter: d,
|
|
1121
|
+
onMouseLeave: h,
|
|
1122
1122
|
children: u,
|
|
1123
1123
|
...p
|
|
1124
1124
|
}) => {
|
|
@@ -1131,9 +1131,9 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1131
1131
|
disabled: !!a,
|
|
1132
1132
|
title: i,
|
|
1133
1133
|
onClick: x,
|
|
1134
|
-
onMouseDown:
|
|
1135
|
-
onMouseEnter:
|
|
1136
|
-
onMouseLeave:
|
|
1134
|
+
onMouseDown: j,
|
|
1135
|
+
onMouseEnter: d,
|
|
1136
|
+
onMouseLeave: h,
|
|
1137
1137
|
...p,
|
|
1138
1138
|
children: u
|
|
1139
1139
|
}
|
|
@@ -1147,20 +1147,20 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1147
1147
|
element: a,
|
|
1148
1148
|
onMouseDown: o,
|
|
1149
1149
|
rounded: x,
|
|
1150
|
-
drop:
|
|
1151
|
-
onClick:
|
|
1152
|
-
onClose:
|
|
1150
|
+
drop: j,
|
|
1151
|
+
onClick: d,
|
|
1152
|
+
onClose: h,
|
|
1153
1153
|
showContent: u,
|
|
1154
1154
|
setShowContent: p,
|
|
1155
1155
|
withDropIcon: f,
|
|
1156
|
-
children:
|
|
1156
|
+
children: b,
|
|
1157
1157
|
...g
|
|
1158
1158
|
}) => {
|
|
1159
1159
|
const T = de(null), v = (k) => {
|
|
1160
|
-
k.preventDefault(),
|
|
1160
|
+
k.preventDefault(), d && d(k), p && p(!0);
|
|
1161
1161
|
}, _ = G(() => {
|
|
1162
|
-
p(!1),
|
|
1163
|
-
}, [
|
|
1162
|
+
p(!1), h && h();
|
|
1163
|
+
}, [h, p]), S = G((k) => {
|
|
1164
1164
|
k.keyCode === 27 && _();
|
|
1165
1165
|
}, [_]);
|
|
1166
1166
|
Q(() => {
|
|
@@ -1182,7 +1182,7 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1182
1182
|
if (m > 40 || m < 60) return "muncher-dropdown--content drop-middle";
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
1185
|
-
switch (
|
|
1185
|
+
switch (j) {
|
|
1186
1186
|
case "left":
|
|
1187
1187
|
return "muncher-dropdown--content drop-left";
|
|
1188
1188
|
case "middle":
|
|
@@ -1215,7 +1215,7 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1215
1215
|
]
|
|
1216
1216
|
}
|
|
1217
1217
|
),
|
|
1218
|
-
u ? /* @__PURE__ */ e.jsx("div", { className: z(), children:
|
|
1218
|
+
u ? /* @__PURE__ */ e.jsx("div", { className: z(), children: b }) : ""
|
|
1219
1219
|
] });
|
|
1220
1220
|
}, Ae = ({
|
|
1221
1221
|
title: n,
|
|
@@ -1247,8 +1247,8 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1247
1247
|
variant: t = "secondary",
|
|
1248
1248
|
size: r = "small"
|
|
1249
1249
|
}) => {
|
|
1250
|
-
const [i, c] = A(), [a, o] = A("copy"), [x,
|
|
1251
|
-
ge(n), c("green"), o("check"),
|
|
1250
|
+
const [i, c] = A(), [a, o] = A("copy"), [x, j] = A("copy link"), d = () => {
|
|
1251
|
+
ge(n), c("green"), o("check"), j("copied!"), setTimeout(function() {
|
|
1252
1252
|
c(""), o("copy");
|
|
1253
1253
|
}, 2e3);
|
|
1254
1254
|
};
|
|
@@ -1258,8 +1258,8 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1258
1258
|
size: r,
|
|
1259
1259
|
variant: t,
|
|
1260
1260
|
title: x,
|
|
1261
|
-
onClick:
|
|
1262
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1261
|
+
onClick: d,
|
|
1262
|
+
children: /* @__PURE__ */ e.jsx(N, { name: a, color: i })
|
|
1263
1263
|
}
|
|
1264
1264
|
);
|
|
1265
1265
|
}, _e = ({
|
|
@@ -1276,7 +1276,7 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1276
1276
|
setShowContent: c,
|
|
1277
1277
|
variant: n,
|
|
1278
1278
|
size: t,
|
|
1279
|
-
element: /* @__PURE__ */ e.jsx(
|
|
1279
|
+
element: /* @__PURE__ */ e.jsx(N, { name: "share", orientation: "right", children: "Share" }),
|
|
1280
1280
|
children: [
|
|
1281
1281
|
/* @__PURE__ */ e.jsx(O, { size: "small", variant: n, children: /* @__PURE__ */ e.jsx(
|
|
1282
1282
|
"a",
|
|
@@ -1284,7 +1284,7 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1284
1284
|
href: "https://twitter.com/share?url=" + window.location.href + "&text=" + r,
|
|
1285
1285
|
target: "_blank",
|
|
1286
1286
|
title: "Share link to Twitter",
|
|
1287
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1287
|
+
children: /* @__PURE__ */ e.jsx(N, { name: "twitter" })
|
|
1288
1288
|
}
|
|
1289
1289
|
) }),
|
|
1290
1290
|
/* @__PURE__ */ e.jsx(O, { size: "small", variant: n, children: /* @__PURE__ */ e.jsx(
|
|
@@ -1293,7 +1293,7 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1293
1293
|
href: "https://www.facebook.com/sharer/sharer.php?u=" + window.location.href,
|
|
1294
1294
|
target: "_blank",
|
|
1295
1295
|
title: "Share link to Facebook",
|
|
1296
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1296
|
+
children: /* @__PURE__ */ e.jsx(N, { name: "facebook" })
|
|
1297
1297
|
}
|
|
1298
1298
|
) }),
|
|
1299
1299
|
/* @__PURE__ */ e.jsx(O, { size: "small", variant: n, children: /* @__PURE__ */ e.jsx(
|
|
@@ -1302,7 +1302,7 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1302
1302
|
href: "mailto:?subject=" + r + "&body=" + window.location.href,
|
|
1303
1303
|
target: "_blank",
|
|
1304
1304
|
title: "share link by Email",
|
|
1305
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1305
|
+
children: /* @__PURE__ */ e.jsx(N, { name: "mail" })
|
|
1306
1306
|
}
|
|
1307
1307
|
) }),
|
|
1308
1308
|
/* @__PURE__ */ e.jsx(be, { text: window.location.href })
|
|
@@ -1318,12 +1318,12 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1318
1318
|
title: a,
|
|
1319
1319
|
active: o,
|
|
1320
1320
|
disabled: x,
|
|
1321
|
-
rounded:
|
|
1321
|
+
rounded: j
|
|
1322
1322
|
}) => {
|
|
1323
|
-
const
|
|
1324
|
-
` + t.map((
|
|
1323
|
+
const d = encodeURI("data:text/csv;charset=utf-8," + n.join(",") + `
|
|
1324
|
+
` + t.map((h) => h.join(",")).join(`
|
|
1325
1325
|
`));
|
|
1326
|
-
return /* @__PURE__ */ e.jsx("div", { className: "muncher-csv", children: /* @__PURE__ */ e.jsx(O, { variant: i, size: c, active: o, disabled: x, rounded:
|
|
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: d, download: r + ".csv", children: /* @__PURE__ */ e.jsx(N, { name: "download", children: a || "Download" }) }) }) });
|
|
1327
1327
|
}, Ne = ({
|
|
1328
1328
|
variant: n = "transparent",
|
|
1329
1329
|
size: t = "small",
|
|
@@ -1334,7 +1334,7 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1334
1334
|
onClick: o,
|
|
1335
1335
|
children: x
|
|
1336
1336
|
}) => {
|
|
1337
|
-
const [
|
|
1337
|
+
const [j, d] = A(!1), h = () => !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
1338
|
return /* @__PURE__ */ e.jsxs(
|
|
1339
1339
|
O,
|
|
1340
1340
|
{
|
|
@@ -1343,15 +1343,15 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1343
1343
|
title: r,
|
|
1344
1344
|
rounded: a,
|
|
1345
1345
|
onMouseEnter: () => {
|
|
1346
|
-
|
|
1346
|
+
d(!0);
|
|
1347
1347
|
},
|
|
1348
1348
|
onMouseLeave: () => {
|
|
1349
|
-
|
|
1349
|
+
d(!1);
|
|
1350
1350
|
},
|
|
1351
1351
|
onClick: o,
|
|
1352
1352
|
children: [
|
|
1353
1353
|
x,
|
|
1354
|
-
c ||
|
|
1354
|
+
c || j ? /* @__PURE__ */ e.jsx(h, {}) : ""
|
|
1355
1355
|
]
|
|
1356
1356
|
}
|
|
1357
1357
|
);
|
|
@@ -1388,7 +1388,7 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1388
1388
|
size: "small",
|
|
1389
1389
|
variant: c,
|
|
1390
1390
|
title: n === "left" ? "Navigate Left" : "Navigate Right",
|
|
1391
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1391
|
+
children: /* @__PURE__ */ e.jsx(N, { name: x(), size: t, weight: r })
|
|
1392
1392
|
}
|
|
1393
1393
|
)
|
|
1394
1394
|
}
|
|
@@ -1412,8 +1412,8 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1412
1412
|
type: "checkbox",
|
|
1413
1413
|
id: n,
|
|
1414
1414
|
name: n,
|
|
1415
|
-
onChange: (
|
|
1416
|
-
x(
|
|
1415
|
+
onChange: (j) => {
|
|
1416
|
+
x(j.target.checked), r && r();
|
|
1417
1417
|
},
|
|
1418
1418
|
checked: o,
|
|
1419
1419
|
required: t,
|
|
@@ -1426,8 +1426,8 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1426
1426
|
label: c,
|
|
1427
1427
|
required: t,
|
|
1428
1428
|
id: n,
|
|
1429
|
-
onClick: (
|
|
1430
|
-
|
|
1429
|
+
onClick: (j) => {
|
|
1430
|
+
j.preventDefault(), x(!o), r && r();
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
1433
|
) : ""
|
|
@@ -1447,16 +1447,16 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1447
1447
|
active: a,
|
|
1448
1448
|
isUploading: o,
|
|
1449
1449
|
handleOnChange: x,
|
|
1450
|
-
warningMessage:
|
|
1451
|
-
successMessage:
|
|
1452
|
-
...
|
|
1450
|
+
warningMessage: j,
|
|
1451
|
+
successMessage: d,
|
|
1452
|
+
...h
|
|
1453
1453
|
}) => {
|
|
1454
1454
|
const u = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (a ? " muncher-button--active" : ""), p = (f) => {
|
|
1455
1455
|
x && x(f.currentTarget.files[0]);
|
|
1456
1456
|
};
|
|
1457
1457
|
return /* @__PURE__ */ e.jsx("div", { className: "muncher-file-input--div", children: /* @__PURE__ */ e.jsxs("div", { className: "file-input-element", children: [
|
|
1458
1458
|
/* @__PURE__ */ e.jsxs("label", { htmlFor: n, className: u, children: [
|
|
1459
|
-
/* @__PURE__ */ e.jsx(
|
|
1459
|
+
/* @__PURE__ */ e.jsx(N, { name: "upload" }),
|
|
1460
1460
|
" ",
|
|
1461
1461
|
t || "Upload CSV",
|
|
1462
1462
|
c ? /* @__PURE__ */ e.jsx("span", { className: "required", children: " *" }) : "",
|
|
@@ -1471,11 +1471,11 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1471
1471
|
required: c,
|
|
1472
1472
|
onChange: p,
|
|
1473
1473
|
accept: "text/csv",
|
|
1474
|
-
...
|
|
1474
|
+
...h
|
|
1475
1475
|
}
|
|
1476
1476
|
),
|
|
1477
|
-
|
|
1478
|
-
|
|
1477
|
+
j && j !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-danger", children: j }) : "",
|
|
1478
|
+
d && d !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-success", children: d }) : ""
|
|
1479
1479
|
] }) });
|
|
1480
1480
|
}, ze = ({
|
|
1481
1481
|
name: n,
|
|
@@ -1486,21 +1486,21 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1486
1486
|
active: a,
|
|
1487
1487
|
setFiles: o,
|
|
1488
1488
|
error: x,
|
|
1489
|
-
multiple:
|
|
1490
|
-
maxFiles:
|
|
1491
|
-
...
|
|
1489
|
+
multiple: j = !1,
|
|
1490
|
+
maxFiles: d,
|
|
1491
|
+
...h
|
|
1492
1492
|
}) => {
|
|
1493
|
-
const [u, p] = A(""), [f,
|
|
1494
|
-
if (
|
|
1493
|
+
const [u, p] = A(""), [f, b] = A(""), g = d || 3, T = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (a ? " muncher-button--active" : ""), v = (S) => {
|
|
1494
|
+
if (j) {
|
|
1495
1495
|
let z = Array.from(S.currentTarget.files);
|
|
1496
|
-
z.length > g && (z = z.slice(0, g),
|
|
1496
|
+
z.length > g && (z = z.slice(0, g), b("Only first " + g + " files included")), o(z), p(z.map((k) => k.name).join(", "));
|
|
1497
1497
|
} else
|
|
1498
1498
|
o(Array.from(S.currentTarget.files[0])), p(S.currentTarget.files[0].name);
|
|
1499
1499
|
}, _ = () => x && x !== "";
|
|
1500
1500
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-file-input--div", children: [
|
|
1501
1501
|
/* @__PURE__ */ e.jsxs("div", { className: "file-input-element", children: [
|
|
1502
1502
|
/* @__PURE__ */ e.jsxs("label", { htmlFor: n, className: T, children: [
|
|
1503
|
-
/* @__PURE__ */ e.jsx(
|
|
1503
|
+
/* @__PURE__ */ e.jsx(N, { name: "image" }),
|
|
1504
1504
|
" ",
|
|
1505
1505
|
t,
|
|
1506
1506
|
c ? /* @__PURE__ */ e.jsx("span", { className: "required", children: " *" }) : ""
|
|
@@ -1514,14 +1514,14 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1514
1514
|
className: "muncher-file-input",
|
|
1515
1515
|
name: n,
|
|
1516
1516
|
onChange: v,
|
|
1517
|
-
multiple:
|
|
1517
|
+
multiple: j,
|
|
1518
1518
|
accept: "image/*",
|
|
1519
|
-
...
|
|
1519
|
+
...h
|
|
1520
1520
|
}
|
|
1521
1521
|
)
|
|
1522
1522
|
] }),
|
|
1523
1523
|
f !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-danger", children: f }) : "",
|
|
1524
|
-
_() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(
|
|
1524
|
+
_() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(N, { name: "alert", children: x }) }) : ""
|
|
1525
1525
|
] });
|
|
1526
1526
|
}, ke = ({
|
|
1527
1527
|
name: n,
|
|
@@ -1532,13 +1532,13 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1532
1532
|
hoverIcon: a,
|
|
1533
1533
|
onHoverIconClick: o,
|
|
1534
1534
|
type: x = "text",
|
|
1535
|
-
list:
|
|
1536
|
-
onBlur:
|
|
1537
|
-
labelPosition:
|
|
1535
|
+
list: j,
|
|
1536
|
+
onBlur: d,
|
|
1537
|
+
labelPosition: h = "top",
|
|
1538
1538
|
onKeyDown: u,
|
|
1539
1539
|
error: p,
|
|
1540
1540
|
focus: f = !1,
|
|
1541
|
-
placeholder:
|
|
1541
|
+
placeholder: b,
|
|
1542
1542
|
onChange: g,
|
|
1543
1543
|
step: T,
|
|
1544
1544
|
value: v,
|
|
@@ -1549,17 +1549,17 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1549
1549
|
}) => {
|
|
1550
1550
|
const H = () => p && p !== "", P = () => {
|
|
1551
1551
|
let C = "muncher-input";
|
|
1552
|
-
return (c || a) && (C += " muncher-input-icon"), H() && (C += " muncher-input-error"),
|
|
1552
|
+
return (c || a) && (C += " muncher-input-icon"), H() && (C += " muncher-input-error"), h === "side" && (C += " muncher-label-side"), C;
|
|
1553
1553
|
}, m = () => t ? /* @__PURE__ */ e.jsx(q, { label: t, required: r, id: n }) : "", M = (C) => {
|
|
1554
1554
|
C.key === "Enter" && S && S(), u && u(C);
|
|
1555
1555
|
};
|
|
1556
1556
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
|
|
1557
|
-
|
|
1557
|
+
h !== "side" ? m() : "",
|
|
1558
1558
|
/* @__PURE__ */ e.jsxs("div", { className: "muncher-input-element", children: [
|
|
1559
|
-
|
|
1560
|
-
c ? /* @__PURE__ */ e.jsx(
|
|
1559
|
+
h === "side" ? m() : "",
|
|
1560
|
+
c ? /* @__PURE__ */ e.jsx(N, { name: c }) : "",
|
|
1561
1561
|
a ? /* @__PURE__ */ e.jsxs("span", { className: "muncher-icon-hover", children: [
|
|
1562
|
-
/* @__PURE__ */ e.jsx(
|
|
1562
|
+
/* @__PURE__ */ e.jsx(N, { name: a, onClick: o }),
|
|
1563
1563
|
" "
|
|
1564
1564
|
] }) : "",
|
|
1565
1565
|
/* @__PURE__ */ e.jsxs("div", { className: "muncher-input-wrapper", children: [
|
|
@@ -1573,13 +1573,13 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1573
1573
|
value: v,
|
|
1574
1574
|
type: x || "text",
|
|
1575
1575
|
autoComplete: "off",
|
|
1576
|
-
placeholder:
|
|
1576
|
+
placeholder: b,
|
|
1577
1577
|
onChange: g,
|
|
1578
1578
|
required: r,
|
|
1579
1579
|
readOnly: i,
|
|
1580
|
-
list:
|
|
1580
|
+
list: j,
|
|
1581
1581
|
onKeyDown: M,
|
|
1582
|
-
onBlur:
|
|
1582
|
+
onBlur: d,
|
|
1583
1583
|
step: T,
|
|
1584
1584
|
maxLength: _,
|
|
1585
1585
|
...k
|
|
@@ -1588,7 +1588,7 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1588
1588
|
z ? /* @__PURE__ */ e.jsx(he, { size: "tiny" }) : ""
|
|
1589
1589
|
] })
|
|
1590
1590
|
] }),
|
|
1591
|
-
H() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(
|
|
1591
|
+
H() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(N, { name: "alert", children: p }) }) : ""
|
|
1592
1592
|
] });
|
|
1593
1593
|
}, He = ({ name: n, required: t = !1, onChange: r, checked: i = !1, label: c, ...a }) => /* @__PURE__ */ e.jsx("div", { className: "muncher-input--div", children: /* @__PURE__ */ e.jsxs("div", { className: "muncher-radio", children: [
|
|
1594
1594
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1620,11 +1620,11 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1620
1620
|
error: a,
|
|
1621
1621
|
onChange: o,
|
|
1622
1622
|
value: x,
|
|
1623
|
-
...
|
|
1623
|
+
...j
|
|
1624
1624
|
}) => {
|
|
1625
|
-
const
|
|
1625
|
+
const d = () => a && a !== "", h = () => {
|
|
1626
1626
|
let u = "muncher-input";
|
|
1627
|
-
return
|
|
1627
|
+
return d() && (u += " muncher-input-error"), u;
|
|
1628
1628
|
};
|
|
1629
1629
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
|
|
1630
1630
|
r ? /* @__PURE__ */ e.jsx(q, { label: r, required: i, id: n }) : "",
|
|
@@ -1632,13 +1632,13 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1632
1632
|
"select",
|
|
1633
1633
|
{
|
|
1634
1634
|
id: n,
|
|
1635
|
-
className:
|
|
1635
|
+
className: h(),
|
|
1636
1636
|
name: n,
|
|
1637
1637
|
value: x,
|
|
1638
1638
|
onChange: o,
|
|
1639
1639
|
required: i,
|
|
1640
1640
|
multiple: c,
|
|
1641
|
-
...
|
|
1641
|
+
...j,
|
|
1642
1642
|
children: [
|
|
1643
1643
|
i ? /* @__PURE__ */ e.jsx("option", { value: "", children: "-- Select --" }) : "",
|
|
1644
1644
|
t.map(
|
|
@@ -1647,7 +1647,7 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1647
1647
|
]
|
|
1648
1648
|
}
|
|
1649
1649
|
) }),
|
|
1650
|
-
|
|
1650
|
+
d() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(N, { name: "alert", children: a }) }) : ""
|
|
1651
1651
|
] });
|
|
1652
1652
|
}, Oe = ({
|
|
1653
1653
|
name: n,
|
|
@@ -1658,12 +1658,12 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1658
1658
|
maxLength: a = 1e3,
|
|
1659
1659
|
focus: o = !1,
|
|
1660
1660
|
placeholder: x,
|
|
1661
|
-
onChange:
|
|
1662
|
-
value:
|
|
1663
|
-
...
|
|
1661
|
+
onChange: j,
|
|
1662
|
+
value: d,
|
|
1663
|
+
...h
|
|
1664
1664
|
}) => {
|
|
1665
|
-
const [u, p] = A(
|
|
1666
|
-
p(
|
|
1665
|
+
const [u, p] = A(d), f = (b) => {
|
|
1666
|
+
p(b.target.value), j && j(b);
|
|
1667
1667
|
};
|
|
1668
1668
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
|
|
1669
1669
|
t ? /* @__PURE__ */ e.jsx(q, { label: t, required: r, id: n }) : "",
|
|
@@ -1676,12 +1676,12 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1676
1676
|
maxLength: a,
|
|
1677
1677
|
name: n,
|
|
1678
1678
|
autoFocus: o,
|
|
1679
|
-
value:
|
|
1679
|
+
value: d,
|
|
1680
1680
|
placeholder: x,
|
|
1681
1681
|
onChange: f,
|
|
1682
1682
|
required: r,
|
|
1683
1683
|
readOnly: i,
|
|
1684
|
-
...
|
|
1684
|
+
...h
|
|
1685
1685
|
}
|
|
1686
1686
|
),
|
|
1687
1687
|
/* @__PURE__ */ e.jsxs("p", { children: [
|
|
@@ -1698,15 +1698,15 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1698
1698
|
readOnly: a,
|
|
1699
1699
|
value: o,
|
|
1700
1700
|
label: x,
|
|
1701
|
-
error:
|
|
1702
|
-
required:
|
|
1703
|
-
children:
|
|
1701
|
+
error: j,
|
|
1702
|
+
required: d,
|
|
1703
|
+
children: h
|
|
1704
1704
|
}) => {
|
|
1705
1705
|
const u = de(null), p = (g) => {
|
|
1706
1706
|
c(!0), r(g.target.value);
|
|
1707
1707
|
}, f = G(() => {
|
|
1708
1708
|
c(!1);
|
|
1709
|
-
}, [c]),
|
|
1709
|
+
}, [c]), b = G((g) => {
|
|
1710
1710
|
g.keyCode === 27 && f();
|
|
1711
1711
|
}, [f]);
|
|
1712
1712
|
return Q(() => {
|
|
@@ -1716,10 +1716,10 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1716
1716
|
v && !v.contains(T.target) && f();
|
|
1717
1717
|
}
|
|
1718
1718
|
};
|
|
1719
|
-
return document.addEventListener("keydown",
|
|
1720
|
-
document.removeEventListener("keydown",
|
|
1719
|
+
return document.addEventListener("keydown", b, !1), document.addEventListener("mousedown", g), () => {
|
|
1720
|
+
document.removeEventListener("keydown", b, !1);
|
|
1721
1721
|
};
|
|
1722
|
-
}, [
|
|
1722
|
+
}, [b, f]), /* @__PURE__ */ e.jsxs("div", { className: "muncher-input-drop-down", ref: u, children: [
|
|
1723
1723
|
/* @__PURE__ */ e.jsx(
|
|
1724
1724
|
ke,
|
|
1725
1725
|
{
|
|
@@ -1730,14 +1730,14 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1730
1730
|
readOnly: a,
|
|
1731
1731
|
value: o,
|
|
1732
1732
|
label: x,
|
|
1733
|
-
required:
|
|
1734
|
-
error:
|
|
1733
|
+
required: d,
|
|
1734
|
+
error: j
|
|
1735
1735
|
}
|
|
1736
1736
|
),
|
|
1737
|
-
i ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-drop-down--content", children:
|
|
1737
|
+
i ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-drop-down--content", children: h }) : ""
|
|
1738
1738
|
] });
|
|
1739
1739
|
}, 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
|
-
|
|
1740
|
+
N,
|
|
1741
1741
|
{
|
|
1742
1742
|
name: t,
|
|
1743
1743
|
weight: r,
|
|
@@ -1772,7 +1772,7 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1772
1772
|
const i = () => n ? "muncher-paper muncher-paper-hover" : "muncher-paper";
|
|
1773
1773
|
return /* @__PURE__ */ e.jsx("section", { className: i(), onClick: t, children: r });
|
|
1774
1774
|
}, Ie = ({ pillCloseHandler: n, children: t, ...r }) => /* @__PURE__ */ e.jsxs("div", { className: "muncher-pill", ...r, children: [
|
|
1775
|
-
/* @__PURE__ */ e.jsx("div", { className: "close", onClick: n, children: /* @__PURE__ */ e.jsx(
|
|
1775
|
+
/* @__PURE__ */ e.jsx("div", { className: "close", onClick: n, children: /* @__PURE__ */ e.jsx(N, { name: "close" }) }),
|
|
1776
1776
|
/* @__PURE__ */ e.jsxs("div", { className: "content", children: [
|
|
1777
1777
|
" ",
|
|
1778
1778
|
t
|
|
@@ -1790,7 +1790,7 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1790
1790
|
const i = "muncher-hr" + (n ? " muncher-hr--" + n : "") + (t ? " muncher-hr--" + t : "") + (r ? " muncher-hr--" + r : "");
|
|
1791
1791
|
return /* @__PURE__ */ e.jsx("hr", { className: i });
|
|
1792
1792
|
}, Ue = ({ sliderItems: n, navButtonSize: t = "large", navButtonWeight: r = 2, variant: i, navIcon: c, navButtonPlacement: a = "inside" }) => {
|
|
1793
|
-
const [o, x] = A(0), [
|
|
1793
|
+
const [o, x] = A(0), [j, d] = A(0), h = () => n.length > 1 && o > 0 ? /* @__PURE__ */ e.jsx(
|
|
1794
1794
|
xe,
|
|
1795
1795
|
{
|
|
1796
1796
|
direction: "left",
|
|
@@ -1799,7 +1799,7 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1799
1799
|
navIcon: c,
|
|
1800
1800
|
weight: r,
|
|
1801
1801
|
onClick: () => {
|
|
1802
|
-
o === 0 ? (
|
|
1802
|
+
o === 0 ? (d(-(n.length - 1) * 100), x(n.length - 1)) : (d(j + 100), x(o - 1));
|
|
1803
1803
|
}
|
|
1804
1804
|
}
|
|
1805
1805
|
) : "", u = () => n.length > 1 && o < n.length - 1 ? /* @__PURE__ */ e.jsx(
|
|
@@ -1811,20 +1811,20 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1811
1811
|
navIcon: c,
|
|
1812
1812
|
variant: i,
|
|
1813
1813
|
onClick: () => {
|
|
1814
|
-
o === n.length - 1 ? (x(0),
|
|
1814
|
+
o === n.length - 1 ? (x(0), d(0)) : (d(j - 100), x(o + 1));
|
|
1815
1815
|
}
|
|
1816
1816
|
}
|
|
1817
1817
|
) : "";
|
|
1818
1818
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-item-slider-wrapper--" + a, children: [
|
|
1819
|
-
a === "outside" ?
|
|
1819
|
+
a === "outside" ? h() : "",
|
|
1820
1820
|
/* @__PURE__ */ e.jsxs("div", { className: "muncher-item-slider", children: [
|
|
1821
|
-
a === "inside" ?
|
|
1821
|
+
a === "inside" ? h() : "",
|
|
1822
1822
|
/* @__PURE__ */ e.jsx("div", { className: "slider-container", style: { width: `${100 * n.length}%` }, children: n.map(
|
|
1823
1823
|
(p, f) => /* @__PURE__ */ e.jsx(
|
|
1824
1824
|
"div",
|
|
1825
1825
|
{
|
|
1826
1826
|
className: "slider-item",
|
|
1827
|
-
style: { transform: `translateX(${
|
|
1827
|
+
style: { transform: `translateX(${j}%)` },
|
|
1828
1828
|
children: p
|
|
1829
1829
|
},
|
|
1830
1830
|
"slider-item" + f
|
|
@@ -1846,15 +1846,15 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1846
1846
|
currency: "USD"
|
|
1847
1847
|
}).format(x)
|
|
1848
1848
|
}) => {
|
|
1849
|
-
const x = (
|
|
1850
|
-
const u = +
|
|
1849
|
+
const x = (h) => {
|
|
1850
|
+
const u = +h.target.value, p = u < i - 1 ? u : r;
|
|
1851
1851
|
c(p);
|
|
1852
|
-
},
|
|
1853
|
-
const u = +
|
|
1852
|
+
}, j = (h) => {
|
|
1853
|
+
const u = +h.target.value, p = u > r + 1 ? u : i;
|
|
1854
1854
|
a(p);
|
|
1855
|
-
},
|
|
1855
|
+
}, d = (h) => o && h ? o(h) : h;
|
|
1856
1856
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-slider", children: [
|
|
1857
|
-
/* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children:
|
|
1857
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children: d(r) + " - " + d(i) }) }),
|
|
1858
1858
|
/* @__PURE__ */ e.jsx(
|
|
1859
1859
|
"input",
|
|
1860
1860
|
{
|
|
@@ -1874,12 +1874,12 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1874
1874
|
min: n,
|
|
1875
1875
|
max: t,
|
|
1876
1876
|
value: i,
|
|
1877
|
-
onChange:
|
|
1877
|
+
onChange: j
|
|
1878
1878
|
}
|
|
1879
1879
|
),
|
|
1880
1880
|
/* @__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:
|
|
1881
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-min", children: d(n) }),
|
|
1882
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-max", children: d(t) })
|
|
1883
1883
|
] })
|
|
1884
1884
|
] });
|
|
1885
1885
|
}, Be = ({
|
|
@@ -1893,8 +1893,8 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1893
1893
|
}).format(a)
|
|
1894
1894
|
}) => {
|
|
1895
1895
|
const a = (x) => c ? c(x) : x, o = (x) => {
|
|
1896
|
-
const
|
|
1897
|
-
i(
|
|
1896
|
+
const j = +x.target.value;
|
|
1897
|
+
i(j);
|
|
1898
1898
|
};
|
|
1899
1899
|
return /* @__PURE__ */ e.jsxs("div", { className: "muncher-slider", children: [
|
|
1900
1900
|
/* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children: a(r) }) }),
|
|
@@ -1965,28 +1965,28 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
1965
1965
|
excludeDownload: a,
|
|
1966
1966
|
includeUpload: o,
|
|
1967
1967
|
isUploading: x,
|
|
1968
|
-
uploadWarningMessage:
|
|
1969
|
-
uploadSuccessMessage:
|
|
1970
|
-
excludePagination:
|
|
1968
|
+
uploadWarningMessage: j,
|
|
1969
|
+
uploadSuccessMessage: d,
|
|
1970
|
+
excludePagination: h,
|
|
1971
1971
|
footer: u,
|
|
1972
1972
|
children: p
|
|
1973
1973
|
}) => {
|
|
1974
|
-
const { header: f, rows:
|
|
1974
|
+
const { header: f, rows: b } = p, [g, T] = A(c ?? { index: 0 }), [v, _] = A({ num: 0, size: t }), S = (m) => {
|
|
1975
1975
|
T(
|
|
1976
1976
|
(M) => M.index === m ? { ...M, desc: !M.desc } : { index: m }
|
|
1977
1977
|
);
|
|
1978
1978
|
}, z = te(() => {
|
|
1979
1979
|
var C;
|
|
1980
|
-
const m = [...
|
|
1980
|
+
const m = [...b], M = (C = f[g.index]) == null ? void 0 : C.sort;
|
|
1981
1981
|
return M ? m.sort(M) : m.sort((L, X) => {
|
|
1982
1982
|
var $, Y, U, W;
|
|
1983
1983
|
const Z = ((Y = ($ = L[g.index]) == null ? void 0 : $.value) == null ? void 0 : Y.toString().toLowerCase()) ?? "", I = ((W = (U = X[g.index]) == null ? void 0 : U.value) == null ? void 0 : W.toString().toLowerCase()) ?? "";
|
|
1984
1984
|
return Z.localeCompare(I);
|
|
1985
1985
|
}), g.desc ? m.reverse() : m;
|
|
1986
|
-
}, [
|
|
1986
|
+
}, [b, g, f]), k = te(
|
|
1987
1987
|
() => z.slice(v.num * v.size, (v.num + 1) * v.size),
|
|
1988
1988
|
[z, v]
|
|
1989
|
-
), H = f.filter((m) => !m.csvExclude).map((m) => typeof m.name == "string" ? m.name : ""), P =
|
|
1989
|
+
), H = f.filter((m) => !m.csvExclude).map((m) => typeof m.name == "string" ? m.name : ""), P = b.map(
|
|
1990
1990
|
(m) => m.filter((M, C) => !f[C].csvExclude).map((M) => M.csv ?? M.value ?? "")
|
|
1991
1991
|
);
|
|
1992
1992
|
return /* @__PURE__ */ e.jsxs("section", { className: "muncher-table", children: [
|
|
@@ -2038,12 +2038,12 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
2038
2038
|
name: "csv-input-file",
|
|
2039
2039
|
handleOnChange: i,
|
|
2040
2040
|
isUploading: x,
|
|
2041
|
-
warningMessage:
|
|
2042
|
-
successMessage:
|
|
2041
|
+
warningMessage: j,
|
|
2042
|
+
successMessage: d
|
|
2043
2043
|
}
|
|
2044
2044
|
)
|
|
2045
2045
|
] }),
|
|
2046
|
-
!
|
|
2046
|
+
!h && /* @__PURE__ */ e.jsxs("div", { className: "pagination", children: [
|
|
2047
2047
|
/* @__PURE__ */ e.jsxs("div", { className: "left", children: [
|
|
2048
2048
|
"Rows:",
|
|
2049
2049
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2063,9 +2063,9 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
2063
2063
|
/* @__PURE__ */ e.jsxs("div", { className: "center", children: [
|
|
2064
2064
|
v.num * v.size + 1,
|
|
2065
2065
|
" -",
|
|
2066
|
-
Math.min((v.num + 1) * v.size,
|
|
2066
|
+
Math.min((v.num + 1) * v.size, b.length),
|
|
2067
2067
|
" of ",
|
|
2068
|
-
|
|
2068
|
+
b.length
|
|
2069
2069
|
] }),
|
|
2070
2070
|
/* @__PURE__ */ e.jsxs("div", { className: "right", children: [
|
|
2071
2071
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2075,17 +2075,17 @@ const Re = ({ variant: n, children: t }) => {
|
|
|
2075
2075
|
disabled: v.num === 0,
|
|
2076
2076
|
size: "small",
|
|
2077
2077
|
onClick: () => _({ ...v, num: v.num - 1 }),
|
|
2078
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2078
|
+
children: /* @__PURE__ */ e.jsx(N, { name: "chevron-left" })
|
|
2079
2079
|
}
|
|
2080
2080
|
),
|
|
2081
2081
|
/* @__PURE__ */ e.jsx(
|
|
2082
2082
|
O,
|
|
2083
2083
|
{
|
|
2084
2084
|
variant: "transparent",
|
|
2085
|
-
disabled: (v.num + 1) * v.size >=
|
|
2085
|
+
disabled: (v.num + 1) * v.size >= b.length,
|
|
2086
2086
|
size: "small",
|
|
2087
2087
|
onClick: () => _({ ...v, num: v.num + 1 }),
|
|
2088
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2088
|
+
children: /* @__PURE__ */ e.jsx(N, { name: "chevron-right" })
|
|
2089
2089
|
}
|
|
2090
2090
|
)
|
|
2091
2091
|
] })
|
|
@@ -2106,7 +2106,7 @@ export {
|
|
|
2106
2106
|
Ae as DropdownNavButton,
|
|
2107
2107
|
Je as Featured,
|
|
2108
2108
|
Ye as Hr,
|
|
2109
|
-
|
|
2109
|
+
N as Icon,
|
|
2110
2110
|
Te as IconBadge,
|
|
2111
2111
|
ze as ImageInput,
|
|
2112
2112
|
ke as Input,
|