jcicl 1.2.1 → 1.2.2

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/Nav/Nav.js CHANGED
@@ -1,79 +1,79 @@
1
1
  import { jsx as d, jsxs as z } from "react/jsx-runtime";
2
- import H, { useRef as j, useEffect as K, useCallback as D, useState as V } from "react";
3
- import { _ as h, n as M, i as q } from "../.chunks/emotion-styled.browser.esm.js";
4
- import ee from "../theme.js";
5
- import re from "../ScrollContainer/ScrollContainer.js";
6
- import { _ } from "../.chunks/TransitionGroupContext.js";
7
- import { B as oe } from "../.chunks/ButtonBase.js";
8
- var B = 100, te = (r) => {
2
+ import j, { useRef as I, useEffect as K, useCallback as S, useState as F, isValidElement as ee, cloneElement as re } from "react";
3
+ import { _ as h, n as _, i as te } from "../.chunks/emotion-styled.browser.esm.js";
4
+ import oe from "../theme.js";
5
+ import ae from "../ScrollContainer/ScrollContainer.js";
6
+ import { _ as M } from "../.chunks/TransitionGroupContext.js";
7
+ import { B as ne } from "../.chunks/ButtonBase.js";
8
+ var B = 100, ie = (e) => {
9
9
  var {
10
- h: o,
11
- s: e,
12
- l: t,
10
+ h: t,
11
+ s: r,
12
+ l: o,
13
13
  a
14
- } = ae(r);
15
- return "hsla(" + o + ", " + e + "%, " + t + "%, " + a + ")";
16
- }, ae = (r) => {
14
+ } = le(e);
15
+ return "hsla(" + t + ", " + r + "%, " + o + "%, " + a + ")";
16
+ }, le = (e) => {
17
17
  var {
18
- h: o,
19
- s: e,
20
- v: t,
18
+ h: t,
19
+ s: r,
20
+ v: o,
21
21
  a
22
- } = r, l = (200 - e) * t / B;
22
+ } = e, l = (200 - r) * o / B;
23
23
  return {
24
- h: o,
25
- s: l > 0 && l < 200 ? e * t / B / (l <= B ? l : 200 - l) * B : 0,
24
+ h: t,
25
+ s: l > 0 && l < 200 ? r * o / B / (l <= B ? l : 200 - l) * B : 0,
26
26
  l: l / 2,
27
27
  a
28
28
  };
29
29
  };
30
- function I(r) {
31
- var o = j(r);
30
+ function L(e) {
31
+ var t = I(e);
32
32
  return K(() => {
33
- o.current = r;
34
- }), D((e, t) => o.current && o.current(e, t), []);
33
+ t.current = e;
34
+ }), S((r, o) => t.current && t.current(r, o), []);
35
35
  }
36
- var P = (r) => "touches" in r, L = (r) => {
37
- !P(r) && r.preventDefault && r.preventDefault();
38
- }, W = function(o, e, t) {
39
- return e === void 0 && (e = 0), t === void 0 && (t = 1), o > t ? t : o < e ? e : o;
40
- }, Y = (r, o) => {
41
- var e = r.getBoundingClientRect(), t = P(o) ? o.touches[0] : o;
36
+ var R = (e) => "touches" in e, H = (e) => {
37
+ !R(e) && e.preventDefault && e.preventDefault();
38
+ }, W = function(t, r, o) {
39
+ return r === void 0 && (r = 0), o === void 0 && (o = 1), t > o ? o : t < r ? r : t;
40
+ }, Y = (e, t) => {
41
+ var r = e.getBoundingClientRect(), o = R(t) ? t.touches[0] : t;
42
42
  return {
43
- left: W((t.pageX - (e.left + window.pageXOffset)) / e.width),
44
- top: W((t.pageY - (e.top + window.pageYOffset)) / e.height),
45
- width: e.width,
46
- height: e.height,
47
- x: t.pageX - (e.left + window.pageXOffset),
48
- y: t.pageY - (e.top + window.pageYOffset)
43
+ left: W((o.pageX - (r.left + window.pageXOffset)) / r.width),
44
+ top: W((o.pageY - (r.top + window.pageYOffset)) / r.height),
45
+ width: r.width,
46
+ height: r.height,
47
+ x: o.pageX - (r.left + window.pageXOffset),
48
+ y: o.pageY - (r.top + window.pageYOffset)
49
49
  };
50
- }, ne = ["prefixCls", "className", "onMove", "onDown"], Q = /* @__PURE__ */ H.forwardRef((r, o) => {
50
+ }, se = ["prefixCls", "className", "onMove", "onDown"], Q = /* @__PURE__ */ j.forwardRef((e, t) => {
51
51
  var {
52
- prefixCls: e = "w-color-interactive",
53
- className: t,
52
+ prefixCls: r = "w-color-interactive",
53
+ className: o,
54
54
  onMove: a,
55
55
  onDown: l
56
- } = r, c = _(r, ne), u = j(null), f = j(!1), [v, b] = V(!1), C = I(a), s = I(l), N = (i) => f.current && !P(i) ? !1 : (f.current = P(i), !0), g = D((i) => {
57
- if (L(i), !!u.current) {
58
- var m = P(i) ? i.touches.length > 0 : i.buttons > 0;
56
+ } = e, c = M(e, se), u = I(null), f = I(!1), [v, b] = F(!1), A = L(a), s = L(l), E = (i) => f.current && !R(i) ? !1 : (f.current = R(i), !0), g = S((i) => {
57
+ if (H(i), !!u.current) {
58
+ var m = R(i) ? i.touches.length > 0 : i.buttons > 0;
59
59
  if (!m) {
60
60
  b(!1);
61
61
  return;
62
62
  }
63
- C == null || C(Y(u.current, i), i);
63
+ A == null || A(Y(u.current, i), i);
64
64
  }
65
- }, [C]), p = D(() => b(!1), []), n = D((i) => {
65
+ }, [A]), p = S(() => b(!1), []), n = S((i) => {
66
66
  i ? (window.addEventListener(f.current ? "touchmove" : "mousemove", g), window.addEventListener(f.current ? "touchend" : "mouseup", p)) : (window.removeEventListener("mousemove", g), window.removeEventListener("mouseup", p), window.removeEventListener("touchmove", g), window.removeEventListener("touchend", p));
67
67
  }, [g, p]);
68
68
  K(() => (n(v), () => {
69
69
  n(!1);
70
70
  }), [v, g, p, n]);
71
- var y = D((i) => {
71
+ var y = S((i) => {
72
72
  var m = document.activeElement;
73
- m == null || m.blur(), L(i.nativeEvent), N(i.nativeEvent) && u.current && (s == null || s(Y(u.current, i.nativeEvent), i.nativeEvent), b(!0));
73
+ m == null || m.blur(), H(i.nativeEvent), E(i.nativeEvent) && u.current && (s == null || s(Y(u.current, i.nativeEvent), i.nativeEvent), b(!0));
74
74
  }, [s]);
75
75
  return /* @__PURE__ */ d("div", h({}, c, {
76
- className: [e, t || ""].filter(Boolean).join(" "),
76
+ className: [r, o || ""].filter(Boolean).join(" "),
77
77
  style: h({}, c.style, {
78
78
  touchAction: "none"
79
79
  }),
@@ -84,17 +84,17 @@ var P = (r) => "touches" in r, L = (r) => {
84
84
  }));
85
85
  });
86
86
  Q.displayName = "Interactive";
87
- var ie = ["className", "prefixCls", "left", "top", "style", "fillProps"], le = (r) => {
87
+ var de = ["className", "prefixCls", "left", "top", "style", "fillProps"], ce = (e) => {
88
88
  var {
89
- className: o,
90
- prefixCls: e,
91
- left: t,
89
+ className: t,
90
+ prefixCls: r,
91
+ left: o,
92
92
  top: a,
93
93
  style: l,
94
94
  fillProps: c
95
- } = r, u = _(r, ie), f = h({}, l, {
95
+ } = e, u = M(e, de), f = h({}, l, {
96
96
  position: "absolute",
97
- left: t,
97
+ left: o,
98
98
  top: a
99
99
  }), v = h({
100
100
  width: 18,
@@ -103,22 +103,22 @@ var ie = ["className", "prefixCls", "left", "top", "style", "fillProps"], le = (
103
103
  borderRadius: "50%",
104
104
  backgroundColor: "var(--alpha-pointer-background-color)"
105
105
  }, c == null ? void 0 : c.style, {
106
- transform: t ? "translate(-9px, -1px)" : "translate(-1px, -9px)"
106
+ transform: o ? "translate(-9px, -1px)" : "translate(-1px, -9px)"
107
107
  });
108
108
  return /* @__PURE__ */ d("div", h({
109
- className: e + "-pointer " + (o || ""),
109
+ className: r + "-pointer " + (t || ""),
110
110
  style: f
111
111
  }, u, {
112
112
  children: /* @__PURE__ */ d("div", h({
113
- className: e + "-fill"
113
+ className: r + "-fill"
114
114
  }, c, {
115
115
  style: v
116
116
  }))
117
117
  }));
118
- }, se = ["prefixCls", "className", "hsva", "background", "bgProps", "innerProps", "pointerProps", "radius", "width", "height", "direction", "style", "onChange", "pointer"], de = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==", $ = /* @__PURE__ */ H.forwardRef((r, o) => {
118
+ }, he = ["prefixCls", "className", "hsva", "background", "bgProps", "innerProps", "pointerProps", "radius", "width", "height", "direction", "style", "onChange", "pointer"], pe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==", $ = /* @__PURE__ */ j.forwardRef((e, t) => {
119
119
  var {
120
- prefixCls: e = "w-color-alpha",
121
- className: t,
120
+ prefixCls: r = "w-color-alpha",
121
+ className: o,
122
122
  hsva: a,
123
123
  background: l,
124
124
  bgProps: c = {},
@@ -126,16 +126,16 @@ var ie = ["className", "prefixCls", "left", "top", "style", "fillProps"], le = (
126
126
  pointerProps: f = {},
127
127
  radius: v = 0,
128
128
  width: b,
129
- height: C = 16,
129
+ height: A = 16,
130
130
  direction: s = "horizontal",
131
- style: N,
131
+ style: E,
132
132
  onChange: g,
133
133
  pointer: p
134
- } = r, n = _(r, se), y = (x) => {
134
+ } = e, n = M(e, he), y = (x) => {
135
135
  g && g(h({}, a, {
136
136
  a: s === "horizontal" ? x.left : x.top
137
137
  }), x);
138
- }, i = te(Object.assign({}, a, {
138
+ }, i = ie(Object.assign({}, a, {
139
139
  a: 1
140
140
  })), m = "linear-gradient(to " + (s === "horizontal" ? "right" : "bottom") + ", rgba(244, 67, 54, 0) 0%, " + i + " 100%)", w = {};
141
141
  s === "horizontal" ? w.left = a.a * 100 + "%" : w.top = a.a * 100 + "%";
@@ -144,55 +144,55 @@ var ie = ["className", "prefixCls", "left", "top", "style", "fillProps"], le = (
144
144
  "--alpha-pointer-background-color": "rgb(248, 248, 248)",
145
145
  "--alpha-pointer-box-shadow": "rgb(0 0 0 / 37%) 0px 1px 4px 0px",
146
146
  borderRadius: v,
147
- background: "url(" + de + ") left center",
147
+ background: "url(" + pe + ") left center",
148
148
  backgroundColor: "var(--alpha-background-color)"
149
149
  }, {
150
150
  width: b,
151
- height: C
152
- }, N, {
151
+ height: A
152
+ }, E, {
153
153
  position: "relative"
154
- }), E = D((x) => {
155
- var R = 0.01, S = a.a, A = S;
154
+ }), N = S((x) => {
155
+ var P = 0.01, D = a.a, C = D;
156
156
  switch (x.key) {
157
157
  case "ArrowLeft":
158
- s === "horizontal" && (A = Math.max(0, S - R), x.preventDefault());
158
+ s === "horizontal" && (C = Math.max(0, D - P), x.preventDefault());
159
159
  break;
160
160
  case "ArrowRight":
161
- s === "horizontal" && (A = Math.min(1, S + R), x.preventDefault());
161
+ s === "horizontal" && (C = Math.min(1, D + P), x.preventDefault());
162
162
  break;
163
163
  case "ArrowUp":
164
- s === "vertical" && (A = Math.max(0, S - R), x.preventDefault());
164
+ s === "vertical" && (C = Math.max(0, D - P), x.preventDefault());
165
165
  break;
166
166
  case "ArrowDown":
167
- s === "vertical" && (A = Math.min(1, S + R), x.preventDefault());
167
+ s === "vertical" && (C = Math.min(1, D + P), x.preventDefault());
168
168
  break;
169
169
  default:
170
170
  return;
171
171
  }
172
- if (A !== S) {
173
- var Z = {
174
- left: s === "horizontal" ? A : a.a,
175
- top: s === "vertical" ? A : a.a,
172
+ if (C !== D) {
173
+ var q = {
174
+ left: s === "horizontal" ? C : a.a,
175
+ top: s === "vertical" ? C : a.a,
176
176
  width: 0,
177
177
  height: 0,
178
178
  x: 0,
179
179
  y: 0
180
180
  };
181
181
  g && g(h({}, a, {
182
- a: A
183
- }), Z);
182
+ a: C
183
+ }), q);
184
184
  }
185
- }, [a, s, g]), J = D((x) => {
185
+ }, [a, s, g]), Z = S((x) => {
186
186
  x.target.focus();
187
187
  }, []), T = p && typeof p == "function" ? p(h({
188
- prefixCls: e
189
- }, f, w)) : /* @__PURE__ */ d(le, h({}, f, {
190
- prefixCls: e
188
+ prefixCls: r
189
+ }, f, w)) : /* @__PURE__ */ d(ce, h({}, f, {
190
+ prefixCls: r
191
191
  }, w));
192
192
  return /* @__PURE__ */ z("div", h({}, n, {
193
- className: [e, e + "-" + s, t || ""].filter(Boolean).join(" "),
193
+ className: [r, r + "-" + s, o || ""].filter(Boolean).join(" "),
194
194
  style: k,
195
- ref: o,
195
+ ref: t,
196
196
  children: [/* @__PURE__ */ d("div", h({}, c, {
197
197
  style: h({
198
198
  inset: 0,
@@ -209,24 +209,24 @@ var ie = ["className", "prefixCls", "left", "top", "style", "fillProps"], le = (
209
209
  }),
210
210
  onMove: y,
211
211
  onDown: y,
212
- onClick: J,
213
- onKeyDown: E,
212
+ onClick: Z,
213
+ onKeyDown: N,
214
214
  children: T
215
215
  }))]
216
216
  }));
217
217
  });
218
218
  $.displayName = "Alpha";
219
- var ce = ["prefixCls", "className", "hue", "onChange", "direction"], F = /* @__PURE__ */ H.forwardRef((r, o) => {
219
+ var ue = ["prefixCls", "className", "hue", "onChange", "direction"], J = /* @__PURE__ */ j.forwardRef((e, t) => {
220
220
  var {
221
- prefixCls: e = "w-color-hue",
222
- className: t,
221
+ prefixCls: r = "w-color-hue",
222
+ className: o,
223
223
  hue: a = 0,
224
224
  onChange: l,
225
225
  direction: c = "horizontal"
226
- } = r, u = _(r, ce);
226
+ } = e, u = M(e, ue);
227
227
  return /* @__PURE__ */ d($, h({
228
- ref: o,
229
- className: e + " " + (t || "")
228
+ ref: t,
229
+ className: r + " " + (o || "")
230
230
  }, u, {
231
231
  direction: c,
232
232
  background: "linear-gradient(to " + (c === "horizontal" ? "right" : "bottom") + ", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)",
@@ -243,20 +243,24 @@ var ce = ["prefixCls", "className", "hue", "onChange", "direction"], F = /* @__P
243
243
  }
244
244
  }));
245
245
  });
246
- F.displayName = "Hue";
247
- const G = M(oe, {
248
- shouldForwardProp: (r) => q(r)
249
- })(({ active: r, isTablet: o, highlight1: e, highlight3: t, iconColor: a, isMobile: l, shadowSecondary: c }) => ({
246
+ J.displayName = "Hue";
247
+ const fe = 36, G = (e) => {
248
+ if (!ee(e)) return e;
249
+ const t = e;
250
+ return re(t, { size: t.props.size ?? fe });
251
+ }, O = _(ne, {
252
+ shouldForwardProp: (e) => te(e)
253
+ })(({ active: e, isTablet: t, highlight1: r, highlight3: o, iconColor: a, isMobile: l, shadowSecondary: c }) => ({
250
254
  display: "flex",
251
- flexDirection: o ? "row" : "column",
255
+ flexDirection: t ? "row" : "column",
252
256
  alignItems: "center",
253
- justifyContent: o ? "flex-start" : "center",
257
+ justifyContent: t ? "flex-start" : "center",
254
258
  width: "100%",
255
- padding: o ? "16px" : "0 8px 8px 8px",
259
+ padding: t ? "16px" : "0 8px 8px 8px",
256
260
  transition: "313ms all ease-in-out",
257
- backgroundColor: r && !l ? e : "transparent",
258
- boxShadow: r ? a : "none",
259
- ...o && {
261
+ backgroundColor: e && !l ? r : "transparent",
262
+ boxShadow: e ? a : "none",
263
+ ...t && {
260
264
  gap: "0.5rem"
261
265
  },
262
266
  ...l && {
@@ -264,13 +268,21 @@ const G = M(oe, {
264
268
  },
265
269
  "&:hover, :focus-visible": {
266
270
  svg: {
267
- ...!o && {
268
- backgroundColor: e
271
+ ...!t && {
272
+ backgroundColor: r
269
273
  }
270
274
  },
271
- ...o && {
275
+ // Round the hover highlight back into a circle for lucide icons. Scoped to
276
+ // hover so the resting box stays square (no clipping); `overflow: visible`
277
+ // below keeps the icon itself from being cut by the rounded background.
278
+ "svg.lucide": {
279
+ ...!t && {
280
+ borderRadius: "50%"
281
+ }
282
+ },
283
+ ...t && {
272
284
  boxShadow: c,
273
- backgroundColor: t
285
+ backgroundColor: o
274
286
  }
275
287
  },
276
288
  svg: {
@@ -283,29 +295,40 @@ const G = M(oe, {
283
295
  alignItems: "center",
284
296
  justifyContent: "center",
285
297
  transition: "313ms all ease-in-out",
286
- ...l && r && {
287
- backgroundColor: e
298
+ ...l && e && {
299
+ backgroundColor: r
288
300
  }
289
301
  },
302
+ // Lucide icons are stroke-drawn (fill="none"); filling them paints a solid
303
+ // blob. Drive their color via stroke and leave fill unset. Keep the resting
304
+ // box square; `overflow: visible` stops the (rounded, on hover) background box
305
+ // from clipping the stroke near the corners. Higher specificity than the `svg`
306
+ // rule above, so it wins.
307
+ "svg.lucide": {
308
+ fill: "none",
309
+ stroke: a,
310
+ borderRadius: "unset",
311
+ overflow: "visible"
312
+ },
290
313
  span: {
291
314
  fontFamily: "Roboto, sans-serif",
292
315
  fontSize: "12px",
293
316
  fontWeight: "bold",
294
317
  color: a,
295
318
  textAlign: "center",
296
- ...o && {
319
+ ...t && {
297
320
  fontSize: "1.5rem",
298
321
  fontWeight: "500"
299
322
  }
300
323
  }
301
- })), O = M(F)`
324
+ })), U = _(J)`
302
325
  div:first-of-type {
303
326
  border-radius: inherit !important;
304
327
  }
305
328
  .w-color-alpha-pointer > .w-color-alpha-fill {
306
329
  border-radius: 50% !important;
307
330
  }
308
- `, U = M("div")(({ isTablet: r }) => ({
331
+ `, V = _("div")(({ isTablet: e }) => ({
309
332
  display: "block",
310
333
  padding: "16px",
311
334
  span: {
@@ -314,49 +337,49 @@ const G = M(oe, {
314
337
  fontSize: "12px",
315
338
  fontWeight: "bold",
316
339
  cursor: "default",
317
- ...r && {
340
+ ...e && {
318
341
  fontSize: "1.5rem",
319
342
  fontWeight: "500"
320
343
  }
321
344
  }
322
- })), X = M("div")(({ navWidth: r, isTablet: o, isMobile: e, shadowSecondary: t }) => ({
345
+ })), X = _("div")(({ navWidth: e, isTablet: t, isMobile: r, shadowSecondary: o }) => ({
323
346
  display: "flex",
324
- flexDirection: e ? "row" : "column",
347
+ flexDirection: r ? "row" : "column",
325
348
  backgroundColor: "transparent",
326
349
  alignItems: "stretch",
327
- justifyContent: e ? "space-between" : "flex-start",
350
+ justifyContent: r ? "space-between" : "flex-start",
328
351
  maxHeight: "100%",
329
352
  flexShrink: 0,
330
- gap: o ? 0 : "1rem",
331
- width: r,
353
+ gap: t ? 0 : "1rem",
354
+ width: e,
332
355
  boxSizing: "border-box",
333
- ...e && {
334
- boxShadow: t,
356
+ ...r && {
357
+ boxShadow: o,
335
358
  zIndex: 1313,
336
359
  padding: "4px 8px"
337
360
  }
338
- })), xe = ({
339
- navItems: r,
340
- activeRoute: o,
341
- navWidth: e = `${ee.constants.navDefaultWidth}px`,
342
- isTablet: t,
361
+ })), Ae = ({
362
+ navItems: e,
363
+ activeRoute: t,
364
+ navWidth: r = `${oe.constants.navDefaultWidth}px`,
365
+ isTablet: o,
343
366
  isMobile: a,
344
367
  themeColors: l
345
368
  }) => {
346
- const [c, u] = V(""), f = (p, n) => {
369
+ const [c, u] = F(""), f = (p, n) => {
347
370
  u(p), n();
348
- }, { highlightPrimary: v, highlightTertiary: b, iconPrimary: C, shadowSecondary: s, scrollColor: N } = l, g = { navWidth: e, isTablet: t, shadowSecondary: s };
349
- return a ? /* @__PURE__ */ d(X, { isTablet: !1, navWidth: "100%", isMobile: !0, shadowSecondary: s, children: r.map(({ icon: p, label: n = "", onClick: y = () => {
371
+ }, { highlightPrimary: v, highlightTertiary: b, iconPrimary: A, shadowSecondary: s, scrollColor: E } = l, g = { navWidth: r, isTablet: o, shadowSecondary: s };
372
+ return a ? /* @__PURE__ */ d(X, { isTablet: !1, navWidth: "100%", isMobile: !0, shadowSecondary: s, children: e.map(({ icon: p, label: n = "", onClick: y = () => {
350
373
  }, hue: i = void 0, onChange: m, ...w }) => {
351
- const k = o ? o === n : c === n;
352
- return n == "Hue" ? /* @__PURE__ */ z(U, { ...w, active: k, isTablet: t, children: [
374
+ const k = t ? t === n : c === n;
375
+ return n == "Hue" ? /* @__PURE__ */ z(V, { ...w, active: k, isTablet: o, children: [
353
376
  /* @__PURE__ */ d("div", { style: { display: "flex" }, children: /* @__PURE__ */ d("span", { children: "Select Theme Color" }) }),
354
377
  /* @__PURE__ */ d("div", { style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ d(
355
- O,
378
+ U,
356
379
  {
357
380
  hue: i,
358
- onChange: (E) => {
359
- m && m(E);
381
+ onChange: (N) => {
382
+ m && m(N);
360
383
  },
361
384
  style: {
362
385
  width: "96%",
@@ -367,42 +390,42 @@ const G = M(oe, {
367
390
  }
368
391
  ) })
369
392
  ] }, n) : /* @__PURE__ */ z(
370
- G,
393
+ O,
371
394
  {
372
395
  ...w,
373
396
  active: k,
374
397
  onClick: () => f(n, y),
375
- isTablet: t,
398
+ isTablet: o,
376
399
  highlight1: v,
377
400
  highlight3: b,
378
- iconColor: C,
401
+ iconColor: A,
379
402
  shadowSecondary: s,
380
403
  isMobile: !0,
381
404
  children: [
382
- p,
405
+ G(p),
383
406
  /* @__PURE__ */ d("span", { children: n })
384
407
  ]
385
408
  },
386
409
  n
387
410
  );
388
411
  }) }) : /* @__PURE__ */ d(
389
- re,
412
+ ae,
390
413
  {
391
- scrollColor: N,
414
+ scrollColor: E,
392
415
  direction: "vertical",
393
- width: e,
394
- styles: { minWidth: e },
395
- children: /* @__PURE__ */ d(X, { ...g, children: r.map(({ icon: p, label: n = "", onClick: y = () => {
416
+ width: r,
417
+ styles: { minWidth: r },
418
+ children: /* @__PURE__ */ d(X, { ...g, children: e.map(({ icon: p, label: n = "", onClick: y = () => {
396
419
  }, hue: i = void 0, onChange: m, ...w }) => {
397
- const k = o ? o === n : c === n;
398
- return n == "Hue" ? /* @__PURE__ */ z(U, { ...w, active: k, isTablet: t, children: [
420
+ const k = t ? t === n : c === n;
421
+ return n == "Hue" ? /* @__PURE__ */ z(V, { ...w, active: k, isTablet: o, children: [
399
422
  /* @__PURE__ */ d("div", { style: { display: "flex" }, children: /* @__PURE__ */ d("span", { children: "Custom Theme" }) }),
400
423
  /* @__PURE__ */ d("div", { style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ d(
401
- O,
424
+ U,
402
425
  {
403
426
  hue: i,
404
- onChange: (E) => {
405
- m && m(E);
427
+ onChange: (N) => {
428
+ m && m(N);
406
429
  },
407
430
  style: {
408
431
  width: "96%",
@@ -413,18 +436,18 @@ const G = M(oe, {
413
436
  }
414
437
  ) })
415
438
  ] }, n) : /* @__PURE__ */ z(
416
- G,
439
+ O,
417
440
  {
418
441
  ...w,
419
442
  active: k,
420
443
  onClick: () => f(n, y),
421
- isTablet: t,
444
+ isTablet: o,
422
445
  highlight1: v,
423
446
  highlight3: b,
424
- iconColor: C,
447
+ iconColor: A,
425
448
  shadowSecondary: s,
426
449
  children: [
427
- p,
450
+ G(p),
428
451
  /* @__PURE__ */ d("span", { children: n })
429
452
  ]
430
453
  },
@@ -435,6 +458,6 @@ const G = M(oe, {
435
458
  );
436
459
  };
437
460
  export {
438
- xe as Nav,
439
- xe as default
461
+ Ae as Nav,
462
+ Ae as default
440
463
  };