@nimbus-ds/styles 9.13.1 → 9.14.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
@@ -36,7 +36,7 @@ export type JustifyContent = "flex-start" | "flex-end" | "center" | "space-betwe
36
36
  export type AlignItems = "stretch" | "flex-start" | "flex-end" | "center" | "baseline";
37
37
  export type AlignSelf = "auto" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch";
38
38
  export type TextAlign = "left" | "right" | "center" | "justify";
39
- export type TextDecoration = "none" | "underline";
39
+ export type TextDecoration = "none" | "underline" | "line-through";
40
40
  export type Position = "absolute" | "fixed" | "relative" | "static" | "sticky";
41
41
  export type Overflow = "visible" | "hidden" | "scroll" | "auto";
42
42
  export type PointerEvents = "auto" | "none" | "visiblePainted" | "visibleFill" | "visibleStroke" | "visible" | "painted" | "fill" | "stroke" | "all" | "inherit";
@@ -169,7 +169,10 @@ declare const propertiesBox: {
169
169
  transparent: string;
170
170
  };
171
171
  borderRadius: {
172
- "0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
172
+ "0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
173
+ * 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.
174
+ * In Grid Layout, it controls the alignment of items on the Block Axis within their grid area.
175
+ */
173
176
  "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
174
177
  "2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
175
178
  "3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
@@ -177,6 +180,10 @@ declare const propertiesBox: {
177
180
  "5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
178
181
  "6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
179
182
  full: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
183
+ /**
184
+ * The alignSelf property overrides a grid or flex item's align-items value. In Grid, it aligns the item inside the grid area.
185
+ * In Flexbox, it aligns the item on the cross axis.
186
+ */
180
187
  base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
181
188
  half: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
182
189
  none: string;
@@ -269,9 +276,7 @@ declare const propertiesBox: {
269
276
  "400": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
270
277
  "500": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
271
278
  "600": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
272
- "700": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
273
- * The pointerEvents property sets under what circumstances (if any) a particular graphic element can become the target of pointer events.
274
- */
279
+ "700": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
275
280
  "800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
276
281
  "900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
277
282
  };
@@ -1145,6 +1150,10 @@ export declare const box: {
1145
1150
  default: string;
1146
1151
  conditions: Record<"xs" | "md" | "lg" | "xl" | "focus" | "active" | "disabled" | "hover" | "focusWithin", string>;
1147
1152
  };
1153
+ "line-through": {
1154
+ default: string;
1155
+ conditions: Record<"xs" | "md" | "lg" | "xl" | "focus" | "active" | "disabled" | "hover" | "focusWithin", string>;
1156
+ };
1148
1157
  underline: {
1149
1158
  default: string;
1150
1159
  conditions: Record<"xs" | "md" | "lg" | "xl" | "focus" | "active" | "disabled" | "hover" | "focusWithin", string>;
@@ -3123,7 +3132,10 @@ export declare const tag: {
3123
3132
  declare const propertiesText: {
3124
3133
  color: {
3125
3134
  currentColor: string;
3126
- "primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3135
+ "primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
3136
+ * The color property is used to set the color of the text.
3137
+ * @default neutral-textLow
3138
+ */
3127
3139
  "primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3128
3140
  "primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3129
3141
  "primary-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
@@ -3134,7 +3146,9 @@ declare const propertiesText: {
3134
3146
  "warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3135
3147
  "warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3136
3148
  "warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3137
- "warning-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3149
+ "warning-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
3150
+ * The textDecoration shorthand property sets the appearance of decorative lines on text.
3151
+ */
3138
3152
  "danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3139
3153
  "danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3140
3154
  "danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
@@ -3163,6 +3177,7 @@ declare const propertiesText: {
3163
3177
  highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3164
3178
  };
3165
3179
  wordBreak: WordBreak[];
3180
+ textDecoration: TextDecoration[];
3166
3181
  };
3167
3182
  export type TextColorProperties = keyof typeof propertiesText.color;
3168
3183
  export type TextFontSizeProperties = keyof typeof propertiesText.fontSize;
@@ -3207,6 +3222,10 @@ export interface TextSprinkle {
3207
3222
  * The amount of lines at which the text will be trimmed, showing an ellipsis when overflowed.
3208
3223
  */
3209
3224
  wordBreak?: WordBreak | TextConditions<WordBreak>;
3225
+ /**
3226
+ * The textDecoration shorthand property sets the appearance of decorative lines on text.
3227
+ */
3228
+ textDecoration?: TextDecoration | TextConditions<TextDecoration>;
3210
3229
  }
3211
3230
  export declare const text: {
3212
3231
  sprinkle: import("rainbow-sprinkles/dist/declarations/src/createRuntimeFn").SprinklesFn<[
@@ -3444,6 +3463,24 @@ export declare const text: {
3444
3463
  staticScale: WordBreak[];
3445
3464
  name: "wordBreak";
3446
3465
  };
3466
+ textDecoration: {
3467
+ values: {
3468
+ none: {
3469
+ default: string;
3470
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
3471
+ };
3472
+ "line-through": {
3473
+ default: string;
3474
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
3475
+ };
3476
+ underline: {
3477
+ default: string;
3478
+ conditions: Record<"xs" | "md" | "lg" | "xl", string>;
3479
+ };
3480
+ };
3481
+ staticScale: TextDecoration[];
3482
+ name: "textDecoration";
3483
+ };
3447
3484
  };
3448
3485
  } & {
3449
3486
  config: {
@@ -3475,7 +3512,7 @@ export declare const text: {
3475
3512
  } & {
3476
3513
  config: {
3477
3514
  [x: string]: {
3478
- mappings: ("fontSize" | "fontWeight" | "color" | "lineHeight" | "textAlign" | "wordBreak" | "lineClamp" | "WebkitLineClamp")[];
3515
+ mappings: ("fontSize" | "fontWeight" | "color" | "lineHeight" | "textAlign" | "wordBreak" | "lineClamp" | "textDecoration" | "WebkitLineClamp")[];
3479
3516
  };
3480
3517
  };
3481
3518
  }
@@ -3523,6 +3560,7 @@ export declare const text: {
3523
3560
  highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3524
3561
  };
3525
3562
  wordBreak: WordBreak[];
3563
+ textDecoration: TextDecoration[];
3526
3564
  };
3527
3565
  classnames: {
3528
3566
  base: string;
@@ -4319,6 +4357,7 @@ export declare const thumbnail: {
4319
4357
  container__image: string;
4320
4358
  container__placeholder: string;
4321
4359
  skeleton: string;
4360
+ width: string;
4322
4361
  };
4323
4362
  };
4324
4363
  export declare const textarea: {