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
package/src/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Accordion from "src/components/Accordion";
|
|
2
|
+
import Badge from "src/components/Badge";
|
|
2
3
|
import Button from "src/components/Button";
|
|
3
4
|
import Card from "src/components/Card";
|
|
4
5
|
import Dialog from "src/components/Dialog";
|
|
@@ -26,6 +27,7 @@ import * as constants from "src/variables/constants";
|
|
|
26
27
|
|
|
27
28
|
export {
|
|
28
29
|
Accordion,
|
|
30
|
+
Badge,
|
|
29
31
|
Button,
|
|
30
32
|
Card,
|
|
31
33
|
Dialog,
|
package/src/style.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,5 +44,6 @@
|
|
|
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";
|
|
@@ -23,4 +23,5 @@ $gb-color-danger-soft: $color-beauty-bush !default;
|
|
|
23
23
|
$gb-color-disabled: $color-boulder !default;
|
|
24
24
|
|
|
25
25
|
/* Fonts */
|
|
26
|
-
$gb-font:
|
|
26
|
+
$gb-font: 'Geist', -apple-system, blinkmacsystemfont, 'Segoe UI', sans-serif !default;
|
|
27
|
+
$gb-font-mono: 'Geist Mono', ui-monospace, sfmono-regular, menlo, monospace !default;
|
|
@@ -4,18 +4,19 @@ describe("Colors", () => {
|
|
|
4
4
|
});
|
|
5
5
|
|
|
6
6
|
it("should make a screenshot", () => {
|
|
7
|
-
cy.get(".
|
|
7
|
+
cy.get(".docs-tokens").screenshot();
|
|
8
8
|
});
|
|
9
9
|
|
|
10
10
|
describe("color brand primary", () => {
|
|
11
11
|
it("should have proper styles", () => {
|
|
12
|
-
cy.
|
|
13
|
-
.should("have.class", "
|
|
14
|
-
.
|
|
12
|
+
cy.contains(".docs-token-row", "$gb-color-primary")
|
|
13
|
+
.should("have.class", "docs-token-row")
|
|
14
|
+
.and("contain", "Primary");
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
it("should have proper properties", () => {
|
|
18
|
-
cy.
|
|
18
|
+
cy.contains(".docs-token-row", "$gb-color-primary")
|
|
19
|
+
.find(".swatch")
|
|
19
20
|
.should("have.css", "background-color")
|
|
20
21
|
.and("equal", "rgb(51, 122, 183)");
|
|
21
22
|
});
|
|
@@ -23,13 +24,14 @@ describe("Colors", () => {
|
|
|
23
24
|
|
|
24
25
|
describe("color brand text", () => {
|
|
25
26
|
it("should have proper styles", () => {
|
|
26
|
-
cy.
|
|
27
|
-
.should("have.class", "
|
|
28
|
-
.
|
|
27
|
+
cy.contains(".docs-token-row", "$gb-color-text")
|
|
28
|
+
.should("have.class", "docs-token-row")
|
|
29
|
+
.and("contain", "Text");
|
|
29
30
|
});
|
|
30
31
|
|
|
31
32
|
it("should have proper properties", () => {
|
|
32
|
-
cy.
|
|
33
|
+
cy.contains(".docs-token-row", "$gb-color-text")
|
|
34
|
+
.find(".swatch")
|
|
33
35
|
.should("have.css", "background-color")
|
|
34
36
|
.and("equal", "rgb(88, 88, 88)");
|
|
35
37
|
});
|
|
@@ -37,13 +39,14 @@ describe("Colors", () => {
|
|
|
37
39
|
|
|
38
40
|
describe("color brand link", () => {
|
|
39
41
|
it("should have proper styles", () => {
|
|
40
|
-
cy.
|
|
41
|
-
.should("have.class", "
|
|
42
|
-
.
|
|
42
|
+
cy.contains(".docs-token-row", "$gb-color-link")
|
|
43
|
+
.should("have.class", "docs-token-row")
|
|
44
|
+
.and("contain", "Link");
|
|
43
45
|
});
|
|
44
46
|
|
|
45
47
|
it("should have proper properties", () => {
|
|
46
|
-
cy.
|
|
48
|
+
cy.contains(".docs-token-row", "$gb-color-link")
|
|
49
|
+
.find(".swatch")
|
|
47
50
|
.should("have.css", "background-color")
|
|
48
51
|
.and("equal", "rgb(51, 122, 183)");
|
|
49
52
|
});
|
|
@@ -51,13 +54,14 @@ describe("Colors", () => {
|
|
|
51
54
|
|
|
52
55
|
describe("color brand component", () => {
|
|
53
56
|
it("should have proper styles", () => {
|
|
54
|
-
cy.
|
|
55
|
-
.should("have.class", "
|
|
56
|
-
.
|
|
57
|
+
cy.contains(".docs-token-row", "$gb-color-component")
|
|
58
|
+
.should("have.class", "docs-token-row")
|
|
59
|
+
.and("contain", "Component");
|
|
57
60
|
});
|
|
58
61
|
|
|
59
62
|
it("should have proper properties", () => {
|
|
60
|
-
cy.
|
|
63
|
+
cy.contains(".docs-token-row", "$gb-color-component")
|
|
64
|
+
.find(".swatch")
|
|
61
65
|
.should("have.css", "background-color")
|
|
62
66
|
.and("equal", "rgb(245, 245, 245)");
|
|
63
67
|
});
|
|
Binary file
|