@guardian/stand 0.0.21 → 0.0.23

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.
Files changed (83) hide show
  1. package/dist/checkbox.cjs +11 -0
  2. package/dist/checkbox.js +3 -0
  3. package/dist/components/checkbox/Checkbox.cjs +54 -0
  4. package/dist/components/checkbox/Checkbox.js +17 -0
  5. package/dist/components/checkbox/CheckboxGroup.cjs +35 -0
  6. package/dist/components/checkbox/CheckboxGroup.js +26 -0
  7. package/dist/components/checkbox/styles.cjs +109 -0
  8. package/dist/components/checkbox/styles.js +101 -0
  9. package/dist/components/form/types.cjs +6 -1
  10. package/dist/components/form/types.js +7 -2
  11. package/dist/components/inline-message/InlineMessage.cjs +9 -1
  12. package/dist/components/inline-message/InlineMessage.js +2 -2
  13. package/dist/components/inline-message/styles.cjs +6 -0
  14. package/dist/components/inline-message/styles.js +6 -1
  15. package/dist/components/radio-group/RadioGroup.cjs +65 -0
  16. package/dist/components/radio-group/RadioGroup.js +31 -0
  17. package/dist/components/radio-group/styles.cjs +78 -0
  18. package/dist/components/radio-group/styles.js +73 -0
  19. package/dist/components/topbar/topBarToolName/TopBarToolName.cjs +21 -2
  20. package/dist/components/topbar/topBarToolName/TopBarToolName.js +11 -3
  21. package/dist/components/topbar/topBarToolName/styles.cjs +39 -0
  22. package/dist/components/topbar/topBarToolName/styles.js +38 -1
  23. package/dist/fonts/MaterialSymbolsOutlined.css +1 -1
  24. package/dist/fonts/MaterialSymbolsRound.css +1 -1
  25. package/dist/fonts/MaterialSymbolsSharp.css +1 -1
  26. package/dist/fonts/material-symbols-types.ts +34 -3
  27. package/dist/index.cjs +4 -0
  28. package/dist/index.js +2 -0
  29. package/dist/radio-group.cjs +10 -0
  30. package/dist/radio-group.js +2 -0
  31. package/dist/styleD/build/css/base/typography.css +1 -1
  32. package/dist/styleD/build/css/component/TopBar.css +22 -0
  33. package/dist/styleD/build/css/component/checkbox.css +57 -0
  34. package/dist/styleD/build/css/component/inlineMessage.css +1 -0
  35. package/dist/styleD/build/css/component/radioGroup.css +52 -0
  36. package/dist/styleD/build/css/semantic/colors.css +3 -1
  37. package/dist/styleD/build/css/semantic/sizing.css +1 -0
  38. package/dist/styleD/build/css/semantic/typography.css +88 -0
  39. package/dist/styleD/build/typescript/base/typography.cjs +3 -3
  40. package/dist/styleD/build/typescript/base/typography.js +3 -3
  41. package/dist/styleD/build/typescript/component/TopBar.cjs +32 -0
  42. package/dist/styleD/build/typescript/component/TopBar.js +32 -0
  43. package/dist/styleD/build/typescript/component/checkbox.cjs +100 -0
  44. package/dist/styleD/build/typescript/component/checkbox.js +98 -0
  45. package/dist/styleD/build/typescript/component/inlineMessage.cjs +2 -1
  46. package/dist/styleD/build/typescript/component/inlineMessage.js +2 -1
  47. package/dist/styleD/build/typescript/component/radioGroup.cjs +85 -0
  48. package/dist/styleD/build/typescript/component/radioGroup.js +83 -0
  49. package/dist/styleD/build/typescript/semantic/colors.cjs +3 -1
  50. package/dist/styleD/build/typescript/semantic/colors.js +3 -1
  51. package/dist/styleD/build/typescript/semantic/sizing.cjs +1 -0
  52. package/dist/styleD/build/typescript/semantic/sizing.js +1 -0
  53. package/dist/styleD/build/typescript/semantic/typography.cjs +120 -0
  54. package/dist/styleD/build/typescript/semantic/typography.js +120 -0
  55. package/dist/types/TopBar.d.ts +1 -0
  56. package/dist/types/checkbox.d.ts +21 -0
  57. package/dist/types/components/checkbox/Checkbox.d.ts +2 -0
  58. package/dist/types/components/checkbox/CheckboxGroup.d.ts +2 -0
  59. package/dist/types/components/checkbox/CheckboxGroupSandbox.d.ts +5 -0
  60. package/dist/types/components/checkbox/CheckboxSandbox.d.ts +5 -0
  61. package/dist/types/components/checkbox/styles.d.ts +10 -0
  62. package/dist/types/components/checkbox/types.d.ts +11 -0
  63. package/dist/types/components/form/types.d.ts +1 -1
  64. package/dist/types/components/inline-message/styles.d.ts +1 -0
  65. package/dist/types/components/radio-group/RadioGroup.d.ts +3 -0
  66. package/dist/types/components/radio-group/sandbox.d.ts +5 -0
  67. package/dist/types/components/radio-group/styles.d.ts +9 -0
  68. package/dist/types/components/radio-group/types.d.ts +10 -0
  69. package/dist/types/components/topbar/topBarToolName/TopBarToolName.d.ts +1 -1
  70. package/dist/types/components/topbar/topBarToolName/styles.d.ts +2 -0
  71. package/dist/types/components/topbar/topBarToolName/types.d.ts +7 -1
  72. package/dist/types/fonts/material-symbols-types.d.ts +33 -2
  73. package/dist/types/index.d.ts +4 -0
  74. package/dist/types/radio-group.d.ts +20 -0
  75. package/dist/types/styleD/build/typescript/base/typography.d.ts +3 -3
  76. package/dist/types/styleD/build/typescript/component/TopBar.d.ts +32 -0
  77. package/dist/types/styleD/build/typescript/component/checkbox.d.ts +100 -0
  78. package/dist/types/styleD/build/typescript/component/inlineMessage.d.ts +1 -0
  79. package/dist/types/styleD/build/typescript/component/radioGroup.d.ts +85 -0
  80. package/dist/types/styleD/build/typescript/semantic/colors.d.ts +2 -0
  81. package/dist/types/styleD/build/typescript/semantic/sizing.d.ts +1 -0
  82. package/dist/types/styleD/build/typescript/semantic/typography.d.ts +120 -0
  83. package/package.json +29 -11
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ :root {
6
+ --component-radio-group-shared-margin-top: 0.5rem; /** spacing between the input itself and the previous element (label or description) minus the flex gap (default 4px), e.g. if the spacing between label and input should be 12px, then margin-top should be 8px */
7
+ --component-radio-group-shared-margin-bottom: 0.5rem; /** spacing between the input itself and the next element (error text) minus the flex gap (default 4px), e.g. if the spacing between label and input should be 12px, then margin-top should be 8px */
8
+ --component-radio-group-shared-display: flex;
9
+ --component-radio-group-shared-flex-direction: column;
10
+ --component-radio-group-shared-radio-color: #000000;
11
+ --component-radio-group-shared-radio-disabled-color: #999999;
12
+ --component-radio-group-shared-radio-display: flex;
13
+ --component-radio-group-shared-radio-align-items: center;
14
+ --component-radio-group-shared-radio-gap: 0.5rem;
15
+ --component-radio-group-shared-indicator-position: relative;
16
+ --component-radio-group-shared-indicator-after-position: absolute;
17
+ --component-radio-group-shared-indicator-after-border-radius: inherit;
18
+ --component-radio-group-shared-indicator-after-inset: 0;
19
+ --component-radio-group-shared-indicator-after-scale: 0;
20
+ --component-radio-group-shared-indicator-border-radius: 50%;
21
+ --component-radio-group-shared-indicator-border: 0.0625rem solid #545454;
22
+ --component-radio-group-shared-indicator-focused-outline: 0.125rem solid
23
+ #0072a9;
24
+ --component-radio-group-shared-indicator-focused-outline-offset: 0.125rem;
25
+ --component-radio-group-shared-indicator-invalid-border: 0.0625rem solid
26
+ #b42a19;
27
+ --component-radio-group-shared-indicator-invalid-after-background-color: #b42a19;
28
+ --component-radio-group-shared-indicator-disabled-border: 0.0625rem solid
29
+ #dcdcdc;
30
+ --component-radio-group-shared-indicator-selected-after-background-color: #005d8b;
31
+ --component-radio-group-shared-indicator-selected-after-scale: 0.6rem;
32
+ --component-radio-group-shared-indicator-selected-border: 0.125rem solid
33
+ #0072a9;
34
+ --component-radio-group-shared-indicator-selected-invalid-border: 0.125rem
35
+ solid #b42a19;
36
+ --component-radio-group-shared-indicator-selected-disabled-border: 0.125rem
37
+ solid #dcdcdc;
38
+ --component-radio-group-shared-indicator-selected-disabled-after-background-color: #dcdcdc;
39
+ --component-radio-group-sm-gap: 1rem;
40
+ --component-radio-group-sm-typography-font: normal 460 0.875rem/1.3
41
+ 'Open Sans';
42
+ --component-radio-group-sm-typography-letter-spacing: 0;
43
+ --component-radio-group-sm-typography-font-width: 95;
44
+ --component-radio-group-sm-indicator-width: 1.25rem;
45
+ --component-radio-group-sm-indicator-height: 1.25rem;
46
+ --component-radio-group-md-gap: 1.25rem;
47
+ --component-radio-group-md-typography-font: normal 460 1rem/1.3 'Open Sans';
48
+ --component-radio-group-md-typography-letter-spacing: 0;
49
+ --component-radio-group-md-typography-font-width: 95;
50
+ --component-radio-group-md-indicator-width: 1.5rem;
51
+ --component-radio-group-md-indicator-height: 1.5rem;
52
+ }
@@ -11,6 +11,7 @@
11
11
  --semantic-colors-text-error: #8c2113;
12
12
  --semantic-colors-text-warning: #433608;
13
13
  --semantic-colors-text-success: #326528;
14
+ --semantic-colors-text-success-inverse: #cde4c9;
14
15
  --semantic-colors-text-information: #00344e;
15
16
  --semantic-colors-text-disabled: #999999;
16
17
  --semantic-colors-text-green: #24491d;
@@ -64,5 +65,6 @@
64
65
  --semantic-colors-fill-information-weak: #e8f0fb;
65
66
  --semantic-colors-fill-error-weak: #f5c6c0;
66
67
  --semantic-colors-fill-error-strong: #b42a19;
67
- --semantic-colors-fill-success-weak: #edf5ec;
68
+ --semantic-colors-fill-success-weak: #cde4c9;
69
+ --semantic-colors-fill-success-strong: #326528;
68
70
  }
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  :root {
6
+ --semantic-sizing-height-xxxs: 1.125rem;
6
7
  --semantic-sizing-height-xxs: 1.25rem;
7
8
  --semantic-sizing-height-xs: 1.5rem;
8
9
  --semantic-sizing-height-sm: 2rem;
@@ -61,6 +61,9 @@
61
61
  'Open Sans';
62
62
  --semantic-typography-heading-compact-2xl-letter-spacing: -0.03125rem;
63
63
  --semantic-typography-heading-compact-2xl-font-width: 88;
64
+ --semantic-typography-body-xs-font: normal 460 0.75rem/1.3 'Open Sans';
65
+ --semantic-typography-body-xs-letter-spacing: 0;
66
+ --semantic-typography-body-xs-font-width: 95;
64
67
  --semantic-typography-body-sm-font: normal 460 0.875rem/1.3 'Open Sans';
65
68
  --semantic-typography-body-sm-letter-spacing: 0;
66
69
  --semantic-typography-body-sm-font-width: 95;
@@ -73,6 +76,24 @@
73
76
  --semantic-typography-body-xl-font: normal 460 1.25rem/1.3 'Open Sans';
74
77
  --semantic-typography-body-xl-letter-spacing: 0;
75
78
  --semantic-typography-body-xl-font-width: 95;
79
+ --semantic-typography-body-bold-xs-font: normal 700 0.75rem/1.3 'Open Sans';
80
+ --semantic-typography-body-bold-xs-letter-spacing: 0;
81
+ --semantic-typography-body-bold-xs-font-width: 95;
82
+ --semantic-typography-body-bold-sm-font: normal 700 0.875rem/1.3 'Open Sans';
83
+ --semantic-typography-body-bold-sm-letter-spacing: 0;
84
+ --semantic-typography-body-bold-sm-font-width: 95;
85
+ --semantic-typography-body-bold-md-font: normal 700 1rem/1.3 'Open Sans';
86
+ --semantic-typography-body-bold-md-letter-spacing: 0;
87
+ --semantic-typography-body-bold-md-font-width: 95;
88
+ --semantic-typography-body-bold-lg-font: normal 700 1.125rem/1.3 'Open Sans';
89
+ --semantic-typography-body-bold-lg-letter-spacing: 0;
90
+ --semantic-typography-body-bold-lg-font-width: 95;
91
+ --semantic-typography-body-bold-xl-font: normal 700 1.25rem/1.3 'Open Sans';
92
+ --semantic-typography-body-bold-xl-letter-spacing: 0;
93
+ --semantic-typography-body-bold-xl-font-width: 95;
94
+ --semantic-typography-body-italic-xs-font: italic 460 0.75rem/1.3 'Open Sans';
95
+ --semantic-typography-body-italic-xs-letter-spacing: 0;
96
+ --semantic-typography-body-italic-xs-font-width: 95;
76
97
  --semantic-typography-body-italic-sm-font: italic 460 0.875rem/1.3 'Open Sans';
77
98
  --semantic-typography-body-italic-sm-letter-spacing: 0;
78
99
  --semantic-typography-body-italic-sm-font-width: 95;
@@ -85,6 +106,29 @@
85
106
  --semantic-typography-body-italic-xl-font: italic 460 1.25rem/1.3 'Open Sans';
86
107
  --semantic-typography-body-italic-xl-letter-spacing: 0;
87
108
  --semantic-typography-body-italic-xl-font-width: 95;
109
+ --semantic-typography-body-italic-bold-xs-font: italic 700 0.75rem/1.3
110
+ 'Open Sans';
111
+ --semantic-typography-body-italic-bold-xs-letter-spacing: 0;
112
+ --semantic-typography-body-italic-bold-xs-font-width: 95;
113
+ --semantic-typography-body-italic-bold-sm-font: italic 700 0.875rem/1.3
114
+ 'Open Sans';
115
+ --semantic-typography-body-italic-bold-sm-letter-spacing: 0;
116
+ --semantic-typography-body-italic-bold-sm-font-width: 95;
117
+ --semantic-typography-body-italic-bold-md-font: italic 700 1rem/1.3
118
+ 'Open Sans';
119
+ --semantic-typography-body-italic-bold-md-letter-spacing: 0;
120
+ --semantic-typography-body-italic-bold-md-font-width: 95;
121
+ --semantic-typography-body-italic-bold-lg-font: italic 700 1.125rem/1.3
122
+ 'Open Sans';
123
+ --semantic-typography-body-italic-bold-lg-letter-spacing: 0;
124
+ --semantic-typography-body-italic-bold-lg-font-width: 95;
125
+ --semantic-typography-body-italic-bold-xl-font: italic 700 1.25rem/1.3
126
+ 'Open Sans';
127
+ --semantic-typography-body-italic-bold-xl-letter-spacing: 0;
128
+ --semantic-typography-body-italic-bold-xl-font-width: 95;
129
+ --semantic-typography-body-compact-xs-font: normal 460 0.75rem/1.3 'Open Sans';
130
+ --semantic-typography-body-compact-xs-letter-spacing: 0;
131
+ --semantic-typography-body-compact-xs-font-width: 88;
88
132
  --semantic-typography-body-compact-sm-font: normal 460 0.875rem/1.3
89
133
  'Open Sans';
90
134
  --semantic-typography-body-compact-sm-letter-spacing: 0;
@@ -99,6 +143,30 @@
99
143
  --semantic-typography-body-compact-xl-font: normal 460 1.25rem/1.3 'Open Sans';
100
144
  --semantic-typography-body-compact-xl-letter-spacing: 0;
101
145
  --semantic-typography-body-compact-xl-font-width: 88;
146
+ --semantic-typography-body-compact-bold-xs-font: normal 700 0.75rem/1.3
147
+ 'Open Sans';
148
+ --semantic-typography-body-compact-bold-xs-letter-spacing: 0;
149
+ --semantic-typography-body-compact-bold-xs-font-width: 88;
150
+ --semantic-typography-body-compact-bold-sm-font: normal 700 0.875rem/1.3
151
+ 'Open Sans';
152
+ --semantic-typography-body-compact-bold-sm-letter-spacing: 0;
153
+ --semantic-typography-body-compact-bold-sm-font-width: 88;
154
+ --semantic-typography-body-compact-bold-md-font: normal 700 1rem/1.3
155
+ 'Open Sans';
156
+ --semantic-typography-body-compact-bold-md-letter-spacing: 0;
157
+ --semantic-typography-body-compact-bold-md-font-width: 88;
158
+ --semantic-typography-body-compact-bold-lg-font: normal 700 1.125rem/1.3
159
+ 'Open Sans';
160
+ --semantic-typography-body-compact-bold-lg-letter-spacing: 0;
161
+ --semantic-typography-body-compact-bold-lg-font-width: 88;
162
+ --semantic-typography-body-compact-bold-xl-font: normal 700 1.25rem/1.3
163
+ 'Open Sans';
164
+ --semantic-typography-body-compact-bold-xl-letter-spacing: 0;
165
+ --semantic-typography-body-compact-bold-xl-font-width: 88;
166
+ --semantic-typography-body-compact-italic-xs-font: italic 460 0.75rem/1.3
167
+ 'Open Sans';
168
+ --semantic-typography-body-compact-italic-xs-letter-spacing: 0;
169
+ --semantic-typography-body-compact-italic-xs-font-width: 88;
102
170
  --semantic-typography-body-compact-italic-sm-font: italic 460 0.875rem/1.3
103
171
  'Open Sans';
104
172
  --semantic-typography-body-compact-italic-sm-letter-spacing: 0;
@@ -115,6 +183,26 @@
115
183
  'Open Sans';
116
184
  --semantic-typography-body-compact-italic-xl-letter-spacing: 0;
117
185
  --semantic-typography-body-compact-italic-xl-font-width: 88;
186
+ --semantic-typography-body-compact-italic-bold-xs-font: italic 700 0.75rem/1.3
187
+ 'Open Sans';
188
+ --semantic-typography-body-compact-italic-bold-xs-letter-spacing: 0;
189
+ --semantic-typography-body-compact-italic-bold-xs-font-width: 88;
190
+ --semantic-typography-body-compact-italic-bold-sm-font: italic 700
191
+ 0.875rem/1.3 'Open Sans';
192
+ --semantic-typography-body-compact-italic-bold-sm-letter-spacing: 0;
193
+ --semantic-typography-body-compact-italic-bold-sm-font-width: 88;
194
+ --semantic-typography-body-compact-italic-bold-md-font: italic 700 1rem/1.3
195
+ 'Open Sans';
196
+ --semantic-typography-body-compact-italic-bold-md-letter-spacing: 0;
197
+ --semantic-typography-body-compact-italic-bold-md-font-width: 88;
198
+ --semantic-typography-body-compact-italic-bold-lg-font: italic 700
199
+ 1.125rem/1.3 'Open Sans';
200
+ --semantic-typography-body-compact-italic-bold-lg-letter-spacing: 0;
201
+ --semantic-typography-body-compact-italic-bold-lg-font-width: 88;
202
+ --semantic-typography-body-compact-italic-bold-xl-font: italic 700 1.25rem/1.3
203
+ 'Open Sans';
204
+ --semantic-typography-body-compact-italic-bold-xl-letter-spacing: 0;
205
+ --semantic-typography-body-compact-italic-bold-xl-font-width: 88;
118
206
  --semantic-typography-meta-md-font: normal 460 0.75rem/1.3 'Open Sans';
119
207
  --semantic-typography-meta-md-letter-spacing: 0;
120
208
  --semantic-typography-meta-md-font-width: 95;
@@ -32,11 +32,11 @@ const baseTypography = {
32
32
  "48-rem": "3rem"
33
33
  },
34
34
  weight: {
35
- "Guardian Text Egyptian": {
36
- normal: 400,
35
+ "Guardian Headline": {
37
36
  bold: 700
38
37
  },
39
- "Guardian Headline": {
38
+ "Guardian Text Egyptian": {
39
+ normal: 400,
40
40
  bold: 700
41
41
  },
42
42
  "Open Sans": {
@@ -30,11 +30,11 @@ const baseTypography = {
30
30
  "48-rem": "3rem"
31
31
  },
32
32
  weight: {
33
- "Guardian Text Egyptian": {
34
- normal: 400,
33
+ "Guardian Headline": {
35
34
  bold: 700
36
35
  },
37
- "Guardian Headline": {
36
+ "Guardian Text Egyptian": {
37
+ normal: 400,
38
38
  bold: 700
39
39
  },
40
40
  "Open Sans": {
@@ -115,6 +115,38 @@ const componentTopBar = {
115
115
  letterSpacing: "-0.0125rem",
116
116
  fontWidth: 88
117
117
  }
118
+ },
119
+ link: {
120
+ textDecoration: "none",
121
+ color: "unset",
122
+ position: "relative",
123
+ width: "100%",
124
+ height: "100%"
125
+ },
126
+ hoverLink: {
127
+ color: "#ffffff",
128
+ paddingLeft: "1.25rem",
129
+ paddingRight: "1.25rem",
130
+ backgroundColor: "#092f62",
131
+ opacity: "0",
132
+ typography: {
133
+ font: "normal 700 0.875rem/1.3 Open Sans",
134
+ letterSpacing: "0rem",
135
+ fontWidth: 95
136
+ },
137
+ position: "absolute",
138
+ width: "100%",
139
+ height: "100%",
140
+ hover: {
141
+ opacity: "1"
142
+ },
143
+ pressed: {
144
+ backgroundColor: "#061d3c"
145
+ },
146
+ focused: {
147
+ outline: "0.125rem solid #0072a9",
148
+ "outline-offset": "-0.125rem"
149
+ }
118
150
  }
119
151
  }
120
152
  };
@@ -113,6 +113,38 @@ const componentTopBar = {
113
113
  letterSpacing: "-0.0125rem",
114
114
  fontWidth: 88
115
115
  }
116
+ },
117
+ link: {
118
+ textDecoration: "none",
119
+ color: "unset",
120
+ position: "relative",
121
+ width: "100%",
122
+ height: "100%"
123
+ },
124
+ hoverLink: {
125
+ color: "#ffffff",
126
+ paddingLeft: "1.25rem",
127
+ paddingRight: "1.25rem",
128
+ backgroundColor: "#092f62",
129
+ opacity: "0",
130
+ typography: {
131
+ font: "normal 700 0.875rem/1.3 Open Sans",
132
+ letterSpacing: "0rem",
133
+ fontWidth: 95
134
+ },
135
+ position: "absolute",
136
+ width: "100%",
137
+ height: "100%",
138
+ hover: {
139
+ opacity: "1"
140
+ },
141
+ pressed: {
142
+ backgroundColor: "#061d3c"
143
+ },
144
+ focused: {
145
+ outline: "0.125rem solid #0072a9",
146
+ "outline-offset": "-0.125rem"
147
+ }
116
148
  }
117
149
  }
118
150
  };
@@ -0,0 +1,100 @@
1
+ 'use strict';
2
+
3
+ const componentCheckbox = {
4
+ input: {
5
+ shared: {
6
+ display: "flex",
7
+ position: "relative",
8
+ gap: "0.5rem",
9
+ "align-items": "flex-start",
10
+ color: "#000000",
11
+ cursor: "pointer",
12
+ indicator: {
13
+ display: "flex",
14
+ "align-items": "center",
15
+ "justify-content": "center",
16
+ "flex-shrink": 0,
17
+ border: "0.0625rem solid #545454",
18
+ "border-radius": "0.25rem",
19
+ transition: "all 200ms",
20
+ svg: {
21
+ fill: "none"
22
+ },
23
+ check: {
24
+ width: "20px",
25
+ height: "20px"
26
+ },
27
+ indeterminate: {
28
+ width: "12px",
29
+ height: "2px"
30
+ },
31
+ selected: {
32
+ "background-color": "#005d8b",
33
+ border: "0.0625rem solid #0072a9",
34
+ svg: {
35
+ fill: "#ffffff"
36
+ }
37
+ },
38
+ ":focus-visible": {
39
+ outline: "0.125rem solid #0072a9",
40
+ "outline-offset": "0.125rem"
41
+ },
42
+ error: {
43
+ "background-color": "#b42a19",
44
+ border: "0.0625rem solid #b42a19"
45
+ }
46
+ },
47
+ label: {
48
+ "align-self": "center"
49
+ },
50
+ disabled: {
51
+ color: "#999999",
52
+ cursor: "not-allowed",
53
+ indicator: {
54
+ border: "0.0625rem solid #dcdcdc",
55
+ selected: {
56
+ "background-color": "#dcdcdc"
57
+ }
58
+ }
59
+ }
60
+ },
61
+ sm: {
62
+ typography: {
63
+ font: "normal 460 0.875rem/1.3 Open Sans",
64
+ letterSpacing: "0rem",
65
+ fontWidth: 95
66
+ },
67
+ indicator: {
68
+ size: "1.25rem"
69
+ }
70
+ },
71
+ md: {
72
+ typography: {
73
+ font: "normal 460 1rem/1.3 Open Sans",
74
+ letterSpacing: "0rem",
75
+ fontWidth: 95
76
+ },
77
+ indicator: {
78
+ size: "1.5rem"
79
+ }
80
+ }
81
+ },
82
+ group: {
83
+ shared: {
84
+ display: "flex",
85
+ "flex-direction": "column"
86
+ },
87
+ sm: {
88
+ gap: "1rem",
89
+ "margin-top": "0.5rem",
90
+ "margin-bottom": "0.5rem"
91
+ },
92
+ md: {
93
+ gap: "1.25rem",
94
+ "margin-top": "0.75rem",
95
+ "margin-bottom": "0.75rem"
96
+ }
97
+ }
98
+ };
99
+
100
+ exports.componentCheckbox = componentCheckbox;
@@ -0,0 +1,98 @@
1
+ const componentCheckbox = {
2
+ input: {
3
+ shared: {
4
+ display: "flex",
5
+ position: "relative",
6
+ gap: "0.5rem",
7
+ "align-items": "flex-start",
8
+ color: "#000000",
9
+ cursor: "pointer",
10
+ indicator: {
11
+ display: "flex",
12
+ "align-items": "center",
13
+ "justify-content": "center",
14
+ "flex-shrink": 0,
15
+ border: "0.0625rem solid #545454",
16
+ "border-radius": "0.25rem",
17
+ transition: "all 200ms",
18
+ svg: {
19
+ fill: "none"
20
+ },
21
+ check: {
22
+ width: "20px",
23
+ height: "20px"
24
+ },
25
+ indeterminate: {
26
+ width: "12px",
27
+ height: "2px"
28
+ },
29
+ selected: {
30
+ "background-color": "#005d8b",
31
+ border: "0.0625rem solid #0072a9",
32
+ svg: {
33
+ fill: "#ffffff"
34
+ }
35
+ },
36
+ ":focus-visible": {
37
+ outline: "0.125rem solid #0072a9",
38
+ "outline-offset": "0.125rem"
39
+ },
40
+ error: {
41
+ "background-color": "#b42a19",
42
+ border: "0.0625rem solid #b42a19"
43
+ }
44
+ },
45
+ label: {
46
+ "align-self": "center"
47
+ },
48
+ disabled: {
49
+ color: "#999999",
50
+ cursor: "not-allowed",
51
+ indicator: {
52
+ border: "0.0625rem solid #dcdcdc",
53
+ selected: {
54
+ "background-color": "#dcdcdc"
55
+ }
56
+ }
57
+ }
58
+ },
59
+ sm: {
60
+ typography: {
61
+ font: "normal 460 0.875rem/1.3 Open Sans",
62
+ letterSpacing: "0rem",
63
+ fontWidth: 95
64
+ },
65
+ indicator: {
66
+ size: "1.25rem"
67
+ }
68
+ },
69
+ md: {
70
+ typography: {
71
+ font: "normal 460 1rem/1.3 Open Sans",
72
+ letterSpacing: "0rem",
73
+ fontWidth: 95
74
+ },
75
+ indicator: {
76
+ size: "1.5rem"
77
+ }
78
+ }
79
+ },
80
+ group: {
81
+ shared: {
82
+ display: "flex",
83
+ "flex-direction": "column"
84
+ },
85
+ sm: {
86
+ gap: "1rem",
87
+ "margin-top": "0.5rem",
88
+ "margin-bottom": "0.5rem"
89
+ },
90
+ md: {
91
+ gap: "1.25rem",
92
+ "margin-top": "0.75rem",
93
+ "margin-bottom": "0.75rem"
94
+ }
95
+ }
96
+ };
97
+
98
+ export { componentCheckbox };
@@ -6,7 +6,8 @@ const componentInlineMessage = {
6
6
  gap: "0.25rem",
7
7
  "align-items": "center",
8
8
  icon: {
9
- size: "1.25rem"
9
+ size: "1.25rem",
10
+ "align-self": "flex-start"
10
11
  },
11
12
  typography: {
12
13
  font: "normal 460 0.875rem/1.3 Open Sans",
@@ -4,7 +4,8 @@ const componentInlineMessage = {
4
4
  gap: "0.25rem",
5
5
  "align-items": "center",
6
6
  icon: {
7
- size: "1.25rem"
7
+ size: "1.25rem",
8
+ "align-self": "flex-start"
8
9
  },
9
10
  typography: {
10
11
  font: "normal 460 0.875rem/1.3 Open Sans",
@@ -0,0 +1,85 @@
1
+ 'use strict';
2
+
3
+ const componentRadioGroup = {
4
+ shared: {
5
+ marginTop: "0.5rem",
6
+ marginBottom: "0.5rem",
7
+ display: "flex",
8
+ flexDirection: "column",
9
+ radio: {
10
+ color: "#000000",
11
+ disabled: {
12
+ color: "#999999"
13
+ },
14
+ display: "flex",
15
+ alignItems: "center",
16
+ gap: "0.5rem"
17
+ },
18
+ indicator: {
19
+ position: "relative",
20
+ after: {
21
+ position: "absolute",
22
+ borderRadius: "inherit",
23
+ inset: "0px",
24
+ scale: "0"
25
+ },
26
+ borderRadius: "50%",
27
+ border: "0.0625rem solid #545454",
28
+ focused: {
29
+ outline: "0.125rem solid #0072a9",
30
+ outlineOffset: "0.125rem"
31
+ },
32
+ invalid: {
33
+ border: "0.0625rem solid #b42a19",
34
+ after: {
35
+ backgroundColor: "#b42a19"
36
+ }
37
+ },
38
+ disabled: {
39
+ border: "0.0625rem solid #dcdcdc"
40
+ },
41
+ selected: {
42
+ after: {
43
+ backgroundColor: "#005d8b",
44
+ scale: "0.6"
45
+ },
46
+ border: "0.125rem solid #0072a9",
47
+ invalid: {
48
+ border: "0.125rem solid #b42a19"
49
+ },
50
+ disabled: {
51
+ border: "0.125rem solid #dcdcdc",
52
+ after: {
53
+ backgroundColor: "#dcdcdc"
54
+ }
55
+ }
56
+ }
57
+ }
58
+ },
59
+ sm: {
60
+ gap: "1rem",
61
+ typography: {
62
+ font: "normal 460 0.875rem/1.3 Open Sans",
63
+ letterSpacing: "0rem",
64
+ fontWidth: 95
65
+ },
66
+ indicator: {
67
+ width: "1.25rem",
68
+ height: "1.25rem"
69
+ }
70
+ },
71
+ md: {
72
+ gap: "1.25rem",
73
+ typography: {
74
+ font: "normal 460 1rem/1.3 Open Sans",
75
+ letterSpacing: "0rem",
76
+ fontWidth: 95
77
+ },
78
+ indicator: {
79
+ width: "1.5rem",
80
+ height: "1.5rem"
81
+ }
82
+ }
83
+ };
84
+
85
+ exports.componentRadioGroup = componentRadioGroup;