prometeo-design-system 2.9.6 → 2.9.7

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 (60) hide show
  1. package/dist/Button.es.js +9 -9
  2. package/dist/{CardProfile-CsytJlKZ.js → CardProfile-WHoeSibd.js} +8 -8
  3. package/dist/CardProfile.es.js +1 -1
  4. package/dist/CheckBox.es.js +4 -4
  5. package/dist/DatePicker-CbXUUnv7.js +3568 -0
  6. package/dist/DatePicker.es.js +3 -3439
  7. package/dist/DrawerDesktop.d.ts +6 -0
  8. package/dist/DrawerDesktop.es.js +211 -0
  9. package/dist/DrawerMobile.d.ts +6 -0
  10. package/dist/DrawerMobile.es.js +242 -0
  11. package/dist/DropZone.es.js +5 -5
  12. package/dist/FAButton.es.js +1 -1
  13. package/dist/{HelperComponent-g_xuKWzK.js → HelperComponent-BeNlTMqI.js} +7 -7
  14. package/dist/Icons/Icons.d.ts +1 -1
  15. package/dist/Icons.d.ts +0 -4
  16. package/dist/Icons.es.js +1119 -3
  17. package/dist/Image.es.js +29 -29
  18. package/dist/{ImageGallery-Ckxg9OIC.js → ImageGallery-WKzUevOQ.js} +34 -34
  19. package/dist/ImageGallery.es.js +1 -1
  20. package/dist/{Input-Cck37DpG.js → Input-Cf8P1QJv.js} +30 -31
  21. package/dist/Input.es.js +1 -1
  22. package/dist/InputMultiple.es.js +34 -34
  23. package/dist/Logo.es.js +1 -1
  24. package/dist/OtpInput.es.js +43 -43
  25. package/dist/RadioButton.es.js +1 -1
  26. package/dist/RecurrentDatePicker.d.ts +2 -0
  27. package/dist/RecurrentDatePicker.es.js +694 -0
  28. package/dist/RecurrentDatePickerRRule.d.ts +2 -0
  29. package/dist/RecurrentDatePickerRRule.es.js +1684 -0
  30. package/dist/{Select-BD5FTxVw.js → Select-DeKi15Iu.js} +31 -32
  31. package/dist/Select.es.js +1 -1
  32. package/dist/SelectSearch.es.js +1 -1
  33. package/dist/Spinner.es.js +172 -46
  34. package/dist/Steps.es.js +1 -1
  35. package/dist/Toast.es.js +22 -22
  36. package/dist/Tooltip.es.js +1 -1
  37. package/dist/components/Drawer/DrawerDesktop.d.ts +1 -0
  38. package/dist/components/Drawer/useDrawerDesktop.d.ts +1 -1
  39. package/dist/components/RecurrentDatePicker/PreviewCalendar.d.ts +4 -1
  40. package/dist/components/RecurrentDatePicker/RecurrentDatePicker.d.ts +4 -4
  41. package/dist/components/RecurrentDatePicker/RecurrentDatePickerRRule.d.ts +13 -0
  42. package/dist/components/RecurrentDatePicker/recurrentDatePicker.validations.d.ts +3 -3
  43. package/dist/components/Spinner/Spinner.d.ts +6 -6
  44. package/dist/exports/DrawerDesktop.d.ts +4 -0
  45. package/dist/exports/DrawerMobile.d.ts +4 -0
  46. package/dist/exports/Icons.d.ts +1 -2
  47. package/dist/exports/RecurrentDatePicker.d.ts +5 -0
  48. package/dist/exports/RecurrentDatePickerRRule.d.ts +2 -0
  49. package/dist/exports/Spinner.d.ts +2 -1
  50. package/dist/index.d.ts +8 -3
  51. package/dist/prometeo-design-system.es.js +412 -762
  52. package/dist/styles.css +1 -0
  53. package/dist/styles.d.ts +1 -0
  54. package/package.json +19 -6
  55. package/src/styles/app.css +1 -1313
  56. package/src/styles/base.css +1331 -0
  57. package/src/styles/utilities.css +24 -36
  58. package/dist/Icons-DtFC5DJ7.js +0 -1079
  59. package/dist/components/Spinner/SpinnerV2.d.ts +0 -12
  60. package/dist/prometeo-design-system.css +0 -1
@@ -1,12 +1,12 @@
1
1
  import { j as s } from "./jsx-runtime-DKDX3adD.js";
2
- import { a as Qe, i as Xe, f as Ue, S as Ye } from "./Icons-DtFC5DJ7.js";
2
+ import { Close as Qe, Cancel as Xe, ChevronDown as Ue, Search as Ye } from "./Icons.es.js";
3
3
  import { c as f } from "./cn-B6yFEsav.js";
4
4
  import Ne, { memo as Z, useState as De, useRef as ce, useMemo as oe, useCallback as U, useEffect as ve, useImperativeHandle as Ze } from "react";
5
5
  import et from "./Spinner.es.js";
6
6
  import { createPortal as tt } from "react-dom";
7
7
  import { u as nt } from "./useDragScroll-CHN9OMwn.js";
8
- import { u as rt, I as lt } from "./Input-Cck37DpG.js";
9
- import { H as ot } from "./HelperComponent-g_xuKWzK.js";
8
+ import { u as rt, I as lt } from "./Input-Cf8P1QJv.js";
9
+ import { H as ot } from "./HelperComponent-BeNlTMqI.js";
10
10
  import st from "./CheckBox.es.js";
11
11
  import Ke from "./Skeleton.es.js";
12
12
  const at = {
@@ -94,9 +94,9 @@ const qe = (e, n) => {
94
94
  for (let x = 1; x <= I; x++) {
95
95
  let S = x - 1;
96
96
  A[0] = x;
97
- for (let M = 1; M <= W; M++) {
98
- const se = A[M], K = b.charCodeAt(x - 1) === k.charCodeAt(M - 1) ? 0 : 1, V = A[M] + 1, z = A[M - 1] + 1, N = S + K;
99
- A[M] = V < z ? V < N ? V : N : z < N ? z : N, S = se;
97
+ for (let z = 1; z <= W; z++) {
98
+ const se = A[z], K = b.charCodeAt(x - 1) === k.charCodeAt(z - 1) ? 0 : 1, V = A[z] + 1, M = A[z - 1] + 1, N = S + K;
99
+ A[z] = V < M ? V < N ? V : N : M < N ? M : N, S = se;
100
100
  }
101
101
  }
102
102
  return A[W];
@@ -173,11 +173,11 @@ function ct(e) {
173
173
  ), W = ce(null), A = ce(/* @__PURE__ */ new Set()), {
174
174
  id: x,
175
175
  name: S,
176
- label: M,
176
+ label: z,
177
177
  height: se,
178
178
  options: K,
179
179
  controls: V,
180
- className: z,
180
+ className: M,
181
181
  placeholder: N,
182
182
  optionValue: E,
183
183
  optionLabel: de,
@@ -202,9 +202,9 @@ function ct(e) {
202
202
  attachToParent: Ae = !1,
203
203
  displayMode: we = "compact",
204
204
  labelVariant: ie = "default",
205
- disableOpenOnFocus: Me = !1,
205
+ disableOpenOnFocus: ze = !1,
206
206
  emptyMessage: ke = "No hay opciones disponibles"
207
- } = e, { ref: Oe } = rt(), { bind: ne, ref: ze } = nt({
207
+ } = e, { ref: Oe } = rt(), { bind: ne, ref: Me } = nt({
208
208
  axis: "x",
209
209
  cursor: { idle: "default", dragging: "grabbing" }
210
210
  }), pe = e.multiple ? Array.isArray(e.value) && e.value.length > 0 : e.value !== void 0 && e.value !== null && e.value !== "", Le = {}, Te = oe(() => ie === "static" && N ? N : "", [ie, N]), Ge = oe(
@@ -414,7 +414,7 @@ function ct(e) {
414
414
  [n, y]
415
415
  );
416
416
  const be = (t) => {
417
- t.preventDefault(), t.stopPropagation(), t.target.matches(":focus-visible") && !Me && !n && (m(!0), setTimeout(() => {
417
+ t.preventDefault(), t.stopPropagation(), t.target.matches(":focus-visible") && !ze && !n && (m(!0), setTimeout(() => {
418
418
  b.current?.focus();
419
419
  }, 10));
420
420
  }, ue = (t) => {
@@ -425,7 +425,7 @@ function ct(e) {
425
425
  return /* @__PURE__ */ s.jsxs(
426
426
  "div",
427
427
  {
428
- className: f("relative bg-inherit select-none w-full", z),
428
+ className: f("relative bg-inherit select-none w-full", M),
429
429
  ref: j,
430
430
  draggable: !1,
431
431
  style: Le,
@@ -443,7 +443,7 @@ function ct(e) {
443
443
  pe || n ? _e[F].label : "text-neutral-medium-default",
444
444
  te && Re.label
445
445
  ),
446
- children: M
446
+ children: z
447
447
  }
448
448
  ),
449
449
  /* @__PURE__ */ s.jsxs(
@@ -474,7 +474,7 @@ function ct(e) {
474
474
  className: f(
475
475
  "flex-1 overflow-x-auto overflow-y-hidden px-1 prometeo-scrollbar-none "
476
476
  ),
477
- ref: ze,
477
+ ref: Me,
478
478
  onPointerUp: ne.onPointerUp,
479
479
  onPointerDown: ne.onPointerDown,
480
480
  onPointerMove: ne.onPointerMove,
@@ -514,9 +514,8 @@ function ct(e) {
514
514
  et,
515
515
  {
516
516
  size: "small",
517
- variant: "clip",
518
- className: " translate-y-1",
519
- speedMultiplier: 0.7
517
+ variant: "sync",
518
+ className: " opacity-90"
520
519
  }
521
520
  ),
522
521
  pe && me && /* @__PURE__ */ s.jsx(
@@ -558,7 +557,7 @@ function ct(e) {
558
557
  n && /* @__PURE__ */ s.jsx(
559
558
  mt,
560
559
  {
561
- label: M,
560
+ label: z,
562
561
  isOpen: n,
563
562
  disabled: te,
564
563
  optionValue: E,
@@ -628,11 +627,11 @@ function ft({
628
627
  emptyMessage: A,
629
628
  renderOption: x,
630
629
  renderOptionContext: S,
631
- renderOptionGroupHeader: M,
630
+ renderOptionGroupHeader: z,
632
631
  onOptionClick: se,
633
632
  onSearchClear: K,
634
633
  searchInputRef: V,
635
- setSearchValue: z,
634
+ setSearchValue: M,
636
635
  dropdownHeight: N,
637
636
  attachToParent: E,
638
637
  filteredOptions: de,
@@ -655,7 +654,7 @@ function ft({
655
654
  height: F
656
655
  }), [we, ie] = De(
657
656
  () => /* @__PURE__ */ new Set()
658
- ), Me = U(
657
+ ), ze = U(
659
658
  (r) => !we.has(r),
660
659
  [we]
661
660
  ), ke = U(
@@ -680,7 +679,7 @@ function ft({
680
679
  p.current.style.left = `${o.left}px`, p.current.style.width = `${o.width}px`;
681
680
  }, ne = (r) => {
682
681
  p.current && (p.current.style.maxHeight = `${r}px`);
683
- }, ze = () => {
682
+ }, Me = () => {
684
683
  if (!p.current || !h.current) return he;
685
684
  const r = h.current.getBoundingClientRect(), o = window.innerHeight - (window.innerHeight - r.top), c = window.innerHeight - r.bottom, d = c >= F, w = o >= F;
686
685
  let L = "down", y;
@@ -692,7 +691,7 @@ function ft({
692
691
  return;
693
692
  }
694
693
  if (!E) {
695
- const o = ze();
694
+ const o = Me();
696
695
  Ae(o), Oe(o.direction), ne(o.height);
697
696
  }
698
697
  p.current.style.opacity = "1", p.current.style.pointerEvents = "auto";
@@ -753,7 +752,7 @@ function ft({
753
752
  O(r);
754
753
  return;
755
754
  }
756
- z && i && z(r);
755
+ M && i && M(r);
757
756
  }, Ge = U(() => {
758
757
  if (K) {
759
758
  K(), Q(
@@ -764,14 +763,14 @@ function ft({
764
763
  );
765
764
  return;
766
765
  }
767
- z && (z(""), Q(i));
766
+ M && (M(""), Q(i));
768
767
  }, [
769
768
  i,
770
769
  ae,
771
770
  k,
772
771
  K,
773
772
  Q,
774
- z,
773
+ M,
775
774
  x
776
775
  ]), $e = (r) => {
777
776
  r.key === "ArrowDown" ? (r.preventDefault(), p.current?.querySelector(
@@ -867,7 +866,7 @@ function ft({
867
866
  disabled: v,
868
867
  ref: V,
869
868
  labelVariant: "static",
870
- icon: /* @__PURE__ */ s.jsx(Ye, {}),
869
+ icon: /* @__PURE__ */ s.jsx(Ye, { size: 22 }),
871
870
  isFetching: ee,
872
871
  onKeyDown: $e,
873
872
  onClear: Ge,
@@ -891,8 +890,8 @@ function ft({
891
890
  );
892
891
  }, q = (l) => {
893
892
  if (se(l, !u), !u) {
894
- if (!z) return;
895
- z(""), Q(i);
893
+ if (!M) return;
894
+ M(""), Q(i);
896
895
  }
897
896
  }, re = (l, g) => {
898
897
  const H = !!g.isGroupHeader;
@@ -916,7 +915,7 @@ function ft({
916
915
  );
917
916
  };
918
917
  if (d) {
919
- const l = c.groupLabelNode ?? c.label, g = String(c.id), H = X === !1 ? !0 : Me(g);
918
+ const l = c.groupLabelNode ?? c.label, g = String(c.id), H = X === !1 ? !0 : ze(g);
920
919
  r = H;
921
920
  const $ = c.originalOption, P = c.groupData?.groupOptions ?? [], le = (_) => {
922
921
  X && ke(g, _);
@@ -925,9 +924,9 @@ function ft({
925
924
  }, ye = P.filter(
926
925
  (_) => ae.has(G(_, k))
927
926
  ).map((_) => String(G(_, k)));
928
- if (M) {
927
+ if (z) {
929
928
  const _ = Z(
930
- M,
929
+ z,
931
930
  (D, B) => D.label === B.label && D.group === B.group && D.groupOptions === B.groupOptions && D.disabled === B.disabled && D.multiple === B.multiple && D.expanded === B.expanded && D.renderContext === B.renderContext
932
931
  ), C = Ne.createElement(_, {
933
932
  group: $,
package/dist/Select.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as f } from "./Select-BD5FTxVw.js";
1
+ import { S as f } from "./Select-DeKi15Iu.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { j as G } from "./jsx-runtime-DKDX3adD.js";
2
- import { g as i, S as H } from "./Select-BD5FTxVw.js";
2
+ import { g as i, S as H } from "./Select-DeKi15Iu.js";
3
3
  import { useState as T, useRef as I, useEffect as h, useMemo as Q, useCallback as X } from "react";
4
4
  function te(e) {
5
5
  const {
@@ -1,51 +1,177 @@
1
- import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
- import { ClipLoader as l, SyncLoader as m, HashLoader as p, GridLoader as x, DotLoader as j, BounceLoader as f } from "react-spinners";
3
- import { c as L } from "./cn-B6yFEsav.js";
4
- const y = ({
5
- variant: a = "sync",
6
- color: t = "#3B82F6",
7
- loading: o = !0,
8
- size: s = "medium",
9
- className: c = "",
10
- speedMultiplier: i = 1
11
- }) => {
12
- const n = (() => {
13
- if (typeof s == "number") return s;
14
- switch (s) {
15
- case "small":
16
- return 20;
17
- case "medium":
18
- return 35;
19
- case "large":
20
- return 50;
21
- default:
22
- return 35;
23
- }
24
- })(), r = {
25
- color: t,
26
- loading: o,
27
- size: n,
28
- speedMultiplier: i,
29
- "aria-label": "Loading Spinner",
30
- "data-testid": "spinner"
31
- }, u = L("inline-block", c), d = () => {
32
- switch (a) {
33
- case "bounce":
34
- return /* @__PURE__ */ e.jsx(f, { ...r });
35
- case "dot":
36
- return /* @__PURE__ */ e.jsx(j, { ...r });
37
- case "grid":
38
- return /* @__PURE__ */ e.jsx(x, { ...r, size: n * 0.4 });
39
- case "hash":
40
- return /* @__PURE__ */ e.jsx(p, { ...r });
41
- case "sync":
42
- return /* @__PURE__ */ e.jsx(m, { ...r, size: n * 0.4 });
43
- case "clip":
44
- default:
45
- return /* @__PURE__ */ e.jsx(l, { ...r });
1
+ import { j as n } from "./jsx-runtime-DKDX3adD.js";
2
+ import { c as l } from "./cn-B6yFEsav.js";
3
+ import { c as p } from "./index-BOQuZ0gG.js";
4
+ import { memo as d } from "react";
5
+ const m = p("rounded-full", {
6
+ variants: {
7
+ variant: {
8
+ sync: "",
9
+ dot: "",
10
+ bounce: "",
11
+ linear: ""
12
+ },
13
+ size: {
14
+ small: "",
15
+ medium: "",
16
+ large: ""
46
17
  }
18
+ },
19
+ defaultVariants: {
20
+ variant: "sync",
21
+ size: "medium"
22
+ },
23
+ compoundVariants: [
24
+ { variant: "sync", size: "small", className: "w-6 h-6" },
25
+ { variant: "sync", size: "medium", className: "w-8 h-8" },
26
+ { variant: "sync", size: "large", className: "w-12 h-12" },
27
+ { variant: "dot", size: "small" },
28
+ { variant: "dot", size: "medium" },
29
+ { variant: "dot", size: "large" }
30
+ ]
31
+ }), u = (o) => {
32
+ const {
33
+ variant: s = "sync",
34
+ color: r = "var(--primary-500)",
35
+ secondaryColor: a = "var(--primary-200)",
36
+ size: e = "medium",
37
+ ...i
38
+ } = o;
39
+ return s === "sync" ? /* @__PURE__ */ n.jsx(
40
+ c,
41
+ {
42
+ color: r,
43
+ secondaryColor: a,
44
+ size: e,
45
+ ...i
46
+ }
47
+ ) : s === "dot" ? /* @__PURE__ */ n.jsx(
48
+ v,
49
+ {
50
+ size: e,
51
+ ...i
52
+ }
53
+ ) : s === "bounce" ? /* @__PURE__ */ n.jsx(
54
+ x,
55
+ {
56
+ size: e,
57
+ ...i
58
+ }
59
+ ) : s === "linear" ? /* @__PURE__ */ n.jsx(
60
+ z,
61
+ {
62
+ color: r,
63
+ secondaryColor: a,
64
+ size: e,
65
+ ...i
66
+ }
67
+ ) : (
68
+ //default
69
+ /* @__PURE__ */ n.jsx(
70
+ c,
71
+ {
72
+ color: r,
73
+ secondaryColor: a,
74
+ size: e,
75
+ ...i
76
+ }
77
+ )
78
+ );
79
+ }, y = d(u);
80
+ y.displayName = "Spinner";
81
+ const c = (o) => {
82
+ const { size: s, className: r, color: a, secondaryColor: e, speedMultiplier: i = 1 } = o, t = {
83
+ small: "2px",
84
+ medium: "4px",
85
+ large: "5px"
86
+ };
87
+ return /* @__PURE__ */ n.jsx(
88
+ "div",
89
+ {
90
+ className: l(
91
+ m({ size: s }),
92
+ "spinner-sync-animation",
93
+ r
94
+ ),
95
+ style: {
96
+ "--spinner-color": a,
97
+ "--spinner-secondary-color": e,
98
+ "--spinner-speed": i,
99
+ "--border-width": t[s || "medium"],
100
+ background: "transparent"
101
+ }
102
+ }
103
+ );
104
+ }, v = (o) => {
105
+ const {
106
+ size: s,
107
+ className: r,
108
+ color: a = "var(--primary-500)",
109
+ speedMultiplier: e = 1
110
+ } = o, t = p("rounded-full", {
111
+ variants: {
112
+ size: {
113
+ small: "w-2 h-2",
114
+ medium: "w-3 h-3",
115
+ large: "w-4 h-4"
116
+ }
117
+ },
118
+ defaultVariants: {
119
+ size: "medium"
120
+ }
121
+ })({ size: s });
122
+ return /* @__PURE__ */ n.jsxs(
123
+ "div",
124
+ {
125
+ className: l("spinner-dot-animation", r),
126
+ style: {
127
+ "--spinner-dot-color": a,
128
+ "--spinner-dot-speed": e
129
+ },
130
+ children: [
131
+ /* @__PURE__ */ n.jsx("span", { className: l("spinner-dot", t) }),
132
+ /* @__PURE__ */ n.jsx("span", { className: l("spinner-dot", t) }),
133
+ /* @__PURE__ */ n.jsx("span", { className: l("spinner-dot", t) })
134
+ ]
135
+ }
136
+ );
137
+ }, x = (o) => {
138
+ const { size: s, className: r, color: a, speedMultiplier: e = 1 } = o;
139
+ return /* @__PURE__ */ n.jsx(
140
+ "div",
141
+ {
142
+ className: l(
143
+ m({ size: s }),
144
+ "spinner-bounce-animation",
145
+ r
146
+ ),
147
+ style: {
148
+ "--spinner-color": a,
149
+ "--spinner-speed": e
150
+ }
151
+ }
152
+ );
153
+ }, z = (o) => {
154
+ const { size: s, className: r, color: a = "var(--primary-500)", secondaryColor: e = "var(--primary-200)", speedMultiplier: i = 1 } = o, t = {
155
+ small: "0.25rem",
156
+ medium: "0.33rem",
157
+ large: "0.5rem"
47
158
  };
48
- return /* @__PURE__ */ e.jsx("div", { className: u, children: d() });
159
+ return /* @__PURE__ */ n.jsx(
160
+ "div",
161
+ {
162
+ className: l(
163
+ m({ size: s, variant: "linear" }),
164
+ "spinner-linear-animation",
165
+ r
166
+ ),
167
+ style: {
168
+ "--spinner-color": a,
169
+ "--spinner-secondary-color": e,
170
+ "--spinner-speed": i,
171
+ "--spinner-height": t[s || "medium"]
172
+ }
173
+ }
174
+ );
49
175
  };
50
176
  export {
51
177
  y as default
package/dist/Steps.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
- import { C as j } from "./Icons-DtFC5DJ7.js";
2
+ import { Check as j } from "./Icons.es.js";
3
3
  import { c as y } from "./cn-B6yFEsav.js";
4
4
  import { motion as r } from "framer-motion";
5
5
  import N from "react";
package/dist/Toast.es.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
2
  import w from "react";
3
3
  import { toast as p } from "sonner";
4
- import { c as r } from "./cn-B6yFEsav.js";
5
- import { I as m, E as u, i as f, k as b, a as C } from "./Icons-DtFC5DJ7.js";
4
+ import { c as s } from "./cn-B6yFEsav.js";
5
+ import { Info as m, Error as u, Cancel as f, CheckCircle as b, Close as C } from "./Icons.es.js";
6
6
  import h from "./Button.es.js";
7
7
  const x = {
8
8
  dark: {
@@ -63,18 +63,18 @@ const x = {
63
63
  shadow: "0px 0px 2px 0px rgba(0, 0, 0, 0.35),8px 8px 20px 0px rgba(0, 0, 0, 0.3),0px 0px 15px 0px rgba(0, 0, 0, 0.2),0px 0px 20px 0px rgba(21, 21, 21, 0.3) inset,6px 0px 100px 0px rgba(0, 0, 0, 0.05) inset"
64
64
  }
65
65
  }, v = (l) => {
66
- const { title: t, description: o, button: s, id: n, icon: c, variant: d = "info", colorMode: a = "dark", showClose: g = !1 } = l;
66
+ const { title: a, description: o, button: r, id: n, icon: c, variant: d = "info", colorMode: t = "dark", showClose: g = !1 } = l;
67
67
  return /* @__PURE__ */ e.jsxs(
68
68
  "div",
69
69
  {
70
70
  style: {
71
- boxShadow: i[a].shadow
71
+ boxShadow: i[t].shadow
72
72
  },
73
- className: r(
73
+ className: s(
74
74
  "flex p-3 pb-4 md:w-[485px] md:max-w-[485px] md:min-w-[485px] md:h-[68px] md:max-h-[68px] rounded-lg gap-2",
75
75
  "w-[345px] max-w-[345px] min-w-[345px] h-[68px] max-h-[68px]",
76
- i[a].container,
77
- x[a][d].container
76
+ i[t].container,
77
+ x[t][d].container
78
78
  ),
79
79
  children: [
80
80
  /* @__PURE__ */ e.jsxs(
@@ -82,20 +82,20 @@ const x = {
82
82
  {
83
83
  className: "flex items-center justify-start gap-2 max-h-[38px] h-[38px] overflow-hidden flex-1 ",
84
84
  children: [
85
- /* @__PURE__ */ e.jsx("div", { className: "f", style: { color: "inherit" }, children: w.createElement(c || x[a][d].icon, { size: 24, className: x[a][d].iconClass }) }),
85
+ /* @__PURE__ */ e.jsx("div", { className: "f", style: { color: "inherit" }, children: w.createElement(c || x[t][d].icon, { size: 24, className: x[t][d].iconClass }) }),
86
86
  /* @__PURE__ */ e.jsxs("div", { className: "flex-1 flex flex-col gap-1", children: [
87
- /* @__PURE__ */ e.jsx("p", { className: r("select-none prometeo-fonts-label-medium md:prometeo-fonts-label-xlarge", i[a].title), children: t }),
88
- o && /* @__PURE__ */ e.jsx("p", { className: r("select-none prometeo-fonts-body-xsmall md:prometeo-fonts-body-small text-nowrap overflow-ellipsis ", i[a].description), children: o })
87
+ /* @__PURE__ */ e.jsx("p", { className: s("select-none prometeo-fonts-label-medium md:prometeo-fonts-label-xlarge", i[t].title), children: a }),
88
+ o && /* @__PURE__ */ e.jsx("p", { className: s("select-none prometeo-fonts-body-xsmall md:prometeo-fonts-body-small text-nowrap overflow-ellipsis ", i[t].description), children: o })
89
89
  ] })
90
90
  ]
91
91
  }
92
92
  ),
93
- s?.label && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ e.jsx(
93
+ r?.label && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ e.jsx(
94
94
  h,
95
95
  {
96
- label: s?.label,
96
+ label: r?.label,
97
97
  onClick: () => {
98
- s?.onClick(), p.dismiss(n);
98
+ r?.onClick(), p.dismiss(n);
99
99
  },
100
100
  size: "small",
101
101
  color: "secondary"
@@ -110,28 +110,28 @@ const x = {
110
110
  label: "",
111
111
  size: "small",
112
112
  color: "secondary",
113
- icon: /* @__PURE__ */ e.jsx(C, { className: r(a === "light" ? "text-neutral-medium-focused " : "") }),
113
+ icon: /* @__PURE__ */ e.jsx(C, { className: s(t === "light" ? "text-neutral-medium-focused " : "") }),
114
114
  variant: "text",
115
115
  animate: !1,
116
- className: r(a === "light" ? "hover:bg-neutral-default-hover-light focus:bg-inherit active:bg-neutral-weak-hover " : "")
116
+ className: s(t === "light" ? "hover:bg-neutral-default-hover-light focus:bg-inherit active:bg-neutral-weak-hover " : "")
117
117
  }
118
118
  ) })
119
119
  ]
120
120
  }
121
121
  );
122
122
  };
123
- function M(l, t) {
124
- const { duration: o = 2500, showClose: s = !1, colorMode: n = "dark" } = t || {};
123
+ function M(l, a) {
124
+ const { duration: o = 2500, showClose: r = !1, colorMode: n = "dark" } = a || {};
125
125
  return p.custom((c) => /* @__PURE__ */ e.jsx(
126
126
  v,
127
127
  {
128
128
  id: c,
129
- variant: t?.variant || "success",
129
+ variant: a?.variant || "success",
130
130
  title: l,
131
- description: t?.description,
132
- icon: t?.icon,
133
- button: t?.button,
134
- showClose: s,
131
+ description: a?.description,
132
+ icon: a?.icon,
133
+ button: a?.button,
134
+ showClose: r,
135
135
  colorMode: n
136
136
  }
137
137
  ), {
@@ -1,5 +1,5 @@
1
1
  import { j as e } from "./jsx-runtime-DKDX3adD.js";
2
- import { a as f } from "./Icons-DtFC5DJ7.js";
2
+ import { Close as f } from "./Icons.es.js";
3
3
  import { AnimatePresence as p, motion as n } from "framer-motion";
4
4
  import { useState as x, cloneElement as b } from "react";
5
5
  const N = ({
@@ -3,6 +3,7 @@ export interface DrawerDesktopHandle<TContext = unknown> {
3
3
  close: () => void;
4
4
  isOpen: boolean;
5
5
  getContext: () => TContext | null;
6
+ subscribeOpenChange: (cb: (open: boolean) => void) => () => void;
6
7
  }
7
8
  export interface DrawerDesktopProps<TContext = unknown> {
8
9
  children?: React.ReactNode | ((context: TContext | null) => React.ReactNode);
@@ -1,6 +1,6 @@
1
1
  import { DrawerDesktopHandle } from './DrawerDesktop';
2
2
  export declare const useDrawerDesktop: <TContext = unknown>() => {
3
- isOpen: () => boolean;
3
+ isOpen: boolean;
4
4
  open: (context?: TContext) => void;
5
5
  close: () => void;
6
6
  drawerRef: import('react').RefObject<DrawerDesktopHandle<TContext> | null>;
@@ -1,2 +1,5 @@
1
- declare const PreviewCalendar: () => import("react/jsx-runtime").JSX.Element;
1
+ type PreviewCalendarProps = {
2
+ selected: Date[];
3
+ };
4
+ declare const PreviewCalendar: (props: PreviewCalendarProps) => import("react/jsx-runtime").JSX.Element;
2
5
  export default PreviewCalendar;
@@ -7,7 +7,7 @@ export declare const RecurrenceFrecuencyOptions: {
7
7
  label: string;
8
8
  value: string;
9
9
  }[];
10
- export interface RecurrentDatePickerValue {
10
+ export interface RecurrenceConfig {
11
11
  frequency: RecurrenceFrequencyType;
12
12
  startDate: Date;
13
13
  frequencySettings: FrequencySettingsValue;
@@ -30,9 +30,9 @@ export interface RecurrentDatePickerErrors {
30
30
  frequencySettings?: FrequencySettingsErrors;
31
31
  }
32
32
  export type RecurrentDatePickerProps = {
33
- value?: RecurrentDatePickerValue;
34
- defaultValue?: RecurrentDatePickerValue;
35
- onChange?: (value: RecurrentDatePickerValue) => void;
33
+ value?: RecurrenceConfig;
34
+ defaultValue?: RecurrenceConfig;
35
+ onChange?: (value: RecurrenceConfig) => void;
36
36
  errors?: RecurrentDatePickerErrors;
37
37
  };
38
38
  declare const RecurrentDatePicker: import('react').MemoExoticComponent<(props: RecurrentDatePickerProps) => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,13 @@
1
+ import { RecurrenceConfig, RecurrentDatePickerErrors } from './RecurrentDatePicker';
2
+ export type RecurrentDatePickerRRuleProps = {
3
+ value?: RecurrenceConfig;
4
+ defaultValue?: RecurrenceConfig;
5
+ onChange?: (value: RecurrenceConfig) => void;
6
+ errors?: RecurrentDatePickerErrors;
7
+ onRRuleChange?: (rrule: string) => void;
8
+ showPreview?: boolean;
9
+ previewCount?: number;
10
+ previewUntil?: Date;
11
+ };
12
+ declare const RecurrentDatePickerRRule: import('react').MemoExoticComponent<(props: RecurrentDatePickerRRuleProps) => import("react/jsx-runtime").JSX.Element>;
13
+ export default RecurrentDatePickerRRule;
@@ -1,4 +1,4 @@
1
- import { RecurrentDatePickerValue, RecurrentDatePickerErrors } from './RecurrentDatePicker';
1
+ import { RecurrenceConfig, RecurrentDatePickerErrors } from './RecurrentDatePicker';
2
2
  export declare const dataValidations: {
3
3
  weekly: {
4
4
  weekDay: {
@@ -65,5 +65,5 @@ export declare const dataValidations: {
65
65
  };
66
66
  };
67
67
  };
68
- export declare const validateRecurrentDatePickerValue: (value: RecurrentDatePickerValue) => RecurrentDatePickerErrors;
69
- export declare const isRecurrentDatePickerValid: (value: RecurrentDatePickerValue) => boolean;
68
+ export declare const validateRecurrentDatePickerValue: (value: RecurrenceConfig) => RecurrentDatePickerErrors;
69
+ export declare const isRecurrentDatePickerValid: (value: RecurrenceConfig) => boolean;
@@ -1,12 +1,12 @@
1
- export type SpinnerVariant = 'sync' | 'clip' | 'bounce' | 'dot' | 'grid' | 'hash';
2
- export type SpinnerSize = 'small' | 'medium' | 'large' | number;
1
+ import { SizeVariant } from '../Shared/types';
2
+ export type SpinnerVariant = 'sync' | 'clip' | 'bounce' | 'dot' | 'grid' | 'hash' | 'linear';
3
3
  export interface SpinnerProps {
4
- variant?: SpinnerVariant;
5
4
  color?: string;
6
- loading?: boolean;
7
- size?: SpinnerSize;
5
+ secondaryColor?: string;
6
+ size?: SizeVariant;
8
7
  className?: string;
9
8
  speedMultiplier?: number;
9
+ variant?: SpinnerVariant;
10
10
  }
11
- declare const Spinner: ({ variant, color, loading, size, className, speedMultiplier }: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
11
+ declare const Spinner: import('react').MemoExoticComponent<(props: SpinnerProps) => import("react/jsx-runtime").JSX.Element>;
12
12
  export default Spinner;