@iress-oss/ids-components 6.0.0-alpha.28 → 6.0.0-alpha.29

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.
@@ -6,11 +6,11 @@ export interface IressPillProps extends IressStyledProps<'span'> {
6
6
  */
7
7
  children?: ReactNode;
8
8
  /**
9
- * Style of the badge, based on the data colour palette.
10
- * Can be a number (10-90) or a string ('10'-'90').
9
+ * Style of the badge, based on the data colour palette (10-90) or system status colours (danger, info, success, warning).
10
+ * Can be a number (10-90), a string ('10'-'90'), or a system status ('danger', 'info', 'success', 'warning').
11
11
  * @default '90'
12
12
  */
13
- mode?: 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | '10' | '20' | '30' | '40' | '50' | '60' | '70' | '80' | '90';
13
+ mode?: 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | '10' | '20' | '30' | '40' | '50' | '60' | '70' | '80' | '90' | 'danger' | 'info' | 'success' | 'warning';
14
14
  }
15
15
  export declare const IressPill: {
16
16
  ({ children, mode, className, ...restProps }: IressPillProps): import("react/jsx-runtime").JSX.Element;
@@ -36,5 +36,21 @@ export declare const pill: import('../../styled-system/types').RecipeRuntimeFn<{
36
36
  bg: "colour.data.bold.90";
37
37
  color: "colour.data.subtle.90";
38
38
  };
39
+ danger: {
40
+ bg: "colour.system.danger.fill";
41
+ color: "colour.system.danger.onFill";
42
+ };
43
+ info: {
44
+ bg: "colour.system.info.fill";
45
+ color: "colour.system.info.onFill";
46
+ };
47
+ success: {
48
+ bg: "colour.system.success.fill";
49
+ color: "colour.system.success.onFill";
50
+ };
51
+ warning: {
52
+ bg: "colour.system.warning.fill";
53
+ color: "colour.system.warning.onFill";
54
+ };
39
55
  };
40
56
  }>;
@@ -14,7 +14,8 @@ const a = o({
14
14
  textDecoration: "none",
15
15
  minHeight: "[1.35em]",
16
16
  minWidth: "[1.5em]",
17
- p: "spacing.1",
17
+ py: "spacing.1",
18
+ px: "spacing.2",
18
19
  verticalAlign: "middle"
19
20
  },
20
21
  variants: {
@@ -54,6 +55,22 @@ const a = o({
54
55
  90: {
55
56
  bg: "colour.data.bold.90",
56
57
  color: "colour.data.subtle.90"
58
+ },
59
+ danger: {
60
+ bg: "colour.system.danger.fill",
61
+ color: "colour.system.danger.onFill"
62
+ },
63
+ info: {
64
+ bg: "colour.system.info.fill",
65
+ color: "colour.system.info.onFill"
66
+ },
67
+ success: {
68
+ bg: "colour.system.success.fill",
69
+ color: "colour.system.success.onFill"
70
+ },
71
+ warning: {
72
+ bg: "colour.system.warning.fill",
73
+ color: "colour.system.warning.onFill"
57
74
  }
58
75
  }
59
76
  },
@@ -2331,10 +2331,6 @@ const k = `@layer reset, base, tokens, recipes, utilities;
2331
2331
  padding: var(--spacing-lg);
2332
2332
  }
2333
2333
 
2334
- .p_spacing\\.1 {
2335
- padding: var(--spacing-spacing\\.1);
2336
- }
2337
-
2338
2334
  .bg_colour\\.data\\.bold\\.10 {
2339
2335
  background: var(--colors-colour\\.data\\.bold\\.10);
2340
2336
  }
@@ -2371,6 +2367,14 @@ const k = `@layer reset, base, tokens, recipes, utilities;
2371
2367
  background: var(--colors-colour\\.data\\.bold\\.90);
2372
2368
  }
2373
2369
 
2370
+ .bg_colour\\.system\\.info\\.fill {
2371
+ background: var(--colors-colour\\.system\\.info\\.fill);
2372
+ }
2373
+
2374
+ .bg_colour\\.system\\.warning\\.fill {
2375
+ background: var(--colors-colour\\.system\\.warning\\.fill);
2376
+ }
2377
+
2374
2378
  .bg_colour\\.data\\.subtle\\.50 {
2375
2379
  background: var(--colors-colour\\.data\\.subtle\\.50);
2376
2380
  }
@@ -2415,6 +2419,10 @@ const k = `@layer reset, base, tokens, recipes, utilities;
2415
2419
  padding: var(--spacing-spacing\\.5);
2416
2420
  }
2417
2421
 
2422
+ .p_spacing\\.1 {
2423
+ padding: var(--spacing-spacing\\.1);
2424
+ }
2425
+
2418
2426
  .bg_colour\\.data\\.subtle\\.10 {
2419
2427
  background: var(--colors-colour\\.data\\.subtle\\.10);
2420
2428
  }
@@ -2703,10 +2711,6 @@ const k = `@layer reset, base, tokens, recipes, utilities;
2703
2711
  background: var(--colors-colour\\.system\\.danger\\.text);
2704
2712
  }
2705
2713
 
2706
- .bg_colour\\.system\\.warning\\.fill {
2707
- background: var(--colors-colour\\.system\\.warning\\.fill);
2708
- }
2709
-
2710
2714
  .bg_colour\\.system\\.warning\\.onFill {
2711
2715
  background: var(--colors-colour\\.system\\.warning\\.on-fill);
2712
2716
  }
@@ -2723,10 +2727,6 @@ const k = `@layer reset, base, tokens, recipes, utilities;
2723
2727
  background: var(--colors-colour\\.system\\.warning\\.surface-hover);
2724
2728
  }
2725
2729
 
2726
- .bg_colour\\.system\\.info\\.fill {
2727
- background: var(--colors-colour\\.system\\.info\\.fill);
2728
- }
2729
-
2730
2730
  .bg_colour\\.system\\.info\\.onFill {
2731
2731
  background: var(--colors-colour\\.system\\.info\\.on-fill);
2732
2732
  }
@@ -4432,6 +4432,14 @@ const k = `@layer reset, base, tokens, recipes, utilities;
4432
4432
  color: var(--colors-colour\\.data\\.subtle\\.90);
4433
4433
  }
4434
4434
 
4435
+ .c_colour\\.system\\.info\\.onFill {
4436
+ color: var(--colors-colour\\.system\\.info\\.on-fill);
4437
+ }
4438
+
4439
+ .c_colour\\.system\\.warning\\.onFill {
4440
+ color: var(--colors-colour\\.system\\.warning\\.on-fill);
4441
+ }
4442
+
4435
4443
  .c_colour\\.data\\.bold\\.50 {
4436
4444
  color: var(--colors-colour\\.data\\.bold\\.50);
4437
4445
  }
@@ -5344,10 +5352,6 @@ const k = `@layer reset, base, tokens, recipes, utilities;
5344
5352
  color: var(--colors-colour\\.system\\.warning\\.fill);
5345
5353
  }
5346
5354
 
5347
- .c_colour\\.system\\.warning\\.onFill {
5348
- color: var(--colors-colour\\.system\\.warning\\.on-fill);
5349
- }
5350
-
5351
5355
  .c_colour\\.system\\.warning\\.fillHover {
5352
5356
  color: var(--colors-colour\\.system\\.warning\\.fill-hover);
5353
5357
  }
@@ -5364,10 +5368,6 @@ const k = `@layer reset, base, tokens, recipes, utilities;
5364
5368
  color: var(--colors-colour\\.system\\.info\\.fill);
5365
5369
  }
5366
5370
 
5367
- .c_colour\\.system\\.info\\.onFill {
5368
- color: var(--colors-colour\\.system\\.info\\.on-fill);
5369
- }
5370
-
5371
5371
  .c_colour\\.system\\.info\\.fillHover {
5372
5372
  color: var(--colors-colour\\.system\\.info\\.fill-hover);
5373
5373
  }