@cloudscape-design/components 3.0.183 → 3.0.185

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.
Files changed (48) hide show
  1. package/collection-preferences/styles.css.js +20 -20
  2. package/collection-preferences/styles.scoped.css +22 -21
  3. package/collection-preferences/styles.selectors.js +20 -20
  4. package/collection-preferences/visible-content.js +1 -1
  5. package/collection-preferences/visible-content.js.map +1 -1
  6. package/flashbar/collapsible-flashbar.d.ts +4 -0
  7. package/flashbar/collapsible-flashbar.d.ts.map +1 -0
  8. package/flashbar/collapsible-flashbar.js +209 -0
  9. package/flashbar/collapsible-flashbar.js.map +1 -0
  10. package/flashbar/common.d.ts +19 -0
  11. package/flashbar/common.d.ts.map +1 -0
  12. package/flashbar/common.js +63 -0
  13. package/flashbar/common.js.map +1 -0
  14. package/flashbar/flash.d.ts.map +1 -1
  15. package/flashbar/flash.js +8 -3
  16. package/flashbar/flash.js.map +1 -1
  17. package/flashbar/index.d.ts +2 -2
  18. package/flashbar/index.d.ts.map +1 -1
  19. package/flashbar/index.js +14 -159
  20. package/flashbar/index.js.map +1 -1
  21. package/flashbar/interfaces.d.ts +14 -7
  22. package/flashbar/interfaces.d.ts.map +1 -1
  23. package/flashbar/interfaces.js.map +1 -1
  24. package/flashbar/internal/analytics.d.ts +5 -0
  25. package/flashbar/internal/analytics.d.ts.map +1 -0
  26. package/flashbar/internal/analytics.js +29 -0
  27. package/flashbar/internal/analytics.js.map +1 -0
  28. package/flashbar/non-collapsible-flashbar.d.ts +4 -0
  29. package/flashbar/non-collapsible-flashbar.d.ts.map +1 -0
  30. package/flashbar/non-collapsible-flashbar.js +70 -0
  31. package/flashbar/non-collapsible-flashbar.js.map +1 -0
  32. package/flashbar/styles.css.js +43 -33
  33. package/flashbar/styles.scoped.css +329 -225
  34. package/flashbar/styles.selectors.js +43 -33
  35. package/flashbar/utils.d.ts +17 -0
  36. package/flashbar/utils.d.ts.map +1 -0
  37. package/flashbar/utils.js +95 -0
  38. package/flashbar/utils.js.map +1 -0
  39. package/internal/animate.d.ts +11 -0
  40. package/internal/animate.d.ts.map +1 -0
  41. package/internal/animate.js +104 -0
  42. package/internal/animate.js.map +1 -0
  43. package/internal/base-component/styles.scoped.css +1 -0
  44. package/internal/environment.js +1 -1
  45. package/internal/generated/theming/index.cjs +11 -0
  46. package/internal/generated/theming/index.js +11 -0
  47. package/internal/manifest.json +1 -1
  48. 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-refresh": "awsui_flash-refresh_1q84n_15lwx_93",
6
- "enter": "awsui_enter_1q84n_15lwx_93",
7
- "flash-body": "awsui_flash-body_1q84n_15lwx_108",
8
- "flash-message": "awsui_flash-message_1q84n_15lwx_108",
9
- "flash-header": "awsui_flash-header_1q84n_15lwx_108",
10
- "flash-content": "awsui_flash-content_1q84n_15lwx_109",
11
- "action-button-wrapper": "awsui_action-button-wrapper_1q84n_15lwx_110",
12
- "dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_15lwx_111",
13
- "flash-icon": "awsui_flash-icon_1q84n_15lwx_134",
14
- "entering": "awsui_entering_1q84n_15lwx_147",
15
- "entered": "awsui_entered_1q84n_15lwx_168",
16
- "exiting": "awsui_exiting_1q84n_15lwx_273",
17
- "flashbar": "awsui_flashbar_1q84n_15lwx_295",
18
- "flash": "awsui_flash_1q84n_15lwx_93",
19
- "flash-list": "awsui_flash-list_1q84n_15lwx_352",
20
- "flash-focus-container": "awsui_flash-focus-container_1q84n_15lwx_388",
21
- "flash-text": "awsui_flash-text_1q84n_15lwx_394",
22
- "dismiss-button": "awsui_dismiss-button_1q84n_15lwx_111",
23
- "breakpoint-default": "awsui_breakpoint-default_1q84n_15lwx_435",
24
- "flash-list-item": "awsui_flash-list-item_1q84n_15lwx_435",
25
- "action-button": "awsui_action-button_1q84n_15lwx_110",
26
- "flash-type-success": "awsui_flash-type-success_1q84n_15lwx_448",
27
- "flash-type-error": "awsui_flash-type-error_1q84n_15lwx_452",
28
- "flash-type-warning": "awsui_flash-type-warning_1q84n_15lwx_456",
29
- "flash-type-info": "awsui_flash-type-info_1q84n_15lwx_460",
30
- "stack": "awsui_stack_1q84n_15lwx_464",
31
- "expanded": "awsui_expanded_1q84n_15lwx_469",
32
- "collapsed": "awsui_collapsed_1q84n_15lwx_483",
33
- "item": "awsui_item_1q84n_15lwx_489",
34
- "visual-refresh": "awsui_visual-refresh_1q84n_15lwx_499",
35
- "flash-items": "awsui_flash-items_1q84n_15lwx_505",
36
- "toggle": "awsui_toggle_1q84n_15lwx_512",
37
- "icon": "awsui_icon_1q84n_15lwx_575"
5
+ "flash-with-motion": "awsui_flash-with-motion_1q84n_1sqql_93",
6
+ "enter": "awsui_enter_1q84n_1sqql_93",
7
+ "flash-body": "awsui_flash-body_1q84n_1sqql_107",
8
+ "flash-message": "awsui_flash-message_1q84n_1sqql_107",
9
+ "flash-header": "awsui_flash-header_1q84n_1sqql_107",
10
+ "flash-content": "awsui_flash-content_1q84n_1sqql_108",
11
+ "action-button-wrapper": "awsui_action-button-wrapper_1q84n_1sqql_109",
12
+ "dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_1sqql_110",
13
+ "flash-icon": "awsui_flash-icon_1q84n_1sqql_133",
14
+ "entering": "awsui_entering_1q84n_1sqql_146",
15
+ "entered": "awsui_entered_1q84n_1sqql_167",
16
+ "exiting": "awsui_exiting_1q84n_1sqql_272",
17
+ "stack": "awsui_stack_1q84n_1sqql_294",
18
+ "animation-running": "awsui_animation-running_1q84n_1sqql_294",
19
+ "item": "awsui_item_1q84n_1sqql_294",
20
+ "flash-list-item": "awsui_flash-list-item_1q84n_1sqql_295",
21
+ "toggle": "awsui_toggle_1q84n_1sqql_296",
22
+ "collapsed": "awsui_collapsed_1q84n_1sqql_316",
23
+ "animation-ready": "awsui_animation-ready_1q84n_1sqql_316",
24
+ "expanded-only": "awsui_expanded-only_1q84n_1sqql_316",
25
+ "expanded": "awsui_expanded_1q84n_1sqql_316",
26
+ "flash": "awsui_flash_1q84n_1sqql_93",
27
+ "status": "awsui_status_1q84n_1sqql_401",
28
+ "header": "awsui_header_1q84n_1sqql_401",
29
+ "item-count": "awsui_item-count_1q84n_1sqql_402",
30
+ "button": "awsui_button_1q84n_1sqql_403",
31
+ "type-count": "awsui_type-count_1q84n_1sqql_424",
32
+ "count-number": "awsui_count-number_1q84n_1sqql_427",
33
+ "visual-refresh": "awsui_visual-refresh_1q84n_1sqql_437",
34
+ "icon": "awsui_icon_1q84n_1sqql_486",
35
+ "spaced-bottom": "awsui_spaced-bottom_1q84n_1sqql_524",
36
+ "flashbar": "awsui_flashbar_1q84n_1sqql_532",
37
+ "flash-refresh": "awsui_flash-refresh_1q84n_1sqql_572",
38
+ "flash-list": "awsui_flash-list_1q84n_1sqql_295",
39
+ "flash-focus-container": "awsui_flash-focus-container_1q84n_1sqql_604",
40
+ "flash-text": "awsui_flash-text_1q84n_1sqql_631",
41
+ "dismiss-button": "awsui_dismiss-button_1q84n_1sqql_110",
42
+ "breakpoint-default": "awsui_breakpoint-default_1q84n_1sqql_672",
43
+ "action-button": "awsui_action-button_1q84n_1sqql_109",
44
+ "flash-type-success": "awsui_flash-type-success_1q84n_1sqql_685",
45
+ "flash-type-error": "awsui_flash-type-error_1q84n_1sqql_689",
46
+ "flash-type-warning": "awsui_flash-type-warning_1q84n_1sqql_693",
47
+ "flash-type-info": "awsui_flash-type-info_1q84n_1sqql_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,EA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ED,MAAM,UAAU,iBAAiB,CAAC,KAAiD;IACjF,IAAM,KAAK,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACzE,KAAmB,UAAK,EAAL,eAAK,EAAL,mBAAK,EAAL,IAAK,EAAE;QAArB,IAAM,IAAI,cAAA;QACb,IAAM,IAAI,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,CAAC,CAAC;QAC7B,IAAI,OAAO,EAAE;YACX,KAAK,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,qBAAqB,EAAE,CAAC;SAC7C;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,OAAO,CAAC,EAUvB;QATC,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,gBAAgB,sBAAA,EAChB,sBAAsB,4BAAA;IAOtB,2FAA2F;IAC3F,KAAK,IAAM,EAAE,IAAI,QAAQ,EAAE;QACzB,IAAM,OAAO,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;QAC7B,IAAM,OAAO,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;QAC7B,IAAI,OAAO,EAAE;YACX,IAAM,OAAO,GAAG,OAAO,CAAC,qBAAqB,EAAE,CAAC;YAChD,IAAM,aAAa,GAAG,EAAE,KAAK,EAAE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BAAe,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"]}
@@ -567,6 +567,7 @@
567
567
  --shadow-container-stacked-lumzae:-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%);
568
568
  --shadow-dropdown-99h0gz:0px 4px 20px 1px rgba(0, 7, 22, 0.10);
569
569
  --shadow-dropup-11esug:0px 4px 20px 1px rgba(0, 7, 22, 0.10);
570
+ --shadow-flash-collapsed-d4s4kz:0px 4px 4px rgba(0, 0, 0, 0.25);
570
571
  --shadow-flash-sticky-xplpiu:0px 6px 36px rgba(0, 7, 22, 0.10);
571
572
  --shadow-modal-3qhlqt:0px 4px 20px 1px rgba(0, 7, 22, 0.10);
572
573
  --shadow-panel-gp3bf2:0px 1px 1px 1px #e9ebed, 0px 6px 36px rgba(0, 7, 22, 0.10);
@@ -1,5 +1,5 @@
1
1
 
2
- export var PACKAGE_VERSION = '3.0.0 (f13bb5c)';
2
+ export var PACKAGE_VERSION = '3.0.0 (12a60d0)';
3
3
  export var THEME = 'open-source-visual-refresh';
4
4
  export var ALWAYS_VISUAL_REFRESH = true;
5
5
 
@@ -2195,6 +2195,10 @@ module.exports.preset = {
2195
2195
  "light": "{shadowDropdown}",
2196
2196
  "dark": "{shadowDropdown}"
2197
2197
  },
2198
+ "shadowFlashCollapsed": {
2199
+ "light": "0px 4px 4px rgba(0, 0, 0, 0.25)",
2200
+ "dark": "0px 4px 4px rgba(0, 0, 0, 0.25)"
2201
+ },
2198
2202
  "shadowFlashSticky": {
2199
2203
  "light": "0px 6px 36px rgba(0, 7, 22, 0.10)",
2200
2204
  "dark": "0px 6px 36px rgba(0, 7, 22, 1)"
@@ -3115,6 +3119,10 @@ module.exports.preset = {
3115
3119
  "light": "{shadowDropdown}",
3116
3120
  "dark": "{shadowDropdown}"
3117
3121
  },
3122
+ "shadowFlashCollapsed": {
3123
+ "light": "0px 4px 4px rgba(0, 0, 0, 0.25)",
3124
+ "dark": "0px 4px 4px rgba(0, 0, 0, 0.25)"
3125
+ },
3118
3126
  "shadowFlashSticky": {
3119
3127
  "light": "0px 6px 36px rgba(0, 7, 22, 0.10)",
3120
3128
  "dark": "0px 6px 36px rgba(0, 7, 22, 1)"
@@ -6241,6 +6249,7 @@ module.exports.preset = {
6241
6249
  "shadowContainerStacked": "color",
6242
6250
  "shadowDropdown": "color",
6243
6251
  "shadowDropup": "color",
6252
+ "shadowFlashCollapsed": "color",
6244
6253
  "shadowFlashSticky": "color",
6245
6254
  "shadowModal": "color",
6246
6255
  "shadowPanel": "color",
@@ -7337,6 +7346,7 @@ module.exports.preset = {
7337
7346
  "shadowContainerStacked": "shadow-container-stacked",
7338
7347
  "shadowDropdown": "shadow-dropdown",
7339
7348
  "shadowDropup": "shadow-dropup",
7349
+ "shadowFlashCollapsed": "shadow-flash-collapsed",
7340
7350
  "shadowFlashSticky": "shadow-flash-sticky",
7341
7351
  "shadowModal": "shadow-modal",
7342
7352
  "shadowPanel": "shadow-panel",
@@ -7987,6 +7997,7 @@ module.exports.preset = {
7987
7997
  "shadowContainerStacked": "--shadow-container-stacked-lumzae",
7988
7998
  "shadowDropdown": "--shadow-dropdown-99h0gz",
7989
7999
  "shadowDropup": "--shadow-dropup-11esug",
8000
+ "shadowFlashCollapsed": "--shadow-flash-collapsed-d4s4kz",
7990
8001
  "shadowFlashSticky": "--shadow-flash-sticky-xplpiu",
7991
8002
  "shadowModal": "--shadow-modal-3qhlqt",
7992
8003
  "shadowPanel": "--shadow-panel-gp3bf2",
@@ -2195,6 +2195,10 @@ export var preset = {
2195
2195
  "light": "{shadowDropdown}",
2196
2196
  "dark": "{shadowDropdown}"
2197
2197
  },
2198
+ "shadowFlashCollapsed": {
2199
+ "light": "0px 4px 4px rgba(0, 0, 0, 0.25)",
2200
+ "dark": "0px 4px 4px rgba(0, 0, 0, 0.25)"
2201
+ },
2198
2202
  "shadowFlashSticky": {
2199
2203
  "light": "0px 6px 36px rgba(0, 7, 22, 0.10)",
2200
2204
  "dark": "0px 6px 36px rgba(0, 7, 22, 1)"
@@ -3115,6 +3119,10 @@ export var preset = {
3115
3119
  "light": "{shadowDropdown}",
3116
3120
  "dark": "{shadowDropdown}"
3117
3121
  },
3122
+ "shadowFlashCollapsed": {
3123
+ "light": "0px 4px 4px rgba(0, 0, 0, 0.25)",
3124
+ "dark": "0px 4px 4px rgba(0, 0, 0, 0.25)"
3125
+ },
3118
3126
  "shadowFlashSticky": {
3119
3127
  "light": "0px 6px 36px rgba(0, 7, 22, 0.10)",
3120
3128
  "dark": "0px 6px 36px rgba(0, 7, 22, 1)"
@@ -6241,6 +6249,7 @@ export var preset = {
6241
6249
  "shadowContainerStacked": "color",
6242
6250
  "shadowDropdown": "color",
6243
6251
  "shadowDropup": "color",
6252
+ "shadowFlashCollapsed": "color",
6244
6253
  "shadowFlashSticky": "color",
6245
6254
  "shadowModal": "color",
6246
6255
  "shadowPanel": "color",
@@ -7337,6 +7346,7 @@ export var preset = {
7337
7346
  "shadowContainerStacked": "shadow-container-stacked",
7338
7347
  "shadowDropdown": "shadow-dropdown",
7339
7348
  "shadowDropup": "shadow-dropup",
7349
+ "shadowFlashCollapsed": "shadow-flash-collapsed",
7340
7350
  "shadowFlashSticky": "shadow-flash-sticky",
7341
7351
  "shadowModal": "shadow-modal",
7342
7352
  "shadowPanel": "shadow-panel",
@@ -7987,6 +7997,7 @@ export var preset = {
7987
7997
  "shadowContainerStacked": "--shadow-container-stacked-lumzae",
7988
7998
  "shadowDropdown": "--shadow-dropdown-99h0gz",
7989
7999
  "shadowDropup": "--shadow-dropup-11esug",
8000
+ "shadowFlashCollapsed": "--shadow-flash-collapsed-d4s4kz",
7990
8001
  "shadowFlashSticky": "--shadow-flash-sticky-xplpiu",
7991
8002
  "shadowModal": "--shadow-modal-3qhlqt",
7992
8003
  "shadowPanel": "--shadow-panel-gp3bf2",
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "f13bb5caa9bac0e3b101cf077e3c551c16dfcdad"
2
+ "commit": "12a60d0d0418078b5367a66cb82f3470eab6a878"
3
3
  }
package/package.json CHANGED
@@ -81,7 +81,7 @@
81
81
  "./internal/base-component/index.js",
82
82
  "./internal/base-component/styles.css.js"
83
83
  ],
84
- "version": "3.0.183",
84
+ "version": "3.0.185",
85
85
  "repository": {
86
86
  "type": "git",
87
87
  "url": "https://github.com/cloudscape-design/components.git"