@zeo-app/design-system 0.4.0 → 0.6.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/Icon/PerfilIcons.d.ts +22 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Shell/UserMenu.d.ts +1 -0
- package/dist/components/Shell/moduleCatalog.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +724 -600
- package/dist/lib.d.ts +1 -0
- package/dist/preset.cjs +1 -1
- package/dist/preset.d.ts +8 -52
- package/dist/preset.mjs +18 -60
- package/dist/style.css +1 -1
- package/dist/theme/ThemeProvider.d.ts +24 -0
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/tokens.d.ts +312 -0
- package/dist/tokens-B2LtOn7a.cjs +1 -0
- package/dist/tokens-CaVTghf2.js +114 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
import { jsxs as i, jsx as t, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
|
|
1
|
+
import { jsxs as i, jsx as t, Fragment as ne } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as L, useState as N, useRef as z, useCallback as C, useLayoutEffect as xe, useEffect as j, useId as be, createContext as U, useMemo as ge, useContext as E } from "react";
|
|
3
|
+
import { createPortal as ve } from "react-dom";
|
|
4
|
+
import { a as F, T as K } from "./tokens-CaVTghf2.js";
|
|
5
|
+
import { c as pr, s as mr } from "./tokens-CaVTghf2.js";
|
|
6
|
+
const we = {
|
|
5
7
|
info: {
|
|
6
|
-
container: "bg-blue-50 border-blue-200 text-blue-800",
|
|
7
|
-
icon: "text-blue-500",
|
|
8
|
+
container: "bg-blue-50 border-blue-200 text-blue-800 dark:bg-info-container dark:border-info/30 dark:text-info",
|
|
9
|
+
icon: "text-blue-500 dark:text-info",
|
|
8
10
|
defaultIcon: "info"
|
|
9
11
|
},
|
|
10
12
|
success: {
|
|
11
|
-
container: "bg-green-50 border-green-200 text-green-800",
|
|
12
|
-
icon: "text-green-500",
|
|
13
|
+
container: "bg-green-50 border-green-200 text-green-800 dark:bg-success-container dark:border-success/30 dark:text-success",
|
|
14
|
+
icon: "text-green-500 dark:text-success",
|
|
13
15
|
defaultIcon: "check_circle"
|
|
14
16
|
},
|
|
15
17
|
warning: {
|
|
16
|
-
container: "bg-yellow-50 border-yellow-200 text-yellow-800",
|
|
17
|
-
icon: "text-yellow-500",
|
|
18
|
+
container: "bg-yellow-50 border-yellow-200 text-yellow-800 dark:bg-warning-container dark:border-warning/30 dark:text-warning",
|
|
19
|
+
icon: "text-yellow-500 dark:text-warning",
|
|
18
20
|
defaultIcon: "warning"
|
|
19
21
|
},
|
|
20
22
|
danger: {
|
|
21
|
-
container: "bg-red-50 border-red-200 text-red-800",
|
|
22
|
-
icon: "text-red-500",
|
|
23
|
+
container: "bg-red-50 border-red-200 text-red-800 dark:bg-danger-container dark:border-danger/30 dark:text-danger",
|
|
24
|
+
icon: "text-red-500 dark:text-danger",
|
|
23
25
|
defaultIcon: "error"
|
|
24
26
|
}
|
|
25
27
|
};
|
|
26
|
-
function
|
|
28
|
+
function ut({
|
|
27
29
|
variant: e = "info",
|
|
28
|
-
title:
|
|
29
|
-
children:
|
|
30
|
-
onClose:
|
|
31
|
-
icon:
|
|
30
|
+
title: r,
|
|
31
|
+
children: n,
|
|
32
|
+
onClose: o,
|
|
33
|
+
icon: a,
|
|
32
34
|
className: s = "",
|
|
33
35
|
...l
|
|
34
36
|
}) {
|
|
35
|
-
const c =
|
|
37
|
+
const c = we[e], d = a ?? c.defaultIcon;
|
|
36
38
|
return /* @__PURE__ */ i(
|
|
37
39
|
"div",
|
|
38
40
|
{
|
|
@@ -46,13 +48,13 @@ function rt({
|
|
|
46
48
|
children: [
|
|
47
49
|
/* @__PURE__ */ t("span", { className: `material-symbols-outlined text-[20px] shrink-0 mt-0.5 ${c.icon}`, children: d }),
|
|
48
50
|
/* @__PURE__ */ i("div", { className: "flex-1 min-w-0", children: [
|
|
49
|
-
|
|
50
|
-
/* @__PURE__ */ t("div", { className: "text-sm leading-relaxed", children:
|
|
51
|
+
r && /* @__PURE__ */ t("p", { className: "font-semibold text-sm mb-0.5", children: r }),
|
|
52
|
+
/* @__PURE__ */ t("div", { className: "text-sm leading-relaxed", children: n })
|
|
51
53
|
] }),
|
|
52
|
-
|
|
54
|
+
o && /* @__PURE__ */ t(
|
|
53
55
|
"button",
|
|
54
56
|
{
|
|
55
|
-
onClick:
|
|
57
|
+
onClick: o,
|
|
56
58
|
className: "shrink-0 opacity-70 hover:opacity-100 transition-opacity",
|
|
57
59
|
"aria-label": "Fechar alerta",
|
|
58
60
|
children: /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[18px]", children: "close" })
|
|
@@ -62,44 +64,44 @@ function rt({
|
|
|
62
64
|
}
|
|
63
65
|
);
|
|
64
66
|
}
|
|
65
|
-
const
|
|
67
|
+
const ye = {
|
|
66
68
|
xs: "w-6 h-6 text-[10px]",
|
|
67
69
|
sm: "w-8 h-8 text-xs",
|
|
68
70
|
md: "w-10 h-10 text-sm",
|
|
69
71
|
lg: "w-12 h-12 text-base",
|
|
70
72
|
xl: "w-16 h-16 text-lg"
|
|
71
|
-
},
|
|
73
|
+
}, ke = {
|
|
72
74
|
xs: "w-1.5 h-1.5",
|
|
73
75
|
sm: "w-2 h-2",
|
|
74
76
|
md: "w-2.5 h-2.5",
|
|
75
77
|
lg: "w-3 h-3",
|
|
76
78
|
xl: "w-3.5 h-3.5"
|
|
77
|
-
},
|
|
79
|
+
}, Ne = {
|
|
78
80
|
online: "bg-green-500",
|
|
79
81
|
offline: "bg-gray-400",
|
|
80
82
|
busy: "bg-red-500",
|
|
81
83
|
away: "bg-yellow-400"
|
|
82
84
|
};
|
|
83
|
-
function
|
|
84
|
-
return e.split(" ").slice(0, 2).map((
|
|
85
|
+
function Ce(e) {
|
|
86
|
+
return e.split(" ").slice(0, 2).map((r) => r[0]).join("").toUpperCase();
|
|
85
87
|
}
|
|
86
|
-
function
|
|
87
|
-
const
|
|
88
|
-
"bg-orange-100 text-orange-700",
|
|
89
|
-
"bg-blue-100 text-blue-700",
|
|
90
|
-
"bg-green-100 text-green-700",
|
|
91
|
-
"bg-purple-100 text-purple-700",
|
|
92
|
-
"bg-pink-100 text-pink-700",
|
|
93
|
-
"bg-teal-100 text-teal-700"
|
|
94
|
-
],
|
|
95
|
-
return n
|
|
88
|
+
function je(e) {
|
|
89
|
+
const r = [
|
|
90
|
+
"bg-orange-100 text-orange-700 dark:bg-zeo-orange/20 dark:text-primary",
|
|
91
|
+
"bg-blue-100 text-blue-700 dark:bg-info-container dark:text-info",
|
|
92
|
+
"bg-green-100 text-green-700 dark:bg-success-container dark:text-success",
|
|
93
|
+
"bg-purple-100 text-purple-700 dark:bg-purple-500/20 dark:text-purple-300",
|
|
94
|
+
"bg-pink-100 text-pink-700 dark:bg-pink-500/20 dark:text-pink-300",
|
|
95
|
+
"bg-teal-100 text-teal-700 dark:bg-teal-500/20 dark:text-teal-300"
|
|
96
|
+
], n = e.charCodeAt(0) % r.length;
|
|
97
|
+
return r[n];
|
|
96
98
|
}
|
|
97
|
-
function
|
|
99
|
+
function X({
|
|
98
100
|
src: e,
|
|
99
|
-
alt:
|
|
100
|
-
name:
|
|
101
|
-
size:
|
|
102
|
-
status:
|
|
101
|
+
alt: r = "",
|
|
102
|
+
name: n,
|
|
103
|
+
size: o = "md",
|
|
104
|
+
status: a,
|
|
103
105
|
className: s = "",
|
|
104
106
|
...l
|
|
105
107
|
}) {
|
|
@@ -109,55 +111,55 @@ function Z({
|
|
|
109
111
|
{
|
|
110
112
|
className: [
|
|
111
113
|
"rounded-full overflow-hidden flex items-center justify-center font-semibold",
|
|
112
|
-
|
|
113
|
-
!e &&
|
|
114
|
+
ye[o],
|
|
115
|
+
!e && n ? je(n) : "bg-surface-container"
|
|
114
116
|
].filter(Boolean).join(" "),
|
|
115
117
|
children: e ? /* @__PURE__ */ t(
|
|
116
118
|
"img",
|
|
117
119
|
{
|
|
118
120
|
src: e,
|
|
119
|
-
alt:
|
|
121
|
+
alt: r || n,
|
|
120
122
|
className: "w-full h-full object-cover"
|
|
121
123
|
}
|
|
122
|
-
) :
|
|
124
|
+
) : n ? Ce(n) : /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-on-surface-variant", style: { fontSize: "60%" }, children: "person" })
|
|
123
125
|
}
|
|
124
126
|
),
|
|
125
|
-
|
|
127
|
+
a && /* @__PURE__ */ t(
|
|
126
128
|
"span",
|
|
127
129
|
{
|
|
128
130
|
className: [
|
|
129
|
-
"absolute bottom-0 right-0 rounded-full border-2 border-white",
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
"absolute bottom-0 right-0 rounded-full border-2 border-white dark:border-card",
|
|
132
|
+
ke[o],
|
|
133
|
+
Ne[a]
|
|
132
134
|
].filter(Boolean).join(" ")
|
|
133
135
|
}
|
|
134
136
|
)
|
|
135
137
|
] });
|
|
136
138
|
}
|
|
137
|
-
const
|
|
139
|
+
const Le = {
|
|
138
140
|
default: "bg-surface-container text-on-surface-variant",
|
|
139
|
-
primary: "bg-orange-100 text-orange-700",
|
|
140
|
-
success: "bg-green-100 text-green-700",
|
|
141
|
-
warning: "bg-yellow-100 text-yellow-700",
|
|
142
|
-
danger: "bg-red-100 text-red-700",
|
|
143
|
-
info: "bg-blue-100 text-blue-700"
|
|
144
|
-
},
|
|
141
|
+
primary: "bg-orange-100 text-orange-700 dark:bg-zeo-orange/20 dark:text-primary",
|
|
142
|
+
success: "bg-green-100 text-green-700 dark:bg-success-container dark:text-success",
|
|
143
|
+
warning: "bg-yellow-100 text-yellow-700 dark:bg-warning-container dark:text-warning",
|
|
144
|
+
danger: "bg-red-100 text-red-700 dark:bg-danger-container dark:text-danger",
|
|
145
|
+
info: "bg-blue-100 text-blue-700 dark:bg-info-container dark:text-info"
|
|
146
|
+
}, Be = {
|
|
145
147
|
default: "bg-on-surface-variant",
|
|
146
148
|
primary: "bg-orange-500",
|
|
147
149
|
success: "bg-green-500",
|
|
148
150
|
warning: "bg-yellow-500",
|
|
149
151
|
danger: "bg-red-500",
|
|
150
152
|
info: "bg-blue-500"
|
|
151
|
-
},
|
|
153
|
+
}, Me = {
|
|
152
154
|
sm: "px-2 py-0.5 text-xs gap-1",
|
|
153
155
|
md: "px-2.5 py-1 text-xs gap-1.5"
|
|
154
156
|
};
|
|
155
|
-
function
|
|
157
|
+
function ht({
|
|
156
158
|
variant: e = "default",
|
|
157
|
-
size:
|
|
158
|
-
dot:
|
|
159
|
-
icon:
|
|
160
|
-
children:
|
|
159
|
+
size: r = "md",
|
|
160
|
+
dot: n = !1,
|
|
161
|
+
icon: o,
|
|
162
|
+
children: a,
|
|
161
163
|
className: s = "",
|
|
162
164
|
...l
|
|
163
165
|
}) {
|
|
@@ -166,229 +168,229 @@ function at({
|
|
|
166
168
|
{
|
|
167
169
|
className: [
|
|
168
170
|
"inline-flex items-center font-medium rounded-full",
|
|
169
|
-
|
|
170
|
-
|
|
171
|
+
Le[e],
|
|
172
|
+
Me[r],
|
|
171
173
|
s
|
|
172
174
|
].filter(Boolean).join(" "),
|
|
173
175
|
...l,
|
|
174
176
|
children: [
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
177
|
+
n && /* @__PURE__ */ t("span", { className: `w-1.5 h-1.5 rounded-full shrink-0 ${Be[e]}` }),
|
|
178
|
+
o && !n && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[12px]", children: o }),
|
|
179
|
+
a
|
|
178
180
|
]
|
|
179
181
|
}
|
|
180
182
|
);
|
|
181
183
|
}
|
|
182
|
-
function
|
|
183
|
-
return /* @__PURE__ */ t("nav", { "aria-label": "Breadcrumb", className:
|
|
184
|
-
const s =
|
|
184
|
+
function ft({ items: e, className: r = "", ...n }) {
|
|
185
|
+
return /* @__PURE__ */ t("nav", { "aria-label": "Breadcrumb", className: r, ...n, children: /* @__PURE__ */ t("ol", { className: "inline-flex items-center gap-1.5 text-sm flex-wrap", children: e.map((o, a) => {
|
|
186
|
+
const s = a === e.length - 1;
|
|
185
187
|
return /* @__PURE__ */ i("li", { className: "flex items-center gap-1.5", children: [
|
|
186
|
-
|
|
188
|
+
a > 0 && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[16px] text-on-surface-variant select-none", children: "chevron_right" }),
|
|
187
189
|
s ? /* @__PURE__ */ i(
|
|
188
190
|
"span",
|
|
189
191
|
{
|
|
190
192
|
"aria-current": "page",
|
|
191
193
|
className: "font-semibold text-on-surface flex items-center gap-1",
|
|
192
194
|
children: [
|
|
193
|
-
|
|
194
|
-
|
|
195
|
+
o.icon && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[18px] leading-none", children: o.icon }),
|
|
196
|
+
o.label
|
|
195
197
|
]
|
|
196
198
|
}
|
|
197
199
|
) : /* @__PURE__ */ i(
|
|
198
200
|
"a",
|
|
199
201
|
{
|
|
200
|
-
href:
|
|
202
|
+
href: o.href ?? "#",
|
|
201
203
|
className: "text-on-surface-variant hover:text-zeo-orange transition-colors flex items-center gap-1",
|
|
202
204
|
children: [
|
|
203
|
-
|
|
204
|
-
|
|
205
|
+
o.icon && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[18px] leading-none", children: o.icon }),
|
|
206
|
+
o.label
|
|
205
207
|
]
|
|
206
208
|
}
|
|
207
209
|
)
|
|
208
|
-
] },
|
|
210
|
+
] }, a);
|
|
209
211
|
}) }) });
|
|
210
212
|
}
|
|
211
|
-
const
|
|
213
|
+
const Ie = {
|
|
212
214
|
primary: "bg-zeo-orange text-white hover:bg-orange-700 active:bg-orange-800 focus:shadow-zeo-focus border-transparent",
|
|
213
|
-
secondary: "bg-
|
|
215
|
+
secondary: "bg-surface-container-lowest text-on-surface border-outline-variant hover:bg-surface-container-low active:bg-surface-container focus:shadow-zeo-focus",
|
|
214
216
|
ghost: "bg-transparent text-on-surface-variant border-transparent hover:bg-surface-container-low active:bg-surface-container focus:shadow-zeo-focus",
|
|
215
|
-
danger: "bg-
|
|
216
|
-
success: "bg-
|
|
217
|
-
},
|
|
217
|
+
danger: "bg-[#ba1a1a] text-white border-transparent hover:bg-red-700 active:bg-red-800 focus:shadow-[0_0_0_4px_rgba(186,26,26,0.15)]",
|
|
218
|
+
success: "bg-[#006c49] text-white border-transparent hover:bg-green-800 active:bg-green-900 focus:shadow-[0_0_0_4px_rgba(0,108,73,0.15)]"
|
|
219
|
+
}, Te = {
|
|
218
220
|
sm: "px-3 py-1.5 text-sm gap-1.5 h-8",
|
|
219
221
|
md: "px-4 py-2 text-sm gap-2 h-10",
|
|
220
222
|
lg: "px-5 py-2.5 text-base gap-2 h-11"
|
|
221
|
-
},
|
|
223
|
+
}, O = {
|
|
222
224
|
sm: "text-[16px]",
|
|
223
225
|
md: "text-[18px]",
|
|
224
226
|
lg: "text-[20px]"
|
|
225
|
-
},
|
|
227
|
+
}, ze = L(
|
|
226
228
|
({
|
|
227
229
|
variant: e = "primary",
|
|
228
|
-
size:
|
|
229
|
-
loading:
|
|
230
|
-
iconLeft:
|
|
231
|
-
iconRight:
|
|
230
|
+
size: r = "md",
|
|
231
|
+
loading: n = !1,
|
|
232
|
+
iconLeft: o,
|
|
233
|
+
iconRight: a,
|
|
232
234
|
fullWidth: s = !1,
|
|
233
235
|
disabled: l,
|
|
234
236
|
children: c,
|
|
235
237
|
className: d = "",
|
|
236
|
-
...
|
|
237
|
-
},
|
|
238
|
+
...h
|
|
239
|
+
}, f) => /* @__PURE__ */ i(
|
|
238
240
|
"button",
|
|
239
241
|
{
|
|
240
|
-
ref:
|
|
241
|
-
disabled: l ||
|
|
242
|
+
ref: f,
|
|
243
|
+
disabled: l || n,
|
|
242
244
|
className: [
|
|
243
245
|
"inline-flex items-center justify-center font-medium rounded border transition-all duration-200 select-none",
|
|
244
246
|
"focus:outline-none",
|
|
245
247
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
246
|
-
|
|
247
|
-
|
|
248
|
+
Ie[e],
|
|
249
|
+
Te[r],
|
|
248
250
|
s ? "w-full" : "",
|
|
249
251
|
d
|
|
250
252
|
].filter(Boolean).join(" "),
|
|
251
|
-
...
|
|
253
|
+
...h,
|
|
252
254
|
children: [
|
|
253
|
-
|
|
255
|
+
n ? /* @__PURE__ */ t(
|
|
254
256
|
"span",
|
|
255
257
|
{
|
|
256
|
-
className: `material-symbols-outlined animate-spin ${
|
|
258
|
+
className: `material-symbols-outlined animate-spin ${O[r]}`,
|
|
257
259
|
children: "progress_activity"
|
|
258
260
|
}
|
|
259
|
-
) :
|
|
261
|
+
) : o && /* @__PURE__ */ t("span", { className: `material-symbols-outlined ${O[r]}`, children: o }),
|
|
260
262
|
c,
|
|
261
|
-
!
|
|
263
|
+
!n && a && /* @__PURE__ */ t("span", { className: `material-symbols-outlined ${O[r]}`, children: a })
|
|
262
264
|
]
|
|
263
265
|
}
|
|
264
266
|
)
|
|
265
267
|
);
|
|
266
|
-
|
|
267
|
-
function
|
|
268
|
+
ze.displayName = "Button";
|
|
269
|
+
function pt({ children: e, attached: r = !1, className: n = "", ...o }) {
|
|
268
270
|
return /* @__PURE__ */ t(
|
|
269
271
|
"div",
|
|
270
272
|
{
|
|
271
273
|
role: "group",
|
|
272
274
|
className: [
|
|
273
275
|
"inline-flex",
|
|
274
|
-
|
|
275
|
-
|
|
276
|
+
r ? "[&>button]:rounded-none [&>button:first-child]:rounded-l [&>button:last-child]:rounded-r [&>button:not(:first-child)]:-ml-px" : "gap-2",
|
|
277
|
+
n
|
|
276
278
|
].filter(Boolean).join(" "),
|
|
277
|
-
...
|
|
279
|
+
...o,
|
|
278
280
|
children: e
|
|
279
281
|
}
|
|
280
282
|
);
|
|
281
283
|
}
|
|
282
|
-
const
|
|
283
|
-
elevated: "bg-
|
|
284
|
-
outlined: "bg-
|
|
284
|
+
const _e = {
|
|
285
|
+
elevated: "bg-surface-container-lowest shadow-theme-lg border border-surface-container-high",
|
|
286
|
+
outlined: "bg-surface-container-lowest border border-outline-variant",
|
|
285
287
|
filled: "bg-surface-container-low border border-transparent"
|
|
286
|
-
},
|
|
288
|
+
}, $e = {
|
|
287
289
|
none: "",
|
|
288
290
|
sm: "p-4",
|
|
289
291
|
md: "p-5",
|
|
290
292
|
lg: "p-6"
|
|
291
293
|
};
|
|
292
|
-
function
|
|
294
|
+
function mt({
|
|
293
295
|
variant: e = "elevated",
|
|
294
|
-
padding:
|
|
295
|
-
children:
|
|
296
|
-
className:
|
|
297
|
-
...
|
|
296
|
+
padding: r = "md",
|
|
297
|
+
children: n,
|
|
298
|
+
className: o = "",
|
|
299
|
+
...a
|
|
298
300
|
}) {
|
|
299
301
|
return /* @__PURE__ */ t(
|
|
300
302
|
"div",
|
|
301
303
|
{
|
|
302
304
|
className: [
|
|
303
305
|
"rounded-xl overflow-hidden",
|
|
304
|
-
|
|
305
|
-
|
|
306
|
+
_e[e],
|
|
307
|
+
o
|
|
306
308
|
].filter(Boolean).join(" "),
|
|
307
|
-
...
|
|
308
|
-
children: /* @__PURE__ */ t("div", { className:
|
|
309
|
+
...a,
|
|
310
|
+
children: /* @__PURE__ */ t("div", { className: $e[r], children: n })
|
|
309
311
|
}
|
|
310
312
|
);
|
|
311
313
|
}
|
|
312
|
-
function
|
|
314
|
+
function xt({
|
|
313
315
|
title: e,
|
|
314
|
-
subtitle:
|
|
315
|
-
action:
|
|
316
|
-
icon:
|
|
317
|
-
className:
|
|
316
|
+
subtitle: r,
|
|
317
|
+
action: n,
|
|
318
|
+
icon: o,
|
|
319
|
+
className: a = "",
|
|
318
320
|
...s
|
|
319
321
|
}) {
|
|
320
322
|
return /* @__PURE__ */ i(
|
|
321
323
|
"div",
|
|
322
324
|
{
|
|
323
|
-
className: ["flex items-start justify-between gap-4 pb-4",
|
|
325
|
+
className: ["flex items-start justify-between gap-4 pb-4", a].filter(Boolean).join(" "),
|
|
324
326
|
...s,
|
|
325
327
|
children: [
|
|
326
328
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-3 min-w-0", children: [
|
|
327
|
-
|
|
329
|
+
o && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-on-surface-variant text-[24px] shrink-0", children: o }),
|
|
328
330
|
/* @__PURE__ */ i("div", { className: "min-w-0", children: [
|
|
329
331
|
/* @__PURE__ */ t("h3", { className: "text-base font-semibold text-on-surface truncate", children: e }),
|
|
330
|
-
|
|
332
|
+
r && /* @__PURE__ */ t("p", { className: "text-sm text-on-surface-variant mt-0.5", children: r })
|
|
331
333
|
] })
|
|
332
334
|
] }),
|
|
333
|
-
|
|
335
|
+
n && /* @__PURE__ */ t("div", { className: "shrink-0", children: n })
|
|
334
336
|
]
|
|
335
337
|
}
|
|
336
338
|
);
|
|
337
339
|
}
|
|
338
|
-
function
|
|
340
|
+
function bt({ children: e, className: r = "", ...n }) {
|
|
339
341
|
return /* @__PURE__ */ t(
|
|
340
342
|
"div",
|
|
341
343
|
{
|
|
342
|
-
className: ["flex items-center justify-end gap-3 pt-4 border-t border-surface-container-high",
|
|
343
|
-
...
|
|
344
|
+
className: ["flex items-center justify-end gap-3 pt-4 border-t border-surface-container-high", r].filter(Boolean).join(" "),
|
|
345
|
+
...n,
|
|
344
346
|
children: e
|
|
345
347
|
}
|
|
346
348
|
);
|
|
347
349
|
}
|
|
348
|
-
const
|
|
349
|
-
function
|
|
350
|
-
const [s, l] = N(!1), [c, d] = N(null),
|
|
351
|
-
var
|
|
352
|
-
const u =
|
|
350
|
+
const $ = 8, ee = 4;
|
|
351
|
+
function gt({ trigger: e, items: r, align: n = "right", className: o = "", ...a }) {
|
|
352
|
+
const [s, l] = N(!1), [c, d] = N(null), h = z(null), f = z(null), p = C(() => {
|
|
353
|
+
var T;
|
|
354
|
+
const u = h.current;
|
|
353
355
|
if (!u) return;
|
|
354
|
-
const
|
|
355
|
-
d({ top: B, left:
|
|
356
|
-
}, [
|
|
357
|
-
return
|
|
356
|
+
const m = u.getBoundingClientRect(), x = (T = f.current) == null ? void 0 : T.getBoundingClientRect(), v = (x == null ? void 0 : x.width) ?? 180, b = (x == null ? void 0 : x.height) ?? 0, w = window.innerHeight - m.bottom, y = m.top, B = w < b + $ && y > w ? m.top - b - ee : m.bottom + ee, W = n === "right" ? m.right - v : m.left, S = window.innerWidth - v - $, R = Math.min(Math.max(W, $), Math.max(S, $));
|
|
357
|
+
d({ top: B, left: R });
|
|
358
|
+
}, [n]);
|
|
359
|
+
return xe(() => {
|
|
358
360
|
s && p();
|
|
359
|
-
}, [s, p]),
|
|
361
|
+
}, [s, p]), j(() => {
|
|
360
362
|
if (!s) return;
|
|
361
363
|
const u = () => p();
|
|
362
364
|
return window.addEventListener("scroll", u, !0), window.addEventListener("resize", u), () => {
|
|
363
365
|
window.removeEventListener("scroll", u, !0), window.removeEventListener("resize", u);
|
|
364
366
|
};
|
|
365
|
-
}, [s, p]),
|
|
366
|
-
const u = (
|
|
367
|
+
}, [s, p]), j(() => {
|
|
368
|
+
const u = (m) => {
|
|
367
369
|
var w, y;
|
|
368
|
-
const x =
|
|
370
|
+
const x = m.target, v = (w = h.current) == null ? void 0 : w.contains(x), b = (y = f.current) == null ? void 0 : y.contains(x);
|
|
369
371
|
!v && !b && l(!1);
|
|
370
372
|
};
|
|
371
373
|
return document.addEventListener("mousedown", u), () => document.removeEventListener("mousedown", u);
|
|
372
|
-
}, []),
|
|
373
|
-
const u = (
|
|
374
|
-
|
|
374
|
+
}, []), j(() => {
|
|
375
|
+
const u = (m) => {
|
|
376
|
+
m.key === "Escape" && l(!1);
|
|
375
377
|
};
|
|
376
378
|
return document.addEventListener("keydown", u), () => document.removeEventListener("keydown", u);
|
|
377
|
-
}, []), /* @__PURE__ */ i("div", { ref:
|
|
379
|
+
}, []), /* @__PURE__ */ i("div", { ref: h, className: ["relative inline-block", o].filter(Boolean).join(" "), ...a, children: [
|
|
378
380
|
/* @__PURE__ */ t("div", { onClick: () => l((u) => !u), children: e }),
|
|
379
|
-
s &&
|
|
381
|
+
s && ve(
|
|
380
382
|
/* @__PURE__ */ t(
|
|
381
383
|
"div",
|
|
382
384
|
{
|
|
383
|
-
ref:
|
|
384
|
-
className: "fixed z-[100] min-w-[180px] bg-
|
|
385
|
+
ref: f,
|
|
386
|
+
className: "fixed z-[100] min-w-[180px] bg-surface-container-lowest border border-surface-container-high rounded-xl shadow-theme-lg py-1",
|
|
385
387
|
style: {
|
|
386
388
|
top: (c == null ? void 0 : c.top) ?? 0,
|
|
387
389
|
left: (c == null ? void 0 : c.left) ?? 0,
|
|
388
390
|
visibility: c ? "visible" : "hidden"
|
|
389
391
|
},
|
|
390
392
|
role: "menu",
|
|
391
|
-
children:
|
|
393
|
+
children: r.map((u, m) => /* @__PURE__ */ i("div", { children: [
|
|
392
394
|
/* @__PURE__ */ i(
|
|
393
395
|
"button",
|
|
394
396
|
{
|
|
@@ -400,7 +402,7 @@ function dt({ trigger: e, items: n, align: r = "right", className: a = "", ...o
|
|
|
400
402
|
},
|
|
401
403
|
className: [
|
|
402
404
|
"w-full flex items-center gap-3 px-4 py-2.5 text-sm transition-colors text-left",
|
|
403
|
-
u.danger ? "text-error hover:bg-red-50" : "text-on-surface hover:bg-surface-container-low",
|
|
405
|
+
u.danger ? "text-error hover:bg-red-50 dark:hover:bg-error-container" : "text-on-surface hover:bg-surface-container-low",
|
|
404
406
|
u.disabled ? "opacity-40 cursor-not-allowed" : "cursor-pointer"
|
|
405
407
|
].filter(Boolean).join(" "),
|
|
406
408
|
children: [
|
|
@@ -410,110 +412,110 @@ function dt({ trigger: e, items: n, align: r = "right", className: a = "", ...o
|
|
|
410
412
|
}
|
|
411
413
|
),
|
|
412
414
|
u.dividerAfter && /* @__PURE__ */ t("div", { className: "my-1 border-t border-surface-container-high" })
|
|
413
|
-
] },
|
|
415
|
+
] }, m))
|
|
414
416
|
}
|
|
415
417
|
),
|
|
416
418
|
document.body
|
|
417
419
|
)
|
|
418
420
|
] });
|
|
419
421
|
}
|
|
420
|
-
const
|
|
421
|
-
({ label: e, hint:
|
|
422
|
-
const
|
|
422
|
+
const Ae = L(
|
|
423
|
+
({ label: e, hint: r, error: n, options: o, placeholder: a, disabled: s, className: l = "", id: c, ...d }, h) => {
|
|
424
|
+
const f = c ?? (e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-"));
|
|
423
425
|
return /* @__PURE__ */ i("div", { className: "flex flex-col gap-1.5", children: [
|
|
424
|
-
e && /* @__PURE__ */ t("label", { htmlFor:
|
|
426
|
+
e && /* @__PURE__ */ t("label", { htmlFor: f, className: "text-sm font-medium text-on-surface", children: e }),
|
|
425
427
|
/* @__PURE__ */ i("div", { className: "relative", children: [
|
|
426
428
|
/* @__PURE__ */ i(
|
|
427
429
|
"select",
|
|
428
430
|
{
|
|
429
|
-
ref:
|
|
430
|
-
id:
|
|
431
|
+
ref: h,
|
|
432
|
+
id: f,
|
|
431
433
|
disabled: s,
|
|
432
434
|
className: [
|
|
433
|
-
"w-full appearance-none bg-
|
|
435
|
+
"w-full appearance-none bg-page border rounded px-3 py-2 text-sm pr-9 transition-all duration-200",
|
|
434
436
|
"text-on-surface focus:outline-none focus:border-zeo-orange focus:shadow-zeo-focus",
|
|
435
|
-
|
|
437
|
+
n ? "border-error" : "border-outline-variant",
|
|
436
438
|
"disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",
|
|
437
439
|
l
|
|
438
440
|
].filter(Boolean).join(" "),
|
|
439
441
|
...d,
|
|
440
442
|
children: [
|
|
441
|
-
|
|
442
|
-
|
|
443
|
+
a && /* @__PURE__ */ t("option", { value: "", disabled: !0, children: a }),
|
|
444
|
+
o.map((p) => /* @__PURE__ */ t("option", { value: p.value, disabled: p.disabled, children: p.label }, p.value))
|
|
443
445
|
]
|
|
444
446
|
}
|
|
445
447
|
),
|
|
446
448
|
/* @__PURE__ */ t("span", { className: "material-symbols-outlined absolute right-3 top-1/2 -translate-y-1/2 text-[18px] text-on-surface-variant pointer-events-none", children: "expand_more" })
|
|
447
449
|
] }),
|
|
448
|
-
|
|
450
|
+
n && /* @__PURE__ */ i("p", { className: "text-xs text-error flex items-center gap-1", children: [
|
|
449
451
|
/* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
|
|
450
|
-
|
|
452
|
+
n
|
|
451
453
|
] }),
|
|
452
|
-
!
|
|
454
|
+
!n && r && /* @__PURE__ */ t("p", { className: "text-xs text-on-surface-variant", children: r })
|
|
453
455
|
] });
|
|
454
456
|
}
|
|
455
457
|
);
|
|
456
|
-
|
|
457
|
-
const
|
|
458
|
-
({ label: e, hint:
|
|
459
|
-
const
|
|
458
|
+
Ae.displayName = "Select";
|
|
459
|
+
const Ee = L(
|
|
460
|
+
({ label: e, hint: r, error: n, disabled: o, className: a = "", id: s, rows: l = 4, ...c }, d) => {
|
|
461
|
+
const h = s ?? (e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-"));
|
|
460
462
|
return /* @__PURE__ */ i("div", { className: "flex flex-col gap-1.5", children: [
|
|
461
|
-
e && /* @__PURE__ */ t("label", { htmlFor:
|
|
463
|
+
e && /* @__PURE__ */ t("label", { htmlFor: h, className: "text-sm font-medium text-on-surface", children: e }),
|
|
462
464
|
/* @__PURE__ */ t(
|
|
463
465
|
"textarea",
|
|
464
466
|
{
|
|
465
467
|
ref: d,
|
|
466
|
-
id:
|
|
468
|
+
id: h,
|
|
467
469
|
rows: l,
|
|
468
|
-
disabled:
|
|
470
|
+
disabled: o,
|
|
469
471
|
className: [
|
|
470
|
-
"w-full bg-
|
|
472
|
+
"w-full bg-page border rounded px-3 py-2 text-sm resize-y transition-all duration-200",
|
|
471
473
|
"text-on-surface placeholder:text-on-surface-variant",
|
|
472
474
|
"focus:outline-none focus:border-zeo-orange focus:shadow-zeo-focus",
|
|
473
|
-
|
|
475
|
+
n ? "border-error" : "border-outline-variant",
|
|
474
476
|
"disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",
|
|
475
|
-
|
|
477
|
+
a
|
|
476
478
|
].filter(Boolean).join(" "),
|
|
477
479
|
...c
|
|
478
480
|
}
|
|
479
481
|
),
|
|
480
|
-
|
|
482
|
+
n && /* @__PURE__ */ i("p", { className: "text-xs text-error flex items-center gap-1", children: [
|
|
481
483
|
/* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
|
|
482
|
-
|
|
484
|
+
n
|
|
483
485
|
] }),
|
|
484
|
-
!
|
|
486
|
+
!n && r && /* @__PURE__ */ t("p", { className: "text-xs text-on-surface-variant", children: r })
|
|
485
487
|
] });
|
|
486
488
|
}
|
|
487
489
|
);
|
|
488
|
-
|
|
489
|
-
const
|
|
490
|
+
Ee.displayName = "Textarea";
|
|
491
|
+
const We = {
|
|
490
492
|
square: "rounded-[2px]",
|
|
491
493
|
rounded: "rounded-[4px]",
|
|
492
494
|
circle: "rounded-full"
|
|
493
|
-
},
|
|
494
|
-
({ label: e, description:
|
|
495
|
-
const
|
|
495
|
+
}, Se = L(
|
|
496
|
+
({ label: e, description: r, error: n, disabled: o, className: a = "", id: s, shape: l = "square", color: c = "#FF6B00", ...d }, h) => {
|
|
497
|
+
const f = s ?? `checkbox-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
|
|
496
498
|
return /* @__PURE__ */ i("div", { className: "flex flex-col gap-1", children: [
|
|
497
499
|
/* @__PURE__ */ i(
|
|
498
500
|
"label",
|
|
499
501
|
{
|
|
500
|
-
htmlFor:
|
|
502
|
+
htmlFor: f,
|
|
501
503
|
className: [
|
|
502
504
|
"flex items-start gap-3 cursor-pointer",
|
|
503
|
-
|
|
505
|
+
o ? "opacity-50 cursor-not-allowed" : ""
|
|
504
506
|
].filter(Boolean).join(" "),
|
|
505
507
|
children: [
|
|
506
508
|
/* @__PURE__ */ i("div", { className: "relative mt-0.5 shrink-0 w-4 h-4", children: [
|
|
507
509
|
/* @__PURE__ */ t(
|
|
508
510
|
"input",
|
|
509
511
|
{
|
|
510
|
-
ref:
|
|
512
|
+
ref: h,
|
|
511
513
|
type: "checkbox",
|
|
512
|
-
id:
|
|
513
|
-
disabled:
|
|
514
|
+
id: f,
|
|
515
|
+
disabled: o,
|
|
514
516
|
className: [
|
|
515
517
|
"absolute inset-0 w-full h-full opacity-0 cursor-pointer peer disabled:cursor-not-allowed",
|
|
516
|
-
|
|
518
|
+
a
|
|
517
519
|
].filter(Boolean).join(" "),
|
|
518
520
|
...d
|
|
519
521
|
}
|
|
@@ -523,9 +525,9 @@ const Ie = {
|
|
|
523
525
|
{
|
|
524
526
|
className: [
|
|
525
527
|
"w-4 h-4 border-2 border-outline-variant transition-colors pointer-events-none",
|
|
526
|
-
"bg-
|
|
528
|
+
"bg-page peer-checked:bg-[var(--cb-color)] peer-checked:border-[var(--cb-color)]",
|
|
527
529
|
"peer-focus-visible:ring-2 peer-focus-visible:ring-[var(--cb-color)]/30 peer-focus-visible:ring-offset-0",
|
|
528
|
-
|
|
530
|
+
We[l]
|
|
529
531
|
].filter(Boolean).join(" "),
|
|
530
532
|
style: { "--cb-color": c }
|
|
531
533
|
}
|
|
@@ -554,29 +556,29 @@ const Ie = {
|
|
|
554
556
|
] }),
|
|
555
557
|
e && /* @__PURE__ */ i("span", { className: "flex flex-col", children: [
|
|
556
558
|
/* @__PURE__ */ t("span", { className: "text-sm font-medium text-on-surface leading-tight", children: e }),
|
|
557
|
-
|
|
559
|
+
r && /* @__PURE__ */ t("span", { className: "text-xs text-on-surface-variant mt-0.5", children: r })
|
|
558
560
|
] })
|
|
559
561
|
]
|
|
560
562
|
}
|
|
561
563
|
),
|
|
562
|
-
|
|
564
|
+
n && /* @__PURE__ */ i("p", { className: "text-xs text-error flex items-center gap-1 ml-7", children: [
|
|
563
565
|
/* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
|
|
564
|
-
|
|
566
|
+
n
|
|
565
567
|
] })
|
|
566
568
|
] });
|
|
567
569
|
}
|
|
568
570
|
);
|
|
569
|
-
|
|
570
|
-
const
|
|
571
|
-
({ label: e, description:
|
|
572
|
-
const c =
|
|
571
|
+
Se.displayName = "Checkbox";
|
|
572
|
+
const Re = L(
|
|
573
|
+
({ label: e, description: r, disabled: n, className: o = "", id: a, ...s }, l) => {
|
|
574
|
+
const c = a ?? `radio-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
|
|
573
575
|
return /* @__PURE__ */ i(
|
|
574
576
|
"label",
|
|
575
577
|
{
|
|
576
578
|
htmlFor: c,
|
|
577
579
|
className: [
|
|
578
580
|
"flex items-start gap-3 cursor-pointer",
|
|
579
|
-
|
|
581
|
+
n ? "opacity-50 cursor-not-allowed" : ""
|
|
580
582
|
].filter(Boolean).join(" "),
|
|
581
583
|
children: [
|
|
582
584
|
/* @__PURE__ */ t(
|
|
@@ -585,36 +587,36 @@ const Ee = C(
|
|
|
585
587
|
ref: l,
|
|
586
588
|
type: "radio",
|
|
587
589
|
id: c,
|
|
588
|
-
disabled:
|
|
590
|
+
disabled: n,
|
|
589
591
|
className: [
|
|
590
592
|
"mt-0.5 w-4 h-4 border-outline-variant text-zeo-orange shrink-0",
|
|
591
593
|
"focus:ring-2 focus:ring-zeo-orange/30 focus:ring-offset-0",
|
|
592
594
|
"disabled:cursor-not-allowed",
|
|
593
|
-
|
|
595
|
+
o
|
|
594
596
|
].filter(Boolean).join(" "),
|
|
595
597
|
...s
|
|
596
598
|
}
|
|
597
599
|
),
|
|
598
600
|
e && /* @__PURE__ */ i("span", { className: "flex flex-col", children: [
|
|
599
601
|
/* @__PURE__ */ t("span", { className: "text-sm font-medium text-on-surface leading-tight", children: e }),
|
|
600
|
-
|
|
602
|
+
r && /* @__PURE__ */ t("span", { className: "text-xs text-on-surface-variant mt-0.5", children: r })
|
|
601
603
|
] })
|
|
602
604
|
]
|
|
603
605
|
}
|
|
604
606
|
);
|
|
605
607
|
}
|
|
606
608
|
);
|
|
607
|
-
|
|
608
|
-
const
|
|
609
|
-
({ label: e, description:
|
|
610
|
-
const c =
|
|
609
|
+
Re.displayName = "Radio";
|
|
610
|
+
const He = L(
|
|
611
|
+
({ label: e, description: r, disabled: n, className: o = "", id: a, ...s }, l) => {
|
|
612
|
+
const c = a ?? `switch-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
|
|
611
613
|
return /* @__PURE__ */ i(
|
|
612
614
|
"label",
|
|
613
615
|
{
|
|
614
616
|
htmlFor: c,
|
|
615
617
|
className: [
|
|
616
618
|
"flex items-start gap-3 cursor-pointer select-none",
|
|
617
|
-
|
|
619
|
+
n ? "opacity-50 cursor-not-allowed" : ""
|
|
618
620
|
].filter(Boolean).join(" "),
|
|
619
621
|
children: [
|
|
620
622
|
/* @__PURE__ */ i("div", { className: "relative mt-0.5 shrink-0", children: [
|
|
@@ -624,7 +626,7 @@ const Te = C(
|
|
|
624
626
|
ref: l,
|
|
625
627
|
type: "checkbox",
|
|
626
628
|
id: c,
|
|
627
|
-
disabled:
|
|
629
|
+
disabled: n,
|
|
628
630
|
className: "sr-only peer",
|
|
629
631
|
...s
|
|
630
632
|
}
|
|
@@ -634,31 +636,31 @@ const Te = C(
|
|
|
634
636
|
] }),
|
|
635
637
|
e && /* @__PURE__ */ i("span", { className: "flex flex-col", children: [
|
|
636
638
|
/* @__PURE__ */ t("span", { className: "text-sm font-medium text-on-surface leading-tight", children: e }),
|
|
637
|
-
|
|
639
|
+
r && /* @__PURE__ */ t("span", { className: "text-xs text-on-surface-variant mt-0.5", children: r })
|
|
638
640
|
] })
|
|
639
641
|
]
|
|
640
642
|
}
|
|
641
643
|
);
|
|
642
644
|
}
|
|
643
645
|
);
|
|
644
|
-
|
|
645
|
-
function k({ name: e, size:
|
|
646
|
+
He.displayName = "Switch";
|
|
647
|
+
function k({ name: e, size: r = 20, fill: n = !1, className: o = "", style: a, ...s }) {
|
|
646
648
|
return /* @__PURE__ */ t(
|
|
647
649
|
"span",
|
|
648
650
|
{
|
|
649
651
|
...s,
|
|
650
|
-
className: `material-symbols-outlined leading-none select-none ${
|
|
652
|
+
className: `material-symbols-outlined leading-none select-none ${o}`.trim(),
|
|
651
653
|
style: {
|
|
652
|
-
fontSize:
|
|
653
|
-
fontVariationSettings: `'FILL' ${
|
|
654
|
-
...
|
|
654
|
+
fontSize: r,
|
|
655
|
+
fontVariationSettings: `'FILL' ${n ? 1 : 0}, 'wght' 300, 'GRAD' 0, 'opsz' 24`,
|
|
656
|
+
...a
|
|
655
657
|
},
|
|
656
658
|
"aria-hidden": "true",
|
|
657
659
|
children: e
|
|
658
660
|
}
|
|
659
661
|
);
|
|
660
662
|
}
|
|
661
|
-
const
|
|
663
|
+
const Ve = ({ size: e = 24, className: r }) => /* @__PURE__ */ i(
|
|
662
664
|
"svg",
|
|
663
665
|
{
|
|
664
666
|
width: e,
|
|
@@ -669,7 +671,7 @@ const Se = ({ size: e = 24, className: n }) => /* @__PURE__ */ i(
|
|
|
669
671
|
strokeLinecap: "round",
|
|
670
672
|
strokeLinejoin: "round",
|
|
671
673
|
strokeWidth: 4,
|
|
672
|
-
className:
|
|
674
|
+
className: r,
|
|
673
675
|
"aria-hidden": "true",
|
|
674
676
|
children: [
|
|
675
677
|
/* @__PURE__ */ t("path", { d: "M15 65 L40 50 H85 L60 65 Z" }),
|
|
@@ -681,7 +683,7 @@ const Se = ({ size: e = 24, className: n }) => /* @__PURE__ */ i(
|
|
|
681
683
|
/* @__PURE__ */ t("path", { d: "M72 45 V20 H79 V41" })
|
|
682
684
|
]
|
|
683
685
|
}
|
|
684
|
-
),
|
|
686
|
+
), De = ({ size: e = 24, className: r }) => /* @__PURE__ */ i(
|
|
685
687
|
"svg",
|
|
686
688
|
{
|
|
687
689
|
width: e,
|
|
@@ -692,7 +694,7 @@ const Se = ({ size: e = 24, className: n }) => /* @__PURE__ */ i(
|
|
|
692
694
|
strokeLinecap: "round",
|
|
693
695
|
strokeLinejoin: "round",
|
|
694
696
|
strokeWidth: 4,
|
|
695
|
-
className:
|
|
697
|
+
className: r,
|
|
696
698
|
"aria-hidden": "true",
|
|
697
699
|
children: [
|
|
698
700
|
/* @__PURE__ */ t("ellipse", { cx: "50", cy: "20", rx: "12", ry: "6" }),
|
|
@@ -702,7 +704,7 @@ const Se = ({ size: e = 24, className: n }) => /* @__PURE__ */ i(
|
|
|
702
704
|
/* @__PURE__ */ t("path", { d: "M50 75 V90" })
|
|
703
705
|
]
|
|
704
706
|
}
|
|
705
|
-
),
|
|
707
|
+
), Oe = ({ size: e = 24, className: r }) => /* @__PURE__ */ i(
|
|
706
708
|
"svg",
|
|
707
709
|
{
|
|
708
710
|
width: e,
|
|
@@ -711,7 +713,7 @@ const Se = ({ size: e = 24, className: n }) => /* @__PURE__ */ i(
|
|
|
711
713
|
fill: "none",
|
|
712
714
|
strokeLinecap: "round",
|
|
713
715
|
strokeLinejoin: "round",
|
|
714
|
-
className:
|
|
716
|
+
className: r,
|
|
715
717
|
"aria-hidden": "true",
|
|
716
718
|
children: [
|
|
717
719
|
/* @__PURE__ */ t("path", { d: "M48 90 L45 25 L55 25 L52 90 Z", fill: "currentColor", stroke: "none" }),
|
|
@@ -722,65 +724,85 @@ const Se = ({ size: e = 24, className: n }) => /* @__PURE__ */ i(
|
|
|
722
724
|
/* @__PURE__ */ t("path", { d: "M70 35 A28 28 0 0 1 70 5", stroke: "currentColor", strokeWidth: 3 })
|
|
723
725
|
]
|
|
724
726
|
}
|
|
725
|
-
),
|
|
727
|
+
), vt = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("path", { d: "M6 3h4v13h9v4H6z", fill: "currentColor", fillOpacity: "0.15", stroke: "currentColor", strokeWidth: "1.75", strokeLinejoin: "round" }) }), wt = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("path", { d: "M4 4h4v12h8V4h4v16H4z", fill: "currentColor", fillOpacity: "0.15", stroke: "currentColor", strokeWidth: "1.75", strokeLinejoin: "round" }) }), yt = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("path", { d: "M4 3h16v4h-6v10h6v4H4v-4h6V7H4z", fill: "currentColor", fillOpacity: "0.15", stroke: "currentColor", strokeWidth: "1.75", strokeLinejoin: "round" }) }), kt = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "8.5", fill: "none", stroke: "currentColor", strokeWidth: "1.75" }) }), Nt = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("path", { d: "M18.5 3.5L8 9.2v5.6l10.5 5.7", fill: "none", stroke: "currentColor", strokeWidth: "2.6", strokeLinejoin: "round", strokeLinecap: "round" }) }), Ct = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("path", { d: "M2 5h9v14H8.4V7.6H2zM13 5h9v2.6h-6.4V19H13z", fill: "currentColor", fillOpacity: "0.15", stroke: "currentColor", strokeWidth: "1.5", strokeLinejoin: "round" }) }), jt = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("path", { d: "M7 4v15h12", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), Lt = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("path", { d: "M2.5 6h8v13M21.5 6h-8v13", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), Bt = ({ size: e = 24, className: r }) => /* @__PURE__ */ i("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: [
|
|
728
|
+
/* @__PURE__ */ t("path", { d: "M7 4v15h12", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
729
|
+
/* @__PURE__ */ t("circle", { cx: "14.5", cy: "15.5", r: "1.6", fill: "currentColor" })
|
|
730
|
+
] }), Mt = ({ size: e = 24, className: r }) => /* @__PURE__ */ i("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: [
|
|
731
|
+
/* @__PURE__ */ t("path", { d: "M2.5 6h8.5v13M21.5 6H13v13", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
732
|
+
/* @__PURE__ */ t("path", { d: "M11 9.5l1 1.5 1-1.5", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinejoin: "round" })
|
|
733
|
+
] }), It = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("path", { fillRule: "evenodd", d: "M12 3a9 9 0 1 1 0 18a9 9 0 1 1 0-18zm0 3.6a5.4 5.4 0 1 0 0 10.8a5.4 5.4 0 1 0 0-10.8z", fill: "currentColor", fillOpacity: "0.2", stroke: "currentColor", strokeWidth: "1.5" }) }), Tt = ({ size: e = 24, className: r }) => /* @__PURE__ */ t("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: /* @__PURE__ */ t("path", { fillRule: "evenodd", d: "M2.5 5.5h19v13h-19zm3.5 3.5v6h12v-6z", fill: "currentColor", fillOpacity: "0.2", stroke: "currentColor", strokeWidth: "1.5", strokeLinejoin: "round" }) }), zt = ({ size: e = 24, className: r }) => /* @__PURE__ */ i("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: [
|
|
734
|
+
/* @__PURE__ */ t("rect", { x: "3", y: "3", width: "18", height: "18", rx: "5", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeDasharray: "2.5 2" }),
|
|
735
|
+
/* @__PURE__ */ t("rect", { x: "8.5", y: "8.5", width: "7", height: "7", fill: "currentColor", fillOpacity: "0.2", stroke: "currentColor", strokeWidth: "1.6" })
|
|
736
|
+
] }), _t = ({ size: e = 24, className: r }) => /* @__PURE__ */ i("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: [
|
|
737
|
+
/* @__PURE__ */ t("path", { d: "M4 3h9a5 5 0 0 1 5 5v8a5 5 0 0 1-5 5H4", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeDasharray: "2.5 2" }),
|
|
738
|
+
/* @__PURE__ */ t("rect", { x: "4", y: "8.5", width: "7", height: "7", fill: "currentColor", fillOpacity: "0.2", stroke: "currentColor", strokeWidth: "1.6" }),
|
|
739
|
+
/* @__PURE__ */ t("path", { d: "M4 2v20", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round" })
|
|
740
|
+
] }), $t = ({ size: e = 24, className: r }) => /* @__PURE__ */ i("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: [
|
|
741
|
+
/* @__PURE__ */ t("path", { d: "M4 20h9a6 6 0 0 0 6-6V4", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeDasharray: "2.5 2" }),
|
|
742
|
+
/* @__PURE__ */ t("rect", { x: "4", y: "4", width: "8", height: "8", fill: "currentColor", fillOpacity: "0.2", stroke: "currentColor", strokeWidth: "1.6" }),
|
|
743
|
+
/* @__PURE__ */ t("path", { d: "M4 3v18M3 4h18", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round" })
|
|
744
|
+
] }), At = ({ size: e = 24, className: r }) => /* @__PURE__ */ i("svg", { width: e, height: e, viewBox: "0 0 24 24", className: r, "aria-hidden": "true", children: [
|
|
745
|
+
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "9", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeDasharray: "2.5 2" }),
|
|
746
|
+
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "4", fill: "currentColor", fillOpacity: "0.2", stroke: "currentColor", strokeWidth: "1.6" })
|
|
747
|
+
] }), Fe = {
|
|
726
748
|
sm: "px-3 py-1.5 text-sm h-8",
|
|
727
749
|
md: "px-3 py-2 text-sm h-10",
|
|
728
750
|
lg: "px-4 py-2.5 text-base h-11"
|
|
729
|
-
},
|
|
751
|
+
}, te = {
|
|
730
752
|
sm: "text-[16px]",
|
|
731
753
|
md: "text-[18px]",
|
|
732
754
|
lg: "text-[20px]"
|
|
733
755
|
};
|
|
734
|
-
function Ke(e,
|
|
756
|
+
function Ke(e, r, n) {
|
|
735
757
|
if (e === "" || e === void 0 || e === null) return "";
|
|
736
|
-
const
|
|
737
|
-
return
|
|
758
|
+
const o = Number(e).toFixed(r);
|
|
759
|
+
return n ? `${o} ${n}` : o;
|
|
738
760
|
}
|
|
739
|
-
const
|
|
761
|
+
const Ue = L(
|
|
740
762
|
({
|
|
741
763
|
label: e,
|
|
742
|
-
hint:
|
|
743
|
-
error:
|
|
744
|
-
inputSize:
|
|
745
|
-
iconLeft:
|
|
764
|
+
hint: r,
|
|
765
|
+
error: n,
|
|
766
|
+
inputSize: o = "md",
|
|
767
|
+
iconLeft: a,
|
|
746
768
|
iconRight: s,
|
|
747
769
|
onIconRightClick: l,
|
|
748
770
|
disabled: c,
|
|
749
771
|
className: d = "",
|
|
750
|
-
id:
|
|
751
|
-
unit:
|
|
772
|
+
id: h,
|
|
773
|
+
unit: f,
|
|
752
774
|
decimals: p,
|
|
753
775
|
onValueChange: u,
|
|
754
|
-
value:
|
|
776
|
+
value: m,
|
|
755
777
|
defaultValue: x,
|
|
756
778
|
type: v,
|
|
757
779
|
step: b,
|
|
758
780
|
inputMode: w,
|
|
759
781
|
onChange: y,
|
|
760
|
-
onFocus:
|
|
782
|
+
onFocus: I,
|
|
761
783
|
onBlur: B,
|
|
762
|
-
...
|
|
784
|
+
...W
|
|
763
785
|
}, S) => {
|
|
764
|
-
const
|
|
786
|
+
const R = be(), T = h ?? (e ? e.toLowerCase().replace(/\s+/g, "-") : R), g = f !== void 0, H = p ?? 0, V = g && m !== void 0, [de, ue] = N(
|
|
765
787
|
typeof x == "number" ? x : ""
|
|
766
|
-
), [
|
|
767
|
-
(
|
|
768
|
-
g && (
|
|
788
|
+
), [P, Z] = N(!1), [D, Q] = N(""), _ = V ? m : de, he = g ? P ? D : Ke(_, H, f ?? "") : m, fe = C(
|
|
789
|
+
(M) => {
|
|
790
|
+
g && (Z(!0), Q(_ === "" ? "" : String(_))), I == null || I(M);
|
|
769
791
|
},
|
|
770
|
-
[g,
|
|
771
|
-
),
|
|
772
|
-
(
|
|
792
|
+
[g, _, I]
|
|
793
|
+
), pe = C(
|
|
794
|
+
(M) => {
|
|
773
795
|
if (g) {
|
|
774
|
-
|
|
775
|
-
const
|
|
776
|
-
V ||
|
|
796
|
+
Z(!1);
|
|
797
|
+
const Y = parseFloat(D.replace(",", ".")), J = isNaN(Y) ? "" : Y;
|
|
798
|
+
V || ue(J), u == null || u(J);
|
|
777
799
|
}
|
|
778
|
-
B == null || B(
|
|
800
|
+
B == null || B(M);
|
|
779
801
|
},
|
|
780
|
-
[g,
|
|
781
|
-
),
|
|
782
|
-
(
|
|
783
|
-
g &&
|
|
802
|
+
[g, D, V, u, B]
|
|
803
|
+
), me = C(
|
|
804
|
+
(M) => {
|
|
805
|
+
g && Q(M.target.value), y == null || y(M);
|
|
784
806
|
},
|
|
785
807
|
[g, y]
|
|
786
808
|
);
|
|
@@ -788,46 +810,46 @@ const De = C(
|
|
|
788
810
|
e && /* @__PURE__ */ t(
|
|
789
811
|
"label",
|
|
790
812
|
{
|
|
791
|
-
htmlFor:
|
|
813
|
+
htmlFor: T,
|
|
792
814
|
className: "text-sm font-medium text-on-surface",
|
|
793
815
|
children: e
|
|
794
816
|
}
|
|
795
817
|
),
|
|
796
818
|
/* @__PURE__ */ i("div", { className: "relative flex items-center", children: [
|
|
797
|
-
|
|
819
|
+
a && /* @__PURE__ */ t(
|
|
798
820
|
"span",
|
|
799
821
|
{
|
|
800
|
-
className: `material-symbols-outlined absolute left-3 text-on-surface-variant pointer-events-none ${
|
|
801
|
-
children:
|
|
822
|
+
className: `material-symbols-outlined absolute left-3 text-on-surface-variant pointer-events-none ${te[o]}`,
|
|
823
|
+
children: a
|
|
802
824
|
}
|
|
803
825
|
),
|
|
804
826
|
/* @__PURE__ */ t(
|
|
805
827
|
"input",
|
|
806
828
|
{
|
|
807
829
|
ref: S,
|
|
808
|
-
id:
|
|
830
|
+
id: T,
|
|
809
831
|
disabled: c,
|
|
810
|
-
type: g ?
|
|
832
|
+
type: g ? P ? "number" : "text" : v,
|
|
811
833
|
inputMode: g ? "decimal" : w,
|
|
812
|
-
value: g ?
|
|
834
|
+
value: g ? he : m,
|
|
813
835
|
defaultValue: g ? void 0 : x,
|
|
814
|
-
step: g ? b ?? (
|
|
815
|
-
onFocus:
|
|
816
|
-
onBlur:
|
|
817
|
-
onChange:
|
|
836
|
+
step: g ? b ?? (H > 0 ? Math.pow(10, -H) : 1) : b,
|
|
837
|
+
onFocus: fe,
|
|
838
|
+
onBlur: pe,
|
|
839
|
+
onChange: me,
|
|
818
840
|
className: [
|
|
819
|
-
"w-full bg-
|
|
820
|
-
"text-on-surface placeholder:text-on-surface-variant",
|
|
841
|
+
"w-full bg-page border rounded transition-all duration-200",
|
|
842
|
+
"text-on-surface placeholder:text-on-surface-variant dark:placeholder:text-content-disabled",
|
|
821
843
|
"focus:outline-none focus:border-zeo-orange focus:shadow-zeo-focus",
|
|
822
|
-
|
|
844
|
+
n ? "border-error focus:border-error focus:shadow-[0_0_0_4px_rgba(186,26,26,0.15)]" : "border-outline-variant",
|
|
823
845
|
"disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",
|
|
824
846
|
g ? "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none" : "",
|
|
825
|
-
|
|
826
|
-
|
|
847
|
+
Fe[o],
|
|
848
|
+
a ? "pl-9" : "",
|
|
827
849
|
s ? "pr-9" : "",
|
|
828
850
|
d
|
|
829
851
|
].filter(Boolean).join(" "),
|
|
830
|
-
...
|
|
852
|
+
...W
|
|
831
853
|
}
|
|
832
854
|
),
|
|
833
855
|
s && /* @__PURE__ */ t(
|
|
@@ -835,7 +857,7 @@ const De = C(
|
|
|
835
857
|
{
|
|
836
858
|
className: [
|
|
837
859
|
"material-symbols-outlined absolute right-3 text-on-surface-variant",
|
|
838
|
-
|
|
860
|
+
te[o],
|
|
839
861
|
l ? "cursor-pointer hover:text-on-surface" : "pointer-events-none"
|
|
840
862
|
].filter(Boolean).join(" "),
|
|
841
863
|
onClick: l,
|
|
@@ -843,30 +865,30 @@ const De = C(
|
|
|
843
865
|
}
|
|
844
866
|
)
|
|
845
867
|
] }),
|
|
846
|
-
|
|
868
|
+
n && /* @__PURE__ */ i("p", { className: "text-xs text-error flex items-center gap-1", children: [
|
|
847
869
|
/* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
|
|
848
|
-
|
|
870
|
+
n
|
|
849
871
|
] }),
|
|
850
|
-
!
|
|
872
|
+
!n && r && /* @__PURE__ */ t("p", { className: "text-xs text-on-surface-variant", children: r })
|
|
851
873
|
] });
|
|
852
874
|
}
|
|
853
875
|
);
|
|
854
|
-
|
|
855
|
-
const
|
|
876
|
+
Ue.displayName = "Input";
|
|
877
|
+
const Ge = {
|
|
856
878
|
sm: "max-w-sm",
|
|
857
879
|
md: "max-w-md",
|
|
858
880
|
lg: "max-w-lg",
|
|
859
881
|
xl: "max-w-2xl",
|
|
860
882
|
full: "max-w-[calc(100vw-2rem)]"
|
|
861
883
|
};
|
|
862
|
-
function
|
|
863
|
-
return
|
|
884
|
+
function Et({ open: e, onClose: r, size: n = "md", children: o }) {
|
|
885
|
+
return j(() => {
|
|
864
886
|
if (!e) return;
|
|
865
|
-
const
|
|
866
|
-
s.key === "Escape" &&
|
|
887
|
+
const a = (s) => {
|
|
888
|
+
s.key === "Escape" && r();
|
|
867
889
|
};
|
|
868
|
-
return document.addEventListener("keydown",
|
|
869
|
-
}, [e,
|
|
890
|
+
return document.addEventListener("keydown", a), () => document.removeEventListener("keydown", a);
|
|
891
|
+
}, [e, r]), e ? /* @__PURE__ */ i(
|
|
870
892
|
"div",
|
|
871
893
|
{
|
|
872
894
|
className: "fixed inset-0 z-50 flex items-center justify-center p-4",
|
|
@@ -876,8 +898,8 @@ function ut({ open: e, onClose: n, size: r = "md", children: a }) {
|
|
|
876
898
|
/* @__PURE__ */ t(
|
|
877
899
|
"div",
|
|
878
900
|
{
|
|
879
|
-
className: "absolute inset-0 bg-black/50 backdrop-blur-sm",
|
|
880
|
-
onClick:
|
|
901
|
+
className: "absolute inset-0 bg-black/50 dark:bg-scrim/60 backdrop-blur-sm",
|
|
902
|
+
onClick: r,
|
|
881
903
|
"aria-hidden": "true"
|
|
882
904
|
}
|
|
883
905
|
),
|
|
@@ -885,31 +907,31 @@ function ut({ open: e, onClose: n, size: r = "md", children: a }) {
|
|
|
885
907
|
"div",
|
|
886
908
|
{
|
|
887
909
|
className: [
|
|
888
|
-
"relative w-full bg-
|
|
889
|
-
|
|
910
|
+
"relative w-full bg-surface-container-lowest rounded-2xl shadow-theme-lg z-10 flex flex-col max-h-[90vh]",
|
|
911
|
+
Ge[n]
|
|
890
912
|
].filter(Boolean).join(" "),
|
|
891
|
-
children:
|
|
913
|
+
children: o
|
|
892
914
|
}
|
|
893
915
|
)
|
|
894
916
|
]
|
|
895
917
|
}
|
|
896
918
|
) : null;
|
|
897
919
|
}
|
|
898
|
-
function
|
|
920
|
+
function Wt({ title: e, subtitle: r, onClose: n, className: o = "", ...a }) {
|
|
899
921
|
return /* @__PURE__ */ i(
|
|
900
922
|
"div",
|
|
901
923
|
{
|
|
902
|
-
className: ["flex items-start justify-between gap-4 p-6 border-b border-surface-container-high",
|
|
903
|
-
...
|
|
924
|
+
className: ["flex items-start justify-between gap-4 p-6 border-b border-surface-container-high", o].filter(Boolean).join(" "),
|
|
925
|
+
...a,
|
|
904
926
|
children: [
|
|
905
927
|
/* @__PURE__ */ i("div", { children: [
|
|
906
928
|
/* @__PURE__ */ t("h2", { className: "text-lg font-semibold text-on-surface", children: e }),
|
|
907
|
-
|
|
929
|
+
r && /* @__PURE__ */ t("p", { className: "text-sm text-on-surface-variant mt-0.5", children: r })
|
|
908
930
|
] }),
|
|
909
|
-
|
|
931
|
+
n && /* @__PURE__ */ t(
|
|
910
932
|
"button",
|
|
911
933
|
{
|
|
912
|
-
onClick:
|
|
934
|
+
onClick: n,
|
|
913
935
|
className: "p-1 text-on-surface-variant hover:text-on-surface hover:bg-surface-container-low rounded-lg transition-all -mt-1 -mr-1",
|
|
914
936
|
"aria-label": "Fechar modal",
|
|
915
937
|
children: /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[20px]", children: "close" })
|
|
@@ -919,65 +941,65 @@ function ft({ title: e, subtitle: n, onClose: r, className: a = "", ...o }) {
|
|
|
919
941
|
}
|
|
920
942
|
);
|
|
921
943
|
}
|
|
922
|
-
function
|
|
944
|
+
function St({ children: e, className: r = "", ...n }) {
|
|
923
945
|
return /* @__PURE__ */ t(
|
|
924
946
|
"div",
|
|
925
947
|
{
|
|
926
|
-
className: ["p-6 overflow-y-auto flex-1",
|
|
927
|
-
...
|
|
948
|
+
className: ["p-6 overflow-y-auto flex-1", r].filter(Boolean).join(" "),
|
|
949
|
+
...n,
|
|
928
950
|
children: e
|
|
929
951
|
}
|
|
930
952
|
);
|
|
931
953
|
}
|
|
932
|
-
function
|
|
954
|
+
function Rt({ children: e, className: r = "", ...n }) {
|
|
933
955
|
return /* @__PURE__ */ t(
|
|
934
956
|
"div",
|
|
935
957
|
{
|
|
936
958
|
className: [
|
|
937
959
|
"flex items-center justify-end gap-3 p-6 border-t border-surface-container-high",
|
|
938
|
-
|
|
960
|
+
r
|
|
939
961
|
].filter(Boolean).join(" "),
|
|
940
|
-
...
|
|
962
|
+
...n,
|
|
941
963
|
children: e
|
|
942
964
|
}
|
|
943
965
|
);
|
|
944
966
|
}
|
|
945
|
-
function
|
|
946
|
-
return
|
|
967
|
+
function qe(e, r) {
|
|
968
|
+
return r <= 7 ? Array.from({ length: r }, (n, o) => o + 1) : e <= 4 ? [1, 2, 3, 4, 5, "...", r] : e >= r - 3 ? [1, "...", r - 4, r - 3, r - 2, r - 1, r] : [1, "...", e - 1, e, e + 1, "...", r];
|
|
947
969
|
}
|
|
948
|
-
function
|
|
970
|
+
function Ht({
|
|
949
971
|
currentPage: e,
|
|
950
|
-
totalPages:
|
|
951
|
-
totalItems:
|
|
952
|
-
itemsPerPage:
|
|
953
|
-
onPageChange:
|
|
972
|
+
totalPages: r,
|
|
973
|
+
totalItems: n,
|
|
974
|
+
itemsPerPage: o = 10,
|
|
975
|
+
onPageChange: a,
|
|
954
976
|
variant: s = "full",
|
|
955
977
|
className: l = "",
|
|
956
978
|
...c
|
|
957
979
|
}) {
|
|
958
|
-
const d =
|
|
980
|
+
const d = qe(e, r), h = (e - 1) * o + 1, f = Math.min(e * o, n ?? e * o), p = "inline-flex items-center justify-center text-sm font-medium rounded transition-all duration-150 focus:outline-none focus:ring-2 focus:ring-zeo-orange/30 disabled:opacity-40 disabled:cursor-not-allowed select-none", u = `${p} w-9 h-9`, m = "bg-zeo-orange text-white", x = "text-on-surface-variant hover:bg-surface-container-low hover:text-on-surface", v = `${p} px-3 h-9 gap-1.5 border border-surface-container-high text-on-surface-variant hover:bg-surface-container-low hover:text-on-surface`;
|
|
959
981
|
return /* @__PURE__ */ i(
|
|
960
982
|
"div",
|
|
961
983
|
{
|
|
962
984
|
className: ["flex items-center justify-between gap-4 flex-wrap", l].filter(Boolean).join(" "),
|
|
963
985
|
...c,
|
|
964
986
|
children: [
|
|
965
|
-
s === "full" &&
|
|
987
|
+
s === "full" && n !== void 0 && /* @__PURE__ */ i("p", { className: "text-sm text-on-surface-variant", children: [
|
|
966
988
|
"Mostrando ",
|
|
967
989
|
/* @__PURE__ */ i("strong", { children: [
|
|
968
|
-
|
|
990
|
+
h,
|
|
969
991
|
"–",
|
|
970
|
-
|
|
992
|
+
f
|
|
971
993
|
] }),
|
|
972
994
|
" de ",
|
|
973
|
-
/* @__PURE__ */ t("strong", { children:
|
|
995
|
+
/* @__PURE__ */ t("strong", { children: n }),
|
|
974
996
|
" itens"
|
|
975
997
|
] }),
|
|
976
998
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-1 ml-auto", children: [
|
|
977
999
|
/* @__PURE__ */ i(
|
|
978
1000
|
"button",
|
|
979
1001
|
{
|
|
980
|
-
onClick: () =>
|
|
1002
|
+
onClick: () => a(e - 1),
|
|
981
1003
|
disabled: e === 1,
|
|
982
1004
|
"aria-label": "Página anterior",
|
|
983
1005
|
className: s === "icon" ? u + " " + x : v,
|
|
@@ -991,9 +1013,9 @@ function ht({
|
|
|
991
1013
|
(b, w) => b === "..." ? /* @__PURE__ */ t("span", { className: "w-9 text-center text-sm text-on-surface-variant select-none", children: "…" }, `ellipsis-${w}`) : /* @__PURE__ */ t(
|
|
992
1014
|
"button",
|
|
993
1015
|
{
|
|
994
|
-
onClick: () =>
|
|
1016
|
+
onClick: () => a(b),
|
|
995
1017
|
"aria-current": e === b ? "page" : void 0,
|
|
996
|
-
className: [u, e === b ?
|
|
1018
|
+
className: [u, e === b ? m : x].join(" "),
|
|
997
1019
|
children: b
|
|
998
1020
|
},
|
|
999
1021
|
b
|
|
@@ -1002,8 +1024,8 @@ function ht({
|
|
|
1002
1024
|
/* @__PURE__ */ i(
|
|
1003
1025
|
"button",
|
|
1004
1026
|
{
|
|
1005
|
-
onClick: () =>
|
|
1006
|
-
disabled: e ===
|
|
1027
|
+
onClick: () => a(e + 1),
|
|
1028
|
+
disabled: e === r,
|
|
1007
1029
|
"aria-label": "Próxima página",
|
|
1008
1030
|
className: s === "icon" ? u + " " + x : v,
|
|
1009
1031
|
children: [
|
|
@@ -1017,33 +1039,33 @@ function ht({
|
|
|
1017
1039
|
}
|
|
1018
1040
|
);
|
|
1019
1041
|
}
|
|
1020
|
-
const
|
|
1042
|
+
const Pe = {
|
|
1021
1043
|
xs: "h-1",
|
|
1022
1044
|
sm: "h-1.5",
|
|
1023
1045
|
md: "h-2",
|
|
1024
1046
|
lg: "h-3"
|
|
1025
|
-
},
|
|
1047
|
+
}, Ze = {
|
|
1026
1048
|
primary: "bg-zeo-orange",
|
|
1027
1049
|
success: "bg-green-500",
|
|
1028
1050
|
warning: "bg-amber-400",
|
|
1029
1051
|
danger: "bg-red-500"
|
|
1030
1052
|
};
|
|
1031
|
-
function
|
|
1053
|
+
function Vt({
|
|
1032
1054
|
value: e,
|
|
1033
|
-
max:
|
|
1034
|
-
size:
|
|
1035
|
-
variant:
|
|
1036
|
-
label:
|
|
1055
|
+
max: r = 100,
|
|
1056
|
+
size: n = "md",
|
|
1057
|
+
variant: o = "primary",
|
|
1058
|
+
label: a = "none",
|
|
1037
1059
|
showPercent: s = !0,
|
|
1038
1060
|
title: l,
|
|
1039
1061
|
className: c = "",
|
|
1040
1062
|
...d
|
|
1041
1063
|
}) {
|
|
1042
|
-
const
|
|
1064
|
+
const h = Math.min(100, Math.max(0, e / r * 100)), f = `${Math.round(h)}%`;
|
|
1043
1065
|
return /* @__PURE__ */ i("div", { className: ["flex flex-col gap-1.5", c].filter(Boolean).join(" "), ...d, children: [
|
|
1044
|
-
(l ||
|
|
1066
|
+
(l || a === "outside" && s) && /* @__PURE__ */ i("div", { className: "flex items-center justify-between gap-2", children: [
|
|
1045
1067
|
l && /* @__PURE__ */ t("span", { className: "text-sm font-medium text-on-surface", children: l }),
|
|
1046
|
-
|
|
1068
|
+
a === "outside" && s && /* @__PURE__ */ t("span", { className: "text-sm font-semibold text-on-surface", children: f })
|
|
1047
1069
|
] }),
|
|
1048
1070
|
/* @__PURE__ */ t(
|
|
1049
1071
|
"div",
|
|
@@ -1051,37 +1073,37 @@ function xt({
|
|
|
1051
1073
|
role: "progressbar",
|
|
1052
1074
|
"aria-valuenow": e,
|
|
1053
1075
|
"aria-valuemin": 0,
|
|
1054
|
-
"aria-valuemax":
|
|
1055
|
-
className: ["relative w-full bg-surface-container-high rounded-full overflow-hidden",
|
|
1076
|
+
"aria-valuemax": r,
|
|
1077
|
+
className: ["relative w-full bg-surface-container-high rounded-full overflow-hidden", Pe[n]].join(" "),
|
|
1056
1078
|
children: /* @__PURE__ */ t(
|
|
1057
1079
|
"div",
|
|
1058
1080
|
{
|
|
1059
1081
|
className: [
|
|
1060
1082
|
"h-full rounded-full transition-all duration-500 flex items-center justify-end pr-1",
|
|
1061
|
-
|
|
1083
|
+
Ze[o]
|
|
1062
1084
|
].join(" "),
|
|
1063
|
-
style: { width: `${
|
|
1064
|
-
children:
|
|
1085
|
+
style: { width: `${h}%` },
|
|
1086
|
+
children: a === "inside" && s && h >= 20 && /* @__PURE__ */ t("span", { className: "text-[10px] font-bold text-white leading-none", children: f })
|
|
1065
1087
|
}
|
|
1066
1088
|
)
|
|
1067
1089
|
}
|
|
1068
1090
|
)
|
|
1069
1091
|
] });
|
|
1070
1092
|
}
|
|
1071
|
-
const
|
|
1072
|
-
function
|
|
1093
|
+
const re = (e, r) => typeof e == "function" ? e(r) : e;
|
|
1094
|
+
function Dt({
|
|
1073
1095
|
sidebar: e,
|
|
1074
|
-
navbar:
|
|
1075
|
-
children:
|
|
1076
|
-
defaultExpanded:
|
|
1077
|
-
isExpanded:
|
|
1096
|
+
navbar: r,
|
|
1097
|
+
children: n,
|
|
1098
|
+
defaultExpanded: o = !1,
|
|
1099
|
+
isExpanded: a,
|
|
1078
1100
|
onToggle: s
|
|
1079
1101
|
}) {
|
|
1080
|
-
const [l, c] = N(
|
|
1081
|
-
|
|
1082
|
-
}, [
|
|
1102
|
+
const [l, c] = N(o), d = a ?? l, h = C(() => {
|
|
1103
|
+
a === void 0 && c((p) => !p), s == null || s();
|
|
1104
|
+
}, [a, s]), f = { isExpanded: d, toggle: h };
|
|
1083
1105
|
return /* @__PURE__ */ i("div", { className: "flex h-screen overflow-hidden", children: [
|
|
1084
|
-
|
|
1106
|
+
re(e, f),
|
|
1085
1107
|
/* @__PURE__ */ i(
|
|
1086
1108
|
"div",
|
|
1087
1109
|
{
|
|
@@ -1090,21 +1112,21 @@ function bt({
|
|
|
1090
1112
|
d ? "ml-sidebar-expanded" : "ml-sidebar-collapsed"
|
|
1091
1113
|
].join(" "),
|
|
1092
1114
|
children: [
|
|
1093
|
-
|
|
1094
|
-
/* @__PURE__ */ t("main", { className: "flex-1 overflow-y-auto bg-surface-container", children:
|
|
1115
|
+
re(r, f),
|
|
1116
|
+
/* @__PURE__ */ t("main", { className: "flex-1 overflow-y-auto bg-surface-container dark:bg-canvas", children: n })
|
|
1095
1117
|
]
|
|
1096
1118
|
}
|
|
1097
1119
|
)
|
|
1098
1120
|
] });
|
|
1099
1121
|
}
|
|
1100
|
-
const
|
|
1101
|
-
function
|
|
1102
|
-
const
|
|
1122
|
+
const Qe = ({ href: e, className: r, children: n }) => /* @__PURE__ */ t("a", { href: e, className: r, children: n }), oe = "text-[10px] uppercase tracking-widest text-white/30 font-bold";
|
|
1123
|
+
function ae({ item: e, isActive: r, isExpanded: n, renderLink: o = Qe }) {
|
|
1124
|
+
const a = e.disabled || !e.href, s = !n || a && e.disabledReason, l = /* @__PURE__ */ i(
|
|
1103
1125
|
"div",
|
|
1104
1126
|
{
|
|
1105
1127
|
className: [
|
|
1106
1128
|
"group relative flex items-center gap-3 px-4 py-3 rounded-lg transition-colors duration-150",
|
|
1107
|
-
|
|
1129
|
+
r ? "bg-primary-container/10 text-primary-container border-r-2 border-primary-container" : a ? "text-white/30 opacity-50 cursor-default" : "text-white/55 hover:bg-sidebar-hover hover:text-white cursor-pointer"
|
|
1108
1130
|
].join(" "),
|
|
1109
1131
|
children: [
|
|
1110
1132
|
e.icon,
|
|
@@ -1113,7 +1135,7 @@ function ne({ item: e, isActive: n, isExpanded: r, renderLink: a = qe }) {
|
|
|
1113
1135
|
{
|
|
1114
1136
|
className: [
|
|
1115
1137
|
"text-sm font-medium whitespace-nowrap overflow-hidden transition-opacity duration-shell",
|
|
1116
|
-
|
|
1138
|
+
n ? "opacity-100" : "opacity-0 w-0"
|
|
1117
1139
|
].join(" "),
|
|
1118
1140
|
children: e.label
|
|
1119
1141
|
}
|
|
@@ -1123,56 +1145,56 @@ function ne({ item: e, isActive: n, isExpanded: r, renderLink: a = qe }) {
|
|
|
1123
1145
|
{
|
|
1124
1146
|
role: "tooltip",
|
|
1125
1147
|
className: [
|
|
1126
|
-
"absolute left-full ml-3 px-3 py-2 bg-
|
|
1148
|
+
"absolute left-full ml-3 px-3 py-2 bg-surface-container-lowest text-gray-700 dark:text-content-secondary text-sm font-medium",
|
|
1127
1149
|
"rounded-lg shadow-theme-lg whitespace-nowrap z-[200] pointer-events-none",
|
|
1128
1150
|
"invisible opacity-0 transition-all duration-150",
|
|
1129
1151
|
s && "group-hover:visible group-hover:opacity-100"
|
|
1130
1152
|
].filter(Boolean).join(" "),
|
|
1131
1153
|
children: [
|
|
1132
|
-
|
|
1133
|
-
/* @__PURE__ */ t("div", { className: "absolute top-1/2 -left-1 -translate-y-1/2 w-2 h-2 bg-
|
|
1154
|
+
a && e.disabledReason ? e.disabledReason : e.label,
|
|
1155
|
+
/* @__PURE__ */ t("div", { className: "absolute top-1/2 -left-1 -translate-y-1/2 w-2 h-2 bg-surface-container-lowest rotate-45" })
|
|
1134
1156
|
]
|
|
1135
1157
|
}
|
|
1136
1158
|
)
|
|
1137
1159
|
]
|
|
1138
1160
|
}
|
|
1139
1161
|
);
|
|
1140
|
-
return
|
|
1162
|
+
return a ? /* @__PURE__ */ t("div", { children: l }) : o({ item: e, href: e.href, className: "block no-underline", children: l });
|
|
1141
1163
|
}
|
|
1142
|
-
function
|
|
1143
|
-
return /* @__PURE__ */ i(
|
|
1164
|
+
function Ye({ section: e, index: r = 0, activeId: n, isExpanded: o, renderLink: a }) {
|
|
1165
|
+
return /* @__PURE__ */ i(ne, { children: [
|
|
1144
1166
|
e.label && /* @__PURE__ */ t(
|
|
1145
1167
|
"div",
|
|
1146
1168
|
{
|
|
1147
1169
|
className: [
|
|
1148
1170
|
"overflow-hidden transition-all duration-shell px-3",
|
|
1149
|
-
|
|
1150
|
-
|
|
1171
|
+
o ? "h-6 opacity-100 mb-1" : "h-0 opacity-0",
|
|
1172
|
+
r > 0 ? "mt-4" : ""
|
|
1151
1173
|
].join(" "),
|
|
1152
|
-
children: /* @__PURE__ */ t("span", { className:
|
|
1174
|
+
children: /* @__PURE__ */ t("span", { className: oe, children: e.label })
|
|
1153
1175
|
}
|
|
1154
1176
|
),
|
|
1155
1177
|
e.items.map((s) => /* @__PURE__ */ t(
|
|
1156
|
-
|
|
1178
|
+
ae,
|
|
1157
1179
|
{
|
|
1158
1180
|
item: s,
|
|
1159
|
-
isActive: s.id ===
|
|
1160
|
-
isExpanded:
|
|
1161
|
-
renderLink:
|
|
1181
|
+
isActive: s.id === n,
|
|
1182
|
+
isExpanded: o,
|
|
1183
|
+
renderLink: a
|
|
1162
1184
|
},
|
|
1163
1185
|
s.id
|
|
1164
1186
|
))
|
|
1165
1187
|
] });
|
|
1166
1188
|
}
|
|
1167
|
-
function
|
|
1189
|
+
function Ot({ sections: e, activeId: r, isExpanded: n, logo: o, renderLink: a }) {
|
|
1168
1190
|
const s = e.filter((d) => d.placement !== "bottom"), l = e.filter((d) => d.placement === "bottom"), c = /* @__PURE__ */ t(
|
|
1169
1191
|
"img",
|
|
1170
1192
|
{
|
|
1171
|
-
src:
|
|
1172
|
-
alt:
|
|
1193
|
+
src: o.src,
|
|
1194
|
+
alt: o.alt ?? "",
|
|
1173
1195
|
className: [
|
|
1174
1196
|
"flex-shrink-0",
|
|
1175
|
-
|
|
1197
|
+
n ? "h-8 w-auto object-contain" : "w-10 h-10 object-cover object-left"
|
|
1176
1198
|
].join(" ")
|
|
1177
1199
|
}
|
|
1178
1200
|
);
|
|
@@ -1183,7 +1205,7 @@ function gt({ sections: e, activeId: n, isExpanded: r, logo: a, renderLink: o })
|
|
|
1183
1205
|
"fixed left-0 top-0 h-screen bg-sidebar flex flex-col z-[100]",
|
|
1184
1206
|
"transition-[width] duration-shell ease-shell",
|
|
1185
1207
|
"shadow-[40px_0_40px_0_rgba(0,0,0,0.04)]",
|
|
1186
|
-
|
|
1208
|
+
n ? "w-sidebar-expanded" : "w-sidebar-collapsed"
|
|
1187
1209
|
].join(" "),
|
|
1188
1210
|
children: [
|
|
1189
1211
|
/* @__PURE__ */ t(
|
|
@@ -1191,19 +1213,19 @@ function gt({ sections: e, activeId: n, isExpanded: r, logo: a, renderLink: o })
|
|
|
1191
1213
|
{
|
|
1192
1214
|
className: [
|
|
1193
1215
|
"h-[88px] flex items-center flex-shrink-0",
|
|
1194
|
-
|
|
1216
|
+
n ? "px-6 justify-start" : "justify-center"
|
|
1195
1217
|
].join(" "),
|
|
1196
|
-
children:
|
|
1218
|
+
children: o.href ? /* @__PURE__ */ t("a", { href: o.href, "aria-label": o.alt, className: "flex-shrink-0", children: c }) : c
|
|
1197
1219
|
}
|
|
1198
1220
|
),
|
|
1199
|
-
/* @__PURE__ */ t("nav", { className: "flex-1 flex flex-col py-2 px-3 gap-1", children: s.map((d,
|
|
1200
|
-
|
|
1221
|
+
/* @__PURE__ */ t("nav", { className: "flex-1 flex flex-col py-2 px-3 gap-1", children: s.map((d, h) => /* @__PURE__ */ t(
|
|
1222
|
+
Ye,
|
|
1201
1223
|
{
|
|
1202
1224
|
section: d,
|
|
1203
|
-
index:
|
|
1204
|
-
activeId:
|
|
1205
|
-
isExpanded:
|
|
1206
|
-
renderLink:
|
|
1225
|
+
index: h,
|
|
1226
|
+
activeId: r,
|
|
1227
|
+
isExpanded: n,
|
|
1228
|
+
renderLink: a
|
|
1207
1229
|
},
|
|
1208
1230
|
d.id
|
|
1209
1231
|
)) }),
|
|
@@ -1213,36 +1235,36 @@ function gt({ sections: e, activeId: n, isExpanded: r, logo: a, renderLink: o })
|
|
|
1213
1235
|
{
|
|
1214
1236
|
className: [
|
|
1215
1237
|
"px-6 mb-2 overflow-hidden transition-all duration-shell",
|
|
1216
|
-
|
|
1238
|
+
n ? "h-7 opacity-100" : "h-0 opacity-0"
|
|
1217
1239
|
].join(" "),
|
|
1218
|
-
children: /* @__PURE__ */ t("span", { className:
|
|
1240
|
+
children: /* @__PURE__ */ t("span", { className: oe, children: d.label })
|
|
1219
1241
|
}
|
|
1220
1242
|
),
|
|
1221
1243
|
/* @__PURE__ */ t("div", { className: "border-t border-white/[0.06] mb-2" }),
|
|
1222
|
-
/* @__PURE__ */ t("div", { className: "px-3", children: d.items.map((
|
|
1223
|
-
|
|
1244
|
+
/* @__PURE__ */ t("div", { className: "px-3", children: d.items.map((h) => /* @__PURE__ */ t(
|
|
1245
|
+
ae,
|
|
1224
1246
|
{
|
|
1225
|
-
item:
|
|
1226
|
-
isActive:
|
|
1227
|
-
isExpanded:
|
|
1228
|
-
renderLink:
|
|
1247
|
+
item: h,
|
|
1248
|
+
isActive: h.id === r,
|
|
1249
|
+
isExpanded: n,
|
|
1250
|
+
renderLink: a
|
|
1229
1251
|
},
|
|
1230
|
-
|
|
1252
|
+
h.id
|
|
1231
1253
|
)) })
|
|
1232
1254
|
] }, d.id))
|
|
1233
1255
|
]
|
|
1234
1256
|
}
|
|
1235
1257
|
);
|
|
1236
1258
|
}
|
|
1237
|
-
function
|
|
1259
|
+
function Ft({
|
|
1238
1260
|
onToggleMenu: e,
|
|
1239
|
-
start:
|
|
1240
|
-
search:
|
|
1241
|
-
actions:
|
|
1242
|
-
userMenu:
|
|
1261
|
+
start: r,
|
|
1262
|
+
search: n,
|
|
1263
|
+
actions: o,
|
|
1264
|
+
userMenu: a,
|
|
1243
1265
|
toggleMenuLabel: s = "Alternar menu"
|
|
1244
1266
|
}) {
|
|
1245
|
-
return /* @__PURE__ */ i("header", { className: "h-navbar bg-surface-container-lowest border-b border-surface-container-highest flex items-center justify-between px-6 sticky top-0 z-50 flex-shrink-0", children: [
|
|
1267
|
+
return /* @__PURE__ */ i("header", { className: "h-navbar bg-surface-container-lowest dark:bg-page border-b border-surface-container-highest dark:border-line-section flex items-center justify-between px-6 sticky top-0 z-50 flex-shrink-0", children: [
|
|
1246
1268
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-4 flex-1 min-w-0", children: [
|
|
1247
1269
|
/* @__PURE__ */ t(
|
|
1248
1270
|
"button",
|
|
@@ -1254,35 +1276,35 @@ function vt({
|
|
|
1254
1276
|
children: /* @__PURE__ */ t(k, { name: "menu", size: 20 })
|
|
1255
1277
|
}
|
|
1256
1278
|
),
|
|
1257
|
-
|
|
1258
|
-
|
|
1279
|
+
r,
|
|
1280
|
+
n
|
|
1259
1281
|
] }),
|
|
1260
|
-
(
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1282
|
+
(o || a) && /* @__PURE__ */ i("div", { className: "flex items-center gap-1 flex-shrink-0 ml-4", children: [
|
|
1283
|
+
o,
|
|
1284
|
+
o && a && /* @__PURE__ */ t("div", { className: "w-px h-6 bg-outline-variant opacity-30 mx-2 flex-shrink-0" }),
|
|
1285
|
+
a
|
|
1264
1286
|
] })
|
|
1265
1287
|
] });
|
|
1266
1288
|
}
|
|
1267
|
-
function
|
|
1289
|
+
function Kt({ module: e, project: r }) {
|
|
1268
1290
|
return /* @__PURE__ */ i("div", { className: "flex items-baseline gap-2 min-w-0", children: [
|
|
1269
1291
|
/* @__PURE__ */ t("span", { className: "text-title-md font-bold text-on-surface whitespace-nowrap", children: e }),
|
|
1270
|
-
|
|
1292
|
+
r && /* @__PURE__ */ i(ne, { children: [
|
|
1271
1293
|
/* @__PURE__ */ t("span", { className: "text-on-surface-variant", "aria-hidden": "true", children: "/" }),
|
|
1272
|
-
/* @__PURE__ */ t("span", { className: "text-body-md text-on-surface-variant truncate", children:
|
|
1294
|
+
/* @__PURE__ */ t("span", { className: "text-body-md text-on-surface-variant truncate", children: r })
|
|
1273
1295
|
] })
|
|
1274
1296
|
] });
|
|
1275
1297
|
}
|
|
1276
|
-
function
|
|
1277
|
-
const s =
|
|
1278
|
-
return
|
|
1279
|
-
if (!
|
|
1298
|
+
function Ut({ value: e, onChange: r, placeholder: n, shortcutHint: o, focusShortcut: a = !1 }) {
|
|
1299
|
+
const s = z(null);
|
|
1300
|
+
return j(() => {
|
|
1301
|
+
if (!a) return;
|
|
1280
1302
|
const l = (c) => {
|
|
1281
1303
|
var d;
|
|
1282
1304
|
(c.metaKey || c.ctrlKey) && c.key === "k" && (c.preventDefault(), (d = s.current) == null || d.focus());
|
|
1283
1305
|
};
|
|
1284
1306
|
return document.addEventListener("keydown", l), () => document.removeEventListener("keydown", l);
|
|
1285
|
-
}, [
|
|
1307
|
+
}, [a]), /* @__PURE__ */ i("div", { className: "relative w-full max-w-md", children: [
|
|
1286
1308
|
/* @__PURE__ */ t(
|
|
1287
1309
|
k,
|
|
1288
1310
|
{
|
|
@@ -1296,12 +1318,12 @@ function yt({ value: e, onChange: n, placeholder: r, shortcutHint: a, focusShort
|
|
|
1296
1318
|
{
|
|
1297
1319
|
ref: s,
|
|
1298
1320
|
value: e,
|
|
1299
|
-
onChange: (l) =>
|
|
1300
|
-
placeholder:
|
|
1301
|
-
"aria-label":
|
|
1321
|
+
onChange: (l) => r(l.target.value),
|
|
1322
|
+
placeholder: n,
|
|
1323
|
+
"aria-label": n,
|
|
1302
1324
|
className: [
|
|
1303
1325
|
"w-full h-9 pl-10 rounded-lg",
|
|
1304
|
-
|
|
1326
|
+
o ? "pr-[90px]" : "pr-3",
|
|
1305
1327
|
"border border-transparent bg-surface-container",
|
|
1306
1328
|
"text-sm text-on-surface font-sans placeholder:text-on-surface-variant",
|
|
1307
1329
|
"outline-none transition-all",
|
|
@@ -1309,68 +1331,118 @@ function yt({ value: e, onChange: n, placeholder: r, shortcutHint: a, focusShort
|
|
|
1309
1331
|
].join(" ")
|
|
1310
1332
|
}
|
|
1311
1333
|
),
|
|
1312
|
-
|
|
1334
|
+
o && /* @__PURE__ */ t("span", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-xs text-on-surface-variant bg-surface-container-lowest border border-surface-container-highest rounded px-1 py-px whitespace-nowrap pointer-events-none", children: o })
|
|
1313
1335
|
] });
|
|
1314
1336
|
}
|
|
1315
|
-
function
|
|
1337
|
+
function se({ icon: e, label: r, badge: n = !1, className: o = "", type: a = "button", ...s }) {
|
|
1316
1338
|
return /* @__PURE__ */ i(
|
|
1317
1339
|
"button",
|
|
1318
1340
|
{
|
|
1319
1341
|
...s,
|
|
1320
|
-
type:
|
|
1321
|
-
"aria-label":
|
|
1322
|
-
className: `relative flex items-center justify-center p-2 rounded-full text-on-secondary-container hover:bg-surface-container-high transition-colors ${
|
|
1342
|
+
type: a,
|
|
1343
|
+
"aria-label": r,
|
|
1344
|
+
className: `relative flex items-center justify-center p-2 rounded-full text-on-secondary-container hover:bg-surface-container-high transition-colors ${o}`.trim(),
|
|
1323
1345
|
children: [
|
|
1324
1346
|
e,
|
|
1325
|
-
|
|
1347
|
+
n && /* @__PURE__ */ t("span", { className: "absolute top-2 right-2 w-2 h-2 bg-error rounded-full" })
|
|
1326
1348
|
]
|
|
1327
1349
|
}
|
|
1328
1350
|
);
|
|
1329
1351
|
}
|
|
1330
|
-
function
|
|
1352
|
+
function Gt({ hasUnread: e = !1, count: r = 0, onClick: n, label: o = "Notificações" }) {
|
|
1331
1353
|
return /* @__PURE__ */ t(
|
|
1332
|
-
|
|
1354
|
+
se,
|
|
1333
1355
|
{
|
|
1334
1356
|
icon: /* @__PURE__ */ t(k, { name: "notifications", size: 20 }),
|
|
1335
|
-
label:
|
|
1336
|
-
badge: e ||
|
|
1337
|
-
onClick:
|
|
1357
|
+
label: o,
|
|
1358
|
+
badge: e || r > 0,
|
|
1359
|
+
onClick: n
|
|
1338
1360
|
}
|
|
1339
1361
|
);
|
|
1340
1362
|
}
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
}
|
|
1363
|
+
const Je = {
|
|
1364
|
+
read: () => {
|
|
1365
|
+
try {
|
|
1366
|
+
const e = window.localStorage.getItem(F);
|
|
1367
|
+
return e === "dark" || e === "light" ? e : null;
|
|
1368
|
+
} catch {
|
|
1369
|
+
return null;
|
|
1370
|
+
}
|
|
1371
|
+
},
|
|
1372
|
+
write: (e) => {
|
|
1373
|
+
try {
|
|
1374
|
+
window.localStorage.setItem(F, e);
|
|
1375
|
+
} catch {
|
|
1376
|
+
return;
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
}, qt = `try{if(localStorage.getItem('${F}')==='dark')document.documentElement.setAttribute('${K}','dark')}catch(e){}`;
|
|
1380
|
+
function Xe(e, r = document.documentElement) {
|
|
1381
|
+
e === "dark" ? r.setAttribute(K, "dark") : r.removeAttribute(K);
|
|
1382
|
+
}
|
|
1383
|
+
const G = U(null);
|
|
1384
|
+
function Pt({
|
|
1385
|
+
children: e,
|
|
1386
|
+
defaultTheme: r = "light",
|
|
1387
|
+
storage: n = Je
|
|
1388
|
+
}) {
|
|
1389
|
+
const [o, a] = N(() => n.read() ?? r);
|
|
1390
|
+
j(() => {
|
|
1391
|
+
Xe(o);
|
|
1392
|
+
}, [o]);
|
|
1393
|
+
const s = C(
|
|
1394
|
+
(d) => {
|
|
1395
|
+
n.write(d), a(d);
|
|
1396
|
+
},
|
|
1397
|
+
[n]
|
|
1398
|
+
), l = C(() => s(o === "dark" ? "light" : "dark"), [s, o]), c = ge(
|
|
1399
|
+
() => ({ theme: o, isDark: o === "dark", setTheme: s, toggleTheme: l }),
|
|
1400
|
+
[o, s, l]
|
|
1401
|
+
);
|
|
1402
|
+
return /* @__PURE__ */ t(G.Provider, { value: c, children: e });
|
|
1403
|
+
}
|
|
1404
|
+
function et() {
|
|
1405
|
+
return E(G);
|
|
1406
|
+
}
|
|
1407
|
+
function Zt() {
|
|
1408
|
+
const e = E(G);
|
|
1409
|
+
if (!e) throw new Error("useTheme precisa estar dentro de um ThemeProvider");
|
|
1410
|
+
return e;
|
|
1411
|
+
}
|
|
1412
|
+
function ie(e, r, n) {
|
|
1413
|
+
j(() => {
|
|
1414
|
+
if (!r) return;
|
|
1415
|
+
const o = (s) => {
|
|
1416
|
+
s.key === "Escape" && n();
|
|
1417
|
+
}, a = (s) => {
|
|
1347
1418
|
var l;
|
|
1348
|
-
(l = e.current) != null && l.contains(s.target) ||
|
|
1419
|
+
(l = e.current) != null && l.contains(s.target) || n();
|
|
1349
1420
|
};
|
|
1350
|
-
return document.addEventListener("keydown",
|
|
1351
|
-
document.removeEventListener("keydown",
|
|
1421
|
+
return document.addEventListener("keydown", o), document.addEventListener("mousedown", a), () => {
|
|
1422
|
+
document.removeEventListener("keydown", o), document.removeEventListener("mousedown", a);
|
|
1352
1423
|
};
|
|
1353
|
-
}, [e,
|
|
1424
|
+
}, [e, r, n]);
|
|
1354
1425
|
}
|
|
1355
|
-
const
|
|
1426
|
+
const tt = {
|
|
1356
1427
|
myAccount: "Minha Conta",
|
|
1357
1428
|
logout: "Sair",
|
|
1429
|
+
darkMode: "Modo escuro",
|
|
1358
1430
|
user: "Usuário"
|
|
1359
1431
|
};
|
|
1360
|
-
function
|
|
1361
|
-
const c = { ...
|
|
1362
|
-
return
|
|
1432
|
+
function Qt({ name: e, email: r, shortName: n, profilePicUrl: o, onMyAccount: a, onLogout: s, labels: l }) {
|
|
1433
|
+
const c = { ...tt, ...l }, [d, h] = N(!1), f = z(null), p = et(), u = C(() => h(!1), []);
|
|
1434
|
+
return ie(f, d, u), /* @__PURE__ */ i("div", { ref: f, className: "relative flex items-center", children: [
|
|
1363
1435
|
/* @__PURE__ */ i(
|
|
1364
1436
|
"button",
|
|
1365
1437
|
{
|
|
1366
1438
|
type: "button",
|
|
1367
|
-
onClick: () =>
|
|
1439
|
+
onClick: () => h((m) => !m),
|
|
1368
1440
|
"aria-haspopup": "true",
|
|
1369
1441
|
"aria-expanded": d,
|
|
1370
1442
|
className: "flex items-center gap-2 px-2 py-1 rounded-full border-none bg-transparent cursor-pointer text-on-surface-variant hover:bg-surface-container-low transition-colors",
|
|
1371
1443
|
children: [
|
|
1372
|
-
|
|
1373
|
-
/* @__PURE__ */ t(
|
|
1444
|
+
n && /* @__PURE__ */ t("span", { className: "text-sm font-medium text-on-surface", children: n }),
|
|
1445
|
+
/* @__PURE__ */ t(X, { src: o, name: e, size: "sm", "aria-label": e || c.user }),
|
|
1374
1446
|
/* @__PURE__ */ t("span", { className: `flex items-center transition-transform duration-200 ${d ? "rotate-180" : "rotate-0"}`, children: /* @__PURE__ */ t(k, { name: "expand_more", size: 13 }) })
|
|
1375
1447
|
]
|
|
1376
1448
|
}
|
|
@@ -1382,10 +1454,10 @@ function kt({ name: e, email: n, shortName: r, profilePicUrl: a, onMyAccount: o,
|
|
|
1382
1454
|
className: "absolute right-0 top-[calc(100%+8px)] min-w-[220px] bg-surface-container-lowest border border-surface-container-highest rounded-xl shadow-theme-lg z-[200] overflow-hidden",
|
|
1383
1455
|
children: [
|
|
1384
1456
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-3 p-4", children: [
|
|
1385
|
-
/* @__PURE__ */ t(
|
|
1457
|
+
/* @__PURE__ */ t(X, { src: o, name: e, size: "sm" }),
|
|
1386
1458
|
/* @__PURE__ */ i("div", { className: "flex flex-col gap-0.5 min-w-0", children: [
|
|
1387
1459
|
/* @__PURE__ */ t("span", { className: "text-sm font-bold text-on-surface whitespace-nowrap overflow-hidden text-ellipsis", children: e }),
|
|
1388
|
-
/* @__PURE__ */ t("span", { className: "text-xs text-on-surface-variant whitespace-nowrap overflow-hidden text-ellipsis", children:
|
|
1460
|
+
/* @__PURE__ */ t("span", { className: "text-xs text-on-surface-variant whitespace-nowrap overflow-hidden text-ellipsis", children: r })
|
|
1389
1461
|
] })
|
|
1390
1462
|
] }),
|
|
1391
1463
|
/* @__PURE__ */ t("hr", { className: "m-0 border-t border-surface-container-highest" }),
|
|
@@ -1395,7 +1467,7 @@ function kt({ name: e, email: n, shortName: r, profilePicUrl: a, onMyAccount: o,
|
|
|
1395
1467
|
type: "button",
|
|
1396
1468
|
role: "menuitem",
|
|
1397
1469
|
onClick: () => {
|
|
1398
|
-
|
|
1470
|
+
u(), a();
|
|
1399
1471
|
},
|
|
1400
1472
|
className: "w-full flex items-center gap-3 px-4 py-2.5 border-none bg-transparent cursor-pointer text-left text-on-surface hover:bg-surface-container-low transition-colors",
|
|
1401
1473
|
children: [
|
|
@@ -1404,6 +1476,32 @@ function kt({ name: e, email: n, shortName: r, profilePicUrl: a, onMyAccount: o,
|
|
|
1404
1476
|
]
|
|
1405
1477
|
}
|
|
1406
1478
|
),
|
|
1479
|
+
p && /* @__PURE__ */ i(
|
|
1480
|
+
"button",
|
|
1481
|
+
{
|
|
1482
|
+
type: "button",
|
|
1483
|
+
role: "menuitemcheckbox",
|
|
1484
|
+
"aria-checked": p.isDark,
|
|
1485
|
+
onClick: p.toggleTheme,
|
|
1486
|
+
className: "w-full flex items-center gap-3 px-4 py-2.5 border-none bg-transparent cursor-pointer text-left text-on-surface hover:bg-surface-container-low transition-colors",
|
|
1487
|
+
children: [
|
|
1488
|
+
/* @__PURE__ */ t(k, { name: "dark_mode", size: 15 }),
|
|
1489
|
+
/* @__PURE__ */ t("span", { className: "flex-1 text-sm font-medium", children: c.darkMode }),
|
|
1490
|
+
/* @__PURE__ */ t(
|
|
1491
|
+
"span",
|
|
1492
|
+
{
|
|
1493
|
+
className: `relative w-7 h-4 shrink-0 rounded-full transition-colors duration-150 ${p.isDark ? "bg-zeo-orange" : "bg-line-strong"}`,
|
|
1494
|
+
children: /* @__PURE__ */ t(
|
|
1495
|
+
"span",
|
|
1496
|
+
{
|
|
1497
|
+
className: `absolute top-0.5 w-3 h-3 rounded-full bg-white transition-[left] duration-150 ${p.isDark ? "left-3.5" : "left-0.5"}`
|
|
1498
|
+
}
|
|
1499
|
+
)
|
|
1500
|
+
}
|
|
1501
|
+
)
|
|
1502
|
+
]
|
|
1503
|
+
}
|
|
1504
|
+
),
|
|
1407
1505
|
/* @__PURE__ */ t("hr", { className: "m-0 border-t border-surface-container-highest" }),
|
|
1408
1506
|
/* @__PURE__ */ i(
|
|
1409
1507
|
"button",
|
|
@@ -1411,7 +1509,7 @@ function kt({ name: e, email: n, shortName: r, profilePicUrl: a, onMyAccount: o,
|
|
|
1411
1509
|
type: "button",
|
|
1412
1510
|
role: "menuitem",
|
|
1413
1511
|
onClick: () => {
|
|
1414
|
-
|
|
1512
|
+
u(), s();
|
|
1415
1513
|
},
|
|
1416
1514
|
className: "w-full flex items-center gap-3 px-4 py-2.5 border-none bg-transparent cursor-pointer text-left text-error hover:bg-error/5 transition-colors",
|
|
1417
1515
|
children: [
|
|
@@ -1425,151 +1523,152 @@ function kt({ name: e, email: n, shortName: r, profilePicUrl: a, onMyAccount: o,
|
|
|
1425
1523
|
)
|
|
1426
1524
|
] });
|
|
1427
1525
|
}
|
|
1428
|
-
const
|
|
1526
|
+
const rt = {
|
|
1429
1527
|
help: "Ajuda",
|
|
1430
1528
|
documentation: "Documentação",
|
|
1431
1529
|
faq: "F.A.Q.",
|
|
1432
1530
|
changelog: "Changelog",
|
|
1433
1531
|
contactUs: "Contate-nos"
|
|
1434
1532
|
};
|
|
1435
|
-
function
|
|
1436
|
-
const
|
|
1437
|
-
return
|
|
1533
|
+
function Yt({ labels: e, hrefs: r }) {
|
|
1534
|
+
const n = { ...rt, ...e }, o = z(null), [a, s] = N(!1), l = C(() => s(!1), []);
|
|
1535
|
+
return ie(o, a, l), /* @__PURE__ */ i("div", { ref: o, className: "relative", children: [
|
|
1438
1536
|
/* @__PURE__ */ t(
|
|
1439
|
-
|
|
1537
|
+
se,
|
|
1440
1538
|
{
|
|
1441
1539
|
icon: /* @__PURE__ */ t(k, { name: "help", size: 20 }),
|
|
1442
|
-
label:
|
|
1540
|
+
label: n.help,
|
|
1443
1541
|
onClick: () => s((c) => !c),
|
|
1444
1542
|
"aria-haspopup": "true",
|
|
1445
|
-
"aria-expanded":
|
|
1543
|
+
"aria-expanded": a
|
|
1446
1544
|
}
|
|
1447
1545
|
),
|
|
1448
|
-
|
|
1546
|
+
a && /* @__PURE__ */ i(
|
|
1449
1547
|
"div",
|
|
1450
1548
|
{
|
|
1451
1549
|
role: "menu",
|
|
1452
1550
|
className: "absolute right-0 top-[calc(100%+8px)] w-56 bg-surface-container-lowest border border-surface-container-highest rounded-xl shadow-theme-lg py-1 z-[200] overflow-hidden",
|
|
1453
1551
|
children: [
|
|
1454
|
-
/* @__PURE__ */ t(
|
|
1455
|
-
/* @__PURE__ */ t(
|
|
1456
|
-
/* @__PURE__ */ t(
|
|
1552
|
+
/* @__PURE__ */ t(A, { icon: "description", label: n.documentation, href: r == null ? void 0 : r.documentation }),
|
|
1553
|
+
/* @__PURE__ */ t(A, { icon: "help_outline", label: n.faq, href: r == null ? void 0 : r.faq }),
|
|
1554
|
+
/* @__PURE__ */ t(A, { icon: "assignment", label: n.changelog, href: r == null ? void 0 : r.changelog }),
|
|
1457
1555
|
/* @__PURE__ */ t("div", { className: "my-1 border-t border-surface-container-highest" }),
|
|
1458
|
-
/* @__PURE__ */ t(
|
|
1556
|
+
/* @__PURE__ */ t(A, { icon: "mail", label: n.contactUs, href: r == null ? void 0 : r.contactUs })
|
|
1459
1557
|
]
|
|
1460
1558
|
}
|
|
1461
1559
|
)
|
|
1462
1560
|
] });
|
|
1463
1561
|
}
|
|
1464
|
-
function
|
|
1562
|
+
function A({ icon: e, label: r, href: n = "#" }) {
|
|
1465
1563
|
return /* @__PURE__ */ i(
|
|
1466
1564
|
"a",
|
|
1467
1565
|
{
|
|
1468
|
-
href:
|
|
1566
|
+
href: n,
|
|
1469
1567
|
role: "menuitem",
|
|
1470
1568
|
className: "flex items-center gap-3 px-4 py-2.5 text-sm font-medium text-on-surface-variant hover:bg-surface-container hover:text-on-surface transition-colors no-underline",
|
|
1471
1569
|
children: [
|
|
1472
1570
|
/* @__PURE__ */ t(k, { name: e, size: 18, className: "opacity-70" }),
|
|
1473
|
-
|
|
1571
|
+
r
|
|
1474
1572
|
]
|
|
1475
1573
|
}
|
|
1476
1574
|
);
|
|
1477
1575
|
}
|
|
1478
|
-
const
|
|
1576
|
+
const Jt = [
|
|
1479
1577
|
{ id: "tower", status: "active", iconName: "cell_tower", labelKey: "modules.tower.title" },
|
|
1480
1578
|
{ id: "antennas", status: "active", iconName: "settings_input_antenna", labelKey: "modules.antennas.title" },
|
|
1481
1579
|
{ id: "rooftop", status: "active", iconName: "roofing", labelKey: "modules.rooftop.title" },
|
|
1482
|
-
{ id: "radier", status: "active", iconName: "layers", IconComponent:
|
|
1483
|
-
{ id: "caisson_foundation", status: "coming_soon", iconName: "filter_alt", IconComponent:
|
|
1484
|
-
{ id: "pole", status: "coming_soon", iconName: "fence", IconComponent:
|
|
1485
|
-
{ id: "dashboards", status: "coming_soon", iconName: "dashboard", labelKey: "modules.dashboards.title" }
|
|
1580
|
+
{ id: "radier", status: "active", iconName: "layers", IconComponent: Ve, labelKey: "modules.radier.title" },
|
|
1581
|
+
{ id: "caisson_foundation", status: "coming_soon", iconName: "filter_alt", IconComponent: De, labelKey: "modules.caisson_foundation.title" },
|
|
1582
|
+
{ id: "pole", status: "coming_soon", iconName: "fence", IconComponent: Oe, labelKey: "modules.pole.title" },
|
|
1583
|
+
{ id: "dashboards", status: "coming_soon", iconName: "dashboard", labelKey: "modules.dashboards.title" },
|
|
1584
|
+
{ id: "calculadoras", status: "active", iconName: "calculate", labelKey: "modules.calculadoras.title" }
|
|
1486
1585
|
];
|
|
1487
|
-
function
|
|
1488
|
-
return e.filter((
|
|
1586
|
+
function Xt(e, r, n) {
|
|
1587
|
+
return e.filter((o) => r.includes(o.id) || n.includes(o.id)).map((o) => ({ module: o, hasAccess: n.includes(o.id) }));
|
|
1489
1588
|
}
|
|
1490
|
-
const
|
|
1589
|
+
const nt = {
|
|
1491
1590
|
xs: "w-3 h-3 border",
|
|
1492
1591
|
sm: "w-4 h-4 border-2",
|
|
1493
1592
|
md: "w-6 h-6 border-2",
|
|
1494
1593
|
lg: "w-8 h-8 border-[3px]",
|
|
1495
1594
|
xl: "w-12 h-12 border-4"
|
|
1496
|
-
},
|
|
1497
|
-
primary: "border-orange-200 border-t-zeo-orange",
|
|
1595
|
+
}, ot = {
|
|
1596
|
+
primary: "border-orange-200 dark:border-zeo-orange/30 border-t-zeo-orange",
|
|
1498
1597
|
secondary: "border-surface-container-high border-t-on-surface-variant",
|
|
1499
1598
|
white: "border-white/30 border-t-white"
|
|
1500
1599
|
};
|
|
1501
|
-
function
|
|
1600
|
+
function er({
|
|
1502
1601
|
size: e = "md",
|
|
1503
|
-
variant:
|
|
1504
|
-
label:
|
|
1505
|
-
className:
|
|
1506
|
-
...
|
|
1602
|
+
variant: r = "primary",
|
|
1603
|
+
label: n = "Carregando...",
|
|
1604
|
+
className: o = "",
|
|
1605
|
+
...a
|
|
1507
1606
|
}) {
|
|
1508
1607
|
return /* @__PURE__ */ t(
|
|
1509
1608
|
"span",
|
|
1510
1609
|
{
|
|
1511
1610
|
role: "status",
|
|
1512
|
-
"aria-label":
|
|
1611
|
+
"aria-label": n,
|
|
1513
1612
|
className: [
|
|
1514
1613
|
"inline-block rounded-full animate-spin",
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1614
|
+
nt[e],
|
|
1615
|
+
ot[r],
|
|
1616
|
+
o
|
|
1518
1617
|
].filter(Boolean).join(" "),
|
|
1519
|
-
...
|
|
1618
|
+
...a
|
|
1520
1619
|
}
|
|
1521
1620
|
);
|
|
1522
1621
|
}
|
|
1523
|
-
function
|
|
1622
|
+
function tr({ children: e, className: r = "", ...n }) {
|
|
1524
1623
|
return /* @__PURE__ */ t(
|
|
1525
1624
|
"div",
|
|
1526
1625
|
{
|
|
1527
|
-
className: ["overflow-x-auto rounded-xl border border-surface-container-high shadow-sm",
|
|
1528
|
-
...
|
|
1626
|
+
className: ["overflow-x-auto rounded-xl border border-surface-container-high shadow-sm", r].filter(Boolean).join(" "),
|
|
1627
|
+
...n,
|
|
1529
1628
|
children: /* @__PURE__ */ t("table", { className: "w-full text-sm", children: e })
|
|
1530
1629
|
}
|
|
1531
1630
|
);
|
|
1532
1631
|
}
|
|
1533
|
-
function
|
|
1632
|
+
function rr({ children: e, className: r = "", ...n }) {
|
|
1534
1633
|
return /* @__PURE__ */ t(
|
|
1535
1634
|
"thead",
|
|
1536
1635
|
{
|
|
1537
|
-
className: ["bg-surface-container-low border-b border-surface-container-high",
|
|
1538
|
-
...
|
|
1636
|
+
className: ["bg-surface-container-low border-b border-surface-container-high", r].filter(Boolean).join(" "),
|
|
1637
|
+
...n,
|
|
1539
1638
|
children: e
|
|
1540
1639
|
}
|
|
1541
1640
|
);
|
|
1542
1641
|
}
|
|
1543
|
-
function
|
|
1642
|
+
function nr({ children: e, className: r = "", ...n }) {
|
|
1544
1643
|
return /* @__PURE__ */ t(
|
|
1545
1644
|
"tbody",
|
|
1546
1645
|
{
|
|
1547
|
-
className: ["bg-
|
|
1548
|
-
...
|
|
1646
|
+
className: ["bg-surface-container-lowest divide-y divide-surface-container-high", r].filter(Boolean).join(" "),
|
|
1647
|
+
...n,
|
|
1549
1648
|
children: e
|
|
1550
1649
|
}
|
|
1551
1650
|
);
|
|
1552
1651
|
}
|
|
1553
|
-
function
|
|
1652
|
+
function or({ selected: e = !1, children: r, className: n = "", ...o }) {
|
|
1554
1653
|
return /* @__PURE__ */ t(
|
|
1555
1654
|
"tr",
|
|
1556
1655
|
{
|
|
1557
1656
|
className: [
|
|
1558
1657
|
"hover:bg-surface-container-low transition-colors",
|
|
1559
|
-
e ? "bg-orange-50/40" : "",
|
|
1560
|
-
|
|
1658
|
+
e ? "bg-orange-50/40 dark:bg-zeo-orange/[0.12]" : "",
|
|
1659
|
+
n
|
|
1561
1660
|
].filter(Boolean).join(" "),
|
|
1562
|
-
...
|
|
1563
|
-
children:
|
|
1661
|
+
...o,
|
|
1662
|
+
children: r
|
|
1564
1663
|
}
|
|
1565
1664
|
);
|
|
1566
1665
|
}
|
|
1567
|
-
function
|
|
1666
|
+
function ar({
|
|
1568
1667
|
sortable: e = !1,
|
|
1569
|
-
sorted:
|
|
1570
|
-
onSort:
|
|
1571
|
-
children:
|
|
1572
|
-
className:
|
|
1668
|
+
sorted: r = !1,
|
|
1669
|
+
onSort: n,
|
|
1670
|
+
children: o,
|
|
1671
|
+
className: a = "",
|
|
1573
1672
|
...s
|
|
1574
1673
|
}) {
|
|
1575
1674
|
return /* @__PURE__ */ t(
|
|
@@ -1578,112 +1677,112 @@ function It({
|
|
|
1578
1677
|
className: [
|
|
1579
1678
|
"px-4 py-3 text-left text-xs font-semibold text-on-surface-variant uppercase tracking-wide whitespace-nowrap",
|
|
1580
1679
|
e ? "cursor-pointer hover:text-on-surface select-none" : "",
|
|
1581
|
-
|
|
1680
|
+
a
|
|
1582
1681
|
].filter(Boolean).join(" "),
|
|
1583
|
-
onClick: e ?
|
|
1682
|
+
onClick: e ? n : void 0,
|
|
1584
1683
|
...s,
|
|
1585
1684
|
children: /* @__PURE__ */ i("span", { className: "inline-flex items-center gap-1", children: [
|
|
1586
|
-
|
|
1685
|
+
o,
|
|
1587
1686
|
e && /* @__PURE__ */ t(
|
|
1588
1687
|
"span",
|
|
1589
1688
|
{
|
|
1590
|
-
className: `material-symbols-outlined text-[14px] ${
|
|
1591
|
-
children:
|
|
1689
|
+
className: `material-symbols-outlined text-[14px] ${r ? "text-zeo-orange" : "opacity-40"}`,
|
|
1690
|
+
children: r === "asc" ? "arrow_upward" : r === "desc" ? "arrow_downward" : "unfold_more"
|
|
1592
1691
|
}
|
|
1593
1692
|
)
|
|
1594
1693
|
] })
|
|
1595
1694
|
}
|
|
1596
1695
|
);
|
|
1597
1696
|
}
|
|
1598
|
-
function
|
|
1697
|
+
function sr({ muted: e = !1, mono: r = !1, children: n, className: o = "", ...a }) {
|
|
1599
1698
|
return /* @__PURE__ */ t(
|
|
1600
1699
|
"td",
|
|
1601
1700
|
{
|
|
1602
1701
|
className: [
|
|
1603
1702
|
"px-4 py-3",
|
|
1604
1703
|
e ? "text-on-surface-variant" : "text-on-surface",
|
|
1605
|
-
|
|
1606
|
-
|
|
1704
|
+
r ? "font-mono text-xs" : "",
|
|
1705
|
+
o
|
|
1607
1706
|
].filter(Boolean).join(" "),
|
|
1608
|
-
...
|
|
1609
|
-
children:
|
|
1707
|
+
...a,
|
|
1708
|
+
children: n
|
|
1610
1709
|
}
|
|
1611
1710
|
);
|
|
1612
1711
|
}
|
|
1613
|
-
const
|
|
1614
|
-
function
|
|
1615
|
-
const e =
|
|
1712
|
+
const le = U(null);
|
|
1713
|
+
function q() {
|
|
1714
|
+
const e = E(le);
|
|
1616
1715
|
if (!e) throw new Error("Tab must be used inside Tabs");
|
|
1617
1716
|
return e;
|
|
1618
1717
|
}
|
|
1619
|
-
const
|
|
1620
|
-
function
|
|
1621
|
-
return /* @__PURE__ */ t(
|
|
1718
|
+
const ce = U({ stretch: !1 });
|
|
1719
|
+
function ir({ value: e, onChange: r, variant: n = "default", children: o }) {
|
|
1720
|
+
return /* @__PURE__ */ t(le.Provider, { value: { active: e, onChange: r, variant: n }, children: /* @__PURE__ */ t("div", { className: n === "vertical" ? "flex gap-6" : "flex flex-col gap-4", children: o }) });
|
|
1622
1721
|
}
|
|
1623
|
-
function
|
|
1624
|
-
const { variant:
|
|
1625
|
-
default:
|
|
1722
|
+
function lr({ children: e, className: r = "", stretch: n = !1, ...o }) {
|
|
1723
|
+
const { variant: a } = q(), s = {
|
|
1724
|
+
default: n ? "flex gap-1 bg-surface-container-low rounded-lg p-1 w-full" : "flex gap-1 bg-surface-container-low rounded-lg p-1 w-fit",
|
|
1626
1725
|
underline: "flex gap-0 border-b border-surface-container-high w-full",
|
|
1627
1726
|
vertical: "flex flex-col gap-1 bg-surface-container-low rounded-lg p-1 w-48 shrink-0 h-fit"
|
|
1628
|
-
}[
|
|
1629
|
-
return /* @__PURE__ */ t(
|
|
1727
|
+
}[a];
|
|
1728
|
+
return /* @__PURE__ */ t(ce.Provider, { value: { stretch: n }, children: /* @__PURE__ */ t(
|
|
1630
1729
|
"div",
|
|
1631
1730
|
{
|
|
1632
1731
|
role: "tablist",
|
|
1633
|
-
className: [s,
|
|
1634
|
-
...
|
|
1732
|
+
className: [s, r].filter(Boolean).join(" "),
|
|
1733
|
+
...o,
|
|
1635
1734
|
children: e
|
|
1636
1735
|
}
|
|
1637
1736
|
) });
|
|
1638
1737
|
}
|
|
1639
|
-
function
|
|
1640
|
-
const { active: s, onChange: l, variant: c } =
|
|
1641
|
-
default:
|
|
1642
|
-
underline:
|
|
1643
|
-
vertical:
|
|
1738
|
+
function cr({ value: e, label: r, icon: n, badge: o, disabled: a = !1 }) {
|
|
1739
|
+
const { active: s, onChange: l, variant: c } = q(), { stretch: d } = E(ce), h = s === e, f = "inline-flex items-center gap-2 font-medium text-sm transition-all duration-200 select-none focus:outline-none", p = "opacity-40 cursor-not-allowed pointer-events-none", u = d && c !== "vertical" ? "flex-1 justify-center" : "", m = {
|
|
1740
|
+
default: h ? "bg-white dark:bg-chip text-on-surface shadow-sm rounded-md px-4 py-2" : "text-on-surface-variant hover:text-on-surface rounded-md px-4 py-2",
|
|
1741
|
+
underline: h ? "text-zeo-orange border-b-2 border-zeo-orange px-4 py-2.5 -mb-px" : "text-on-surface-variant hover:text-on-surface border-b-2 border-transparent px-4 py-2.5 -mb-px",
|
|
1742
|
+
vertical: h ? "bg-white dark:bg-chip text-on-surface shadow-sm rounded-md px-4 py-2 w-full" : "text-on-surface-variant hover:text-on-surface rounded-md px-4 py-2 w-full"
|
|
1644
1743
|
}[c];
|
|
1645
1744
|
return /* @__PURE__ */ i(
|
|
1646
1745
|
"button",
|
|
1647
1746
|
{
|
|
1648
1747
|
role: "tab",
|
|
1649
|
-
"aria-selected":
|
|
1650
|
-
"aria-disabled":
|
|
1651
|
-
disabled:
|
|
1652
|
-
onClick: () => !
|
|
1653
|
-
className: [
|
|
1748
|
+
"aria-selected": h,
|
|
1749
|
+
"aria-disabled": a,
|
|
1750
|
+
disabled: a,
|
|
1751
|
+
onClick: () => !a && l(e),
|
|
1752
|
+
className: [f, m, u, a ? p : ""].filter(Boolean).join(" "),
|
|
1654
1753
|
children: [
|
|
1655
|
-
|
|
1754
|
+
n && /* @__PURE__ */ t(
|
|
1656
1755
|
"span",
|
|
1657
1756
|
{
|
|
1658
1757
|
className: "material-symbols-outlined text-[18px]",
|
|
1659
|
-
style:
|
|
1660
|
-
children:
|
|
1758
|
+
style: h ? { fontVariationSettings: "'FILL' 1" } : void 0,
|
|
1759
|
+
children: n
|
|
1661
1760
|
}
|
|
1662
1761
|
),
|
|
1663
|
-
|
|
1664
|
-
|
|
1762
|
+
r,
|
|
1763
|
+
o !== void 0 && /* @__PURE__ */ t(
|
|
1665
1764
|
"span",
|
|
1666
1765
|
{
|
|
1667
|
-
className: `text-[11px] font-semibold px-1.5 py-0.5 rounded-full leading-none ${
|
|
1668
|
-
children:
|
|
1766
|
+
className: `text-[11px] font-semibold px-1.5 py-0.5 rounded-full leading-none ${h ? "bg-zeo-orange text-white" : "bg-surface-container-high text-on-surface-variant"}`,
|
|
1767
|
+
children: o
|
|
1669
1768
|
}
|
|
1670
1769
|
)
|
|
1671
1770
|
]
|
|
1672
1771
|
}
|
|
1673
1772
|
);
|
|
1674
1773
|
}
|
|
1675
|
-
function
|
|
1676
|
-
const { active:
|
|
1677
|
-
return
|
|
1774
|
+
function dr({ value: e, children: r, className: n = "", stretch: o = !1 }) {
|
|
1775
|
+
const { active: a } = q();
|
|
1776
|
+
return a !== e ? null : /* @__PURE__ */ t(
|
|
1678
1777
|
"div",
|
|
1679
1778
|
{
|
|
1680
1779
|
role: "tabpanel",
|
|
1681
|
-
className: [
|
|
1682
|
-
children:
|
|
1780
|
+
className: [o ? "flex-1" : "", n].filter(Boolean).join(" "),
|
|
1781
|
+
children: r
|
|
1683
1782
|
}
|
|
1684
1783
|
);
|
|
1685
1784
|
}
|
|
1686
|
-
const
|
|
1785
|
+
const at = {
|
|
1687
1786
|
top: {
|
|
1688
1787
|
wrapper: "bottom-full left-1/2 -translate-x-1/2 mb-2",
|
|
1689
1788
|
arrow: "top-full left-1/2 -translate-x-1/2 border-t-4 border-x-4 border-x-transparent border-b-0"
|
|
@@ -1700,21 +1799,21 @@ const Ye = {
|
|
|
1700
1799
|
wrapper: "left-full top-1/2 -translate-y-1/2 ml-2",
|
|
1701
1800
|
arrow: "right-full top-1/2 -translate-y-1/2 border-r-4 border-y-4 border-y-transparent border-l-0"
|
|
1702
1801
|
}
|
|
1703
|
-
},
|
|
1704
|
-
dark: { tooltip: "bg-
|
|
1705
|
-
light: { tooltip: "bg-
|
|
1802
|
+
}, st = {
|
|
1803
|
+
dark: { tooltip: "bg-tooltip text-white", arrow: "border-t-tooltip border-r-tooltip border-b-tooltip border-l-tooltip" },
|
|
1804
|
+
light: { tooltip: "bg-surface-container-lowest text-on-surface border border-surface-container-high shadow-theme-lg", arrow: "border-t-surface-container-lowest border-r-surface-container-lowest border-b-surface-container-lowest border-l-surface-container-lowest" }
|
|
1706
1805
|
};
|
|
1707
|
-
function
|
|
1806
|
+
function ur({
|
|
1708
1807
|
content: e,
|
|
1709
|
-
position:
|
|
1710
|
-
variant:
|
|
1711
|
-
children:
|
|
1712
|
-
className:
|
|
1808
|
+
position: r = "top",
|
|
1809
|
+
variant: n = "dark",
|
|
1810
|
+
children: o,
|
|
1811
|
+
className: a = "",
|
|
1713
1812
|
...s
|
|
1714
1813
|
}) {
|
|
1715
|
-
const l =
|
|
1716
|
-
return /* @__PURE__ */ i("div", { className: ["relative inline-flex group",
|
|
1717
|
-
|
|
1814
|
+
const l = at[r], c = st[n];
|
|
1815
|
+
return /* @__PURE__ */ i("div", { className: ["relative inline-flex group", a].filter(Boolean).join(" "), ...s, children: [
|
|
1816
|
+
o,
|
|
1718
1817
|
/* @__PURE__ */ i(
|
|
1719
1818
|
"div",
|
|
1720
1819
|
{
|
|
@@ -1735,56 +1834,81 @@ function Rt({
|
|
|
1735
1834
|
] });
|
|
1736
1835
|
}
|
|
1737
1836
|
export {
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1837
|
+
ut as Alert,
|
|
1838
|
+
Ft as AppNavbar,
|
|
1839
|
+
Dt as AppShellLayout,
|
|
1840
|
+
Ot as AppSidebar,
|
|
1841
|
+
X as Avatar,
|
|
1842
|
+
ht as Badge,
|
|
1843
|
+
kt as BarraMacicaIcon,
|
|
1844
|
+
ft as Breadcrumb,
|
|
1845
|
+
ze as Button,
|
|
1846
|
+
pt as ButtonGroup,
|
|
1847
|
+
mt as Card,
|
|
1848
|
+
bt as CardFooter,
|
|
1849
|
+
xt as CardHeader,
|
|
1850
|
+
Se as Checkbox,
|
|
1851
|
+
gt as Dropdown,
|
|
1852
|
+
Ct as DuplaTIcon,
|
|
1853
|
+
Yt as HelpMenu,
|
|
1753
1854
|
k as Icon,
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1855
|
+
Ue as Input,
|
|
1856
|
+
Bt as LinhaL1Icon,
|
|
1857
|
+
jt as LinhaLIcon,
|
|
1858
|
+
Lt as LinhaTIcon,
|
|
1859
|
+
Mt as LinhaTsIcon,
|
|
1860
|
+
Jt as MODULE_CATALOG,
|
|
1861
|
+
Et as Modal,
|
|
1862
|
+
St as ModalBody,
|
|
1863
|
+
Rt as ModalFooter,
|
|
1864
|
+
Wt as ModalHeader,
|
|
1865
|
+
se as NavbarIconButton,
|
|
1866
|
+
Ut as NavbarSearch,
|
|
1867
|
+
Kt as NavbarTitle,
|
|
1868
|
+
Gt as NotificationsBell,
|
|
1869
|
+
Nt as OmegaIcon,
|
|
1870
|
+
Ht as Pagination,
|
|
1871
|
+
yt as PerfilIIcon,
|
|
1872
|
+
vt as PerfilLIcon,
|
|
1873
|
+
wt as PerfilUIcon,
|
|
1874
|
+
Oe as PosteIcon,
|
|
1875
|
+
Vt as ProgressBar,
|
|
1876
|
+
_t as PuncaoBordaIcon,
|
|
1877
|
+
$t as PuncaoCantoIcon,
|
|
1878
|
+
At as PuncaoCircularIcon,
|
|
1879
|
+
zt as PuncaoInternoIcon,
|
|
1880
|
+
Ve as RadierIcon,
|
|
1881
|
+
Re as Radio,
|
|
1882
|
+
Ae as Select,
|
|
1883
|
+
ae as SidebarItem,
|
|
1884
|
+
Ye as SidebarSection,
|
|
1885
|
+
er as Spinner,
|
|
1886
|
+
He as Switch,
|
|
1887
|
+
K as THEME_ATTRIBUTE,
|
|
1888
|
+
qt as THEME_INIT_SCRIPT,
|
|
1889
|
+
F as THEME_STORAGE_KEY,
|
|
1890
|
+
cr as Tab,
|
|
1891
|
+
lr as TabList,
|
|
1892
|
+
dr as TabPanel,
|
|
1893
|
+
tr as Table,
|
|
1894
|
+
nr as TableBody,
|
|
1895
|
+
sr as TableCell,
|
|
1896
|
+
rr as TableHead,
|
|
1897
|
+
ar as TableHeaderCell,
|
|
1898
|
+
or as TableRow,
|
|
1899
|
+
ir as Tabs,
|
|
1900
|
+
Ee as Textarea,
|
|
1901
|
+
Pt as ThemeProvider,
|
|
1902
|
+
ur as Tooltip,
|
|
1903
|
+
It as TuboRedondoIcon,
|
|
1904
|
+
Tt as TuboRetangularIcon,
|
|
1905
|
+
De as TubulaoIcon,
|
|
1906
|
+
Qt as UserMenu,
|
|
1907
|
+
Xe as applyTheme,
|
|
1908
|
+
pr as colorTokens,
|
|
1909
|
+
Je as localStorageThemeStorage,
|
|
1910
|
+
Xt as resolveModuleAccess,
|
|
1911
|
+
mr as shadowTokens,
|
|
1912
|
+
ie as useDismiss,
|
|
1913
|
+
Zt as useTheme
|
|
1790
1914
|
};
|