@nimbus-ds/styles 7.0.0 → 7.0.1

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/dist/index.d.ts CHANGED
@@ -37,7 +37,9 @@ export type PointerEvents = "auto" | "none" | "visiblePainted" | "visibleFill" |
37
37
  export type TransitionTiming = "ease" | "ease-in" | "ease-out" | "ease-in-out" | "linear" | "step-start" | "step-end";
38
38
  declare const propertiesBox: {
39
39
  gap: {
40
- none: string;
40
+ none: string; /**
41
+ * The gridTemplateRows property defines the line names and track sizing functions of the grid rows.
42
+ */
41
43
  "0,5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
42
44
  "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
43
45
  "1,5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
@@ -54,7 +56,9 @@ declare const propertiesBox: {
54
56
  "20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
55
57
  };
56
58
  gridGap: {
57
- none: string;
59
+ none: string; /**
60
+ * The gridTemplateRows property defines the line names and track sizing functions of the grid rows.
61
+ */
58
62
  "0,5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
59
63
  "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
60
64
  "1,5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
@@ -217,84 +221,328 @@ export interface BoxConditions<T> extends Conditions<T> {
217
221
  disabled?: T;
218
222
  }
219
223
  export interface BoxSprinkle {
224
+ /**
225
+ * The width property specifies the width of a box's content area.
226
+ */
220
227
  width?: string | BoxConditions<string>;
228
+ /**
229
+ * The height property specifies the height of a box's content area.
230
+ */
221
231
  height?: string | BoxConditions<string>;
232
+ /**
233
+ * The max width property specifies the width of a box's content area.
234
+ */
222
235
  maxWidth?: string | BoxConditions<string>;
236
+ /**
237
+ * The max height property specifies the height of a box's content area.
238
+ */
223
239
  maxHeight?: string | BoxConditions<string>;
240
+ /**
241
+ * The min width property specifies the width of a box's content area.
242
+ */
224
243
  minWidth?: string | BoxConditions<string>;
244
+ /**
245
+ * The min height property specifies the height of a box's content area.
246
+ */
225
247
  minHeight?: string | BoxConditions<string>;
248
+ /**
249
+ * The bottom property participates in setting the vertical position of a positioned box.
250
+ */
226
251
  bottom?: string | BoxConditions<string>;
252
+ /**
253
+ * The left property participates in specifying the horizontal position of a positioned box.
254
+ */
227
255
  left?: string | BoxConditions<string>;
256
+ /**
257
+ * The right property participates in specifying the horizontal position of a positioned box.
258
+ */
228
259
  right?: string | BoxConditions<string>;
260
+ /**
261
+ * The top property participates in setting the vertical position of a positioned box.
262
+ */
229
263
  top?: string | BoxConditions<string>;
264
+ /**
265
+ * This is the shorthand for flexGrow, flexShrink and flexBasis combined.
266
+ */
230
267
  flex?: string | BoxConditions<string>;
268
+ /**
269
+ * This defines the ability for a flex item to shrink if necessary.
270
+ */
231
271
  flexShrink?: string | BoxConditions<string>;
272
+ /**
273
+ * This defines the ability for a flex item to grow if necessary.
274
+ */
232
275
  flexGrow?: string | BoxConditions<string>;
276
+ /**
277
+ * The flexWrap property sets whether flex items are forced onto one line or can wrap onto multiple lines.
278
+ */
279
+ flexWrap?: FlexWrap | BoxConditions<FlexWrap>;
280
+ /**
281
+ * The order property controls the order in which they appear in a flex container.
282
+ */
233
283
  order?: string | BoxConditions<string>;
284
+ /**
285
+ * The gridTemplateColumns property defines the line names and track sizing functions of the grid columns.
286
+ */
234
287
  gridTemplateColumns?: string | BoxConditions<string>;
288
+ /**
289
+ * The gridTemplateAreas property specifies named grid areas, establishing the cells in the grid and assigning them names.
290
+ */
235
291
  gridTemplateAreas?: string | BoxConditions<string>;
292
+ /**
293
+ * The gridTemplateRows property defines the line names and track sizing functions of the grid rows.
294
+ */
236
295
  gridTemplateRows?: string | BoxConditions<string>;
296
+ /**
297
+ * The gridArea shorthand property specifies a grid item's size and location within a grid by contributing a line,
298
+ * a span, or nothing (automatic) to its grid placement, thereby specifying the edges of its grid area.
299
+ */
237
300
  gridArea?: string | BoxConditions<string>;
301
+ /**
302
+ * The display property sets whether an box is treated as a block or inline element and the layout used for its children,
303
+ * such as grid or flex.
304
+ */
238
305
  display?: Display | BoxConditions<Display>;
239
- flexWrap?: FlexWrap | BoxConditions<FlexWrap>;
306
+ /**
307
+ * The justifyContent property defines how the browser distributes space between and around content items along
308
+ * the main-axis of a flex container, and the inline axis of a grid container.
309
+ */
240
310
  justifyContent?: JustifyContent | BoxConditions<JustifyContent>;
311
+ /**
312
+ * The flexDirection property sets how flex items are placed in the flex container defining the main axis and the direction.
313
+ */
241
314
  flexDirection?: FlexDirection | BoxConditions<FlexDirection>;
315
+ /**
316
+ * 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.
317
+ * In Grid Layout, it controls the alignment of items on the Block Axis within their grid area.
318
+ */
242
319
  alignItems?: AlignItems | BoxConditions<AlignItems>;
320
+ /**
321
+ * The alignSelf property overrides a grid or flex item's align-items value. In Grid, it aligns the item inside the grid area.
322
+ * In Flexbox, it aligns the item on the cross axis.
323
+ */
243
324
  alignSelf?: AlignSelf | BoxConditions<AlignSelf>;
325
+ /**
326
+ * The gap property sets the gaps between rows and columns. It is a shorthand for rowGap and columnGap.
327
+ */
244
328
  gap?: BoxGapProperties | BoxConditions<BoxGapProperties>;
329
+ /**
330
+ * The gridGap property sets the gaps between rows and columns. It is a shorthand for rowGap and columnGap.
331
+ */
245
332
  gridGap?: BoxGridGapProperties | BoxConditions<BoxGridGapProperties>;
333
+ /**
334
+ * The pointerEvents property sets under what circumstances (if any) a particular graphic element can become the target of pointer events.
335
+ */
246
336
  pointerEvents?: PointerEvents | BoxConditions<PointerEvents>;
337
+ /**
338
+ * The position property sets how an box is positioned in a document.
339
+ */
247
340
  position?: Position | BoxConditions<Position>;
341
+ /**
342
+ * The overflow shorthand property sets the desired behavior for an box's overflow.
343
+ */
248
344
  overflow?: Overflow | BoxConditions<Overflow>;
345
+ /**
346
+ * The overflow-x property sets what shows when content overflows a block-level box's left and right edges.
347
+ */
249
348
  overflowX?: Overflow | BoxConditions<Overflow>;
349
+ /**
350
+ * The overflow-y property sets what shows when content overflows a block-level box's top and bottom edges.
351
+ */
250
352
  overflowY?: Overflow | BoxConditions<Overflow>;
353
+ /**
354
+ * The cursor property sets the mouse cursor, if any, to show when the mouse pointer is over an box.
355
+ */
251
356
  cursor?: Cursor | BoxConditions<Cursor>;
357
+ /**
358
+ * The backgroundColor property sets the background color of the box.
359
+ * @default neutral-background
360
+ * @examples ["neutral-interactive", { xs: "neutral-surface", md: "neutral-interactive" }]
361
+ */
252
362
  backgroundColor?: BoxBackgroundColorProperties | BoxConditions<BoxBackgroundColorProperties>;
363
+ /**
364
+ * The color property is used to set the color of the box.
365
+ */
253
366
  color?: BoxColorProperties | BoxConditions<BoxColorProperties>;
367
+ /**
368
+ * The borderRadius property rounds the corners of an box's outer border edge.
369
+ */
254
370
  borderRadius?: string | BoxConditions<string>;
371
+ /**
372
+ * The borderWidth property sets the width of an box's border.
373
+ */
255
374
  borderWidth?: string | BoxConditions<string>;
375
+ /**
376
+ * The borderColor property sets the color of the box's four borders.
377
+ */
256
378
  borderColor?: BoxBorderColorProperties | BoxConditions<BoxBorderColorProperties>;
379
+ /**
380
+ * borderStyle property sets the line style for all four sides of an box's border.
381
+ */
257
382
  borderStyle?: BorderStyle | BoxConditions<BorderStyle>;
383
+ /**
384
+ * The boxSizing property sets how the total width and height of an box is calculated.
385
+ * @default border-box
386
+ */
258
387
  boxSizing?: BoxSizing | BoxConditions<BoxSizing>;
388
+ /**
389
+ * The boxShadow property adds shadow effects around an box's frame.
390
+ */
259
391
  boxShadow?: BoxShadowProperties | BoxConditions<BoxShadowProperties>;
392
+ /**
393
+ * The padding properties are used to generate space around an box's content area.
394
+ */
260
395
  padding?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
396
+ /**
397
+ * The paddingTop property sets the height of the padding area on the top of an box.
398
+ */
261
399
  paddingTop?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
400
+ /**
401
+ * The paddingBottom property sets the height of the padding area on the bottom of an box.
402
+ */
262
403
  paddingBottom?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
404
+ /**
405
+ * The paddingLeft property sets the width of the padding area to the left of an box.
406
+ */
263
407
  paddingLeft?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
408
+ /**
409
+ * The paddingLeft property sets the width of the padding area to the right of an box.
410
+ */
264
411
  paddingRight?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
412
+ /**
413
+ * The margin shorthand property sets the margin area on all four sides of an box.
414
+ */
265
415
  margin?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
416
+ /**
417
+ * The marginTop property sets the margin area on the top of an box.
418
+ */
266
419
  marginTop?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
420
+ /**
421
+ * The marginBottom property sets the margin area on the bottom of an box.
422
+ */
267
423
  marginBottom?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
424
+ /**
425
+ * The marginLeft property sets the margin area on the left side of an box.
426
+ */
268
427
  marginLeft?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
428
+ /**
429
+ * The marginRight property sets the margin area on the right side of an box.
430
+ */
269
431
  marginRight?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
270
- paddingX?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
271
- paddingY?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
432
+ /**
433
+ * The transitionTimingFunction property sets how intermediate values are calculated for CSS properties being affected by a transition effect.
434
+ */
435
+ transitionTimingFunction?: TransitionTiming | BoxConditions<TransitionTiming>;
436
+ /**
437
+ * The transitionProperty property sets the CSS properties to which a transition effect should be applied.
438
+ */
439
+ transitionProperty?: string | BoxConditions<string>;
440
+ /**
441
+ * The transitionDelay property specifies the duration to wait before starting a property's transition effect when its value changes.
442
+ */
443
+ transitionDelay?: string | BoxConditions<string>;
444
+ /**
445
+ * 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.
446
+ */
447
+ transitionDuration?: TransitionDurationProperties | BoxConditions<TransitionDurationProperties>;
448
+ /**
449
+ * The zIndex property specifies the stack order of the box.
450
+ */
451
+ zIndex?: number | BoxConditions<number>;
452
+ /**
453
+ * The backgroundImage property sets one or more background images on an element.
454
+ */
455
+ backgroundImage?: string | BoxConditions<string>;
456
+ /**
457
+ * The backgroundPosition property sets the initial position for each background image.
458
+ * The position is relative to the position layer set by background-origin.
459
+ */
460
+ backgroundPosition?: string | BoxConditions<string>;
461
+ /**
462
+ * The backgroundBlendMode property sets how an element's background images should blend with each
463
+ * other and with the element's background color.
464
+ */
465
+ backgroundBlendMode?: string | BoxConditions<string>;
466
+ /**
467
+ * 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.
468
+ */
469
+ backgroundRepeat?: string | BoxConditions<string>;
470
+ /**
471
+ * 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.
472
+ */
473
+ backgroundSize?: string | BoxConditions<string>;
474
+ /**
475
+ * The p shorthand property sets the margin area on all four sides of an box.
476
+ */
272
477
  p?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
478
+ /**
479
+ * The pl shorthand property sets the width of the padding area to the left of an box.
480
+ */
273
481
  pl?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
482
+ /**
483
+ * The pl shorthand property sets the width of the padding area to the right of an box.
484
+ */
274
485
  pr?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
486
+ /**
487
+ * The pt shorthand property sets the height of the padding area on the top of an box.
488
+ */
275
489
  pt?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
490
+ /**
491
+ * The pb shorthand property sets the height of the padding area on the botton of an box.
492
+ */
276
493
  pb?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
494
+ /**
495
+ * The px shorthand property defines the width of the left and right padding area of a box.
496
+ */
277
497
  px?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
498
+ /**
499
+ * The py pt shorthand property sets the height of the padding area at the top and bottom of a box.
500
+ */
278
501
  py?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
279
- marginX?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
280
- marginY?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
502
+ /**
503
+ * The paddingX shorthand property defines the width of the left and right padding area of a box.
504
+ */
505
+ paddingX?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
506
+ /**
507
+ * The paddingY pt shorthand property sets the height of the padding area at the top and bottom of a box.
508
+ */
509
+ paddingY?: BoxSpaceProperties | BoxConditions<BoxSpaceProperties>;
510
+ /**
511
+ * The m shorthand property sets the margin area on all four sides of an box.
512
+ */
281
513
  m?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
514
+ /**
515
+ * The mr property sets the margin area on the right side of an box.
516
+ */
282
517
  mr?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
518
+ /**
519
+ * The ml property sets the margin area on the left side of an box.
520
+ */
283
521
  ml?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
522
+ /**
523
+ * The mt property sets the margin area on the top of an box.
524
+ */
284
525
  mt?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
526
+ /**
527
+ * The marginBottom property sets the margin area on the bottom of an box.
528
+ */
285
529
  mb?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
530
+ /**
531
+ * The mx property defines the margin area on the left and right side of a box.
532
+ */
286
533
  mx?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
534
+ /**
535
+ * The my property defines the margin area on the top and bottom of a box
536
+ */
287
537
  my?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
288
- transitionTimingFunction?: TransitionTiming | BoxConditions<TransitionTiming>;
289
- transitionProperty?: string | BoxConditions<string>;
290
- transitionDelay?: string | BoxConditions<string>;
291
- transitionDuration?: TransitionDurationProperties | BoxConditions<TransitionDurationProperties>;
292
- zIndex?: number | BoxConditions<number>;
293
- backgroundImage?: string | BoxConditions<string>;
294
- backgroundPosition?: string | BoxConditions<string>;
295
- backgroundBlendMode?: string | BoxConditions<string>;
296
- backgroundRepeat?: string | BoxConditions<string>;
297
- backgroundSize?: string | BoxConditions<string>;
538
+ /**
539
+ * The marginX property defines the margin area on the left and right side of a box.
540
+ */
541
+ marginX?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
542
+ /**
543
+ * The marginY property defines the margin area on the top and bottom of a box
544
+ */
545
+ marginY?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
298
546
  }
299
547
  export declare const box: {
300
548
  sprinkle: import("rainbow-sprinkles/dist/declarations/src/createRuntimeFn").SprinklesFn<[
@@ -1859,8 +2107,20 @@ export interface IconButtonConditions<T> extends Conditions<T> {
1859
2107
  hover?: T;
1860
2108
  }
1861
2109
  export interface IconButtonSprinkle {
2110
+ /**
2111
+ * The size of the component.
2112
+ * @default 2.75rem
2113
+ */
1862
2114
  size?: string | IconButtonConditions<string>;
2115
+ /**
2116
+ * The borderColor property sets the color of the icon button's four borders.
2117
+ * @default { xs: "neutral-interactive", active: "neutral-interactivePressed", hover: "neutral-interactiveHover", focus: "primary-interactive" }
2118
+ */
1863
2119
  borderColor?: IconButtonBorderColorProperties | IconButtonConditions<IconButtonBorderColorProperties>;
2120
+ /**
2121
+ * The backgroundColor property sets the background color of the icon button.
2122
+ * @default { xs: "neutral-surface", active: "neutral-interactive", hover: "neutral-surfaceHighlight" }
2123
+ */
1864
2124
  backgroundColor?: IconButtonBackgroundColorProperties | IconButtonConditions<IconButtonBackgroundColorProperties>;
1865
2125
  }
1866
2126
  export declare const iconButton: {
@@ -2172,11 +2432,34 @@ export type PopoverColorProperties = keyof typeof propertiesPopover.color;
2172
2432
  export type PopoverBackgroundColorProperties = keyof typeof propertiesPopover.backgroundColor;
2173
2433
  export type PopoverPaddingProperties = keyof typeof propertiesPopover.padding;
2174
2434
  export interface PopoverSprinkle {
2435
+ /**
2436
+ * The width property specifies the width of a popover's content area.
2437
+ * @default 17.5rem
2438
+ */
2175
2439
  width?: string | Conditions<string>;
2440
+ /**
2441
+ * The height property specifies the height of a popover's content area.
2442
+ */
2176
2443
  height?: string | Conditions<string>;
2444
+ /**
2445
+ * The zIndex property specifies the stack order of the popover.
2446
+ */
2177
2447
  zIndex?: number | Conditions<number>;
2448
+ /**
2449
+ * The backgroundColor property sets the background color of the popover.
2450
+ * @default neutral-background
2451
+ * @examples ["neutral-interactive", { xs: "neutral-surface", md: "neutral-interactive" }]
2452
+ */
2178
2453
  backgroundColor?: PopoverBackgroundColorProperties | Conditions<PopoverBackgroundColorProperties>;
2454
+ /**
2455
+ * The color property is used to set the color of the popover.
2456
+ * @default neutral-background
2457
+ */
2179
2458
  color?: PopoverColorProperties | Conditions<PopoverColorProperties>;
2459
+ /**
2460
+ * The padding properties are used to generate space around an popover's content area.
2461
+ * @default base
2462
+ */
2180
2463
  padding?: PopoverPaddingProperties | Conditions<PopoverPaddingProperties>;
2181
2464
  }
2182
2465
  export declare const popover: {
@@ -2517,6 +2800,7 @@ export declare const accordion: {
2517
2800
  export declare const alert: {
2518
2801
  classnames: {
2519
2802
  appearance: Record<"primary" | "success" | "warning" | "danger" | "neutral", string>;
2803
+ container: string;
2520
2804
  container__body: string;
2521
2805
  container__content: string;
2522
2806
  container__close_appearance: Record<"primary" | "success" | "warning" | "danger" | "neutral", string>;
@@ -2565,7 +2849,15 @@ declare const propertiesModal: {
2565
2849
  };
2566
2850
  export type PaddingProperties = keyof typeof propertiesModal.padding;
2567
2851
  export interface ModalSprinkle {
2852
+ /**
2853
+ * The maxWidth property specifies the maxWidth of a modal's content area.
2854
+ * @default { xs: "100%", md: "500px" }
2855
+ */
2568
2856
  maxWidth?: string | Conditions<string>;
2857
+ /**
2858
+ * The padding properties are used to generate space around an modal's content area.
2859
+ * @default base
2860
+ */
2569
2861
  padding?: PaddingProperties | Conditions<PaddingProperties>;
2570
2862
  }
2571
2863
  export declare const modal: {
@@ -2702,8 +2994,19 @@ declare const sidebarSprinkle: {
2702
2994
  };
2703
2995
  export type SidebarPaddingProperties = keyof typeof sidebarSprinkle.properties.padding;
2704
2996
  export interface SidebarSprinkle {
2997
+ /**
2998
+ * The maxWidth property specifies the maxWidth of a sidebar's content area.
2999
+ * @default 375px
3000
+ */
2705
3001
  maxWidth?: string | Conditions<string>;
3002
+ /**
3003
+ * The zIndex property specifies the stack order of the sidebar.
3004
+ */
2706
3005
  zIndex?: number | Conditions<number>;
3006
+ /**
3007
+ * The padding properties are used to generate space around an sidebar's content area.
3008
+ * @default base
3009
+ */
2707
3010
  padding?: SidebarPaddingProperties | Conditions<SidebarPaddingProperties>;
2708
3011
  }
2709
3012
  export declare const sidebar: {
@@ -2817,11 +3120,26 @@ export interface TableConditions<T> extends Conditions<T> {
2817
3120
  hover?: T;
2818
3121
  }
2819
3122
  export interface TableSprinkle {
2820
- padding?: TablePaddingProperties | TableConditions<TablePaddingProperties>;
3123
+ /**
3124
+ * The width property specifies the width of a table's content area.
3125
+ */
2821
3126
  width?: string | TableConditions<string>;
3127
+ /**
3128
+ * The maxWidth property specifies the maxWidth of a table's content area.
3129
+ */
2822
3130
  maxWidth?: string | TableConditions<string>;
3131
+ /**
3132
+ * The minWidth property specifies the minWidth of a table's content area.
3133
+ */
2823
3134
  minWidth?: string | TableConditions<string>;
3135
+ /**
3136
+ * The backgroundColor property sets the background color of the table.
3137
+ */
2824
3138
  backgroundColor?: TableRowBackgroundColorProperties | TableConditions<TableRowBackgroundColorProperties>;
3139
+ /**
3140
+ * The padding properties are used to generate space around an table's content area.
3141
+ */
3142
+ padding?: TablePaddingProperties | TableConditions<TablePaddingProperties>;
2825
3143
  }
2826
3144
  export declare const table: {
2827
3145
  sprinkle: import("rainbow-sprinkles/dist/declarations/src/createRuntimeFn").SprinklesFn<[