@sproutsocial/racine 11.4.1-input-beta.0 → 11.5.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/CHANGELOG.md +14 -0
- package/__flow__/Button/index.js +2 -0
- package/__flow__/Button/index.stories.js +51 -67
- package/__flow__/Button/styles.js +1 -1
- package/__flow__/Checkbox/styles.js +75 -75
- package/__flow__/Collapsible/index.js +2 -3
- package/__flow__/EmptyState/index.test.js +1 -1
- package/__flow__/Image/index.js +2 -10
- package/__flow__/Menu/__snapshots__/index.test.js.snap +2 -2
- package/__flow__/SegmentedControl/index.js +2 -3
- package/__flow__/TableCell/index.js +2 -9
- package/__flow__/ToggleHint/index.js +2 -9
- package/__flow__/setupTests.js +1 -1
- package/__flow__/systemProps/color.js +2 -1
- package/__flow__/systemProps/tests/__snapshots__/layout.test.js.snap +0 -14
- package/__flow__/systemProps/tests/layout.test.js +0 -9
- package/__flow__/utils/responsiveProps/index.test.js +2 -10
- package/commonjs/Button/index.js +1 -0
- package/commonjs/Button/styles.js +1 -0
- package/commonjs/Message/styles.js +1 -1
- package/lib/Button/index.js +1 -0
- package/lib/Button/styles.js +1 -0
- package/lib/Message/styles.js +1 -1
- package/package.json +24 -20
- package/__flow__/Button/__snapshots__/index.test.js.snap +0 -511
- package/__flow__/Button/index.test.js +0 -113
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sproutsocial/racine",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.5.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"__flow__",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"lodash.curry": "^4.1.1",
|
|
70
70
|
"lodash.uniqueid": "^4.0.1",
|
|
71
71
|
"lru-memoize": "^1.1.0",
|
|
72
|
-
"mutationobserver-shim": "^0.3.
|
|
72
|
+
"mutationobserver-shim": "^0.3.7",
|
|
73
73
|
"polished": "^3.4.1",
|
|
74
74
|
"raw-loader": "^3.0.0",
|
|
75
75
|
"react-focus-lock": "^2.0.3",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@babel/cli": "^7.5.5",
|
|
87
|
-
"@babel/core": "^7.
|
|
87
|
+
"@babel/core": "^7.12.9",
|
|
88
88
|
"@babel/plugin-proposal-class-properties": "^7.4.4",
|
|
89
89
|
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
|
90
90
|
"@babel/preset-env": "^7.8.0",
|
|
@@ -99,23 +99,26 @@
|
|
|
99
99
|
"@sproutsocial/seeds-networkcolor": "^2.9.0",
|
|
100
100
|
"@sproutsocial/seeds-space": "^0.4.7",
|
|
101
101
|
"@sproutsocial/seeds-typography": "^3.0.1",
|
|
102
|
-
"@storybook/addon-a11y": "^6.
|
|
103
|
-
"@storybook/addon-actions": "^6.
|
|
104
|
-
"@storybook/addon-
|
|
105
|
-
"@storybook/addon-
|
|
106
|
-
"@storybook/addon-
|
|
107
|
-
"@storybook/
|
|
102
|
+
"@storybook/addon-a11y": "^6.4.19",
|
|
103
|
+
"@storybook/addon-actions": "^6.4.19",
|
|
104
|
+
"@storybook/addon-controls": "^6.4.19",
|
|
105
|
+
"@storybook/addon-knobs": "^6.4.0",
|
|
106
|
+
"@storybook/addon-storysource": "^6.4.19",
|
|
107
|
+
"@storybook/addon-viewport": "^6.4.19",
|
|
108
|
+
"@storybook/addons": "^6.4.19",
|
|
108
109
|
"@storybook/react": "^6.4.19",
|
|
109
|
-
"@storybook/theming": "^6.
|
|
110
|
+
"@storybook/theming": "^6.4.19",
|
|
111
|
+
"@testing-library/jest-dom": "^5.16.4",
|
|
110
112
|
"@testing-library/react": "^11.2.2",
|
|
111
113
|
"@testing-library/user-event": "^13.0.0",
|
|
114
|
+
"axios": "^0.26.1",
|
|
112
115
|
"babel-core": "^7.0.0-bridge",
|
|
113
116
|
"babel-eslint": "10.1.0",
|
|
114
|
-
"babel-jest": "
|
|
115
|
-
"babel-loader": "8.
|
|
117
|
+
"babel-jest": "27.x.x",
|
|
118
|
+
"babel-loader": "8.2.3",
|
|
116
119
|
"babel-plugin-inline-import": "^3.0.0",
|
|
117
120
|
"babel-plugin-polished": "^1.1.0",
|
|
118
|
-
"babel-plugin-styled-components": "^
|
|
121
|
+
"babel-plugin-styled-components": "^2.0.7",
|
|
119
122
|
"babel-polyfill": "^6.26.0",
|
|
120
123
|
"chalk": "^2.3.2",
|
|
121
124
|
"chokidar": "^3.0.2",
|
|
@@ -137,9 +140,8 @@
|
|
|
137
140
|
"identity-obj-proxy": "^3.0.0",
|
|
138
141
|
"inquirer": "^6.4.1",
|
|
139
142
|
"is-glob": "^4.0.1",
|
|
140
|
-
"jest": "
|
|
141
|
-
"jest-axe": "
|
|
142
|
-
"jest-dom": "^3.5.0",
|
|
143
|
+
"jest": "27.x.x",
|
|
144
|
+
"jest-axe": "6.0.0",
|
|
143
145
|
"jest-styled-components": "7.0.0-beta.1",
|
|
144
146
|
"jscodeshift": "^0.6.4",
|
|
145
147
|
"json-to-scss": "^1.6.2",
|
|
@@ -148,15 +150,15 @@
|
|
|
148
150
|
"npm-run-all": "^4.1.2",
|
|
149
151
|
"outdent": "^0.7.0",
|
|
150
152
|
"pify": "^4.0.1",
|
|
151
|
-
"playroom": "^0.
|
|
153
|
+
"playroom": "^0.27.9",
|
|
152
154
|
"prettier": "^2.0.5",
|
|
153
155
|
"prop-types": "^15.6.1",
|
|
154
156
|
"react": "16.12.0",
|
|
155
157
|
"react-dates": "^21.8.0",
|
|
156
158
|
"react-dom": "16.12.0",
|
|
157
159
|
"rimraf": "^2.6.3",
|
|
158
|
-
"storybook-dark-mode": "^1.0.
|
|
159
|
-
"styled-components": "5.
|
|
160
|
+
"storybook-dark-mode": "^1.0.9",
|
|
161
|
+
"styled-components": "^5.2.3",
|
|
160
162
|
"stylelint": "^13.8.0",
|
|
161
163
|
"stylelint-config-recommended": "^2.2.0",
|
|
162
164
|
"stylelint-config-styled-components": "^0.1.1",
|
|
@@ -178,13 +180,15 @@
|
|
|
178
180
|
"prop-types": "^15.0.0",
|
|
179
181
|
"react": "^16.2.0",
|
|
180
182
|
"react-dates": "^21.8.0",
|
|
181
|
-
"
|
|
183
|
+
"react-virtualized": "9.18.5",
|
|
184
|
+
"styled-components": "^5.2.3"
|
|
182
185
|
},
|
|
183
186
|
"resolutions": {
|
|
184
187
|
"lodash": "^4.17.21",
|
|
185
188
|
"react-popper/create-react-context": "^0.3.0"
|
|
186
189
|
},
|
|
187
190
|
"jest": {
|
|
191
|
+
"testEnvironment": "jsdom",
|
|
188
192
|
"setupFilesAfterEnv": [
|
|
189
193
|
"<rootDir>/src/setupTests.js"
|
|
190
194
|
],
|
|
@@ -1,511 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Racine Button should render in active state 1`] = `
|
|
4
|
-
.c0 {
|
|
5
|
-
display: inline-block;
|
|
6
|
-
box-sizing: border-box;
|
|
7
|
-
text-align: center;
|
|
8
|
-
font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
|
|
9
|
-
border: 1px solid #364141;
|
|
10
|
-
border-radius: 6px;
|
|
11
|
-
border-style: solid;
|
|
12
|
-
background: transparent;
|
|
13
|
-
color: #364141;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
-webkit-text-decoration: none;
|
|
16
|
-
text-decoration: none;
|
|
17
|
-
line-height: 16px;
|
|
18
|
-
white-space: nowrap;
|
|
19
|
-
font-weight: 700;
|
|
20
|
-
-webkit-transition: all .15s linear;
|
|
21
|
-
transition: all .15s linear;
|
|
22
|
-
margin: 0;
|
|
23
|
-
padding: 8px;
|
|
24
|
-
font-size: 13px;
|
|
25
|
-
color: #FFFFFF !important;
|
|
26
|
-
background: #273333 !important;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.c0:visited {
|
|
30
|
-
color: #364141;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.c0:hover {
|
|
34
|
-
color: #FFFFFF;
|
|
35
|
-
background: #364141;
|
|
36
|
-
-webkit-text-decoration: none;
|
|
37
|
-
text-decoration: none;
|
|
38
|
-
box-shadow: none;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.c0:active {
|
|
42
|
-
color: #FFFFFF;
|
|
43
|
-
background: #273333;
|
|
44
|
-
-webkit-transform: translateY(1px);
|
|
45
|
-
-ms-transform: translateY(1px);
|
|
46
|
-
transform: translateY(1px);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.c0:focus {
|
|
50
|
-
box-shadow: 0 0 0 1px #2079c3,0 0px 0px 4px rgba(32,121,195,0.3);
|
|
51
|
-
outline: none;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.c0:focus::-moz-focus-inner {
|
|
55
|
-
border: 0;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.c0:focus:active {
|
|
59
|
-
box-shadow: none;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.c0 .styles__Container-x0vwa5-0 {
|
|
63
|
-
vertical-align: text-bottom;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
<div>
|
|
67
|
-
<button
|
|
68
|
-
class="c0"
|
|
69
|
-
data-qa-button=""
|
|
70
|
-
data-qa-button-isdisabled="false"
|
|
71
|
-
type="button"
|
|
72
|
-
>
|
|
73
|
-
Button
|
|
74
|
-
</button>
|
|
75
|
-
</div>
|
|
76
|
-
`;
|
|
77
|
-
|
|
78
|
-
exports[`Racine Button should render in an anchor tag with external target 1`] = `
|
|
79
|
-
.c0 {
|
|
80
|
-
display: inline-block;
|
|
81
|
-
box-sizing: border-box;
|
|
82
|
-
text-align: center;
|
|
83
|
-
font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
|
|
84
|
-
border: 1px solid transparent;
|
|
85
|
-
border-radius: 6px;
|
|
86
|
-
border-style: solid;
|
|
87
|
-
background: transparent;
|
|
88
|
-
color: #515e5f;
|
|
89
|
-
cursor: pointer;
|
|
90
|
-
-webkit-text-decoration: none;
|
|
91
|
-
text-decoration: none;
|
|
92
|
-
line-height: 16px;
|
|
93
|
-
white-space: nowrap;
|
|
94
|
-
font-weight: 700;
|
|
95
|
-
-webkit-transition: all .15s linear;
|
|
96
|
-
transition: all .15s linear;
|
|
97
|
-
margin: 0;
|
|
98
|
-
padding: 8px;
|
|
99
|
-
font-size: 13px;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.c0:visited {
|
|
103
|
-
color: #515e5f;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.c0:hover {
|
|
107
|
-
color: #273333;
|
|
108
|
-
-webkit-text-decoration: none;
|
|
109
|
-
text-decoration: none;
|
|
110
|
-
box-shadow: none;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.c0:active {
|
|
114
|
-
color: #273333;
|
|
115
|
-
-webkit-transform: translateY(1px);
|
|
116
|
-
-ms-transform: translateY(1px);
|
|
117
|
-
transform: translateY(1px);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.c0:focus {
|
|
121
|
-
box-shadow: 0 0 0 1px #2079c3,0 0px 0px 4px rgba(32,121,195,0.3);
|
|
122
|
-
outline: none;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.c0:focus::-moz-focus-inner {
|
|
126
|
-
border: 0;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.c0:focus:active {
|
|
130
|
-
box-shadow: none;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.c0 .styles__Container-x0vwa5-0 {
|
|
134
|
-
vertical-align: text-bottom;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
<div>
|
|
138
|
-
<a
|
|
139
|
-
class="c0"
|
|
140
|
-
data-qa-button=""
|
|
141
|
-
data-qa-button-isdisabled="false"
|
|
142
|
-
href="http://sproutsocial.style"
|
|
143
|
-
rel="noopener noreferrer"
|
|
144
|
-
target="_blank"
|
|
145
|
-
>
|
|
146
|
-
Button
|
|
147
|
-
</a>
|
|
148
|
-
</div>
|
|
149
|
-
`;
|
|
150
|
-
|
|
151
|
-
exports[`Racine Button should render in default style 1`] = `
|
|
152
|
-
.c0 {
|
|
153
|
-
display: inline-block;
|
|
154
|
-
box-sizing: border-box;
|
|
155
|
-
text-align: center;
|
|
156
|
-
font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
|
|
157
|
-
border: 1px solid transparent;
|
|
158
|
-
border-radius: 6px;
|
|
159
|
-
border-style: solid;
|
|
160
|
-
background: transparent;
|
|
161
|
-
color: #515e5f;
|
|
162
|
-
cursor: pointer;
|
|
163
|
-
-webkit-text-decoration: none;
|
|
164
|
-
text-decoration: none;
|
|
165
|
-
line-height: 16px;
|
|
166
|
-
white-space: nowrap;
|
|
167
|
-
font-weight: 700;
|
|
168
|
-
-webkit-transition: all .15s linear;
|
|
169
|
-
transition: all .15s linear;
|
|
170
|
-
margin: 0;
|
|
171
|
-
padding: 8px;
|
|
172
|
-
font-size: 13px;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.c0:visited {
|
|
176
|
-
color: #515e5f;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.c0:hover {
|
|
180
|
-
color: #273333;
|
|
181
|
-
-webkit-text-decoration: none;
|
|
182
|
-
text-decoration: none;
|
|
183
|
-
box-shadow: none;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.c0:active {
|
|
187
|
-
color: #273333;
|
|
188
|
-
-webkit-transform: translateY(1px);
|
|
189
|
-
-ms-transform: translateY(1px);
|
|
190
|
-
transform: translateY(1px);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.c0:focus {
|
|
194
|
-
box-shadow: 0 0 0 1px #2079c3,0 0px 0px 4px rgba(32,121,195,0.3);
|
|
195
|
-
outline: none;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.c0:focus::-moz-focus-inner {
|
|
199
|
-
border: 0;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.c0:focus:active {
|
|
203
|
-
box-shadow: none;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.c0 .styles__Container-x0vwa5-0 {
|
|
207
|
-
vertical-align: text-bottom;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
<div>
|
|
211
|
-
<button
|
|
212
|
-
class="c0"
|
|
213
|
-
data-qa-button=""
|
|
214
|
-
data-qa-button-isdisabled="false"
|
|
215
|
-
type="button"
|
|
216
|
-
>
|
|
217
|
-
Button
|
|
218
|
-
</button>
|
|
219
|
-
</div>
|
|
220
|
-
`;
|
|
221
|
-
|
|
222
|
-
exports[`Racine Button should render in large size 1`] = `
|
|
223
|
-
.c0 {
|
|
224
|
-
display: inline-block;
|
|
225
|
-
box-sizing: border-box;
|
|
226
|
-
text-align: center;
|
|
227
|
-
font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
|
|
228
|
-
border: 1px solid #364141;
|
|
229
|
-
border-radius: 6px;
|
|
230
|
-
border-style: solid;
|
|
231
|
-
background: transparent;
|
|
232
|
-
color: #364141;
|
|
233
|
-
cursor: pointer;
|
|
234
|
-
-webkit-text-decoration: none;
|
|
235
|
-
text-decoration: none;
|
|
236
|
-
line-height: 16px;
|
|
237
|
-
white-space: nowrap;
|
|
238
|
-
font-weight: 700;
|
|
239
|
-
-webkit-transition: all .15s linear;
|
|
240
|
-
transition: all .15s linear;
|
|
241
|
-
margin: 0;
|
|
242
|
-
padding: 12px;
|
|
243
|
-
font-size: 16px;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.c0:visited {
|
|
247
|
-
color: #364141;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.c0:hover {
|
|
251
|
-
color: #FFFFFF;
|
|
252
|
-
background: #364141;
|
|
253
|
-
-webkit-text-decoration: none;
|
|
254
|
-
text-decoration: none;
|
|
255
|
-
box-shadow: none;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.c0:active {
|
|
259
|
-
color: #FFFFFF;
|
|
260
|
-
background: #273333;
|
|
261
|
-
-webkit-transform: translateY(1px);
|
|
262
|
-
-ms-transform: translateY(1px);
|
|
263
|
-
transform: translateY(1px);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.c0:focus {
|
|
267
|
-
box-shadow: 0 0 0 1px #2079c3,0 0px 0px 4px rgba(32,121,195,0.3);
|
|
268
|
-
outline: none;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.c0:focus::-moz-focus-inner {
|
|
272
|
-
border: 0;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.c0:focus:active {
|
|
276
|
-
box-shadow: none;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.c0 .styles__Container-x0vwa5-0 {
|
|
280
|
-
vertical-align: text-bottom;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
<div>
|
|
284
|
-
<button
|
|
285
|
-
class="c0"
|
|
286
|
-
data-qa-button=""
|
|
287
|
-
data-qa-button-isdisabled="false"
|
|
288
|
-
type="button"
|
|
289
|
-
>
|
|
290
|
-
Button
|
|
291
|
-
</button>
|
|
292
|
-
</div>
|
|
293
|
-
`;
|
|
294
|
-
|
|
295
|
-
exports[`Racine Button should render in pill style 1`] = `
|
|
296
|
-
.c0 {
|
|
297
|
-
display: inline-block;
|
|
298
|
-
box-sizing: border-box;
|
|
299
|
-
text-align: center;
|
|
300
|
-
font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
|
|
301
|
-
border: 1px solid transparent;
|
|
302
|
-
border-radius: 6px;
|
|
303
|
-
border-style: solid;
|
|
304
|
-
background: transparent;
|
|
305
|
-
color: #515e5f;
|
|
306
|
-
cursor: pointer;
|
|
307
|
-
-webkit-text-decoration: none;
|
|
308
|
-
text-decoration: none;
|
|
309
|
-
line-height: 16px;
|
|
310
|
-
white-space: nowrap;
|
|
311
|
-
font-weight: 700;
|
|
312
|
-
-webkit-transition: all .15s linear;
|
|
313
|
-
transition: all .15s linear;
|
|
314
|
-
margin: 0;
|
|
315
|
-
padding: 8px;
|
|
316
|
-
font-size: 13px;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
.c0:visited {
|
|
320
|
-
color: #515e5f;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
.c0:hover {
|
|
324
|
-
color: #273333;
|
|
325
|
-
-webkit-text-decoration: none;
|
|
326
|
-
text-decoration: none;
|
|
327
|
-
box-shadow: none;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
.c0:active {
|
|
331
|
-
color: #273333;
|
|
332
|
-
-webkit-transform: translateY(1px);
|
|
333
|
-
-ms-transform: translateY(1px);
|
|
334
|
-
transform: translateY(1px);
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
.c0:focus {
|
|
338
|
-
box-shadow: 0 0 0 1px #2079c3,0 0px 0px 4px rgba(32,121,195,0.3);
|
|
339
|
-
outline: none;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
.c0:focus::-moz-focus-inner {
|
|
343
|
-
border: 0;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
.c0:focus:active {
|
|
347
|
-
box-shadow: none;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
.c0 .styles__Container-x0vwa5-0 {
|
|
351
|
-
vertical-align: text-bottom;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
<div>
|
|
355
|
-
<button
|
|
356
|
-
class="c0"
|
|
357
|
-
data-qa-button=""
|
|
358
|
-
data-qa-button-isdisabled="false"
|
|
359
|
-
shape="pill"
|
|
360
|
-
type="button"
|
|
361
|
-
>
|
|
362
|
-
Button
|
|
363
|
-
</button>
|
|
364
|
-
</div>
|
|
365
|
-
`;
|
|
366
|
-
|
|
367
|
-
exports[`Racine Button should render in primary style 1`] = `
|
|
368
|
-
.c0 {
|
|
369
|
-
display: inline-block;
|
|
370
|
-
box-sizing: border-box;
|
|
371
|
-
text-align: center;
|
|
372
|
-
font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
|
|
373
|
-
border: 1px solid transparent;
|
|
374
|
-
border-radius: 6px;
|
|
375
|
-
border-style: solid;
|
|
376
|
-
background: #2079c3;
|
|
377
|
-
color: #FFFFFF;
|
|
378
|
-
cursor: pointer;
|
|
379
|
-
-webkit-text-decoration: none;
|
|
380
|
-
text-decoration: none;
|
|
381
|
-
line-height: 16px;
|
|
382
|
-
white-space: nowrap;
|
|
383
|
-
font-weight: 700;
|
|
384
|
-
-webkit-transition: all .15s linear;
|
|
385
|
-
transition: all .15s linear;
|
|
386
|
-
margin: 0;
|
|
387
|
-
padding: 8px;
|
|
388
|
-
font-size: 13px;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
.c0:visited {
|
|
392
|
-
color: #FFFFFF;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
.c0:hover {
|
|
396
|
-
color: #FFFFFF;
|
|
397
|
-
background: #116daa;
|
|
398
|
-
-webkit-text-decoration: none;
|
|
399
|
-
text-decoration: none;
|
|
400
|
-
box-shadow: none;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
.c0:active {
|
|
404
|
-
color: #FFFFFF;
|
|
405
|
-
background: #0c5689;
|
|
406
|
-
-webkit-transform: translateY(1px);
|
|
407
|
-
-ms-transform: translateY(1px);
|
|
408
|
-
transform: translateY(1px);
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
.c0:focus {
|
|
412
|
-
box-shadow: 0 0 0 1px #2079c3,0 0px 0px 4px rgba(32,121,195,0.3);
|
|
413
|
-
outline: none;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
.c0:focus::-moz-focus-inner {
|
|
417
|
-
border: 0;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
.c0:focus:active {
|
|
421
|
-
box-shadow: none;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
.c0 .styles__Container-x0vwa5-0 {
|
|
425
|
-
vertical-align: text-bottom;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
<div>
|
|
429
|
-
<button
|
|
430
|
-
class="c0"
|
|
431
|
-
data-qa-button=""
|
|
432
|
-
data-qa-button-isdisabled="false"
|
|
433
|
-
type="button"
|
|
434
|
-
>
|
|
435
|
-
Button
|
|
436
|
-
</button>
|
|
437
|
-
</div>
|
|
438
|
-
`;
|
|
439
|
-
|
|
440
|
-
exports[`Racine Button should render in secondary style 1`] = `
|
|
441
|
-
.c0 {
|
|
442
|
-
display: inline-block;
|
|
443
|
-
box-sizing: border-box;
|
|
444
|
-
text-align: center;
|
|
445
|
-
font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
|
|
446
|
-
border: 1px solid #364141;
|
|
447
|
-
border-radius: 6px;
|
|
448
|
-
border-style: solid;
|
|
449
|
-
background: transparent;
|
|
450
|
-
color: #364141;
|
|
451
|
-
cursor: pointer;
|
|
452
|
-
-webkit-text-decoration: none;
|
|
453
|
-
text-decoration: none;
|
|
454
|
-
line-height: 16px;
|
|
455
|
-
white-space: nowrap;
|
|
456
|
-
font-weight: 700;
|
|
457
|
-
-webkit-transition: all .15s linear;
|
|
458
|
-
transition: all .15s linear;
|
|
459
|
-
margin: 0;
|
|
460
|
-
padding: 8px;
|
|
461
|
-
font-size: 13px;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
.c0:visited {
|
|
465
|
-
color: #364141;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
.c0:hover {
|
|
469
|
-
color: #FFFFFF;
|
|
470
|
-
background: #364141;
|
|
471
|
-
-webkit-text-decoration: none;
|
|
472
|
-
text-decoration: none;
|
|
473
|
-
box-shadow: none;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
.c0:active {
|
|
477
|
-
color: #FFFFFF;
|
|
478
|
-
background: #273333;
|
|
479
|
-
-webkit-transform: translateY(1px);
|
|
480
|
-
-ms-transform: translateY(1px);
|
|
481
|
-
transform: translateY(1px);
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
.c0:focus {
|
|
485
|
-
box-shadow: 0 0 0 1px #2079c3,0 0px 0px 4px rgba(32,121,195,0.3);
|
|
486
|
-
outline: none;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
.c0:focus::-moz-focus-inner {
|
|
490
|
-
border: 0;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
.c0:focus:active {
|
|
494
|
-
box-shadow: none;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
.c0 .styles__Container-x0vwa5-0 {
|
|
498
|
-
vertical-align: text-bottom;
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
<div>
|
|
502
|
-
<button
|
|
503
|
-
class="c0"
|
|
504
|
-
data-qa-button=""
|
|
505
|
-
data-qa-button-isdisabled="false"
|
|
506
|
-
type="button"
|
|
507
|
-
>
|
|
508
|
-
Button
|
|
509
|
-
</button>
|
|
510
|
-
</div>
|
|
511
|
-
`;
|