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