@eyesee/ui-components 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +101 -50
- package/dist/components/Badge/Badge.js +1 -8
- package/dist/components/ImagePlaceholder/ImagePlaceholder.js +82 -92
- package/dist/components/ImageWithData/ImageWithData.js +83 -93
- package/dist/components/Modal/Modal.js +57 -43
- package/dist/components/Modal/Modal.module.scss.js +16 -14
- package/dist/components/Tag/Tag.js +15 -25
- package/dist/components/TextHoverable/TextHoverable.js +1 -8
- package/dist/components/icons-v2/ColumnIcon.js +15 -0
- package/dist/components/icons-v2/SquareAddIcon.js +6 -6
- package/dist/components/icons-v2/index.js +18 -16
- package/dist/style.css +1 -1
- package/package.json +10 -4
- package/src/styles/_mixins.scss +92 -0
- package/src/styles/variables.scss +945 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// Typography mixins
|
|
2
|
+
|
|
3
|
+
@mixin heading {
|
|
4
|
+
font-family: Roboto, sans-serif;
|
|
5
|
+
font-style: normal;
|
|
6
|
+
font-weight: 600;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@mixin h1 {
|
|
10
|
+
/* Title/H1 */
|
|
11
|
+
@include heading;
|
|
12
|
+
font-size: var(--font--heading--h1--text-size);
|
|
13
|
+
line-height: var(--font--heading--h1--line-height);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin h2 {
|
|
17
|
+
@include heading;
|
|
18
|
+
font-size: var(--font--heading--h2--text-size);
|
|
19
|
+
line-height: var(--font--heading--h2--line-height);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@mixin h3 {
|
|
23
|
+
@include heading;
|
|
24
|
+
font-size: var(--font--heading--h3--text-size);
|
|
25
|
+
line-height: var(--font--heading--h3--line-height);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@mixin h4 {
|
|
29
|
+
@include heading;
|
|
30
|
+
font-size: var(--font--heading--h4--text-size);
|
|
31
|
+
line-height: var(--font--heading--h4--line-height);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@mixin h5 {
|
|
35
|
+
@include heading;
|
|
36
|
+
font-size: var(--font--heading--h5--text-size);
|
|
37
|
+
line-height: var(--font--heading--h5--line-height);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@mixin h6 {
|
|
41
|
+
@include heading;
|
|
42
|
+
font-size: var(--font--heading--h6--text-size);
|
|
43
|
+
line-height: var(--font--heading--h6--line-height);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Body/body */
|
|
47
|
+
@mixin body {
|
|
48
|
+
font-family: Roboto, sans-serif;
|
|
49
|
+
font-style: normal;
|
|
50
|
+
font-weight: 400;
|
|
51
|
+
font-size: var(--font--body--body--text-size);
|
|
52
|
+
line-height: var(--font--body--body--line-height);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@mixin body-lg {
|
|
56
|
+
@include body;
|
|
57
|
+
font-size: var(--font--body--body-lg--text-size);
|
|
58
|
+
line-height: var(--font--body--body-lg--line-height);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@mixin body-lg-strong {
|
|
62
|
+
@include body-lg;
|
|
63
|
+
font-weight: 500;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@mixin body-strong {
|
|
67
|
+
@include body;
|
|
68
|
+
font-weight: 500;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Body/body-sm */
|
|
72
|
+
@mixin body-sm {
|
|
73
|
+
@include body;
|
|
74
|
+
font-size: var(--font--body--body-sm--text-size);
|
|
75
|
+
line-height: var(--font--body--body-sm--line-height);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@mixin body-sm-strong {
|
|
79
|
+
@include body-sm;
|
|
80
|
+
font-weight: 500;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@mixin label {
|
|
84
|
+
@include body-sm-strong;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Checkbox hover tokens — set on a parent `:hover` to style nested checkboxes
|
|
88
|
+
@mixin checkbox-hover-tokens {
|
|
89
|
+
--checkbox-border-color: var(--color-border-secondary-subtle);
|
|
90
|
+
--checkbox-filled-background: var(--color--background--secondary--default-hover);
|
|
91
|
+
--checkbox-filled-border-color: var(--color--background--secondary--default-hover);
|
|
92
|
+
}
|