@ezfit/ui 1.0.0 → 1.2.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.
package/dist/index.js CHANGED
@@ -1,40 +1,40 @@
1
- import { clsx as Q } from "clsx";
2
- import { twMerge as Y } from "tailwind-merge";
3
- import { jsx as e, jsxs as l, Fragment as A } from "react/jsx-runtime";
4
- import { ArrowDown01Icon as W, InformationCircleIcon as Z, AlertCircleIcon as ee, Alert01Icon as te, CheckmarkCircle01Icon as re, Cancel01Icon as P, Loading03Icon as ae, BarChartIcon as ne, Tick02Icon as E, DropletIcon as oe, Search01Icon as se, UserIcon as ie, ChartUpIcon as le, ChartDownIcon as ce } from "@hugeicons/core-free-icons";
1
+ import { clsx as Z } from "clsx";
2
+ import { twMerge as ee } from "tailwind-merge";
3
+ import { jsx as e, jsxs as l, Fragment as P } from "react/jsx-runtime";
4
+ import { ArrowDown01Icon as H, InformationCircleIcon as te, AlertCircleIcon as re, Alert01Icon as ne, CheckmarkCircle01Icon as ae, Cancel01Icon as j, Loading03Icon as oe, BarChartIcon as se, Tick02Icon as _, ArrowLeft01Icon as ie, ArrowRight01Icon as le, DropletIcon as ce, Search01Icon as de, UserIcon as pe, ChartUpIcon as me, ChartDownIcon as ue } from "@hugeicons/core-free-icons";
5
5
  import { HugeiconsIcon as u } from "@hugeicons/react";
6
6
  import * as k from "@radix-ui/react-accordion";
7
- import { forwardRef as c, useId as j, useState as de, useCallback as V, useMemo as pe, useContext as me, createContext as ue } from "react";
8
- import { ResponsiveContainer as _, AreaChart as xe, Tooltip as G, Area as ge, BarChart as fe, XAxis as be, Bar as he, Cell as H, PieChart as Ne, Pie as ve } from "recharts";
9
- import { cva as w } from "class-variance-authority";
7
+ import { forwardRef as p, useId as F, useState as xe, useCallback as V, useMemo as ge, useContext as fe, createContext as be } from "react";
8
+ import { ResponsiveContainer as E, AreaChart as he, Tooltip as G, Area as ve, BarChart as Ne, XAxis as ye, Bar as we, Cell as O, PieChart as Ce, Pie as ke } from "recharts";
9
+ import { cva as y } from "class-variance-authority";
10
10
  import * as $ from "@radix-ui/react-checkbox";
11
11
  import * as N from "@radix-ui/react-dialog";
12
- import * as O from "@radix-ui/react-radio-group";
13
- import * as b from "@radix-ui/react-select";
14
- import * as T from "@radix-ui/react-slider";
12
+ import * as K from "@radix-ui/react-radio-group";
13
+ import * as h from "@radix-ui/react-select";
14
+ import * as I from "@radix-ui/react-slider";
15
15
  import * as L from "@radix-ui/react-switch";
16
- import * as I from "@radix-ui/react-tabs";
16
+ import * as z from "@radix-ui/react-tabs";
17
17
  import * as C from "@radix-ui/react-toast";
18
- import * as h from "@radix-ui/react-tooltip";
19
- function s(...a) {
20
- return Y(Q(a));
18
+ import * as v from "@radix-ui/react-tooltip";
19
+ function i(...n) {
20
+ return ee(Z(n));
21
21
  }
22
- const Gt = k.Root, ye = c(({ className: a, ...r }, t) => /* @__PURE__ */ e(
22
+ const Jt = k.Root, Te = p(({ className: n, ...r }, t) => /* @__PURE__ */ e(
23
23
  k.Item,
24
24
  {
25
25
  ref: t,
26
- className: s("overflow-hidden rounded-list border border-border-soft", a),
26
+ className: i("overflow-hidden rounded-list border border-border-soft", n),
27
27
  ...r
28
28
  }
29
29
  ));
30
- ye.displayName = "AccordionItem";
31
- const we = c(({ className: a, children: r, ...t }, n) => /* @__PURE__ */ e(k.Header, { className: "flex", children: /* @__PURE__ */ l(
30
+ Te.displayName = "AccordionItem";
31
+ const Ie = p(({ className: n, children: r, ...t }, a) => /* @__PURE__ */ e(k.Header, { className: "flex", children: /* @__PURE__ */ l(
32
32
  k.Trigger,
33
33
  {
34
- ref: n,
35
- className: s(
34
+ ref: a,
35
+ className: i(
36
36
  "group flex flex-1 cursor-pointer items-center justify-between p-4 text-left text-sm font-semibold outline-none focus-visible:ring-3 focus-visible:ring-ring/25",
37
- a
37
+ n
38
38
  ),
39
39
  ...t,
40
40
  children: [
@@ -42,31 +42,31 @@ const we = c(({ className: a, children: r, ...t }, n) => /* @__PURE__ */ e(k.Hea
42
42
  /* @__PURE__ */ e(
43
43
  u,
44
44
  {
45
- icon: W,
45
+ icon: H,
46
46
  className: "size-[18px] flex-none text-subtle-foreground transition-transform group-data-[state=open]:rotate-180"
47
47
  }
48
48
  )
49
49
  ]
50
50
  }
51
51
  ) }));
52
- we.displayName = "AccordionTrigger";
53
- const Ce = c(({ className: a, children: r, ...t }, n) => /* @__PURE__ */ e(
52
+ Ie.displayName = "AccordionTrigger";
53
+ const Fe = p(({ className: n, children: r, ...t }, a) => /* @__PURE__ */ e(
54
54
  k.Content,
55
55
  {
56
- ref: n,
56
+ ref: a,
57
57
  className: "overflow-hidden text-[13px] leading-relaxed text-muted-foreground data-[state=closed]:animate-[ezfade_0.18s_ease] data-[state=open]:animate-[ezfade_0.18s_ease]",
58
58
  ...t,
59
- children: /* @__PURE__ */ e("div", { className: s("px-4 pb-4", a), children: r })
59
+ children: /* @__PURE__ */ e("div", { className: i("px-4 pb-4", n), children: r })
60
60
  }
61
61
  ));
62
- Ce.displayName = "AccordionContent";
63
- const ke = w(
62
+ Fe.displayName = "AccordionContent";
63
+ const ze = y(
64
64
  "inline-flex items-center gap-1.5 rounded-pill font-semibold whitespace-nowrap",
65
65
  {
66
66
  variants: {
67
67
  variant: {
68
- active: "bg-accent-300 text-accent-foreground",
69
- pro: "bg-accent-300 text-accent-muted-foreground",
68
+ active: "bg-accent-300 text-accent",
69
+ pro: "bg-white/20 text-white",
70
70
  info: "bg-info-bg text-info",
71
71
  success: "bg-success-bg text-success",
72
72
  warning: "bg-warning-bg text-warning",
@@ -80,11 +80,11 @@ const ke = w(
80
80
  },
81
81
  defaultVariants: { variant: "neutral", size: "md" }
82
82
  }
83
- ), Te = c(
84
- ({ className: a, variant: r, size: t, ...n }, o) => /* @__PURE__ */ e("span", { ref: o, className: s(ke({ variant: r, size: t }), a), ...n })
83
+ ), Be = p(
84
+ ({ className: n, variant: r, size: t, ...a }, o) => /* @__PURE__ */ e("span", { ref: o, className: i(ze({ variant: r, size: t }), n), ...a })
85
85
  );
86
- Te.displayName = "Badge";
87
- const Ie = w("flex items-center gap-3.5 rounded-list border p-[15px] px-[18px]", {
86
+ Be.displayName = "Badge";
87
+ const De = y("flex items-center gap-3.5 rounded-list border p-[15px] px-[18px]", {
88
88
  variants: {
89
89
  variant: {
90
90
  success: "border-success-border bg-success-bg",
@@ -94,44 +94,44 @@ const Ie = w("flex items-center gap-3.5 rounded-list border p-[15px] px-[18px]",
94
94
  }
95
95
  },
96
96
  defaultVariants: { variant: "info" }
97
- }), Fe = {
98
- success: re,
99
- warning: te,
100
- error: ee,
101
- info: Z
97
+ }), Se = {
98
+ success: ae,
99
+ warning: ne,
100
+ error: re,
101
+ info: te
102
102
  }, M = {
103
103
  success: "text-success",
104
104
  warning: "text-warning",
105
105
  error: "text-error",
106
106
  info: "text-info"
107
- }, ze = {
107
+ }, Ae = {
108
108
  success: "text-[#166534]",
109
109
  warning: "text-[#92400E]",
110
110
  error: "text-[#991B1B]",
111
111
  info: "text-[#1E40AF]"
112
- }, Se = {
112
+ }, Pe = {
113
113
  success: "text-[#15803D]",
114
114
  warning: "text-[#B45309]",
115
115
  error: "text-[#B91C1C]",
116
116
  info: "text-[#1D4ED8]"
117
- }, Be = c(
118
- ({ className: a, variant: r = "info", title: t, children: n, onDismiss: o, ...i }, p) => {
119
- const d = r ?? "info", m = Fe[d];
120
- return /* @__PURE__ */ l("div", { ref: p, role: "alert", className: s(Ie({ variant: r }), a), ...i, children: [
117
+ }, je = p(
118
+ ({ className: n, variant: r = "info", title: t, children: a, onDismiss: o, ...s }, c) => {
119
+ const d = r ?? "info", m = Se[d];
120
+ return /* @__PURE__ */ l("div", { ref: c, role: "alert", className: i(De({ variant: r }), n), ...s, children: [
121
121
  /* @__PURE__ */ e(
122
122
  u,
123
123
  {
124
124
  icon: m,
125
- className: s("size-5 flex-none", M[d]),
125
+ className: i("size-5 flex-none", M[d]),
126
126
  strokeWidth: 2
127
127
  }
128
128
  ),
129
129
  /* @__PURE__ */ l("div", { className: "flex-1 text-sm", children: [
130
- t ? /* @__PURE__ */ l("span", { className: s("font-semibold", ze[d]), children: [
130
+ t ? /* @__PURE__ */ l("span", { className: i("font-semibold", Ae[d]), children: [
131
131
  t,
132
132
  " "
133
133
  ] }) : null,
134
- /* @__PURE__ */ e("span", { className: Se[d], children: n })
134
+ /* @__PURE__ */ e("span", { className: Pe[d], children: a })
135
135
  ] }),
136
136
  o ? /* @__PURE__ */ e(
137
137
  "button",
@@ -139,25 +139,25 @@ const Ie = w("flex items-center gap-3.5 rounded-list border p-[15px] px-[18px]",
139
139
  type: "button",
140
140
  onClick: o,
141
141
  "aria-label": "Fechar",
142
- className: s(
142
+ className: i(
143
143
  "flex-none cursor-pointer opacity-60 transition-opacity hover:opacity-100",
144
144
  M[d]
145
145
  ),
146
- children: /* @__PURE__ */ e(u, { icon: P, className: "size-[17px]" })
146
+ children: /* @__PURE__ */ e(u, { icon: j, className: "size-[17px]" })
147
147
  }
148
148
  ) : null
149
149
  ] });
150
150
  }
151
151
  );
152
- Be.displayName = "Banner";
153
- const De = w(
152
+ je.displayName = "Banner";
153
+ const _e = y(
154
154
  "inline-flex items-center justify-center gap-2 font-sans font-semibold whitespace-nowrap transition-colors outline-none focus-visible:ring-3 focus-visible:ring-ring/25 disabled:pointer-events-none disabled:opacity-70",
155
155
  {
156
156
  variants: {
157
157
  variant: {
158
158
  primary: "bg-primary text-primary-foreground hover:bg-primary-hover",
159
- accent: "bg-accent-300 text-accent-foreground hover:bg-accent",
160
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary-hover",
159
+ accent: "bg-accent text-accent-foreground hover:bg-accent-hover",
160
+ secondary: "bg-accent-300 text-accent hover:brightness-95",
161
161
  ghost: "bg-transparent text-muted-foreground hover:bg-secondary hover:text-foreground",
162
162
  destructive: "bg-error-bg text-error hover:bg-error/15"
163
163
  },
@@ -172,21 +172,21 @@ const De = w(
172
172
  size: "md"
173
173
  }
174
174
  }
175
- ), Ae = c(
176
- ({ className: a, variant: r, size: t, loading: n = !1, disabled: o, children: i, type: p = "button", ...d }, m) => /* @__PURE__ */ e(
175
+ ), Ee = p(
176
+ ({ className: n, variant: r, size: t, loading: a = !1, disabled: o, children: s, type: c = "button", ...d }, m) => /* @__PURE__ */ e(
177
177
  "button",
178
178
  {
179
179
  ref: m,
180
- type: p,
181
- className: s(De({ variant: r, size: t }), a),
182
- disabled: o || n,
180
+ type: c,
181
+ className: i(_e({ variant: r, size: t }), n),
182
+ disabled: o || a,
183
183
  ...d,
184
- children: n ? /* @__PURE__ */ e(u, { icon: ae, className: "size-[18px] animate-spin-slow" }) : i
184
+ children: a ? /* @__PURE__ */ e(u, { icon: oe, className: "size-[18px] animate-spin-slow" }) : s
185
185
  }
186
186
  )
187
187
  );
188
- Ae.displayName = "Button";
189
- const Pe = w("rounded-card", {
188
+ Ee.displayName = "Button";
189
+ const Re = y("rounded-card", {
190
190
  variants: {
191
191
  variant: {
192
192
  light: "bg-card text-card-foreground shadow-card",
@@ -200,101 +200,102 @@ const Pe = w("rounded-card", {
200
200
  }
201
201
  },
202
202
  defaultVariants: { variant: "light", padding: "md" }
203
- }), Ee = c(
204
- ({ className: a, variant: r, padding: t, ...n }, o) => /* @__PURE__ */ e("div", { ref: o, className: s(Pe({ variant: r, padding: t }), a), ...n })
203
+ }), Ve = p(
204
+ ({ className: n, variant: r, padding: t, ...a }, o) => /* @__PURE__ */ e("div", { ref: o, className: i(Re({ variant: r, padding: t }), n), ...a })
205
205
  );
206
- Ee.displayName = "Card";
207
- const je = c(
208
- ({ className: a, ...r }, t) => /* @__PURE__ */ e(
206
+ Ve.displayName = "Card";
207
+ const $e = p(
208
+ ({ className: n, ...r }, t) => /* @__PURE__ */ e(
209
209
  "div",
210
210
  {
211
211
  ref: t,
212
- className: s("mb-4 flex items-start justify-between gap-3", a),
212
+ className: i("mb-4 flex items-start justify-between gap-3", n),
213
213
  ...r
214
214
  }
215
215
  )
216
216
  );
217
- je.displayName = "CardHeader";
218
- const _e = c(
219
- ({ className: a, ...r }, t) => /* @__PURE__ */ e("h3", { ref: t, className: s("text-base font-semibold", a), ...r })
217
+ $e.displayName = "CardHeader";
218
+ const Le = p(
219
+ ({ className: n, ...r }, t) => /* @__PURE__ */ e("h3", { ref: t, className: i("text-base font-semibold", n), ...r })
220
220
  );
221
- _e.displayName = "CardTitle";
222
- const Re = c(({ className: a, ...r }, t) => /* @__PURE__ */ e("p", { ref: t, className: s("text-[13px] text-subtle-foreground", a), ...r }));
223
- Re.displayName = "CardDescription";
224
- const Ve = c(
225
- ({ className: a, ...r }, t) => /* @__PURE__ */ e("div", { ref: t, className: s(a), ...r })
221
+ Le.displayName = "CardTitle";
222
+ const Me = p(({ className: n, ...r }, t) => /* @__PURE__ */ e("p", { ref: t, className: i("text-[13px] text-muted-foreground", n), ...r }));
223
+ Me.displayName = "CardDescription";
224
+ const We = p(
225
+ ({ className: n, ...r }, t) => /* @__PURE__ */ e("div", { ref: t, className: i(n), ...r })
226
226
  );
227
- Ve.displayName = "CardContent";
228
- const y = {
229
- primary: "#1E293B",
227
+ We.displayName = "CardContent";
228
+ const w = {
229
+ primary: "#16181D",
230
230
  primaryForeground: "#FFFFFF",
231
- accent: "#A3E635",
232
- accent300: "#BEF264",
231
+ accent: "#2B4BF2",
232
+ accentHover: "#2540DA",
233
+ accent300: "#E8ECFD",
233
234
  background: "#FFFFFF",
234
- foreground: "#1E293B",
235
- appBg: "#EEF1F5",
236
- muted: "#F8FAFC",
237
- mutedForeground: "#64748B",
238
- subtleForeground: "#94A3B8",
239
- secondary: "#F1F5F9",
240
- secondaryForeground: "#0F172A",
241
- border: "#E2E8F0",
242
- ring: "#1E293B",
235
+ foreground: "#16181D",
236
+ appBg: "#F4F6FA",
237
+ muted: "#F5F7FA",
238
+ mutedForeground: "#6B7280",
239
+ subtleForeground: "#8B93A2",
240
+ secondary: "#EEF0F4",
241
+ secondaryForeground: "#16181D",
242
+ border: "#E5E7EB",
243
+ ring: "#2B4BF2",
243
244
  success: "#22C55E",
244
245
  warning: "#F59E0B",
245
- error: "#EF4444",
246
- info: "#3B82F6",
247
- protein: "#3B82F6",
248
- carbs: "#EAB308",
249
- carbsText: "#CA8A04",
246
+ error: "#F23B47",
247
+ info: "#2B4BF2",
248
+ protein: "#2B4BF2",
249
+ carbs: "#C4C9D2",
250
+ carbsText: "#6B7280",
250
251
  fat: "#F97316",
251
252
  cardio: "#22C55E"
252
- }, F = {
253
- protein: y.protein,
254
- carbs: y.carbs,
255
- fat: y.fat,
256
- cardio: y.cardio,
257
- accent: y.accent,
258
- primary: y.primary,
259
- muted: y.secondary,
260
- grid: "#F1F5F9"
261
- }, Ht = {
253
+ }, B = {
254
+ protein: w.protein,
255
+ carbs: w.carbs,
256
+ fat: w.fat,
257
+ cardio: w.cardio,
258
+ accent: w.accent,
259
+ primary: w.primary,
260
+ muted: w.secondary,
261
+ grid: "#EEF0F4"
262
+ }, Qt = {
262
263
  input: "8px",
263
- field: "12px",
264
- button: "14px",
265
- list: "16px",
266
- tile: "18px",
267
- card: "24px",
264
+ field: "10px",
265
+ button: "10px",
266
+ list: "12px",
267
+ tile: "14px",
268
+ card: "16px",
268
269
  pill: "999px"
269
- }, Ot = {
270
- sans: "'Space Grotesk', ui-sans-serif, system-ui, sans-serif",
270
+ }, Yt = {
271
+ sans: "'Manrope', ui-sans-serif, system-ui, sans-serif",
271
272
  mono: "'Space Mono', ui-monospace, monospace"
272
- }, R = c(
273
- ({ className: a, title: r, rows: t, ...n }, o) => /* @__PURE__ */ l(
273
+ }, R = p(
274
+ ({ className: n, title: r, rows: t, ...a }, o) => /* @__PURE__ */ l(
274
275
  "div",
275
276
  {
276
277
  ref: o,
277
- className: s(
278
+ className: i(
278
279
  "min-w-[150px] rounded-[14px] bg-primary px-4 py-3 text-primary-foreground shadow-[0_8px_24px_rgba(15,23,42,0.25)]",
279
- a
280
+ n
280
281
  ),
281
- ...n,
282
+ ...a,
282
283
  children: [
283
284
  r ? /* @__PURE__ */ e("div", { className: "mb-1.5 text-[11px] text-subtle-foreground", children: r }) : null,
284
- t.map((i) => /* @__PURE__ */ l("div", { className: "flex items-center gap-2 text-[13px] font-semibold", children: [
285
- i.color ? /* @__PURE__ */ e("span", { className: "size-[9px] flex-none rounded-full", style: { background: i.color } }) : null,
286
- i.label,
287
- /* @__PURE__ */ e("span", { className: "ml-auto", children: i.value })
288
- ] }, i.label))
285
+ t.map((s) => /* @__PURE__ */ l("div", { className: "flex items-center gap-2 text-[13px] font-semibold", children: [
286
+ s.color ? /* @__PURE__ */ e("span", { className: "size-[9px] flex-none rounded-full", style: { background: s.color } }) : null,
287
+ s.label,
288
+ /* @__PURE__ */ e("span", { className: "ml-auto", children: s.value })
289
+ ] }, s.label))
289
290
  ]
290
291
  }
291
292
  )
292
293
  );
293
294
  R.displayName = "ChartTooltip";
294
- function $e(a) {
295
- return function({ active: t, payload: n, label: o }) {
296
- if (!t || !(n != null && n.length)) return null;
297
- const i = n[0];
295
+ function He(n) {
296
+ return function({ active: t, payload: a, label: o }) {
297
+ if (!t || !(a != null && a.length)) return null;
298
+ const s = a[0];
298
299
  return /* @__PURE__ */ e(
299
300
  R,
300
301
  {
@@ -302,47 +303,47 @@ function $e(a) {
302
303
  rows: [
303
304
  {
304
305
  label: "Valor",
305
- value: `${(i == null ? void 0 : i.value) ?? 0}${a ? ` ${a}` : ""}`,
306
- color: F.accent
306
+ value: `${(s == null ? void 0 : s.value) ?? 0}${n ? ` ${n}` : ""}`,
307
+ color: B.accent
307
308
  }
308
309
  ]
309
310
  }
310
311
  );
311
312
  };
312
313
  }
313
- function Kt({
314
- data: a,
314
+ function Zt({
315
+ data: n,
315
316
  height: r = 180,
316
- color: t = F.accent,
317
- unit: n = "",
317
+ color: t = B.accent,
318
+ unit: a = "",
318
319
  className: o
319
320
  }) {
320
- const i = "ezfit-area-gradient";
321
- return /* @__PURE__ */ e("div", { className: s("w-full", o), style: { height: r }, children: /* @__PURE__ */ e(_, { width: "100%", height: "100%", children: /* @__PURE__ */ l(xe, { data: a, margin: { top: 8, right: 8, bottom: 0, left: 8 }, children: [
322
- /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ l("linearGradient", { id: i, x1: "0", y1: "0", x2: "0", y2: "1", children: [
321
+ const s = "ezfit-area-gradient";
322
+ return /* @__PURE__ */ e("div", { className: i("w-full", o), style: { height: r }, children: /* @__PURE__ */ e(E, { width: "100%", height: "100%", children: /* @__PURE__ */ l(he, { data: n, margin: { top: 8, right: 8, bottom: 0, left: 8 }, children: [
323
+ /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ l("linearGradient", { id: s, x1: "0", y1: "0", x2: "0", y2: "1", children: [
323
324
  /* @__PURE__ */ e("stop", { offset: "0%", stopColor: t, stopOpacity: 0.45 }),
324
325
  /* @__PURE__ */ e("stop", { offset: "100%", stopColor: t, stopOpacity: 0 })
325
326
  ] }) }),
326
- /* @__PURE__ */ e(G, { cursor: !1, content: $e(n) }),
327
+ /* @__PURE__ */ e(G, { cursor: !1, content: He(a) }),
327
328
  /* @__PURE__ */ e(
328
- ge,
329
+ ve,
329
330
  {
330
331
  type: "monotone",
331
332
  dataKey: "value",
332
333
  stroke: t,
333
334
  strokeWidth: 3,
334
335
  strokeLinecap: "round",
335
- fill: `url(#${i})`,
336
+ fill: `url(#${s})`,
336
337
  dot: !1,
337
338
  activeDot: { r: 5, fill: "#fff", stroke: t, strokeWidth: 3 }
338
339
  }
339
340
  )
340
341
  ] }) }) });
341
342
  }
342
- function Le(a) {
343
- return function({ active: t, payload: n, label: o }) {
344
- if (!t || !(n != null && n.length)) return null;
345
- const i = n[0];
343
+ function Ge(n) {
344
+ return function({ active: t, payload: a, label: o }) {
345
+ if (!t || !(a != null && a.length)) return null;
346
+ const s = a[0];
346
347
  return /* @__PURE__ */ e(
347
348
  R,
348
349
  {
@@ -350,18 +351,18 @@ function Le(a) {
350
351
  rows: [
351
352
  {
352
353
  label: "Valor",
353
- value: `${(i == null ? void 0 : i.value) ?? 0}${a ? ` ${a}` : ""}`,
354
- color: F.accent
354
+ value: `${(s == null ? void 0 : s.value) ?? 0}${n ? ` ${n}` : ""}`,
355
+ color: B.accent
355
356
  }
356
357
  ]
357
358
  }
358
359
  );
359
360
  };
360
361
  }
361
- function qt({ data: a, activeIndex: r, height: t = 220, unit: n = "", className: o }) {
362
- return /* @__PURE__ */ e("div", { className: s("w-full", o), style: { height: t }, children: /* @__PURE__ */ e(_, { width: "100%", height: "100%", children: /* @__PURE__ */ l(fe, { data: a, margin: { top: 24, right: 0, bottom: 0, left: 0 }, children: [
362
+ function er({ data: n, activeIndex: r, height: t = 220, unit: a = "", className: o }) {
363
+ return /* @__PURE__ */ e("div", { className: i("w-full", o), style: { height: t }, children: /* @__PURE__ */ e(E, { width: "100%", height: "100%", children: /* @__PURE__ */ l(Ne, { data: n, margin: { top: 24, right: 0, bottom: 0, left: 0 }, children: [
363
364
  /* @__PURE__ */ e(
364
- be,
365
+ ye,
365
366
  {
366
367
  dataKey: "label",
367
368
  axisLine: !1,
@@ -370,47 +371,47 @@ function qt({ data: a, activeIndex: r, height: t = 220, unit: n = "", className:
370
371
  dy: 8
371
372
  }
372
373
  ),
373
- /* @__PURE__ */ e(G, { cursor: !1, content: Le(n) }),
374
- /* @__PURE__ */ e(he, { dataKey: "value", radius: [10, 10, 10, 10], maxBarSize: 40, children: a.map((i, p) => /* @__PURE__ */ e(
375
- H,
374
+ /* @__PURE__ */ e(G, { cursor: !1, content: Ge(a) }),
375
+ /* @__PURE__ */ e(we, { dataKey: "value", radius: [10, 10, 10, 10], maxBarSize: 40, children: n.map((s, c) => /* @__PURE__ */ e(
376
+ O,
376
377
  {
377
- fill: p === r ? F.accent : "#CBD5E1"
378
+ fill: c === r ? B.accent : "#CBD5E1"
378
379
  },
379
- i.label
380
+ s.label
380
381
  )) })
381
382
  ] }) }) });
382
383
  }
383
- const Me = c(
384
+ const Oe = p(
384
385
  ({
385
- className: a,
386
- icon: r = ne,
386
+ className: n,
387
+ icon: r = se,
387
388
  title: t = "0",
388
- description: n = "Sem dados para o periodo",
389
+ description: a = "Sem dados para o periodo",
389
390
  ...o
390
- }, i) => /* @__PURE__ */ l(
391
+ }, s) => /* @__PURE__ */ l(
391
392
  "div",
392
393
  {
393
- ref: i,
394
- className: s(
394
+ ref: s,
395
+ className: i(
395
396
  "flex h-[148px] flex-col items-center justify-center rounded-tile border-2 border-dashed border-border text-center",
396
- a
397
+ n
397
398
  ),
398
399
  ...o,
399
400
  children: [
400
401
  /* @__PURE__ */ e("div", { className: "mb-3 flex size-[46px] items-center justify-center rounded-[14px] bg-secondary", children: /* @__PURE__ */ e(u, { icon: r, className: "size-[22px] text-subtle-foreground", strokeWidth: 2 }) }),
401
402
  /* @__PURE__ */ e("div", { className: "text-[32px] leading-none font-bold text-[#CBD5E1]", children: t }),
402
- /* @__PURE__ */ e("div", { className: "mt-1.5 text-xs text-subtle-foreground", children: n })
403
+ /* @__PURE__ */ e("div", { className: "mt-1.5 text-xs text-subtle-foreground", children: a })
403
404
  ]
404
405
  }
405
406
  )
406
407
  );
407
- Me.displayName = "ChartEmptyState";
408
- const We = c(
409
- ({ className: a, items: r, ...t }, n) => /* @__PURE__ */ e("div", { ref: n, className: s("flex flex-wrap gap-3", a), ...t, children: r.map((o) => /* @__PURE__ */ l("div", { className: "inline-flex items-center gap-[7px] text-[13px]", children: [
408
+ Oe.displayName = "ChartEmptyState";
409
+ const Ke = p(
410
+ ({ className: n, items: r, ...t }, a) => /* @__PURE__ */ e("div", { ref: a, className: i("flex flex-wrap gap-3", n), ...t, children: r.map((o) => /* @__PURE__ */ l("div", { className: "inline-flex items-center gap-[7px] text-[13px]", children: [
410
411
  /* @__PURE__ */ e(
411
412
  "span",
412
413
  {
413
- className: s(
414
+ className: i(
414
415
  "size-[11px] flex-none",
415
416
  o.shape === "square" ? "rounded-[4px]" : "rounded-full"
416
417
  ),
@@ -421,20 +422,20 @@ const We = c(
421
422
  o.value ? /* @__PURE__ */ e("span", { className: "text-subtle-foreground", children: o.value }) : null
422
423
  ] }, o.label)) })
423
424
  );
424
- We.displayName = "ChartLegend";
425
- function Ut({
426
- data: a,
425
+ Ke.displayName = "ChartLegend";
426
+ function tr({
427
+ data: n,
427
428
  size: r = 120,
428
429
  thickness: t = 18,
429
- centerValue: n,
430
+ centerValue: a,
430
431
  centerCaption: o,
431
- className: i
432
+ className: s
432
433
  }) {
433
- return /* @__PURE__ */ l("div", { className: s("relative flex-none", i), style: { width: r, height: r }, children: [
434
- /* @__PURE__ */ e(_, { width: "100%", height: "100%", children: /* @__PURE__ */ e(Ne, { children: /* @__PURE__ */ e(
435
- ve,
434
+ return /* @__PURE__ */ l("div", { className: i("relative flex-none", s), style: { width: r, height: r }, children: [
435
+ /* @__PURE__ */ e(E, { width: "100%", height: "100%", children: /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ e(
436
+ ke,
436
437
  {
437
- data: a,
438
+ data: n,
438
439
  dataKey: "value",
439
440
  nameKey: "name",
440
441
  cx: "50%",
@@ -445,95 +446,136 @@ function Ut({
445
446
  endAngle: -270,
446
447
  paddingAngle: 0,
447
448
  stroke: "none",
448
- children: a.map((p) => /* @__PURE__ */ e(H, { fill: p.color }, p.name))
449
+ children: n.map((c) => /* @__PURE__ */ e(O, { fill: c.color }, c.name))
449
450
  }
450
451
  ) }) }),
451
- n || o ? /* @__PURE__ */ l("div", { className: "pointer-events-none absolute inset-0 flex flex-col items-center justify-center", children: [
452
- n ? /* @__PURE__ */ e("span", { className: "text-[22px] font-bold", children: n }) : null,
452
+ a || o ? /* @__PURE__ */ l("div", { className: "pointer-events-none absolute inset-0 flex flex-col items-center justify-center", children: [
453
+ a ? /* @__PURE__ */ e("span", { className: "text-[22px] font-bold", children: a }) : null,
453
454
  o ? /* @__PURE__ */ e("span", { className: "text-[10px] tracking-wide text-subtle-foreground uppercase", children: o }) : null
454
455
  ] }) : null
455
456
  ] });
456
457
  }
457
- const Ge = c(
458
- ({ className: a, label: r, id: t, ...n }, o) => {
459
- const i = j(), p = t ?? i, d = /* @__PURE__ */ e(
458
+ const qe = p(
459
+ ({ className: n, label: r, id: t, ...a }, o) => {
460
+ const s = F(), c = t ?? s, d = /* @__PURE__ */ e(
460
461
  $.Root,
461
462
  {
462
463
  ref: o,
463
- id: p,
464
- className: s(
464
+ id: c,
465
+ className: i(
465
466
  "flex size-[22px] flex-none cursor-pointer items-center justify-center rounded-[7px] border-2 transition-colors outline-none",
466
467
  "border-input bg-background",
467
468
  "data-[state=checked]:border-accent data-[state=checked]:bg-accent",
468
469
  "focus-visible:ring-3 focus-visible:ring-ring/25 disabled:cursor-not-allowed disabled:opacity-60",
469
- a
470
+ n
470
471
  ),
471
- ...n,
472
+ ...a,
472
473
  children: /* @__PURE__ */ e($.Indicator, { children: /* @__PURE__ */ e(
473
474
  u,
474
475
  {
475
- icon: E,
476
+ icon: _,
476
477
  className: "size-[15px] text-accent-foreground",
477
478
  strokeWidth: 3
478
479
  }
479
480
  ) })
480
481
  }
481
482
  );
482
- return r ? /* @__PURE__ */ l("label", { htmlFor: p, className: "flex cursor-pointer items-center gap-3.5", children: [
483
+ return r ? /* @__PURE__ */ l("label", { htmlFor: c, className: "flex cursor-pointer items-center gap-3.5", children: [
483
484
  d,
484
485
  /* @__PURE__ */ e("span", { className: "text-sm font-medium", children: r })
485
486
  ] }) : d;
486
487
  }
487
488
  );
488
- Ge.displayName = "Checkbox";
489
- function Xt({ columns: a, data: r, getRowKey: t, className: n, ...o }) {
490
- return /* @__PURE__ */ l("table", { className: s("w-full border-collapse", n), ...o, children: [
491
- /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: a.map((i) => /* @__PURE__ */ e(
489
+ qe.displayName = "Checkbox";
490
+ function rr({ columns: n, data: r, getRowKey: t, className: a, ...o }) {
491
+ return /* @__PURE__ */ l("table", { className: i("w-full border-collapse", a), ...o, children: [
492
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: n.map((s) => /* @__PURE__ */ e(
492
493
  "th",
493
494
  {
494
- className: s(
495
+ className: i(
495
496
  "pb-3.5 font-mono text-[11px] font-bold tracking-wider text-subtle-foreground uppercase",
496
- i.align === "right" ? "text-right" : "text-left"
497
+ s.align === "right" ? "text-right" : "text-left"
497
498
  ),
498
- children: i.header
499
+ children: s.header
499
500
  },
500
- i.header
501
+ s.header
501
502
  )) }) }),
502
- /* @__PURE__ */ e("tbody", { children: r.map((i, p) => /* @__PURE__ */ e("tr", { className: "border-t border-border-soft", children: a.map((d) => /* @__PURE__ */ e(
503
+ /* @__PURE__ */ e("tbody", { children: r.map((s, c) => /* @__PURE__ */ e("tr", { className: "border-t border-border-soft", children: n.map((d) => /* @__PURE__ */ e(
503
504
  "td",
504
505
  {
505
- className: s(
506
+ className: i(
506
507
  "py-3.5 text-sm",
507
508
  d.align === "right" ? "text-right" : "text-left"
508
509
  ),
509
- children: d.cell(i)
510
+ children: d.cell(s)
510
511
  },
511
512
  d.header
512
- )) }, t(i, p))) })
513
+ )) }, t(s, c))) })
513
514
  ] });
514
515
  }
515
- const Jt = N.Root, Qt = N.Trigger, Yt = N.Close, He = N.Portal, K = c(({ className: a, ...r }, t) => /* @__PURE__ */ e(
516
+ const W = "flex size-9 flex-none cursor-pointer items-center justify-center rounded-pill text-muted-foreground transition-colors outline-none hover:bg-secondary hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/25 disabled:cursor-not-allowed disabled:opacity-40", Ue = p(
517
+ ({ className: n, label: r, onPrev: t, onNext: a, onLabelClick: o, nextDisabled: s = !1, ...c }, d) => /* @__PURE__ */ l(
518
+ "div",
519
+ {
520
+ ref: d,
521
+ className: i(
522
+ "inline-flex items-center gap-1 rounded-pill border border-border bg-card p-1.5",
523
+ n
524
+ ),
525
+ ...c,
526
+ children: [
527
+ /* @__PURE__ */ e("button", { type: "button", "aria-label": "Dia anterior", onClick: t, className: W, children: /* @__PURE__ */ e(u, { icon: ie, className: "size-[18px]", strokeWidth: 2 }) }),
528
+ /* @__PURE__ */ e(
529
+ "button",
530
+ {
531
+ type: "button",
532
+ onClick: o,
533
+ disabled: !o,
534
+ className: i(
535
+ "min-w-20 rounded-pill px-3 py-1.5 text-center font-sans text-sm font-semibold whitespace-nowrap outline-none",
536
+ o && "cursor-pointer transition-colors hover:bg-secondary focus-visible:ring-3 focus-visible:ring-ring/25"
537
+ ),
538
+ children: r
539
+ }
540
+ ),
541
+ /* @__PURE__ */ e(
542
+ "button",
543
+ {
544
+ type: "button",
545
+ "aria-label": "Proximo dia",
546
+ onClick: a,
547
+ disabled: s,
548
+ className: W,
549
+ children: /* @__PURE__ */ e(u, { icon: le, className: "size-[18px]", strokeWidth: 2 })
550
+ }
551
+ )
552
+ ]
553
+ }
554
+ )
555
+ );
556
+ Ue.displayName = "DateNavigator";
557
+ const nr = N.Root, ar = N.Trigger, or = N.Close, Xe = N.Portal, q = p(({ className: n, ...r }, t) => /* @__PURE__ */ e(
516
558
  N.Overlay,
517
559
  {
518
560
  ref: t,
519
- className: s(
561
+ className: i(
520
562
  "fixed inset-0 z-90 flex items-center justify-center bg-[rgba(15,23,42,0.45)] p-6 backdrop-blur-[3px] data-[state=open]:animate-fade-in",
521
- a
563
+ n
522
564
  ),
523
565
  ...r
524
566
  }
525
567
  ));
526
- K.displayName = "DialogOverlay";
527
- const Oe = c(({ className: a, children: r, showClose: t = !0, ...n }, o) => /* @__PURE__ */ e(He, { children: /* @__PURE__ */ e(K, { children: /* @__PURE__ */ l(
568
+ q.displayName = "DialogOverlay";
569
+ const Je = p(({ className: n, children: r, showClose: t = !0, ...a }, o) => /* @__PURE__ */ e(Xe, { children: /* @__PURE__ */ e(q, { children: /* @__PURE__ */ l(
528
570
  N.Content,
529
571
  {
530
572
  ref: o,
531
- className: s(
573
+ className: i(
532
574
  "relative w-full max-w-[420px] rounded-card bg-card p-[30px] shadow-[0_24px_64px_rgba(15,23,42,0.3)] outline-none data-[state=open]:animate-toast-in",
533
- a
575
+ n
534
576
  ),
535
- onOpenAutoFocus: (i) => i.preventDefault(),
536
- ...n,
577
+ onOpenAutoFocus: (s) => s.preventDefault(),
578
+ ...a,
537
579
  children: [
538
580
  r,
539
581
  t ? /* @__PURE__ */ e(
@@ -541,36 +583,36 @@ const Oe = c(({ className: a, children: r, showClose: t = !0, ...n }, o) => /* @
541
583
  {
542
584
  className: "absolute top-[30px] right-[30px] flex size-[34px] cursor-pointer items-center justify-center rounded-[11px] bg-secondary text-muted-foreground transition-colors hover:bg-secondary-hover outline-none focus-visible:ring-3 focus-visible:ring-ring/25",
543
585
  "aria-label": "Fechar",
544
- children: /* @__PURE__ */ e(u, { icon: P, className: "size-[18px]" })
586
+ children: /* @__PURE__ */ e(u, { icon: j, className: "size-[18px]" })
545
587
  }
546
588
  ) : null
547
589
  ]
548
590
  }
549
591
  ) }) }));
550
- Oe.displayName = "DialogContent";
551
- const Ke = ({ className: a, ...r }) => /* @__PURE__ */ e("div", { className: s("mb-2 flex items-start justify-between gap-3", a), ...r });
552
- Ke.displayName = "DialogHeader";
553
- const qe = c(({ className: a, ...r }, t) => /* @__PURE__ */ e(
592
+ Je.displayName = "DialogContent";
593
+ const Qe = ({ className: n, ...r }) => /* @__PURE__ */ e("div", { className: i("mb-2 flex items-start justify-between gap-3", n), ...r });
594
+ Qe.displayName = "DialogHeader";
595
+ const Ye = p(({ className: n, ...r }, t) => /* @__PURE__ */ e(
554
596
  N.Title,
555
597
  {
556
598
  ref: t,
557
- className: s("mt-3.5 mb-1.5 text-xl font-bold", a),
599
+ className: i("mt-3.5 mb-1.5 text-xl font-bold", n),
558
600
  ...r
559
601
  }
560
602
  ));
561
- qe.displayName = "DialogTitle";
562
- const Ue = c(({ className: a, ...r }, t) => /* @__PURE__ */ e(
603
+ Ye.displayName = "DialogTitle";
604
+ const Ze = p(({ className: n, ...r }, t) => /* @__PURE__ */ e(
563
605
  N.Description,
564
606
  {
565
607
  ref: t,
566
- className: s("mb-6 text-sm leading-relaxed text-muted-foreground", a),
608
+ className: i("mb-6 text-sm leading-relaxed text-muted-foreground", n),
567
609
  ...r
568
610
  }
569
611
  ));
570
- Ue.displayName = "DialogDescription";
571
- const Xe = ({ className: a, ...r }) => /* @__PURE__ */ e("div", { className: s("flex gap-3", a), ...r });
572
- Xe.displayName = "DialogFooter";
573
- const Je = w("flex flex-none items-center justify-center", {
612
+ Ze.displayName = "DialogDescription";
613
+ const et = ({ className: n, ...r }) => /* @__PURE__ */ e("div", { className: i("flex gap-3", n), ...r });
614
+ et.displayName = "DialogFooter";
615
+ const tt = y("flex flex-none items-center justify-center", {
574
616
  variants: {
575
617
  tone: {
576
618
  neutral: "bg-secondary text-foreground",
@@ -583,8 +625,8 @@ const Je = w("flex flex-none items-center justify-center", {
583
625
  error: "bg-error-bg text-error",
584
626
  info: "bg-info-bg text-info",
585
627
  accent: "bg-accent text-accent-foreground",
586
- onDark: "bg-white/10 text-accent",
587
- onAccent: "bg-primary/10 text-primary"
628
+ onDark: "bg-white/10 text-white",
629
+ onAccent: "bg-white/15 text-white"
588
630
  },
589
631
  size: {
590
632
  sm: "size-[34px] rounded-[10px]",
@@ -594,66 +636,66 @@ const Je = w("flex flex-none items-center justify-center", {
594
636
  }
595
637
  },
596
638
  defaultVariants: { tone: "neutral", size: "md" }
597
- }), Qe = {
639
+ }), rt = {
598
640
  sm: "size-[18px]",
599
641
  md: "size-5",
600
642
  lg: "size-[22px]",
601
643
  xl: "size-8"
602
- }, z = c(
603
- ({ className: a, tone: r, size: t = "md", icon: n, ...o }, i) => /* @__PURE__ */ e("div", { ref: i, className: s(Je({ tone: r, size: t }), a), ...o, children: /* @__PURE__ */ e(u, { icon: n, className: Qe[t ?? "md"], strokeWidth: 2 }) })
644
+ }, T = p(
645
+ ({ className: n, tone: r, size: t = "md", icon: a, ...o }, s) => /* @__PURE__ */ e("div", { ref: s, className: i(tt({ tone: r, size: t }), n), ...o, children: /* @__PURE__ */ e(u, { icon: a, className: rt[t ?? "md"], strokeWidth: 2 }) })
604
646
  );
605
- z.displayName = "IconTile";
606
- const Ye = c(
607
- ({ className: a, icon: r, title: t, description: n, action: o, ...i }, p) => /* @__PURE__ */ l(
647
+ T.displayName = "IconTile";
648
+ const nt = p(
649
+ ({ className: n, icon: r, title: t, description: a, action: o, ...s }, c) => /* @__PURE__ */ l(
608
650
  "div",
609
651
  {
610
- ref: p,
611
- className: s(
652
+ ref: c,
653
+ className: i(
612
654
  "flex flex-col items-center rounded-card bg-card p-12 text-center shadow-card",
613
- a
655
+ n
614
656
  ),
615
- ...i,
657
+ ...s,
616
658
  children: [
617
- /* @__PURE__ */ e(z, { icon: r, tone: "neutral", size: "xl", className: "mb-5 text-subtle-foreground" }),
659
+ /* @__PURE__ */ e(T, { icon: r, tone: "neutral", size: "xl", className: "mb-5 text-subtle-foreground" }),
618
660
  /* @__PURE__ */ e("h3", { className: "mb-1.5 text-lg font-bold", children: t }),
619
- n ? /* @__PURE__ */ e("p", { className: "mb-[22px] max-w-[340px] text-sm leading-relaxed text-subtle-foreground", children: n }) : null,
661
+ a ? /* @__PURE__ */ e("p", { className: "mb-[22px] max-w-[340px] text-sm leading-relaxed text-muted-foreground", children: a }) : null,
620
662
  o
621
663
  ]
622
664
  }
623
665
  )
624
666
  );
625
- Ye.displayName = "EmptyState";
626
- const q = c(
627
- ({ className: a, selected: r = !1, ...t }, n) => /* @__PURE__ */ e(
667
+ nt.displayName = "EmptyState";
668
+ const U = p(
669
+ ({ className: n, selected: r = !1, ...t }, a) => /* @__PURE__ */ e(
628
670
  "button",
629
671
  {
630
- ref: n,
672
+ ref: a,
631
673
  type: "button",
632
674
  "aria-pressed": r,
633
- className: s(
675
+ className: i(
634
676
  "cursor-pointer rounded-pill px-3.5 py-[7px] font-sans text-[13px] whitespace-nowrap transition-colors outline-none focus-visible:ring-3 focus-visible:ring-ring/25",
635
677
  r ? "bg-primary font-semibold text-primary-foreground" : "bg-secondary font-medium text-muted-foreground hover:bg-secondary-hover",
636
- a
678
+ n
637
679
  ),
638
680
  ...t
639
681
  }
640
682
  )
641
683
  );
642
- q.displayName = "FilterChip";
643
- const Ze = c(
644
- ({ className: a, items: r, value: t, onValueChange: n, ...o }, i) => /* @__PURE__ */ e("div", { ref: i, className: s("flex flex-wrap gap-2", a), ...o, children: r.map((p) => /* @__PURE__ */ e(
645
- q,
684
+ U.displayName = "FilterChip";
685
+ const at = p(
686
+ ({ className: n, items: r, value: t, onValueChange: a, ...o }, s) => /* @__PURE__ */ e("div", { ref: s, className: i("flex flex-wrap gap-2", n), ...o, children: r.map((c) => /* @__PURE__ */ e(
687
+ U,
646
688
  {
647
- selected: p.value === t,
648
- onClick: () => n(p.value),
649
- children: p.label
689
+ selected: c.value === t,
690
+ onClick: () => a(c.value),
691
+ children: c.label
650
692
  },
651
- p.value
693
+ c.value
652
694
  )) })
653
695
  );
654
- Ze.displayName = "FilterChips";
655
- const et = c(
656
- ({ className: a, total: r, filled: t, caption: n, onCupClick: o, ...i }, p) => /* @__PURE__ */ l("div", { ref: p, className: s("flex flex-col", a), ...i, children: [
696
+ at.displayName = "FilterChips";
697
+ const ot = p(
698
+ ({ className: n, total: r, filled: t, caption: a, onCupClick: o, ...s }, c) => /* @__PURE__ */ l("div", { ref: c, className: i("flex flex-col", n), ...s, children: [
657
699
  /* @__PURE__ */ e("div", { className: "flex gap-2.5", children: Array.from({ length: r }).map((d, m) => {
658
700
  const x = m < t;
659
701
  return /* @__PURE__ */ e(
@@ -663,7 +705,7 @@ const et = c(
663
705
  "aria-label": `Copo ${m + 1}${x ? " preenchido" : ""}`,
664
706
  onClick: o ? () => o(m) : void 0,
665
707
  disabled: !o,
666
- className: s(
708
+ className: i(
667
709
  "flex h-11 flex-1 items-center justify-center rounded-[14px] transition-colors",
668
710
  o && "cursor-pointer",
669
711
  x ? "bg-protein" : "bg-info-bg"
@@ -671,8 +713,8 @@ const et = c(
671
713
  children: /* @__PURE__ */ e(
672
714
  u,
673
715
  {
674
- icon: oe,
675
- className: s("size-[18px]", x ? "text-white" : "text-[#BFDBFE]"),
716
+ icon: ce,
717
+ className: i("size-[18px]", x ? "text-white" : "text-[#BFDBFE]"),
676
718
  strokeWidth: 2
677
719
  }
678
720
  )
@@ -680,29 +722,29 @@ const et = c(
680
722
  m
681
723
  );
682
724
  }) }),
683
- n ? /* @__PURE__ */ e("div", { className: "mt-2.5 text-xs text-subtle-foreground", children: n }) : null
725
+ a ? /* @__PURE__ */ e("div", { className: "mt-2.5 text-xs text-subtle-foreground", children: a }) : null
684
726
  ] })
685
727
  );
686
- et.displayName = "HydrationTracker";
687
- const U = c(
688
- ({ className: a, label: r, error: t, hint: n, startIcon: o, suffix: i, id: p, disabled: d, ...m }, x) => {
689
- const g = j(), f = p ?? g, v = !!t, B = s(
728
+ ot.displayName = "HydrationTracker";
729
+ const X = p(
730
+ ({ className: n, label: r, error: t, hint: a, startIcon: o, suffix: s, id: c, disabled: d, ...m }, x) => {
731
+ const g = F(), f = c ?? g, b = !!t, S = i(
690
732
  "flex items-center gap-2.5 rounded-field border bg-background px-3.5 transition-colors",
691
733
  "focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/10",
692
- v && "border-error ring-3 ring-error/10 focus-within:border-error focus-within:ring-error/10",
693
- !v && "border-input",
734
+ b && "border-error ring-3 ring-error/10 focus-within:border-error focus-within:ring-error/10",
735
+ !b && "border-input",
694
736
  d && "opacity-60"
695
737
  );
696
- return /* @__PURE__ */ l("div", { className: s("flex flex-col", a), children: [
738
+ return /* @__PURE__ */ l("div", { className: i("flex flex-col", n), children: [
697
739
  r ? /* @__PURE__ */ e(
698
740
  "label",
699
741
  {
700
742
  htmlFor: f,
701
- className: s("mb-[7px] text-[13px] font-semibold", v && "text-error"),
743
+ className: i("mb-[7px] text-[13px] font-semibold", b && "text-error"),
702
744
  children: r
703
745
  }
704
746
  ) : null,
705
- /* @__PURE__ */ l("div", { className: B, children: [
747
+ /* @__PURE__ */ l("div", { className: S, children: [
706
748
  o ? /* @__PURE__ */ e(
707
749
  u,
708
750
  {
@@ -717,64 +759,64 @@ const U = c(
717
759
  ref: x,
718
760
  id: f,
719
761
  disabled: d,
720
- "aria-invalid": v,
762
+ "aria-invalid": b,
721
763
  className: "w-full min-w-0 bg-transparent py-3 font-sans text-sm text-foreground outline-none placeholder:text-subtle-foreground",
722
764
  ...m
723
765
  }
724
766
  ),
725
- i ? /* @__PURE__ */ e("span", { className: "font-mono text-xs text-subtle-foreground", children: i }) : null
767
+ s ? /* @__PURE__ */ e("span", { className: "font-mono text-xs text-subtle-foreground", children: s }) : null
726
768
  ] }),
727
769
  t ? /* @__PURE__ */ e("p", { className: "mt-1.5 text-xs text-error", children: t }) : null,
728
- !t && n ? /* @__PURE__ */ e("p", { className: "mt-1.5 text-xs text-subtle-foreground", children: n }) : null
770
+ !t && a ? /* @__PURE__ */ e("p", { className: "mt-1.5 text-xs text-subtle-foreground", children: a }) : null
729
771
  ] });
730
772
  }
731
773
  );
732
- U.displayName = "Input";
733
- const tt = c(
734
- ({ placeholder: a = "Buscar...", ...r }, t) => /* @__PURE__ */ e(U, { ref: t, type: "search", startIcon: se, placeholder: a, ...r })
774
+ X.displayName = "Input";
775
+ const st = p(
776
+ ({ placeholder: n = "Buscar...", ...r }, t) => /* @__PURE__ */ e(X, { ref: t, type: "search", startIcon: de, placeholder: n, ...r })
735
777
  );
736
- tt.displayName = "SearchInput";
737
- const S = c(
778
+ st.displayName = "SearchInput";
779
+ const D = p(
738
780
  ({
739
- className: a,
781
+ className: n,
740
782
  icon: r,
741
783
  iconTone: t = "neutral",
742
- title: n,
784
+ title: a,
743
785
  subtitle: o,
744
- trailing: i,
745
- interactive: p = !1,
786
+ trailing: s,
787
+ interactive: c = !1,
746
788
  ...d
747
789
  }, m) => /* @__PURE__ */ l(
748
790
  "div",
749
791
  {
750
792
  ref: m,
751
- className: s(
793
+ className: i(
752
794
  "flex items-center gap-4 rounded-list bg-muted p-4",
753
- p && "cursor-pointer transition-colors hover:bg-secondary",
754
- a
795
+ c && "cursor-pointer transition-colors hover:bg-secondary",
796
+ n
755
797
  ),
756
798
  ...d,
757
799
  children: [
758
- /* @__PURE__ */ e(z, { icon: r, tone: t, size: "lg" }),
800
+ /* @__PURE__ */ e(T, { icon: r, tone: t, size: "lg" }),
759
801
  /* @__PURE__ */ l("div", { className: "min-w-0 flex-1", children: [
760
- /* @__PURE__ */ e("div", { className: "truncate text-[15px] font-semibold", children: n }),
802
+ /* @__PURE__ */ e("div", { className: "truncate text-[15px] font-semibold", children: a }),
761
803
  o ? /* @__PURE__ */ e("div", { className: "truncate text-xs text-subtle-foreground", children: o }) : null
762
804
  ] }),
763
- i ? /* @__PURE__ */ e("div", { className: "flex items-center gap-3.5", children: i }) : null
805
+ s ? /* @__PURE__ */ e("div", { className: "flex items-center gap-3.5", children: s }) : null
764
806
  ]
765
807
  }
766
808
  )
767
809
  );
768
- S.displayName = "ListItem";
769
- const rt = c(
770
- ({ protein: a, carbs: r, fat: t, calories: n, ...o }, i) => /* @__PURE__ */ e(
771
- S,
810
+ D.displayName = "ListItem";
811
+ const it = p(
812
+ ({ protein: n, carbs: r, fat: t, calories: a, ...o }, s) => /* @__PURE__ */ e(
813
+ D,
772
814
  {
773
- ref: i,
774
- trailing: /* @__PURE__ */ l(A, { children: [
815
+ ref: s,
816
+ trailing: /* @__PURE__ */ l(P, { children: [
775
817
  /* @__PURE__ */ l("span", { className: "text-xs font-semibold text-protein", children: [
776
818
  "P ",
777
- a,
819
+ n,
778
820
  "g"
779
821
  ] }),
780
822
  /* @__PURE__ */ l("span", { className: "text-xs font-semibold text-carbs-text", children: [
@@ -788,7 +830,7 @@ const rt = c(
788
830
  "g"
789
831
  ] }),
790
832
  /* @__PURE__ */ l("span", { className: "min-w-16 text-right text-[15px] font-bold", children: [
791
- n,
833
+ a,
792
834
  " kcal"
793
835
  ] })
794
836
  ] }),
@@ -796,14 +838,14 @@ const rt = c(
796
838
  }
797
839
  )
798
840
  );
799
- rt.displayName = "MealListItem";
800
- const at = c(
801
- ({ duration: a, calories: r, ...t }, n) => /* @__PURE__ */ e(
802
- S,
841
+ it.displayName = "MealListItem";
842
+ const lt = p(
843
+ ({ duration: n, calories: r, ...t }, a) => /* @__PURE__ */ e(
844
+ D,
803
845
  {
804
- ref: n,
805
- trailing: /* @__PURE__ */ l(A, { children: [
806
- /* @__PURE__ */ e("span", { className: "text-[13px] font-semibold text-muted-foreground", children: a }),
846
+ ref: a,
847
+ trailing: /* @__PURE__ */ l(P, { children: [
848
+ /* @__PURE__ */ e("span", { className: "text-[13px] font-semibold text-muted-foreground", children: n }),
807
849
  /* @__PURE__ */ l("span", { className: "min-w-20 text-right text-[15px] font-bold", children: [
808
850
  r,
809
851
  " kcal"
@@ -813,46 +855,46 @@ const at = c(
813
855
  }
814
856
  )
815
857
  );
816
- at.displayName = "WorkoutListItem";
817
- const nt = c(
818
- ({ amount: a, muted: r = !1, ...t }, n) => /* @__PURE__ */ e(
819
- S,
858
+ lt.displayName = "WorkoutListItem";
859
+ const ct = p(
860
+ ({ amount: n, muted: r = !1, ...t }, a) => /* @__PURE__ */ e(
861
+ D,
820
862
  {
821
- ref: n,
822
- trailing: /* @__PURE__ */ e("span", { className: s("text-[15px] font-bold", r && "text-subtle-foreground"), children: a }),
863
+ ref: a,
864
+ trailing: /* @__PURE__ */ e("span", { className: i("text-[15px] font-bold", r && "text-subtle-foreground"), children: n }),
823
865
  ...t
824
866
  }
825
867
  )
826
868
  );
827
- nt.displayName = "HydrationListItem";
828
- const ot = {
869
+ ct.displayName = "HydrationListItem";
870
+ const dt = {
829
871
  protein: { bg: "bg-protein-bg", text: "text-protein" },
830
872
  carbs: { bg: "bg-carbs-bg", text: "text-carbs-text" },
831
873
  fat: { bg: "bg-fat-bg", text: "text-fat" },
832
874
  cardio: { bg: "bg-cardio-bg", text: "text-cardio" },
833
- accent: { bg: "bg-accent/15", text: "text-accent-foreground" },
875
+ accent: { bg: "bg-accent/10", text: "text-accent" },
834
876
  primary: { bg: "bg-secondary", text: "text-foreground" }
835
- }, st = {
877
+ }, pt = {
836
878
  protein: "var(--protein)",
837
879
  carbs: "var(--carbs)",
838
880
  fat: "var(--fat)",
839
881
  cardio: "var(--cardio)",
840
882
  accent: "var(--accent)",
841
883
  primary: "var(--primary)"
842
- }, it = c(
843
- ({ className: a, items: r, ...t }, n) => /* @__PURE__ */ l("div", { ref: n, className: s("flex flex-col", a), ...t, children: [
884
+ }, mt = p(
885
+ ({ className: n, items: r, ...t }, a) => /* @__PURE__ */ l("div", { ref: a, className: i("flex flex-col", n), ...t, children: [
844
886
  /* @__PURE__ */ e("div", { className: "grid gap-3.5", style: { gridTemplateColumns: `repeat(${r.length}, 1fr)` }, children: r.map((o) => {
845
- const i = ot[o.color];
846
- return /* @__PURE__ */ l("div", { className: s("rounded-tile p-5 text-center", i.bg), children: [
847
- /* @__PURE__ */ e("div", { className: s("text-[26px] font-bold", i.text), children: o.value }),
848
- /* @__PURE__ */ e("div", { className: s("mt-0.5 text-[13px] font-semibold", i.text), children: o.label }),
887
+ const s = dt[o.color];
888
+ return /* @__PURE__ */ l("div", { className: i("rounded-tile p-5 text-center", s.bg), children: [
889
+ /* @__PURE__ */ e("div", { className: i("text-[26px] font-bold", s.text), children: o.value }),
890
+ /* @__PURE__ */ e("div", { className: i("mt-0.5 text-[13px] font-semibold", s.text), children: o.label }),
849
891
  o.goal ? /* @__PURE__ */ e("div", { className: "mt-1.5 text-[11px] text-subtle-foreground", children: o.goal }) : null
850
892
  ] }, o.label);
851
893
  }) }),
852
894
  /* @__PURE__ */ e("div", { className: "mt-5 flex h-3 overflow-hidden rounded-pill", children: r.map((o) => /* @__PURE__ */ e(
853
895
  "div",
854
896
  {
855
- style: { width: `${o.percent}%`, background: st[o.color] }
897
+ style: { width: `${o.percent}%`, background: pt[o.color] }
856
898
  },
857
899
  o.label
858
900
  )) }),
@@ -864,28 +906,28 @@ const ot = {
864
906
  ] }, o.label)) })
865
907
  ] })
866
908
  );
867
- it.displayName = "MacroBreakdown";
868
- const lt = c(
869
- ({ className: a, name: r, badge: t, online: n = !0, avatar: o, ...i }, p) => /* @__PURE__ */ l(
909
+ mt.displayName = "MacroBreakdown";
910
+ const ut = p(
911
+ ({ className: n, name: r, badge: t, online: a = !0, avatar: o, ...s }, c) => /* @__PURE__ */ l(
870
912
  "div",
871
913
  {
872
- ref: p,
873
- className: s(
914
+ ref: c,
915
+ className: i(
874
916
  "inline-flex items-center gap-3.5 rounded-pill bg-card py-3 pr-[18px] pl-3 shadow-card",
875
- a
917
+ n
876
918
  ),
877
- ...i,
919
+ ...s,
878
920
  children: [
879
921
  /* @__PURE__ */ l("div", { className: "relative", children: [
880
- /* @__PURE__ */ e("div", { className: "flex size-[46px] items-center justify-center overflow-hidden rounded-full bg-linear-[135deg,#BEF264,#A3E635]", children: o ?? /* @__PURE__ */ e(
922
+ /* @__PURE__ */ e("div", { className: "flex size-[46px] items-center justify-center overflow-hidden rounded-full bg-linear-[135deg,#5B77FF,#2B4BF2]", children: o ?? /* @__PURE__ */ e(
881
923
  u,
882
924
  {
883
- icon: ie,
925
+ icon: pe,
884
926
  className: "size-[22px] text-accent-foreground",
885
927
  strokeWidth: 2
886
928
  }
887
929
  ) }),
888
- n ? /* @__PURE__ */ e("span", { className: "absolute right-px bottom-px size-3 rounded-full border-2 border-card bg-success" }) : null
930
+ a ? /* @__PURE__ */ e("span", { className: "absolute right-px bottom-px size-3 rounded-full border-2 border-card bg-success" }) : null
889
931
  ] }),
890
932
  /* @__PURE__ */ l("div", { className: "pr-2", children: [
891
933
  /* @__PURE__ */ e("div", { className: "text-[15px] font-bold", children: r }),
@@ -895,21 +937,21 @@ const lt = c(
895
937
  }
896
938
  )
897
939
  );
898
- lt.displayName = "ProfileCard";
899
- const ct = {
940
+ ut.displayName = "ProfileCard";
941
+ const xt = {
900
942
  protein: "var(--protein)",
901
943
  carbs: "var(--carbs)",
902
944
  fat: "var(--fat)",
903
945
  cardio: "var(--cardio)",
904
946
  accent: "var(--accent)",
905
947
  primary: "var(--primary)"
906
- }, dt = c(
907
- ({ className: a, value: r, label: t, valueLabel: n, color: o = "accent", ...i }, p) => {
948
+ }, gt = p(
949
+ ({ className: n, value: r, label: t, valueLabel: a, color: o = "accent", ...s }, c) => {
908
950
  const d = Math.min(100, Math.max(0, r));
909
- return /* @__PURE__ */ l("div", { ref: p, className: s("flex flex-col", a), ...i, children: [
910
- t || n ? /* @__PURE__ */ l("div", { className: "mb-2 flex justify-between text-[13px]", children: [
951
+ return /* @__PURE__ */ l("div", { ref: c, className: i("flex flex-col", n), ...s, children: [
952
+ t || a ? /* @__PURE__ */ l("div", { className: "mb-2 flex justify-between text-[13px]", children: [
911
953
  t ? /* @__PURE__ */ e("span", { className: "font-semibold", children: t }) : /* @__PURE__ */ e("span", {}),
912
- n ? /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: n }) : null
954
+ a ? /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: a }) : null
913
955
  ] }) : null,
914
956
  /* @__PURE__ */ e(
915
957
  "div",
@@ -923,7 +965,7 @@ const ct = {
923
965
  "div",
924
966
  {
925
967
  className: "h-full rounded-pill transition-[width] duration-300",
926
- style: { width: `${d}%`, background: ct[o] }
968
+ style: { width: `${d}%`, background: xt[o] }
927
969
  }
928
970
  )
929
971
  }
@@ -931,25 +973,25 @@ const ct = {
931
973
  ] });
932
974
  }
933
975
  );
934
- dt.displayName = "ProgressBar";
935
- const pt = c(
976
+ gt.displayName = "ProgressBar";
977
+ const ft = p(
936
978
  ({
937
- className: a,
979
+ className: n,
938
980
  value: r,
939
981
  size: t = 140,
940
- strokeWidth: n = 14,
982
+ strokeWidth: a = 14,
941
983
  color: o = "var(--accent)",
942
- trackColor: i = "var(--secondary)",
943
- label: p,
984
+ trackColor: s = "var(--secondary)",
985
+ label: c,
944
986
  caption: d,
945
987
  ...m
946
988
  }, x) => {
947
- const g = Math.min(100, Math.max(0, r)), f = (t - n) / 2, v = 2 * Math.PI * f, B = v * (1 - g / 100);
989
+ const g = Math.min(100, Math.max(0, r)), f = (t - a) / 2, b = 2 * Math.PI * f, S = b * (1 - g / 100);
948
990
  return /* @__PURE__ */ l(
949
991
  "div",
950
992
  {
951
993
  ref: x,
952
- className: s("relative", a),
994
+ className: i("relative", n),
953
995
  style: { width: t, height: t },
954
996
  role: "progressbar",
955
997
  "aria-valuenow": g,
@@ -965,8 +1007,8 @@ const pt = c(
965
1007
  cy: t / 2,
966
1008
  r: f,
967
1009
  fill: "none",
968
- stroke: i,
969
- strokeWidth: n
1010
+ stroke: s,
1011
+ strokeWidth: a
970
1012
  }
971
1013
  ),
972
1014
  /* @__PURE__ */ e(
@@ -977,16 +1019,16 @@ const pt = c(
977
1019
  r: f,
978
1020
  fill: "none",
979
1021
  stroke: o,
980
- strokeWidth: n,
1022
+ strokeWidth: a,
981
1023
  strokeLinecap: "round",
982
- strokeDasharray: v,
983
- strokeDashoffset: B,
1024
+ strokeDasharray: b,
1025
+ strokeDashoffset: S,
984
1026
  className: "transition-[stroke-dashoffset] duration-500"
985
1027
  }
986
1028
  )
987
1029
  ] }),
988
1030
  /* @__PURE__ */ l("div", { className: "absolute inset-0 flex flex-col items-center justify-center", children: [
989
- /* @__PURE__ */ e("span", { className: "text-[30px] font-bold", children: p ?? `${Math.round(g)}%` }),
1031
+ /* @__PURE__ */ e("span", { className: "text-[30px] font-bold", children: c ?? `${Math.round(g)}%` }),
990
1032
  d ? /* @__PURE__ */ e("span", { className: "text-xs text-subtle-foreground", children: d }) : null
991
1033
  ] })
992
1034
  ]
@@ -994,109 +1036,216 @@ const pt = c(
994
1036
  );
995
1037
  }
996
1038
  );
997
- pt.displayName = "ProgressRing";
998
- const mt = c(({ className: a, ...r }, t) => /* @__PURE__ */ e(
999
- O.Root,
1039
+ ft.displayName = "ProgressRing";
1040
+ const bt = p(({ className: n, ...r }, t) => /* @__PURE__ */ e(
1041
+ K.Root,
1000
1042
  {
1001
1043
  ref: t,
1002
- className: s("flex flex-col gap-3.5", a),
1044
+ className: i("flex flex-col gap-3.5", n),
1003
1045
  ...r
1004
1046
  }
1005
1047
  ));
1006
- mt.displayName = "RadioGroup";
1007
- const ut = c(({ className: a, label: r, id: t, ...n }, o) => {
1008
- const i = j(), p = t ?? i, d = /* @__PURE__ */ e(
1009
- O.Item,
1048
+ bt.displayName = "RadioGroup";
1049
+ const ht = p(({ className: n, label: r, id: t, ...a }, o) => {
1050
+ const s = F(), c = t ?? s, d = /* @__PURE__ */ e(
1051
+ K.Item,
1010
1052
  {
1011
1053
  ref: o,
1012
- id: p,
1013
- className: s(
1054
+ id: c,
1055
+ className: i(
1014
1056
  "flex size-[22px] flex-none cursor-pointer items-center justify-center rounded-full border-2 bg-background transition-all outline-none",
1015
1057
  "border-input data-[state=checked]:border-[6px] data-[state=checked]:border-primary",
1016
1058
  "focus-visible:ring-3 focus-visible:ring-ring/25 disabled:cursor-not-allowed disabled:opacity-60",
1017
- a
1059
+ n
1018
1060
  ),
1019
- ...n
1061
+ ...a
1020
1062
  }
1021
1063
  );
1022
- return r ? /* @__PURE__ */ l("label", { htmlFor: p, className: "flex cursor-pointer items-center gap-3.5", children: [
1064
+ return r ? /* @__PURE__ */ l("label", { htmlFor: c, className: "flex cursor-pointer items-center gap-3.5", children: [
1023
1065
  d,
1024
1066
  /* @__PURE__ */ e("span", { className: "text-sm font-medium", children: r })
1025
1067
  ] }) : d;
1026
1068
  });
1027
- ut.displayName = "RadioGroupItem";
1028
- const Zt = b.Root, er = b.Group, tr = b.Value, xt = c(({ className: a, children: r, ...t }, n) => /* @__PURE__ */ l(
1029
- b.Trigger,
1069
+ ht.displayName = "RadioGroupItem";
1070
+ const vt = y("inline-grid w-full rounded-pill bg-secondary", {
1071
+ variants: {
1072
+ size: {
1073
+ sm: "gap-1 p-1",
1074
+ md: "gap-1.5 p-1.5"
1075
+ }
1076
+ },
1077
+ defaultVariants: { size: "md" }
1078
+ });
1079
+ function sr({
1080
+ className: n,
1081
+ options: r,
1082
+ value: t,
1083
+ onValueChange: a,
1084
+ size: o,
1085
+ ...s
1086
+ }) {
1087
+ return /* @__PURE__ */ e(
1088
+ "div",
1089
+ {
1090
+ className: i(vt({ size: o }), n),
1091
+ style: { gridTemplateColumns: `repeat(${r.length}, minmax(0, 1fr))` },
1092
+ ...s,
1093
+ children: r.map((c) => {
1094
+ const d = c.value === t;
1095
+ return /* @__PURE__ */ e(
1096
+ "button",
1097
+ {
1098
+ type: "button",
1099
+ "aria-pressed": d,
1100
+ onClick: () => a(c.value),
1101
+ className: i(
1102
+ "cursor-pointer rounded-pill px-3 py-2 font-sans text-[13px] font-semibold whitespace-nowrap transition-colors outline-none focus-visible:ring-3 focus-visible:ring-ring/25",
1103
+ d ? "bg-card text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
1104
+ ),
1105
+ children: c.label
1106
+ },
1107
+ c.value
1108
+ );
1109
+ })
1110
+ }
1111
+ );
1112
+ }
1113
+ const ir = h.Root, lr = h.Group, cr = h.Value, Nt = p(({ className: n, children: r, ...t }, a) => /* @__PURE__ */ l(
1114
+ h.Trigger,
1030
1115
  {
1031
- ref: n,
1032
- className: s(
1116
+ ref: a,
1117
+ className: i(
1033
1118
  "flex w-full cursor-pointer items-center justify-between gap-2 rounded-field border border-input bg-background px-3.5 py-[11px] font-sans text-sm font-medium text-foreground transition-colors outline-none",
1034
1119
  "hover:border-subtle-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/10 disabled:cursor-not-allowed disabled:opacity-60 data-[placeholder]:text-subtle-foreground",
1035
- a
1120
+ n
1036
1121
  ),
1037
1122
  ...t,
1038
1123
  children: [
1039
1124
  r,
1040
- /* @__PURE__ */ e(b.Icon, { asChild: !0, children: /* @__PURE__ */ e(
1125
+ /* @__PURE__ */ e(h.Icon, { asChild: !0, children: /* @__PURE__ */ e(
1041
1126
  u,
1042
1127
  {
1043
- icon: W,
1128
+ icon: H,
1044
1129
  className: "size-4 text-muted-foreground transition-transform"
1045
1130
  }
1046
1131
  ) })
1047
1132
  ]
1048
1133
  }
1049
1134
  ));
1050
- xt.displayName = "SelectTrigger";
1051
- const gt = c(({ className: a, children: r, position: t = "popper", ...n }, o) => /* @__PURE__ */ e(b.Portal, { children: /* @__PURE__ */ e(
1052
- b.Content,
1135
+ Nt.displayName = "SelectTrigger";
1136
+ const yt = p(({ className: n, children: r, position: t = "popper", ...a }, o) => /* @__PURE__ */ e(h.Portal, { children: /* @__PURE__ */ e(
1137
+ h.Content,
1053
1138
  {
1054
1139
  ref: o,
1055
1140
  position: t,
1056
- className: s(
1141
+ className: i(
1057
1142
  "z-50 min-w-[8rem] overflow-hidden rounded-list border border-border bg-card p-1.5 shadow-[0_12px_32px_rgba(15,23,42,0.14)]",
1058
1143
  t === "popper" && "data-[side=bottom]:translate-y-1",
1059
- a
1144
+ n
1060
1145
  ),
1061
- ...n,
1146
+ ...a,
1062
1147
  children: /* @__PURE__ */ e(
1063
- b.Viewport,
1148
+ h.Viewport,
1064
1149
  {
1065
- className: s(t === "popper" && "w-full min-w-[var(--radix-select-trigger-width)]"),
1150
+ className: i(t === "popper" && "w-full min-w-[var(--radix-select-trigger-width)]"),
1066
1151
  children: r
1067
1152
  }
1068
1153
  )
1069
1154
  }
1070
1155
  ) }));
1071
- gt.displayName = "SelectContent";
1072
- const ft = c(({ className: a, children: r, ...t }, n) => /* @__PURE__ */ l(
1073
- b.Item,
1156
+ yt.displayName = "SelectContent";
1157
+ const wt = p(({ className: n, children: r, ...t }, a) => /* @__PURE__ */ l(
1158
+ h.Item,
1074
1159
  {
1075
- ref: n,
1076
- className: s(
1160
+ ref: a,
1161
+ className: i(
1077
1162
  "relative flex cursor-pointer items-center justify-between rounded-[9px] px-3 py-[9px] text-sm outline-none select-none",
1078
1163
  "focus:bg-secondary data-[state=checked]:font-semibold data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1079
- a
1164
+ n
1080
1165
  ),
1081
1166
  ...t,
1082
1167
  children: [
1083
- /* @__PURE__ */ e(b.ItemText, { children: r }),
1084
- /* @__PURE__ */ e(b.ItemIndicator, { children: /* @__PURE__ */ e(u, { icon: E, className: "size-4 text-accent-foreground", strokeWidth: 3 }) })
1168
+ /* @__PURE__ */ e(h.ItemText, { children: r }),
1169
+ /* @__PURE__ */ e(h.ItemIndicator, { children: /* @__PURE__ */ e(u, { icon: _, className: "size-4 text-accent", strokeWidth: 3 }) })
1085
1170
  ]
1086
1171
  }
1087
1172
  ));
1088
- ft.displayName = "SelectItem";
1089
- const bt = c(
1090
- ({ className: a, icon: r, label: t, active: n = !1, ...o }, i) => /* @__PURE__ */ l(
1173
+ wt.displayName = "SelectItem";
1174
+ const J = p(
1175
+ ({
1176
+ className: n,
1177
+ title: r,
1178
+ description: t,
1179
+ icon: a,
1180
+ iconTone: o = "neutral",
1181
+ selected: s = !1,
1182
+ trailing: c,
1183
+ ...d
1184
+ }, m) => /* @__PURE__ */ l(
1185
+ "button",
1186
+ {
1187
+ ref: m,
1188
+ type: "button",
1189
+ "aria-pressed": s,
1190
+ className: i(
1191
+ "flex w-full cursor-pointer items-center gap-3.5 rounded-tile border-2 bg-card p-4 text-left transition-colors outline-none",
1192
+ "focus-visible:ring-3 focus-visible:ring-ring/25",
1193
+ s ? "border-primary" : "border-border hover:border-input",
1194
+ n
1195
+ ),
1196
+ ...d,
1197
+ children: [
1198
+ a ? /* @__PURE__ */ e(T, { icon: a, tone: s ? "accent" : o, size: "sm" }) : null,
1199
+ /* @__PURE__ */ l("div", { className: "min-w-0 flex-1", children: [
1200
+ /* @__PURE__ */ e("div", { className: "text-sm font-semibold", children: r }),
1201
+ t ? /* @__PURE__ */ e("div", { className: "mt-0.5 text-[13px] text-muted-foreground", children: t }) : null
1202
+ ] }),
1203
+ c ? /* @__PURE__ */ e("div", { className: "flex-none", children: c }) : null
1204
+ ]
1205
+ }
1206
+ )
1207
+ );
1208
+ J.displayName = "SelectableCard";
1209
+ function dr({
1210
+ className: n,
1211
+ items: r,
1212
+ value: t,
1213
+ onValueChange: a,
1214
+ columns: o = 1,
1215
+ ...s
1216
+ }) {
1217
+ return /* @__PURE__ */ e(
1218
+ "div",
1219
+ {
1220
+ className: i("grid gap-2.5", n),
1221
+ style: { gridTemplateColumns: `repeat(${o}, minmax(0, 1fr))` },
1222
+ ...s,
1223
+ children: r.map((c) => /* @__PURE__ */ e(
1224
+ J,
1225
+ {
1226
+ title: c.title,
1227
+ description: c.description,
1228
+ icon: c.icon,
1229
+ iconTone: c.iconTone,
1230
+ selected: c.value === t,
1231
+ onClick: () => a(c.value)
1232
+ },
1233
+ c.value
1234
+ ))
1235
+ }
1236
+ );
1237
+ }
1238
+ const Ct = p(
1239
+ ({ className: n, icon: r, label: t, active: a = !1, ...o }, s) => /* @__PURE__ */ l(
1091
1240
  "button",
1092
1241
  {
1093
- ref: i,
1242
+ ref: s,
1094
1243
  type: "button",
1095
- "aria-current": n ? "page" : void 0,
1096
- className: s(
1097
- "flex w-full cursor-pointer items-center gap-3 rounded-pill px-4 py-[13px] text-left font-sans text-sm font-semibold transition-colors outline-none focus-visible:ring-3 focus-visible:ring-ring/25",
1098
- n ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-secondary hover:text-foreground",
1099
- a
1244
+ "aria-current": a ? "page" : void 0,
1245
+ className: i(
1246
+ "flex w-full cursor-pointer items-center gap-3 rounded-list px-4 py-[13px] text-left font-sans text-sm font-semibold transition-colors outline-none focus-visible:ring-3 focus-visible:ring-ring/25",
1247
+ a ? "bg-accent text-accent-foreground" : "text-muted-foreground hover:bg-secondary hover:text-foreground",
1248
+ n
1100
1249
  ),
1101
1250
  ...o,
1102
1251
  children: [
@@ -1106,26 +1255,26 @@ const bt = c(
1106
1255
  }
1107
1256
  )
1108
1257
  );
1109
- bt.displayName = "NavItem";
1110
- const ht = c(
1111
- ({ className: a, children: r, ...t }, n) => /* @__PURE__ */ e(
1258
+ Ct.displayName = "NavItem";
1259
+ const kt = p(
1260
+ ({ className: n, children: r, ...t }, a) => /* @__PURE__ */ e(
1112
1261
  "nav",
1113
1262
  {
1114
- ref: n,
1115
- className: s("rounded-card bg-card p-[18px] pt-[22px] shadow-card", a),
1263
+ ref: a,
1264
+ className: i("rounded-card bg-card p-[18px] pt-[22px] shadow-card", n),
1116
1265
  ...t,
1117
1266
  children: r
1118
1267
  }
1119
1268
  )
1120
1269
  );
1121
- ht.displayName = "Sidebar";
1122
- const Nt = c(
1123
- ({ className: a, name: r, logo: t, ...n }, o) => /* @__PURE__ */ l(
1270
+ kt.displayName = "Sidebar";
1271
+ const Tt = p(
1272
+ ({ className: n, name: r, logo: t, ...a }, o) => /* @__PURE__ */ l(
1124
1273
  "div",
1125
1274
  {
1126
1275
  ref: o,
1127
- className: s("flex items-center gap-3 px-2.5 pt-1.5 pb-[22px]", a),
1128
- ...n,
1276
+ className: i("flex items-center gap-3 px-2.5 pt-1.5 pb-[22px]", n),
1277
+ ...a,
1129
1278
  children: [
1130
1279
  /* @__PURE__ */ e("div", { className: "flex size-[42px] items-center justify-center rounded-[14px] bg-accent text-lg font-bold text-accent-foreground", children: t ?? r.charAt(0) }),
1131
1280
  /* @__PURE__ */ e("span", { className: "text-lg font-bold", children: r })
@@ -1133,29 +1282,29 @@ const Nt = c(
1133
1282
  }
1134
1283
  )
1135
1284
  );
1136
- Nt.displayName = "SidebarBrand";
1137
- const vt = c(
1138
- ({ className: a, label: r, children: t, ...n }, o) => /* @__PURE__ */ l("div", { ref: o, className: s("flex flex-col", a), ...n, children: [
1285
+ Tt.displayName = "SidebarBrand";
1286
+ const It = p(
1287
+ ({ className: n, label: r, children: t, ...a }, o) => /* @__PURE__ */ l("div", { ref: o, className: i("flex flex-col", n), ...a, children: [
1139
1288
  r ? /* @__PURE__ */ e("span", { className: "px-2.5 pt-5 pb-2.5 font-mono text-[11px] tracking-widest text-subtle-foreground uppercase", children: r }) : null,
1140
1289
  /* @__PURE__ */ e("div", { className: "flex flex-col gap-1", children: t })
1141
1290
  ] })
1142
1291
  );
1143
- vt.displayName = "SidebarSection";
1144
- const yt = c(
1145
- ({ className: a, ...r }, t) => /* @__PURE__ */ e("div", { ref: t, className: s("skeleton rounded-[7px]", a), ...r })
1292
+ It.displayName = "SidebarSection";
1293
+ const Ft = p(
1294
+ ({ className: n, ...r }, t) => /* @__PURE__ */ e("div", { ref: t, className: i("skeleton rounded-[7px]", n), ...r })
1146
1295
  );
1147
- yt.displayName = "Skeleton";
1148
- const wt = c(
1149
- ({ className: a, ...r }, t) => /* @__PURE__ */ l(
1150
- T.Root,
1296
+ Ft.displayName = "Skeleton";
1297
+ const zt = p(
1298
+ ({ className: n, ...r }, t) => /* @__PURE__ */ l(
1299
+ I.Root,
1151
1300
  {
1152
1301
  ref: t,
1153
- className: s("relative flex h-[22px] w-full touch-none items-center select-none", a),
1302
+ className: i("relative flex h-[22px] w-full touch-none items-center select-none", n),
1154
1303
  ...r,
1155
1304
  children: [
1156
- /* @__PURE__ */ e(T.Track, { className: "relative h-2 w-full grow rounded-pill bg-secondary", children: /* @__PURE__ */ e(T.Range, { className: "absolute h-full rounded-pill bg-accent" }) }),
1305
+ /* @__PURE__ */ e(I.Track, { className: "relative h-2 w-full grow rounded-pill bg-secondary", children: /* @__PURE__ */ e(I.Range, { className: "absolute h-full rounded-pill bg-accent" }) }),
1157
1306
  /* @__PURE__ */ e(
1158
- T.Thumb,
1307
+ I.Thumb,
1159
1308
  {
1160
1309
  className: "block size-[22px] rounded-full border-[3px] border-primary bg-white shadow-[0_2px_6px_rgba(15,23,42,0.2)] outline-none focus-visible:ring-3 focus-visible:ring-ring/25 disabled:opacity-60",
1161
1310
  "aria-label": "Valor"
@@ -1165,8 +1314,8 @@ const wt = c(
1165
1314
  }
1166
1315
  )
1167
1316
  );
1168
- wt.displayName = "Slider";
1169
- const Ct = w("animate-spin-slow rounded-full border-secondary border-t-accent", {
1317
+ zt.displayName = "Slider";
1318
+ const Bt = y("animate-spin-slow rounded-full border-secondary border-t-accent", {
1170
1319
  variants: {
1171
1320
  size: {
1172
1321
  sm: "size-6 border-[3px]",
@@ -1175,20 +1324,20 @@ const Ct = w("animate-spin-slow rounded-full border-secondary border-t-accent",
1175
1324
  }
1176
1325
  },
1177
1326
  defaultVariants: { size: "md" }
1178
- }), kt = c(
1179
- ({ className: a, size: r, ...t }, n) => /* @__PURE__ */ e(
1327
+ }), Dt = p(
1328
+ ({ className: n, size: r, ...t }, a) => /* @__PURE__ */ e(
1180
1329
  "div",
1181
1330
  {
1182
- ref: n,
1331
+ ref: a,
1183
1332
  role: "status",
1184
1333
  "aria-label": "Carregando",
1185
- className: s(Ct({ size: r }), a),
1334
+ className: i(Bt({ size: r }), n),
1186
1335
  ...t
1187
1336
  }
1188
1337
  )
1189
1338
  );
1190
- kt.displayName = "Spinner";
1191
- const Tt = w("rounded-card p-6", {
1339
+ Dt.displayName = "Spinner";
1340
+ const St = y("rounded-card p-6", {
1192
1341
  variants: {
1193
1342
  variant: {
1194
1343
  light: "bg-card text-card-foreground shadow-card",
@@ -1197,28 +1346,40 @@ const Tt = w("rounded-card p-6", {
1197
1346
  }
1198
1347
  },
1199
1348
  defaultVariants: { variant: "light" }
1200
- }), D = {
1349
+ }), A = {
1201
1350
  light: "text-muted-foreground",
1202
1351
  accent: "text-accent-muted-foreground",
1203
1352
  dark: "text-subtle-foreground"
1204
- }, It = {
1353
+ }, At = {
1205
1354
  light: "neutral",
1206
1355
  accent: "onAccent",
1207
1356
  dark: "onDark"
1208
- }, Ft = c(
1209
- ({ className: a, variant: r = "light", icon: t, iconTone: n, label: o, value: i, unit: p, trend: d, progress: m, ...x }, g) => {
1210
- const f = r ?? "light";
1211
- return /* @__PURE__ */ l("div", { ref: g, className: s(Tt({ variant: r }), a), ...x, children: [
1357
+ }, Pt = p(
1358
+ ({
1359
+ className: n,
1360
+ variant: r = "light",
1361
+ icon: t,
1362
+ iconTone: a,
1363
+ label: o,
1364
+ value: s,
1365
+ unit: c,
1366
+ trend: d,
1367
+ progress: m,
1368
+ footer: x,
1369
+ ...g
1370
+ }, f) => {
1371
+ const b = r ?? "light";
1372
+ return /* @__PURE__ */ l("div", { ref: f, className: i(St({ variant: r }), n), ...g, children: [
1212
1373
  /* @__PURE__ */ l("div", { className: "mb-[18px] flex items-start justify-between", children: [
1213
- /* @__PURE__ */ e(z, { icon: t, tone: n ?? It[f] }),
1374
+ /* @__PURE__ */ e(T, { icon: t, tone: a ?? At[b] }),
1214
1375
  d ? /* @__PURE__ */ e("div", { children: d }) : null
1215
1376
  ] }),
1216
- /* @__PURE__ */ e("div", { className: s("mb-1 text-[13px]", D[f]), children: o }),
1377
+ /* @__PURE__ */ e("div", { className: i("mb-1 text-[13px]", A[b]), children: o }),
1217
1378
  /* @__PURE__ */ l("div", { className: "text-[34px] leading-none font-bold tracking-tight", children: [
1218
- i,
1219
- p ? /* @__PURE__ */ e("span", { className: s("ml-1 text-[15px] font-medium", D[f]), children: p }) : null
1379
+ s,
1380
+ c ? /* @__PURE__ */ e("span", { className: i("ml-1 text-[15px] font-medium", A[b]), children: c }) : null
1220
1381
  ] }),
1221
- m ? /* @__PURE__ */ l(A, { children: [
1382
+ m ? /* @__PURE__ */ l(P, { children: [
1222
1383
  /* @__PURE__ */ e("div", { className: "mt-4 h-1.5 overflow-hidden rounded-pill bg-secondary", children: /* @__PURE__ */ e(
1223
1384
  "div",
1224
1385
  {
@@ -1229,87 +1390,123 @@ const Tt = w("rounded-card p-6", {
1229
1390
  }
1230
1391
  }
1231
1392
  ) }),
1232
- m.caption ? /* @__PURE__ */ e("div", { className: s("mt-2 text-xs", D[f]), children: m.caption }) : null
1233
- ] }) : null
1393
+ m.caption ? /* @__PURE__ */ e("div", { className: i("mt-2 text-xs", A[b]), children: m.caption }) : null
1394
+ ] }) : null,
1395
+ x ? /* @__PURE__ */ e("div", { className: "mt-[18px]", children: x }) : null
1234
1396
  ] });
1235
1397
  }
1236
1398
  );
1237
- Ft.displayName = "StatCard";
1238
- const zt = c(
1239
- ({ className: a, ...r }, t) => /* @__PURE__ */ e(
1399
+ Pt.displayName = "StatCard";
1400
+ const jt = p(
1401
+ ({ className: n, ...r }, t) => /* @__PURE__ */ e(
1240
1402
  L.Root,
1241
1403
  {
1242
1404
  ref: t,
1243
- className: s(
1405
+ className: i(
1244
1406
  "peer inline-flex h-[27px] w-[46px] flex-none cursor-pointer items-center rounded-pill p-[3px] transition-colors outline-none",
1245
1407
  "focus-visible:ring-3 focus-visible:ring-ring/25 disabled:cursor-not-allowed disabled:opacity-60",
1246
1408
  "bg-input data-[state=checked]:bg-accent",
1247
- a
1409
+ n
1248
1410
  ),
1249
1411
  ...r,
1250
1412
  children: /* @__PURE__ */ e(L.Thumb, { className: "pointer-events-none block size-[21px] rounded-full bg-white shadow-[0_1px_3px_rgba(15,23,42,0.3)] transition-transform data-[state=checked]:translate-x-[19px]" })
1251
1413
  }
1252
1414
  )
1253
1415
  );
1254
- zt.displayName = "Switch";
1255
- const rr = I.Root, St = c(({ className: a, ...r }, t) => /* @__PURE__ */ e(
1256
- I.List,
1416
+ jt.displayName = "Switch";
1417
+ const pr = z.Root, _t = p(({ className: n, ...r }, t) => /* @__PURE__ */ e(
1418
+ z.List,
1257
1419
  {
1258
1420
  ref: t,
1259
- className: s("inline-flex items-center gap-1.5 rounded-pill bg-secondary p-1.5", a),
1421
+ className: i("inline-flex items-center gap-1.5 rounded-pill bg-secondary p-1.5", n),
1260
1422
  ...r
1261
1423
  }
1262
1424
  ));
1263
- St.displayName = "TabsList";
1264
- const Bt = c(({ className: a, ...r }, t) => /* @__PURE__ */ e(
1265
- I.Trigger,
1425
+ _t.displayName = "TabsList";
1426
+ const Et = p(({ className: n, ...r }, t) => /* @__PURE__ */ e(
1427
+ z.Trigger,
1266
1428
  {
1267
1429
  ref: t,
1268
- className: s(
1430
+ className: i(
1269
1431
  "cursor-pointer rounded-pill px-[18px] py-[9px] font-sans text-sm font-semibold whitespace-nowrap text-muted-foreground transition-colors outline-none",
1270
1432
  "hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/25",
1271
1433
  "data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:hover:text-primary-foreground",
1272
- a
1434
+ n
1273
1435
  ),
1274
1436
  ...r
1275
1437
  }
1276
1438
  ));
1277
- Bt.displayName = "TabsTrigger";
1278
- const Dt = c(({ className: a, ...r }, t) => /* @__PURE__ */ e(
1279
- I.Content,
1439
+ Et.displayName = "TabsTrigger";
1440
+ const Rt = p(({ className: n, ...r }, t) => /* @__PURE__ */ e(
1441
+ z.Content,
1280
1442
  {
1281
1443
  ref: t,
1282
- className: s("mt-5 outline-none focus-visible:ring-3 focus-visible:ring-ring/25", a),
1444
+ className: i("mt-5 outline-none focus-visible:ring-3 focus-visible:ring-ring/25", n),
1283
1445
  ...r
1284
1446
  }
1285
1447
  ));
1286
- Dt.displayName = "TabsContent";
1287
- const X = ue(null);
1288
- function ar() {
1289
- const a = me(X);
1290
- if (!a) throw new Error("useToast deve ser usado dentro de ToastProvider");
1291
- return a;
1448
+ Rt.displayName = "TabsContent";
1449
+ const Vt = p(
1450
+ ({ className: n, label: r, error: t, hint: a, id: o, disabled: s, rows: c = 3, ...d }, m) => {
1451
+ const x = F(), g = o ?? x, f = !!t;
1452
+ return /* @__PURE__ */ l("div", { className: i("flex flex-col", n), children: [
1453
+ r ? /* @__PURE__ */ e(
1454
+ "label",
1455
+ {
1456
+ htmlFor: g,
1457
+ className: i("mb-[7px] text-[13px] font-semibold", f && "text-error"),
1458
+ children: r
1459
+ }
1460
+ ) : null,
1461
+ /* @__PURE__ */ e(
1462
+ "textarea",
1463
+ {
1464
+ ref: m,
1465
+ id: g,
1466
+ rows: c,
1467
+ disabled: s,
1468
+ "aria-invalid": f,
1469
+ className: i(
1470
+ "w-full min-w-0 resize-y rounded-field border bg-background px-3.5 py-3 font-sans text-sm text-foreground transition-colors outline-none",
1471
+ "placeholder:text-subtle-foreground focus:border-ring focus:ring-3 focus:ring-ring/10",
1472
+ f ? "border-error ring-3 ring-error/10 focus:border-error focus:ring-error/10" : "border-input",
1473
+ s && "opacity-60"
1474
+ ),
1475
+ ...d
1476
+ }
1477
+ ),
1478
+ t ? /* @__PURE__ */ e("p", { className: "mt-1.5 text-xs text-error", children: t }) : null,
1479
+ !t && a ? /* @__PURE__ */ e("p", { className: "mt-1.5 text-xs text-subtle-foreground", children: a }) : null
1480
+ ] });
1481
+ }
1482
+ );
1483
+ Vt.displayName = "Textarea";
1484
+ const Q = be(null);
1485
+ function mr() {
1486
+ const n = fe(Q);
1487
+ if (!n) throw new Error("useToast deve ser usado dentro de ToastProvider");
1488
+ return n;
1292
1489
  }
1293
- function nr({ children: a, duration: r = 3600 }) {
1294
- const [t, n] = de([]), o = V((d) => {
1295
- n((m) => {
1490
+ function ur({ children: n, duration: r = 3600 }) {
1491
+ const [t, a] = xe([]), o = V((d) => {
1492
+ a((m) => {
1296
1493
  var g;
1297
1494
  const x = (((g = m[m.length - 1]) == null ? void 0 : g.id) ?? 0) + 1;
1298
1495
  return [...m, { ...d, id: x, open: !0 }];
1299
1496
  });
1300
- }, []), i = V((d, m) => {
1301
- m || n((x) => x.filter((g) => g.id !== d));
1302
- }, []), p = pe(() => ({ toast: o }), [o]);
1303
- return /* @__PURE__ */ e(X.Provider, { value: p, children: /* @__PURE__ */ l(C.Provider, { duration: r, swipeDirection: "right", children: [
1304
- a,
1497
+ }, []), s = V((d, m) => {
1498
+ m || a((x) => x.filter((g) => g.id !== d));
1499
+ }, []), c = ge(() => ({ toast: o }), [o]);
1500
+ return /* @__PURE__ */ e(Q.Provider, { value: c, children: /* @__PURE__ */ l(C.Provider, { duration: r, swipeDirection: "right", children: [
1501
+ n,
1305
1502
  t.map((d) => {
1306
- const m = d.icon ?? E;
1503
+ const m = d.icon ?? _;
1307
1504
  return /* @__PURE__ */ l(
1308
1505
  C.Root,
1309
1506
  {
1310
1507
  open: d.open,
1311
1508
  duration: d.duration ?? r,
1312
- onOpenChange: (x) => i(d.id, x),
1509
+ onOpenChange: (x) => s(d.id, x),
1313
1510
  className: "flex items-center gap-3.5 rounded-list bg-primary px-[18px] py-[15px] text-primary-foreground shadow-[0_16px_40px_rgba(15,23,42,0.35)] data-[state=open]:animate-toast-in",
1314
1511
  children: [
1315
1512
  /* @__PURE__ */ e("div", { className: "flex size-[38px] flex-none items-center justify-center rounded-[12px] bg-accent/20", children: /* @__PURE__ */ e(u, { icon: m, className: "size-[19px] text-accent", strokeWidth: 3 }) }),
@@ -1322,7 +1519,7 @@ function nr({ children: a, duration: r = 3600 }) {
1322
1519
  {
1323
1520
  "aria-label": "Fechar",
1324
1521
  className: "flex-none cursor-pointer text-muted-foreground transition-colors hover:text-primary-foreground",
1325
- children: /* @__PURE__ */ e(u, { icon: P, className: "size-[17px]" })
1522
+ children: /* @__PURE__ */ e(u, { icon: j, className: "size-[17px]" })
1326
1523
  }
1327
1524
  )
1328
1525
  ]
@@ -1333,67 +1530,67 @@ function nr({ children: a, duration: r = 3600 }) {
1333
1530
  /* @__PURE__ */ e(
1334
1531
  C.Viewport,
1335
1532
  {
1336
- className: s(
1533
+ className: i(
1337
1534
  "fixed right-6 bottom-6 z-95 flex w-[340px] max-w-[calc(100vw-2rem)] flex-col gap-3 outline-none"
1338
1535
  )
1339
1536
  }
1340
1537
  )
1341
1538
  ] }) });
1342
1539
  }
1343
- const or = h.Provider, sr = h.Root, ir = h.Trigger, J = c(({ className: a, sideOffset: r = 8, children: t, ...n }, o) => /* @__PURE__ */ e(h.Portal, { children: /* @__PURE__ */ l(
1344
- h.Content,
1540
+ const xr = v.Provider, gr = v.Root, fr = v.Trigger, Y = p(({ className: n, sideOffset: r = 8, children: t, ...a }, o) => /* @__PURE__ */ e(v.Portal, { children: /* @__PURE__ */ l(
1541
+ v.Content,
1345
1542
  {
1346
1543
  ref: o,
1347
1544
  sideOffset: r,
1348
- className: s(
1545
+ className: i(
1349
1546
  "z-95 rounded-[10px] bg-primary px-3 py-2 text-xs font-medium text-primary-foreground shadow-[0_6px_18px_rgba(15,23,42,0.25)] data-[state=delayed-open]:animate-fade-in",
1350
- a
1547
+ n
1351
1548
  ),
1352
- ...n,
1549
+ ...a,
1353
1550
  children: [
1354
1551
  t,
1355
- /* @__PURE__ */ e(h.Arrow, { className: "fill-primary", width: 10, height: 5 })
1552
+ /* @__PURE__ */ e(v.Arrow, { className: "fill-primary", width: 10, height: 5 })
1356
1553
  ]
1357
1554
  }
1358
1555
  ) }));
1359
- J.displayName = "TooltipContent";
1360
- function lr({ content: a, children: r, side: t = "top", delayDuration: n = 150 }) {
1361
- return /* @__PURE__ */ e(h.Provider, { delayDuration: n, children: /* @__PURE__ */ l(h.Root, { children: [
1362
- /* @__PURE__ */ e(h.Trigger, { asChild: !0, children: r }),
1363
- /* @__PURE__ */ e(J, { side: t, children: a })
1556
+ Y.displayName = "TooltipContent";
1557
+ function br({ content: n, children: r, side: t = "top", delayDuration: a = 150 }) {
1558
+ return /* @__PURE__ */ e(v.Provider, { delayDuration: a, children: /* @__PURE__ */ l(v.Root, { children: [
1559
+ /* @__PURE__ */ e(v.Trigger, { asChild: !0, children: r }),
1560
+ /* @__PURE__ */ e(Y, { side: t, children: n })
1364
1561
  ] }) });
1365
1562
  }
1366
- const At = c(
1367
- ({ className: a, brand: r, actions: t, title: n, subtitle: o, children: i, ...p }, d) => /* @__PURE__ */ l(
1563
+ const $t = p(
1564
+ ({ className: n, brand: r, actions: t, title: a, subtitle: o, children: s, ...c }, d) => /* @__PURE__ */ l(
1368
1565
  "div",
1369
1566
  {
1370
1567
  ref: d,
1371
- className: s("overflow-hidden rounded-card bg-card shadow-card", a),
1372
- ...p,
1568
+ className: i("overflow-hidden rounded-card bg-card shadow-card", n),
1569
+ ...c,
1373
1570
  children: [
1374
1571
  /* @__PURE__ */ l("div", { className: "flex items-center justify-between border-b border-border-soft px-6 py-[18px]", children: [
1375
1572
  /* @__PURE__ */ e("div", { className: "text-[15px] font-bold tracking-wide", children: r }),
1376
1573
  t ? /* @__PURE__ */ e("div", { className: "flex items-center gap-[18px] text-muted-foreground", children: t }) : null
1377
1574
  ] }),
1378
- n || o || i ? /* @__PURE__ */ l("div", { className: "p-6", children: [
1379
- n ? /* @__PURE__ */ e("h3", { className: "mb-1 text-[28px] font-bold tracking-tight", children: n }) : null,
1575
+ a || o || s ? /* @__PURE__ */ l("div", { className: "p-6", children: [
1576
+ a ? /* @__PURE__ */ e("h3", { className: "mb-1 text-[28px] font-bold tracking-tight", children: a }) : null,
1380
1577
  o ? /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: o }) : null,
1381
- i
1578
+ s
1382
1579
  ] }) : null
1383
1580
  ]
1384
1581
  }
1385
1582
  )
1386
1583
  );
1387
- At.displayName = "Topbar";
1388
- const Pt = c(
1389
- ({ className: a, label: r, delta: t, direction: n, positiveIsUp: o = !0, ...i }, p) => {
1390
- const d = n === "up" ? o : !o, m = n === "up" ? le : ce;
1391
- return /* @__PURE__ */ l("div", { ref: p, className: s("flex items-center justify-between", a), ...i, children: [
1584
+ $t.displayName = "Topbar";
1585
+ const Lt = p(
1586
+ ({ className: n, label: r, delta: t, direction: a, positiveIsUp: o = !0, ...s }, c) => {
1587
+ const d = a === "up" ? o : !o, m = a === "up" ? me : ue;
1588
+ return /* @__PURE__ */ l("div", { ref: c, className: i("flex items-center justify-between", n), ...s, children: [
1392
1589
  /* @__PURE__ */ e("span", { className: "text-sm font-semibold", children: r }),
1393
1590
  /* @__PURE__ */ l(
1394
1591
  "span",
1395
1592
  {
1396
- className: s(
1593
+ className: i(
1397
1594
  "inline-flex items-center gap-1.5 text-sm font-bold",
1398
1595
  d ? "text-success" : "text-error"
1399
1596
  ),
@@ -1406,96 +1603,101 @@ const Pt = c(
1406
1603
  ] });
1407
1604
  }
1408
1605
  );
1409
- Pt.displayName = "TrendItem";
1410
- const Et = c(
1411
- ({ className: a, ...r }, t) => /* @__PURE__ */ e("div", { ref: t, className: s("flex flex-col gap-4", a), ...r })
1606
+ Lt.displayName = "TrendItem";
1607
+ const Mt = p(
1608
+ ({ className: n, ...r }, t) => /* @__PURE__ */ e("div", { ref: t, className: i("flex flex-col gap-4", n), ...r })
1412
1609
  );
1413
- Et.displayName = "TrendList";
1610
+ Mt.displayName = "TrendList";
1414
1611
  export {
1415
- Gt as Accordion,
1416
- Ce as AccordionContent,
1417
- ye as AccordionItem,
1418
- we as AccordionTrigger,
1419
- Kt as AreaChart,
1420
- Te as Badge,
1421
- Be as Banner,
1422
- qt as BarChart,
1423
- Ae as Button,
1424
- Ee as Card,
1425
- Ve as CardContent,
1426
- Re as CardDescription,
1427
- je as CardHeader,
1428
- _e as CardTitle,
1429
- Me as ChartEmptyState,
1430
- We as ChartLegend,
1612
+ Jt as Accordion,
1613
+ Fe as AccordionContent,
1614
+ Te as AccordionItem,
1615
+ Ie as AccordionTrigger,
1616
+ Zt as AreaChart,
1617
+ Be as Badge,
1618
+ je as Banner,
1619
+ er as BarChart,
1620
+ Ee as Button,
1621
+ Ve as Card,
1622
+ We as CardContent,
1623
+ Me as CardDescription,
1624
+ $e as CardHeader,
1625
+ Le as CardTitle,
1626
+ Oe as ChartEmptyState,
1627
+ Ke as ChartLegend,
1431
1628
  R as ChartTooltip,
1432
- Ge as Checkbox,
1433
- Xt as DataTable,
1434
- Jt as Dialog,
1435
- Yt as DialogClose,
1436
- Oe as DialogContent,
1437
- Ue as DialogDescription,
1438
- Xe as DialogFooter,
1439
- Ke as DialogHeader,
1440
- K as DialogOverlay,
1441
- He as DialogPortal,
1442
- qe as DialogTitle,
1443
- Qt as DialogTrigger,
1444
- Ut as DonutChart,
1445
- Ye as EmptyState,
1446
- q as FilterChip,
1447
- Ze as FilterChips,
1448
- nt as HydrationListItem,
1449
- et as HydrationTracker,
1450
- z as IconTile,
1451
- U as Input,
1452
- S as ListItem,
1453
- it as MacroBreakdown,
1454
- rt as MealListItem,
1455
- Jt as Modal,
1456
- bt as NavItem,
1457
- lt as ProfileCard,
1458
- dt as ProgressBar,
1459
- pt as ProgressRing,
1460
- mt as RadioGroup,
1461
- ut as RadioGroupItem,
1462
- tt as SearchInput,
1463
- Zt as Select,
1464
- gt as SelectContent,
1465
- er as SelectGroup,
1466
- ft as SelectItem,
1467
- xt as SelectTrigger,
1468
- tr as SelectValue,
1469
- ht as Sidebar,
1470
- Nt as SidebarBrand,
1471
- vt as SidebarSection,
1472
- yt as Skeleton,
1473
- wt as Slider,
1474
- kt as Spinner,
1475
- Ft as StatCard,
1476
- zt as Switch,
1477
- rr as Tabs,
1478
- Dt as TabsContent,
1479
- St as TabsList,
1480
- Bt as TabsTrigger,
1481
- nr as ToastProvider,
1482
- lr as Tooltip,
1483
- J as TooltipContent,
1484
- or as TooltipProvider,
1485
- sr as TooltipRoot,
1486
- ir as TooltipTrigger,
1487
- At as Topbar,
1488
- Pt as TrendItem,
1489
- Et as TrendList,
1490
- at as WorkoutListItem,
1491
- ke as badgeVariants,
1492
- De as buttonVariants,
1493
- Pe as cardVariants,
1494
- F as chartColors,
1495
- s as cn,
1496
- y as colors,
1497
- Ot as fontFamily,
1498
- Je as iconTileVariants,
1499
- Ht as radius,
1500
- ar as useToast
1629
+ qe as Checkbox,
1630
+ rr as DataTable,
1631
+ Ue as DateNavigator,
1632
+ nr as Dialog,
1633
+ or as DialogClose,
1634
+ Je as DialogContent,
1635
+ Ze as DialogDescription,
1636
+ et as DialogFooter,
1637
+ Qe as DialogHeader,
1638
+ q as DialogOverlay,
1639
+ Xe as DialogPortal,
1640
+ Ye as DialogTitle,
1641
+ ar as DialogTrigger,
1642
+ tr as DonutChart,
1643
+ nt as EmptyState,
1644
+ U as FilterChip,
1645
+ at as FilterChips,
1646
+ ct as HydrationListItem,
1647
+ ot as HydrationTracker,
1648
+ T as IconTile,
1649
+ X as Input,
1650
+ D as ListItem,
1651
+ mt as MacroBreakdown,
1652
+ it as MealListItem,
1653
+ nr as Modal,
1654
+ Ct as NavItem,
1655
+ ut as ProfileCard,
1656
+ gt as ProgressBar,
1657
+ ft as ProgressRing,
1658
+ bt as RadioGroup,
1659
+ ht as RadioGroupItem,
1660
+ st as SearchInput,
1661
+ sr as SegmentedControl,
1662
+ ir as Select,
1663
+ yt as SelectContent,
1664
+ lr as SelectGroup,
1665
+ wt as SelectItem,
1666
+ Nt as SelectTrigger,
1667
+ cr as SelectValue,
1668
+ J as SelectableCard,
1669
+ dr as SelectableCardGroup,
1670
+ kt as Sidebar,
1671
+ Tt as SidebarBrand,
1672
+ It as SidebarSection,
1673
+ Ft as Skeleton,
1674
+ zt as Slider,
1675
+ Dt as Spinner,
1676
+ Pt as StatCard,
1677
+ jt as Switch,
1678
+ pr as Tabs,
1679
+ Rt as TabsContent,
1680
+ _t as TabsList,
1681
+ Et as TabsTrigger,
1682
+ Vt as Textarea,
1683
+ ur as ToastProvider,
1684
+ br as Tooltip,
1685
+ Y as TooltipContent,
1686
+ xr as TooltipProvider,
1687
+ gr as TooltipRoot,
1688
+ fr as TooltipTrigger,
1689
+ $t as Topbar,
1690
+ Lt as TrendItem,
1691
+ Mt as TrendList,
1692
+ lt as WorkoutListItem,
1693
+ ze as badgeVariants,
1694
+ _e as buttonVariants,
1695
+ Re as cardVariants,
1696
+ B as chartColors,
1697
+ i as cn,
1698
+ w as colors,
1699
+ Yt as fontFamily,
1700
+ tt as iconTileVariants,
1701
+ Qt as radius,
1702
+ mr as useToast
1501
1703
  };