graphen 1.10.19 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css.js +1 -1
- package/dist/scripts.js +1 -1
- package/package.json +1 -1
- package/src/components/Badge/index.tsx +29 -0
- package/src/components/Badge/styles/_styles.scss +38 -0
- package/src/components/Body/styles/_styles.scss +6 -2
- package/src/components/Button/styles/_styles.scss +63 -28
- package/src/components/Card/styles/_styles.scss +5 -6
- package/src/components/Dropdown/integration/dropdown.spec.js +9 -5
- package/src/components/Input/styles/_styles.scss +36 -9
- package/src/components/Link/styles/_styles.scss +5 -2
- package/src/components/Logo/index.tsx +2 -1
- package/src/components/Logo/styles/_styles.scss +24 -2
- package/src/components/SectionHeader/styles/_styles.scss +40 -0
- package/src/components/Separator/styles/_styles.scss +4 -3
- package/src/example/styles/_docs.scss +731 -0
- package/src/example/styles/_splash.scss +169 -0
- package/src/example/styles/_styles.scss +14 -0
- package/src/example.scss +5 -17
- package/src/example.tsx +928 -632
- package/src/index.ts +2 -0
- package/src/style.scss +2 -0
- package/src/variables/_brand.scss +2 -1
- package/src/variables/_sizes.scss +3 -3
- package/src/variables/integration/colors.spec.js +21 -17
- package/dist/18ca3004c8aec4f105976c8c7f11083b.jpg +0 -0
- package/dist/example.js +0 -2
- package/dist/example.js.LICENSE.txt +0 -44
- package/dist/styles.css +0 -1
- package/src/assets/splash.jpg +0 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--t: 2s;
|
|
3
|
+
--rx: 5vmin;
|
|
4
|
+
--ry: var(--rx) / cos(30deg);
|
|
5
|
+
--dx: 1vmin;
|
|
6
|
+
--dy: var(--dx) * sin(pi / 3);
|
|
7
|
+
--global-offset-x: calc(0.5 * var(--dx) + var(--rx));
|
|
8
|
+
--global-offset-y: calc(1.5 * var(--ry) + var(--dy));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.hex {
|
|
12
|
+
animation: infinite;
|
|
13
|
+
display: flex;
|
|
14
|
+
position: absolute;
|
|
15
|
+
height: calc(4 * var(--ry));
|
|
16
|
+
width: calc(4 * var(--rx));
|
|
17
|
+
filter: drop-shadow(-1px 0 0 $gb-color-component-dark) drop-shadow(1px 0 0 $gb-color-component);
|
|
18
|
+
|
|
19
|
+
&::before {
|
|
20
|
+
content: "";
|
|
21
|
+
color: white;
|
|
22
|
+
border-right: calc(2 * var(--rx)) solid;
|
|
23
|
+
border-block: calc(1 * var(--ry)) solid transparent;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&::after {
|
|
27
|
+
content: "";
|
|
28
|
+
color: white;
|
|
29
|
+
border-left: calc(2 * var(--rx)) solid;
|
|
30
|
+
border-block: calc(1 * var(--ry)) solid transparent;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.root {
|
|
35
|
+
position: relative;
|
|
36
|
+
margin: auto;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.one,
|
|
40
|
+
.three,
|
|
41
|
+
.five,
|
|
42
|
+
.seven,
|
|
43
|
+
.nine,
|
|
44
|
+
.eleven {
|
|
45
|
+
animation-name: odd-animation;
|
|
46
|
+
animation-duration: calc(3 * var(--t));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.two,
|
|
50
|
+
.four,
|
|
51
|
+
.six,
|
|
52
|
+
.eight,
|
|
53
|
+
.ten,
|
|
54
|
+
.twelve {
|
|
55
|
+
animation-name: even-animation;
|
|
56
|
+
animation-duration: calc(2 * var(--t));
|
|
57
|
+
inset: var(--offset-y) auto auto var(--offset-x);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.first {
|
|
61
|
+
animation-delay: calc(-2 * var(--t));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.second {
|
|
65
|
+
animation-delay: calc(-1 * var(--t));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.third {
|
|
69
|
+
animation-delay: calc(-0 * var(--t));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.one {
|
|
73
|
+
--offset-x: calc(var(--global-offset-x) * 2);
|
|
74
|
+
--offset-y: calc(var(--global-offset-y) * -2);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.two {
|
|
78
|
+
--offset-x: calc(var(--global-offset-x) * 3);
|
|
79
|
+
--offset-y: calc(var(--global-offset-y) * -1);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.three {
|
|
83
|
+
--offset-x: calc(var(--global-offset-x) * 4);
|
|
84
|
+
--offset-y: calc(var(--global-offset-y) * 0);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.four {
|
|
88
|
+
--offset-x: calc(var(--global-offset-x) * 3);
|
|
89
|
+
--offset-y: calc(var(--global-offset-y) * 1);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.five {
|
|
93
|
+
--offset-x: calc(var(--global-offset-x) * 2);
|
|
94
|
+
--offset-y: calc(var(--global-offset-y) * 2);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.six {
|
|
98
|
+
--offset-x: calc(var(--global-offset-x) * 0);
|
|
99
|
+
--offset-y: calc(var(--global-offset-y) * 2);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.seven {
|
|
103
|
+
--offset-x: calc(var(--global-offset-x) * -2);
|
|
104
|
+
--offset-y: calc(var(--global-offset-y) * 2);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.eight {
|
|
108
|
+
--offset-x: calc(var(--global-offset-x) * -3);
|
|
109
|
+
--offset-y: calc(var(--global-offset-y) * 1);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.nine {
|
|
113
|
+
--offset-x: calc(var(--global-offset-x) * -4);
|
|
114
|
+
--offset-y: calc(var(--global-offset-y) * 0);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.ten {
|
|
118
|
+
--offset-x: calc(var(--global-offset-x) * -3);
|
|
119
|
+
--offset-y: calc(var(--global-offset-y) * -1);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.eleven {
|
|
123
|
+
--offset-x: calc(var(--global-offset-x) * -2);
|
|
124
|
+
--offset-y: calc(var(--global-offset-y) * -2);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.twelve {
|
|
128
|
+
--offset-x: calc(var(--global-offset-x) * 0);
|
|
129
|
+
--offset-y: calc(var(--global-offset-y) * -2);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@keyframes odd-animation {
|
|
133
|
+
0% {
|
|
134
|
+
scale: 0;
|
|
135
|
+
translate: calc(0.5 * var(--offset-x)) calc(0.5 * var(--offset-y));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
33.3% {
|
|
139
|
+
scale: 1;
|
|
140
|
+
translate: calc(1 * var(--offset-x)) calc(1 * var(--offset-y));
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
66.6% {
|
|
144
|
+
scale: 1;
|
|
145
|
+
translate: calc(2 * var(--offset-x)) calc(2 * var(--offset-y));
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
100% {
|
|
149
|
+
scale: 0;
|
|
150
|
+
translate: calc(3 * var(--offset-x)) calc(3 * var(--offset-y));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@keyframes even-animation {
|
|
155
|
+
0% {
|
|
156
|
+
scale: 0;
|
|
157
|
+
translate: calc(0 * var(--offset-x)) calc(0 * var(--offset-y));
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
50% {
|
|
161
|
+
scale: 1;
|
|
162
|
+
translate: calc(1 * var(--offset-x)) calc(1 * var(--offset-y));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
100% {
|
|
166
|
+
scale: 0;
|
|
167
|
+
translate: calc(2 * var(--offset-x)) calc(2 * var(--offset-y));
|
|
168
|
+
}
|
|
169
|
+
}
|
package/src/example.scss
CHANGED
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
@import "components/PanelTitle/styles/styles";
|
|
36
36
|
@import "components/Sample/styles/mixins";
|
|
37
37
|
@import "components/Sample/styles/styles";
|
|
38
|
+
@import "components/SectionHeader/styles/styles";
|
|
38
39
|
@import "components/Separator/styles/styles";
|
|
39
40
|
@import "components/Scroller/styles/styles";
|
|
40
41
|
@import "components/Switch/styles/mixins";
|
|
@@ -43,22 +44,9 @@
|
|
|
43
44
|
@import "components/Tooltip/styles/styles";
|
|
44
45
|
@import "components/Validation/styles/styles";
|
|
45
46
|
@import "components/Accordion/styles/styles";
|
|
47
|
+
@import "components/Badge/styles/styles";
|
|
46
48
|
@import "components/Dropdown/styles/styles";
|
|
47
49
|
@import "components/Skeleton/styles/styles";
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
.example {
|
|
52
|
-
&__splash-image {
|
|
53
|
-
background-image: url($gc-assets-url + "/splash.jpg");
|
|
54
|
-
height: 400px;
|
|
55
|
-
width: 1000px;
|
|
56
|
-
background-size: cover;
|
|
57
|
-
border-radius: $radius-large;
|
|
58
|
-
background-repeat: no-repeat;
|
|
59
|
-
background-position: center;
|
|
60
|
-
margin: 0 auto;
|
|
61
|
-
max-width: 100%;
|
|
62
|
-
min-width: 510px;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
50
|
+
@import "example/styles/splash";
|
|
51
|
+
@import "example/styles/styles";
|
|
52
|
+
@import "example/styles/docs";
|