@contentmunch/contentmunch-ui 1.0.33 → 1.0.35

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/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import oe, { useState as T, Fragment as s, useRef as de, useCallback as G, useEffect as Q, useMemo as te } from "react";
1
+ import oe, { useState as A, Fragment as s, useRef as de, useCallback as G, useEffect as Q, useMemo as te } from "react";
2
2
  var K = { exports: {} }, B = {};
3
3
  /**
4
4
  * @license React
@@ -15,16 +15,16 @@ function ue() {
15
15
  le = 1;
16
16
  var n = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
17
17
  function r(i, c, a) {
18
- var x = null;
19
- if (a !== void 0 && (x = "" + a), c.key !== void 0 && (x = "" + c.key), "key" in c) {
18
+ var o = null;
19
+ if (a !== void 0 && (o = "" + a), c.key !== void 0 && (o = "" + c.key), "key" in c) {
20
20
  a = {};
21
- for (var o in c)
22
- o !== "key" && (a[o] = c[o]);
21
+ for (var x in c)
22
+ x !== "key" && (a[x] = c[x]);
23
23
  } else a = c;
24
24
  return c = a.ref, {
25
25
  $$typeof: n,
26
26
  type: i,
27
- key: x,
27
+ key: o,
28
28
  ref: c !== void 0 ? c : null,
29
29
  props: a
30
30
  };
@@ -54,7 +54,7 @@ function ye() {
54
54
  return "Fragment";
55
55
  case v:
56
56
  return "Profiler";
57
- case A:
57
+ case T:
58
58
  return "StrictMode";
59
59
  case k:
60
60
  return "Suspense";
@@ -125,16 +125,16 @@ function ye() {
125
125
  function a() {
126
126
  return Error("react-stack-top-frame");
127
127
  }
128
- function x(l) {
128
+ function o(l) {
129
129
  if (X.call(l, "key")) {
130
130
  var y = Object.getOwnPropertyDescriptor(l, "key").get;
131
131
  if (y && y.isReactWarning) return !1;
132
132
  }
133
133
  return l.key !== void 0;
134
134
  }
135
- function o(l, y) {
135
+ function x(l, y) {
136
136
  function b() {
137
- Y || (Y = !0, console.error(
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
  ));
@@ -146,7 +146,7 @@ function ye() {
146
146
  }
147
147
  function d() {
148
148
  var l = n(this.type);
149
- return $[l] || ($[l] = !0, console.error(
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
  }
@@ -213,12 +213,12 @@ 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, b !== void 0 && (r(b), R = "" + b), x(y) && (r(y.key), R = "" + y.key), "key" in y) {
216
+ if (R = null, b !== void 0 && (r(b), R = "" + b), o(y) && (r(y.key), R = "" + y.key), "key" in y) {
217
217
  b = {};
218
218
  for (var ne in y)
219
219
  ne !== "key" && (b[ne] = y[ne]);
220
220
  } else b = y;
221
- return R && o(
221
+ return R && x(
222
222
  b,
223
223
  typeof l == "function" ? l.displayName || l.name || "Unknown" : l
224
224
  ), h(
@@ -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"), N = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), A = 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() {
238
+ var p = oe, f = Symbol.for("react.transitional.element"), N = 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 = {
@@ -243,7 +243,7 @@ React keys must be passed directly to JSX without using spread:
243
243
  return l();
244
244
  }
245
245
  };
246
- var Y, $ = {}, U = p["react-stack-bottom-frame"].bind(
246
+ var $, Y = {}, U = p["react-stack-bottom-frame"].bind(
247
247
  p,
248
248
  a
249
249
  )(), W = I(i(a)), re = {};
@@ -280,7 +280,7 @@ function pe() {
280
280
  }
281
281
  var e = pe();
282
282
  const Re = ({ variant: n, children: t }) => {
283
- const { folds: r } = t, [i, c] = T(0), a = (d) => d === i ? "fold active" : "fold", x = (d) => "fold-button" + (n ? " fold-button--" + n : "") + (r[d].foldColor ? " fold-button--primary fold-button--" + r[d].foldColor : ""), o = (d) => {
283
+ const { folds: r } = t, [i, c] = A(0), a = (d) => d === i ? "fold active" : "fold", o = (d) => "fold-button" + (n ? " fold-button--" + n : "") + (r[d].foldColor ? " fold-button--primary fold-button--" + r[d].foldColor : ""), x = (d) => {
284
284
  const h = d.which.toString(), j = d.ctrlKey && h.match(/33|34/);
285
285
  if (h.match(/38|40/) || j) {
286
286
  const u = h.match(/34|40/) ? 1 : -1, p = r.length, f = (i + p + u) % p;
@@ -299,8 +299,8 @@ const Re = ({ variant: n, children: t }) => {
299
299
  /* @__PURE__ */ e.jsx(
300
300
  "button",
301
301
  {
302
- className: x(h),
303
- onKeyDown: o,
302
+ className: o(h),
303
+ onKeyDown: x,
304
304
  onClick: () => c(h),
305
305
  children: /* @__PURE__ */ e.jsx("span", { children: d.heading })
306
306
  }
@@ -1069,10 +1069,10 @@ 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
- }, w = ({ color: n, name: t, size: r = "small", weight: i = 2, onClick: c, iconString: a, orientation: x, children: o }) => {
1072
+ }, w = ({ color: n, name: t, size: r = "small", weight: i = 2, onClick: c, iconString: a, orientation: o, children: x }) => {
1073
1073
  const d = r ? "muncher-icon--" + r : "muncher-icon--small";
1074
1074
  return /* @__PURE__ */ e.jsxs("span", { className: "muncher-icon", children: [
1075
- o && x && x === "right" ? /* @__PURE__ */ e.jsx("span", { className: "content-left", children: o }) : "",
1075
+ x && o && o === "right" ? /* @__PURE__ */ e.jsx("span", { className: "content-left", children: x }) : "",
1076
1076
  /* @__PURE__ */ e.jsx(
1077
1077
  "svg",
1078
1078
  {
@@ -1088,7 +1088,7 @@ const Re = ({ variant: n, children: t }) => {
1088
1088
  children: t ? ae[t] : a ? Object(ae)[a] : ""
1089
1089
  }
1090
1090
  ),
1091
- o && (!x || x === "left") ? /* @__PURE__ */ e.jsx("span", { className: "content-right", children: o }) : ""
1091
+ x && (!o || o === "left") ? /* @__PURE__ */ e.jsx("span", { className: "content-right", children: x }) : ""
1092
1092
  ] });
1093
1093
  }, Te = ({
1094
1094
  variant: n = "primary",
@@ -1114,15 +1114,15 @@ const Re = ({ variant: n, children: t }) => {
1114
1114
  title: i,
1115
1115
  active: c,
1116
1116
  disabled: a,
1117
- rounded: x,
1118
- onClick: o,
1117
+ rounded: o,
1118
+ onClick: x,
1119
1119
  onMouseDown: d,
1120
1120
  onMouseEnter: h,
1121
1121
  onMouseLeave: j,
1122
1122
  children: u,
1123
1123
  ...p
1124
1124
  }) => {
1125
- const f = "muncher-button" + (n && n === "nav" ? " muncher-button--nav" : "") + (t ? " muncher-button--" + t : "") + (r ? " muncher-button--" + r : "") + (c ? " muncher-button--active" : "") + (x ? " muncher-button--rounded" : "");
1125
+ 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" : "");
1126
1126
  return /* @__PURE__ */ e.jsx(
1127
1127
  "button",
1128
1128
  {
@@ -1130,7 +1130,7 @@ const Re = ({ variant: n, children: t }) => {
1130
1130
  className: f,
1131
1131
  disabled: !!a,
1132
1132
  title: i,
1133
- onClick: o,
1133
+ onClick: x,
1134
1134
  onMouseDown: d,
1135
1135
  onMouseEnter: h,
1136
1136
  onMouseLeave: j,
@@ -1145,8 +1145,8 @@ const Re = ({ variant: n, children: t }) => {
1145
1145
  active: i,
1146
1146
  disabled: c,
1147
1147
  element: a,
1148
- onMouseDown: x,
1149
- rounded: o,
1148
+ onMouseDown: o,
1149
+ rounded: x,
1150
1150
  drop: d,
1151
1151
  onClick: h,
1152
1152
  onClose: j,
@@ -1156,7 +1156,7 @@ const Re = ({ variant: n, children: t }) => {
1156
1156
  children: N,
1157
1157
  ...g
1158
1158
  }) => {
1159
- const A = de(null), v = (k) => {
1159
+ const T = de(null), v = (k) => {
1160
1160
  k.preventDefault(), h && h(k), p && p(!0);
1161
1161
  }, _ = G(() => {
1162
1162
  p(!1), j && j();
@@ -1165,7 +1165,7 @@ const Re = ({ variant: n, children: t }) => {
1165
1165
  }, [_]);
1166
1166
  Q(() => {
1167
1167
  const k = (H) => {
1168
- A && A.current && H.target instanceof HTMLElement && !A.current.contains(H.target) && _();
1168
+ T && T.current && H.target instanceof HTMLElement && !T.current.contains(H.target) && _();
1169
1169
  };
1170
1170
  return document.addEventListener("keydown", S, !1), document.addEventListener("mousedown", k), () => {
1171
1171
  document.removeEventListener("keydown", S, !1);
@@ -1173,7 +1173,7 @@ const Re = ({ variant: n, children: t }) => {
1173
1173
  }, [S, _]);
1174
1174
  const z = () => {
1175
1175
  var P;
1176
- const k = (P = A.current) == null ? void 0 : P.offsetLeft, H = window.innerWidth;
1176
+ const k = (P = T.current) == null ? void 0 : P.offsetLeft, H = window.innerWidth;
1177
1177
  if (k) {
1178
1178
  if (k < 100) return "muncher-dropdown--content";
1179
1179
  if (H - k < 150) return "muncher-dropdown--content drop-left";
@@ -1191,14 +1191,14 @@ const Re = ({ variant: n, children: t }) => {
1191
1191
  return "muncher-dropdown--content";
1192
1192
  }
1193
1193
  };
1194
- return /* @__PURE__ */ e.jsxs("div", { className: "muncher-dropdown", ref: A, children: [
1194
+ return /* @__PURE__ */ e.jsxs("div", { className: "muncher-dropdown", ref: T, children: [
1195
1195
  /* @__PURE__ */ e.jsxs(
1196
1196
  O,
1197
1197
  {
1198
1198
  onMouseDown: v,
1199
1199
  title: r,
1200
1200
  disabled: c,
1201
- rounded: o,
1201
+ rounded: x,
1202
1202
  active: i,
1203
1203
  variant: n,
1204
1204
  size: t,
@@ -1223,9 +1223,10 @@ const Re = ({ variant: n, children: t }) => {
1223
1223
  disabled: r,
1224
1224
  element: i,
1225
1225
  rounded: c,
1226
- children: a,
1226
+ dropLeft: a,
1227
+ children: o,
1227
1228
  ...x
1228
- }) => /* @__PURE__ */ e.jsxs("div", { className: "muncher-dropdown-nav", children: [
1229
+ }) => /* @__PURE__ */ e.jsxs("div", { className: `muncher-dropdown-nav ${a ? "drop-left" : ""}`, children: [
1229
1230
  /* @__PURE__ */ e.jsx(
1230
1231
  O,
1231
1232
  {
@@ -1238,7 +1239,7 @@ const Re = ({ variant: n, children: t }) => {
1238
1239
  children: i
1239
1240
  }
1240
1241
  ),
1241
- /* @__PURE__ */ e.jsx("div", { className: "muncher-dropdown-nav--content", children: a })
1242
+ /* @__PURE__ */ e.jsx("div", { className: "muncher-dropdown-nav--content", children: o })
1242
1243
  ] }), ge = (n) => {
1243
1244
  navigator.clipboard.writeText(n);
1244
1245
  }, be = ({
@@ -1246,9 +1247,9 @@ const Re = ({ variant: n, children: t }) => {
1246
1247
  variant: t = "secondary",
1247
1248
  size: r = "small"
1248
1249
  }) => {
1249
- const [i, c] = T(), [a, x] = T("copy"), [o, d] = T("copy link"), h = () => {
1250
- ge(n), c("green"), x("check"), d("copied!"), setTimeout(function() {
1251
- c(""), x("copy");
1250
+ const [i, c] = A(), [a, o] = A("copy"), [x, d] = A("copy link"), h = () => {
1251
+ ge(n), c("green"), o("check"), d("copied!"), setTimeout(function() {
1252
+ c(""), o("copy");
1252
1253
  }, 2e3);
1253
1254
  };
1254
1255
  return /* @__PURE__ */ e.jsx(
@@ -1256,7 +1257,7 @@ const Re = ({ variant: n, children: t }) => {
1256
1257
  {
1257
1258
  size: r,
1258
1259
  variant: t,
1259
- title: o,
1260
+ title: x,
1260
1261
  onClick: h,
1261
1262
  children: /* @__PURE__ */ e.jsx(w, { name: a, color: i })
1262
1263
  }
@@ -1266,7 +1267,7 @@ const Re = ({ variant: n, children: t }) => {
1266
1267
  size: t = "medium",
1267
1268
  title: r
1268
1269
  }) => {
1269
- const [i, c] = T(!1);
1270
+ const [i, c] = A(!1);
1270
1271
  return /* @__PURE__ */ e.jsx("div", { className: "muncher-share", children: /* @__PURE__ */ e.jsxs(
1271
1272
  ve,
1272
1273
  {
@@ -1315,14 +1316,14 @@ const Re = ({ variant: n, children: t }) => {
1315
1316
  variant: i,
1316
1317
  size: c,
1317
1318
  title: a,
1318
- active: x,
1319
- disabled: o,
1319
+ active: o,
1320
+ disabled: x,
1320
1321
  rounded: d
1321
1322
  }) => {
1322
1323
  const h = encodeURI("data:text/csv;charset=utf-8," + n.join(",") + `
1323
1324
  ` + t.map((j) => j.join(",")).join(`
1324
1325
  `));
1325
- return /* @__PURE__ */ e.jsx("div", { className: "muncher-csv", children: /* @__PURE__ */ e.jsx(O, { variant: i, size: c, active: x, disabled: o, rounded: d, children: /* @__PURE__ */ e.jsx("a", { href: h, download: r + ".csv", children: /* @__PURE__ */ e.jsx(w, { name: "download", children: a || "Download" }) }) }) });
1326
+ return /* @__PURE__ */ e.jsx("div", { className: "muncher-csv", children: /* @__PURE__ */ e.jsx(O, { variant: i, size: c, active: o, disabled: x, rounded: d, children: /* @__PURE__ */ e.jsx("a", { href: h, download: r + ".csv", children: /* @__PURE__ */ e.jsx(w, { name: "download", children: a || "Download" }) }) }) });
1326
1327
  }, Ne = ({
1327
1328
  variant: n = "transparent",
1328
1329
  size: t = "small",
@@ -1330,10 +1331,10 @@ const Re = ({ variant: n, children: t }) => {
1330
1331
  sortAsc: i = "true",
1331
1332
  active: c,
1332
1333
  rounded: a,
1333
- onClick: x,
1334
- children: o
1334
+ onClick: o,
1335
+ children: x
1335
1336
  }) => {
1336
- const [d, h] = T(!1), j = () => !c || c && !d ? i ? /* @__PURE__ */ e.jsx(w, { name: "sort-asc" }) : /* @__PURE__ */ e.jsx(w, { name: "sort-desc" }) : i ? /* @__PURE__ */ e.jsx(w, { name: "sort-desc" }) : /* @__PURE__ */ e.jsx(w, { name: "sort-asc" });
1337
+ const [d, h] = A(!1), j = () => !c || c && !d ? i ? /* @__PURE__ */ e.jsx(w, { name: "sort-asc" }) : /* @__PURE__ */ e.jsx(w, { name: "sort-desc" }) : i ? /* @__PURE__ */ e.jsx(w, { name: "sort-desc" }) : /* @__PURE__ */ e.jsx(w, { name: "sort-asc" });
1337
1338
  return /* @__PURE__ */ e.jsxs(
1338
1339
  O,
1339
1340
  {
@@ -1347,9 +1348,9 @@ const Re = ({ variant: n, children: t }) => {
1347
1348
  onMouseLeave: () => {
1348
1349
  h(!1);
1349
1350
  },
1350
- onClick: x,
1351
+ onClick: o,
1351
1352
  children: [
1352
- o,
1353
+ x,
1353
1354
  c || d ? /* @__PURE__ */ e.jsx(j, {}) : ""
1354
1355
  ]
1355
1356
  }
@@ -1361,9 +1362,9 @@ const Re = ({ variant: n, children: t }) => {
1361
1362
  isDisabled: i,
1362
1363
  variant: c = "primary",
1363
1364
  navIcon: a = "chevron",
1364
- onClick: x
1365
+ onClick: o
1365
1366
  }) => {
1366
- const o = () => {
1367
+ const x = () => {
1367
1368
  switch (a) {
1368
1369
  case "arrow":
1369
1370
  return n === "left" ? "arrow-left" : "arrow-right";
@@ -1382,12 +1383,12 @@ const Re = ({ variant: n, children: t }) => {
1382
1383
  children: /* @__PURE__ */ e.jsx(
1383
1384
  O,
1384
1385
  {
1385
- onClick: x,
1386
+ onClick: o,
1386
1387
  disabled: i,
1387
1388
  size: "small",
1388
1389
  variant: c,
1389
1390
  title: n === "left" ? "Navigate Left" : "Navigate Right",
1390
- children: /* @__PURE__ */ e.jsx(w, { name: o(), size: t, weight: r })
1391
+ children: /* @__PURE__ */ e.jsx(w, { name: x(), size: t, weight: r })
1391
1392
  }
1392
1393
  )
1393
1394
  }
@@ -1403,7 +1404,7 @@ const Re = ({ variant: n, children: t }) => {
1403
1404
  label: c,
1404
1405
  ...a
1405
1406
  }) => {
1406
- const [x, o] = T(i || !1);
1407
+ const [o, x] = A(i || !1);
1407
1408
  return /* @__PURE__ */ e.jsx("div", { className: "muncher-input--div", children: /* @__PURE__ */ e.jsxs("div", { className: "muncher-checkbox", children: [
1408
1409
  /* @__PURE__ */ e.jsx(
1409
1410
  "input",
@@ -1412,9 +1413,9 @@ const Re = ({ variant: n, children: t }) => {
1412
1413
  id: n,
1413
1414
  name: n,
1414
1415
  onChange: (d) => {
1415
- o(d.target.checked), r && r();
1416
+ x(d.target.checked), r && r();
1416
1417
  },
1417
- checked: x,
1418
+ checked: o,
1418
1419
  required: t,
1419
1420
  ...a
1420
1421
  }
@@ -1426,7 +1427,7 @@ const Re = ({ variant: n, children: t }) => {
1426
1427
  required: t,
1427
1428
  id: n,
1428
1429
  onClick: (d) => {
1429
- d.preventDefault(), o(!x), r && r();
1430
+ d.preventDefault(), x(!o), r && r();
1430
1431
  }
1431
1432
  }
1432
1433
  ) : ""
@@ -1444,14 +1445,14 @@ const Re = ({ variant: n, children: t }) => {
1444
1445
  size: i = "medium",
1445
1446
  required: c,
1446
1447
  active: a,
1447
- isUploading: x,
1448
- handleOnChange: o,
1448
+ isUploading: o,
1449
+ handleOnChange: x,
1449
1450
  warningMessage: d,
1450
1451
  successMessage: h,
1451
1452
  ...j
1452
1453
  }) => {
1453
1454
  const u = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (a ? " muncher-button--active" : ""), p = (f) => {
1454
- o && o(f.currentTarget.files[0]);
1455
+ x && x(f.currentTarget.files[0]);
1455
1456
  };
1456
1457
  return /* @__PURE__ */ e.jsx("div", { className: "muncher-file-input--div", children: /* @__PURE__ */ e.jsxs("div", { className: "file-input-element", children: [
1457
1458
  /* @__PURE__ */ e.jsxs("label", { htmlFor: n, className: u, children: [
@@ -1459,7 +1460,7 @@ const Re = ({ variant: n, children: t }) => {
1459
1460
  " ",
1460
1461
  t || "Upload CSV",
1461
1462
  c ? /* @__PURE__ */ e.jsx("span", { className: "required", children: " *" }) : "",
1462
- x ? /* @__PURE__ */ e.jsx(he, { size: "tiny" }) : ""
1463
+ o ? /* @__PURE__ */ e.jsx(he, { size: "tiny" }) : ""
1463
1464
  ] }),
1464
1465
  /* @__PURE__ */ e.jsx(
1465
1466
  "input",
@@ -1483,22 +1484,22 @@ const Re = ({ variant: n, children: t }) => {
1483
1484
  size: i = "large",
1484
1485
  required: c,
1485
1486
  active: a,
1486
- setFiles: x,
1487
- error: o,
1487
+ setFiles: o,
1488
+ error: x,
1488
1489
  multiple: d = !1,
1489
1490
  maxFiles: h,
1490
1491
  ...j
1491
1492
  }) => {
1492
- const [u, p] = T(""), [f, N] = T(""), g = h || 3, A = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (a ? " muncher-button--active" : ""), v = (S) => {
1493
+ const [u, p] = A(""), [f, N] = A(""), g = h || 3, T = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (a ? " muncher-button--active" : ""), v = (S) => {
1493
1494
  if (d) {
1494
1495
  let z = Array.from(S.currentTarget.files);
1495
- z.length > g && (z = z.slice(0, g), N("Only first " + g + " files included")), x(z), p(z.map((k) => k.name).join(", "));
1496
+ z.length > g && (z = z.slice(0, g), N("Only first " + g + " files included")), o(z), p(z.map((k) => k.name).join(", "));
1496
1497
  } else
1497
- x(Array.from(S.currentTarget.files[0])), p(S.currentTarget.files[0].name);
1498
- }, _ = () => o && o !== "";
1498
+ o(Array.from(S.currentTarget.files[0])), p(S.currentTarget.files[0].name);
1499
+ }, _ = () => x && x !== "";
1499
1500
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-file-input--div", children: [
1500
1501
  /* @__PURE__ */ e.jsxs("div", { className: "file-input-element", children: [
1501
- /* @__PURE__ */ e.jsxs("label", { htmlFor: n, className: A, children: [
1502
+ /* @__PURE__ */ e.jsxs("label", { htmlFor: n, className: T, children: [
1502
1503
  /* @__PURE__ */ e.jsx(w, { name: "image" }),
1503
1504
  " ",
1504
1505
  t,
@@ -1520,7 +1521,7 @@ const Re = ({ variant: n, children: t }) => {
1520
1521
  )
1521
1522
  ] }),
1522
1523
  f !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-danger", children: f }) : "",
1523
- _() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(w, { name: "alert", children: o }) }) : ""
1524
+ _() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(w, { name: "alert", children: x }) }) : ""
1524
1525
  ] });
1525
1526
  }, ke = ({
1526
1527
  name: n,
@@ -1529,8 +1530,8 @@ const Re = ({ variant: n, children: t }) => {
1529
1530
  readOnly: i,
1530
1531
  icon: c,
1531
1532
  hoverIcon: a,
1532
- onHoverIconClick: x,
1533
- type: o = "text",
1533
+ onHoverIconClick: o,
1534
+ type: x = "text",
1534
1535
  list: d,
1535
1536
  onBlur: h,
1536
1537
  labelPosition: j = "top",
@@ -1539,7 +1540,7 @@ const Re = ({ variant: n, children: t }) => {
1539
1540
  focus: f = !1,
1540
1541
  placeholder: N,
1541
1542
  onChange: g,
1542
- step: A,
1543
+ step: T,
1543
1544
  value: v,
1544
1545
  maxLength: _,
1545
1546
  onEnterPress: S,
@@ -1558,7 +1559,7 @@ const Re = ({ variant: n, children: t }) => {
1558
1559
  j === "side" ? m() : "",
1559
1560
  c ? /* @__PURE__ */ e.jsx(w, { name: c }) : "",
1560
1561
  a ? /* @__PURE__ */ e.jsxs("span", { className: "muncher-icon-hover", children: [
1561
- /* @__PURE__ */ e.jsx(w, { name: a, onClick: x }),
1562
+ /* @__PURE__ */ e.jsx(w, { name: a, onClick: o }),
1562
1563
  " "
1563
1564
  ] }) : "",
1564
1565
  /* @__PURE__ */ e.jsxs("div", { className: "muncher-input-wrapper", children: [
@@ -1570,7 +1571,7 @@ const Re = ({ variant: n, children: t }) => {
1570
1571
  name: n,
1571
1572
  autoFocus: f,
1572
1573
  value: v,
1573
- type: o || "text",
1574
+ type: x || "text",
1574
1575
  autoComplete: "off",
1575
1576
  placeholder: N,
1576
1577
  onChange: g,
@@ -1579,7 +1580,7 @@ const Re = ({ variant: n, children: t }) => {
1579
1580
  list: d,
1580
1581
  onKeyDown: M,
1581
1582
  onBlur: h,
1582
- step: A,
1583
+ step: T,
1583
1584
  maxLength: _,
1584
1585
  ...k
1585
1586
  }
@@ -1589,43 +1590,36 @@ const Re = ({ variant: n, children: t }) => {
1589
1590
  ] }),
1590
1591
  H() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(w, { name: "alert", children: p }) }) : ""
1591
1592
  ] });
1592
- }, He = ({ name: n, required: t = !1, onChange: r, checked: i = !1, label: c, ...a }) => {
1593
- const [x, o] = T(i || !1);
1594
- return /* @__PURE__ */ e.jsx("div", { className: "muncher-input--div", children: /* @__PURE__ */ e.jsxs("div", { className: "muncher-radio", children: [
1595
- /* @__PURE__ */ e.jsx(
1596
- "input",
1597
- {
1598
- id: n,
1599
- type: "radio",
1600
- name: n,
1601
- onChange: (d) => {
1602
- o(d.target.checked), r && r();
1603
- },
1604
- checked: x,
1605
- ...a
1606
- }
1607
- ),
1608
- c ? /* @__PURE__ */ e.jsx(
1609
- q,
1610
- {
1611
- label: c,
1612
- required: t,
1613
- id: n,
1614
- onClick: () => {
1615
- o(!x), r && r();
1616
- }
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
+ /* @__PURE__ */ e.jsx(
1595
+ "input",
1596
+ {
1597
+ type: "radio",
1598
+ name: n,
1599
+ onChange: r,
1600
+ checked: i,
1601
+ ...a
1602
+ }
1603
+ ),
1604
+ c ? /* @__PURE__ */ e.jsx(
1605
+ q,
1606
+ {
1607
+ label: c,
1608
+ required: t,
1609
+ onClick: () => {
1610
+ r && r();
1617
1611
  }
1618
- ) : ""
1619
- ] }) });
1620
- }, Ce = ({
1612
+ }
1613
+ ) : ""
1614
+ ] }) }), Ce = ({
1621
1615
  name: n,
1622
1616
  options: t,
1623
1617
  label: r,
1624
1618
  required: i,
1625
1619
  multiple: c,
1626
1620
  error: a,
1627
- onChange: x,
1628
- value: o,
1621
+ onChange: o,
1622
+ value: x,
1629
1623
  ...d
1630
1624
  }) => {
1631
1625
  const h = () => a && a !== "", j = () => {
@@ -1640,8 +1634,8 @@ const Re = ({ variant: n, children: t }) => {
1640
1634
  id: n,
1641
1635
  className: j(),
1642
1636
  name: n,
1643
- value: o,
1644
- onChange: x,
1637
+ value: x,
1638
+ onChange: o,
1645
1639
  required: i,
1646
1640
  multiple: c,
1647
1641
  ...d,
@@ -1662,13 +1656,13 @@ const Re = ({ variant: n, children: t }) => {
1662
1656
  readOnly: i = !1,
1663
1657
  rows: c = 6,
1664
1658
  maxLength: a = 1e3,
1665
- focus: x = !1,
1666
- placeholder: o,
1659
+ focus: o = !1,
1660
+ placeholder: x,
1667
1661
  onChange: d,
1668
1662
  value: h,
1669
1663
  ...j
1670
1664
  }) => {
1671
- const [u, p] = T(h), f = (N) => {
1665
+ const [u, p] = A(h), f = (N) => {
1672
1666
  p(N.target.value), d && d(N);
1673
1667
  };
1674
1668
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
@@ -1681,9 +1675,9 @@ const Re = ({ variant: n, children: t }) => {
1681
1675
  rows: c,
1682
1676
  maxLength: a,
1683
1677
  name: n,
1684
- autoFocus: x,
1678
+ autoFocus: o,
1685
1679
  value: h,
1686
- placeholder: o,
1680
+ placeholder: x,
1687
1681
  onChange: f,
1688
1682
  required: r,
1689
1683
  readOnly: i,
@@ -1702,8 +1696,8 @@ const Re = ({ variant: n, children: t }) => {
1702
1696
  showContent: i = !1,
1703
1697
  setShowContent: c,
1704
1698
  readOnly: a,
1705
- value: x,
1706
- label: o,
1699
+ value: o,
1700
+ label: x,
1707
1701
  error: d,
1708
1702
  required: h,
1709
1703
  children: j
@@ -1716,10 +1710,10 @@ const Re = ({ variant: n, children: t }) => {
1716
1710
  g.keyCode === 27 && f();
1717
1711
  }, [f]);
1718
1712
  return Q(() => {
1719
- const g = (A) => {
1713
+ const g = (T) => {
1720
1714
  if (u && u !== null) {
1721
1715
  const v = u.current;
1722
- v && !v.contains(A.target) && f();
1716
+ v && !v.contains(T.target) && f();
1723
1717
  }
1724
1718
  };
1725
1719
  return document.addEventListener("keydown", N, !1), document.addEventListener("mousedown", g), () => {
@@ -1734,8 +1728,8 @@ const Re = ({ variant: n, children: t }) => {
1734
1728
  name: "query",
1735
1729
  onChange: p,
1736
1730
  readOnly: a,
1737
- value: x,
1738
- label: o,
1731
+ value: o,
1732
+ label: x,
1739
1733
  required: h,
1740
1734
  error: d
1741
1735
  }
@@ -1783,7 +1777,7 @@ const Re = ({ variant: n, children: t }) => {
1783
1777
  " ",
1784
1778
  t
1785
1779
  ] })
1786
- ] }), Ye = ({ value: n, max: t, label: r }) => {
1780
+ ] }), $e = ({ value: n, max: t, label: r }) => {
1787
1781
  const i = () => {
1788
1782
  const c = Math.round(n / t * 100) + "%";
1789
1783
  return r ? r + " " + c : c;
@@ -1792,11 +1786,11 @@ const Re = ({ variant: n, children: t }) => {
1792
1786
  /* @__PURE__ */ e.jsx("label", { htmlFor: "progress", children: i() }),
1793
1787
  /* @__PURE__ */ e.jsx("progress", { id: "progress", value: n, max: t, children: i() })
1794
1788
  ] });
1795
- }, $e = ({ variant: n, size: t, style: r }) => {
1789
+ }, Ye = ({ variant: n, size: t, style: r }) => {
1796
1790
  const i = "muncher-hr" + (n ? " muncher-hr--" + n : "") + (t ? " muncher-hr--" + t : "") + (r ? " muncher-hr--" + r : "");
1797
1791
  return /* @__PURE__ */ e.jsx("hr", { className: i });
1798
1792
  }, Ue = ({ sliderItems: n, navButtonSize: t = "large", navButtonWeight: r = 2, variant: i, navIcon: c, navButtonPlacement: a = "inside" }) => {
1799
- const [x, o] = T(0), [d, h] = T(0), j = () => n.length > 1 && x > 0 ? /* @__PURE__ */ e.jsx(
1793
+ const [o, x] = A(0), [d, h] = A(0), j = () => n.length > 1 && o > 0 ? /* @__PURE__ */ e.jsx(
1800
1794
  xe,
1801
1795
  {
1802
1796
  direction: "left",
@@ -1805,10 +1799,10 @@ const Re = ({ variant: n, children: t }) => {
1805
1799
  navIcon: c,
1806
1800
  weight: r,
1807
1801
  onClick: () => {
1808
- x === 0 ? (h(-(n.length - 1) * 100), o(n.length - 1)) : (h(d + 100), o(x - 1));
1802
+ o === 0 ? (h(-(n.length - 1) * 100), x(n.length - 1)) : (h(d + 100), x(o - 1));
1809
1803
  }
1810
1804
  }
1811
- ) : "", u = () => n.length > 1 && x < n.length - 1 ? /* @__PURE__ */ e.jsx(
1805
+ ) : "", u = () => n.length > 1 && o < n.length - 1 ? /* @__PURE__ */ e.jsx(
1812
1806
  xe,
1813
1807
  {
1814
1808
  direction: "right",
@@ -1817,7 +1811,7 @@ const Re = ({ variant: n, children: t }) => {
1817
1811
  navIcon: c,
1818
1812
  variant: i,
1819
1813
  onClick: () => {
1820
- x === n.length - 1 ? (o(0), h(0)) : (h(d - 100), o(x + 1));
1814
+ o === n.length - 1 ? (x(0), h(0)) : (h(d - 100), x(o + 1));
1821
1815
  }
1822
1816
  }
1823
1817
  ) : "";
@@ -1847,18 +1841,18 @@ const Re = ({ variant: n, children: t }) => {
1847
1841
  maxValue: i,
1848
1842
  setMinValue: c,
1849
1843
  setMaxValue: a,
1850
- numberFormatter: x = (o) => new Intl.NumberFormat("en-US", {
1844
+ numberFormatter: o = (x) => new Intl.NumberFormat("en-US", {
1851
1845
  style: "currency",
1852
1846
  currency: "USD"
1853
- }).format(o)
1847
+ }).format(x)
1854
1848
  }) => {
1855
- const o = (j) => {
1849
+ const x = (j) => {
1856
1850
  const u = +j.target.value, p = u < i - 1 ? u : r;
1857
1851
  c(p);
1858
1852
  }, d = (j) => {
1859
1853
  const u = +j.target.value, p = u > r + 1 ? u : i;
1860
1854
  a(p);
1861
- }, h = (j) => x && j ? x(j) : j;
1855
+ }, h = (j) => o && j ? o(j) : j;
1862
1856
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-slider", children: [
1863
1857
  /* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children: h(r) + " - " + h(i) }) }),
1864
1858
  /* @__PURE__ */ e.jsx(
@@ -1869,7 +1863,7 @@ const Re = ({ variant: n, children: t }) => {
1869
1863
  min: n,
1870
1864
  max: t,
1871
1865
  value: r,
1872
- onChange: o
1866
+ onChange: x
1873
1867
  }
1874
1868
  ),
1875
1869
  /* @__PURE__ */ e.jsx(
@@ -1898,8 +1892,8 @@ const Re = ({ variant: n, children: t }) => {
1898
1892
  currency: "USD"
1899
1893
  }).format(a)
1900
1894
  }) => {
1901
- const a = (o) => c ? c(o) : o, x = (o) => {
1902
- const d = +o.target.value;
1895
+ const a = (x) => c ? c(x) : x, o = (x) => {
1896
+ const d = +x.target.value;
1903
1897
  i(d);
1904
1898
  };
1905
1899
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-slider", children: [
@@ -1912,7 +1906,7 @@ const Re = ({ variant: n, children: t }) => {
1912
1906
  min: n,
1913
1907
  max: t,
1914
1908
  value: r,
1915
- onChange: x
1909
+ onChange: o
1916
1910
  }
1917
1911
  ),
1918
1912
  /* @__PURE__ */ e.jsxs("div", { className: "slider-values", children: [
@@ -1924,41 +1918,41 @@ const Re = ({ variant: n, children: t }) => {
1924
1918
  const c = {
1925
1919
  "--r": n
1926
1920
  }, a = () => {
1927
- let x = "muncher-star";
1928
- return t && (x += " star-" + t), r && (x += " star-" + r), x;
1921
+ let o = "muncher-star";
1922
+ return t && (o += " star-" + t), r && (o += " star-" + r), o;
1929
1923
  };
1930
1924
  return /* @__PURE__ */ e.jsx("span", { className: a(), style: c, ...i });
1931
1925
  }, qe = ({ handleTabSelected: n, children: t }) => {
1932
- const [r, i] = T(0), { tabs: c } = t, a = (x) => {
1933
- i(x), n && n(x);
1926
+ const [r, i] = A(0), { tabs: c } = t, a = (o) => {
1927
+ i(o), n && n(o);
1934
1928
  };
1935
1929
  return /* @__PURE__ */ e.jsxs("section", { className: "muncher-tabs", children: [
1936
1930
  /* @__PURE__ */ e.jsx("header", { children: c.map(
1937
- (x, o) => /* @__PURE__ */ e.jsxs("div", { className: "muncher-tab-header--item", children: [
1931
+ (o, x) => /* @__PURE__ */ e.jsxs("div", { className: "muncher-tab-header--item", children: [
1938
1932
  /* @__PURE__ */ e.jsx(
1939
1933
  O,
1940
1934
  {
1941
1935
  variant: "transparent",
1942
- active: r === o,
1936
+ active: r === x,
1943
1937
  size: "small",
1944
- title: x.headerTitle,
1938
+ title: o.headerTitle,
1945
1939
  onClick: () => {
1946
- a(o);
1940
+ a(x);
1947
1941
  },
1948
- children: x.header
1942
+ children: o.header
1949
1943
  }
1950
1944
  ),
1951
- o !== c.length - 1 ? /* @__PURE__ */ e.jsx("span", { className: "spacer", children: "|" }) : ""
1952
- ] }, "muncher-tab-header" + o)
1945
+ x !== c.length - 1 ? /* @__PURE__ */ e.jsx("span", { className: "spacer", children: "|" }) : ""
1946
+ ] }, "muncher-tab-header" + x)
1953
1947
  ) }),
1954
1948
  c.map(
1955
- (x, o) => /* @__PURE__ */ e.jsx(
1949
+ (o, x) => /* @__PURE__ */ e.jsx(
1956
1950
  "section",
1957
1951
  {
1958
- className: r === o ? "muncher-tab muncher-tab--active" : "muncher-tab",
1959
- children: x.body
1952
+ className: r === x ? "muncher-tab muncher-tab--active" : "muncher-tab",
1953
+ children: o.body
1960
1954
  },
1961
- "muncher-tab-" + o
1955
+ "muncher-tab-" + x
1962
1956
  )
1963
1957
  )
1964
1958
  ] });
@@ -1969,24 +1963,24 @@ const Re = ({ variant: n, children: t }) => {
1969
1963
  handleOnUpload: i,
1970
1964
  sortBy: c,
1971
1965
  excludeDownload: a,
1972
- includeUpload: x,
1973
- isUploading: o,
1966
+ includeUpload: o,
1967
+ isUploading: x,
1974
1968
  uploadWarningMessage: d,
1975
1969
  uploadSuccessMessage: h,
1976
1970
  excludePagination: j,
1977
1971
  footer: u,
1978
1972
  children: p
1979
1973
  }) => {
1980
- const { header: f, rows: N } = p, [g, A] = T(c ?? { index: 0 }), [v, _] = T({ num: 0, size: t }), S = (m) => {
1981
- A(
1974
+ const { header: f, rows: N } = p, [g, T] = A(c ?? { index: 0 }), [v, _] = A({ num: 0, size: t }), S = (m) => {
1975
+ T(
1982
1976
  (M) => M.index === m ? { ...M, desc: !M.desc } : { index: m }
1983
1977
  );
1984
1978
  }, z = te(() => {
1985
1979
  var C;
1986
1980
  const m = [...N], M = (C = f[g.index]) == null ? void 0 : C.sort;
1987
1981
  return M ? m.sort(M) : m.sort((L, X) => {
1988
- var Y, $, U, W;
1989
- const Z = (($ = (Y = L[g.index]) == null ? void 0 : Y.value) == null ? void 0 : $.toString().toLowerCase()) ?? "", I = ((W = (U = X[g.index]) == null ? void 0 : U.value) == null ? void 0 : W.toString().toLowerCase()) ?? "";
1982
+ var $, Y, U, W;
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()) ?? "";
1990
1984
  return Z.localeCompare(I);
1991
1985
  }), g.desc ? m.reverse() : m;
1992
1986
  }, [N, g, f]), k = te(
@@ -2038,12 +2032,12 @@ const Re = ({ variant: n, children: t }) => {
2038
2032
  data: P
2039
2033
  }
2040
2034
  ),
2041
- x && /* @__PURE__ */ e.jsx(
2035
+ o && /* @__PURE__ */ e.jsx(
2042
2036
  Me,
2043
2037
  {
2044
2038
  name: "csv-input-file",
2045
2039
  handleOnChange: i,
2046
- isUploading: o,
2040
+ isUploading: x,
2047
2041
  warningMessage: d,
2048
2042
  successMessage: h
2049
2043
  }
@@ -2111,7 +2105,7 @@ export {
2111
2105
  ve as DropdownButton,
2112
2106
  Ae as DropdownNavButton,
2113
2107
  Je as Featured,
2114
- $e as Hr,
2108
+ Ye as Hr,
2115
2109
  w as Icon,
2116
2110
  Te as IconBadge,
2117
2111
  ze as ImageInput,
@@ -2123,7 +2117,7 @@ export {
2123
2117
  xe as NavigateButton,
2124
2118
  Fe as Paper,
2125
2119
  Ie as Pill,
2126
- Ye as Progress,
2120
+ $e as Progress,
2127
2121
  He as Radio,
2128
2122
  We as RangeSlider,
2129
2123
  Ce as Select,