@mediaradar/design-tokens 2.6.1 → 2.7.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/dist/DESIGN.md CHANGED
@@ -374,4 +374,5 @@ Tailwind: `z-{key}`
374
374
  | --- | --- |
375
375
  | dropdown | 1000 |
376
376
  | modal | 1100 |
377
+ | toast | 1150 |
377
378
  | tooltip | 1200 |
package/dist/css/ref.css CHANGED
@@ -356,5 +356,6 @@
356
356
  --mr-ref-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
357
357
  --mr-ref-z-dropdown: 1000;
358
358
  --mr-ref-z-modal: 1100;
359
+ --mr-ref-z-toast: 1150;
359
360
  --mr-ref-z-tooltip: 1200;
360
361
  }
package/dist/css/sys.css CHANGED
@@ -67,6 +67,7 @@
67
67
  --mr-opacity-disabled: var(--mr-ref-opacity-disabled);
68
68
  --mr-z-dropdown: var(--mr-ref-z-dropdown);
69
69
  --mr-z-modal: var(--mr-ref-z-modal);
70
+ --mr-z-toast: var(--mr-ref-z-toast);
70
71
  --mr-z-tooltip: var(--mr-ref-z-tooltip);
71
72
  --mr-text-style-heading-1-font-size: var(--mr-typography-font-size-h1);
72
73
  --mr-text-style-heading-1-font-weight: var(--mr-ref-typography-weight-semibold);
@@ -440,6 +440,8 @@ export const mrRefMotionDurationSlow: number;
440
440
  export const mrRefMotionEasingStandard: string;
441
441
  export const mrRefZDropdown: number;
442
442
  export const mrRefZModal: number;
443
+ /** Above modal, below tooltip. A toast reporting on something that happened in a modal has to be visible over it; a tooltip on the toast's own action button has to sit above the toast. Added because the product had four different hand-picked z values for the same object, so which message won was an accident of which screen you were on. */
444
+ export const mrRefZToast: number;
443
445
  export const mrRefZTooltip: number;
444
446
  export const mrColorCanvas: string;
445
447
  export const mrColorSurface: string;
@@ -509,6 +511,7 @@ export const mrMotionEasingInteractive: string;
509
511
  export const mrOpacityDisabled: number;
510
512
  export const mrZDropdown: number;
511
513
  export const mrZModal: number;
514
+ export const mrZToast: number;
512
515
  export const mrZTooltip: number;
513
516
  export const mrTextStyleHeading_1FontSize: number;
514
517
  export const mrTextStyleHeading_1FontWeight: number;
package/dist/js/tokens.js CHANGED
@@ -445,6 +445,7 @@ export const mrRefMotionDurationSlow = 320;
445
445
  export const mrRefMotionEasingStandard = "cubic-bezier(0.2, 0, 0, 1)";
446
446
  export const mrRefZDropdown = 1000;
447
447
  export const mrRefZModal = 1100;
448
+ export const mrRefZToast = 1150; // Above modal, below tooltip. A toast reporting on something that happened in a modal has to be visible over it; a tooltip on the toast's own action button has to sit above the toast. Added because the product had four different hand-picked z values for the same object, so which message won was an accident of which screen you were on.
448
449
  export const mrRefZTooltip = 1200;
449
450
  export const mrColorCanvas = "#f4f2ee";
450
451
  export const mrColorSurface = "#fbfaf7";
@@ -517,6 +518,7 @@ export const mrMotionEasingInteractive = "cubic-bezier(0.2, 0, 0, 1)";
517
518
  export const mrOpacityDisabled = 0.4;
518
519
  export const mrZDropdown = 1000;
519
520
  export const mrZModal = 1100;
521
+ export const mrZToast = 1150;
520
522
  export const mrZTooltip = 1200;
521
523
  export const mrTextStyleHeading_1FontSize = 1.875;
522
524
  export const mrTextStyleHeading_1FontWeight = 600;
@@ -114,5 +114,6 @@
114
114
  --opacity-disabled: var(--mr-opacity-disabled);
115
115
  --z-index-dropdown: var(--mr-z-dropdown);
116
116
  --z-index-modal: var(--mr-z-modal);
117
+ --z-index-toast: var(--mr-z-toast);
117
118
  --z-index-tooltip: var(--mr-z-tooltip);
118
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediaradar/design-tokens",
3
- "version": "2.6.1",
3
+ "version": "2.7.0",
4
4
  "main": "dist/js/tokens.js",
5
5
  "types": "dist/js/tokens.d.ts",
6
6
  "type": "module",