@hemerson/design-system 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -0
- package/dist/enableGlassRefraction-CgDeg-2E.js +88 -0
- package/dist/enableGlassRefraction-CgDeg-2E.js.map +1 -0
- package/dist/glass/enableGlassRefraction.d.ts +6 -5
- package/dist/glass/index.d.ts +1 -0
- package/dist/glass/lens.d.ts +15 -0
- package/dist/glass.js +1 -0
- package/dist/index.js +211 -257
- package/dist/index.js.map +1 -1
- package/dist/styles.css +76 -28
- package/dist/tokens.css +16 -10
- package/dist/tokens.json +39 -15
- package/package.json +11 -2
package/dist/index.js
CHANGED
|
@@ -1,66 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as e } from "./enableGlassRefraction-CgDeg-2E.js";
|
|
2
|
+
import { forwardRef as t, useEffect as n, useId as r, useLayoutEffect as i, useRef as a, useState as o } from "react";
|
|
3
|
+
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
4
|
+
import { createPortal as u } from "react-dom";
|
|
4
5
|
//#region src/internal/cx.ts
|
|
5
|
-
function
|
|
6
|
+
function d(...e) {
|
|
6
7
|
return e.filter(Boolean).join(" ");
|
|
7
8
|
}
|
|
8
9
|
//#endregion
|
|
9
10
|
//#region src/components/GlassPanel/GlassPanel.tsx
|
|
10
|
-
var
|
|
11
|
-
return /* @__PURE__ */
|
|
11
|
+
var f = t(function({ as: e = "div", tone: t = "regular", className: n, ...r }, i) {
|
|
12
|
+
return /* @__PURE__ */ c(e, {
|
|
12
13
|
...r,
|
|
13
14
|
ref: i,
|
|
14
|
-
className:
|
|
15
|
+
className: d("hds-glass", t !== "regular" && `hds-glass--${t}`, n)
|
|
15
16
|
});
|
|
16
|
-
}),
|
|
17
|
-
function p() {
|
|
18
|
-
if (typeof document > "u") return !1;
|
|
19
|
-
let e = (navigator.userAgentData?.brands ?? []).some(({ brand: e }) => e.includes("Chromium")), t = window.matchMedia?.("(prefers-reduced-transparency: reduce)").matches ?? !1;
|
|
20
|
-
if (!e || t) return !1;
|
|
21
|
-
if (!document.getElementById("hds-glass-defs")) {
|
|
22
|
-
let e = document.createElementNS(f, "svg");
|
|
23
|
-
e.setAttribute("id", "hds-glass-defs"), e.setAttribute("width", "0"), e.setAttribute("height", "0"), e.setAttribute("aria-hidden", "true"), e.style.position = "absolute";
|
|
24
|
-
let t = document.createElementNS(f, "filter");
|
|
25
|
-
Object.entries({
|
|
26
|
-
id: "hds-glass-distortion",
|
|
27
|
-
x: "-20%",
|
|
28
|
-
y: "-20%",
|
|
29
|
-
width: "140%",
|
|
30
|
-
height: "140%",
|
|
31
|
-
filterUnits: "objectBoundingBox"
|
|
32
|
-
}).forEach(([e, n]) => t.setAttribute(e, n));
|
|
33
|
-
for (let [e, n] of [
|
|
34
|
-
["feTurbulence", {
|
|
35
|
-
type: "fractalNoise",
|
|
36
|
-
baseFrequency: "0.012 0.012",
|
|
37
|
-
numOctaves: "2",
|
|
38
|
-
seed: "8",
|
|
39
|
-
result: "noise"
|
|
40
|
-
}],
|
|
41
|
-
["feGaussianBlur", {
|
|
42
|
-
in: "noise",
|
|
43
|
-
stdDeviation: "3",
|
|
44
|
-
result: "blurredNoise"
|
|
45
|
-
}],
|
|
46
|
-
["feDisplacementMap", {
|
|
47
|
-
in: "SourceGraphic",
|
|
48
|
-
in2: "blurredNoise",
|
|
49
|
-
scale: "40",
|
|
50
|
-
xChannelSelector: "R",
|
|
51
|
-
yChannelSelector: "G"
|
|
52
|
-
}]
|
|
53
|
-
]) {
|
|
54
|
-
let r = document.createElementNS(f, e);
|
|
55
|
-
Object.entries(n).forEach(([e, t]) => r.setAttribute(e, t)), t.appendChild(r);
|
|
56
|
-
}
|
|
57
|
-
e.appendChild(t), document.body.appendChild(e);
|
|
58
|
-
}
|
|
59
|
-
return document.documentElement.setAttribute("data-glass-refraction", ""), !0;
|
|
60
|
-
}
|
|
61
|
-
//#endregion
|
|
62
|
-
//#region src/internal/Icon.tsx
|
|
63
|
-
var m = {
|
|
17
|
+
}), p = {
|
|
64
18
|
check: ["M20 6 9 17l-5-5"],
|
|
65
19
|
x: ["M18 6 6 18", "m6 6 12 12"],
|
|
66
20
|
"chevron-down": ["m6 9 6 6 6-6"],
|
|
@@ -82,9 +36,9 @@ var m = {
|
|
|
82
36
|
],
|
|
83
37
|
loader: ["M21 12a9 9 0 1 1-6.219-8.56"]
|
|
84
38
|
};
|
|
85
|
-
function
|
|
86
|
-
return /* @__PURE__ */
|
|
87
|
-
className:
|
|
39
|
+
function m({ name: e, className: t }) {
|
|
40
|
+
return /* @__PURE__ */ c("svg", {
|
|
41
|
+
className: d("hds-icon", t),
|
|
88
42
|
viewBox: "0 0 24 24",
|
|
89
43
|
fill: "none",
|
|
90
44
|
stroke: "currentColor",
|
|
@@ -93,69 +47,69 @@ function h({ name: e, className: t }) {
|
|
|
93
47
|
strokeLinejoin: "round",
|
|
94
48
|
"aria-hidden": "true",
|
|
95
49
|
focusable: "false",
|
|
96
|
-
children:
|
|
50
|
+
children: p[e].map((e) => e === "circle" ? /* @__PURE__ */ c("circle", {
|
|
97
51
|
cx: 12,
|
|
98
52
|
cy: 12,
|
|
99
53
|
r: 10
|
|
100
|
-
}, e) : /* @__PURE__ */
|
|
54
|
+
}, e) : /* @__PURE__ */ c("path", { d: e }, e))
|
|
101
55
|
});
|
|
102
56
|
}
|
|
103
57
|
//#endregion
|
|
104
58
|
//#region src/components/Button/Button.tsx
|
|
105
|
-
var
|
|
106
|
-
return r && !f["aria-label"] && !f["aria-labelledby"] && console.warn("Button: an icon-only button needs an aria-label."), /* @__PURE__ */
|
|
59
|
+
var h = t(function({ variant: e = "primary", size: t = "md", icon: n, iconOnly: r = !1, loading: i = !1, disabled: a, type: o = "button", className: s, children: u, ...f }, p) {
|
|
60
|
+
return r && !f["aria-label"] && !f["aria-labelledby"] && console.warn("Button: an icon-only button needs an aria-label."), /* @__PURE__ */ l("button", {
|
|
107
61
|
...f,
|
|
108
62
|
ref: p,
|
|
109
63
|
type: o,
|
|
110
64
|
disabled: a || i,
|
|
111
65
|
"aria-busy": i || void 0,
|
|
112
|
-
className:
|
|
113
|
-
children: [i ? /* @__PURE__ */
|
|
66
|
+
className: d("hds-btn", `hds-btn--${e}`, t !== "md" && `hds-btn--${t}`, r && "hds-btn--icon", e === "glass" && "hds-glass", s),
|
|
67
|
+
children: [i ? /* @__PURE__ */ c(m, {
|
|
114
68
|
name: "loader",
|
|
115
69
|
className: "hds-spin"
|
|
116
|
-
}) : n, r ? null :
|
|
70
|
+
}) : n, r ? null : u]
|
|
117
71
|
});
|
|
118
72
|
});
|
|
119
73
|
//#endregion
|
|
120
74
|
//#region src/components/NavBar/NavBar.tsx
|
|
121
|
-
function
|
|
122
|
-
return /* @__PURE__ */
|
|
75
|
+
function g({ active: e = !1, className: t, ...n }) {
|
|
76
|
+
return /* @__PURE__ */ c("a", {
|
|
123
77
|
...n,
|
|
124
78
|
"aria-current": e ? "page" : void 0,
|
|
125
|
-
className:
|
|
79
|
+
className: d("hds-navbar-link", t)
|
|
126
80
|
});
|
|
127
81
|
}
|
|
128
|
-
function
|
|
129
|
-
return /* @__PURE__ */
|
|
82
|
+
function _({ title: e, actions: t, navLabel: n = "Principal", className: r, children: i, ...a }) {
|
|
83
|
+
return /* @__PURE__ */ l(f, {
|
|
130
84
|
...a,
|
|
131
85
|
as: "header",
|
|
132
|
-
className:
|
|
86
|
+
className: d("hds-navbar", r),
|
|
133
87
|
children: [
|
|
134
|
-
e ? /* @__PURE__ */
|
|
88
|
+
e ? /* @__PURE__ */ c("p", {
|
|
135
89
|
className: "hds-navbar-title",
|
|
136
90
|
children: e
|
|
137
91
|
}) : null,
|
|
138
|
-
i ? /* @__PURE__ */
|
|
92
|
+
i ? /* @__PURE__ */ c("nav", {
|
|
139
93
|
className: "hds-navbar-nav",
|
|
140
94
|
"aria-label": n,
|
|
141
95
|
children: i
|
|
142
96
|
}) : null,
|
|
143
|
-
t ? /* @__PURE__ */
|
|
97
|
+
t ? /* @__PURE__ */ c("div", {
|
|
144
98
|
className: "hds-navbar-actions",
|
|
145
99
|
children: t
|
|
146
100
|
}) : null
|
|
147
101
|
]
|
|
148
102
|
});
|
|
149
103
|
}
|
|
150
|
-
var
|
|
104
|
+
var v = Object.assign(_, { Link: g });
|
|
151
105
|
//#endregion
|
|
152
106
|
//#region src/components/Sidebar/Sidebar.tsx
|
|
153
|
-
function
|
|
154
|
-
return /* @__PURE__ */
|
|
107
|
+
function y({ items: e, footer: t, floating: n = !1, label: r = "Navegação", className: i }) {
|
|
108
|
+
return /* @__PURE__ */ l(f, {
|
|
155
109
|
as: "nav",
|
|
156
110
|
"aria-label": r,
|
|
157
|
-
className:
|
|
158
|
-
children: [/* @__PURE__ */
|
|
111
|
+
className: d("hds-sidebar", n && "hds-sidebar--floating", i),
|
|
112
|
+
children: [/* @__PURE__ */ c("ul", {
|
|
159
113
|
className: "hds-sidebar-items",
|
|
160
114
|
children: e.map((e) => {
|
|
161
115
|
let t = {
|
|
@@ -164,19 +118,19 @@ function b({ items: e, footer: t, floating: n = !1, label: r = "Navegação", cl
|
|
|
164
118
|
"aria-current": e.active ? "page" : void 0,
|
|
165
119
|
className: "hds-sidebar-item"
|
|
166
120
|
};
|
|
167
|
-
return /* @__PURE__ */
|
|
121
|
+
return /* @__PURE__ */ c("li", { children: e.href ? /* @__PURE__ */ c("a", {
|
|
168
122
|
...t,
|
|
169
123
|
href: e.href,
|
|
170
124
|
onClick: e.onClick,
|
|
171
125
|
children: e.icon
|
|
172
|
-
}) : /* @__PURE__ */
|
|
126
|
+
}) : /* @__PURE__ */ c("button", {
|
|
173
127
|
...t,
|
|
174
128
|
type: "button",
|
|
175
129
|
onClick: e.onClick,
|
|
176
130
|
children: e.icon
|
|
177
131
|
}) }, e.label);
|
|
178
132
|
})
|
|
179
|
-
}), t ? /* @__PURE__ */
|
|
133
|
+
}), t ? /* @__PURE__ */ c("div", {
|
|
180
134
|
className: "hds-sidebar-footer",
|
|
181
135
|
children: t
|
|
182
136
|
}) : null]
|
|
@@ -184,15 +138,15 @@ function b({ items: e, footer: t, floating: n = !1, label: r = "Navegação", cl
|
|
|
184
138
|
}
|
|
185
139
|
//#endregion
|
|
186
140
|
//#region src/components/SegmentedControl/SegmentedControl.tsx
|
|
187
|
-
var
|
|
141
|
+
var b = {
|
|
188
142
|
ArrowRight: 1,
|
|
189
143
|
ArrowDown: 1,
|
|
190
144
|
ArrowLeft: -1,
|
|
191
145
|
ArrowUp: -1
|
|
192
146
|
};
|
|
193
|
-
function
|
|
194
|
-
let [p, m] =
|
|
195
|
-
|
|
147
|
+
function x({ options: e, value: t, defaultValue: n, onChange: r, label: s, className: u }) {
|
|
148
|
+
let [p, m] = o(n ?? e[0]?.value), h = t === void 0 ? p : t, g = a([]), _ = a(null), v = Math.max(0, e.findIndex((e) => e.value === h));
|
|
149
|
+
i(() => {
|
|
196
150
|
function e() {
|
|
197
151
|
let e = g.current[v];
|
|
198
152
|
e && _.current && (_.current.style.width = `${e.offsetWidth}px`, _.current.style.transform = `translateX(${e.offsetLeft - 4}px)`, _.current.style.opacity = "1");
|
|
@@ -200,28 +154,28 @@ function S({ options: e, value: t, defaultValue: n, onChange: o, label: l, class
|
|
|
200
154
|
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
201
155
|
}, [v, e.length]);
|
|
202
156
|
function y(e) {
|
|
203
|
-
t === void 0 && m(e),
|
|
157
|
+
t === void 0 && m(e), r?.(e);
|
|
204
158
|
}
|
|
205
|
-
function
|
|
206
|
-
let n =
|
|
159
|
+
function x(t) {
|
|
160
|
+
let n = b[t.key];
|
|
207
161
|
if (!n) return;
|
|
208
162
|
t.preventDefault();
|
|
209
163
|
let r = (v + n + e.length) % e.length;
|
|
210
164
|
y(e[r].value), g.current[r]?.focus();
|
|
211
165
|
}
|
|
212
|
-
return /* @__PURE__ */
|
|
166
|
+
return /* @__PURE__ */ l(f, {
|
|
213
167
|
role: "radiogroup",
|
|
214
|
-
"aria-label":
|
|
215
|
-
className:
|
|
216
|
-
onKeyDown:
|
|
217
|
-
children: [/* @__PURE__ */
|
|
168
|
+
"aria-label": s,
|
|
169
|
+
className: d("hds-segmented", u),
|
|
170
|
+
onKeyDown: x,
|
|
171
|
+
children: [/* @__PURE__ */ c("span", {
|
|
218
172
|
ref: _,
|
|
219
173
|
className: "hds-segmented-thumb",
|
|
220
174
|
"aria-hidden": "true",
|
|
221
175
|
style: { opacity: 0 }
|
|
222
176
|
}), e.map((e, t) => {
|
|
223
177
|
let n = t === v;
|
|
224
|
-
return /* @__PURE__ */
|
|
178
|
+
return /* @__PURE__ */ l("button", {
|
|
225
179
|
ref: (e) => {
|
|
226
180
|
g.current[t] = e;
|
|
227
181
|
},
|
|
@@ -239,52 +193,52 @@ function S({ options: e, value: t, defaultValue: n, onChange: o, label: l, class
|
|
|
239
193
|
}
|
|
240
194
|
//#endregion
|
|
241
195
|
//#region src/components/Menu/Menu.tsx
|
|
242
|
-
function
|
|
243
|
-
let [
|
|
196
|
+
function S({ label: e, icon: t, iconOnly: i = !1, items: s, align: u = "end", triggerVariant: p = "glass", className: m }) {
|
|
197
|
+
let [g, _] = o(!1), v = a(null), y = a(null), b = a(null), x = r(), S = () => Array.from(b.current?.querySelectorAll("[role=\"menuitem\"]") ?? []);
|
|
244
198
|
function C(e) {
|
|
245
199
|
_(!1), e && y.current?.focus();
|
|
246
200
|
}
|
|
247
|
-
|
|
248
|
-
if (!
|
|
201
|
+
n(() => {
|
|
202
|
+
if (!g) return;
|
|
249
203
|
S()[0]?.focus();
|
|
250
204
|
function e(e) {
|
|
251
205
|
v.current && !v.current.contains(e.target) && _(!1);
|
|
252
206
|
}
|
|
253
207
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
254
|
-
}, [
|
|
208
|
+
}, [g]);
|
|
255
209
|
function w(e) {
|
|
256
210
|
let t = S(), n = t.indexOf(document.activeElement);
|
|
257
211
|
e.key === "Escape" ? (e.preventDefault(), C(!0)) : e.key === "Tab" ? C(!1) : e.key === "ArrowDown" || e.key === "ArrowUp" ? (e.preventDefault(), t[(n + (e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length]?.focus()) : (e.key === "Home" || e.key === "End") && (e.preventDefault(), (e.key === "Home" ? t[0] : t[t.length - 1])?.focus());
|
|
258
212
|
}
|
|
259
|
-
return /* @__PURE__ */
|
|
213
|
+
return /* @__PURE__ */ l("div", {
|
|
260
214
|
ref: v,
|
|
261
|
-
className:
|
|
262
|
-
children: [/* @__PURE__ */
|
|
215
|
+
className: d("hds-menu", m),
|
|
216
|
+
children: [/* @__PURE__ */ c(h, {
|
|
263
217
|
ref: y,
|
|
264
218
|
variant: p,
|
|
265
|
-
icon:
|
|
266
|
-
iconOnly:
|
|
267
|
-
"aria-label":
|
|
219
|
+
icon: t,
|
|
220
|
+
iconOnly: i,
|
|
221
|
+
"aria-label": i ? e : void 0,
|
|
268
222
|
"aria-haspopup": "menu",
|
|
269
|
-
"aria-expanded":
|
|
270
|
-
"aria-controls":
|
|
271
|
-
onClick: () => _(!
|
|
223
|
+
"aria-expanded": g,
|
|
224
|
+
"aria-controls": g ? x : void 0,
|
|
225
|
+
onClick: () => _(!g),
|
|
272
226
|
children: e
|
|
273
|
-
}),
|
|
227
|
+
}), g ? /* @__PURE__ */ c(f, {
|
|
274
228
|
ref: b,
|
|
275
229
|
id: x,
|
|
276
230
|
role: "menu",
|
|
277
231
|
"aria-label": e,
|
|
278
|
-
className:
|
|
232
|
+
className: d("hds-menu-panel", `hds-menu-panel--${u}`),
|
|
279
233
|
onKeyDown: w,
|
|
280
|
-
children:
|
|
234
|
+
children: s.map((e, t) => e.separator ? /* @__PURE__ */ c("div", {
|
|
281
235
|
role: "separator",
|
|
282
236
|
className: "hds-menu-separator"
|
|
283
|
-
}, `separator-${t}`) : /* @__PURE__ */
|
|
237
|
+
}, `separator-${t}`) : /* @__PURE__ */ l("button", {
|
|
284
238
|
type: "button",
|
|
285
239
|
role: "menuitem",
|
|
286
240
|
tabIndex: -1,
|
|
287
|
-
className:
|
|
241
|
+
className: d("hds-menu-item", e.danger && "hds-menu-item--danger"),
|
|
288
242
|
onClick: () => {
|
|
289
243
|
C(!0), e.onSelect?.();
|
|
290
244
|
},
|
|
@@ -295,25 +249,25 @@ function C({ label: e, icon: r, iconOnly: o = !1, items: l, align: f = "end", tr
|
|
|
295
249
|
}
|
|
296
250
|
//#endregion
|
|
297
251
|
//#region src/components/FloatingButton/FloatingButton.tsx
|
|
298
|
-
var
|
|
299
|
-
return /* @__PURE__ */
|
|
252
|
+
var C = t(function({ label: e, position: t = "bottom-right", type: n = "button", className: r, ...i }, a) {
|
|
253
|
+
return /* @__PURE__ */ c("button", {
|
|
300
254
|
...i,
|
|
301
255
|
ref: a,
|
|
302
256
|
type: n,
|
|
303
257
|
"aria-label": e,
|
|
304
258
|
title: e,
|
|
305
|
-
className:
|
|
259
|
+
className: d("hds-glass", "hds-fab", `hds-fab--${t}`, r)
|
|
306
260
|
});
|
|
307
|
-
}),
|
|
308
|
-
function
|
|
309
|
-
let y =
|
|
310
|
-
return
|
|
311
|
-
S.current =
|
|
312
|
-
}, [
|
|
261
|
+
}), w = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
262
|
+
function T({ open: e, onClose: t, title: i, description: o, children: s, footer: p, closeLabel: g = "Fechar", initialFocus: _ = "first", className: v }) {
|
|
263
|
+
let y = a(null), b = r(), x = r(), S = a(t);
|
|
264
|
+
return n(() => {
|
|
265
|
+
S.current = t;
|
|
266
|
+
}, [t]), n(() => {
|
|
313
267
|
if (!e) return;
|
|
314
268
|
let t = document.activeElement, n = document.body.style.overflow;
|
|
315
269
|
document.body.style.overflow = "hidden";
|
|
316
|
-
let r = y.current?.querySelectorAll(
|
|
270
|
+
let r = y.current?.querySelectorAll(w) ?? [];
|
|
317
271
|
(_ === "panel" || r.length === 0 ? y.current : r[0])?.focus();
|
|
318
272
|
function i(e) {
|
|
319
273
|
if (e.key === "Escape") {
|
|
@@ -321,7 +275,7 @@ function E({ open: e, onClose: r, title: a, description: o, children: f, footer:
|
|
|
321
275
|
return;
|
|
322
276
|
}
|
|
323
277
|
if (e.key !== "Tab" || !y.current) return;
|
|
324
|
-
let t = Array.from(y.current.querySelectorAll(
|
|
278
|
+
let t = Array.from(y.current.querySelectorAll(w));
|
|
325
279
|
if (t.length === 0) return;
|
|
326
280
|
let n = t[0], r = t[t.length - 1];
|
|
327
281
|
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
|
|
@@ -329,12 +283,12 @@ function E({ open: e, onClose: r, title: a, description: o, children: f, footer:
|
|
|
329
283
|
return document.addEventListener("keydown", i), () => {
|
|
330
284
|
document.removeEventListener("keydown", i), document.body.style.overflow = n, t?.focus();
|
|
331
285
|
};
|
|
332
|
-
}, [e, _]), e ?
|
|
286
|
+
}, [e, _]), e ? u(/* @__PURE__ */ c("div", {
|
|
333
287
|
className: "hds-scrim",
|
|
334
288
|
onMouseDown: (e) => {
|
|
335
|
-
e.target === e.currentTarget &&
|
|
289
|
+
e.target === e.currentTarget && t();
|
|
336
290
|
},
|
|
337
|
-
children: /* @__PURE__ */
|
|
291
|
+
children: /* @__PURE__ */ l(f, {
|
|
338
292
|
ref: y,
|
|
339
293
|
tone: "thick",
|
|
340
294
|
role: "dialog",
|
|
@@ -342,29 +296,29 @@ function E({ open: e, onClose: r, title: a, description: o, children: f, footer:
|
|
|
342
296
|
"aria-labelledby": b,
|
|
343
297
|
"aria-describedby": o ? x : void 0,
|
|
344
298
|
tabIndex: -1,
|
|
345
|
-
className:
|
|
299
|
+
className: d("hds-dialog", v),
|
|
346
300
|
children: [
|
|
347
|
-
/* @__PURE__ */
|
|
301
|
+
/* @__PURE__ */ l("div", {
|
|
348
302
|
className: "hds-dialog-header",
|
|
349
|
-
children: [/* @__PURE__ */
|
|
303
|
+
children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("h2", {
|
|
350
304
|
id: b,
|
|
351
305
|
className: "hds-dialog-title",
|
|
352
|
-
children:
|
|
353
|
-
}), o ? /* @__PURE__ */
|
|
306
|
+
children: i
|
|
307
|
+
}), o ? /* @__PURE__ */ c("p", {
|
|
354
308
|
id: x,
|
|
355
309
|
className: "hds-dialog-description",
|
|
356
310
|
children: o
|
|
357
|
-
}) : null] }), /* @__PURE__ */
|
|
311
|
+
}) : null] }), /* @__PURE__ */ c(h, {
|
|
358
312
|
variant: "ghost",
|
|
359
313
|
size: "sm",
|
|
360
314
|
iconOnly: !0,
|
|
361
|
-
icon: /* @__PURE__ */
|
|
362
|
-
"aria-label":
|
|
363
|
-
onClick:
|
|
315
|
+
icon: /* @__PURE__ */ c(m, { name: "x" }),
|
|
316
|
+
"aria-label": g,
|
|
317
|
+
onClick: t
|
|
364
318
|
})]
|
|
365
319
|
}),
|
|
366
|
-
|
|
367
|
-
p ? /* @__PURE__ */
|
|
320
|
+
s,
|
|
321
|
+
p ? /* @__PURE__ */ c("div", {
|
|
368
322
|
className: "hds-dialog-footer",
|
|
369
323
|
children: p
|
|
370
324
|
}) : null
|
|
@@ -374,17 +328,17 @@ function E({ open: e, onClose: r, title: a, description: o, children: f, footer:
|
|
|
374
328
|
}
|
|
375
329
|
//#endregion
|
|
376
330
|
//#region src/components/Toast/Toast.tsx
|
|
377
|
-
var
|
|
331
|
+
var E = {
|
|
378
332
|
neutral: "info",
|
|
379
333
|
success: "circle-check",
|
|
380
334
|
warning: "triangle-alert",
|
|
381
335
|
danger: "circle-x"
|
|
382
336
|
};
|
|
383
|
-
function
|
|
384
|
-
let [v, y] =
|
|
385
|
-
return
|
|
386
|
-
b.current =
|
|
387
|
-
}, [
|
|
337
|
+
function D({ open: e, onClose: t, tone: r = "neutral", title: i, description: s, duration: p = 5e3, closeLabel: g = "Fechar aviso", className: _ }) {
|
|
338
|
+
let [v, y] = o(!1), b = a(t);
|
|
339
|
+
return n(() => {
|
|
340
|
+
b.current = t;
|
|
341
|
+
}, [t]), n(() => {
|
|
388
342
|
if (!e || !p || v) return;
|
|
389
343
|
let t = window.setTimeout(() => b.current?.(), p);
|
|
390
344
|
return () => window.clearTimeout(t);
|
|
@@ -392,34 +346,34 @@ function O({ open: e, onClose: n, tone: r = "neutral", title: o, description: f,
|
|
|
392
346
|
e,
|
|
393
347
|
p,
|
|
394
348
|
v
|
|
395
|
-
]), e ?
|
|
349
|
+
]), e ? u(/* @__PURE__ */ c("div", {
|
|
396
350
|
className: "hds-toast-region",
|
|
397
|
-
children: /* @__PURE__ */
|
|
351
|
+
children: /* @__PURE__ */ l(f, {
|
|
398
352
|
role: r === "danger" ? "alert" : "status",
|
|
399
|
-
className:
|
|
353
|
+
className: d("hds-toast", `hds-toast--${r}`, _),
|
|
400
354
|
onMouseEnter: () => y(!0),
|
|
401
355
|
onMouseLeave: () => y(!1),
|
|
402
356
|
onFocus: () => y(!0),
|
|
403
357
|
onBlur: () => y(!1),
|
|
404
358
|
children: [
|
|
405
|
-
/* @__PURE__ */
|
|
406
|
-
/* @__PURE__ */
|
|
359
|
+
/* @__PURE__ */ c(m, { name: E[r] }),
|
|
360
|
+
/* @__PURE__ */ l("div", {
|
|
407
361
|
className: "hds-toast-body",
|
|
408
|
-
children: [/* @__PURE__ */
|
|
362
|
+
children: [/* @__PURE__ */ c("p", {
|
|
409
363
|
className: "hds-toast-title",
|
|
410
|
-
children:
|
|
411
|
-
}),
|
|
364
|
+
children: i
|
|
365
|
+
}), s ? /* @__PURE__ */ c("p", {
|
|
412
366
|
className: "hds-toast-description",
|
|
413
|
-
children:
|
|
367
|
+
children: s
|
|
414
368
|
}) : null]
|
|
415
369
|
}),
|
|
416
|
-
|
|
370
|
+
t ? /* @__PURE__ */ c(h, {
|
|
417
371
|
variant: "ghost",
|
|
418
372
|
size: "sm",
|
|
419
373
|
iconOnly: !0,
|
|
420
|
-
icon: /* @__PURE__ */
|
|
421
|
-
"aria-label":
|
|
422
|
-
onClick:
|
|
374
|
+
icon: /* @__PURE__ */ c(m, { name: "x" }),
|
|
375
|
+
"aria-label": g,
|
|
376
|
+
onClick: t
|
|
423
377
|
}) : null
|
|
424
378
|
]
|
|
425
379
|
})
|
|
@@ -427,15 +381,15 @@ function O({ open: e, onClose: n, tone: r = "neutral", title: o, description: f,
|
|
|
427
381
|
}
|
|
428
382
|
//#endregion
|
|
429
383
|
//#region src/internal/field.tsx
|
|
430
|
-
function
|
|
431
|
-
let t =
|
|
384
|
+
function O(e) {
|
|
385
|
+
let t = r(), n = e ?? t;
|
|
432
386
|
return {
|
|
433
|
-
id:
|
|
434
|
-
hint: `${
|
|
435
|
-
error: `${
|
|
387
|
+
id: n,
|
|
388
|
+
hint: `${n}-hint`,
|
|
389
|
+
error: `${n}-error`
|
|
436
390
|
};
|
|
437
391
|
}
|
|
438
|
-
function
|
|
392
|
+
function k(e, t) {
|
|
439
393
|
let n = [
|
|
440
394
|
e.hint && t.hint,
|
|
441
395
|
e.error && t.error,
|
|
@@ -443,111 +397,111 @@ function A(e, t) {
|
|
|
443
397
|
].filter(Boolean);
|
|
444
398
|
return n.length ? n.join(" ") : void 0;
|
|
445
399
|
}
|
|
446
|
-
function
|
|
447
|
-
return /* @__PURE__ */
|
|
400
|
+
function A({ hint: e, error: t, ids: n }) {
|
|
401
|
+
return /* @__PURE__ */ l(s, { children: [e ? /* @__PURE__ */ c("p", {
|
|
448
402
|
id: n.hint,
|
|
449
403
|
className: "hds-hint",
|
|
450
404
|
children: e
|
|
451
|
-
}) : null, t ? /* @__PURE__ */
|
|
405
|
+
}) : null, t ? /* @__PURE__ */ l("p", {
|
|
452
406
|
id: n.error,
|
|
453
407
|
className: "hds-error",
|
|
454
|
-
children: [/* @__PURE__ */
|
|
408
|
+
children: [/* @__PURE__ */ c(m, { name: "circle-x" }), t]
|
|
455
409
|
}) : null] });
|
|
456
410
|
}
|
|
457
411
|
//#endregion
|
|
458
412
|
//#region src/components/Input/Input.tsx
|
|
459
|
-
var
|
|
460
|
-
let
|
|
461
|
-
return /* @__PURE__ */
|
|
462
|
-
className:
|
|
413
|
+
var j = t(function({ label: e, hint: t, error: n, numeric: r = !1, id: i, className: a, ...o }, s) {
|
|
414
|
+
let u = O(i);
|
|
415
|
+
return /* @__PURE__ */ l("div", {
|
|
416
|
+
className: d("hds-field", a),
|
|
463
417
|
children: [
|
|
464
|
-
/* @__PURE__ */
|
|
418
|
+
/* @__PURE__ */ c("label", {
|
|
465
419
|
className: "hds-label",
|
|
466
|
-
htmlFor:
|
|
420
|
+
htmlFor: u.id,
|
|
467
421
|
children: e
|
|
468
422
|
}),
|
|
469
|
-
/* @__PURE__ */
|
|
423
|
+
/* @__PURE__ */ c("input", {
|
|
470
424
|
inputMode: r ? "decimal" : void 0,
|
|
471
425
|
...o,
|
|
472
|
-
ref:
|
|
473
|
-
id:
|
|
426
|
+
ref: s,
|
|
427
|
+
id: u.id,
|
|
474
428
|
"aria-invalid": n ? !0 : void 0,
|
|
475
|
-
"aria-describedby":
|
|
429
|
+
"aria-describedby": k({
|
|
476
430
|
hint: t,
|
|
477
431
|
error: n,
|
|
478
432
|
"aria-describedby": o["aria-describedby"]
|
|
479
|
-
},
|
|
480
|
-
className:
|
|
433
|
+
}, u),
|
|
434
|
+
className: d("hds-input", r && "hds-input--numeric")
|
|
481
435
|
}),
|
|
482
|
-
/* @__PURE__ */
|
|
436
|
+
/* @__PURE__ */ c(A, {
|
|
483
437
|
hint: t,
|
|
484
438
|
error: n,
|
|
485
|
-
ids:
|
|
439
|
+
ids: u
|
|
486
440
|
})
|
|
487
441
|
]
|
|
488
442
|
});
|
|
489
|
-
}),
|
|
490
|
-
let f =
|
|
491
|
-
return /* @__PURE__ */
|
|
492
|
-
className:
|
|
443
|
+
}), M = t(function({ label: e, options: t, placeholder: n, hint: r, error: i, id: a, className: o, ...s }, u) {
|
|
444
|
+
let f = O(a);
|
|
445
|
+
return /* @__PURE__ */ l("div", {
|
|
446
|
+
className: d("hds-field", o),
|
|
493
447
|
children: [
|
|
494
|
-
/* @__PURE__ */
|
|
448
|
+
/* @__PURE__ */ c("label", {
|
|
495
449
|
className: "hds-label",
|
|
496
450
|
htmlFor: f.id,
|
|
497
451
|
children: e
|
|
498
452
|
}),
|
|
499
|
-
/* @__PURE__ */
|
|
453
|
+
/* @__PURE__ */ l("div", {
|
|
500
454
|
className: "hds-select-wrap",
|
|
501
|
-
children: [/* @__PURE__ */
|
|
502
|
-
...
|
|
503
|
-
ref:
|
|
455
|
+
children: [/* @__PURE__ */ l("select", {
|
|
456
|
+
...s,
|
|
457
|
+
ref: u,
|
|
504
458
|
id: f.id,
|
|
505
459
|
"aria-invalid": i ? !0 : void 0,
|
|
506
|
-
"aria-describedby":
|
|
460
|
+
"aria-describedby": k({
|
|
507
461
|
hint: r,
|
|
508
462
|
error: i,
|
|
509
|
-
"aria-describedby":
|
|
463
|
+
"aria-describedby": s["aria-describedby"]
|
|
510
464
|
}, f),
|
|
511
465
|
className: "hds-select",
|
|
512
|
-
children: [n ? /* @__PURE__ */
|
|
466
|
+
children: [n ? /* @__PURE__ */ c("option", {
|
|
513
467
|
value: "",
|
|
514
468
|
disabled: !0,
|
|
515
469
|
children: n
|
|
516
|
-
}) : null, t.map((e) => /* @__PURE__ */
|
|
470
|
+
}) : null, t.map((e) => /* @__PURE__ */ c("option", {
|
|
517
471
|
value: e.value,
|
|
518
472
|
disabled: e.disabled,
|
|
519
473
|
children: e.label
|
|
520
474
|
}, e.value))]
|
|
521
|
-
}), /* @__PURE__ */
|
|
475
|
+
}), /* @__PURE__ */ c(m, { name: "chevron-down" })]
|
|
522
476
|
}),
|
|
523
|
-
/* @__PURE__ */
|
|
477
|
+
/* @__PURE__ */ c(A, {
|
|
524
478
|
hint: r,
|
|
525
479
|
error: i,
|
|
526
480
|
ids: f
|
|
527
481
|
})
|
|
528
482
|
]
|
|
529
483
|
});
|
|
530
|
-
}),
|
|
531
|
-
let o =
|
|
532
|
-
return /* @__PURE__ */
|
|
533
|
-
className:
|
|
484
|
+
}), N = t(function({ label: e, hint: t, id: n, className: r, ...i }, a) {
|
|
485
|
+
let o = O(n);
|
|
486
|
+
return /* @__PURE__ */ l("label", {
|
|
487
|
+
className: d("hds-checkbox", r),
|
|
534
488
|
htmlFor: o.id,
|
|
535
|
-
children: [/* @__PURE__ */
|
|
489
|
+
children: [/* @__PURE__ */ l("span", {
|
|
536
490
|
className: "hds-checkbox-control",
|
|
537
|
-
children: [/* @__PURE__ */
|
|
491
|
+
children: [/* @__PURE__ */ c("input", {
|
|
538
492
|
...i,
|
|
539
493
|
ref: a,
|
|
540
494
|
id: o.id,
|
|
541
495
|
type: "checkbox",
|
|
542
496
|
className: "hds-checkbox-input",
|
|
543
497
|
"aria-describedby": t ? o.hint : i["aria-describedby"]
|
|
544
|
-
}), /* @__PURE__ */
|
|
498
|
+
}), /* @__PURE__ */ c("span", {
|
|
545
499
|
className: "hds-checkbox-box",
|
|
546
|
-
children: /* @__PURE__ */
|
|
500
|
+
children: /* @__PURE__ */ c(m, { name: "check" })
|
|
547
501
|
})]
|
|
548
|
-
}), /* @__PURE__ */
|
|
502
|
+
}), /* @__PURE__ */ l("span", {
|
|
549
503
|
className: "hds-checkbox-text",
|
|
550
|
-
children: [e, t ? /* @__PURE__ */
|
|
504
|
+
children: [e, t ? /* @__PURE__ */ c("span", {
|
|
551
505
|
id: o.hint,
|
|
552
506
|
className: "hds-hint",
|
|
553
507
|
children: t
|
|
@@ -557,34 +511,34 @@ var M = e(function({ label: e, hint: t, error: n, numeric: r = !1, id: i, classN
|
|
|
557
511
|
});
|
|
558
512
|
//#endregion
|
|
559
513
|
//#region src/components/Card/Card.tsx
|
|
560
|
-
function
|
|
561
|
-
return /* @__PURE__ */
|
|
562
|
-
...
|
|
563
|
-
className:
|
|
514
|
+
function P({ as: e = "article", eyebrow: t, title: n, media: r, footer: i, interactive: a = !1, className: o, children: s, ...u }) {
|
|
515
|
+
return /* @__PURE__ */ l(e, {
|
|
516
|
+
...u,
|
|
517
|
+
className: d("hds-card", a && "hds-card--interactive", o),
|
|
564
518
|
children: [
|
|
565
|
-
r ? /* @__PURE__ */
|
|
519
|
+
r ? /* @__PURE__ */ c("img", {
|
|
566
520
|
className: "hds-card-media",
|
|
567
521
|
src: r.src,
|
|
568
522
|
alt: r.alt ?? ""
|
|
569
523
|
}) : null,
|
|
570
|
-
/* @__PURE__ */
|
|
524
|
+
/* @__PURE__ */ l("div", {
|
|
571
525
|
className: "hds-card-body",
|
|
572
526
|
children: [
|
|
573
|
-
t ? /* @__PURE__ */
|
|
527
|
+
t ? /* @__PURE__ */ c("p", {
|
|
574
528
|
className: "hds-card-eyebrow",
|
|
575
529
|
children: t
|
|
576
530
|
}) : null,
|
|
577
|
-
n ? /* @__PURE__ */
|
|
531
|
+
n ? /* @__PURE__ */ c("h3", {
|
|
578
532
|
className: "hds-card-title",
|
|
579
533
|
children: n
|
|
580
534
|
}) : null,
|
|
581
|
-
|
|
535
|
+
s ? /* @__PURE__ */ c("div", {
|
|
582
536
|
className: "hds-card-text",
|
|
583
|
-
children:
|
|
537
|
+
children: s
|
|
584
538
|
}) : null
|
|
585
539
|
]
|
|
586
540
|
}),
|
|
587
|
-
i ? /* @__PURE__ */
|
|
541
|
+
i ? /* @__PURE__ */ c("div", {
|
|
588
542
|
className: "hds-card-footer",
|
|
589
543
|
children: i
|
|
590
544
|
}) : null
|
|
@@ -593,47 +547,47 @@ function F({ as: e = "article", eyebrow: t, title: n, media: r, footer: i, inter
|
|
|
593
547
|
}
|
|
594
548
|
//#endregion
|
|
595
549
|
//#region src/components/Badge/Badge.tsx
|
|
596
|
-
var
|
|
550
|
+
var F = {
|
|
597
551
|
accent: "info",
|
|
598
552
|
success: "circle-check",
|
|
599
553
|
warning: "triangle-alert",
|
|
600
554
|
danger: "circle-x"
|
|
601
555
|
};
|
|
602
|
-
function
|
|
603
|
-
let i =
|
|
604
|
-
return /* @__PURE__ */
|
|
605
|
-
className:
|
|
556
|
+
function I({ tone: e = "neutral", icon: t, children: n, className: r }) {
|
|
557
|
+
let i = F[e], a = t === !1 ? null : t ?? (i ? /* @__PURE__ */ c(m, { name: i }) : null);
|
|
558
|
+
return /* @__PURE__ */ l("span", {
|
|
559
|
+
className: d("hds-badge", `hds-badge--${e}`, r),
|
|
606
560
|
children: [a, n]
|
|
607
561
|
});
|
|
608
562
|
}
|
|
609
563
|
//#endregion
|
|
610
564
|
//#region src/components/Table/Table.tsx
|
|
611
|
-
function
|
|
565
|
+
function L(e) {
|
|
612
566
|
return e.numeric ? "hds-cell--numeric" : e.align === "center" ? "hds-cell--center" : void 0;
|
|
613
567
|
}
|
|
614
|
-
function
|
|
615
|
-
return /* @__PURE__ */
|
|
616
|
-
className:
|
|
568
|
+
function R({ columns: e, rows: t, rowKey: n = "id", caption: r, hideCaption: i = !1, empty: a = "Nada para mostrar.", maxHeight: o, className: s }) {
|
|
569
|
+
return /* @__PURE__ */ c("div", {
|
|
570
|
+
className: d("hds-table-wrap", "hds-scroll", s),
|
|
617
571
|
role: "region",
|
|
618
572
|
"aria-label": r,
|
|
619
573
|
tabIndex: 0,
|
|
620
574
|
style: o === void 0 ? void 0 : { maxHeight: o },
|
|
621
|
-
children: /* @__PURE__ */
|
|
575
|
+
children: /* @__PURE__ */ l("table", {
|
|
622
576
|
className: "hds-table",
|
|
623
577
|
children: [
|
|
624
|
-
r ? /* @__PURE__ */
|
|
578
|
+
r ? /* @__PURE__ */ c("caption", {
|
|
625
579
|
className: i ? "hds-visually-hidden" : void 0,
|
|
626
580
|
children: r
|
|
627
581
|
}) : null,
|
|
628
|
-
/* @__PURE__ */
|
|
582
|
+
/* @__PURE__ */ c("thead", { children: /* @__PURE__ */ c("tr", { children: e.map((e) => /* @__PURE__ */ c("th", {
|
|
629
583
|
scope: "col",
|
|
630
|
-
className:
|
|
584
|
+
className: L(e),
|
|
631
585
|
children: e.header
|
|
632
586
|
}, e.key)) }) }),
|
|
633
|
-
/* @__PURE__ */
|
|
634
|
-
className:
|
|
587
|
+
/* @__PURE__ */ c("tbody", { children: t.length ? t.map((t, r) => /* @__PURE__ */ c("tr", { children: e.map((e) => /* @__PURE__ */ c("td", {
|
|
588
|
+
className: L(e),
|
|
635
589
|
children: e.render ? e.render(t) : t[e.key]
|
|
636
|
-
}, e.key)) }, String(t[n] ?? r))) : /* @__PURE__ */
|
|
590
|
+
}, e.key)) }, String(t[n] ?? r))) : /* @__PURE__ */ c("tr", { children: /* @__PURE__ */ c("td", {
|
|
637
591
|
colSpan: e.length || 1,
|
|
638
592
|
className: "hds-table-empty",
|
|
639
593
|
children: a
|
|
@@ -644,19 +598,19 @@ function z({ columns: e, rows: t, rowKey: n = "id", caption: r, hideCaption: i =
|
|
|
644
598
|
}
|
|
645
599
|
//#endregion
|
|
646
600
|
//#region src/components/Container/Container.tsx
|
|
647
|
-
function
|
|
648
|
-
return /* @__PURE__ */
|
|
601
|
+
function z({ as: e = "section", withSidebar: t = !1, className: n, ...r }) {
|
|
602
|
+
return /* @__PURE__ */ c(e, {
|
|
649
603
|
...r,
|
|
650
|
-
className:
|
|
604
|
+
className: d("hds-container", t && "hds-container--with-sidebar", n)
|
|
651
605
|
});
|
|
652
606
|
}
|
|
653
607
|
//#endregion
|
|
654
608
|
//#region src/components/SectionTitle/SectionTitle.tsx
|
|
655
|
-
function
|
|
656
|
-
return /* @__PURE__ */
|
|
609
|
+
function B({ children: e, index: t, as: n = "h2", id: r, className: i }) {
|
|
610
|
+
return /* @__PURE__ */ l(n, {
|
|
657
611
|
id: r,
|
|
658
|
-
className:
|
|
659
|
-
children: [t === void 0 ? null : /* @__PURE__ */
|
|
612
|
+
className: d("hds-section-title", i),
|
|
613
|
+
children: [t === void 0 ? null : /* @__PURE__ */ c("span", {
|
|
660
614
|
className: "hds-section-index",
|
|
661
615
|
"aria-hidden": "true",
|
|
662
616
|
children: String(t).padStart(2, "0")
|
|
@@ -665,22 +619,22 @@ function V({ children: e, index: t, as: n = "h2", id: r, className: i }) {
|
|
|
665
619
|
}
|
|
666
620
|
//#endregion
|
|
667
621
|
//#region src/components/Separator/Separator.tsx
|
|
668
|
-
function
|
|
669
|
-
return /* @__PURE__ */
|
|
622
|
+
function V({ orientation: e = "horizontal", decorative: t = !1, className: n }) {
|
|
623
|
+
return /* @__PURE__ */ c("div", {
|
|
670
624
|
role: t ? "none" : "separator",
|
|
671
625
|
"aria-orientation": t ? void 0 : e,
|
|
672
|
-
className:
|
|
626
|
+
className: d("hds-separator", `hds-separator--${e}`, n)
|
|
673
627
|
});
|
|
674
628
|
}
|
|
675
629
|
//#endregion
|
|
676
630
|
//#region src/components/ScrollArea/ScrollArea.tsx
|
|
677
|
-
function
|
|
678
|
-
return /* @__PURE__ */
|
|
631
|
+
function H({ label: e, maxHeight: t, className: n, style: r, ...i }) {
|
|
632
|
+
return /* @__PURE__ */ c("div", {
|
|
679
633
|
...i,
|
|
680
634
|
role: "region",
|
|
681
635
|
"aria-label": e,
|
|
682
636
|
tabIndex: 0,
|
|
683
|
-
className:
|
|
637
|
+
className: d("hds-scroll", n),
|
|
684
638
|
style: {
|
|
685
639
|
maxHeight: t,
|
|
686
640
|
...r
|
|
@@ -689,11 +643,11 @@ function U({ label: e, maxHeight: t, className: n, style: r, ...i }) {
|
|
|
689
643
|
}
|
|
690
644
|
//#endregion
|
|
691
645
|
//#region src/components/Loading/Loading.tsx
|
|
692
|
-
function
|
|
693
|
-
return /* @__PURE__ */
|
|
646
|
+
function U({ size: e = "md", label: t = "Carregando…", showLabel: n = !1, className: r }) {
|
|
647
|
+
return /* @__PURE__ */ l("span", {
|
|
694
648
|
role: "status",
|
|
695
|
-
className:
|
|
696
|
-
children: [/* @__PURE__ */
|
|
649
|
+
className: d("hds-loading", `hds-loading--${e}`, r),
|
|
650
|
+
children: [/* @__PURE__ */ c(m, { name: "loader" }), /* @__PURE__ */ c("span", {
|
|
697
651
|
className: n ? void 0 : "hds-visually-hidden",
|
|
698
652
|
children: t
|
|
699
653
|
})]
|
|
@@ -701,17 +655,17 @@ function W({ size: e = "md", label: t = "Carregando…", showLabel: n = !1, clas
|
|
|
701
655
|
}
|
|
702
656
|
//#endregion
|
|
703
657
|
//#region src/components/GlowAvatar/GlowAvatar.tsx
|
|
704
|
-
function
|
|
705
|
-
return /* @__PURE__ */
|
|
706
|
-
className:
|
|
658
|
+
function W({ src: e, alt: t, size: n = 96, className: r }) {
|
|
659
|
+
return /* @__PURE__ */ l("span", {
|
|
660
|
+
className: d("hds-avatar", r),
|
|
707
661
|
style: {
|
|
708
662
|
width: n,
|
|
709
663
|
height: n
|
|
710
664
|
},
|
|
711
|
-
children: [/* @__PURE__ */
|
|
665
|
+
children: [/* @__PURE__ */ c("span", {
|
|
712
666
|
className: "hds-avatar-glow",
|
|
713
667
|
"aria-hidden": "true"
|
|
714
|
-
}), /* @__PURE__ */
|
|
668
|
+
}), /* @__PURE__ */ c("img", {
|
|
715
669
|
className: "hds-avatar-image",
|
|
716
670
|
src: e,
|
|
717
671
|
alt: t,
|
|
@@ -721,6 +675,6 @@ function G({ src: e, alt: t, size: n = 96, className: r }) {
|
|
|
721
675
|
});
|
|
722
676
|
}
|
|
723
677
|
//#endregion
|
|
724
|
-
export {
|
|
678
|
+
export { I as Badge, h as Button, P as Card, N as Checkbox, z as Container, T as Dialog, C as FloatingButton, f as GlassPanel, W as GlowAvatar, j as Input, U as Loading, S as Menu, v as NavBar, H as ScrollArea, B as SectionTitle, x as SegmentedControl, M as Select, V as Separator, y as Sidebar, R as Table, D as Toast, e as enableGlassRefraction };
|
|
725
679
|
|
|
726
680
|
//# sourceMappingURL=index.js.map
|