@cloudscape-design/components 3.0.250 → 3.0.252

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 (139) hide show
  1. package/app-layout/visual-refresh/app-bar.js +1 -1
  2. package/app-layout/visual-refresh/app-bar.js.map +1 -1
  3. package/autosuggest/internal.d.ts.map +1 -1
  4. package/autosuggest/internal.js +2 -1
  5. package/autosuggest/internal.js.map +1 -1
  6. package/autosuggest/options-list.d.ts +2 -1
  7. package/autosuggest/options-list.d.ts.map +1 -1
  8. package/autosuggest/options-list.js +8 -2
  9. package/autosuggest/options-list.js.map +1 -1
  10. package/button/internal.d.ts +1 -1
  11. package/button/internal.d.ts.map +1 -1
  12. package/button/internal.js +3 -2
  13. package/button/internal.js.map +1 -1
  14. package/button/styles.css.js +20 -19
  15. package/button/styles.scoped.css +298 -136
  16. package/button/styles.selectors.js +20 -19
  17. package/file-upload/default-formatters.d.ts +3 -0
  18. package/file-upload/default-formatters.d.ts.map +1 -0
  19. package/file-upload/default-formatters.js +23 -0
  20. package/file-upload/default-formatters.js.map +1 -0
  21. package/file-upload/dropzone/index.d.ts +9 -0
  22. package/file-upload/dropzone/index.d.ts.map +1 -0
  23. package/file-upload/dropzone/index.js +69 -0
  24. package/file-upload/dropzone/index.js.map +1 -0
  25. package/file-upload/dropzone/styles.css.js +7 -0
  26. package/file-upload/dropzone/styles.scoped.css +108 -0
  27. package/file-upload/dropzone/styles.selectors.js +8 -0
  28. package/file-upload/file-input/index.d.ts +14 -0
  29. package/file-upload/file-input/index.d.ts.map +1 -0
  30. package/file-upload/file-input/index.js +55 -0
  31. package/file-upload/file-input/index.js.map +1 -0
  32. package/file-upload/file-input/styles.css.js +8 -0
  33. package/file-upload/file-input/styles.scoped.css +21 -0
  34. package/file-upload/file-input/styles.selectors.js +9 -0
  35. package/file-upload/file-option/index.d.ts +10 -0
  36. package/file-upload/file-option/index.d.ts.map +1 -0
  37. package/file-upload/file-option/index.js +22 -0
  38. package/file-upload/file-option/index.js.map +1 -0
  39. package/file-upload/file-option/styles.css.js +12 -0
  40. package/file-upload/file-option/styles.scoped.css +35 -0
  41. package/file-upload/file-option/styles.selectors.js +13 -0
  42. package/file-upload/file-option/thumbnail.d.ts +7 -0
  43. package/file-upload/file-option/thumbnail.d.ts.map +1 -0
  44. package/file-upload/file-option/thumbnail.js +20 -0
  45. package/file-upload/file-option/thumbnail.js.map +1 -0
  46. package/file-upload/index.d.ts +6 -0
  47. package/file-upload/index.d.ts.map +1 -0
  48. package/file-upload/index.js +17 -0
  49. package/file-upload/index.js.map +1 -0
  50. package/file-upload/interfaces.d.ts +99 -0
  51. package/file-upload/interfaces.d.ts.map +1 -0
  52. package/file-upload/interfaces.js +4 -0
  53. package/file-upload/interfaces.js.map +1 -0
  54. package/file-upload/internal.d.ts +7 -0
  55. package/file-upload/internal.d.ts.map +1 -0
  56. package/file-upload/internal.js +72 -0
  57. package/file-upload/internal.js.map +1 -0
  58. package/file-upload/styles.css.js +7 -0
  59. package/file-upload/styles.scoped.css +16 -0
  60. package/file-upload/styles.selectors.js +8 -0
  61. package/form-field/internal.d.ts +6 -1
  62. package/form-field/internal.d.ts.map +1 -1
  63. package/form-field/internal.js +6 -3
  64. package/form-field/internal.js.map +1 -1
  65. package/index.d.ts +1 -0
  66. package/index.d.ts.map +1 -1
  67. package/index.js +1 -0
  68. package/index.js.map +1 -1
  69. package/internal/base-component/styles.scoped.css +25 -5
  70. package/internal/components/dropdown-footer/index.d.ts +1 -0
  71. package/internal/components/dropdown-footer/index.d.ts.map +1 -1
  72. package/internal/components/dropdown-footer/index.js +2 -2
  73. package/internal/components/dropdown-footer/index.js.map +1 -1
  74. package/internal/components/live-region/index.d.ts +2 -1
  75. package/internal/components/live-region/index.d.ts.map +1 -1
  76. package/internal/components/live-region/index.js +2 -2
  77. package/internal/components/live-region/index.js.map +1 -1
  78. package/internal/components/options-list/index.d.ts +1 -0
  79. package/internal/components/options-list/index.d.ts.map +1 -1
  80. package/internal/components/options-list/index.js +2 -2
  81. package/internal/components/options-list/index.js.map +1 -1
  82. package/internal/environment.js +1 -1
  83. package/internal/generated/theming/index.cjs +142 -25
  84. package/internal/generated/theming/index.js +142 -25
  85. package/internal/manifest.json +1 -1
  86. package/multiselect/internal.d.ts.map +1 -1
  87. package/multiselect/internal.js +4 -3
  88. package/multiselect/internal.js.map +1 -1
  89. package/package.json +2 -1
  90. package/property-filter/index.d.ts.map +1 -1
  91. package/property-filter/index.js +1 -1
  92. package/property-filter/index.js.map +1 -1
  93. package/property-filter/interfaces.d.ts +2 -1
  94. package/property-filter/interfaces.d.ts.map +1 -1
  95. package/property-filter/interfaces.js.map +1 -1
  96. package/property-filter/property-filter-autosuggest.d.ts.map +1 -1
  97. package/property-filter/property-filter-autosuggest.js +4 -2
  98. package/property-filter/property-filter-autosuggest.js.map +1 -1
  99. package/select/internal.d.ts.map +1 -1
  100. package/select/internal.js +4 -3
  101. package/select/internal.js.map +1 -1
  102. package/split-panel/interfaces.d.ts +8 -8
  103. package/split-panel/interfaces.d.ts.map +1 -1
  104. package/split-panel/interfaces.js.map +1 -1
  105. package/split-panel/preferences-modal.d.ts +7 -7
  106. package/split-panel/preferences-modal.d.ts.map +1 -1
  107. package/split-panel/preferences-modal.js.map +1 -1
  108. package/table/body-cell/index.js +1 -1
  109. package/table/body-cell/index.js.map +1 -1
  110. package/table/header-cell/styles.css.js +19 -19
  111. package/table/header-cell/styles.scoped.css +33 -33
  112. package/table/header-cell/styles.selectors.js +19 -19
  113. package/table/resizer/styles.css.js +6 -6
  114. package/table/resizer/styles.scoped.css +13 -13
  115. package/table/resizer/styles.selectors.js +6 -6
  116. package/test-utils/dom/file-upload/index.d.ts +29 -0
  117. package/test-utils/dom/file-upload/index.js +66 -0
  118. package/test-utils/dom/file-upload/index.js.map +1 -0
  119. package/test-utils/dom/index.d.ts +3 -0
  120. package/test-utils/dom/index.js +10 -2
  121. package/test-utils/dom/index.js.map +1 -1
  122. package/test-utils/selectors/file-upload/index.d.ts +29 -0
  123. package/test-utils/selectors/file-upload/index.js +66 -0
  124. package/test-utils/selectors/file-upload/index.js.map +1 -0
  125. package/test-utils/selectors/index.d.ts +3 -0
  126. package/test-utils/selectors/index.js +10 -2
  127. package/test-utils/selectors/index.js.map +1 -1
  128. package/test-utils/tsconfig.tsbuildinfo +1 -1
  129. package/theming/index.d.ts +2 -1
  130. package/theming/index.d.ts.map +1 -1
  131. package/theming/index.js +2 -1
  132. package/theming/index.js.map +1 -1
  133. package/token-group/styles.css.js +7 -5
  134. package/token-group/styles.scoped.css +41 -23
  135. package/token-group/styles.selectors.js +7 -5
  136. package/token-group/token.d.ts +4 -1
  137. package/token-group/token.d.ts.map +1 -1
  138. package/token-group/token.js +13 -4
  139. package/token-group/token.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/components/dropdown-footer/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,UAAU,cAAc;IACtB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAM5C,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/components/dropdown-footer/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,UAAU,cAAc;IACtB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAM5C,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -5,7 +5,7 @@ import clsx from 'clsx';
5
5
  import styles from './styles.css.js';
6
6
  import DropdownStatus from '../dropdown-status/index.js';
7
7
  import LiveRegion from '../live-region/index.js';
8
- const DropdownFooter = ({ content, hasItems = true }) => (React.createElement("div", { className: clsx(styles.root, { [styles.hidden]: content === null, [styles['no-items']]: !hasItems }) },
9
- React.createElement(LiveRegion, { visible: true, tagName: "div" }, content && React.createElement(DropdownStatus, null, content))));
8
+ const DropdownFooter = ({ content, id, hasItems = true }) => (React.createElement("div", { className: clsx(styles.root, { [styles.hidden]: content === null, [styles['no-items']]: !hasItems }) },
9
+ React.createElement(LiveRegion, { visible: true, tagName: "div", id: id }, content && React.createElement(DropdownStatus, null, content))));
10
10
  export default DropdownFooter;
11
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/components/dropdown-footer/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,6BAA6B,CAAC;AACzD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AAOjD,MAAM,cAAc,GAA6B,CAAC,EAAE,OAAO,EAAE,QAAQ,GAAG,IAAI,EAAkB,EAAE,EAAE,CAAC,CACjG,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;IACvG,oBAAC,UAAU,IAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC,KAAK,IACrC,OAAO,IAAI,oBAAC,cAAc,QAAE,OAAO,CAAkB,CAC3C,CACT,CACP,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport styles from './styles.css.js';\nimport DropdownStatus from '../dropdown-status/index.js';\nimport LiveRegion from '../live-region/index.js';\n\ninterface DropdownFooter {\n content?: React.ReactNode | null;\n hasItems?: boolean;\n}\n\nconst DropdownFooter: React.FC<DropdownFooter> = ({ content, hasItems = true }: DropdownFooter) => (\n <div className={clsx(styles.root, { [styles.hidden]: content === null, [styles['no-items']]: !hasItems })}>\n <LiveRegion visible={true} tagName=\"div\">\n {content && <DropdownStatus>{content}</DropdownStatus>}\n </LiveRegion>\n </div>\n);\n\nexport default DropdownFooter;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/components/dropdown-footer/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,6BAA6B,CAAC;AACzD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AAQjD,MAAM,cAAc,GAA6B,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAkB,EAAE,EAAE,CAAC,CACrG,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;IACvG,oBAAC,UAAU,IAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC,KAAK,EAAC,EAAE,EAAE,EAAE,IAC5C,OAAO,IAAI,oBAAC,cAAc,QAAE,OAAO,CAAkB,CAC3C,CACT,CACP,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport styles from './styles.css.js';\nimport DropdownStatus from '../dropdown-status/index.js';\nimport LiveRegion from '../live-region/index.js';\n\ninterface DropdownFooter {\n content?: React.ReactNode | null;\n hasItems?: boolean;\n id?: string;\n}\n\nconst DropdownFooter: React.FC<DropdownFooter> = ({ content, id, hasItems = true }: DropdownFooter) => (\n <div className={clsx(styles.root, { [styles.hidden]: content === null, [styles['no-items']]: !hasItems })}>\n <LiveRegion visible={true} tagName=\"div\" id={id}>\n {content && <DropdownStatus>{content}</DropdownStatus>}\n </LiveRegion>\n </div>\n);\n\nexport default DropdownFooter;\n"]}
@@ -6,6 +6,7 @@ export interface LiveRegionProps extends ScreenreaderOnlyProps {
6
6
  visible?: boolean;
7
7
  tagName?: 'span' | 'div';
8
8
  children: React.ReactNode;
9
+ id?: string;
9
10
  }
10
11
  /**
11
12
  * The live region is hidden in the layout, but visible for screen readers.
@@ -42,5 +43,5 @@ export interface LiveRegionProps extends ScreenreaderOnlyProps {
42
43
  */
43
44
  declare const _default: React.MemoExoticComponent<typeof LiveRegion>;
44
45
  export default _default;
45
- declare function LiveRegion({ assertive, delay, visible, tagName: TagName, children, ...restProps }: LiveRegionProps): JSX.Element;
46
+ declare function LiveRegion({ assertive, delay, visible, tagName: TagName, children, id, ...restProps }: LiveRegionProps): JSX.Element;
46
47
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/components/live-region/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAkC,MAAM,OAAO,CAAC;AACvD,OAAyB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAG/E,MAAM,WAAW,eAAgB,SAAQ,qBAAqB;IAC5D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;;AACH,wBAAgC;AAEhC,iBAAS,UAAU,CAAC,EAClB,SAAiB,EACjB,KAAU,EACV,OAAe,EACf,OAAO,EAAE,OAAgB,EACzB,QAAQ,EACR,GAAG,SAAS,EACb,EAAE,eAAe,eA0DjB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/components/live-region/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAkC,MAAM,OAAO,CAAC;AACvD,OAAyB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAG/E,MAAM,WAAW,eAAgB,SAAQ,qBAAqB;IAC5D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;;AACH,wBAAgC;AAEhC,iBAAS,UAAU,CAAC,EAClB,SAAiB,EACjB,KAAU,EACV,OAAe,EACf,OAAO,EAAE,OAAgB,EACzB,QAAQ,EACR,EAAE,EACF,GAAG,SAAS,EACb,EAAE,eAAe,eA8DjB"}
@@ -41,7 +41,7 @@ import styles from './styles.css.js';
41
41
  */
42
42
  export default memo(LiveRegion);
43
43
  function LiveRegion(_a) {
44
- var { assertive = false, delay = 10, visible = false, tagName: TagName = 'span', children } = _a, restProps = __rest(_a, ["assertive", "delay", "visible", "tagName", "children"]);
44
+ var { assertive = false, delay = 10, visible = false, tagName: TagName = 'span', children, id } = _a, restProps = __rest(_a, ["assertive", "delay", "visible", "tagName", "children", "id"]);
45
45
  const sourceRef = useRef(null);
46
46
  const targetRef = useRef(null);
47
47
  /*
@@ -82,7 +82,7 @@ function LiveRegion(_a) {
82
82
  };
83
83
  });
84
84
  return (React.createElement(React.Fragment, null,
85
- visible && React.createElement(TagName, { ref: sourceRef }, children),
85
+ visible && (React.createElement(TagName, { ref: sourceRef, id: id }, children)),
86
86
  React.createElement(ScreenreaderOnly, Object.assign({}, restProps, { className: clsx(styles.root, restProps.className) }),
87
87
  !visible && (React.createElement(TagName, { ref: sourceRef, "aria-hidden": "true" }, children)),
88
88
  React.createElement("span", { ref: targetRef, "aria-atomic": "true", "aria-live": assertive ? 'assertive' : 'polite' }))));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/components/live-region/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;;AAEtC,0DAA0D;AAE1D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,gBAA2C,MAAM,sBAAsB,CAAC;AAC/E,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAUrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAe,IAAI,CAAC,UAAU,CAAC,CAAC;AAEhC,SAAS,UAAU,CAAC,EAOF;QAPE,EAClB,SAAS,GAAG,KAAK,EACjB,KAAK,GAAG,EAAE,EACV,OAAO,GAAG,KAAK,EACf,OAAO,EAAE,OAAO,GAAG,MAAM,EACzB,QAAQ,OAEQ,EADb,SAAS,cANM,wDAOnB,CADa;IAEZ,MAAM,SAAS,GAAG,MAAM,CAAmC,IAAI,CAAC,CAAC;IACjE,MAAM,SAAS,GAAG,MAAM,CAAmC,IAAI,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;AAC1F,SAAS,gBAAgB,CAAC,IAAiB;IACzC,OAAO,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;AAC5D,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n/* eslint-disable @cloudscape-design/prefer-live-region */\n\nimport clsx from 'clsx';\nimport React, { memo, useEffect, useRef } from 'react';\nimport ScreenreaderOnly, { ScreenreaderOnlyProps } from '../screenreader-only';\nimport styles from './styles.css.js';\n\nexport interface LiveRegionProps extends ScreenreaderOnlyProps {\n assertive?: boolean;\n delay?: number;\n visible?: boolean;\n tagName?: 'span' | 'div';\n children: React.ReactNode;\n}\n\n/**\n * The live region is hidden in the layout, but visible for screen readers.\n * It's purpose it to announce changes e.g. when custom navigation logic is used.\n *\n * The way live region works differently in different browsers and screen readers and\n * it is recommended to manually test every new implementation.\n *\n * If you notice there are different words being merged together,\n * check if there are text nodes not being wrapped in elements, like:\n * <LiveRegion>\n * {title}\n * <span><Details /></span>\n * </LiveRegion>\n *\n * To fix, wrap \"title\" in an element:\n * <LiveRegion>\n * <span>{title}</span>\n * <span><Details /></span>\n * </LiveRegion>\n *\n * Or create a single text node if possible:\n * <LiveRegion>\n * {`${title} ${details}`}\n * </LiveRegion>\n *\n * The live region is always atomic, because non-atomic regions can be treated by screen readers\n * differently and produce unexpected results. To imitate non-atomic announcements simply use\n * multiple live regions:\n * <>\n * <LiveRegion>{title}</LiveRegion>\n * <LiveRegion><Details /></LiveRegion>\n * </>\n */\nexport default memo(LiveRegion);\n\nfunction LiveRegion({\n assertive = false,\n delay = 10,\n visible = false,\n tagName: TagName = 'span',\n children,\n ...restProps\n}: LiveRegionProps) {\n const sourceRef = useRef<HTMLSpanElement & HTMLDivElement>(null);\n const targetRef = useRef<HTMLSpanElement & HTMLDivElement>(null);\n\n /*\n When React state changes, React often produces too many DOM updates, causing NVDA to\n issue many announcements for the same logical event (See https://github.com/nvaccess/nvda/issues/7996).\n\n The code below imitates a debouncing, scheduling a callback every time new React state\n update is detected. When a callback resolves, it copies content from a muted element\n to the live region, which is recognized by screen readers as an update.\n\n If the use case requires no announcement to be ignored, use delay = 0, but ensure it\n does not impact the performance. If it does, prefer using a string as children prop.\n */\n useEffect(() => {\n function updateLiveRegion() {\n if (targetRef.current && sourceRef.current) {\n const sourceContent = extractInnerText(sourceRef.current);\n const targetContent = extractInnerText(targetRef.current);\n if (targetContent !== sourceContent) {\n // The aria-atomic does not work properly in Voice Over, causing\n // certain parts of the content to be ignored. To fix that,\n // we assign the source text content as a single node.\n targetRef.current.innerText = sourceContent;\n }\n }\n }\n\n let timeoutId: null | number;\n if (delay) {\n timeoutId = setTimeout(updateLiveRegion, delay);\n } else {\n updateLiveRegion();\n }\n\n return () => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n };\n });\n\n return (\n <>\n {visible && <TagName ref={sourceRef}>{children}</TagName>}\n\n <ScreenreaderOnly {...restProps} className={clsx(styles.root, restProps.className)}>\n {!visible && (\n <TagName ref={sourceRef} aria-hidden=\"true\">\n {children}\n </TagName>\n )}\n\n <span ref={targetRef} aria-atomic=\"true\" aria-live={assertive ? 'assertive' : 'polite'}></span>\n </ScreenreaderOnly>\n </>\n );\n}\n\n// This only extracts text content from the node including all its children which is enough for now.\n// To make it more powerful, it is possible to create a more sophisticated extractor with respect to\n// ARIA properties to ignore aria-hidden nodes and read ARIA labels from the live content.\nfunction extractInnerText(node: HTMLElement) {\n return (node.innerText || '').replace(/\\s+/g, ' ').trim();\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/components/live-region/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;;AAEtC,0DAA0D;AAE1D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,SA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CAAC,CAAC,CAAC;IAEH,OAAO,CACL;QACG,OAAO,IAAI,CACV,oBAAC,OAAO,IAAC,GAAG,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,IAC5B,QAAQ,CACD,CACX;QAED,oBAAC,gBAAgB,oBAAK,SAAS,IAAE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,SAAS,CAAC;YAC/E,CAAC,OAAO,IAAI,CACX,oBAAC,OAAO,IAAC,GAAG,EAAE,SAAS,iBAAc,MAAM,IACxC,QAAQ,CACD,CACX;YAED,8BAAM,GAAG,EAAE,SAAS,iBAAc,MAAM,eAAY,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,GAAS,CAC9E,CAClB,CACJ,CAAC;AACJ,CAAC;AAED,oGAAoG;AACpG,oGAAoG;AACpG,0FAA0F;AAC1F,SAAS,gBAAgB,CAAC,IAAiB;IACzC,OAAO,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;AAC5D,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n/* eslint-disable @cloudscape-design/prefer-live-region */\n\nimport clsx from 'clsx';\nimport React, { memo, useEffect, useRef } from 'react';\nimport ScreenreaderOnly, { ScreenreaderOnlyProps } from '../screenreader-only';\nimport styles from './styles.css.js';\n\nexport interface LiveRegionProps extends ScreenreaderOnlyProps {\n assertive?: boolean;\n delay?: number;\n visible?: boolean;\n tagName?: 'span' | 'div';\n children: React.ReactNode;\n id?: string;\n}\n\n/**\n * The live region is hidden in the layout, but visible for screen readers.\n * It's purpose it to announce changes e.g. when custom navigation logic is used.\n *\n * The way live region works differently in different browsers and screen readers and\n * it is recommended to manually test every new implementation.\n *\n * If you notice there are different words being merged together,\n * check if there are text nodes not being wrapped in elements, like:\n * <LiveRegion>\n * {title}\n * <span><Details /></span>\n * </LiveRegion>\n *\n * To fix, wrap \"title\" in an element:\n * <LiveRegion>\n * <span>{title}</span>\n * <span><Details /></span>\n * </LiveRegion>\n *\n * Or create a single text node if possible:\n * <LiveRegion>\n * {`${title} ${details}`}\n * </LiveRegion>\n *\n * The live region is always atomic, because non-atomic regions can be treated by screen readers\n * differently and produce unexpected results. To imitate non-atomic announcements simply use\n * multiple live regions:\n * <>\n * <LiveRegion>{title}</LiveRegion>\n * <LiveRegion><Details /></LiveRegion>\n * </>\n */\nexport default memo(LiveRegion);\n\nfunction LiveRegion({\n assertive = false,\n delay = 10,\n visible = false,\n tagName: TagName = 'span',\n children,\n id,\n ...restProps\n}: LiveRegionProps) {\n const sourceRef = useRef<HTMLSpanElement & HTMLDivElement>(null);\n const targetRef = useRef<HTMLSpanElement & HTMLDivElement>(null);\n\n /*\n When React state changes, React often produces too many DOM updates, causing NVDA to\n issue many announcements for the same logical event (See https://github.com/nvaccess/nvda/issues/7996).\n\n The code below imitates a debouncing, scheduling a callback every time new React state\n update is detected. When a callback resolves, it copies content from a muted element\n to the live region, which is recognized by screen readers as an update.\n\n If the use case requires no announcement to be ignored, use delay = 0, but ensure it\n does not impact the performance. If it does, prefer using a string as children prop.\n */\n useEffect(() => {\n function updateLiveRegion() {\n if (targetRef.current && sourceRef.current) {\n const sourceContent = extractInnerText(sourceRef.current);\n const targetContent = extractInnerText(targetRef.current);\n if (targetContent !== sourceContent) {\n // The aria-atomic does not work properly in Voice Over, causing\n // certain parts of the content to be ignored. To fix that,\n // we assign the source text content as a single node.\n targetRef.current.innerText = sourceContent;\n }\n }\n }\n\n let timeoutId: null | number;\n if (delay) {\n timeoutId = setTimeout(updateLiveRegion, delay);\n } else {\n updateLiveRegion();\n }\n\n return () => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n };\n });\n\n return (\n <>\n {visible && (\n <TagName ref={sourceRef} id={id}>\n {children}\n </TagName>\n )}\n\n <ScreenreaderOnly {...restProps} className={clsx(styles.root, restProps.className)}>\n {!visible && (\n <TagName ref={sourceRef} aria-hidden=\"true\">\n {children}\n </TagName>\n )}\n\n <span ref={targetRef} aria-atomic=\"true\" aria-live={assertive ? 'assertive' : 'polite'}></span>\n </ScreenreaderOnly>\n </>\n );\n}\n\n// This only extracts text content from the node including all its children which is enough for now.\n// To make it more powerful, it is possible to create a more sophisticated extractor with respect to\n// ARIA properties to ignore aria-hidden nodes and read ARIA labels from the live content.\nfunction extractInnerText(node: HTMLElement) {\n return (node.innerText || '').replace(/\\s+/g, ' ').trim();\n}\n"]}
@@ -22,6 +22,7 @@ export interface OptionsListProps extends BaseComponentProps {
22
22
  position?: React.CSSProperties['position'];
23
23
  role?: 'listbox' | 'list' | 'menu';
24
24
  ariaLabelledby?: string;
25
+ ariaDescribedby?: string;
25
26
  decreaseTopMargin?: boolean;
26
27
  }
27
28
  declare const _default: React.ForwardRefExoticComponent<OptionsListProps & React.RefAttributes<HTMLUListElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/components/options-list/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAgB,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAEL,yBAAyB,EACzB,sBAAsB,EACtB,aAAa,EAEd,MAAM,cAAc,CAAC;AAItB,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;IAC1D,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC;;OAEG;IACH,UAAU,CAAC,EAAE,yBAAyB,CAAC;IACvC,SAAS,CAAC,EAAE,sBAAsB,CAAC,aAAa,CAAC,CAAC;IAClD,MAAM,CAAC,EAAE,yBAAyB,CAAC;QAAE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AAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IAC3C,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;;AAmFD,wBAA6C"}
@@ -15,7 +15,7 @@ const getItemIndex = (containerRef, event) => {
15
15
  return mouseTarget ? parseInt(mouseTarget) : -1;
16
16
  };
17
17
  const OptionsList = (_a, ref) => {
18
- var { open, children, nativeAttributes = {}, onKeyDown, onBlur, onFocus, onLoadMore, onMouseUp, onMouseMove, position = 'relative', role = 'listbox', decreaseTopMargin = false, ariaLabelledby } = _a, restProps = __rest(_a, ["open", "children", "nativeAttributes", "onKeyDown", "onBlur", "onFocus", "onLoadMore", "onMouseUp", "onMouseMove", "position", "role", "decreaseTopMargin", "ariaLabelledby"]);
18
+ var { open, children, nativeAttributes = {}, onKeyDown, onBlur, onFocus, onLoadMore, onMouseUp, onMouseMove, position = 'relative', role = 'listbox', decreaseTopMargin = false, ariaLabelledby, ariaDescribedby } = _a, restProps = __rest(_a, ["open", "children", "nativeAttributes", "onKeyDown", "onBlur", "onFocus", "onLoadMore", "onMouseUp", "onMouseMove", "position", "role", "decreaseTopMargin", "ariaLabelledby", "ariaDescribedby"]);
19
19
  const baseProps = getBaseProps(restProps);
20
20
  const menuRef = useRef(null);
21
21
  const handleScroll = () => {
@@ -38,7 +38,7 @@ const OptionsList = (_a, ref) => {
38
38
  [styles['decrease-top-margin']]: decreaseTopMargin,
39
39
  });
40
40
  const mergedRef = useMergeRefs(ref, menuRef);
41
- return (React.createElement("ul", Object.assign({}, baseProps, nativeAttributes, { className: className, ref: mergedRef, style: { position }, role: role, onScroll: handleScroll, onKeyDown: event => onKeyDown && fireKeyboardEvent(onKeyDown, event), onMouseMove: event => onMouseMove === null || onMouseMove === void 0 ? void 0 : onMouseMove(getItemIndex(menuRef, event)), onMouseUp: event => onMouseUp === null || onMouseUp === void 0 ? void 0 : onMouseUp(getItemIndex(menuRef, event)), onBlur: event => fireNonCancelableEvent(onBlur, { relatedTarget: event.relatedTarget }), onFocus: () => fireNonCancelableEvent(onFocus), tabIndex: -1, "aria-labelledby": ariaLabelledby }), open && children));
41
+ return (React.createElement("ul", Object.assign({}, baseProps, nativeAttributes, { className: className, ref: mergedRef, style: { position }, role: role, onScroll: handleScroll, onKeyDown: event => onKeyDown && fireKeyboardEvent(onKeyDown, event), onMouseMove: event => onMouseMove === null || onMouseMove === void 0 ? void 0 : onMouseMove(getItemIndex(menuRef, event)), onMouseUp: event => onMouseUp === null || onMouseUp === void 0 ? void 0 : onMouseUp(getItemIndex(menuRef, event)), onBlur: event => fireNonCancelableEvent(onBlur, { relatedTarget: event.relatedTarget }), onFocus: () => fireNonCancelableEvent(onFocus), tabIndex: -1, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby }), open && children));
42
42
  };
43
43
  export default React.forwardRef(OptionsList);
44
44
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/components/options-list/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAsB,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EACL,sBAAsB,EAItB,iBAAiB,GAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,MAAM,MAAM,iBAAiB,CAAC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","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport { useMergeRefs } from '../../hooks/use-merge-refs';\nimport React, { useEffect, useRef } from 'react';\nimport { BaseComponentProps, getBaseProps } from '../../base-component';\nimport {\n fireNonCancelableEvent,\n NonCancelableEventHandler,\n CancelableEventHandler,\n BaseKeyDetail,\n fireKeyboardEvent,\n} from '../../events';\nimport { findUpUntil } from '../../utils/dom';\nimport styles from './styles.css.js';\n\nexport interface OptionsListProps extends BaseComponentProps {\n open?: boolean;\n /**\n * Options list\n */\n children: React.ReactNode;\n nativeAttributes?: Record<string, any>;\n /**\n * Called when more items need to be loaded.\n */\n onLoadMore?: NonCancelableEventHandler;\n onKeyDown?: CancelableEventHandler<BaseKeyDetail>;\n onBlur?: NonCancelableEventHandler<{ relatedTarget: Node | null }>;\n onFocus?: NonCancelableEventHandler;\n onMouseUp?: (itemIndex: number) => void;\n onMouseMove?: (itemIndex: number) => void;\n position?: React.CSSProperties['position'];\n role?: 'listbox' | 'list' | 'menu';\n ariaLabelledby?: string;\n decreaseTopMargin?: boolean;\n}\n\nconst BOTTOM_TRIGGER_OFFSET = 80;\n\nconst getItemIndex = (containerRef: React.RefObject<HTMLElement>, event: React.MouseEvent) => {\n const target = findUpUntil(\n event.target as HTMLElement,\n element => element === containerRef.current || !!element.dataset.mouseTarget\n );\n const mouseTarget = target?.dataset.mouseTarget;\n return mouseTarget ? parseInt(mouseTarget) : -1;\n};\n\nconst OptionsList = (\n {\n open,\n children,\n nativeAttributes = {},\n onKeyDown,\n onBlur,\n onFocus,\n onLoadMore,\n onMouseUp,\n onMouseMove,\n position = 'relative',\n role = 'listbox',\n decreaseTopMargin = false,\n ariaLabelledby,\n ...restProps\n }: OptionsListProps,\n ref: React.Ref<HTMLUListElement>\n) => {\n const baseProps = getBaseProps(restProps);\n const menuRef = useRef<HTMLUListElement>(null);\n\n const handleScroll = () => {\n const scrollContainer = menuRef?.current;\n if (scrollContainer) {\n const bottomEdgePosition = scrollContainer.scrollTop + scrollContainer.clientHeight;\n const remainingScrollHeight = scrollContainer.scrollHeight - bottomEdgePosition;\n if (remainingScrollHeight < BOTTOM_TRIGGER_OFFSET) {\n fireNonCancelableEvent(onLoadMore);\n }\n }\n };\n\n useEffect(() => {\n if (!open) {\n return;\n }\n handleScroll();\n });\n\n const className = clsx(styles['options-list'], {\n [styles['decrease-top-margin']]: decreaseTopMargin,\n });\n\n const mergedRef = useMergeRefs(ref, menuRef);\n\n return (\n <ul\n {...baseProps}\n {...nativeAttributes}\n className={className}\n ref={mergedRef}\n style={{ position }}\n role={role}\n onScroll={handleScroll}\n onKeyDown={event => onKeyDown && fireKeyboardEvent(onKeyDown, event)}\n onMouseMove={event => onMouseMove?.(getItemIndex(menuRef, event))}\n onMouseUp={event => onMouseUp?.(getItemIndex(menuRef, event))}\n onBlur={event => fireNonCancelableEvent(onBlur, { relatedTarget: event.relatedTarget })}\n onFocus={() => fireNonCancelableEvent(onFocus)}\n tabIndex={-1}\n aria-labelledby={ariaLabelledby}\n >\n {open && children}\n </ul>\n );\n};\n\nexport default React.forwardRef(OptionsList);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/components/options-list/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAsB,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EACL,sBAAsB,EAItB,iBAAiB,GAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAyBrC,MAAM,qBAAqB,G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C","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport { useMergeRefs } from '../../hooks/use-merge-refs';\nimport React, { useEffect, useRef } from 'react';\nimport { BaseComponentProps, getBaseProps } from '../../base-component';\nimport {\n fireNonCancelableEvent,\n NonCancelableEventHandler,\n CancelableEventHandler,\n BaseKeyDetail,\n fireKeyboardEvent,\n} from '../../events';\nimport { findUpUntil } from '../../utils/dom';\nimport styles from './styles.css.js';\n\nexport interface OptionsListProps extends BaseComponentProps {\n open?: boolean;\n /**\n * Options list\n */\n children: React.ReactNode;\n nativeAttributes?: Record<string, any>;\n /**\n * Called when more items need to be loaded.\n */\n onLoadMore?: NonCancelableEventHandler;\n onKeyDown?: CancelableEventHandler<BaseKeyDetail>;\n onBlur?: NonCancelableEventHandler<{ relatedTarget: Node | null }>;\n onFocus?: NonCancelableEventHandler;\n onMouseUp?: (itemIndex: number) => void;\n onMouseMove?: (itemIndex: number) => void;\n position?: React.CSSProperties['position'];\n role?: 'listbox' | 'list' | 'menu';\n ariaLabelledby?: string;\n ariaDescribedby?: string;\n decreaseTopMargin?: boolean;\n}\n\nconst BOTTOM_TRIGGER_OFFSET = 80;\n\nconst getItemIndex = (containerRef: React.RefObject<HTMLElement>, event: React.MouseEvent) => {\n const target = findUpUntil(\n event.target as HTMLElement,\n element => element === containerRef.current || !!element.dataset.mouseTarget\n );\n const mouseTarget = target?.dataset.mouseTarget;\n return mouseTarget ? parseInt(mouseTarget) : -1;\n};\n\nconst OptionsList = (\n {\n open,\n children,\n nativeAttributes = {},\n onKeyDown,\n onBlur,\n onFocus,\n onLoadMore,\n onMouseUp,\n onMouseMove,\n position = 'relative',\n role = 'listbox',\n decreaseTopMargin = false,\n ariaLabelledby,\n ariaDescribedby,\n ...restProps\n }: OptionsListProps,\n ref: React.Ref<HTMLUListElement>\n) => {\n const baseProps = getBaseProps(restProps);\n const menuRef = useRef<HTMLUListElement>(null);\n\n const handleScroll = () => {\n const scrollContainer = menuRef?.current;\n if (scrollContainer) {\n const bottomEdgePosition = scrollContainer.scrollTop + scrollContainer.clientHeight;\n const remainingScrollHeight = scrollContainer.scrollHeight - bottomEdgePosition;\n if (remainingScrollHeight < BOTTOM_TRIGGER_OFFSET) {\n fireNonCancelableEvent(onLoadMore);\n }\n }\n };\n\n useEffect(() => {\n if (!open) {\n return;\n }\n handleScroll();\n });\n\n const className = clsx(styles['options-list'], {\n [styles['decrease-top-margin']]: decreaseTopMargin,\n });\n\n const mergedRef = useMergeRefs(ref, menuRef);\n\n return (\n <ul\n {...baseProps}\n {...nativeAttributes}\n className={className}\n ref={mergedRef}\n style={{ position }}\n role={role}\n onScroll={handleScroll}\n onKeyDown={event => onKeyDown && fireKeyboardEvent(onKeyDown, event)}\n onMouseMove={event => onMouseMove?.(getItemIndex(menuRef, event))}\n onMouseUp={event => onMouseUp?.(getItemIndex(menuRef, event))}\n onBlur={event => fireNonCancelableEvent(onBlur, { relatedTarget: event.relatedTarget })}\n onFocus={() => fireNonCancelableEvent(onFocus)}\n tabIndex={-1}\n aria-labelledby={ariaLabelledby}\n aria-describedby={ariaDescribedby}\n >\n {open && children}\n </ul>\n );\n};\n\nexport default React.forwardRef(OptionsList);\n"]}
@@ -1,6 +1,6 @@
1
1
 
2
2
  export var PACKAGE_SOURCE = 'components';
3
- export var PACKAGE_VERSION = '3.0.0 (f0bd2be)';
3
+ export var PACKAGE_VERSION = '3.0.0 (b823b82)';
4
4
  export var THEME = 'open-source-visual-refresh';
5
5
  export var ALWAYS_VISUAL_REFRESH = true;
6
6
 
@@ -1060,8 +1060,8 @@ module.exports.preset = {
1060
1060
  "dark": "{colorBackgroundControlDisabled}"
1061
1061
  },
1062
1062
  "colorBorderDividerActive": {
1063
- "light": "{colorGrey500}",
1064
- "dark": "{colorGrey500}"
1063
+ "light": "{colorGrey900}",
1064
+ "dark": "{colorGrey100}"
1065
1065
  },
1066
1066
  "colorBorderDividerDefault": {
1067
1067
  "light": "{colorGrey200}",
@@ -1164,8 +1164,8 @@ module.exports.preset = {
1164
1164
  "dark": "{colorGrey450}"
1165
1165
  },
1166
1166
  "colorBorderDividerInteractiveDefault": {
1167
- "light": "{colorBorderDividerDefault}",
1168
- "dark": "{colorBorderDividerDefault}"
1167
+ "light": "{colorTextInteractiveDefault}",
1168
+ "dark": "{colorTextInteractiveDefault}"
1169
1169
  },
1170
1170
  "colorBorderTabsDivider": {
1171
1171
  "light": "{colorGrey200}",
@@ -1587,6 +1587,22 @@ module.exports.preset = {
1587
1587
  "light": "{colorBlue200}",
1588
1588
  "dark": "{colorBlue600}"
1589
1589
  },
1590
+ "colorDropzoneBackgroundActive": {
1591
+ "light": "{colorGrey200}",
1592
+ "dark": "{colorGrey500}"
1593
+ },
1594
+ "colorDropzoneBackgroundHover": {
1595
+ "light": "{colorBlue200}",
1596
+ "dark": "{colorBlue600}"
1597
+ },
1598
+ "colorDropzoneTextActive": {
1599
+ "light": "{colorGrey550}",
1600
+ "dark": "{colorGrey800}"
1601
+ },
1602
+ "colorDropzoneTextHover": {
1603
+ "light": "{colorBlue800}",
1604
+ "dark": "{colorWhite}"
1605
+ },
1590
1606
  "fontBodyMLineHeight": "22px",
1591
1607
  "fontBodyMSize": "14px",
1592
1608
  "fontBodySLetterSpacing": "0.005em",
@@ -1664,6 +1680,7 @@ module.exports.preset = {
1664
1680
  "borderRadiusControlCircularFocusRing": "4px",
1665
1681
  "borderRadiusControlDefaultFocusRing": "4px",
1666
1682
  "borderRadiusDropdown": "{borderRadiusItem}",
1683
+ "borderRadiusDropzone": "12px",
1667
1684
  "borderRadiusFlashbar": "12px",
1668
1685
  "borderRadiusItem": "8px",
1669
1686
  "borderRadiusInput": "8px",
@@ -2270,6 +2287,14 @@ module.exports.preset = {
2270
2287
  "shadowStickyEmbedded": {
2271
2288
  "light": "0px 2px 0px 0px #e9ebed, 0px 16px 16px -12px rgba(0, 7, 22, 0.10)",
2272
2289
  "dark": "0px 2px 0px 0px #414d5c, 0px 16px 16px -12px rgba(0, 7, 22, 1)"
2290
+ },
2291
+ "shadowStickyColumnFirst": {
2292
+ "light": "4px 0px 20px 1px rgba(0, 7, 22, 0.1)",
2293
+ "dark": "0px 4px 20px 1px rgba(0, 7, 22, 1)"
2294
+ },
2295
+ "shadowStickyColumnLast": {
2296
+ "light": "-4px 0 20px 1px rgba(0, 28, 36, 0.1)",
2297
+ "dark": "0px 4px 20px 1px rgba(0, 7, 22, 1)"
2273
2298
  }
2274
2299
  },
2275
2300
  "contexts": {
@@ -2996,8 +3021,8 @@ module.exports.preset = {
2996
3021
  "dark": "{colorBackgroundControlDisabled}"
2997
3022
  },
2998
3023
  "colorBorderDividerActive": {
2999
- "light": "{colorGrey500}",
3000
- "dark": "{colorGrey500}"
3024
+ "light": "{colorGrey100}",
3025
+ "dark": "{colorGrey100}"
3001
3026
  },
3002
3027
  "colorBorderDividerDefault": {
3003
3028
  "light": "{colorGrey600}",
@@ -3100,8 +3125,8 @@ module.exports.preset = {
3100
3125
  "dark": "{colorGrey450}"
3101
3126
  },
3102
3127
  "colorBorderDividerInteractiveDefault": {
3103
- "light": "{colorBorderDividerDefault}",
3104
- "dark": "{colorBorderDividerDefault}"
3128
+ "light": "{colorTextInteractiveDefault}",
3129
+ "dark": "{colorTextInteractiveDefault}"
3105
3130
  },
3106
3131
  "colorBorderTabsDivider": {
3107
3132
  "light": "{colorGrey600}",
@@ -3522,6 +3547,22 @@ module.exports.preset = {
3522
3547
  "colorDragPlaceholderHover": {
3523
3548
  "light": "{colorBlue600}",
3524
3549
  "dark": "{colorBlue600}"
3550
+ },
3551
+ "colorDropzoneBackgroundActive": {
3552
+ "light": "{colorGrey500}",
3553
+ "dark": "{colorGrey500}"
3554
+ },
3555
+ "colorDropzoneBackgroundHover": {
3556
+ "light": "{colorBlue600}",
3557
+ "dark": "{colorBlue600}"
3558
+ },
3559
+ "colorDropzoneTextActive": {
3560
+ "light": "{colorGrey800}",
3561
+ "dark": "{colorGrey800}"
3562
+ },
3563
+ "colorDropzoneTextHover": {
3564
+ "light": "{colorWhite}",
3565
+ "dark": "{colorWhite}"
3525
3566
  }
3526
3567
  }
3527
3568
  },
@@ -3589,6 +3630,14 @@ module.exports.preset = {
3589
3630
  "light": "0px 2px 0px 0px #414d5c, 0px 16px 16px -12px rgba(0, 7, 22, 1)",
3590
3631
  "dark": "0px 2px 0px 0px #414d5c, 0px 16px 16px -12px rgba(0, 7, 22, 1)"
3591
3632
  },
3633
+ "shadowStickyColumnFirst": {
3634
+ "light": "0px 4px 20px 1px rgba(0, 7, 22, 1)",
3635
+ "dark": "0px 4px 20px 1px rgba(0, 7, 22, 1)"
3636
+ },
3637
+ "shadowStickyColumnLast": {
3638
+ "light": "0px 4px 20px 1px rgba(0, 7, 22, 1)",
3639
+ "dark": "0px 4px 20px 1px rgba(0, 7, 22, 1)"
3640
+ },
3592
3641
  "colorGreyOpaque25": {
3593
3642
  "light": "rgba(255, 255, 255, 0.25)",
3594
3643
  "dark": "rgba(255, 255, 255, 0.25)"
@@ -3950,8 +3999,8 @@ module.exports.preset = {
3950
3999
  "dark": "{colorBackgroundControlDisabled}"
3951
4000
  },
3952
4001
  "colorBorderDividerActive": {
3953
- "light": "{colorGrey500}",
3954
- "dark": "{colorGrey500}"
4002
+ "light": "{colorGrey100}",
4003
+ "dark": "{colorGrey100}"
3955
4004
  },
3956
4005
  "colorBorderDividerDefault": {
3957
4006
  "light": "{colorGrey600}",
@@ -4054,8 +4103,8 @@ module.exports.preset = {
4054
4103
  "dark": "{colorGrey450}"
4055
4104
  },
4056
4105
  "colorBorderDividerInteractiveDefault": {
4057
- "light": "{colorBorderDividerDefault}",
4058
- "dark": "{colorBorderDividerDefault}"
4106
+ "light": "{colorTextInteractiveDefault}",
4107
+ "dark": "{colorTextInteractiveDefault}"
4059
4108
  },
4060
4109
  "colorBorderTabsDivider": {
4061
4110
  "light": "{colorGrey600}",
@@ -4476,6 +4525,22 @@ module.exports.preset = {
4476
4525
  "colorDragPlaceholderHover": {
4477
4526
  "light": "{colorBlue600}",
4478
4527
  "dark": "{colorBlue600}"
4528
+ },
4529
+ "colorDropzoneBackgroundActive": {
4530
+ "light": "{colorGrey500}",
4531
+ "dark": "{colorGrey500}"
4532
+ },
4533
+ "colorDropzoneBackgroundHover": {
4534
+ "light": "{colorBlue600}",
4535
+ "dark": "{colorBlue600}"
4536
+ },
4537
+ "colorDropzoneTextActive": {
4538
+ "light": "{colorGrey800}",
4539
+ "dark": "{colorGrey800}"
4540
+ },
4541
+ "colorDropzoneTextHover": {
4542
+ "light": "{colorWhite}",
4543
+ "dark": "{colorWhite}"
4479
4544
  }
4480
4545
  }
4481
4546
  },
@@ -4844,8 +4909,8 @@ module.exports.preset = {
4844
4909
  "dark": "{colorBackgroundControlDisabled}"
4845
4910
  },
4846
4911
  "colorBorderDividerActive": {
4847
- "light": "{colorGrey500}",
4848
- "dark": "{colorGrey500}"
4912
+ "light": "{colorGrey900}",
4913
+ "dark": "{colorGrey100}"
4849
4914
  },
4850
4915
  "colorBorderDividerDefault": {
4851
4916
  "light": "{colorGrey200}",
@@ -4948,8 +5013,8 @@ module.exports.preset = {
4948
5013
  "dark": "{colorGrey450}"
4949
5014
  },
4950
5015
  "colorBorderDividerInteractiveDefault": {
4951
- "light": "{colorBorderDividerDefault}",
4952
- "dark": "{colorBorderDividerDefault}"
5016
+ "light": "{colorTextInteractiveDefault}",
5017
+ "dark": "{colorTextInteractiveDefault}"
4953
5018
  },
4954
5019
  "colorBorderTabsDivider": {
4955
5020
  "light": "{colorGrey200}",
@@ -5370,6 +5435,22 @@ module.exports.preset = {
5370
5435
  "colorDragPlaceholderHover": {
5371
5436
  "light": "{colorBlue200}",
5372
5437
  "dark": "{colorBlue600}"
5438
+ },
5439
+ "colorDropzoneBackgroundActive": {
5440
+ "light": "{colorGrey200}",
5441
+ "dark": "{colorGrey500}"
5442
+ },
5443
+ "colorDropzoneBackgroundHover": {
5444
+ "light": "{colorBlue200}",
5445
+ "dark": "{colorBlue600}"
5446
+ },
5447
+ "colorDropzoneTextActive": {
5448
+ "light": "{colorGrey550}",
5449
+ "dark": "{colorGrey800}"
5450
+ },
5451
+ "colorDropzoneTextHover": {
5452
+ "light": "{colorBlue800}",
5453
+ "dark": "{colorWhite}"
5373
5454
  }
5374
5455
  }
5375
5456
  },
@@ -5738,8 +5819,8 @@ module.exports.preset = {
5738
5819
  "dark": "{colorBackgroundControlDisabled}"
5739
5820
  },
5740
5821
  "colorBorderDividerActive": {
5741
- "light": "{colorGrey500}",
5742
- "dark": "{colorGrey500}"
5822
+ "light": "{colorGrey900}",
5823
+ "dark": "{colorGrey100}"
5743
5824
  },
5744
5825
  "colorBorderDividerDefault": {
5745
5826
  "light": "{colorGrey200}",
@@ -5842,8 +5923,8 @@ module.exports.preset = {
5842
5923
  "dark": "{colorGrey450}"
5843
5924
  },
5844
5925
  "colorBorderDividerInteractiveDefault": {
5845
- "light": "{colorBorderDividerDefault}",
5846
- "dark": "{colorBorderDividerDefault}"
5926
+ "light": "{colorTextInteractiveDefault}",
5927
+ "dark": "{colorTextInteractiveDefault}"
5847
5928
  },
5848
5929
  "colorBorderTabsDivider": {
5849
5930
  "light": "{colorGrey200}",
@@ -6264,6 +6345,22 @@ module.exports.preset = {
6264
6345
  "colorDragPlaceholderHover": {
6265
6346
  "light": "{colorBlue200}",
6266
6347
  "dark": "{colorBlue600}"
6348
+ },
6349
+ "colorDropzoneBackgroundActive": {
6350
+ "light": "{colorGrey200}",
6351
+ "dark": "{colorGrey500}"
6352
+ },
6353
+ "colorDropzoneBackgroundHover": {
6354
+ "light": "{colorBlue200}",
6355
+ "dark": "{colorBlue600}"
6356
+ },
6357
+ "colorDropzoneTextActive": {
6358
+ "light": "{colorGrey550}",
6359
+ "dark": "{colorGrey800}"
6360
+ },
6361
+ "colorDropzoneTextHover": {
6362
+ "light": "{colorBlue800}",
6363
+ "dark": "{colorWhite}"
6267
6364
  }
6268
6365
  }
6269
6366
  }
@@ -6645,6 +6742,10 @@ module.exports.preset = {
6645
6742
  "colorBoardPlaceholderHover": "color",
6646
6743
  "colorDragPlaceholderActive": "color",
6647
6744
  "colorDragPlaceholderHover": "color",
6745
+ "colorDropzoneBackgroundActive": "color",
6746
+ "colorDropzoneBackgroundHover": "color",
6747
+ "colorDropzoneTextActive": "color",
6748
+ "colorDropzoneTextHover": "color",
6648
6749
  "motionDurationExtraFast": "motion",
6649
6750
  "motionDurationExtraSlow": "motion",
6650
6751
  "motionDurationFast": "motion",
@@ -6793,7 +6894,9 @@ module.exports.preset = {
6793
6894
  "shadowSplitBottom": "color",
6794
6895
  "shadowSplitSide": "color",
6795
6896
  "shadowSticky": "color",
6796
- "shadowStickyEmbedded": "color"
6897
+ "shadowStickyEmbedded": "color",
6898
+ "shadowStickyColumnFirst": "color",
6899
+ "shadowStickyColumnLast": "color"
6797
6900
  }
6798
6901
  },
6799
6902
  "secondary": [],
@@ -7670,6 +7773,10 @@ module.exports.preset = {
7670
7773
  "colorBoardPlaceholderHover": "color-board-placeholder-hover",
7671
7774
  "colorDragPlaceholderActive": "color-drag-placeholder-active",
7672
7775
  "colorDragPlaceholderHover": "color-drag-placeholder-hover",
7776
+ "colorDropzoneBackgroundActive": "color-dropzone-background-active",
7777
+ "colorDropzoneBackgroundHover": "color-dropzone-background-hover",
7778
+ "colorDropzoneTextActive": "color-dropzone-text-active",
7779
+ "colorDropzoneTextHover": "color-dropzone-text-hover",
7673
7780
  "fontBodyMLineHeight": "font-body-m-line-height",
7674
7781
  "fontBodyMSize": "font-body-m-size",
7675
7782
  "fontBodySLetterSpacing": "font-body-s-letter-spacing",
@@ -7747,6 +7854,7 @@ module.exports.preset = {
7747
7854
  "borderRadiusControlCircularFocusRing": "border-radius-control-circular-focus-ring",
7748
7855
  "borderRadiusControlDefaultFocusRing": "border-radius-control-default-focus-ring",
7749
7856
  "borderRadiusDropdown": "border-radius-dropdown",
7857
+ "borderRadiusDropzone": "border-radius-dropzone",
7750
7858
  "borderRadiusFlashbar": "border-radius-flashbar",
7751
7859
  "borderRadiusItem": "border-radius-item",
7752
7860
  "borderRadiusInput": "border-radius-input",
@@ -7906,7 +8014,9 @@ module.exports.preset = {
7906
8014
  "shadowSplitBottom": "shadow-split-bottom",
7907
8015
  "shadowSplitSide": "shadow-split-side",
7908
8016
  "shadowSticky": "shadow-sticky",
7909
- "shadowStickyEmbedded": "shadow-sticky-embedded"
8017
+ "shadowStickyEmbedded": "shadow-sticky-embedded",
8018
+ "shadowStickyColumnFirst": "shadow-sticky-column-first",
8019
+ "shadowStickyColumnLast": "shadow-sticky-column-last"
7910
8020
  },
7911
8021
  "propertiesMap": {
7912
8022
  "colorAmazonOrange": "--color-amazon-orange-ds51uu",
@@ -8198,7 +8308,7 @@ module.exports.preset = {
8198
8308
  "colorBorderControlChecked": "--color-border-control-checked-4xvndc",
8199
8309
  "colorBorderControlDefault": "--color-border-control-default-m3lmsh",
8200
8310
  "colorBorderControlDisabled": "--color-border-control-disabled-vx8bco",
8201
- "colorBorderDividerActive": "--color-border-divider-active-nnnfx9",
8311
+ "colorBorderDividerActive": "--color-border-divider-active-t11l9l",
8202
8312
  "colorBorderDividerDefault": "--color-border-divider-default-7s2wjw",
8203
8313
  "colorBorderDividerPanelBottom": "--color-border-divider-panel-bottom-zrjpck",
8204
8314
  "colorBorderDividerPanelSide": "--color-border-divider-panel-side-yjkfcr",
@@ -8224,7 +8334,7 @@ module.exports.preset = {
8224
8334
  "colorBorderStatusInfo": "--color-border-status-info-546i7i",
8225
8335
  "colorBorderStatusSuccess": "--color-border-status-success-cqi45f",
8226
8336
  "colorBorderStatusWarning": "--color-border-status-warning-hg85ut",
8227
- "colorBorderDividerInteractiveDefault": "--color-border-divider-interactive-default-rcasvw",
8337
+ "colorBorderDividerInteractiveDefault": "--color-border-divider-interactive-default-0hdcst",
8228
8338
  "colorBorderTabsDivider": "--color-border-tabs-divider-69fx5i",
8229
8339
  "colorBorderTabsShadow": "--color-border-tabs-shadow-4lmh2z",
8230
8340
  "colorBorderTabsUnderline": "--color-border-tabs-underline-9bcfzu",
@@ -8330,6 +8440,10 @@ module.exports.preset = {
8330
8440
  "colorBoardPlaceholderHover": "--color-board-placeholder-hover-v1s7kq",
8331
8441
  "colorDragPlaceholderActive": "--color-drag-placeholder-active-fkpj7i",
8332
8442
  "colorDragPlaceholderHover": "--color-drag-placeholder-hover-3ohnz1",
8443
+ "colorDropzoneBackgroundActive": "--color-dropzone-background-active-g4zi07",
8444
+ "colorDropzoneBackgroundHover": "--color-dropzone-background-hover-j98f7z",
8445
+ "colorDropzoneTextActive": "--color-dropzone-text-active-aobpir",
8446
+ "colorDropzoneTextHover": "--color-dropzone-text-hover-ud2lnq",
8333
8447
  "fontBodyMLineHeight": "--font-body-m-line-height-i7xxvv",
8334
8448
  "fontBodyMSize": "--font-body-m-size-sregvd",
8335
8449
  "fontBodySLetterSpacing": "--font-body-s-letter-spacing-cy0oxj",
@@ -8407,6 +8521,7 @@ module.exports.preset = {
8407
8521
  "borderRadiusControlCircularFocusRing": "--border-radius-control-circular-focus-ring-qawzn7",
8408
8522
  "borderRadiusControlDefaultFocusRing": "--border-radius-control-default-focus-ring-7661kz",
8409
8523
  "borderRadiusDropdown": "--border-radius-dropdown-ujknaf",
8524
+ "borderRadiusDropzone": "--border-radius-dropzone-poqo08",
8410
8525
  "borderRadiusFlashbar": "--border-radius-flashbar-i7jm55",
8411
8526
  "borderRadiusItem": "--border-radius-item-u2ibpi",
8412
8527
  "borderRadiusInput": "--border-radius-input-txq8zy",
@@ -8566,6 +8681,8 @@ module.exports.preset = {
8566
8681
  "shadowSplitBottom": "--shadow-split-bottom-otfetg",
8567
8682
  "shadowSplitSide": "--shadow-split-side-qv353u",
8568
8683
  "shadowSticky": "--shadow-sticky-aijlo6",
8569
- "shadowStickyEmbedded": "--shadow-sticky-embedded-qit8ba"
8684
+ "shadowStickyEmbedded": "--shadow-sticky-embedded-qit8ba",
8685
+ "shadowStickyColumnFirst": "--shadow-sticky-column-first-h2plme",
8686
+ "shadowStickyColumnLast": "--shadow-sticky-column-last-s13kkz"
8570
8687
  }
8571
8688
  };