@genesislcap/rapid-design-system 15.16.0 → 15.17.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.
@@ -804,6 +804,86 @@
804
804
  }
805
805
  ]
806
806
  },
807
+ {
808
+ "kind": "javascript-module",
809
+ "path": "src/_config/configure.ts",
810
+ "declarations": [
811
+ {
812
+ "kind": "function",
813
+ "name": "configureRapidDesignSystem",
814
+ "return": {
815
+ "type": {
816
+ "text": "void"
817
+ }
818
+ },
819
+ "parameters": [
820
+ {
821
+ "name": "provider",
822
+ "type": {
823
+ "text": "HTMLElement"
824
+ }
825
+ },
826
+ {
827
+ "name": "config",
828
+ "type": {
829
+ "text": "Partial<DesignTokensConfig>"
830
+ }
831
+ }
832
+ ],
833
+ "description": "Extends configureDesignSystem with support for the `secondary`, `tertiary`, `error`,\n`success`, and `warning` color palettes.\n\nPass any of these entries under `design_tokens.color` in your config to override the defaults.\nOmitting any of them is safe — existing apps are unaffected and each token falls back to its\nbuilt-in default.",
834
+ "privacy": "public"
835
+ }
836
+ ],
837
+ "exports": [
838
+ {
839
+ "kind": "js",
840
+ "name": "configureRapidDesignSystem",
841
+ "declaration": {
842
+ "name": "configureRapidDesignSystem",
843
+ "module": "src/_config/configure.ts"
844
+ }
845
+ }
846
+ ]
847
+ },
848
+ {
849
+ "kind": "javascript-module",
850
+ "path": "src/_config/index.ts",
851
+ "declarations": [],
852
+ "exports": [
853
+ {
854
+ "kind": "js",
855
+ "name": "*",
856
+ "declaration": {
857
+ "name": "*",
858
+ "package": "./configure"
859
+ }
860
+ },
861
+ {
862
+ "kind": "js",
863
+ "name": "*",
864
+ "declaration": {
865
+ "name": "*",
866
+ "package": "./styles"
867
+ }
868
+ },
869
+ {
870
+ "kind": "js",
871
+ "name": "*",
872
+ "declaration": {
873
+ "name": "*",
874
+ "package": "./tokens"
875
+ }
876
+ },
877
+ {
878
+ "kind": "js",
879
+ "name": "*",
880
+ "declaration": {
881
+ "name": "*",
882
+ "package": "./values"
883
+ }
884
+ }
885
+ ]
886
+ },
807
887
  {
808
888
  "kind": "javascript-module",
809
889
  "path": "src/accordion/accordion.styles.ts",
@@ -952,86 +1032,6 @@
952
1032
  }
953
1033
  ]
954
1034
  },
955
- {
956
- "kind": "javascript-module",
957
- "path": "src/_config/configure.ts",
958
- "declarations": [
959
- {
960
- "kind": "function",
961
- "name": "configureRapidDesignSystem",
962
- "return": {
963
- "type": {
964
- "text": "void"
965
- }
966
- },
967
- "parameters": [
968
- {
969
- "name": "provider",
970
- "type": {
971
- "text": "HTMLElement"
972
- }
973
- },
974
- {
975
- "name": "config",
976
- "type": {
977
- "text": "Partial<DesignTokensConfig>"
978
- }
979
- }
980
- ],
981
- "description": "Extends configureDesignSystem with support for the `secondary`, `tertiary`, `error`,\n`success`, and `warning` color palettes.\n\nPass any of these entries under `design_tokens.color` in your config to override the defaults.\nOmitting any of them is safe — existing apps are unaffected and each token falls back to its\nbuilt-in default.",
982
- "privacy": "public"
983
- }
984
- ],
985
- "exports": [
986
- {
987
- "kind": "js",
988
- "name": "configureRapidDesignSystem",
989
- "declaration": {
990
- "name": "configureRapidDesignSystem",
991
- "module": "src/_config/configure.ts"
992
- }
993
- }
994
- ]
995
- },
996
- {
997
- "kind": "javascript-module",
998
- "path": "src/_config/index.ts",
999
- "declarations": [],
1000
- "exports": [
1001
- {
1002
- "kind": "js",
1003
- "name": "*",
1004
- "declaration": {
1005
- "name": "*",
1006
- "package": "./configure"
1007
- }
1008
- },
1009
- {
1010
- "kind": "js",
1011
- "name": "*",
1012
- "declaration": {
1013
- "name": "*",
1014
- "package": "./styles"
1015
- }
1016
- },
1017
- {
1018
- "kind": "js",
1019
- "name": "*",
1020
- "declaration": {
1021
- "name": "*",
1022
- "package": "./tokens"
1023
- }
1024
- },
1025
- {
1026
- "kind": "js",
1027
- "name": "*",
1028
- "declaration": {
1029
- "name": "*",
1030
- "package": "./values"
1031
- }
1032
- }
1033
- ]
1034
- },
1035
1035
  {
1036
1036
  "kind": "javascript-module",
1037
1037
  "path": "src/accordion-item/accordion-item.styles.ts",
@@ -38060,8 +38060,9 @@
38060
38060
  "type": {
38061
38061
  "text": "boolean"
38062
38062
  },
38063
- "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.",
38064
- "fieldName": "disabled",
38063
+ "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.",
38064
+ "fieldName": "alert",
38065
+ "default": "false",
38065
38066
  "inheritedFrom": {
38066
38067
  "name": "Tab",
38067
38068
  "module": "src/tab/tab.ts"
@@ -38069,6 +38070,34 @@
38069
38070
  }
38070
38071
  ],
38071
38072
  "members": [
38073
+ {
38074
+ "kind": "field",
38075
+ "name": "alert",
38076
+ "type": {
38077
+ "text": "boolean"
38078
+ },
38079
+ "default": "false",
38080
+ "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.",
38081
+ "privacy": "public",
38082
+ "inheritedFrom": {
38083
+ "name": "Tab",
38084
+ "module": "src/tab/tab.ts"
38085
+ }
38086
+ },
38087
+ {
38088
+ "kind": "method",
38089
+ "name": "alertChanged",
38090
+ "privacy": "protected",
38091
+ "return": {
38092
+ "type": {
38093
+ "text": "void"
38094
+ }
38095
+ },
38096
+ "inheritedFrom": {
38097
+ "name": "Tab",
38098
+ "module": "src/tab/tab.ts"
38099
+ }
38100
+ },
38072
38101
  {
38073
38102
  "kind": "field",
38074
38103
  "name": "disabled",
@@ -1 +1 @@
1
- {"version":3,"file":"tab.styles.d.ts","sourceRoot":"","sources":["../../../src/tab/tab.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,cAAc,GACzB,SAAS,wBAAwB,EACjC,YAAY,2BAA2B,KACtC,aAiBF,CAAC"}
1
+ {"version":3,"file":"tab.styles.d.ts","sourceRoot":"","sources":["../../../src/tab/tab.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,cAAc,GACzB,SAAS,wBAAwB,EACjC,YAAY,2BAA2B,KACtC,aAkDF,CAAC"}
@@ -1,4 +1,4 @@
1
- import { foundationTabStyles } from '@genesislcap/foundation-ui';
1
+ import { alertFlashPhaseProperty, foundationTabStyles } from '@genesislcap/foundation-ui';
2
2
  import { css } from '@microsoft/fast-element';
3
3
  export const rapidTabStyles = (context, definition) => css `
4
4
  ${foundationTabStyles(context, definition)}
@@ -17,4 +17,37 @@ export const rapidTabStyles = (context, definition) => css `
17
17
  background-color: var(--neutral-layer-4);
18
18
  font-weight: 700;
19
19
  }
20
+
21
+ /*
22
+ * Sustained alert, sampling the flash phase the platform animates on the document. Every
23
+ * alerting surface reads that one value, so tabs and grid rows brighten and fade together
24
+ * however long ago each of them started alerting.
25
+ *
26
+ * Mixing towards transparent and currentColor lets the tab fade back to its own resting
27
+ * colours, so selected and unselected tabs each return to the right background.
28
+ *
29
+ * !important because a :host rule loses to any app stylesheet that colours tabs from the light
30
+ * DOM, and an alert nobody can see is worse than no alert.
31
+ */
32
+ :host([alert]) {
33
+ background-color: color-mix(
34
+ in srgb,
35
+ var(--tab-alert-color, var(--error-fill-rest)) calc(var(${alertFlashPhaseProperty}, 0) * 100%),
36
+ transparent
37
+ ) !important;
38
+ color: color-mix(
39
+ in srgb,
40
+ contrast-color(var(--tab-alert-color, var(--error-fill-rest)))
41
+ calc(var(${alertFlashPhaseProperty}, 0) * 100%),
42
+ currentColor
43
+ ) !important;
44
+ }
45
+
46
+ /* Reduced motion stops the clock, leaving the phase at 0, so paint a steady alert instead. */
47
+ @media (prefers-reduced-motion: reduce) {
48
+ :host([alert]) {
49
+ background-color: var(--tab-alert-color, var(--error-fill-rest)) !important;
50
+ color: contrast-color(var(--tab-alert-color, var(--error-fill-rest))) !important;
51
+ }
52
+ }
20
53
  `;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/rapid-design-system",
3
3
  "description": "Rapid Design System",
4
- "version": "15.16.0",
4
+ "version": "15.17.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -38,13 +38,13 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
41
- "@genesislcap/foundation-testing": "15.16.0",
42
- "@genesislcap/genx": "15.16.0",
43
- "@genesislcap/rollup-builder": "15.16.0",
44
- "@genesislcap/ts-builder": "15.16.0",
45
- "@genesislcap/uvu-playwright-builder": "15.16.0",
46
- "@genesislcap/vite-builder": "15.16.0",
47
- "@genesislcap/webpack-builder": "15.16.0",
41
+ "@genesislcap/foundation-testing": "15.17.0",
42
+ "@genesislcap/genx": "15.17.0",
43
+ "@genesislcap/rollup-builder": "15.17.0",
44
+ "@genesislcap/ts-builder": "15.17.0",
45
+ "@genesislcap/uvu-playwright-builder": "15.17.0",
46
+ "@genesislcap/vite-builder": "15.17.0",
47
+ "@genesislcap/webpack-builder": "15.17.0",
48
48
  "flexlayout-react": "^0.8.19"
49
49
  },
50
50
  "peerDependencies": {
@@ -56,9 +56,9 @@
56
56
  }
57
57
  },
58
58
  "dependencies": {
59
- "@genesislcap/foundation-logger": "15.16.0",
60
- "@genesislcap/foundation-ui": "15.16.0",
61
- "@genesislcap/foundation-utils": "15.16.0",
59
+ "@genesislcap/foundation-logger": "15.17.0",
60
+ "@genesislcap/foundation-ui": "15.17.0",
61
+ "@genesislcap/foundation-utils": "15.17.0",
62
62
  "@microsoft/fast-colors": "5.3.1",
63
63
  "@microsoft/fast-components": "2.30.6",
64
64
  "@microsoft/fast-element": "1.14.0",
@@ -94,5 +94,5 @@
94
94
  "require": "./dist/react.cjs"
95
95
  }
96
96
  },
97
- "gitHead": "2cacfdef54a332ee571ae784b5b7629cf66f050f"
97
+ "gitHead": "2e040c4861f6acfde7afef48b60555548fac8708"
98
98
  }