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