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