@treeal/ds 0.1.0 → 0.1.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/index.d.ts +1 -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.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs19.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 +2 -0
- package/dist/index.cjs24.js.map +1 -0
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs3.js.map +1 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs4.js.map +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs5.js.map +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs6.js.map +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs7.js.map +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs8.js.map +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs9.js.map +1 -1
- package/dist/index.esm.js +24 -23
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm10.js +66 -226
- package/dist/index.esm10.js.map +1 -1
- package/dist/index.esm11.js +221 -160
- package/dist/index.esm11.js.map +1 -1
- package/dist/index.esm12.js +157 -73
- package/dist/index.esm12.js.map +1 -1
- package/dist/index.esm13.js +83 -212
- package/dist/index.esm13.js.map +1 -1
- package/dist/index.esm14.js +219 -23
- package/dist/index.esm14.js.map +1 -1
- package/dist/index.esm15.js +22 -30
- package/dist/index.esm15.js.map +1 -1
- package/dist/index.esm16.js +38 -60
- package/dist/index.esm16.js.map +1 -1
- package/dist/index.esm17.js +30 -60
- package/dist/index.esm17.js.map +1 -1
- package/dist/index.esm18.js +22 -38
- package/dist/index.esm18.js.map +1 -1
- package/dist/index.esm19.js +60 -22
- package/dist/index.esm19.js.map +1 -1
- package/dist/index.esm21.js +102 -48
- package/dist/index.esm21.js.map +1 -1
- package/dist/index.esm22.js +22 -22
- package/dist/index.esm23.js +60 -102
- package/dist/index.esm23.js.map +1 -1
- package/dist/index.esm24.js +52 -0
- package/dist/index.esm24.js.map +1 -0
- package/dist/index.esm3.js +89 -53
- package/dist/index.esm3.js.map +1 -1
- package/dist/index.esm4.js +58 -111
- package/dist/index.esm4.js.map +1 -1
- package/dist/index.esm5.js +106 -60
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.esm6.js +60 -28
- package/dist/index.esm6.js.map +1 -1
- package/dist/index.esm7.js +26 -171
- package/dist/index.esm7.js.map +1 -1
- package/dist/index.esm8.js +167 -54
- package/dist/index.esm8.js.map +1 -1
- package/dist/index.esm9.js +62 -71
- package/dist/index.esm9.js.map +1 -1
- package/package.json +1 -1
- package/dist/index.cjs2.js +0 -2
- package/dist/index.cjs2.js.map +0 -1
- package/dist/index.esm2.js +0 -98
- package/dist/index.esm2.js.map +0 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const t = "_steps_xg6k6_20", e = "_item_xg6k6_30", n = "_typeStart_xg6k6_51", _ = "_typeStep_xg6k6_66", o = "_typeEnd_xg6k6_82", c = "_stateDefault_xg6k6_94", i = "_stateHover_xg6k6_95", s = "_stateActive_xg6k6_96", m = "_stateComplete_xg6k6_97", a = "_textDark_xg6k6_101", x = "_textLight_xg6k6_102", k = "_label_xg6k6_106", g = "_num_xg6k6_119", l = "_checkIcon_xg6k6_132", p = "_minified_xg6k6_143", r = "_minDot_xg6k6_150", C = "_minDefault_xg6k6_156", D = "_minActive_xg6k6_162", f = "_minComplete_xg6k6_169", u = "_minConnector_xg6k6_176", v = "_minConnectorDefault_xg6k6_183", y = "_minConnectorActive_xg6k6_184", A = "_minConnectorComplete_xg6k6_185", d = {
|
|
2
|
+
steps: t,
|
|
3
|
+
item: e,
|
|
4
|
+
typeStart: n,
|
|
5
|
+
typeStep: _,
|
|
6
|
+
typeEnd: o,
|
|
7
|
+
stateDefault: c,
|
|
8
|
+
stateHover: i,
|
|
9
|
+
stateActive: s,
|
|
10
|
+
stateComplete: m,
|
|
11
|
+
textDark: a,
|
|
12
|
+
textLight: x,
|
|
13
|
+
label: k,
|
|
14
|
+
num: g,
|
|
15
|
+
checkIcon: l,
|
|
16
|
+
minified: p,
|
|
17
|
+
minDot: r,
|
|
18
|
+
minDefault: C,
|
|
19
|
+
minActive: D,
|
|
20
|
+
minComplete: f,
|
|
21
|
+
minConnector: u,
|
|
22
|
+
minConnectorDefault: v,
|
|
23
|
+
minConnectorActive: y,
|
|
24
|
+
minConnectorComplete: A
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
l as checkIcon,
|
|
28
|
+
d as default,
|
|
29
|
+
e as item,
|
|
30
|
+
k as label,
|
|
31
|
+
D as minActive,
|
|
32
|
+
f as minComplete,
|
|
33
|
+
u as minConnector,
|
|
34
|
+
y as minConnectorActive,
|
|
35
|
+
A as minConnectorComplete,
|
|
36
|
+
v as minConnectorDefault,
|
|
37
|
+
C as minDefault,
|
|
38
|
+
r as minDot,
|
|
39
|
+
p as minified,
|
|
40
|
+
g as num,
|
|
41
|
+
s as stateActive,
|
|
42
|
+
m as stateComplete,
|
|
43
|
+
c as stateDefault,
|
|
44
|
+
i as stateHover,
|
|
45
|
+
t as steps,
|
|
46
|
+
a as textDark,
|
|
47
|
+
x as textLight,
|
|
48
|
+
o as typeEnd,
|
|
49
|
+
n as typeStart,
|
|
50
|
+
_ as typeStep
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=index.esm24.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm24.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.esm3.js
CHANGED
|
@@ -1,62 +1,98 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
const F = {
|
|
2
|
+
brand: {
|
|
3
|
+
primary: {
|
|
4
|
+
/** #203224 — Secondary button bg; Fill button text; Check/Radio checked bg */
|
|
5
|
+
base: "#203224"
|
|
6
|
+
},
|
|
7
|
+
secondary: {
|
|
8
|
+
/** #0F6C13 — Outline button border & text */
|
|
9
|
+
base: "#0F6C13"
|
|
10
|
+
},
|
|
11
|
+
tertiary: {
|
|
12
|
+
/** #E7DA10 — Fill button background */
|
|
13
|
+
base: "#E7DA10"
|
|
14
|
+
}
|
|
13
15
|
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
default: {
|
|
17
|
+
/** #FFFFFF — Secondary button text; input background */
|
|
18
|
+
white: "#FFFFFF",
|
|
19
|
+
/** #524E69 — Disabled text; input active/error text */
|
|
20
|
+
textDark: "#524E69",
|
|
21
|
+
/** #9490AC — Placeholder; input hover/active border; Grayscale/600 */
|
|
22
|
+
textMedium: "#9490AC",
|
|
23
|
+
/** #EFEEF2 — Disabled background; input focus ring; Grayscale/100 */
|
|
24
|
+
disabled: "#EFEEF2",
|
|
25
|
+
/** #DCE5DE — Default input border; Check/Radio border */
|
|
26
|
+
border: "#DCE5DE",
|
|
27
|
+
/** #E0DEED — Grayscale/200 · Default step background */
|
|
28
|
+
stepDefault: "#E0DEED",
|
|
29
|
+
/** #F5F5F5 — Default Colors/White Cloud · Nav sidebar background */
|
|
30
|
+
whiteCloud: "#F5F5F5",
|
|
31
|
+
/** #E0DEED — Grayscale/200 · Modal slot border */
|
|
32
|
+
modalBorder: "#E0DEED",
|
|
33
|
+
/** #757094 — Default Colors/Text medium · Modal slot text, option labels */
|
|
34
|
+
modalTextMedium: "#757094"
|
|
17
35
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
/** 12px — Text/xs (Roboto · Pagination xs) */
|
|
28
|
-
paginationXs: "0.75rem",
|
|
29
|
-
/** 16px — Text/md (Roboto · Pagination md) */
|
|
30
|
-
paginationMd: "1rem",
|
|
31
|
-
/** 18px — Text/lg (Roboto · Pagination lg) */
|
|
32
|
-
paginationLg: "1.125rem",
|
|
33
|
-
/** @deprecated use fontSize.md */
|
|
34
|
-
button: "1rem"
|
|
36
|
+
message: {
|
|
37
|
+
info: {
|
|
38
|
+
/** #2472BA — Text button text */
|
|
39
|
+
base: "#2472BA"
|
|
40
|
+
},
|
|
41
|
+
danger: {
|
|
42
|
+
/** #FF3A29 — Error input border & message */
|
|
43
|
+
base: "#FF3A29"
|
|
44
|
+
}
|
|
35
45
|
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
text
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
paginationMd: "18px",
|
|
49
|
-
/** 20px — Text/lg (Roboto · Pagination lg) */
|
|
50
|
-
paginationLg: "20px"
|
|
46
|
+
/** Gray scale — FileUpload / Gray/x00 tokens */
|
|
47
|
+
gray: {
|
|
48
|
+
/** #101828 — Gray/900 · file name, body text */
|
|
49
|
+
900: "#101828",
|
|
50
|
+
/** #475467 — Gray/600 · action icon color */
|
|
51
|
+
600: "#475467",
|
|
52
|
+
/** #667085 — Gray/500 · file size, muted text */
|
|
53
|
+
500: "#667085",
|
|
54
|
+
/** #D0D5DD — Gray/300 · upload drop-zone default border */
|
|
55
|
+
300: "#D0D5DD",
|
|
56
|
+
/** #EAECF0 — Gray/200 · file item border, progress track */
|
|
57
|
+
200: "#EAECF0"
|
|
51
58
|
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
59
|
+
/** Pagination tokens — Pagination (3203:662) */
|
|
60
|
+
pagination: {
|
|
61
|
+
/** #0F6C13 — active item bg (= brand.secondary.base) */
|
|
62
|
+
active: "#0F6C13",
|
|
63
|
+
/** #CED4DA — Gray/Gray 4 · inactive item border, control border */
|
|
64
|
+
border: "#CED4DA",
|
|
65
|
+
/** #101113 — Dark/Dark 9 · page number text */
|
|
66
|
+
text: "#101113"
|
|
67
|
+
},
|
|
68
|
+
/** Alert tokens — AlertSticky (3114:1706) */
|
|
69
|
+
alert: {
|
|
70
|
+
default: { bg: "#F9F8FC", border: "#DCE5DE", title: "#524E69" },
|
|
71
|
+
info: { bg: "#F4F9FF", border: "#C9E2FE", title: "#2472BA" },
|
|
72
|
+
success: { bg: "#F5FBF7", border: "#CAE7D5", title: "#2C7D56" },
|
|
73
|
+
warning: { bg: "#FFF9E9", border: "#FFDB90", title: "#A36A00" },
|
|
74
|
+
error: { bg: "#FFF8F6", border: "#FFCABF", title: "#DE0000" }
|
|
75
|
+
},
|
|
76
|
+
/** Shadow tokens */
|
|
77
|
+
shadow: {
|
|
78
|
+
/** 0px 1px 12px 0px rgba(25,27,35,0.15) — BS-Popper */
|
|
79
|
+
popper: "0px 1px 12px 0px rgba(25,27,35,0.15)"
|
|
80
|
+
},
|
|
81
|
+
/** Blue primary scale — FileUpload / Primary/x00 tokens */
|
|
82
|
+
primary: {
|
|
83
|
+
/** #154FEF — Primary/600 · "browse" link color */
|
|
84
|
+
600: "#154FEF",
|
|
85
|
+
/** #2970FF — Primary/500 · active drop-zone border, progress fill */
|
|
86
|
+
500: "#2970FF",
|
|
87
|
+
/** #5280FF — Primary/400 */
|
|
88
|
+
400: "#5280FF",
|
|
89
|
+
/** #B2C9FF — Primary/200 · file badge background */
|
|
90
|
+
200: "#B2C9FF",
|
|
91
|
+
/** #DBE8FF — Primary/100 · file badge ring, active drop-zone bg */
|
|
92
|
+
100: "#DBE8FF"
|
|
57
93
|
}
|
|
58
94
|
};
|
|
59
95
|
export {
|
|
60
|
-
|
|
96
|
+
F as colors
|
|
61
97
|
};
|
|
62
98
|
//# sourceMappingURL=index.esm3.js.map
|
package/dist/index.esm3.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm3.js","sources":["../tokens/
|
|
1
|
+
{"version":3,"file":"index.esm3.js","sources":["../tokens/colors.ts"],"sourcesContent":["/**\n * Color tokens — extracted directly from Figma (VekfomfsZU4q2iaY1j4VXP)\n * Nodes: BtnsBase (3107:5509), TextField (3105:3885), BaseCheckRadio (3106:4752),\n * FileUpload (3210:3538), Pagination (3203:662), NavPrimary (3554:548),\n * Modal (5139:1464), AlertSticky (3114:1706)\n */\n\nexport const colors = {\n brand: {\n primary: {\n /** #203224 — Secondary button bg; Fill button text; Check/Radio checked bg */\n base: '#203224',\n },\n secondary: {\n /** #0F6C13 — Outline button border & text */\n base: '#0F6C13',\n },\n tertiary: {\n /** #E7DA10 — Fill button background */\n base: '#E7DA10',\n },\n },\n default: {\n /** #FFFFFF — Secondary button text; input background */\n white: '#FFFFFF',\n /** #524E69 — Disabled text; input active/error text */\n textDark: '#524E69',\n /** #9490AC — Placeholder; input hover/active border; Grayscale/600 */\n textMedium: '#9490AC',\n /** #EFEEF2 — Disabled background; input focus ring; Grayscale/100 */\n disabled: '#EFEEF2',\n /** #DCE5DE — Default input border; Check/Radio border */\n border: '#DCE5DE',\n /** #E0DEED — Grayscale/200 · Default step background */\n stepDefault: '#E0DEED',\n /** #F5F5F5 — Default Colors/White Cloud · Nav sidebar background */\n whiteCloud: '#F5F5F5',\n /** #E0DEED — Grayscale/200 · Modal slot border */\n modalBorder: '#E0DEED',\n /** #757094 — Default Colors/Text medium · Modal slot text, option labels */\n modalTextMedium: '#757094',\n },\n message: {\n info: {\n /** #2472BA — Text button text */\n base: '#2472BA',\n },\n danger: {\n /** #FF3A29 — Error input border & message */\n base: '#FF3A29',\n },\n },\n /** Gray scale — FileUpload / Gray/x00 tokens */\n gray: {\n /** #101828 — Gray/900 · file name, body text */\n 900: '#101828',\n /** #475467 — Gray/600 · action icon color */\n 600: '#475467',\n /** #667085 — Gray/500 · file size, muted text */\n 500: '#667085',\n /** #D0D5DD — Gray/300 · upload drop-zone default border */\n 300: '#D0D5DD',\n /** #EAECF0 — Gray/200 · file item border, progress track */\n 200: '#EAECF0',\n },\n /** Pagination tokens — Pagination (3203:662) */\n pagination: {\n /** #0F6C13 — active item bg (= brand.secondary.base) */\n active: '#0F6C13',\n /** #CED4DA — Gray/Gray 4 · inactive item border, control border */\n border: '#CED4DA',\n /** #101113 — Dark/Dark 9 · page number text */\n text: '#101113',\n },\n /** Alert tokens — AlertSticky (3114:1706) */\n alert: {\n default: { bg: '#F9F8FC', border: '#DCE5DE', title: '#524E69' },\n info: { bg: '#F4F9FF', border: '#C9E2FE', title: '#2472BA' },\n success: { bg: '#F5FBF7', border: '#CAE7D5', title: '#2C7D56' },\n warning: { bg: '#FFF9E9', border: '#FFDB90', title: '#A36A00' },\n error: { bg: '#FFF8F6', border: '#FFCABF', title: '#DE0000' },\n },\n /** Shadow tokens */\n shadow: {\n /** 0px 1px 12px 0px rgba(25,27,35,0.15) — BS-Popper */\n popper: '0px 1px 12px 0px rgba(25,27,35,0.15)',\n },\n /** Blue primary scale — FileUpload / Primary/x00 tokens */\n primary: {\n /** #154FEF — Primary/600 · \"browse\" link color */\n 600: '#154FEF',\n /** #2970FF — Primary/500 · active drop-zone border, progress fill */\n 500: '#2970FF',\n /** #5280FF — Primary/400 */\n 400: '#5280FF',\n /** #B2C9FF — Primary/200 · file badge background */\n 200: '#B2C9FF',\n /** #DBE8FF — Primary/100 · file badge ring, active drop-zone bg */\n 100: '#DBE8FF',\n },\n} as const;\n\nexport type Colors = typeof colors;\n"],"names":["colors"],"mappings":"AAOO,MAAMA,IAAS;AAAA,EACpB,OAAO;AAAA,IACL,SAAS;AAAA;AAAA,MAEP,MAAM;AAAA,IAAA;AAAA,IAER,WAAW;AAAA;AAAA,MAET,MAAM;AAAA,IAAA;AAAA,IAER,UAAU;AAAA;AAAA,MAER,MAAM;AAAA,IAAA;AAAA,EACR;AAAA,EAEF,SAAS;AAAA;AAAA,IAEP,OAAO;AAAA;AAAA,IAEP,UAAU;AAAA;AAAA,IAEV,YAAY;AAAA;AAAA,IAEZ,UAAU;AAAA;AAAA,IAEV,QAAQ;AAAA;AAAA,IAER,aAAa;AAAA;AAAA,IAEb,YAAY;AAAA;AAAA,IAEZ,aAAa;AAAA;AAAA,IAEb,iBAAiB;AAAA,EAAA;AAAA,EAEnB,SAAS;AAAA,IACP,MAAM;AAAA;AAAA,MAEJ,MAAM;AAAA,IAAA;AAAA,IAER,QAAQ;AAAA;AAAA,MAEN,MAAM;AAAA,IAAA;AAAA,EACR;AAAA;AAAA,EAGF,MAAM;AAAA;AAAA,IAEJ,KAAK;AAAA;AAAA,IAEL,KAAK;AAAA;AAAA,IAEL,KAAK;AAAA;AAAA,IAEL,KAAK;AAAA;AAAA,IAEL,KAAK;AAAA,EAAA;AAAA;AAAA,EAGP,YAAY;AAAA;AAAA,IAEV,QAAQ;AAAA;AAAA,IAER,QAAQ;AAAA;AAAA,IAER,MAAM;AAAA,EAAA;AAAA;AAAA,EAGR,OAAO;AAAA,IACL,SAAS,EAAE,IAAI,WAAW,QAAQ,WAAW,OAAO,UAAA;AAAA,IACpD,MAAS,EAAE,IAAI,WAAW,QAAQ,WAAW,OAAO,UAAA;AAAA,IACpD,SAAS,EAAE,IAAI,WAAW,QAAQ,WAAW,OAAO,UAAA;AAAA,IACpD,SAAS,EAAE,IAAI,WAAW,QAAQ,WAAW,OAAO,UAAA;AAAA,IACpD,OAAS,EAAE,IAAI,WAAW,QAAQ,WAAW,OAAO,UAAA;AAAA,EAAU;AAAA;AAAA,EAGhE,QAAQ;AAAA;AAAA,IAEN,QAAQ;AAAA,EAAA;AAAA;AAAA,EAGV,SAAS;AAAA;AAAA,IAEP,KAAK;AAAA;AAAA,IAEL,KAAK;AAAA;AAAA,IAEL,KAAK;AAAA;AAAA,IAEL,KAAK;AAAA;AAAA,IAEL,KAAK;AAAA,EAAA;AAET;"}
|
package/dist/index.esm4.js
CHANGED
|
@@ -1,115 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
const a = {
|
|
2
|
+
fontFamily: {
|
|
3
|
+
/** Clash Grotesk Variable — buttons, inputs, labels */
|
|
4
|
+
base: "'Clash Grotesk Variable', sans-serif",
|
|
5
|
+
/** Inter — FileUpload text (Paragraph/SM and Paragraph/XS) */
|
|
6
|
+
inter: "'Inter', sans-serif",
|
|
7
|
+
/** Roboto — Pagination numbers and controls */
|
|
8
|
+
roboto: "'Roboto', sans-serif",
|
|
9
|
+
/** Clash Display Variable — Steps step number (Headings/H4 · 21px) */
|
|
10
|
+
clashDisplay: "'Clash Display Variable', sans-serif",
|
|
11
|
+
/** @deprecated use fontFamily.base */
|
|
12
|
+
button: "'Clash Grotesk Variable', sans-serif"
|
|
13
|
+
},
|
|
14
|
+
fontWeight: {
|
|
15
|
+
regular: 400,
|
|
16
|
+
semibold: 600
|
|
17
|
+
},
|
|
18
|
+
fontSize: {
|
|
19
|
+
/** 16px — Body Texts/Button & Body Texts/Text */
|
|
20
|
+
md: "1rem",
|
|
21
|
+
/** 14px — Body Texts/Label & Body Texts/Text Small */
|
|
22
|
+
sm: "0.875rem",
|
|
23
|
+
/** 12px — Paragraph/SM/Regular (Inter · FileUpload) */
|
|
24
|
+
bodySm: "0.75rem",
|
|
25
|
+
/** 10px — Paragraph/XS/Regular (Inter · FileUpload) */
|
|
26
|
+
bodyXs: "0.625rem",
|
|
27
|
+
/** 12px — Text/xs (Roboto · Pagination xs) */
|
|
28
|
+
paginationXs: "0.75rem",
|
|
29
|
+
/** 16px — Text/md (Roboto · Pagination md) */
|
|
30
|
+
paginationMd: "1rem",
|
|
31
|
+
/** 18px — Text/lg (Roboto · Pagination lg) */
|
|
32
|
+
paginationLg: "1.125rem",
|
|
33
|
+
/** @deprecated use fontSize.md */
|
|
34
|
+
button: "1rem"
|
|
35
|
+
},
|
|
36
|
+
lineHeight: {
|
|
37
|
+
/** 1.5 — Body Texts/Button */
|
|
38
|
+
button: 1.5,
|
|
39
|
+
/** 1.43 — Body Texts/Label (Semibold 14px) */
|
|
40
|
+
label: 1.43,
|
|
41
|
+
/** 1.30 — Body Texts/Text & Body Texts/Text Small */
|
|
42
|
+
text: 1.3,
|
|
43
|
+
/** 1.60 — Paragraph/SM/Regular & Paragraph/XS/Regular (Inter · FileUpload) */
|
|
44
|
+
body: 1.6,
|
|
45
|
+
/** 14px — Text/xs (Roboto · Pagination xs) */
|
|
46
|
+
paginationXs: "14px",
|
|
47
|
+
/** 18px — Text/md (Roboto · Pagination md) */
|
|
48
|
+
paginationMd: "18px",
|
|
49
|
+
/** 20px — Text/lg (Roboto · Pagination lg) */
|
|
50
|
+
paginationLg: "20px"
|
|
51
|
+
},
|
|
52
|
+
letterSpacing: {
|
|
53
|
+
/** 0 — all tokens */
|
|
54
|
+
none: 0,
|
|
55
|
+
/** @deprecated use letterSpacing.none */
|
|
56
|
+
button: 0
|
|
57
|
+
}
|
|
9
58
|
};
|
|
10
|
-
function k({ color: e }) {
|
|
11
|
-
return /* @__PURE__ */ i("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
|
|
12
|
-
/* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "9", fill: e }),
|
|
13
|
-
/* @__PURE__ */ r("path", { d: "M10 9v5", stroke: "#fff", strokeWidth: "1.75", strokeLinecap: "round" }),
|
|
14
|
-
/* @__PURE__ */ r("circle", { cx: "10", cy: "6.5", r: "1", fill: "#fff" })
|
|
15
|
-
] });
|
|
16
|
-
}
|
|
17
|
-
function v({ color: e }) {
|
|
18
|
-
return /* @__PURE__ */ i("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
|
|
19
|
-
/* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "9", fill: e }),
|
|
20
|
-
/* @__PURE__ */ r("path", { d: "M6 10.5l3 3 5-5.5", stroke: "#fff", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
21
|
-
] });
|
|
22
|
-
}
|
|
23
|
-
function x({ color: e }) {
|
|
24
|
-
return /* @__PURE__ */ i("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
|
|
25
|
-
/* @__PURE__ */ r("path", { d: "M10 2.5L18 17H2L10 2.5Z", fill: e }),
|
|
26
|
-
/* @__PURE__ */ r("path", { d: "M10 8v4", stroke: "#fff", strokeWidth: "1.75", strokeLinecap: "round" }),
|
|
27
|
-
/* @__PURE__ */ r("circle", { cx: "10", cy: "14.5", r: "1", fill: "#fff" })
|
|
28
|
-
] });
|
|
29
|
-
}
|
|
30
|
-
function W({ color: e }) {
|
|
31
|
-
return /* @__PURE__ */ i("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
|
|
32
|
-
/* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "9", fill: e }),
|
|
33
|
-
/* @__PURE__ */ r("path", { d: "M7 7l6 6M13 7l-6 6", stroke: "#fff", strokeWidth: "1.75", strokeLinecap: "round" })
|
|
34
|
-
] });
|
|
35
|
-
}
|
|
36
|
-
function m() {
|
|
37
|
-
return /* @__PURE__ */ r("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ r("path", { d: "M15 5L5 15M5 5l10 10", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round" }) });
|
|
38
|
-
}
|
|
39
|
-
function S({ type: e }) {
|
|
40
|
-
const n = p[e];
|
|
41
|
-
return e === "Success" ? /* @__PURE__ */ r(v, { color: n }) : e === "Warning" ? /* @__PURE__ */ r(x, { color: n }) : e === "Error" ? /* @__PURE__ */ r(W, { color: n }) : /* @__PURE__ */ r(k, { color: n });
|
|
42
|
-
}
|
|
43
|
-
const I = {
|
|
44
|
-
Default: t.typeDefault,
|
|
45
|
-
Info: t.typeInfo,
|
|
46
|
-
Success: t.typeSuccess,
|
|
47
|
-
Warning: t.typeWarning,
|
|
48
|
-
Error: t.typeError
|
|
49
|
-
}, M = {
|
|
50
|
-
Default: t.titleDefault,
|
|
51
|
-
Info: t.titleInfo,
|
|
52
|
-
Success: t.titleSuccess,
|
|
53
|
-
Warning: t.titleWarning,
|
|
54
|
-
Error: t.titleError
|
|
55
|
-
}, w = {
|
|
56
|
-
Default: "status",
|
|
57
|
-
Info: "status",
|
|
58
|
-
Success: "status",
|
|
59
|
-
Warning: "alert",
|
|
60
|
-
Error: "alert"
|
|
61
|
-
};
|
|
62
|
-
function B({
|
|
63
|
-
type: e = "Default",
|
|
64
|
-
title: n,
|
|
65
|
-
message: c,
|
|
66
|
-
addonLeft: s = !0,
|
|
67
|
-
closeIcon: o = !0,
|
|
68
|
-
actions: l = !1,
|
|
69
|
-
actionLabel: a = "Ação",
|
|
70
|
-
onClose: f,
|
|
71
|
-
onAction: u,
|
|
72
|
-
className: d
|
|
73
|
-
}) {
|
|
74
|
-
const h = [t.alert, I[e], d].filter(Boolean).join(" "), g = l || o;
|
|
75
|
-
return /* @__PURE__ */ i(
|
|
76
|
-
"div",
|
|
77
|
-
{
|
|
78
|
-
className: h,
|
|
79
|
-
role: w[e],
|
|
80
|
-
"aria-live": e === "Warning" || e === "Error" ? "assertive" : "polite",
|
|
81
|
-
children: [
|
|
82
|
-
s && /* @__PURE__ */ r("span", { className: t.iconSlot, children: /* @__PURE__ */ r(S, { type: e }) }),
|
|
83
|
-
/* @__PURE__ */ i("div", { className: t.textContent, children: [
|
|
84
|
-
n && /* @__PURE__ */ r("p", { className: [t.title, M[e]].join(" "), children: n }),
|
|
85
|
-
/* @__PURE__ */ r("p", { className: t.message, children: c })
|
|
86
|
-
] }),
|
|
87
|
-
g && /* @__PURE__ */ i("div", { className: t.rightSlot, children: [
|
|
88
|
-
l && /* @__PURE__ */ r(
|
|
89
|
-
"button",
|
|
90
|
-
{
|
|
91
|
-
type: "button",
|
|
92
|
-
className: t.actionBtn,
|
|
93
|
-
onClick: u,
|
|
94
|
-
children: a
|
|
95
|
-
}
|
|
96
|
-
),
|
|
97
|
-
o && /* @__PURE__ */ r(
|
|
98
|
-
"button",
|
|
99
|
-
{
|
|
100
|
-
type: "button",
|
|
101
|
-
className: t.closeBtn,
|
|
102
|
-
onClick: f,
|
|
103
|
-
"aria-label": "Fechar alerta",
|
|
104
|
-
children: /* @__PURE__ */ r(m, {})
|
|
105
|
-
}
|
|
106
|
-
)
|
|
107
|
-
] })
|
|
108
|
-
]
|
|
109
|
-
}
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
59
|
export {
|
|
113
|
-
|
|
60
|
+
a as typography
|
|
114
61
|
};
|
|
115
62
|
//# sourceMappingURL=index.esm4.js.map
|
package/dist/index.esm4.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm4.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index.esm4.js","sources":["../tokens/typography.ts"],"sourcesContent":["/**\n * Typography tokens — extracted directly from Figma (VekfomfsZU4q2iaY1j4VXP)\n * Tokens: Body Texts/Button, Body Texts/Label, Body Texts/Text, Body Texts/Text Small,\n * Paragraph/SM/Regular, Paragraph/XS/Regular (FileUpload 3210:3538),\n * Text/xs, Text/md, Text/lg (Pagination 3203:662)\n */\n\nexport const typography = {\n fontFamily: {\n /** Clash Grotesk Variable — buttons, inputs, labels */\n base: \"'Clash Grotesk Variable', sans-serif\",\n /** Inter — FileUpload text (Paragraph/SM and Paragraph/XS) */\n inter: \"'Inter', sans-serif\",\n /** Roboto — Pagination numbers and controls */\n roboto: \"'Roboto', sans-serif\",\n /** Clash Display Variable — Steps step number (Headings/H4 · 21px) */\n clashDisplay: \"'Clash Display Variable', sans-serif\",\n /** @deprecated use fontFamily.base */\n button: \"'Clash Grotesk Variable', sans-serif\",\n },\n fontWeight: {\n regular: 400,\n semibold: 600,\n },\n fontSize: {\n /** 16px — Body Texts/Button & Body Texts/Text */\n md: '1rem',\n /** 14px — Body Texts/Label & Body Texts/Text Small */\n sm: '0.875rem',\n /** 12px — Paragraph/SM/Regular (Inter · FileUpload) */\n bodySm: '0.75rem',\n /** 10px — Paragraph/XS/Regular (Inter · FileUpload) */\n bodyXs: '0.625rem',\n /** 12px — Text/xs (Roboto · Pagination xs) */\n paginationXs: '0.75rem',\n /** 16px — Text/md (Roboto · Pagination md) */\n paginationMd: '1rem',\n /** 18px — Text/lg (Roboto · Pagination lg) */\n paginationLg: '1.125rem',\n /** @deprecated use fontSize.md */\n button: '1rem',\n },\n lineHeight: {\n /** 1.5 — Body Texts/Button */\n button: 1.5,\n /** 1.43 — Body Texts/Label (Semibold 14px) */\n label: 1.43,\n /** 1.30 — Body Texts/Text & Body Texts/Text Small */\n text: 1.3,\n /** 1.60 — Paragraph/SM/Regular & Paragraph/XS/Regular (Inter · FileUpload) */\n body: 1.6,\n /** 14px — Text/xs (Roboto · Pagination xs) */\n paginationXs: '14px',\n /** 18px — Text/md (Roboto · Pagination md) */\n paginationMd: '18px',\n /** 20px — Text/lg (Roboto · Pagination lg) */\n paginationLg: '20px',\n },\n letterSpacing: {\n /** 0 — all tokens */\n none: 0,\n /** @deprecated use letterSpacing.none */\n button: 0,\n },\n} as const;\n\nexport type Typography = typeof typography;\n"],"names":["typography"],"mappings":"AAOO,MAAMA,IAAa;AAAA,EACxB,YAAY;AAAA;AAAA,IAEV,MAAM;AAAA;AAAA,IAEN,OAAO;AAAA;AAAA,IAEP,QAAQ;AAAA;AAAA,IAER,cAAc;AAAA;AAAA,IAEd,QAAQ;AAAA,EAAA;AAAA,EAEV,YAAY;AAAA,IACV,SAAS;AAAA,IACT,UAAU;AAAA,EAAA;AAAA,EAEZ,UAAU;AAAA;AAAA,IAER,IAAI;AAAA;AAAA,IAEJ,IAAI;AAAA;AAAA,IAEJ,QAAQ;AAAA;AAAA,IAER,QAAQ;AAAA;AAAA,IAER,cAAc;AAAA;AAAA,IAEd,cAAc;AAAA;AAAA,IAEd,cAAc;AAAA;AAAA,IAEd,QAAQ;AAAA,EAAA;AAAA,EAEV,YAAY;AAAA;AAAA,IAEV,QAAQ;AAAA;AAAA,IAER,OAAO;AAAA;AAAA,IAEP,MAAM;AAAA;AAAA,IAEN,MAAM;AAAA;AAAA,IAEN,cAAc;AAAA;AAAA,IAEd,cAAc;AAAA;AAAA,IAEd,cAAc;AAAA,EAAA;AAAA,EAEhB,eAAe;AAAA;AAAA,IAEb,MAAM;AAAA;AAAA,IAEN,QAAQ;AAAA,EAAA;AAEZ;"}
|