@cloudscape-design/components-themeable 3.0.1258 → 3.0.1259

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 (257) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/{internal/components/dropdown → dropdown}/motion.scss +2 -2
  3. package/lib/internal/scss/dropdown/styles.scss +127 -0
  4. package/lib/internal/scss/dropdown/test-classes/styles.scss +16 -0
  5. package/lib/internal/scss/internal/components/dropdown/styles.scss +2 -113
  6. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +155 -152
  7. package/lib/internal/scss/internal/styles/forms/mixins.scss +15 -11
  8. package/lib/internal/template/alert/styles.css.js +27 -27
  9. package/lib/internal/template/alert/styles.scoped.css +50 -50
  10. package/lib/internal/template/alert/styles.selectors.js +27 -27
  11. package/lib/internal/template/annotation-context/annotation/styles.css.js +13 -13
  12. package/lib/internal/template/annotation-context/annotation/styles.scoped.css +21 -21
  13. package/lib/internal/template/annotation-context/annotation/styles.selectors.js +13 -13
  14. package/lib/internal/template/app-layout/notifications/styles.css.js +3 -3
  15. package/lib/internal/template/app-layout/notifications/styles.scoped.css +7 -7
  16. package/lib/internal/template/app-layout/notifications/styles.selectors.js +3 -3
  17. package/lib/internal/template/app-layout/visual-refresh/styles.css.js +86 -86
  18. package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +258 -258
  19. package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +86 -86
  20. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
  21. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +89 -89
  22. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
  23. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
  24. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +7 -7
  25. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
  26. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +27 -27
  27. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +54 -54
  28. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +27 -27
  29. package/lib/internal/template/attribute-editor/styles.css.js +15 -15
  30. package/lib/internal/template/attribute-editor/styles.scoped.css +28 -28
  31. package/lib/internal/template/attribute-editor/styles.selectors.js +15 -15
  32. package/lib/internal/template/autosuggest/interfaces.d.ts +1 -1
  33. package/lib/internal/template/autosuggest/interfaces.d.ts.map +1 -1
  34. package/lib/internal/template/autosuggest/interfaces.js.map +1 -1
  35. package/lib/internal/template/autosuggest/internal.js.map +1 -1
  36. package/lib/internal/template/autosuggest/load-more-controller.d.ts +1 -1
  37. package/lib/internal/template/autosuggest/load-more-controller.d.ts.map +1 -1
  38. package/lib/internal/template/autosuggest/load-more-controller.js.map +1 -1
  39. package/lib/internal/template/breadcrumb-group/item/styles.css.js +7 -7
  40. package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +28 -28
  41. package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +7 -7
  42. package/lib/internal/template/button/styles.css.js +22 -22
  43. package/lib/internal/template/button/styles.scoped.css +256 -256
  44. package/lib/internal/template/button/styles.selectors.js +22 -22
  45. package/lib/internal/template/button-dropdown/category-elements/expandable-category-element.js +1 -1
  46. package/lib/internal/template/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
  47. package/lib/internal/template/button-dropdown/interfaces.d.ts +1 -1
  48. package/lib/internal/template/button-dropdown/interfaces.d.ts.map +1 -1
  49. package/lib/internal/template/button-dropdown/interfaces.js.map +1 -1
  50. package/lib/internal/template/button-dropdown/internal.js +1 -1
  51. package/lib/internal/template/button-dropdown/internal.js.map +1 -1
  52. package/lib/internal/template/button-dropdown/item-element/index.js +1 -1
  53. package/lib/internal/template/button-dropdown/item-element/index.js.map +1 -1
  54. package/lib/internal/template/button-dropdown/item-element/styles.css.js +21 -21
  55. package/lib/internal/template/button-dropdown/item-element/styles.scoped.css +37 -37
  56. package/lib/internal/template/button-dropdown/item-element/styles.selectors.js +21 -21
  57. package/lib/internal/template/checkbox/styles.css.js +3 -3
  58. package/lib/internal/template/checkbox/styles.scoped.css +11 -11
  59. package/lib/internal/template/checkbox/styles.selectors.js +3 -3
  60. package/lib/internal/template/content-layout/styles.css.js +14 -14
  61. package/lib/internal/template/content-layout/styles.scoped.css +27 -27
  62. package/lib/internal/template/content-layout/styles.selectors.js +14 -14
  63. package/lib/internal/template/date-picker/index.js +1 -1
  64. package/lib/internal/template/date-picker/index.js.map +1 -1
  65. package/lib/internal/template/date-picker/interfaces.d.ts +1 -1
  66. package/lib/internal/template/date-picker/interfaces.d.ts.map +1 -1
  67. package/lib/internal/template/date-picker/interfaces.js.map +1 -1
  68. package/lib/internal/template/date-range-picker/index.js +1 -1
  69. package/lib/internal/template/date-range-picker/index.js.map +1 -1
  70. package/lib/internal/template/date-range-picker/interfaces.d.ts +1 -1
  71. package/lib/internal/template/date-range-picker/interfaces.d.ts.map +1 -1
  72. package/lib/internal/template/date-range-picker/interfaces.js.map +1 -1
  73. package/lib/internal/template/dropdown/context.d.ts.map +1 -0
  74. package/lib/internal/template/dropdown/context.js.map +1 -0
  75. package/lib/internal/template/{internal/components/dropdown → dropdown}/dropdown-fit-handler.d.ts +1 -1
  76. package/lib/internal/template/dropdown/dropdown-fit-handler.d.ts.map +1 -0
  77. package/lib/internal/template/{internal/components/dropdown → dropdown}/dropdown-fit-handler.js +1 -1
  78. package/lib/internal/template/dropdown/dropdown-fit-handler.js.map +1 -0
  79. package/lib/internal/template/dropdown/dropdown-position.d.ts.map +1 -0
  80. package/lib/internal/template/dropdown/dropdown-position.js.map +1 -0
  81. package/lib/internal/template/dropdown/index.d.ts +7 -0
  82. package/lib/internal/template/dropdown/index.d.ts.map +1 -0
  83. package/lib/internal/template/dropdown/index.js +16 -0
  84. package/lib/internal/template/dropdown/index.js.map +1 -0
  85. package/lib/internal/template/{internal/components/dropdown → dropdown}/interfaces.d.ts +54 -82
  86. package/lib/internal/template/dropdown/interfaces.d.ts.map +1 -0
  87. package/lib/internal/template/dropdown/interfaces.js.map +1 -0
  88. package/lib/internal/template/dropdown/internal.d.ts +24 -0
  89. package/lib/internal/template/dropdown/internal.d.ts.map +1 -0
  90. package/lib/internal/template/{internal/components/dropdown/index.js → dropdown/internal.js} +29 -21
  91. package/lib/internal/template/dropdown/internal.js.map +1 -0
  92. package/lib/internal/template/dropdown/style.d.ts +9 -0
  93. package/lib/internal/template/dropdown/style.d.ts.map +1 -0
  94. package/lib/internal/template/dropdown/style.js +16 -0
  95. package/lib/internal/template/dropdown/style.js.map +1 -0
  96. package/lib/internal/template/dropdown/styles.css.js +25 -0
  97. package/lib/internal/template/dropdown/styles.scoped.css +380 -0
  98. package/lib/internal/template/dropdown/styles.selectors.js +26 -0
  99. package/lib/internal/template/dropdown/test-classes/styles.css.js +8 -0
  100. package/lib/internal/template/dropdown/test-classes/styles.scoped.css +15 -0
  101. package/lib/internal/template/dropdown/test-classes/styles.selectors.js +9 -0
  102. package/lib/internal/template/file-token-group/styles.css.js +23 -23
  103. package/lib/internal/template/file-token-group/styles.scoped.css +36 -36
  104. package/lib/internal/template/file-token-group/styles.selectors.js +23 -23
  105. package/lib/internal/template/flashbar/styles.css.js +50 -50
  106. package/lib/internal/template/flashbar/styles.scoped.css +187 -187
  107. package/lib/internal/template/flashbar/styles.selectors.js +50 -50
  108. package/lib/internal/template/help-panel/styles.css.js +6 -6
  109. package/lib/internal/template/help-panel/styles.scoped.css +73 -73
  110. package/lib/internal/template/help-panel/styles.selectors.js +6 -6
  111. package/lib/internal/template/index.d.ts +1 -0
  112. package/lib/internal/template/index.d.ts.map +1 -1
  113. package/lib/internal/template/index.js +1 -0
  114. package/lib/internal/template/index.js.map +1 -1
  115. package/lib/internal/template/input/styles.css.js +13 -13
  116. package/lib/internal/template/input/styles.scoped.css +74 -74
  117. package/lib/internal/template/input/styles.selectors.js +13 -13
  118. package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
  119. package/lib/internal/template/internal/components/autosuggest-input/index.d.ts +1 -1
  120. package/lib/internal/template/internal/components/autosuggest-input/index.d.ts.map +1 -1
  121. package/lib/internal/template/internal/components/autosuggest-input/index.js +2 -2
  122. package/lib/internal/template/internal/components/autosuggest-input/index.js.map +1 -1
  123. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.css.js +30 -30
  124. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.scoped.css +58 -58
  125. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.selectors.js +30 -30
  126. package/lib/internal/template/internal/components/dropdown/styles.css.js +2 -20
  127. package/lib/internal/template/internal/components/dropdown/styles.scoped.css +4 -373
  128. package/lib/internal/template/internal/components/dropdown/styles.selectors.js +2 -20
  129. package/lib/internal/template/internal/components/radio-button/styles.css.js +7 -7
  130. package/lib/internal/template/internal/components/radio-button/styles.scoped.css +18 -18
  131. package/lib/internal/template/internal/components/radio-button/styles.selectors.js +7 -7
  132. package/lib/internal/template/internal/components/token-list/styles.css.js +10 -10
  133. package/lib/internal/template/internal/components/token-list/styles.scoped.css +25 -25
  134. package/lib/internal/template/internal/components/token-list/styles.selectors.js +10 -10
  135. package/lib/internal/template/internal/environment.js +2 -2
  136. package/lib/internal/template/internal/environment.json +2 -2
  137. package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts +3 -0
  138. package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  139. package/lib/internal/template/internal/generated/custom-css-properties/index.js +154 -151
  140. package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
  141. package/lib/internal/template/internal/utils/browser-scrollbar-size.js +1 -1
  142. package/lib/internal/template/internal/utils/browser-scrollbar-size.js.map +1 -1
  143. package/lib/internal/template/internal/utils/get-dropdown-min-width.d.ts +1 -1
  144. package/lib/internal/template/internal/utils/get-dropdown-min-width.d.ts.map +1 -1
  145. package/lib/internal/template/internal/utils/get-dropdown-min-width.js.map +1 -1
  146. package/lib/internal/template/link/styles.css.js +20 -20
  147. package/lib/internal/template/link/styles.scoped.css +103 -103
  148. package/lib/internal/template/link/styles.selectors.js +20 -20
  149. package/lib/internal/template/modal/styles.css.js +31 -31
  150. package/lib/internal/template/modal/styles.scoped.css +48 -48
  151. package/lib/internal/template/modal/styles.selectors.js +31 -31
  152. package/lib/internal/template/multiselect/embedded.d.ts +1 -1
  153. package/lib/internal/template/multiselect/internal.d.ts +1 -1
  154. package/lib/internal/template/multiselect/internal.js +1 -1
  155. package/lib/internal/template/multiselect/internal.js.map +1 -1
  156. package/lib/internal/template/multiselect/use-multiselect.d.ts +1 -1
  157. package/lib/internal/template/package.json +1 -0
  158. package/lib/internal/template/progress-bar/styles.css.js +18 -18
  159. package/lib/internal/template/progress-bar/styles.scoped.css +48 -48
  160. package/lib/internal/template/progress-bar/styles.selectors.js +18 -18
  161. package/lib/internal/template/prompt-input/styles.css.js +17 -17
  162. package/lib/internal/template/prompt-input/styles.scoped.css +79 -79
  163. package/lib/internal/template/prompt-input/styles.selectors.js +17 -17
  164. package/lib/internal/template/property-filter/interfaces.d.ts +1 -1
  165. package/lib/internal/template/property-filter/interfaces.d.ts.map +1 -1
  166. package/lib/internal/template/property-filter/interfaces.js.map +1 -1
  167. package/lib/internal/template/property-filter/property-filter-autosuggest.d.ts.map +1 -1
  168. package/lib/internal/template/property-filter/property-filter-autosuggest.js.map +1 -1
  169. package/lib/internal/template/property-filter/use-load-items.d.ts +1 -1
  170. package/lib/internal/template/segmented-control/styles.css.js +16 -16
  171. package/lib/internal/template/segmented-control/styles.scoped.css +46 -46
  172. package/lib/internal/template/segmented-control/styles.selectors.js +16 -16
  173. package/lib/internal/template/select/interfaces.d.ts +1 -1
  174. package/lib/internal/template/select/interfaces.d.ts.map +1 -1
  175. package/lib/internal/template/select/interfaces.js.map +1 -1
  176. package/lib/internal/template/select/internal.js +1 -1
  177. package/lib/internal/template/select/internal.js.map +1 -1
  178. package/lib/internal/template/select/utils/use-select.d.ts +2 -2
  179. package/lib/internal/template/select/utils/use-select.d.ts.map +1 -1
  180. package/lib/internal/template/select/utils/use-select.js.map +1 -1
  181. package/lib/internal/template/slider/styles.css.js +26 -26
  182. package/lib/internal/template/slider/styles.scoped.css +165 -165
  183. package/lib/internal/template/slider/styles.selectors.js +26 -26
  184. package/lib/internal/template/spinner/styles.css.js +13 -13
  185. package/lib/internal/template/spinner/styles.scoped.css +39 -39
  186. package/lib/internal/template/spinner/styles.selectors.js +13 -13
  187. package/lib/internal/template/tabs/styles.css.js +30 -30
  188. package/lib/internal/template/tabs/styles.scoped.css +76 -76
  189. package/lib/internal/template/tabs/styles.selectors.js +30 -30
  190. package/lib/internal/template/tag-editor/styles.css.js +3 -3
  191. package/lib/internal/template/tag-editor/styles.scoped.css +13 -13
  192. package/lib/internal/template/tag-editor/styles.selectors.js +3 -3
  193. package/lib/internal/template/test-utils/dom/autosuggest/index.js +18 -17
  194. package/lib/internal/template/test-utils/dom/autosuggest/index.js.map +1 -1
  195. package/lib/internal/template/test-utils/dom/button-dropdown/index.js +3 -2
  196. package/lib/internal/template/test-utils/dom/button-dropdown/index.js.map +1 -1
  197. package/lib/internal/template/test-utils/dom/dropdown/index.d.ts +41 -0
  198. package/lib/internal/template/test-utils/dom/dropdown/index.js +65 -0
  199. package/lib/internal/template/test-utils/dom/dropdown/index.js.map +1 -0
  200. package/lib/internal/template/test-utils/dom/index.d.ts +28 -0
  201. package/lib/internal/template/test-utils/dom/index.js +21 -2
  202. package/lib/internal/template/test-utils/dom/index.js.map +1 -1
  203. package/lib/internal/template/test-utils/dom/internal/autosuggest-input.js +7 -6
  204. package/lib/internal/template/test-utils/dom/internal/autosuggest-input.js.map +1 -1
  205. package/lib/internal/template/test-utils/dom/internal/dropdown-host.d.ts +3 -3
  206. package/lib/internal/template/test-utils/dom/internal/dropdown-host.js +24 -23
  207. package/lib/internal/template/test-utils/dom/internal/dropdown-host.js.map +1 -1
  208. package/lib/internal/template/test-utils/dom/internal/dropdown.d.ts +1 -0
  209. package/lib/internal/template/test-utils/dom/internal/dropdown.js +7 -2
  210. package/lib/internal/template/test-utils/dom/internal/dropdown.js.map +1 -1
  211. package/lib/internal/template/test-utils/selectors/autosuggest/index.js +18 -17
  212. package/lib/internal/template/test-utils/selectors/autosuggest/index.js.map +1 -1
  213. package/lib/internal/template/test-utils/selectors/button-dropdown/index.js +3 -2
  214. package/lib/internal/template/test-utils/selectors/button-dropdown/index.js.map +1 -1
  215. package/lib/internal/template/test-utils/selectors/dropdown/index.d.ts +41 -0
  216. package/lib/internal/template/test-utils/selectors/dropdown/index.js +65 -0
  217. package/lib/internal/template/test-utils/selectors/dropdown/index.js.map +1 -0
  218. package/lib/internal/template/test-utils/selectors/index.d.ts +18 -0
  219. package/lib/internal/template/test-utils/selectors/index.js +16 -2
  220. package/lib/internal/template/test-utils/selectors/index.js.map +1 -1
  221. package/lib/internal/template/test-utils/selectors/internal/autosuggest-input.js +7 -6
  222. package/lib/internal/template/test-utils/selectors/internal/autosuggest-input.js.map +1 -1
  223. package/lib/internal/template/test-utils/selectors/internal/dropdown-host.d.ts +3 -3
  224. package/lib/internal/template/test-utils/selectors/internal/dropdown-host.js +23 -22
  225. package/lib/internal/template/test-utils/selectors/internal/dropdown-host.js.map +1 -1
  226. package/lib/internal/template/test-utils/selectors/internal/dropdown.d.ts +1 -0
  227. package/lib/internal/template/test-utils/selectors/internal/dropdown.js +7 -2
  228. package/lib/internal/template/test-utils/selectors/internal/dropdown.js.map +1 -1
  229. package/lib/internal/template/text-content/styles.css.js +1 -1
  230. package/lib/internal/template/text-content/styles.scoped.css +66 -66
  231. package/lib/internal/template/text-content/styles.selectors.js +1 -1
  232. package/lib/internal/template/textarea/styles.css.js +5 -5
  233. package/lib/internal/template/textarea/styles.scoped.css +45 -45
  234. package/lib/internal/template/textarea/styles.selectors.js +5 -5
  235. package/lib/internal/template/toggle/styles.css.js +10 -10
  236. package/lib/internal/template/toggle/styles.scoped.css +23 -23
  237. package/lib/internal/template/toggle/styles.selectors.js +10 -10
  238. package/lib/internal/template/token/styles.css.js +14 -14
  239. package/lib/internal/template/token/styles.scoped.css +48 -48
  240. package/lib/internal/template/token/styles.selectors.js +14 -14
  241. package/package.json +1 -1
  242. package/lib/internal/template/internal/components/dropdown/context.d.ts.map +0 -1
  243. package/lib/internal/template/internal/components/dropdown/context.js.map +0 -1
  244. package/lib/internal/template/internal/components/dropdown/dropdown-fit-handler.d.ts.map +0 -1
  245. package/lib/internal/template/internal/components/dropdown/dropdown-fit-handler.js.map +0 -1
  246. package/lib/internal/template/internal/components/dropdown/dropdown-position.d.ts.map +0 -1
  247. package/lib/internal/template/internal/components/dropdown/dropdown-position.js.map +0 -1
  248. package/lib/internal/template/internal/components/dropdown/index.d.ts +0 -4
  249. package/lib/internal/template/internal/components/dropdown/index.d.ts.map +0 -1
  250. package/lib/internal/template/internal/components/dropdown/index.js.map +0 -1
  251. package/lib/internal/template/internal/components/dropdown/interfaces.d.ts.map +0 -1
  252. package/lib/internal/template/internal/components/dropdown/interfaces.js.map +0 -1
  253. /package/lib/internal/template/{internal/components/dropdown → dropdown}/context.d.ts +0 -0
  254. /package/lib/internal/template/{internal/components/dropdown → dropdown}/context.js +0 -0
  255. /package/lib/internal/template/{internal/components/dropdown → dropdown}/dropdown-position.d.ts +0 -0
  256. /package/lib/internal/template/{internal/components/dropdown → dropdown}/dropdown-position.js +0 -0
  257. /package/lib/internal/template/{internal/components/dropdown → dropdown}/interfaces.js +0 -0
@@ -150,10 +150,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
150
150
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
151
151
  SPDX-License-Identifier: Apache-2.0
152
152
  */
153
- .awsui_empty-appear_n4qlp_1ezgg_153:not(#\9) {
154
- animation: awsui_awsui-motion-fade-in_n4qlp_1ezgg_1 var(--motion-duration-transition-show-paced-0w35xp, 180ms) var(--motion-easing-transition-show-paced-ufdgkj, ease-out);
153
+ .awsui_empty-appear_n4qlp_1li9u_153:not(#\9) {
154
+ animation: awsui_awsui-motion-fade-in_n4qlp_1li9u_1 var(--motion-duration-transition-show-paced-0w35xp, 180ms) var(--motion-easing-transition-show-paced-ufdgkj, ease-out);
155
155
  }
156
- @keyframes awsui_awsui-motion-fade-in_n4qlp_1ezgg_1 {
156
+ @keyframes awsui_awsui-motion-fade-in_n4qlp_1li9u_1 {
157
157
  from {
158
158
  opacity: 0.2;
159
159
  }
@@ -162,17 +162,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
162
162
  }
163
163
  }
164
164
  @media (prefers-reduced-motion: reduce) {
165
- .awsui_empty-appear_n4qlp_1ezgg_153:not(#\9) {
165
+ .awsui_empty-appear_n4qlp_1li9u_153:not(#\9) {
166
166
  animation: none;
167
167
  transition: none;
168
168
  }
169
169
  }
170
- .awsui-motion-disabled .awsui_empty-appear_n4qlp_1ezgg_153:not(#\9), .awsui-mode-entering .awsui_empty-appear_n4qlp_1ezgg_153:not(#\9) {
170
+ .awsui-motion-disabled .awsui_empty-appear_n4qlp_1li9u_153:not(#\9), .awsui-mode-entering .awsui_empty-appear_n4qlp_1li9u_153:not(#\9) {
171
171
  animation: none;
172
172
  transition: none;
173
173
  }
174
174
 
175
- .awsui_root_n4qlp_1ezgg_175:not(#\9) {
175
+ .awsui_root_n4qlp_1li9u_175:not(#\9) {
176
176
  border-collapse: separate;
177
177
  border-spacing: 0;
178
178
  box-sizing: border-box;
@@ -208,31 +208,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
208
208
  align-items: start;
209
209
  }
210
210
 
211
- .awsui_empty_n4qlp_1ezgg_153:not(#\9) {
211
+ .awsui_empty_n4qlp_1li9u_153:not(#\9) {
212
212
  font-size: var(--font-size-body-m-vv54cm, 14px);
213
213
  line-height: var(--line-height-body-m-bedeoh, 22px);
214
214
  color: var(--color-text-empty-vtt4l2, #687078);
215
215
  grid-column: 1/-1;
216
216
  }
217
217
 
218
- .awsui_row_n4qlp_1ezgg_218:not(#\9) {
218
+ .awsui_row_n4qlp_1li9u_218:not(#\9) {
219
219
  display: contents;
220
220
  }
221
221
 
222
- .awsui_divider_n4qlp_1ezgg_222:not(#\9) {
222
+ .awsui_divider_n4qlp_1li9u_222:not(#\9) {
223
223
  grid-column: 1/-1;
224
224
  border-block-start: var(--border-divider-section-width-sznrdy, 1px) solid var(--color-border-divider-default-ipvpev, #eaeded);
225
225
  }
226
226
 
227
- .awsui_row-control_n4qlp_1ezgg_227:not(#\9) {
227
+ .awsui_row-control_n4qlp_1li9u_227:not(#\9) {
228
228
  /* used in test-utils */
229
229
  }
230
230
 
231
- .awsui_field_n4qlp_1ezgg_231:not(#\9) {
231
+ .awsui_field_n4qlp_1li9u_231:not(#\9) {
232
232
  min-inline-size: 40px;
233
233
  }
234
234
 
235
- .awsui_additional-info_n4qlp_1ezgg_235:not(#\9) {
235
+ .awsui_additional-info_n4qlp_1li9u_235:not(#\9) {
236
236
  color: var(--color-text-form-secondary-4sp9un, #687078);
237
237
  font-size: var(--font-size-body-s-psgqn2, 12px);
238
238
  line-height: var(--line-height-body-s-otgtsr, 16px);
@@ -242,10 +242,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
242
242
  margin-block-start: var(--space-xxs-jnczic, 4px);
243
243
  /* stylelint-disable-next-line selector-max-type */
244
244
  }
245
- .awsui_additional-info_n4qlp_1ezgg_235 > a:not(#\9) {
245
+ .awsui_additional-info_n4qlp_1li9u_235 > a:not(#\9) {
246
246
  text-underline-offset: 0.3em;
247
247
  text-decoration-thickness: 1px;
248
- color: var(--awsui-style-color-default-hzjhvz, var(--color-text-link-default-z7zuy8, #0073bb));
248
+ color: var(--awsui-style-color-default-u09ddc, var(--color-text-link-default-z7zuy8, #0073bb));
249
249
  font-weight: inherit;
250
250
  letter-spacing: normal;
251
251
  text-decoration-line: underline;
@@ -256,50 +256,50 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
256
256
  transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
257
257
  }
258
258
  @media (prefers-reduced-motion: reduce) {
259
- .awsui_additional-info_n4qlp_1ezgg_235 > a:not(#\9) {
259
+ .awsui_additional-info_n4qlp_1li9u_235 > a:not(#\9) {
260
260
  animation: none;
261
261
  transition: none;
262
262
  }
263
263
  }
264
- .awsui-motion-disabled .awsui_additional-info_n4qlp_1ezgg_235 > a:not(#\9), .awsui-mode-entering .awsui_additional-info_n4qlp_1ezgg_235 > a:not(#\9) {
264
+ .awsui-motion-disabled .awsui_additional-info_n4qlp_1li9u_235 > a:not(#\9), .awsui-mode-entering .awsui_additional-info_n4qlp_1li9u_235 > a:not(#\9) {
265
265
  animation: none;
266
266
  transition: none;
267
267
  }
268
- .awsui_additional-info_n4qlp_1ezgg_235 > a:not(#\9):hover {
268
+ .awsui_additional-info_n4qlp_1li9u_235 > a:not(#\9):hover {
269
269
  cursor: pointer;
270
- color: var(--awsui-style-color-hover-hzjhvz, var(--color-text-link-hover-pqxtsy, #0a4a74));
270
+ color: var(--awsui-style-color-hover-u09ddc, var(--color-text-link-hover-pqxtsy, #0a4a74));
271
271
  }
272
- .awsui_additional-info_n4qlp_1ezgg_235 > a:not(#\9):focus {
272
+ .awsui_additional-info_n4qlp_1li9u_235 > a:not(#\9):focus {
273
273
  outline: none;
274
274
  }
275
- .awsui_additional-info_n4qlp_1ezgg_235 > a:not(#\9):active {
276
- color: var(--awsui-style-color-active-hzjhvz, var(--color-text-link-hover-pqxtsy, #0a4a74));
275
+ .awsui_additional-info_n4qlp_1li9u_235 > a:not(#\9):active {
276
+ color: var(--awsui-style-color-active-u09ddc, var(--color-text-link-hover-pqxtsy, #0a4a74));
277
277
  }
278
- .awsui_additional-info_n4qlp_1ezgg_235 > a:not(#\9):active, .awsui_additional-info_n4qlp_1ezgg_235 > a:not(#\9):focus, .awsui_additional-info_n4qlp_1ezgg_235 > a:not(#\9):hover {
278
+ .awsui_additional-info_n4qlp_1li9u_235 > a:not(#\9):active, .awsui_additional-info_n4qlp_1li9u_235 > a:not(#\9):focus, .awsui_additional-info_n4qlp_1li9u_235 > a:not(#\9):hover {
279
279
  text-decoration-line: underline;
280
280
  text-decoration-color: currentColor;
281
281
  }
282
282
 
283
- .awsui_add-row_n4qlp_1ezgg_281:not(#\9) {
283
+ .awsui_add-row_n4qlp_1li9u_281:not(#\9) {
284
284
  grid-column: 1/-1;
285
285
  }
286
286
 
287
- .awsui_add-button_n4qlp_1ezgg_285:not(#\9) {
287
+ .awsui_add-button_n4qlp_1li9u_285:not(#\9) {
288
288
  /* used in test-utils */
289
289
  }
290
290
 
291
- .awsui_remove-button-container_n4qlp_1ezgg_289:not(#\9) {
291
+ .awsui_remove-button-container_n4qlp_1li9u_289:not(#\9) {
292
292
  display: inline-block;
293
293
  }
294
294
 
295
- .awsui_remove-button-field-padding_n4qlp_1ezgg_293:not(#\9) {
295
+ .awsui_remove-button-field-padding_n4qlp_1li9u_293:not(#\9) {
296
296
  padding-block-start: calc(var(--space-xxs-jnczic, 4px) + var(--line-height-body-m-bedeoh, 22px));
297
297
  }
298
298
 
299
- .awsui_remove-button-own-row_n4qlp_1ezgg_297:not(#\9) {
299
+ .awsui_remove-button-own-row_n4qlp_1li9u_297:not(#\9) {
300
300
  justify-self: end;
301
301
  }
302
302
 
303
- .awsui_remove-button_n4qlp_1ezgg_289:not(#\9) {
303
+ .awsui_remove-button_n4qlp_1li9u_289:not(#\9) {
304
304
  /* used in test-utils */
305
305
  }
@@ -2,20 +2,20 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "empty-appear": "awsui_empty-appear_n4qlp_1ezgg_153",
6
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_n4qlp_1ezgg_1",
7
- "root": "awsui_root_n4qlp_1ezgg_175",
8
- "empty": "awsui_empty_n4qlp_1ezgg_153",
9
- "row": "awsui_row_n4qlp_1ezgg_218",
10
- "divider": "awsui_divider_n4qlp_1ezgg_222",
11
- "row-control": "awsui_row-control_n4qlp_1ezgg_227",
12
- "field": "awsui_field_n4qlp_1ezgg_231",
13
- "additional-info": "awsui_additional-info_n4qlp_1ezgg_235",
14
- "add-row": "awsui_add-row_n4qlp_1ezgg_281",
15
- "add-button": "awsui_add-button_n4qlp_1ezgg_285",
16
- "remove-button-container": "awsui_remove-button-container_n4qlp_1ezgg_289",
17
- "remove-button-field-padding": "awsui_remove-button-field-padding_n4qlp_1ezgg_293",
18
- "remove-button-own-row": "awsui_remove-button-own-row_n4qlp_1ezgg_297",
19
- "remove-button": "awsui_remove-button_n4qlp_1ezgg_289"
5
+ "empty-appear": "awsui_empty-appear_n4qlp_1li9u_153",
6
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_n4qlp_1li9u_1",
7
+ "root": "awsui_root_n4qlp_1li9u_175",
8
+ "empty": "awsui_empty_n4qlp_1li9u_153",
9
+ "row": "awsui_row_n4qlp_1li9u_218",
10
+ "divider": "awsui_divider_n4qlp_1li9u_222",
11
+ "row-control": "awsui_row-control_n4qlp_1li9u_227",
12
+ "field": "awsui_field_n4qlp_1li9u_231",
13
+ "additional-info": "awsui_additional-info_n4qlp_1li9u_235",
14
+ "add-row": "awsui_add-row_n4qlp_1li9u_281",
15
+ "add-button": "awsui_add-button_n4qlp_1li9u_285",
16
+ "remove-button-container": "awsui_remove-button-container_n4qlp_1li9u_289",
17
+ "remove-button-field-padding": "awsui_remove-button-field-padding_n4qlp_1li9u_293",
18
+ "remove-button-own-row": "awsui_remove-button-own-row_n4qlp_1li9u_297",
19
+ "remove-button": "awsui_remove-button_n4qlp_1li9u_289"
20
20
  };
21
21
 
@@ -1,7 +1,7 @@
1
1
  import React, { ReactNode } from 'react';
2
+ import { BaseDropdownHostProps, OptionsFilteringType, OptionsLoadItemsDetail } from '../dropdown/interfaces';
2
3
  import { BaseInputProps, InputAutoCorrect, InputClearLabel, InputKeyEvents, InputProps } from '../input/interfaces';
3
4
  import { BaseComponentProps } from '../internal/base-component';
4
- import { BaseDropdownHostProps, OptionsFilteringType, OptionsLoadItemsDetail } from '../internal/components/dropdown/interfaces';
5
5
  import { DropdownStatusProps } from '../internal/components/dropdown-status';
6
6
  import { OptionDefinition, OptionGroup } from '../internal/components/option/interfaces';
7
7
  import { FormFieldValidationControlProps } from '../internal/context/form-field-context';
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/autosuggest/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACpH,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAAE,+BAA+B,EAAE,MAAM,wCAAwC,CAAC;AACzF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,MAAM,WAAW,gBACf,SAAQ,kBAAkB,EACxB,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,+BAA+B,EAC/B,mBAAmB;IACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA+BI;IACJ,OAAO,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC;IAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC,EAAE,WAAW,CAAC;CACtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/autosuggest/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { ReactNode } from 'react';\n\nimport { BaseInputProps, InputAutoCorrect, InputClearLabel, InputKeyEvents, InputProps } from '../input/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport {\n BaseDropdownHostProps,\n OptionsFilteringType,\n OptionsLoadItemsDetail,\n} from '../internal/components/dropdown/interfaces';\nimport { DropdownStatusProps } from '../internal/components/dropdown-status';\nimport { OptionDefinition, OptionGroup } from '../internal/components/option/interfaces';\nimport { FormFieldValidationControlProps } from '../internal/context/form-field-context';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface AutosuggestProps\n extends BaseComponentProps,\n BaseInputProps,\n InputAutoCorrect,\n BaseDropdownHostProps,\n InputKeyEvents,\n InputClearLabel,\n FormFieldValidationControlProps,\n DropdownStatusProps {\n /**\n * Specifies an array of options that are displayed to the user as a dropdown list.\n * The options can be grouped using `OptionGroup` objects.\n *\n * #### Option\n * - `value` (string) - The returned value of the option when selected.\n * - `label` (string) - (Optional) Option text displayed to the user.\n * - `lang` (string) - (Optional) The language of the option, provided as a BCP 47 language tag.\n * - `description` (string) - (Optional) Further information about the option that appears below the label.\n * - `disabled` (boolean) - (Optional) Determines whether the option is disabled.\n * - `labelTag` (string) - (Optional) A label tag that provides additional guidance, shown next to the label.\n * - `tags` [string[]] - (Optional) A list of tags giving further guidance about the option.\n * - `filteringTags` [string[]] - (Optional) A list of additional tags used for automatic filtering.\n * - `iconName` (string) - (Optional) Specifies the name of an [icon](/components/icon/) to display in the option.\n * - `iconAriaLabel` (string) - (Optional) Specifies alternate text for the icon. We recommend that you provide this for accessibility.\n * - `iconAlt` (string) - (Optional) **Deprecated**, replaced by \\`iconAriaLabel\\`. Specifies alternate text for a custom icon, for use with `iconUrl`.\n * - `iconUrl` (string) - (Optional) URL of a custom icon.\n * - `iconSvg` (ReactNode) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n *\n * #### OptionGroup\n * - `label` (string) - Option group text displayed to the user.\n * - `disabled` (boolean) - (Optional) Determines whether the option group is disabled.\n * - `options` (Option[]) - (Optional) The options under this group.\n *\n * Note: Only one level of option nesting is supported.\n *\n * If you want to use the built-in filtering capabilities of this component, provide\n * a list of all valid options here and they will be automatically filtered based on the user's filtering input.\n *\n * Alternatively, you can listen to the `onChange` or `onLoadItems` event and set new options\n * on your own.\n **/\n options?: AutosuggestProps.Options;\n\n /**\n * Specifies a render function to render custom options in the dropdown menu.\n *\n * The item inside the props has a different shape depending on its type:\n *\n *\n * ### item\n *\n * - `type` ('item') - The item type.\n * - `index` (number) - The item's absolute position in the dropdown.\n * - `option` (Option) - The original option configuration.\n * - `disabled` (boolean) - Whether the item is disabled.\n * - `highlighted` (boolean) - Whether the item is currently highlighted.\n * - `selected` (boolean) - Whether the item is selected.\n * - `parent` (OptionGroupRenderItem | null) - The parent group item, if any.\n *\n * ### group\n *\n * - `type` ('group') - The item type.\n * - `index` (number) - The item's absolute position in the dropdown.\n * - `option` (OptionGroup) - The original option configuration.\n * - `disabled` (boolean) - Whether the item is disabled.\n *\n * ### entered-text\n *\n * - `type` ('entered-text') - The item type.\n * - `option` (Option) - The entered-text option configuration.\n *\n * When providing a custom `renderOption` implementation, it fully replaces the default visual rendering and content for that item.\n * The component still manages focus, keyboard interactions, and selection state, but it no longer applies its default item layout or typography.\n *\n * When returning `null`, the default rendering will be applied for that item.\n *\n * @awsuiSystem core\n */\n renderOption?: AutosuggestProps.ItemRenderer;\n\n /**\n * Determines how filtering is applied to the list of `options`:\n *\n * * `auto` - The component will automatically filter options based on user input.\n * * `manual` - You will set up `onChange` or `onLoadItems` event listeners and filter options on your side or request\n * them from server.\n *\n * By default the component will filter the provided `options` based on the value of the filtering input field.\n * Only options that have a `value`, `label`, `description` or `labelTag` that contains the input value as a substring\n * are displayed in the list of options.\n *\n * If you set this property to `manual`, this default filtering mechanism is disabled and all provided `options` are\n * displayed in the dropdown list. In that case make sure that you use the `onChange` or `onLoadItems` events in order\n * to set the `options` property to the options that are relevant for the user, given the filtering input value.\n *\n * Note: Manual filtering doesn't disable match highlighting.\n **/\n filteringType?: OptionsFilteringType;\n\n /**\n * Specifies a function that generates the custom value indicator (for example, `Use \"${value}\"`).\n * @i18n\n */\n enteredTextLabel?: AutosuggestProps.EnteredTextLabel;\n\n /**\n * Defines whether entered text option is shown as the first option in the dropdown when value is non-empty.\n */\n hideEnteredTextOption?: boolean;\n\n /**\n * Specifies the text to display with the number of matches at the bottom of the dropdown menu while filtering.\n *\n * Note that the `matchesCount` includes the `enteredTextLabel` (\"Use ${value}\") item, so in most cases you\n * should subtract 1 from `matchesCount`. If using manual filtering, you should provide your own value for `totalCount`.\n */\n filteringResultsText?: (matchesCount: number, totalCount: number) => string;\n\n /**\n * Specifies the text that's displayed when there aren't any suggestions to display.\n * This is displayed when `statusType` is set to `finished` or it's not set at all.\n */\n empty?: React.ReactNode;\n\n /**\n * Called whenever a user selects an option in the dropdown. Don't use this event as the only way to handle user input.\n * Instead, use `onSelect` in combination with the `onChange` handler only as an optional convenience for the user.\n */\n onSelect?: NonCancelableEventHandler<AutosuggestProps.SelectDetail>;\n\n /**\n * Specifies the localized string that describes an option as being selected.\n * This is required to provide a good screen reader experience. For more information, see the\n * [accessibility guidelines](/components/autosuggest/?tabId=usage#accessibility-guidelines).\n * @i18n\n */\n selectedAriaLabel?: string;\n /**\n * Overrides the element that is announced to screen readers\n * when the highlighted option changes. By default, this announces\n * the option's name and properties, and its selected state if\n * the `selectedAriaLabel` property is defined.\n * The highlighted option is provided, and its group (if groups\n * are used and it differs from the group of the previously highlighted option).\n *\n * For more information, see the\n * [accessibility guidelines](/components/autosuggest/?tabId=usage#accessibility-guidelines).\n */\n renderHighlightedAriaLive?: AutosuggestProps.ContainingOptionAndGroupString;\n\n /**\n * An object containing CSS properties to customize the autosuggest's visual appearance.\n * Refer to the [style](/components/autosuggest/?tabId=style) tab for more details.\n * @awsuiSystem core\n */\n style?: AutosuggestProps.Style;\n}\n\nexport namespace AutosuggestProps {\n export type ChangeDetail = InputProps.ChangeDetail;\n export type KeyDetail = InputProps.KeyDetail;\n export type FilteringType = OptionsFilteringType;\n export type Option = OptionDefinition;\n export type Options = ReadonlyArray<Option | OptionGroup>;\n export type EnteredTextLabel = (value: string) => string;\n export interface OptionGroup extends Option {\n label?: string;\n options: ReadonlyArray<Option>;\n }\n export type LoadItemsDetail = OptionsLoadItemsDetail;\n export type StatusType = DropdownStatusProps.StatusType;\n export interface SelectDetail {\n value: string;\n selectedOption?: Option;\n }\n\n export interface ContainingOptionAndGroupString {\n (option: Option, group?: OptionGroup): string;\n }\n\n export interface OptionRenderItem {\n type: 'item';\n index: number;\n option: Option;\n disabled: boolean;\n highlighted: boolean;\n selected: boolean;\n parent: OptionGroupRenderItem | null;\n }\n export interface OptionGroupRenderItem {\n type: 'group';\n index: number;\n option: OptionGroup;\n disabled: boolean;\n }\n export interface EnteredTextRenderItem {\n type: 'entered-text';\n option: Option;\n highlighted: boolean;\n }\n export type RenderItem = OptionRenderItem | OptionGroupRenderItem | EnteredTextRenderItem;\n export type ItemRenderer = (props: { item: RenderItem; filterText?: string }) => ReactNode | null;\n\n export interface Ref {\n /**\n * Sets input focus onto the UI control.\n */\n focus(): void;\n\n /**\n * Selects all text in the input control.\n */\n select(): void;\n }\n\n export interface Style {\n root?: {\n backgroundColor?: {\n default?: string;\n disabled?: string;\n focus?: string;\n hover?: string;\n readonly?: string;\n };\n borderColor?: {\n default?: string;\n disabled?: string;\n focus?: string;\n hover?: string;\n readonly?: string;\n };\n borderRadius?: string;\n borderWidth?: string;\n boxShadow?: {\n default?: string;\n disabled?: string;\n focus?: string;\n hover?: string;\n readonly?: string;\n };\n color?: {\n default?: string;\n disabled?: string;\n focus?: string;\n hover?: string;\n readonly?: string;\n };\n fontSize?: string;\n fontWeight?: string;\n paddingBlock?: string;\n paddingInline?: string;\n };\n placeholder?: {\n color?: string;\n fontSize?: string;\n fontStyle?: string;\n fontWeight?: string;\n };\n }\n}\n\n// TODO: use DropdownOption type same as in select and multiselect\nexport type AutosuggestItem = (AutosuggestProps.Option | AutosuggestProps.OptionGroup) & {\n type?: 'parent' | 'child' | 'use-entered';\n option: OptionDefinition | OptionGroup;\n parent?: OptionGroup;\n};\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/autosuggest/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { ReactNode } from 'react';\n\nimport { BaseDropdownHostProps, OptionsFilteringType, OptionsLoadItemsDetail } from '../dropdown/interfaces';\nimport { BaseInputProps, InputAutoCorrect, InputClearLabel, InputKeyEvents, InputProps } from '../input/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { DropdownStatusProps } from '../internal/components/dropdown-status';\nimport { OptionDefinition, OptionGroup } from '../internal/components/option/interfaces';\nimport { FormFieldValidationControlProps } from '../internal/context/form-field-context';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface AutosuggestProps\n extends BaseComponentProps,\n BaseInputProps,\n InputAutoCorrect,\n BaseDropdownHostProps,\n InputKeyEvents,\n InputClearLabel,\n FormFieldValidationControlProps,\n DropdownStatusProps {\n /**\n * Specifies an array of options that are displayed to the user as a dropdown list.\n * The options can be grouped using `OptionGroup` objects.\n *\n * #### Option\n * - `value` (string) - The returned value of the option when selected.\n * - `label` (string) - (Optional) Option text displayed to the user.\n * - `lang` (string) - (Optional) The language of the option, provided as a BCP 47 language tag.\n * - `description` (string) - (Optional) Further information about the option that appears below the label.\n * - `disabled` (boolean) - (Optional) Determines whether the option is disabled.\n * - `labelTag` (string) - (Optional) A label tag that provides additional guidance, shown next to the label.\n * - `tags` [string[]] - (Optional) A list of tags giving further guidance about the option.\n * - `filteringTags` [string[]] - (Optional) A list of additional tags used for automatic filtering.\n * - `iconName` (string) - (Optional) Specifies the name of an [icon](/components/icon/) to display in the option.\n * - `iconAriaLabel` (string) - (Optional) Specifies alternate text for the icon. We recommend that you provide this for accessibility.\n * - `iconAlt` (string) - (Optional) **Deprecated**, replaced by \\`iconAriaLabel\\`. Specifies alternate text for a custom icon, for use with `iconUrl`.\n * - `iconUrl` (string) - (Optional) URL of a custom icon.\n * - `iconSvg` (ReactNode) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n *\n * #### OptionGroup\n * - `label` (string) - Option group text displayed to the user.\n * - `disabled` (boolean) - (Optional) Determines whether the option group is disabled.\n * - `options` (Option[]) - (Optional) The options under this group.\n *\n * Note: Only one level of option nesting is supported.\n *\n * If you want to use the built-in filtering capabilities of this component, provide\n * a list of all valid options here and they will be automatically filtered based on the user's filtering input.\n *\n * Alternatively, you can listen to the `onChange` or `onLoadItems` event and set new options\n * on your own.\n **/\n options?: AutosuggestProps.Options;\n\n /**\n * Specifies a render function to render custom options in the dropdown menu.\n *\n * The item inside the props has a different shape depending on its type:\n *\n *\n * ### item\n *\n * - `type` ('item') - The item type.\n * - `index` (number) - The item's absolute position in the dropdown.\n * - `option` (Option) - The original option configuration.\n * - `disabled` (boolean) - Whether the item is disabled.\n * - `highlighted` (boolean) - Whether the item is currently highlighted.\n * - `selected` (boolean) - Whether the item is selected.\n * - `parent` (OptionGroupRenderItem | null) - The parent group item, if any.\n *\n * ### group\n *\n * - `type` ('group') - The item type.\n * - `index` (number) - The item's absolute position in the dropdown.\n * - `option` (OptionGroup) - The original option configuration.\n * - `disabled` (boolean) - Whether the item is disabled.\n *\n * ### entered-text\n *\n * - `type` ('entered-text') - The item type.\n * - `option` (Option) - The entered-text option configuration.\n *\n * When providing a custom `renderOption` implementation, it fully replaces the default visual rendering and content for that item.\n * The component still manages focus, keyboard interactions, and selection state, but it no longer applies its default item layout or typography.\n *\n * When returning `null`, the default rendering will be applied for that item.\n *\n * @awsuiSystem core\n */\n renderOption?: AutosuggestProps.ItemRenderer;\n\n /**\n * Determines how filtering is applied to the list of `options`:\n *\n * * `auto` - The component will automatically filter options based on user input.\n * * `manual` - You will set up `onChange` or `onLoadItems` event listeners and filter options on your side or request\n * them from server.\n *\n * By default the component will filter the provided `options` based on the value of the filtering input field.\n * Only options that have a `value`, `label`, `description` or `labelTag` that contains the input value as a substring\n * are displayed in the list of options.\n *\n * If you set this property to `manual`, this default filtering mechanism is disabled and all provided `options` are\n * displayed in the dropdown list. In that case make sure that you use the `onChange` or `onLoadItems` events in order\n * to set the `options` property to the options that are relevant for the user, given the filtering input value.\n *\n * Note: Manual filtering doesn't disable match highlighting.\n **/\n filteringType?: OptionsFilteringType;\n\n /**\n * Specifies a function that generates the custom value indicator (for example, `Use \"${value}\"`).\n * @i18n\n */\n enteredTextLabel?: AutosuggestProps.EnteredTextLabel;\n\n /**\n * Defines whether entered text option is shown as the first option in the dropdown when value is non-empty.\n */\n hideEnteredTextOption?: boolean;\n\n /**\n * Specifies the text to display with the number of matches at the bottom of the dropdown menu while filtering.\n *\n * Note that the `matchesCount` includes the `enteredTextLabel` (\"Use ${value}\") item, so in most cases you\n * should subtract 1 from `matchesCount`. If using manual filtering, you should provide your own value for `totalCount`.\n */\n filteringResultsText?: (matchesCount: number, totalCount: number) => string;\n\n /**\n * Specifies the text that's displayed when there aren't any suggestions to display.\n * This is displayed when `statusType` is set to `finished` or it's not set at all.\n */\n empty?: React.ReactNode;\n\n /**\n * Called whenever a user selects an option in the dropdown. Don't use this event as the only way to handle user input.\n * Instead, use `onSelect` in combination with the `onChange` handler only as an optional convenience for the user.\n */\n onSelect?: NonCancelableEventHandler<AutosuggestProps.SelectDetail>;\n\n /**\n * Specifies the localized string that describes an option as being selected.\n * This is required to provide a good screen reader experience. For more information, see the\n * [accessibility guidelines](/components/autosuggest/?tabId=usage#accessibility-guidelines).\n * @i18n\n */\n selectedAriaLabel?: string;\n /**\n * Overrides the element that is announced to screen readers\n * when the highlighted option changes. By default, this announces\n * the option's name and properties, and its selected state if\n * the `selectedAriaLabel` property is defined.\n * The highlighted option is provided, and its group (if groups\n * are used and it differs from the group of the previously highlighted option).\n *\n * For more information, see the\n * [accessibility guidelines](/components/autosuggest/?tabId=usage#accessibility-guidelines).\n */\n renderHighlightedAriaLive?: AutosuggestProps.ContainingOptionAndGroupString;\n\n /**\n * An object containing CSS properties to customize the autosuggest's visual appearance.\n * Refer to the [style](/components/autosuggest/?tabId=style) tab for more details.\n * @awsuiSystem core\n */\n style?: AutosuggestProps.Style;\n}\n\nexport namespace AutosuggestProps {\n export type ChangeDetail = InputProps.ChangeDetail;\n export type KeyDetail = InputProps.KeyDetail;\n export type FilteringType = OptionsFilteringType;\n export type Option = OptionDefinition;\n export type Options = ReadonlyArray<Option | OptionGroup>;\n export type EnteredTextLabel = (value: string) => string;\n export interface OptionGroup extends Option {\n label?: string;\n options: ReadonlyArray<Option>;\n }\n export type LoadItemsDetail = OptionsLoadItemsDetail;\n export type StatusType = DropdownStatusProps.StatusType;\n export interface SelectDetail {\n value: string;\n selectedOption?: Option;\n }\n\n export interface ContainingOptionAndGroupString {\n (option: Option, group?: OptionGroup): string;\n }\n\n export interface OptionRenderItem {\n type: 'item';\n index: number;\n option: Option;\n disabled: boolean;\n highlighted: boolean;\n selected: boolean;\n parent: OptionGroupRenderItem | null;\n }\n export interface OptionGroupRenderItem {\n type: 'group';\n index: number;\n option: OptionGroup;\n disabled: boolean;\n }\n export interface EnteredTextRenderItem {\n type: 'entered-text';\n option: Option;\n highlighted: boolean;\n }\n export type RenderItem = OptionRenderItem | OptionGroupRenderItem | EnteredTextRenderItem;\n export type ItemRenderer = (props: { item: RenderItem; filterText?: string }) => ReactNode | null;\n\n export interface Ref {\n /**\n * Sets input focus onto the UI control.\n */\n focus(): void;\n\n /**\n * Selects all text in the input control.\n */\n select(): void;\n }\n\n export interface Style {\n root?: {\n backgroundColor?: {\n default?: string;\n disabled?: string;\n focus?: string;\n hover?: string;\n readonly?: string;\n };\n borderColor?: {\n default?: string;\n disabled?: string;\n focus?: string;\n hover?: string;\n readonly?: string;\n };\n borderRadius?: string;\n borderWidth?: string;\n boxShadow?: {\n default?: string;\n disabled?: string;\n focus?: string;\n hover?: string;\n readonly?: string;\n };\n color?: {\n default?: string;\n disabled?: string;\n focus?: string;\n hover?: string;\n readonly?: string;\n };\n fontSize?: string;\n fontWeight?: string;\n paddingBlock?: string;\n paddingInline?: string;\n };\n placeholder?: {\n color?: string;\n fontSize?: string;\n fontStyle?: string;\n fontWeight?: string;\n };\n }\n}\n\n// TODO: use DropdownOption type same as in select and multiselect\nexport type AutosuggestItem = (AutosuggestProps.Option | AutosuggestProps.OptionGroup) & {\n type?: 'parent' | 'child' | 'use-entered';\n option: OptionDefinition | OptionGroup;\n parent?: OptionGroup;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/autosuggest/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAO,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAEtF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,gBAAyC,MAAM,0CAA0C,CAAC;AAEjG,OAAO,cAAc,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAEL,mBAAmB,EACnB,sBAAsB,GAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,eAAe,MAAM,oCAA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,CAAC,QAAQ,IAAI,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,CAClD,oBAAC,cAAc,IACb,EAAE,EAAE,eAAe,EACnB,OAAO,EAAE,cAAc,CAAC,OAAO,EAC/B,QAAQ,EAAE,qBAAqB,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,GACjD,CACH,CAAC,CAAC,CAAC,IAAI;QAEV,qEAAqE;QACrE,kBAAkB,EAAE,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,EAC/C,SAAS,EAAE,cAAc,CAAC,iBAAiB,EAC3C,eAAe,EAAE,mBAAmB,EACpC,cAAc,EAAE,kBAAkB,EAClC,gBAAgB,EAAE,oBAAoB,EACtC,cAAc,EAAE,kBAAkB,EAClC,YAAY,EAAE,gBAAgB,GAC9B,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,mBAAmB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { Ref, useImperativeHandle, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useUniqueId, warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { useFormFieldContext } from '../contexts/form-field';\nimport { useInternalI18n } from '../i18n/context';\nimport { BaseChangeDetail } from '../input/interfaces';\nimport AutosuggestInput, { AutosuggestInputRef } from '../internal/components/autosuggest-input';\nimport { OptionsLoadItemsDetail } from '../internal/components/dropdown/interfaces';\nimport DropdownFooter from '../internal/components/dropdown-footer';\nimport { useDropdownStatus } from '../internal/components/dropdown-status';\nimport {\n BaseKeyDetail,\n fireCancelableEvent,\n fireNonCancelableEvent,\n NonCancelableCustomEvent,\n} from '../internal/events';\nimport checkControlled from '../internal/hooks/check-controlled';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { checkOptionValueField } from '../select/utils/check-option-value-field';\nimport { AutosuggestItem, AutosuggestProps } from './interfaces';\nimport { useAutosuggestLoadMore } from './load-more-controller';\nimport { useAutosuggestItems } from './options-controller';\nimport AutosuggestOptionsList from './options-list';\n\nimport styles from './styles.css.js';\n\ninterface InternalAutosuggestProps extends AutosuggestProps, InternalBaseComponentProps {}\n\nconst InternalAutosuggest = React.forwardRef((props: InternalAutosuggestProps, ref: Ref<AutosuggestProps.Ref>) => {\n const {\n value,\n onChange,\n onBlur,\n onFocus,\n onKeyUp,\n onLoadItems,\n options,\n filteringType = 'auto',\n statusType = 'finished',\n placeholder,\n clearAriaLabel,\n name,\n disabled,\n disableBrowserAutocorrect = false,\n autoFocus,\n readOnly,\n ariaLabel,\n ariaRequired,\n enteredTextLabel,\n hideEnteredTextOption,\n filteringResultsText,\n onKeyDown,\n virtualScroll,\n expandToViewport,\n onSelect,\n renderHighlightedAriaLive,\n style,\n renderOption,\n __internalRootRef,\n ...restProps\n } = props;\n\n checkControlled('Autosuggest', 'value', value, 'onChange', onChange);\n checkOptionValueField('Autosuggest', 'options', options);\n\n const autosuggestInputRef = useRef<AutosuggestInputRef>(null);\n useImperativeHandle(\n ref,\n () => ({\n focus: () => autosuggestInputRef.current?.focus(),\n select: () => autosuggestInputRef.current?.select(),\n }),\n []\n );\n\n const i18n = useInternalI18n('autosuggest');\n const errorIconAriaLabel = i18n('errorIconAriaLabel', restProps.errorIconAriaLabel);\n const selectedAriaLabel = i18n('selectedAriaLabel', restProps.selectedAriaLabel);\n const recoveryText = i18n('recoveryText', restProps.recoveryText);\n\n if (restProps.recoveryText && !onLoadItems) {\n warnOnce('Autosuggest', '`onLoadItems` must be provided for `recoveryText` to be displayed.');\n }\n\n const [autosuggestItemsState, autosuggestItemsHandlers] = useAutosuggestItems({\n options: options || [],\n filterValue: value,\n filterText: value,\n filteringType,\n enteredTextLabel,\n hideEnteredTextLabel: hideEnteredTextOption,\n onSelectItem: (option: AutosuggestItem) => {\n const value = option.value || '';\n fireNonCancelableEvent(onChange, { value });\n fireNonCancelableEvent(onSelect, {\n value,\n selectedOption: option.type !== 'use-entered' ? option.option : undefined,\n });\n autosuggestInputRef.current?.close();\n },\n });\n\n const autosuggestLoadMoreHandlers = useAutosuggestLoadMore({\n options,\n statusType,\n onLoadItems: (detail: OptionsLoadItemsDetail) => fireNonCancelableEvent(onLoadItems, detail),\n });\n\n const handleChange = (event: NonCancelableCustomEvent<BaseChangeDetail>) => {\n autosuggestItemsHandlers.setShowAll(false);\n autosuggestItemsHandlers.resetHighlightWithKeyboard();\n fireNonCancelableEvent(onChange, event.detail);\n };\n\n const handleDelayedInput = (event: NonCancelableCustomEvent<BaseChangeDetail>) => {\n autosuggestLoadMoreHandlers.fireLoadMoreOnInputChange(event.detail.value);\n };\n\n const handleBlur = () => {\n fireNonCancelableEvent(onBlur, null);\n };\n\n const handleFocus = () => {\n autosuggestItemsHandlers.setShowAll(true);\n autosuggestLoadMoreHandlers.fireLoadMoreOnInputFocus();\n fireNonCancelableEvent(onFocus, null);\n };\n\n const handleKeyUp = (event: CustomEvent<BaseKeyDetail>) => {\n fireCancelableEvent(onKeyUp, event.detail, event);\n };\n\n const handleKeyDown = (event: CustomEvent<BaseKeyDetail>) => {\n fireCancelableEvent(onKeyDown, event.detail, event);\n };\n\n const handlePressArrowDown = () => {\n if (autosuggestItemsState.items.length - 1 === autosuggestItemsState.highlightedIndex) {\n autosuggestItemsHandlers.goHomeWithKeyboard();\n return;\n }\n\n autosuggestItemsHandlers.moveHighlightWithKeyboard(1);\n };\n\n const handlePressArrowUp = () => {\n if (\n (autosuggestItemsState.highlightedOption?.type === 'child' && autosuggestItemsState.highlightedIndex === 1) ||\n autosuggestItemsState.highlightedIndex === 0\n ) {\n autosuggestItemsHandlers.goEndWithKeyboard();\n return;\n }\n\n autosuggestItemsHandlers.moveHighlightWithKeyboard(-1);\n };\n\n const handlePressEnter = () => {\n return autosuggestItemsHandlers.selectHighlightedOptionWithKeyboard();\n };\n\n const handleCloseDropdown = () => {\n autosuggestItemsHandlers.resetHighlightWithKeyboard();\n };\n\n const handleRecoveryClick = () => {\n autosuggestLoadMoreHandlers.fireLoadMoreOnRecoveryClick();\n autosuggestInputRef.current?.focus();\n };\n\n const formFieldContext = useFormFieldContext(restProps);\n const selfControlId = useUniqueId('input');\n const footerControlId = useUniqueId('footer');\n const controlId = formFieldContext.controlId ?? selfControlId;\n const listId = useUniqueId('list');\n const highlightedOptionIdSource = useUniqueId();\n const highlightedOptionId = autosuggestItemsState.highlightedOption ? highlightedOptionIdSource : undefined;\n\n const isEmpty = !value && !autosuggestItemsState.items.length;\n const isFiltered = !!value && value.length !== 0 && !(filteringType === 'auto' && autosuggestItemsState.showAll);\n const filteredText = isFiltered\n ? filteringResultsText?.(autosuggestItemsState.items.length, options?.length ?? 0)\n : undefined;\n const dropdownStatus = useDropdownStatus({\n ...props,\n isEmpty,\n recoveryText,\n errorIconAriaLabel,\n onRecoveryClick: handleRecoveryClick,\n filteringResultsText: filteredText,\n hasRecoveryCallback: !!onLoadItems,\n });\n\n const shouldRenderDropdownContent =\n autosuggestItemsState.items.length !== 0 || !!dropdownStatus.content || (!hideEnteredTextOption && !!value);\n\n const hasItems = useRef(autosuggestItemsState.items.length > 0);\n hasItems.current = hasItems.current || autosuggestItemsState.items.length > 0;\n\n return (\n <AutosuggestInput\n {...restProps}\n className={clsx(styles.root, restProps.className)}\n ref={autosuggestInputRef}\n __internalRootRef={__internalRootRef}\n value={value}\n onChange={handleChange}\n onBlur={handleBlur}\n onFocus={handleFocus}\n onKeyUp={handleKeyUp}\n onKeyDown={handleKeyDown}\n name={name}\n controlId={controlId}\n placeholder={placeholder}\n disabled={disabled}\n readOnly={readOnly}\n autoFocus={autoFocus}\n ariaLabel={ariaLabel}\n ariaRequired={ariaRequired}\n clearAriaLabel={clearAriaLabel}\n disableBrowserAutocorrect={disableBrowserAutocorrect}\n expandToViewport={expandToViewport}\n ariaControls={listId}\n ariaActivedescendant={highlightedOptionId}\n dropdownExpanded={shouldRenderDropdownContent}\n style={style}\n dropdownContent={\n shouldRenderDropdownContent && (\n <AutosuggestOptionsList\n renderOption={renderOption}\n statusType={statusType}\n autosuggestItemsState={autosuggestItemsState}\n autosuggestItemsHandlers={autosuggestItemsHandlers}\n highlightedOptionId={highlightedOptionId}\n highlightText={value}\n listId={listId}\n controlId={controlId}\n handleLoadMore={autosuggestLoadMoreHandlers.fireLoadMoreOnScroll}\n hasDropdownStatus={dropdownStatus.content !== null}\n virtualScroll={virtualScroll}\n selectedAriaLabel={selectedAriaLabel}\n renderHighlightedAriaLive={renderHighlightedAriaLive}\n listBottom={\n !dropdownStatus.isSticky ? <DropdownFooter content={dropdownStatus.content} id={footerControlId} /> : null\n }\n ariaDescribedby={dropdownStatus.content ? footerControlId : undefined}\n />\n )\n }\n dropdownFooter={\n dropdownStatus.isSticky && dropdownStatus.content ? (\n <DropdownFooter\n id={footerControlId}\n content={dropdownStatus.content}\n hasItems={autosuggestItemsState.items.length >= 1}\n />\n ) : null\n }\n // Forces dropdown position recalculation when new options are loaded\n dropdownContentKey={hasItems.current.toString()}\n loopFocus={dropdownStatus.hasRecoveryButton}\n onCloseDropdown={handleCloseDropdown}\n onDelayedInput={handleDelayedInput}\n onPressArrowDown={handlePressArrowDown}\n onPressArrowUp={handlePressArrowUp}\n onPressEnter={handlePressEnter}\n />\n );\n});\n\nexport default InternalAutosuggest;\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/autosuggest/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAO,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAEtF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,gBAAyC,MAAM,0CAA0C,CAAC;AACjG,OAAO,cAAc,MA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AE,EAAE,EAAE,eAAe,GAAI,CAAC,CAAC,CAAC,IAAI,EAE5G,eAAe,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,GACrE,CACH,EAEH,cAAc,EACZ,cAAc,CAAC,QAAQ,IAAI,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,CAClD,oBAAC,cAAc,IACb,EAAE,EAAE,eAAe,EACnB,OAAO,EAAE,cAAc,CAAC,OAAO,EAC/B,QAAQ,EAAE,qBAAqB,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,GACjD,CACH,CAAC,CAAC,CAAC,IAAI;QAEV,qEAAqE;QACrE,kBAAkB,EAAE,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,EAC/C,SAAS,EAAE,cAAc,CAAC,iBAAiB,EAC3C,eAAe,EAAE,mBAAmB,EACpC,cAAc,EAAE,kBAAkB,EAClC,gBAAgB,EAAE,oBAAoB,EACtC,cAAc,EAAE,kBAAkB,EAClC,YAAY,EAAE,gBAAgB,GAC9B,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,mBAAmB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { Ref, useImperativeHandle, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useUniqueId, warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { useFormFieldContext } from '../contexts/form-field';\nimport { OptionsLoadItemsDetail } from '../dropdown/interfaces';\nimport { useInternalI18n } from '../i18n/context';\nimport { BaseChangeDetail } from '../input/interfaces';\nimport AutosuggestInput, { AutosuggestInputRef } from '../internal/components/autosuggest-input';\nimport DropdownFooter from '../internal/components/dropdown-footer';\nimport { useDropdownStatus } from '../internal/components/dropdown-status';\nimport {\n BaseKeyDetail,\n fireCancelableEvent,\n fireNonCancelableEvent,\n NonCancelableCustomEvent,\n} from '../internal/events';\nimport checkControlled from '../internal/hooks/check-controlled';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { checkOptionValueField } from '../select/utils/check-option-value-field';\nimport { AutosuggestItem, AutosuggestProps } from './interfaces';\nimport { useAutosuggestLoadMore } from './load-more-controller';\nimport { useAutosuggestItems } from './options-controller';\nimport AutosuggestOptionsList from './options-list';\n\nimport styles from './styles.css.js';\n\ninterface InternalAutosuggestProps extends AutosuggestProps, InternalBaseComponentProps {}\n\nconst InternalAutosuggest = React.forwardRef((props: InternalAutosuggestProps, ref: Ref<AutosuggestProps.Ref>) => {\n const {\n value,\n onChange,\n onBlur,\n onFocus,\n onKeyUp,\n onLoadItems,\n options,\n filteringType = 'auto',\n statusType = 'finished',\n placeholder,\n clearAriaLabel,\n name,\n disabled,\n disableBrowserAutocorrect = false,\n autoFocus,\n readOnly,\n ariaLabel,\n ariaRequired,\n enteredTextLabel,\n hideEnteredTextOption,\n filteringResultsText,\n onKeyDown,\n virtualScroll,\n expandToViewport,\n onSelect,\n renderHighlightedAriaLive,\n style,\n renderOption,\n __internalRootRef,\n ...restProps\n } = props;\n\n checkControlled('Autosuggest', 'value', value, 'onChange', onChange);\n checkOptionValueField('Autosuggest', 'options', options);\n\n const autosuggestInputRef = useRef<AutosuggestInputRef>(null);\n useImperativeHandle(\n ref,\n () => ({\n focus: () => autosuggestInputRef.current?.focus(),\n select: () => autosuggestInputRef.current?.select(),\n }),\n []\n );\n\n const i18n = useInternalI18n('autosuggest');\n const errorIconAriaLabel = i18n('errorIconAriaLabel', restProps.errorIconAriaLabel);\n const selectedAriaLabel = i18n('selectedAriaLabel', restProps.selectedAriaLabel);\n const recoveryText = i18n('recoveryText', restProps.recoveryText);\n\n if (restProps.recoveryText && !onLoadItems) {\n warnOnce('Autosuggest', '`onLoadItems` must be provided for `recoveryText` to be displayed.');\n }\n\n const [autosuggestItemsState, autosuggestItemsHandlers] = useAutosuggestItems({\n options: options || [],\n filterValue: value,\n filterText: value,\n filteringType,\n enteredTextLabel,\n hideEnteredTextLabel: hideEnteredTextOption,\n onSelectItem: (option: AutosuggestItem) => {\n const value = option.value || '';\n fireNonCancelableEvent(onChange, { value });\n fireNonCancelableEvent(onSelect, {\n value,\n selectedOption: option.type !== 'use-entered' ? option.option : undefined,\n });\n autosuggestInputRef.current?.close();\n },\n });\n\n const autosuggestLoadMoreHandlers = useAutosuggestLoadMore({\n options,\n statusType,\n onLoadItems: (detail: OptionsLoadItemsDetail) => fireNonCancelableEvent(onLoadItems, detail),\n });\n\n const handleChange = (event: NonCancelableCustomEvent<BaseChangeDetail>) => {\n autosuggestItemsHandlers.setShowAll(false);\n autosuggestItemsHandlers.resetHighlightWithKeyboard();\n fireNonCancelableEvent(onChange, event.detail);\n };\n\n const handleDelayedInput = (event: NonCancelableCustomEvent<BaseChangeDetail>) => {\n autosuggestLoadMoreHandlers.fireLoadMoreOnInputChange(event.detail.value);\n };\n\n const handleBlur = () => {\n fireNonCancelableEvent(onBlur, null);\n };\n\n const handleFocus = () => {\n autosuggestItemsHandlers.setShowAll(true);\n autosuggestLoadMoreHandlers.fireLoadMoreOnInputFocus();\n fireNonCancelableEvent(onFocus, null);\n };\n\n const handleKeyUp = (event: CustomEvent<BaseKeyDetail>) => {\n fireCancelableEvent(onKeyUp, event.detail, event);\n };\n\n const handleKeyDown = (event: CustomEvent<BaseKeyDetail>) => {\n fireCancelableEvent(onKeyDown, event.detail, event);\n };\n\n const handlePressArrowDown = () => {\n if (autosuggestItemsState.items.length - 1 === autosuggestItemsState.highlightedIndex) {\n autosuggestItemsHandlers.goHomeWithKeyboard();\n return;\n }\n\n autosuggestItemsHandlers.moveHighlightWithKeyboard(1);\n };\n\n const handlePressArrowUp = () => {\n if (\n (autosuggestItemsState.highlightedOption?.type === 'child' && autosuggestItemsState.highlightedIndex === 1) ||\n autosuggestItemsState.highlightedIndex === 0\n ) {\n autosuggestItemsHandlers.goEndWithKeyboard();\n return;\n }\n\n autosuggestItemsHandlers.moveHighlightWithKeyboard(-1);\n };\n\n const handlePressEnter = () => {\n return autosuggestItemsHandlers.selectHighlightedOptionWithKeyboard();\n };\n\n const handleCloseDropdown = () => {\n autosuggestItemsHandlers.resetHighlightWithKeyboard();\n };\n\n const handleRecoveryClick = () => {\n autosuggestLoadMoreHandlers.fireLoadMoreOnRecoveryClick();\n autosuggestInputRef.current?.focus();\n };\n\n const formFieldContext = useFormFieldContext(restProps);\n const selfControlId = useUniqueId('input');\n const footerControlId = useUniqueId('footer');\n const controlId = formFieldContext.controlId ?? selfControlId;\n const listId = useUniqueId('list');\n const highlightedOptionIdSource = useUniqueId();\n const highlightedOptionId = autosuggestItemsState.highlightedOption ? highlightedOptionIdSource : undefined;\n\n const isEmpty = !value && !autosuggestItemsState.items.length;\n const isFiltered = !!value && value.length !== 0 && !(filteringType === 'auto' && autosuggestItemsState.showAll);\n const filteredText = isFiltered\n ? filteringResultsText?.(autosuggestItemsState.items.length, options?.length ?? 0)\n : undefined;\n const dropdownStatus = useDropdownStatus({\n ...props,\n isEmpty,\n recoveryText,\n errorIconAriaLabel,\n onRecoveryClick: handleRecoveryClick,\n filteringResultsText: filteredText,\n hasRecoveryCallback: !!onLoadItems,\n });\n\n const shouldRenderDropdownContent =\n autosuggestItemsState.items.length !== 0 || !!dropdownStatus.content || (!hideEnteredTextOption && !!value);\n\n const hasItems = useRef(autosuggestItemsState.items.length > 0);\n hasItems.current = hasItems.current || autosuggestItemsState.items.length > 0;\n\n return (\n <AutosuggestInput\n {...restProps}\n className={clsx(styles.root, restProps.className)}\n ref={autosuggestInputRef}\n __internalRootRef={__internalRootRef}\n value={value}\n onChange={handleChange}\n onBlur={handleBlur}\n onFocus={handleFocus}\n onKeyUp={handleKeyUp}\n onKeyDown={handleKeyDown}\n name={name}\n controlId={controlId}\n placeholder={placeholder}\n disabled={disabled}\n readOnly={readOnly}\n autoFocus={autoFocus}\n ariaLabel={ariaLabel}\n ariaRequired={ariaRequired}\n clearAriaLabel={clearAriaLabel}\n disableBrowserAutocorrect={disableBrowserAutocorrect}\n expandToViewport={expandToViewport}\n ariaControls={listId}\n ariaActivedescendant={highlightedOptionId}\n dropdownExpanded={shouldRenderDropdownContent}\n style={style}\n dropdownContent={\n shouldRenderDropdownContent && (\n <AutosuggestOptionsList\n renderOption={renderOption}\n statusType={statusType}\n autosuggestItemsState={autosuggestItemsState}\n autosuggestItemsHandlers={autosuggestItemsHandlers}\n highlightedOptionId={highlightedOptionId}\n highlightText={value}\n listId={listId}\n controlId={controlId}\n handleLoadMore={autosuggestLoadMoreHandlers.fireLoadMoreOnScroll}\n hasDropdownStatus={dropdownStatus.content !== null}\n virtualScroll={virtualScroll}\n selectedAriaLabel={selectedAriaLabel}\n renderHighlightedAriaLive={renderHighlightedAriaLive}\n listBottom={\n !dropdownStatus.isSticky ? <DropdownFooter content={dropdownStatus.content} id={footerControlId} /> : null\n }\n ariaDescribedby={dropdownStatus.content ? footerControlId : undefined}\n />\n )\n }\n dropdownFooter={\n dropdownStatus.isSticky && dropdownStatus.content ? (\n <DropdownFooter\n id={footerControlId}\n content={dropdownStatus.content}\n hasItems={autosuggestItemsState.items.length >= 1}\n />\n ) : null\n }\n // Forces dropdown position recalculation when new options are loaded\n dropdownContentKey={hasItems.current.toString()}\n loopFocus={dropdownStatus.hasRecoveryButton}\n onCloseDropdown={handleCloseDropdown}\n onDelayedInput={handleDelayedInput}\n onPressArrowDown={handlePressArrowDown}\n onPressArrowUp={handlePressArrowUp}\n onPressEnter={handlePressEnter}\n />\n );\n});\n\nexport default InternalAutosuggest;\n"]}
@@ -1,4 +1,4 @@
1
- import { OptionsLoadItemsDetail } from '../internal/components/dropdown/interfaces';
1
+ import { OptionsLoadItemsDetail } from '../dropdown/interfaces';
2
2
  import { DropdownStatusProps } from '../internal/components/dropdown-status/interfaces';
3
3
  import { AutosuggestProps } from './interfaces';
4
4
  interface UseAutosuggestLoadMoreProps {
@@ -1 +1 @@
1
- {"version":3,"file":"load-more-controller.d.ts","sourceRoot":"","sources":["../../../src/autosuggest/load-more-controller.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AACxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,UAAU,2BAA2B;IACnC,OAAO,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC;IACnC,UAAU,EAAE,mBAAmB,CAAC,UAAU,CAAC;IAC3C,WAAW,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;CACvD;AAED,UAAU,2BAA2B;IACnC,oBAAoB,IAAI,IAAI,CAAC;IAC7B,2BAA2B,IAAI,IAAI,CAAC;IACpC,wBAAwB,IAAI,IAAI,CAAC;IACjC,yBAAyB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CACxD;AAED,eAAO,MAAM,sBAAsB,GAAI,uCAIpC,2BAA2B,KAAG,2BAmChC,CAAC"}
1
+ {"version":3,"file":"load-more-controller.d.ts","sourceRoot":"","sources":["../../../src/autosuggest/load-more-controller.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AACxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,UAAU,2BAA2B;IACnC,OAAO,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC;IACnC,UAAU,EAAE,mBAAmB,CAAC,UAAU,CAAC;IAC3C,WAAW,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;CACvD;AAED,UAAU,2BAA2B;IACnC,oBAAoB,IAAI,IAAI,CAAC;IAC7B,2BAA2B,IAAI,IAAI,CAAC;IACpC,wBAAwB,IAAI,IAAI,CAAC;IACjC,yBAAyB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CACxD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,OAAA,YAAY,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,MAAA,iBAAiB,CAAC,OAAO,mCAAI,EAAE,EAAE,CAAC,CAAA,EAAA,CAAC;IAErG,MAAM,yBAAyB,GAAG,CAAC,aAAqB,EAAE,EAAE,CAC1D,YAAY,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC,CAAC;IAEpE,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,CAAC;AACpH,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useRef } from 'react';\n\nimport { OptionsLoadItemsDetail } from '../internal/components/dropdown/interfaces';\nimport { DropdownStatusProps } from '../internal/components/dropdown-status/interfaces';\nimport { AutosuggestProps } from './interfaces';\n\ninterface UseAutosuggestLoadMoreProps {\n options?: AutosuggestProps.Options;\n statusType: DropdownStatusProps.StatusType;\n onLoadItems: (detail: OptionsLoadItemsDetail) => void;\n}\n\ninterface AutosuggestLoadMoreHandlers {\n fireLoadMoreOnScroll(): void;\n fireLoadMoreOnRecoveryClick(): void;\n fireLoadMoreOnInputFocus(): void;\n fireLoadMoreOnInputChange(filteringText: string): void;\n}\n\nexport const useAutosuggestLoadMore = ({\n options = [],\n statusType,\n onLoadItems,\n}: UseAutosuggestLoadMoreProps): AutosuggestLoadMoreHandlers => {\n const lastFilteringText = useRef<string | null>(null);\n\n const fireLoadMore = ({\n firstPage,\n samePage,\n filteringText,\n }: {\n firstPage: boolean;\n samePage: boolean;\n filteringText?: string;\n }) => {\n if (filteringText === undefined || lastFilteringText.current !== filteringText) {\n if (filteringText !== undefined) {\n lastFilteringText.current = filteringText;\n }\n onLoadItems({ filteringText: lastFilteringText.current ?? '', firstPage, samePage });\n }\n };\n\n const fireLoadMoreOnScroll = () => {\n if (options.length > 0 && statusType === 'pending') {\n fireLoadMore({ firstPage: false, samePage: false });\n }\n };\n\n const fireLoadMoreOnRecoveryClick = () => fireLoadMore({ firstPage: false, samePage: true });\n\n const fireLoadMoreOnInputFocus = () =>\n fireLoadMore({ firstPage: true, samePage: false, filteringText: lastFilteringText.current ?? '' });\n\n const fireLoadMoreOnInputChange = (filteringText: string) =>\n fireLoadMore({ firstPage: true, samePage: false, filteringText });\n\n return { fireLoadMoreOnScroll, fireLoadMoreOnRecoveryClick, fireLoadMoreOnInputFocus, fireLoadMoreOnInputChange };\n};\n"]}
1
+ {"version":3,"file":"load-more-controller.js","sourceRoot":"","sources":["../../../src/autosuggest/load-more-controller.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAmB/B,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EACrC,OAAO,GAAG,EAAE,EACZ,UAAU,EACV,WAAW,GACiB,EAA+B,EAAE;IAC7D,MAAM,iBAAiB,GAAG,MAAM,CAAgB,IAAI,CAAC,CAAC;IAEtD,MAAM,YAAY,GAAG,CAAC,EACpB,SAAS,EACT,QAAQ,EACR,aAAa,GAKd,EAAE,EAAE;;QACH,IAAI,aAAa,KAAK,SAAS,IAAI,iBAAiB,CAAC,OAAO,KAAK,aAAa,EAAE,CAAC;YAC/E,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;gBAChC,iBAAiB,CAAC,OAAO,GAAG,aAAa,CAAC;YAC5C,CAAC;YACD,WAAW,CAAC,EAAE,aAAa,EAAE,MAAA,iBAAiB,CAAC,OAAO,mCAAI,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC;QACvF,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,oBAAoB,GAAG,GAAG,EAAE;QAChC,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;YACnD,YAAY,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QACtD,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,2BAA2B,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAE7F,MAAM,wBAAwB,GAAG,GAAG,EAAE,WACpC,OAAA,YAAY,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,MAAA,iBAAiB,CAAC,OAAO,mCAAI,EAAE,EAAE,CAAC,CAAA,EAAA,CAAC;IAErG,MAAM,yBAAyB,GAAG,CAAC,aAAqB,EAAE,EAAE,CAC1D,YAAY,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC,CAAC;IAEpE,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,CAAC;AACpH,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useRef } from 'react';\n\nimport { OptionsLoadItemsDetail } from '../dropdown/interfaces';\nimport { DropdownStatusProps } from '../internal/components/dropdown-status/interfaces';\nimport { AutosuggestProps } from './interfaces';\n\ninterface UseAutosuggestLoadMoreProps {\n options?: AutosuggestProps.Options;\n statusType: DropdownStatusProps.StatusType;\n onLoadItems: (detail: OptionsLoadItemsDetail) => void;\n}\n\ninterface AutosuggestLoadMoreHandlers {\n fireLoadMoreOnScroll(): void;\n fireLoadMoreOnRecoveryClick(): void;\n fireLoadMoreOnInputFocus(): void;\n fireLoadMoreOnInputChange(filteringText: string): void;\n}\n\nexport const useAutosuggestLoadMore = ({\n options = [],\n statusType,\n onLoadItems,\n}: UseAutosuggestLoadMoreProps): AutosuggestLoadMoreHandlers => {\n const lastFilteringText = useRef<string | null>(null);\n\n const fireLoadMore = ({\n firstPage,\n samePage,\n filteringText,\n }: {\n firstPage: boolean;\n samePage: boolean;\n filteringText?: string;\n }) => {\n if (filteringText === undefined || lastFilteringText.current !== filteringText) {\n if (filteringText !== undefined) {\n lastFilteringText.current = filteringText;\n }\n onLoadItems({ filteringText: lastFilteringText.current ?? '', firstPage, samePage });\n }\n };\n\n const fireLoadMoreOnScroll = () => {\n if (options.length > 0 && statusType === 'pending') {\n fireLoadMore({ firstPage: false, samePage: false });\n }\n };\n\n const fireLoadMoreOnRecoveryClick = () => fireLoadMore({ firstPage: false, samePage: true });\n\n const fireLoadMoreOnInputFocus = () =>\n fireLoadMore({ firstPage: true, samePage: false, filteringText: lastFilteringText.current ?? '' });\n\n const fireLoadMoreOnInputChange = (filteringText: string) =>\n fireLoadMore({ firstPage: true, samePage: false, filteringText });\n\n return { fireLoadMoreOnScroll, fireLoadMoreOnRecoveryClick, fireLoadMoreOnInputFocus, fireLoadMoreOnInputChange };\n};\n"]}
@@ -1,12 +1,12 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "link": "awsui_link_1kosq_1lqh2_145",
5
- "breadcrumb": "awsui_breadcrumb_1kosq_1lqh2_149",
6
- "ghost-breadcrumb": "awsui_ghost-breadcrumb_1kosq_1lqh2_150",
7
- "icon": "awsui_icon_1kosq_1lqh2_153",
8
- "anchor": "awsui_anchor_1kosq_1lqh2_159",
9
- "text": "awsui_text_1kosq_1lqh2_206",
10
- "last": "awsui_last_1kosq_1lqh2_225"
4
+ "link": "awsui_link_1kosq_1sdbb_145",
5
+ "breadcrumb": "awsui_breadcrumb_1kosq_1sdbb_149",
6
+ "ghost-breadcrumb": "awsui_ghost-breadcrumb_1kosq_1sdbb_150",
7
+ "icon": "awsui_icon_1kosq_1sdbb_153",
8
+ "anchor": "awsui_anchor_1kosq_1sdbb_159",
9
+ "text": "awsui_text_1kosq_1sdbb_206",
10
+ "last": "awsui_last_1kosq_1sdbb_225"
11
11
  };
12
12
 
@@ -142,27 +142,27 @@
142
142
  */
143
143
  /* Style used for links in slots/components that are text heavy, to help links stand out among
144
144
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
145
- .awsui_link_1kosq_1lqh2_145:not(#\9):after {
145
+ .awsui_link_1kosq_1sdbb_145:not(#\9):after {
146
146
  display: none;
147
147
  }
148
148
 
149
- .awsui_breadcrumb_1kosq_1lqh2_149:not(#\9),
150
- .awsui_ghost-breadcrumb_1kosq_1lqh2_150:not(#\9) {
149
+ .awsui_breadcrumb_1kosq_1sdbb_149:not(#\9),
150
+ .awsui_ghost-breadcrumb_1kosq_1sdbb_150:not(#\9) {
151
151
  display: flex;
152
152
  }
153
- .awsui_breadcrumb_1kosq_1lqh2_149 > .awsui_icon_1kosq_1lqh2_153:not(#\9),
154
- .awsui_ghost-breadcrumb_1kosq_1lqh2_150 > .awsui_icon_1kosq_1lqh2_153:not(#\9) {
153
+ .awsui_breadcrumb_1kosq_1sdbb_149 > .awsui_icon_1kosq_1sdbb_153:not(#\9),
154
+ .awsui_ghost-breadcrumb_1kosq_1sdbb_150 > .awsui_icon_1kosq_1sdbb_153:not(#\9) {
155
155
  margin-block: 0;
156
156
  margin-inline: var(--space-xs-kw7k3v, 8px);
157
157
  color: var(--color-text-breadcrumb-icon-c379ty, #687078);
158
158
  }
159
- .awsui_breadcrumb_1kosq_1lqh2_149 > .awsui_anchor_1kosq_1lqh2_159:not(#\9),
160
- .awsui_ghost-breadcrumb_1kosq_1lqh2_150 > .awsui_anchor_1kosq_1lqh2_159:not(#\9) {
159
+ .awsui_breadcrumb_1kosq_1sdbb_149 > .awsui_anchor_1kosq_1sdbb_159:not(#\9),
160
+ .awsui_ghost-breadcrumb_1kosq_1sdbb_150 > .awsui_anchor_1kosq_1sdbb_159:not(#\9) {
161
161
  min-inline-size: 0;
162
162
  overflow: hidden;
163
163
  text-underline-offset: 0.25em;
164
164
  text-decoration-thickness: 1px;
165
- color: var(--awsui-style-color-default-hzjhvz, var(--color-text-link-default-z7zuy8, #0073bb));
165
+ color: var(--awsui-style-color-default-u09ddc, var(--color-text-link-default-z7zuy8, #0073bb));
166
166
  font-weight: inherit;
167
167
  letter-spacing: normal;
168
168
  text-decoration-line: underline;
@@ -173,42 +173,42 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
173
173
  transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
174
174
  }
175
175
  @media (prefers-reduced-motion: reduce) {
176
- .awsui_breadcrumb_1kosq_1lqh2_149 > .awsui_anchor_1kosq_1lqh2_159:not(#\9),
177
- .awsui_ghost-breadcrumb_1kosq_1lqh2_150 > .awsui_anchor_1kosq_1lqh2_159:not(#\9) {
176
+ .awsui_breadcrumb_1kosq_1sdbb_149 > .awsui_anchor_1kosq_1sdbb_159:not(#\9),
177
+ .awsui_ghost-breadcrumb_1kosq_1sdbb_150 > .awsui_anchor_1kosq_1sdbb_159:not(#\9) {
178
178
  animation: none;
179
179
  transition: none;
180
180
  }
181
181
  }
182
- .awsui-motion-disabled .awsui_breadcrumb_1kosq_1lqh2_149 > .awsui_anchor_1kosq_1lqh2_159:not(#\9), .awsui-mode-entering .awsui_breadcrumb_1kosq_1lqh2_149 > .awsui_anchor_1kosq_1lqh2_159:not(#\9), .awsui-motion-disabled .awsui_ghost-breadcrumb_1kosq_1lqh2_150 > .awsui_anchor_1kosq_1lqh2_159:not(#\9), .awsui-mode-entering .awsui_ghost-breadcrumb_1kosq_1lqh2_150 > .awsui_anchor_1kosq_1lqh2_159:not(#\9) {
182
+ .awsui-motion-disabled .awsui_breadcrumb_1kosq_1sdbb_149 > .awsui_anchor_1kosq_1sdbb_159:not(#\9), .awsui-mode-entering .awsui_breadcrumb_1kosq_1sdbb_149 > .awsui_anchor_1kosq_1sdbb_159:not(#\9), .awsui-motion-disabled .awsui_ghost-breadcrumb_1kosq_1sdbb_150 > .awsui_anchor_1kosq_1sdbb_159:not(#\9), .awsui-mode-entering .awsui_ghost-breadcrumb_1kosq_1sdbb_150 > .awsui_anchor_1kosq_1sdbb_159:not(#\9) {
183
183
  animation: none;
184
184
  transition: none;
185
185
  }
186
- .awsui_breadcrumb_1kosq_1lqh2_149 > .awsui_anchor_1kosq_1lqh2_159:not(#\9):hover,
187
- .awsui_ghost-breadcrumb_1kosq_1lqh2_150 > .awsui_anchor_1kosq_1lqh2_159:not(#\9):hover {
186
+ .awsui_breadcrumb_1kosq_1sdbb_149 > .awsui_anchor_1kosq_1sdbb_159:not(#\9):hover,
187
+ .awsui_ghost-breadcrumb_1kosq_1sdbb_150 > .awsui_anchor_1kosq_1sdbb_159:not(#\9):hover {
188
188
  cursor: pointer;
189
- color: var(--awsui-style-color-hover-hzjhvz, var(--color-text-link-hover-pqxtsy, #0a4a74));
189
+ color: var(--awsui-style-color-hover-u09ddc, var(--color-text-link-hover-pqxtsy, #0a4a74));
190
190
  }
191
- .awsui_breadcrumb_1kosq_1lqh2_149 > .awsui_anchor_1kosq_1lqh2_159:not(#\9):focus,
192
- .awsui_ghost-breadcrumb_1kosq_1lqh2_150 > .awsui_anchor_1kosq_1lqh2_159:not(#\9):focus {
191
+ .awsui_breadcrumb_1kosq_1sdbb_149 > .awsui_anchor_1kosq_1sdbb_159:not(#\9):focus,
192
+ .awsui_ghost-breadcrumb_1kosq_1sdbb_150 > .awsui_anchor_1kosq_1sdbb_159:not(#\9):focus {
193
193
  outline: none;
194
194
  }
195
- .awsui_breadcrumb_1kosq_1lqh2_149 > .awsui_anchor_1kosq_1lqh2_159:not(#\9):active,
196
- .awsui_ghost-breadcrumb_1kosq_1lqh2_150 > .awsui_anchor_1kosq_1lqh2_159:not(#\9):active {
197
- color: var(--awsui-style-color-active-hzjhvz, var(--color-text-link-hover-pqxtsy, #0a4a74));
195
+ .awsui_breadcrumb_1kosq_1sdbb_149 > .awsui_anchor_1kosq_1sdbb_159:not(#\9):active,
196
+ .awsui_ghost-breadcrumb_1kosq_1sdbb_150 > .awsui_anchor_1kosq_1sdbb_159:not(#\9):active {
197
+ color: var(--awsui-style-color-active-u09ddc, var(--color-text-link-hover-pqxtsy, #0a4a74));
198
198
  }
199
- .awsui_breadcrumb_1kosq_1lqh2_149 > .awsui_anchor_1kosq_1lqh2_159:not(#\9):active, .awsui_breadcrumb_1kosq_1lqh2_149 > .awsui_anchor_1kosq_1lqh2_159:not(#\9):focus, .awsui_breadcrumb_1kosq_1lqh2_149 > .awsui_anchor_1kosq_1lqh2_159:not(#\9):hover, .awsui_ghost-breadcrumb_1kosq_1lqh2_150 > .awsui_anchor_1kosq_1lqh2_159:not(#\9):active, .awsui_ghost-breadcrumb_1kosq_1lqh2_150 > .awsui_anchor_1kosq_1lqh2_159:not(#\9):focus, .awsui_ghost-breadcrumb_1kosq_1lqh2_150 > .awsui_anchor_1kosq_1lqh2_159:not(#\9):hover {
199
+ .awsui_breadcrumb_1kosq_1sdbb_149 > .awsui_anchor_1kosq_1sdbb_159:not(#\9):active, .awsui_breadcrumb_1kosq_1sdbb_149 > .awsui_anchor_1kosq_1sdbb_159:not(#\9):focus, .awsui_breadcrumb_1kosq_1sdbb_149 > .awsui_anchor_1kosq_1sdbb_159:not(#\9):hover, .awsui_ghost-breadcrumb_1kosq_1sdbb_150 > .awsui_anchor_1kosq_1sdbb_159:not(#\9):active, .awsui_ghost-breadcrumb_1kosq_1sdbb_150 > .awsui_anchor_1kosq_1sdbb_159:not(#\9):focus, .awsui_ghost-breadcrumb_1kosq_1sdbb_150 > .awsui_anchor_1kosq_1sdbb_159:not(#\9):hover {
200
200
  text-decoration-line: underline;
201
201
  text-decoration-color: currentColor;
202
202
  }
203
- .awsui_breadcrumb_1kosq_1lqh2_149 > .awsui_anchor_1kosq_1lqh2_159 > .awsui_text_1kosq_1lqh2_206:not(#\9),
204
- .awsui_ghost-breadcrumb_1kosq_1lqh2_150 > .awsui_anchor_1kosq_1lqh2_159 > .awsui_text_1kosq_1lqh2_206:not(#\9) {
203
+ .awsui_breadcrumb_1kosq_1sdbb_149 > .awsui_anchor_1kosq_1sdbb_159 > .awsui_text_1kosq_1sdbb_206:not(#\9),
204
+ .awsui_ghost-breadcrumb_1kosq_1sdbb_150 > .awsui_anchor_1kosq_1sdbb_159 > .awsui_text_1kosq_1sdbb_206:not(#\9) {
205
205
  overflow: hidden;
206
206
  text-overflow: ellipsis;
207
207
  white-space: nowrap;
208
208
  display: block;
209
209
  }
210
- body[data-awsui-focus-visible=true] .awsui_breadcrumb_1kosq_1lqh2_149 > .awsui_anchor_1kosq_1lqh2_159:not(#\9):focus,
211
- body[data-awsui-focus-visible=true] .awsui_ghost-breadcrumb_1kosq_1lqh2_150 > .awsui_anchor_1kosq_1lqh2_159:not(#\9):focus {
210
+ body[data-awsui-focus-visible=true] .awsui_breadcrumb_1kosq_1sdbb_149 > .awsui_anchor_1kosq_1sdbb_159:not(#\9):focus,
211
+ body[data-awsui-focus-visible=true] .awsui_ghost-breadcrumb_1kosq_1sdbb_150 > .awsui_anchor_1kosq_1sdbb_159:not(#\9):focus {
212
212
  outline: thin dotted;
213
213
  outline: var(--border-link-focus-ring-outline-c5423y, 5px auto Highlight);
214
214
  outline-offset: 2px;
@@ -219,12 +219,12 @@ body[data-awsui-focus-visible=true] .awsui_ghost-breadcrumb_1kosq_1lqh2_150 > .a
219
219
  border-end-end-radius: var(--border-radius-control-default-focus-ring-9xsko1, 2px);
220
220
  box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-woh62o, 0px) var(--color-border-item-focused-r5f6xl, #0073bb);
221
221
  }
222
- .awsui_breadcrumb_1kosq_1lqh2_149.awsui_last_1kosq_1lqh2_225 > .awsui_icon_1kosq_1lqh2_153:not(#\9),
223
- .awsui_ghost-breadcrumb_1kosq_1lqh2_150.awsui_last_1kosq_1lqh2_225 > .awsui_icon_1kosq_1lqh2_153:not(#\9) {
222
+ .awsui_breadcrumb_1kosq_1sdbb_149.awsui_last_1kosq_1sdbb_225 > .awsui_icon_1kosq_1sdbb_153:not(#\9),
223
+ .awsui_ghost-breadcrumb_1kosq_1sdbb_150.awsui_last_1kosq_1sdbb_225 > .awsui_icon_1kosq_1sdbb_153:not(#\9) {
224
224
  display: none;
225
225
  }
226
- .awsui_breadcrumb_1kosq_1lqh2_149.awsui_last_1kosq_1lqh2_225 > .awsui_anchor_1kosq_1lqh2_159:not(#\9),
227
- .awsui_ghost-breadcrumb_1kosq_1lqh2_150.awsui_last_1kosq_1lqh2_225 > .awsui_anchor_1kosq_1lqh2_159:not(#\9) {
226
+ .awsui_breadcrumb_1kosq_1sdbb_149.awsui_last_1kosq_1sdbb_225 > .awsui_anchor_1kosq_1sdbb_159:not(#\9),
227
+ .awsui_ghost-breadcrumb_1kosq_1sdbb_150.awsui_last_1kosq_1sdbb_225 > .awsui_anchor_1kosq_1sdbb_159:not(#\9) {
228
228
  color: var(--color-text-breadcrumb-current-hwvp31, #687078);
229
229
  font-weight: 700;
230
230
  text-decoration: none;
@@ -2,12 +2,12 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "link": "awsui_link_1kosq_1lqh2_145",
6
- "breadcrumb": "awsui_breadcrumb_1kosq_1lqh2_149",
7
- "ghost-breadcrumb": "awsui_ghost-breadcrumb_1kosq_1lqh2_150",
8
- "icon": "awsui_icon_1kosq_1lqh2_153",
9
- "anchor": "awsui_anchor_1kosq_1lqh2_159",
10
- "text": "awsui_text_1kosq_1lqh2_206",
11
- "last": "awsui_last_1kosq_1lqh2_225"
5
+ "link": "awsui_link_1kosq_1sdbb_145",
6
+ "breadcrumb": "awsui_breadcrumb_1kosq_1sdbb_149",
7
+ "ghost-breadcrumb": "awsui_ghost-breadcrumb_1kosq_1sdbb_150",
8
+ "icon": "awsui_icon_1kosq_1sdbb_153",
9
+ "anchor": "awsui_anchor_1kosq_1sdbb_159",
10
+ "text": "awsui_text_1kosq_1sdbb_206",
11
+ "last": "awsui_last_1kosq_1sdbb_225"
12
12
  };
13
13
 
@@ -1,27 +1,27 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "content": "awsui_content_vjswe_9u06n_153",
5
- "button": "awsui_button_vjswe_9u06n_157",
6
- "variant-normal": "awsui_variant-normal_vjswe_9u06n_206",
7
- "disabled": "awsui_disabled_vjswe_9u06n_227",
8
- "variant-primary": "awsui_variant-primary_vjswe_9u06n_235",
9
- "variant-link": "awsui_variant-link_vjswe_9u06n_264",
10
- "variant-icon": "awsui_variant-icon_vjswe_9u06n_293",
11
- "variant-inline-icon": "awsui_variant-inline-icon_vjswe_9u06n_322",
12
- "variant-inline-icon-pointer-target": "awsui_variant-inline-icon-pointer-target_vjswe_9u06n_351",
13
- "variant-inline-link": "awsui_variant-inline-link_vjswe_9u06n_380",
14
- "variant-modal-dismiss": "awsui_variant-modal-dismiss_vjswe_9u06n_413",
15
- "variant-flashbar-icon": "awsui_variant-flashbar-icon_vjswe_9u06n_442",
16
- "variant-breadcrumb-group": "awsui_variant-breadcrumb-group_vjswe_9u06n_471",
17
- "variant-menu-trigger": "awsui_variant-menu-trigger_vjswe_9u06n_505",
18
- "button-no-text": "awsui_button-no-text_vjswe_9u06n_601",
19
- "button-no-wrap": "awsui_button-no-wrap_vjswe_9u06n_605",
20
- "full-width": "awsui_full-width_vjswe_9u06n_608",
21
- "icon-left": "awsui_icon-left_vjswe_9u06n_630",
22
- "icon-right": "awsui_icon-right_vjswe_9u06n_635",
23
- "icon": "awsui_icon_vjswe_9u06n_630",
24
- "link": "awsui_link_vjswe_9u06n_654",
25
- "disabled-with-reason": "awsui_disabled-with-reason_vjswe_9u06n_654"
4
+ "content": "awsui_content_vjswe_l88au_153",
5
+ "button": "awsui_button_vjswe_l88au_157",
6
+ "variant-normal": "awsui_variant-normal_vjswe_l88au_206",
7
+ "disabled": "awsui_disabled_vjswe_l88au_227",
8
+ "variant-primary": "awsui_variant-primary_vjswe_l88au_235",
9
+ "variant-link": "awsui_variant-link_vjswe_l88au_264",
10
+ "variant-icon": "awsui_variant-icon_vjswe_l88au_293",
11
+ "variant-inline-icon": "awsui_variant-inline-icon_vjswe_l88au_322",
12
+ "variant-inline-icon-pointer-target": "awsui_variant-inline-icon-pointer-target_vjswe_l88au_351",
13
+ "variant-inline-link": "awsui_variant-inline-link_vjswe_l88au_380",
14
+ "variant-modal-dismiss": "awsui_variant-modal-dismiss_vjswe_l88au_413",
15
+ "variant-flashbar-icon": "awsui_variant-flashbar-icon_vjswe_l88au_442",
16
+ "variant-breadcrumb-group": "awsui_variant-breadcrumb-group_vjswe_l88au_471",
17
+ "variant-menu-trigger": "awsui_variant-menu-trigger_vjswe_l88au_505",
18
+ "button-no-text": "awsui_button-no-text_vjswe_l88au_601",
19
+ "button-no-wrap": "awsui_button-no-wrap_vjswe_l88au_605",
20
+ "full-width": "awsui_full-width_vjswe_l88au_608",
21
+ "icon-left": "awsui_icon-left_vjswe_l88au_630",
22
+ "icon-right": "awsui_icon-right_vjswe_l88au_635",
23
+ "icon": "awsui_icon_vjswe_l88au_630",
24
+ "link": "awsui_link_vjswe_l88au_654",
25
+ "disabled-with-reason": "awsui_disabled-with-reason_vjswe_l88au_654"
26
26
  };
27
27