@contentmunch/contentmunch-ui 1.0.27 → 1.0.28

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
@@ -14,18 +14,18 @@ function he() {
14
14
  if (te) return $;
15
15
  te = 1;
16
16
  var n = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
17
- function r(i, c, a) {
17
+ function r(c, i, a) {
18
18
  var x = null;
19
- if (a !== void 0 && (x = "" + a), c.key !== void 0 && (x = "" + c.key), "key" in c) {
19
+ if (a !== void 0 && (x = "" + a), i.key !== void 0 && (x = "" + i.key), "key" in i) {
20
20
  a = {};
21
- for (var o in c)
22
- o !== "key" && (a[o] = c[o]);
23
- } else a = c;
24
- return c = a.ref, {
21
+ for (var o in i)
22
+ o !== "key" && (a[o] = i[o]);
23
+ } else a = i;
24
+ return i = a.ref, {
25
25
  $$typeof: n,
26
- type: i,
26
+ type: c,
27
27
  key: x,
28
- ref: c !== void 0 ? c : null,
28
+ ref: i !== void 0 ? i : null,
29
29
  props: a
30
30
  };
31
31
  }
@@ -50,7 +50,7 @@ function je() {
50
50
  return l.$$typeof === G ? null : l.displayName || l.name || null;
51
51
  if (typeof l == "string") return l;
52
52
  switch (l) {
53
- case f:
53
+ case v:
54
54
  return "Fragment";
55
55
  case g:
56
56
  return "Profiler";
@@ -58,7 +58,7 @@ function je() {
58
58
  return "StrictMode";
59
59
  case b:
60
60
  return "Suspense";
61
- case u:
61
+ case y:
62
62
  return "SuspenseList";
63
63
  case A:
64
64
  return "Activity";
@@ -107,8 +107,8 @@ function je() {
107
107
  ), t(l);
108
108
  }
109
109
  }
110
- function i(l) {
111
- if (l === f) return "<>";
110
+ function c(l) {
111
+ if (l === v) return "<>";
112
112
  if (typeof l == "object" && l !== null && l.$$typeof === H)
113
113
  return "<...>";
114
114
  try {
@@ -118,7 +118,7 @@ function je() {
118
118
  return "<...>";
119
119
  }
120
120
  }
121
- function c() {
121
+ function i() {
122
122
  var l = P.A;
123
123
  return l === null ? null : l.getOwner();
124
124
  }
@@ -152,7 +152,7 @@ function je() {
152
152
  }
153
153
  function h(l, p, N, E, L, V, Q, Z) {
154
154
  return N = V.ref, l = {
155
- $$typeof: v,
155
+ $$typeof: f,
156
156
  type: l,
157
157
  key: p,
158
158
  props: V,
@@ -188,13 +188,13 @@ function je() {
188
188
  if (E)
189
189
  if (q(R)) {
190
190
  for (E = 0; E < R.length; E++)
191
- y(R[E]);
191
+ u(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 y(R);
197
+ else u(R);
198
198
  if (I.call(p, "key")) {
199
199
  R = n(l);
200
200
  var F = Object.keys(p).filter(function(de) {
@@ -226,16 +226,16 @@ React keys must be passed directly to JSX without using spread:
226
226
  R,
227
227
  V,
228
228
  L,
229
- c(),
229
+ i(),
230
230
  N,
231
231
  Q,
232
232
  Z
233
233
  );
234
234
  }
235
- function y(l) {
236
- typeof l == "object" && l !== null && l.$$typeof === v && l._store && (l._store.validated = 1);
235
+ function u(l) {
236
+ typeof l == "object" && l !== null && l.$$typeof === f && l._store && (l._store.validated = 1);
237
237
  }
238
- var m = xe, v = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), z = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), A = Symbol.for("react.activity"), G = Symbol.for("react.client.reference"), P = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = Object.prototype.hasOwnProperty, q = Array.isArray, D = console.createTask ? console.createTask : function() {
238
+ var m = xe, f = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), z = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), A = Symbol.for("react.activity"), G = Symbol.for("react.client.reference"), P = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = Object.prototype.hasOwnProperty, q = Array.isArray, D = console.createTask ? console.createTask : function() {
239
239
  return null;
240
240
  };
241
241
  m = {
@@ -246,8 +246,8 @@ React keys must be passed directly to JSX without using spread:
246
246
  var Y, U = {}, se = m["react-stack-bottom-frame"].bind(
247
247
  m,
248
248
  a
249
- )(), ne = D(i(a)), re = {};
250
- W.Fragment = f, W.jsx = function(l, p, N, E, L) {
249
+ )(), ne = D(c(a)), re = {};
250
+ W.Fragment = v, W.jsx = function(l, p, N, E, L) {
251
251
  var V = 1e4 > P.recentlyCreatedOwnerStacks++;
252
252
  return j(
253
253
  l,
@@ -257,7 +257,7 @@ React keys must be passed directly to JSX without using spread:
257
257
  E,
258
258
  L,
259
259
  V ? Error("react-stack-top-frame") : se,
260
- V ? D(i(l)) : ne
260
+ V ? D(c(l)) : ne
261
261
  );
262
262
  }, W.jsxs = function(l, p, N, E, L) {
263
263
  var V = 1e4 > P.recentlyCreatedOwnerStacks++;
@@ -269,24 +269,24 @@ React keys must be passed directly to JSX without using spread:
269
269
  E,
270
270
  L,
271
271
  V ? Error("react-stack-top-frame") : se,
272
- V ? D(i(l)) : ne
272
+ V ? D(c(l)) : ne
273
273
  );
274
274
  };
275
275
  }()), W;
276
276
  }
277
- var ce;
277
+ var ie;
278
278
  function ue() {
279
- return ce || (ce = 1, process.env.NODE_ENV === "production" ? X.exports = he() : X.exports = je()), X.exports;
279
+ return ie || (ie = 1, process.env.NODE_ENV === "production" ? X.exports = he() : X.exports = je()), X.exports;
280
280
  }
281
281
  var e = ue();
282
282
  const Ee = ({ 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, [c, i] = T(0), a = (d) => d === c ? "fold active" : "fold", x = (d) => "fold-button" + (n ? " fold-button--" + n : "") + (r[d].foldColor ? " fold-button--primary fold-button--" + r[d].foldColor : ""), o = (d) => {
284
284
  const h = d.which.toString(), j = d.ctrlKey && h.match(/33|34/);
285
285
  if (h.match(/38|40/) || j) {
286
- const y = h.match(/34|40/) ? 1 : -1, m = r.length, v = (i + m + y) % m;
287
- c(v);
286
+ const u = h.match(/34|40/) ? 1 : -1, m = r.length, f = (c + m + u) % m;
287
+ i(f);
288
288
  } else
289
- h === "36" && c(0), h === "35" && c(r.length - 1);
289
+ h === "36" && i(0), h === "35" && i(r.length - 1);
290
290
  d.preventDefault();
291
291
  };
292
292
  return /* @__PURE__ */ e.jsx("div", { className: "muncher-accordion", children: r.map(
@@ -294,14 +294,14 @@ const Ee = ({ variant: n, children: t }) => {
294
294
  "div",
295
295
  {
296
296
  className: a(h),
297
- "aria-expanded": i === h,
297
+ "aria-expanded": c === h,
298
298
  children: [
299
299
  /* @__PURE__ */ e.jsx(
300
300
  "button",
301
301
  {
302
302
  className: x(h),
303
303
  onKeyDown: o,
304
- onClick: () => c(h),
304
+ onClick: () => i(h),
305
305
  children: /* @__PURE__ */ e.jsx("span", { children: d.heading })
306
306
  }
307
307
  ),
@@ -315,7 +315,7 @@ const Ee = ({ variant: n, children: t }) => {
315
315
  show: n = !1,
316
316
  backdropClickHandler: t,
317
317
  ...r
318
- }) => n ? /* @__PURE__ */ e.jsx("div", { className: "muncher-backdrop", onClick: t, ...r }) : null, pe = ({ variant: n, children: t, ...r }) => /* @__PURE__ */ e.jsx("div", { className: n ? "muncher-badge muncher-badge--" + n : "muncher-badge", ...r, children: t }), ie = {
318
+ }) => n ? /* @__PURE__ */ e.jsx("div", { className: "muncher-backdrop", onClick: t, ...r }) : null, pe = ({ variant: n, children: t, ...r }) => /* @__PURE__ */ e.jsx("div", { className: n ? "muncher-badge muncher-badge--" + n : "muncher-badge", ...r, children: t }), ce = {
319
319
  "align-center": /* @__PURE__ */ e.jsxs(s, { children: [
320
320
  /* @__PURE__ */ e.jsx("line", { x1: "18", y1: "10", x2: "6", y2: "10" }),
321
321
  /* @__PURE__ */ e.jsx("line", { x1: "21", y1: "6", x2: "3", y2: "6" }),
@@ -1069,7 +1069,7 @@ const Ee = ({ 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
- }, M = ({ color: n, name: t, size: r = "small", weight: i = 2, onClick: c, iconString: a, orientation: x, children: o }) => {
1072
+ }, M = ({ color: n, name: t, size: r = "small", weight: c = 2, onClick: i, iconString: a, orientation: x, children: o }) => {
1073
1073
  const d = r ? "muncher-icon--" + r : "muncher-icon--small";
1074
1074
  return /* @__PURE__ */ e.jsxs("span", { className: "muncher-icon", children: [
1075
1075
  o && x && x === "right" ? /* @__PURE__ */ e.jsx("span", { className: "content-left", children: o }) : "",
@@ -1081,11 +1081,11 @@ const Ee = ({ variant: n, children: t }) => {
1081
1081
  xmlns: "http://www.w3.org/2000/svg",
1082
1082
  viewBox: "0 0 24 24",
1083
1083
  fill: "none",
1084
- strokeWidth: i || 2,
1084
+ strokeWidth: c || 2,
1085
1085
  strokeLinecap: "round",
1086
1086
  strokeLinejoin: "round",
1087
- onClick: c,
1088
- children: t ? ie[t] : a ? Object(ie)[a] : ""
1087
+ onClick: i,
1088
+ children: t ? ce[t] : a ? Object(ce)[a] : ""
1089
1089
  }
1090
1090
  ),
1091
1091
  o && (!x || x === "left") ? /* @__PURE__ */ e.jsx("span", { className: "content-right", children: o }) : ""
@@ -1094,14 +1094,14 @@ const Ee = ({ variant: n, children: t }) => {
1094
1094
  variant: n = "primary",
1095
1095
  icon: t = "bell",
1096
1096
  text: r,
1097
- onClick: i,
1098
- ...c
1097
+ onClick: c,
1098
+ ...i
1099
1099
  }) => /* @__PURE__ */ e.jsxs(
1100
1100
  "div",
1101
1101
  {
1102
1102
  className: "muncher-icon-badge",
1103
- onClick: i,
1104
- ...c,
1103
+ onClick: c,
1104
+ ...i,
1105
1105
  children: [
1106
1106
  /* @__PURE__ */ e.jsx(M, { name: t }),
1107
1107
  r === "" ? "" : /* @__PURE__ */ e.jsx(pe, { variant: n, children: r })
@@ -1111,50 +1111,50 @@ const Ee = ({ variant: n, children: t }) => {
1111
1111
  type: n = "button",
1112
1112
  variant: t,
1113
1113
  size: r = "medium",
1114
- title: i,
1115
- active: c,
1114
+ title: c,
1115
+ active: i,
1116
1116
  disabled: a,
1117
1117
  rounded: x,
1118
1118
  onClick: o,
1119
1119
  onMouseDown: d,
1120
1120
  onMouseEnter: h,
1121
1121
  onMouseLeave: j,
1122
- children: y,
1122
+ children: u,
1123
1123
  ...m
1124
1124
  }) => {
1125
- const v = "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 : "") + (i ? " muncher-button--active" : "") + (x ? " muncher-button--rounded" : "");
1126
1126
  return /* @__PURE__ */ e.jsx(
1127
1127
  "button",
1128
1128
  {
1129
1129
  type: n && n !== "nav" ? n : "button",
1130
- className: v,
1130
+ className: f,
1131
1131
  disabled: !!a,
1132
- title: i,
1132
+ title: c,
1133
1133
  onClick: o,
1134
1134
  onMouseDown: d,
1135
1135
  onMouseEnter: h,
1136
1136
  onMouseLeave: j,
1137
1137
  ...m,
1138
- children: y
1138
+ children: u
1139
1139
  }
1140
1140
  );
1141
1141
  }, me = ({
1142
1142
  variant: n,
1143
1143
  size: t = "medium",
1144
1144
  title: r,
1145
- active: i,
1146
- disabled: c,
1145
+ active: c,
1146
+ disabled: i,
1147
1147
  element: a,
1148
1148
  onMouseDown: x,
1149
1149
  rounded: o,
1150
1150
  drop: d,
1151
1151
  onClick: h,
1152
1152
  onClose: j,
1153
- showContent: y,
1153
+ showContent: u,
1154
1154
  setShowContent: m,
1155
- withDropIcon: v,
1155
+ withDropIcon: f,
1156
1156
  children: k,
1157
- ...f
1157
+ ...v
1158
1158
  }) => {
1159
1159
  const C = oe(null), g = (b) => {
1160
1160
  b.preventDefault(), h && h(b), m && m(!0);
@@ -1164,8 +1164,8 @@ const Ee = ({ variant: n, children: t }) => {
1164
1164
  b.keyCode === 27 && _();
1165
1165
  }, [_]);
1166
1166
  K(() => {
1167
- const b = (u) => {
1168
- C && C.current && u.target instanceof HTMLElement && !C.current.contains(u.target) && _();
1167
+ const b = (y) => {
1168
+ C && C.current && y.target instanceof HTMLElement && !C.current.contains(y.target) && _();
1169
1169
  };
1170
1170
  return document.addEventListener("keydown", z, !1), document.addEventListener("mousedown", b), () => {
1171
1171
  document.removeEventListener("keydown", z, !1);
@@ -1173,12 +1173,12 @@ const Ee = ({ variant: n, children: t }) => {
1173
1173
  }, [z, _]);
1174
1174
  const S = () => {
1175
1175
  var w;
1176
- const b = (w = C.current) == null ? void 0 : w.offsetLeft, u = window.innerWidth;
1176
+ const b = (w = C.current) == null ? void 0 : w.offsetLeft, y = window.innerWidth;
1177
1177
  if (b) {
1178
1178
  if (b < 100) return "muncher-dropdown--content";
1179
- if (u - b < 150) return "muncher-dropdown--content drop-left";
1180
- if (u - b < 250) {
1181
- const H = Math.round((u - b) / u * 100);
1179
+ if (y - b < 150) return "muncher-dropdown--content drop-left";
1180
+ if (y - b < 250) {
1181
+ const H = Math.round((y - b) / y * 100);
1182
1182
  if (H > 40 || H < 60) return "muncher-dropdown--content drop-middle";
1183
1183
  }
1184
1184
  }
@@ -1197,15 +1197,15 @@ const Ee = ({ variant: n, children: t }) => {
1197
1197
  {
1198
1198
  onMouseDown: g,
1199
1199
  title: r,
1200
- disabled: c,
1200
+ disabled: i,
1201
1201
  rounded: o,
1202
- active: i,
1202
+ active: c,
1203
1203
  variant: n,
1204
1204
  size: t,
1205
- ...f,
1205
+ ...v,
1206
1206
  children: [
1207
1207
  a,
1208
- v ? /* @__PURE__ */ e.jsx(
1208
+ f ? /* @__PURE__ */ e.jsx(
1209
1209
  "span",
1210
1210
  {
1211
1211
  className: "small",
@@ -1215,14 +1215,14 @@ const Ee = ({ variant: n, children: t }) => {
1215
1215
  ]
1216
1216
  }
1217
1217
  ),
1218
- y ? /* @__PURE__ */ e.jsx("div", { className: S(), children: k }) : ""
1218
+ u ? /* @__PURE__ */ e.jsx("div", { className: S(), children: k }) : ""
1219
1219
  ] });
1220
1220
  }, Te = ({
1221
1221
  title: n,
1222
1222
  active: t,
1223
1223
  disabled: r,
1224
- element: i,
1225
- rounded: c,
1224
+ element: c,
1225
+ rounded: i,
1226
1226
  children: a,
1227
1227
  ...x
1228
1228
  }) => /* @__PURE__ */ e.jsxs("div", { className: "muncher-dropdown-nav", children: [
@@ -1232,10 +1232,10 @@ const Ee = ({ variant: n, children: t }) => {
1232
1232
  type: "nav",
1233
1233
  title: n,
1234
1234
  disabled: r,
1235
- rounded: c,
1235
+ rounded: i,
1236
1236
  active: t,
1237
1237
  ...x,
1238
- children: i
1238
+ children: c
1239
1239
  }
1240
1240
  ),
1241
1241
  /* @__PURE__ */ e.jsx("div", { className: "muncher-dropdown-nav--content", children: a })
@@ -1246,9 +1246,9 @@ const Ee = ({ variant: n, children: t }) => {
1246
1246
  variant: t = "secondary",
1247
1247
  size: r = "small"
1248
1248
  }) => {
1249
- const [i, c] = T(), [a, x] = T("copy"), [o, d] = T("copy link"), h = () => {
1250
- fe(n), c("green"), x("check"), d("copied!"), setTimeout(function() {
1251
- c(""), x("copy");
1249
+ const [c, i] = T(), [a, x] = T("copy"), [o, d] = T("copy link"), h = () => {
1250
+ fe(n), i("green"), x("check"), d("copied!"), setTimeout(function() {
1251
+ i(""), x("copy");
1252
1252
  }, 2e3);
1253
1253
  };
1254
1254
  return /* @__PURE__ */ e.jsx(
@@ -1258,7 +1258,7 @@ const Ee = ({ variant: n, children: t }) => {
1258
1258
  variant: t,
1259
1259
  title: o,
1260
1260
  onClick: h,
1261
- children: /* @__PURE__ */ e.jsx(M, { name: a, color: i })
1261
+ children: /* @__PURE__ */ e.jsx(M, { name: a, color: c })
1262
1262
  }
1263
1263
  );
1264
1264
  }, Ae = ({
@@ -1266,13 +1266,13 @@ const Ee = ({ variant: n, children: t }) => {
1266
1266
  size: t = "medium",
1267
1267
  title: r
1268
1268
  }) => {
1269
- const [i, c] = T(!1);
1269
+ const [c, i] = T(!1);
1270
1270
  return /* @__PURE__ */ e.jsx("div", { className: "muncher-share", children: /* @__PURE__ */ e.jsxs(
1271
1271
  me,
1272
1272
  {
1273
1273
  title: "Share to Social Media",
1274
- showContent: i,
1275
- setShowContent: c,
1274
+ showContent: c,
1275
+ setShowContent: i,
1276
1276
  variant: n,
1277
1277
  size: t,
1278
1278
  element: /* @__PURE__ */ e.jsx(M, { name: "share", orientation: "right", children: "Share" }),
@@ -1312,8 +1312,8 @@ const Ee = ({ variant: n, children: t }) => {
1312
1312
  header: n,
1313
1313
  data: t,
1314
1314
  filename: r,
1315
- variant: i,
1316
- size: c,
1315
+ variant: c,
1316
+ size: i,
1317
1317
  title: a,
1318
1318
  active: x,
1319
1319
  disabled: o,
@@ -1322,18 +1322,18 @@ const Ee = ({ variant: n, children: t }) => {
1322
1322
  const h = encodeURI("data:text/csv;charset=utf-8," + n.join(",") + `
1323
1323
  ` + t.map((j) => j.join(",")).join(`
1324
1324
  `));
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(M, { name: "download", children: a || "Download" }) }) }) });
1325
+ return /* @__PURE__ */ e.jsx("div", { className: "muncher-csv", children: /* @__PURE__ */ e.jsx(O, { variant: c, size: i, active: x, disabled: o, rounded: d, children: /* @__PURE__ */ e.jsx("a", { href: h, download: r + ".csv", children: /* @__PURE__ */ e.jsx(M, { name: "download", children: a || "Download" }) }) }) });
1326
1326
  }, be = ({
1327
1327
  variant: n = "transparent",
1328
1328
  size: t = "small",
1329
1329
  title: r,
1330
- sortAsc: i = "true",
1331
- active: c,
1330
+ sortAsc: c = "true",
1331
+ active: i,
1332
1332
  rounded: a,
1333
1333
  onClick: x,
1334
1334
  children: o
1335
1335
  }) => {
1336
- const [d, h] = T(!1), j = () => !c || c && !d ? i ? /* @__PURE__ */ e.jsx(M, { name: "sort-asc" }) : /* @__PURE__ */ e.jsx(M, { name: "sort-desc" }) : i ? /* @__PURE__ */ e.jsx(M, { name: "sort-desc" }) : /* @__PURE__ */ e.jsx(M, { name: "sort-asc" });
1336
+ const [d, h] = T(!1), j = () => !i || i && !d ? c ? /* @__PURE__ */ e.jsx(M, { name: "sort-asc" }) : /* @__PURE__ */ e.jsx(M, { name: "sort-desc" }) : c ? /* @__PURE__ */ e.jsx(M, { name: "sort-desc" }) : /* @__PURE__ */ e.jsx(M, { name: "sort-asc" });
1337
1337
  return /* @__PURE__ */ e.jsxs(
1338
1338
  O,
1339
1339
  {
@@ -1350,7 +1350,7 @@ const Ee = ({ variant: n, children: t }) => {
1350
1350
  onClick: x,
1351
1351
  children: [
1352
1352
  o,
1353
- c || d ? /* @__PURE__ */ e.jsx(j, {}) : ""
1353
+ i || d ? /* @__PURE__ */ e.jsx(j, {}) : ""
1354
1354
  ]
1355
1355
  }
1356
1356
  );
@@ -1358,8 +1358,8 @@ const Ee = ({ variant: n, children: t }) => {
1358
1358
  direction: n,
1359
1359
  size: t = "small",
1360
1360
  weight: r,
1361
- isDisabled: i,
1362
- variant: c = "primary",
1361
+ isDisabled: c,
1362
+ variant: i = "primary",
1363
1363
  navIcon: a = "chevron",
1364
1364
  onClick: x
1365
1365
  }) => {
@@ -1383,27 +1383,27 @@ const Ee = ({ variant: n, children: t }) => {
1383
1383
  O,
1384
1384
  {
1385
1385
  onClick: x,
1386
- disabled: i,
1386
+ disabled: c,
1387
1387
  size: "small",
1388
- variant: c,
1388
+ variant: i,
1389
1389
  title: n === "left" ? "Navigate Left" : "Navigate Right",
1390
1390
  children: /* @__PURE__ */ e.jsx(M, { name: o(), size: t, weight: r })
1391
1391
  }
1392
1392
  )
1393
1393
  }
1394
1394
  );
1395
- }, J = ({ label: n, onClick: t, id: r, required: i = !1 }) => /* @__PURE__ */ e.jsxs("label", { htmlFor: r, onClick: t, children: [
1395
+ }, J = ({ label: n, onClick: t, id: r, required: c = !1 }) => /* @__PURE__ */ e.jsxs("label", { htmlFor: r, onClick: t, children: [
1396
1396
  n,
1397
- i ? /* @__PURE__ */ e.jsx("span", { className: "required", children: "*" }) : ""
1397
+ c ? /* @__PURE__ */ e.jsx("span", { className: "required", children: "*" }) : ""
1398
1398
  ] }), _e = ({
1399
1399
  name: n,
1400
1400
  required: t = !1,
1401
1401
  onChange: r,
1402
- checked: i = !1,
1403
- label: c,
1402
+ checked: c = !1,
1403
+ label: i,
1404
1404
  ...a
1405
1405
  }) => {
1406
- const [x, o] = T(i || !1);
1406
+ const [x, o] = T(c || !1);
1407
1407
  return /* @__PURE__ */ e.jsx("div", { className: "muncher-input--div", children: /* @__PURE__ */ e.jsxs("div", { className: "muncher-checkbox", children: [
1408
1408
  /* @__PURE__ */ e.jsx(
1409
1409
  "input",
@@ -1419,10 +1419,10 @@ const Ee = ({ variant: n, children: t }) => {
1419
1419
  ...a
1420
1420
  }
1421
1421
  ),
1422
- c ? /* @__PURE__ */ e.jsx(
1422
+ i ? /* @__PURE__ */ e.jsx(
1423
1423
  J,
1424
1424
  {
1425
- label: c,
1425
+ label: i,
1426
1426
  required: t,
1427
1427
  id: n,
1428
1428
  onClick: (d) => {
@@ -1441,8 +1441,8 @@ const Ee = ({ variant: n, children: t }) => {
1441
1441
  name: n,
1442
1442
  label: t,
1443
1443
  variant: r = "secondary",
1444
- size: i = "medium",
1445
- required: c,
1444
+ size: c = "medium",
1445
+ required: i,
1446
1446
  active: a,
1447
1447
  isUploading: x,
1448
1448
  handleOnChange: o,
@@ -1450,15 +1450,15 @@ const Ee = ({ variant: n, children: t }) => {
1450
1450
  successMessage: h,
1451
1451
  ...j
1452
1452
  }) => {
1453
- const y = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (a ? " muncher-button--active" : ""), m = (v) => {
1454
- o && o(v.currentTarget.files[0]);
1453
+ const u = "muncher-button" + (r ? " muncher-button--" + r : "") + (c ? " muncher-button--" + c : "") + (a ? " muncher-button--active" : ""), m = (f) => {
1454
+ o && o(f.currentTarget.files[0]);
1455
1455
  };
1456
1456
  return /* @__PURE__ */ e.jsx("div", { className: "muncher-file-input--div", children: /* @__PURE__ */ e.jsxs("div", { className: "file-input-element", children: [
1457
- /* @__PURE__ */ e.jsxs("label", { htmlFor: n, className: y, children: [
1457
+ /* @__PURE__ */ e.jsxs("label", { htmlFor: n, className: u, children: [
1458
1458
  /* @__PURE__ */ e.jsx(M, { name: "upload" }),
1459
1459
  " ",
1460
1460
  t || "Upload CSV",
1461
- c ? /* @__PURE__ */ e.jsx("span", { className: "required", children: " *" }) : "",
1461
+ i ? /* @__PURE__ */ e.jsx("span", { className: "required", children: " *" }) : "",
1462
1462
  x ? /* @__PURE__ */ e.jsx(we, { size: "tiny" }) : ""
1463
1463
  ] }),
1464
1464
  /* @__PURE__ */ e.jsx(
@@ -1467,7 +1467,7 @@ const Ee = ({ variant: n, children: t }) => {
1467
1467
  id: n,
1468
1468
  type: "file",
1469
1469
  className: "muncher-file-input",
1470
- required: c,
1470
+ required: i,
1471
1471
  onChange: m,
1472
1472
  accept: "text/csv",
1473
1473
  ...j
@@ -1480,8 +1480,8 @@ const Ee = ({ variant: n, children: t }) => {
1480
1480
  name: n,
1481
1481
  label: t,
1482
1482
  variant: r = "secondary",
1483
- size: i = "large",
1484
- required: c,
1483
+ size: c = "large",
1484
+ required: i,
1485
1485
  active: a,
1486
1486
  setFiles: x,
1487
1487
  error: o,
@@ -1489,10 +1489,10 @@ const Ee = ({ variant: n, children: t }) => {
1489
1489
  maxFiles: h,
1490
1490
  ...j
1491
1491
  }) => {
1492
- const [y, m] = T(""), [v, k] = T(""), f = h || 3, C = "muncher-button" + (r ? " muncher-button--" + r : "") + (i ? " muncher-button--" + i : "") + (a ? " muncher-button--active" : ""), g = (z) => {
1492
+ const [u, m] = T(""), [f, k] = T(""), v = h || 3, C = "muncher-button" + (r ? " muncher-button--" + r : "") + (c ? " muncher-button--" + c : "") + (a ? " muncher-button--active" : ""), g = (z) => {
1493
1493
  if (d) {
1494
1494
  let S = Array.from(z.currentTarget.files);
1495
- S.length > f && (S = S.slice(0, f), k("Only first " + f + " files included")), x(S), m(S.map((b) => b.name).join(", "));
1495
+ S.length > v && (S = S.slice(0, v), k("Only first " + v + " files included")), x(S), m(S.map((b) => b.name).join(", "));
1496
1496
  } else
1497
1497
  x(Array.from(z.currentTarget.files[0])), m(z.currentTarget.files[0].name);
1498
1498
  }, _ = () => o && o !== "";
@@ -1502,9 +1502,9 @@ const Ee = ({ variant: n, children: t }) => {
1502
1502
  /* @__PURE__ */ e.jsx(M, { name: "image" }),
1503
1503
  " ",
1504
1504
  t,
1505
- c ? /* @__PURE__ */ e.jsx("span", { className: "required", children: " *" }) : ""
1505
+ i ? /* @__PURE__ */ e.jsx("span", { className: "required", children: " *" }) : ""
1506
1506
  ] }),
1507
- /* @__PURE__ */ e.jsx("span", { className: "span-file-name", children: y }),
1507
+ /* @__PURE__ */ e.jsx("span", { className: "span-file-name", children: u }),
1508
1508
  /* @__PURE__ */ e.jsx(
1509
1509
  "input",
1510
1510
  {
@@ -1519,43 +1519,43 @@ const Ee = ({ variant: n, children: t }) => {
1519
1519
  }
1520
1520
  )
1521
1521
  ] }),
1522
- v !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-danger", children: v }) : "",
1522
+ f !== "" ? /* @__PURE__ */ e.jsx("p", { className: "text-danger", children: f }) : "",
1523
1523
  _() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(M, { name: "alert", children: o }) }) : ""
1524
1524
  ] });
1525
1525
  }, Me = ({
1526
1526
  name: n,
1527
1527
  label: t,
1528
1528
  required: r,
1529
- readOnly: i,
1530
- icon: c,
1529
+ readOnly: c,
1530
+ icon: i,
1531
1531
  hoverIcon: a,
1532
1532
  onHoverIconClick: x,
1533
1533
  type: o = "text",
1534
1534
  list: d,
1535
1535
  onBlur: h,
1536
1536
  labelPosition: j = "top",
1537
- onKeyDown: y,
1537
+ onKeyDown: u,
1538
1538
  error: m,
1539
- focus: v = !1,
1539
+ focus: f = !1,
1540
1540
  placeholder: k,
1541
- onChange: f,
1541
+ onChange: v,
1542
1542
  step: C,
1543
1543
  value: g,
1544
1544
  maxLength: _,
1545
1545
  onEnterPress: z,
1546
1546
  ...S
1547
1547
  }) => {
1548
- const b = () => m && m !== "", u = () => {
1548
+ const b = () => m && m !== "", y = () => {
1549
1549
  let A = "muncher-input";
1550
- return (c || a) && (A += " muncher-input-icon"), b() && (A += " muncher-input-error"), j === "side" && (A += " muncher-label-side"), A;
1550
+ return (i || a) && (A += " muncher-input-icon"), b() && (A += " muncher-input-error"), j === "side" && (A += " muncher-label-side"), A;
1551
1551
  }, w = () => t ? /* @__PURE__ */ e.jsx(J, { label: t, required: r, id: n }) : "", H = (A) => {
1552
- A.key === "Enter" && z && z(), y && y(A);
1552
+ A.key === "Enter" && z && z(), u && u(A);
1553
1553
  };
1554
1554
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
1555
1555
  j !== "side" ? w() : "",
1556
1556
  /* @__PURE__ */ e.jsxs("div", { className: "muncher-input-element", children: [
1557
1557
  j === "side" ? w() : "",
1558
- c ? /* @__PURE__ */ e.jsx(M, { name: c }) : "",
1558
+ i ? /* @__PURE__ */ e.jsx(M, { name: i }) : "",
1559
1559
  a ? /* @__PURE__ */ e.jsxs("span", { className: "muncher-icon-hover", children: [
1560
1560
  /* @__PURE__ */ e.jsx(
1561
1561
  M,
@@ -1570,16 +1570,16 @@ const Ee = ({ variant: n, children: t }) => {
1570
1570
  "input",
1571
1571
  {
1572
1572
  id: n,
1573
- className: u(),
1573
+ className: y(),
1574
1574
  name: n,
1575
- autoFocus: v,
1575
+ autoFocus: f,
1576
1576
  value: g,
1577
1577
  type: o || "text",
1578
1578
  autoComplete: "off",
1579
1579
  placeholder: k,
1580
- onChange: f,
1580
+ onChange: v,
1581
1581
  required: r,
1582
- readOnly: i,
1582
+ readOnly: c,
1583
1583
  list: d,
1584
1584
  onKeyDown: H,
1585
1585
  onBlur: h,
@@ -1591,8 +1591,8 @@ const Ee = ({ variant: n, children: t }) => {
1591
1591
  ] }),
1592
1592
  b() ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-error-message", children: /* @__PURE__ */ e.jsx(M, { name: "alert", children: m }) }) : ""
1593
1593
  ] });
1594
- }, Se = ({ name: n, required: t = !1, onChange: r, checked: i = !1, label: c, ...a }) => {
1595
- const [x, o] = T(i || !1);
1594
+ }, Se = ({ name: n, required: t = !1, onChange: r, checked: c = !1, label: i, ...a }) => {
1595
+ const [x, o] = T(c || !1);
1596
1596
  return /* @__PURE__ */ e.jsx("div", { className: "muncher-input--div", children: /* @__PURE__ */ e.jsxs("div", { className: "muncher-radio", children: [
1597
1597
  /* @__PURE__ */ e.jsx(
1598
1598
  "input",
@@ -1607,10 +1607,10 @@ const Ee = ({ variant: n, children: t }) => {
1607
1607
  ...a
1608
1608
  }
1609
1609
  ),
1610
- c ? /* @__PURE__ */ e.jsx(
1610
+ i ? /* @__PURE__ */ e.jsx(
1611
1611
  J,
1612
1612
  {
1613
- label: c,
1613
+ label: i,
1614
1614
  required: t,
1615
1615
  id: n,
1616
1616
  onClick: () => {
@@ -1623,19 +1623,19 @@ const Ee = ({ variant: n, children: t }) => {
1623
1623
  name: n,
1624
1624
  options: t,
1625
1625
  label: r,
1626
- required: i,
1627
- multiple: c,
1626
+ required: c,
1627
+ multiple: i,
1628
1628
  error: a,
1629
1629
  onChange: x,
1630
1630
  value: o,
1631
1631
  ...d
1632
1632
  }) => {
1633
1633
  const h = () => a && a !== "", j = () => {
1634
- let y = "muncher-input";
1635
- return h() && (y += " muncher-input-error"), y;
1634
+ let u = "muncher-input";
1635
+ return h() && (u += " muncher-input-error"), u;
1636
1636
  };
1637
1637
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
1638
- r ? /* @__PURE__ */ e.jsx(J, { label: r, required: i, id: n }) : "",
1638
+ r ? /* @__PURE__ */ e.jsx(J, { label: r, required: c, id: n }) : "",
1639
1639
  /* @__PURE__ */ e.jsx("div", { className: "muncher-input-element", children: /* @__PURE__ */ e.jsxs(
1640
1640
  "select",
1641
1641
  {
@@ -1644,12 +1644,12 @@ const Ee = ({ variant: n, children: t }) => {
1644
1644
  name: n,
1645
1645
  value: o,
1646
1646
  onChange: x,
1647
- required: i,
1648
- multiple: c,
1647
+ required: c,
1648
+ multiple: i,
1649
1649
  ...d,
1650
1650
  children: [
1651
- i ? /* @__PURE__ */ e.jsx("option", {}) : "",
1652
- t.map((y, m) => /* @__PURE__ */ e.jsx("option", { value: y, children: y }, "select-option-" + m))
1651
+ c ? /* @__PURE__ */ e.jsx("option", {}) : "",
1652
+ t.map((u, m) => /* @__PURE__ */ e.jsx("option", { value: u, children: u }, "select-option-" + m))
1653
1653
  ]
1654
1654
  }
1655
1655
  ) }),
@@ -1659,8 +1659,8 @@ const Ee = ({ variant: n, children: t }) => {
1659
1659
  name: n,
1660
1660
  label: t,
1661
1661
  required: r,
1662
- readOnly: i = !1,
1663
- rows: c = 6,
1662
+ readOnly: c = !1,
1663
+ rows: i = 6,
1664
1664
  maxLength: a = 1e3,
1665
1665
  focus: x = !1,
1666
1666
  placeholder: o,
@@ -1668,7 +1668,7 @@ const Ee = ({ variant: n, children: t }) => {
1668
1668
  value: h,
1669
1669
  ...j
1670
1670
  }) => {
1671
- const [y, m] = T(h), v = (k) => {
1671
+ const [u, m] = T(h), f = (k) => {
1672
1672
  m(k.target.value), d && d(k);
1673
1673
  };
1674
1674
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-input--div", children: [
@@ -1678,20 +1678,20 @@ const Ee = ({ variant: n, children: t }) => {
1678
1678
  {
1679
1679
  id: n,
1680
1680
  className: "muncher-textarea",
1681
- rows: c,
1681
+ rows: i,
1682
1682
  maxLength: a,
1683
1683
  name: n,
1684
1684
  autoFocus: x,
1685
1685
  value: h,
1686
1686
  placeholder: o,
1687
- onChange: v,
1687
+ onChange: f,
1688
1688
  required: r,
1689
- readOnly: i,
1689
+ readOnly: c,
1690
1690
  ...j
1691
1691
  }
1692
1692
  ),
1693
1693
  /* @__PURE__ */ e.jsxs("p", { children: [
1694
- y ? a ? a - y.length : 1e3 : a,
1694
+ u ? a ? a - u.length : 1e3 : a,
1695
1695
  " characters left"
1696
1696
  ] })
1697
1697
  ] });
@@ -1699,8 +1699,8 @@ const Ee = ({ variant: n, children: t }) => {
1699
1699
  focus: n = !1,
1700
1700
  inputPlaceHolder: t,
1701
1701
  handleInputChange: r,
1702
- showContent: i = !1,
1703
- setShowContent: c,
1702
+ showContent: c = !1,
1703
+ setShowContent: i,
1704
1704
  readOnly: a,
1705
1705
  value: x,
1706
1706
  label: o,
@@ -1708,24 +1708,24 @@ const Ee = ({ variant: n, children: t }) => {
1708
1708
  required: h,
1709
1709
  children: j
1710
1710
  }) => {
1711
- const y = oe(null), m = (f) => {
1712
- c(!0), r(f.target.value);
1713
- }, v = B(() => {
1714
- c(!1);
1715
- }, [c]), k = B((f) => {
1716
- f.keyCode === 27 && v();
1717
- }, [v]);
1711
+ const u = oe(null), m = (v) => {
1712
+ i(!0), r(v.target.value);
1713
+ }, f = B(() => {
1714
+ i(!1);
1715
+ }, [i]), k = B((v) => {
1716
+ v.keyCode === 27 && f();
1717
+ }, [f]);
1718
1718
  return K(() => {
1719
- const f = (C) => {
1720
- if (y && y !== null) {
1721
- const g = y.current;
1722
- g && !g.contains(C.target) && v();
1719
+ const v = (C) => {
1720
+ if (u && u !== null) {
1721
+ const g = u.current;
1722
+ g && !g.contains(C.target) && f();
1723
1723
  }
1724
1724
  };
1725
- return document.addEventListener("keydown", k, !1), document.addEventListener("mousedown", f), () => {
1725
+ return document.addEventListener("keydown", k, !1), document.addEventListener("mousedown", v), () => {
1726
1726
  document.removeEventListener("keydown", k, !1);
1727
1727
  };
1728
- }, [k, v]), /* @__PURE__ */ e.jsxs("div", { className: "muncher-input-drop-down", ref: y, children: [
1728
+ }, [k, f]), /* @__PURE__ */ e.jsxs("div", { className: "muncher-input-drop-down", ref: u, children: [
1729
1729
  /* @__PURE__ */ e.jsx(
1730
1730
  Me,
1731
1731
  {
@@ -1740,24 +1740,24 @@ const Ee = ({ variant: n, children: t }) => {
1740
1740
  error: d
1741
1741
  }
1742
1742
  ),
1743
- i ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-drop-down--content", children: j }) : ""
1743
+ c ? /* @__PURE__ */ e.jsx("div", { className: "muncher-input-drop-down--content", children: j }) : ""
1744
1744
  ] });
1745
- }, Ve = ({ children: n }) => /* @__PURE__ */ e.jsx("ul", { className: "muncher-ul", children: n }), Le = ({ 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(
1745
+ }, Ve = ({ children: n }) => /* @__PURE__ */ e.jsx("ul", { className: "muncher-ul", children: n }), Le = ({ isFeatured: n, bulletIcon: t = "arrow-right", bulletWeight: r = 2, bulletSize: c = "small", bulletColor: i, children: a }) => /* @__PURE__ */ e.jsx("li", { className: n ? "muncher-li featured" : "muncher-li", children: /* @__PURE__ */ e.jsx(
1746
1746
  M,
1747
1747
  {
1748
1748
  name: t,
1749
1749
  weight: r,
1750
- size: i,
1751
- color: c,
1750
+ size: c,
1751
+ color: i,
1752
1752
  children: a
1753
1753
  }
1754
- ) }), Pe = ({ show: n = !1, setShow: t, children: r, ...i }) => {
1755
- const c = B((a) => {
1754
+ ) }), Pe = ({ show: n = !1, setShow: t, children: r, ...c }) => {
1755
+ const i = B((a) => {
1756
1756
  a.keyCode === 27 && t(!1);
1757
1757
  }, [t]);
1758
- return K(() => (document.addEventListener("keydown", c, !1), () => {
1759
- document.removeEventListener("keydown", c, !1);
1760
- }), [c]), K(() => {
1758
+ return K(() => (document.addEventListener("keydown", i, !1), () => {
1759
+ document.removeEventListener("keydown", i, !1);
1760
+ }), [i]), K(() => {
1761
1761
  n ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset";
1762
1762
  }, [n]), /* @__PURE__ */ e.jsxs(xe.Fragment, { children: [
1763
1763
  /* @__PURE__ */ e.jsx(ye, { show: n, backdropClickHandler: () => t(!1) }),
@@ -1769,14 +1769,14 @@ const Ee = ({ variant: n, children: t }) => {
1769
1769
  transform: n ? "translateY(0)" : "translateY(-100vh)",
1770
1770
  opacity: n ? "1" : "0"
1771
1771
  },
1772
- ...i,
1772
+ ...c,
1773
1773
  children: r
1774
1774
  }
1775
1775
  )
1776
1776
  ] });
1777
1777
  }, De = ({ showHoverEffect: n, onClick: t, children: r }) => {
1778
- const i = () => n ? "muncher-paper muncher-paper-hover" : "muncher-paper";
1779
- return /* @__PURE__ */ e.jsx("section", { className: i(), onClick: t, children: r });
1778
+ const c = () => n ? "muncher-paper muncher-paper-hover" : "muncher-paper";
1779
+ return /* @__PURE__ */ e.jsx("section", { className: c(), onClick: t, children: r });
1780
1780
  }, Fe = ({ pillCloseHandler: n, children: t, ...r }) => /* @__PURE__ */ e.jsxs("div", { className: "muncher-pill", ...r, children: [
1781
1781
  /* @__PURE__ */ e.jsx("div", { className: "close", onClick: n, children: /* @__PURE__ */ e.jsx(M, { name: "close" }) }),
1782
1782
  /* @__PURE__ */ e.jsxs("div", { className: "content", children: [
@@ -1784,64 +1784,68 @@ const Ee = ({ variant: n, children: t }) => {
1784
1784
  t
1785
1785
  ] })
1786
1786
  ] }), Ie = ({ value: n, max: t, label: r }) => {
1787
- const i = () => {
1788
- const c = Math.round(n / t * 100) + "%";
1789
- return r ? r + " " + c : c;
1787
+ const c = () => {
1788
+ const i = Math.round(n / t * 100) + "%";
1789
+ return r ? r + " " + i : i;
1790
1790
  };
1791
1791
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-progress", children: [
1792
- /* @__PURE__ */ e.jsx("label", { htmlFor: "progress", children: i() }),
1793
- /* @__PURE__ */ e.jsx("progress", { id: "progress", value: n, max: t, children: i() })
1792
+ /* @__PURE__ */ e.jsx("label", { htmlFor: "progress", children: c() }),
1793
+ /* @__PURE__ */ e.jsx("progress", { id: "progress", value: n, max: t, children: c() })
1794
1794
  ] });
1795
1795
  }, Ye = ({ variant: n, size: t, style: r }) => {
1796
- const i = "muncher-hr" + (n ? " muncher-hr--" + n : "") + (t ? " muncher-hr--" + t : "") + (r ? " muncher-hr--" + r : "");
1797
- return /* @__PURE__ */ e.jsx("hr", { className: i });
1798
- }, Ue = ({ sliderItems: n, navButtonSize: t = "large", navButtonWeight: r = 2, variant: i, navIcon: c }) => {
1799
- const [a, x] = T(0), [o, d] = T(0);
1800
- return /* @__PURE__ */ e.jsxs("div", { className: "muncher-item-slider", children: [
1801
- n.length > 1 && a > 0 ? /* @__PURE__ */ e.jsx(
1802
- ae,
1803
- {
1804
- direction: "left",
1805
- size: t,
1806
- variant: i,
1807
- navIcon: c,
1808
- weight: r,
1809
- onClick: () => {
1810
- a === 0 ? (d(-(n.length - 1) * 100), x(n.length - 1)) : (d(o + 100), x(a - 1));
1811
- }
1796
+ const c = "muncher-hr" + (n ? " muncher-hr--" + n : "") + (t ? " muncher-hr--" + t : "") + (r ? " muncher-hr--" + r : "");
1797
+ return /* @__PURE__ */ e.jsx("hr", { className: c });
1798
+ }, Ue = ({ sliderItems: n, navButtonSize: t = "large", navButtonWeight: r = 2, variant: c, navIcon: i, navButtonPlacement: a = "inside" }) => {
1799
+ const [x, o] = T(0), [d, h] = T(0), j = () => n.length > 1 && x > 0 ? /* @__PURE__ */ e.jsx(
1800
+ ae,
1801
+ {
1802
+ direction: "left",
1803
+ size: t,
1804
+ variant: c,
1805
+ navIcon: i,
1806
+ weight: r,
1807
+ onClick: () => {
1808
+ x === 0 ? (h(-(n.length - 1) * 100), o(n.length - 1)) : (h(d + 100), o(x - 1));
1812
1809
  }
1813
- ) : "",
1814
- /* @__PURE__ */ e.jsx("div", { className: "slider-container", style: { width: `${100 * n.length}%` }, children: n.map(
1815
- (h, j) => /* @__PURE__ */ e.jsx(
1816
- "div",
1817
- {
1818
- className: "slider-item",
1819
- style: { transform: `translateX(${o}%)` },
1820
- children: h
1821
- },
1822
- "slider-item" + j
1823
- )
1824
- ) }),
1825
- n.length > 1 && a < n.length - 1 ? /* @__PURE__ */ e.jsx(
1826
- ae,
1827
- {
1828
- direction: "right",
1829
- size: t,
1830
- weight: r,
1831
- navIcon: c,
1832
- variant: i,
1833
- onClick: () => {
1834
- a === n.length - 1 ? (x(0), d(0)) : (d(o - 100), x(a + 1));
1835
- }
1810
+ }
1811
+ ) : "", u = () => n.length > 1 && x < n.length - 1 ? /* @__PURE__ */ e.jsx(
1812
+ ae,
1813
+ {
1814
+ direction: "right",
1815
+ size: t,
1816
+ weight: r,
1817
+ navIcon: i,
1818
+ variant: c,
1819
+ onClick: () => {
1820
+ x === n.length - 1 ? (o(0), h(0)) : (h(d - 100), o(x + 1));
1836
1821
  }
1837
- ) : ""
1822
+ }
1823
+ ) : "";
1824
+ return /* @__PURE__ */ e.jsxs("div", { className: "muncher-item-slider-wrapper--" + a, children: [
1825
+ a === "outside" ? j() : "",
1826
+ /* @__PURE__ */ e.jsxs("div", { className: "muncher-item-slider", children: [
1827
+ a === "inside" ? j() : "",
1828
+ /* @__PURE__ */ e.jsx("div", { className: "slider-container", style: { width: `${100 * n.length}%` }, children: n.map(
1829
+ (m, f) => /* @__PURE__ */ e.jsx(
1830
+ "div",
1831
+ {
1832
+ className: "slider-item",
1833
+ style: { transform: `translateX(${d}%)` },
1834
+ children: m
1835
+ },
1836
+ "slider-item" + f
1837
+ )
1838
+ ) }),
1839
+ a === "inside" ? u() : ""
1840
+ ] }),
1841
+ a === "outside" ? u() : ""
1838
1842
  ] });
1839
1843
  }, $e = ({
1840
1844
  min: n,
1841
1845
  max: t,
1842
1846
  minValue: r,
1843
- maxValue: i,
1844
- setMinValue: c,
1847
+ maxValue: c,
1848
+ setMinValue: i,
1845
1849
  setMaxValue: a,
1846
1850
  numberFormatter: x = (o) => new Intl.NumberFormat("en-US", {
1847
1851
  style: "currency",
@@ -1849,14 +1853,14 @@ const Ee = ({ variant: n, children: t }) => {
1849
1853
  }).format(o)
1850
1854
  }) => {
1851
1855
  const o = (j) => {
1852
- const y = +j.target.value, m = y < i - 1 ? y : r;
1853
- c(m);
1856
+ const u = +j.target.value, m = u < c - 1 ? u : r;
1857
+ i(m);
1854
1858
  }, d = (j) => {
1855
- const y = +j.target.value, m = y > r + 1 ? y : i;
1859
+ const u = +j.target.value, m = u > r + 1 ? u : c;
1856
1860
  a(m);
1857
1861
  }, h = (j) => x && j ? x(j) : j;
1858
1862
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-slider", children: [
1859
- /* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children: h(r) + " - " + h(i) }) }),
1863
+ /* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children: h(r) + " - " + h(c) }) }),
1860
1864
  /* @__PURE__ */ e.jsx(
1861
1865
  "input",
1862
1866
  {
@@ -1875,7 +1879,7 @@ const Ee = ({ variant: n, children: t }) => {
1875
1879
  type: "range",
1876
1880
  min: n,
1877
1881
  max: t,
1878
- value: i,
1882
+ value: c,
1879
1883
  onChange: d
1880
1884
  }
1881
1885
  ),
@@ -1888,15 +1892,15 @@ const Ee = ({ variant: n, children: t }) => {
1888
1892
  min: n,
1889
1893
  max: t,
1890
1894
  value: r,
1891
- setValue: i,
1892
- numberFormatter: c = (a) => new Intl.NumberFormat("en-US", {
1895
+ setValue: c,
1896
+ numberFormatter: i = (a) => new Intl.NumberFormat("en-US", {
1893
1897
  style: "currency",
1894
1898
  currency: "USD"
1895
1899
  }).format(a)
1896
1900
  }) => {
1897
- const a = (o) => c ? c(o) : o, x = (o) => {
1901
+ const a = (o) => i ? i(o) : o, x = (o) => {
1898
1902
  const d = +o.target.value;
1899
- i(d);
1903
+ c(d);
1900
1904
  };
1901
1905
  return /* @__PURE__ */ e.jsxs("div", { className: "muncher-slider", children: [
1902
1906
  /* @__PURE__ */ e.jsx("div", { className: "slider-header", children: /* @__PURE__ */ e.jsx("p", { children: a(r) }) }),
@@ -1916,20 +1920,20 @@ const Ee = ({ variant: n, children: t }) => {
1916
1920
  /* @__PURE__ */ e.jsx("div", { className: "slider-max", children: a(t) })
1917
1921
  ] })
1918
1922
  ] });
1919
- }, Be = ({ isFeatured: n, onClick: t }) => /* @__PURE__ */ e.jsx("span", { className: "span-featured", children: /* @__PURE__ */ e.jsx("span", { className: n ? "featured-star" : "un-featured-star", onClick: t }) }), Je = ({ rating: n, color: t, size: r, ...i }) => {
1920
- const c = {
1923
+ }, Be = ({ isFeatured: n, onClick: t }) => /* @__PURE__ */ e.jsx("span", { className: "span-featured", children: /* @__PURE__ */ e.jsx("span", { className: n ? "featured-star" : "un-featured-star", onClick: t }) }), Je = ({ rating: n, color: t, size: r, ...c }) => {
1924
+ const i = {
1921
1925
  "--r": n
1922
1926
  }, a = () => {
1923
1927
  let x = "muncher-star";
1924
1928
  return t && (x += " star-" + t), r && (x += " star-" + r), x;
1925
1929
  };
1926
- return /* @__PURE__ */ e.jsx("span", { className: a(), style: c, ...i });
1930
+ return /* @__PURE__ */ e.jsx("span", { className: a(), style: i, ...c });
1927
1931
  }, Ge = ({ handleTabSelected: n, children: t }) => {
1928
- const [r, i] = T(0), { tabs: c } = t, a = (x) => {
1929
- i(x), n && n(x);
1932
+ const [r, c] = T(0), { tabs: i } = t, a = (x) => {
1933
+ c(x), n && n(x);
1930
1934
  };
1931
1935
  return /* @__PURE__ */ e.jsxs("section", { className: "muncher-tabs", children: [
1932
- /* @__PURE__ */ e.jsx("header", { children: c.map(
1936
+ /* @__PURE__ */ e.jsx("header", { children: i.map(
1933
1937
  (x, o) => /* @__PURE__ */ e.jsxs("div", { className: "muncher-tab-header--item", children: [
1934
1938
  /* @__PURE__ */ e.jsx(
1935
1939
  O,
@@ -1944,10 +1948,10 @@ const Ee = ({ variant: n, children: t }) => {
1944
1948
  children: x.header
1945
1949
  }
1946
1950
  ),
1947
- o !== c.length - 1 ? /* @__PURE__ */ e.jsx("span", { className: "spacer", children: "|" }) : ""
1951
+ o !== i.length - 1 ? /* @__PURE__ */ e.jsx("span", { className: "spacer", children: "|" }) : ""
1948
1952
  ] }, "muncher-tab-header" + o)
1949
1953
  ) }),
1950
- c.map(
1954
+ i.map(
1951
1955
  (x, o) => /* @__PURE__ */ e.jsx(
1952
1956
  "section",
1953
1957
  {
@@ -1962,68 +1966,68 @@ const Ee = ({ variant: n, children: t }) => {
1962
1966
  fileName: n,
1963
1967
  defaultPageSize: t,
1964
1968
  skeleton: r,
1965
- handleOnUpload: i,
1966
- sortBy: c,
1969
+ handleOnUpload: c,
1970
+ sortBy: i,
1967
1971
  excludeDownload: a,
1968
1972
  includeUpload: x,
1969
1973
  isUploading: o,
1970
1974
  uploadWarningMessage: d,
1971
1975
  uploadSuccessMessage: h,
1972
1976
  excludePagination: j,
1973
- footer: y,
1977
+ footer: u,
1974
1978
  children: m
1975
1979
  }) => {
1976
- const { header: v, rows: k } = m, [f, C] = T(c || { index: 0 }), [g, _] = T({ num: 0, size: t || 50 }), z = (u) => {
1977
- f.index === u ? C({ ...f, desc: !f.desc }) : C({ index: u });
1980
+ const { header: f, rows: k } = m, [v, C] = T(i || { index: 0 }), [g, _] = T({ num: 0, size: t || 50 }), z = (y) => {
1981
+ v.index === y ? C({ ...v, desc: !v.desc }) : C({ index: y });
1978
1982
  }, S = () => {
1979
- if (v[f.index].sort) {
1980
- const u = k.sort(v[f.index].sort);
1981
- return f.desc ? u.reverse() : u;
1983
+ if (f[v.index].sort) {
1984
+ const y = k.sort(f[v.index].sort);
1985
+ return v.desc ? y.reverse() : y;
1982
1986
  }
1983
1987
  return k.sort(
1984
- (u, w) => {
1988
+ (y, w) => {
1985
1989
  var P, I, q, D, Y, U;
1986
- if (((P = u[f.index]) == null ? void 0 : P.value) === null || ((I = w[f.index]) == null ? void 0 : I.value) === null)
1990
+ if (((P = y[v.index]) == null ? void 0 : P.value) === null || ((I = w[v.index]) == null ? void 0 : I.value) === null)
1987
1991
  return 0;
1988
- const H = (D = (q = u[f.index]) == null ? void 0 : q.value) == null ? void 0 : D.toString().toLowerCase(), A = (U = (Y = w[f.index]) == null ? void 0 : Y.value) == null ? void 0 : U.toString().toLowerCase();
1992
+ const H = (D = (q = y[v.index]) == null ? void 0 : q.value) == null ? void 0 : D.toString().toLowerCase(), A = (U = (Y = w[v.index]) == null ? void 0 : Y.value) == null ? void 0 : U.toString().toLowerCase();
1989
1993
  let G = H.localeCompare(A);
1990
- return f.desc ? -G : G;
1994
+ return v.desc ? -G : G;
1991
1995
  }
1992
1996
  );
1993
1997
  }, b = () => (g.num + 1) * g.size;
1994
1998
  return /* @__PURE__ */ e.jsxs("section", { className: "muncher-table", children: [
1995
- /* @__PURE__ */ e.jsx("div", { className: "row head", children: v.map(
1996
- (u, w) => u.visibility === "hidden" ? "" : /* @__PURE__ */ e.jsx(
1999
+ /* @__PURE__ */ e.jsx("div", { className: "row head", children: f.map(
2000
+ (y, w) => y.visibility === "hidden" ? "" : /* @__PURE__ */ e.jsx(
1997
2001
  "div",
1998
2002
  {
1999
- title: u.title,
2000
- className: u.visibility ? "col main" : "col",
2001
- children: typeof u.name == "string" ? /* @__PURE__ */ e.jsx("div", { className: "sort-button", children: /* @__PURE__ */ e.jsx(
2003
+ title: y.title,
2004
+ className: y.visibility ? "col main" : "col",
2005
+ children: typeof y.name == "string" ? /* @__PURE__ */ e.jsx("div", { className: "sort-button", children: /* @__PURE__ */ e.jsx(
2002
2006
  be,
2003
2007
  {
2004
2008
  onClick: () => {
2005
2009
  z(w);
2006
2010
  },
2007
- active: f.index === w,
2008
- sortAsc: !f.desc,
2009
- children: u.name
2011
+ active: v.index === w,
2012
+ sortAsc: !v.desc,
2013
+ children: y.name
2010
2014
  }
2011
- ) }) : u.name
2015
+ ) }) : y.name
2012
2016
  },
2013
- "row-head-" + u.name
2017
+ "row-head-" + y.name
2014
2018
  )
2015
2019
  ) }),
2016
2020
  r || S().slice(g.num * g.size, b() - 1).map(
2017
- (u, w) => /* @__PURE__ */ e.jsx("div", { className: "row", children: u.map((H, A) => v[A].visibility === "hidden" ? "" : /* @__PURE__ */ e.jsx(
2021
+ (y, w) => /* @__PURE__ */ e.jsx("div", { className: "row", children: y.map((H, A) => f[A].visibility === "hidden" ? "" : /* @__PURE__ */ e.jsx(
2018
2022
  "div",
2019
2023
  {
2020
- className: v[A].visibility ? "col main" : "col",
2024
+ className: f[A].visibility ? "col main" : "col",
2021
2025
  children: H.content
2022
2026
  },
2023
2027
  "row-col" + w + A
2024
2028
  )) }, "row-" + w)
2025
2029
  ),
2026
- y || "",
2030
+ u || "",
2027
2031
  /* @__PURE__ */ e.jsxs("div", { className: "row-footer", children: [
2028
2032
  /* @__PURE__ */ e.jsxs("div", { className: "row-footer-buttons", children: [
2029
2033
  a ? "" : /* @__PURE__ */ e.jsx(
@@ -2032,9 +2036,9 @@ const Ee = ({ variant: n, children: t }) => {
2032
2036
  filename: n || "download",
2033
2037
  variant: "secondary",
2034
2038
  title: "Download",
2035
- header: v.filter((u) => !u.csvExclude).map((u) => typeof u.name == "string" ? u.name : ""),
2039
+ header: f.filter((y) => !y.csvExclude).map((y) => typeof y.name == "string" ? y.name : ""),
2036
2040
  data: k.map(
2037
- (u) => u.filter((w, H) => !v[H].csvExclude).map((w) => w.csv ? w.csv ? w.csv : "" : w.value ? w.value : "")
2041
+ (y) => y.filter((w, H) => !f[H].csvExclude).map((w) => w.csv ? w.csv ? w.csv : "" : w.value ? w.value : "")
2038
2042
  )
2039
2043
  }
2040
2044
  ),
@@ -2042,7 +2046,7 @@ const Ee = ({ variant: n, children: t }) => {
2042
2046
  Ne,
2043
2047
  {
2044
2048
  name: "csv-input-file",
2045
- handleOnChange: i,
2049
+ handleOnChange: c,
2046
2050
  isUploading: o,
2047
2051
  warningMessage: d,
2048
2052
  successMessage: h
@@ -2058,10 +2062,10 @@ const Ee = ({ variant: n, children: t }) => {
2058
2062
  name: "pageSize",
2059
2063
  options: ["50", "100", "500"],
2060
2064
  value: g.size,
2061
- onChange: (u) => {
2065
+ onChange: (y) => {
2062
2066
  _({
2063
2067
  ...g,
2064
- size: parseInt(u.target.value)
2068
+ size: parseInt(y.target.value)
2065
2069
  });
2066
2070
  }
2067
2071
  }