@zeo-app/design-system 0.4.0 → 0.5.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/Shell/UserMenu.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +545 -458
- 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 +65 -65
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 B, useState as k, useRef as M, useCallback as j, useLayoutEffect as xe, useEffect as C, useId as be, createContext as G, useMemo as ge, useContext as E } from "react";
|
|
3
|
+
import { createPortal as we } from "react-dom";
|
|
4
|
+
import { a as U, T as W } from "./tokens-CaVTghf2.js";
|
|
5
|
+
import { c as Xt, s as Pt } from "./tokens-CaVTghf2.js";
|
|
6
|
+
const ve = {
|
|
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
|
+
title: r,
|
|
31
|
+
children: n,
|
|
30
32
|
onClose: a,
|
|
31
33
|
icon: o,
|
|
32
34
|
className: s = "",
|
|
33
35
|
...l
|
|
34
36
|
}) {
|
|
35
|
-
const c =
|
|
37
|
+
const c = ve[e], d = o ?? c.defaultIcon;
|
|
36
38
|
return /* @__PURE__ */ i(
|
|
37
39
|
"div",
|
|
38
40
|
{
|
|
@@ -46,8 +48,8 @@ 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
|
a && /* @__PURE__ */ t(
|
|
53
55
|
"button",
|
|
@@ -62,42 +64,42 @@ 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
|
+
}, Ne = {
|
|
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
|
+
}, ke = {
|
|
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 je(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 Ce(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 P({
|
|
98
100
|
src: e,
|
|
99
|
-
alt:
|
|
100
|
-
name:
|
|
101
|
+
alt: r = "",
|
|
102
|
+
name: n,
|
|
101
103
|
size: a = "md",
|
|
102
104
|
status: o,
|
|
103
105
|
className: s = "",
|
|
@@ -109,53 +111,53 @@ 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[a],
|
|
115
|
+
!e && n ? Ce(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 ? je(n) : /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-on-surface-variant", style: { fontSize: "60%" }, children: "person" })
|
|
123
125
|
}
|
|
124
126
|
),
|
|
125
127
|
o && /* @__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
|
+
Ne[a],
|
|
133
|
+
ke[o]
|
|
132
134
|
].filter(Boolean).join(" ")
|
|
133
135
|
}
|
|
134
136
|
)
|
|
135
137
|
] });
|
|
136
138
|
}
|
|
137
|
-
const
|
|
139
|
+
const Be = {
|
|
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
|
+
}, ze = {
|
|
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
|
+
}, Le = {
|
|
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 ft({
|
|
156
158
|
variant: e = "default",
|
|
157
|
-
size:
|
|
158
|
-
dot:
|
|
159
|
+
size: r = "md",
|
|
160
|
+
dot: n = !1,
|
|
159
161
|
icon: a,
|
|
160
162
|
children: o,
|
|
161
163
|
className: s = "",
|
|
@@ -166,21 +168,21 @@ function at({
|
|
|
166
168
|
{
|
|
167
169
|
className: [
|
|
168
170
|
"inline-flex items-center font-medium rounded-full",
|
|
169
|
-
|
|
170
|
-
|
|
171
|
+
Be[e],
|
|
172
|
+
Le[r],
|
|
171
173
|
s
|
|
172
174
|
].filter(Boolean).join(" "),
|
|
173
175
|
...l,
|
|
174
176
|
children: [
|
|
175
|
-
|
|
176
|
-
a && !
|
|
177
|
+
n && /* @__PURE__ */ t("span", { className: `w-1.5 h-1.5 rounded-full shrink-0 ${ze[e]}` }),
|
|
178
|
+
a && !n && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[12px]", children: a }),
|
|
177
179
|
o
|
|
178
180
|
]
|
|
179
181
|
}
|
|
180
182
|
);
|
|
181
183
|
}
|
|
182
|
-
function
|
|
183
|
-
return /* @__PURE__ */ t("nav", { "aria-label": "Breadcrumb", className:
|
|
184
|
+
function mt({ 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((a, o) => {
|
|
184
186
|
const s = o === e.length - 1;
|
|
185
187
|
return /* @__PURE__ */ i("li", { className: "flex items-center gap-1.5", children: [
|
|
186
188
|
o > 0 && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[16px] text-on-surface-variant select-none", children: "chevron_right" }),
|
|
@@ -208,25 +210,25 @@ function ot({ items: e, className: n = "", ...r }) {
|
|
|
208
210
|
] }, o);
|
|
209
211
|
}) }) });
|
|
210
212
|
}
|
|
211
|
-
const
|
|
213
|
+
const _e = {
|
|
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
|
+
}, K = {
|
|
222
224
|
sm: "text-[16px]",
|
|
223
225
|
md: "text-[18px]",
|
|
224
226
|
lg: "text-[20px]"
|
|
225
|
-
},
|
|
227
|
+
}, Me = B(
|
|
226
228
|
({
|
|
227
229
|
variant: e = "primary",
|
|
228
|
-
size:
|
|
229
|
-
loading:
|
|
230
|
+
size: r = "md",
|
|
231
|
+
loading: n = !1,
|
|
230
232
|
iconLeft: a,
|
|
231
233
|
iconRight: o,
|
|
232
234
|
fullWidth: s = !1,
|
|
@@ -238,61 +240,61 @@ const Ce = {
|
|
|
238
240
|
"button",
|
|
239
241
|
{
|
|
240
242
|
ref: m,
|
|
241
|
-
disabled: l ||
|
|
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
|
+
_e[e],
|
|
249
|
+
Te[r],
|
|
248
250
|
s ? "w-full" : "",
|
|
249
251
|
d
|
|
250
252
|
].filter(Boolean).join(" "),
|
|
251
253
|
...f,
|
|
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 ${K[r]}`,
|
|
257
259
|
children: "progress_activity"
|
|
258
260
|
}
|
|
259
|
-
) : a && /* @__PURE__ */ t("span", { className: `material-symbols-outlined ${
|
|
261
|
+
) : a && /* @__PURE__ */ t("span", { className: `material-symbols-outlined ${K[r]}`, children: a }),
|
|
260
262
|
c,
|
|
261
|
-
!
|
|
263
|
+
!n && o && /* @__PURE__ */ t("span", { className: `material-symbols-outlined ${K[r]}`, children: o })
|
|
262
264
|
]
|
|
263
265
|
}
|
|
264
266
|
)
|
|
265
267
|
);
|
|
266
|
-
|
|
267
|
-
function
|
|
268
|
+
Me.displayName = "Button";
|
|
269
|
+
function pt({ children: e, attached: r = !1, className: n = "", ...a }) {
|
|
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
|
...a,
|
|
278
280
|
children: e
|
|
279
281
|
}
|
|
280
282
|
);
|
|
281
283
|
}
|
|
282
|
-
const
|
|
283
|
-
elevated: "bg-
|
|
284
|
-
outlined: "bg-
|
|
284
|
+
const Ie = {
|
|
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 ht({
|
|
293
295
|
variant: e = "elevated",
|
|
294
|
-
padding:
|
|
295
|
-
children:
|
|
296
|
+
padding: r = "md",
|
|
297
|
+
children: n,
|
|
296
298
|
className: a = "",
|
|
297
299
|
...o
|
|
298
300
|
}) {
|
|
@@ -301,18 +303,18 @@ function it({
|
|
|
301
303
|
{
|
|
302
304
|
className: [
|
|
303
305
|
"rounded-xl overflow-hidden",
|
|
304
|
-
|
|
306
|
+
Ie[e],
|
|
305
307
|
a
|
|
306
308
|
].filter(Boolean).join(" "),
|
|
307
309
|
...o,
|
|
308
|
-
children: /* @__PURE__ */ t("div", { className:
|
|
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
|
+
subtitle: r,
|
|
317
|
+
action: n,
|
|
316
318
|
icon: a,
|
|
317
319
|
className: o = "",
|
|
318
320
|
...s
|
|
@@ -327,68 +329,68 @@ function lt({
|
|
|
327
329
|
a && /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-on-surface-variant text-[24px] shrink-0", children: a }),
|
|
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] =
|
|
351
|
-
var
|
|
350
|
+
const $ = 8, ee = 4;
|
|
351
|
+
function gt({ trigger: e, items: r, align: n = "right", className: a = "", ...o }) {
|
|
352
|
+
const [s, l] = k(!1), [c, d] = k(null), f = M(null), m = M(null), p = j(() => {
|
|
353
|
+
var T;
|
|
352
354
|
const u = f.current;
|
|
353
355
|
if (!u) return;
|
|
354
|
-
const h = u.getBoundingClientRect(), x = (
|
|
355
|
-
d({ top:
|
|
356
|
-
}, [
|
|
357
|
-
return
|
|
356
|
+
const h = u.getBoundingClientRect(), x = (T = m.current) == null ? void 0 : T.getBoundingClientRect(), w = (x == null ? void 0 : x.width) ?? 180, b = (x == null ? void 0 : x.height) ?? 0, v = window.innerHeight - h.bottom, y = h.top, z = v < b + $ && y > v ? h.top - b - ee : h.bottom + ee, S = n === "right" ? h.right - w : h.left, R = window.innerWidth - w - $, F = Math.min(Math.max(S, $), Math.max(R, $));
|
|
357
|
+
d({ top: z, left: F });
|
|
358
|
+
}, [n]);
|
|
359
|
+
return xe(() => {
|
|
358
360
|
s && p();
|
|
359
|
-
}, [s, p]),
|
|
361
|
+
}, [s, p]), C(() => {
|
|
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]),
|
|
367
|
+
}, [s, p]), C(() => {
|
|
366
368
|
const u = (h) => {
|
|
367
|
-
var
|
|
368
|
-
const x = h.target,
|
|
369
|
-
!
|
|
369
|
+
var v, y;
|
|
370
|
+
const x = h.target, w = (v = f.current) == null ? void 0 : v.contains(x), b = (y = m.current) == null ? void 0 : y.contains(x);
|
|
371
|
+
!w && !b && l(!1);
|
|
370
372
|
};
|
|
371
373
|
return document.addEventListener("mousedown", u), () => document.removeEventListener("mousedown", u);
|
|
372
|
-
}, []),
|
|
374
|
+
}, []), C(() => {
|
|
373
375
|
const u = (h) => {
|
|
374
376
|
h.key === "Escape" && l(!1);
|
|
375
377
|
};
|
|
376
378
|
return document.addEventListener("keydown", u), () => document.removeEventListener("keydown", u);
|
|
377
379
|
}, []), /* @__PURE__ */ i("div", { ref: f, className: ["relative inline-block", a].filter(Boolean).join(" "), ...o, children: [
|
|
378
380
|
/* @__PURE__ */ t("div", { onClick: () => l((u) => !u), children: e }),
|
|
379
|
-
s &&
|
|
381
|
+
s && we(
|
|
380
382
|
/* @__PURE__ */ t(
|
|
381
383
|
"div",
|
|
382
384
|
{
|
|
383
385
|
ref: m,
|
|
384
|
-
className: "fixed z-[100] min-w-[180px] bg-
|
|
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, h) => /* @__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: [
|
|
@@ -417,8 +419,8 @@ function dt({ trigger: e, items: n, align: r = "right", className: a = "", ...o
|
|
|
417
419
|
)
|
|
418
420
|
] });
|
|
419
421
|
}
|
|
420
|
-
const
|
|
421
|
-
({ label: e, hint:
|
|
422
|
+
const Ae = B(
|
|
423
|
+
({ label: e, hint: r, error: n, options: a, placeholder: o, disabled: s, className: l = "", id: c, ...d }, f) => {
|
|
422
424
|
const m = 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
426
|
e && /* @__PURE__ */ t("label", { htmlFor: m, className: "text-sm font-medium text-on-surface", children: e }),
|
|
@@ -430,9 +432,9 @@ const Me = C(
|
|
|
430
432
|
id: m,
|
|
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(" "),
|
|
@@ -445,17 +447,17 @@ const Me = C(
|
|
|
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:
|
|
458
|
+
Ae.displayName = "Select";
|
|
459
|
+
const Ee = B(
|
|
460
|
+
({ label: e, hint: r, error: n, disabled: a, className: o = "", id: s, rows: l = 4, ...c }, d) => {
|
|
459
461
|
const f = 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
463
|
e && /* @__PURE__ */ t("label", { htmlFor: f, className: "text-sm font-medium text-on-surface", children: e }),
|
|
@@ -467,31 +469,31 @@ const $e = C(
|
|
|
467
469
|
rows: l,
|
|
468
470
|
disabled: a,
|
|
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
|
o
|
|
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 Se = {
|
|
490
492
|
square: "rounded-[2px]",
|
|
491
493
|
rounded: "rounded-[4px]",
|
|
492
494
|
circle: "rounded-full"
|
|
493
|
-
},
|
|
494
|
-
({ label: e, description:
|
|
495
|
+
}, Re = B(
|
|
496
|
+
({ label: e, description: r, error: n, disabled: a, className: o = "", id: s, shape: l = "square", color: c = "#FF6B00", ...d }, f) => {
|
|
495
497
|
const m = 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(
|
|
@@ -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
|
+
Se[l]
|
|
529
531
|
].filter(Boolean).join(" "),
|
|
530
532
|
style: { "--cb-color": c }
|
|
531
533
|
}
|
|
@@ -554,21 +556,21 @@ 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:
|
|
571
|
+
Re.displayName = "Checkbox";
|
|
572
|
+
const Fe = B(
|
|
573
|
+
({ label: e, description: r, disabled: n, className: a = "", id: o, ...s }, l) => {
|
|
572
574
|
const c = o ?? `radio-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
|
|
573
575
|
return /* @__PURE__ */ i(
|
|
574
576
|
"label",
|
|
@@ -576,7 +578,7 @@ const Ee = C(
|
|
|
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,7 +587,7 @@ 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",
|
|
@@ -597,16 +599,16 @@ const Ee = C(
|
|
|
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:
|
|
609
|
+
Fe.displayName = "Radio";
|
|
610
|
+
const Ve = B(
|
|
611
|
+
({ label: e, description: r, disabled: n, className: a = "", id: o, ...s }, l) => {
|
|
610
612
|
const c = o ?? `switch-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`;
|
|
611
613
|
return /* @__PURE__ */ i(
|
|
612
614
|
"label",
|
|
@@ -614,7 +616,7 @@ const Te = C(
|
|
|
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,23 +636,23 @@ 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
|
|
646
|
+
Ve.displayName = "Switch";
|
|
647
|
+
function N({ name: e, size: r = 20, fill: n = !1, className: a = "", style: o, ...s }) {
|
|
646
648
|
return /* @__PURE__ */ t(
|
|
647
649
|
"span",
|
|
648
650
|
{
|
|
649
651
|
...s,
|
|
650
652
|
className: `material-symbols-outlined leading-none select-none ${a}`.trim(),
|
|
651
653
|
style: {
|
|
652
|
-
fontSize:
|
|
653
|
-
fontVariationSettings: `'FILL' ${
|
|
654
|
+
fontSize: r,
|
|
655
|
+
fontVariationSettings: `'FILL' ${n ? 1 : 0}, 'wght' 300, 'GRAD' 0, 'opsz' 24`,
|
|
654
656
|
...o
|
|
655
657
|
},
|
|
656
658
|
"aria-hidden": "true",
|
|
@@ -658,7 +660,7 @@ function k({ name: e, size: n = 20, fill: r = !1, className: a = "", style: o, .
|
|
|
658
660
|
}
|
|
659
661
|
);
|
|
660
662
|
}
|
|
661
|
-
const
|
|
663
|
+
const De = ({ 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
|
+
), He = ({ 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
|
+
), Ke = ({ 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,25 +724,25 @@ 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
|
+
), Ue = {
|
|
726
728
|
sm: "px-3 py-1.5 text-sm h-8",
|
|
727
729
|
md: "px-3 py-2 text-sm h-10",
|
|
728
730
|
lg: "px-4 py-2.5 text-base h-11"
|
|
729
|
-
},
|
|
731
|
+
}, te = {
|
|
730
732
|
sm: "text-[16px]",
|
|
731
733
|
md: "text-[18px]",
|
|
732
734
|
lg: "text-[20px]"
|
|
733
735
|
};
|
|
734
|
-
function
|
|
736
|
+
function We(e, r, n) {
|
|
735
737
|
if (e === "" || e === void 0 || e === null) return "";
|
|
736
|
-
const a = Number(e).toFixed(
|
|
737
|
-
return
|
|
738
|
+
const a = Number(e).toFixed(r);
|
|
739
|
+
return n ? `${a} ${n}` : a;
|
|
738
740
|
}
|
|
739
|
-
const
|
|
741
|
+
const Ge = B(
|
|
740
742
|
({
|
|
741
743
|
label: e,
|
|
742
|
-
hint:
|
|
743
|
-
error:
|
|
744
|
+
hint: r,
|
|
745
|
+
error: n,
|
|
744
746
|
inputSize: a = "md",
|
|
745
747
|
iconLeft: o,
|
|
746
748
|
iconRight: s,
|
|
@@ -753,34 +755,34 @@ const De = C(
|
|
|
753
755
|
onValueChange: u,
|
|
754
756
|
value: h,
|
|
755
757
|
defaultValue: x,
|
|
756
|
-
type:
|
|
758
|
+
type: w,
|
|
757
759
|
step: b,
|
|
758
|
-
inputMode:
|
|
760
|
+
inputMode: v,
|
|
759
761
|
onChange: y,
|
|
760
762
|
onFocus: _,
|
|
761
|
-
onBlur:
|
|
762
|
-
...
|
|
763
|
-
},
|
|
764
|
-
const F =
|
|
763
|
+
onBlur: z,
|
|
764
|
+
...S
|
|
765
|
+
}, R) => {
|
|
766
|
+
const F = be(), T = f ?? (e ? e.toLowerCase().replace(/\s+/g, "-") : F), g = m !== void 0, V = p ?? 0, D = g && h !== void 0, [de, ue] = k(
|
|
765
767
|
typeof x == "number" ? x : ""
|
|
766
|
-
), [
|
|
768
|
+
), [Z, Q] = k(!1), [H, Y] = k(""), I = D ? h : de, fe = g ? Z ? H : We(I, V, m ?? "") : h, me = j(
|
|
767
769
|
(L) => {
|
|
768
|
-
g && (
|
|
770
|
+
g && (Q(!0), Y(I === "" ? "" : String(I))), _ == null || _(L);
|
|
769
771
|
},
|
|
770
772
|
[g, I, _]
|
|
771
|
-
),
|
|
773
|
+
), pe = j(
|
|
772
774
|
(L) => {
|
|
773
775
|
if (g) {
|
|
774
|
-
|
|
775
|
-
const
|
|
776
|
-
|
|
776
|
+
Q(!1);
|
|
777
|
+
const J = parseFloat(H.replace(",", ".")), X = isNaN(J) ? "" : J;
|
|
778
|
+
D || ue(X), u == null || u(X);
|
|
777
779
|
}
|
|
778
|
-
|
|
780
|
+
z == null || z(L);
|
|
779
781
|
},
|
|
780
|
-
[g,
|
|
781
|
-
),
|
|
782
|
+
[g, H, D, u, z]
|
|
783
|
+
), he = j(
|
|
782
784
|
(L) => {
|
|
783
|
-
g &&
|
|
785
|
+
g && Y(L.target.value), y == null || y(L);
|
|
784
786
|
},
|
|
785
787
|
[g, y]
|
|
786
788
|
);
|
|
@@ -788,7 +790,7 @@ const De = C(
|
|
|
788
790
|
e && /* @__PURE__ */ t(
|
|
789
791
|
"label",
|
|
790
792
|
{
|
|
791
|
-
htmlFor:
|
|
793
|
+
htmlFor: T,
|
|
792
794
|
className: "text-sm font-medium text-on-surface",
|
|
793
795
|
children: e
|
|
794
796
|
}
|
|
@@ -797,37 +799,37 @@ const De = C(
|
|
|
797
799
|
o && /* @__PURE__ */ t(
|
|
798
800
|
"span",
|
|
799
801
|
{
|
|
800
|
-
className: `material-symbols-outlined absolute left-3 text-on-surface-variant pointer-events-none ${
|
|
802
|
+
className: `material-symbols-outlined absolute left-3 text-on-surface-variant pointer-events-none ${te[a]}`,
|
|
801
803
|
children: o
|
|
802
804
|
}
|
|
803
805
|
),
|
|
804
806
|
/* @__PURE__ */ t(
|
|
805
807
|
"input",
|
|
806
808
|
{
|
|
807
|
-
ref:
|
|
808
|
-
id:
|
|
809
|
+
ref: R,
|
|
810
|
+
id: T,
|
|
809
811
|
disabled: c,
|
|
810
|
-
type: g ?
|
|
811
|
-
inputMode: g ? "decimal" :
|
|
812
|
-
value: g ?
|
|
812
|
+
type: g ? Z ? "number" : "text" : w,
|
|
813
|
+
inputMode: g ? "decimal" : v,
|
|
814
|
+
value: g ? fe : h,
|
|
813
815
|
defaultValue: g ? void 0 : x,
|
|
814
|
-
step: g ? b ?? (
|
|
815
|
-
onFocus:
|
|
816
|
-
onBlur:
|
|
817
|
-
onChange:
|
|
816
|
+
step: g ? b ?? (V > 0 ? Math.pow(10, -V) : 1) : b,
|
|
817
|
+
onFocus: me,
|
|
818
|
+
onBlur: pe,
|
|
819
|
+
onChange: he,
|
|
818
820
|
className: [
|
|
819
|
-
"w-full bg-
|
|
820
|
-
"text-on-surface placeholder:text-on-surface-variant",
|
|
821
|
+
"w-full bg-page border rounded transition-all duration-200",
|
|
822
|
+
"text-on-surface placeholder:text-on-surface-variant dark:placeholder:text-content-disabled",
|
|
821
823
|
"focus:outline-none focus:border-zeo-orange focus:shadow-zeo-focus",
|
|
822
|
-
|
|
824
|
+
n ? "border-error focus:border-error focus:shadow-[0_0_0_4px_rgba(186,26,26,0.15)]" : "border-outline-variant",
|
|
823
825
|
"disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",
|
|
824
826
|
g ? "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none" : "",
|
|
825
|
-
|
|
827
|
+
Ue[a],
|
|
826
828
|
o ? "pl-9" : "",
|
|
827
829
|
s ? "pr-9" : "",
|
|
828
830
|
d
|
|
829
831
|
].filter(Boolean).join(" "),
|
|
830
|
-
...
|
|
832
|
+
...S
|
|
831
833
|
}
|
|
832
834
|
),
|
|
833
835
|
s && /* @__PURE__ */ t(
|
|
@@ -835,7 +837,7 @@ const De = C(
|
|
|
835
837
|
{
|
|
836
838
|
className: [
|
|
837
839
|
"material-symbols-outlined absolute right-3 text-on-surface-variant",
|
|
838
|
-
|
|
840
|
+
te[a],
|
|
839
841
|
l ? "cursor-pointer hover:text-on-surface" : "pointer-events-none"
|
|
840
842
|
].filter(Boolean).join(" "),
|
|
841
843
|
onClick: l,
|
|
@@ -843,30 +845,30 @@ const De = C(
|
|
|
843
845
|
}
|
|
844
846
|
)
|
|
845
847
|
] }),
|
|
846
|
-
|
|
848
|
+
n && /* @__PURE__ */ i("p", { className: "text-xs text-error flex items-center gap-1", children: [
|
|
847
849
|
/* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[14px]", children: "error" }),
|
|
848
|
-
|
|
850
|
+
n
|
|
849
851
|
] }),
|
|
850
|
-
!
|
|
852
|
+
!n && r && /* @__PURE__ */ t("p", { className: "text-xs text-on-surface-variant", children: r })
|
|
851
853
|
] });
|
|
852
854
|
}
|
|
853
855
|
);
|
|
854
|
-
|
|
855
|
-
const
|
|
856
|
+
Ge.displayName = "Input";
|
|
857
|
+
const Oe = {
|
|
856
858
|
sm: "max-w-sm",
|
|
857
859
|
md: "max-w-md",
|
|
858
860
|
lg: "max-w-lg",
|
|
859
861
|
xl: "max-w-2xl",
|
|
860
862
|
full: "max-w-[calc(100vw-2rem)]"
|
|
861
863
|
};
|
|
862
|
-
function
|
|
863
|
-
return
|
|
864
|
+
function wt({ open: e, onClose: r, size: n = "md", children: a }) {
|
|
865
|
+
return C(() => {
|
|
864
866
|
if (!e) return;
|
|
865
867
|
const o = (s) => {
|
|
866
|
-
s.key === "Escape" &&
|
|
868
|
+
s.key === "Escape" && r();
|
|
867
869
|
};
|
|
868
870
|
return document.addEventListener("keydown", o), () => document.removeEventListener("keydown", o);
|
|
869
|
-
}, [e,
|
|
871
|
+
}, [e, r]), e ? /* @__PURE__ */ i(
|
|
870
872
|
"div",
|
|
871
873
|
{
|
|
872
874
|
className: "fixed inset-0 z-50 flex items-center justify-center p-4",
|
|
@@ -876,8 +878,8 @@ function ut({ open: e, onClose: n, size: r = "md", children: a }) {
|
|
|
876
878
|
/* @__PURE__ */ t(
|
|
877
879
|
"div",
|
|
878
880
|
{
|
|
879
|
-
className: "absolute inset-0 bg-black/50 backdrop-blur-sm",
|
|
880
|
-
onClick:
|
|
881
|
+
className: "absolute inset-0 bg-black/50 dark:bg-scrim/60 backdrop-blur-sm",
|
|
882
|
+
onClick: r,
|
|
881
883
|
"aria-hidden": "true"
|
|
882
884
|
}
|
|
883
885
|
),
|
|
@@ -885,8 +887,8 @@ function ut({ open: e, onClose: n, size: r = "md", children: a }) {
|
|
|
885
887
|
"div",
|
|
886
888
|
{
|
|
887
889
|
className: [
|
|
888
|
-
"relative w-full bg-
|
|
889
|
-
|
|
890
|
+
"relative w-full bg-surface-container-lowest rounded-2xl shadow-theme-lg z-10 flex flex-col max-h-[90vh]",
|
|
891
|
+
Oe[n]
|
|
890
892
|
].filter(Boolean).join(" "),
|
|
891
893
|
children: a
|
|
892
894
|
}
|
|
@@ -895,7 +897,7 @@ function ut({ open: e, onClose: n, size: r = "md", children: a }) {
|
|
|
895
897
|
}
|
|
896
898
|
) : null;
|
|
897
899
|
}
|
|
898
|
-
function
|
|
900
|
+
function vt({ title: e, subtitle: r, onClose: n, className: a = "", ...o }) {
|
|
899
901
|
return /* @__PURE__ */ i(
|
|
900
902
|
"div",
|
|
901
903
|
{
|
|
@@ -904,12 +906,12 @@ function ft({ title: e, subtitle: n, onClose: r, className: a = "", ...o }) {
|
|
|
904
906
|
children: [
|
|
905
907
|
/* @__PURE__ */ i("div", { children: [
|
|
906
908
|
/* @__PURE__ */ t("h2", { className: "text-lg font-semibold text-on-surface", children: e }),
|
|
907
|
-
|
|
909
|
+
r && /* @__PURE__ */ t("p", { className: "text-sm text-on-surface-variant mt-0.5", children: r })
|
|
908
910
|
] }),
|
|
909
|
-
|
|
911
|
+
n && /* @__PURE__ */ t(
|
|
910
912
|
"button",
|
|
911
913
|
{
|
|
912
|
-
onClick:
|
|
914
|
+
onClick: n,
|
|
913
915
|
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
916
|
"aria-label": "Fechar modal",
|
|
915
917
|
children: /* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[20px]", children: "close" })
|
|
@@ -919,50 +921,50 @@ function ft({ title: e, subtitle: n, onClose: r, className: a = "", ...o }) {
|
|
|
919
921
|
}
|
|
920
922
|
);
|
|
921
923
|
}
|
|
922
|
-
function
|
|
924
|
+
function yt({ children: e, className: r = "", ...n }) {
|
|
923
925
|
return /* @__PURE__ */ t(
|
|
924
926
|
"div",
|
|
925
927
|
{
|
|
926
|
-
className: ["p-6 overflow-y-auto flex-1",
|
|
927
|
-
...
|
|
928
|
+
className: ["p-6 overflow-y-auto flex-1", r].filter(Boolean).join(" "),
|
|
929
|
+
...n,
|
|
928
930
|
children: e
|
|
929
931
|
}
|
|
930
932
|
);
|
|
931
933
|
}
|
|
932
|
-
function
|
|
934
|
+
function Nt({ children: e, className: r = "", ...n }) {
|
|
933
935
|
return /* @__PURE__ */ t(
|
|
934
936
|
"div",
|
|
935
937
|
{
|
|
936
938
|
className: [
|
|
937
939
|
"flex items-center justify-end gap-3 p-6 border-t border-surface-container-high",
|
|
938
|
-
|
|
940
|
+
r
|
|
939
941
|
].filter(Boolean).join(" "),
|
|
940
|
-
...
|
|
942
|
+
...n,
|
|
941
943
|
children: e
|
|
942
944
|
}
|
|
943
945
|
);
|
|
944
946
|
}
|
|
945
|
-
function
|
|
946
|
-
return
|
|
947
|
+
function qe(e, r) {
|
|
948
|
+
return r <= 7 ? Array.from({ length: r }, (n, a) => a + 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
949
|
}
|
|
948
|
-
function
|
|
950
|
+
function kt({
|
|
949
951
|
currentPage: e,
|
|
950
|
-
totalPages:
|
|
951
|
-
totalItems:
|
|
952
|
+
totalPages: r,
|
|
953
|
+
totalItems: n,
|
|
952
954
|
itemsPerPage: a = 10,
|
|
953
955
|
onPageChange: o,
|
|
954
956
|
variant: s = "full",
|
|
955
957
|
className: l = "",
|
|
956
958
|
...c
|
|
957
959
|
}) {
|
|
958
|
-
const d =
|
|
960
|
+
const d = qe(e, r), f = (e - 1) * a + 1, m = Math.min(e * a, n ?? 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", w = `${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
961
|
return /* @__PURE__ */ i(
|
|
960
962
|
"div",
|
|
961
963
|
{
|
|
962
964
|
className: ["flex items-center justify-between gap-4 flex-wrap", l].filter(Boolean).join(" "),
|
|
963
965
|
...c,
|
|
964
966
|
children: [
|
|
965
|
-
s === "full" &&
|
|
967
|
+
s === "full" && n !== void 0 && /* @__PURE__ */ i("p", { className: "text-sm text-on-surface-variant", children: [
|
|
966
968
|
"Mostrando ",
|
|
967
969
|
/* @__PURE__ */ i("strong", { children: [
|
|
968
970
|
f,
|
|
@@ -970,7 +972,7 @@ function ht({
|
|
|
970
972
|
m
|
|
971
973
|
] }),
|
|
972
974
|
" de ",
|
|
973
|
-
/* @__PURE__ */ t("strong", { children:
|
|
975
|
+
/* @__PURE__ */ t("strong", { children: n }),
|
|
974
976
|
" itens"
|
|
975
977
|
] }),
|
|
976
978
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-1 ml-auto", children: [
|
|
@@ -980,7 +982,7 @@ function ht({
|
|
|
980
982
|
onClick: () => o(e - 1),
|
|
981
983
|
disabled: e === 1,
|
|
982
984
|
"aria-label": "Página anterior",
|
|
983
|
-
className: s === "icon" ? u + " " + x :
|
|
985
|
+
className: s === "icon" ? u + " " + x : w,
|
|
984
986
|
children: [
|
|
985
987
|
/* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[18px]", children: "arrow_back" }),
|
|
986
988
|
s === "text" && "Anterior"
|
|
@@ -988,7 +990,7 @@ function ht({
|
|
|
988
990
|
}
|
|
989
991
|
),
|
|
990
992
|
d.map(
|
|
991
|
-
(b,
|
|
993
|
+
(b, v) => b === "..." ? /* @__PURE__ */ t("span", { className: "w-9 text-center text-sm text-on-surface-variant select-none", children: "…" }, `ellipsis-${v}`) : /* @__PURE__ */ t(
|
|
992
994
|
"button",
|
|
993
995
|
{
|
|
994
996
|
onClick: () => o(b),
|
|
@@ -1003,9 +1005,9 @@ function ht({
|
|
|
1003
1005
|
"button",
|
|
1004
1006
|
{
|
|
1005
1007
|
onClick: () => o(e + 1),
|
|
1006
|
-
disabled: e ===
|
|
1008
|
+
disabled: e === r,
|
|
1007
1009
|
"aria-label": "Próxima página",
|
|
1008
|
-
className: s === "icon" ? u + " " + x :
|
|
1010
|
+
className: s === "icon" ? u + " " + x : w,
|
|
1009
1011
|
children: [
|
|
1010
1012
|
s === "text" && "Próxima",
|
|
1011
1013
|
/* @__PURE__ */ t("span", { className: "material-symbols-outlined text-[18px]", children: "arrow_forward" })
|
|
@@ -1017,21 +1019,21 @@ function ht({
|
|
|
1017
1019
|
}
|
|
1018
1020
|
);
|
|
1019
1021
|
}
|
|
1020
|
-
const
|
|
1022
|
+
const Ze = {
|
|
1021
1023
|
xs: "h-1",
|
|
1022
1024
|
sm: "h-1.5",
|
|
1023
1025
|
md: "h-2",
|
|
1024
1026
|
lg: "h-3"
|
|
1025
|
-
},
|
|
1027
|
+
}, Qe = {
|
|
1026
1028
|
primary: "bg-zeo-orange",
|
|
1027
1029
|
success: "bg-green-500",
|
|
1028
1030
|
warning: "bg-amber-400",
|
|
1029
1031
|
danger: "bg-red-500"
|
|
1030
1032
|
};
|
|
1031
|
-
function
|
|
1033
|
+
function jt({
|
|
1032
1034
|
value: e,
|
|
1033
|
-
max:
|
|
1034
|
-
size:
|
|
1035
|
+
max: r = 100,
|
|
1036
|
+
size: n = "md",
|
|
1035
1037
|
variant: a = "primary",
|
|
1036
1038
|
label: o = "none",
|
|
1037
1039
|
showPercent: s = !0,
|
|
@@ -1039,7 +1041,7 @@ function xt({
|
|
|
1039
1041
|
className: c = "",
|
|
1040
1042
|
...d
|
|
1041
1043
|
}) {
|
|
1042
|
-
const f = Math.min(100, Math.max(0, e /
|
|
1044
|
+
const f = Math.min(100, Math.max(0, e / r * 100)), m = `${Math.round(f)}%`;
|
|
1043
1045
|
return /* @__PURE__ */ i("div", { className: ["flex flex-col gap-1.5", c].filter(Boolean).join(" "), ...d, children: [
|
|
1044
1046
|
(l || o === "outside" && s) && /* @__PURE__ */ i("div", { className: "flex items-center justify-between gap-2", children: [
|
|
1045
1047
|
l && /* @__PURE__ */ t("span", { className: "text-sm font-medium text-on-surface", children: l }),
|
|
@@ -1051,14 +1053,14 @@ function xt({
|
|
|
1051
1053
|
role: "progressbar",
|
|
1052
1054
|
"aria-valuenow": e,
|
|
1053
1055
|
"aria-valuemin": 0,
|
|
1054
|
-
"aria-valuemax":
|
|
1055
|
-
className: ["relative w-full bg-surface-container-high rounded-full overflow-hidden",
|
|
1056
|
+
"aria-valuemax": r,
|
|
1057
|
+
className: ["relative w-full bg-surface-container-high rounded-full overflow-hidden", Ze[n]].join(" "),
|
|
1056
1058
|
children: /* @__PURE__ */ t(
|
|
1057
1059
|
"div",
|
|
1058
1060
|
{
|
|
1059
1061
|
className: [
|
|
1060
1062
|
"h-full rounded-full transition-all duration-500 flex items-center justify-end pr-1",
|
|
1061
|
-
|
|
1063
|
+
Qe[a]
|
|
1062
1064
|
].join(" "),
|
|
1063
1065
|
style: { width: `${f}%` },
|
|
1064
1066
|
children: o === "inside" && s && f >= 20 && /* @__PURE__ */ t("span", { className: "text-[10px] font-bold text-white leading-none", children: m })
|
|
@@ -1068,20 +1070,20 @@ function xt({
|
|
|
1068
1070
|
)
|
|
1069
1071
|
] });
|
|
1070
1072
|
}
|
|
1071
|
-
const
|
|
1072
|
-
function
|
|
1073
|
+
const re = (e, r) => typeof e == "function" ? e(r) : e;
|
|
1074
|
+
function Ct({
|
|
1073
1075
|
sidebar: e,
|
|
1074
|
-
navbar:
|
|
1075
|
-
children:
|
|
1076
|
+
navbar: r,
|
|
1077
|
+
children: n,
|
|
1076
1078
|
defaultExpanded: a = !1,
|
|
1077
1079
|
isExpanded: o,
|
|
1078
1080
|
onToggle: s
|
|
1079
1081
|
}) {
|
|
1080
|
-
const [l, c] =
|
|
1082
|
+
const [l, c] = k(a), d = o ?? l, f = j(() => {
|
|
1081
1083
|
o === void 0 && c((p) => !p), s == null || s();
|
|
1082
1084
|
}, [o, s]), m = { isExpanded: d, toggle: f };
|
|
1083
1085
|
return /* @__PURE__ */ i("div", { className: "flex h-screen overflow-hidden", children: [
|
|
1084
|
-
|
|
1086
|
+
re(e, m),
|
|
1085
1087
|
/* @__PURE__ */ i(
|
|
1086
1088
|
"div",
|
|
1087
1089
|
{
|
|
@@ -1090,21 +1092,21 @@ function bt({
|
|
|
1090
1092
|
d ? "ml-sidebar-expanded" : "ml-sidebar-collapsed"
|
|
1091
1093
|
].join(" "),
|
|
1092
1094
|
children: [
|
|
1093
|
-
|
|
1094
|
-
/* @__PURE__ */ t("main", { className: "flex-1 overflow-y-auto bg-surface-container", children:
|
|
1095
|
+
re(r, m),
|
|
1096
|
+
/* @__PURE__ */ t("main", { className: "flex-1 overflow-y-auto bg-surface-container dark:bg-canvas", children: n })
|
|
1095
1097
|
]
|
|
1096
1098
|
}
|
|
1097
1099
|
)
|
|
1098
1100
|
] });
|
|
1099
1101
|
}
|
|
1100
|
-
const
|
|
1101
|
-
function
|
|
1102
|
-
const o = e.disabled || !e.href, s = !
|
|
1102
|
+
const Ye = ({ href: e, className: r, children: n }) => /* @__PURE__ */ t("a", { href: e, className: r, children: n }), ae = "text-[10px] uppercase tracking-widest text-white/30 font-bold";
|
|
1103
|
+
function oe({ item: e, isActive: r, isExpanded: n, renderLink: a = Ye }) {
|
|
1104
|
+
const o = e.disabled || !e.href, s = !n || o && e.disabledReason, l = /* @__PURE__ */ i(
|
|
1103
1105
|
"div",
|
|
1104
1106
|
{
|
|
1105
1107
|
className: [
|
|
1106
1108
|
"group relative flex items-center gap-3 px-4 py-3 rounded-lg transition-colors duration-150",
|
|
1107
|
-
|
|
1109
|
+
r ? "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
1110
|
].join(" "),
|
|
1109
1111
|
children: [
|
|
1110
1112
|
e.icon,
|
|
@@ -1113,7 +1115,7 @@ function ne({ item: e, isActive: n, isExpanded: r, renderLink: a = qe }) {
|
|
|
1113
1115
|
{
|
|
1114
1116
|
className: [
|
|
1115
1117
|
"text-sm font-medium whitespace-nowrap overflow-hidden transition-opacity duration-shell",
|
|
1116
|
-
|
|
1118
|
+
n ? "opacity-100" : "opacity-0 w-0"
|
|
1117
1119
|
].join(" "),
|
|
1118
1120
|
children: e.label
|
|
1119
1121
|
}
|
|
@@ -1123,14 +1125,14 @@ function ne({ item: e, isActive: n, isExpanded: r, renderLink: a = qe }) {
|
|
|
1123
1125
|
{
|
|
1124
1126
|
role: "tooltip",
|
|
1125
1127
|
className: [
|
|
1126
|
-
"absolute left-full ml-3 px-3 py-2 bg-
|
|
1128
|
+
"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
1129
|
"rounded-lg shadow-theme-lg whitespace-nowrap z-[200] pointer-events-none",
|
|
1128
1130
|
"invisible opacity-0 transition-all duration-150",
|
|
1129
1131
|
s && "group-hover:visible group-hover:opacity-100"
|
|
1130
1132
|
].filter(Boolean).join(" "),
|
|
1131
1133
|
children: [
|
|
1132
1134
|
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-
|
|
1135
|
+
/* @__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
1136
|
]
|
|
1135
1137
|
}
|
|
1136
1138
|
)
|
|
@@ -1139,24 +1141,24 @@ function ne({ item: e, isActive: n, isExpanded: r, renderLink: a = qe }) {
|
|
|
1139
1141
|
);
|
|
1140
1142
|
return o ? /* @__PURE__ */ t("div", { children: l }) : a({ item: e, href: e.href, className: "block no-underline", children: l });
|
|
1141
1143
|
}
|
|
1142
|
-
function
|
|
1143
|
-
return /* @__PURE__ */ i(
|
|
1144
|
+
function Je({ section: e, index: r = 0, activeId: n, isExpanded: a, renderLink: o }) {
|
|
1145
|
+
return /* @__PURE__ */ i(ne, { children: [
|
|
1144
1146
|
e.label && /* @__PURE__ */ t(
|
|
1145
1147
|
"div",
|
|
1146
1148
|
{
|
|
1147
1149
|
className: [
|
|
1148
1150
|
"overflow-hidden transition-all duration-shell px-3",
|
|
1149
1151
|
a ? "h-6 opacity-100 mb-1" : "h-0 opacity-0",
|
|
1150
|
-
|
|
1152
|
+
r > 0 ? "mt-4" : ""
|
|
1151
1153
|
].join(" "),
|
|
1152
|
-
children: /* @__PURE__ */ t("span", { className:
|
|
1154
|
+
children: /* @__PURE__ */ t("span", { className: ae, children: e.label })
|
|
1153
1155
|
}
|
|
1154
1156
|
),
|
|
1155
1157
|
e.items.map((s) => /* @__PURE__ */ t(
|
|
1156
|
-
|
|
1158
|
+
oe,
|
|
1157
1159
|
{
|
|
1158
1160
|
item: s,
|
|
1159
|
-
isActive: s.id ===
|
|
1161
|
+
isActive: s.id === n,
|
|
1160
1162
|
isExpanded: a,
|
|
1161
1163
|
renderLink: o
|
|
1162
1164
|
},
|
|
@@ -1164,7 +1166,7 @@ function Oe({ section: e, index: n = 0, activeId: r, isExpanded: a, renderLink:
|
|
|
1164
1166
|
))
|
|
1165
1167
|
] });
|
|
1166
1168
|
}
|
|
1167
|
-
function
|
|
1169
|
+
function Bt({ sections: e, activeId: r, isExpanded: n, logo: a, renderLink: o }) {
|
|
1168
1170
|
const s = e.filter((d) => d.placement !== "bottom"), l = e.filter((d) => d.placement === "bottom"), c = /* @__PURE__ */ t(
|
|
1169
1171
|
"img",
|
|
1170
1172
|
{
|
|
@@ -1172,7 +1174,7 @@ function gt({ sections: e, activeId: n, isExpanded: r, logo: a, renderLink: o })
|
|
|
1172
1174
|
alt: a.alt ?? "",
|
|
1173
1175
|
className: [
|
|
1174
1176
|
"flex-shrink-0",
|
|
1175
|
-
|
|
1177
|
+
n ? "h-8 w-auto object-contain" : "w-10 h-10 object-cover object-left"
|
|
1176
1178
|
].join(" ")
|
|
1177
1179
|
}
|
|
1178
1180
|
);
|
|
@@ -1183,7 +1185,7 @@ function gt({ sections: e, activeId: n, isExpanded: r, logo: a, renderLink: o })
|
|
|
1183
1185
|
"fixed left-0 top-0 h-screen bg-sidebar flex flex-col z-[100]",
|
|
1184
1186
|
"transition-[width] duration-shell ease-shell",
|
|
1185
1187
|
"shadow-[40px_0_40px_0_rgba(0,0,0,0.04)]",
|
|
1186
|
-
|
|
1188
|
+
n ? "w-sidebar-expanded" : "w-sidebar-collapsed"
|
|
1187
1189
|
].join(" "),
|
|
1188
1190
|
children: [
|
|
1189
1191
|
/* @__PURE__ */ t(
|
|
@@ -1191,18 +1193,18 @@ function gt({ sections: e, activeId: n, isExpanded: r, logo: a, renderLink: o })
|
|
|
1191
1193
|
{
|
|
1192
1194
|
className: [
|
|
1193
1195
|
"h-[88px] flex items-center flex-shrink-0",
|
|
1194
|
-
|
|
1196
|
+
n ? "px-6 justify-start" : "justify-center"
|
|
1195
1197
|
].join(" "),
|
|
1196
1198
|
children: a.href ? /* @__PURE__ */ t("a", { href: a.href, "aria-label": a.alt, className: "flex-shrink-0", children: c }) : c
|
|
1197
1199
|
}
|
|
1198
1200
|
),
|
|
1199
1201
|
/* @__PURE__ */ t("nav", { className: "flex-1 flex flex-col py-2 px-3 gap-1", children: s.map((d, f) => /* @__PURE__ */ t(
|
|
1200
|
-
|
|
1202
|
+
Je,
|
|
1201
1203
|
{
|
|
1202
1204
|
section: d,
|
|
1203
1205
|
index: f,
|
|
1204
|
-
activeId:
|
|
1205
|
-
isExpanded:
|
|
1206
|
+
activeId: r,
|
|
1207
|
+
isExpanded: n,
|
|
1206
1208
|
renderLink: o
|
|
1207
1209
|
},
|
|
1208
1210
|
d.id
|
|
@@ -1213,18 +1215,18 @@ function gt({ sections: e, activeId: n, isExpanded: r, logo: a, renderLink: o })
|
|
|
1213
1215
|
{
|
|
1214
1216
|
className: [
|
|
1215
1217
|
"px-6 mb-2 overflow-hidden transition-all duration-shell",
|
|
1216
|
-
|
|
1218
|
+
n ? "h-7 opacity-100" : "h-0 opacity-0"
|
|
1217
1219
|
].join(" "),
|
|
1218
|
-
children: /* @__PURE__ */ t("span", { className:
|
|
1220
|
+
children: /* @__PURE__ */ t("span", { className: ae, children: d.label })
|
|
1219
1221
|
}
|
|
1220
1222
|
),
|
|
1221
1223
|
/* @__PURE__ */ t("div", { className: "border-t border-white/[0.06] mb-2" }),
|
|
1222
1224
|
/* @__PURE__ */ t("div", { className: "px-3", children: d.items.map((f) => /* @__PURE__ */ t(
|
|
1223
|
-
|
|
1225
|
+
oe,
|
|
1224
1226
|
{
|
|
1225
1227
|
item: f,
|
|
1226
|
-
isActive: f.id ===
|
|
1227
|
-
isExpanded:
|
|
1228
|
+
isActive: f.id === r,
|
|
1229
|
+
isExpanded: n,
|
|
1228
1230
|
renderLink: o
|
|
1229
1231
|
},
|
|
1230
1232
|
f.id
|
|
@@ -1234,15 +1236,15 @@ function gt({ sections: e, activeId: n, isExpanded: r, logo: a, renderLink: o })
|
|
|
1234
1236
|
}
|
|
1235
1237
|
);
|
|
1236
1238
|
}
|
|
1237
|
-
function
|
|
1239
|
+
function zt({
|
|
1238
1240
|
onToggleMenu: e,
|
|
1239
|
-
start:
|
|
1240
|
-
search:
|
|
1241
|
+
start: r,
|
|
1242
|
+
search: n,
|
|
1241
1243
|
actions: a,
|
|
1242
1244
|
userMenu: o,
|
|
1243
1245
|
toggleMenuLabel: s = "Alternar menu"
|
|
1244
1246
|
}) {
|
|
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: [
|
|
1247
|
+
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
1248
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-4 flex-1 min-w-0", children: [
|
|
1247
1249
|
/* @__PURE__ */ t(
|
|
1248
1250
|
"button",
|
|
@@ -1251,11 +1253,11 @@ function vt({
|
|
|
1251
1253
|
onClick: e,
|
|
1252
1254
|
"aria-label": s,
|
|
1253
1255
|
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(
|
|
1256
|
+
children: /* @__PURE__ */ t(N, { name: "menu", size: 20 })
|
|
1255
1257
|
}
|
|
1256
1258
|
),
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
+
r,
|
|
1260
|
+
n
|
|
1259
1261
|
] }),
|
|
1260
1262
|
(a || o) && /* @__PURE__ */ i("div", { className: "flex items-center gap-1 flex-shrink-0 ml-4", children: [
|
|
1261
1263
|
a,
|
|
@@ -1264,18 +1266,18 @@ function vt({
|
|
|
1264
1266
|
] })
|
|
1265
1267
|
] });
|
|
1266
1268
|
}
|
|
1267
|
-
function
|
|
1269
|
+
function Lt({ module: e, project: r }) {
|
|
1268
1270
|
return /* @__PURE__ */ i("div", { className: "flex items-baseline gap-2 min-w-0", children: [
|
|
1269
1271
|
/* @__PURE__ */ t("span", { className: "text-title-md font-bold text-on-surface whitespace-nowrap", children: e }),
|
|
1270
|
-
|
|
1272
|
+
r && /* @__PURE__ */ i(ne, { children: [
|
|
1271
1273
|
/* @__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:
|
|
1274
|
+
/* @__PURE__ */ t("span", { className: "text-body-md text-on-surface-variant truncate", children: r })
|
|
1273
1275
|
] })
|
|
1274
1276
|
] });
|
|
1275
1277
|
}
|
|
1276
|
-
function
|
|
1277
|
-
const s =
|
|
1278
|
-
return
|
|
1278
|
+
function _t({ value: e, onChange: r, placeholder: n, shortcutHint: a, focusShortcut: o = !1 }) {
|
|
1279
|
+
const s = M(null);
|
|
1280
|
+
return C(() => {
|
|
1279
1281
|
if (!o) return;
|
|
1280
1282
|
const l = (c) => {
|
|
1281
1283
|
var d;
|
|
@@ -1284,7 +1286,7 @@ function yt({ value: e, onChange: n, placeholder: r, shortcutHint: a, focusShort
|
|
|
1284
1286
|
return document.addEventListener("keydown", l), () => document.removeEventListener("keydown", l);
|
|
1285
1287
|
}, [o]), /* @__PURE__ */ i("div", { className: "relative w-full max-w-md", children: [
|
|
1286
1288
|
/* @__PURE__ */ t(
|
|
1287
|
-
|
|
1289
|
+
N,
|
|
1288
1290
|
{
|
|
1289
1291
|
name: "search",
|
|
1290
1292
|
size: 18,
|
|
@@ -1296,9 +1298,9 @@ function yt({ value: e, onChange: n, placeholder: r, shortcutHint: a, focusShort
|
|
|
1296
1298
|
{
|
|
1297
1299
|
ref: s,
|
|
1298
1300
|
value: e,
|
|
1299
|
-
onChange: (l) =>
|
|
1300
|
-
placeholder:
|
|
1301
|
-
"aria-label":
|
|
1301
|
+
onChange: (l) => r(l.target.value),
|
|
1302
|
+
placeholder: n,
|
|
1303
|
+
"aria-label": n,
|
|
1302
1304
|
className: [
|
|
1303
1305
|
"w-full h-9 pl-10 rounded-lg",
|
|
1304
1306
|
a ? "pr-[90px]" : "pr-3",
|
|
@@ -1312,66 +1314,116 @@ function yt({ value: e, onChange: n, placeholder: r, shortcutHint: a, focusShort
|
|
|
1312
1314
|
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
1315
|
] });
|
|
1314
1316
|
}
|
|
1315
|
-
function
|
|
1317
|
+
function se({ icon: e, label: r, badge: n = !1, className: a = "", type: o = "button", ...s }) {
|
|
1316
1318
|
return /* @__PURE__ */ i(
|
|
1317
1319
|
"button",
|
|
1318
1320
|
{
|
|
1319
1321
|
...s,
|
|
1320
1322
|
type: o,
|
|
1321
|
-
"aria-label":
|
|
1323
|
+
"aria-label": r,
|
|
1322
1324
|
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
1325
|
children: [
|
|
1324
1326
|
e,
|
|
1325
|
-
|
|
1327
|
+
n && /* @__PURE__ */ t("span", { className: "absolute top-2 right-2 w-2 h-2 bg-error rounded-full" })
|
|
1326
1328
|
]
|
|
1327
1329
|
}
|
|
1328
1330
|
);
|
|
1329
1331
|
}
|
|
1330
|
-
function
|
|
1332
|
+
function Tt({ hasUnread: e = !1, count: r = 0, onClick: n, label: a = "Notificações" }) {
|
|
1331
1333
|
return /* @__PURE__ */ t(
|
|
1332
|
-
|
|
1334
|
+
se,
|
|
1333
1335
|
{
|
|
1334
|
-
icon: /* @__PURE__ */ t(
|
|
1336
|
+
icon: /* @__PURE__ */ t(N, { name: "notifications", size: 20 }),
|
|
1335
1337
|
label: a,
|
|
1336
|
-
badge: e ||
|
|
1337
|
-
onClick:
|
|
1338
|
+
badge: e || r > 0,
|
|
1339
|
+
onClick: n
|
|
1338
1340
|
}
|
|
1339
1341
|
);
|
|
1340
1342
|
}
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1343
|
+
const Xe = {
|
|
1344
|
+
read: () => {
|
|
1345
|
+
try {
|
|
1346
|
+
const e = window.localStorage.getItem(U);
|
|
1347
|
+
return e === "dark" || e === "light" ? e : null;
|
|
1348
|
+
} catch {
|
|
1349
|
+
return null;
|
|
1350
|
+
}
|
|
1351
|
+
},
|
|
1352
|
+
write: (e) => {
|
|
1353
|
+
try {
|
|
1354
|
+
window.localStorage.setItem(U, e);
|
|
1355
|
+
} catch {
|
|
1356
|
+
return;
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
}, Mt = `try{if(localStorage.getItem('${U}')==='dark')document.documentElement.setAttribute('${W}','dark')}catch(e){}`;
|
|
1360
|
+
function Pe(e, r = document.documentElement) {
|
|
1361
|
+
e === "dark" ? r.setAttribute(W, "dark") : r.removeAttribute(W);
|
|
1362
|
+
}
|
|
1363
|
+
const O = G(null);
|
|
1364
|
+
function It({
|
|
1365
|
+
children: e,
|
|
1366
|
+
defaultTheme: r = "light",
|
|
1367
|
+
storage: n = Xe
|
|
1368
|
+
}) {
|
|
1369
|
+
const [a, o] = k(() => n.read() ?? r);
|
|
1370
|
+
C(() => {
|
|
1371
|
+
Pe(a);
|
|
1372
|
+
}, [a]);
|
|
1373
|
+
const s = j(
|
|
1374
|
+
(d) => {
|
|
1375
|
+
n.write(d), o(d);
|
|
1376
|
+
},
|
|
1377
|
+
[n]
|
|
1378
|
+
), l = j(() => s(a === "dark" ? "light" : "dark"), [s, a]), c = ge(
|
|
1379
|
+
() => ({ theme: a, isDark: a === "dark", setTheme: s, toggleTheme: l }),
|
|
1380
|
+
[a, s, l]
|
|
1381
|
+
);
|
|
1382
|
+
return /* @__PURE__ */ t(O.Provider, { value: c, children: e });
|
|
1383
|
+
}
|
|
1384
|
+
function et() {
|
|
1385
|
+
return E(O);
|
|
1386
|
+
}
|
|
1387
|
+
function $t() {
|
|
1388
|
+
const e = E(O);
|
|
1389
|
+
if (!e) throw new Error("useTheme precisa estar dentro de um ThemeProvider");
|
|
1390
|
+
return e;
|
|
1391
|
+
}
|
|
1392
|
+
function ie(e, r, n) {
|
|
1393
|
+
C(() => {
|
|
1394
|
+
if (!r) return;
|
|
1344
1395
|
const a = (s) => {
|
|
1345
|
-
s.key === "Escape" &&
|
|
1396
|
+
s.key === "Escape" && n();
|
|
1346
1397
|
}, o = (s) => {
|
|
1347
1398
|
var l;
|
|
1348
|
-
(l = e.current) != null && l.contains(s.target) ||
|
|
1399
|
+
(l = e.current) != null && l.contains(s.target) || n();
|
|
1349
1400
|
};
|
|
1350
1401
|
return document.addEventListener("keydown", a), document.addEventListener("mousedown", o), () => {
|
|
1351
1402
|
document.removeEventListener("keydown", a), document.removeEventListener("mousedown", o);
|
|
1352
1403
|
};
|
|
1353
|
-
}, [e,
|
|
1404
|
+
}, [e, r, n]);
|
|
1354
1405
|
}
|
|
1355
|
-
const
|
|
1406
|
+
const tt = {
|
|
1356
1407
|
myAccount: "Minha Conta",
|
|
1357
1408
|
logout: "Sair",
|
|
1409
|
+
darkMode: "Modo escuro",
|
|
1358
1410
|
user: "Usuário"
|
|
1359
1411
|
};
|
|
1360
|
-
function
|
|
1361
|
-
const c = { ...
|
|
1362
|
-
return
|
|
1412
|
+
function At({ name: e, email: r, shortName: n, profilePicUrl: a, onMyAccount: o, onLogout: s, labels: l }) {
|
|
1413
|
+
const c = { ...tt, ...l }, [d, f] = k(!1), m = M(null), p = et(), u = j(() => f(!1), []);
|
|
1414
|
+
return ie(m, d, u), /* @__PURE__ */ i("div", { ref: m, className: "relative flex items-center", children: [
|
|
1363
1415
|
/* @__PURE__ */ i(
|
|
1364
1416
|
"button",
|
|
1365
1417
|
{
|
|
1366
1418
|
type: "button",
|
|
1367
|
-
onClick: () => f((
|
|
1419
|
+
onClick: () => f((h) => !h),
|
|
1368
1420
|
"aria-haspopup": "true",
|
|
1369
1421
|
"aria-expanded": d,
|
|
1370
1422
|
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
1423
|
children: [
|
|
1372
|
-
|
|
1373
|
-
/* @__PURE__ */ t(
|
|
1374
|
-
/* @__PURE__ */ t("span", { className: `flex items-center transition-transform duration-200 ${d ? "rotate-180" : "rotate-0"}`, children: /* @__PURE__ */ t(
|
|
1424
|
+
n && /* @__PURE__ */ t("span", { className: "text-sm font-medium text-on-surface", children: n }),
|
|
1425
|
+
/* @__PURE__ */ t(P, { src: a, name: e, size: "sm", "aria-label": e || c.user }),
|
|
1426
|
+
/* @__PURE__ */ t("span", { className: `flex items-center transition-transform duration-200 ${d ? "rotate-180" : "rotate-0"}`, children: /* @__PURE__ */ t(N, { name: "expand_more", size: 13 }) })
|
|
1375
1427
|
]
|
|
1376
1428
|
}
|
|
1377
1429
|
),
|
|
@@ -1382,10 +1434,10 @@ function kt({ name: e, email: n, shortName: r, profilePicUrl: a, onMyAccount: o,
|
|
|
1382
1434
|
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
1435
|
children: [
|
|
1384
1436
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-3 p-4", children: [
|
|
1385
|
-
/* @__PURE__ */ t(
|
|
1437
|
+
/* @__PURE__ */ t(P, { src: a, name: e, size: "sm" }),
|
|
1386
1438
|
/* @__PURE__ */ i("div", { className: "flex flex-col gap-0.5 min-w-0", children: [
|
|
1387
1439
|
/* @__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:
|
|
1440
|
+
/* @__PURE__ */ t("span", { className: "text-xs text-on-surface-variant whitespace-nowrap overflow-hidden text-ellipsis", children: r })
|
|
1389
1441
|
] })
|
|
1390
1442
|
] }),
|
|
1391
1443
|
/* @__PURE__ */ t("hr", { className: "m-0 border-t border-surface-container-highest" }),
|
|
@@ -1395,15 +1447,41 @@ function kt({ name: e, email: n, shortName: r, profilePicUrl: a, onMyAccount: o,
|
|
|
1395
1447
|
type: "button",
|
|
1396
1448
|
role: "menuitem",
|
|
1397
1449
|
onClick: () => {
|
|
1398
|
-
|
|
1450
|
+
u(), o();
|
|
1399
1451
|
},
|
|
1400
1452
|
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
1453
|
children: [
|
|
1402
|
-
/* @__PURE__ */ t(
|
|
1454
|
+
/* @__PURE__ */ t(N, { name: "person", size: 15 }),
|
|
1403
1455
|
/* @__PURE__ */ t("span", { className: "text-sm font-medium", children: c.myAccount })
|
|
1404
1456
|
]
|
|
1405
1457
|
}
|
|
1406
1458
|
),
|
|
1459
|
+
p && /* @__PURE__ */ i(
|
|
1460
|
+
"button",
|
|
1461
|
+
{
|
|
1462
|
+
type: "button",
|
|
1463
|
+
role: "menuitemcheckbox",
|
|
1464
|
+
"aria-checked": p.isDark,
|
|
1465
|
+
onClick: p.toggleTheme,
|
|
1466
|
+
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",
|
|
1467
|
+
children: [
|
|
1468
|
+
/* @__PURE__ */ t(N, { name: "dark_mode", size: 15 }),
|
|
1469
|
+
/* @__PURE__ */ t("span", { className: "flex-1 text-sm font-medium", children: c.darkMode }),
|
|
1470
|
+
/* @__PURE__ */ t(
|
|
1471
|
+
"span",
|
|
1472
|
+
{
|
|
1473
|
+
className: `relative w-7 h-4 shrink-0 rounded-full transition-colors duration-150 ${p.isDark ? "bg-zeo-orange" : "bg-line-strong"}`,
|
|
1474
|
+
children: /* @__PURE__ */ t(
|
|
1475
|
+
"span",
|
|
1476
|
+
{
|
|
1477
|
+
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"}`
|
|
1478
|
+
}
|
|
1479
|
+
)
|
|
1480
|
+
}
|
|
1481
|
+
)
|
|
1482
|
+
]
|
|
1483
|
+
}
|
|
1484
|
+
),
|
|
1407
1485
|
/* @__PURE__ */ t("hr", { className: "m-0 border-t border-surface-container-highest" }),
|
|
1408
1486
|
/* @__PURE__ */ i(
|
|
1409
1487
|
"button",
|
|
@@ -1411,11 +1489,11 @@ function kt({ name: e, email: n, shortName: r, profilePicUrl: a, onMyAccount: o,
|
|
|
1411
1489
|
type: "button",
|
|
1412
1490
|
role: "menuitem",
|
|
1413
1491
|
onClick: () => {
|
|
1414
|
-
|
|
1492
|
+
u(), s();
|
|
1415
1493
|
},
|
|
1416
1494
|
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
1495
|
children: [
|
|
1418
|
-
/* @__PURE__ */ t(
|
|
1496
|
+
/* @__PURE__ */ t(N, { name: "logout", size: 15 }),
|
|
1419
1497
|
/* @__PURE__ */ t("span", { className: "text-sm font-medium", children: c.logout })
|
|
1420
1498
|
]
|
|
1421
1499
|
}
|
|
@@ -1425,21 +1503,21 @@ function kt({ name: e, email: n, shortName: r, profilePicUrl: a, onMyAccount: o,
|
|
|
1425
1503
|
)
|
|
1426
1504
|
] });
|
|
1427
1505
|
}
|
|
1428
|
-
const
|
|
1506
|
+
const rt = {
|
|
1429
1507
|
help: "Ajuda",
|
|
1430
1508
|
documentation: "Documentação",
|
|
1431
1509
|
faq: "F.A.Q.",
|
|
1432
1510
|
changelog: "Changelog",
|
|
1433
1511
|
contactUs: "Contate-nos"
|
|
1434
1512
|
};
|
|
1435
|
-
function
|
|
1436
|
-
const
|
|
1437
|
-
return
|
|
1513
|
+
function Et({ labels: e, hrefs: r }) {
|
|
1514
|
+
const n = { ...rt, ...e }, a = M(null), [o, s] = k(!1), l = j(() => s(!1), []);
|
|
1515
|
+
return ie(a, o, l), /* @__PURE__ */ i("div", { ref: a, className: "relative", children: [
|
|
1438
1516
|
/* @__PURE__ */ t(
|
|
1439
|
-
|
|
1517
|
+
se,
|
|
1440
1518
|
{
|
|
1441
|
-
icon: /* @__PURE__ */ t(
|
|
1442
|
-
label:
|
|
1519
|
+
icon: /* @__PURE__ */ t(N, { name: "help", size: 20 }),
|
|
1520
|
+
label: n.help,
|
|
1443
1521
|
onClick: () => s((c) => !c),
|
|
1444
1522
|
"aria-haspopup": "true",
|
|
1445
1523
|
"aria-expanded": o
|
|
@@ -1451,57 +1529,57 @@ function jt({ labels: e, hrefs: n }) {
|
|
|
1451
1529
|
role: "menu",
|
|
1452
1530
|
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
1531
|
children: [
|
|
1454
|
-
/* @__PURE__ */ t(
|
|
1455
|
-
/* @__PURE__ */ t(
|
|
1456
|
-
/* @__PURE__ */ t(
|
|
1532
|
+
/* @__PURE__ */ t(A, { icon: "description", label: n.documentation, href: r == null ? void 0 : r.documentation }),
|
|
1533
|
+
/* @__PURE__ */ t(A, { icon: "help_outline", label: n.faq, href: r == null ? void 0 : r.faq }),
|
|
1534
|
+
/* @__PURE__ */ t(A, { icon: "assignment", label: n.changelog, href: r == null ? void 0 : r.changelog }),
|
|
1457
1535
|
/* @__PURE__ */ t("div", { className: "my-1 border-t border-surface-container-highest" }),
|
|
1458
|
-
/* @__PURE__ */ t(
|
|
1536
|
+
/* @__PURE__ */ t(A, { icon: "mail", label: n.contactUs, href: r == null ? void 0 : r.contactUs })
|
|
1459
1537
|
]
|
|
1460
1538
|
}
|
|
1461
1539
|
)
|
|
1462
1540
|
] });
|
|
1463
1541
|
}
|
|
1464
|
-
function
|
|
1542
|
+
function A({ icon: e, label: r, href: n = "#" }) {
|
|
1465
1543
|
return /* @__PURE__ */ i(
|
|
1466
1544
|
"a",
|
|
1467
1545
|
{
|
|
1468
|
-
href:
|
|
1546
|
+
href: n,
|
|
1469
1547
|
role: "menuitem",
|
|
1470
1548
|
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
1549
|
children: [
|
|
1472
|
-
/* @__PURE__ */ t(
|
|
1473
|
-
|
|
1550
|
+
/* @__PURE__ */ t(N, { name: e, size: 18, className: "opacity-70" }),
|
|
1551
|
+
r
|
|
1474
1552
|
]
|
|
1475
1553
|
}
|
|
1476
1554
|
);
|
|
1477
1555
|
}
|
|
1478
|
-
const
|
|
1556
|
+
const St = [
|
|
1479
1557
|
{ id: "tower", status: "active", iconName: "cell_tower", labelKey: "modules.tower.title" },
|
|
1480
1558
|
{ id: "antennas", status: "active", iconName: "settings_input_antenna", labelKey: "modules.antennas.title" },
|
|
1481
1559
|
{ 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:
|
|
1560
|
+
{ id: "radier", status: "active", iconName: "layers", IconComponent: De, labelKey: "modules.radier.title" },
|
|
1561
|
+
{ id: "caisson_foundation", status: "coming_soon", iconName: "filter_alt", IconComponent: He, labelKey: "modules.caisson_foundation.title" },
|
|
1562
|
+
{ id: "pole", status: "coming_soon", iconName: "fence", IconComponent: Ke, labelKey: "modules.pole.title" },
|
|
1485
1563
|
{ id: "dashboards", status: "coming_soon", iconName: "dashboard", labelKey: "modules.dashboards.title" }
|
|
1486
1564
|
];
|
|
1487
|
-
function
|
|
1488
|
-
return e.filter((a) =>
|
|
1565
|
+
function Rt(e, r, n) {
|
|
1566
|
+
return e.filter((a) => r.includes(a.id) || n.includes(a.id)).map((a) => ({ module: a, hasAccess: n.includes(a.id) }));
|
|
1489
1567
|
}
|
|
1490
|
-
const
|
|
1568
|
+
const nt = {
|
|
1491
1569
|
xs: "w-3 h-3 border",
|
|
1492
1570
|
sm: "w-4 h-4 border-2",
|
|
1493
1571
|
md: "w-6 h-6 border-2",
|
|
1494
1572
|
lg: "w-8 h-8 border-[3px]",
|
|
1495
1573
|
xl: "w-12 h-12 border-4"
|
|
1496
|
-
},
|
|
1497
|
-
primary: "border-orange-200 border-t-zeo-orange",
|
|
1574
|
+
}, at = {
|
|
1575
|
+
primary: "border-orange-200 dark:border-zeo-orange/30 border-t-zeo-orange",
|
|
1498
1576
|
secondary: "border-surface-container-high border-t-on-surface-variant",
|
|
1499
1577
|
white: "border-white/30 border-t-white"
|
|
1500
1578
|
};
|
|
1501
|
-
function
|
|
1579
|
+
function Ft({
|
|
1502
1580
|
size: e = "md",
|
|
1503
|
-
variant:
|
|
1504
|
-
label:
|
|
1581
|
+
variant: r = "primary",
|
|
1582
|
+
label: n = "Carregando...",
|
|
1505
1583
|
className: a = "",
|
|
1506
1584
|
...o
|
|
1507
1585
|
}) {
|
|
@@ -1509,65 +1587,65 @@ function Lt({
|
|
|
1509
1587
|
"span",
|
|
1510
1588
|
{
|
|
1511
1589
|
role: "status",
|
|
1512
|
-
"aria-label":
|
|
1590
|
+
"aria-label": n,
|
|
1513
1591
|
className: [
|
|
1514
1592
|
"inline-block rounded-full animate-spin",
|
|
1515
|
-
|
|
1516
|
-
|
|
1593
|
+
nt[e],
|
|
1594
|
+
at[r],
|
|
1517
1595
|
a
|
|
1518
1596
|
].filter(Boolean).join(" "),
|
|
1519
1597
|
...o
|
|
1520
1598
|
}
|
|
1521
1599
|
);
|
|
1522
1600
|
}
|
|
1523
|
-
function
|
|
1601
|
+
function Vt({ children: e, className: r = "", ...n }) {
|
|
1524
1602
|
return /* @__PURE__ */ t(
|
|
1525
1603
|
"div",
|
|
1526
1604
|
{
|
|
1527
|
-
className: ["overflow-x-auto rounded-xl border border-surface-container-high shadow-sm",
|
|
1528
|
-
...
|
|
1605
|
+
className: ["overflow-x-auto rounded-xl border border-surface-container-high shadow-sm", r].filter(Boolean).join(" "),
|
|
1606
|
+
...n,
|
|
1529
1607
|
children: /* @__PURE__ */ t("table", { className: "w-full text-sm", children: e })
|
|
1530
1608
|
}
|
|
1531
1609
|
);
|
|
1532
1610
|
}
|
|
1533
|
-
function
|
|
1611
|
+
function Dt({ children: e, className: r = "", ...n }) {
|
|
1534
1612
|
return /* @__PURE__ */ t(
|
|
1535
1613
|
"thead",
|
|
1536
1614
|
{
|
|
1537
|
-
className: ["bg-surface-container-low border-b border-surface-container-high",
|
|
1538
|
-
...
|
|
1615
|
+
className: ["bg-surface-container-low border-b border-surface-container-high", r].filter(Boolean).join(" "),
|
|
1616
|
+
...n,
|
|
1539
1617
|
children: e
|
|
1540
1618
|
}
|
|
1541
1619
|
);
|
|
1542
1620
|
}
|
|
1543
|
-
function
|
|
1621
|
+
function Ht({ children: e, className: r = "", ...n }) {
|
|
1544
1622
|
return /* @__PURE__ */ t(
|
|
1545
1623
|
"tbody",
|
|
1546
1624
|
{
|
|
1547
|
-
className: ["bg-
|
|
1548
|
-
...
|
|
1625
|
+
className: ["bg-surface-container-lowest divide-y divide-surface-container-high", r].filter(Boolean).join(" "),
|
|
1626
|
+
...n,
|
|
1549
1627
|
children: e
|
|
1550
1628
|
}
|
|
1551
1629
|
);
|
|
1552
1630
|
}
|
|
1553
|
-
function
|
|
1631
|
+
function Kt({ selected: e = !1, children: r, className: n = "", ...a }) {
|
|
1554
1632
|
return /* @__PURE__ */ t(
|
|
1555
1633
|
"tr",
|
|
1556
1634
|
{
|
|
1557
1635
|
className: [
|
|
1558
1636
|
"hover:bg-surface-container-low transition-colors",
|
|
1559
|
-
e ? "bg-orange-50/40" : "",
|
|
1560
|
-
|
|
1637
|
+
e ? "bg-orange-50/40 dark:bg-zeo-orange/[0.12]" : "",
|
|
1638
|
+
n
|
|
1561
1639
|
].filter(Boolean).join(" "),
|
|
1562
1640
|
...a,
|
|
1563
|
-
children:
|
|
1641
|
+
children: r
|
|
1564
1642
|
}
|
|
1565
1643
|
);
|
|
1566
1644
|
}
|
|
1567
|
-
function
|
|
1645
|
+
function Ut({
|
|
1568
1646
|
sortable: e = !1,
|
|
1569
|
-
sorted:
|
|
1570
|
-
onSort:
|
|
1647
|
+
sorted: r = !1,
|
|
1648
|
+
onSort: n,
|
|
1571
1649
|
children: a,
|
|
1572
1650
|
className: o = "",
|
|
1573
1651
|
...s
|
|
@@ -1580,67 +1658,67 @@ function It({
|
|
|
1580
1658
|
e ? "cursor-pointer hover:text-on-surface select-none" : "",
|
|
1581
1659
|
o
|
|
1582
1660
|
].filter(Boolean).join(" "),
|
|
1583
|
-
onClick: e ?
|
|
1661
|
+
onClick: e ? n : void 0,
|
|
1584
1662
|
...s,
|
|
1585
1663
|
children: /* @__PURE__ */ i("span", { className: "inline-flex items-center gap-1", children: [
|
|
1586
1664
|
a,
|
|
1587
1665
|
e && /* @__PURE__ */ t(
|
|
1588
1666
|
"span",
|
|
1589
1667
|
{
|
|
1590
|
-
className: `material-symbols-outlined text-[14px] ${
|
|
1591
|
-
children:
|
|
1668
|
+
className: `material-symbols-outlined text-[14px] ${r ? "text-zeo-orange" : "opacity-40"}`,
|
|
1669
|
+
children: r === "asc" ? "arrow_upward" : r === "desc" ? "arrow_downward" : "unfold_more"
|
|
1592
1670
|
}
|
|
1593
1671
|
)
|
|
1594
1672
|
] })
|
|
1595
1673
|
}
|
|
1596
1674
|
);
|
|
1597
1675
|
}
|
|
1598
|
-
function
|
|
1676
|
+
function Wt({ muted: e = !1, mono: r = !1, children: n, className: a = "", ...o }) {
|
|
1599
1677
|
return /* @__PURE__ */ t(
|
|
1600
1678
|
"td",
|
|
1601
1679
|
{
|
|
1602
1680
|
className: [
|
|
1603
1681
|
"px-4 py-3",
|
|
1604
1682
|
e ? "text-on-surface-variant" : "text-on-surface",
|
|
1605
|
-
|
|
1683
|
+
r ? "font-mono text-xs" : "",
|
|
1606
1684
|
a
|
|
1607
1685
|
].filter(Boolean).join(" "),
|
|
1608
1686
|
...o,
|
|
1609
|
-
children:
|
|
1687
|
+
children: n
|
|
1610
1688
|
}
|
|
1611
1689
|
);
|
|
1612
1690
|
}
|
|
1613
|
-
const
|
|
1614
|
-
function
|
|
1615
|
-
const e =
|
|
1691
|
+
const le = G(null);
|
|
1692
|
+
function q() {
|
|
1693
|
+
const e = E(le);
|
|
1616
1694
|
if (!e) throw new Error("Tab must be used inside Tabs");
|
|
1617
1695
|
return e;
|
|
1618
1696
|
}
|
|
1619
|
-
const
|
|
1620
|
-
function
|
|
1621
|
-
return /* @__PURE__ */ t(
|
|
1697
|
+
const ce = G({ stretch: !1 });
|
|
1698
|
+
function Gt({ value: e, onChange: r, variant: n = "default", children: a }) {
|
|
1699
|
+
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: a }) });
|
|
1622
1700
|
}
|
|
1623
|
-
function
|
|
1624
|
-
const { variant: o } =
|
|
1625
|
-
default:
|
|
1701
|
+
function Ot({ children: e, className: r = "", stretch: n = !1, ...a }) {
|
|
1702
|
+
const { variant: o } = q(), s = {
|
|
1703
|
+
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
1704
|
underline: "flex gap-0 border-b border-surface-container-high w-full",
|
|
1627
1705
|
vertical: "flex flex-col gap-1 bg-surface-container-low rounded-lg p-1 w-48 shrink-0 h-fit"
|
|
1628
1706
|
}[o];
|
|
1629
|
-
return /* @__PURE__ */ t(
|
|
1707
|
+
return /* @__PURE__ */ t(ce.Provider, { value: { stretch: n }, children: /* @__PURE__ */ t(
|
|
1630
1708
|
"div",
|
|
1631
1709
|
{
|
|
1632
1710
|
role: "tablist",
|
|
1633
|
-
className: [s,
|
|
1711
|
+
className: [s, r].filter(Boolean).join(" "),
|
|
1634
1712
|
...a,
|
|
1635
1713
|
children: e
|
|
1636
1714
|
}
|
|
1637
1715
|
) });
|
|
1638
1716
|
}
|
|
1639
|
-
function
|
|
1640
|
-
const { active: s, onChange: l, variant: c } =
|
|
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",
|
|
1717
|
+
function qt({ value: e, label: r, icon: n, badge: a, disabled: o = !1 }) {
|
|
1718
|
+
const { active: s, onChange: l, variant: c } = q(), { stretch: d } = E(ce), 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 = {
|
|
1719
|
+
default: f ? "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",
|
|
1642
1720
|
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"
|
|
1721
|
+
vertical: f ? "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
1722
|
}[c];
|
|
1645
1723
|
return /* @__PURE__ */ i(
|
|
1646
1724
|
"button",
|
|
@@ -1652,15 +1730,15 @@ function St({ value: e, label: n, icon: r, badge: a, disabled: o = !1 }) {
|
|
|
1652
1730
|
onClick: () => !o && l(e),
|
|
1653
1731
|
className: [m, h, u, o ? p : ""].filter(Boolean).join(" "),
|
|
1654
1732
|
children: [
|
|
1655
|
-
|
|
1733
|
+
n && /* @__PURE__ */ t(
|
|
1656
1734
|
"span",
|
|
1657
1735
|
{
|
|
1658
1736
|
className: "material-symbols-outlined text-[18px]",
|
|
1659
1737
|
style: f ? { fontVariationSettings: "'FILL' 1" } : void 0,
|
|
1660
|
-
children:
|
|
1738
|
+
children: n
|
|
1661
1739
|
}
|
|
1662
1740
|
),
|
|
1663
|
-
|
|
1741
|
+
r,
|
|
1664
1742
|
a !== void 0 && /* @__PURE__ */ t(
|
|
1665
1743
|
"span",
|
|
1666
1744
|
{
|
|
@@ -1672,18 +1750,18 @@ function St({ value: e, label: n, icon: r, badge: a, disabled: o = !1 }) {
|
|
|
1672
1750
|
}
|
|
1673
1751
|
);
|
|
1674
1752
|
}
|
|
1675
|
-
function
|
|
1676
|
-
const { active: o } =
|
|
1753
|
+
function Zt({ value: e, children: r, className: n = "", stretch: a = !1 }) {
|
|
1754
|
+
const { active: o } = q();
|
|
1677
1755
|
return o !== e ? null : /* @__PURE__ */ t(
|
|
1678
1756
|
"div",
|
|
1679
1757
|
{
|
|
1680
1758
|
role: "tabpanel",
|
|
1681
|
-
className: [a ? "flex-1" : "",
|
|
1682
|
-
children:
|
|
1759
|
+
className: [a ? "flex-1" : "", n].filter(Boolean).join(" "),
|
|
1760
|
+
children: r
|
|
1683
1761
|
}
|
|
1684
1762
|
);
|
|
1685
1763
|
}
|
|
1686
|
-
const
|
|
1764
|
+
const ot = {
|
|
1687
1765
|
top: {
|
|
1688
1766
|
wrapper: "bottom-full left-1/2 -translate-x-1/2 mb-2",
|
|
1689
1767
|
arrow: "top-full left-1/2 -translate-x-1/2 border-t-4 border-x-4 border-x-transparent border-b-0"
|
|
@@ -1700,19 +1778,19 @@ const Ye = {
|
|
|
1700
1778
|
wrapper: "left-full top-1/2 -translate-y-1/2 ml-2",
|
|
1701
1779
|
arrow: "right-full top-1/2 -translate-y-1/2 border-r-4 border-y-4 border-y-transparent border-l-0"
|
|
1702
1780
|
}
|
|
1703
|
-
},
|
|
1704
|
-
dark: { tooltip: "bg-
|
|
1705
|
-
light: { tooltip: "bg-
|
|
1781
|
+
}, st = {
|
|
1782
|
+
dark: { tooltip: "bg-tooltip text-white", arrow: "border-t-tooltip border-r-tooltip border-b-tooltip border-l-tooltip" },
|
|
1783
|
+
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
1784
|
};
|
|
1707
|
-
function
|
|
1785
|
+
function Qt({
|
|
1708
1786
|
content: e,
|
|
1709
|
-
position:
|
|
1710
|
-
variant:
|
|
1787
|
+
position: r = "top",
|
|
1788
|
+
variant: n = "dark",
|
|
1711
1789
|
children: a,
|
|
1712
1790
|
className: o = "",
|
|
1713
1791
|
...s
|
|
1714
1792
|
}) {
|
|
1715
|
-
const l =
|
|
1793
|
+
const l = ot[r], c = st[n];
|
|
1716
1794
|
return /* @__PURE__ */ i("div", { className: ["relative inline-flex group", o].filter(Boolean).join(" "), ...s, children: [
|
|
1717
1795
|
a,
|
|
1718
1796
|
/* @__PURE__ */ i(
|
|
@@ -1735,56 +1813,65 @@ function Rt({
|
|
|
1735
1813
|
] });
|
|
1736
1814
|
}
|
|
1737
1815
|
export {
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
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
|
-
|
|
1816
|
+
ut as Alert,
|
|
1817
|
+
zt as AppNavbar,
|
|
1818
|
+
Ct as AppShellLayout,
|
|
1819
|
+
Bt as AppSidebar,
|
|
1820
|
+
P as Avatar,
|
|
1821
|
+
ft as Badge,
|
|
1822
|
+
mt as Breadcrumb,
|
|
1823
|
+
Me as Button,
|
|
1824
|
+
pt as ButtonGroup,
|
|
1825
|
+
ht as Card,
|
|
1826
|
+
bt as CardFooter,
|
|
1827
|
+
xt as CardHeader,
|
|
1828
|
+
Re as Checkbox,
|
|
1829
|
+
gt as Dropdown,
|
|
1830
|
+
Et as HelpMenu,
|
|
1831
|
+
N as Icon,
|
|
1832
|
+
Ge as Input,
|
|
1833
|
+
St as MODULE_CATALOG,
|
|
1834
|
+
wt as Modal,
|
|
1835
|
+
yt as ModalBody,
|
|
1836
|
+
Nt as ModalFooter,
|
|
1837
|
+
vt as ModalHeader,
|
|
1838
|
+
se as NavbarIconButton,
|
|
1839
|
+
_t as NavbarSearch,
|
|
1840
|
+
Lt as NavbarTitle,
|
|
1841
|
+
Tt as NotificationsBell,
|
|
1842
|
+
kt as Pagination,
|
|
1843
|
+
Ke as PosteIcon,
|
|
1844
|
+
jt as ProgressBar,
|
|
1845
|
+
De as RadierIcon,
|
|
1846
|
+
Fe as Radio,
|
|
1847
|
+
Ae as Select,
|
|
1848
|
+
oe as SidebarItem,
|
|
1849
|
+
Je as SidebarSection,
|
|
1850
|
+
Ft as Spinner,
|
|
1851
|
+
Ve as Switch,
|
|
1852
|
+
W as THEME_ATTRIBUTE,
|
|
1853
|
+
Mt as THEME_INIT_SCRIPT,
|
|
1854
|
+
U as THEME_STORAGE_KEY,
|
|
1855
|
+
qt as Tab,
|
|
1856
|
+
Ot as TabList,
|
|
1857
|
+
Zt as TabPanel,
|
|
1858
|
+
Vt as Table,
|
|
1859
|
+
Ht as TableBody,
|
|
1860
|
+
Wt as TableCell,
|
|
1861
|
+
Dt as TableHead,
|
|
1862
|
+
Ut as TableHeaderCell,
|
|
1863
|
+
Kt as TableRow,
|
|
1864
|
+
Gt as Tabs,
|
|
1865
|
+
Ee as Textarea,
|
|
1866
|
+
It as ThemeProvider,
|
|
1867
|
+
Qt as Tooltip,
|
|
1868
|
+
He as TubulaoIcon,
|
|
1869
|
+
At as UserMenu,
|
|
1870
|
+
Pe as applyTheme,
|
|
1871
|
+
Xt as colorTokens,
|
|
1872
|
+
Xe as localStorageThemeStorage,
|
|
1873
|
+
Rt as resolveModuleAccess,
|
|
1874
|
+
Pt as shadowTokens,
|
|
1875
|
+
ie as useDismiss,
|
|
1876
|
+
$t as useTheme
|
|
1790
1877
|
};
|