@cloudscape-design/components-themeable 3.0.188 → 3.0.190
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/flashbar/collapsible.motion.scss +23 -0
- package/lib/internal/scss/flashbar/collapsible.scss +224 -0
- package/lib/internal/scss/flashbar/motion.scss +1 -2
- package/lib/internal/scss/flashbar/styles.scss +12 -147
- package/lib/internal/template/flashbar/collapsible-flashbar.d.ts +4 -0
- package/lib/internal/template/flashbar/collapsible-flashbar.d.ts.map +1 -0
- package/lib/internal/template/flashbar/collapsible-flashbar.js +209 -0
- package/lib/internal/template/flashbar/collapsible-flashbar.js.map +1 -0
- package/lib/internal/template/flashbar/common.d.ts +19 -0
- package/lib/internal/template/flashbar/common.d.ts.map +1 -0
- package/lib/internal/template/flashbar/common.js +63 -0
- package/lib/internal/template/flashbar/common.js.map +1 -0
- package/lib/internal/template/flashbar/flash.d.ts.map +1 -1
- package/lib/internal/template/flashbar/flash.js +8 -3
- package/lib/internal/template/flashbar/flash.js.map +1 -1
- package/lib/internal/template/flashbar/index.d.ts +2 -2
- package/lib/internal/template/flashbar/index.d.ts.map +1 -1
- package/lib/internal/template/flashbar/index.js +14 -159
- package/lib/internal/template/flashbar/index.js.map +1 -1
- package/lib/internal/template/flashbar/interfaces.d.ts +14 -7
- package/lib/internal/template/flashbar/interfaces.d.ts.map +1 -1
- package/lib/internal/template/flashbar/interfaces.js.map +1 -1
- package/lib/internal/template/flashbar/internal/analytics.d.ts +5 -0
- package/lib/internal/template/flashbar/internal/analytics.d.ts.map +1 -0
- package/lib/internal/template/flashbar/internal/analytics.js +29 -0
- package/lib/internal/template/flashbar/internal/analytics.js.map +1 -0
- package/lib/internal/template/flashbar/non-collapsible-flashbar.d.ts +4 -0
- package/lib/internal/template/flashbar/non-collapsible-flashbar.d.ts.map +1 -0
- package/lib/internal/template/flashbar/non-collapsible-flashbar.js +70 -0
- package/lib/internal/template/flashbar/non-collapsible-flashbar.js.map +1 -0
- package/lib/internal/template/flashbar/styles.css.js +43 -33
- package/lib/internal/template/flashbar/styles.scoped.css +329 -225
- package/lib/internal/template/flashbar/styles.selectors.js +43 -33
- package/lib/internal/template/flashbar/utils.d.ts +17 -0
- package/lib/internal/template/flashbar/utils.d.ts.map +1 -0
- package/lib/internal/template/flashbar/utils.js +95 -0
- package/lib/internal/template/flashbar/utils.js.map +1 -0
- package/lib/internal/template/internal/animate.d.ts +11 -0
- package/lib/internal/template/internal/animate.d.ts.map +1 -0
- package/lib/internal/template/internal/animate.js +104 -0
- package/lib/internal/template/internal/animate.js.map +1 -0
- package/lib/internal/template/internal/base-component/styles.scoped.css +25 -0
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/generated/styles/tokens.d.ts +4 -1
- package/lib/internal/template/internal/generated/styles/tokens.js +4 -1
- package/lib/internal/template/internal/generated/theming/index.cjs +72 -1
- package/lib/internal/template/internal/generated/theming/index.js +72 -1
- package/package.json +1 -1
|
@@ -2,38 +2,48 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"flash-
|
|
6
|
-
"enter": "
|
|
7
|
-
"flash-body": "awsui_flash-
|
|
8
|
-
"flash-message": "awsui_flash-
|
|
9
|
-
"flash-header": "awsui_flash-
|
|
10
|
-
"flash-content": "awsui_flash-
|
|
11
|
-
"action-button-wrapper": "awsui_action-button-
|
|
12
|
-
"dismiss-button-wrapper": "awsui_dismiss-button-
|
|
13
|
-
"flash-icon": "awsui_flash-
|
|
14
|
-
"entering": "
|
|
15
|
-
"entered": "
|
|
16
|
-
"exiting": "
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"flash-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"flash
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
5
|
+
"flash-with-motion": "awsui_flash-with-motion_1q84n_kpz6p_93",
|
|
6
|
+
"enter": "awsui_enter_1q84n_kpz6p_93",
|
|
7
|
+
"flash-body": "awsui_flash-body_1q84n_kpz6p_107",
|
|
8
|
+
"flash-message": "awsui_flash-message_1q84n_kpz6p_107",
|
|
9
|
+
"flash-header": "awsui_flash-header_1q84n_kpz6p_107",
|
|
10
|
+
"flash-content": "awsui_flash-content_1q84n_kpz6p_108",
|
|
11
|
+
"action-button-wrapper": "awsui_action-button-wrapper_1q84n_kpz6p_109",
|
|
12
|
+
"dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_kpz6p_110",
|
|
13
|
+
"flash-icon": "awsui_flash-icon_1q84n_kpz6p_133",
|
|
14
|
+
"entering": "awsui_entering_1q84n_kpz6p_146",
|
|
15
|
+
"entered": "awsui_entered_1q84n_kpz6p_167",
|
|
16
|
+
"exiting": "awsui_exiting_1q84n_kpz6p_272",
|
|
17
|
+
"stack": "awsui_stack_1q84n_kpz6p_294",
|
|
18
|
+
"animation-running": "awsui_animation-running_1q84n_kpz6p_294",
|
|
19
|
+
"item": "awsui_item_1q84n_kpz6p_294",
|
|
20
|
+
"flash-list-item": "awsui_flash-list-item_1q84n_kpz6p_295",
|
|
21
|
+
"toggle": "awsui_toggle_1q84n_kpz6p_296",
|
|
22
|
+
"collapsed": "awsui_collapsed_1q84n_kpz6p_316",
|
|
23
|
+
"animation-ready": "awsui_animation-ready_1q84n_kpz6p_316",
|
|
24
|
+
"expanded-only": "awsui_expanded-only_1q84n_kpz6p_316",
|
|
25
|
+
"expanded": "awsui_expanded_1q84n_kpz6p_316",
|
|
26
|
+
"flash": "awsui_flash_1q84n_kpz6p_93",
|
|
27
|
+
"status": "awsui_status_1q84n_kpz6p_401",
|
|
28
|
+
"header": "awsui_header_1q84n_kpz6p_401",
|
|
29
|
+
"item-count": "awsui_item-count_1q84n_kpz6p_402",
|
|
30
|
+
"button": "awsui_button_1q84n_kpz6p_403",
|
|
31
|
+
"type-count": "awsui_type-count_1q84n_kpz6p_424",
|
|
32
|
+
"count-number": "awsui_count-number_1q84n_kpz6p_427",
|
|
33
|
+
"visual-refresh": "awsui_visual-refresh_1q84n_kpz6p_437",
|
|
34
|
+
"icon": "awsui_icon_1q84n_kpz6p_486",
|
|
35
|
+
"spaced-bottom": "awsui_spaced-bottom_1q84n_kpz6p_524",
|
|
36
|
+
"flashbar": "awsui_flashbar_1q84n_kpz6p_532",
|
|
37
|
+
"flash-refresh": "awsui_flash-refresh_1q84n_kpz6p_572",
|
|
38
|
+
"flash-list": "awsui_flash-list_1q84n_kpz6p_295",
|
|
39
|
+
"flash-focus-container": "awsui_flash-focus-container_1q84n_kpz6p_604",
|
|
40
|
+
"flash-text": "awsui_flash-text_1q84n_kpz6p_631",
|
|
41
|
+
"dismiss-button": "awsui_dismiss-button_1q84n_kpz6p_110",
|
|
42
|
+
"breakpoint-default": "awsui_breakpoint-default_1q84n_kpz6p_672",
|
|
43
|
+
"action-button": "awsui_action-button_1q84n_kpz6p_109",
|
|
44
|
+
"flash-type-success": "awsui_flash-type-success_1q84n_kpz6p_685",
|
|
45
|
+
"flash-type-error": "awsui_flash-type-error_1q84n_kpz6p_689",
|
|
46
|
+
"flash-type-warning": "awsui_flash-type-warning_1q84n_kpz6p_693",
|
|
47
|
+
"flash-type-info": "awsui_flash-type-info_1q84n_kpz6p_697"
|
|
38
48
|
};
|
|
39
49
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FlashbarProps, FlashType } from './interfaces';
|
|
2
|
+
import { IconProps } from '../icon/interfaces';
|
|
3
|
+
export declare const FOCUS_THROTTLE_DELAY = 2000;
|
|
4
|
+
export interface StackableItem extends FlashbarProps.MessageDefinition {
|
|
5
|
+
expandedIndex: number;
|
|
6
|
+
collapsedIndex?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function getItemType(item: FlashbarProps.MessageDefinition): "progress" | FlashbarProps.Type;
|
|
9
|
+
export declare function getVisibleCollapsedItems(items: ReadonlyArray<FlashbarProps.MessageDefinition>, desiredLength: number): ReadonlyArray<StackableItem>;
|
|
10
|
+
export declare function getFlashTypeCount(items: readonly FlashbarProps.MessageDefinition[]): Record<FlashType, number>;
|
|
11
|
+
export type LabelName = 'errorCountAriaLabel' | 'warningCountAriaLabel' | 'successCountAriaLabel' | 'infoCountAriaLabel' | 'inProgressCountAriaLabel';
|
|
12
|
+
export declare const counterTypes: {
|
|
13
|
+
type: FlashType;
|
|
14
|
+
labelName: LabelName;
|
|
15
|
+
iconName: IconProps.Name;
|
|
16
|
+
}[];
|
|
17
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/flashbar/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAKzC,MAAM,WAAW,aAAc,SAAQ,aAAa,CAAC,iBAAiB;IACpE,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAeD,wBAAgB,WAAW,CAAC,IAAI,EAAE,aAAa,CAAC,iBAAiB,mCAMhE;AAWD,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC,iBAAiB,CAAC,EACrD,aAAa,EAAE,MAAM,GACpB,aAAa,CAAC,aAAa,CAAC,CAgD9B;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,aAAa,CAAC,iBAAiB,EAAE,GAAG,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAO9G;AAED,MAAM,MAAM,SAAS,GACjB,qBAAqB,GACrB,uBAAuB,GACvB,uBAAuB,GACvB,oBAAoB,GACpB,0BAA0B,CAAC;AAE/B,eAAO,MAAM,YAAY,EAAE;IACzB,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC;CAC1B,EAMA,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
export var FOCUS_THROTTLE_DELAY = 2000;
|
|
3
|
+
var typesToColors = {
|
|
4
|
+
error: 'red',
|
|
5
|
+
info: 'blue',
|
|
6
|
+
progress: 'blue',
|
|
7
|
+
success: 'green',
|
|
8
|
+
warning: 'blue'
|
|
9
|
+
};
|
|
10
|
+
function getColorFromType(type) {
|
|
11
|
+
var defaultColor = 'blue';
|
|
12
|
+
return type ? typesToColors[type] || defaultColor : defaultColor;
|
|
13
|
+
}
|
|
14
|
+
export function getItemType(item) {
|
|
15
|
+
if (item.loading) {
|
|
16
|
+
return 'progress';
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
return item.type || 'info';
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function getItemColor(item) {
|
|
23
|
+
return getColorFromType(getItemType(item));
|
|
24
|
+
}
|
|
25
|
+
/*
|
|
26
|
+
Returns a selection of notifications, preserving the order when possible but making sure that all different colors in
|
|
27
|
+
the stack are represented in the returned array.
|
|
28
|
+
The order corresponds to how they are represented when using the collapsible feature (newest first, oldest last).
|
|
29
|
+
*/
|
|
30
|
+
export function getVisibleCollapsedItems(items, desiredLength) {
|
|
31
|
+
// First `desiredLength` items in the original array,
|
|
32
|
+
// together with `isColorRepeated` to tell if they can be subject to be replaced later on if necessary
|
|
33
|
+
var itemsOnTop = [];
|
|
34
|
+
// Items that fall outside `desiredIndexLength` but need to be "promoted" if possible
|
|
35
|
+
// because they are of a different color which otherwise wouldn't be represented
|
|
36
|
+
var itemsToPromote = [];
|
|
37
|
+
var addedColors = new Set();
|
|
38
|
+
var allPossibleColors = Object.keys(typesToColors).length;
|
|
39
|
+
var finalLength = Math.min(items.length, desiredLength);
|
|
40
|
+
for (var i = 0; i < items.length; i++) {
|
|
41
|
+
var item = items[i];
|
|
42
|
+
var color = getItemColor(item);
|
|
43
|
+
var isColorRepeated = addedColors.has(color);
|
|
44
|
+
if (i < finalLength) {
|
|
45
|
+
itemsOnTop.push({ item: __assign(__assign({}, item), { expandedIndex: i }), isColorRepeated: isColorRepeated });
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
if (addedColors.size === allPossibleColors) {
|
|
49
|
+
// No need to keep looking for unrepresented colors, we can stop looping
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
else if (!isColorRepeated) {
|
|
53
|
+
itemsToPromote.push(__assign(__assign({}, item), { expandedIndex: i }));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
addedColors.add(color);
|
|
57
|
+
}
|
|
58
|
+
// Generate the new array with the selected items, by picking from both arrays.
|
|
59
|
+
// First, from the non-repeated items within the desired length...
|
|
60
|
+
// We loop `itemsOnTop` starting from the end because we prefer to preserve the first ones rather than the old ones
|
|
61
|
+
var reversedInitialSelection = [];
|
|
62
|
+
var slotsReservedForPromotions = 0;
|
|
63
|
+
for (var j = itemsOnTop.length - 1; j >= 0; j--) {
|
|
64
|
+
var item = itemsOnTop[j];
|
|
65
|
+
if (item.isColorRepeated && slotsReservedForPromotions < itemsToPromote.length) {
|
|
66
|
+
slotsReservedForPromotions += 1;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
reversedInitialSelection.push(item.item);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
var selectedItems = reversedInitialSelection.reverse();
|
|
73
|
+
// ...and then complete the selection with as many promotable items as we can fit in the rest of the array
|
|
74
|
+
for (var k = 0; selectedItems.length < desiredLength; k++) {
|
|
75
|
+
selectedItems.push(itemsToPromote[k]);
|
|
76
|
+
}
|
|
77
|
+
return selectedItems;
|
|
78
|
+
}
|
|
79
|
+
export function getFlashTypeCount(items) {
|
|
80
|
+
var count = { error: 0, info: 0, progress: 0, success: 0, warning: 0 };
|
|
81
|
+
for (var _i = 0, items_1 = items; _i < items_1.length; _i++) {
|
|
82
|
+
var item = items_1[_i];
|
|
83
|
+
var type = getItemType(item);
|
|
84
|
+
count[type] += 1;
|
|
85
|
+
}
|
|
86
|
+
return count;
|
|
87
|
+
}
|
|
88
|
+
export var counterTypes = [
|
|
89
|
+
{ type: 'error', labelName: 'errorCountAriaLabel', iconName: 'status-negative' },
|
|
90
|
+
{ type: 'warning', labelName: 'warningCountAriaLabel', iconName: 'status-warning' },
|
|
91
|
+
{ type: 'success', labelName: 'successCountAriaLabel', iconName: 'status-positive' },
|
|
92
|
+
{ type: 'info', labelName: 'infoCountAriaLabel', iconName: 'status-info' },
|
|
93
|
+
{ type: 'progress', labelName: 'inProgressCountAriaLabel', iconName: 'status-in-progress' },
|
|
94
|
+
];
|
|
95
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/flashbar/utils.ts"],"names":[],"mappings":";AAKA,MAAM,CAAC,IAAM,oBAAoB,GAAG,IAAI,CAAC;AAUzC,IAAM,aAAa,GAA8B;IAC/C,KAAK,EAAE,KAAK;IACZ,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,MAAM;CAChB,CAAC;AAEF,SAAS,gBAAgB,CAAC,IAAgB;IACxC,IAAM,YAAY,GAAG,MAAM,CAAC;IAC5B,OAAO,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC;AAC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I,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;QAC/B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAClB;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AASD,MAAM,CAAC,IAAM,YAAY,GAInB;IACJ,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,QAAQ,EAAE,iBAAiB,EAAE;IAChF,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,uBAAuB,EAAE,QAAQ,EAAE,gBAAgB,EAAE;IACnF,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,uBAAuB,EAAE,QAAQ,EAAE,iBAAiB,EAAE;IACpF,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,oBAAoB,EAAE,QAAQ,EAAE,aAAa,EAAE;IAC1E,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,0BAA0B,EAAE,QAAQ,EAAE,oBAAoB,EAAE;CAC5F,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { FlashbarProps, FlashType } from './interfaces';\nimport { IconProps } from '../icon/interfaces';\n\nexport const FOCUS_THROTTLE_DELAY = 2000;\n\n// Since the position of a notification changes when the Flashbar is collapsed,\n// it is useful on some situations (e.g, for animating) to know the original position of the item\n// in the non-collapsed state.\nexport interface StackableItem extends FlashbarProps.MessageDefinition {\n expandedIndex: number;\n collapsedIndex?: number;\n}\n\nconst typesToColors: Record<FlashType, string> = {\n error: 'red',\n info: 'blue',\n progress: 'blue',\n success: 'green',\n warning: 'blue',\n};\n\nfunction getColorFromType(type?: FlashType): string {\n const defaultColor = 'blue';\n return type ? typesToColors[type] || defaultColor : defaultColor;\n}\n\nexport function getItemType(item: FlashbarProps.MessageDefinition) {\n if (item.loading) {\n return 'progress';\n } else {\n return item.type || 'info';\n }\n}\n\nfunction getItemColor(item: FlashbarProps.MessageDefinition) {\n return getColorFromType(getItemType(item));\n}\n\n/*\n Returns a selection of notifications, preserving the order when possible but making sure that all different colors in\n the stack are represented in the returned array.\n The order corresponds to how they are represented when using the collapsible feature (newest first, oldest last).\n */\nexport function getVisibleCollapsedItems(\n items: ReadonlyArray<FlashbarProps.MessageDefinition>,\n desiredLength: number\n): ReadonlyArray<StackableItem> {\n // First `desiredLength` items in the original array,\n // together with `isColorRepeated` to tell if they can be subject to be replaced later on if necessary\n const itemsOnTop: { item: StackableItem; isColorRepeated: boolean }[] = [];\n\n // Items that fall outside `desiredIndexLength` but need to be \"promoted\" if possible\n // because they are of a different color which otherwise wouldn't be represented\n const itemsToPromote: StackableItem[] = [];\n\n const addedColors: Set<string> = new Set();\n const allPossibleColors = Object.keys(typesToColors).length;\n const finalLength = Math.min(items.length, desiredLength);\n\n for (let i = 0; i < items.length; i++) {\n const item = items[i];\n const color = getItemColor(item);\n const isColorRepeated = addedColors.has(color);\n if (i < finalLength) {\n itemsOnTop.push({ item: { ...item, expandedIndex: i }, isColorRepeated });\n } else {\n if (addedColors.size === allPossibleColors) {\n // No need to keep looking for unrepresented colors, we can stop looping\n break;\n } else if (!isColorRepeated) {\n itemsToPromote.push({ ...item, expandedIndex: i });\n }\n }\n addedColors.add(color);\n }\n // Generate the new array with the selected items, by picking from both arrays.\n // First, from the non-repeated items within the desired length...\n // We loop `itemsOnTop` starting from the end because we prefer to preserve the first ones rather than the old ones\n const reversedInitialSelection = [];\n let slotsReservedForPromotions = 0;\n for (let j = itemsOnTop.length - 1; j >= 0; j--) {\n const item = itemsOnTop[j];\n if (item.isColorRepeated && slotsReservedForPromotions < itemsToPromote.length) {\n slotsReservedForPromotions += 1;\n } else {\n reversedInitialSelection.push(item.item);\n }\n }\n const selectedItems = reversedInitialSelection.reverse();\n // ...and then complete the selection with as many promotable items as we can fit in the rest of the array\n for (let k = 0; selectedItems.length < desiredLength; k++) {\n selectedItems.push(itemsToPromote[k]);\n }\n return selectedItems;\n}\n\nexport function getFlashTypeCount(items: readonly FlashbarProps.MessageDefinition[]): Record<FlashType, number> {\n const count = { error: 0, info: 0, progress: 0, success: 0, warning: 0 };\n for (const item of items) {\n const type = getItemType(item);\n count[type] += 1;\n }\n return count;\n}\n\nexport type LabelName =\n | 'errorCountAriaLabel'\n | 'warningCountAriaLabel'\n | 'successCountAriaLabel'\n | 'infoCountAriaLabel'\n | 'inProgressCountAriaLabel';\n\nexport const counterTypes: {\n type: FlashType;\n labelName: LabelName;\n iconName: IconProps.Name;\n}[] = [\n { type: 'error', labelName: 'errorCountAriaLabel', iconName: 'status-negative' },\n { type: 'warning', labelName: 'warningCountAriaLabel', iconName: 'status-warning' },\n { type: 'success', labelName: 'successCountAriaLabel', iconName: 'status-positive' },\n { type: 'info', labelName: 'infoCountAriaLabel', iconName: 'status-info' },\n { type: 'progress', labelName: 'inProgressCountAriaLabel', iconName: 'status-in-progress' },\n];\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function getDOMRects(elements: Record<string | number, HTMLElement | null>): Record<string, DOMRect>;
|
|
2
|
+
export declare function animate({ oldState, elements, onTransitionsEnd, newElementInitialState, }: {
|
|
3
|
+
elements: Record<string | number, HTMLElement | null>;
|
|
4
|
+
oldState: Record<string | number, DOMRect>;
|
|
5
|
+
onTransitionsEnd?: () => void;
|
|
6
|
+
newElementInitialState?: (newRect: DOMRect) => {
|
|
7
|
+
scale?: number;
|
|
8
|
+
y?: number;
|
|
9
|
+
};
|
|
10
|
+
}): void;
|
|
11
|
+
//# sourceMappingURL=animate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animate.d.ts","sourceRoot":"","sources":["../../../src/internal/animate.ts"],"names":[],"mappings":"AAGA,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,2BAShF;AAaD,wBAAgB,OAAO,CAAC,EACtB,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,sBAAsB,GACvB,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,CAAC;IACtD,QAAQ,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3C,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,sBAAsB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC/E,QA0EA"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { __assign } from "tslib";
|
|
4
|
+
export function getDOMRects(elements) {
|
|
5
|
+
var rects = {};
|
|
6
|
+
for (var id in elements) {
|
|
7
|
+
var element = elements[id];
|
|
8
|
+
if (element) {
|
|
9
|
+
rects[id] = element.getBoundingClientRect();
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return rects;
|
|
13
|
+
}
|
|
14
|
+
/*
|
|
15
|
+
Animate DOM elements based on the FLIP technique
|
|
16
|
+
- https://aerotwist.com/blog/flip-your-animations/
|
|
17
|
+
- https://css-tricks.com/animating-layouts-with-the-flip-technique/
|
|
18
|
+
|
|
19
|
+
This can be useful when the initial dimensions or position of the element is not known,
|
|
20
|
+
so the initial offset or scaling needs to be retrieved via JS.
|
|
21
|
+
|
|
22
|
+
Caveat: this currently does not support elements having CSS transforms in the end state.
|
|
23
|
+
These would be overridden in the animation instead of combined.
|
|
24
|
+
*/
|
|
25
|
+
export function animate(_a) {
|
|
26
|
+
var oldState = _a.oldState, elements = _a.elements, onTransitionsEnd = _a.onTransitionsEnd, newElementInitialState = _a.newElementInitialState;
|
|
27
|
+
// First, apply the transform that will make the elements "look like" in the start position
|
|
28
|
+
for (var id in elements) {
|
|
29
|
+
var element = elements[id];
|
|
30
|
+
var oldRect = oldState[id];
|
|
31
|
+
if (element) {
|
|
32
|
+
var newRect = element.getBoundingClientRect();
|
|
33
|
+
var noOpTransform = { scale: 1, x: 0, y: 0 };
|
|
34
|
+
// Calculate initial position.
|
|
35
|
+
// If the element didn't exist previously, use the newElementInitialState function if provided.
|
|
36
|
+
// If not, default to no transitions (scale: 1, y: 0)
|
|
37
|
+
var calculatedInverseTransform = oldRect
|
|
38
|
+
? {
|
|
39
|
+
scale: oldRect.width / newRect.width,
|
|
40
|
+
x: (oldRect.left + oldRect.right) / 2 - (newRect.left + newRect.right) / 2,
|
|
41
|
+
y: (oldRect.top + oldRect.bottom) / 2 - (newRect.top + newRect.bottom) / 2
|
|
42
|
+
}
|
|
43
|
+
: newElementInitialState
|
|
44
|
+
? newElementInitialState(newRect)
|
|
45
|
+
: {};
|
|
46
|
+
var inverseTransform = __assign(__assign({}, noOpTransform), calculatedInverseTransform);
|
|
47
|
+
// Apply this initial change, without animating
|
|
48
|
+
element.style.transitionProperty = 'none';
|
|
49
|
+
element.style.transform = "scale(".concat(inverseTransform.scale, ") translate(").concat(inverseTransform.x, "px, ").concat(inverseTransform.y, "px)");
|
|
50
|
+
if (!oldRect) {
|
|
51
|
+
// If the element didn't exist, then fade it in
|
|
52
|
+
// (besides any other possibly defined transitions based on `newElementInitialState`)
|
|
53
|
+
element.style.opacity = '0';
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
// Animate from the initial state to the end state
|
|
58
|
+
requestAnimationFrame(function () {
|
|
59
|
+
var ongoingAnimations = new Set();
|
|
60
|
+
var _loop_1 = function (id) {
|
|
61
|
+
var element = elements[id];
|
|
62
|
+
if (element) {
|
|
63
|
+
var oldRect = oldState[id];
|
|
64
|
+
if (oldRect) {
|
|
65
|
+
// Animate from here on
|
|
66
|
+
element.style.transitionProperty = "transform";
|
|
67
|
+
// Unset inline CSS transforms so that the final state is applied
|
|
68
|
+
element.style.transform = '';
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
// If the element didn't exist previously, fade in as well
|
|
72
|
+
element.style.transitionProperty = "transform, opacity";
|
|
73
|
+
element.style.transform = '';
|
|
74
|
+
element.style.opacity = '';
|
|
75
|
+
}
|
|
76
|
+
var onTransitionStart_1 = function (event) {
|
|
77
|
+
if (event.target === element) {
|
|
78
|
+
ongoingAnimations.add(id);
|
|
79
|
+
element.removeEventListener('transitionstart', onTransitionStart_1);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
var onTransitionEnd_1 = function (event) {
|
|
83
|
+
if (event.target === element) {
|
|
84
|
+
// Clean up remaining inline styles
|
|
85
|
+
element.style.transitionProperty = '';
|
|
86
|
+
element.removeEventListener('transitionstart', onTransitionEnd_1);
|
|
87
|
+
if (onTransitionsEnd) {
|
|
88
|
+
ongoingAnimations["delete"](id);
|
|
89
|
+
if (ongoingAnimations.size === 0) {
|
|
90
|
+
onTransitionsEnd();
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
element.addEventListener('transitionstart', onTransitionStart_1);
|
|
96
|
+
element.addEventListener('transitionend', onTransitionEnd_1);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
for (var id in elements) {
|
|
100
|
+
_loop_1(id);
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=animate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animate.js","sourceRoot":"","sources":["../../../src/internal/animate.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;;AAEtC,MAAM,UAAU,WAAW,CAAC,QAAqD;IAC/E,IAAM,KAAK,GAA4B,EAAE,CAAC;IAC1C,KAAK,IAAM,EAAE,IAAI,QAAQ,EAAE;QACzB,IAAM,OAAO,GAAG,QAAQ,CAAC,EAAE,CA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C;qBACnE;gBACH,CAAC,CAAC;gBACF,IAAM,iBAAe,GAAG,UAAC,KAAsB;oBAC7C,IAAI,KAAK,CAAC,MAAM,KAAK,OAAO,EAAE;wBAC5B,mCAAmC;wBACnC,OAAO,CAAC,KAAK,CAAC,kBAAkB,GAAG,EAAE,CAAC;wBACtC,OAAO,CAAC,mBAAmB,CAAC,iBAAiB,EAAE,iBAAe,CAAC,CAAC;wBAChE,IAAI,gBAAgB,EAAE;4BACpB,iBAAiB,CAAC,QAAM,CAAA,CAAC,EAAE,CAAC,CAAC;4BAC7B,IAAI,iBAAiB,CAAC,IAAI,KAAK,CAAC,EAAE;gCAChC,gBAAgB,EAAE,CAAC;6BACpB;yBACF;qBACF;gBACH,CAAC,CAAC;gBACF,OAAO,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,mBAAiB,CAAC,CAAC;gBAC/D,OAAO,CAAC,gBAAgB,CAAC,eAAe,EAAE,iBAAe,CAAC,CAAC;aAC5D;;QApCH,KAAK,IAAM,EAAE,IAAI,QAAQ;oBAAd,EAAE;SAqCZ;IACH,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nexport function getDOMRects(elements: Record<string | number, HTMLElement | null>) {\n const rects: Record<string, DOMRect> = {};\n for (const id in elements) {\n const element = elements[id];\n if (element) {\n rects[id] = element.getBoundingClientRect();\n }\n }\n return rects;\n}\n\n/*\n Animate DOM elements based on the FLIP technique\n - https://aerotwist.com/blog/flip-your-animations/\n - https://css-tricks.com/animating-layouts-with-the-flip-technique/\n\n This can be useful when the initial dimensions or position of the element is not known,\n so the initial offset or scaling needs to be retrieved via JS.\n\n Caveat: this currently does not support elements having CSS transforms in the end state.\n These would be overridden in the animation instead of combined.\n */\nexport function animate({\n oldState,\n elements,\n onTransitionsEnd,\n newElementInitialState,\n}: {\n elements: Record<string | number, HTMLElement | null>;\n oldState: Record<string | number, DOMRect>;\n onTransitionsEnd?: () => void;\n newElementInitialState?: (newRect: DOMRect) => { scale?: number; y?: number };\n}) {\n // First, apply the transform that will make the elements \"look like\" in the start position\n for (const id in elements) {\n const element = elements[id];\n const oldRect = oldState[id];\n if (element) {\n const newRect = element.getBoundingClientRect();\n const noOpTransform = { scale: 1, x: 0, y: 0 };\n // Calculate initial position.\n // If the element didn't exist previously, use the newElementInitialState function if provided.\n // If not, default to no transitions (scale: 1, y: 0)\n const calculatedInverseTransform = oldRect\n ? {\n scale: oldRect.width / newRect.width,\n x: (oldRect.left + oldRect.right) / 2 - (newRect.left + newRect.right) / 2,\n y: (oldRect.top + oldRect.bottom) / 2 - (newRect.top + newRect.bottom) / 2,\n }\n : newElementInitialState\n ? newElementInitialState(newRect)\n : {};\n const inverseTransform = { ...noOpTransform, ...calculatedInverseTransform };\n // Apply this initial change, without animating\n element.style.transitionProperty = 'none';\n element.style.transform = `scale(${inverseTransform.scale}) translate(${inverseTransform.x}px, ${inverseTransform.y}px)`;\n if (!oldRect) {\n // If the element didn't exist, then fade it in\n // (besides any other possibly defined transitions based on `newElementInitialState`)\n element.style.opacity = '0';\n }\n }\n }\n\n // Animate from the initial state to the end state\n requestAnimationFrame(() => {\n const ongoingAnimations = new Set();\n for (const id in elements) {\n const element = elements[id];\n if (element) {\n const oldRect = oldState[id];\n if (oldRect) {\n // Animate from here on\n element.style.transitionProperty = `transform`;\n // Unset inline CSS transforms so that the final state is applied\n element.style.transform = '';\n } else {\n // If the element didn't exist previously, fade in as well\n element.style.transitionProperty = `transform, opacity`;\n element.style.transform = '';\n element.style.opacity = '';\n }\n const onTransitionStart = (event: TransitionEvent) => {\n if (event.target === element) {\n ongoingAnimations.add(id);\n element.removeEventListener('transitionstart', onTransitionStart);\n }\n };\n const onTransitionEnd = (event: TransitionEvent) => {\n if (event.target === element) {\n // Clean up remaining inline styles\n element.style.transitionProperty = '';\n element.removeEventListener('transitionstart', onTransitionEnd);\n if (onTransitionsEnd) {\n ongoingAnimations.delete(id);\n if (ongoingAnimations.size === 0) {\n onTransitionsEnd();\n }\n }\n }\n };\n element.addEventListener('transitionstart', onTransitionStart);\n element.addEventListener('transitionend', onTransitionEnd);\n }\n }\n });\n}\n"]}
|
|
@@ -351,6 +351,8 @@
|
|
|
351
351
|
--color-text-status-success-hb5hdl:#1d8102;
|
|
352
352
|
--color-text-status-warning-94ezyx:#d13212;
|
|
353
353
|
--color-text-top-navigation-title-2nrlq4:#16191f;
|
|
354
|
+
--color-board-placeholder-active-03p6jc:#d5dbdb;
|
|
355
|
+
--color-board-placeholder-hover-82yrwq:#99cbe4;
|
|
354
356
|
--font-body-m-line-height-i7xxvv:22px;
|
|
355
357
|
--font-body-m-size-sregvd:14px;
|
|
356
358
|
--font-body-s-letter-spacing-p88gax:normal;
|
|
@@ -565,8 +567,10 @@
|
|
|
565
567
|
--space-xxxl-bo9z7f:40px;
|
|
566
568
|
--shadow-container-0bkp96:0 1px 1px 0 rgba(0, 28, 36, 0.3), 1px 1px 1px 0 rgba(0, 28, 36, 0.15), -1px 1px 1px 0 rgba(0, 28, 36, 0.15);
|
|
567
569
|
--shadow-container-stacked-j8j87i:0 1px 1px 0 rgba(0, 28, 36, 0.3), 1px 1px 1px 0 rgba(0, 28, 36, 0.15), -1px 1px 1px 0 rgba(0, 28, 36, 0.15);
|
|
570
|
+
--shadow-container-active-h4jsj2:0px 4px 8px rgba(0, 28, 36, 0.45);
|
|
568
571
|
--shadow-dropdown-lzmmvx:0 1px 1px 0 rgba(0, 28, 36, 0.3), 1px 1px 1px 0 rgba(0, 28, 36, 0.15), -1px 1px 1px 0 rgba(0, 28, 36, 0.15);
|
|
569
572
|
--shadow-dropup-zo6vd9:0 -1px 1px 0 rgba(0, 28, 36, 0.3), 1px -1px 1px 0 rgba(0, 28, 36, 0.15), -1px -1px 1px 0 rgba(0, 28, 36, 0.15);
|
|
573
|
+
--shadow-flash-collapsed-zvjeqs:0px 2px 2px rgba(0, 0, 0, 0.15);
|
|
570
574
|
--shadow-flash-sticky-4fgfqg:0 1px 1px 0 rgba(0, 28, 36, 0.3), 1px 1px 1px 0 rgba(0, 28, 36, 0.15), -1px 1px 1px 0 rgba(0, 28, 36, 0.15);
|
|
571
575
|
--shadow-modal-ukglr0:0 1px 1px 0 rgba(0, 28, 36, 0.3), 1px 1px 1px 0 rgba(0, 28, 36, 0.15), -1px 1px 1px 0 rgba(0, 28, 36, 0.15);
|
|
572
576
|
--shadow-panel-v9vx7i:0 1px 1px 0 rgba(0, 28, 36, 0.3), 1px 1px 1px 0 rgba(0, 28, 36, 0.15), -1px 1px 1px 0 rgba(0, 28, 36, 0.15);
|
|
@@ -895,6 +899,8 @@
|
|
|
895
899
|
--color-text-status-success-hb5hdl:#6aaf35;
|
|
896
900
|
--color-text-status-warning-94ezyx:#ff5d64;
|
|
897
901
|
--color-text-top-navigation-title-2nrlq4:#fafafa;
|
|
902
|
+
--color-board-placeholder-active-03p6jc:#687078;
|
|
903
|
+
--color-board-placeholder-hover-82yrwq:#0073bb;
|
|
898
904
|
--shadow-container-0bkp96:0 1px 1px 0 rgba(0, 0, 0, 0.3), 1px 1px 1px 0 rgba(0, 0, 0, 0.3), -1px 1px 1px 0 rgba(0, 0, 0, 0.3);
|
|
899
905
|
--shadow-container-stacked-j8j87i:0 1px 1px 0 rgba(0, 0, 0, 0.3), 1px 1px 1px 0 rgba(0, 0, 0, 0.3), -1px 1px 1px 0 rgba(0, 0, 0, 0.3);
|
|
900
906
|
--shadow-dropdown-lzmmvx:0 1px 1px 0 rgba(0, 0, 0, 0.3), 1px 1px 1px 0 rgba(0, 0, 0, 0.3), -1px 1px 1px 0 rgba(0, 0, 0, 0.3);
|
|
@@ -1127,6 +1133,8 @@
|
|
|
1127
1133
|
--color-text-status-success-hb5hdl:#6aaf35;
|
|
1128
1134
|
--color-text-status-warning-94ezyx:#ff5d64;
|
|
1129
1135
|
--color-text-top-navigation-title-2nrlq4:#fafafa;
|
|
1136
|
+
--color-board-placeholder-active-03p6jc:#687078;
|
|
1137
|
+
--color-board-placeholder-hover-82yrwq:#0073bb;
|
|
1130
1138
|
}
|
|
1131
1139
|
|
|
1132
1140
|
.awsui-context-flashbar:not(#\9) {
|
|
@@ -1316,6 +1324,8 @@
|
|
|
1316
1324
|
--color-text-status-success-hb5hdl:#037f0c;
|
|
1317
1325
|
--color-text-status-warning-94ezyx:#d91515;
|
|
1318
1326
|
--color-text-top-navigation-title-2nrlq4:#000716;
|
|
1327
|
+
--color-board-placeholder-active-03p6jc:#e9ebed;
|
|
1328
|
+
--color-board-placeholder-hover-82yrwq:#d3e7f9;
|
|
1319
1329
|
--font-body-s-letter-spacing-p88gax:0.005em;
|
|
1320
1330
|
--font-button-letter-spacing-9fsbgj:0.005em;
|
|
1321
1331
|
--font-button-weight-of7qcx:800;
|
|
@@ -1448,8 +1458,10 @@
|
|
|
1448
1458
|
--space-text-grid-vertical-9z9zv2:16px;
|
|
1449
1459
|
--shadow-container-0bkp96:0px 0px 1px 1px #e9ebed, 0px 1px 8px 2px rgba(0, 7, 22, 0.12);
|
|
1450
1460
|
--shadow-container-stacked-j8j87i:-1px 1px 1px 0px #e9ebed, 1px 1px 1px 0px #e9ebed, 0px 9px 8px -7px rgb(0 7 22 / 12%), 8px 0px 8px -7px rgb(0 7 22 / 12%), -8px 0px 8px -7px rgb(0 7 22 / 12%);
|
|
1461
|
+
--shadow-container-active-h4jsj2:0px 1px 1px 1px #e9ebed, 0px 6px 36px #0007161a;
|
|
1451
1462
|
--shadow-dropdown-lzmmvx:0px 4px 20px 1px rgba(0, 7, 22, 0.10);
|
|
1452
1463
|
--shadow-dropup-zo6vd9:0px 4px 20px 1px rgba(0, 7, 22, 0.10);
|
|
1464
|
+
--shadow-flash-collapsed-zvjeqs:0px 4px 4px rgba(0, 0, 0, 0.25);
|
|
1453
1465
|
--shadow-flash-sticky-4fgfqg:0px 6px 36px rgba(0, 7, 22, 0.10);
|
|
1454
1466
|
--shadow-modal-ukglr0:0px 4px 20px 1px rgba(0, 7, 22, 0.10);
|
|
1455
1467
|
--shadow-panel-v9vx7i:0px 1px 1px 1px #e9ebed, 0px 6px 36px rgba(0, 7, 22, 0.10);
|
|
@@ -1638,8 +1650,11 @@
|
|
|
1638
1650
|
--color-text-status-success-hb5hdl:#29ad32;
|
|
1639
1651
|
--color-text-status-warning-94ezyx:#eb6f6f;
|
|
1640
1652
|
--color-text-top-navigation-title-2nrlq4:#fbfbfb;
|
|
1653
|
+
--color-board-placeholder-active-03p6jc:#5f6b7a;
|
|
1654
|
+
--color-board-placeholder-hover-82yrwq:#0972d3;
|
|
1641
1655
|
--shadow-container-0bkp96:0px 0px 1px 1px #192534, 0px 1px 8px 2px rgba(0, 7, 22, 1);
|
|
1642
1656
|
--shadow-container-stacked-j8j87i:-1px 1px 1px 0px #192534, 1px 1px 1px 0px #192534, 0px 9px 8px -7px rgb(0 7 22), 8px 0px 8px -7px rgb(0 7 22), -8px 0px 8px -7px rgb(0 7 22);
|
|
1657
|
+
--shadow-container-active-h4jsj2:0px 1px 1px 1px #192534, 0px 6px 36px #000716;
|
|
1643
1658
|
--shadow-dropdown-lzmmvx:0px 4px 20px 1px rgba(0, 7, 22, 1);
|
|
1644
1659
|
--shadow-dropup-zo6vd9:0px 4px 20px 1px rgba(0, 7, 22, 1);
|
|
1645
1660
|
--shadow-flash-sticky-4fgfqg:0px 6px 36px rgba(0, 7, 22, 1);
|
|
@@ -1852,6 +1867,8 @@
|
|
|
1852
1867
|
--color-text-status-success-hb5hdl:#29ad32;
|
|
1853
1868
|
--color-text-status-warning-94ezyx:#eb6f6f;
|
|
1854
1869
|
--color-text-top-navigation-title-2nrlq4:#fbfbfb;
|
|
1870
|
+
--color-board-placeholder-active-03p6jc:#5f6b7a;
|
|
1871
|
+
--color-board-placeholder-hover-82yrwq:#0972d3;
|
|
1855
1872
|
}
|
|
1856
1873
|
|
|
1857
1874
|
.awsui-context-top-navigation.awsui-visual-refresh:not(#\9) {
|
|
@@ -2024,6 +2041,8 @@
|
|
|
2024
2041
|
--color-text-status-success-hb5hdl:#29ad32;
|
|
2025
2042
|
--color-text-status-warning-94ezyx:#eb6f6f;
|
|
2026
2043
|
--color-text-top-navigation-title-2nrlq4:#fbfbfb;
|
|
2044
|
+
--color-board-placeholder-active-03p6jc:#5f6b7a;
|
|
2045
|
+
--color-board-placeholder-hover-82yrwq:#0972d3;
|
|
2027
2046
|
}
|
|
2028
2047
|
|
|
2029
2048
|
.awsui-visual-refresh .awsui-context-content-header:not(#\9) {
|
|
@@ -2195,8 +2214,11 @@
|
|
|
2195
2214
|
--color-text-status-success-hb5hdl:#29ad32;
|
|
2196
2215
|
--color-text-status-warning-94ezyx:#eb6f6f;
|
|
2197
2216
|
--color-text-top-navigation-title-2nrlq4:#fbfbfb;
|
|
2217
|
+
--color-board-placeholder-active-03p6jc:#5f6b7a;
|
|
2218
|
+
--color-board-placeholder-hover-82yrwq:#0972d3;
|
|
2198
2219
|
--shadow-container-0bkp96:none;
|
|
2199
2220
|
--shadow-container-stacked-j8j87i:-1px 1px 1px 0px #192534, 1px 1px 1px 0px #192534, 0px 9px 8px -7px rgb(0 7 22), 8px 0px 8px -7px rgb(0 7 22), -8px 0px 8px -7px rgb(0 7 22);
|
|
2221
|
+
--shadow-container-active-h4jsj2:0px 1px 1px 1px #192534, 0px 6px 36px #000716;
|
|
2200
2222
|
--shadow-dropdown-lzmmvx:0px 4px 20px 1px rgba(0, 7, 22, 1);
|
|
2201
2223
|
--shadow-dropup-zo6vd9:0px 4px 20px 1px rgba(0, 7, 22, 1);
|
|
2202
2224
|
--shadow-modal-ukglr0:0px 4px 20px 1px rgba(0, 7, 22, 1);
|
|
@@ -2376,8 +2398,11 @@
|
|
|
2376
2398
|
--color-text-status-success-hb5hdl:#29ad32;
|
|
2377
2399
|
--color-text-status-warning-94ezyx:#eb6f6f;
|
|
2378
2400
|
--color-text-top-navigation-title-2nrlq4:#fbfbfb;
|
|
2401
|
+
--color-board-placeholder-active-03p6jc:#5f6b7a;
|
|
2402
|
+
--color-board-placeholder-hover-82yrwq:#0972d3;
|
|
2379
2403
|
--shadow-container-0bkp96:none;
|
|
2380
2404
|
--shadow-container-stacked-j8j87i:-1px 1px 1px 0px #192534, 1px 1px 1px 0px #192534, 0px 9px 8px -7px rgb(0 7 22), 8px 0px 8px -7px rgb(0 7 22), -8px 0px 8px -7px rgb(0 7 22);
|
|
2405
|
+
--shadow-container-active-h4jsj2:0px 1px 1px 1px #192534, 0px 6px 36px #000716;
|
|
2381
2406
|
--shadow-dropdown-lzmmvx:0px 4px 20px 1px rgba(0, 7, 22, 1);
|
|
2382
2407
|
--shadow-dropup-zo6vd9:0px 4px 20px 1px rgba(0, 7, 22, 1);
|
|
2383
2408
|
--shadow-modal-ukglr0:0px 4px 20px 1px rgba(0, 7, 22, 1);
|
|
@@ -230,6 +230,8 @@ export const colorTextStatusInactive: string;
|
|
|
230
230
|
export const colorTextStatusInfo: string;
|
|
231
231
|
export const colorTextStatusSuccess: string;
|
|
232
232
|
export const colorTextStatusWarning: string;
|
|
233
|
+
export const colorBoardPlaceholderActive: string;
|
|
234
|
+
export const colorBoardPlaceholderHover: string;
|
|
233
235
|
export const fontFamilyBase: string;
|
|
234
236
|
export const fontFamilyMonospace: string;
|
|
235
237
|
export const borderRadiusAlert: string;
|
|
@@ -277,4 +279,5 @@ export const spaceStaticM: string;
|
|
|
277
279
|
export const spaceStaticL: string;
|
|
278
280
|
export const spaceStaticXl: string;
|
|
279
281
|
export const spaceStaticXxl: string;
|
|
280
|
-
export const spaceStaticXxxl: string;
|
|
282
|
+
export const spaceStaticXxxl: string;
|
|
283
|
+
export const shadowContainerActive: string;
|
|
@@ -230,6 +230,8 @@ export var colorTextStatusInactive = "var(--color-text-status-inactive-5ei55p, #
|
|
|
230
230
|
export var colorTextStatusInfo = "var(--color-text-status-info-utupcz, #0972d3)";
|
|
231
231
|
export var colorTextStatusSuccess = "var(--color-text-status-success-0fzhv9, #037f0c)";
|
|
232
232
|
export var colorTextStatusWarning = "var(--color-text-status-warning-27nlyh, #d91515)";
|
|
233
|
+
export var colorBoardPlaceholderActive = "var(--color-board-placeholder-active-vaxzdf, #e9ebed)";
|
|
234
|
+
export var colorBoardPlaceholderHover = "var(--color-board-placeholder-hover-v1s7kq, #d3e7f9)";
|
|
233
235
|
export var fontFamilyBase = "var(--font-family-base-qnistn, 'Open Sans', 'Helvetica Neue', Roboto, Arial, sans-serif)";
|
|
234
236
|
export var fontFamilyMonospace = "var(--font-family-monospace-iz223z, Monaco, Menlo, Consolas, 'Courier Prime', Courier, 'Courier New', monospace)";
|
|
235
237
|
export var borderRadiusAlert = "var(--border-radius-alert-n0skwy, 12px)";
|
|
@@ -277,4 +279,5 @@ export var spaceStaticM = "var(--space-static-m-pc0uz7, 16px)";
|
|
|
277
279
|
export var spaceStaticL = "var(--space-static-l-t7yjdj, 20px)";
|
|
278
280
|
export var spaceStaticXl = "var(--space-static-xl-g2lpmk, 24px)";
|
|
279
281
|
export var spaceStaticXxl = "var(--space-static-xxl-m6qwv3, 32px)";
|
|
280
|
-
export var spaceStaticXxxl = "var(--space-static-xxxl-66ty0h, 40px)";
|
|
282
|
+
export var spaceStaticXxxl = "var(--space-static-xxxl-66ty0h, 40px)";
|
|
283
|
+
export var shadowContainerActive = "var(--shadow-container-active-l4kuxc, 0px 1px 1px 1px #e9ebed, 0px 6px 36px #0007161a)";
|