@cloudscape-design/components-themeable 3.0.1391 → 3.0.1393

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 (213) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/box/visual-accent.scss +0 -24
  3. package/lib/internal/scss/button/constants.scss +15 -0
  4. package/lib/internal/scss/button/styles.scss +21 -1
  5. package/lib/internal/scss/input/styles.scss +104 -203
  6. package/lib/internal/scss/internal/components/autosuggest-input/styles.scss +138 -0
  7. package/lib/internal/scss/internal/components/autosuggest-input/test-classes/styles.scss +19 -0
  8. package/lib/internal/scss/internal/components/button-trigger/styles.scss +20 -1
  9. package/lib/internal/scss/internal/components/control-group/styles.scss +39 -15
  10. package/lib/internal/scss/internal/components/control-group/test-classes/styles.scss +16 -0
  11. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
  12. package/lib/internal/scss/internal/styles/forms/grouped-control.scss +65 -0
  13. package/lib/internal/scss/internal/styles/forms/index.scss +1 -0
  14. package/lib/internal/scss/internal/styles/forms/mixins.scss +41 -43
  15. package/lib/internal/scss/internal/styles/utils/mixins.scss +10 -0
  16. package/lib/internal/scss/segmented-control/styles.scss +1 -0
  17. package/lib/internal/template/autosuggest/i18n-utils.d.ts +12 -0
  18. package/lib/internal/template/autosuggest/i18n-utils.d.ts.map +1 -0
  19. package/lib/internal/template/autosuggest/i18n-utils.js +15 -0
  20. package/lib/internal/template/autosuggest/i18n-utils.js.map +1 -0
  21. package/lib/internal/template/autosuggest/index.d.ts.map +1 -1
  22. package/lib/internal/template/autosuggest/index.js +3 -0
  23. package/lib/internal/template/autosuggest/index.js.map +1 -1
  24. package/lib/internal/template/autosuggest/interfaces.d.ts +94 -1
  25. package/lib/internal/template/autosuggest/interfaces.d.ts.map +1 -1
  26. package/lib/internal/template/autosuggest/interfaces.js.map +1 -1
  27. package/lib/internal/template/autosuggest/internal.d.ts.map +1 -1
  28. package/lib/internal/template/autosuggest/internal.js +21 -12
  29. package/lib/internal/template/autosuggest/internal.js.map +1 -1
  30. package/lib/internal/template/autosuggest/options-controller.d.ts +2 -1
  31. package/lib/internal/template/autosuggest/options-controller.d.ts.map +1 -1
  32. package/lib/internal/template/autosuggest/options-controller.js +3 -6
  33. package/lib/internal/template/autosuggest/options-controller.js.map +1 -1
  34. package/lib/internal/template/box/interfaces.d.ts +4 -1
  35. package/lib/internal/template/box/interfaces.d.ts.map +1 -1
  36. package/lib/internal/template/box/interfaces.js.map +1 -1
  37. package/lib/internal/template/box/styles.css.js +214 -220
  38. package/lib/internal/template/box/styles.scoped.css +259 -289
  39. package/lib/internal/template/box/styles.selectors.js +214 -220
  40. package/lib/internal/template/button/interfaces.d.ts +3 -1
  41. package/lib/internal/template/button/interfaces.d.ts.map +1 -1
  42. package/lib/internal/template/button/interfaces.js.map +1 -1
  43. package/lib/internal/template/button/internal.d.ts +2 -2
  44. package/lib/internal/template/button/internal.d.ts.map +1 -1
  45. package/lib/internal/template/button/internal.js +9 -1
  46. package/lib/internal/template/button/internal.js.map +1 -1
  47. package/lib/internal/template/button/styles.css.js +24 -23
  48. package/lib/internal/template/button/styles.scoped.css +116 -70
  49. package/lib/internal/template/button/styles.selectors.js +24 -23
  50. package/lib/internal/template/button-dropdown/filter.d.ts +1 -1
  51. package/lib/internal/template/button-dropdown/filter.d.ts.map +1 -1
  52. package/lib/internal/template/button-dropdown/interfaces.d.ts +6 -3
  53. package/lib/internal/template/button-dropdown/interfaces.d.ts.map +1 -1
  54. package/lib/internal/template/button-dropdown/interfaces.js.map +1 -1
  55. package/lib/internal/template/button-group/interfaces.d.ts +22 -13
  56. package/lib/internal/template/button-group/interfaces.d.ts.map +1 -1
  57. package/lib/internal/template/button-group/interfaces.js.map +1 -1
  58. package/lib/internal/template/calendar/grid/index.js.map +1 -1
  59. package/lib/internal/template/calendar/interfaces.d.ts +3 -1
  60. package/lib/internal/template/calendar/interfaces.d.ts.map +1 -1
  61. package/lib/internal/template/calendar/interfaces.js.map +1 -1
  62. package/lib/internal/template/copy-to-clipboard/interfaces.d.ts +3 -1
  63. package/lib/internal/template/copy-to-clipboard/interfaces.d.ts.map +1 -1
  64. package/lib/internal/template/copy-to-clipboard/interfaces.js.map +1 -1
  65. package/lib/internal/template/date-range-picker/calendar/grids/grid-cell.d.ts +1 -1
  66. package/lib/internal/template/date-range-picker/calendar/grids/grid-cell.d.ts.map +1 -1
  67. package/lib/internal/template/date-range-picker/calendar/grids/grid-cell.js.map +1 -1
  68. package/lib/internal/template/date-range-picker/interfaces.d.ts +3 -1
  69. package/lib/internal/template/date-range-picker/interfaces.d.ts.map +1 -1
  70. package/lib/internal/template/date-range-picker/interfaces.js.map +1 -1
  71. package/lib/internal/template/drawer/interfaces.d.ts +3 -1
  72. package/lib/internal/template/drawer/interfaces.d.ts.map +1 -1
  73. package/lib/internal/template/drawer/interfaces.js.map +1 -1
  74. package/lib/internal/template/i18n/messages/all.all.js +1 -1
  75. package/lib/internal/template/i18n/messages/all.all.json +1 -1
  76. package/lib/internal/template/i18n/messages/all.de.js +1 -1
  77. package/lib/internal/template/i18n/messages/all.de.json +1 -1
  78. package/lib/internal/template/i18n/messages/all.en-GB.js +1 -1
  79. package/lib/internal/template/i18n/messages/all.en-GB.json +1 -1
  80. package/lib/internal/template/i18n/messages/all.en.js +1 -1
  81. package/lib/internal/template/i18n/messages/all.en.json +1 -1
  82. package/lib/internal/template/i18n/messages/all.es.js +1 -1
  83. package/lib/internal/template/i18n/messages/all.es.json +1 -1
  84. package/lib/internal/template/i18n/messages/all.fr.js +1 -1
  85. package/lib/internal/template/i18n/messages/all.fr.json +1 -1
  86. package/lib/internal/template/i18n/messages/all.id.js +1 -1
  87. package/lib/internal/template/i18n/messages/all.id.json +1 -1
  88. package/lib/internal/template/i18n/messages/all.it.js +1 -1
  89. package/lib/internal/template/i18n/messages/all.it.json +1 -1
  90. package/lib/internal/template/i18n/messages/all.ja.js +1 -1
  91. package/lib/internal/template/i18n/messages/all.ja.json +1 -1
  92. package/lib/internal/template/i18n/messages/all.ko.js +1 -1
  93. package/lib/internal/template/i18n/messages/all.ko.json +1 -1
  94. package/lib/internal/template/i18n/messages/all.pt-BR.js +1 -1
  95. package/lib/internal/template/i18n/messages/all.pt-BR.json +1 -1
  96. package/lib/internal/template/i18n/messages/all.tr.js +1 -1
  97. package/lib/internal/template/i18n/messages/all.tr.json +1 -1
  98. package/lib/internal/template/i18n/messages/all.zh-CN.js +1 -1
  99. package/lib/internal/template/i18n/messages/all.zh-CN.json +1 -1
  100. package/lib/internal/template/i18n/messages/all.zh-TW.js +1 -1
  101. package/lib/internal/template/i18n/messages/all.zh-TW.json +1 -1
  102. package/lib/internal/template/i18n/messages-types.d.ts +13 -0
  103. package/lib/internal/template/i18n/messages-types.d.ts.map +1 -1
  104. package/lib/internal/template/i18n/messages-types.js.map +1 -1
  105. package/lib/internal/template/input/internal.d.ts +1 -0
  106. package/lib/internal/template/input/internal.d.ts.map +1 -1
  107. package/lib/internal/template/input/internal.js +15 -19
  108. package/lib/internal/template/input/internal.js.map +1 -1
  109. package/lib/internal/template/input/styles.css.js +37 -36
  110. package/lib/internal/template/input/styles.scoped.css +180 -243
  111. package/lib/internal/template/input/styles.selectors.js +37 -36
  112. package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
  113. package/lib/internal/template/internal/base-theme/styles.scoped.css +0 -61
  114. package/lib/internal/template/internal/components/autosuggest-input/index.d.ts +5 -0
  115. package/lib/internal/template/internal/components/autosuggest-input/index.d.ts.map +1 -1
  116. package/lib/internal/template/internal/components/autosuggest-input/index.js +158 -12
  117. package/lib/internal/template/internal/components/autosuggest-input/index.js.map +1 -1
  118. package/lib/internal/template/internal/components/autosuggest-input/inline-tokens.d.ts +21 -0
  119. package/lib/internal/template/internal/components/autosuggest-input/inline-tokens.d.ts.map +1 -0
  120. package/lib/internal/template/internal/components/autosuggest-input/inline-tokens.js +95 -0
  121. package/lib/internal/template/internal/components/autosuggest-input/inline-tokens.js.map +1 -0
  122. package/lib/internal/template/internal/components/autosuggest-input/overflow-dropdown.d.ts +16 -0
  123. package/lib/internal/template/internal/components/autosuggest-input/overflow-dropdown.d.ts.map +1 -0
  124. package/lib/internal/template/internal/components/autosuggest-input/overflow-dropdown.js +94 -0
  125. package/lib/internal/template/internal/components/autosuggest-input/overflow-dropdown.js.map +1 -0
  126. package/lib/internal/template/internal/components/autosuggest-input/styles.css.js +27 -2
  127. package/lib/internal/template/internal/components/autosuggest-input/styles.scoped.css +195 -2
  128. package/lib/internal/template/internal/components/autosuggest-input/styles.selectors.js +27 -2
  129. package/lib/internal/template/internal/components/autosuggest-input/test-classes/styles.css.js +9 -0
  130. package/lib/internal/template/internal/components/autosuggest-input/test-classes/styles.scoped.css +19 -0
  131. package/lib/internal/template/internal/components/autosuggest-input/test-classes/styles.selectors.js +10 -0
  132. package/lib/internal/template/internal/components/autosuggest-input/use-token-overflow.d.ts +21 -0
  133. package/lib/internal/template/internal/components/autosuggest-input/use-token-overflow.d.ts.map +1 -0
  134. package/lib/internal/template/internal/components/autosuggest-input/use-token-overflow.js +63 -0
  135. package/lib/internal/template/internal/components/autosuggest-input/use-token-overflow.js.map +1 -0
  136. package/lib/internal/template/internal/components/button-trigger/index.d.ts +4 -1
  137. package/lib/internal/template/internal/components/button-trigger/index.d.ts.map +1 -1
  138. package/lib/internal/template/internal/components/button-trigger/index.js +5 -3
  139. package/lib/internal/template/internal/components/button-trigger/index.js.map +1 -1
  140. package/lib/internal/template/internal/components/button-trigger/styles.css.js +23 -21
  141. package/lib/internal/template/internal/components/button-trigger/styles.scoped.css +79 -36
  142. package/lib/internal/template/internal/components/button-trigger/styles.selectors.js +23 -21
  143. package/lib/internal/template/internal/components/control-group/grouped-control-styles.d.ts +1 -1
  144. package/lib/internal/template/internal/components/control-group/grouped-control-styles.d.ts.map +1 -1
  145. package/lib/internal/template/internal/components/control-group/grouped-control-styles.js +3 -2
  146. package/lib/internal/template/internal/components/control-group/grouped-control-styles.js.map +1 -1
  147. package/lib/internal/template/internal/components/control-group/index.d.ts +3 -9
  148. package/lib/internal/template/internal/components/control-group/index.d.ts.map +1 -1
  149. package/lib/internal/template/internal/components/control-group/index.js +16 -10
  150. package/lib/internal/template/internal/components/control-group/index.js.map +1 -1
  151. package/lib/internal/template/internal/components/control-group/interfaces.d.ts +43 -0
  152. package/lib/internal/template/internal/components/control-group/interfaces.d.ts.map +1 -0
  153. package/lib/internal/template/internal/components/control-group/interfaces.js +2 -0
  154. package/lib/internal/template/internal/components/control-group/interfaces.js.map +1 -0
  155. package/lib/internal/template/internal/components/control-group/styles.css.js +16 -11
  156. package/lib/internal/template/internal/components/control-group/styles.scoped.css +34 -14
  157. package/lib/internal/template/internal/components/control-group/styles.selectors.js +16 -11
  158. package/lib/internal/template/internal/components/control-group/test-classes/styles.css.js +8 -0
  159. package/lib/internal/template/internal/components/control-group/test-classes/styles.scoped.css +15 -0
  160. package/lib/internal/template/internal/components/control-group/test-classes/styles.selectors.js +9 -0
  161. package/lib/internal/template/internal/components/option/interfaces.d.ts +1 -1
  162. package/lib/internal/template/internal/components/option/interfaces.d.ts.map +1 -1
  163. package/lib/internal/template/internal/components/option/interfaces.js.map +1 -1
  164. package/lib/internal/template/internal/context/control-group-context.d.ts +5 -0
  165. package/lib/internal/template/internal/context/control-group-context.d.ts.map +1 -1
  166. package/lib/internal/template/internal/context/control-group-context.js +1 -0
  167. package/lib/internal/template/internal/context/control-group-context.js.map +1 -1
  168. package/lib/internal/template/internal/environment.js +2 -2
  169. package/lib/internal/template/internal/environment.json +2 -2
  170. package/lib/internal/template/internal/hooks/use-hidden-description/index.d.ts +2 -1
  171. package/lib/internal/template/internal/hooks/use-hidden-description/index.d.ts.map +1 -1
  172. package/lib/internal/template/internal/hooks/use-hidden-description/index.js.map +1 -1
  173. package/lib/internal/template/segmented-control/interfaces.d.ts +2 -2
  174. package/lib/internal/template/segmented-control/interfaces.d.ts.map +1 -1
  175. package/lib/internal/template/segmented-control/interfaces.js.map +1 -1
  176. package/lib/internal/template/segmented-control/styles.css.js +27 -26
  177. package/lib/internal/template/segmented-control/styles.scoped.css +51 -47
  178. package/lib/internal/template/segmented-control/styles.selectors.js +27 -26
  179. package/lib/internal/template/select/interfaces.d.ts +1 -1
  180. package/lib/internal/template/select/interfaces.js.map +1 -1
  181. package/lib/internal/template/select/parts/filter.d.ts +1 -1
  182. package/lib/internal/template/select/parts/filter.d.ts.map +1 -1
  183. package/lib/internal/template/table/body-cell/disabled-inline-editor.d.ts +2 -1
  184. package/lib/internal/template/table/body-cell/disabled-inline-editor.d.ts.map +1 -1
  185. package/lib/internal/template/table/body-cell/disabled-inline-editor.js.map +1 -1
  186. package/lib/internal/template/table/interfaces.d.ts +5 -3
  187. package/lib/internal/template/table/interfaces.d.ts.map +1 -1
  188. package/lib/internal/template/table/interfaces.js.map +1 -1
  189. package/lib/internal/template/tabs/interfaces.d.ts +4 -2
  190. package/lib/internal/template/tabs/interfaces.d.ts.map +1 -1
  191. package/lib/internal/template/tabs/interfaces.js.map +1 -1
  192. package/lib/internal/template/test-utils/dom/autosuggest/index.d.ts +39 -0
  193. package/lib/internal/template/test-utils/dom/autosuggest/index.js +68 -16
  194. package/lib/internal/template/test-utils/dom/autosuggest/index.js.map +1 -1
  195. package/lib/internal/template/test-utils/dom/internal/control-group.d.ts +5 -0
  196. package/lib/internal/template/test-utils/dom/internal/control-group.js +9 -2
  197. package/lib/internal/template/test-utils/dom/internal/control-group.js.map +1 -1
  198. package/lib/internal/template/test-utils/selectors/autosuggest/index.d.ts +53 -0
  199. package/lib/internal/template/test-utils/selectors/autosuggest/index.js +84 -16
  200. package/lib/internal/template/test-utils/selectors/autosuggest/index.js.map +1 -1
  201. package/lib/internal/template/test-utils/selectors/internal/control-group.d.ts +5 -0
  202. package/lib/internal/template/test-utils/selectors/internal/control-group.js +9 -2
  203. package/lib/internal/template/test-utils/selectors/internal/control-group.js.map +1 -1
  204. package/lib/internal/template/toggle-button/interfaces.d.ts +3 -1
  205. package/lib/internal/template/toggle-button/interfaces.d.ts.map +1 -1
  206. package/lib/internal/template/toggle-button/interfaces.js.map +1 -1
  207. package/lib/internal/template/token/dismiss-button.d.ts.map +1 -1
  208. package/lib/internal/template/token/dismiss-button.js +6 -3
  209. package/lib/internal/template/token/dismiss-button.js.map +1 -1
  210. package/lib/internal/template/types/option.d.ts +1 -1
  211. package/lib/internal/template/types/option.d.ts.map +1 -1
  212. package/lib/internal/template/types/option.js.map +1 -1
  213. package/package.json +1 -1
@@ -6,7 +6,7 @@
6
6
  /* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
7
7
  /* Style used for links in slots/components that are text heavy, to help links stand out among
8
8
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
9
- .awsui_root_o08jm_1akgb_9:not(#\9) {
9
+ .awsui_root_o08jm_1h1xd_9:not(#\9) {
10
10
  border-collapse: separate;
11
11
  border-spacing: 0;
12
12
  box-sizing: border-box;
@@ -36,33 +36,53 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
36
36
  font-family: var(--font-family-base-c9u5cr, "Noto Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
37
37
  -webkit-font-smoothing: auto;
38
38
  -moz-osx-font-smoothing: auto;
39
+ }
40
+
41
+ .awsui_action-slot_o08jm_1h1xd_41:not(#\9) {
39
42
  display: flex;
43
+ margin-inline-start: calc(-1 * var(--border-width-field-2365x3, 1px));
40
44
  }
41
- .awsui_root-horizontal_o08jm_1akgb_41:not(#\9) {
45
+
46
+ .awsui_group-layout_o08jm_1h1xd_46:not(#\9) {
47
+ display: flex;
42
48
  flex-direction: row;
43
- flex-wrap: nowrap;
49
+ }
50
+ .awsui_group-layout-horizontal_o08jm_1h1xd_50:not(#\9) {
44
51
  align-items: flex-end;
45
52
  }
46
- .awsui_root-vertical_o08jm_1akgb_46:not(#\9) {
47
- flex-direction: column;
53
+ .awsui_group-layout-vertical_o08jm_1h1xd_53:not(#\9), .awsui_group-layout-vertical_o08jm_1h1xd_53 > .awsui_action-slot_o08jm_1h1xd_41:not(#\9) {
54
+ align-items: stretch;
55
+ }
56
+
57
+ .awsui_controls_o08jm_1h1xd_57:not(#\9) {
58
+ display: flex;
48
59
  align-items: stretch;
49
60
  }
61
+ .awsui_controls-horizontal_o08jm_1h1xd_61:not(#\9) {
62
+ flex-direction: row;
63
+ flex-wrap: nowrap;
64
+ }
65
+ .awsui_controls-vertical_o08jm_1h1xd_65:not(#\9) {
66
+ flex-direction: column;
67
+ }
50
68
 
51
- .awsui_control_o08jm_1akgb_51:not(#\9) {
69
+ .awsui_control_o08jm_1h1xd_57:not(#\9) {
52
70
  min-inline-size: 0;
53
71
  isolation: isolate;
54
72
  }
55
- .awsui_control_o08jm_1akgb_51:not(#\9):focus-within {
56
- z-index: 1;
57
- }
58
- .awsui_control-middle-horizontal_o08jm_1akgb_58:not(#\9), .awsui_control-last-horizontal_o08jm_1akgb_58:not(#\9) {
73
+ .awsui_control-middle-horizontal_o08jm_1h1xd_73:not(#\9), .awsui_control-last-horizontal_o08jm_1h1xd_73:not(#\9) {
59
74
  margin-inline-start: calc(-1 * var(--border-width-field-2365x3, 1px));
60
75
  }
61
- .awsui_control-middle-vertical_o08jm_1akgb_61:not(#\9), .awsui_control-last-vertical_o08jm_1akgb_61:not(#\9) {
76
+ .awsui_control-middle-vertical_o08jm_1h1xd_76:not(#\9), .awsui_control-last-vertical_o08jm_1h1xd_76:not(#\9) {
62
77
  margin-block-start: calc(-1 * var(--border-width-field-2365x3, 1px));
63
78
  }
64
79
 
65
- .awsui_inline-label_o08jm_1akgb_65:not(#\9) {
80
+ .awsui_action-slot_o08jm_1h1xd_41:not(#\9):focus-within,
81
+ .awsui_control_o08jm_1h1xd_57:not(#\9):focus-within {
82
+ z-index: 1;
83
+ }
84
+
85
+ .awsui_inline-label_o08jm_1h1xd_85:not(#\9) {
66
86
  background: linear-gradient(to bottom, var(--awsui-inline-label-background-color-ka4djm, var(--color-background-layout-main-y4565g, #f2f3f3)), var(--color-background-input-default-1u0v1p, #ffffff));
67
87
  border-start-start-radius: 2px;
68
88
  border-start-end-radius: 2px;
@@ -87,11 +107,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
87
107
  z-index: 2;
88
108
  }
89
109
 
90
- .awsui_inline-label-wrapper_o08jm_1akgb_90:not(#\9) {
110
+ .awsui_inline-label-wrapper_o08jm_1h1xd_110:not(#\9) {
91
111
  margin-block-start: calc(var(--space-scaled-xs-pajbd1, 8px) * -1);
92
112
  isolation: isolate;
93
113
  }
94
114
 
95
- .awsui_inline-label-trigger-wrapper_o08jm_1akgb_95:not(#\9) {
115
+ .awsui_inline-label-trigger-wrapper_o08jm_1h1xd_115:not(#\9) {
96
116
  margin-block-start: -7px;
97
117
  }
@@ -2,16 +2,21 @@
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_o08jm_1akgb_9",
6
- "root-horizontal": "awsui_root-horizontal_o08jm_1akgb_41",
7
- "root-vertical": "awsui_root-vertical_o08jm_1akgb_46",
8
- "control": "awsui_control_o08jm_1akgb_51",
9
- "control-middle-horizontal": "awsui_control-middle-horizontal_o08jm_1akgb_58",
10
- "control-last-horizontal": "awsui_control-last-horizontal_o08jm_1akgb_58",
11
- "control-middle-vertical": "awsui_control-middle-vertical_o08jm_1akgb_61",
12
- "control-last-vertical": "awsui_control-last-vertical_o08jm_1akgb_61",
13
- "inline-label": "awsui_inline-label_o08jm_1akgb_65",
14
- "inline-label-wrapper": "awsui_inline-label-wrapper_o08jm_1akgb_90",
15
- "inline-label-trigger-wrapper": "awsui_inline-label-trigger-wrapper_o08jm_1akgb_95"
5
+ "root": "awsui_root_o08jm_1h1xd_9",
6
+ "action-slot": "awsui_action-slot_o08jm_1h1xd_41",
7
+ "group-layout": "awsui_group-layout_o08jm_1h1xd_46",
8
+ "group-layout-horizontal": "awsui_group-layout-horizontal_o08jm_1h1xd_50",
9
+ "group-layout-vertical": "awsui_group-layout-vertical_o08jm_1h1xd_53",
10
+ "controls": "awsui_controls_o08jm_1h1xd_57",
11
+ "controls-horizontal": "awsui_controls-horizontal_o08jm_1h1xd_61",
12
+ "controls-vertical": "awsui_controls-vertical_o08jm_1h1xd_65",
13
+ "control": "awsui_control_o08jm_1h1xd_57",
14
+ "control-middle-horizontal": "awsui_control-middle-horizontal_o08jm_1h1xd_73",
15
+ "control-last-horizontal": "awsui_control-last-horizontal_o08jm_1h1xd_73",
16
+ "control-middle-vertical": "awsui_control-middle-vertical_o08jm_1h1xd_76",
17
+ "control-last-vertical": "awsui_control-last-vertical_o08jm_1h1xd_76",
18
+ "inline-label": "awsui_inline-label_o08jm_1h1xd_85",
19
+ "inline-label-wrapper": "awsui_inline-label-wrapper_o08jm_1h1xd_110",
20
+ "inline-label-trigger-wrapper": "awsui_inline-label-trigger-wrapper_o08jm_1h1xd_115"
16
21
  };
17
22
 
@@ -0,0 +1,8 @@
1
+
2
+ import './styles.scoped.css';
3
+ export default {
4
+ "root": "awsui_root_1gp1v_ju9sr_5",
5
+ "action-button": "awsui_action-button_1gp1v_ju9sr_9",
6
+ "inline-label": "awsui_inline-label_1gp1v_ju9sr_13"
7
+ };
8
+
@@ -0,0 +1,15 @@
1
+ /*
2
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ .awsui_root_1gp1v_ju9sr_5:not(#\9) {
6
+ /* used in test-utils */
7
+ }
8
+
9
+ .awsui_action-button_1gp1v_ju9sr_9:not(#\9) {
10
+ /* used in test-utils */
11
+ }
12
+
13
+ .awsui_inline-label_1gp1v_ju9sr_13:not(#\9) {
14
+ /* used in test-utils */
15
+ }
@@ -0,0 +1,9 @@
1
+
2
+ // es-module interop with Babel and Typescript
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ module.exports.default = {
5
+ "root": "awsui_root_1gp1v_ju9sr_5",
6
+ "action-button": "awsui_action-button_1gp1v_ju9sr_9",
7
+ "inline-label": "awsui_inline-label_1gp1v_ju9sr_13"
8
+ };
9
+
@@ -7,7 +7,7 @@ interface InternalOptionDefinition extends OptionDefinition {
7
7
  export interface DropdownOption {
8
8
  type?: 'child' | 'parent' | 'select-all' | 'use-entered';
9
9
  disabled?: boolean;
10
- disabledReason?: string;
10
+ disabledReason?: React.ReactNode;
11
11
  option: OptionDefinition | OptionGroup;
12
12
  afterHeader?: boolean;
13
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/option/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEtE,UAAU,wBAAyB,SAAQ,gBAAgB;IACzD,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,YAAY,GAAG,aAAa,CAAC;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,gBAAgB,GAAG,WAAW,CAAC;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IAC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OAAO,CAAC;IACxB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IACrD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B;AAGD,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/option/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { ReactNode } from 'react';\n\nimport { BaseComponentProps } from '../../../types/base-component';\nimport { OptionDefinition, OptionGroup } from '../../../types/option';\n\ninterface InternalOptionDefinition extends OptionDefinition {\n __customIcon?: React.ReactNode;\n}\n\nexport interface DropdownOption {\n type?: 'child' | 'parent' | 'select-all' | 'use-entered';\n disabled?: boolean;\n disabledReason?: string;\n option: OptionDefinition | OptionGroup;\n afterHeader?: boolean;\n}\n\nexport interface OptionProps extends BaseComponentProps {\n option?: InternalOptionDefinition;\n triggerVariant?: boolean;\n highlightText?: string;\n highlightedOption?: boolean;\n selectedOption?: boolean;\n isGroupOption?: boolean;\n disableTitleTooltip?: boolean;\n labelContainerRef?: React.RefObject<HTMLSpanElement>;\n labelRef?: React.RefObject<HTMLSpanElement>;\n labelId?: string;\n customContent?: ReactNode;\n}\n\n// Backward-compatibility re-export for consumers importing this public type from the internal path.\nexport { OptionDefinition, OptionGroup } from '../../../types/option';\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/option/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { ReactNode } from 'react';\n\nimport { BaseComponentProps } from '../../../types/base-component';\nimport { OptionDefinition, OptionGroup } from '../../../types/option';\n\ninterface InternalOptionDefinition extends OptionDefinition {\n __customIcon?: React.ReactNode;\n}\n\nexport interface DropdownOption {\n type?: 'child' | 'parent' | 'select-all' | 'use-entered';\n disabled?: boolean;\n disabledReason?: React.ReactNode;\n option: OptionDefinition | OptionGroup;\n afterHeader?: boolean;\n}\n\nexport interface OptionProps extends BaseComponentProps {\n option?: InternalOptionDefinition;\n triggerVariant?: boolean;\n highlightText?: string;\n highlightedOption?: boolean;\n selectedOption?: boolean;\n isGroupOption?: boolean;\n disableTitleTooltip?: boolean;\n labelContainerRef?: React.RefObject<HTMLSpanElement>;\n labelRef?: React.RefObject<HTMLSpanElement>;\n labelId?: string;\n customContent?: ReactNode;\n}\n\n// Backward-compatibility re-export for consumers importing this public type from the internal path.\nexport { OptionDefinition, OptionGroup } from '../../../types/option';\n"]}
@@ -12,6 +12,11 @@ export interface GroupedControlContextProps {
12
12
  * controls.
13
13
  */
14
14
  direction: GroupedControlDirection;
15
+ /**
16
+ * Whether an action is fused onto the group's inline-end. Controls square the
17
+ * inline-end corners facing the action so it owns the only rounded ones.
18
+ */
19
+ hasAction?: boolean;
15
20
  }
16
21
  export declare const GroupedControlContext: React.Context<GroupedControlContextProps>;
17
22
  export declare function useGroupedControlContext(): GroupedControlContextProps;
@@ -1 +1 @@
1
- {"version":3,"file":"control-group-context.d.ts","sourceRoot":"","sources":["../../../../src/internal/context/control-group-context.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1E,MAAM,MAAM,uBAAuB,GAAG,YAAY,GAAG,UAAU,CAAC;AAEhE,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,QAAQ,EAAE,sBAAsB,GAAG,IAAI,CAAC;IACxC;;;OAGG;IACH,SAAS,EAAE,uBAAuB,CAAC;CACpC;AAED,eAAO,MAAM,qBAAqB,2CAGhC,CAAC;AAEH,wBAAgB,wBAAwB,+BAEvC;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,eAKrF"}
1
+ {"version":3,"file":"control-group-context.d.ts","sourceRoot":"","sources":["../../../../src/internal/context/control-group-context.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1E,MAAM,MAAM,uBAAuB,GAAG,YAAY,GAAG,UAAU,CAAC;AAEhE,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,QAAQ,EAAE,sBAAsB,GAAG,IAAI,CAAC;IACxC;;;OAGG;IACH,SAAS,EAAE,uBAAuB,CAAC;IACnC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,qBAAqB,2CAIhC,CAAC;AAEH,wBAAgB,wBAAwB,+BAEvC;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,eAKrF"}
@@ -4,6 +4,7 @@ import React, { createContext, useContext } from 'react';
4
4
  export const GroupedControlContext = createContext({
5
5
  position: null,
6
6
  direction: 'horizontal',
7
+ hasAction: false,
7
8
  });
8
9
  export function useGroupedControlContext() {
9
10
  return useContext(GroupedControlContext);
@@ -1 +1 @@
1
- {"version":3,"file":"control-group-context.js","sourceRoot":"","sources":["../../../../src/internal/context/control-group-context.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAmBzD,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAA6B;IAC7E,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,YAAY;CACxB,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB;IACtC,OAAO,UAAU,CAAC,qBAAqB,CAAC,CAAC;AAC3C,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,0BAA0B,CAAC,EAAE,QAAQ,EAAiC;IACpF,MAAM,EAAE,SAAS,EAAE,GAAG,wBAAwB,EAAE,CAAC;IACjD,OAAO,CACL,oBAAC,qBAAqB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,IAAG,QAAQ,CAAkC,CAClH,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { createContext, useContext } from 'react';\n\nexport type GroupedControlPosition = 'first' | 'middle' | 'last' | 'only';\n\nexport type GroupedControlDirection = 'horizontal' | 'vertical';\n\nexport interface GroupedControlContextProps {\n /**\n * The control's position within a control group,\n * or `null` when the control is not in a control group.\n */\n position: GroupedControlPosition | null;\n /**\n * The axis along which the surrounding control group lays out its\n * controls.\n */\n direction: GroupedControlDirection;\n}\n\nexport const GroupedControlContext = createContext<GroupedControlContextProps>({\n position: null,\n direction: 'horizontal',\n});\n\nexport function useGroupedControlContext() {\n return useContext(GroupedControlContext);\n}\n\n/**\n * Resets the grouped-control context back to \"not in a group\" for a subtree.\n *\n * Controls that render caller-supplied content (for example, custom dropdown\n * content) should wrap that content with this provider. Otherwise a nested\n * control rendered inside such a slot would inherit the surrounding group's\n * `position` and incorrectly pick up the grouped-control styling\n * where adjacent borders lose their border radii.\n */\nexport function ResetGroupedControlContext({ children }: { children: React.ReactNode }) {\n const { direction } = useGroupedControlContext();\n return (\n <GroupedControlContext.Provider value={{ position: null, direction }}>{children}</GroupedControlContext.Provider>\n );\n}\n"]}
1
+ {"version":3,"file":"control-group-context.js","sourceRoot":"","sources":["../../../../src/internal/context/control-group-context.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAwBzD,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAA6B;IAC7E,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,KAAK;CACjB,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB;IACtC,OAAO,UAAU,CAAC,qBAAqB,CAAC,CAAC;AAC3C,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,0BAA0B,CAAC,EAAE,QAAQ,EAAiC;IACpF,MAAM,EAAE,SAAS,EAAE,GAAG,wBAAwB,EAAE,CAAC;IACjD,OAAO,CACL,oBAAC,qBAAqB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,IAAG,QAAQ,CAAkC,CAClH,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { createContext, useContext } from 'react';\n\nexport type GroupedControlPosition = 'first' | 'middle' | 'last' | 'only';\n\nexport type GroupedControlDirection = 'horizontal' | 'vertical';\n\nexport interface GroupedControlContextProps {\n /**\n * The control's position within a control group,\n * or `null` when the control is not in a control group.\n */\n position: GroupedControlPosition | null;\n /**\n * The axis along which the surrounding control group lays out its\n * controls.\n */\n direction: GroupedControlDirection;\n /**\n * Whether an action is fused onto the group's inline-end. Controls square the\n * inline-end corners facing the action so it owns the only rounded ones.\n */\n hasAction?: boolean;\n}\n\nexport const GroupedControlContext = createContext<GroupedControlContextProps>({\n position: null,\n direction: 'horizontal',\n hasAction: false,\n});\n\nexport function useGroupedControlContext() {\n return useContext(GroupedControlContext);\n}\n\n/**\n * Resets the grouped-control context back to \"not in a group\" for a subtree.\n *\n * Controls that render caller-supplied content (for example, custom dropdown\n * content) should wrap that content with this provider. Otherwise a nested\n * control rendered inside such a slot would inherit the surrounding group's\n * `position` and incorrectly pick up the grouped-control styling\n * where adjacent borders lose their border radii.\n */\nexport function ResetGroupedControlContext({ children }: { children: React.ReactNode }) {\n const { direction } = useGroupedControlContext();\n return (\n <GroupedControlContext.Provider value={{ position: null, direction }}>{children}</GroupedControlContext.Provider>\n );\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (edcc1f62)";
3
- export var GIT_SHA = "edcc1f62";
2
+ export var PACKAGE_VERSION = "3.0.0 (af861d17)";
3
+ export var GIT_SHA = "af861d17";
4
4
  export var THEME = "open-source-visual-refresh";
5
5
  export var SYSTEM = "core";
6
6
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (edcc1f62)",
4
- "GIT_SHA": "edcc1f62",
3
+ "PACKAGE_VERSION": "3.0.0 (af861d17)",
4
+ "GIT_SHA": "af861d17",
5
5
  "THEME": "default",
6
6
  "SYSTEM": "core",
7
7
  "ALWAYS_VISUAL_REFRESH": false,
@@ -1,4 +1,5 @@
1
- export default function useHiddenDescription(description?: string): {
1
+ import React from 'react';
2
+ export default function useHiddenDescription(description?: React.ReactNode): {
2
3
  targetProps: {
3
4
  'aria-describedby': string | undefined;
4
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-hidden-description/index.tsx"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,WAAW,CAAC,EAAE,MAAM;;;;;;EAahE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-hidden-description/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS;;;;;;EAazE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-hidden-description/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAE5E,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,WAAoB;IAC/D,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IACzB,OAAO;QACL,WAAW,EAAE;YACX,kBAAkB,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;SACjD;QACD,aAAa,EAAE,WAAW,CAAC,CAAC,CAAC,CAC3B,8BAAM,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,IACvB,WAAW,CACP,CACR,CAAC,CAAC,CAAC,IAAI;QACR,aAAa,EAAE,EAAE;KAClB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { useUniqueId } from '@cloudscape-design/component-toolkit/internal';\n\nexport default function useHiddenDescription(description?: string) {\n const id = useUniqueId();\n return {\n targetProps: {\n 'aria-describedby': description ? id : undefined,\n },\n descriptionEl: description ? (\n <span id={id} hidden={true}>\n {description}\n </span>\n ) : null,\n descriptionId: id,\n };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-hidden-description/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAE5E,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,WAA6B;IACxE,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IACzB,OAAO;QACL,WAAW,EAAE;YACX,kBAAkB,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;SACjD;QACD,aAAa,EAAE,WAAW,CAAC,CAAC,CAAC,CAC3B,8BAAM,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,IACvB,WAAW,CACP,CACR,CAAC,CAAC,CAAC,IAAI;QACR,aAAa,EAAE,EAAE;KAClB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { useUniqueId } from '@cloudscape-design/component-toolkit/internal';\n\nexport default function useHiddenDescription(description?: React.ReactNode) {\n const id = useUniqueId();\n return {\n targetProps: {\n 'aria-describedby': description ? id : undefined,\n },\n descriptionEl: description ? (\n <span id={id} hidden={true}>\n {description}\n </span>\n ) : null,\n descriptionId: id,\n };\n}\n"]}
@@ -13,7 +13,7 @@ export interface SegmentedControlProps extends BaseComponentProps {
13
13
  *
14
14
  * - `id` (string) - The ID of the segment.
15
15
  * - `disabled` [boolean] - (Optional) Determines whether the segment is disabled, which prevents the user from selecting it.
16
- * - `disabledReason` (string) - (Optional) Displays tooltip near the segment when disabled. Use to provide additional context.
16
+ * - `disabledReason` (ReactNode) - (Optional) Displays tooltip near the segment when disabled. Use to provide additional context. Do not place interactive elements like links or buttons.
17
17
  * - `iconName` (string) - (Optional) Specifies the name of the icon, used with the [icon component](/components/icon/).
18
18
  * - `iconAlt` (string) - (Optional) Specifies alternate text for the icon when using `iconUrl`, or `iconName` without `text`.
19
19
  * This is required when you use an icon without `text`.
@@ -47,7 +47,7 @@ export declare namespace SegmentedControlProps {
47
47
  interface Option {
48
48
  id: string;
49
49
  disabled?: boolean;
50
- disabledReason?: string;
50
+ disabledReason?: React.ReactNode;
51
51
  iconName?: IconProps.Name;
52
52
  iconAlt?: string;
53
53
  iconUrl?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/segmented-control/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAE5D,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB;IAC/D;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAEtD;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC,qBAAqB,CAAC,YAAY,CAAC,CAAC;IAEzE;;;;OAIG;IACH,KAAK,CAAC,EAAE,qBAAqB,CAAC,KAAK,CAAC;CACrC;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,MAAM;QACrB,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC;QAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;Q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E,MAAM,CAAC;gBAClB,KAAK,CAAC,EAAE,MAAM,CAAC;aAChB,CAAC;YACF,SAAS,CAAC,EAAE;gBACV,WAAW,CAAC,EAAE,MAAM,CAAC;gBACrB,YAAY,CAAC,EAAE,MAAM,CAAC;gBACtB,WAAW,CAAC,EAAE,MAAM,CAAC;aACtB,CAAC;YACF,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB,CAAC;KACH;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/segmented-control/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { IconProps } from '../icon/interfaces';\nimport { BaseComponentProps } from '../types/base-component';\nimport { NonCancelableEventHandler } from '../types/events';\n\nexport interface SegmentedControlProps extends BaseComponentProps {\n /**\n * ID of the selected option. If you want to clear the selection, use `null`.\n */\n selectedId: string | null;\n\n /**\n * An array of objects representing options. Only up to 6 options are supported.\n * Each segment has the following properties:\n *\n * - `id` (string) - The ID of the segment.\n * - `disabled` [boolean] - (Optional) Determines whether the segment is disabled, which prevents the user from selecting it.\n * - `disabledReason` (string) - (Optional) Displays tooltip near the segment when disabled. Use to provide additional context.\n * - `iconName` (string) - (Optional) Specifies the name of the icon, used with the [icon component](/components/icon/).\n * - `iconAlt` (string) - (Optional) Specifies alternate text for the icon when using `iconUrl`, or `iconName` without `text`.\n * This is required when you use an icon without `text`.\n * - `iconUrl` (string) - (Optional) Specifies the URL of a custom icon.\n * - `iconSvg` (ReactNode) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n * - `text` (string) - (Optional) Specifies the text of the segment.\n */\n options?: ReadonlyArray<SegmentedControlProps.Option>;\n\n /**\n * Defines the label of the entire segmented control. In the standard view (that is, all individual segments are visible),\n * this label is used as `aria-label` on the group of segments. In a narrow container, where this component is displayed as a select component,\n * the label is visible and attached to the select component, unless `ariaLabelledBy` is defined. Don't use `label` and `ariaLabelledBy` at the same time.\n */\n label?: string;\n\n /**\n * Adds aria-labelledby to the component. Create a visually hidden element with an ID and set this property to that ID. If you don't want the label to be visible in narrow containers, use this property instead of `label`.\n */\n ariaLabelledby?: string;\n\n /**\n * Called when the user selects a different segment.\n */\n onChange?: NonCancelableEventHandler<SegmentedControlProps.ChangeDetail>;\n\n /**\n * An object containing CSS properties to customize the segmented control's visual appearance.\n * Refer to the [style](/components/segmented-control/?tabId=style) tab for more details.\n * @awsuiSystem core\n */\n style?: SegmentedControlProps.Style;\n}\n\nexport namespace SegmentedControlProps {\n export interface Option {\n id: string;\n disabled?: boolean;\n disabledReason?: string;\n iconName?: IconProps.Name;\n iconAlt?: string;\n iconUrl?: string;\n iconSvg?: React.ReactNode;\n text?: string;\n }\n\n export interface ChangeDetail {\n selectedId: string;\n }\n\n export interface Style {\n root?: {\n borderRadius?: string;\n };\n segment?: {\n background?: {\n active?: string;\n default?: string;\n disabled?: string;\n hover?: string;\n };\n color?: {\n active?: string;\n default?: string;\n disabled?: string;\n hover?: string;\n };\n focusRing?: {\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n };\n borderRadius?: string;\n fontSize?: string;\n paddingBlock?: string;\n paddingInline?: string;\n };\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/segmented-control/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { IconProps } from '../icon/interfaces';\nimport { BaseComponentProps } from '../types/base-component';\nimport { NonCancelableEventHandler } from '../types/events';\n\nexport interface SegmentedControlProps extends BaseComponentProps {\n /**\n * ID of the selected option. If you want to clear the selection, use `null`.\n */\n selectedId: string | null;\n\n /**\n * An array of objects representing options. Only up to 6 options are supported.\n * Each segment has the following properties:\n *\n * - `id` (string) - The ID of the segment.\n * - `disabled` [boolean] - (Optional) Determines whether the segment is disabled, which prevents the user from selecting it.\n * - `disabledReason` (ReactNode) - (Optional) Displays tooltip near the segment when disabled. Use to provide additional context. Do not place interactive elements like links or buttons.\n * - `iconName` (string) - (Optional) Specifies the name of the icon, used with the [icon component](/components/icon/).\n * - `iconAlt` (string) - (Optional) Specifies alternate text for the icon when using `iconUrl`, or `iconName` without `text`.\n * This is required when you use an icon without `text`.\n * - `iconUrl` (string) - (Optional) Specifies the URL of a custom icon.\n * - `iconSvg` (ReactNode) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n * - `text` (string) - (Optional) Specifies the text of the segment.\n */\n options?: ReadonlyArray<SegmentedControlProps.Option>;\n\n /**\n * Defines the label of the entire segmented control. In the standard view (that is, all individual segments are visible),\n * this label is used as `aria-label` on the group of segments. In a narrow container, where this component is displayed as a select component,\n * the label is visible and attached to the select component, unless `ariaLabelledBy` is defined. Don't use `label` and `ariaLabelledBy` at the same time.\n */\n label?: string;\n\n /**\n * Adds aria-labelledby to the component. Create a visually hidden element with an ID and set this property to that ID. If you don't want the label to be visible in narrow containers, use this property instead of `label`.\n */\n ariaLabelledby?: string;\n\n /**\n * Called when the user selects a different segment.\n */\n onChange?: NonCancelableEventHandler<SegmentedControlProps.ChangeDetail>;\n\n /**\n * An object containing CSS properties to customize the segmented control's visual appearance.\n * Refer to the [style](/components/segmented-control/?tabId=style) tab for more details.\n * @awsuiSystem core\n */\n style?: SegmentedControlProps.Style;\n}\n\nexport namespace SegmentedControlProps {\n export interface Option {\n id: string;\n disabled?: boolean;\n disabledReason?: React.ReactNode;\n iconName?: IconProps.Name;\n iconAlt?: string;\n iconUrl?: string;\n iconSvg?: React.ReactNode;\n text?: string;\n }\n\n export interface ChangeDetail {\n selectedId: string;\n }\n\n export interface Style {\n root?: {\n borderRadius?: string;\n };\n segment?: {\n background?: {\n active?: string;\n default?: string;\n disabled?: string;\n hover?: string;\n };\n color?: {\n active?: string;\n default?: string;\n disabled?: string;\n hover?: string;\n };\n focusRing?: {\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n };\n borderRadius?: string;\n fontSize?: string;\n paddingBlock?: string;\n paddingInline?: string;\n };\n }\n}\n"]}
@@ -1,31 +1,32 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "segment": "awsui_segment_8cbea_q3zoc_17",
5
- "full-width": "awsui_full-width_8cbea_q3zoc_44",
6
- "refresh": "awsui_refresh_8cbea_q3zoc_47",
7
- "disabled": "awsui_disabled_8cbea_q3zoc_53",
8
- "selected": "awsui_selected_8cbea_q3zoc_110",
9
- "icon": "awsui_icon_8cbea_q3zoc_121",
10
- "with-text": "awsui_with-text_8cbea_q3zoc_125",
11
- "with-no-text": "awsui_with-no-text_8cbea_q3zoc_131",
12
- "root": "awsui_root_8cbea_q3zoc_136",
13
- "segment-part": "awsui_segment-part_8cbea_q3zoc_168",
14
- "grouped": "awsui_grouped_8cbea_q3zoc_189",
15
- "grouped-only": "awsui_grouped-only_8cbea_q3zoc_189",
16
- "grouped-vertical": "awsui_grouped-vertical_8cbea_q3zoc_193",
17
- "grouped-horizontal-first": "awsui_grouped-horizontal-first_8cbea_q3zoc_204",
18
- "grouped-horizontal-middle": "awsui_grouped-horizontal-middle_8cbea_q3zoc_208",
19
- "grouped-horizontal-last": "awsui_grouped-horizontal-last_8cbea_q3zoc_214",
20
- "grouped-vertical-first": "awsui_grouped-vertical-first_8cbea_q3zoc_218",
21
- "grouped-vertical-middle": "awsui_grouped-vertical-middle_8cbea_q3zoc_222",
22
- "grouped-vertical-last": "awsui_grouped-vertical-last_8cbea_q3zoc_228",
23
- "select": "awsui_select_8cbea_q3zoc_110",
24
- "segment-count-2": "awsui_segment-count-2_8cbea_q3zoc_245",
25
- "segment-count-3": "awsui_segment-count-3_8cbea_q3zoc_252",
26
- "segment-count-4": "awsui_segment-count-4_8cbea_q3zoc_259",
27
- "segment-count-5": "awsui_segment-count-5_8cbea_q3zoc_266",
28
- "segment-count-6": "awsui_segment-count-6_8cbea_q3zoc_273",
29
- "disabled-reason-tooltip": "awsui_disabled-reason-tooltip_8cbea_q3zoc_280"
4
+ "segment": "awsui_segment_8cbea_1ai8f_17",
5
+ "full-width": "awsui_full-width_8cbea_1ai8f_44",
6
+ "refresh": "awsui_refresh_8cbea_1ai8f_47",
7
+ "disabled": "awsui_disabled_8cbea_1ai8f_53",
8
+ "selected": "awsui_selected_8cbea_1ai8f_110",
9
+ "icon": "awsui_icon_8cbea_1ai8f_121",
10
+ "with-text": "awsui_with-text_8cbea_1ai8f_125",
11
+ "with-no-text": "awsui_with-no-text_8cbea_1ai8f_131",
12
+ "root": "awsui_root_8cbea_1ai8f_136",
13
+ "segment-part": "awsui_segment-part_8cbea_1ai8f_168",
14
+ "grouped": "awsui_grouped_8cbea_1ai8f_189",
15
+ "grouped-only": "awsui_grouped-only_8cbea_1ai8f_189",
16
+ "grouped-vertical": "awsui_grouped-vertical_8cbea_1ai8f_193",
17
+ "grouped-horizontal-first": "awsui_grouped-horizontal-first_8cbea_1ai8f_204",
18
+ "grouped-horizontal-middle": "awsui_grouped-horizontal-middle_8cbea_1ai8f_208",
19
+ "grouped-horizontal-last": "awsui_grouped-horizontal-last_8cbea_1ai8f_214",
20
+ "grouped-vertical-first": "awsui_grouped-vertical-first_8cbea_1ai8f_218",
21
+ "grouped-vertical-middle": "awsui_grouped-vertical-middle_8cbea_1ai8f_222",
22
+ "grouped-vertical-last": "awsui_grouped-vertical-last_8cbea_1ai8f_228",
23
+ "grouped-with-action": "awsui_grouped-with-action_8cbea_1ai8f_232",
24
+ "select": "awsui_select_8cbea_1ai8f_110",
25
+ "segment-count-2": "awsui_segment-count-2_8cbea_1ai8f_249",
26
+ "segment-count-3": "awsui_segment-count-3_8cbea_1ai8f_256",
27
+ "segment-count-4": "awsui_segment-count-4_8cbea_1ai8f_263",
28
+ "segment-count-5": "awsui_segment-count-5_8cbea_1ai8f_270",
29
+ "segment-count-6": "awsui_segment-count-6_8cbea_1ai8f_277",
30
+ "disabled-reason-tooltip": "awsui_disabled-reason-tooltip_8cbea_1ai8f_284"
30
31
  };
31
32