@nimbus-ds/styles 7.0.0 → 7.1.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 +13 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +360 -18
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -5
package/dist/index.d.ts
CHANGED
|
@@ -75,6 +75,10 @@ declare const propertiesBox: {
|
|
|
75
75
|
flexWrap: FlexWrap[];
|
|
76
76
|
justifyContent: JustifyContent[];
|
|
77
77
|
alignItems: AlignItems[];
|
|
78
|
+
/**
|
|
79
|
+
* The boxSizing property sets how the total width and height of an box is calculated.
|
|
80
|
+
* @default border-box
|
|
81
|
+
*/
|
|
78
82
|
alignSelf: AlignSelf[];
|
|
79
83
|
pointerEvents: PointerEvents[];
|
|
80
84
|
backgroundColor: {
|
|
@@ -89,7 +93,9 @@ declare const propertiesBox: {
|
|
|
89
93
|
"warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
90
94
|
"warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
91
95
|
"warning-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
92
|
-
"warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
96
|
+
"warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
|
|
97
|
+
* The min width property specifies the width of a box's content area.
|
|
98
|
+
*/
|
|
93
99
|
"danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
94
100
|
"danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
95
101
|
"danger-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -115,7 +121,9 @@ declare const propertiesBox: {
|
|
|
115
121
|
"warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
116
122
|
"warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
117
123
|
"warning-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
118
|
-
"warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
124
|
+
"warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
|
|
125
|
+
* The min width property specifies the width of a box's content area.
|
|
126
|
+
*/
|
|
119
127
|
"danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
120
128
|
"danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
121
129
|
"danger-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -199,6 +207,7 @@ declare const propertiesBox: {
|
|
|
199
207
|
slower: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
200
208
|
};
|
|
201
209
|
transitionTimingFunction: TransitionTiming[];
|
|
210
|
+
textDecoration: TextDecoration[];
|
|
202
211
|
};
|
|
203
212
|
export type BoxBorderColorProperties = keyof typeof propertiesBox.borderColor;
|
|
204
213
|
export type BoxBackgroundColorProperties = keyof typeof propertiesBox.backgroundColor;
|
|
@@ -217,84 +226,332 @@ export interface BoxConditions<T> extends Conditions<T> {
|
|
|
217
226
|
disabled?: T;
|
|
218
227
|
}
|
|
219
228
|
export interface BoxSprinkle {
|
|
229
|
+
/**
|
|
230
|
+
* The width property specifies the width of a box's content area.
|
|
231
|
+
*/
|
|
220
232
|
width?: string | BoxConditions<string>;
|
|
233
|
+
/**
|
|
234
|
+
* The height property specifies the height of a box's content area.
|
|
235
|
+
*/
|
|
221
236
|
height?: string | BoxConditions<string>;
|
|
237
|
+
/**
|
|
238
|
+
* The max width property specifies the width of a box's content area.
|
|
239
|
+
*/
|
|
222
240
|
maxWidth?: string | BoxConditions<string>;
|
|
241
|
+
/**
|
|
242
|
+
* The max height property specifies the height of a box's content area.
|
|
243
|
+
*/
|
|
223
244
|
maxHeight?: string | BoxConditions<string>;
|
|
245
|
+
/**
|
|
246
|
+
* The min width property specifies the width of a box's content area.
|
|
247
|
+
*/
|
|
224
248
|
minWidth?: string | BoxConditions<string>;
|
|
249
|
+
/**
|
|
250
|
+
* The min height property specifies the height of a box's content area.
|
|
251
|
+
*/
|
|
225
252
|
minHeight?: string | BoxConditions<string>;
|
|
253
|
+
/**
|
|
254
|
+
* The bottom property participates in setting the vertical position of a positioned box.
|
|
255
|
+
*/
|
|
226
256
|
bottom?: string | BoxConditions<string>;
|
|
257
|
+
/**
|
|
258
|
+
* The left property participates in specifying the horizontal position of a positioned box.
|
|
259
|
+
*/
|
|
227
260
|
left?: string | BoxConditions<string>;
|
|
261
|
+
/**
|
|
262
|
+
* The right property participates in specifying the horizontal position of a positioned box.
|
|
263
|
+
*/
|
|
228
264
|
right?: string | BoxConditions<string>;
|
|
265
|
+
/**
|
|
266
|
+
* The top property participates in setting the vertical position of a positioned box.
|
|
267
|
+
*/
|
|
229
268
|
top?: string | BoxConditions<string>;
|
|
269
|
+
/**
|
|
270
|
+
* This is the shorthand for flexGrow, flexShrink and flexBasis combined.
|
|
271
|
+
*/
|
|
230
272
|
flex?: string | BoxConditions<string>;
|
|
273
|
+
/**
|
|
274
|
+
* This defines the ability for a flex item to shrink if necessary.
|
|
275
|
+
*/
|
|
231
276
|
flexShrink?: string | BoxConditions<string>;
|
|
277
|
+
/**
|
|
278
|
+
* This defines the ability for a flex item to grow if necessary.
|
|
279
|
+
*/
|
|
232
280
|
flexGrow?: string | BoxConditions<string>;
|
|
281
|
+
/**
|
|
282
|
+
* The flexWrap property sets whether flex items are forced onto one line or can wrap onto multiple lines.
|
|
283
|
+
*/
|
|
284
|
+
flexWrap?: FlexWrap | BoxConditions<FlexWrap>;
|
|
285
|
+
/**
|
|
286
|
+
* The order property controls the order in which they appear in a flex container.
|
|
287
|
+
*/
|
|
233
288
|
order?: string | BoxConditions<string>;
|
|
289
|
+
/**
|
|
290
|
+
* The gridTemplateColumns property defines the line names and track sizing functions of the grid columns.
|
|
291
|
+
*/
|
|
234
292
|
gridTemplateColumns?: string | BoxConditions<string>;
|
|
293
|
+
/**
|
|
294
|
+
* The gridTemplateAreas property specifies named grid areas, establishing the cells in the grid and assigning them names.
|
|
295
|
+
*/
|
|
235
296
|
gridTemplateAreas?: string | BoxConditions<string>;
|
|
297
|
+
/**
|
|
298
|
+
* The gridTemplateRows property defines the line names and track sizing functions of the grid rows.
|
|
299
|
+
*/
|
|
236
300
|
gridTemplateRows?: string | BoxConditions<string>;
|
|
301
|
+
/**
|
|
302
|
+
* The gridArea shorthand property specifies a grid item's size and location within a grid by contributing a line,
|
|
303
|
+
* a span, or nothing (automatic) to its grid placement, thereby specifying the edges of its grid area.
|
|
304
|
+
*/
|
|
237
305
|
gridArea?: string | BoxConditions<string>;
|
|
306
|
+
/**
|
|
307
|
+
* The display property sets whether an box is treated as a block or inline element and the layout used for its children,
|
|
308
|
+
* such as grid or flex.
|
|
309
|
+
*/
|
|
238
310
|
display?: Display | BoxConditions<Display>;
|
|
239
|
-
|
|
311
|
+
/**
|
|
312
|
+
* The justifyContent property defines how the browser distributes space between and around content items along
|
|
313
|
+
* the main-axis of a flex container, and the inline axis of a grid container.
|
|
314
|
+
*/
|
|
240
315
|
justifyContent?: JustifyContent | BoxConditions<JustifyContent>;
|
|
316
|
+
/**
|
|
317
|
+
* The flexDirection property sets how flex items are placed in the flex container defining the main axis and the direction.
|
|
318
|
+
*/
|
|
241
319
|
flexDirection?: FlexDirection | BoxConditions<FlexDirection>;
|
|
320
|
+
/**
|
|
321
|
+
* The alignItems property sets the align-self value on all direct children as a group. In Flexbox, it controls the alignment of items on the Cross Axis.
|
|
322
|
+
* In Grid Layout, it controls the alignment of items on the Block Axis within their grid area.
|
|
323
|
+
*/
|
|
242
324
|
alignItems?: AlignItems | BoxConditions<AlignItems>;
|
|
325
|
+
/**
|
|
326
|
+
* The alignSelf property overrides a grid or flex item's align-items value. In Grid, it aligns the item inside the grid area.
|
|
327
|
+
* In Flexbox, it aligns the item on the cross axis.
|
|
328
|
+
*/
|
|
243
329
|
alignSelf?: AlignSelf | BoxConditions<AlignSelf>;
|
|
330
|
+
/**
|
|
331
|
+
* The gap property sets the gaps between rows and columns. It is a shorthand for rowGap and columnGap.
|
|
332
|
+
*/
|
|
244
333
|
gap?: BoxGapProperties | BoxConditions<BoxGapProperties>;
|
|
334
|
+
/**
|
|
335
|
+
* The gridGap property sets the gaps between rows and columns. It is a shorthand for rowGap and columnGap.
|
|
336
|
+
*/
|
|
245
337
|
gridGap?: BoxGridGapProperties | BoxConditions<BoxGridGapProperties>;
|
|
338
|
+
/**
|
|
339
|
+
* The pointerEvents property sets under what circumstances (if any) a particular graphic element can become the target of pointer events.
|
|
340
|
+
*/
|
|
246
341
|
pointerEvents?: PointerEvents | BoxConditions<PointerEvents>;
|
|
342
|
+
/**
|
|
343
|
+
* The position property sets how an box is positioned in a document.
|
|
344
|
+
*/
|
|
247
345
|
position?: Position | BoxConditions<Position>;
|
|
346
|
+
/**
|
|
347
|
+
* The overflow shorthand property sets the desired behavior for an box's overflow.
|
|
348
|
+
*/
|
|
248
349
|
overflow?: Overflow | BoxConditions<Overflow>;
|
|
350
|
+
/**
|
|
351
|
+
* The overflow-x property sets what shows when content overflows a block-level box's left and right edges.
|
|
352
|
+
*/
|
|
249
353
|
overflowX?: Overflow | BoxConditions<Overflow>;
|
|
354
|
+
/**
|
|
355
|
+
* The overflow-y property sets what shows when content overflows a block-level box's top and bottom edges.
|
|
356
|
+
*/
|
|
250
357
|
overflowY?: Overflow | BoxConditions<Overflow>;
|
|
358
|
+
/**
|
|
359
|
+
* The cursor property sets the mouse cursor, if any, to show when the mouse pointer is over an box.
|
|
360
|
+
*/
|
|
251
361
|
cursor?: Cursor | BoxConditions<Cursor>;
|
|
362
|
+
/**
|
|
363
|
+
* The backgroundColor property sets the background color of the box.
|
|
364
|
+
* @default neutral-background
|
|
365
|
+
* @examples ["neutral-interactive", { xs: "neutral-surface", md: "neutral-interactive" }]
|
|
366
|
+
*/
|
|
252
367
|
backgroundColor?: BoxBackgroundColorProperties | BoxConditions<BoxBackgroundColorProperties>;
|
|
368
|
+
/**
|
|
369
|
+
* The color property is used to set the color of the box.
|
|
370
|
+
*/
|
|
253
371
|
color?: BoxColorProperties | BoxConditions<BoxColorProperties>;
|
|
372
|
+
/**
|
|
373
|
+
* The borderRadius property rounds the corners of an box's outer border edge.
|
|
374
|
+
*/
|
|
254
375
|
borderRadius?: string | BoxConditions<string>;
|
|
376
|
+
/**
|
|
377
|
+
* The borderWidth property sets the width of an box's border.
|
|
378
|
+
*/
|
|
255
379
|
borderWidth?: string | BoxConditions<string>;
|
|
380
|
+
/**
|
|
381
|
+
* The borderColor property sets the color of the box's four borders.
|
|
382
|
+
*/
|
|
256
383
|
borderColor?: BoxBorderColorProperties | BoxConditions<BoxBorderColorProperties>;
|
|
384
|
+
/**
|
|
385
|
+
* borderStyle property sets the line style for all four sides of an box's border.
|
|
386
|
+
*/
|
|
257
387
|
borderStyle?: BorderStyle | BoxConditions<BorderStyle>;
|
|
388
|
+
/**
|
|
389
|
+
* The boxSizing property sets how the total width and height of an box is calculated.
|
|
390
|
+
* @default border-box
|
|
391
|
+
*/
|
|
258
392
|
boxSizing?: BoxSizing | BoxConditions<BoxSizing>;
|
|
393
|
+
/**
|
|
394
|
+
* The boxShadow property adds shadow effects around an box's frame.
|
|
395
|
+
*/
|
|
259
396
|
boxShadow?: BoxShadowProperties | BoxConditions<BoxShadowProperties>;
|
|
397
|
+
/**
|
|
398
|
+
* The padding properties are used to generate space around an box's content area.
|
|
399
|
+
*/
|
|
260
400
|
padding?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
|
|
401
|
+
/**
|
|
402
|
+
* The paddingTop property sets the height of the padding area on the top of an box.
|
|
403
|
+
*/
|
|
261
404
|
paddingTop?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
|
|
405
|
+
/**
|
|
406
|
+
* The paddingBottom property sets the height of the padding area on the bottom of an box.
|
|
407
|
+
*/
|
|
262
408
|
paddingBottom?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
|
|
409
|
+
/**
|
|
410
|
+
* The paddingLeft property sets the width of the padding area to the left of an box.
|
|
411
|
+
*/
|
|
263
412
|
paddingLeft?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
|
|
413
|
+
/**
|
|
414
|
+
* The paddingLeft property sets the width of the padding area to the right of an box.
|
|
415
|
+
*/
|
|
264
416
|
paddingRight?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
|
|
417
|
+
/**
|
|
418
|
+
* The margin shorthand property sets the margin area on all four sides of an box.
|
|
419
|
+
*/
|
|
265
420
|
margin?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
421
|
+
/**
|
|
422
|
+
* The marginTop property sets the margin area on the top of an box.
|
|
423
|
+
*/
|
|
266
424
|
marginTop?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
425
|
+
/**
|
|
426
|
+
* The marginBottom property sets the margin area on the bottom of an box.
|
|
427
|
+
*/
|
|
267
428
|
marginBottom?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
429
|
+
/**
|
|
430
|
+
* The marginLeft property sets the margin area on the left side of an box.
|
|
431
|
+
*/
|
|
268
432
|
marginLeft?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
433
|
+
/**
|
|
434
|
+
* The marginRight property sets the margin area on the right side of an box.
|
|
435
|
+
*/
|
|
269
436
|
marginRight?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
270
|
-
|
|
271
|
-
|
|
437
|
+
/**
|
|
438
|
+
* The transitionTimingFunction property sets how intermediate values are calculated for CSS properties being affected by a transition effect.
|
|
439
|
+
*/
|
|
440
|
+
transitionTimingFunction?: TransitionTiming | BoxConditions<TransitionTiming>;
|
|
441
|
+
/**
|
|
442
|
+
* The transitionProperty property sets the CSS properties to which a transition effect should be applied.
|
|
443
|
+
*/
|
|
444
|
+
transitionProperty?: string | BoxConditions<string>;
|
|
445
|
+
/**
|
|
446
|
+
* The transitionDelay property specifies the duration to wait before starting a property's transition effect when its value changes.
|
|
447
|
+
*/
|
|
448
|
+
transitionDelay?: string | BoxConditions<string>;
|
|
449
|
+
/**
|
|
450
|
+
* The transitionDuration property sets the length of time a transition animation should take to complete. By default, the value is 0s, meaning that no animation will occur.
|
|
451
|
+
*/
|
|
452
|
+
transitionDuration?: TransitionDurationProperties | BoxConditions<TransitionDurationProperties>;
|
|
453
|
+
/**
|
|
454
|
+
* The zIndex property specifies the stack order of the box.
|
|
455
|
+
*/
|
|
456
|
+
zIndex?: number | BoxConditions<number>;
|
|
457
|
+
/**
|
|
458
|
+
* The backgroundImage property sets one or more background images on an element.
|
|
459
|
+
*/
|
|
460
|
+
backgroundImage?: string | BoxConditions<string>;
|
|
461
|
+
/**
|
|
462
|
+
* The backgroundPosition property sets the initial position for each background image.
|
|
463
|
+
* The position is relative to the position layer set by background-origin.
|
|
464
|
+
*/
|
|
465
|
+
backgroundPosition?: string | BoxConditions<string>;
|
|
466
|
+
/**
|
|
467
|
+
* The backgroundBlendMode property sets how an element's background images should blend with each
|
|
468
|
+
* other and with the element's background color.
|
|
469
|
+
*/
|
|
470
|
+
backgroundBlendMode?: string | BoxConditions<string>;
|
|
471
|
+
/**
|
|
472
|
+
* The backgroundRepeat property sets how background images are repeated. A background image can be repeated along the horizontal and vertical axes, or not repeated at all.
|
|
473
|
+
*/
|
|
474
|
+
backgroundRepeat?: string | BoxConditions<string>;
|
|
475
|
+
/**
|
|
476
|
+
* The textDecoration shorthand property sets the appearance of decorative lines on text.
|
|
477
|
+
*/
|
|
478
|
+
textDecoration?: TextDecoration | BoxConditions<TextDecoration>;
|
|
479
|
+
/**
|
|
480
|
+
* The backgroundSize property sets the size of the element's background image. The image can be left to its natural size, stretched, or constrained to fit the available space.
|
|
481
|
+
*/
|
|
482
|
+
backgroundSize?: string | BoxConditions<string>;
|
|
483
|
+
/**
|
|
484
|
+
* The p shorthand property sets the margin area on all four sides of an box.
|
|
485
|
+
*/
|
|
272
486
|
p?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
|
|
487
|
+
/**
|
|
488
|
+
* The pl shorthand property sets the width of the padding area to the left of an box.
|
|
489
|
+
*/
|
|
273
490
|
pl?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
|
|
491
|
+
/**
|
|
492
|
+
* The pl shorthand property sets the width of the padding area to the right of an box.
|
|
493
|
+
*/
|
|
274
494
|
pr?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
|
|
495
|
+
/**
|
|
496
|
+
* The pt shorthand property sets the height of the padding area on the top of an box.
|
|
497
|
+
*/
|
|
275
498
|
pt?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
|
|
499
|
+
/**
|
|
500
|
+
* The pb shorthand property sets the height of the padding area on the botton of an box.
|
|
501
|
+
*/
|
|
276
502
|
pb?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
|
|
503
|
+
/**
|
|
504
|
+
* The px shorthand property defines the width of the left and right padding area of a box.
|
|
505
|
+
*/
|
|
277
506
|
px?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
|
|
507
|
+
/**
|
|
508
|
+
* The py pt shorthand property sets the height of the padding area at the top and bottom of a box.
|
|
509
|
+
*/
|
|
278
510
|
py?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
|
|
279
|
-
|
|
280
|
-
|
|
511
|
+
/**
|
|
512
|
+
* The paddingX shorthand property defines the width of the left and right padding area of a box.
|
|
513
|
+
*/
|
|
514
|
+
paddingX?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
|
|
515
|
+
/**
|
|
516
|
+
* The paddingY pt shorthand property sets the height of the padding area at the top and bottom of a box.
|
|
517
|
+
*/
|
|
518
|
+
paddingY?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
|
|
519
|
+
/**
|
|
520
|
+
* The m shorthand property sets the margin area on all four sides of an box.
|
|
521
|
+
*/
|
|
281
522
|
m?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
523
|
+
/**
|
|
524
|
+
* The mr property sets the margin area on the right side of an box.
|
|
525
|
+
*/
|
|
282
526
|
mr?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
527
|
+
/**
|
|
528
|
+
* The ml property sets the margin area on the left side of an box.
|
|
529
|
+
*/
|
|
283
530
|
ml?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
531
|
+
/**
|
|
532
|
+
* The mt property sets the margin area on the top of an box.
|
|
533
|
+
*/
|
|
284
534
|
mt?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
535
|
+
/**
|
|
536
|
+
* The marginBottom property sets the margin area on the bottom of an box.
|
|
537
|
+
*/
|
|
285
538
|
mb?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
539
|
+
/**
|
|
540
|
+
* The mx property defines the margin area on the left and right side of a box.
|
|
541
|
+
*/
|
|
286
542
|
mx?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
543
|
+
/**
|
|
544
|
+
* The my property defines the margin area on the top and bottom of a box
|
|
545
|
+
*/
|
|
287
546
|
my?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
backgroundRepeat?: string | BoxConditions<string>;
|
|
297
|
-
backgroundSize?: string | BoxConditions<string>;
|
|
547
|
+
/**
|
|
548
|
+
* The marginX property defines the margin area on the left and right side of a box.
|
|
549
|
+
*/
|
|
550
|
+
marginX?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
551
|
+
/**
|
|
552
|
+
* The marginY property defines the margin area on the top and bottom of a box
|
|
553
|
+
*/
|
|
554
|
+
marginY?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
298
555
|
}
|
|
299
556
|
export declare const box: {
|
|
300
557
|
sprinkle: import("rainbow-sprinkles/dist/declarations/src/createRuntimeFn").SprinklesFn<[
|
|
@@ -698,6 +955,20 @@ export declare const box: {
|
|
|
698
955
|
staticScale: TransitionTiming[];
|
|
699
956
|
name: "transitionTimingFunction";
|
|
700
957
|
};
|
|
958
|
+
textDecoration: {
|
|
959
|
+
values: {
|
|
960
|
+
none: {
|
|
961
|
+
default: string;
|
|
962
|
+
conditions: Record<"xs" | "md" | "lg" | "xl" | "focus" | "active" | "disabled" | "hover" | "focusWithin", string>;
|
|
963
|
+
};
|
|
964
|
+
underline: {
|
|
965
|
+
default: string;
|
|
966
|
+
conditions: Record<"xs" | "md" | "lg" | "xl" | "focus" | "active" | "disabled" | "hover" | "focusWithin", string>;
|
|
967
|
+
};
|
|
968
|
+
};
|
|
969
|
+
staticScale: TextDecoration[];
|
|
970
|
+
name: "textDecoration";
|
|
971
|
+
};
|
|
701
972
|
};
|
|
702
973
|
} & {
|
|
703
974
|
config: {
|
|
@@ -1734,6 +2005,7 @@ export declare const box: {
|
|
|
1734
2005
|
slower: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
1735
2006
|
};
|
|
1736
2007
|
transitionTimingFunction: TransitionTiming[];
|
|
2008
|
+
textDecoration: TextDecoration[];
|
|
1737
2009
|
};
|
|
1738
2010
|
};
|
|
1739
2011
|
export declare const button: {
|
|
@@ -1859,8 +2131,20 @@ export interface IconButtonConditions<T> extends Conditions<T> {
|
|
|
1859
2131
|
hover?: T;
|
|
1860
2132
|
}
|
|
1861
2133
|
export interface IconButtonSprinkle {
|
|
2134
|
+
/**
|
|
2135
|
+
* The size of the component.
|
|
2136
|
+
* @default 2.75rem
|
|
2137
|
+
*/
|
|
1862
2138
|
size?: string | IconButtonConditions<string>;
|
|
2139
|
+
/**
|
|
2140
|
+
* The borderColor property sets the color of the icon button's four borders.
|
|
2141
|
+
* @default { xs: "neutral-interactive", active: "neutral-interactivePressed", hover: "neutral-interactiveHover", focus: "primary-interactive" }
|
|
2142
|
+
*/
|
|
1863
2143
|
borderColor?: IconButtonBorderColorProperties | IconButtonConditions<IconButtonBorderColorProperties>;
|
|
2144
|
+
/**
|
|
2145
|
+
* The backgroundColor property sets the background color of the icon button.
|
|
2146
|
+
* @default { xs: "neutral-surface", active: "neutral-interactive", hover: "neutral-surfaceHighlight" }
|
|
2147
|
+
*/
|
|
1864
2148
|
backgroundColor?: IconButtonBackgroundColorProperties | IconButtonConditions<IconButtonBackgroundColorProperties>;
|
|
1865
2149
|
}
|
|
1866
2150
|
export declare const iconButton: {
|
|
@@ -2172,11 +2456,34 @@ export type PopoverColorProperties = keyof typeof propertiesPopover.color;
|
|
|
2172
2456
|
export type PopoverBackgroundColorProperties = keyof typeof propertiesPopover.backgroundColor;
|
|
2173
2457
|
export type PopoverPaddingProperties = keyof typeof propertiesPopover.padding;
|
|
2174
2458
|
export interface PopoverSprinkle {
|
|
2459
|
+
/**
|
|
2460
|
+
* The width property specifies the width of a popover's content area.
|
|
2461
|
+
* @default 17.5rem
|
|
2462
|
+
*/
|
|
2175
2463
|
width?: string | Conditions<string>;
|
|
2464
|
+
/**
|
|
2465
|
+
* The height property specifies the height of a popover's content area.
|
|
2466
|
+
*/
|
|
2176
2467
|
height?: string | Conditions<string>;
|
|
2468
|
+
/**
|
|
2469
|
+
* The zIndex property specifies the stack order of the popover.
|
|
2470
|
+
*/
|
|
2177
2471
|
zIndex?: number | Conditions<number>;
|
|
2472
|
+
/**
|
|
2473
|
+
* The backgroundColor property sets the background color of the popover.
|
|
2474
|
+
* @default neutral-background
|
|
2475
|
+
* @examples ["neutral-interactive", { xs: "neutral-surface", md: "neutral-interactive" }]
|
|
2476
|
+
*/
|
|
2178
2477
|
backgroundColor?: PopoverBackgroundColorProperties | Conditions<PopoverBackgroundColorProperties>;
|
|
2478
|
+
/**
|
|
2479
|
+
* The color property is used to set the color of the popover.
|
|
2480
|
+
* @default neutral-background
|
|
2481
|
+
*/
|
|
2179
2482
|
color?: PopoverColorProperties | Conditions<PopoverColorProperties>;
|
|
2483
|
+
/**
|
|
2484
|
+
* The padding properties are used to generate space around an popover's content area.
|
|
2485
|
+
* @default base
|
|
2486
|
+
*/
|
|
2180
2487
|
padding?: PopoverPaddingProperties | Conditions<PopoverPaddingProperties>;
|
|
2181
2488
|
}
|
|
2182
2489
|
export declare const popover: {
|
|
@@ -2517,6 +2824,7 @@ export declare const accordion: {
|
|
|
2517
2824
|
export declare const alert: {
|
|
2518
2825
|
classnames: {
|
|
2519
2826
|
appearance: Record<"primary" | "success" | "warning" | "danger" | "neutral", string>;
|
|
2827
|
+
container: string;
|
|
2520
2828
|
container__body: string;
|
|
2521
2829
|
container__content: string;
|
|
2522
2830
|
container__close_appearance: Record<"primary" | "success" | "warning" | "danger" | "neutral", string>;
|
|
@@ -2565,7 +2873,15 @@ declare const propertiesModal: {
|
|
|
2565
2873
|
};
|
|
2566
2874
|
export type PaddingProperties = keyof typeof propertiesModal.padding;
|
|
2567
2875
|
export interface ModalSprinkle {
|
|
2876
|
+
/**
|
|
2877
|
+
* The maxWidth property specifies the maxWidth of a modal's content area.
|
|
2878
|
+
* @default { xs: "100%", md: "500px" }
|
|
2879
|
+
*/
|
|
2568
2880
|
maxWidth?: string | Conditions<string>;
|
|
2881
|
+
/**
|
|
2882
|
+
* The padding properties are used to generate space around an modal's content area.
|
|
2883
|
+
* @default base
|
|
2884
|
+
*/
|
|
2569
2885
|
padding?: PaddingProperties | Conditions<PaddingProperties>;
|
|
2570
2886
|
}
|
|
2571
2887
|
export declare const modal: {
|
|
@@ -2702,8 +3018,19 @@ declare const sidebarSprinkle: {
|
|
|
2702
3018
|
};
|
|
2703
3019
|
export type SidebarPaddingProperties = keyof typeof sidebarSprinkle.properties.padding;
|
|
2704
3020
|
export interface SidebarSprinkle {
|
|
3021
|
+
/**
|
|
3022
|
+
* The maxWidth property specifies the maxWidth of a sidebar's content area.
|
|
3023
|
+
* @default 375px
|
|
3024
|
+
*/
|
|
2705
3025
|
maxWidth?: string | Conditions<string>;
|
|
3026
|
+
/**
|
|
3027
|
+
* The zIndex property specifies the stack order of the sidebar.
|
|
3028
|
+
*/
|
|
2706
3029
|
zIndex?: number | Conditions<number>;
|
|
3030
|
+
/**
|
|
3031
|
+
* The padding properties are used to generate space around an sidebar's content area.
|
|
3032
|
+
* @default base
|
|
3033
|
+
*/
|
|
2707
3034
|
padding?: SidebarPaddingProperties | Conditions<SidebarPaddingProperties>;
|
|
2708
3035
|
}
|
|
2709
3036
|
export declare const sidebar: {
|
|
@@ -2817,11 +3144,26 @@ export interface TableConditions<T> extends Conditions<T> {
|
|
|
2817
3144
|
hover?: T;
|
|
2818
3145
|
}
|
|
2819
3146
|
export interface TableSprinkle {
|
|
2820
|
-
|
|
3147
|
+
/**
|
|
3148
|
+
* The width property specifies the width of a table's content area.
|
|
3149
|
+
*/
|
|
2821
3150
|
width?: string | TableConditions<string>;
|
|
3151
|
+
/**
|
|
3152
|
+
* The maxWidth property specifies the maxWidth of a table's content area.
|
|
3153
|
+
*/
|
|
2822
3154
|
maxWidth?: string | TableConditions<string>;
|
|
3155
|
+
/**
|
|
3156
|
+
* The minWidth property specifies the minWidth of a table's content area.
|
|
3157
|
+
*/
|
|
2823
3158
|
minWidth?: string | TableConditions<string>;
|
|
3159
|
+
/**
|
|
3160
|
+
* The backgroundColor property sets the background color of the table.
|
|
3161
|
+
*/
|
|
2824
3162
|
backgroundColor?: TableRowBackgroundColorProperties | TableConditions<TableRowBackgroundColorProperties>;
|
|
3163
|
+
/**
|
|
3164
|
+
* The padding properties are used to generate space around an table's content area.
|
|
3165
|
+
*/
|
|
3166
|
+
padding?: TablePaddingProperties | TableConditions<TablePaddingProperties>;
|
|
2825
3167
|
}
|
|
2826
3168
|
export declare const table: {
|
|
2827
3169
|
sprinkle: import("rainbow-sprinkles/dist/declarations/src/createRuntimeFn").SprinklesFn<[
|