@@ -122,24 +122,33 @@ The `is` prop allows `Box` to render any component capable of handling common DO
122
122
overflow = ' hidden'
123
123
>
124
124
{ flattenChildren (fn ().props .children ).map ((child ) =>
125
- React .cloneElement (child , { m: ' x4' , size: ' x122' }, child .props .bg )
125
+ React .cloneElement (
126
+ child ,
127
+ {
128
+ m: ' x4' ,
129
+ size: ' x122' ,
130
+ color: ' annotation' ,
131
+ textAlign: ' center' ,
132
+ },
133
+ child .props .bg
134
+ )
126
135
)}
127
136
</Box >
128
137
),
129
138
]}
130
139
>
131
140
<>
132
- <Box bg = ' surface- light' />
133
- <Box bg = ' surface- tint' />
134
- <Box bg = ' surface-neutral ' />
135
- <Box bg = ' surface-disabled ' />
136
- <Box bg = ' surface-hover ' />
137
- <Box bg = ' surface-info ' />
138
- <Box bg = ' surface-success ' />
139
- <Box bg = ' surface-warning ' />
140
- <Box bg = ' surface-danger ' />
141
- <Box bg = ' surface-service-1 ' />
142
- <Box bg = ' surface-service-2 ' />
141
+ <Box bg = ' light' />
142
+ <Box bg = ' tint' />
143
+ <Box bg = ' room ' />
144
+ <Box bg = ' neutral ' />
145
+ <Box bg = ' disabled ' />
146
+ <Box bg = ' hover ' />
147
+ <Box bg = ' selected ' />
148
+ <Box bg = ' dark ' />
149
+ <Box bg = ' featured ' />
150
+ <Box bg = ' featured-hover ' />
151
+ <Box bg = ' transparent ' />
143
152
</>
144
153
</Story >
145
154
</Canvas >
@@ -158,7 +167,11 @@ The `is` prop allows `Box` to render any component capable of handling common DO
158
167
overflow = ' hidden'
159
168
>
160
169
{ flattenChildren (fn ().props .children ).map ((child ) =>
161
- React .cloneElement (child , { m: ' x4' , size: ' x122' }, child .props .bg )
170
+ React .cloneElement (
171
+ child ,
172
+ { m: ' x4' , size: ' x122' , textAlign: ' center' },
173
+ child .props .bg
174
+ )
162
175
)}
163
176
</Box >
164
177
),
@@ -189,22 +202,32 @@ The `is` prop allows `Box` to render any component capable of handling common DO
189
202
overflow = ' hidden'
190
203
>
191
204
{ flattenChildren (fn ().props .children ).map ((child ) =>
192
- React .cloneElement (child , { m: ' x4' , size: ' x122' }, child .props .bg )
205
+ React .cloneElement (
206
+ child ,
207
+ {
208
+ m: ' x4' ,
209
+ textAlign: ' center' ,
210
+ size: ' x122' ,
211
+ color: ' annotation' ,
212
+ borderWidth: ' x8' ,
213
+ },
214
+ child .props .borderColor
215
+ )
193
216
)}
194
217
</Box >
195
218
),
196
219
]}
197
220
>
198
221
<>
199
- <Box bg = ' stroke-extra-light' />
200
- <Box bg = ' stroke-light' />
201
- <Box bg = ' stroke-medium' />
202
- <Box bg = ' stroke-dark' />
203
- <Box bg = ' stroke-extra-dark' />
204
- <Box bg = ' stroke-extra-light-highlight' />
205
- <Box bg = ' stroke-highlight' />
206
- <Box bg = ' stroke-extra-light-error' />
207
- <Box bg = ' stroke-error' />
222
+ <Box borderColor = ' stroke-extra-light' />
223
+ <Box borderColor = ' stroke-light' />
224
+ <Box borderColor = ' stroke-medium' />
225
+ <Box borderColor = ' stroke-dark' />
226
+ <Box borderColor = ' stroke-extra-dark' />
227
+ <Box borderColor = ' stroke-extra-light-highlight' />
228
+ <Box borderColor = ' stroke-highlight' />
229
+ <Box borderColor = ' stroke-extra-light-error' />
230
+ <Box borderColor = ' stroke-error' />
208
231
</>
209
232
</Story >
210
233
</Canvas >
@@ -237,71 +260,12 @@ The `is` prop allows `Box` to render any component capable of handling common DO
237
260
<Box color = ' font-white' />
238
261
<Box color = ' font-disabled' />
239
262
<Box color = ' font-annotation' />
263
+ <Box color = ' font-secondary-info' />
240
264
<Box color = ' font-hint' />
241
265
<Box color = ' font-text' />
242
- <Box color = ' font-title-labels' />
266
+ <Box color = ' font-titles-labels' />
267
+ <Box color = ' font-info' />
243
268
<Box color = ' font-danger' />
244
- <Box color = ' font-secondary-info' />
245
- <Box color = ' font-on-info' />
246
- <Box color = ' font-on-success' />
247
- <Box color = ' font-on-warning' />
248
- <Box color = ' font-on-danger' />
249
- <Box color = ' font-on-service-1' />
250
- <Box color = ' font-on-service-2' />
251
- </>
252
- </Story >
253
- </Canvas >
254
-
255
- #### Background colors
256
-
257
- <Canvas >
258
- <Story
259
- name = ' Background colors'
260
- decorators = { [
261
- (fn ) => (
262
- <Box
263
- display = ' flex'
264
- flexWrap = ' wrap'
265
- alignItems = ' center'
266
- overflow = ' hidden'
267
- >
268
- { flattenChildren (fn ().props .children ).map ((child ) =>
269
- React .cloneElement (child , { m: ' x4' , size: ' x32' })
270
- )}
271
- </Box >
272
- ),
273
- ]}
274
- >
275
- <>
276
- <Box bg = ' neutral-500' />
277
- <Box bg = ' neutral-500-50' />
278
- <Box bg = ' primary-500' />
279
- <Box bg = ' primary-500-50' />
280
- <Box bg = ' info-500' />
281
- <Box bg = ' info-500-50' />
282
- <Box bg = ' success-500' />
283
- <Box bg = ' success-500-50' />
284
- <Box bg = ' warning-500' />
285
- <Box bg = ' warning-500-50' />
286
- <Box bg = ' danger-500' />
287
- <Box bg = ' danger-500-50' />
288
- <Box bg = ' surface' />
289
- <Box bg = ' surface-light' />
290
- <Box bg = ' surface-tint' />
291
- <Box bg = ' surface-neutral' />
292
- <Box bg = ' default' />
293
- <Box bg = ' info' />
294
- <Box bg = ' hint' />
295
- <Box bg = ' disabled' />
296
- <Box bg = ' alternative' />
297
- <Box bg = ' primary' />
298
- <Box bg = ' success' />
299
- <Box bg = ' danger' />
300
- <Box bg = ' warning' />
301
- <Box bg = ' link' />
302
- <Box bg = ' visited-link' />
303
- <Box bg = ' active-link' />
304
- <Box bg = ' rebeccapurple' />
305
269
</>
306
270
</Story >
307
271
</Canvas >
0 commit comments