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