@genesislcap/foundation-zero 15.16.1-alpha-c7adcde.0 → 15.17.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.
@@ -41112,8 +41112,9 @@
41112
41112
  "type": {
41113
41113
  "text": "boolean"
41114
41114
  },
41115
- "description": "When true, the control will be immutable by user interaction. See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled | disabled HTML attribute for more information.",
41116
- "fieldName": "disabled",
41115
+ "description": "Draws sustained attention to the tab while background work is pending, for example\nwhile a grid behind an inactive tab still holds rows awaiting action.\n\nThe design system supplies the visuals, retintable per app with `--tab-alert-color`. The flash\nsamples a shared document-level clock, so every alerting surface — including grid rows — stays\nin phase; retime them all together with `--alert-flash-duration` on `:root`. Motion is\nsuppressed under `prefers-reduced-motion`, which shows a static alert colour instead.",
41116
+ "fieldName": "alert",
41117
+ "default": "false",
41117
41118
  "inheritedFrom": {
41118
41119
  "name": "Tab",
41119
41120
  "module": "src/tab/tab.ts"
@@ -41121,6 +41122,34 @@
41121
41122
  }
41122
41123
  ],
41123
41124
  "members": [
41125
+ {
41126
+ "kind": "field",
41127
+ "name": "alert",
41128
+ "type": {
41129
+ "text": "boolean"
41130
+ },
41131
+ "default": "false",
41132
+ "description": "Draws sustained attention to the tab while background work is pending, for example\nwhile a grid behind an inactive tab still holds rows awaiting action.\n\nThe design system supplies the visuals, retintable per app with `--tab-alert-color`. The flash\nsamples a shared document-level clock, so every alerting surface — including grid rows — stays\nin phase; retime them all together with `--alert-flash-duration` on `:root`. Motion is\nsuppressed under `prefers-reduced-motion`, which shows a static alert colour instead.",
41133
+ "privacy": "public",
41134
+ "inheritedFrom": {
41135
+ "name": "Tab",
41136
+ "module": "src/tab/tab.ts"
41137
+ }
41138
+ },
41139
+ {
41140
+ "kind": "method",
41141
+ "name": "alertChanged",
41142
+ "privacy": "protected",
41143
+ "return": {
41144
+ "type": {
41145
+ "text": "void"
41146
+ }
41147
+ },
41148
+ "inheritedFrom": {
41149
+ "name": "Tab",
41150
+ "module": "src/tab/tab.ts"
41151
+ }
41152
+ },
41124
41153
  {
41125
41154
  "kind": "field",
41126
41155
  "name": "disabled",
@@ -1 +1 @@
1
- {"version":3,"file":"tab.styles.d.ts","sourceRoot":"","sources":["../../../src/tab/tab.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,4BAA4B,CAAC;AAGpC,eAAO,MAAM,aAAa,GACxB,SAAS,wBAAwB,EACjC,YAAY,2BAA2B,KACtC,aAuBF,CAAC"}
1
+ {"version":3,"file":"tab.styles.d.ts","sourceRoot":"","sources":["../../../src/tab/tab.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,4BAA4B,CAAC;AAGpC,eAAO,MAAM,aAAa,GACxB,SAAS,wBAAwB,EACjC,YAAY,2BAA2B,KACtC,aAwDF,CAAC"}
@@ -1,4 +1,4 @@
1
- import { foundationTabStyles } from '@genesislcap/foundation-ui';
1
+ import { alertFlashPhaseProperty, foundationTabStyles } from '@genesislcap/foundation-ui';
2
2
  import { neutralLayer2, neutralLayer4 } from '@microsoft/fast-components';
3
3
  import { css } from '@microsoft/fast-element';
4
4
  import { ColorHEX } from '../_common';
@@ -25,4 +25,37 @@ export const zeroTabStyles = (context, definition) => css `
25
25
  margin-right: 0;
26
26
  background-color: var(--zero-card-fill-color);
27
27
  }
28
+
29
+ /*
30
+ * Sustained alert, sampling the flash phase the platform animates on the document. Every
31
+ * alerting surface reads that one value, so tabs and grid rows brighten and fade together
32
+ * however long ago each of them started alerting.
33
+ *
34
+ * Mixing towards transparent and currentColor lets the tab fade back to its own resting
35
+ * colours, so selected and unselected tabs each return to the right background.
36
+ *
37
+ * !important because a :host rule loses to any app stylesheet that colours tabs from the light
38
+ * DOM, and an alert nobody can see is worse than no alert.
39
+ */
40
+ :host([alert]) {
41
+ background-color: color-mix(
42
+ in srgb,
43
+ var(--tab-alert-color, ${ColorHEX.error}) calc(var(${alertFlashPhaseProperty}, 0) * 100%),
44
+ transparent
45
+ ) !important;
46
+ color: color-mix(
47
+ in srgb,
48
+ contrast-color(var(--tab-alert-color, ${ColorHEX.error}))
49
+ calc(var(${alertFlashPhaseProperty}, 0) * 100%),
50
+ currentColor
51
+ ) !important;
52
+ }
53
+
54
+ /* Reduced motion stops the clock, leaving the phase at 0, so paint a steady alert instead. */
55
+ @media (prefers-reduced-motion: reduce) {
56
+ :host([alert]) {
57
+ background-color: var(--tab-alert-color, ${ColorHEX.error}) !important;
58
+ color: contrast-color(var(--tab-alert-color, ${ColorHEX.error})) !important;
59
+ }
60
+ }
28
61
  `;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-zero",
3
3
  "description": "Genesis Foundation Zero Design System",
4
- "version": "15.16.1-alpha-c7adcde.0",
4
+ "version": "15.17.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -73,18 +73,18 @@
73
73
  },
74
74
  "devDependencies": {
75
75
  "@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
76
- "@genesislcap/genx": "15.16.1-alpha-c7adcde.0",
77
- "@genesislcap/rollup-builder": "15.16.1-alpha-c7adcde.0",
78
- "@genesislcap/ts-builder": "15.16.1-alpha-c7adcde.0",
79
- "@genesislcap/uvu-playwright-builder": "15.16.1-alpha-c7adcde.0",
80
- "@genesislcap/vite-builder": "15.16.1-alpha-c7adcde.0",
81
- "@genesislcap/webpack-builder": "15.16.1-alpha-c7adcde.0"
76
+ "@genesislcap/genx": "15.17.1",
77
+ "@genesislcap/rollup-builder": "15.17.1",
78
+ "@genesislcap/ts-builder": "15.17.1",
79
+ "@genesislcap/uvu-playwright-builder": "15.17.1",
80
+ "@genesislcap/vite-builder": "15.17.1",
81
+ "@genesislcap/webpack-builder": "15.17.1"
82
82
  },
83
83
  "dependencies": {
84
- "@genesislcap/foundation-comms": "15.16.1-alpha-c7adcde.0",
85
- "@genesislcap/foundation-logger": "15.16.1-alpha-c7adcde.0",
86
- "@genesislcap/foundation-ui": "15.16.1-alpha-c7adcde.0",
87
- "@genesislcap/foundation-utils": "15.16.1-alpha-c7adcde.0",
84
+ "@genesislcap/foundation-comms": "15.17.1",
85
+ "@genesislcap/foundation-logger": "15.17.1",
86
+ "@genesislcap/foundation-ui": "15.17.1",
87
+ "@genesislcap/foundation-utils": "15.17.1",
88
88
  "@microsoft/fast-colors": "5.3.1",
89
89
  "@microsoft/fast-components": "2.30.6",
90
90
  "@microsoft/fast-element": "1.14.0",
@@ -111,5 +111,5 @@
111
111
  "require": "./dist/react.cjs"
112
112
  }
113
113
  },
114
- "gitHead": "b1ba27c22d12ecef45fd221039b016fd3ea62ba7"
114
+ "gitHead": "59a30fc5ff0900ae557f20018e796f82322394e2"
115
115
  }