@datawire-ai/busyfile-design-library 1.31.1 → 1.33.0

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.
Files changed (64) hide show
  1. package/dist/index100.js +3 -3
  2. package/dist/index101.js +2 -2
  3. package/dist/index102.js +2 -2
  4. package/dist/index106.js +5 -5
  5. package/dist/index107.js +1 -1
  6. package/dist/index108.js +3 -14
  7. package/dist/index109.js +46 -10
  8. package/dist/index110.js +11 -4
  9. package/dist/index111.js +4 -13
  10. package/dist/index112.js +12 -3
  11. package/dist/index113.js +644 -40
  12. package/dist/index116.js +23 -649
  13. package/dist/index117.js +15 -18
  14. package/dist/index118.js +33 -16
  15. package/dist/index119.js +12 -33
  16. package/dist/index12.js +28 -30
  17. package/dist/index120.js +15 -18
  18. package/dist/index121.js +1 -1
  19. package/dist/index123.js +1 -1
  20. package/dist/index30.js +52 -51
  21. package/dist/index42.js +6 -6
  22. package/dist/index44.js +9 -9
  23. package/dist/index46.js +7 -7
  24. package/dist/index48.js +1 -1
  25. package/dist/index49.js +5 -5
  26. package/dist/index50.js +1 -1
  27. package/dist/index52.js +5 -5
  28. package/dist/index54.js +1 -1
  29. package/dist/index55.js +1 -1
  30. package/dist/index56.js +1 -1
  31. package/dist/index57.js +1 -1
  32. package/dist/index59.js +5 -5
  33. package/dist/index61.js +1 -1
  34. package/dist/index62.js +1 -1
  35. package/dist/index63.js +1 -1
  36. package/dist/index65.js +1 -1
  37. package/dist/index66.js +1 -1
  38. package/dist/index67.js +1 -1
  39. package/dist/index68.js +1 -1
  40. package/dist/index70.js +1 -1
  41. package/dist/index71.js +1 -1
  42. package/dist/index73.js +1 -1
  43. package/dist/index75.js +7 -7
  44. package/dist/index78.js +1 -1
  45. package/dist/index79.js +1 -1
  46. package/dist/index81.js +1 -1
  47. package/dist/index82.js +10 -10
  48. package/dist/index84.js +1 -1
  49. package/dist/index85.js +5 -5
  50. package/dist/index86.js +2 -2
  51. package/dist/index87.js +5 -5
  52. package/dist/index88.js +1 -1
  53. package/dist/index90.js +5 -66
  54. package/dist/index91.js +66 -5
  55. package/dist/index92.js +33 -51
  56. package/dist/index93.js +181 -5
  57. package/dist/index94.js +51 -24
  58. package/dist/index95.js +7 -69
  59. package/dist/index96.js +24 -33
  60. package/dist/index97.js +5 -181
  61. package/dist/index98.js +69 -7
  62. package/dist/index99.js +1 -1
  63. package/dist/types/index.d.ts +3 -3
  64. package/package.json +1 -1
package/dist/index117.js CHANGED
@@ -1,27 +1,24 @@
1
- import { forwardRef as m, createElement as l } from "react";
2
- import { mergeClasses as d, toKebabCase as f, toPascalCase as r } from "./index118.js";
3
- import n from "./index119.js";
4
1
  /**
5
2
  * @license lucide-react v0.542.0 - ISC
6
3
  *
7
4
  * This source code is licensed under the ISC license.
8
5
  * See the LICENSE file in the root directory of this source tree.
9
6
  */
10
- const C = (e, t) => {
11
- const o = m(
12
- ({ className: a, ...s }, c) => l(n, {
13
- ref: c,
14
- iconNode: t,
15
- className: d(
16
- `lucide-${f(r(e))}`,
17
- `lucide-${e}`,
18
- a
19
- ),
20
- ...s
21
- })
22
- );
23
- return o.displayName = r(e), o;
7
+ const s = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), a = (t) => t.replace(
8
+ /^([A-Z])|[\s-_]+(\w)/g,
9
+ (e, o, r) => r ? r.toUpperCase() : o.toLowerCase()
10
+ ), n = (t) => {
11
+ const e = a(t);
12
+ return e.charAt(0).toUpperCase() + e.slice(1);
13
+ }, c = (...t) => t.filter((e, o, r) => !!e && e.trim() !== "" && r.indexOf(e) === o).join(" ").trim(), i = (t) => {
14
+ for (const e in t)
15
+ if (e.startsWith("aria-") || e === "role" || e === "title")
16
+ return !0;
24
17
  };
25
18
  export {
26
- C as default
19
+ i as hasA11yProp,
20
+ c as mergeClasses,
21
+ a as toCamelCase,
22
+ s as toKebabCase,
23
+ n as toPascalCase
27
24
  };
package/dist/index118.js CHANGED
@@ -1,24 +1,41 @@
1
+ import { forwardRef as l, createElement as o } from "react";
2
+ import A from "./index119.js";
3
+ import { mergeClasses as b, hasA11yProp as c } from "./index117.js";
1
4
  /**
2
5
  * @license lucide-react v0.542.0 - ISC
3
6
  *
4
7
  * This source code is licensed under the ISC license.
5
8
  * See the LICENSE file in the root directory of this source tree.
6
9
  */
7
- const s = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), a = (t) => t.replace(
8
- /^([A-Z])|[\s-_]+(\w)/g,
9
- (e, o, r) => r ? r.toUpperCase() : o.toLowerCase()
10
- ), n = (t) => {
11
- const e = a(t);
12
- return e.charAt(0).toUpperCase() + e.slice(1);
13
- }, c = (...t) => t.filter((e, o, r) => !!e && e.trim() !== "" && r.indexOf(e) === o).join(" ").trim(), i = (t) => {
14
- for (const e in t)
15
- if (e.startsWith("aria-") || e === "role" || e === "title")
16
- return !0;
17
- };
10
+ const h = l(
11
+ ({
12
+ color: m = "currentColor",
13
+ size: t = 24,
14
+ strokeWidth: e = 2,
15
+ absoluteStrokeWidth: s,
16
+ className: u = "",
17
+ children: r,
18
+ iconNode: f,
19
+ ...a
20
+ }, p) => o(
21
+ "svg",
22
+ {
23
+ ref: p,
24
+ ...A,
25
+ width: t,
26
+ height: t,
27
+ stroke: m,
28
+ strokeWidth: s ? Number(e) * 24 / Number(t) : e,
29
+ className: b("lucide", u),
30
+ ...!r && !c(a) && { "aria-hidden": "true" },
31
+ ...a
32
+ },
33
+ [
34
+ ...f.map(([i, d]) => o(i, d)),
35
+ ...Array.isArray(r) ? r : [r]
36
+ ]
37
+ )
38
+ );
18
39
  export {
19
- i as hasA11yProp,
20
- c as mergeClasses,
21
- a as toCamelCase,
22
- s as toKebabCase,
23
- n as toPascalCase
40
+ h as default
24
41
  };
package/dist/index119.js CHANGED
@@ -1,41 +1,20 @@
1
- import { forwardRef as l, createElement as o } from "react";
2
- import A from "./index120.js";
3
- import { mergeClasses as b, hasA11yProp as c } from "./index118.js";
4
1
  /**
5
2
  * @license lucide-react v0.542.0 - ISC
6
3
  *
7
4
  * This source code is licensed under the ISC license.
8
5
  * See the LICENSE file in the root directory of this source tree.
9
6
  */
10
- const h = l(
11
- ({
12
- color: m = "currentColor",
13
- size: t = 24,
14
- strokeWidth: e = 2,
15
- absoluteStrokeWidth: s,
16
- className: u = "",
17
- children: r,
18
- iconNode: f,
19
- ...a
20
- }, p) => o(
21
- "svg",
22
- {
23
- ref: p,
24
- ...A,
25
- width: t,
26
- height: t,
27
- stroke: m,
28
- strokeWidth: s ? Number(e) * 24 / Number(t) : e,
29
- className: b("lucide", u),
30
- ...!r && !c(a) && { "aria-hidden": "true" },
31
- ...a
32
- },
33
- [
34
- ...f.map(([i, d]) => o(i, d)),
35
- ...Array.isArray(r) ? r : [r]
36
- ]
37
- )
38
- );
7
+ var t = {
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ width: 24,
10
+ height: 24,
11
+ viewBox: "0 0 24 24",
12
+ fill: "none",
13
+ stroke: "currentColor",
14
+ strokeWidth: 2,
15
+ strokeLinecap: "round",
16
+ strokeLinejoin: "round"
17
+ };
39
18
  export {
40
- h as default
19
+ t as default
41
20
  };
package/dist/index12.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsxs as v, jsx as s } from "react/jsx-runtime";
2
- import { useState as X, useMemo as x, useEffect as Y } from "react";
3
- import { InputWithLabel as Z } from "./index53.js";
4
- import { Select as G, SelectTrigger as J, SelectContent as O, SelectItem as Q } from "./index33.js";
5
- import { cn as P } from "./index37.js";
2
+ import { useState as X, useMemo as x, useEffect as F } from "react";
3
+ import { InputWithLabel as Y } from "./index53.js";
4
+ import { Select as Z, SelectTrigger as G, SelectContent as J, SelectItem as O } from "./index33.js";
5
+ import { cn as Q } from "./index37.js";
6
6
  const N = "US", $ = "+1";
7
7
  function A(n) {
8
8
  return n.replace(/\D/g, "");
@@ -24,7 +24,7 @@ function K(n) {
24
24
  let e = A(l);
25
25
  return l.startsWith("+") && e.startsWith("1") && (e = e.slice(1)), e.length >= 11 && e.startsWith("1") && (e = e.slice(1)), e.length > 10 && (e = e.slice(0, 10)), e;
26
26
  }
27
- function p(n) {
27
+ function P(n) {
28
28
  const l = n.slice(0, 10), e = l.slice(0, 3), c = l.slice(3, 6), o = l.slice(6, 10);
29
29
  return l.length === 0 ? "" : l.length < 4 ? `(${e}` : l.length < 7 ? `(${e}) ${c}` : `(${e}) ${c}-${o}`;
30
30
  }
@@ -35,7 +35,7 @@ function W(n) {
35
35
  const l = typeof n == "string" ? n : Array.isArray(n) ? n.join("") : String(n ?? "");
36
36
  return K(l);
37
37
  }
38
- function ee(n) {
38
+ function p(n) {
39
39
  const { key: l, ctrlKey: e, metaKey: c } = n;
40
40
  return e || c || [
41
41
  "Backspace",
@@ -50,7 +50,7 @@ function ee(n) {
50
50
  "Enter"
51
51
  ].includes(l) ? !0 : /^\d$/.test(l);
52
52
  }
53
- const se = ({
53
+ const ie = ({
54
54
  label: n = "Phone number",
55
55
  helperText: l,
56
56
  errorText: e,
@@ -64,7 +64,6 @@ const se = ({
64
64
  onValidityChange: h,
65
65
  includeDialCodeInValue: V = !0,
66
66
  requiredOnBlur: j = !1,
67
- errorClassName: B,
68
67
  ...r
69
68
  }) => {
70
69
  const [w, D] = X(!1), g = N, i = x(
@@ -74,31 +73,31 @@ const se = ({
74
73
  dialCode: $
75
74
  },
76
75
  [f, g]
77
- ), y = r.value !== void 0, E = r.value ?? "", R = x(
76
+ ), y = r.value !== void 0, E = r.value ?? "", B = x(
78
77
  () => W(E),
79
78
  [E]
80
- ), [q, H] = X(
79
+ ), [R, q] = X(
81
80
  () => W(
82
81
  r.defaultValue ?? ""
83
82
  )
84
- ), m = y ? R : q, M = x(
85
- () => p(m),
83
+ ), m = y ? B : R, H = x(
84
+ () => P(m),
86
85
  [m]
87
- ), b = T(m, !0), _ = w ? k(b) : null, z = (j && w && m.length === 0 ? "Phone number is required" : _) ?? e;
88
- Y(() => {
86
+ ), b = T(m, !0), M = w ? k(b) : null, _ = (j && w && m.length === 0 ? "Phone number is required" : M) ?? e;
87
+ F(() => {
89
88
  h && h(k(b) === null);
90
89
  }, [b, h]);
91
- const C = /* @__PURE__ */ v(
92
- G,
90
+ const z = /* @__PURE__ */ v(
91
+ Z,
93
92
  {
94
93
  value: g,
95
94
  onValueChange: (t) => d == null ? void 0 : d(t),
96
95
  disabled: !0,
97
96
  children: [
98
97
  /* @__PURE__ */ s(
99
- J,
98
+ G,
100
99
  {
101
- className: P(
100
+ className: Q(
102
101
  "border-0 bg-transparent px-0 py-0 h-auto shadow-none focus-visible:ring-0 focus-visible:border-0 text-neutral-black-1",
103
102
  "min-w-14"
104
103
  ),
@@ -109,7 +108,7 @@ const se = ({
109
108
  ] })
110
109
  }
111
110
  ),
112
- /* @__PURE__ */ s(O, { className: "bg-white border border-neutral-black-4", children: f.map((t) => /* @__PURE__ */ s(Q, { value: t.value, disabled: t.disabled, children: /* @__PURE__ */ v("span", { className: "flex items-center gap-2", children: [
111
+ /* @__PURE__ */ s(J, { className: "bg-white border border-neutral-black-4", children: f.map((t) => /* @__PURE__ */ s(O, { value: t.value, disabled: t.disabled, children: /* @__PURE__ */ v("span", { className: "flex items-center gap-2", children: [
113
112
  t.flag,
114
113
  /* @__PURE__ */ s("span", { children: t.label }),
115
114
  S && /* @__PURE__ */ s("span", { className: "text-neutral-black-3 ml-1", children: t.dialCode })
@@ -118,26 +117,25 @@ const se = ({
118
117
  }
119
118
  );
120
119
  return /* @__PURE__ */ s(
121
- Z,
120
+ Y,
122
121
  {
123
122
  ...r,
124
123
  label: n,
125
124
  helperText: l,
126
- errorText: z,
125
+ errorText: _,
127
126
  size: c,
128
127
  disabled: o,
129
128
  labelClassName: u,
130
- startSlot: C,
131
- errorClassName: B,
129
+ startSlot: z,
132
130
  className: L,
133
131
  inputMode: "tel",
134
132
  type: "tel",
135
133
  placeholder: r.placeholder ?? "(234) 567-8900",
136
- value: M,
134
+ value: H,
137
135
  maxLength: 15,
138
136
  onKeyDown: (t) => {
139
137
  var a;
140
- ee(t) || t.preventDefault(), (a = r.onKeyDown) == null || a.call(r, t);
138
+ p(t) || t.preventDefault(), (a = r.onKeyDown) == null || a.call(r, t);
141
139
  },
142
140
  onPaste: (t) => {
143
141
  var a;
@@ -151,24 +149,24 @@ const se = ({
151
149
  var U;
152
150
  D(!0);
153
151
  const a = K(t.target.value);
154
- y || H(a);
152
+ y || q(a);
155
153
  const I = T(
156
154
  a,
157
155
  V
158
- ), F = {
156
+ ), C = {
159
157
  ...t,
160
158
  target: { ...t.target, value: I },
161
159
  currentTarget: { ...t.currentTarget, value: I }
162
160
  };
163
161
  (U = r.onChange) == null || U.call(
164
162
  r,
165
- F
163
+ C
166
164
  );
167
165
  }
168
166
  }
169
167
  );
170
168
  };
171
169
  export {
172
- se as PhoneInput,
173
- se as default
170
+ ie as PhoneInput,
171
+ ie as default
174
172
  };
package/dist/index120.js CHANGED
@@ -1,20 +1,17 @@
1
- /**
2
- * @license lucide-react v0.542.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */
7
- var t = {
8
- xmlns: "http://www.w3.org/2000/svg",
9
- width: 24,
10
- height: 24,
11
- viewBox: "0 0 24 24",
12
- fill: "none",
13
- stroke: "currentColor",
14
- strokeWidth: 2,
15
- strokeLinecap: "round",
16
- strokeLinejoin: "round"
17
- };
1
+ var m = 1, j = 0.9, k = 0.8, B = 0.17, v = 0.1, w = 0.999, D = 0.9999, G = 0.99, H = /[\\\/_+.#"@\[\(\{&]/, J = /[\\\/_+.#"@\[\(\{&]/g, K = /[\s-]/, A = /[\s-]/g;
2
+ function $(t, o, e, i, n, h, u) {
3
+ if (h === o.length) return n === t.length ? m : G;
4
+ var s = `${n},${h}`;
5
+ if (u[s] !== void 0) return u[s];
6
+ for (var d = i.charAt(h), a = e.indexOf(d, n), l = 0, r, g, c, p; a >= 0; ) r = $(t, o, e, i, a + 1, h + 1, u), r > l && (a === n ? r *= m : H.test(t.charAt(a - 1)) ? (r *= k, c = t.slice(n, a - 1).match(J), c && n > 0 && (r *= Math.pow(w, c.length))) : K.test(t.charAt(a - 1)) ? (r *= j, p = t.slice(n, a - 1).match(A), p && n > 0 && (r *= Math.pow(w, p.length))) : (r *= B, n > 0 && (r *= Math.pow(w, a - n))), t.charAt(a) !== o.charAt(h) && (r *= D)), (r < v && e.charAt(a - 1) === i.charAt(h + 1) || i.charAt(h + 1) === i.charAt(h) && e.charAt(a - 1) !== i.charAt(h)) && (g = $(t, o, e, i, a + 1, h + 2, u), g * v > r && (r = g * v)), r > l && (l = r), a = e.indexOf(d, a + 1);
7
+ return u[s] = l, l;
8
+ }
9
+ function x(t) {
10
+ return t.toLowerCase().replace(A, " ");
11
+ }
12
+ function M(t, o, e) {
13
+ return t = e && e.length > 0 ? `${t + " " + e.join(" ")}` : t, $(t, o, x(t), x(o), 0, 0, {});
14
+ }
18
15
  export {
19
- t as default
16
+ M as a
20
17
  };
package/dist/index121.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as r from "react";
2
- import { useCallbackRef as s } from "./index109.js";
2
+ import { useCallbackRef as s } from "./index110.js";
3
3
  function p(n, e = globalThis == null ? void 0 : globalThis.document) {
4
4
  const t = s(n);
5
5
  r.useEffect(() => {
package/dist/index123.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as n from "react";
2
- import { Primitive as p } from "./index96.js";
2
+ import { Primitive as p } from "./index92.js";
3
3
  import { jsx as o } from "react/jsx-runtime";
4
4
  var v = "Arrow", e = n.forwardRef((r, i) => {
5
5
  const { children: t, width: a = 10, height: s = 5, ...m } = r;
package/dist/index30.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { jsx as t, jsxs as l, Fragment as y } from "react/jsx-runtime";
2
+ import { jsx as t, jsxs as l, Fragment as k } from "react/jsx-runtime";
3
3
  import * as g from "react";
4
4
  import { Calendar as S } from "./index80.js";
5
5
  import { Button as o } from "./index3.js";
6
6
  import { Popover as j, PopoverTrigger as z, PopoverContent as F } from "./index34.js";
7
7
  import { cn as v } from "./index37.js";
8
- import p from "./index57.js";
9
- import x from "./index81.js";
8
+ import x from "./index57.js";
9
+ import p from "./index81.js";
10
10
  import N from "./index70.js";
11
11
  const R = [
12
12
  "Jan",
@@ -22,61 +22,62 @@ const R = [
22
22
  "Nov",
23
23
  "Dec"
24
24
  ];
25
- function _(s) {
26
- return /* @__PURE__ */ t(j, { ...s });
25
+ function _(r) {
26
+ return /* @__PURE__ */ t(j, { ...r });
27
27
  }
28
- function Y(s) {
29
- return /* @__PURE__ */ t(z, { ...s });
28
+ function Y(r) {
29
+ return /* @__PURE__ */ t(z, { ...r });
30
30
  }
31
31
  function J({
32
- popoverProps: s,
33
- datePickerProps: a
32
+ popoverProps: r,
33
+ datePickerProps: n
34
34
  }) {
35
35
  const [u, i] = g.useState(!1), f = (() => {
36
- var n;
37
- return a.mode === "single" ? a.date || /* @__PURE__ */ new Date() : ((n = a.date) == null ? void 0 : n.from) || /* @__PURE__ */ new Date();
38
- })(), [r, m] = g.useState(
36
+ var a;
37
+ return n.mode === "single" ? n.date || /* @__PURE__ */ new Date() : ((a = n.date) == null ? void 0 : a.from) || /* @__PURE__ */ new Date();
38
+ })(), [s, m] = g.useState(
39
39
  f.getFullYear()
40
40
  ), [c, d] = g.useState(
41
41
  f.getMonth()
42
42
  ), D = () => {
43
- a.setDate(void 0);
44
- }, C = (n) => {
45
- if (d(n), i(!1), a.mode === "single") {
46
- const e = a.date, h = new Date(
47
- r,
48
- n,
43
+ n.setDate(void 0);
44
+ }, C = (a) => {
45
+ if (d(a), i(!1), n.mode === "single") {
46
+ const e = n.date, h = new Date(
47
+ s,
48
+ a,
49
49
  (e == null ? void 0 : e.getDate()) || 1
50
50
  );
51
- a.setDate(h);
52
- } else if (a.mode === "range") {
53
- const e = a.date;
51
+ n.setDate(h);
52
+ } else if (n.mode === "range") {
53
+ const e = n.date;
54
54
  if (e != null && e.from) {
55
55
  const h = new Date(
56
- r,
57
- n,
56
+ s,
57
+ a,
58
58
  e.from.getDate()
59
59
  );
60
- a.setDate({
60
+ n.setDate({
61
61
  from: h,
62
62
  to: e.to
63
63
  });
64
64
  }
65
65
  }
66
- }, w = (n) => {
67
- m((e) => n === "prev" ? e - 1 : e + 1);
68
- }, b = (n) => {
69
- const e = new Date(r, c);
70
- n === "prev" ? e.setMonth(e.getMonth() - 1) : e.setMonth(e.getMonth() + 1), m(e.getFullYear()), d(e.getMonth());
71
- }, M = new Date(r, c).toLocaleString(
66
+ }, w = (a) => {
67
+ m((e) => a === "prev" ? e - 1 : e + 1);
68
+ }, b = (a) => {
69
+ const e = new Date(s, c);
70
+ a === "prev" ? e.setMonth(e.getMonth() - 1) : e.setMonth(e.getMonth() + 1), m(e.getFullYear()), d(e.getMonth());
71
+ }, M = new Date(s, c).toLocaleString(
72
72
  "default",
73
73
  { month: "long" }
74
- ), k = () => {
75
- const n = {
76
- month: new Date(r, c),
74
+ ), y = () => {
75
+ const a = {
76
+ month: new Date(s, c),
77
77
  onMonthChange: (e) => {
78
78
  m(e.getFullYear()), d(e.getMonth());
79
79
  },
80
+ disabled: n.disabled,
80
81
  classNames: {
81
82
  month_caption: "flex items-center justify-between mb-4",
82
83
  caption_label: "text-lg font-medium cursor-pointer hover:bg-gray-100 px-2 py-1 rounded",
@@ -110,7 +111,7 @@ function J({
110
111
  month: "long",
111
112
  year: "numeric"
112
113
  }),
113
- /* @__PURE__ */ t(p, { className: "w-4 h-4 ml-1" })
114
+ /* @__PURE__ */ t(x, { className: "w-4 h-4 ml-1" })
114
115
  ]
115
116
  }
116
117
  ),
@@ -122,7 +123,7 @@ function J({
122
123
  size: "icon",
123
124
  onClick: () => b("prev"),
124
125
  className: "h-8 w-8",
125
- children: /* @__PURE__ */ t(x, { className: "w-4 h-4" })
126
+ children: /* @__PURE__ */ t(p, { className: "w-4 h-4" })
126
127
  }
127
128
  ),
128
129
  /* @__PURE__ */ t(
@@ -139,16 +140,16 @@ function J({
139
140
  ] })
140
141
  }
141
142
  };
142
- return a.mode === "single" ? {
143
- ...n,
143
+ return n.mode === "single" ? {
144
+ ...a,
144
145
  mode: "single",
145
- selected: a.date,
146
- onSelect: a.setDate
146
+ selected: n.date,
147
+ onSelect: n.setDate
147
148
  } : {
148
- ...n,
149
+ ...a,
149
150
  mode: "range",
150
- selected: a.date,
151
- onSelect: a.setDate
151
+ selected: n.date,
152
+ onSelect: n.setDate
152
153
  };
153
154
  };
154
155
  return /* @__PURE__ */ t(
@@ -160,16 +161,16 @@ function J({
160
161
  "flex-col": u
161
162
  }
162
163
  ),
163
- ...s,
164
- children: u ? /* @__PURE__ */ l(y, { children: [
164
+ ...r,
165
+ children: u ? /* @__PURE__ */ l(k, { children: [
165
166
  /* @__PURE__ */ l("div", { className: "flex items-center justify-between mb-5 px-2 w-full", children: [
166
167
  /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
167
168
  /* @__PURE__ */ l("span", { className: "text-md font-medium", children: [
168
169
  M,
169
170
  " ",
170
- r
171
+ s
171
172
  ] }),
172
- /* @__PURE__ */ t(p, { className: "w-4 h-4" })
173
+ /* @__PURE__ */ t(x, { className: "w-4 h-4" })
173
174
  ] }),
174
175
  /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
175
176
  /* @__PURE__ */ t(
@@ -179,7 +180,7 @@ function J({
179
180
  size: "icon",
180
181
  onClick: () => w("prev"),
181
182
  className: "h-8 w-8",
182
- children: /* @__PURE__ */ t(x, { className: "w-4 h-4" })
183
+ children: /* @__PURE__ */ t(p, { className: "w-4 h-4" })
183
184
  }
184
185
  ),
185
186
  /* @__PURE__ */ t(
@@ -194,7 +195,7 @@ function J({
194
195
  )
195
196
  ] })
196
197
  ] }),
197
- /* @__PURE__ */ t("div", { className: "grid grid-cols-3 gap-4 mb-4 w-full", children: R.map((n, e) => /* @__PURE__ */ t(
198
+ /* @__PURE__ */ t("div", { className: "grid grid-cols-3 gap-4 mb-4 w-full", children: R.map((a, e) => /* @__PURE__ */ t(
198
199
  o,
199
200
  {
200
201
  variant: e === c ? "default" : "ghost",
@@ -202,16 +203,16 @@ function J({
202
203
  className: v("h-9 text-sm font-medium rounded-full", {
203
204
  "bg-black text-white hover:bg-black/90": e === c
204
205
  }),
205
- children: n
206
+ children: a
206
207
  },
207
- n
208
+ a
208
209
  )) }),
209
210
  /* @__PURE__ */ l("div", { className: "flex justify-end gap-3", children: [
210
211
  /* @__PURE__ */ t(o, { variant: "ghost", onClick: () => i(!1), children: "Cancel" }),
211
212
  /* @__PURE__ */ t(o, { variant: "ghost", onClick: () => i(!1), children: "Ok" })
212
213
  ] })
213
214
  ] }) : /* @__PURE__ */ l("div", { className: "flex flex-col w-full items-center gap-4", children: [
214
- /* @__PURE__ */ t(S, { ...k() }),
215
+ /* @__PURE__ */ t(S, { ...y() }),
215
216
  /* @__PURE__ */ t(
216
217
  o,
217
218
  {
package/dist/index42.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import * as r from "react";
3
- import { composeEventHandlers as T } from "./index91.js";
3
+ import { composeEventHandlers as T } from "./index90.js";
4
4
  import { useComposedRefs as P } from "./index89.js";
5
- import { createContextScope as I } from "./index90.js";
6
- import { useControllableState as M } from "./index92.js";
7
- import { usePrevious as H } from "./index93.js";
8
- import { useSize as j } from "./index94.js";
9
- import { Primitive as y } from "./index96.js";
5
+ import { createContextScope as I } from "./index91.js";
6
+ import { useControllableState as M } from "./index94.js";
7
+ import { usePrevious as H } from "./index97.js";
8
+ import { useSize as j } from "./index96.js";
9
+ import { Primitive as y } from "./index92.js";
10
10
  import { jsxs as A, jsx as m } from "react/jsx-runtime";
11
11
  var h = "Switch", [U, Q] = I(h), [q, z] = U(h), R = r.forwardRef(
12
12
  (t, a) => {
package/dist/index44.js CHANGED
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import * as i from "react";
3
- import { composeEventHandlers as I } from "./index91.js";
3
+ import { composeEventHandlers as I } from "./index90.js";
4
4
  import { useComposedRefs as E } from "./index89.js";
5
- import { createContextScope as w } from "./index90.js";
6
- import { Primitive as b } from "./index96.js";
7
- import { createRovingFocusGroupScope as P, Root as B, Item as q } from "./index97.js";
8
- import { useControllableState as K } from "./index92.js";
9
- import { useDirection as T } from "./index98.js";
10
- import { useSize as U } from "./index94.js";
11
- import { usePrevious as V } from "./index93.js";
12
- import { Presence as j } from "./index95.js";
5
+ import { createContextScope as w } from "./index91.js";
6
+ import { Primitive as b } from "./index92.js";
7
+ import { createRovingFocusGroupScope as P, Root as B, Item as q } from "./index93.js";
8
+ import { useControllableState as K } from "./index94.js";
9
+ import { useDirection as T } from "./index95.js";
10
+ import { useSize as U } from "./index96.js";
11
+ import { usePrevious as V } from "./index97.js";
12
+ import { Presence as j } from "./index98.js";
13
13
  import { jsx as p, jsxs as z } from "react/jsx-runtime";
14
14
  var _ = "Radio", [H, G] = w(_), [W, X] = H(_), S = i.forwardRef(
15
15
  (a, d) => {
package/dist/index46.js CHANGED
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import * as s from "react";
3
3
  import { useComposedRefs as B } from "./index89.js";
4
- import { createContextScope as L } from "./index90.js";
5
- import { composeEventHandlers as S } from "./index91.js";
6
- import { useControllableState as O } from "./index92.js";
7
- import { usePrevious as j } from "./index93.js";
8
- import { useSize as H } from "./index94.js";
9
- import { Presence as z } from "./index95.js";
10
- import { Primitive as P } from "./index96.js";
4
+ import { createContextScope as L } from "./index91.js";
5
+ import { composeEventHandlers as S } from "./index90.js";
6
+ import { useControllableState as O } from "./index94.js";
7
+ import { usePrevious as j } from "./index97.js";
8
+ import { useSize as H } from "./index96.js";
9
+ import { Presence as z } from "./index98.js";
10
+ import { Primitive as P } from "./index92.js";
11
11
  import { jsx as b, jsxs as G, Fragment as K } from "react/jsx-runtime";
12
12
  var g = "Checkbox", [U, se] = L(g), [X, E] = U(g);
13
13
  function J(t) {
package/dist/index48.js CHANGED
@@ -1,4 +1,4 @@
1
- import c from "./index117.js";
1
+ import c from "./index116.js";
2
2
  /**
3
3
  * @license lucide-react v0.542.0 - ISC
4
4
  *