@cloudscape-design/components 3.0.74 → 3.0.75

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 (136) hide show
  1. package/alert/interfaces.d.ts +5 -0
  2. package/alert/interfaces.d.ts.map +1 -1
  3. package/alert/interfaces.js.map +1 -1
  4. package/alert/internal.d.ts +1 -1
  5. package/alert/internal.d.ts.map +1 -1
  6. package/alert/internal.js +2 -2
  7. package/alert/internal.js.map +1 -1
  8. package/annotation-context/annotation/styles.css.js +24 -24
  9. package/annotation-context/annotation/styles.scoped.css +30 -30
  10. package/annotation-context/annotation/styles.selectors.js +24 -24
  11. package/app-layout/visual-refresh/styles.css.js +59 -59
  12. package/app-layout/visual-refresh/styles.scoped.css +218 -218
  13. package/app-layout/visual-refresh/styles.selectors.js +59 -59
  14. package/attribute-editor/interfaces.d.ts +7 -0
  15. package/attribute-editor/interfaces.d.ts.map +1 -1
  16. package/attribute-editor/interfaces.js.map +1 -1
  17. package/attribute-editor/internal.d.ts.map +1 -1
  18. package/attribute-editor/internal.js +2 -2
  19. package/attribute-editor/internal.js.map +1 -1
  20. package/attribute-editor/row.d.ts +2 -1
  21. package/attribute-editor/row.d.ts.map +1 -1
  22. package/attribute-editor/row.js +5 -10
  23. package/attribute-editor/row.js.map +1 -1
  24. package/calendar/grid/index.d.ts +15 -3
  25. package/calendar/grid/index.d.ts.map +1 -1
  26. package/calendar/grid/index.js +19 -17
  27. package/calendar/grid/index.js.map +1 -1
  28. package/calendar/internal.d.ts.map +1 -1
  29. package/calendar/internal.js +5 -17
  30. package/calendar/internal.js.map +1 -1
  31. package/calendar/utils/intl.d.ts +2 -3
  32. package/calendar/utils/intl.d.ts.map +1 -1
  33. package/calendar/utils/intl.js +6 -5
  34. package/calendar/utils/intl.js.map +1 -1
  35. package/calendar/utils/navigation.d.ts +6 -0
  36. package/calendar/utils/navigation.d.ts.map +1 -0
  37. package/calendar/utils/navigation.js +38 -0
  38. package/calendar/utils/navigation.js.map +1 -0
  39. package/date-picker/index.d.ts.map +1 -1
  40. package/date-picker/index.js +2 -1
  41. package/date-picker/index.js.map +1 -1
  42. package/date-picker/styles.css.js +6 -7
  43. package/date-picker/styles.scoped.css +7 -13
  44. package/date-picker/styles.selectors.js +6 -7
  45. package/date-range-picker/calendar/grids/grid.d.ts.map +1 -1
  46. package/date-range-picker/calendar/grids/grid.js +2 -2
  47. package/date-range-picker/calendar/grids/grid.js.map +1 -1
  48. package/date-range-picker/calendar/grids/index.d.ts +1 -3
  49. package/date-range-picker/calendar/grids/index.d.ts.map +1 -1
  50. package/date-range-picker/calendar/grids/index.js +10 -11
  51. package/date-range-picker/calendar/grids/index.js.map +1 -1
  52. package/date-range-picker/calendar/header/index.d.ts +2 -2
  53. package/date-range-picker/calendar/header/index.d.ts.map +1 -1
  54. package/date-range-picker/calendar/header/index.js +13 -9
  55. package/date-range-picker/calendar/header/index.js.map +1 -1
  56. package/date-range-picker/calendar/index.d.ts.map +1 -1
  57. package/date-range-picker/calendar/index.js +4 -6
  58. package/date-range-picker/calendar/index.js.map +1 -1
  59. package/date-range-picker/dropdown.js +1 -1
  60. package/date-range-picker/dropdown.js.map +1 -1
  61. package/date-range-picker/interfaces.d.ts +4 -0
  62. package/date-range-picker/interfaces.d.ts.map +1 -1
  63. package/date-range-picker/interfaces.js.map +1 -1
  64. package/flashbar/index.d.ts.map +1 -1
  65. package/flashbar/index.js +105 -34
  66. package/flashbar/index.js.map +1 -1
  67. package/flashbar/styles.css.js +29 -22
  68. package/flashbar/styles.scoped.css +208 -86
  69. package/flashbar/styles.selectors.js +29 -22
  70. package/form/interfaces.d.ts +5 -0
  71. package/form/interfaces.d.ts.map +1 -1
  72. package/form/interfaces.js.map +1 -1
  73. package/form/internal.d.ts +1 -1
  74. package/form/internal.d.ts.map +1 -1
  75. package/form/internal.js +10 -5
  76. package/form/internal.js.map +1 -1
  77. package/input/internal.d.ts +2 -1
  78. package/input/internal.d.ts.map +1 -1
  79. package/input/internal.js +4 -0
  80. package/input/internal.js.map +1 -1
  81. package/input/utils.js +1 -1
  82. package/input/utils.js.map +1 -1
  83. package/internal/components/autosuggest-input/index.js +1 -1
  84. package/internal/components/autosuggest-input/index.js.map +1 -1
  85. package/internal/components/live-region/index.d.ts +3 -2
  86. package/internal/components/live-region/index.d.ts.map +1 -1
  87. package/internal/components/live-region/index.js +5 -2
  88. package/internal/components/live-region/index.js.map +1 -1
  89. package/internal/components/live-region/styles.css.js +1 -1
  90. package/internal/components/live-region/styles.scoped.css +2 -92
  91. package/internal/components/live-region/styles.selectors.js +1 -1
  92. package/internal/components/screenreader-only/index.d.ts +22 -0
  93. package/internal/components/screenreader-only/index.d.ts.map +1 -0
  94. package/internal/components/screenreader-only/index.js +24 -0
  95. package/internal/components/screenreader-only/index.js.map +1 -0
  96. package/internal/components/screenreader-only/styles.css.js +6 -0
  97. package/internal/components/screenreader-only/styles.scoped.css +97 -0
  98. package/internal/components/screenreader-only/styles.selectors.js +7 -0
  99. package/internal/components/visual-context/index.d.ts +7 -0
  100. package/internal/components/visual-context/index.d.ts.map +1 -1
  101. package/internal/components/visual-context/index.js +10 -1
  102. package/internal/components/visual-context/index.js.map +1 -1
  103. package/internal/environment.js +1 -1
  104. package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  105. package/internal/generated/custom-css-properties/index.js +26 -24
  106. package/internal/generated/custom-css-properties/index.js.map +1 -1
  107. package/package.json +1 -1
  108. package/select/parts/filter.js +1 -1
  109. package/select/parts/filter.js.map +1 -1
  110. package/tag-editor/index.d.ts.map +1 -1
  111. package/tag-editor/index.js +1 -1
  112. package/tag-editor/index.js.map +1 -1
  113. package/tutorial-panel/interfaces.d.ts +2 -1
  114. package/tutorial-panel/interfaces.d.ts.map +1 -1
  115. package/tutorial-panel/interfaces.js.map +1 -1
  116. package/wizard/interfaces.d.ts +3 -0
  117. package/wizard/interfaces.d.ts.map +1 -1
  118. package/wizard/interfaces.js.map +1 -1
  119. package/wizard/wizard-form.d.ts.map +1 -1
  120. package/wizard/wizard-form.js +1 -1
  121. package/wizard/wizard-form.js.map +1 -1
  122. package/wizard/wizard-navigation.d.ts.map +1 -1
  123. package/wizard/wizard-navigation.js +1 -1
  124. package/wizard/wizard-navigation.js.map +1 -1
  125. package/calendar/utils/move-focus-handler.d.ts +0 -7
  126. package/calendar/utils/move-focus-handler.d.ts.map +0 -1
  127. package/calendar/utils/move-focus-handler.js +0 -24
  128. package/calendar/utils/move-focus-handler.js.map +0 -1
  129. package/calendar/utils/rotate-day-indexes.d.ts +0 -3
  130. package/calendar/utils/rotate-day-indexes.d.ts.map +0 -1
  131. package/calendar/utils/rotate-day-indexes.js +0 -11
  132. package/calendar/utils/rotate-day-indexes.js.map +0 -1
  133. package/date-range-picker/calendar/get-base-date.d.ts +0 -3
  134. package/date-range-picker/calendar/get-base-date.d.ts.map +0 -1
  135. package/date-range-picker/calendar/get-base-date.js +0 -10
  136. package/date-range-picker/calendar/get-base-date.js.map +0 -1
package/flashbar/index.js CHANGED
@@ -2,52 +2,123 @@ import { __assign, __rest } from "tslib";
2
2
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  import clsx from 'clsx';
5
- import React from 'react';
6
- import { useMergeRefs } from '../internal/hooks/use-merge-refs';
7
- import { getBaseProps } from '../internal/base-component';
8
- import styles from './styles.css.js';
9
- import { Flash } from './flash';
10
- import { useContainerBreakpoints } from '../internal/hooks/container-queries';
5
+ import React, { useState } from 'react';
11
6
  import { applyDisplayName } from '../internal/utils/apply-display-name';
12
- import VisualContext from '../internal/components/visual-context';
13
- import useBaseComponent from '../internal/hooks/use-base-component';
14
- import { useReducedMotion, useVisualRefresh } from '../internal/hooks/use-visual-mode';
7
+ import customCssProps from '../internal/generated/custom-css-properties';
8
+ import { Flash } from './flash';
9
+ import { getBaseProps } from '../internal/base-component';
10
+ import InternalIcon from '../icon/internal';
11
+ import { TIMEOUT_FOR_ENTERING_ANIMATION } from './constant';
15
12
  import { TransitionGroup } from 'react-transition-group';
16
13
  import { Transition } from '../internal/components/transition';
17
- import { TIMEOUT_FOR_ENTERING_ANIMATION } from './constant';
14
+ import useBaseComponent from '../internal/hooks/use-base-component';
15
+ import { useContainerBreakpoints } from '../internal/hooks/container-queries';
16
+ import useFocusVisible from '../internal/hooks/focus-visible';
17
+ import { useMergeRefs } from '../internal/hooks/use-merge-refs';
18
+ import { useReducedMotion, useVisualRefresh } from '../internal/hooks/use-visual-mode';
19
+ import { getVisualContextClassname } from '../internal/components/visual-context';
20
+ import styles from './styles.css.js';
18
21
  export default function Flashbar(_a) {
19
22
  var items = _a.items, restProps = __rest(_a, ["items"]);
20
23
  var __internalRootRef = useBaseComponent('Flashbar').__internalRootRef;
21
24
  var _b = useContainerBreakpoints(['xs']), breakpoint = _b[0], ref = _b[1];
22
- var isRefresh = useVisualRefresh();
23
25
  var baseProps = getBaseProps(restProps);
24
26
  var mergedRef = useMergeRefs(ref, __internalRootRef);
25
- // All the flash items should have ids so we can identify which DOM element is being removed from the DOM to animate it.
26
- var motionDisabled = useReducedMotion(ref) || !isRefresh || (items && !items.every(function (item) { return 'id' in item; }));
27
- // Motion will be disabled if any of the provided flash messages does not contain an `id`
28
- var renderFlashItem = function (item, index) {
27
+ var isFocusVisible = useFocusVisible();
28
+ var isVisualRefresh = useVisualRefresh();
29
+ /**
30
+ * All the flash items should have ids so we can identify which DOM element is being
31
+ * removed from the DOM to animate it. Motion will be disabled if any of the provided
32
+ * flash messages does not contain an `id`.
33
+ */
34
+ var motionDisabled = useReducedMotion(ref) || !isVisualRefresh || (items && !items.every(function (item) { return 'id' in item; }));
35
+ /**
36
+ * The `stackItems` property is a hidden boolean that allows for teams
37
+ * to beta test the flashbar stacking feature.
38
+ */
39
+ var stackItems = restProps.stackItems;
40
+ var ariaLabels = restProps.ariaLabels;
41
+ var isFlashbarStacked = stackItems && (items === null || items === void 0 ? void 0 : items.length) > 3;
42
+ var _c = useState(false), isFlashbarStackExpanded = _c[0], setIsFlashbarStackExpanded = _c[1];
43
+ /**
44
+ * Compute the appropriate aria label for the stacked notifications toggle button
45
+ * based on the expanded/collapsed state of the stack and the presence of
46
+ * corresponding aria label properties.
47
+ */
48
+ function getStackButtonAriaLabel() {
49
+ var _a, _b;
50
+ var stackButtonAriaLabel;
51
+ if (isFlashbarStackExpanded) {
52
+ stackButtonAriaLabel = (_a = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.stackCollapseLabel) !== null && _a !== void 0 ? _a : 'Collapse stacked notifications';
53
+ }
54
+ else {
55
+ stackButtonAriaLabel = (_b = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.stackExpandLabel) !== null && _b !== void 0 ? _b : 'Expand stacked notifications';
56
+ }
57
+ return stackButtonAriaLabel;
58
+ }
59
+ /**
60
+ * If the `isFlashbarStacked` is true (which is only possible if `stackItems` is true)
61
+ * then the first item should be rendered followed by two dummy items that visually indicate
62
+ * two, three, or more items exist in the stack.
63
+ */
64
+ function renderStackedItems() {
29
65
  var _a;
30
- return (React.createElement(Flash, __assign({ key: (_a = item.id) !== null && _a !== void 0 ? _a : index,
66
+ if (!isFlashbarStacked) {
67
+ return;
68
+ }
69
+ var stackDepth = Math.min(3, items.length);
70
+ var stackedItems = items.slice(0, stackDepth);
71
+ return (React.createElement("div", { className: styles.stack, style: (_a = {}, _a[customCssProps.flashbarStackDepth] = stackDepth, _a) },
72
+ !isFlashbarStackExpanded && (React.createElement("div", { className: clsx(styles.collapsed, isVisualRefresh && styles['visual-refresh']) }, stackedItems.map(function (item, index) {
73
+ var _a;
74
+ var _b, _c;
75
+ return (React.createElement("div", { className: styles.item, style: (_a = {}, _a[customCssProps.flashbarStackIndex] = index, _a), key: index },
76
+ index === 0 && renderItem(item, (_b = item.id) !== null && _b !== void 0 ? _b : index),
77
+ index > 0 && React.createElement("div", { className: clsx(styles.flash, styles["flash-type-".concat((_c = item.type) !== null && _c !== void 0 ? _c : 'info')]) })));
78
+ }))),
79
+ isFlashbarStackExpanded && (React.createElement("div", { className: styles.expanded }, items.map(function (item, index) { var _a; return renderItem(item, (_a = item.id) !== null && _a !== void 0 ? _a : index); }))),
80
+ React.createElement("button", __assign({ "aria-label": getStackButtonAriaLabel(), className: clsx(styles.toggle, isVisualRefresh && styles['visual-refresh']), onClick: function () { return setIsFlashbarStackExpanded(!isFlashbarStackExpanded); } }, isFocusVisible),
81
+ React.createElement(InternalIcon, { className: clsx(styles.icon, isFlashbarStackExpanded && styles.expanded), size: "small", name: "angle-down" }))));
82
+ }
83
+ /**
84
+ * If the flashbar is flat and motion is `enabled` then the adding and removing of items
85
+ * from the flashbar will render with visual transitions.
86
+ */
87
+ function renderFlatItemsWithTransitions() {
88
+ if (isFlashbarStacked || motionDisabled || !items) {
89
+ return;
90
+ }
91
+ return (React.createElement(TransitionGroup, { component: null }, items &&
92
+ items.map(function (item, index) {
93
+ var _a;
94
+ return (React.createElement(Transition, { transitionChangeDelay: { entering: TIMEOUT_FOR_ENTERING_ANIMATION }, key: (_a = item.id) !== null && _a !== void 0 ? _a : index, "in": true }, function (state, transitionRootElement) { var _a; return renderItem(item, (_a = item.id) !== null && _a !== void 0 ? _a : index, transitionRootElement, state); }));
95
+ })));
96
+ }
97
+ /**
98
+ * If the flashbar is flat and motion is `disabled` then the adding and removing of items
99
+ * from the flashbar will render without visual transitions.
100
+ */
101
+ function renderFlatItemsWithoutTransitions() {
102
+ if (isFlashbarStacked || !motionDisabled || !items) {
103
+ return;
104
+ }
105
+ return React.createElement(React.Fragment, null, items.map(function (item, index) { var _a; return renderItem(item, (_a = item.id) !== null && _a !== void 0 ? _a : index); }));
106
+ }
107
+ /**
108
+ * This is a shared render function for a single flashbar item to be used
109
+ * by the stacking, motion, and non-motion item group render functions.
110
+ */
111
+ function renderItem(item, key, transitionRootElement, transitionState) {
112
+ return (React.createElement(Flash
113
+ // eslint-disable-next-line react/forbid-component-props
114
+ , __assign({
31
115
  // eslint-disable-next-line react/forbid-component-props
32
- className: clsx(isRefresh ? styles['flash-refresh'] : '') }, item)));
33
- };
34
- var renderFlashItemsWithTransitions = function (items) {
35
- return (React.createElement(React.Fragment, null,
36
- React.createElement(TransitionGroup, { component: null }, items &&
37
- items.map(function (item, index) {
38
- var _a;
39
- return (React.createElement(Transition, { transitionChangeDelay: { entering: TIMEOUT_FOR_ENTERING_ANIMATION }, key: (_a = item.id) !== null && _a !== void 0 ? _a : index, "in": true }, function (state, transitionRootElement) {
40
- var _a;
41
- return (React.createElement(Flash, __assign({ ref: transitionRootElement, key: (_a = item.id) !== null && _a !== void 0 ? _a : index, transitionState: state,
42
- // eslint-disable-next-line react/forbid-component-props
43
- className: clsx(isRefresh ? styles['flash-refresh'] : '') }, item)));
44
- }));
45
- }))));
46
- };
116
+ className: clsx(getVisualContextClassname('flashbar'), isVisualRefresh ? styles['flash-refresh'] : ''), key: key, ref: transitionRootElement, transitionState: transitionState }, item)));
117
+ }
47
118
  return (React.createElement("div", __assign({}, baseProps, { className: clsx(baseProps.className, styles.flashbar, styles["breakpoint-".concat(breakpoint)]), ref: mergedRef }),
48
- React.createElement(VisualContext, { contextName: "flashbar" }, items && (React.createElement(React.Fragment, null, motionDisabled
49
- ? items.map(function (item, index) { return renderFlashItem(item, index); })
50
- : renderFlashItemsWithTransitions(items))))));
119
+ renderStackedItems(),
120
+ renderFlatItemsWithTransitions(),
121
+ renderFlatItemsWithoutTransitions()));
51
122
  }
52
123
  applyDisplayName(Flashbar, 'Flashbar');
53
124
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/flashbar/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;A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AC,CAAC,KAAK,CAAC,GAAG,CAAC,UAAC,IAAI,EAAE,KAAK,IAAK,OAAA,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,EAA5B,CAA4B,CAAC;YAC1D,CAAC,CAAC,+BAA+B,CAAC,KAAK,CAAC,CACzC,CACJ,CACa,CACZ,CACP,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React from 'react';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { getBaseProps } from '../internal/base-component';\nimport styles from './styles.css.js';\nimport { Flash } from './flash';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport VisualContext from '../internal/components/visual-context';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { useReducedMotion, useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { FlashbarProps } from './interfaces';\nimport { TransitionGroup } from 'react-transition-group';\nimport { Transition } from '../internal/components/transition';\nimport { TIMEOUT_FOR_ENTERING_ANIMATION } from './constant';\n\nexport { FlashbarProps };\n\nexport default function Flashbar({ items, ...restProps }: FlashbarProps) {\n const { __internalRootRef } = useBaseComponent('Flashbar');\n const [breakpoint, ref] = useContainerBreakpoints(['xs']);\n const isRefresh = useVisualRefresh();\n const baseProps = getBaseProps(restProps);\n\n const mergedRef = useMergeRefs(ref, __internalRootRef);\n\n // All the flash items should have ids so we can identify which DOM element is being removed from the DOM to animate it.\n const motionDisabled = useReducedMotion(ref as any) || !isRefresh || (items && !items.every(item => 'id' in item));\n // Motion will be disabled if any of the provided flash messages does not contain an `id`\n\n const renderFlashItem = (item: FlashbarProps.MessageDefinition, index: number) => (\n <Flash\n key={item.id ?? index}\n // eslint-disable-next-line react/forbid-component-props\n className={clsx(isRefresh ? styles['flash-refresh'] : '')}\n {...item}\n />\n );\n const renderFlashItemsWithTransitions = (items: readonly FlashbarProps.MessageDefinition[]) => {\n return (\n <>\n <TransitionGroup component={null}>\n {items &&\n items.map((item, index) => (\n <Transition\n transitionChangeDelay={{ entering: TIMEOUT_FOR_ENTERING_ANIMATION }}\n key={item.id ?? index}\n in={true}\n >\n {(state: string, transitionRootElement: React.Ref<HTMLDivElement> | undefined) => (\n <Flash\n ref={transitionRootElement}\n key={item.id ?? index}\n transitionState={state}\n // eslint-disable-next-line react/forbid-component-props\n className={clsx(isRefresh ? styles['flash-refresh'] : '')}\n {...item}\n />\n )}\n </Transition>\n ))}\n </TransitionGroup>\n </>\n );\n };\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles.flashbar, styles[`breakpoint-${breakpoint}`])}\n ref={mergedRef}\n >\n <VisualContext contextName=\"flashbar\">\n {items && (\n <>\n {motionDisabled\n ? items.map((item, index) => renderFlashItem(item, index))\n : renderFlashItemsWithTransitions(items)}\n </>\n )}\n </VisualContext>\n </div>\n );\n}\n\napplyDisplayName(Flashbar, 'Flashbar');\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/flashbar/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,cAAc,MAAM,6CAA6C,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,E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,CACP,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useState } from 'react';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport customCssProps from '../internal/generated/custom-css-properties';\nimport { Flash } from './flash';\nimport { FlashbarProps } from './interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport InternalIcon from '../icon/internal';\nimport { TIMEOUT_FOR_ENTERING_ANIMATION } from './constant';\nimport { TransitionGroup } from 'react-transition-group';\nimport { Transition } from '../internal/components/transition';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport useFocusVisible from '../internal/hooks/focus-visible';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useReducedMotion, useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { getVisualContextClassname } from '../internal/components/visual-context';\nimport styles from './styles.css.js';\n\nexport { FlashbarProps };\n\nexport default function Flashbar({ items, ...restProps }: FlashbarProps) {\n const { __internalRootRef } = useBaseComponent('Flashbar');\n const [breakpoint, ref] = useContainerBreakpoints(['xs']);\n const baseProps = getBaseProps(restProps);\n const mergedRef = useMergeRefs(ref, __internalRootRef);\n const isFocusVisible = useFocusVisible();\n const isVisualRefresh = useVisualRefresh();\n\n /**\n * All the flash items should have ids so we can identify which DOM element is being\n * removed from the DOM to animate it. Motion will be disabled if any of the provided\n * flash messages does not contain an `id`.\n */\n const motionDisabled =\n useReducedMotion(ref as any) || !isVisualRefresh || (items && !items.every(item => 'id' in item));\n\n /**\n * The `stackItems` property is a hidden boolean that allows for teams\n * to beta test the flashbar stacking feature.\n */\n const stackItems = (restProps as any).stackItems;\n const ariaLabels = (restProps as any).ariaLabels;\n const isFlashbarStacked = stackItems && items?.length > 3;\n const [isFlashbarStackExpanded, setIsFlashbarStackExpanded] = useState(false);\n\n /**\n * Compute the appropriate aria label for the stacked notifications toggle button\n * based on the expanded/collapsed state of the stack and the presence of\n * corresponding aria label properties.\n */\n function getStackButtonAriaLabel() {\n let stackButtonAriaLabel;\n\n if (isFlashbarStackExpanded) {\n stackButtonAriaLabel = ariaLabels?.stackCollapseLabel ?? 'Collapse stacked notifications';\n } else {\n stackButtonAriaLabel = ariaLabels?.stackExpandLabel ?? 'Expand stacked notifications';\n }\n\n return stackButtonAriaLabel;\n }\n\n /**\n * If the `isFlashbarStacked` is true (which is only possible if `stackItems` is true)\n * then the first item should be rendered followed by two dummy items that visually indicate\n * two, three, or more items exist in the stack.\n */\n function renderStackedItems() {\n if (!isFlashbarStacked) {\n return;\n }\n\n const stackDepth = Math.min(3, items.length);\n const stackedItems = items.slice(0, stackDepth);\n\n return (\n <div className={styles.stack} style={{ [customCssProps.flashbarStackDepth]: stackDepth }}>\n {!isFlashbarStackExpanded && (\n <div className={clsx(styles.collapsed, isVisualRefresh && styles['visual-refresh'])}>\n {stackedItems.map((item, index) => (\n <div className={styles.item} style={{ [customCssProps.flashbarStackIndex]: index }} key={index}>\n {index === 0 && renderItem(item, item.id ?? index)}\n {index > 0 && <div className={clsx(styles.flash, styles[`flash-type-${item.type ?? 'info'}`])} />}\n </div>\n ))}\n </div>\n )}\n\n {isFlashbarStackExpanded && (\n <div className={styles.expanded}>{items.map((item, index) => renderItem(item, item.id ?? index))}</div>\n )}\n\n <button\n aria-label={getStackButtonAriaLabel()}\n className={clsx(styles.toggle, isVisualRefresh && styles['visual-refresh'])}\n onClick={() => setIsFlashbarStackExpanded(!isFlashbarStackExpanded)}\n {...isFocusVisible}\n >\n <InternalIcon\n className={clsx(styles.icon, isFlashbarStackExpanded && styles.expanded)}\n size=\"small\"\n name=\"angle-down\"\n />\n </button>\n </div>\n );\n }\n\n /**\n * If the flashbar is flat and motion is `enabled` then the adding and removing of items\n * from the flashbar will render with visual transitions.\n */\n function renderFlatItemsWithTransitions() {\n if (isFlashbarStacked || motionDisabled || !items) {\n return;\n }\n\n return (\n <TransitionGroup component={null}>\n {items &&\n items.map((item, index) => (\n <Transition\n transitionChangeDelay={{ entering: TIMEOUT_FOR_ENTERING_ANIMATION }}\n key={item.id ?? index}\n in={true}\n >\n {(state: string, transitionRootElement: React.Ref<HTMLDivElement> | undefined) =>\n renderItem(item, item.id ?? index, transitionRootElement, state)\n }\n </Transition>\n ))}\n </TransitionGroup>\n );\n }\n\n /**\n * If the flashbar is flat and motion is `disabled` then the adding and removing of items\n * from the flashbar will render without visual transitions.\n */\n function renderFlatItemsWithoutTransitions() {\n if (isFlashbarStacked || !motionDisabled || !items) {\n return;\n }\n\n return <>{items.map((item, index) => renderItem(item, item.id ?? index))}</>;\n }\n\n /**\n * This is a shared render function for a single flashbar item to be used\n * by the stacking, motion, and non-motion item group render functions.\n */\n function renderItem(\n item: FlashbarProps.MessageDefinition,\n key: string | number,\n transitionRootElement?: React.Ref<HTMLDivElement> | undefined,\n transitionState?: string | undefined\n ) {\n return (\n <Flash\n // eslint-disable-next-line react/forbid-component-props\n className={clsx(getVisualContextClassname('flashbar'), isVisualRefresh ? styles['flash-refresh'] : '')}\n key={key}\n ref={transitionRootElement}\n transitionState={transitionState}\n {...item}\n />\n );\n }\n\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles.flashbar, styles[`breakpoint-${breakpoint}`])}\n ref={mergedRef}\n >\n {renderStackedItems()}\n {renderFlatItemsWithTransitions()}\n {renderFlatItemsWithoutTransitions()}\n </div>\n );\n}\n\napplyDisplayName(Flashbar, 'Flashbar');\n"]}
@@ -1,27 +1,34 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "flash-refresh": "awsui_flash-refresh_1q84n_zqvy6_93",
5
- "enter": "awsui_enter_1q84n_zqvy6_93",
6
- "flash-body": "awsui_flash-body_1q84n_zqvy6_108",
7
- "flash-message": "awsui_flash-message_1q84n_zqvy6_108",
8
- "flash-header": "awsui_flash-header_1q84n_zqvy6_108",
9
- "flash-content": "awsui_flash-content_1q84n_zqvy6_109",
10
- "action-button-wrapper": "awsui_action-button-wrapper_1q84n_zqvy6_110",
11
- "dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_zqvy6_111",
12
- "flash-icon": "awsui_flash-icon_1q84n_zqvy6_134",
13
- "entering": "awsui_entering_1q84n_zqvy6_147",
14
- "entered": "awsui_entered_1q84n_zqvy6_168",
15
- "exiting": "awsui_exiting_1q84n_zqvy6_273",
16
- "flashbar": "awsui_flashbar_1q84n_zqvy6_295",
17
- "flash": "awsui_flash_1q84n_zqvy6_93",
18
- "flash-text": "awsui_flash-text_1q84n_zqvy6_359",
19
- "dismiss-button": "awsui_dismiss-button_1q84n_zqvy6_111",
20
- "breakpoint-default": "awsui_breakpoint-default_1q84n_zqvy6_401",
21
- "action-button": "awsui_action-button_1q84n_zqvy6_110",
22
- "flash-type-success": "awsui_flash-type-success_1q84n_zqvy6_414",
23
- "flash-type-error": "awsui_flash-type-error_1q84n_zqvy6_418",
24
- "flash-type-warning": "awsui_flash-type-warning_1q84n_zqvy6_422",
25
- "flash-type-info": "awsui_flash-type-info_1q84n_zqvy6_426"
4
+ "flash-refresh": "awsui_flash-refresh_1q84n_14a50_93",
5
+ "enter": "awsui_enter_1q84n_14a50_93",
6
+ "flash-body": "awsui_flash-body_1q84n_14a50_108",
7
+ "flash-message": "awsui_flash-message_1q84n_14a50_108",
8
+ "flash-header": "awsui_flash-header_1q84n_14a50_108",
9
+ "flash-content": "awsui_flash-content_1q84n_14a50_109",
10
+ "action-button-wrapper": "awsui_action-button-wrapper_1q84n_14a50_110",
11
+ "dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_14a50_111",
12
+ "flash-icon": "awsui_flash-icon_1q84n_14a50_134",
13
+ "entering": "awsui_entering_1q84n_14a50_147",
14
+ "entered": "awsui_entered_1q84n_14a50_168",
15
+ "exiting": "awsui_exiting_1q84n_14a50_273",
16
+ "flashbar": "awsui_flashbar_1q84n_14a50_295",
17
+ "flash": "awsui_flash_1q84n_14a50_93",
18
+ "flash-text": "awsui_flash-text_1q84n_14a50_359",
19
+ "dismiss-button": "awsui_dismiss-button_1q84n_14a50_111",
20
+ "breakpoint-default": "awsui_breakpoint-default_1q84n_14a50_401",
21
+ "action-button": "awsui_action-button_1q84n_14a50_110",
22
+ "flash-type-success": "awsui_flash-type-success_1q84n_14a50_414",
23
+ "flash-type-error": "awsui_flash-type-error_1q84n_14a50_418",
24
+ "flash-type-warning": "awsui_flash-type-warning_1q84n_14a50_422",
25
+ "flash-type-info": "awsui_flash-type-info_1q84n_14a50_426",
26
+ "stack": "awsui_stack_1q84n_14a50_430",
27
+ "expanded": "awsui_expanded_1q84n_14a50_435",
28
+ "collapsed": "awsui_collapsed_1q84n_14a50_449",
29
+ "item": "awsui_item_1q84n_14a50_455",
30
+ "visual-refresh": "awsui_visual-refresh_1q84n_14a50_465",
31
+ "toggle": "awsui_toggle_1q84n_14a50_472",
32
+ "icon": "awsui_icon_1q84n_14a50_535"
26
33
  };
27
34