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