@treeal/ds 0.1.9 → 0.2.1
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/assets/style.css +1 -1
- package/dist/components/Icon/Icon.d.ts +20 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -0
- package/dist/components/Icon/index.d.ts +3 -0
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs10.js.map +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs11.js.map +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs12.js.map +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs13.js.map +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs14.js.map +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs15.js.map +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs16.js.map +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs17.js.map +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs29.js +2 -0
- package/dist/index.cjs29.js.map +1 -0
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs9.js.map +1 -1
- package/dist/index.esm.js +22 -20
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm10.js +131 -70
- package/dist/index.esm10.js.map +1 -1
- package/dist/index.esm11.js +65 -225
- package/dist/index.esm11.js.map +1 -1
- package/dist/index.esm12.js +221 -160
- package/dist/index.esm12.js.map +1 -1
- package/dist/index.esm13.js +171 -61
- package/dist/index.esm13.js.map +1 -1
- package/dist/index.esm14.js +58 -84
- package/dist/index.esm14.js.map +1 -1
- package/dist/index.esm15.js +80 -25
- package/dist/index.esm15.js.map +1 -1
- package/dist/index.esm16.js +30 -214
- package/dist/index.esm16.js.map +1 -1
- package/dist/index.esm17.js +219 -39
- package/dist/index.esm17.js.map +1 -1
- package/dist/index.esm18.js +21 -59
- package/dist/index.esm18.js.map +1 -1
- package/dist/index.esm19.js +102 -20
- package/dist/index.esm19.js.map +1 -1
- package/dist/index.esm20.js +22 -22
- package/dist/index.esm21.js +20 -22
- package/dist/index.esm21.js.map +1 -1
- package/dist/index.esm22.js +60 -12
- package/dist/index.esm22.js.map +1 -1
- package/dist/index.esm23.js +38 -40
- package/dist/index.esm23.js.map +1 -1
- package/dist/index.esm24.js +60 -22
- package/dist/index.esm24.js.map +1 -1
- package/dist/index.esm25.js +12 -60
- package/dist/index.esm25.js.map +1 -1
- package/dist/index.esm26.js +40 -22
- package/dist/index.esm26.js.map +1 -1
- package/dist/index.esm27.js +28 -28
- package/dist/index.esm28.js +22 -102
- package/dist/index.esm28.js.map +1 -1
- package/dist/index.esm29.js +26 -0
- package/dist/index.esm29.js.map +1 -0
- package/dist/index.esm5.js +1 -1
- package/dist/index.esm6.js +1 -1
- package/dist/index.esm7.js +1 -1
- package/dist/index.esm8.js +1 -1
- package/dist/index.esm9.js +25 -132
- package/dist/index.esm9.js.map +1 -1
- package/package.json +31 -34
package/dist/index.esm25.js
CHANGED
|
@@ -1,64 +1,16 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
dropzoneIconLg: r,
|
|
8
|
-
dropzoneContent: s,
|
|
9
|
-
dropzoneTitleRow: g,
|
|
10
|
-
dropzoneTitle: i,
|
|
11
|
-
dropzoneBrowse: p,
|
|
12
|
-
dropzoneSubtitle: l,
|
|
13
|
-
fileList: d,
|
|
14
|
-
fileItem: c,
|
|
15
|
-
fileItemLg: z,
|
|
16
|
-
fileItemMd: k,
|
|
17
|
-
fileBadge: f,
|
|
18
|
-
fileContent: a,
|
|
19
|
-
fileHeader: I,
|
|
20
|
-
fileTexts: L,
|
|
21
|
-
fileName: m,
|
|
22
|
-
fileSize: w,
|
|
23
|
-
actions: T,
|
|
24
|
-
actionBtn: B,
|
|
25
|
-
progressRow: M,
|
|
26
|
-
progressTrack: b,
|
|
27
|
-
progressFill: C,
|
|
28
|
-
progressLabel: R,
|
|
29
|
-
spinner: S,
|
|
30
|
-
wrapper: u
|
|
1
|
+
const t = "_tabList_1xlw5_3", s = "_tab_1xlw5_3", _ = "_active_1xlw5_44", a = "_disabled_1xlw5_44", c = "_icon_1xlw5_69", i = {
|
|
2
|
+
tabList: t,
|
|
3
|
+
tab: s,
|
|
4
|
+
active: _,
|
|
5
|
+
disabled: a,
|
|
6
|
+
icon: c
|
|
31
7
|
};
|
|
32
8
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
_ as dropzoneDragging,
|
|
40
|
-
r as dropzoneIconLg,
|
|
41
|
-
t as dropzoneIconMd,
|
|
42
|
-
n as dropzoneLg,
|
|
43
|
-
e as dropzoneMd,
|
|
44
|
-
l as dropzoneSubtitle,
|
|
45
|
-
i as dropzoneTitle,
|
|
46
|
-
g as dropzoneTitleRow,
|
|
47
|
-
f as fileBadge,
|
|
48
|
-
a as fileContent,
|
|
49
|
-
I as fileHeader,
|
|
50
|
-
c as fileItem,
|
|
51
|
-
z as fileItemLg,
|
|
52
|
-
k as fileItemMd,
|
|
53
|
-
d as fileList,
|
|
54
|
-
m as fileName,
|
|
55
|
-
w as fileSize,
|
|
56
|
-
L as fileTexts,
|
|
57
|
-
C as progressFill,
|
|
58
|
-
R as progressLabel,
|
|
59
|
-
M as progressRow,
|
|
60
|
-
b as progressTrack,
|
|
61
|
-
S as spinner,
|
|
62
|
-
u as wrapper
|
|
9
|
+
_ as active,
|
|
10
|
+
i as default,
|
|
11
|
+
a as disabled,
|
|
12
|
+
c as icon,
|
|
13
|
+
s as tab,
|
|
14
|
+
t as tabList
|
|
63
15
|
};
|
|
64
16
|
//# sourceMappingURL=index.esm25.js.map
|
package/dist/index.esm25.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm25.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm25.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
package/dist/index.esm26.js
CHANGED
|
@@ -1,26 +1,44 @@
|
|
|
1
|
-
const e = "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
const e = "_wrapper_142dk_9", _ = "_labelRow_142dk_19", o = "_label_142dk_19", l = "_labelDisabled_142dk_37", s = "_labelIcon_142dk_41", d = "_field_142dk_53", n = "_fieldMd_142dk_67", t = "_fieldSm_142dk_72", c = "_hover_142dk_79", a = "_active_142dk_86", r = "_disabled_142dk_94", i = "_error_142dk_107", k = "_icon_142dk_119", b = "_input_142dk_131", g = "_iconAction_142dk_155", f = "_toggleBtn_142dk_162", p = "_searchBtn_142dk_181", m = "_message_142dk_217", h = "_messageError_142dk_232", v = {
|
|
2
|
+
wrapper: e,
|
|
3
|
+
labelRow: _,
|
|
4
|
+
label: o,
|
|
5
|
+
labelDisabled: l,
|
|
6
|
+
labelIcon: s,
|
|
7
|
+
field: d,
|
|
8
|
+
fieldMd: n,
|
|
9
|
+
fieldSm: t,
|
|
10
|
+
hover: c,
|
|
11
|
+
active: a,
|
|
12
|
+
disabled: r,
|
|
13
|
+
error: i,
|
|
14
|
+
icon: k,
|
|
15
|
+
input: b,
|
|
16
|
+
iconAction: g,
|
|
17
|
+
toggleBtn: f,
|
|
18
|
+
searchBtn: p,
|
|
19
|
+
message: m,
|
|
20
|
+
messageError: h
|
|
12
21
|
};
|
|
13
22
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
a as active,
|
|
24
|
+
v as default,
|
|
25
|
+
r as disabled,
|
|
26
|
+
i as error,
|
|
27
|
+
d as field,
|
|
28
|
+
n as fieldMd,
|
|
29
|
+
t as fieldSm,
|
|
30
|
+
c as hover,
|
|
31
|
+
k as icon,
|
|
32
|
+
g as iconAction,
|
|
33
|
+
b as input,
|
|
34
|
+
o as label,
|
|
35
|
+
l as labelDisabled,
|
|
36
|
+
s as labelIcon,
|
|
37
|
+
_ as labelRow,
|
|
38
|
+
m as message,
|
|
39
|
+
h as messageError,
|
|
40
|
+
p as searchBtn,
|
|
41
|
+
f as toggleBtn,
|
|
42
|
+
e as wrapper
|
|
25
43
|
};
|
|
26
44
|
//# sourceMappingURL=index.esm26.js.map
|
package/dist/index.esm26.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm26.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm26.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.esm27.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_steps_1ufpy_20", e = "_item_1ufpy_30", n = "_typeStart_1ufpy_51", _ = "_typeStep_1ufpy_66", o = "_typeEnd_1ufpy_82", c = "_stateDefault_1ufpy_94", i = "_stateHover_1ufpy_95", p = "_stateActive_1ufpy_96", s = "_stateComplete_1ufpy_97", m = "_textDark_1ufpy_101", f = "_textLight_1ufpy_102", u = "_label_1ufpy_106", y = "_num_1ufpy_119", a = "_checkIcon_1ufpy_132", l = "_minified_1ufpy_143", r = "_minDot_1ufpy_150", C = "_minDefault_1ufpy_156", D = "_minActive_1ufpy_162", v = "_minComplete_1ufpy_169", A = "_minConnector_1ufpy_176", d = "_minConnectorDefault_1ufpy_183", x = "_minConnectorActive_1ufpy_184", h = "_minConnectorComplete_1ufpy_185", k = {
|
|
2
2
|
steps: t,
|
|
3
3
|
item: e,
|
|
4
4
|
typeStart: n,
|
|
@@ -6,45 +6,45 @@ const t = "_steps_xg6k6_20", e = "_item_xg6k6_30", n = "_typeStart_xg6k6_51", _
|
|
|
6
6
|
typeEnd: o,
|
|
7
7
|
stateDefault: c,
|
|
8
8
|
stateHover: i,
|
|
9
|
-
stateActive:
|
|
10
|
-
stateComplete:
|
|
11
|
-
textDark:
|
|
12
|
-
textLight:
|
|
13
|
-
label:
|
|
14
|
-
num:
|
|
15
|
-
checkIcon:
|
|
16
|
-
minified:
|
|
9
|
+
stateActive: p,
|
|
10
|
+
stateComplete: s,
|
|
11
|
+
textDark: m,
|
|
12
|
+
textLight: f,
|
|
13
|
+
label: u,
|
|
14
|
+
num: y,
|
|
15
|
+
checkIcon: a,
|
|
16
|
+
minified: l,
|
|
17
17
|
minDot: r,
|
|
18
18
|
minDefault: C,
|
|
19
19
|
minActive: D,
|
|
20
|
-
minComplete:
|
|
21
|
-
minConnector:
|
|
22
|
-
minConnectorDefault:
|
|
23
|
-
minConnectorActive:
|
|
24
|
-
minConnectorComplete:
|
|
20
|
+
minComplete: v,
|
|
21
|
+
minConnector: A,
|
|
22
|
+
minConnectorDefault: d,
|
|
23
|
+
minConnectorActive: x,
|
|
24
|
+
minConnectorComplete: h
|
|
25
25
|
};
|
|
26
26
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
a as checkIcon,
|
|
28
|
+
k as default,
|
|
29
29
|
e as item,
|
|
30
|
-
|
|
30
|
+
u as label,
|
|
31
31
|
D as minActive,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
v as minComplete,
|
|
33
|
+
A as minConnector,
|
|
34
|
+
x as minConnectorActive,
|
|
35
|
+
h as minConnectorComplete,
|
|
36
|
+
d as minConnectorDefault,
|
|
37
37
|
C as minDefault,
|
|
38
38
|
r as minDot,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
l as minified,
|
|
40
|
+
y as num,
|
|
41
|
+
p as stateActive,
|
|
42
|
+
s as stateComplete,
|
|
43
43
|
c as stateDefault,
|
|
44
44
|
i as stateHover,
|
|
45
45
|
t as steps,
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
m as textDark,
|
|
47
|
+
f as textLight,
|
|
48
48
|
o as typeEnd,
|
|
49
49
|
n as typeStart,
|
|
50
50
|
_ as typeStep
|
package/dist/index.esm28.js
CHANGED
|
@@ -1,106 +1,26 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
headerTitle: r,
|
|
13
|
-
headerActions: m,
|
|
14
|
-
bellBtn: v,
|
|
15
|
-
links: b,
|
|
16
|
-
linksOpen: d,
|
|
17
|
-
linksClosed: p,
|
|
18
|
-
linksMobile: I,
|
|
19
|
-
section: h,
|
|
20
|
-
sectionTitle: k,
|
|
21
|
-
sectionItems: M,
|
|
22
|
-
item: C,
|
|
23
|
-
itemOpen: L,
|
|
24
|
-
itemOpenActive: A,
|
|
25
|
-
itemClosed: B,
|
|
26
|
-
itemClosedActive: O,
|
|
27
|
-
itemMobile: f,
|
|
28
|
-
itemMobileActive: w,
|
|
29
|
-
itemIcon: g,
|
|
30
|
-
itemIconDark: u,
|
|
31
|
-
itemIconLight: D,
|
|
32
|
-
itemLabel: R,
|
|
33
|
-
itemLabelDefault: T,
|
|
34
|
-
itemLabelActive: F,
|
|
35
|
-
itemLabelMobile: N,
|
|
36
|
-
chevron: x,
|
|
37
|
-
footer: y,
|
|
38
|
-
collapseBtn: j,
|
|
39
|
-
collapseBtnClosed: q,
|
|
40
|
-
collapseBtnIcon: z,
|
|
41
|
-
footerMobile: E,
|
|
42
|
-
ctaBtn: G,
|
|
43
|
-
workspace: H,
|
|
44
|
-
workspaceIcon: J,
|
|
45
|
-
workspaceLabel: K,
|
|
46
|
-
avatarRow: P,
|
|
47
|
-
avatar: Q,
|
|
48
|
-
avatarInitials: S,
|
|
49
|
-
avatarInfo: U,
|
|
50
|
-
avatarName: V,
|
|
51
|
-
avatarRole: W
|
|
1
|
+
const t = "_overlay_xhrxh_24", n = "_modal_xhrxh_43", o = "_heading_xhrxh_64", _ = "_title_xhrxh_72", r = "_description_xhrxh_81", h = "_body_xhrxh_92", s = "_actions_xhrxh_101", x = "_btns_xhrxh_108", a = "_btnSecondary_xhrxh_115", c = "_btnPrimary_xhrxh_137", e = {
|
|
2
|
+
overlay: t,
|
|
3
|
+
modal: n,
|
|
4
|
+
heading: o,
|
|
5
|
+
title: _,
|
|
6
|
+
description: r,
|
|
7
|
+
body: h,
|
|
8
|
+
actions: s,
|
|
9
|
+
btns: x,
|
|
10
|
+
btnSecondary: a,
|
|
11
|
+
btnPrimary: c
|
|
52
12
|
};
|
|
53
13
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
G as ctaBtn,
|
|
66
|
-
X as default,
|
|
67
|
-
y as footer,
|
|
68
|
-
E as footerMobile,
|
|
69
|
-
n as header,
|
|
70
|
-
m as headerActions,
|
|
71
|
-
s as headerClosed,
|
|
72
|
-
l as headerMobile,
|
|
73
|
-
a as headerOpen,
|
|
74
|
-
r as headerTitle,
|
|
75
|
-
C as item,
|
|
76
|
-
B as itemClosed,
|
|
77
|
-
O as itemClosedActive,
|
|
78
|
-
g as itemIcon,
|
|
79
|
-
u as itemIconDark,
|
|
80
|
-
D as itemIconLight,
|
|
81
|
-
R as itemLabel,
|
|
82
|
-
F as itemLabelActive,
|
|
83
|
-
T as itemLabelDefault,
|
|
84
|
-
N as itemLabelMobile,
|
|
85
|
-
f as itemMobile,
|
|
86
|
-
w as itemMobileActive,
|
|
87
|
-
L as itemOpen,
|
|
88
|
-
A as itemOpenActive,
|
|
89
|
-
b as links,
|
|
90
|
-
p as linksClosed,
|
|
91
|
-
I as linksMobile,
|
|
92
|
-
d as linksOpen,
|
|
93
|
-
i as logoFull,
|
|
94
|
-
c as logoIcon,
|
|
95
|
-
e as nav,
|
|
96
|
-
o as navClosed,
|
|
97
|
-
_ as navMobile,
|
|
98
|
-
t as navOpen,
|
|
99
|
-
h as section,
|
|
100
|
-
M as sectionItems,
|
|
101
|
-
k as sectionTitle,
|
|
102
|
-
H as workspace,
|
|
103
|
-
J as workspaceIcon,
|
|
104
|
-
K as workspaceLabel
|
|
14
|
+
s as actions,
|
|
15
|
+
h as body,
|
|
16
|
+
c as btnPrimary,
|
|
17
|
+
a as btnSecondary,
|
|
18
|
+
x as btns,
|
|
19
|
+
e as default,
|
|
20
|
+
r as description,
|
|
21
|
+
o as heading,
|
|
22
|
+
n as modal,
|
|
23
|
+
t as overlay,
|
|
24
|
+
_ as title
|
|
105
25
|
};
|
|
106
26
|
//# sourceMappingURL=index.esm28.js.map
|
package/dist/index.esm28.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm28.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm28.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const e = "_wrapper_16v80_3", s = "_label_16v80_13", r = "_labelDisabled_16v80_23", _ = "_field_16v80_29", l = "_select_16v80_36", o = "_placeholder_16v80_75", a = "_error_16v80_81", c = "_chevron_16v80_93", t = "_message_16v80_109", n = "_messageError_16v80_123", v = {
|
|
2
|
+
wrapper: e,
|
|
3
|
+
label: s,
|
|
4
|
+
labelDisabled: r,
|
|
5
|
+
field: _,
|
|
6
|
+
select: l,
|
|
7
|
+
placeholder: o,
|
|
8
|
+
error: a,
|
|
9
|
+
chevron: c,
|
|
10
|
+
message: t,
|
|
11
|
+
messageError: n
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
c as chevron,
|
|
15
|
+
v as default,
|
|
16
|
+
a as error,
|
|
17
|
+
_ as field,
|
|
18
|
+
s as label,
|
|
19
|
+
r as labelDisabled,
|
|
20
|
+
t as message,
|
|
21
|
+
n as messageError,
|
|
22
|
+
o as placeholder,
|
|
23
|
+
l as select,
|
|
24
|
+
e as wrapper
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=index.esm29.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm29.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
package/dist/index.esm5.js
CHANGED
package/dist/index.esm6.js
CHANGED
package/dist/index.esm7.js
CHANGED
package/dist/index.esm8.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as i, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import e from "./index.
|
|
2
|
+
import e from "./index.esm22.js";
|
|
3
3
|
function b() {
|
|
4
4
|
return /* @__PURE__ */ i("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
5
5
|
/* @__PURE__ */ n("path", { d: "M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9" }),
|
package/dist/index.esm9.js
CHANGED
|
@@ -1,139 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return /* @__PURE__ */ n("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
|
|
12
|
-
/* @__PURE__ */ e("circle", { cx: "11", cy: "11", r: "7", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round" }),
|
|
13
|
-
/* @__PURE__ */ e("path", { d: "M16.5 16.5L21 21", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round" })
|
|
14
|
-
] });
|
|
15
|
-
}
|
|
16
|
-
function O() {
|
|
17
|
-
return /* @__PURE__ */ n("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
|
|
18
|
-
/* @__PURE__ */ e("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
19
|
-
/* @__PURE__ */ e("path", { d: "M16 2v4M8 2v4M3 10h18", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
20
|
-
] });
|
|
21
|
-
}
|
|
22
|
-
function P() {
|
|
23
|
-
return /* @__PURE__ */ n("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
|
|
24
|
-
/* @__PURE__ */ e("rect", { x: "5", y: "11", width: "14", height: "11", rx: "2", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
25
|
-
/* @__PURE__ */ e("path", { d: "M8 11V7a4 4 0 0 1 8 0v4", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
26
|
-
] });
|
|
27
|
-
}
|
|
28
|
-
function R() {
|
|
29
|
-
return /* @__PURE__ */ n("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
|
|
30
|
-
/* @__PURE__ */ e("path", { d: "M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
31
|
-
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "3", stroke: "currentColor", strokeWidth: "1.75" })
|
|
32
|
-
] });
|
|
33
|
-
}
|
|
34
|
-
function V() {
|
|
35
|
-
return /* @__PURE__ */ n("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
|
|
36
|
-
/* @__PURE__ */ e("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
37
|
-
/* @__PURE__ */ e("path", { d: "M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
38
|
-
/* @__PURE__ */ e("path", { d: "M1 1l22 22", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round" })
|
|
39
|
-
] });
|
|
40
|
-
}
|
|
41
|
-
function G({
|
|
42
|
-
state: d = "Default",
|
|
43
|
-
size: g = "md",
|
|
44
|
-
inputType: o = "text",
|
|
45
|
-
label: k,
|
|
46
|
-
placeholder: b,
|
|
47
|
-
message: c,
|
|
48
|
-
iconLabel: f,
|
|
49
|
-
iconLeft: C,
|
|
50
|
-
iconRight: B,
|
|
51
|
-
value: v,
|
|
52
|
-
onChange: j,
|
|
53
|
-
onSearch: I,
|
|
54
|
-
id: W,
|
|
55
|
-
className: M,
|
|
56
|
-
...t
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
function s({
|
|
3
|
+
name: n,
|
|
4
|
+
size: i = 24,
|
|
5
|
+
weight: o = 400,
|
|
6
|
+
fill: a = 0,
|
|
7
|
+
className: l,
|
|
8
|
+
style: r,
|
|
9
|
+
"aria-label": e,
|
|
10
|
+
"aria-hidden": t
|
|
57
11
|
}) {
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
{
|
|
61
|
-
type: "button",
|
|
62
|
-
className: r.toggleBtn,
|
|
63
|
-
onClick: () => E((i) => !i),
|
|
64
|
-
"aria-label": l ? "Ocultar senha" : "Mostrar senha",
|
|
65
|
-
tabIndex: -1,
|
|
66
|
-
children: l ? /* @__PURE__ */ e(R, {}) : /* @__PURE__ */ e(V, {})
|
|
67
|
-
}
|
|
68
|
-
) : o === "date" ? /* @__PURE__ */ e(O, {}) : o === "search" ? /* @__PURE__ */ e(
|
|
69
|
-
"button",
|
|
12
|
+
return /* @__PURE__ */ c(
|
|
13
|
+
"span",
|
|
70
14
|
{
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
15
|
+
className: ["material-symbols-outlined", l].filter(Boolean).join(" "),
|
|
16
|
+
style: {
|
|
17
|
+
fontSize: i,
|
|
18
|
+
"--icon-fill": a,
|
|
19
|
+
"--icon-weight": o,
|
|
20
|
+
"--icon-size": i,
|
|
21
|
+
...r
|
|
22
|
+
},
|
|
23
|
+
"aria-label": e,
|
|
24
|
+
"aria-hidden": t ?? (e ? void 0 : !0),
|
|
25
|
+
children: n
|
|
77
26
|
}
|
|
78
|
-
)
|
|
79
|
-
r.field,
|
|
80
|
-
g === "sm" ? r.fieldSm : r.fieldMd,
|
|
81
|
-
d === "Hover" ? r.hover : "",
|
|
82
|
-
d === "Active" ? r.active : "",
|
|
83
|
-
h ? r.disabled : "",
|
|
84
|
-
u ? r.error : "",
|
|
85
|
-
M
|
|
86
|
-
].filter(Boolean).join(" ");
|
|
87
|
-
return /* @__PURE__ */ n("div", { className: r.wrapper, children: [
|
|
88
|
-
k && /* @__PURE__ */ n("div", { className: r.labelRow, children: [
|
|
89
|
-
/* @__PURE__ */ e(
|
|
90
|
-
"label",
|
|
91
|
-
{
|
|
92
|
-
htmlFor: a,
|
|
93
|
-
className: [r.label, h ? r.labelDisabled : ""].filter(Boolean).join(" "),
|
|
94
|
-
children: k
|
|
95
|
-
}
|
|
96
|
-
),
|
|
97
|
-
f && /* @__PURE__ */ e("span", { className: r.labelIcon, "aria-hidden": "true", children: f })
|
|
98
|
-
] }),
|
|
99
|
-
/* @__PURE__ */ n("div", { className: A, children: [
|
|
100
|
-
w && /* @__PURE__ */ e("span", { className: r.icon, "aria-hidden": "true", children: w }),
|
|
101
|
-
/* @__PURE__ */ e(
|
|
102
|
-
"input",
|
|
103
|
-
{
|
|
104
|
-
id: a,
|
|
105
|
-
type: D,
|
|
106
|
-
className: r.input,
|
|
107
|
-
placeholder: b,
|
|
108
|
-
disabled: h,
|
|
109
|
-
value: v,
|
|
110
|
-
onChange: j,
|
|
111
|
-
onFocus: o === "date" ? (i) => {
|
|
112
|
-
var s;
|
|
113
|
-
m(!0), (s = t.onFocus) == null || s.call(t, i);
|
|
114
|
-
} : t.onFocus,
|
|
115
|
-
onBlur: o === "date" ? (i) => {
|
|
116
|
-
var s;
|
|
117
|
-
m(!1), (s = t.onBlur) == null || s.call(t, i);
|
|
118
|
-
} : t.onBlur,
|
|
119
|
-
"aria-invalid": u,
|
|
120
|
-
"aria-describedby": c ? `${a}-message` : void 0,
|
|
121
|
-
...t
|
|
122
|
-
}
|
|
123
|
-
),
|
|
124
|
-
L && /* @__PURE__ */ e("span", { className: [r.icon, o === "search" || o === "password" ? r.iconAction : ""].filter(Boolean).join(" "), children: L })
|
|
125
|
-
] }),
|
|
126
|
-
c && /* @__PURE__ */ e(
|
|
127
|
-
"p",
|
|
128
|
-
{
|
|
129
|
-
id: `${a}-message`,
|
|
130
|
-
className: [r.message, u ? r.messageError : ""].filter(Boolean).join(" "),
|
|
131
|
-
children: c
|
|
132
|
-
}
|
|
133
|
-
)
|
|
134
|
-
] });
|
|
27
|
+
);
|
|
135
28
|
}
|
|
136
29
|
export {
|
|
137
|
-
|
|
30
|
+
s as Icon
|
|
138
31
|
};
|
|
139
32
|
//# sourceMappingURL=index.esm9.js.map
|
package/dist/index.esm9.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm9.js","sources":["../components/Input/Input.tsx"],"sourcesContent":["import React, { useId, useState } from 'react';\nimport styles from './Input.module.css';\n\nexport type InputState = 'Default' | 'Hover' | 'Active' | 'Disabled' | 'Error';\nexport type InputType = 'text' | 'email' | 'password' | 'search' | 'date';\nexport type InputSize = 'sm' | 'md';\n\n// ─── Built-in SVG icons ───────────────────────────────────────────────────────\n\nfunction IconEmail() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <polyline points=\"22,6 12,13 2,6\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n </svg>\n );\n}\n\nfunction IconSearch() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <circle cx=\"11\" cy=\"11\" r=\"7\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\"/>\n <path d=\"M16.5 16.5L21 21\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\"/>\n </svg>\n );\n}\n\nfunction IconCalendar() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M16 2v4M8 2v4M3 10h18\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n </svg>\n );\n}\n\nfunction IconLock() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"5\" y=\"11\" width=\"14\" height=\"11\" rx=\"2\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M8 11V7a4 4 0 0 1 8 0v4\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n </svg>\n );\n}\n\nfunction IconEye() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <circle cx=\"12\" cy=\"12\" r=\"3\" stroke=\"currentColor\" strokeWidth=\"1.75\"/>\n </svg>\n );\n}\n\nfunction IconEyeOff() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M1 1l22 22\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\"/>\n </svg>\n );\n}\n\n// ─── Types ────────────────────────────────────────────────────────────────────\n\nexport interface InputProps\n extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'type' | 'size'> {\n /** Visual/interaction state. Defaults to 'Default'. */\n state?: InputState;\n /** Size variant. sm = 36px height, md = 48px height. Defaults to 'md'. */\n size?: InputSize;\n /**\n * Semantic input type. Sets the correct HTML type and auto-adds icons.\n * - email → envelope icon left\n * - password → lock icon left + show/hide toggle right\n * - search → search icon left + green search button right\n * - date → calendar icon right\n */\n inputType?: InputType;\n /** Label text rendered above the field. */\n label?: string;\n placeholder?: string;\n /** Helper or error message rendered below the field. */\n message?: string;\n /** Info icon rendered beside the label. */\n iconLabel?: React.ReactNode;\n /** Icon rendered inside the field, left side (24×24 slot). */\n iconLeft?: React.ReactNode;\n /** Icon rendered inside the field, right side (24×24 slot). */\n iconRight?: React.ReactNode;\n value?: string;\n onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;\n /** Called when search button is clicked (only for inputType=\"search\") */\n onSearch?: () => void;\n}\n\n// ─── Component ────────────────────────────────────────────────────────────────\n\nexport function Input({\n state = 'Default',\n size = 'md',\n inputType = 'text',\n label,\n placeholder,\n message,\n iconLabel,\n iconLeft,\n iconRight,\n value,\n onChange,\n onSearch,\n id: idProp,\n className,\n ...props\n}: InputProps) {\n const generatedId = useId();\n const id = idProp ?? generatedId;\n const [showPassword, setShowPassword] = useState(false);\n const [dateFocused, setDateFocused] = useState(false);\n\n const isDisabled = state === 'Disabled';\n const isError = state === 'Error';\n\n // ── Resolve HTML type ──────────────────────────────────────────────────────\n const htmlType = inputType === 'password'\n ? (showPassword ? 'text' : 'password')\n : inputType === 'search'\n ? 'text'\n : inputType === 'date'\n ? (dateFocused || !!value ? 'date' : 'text')\n : inputType;\n\n // ── Resolve built-in icons ─────────────────────────────────────────────────\n const resolvedIconLeft: React.ReactNode =\n iconLeft ??\n (inputType === 'email' ? <IconEmail /> :\n inputType === 'password' ? <IconLock /> :\n undefined);\n\n const resolvedIconRight: React.ReactNode =\n iconRight ??\n (inputType === 'password'\n ? (\n <button\n type=\"button\"\n className={styles.toggleBtn}\n onClick={() => setShowPassword((v) => !v)}\n aria-label={showPassword ? 'Ocultar senha' : 'Mostrar senha'}\n tabIndex={-1}\n >\n {showPassword ? <IconEye /> : <IconEyeOff />}\n </button>\n )\n : inputType === 'date'\n ? <IconCalendar />\n : inputType === 'search'\n ? (\n <button\n type=\"button\"\n className={styles.searchBtn}\n onClick={onSearch}\n aria-label=\"Buscar\"\n tabIndex={-1}\n >\n <IconSearch />\n </button>\n )\n : undefined);\n\n const fieldClass = [\n styles.field,\n size === 'sm' ? styles.fieldSm : styles.fieldMd,\n state === 'Hover' ? styles.hover : '',\n state === 'Active' ? styles.active : '',\n isDisabled ? styles.disabled : '',\n isError ? styles.error : '',\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <div className={styles.wrapper}>\n {label && (\n <div className={styles.labelRow}>\n <label\n htmlFor={id}\n className={[styles.label, isDisabled ? styles.labelDisabled : '']\n .filter(Boolean)\n .join(' ')}\n >\n {label}\n </label>\n {iconLabel && (\n <span className={styles.labelIcon} aria-hidden=\"true\">\n {iconLabel}\n </span>\n )}\n </div>\n )}\n\n <div className={fieldClass}>\n {resolvedIconLeft && (\n <span className={styles.icon} aria-hidden=\"true\">\n {resolvedIconLeft}\n </span>\n )}\n <input\n id={id}\n type={htmlType}\n className={styles.input}\n placeholder={placeholder}\n disabled={isDisabled}\n value={value}\n onChange={onChange}\n onFocus={inputType === 'date' ? (e) => { setDateFocused(true); props.onFocus?.(e); } : props.onFocus}\n onBlur={inputType === 'date' ? (e) => { setDateFocused(false); props.onBlur?.(e); } : props.onBlur}\n aria-invalid={isError}\n aria-describedby={message ? `${id}-message` : undefined}\n {...props}\n />\n {resolvedIconRight && (\n <span className={[styles.icon, inputType === 'search' || inputType === 'password' ? styles.iconAction : ''].filter(Boolean).join(' ')}>\n {resolvedIconRight}\n </span>\n )}\n </div>\n\n {message && (\n <p\n id={`${id}-message`}\n className={[styles.message, isError ? styles.messageError : '']\n .filter(Boolean)\n .join(' ')}\n >\n {message}\n </p>\n )}\n </div>\n );\n}\n"],"names":["IconEmail","jsxs","jsx","IconSearch","IconCalendar","IconLock","IconEye","IconEyeOff","Input","state","size","inputType","label","placeholder","message","iconLabel","iconLeft","iconRight","value","onChange","onSearch","idProp","className","props","generatedId","useId","id","showPassword","setShowPassword","useState","dateFocused","setDateFocused","isDisabled","isError","htmlType","resolvedIconLeft","resolvedIconRight","styles","v","fieldClass","e","_a"],"mappings":";;;AASA,SAASA,IAAY;AACnB,SACE,gBAAAC,EAAC,OAAA,EAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,eAAY,QACtE,UAAA;AAAA,IAAA,gBAAAC,EAAC,QAAA,EAAK,GAAE,+EAA8E,QAAO,gBAAe,aAAY,QAAO,eAAc,SAAQ,gBAAe,QAAA,CAAO;AAAA,IAC3K,gBAAAA,EAAC,YAAA,EAAS,QAAO,kBAAiB,QAAO,gBAAe,aAAY,QAAO,eAAc,SAAQ,gBAAe,QAAA,CAAO;AAAA,EAAA,GACzH;AAEJ;AAEA,SAASC,IAAa;AACpB,SACE,gBAAAF,EAAC,OAAA,EAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,eAAY,QACtE,UAAA;AAAA,IAAA,gBAAAC,EAAC,UAAA,EAAO,IAAG,MAAK,IAAG,MAAK,GAAE,KAAI,QAAO,gBAAe,aAAY,QAAO,eAAc,SAAO;AAAA,IAC5F,gBAAAA,EAAC,UAAK,GAAE,oBAAmB,QAAO,gBAAe,aAAY,QAAO,eAAc,QAAA,CAAO;AAAA,EAAA,GAC3F;AAEJ;AAE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sx"],"sourcesContent":["import React from 'react';\n\nexport type IconSize = 20 | 24 | 40 | 48;\nexport type IconWeight = 100 | 200 | 300 | 400 | 500 | 600 | 700;\n\nexport interface IconProps {\n /** Material Symbols icon name, e.g. \"search\", \"home\", \"arrow_back\" */\n name: string;\n /** Icon size in px. Defaults to 24. */\n size?: IconSize;\n /** Stroke weight. Defaults to 400. */\n weight?: IconWeight;\n /** Fill: 0 = outline, 1 = filled. Defaults to 0. */\n fill?: 0 | 1;\n /** Color via CSS currentColor. Apply color on the parent or pass className. */\n className?: string;\n style?: React.CSSProperties;\n 'aria-label'?: string;\n 'aria-hidden'?: boolean | 'true' | 'false';\n}\n\nexport function Icon({\n name,\n size = 24,\n weight = 400,\n fill = 0,\n className,\n style,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n}: IconProps) {\n return (\n <span\n className={['material-symbols-outlined', className].filter(Boolean).join(' ')}\n style={{\n fontSize: size,\n '--icon-fill': fill,\n '--icon-weight': weight,\n '--icon-size': size,\n ...style,\n } as React.CSSProperties}\n aria-label={ariaLabel}\n aria-hidden={ariaHidden ?? (ariaLabel ? undefined : true)}\n >\n {name}\n </span>\n );\n}\n"],"names":["Icon","name","size","weight","fill","className","style","ariaLabel","ariaHidden","jsx"],"mappings":";AAqBO,SAASA,EAAK;AAAA,EACnB,MAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,QAAAC,IAAS;AAAA,EACT,MAAAC,IAAO;AAAA,EACP,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,cAAcC;AAAA,EACd,eAAeC;AACjB,GAAc;AACZ,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,CAAC,6BAA6BJ,CAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,MAC5E,OAAO;AAAA,QACL,UAAUH;AAAA,QACV,eAAeE;AAAA,QACf,iBAAiBD;AAAA,QACjB,eAAeD;AAAA,QACf,GAAGI;AAAA,MAAA;AAAA,MAEL,cAAYC;AAAA,MACZ,eAAaC,MAAeD,IAAY,SAAY;AAAA,MAEnD,UAAAN;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|