@cloudscape-design/components-themeable 3.0.1396 → 3.0.1397

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 (250) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/alert/styles.scss +14 -25
  3. package/lib/internal/scss/badge/styles.scss +39 -42
  4. package/lib/internal/scss/button/constants.scss +8 -8
  5. package/lib/internal/scss/button/styles.scss +50 -84
  6. package/lib/internal/scss/checkbox/styles.scss +2 -6
  7. package/lib/internal/scss/dropdown/styles.scss +16 -11
  8. package/lib/internal/scss/expandable-section/styles.scss +11 -0
  9. package/lib/internal/scss/input/styles.scss +71 -12
  10. package/lib/internal/scss/internal/components/abstract-switch/styles.scss +3 -9
  11. package/lib/internal/scss/internal/components/autosuggest-input/styles.scss +3 -0
  12. package/lib/internal/scss/internal/components/button-trigger/styles.scss +4 -1
  13. package/lib/internal/scss/internal/components/checkbox-icon/styles.scss +7 -7
  14. package/lib/internal/scss/internal/components/control-group/styles.scss +45 -0
  15. package/lib/internal/scss/internal/components/option/styles.scss +23 -0
  16. package/lib/internal/scss/internal/components/radio-button/styles.scss +9 -9
  17. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
  18. package/lib/internal/scss/internal/styles/forms/grouped-control.scss +129 -1
  19. package/lib/internal/scss/internal/styles/forms/mixins.scss +28 -25
  20. package/lib/internal/scss/internal/styles/links.scss +10 -24
  21. package/lib/internal/scss/internal/styles/style-api.scss +5 -5
  22. package/lib/internal/scss/link/styles.scss +13 -16
  23. package/lib/internal/scss/radio-button/styles.scss +1 -1
  24. package/lib/internal/scss/segmented-control/segment.scss +5 -4
  25. package/lib/internal/scss/segmented-control/styles.scss +12 -0
  26. package/lib/internal/scss/side-navigation/styles.scss +9 -0
  27. package/lib/internal/scss/toggle/styles.scss +10 -14
  28. package/lib/internal/scss/token/constants.scss +2 -0
  29. package/lib/internal/scss/token/styles.scss +4 -2
  30. package/lib/internal/template/alert/styles.css.js +27 -27
  31. package/lib/internal/template/alert/styles.scoped.css +67 -116
  32. package/lib/internal/template/alert/styles.selectors.js +27 -27
  33. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/skeleton-parts.js +6 -6
  34. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/skeleton-parts.js.map +1 -1
  35. package/lib/internal/template/autosuggest/internal.d.ts.map +1 -1
  36. package/lib/internal/template/autosuggest/internal.js +1 -1
  37. package/lib/internal/template/autosuggest/internal.js.map +1 -1
  38. package/lib/internal/template/autosuggest/options-list.js +1 -1
  39. package/lib/internal/template/autosuggest/options-list.js.map +1 -1
  40. package/lib/internal/template/badge/styles.css.js +10 -10
  41. package/lib/internal/template/badge/styles.scoped.css +55 -83
  42. package/lib/internal/template/badge/styles.selectors.js +10 -10
  43. package/lib/internal/template/button/styles.css.js +24 -24
  44. package/lib/internal/template/button/styles.scoped.css +356 -405
  45. package/lib/internal/template/button/styles.selectors.js +24 -24
  46. package/lib/internal/template/button-dropdown/filter.d.ts +1 -1
  47. package/lib/internal/template/button-dropdown/filter.d.ts.map +1 -1
  48. package/lib/internal/template/checkbox/internal.d.ts +0 -2
  49. package/lib/internal/template/checkbox/internal.d.ts.map +1 -1
  50. package/lib/internal/template/checkbox/internal.js +1 -1
  51. package/lib/internal/template/checkbox/internal.js.map +1 -1
  52. package/lib/internal/template/checkbox/styles.css.js +3 -3
  53. package/lib/internal/template/checkbox/styles.scoped.css +16 -28
  54. package/lib/internal/template/checkbox/styles.selectors.js +3 -3
  55. package/lib/internal/template/dropdown/styles.css.js +20 -20
  56. package/lib/internal/template/dropdown/styles.scoped.css +55 -63
  57. package/lib/internal/template/dropdown/styles.selectors.js +20 -20
  58. package/lib/internal/template/expandable-section/expandable-section-header.d.ts +2 -1
  59. package/lib/internal/template/expandable-section/expandable-section-header.d.ts.map +1 -1
  60. package/lib/internal/template/expandable-section/expandable-section-header.js +11 -9
  61. package/lib/internal/template/expandable-section/expandable-section-header.js.map +1 -1
  62. package/lib/internal/template/expandable-section/internal.d.ts +7 -1
  63. package/lib/internal/template/expandable-section/internal.d.ts.map +1 -1
  64. package/lib/internal/template/expandable-section/internal.js +2 -2
  65. package/lib/internal/template/expandable-section/internal.js.map +1 -1
  66. package/lib/internal/template/expandable-section/styles.css.js +46 -44
  67. package/lib/internal/template/expandable-section/styles.scoped.css +98 -89
  68. package/lib/internal/template/expandable-section/styles.selectors.js +46 -44
  69. package/lib/internal/template/input/index.d.ts.map +1 -1
  70. package/lib/internal/template/input/index.js +2 -1
  71. package/lib/internal/template/input/index.js.map +1 -1
  72. package/lib/internal/template/input/internal.d.ts +8 -1
  73. package/lib/internal/template/input/internal.d.ts.map +1 -1
  74. package/lib/internal/template/input/internal.js +7 -7
  75. package/lib/internal/template/input/internal.js.map +1 -1
  76. package/lib/internal/template/input/styles.css.js +44 -37
  77. package/lib/internal/template/input/styles.scoped.css +203 -86
  78. package/lib/internal/template/input/styles.selectors.js +44 -37
  79. package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
  80. package/lib/internal/template/internal/base-theme/styles.scoped.css +8 -0
  81. package/lib/internal/template/internal/components/abstract-switch/index.d.ts +1 -3
  82. package/lib/internal/template/internal/components/abstract-switch/index.d.ts.map +1 -1
  83. package/lib/internal/template/internal/components/abstract-switch/index.js +3 -3
  84. package/lib/internal/template/internal/components/abstract-switch/index.js.map +1 -1
  85. package/lib/internal/template/internal/components/abstract-switch/styles.css.js +13 -13
  86. package/lib/internal/template/internal/components/abstract-switch/styles.scoped.css +23 -23
  87. package/lib/internal/template/internal/components/abstract-switch/styles.selectors.js +13 -13
  88. package/lib/internal/template/internal/components/autosuggest-input/index.js +1 -1
  89. package/lib/internal/template/internal/components/autosuggest-input/index.js.map +1 -1
  90. package/lib/internal/template/internal/components/autosuggest-input/styles.css.js +33 -27
  91. package/lib/internal/template/internal/components/autosuggest-input/styles.scoped.css +129 -34
  92. package/lib/internal/template/internal/components/autosuggest-input/styles.selectors.js +33 -27
  93. package/lib/internal/template/internal/components/button-trigger/index.js +1 -1
  94. package/lib/internal/template/internal/components/button-trigger/index.js.map +1 -1
  95. package/lib/internal/template/internal/components/button-trigger/styles.css.js +29 -23
  96. package/lib/internal/template/internal/components/button-trigger/styles.scoped.css +139 -44
  97. package/lib/internal/template/internal/components/button-trigger/styles.selectors.js +29 -23
  98. package/lib/internal/template/internal/components/checkbox-icon/styles.css.js +9 -9
  99. package/lib/internal/template/internal/components/checkbox-icon/styles.scoped.css +15 -15
  100. package/lib/internal/template/internal/components/checkbox-icon/styles.selectors.js +9 -9
  101. package/lib/internal/template/internal/components/control-group/grouped-control-styles.d.ts +3 -3
  102. package/lib/internal/template/internal/components/control-group/grouped-control-styles.d.ts.map +1 -1
  103. package/lib/internal/template/internal/components/control-group/grouped-control-styles.js +8 -6
  104. package/lib/internal/template/internal/components/control-group/grouped-control-styles.js.map +1 -1
  105. package/lib/internal/template/internal/components/control-group/index.d.ts.map +1 -1
  106. package/lib/internal/template/internal/components/control-group/index.js +28 -4
  107. package/lib/internal/template/internal/components/control-group/index.js.map +1 -1
  108. package/lib/internal/template/internal/components/control-group/styles.css.js +27 -20
  109. package/lib/internal/template/internal/components/control-group/styles.scoped.css +51 -20
  110. package/lib/internal/template/internal/components/control-group/styles.selectors.js +27 -20
  111. package/lib/internal/template/internal/components/listbox/parts/common.d.ts.map +1 -0
  112. package/lib/internal/template/internal/components/listbox/parts/common.js.map +1 -0
  113. package/lib/internal/template/{select/utils → internal/components/listbox/parts}/get-item-props.d.ts +1 -1
  114. package/lib/internal/template/internal/components/listbox/parts/get-item-props.d.ts.map +1 -0
  115. package/lib/internal/template/{select/utils → internal/components/listbox/parts}/get-item-props.js +1 -1
  116. package/lib/internal/template/internal/components/listbox/parts/get-item-props.js.map +1 -0
  117. package/lib/internal/template/internal/components/listbox/parts/option-group.d.ts.map +1 -0
  118. package/lib/internal/template/{select → internal/components/listbox}/parts/option-group.js +1 -1
  119. package/lib/internal/template/internal/components/listbox/parts/option-group.js.map +1 -0
  120. package/lib/internal/template/{select/utils → internal/components/listbox/parts}/render-options.d.ts +5 -5
  121. package/lib/internal/template/internal/components/listbox/parts/render-options.d.ts.map +1 -0
  122. package/lib/internal/template/{select/utils → internal/components/listbox/parts}/render-options.js +4 -4
  123. package/lib/internal/template/internal/components/listbox/parts/render-options.js.map +1 -0
  124. package/lib/internal/template/internal/components/listbox/parts/scroll-to-index.d.ts.map +1 -0
  125. package/lib/internal/template/internal/components/listbox/parts/scroll-to-index.js.map +1 -0
  126. package/lib/internal/template/{select/utils → internal/components/listbox}/use-announcement.d.ts +2 -2
  127. package/lib/internal/template/internal/components/listbox/use-announcement.d.ts.map +1 -0
  128. package/lib/internal/template/{select/utils → internal/components/listbox}/use-announcement.js +1 -1
  129. package/lib/internal/template/internal/components/listbox/use-announcement.js.map +1 -0
  130. package/lib/internal/template/internal/components/listbox/utils/check-option-value-field.d.ts.map +1 -0
  131. package/lib/internal/template/{select → internal/components/listbox}/utils/check-option-value-field.js +1 -1
  132. package/lib/internal/template/internal/components/listbox/utils/check-option-value-field.js.map +1 -0
  133. package/lib/internal/template/{select → internal/components/listbox}/utils/connect-options.d.ts +2 -2
  134. package/lib/internal/template/internal/components/listbox/utils/connect-options.d.ts.map +1 -0
  135. package/lib/internal/template/internal/components/listbox/utils/connect-options.js.map +1 -0
  136. package/lib/internal/template/internal/components/option/index.d.ts +1 -1
  137. package/lib/internal/template/internal/components/option/index.d.ts.map +1 -1
  138. package/lib/internal/template/internal/components/option/index.js +4 -4
  139. package/lib/internal/template/internal/components/option/index.js.map +1 -1
  140. package/lib/internal/template/internal/components/option/interfaces.d.ts +2 -0
  141. package/lib/internal/template/internal/components/option/interfaces.d.ts.map +1 -1
  142. package/lib/internal/template/internal/components/option/interfaces.js.map +1 -1
  143. package/lib/internal/template/internal/components/option/option-parts.d.ts +2 -1
  144. package/lib/internal/template/internal/components/option/option-parts.d.ts.map +1 -1
  145. package/lib/internal/template/internal/components/option/option-parts.js +1 -1
  146. package/lib/internal/template/internal/components/option/option-parts.js.map +1 -1
  147. package/lib/internal/template/internal/components/option/styles.css.js +18 -17
  148. package/lib/internal/template/internal/components/option/styles.scoped.css +52 -29
  149. package/lib/internal/template/internal/components/option/styles.selectors.js +18 -17
  150. package/lib/internal/template/internal/components/radio-button/styles.css.js +7 -7
  151. package/lib/internal/template/internal/components/radio-button/styles.scoped.css +27 -29
  152. package/lib/internal/template/internal/components/radio-button/styles.selectors.js +7 -7
  153. package/lib/internal/template/internal/context/control-group-context.d.ts +7 -0
  154. package/lib/internal/template/internal/context/control-group-context.d.ts.map +1 -1
  155. package/lib/internal/template/internal/context/control-group-context.js +4 -1
  156. package/lib/internal/template/internal/context/control-group-context.js.map +1 -1
  157. package/lib/internal/template/internal/environment.js +2 -2
  158. package/lib/internal/template/internal/environment.json +2 -2
  159. package/lib/internal/template/internal/generated/styles/tokens.d.ts +1 -0
  160. package/lib/internal/template/internal/generated/styles/tokens.js +1 -0
  161. package/lib/internal/template/internal/generated/theming/index.cjs +31 -0
  162. package/lib/internal/template/internal/generated/theming/index.js +31 -0
  163. package/lib/internal/template/link/styles.css.js +21 -21
  164. package/lib/internal/template/link/styles.scoped.css +133 -145
  165. package/lib/internal/template/link/styles.selectors.js +21 -21
  166. package/lib/internal/template/multiselect/use-multiselect.d.ts.map +1 -1
  167. package/lib/internal/template/multiselect/use-multiselect.js +3 -3
  168. package/lib/internal/template/multiselect/use-multiselect.js.map +1 -1
  169. package/lib/internal/template/prompt-input/components/menu-dropdown.js +1 -1
  170. package/lib/internal/template/prompt-input/components/menu-dropdown.js.map +1 -1
  171. package/lib/internal/template/radio-button/styles.css.js +1 -1
  172. package/lib/internal/template/radio-button/styles.scoped.css +5 -13
  173. package/lib/internal/template/radio-button/styles.selectors.js +1 -1
  174. package/lib/internal/template/segmented-control/internal-segmented-control.js +2 -2
  175. package/lib/internal/template/segmented-control/internal-segmented-control.js.map +1 -1
  176. package/lib/internal/template/segmented-control/internal.js +1 -1
  177. package/lib/internal/template/segmented-control/internal.js.map +1 -1
  178. package/lib/internal/template/segmented-control/styles.css.js +31 -27
  179. package/lib/internal/template/segmented-control/styles.scoped.css +136 -49
  180. package/lib/internal/template/segmented-control/styles.selectors.js +31 -27
  181. package/lib/internal/template/select/internal.d.ts.map +1 -1
  182. package/lib/internal/template/select/internal.js +2 -2
  183. package/lib/internal/template/select/internal.js.map +1 -1
  184. package/lib/internal/template/select/parts/filter.d.ts +1 -1
  185. package/lib/internal/template/select/parts/filter.d.ts.map +1 -1
  186. package/lib/internal/template/select/parts/plain-list.d.ts.map +1 -1
  187. package/lib/internal/template/select/parts/plain-list.js +3 -3
  188. package/lib/internal/template/select/parts/plain-list.js.map +1 -1
  189. package/lib/internal/template/select/parts/virtual-list.js +3 -3
  190. package/lib/internal/template/select/parts/virtual-list.js.map +1 -1
  191. package/lib/internal/template/select/utils/use-select.d.ts.map +1 -1
  192. package/lib/internal/template/select/utils/use-select.js +1 -1
  193. package/lib/internal/template/select/utils/use-select.js.map +1 -1
  194. package/lib/internal/template/side-navigation/interfaces.d.ts +6 -0
  195. package/lib/internal/template/side-navigation/interfaces.d.ts.map +1 -1
  196. package/lib/internal/template/side-navigation/interfaces.js.map +1 -1
  197. package/lib/internal/template/side-navigation/parts.js +14 -4
  198. package/lib/internal/template/side-navigation/parts.js.map +1 -1
  199. package/lib/internal/template/side-navigation/styles.css.js +65 -64
  200. package/lib/internal/template/side-navigation/styles.scoped.css +119 -111
  201. package/lib/internal/template/side-navigation/styles.selectors.js +65 -64
  202. package/lib/internal/template/styling/alert.scss +68 -0
  203. package/lib/internal/template/styling/badge.scss +55 -0
  204. package/lib/internal/template/styling/button.scss +59 -0
  205. package/lib/internal/template/styling/checkbox.scss +23 -0
  206. package/lib/internal/template/styling/dropdown.scss +31 -0
  207. package/lib/internal/template/styling/input.scss +106 -0
  208. package/lib/internal/template/styling/link.scss +29 -0
  209. package/lib/internal/template/styling/radio-button.scss +23 -0
  210. package/lib/internal/template/styling/toggle.scss +21 -0
  211. package/lib/internal/template/toggle/internal.d.ts +0 -2
  212. package/lib/internal/template/toggle/internal.d.ts.map +1 -1
  213. package/lib/internal/template/toggle/internal.js +1 -1
  214. package/lib/internal/template/toggle/internal.js.map +1 -1
  215. package/lib/internal/template/toggle/styles.css.js +10 -10
  216. package/lib/internal/template/toggle/styles.scoped.css +38 -50
  217. package/lib/internal/template/toggle/styles.selectors.js +10 -10
  218. package/lib/internal/template/token/interfaces.d.ts +9 -6
  219. package/lib/internal/template/token/interfaces.d.ts.map +1 -1
  220. package/lib/internal/template/token/interfaces.js.map +1 -1
  221. package/lib/internal/template/token/internal.d.ts.map +1 -1
  222. package/lib/internal/template/token/internal.js +22 -17
  223. package/lib/internal/template/token/internal.js.map +1 -1
  224. package/lib/internal/template/token/styles.css.js +14 -14
  225. package/lib/internal/template/token/styles.scoped.css +28 -27
  226. package/lib/internal/template/token/styles.selectors.js +14 -14
  227. package/package.json +1 -1
  228. package/lib/internal/template/select/parts/common.d.ts.map +0 -1
  229. package/lib/internal/template/select/parts/common.js.map +0 -1
  230. package/lib/internal/template/select/parts/option-group.d.ts.map +0 -1
  231. package/lib/internal/template/select/parts/option-group.js.map +0 -1
  232. package/lib/internal/template/select/utils/check-option-value-field.d.ts.map +0 -1
  233. package/lib/internal/template/select/utils/check-option-value-field.js.map +0 -1
  234. package/lib/internal/template/select/utils/connect-options.d.ts.map +0 -1
  235. package/lib/internal/template/select/utils/connect-options.js.map +0 -1
  236. package/lib/internal/template/select/utils/get-item-props.d.ts.map +0 -1
  237. package/lib/internal/template/select/utils/get-item-props.js.map +0 -1
  238. package/lib/internal/template/select/utils/render-options.d.ts.map +0 -1
  239. package/lib/internal/template/select/utils/render-options.js.map +0 -1
  240. package/lib/internal/template/select/utils/scroll-to-index.d.ts.map +0 -1
  241. package/lib/internal/template/select/utils/scroll-to-index.js.map +0 -1
  242. package/lib/internal/template/select/utils/use-announcement.d.ts.map +0 -1
  243. package/lib/internal/template/select/utils/use-announcement.js.map +0 -1
  244. /package/lib/internal/template/{select → internal/components/listbox}/parts/common.d.ts +0 -0
  245. /package/lib/internal/template/{select → internal/components/listbox}/parts/common.js +0 -0
  246. /package/lib/internal/template/{select → internal/components/listbox}/parts/option-group.d.ts +0 -0
  247. /package/lib/internal/template/{select/utils → internal/components/listbox/parts}/scroll-to-index.d.ts +0 -0
  248. /package/lib/internal/template/{select/utils → internal/components/listbox/parts}/scroll-to-index.js +0 -0
  249. /package/lib/internal/template/{select → internal/components/listbox}/utils/check-option-value-field.d.ts +0 -0
  250. /package/lib/internal/template/{select → internal/components/listbox}/utils/connect-options.js +0 -0
@@ -14,7 +14,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
14
14
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
15
15
  SPDX-License-Identifier: Apache-2.0
16
16
  */
17
- .awsui_segment_8cbea_1ai8f_17:not(#\9) {
17
+ .awsui_segment_8cbea_pp9r7_17:not(#\9) {
18
18
  font-size: var(--font-size-body-m-tq5a14, 14px);
19
19
  line-height: var(--line-height-body-m-5xw6xo, 22px);
20
20
  word-wrap: break-word;
@@ -41,27 +41,27 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
41
41
  border-block: none;
42
42
  --awsui-style-focus-ring-box-shadow-ka4djm: 0 0 0 var(--awsui-style-focus-ring-border-width-ka4djm, 2px) var(--awsui-style-focus-ring-border-color-ka4djm, var(--color-border-item-focused-sewkzn, #0073bb));
43
43
  }
44
- .awsui_segment_8cbea_1ai8f_17.awsui_full-width_8cbea_1ai8f_44:not(#\9) {
44
+ .awsui_segment_8cbea_pp9r7_17.awsui_full-width_8cbea_pp9r7_44:not(#\9) {
45
45
  justify-content: center;
46
46
  }
47
- .awsui_segment_8cbea_1ai8f_17:not(#\9):not(.awsui_refresh_8cbea_1ai8f_47) {
47
+ .awsui_segment_8cbea_pp9r7_17:not(#\9):not(.awsui_refresh_8cbea_pp9r7_47) {
48
48
  block-size: calc(100% - var(--space-static-xxs-vzto3j, 4px) - 2 * var(--border-width-field-2365x3, 1px));
49
49
  }
50
- .awsui_segment_8cbea_1ai8f_17:not(#\9):focus {
50
+ .awsui_segment_8cbea_pp9r7_17:not(#\9):focus {
51
51
  outline: none;
52
52
  }
53
- .awsui_segment_8cbea_1ai8f_17.awsui_disabled_8cbea_1ai8f_53:not(#\9) {
53
+ .awsui_segment_8cbea_pp9r7_17.awsui_disabled_8cbea_pp9r7_53:not(#\9) {
54
54
  background: var(--awsui-style-background-disabled-ka4djm, var(--color-background-segment-disabled-mjubn7, #ffffff));
55
55
  color: var(--awsui-style-color-disabled-ka4djm, var(--color-text-interactive-disabled-tuxgxq, #aab7b8));
56
56
  }
57
- body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1ai8f_17:not(#\9):focus {
57
+ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_pp9r7_17:not(#\9):focus {
58
58
  position: relative;
59
59
  }
60
- body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1ai8f_17:not(#\9):focus {
60
+ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_pp9r7_17:not(#\9):focus {
61
61
  outline: 2px dotted transparent;
62
62
  outline-offset: calc(var(--space-segmented-control-focus-outline-gutter-sz9jgo, 3px) - 1px);
63
63
  }
64
- body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1ai8f_17:not(#\9):focus::before {
64
+ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_pp9r7_17:not(#\9):focus::before {
65
65
  content: " ";
66
66
  display: block;
67
67
  position: absolute;
@@ -76,7 +76,7 @@ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1ai8f_17:not(#\9):focus
76
76
  box-shadow: var(--awsui-style-focus-ring-box-shadow-ka4djm);
77
77
  z-index: 1;
78
78
  }
79
- .awsui_segment_8cbea_1ai8f_17:not(#\9):not(:last-child)::after {
79
+ .awsui_segment_8cbea_pp9r7_17:not(#\9):not(:last-child)::after {
80
80
  content: "";
81
81
  position: absolute;
82
82
  inset-inline-end: calc(-1 * (var(--space-static-xxs-vzto3j, 4px) + 1px));
@@ -86,54 +86,55 @@ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1ai8f_17:not(#\9):focus
86
86
  background: var(--color-border-segment-divider-mq01bu, #687078);
87
87
  z-index: 1;
88
88
  }
89
- .awsui_segment_8cbea_1ai8f_17:not(#\9):not(.awsui_refresh_8cbea_1ai8f_47):not(:last-child)::after {
89
+ .awsui_segment_8cbea_pp9r7_17:not(#\9):not(.awsui_refresh_8cbea_pp9r7_47):not(:last-child)::after {
90
90
  inset-inline-end: calc(-1 * var(--space-static-xxs-vzto3j, 4px));
91
91
  }
92
- .awsui_segment_8cbea_1ai8f_17:not(#\9):nth-child(1) {
92
+ .awsui_segment_8cbea_pp9r7_17:not(#\9):nth-child(1) {
93
93
  grid-column: 1;
94
94
  }
95
- .awsui_segment_8cbea_1ai8f_17:not(#\9):nth-child(2) {
95
+ .awsui_segment_8cbea_pp9r7_17:not(#\9):nth-child(2) {
96
96
  grid-column: 2;
97
97
  }
98
- .awsui_segment_8cbea_1ai8f_17:not(#\9):nth-child(3) {
98
+ .awsui_segment_8cbea_pp9r7_17:not(#\9):nth-child(3) {
99
99
  grid-column: 3;
100
100
  }
101
- .awsui_segment_8cbea_1ai8f_17:not(#\9):nth-child(4) {
101
+ .awsui_segment_8cbea_pp9r7_17:not(#\9):nth-child(4) {
102
102
  grid-column: 4;
103
103
  }
104
- .awsui_segment_8cbea_1ai8f_17:not(#\9):nth-child(5) {
104
+ .awsui_segment_8cbea_pp9r7_17:not(#\9):nth-child(5) {
105
105
  grid-column: 5;
106
106
  }
107
- .awsui_segment_8cbea_1ai8f_17:not(#\9):nth-child(6) {
107
+ .awsui_segment_8cbea_pp9r7_17:not(#\9):nth-child(6) {
108
108
  grid-column: 6;
109
109
  }
110
- .awsui_segment_8cbea_1ai8f_17.awsui_selected_8cbea_1ai8f_110:not(#\9) {
110
+ .awsui_segment_8cbea_pp9r7_17.awsui_selected_8cbea_pp9r7_110:not(#\9) {
111
111
  background: var(--awsui-style-background-active-ka4djm, var(--color-background-segment-active-ns5rt6, #0073bb));
112
112
  color: var(--awsui-style-color-active-ka4djm, var(--color-text-segment-active-hbbf1h, #ffffff));
113
- box-shadow: inset 0 0 0 var(--awsui-internal-style-segment-selected-border-width, 0) var(--color-border-segment-active-y8x5lr, #16191f);
113
+ box-shadow: inset 0 0 0 var(--awsui-internal-style-segment-border-width, 0) var(--color-border-segment-active-y8x5lr, #16191f);
114
114
  }
115
- .awsui_segment_8cbea_1ai8f_17:not(#\9):hover:not(.awsui_selected_8cbea_1ai8f_110):not(.awsui_disabled_8cbea_1ai8f_53):not(:focus) {
115
+ .awsui_segment_8cbea_pp9r7_17:not(#\9):hover:not(.awsui_selected_8cbea_pp9r7_110):not(.awsui_disabled_8cbea_pp9r7_53):not(:focus) {
116
116
  background: var(--awsui-style-background-hover-ka4djm, var(--color-background-segment-hover-el4hte, #fafafa));
117
117
  color: var(--awsui-style-color-hover-ka4djm, var(--color-text-segment-hover-qq2b2e, #16191f));
118
+ box-shadow: inset 0 0 0 var(--awsui-internal-style-segment-border-width, 0) var(--color-border-segment-hover-3wvhit, #16191f);
118
119
  cursor: pointer;
119
120
  }
120
121
 
121
- .awsui_icon_8cbea_1ai8f_121:not(#\9) {
122
+ .awsui_icon_8cbea_pp9r7_122:not(#\9) {
122
123
  /* used in test-utils */
123
124
  }
124
125
 
125
- .awsui_with-text_8cbea_1ai8f_125:not(#\9) {
126
+ .awsui_with-text_8cbea_pp9r7_126:not(#\9) {
126
127
  position: relative;
127
128
  inset-inline-start: calc(-1 * var(--space-xxs-3o1yoq, 4px));
128
129
  margin-inline-end: var(--space-xxs-3o1yoq, 4px);
129
130
  }
130
131
 
131
- .awsui_with-no-text_8cbea_1ai8f_131:not(#\9) {
132
+ .awsui_with-no-text_8cbea_pp9r7_132:not(#\9) {
132
133
  margin-inline: auto;
133
134
  inset-inline: 0;
134
135
  }
135
136
 
136
- .awsui_root_8cbea_1ai8f_136:not(#\9) {
137
+ .awsui_root_8cbea_pp9r7_137:not(#\9) {
137
138
  border-collapse: separate;
138
139
  border-spacing: 0;
139
140
  box-sizing: border-box;
@@ -165,7 +166,7 @@ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1ai8f_17:not(#\9):focus
165
166
  -moz-osx-font-smoothing: auto;
166
167
  }
167
168
 
168
- .awsui_segment-part_8cbea_1ai8f_168:not(#\9) {
169
+ .awsui_segment-part_8cbea_pp9r7_169:not(#\9) {
169
170
  display: inline-grid;
170
171
  border-inline: solid var(--border-width-field-2365x3, 1px) var(--color-border-segment-wrapper-ofstpm, #687078);
171
172
  border-block: solid var(--border-width-field-2365x3, 1px) var(--color-border-segment-wrapper-ofstpm, #687078);
@@ -180,107 +181,193 @@ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1ai8f_17:not(#\9):focus
180
181
  padding-inline: calc(var(--space-static-xxs-vzto3j, 4px) - var(--border-width-field-2365x3, 1px));
181
182
  gap: calc(var(--space-static-xxs-vzto3j, 4px) * 2 + 1px);
182
183
  }
183
- .awsui_segment-part_8cbea_1ai8f_168:not(#\9):not(.awsui_refresh_8cbea_1ai8f_47) {
184
+ .awsui_segment-part_8cbea_pp9r7_169:not(#\9):not(.awsui_refresh_8cbea_pp9r7_47) {
184
185
  padding-inline: calc(var(--space-static-xxxs-opeihl, 2px) + var(--border-width-field-2365x3, 1px));
185
186
  padding-block: 0;
186
187
  gap: calc(var(--space-static-xxs-vzto3j, 4px) * 2 - 1px);
187
188
  }
188
189
  @media (max-width: 688px) {
189
- .awsui_segment-part_8cbea_1ai8f_168:not(#\9):not(.awsui_grouped_8cbea_1ai8f_189), .awsui_segment-part_8cbea_1ai8f_168.awsui_grouped-only_8cbea_1ai8f_189:not(#\9) {
190
+ .awsui_segment-part_8cbea_pp9r7_169:not(#\9):not(.awsui_grouped_8cbea_pp9r7_190), .awsui_segment-part_8cbea_pp9r7_169.awsui_grouped-only_8cbea_pp9r7_190:not(#\9) {
190
191
  display: none;
191
192
  }
192
193
  }
193
- .awsui_segment-part_8cbea_1ai8f_168.awsui_grouped_8cbea_1ai8f_189.awsui_grouped-vertical_8cbea_1ai8f_193:not(#\9) {
194
+ .awsui_segment-part_8cbea_pp9r7_169.awsui_grouped_8cbea_pp9r7_190.awsui_grouped-vertical_8cbea_pp9r7_194:not(#\9) {
194
195
  inline-size: 100%;
195
196
  box-sizing: border-box;
196
197
  }
197
198
 
198
- .awsui_grouped_8cbea_1ai8f_189:not(#\9) {
199
+ .awsui_grouped_8cbea_pp9r7_190:not(#\9) {
199
200
  border-start-start-radius: var(--border-radius-input-k1q34z, 2px);
200
201
  border-start-end-radius: var(--border-radius-input-k1q34z, 2px);
201
202
  border-end-start-radius: var(--border-radius-input-k1q34z, 2px);
202
203
  border-end-end-radius: var(--border-radius-input-k1q34z, 2px);
204
+ border-color: var(--color-border-control-group-default-of49c9, #879596);
203
205
  }
204
- .awsui_grouped-horizontal-first_8cbea_1ai8f_204:not(#\9) {
206
+ .awsui_grouped-horizontal-first_8cbea_pp9r7_206:not(#\9) {
205
207
  border-start-end-radius: 0;
206
208
  border-end-end-radius: 0;
207
209
  }
208
- .awsui_grouped-horizontal-middle_8cbea_1ai8f_208:not(#\9) {
210
+ .awsui_grouped-horizontal-middle_8cbea_pp9r7_210:not(#\9) {
209
211
  border-start-start-radius: 0;
210
212
  border-start-end-radius: 0;
211
213
  border-end-start-radius: 0;
212
214
  border-end-end-radius: 0;
213
215
  }
214
- .awsui_grouped-horizontal-last_8cbea_1ai8f_214:not(#\9) {
216
+ .awsui_grouped-horizontal-last_8cbea_pp9r7_216:not(#\9) {
215
217
  border-start-start-radius: 0;
216
218
  border-end-start-radius: 0;
217
219
  }
218
- .awsui_grouped-vertical-first_8cbea_1ai8f_218:not(#\9) {
220
+ .awsui_grouped-vertical-first_8cbea_pp9r7_220:not(#\9) {
219
221
  border-end-start-radius: 0;
220
222
  border-end-end-radius: 0;
221
223
  }
222
- .awsui_grouped-vertical-middle_8cbea_1ai8f_222:not(#\9) {
224
+ .awsui_grouped-vertical-middle_8cbea_pp9r7_224:not(#\9) {
223
225
  border-start-start-radius: 0;
224
226
  border-start-end-radius: 0;
225
227
  border-end-start-radius: 0;
226
228
  border-end-end-radius: 0;
227
229
  }
228
- .awsui_grouped-vertical-last_8cbea_1ai8f_228:not(#\9) {
230
+ .awsui_grouped-vertical-last_8cbea_pp9r7_230:not(#\9) {
229
231
  border-start-start-radius: 0;
230
232
  border-start-end-radius: 0;
231
233
  }
232
- .awsui_grouped-with-action_8cbea_1ai8f_232:not(#\9) {
234
+ .awsui_grouped-with-action_8cbea_pp9r7_234:not(#\9) {
233
235
  border-start-end-radius: 0;
234
236
  border-end-end-radius: 0;
235
237
  }
236
- .awsui_grouped_8cbea_1ai8f_189.awsui_grouped-horizontal-middle_8cbea_1ai8f_208:not(#\9), .awsui_grouped_8cbea_1ai8f_189.awsui_grouped-horizontal-last_8cbea_1ai8f_214:not(#\9) {
238
+ .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-horizontal-first_8cbea_pp9r7_206:not(#\9), .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-horizontal-first_8cbea_pp9r7_206:not(#\9):hover, .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-horizontal-first_8cbea_pp9r7_206:not(#\9):focus {
239
+ border-inline-start-color: var(--color-text-status-error-ri38gt, #d13212);
240
+ border-block-start-color: var(--color-text-status-error-ri38gt, #d13212);
241
+ border-block-end-color: var(--color-text-status-error-ri38gt, #d13212);
242
+ }
243
+ .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-horizontal-middle_8cbea_pp9r7_210:not(#\9), .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-horizontal-middle_8cbea_pp9r7_210:not(#\9):hover, .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-horizontal-middle_8cbea_pp9r7_210:not(#\9):focus {
244
+ border-block-start-color: var(--color-text-status-error-ri38gt, #d13212);
245
+ border-block-end-color: var(--color-text-status-error-ri38gt, #d13212);
246
+ }
247
+ .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-horizontal-last_8cbea_pp9r7_216:not(#\9), .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-horizontal-last_8cbea_pp9r7_216:not(#\9):hover, .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-horizontal-last_8cbea_pp9r7_216:not(#\9):focus {
248
+ border-inline-end-color: var(--color-text-status-error-ri38gt, #d13212);
249
+ border-block-start-color: var(--color-text-status-error-ri38gt, #d13212);
250
+ border-block-end-color: var(--color-text-status-error-ri38gt, #d13212);
251
+ }
252
+ .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-vertical-first_8cbea_pp9r7_220:not(#\9), .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-vertical-first_8cbea_pp9r7_220:not(#\9):hover, .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-vertical-first_8cbea_pp9r7_220:not(#\9):focus {
253
+ border-block-start-color: var(--color-text-status-error-ri38gt, #d13212);
254
+ border-inline-start-color: var(--color-text-status-error-ri38gt, #d13212);
255
+ border-inline-end-color: var(--color-text-status-error-ri38gt, #d13212);
256
+ }
257
+ .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-vertical-middle_8cbea_pp9r7_224:not(#\9), .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-vertical-middle_8cbea_pp9r7_224:not(#\9):hover, .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-vertical-middle_8cbea_pp9r7_224:not(#\9):focus {
258
+ border-inline-start-color: var(--color-text-status-error-ri38gt, #d13212);
259
+ border-inline-end-color: var(--color-text-status-error-ri38gt, #d13212);
260
+ }
261
+ .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-vertical-last_8cbea_pp9r7_230:not(#\9), .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-vertical-last_8cbea_pp9r7_230:not(#\9):hover, .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-vertical-last_8cbea_pp9r7_230:not(#\9):focus {
262
+ border-block-end-color: var(--color-text-status-error-ri38gt, #d13212);
263
+ border-inline-start-color: var(--color-text-status-error-ri38gt, #d13212);
264
+ border-inline-end-color: var(--color-text-status-error-ri38gt, #d13212);
265
+ }
266
+ .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-horizontal-only_8cbea_pp9r7_266:not(#\9), .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-horizontal-only_8cbea_pp9r7_266:not(#\9):hover, .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-horizontal-only_8cbea_pp9r7_266:not(#\9):focus, .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-vertical-only_8cbea_pp9r7_266:not(#\9), .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-vertical-only_8cbea_pp9r7_266:not(#\9):hover, .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-vertical-only_8cbea_pp9r7_266:not(#\9):focus {
267
+ border-inline-start-color: var(--color-text-status-error-ri38gt, #d13212);
268
+ border-inline-end-color: var(--color-text-status-error-ri38gt, #d13212);
269
+ border-block-start-color: var(--color-text-status-error-ri38gt, #d13212);
270
+ border-block-end-color: var(--color-text-status-error-ri38gt, #d13212);
271
+ }
272
+ .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-horizontal-first_8cbea_pp9r7_206:not(#\9), .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-horizontal-first_8cbea_pp9r7_206:not(#\9):hover, .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-horizontal-first_8cbea_pp9r7_206:not(#\9):focus {
273
+ border-inline-start-color: var(--color-text-status-warning-fabq6h, #906806);
274
+ border-block-start-color: var(--color-text-status-warning-fabq6h, #906806);
275
+ border-block-end-color: var(--color-text-status-warning-fabq6h, #906806);
276
+ }
277
+ .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-horizontal-middle_8cbea_pp9r7_210:not(#\9), .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-horizontal-middle_8cbea_pp9r7_210:not(#\9):hover, .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-horizontal-middle_8cbea_pp9r7_210:not(#\9):focus {
278
+ border-block-start-color: var(--color-text-status-warning-fabq6h, #906806);
279
+ border-block-end-color: var(--color-text-status-warning-fabq6h, #906806);
280
+ }
281
+ .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-horizontal-last_8cbea_pp9r7_216:not(#\9), .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-horizontal-last_8cbea_pp9r7_216:not(#\9):hover, .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-horizontal-last_8cbea_pp9r7_216:not(#\9):focus {
282
+ border-inline-end-color: var(--color-text-status-warning-fabq6h, #906806);
283
+ border-block-start-color: var(--color-text-status-warning-fabq6h, #906806);
284
+ border-block-end-color: var(--color-text-status-warning-fabq6h, #906806);
285
+ }
286
+ .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-vertical-first_8cbea_pp9r7_220:not(#\9), .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-vertical-first_8cbea_pp9r7_220:not(#\9):hover, .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-vertical-first_8cbea_pp9r7_220:not(#\9):focus {
287
+ border-block-start-color: var(--color-text-status-warning-fabq6h, #906806);
288
+ border-inline-start-color: var(--color-text-status-warning-fabq6h, #906806);
289
+ border-inline-end-color: var(--color-text-status-warning-fabq6h, #906806);
290
+ }
291
+ .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-vertical-middle_8cbea_pp9r7_224:not(#\9), .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-vertical-middle_8cbea_pp9r7_224:not(#\9):hover, .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-vertical-middle_8cbea_pp9r7_224:not(#\9):focus {
292
+ border-inline-start-color: var(--color-text-status-warning-fabq6h, #906806);
293
+ border-inline-end-color: var(--color-text-status-warning-fabq6h, #906806);
294
+ }
295
+ .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-vertical-last_8cbea_pp9r7_230:not(#\9), .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-vertical-last_8cbea_pp9r7_230:not(#\9):hover, .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-vertical-last_8cbea_pp9r7_230:not(#\9):focus {
296
+ border-block-end-color: var(--color-text-status-warning-fabq6h, #906806);
297
+ border-inline-start-color: var(--color-text-status-warning-fabq6h, #906806);
298
+ border-inline-end-color: var(--color-text-status-warning-fabq6h, #906806);
299
+ }
300
+ .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-horizontal-only_8cbea_pp9r7_266:not(#\9), .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-horizontal-only_8cbea_pp9r7_266:not(#\9):hover, .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-horizontal-only_8cbea_pp9r7_266:not(#\9):focus, .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-vertical-only_8cbea_pp9r7_266:not(#\9), .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-vertical-only_8cbea_pp9r7_266:not(#\9):hover, .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-vertical-only_8cbea_pp9r7_266:not(#\9):focus {
301
+ border-inline-start-color: var(--color-text-status-warning-fabq6h, #906806);
302
+ border-inline-end-color: var(--color-text-status-warning-fabq6h, #906806);
303
+ border-block-start-color: var(--color-text-status-warning-fabq6h, #906806);
304
+ border-block-end-color: var(--color-text-status-warning-fabq6h, #906806);
305
+ }
306
+ .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-horizontal-first_8cbea_pp9r7_206:not(#\9), .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-horizontal-only_8cbea_pp9r7_266:not(#\9), .awsui_grouped-with-error_8cbea_pp9r7_238.awsui_grouped-vertical_8cbea_pp9r7_194:not(#\9), .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-horizontal-first_8cbea_pp9r7_206:not(#\9), .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-horizontal-only_8cbea_pp9r7_266:not(#\9), .awsui_grouped-with-warning_8cbea_pp9r7_272.awsui_grouped-vertical_8cbea_pp9r7_194:not(#\9) {
307
+ padding-inline-start: calc(var(--border-invalid-width-b183os, 4px) + calc(var(--space-field-horizontal-anki5k, 8px) - (var(--border-invalid-width-b183os, 4px) - var(--border-width-field-2365x3, 1px))));
308
+ }
309
+ body[data-awsui-focus-visible=true] .awsui_grouped-with-error_8cbea_pp9r7_238:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_grouped-with-warning_8cbea_pp9r7_272:not(#\9):focus {
310
+ outline: 2px dotted transparent;
311
+ box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-bl5nmx, 1px) var(--color-border-item-focused-sewkzn, #0073bb);
312
+ }
313
+ .awsui_grouped-with-error_8cbea_pp9r7_238:not(#\9):focus-within, .awsui_grouped-with-warning_8cbea_pp9r7_272:not(#\9):focus-within {
314
+ outline: 2px dotted transparent;
315
+ box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-bl5nmx, 1px) var(--color-border-item-focused-sewkzn, #0073bb);
316
+ }
317
+ .awsui_grouped_8cbea_pp9r7_190.awsui_grouped-horizontal-middle_8cbea_pp9r7_210:not(#\9), .awsui_grouped_8cbea_pp9r7_190.awsui_grouped-horizontal-last_8cbea_pp9r7_216:not(#\9) {
237
318
  border-inline-start: none;
238
319
  }
320
+ .awsui_grouped-with-error_8cbea_pp9r7_238:not(#\9):focus-within, .awsui_grouped-with-warning_8cbea_pp9r7_272:not(#\9):focus-within {
321
+ box-shadow: none;
322
+ }
323
+ body[data-awsui-focus-visible=true] .awsui_grouped-with-error_8cbea_pp9r7_238:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_grouped-with-warning_8cbea_pp9r7_272:not(#\9):focus {
324
+ box-shadow: none;
325
+ }
239
326
 
240
- .awsui_select_8cbea_1ai8f_110:not(#\9) {
327
+ .awsui_select_8cbea_pp9r7_110:not(#\9) {
241
328
  display: none;
242
329
  }
243
330
  @media (max-width: 688px) {
244
- .awsui_select_8cbea_1ai8f_110:not(#\9):not(.awsui_grouped_8cbea_1ai8f_189), .awsui_select_8cbea_1ai8f_110.awsui_grouped-only_8cbea_1ai8f_189:not(#\9) {
331
+ .awsui_select_8cbea_pp9r7_110:not(#\9):not(.awsui_grouped_8cbea_pp9r7_190), .awsui_select_8cbea_pp9r7_110.awsui_grouped-only_8cbea_pp9r7_190:not(#\9) {
245
332
  display: block;
246
333
  }
247
334
  }
248
335
 
249
- .awsui_segment-count-2_8cbea_1ai8f_249:not(#\9) {
336
+ .awsui_segment-count-2_8cbea_pp9r7_336:not(#\9) {
250
337
  grid-template-columns: repeat(2, auto);
251
338
  }
252
- .awsui_segment-count-2_8cbea_1ai8f_249.awsui_grouped_8cbea_1ai8f_189.awsui_grouped-vertical_8cbea_1ai8f_193:not(#\9) {
339
+ .awsui_segment-count-2_8cbea_pp9r7_336.awsui_grouped_8cbea_pp9r7_190.awsui_grouped-vertical_8cbea_pp9r7_194:not(#\9) {
253
340
  grid-template-columns: repeat(2, 1fr);
254
341
  }
255
342
 
256
- .awsui_segment-count-3_8cbea_1ai8f_256:not(#\9) {
343
+ .awsui_segment-count-3_8cbea_pp9r7_343:not(#\9) {
257
344
  grid-template-columns: repeat(3, auto);
258
345
  }
259
- .awsui_segment-count-3_8cbea_1ai8f_256.awsui_grouped_8cbea_1ai8f_189.awsui_grouped-vertical_8cbea_1ai8f_193:not(#\9) {
346
+ .awsui_segment-count-3_8cbea_pp9r7_343.awsui_grouped_8cbea_pp9r7_190.awsui_grouped-vertical_8cbea_pp9r7_194:not(#\9) {
260
347
  grid-template-columns: repeat(3, 1fr);
261
348
  }
262
349
 
263
- .awsui_segment-count-4_8cbea_1ai8f_263:not(#\9) {
350
+ .awsui_segment-count-4_8cbea_pp9r7_350:not(#\9) {
264
351
  grid-template-columns: repeat(4, auto);
265
352
  }
266
- .awsui_segment-count-4_8cbea_1ai8f_263.awsui_grouped_8cbea_1ai8f_189.awsui_grouped-vertical_8cbea_1ai8f_193:not(#\9) {
353
+ .awsui_segment-count-4_8cbea_pp9r7_350.awsui_grouped_8cbea_pp9r7_190.awsui_grouped-vertical_8cbea_pp9r7_194:not(#\9) {
267
354
  grid-template-columns: repeat(4, 1fr);
268
355
  }
269
356
 
270
- .awsui_segment-count-5_8cbea_1ai8f_270:not(#\9) {
357
+ .awsui_segment-count-5_8cbea_pp9r7_357:not(#\9) {
271
358
  grid-template-columns: repeat(5, auto);
272
359
  }
273
- .awsui_segment-count-5_8cbea_1ai8f_270.awsui_grouped_8cbea_1ai8f_189.awsui_grouped-vertical_8cbea_1ai8f_193:not(#\9) {
360
+ .awsui_segment-count-5_8cbea_pp9r7_357.awsui_grouped_8cbea_pp9r7_190.awsui_grouped-vertical_8cbea_pp9r7_194:not(#\9) {
274
361
  grid-template-columns: repeat(5, 1fr);
275
362
  }
276
363
 
277
- .awsui_segment-count-6_8cbea_1ai8f_277:not(#\9) {
364
+ .awsui_segment-count-6_8cbea_pp9r7_364:not(#\9) {
278
365
  grid-template-columns: repeat(6, auto);
279
366
  }
280
- .awsui_segment-count-6_8cbea_1ai8f_277.awsui_grouped_8cbea_1ai8f_189.awsui_grouped-vertical_8cbea_1ai8f_193:not(#\9) {
367
+ .awsui_segment-count-6_8cbea_pp9r7_364.awsui_grouped_8cbea_pp9r7_190.awsui_grouped-vertical_8cbea_pp9r7_194:not(#\9) {
281
368
  grid-template-columns: repeat(6, 1fr);
282
369
  }
283
370
 
284
- .awsui_disabled-reason-tooltip_8cbea_1ai8f_284:not(#\9) {
371
+ .awsui_disabled-reason-tooltip_8cbea_pp9r7_371:not(#\9) {
285
372
  /* used in test-utils or tests */
286
373
  }
@@ -2,32 +2,36 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "segment": "awsui_segment_8cbea_1ai8f_17",
6
- "full-width": "awsui_full-width_8cbea_1ai8f_44",
7
- "refresh": "awsui_refresh_8cbea_1ai8f_47",
8
- "disabled": "awsui_disabled_8cbea_1ai8f_53",
9
- "selected": "awsui_selected_8cbea_1ai8f_110",
10
- "icon": "awsui_icon_8cbea_1ai8f_121",
11
- "with-text": "awsui_with-text_8cbea_1ai8f_125",
12
- "with-no-text": "awsui_with-no-text_8cbea_1ai8f_131",
13
- "root": "awsui_root_8cbea_1ai8f_136",
14
- "segment-part": "awsui_segment-part_8cbea_1ai8f_168",
15
- "grouped": "awsui_grouped_8cbea_1ai8f_189",
16
- "grouped-only": "awsui_grouped-only_8cbea_1ai8f_189",
17
- "grouped-vertical": "awsui_grouped-vertical_8cbea_1ai8f_193",
18
- "grouped-horizontal-first": "awsui_grouped-horizontal-first_8cbea_1ai8f_204",
19
- "grouped-horizontal-middle": "awsui_grouped-horizontal-middle_8cbea_1ai8f_208",
20
- "grouped-horizontal-last": "awsui_grouped-horizontal-last_8cbea_1ai8f_214",
21
- "grouped-vertical-first": "awsui_grouped-vertical-first_8cbea_1ai8f_218",
22
- "grouped-vertical-middle": "awsui_grouped-vertical-middle_8cbea_1ai8f_222",
23
- "grouped-vertical-last": "awsui_grouped-vertical-last_8cbea_1ai8f_228",
24
- "grouped-with-action": "awsui_grouped-with-action_8cbea_1ai8f_232",
25
- "select": "awsui_select_8cbea_1ai8f_110",
26
- "segment-count-2": "awsui_segment-count-2_8cbea_1ai8f_249",
27
- "segment-count-3": "awsui_segment-count-3_8cbea_1ai8f_256",
28
- "segment-count-4": "awsui_segment-count-4_8cbea_1ai8f_263",
29
- "segment-count-5": "awsui_segment-count-5_8cbea_1ai8f_270",
30
- "segment-count-6": "awsui_segment-count-6_8cbea_1ai8f_277",
31
- "disabled-reason-tooltip": "awsui_disabled-reason-tooltip_8cbea_1ai8f_284"
5
+ "segment": "awsui_segment_8cbea_pp9r7_17",
6
+ "full-width": "awsui_full-width_8cbea_pp9r7_44",
7
+ "refresh": "awsui_refresh_8cbea_pp9r7_47",
8
+ "disabled": "awsui_disabled_8cbea_pp9r7_53",
9
+ "selected": "awsui_selected_8cbea_pp9r7_110",
10
+ "icon": "awsui_icon_8cbea_pp9r7_122",
11
+ "with-text": "awsui_with-text_8cbea_pp9r7_126",
12
+ "with-no-text": "awsui_with-no-text_8cbea_pp9r7_132",
13
+ "root": "awsui_root_8cbea_pp9r7_137",
14
+ "segment-part": "awsui_segment-part_8cbea_pp9r7_169",
15
+ "grouped": "awsui_grouped_8cbea_pp9r7_190",
16
+ "grouped-only": "awsui_grouped-only_8cbea_pp9r7_190",
17
+ "grouped-vertical": "awsui_grouped-vertical_8cbea_pp9r7_194",
18
+ "grouped-horizontal-first": "awsui_grouped-horizontal-first_8cbea_pp9r7_206",
19
+ "grouped-horizontal-middle": "awsui_grouped-horizontal-middle_8cbea_pp9r7_210",
20
+ "grouped-horizontal-last": "awsui_grouped-horizontal-last_8cbea_pp9r7_216",
21
+ "grouped-vertical-first": "awsui_grouped-vertical-first_8cbea_pp9r7_220",
22
+ "grouped-vertical-middle": "awsui_grouped-vertical-middle_8cbea_pp9r7_224",
23
+ "grouped-vertical-last": "awsui_grouped-vertical-last_8cbea_pp9r7_230",
24
+ "grouped-with-action": "awsui_grouped-with-action_8cbea_pp9r7_234",
25
+ "grouped-with-error": "awsui_grouped-with-error_8cbea_pp9r7_238",
26
+ "grouped-horizontal-only": "awsui_grouped-horizontal-only_8cbea_pp9r7_266",
27
+ "grouped-vertical-only": "awsui_grouped-vertical-only_8cbea_pp9r7_266",
28
+ "grouped-with-warning": "awsui_grouped-with-warning_8cbea_pp9r7_272",
29
+ "select": "awsui_select_8cbea_pp9r7_110",
30
+ "segment-count-2": "awsui_segment-count-2_8cbea_pp9r7_336",
31
+ "segment-count-3": "awsui_segment-count-3_8cbea_pp9r7_343",
32
+ "segment-count-4": "awsui_segment-count-4_8cbea_pp9r7_350",
33
+ "segment-count-5": "awsui_segment-count-5_8cbea_pp9r7_357",
34
+ "segment-count-6": "awsui_segment-count-6_8cbea_pp9r7_364",
35
+ "disabled-reason-tooltip": "awsui_disabled-reason-tooltip_8cbea_pp9r7_371"
32
36
  };
33
37
 
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/select/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAgB3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAIjD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAc3C,MAAM,WAAW,mBAAoB,SAAQ,YAAY,CAAC,WAAW,EAAE,SAAS,CAAC,EAAE,0BAA0B;IAC3G,kBAAkB,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CACxC;AAED,QAAA,MAAM,cAAc,6FAqSnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/select/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAkB3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAIjD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAY3C,MAAM,WAAW,mBAAoB,SAAQ,YAAY,CAAC,WAAW,EAAE,SAAS,CAAC,EAAE,0BAA0B;IAC3G,kBAAkB,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CACxC;AAED,QAAA,MAAM,cAAc,6FAqSnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -9,6 +9,8 @@ import { getBaseProps } from '../internal/base-component';
9
9
  import { getBreakpointValue } from '../internal/breakpoints';
10
10
  import DropdownFooter from '../internal/components/dropdown-footer';
11
11
  import { useDropdownStatus } from '../internal/components/dropdown-status';
12
+ import { useAnnouncement } from '../internal/components/listbox/use-announcement';
13
+ import { checkOptionValueField } from '../internal/components/listbox/utils/check-option-value-field';
12
14
  import { prepareOptions } from '../internal/components/option/utils/prepare-options.js';
13
15
  import { ResetGroupedControlContext, useGroupedControlContext } from '../internal/context/control-group-context';
14
16
  import { useFormFieldContext } from '../internal/context/form-field-context';
@@ -20,9 +22,7 @@ import Filter from './parts/filter';
20
22
  import PlainList from './parts/plain-list';
21
23
  import Trigger from './parts/trigger';
22
24
  import VirtualList from './parts/virtual-list';
23
- import { checkOptionValueField } from './utils/check-option-value-field';
24
25
  import { composeDropdownContent } from './utils/dropdown-customization';
25
- import { useAnnouncement } from './utils/use-announcement';
26
26
  import { useLoadItems } from './utils/use-load-items';
27
27
  import { useNativeSearch } from './utils/use-native-search';
28
28
  import { useSelect } from './utils/use-select';
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/select/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAEvH,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,4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5B,MAAM,EAAE,cAAc,EACtB,gBAAgB,EAAE,yBAAyB;gBAC3C,qEAAqE;gBACrE,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE,EACzC,OAAO,EACL,oBAAC,aAAa,IACZ,UAAU,EACR,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,CACzB,oBAAC,cAAc,IAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,GAAI,CAClF,CAAC,CAAC,CAAC,IAAI,EAEV,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,cAAc,EAC9B,GAAG,EAAE,aAAa,EAClB,iBAAiB,EAAE,cAAc,CAAC,OAAO,KAAK,IAAI,EAClD,mBAAmB,EAAE,YAAY,EACjC,aAAa,EAAE,aAAa,GAC5B,GAEJ;YACF,6BAAK,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,iBAAiB,IACrC,SAAS,IAAI,eAAe,CACzB,CACF,CACqB,CAC9B,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useResizeObserver, useUniqueId, warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport Dropdown from '../dropdown/internal';\nimport { useInternalI18n } from '../i18n/context.js';\nimport { getBaseProps } from '../internal/base-component';\nimport { getBreakpointValue } from '../internal/breakpoints';\nimport DropdownFooter from '../internal/components/dropdown-footer';\nimport { useDropdownStatus } from '../internal/components/dropdown-status';\nimport { prepareOptions } from '../internal/components/option/utils/prepare-options.js';\nimport { ResetGroupedControlContext, useGroupedControlContext } from '../internal/context/control-group-context';\nimport { useFormFieldContext } from '../internal/context/form-field-context';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport checkControlled from '../internal/hooks/check-controlled';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { SomeRequired } from '../internal/types';\nimport { getDropdownMinWidth } from '../internal/utils/get-dropdown-min-width';\nimport { joinStrings } from '../internal/utils/strings/join-strings.js';\nimport { OptionGroup } from '../types/option';\nimport { SelectProps } from './interfaces';\nimport Filter from './parts/filter';\nimport PlainList, { SelectListProps } from './parts/plain-list';\nimport Trigger from './parts/trigger';\nimport VirtualList from './parts/virtual-list';\nimport { checkOptionValueField } from './utils/check-option-value-field';\nimport { composeDropdownContent } from './utils/dropdown-customization';\nimport { useAnnouncement } from './utils/use-announcement';\nimport { useLoadItems } from './utils/use-load-items';\nimport { useNativeSearch } from './utils/use-native-search';\nimport { useSelect } from './utils/use-select';\n\nimport styles from './styles.css.js';\n\nexport interface InternalSelectProps extends SomeRequired<SelectProps, 'options'>, InternalBaseComponentProps {\n __inFilteringToken?: 'root' | 'nested';\n}\n\nconst InternalSelect = React.forwardRef(\n (\n {\n options,\n filteringType = 'none',\n filteringPlaceholder,\n filteringAriaLabel,\n filteringClearAriaLabel,\n filteringResultsText,\n inlineLabelText,\n ariaRequired,\n placeholder,\n disabled,\n readOnly,\n ariaLabel,\n statusType = 'finished',\n empty,\n loadingText,\n finishedText,\n errorText,\n noMatch,\n triggerVariant = 'label',\n renderHighlightedAriaLive,\n selectedOption,\n onBlur,\n onFocus,\n onLoadItems,\n onChange,\n virtualScroll,\n expandToViewport,\n autoFocus,\n __inFilteringToken,\n __internalRootRef,\n renderOption,\n renderDropdownHeader,\n renderDropdownFooter,\n dropdownRole,\n dropdownAriaDescribedby,\n ...restProps\n }: InternalSelectProps,\n externalRef: React.Ref<SelectProps.Ref>\n ) => {\n const baseProps = getBaseProps(restProps);\n const formFieldContext = useFormFieldContext(restProps);\n const groupedControlProps = useGroupedControlContext();\n\n // When grouped, the dropdown is portaled regardless of the public\n // `expandToViewport` prop so it escapes the control slot's stacking context\n // and paints over the group's inline label (which the focus ring stays under).\n const effectiveExpandToViewport = expandToViewport || !!groupedControlProps.position;\n\n const i18n = useInternalI18n('select');\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('Select', '`onLoadItems` must be provided for `recoveryText` to be displayed.');\n }\n\n const { handleLoadMore, handleRecoveryClick, fireLoadItems } = useLoadItems({\n onLoadItems,\n options,\n statusType,\n });\n\n checkControlled('Select', 'selectedOption', selectedOption, 'onChange', onChange);\n\n checkOptionValueField('Select', 'options', options);\n\n const [filteringValue, setFilteringValue] = useState('');\n\n const { filteredOptions, parentMap, totalCount, matchesCount } = prepareOptions(\n options,\n filteringType,\n filteringValue\n );\n\n const rootRef = useRef<HTMLDivElement>(null);\n const triggerRef = useRef<HTMLButtonElement>(null);\n const [triggerWidth, setTriggerWidth] = useState<number | null>(null);\n useResizeObserver(\n () => triggerRef.current,\n entry => entry.borderBoxWidth > 0 && setTriggerWidth(entry.borderBoxWidth)\n );\n\n const selfControlId = useUniqueId('trigger');\n const controlId = formFieldContext.controlId ?? selfControlId;\n\n const scrollToIndex = useRef<SelectListProps.SelectListRef>(null);\n const {\n isOpen,\n highlightType,\n highlightedOption,\n highlightedIndex,\n getTriggerProps,\n getDropdownProps,\n getFilterProps,\n getMenuProps,\n getOptionProps,\n highlightOption,\n selectOption,\n announceSelected,\n focusActiveRef,\n closeDropdown,\n } = useSelect({\n selectedOptions: selectedOption ? [selectedOption] : [],\n updateSelectedOption: option => fireNonCancelableEvent(onChange, { selectedOption: option }),\n options: filteredOptions,\n filteringType,\n onBlur,\n onFocus,\n externalRef,\n fireLoadItems,\n setFilteringValue,\n statusType,\n dropdownRole,\n });\n\n const handleNativeSearch = useNativeSearch({\n isEnabled: filteringType === 'none' && !readOnly,\n options: filteredOptions,\n highlightOption: !isOpen ? selectOption : highlightOption,\n highlightedOption: !isOpen ? selectedOption : highlightedOption?.option,\n });\n\n const selectAriaLabelId = useUniqueId('select-arialabel-');\n const footerId = useUniqueId('footer');\n\n useEffect(() => {\n scrollToIndex.current?.(highlightedIndex);\n }, [highlightedIndex]);\n\n const dropdownContentProps: SelectProps.DropdownContentProps = { filterText: filteringValue, closeDropdown };\n const customDropdownHeader = renderDropdownHeader?.(dropdownContentProps);\n const customDropdownFooter = renderDropdownFooter?.(dropdownContentProps);\n\n const filter = (\n <Filter\n clearAriaLabel={filteringClearAriaLabel}\n filteringType={filteringType}\n placeholder={filteringPlaceholder}\n ariaLabel={filteringAriaLabel}\n ariaRequired={ariaRequired}\n value={filteringValue}\n {...getFilterProps()}\n />\n );\n\n const trigger = (\n <Trigger\n renderOption={renderOption}\n ref={triggerRef}\n placeholder={placeholder}\n disabled={disabled}\n readOnly={readOnly}\n triggerVariant={triggerVariant}\n triggerProps={getTriggerProps(disabled, autoFocus)}\n selectedOption={selectedOption}\n isOpen={isOpen}\n inFilteringToken={__inFilteringToken}\n groupedControlProps={groupedControlProps}\n inlineLabelText={inlineLabelText}\n {...formFieldContext}\n controlId={controlId}\n ariaLabelledby={joinStrings(formFieldContext.ariaLabelledby, selectAriaLabelId)}\n />\n );\n\n const isEmpty = !options || options.length === 0;\n const isNoMatch = filteredOptions && filteredOptions.length === 0;\n const isFiltered =\n filteringType !== 'none' && filteringValue.length > 0 && filteredOptions && filteredOptions.length > 0;\n const filteredText = isFiltered ? filteringResultsText?.(matchesCount, totalCount) : undefined;\n\n const dropdownStatus = useDropdownStatus({\n statusType,\n empty,\n loadingText,\n finishedText,\n errorText,\n recoveryText,\n isEmpty,\n isNoMatch,\n noMatch,\n filteringResultsText: filteredText,\n errorIconAriaLabel,\n onRecoveryClick: () => {\n handleRecoveryClick();\n focusActiveRef();\n },\n hasRecoveryCallback: !!onLoadItems,\n });\n\n const statusFooter = dropdownStatus.isSticky ? (\n <DropdownFooter content={isOpen ? dropdownStatus.content : null} id={footerId} />\n ) : null;\n const { header: dropdownHeader, footer: dropdownFooter } = composeDropdownContent({\n filter,\n customDropdownHeader,\n customDropdownFooter,\n statusFooter,\n dropdownHeaderClass: styles['dropdown-header'],\n dropdownFooterClass: styles['dropdown-footer'],\n });\n\n const menuProps = {\n ...getMenuProps(),\n onLoadMore: handleLoadMore,\n ariaLabelledby: joinStrings(selectAriaLabelId, controlId),\n ariaDescribedby: joinStrings(dropdownStatus.content ? footerId : undefined, dropdownAriaDescribedby),\n ariaRequired,\n };\n\n const announcement = useAnnouncement({\n announceSelected,\n highlightedOption,\n getParent: option => parentMap.get(option)?.option as undefined | OptionGroup,\n selectedAriaLabel,\n renderHighlightedAriaLive,\n });\n\n const ListComponent = virtualScroll ? VirtualList : PlainList;\n\n const handleMouseDown = (event: React.MouseEvent) => {\n const target = event.target as HTMLElement;\n\n if (target !== document.activeElement) {\n // prevent currently focused element from losing it\n event.preventDefault();\n }\n };\n\n const mergedRef = useMergeRefs(rootRef, __internalRootRef);\n\n const dropdownProps = getDropdownProps();\n\n const hasOptions = useRef(options.length > 0);\n hasOptions.current = hasOptions.current || options.length > 0;\n\n return (\n <ResetGroupedControlContext>\n <div\n {...baseProps}\n ref={mergedRef}\n className={clsx(styles.root, baseProps.className)}\n onKeyDown={handleNativeSearch}\n >\n <Dropdown\n {...dropdownProps}\n ariaLabelledby={dropdownProps.ariaRole ? joinStrings(selectAriaLabelId, controlId) : undefined}\n ariaDescribedby={\n dropdownProps.ariaRole\n ? joinStrings(dropdownStatus.content ? footerId : undefined, dropdownAriaDescribedby)\n : undefined\n }\n open={isOpen}\n stretchTriggerHeight={!!__inFilteringToken}\n minWidth={getDropdownMinWidth({ expandToViewport: effectiveExpandToViewport, triggerWidth })}\n maxWidth={getBreakpointValue('xxs')} // AWSUI-19898\n trigger={trigger}\n header={dropdownHeader}\n onMouseDown={handleMouseDown}\n footer={dropdownFooter}\n expandToViewport={effectiveExpandToViewport}\n // Forces dropdown position recalculation when new options are loaded\n contentKey={hasOptions.current.toString()}\n content={\n <ListComponent\n listBottom={\n !dropdownStatus.isSticky ? (\n <DropdownFooter content={isOpen ? dropdownStatus.content : null} id={footerId} />\n ) : null\n }\n renderOption={renderOption}\n menuProps={menuProps}\n getOptionProps={getOptionProps}\n filteredOptions={filteredOptions}\n filteringValue={filteringValue}\n ref={scrollToIndex}\n hasDropdownStatus={dropdownStatus.content !== null}\n screenReaderContent={announcement}\n highlightType={highlightType}\n />\n }\n />\n <div hidden={true} id={selectAriaLabelId}>\n {ariaLabel || inlineLabelText}\n </div>\n </div>\n </ResetGroupedControlContext>\n );\n }\n);\n\nexport default InternalSelect;\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/select/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAEvH,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,cAAc,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAClF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+DAA+D,CAAC;AACtG,OAAO,EAAE,cAA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OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,GAAI,CAClF,CAAC,CAAC,CAAC,IAAI,EAEV,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,cAAc,EAC9B,GAAG,EAAE,aAAa,EAClB,iBAAiB,EAAE,cAAc,CAAC,OAAO,KAAK,IAAI,EAClD,mBAAmB,EAAE,YAAY,EACjC,aAAa,EAAE,aAAa,GAC5B,GAEJ;YACF,6BAAK,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,iBAAiB,IACrC,SAAS,IAAI,eAAe,CACzB,CACF,CACqB,CAC9B,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useResizeObserver, useUniqueId, warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport Dropdown from '../dropdown/internal';\nimport { useInternalI18n } from '../i18n/context.js';\nimport { getBaseProps } from '../internal/base-component';\nimport { getBreakpointValue } from '../internal/breakpoints';\nimport DropdownFooter from '../internal/components/dropdown-footer';\nimport { useDropdownStatus } from '../internal/components/dropdown-status';\nimport { useAnnouncement } from '../internal/components/listbox/use-announcement';\nimport { checkOptionValueField } from '../internal/components/listbox/utils/check-option-value-field';\nimport { prepareOptions } from '../internal/components/option/utils/prepare-options.js';\nimport { ResetGroupedControlContext, useGroupedControlContext } from '../internal/context/control-group-context';\nimport { useFormFieldContext } from '../internal/context/form-field-context';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport checkControlled from '../internal/hooks/check-controlled';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { SomeRequired } from '../internal/types';\nimport { getDropdownMinWidth } from '../internal/utils/get-dropdown-min-width';\nimport { joinStrings } from '../internal/utils/strings/join-strings.js';\nimport { OptionGroup } from '../types/option';\nimport { SelectProps } from './interfaces';\nimport Filter from './parts/filter';\nimport PlainList, { SelectListProps } from './parts/plain-list';\nimport Trigger from './parts/trigger';\nimport VirtualList from './parts/virtual-list';\nimport { composeDropdownContent } from './utils/dropdown-customization';\nimport { useLoadItems } from './utils/use-load-items';\nimport { useNativeSearch } from './utils/use-native-search';\nimport { useSelect } from './utils/use-select';\n\nimport styles from './styles.css.js';\n\nexport interface InternalSelectProps extends SomeRequired<SelectProps, 'options'>, InternalBaseComponentProps {\n __inFilteringToken?: 'root' | 'nested';\n}\n\nconst InternalSelect = React.forwardRef(\n (\n {\n options,\n filteringType = 'none',\n filteringPlaceholder,\n filteringAriaLabel,\n filteringClearAriaLabel,\n filteringResultsText,\n inlineLabelText,\n ariaRequired,\n placeholder,\n disabled,\n readOnly,\n ariaLabel,\n statusType = 'finished',\n empty,\n loadingText,\n finishedText,\n errorText,\n noMatch,\n triggerVariant = 'label',\n renderHighlightedAriaLive,\n selectedOption,\n onBlur,\n onFocus,\n onLoadItems,\n onChange,\n virtualScroll,\n expandToViewport,\n autoFocus,\n __inFilteringToken,\n __internalRootRef,\n renderOption,\n renderDropdownHeader,\n renderDropdownFooter,\n dropdownRole,\n dropdownAriaDescribedby,\n ...restProps\n }: InternalSelectProps,\n externalRef: React.Ref<SelectProps.Ref>\n ) => {\n const baseProps = getBaseProps(restProps);\n const formFieldContext = useFormFieldContext(restProps);\n const groupedControlProps = useGroupedControlContext();\n\n // When grouped, the dropdown is portaled regardless of the public\n // `expandToViewport` prop so it escapes the control slot's stacking context\n // and paints over the group's inline label (which the focus ring stays under).\n const effectiveExpandToViewport = expandToViewport || !!groupedControlProps.position;\n\n const i18n = useInternalI18n('select');\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('Select', '`onLoadItems` must be provided for `recoveryText` to be displayed.');\n }\n\n const { handleLoadMore, handleRecoveryClick, fireLoadItems } = useLoadItems({\n onLoadItems,\n options,\n statusType,\n });\n\n checkControlled('Select', 'selectedOption', selectedOption, 'onChange', onChange);\n\n checkOptionValueField('Select', 'options', options);\n\n const [filteringValue, setFilteringValue] = useState('');\n\n const { filteredOptions, parentMap, totalCount, matchesCount } = prepareOptions(\n options,\n filteringType,\n filteringValue\n );\n\n const rootRef = useRef<HTMLDivElement>(null);\n const triggerRef = useRef<HTMLButtonElement>(null);\n const [triggerWidth, setTriggerWidth] = useState<number | null>(null);\n useResizeObserver(\n () => triggerRef.current,\n entry => entry.borderBoxWidth > 0 && setTriggerWidth(entry.borderBoxWidth)\n );\n\n const selfControlId = useUniqueId('trigger');\n const controlId = formFieldContext.controlId ?? selfControlId;\n\n const scrollToIndex = useRef<SelectListProps.SelectListRef>(null);\n const {\n isOpen,\n highlightType,\n highlightedOption,\n highlightedIndex,\n getTriggerProps,\n getDropdownProps,\n getFilterProps,\n getMenuProps,\n getOptionProps,\n highlightOption,\n selectOption,\n announceSelected,\n focusActiveRef,\n closeDropdown,\n } = useSelect({\n selectedOptions: selectedOption ? [selectedOption] : [],\n updateSelectedOption: option => fireNonCancelableEvent(onChange, { selectedOption: option }),\n options: filteredOptions,\n filteringType,\n onBlur,\n onFocus,\n externalRef,\n fireLoadItems,\n setFilteringValue,\n statusType,\n dropdownRole,\n });\n\n const handleNativeSearch = useNativeSearch({\n isEnabled: filteringType === 'none' && !readOnly,\n options: filteredOptions,\n highlightOption: !isOpen ? selectOption : highlightOption,\n highlightedOption: !isOpen ? selectedOption : highlightedOption?.option,\n });\n\n const selectAriaLabelId = useUniqueId('select-arialabel-');\n const footerId = useUniqueId('footer');\n\n useEffect(() => {\n scrollToIndex.current?.(highlightedIndex);\n }, [highlightedIndex]);\n\n const dropdownContentProps: SelectProps.DropdownContentProps = { filterText: filteringValue, closeDropdown };\n const customDropdownHeader = renderDropdownHeader?.(dropdownContentProps);\n const customDropdownFooter = renderDropdownFooter?.(dropdownContentProps);\n\n const filter = (\n <Filter\n clearAriaLabel={filteringClearAriaLabel}\n filteringType={filteringType}\n placeholder={filteringPlaceholder}\n ariaLabel={filteringAriaLabel}\n ariaRequired={ariaRequired}\n value={filteringValue}\n {...getFilterProps()}\n />\n );\n\n const trigger = (\n <Trigger\n renderOption={renderOption}\n ref={triggerRef}\n placeholder={placeholder}\n disabled={disabled}\n readOnly={readOnly}\n triggerVariant={triggerVariant}\n triggerProps={getTriggerProps(disabled, autoFocus)}\n selectedOption={selectedOption}\n isOpen={isOpen}\n inFilteringToken={__inFilteringToken}\n groupedControlProps={groupedControlProps}\n inlineLabelText={inlineLabelText}\n {...formFieldContext}\n controlId={controlId}\n ariaLabelledby={joinStrings(formFieldContext.ariaLabelledby, selectAriaLabelId)}\n />\n );\n\n const isEmpty = !options || options.length === 0;\n const isNoMatch = filteredOptions && filteredOptions.length === 0;\n const isFiltered =\n filteringType !== 'none' && filteringValue.length > 0 && filteredOptions && filteredOptions.length > 0;\n const filteredText = isFiltered ? filteringResultsText?.(matchesCount, totalCount) : undefined;\n\n const dropdownStatus = useDropdownStatus({\n statusType,\n empty,\n loadingText,\n finishedText,\n errorText,\n recoveryText,\n isEmpty,\n isNoMatch,\n noMatch,\n filteringResultsText: filteredText,\n errorIconAriaLabel,\n onRecoveryClick: () => {\n handleRecoveryClick();\n focusActiveRef();\n },\n hasRecoveryCallback: !!onLoadItems,\n });\n\n const statusFooter = dropdownStatus.isSticky ? (\n <DropdownFooter content={isOpen ? dropdownStatus.content : null} id={footerId} />\n ) : null;\n const { header: dropdownHeader, footer: dropdownFooter } = composeDropdownContent({\n filter,\n customDropdownHeader,\n customDropdownFooter,\n statusFooter,\n dropdownHeaderClass: styles['dropdown-header'],\n dropdownFooterClass: styles['dropdown-footer'],\n });\n\n const menuProps = {\n ...getMenuProps(),\n onLoadMore: handleLoadMore,\n ariaLabelledby: joinStrings(selectAriaLabelId, controlId),\n ariaDescribedby: joinStrings(dropdownStatus.content ? footerId : undefined, dropdownAriaDescribedby),\n ariaRequired,\n };\n\n const announcement = useAnnouncement({\n announceSelected,\n highlightedOption,\n getParent: option => parentMap.get(option)?.option as undefined | OptionGroup,\n selectedAriaLabel,\n renderHighlightedAriaLive,\n });\n\n const ListComponent = virtualScroll ? VirtualList : PlainList;\n\n const handleMouseDown = (event: React.MouseEvent) => {\n const target = event.target as HTMLElement;\n\n if (target !== document.activeElement) {\n // prevent currently focused element from losing it\n event.preventDefault();\n }\n };\n\n const mergedRef = useMergeRefs(rootRef, __internalRootRef);\n\n const dropdownProps = getDropdownProps();\n\n const hasOptions = useRef(options.length > 0);\n hasOptions.current = hasOptions.current || options.length > 0;\n\n return (\n <ResetGroupedControlContext>\n <div\n {...baseProps}\n ref={mergedRef}\n className={clsx(styles.root, baseProps.className)}\n onKeyDown={handleNativeSearch}\n >\n <Dropdown\n {...dropdownProps}\n ariaLabelledby={dropdownProps.ariaRole ? joinStrings(selectAriaLabelId, controlId) : undefined}\n ariaDescribedby={\n dropdownProps.ariaRole\n ? joinStrings(dropdownStatus.content ? footerId : undefined, dropdownAriaDescribedby)\n : undefined\n }\n open={isOpen}\n stretchTriggerHeight={!!__inFilteringToken}\n minWidth={getDropdownMinWidth({ expandToViewport: effectiveExpandToViewport, triggerWidth })}\n maxWidth={getBreakpointValue('xxs')} // AWSUI-19898\n trigger={trigger}\n header={dropdownHeader}\n onMouseDown={handleMouseDown}\n footer={dropdownFooter}\n expandToViewport={effectiveExpandToViewport}\n // Forces dropdown position recalculation when new options are loaded\n contentKey={hasOptions.current.toString()}\n content={\n <ListComponent\n listBottom={\n !dropdownStatus.isSticky ? (\n <DropdownFooter content={isOpen ? dropdownStatus.content : null} id={footerId} />\n ) : null\n }\n renderOption={renderOption}\n menuProps={menuProps}\n getOptionProps={getOptionProps}\n filteredOptions={filteredOptions}\n filteringValue={filteringValue}\n ref={scrollToIndex}\n hasDropdownStatus={dropdownStatus.content !== null}\n screenReaderContent={announcement}\n highlightType={highlightType}\n />\n }\n />\n <div hidden={true} id={selectAriaLabelId}>\n {ariaLabel || inlineLabelText}\n </div>\n </div>\n </ResetGroupedControlContext>\n );\n }\n);\n\nexport default InternalSelect;\n"]}
@@ -5,6 +5,6 @@ export interface FilterProps extends InternalInputProps {
5
5
  ref?: React.Ref<HTMLInputElement>;
6
6
  filteringType: SelectProps.FilteringType;
7
7
  }
8
- declare const Filter: React.ForwardRefExoticComponent<Pick<FilterProps, "style" | "disabled" | "className" | "id" | "name" | "type" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onKeyUp" | "placeholder" | "prefix" | "inputMode" | "autoFocus" | "value" | "autoComplete" | "readOnly" | "step" | "invalid" | "ariaLabel" | "ariaDescribedby" | "__internalRootRef" | "warning" | "ariaLabelledby" | "filteringType" | "__injectAnalyticsComponentMetadata" | "__skipNativeAttributesWarnings" | "ariaRequired" | "controlId" | "inlineLabelText" | "suffix" | "nativeInputAttributes" | "disableBrowserAutocorrect" | "spellcheck" | "clearAriaLabel" | "__startIcon" | "__startIconVariant" | "__onStartIconClick" | "__endIcon" | "__onEndIconClick" | "__noBorderRadius" | "__noBorder" | "__onDelayedInput" | "__onBlurWithDetail" | "__inheritFormFieldProps" | "__fullWidth"> & React.RefAttributes<HTMLInputElement>>;
8
+ declare const Filter: React.ForwardRefExoticComponent<Pick<FilterProps, "style" | "disabled" | "className" | "id" | "name" | "type" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onKeyUp" | "placeholder" | "prefix" | "inputMode" | "autoFocus" | "value" | "autoComplete" | "readOnly" | "step" | "invalid" | "ariaLabel" | "ariaDescribedby" | "__internalRootRef" | "warning" | "ariaLabelledby" | "filteringType" | "__injectAnalyticsComponentMetadata" | "__skipNativeAttributesWarnings" | "styleClassNames" | "ariaRequired" | "controlId" | "inlineLabelText" | "suffix" | "nativeInputAttributes" | "disableBrowserAutocorrect" | "spellcheck" | "clearAriaLabel" | "__startIcon" | "__onStartIconClick" | "__endIcon" | "__onEndIconClick" | "__noBorderRadius" | "__noBorder" | "__onDelayedInput" | "__onBlurWithDetail" | "__inheritFormFieldProps" | "__fullWidth"> & React.RefAttributes<HTMLInputElement>>;
9
9
  export default Filter;
10
10
  //# sourceMappingURL=filter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../../src/select/parts/filter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAsB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAClC,aAAa,EAAE,WAAW,CAAC,aAAa,CAAC;CAC1C;AAED,QAAA,MAAM,MAAM,m3BA0BV,CAAC;AAEH,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../../src/select/parts/filter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAsB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAClC,aAAa,EAAE,WAAW,CAAC,aAAa,CAAC;CAC1C;AAED,QAAA,MAAM,MAAM,g3BA0BV,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"plain-list.d.ts","sourceRoot":"","sources":["../../../../src/select/parts/plain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C;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIhE,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,EAAE,cAAc,CAAC;IAC/B,eAAe,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAC/C,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,WAAW,CAAC,wBAAwB,GAAG,gBAAgB,CAAC,6BAA6B,CAAC;CACtG;AAED,yBAAiB,eAAe,CAAC;IAC/B,KAAY,aAAa,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACrD;;AAoFD,wBAAqC"}
@@ -3,10 +3,10 @@
3
3
  import React, { forwardRef, useImperativeHandle, useRef, useState } from 'react';
4
4
  import { useContainerQuery } from '@cloudscape-design/component-toolkit';
5
5
  import { useMergeRefs, useUniqueId } from '@cloudscape-design/component-toolkit/internal';
6
+ import { fallbackItemHeight } from '../../internal/components/listbox/parts/common';
7
+ import { renderOptions } from '../../internal/components/listbox/parts/render-options';
8
+ import scrollToIndex from '../../internal/components/listbox/parts/scroll-to-index';
6
9
  import OptionsList from '../../internal/components/options-list';
7
- import { renderOptions } from '../utils/render-options';
8
- import scrollToIndex from '../utils/scroll-to-index';
9
- import { fallbackItemHeight } from './common';
10
10
  import styles from './styles.css.js';
11
11
  const PlainList = ({ menuProps, getOptionProps, filteredOptions, filteringValue, highlightType, checkboxes, hasDropdownStatus, listBottom, useInteractiveGroups, screenReaderContent, firstOptionSticky, isMultiSelect, renderOption, }, ref) => {
12
12
  const idPrefix = useUniqueId('select-list-');