@mci-ui/mci-ui 0.0.86 → 0.0.88

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 (67) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared/ui/MciModal/MciModal.js +107 -59
  3. package/dist/shared/ui/mciAccordion/MciAccordion.js +97 -64
  4. package/dist/shared/ui/mciBreadcrumb/MciBreadcrumb.js +23 -21
  5. package/dist/shared/ui/mciButton/MciButton.js +47 -32
  6. package/dist/shared/ui/mciCheck/MciCheck.js +116 -92
  7. package/dist/shared/ui/mciCollapse/MciCollapse.js +86 -54
  8. package/dist/shared/ui/mciDrawer/MciDrawer.js +82 -59
  9. package/dist/shared/ui/mciInput/MciInput.js +143 -130
  10. package/dist/shared/ui/mciInput/mci-input.utils.js +10 -10
  11. package/dist/shared/ui/mciPagination/MciPagination.js +85 -63
  12. package/dist/shared/ui/mciPhone/MciPhone.js +59 -54
  13. package/dist/shared/ui/mciPhone/mci-phone.utils.js +10 -10
  14. package/dist/shared/ui/mciPicker/MciPicker.js +349 -181
  15. package/dist/shared/ui/mciSelect/MciSelect.js +150 -131
  16. package/dist/shared/ui/mciSelect/mci-select.utils.js +12 -12
  17. package/dist/shared/ui/mciSkeleton/MciSkeleton.js +16 -14
  18. package/dist/shared/ui/mciTable/MciTable.js +165 -126
  19. package/dist/shared/ui/mciTable/MciTableColumnsPanel.js +113 -106
  20. package/dist/shared/ui/mciTabs/MciTabs.js +73 -55
  21. package/dist/shared/ui/mciTag/MciTag.js +27 -18
  22. package/dist/shared/ui/mciTextarea/MciTextarea.js +47 -35
  23. package/dist/shared/ui/mciToast/MciToast.js +118 -72
  24. package/dist/shared/ui/mciToast/mci-toast.utils.js +40 -12
  25. package/dist/shared/ui/mciToggle/MciToggle.js +58 -36
  26. package/dist/shared/ui/mciTooltip/MciTooltip.js +2 -2
  27. package/dist/shared/ui/mciUpload/MciUpload.js +172 -149
  28. package/dist/types/shared/types/mci-table.types.d.ts +1 -0
  29. package/dist/types/shared/types/ui/accordion.types.d.ts +1 -0
  30. package/dist/types/shared/types/ui/breadcrumb.types.d.ts +1 -0
  31. package/dist/types/shared/types/ui/button.types.d.ts +3 -7
  32. package/dist/types/shared/types/ui/check.types.d.ts +4 -9
  33. package/dist/types/shared/types/ui/collapse.types.d.ts +1 -0
  34. package/dist/types/shared/types/ui/drawer.types.d.ts +2 -0
  35. package/dist/types/shared/types/ui/input.types.d.ts +4 -15
  36. package/dist/types/shared/types/ui/modal.types.d.ts +1 -0
  37. package/dist/types/shared/types/ui/pagination.types.d.ts +1 -0
  38. package/dist/types/shared/types/ui/phone.types.d.ts +1 -0
  39. package/dist/types/shared/types/ui/picker.types.d.ts +1 -0
  40. package/dist/types/shared/types/ui/select.types.d.ts +1 -0
  41. package/dist/types/shared/types/ui/skeleton.types.d.ts +1 -0
  42. package/dist/types/shared/types/ui/tabs.types.d.ts +1 -0
  43. package/dist/types/shared/types/ui/tag.types.d.ts +1 -0
  44. package/dist/types/shared/types/ui/textarea.types.d.ts +3 -7
  45. package/dist/types/shared/types/ui/toast.types.d.ts +1 -0
  46. package/dist/types/shared/types/ui/toggle.types.d.ts +3 -2
  47. package/dist/types/shared/types/ui/upload.types.d.ts +1 -0
  48. package/dist/types/shared/ui/MciModal/MciModal.d.ts +1 -1
  49. package/dist/types/shared/ui/mciAccordion/MciAccordion.d.ts +5 -3
  50. package/dist/types/shared/ui/mciBreadcrumb/MciBreadcrumb.d.ts +1 -1
  51. package/dist/types/shared/ui/mciButton/MciButton.d.ts +1 -1
  52. package/dist/types/shared/ui/mciCollapse/MciCollapse.d.ts +1 -1
  53. package/dist/types/shared/ui/mciDrawer/MciDrawer.d.ts +1 -1
  54. package/dist/types/shared/ui/mciInput/MciInput.d.ts +13 -2
  55. package/dist/types/shared/ui/mciInput/mci-input.utils.d.ts +2 -2
  56. package/dist/types/shared/ui/mciPagination/MciPagination.d.ts +1 -1
  57. package/dist/types/shared/ui/mciPhone/mci-phone.utils.d.ts +2 -2
  58. package/dist/types/shared/ui/mciSelect/mci-select.utils.d.ts +2 -2
  59. package/dist/types/shared/ui/mciSkeleton/MciSkeleton.d.ts +1 -1
  60. package/dist/types/shared/ui/mciTable/MciTable.d.ts +1 -1
  61. package/dist/types/shared/ui/mciTable/MciTableColumnsPanel.d.ts +2 -1
  62. package/dist/types/shared/ui/mciTabs/MciTabs.d.ts +1 -1
  63. package/dist/types/shared/ui/mciTag/MciTag.d.ts +1 -1
  64. package/dist/types/shared/ui/mciTextarea/MciTextarea.d.ts +7 -2
  65. package/dist/types/shared/ui/mciToast/mci-toast.utils.d.ts +32 -4
  66. package/dist/types/shared/ui/mciToggle/MciToggle.d.ts +1 -1
  67. package/package.json +1 -1
@@ -1,135 +1,157 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import { AltArrowDown as k, AltArrowLeft as j, MenuDots as M, AltArrowRight as L } from "@solar-icons/react";
3
- import { useMemo as z } from "react";
1
+ import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
+ import { AltArrowDown as L, AltArrowLeft as z, MenuDots as E, AltArrowRight as S } from "@solar-icons/react";
3
+ import { useMemo as T } from "react";
4
4
  import { cn as r } from "../../lib/utils.js";
5
- import { createPageRange as E } from "./mci-pagination.utils.js";
6
- const I = {
5
+ import { createPageRange as F } from "./mci-pagination.utils.js";
6
+ const _ = {
7
7
  medium: "h-9 text-sm",
8
8
  large: "h-10 text-base"
9
- }, S = {
9
+ }, G = {
10
10
  yellow: {
11
11
  active: "bg-yellow-500 text-white border-yellow-500",
12
12
  inactive: "bg-slate-100 border-slate-200 text-black hover:bg-slate-200",
13
13
  disabled: "text-slate-400 border-slate-200",
14
- arrow: "text-black"
14
+ arrow: "text-black",
15
+ darkActive: "bg-yellow-500 text-white border-yellow-500",
16
+ darkInactive: "bg-neutral-300 border-neutral-200 text-neutral-50 hover:bg-neutral-200",
17
+ darkDisabled: "text-white border-neutral-200 bg-neutral-300/60",
18
+ darkArrow: "text-neutral-50"
15
19
  },
16
20
  blue: {
17
21
  active: "bg-blue-600 text-white border-blue-600",
18
22
  inactive: "bg-slate-100 border-slate-200 text-black hover:bg-slate-200",
19
23
  disabled: "text-slate-400 border-slate-300",
20
- arrow: "text-black"
24
+ arrow: "text-black",
25
+ darkActive: "bg-blue-500 text-white border-blue-500",
26
+ darkInactive: "bg-neutral-300 border-neutral-200 text-white hover:bg-neutral-200",
27
+ darkDisabled: "text-neutral-100/50 border-neutral-200 bg-neutral-300/60",
28
+ darkArrow: "text-neutral-50"
21
29
  }
22
30
  };
23
- function G({
24
- totalItems: o,
31
+ function P({
32
+ totalItems: c,
25
33
  currentPage: m,
26
- perPage: c,
27
- onPageChange: d,
28
- onPerPageChange: u,
29
- siblingCount: h = 1,
30
- perPageOptions: v = [10, 30, 50, 100],
31
- showPerPage: g = !0,
32
- variant: N = "yellow",
33
- size: f = "large",
34
- paginationClassName: y
34
+ perPage: b,
35
+ onPageChange: u,
36
+ onPerPageChange: h,
37
+ siblingCount: w = 1,
38
+ perPageOptions: A = [10, 30, 50, 100],
39
+ showPerPage: y = !0,
40
+ variant: k = "yellow",
41
+ size: x = "large",
42
+ darkMode: e = !1,
43
+ paginationClassName: j
35
44
  }) {
36
- const w = Number.isFinite(o) && o > 0 ? o : 0, x = Number.isFinite(c) && c > 0 ? c : 10, a = Math.max(1, Number.isFinite(m) ? m : 1), i = Math.ceil(w / x), A = z(() => E(a, h, i), [a, h, i]), s = I[f], l = S[N ?? "yellow"];
37
- return i <= 1 || w === 0 ? null : /* @__PURE__ */ n("div", { className: r(
45
+ const g = Number.isFinite(c) && c > 0 ? c : 0, v = Number.isFinite(b) && b > 0 ? b : 10, l = Math.max(1, Number.isFinite(m) ? m : 1), n = Math.ceil(g / v), C = T(() => F(l, w, n), [l, w, n]), s = _[x], i = G[k ?? "yellow"], I = e ? i.darkActive : i.active, D = e ? i.darkInactive : i.inactive, f = e ? i.darkDisabled : i.disabled, p = e ? i.darkArrow : i.arrow;
46
+ return n <= 1 || g === 0 ? null : /* @__PURE__ */ o("div", { className: r(
38
47
  "flex items-center justify-between gap-4 w-full",
39
- y
48
+ j
40
49
  ), children: [
41
- g && u && /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
42
- /* @__PURE__ */ e(
50
+ y && h && /* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
51
+ /* @__PURE__ */ t(
43
52
  "span",
44
53
  {
45
- className: "whitespace-nowrap text-extra-small text-slate-base font-normal",
54
+ className: r(
55
+ "whitespace-nowrap text-extra-small font-normal",
56
+ e ? "text-neutral-100" : "text-slate-base"
57
+ ),
46
58
  children: "Строк на странице:"
47
59
  }
48
60
  ),
49
- /* @__PURE__ */ n("div", { className: "relative", children: [
50
- /* @__PURE__ */ e(
61
+ /* @__PURE__ */ o("div", { className: "relative", children: [
62
+ /* @__PURE__ */ t(
51
63
  "select",
52
64
  {
53
- value: x,
54
- onChange: (t) => u(Number(t.target.value)),
65
+ value: v,
66
+ onChange: (a) => h(Number(a.target.value)),
55
67
  className: r(
56
- "appearance-none bg-white border border-slate-200 rounded-lg pl-3 pr-8 text-base text-black font-medium focus:outline-none cursor-pointer",
57
- f === "large" ? "h-10" : "h-9"
68
+ "appearance-none rounded-lg border pl-3 pr-8 text-base font-medium focus:outline-none cursor-pointer",
69
+ e ? "border-neutral-200 bg-neutral-300 text-white" : "border-slate-200 bg-white text-black",
70
+ x === "large" ? "h-10" : "h-9"
58
71
  ),
59
72
  "aria-label": "Количество строк на странице",
60
- children: v.map((t) => /* @__PURE__ */ e("option", { value: t, children: t }, t))
73
+ children: A.map((a) => /* @__PURE__ */ t("option", { value: a, children: a }, a))
61
74
  }
62
75
  ),
63
- /* @__PURE__ */ e(
64
- k,
76
+ /* @__PURE__ */ t(
77
+ L,
65
78
  {
66
- className: "absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-slate-400",
79
+ className: r(
80
+ "absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none",
81
+ e ? "text-neutral-100" : "text-slate-400"
82
+ ),
67
83
  weight: "Linear",
68
84
  size: 20
69
85
  }
70
86
  )
71
87
  ] })
72
88
  ] }),
73
- /* @__PURE__ */ n("nav", { "aria-label": "Пагинация", className: "flex items-center gap-1 shrink-0 whitespace-nowrap", children: [
74
- /* @__PURE__ */ e(
89
+ /* @__PURE__ */ o("nav", { "aria-label": "Пагинация", className: "flex items-center gap-1 shrink-0 whitespace-nowrap", children: [
90
+ /* @__PURE__ */ t(
75
91
  "button",
76
92
  {
77
- onClick: () => d(a - 1),
78
- disabled: a === 1,
93
+ onClick: () => u(l - 1),
94
+ disabled: l === 1,
79
95
  "aria-label": "Предыдущая страница",
80
96
  className: r(
81
- "flex items-center justify-center rounded-lg border transition-all bg-slate-100 min-w-10",
97
+ "flex items-center justify-center rounded-lg border transition-all min-w-10",
98
+ e ? "bg-neutral-300 border-neutral-200" : "bg-slate-100",
82
99
  s,
83
- a === 1 ? r("cursor-not-allowed opacity-50", l.disabled) : r("hover:cursor-pointer", l.arrow, "border-slate-200")
100
+ l === 1 ? r("cursor-not-allowed opacity-50", f) : r("hover:cursor-pointer", p, e ? "hover:bg-neutral-200" : "border-slate-200")
84
101
  ),
85
- children: /* @__PURE__ */ e(j, { weight: "Linear", size: 20 })
102
+ children: /* @__PURE__ */ t(z, { weight: "Linear", size: 20 })
86
103
  }
87
104
  ),
88
- /* @__PURE__ */ e("div", { className: "flex items-center gap-1", children: A.map((t, p) => {
89
- if (t === "...")
90
- return /* @__PURE__ */ e(
105
+ /* @__PURE__ */ t("div", { className: "flex items-center gap-1", children: C.map((a, N) => {
106
+ if (a === "...")
107
+ return /* @__PURE__ */ t(
91
108
  "span",
92
109
  {
93
- className: r("flex items-center justify-center text-black font-medium min-w-10", s),
110
+ className: r(
111
+ "flex items-center justify-center font-medium min-w-10",
112
+ e ? "text-neutral-50" : "text-black",
113
+ s
114
+ ),
94
115
  "aria-hidden": "true",
95
- children: /* @__PURE__ */ e(M, { weight: "Bold", size: 20 })
116
+ children: /* @__PURE__ */ t(E, { weight: "Bold", size: 20 })
96
117
  },
97
- p
118
+ N
98
119
  );
99
- const b = t === a;
100
- return /* @__PURE__ */ e(
120
+ const d = a === l;
121
+ return /* @__PURE__ */ t(
101
122
  "button",
102
123
  {
103
- onClick: () => d(t),
104
- "aria-label": `Страница ${t}${b ? ", текущая" : ""}`,
105
- "aria-current": b ? "page" : void 0,
124
+ onClick: () => u(a),
125
+ "aria-label": `Страница ${a}${d ? ", текущая" : ""}`,
126
+ "aria-current": d ? "page" : void 0,
106
127
  className: r(
107
128
  "flex items-center justify-center rounded-lg border font-medium transition-all hover:cursor-pointer min-w-10 px-2",
108
129
  s,
109
- b ? l.active : l.inactive
130
+ d ? I : D
110
131
  ),
111
- children: t
132
+ children: a
112
133
  },
113
- p
134
+ N
114
135
  );
115
136
  }) }),
116
- /* @__PURE__ */ e(
137
+ /* @__PURE__ */ t(
117
138
  "button",
118
139
  {
119
- onClick: () => d(a + 1),
120
- disabled: a === i,
140
+ onClick: () => u(l + 1),
141
+ disabled: l === n,
121
142
  "aria-label": "Следующая страница",
122
143
  className: r(
123
- "flex items-center justify-center rounded-lg border transition-all bg-slate-100 min-w-10",
144
+ "flex items-center justify-center rounded-lg border transition-all min-w-10",
145
+ e ? "bg-neutral-300 border-neutral-200" : "bg-slate-100",
124
146
  s,
125
- a === i ? r("cursor-not-allowed opacity-50", l.disabled) : r("hover:cursor-pointer", l.arrow, "border-slate-200")
147
+ l === n ? r("cursor-not-allowed opacity-50", f) : r("hover:cursor-pointer", p, e ? "hover:bg-neutral-200" : "border-slate-200")
126
148
  ),
127
- children: /* @__PURE__ */ e(L, { size: 20, weight: "Linear" })
149
+ children: /* @__PURE__ */ t(S, { size: 20, weight: "Linear" })
128
150
  }
129
151
  )
130
152
  ] })
131
153
  ] });
132
154
  }
133
155
  export {
134
- G as default
156
+ P as default
135
157
  };
@@ -1,83 +1,88 @@
1
- import { jsxs as c, jsx as n } from "react/jsx-runtime";
2
- import { forwardRef as B, useState as E, useMemo as h } from "react";
3
- import { cn as s } from "../../lib/utils.js";
4
- import { Phone as I } from "@solar-icons/react";
5
- import { PHONE_SIZES as L, getPhoneStateStyles as V, getPhoneIconColor as k, formatPhoneValue as z } from "./mci-phone.utils.js";
6
- const H = B(
1
+ import { jsxs as r, jsx as a } from "react/jsx-runtime";
2
+ import { forwardRef as I, useState as L, useMemo as h } from "react";
3
+ import { cn as n } from "../../lib/utils.js";
4
+ import { Phone as V } from "@solar-icons/react";
5
+ import { PHONE_SIZES as z, getPhoneStateStyles as H, getPhoneIconColor as O, formatPhoneValue as R } from "./mci-phone.utils.js";
6
+ const W = I(
7
7
  ({
8
8
  label: d,
9
9
  placeholder: p = "+998 (__) ___ __ __",
10
- size: r = "base",
11
- error: e,
12
- disabled: a = !1,
13
- required: x = !1,
14
- value: l = "",
15
- onChange: o,
10
+ size: u = "base",
11
+ darkMode: e = !1,
12
+ error: t,
13
+ disabled: s = !1,
14
+ required: b = !1,
15
+ value: o = "",
16
+ onChange: c,
16
17
  onFocus: g,
17
- onBlur: b,
18
- className: N,
19
- name: P,
18
+ onBlur: N,
19
+ className: P,
20
+ name: _,
20
21
  showIcon: m = !1
21
- }, _) => {
22
- const [i, u] = E(!1), y = (C) => {
23
- const f = C.target.value;
24
- if (f.length < 5) {
25
- o?.("+998");
22
+ }, w) => {
23
+ const [i, f] = L(!1), y = (B) => {
24
+ const x = B.target.value;
25
+ if (x.length < 5) {
26
+ c?.("+998");
26
27
  return;
27
28
  }
28
- const M = z(f);
29
- o?.(M);
29
+ const E = R(x);
30
+ c?.(E);
30
31
  }, S = () => {
31
- u(!0), (!l || l === "") && o?.("+998"), g?.();
32
- }, w = () => {
33
- u(!1), b?.();
34
- }, t = L[r], F = m ? t.iconPadding : t.defaultPadding, j = h(() => V(e), [e]), v = h(
35
- () => k(a, e, i),
36
- [e, i, a]
32
+ f(!0), (!o || o === "") && c?.("+998"), g?.();
33
+ }, F = () => {
34
+ f(!1), N?.();
35
+ }, l = z[u], j = m ? l.iconPadding : l.defaultPadding, v = h(() => H(t, e), [t, e]), C = h(
36
+ () => O(s, t, i, e),
37
+ [t, i, s, e]
37
38
  );
38
- return /* @__PURE__ */ c("div", { className: s("w-full", N), children: [
39
- d && /* @__PURE__ */ c("label", { className: s(
39
+ return /* @__PURE__ */ r("div", { className: n("w-full", P), children: [
40
+ d && /* @__PURE__ */ r("label", { className: n(
40
41
  "mb-2 block font-medium transition-colors duration-200",
41
- e ? "text-red-600" : i ? "text-blue-600" : "text-slate-700",
42
- t.labelFont
42
+ t ? e ? "text-red-500" : "text-red-600" : e ? "text-neutral-50" : i ? "text-blue-600" : "text-slate-700",
43
+ l.labelFont
43
44
  ), children: [
44
45
  d,
45
- x && /* @__PURE__ */ n("span", { className: "text-red-600 ml-1", children: "*" })
46
+ b && /* @__PURE__ */ a("span", { className: "text-red-600 ml-1", children: "*" })
46
47
  ] }),
47
- /* @__PURE__ */ c("div", { className: "relative flex items-center", children: [
48
- m && /* @__PURE__ */ n("div", { className: s(
48
+ /* @__PURE__ */ r("div", { className: "relative flex items-center", children: [
49
+ m && /* @__PURE__ */ a("div", { className: n(
49
50
  "absolute top-1/2 flex -translate-y-1/2 items-center justify-center transition-all duration-300",
50
- t.iconLeft,
51
- v
52
- ), children: /* @__PURE__ */ n("div", { className: s("flex items-center justify-center", t.iconWrapper), children: /* @__PURE__ */ n(I, { className: s(t.iconSize), weight: "Linear" }) }) }),
53
- /* @__PURE__ */ n(
51
+ l.iconLeft,
52
+ C
53
+ ), children: /* @__PURE__ */ a("div", { className: n("flex items-center justify-center", l.iconWrapper), children: /* @__PURE__ */ a(V, { className: n(l.iconSize), weight: "Linear" }) }) }),
54
+ /* @__PURE__ */ a(
54
55
  "input",
55
56
  {
56
- ref: _,
57
- name: P,
57
+ ref: w,
58
+ name: _,
58
59
  type: "tel",
59
- value: l,
60
+ value: o,
60
61
  onChange: y,
61
62
  onFocus: S,
62
- onBlur: w,
63
- disabled: a,
63
+ onBlur: F,
64
+ disabled: s,
64
65
  placeholder: p,
65
- className: s(
66
- "w-full border bg-white font-normal transition-all duration-300 outline-none",
67
- r === "base" ? "rounded-xl" : "rounded-lg",
68
- "disabled:bg-slate-100 disabled:text-slate-400 disabled:cursor-not-allowed",
69
- t.input,
70
- F,
71
- j
66
+ className: n(
67
+ "w-full border font-normal transition-all duration-300 outline-none",
68
+ u === "base" ? "rounded-xl" : "rounded-lg",
69
+ e ? "text-neutral-50 placeholder:text-neutral-100 disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-300 disabled:text-neutral-100/50 disabled:placeholder:text-neutral-100/50" : "bg-white disabled:bg-slate-100 disabled:text-slate-400 disabled:cursor-not-allowed",
70
+ e && i && !s && "text-white",
71
+ l.input,
72
+ j,
73
+ v
72
74
  )
73
75
  }
74
76
  )
75
77
  ] }),
76
- e && /* @__PURE__ */ n("p", { className: "mt-2 animate-slide-up text-sm font-normal text-red-600", children: e })
78
+ t && /* @__PURE__ */ a("p", { className: n(
79
+ "mt-2 animate-slide-up text-sm font-normal",
80
+ e ? "text-red-500" : "text-red-600"
81
+ ), children: t })
77
82
  ] });
78
83
  }
79
84
  );
80
- H.displayName = "MciPhone";
85
+ W.displayName = "MciPhone";
81
86
  export {
82
- H as default
87
+ W as default
83
88
  };
@@ -1,4 +1,4 @@
1
- const r = {
1
+ const o = {
2
2
  sm: {
3
3
  input: "h-9 text-sm",
4
4
  iconPadding: "pl-8 pr-2",
@@ -27,21 +27,21 @@ const r = {
27
27
  iconWrapper: "h-5"
28
28
  }
29
29
  };
30
- function i(n) {
31
- let e = n.replace(/\D/g, "");
30
+ function i(r) {
31
+ let e = r.replace(/\D/g, "");
32
32
  e.startsWith("998") || (e = `998${e}`), e = e.substring(0, 12);
33
33
  let t = "+998";
34
34
  return e.length > 3 && (t += ` (${e.substring(3, 5)}`), e.length > 5 && (t += `) ${e.substring(5, 8)}`), e.length > 8 && (t += ` ${e.substring(8, 10)}`), e.length > 10 && (t += ` ${e.substring(10, 12)}`), t;
35
35
  }
36
- function o(n) {
37
- return n ? "border-red-600 focus:border-red-600 shadow-red" : "border-slate-200 hover:border-slate-400 focus:shadow-blue focus:border-blue-600";
36
+ function u(r, e = !1) {
37
+ return e ? r ? "border-red-500 hover:border-red-500 focus:border-red-500 focus:shadow-[0_0_0_2px_rgba(231,0,11,0.25)]" : "border-neutral-200 hover:border-neutral-100 focus:border-blue-500 focus:shadow-[0_0_0_2px_var(--opacity-25,rgba(21,93,252,0.25))]" : r ? "border-red-600 focus:border-red-600 shadow-red" : "border-slate-200 hover:border-slate-400 focus:shadow-blue focus:border-blue-600";
38
38
  }
39
- function l(n, e, t) {
40
- return n ? "text-slate-400" : e ? "text-red-600" : t ? "text-black" : "text-slate-400";
39
+ function a(r, e, t, n = !1) {
40
+ return n ? r ? "text-neutral-100/50" : e ? "text-red-500" : t ? "text-white" : "text-neutral-100" : r ? "text-slate-400" : e ? "text-red-600" : t ? "text-black" : "text-slate-400";
41
41
  }
42
42
  export {
43
- r as PHONE_SIZES,
43
+ o as PHONE_SIZES,
44
44
  i as formatPhoneValue,
45
- l as getPhoneIconColor,
46
- o as getPhoneStateStyles
45
+ a as getPhoneIconColor,
46
+ u as getPhoneStateStyles
47
47
  };