@cloudscape-design/components 3.0.1270 → 3.0.1272

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 (181) hide show
  1. package/app-layout/visual-refresh-toolbar/toolbar/index.js +1 -1
  2. package/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
  3. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.d.ts +1 -1
  4. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.d.ts.map +1 -1
  5. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js +1 -2
  6. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js.map +1 -1
  7. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.css.js +6 -7
  8. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.scoped.css +20 -26
  9. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.selectors.js +6 -7
  10. package/button/styles.css.js +22 -22
  11. package/button/styles.scoped.css +78 -78
  12. package/button/styles.selectors.js +22 -22
  13. package/help-panel/styles.css.js +6 -6
  14. package/help-panel/styles.scoped.css +70 -70
  15. package/help-panel/styles.selectors.js +6 -6
  16. package/i18n/messages/all.all.js +1 -1
  17. package/i18n/messages/all.all.json +1 -1
  18. package/i18n/messages/all.ar.js +1 -1
  19. package/i18n/messages/all.ar.json +1 -1
  20. package/i18n/messages/all.de.js +1 -1
  21. package/i18n/messages/all.de.json +1 -1
  22. package/i18n/messages/all.en-GB.js +1 -1
  23. package/i18n/messages/all.en-GB.json +1 -1
  24. package/i18n/messages/all.en.js +1 -1
  25. package/i18n/messages/all.en.json +1 -1
  26. package/i18n/messages/all.es.js +1 -1
  27. package/i18n/messages/all.es.json +1 -1
  28. package/i18n/messages/all.fr.js +1 -1
  29. package/i18n/messages/all.fr.json +1 -1
  30. package/i18n/messages/all.id.js +1 -1
  31. package/i18n/messages/all.id.json +1 -1
  32. package/i18n/messages/all.it.js +1 -1
  33. package/i18n/messages/all.it.json +1 -1
  34. package/i18n/messages/all.ja.js +1 -1
  35. package/i18n/messages/all.ja.json +1 -1
  36. package/i18n/messages/all.ko.js +1 -1
  37. package/i18n/messages/all.ko.json +1 -1
  38. package/i18n/messages/all.pt-BR.js +1 -1
  39. package/i18n/messages/all.pt-BR.json +1 -1
  40. package/i18n/messages/all.tr.js +1 -1
  41. package/i18n/messages/all.tr.json +1 -1
  42. package/i18n/messages/all.zh-CN.js +1 -1
  43. package/i18n/messages/all.zh-CN.json +1 -1
  44. package/i18n/messages/all.zh-TW.js +1 -1
  45. package/i18n/messages/all.zh-TW.json +1 -1
  46. package/i18n/messages-types.d.ts +18 -0
  47. package/i18n/messages-types.d.ts.map +1 -1
  48. package/i18n/messages-types.js.map +1 -1
  49. package/internal/base-component/styles.scoped.css +63 -4
  50. package/internal/components/token-list/styles.css.js +10 -10
  51. package/internal/components/token-list/styles.scoped.css +25 -25
  52. package/internal/components/token-list/styles.selectors.js +10 -10
  53. package/internal/environment.js +2 -2
  54. package/internal/environment.json +2 -2
  55. package/internal/generated/styles/tokens.d.ts +17 -3
  56. package/internal/generated/styles/tokens.js +17 -3
  57. package/internal/generated/theming/index.cjs +417 -9
  58. package/internal/generated/theming/index.cjs.d.ts +189 -0
  59. package/internal/generated/theming/index.d.ts +189 -0
  60. package/internal/generated/theming/index.js +417 -9
  61. package/internal/keycode.d.ts +3 -1
  62. package/internal/keycode.d.ts.map +1 -1
  63. package/internal/keycode.js +5 -0
  64. package/internal/keycode.js.map +1 -1
  65. package/internal/manifest.json +1 -1
  66. package/internal/utils/handle-key.d.ts +22 -1
  67. package/internal/utils/handle-key.d.ts.map +1 -1
  68. package/internal/utils/handle-key.js +62 -4
  69. package/internal/utils/handle-key.js.map +1 -1
  70. package/item-card/styles.css.js +14 -14
  71. package/item-card/styles.scoped.css +52 -52
  72. package/item-card/styles.selectors.js +14 -14
  73. package/link/styles.css.js +21 -21
  74. package/link/styles.scoped.css +81 -81
  75. package/link/styles.selectors.js +21 -21
  76. package/package.json +1 -1
  77. package/prompt-input/components/menu-dropdown.d.ts +33 -0
  78. package/prompt-input/components/menu-dropdown.d.ts.map +1 -0
  79. package/prompt-input/components/menu-dropdown.js +48 -0
  80. package/prompt-input/components/menu-dropdown.js.map +1 -0
  81. package/prompt-input/components/textarea-mode.d.ts +15 -0
  82. package/prompt-input/components/textarea-mode.d.ts.map +1 -0
  83. package/prompt-input/components/textarea-mode.js +8 -0
  84. package/prompt-input/components/textarea-mode.js.map +1 -0
  85. package/prompt-input/components/token-mode.d.ts +61 -0
  86. package/prompt-input/components/token-mode.d.ts.map +1 -0
  87. package/prompt-input/components/token-mode.js +37 -0
  88. package/prompt-input/components/token-mode.js.map +1 -0
  89. package/prompt-input/core/caret-controller.d.ts +73 -0
  90. package/prompt-input/core/caret-controller.d.ts.map +1 -0
  91. package/prompt-input/core/caret-controller.js +396 -0
  92. package/prompt-input/core/caret-controller.js.map +1 -0
  93. package/prompt-input/core/caret-spot-utils.d.ts +6 -0
  94. package/prompt-input/core/caret-spot-utils.d.ts.map +1 -0
  95. package/prompt-input/core/caret-spot-utils.js +52 -0
  96. package/prompt-input/core/caret-spot-utils.js.map +1 -0
  97. package/prompt-input/core/caret-utils.d.ts +25 -0
  98. package/prompt-input/core/caret-utils.d.ts.map +1 -0
  99. package/prompt-input/core/caret-utils.js +183 -0
  100. package/prompt-input/core/caret-utils.js.map +1 -0
  101. package/prompt-input/core/constants.d.ts +14 -0
  102. package/prompt-input/core/constants.d.ts.map +1 -0
  103. package/prompt-input/core/constants.js +18 -0
  104. package/prompt-input/core/constants.js.map +1 -0
  105. package/prompt-input/core/dom-utils.d.ts +60 -0
  106. package/prompt-input/core/dom-utils.d.ts.map +1 -0
  107. package/prompt-input/core/dom-utils.js +252 -0
  108. package/prompt-input/core/dom-utils.js.map +1 -0
  109. package/prompt-input/core/event-handlers.d.ts +68 -0
  110. package/prompt-input/core/event-handlers.d.ts.map +1 -0
  111. package/prompt-input/core/event-handlers.js +678 -0
  112. package/prompt-input/core/event-handlers.js.map +1 -0
  113. package/prompt-input/core/menu-state.d.ts +62 -0
  114. package/prompt-input/core/menu-state.d.ts.map +1 -0
  115. package/prompt-input/core/menu-state.js +168 -0
  116. package/prompt-input/core/menu-state.js.map +1 -0
  117. package/prompt-input/core/token-operations.d.ts +21 -0
  118. package/prompt-input/core/token-operations.d.ts.map +1 -0
  119. package/prompt-input/core/token-operations.js +273 -0
  120. package/prompt-input/core/token-operations.js.map +1 -0
  121. package/prompt-input/core/token-renderer.d.ts +26 -0
  122. package/prompt-input/core/token-renderer.d.ts.map +1 -0
  123. package/prompt-input/core/token-renderer.js +230 -0
  124. package/prompt-input/core/token-renderer.js.map +1 -0
  125. package/prompt-input/core/token-utils.d.ts +22 -0
  126. package/prompt-input/core/token-utils.d.ts.map +1 -0
  127. package/prompt-input/core/token-utils.js +262 -0
  128. package/prompt-input/core/token-utils.js.map +1 -0
  129. package/prompt-input/core/trigger-utils.d.ts +18 -0
  130. package/prompt-input/core/trigger-utils.d.ts.map +1 -0
  131. package/prompt-input/core/trigger-utils.js +174 -0
  132. package/prompt-input/core/trigger-utils.js.map +1 -0
  133. package/prompt-input/core/type-guards.d.ts +13 -0
  134. package/prompt-input/core/type-guards.d.ts.map +1 -0
  135. package/prompt-input/core/type-guards.js +36 -0
  136. package/prompt-input/core/type-guards.js.map +1 -0
  137. package/prompt-input/index.d.ts +1 -1
  138. package/prompt-input/index.d.ts.map +1 -1
  139. package/prompt-input/index.js.map +1 -1
  140. package/prompt-input/interfaces.d.ts +356 -7
  141. package/prompt-input/interfaces.d.ts.map +1 -1
  142. package/prompt-input/interfaces.js.map +1 -1
  143. package/prompt-input/internal.d.ts +1 -1
  144. package/prompt-input/internal.d.ts.map +1 -1
  145. package/prompt-input/internal.js +195 -61
  146. package/prompt-input/internal.js.map +1 -1
  147. package/prompt-input/styles.css.js +26 -17
  148. package/prompt-input/styles.scoped.css +152 -39
  149. package/prompt-input/styles.selectors.js +26 -17
  150. package/prompt-input/test-classes/styles.css.js +7 -6
  151. package/prompt-input/test-classes/styles.scoped.css +10 -6
  152. package/prompt-input/test-classes/styles.selectors.js +7 -6
  153. package/prompt-input/tokens/use-shortcuts.d.ts +37 -0
  154. package/prompt-input/tokens/use-shortcuts.d.ts.map +1 -0
  155. package/prompt-input/tokens/use-shortcuts.js +89 -0
  156. package/prompt-input/tokens/use-shortcuts.js.map +1 -0
  157. package/prompt-input/tokens/use-token-mode.d.ts +78 -0
  158. package/prompt-input/tokens/use-token-mode.d.ts.map +1 -0
  159. package/prompt-input/tokens/use-token-mode.js +817 -0
  160. package/prompt-input/tokens/use-token-mode.js.map +1 -0
  161. package/prompt-input/utils/insert-text-content-editable.d.ts +10 -0
  162. package/prompt-input/utils/insert-text-content-editable.d.ts.map +1 -0
  163. package/prompt-input/utils/insert-text-content-editable.js +133 -0
  164. package/prompt-input/utils/insert-text-content-editable.js.map +1 -0
  165. package/tabs/styles.css.js +30 -30
  166. package/tabs/styles.scoped.css +55 -55
  167. package/tabs/styles.selectors.js +30 -30
  168. package/test-utils/dom/hotspot/index.js +1 -2
  169. package/test-utils/dom/hotspot/index.js.map +1 -1
  170. package/test-utils/dom/prompt-input/index.d.ts +53 -1
  171. package/test-utils/dom/prompt-input/index.js +121 -13
  172. package/test-utils/dom/prompt-input/index.js.map +1 -1
  173. package/test-utils/dom/s3-resource-selector/index.js +2 -3
  174. package/test-utils/dom/s3-resource-selector/index.js.map +1 -1
  175. package/test-utils/selectors/hotspot/index.js +1 -2
  176. package/test-utils/selectors/hotspot/index.js.map +1 -1
  177. package/test-utils/selectors/prompt-input/index.d.ts +30 -0
  178. package/test-utils/selectors/prompt-input/index.js +53 -7
  179. package/test-utils/selectors/prompt-input/index.js.map +1 -1
  180. package/test-utils/selectors/s3-resource-selector/index.js +2 -3
  181. package/test-utils/selectors/s3-resource-selector/index.js.map +1 -1
@@ -143,7 +143,7 @@
143
143
  */
144
144
  /* Style used for links in slots/components that are text heavy, to help links stand out among
145
145
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
146
- .awsui_root_55fkh_1e7lc_146:not(#\9) {
146
+ .awsui_root_55fkh_587uz_146:not(#\9) {
147
147
  border-collapse: separate;
148
148
  border-spacing: 0;
149
149
  box-sizing: border-box;
@@ -183,18 +183,18 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
183
183
  border-inline: var(--border-width-field-2xc78x, 1px) solid var(--awsui-prompt-input-style-border-color-default-6b9ypa, var(--color-border-input-default-317xk5, #8c8c94));
184
184
  box-shadow: var(--awsui-prompt-input-style-box-shadow-default-6b9ypa);
185
185
  }
186
- .awsui_root_55fkh_1e7lc_146:not(#\9):hover {
186
+ .awsui_root_55fkh_587uz_146:not(#\9):hover {
187
187
  background-color: var(--awsui-prompt-input-style-background-hover-6b9ypa, var(--awsui-prompt-input-style-background-default-6b9ypa, var(--color-background-input-default-ifz5bb, #ffffff)));
188
188
  border-color: var(--awsui-prompt-input-style-border-color-hover-6b9ypa, var(--awsui-prompt-input-style-border-color-default-6b9ypa, var(--color-border-input-default-317xk5, #8c8c94)));
189
189
  box-shadow: var(--awsui-prompt-input-style-box-shadow-hover-6b9ypa, var(--awsui-prompt-input-style-box-shadow-default-6b9ypa));
190
190
  }
191
- .awsui_root_55fkh_1e7lc_146.awsui_textarea-readonly_55fkh_1e7lc_191:not(#\9) {
191
+ .awsui_root_55fkh_587uz_146.awsui_textarea-readonly_55fkh_587uz_191:not(#\9) {
192
192
  background-color: var(--awsui-prompt-input-style-background-readonly-6b9ypa, var(--awsui-prompt-input-style-background-default-6b9ypa, var(--color-background-input-default-ifz5bb, #ffffff)));
193
193
  border-block: var(--border-width-field-2xc78x, 1px) solid var(--awsui-prompt-input-style-border-color-readonly-6b9ypa, var(--awsui-prompt-input-style-border-color-default-6b9ypa, var(--color-border-input-disabled-zgnzvk, #ebebf0)));
194
194
  border-inline: var(--border-width-field-2xc78x, 1px) solid var(--awsui-prompt-input-style-border-color-readonly-6b9ypa, var(--awsui-prompt-input-style-border-color-default-6b9ypa, var(--color-border-input-disabled-zgnzvk, #ebebf0)));
195
195
  box-shadow: var(--awsui-prompt-input-style-box-shadow-readonly-6b9ypa);
196
196
  }
197
- .awsui_root_55fkh_1e7lc_146.awsui_disabled_55fkh_1e7lc_197:not(#\9) {
197
+ .awsui_root_55fkh_587uz_146.awsui_disabled_55fkh_587uz_197:not(#\9) {
198
198
  background-color: var(--awsui-prompt-input-style-background-disabled-6b9ypa, var(--color-background-input-disabled-dihaja, #ebebf0));
199
199
  border-block: var(--border-width-field-2xc78x, 1px) solid var(--awsui-prompt-input-style-border-color-disabled-6b9ypa, var(--color-border-input-disabled-zgnzvk, #ebebf0));
200
200
  border-inline: var(--border-width-field-2xc78x, 1px) solid var(--awsui-prompt-input-style-border-color-disabled-6b9ypa, var(--color-border-input-disabled-zgnzvk, #ebebf0));
@@ -202,57 +202,63 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
202
202
  cursor: default;
203
203
  box-shadow: var(--awsui-prompt-input-style-box-shadow-disabled-6b9ypa);
204
204
  }
205
- .awsui_root_55fkh_1e7lc_146.awsui_textarea-invalid_55fkh_1e7lc_205:not(#\9) {
205
+ .awsui_root_55fkh_587uz_146.awsui_textarea-invalid_55fkh_587uz_205:not(#\9) {
206
206
  color: var(--awsui-prompt-input-style-color-default-6b9ypa, var(--color-text-status-error-ksqavh, #db0000));
207
207
  border-color: var(--awsui-prompt-input-style-border-color-default-6b9ypa, var(--color-text-status-error-ksqavh, #db0000));
208
208
  padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
209
209
  border-inline-start-width: var(--border-invalid-width-3xd6e1, 8px);
210
210
  }
211
- .awsui_root_55fkh_1e7lc_146.awsui_textarea-invalid_55fkh_1e7lc_205:not(#\9):focus {
211
+ .awsui_root_55fkh_587uz_146.awsui_textarea-invalid_55fkh_587uz_205:not(#\9):focus {
212
212
  box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
213
213
  }
214
- .awsui_root_55fkh_1e7lc_146.awsui_textarea-invalid_55fkh_1e7lc_205:not(#\9) {
214
+ .awsui_root_55fkh_587uz_146.awsui_textarea-invalid_55fkh_587uz_205:not(#\9) {
215
215
  padding-inline-start: 0;
216
216
  }
217
- .awsui_root_55fkh_1e7lc_146.awsui_textarea-invalid_55fkh_1e7lc_205:not(#\9):focus-within, .awsui_root_55fkh_1e7lc_146.awsui_textarea-invalid_55fkh_1e7lc_205:not(#\9):focus {
217
+ .awsui_root_55fkh_587uz_146.awsui_textarea-invalid_55fkh_587uz_205:not(#\9):focus-within, .awsui_root_55fkh_587uz_146.awsui_textarea-invalid_55fkh_587uz_205:not(#\9):focus {
218
218
  color: var(--awsui-prompt-input-style-color-default-6b9ypa, var(--color-text-status-error-ksqavh, #db0000));
219
219
  border-color: var(--awsui-prompt-input-style-border-color-default-6b9ypa, var(--color-text-status-error-ksqavh, #db0000));
220
220
  padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
221
221
  border-inline-start-width: var(--border-invalid-width-3xd6e1, 8px);
222
222
  }
223
- .awsui_root_55fkh_1e7lc_146.awsui_textarea-invalid_55fkh_1e7lc_205:not(#\9):focus-within:focus, .awsui_root_55fkh_1e7lc_146.awsui_textarea-invalid_55fkh_1e7lc_205:not(#\9):focus:focus {
223
+ .awsui_root_55fkh_587uz_146.awsui_textarea-invalid_55fkh_587uz_205:not(#\9):focus-within:focus, .awsui_root_55fkh_587uz_146.awsui_textarea-invalid_55fkh_587uz_205:not(#\9):focus:focus {
224
224
  box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
225
225
  }
226
- .awsui_root_55fkh_1e7lc_146.awsui_textarea-invalid_55fkh_1e7lc_205:not(#\9):focus-within, .awsui_root_55fkh_1e7lc_146.awsui_textarea-invalid_55fkh_1e7lc_205:not(#\9):focus {
226
+ .awsui_root_55fkh_587uz_146.awsui_textarea-invalid_55fkh_587uz_205:not(#\9):focus-within, .awsui_root_55fkh_587uz_146.awsui_textarea-invalid_55fkh_587uz_205:not(#\9):focus {
227
227
  padding-inline-start: 0;
228
228
  box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
229
229
  }
230
- .awsui_root_55fkh_1e7lc_146.awsui_textarea-warning_55fkh_1e7lc_230:not(#\9) {
230
+ .awsui_root_55fkh_587uz_146.awsui_textarea-invalid_55fkh_587uz_205.awsui_disabled_55fkh_587uz_197:not(#\9):focus-within, .awsui_root_55fkh_587uz_146.awsui_textarea-invalid_55fkh_587uz_205.awsui_disabled_55fkh_587uz_197:not(#\9):focus {
231
+ box-shadow: var(--awsui-prompt-input-style-box-shadow-disabled-6b9ypa);
232
+ }
233
+ .awsui_root_55fkh_587uz_146.awsui_textarea-warning_55fkh_587uz_233:not(#\9) {
231
234
  color: var(--awsui-prompt-input-style-color-default-6b9ypa, var(--color-text-status-warning-6meo06, #855900));
232
235
  border-color: var(--awsui-prompt-input-style-border-color-default-6b9ypa, var(--color-text-status-warning-6meo06, #855900));
233
236
  padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
234
237
  border-inline-start-width: var(--border-invalid-width-3xd6e1, 8px);
235
238
  }
236
- .awsui_root_55fkh_1e7lc_146.awsui_textarea-warning_55fkh_1e7lc_230:not(#\9):focus {
239
+ .awsui_root_55fkh_587uz_146.awsui_textarea-warning_55fkh_587uz_233:not(#\9):focus {
237
240
  box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
238
241
  }
239
- .awsui_root_55fkh_1e7lc_146.awsui_textarea-warning_55fkh_1e7lc_230:not(#\9) {
242
+ .awsui_root_55fkh_587uz_146.awsui_textarea-warning_55fkh_587uz_233:not(#\9) {
240
243
  padding-inline-start: 0;
241
244
  }
242
- .awsui_root_55fkh_1e7lc_146.awsui_textarea-warning_55fkh_1e7lc_230:not(#\9):focus-within, .awsui_root_55fkh_1e7lc_146.awsui_textarea-warning_55fkh_1e7lc_230:not(#\9):focus {
245
+ .awsui_root_55fkh_587uz_146.awsui_textarea-warning_55fkh_587uz_233:not(#\9):focus-within, .awsui_root_55fkh_587uz_146.awsui_textarea-warning_55fkh_587uz_233:not(#\9):focus {
243
246
  color: var(--awsui-prompt-input-style-color-default-6b9ypa, var(--color-text-status-warning-6meo06, #855900));
244
247
  border-color: var(--awsui-prompt-input-style-border-color-default-6b9ypa, var(--color-text-status-warning-6meo06, #855900));
245
248
  padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
246
249
  border-inline-start-width: var(--border-invalid-width-3xd6e1, 8px);
247
250
  }
248
- .awsui_root_55fkh_1e7lc_146.awsui_textarea-warning_55fkh_1e7lc_230:not(#\9):focus-within:focus, .awsui_root_55fkh_1e7lc_146.awsui_textarea-warning_55fkh_1e7lc_230:not(#\9):focus:focus {
251
+ .awsui_root_55fkh_587uz_146.awsui_textarea-warning_55fkh_587uz_233:not(#\9):focus-within:focus, .awsui_root_55fkh_587uz_146.awsui_textarea-warning_55fkh_587uz_233:not(#\9):focus:focus {
249
252
  box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
250
253
  }
251
- .awsui_root_55fkh_1e7lc_146.awsui_textarea-warning_55fkh_1e7lc_230:not(#\9):focus-within, .awsui_root_55fkh_1e7lc_146.awsui_textarea-warning_55fkh_1e7lc_230:not(#\9):focus {
254
+ .awsui_root_55fkh_587uz_146.awsui_textarea-warning_55fkh_587uz_233:not(#\9):focus-within, .awsui_root_55fkh_587uz_146.awsui_textarea-warning_55fkh_587uz_233:not(#\9):focus {
252
255
  padding-inline-start: 0;
253
256
  box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
254
257
  }
255
- .awsui_root_55fkh_1e7lc_146:not(#\9):focus-within, .awsui_root_55fkh_1e7lc_146:not(#\9):focus {
258
+ .awsui_root_55fkh_587uz_146.awsui_textarea-warning_55fkh_587uz_233.awsui_disabled_55fkh_587uz_197:not(#\9):focus-within, .awsui_root_55fkh_587uz_146.awsui_textarea-warning_55fkh_587uz_233.awsui_disabled_55fkh_587uz_197:not(#\9):focus {
259
+ box-shadow: var(--awsui-prompt-input-style-box-shadow-disabled-6b9ypa);
260
+ }
261
+ .awsui_root_55fkh_587uz_146:not(#\9):focus-within:not(.awsui_textarea-invalid_55fkh_587uz_205):not(.awsui_textarea-warning_55fkh_587uz_233), .awsui_root_55fkh_587uz_146:not(#\9):focus:not(.awsui_textarea-invalid_55fkh_587uz_205):not(.awsui_textarea-warning_55fkh_587uz_233) {
256
262
  outline: 2px dotted transparent;
257
263
  border-block: var(--border-width-field-2xc78x, 1px) solid var(--awsui-prompt-input-style-border-color-focus-6b9ypa, var(--color-border-input-focused-4z0pgn, #006ce0));
258
264
  border-inline: var(--border-width-field-2xc78x, 1px) solid var(--awsui-prompt-input-style-border-color-focus-6b9ypa, var(--color-border-input-focused-4z0pgn, #006ce0));
@@ -263,8 +269,16 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
263
269
  box-shadow: var(--awsui-prompt-input-style-box-shadow-focus-6b9ypa, 0 0 0 var(--border-control-focus-ring-shadow-spread-9mjajk, 1px) var(--color-border-item-focused-uk47pl, #006ce0));
264
270
  background-color: var(--awsui-prompt-input-style-background-focus-6b9ypa, var(--color-background-input-default-ifz5bb, #ffffff));
265
271
  }
272
+ .awsui_root_55fkh_587uz_146.awsui_disabled_55fkh_587uz_197:not(#\9):focus-within:not(.awsui_textarea-invalid_55fkh_587uz_205):not(.awsui_textarea-warning_55fkh_587uz_233), .awsui_root_55fkh_587uz_146.awsui_disabled_55fkh_587uz_197:not(#\9):focus:not(.awsui_textarea-invalid_55fkh_587uz_205):not(.awsui_textarea-warning_55fkh_587uz_233) {
273
+ background-color: var(--awsui-prompt-input-style-background-disabled-6b9ypa, var(--color-background-input-disabled-dihaja, #ebebf0));
274
+ border-block: var(--border-width-field-2xc78x, 1px) solid var(--awsui-prompt-input-style-border-color-disabled-6b9ypa, var(--color-border-input-disabled-zgnzvk, #ebebf0));
275
+ border-inline: var(--border-width-field-2xc78x, 1px) solid var(--awsui-prompt-input-style-border-color-disabled-6b9ypa, var(--color-border-input-disabled-zgnzvk, #ebebf0));
276
+ color: var(--awsui-prompt-input-style-color-disabled-6b9ypa, var(--color-text-input-disabled-wh1f3y, #b4b4bb));
277
+ cursor: default;
278
+ box-shadow: var(--awsui-prompt-input-style-box-shadow-disabled-6b9ypa);
279
+ }
266
280
 
267
- .awsui_textarea_55fkh_1e7lc_191:not(#\9) {
281
+ .awsui_textarea_55fkh_587uz_191:not(#\9) {
268
282
  border-collapse: separate;
269
283
  border-spacing: 0;
270
284
  box-sizing: border-box;
@@ -313,55 +327,95 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
313
327
  box-sizing: border-box;
314
328
  border: 0;
315
329
  }
316
- .awsui_textarea_55fkh_1e7lc_191:not(#\9)::placeholder {
330
+ .awsui_textarea_55fkh_587uz_191.awsui_placeholder-visible_55fkh_587uz_330:not(#\9)::before {
331
+ content: attr(data-placeholder);
317
332
  color: var(--awsui-prompt-input-style-placeholder-color-6b9ypa, var(--color-text-input-placeholder-dclg8u, #656871));
318
333
  font-size: var(--awsui-prompt-input-style-placeholder-font-size-6b9ypa);
319
334
  font-style: var(--awsui-prompt-input-style-placeholder-font-style-6b9ypa, italic);
320
335
  font-weight: var(--awsui-prompt-input-style-placeholder-font-weight-6b9ypa);
321
336
  opacity: 1;
337
+ pointer-events: none;
338
+ position: absolute;
339
+ inset-block-start: var(--space-scaled-xxs-pfm1nx, 4px);
340
+ inset-inline-start: var(--space-field-horizontal-0aq2ch, 12px);
322
341
  }
323
- .awsui_textarea_55fkh_1e7lc_191:not(#\9):hover {
342
+ .awsui_textarea_55fkh_587uz_191:not(#\9):hover {
324
343
  color: var(--awsui-prompt-input-style-color-hover-6b9ypa, var(--awsui-prompt-input-style-color-default-6b9ypa, var(--color-text-body-default-vvtq8u, #0f141a)));
325
344
  }
326
- .awsui_textarea_55fkh_1e7lc_191:not(#\9):focus {
345
+ .awsui_textarea_55fkh_587uz_191:not(#\9):focus {
327
346
  outline: none;
328
347
  color: var(--awsui-prompt-input-style-color-focus-6b9ypa, var(--awsui-prompt-input-style-color-default-6b9ypa, var(--color-text-body-default-vvtq8u, #0f141a)));
329
348
  }
330
- .awsui_textarea_55fkh_1e7lc_191:not(#\9):invalid {
349
+ .awsui_textarea_55fkh_587uz_191:not(#\9):invalid {
331
350
  box-shadow: none;
332
351
  }
333
- .awsui_textarea_55fkh_1e7lc_191.awsui_invalid_55fkh_1e7lc_333:not(#\9), .awsui_textarea_55fkh_1e7lc_191.awsui_warning_55fkh_1e7lc_333:not(#\9) {
352
+ .awsui_textarea_55fkh_587uz_191:not(#\9)::placeholder {
353
+ color: var(--awsui-prompt-input-style-placeholder-color-6b9ypa, var(--color-text-input-placeholder-dclg8u, #656871));
354
+ font-size: var(--awsui-prompt-input-style-placeholder-font-size-6b9ypa);
355
+ font-style: var(--awsui-prompt-input-style-placeholder-font-style-6b9ypa, italic);
356
+ font-weight: var(--awsui-prompt-input-style-placeholder-font-weight-6b9ypa);
357
+ opacity: 1;
358
+ }
359
+ .awsui_textarea_55fkh_587uz_191.awsui_invalid_55fkh_587uz_359:not(#\9), .awsui_textarea_55fkh_587uz_191.awsui_warning_55fkh_587uz_359:not(#\9) {
334
360
  padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
335
361
  }
336
- .awsui_textarea_55fkh_1e7lc_191:not(#\9):disabled {
362
+ .awsui_textarea_55fkh_587uz_191:not(#\9):disabled, .awsui_textarea_55fkh_587uz_191.awsui_textarea-disabled_55fkh_587uz_362:not(#\9) {
337
363
  color: var(--awsui-prompt-input-style-color-disabled-6b9ypa, var(--color-text-input-disabled-wh1f3y, #b4b4bb));
338
364
  cursor: default;
365
+ overflow-y: hidden;
339
366
  }
340
- .awsui_textarea_55fkh_1e7lc_191:not(#\9):disabled::placeholder {
367
+ .awsui_textarea_55fkh_587uz_191:not(#\9):disabled::placeholder, .awsui_textarea_55fkh_587uz_191.awsui_textarea-disabled_55fkh_587uz_362:not(#\9)::placeholder {
341
368
  color: var(--color-text-input-placeholder-disabled-wg87og, #b4b4bb);
342
369
  opacity: 1;
343
370
  }
344
- .awsui_textarea-readonly_55fkh_1e7lc_191:not(#\9) {
371
+ .awsui_textarea-readonly_55fkh_587uz_191:not(#\9) {
345
372
  color: var(--awsui-prompt-input-style-color-readonly-6b9ypa, var(--awsui-prompt-input-style-color-default-6b9ypa, var(--color-text-body-default-vvtq8u, #0f141a)));
346
373
  }
347
- .awsui_textarea-wrapper_55fkh_1e7lc_347:not(#\9) {
374
+ .awsui_textarea_55fkh_587uz_191.awsui_textarea-disabled_55fkh_587uz_362.awsui_placeholder-visible_55fkh_587uz_330:not(#\9)::before {
375
+ color: var(--color-text-input-placeholder-disabled-wg87og, #b4b4bb);
376
+ opacity: 1;
377
+ pointer-events: none;
378
+ }
379
+ .awsui_textarea_55fkh_587uz_191.awsui_placeholder-visible_55fkh_587uz_330:not(#\9)::before {
380
+ color: var(--awsui-prompt-input-style-placeholder-color-6b9ypa, var(--color-text-input-placeholder-dclg8u, #656871));
381
+ font-size: var(--awsui-prompt-input-style-placeholder-font-size-6b9ypa);
382
+ font-style: var(--awsui-prompt-input-style-placeholder-font-style-6b9ypa, italic);
383
+ font-weight: var(--awsui-prompt-input-style-placeholder-font-weight-6b9ypa);
384
+ opacity: 1;
385
+ pointer-events: none;
386
+ }
387
+ .awsui_textarea-wrapper_55fkh_587uz_387:not(#\9) {
348
388
  display: flex;
389
+ position: relative;
390
+ }
391
+
392
+ .awsui_editable-wrapper_55fkh_587uz_392:not(#\9) {
393
+ flex: 1;
394
+ min-inline-size: 0;
395
+ position: relative;
349
396
  }
350
397
 
351
- .awsui_primary-action_55fkh_1e7lc_351:not(#\9) {
398
+ .awsui_editable-element_55fkh_587uz_398:not(#\9) {
399
+ word-wrap: break-word;
400
+ overflow-wrap: break-word;
401
+ overflow-y: auto;
402
+ overflow-x: hidden;
403
+ }
404
+
405
+ .awsui_primary-action_55fkh_587uz_405:not(#\9) {
352
406
  align-self: flex-end;
353
407
  flex-shrink: 0;
354
408
  padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) / 2);
355
409
  }
356
- .awsui_textarea-wrapper_55fkh_1e7lc_347 > .awsui_primary-action_55fkh_1e7lc_351:not(#\9) {
410
+ .awsui_textarea-wrapper_55fkh_587uz_387 > .awsui_primary-action_55fkh_587uz_405:not(#\9) {
357
411
  padding-inline-end: calc(var(--space-field-horizontal-0aq2ch, 12px) / 2);
358
412
  }
359
- .awsui_textarea-wrapper_55fkh_1e7lc_347 > .awsui_primary-action_55fkh_1e7lc_351 > .awsui_action-button_55fkh_1e7lc_359:not(#\9) {
413
+ .awsui_textarea-wrapper_55fkh_587uz_387 > .awsui_primary-action_55fkh_587uz_405 > .awsui_action-button_55fkh_587uz_413:not(#\9) {
360
414
  margin-block-end: var(--space-scaled-xxxs-oo06c7, 2px);
361
415
  padding: 0;
362
416
  }
363
417
 
364
- .awsui_secondary-content_55fkh_1e7lc_364:not(#\9) {
418
+ .awsui_secondary-content_55fkh_587uz_418:not(#\9) {
365
419
  border-collapse: separate;
366
420
  border-spacing: 0;
367
421
  box-sizing: border-box;
@@ -396,17 +450,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
396
450
  border-end-start-radius: var(--border-radius-input-7q0str, 8px);
397
451
  border-end-end-radius: var(--border-radius-input-7q0str, 8px);
398
452
  }
399
- .awsui_secondary-content_55fkh_1e7lc_364.awsui_with-paddings_55fkh_1e7lc_399:not(#\9) {
453
+ .awsui_secondary-content_55fkh_587uz_418.awsui_with-paddings_55fkh_587uz_453:not(#\9) {
400
454
  padding-block-start: var(--space-scaled-s-8ozaad, 12px);
401
455
  padding-block-end: var(--space-scaled-s-8ozaad, 12px);
402
456
  padding-inline-start: var(--space-field-horizontal-0aq2ch, 12px);
403
457
  padding-inline-end: var(--space-field-horizontal-0aq2ch, 12px);
404
458
  }
405
- .awsui_secondary-content_55fkh_1e7lc_364.awsui_with-paddings_55fkh_1e7lc_399.awsui_invalid_55fkh_1e7lc_333:not(#\9), .awsui_secondary-content_55fkh_1e7lc_364.awsui_with-paddings_55fkh_1e7lc_399.awsui_warning_55fkh_1e7lc_333:not(#\9) {
459
+ .awsui_secondary-content_55fkh_587uz_418.awsui_with-paddings_55fkh_587uz_453.awsui_invalid_55fkh_587uz_359:not(#\9), .awsui_secondary-content_55fkh_587uz_418.awsui_with-paddings_55fkh_587uz_453.awsui_warning_55fkh_587uz_359:not(#\9) {
406
460
  padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
407
461
  }
408
462
 
409
- .awsui_action-stripe_55fkh_1e7lc_409:not(#\9) {
463
+ .awsui_action-stripe_55fkh_587uz_463:not(#\9) {
410
464
  border-collapse: separate;
411
465
  border-spacing: 0;
412
466
  box-sizing: border-box;
@@ -445,7 +499,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
445
499
  align-items: flex-end;
446
500
  }
447
501
 
448
- .awsui_secondary-actions_55fkh_1e7lc_448:not(#\9) {
502
+ .awsui_secondary-actions_55fkh_587uz_502:not(#\9) {
449
503
  flex-basis: max-content;
450
504
  flex-grow: 0;
451
505
  flex-shrink: 1;
@@ -455,20 +509,79 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
455
509
  overflow: hidden;
456
510
  padding-inline-end: var(--space-scaled-xxs-pfm1nx, 4px);
457
511
  }
458
- .awsui_secondary-actions_55fkh_1e7lc_448.awsui_with-paddings_55fkh_1e7lc_399:not(#\9) {
512
+ .awsui_secondary-actions_55fkh_587uz_502.awsui_with-paddings_55fkh_587uz_453:not(#\9) {
459
513
  padding-inline: var(--space-field-horizontal-0aq2ch, 12px);
460
514
  padding-block-start: var(--space-scaled-s-8ozaad, 12px);
461
515
  padding-block-end: var(--space-scaled-xxs-pfm1nx, 4px);
462
516
  }
463
- .awsui_secondary-actions_55fkh_1e7lc_448.awsui_with-paddings_55fkh_1e7lc_399.awsui_invalid_55fkh_1e7lc_333:not(#\9), .awsui_secondary-actions_55fkh_1e7lc_448.awsui_with-paddings_55fkh_1e7lc_399.awsui_warning_55fkh_1e7lc_333:not(#\9) {
517
+ .awsui_secondary-actions_55fkh_587uz_502.awsui_with-paddings_55fkh_587uz_453.awsui_invalid_55fkh_587uz_359:not(#\9), .awsui_secondary-actions_55fkh_587uz_502.awsui_with-paddings_55fkh_587uz_453.awsui_warning_55fkh_587uz_359:not(#\9) {
464
518
  padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
465
519
  }
466
- .awsui_secondary-actions_55fkh_1e7lc_448.awsui_with-paddings-and-actions_55fkh_1e7lc_466:not(#\9) {
520
+ .awsui_secondary-actions_55fkh_587uz_502.awsui_with-paddings-and-actions_55fkh_587uz_520:not(#\9) {
467
521
  padding-inline-end: 0;
468
522
  }
469
523
 
470
- .awsui_buffer_55fkh_1e7lc_470:not(#\9) {
524
+ .awsui_buffer_55fkh_587uz_524:not(#\9) {
471
525
  flex: 1;
472
526
  align-self: stretch;
473
527
  cursor: text;
528
+ }
529
+
530
+ .awsui_token-container_55fkh_587uz_530:not(#\9) {
531
+ display: inline-block;
532
+ user-select: all;
533
+ -webkit-user-select: all;
534
+ -moz-user-select: all;
535
+ padding-inline: var(--space-xxxs-pajhad, 2px);
536
+ }
537
+
538
+ .awsui_reference-wrapper_55fkh_587uz_538:not(#\9) {
539
+ unicode-bidi: isolate;
540
+ }
541
+
542
+ .awsui_trigger-base_55fkh_587uz_542:not(#\9) {
543
+ unicode-bidi: isolate;
544
+ }
545
+
546
+ .awsui_trigger-token_55fkh_587uz_546:not(#\9) {
547
+ -webkit-text-decoration: underline dashed currentColor;
548
+ text-decoration: underline dashed currentColor;
549
+ text-decoration-thickness: var(--border-divider-list-width-tdfx1x, 1px);
550
+ text-underline-offset: var(--space-xxxs-pajhad, 2px);
551
+ }
552
+
553
+ .awsui_paragraph_55fkh_587uz_552:not(#\9) {
554
+ border-collapse: separate;
555
+ border-spacing: 0;
556
+ box-sizing: border-box;
557
+ caption-side: top;
558
+ cursor: auto;
559
+ direction: inherit;
560
+ empty-cells: show;
561
+ font-family: serif;
562
+ font-style: normal;
563
+ font-variant: normal;
564
+ font-stretch: normal;
565
+ hyphens: none;
566
+ letter-spacing: normal;
567
+ list-style: disc outside none;
568
+ tab-size: 8;
569
+ text-align: start;
570
+ text-indent: 0;
571
+ text-shadow: none;
572
+ text-transform: none;
573
+ visibility: visible;
574
+ white-space: normal;
575
+ word-spacing: normal;
576
+ font-size: var(--font-size-body-m-a7nh2n, 14px);
577
+ line-height: var(--line-height-body-m-2mh3ke, 20px);
578
+ color: var(--color-text-body-default-vvtq8u, #0f141a);
579
+ font-weight: 400;
580
+ font-family: var(--font-family-base-gmnpzl, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
581
+ -webkit-font-smoothing: auto;
582
+ -moz-osx-font-smoothing: auto;
583
+ margin: 0;
584
+ padding: 0;
585
+ white-space: pre-wrap;
586
+ color: inherit;
474
587
  }
@@ -2,22 +2,31 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "root": "awsui_root_55fkh_1e7lc_146",
6
- "textarea-readonly": "awsui_textarea-readonly_55fkh_1e7lc_191",
7
- "disabled": "awsui_disabled_55fkh_1e7lc_197",
8
- "textarea-invalid": "awsui_textarea-invalid_55fkh_1e7lc_205",
9
- "textarea-warning": "awsui_textarea-warning_55fkh_1e7lc_230",
10
- "textarea": "awsui_textarea_55fkh_1e7lc_191",
11
- "invalid": "awsui_invalid_55fkh_1e7lc_333",
12
- "warning": "awsui_warning_55fkh_1e7lc_333",
13
- "textarea-wrapper": "awsui_textarea-wrapper_55fkh_1e7lc_347",
14
- "primary-action": "awsui_primary-action_55fkh_1e7lc_351",
15
- "action-button": "awsui_action-button_55fkh_1e7lc_359",
16
- "secondary-content": "awsui_secondary-content_55fkh_1e7lc_364",
17
- "with-paddings": "awsui_with-paddings_55fkh_1e7lc_399",
18
- "action-stripe": "awsui_action-stripe_55fkh_1e7lc_409",
19
- "secondary-actions": "awsui_secondary-actions_55fkh_1e7lc_448",
20
- "with-paddings-and-actions": "awsui_with-paddings-and-actions_55fkh_1e7lc_466",
21
- "buffer": "awsui_buffer_55fkh_1e7lc_470"
5
+ "root": "awsui_root_55fkh_587uz_146",
6
+ "textarea-readonly": "awsui_textarea-readonly_55fkh_587uz_191",
7
+ "disabled": "awsui_disabled_55fkh_587uz_197",
8
+ "textarea-invalid": "awsui_textarea-invalid_55fkh_587uz_205",
9
+ "textarea-warning": "awsui_textarea-warning_55fkh_587uz_233",
10
+ "textarea": "awsui_textarea_55fkh_587uz_191",
11
+ "placeholder-visible": "awsui_placeholder-visible_55fkh_587uz_330",
12
+ "invalid": "awsui_invalid_55fkh_587uz_359",
13
+ "warning": "awsui_warning_55fkh_587uz_359",
14
+ "textarea-disabled": "awsui_textarea-disabled_55fkh_587uz_362",
15
+ "textarea-wrapper": "awsui_textarea-wrapper_55fkh_587uz_387",
16
+ "editable-wrapper": "awsui_editable-wrapper_55fkh_587uz_392",
17
+ "editable-element": "awsui_editable-element_55fkh_587uz_398",
18
+ "primary-action": "awsui_primary-action_55fkh_587uz_405",
19
+ "action-button": "awsui_action-button_55fkh_587uz_413",
20
+ "secondary-content": "awsui_secondary-content_55fkh_587uz_418",
21
+ "with-paddings": "awsui_with-paddings_55fkh_587uz_453",
22
+ "action-stripe": "awsui_action-stripe_55fkh_587uz_463",
23
+ "secondary-actions": "awsui_secondary-actions_55fkh_587uz_502",
24
+ "with-paddings-and-actions": "awsui_with-paddings-and-actions_55fkh_587uz_520",
25
+ "buffer": "awsui_buffer_55fkh_587uz_524",
26
+ "token-container": "awsui_token-container_55fkh_587uz_530",
27
+ "reference-wrapper": "awsui_reference-wrapper_55fkh_587uz_538",
28
+ "trigger-base": "awsui_trigger-base_55fkh_587uz_542",
29
+ "trigger-token": "awsui_trigger-token_55fkh_587uz_546",
30
+ "paragraph": "awsui_paragraph_55fkh_587uz_552"
22
31
  };
23
32
 
@@ -1,11 +1,12 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_nr3gs_151v0_5",
5
- "textarea": "awsui_textarea_nr3gs_151v0_9",
6
- "action-button": "awsui_action-button_nr3gs_151v0_13",
7
- "primary-action": "awsui_primary-action_nr3gs_151v0_17",
8
- "secondary-actions": "awsui_secondary-actions_nr3gs_151v0_21",
9
- "secondary-content": "awsui_secondary-content_nr3gs_151v0_25"
4
+ "root": "awsui_root_nr3gs_kgbet_5",
5
+ "textarea": "awsui_textarea_nr3gs_kgbet_9",
6
+ "content-editable": "awsui_content-editable_nr3gs_kgbet_13",
7
+ "action-button": "awsui_action-button_nr3gs_kgbet_17",
8
+ "primary-action": "awsui_primary-action_nr3gs_kgbet_21",
9
+ "secondary-actions": "awsui_secondary-actions_nr3gs_kgbet_25",
10
+ "secondary-content": "awsui_secondary-content_nr3gs_kgbet_29"
10
11
  };
11
12
 
@@ -2,26 +2,30 @@
2
2
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  SPDX-License-Identifier: Apache-2.0
4
4
  */
5
- .awsui_root_nr3gs_151v0_5:not(#\9) {
5
+ .awsui_root_nr3gs_kgbet_5:not(#\9) {
6
6
  /* used in test-utils */
7
7
  }
8
8
 
9
- .awsui_textarea_nr3gs_151v0_9:not(#\9) {
9
+ .awsui_textarea_nr3gs_kgbet_9:not(#\9) {
10
10
  /* used in test-utils */
11
11
  }
12
12
 
13
- .awsui_action-button_nr3gs_151v0_13:not(#\9) {
13
+ .awsui_content-editable_nr3gs_kgbet_13:not(#\9) {
14
+ /* used in test-utils - contentEditable element for token mode */
15
+ }
16
+
17
+ .awsui_action-button_nr3gs_kgbet_17:not(#\9) {
14
18
  /* used in test-utils */
15
19
  }
16
20
 
17
- .awsui_primary-action_nr3gs_151v0_17:not(#\9) {
21
+ .awsui_primary-action_nr3gs_kgbet_21:not(#\9) {
18
22
  /* used in test-utils */
19
23
  }
20
24
 
21
- .awsui_secondary-actions_nr3gs_151v0_21:not(#\9) {
25
+ .awsui_secondary-actions_nr3gs_kgbet_25:not(#\9) {
22
26
  /* used in test-utils */
23
27
  }
24
28
 
25
- .awsui_secondary-content_nr3gs_151v0_25:not(#\9) {
29
+ .awsui_secondary-content_nr3gs_kgbet_29:not(#\9) {
26
30
  /* used in test-utils */
27
31
  }
@@ -2,11 +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
- "root": "awsui_root_nr3gs_151v0_5",
6
- "textarea": "awsui_textarea_nr3gs_151v0_9",
7
- "action-button": "awsui_action-button_nr3gs_151v0_13",
8
- "primary-action": "awsui_primary-action_nr3gs_151v0_17",
9
- "secondary-actions": "awsui_secondary-actions_nr3gs_151v0_21",
10
- "secondary-content": "awsui_secondary-content_nr3gs_151v0_25"
5
+ "root": "awsui_root_nr3gs_kgbet_5",
6
+ "textarea": "awsui_textarea_nr3gs_kgbet_9",
7
+ "content-editable": "awsui_content-editable_nr3gs_kgbet_13",
8
+ "action-button": "awsui_action-button_nr3gs_kgbet_17",
9
+ "primary-action": "awsui_primary-action_nr3gs_kgbet_21",
10
+ "secondary-actions": "awsui_secondary-actions_nr3gs_kgbet_25",
11
+ "secondary-content": "awsui_secondary-content_nr3gs_kgbet_29"
11
12
  };
12
13
 
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import { CaretController } from '../core/caret-controller';
3
+ import { PromptInputProps } from '../interfaces';
4
+ export interface ShortcutsState {
5
+ /** The ID of the trigger the caret is currently in, or null if not in any trigger. */
6
+ caretInTrigger: string | null;
7
+ setCaretInTrigger: (triggerId: string | null) => void;
8
+ /** DOM elements for trigger spans, keyed by trigger ID. Used for dropdown positioning and render reuse. */
9
+ triggerElementsRef: React.MutableRefObject<Map<string, HTMLElement>>;
10
+ /** Trigger IDs cancelled by onTriggerDetected — prevents menu opening and re-detection. */
11
+ cancelledTriggerIds: React.MutableRefObject<Set<string>>;
12
+ /** Set to the trigger ID that was just closed. checkMenuState skips reopening
13
+ * this specific trigger on the next call, then clears the value. */
14
+ menuJustClosed: React.MutableRefObject<string | null>;
15
+ /** Tracks the last token array emitted by the component. Used to distinguish
16
+ * user-initiated changes from external (parent) updates. */
17
+ lastEmittedTokensRef: React.MutableRefObject<readonly PromptInputProps.InputToken[] | undefined>;
18
+ markTokensAsSent: (tokens: readonly PromptInputProps.InputToken[]) => void;
19
+ }
20
+ export declare function useShortcutsState(): ShortcutsState;
21
+ interface EffectsConfig {
22
+ tokens?: readonly PromptInputProps.InputToken[];
23
+ editableElementRef: React.RefObject<HTMLDivElement>;
24
+ state: ShortcutsState;
25
+ activeTriggerToken: PromptInputProps.TriggerToken | null;
26
+ caretController: React.RefObject<CaretController | null>;
27
+ }
28
+ /**
29
+ * Manages trigger menu state by listening for selection changes within the
30
+ * editable element. Determines which trigger (if any) the caret is inside
31
+ * and updates `caretInTrigger` accordingly.
32
+ *
33
+ * Supports menu suppression (via Escape) which is cleared on the next user
34
+ * interaction that changes the selection.
35
+ */
36
+ export declare function useShortcutsEffects(config: EffectsConfig): void;
37
+ export {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-shortcuts.d.ts","sourceRoot":"","sources":["../../../../src/prompt-input/tokens/use-shortcuts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,OAAO,EAAE,eAAe,EAAqB,MAAM,0BAA0B,CAAC;AAG9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,WAAW,cAAc;IAC7B,sFAAsF;IACtF,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACtD,2GAA2G;IAC3G,kBAAkB,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC;IACrE,2FAA2F;IAC3F,mBAAmB,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IACzD;yEACqE;IACrE,cAAc,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACtD;iEAC6D;IAC7D,oBAAoB,EAAE,KAAK,CAAC,gBAAgB,CAAC,SAAS,gBAAgB,CAAC,UAAU,EAAE,GAAG,SAAS,CAAC,CAAC;IACjG,gBAAgB,EAAE,CAAC,MAAM,EAAE,SAAS,gBAAgB,CAAC,UAAU,EAAE,KAAK,IAAI,CAAC;CAC5E;AAED,wBAAgB,iBAAiB,IAAI,cAAc,CAoBlD;AAED,UAAU,aAAa;IACrB,MAAM,CAAC,EAAE,SAAS,gBAAgB,CAAC,UAAU,EAAE,CAAC;IAChD,kBAAkB,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACpD,KAAK,EAAE,cAAc,CAAC;IACtB,kBAAkB,EAAE,gBAAgB,CAAC,YAAY,GAAG,IAAI,CAAC;IACzD,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;CAC1D;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,aAAa,QAkExD"}
@@ -0,0 +1,89 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import { useEffect, useRef, useState } from 'react';
4
+ import { useStableCallback } from '@cloudscape-design/component-toolkit/internal';
5
+ import { getOwnerSelection } from '../core/caret-controller';
6
+ import { normalizeCaretIntoTrigger } from '../core/dom-utils';
7
+ import { isTriggerToken } from '../core/type-guards';
8
+ export function useShortcutsState() {
9
+ const [caretInTrigger, setCaretInTrigger] = useState(null);
10
+ const triggerElementsRef = useRef(new Map());
11
+ const cancelledTriggerIds = useRef(new Set());
12
+ const menuJustClosed = useRef(null);
13
+ const lastEmittedTokensRef = useRef(undefined);
14
+ const markTokensAsSent = useStableCallback((tokens) => {
15
+ lastEmittedTokensRef.current = tokens;
16
+ });
17
+ return {
18
+ caretInTrigger,
19
+ setCaretInTrigger,
20
+ triggerElementsRef,
21
+ cancelledTriggerIds,
22
+ menuJustClosed,
23
+ lastEmittedTokensRef,
24
+ markTokensAsSent,
25
+ };
26
+ }
27
+ /**
28
+ * Manages trigger menu state by listening for selection changes within the
29
+ * editable element. Determines which trigger (if any) the caret is inside
30
+ * and updates `caretInTrigger` accordingly.
31
+ *
32
+ * Supports menu suppression (via Escape) which is cleared on the next user
33
+ * interaction that changes the selection.
34
+ */
35
+ export function useShortcutsEffects(config) {
36
+ const { activeTriggerToken, editableElementRef, state, tokens, caretController } = config;
37
+ useEffect(() => {
38
+ var _a;
39
+ const hasTriggers = tokens === null || tokens === void 0 ? void 0 : tokens.some(isTriggerToken);
40
+ if (!hasTriggers || !editableElementRef.current) {
41
+ state.setCaretInTrigger(null);
42
+ return;
43
+ }
44
+ const checkMenuState = () => {
45
+ const ctrl = caretController.current;
46
+ if (!editableElementRef.current || !ctrl) {
47
+ return;
48
+ }
49
+ // Only react to selection changes within this input
50
+ const sel = getOwnerSelection(editableElementRef.current);
51
+ if (!(sel === null || sel === void 0 ? void 0 : sel.rangeCount) || !editableElementRef.current.contains(sel.getRangeAt(0).startContainer)) {
52
+ return;
53
+ }
54
+ normalizeCaretIntoTrigger(editableElementRef.current, state.cancelledTriggerIds.current);
55
+ const activeTrigger = ctrl.findActiveTrigger();
56
+ // The caret can land inside a cancelled trigger's DOM element (e.g. via
57
+ // arrow keys). Without this guard, setCaretInTrigger would reopen the menu.
58
+ const activeTriggerId = activeTrigger && !state.cancelledTriggerIds.current.has(activeTrigger.id) ? activeTrigger.id : null;
59
+ // Skip reopening the trigger that was just closed via Escape.
60
+ // Clears after one check so subsequent actions can reopen it.
61
+ if (state.menuJustClosed.current) {
62
+ const closedId = state.menuJustClosed.current;
63
+ state.menuJustClosed.current = null;
64
+ if (activeTriggerId === closedId) {
65
+ return;
66
+ }
67
+ }
68
+ if (activeTriggerId !== state.caretInTrigger) {
69
+ state.setCaretInTrigger(activeTriggerId);
70
+ }
71
+ };
72
+ const onKeyUp = (e) => {
73
+ if (e.key === 'Escape') {
74
+ return;
75
+ }
76
+ checkMenuState();
77
+ };
78
+ const ownerDoc = (_a = editableElementRef.current.ownerDocument) !== null && _a !== void 0 ? _a : document;
79
+ const element = editableElementRef.current;
80
+ checkMenuState();
81
+ ownerDoc.addEventListener('selectionchange', checkMenuState);
82
+ element.addEventListener('keyup', onKeyUp);
83
+ return () => {
84
+ ownerDoc.removeEventListener('selectionchange', checkMenuState);
85
+ element.removeEventListener('keyup', onKeyUp);
86
+ };
87
+ }, [tokens, state, editableElementRef, caretController, activeTriggerToken]);
88
+ }
89
+ //# sourceMappingURL=use-shortcuts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-shortcuts.js","sourceRoot":"","sources":["../../../../src/prompt-input/tokens/use-shortcuts.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useEffect, useRef, useState } from 'react';\n\nimport { useStableCallback } from '@cloudscape-design/component-toolkit/internal';\n\nimport { CaretController, getOwnerSelection } from '../core/caret-controller';\nimport { normalizeCaretIntoTrigger } from '../core/dom-utils';\nimport { isTriggerToken } from '../core/type-guards';\nimport { PromptInputProps } from '../interfaces';\n\nexport interface ShortcutsState {\n /** The ID of the trigger the caret is currently in, or null if not in any trigger. */\n caretInTrigger: string | null;\n setCaretInTrigger: (triggerId: string | null) => void;\n /** DOM elements for trigger spans, keyed by trigger ID. Used for dropdown positioning and render reuse. */\n triggerElementsRef: React.MutableRefObject<Map<string, HTMLElement>>;\n /** Trigger IDs cancelled by onTriggerDetected — prevents menu opening and re-detection. */\n cancelledTriggerIds: React.MutableRefObject<Set<string>>;\n /** Set to the trigger ID that was just closed. checkMenuState skips reopening\n * this specific trigger on the next call, then clears the value. */\n menuJustClosed: React.MutableRefObject<string | null>;\n /** Tracks the last token array emitted by the component. Used to distinguish\n * user-initiated changes from external (parent) updates. */\n lastEmittedTokensRef: React.MutableRefObject<readonly PromptInputProps.InputToken[] | undefined>;\n markTokensAsSent: (tokens: readonly PromptInputProps.InputToken[]) => void;\n}\n\nexport function useShortcutsState(): ShortcutsState {\n const [caretInTrigger, setCaretInTrigger] = useState<string | null>(null);\n const triggerElementsRef = useRef<Map<string, HTMLElement>>(new Map());\n const cancelledTriggerIds = useRef<Set<string>>(new Set());\n const menuJustClosed = useRef<string | null>(null);\n const lastEmittedTokensRef = useRef<readonly PromptInputProps.InputToken[] | undefined>(undefined);\n\n const markTokensAsSent = useStableCallback((tokens: readonly PromptInputProps.InputToken[]) => {\n lastEmittedTokensRef.current = tokens;\n });\n\n return {\n caretInTrigger,\n setCaretInTrigger,\n triggerElementsRef,\n cancelledTriggerIds,\n menuJustClosed,\n lastEmittedTokensRef,\n markTokensAsSent,\n };\n}\n\ninterface EffectsConfig {\n tokens?: readonly PromptInputProps.InputToken[];\n editableElementRef: React.RefObject<HTMLDivElement>;\n state: ShortcutsState;\n activeTriggerToken: PromptInputProps.TriggerToken | null;\n caretController: React.RefObject<CaretController | null>;\n}\n\n/**\n * Manages trigger menu state by listening for selection changes within the\n * editable element. Determines which trigger (if any) the caret is inside\n * and updates `caretInTrigger` accordingly.\n *\n * Supports menu suppression (via Escape) which is cleared on the next user\n * interaction that changes the selection.\n */\nexport function useShortcutsEffects(config: EffectsConfig) {\n const { activeTriggerToken, editableElementRef, state, tokens, caretController } = config;\n\n useEffect(() => {\n const hasTriggers = tokens?.some(isTriggerToken);\n\n if (!hasTriggers || !editableElementRef.current) {\n state.setCaretInTrigger(null);\n return;\n }\n\n const checkMenuState = () => {\n const ctrl = caretController.current;\n if (!editableElementRef.current || !ctrl) {\n return;\n }\n\n // Only react to selection changes within this input\n const sel = getOwnerSelection(editableElementRef.current);\n if (!sel?.rangeCount || !editableElementRef.current.contains(sel.getRangeAt(0).startContainer)) {\n return;\n }\n\n normalizeCaretIntoTrigger(editableElementRef.current, state.cancelledTriggerIds.current);\n\n const activeTrigger = ctrl.findActiveTrigger();\n // The caret can land inside a cancelled trigger's DOM element (e.g. via\n // arrow keys). Without this guard, setCaretInTrigger would reopen the menu.\n const activeTriggerId =\n activeTrigger && !state.cancelledTriggerIds.current.has(activeTrigger.id) ? activeTrigger.id : null;\n\n // Skip reopening the trigger that was just closed via Escape.\n // Clears after one check so subsequent actions can reopen it.\n if (state.menuJustClosed.current) {\n const closedId = state.menuJustClosed.current;\n state.menuJustClosed.current = null;\n if (activeTriggerId === closedId) {\n return;\n }\n }\n\n if (activeTriggerId !== state.caretInTrigger) {\n state.setCaretInTrigger(activeTriggerId);\n }\n };\n\n const onKeyUp = (e: KeyboardEvent) => {\n if (e.key === 'Escape') {\n return;\n }\n checkMenuState();\n };\n\n const ownerDoc = editableElementRef.current.ownerDocument ?? document;\n const element = editableElementRef.current;\n\n checkMenuState();\n\n ownerDoc.addEventListener('selectionchange', checkMenuState);\n element.addEventListener('keyup', onKeyUp);\n\n return () => {\n ownerDoc.removeEventListener('selectionchange', checkMenuState);\n element.removeEventListener('keyup', onKeyUp);\n };\n }, [tokens, state, editableElementRef, caretController, activeTriggerToken]);\n}\n"]}