@guardian/stand 0.0.8 → 0.0.10
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 +1148 -10
- package/dist/avatar.cjs +9 -0
- package/dist/avatar.js +2 -0
- package/dist/button.cjs +9 -0
- package/dist/button.js +2 -0
- package/dist/byline.cjs +9 -0
- package/dist/byline.js +2 -0
- package/dist/components/TitleText.cjs +28 -0
- package/dist/components/TitleText.js +22 -0
- package/dist/components/avatar/Avatar.cjs +57 -0
- package/dist/components/avatar/Avatar.js +27 -0
- package/dist/components/avatar/styles.cjs +33 -0
- package/dist/components/avatar/styles.js +29 -0
- package/dist/components/avatar/types.cjs +16 -0
- package/dist/components/avatar/types.js +14 -0
- package/dist/components/button/Button.cjs +29 -0
- package/dist/components/button/Button.js +14 -0
- package/dist/components/button/styles.cjs +58 -0
- package/dist/components/button/styles.js +53 -0
- package/dist/components/byline/styles.cjs +5 -5
- package/dist/components/byline/styles.js +1 -1
- package/dist/components/icon/Icon.cjs +46 -0
- package/dist/components/icon/Icon.js +19 -0
- package/dist/components/icon/styles.cjs +27 -0
- package/dist/components/icon/styles.js +20 -0
- package/dist/components/link-button/LinkButton.cjs +29 -0
- package/dist/components/link-button/LinkButton.js +14 -0
- package/dist/components/link-button/styles.cjs +9 -0
- package/dist/components/link-button/styles.js +6 -0
- package/dist/components/tag-picker/styles.cjs +11 -11
- package/dist/components/tag-picker/styles.js +1 -1
- package/dist/components/typography/Typography.cjs +26 -0
- package/dist/components/typography/Typography.js +13 -0
- package/dist/components/typography/styles.cjs +15 -0
- package/dist/components/typography/styles.js +12 -0
- package/dist/components/user-menu/PreferenceRadioGroup.cjs +53 -0
- package/dist/components/user-menu/PreferenceRadioGroup.js +19 -0
- package/dist/components/user-menu/UserMenu.cjs +67 -0
- package/dist/components/user-menu/UserMenu.js +11 -0
- package/dist/components/user-menu/default-options.cjs +109 -0
- package/dist/components/user-menu/default-options.js +105 -0
- package/dist/components/user-menu/styles.cjs +90 -0
- package/dist/components/user-menu/styles.js +83 -0
- package/dist/fonts/MaterialSymbolsOutlined.css +23 -0
- package/dist/fonts/MaterialSymbolsRound.css +23 -0
- package/dist/fonts/MaterialSymbolsSharp.css +23 -0
- package/dist/fonts/material-symbols-types.ts +3825 -0
- package/dist/icon.cjs +9 -0
- package/dist/icon.js +2 -0
- package/dist/index.cjs +22 -13
- package/dist/index.js +9 -4
- package/dist/link-button.cjs +7 -0
- package/dist/link-button.js +1 -0
- package/dist/styleD/build/css/{css/base → base}/colors.css +1 -1
- package/dist/styleD/build/css/{css/base → base}/sizing.css +4 -0
- package/dist/styleD/build/css/{css/base → base}/spacing.css +4 -0
- package/dist/styleD/build/css/{css/base → base}/typography.css +1 -0
- package/dist/styleD/build/css/component/avatar.css +54 -0
- package/dist/styleD/build/css/component/button.css +218 -0
- package/dist/styleD/build/css/{css/component → component}/byline.css +1 -1
- package/dist/styleD/build/css/component/icon.css +11 -0
- package/dist/styleD/build/css/component/typography.css +7 -0
- package/dist/styleD/build/css/component/userMenu.css +29 -0
- package/dist/styleD/build/css/semantic/colors.css +69 -0
- package/dist/styleD/build/css/{css/semantic → semantic}/sizing.css +2 -0
- package/dist/styleD/build/css/{css/semantic → semantic}/typography.css +9 -0
- package/dist/styleD/build/typescript/base/colors.cjs +1 -1
- package/dist/styleD/build/typescript/base/colors.js +1 -1
- package/dist/styleD/build/typescript/base/sizing.cjs +4 -0
- package/dist/styleD/build/typescript/base/sizing.js +4 -0
- package/dist/styleD/build/typescript/base/spacing.cjs +4 -0
- package/dist/styleD/build/typescript/base/spacing.js +4 -0
- package/dist/styleD/build/typescript/base/typography.cjs +2 -1
- package/dist/styleD/build/typescript/base/typography.js +2 -1
- package/dist/styleD/build/typescript/component/avatar.cjs +88 -0
- package/dist/styleD/build/typescript/component/avatar.js +86 -0
- package/dist/styleD/build/typescript/component/button.cjs +331 -0
- package/dist/styleD/build/typescript/component/button.js +329 -0
- package/dist/styleD/build/typescript/component/byline.cjs +1 -1
- package/dist/styleD/build/typescript/component/byline.js +1 -1
- package/dist/styleD/build/typescript/component/icon.cjs +19 -0
- package/dist/styleD/build/typescript/component/icon.js +17 -0
- package/dist/styleD/build/typescript/component/typography.cjs +7 -0
- package/dist/styleD/build/typescript/component/typography.js +5 -0
- package/dist/styleD/build/typescript/component/userMenu.cjs +37 -0
- package/dist/styleD/build/typescript/component/userMenu.js +35 -0
- package/dist/styleD/build/typescript/semantic/colors.cjs +47 -5
- package/dist/styleD/build/typescript/semantic/colors.js +47 -5
- package/dist/styleD/build/typescript/semantic/sizing.cjs +3 -1
- package/dist/styleD/build/typescript/semantic/sizing.js +3 -1
- package/dist/styleD/build/typescript/semantic/typography.cjs +15 -0
- package/dist/styleD/build/typescript/semantic/typography.js +15 -0
- package/dist/tag-picker.cjs +13 -0
- package/dist/tag-picker.js +4 -0
- package/dist/types/avatar.d.ts +19 -0
- package/dist/types/button.d.ts +20 -0
- package/dist/types/byline.d.ts +25 -0
- package/dist/types/components/TitleText.d.ts +6 -0
- package/dist/types/components/avatar/Avatar.d.ts +2 -0
- package/dist/types/components/avatar/styles.d.ts +8 -0
- package/dist/types/components/avatar/types.d.ts +45 -0
- package/dist/types/components/button/Button.d.ts +2 -0
- package/dist/types/components/button/styles.d.ts +7 -0
- package/dist/types/components/button/types.d.ts +13 -0
- package/dist/types/components/byline/Byline.d.ts +1 -1
- package/dist/types/components/byline/schema.d.ts +1 -1
- package/dist/types/components/byline/styles.d.ts +1 -1
- package/dist/types/components/byline/theme.d.ts +1 -1
- package/dist/types/components/icon/Icon.d.ts +2 -0
- package/dist/types/components/icon/styles.d.ts +8 -0
- package/dist/types/components/icon/types.d.ts +28 -0
- package/dist/types/components/link-button/LinkButton.d.ts +2 -0
- package/dist/types/components/link-button/styles.d.ts +330 -0
- package/dist/types/components/link-button/types.d.ts +13 -0
- package/dist/types/components/tag-picker/TagAutocomplete.d.ts +1 -1
- package/dist/types/components/tag-picker/TagTable.d.ts +1 -1
- package/dist/types/components/tag-picker/styles.d.ts +1 -1
- package/dist/types/components/typography/Typography.d.ts +6 -0
- package/dist/types/components/typography/styles.d.ts +7 -0
- package/dist/types/components/typography/types.d.ts +13 -0
- package/dist/types/components/user-menu/PreferenceRadioGroup.d.ts +15 -0
- package/dist/types/components/user-menu/UserMenu.d.ts +17 -0
- package/dist/types/components/user-menu/default-options.d.ts +5 -0
- package/dist/types/components/user-menu/model.d.ts +9 -0
- package/dist/types/components/user-menu/styles.d.ts +9 -0
- package/dist/types/components/user-menu/theme.d.ts +3 -0
- package/dist/types/components/user-menu/types.d.ts +5 -0
- package/dist/types/fonts/material-symbols-types.d.ts +3822 -0
- package/dist/types/icon.d.ts +27 -0
- package/dist/types/index.d.ts +25 -7
- package/dist/types/link-button.d.ts +20 -0
- package/dist/types/styleD/build/typescript/base/colors.d.ts +1 -1
- package/dist/types/styleD/build/typescript/base/sizing.d.ts +4 -0
- package/dist/types/styleD/build/typescript/base/spacing.d.ts +4 -0
- package/dist/types/styleD/build/typescript/base/typography.d.ts +1 -0
- package/dist/types/styleD/build/typescript/component/avatar.d.ts +88 -0
- package/dist/types/styleD/build/typescript/component/button.d.ts +331 -0
- package/dist/types/styleD/build/typescript/component/icon.d.ts +19 -0
- package/dist/types/styleD/build/typescript/component/typography.d.ts +7 -0
- package/dist/types/styleD/build/typescript/component/userMenu.d.ts +37 -0
- package/dist/types/styleD/build/typescript/semantic/colors.d.ts +45 -3
- package/dist/types/styleD/build/typescript/semantic/sizing.d.ts +2 -0
- package/dist/types/styleD/build/typescript/semantic/typography.d.ts +15 -0
- package/dist/types/tag-picker.d.ts +21 -0
- package/dist/types/typography.d.ts +19 -0
- package/dist/types/user-menu.d.ts +18 -0
- package/dist/types/util/mergeDeep.d.ts +1 -0
- package/dist/types/util/reset.d.ts +1 -0
- package/dist/types/util/storybookStyles.d.ts +1 -0
- package/dist/types/util/types.d.ts +34 -0
- package/dist/types/utils.d.ts +7 -0
- package/dist/typography.cjs +9 -0
- package/dist/typography.js +2 -0
- package/dist/user-menu.cjs +9 -0
- package/dist/user-menu.js +2 -0
- package/dist/util/css/reset.css +124 -0
- package/dist/util/reset.cjs +10 -0
- package/dist/util/reset.css.cjs +5 -0
- package/dist/util/reset.css.js +3 -0
- package/dist/util/reset.js +8 -0
- package/dist/utils.cjs +10 -0
- package/dist/utils.js +2 -0
- package/package.json +112 -3
- package/dist/styleD/build/css/css/semantic/colors.css +0 -29
- package/dist/types/components/util.d.ts +0 -4
- /package/dist/styleD/build/css/{css/base → base}/radius.css +0 -0
- /package/dist/styleD/build/css/{css/component → component}/tagAutocomplete.css +0 -0
- /package/dist/styleD/build/css/{css/component → component}/tagTable.css +0 -0
- /package/dist/{components/util.cjs → util/mergeDeep.cjs} +0 -0
- /package/dist/{components/util.js → util/mergeDeep.js} +0 -0
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
const baseSpacing = {
|
|
4
4
|
"2-px": "2px",
|
|
5
5
|
"4-px": "4px",
|
|
6
|
+
"6-px": "6px",
|
|
6
7
|
"8-px": "8px",
|
|
8
|
+
"10-px": "10px",
|
|
7
9
|
"12-px": "12px",
|
|
8
10
|
"16-px": "16px",
|
|
9
11
|
"20-px": "20px",
|
|
@@ -18,7 +20,9 @@ const baseSpacing = {
|
|
|
18
20
|
"96-px": "96px",
|
|
19
21
|
"2-rem": "0.125rem",
|
|
20
22
|
"4-rem": "0.25rem",
|
|
23
|
+
"6-rem": "0.375rem",
|
|
21
24
|
"8-rem": "0.5rem",
|
|
25
|
+
"10-rem": "0.625rem",
|
|
22
26
|
"12-rem": "0.75rem",
|
|
23
27
|
"16-rem": "1rem",
|
|
24
28
|
"20-rem": "1.25rem",
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
const baseSpacing = {
|
|
2
2
|
"2-px": "2px",
|
|
3
3
|
"4-px": "4px",
|
|
4
|
+
"6-px": "6px",
|
|
4
5
|
"8-px": "8px",
|
|
6
|
+
"10-px": "10px",
|
|
5
7
|
"12-px": "12px",
|
|
6
8
|
"16-px": "16px",
|
|
7
9
|
"20-px": "20px",
|
|
@@ -16,7 +18,9 @@ const baseSpacing = {
|
|
|
16
18
|
"96-px": "96px",
|
|
17
19
|
"2-rem": "0.125rem",
|
|
18
20
|
"4-rem": "0.25rem",
|
|
21
|
+
"6-rem": "0.375rem",
|
|
19
22
|
"8-rem": "0.5rem",
|
|
23
|
+
"10-rem": "0.625rem",
|
|
20
24
|
"12-rem": "0.75rem",
|
|
21
25
|
"16-rem": "1rem",
|
|
22
26
|
"20-rem": "1.25rem",
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const componentAvatar = {
|
|
4
|
+
shared: {
|
|
5
|
+
color: {
|
|
6
|
+
green: {
|
|
7
|
+
text: "#24491d",
|
|
8
|
+
background: "#cde4c9",
|
|
9
|
+
border: "unset"
|
|
10
|
+
},
|
|
11
|
+
blue: {
|
|
12
|
+
text: "#092f62",
|
|
13
|
+
background: "#c5d9f4",
|
|
14
|
+
border: "unset"
|
|
15
|
+
},
|
|
16
|
+
red: {
|
|
17
|
+
text: "#65170e",
|
|
18
|
+
background: "#f5c6c0",
|
|
19
|
+
border: "unset"
|
|
20
|
+
},
|
|
21
|
+
cyan: {
|
|
22
|
+
text: "#00344e",
|
|
23
|
+
background: "#b8d8e7",
|
|
24
|
+
border: "unset"
|
|
25
|
+
},
|
|
26
|
+
teal: {
|
|
27
|
+
text: "#0e2729",
|
|
28
|
+
background: "#c5dfe1",
|
|
29
|
+
border: "unset"
|
|
30
|
+
},
|
|
31
|
+
"cool-purple": {
|
|
32
|
+
text: "#394069",
|
|
33
|
+
background: "#dbdff7",
|
|
34
|
+
border: "unset"
|
|
35
|
+
},
|
|
36
|
+
"warm-purple": {
|
|
37
|
+
text: "#381350",
|
|
38
|
+
background: "#dac3e8",
|
|
39
|
+
border: "unset"
|
|
40
|
+
},
|
|
41
|
+
magenta: {
|
|
42
|
+
text: "#581734",
|
|
43
|
+
background: "#edc6d7",
|
|
44
|
+
border: "unset"
|
|
45
|
+
},
|
|
46
|
+
orange: {
|
|
47
|
+
text: "#693c16",
|
|
48
|
+
background: "#fcddc6",
|
|
49
|
+
border: "unset"
|
|
50
|
+
},
|
|
51
|
+
yellow: {
|
|
52
|
+
text: "#5b4a0b",
|
|
53
|
+
background: "#fbeebf",
|
|
54
|
+
border: "unset"
|
|
55
|
+
},
|
|
56
|
+
outlined: {
|
|
57
|
+
text: "#000000",
|
|
58
|
+
background: "none",
|
|
59
|
+
border: "0.0625rem solid #8d8d8d"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
display: "inline-flex",
|
|
63
|
+
"align-items": "center",
|
|
64
|
+
"justify-content": "center",
|
|
65
|
+
overflow: "hidden",
|
|
66
|
+
"flex-shrink": "0",
|
|
67
|
+
"border-radius": "50%",
|
|
68
|
+
"user-select": "none"
|
|
69
|
+
},
|
|
70
|
+
sm: {
|
|
71
|
+
size: "2rem",
|
|
72
|
+
typography: {
|
|
73
|
+
font: "normal 700 0.75rem/1 Open Sans",
|
|
74
|
+
letterSpacing: "0rem",
|
|
75
|
+
fontWidth: 95
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
md: {
|
|
79
|
+
size: "2.5rem",
|
|
80
|
+
typography: {
|
|
81
|
+
font: "normal 700 0.875rem/1 Open Sans",
|
|
82
|
+
letterSpacing: "-0.0125rem",
|
|
83
|
+
fontWidth: 95
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
exports.componentAvatar = componentAvatar;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
const componentAvatar = {
|
|
2
|
+
shared: {
|
|
3
|
+
color: {
|
|
4
|
+
green: {
|
|
5
|
+
text: "#24491d",
|
|
6
|
+
background: "#cde4c9",
|
|
7
|
+
border: "unset"
|
|
8
|
+
},
|
|
9
|
+
blue: {
|
|
10
|
+
text: "#092f62",
|
|
11
|
+
background: "#c5d9f4",
|
|
12
|
+
border: "unset"
|
|
13
|
+
},
|
|
14
|
+
red: {
|
|
15
|
+
text: "#65170e",
|
|
16
|
+
background: "#f5c6c0",
|
|
17
|
+
border: "unset"
|
|
18
|
+
},
|
|
19
|
+
cyan: {
|
|
20
|
+
text: "#00344e",
|
|
21
|
+
background: "#b8d8e7",
|
|
22
|
+
border: "unset"
|
|
23
|
+
},
|
|
24
|
+
teal: {
|
|
25
|
+
text: "#0e2729",
|
|
26
|
+
background: "#c5dfe1",
|
|
27
|
+
border: "unset"
|
|
28
|
+
},
|
|
29
|
+
"cool-purple": {
|
|
30
|
+
text: "#394069",
|
|
31
|
+
background: "#dbdff7",
|
|
32
|
+
border: "unset"
|
|
33
|
+
},
|
|
34
|
+
"warm-purple": {
|
|
35
|
+
text: "#381350",
|
|
36
|
+
background: "#dac3e8",
|
|
37
|
+
border: "unset"
|
|
38
|
+
},
|
|
39
|
+
magenta: {
|
|
40
|
+
text: "#581734",
|
|
41
|
+
background: "#edc6d7",
|
|
42
|
+
border: "unset"
|
|
43
|
+
},
|
|
44
|
+
orange: {
|
|
45
|
+
text: "#693c16",
|
|
46
|
+
background: "#fcddc6",
|
|
47
|
+
border: "unset"
|
|
48
|
+
},
|
|
49
|
+
yellow: {
|
|
50
|
+
text: "#5b4a0b",
|
|
51
|
+
background: "#fbeebf",
|
|
52
|
+
border: "unset"
|
|
53
|
+
},
|
|
54
|
+
outlined: {
|
|
55
|
+
text: "#000000",
|
|
56
|
+
background: "none",
|
|
57
|
+
border: "0.0625rem solid #8d8d8d"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
display: "inline-flex",
|
|
61
|
+
"align-items": "center",
|
|
62
|
+
"justify-content": "center",
|
|
63
|
+
overflow: "hidden",
|
|
64
|
+
"flex-shrink": "0",
|
|
65
|
+
"border-radius": "50%",
|
|
66
|
+
"user-select": "none"
|
|
67
|
+
},
|
|
68
|
+
sm: {
|
|
69
|
+
size: "2rem",
|
|
70
|
+
typography: {
|
|
71
|
+
font: "normal 700 0.75rem/1 Open Sans",
|
|
72
|
+
letterSpacing: "0rem",
|
|
73
|
+
fontWidth: 95
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
md: {
|
|
77
|
+
size: "2.5rem",
|
|
78
|
+
typography: {
|
|
79
|
+
font: "normal 700 0.875rem/1 Open Sans",
|
|
80
|
+
letterSpacing: "-0.0125rem",
|
|
81
|
+
fontWidth: 95
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export { componentAvatar };
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const componentButton = {
|
|
4
|
+
shared: {
|
|
5
|
+
display: "inline-flex",
|
|
6
|
+
"-webkit-appearance": "none",
|
|
7
|
+
"text-align": "inherit",
|
|
8
|
+
"box-shadow": "none",
|
|
9
|
+
cursor: "pointer",
|
|
10
|
+
"justify-content": "center",
|
|
11
|
+
"align-items": "center",
|
|
12
|
+
"text-decoration": "none",
|
|
13
|
+
":disabled": {
|
|
14
|
+
cursor: "not-allowed"
|
|
15
|
+
},
|
|
16
|
+
":focus-visible": {
|
|
17
|
+
outline: "0.125rem solid #0072a9",
|
|
18
|
+
"outline-offset": "0.125rem"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"emphasised-primary": {
|
|
22
|
+
shared: {
|
|
23
|
+
color: "#ffffff",
|
|
24
|
+
backgroundColor: "#0d4289",
|
|
25
|
+
borderRadius: "0.25rem",
|
|
26
|
+
border: "0.0625rem solid #0d4289",
|
|
27
|
+
":hover": {
|
|
28
|
+
backgroundColor: "#092f62",
|
|
29
|
+
border: "0.0625rem solid #092f62"
|
|
30
|
+
},
|
|
31
|
+
":active": {
|
|
32
|
+
backgroundColor: "#061d3c",
|
|
33
|
+
border: "0.0625rem solid #061d3c"
|
|
34
|
+
},
|
|
35
|
+
":disabled": {
|
|
36
|
+
color: "#999999",
|
|
37
|
+
backgroundColor: "#dcdcdc",
|
|
38
|
+
border: "0.0625rem solid #dcdcdc"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
xs: {
|
|
42
|
+
height: "1.5rem",
|
|
43
|
+
padding: {
|
|
44
|
+
top: "0.25rem",
|
|
45
|
+
right: "0.5rem",
|
|
46
|
+
bottom: "0.25rem",
|
|
47
|
+
left: "0.5rem"
|
|
48
|
+
},
|
|
49
|
+
typography: {
|
|
50
|
+
font: "normal 700 0.75rem/1 Open Sans",
|
|
51
|
+
letterSpacing: "0rem",
|
|
52
|
+
fontWidth: 95
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
sm: {
|
|
56
|
+
height: "2rem",
|
|
57
|
+
padding: {
|
|
58
|
+
top: "0.25rem",
|
|
59
|
+
right: "0.625rem",
|
|
60
|
+
bottom: "0.25rem",
|
|
61
|
+
left: "0.625rem"
|
|
62
|
+
},
|
|
63
|
+
typography: {
|
|
64
|
+
font: "normal 700 0.875rem/1 Open Sans",
|
|
65
|
+
letterSpacing: "-0.0125rem",
|
|
66
|
+
fontWidth: 95
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
md: {
|
|
70
|
+
height: "2.5rem",
|
|
71
|
+
padding: {
|
|
72
|
+
top: "0.25rem",
|
|
73
|
+
right: "0.75rem",
|
|
74
|
+
bottom: "0.25rem",
|
|
75
|
+
left: "0.75rem"
|
|
76
|
+
},
|
|
77
|
+
typography: {
|
|
78
|
+
font: "normal 700 0.875rem/1 Open Sans",
|
|
79
|
+
letterSpacing: "-0.0125rem",
|
|
80
|
+
fontWidth: 95
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
lg: {
|
|
84
|
+
height: "3rem",
|
|
85
|
+
padding: {
|
|
86
|
+
top: "0.25rem",
|
|
87
|
+
right: "1rem",
|
|
88
|
+
bottom: "0.25rem",
|
|
89
|
+
left: "1rem"
|
|
90
|
+
},
|
|
91
|
+
typography: {
|
|
92
|
+
font: "normal 700 1rem/1 Open Sans",
|
|
93
|
+
letterSpacing: "-0.0125rem",
|
|
94
|
+
fontWidth: 95
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"emphasised-secondary": {
|
|
99
|
+
shared: {
|
|
100
|
+
color: "#000000",
|
|
101
|
+
backgroundColor: "none",
|
|
102
|
+
borderRadius: "0.25rem",
|
|
103
|
+
border: "0.0625rem solid #0d4289",
|
|
104
|
+
":hover": {
|
|
105
|
+
backgroundColor: "#e8f0fb",
|
|
106
|
+
border: "0.0625rem solid #0d4289"
|
|
107
|
+
},
|
|
108
|
+
":active": {
|
|
109
|
+
backgroundColor: "#c5d9f4",
|
|
110
|
+
border: "0.0625rem solid #0d4289"
|
|
111
|
+
},
|
|
112
|
+
":disabled": {
|
|
113
|
+
color: "#999999",
|
|
114
|
+
backgroundColor: "none",
|
|
115
|
+
border: "0.0625rem solid #dcdcdc"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
xs: {
|
|
119
|
+
height: "1.5rem",
|
|
120
|
+
padding: {
|
|
121
|
+
top: "0.25rem",
|
|
122
|
+
right: "0.5rem",
|
|
123
|
+
bottom: "0.25rem",
|
|
124
|
+
left: "0.5rem"
|
|
125
|
+
},
|
|
126
|
+
typography: {
|
|
127
|
+
font: "normal 700 0.75rem/1 Open Sans",
|
|
128
|
+
letterSpacing: "0rem",
|
|
129
|
+
fontWidth: 95
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
sm: {
|
|
133
|
+
height: "2rem",
|
|
134
|
+
padding: {
|
|
135
|
+
top: "0.25rem",
|
|
136
|
+
right: "0.625rem",
|
|
137
|
+
bottom: "0.25rem",
|
|
138
|
+
left: "0.625rem"
|
|
139
|
+
},
|
|
140
|
+
typography: {
|
|
141
|
+
font: "normal 700 0.875rem/1 Open Sans",
|
|
142
|
+
letterSpacing: "-0.0125rem",
|
|
143
|
+
fontWidth: 95
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
md: {
|
|
147
|
+
height: "2.5rem",
|
|
148
|
+
padding: {
|
|
149
|
+
top: "0.25rem",
|
|
150
|
+
right: "0.75rem",
|
|
151
|
+
bottom: "0.25rem",
|
|
152
|
+
left: "0.75rem"
|
|
153
|
+
},
|
|
154
|
+
typography: {
|
|
155
|
+
font: "normal 700 0.875rem/1 Open Sans",
|
|
156
|
+
letterSpacing: "-0.0125rem",
|
|
157
|
+
fontWidth: 95
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
lg: {
|
|
161
|
+
height: "3rem",
|
|
162
|
+
padding: {
|
|
163
|
+
top: "0.25rem",
|
|
164
|
+
right: "1rem",
|
|
165
|
+
bottom: "0.25rem",
|
|
166
|
+
left: "1rem"
|
|
167
|
+
},
|
|
168
|
+
typography: {
|
|
169
|
+
font: "normal 700 1rem/1 Open Sans",
|
|
170
|
+
letterSpacing: "-0.0125rem",
|
|
171
|
+
fontWidth: 95
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"neutral-primary": {
|
|
176
|
+
shared: {
|
|
177
|
+
color: "#ffffff",
|
|
178
|
+
backgroundColor: "#545454",
|
|
179
|
+
borderRadius: "0.25rem",
|
|
180
|
+
border: "0.0625rem solid #545454",
|
|
181
|
+
":hover": {
|
|
182
|
+
backgroundColor: "#333333",
|
|
183
|
+
border: "0.0625rem solid #333333"
|
|
184
|
+
},
|
|
185
|
+
":active": {
|
|
186
|
+
backgroundColor: "#121212",
|
|
187
|
+
border: "0.0625rem solid #121212"
|
|
188
|
+
},
|
|
189
|
+
":disabled": {
|
|
190
|
+
color: "#999999",
|
|
191
|
+
backgroundColor: "#dcdcdc",
|
|
192
|
+
border: "0.0625rem solid #dcdcdc"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
xs: {
|
|
196
|
+
height: "1.5rem",
|
|
197
|
+
padding: {
|
|
198
|
+
top: "0.25rem",
|
|
199
|
+
right: "0.5rem",
|
|
200
|
+
bottom: "0.25rem",
|
|
201
|
+
left: "0.5rem"
|
|
202
|
+
},
|
|
203
|
+
typography: {
|
|
204
|
+
font: "normal 700 0.75rem/1 Open Sans",
|
|
205
|
+
letterSpacing: "0rem",
|
|
206
|
+
fontWidth: 95
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
sm: {
|
|
210
|
+
height: "2rem",
|
|
211
|
+
padding: {
|
|
212
|
+
top: "0.25rem",
|
|
213
|
+
right: "0.625rem",
|
|
214
|
+
bottom: "0.25rem",
|
|
215
|
+
left: "0.625rem"
|
|
216
|
+
},
|
|
217
|
+
typography: {
|
|
218
|
+
font: "normal 700 0.875rem/1 Open Sans",
|
|
219
|
+
letterSpacing: "-0.0125rem",
|
|
220
|
+
fontWidth: 95
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
md: {
|
|
224
|
+
height: "2.5rem",
|
|
225
|
+
padding: {
|
|
226
|
+
top: "0.25rem",
|
|
227
|
+
right: "0.75rem",
|
|
228
|
+
bottom: "0.25rem",
|
|
229
|
+
left: "0.75rem"
|
|
230
|
+
},
|
|
231
|
+
typography: {
|
|
232
|
+
font: "normal 700 0.875rem/1 Open Sans",
|
|
233
|
+
letterSpacing: "-0.0125rem",
|
|
234
|
+
fontWidth: 95
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
lg: {
|
|
238
|
+
height: "3rem",
|
|
239
|
+
padding: {
|
|
240
|
+
top: "0.25rem",
|
|
241
|
+
right: "1rem",
|
|
242
|
+
bottom: "0.25rem",
|
|
243
|
+
left: "1rem"
|
|
244
|
+
},
|
|
245
|
+
typography: {
|
|
246
|
+
font: "normal 700 1rem/1 Open Sans",
|
|
247
|
+
letterSpacing: "-0.0125rem",
|
|
248
|
+
fontWidth: 95
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"neutral-secondary": {
|
|
253
|
+
shared: {
|
|
254
|
+
color: "#000000",
|
|
255
|
+
backgroundColor: "none",
|
|
256
|
+
borderRadius: "0.25rem",
|
|
257
|
+
border: "0.0625rem solid #545454",
|
|
258
|
+
":hover": {
|
|
259
|
+
backgroundColor: "#ededed",
|
|
260
|
+
border: "0.0625rem solid #545454"
|
|
261
|
+
},
|
|
262
|
+
":active": {
|
|
263
|
+
backgroundColor: "#dcdcdc",
|
|
264
|
+
border: "0.0625rem solid #545454"
|
|
265
|
+
},
|
|
266
|
+
":disabled": {
|
|
267
|
+
color: "#999999",
|
|
268
|
+
backgroundColor: "none",
|
|
269
|
+
border: "0.0625rem solid #dcdcdc"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
xs: {
|
|
273
|
+
height: "1.5rem",
|
|
274
|
+
padding: {
|
|
275
|
+
top: "0.25rem",
|
|
276
|
+
right: "0.5rem",
|
|
277
|
+
bottom: "0.25rem",
|
|
278
|
+
left: "0.5rem"
|
|
279
|
+
},
|
|
280
|
+
typography: {
|
|
281
|
+
font: "normal 700 0.75rem/1 Open Sans",
|
|
282
|
+
letterSpacing: "0rem",
|
|
283
|
+
fontWidth: 95
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
sm: {
|
|
287
|
+
height: "2rem",
|
|
288
|
+
padding: {
|
|
289
|
+
top: "0.25rem",
|
|
290
|
+
right: "0.625rem",
|
|
291
|
+
bottom: "0.25rem",
|
|
292
|
+
left: "0.625rem"
|
|
293
|
+
},
|
|
294
|
+
typography: {
|
|
295
|
+
font: "normal 700 0.875rem/1 Open Sans",
|
|
296
|
+
letterSpacing: "-0.0125rem",
|
|
297
|
+
fontWidth: 95
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
md: {
|
|
301
|
+
height: "2.5rem",
|
|
302
|
+
padding: {
|
|
303
|
+
top: "0.25rem",
|
|
304
|
+
right: "0.75rem",
|
|
305
|
+
bottom: "0.25rem",
|
|
306
|
+
left: "0.75rem"
|
|
307
|
+
},
|
|
308
|
+
typography: {
|
|
309
|
+
font: "normal 700 0.875rem/1 Open Sans",
|
|
310
|
+
letterSpacing: "-0.0125rem",
|
|
311
|
+
fontWidth: 95
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
lg: {
|
|
315
|
+
height: "3rem",
|
|
316
|
+
padding: {
|
|
317
|
+
top: "0.25rem",
|
|
318
|
+
right: "1rem",
|
|
319
|
+
bottom: "0.25rem",
|
|
320
|
+
left: "1rem"
|
|
321
|
+
},
|
|
322
|
+
typography: {
|
|
323
|
+
font: "normal 700 1rem/1 Open Sans",
|
|
324
|
+
letterSpacing: "-0.0125rem",
|
|
325
|
+
fontWidth: 95
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
exports.componentButton = componentButton;
|