@genesislcap/foundation-ui 15.15.1 → 15.15.2-FUI-2564.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/custom-elements.json +1694 -1602
- package/dist/dts/_common/alert-flash-clock.d.ts +31 -0
- package/dist/dts/_common/alert-flash-clock.d.ts.map +1 -0
- package/dist/dts/_common/index.d.ts +1 -0
- package/dist/dts/_common/index.d.ts.map +1 -1
- package/dist/dts/react.d.ts +26 -26
- package/dist/dts/tab/tab.d.ts +13 -0
- package/dist/dts/tab/tab.d.ts.map +1 -1
- package/dist/esm/_common/alert-flash-clock.js +72 -0
- package/dist/esm/_common/index.js +1 -0
- package/dist/esm/tab/tab.js +26 -0
- package/dist/foundation-ui.api.json +145 -1
- package/dist/foundation-ui.d.ts +46 -0
- package/dist/react.cjs +17 -17
- package/dist/react.mjs +14 -14
- package/package.json +19 -19
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom property carrying the shared alert flash phase, ramping 0 → 1 → 0.
|
|
3
|
+
*
|
|
4
|
+
* Alerting surfaces sample this rather than running animations of their own, because independent
|
|
5
|
+
* CSS animations start whenever their element started and drift apart. Registered as an
|
|
6
|
+
* inheritable `<number>` on the document, so it reaches into shadow trees — a grid row deep inside
|
|
7
|
+
* a component's shadow DOM stays in step with a tab header in the light DOM.
|
|
8
|
+
*
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export declare const alertFlashPhaseProperty = "--alert-flash-t";
|
|
12
|
+
/**
|
|
13
|
+
* Custom property setting how long one flash cycle takes. Set it on `:root` to retime every
|
|
14
|
+
* alerting surface at once.
|
|
15
|
+
*
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export declare const alertFlashDurationProperty = "--alert-flash-duration";
|
|
19
|
+
/**
|
|
20
|
+
* Starts the document-level clock that alert flashes sample.
|
|
21
|
+
*
|
|
22
|
+
* Safe to call repeatedly and from any number of components — the first call does the work. Called
|
|
23
|
+
* automatically by the components that flash, so apps only need this to start the clock earlier.
|
|
24
|
+
*
|
|
25
|
+
* Does nothing where `CSS.registerProperty` or constructable stylesheets are unavailable, which
|
|
26
|
+
* leaves alerting surfaces on their static fallback colour rather than breaking them.
|
|
27
|
+
*
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
export declare function installAlertFlashClock(): void;
|
|
31
|
+
//# sourceMappingURL=alert-flash-clock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-flash-clock.d.ts","sourceRoot":"","sources":["../../../src/_common/alert-flash-clock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,oBAAoB,CAAC;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,2BAA2B,CAAC;AAMnE;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAwC7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/_common/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/_common/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -142,24 +142,6 @@ export declare const AccordionItem: React.ForwardRefExoticComponent<
|
|
|
142
142
|
>;
|
|
143
143
|
export type AccordionItemRef = AccordionItemWC;
|
|
144
144
|
|
|
145
|
-
export declare const ActionsMenu: React.ForwardRefExoticComponent<
|
|
146
|
-
React.PropsWithChildren<
|
|
147
|
-
Omit<PublicOf<ActionsMenuWC>, 'children' | 'style'> &
|
|
148
|
-
HTMLWCProps & {
|
|
149
|
-
}
|
|
150
|
-
> & React.RefAttributes<ActionsMenuWC>
|
|
151
|
-
>;
|
|
152
|
-
export type ActionsMenuRef = ActionsMenuWC;
|
|
153
|
-
|
|
154
|
-
export declare const Accordion: React.ForwardRefExoticComponent<
|
|
155
|
-
React.PropsWithChildren<
|
|
156
|
-
Omit<PublicOf<AccordionWC>, 'children' | 'style'> &
|
|
157
|
-
HTMLWCProps & {
|
|
158
|
-
}
|
|
159
|
-
> & React.RefAttributes<AccordionWC>
|
|
160
|
-
>;
|
|
161
|
-
export type AccordionRef = AccordionWC;
|
|
162
|
-
|
|
163
145
|
export declare const AiCriteriaSearch: React.ForwardRefExoticComponent<
|
|
164
146
|
React.PropsWithChildren<
|
|
165
147
|
Omit<PublicOf<AiCriteriaSearchWC>, 'children' | 'style'> &
|
|
@@ -171,6 +153,15 @@ export declare const AiCriteriaSearch: React.ForwardRefExoticComponent<
|
|
|
171
153
|
>;
|
|
172
154
|
export type AiCriteriaSearchRef = AiCriteriaSearchWC;
|
|
173
155
|
|
|
156
|
+
export declare const ActionsMenu: React.ForwardRefExoticComponent<
|
|
157
|
+
React.PropsWithChildren<
|
|
158
|
+
Omit<PublicOf<ActionsMenuWC>, 'children' | 'style'> &
|
|
159
|
+
HTMLWCProps & {
|
|
160
|
+
}
|
|
161
|
+
> & React.RefAttributes<ActionsMenuWC>
|
|
162
|
+
>;
|
|
163
|
+
export type ActionsMenuRef = ActionsMenuWC;
|
|
164
|
+
|
|
174
165
|
export declare const AiIndicator: React.ForwardRefExoticComponent<
|
|
175
166
|
React.PropsWithChildren<
|
|
176
167
|
Omit<PublicOf<AiIndicatorWC>, 'children' | 'style'> &
|
|
@@ -180,6 +171,15 @@ export declare const AiIndicator: React.ForwardRefExoticComponent<
|
|
|
180
171
|
>;
|
|
181
172
|
export type AiIndicatorRef = AiIndicatorWC;
|
|
182
173
|
|
|
174
|
+
export declare const Accordion: React.ForwardRefExoticComponent<
|
|
175
|
+
React.PropsWithChildren<
|
|
176
|
+
Omit<PublicOf<AccordionWC>, 'children' | 'style'> &
|
|
177
|
+
HTMLWCProps & {
|
|
178
|
+
}
|
|
179
|
+
> & React.RefAttributes<AccordionWC>
|
|
180
|
+
>;
|
|
181
|
+
export type AccordionRef = AccordionWC;
|
|
182
|
+
|
|
183
183
|
export declare const Anchor: React.ForwardRefExoticComponent<
|
|
184
184
|
React.PropsWithChildren<
|
|
185
185
|
Omit<PublicOf<AnchorWC>, 'children' | 'style'> &
|
|
@@ -396,23 +396,23 @@ export declare const Divider: React.ForwardRefExoticComponent<
|
|
|
396
396
|
>;
|
|
397
397
|
export type DividerRef = DividerWC;
|
|
398
398
|
|
|
399
|
-
export declare const
|
|
399
|
+
export declare const EnvironmentIndicator: React.ForwardRefExoticComponent<
|
|
400
400
|
React.PropsWithChildren<
|
|
401
|
-
Omit<PublicOf<
|
|
401
|
+
Omit<PublicOf<EnvironmentIndicatorWC>, 'children' | 'style'> &
|
|
402
402
|
HTMLWCProps & {
|
|
403
403
|
}
|
|
404
|
-
> & React.RefAttributes<
|
|
404
|
+
> & React.RefAttributes<EnvironmentIndicatorWC>
|
|
405
405
|
>;
|
|
406
|
-
export type
|
|
406
|
+
export type EnvironmentIndicatorRef = EnvironmentIndicatorWC;
|
|
407
407
|
|
|
408
|
-
export declare const
|
|
408
|
+
export declare const DropdownMenu: React.ForwardRefExoticComponent<
|
|
409
409
|
React.PropsWithChildren<
|
|
410
|
-
Omit<PublicOf<
|
|
410
|
+
Omit<PublicOf<DropdownMenuWC>, 'children' | 'style'> &
|
|
411
411
|
HTMLWCProps & {
|
|
412
412
|
}
|
|
413
|
-
> & React.RefAttributes<
|
|
413
|
+
> & React.RefAttributes<DropdownMenuWC>
|
|
414
414
|
>;
|
|
415
|
-
export type
|
|
415
|
+
export type DropdownMenuRef = DropdownMenuWC;
|
|
416
416
|
|
|
417
417
|
export declare const ErrorBanner: React.ForwardRefExoticComponent<
|
|
418
418
|
React.PropsWithChildren<
|
package/dist/dts/tab/tab.d.ts
CHANGED
|
@@ -3,6 +3,19 @@ import { Tab as FASTTab } from '@microsoft/fast-components';
|
|
|
3
3
|
* @tagname %%prefix%%-tab
|
|
4
4
|
*/
|
|
5
5
|
export declare class Tab extends FASTTab {
|
|
6
|
+
/**
|
|
7
|
+
* Draws sustained attention to the tab while background work is pending, for example
|
|
8
|
+
* while a grid behind an inactive tab still holds rows awaiting action.
|
|
9
|
+
*
|
|
10
|
+
* The design system supplies the visuals, retintable per app with `--tab-alert-color`. The flash
|
|
11
|
+
* samples a shared document-level clock, so every alerting surface — including grid rows — stays
|
|
12
|
+
* in phase; retime them all together with `--alert-flash-duration` on `:root`. Motion is
|
|
13
|
+
* suppressed under `prefers-reduced-motion`, which shows a static alert colour instead.
|
|
14
|
+
*
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
alert: boolean;
|
|
18
|
+
protected alertChanged(): void;
|
|
6
19
|
}
|
|
7
20
|
export declare const foundationTabShadowOptions: ShadowRootInit;
|
|
8
21
|
export declare const defaultTabConfig: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../../src/tab/tab.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../../src/tab/tab.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAM5D;;GAEG;AACH,qBAAa,GAAI,SAAQ,OAAO;IAC9B;;;;;;;;;;OAUG;IACwB,KAAK,EAAE,OAAO,CAAS;IAElD,SAAS,CAAC,YAAY,IAAI,IAAI;CAK/B;AAGD,eAAO,MAAM,0BAA0B,EAAE,cAA0B,CAAC;AAEpE,eAAO,MAAM,gBAAgB,IAAK,CAAC;AAEnC;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,mTAMxB,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom property carrying the shared alert flash phase, ramping 0 → 1 → 0.
|
|
3
|
+
*
|
|
4
|
+
* Alerting surfaces sample this rather than running animations of their own, because independent
|
|
5
|
+
* CSS animations start whenever their element started and drift apart. Registered as an
|
|
6
|
+
* inheritable `<number>` on the document, so it reaches into shadow trees — a grid row deep inside
|
|
7
|
+
* a component's shadow DOM stays in step with a tab header in the light DOM.
|
|
8
|
+
*
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export const alertFlashPhaseProperty = '--alert-flash-t';
|
|
12
|
+
/**
|
|
13
|
+
* Custom property setting how long one flash cycle takes. Set it on `:root` to retime every
|
|
14
|
+
* alerting surface at once.
|
|
15
|
+
*
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export const alertFlashDurationProperty = '--alert-flash-duration';
|
|
19
|
+
const CLOCK_ANIMATION_NAME = 'alert-flash-clock';
|
|
20
|
+
let installed = false;
|
|
21
|
+
/**
|
|
22
|
+
* Starts the document-level clock that alert flashes sample.
|
|
23
|
+
*
|
|
24
|
+
* Safe to call repeatedly and from any number of components — the first call does the work. Called
|
|
25
|
+
* automatically by the components that flash, so apps only need this to start the clock earlier.
|
|
26
|
+
*
|
|
27
|
+
* Does nothing where `CSS.registerProperty` or constructable stylesheets are unavailable, which
|
|
28
|
+
* leaves alerting surfaces on their static fallback colour rather than breaking them.
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export function installAlertFlashClock() {
|
|
33
|
+
var _a;
|
|
34
|
+
if (installed || typeof document === 'undefined') {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
installed = true;
|
|
38
|
+
try {
|
|
39
|
+
// Registration must happen at document level; an @property rule inside a shadow tree is
|
|
40
|
+
// ignored, and an unregistered property cannot be animated because it has no type to
|
|
41
|
+
// interpolate.
|
|
42
|
+
CSS.registerProperty({
|
|
43
|
+
name: alertFlashPhaseProperty,
|
|
44
|
+
syntax: '<number>',
|
|
45
|
+
inherits: true,
|
|
46
|
+
initialValue: '0',
|
|
47
|
+
});
|
|
48
|
+
const sheet = new CSSStyleSheet();
|
|
49
|
+
sheet.replaceSync(`
|
|
50
|
+
@keyframes ${CLOCK_ANIMATION_NAME} {
|
|
51
|
+
0%, 100% { ${alertFlashPhaseProperty}: 0; }
|
|
52
|
+
50% { ${alertFlashPhaseProperty}: 1; }
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:root {
|
|
56
|
+
animation: ${CLOCK_ANIMATION_NAME} var(${alertFlashDurationProperty}, 1s) ease-in-out
|
|
57
|
+
infinite;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@media (prefers-reduced-motion: reduce) {
|
|
61
|
+
:root {
|
|
62
|
+
animation: none;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
`);
|
|
66
|
+
document.adoptedStyleSheets = [...((_a = document.adoptedStyleSheets) !== null && _a !== void 0 ? _a : []), sheet];
|
|
67
|
+
}
|
|
68
|
+
catch (_b) {
|
|
69
|
+
// Older engines, or a property another bundle already registered. Either way the flash falls
|
|
70
|
+
// back to its static colour, which is a degraded alert rather than a missing one.
|
|
71
|
+
}
|
|
72
|
+
}
|
package/dist/esm/tab/tab.js
CHANGED
|
@@ -1,11 +1,37 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
1
2
|
import { Tab as FASTTab } from '@microsoft/fast-components';
|
|
3
|
+
import { attr } from '@microsoft/fast-element';
|
|
4
|
+
import { installAlertFlashClock } from '../_common/alert-flash-clock';
|
|
2
5
|
import { foundationTabStyles as styles } from './tab.styles';
|
|
3
6
|
import { foundationTabTemplate as template } from './tab.template';
|
|
4
7
|
/**
|
|
5
8
|
* @tagname %%prefix%%-tab
|
|
6
9
|
*/
|
|
7
10
|
export class Tab extends FASTTab {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
/**
|
|
14
|
+
* Draws sustained attention to the tab while background work is pending, for example
|
|
15
|
+
* while a grid behind an inactive tab still holds rows awaiting action.
|
|
16
|
+
*
|
|
17
|
+
* The design system supplies the visuals, retintable per app with `--tab-alert-color`. The flash
|
|
18
|
+
* samples a shared document-level clock, so every alerting surface — including grid rows — stays
|
|
19
|
+
* in phase; retime them all together with `--alert-flash-duration` on `:root`. Motion is
|
|
20
|
+
* suppressed under `prefers-reduced-motion`, which shows a static alert colour instead.
|
|
21
|
+
*
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
this.alert = false;
|
|
25
|
+
}
|
|
26
|
+
alertChanged() {
|
|
27
|
+
if (this.alert) {
|
|
28
|
+
installAlertFlashClock();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
8
31
|
}
|
|
32
|
+
__decorate([
|
|
33
|
+
attr({ mode: 'boolean' })
|
|
34
|
+
], Tab.prototype, "alert", void 0);
|
|
9
35
|
// explicitly declaring for extensibility
|
|
10
36
|
export const foundationTabShadowOptions = undefined;
|
|
11
37
|
export const defaultTabConfig = {};
|
|
@@ -2478,6 +2478,60 @@
|
|
|
2478
2478
|
"endIndex": 2
|
|
2479
2479
|
}
|
|
2480
2480
|
},
|
|
2481
|
+
{
|
|
2482
|
+
"kind": "Variable",
|
|
2483
|
+
"canonicalReference": "@genesislcap/foundation-ui!alertFlashDurationProperty:var",
|
|
2484
|
+
"docComment": "/**\n * Custom property setting how long one flash cycle takes. Set it on `:root` to retime every alerting surface at once.\n *\n * @public\n */\n",
|
|
2485
|
+
"excerptTokens": [
|
|
2486
|
+
{
|
|
2487
|
+
"kind": "Content",
|
|
2488
|
+
"text": "alertFlashDurationProperty = "
|
|
2489
|
+
},
|
|
2490
|
+
{
|
|
2491
|
+
"kind": "Content",
|
|
2492
|
+
"text": "\"--alert-flash-duration\""
|
|
2493
|
+
}
|
|
2494
|
+
],
|
|
2495
|
+
"fileUrlPath": "src/_common/alert-flash-clock.ts",
|
|
2496
|
+
"initializerTokenRange": {
|
|
2497
|
+
"startIndex": 1,
|
|
2498
|
+
"endIndex": 2
|
|
2499
|
+
},
|
|
2500
|
+
"isReadonly": true,
|
|
2501
|
+
"releaseTag": "Public",
|
|
2502
|
+
"name": "alertFlashDurationProperty",
|
|
2503
|
+
"variableTypeTokenRange": {
|
|
2504
|
+
"startIndex": 0,
|
|
2505
|
+
"endIndex": 0
|
|
2506
|
+
}
|
|
2507
|
+
},
|
|
2508
|
+
{
|
|
2509
|
+
"kind": "Variable",
|
|
2510
|
+
"canonicalReference": "@genesislcap/foundation-ui!alertFlashPhaseProperty:var",
|
|
2511
|
+
"docComment": "/**\n * Custom property carrying the shared alert flash phase, ramping 0 → 1 → 0.\n *\n * Alerting surfaces sample this rather than running animations of their own, because independent CSS animations start whenever their element started and drift apart. Registered as an inheritable `<number>` on the document, so it reaches into shadow trees — a grid row deep inside a component's shadow DOM stays in step with a tab header in the light DOM.\n *\n * @public\n */\n",
|
|
2512
|
+
"excerptTokens": [
|
|
2513
|
+
{
|
|
2514
|
+
"kind": "Content",
|
|
2515
|
+
"text": "alertFlashPhaseProperty = "
|
|
2516
|
+
},
|
|
2517
|
+
{
|
|
2518
|
+
"kind": "Content",
|
|
2519
|
+
"text": "\"--alert-flash-t\""
|
|
2520
|
+
}
|
|
2521
|
+
],
|
|
2522
|
+
"fileUrlPath": "src/_common/alert-flash-clock.ts",
|
|
2523
|
+
"initializerTokenRange": {
|
|
2524
|
+
"startIndex": 1,
|
|
2525
|
+
"endIndex": 2
|
|
2526
|
+
},
|
|
2527
|
+
"isReadonly": true,
|
|
2528
|
+
"releaseTag": "Public",
|
|
2529
|
+
"name": "alertFlashPhaseProperty",
|
|
2530
|
+
"variableTypeTokenRange": {
|
|
2531
|
+
"startIndex": 0,
|
|
2532
|
+
"endIndex": 0
|
|
2533
|
+
}
|
|
2534
|
+
},
|
|
2481
2535
|
{
|
|
2482
2536
|
"kind": "Class",
|
|
2483
2537
|
"canonicalReference": "@genesislcap/foundation-ui!Anchor:class",
|
|
@@ -53849,6 +53903,34 @@
|
|
|
53849
53903
|
"endIndex": 2
|
|
53850
53904
|
}
|
|
53851
53905
|
},
|
|
53906
|
+
{
|
|
53907
|
+
"kind": "Function",
|
|
53908
|
+
"canonicalReference": "@genesislcap/foundation-ui!installAlertFlashClock:function(1)",
|
|
53909
|
+
"docComment": "/**\n * Starts the document-level clock that alert flashes sample.\n *\n * Safe to call repeatedly and from any number of components — the first call does the work. Called automatically by the components that flash, so apps only need this to start the clock earlier.\n *\n * Does nothing where `CSS.registerProperty` or constructable stylesheets are unavailable, which leaves alerting surfaces on their static fallback colour rather than breaking them.\n *\n * @public\n */\n",
|
|
53910
|
+
"excerptTokens": [
|
|
53911
|
+
{
|
|
53912
|
+
"kind": "Content",
|
|
53913
|
+
"text": "export declare function installAlertFlashClock(): "
|
|
53914
|
+
},
|
|
53915
|
+
{
|
|
53916
|
+
"kind": "Content",
|
|
53917
|
+
"text": "void"
|
|
53918
|
+
},
|
|
53919
|
+
{
|
|
53920
|
+
"kind": "Content",
|
|
53921
|
+
"text": ";"
|
|
53922
|
+
}
|
|
53923
|
+
],
|
|
53924
|
+
"fileUrlPath": "src/_common/alert-flash-clock.ts",
|
|
53925
|
+
"returnTypeTokenRange": {
|
|
53926
|
+
"startIndex": 1,
|
|
53927
|
+
"endIndex": 2
|
|
53928
|
+
},
|
|
53929
|
+
"releaseTag": "Public",
|
|
53930
|
+
"overloadIndex": 1,
|
|
53931
|
+
"parameters": [],
|
|
53932
|
+
"name": "installAlertFlashClock"
|
|
53933
|
+
},
|
|
53852
53934
|
{
|
|
53853
53935
|
"kind": "Function",
|
|
53854
53936
|
"canonicalReference": "@genesislcap/foundation-ui!isAbsoluteUrl:function(1)",
|
|
@@ -71112,7 +71194,69 @@
|
|
|
71112
71194
|
"isAbstract": false,
|
|
71113
71195
|
"name": "Tab",
|
|
71114
71196
|
"preserveMemberOrder": false,
|
|
71115
|
-
"members": [
|
|
71197
|
+
"members": [
|
|
71198
|
+
{
|
|
71199
|
+
"kind": "Property",
|
|
71200
|
+
"canonicalReference": "@genesislcap/foundation-ui!Tab#alert:member",
|
|
71201
|
+
"docComment": "/**\n * Draws sustained attention to the tab while background work is pending, for example while a grid behind an inactive tab still holds rows awaiting action.\n *\n * The design system supplies the visuals, retintable per app with `--tab-alert-color`. The flash samples a shared document-level clock, so every alerting surface — including grid rows — stays in phase; retime them all together with `--alert-flash-duration` on `:root`. Motion is suppressed under `prefers-reduced-motion`, which shows a static alert colour instead.\n *\n * @public\n */\n",
|
|
71202
|
+
"excerptTokens": [
|
|
71203
|
+
{
|
|
71204
|
+
"kind": "Content",
|
|
71205
|
+
"text": "alert: "
|
|
71206
|
+
},
|
|
71207
|
+
{
|
|
71208
|
+
"kind": "Content",
|
|
71209
|
+
"text": "boolean"
|
|
71210
|
+
},
|
|
71211
|
+
{
|
|
71212
|
+
"kind": "Content",
|
|
71213
|
+
"text": ";"
|
|
71214
|
+
}
|
|
71215
|
+
],
|
|
71216
|
+
"isReadonly": false,
|
|
71217
|
+
"isOptional": false,
|
|
71218
|
+
"releaseTag": "Public",
|
|
71219
|
+
"name": "alert",
|
|
71220
|
+
"propertyTypeTokenRange": {
|
|
71221
|
+
"startIndex": 1,
|
|
71222
|
+
"endIndex": 2
|
|
71223
|
+
},
|
|
71224
|
+
"isStatic": false,
|
|
71225
|
+
"isProtected": false,
|
|
71226
|
+
"isAbstract": false
|
|
71227
|
+
},
|
|
71228
|
+
{
|
|
71229
|
+
"kind": "Method",
|
|
71230
|
+
"canonicalReference": "@genesislcap/foundation-ui!Tab#alertChanged:member(1)",
|
|
71231
|
+
"docComment": "",
|
|
71232
|
+
"excerptTokens": [
|
|
71233
|
+
{
|
|
71234
|
+
"kind": "Content",
|
|
71235
|
+
"text": "protected alertChanged(): "
|
|
71236
|
+
},
|
|
71237
|
+
{
|
|
71238
|
+
"kind": "Content",
|
|
71239
|
+
"text": "void"
|
|
71240
|
+
},
|
|
71241
|
+
{
|
|
71242
|
+
"kind": "Content",
|
|
71243
|
+
"text": ";"
|
|
71244
|
+
}
|
|
71245
|
+
],
|
|
71246
|
+
"isStatic": false,
|
|
71247
|
+
"returnTypeTokenRange": {
|
|
71248
|
+
"startIndex": 1,
|
|
71249
|
+
"endIndex": 2
|
|
71250
|
+
},
|
|
71251
|
+
"releaseTag": "Public",
|
|
71252
|
+
"isProtected": true,
|
|
71253
|
+
"overloadIndex": 1,
|
|
71254
|
+
"parameters": [],
|
|
71255
|
+
"isOptional": false,
|
|
71256
|
+
"isAbstract": false,
|
|
71257
|
+
"name": "alertChanged"
|
|
71258
|
+
}
|
|
71259
|
+
],
|
|
71116
71260
|
"extendsTokenRange": {
|
|
71117
71261
|
"startIndex": 1,
|
|
71118
71262
|
"endIndex": 2
|
package/dist/foundation-ui.d.ts
CHANGED
|
@@ -461,6 +461,26 @@ export declare class AiIndicator extends FoundationElement {
|
|
|
461
461
|
|
|
462
462
|
export declare type AIIndicatorState = 'available' | 'downloading' | 'downloadable' | 'unavailable' | 'server' | 'none';
|
|
463
463
|
|
|
464
|
+
/**
|
|
465
|
+
* Custom property setting how long one flash cycle takes. Set it on `:root` to retime every
|
|
466
|
+
* alerting surface at once.
|
|
467
|
+
*
|
|
468
|
+
* @public
|
|
469
|
+
*/
|
|
470
|
+
export declare const alertFlashDurationProperty = "--alert-flash-duration";
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Custom property carrying the shared alert flash phase, ramping 0 → 1 → 0.
|
|
474
|
+
*
|
|
475
|
+
* Alerting surfaces sample this rather than running animations of their own, because independent
|
|
476
|
+
* CSS animations start whenever their element started and drift apart. Registered as an
|
|
477
|
+
* inheritable `<number>` on the document, so it reaches into shadow trees — a grid row deep inside
|
|
478
|
+
* a component's shadow DOM stays in step with a tab header in the light DOM.
|
|
479
|
+
*
|
|
480
|
+
* @public
|
|
481
|
+
*/
|
|
482
|
+
export declare const alertFlashPhaseProperty = "--alert-flash-t";
|
|
483
|
+
|
|
464
484
|
/**
|
|
465
485
|
* @tagname %%prefix%%-anchor
|
|
466
486
|
*/
|
|
@@ -5392,6 +5412,19 @@ export declare const INPUT_MIN_LENGTH = 3;
|
|
|
5392
5412
|
|
|
5393
5413
|
export declare const inputControls: ElementStyles;
|
|
5394
5414
|
|
|
5415
|
+
/**
|
|
5416
|
+
* Starts the document-level clock that alert flashes sample.
|
|
5417
|
+
*
|
|
5418
|
+
* Safe to call repeatedly and from any number of components — the first call does the work. Called
|
|
5419
|
+
* automatically by the components that flash, so apps only need this to start the clock earlier.
|
|
5420
|
+
*
|
|
5421
|
+
* Does nothing where `CSS.registerProperty` or constructable stylesheets are unavailable, which
|
|
5422
|
+
* leaves alerting surfaces on their static fallback colour rather than breaking them.
|
|
5423
|
+
*
|
|
5424
|
+
* @public
|
|
5425
|
+
*/
|
|
5426
|
+
export declare function installAlertFlashClock(): void;
|
|
5427
|
+
|
|
5395
5428
|
/**
|
|
5396
5429
|
* @beta
|
|
5397
5430
|
*/
|
|
@@ -7352,6 +7385,19 @@ declare type SystemHealthOverlayMode = (typeof SystemHealthOverlayMode)[keyof ty
|
|
|
7352
7385
|
* @tagname %%prefix%%-tab
|
|
7353
7386
|
*/
|
|
7354
7387
|
export declare class Tab extends Tab_2 {
|
|
7388
|
+
/**
|
|
7389
|
+
* Draws sustained attention to the tab while background work is pending, for example
|
|
7390
|
+
* while a grid behind an inactive tab still holds rows awaiting action.
|
|
7391
|
+
*
|
|
7392
|
+
* The design system supplies the visuals, retintable per app with `--tab-alert-color`. The flash
|
|
7393
|
+
* samples a shared document-level clock, so every alerting surface — including grid rows — stays
|
|
7394
|
+
* in phase; retime them all together with `--alert-flash-duration` on `:root`. Motion is
|
|
7395
|
+
* suppressed under `prefers-reduced-motion`, which shows a static alert colour instead.
|
|
7396
|
+
*
|
|
7397
|
+
* @public
|
|
7398
|
+
*/
|
|
7399
|
+
alert: boolean;
|
|
7400
|
+
protected alertChanged(): void;
|
|
7355
7401
|
}
|
|
7356
7402
|
|
|
7357
7403
|
/**
|
package/dist/react.cjs
CHANGED
|
@@ -118,16 +118,6 @@ const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
|
|
|
118
118
|
return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-accordion-item', { ...rest, ref }, children);
|
|
119
119
|
});
|
|
120
120
|
|
|
121
|
-
const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
|
|
122
|
-
const { children, ...rest } = props;
|
|
123
|
-
return React.createElement(customElements.getName(ActionsMenuWC) ?? '%%prefix%%-actions-menu', { ...rest, ref }, children);
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
const Accordion = React.forwardRef(function Accordion(props, ref) {
|
|
127
|
-
const { children, ...rest } = props;
|
|
128
|
-
return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
|
|
129
|
-
});
|
|
130
|
-
|
|
131
121
|
const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref) {
|
|
132
122
|
const { onCriteriaChanged, onValidationErrors, children, ...rest } = props;
|
|
133
123
|
const _innerRef = React.useRef(null);
|
|
@@ -150,11 +140,21 @@ const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref)
|
|
|
150
140
|
return React.createElement(customElements.getName(AiCriteriaSearchWC) ?? '%%prefix%%-ai-criteria-search', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
151
141
|
});
|
|
152
142
|
|
|
143
|
+
const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
|
|
144
|
+
const { children, ...rest } = props;
|
|
145
|
+
return React.createElement(customElements.getName(ActionsMenuWC) ?? '%%prefix%%-actions-menu', { ...rest, ref }, children);
|
|
146
|
+
});
|
|
147
|
+
|
|
153
148
|
const AiIndicator = React.forwardRef(function AiIndicator(props, ref) {
|
|
154
149
|
const { children, ...rest } = props;
|
|
155
150
|
return React.createElement(customElements.getName(AiIndicatorWC) ?? '%%prefix%%-ai-indicator', { ...rest, ref }, children);
|
|
156
151
|
});
|
|
157
152
|
|
|
153
|
+
const Accordion = React.forwardRef(function Accordion(props, ref) {
|
|
154
|
+
const { children, ...rest } = props;
|
|
155
|
+
return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
|
|
156
|
+
});
|
|
157
|
+
|
|
158
158
|
const Anchor = React.forwardRef(function Anchor(props, ref) {
|
|
159
159
|
const { children, ...rest } = props;
|
|
160
160
|
return React.createElement(customElements.getName(AnchorWC) ?? '%%prefix%%-anchor', { ...rest, ref }, children);
|
|
@@ -371,14 +371,14 @@ const Divider = React.forwardRef(function Divider(props, ref) {
|
|
|
371
371
|
return React.createElement(customElements.getName(DividerWC) ?? '%%prefix%%-divider', { ...rest, ref }, children);
|
|
372
372
|
});
|
|
373
373
|
|
|
374
|
-
const
|
|
374
|
+
const EnvironmentIndicator = React.forwardRef(function EnvironmentIndicator(props, ref) {
|
|
375
375
|
const { children, ...rest } = props;
|
|
376
|
-
return React.createElement(customElements.getName(
|
|
376
|
+
return React.createElement(customElements.getName(EnvironmentIndicatorWC) ?? '%%prefix%%-environment-indicator', { ...rest, ref }, children);
|
|
377
377
|
});
|
|
378
378
|
|
|
379
|
-
const
|
|
379
|
+
const DropdownMenu = React.forwardRef(function DropdownMenu(props, ref) {
|
|
380
380
|
const { children, ...rest } = props;
|
|
381
|
-
return React.createElement(customElements.getName(
|
|
381
|
+
return React.createElement(customElements.getName(DropdownMenuWC) ?? '%%prefix%%-dropdown-menu', { ...rest, ref }, children);
|
|
382
382
|
});
|
|
383
383
|
|
|
384
384
|
const ErrorBanner = React.forwardRef(function ErrorBanner(props, ref) {
|
|
@@ -1144,10 +1144,10 @@ const WeeklyRecurrence = React.forwardRef(function WeeklyRecurrence(props, ref)
|
|
|
1144
1144
|
|
|
1145
1145
|
module.exports = {
|
|
1146
1146
|
AccordionItem,
|
|
1147
|
-
ActionsMenu,
|
|
1148
|
-
Accordion,
|
|
1149
1147
|
AiCriteriaSearch,
|
|
1148
|
+
ActionsMenu,
|
|
1150
1149
|
AiIndicator,
|
|
1150
|
+
Accordion,
|
|
1151
1151
|
Anchor,
|
|
1152
1152
|
AnchoredRegion,
|
|
1153
1153
|
Avatar,
|
|
@@ -1171,8 +1171,8 @@ module.exports = {
|
|
|
1171
1171
|
Dialog,
|
|
1172
1172
|
Disclosure,
|
|
1173
1173
|
Divider,
|
|
1174
|
-
DropdownMenu,
|
|
1175
1174
|
EnvironmentIndicator,
|
|
1175
|
+
DropdownMenu,
|
|
1176
1176
|
ErrorBanner,
|
|
1177
1177
|
ErrorBoundary,
|
|
1178
1178
|
ErrorDialog,
|
package/dist/react.mjs
CHANGED
|
@@ -116,16 +116,6 @@ export const AccordionItem = React.forwardRef(function AccordionItem(props, ref)
|
|
|
116
116
|
return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-accordion-item', { ...rest, ref }, children);
|
|
117
117
|
});
|
|
118
118
|
|
|
119
|
-
export const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
|
|
120
|
-
const { children, ...rest } = props;
|
|
121
|
-
return React.createElement(customElements.getName(ActionsMenuWC) ?? '%%prefix%%-actions-menu', { ...rest, ref }, children);
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
export const Accordion = React.forwardRef(function Accordion(props, ref) {
|
|
125
|
-
const { children, ...rest } = props;
|
|
126
|
-
return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
|
|
127
|
-
});
|
|
128
|
-
|
|
129
119
|
export const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref) {
|
|
130
120
|
const { onCriteriaChanged, onValidationErrors, children, ...rest } = props;
|
|
131
121
|
const _innerRef = React.useRef(null);
|
|
@@ -148,11 +138,21 @@ export const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props
|
|
|
148
138
|
return React.createElement(customElements.getName(AiCriteriaSearchWC) ?? '%%prefix%%-ai-criteria-search', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
149
139
|
});
|
|
150
140
|
|
|
141
|
+
export const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
|
|
142
|
+
const { children, ...rest } = props;
|
|
143
|
+
return React.createElement(customElements.getName(ActionsMenuWC) ?? '%%prefix%%-actions-menu', { ...rest, ref }, children);
|
|
144
|
+
});
|
|
145
|
+
|
|
151
146
|
export const AiIndicator = React.forwardRef(function AiIndicator(props, ref) {
|
|
152
147
|
const { children, ...rest } = props;
|
|
153
148
|
return React.createElement(customElements.getName(AiIndicatorWC) ?? '%%prefix%%-ai-indicator', { ...rest, ref }, children);
|
|
154
149
|
});
|
|
155
150
|
|
|
151
|
+
export const Accordion = React.forwardRef(function Accordion(props, ref) {
|
|
152
|
+
const { children, ...rest } = props;
|
|
153
|
+
return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
|
|
154
|
+
});
|
|
155
|
+
|
|
156
156
|
export const Anchor = React.forwardRef(function Anchor(props, ref) {
|
|
157
157
|
const { children, ...rest } = props;
|
|
158
158
|
return React.createElement(customElements.getName(AnchorWC) ?? '%%prefix%%-anchor', { ...rest, ref }, children);
|
|
@@ -369,14 +369,14 @@ export const Divider = React.forwardRef(function Divider(props, ref) {
|
|
|
369
369
|
return React.createElement(customElements.getName(DividerWC) ?? '%%prefix%%-divider', { ...rest, ref }, children);
|
|
370
370
|
});
|
|
371
371
|
|
|
372
|
-
export const
|
|
372
|
+
export const EnvironmentIndicator = React.forwardRef(function EnvironmentIndicator(props, ref) {
|
|
373
373
|
const { children, ...rest } = props;
|
|
374
|
-
return React.createElement(customElements.getName(
|
|
374
|
+
return React.createElement(customElements.getName(EnvironmentIndicatorWC) ?? '%%prefix%%-environment-indicator', { ...rest, ref }, children);
|
|
375
375
|
});
|
|
376
376
|
|
|
377
|
-
export const
|
|
377
|
+
export const DropdownMenu = React.forwardRef(function DropdownMenu(props, ref) {
|
|
378
378
|
const { children, ...rest } = props;
|
|
379
|
-
return React.createElement(customElements.getName(
|
|
379
|
+
return React.createElement(customElements.getName(DropdownMenuWC) ?? '%%prefix%%-dropdown-menu', { ...rest, ref }, children);
|
|
380
380
|
});
|
|
381
381
|
|
|
382
382
|
export const ErrorBanner = React.forwardRef(function ErrorBanner(props, ref) {
|