@cloudscape-design/components-themeable 3.0.1316 → 3.0.1318

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 (666) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
  3. package/lib/internal/template/action-card/interfaces.d.ts +3 -3
  4. package/lib/internal/template/action-card/interfaces.d.ts.map +1 -1
  5. package/lib/internal/template/action-card/interfaces.js.map +1 -1
  6. package/lib/internal/template/alert/interfaces.d.ts +3 -3
  7. package/lib/internal/template/alert/interfaces.d.ts.map +1 -1
  8. package/lib/internal/template/alert/interfaces.js.map +1 -1
  9. package/lib/internal/template/anchor-navigation/interfaces.d.ts +2 -2
  10. package/lib/internal/template/anchor-navigation/interfaces.d.ts.map +1 -1
  11. package/lib/internal/template/anchor-navigation/interfaces.js.map +1 -1
  12. package/lib/internal/template/annotation-context/interfaces.d.ts +1 -1
  13. package/lib/internal/template/annotation-context/interfaces.d.ts.map +1 -1
  14. package/lib/internal/template/annotation-context/interfaces.js.map +1 -1
  15. package/lib/internal/template/app-layout/classic.d.ts +1 -1
  16. package/lib/internal/template/app-layout/drawer/overflow-menu.d.ts +1 -1
  17. package/lib/internal/template/app-layout/drawer/overflow-menu.d.ts.map +1 -1
  18. package/lib/internal/template/app-layout/drawer/overflow-menu.js.map +1 -1
  19. package/lib/internal/template/app-layout/index.js.map +1 -1
  20. package/lib/internal/template/app-layout/interfaces.d.ts +3 -3
  21. package/lib/internal/template/app-layout/interfaces.d.ts.map +1 -1
  22. package/lib/internal/template/app-layout/interfaces.js.map +1 -1
  23. package/lib/internal/template/app-layout/internal.d.ts +1 -1
  24. package/lib/internal/template/app-layout/runtime-drawer/index.d.ts +1 -1
  25. package/lib/internal/template/app-layout/runtime-drawer/index.d.ts.map +1 -1
  26. package/lib/internal/template/app-layout/runtime-drawer/index.js.map +1 -1
  27. package/lib/internal/template/app-layout/visual-refresh/index.d.ts +1 -1
  28. package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.d.ts +1 -1
  29. package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.d.ts.map +1 -1
  30. package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.js.map +1 -1
  31. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-ai-drawer.d.ts +4 -4
  32. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-bottom-drawers.d.ts +4 -4
  33. package/lib/internal/template/app-layout-toolbar/index.js.map +1 -1
  34. package/lib/internal/template/area-chart/elements/use-highlight-details.d.ts +1 -1
  35. package/lib/internal/template/area-chart/elements/use-highlight-details.d.ts.map +1 -1
  36. package/lib/internal/template/area-chart/elements/use-highlight-details.js.map +1 -1
  37. package/lib/internal/template/area-chart/interfaces.d.ts +1 -1
  38. package/lib/internal/template/area-chart/interfaces.d.ts.map +1 -1
  39. package/lib/internal/template/area-chart/interfaces.js.map +1 -1
  40. package/lib/internal/template/area-chart/model/compute-chart-props.d.ts +2 -2
  41. package/lib/internal/template/area-chart/model/compute-chart-props.d.ts.map +1 -1
  42. package/lib/internal/template/area-chart/model/compute-chart-props.js +2 -0
  43. package/lib/internal/template/area-chart/model/compute-chart-props.js.map +1 -1
  44. package/lib/internal/template/area-chart/model/index.d.ts +1 -1
  45. package/lib/internal/template/area-chart/model/index.d.ts.map +1 -1
  46. package/lib/internal/template/area-chart/model/index.js.map +1 -1
  47. package/lib/internal/template/area-chart/model/use-chart-model.d.ts +1 -1
  48. package/lib/internal/template/area-chart/model/use-chart-model.d.ts.map +1 -1
  49. package/lib/internal/template/area-chart/model/use-chart-model.js.map +1 -1
  50. package/lib/internal/template/area-chart/model/use-filter-props.d.ts +1 -1
  51. package/lib/internal/template/area-chart/model/use-filter-props.d.ts.map +1 -1
  52. package/lib/internal/template/area-chart/model/use-filter-props.js.map +1 -1
  53. package/lib/internal/template/area-chart/model/use-highlight-props.d.ts +1 -1
  54. package/lib/internal/template/area-chart/model/use-highlight-props.d.ts.map +1 -1
  55. package/lib/internal/template/area-chart/model/use-highlight-props.js.map +1 -1
  56. package/lib/internal/template/area-chart/model/utils.d.ts +1 -1
  57. package/lib/internal/template/area-chart/model/utils.d.ts.map +1 -1
  58. package/lib/internal/template/area-chart/model/utils.js.map +1 -1
  59. package/lib/internal/template/attribute-editor/interfaces.d.ts +3 -3
  60. package/lib/internal/template/attribute-editor/interfaces.d.ts.map +1 -1
  61. package/lib/internal/template/attribute-editor/interfaces.js.map +1 -1
  62. package/lib/internal/template/attribute-editor/row.d.ts +2 -2
  63. package/lib/internal/template/attribute-editor/row.d.ts.map +1 -1
  64. package/lib/internal/template/attribute-editor/row.js.map +1 -1
  65. package/lib/internal/template/autosuggest/autosuggest-option.d.ts +1 -1
  66. package/lib/internal/template/autosuggest/autosuggest-option.d.ts.map +1 -1
  67. package/lib/internal/template/autosuggest/autosuggest-option.js.map +1 -1
  68. package/lib/internal/template/autosuggest/interfaces.d.ts +5 -5
  69. package/lib/internal/template/autosuggest/interfaces.d.ts.map +1 -1
  70. package/lib/internal/template/autosuggest/interfaces.js.map +1 -1
  71. package/lib/internal/template/autosuggest/internal.d.ts.map +1 -1
  72. package/lib/internal/template/autosuggest/internal.js +1 -1
  73. package/lib/internal/template/autosuggest/internal.js.map +1 -1
  74. package/lib/internal/template/autosuggest/load-more-controller.d.ts +1 -1
  75. package/lib/internal/template/autosuggest/load-more-controller.d.ts.map +1 -1
  76. package/lib/internal/template/autosuggest/load-more-controller.js.map +1 -1
  77. package/lib/internal/template/badge/interfaces.d.ts +2 -2
  78. package/lib/internal/template/badge/interfaces.d.ts.map +1 -1
  79. package/lib/internal/template/badge/interfaces.js.map +1 -1
  80. package/lib/internal/template/bar-chart/interfaces.d.ts +1 -1
  81. package/lib/internal/template/bar-chart/interfaces.d.ts.map +1 -1
  82. package/lib/internal/template/bar-chart/interfaces.js.map +1 -1
  83. package/lib/internal/template/box/interfaces.d.ts +2 -2
  84. package/lib/internal/template/box/interfaces.d.ts.map +1 -1
  85. package/lib/internal/template/box/interfaces.js.map +1 -1
  86. package/lib/internal/template/breadcrumb-group/all-items-dropdown.d.ts +1 -1
  87. package/lib/internal/template/breadcrumb-group/all-items-dropdown.d.ts.map +1 -1
  88. package/lib/internal/template/breadcrumb-group/all-items-dropdown.js.map +1 -1
  89. package/lib/internal/template/breadcrumb-group/interfaces.d.ts +2 -2
  90. package/lib/internal/template/breadcrumb-group/interfaces.d.ts.map +1 -1
  91. package/lib/internal/template/breadcrumb-group/interfaces.js.map +1 -1
  92. package/lib/internal/template/button/interfaces.d.ts +3 -3
  93. package/lib/internal/template/button/interfaces.d.ts.map +1 -1
  94. package/lib/internal/template/button/interfaces.js.map +1 -1
  95. package/lib/internal/template/button-dropdown/interfaces.d.ts +3 -3
  96. package/lib/internal/template/button-dropdown/interfaces.d.ts.map +1 -1
  97. package/lib/internal/template/button-dropdown/interfaces.js.map +1 -1
  98. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.d.ts +1 -1
  99. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.d.ts.map +1 -1
  100. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.js.map +1 -1
  101. package/lib/internal/template/button-group/file-input-item.d.ts +1 -1
  102. package/lib/internal/template/button-group/file-input-item.d.ts.map +1 -1
  103. package/lib/internal/template/button-group/file-input-item.js.map +1 -1
  104. package/lib/internal/template/button-group/icon-button-item.d.ts +1 -1
  105. package/lib/internal/template/button-group/icon-button-item.d.ts.map +1 -1
  106. package/lib/internal/template/button-group/icon-button-item.js +1 -1
  107. package/lib/internal/template/button-group/icon-button-item.js.map +1 -1
  108. package/lib/internal/template/button-group/icon-toggle-button-item.d.ts +1 -1
  109. package/lib/internal/template/button-group/icon-toggle-button-item.d.ts.map +1 -1
  110. package/lib/internal/template/button-group/icon-toggle-button-item.js.map +1 -1
  111. package/lib/internal/template/button-group/interfaces.d.ts +10 -2
  112. package/lib/internal/template/button-group/interfaces.d.ts.map +1 -1
  113. package/lib/internal/template/button-group/interfaces.js.map +1 -1
  114. package/lib/internal/template/button-group/item-element.d.ts +1 -1
  115. package/lib/internal/template/button-group/item-element.d.ts.map +1 -1
  116. package/lib/internal/template/button-group/item-element.js.map +1 -1
  117. package/lib/internal/template/button-group/menu-dropdown-item.d.ts +1 -1
  118. package/lib/internal/template/button-group/menu-dropdown-item.d.ts.map +1 -1
  119. package/lib/internal/template/button-group/menu-dropdown-item.js.map +1 -1
  120. package/lib/internal/template/calendar/interfaces.d.ts +3 -3
  121. package/lib/internal/template/calendar/interfaces.d.ts.map +1 -1
  122. package/lib/internal/template/calendar/interfaces.js.map +1 -1
  123. package/lib/internal/template/cards/interfaces.d.ts +2 -2
  124. package/lib/internal/template/cards/interfaces.d.ts.map +1 -1
  125. package/lib/internal/template/cards/interfaces.js.map +1 -1
  126. package/lib/internal/template/checkbox/base-checkbox.d.ts +3 -3
  127. package/lib/internal/template/checkbox/base-checkbox.d.ts.map +1 -1
  128. package/lib/internal/template/checkbox/base-checkbox.js.map +1 -1
  129. package/lib/internal/template/checkbox/interfaces.d.ts +2 -2
  130. package/lib/internal/template/checkbox/interfaces.d.ts.map +1 -1
  131. package/lib/internal/template/checkbox/interfaces.js.map +1 -1
  132. package/lib/internal/template/code-editor/error-screen.d.ts +1 -1
  133. package/lib/internal/template/code-editor/error-screen.d.ts.map +1 -1
  134. package/lib/internal/template/code-editor/error-screen.js.map +1 -1
  135. package/lib/internal/template/code-editor/interfaces.d.ts +3 -3
  136. package/lib/internal/template/code-editor/interfaces.d.ts.map +1 -1
  137. package/lib/internal/template/code-editor/interfaces.js.map +1 -1
  138. package/lib/internal/template/code-editor/listeners.d.ts +1 -1
  139. package/lib/internal/template/code-editor/listeners.d.ts.map +1 -1
  140. package/lib/internal/template/code-editor/listeners.js.map +1 -1
  141. package/lib/internal/template/code-editor/preferences-modal.js.map +1 -1
  142. package/lib/internal/template/collection-preferences/interfaces.d.ts +4 -4
  143. package/lib/internal/template/collection-preferences/interfaces.d.ts.map +1 -1
  144. package/lib/internal/template/collection-preferences/interfaces.js.map +1 -1
  145. package/lib/internal/template/column-layout/interfaces.d.ts +1 -1
  146. package/lib/internal/template/column-layout/interfaces.d.ts.map +1 -1
  147. package/lib/internal/template/column-layout/interfaces.js.map +1 -1
  148. package/lib/internal/template/container/interfaces.d.ts +1 -1
  149. package/lib/internal/template/container/interfaces.d.ts.map +1 -1
  150. package/lib/internal/template/container/interfaces.js.map +1 -1
  151. package/lib/internal/template/content-layout/interfaces.d.ts +1 -1
  152. package/lib/internal/template/content-layout/interfaces.d.ts.map +1 -1
  153. package/lib/internal/template/content-layout/interfaces.js.map +1 -1
  154. package/lib/internal/template/contexts/form-field.d.ts +2 -1
  155. package/lib/internal/template/contexts/form-field.d.ts.map +1 -1
  156. package/lib/internal/template/contexts/form-field.js +1 -1
  157. package/lib/internal/template/contexts/form-field.js.map +1 -1
  158. package/lib/internal/template/copy-to-clipboard/interfaces.d.ts +2 -2
  159. package/lib/internal/template/copy-to-clipboard/interfaces.d.ts.map +1 -1
  160. package/lib/internal/template/copy-to-clipboard/interfaces.js.map +1 -1
  161. package/lib/internal/template/date-input/interfaces.d.ts +3 -3
  162. package/lib/internal/template/date-input/interfaces.d.ts.map +1 -1
  163. package/lib/internal/template/date-input/interfaces.js.map +1 -1
  164. package/lib/internal/template/date-input/internal.d.ts.map +1 -1
  165. package/lib/internal/template/date-input/internal.js.map +1 -1
  166. package/lib/internal/template/date-picker/interfaces.d.ts +4 -4
  167. package/lib/internal/template/date-picker/interfaces.d.ts.map +1 -1
  168. package/lib/internal/template/date-picker/interfaces.js.map +1 -1
  169. package/lib/internal/template/date-range-picker/calendar/interfaces.d.ts +1 -1
  170. package/lib/internal/template/date-range-picker/calendar/interfaces.d.ts.map +1 -1
  171. package/lib/internal/template/date-range-picker/calendar/interfaces.js.map +1 -1
  172. package/lib/internal/template/date-range-picker/interfaces.d.ts +4 -4
  173. package/lib/internal/template/date-range-picker/interfaces.d.ts.map +1 -1
  174. package/lib/internal/template/date-range-picker/interfaces.js.map +1 -1
  175. package/lib/internal/template/divider/interfaces.d.ts +2 -2
  176. package/lib/internal/template/divider/interfaces.d.ts.map +1 -1
  177. package/lib/internal/template/divider/interfaces.js.map +1 -1
  178. package/lib/internal/template/drawer/interfaces.d.ts +2 -2
  179. package/lib/internal/template/drawer/interfaces.d.ts.map +1 -1
  180. package/lib/internal/template/drawer/interfaces.js.map +1 -1
  181. package/lib/internal/template/dropdown/interfaces.d.ts +1 -1
  182. package/lib/internal/template/dropdown/interfaces.d.ts.map +1 -1
  183. package/lib/internal/template/dropdown/interfaces.js.map +1 -1
  184. package/lib/internal/template/dropdown/internal.d.ts +1 -1
  185. package/lib/internal/template/dropdown/internal.d.ts.map +1 -1
  186. package/lib/internal/template/dropdown/internal.js.map +1 -1
  187. package/lib/internal/template/error-boundary/interfaces.d.ts +1 -1
  188. package/lib/internal/template/error-boundary/interfaces.d.ts.map +1 -1
  189. package/lib/internal/template/error-boundary/interfaces.js.map +1 -1
  190. package/lib/internal/template/expandable-section/interfaces.d.ts +2 -2
  191. package/lib/internal/template/expandable-section/interfaces.d.ts.map +1 -1
  192. package/lib/internal/template/expandable-section/interfaces.js.map +1 -1
  193. package/lib/internal/template/file-dropzone/interfaces.d.ts +2 -2
  194. package/lib/internal/template/file-dropzone/interfaces.d.ts.map +1 -1
  195. package/lib/internal/template/file-dropzone/interfaces.js.map +1 -1
  196. package/lib/internal/template/file-input/interfaces.d.ts +3 -3
  197. package/lib/internal/template/file-input/interfaces.d.ts.map +1 -1
  198. package/lib/internal/template/file-input/interfaces.js.map +1 -1
  199. package/lib/internal/template/file-token-group/file-token.d.ts +1 -1
  200. package/lib/internal/template/file-token-group/file-token.d.ts.map +1 -1
  201. package/lib/internal/template/file-token-group/file-token.js.map +1 -1
  202. package/lib/internal/template/file-token-group/interfaces.d.ts +2 -2
  203. package/lib/internal/template/file-token-group/interfaces.d.ts.map +1 -1
  204. package/lib/internal/template/file-token-group/interfaces.js.map +1 -1
  205. package/lib/internal/template/file-upload/interfaces.d.ts +3 -3
  206. package/lib/internal/template/file-upload/interfaces.d.ts.map +1 -1
  207. package/lib/internal/template/file-upload/interfaces.js.map +1 -1
  208. package/lib/internal/template/flashbar/common.d.ts +1 -1
  209. package/lib/internal/template/flashbar/interfaces.d.ts +2 -2
  210. package/lib/internal/template/flashbar/interfaces.d.ts.map +1 -1
  211. package/lib/internal/template/flashbar/interfaces.js.map +1 -1
  212. package/lib/internal/template/form/interfaces.d.ts +2 -2
  213. package/lib/internal/template/form/interfaces.d.ts.map +1 -1
  214. package/lib/internal/template/form/interfaces.js.map +1 -1
  215. package/lib/internal/template/form-field/interfaces.d.ts +2 -2
  216. package/lib/internal/template/form-field/interfaces.d.ts.map +1 -1
  217. package/lib/internal/template/form-field/interfaces.js.map +1 -1
  218. package/lib/internal/template/grid/interfaces.d.ts +2 -2
  219. package/lib/internal/template/grid/interfaces.d.ts.map +1 -1
  220. package/lib/internal/template/grid/interfaces.js.map +1 -1
  221. package/lib/internal/template/grid/internal.d.ts +1 -1
  222. package/lib/internal/template/grid/internal.d.ts.map +1 -1
  223. package/lib/internal/template/grid/internal.js.map +1 -1
  224. package/lib/internal/template/header/interfaces.d.ts +1 -1
  225. package/lib/internal/template/header/interfaces.d.ts.map +1 -1
  226. package/lib/internal/template/header/interfaces.js.map +1 -1
  227. package/lib/internal/template/help-panel/interfaces.d.ts +1 -1
  228. package/lib/internal/template/help-panel/interfaces.d.ts.map +1 -1
  229. package/lib/internal/template/help-panel/interfaces.js.map +1 -1
  230. package/lib/internal/template/hotspot/interfaces.d.ts +1 -1
  231. package/lib/internal/template/hotspot/interfaces.d.ts.map +1 -1
  232. package/lib/internal/template/hotspot/interfaces.js.map +1 -1
  233. package/lib/internal/template/icon/interfaces.d.ts +2 -2
  234. package/lib/internal/template/icon/interfaces.d.ts.map +1 -1
  235. package/lib/internal/template/icon/interfaces.js.map +1 -1
  236. package/lib/internal/template/icon-provider/interfaces.d.ts +1 -1
  237. package/lib/internal/template/icon-provider/interfaces.d.ts.map +1 -1
  238. package/lib/internal/template/icon-provider/interfaces.js.map +1 -1
  239. package/lib/internal/template/input/interfaces.d.ts +4 -4
  240. package/lib/internal/template/input/interfaces.d.ts.map +1 -1
  241. package/lib/internal/template/input/interfaces.js.map +1 -1
  242. package/lib/internal/template/input/internal.d.ts +3 -3
  243. package/lib/internal/template/input/internal.d.ts.map +1 -1
  244. package/lib/internal/template/input/internal.js.map +1 -1
  245. package/lib/internal/template/interfaces.d.ts +1 -1
  246. package/lib/internal/template/interfaces.d.ts.map +1 -1
  247. package/lib/internal/template/interfaces.js.map +1 -1
  248. package/lib/internal/template/internal/analytics/components/analytics-funnel.d.ts +2 -1
  249. package/lib/internal/template/internal/analytics/components/analytics-funnel.d.ts.map +1 -1
  250. package/lib/internal/template/internal/analytics/components/analytics-funnel.js.map +1 -1
  251. package/lib/internal/template/internal/analytics/context/analytics-context.d.ts +2 -1
  252. package/lib/internal/template/internal/analytics/context/analytics-context.d.ts.map +1 -1
  253. package/lib/internal/template/internal/analytics/context/analytics-context.js.map +1 -1
  254. package/lib/internal/template/internal/analytics/interfaces.d.ts +2 -15
  255. package/lib/internal/template/internal/analytics/interfaces.d.ts.map +1 -1
  256. package/lib/internal/template/internal/analytics/interfaces.js.map +1 -1
  257. package/lib/internal/template/internal/base-component/index.d.ts +3 -15
  258. package/lib/internal/template/internal/base-component/index.d.ts.map +1 -1
  259. package/lib/internal/template/internal/base-component/index.js.map +1 -1
  260. package/lib/internal/template/internal/base-component/styles.scoped.css +23 -17
  261. package/lib/internal/template/internal/breakpoints.d.ts +2 -1
  262. package/lib/internal/template/internal/breakpoints.d.ts.map +1 -1
  263. package/lib/internal/template/internal/breakpoints.js.map +1 -1
  264. package/lib/internal/template/internal/components/autosuggest-input/index.d.ts +3 -3
  265. package/lib/internal/template/internal/components/autosuggest-input/index.d.ts.map +1 -1
  266. package/lib/internal/template/internal/components/autosuggest-input/index.js.map +1 -1
  267. package/lib/internal/template/internal/components/button-trigger/index.d.ts +2 -2
  268. package/lib/internal/template/internal/components/button-trigger/index.d.ts.map +1 -1
  269. package/lib/internal/template/internal/components/button-trigger/index.js.map +1 -1
  270. package/lib/internal/template/internal/components/cartesian-chart/block-end-labels.d.ts +1 -1
  271. package/lib/internal/template/internal/components/cartesian-chart/block-end-labels.d.ts.map +1 -1
  272. package/lib/internal/template/internal/components/cartesian-chart/block-end-labels.js.map +1 -1
  273. package/lib/internal/template/internal/components/cartesian-chart/interfaces.d.ts +1 -209
  274. package/lib/internal/template/internal/components/cartesian-chart/interfaces.d.ts.map +1 -1
  275. package/lib/internal/template/internal/components/cartesian-chart/interfaces.js +2 -0
  276. package/lib/internal/template/internal/components/cartesian-chart/interfaces.js.map +1 -1
  277. package/lib/internal/template/internal/components/cartesian-chart/label-utils.d.ts +1 -1
  278. package/lib/internal/template/internal/components/cartesian-chart/label-utils.d.ts.map +1 -1
  279. package/lib/internal/template/internal/components/cartesian-chart/label-utils.js.map +1 -1
  280. package/lib/internal/template/internal/components/cartesian-chart/scales.d.ts +1 -1
  281. package/lib/internal/template/internal/components/cartesian-chart/scales.d.ts.map +1 -1
  282. package/lib/internal/template/internal/components/cartesian-chart/scales.js +0 -2
  283. package/lib/internal/template/internal/components/cartesian-chart/scales.js.map +1 -1
  284. package/lib/internal/template/internal/components/cartesian-chart/ticks.d.ts +1 -1
  285. package/lib/internal/template/internal/components/cartesian-chart/ticks.d.ts.map +1 -1
  286. package/lib/internal/template/internal/components/cartesian-chart/ticks.js.map +1 -1
  287. package/lib/internal/template/internal/components/chart-filter/index.d.ts +1 -1
  288. package/lib/internal/template/internal/components/chart-filter/index.d.ts.map +1 -1
  289. package/lib/internal/template/internal/components/chart-filter/index.js.map +1 -1
  290. package/lib/internal/template/internal/components/chart-series-details/index.d.ts +1 -1
  291. package/lib/internal/template/internal/components/chart-series-details/index.d.ts.map +1 -1
  292. package/lib/internal/template/internal/components/chart-series-details/index.js.map +1 -1
  293. package/lib/internal/template/internal/components/chart-series-marker/index.d.ts +1 -1
  294. package/lib/internal/template/internal/components/chart-series-marker/index.d.ts.map +1 -1
  295. package/lib/internal/template/internal/components/chart-series-marker/index.js.map +1 -1
  296. package/lib/internal/template/internal/components/chart-status-container/index.d.ts +2 -2
  297. package/lib/internal/template/internal/components/chart-status-container/index.d.ts.map +1 -1
  298. package/lib/internal/template/internal/components/chart-status-container/index.js.map +1 -1
  299. package/lib/internal/template/internal/components/chart-wrapper/index.d.ts +1 -1
  300. package/lib/internal/template/internal/components/chart-wrapper/index.d.ts.map +1 -1
  301. package/lib/internal/template/internal/components/chart-wrapper/index.js.map +1 -1
  302. package/lib/internal/template/internal/components/checkbox-icon/index.d.ts +1 -1
  303. package/lib/internal/template/internal/components/checkbox-icon/index.d.ts.map +1 -1
  304. package/lib/internal/template/internal/components/checkbox-icon/index.js.map +1 -1
  305. package/lib/internal/template/internal/components/dropdown-status/index.d.ts +3 -3
  306. package/lib/internal/template/internal/components/dropdown-status/index.d.ts.map +1 -1
  307. package/lib/internal/template/internal/components/dropdown-status/index.js.map +1 -1
  308. package/lib/internal/template/internal/components/masked-input/interfaces.d.ts +2 -2
  309. package/lib/internal/template/internal/components/masked-input/interfaces.d.ts.map +1 -1
  310. package/lib/internal/template/internal/components/masked-input/interfaces.js.map +1 -1
  311. package/lib/internal/template/internal/components/masked-input/use-mask.d.ts +1 -1
  312. package/lib/internal/template/internal/components/masked-input/use-mask.d.ts.map +1 -1
  313. package/lib/internal/template/internal/components/masked-input/use-mask.js.map +1 -1
  314. package/lib/internal/template/internal/components/option/interfaces.d.ts +3 -26
  315. package/lib/internal/template/internal/components/option/interfaces.d.ts.map +1 -1
  316. package/lib/internal/template/internal/components/option/interfaces.js.map +1 -1
  317. package/lib/internal/template/internal/components/option/option-announcer.d.ts +1 -1
  318. package/lib/internal/template/internal/components/option/option-announcer.d.ts.map +1 -1
  319. package/lib/internal/template/internal/components/option/option-announcer.js.map +1 -1
  320. package/lib/internal/template/internal/components/option/utils/filter-options.d.ts +2 -1
  321. package/lib/internal/template/internal/components/option/utils/filter-options.d.ts.map +1 -1
  322. package/lib/internal/template/internal/components/option/utils/filter-options.js.map +1 -1
  323. package/lib/internal/template/internal/components/option/utils/flatten-options.d.ts +2 -1
  324. package/lib/internal/template/internal/components/option/utils/flatten-options.d.ts.map +1 -1
  325. package/lib/internal/template/internal/components/option/utils/flatten-options.js.map +1 -1
  326. package/lib/internal/template/internal/components/options-list/index.d.ts +3 -3
  327. package/lib/internal/template/internal/components/options-list/index.d.ts.map +1 -1
  328. package/lib/internal/template/internal/components/options-list/index.js +1 -1
  329. package/lib/internal/template/internal/components/options-list/index.js.map +1 -1
  330. package/lib/internal/template/internal/components/options-list/utils/use-keyboard.d.ts +1 -1
  331. package/lib/internal/template/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
  332. package/lib/internal/template/internal/components/options-list/utils/use-keyboard.js.map +1 -1
  333. package/lib/internal/template/internal/components/radio-button/index.d.ts +1 -1
  334. package/lib/internal/template/internal/components/radio-button/index.d.ts.map +1 -1
  335. package/lib/internal/template/internal/components/radio-button/index.js.map +1 -1
  336. package/lib/internal/template/internal/components/radio-button/interfaces.d.ts +1 -128
  337. package/lib/internal/template/internal/components/radio-button/interfaces.d.ts.map +1 -1
  338. package/lib/internal/template/internal/components/radio-button/interfaces.js +2 -0
  339. package/lib/internal/template/internal/components/radio-button/interfaces.js.map +1 -1
  340. package/lib/internal/template/internal/components/selectable-item/interfaces.d.ts +1 -1
  341. package/lib/internal/template/internal/components/selectable-item/interfaces.d.ts.map +1 -1
  342. package/lib/internal/template/internal/components/selectable-item/interfaces.js.map +1 -1
  343. package/lib/internal/template/internal/components/sortable-area/interfaces.d.ts +3 -9
  344. package/lib/internal/template/internal/components/sortable-area/interfaces.d.ts.map +1 -1
  345. package/lib/internal/template/internal/components/sortable-area/interfaces.js.map +1 -1
  346. package/lib/internal/template/internal/components/token-list/token-limit-toggle.d.ts +1 -1
  347. package/lib/internal/template/internal/components/token-list/token-limit-toggle.d.ts.map +1 -1
  348. package/lib/internal/template/internal/components/token-list/token-limit-toggle.js.map +1 -1
  349. package/lib/internal/template/internal/context/form-field-context.d.ts +2 -54
  350. package/lib/internal/template/internal/context/form-field-context.d.ts.map +1 -1
  351. package/lib/internal/template/internal/context/form-field-context.js.map +1 -1
  352. package/lib/internal/template/internal/do-not-use/feature-prompt/interfaces.d.ts +1 -1
  353. package/lib/internal/template/internal/do-not-use/feature-prompt/interfaces.d.ts.map +1 -1
  354. package/lib/internal/template/internal/do-not-use/feature-prompt/interfaces.js.map +1 -1
  355. package/lib/internal/template/internal/do-not-use/feature-prompt/internal.d.ts +1 -1
  356. package/lib/internal/template/internal/do-not-use/feature-prompt/internal.d.ts.map +1 -1
  357. package/lib/internal/template/internal/do-not-use/feature-prompt/internal.js.map +1 -1
  358. package/lib/internal/template/internal/environment.js +2 -2
  359. package/lib/internal/template/internal/environment.json +2 -2
  360. package/lib/internal/template/internal/events/index.d.ts +2 -24
  361. package/lib/internal/template/internal/events/index.d.ts.map +1 -1
  362. package/lib/internal/template/internal/events/index.js.map +1 -1
  363. package/lib/internal/template/internal/generated/styles/tokens.d.ts +1 -0
  364. package/lib/internal/template/internal/generated/styles/tokens.js +1 -0
  365. package/lib/internal/template/internal/generated/theming/index.cjs +60 -21
  366. package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +36 -0
  367. package/lib/internal/template/internal/generated/theming/index.d.ts +36 -0
  368. package/lib/internal/template/internal/generated/theming/index.js +60 -21
  369. package/lib/internal/template/internal/hooks/check-controlled/index.d.ts +1 -1
  370. package/lib/internal/template/internal/hooks/check-controlled/index.d.ts.map +1 -1
  371. package/lib/internal/template/internal/hooks/check-controlled/index.js.map +1 -1
  372. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.d.ts +1 -1
  373. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.d.ts.map +1 -1
  374. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.js.map +1 -1
  375. package/lib/internal/template/internal/hooks/use-base-component/index.d.ts +1 -1
  376. package/lib/internal/template/internal/hooks/use-base-component/index.d.ts.map +1 -1
  377. package/lib/internal/template/internal/hooks/use-base-component/index.js.map +1 -1
  378. package/lib/internal/template/internal/hooks/use-focus-tracker.d.ts +1 -1
  379. package/lib/internal/template/internal/hooks/use-focus-tracker.d.ts.map +1 -1
  380. package/lib/internal/template/internal/hooks/use-focus-tracker.js.map +1 -1
  381. package/lib/internal/template/internal/plugins/controllers/drawers.d.ts +1 -1
  382. package/lib/internal/template/internal/plugins/controllers/drawers.d.ts.map +1 -1
  383. package/lib/internal/template/internal/plugins/controllers/drawers.js.map +1 -1
  384. package/lib/internal/template/internal/plugins/widget/interfaces.d.ts +1 -1
  385. package/lib/internal/template/internal/plugins/widget/interfaces.d.ts.map +1 -1
  386. package/lib/internal/template/internal/plugins/widget/interfaces.js.map +1 -1
  387. package/lib/internal/template/internal/utils/date-time/interfaces.d.ts +1 -16
  388. package/lib/internal/template/internal/utils/date-time/interfaces.d.ts.map +1 -1
  389. package/lib/internal/template/internal/utils/date-time/interfaces.js.map +1 -1
  390. package/lib/internal/template/internal/utils/with-native-attributes.d.ts +2 -1
  391. package/lib/internal/template/internal/utils/with-native-attributes.d.ts.map +1 -1
  392. package/lib/internal/template/internal/utils/with-native-attributes.js.map +1 -1
  393. package/lib/internal/template/item-card/interfaces.d.ts +2 -2
  394. package/lib/internal/template/item-card/interfaces.d.ts.map +1 -1
  395. package/lib/internal/template/item-card/interfaces.js.map +1 -1
  396. package/lib/internal/template/key-value-pairs/interfaces.d.ts +1 -1
  397. package/lib/internal/template/key-value-pairs/interfaces.d.ts.map +1 -1
  398. package/lib/internal/template/key-value-pairs/interfaces.js.map +1 -1
  399. package/lib/internal/template/link/interfaces.d.ts +3 -3
  400. package/lib/internal/template/link/interfaces.d.ts.map +1 -1
  401. package/lib/internal/template/link/interfaces.js.map +1 -1
  402. package/lib/internal/template/list/interfaces.d.ts +3 -3
  403. package/lib/internal/template/list/interfaces.d.ts.map +1 -1
  404. package/lib/internal/template/list/interfaces.js.map +1 -1
  405. package/lib/internal/template/live-region/interfaces.d.ts +1 -1
  406. package/lib/internal/template/live-region/interfaces.d.ts.map +1 -1
  407. package/lib/internal/template/live-region/interfaces.js.map +1 -1
  408. package/lib/internal/template/mixed-line-bar-chart/chart-container.d.ts +1 -1
  409. package/lib/internal/template/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
  410. package/lib/internal/template/mixed-line-bar-chart/chart-container.js.map +1 -1
  411. package/lib/internal/template/mixed-line-bar-chart/format-highlighted.d.ts +1 -1
  412. package/lib/internal/template/mixed-line-bar-chart/format-highlighted.d.ts.map +1 -1
  413. package/lib/internal/template/mixed-line-bar-chart/format-highlighted.js.map +1 -1
  414. package/lib/internal/template/mixed-line-bar-chart/interfaces.d.ts +1 -1
  415. package/lib/internal/template/mixed-line-bar-chart/interfaces.d.ts.map +1 -1
  416. package/lib/internal/template/mixed-line-bar-chart/interfaces.js.map +1 -1
  417. package/lib/internal/template/modal/interfaces.d.ts +3 -3
  418. package/lib/internal/template/modal/interfaces.d.ts.map +1 -1
  419. package/lib/internal/template/modal/interfaces.js.map +1 -1
  420. package/lib/internal/template/multiselect/embedded.d.ts +2 -2
  421. package/lib/internal/template/multiselect/interfaces.d.ts +2 -2
  422. package/lib/internal/template/multiselect/interfaces.d.ts.map +1 -1
  423. package/lib/internal/template/multiselect/interfaces.js.map +1 -1
  424. package/lib/internal/template/multiselect/internal.d.ts +1 -1
  425. package/lib/internal/template/multiselect/use-multiselect.d.ts +8 -8
  426. package/lib/internal/template/multiselect/use-multiselect.d.ts.map +1 -1
  427. package/lib/internal/template/multiselect/use-multiselect.js.map +1 -1
  428. package/lib/internal/template/navigable-group/interfaces.d.ts +1 -1
  429. package/lib/internal/template/navigable-group/interfaces.d.ts.map +1 -1
  430. package/lib/internal/template/navigable-group/interfaces.js.map +1 -1
  431. package/lib/internal/template/pagination/interfaces.d.ts +1 -1
  432. package/lib/internal/template/pagination/interfaces.d.ts.map +1 -1
  433. package/lib/internal/template/pagination/interfaces.js.map +1 -1
  434. package/lib/internal/template/pagination/internal.d.ts.map +1 -1
  435. package/lib/internal/template/pagination/internal.js.map +1 -1
  436. package/lib/internal/template/panel-layout/interfaces.d.ts +2 -2
  437. package/lib/internal/template/panel-layout/interfaces.d.ts.map +1 -1
  438. package/lib/internal/template/panel-layout/interfaces.js.map +1 -1
  439. package/lib/internal/template/pie-chart/interfaces.d.ts +2 -2
  440. package/lib/internal/template/pie-chart/interfaces.d.ts.map +1 -1
  441. package/lib/internal/template/pie-chart/interfaces.js.map +1 -1
  442. package/lib/internal/template/popover/interfaces.d.ts +1 -1
  443. package/lib/internal/template/popover/interfaces.d.ts.map +1 -1
  444. package/lib/internal/template/popover/interfaces.js.map +1 -1
  445. package/lib/internal/template/popover/internal.d.ts +1 -1
  446. package/lib/internal/template/popover/internal.d.ts.map +1 -1
  447. package/lib/internal/template/popover/internal.js.map +1 -1
  448. package/lib/internal/template/progress-bar/interfaces.d.ts +2 -2
  449. package/lib/internal/template/progress-bar/interfaces.d.ts.map +1 -1
  450. package/lib/internal/template/progress-bar/interfaces.js.map +1 -1
  451. package/lib/internal/template/prompt-input/core/menu-state.d.ts +2 -2
  452. package/lib/internal/template/prompt-input/core/menu-state.d.ts.map +1 -1
  453. package/lib/internal/template/prompt-input/core/menu-state.js.map +1 -1
  454. package/lib/internal/template/prompt-input/interfaces.d.ts +6 -6
  455. package/lib/internal/template/prompt-input/interfaces.d.ts.map +1 -1
  456. package/lib/internal/template/prompt-input/interfaces.js.map +1 -1
  457. package/lib/internal/template/property-filter/controller.d.ts +2 -2
  458. package/lib/internal/template/property-filter/controller.d.ts.map +1 -1
  459. package/lib/internal/template/property-filter/controller.js.map +1 -1
  460. package/lib/internal/template/property-filter/filter-options.js.map +1 -1
  461. package/lib/internal/template/property-filter/interfaces.d.ts +4 -4
  462. package/lib/internal/template/property-filter/interfaces.d.ts.map +1 -1
  463. package/lib/internal/template/property-filter/interfaces.js.map +1 -1
  464. package/lib/internal/template/property-filter/property-editor.d.ts +2 -2
  465. package/lib/internal/template/property-filter/property-editor.d.ts.map +1 -1
  466. package/lib/internal/template/property-filter/property-editor.js.map +1 -1
  467. package/lib/internal/template/property-filter/property-filter-autosuggest.d.ts +1 -1
  468. package/lib/internal/template/property-filter/property-filter-autosuggest.d.ts.map +1 -1
  469. package/lib/internal/template/property-filter/property-filter-autosuggest.js +1 -1
  470. package/lib/internal/template/property-filter/property-filter-autosuggest.js.map +1 -1
  471. package/lib/internal/template/property-filter/token-editor-inputs.d.ts +2 -2
  472. package/lib/internal/template/property-filter/token-editor-inputs.d.ts.map +1 -1
  473. package/lib/internal/template/property-filter/token-editor-inputs.js.map +1 -1
  474. package/lib/internal/template/property-filter/token-editor.d.ts +2 -2
  475. package/lib/internal/template/property-filter/token-editor.d.ts.map +1 -1
  476. package/lib/internal/template/property-filter/token-editor.js.map +1 -1
  477. package/lib/internal/template/property-filter/token.d.ts +2 -2
  478. package/lib/internal/template/property-filter/token.d.ts.map +1 -1
  479. package/lib/internal/template/property-filter/token.js.map +1 -1
  480. package/lib/internal/template/property-filter/use-load-items.d.ts +1 -1
  481. package/lib/internal/template/property-filter/use-load-items.d.ts.map +1 -1
  482. package/lib/internal/template/property-filter/use-load-items.js.map +1 -1
  483. package/lib/internal/template/radio-button/interfaces.d.ts +128 -2
  484. package/lib/internal/template/radio-button/interfaces.d.ts.map +1 -1
  485. package/lib/internal/template/radio-button/interfaces.js.map +1 -1
  486. package/lib/internal/template/radio-group/interfaces.d.ts +4 -4
  487. package/lib/internal/template/radio-group/interfaces.d.ts.map +1 -1
  488. package/lib/internal/template/radio-group/interfaces.js.map +1 -1
  489. package/lib/internal/template/s3-resource-selector/interfaces.d.ts +2 -2
  490. package/lib/internal/template/s3-resource-selector/interfaces.d.ts.map +1 -1
  491. package/lib/internal/template/s3-resource-selector/interfaces.js.map +1 -1
  492. package/lib/internal/template/s3-resource-selector/s3-in-context/index.d.ts +1 -1
  493. package/lib/internal/template/s3-resource-selector/s3-in-context/index.d.ts.map +1 -1
  494. package/lib/internal/template/s3-resource-selector/s3-in-context/index.js.map +1 -1
  495. package/lib/internal/template/s3-resource-selector/s3-in-context/use-versions-fetch.d.ts +1 -1
  496. package/lib/internal/template/segmented-control/interfaces.d.ts +2 -2
  497. package/lib/internal/template/segmented-control/interfaces.d.ts.map +1 -1
  498. package/lib/internal/template/segmented-control/interfaces.js.map +1 -1
  499. package/lib/internal/template/select/interfaces.d.ts +5 -5
  500. package/lib/internal/template/select/interfaces.d.ts.map +1 -1
  501. package/lib/internal/template/select/interfaces.js.map +1 -1
  502. package/lib/internal/template/select/internal.d.ts.map +1 -1
  503. package/lib/internal/template/select/internal.js.map +1 -1
  504. package/lib/internal/template/select/parts/item.d.ts.map +1 -1
  505. package/lib/internal/template/select/parts/item.js.map +1 -1
  506. package/lib/internal/template/select/parts/multiselect-item.d.ts.map +1 -1
  507. package/lib/internal/template/select/parts/multiselect-item.js.map +1 -1
  508. package/lib/internal/template/select/parts/trigger.d.ts +2 -2
  509. package/lib/internal/template/select/parts/trigger.d.ts.map +1 -1
  510. package/lib/internal/template/select/parts/trigger.js.map +1 -1
  511. package/lib/internal/template/select/utils/connect-options.d.ts +2 -1
  512. package/lib/internal/template/select/utils/connect-options.d.ts.map +1 -1
  513. package/lib/internal/template/select/utils/connect-options.js.map +1 -1
  514. package/lib/internal/template/select/utils/use-announcement.d.ts +1 -1
  515. package/lib/internal/template/select/utils/use-announcement.d.ts.map +1 -1
  516. package/lib/internal/template/select/utils/use-announcement.js.map +1 -1
  517. package/lib/internal/template/select/utils/use-load-items.d.ts +2 -2
  518. package/lib/internal/template/select/utils/use-load-items.d.ts.map +1 -1
  519. package/lib/internal/template/select/utils/use-load-items.js.map +1 -1
  520. package/lib/internal/template/select/utils/use-native-search.d.ts +2 -1
  521. package/lib/internal/template/select/utils/use-native-search.d.ts.map +1 -1
  522. package/lib/internal/template/select/utils/use-native-search.js.map +1 -1
  523. package/lib/internal/template/select/utils/use-select.d.ts +4 -3
  524. package/lib/internal/template/select/utils/use-select.d.ts.map +1 -1
  525. package/lib/internal/template/select/utils/use-select.js.map +1 -1
  526. package/lib/internal/template/side-navigation/interfaces.d.ts +2 -2
  527. package/lib/internal/template/side-navigation/interfaces.d.ts.map +1 -1
  528. package/lib/internal/template/side-navigation/interfaces.js.map +1 -1
  529. package/lib/internal/template/side-navigation/parts.d.ts.map +1 -1
  530. package/lib/internal/template/side-navigation/parts.js.map +1 -1
  531. package/lib/internal/template/skeleton/interfaces.d.ts +1 -1
  532. package/lib/internal/template/skeleton/interfaces.d.ts.map +1 -1
  533. package/lib/internal/template/skeleton/interfaces.js.map +1 -1
  534. package/lib/internal/template/slider/interfaces.d.ts +3 -3
  535. package/lib/internal/template/slider/interfaces.d.ts.map +1 -1
  536. package/lib/internal/template/slider/interfaces.js.map +1 -1
  537. package/lib/internal/template/space-between/interfaces.d.ts +2 -2
  538. package/lib/internal/template/space-between/interfaces.d.ts.map +1 -1
  539. package/lib/internal/template/space-between/interfaces.js.map +1 -1
  540. package/lib/internal/template/spinner/interfaces.d.ts +2 -2
  541. package/lib/internal/template/spinner/interfaces.d.ts.map +1 -1
  542. package/lib/internal/template/spinner/interfaces.js.map +1 -1
  543. package/lib/internal/template/split-panel/interfaces.d.ts +1 -1
  544. package/lib/internal/template/split-panel/interfaces.d.ts.map +1 -1
  545. package/lib/internal/template/split-panel/interfaces.js.map +1 -1
  546. package/lib/internal/template/status-indicator/interfaces.d.ts +2 -2
  547. package/lib/internal/template/status-indicator/interfaces.d.ts.map +1 -1
  548. package/lib/internal/template/status-indicator/interfaces.js.map +1 -1
  549. package/lib/internal/template/steps/interfaces.d.ts +1 -1
  550. package/lib/internal/template/steps/interfaces.d.ts.map +1 -1
  551. package/lib/internal/template/steps/interfaces.js.map +1 -1
  552. package/lib/internal/template/table/interfaces.d.ts +2 -2
  553. package/lib/internal/template/table/interfaces.d.ts.map +1 -1
  554. package/lib/internal/template/table/interfaces.js.map +1 -1
  555. package/lib/internal/template/table/thead.d.ts +1 -1
  556. package/lib/internal/template/table/thead.d.ts.map +1 -1
  557. package/lib/internal/template/table/thead.js.map +1 -1
  558. package/lib/internal/template/table/use-cell-editing.d.ts +1 -1
  559. package/lib/internal/template/table/use-cell-editing.d.ts.map +1 -1
  560. package/lib/internal/template/table/use-cell-editing.js.map +1 -1
  561. package/lib/internal/template/tabs/interfaces.d.ts +2 -2
  562. package/lib/internal/template/tabs/interfaces.d.ts.map +1 -1
  563. package/lib/internal/template/tabs/interfaces.js.map +1 -1
  564. package/lib/internal/template/tag-editor/index.d.ts.map +1 -1
  565. package/lib/internal/template/tag-editor/index.js.map +1 -1
  566. package/lib/internal/template/tag-editor/interfaces.d.ts +2 -2
  567. package/lib/internal/template/tag-editor/interfaces.d.ts.map +1 -1
  568. package/lib/internal/template/tag-editor/interfaces.js.map +1 -1
  569. package/lib/internal/template/tag-editor/internal.js.map +1 -1
  570. package/lib/internal/template/text-content/interfaces.d.ts +1 -1
  571. package/lib/internal/template/text-content/interfaces.d.ts.map +1 -1
  572. package/lib/internal/template/text-content/interfaces.js.map +1 -1
  573. package/lib/internal/template/text-filter/interfaces.d.ts +3 -3
  574. package/lib/internal/template/text-filter/interfaces.d.ts.map +1 -1
  575. package/lib/internal/template/text-filter/interfaces.js.map +1 -1
  576. package/lib/internal/template/textarea/interfaces.d.ts +4 -4
  577. package/lib/internal/template/textarea/interfaces.d.ts.map +1 -1
  578. package/lib/internal/template/textarea/interfaces.js.map +1 -1
  579. package/lib/internal/template/tiles/interfaces.d.ts +4 -4
  580. package/lib/internal/template/tiles/interfaces.d.ts.map +1 -1
  581. package/lib/internal/template/tiles/interfaces.js.map +1 -1
  582. package/lib/internal/template/time-input/interfaces.d.ts +2 -2
  583. package/lib/internal/template/time-input/interfaces.d.ts.map +1 -1
  584. package/lib/internal/template/time-input/interfaces.js.map +1 -1
  585. package/lib/internal/template/toggle/interfaces.d.ts +2 -2
  586. package/lib/internal/template/toggle/interfaces.d.ts.map +1 -1
  587. package/lib/internal/template/toggle/interfaces.js.map +1 -1
  588. package/lib/internal/template/toggle-button/interfaces.d.ts +2 -2
  589. package/lib/internal/template/toggle-button/interfaces.d.ts.map +1 -1
  590. package/lib/internal/template/toggle-button/interfaces.js.map +1 -1
  591. package/lib/internal/template/token/dismiss-button.d.ts +1 -1
  592. package/lib/internal/template/token/dismiss-button.d.ts.map +1 -1
  593. package/lib/internal/template/token/dismiss-button.js.map +1 -1
  594. package/lib/internal/template/token/interfaces.d.ts +2 -2
  595. package/lib/internal/template/token/interfaces.d.ts.map +1 -1
  596. package/lib/internal/template/token/interfaces.js.map +1 -1
  597. package/lib/internal/template/token-group/interfaces.d.ts +2 -2
  598. package/lib/internal/template/token-group/interfaces.d.ts.map +1 -1
  599. package/lib/internal/template/token-group/interfaces.js.map +1 -1
  600. package/lib/internal/template/tooltip/interfaces.d.ts +1 -1
  601. package/lib/internal/template/tooltip/interfaces.d.ts.map +1 -1
  602. package/lib/internal/template/tooltip/interfaces.js.map +1 -1
  603. package/lib/internal/template/top-navigation/interfaces.d.ts +2 -2
  604. package/lib/internal/template/top-navigation/interfaces.d.ts.map +1 -1
  605. package/lib/internal/template/top-navigation/interfaces.js.map +1 -1
  606. package/lib/internal/template/tree-view/interfaces.d.ts +2 -2
  607. package/lib/internal/template/tree-view/interfaces.d.ts.map +1 -1
  608. package/lib/internal/template/tree-view/interfaces.js.map +1 -1
  609. package/lib/internal/template/truncated-text/interfaces.d.ts +1 -1
  610. package/lib/internal/template/truncated-text/interfaces.d.ts.map +1 -1
  611. package/lib/internal/template/truncated-text/interfaces.js.map +1 -1
  612. package/lib/internal/template/tutorial-panel/index.js.map +1 -1
  613. package/lib/internal/template/tutorial-panel/interfaces.d.ts +2 -2
  614. package/lib/internal/template/tutorial-panel/interfaces.d.ts.map +1 -1
  615. package/lib/internal/template/tutorial-panel/interfaces.js.map +1 -1
  616. package/lib/internal/template/types/analytics.d.ts +16 -0
  617. package/lib/internal/template/types/analytics.d.ts.map +1 -0
  618. package/lib/internal/template/types/analytics.js +4 -0
  619. package/lib/internal/template/types/analytics.js.map +1 -0
  620. package/lib/internal/template/types/base-component.d.ts +15 -0
  621. package/lib/internal/template/types/base-component.d.ts.map +1 -0
  622. package/lib/internal/template/types/base-component.js +4 -0
  623. package/lib/internal/template/types/base-component.js.map +1 -0
  624. package/lib/internal/template/types/breakpoint.d.ts +2 -0
  625. package/lib/internal/template/types/breakpoint.d.ts.map +1 -0
  626. package/lib/internal/template/types/breakpoint.js +2 -0
  627. package/lib/internal/template/types/breakpoint.js.map +1 -0
  628. package/lib/internal/template/types/cartesian-chart.d.ts +210 -0
  629. package/lib/internal/template/types/cartesian-chart.d.ts.map +1 -0
  630. package/lib/internal/template/types/cartesian-chart.js +2 -0
  631. package/lib/internal/template/types/cartesian-chart.js.map +1 -0
  632. package/lib/internal/template/types/date-time.d.ts +17 -0
  633. package/lib/internal/template/types/date-time.d.ts.map +1 -0
  634. package/lib/internal/template/types/date-time.js +4 -0
  635. package/lib/internal/template/types/date-time.js.map +1 -0
  636. package/lib/internal/template/{internal/components/dropdown-status/interfaces.d.ts → types/dropdown-status.d.ts} +1 -1
  637. package/lib/internal/template/types/dropdown-status.d.ts.map +1 -0
  638. package/lib/internal/template/types/dropdown-status.js +2 -0
  639. package/lib/internal/template/types/dropdown-status.js.map +1 -0
  640. package/lib/internal/template/types/events.d.ts +25 -0
  641. package/lib/internal/template/types/events.d.ts.map +1 -0
  642. package/lib/internal/template/types/events.js +4 -0
  643. package/lib/internal/template/types/events.js.map +1 -0
  644. package/lib/internal/template/types/form-field.d.ts +55 -0
  645. package/lib/internal/template/types/form-field.d.ts.map +1 -0
  646. package/lib/internal/template/types/form-field.js +4 -0
  647. package/lib/internal/template/types/form-field.js.map +1 -0
  648. package/lib/internal/template/types/native-attributes.d.ts +3 -0
  649. package/lib/internal/template/types/native-attributes.d.ts.map +1 -0
  650. package/lib/internal/template/types/native-attributes.js +2 -0
  651. package/lib/internal/template/types/native-attributes.js.map +1 -0
  652. package/lib/internal/template/types/option.d.ts +27 -0
  653. package/lib/internal/template/types/option.d.ts.map +1 -0
  654. package/lib/internal/template/types/option.js +2 -0
  655. package/lib/internal/template/types/option.js.map +1 -0
  656. package/lib/internal/template/types/sortable-area.d.ts +9 -0
  657. package/lib/internal/template/types/sortable-area.d.ts.map +1 -0
  658. package/lib/internal/template/types/sortable-area.js +4 -0
  659. package/lib/internal/template/types/sortable-area.js.map +1 -0
  660. package/lib/internal/template/wizard/interfaces.d.ts +3 -3
  661. package/lib/internal/template/wizard/interfaces.d.ts.map +1 -1
  662. package/lib/internal/template/wizard/interfaces.js.map +1 -1
  663. package/package.json +1 -1
  664. package/lib/internal/template/internal/components/dropdown-status/interfaces.d.ts.map +0 -1
  665. package/lib/internal/template/internal/components/dropdown-status/interfaces.js +0 -2
  666. package/lib/internal/template/internal/components/dropdown-status/interfaces.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/radio-button/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,EAAE,8BAA8B,EAAE,MAAM,kEAAkE,CAAC;AAElH,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,cAAc,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,oBAAsC,MAAM,oCAAoC,CAAC;AAExF,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,SAA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EACf,EAAE,EAAE,EAAE,EACN,EAAE,EAAE,EAAE,EACN,CAAC,EAAE,EAAE,EACL,KAAK,EAAE,mBAAmB,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,GAC9D,CACE,GAER,CACH,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';\nimport { useSingleTabStopNavigation } from '@cloudscape-design/component-toolkit/internal';\nimport { copyAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { getBaseProps } from '../../base-component';\nimport AbstractSwitch from '../../components/abstract-switch';\nimport { fireNonCancelableEvent } from '../../events';\nimport { InternalBaseComponentProps } from '../../hooks/use-base-component';\nimport WithNativeAttributes, { SkipWarnings } from '../../utils/with-native-attributes';\nimport { RadioButtonProps } from './interfaces';\nimport { getAbstractSwitchStyles, getInnerCircleStyle, getOuterCircleStyle } from './style';\n\nimport styles from './styles.css.js';\nimport testUtilStyles from './test-classes/styles.css.js';\n\nexport interface InternalRadioButtonProps extends RadioButtonProps, InternalBaseComponentProps {\n __skipNativeAttributesWarnings?: SkipWarnings;\n}\n\nexport default React.forwardRef(function RadioButton(\n {\n name,\n children,\n value,\n checked,\n description,\n disabled,\n controlId,\n readOnly,\n className,\n style,\n nativeInputAttributes,\n onSelect,\n __skipNativeAttributesWarnings,\n ...rest\n }: InternalRadioButtonProps,\n ref: React.Ref<HTMLInputElement>\n) {\n const radioButtonRef = useRef<HTMLInputElement>(null);\n const mergedRefs = useMergeRefs(radioButtonRef, ref);\n\n const { tabIndex } = useSingleTabStopNavigation(radioButtonRef);\n const baseProps = getBaseProps(rest);\n\n return (\n <AbstractSwitch\n {...baseProps}\n className={clsx(testUtilStyles.root, className)}\n controlClassName={styles['radio-control']}\n outlineClassName={styles.outline}\n label={children}\n description={description}\n disabled={disabled}\n readOnly={readOnly}\n controlId={controlId}\n style={getAbstractSwitchStyles(style, checked, disabled, readOnly)}\n __internalRootRef={rest.__internalRootRef}\n {...copyAnalyticsMetadataAttribute(rest)}\n nativeControl={nativeControlProps => (\n <WithNativeAttributes<HTMLInputElement, React.InputHTMLAttributes<HTMLInputElement>>\n {...nativeControlProps}\n tag=\"input\"\n componentName=\"RadioButton\"\n nativeAttributes={nativeInputAttributes}\n skipWarnings={__skipNativeAttributesWarnings}\n tabIndex={tabIndex}\n type=\"radio\"\n ref={mergedRefs}\n name={name}\n value={value}\n checked={checked}\n aria-disabled={readOnly && !disabled ? 'true' : undefined}\n // empty handler to suppress React controllability warning\n onChange={() => {}}\n />\n )}\n onClick={() => {\n radioButtonRef.current?.focus();\n if (!checked) {\n fireNonCancelableEvent(onSelect);\n }\n }}\n styledControl={\n <svg viewBox=\"0 0 100 100\" focusable=\"false\" aria-hidden=\"true\">\n <circle\n className={clsx(styles['styled-circle-border'], {\n [styles['styled-circle-disabled']]: disabled,\n [styles['styled-circle-readonly']]: readOnly,\n })}\n strokeWidth={6.25}\n cx={50}\n cy={50}\n r={46}\n style={getOuterCircleStyle(style, checked, disabled, readOnly)}\n />\n <circle\n className={clsx(styles['styled-circle-fill'], {\n [styles['styled-circle-disabled']]: disabled,\n [styles['styled-circle-checked']]: checked,\n [styles['styled-circle-readonly']]: readOnly,\n })}\n strokeWidth={30}\n cx={50}\n cy={50}\n r={35}\n style={getInnerCircleStyle(style, checked, disabled, readOnly)}\n />\n </svg>\n }\n />\n );\n});\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/radio-button/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE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,EACN,CAAC,EAAE,EAAE,EACL,KAAK,EAAE,mBAAmB,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,GAC9D;YACF,gCACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE;oBAC5C,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC,EAAE,QAAQ;oBAC5C,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,EAAE,OAAO;oBAC1C,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC,EAAE,QAAQ;iBAC7C,CAAC,EACF,WAAW,EAAE,EAAE,EACf,EAAE,EAAE,EAAE,EACN,EAAE,EAAE,EAAE,EACN,CAAC,EAAE,EAAE,EACL,KAAK,EAAE,mBAAmB,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,GAC9D,CACE,GAER,CACH,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';\nimport { useSingleTabStopNavigation } from '@cloudscape-design/component-toolkit/internal';\nimport { copyAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { RadioButtonProps } from '../../../radio-button/interfaces';\nimport { getBaseProps } from '../../base-component';\nimport AbstractSwitch from '../../components/abstract-switch';\nimport { fireNonCancelableEvent } from '../../events';\nimport { InternalBaseComponentProps } from '../../hooks/use-base-component';\nimport WithNativeAttributes, { SkipWarnings } from '../../utils/with-native-attributes';\nimport { getAbstractSwitchStyles, getInnerCircleStyle, getOuterCircleStyle } from './style';\n\nimport styles from './styles.css.js';\nimport testUtilStyles from './test-classes/styles.css.js';\n\nexport interface InternalRadioButtonProps extends RadioButtonProps, InternalBaseComponentProps {\n __skipNativeAttributesWarnings?: SkipWarnings;\n}\n\nexport default React.forwardRef(function RadioButton(\n {\n name,\n children,\n value,\n checked,\n description,\n disabled,\n controlId,\n readOnly,\n className,\n style,\n nativeInputAttributes,\n onSelect,\n __skipNativeAttributesWarnings,\n ...rest\n }: InternalRadioButtonProps,\n ref: React.Ref<HTMLInputElement>\n) {\n const radioButtonRef = useRef<HTMLInputElement>(null);\n const mergedRefs = useMergeRefs(radioButtonRef, ref);\n\n const { tabIndex } = useSingleTabStopNavigation(radioButtonRef);\n const baseProps = getBaseProps(rest);\n\n return (\n <AbstractSwitch\n {...baseProps}\n className={clsx(testUtilStyles.root, className)}\n controlClassName={styles['radio-control']}\n outlineClassName={styles.outline}\n label={children}\n description={description}\n disabled={disabled}\n readOnly={readOnly}\n controlId={controlId}\n style={getAbstractSwitchStyles(style, checked, disabled, readOnly)}\n __internalRootRef={rest.__internalRootRef}\n {...copyAnalyticsMetadataAttribute(rest)}\n nativeControl={nativeControlProps => (\n <WithNativeAttributes<HTMLInputElement, React.InputHTMLAttributes<HTMLInputElement>>\n {...nativeControlProps}\n tag=\"input\"\n componentName=\"RadioButton\"\n nativeAttributes={nativeInputAttributes}\n skipWarnings={__skipNativeAttributesWarnings}\n tabIndex={tabIndex}\n type=\"radio\"\n ref={mergedRefs}\n name={name}\n value={value}\n checked={checked}\n aria-disabled={readOnly && !disabled ? 'true' : undefined}\n // empty handler to suppress React controllability warning\n onChange={() => {}}\n />\n )}\n onClick={() => {\n radioButtonRef.current?.focus();\n if (!checked) {\n fireNonCancelableEvent(onSelect);\n }\n }}\n styledControl={\n <svg viewBox=\"0 0 100 100\" focusable=\"false\" aria-hidden=\"true\">\n <circle\n className={clsx(styles['styled-circle-border'], {\n [styles['styled-circle-disabled']]: disabled,\n [styles['styled-circle-readonly']]: readOnly,\n })}\n strokeWidth={6.25}\n cx={50}\n cy={50}\n r={46}\n style={getOuterCircleStyle(style, checked, disabled, readOnly)}\n />\n <circle\n className={clsx(styles['styled-circle-fill'], {\n [styles['styled-circle-disabled']]: disabled,\n [styles['styled-circle-checked']]: checked,\n [styles['styled-circle-readonly']]: readOnly,\n })}\n strokeWidth={30}\n cx={50}\n cy={50}\n r={35}\n style={getInnerCircleStyle(style, checked, disabled, readOnly)}\n />\n </svg>\n }\n />\n );\n});\n"]}
@@ -1,129 +1,2 @@
1
- import React from 'react';
2
- import { BaseComponentProps } from '../../base-component';
3
- import { NonCancelableEventHandler } from '../../events';
4
- /**
5
- * @awsuiSystem core
6
- */
7
- import { NativeAttributes } from '../../utils/with-native-attributes';
8
- export interface RadioButtonProps extends BaseComponentProps {
9
- /**
10
- * Specifies if the component is selected.
11
- */
12
- checked: boolean;
13
- /**
14
- * Specifies the ID of the native form element. You can use it to relate
15
- * a label element's `for` attribute to this control.
16
- */
17
- controlId?: string;
18
- /**
19
- * Name of the group that the radio button belongs to.
20
- */
21
- name: string;
22
- /**
23
- * Description that appears below the label.
24
- */
25
- description?: React.ReactNode;
26
- /**
27
- * Specifies if the control is disabled, which prevents the
28
- * user from modifying the value and prevents the value from
29
- * being included in a form submission. A disabled control can't
30
- * receive focus.
31
- */
32
- disabled?: boolean;
33
- /**
34
- * The control's label that's displayed next to the radio button. A state change occurs when a user clicks on it.
35
- * @displayname label
36
- */
37
- children?: React.ReactNode;
38
- /**
39
- * Attributes to add to the native `input` element.
40
- * Some attributes will be automatically combined with internal attribute values:
41
- * - `className` will be appended.
42
- * - Event handlers will be chained, unless the default is prevented.
43
- *
44
- * We do not support using this attribute to apply custom styling.
45
- *
46
- * @awsuiSystem core
47
- */
48
- nativeInputAttributes?: NativeAttributes<React.InputHTMLAttributes<HTMLInputElement>>;
49
- /**
50
- * Called when the user clicks on the radio button and it is not disabled or read-only.
51
- */
52
- onSelect?: NonCancelableEventHandler;
53
- /**
54
- * Specifies if the radio button is read-only, which prevents the
55
- * user from modifying the value, but does not prevent the value from
56
- * being included in a form submission. A read-only control is still focusable.
57
- *
58
- * This property should be set for either all or none of the radio buttons in a group.
59
- */
60
- readOnly?: boolean;
61
- /**
62
- * An object containing CSS properties to customize the radio button's visual appearance.
63
- * Refer to the [style](/components/radio-button/?tabId=style) tab for more details.
64
- * @awsuiSystem core
65
- */
66
- style?: RadioButtonProps.Style;
67
- /**
68
- * Sets the value attribute to the native control.
69
- * If using native form submission, this value is sent to the server if the radio button is checked.
70
- * It is never shown to the user by their user agent.
71
- * For more details, see the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/radio#value).
72
- */
73
- value?: string;
74
- }
75
- export declare namespace RadioButtonProps {
76
- interface ChangeDetail {
77
- checked: boolean;
78
- }
79
- interface Ref {
80
- /**
81
- * Sets input focus onto the UI control.
82
- */
83
- focus(): void;
84
- }
85
- interface Style {
86
- input?: {
87
- fill?: {
88
- checked?: string;
89
- default?: string;
90
- disabled?: string;
91
- readOnly?: string;
92
- };
93
- stroke?: {
94
- default?: string;
95
- disabled?: string;
96
- readOnly?: string;
97
- };
98
- circle?: {
99
- fill?: {
100
- checked?: string;
101
- disabled?: string;
102
- readOnly?: string;
103
- };
104
- };
105
- focusRing?: {
106
- borderColor?: string;
107
- borderRadius?: string;
108
- borderWidth?: string;
109
- };
110
- };
111
- label?: {
112
- color?: {
113
- checked?: string;
114
- default?: string;
115
- disabled?: string;
116
- readOnly?: string;
117
- };
118
- };
119
- description?: {
120
- color?: {
121
- checked?: string;
122
- default?: string;
123
- disabled?: string;
124
- readOnly?: string;
125
- };
126
- };
127
- }
128
- }
1
+ export { RadioButtonProps } from '../../../radio-button/interfaces';
129
2
  //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/radio-button/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACzD;;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AAC;gBAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;aACnB,CAAC;YACF,MAAM,CAAC,EAAE;gBACP,IAAI,CAAC,EAAE;oBACL,OAAO,CAAC,EAAE,MAAM,CAAC;oBACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;oBAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;iBACnB,CAAC;aACH,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;SACH,CAAC;QACF,KAAK,CAAC,EAAE;YACN,KAAK,CAAC,EAAE;gBACN,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;aACnB,CAAC;SACH,CAAC;QACF,WAAW,CAAC,EAAE;YACZ,KAAK,CAAC,EAAE;gBACN,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;aACnB,CAAC;SACH,CAAC;KACH;CACF"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/radio-button/interfaces.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC"}
@@ -1,2 +1,4 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
1
3
  export {};
2
4
  //# sourceMappingURL=interfaces.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/radio-button/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 { BaseComponentProps } from '../../base-component';\nimport { NonCancelableEventHandler } from '../../events';\n/**\n * @awsuiSystem core\n */\nimport { NativeAttributes } from '../../utils/with-native-attributes';\n\nexport interface RadioButtonProps extends BaseComponentProps {\n /**\n * Specifies if the component is selected.\n */\n checked: boolean;\n\n /**\n * Specifies the ID of the native form element. You can use it to relate\n * a label element's `for` attribute to this control.\n */\n controlId?: string;\n\n /**\n * Name of the group that the radio button belongs to.\n */\n name: string;\n\n /**\n * Description that appears below the label.\n */\n description?: React.ReactNode;\n\n /**\n * Specifies if the control is disabled, which prevents the\n * user from modifying the value and prevents the value from\n * being included in a form submission. A disabled control can't\n * receive focus.\n */\n disabled?: boolean;\n\n /**\n * The control's label that's displayed next to the radio button. A state change occurs when a user clicks on it.\n * @displayname label\n */\n children?: React.ReactNode;\n\n /**\n * Attributes to add to the native `input` element.\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * @awsuiSystem core\n */\n nativeInputAttributes?: NativeAttributes<React.InputHTMLAttributes<HTMLInputElement>>;\n\n /**\n * Called when the user clicks on the radio button and it is not disabled or read-only.\n */\n onSelect?: NonCancelableEventHandler;\n\n /**\n * Specifies if the radio button is read-only, which prevents the\n * user from modifying the value, but does not prevent the value from\n * being included in a form submission. A read-only control is still focusable.\n *\n * This property should be set for either all or none of the radio buttons in a group.\n */\n readOnly?: boolean;\n\n /**\n * An object containing CSS properties to customize the radio button's visual appearance.\n * Refer to the [style](/components/radio-button/?tabId=style) tab for more details.\n * @awsuiSystem core\n */\n style?: RadioButtonProps.Style;\n\n /**\n * Sets the value attribute to the native control.\n * If using native form submission, this value is sent to the server if the radio button is checked.\n * It is never shown to the user by their user agent.\n * For more details, see the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/radio#value).\n */\n value?: string;\n}\n\nexport namespace RadioButtonProps {\n export interface ChangeDetail {\n checked: boolean;\n }\n\n export interface Ref {\n /**\n * Sets input focus onto the UI control.\n */\n focus(): void;\n }\n\n export interface Style {\n input?: {\n fill?: {\n checked?: string;\n default?: string;\n disabled?: string;\n readOnly?: string;\n };\n stroke?: {\n default?: string;\n disabled?: string;\n readOnly?: string;\n };\n circle?: {\n fill?: {\n checked?: string;\n disabled?: string;\n readOnly?: string;\n };\n };\n focusRing?: {\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n };\n };\n label?: {\n color?: {\n checked?: string;\n default?: string;\n disabled?: string;\n readOnly?: string;\n };\n };\n description?: {\n color?: {\n checked?: string;\n default?: string;\n disabled?: string;\n readOnly?: string;\n };\n };\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/radio-button/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n// Backward-compatibility re-export for consumers importing this public type from the internal path.\nexport { RadioButtonProps } from '../../../radio-button/interfaces';\n"]}
@@ -1,4 +1,4 @@
1
- import { BaseComponentProps } from '../../base-component';
1
+ import { BaseComponentProps } from '../../../types/base-component';
2
2
  import { HighlightType } from '../options-list/utils/use-highlight-option';
3
3
  export type SelectableItemProps = BaseComponentProps & {
4
4
  children: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/selectable-item/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,GAAG;IACrD,QAAQ,EAAE,K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AC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/selectable-item/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { BaseComponentProps } from '../../base-component';\nimport { HighlightType } from '../options-list/utils/use-highlight-option';\n\nexport type SelectableItemProps = BaseComponentProps & {\n children: React.ReactNode;\n selected?: boolean;\n highlighted?: boolean;\n disabled?: boolean;\n hasBackground?: boolean;\n isParent?: boolean;\n isChild?: boolean;\n isSelectAll?: boolean;\n virtualPosition?: number;\n padBottom?: boolean;\n disableContentStyling?: boolean;\n isPreviousSelected?: boolean;\n isNextSelected?: boolean;\n useInteractiveGroups?: boolean;\n screenReaderContent?: string;\n ariaPosinset?: number;\n ariaSetsize?: number;\n highlightType?: HighlightType['type'];\n ariaDescribedby?: string;\n value?: string;\n sticky?: boolean;\n afterHeader?: boolean;\n withScrollbar?: boolean;\n ariaSelected?: boolean | never;\n ariaChecked?: boolean | 'mixed' | never;\n};\n\nexport interface ItemDataAttributes {\n 'data-group-index'?: string;\n 'data-child-index'?: string;\n 'data-in-group-index'?: string;\n 'data-test-index'?: string;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/selectable-item/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { BaseComponentProps } from '../../../types/base-component';\nimport { HighlightType } from '../options-list/utils/use-highlight-option';\n\nexport type SelectableItemProps = BaseComponentProps & {\n children: React.ReactNode;\n selected?: boolean;\n highlighted?: boolean;\n disabled?: boolean;\n hasBackground?: boolean;\n isParent?: boolean;\n isChild?: boolean;\n isSelectAll?: boolean;\n virtualPosition?: number;\n padBottom?: boolean;\n disableContentStyling?: boolean;\n isPreviousSelected?: boolean;\n isNextSelected?: boolean;\n useInteractiveGroups?: boolean;\n screenReaderContent?: string;\n ariaPosinset?: number;\n ariaSetsize?: number;\n highlightType?: HighlightType['type'];\n ariaDescribedby?: string;\n value?: string;\n sticky?: boolean;\n afterHeader?: boolean;\n withScrollbar?: boolean;\n ariaSelected?: boolean | never;\n ariaChecked?: boolean | 'mixed' | never;\n};\n\nexport interface ItemDataAttributes {\n 'data-group-index'?: string;\n 'data-child-index'?: string;\n 'data-in-group-index'?: string;\n 'data-test-index'?: string;\n}\n"]}
@@ -1,4 +1,5 @@
1
- import { NonCancelableEventHandler } from '../../events';
1
+ import { NonCancelableEventHandler } from '../../../types/events';
2
+ import { DndAreaI18nStrings as SharedDndAreaI18nStrings } from '../../../types/sortable-area';
2
3
  import { DragHandleProps } from '../drag-handle/interfaces';
3
4
  export interface SortableAreaProps<Item> {
4
5
  items: readonly Item[];
@@ -30,13 +31,6 @@ export declare namespace SortableAreaProps {
30
31
  items: Item[];
31
32
  movedItem: Item;
32
33
  }
33
- interface DndAreaI18nStrings {
34
- liveAnnouncementDndStarted?: (position: number, total: number) => string;
35
- liveAnnouncementDndItemReordered?: (initialPosition: number, currentPosition: number, total: number) => string;
36
- liveAnnouncementDndItemCommitted?: (initialPosition: number, finalPosition: number, total: number) => string;
37
- liveAnnouncementDndDiscarded?: string;
38
- dragHandleAriaLabel?: string;
39
- dragHandleAriaDescription?: string;
40
- }
34
+ type DndAreaI18nStrings = SharedDndAreaI18nStrings;
41
35
  }
42
36
  //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/sortable-area/interfaces.ts"],"names":[],"mappings":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AED,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,cAAc,CAAC,IAAI;QAClC,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC;QAC3B,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC;QAC9B,YAAY,CAAC,EAAE,mBAAmB,CAAC;KACpC;IAED,KAAY,mBAAmB,GAAG,MAAM,GAAG,WAAW,CAAC;IAEvD,UAAiB,eAAe,CAAC,IAAI;QACnC,GAAG,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;QACrC,IAAI,EAAE,IAAI,CAAC;QACX,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC;QAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,iBAAiB,EAAE,OAAO,CAAC;QAC3B,eAAe,EAAE,OAAO,CAAC;QACzB,WAAW,EAAE,OAAO,CAAC;QACrB,eAAe,EAAE,eAAe,CAAC;KAClC;IAED,UAAiB,iBAAiB,CAAC,IAAI;QACrC,KAAK,EAAE,IAAI,EAAE,CAAC;QACd,SAAS,EAAE,IAAI,CAAC;KACjB;IAED,KAAY,kBAAkB,GAAG,wBAAwB,CAAC;CAC3D"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/sortable-area/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { NonCancelableEventHandler } from '../../events';\nimport { DragHandleProps } from '../drag-handle/interfaces';\n\nexport interface SortableAreaProps<Item> {\n items: readonly Item[];\n itemDefinition: SortableAreaProps.ItemDefinition<Item>;\n renderItem: (props: SortableAreaProps.RenderItemProps<Item>) => React.ReactNode;\n onItemsChange?: NonCancelableEventHandler<SortableAreaProps.ItemsChangeDetail<Item>>;\n i18nStrings?: SortableAreaProps.DndAreaI18nStrings;\n disableReorder?: boolean;\n}\n\nexport namespace SortableAreaProps {\n export interface ItemDefinition<Item> {\n id: (item: Item) => string;\n label: (item: Item) => string;\n borderRadius?: BorderRadiusVariant;\n }\n\n export type BorderRadiusVariant = 'item' | 'container';\n\n export interface RenderItemProps<Item> {\n ref?: React.RefCallback<HTMLElement>;\n item: Item;\n id: string;\n style: React.CSSProperties;\n className?: string;\n isDropPlaceholder: boolean;\n isSortingActive: boolean;\n isDragGhost: boolean;\n dragHandleProps: DragHandleProps;\n }\n\n export interface ItemsChangeDetail<Item> {\n items: Item[];\n movedItem: Item;\n }\n\n export interface DndAreaI18nStrings {\n liveAnnouncementDndStarted?: (position: number, total: number) => string;\n liveAnnouncementDndItemReordered?: (initialPosition: number, currentPosition: number, total: number) => string;\n liveAnnouncementDndItemCommitted?: (initialPosition: number, finalPosition: number, total: number) => string;\n liveAnnouncementDndDiscarded?: string;\n dragHandleAriaLabel?: string;\n dragHandleAriaDescription?: string;\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/sortable-area/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { NonCancelableEventHandler } from '../../../types/events';\nimport { DndAreaI18nStrings as SharedDndAreaI18nStrings } from '../../../types/sortable-area';\nimport { DragHandleProps } from '../drag-handle/interfaces';\n\nexport interface SortableAreaProps<Item> {\n items: readonly Item[];\n itemDefinition: SortableAreaProps.ItemDefinition<Item>;\n renderItem: (props: SortableAreaProps.RenderItemProps<Item>) => React.ReactNode;\n onItemsChange?: NonCancelableEventHandler<SortableAreaProps.ItemsChangeDetail<Item>>;\n i18nStrings?: SortableAreaProps.DndAreaI18nStrings;\n disableReorder?: boolean;\n}\n\nexport namespace SortableAreaProps {\n export interface ItemDefinition<Item> {\n id: (item: Item) => string;\n label: (item: Item) => string;\n borderRadius?: BorderRadiusVariant;\n }\n\n export type BorderRadiusVariant = 'item' | 'container';\n\n export interface RenderItemProps<Item> {\n ref?: React.RefCallback<HTMLElement>;\n item: Item;\n id: string;\n style: React.CSSProperties;\n className?: string;\n isDropPlaceholder: boolean;\n isSortingActive: boolean;\n isDragGhost: boolean;\n dragHandleProps: DragHandleProps;\n }\n\n export interface ItemsChangeDetail<Item> {\n items: Item[];\n movedItem: Item;\n }\n\n export type DndAreaI18nStrings = SharedDndAreaI18nStrings;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { NonCancelableEventHandler } from '../../events';
1
+ import { NonCancelableEventHandler } from '../../../types/events';
2
2
  import { I18nStrings } from './interfaces';
3
3
  interface TokenLimitToggleProps {
4
4
  controlId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"token-limit-toggle.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/token-list/token-limit-toggle.tsx"],"names":[],"mappings":"AASA,OAAO,EAA0B,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAKjF,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,UAAU,qBAAqB;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,SAAS,EACT,SAAS,EACT,QAAQ,EACR,qBAAqB,EACrB,OAAO,EACP,WAAgB,EAChB,uBAAuB,EACvB,sBAAsB,GACvB,EAAE,qBAAqB,eAkCvB"}
1
+ {"version":3,"file":"token-limit-toggle.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/token-list/token-limit-toggle.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAMlE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,UAAU,qBAAqB;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,SAAS,EACT,SAAS,EACT,QAAQ,EACR,qBAAqB,EACrB,OAAO,EACP,WAAgB,EAChB,uBAAuB,EACvB,sBAAsB,GACvB,EAAE,qBAAqB,eAkCvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"token-limit-toggle.js","sourceRoot":"","sources":["../../../../../src/internal/components/token-list/token-limit-toggle.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAA6B,MAAM,cAAc,CAAC;AAOjF,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAYrC,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,SAAS,EACT,SAAS,EACT,QAAQ,EACR,q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AAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useCallback } from 'react';\n\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { useInternalI18n } from '../../../i18n/context';\nimport InternalIcon from '../../../icon/internal';\nimport { fireNonCancelableEvent, NonCancelableEventHandler } from '../../events';\nimport {\n GeneratedAnalyticsMetadataTokenListShowLess,\n GeneratedAnalyticsMetadataTokenListShowMore,\n} from './analytics-metadata/interfaces';\nimport { I18nStrings } from './interfaces';\n\nimport styles from './styles.css.js';\ninterface TokenLimitToggleProps {\n controlId?: string;\n allHidden: boolean;\n expanded: boolean;\n numberOfHiddenOptions: number;\n onClick?: NonCancelableEventHandler<null>;\n i18nStrings?: I18nStrings;\n limitShowFewerAriaLabel?: string;\n limitShowMoreAriaLabel?: string;\n}\n\nexport default function TokenLimitToggle({\n controlId,\n allHidden,\n expanded,\n numberOfHiddenOptions,\n onClick,\n i18nStrings = {},\n limitShowFewerAriaLabel,\n limitShowMoreAriaLabel,\n}: TokenLimitToggleProps) {\n const i18n = useInternalI18n('token-group');\n\n const numberOfHiddenOptionLabel = allHidden ? numberOfHiddenOptions : `+${numberOfHiddenOptions}`;\n const description = expanded\n ? i18n('i18nStrings.limitShowFewer', i18nStrings.limitShowFewer)\n : `${i18n('i18nStrings.limitShowMore', i18nStrings.limitShowMore) || ''} (${numberOfHiddenOptionLabel})`;\n const ariaLabel = expanded ? limitShowFewerAriaLabel : limitShowMoreAriaLabel;\n\n const handleClick = useCallback(() => {\n fireNonCancelableEvent(onClick, null);\n }, [onClick]);\n\n const analyticsMetadata: GeneratedAnalyticsMetadataTokenListShowMore | GeneratedAnalyticsMetadataTokenListShowLess = {\n action: !expanded ? 'showMore' : 'showLess',\n detail: {\n label: { root: 'self' },\n },\n };\n\n return (\n <button\n type=\"button\"\n className={styles.toggle}\n onClick={handleClick}\n aria-controls={controlId}\n aria-expanded={expanded}\n aria-label={ariaLabel}\n {...getAnalyticsMetadataAttribute(analyticsMetadata)}\n >\n <InternalIcon name={expanded ? 'treeview-collapse' : 'treeview-expand'} />\n <span className={styles.description}>{description}</span>\n </button>\n );\n}\n"]}
1
+ {"version":3,"file":"token-limit-toggle.js","sourceRoot":"","sources":["../../../../../src/internal/components/token-list/token-limit-toggle.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAElD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAOtD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAYrC,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,SAAS,EACT,SAAS,EACT,QAAQ,EACR,qBAAqB,EACrB,OAAO,EACP,WAAW,GAAG,EAAE,EAChB,uBAAuB,EACvB,sBAAsB,GACA;IACtB,MAAM,IAAI,GAAG,eAAe,CAAC,aAAa,CAAC,CAAC;IAE5C,MAAM,yBAAyB,GAAG,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,IAAI,qBAAqB,EAAE,CAAC;IAClG,MAAM,WAAW,GAAG,QAAQ;QAC1B,CAAC,CAAC,IAAI,CAAC,4BAA4B,EAAE,WAAW,CAAC,cAAc,CAAC;QAChE,CAAC,CAAC,GAAG,IAAI,CAAC,2BAA2B,EAAE,WAAW,CAAC,aAAa,CAAC,IAAI,EAAE,KAAK,yBAAyB,GAAG,CAAC;IAC3G,MAAM,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,sBAAsB,CAAC;IAE9E,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE;QACnC,sBAAsB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACxC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,MAAM,iBAAiB,GAA8F;QACnH,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU;QAC3C,MAAM,EAAE;YACN,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SACxB;KACF,CAAC;IAEF,OAAO,CACL,gCACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,MAAM,CAAC,MAAM,EACxB,OAAO,EAAE,WAAW,mBACL,SAAS,mBACT,QAAQ,gBACX,SAAS,KACjB,6BAA6B,CAAC,iBAAiB,CAAC;QAEpD,oBAAC,YAAY,IAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,iBAAiB,GAAI;QAC1E,8BAAM,SAAS,EAAE,MAAM,CAAC,WAAW,IAAG,WAAW,CAAQ,CAClD,CACV,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useCallback } from 'react';\n\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { useInternalI18n } from '../../../i18n/context';\nimport InternalIcon from '../../../icon/internal';\nimport { NonCancelableEventHandler } from '../../../types/events';\nimport { fireNonCancelableEvent } from '../../events';\nimport {\n GeneratedAnalyticsMetadataTokenListShowLess,\n GeneratedAnalyticsMetadataTokenListShowMore,\n} from './analytics-metadata/interfaces';\nimport { I18nStrings } from './interfaces';\n\nimport styles from './styles.css.js';\ninterface TokenLimitToggleProps {\n controlId?: string;\n allHidden: boolean;\n expanded: boolean;\n numberOfHiddenOptions: number;\n onClick?: NonCancelableEventHandler<null>;\n i18nStrings?: I18nStrings;\n limitShowFewerAriaLabel?: string;\n limitShowMoreAriaLabel?: string;\n}\n\nexport default function TokenLimitToggle({\n controlId,\n allHidden,\n expanded,\n numberOfHiddenOptions,\n onClick,\n i18nStrings = {},\n limitShowFewerAriaLabel,\n limitShowMoreAriaLabel,\n}: TokenLimitToggleProps) {\n const i18n = useInternalI18n('token-group');\n\n const numberOfHiddenOptionLabel = allHidden ? numberOfHiddenOptions : `+${numberOfHiddenOptions}`;\n const description = expanded\n ? i18n('i18nStrings.limitShowFewer', i18nStrings.limitShowFewer)\n : `${i18n('i18nStrings.limitShowMore', i18nStrings.limitShowMore) || ''} (${numberOfHiddenOptionLabel})`;\n const ariaLabel = expanded ? limitShowFewerAriaLabel : limitShowMoreAriaLabel;\n\n const handleClick = useCallback(() => {\n fireNonCancelableEvent(onClick, null);\n }, [onClick]);\n\n const analyticsMetadata: GeneratedAnalyticsMetadataTokenListShowMore | GeneratedAnalyticsMetadataTokenListShowLess = {\n action: !expanded ? 'showMore' : 'showLess',\n detail: {\n label: { root: 'self' },\n },\n };\n\n return (\n <button\n type=\"button\"\n className={styles.toggle}\n onClick={handleClick}\n aria-controls={controlId}\n aria-expanded={expanded}\n aria-label={ariaLabel}\n {...getAnalyticsMetadataAttribute(analyticsMetadata)}\n >\n <InternalIcon name={expanded ? 'treeview-collapse' : 'treeview-expand'} />\n <span className={styles.description}>{description}</span>\n </button>\n );\n}\n"]}
@@ -1,57 +1,5 @@
1
- export interface FormFieldControlProps {
2
- /**
3
- * Specifies the ID of the native form element. You can use it to relate
4
- * a label element's `for` attribute to this control.
5
- *
6
- * It defaults to an automatically generated ID that
7
- * is provided by its parent form field component.
8
- */
9
- controlId?: string;
10
- /**
11
- * Adds `aria-labelledby` to the component. If you're using this component within a form field,
12
- * don't set this property because the form field component automatically sets it.
13
- *
14
- * Use this property if the component isn't surrounded by a form field, or you want to override the value
15
- * automatically set by the form field (for example, if you have two components within a single form field).
16
- *
17
- * To use it correctly, define an ID for the element you want to use as label and set the property to that ID.
18
- */
19
- ariaLabelledby?: string;
20
- /**
21
- * Adds `aria-describedby` to the component. If you're using this component within a form field,
22
- * don't set this property because the form field component automatically sets it.
23
- *
24
- * Use this property if the component isn't surrounded by a form field, or you want to override the value
25
- * automatically set by the form field (for example, if you have two components within a single form field).
26
- *
27
- * To use it correctly, define an ID for each element that you want to use as a description
28
- * and set the property to a string of each ID separated by spaces (for example, `"id1 id2 id3"`).
29
- */
30
- ariaDescribedby?: string;
31
- }
32
- export interface FormFieldCommonValidationControlProps extends FormFieldControlProps {
33
- /**
34
- * Overrides the invalidation state. Usually the invalid state
35
- * comes from the parent `FormField`component,
36
- * however sometimes you need to override its
37
- * state when you have more than one input within a
38
- * single form field.
39
- */
40
- invalid?: boolean;
41
- }
42
- export interface FormFieldValidationControlProps extends FormFieldCommonValidationControlProps {
43
- /**
44
- * Overrides the warning state. Usually the warning state
45
- * comes from the parent `FormField`component,
46
- * however sometimes you need to override its
47
- * state when you have more than one input within a
48
- * single form field.
49
- * When you use it, provide additional context with
50
- * information on the input state, and associate it
51
- * with the input using `ariaDescribedby`.
52
- */
53
- warning?: boolean;
54
- }
1
+ import { FormFieldValidationControlProps } from '../../types/form-field';
55
2
  export declare const FormFieldContext: import("react").Context<FormFieldValidationControlProps>;
56
3
  export declare function useFormFieldContext(props: FormFieldValidationControlProps): FormFieldValidationControlProps;
4
+ export { FormFieldCommonValidationControlProps, FormFieldControlProps, FormFieldValidationControlProps, } from '../../types/form-field';
57
5
  //# sourceMappingURL=form-field-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-field-context.d.ts","sourceRoot":"","sources":["../../../../src/internal/context/form-field-context.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,qBAAqB;IACpC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,qCAAsC,SAAQ,qBAAqB;IAClF;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,+BAAgC,SAAQ,qCAAqC;IAC5F;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,gBAAgB,0DAAqD,CAAC;AAUnF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,+BAA+B,mCAGzE"}
1
+ {"version":3,"file":"form-field-context.d.ts","sourceRoot":"","sources":["../../../../src/internal/context/form-field-context.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAEzE,eAAO,MAAM,gBAAgB,0DAAqD,CAAC;AAUnF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,+BAA+B,mCAGzE;AAGD,OAAO,EACL,qCAAqC,EACrC,qBAAqB,EACrB,+BAA+B,GAChC,MAAM,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"form-field-context.js","sourceRoot":"","sources":["../../../../src/internal/context/form-field-context.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AA6DlD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAkC,EAAE,CAAC,CAAC;AAEnF,SAAS,YAAY,CAAI,MAAS,EAAE,QAAW,EAAE,IAAiB;IAChE,MAAM,MAAM,GAAM,EAAE,CAAC;IACrB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QACjB,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,KAAsC;IACxE,MAAM,OAAO,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAC7C,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAChH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { createContext, useContext } from 'react';\n\nexport interface FormFieldControlProps {\n /**\n * Specifies the ID of the native form element. You can use it to relate\n * a label element's `for` attribute to this control.\n *\n * It defaults to an automatically generated ID that\n * is provided by its parent form field component.\n */\n controlId?: string;\n\n /**\n * Adds `aria-labelledby` to the component. If you're using this component within a form field,\n * don't set this property because the form field component automatically sets it.\n *\n * Use this property if the component isn't surrounded by a form field, or you want to override the value\n * automatically set by the form field (for example, if you have two components within a single form field).\n *\n * To use it correctly, define an ID for the element you want to use as label and set the property to that ID.\n */\n ariaLabelledby?: string;\n\n /**\n * Adds `aria-describedby` to the component. If you're using this component within a form field,\n * don't set this property because the form field component automatically sets it.\n *\n * Use this property if the component isn't surrounded by a form field, or you want to override the value\n * automatically set by the form field (for example, if you have two components within a single form field).\n *\n * To use it correctly, define an ID for each element that you want to use as a description\n * and set the property to a string of each ID separated by spaces (for example, `\"id1 id2 id3\"`).\n */\n ariaDescribedby?: string;\n}\n\nexport interface FormFieldCommonValidationControlProps extends FormFieldControlProps {\n /**\n * Overrides the invalidation state. Usually the invalid state\n * comes from the parent `FormField`component,\n * however sometimes you need to override its\n * state when you have more than one input within a\n * single form field.\n */\n invalid?: boolean;\n}\n\nexport interface FormFieldValidationControlProps extends FormFieldCommonValidationControlProps {\n /**\n * Overrides the warning state. Usually the warning state\n * comes from the parent `FormField`component,\n * however sometimes you need to override its\n * state when you have more than one input within a\n * single form field.\n * When you use it, provide additional context with\n * information on the input state, and associate it\n * with the input using `ariaDescribedby`.\n */\n warning?: boolean;\n}\n\nexport const FormFieldContext = createContext<FormFieldValidationControlProps>({});\n\nfunction applyDefault<T>(fields: T, defaults: T, keys: (keyof T)[]) {\n const result = <T>{};\n keys.forEach(key => {\n result[key] = fields[key] === undefined ? defaults[key] : fields[key];\n });\n return result;\n}\n\nexport function useFormFieldContext(props: FormFieldValidationControlProps) {\n const context = useContext(FormFieldContext);\n return applyDefault(props, context, ['invalid', 'warning', 'controlId', 'ariaLabelledby', 'ariaDescribedby']);\n}\n"]}
1
+ {"version":3,"file":"form-field-context.js","sourceRoot":"","sources":["../../../../src/internal/context/form-field-context.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAIlD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAkC,EAAE,CAAC,CAAC;AAEnF,SAAS,YAAY,CAAI,MAAS,EAAE,QAAW,EAAE,IAAiB;IAChE,MAAM,MAAM,GAAM,EAAE,CAAC;IACrB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QACjB,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,KAAsC;IACxE,MAAM,OAAO,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAC7C,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAChH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { createContext, useContext } from 'react';\n\nimport { FormFieldValidationControlProps } from '../../types/form-field';\n\nexport const FormFieldContext = createContext<FormFieldValidationControlProps>({});\n\nfunction applyDefault<T>(fields: T, defaults: T, keys: (keyof T)[]) {\n const result = <T>{};\n keys.forEach(key => {\n result[key] = fields[key] === undefined ? defaults[key] : fields[key];\n });\n return result;\n}\n\nexport function useFormFieldContext(props: FormFieldValidationControlProps) {\n const context = useContext(FormFieldContext);\n return applyDefault(props, context, ['invalid', 'warning', 'controlId', 'ariaLabelledby', 'ariaDescribedby']);\n}\n\n// Backward-compatibility re-export for consumers importing this public type from the internal path.\nexport {\n FormFieldCommonValidationControlProps,\n FormFieldControlProps,\n FormFieldValidationControlProps,\n} from '../../types/form-field';\n"]}
@@ -1,5 +1,5 @@
1
1
  import { PopoverProps } from '../../../popover/interfaces';
2
- import { NonCancelableEventHandler } from '../../events';
2
+ import { NonCancelableEventHandler } from '../../../types/events';
3
3
  export interface FeaturePromptProps {
4
4
  /**
5
5
  * Called when the feature prompt shows.
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAEzC;;;OAGG;IACH,SAAS,CAAC,EAAE,yBAAyB,CAAC;QAAE,MAAM,CAAC,EAAE,kBAAkB,CAAC,aAAa,CAAA;KAAE,CAAC,CAAC;IAErF;;;;OAIG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC;IAEvC;;OAEG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC,IAAI,CAAC;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C,EAAE,kBAAkB,CAAC,IAAI,CAAC;IAE/B;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC;IAE7C;;;;OAIG;IACH,QAAQ,EAAE,MAAM,IAAI,GAAG,WAAW,GAAG,UAAU,CAAC;IAEhD;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED,yBAAiB,kBAAkB,CAAC;IAClC,KAAY,aAAa,GAAG,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,cAAc,CAAC;IACjF,KAAY,QAAQ,GAAG,YAAY,CAAC,QAAQ,CAAC;IAC7C,KAAY,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC;IACrC,UAAiB,WAAW;QAC1B;;;WAGG;QACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B;IACD,UAAiB,GAAG;QAClB;;WAEG;QACH,OAAO,IAAI,IAAI,CAAC;QAEhB;;WAEG;QACH,IAAI,IAAI,IAAI,CAAC;KACd;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { PopoverProps } from '../../../popover/interfaces';\nimport { NonCancelableEventHandler } from '../../events';\n\nexport interface FeaturePromptProps {\n /**\n * Called when the feature prompt shows.\n */\n onShow?: NonCancelableEventHandler<null>;\n\n /**\n * Called when a user closes the prompt by using the close icon button,\n * clicking outside the prompt, shifting focus out of the prompt or pressing ESC.\n */\n onDismiss?: NonCancelableEventHandler<{ method?: FeaturePromptProps.DismissMethod }>;\n\n /**\n * Determines where the feature prompt is displayed when opened, relative to the trigger.\n * If the feature prompt doesn't have enough space to open in this direction, it\n * automatically chooses a better direction based on available space.\n */\n position?: FeaturePromptProps.Position;\n\n /**\n * Determines the maximum width for the feature prompt.\n */\n size?: FeaturePromptProps.Size;\n\n /**\n * Specifies header content for the feature prompt.\n */\n header: React.ReactNode;\n\n /**\n * Content of the feature prompt.\n */\n content: React.ReactNode;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings?: FeaturePromptProps.I18nStrings;\n\n /**\n * Function that returns the element to track for positioning the prompt.\n * Use this when you want to position the prompt relative to an external element.\n * Cannot be used together with the children prop.\n */\n getTrack: () => null | HTMLElement | SVGElement;\n\n /**\n * Unique identifier for the tracked element. Used for tracking position changes\n * when using getTrack.\n */\n trackKey?: string | number;\n}\n\nexport namespace FeaturePromptProps {\n export type DismissMethod = 'click-outside' | 'blur' | 'escape' | 'close-button';\n export type Position = PopoverProps.Position;\n export type Size = PopoverProps.Size;\n export interface I18nStrings {\n /**\n * Adds an `aria-label` to the dismiss button for accessibility.\n * @i18n\n */\n dismissAriaLabel?: string;\n }\n export interface Ref {\n /**\n * Use only if an element other than the trigger needs to be focused after dismissing the prompt.\n */\n dismiss(): void;\n\n /**\n * Shows the prompt and focuses its close button.\n */\n show(): void;\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { PopoverProps } from '../../../popover/interfaces';\nimport { NonCancelableEventHandler } from '../../../types/events';\n\nexport interface FeaturePromptProps {\n /**\n * Called when the feature prompt shows.\n */\n onShow?: NonCancelableEventHandler<null>;\n\n /**\n * Called when a user closes the prompt by using the close icon button,\n * clicking outside the prompt, shifting focus out of the prompt or pressing ESC.\n */\n onDismiss?: NonCancelableEventHandler<{ method?: FeaturePromptProps.DismissMethod }>;\n\n /**\n * Determines where the feature prompt is displayed when opened, relative to the trigger.\n * If the feature prompt doesn't have enough space to open in this direction, it\n * automatically chooses a better direction based on available space.\n */\n position?: FeaturePromptProps.Position;\n\n /**\n * Determines the maximum width for the feature prompt.\n */\n size?: FeaturePromptProps.Size;\n\n /**\n * Specifies header content for the feature prompt.\n */\n header: React.ReactNode;\n\n /**\n * Content of the feature prompt.\n */\n content: React.ReactNode;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings?: FeaturePromptProps.I18nStrings;\n\n /**\n * Function that returns the element to track for positioning the prompt.\n * Use this when you want to position the prompt relative to an external element.\n * Cannot be used together with the children prop.\n */\n getTrack: () => null | HTMLElement | SVGElement;\n\n /**\n * Unique identifier for the tracked element. Used for tracking position changes\n * when using getTrack.\n */\n trackKey?: string | number;\n}\n\nexport namespace FeaturePromptProps {\n export type DismissMethod = 'click-outside' | 'blur' | 'escape' | 'close-button';\n export type Position = PopoverProps.Position;\n export type Size = PopoverProps.Size;\n export interface I18nStrings {\n /**\n * Adds an `aria-label` to the dismiss button for accessibility.\n * @i18n\n */\n dismissAriaLabel?: string;\n }\n export interface Ref {\n /**\n * Use only if an element other than the trigger needs to be focused after dismissing the prompt.\n */\n dismiss(): void;\n\n /**\n * Shows the prompt and focuses its close button.\n */\n show(): void;\n }\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
+ import { SomeRequired } from '../../../internal/types';
2
3
  import { InternalBaseComponentProps } from '../../hooks/use-base-component';
3
- import { SomeRequired } from '../../types';
4
4
  import { FeaturePromptProps } from './interfaces';
5
5
  interface InternalFeaturePromptProps extends SomeRequired<FeaturePromptProps, 'size' | 'position'>, InternalBaseComponentProps {
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/internal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAUhF,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIlD,UAAU,0BACR,SAAQ,YAAY,CAAC,kBAAkB,EAAE,MAAM,GAAG,UAAU,CAAC,EAC3D,0BAA0B;CAAG;;AA6GjC,wBAAuD"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/internal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAIhF,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAOvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIlD,UAAU,0BACR,SAAQ,YAAY,CAAC,kBAAkB,EAAE,MAAM,GAAG,UAAU,CAAC,EAC3D,0BAA0B;CAAG;;AA6GjC,wBAAuD"}
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEhF,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AAEvE,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,gBAAgB,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,qBAAqB,MAAM,wCAAwC,CAAC;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AAK,IAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAC,MAAM,GAAG,EAC/D,MAAM,EAAE,IAAI,EACZ,gBAAgB,EAAE,IAAI;gBAEtB,oBAAC,WAAW,IACV,GAAG,EAAE,cAAc,EACnB,aAAa,EAAE,IAAI,EACnB,gBAAgB,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,gBAAgB,EAC/C,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,CAAC,EAAE;wBAClB,OAAO,CAAC,KAAK,CAAC,CAAC;wBACf,sBAAsB,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;oBAChD,CAAC,EACD,MAAM,EAAE,KAAK,CAAC,EAAE;wBACd,IAAI,KAAK,CAAC,aAAa,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC;4BAC9E,OAAO,CAAC,KAAK,CAAC,CAAC;4BACf,sBAAsB,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;wBACxD,CAAC;oBACH,CAAC,EACD,OAAO,EAAC,gBAAgB,EACxB,eAAe,EAAC,SAAS,IAExB,OAAO,CACI,CACG,CACG,CACjB,CACV,CACI,CACR,CAAC;AACJ,CAAC;AAED,eAAe,KAAK,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useEffect, useImperativeHandle, useRef, useState } from 'react';\n\nimport { Portal } from '@cloudscape-design/component-toolkit/internal';\n\nimport Arrow from '../../../popover/arrow';\nimport PopoverBody from '../../../popover/body';\nimport PopoverContainer from '../../../popover/container';\nimport { getBaseProps } from '../../base-component';\nimport ResetContextsForModal from '../../context/reset-contexts-for-modal';\nimport { fireNonCancelableEvent } from '../../events';\nimport { InternalBaseComponentProps } from '../../hooks/use-base-component';\nimport { SomeRequired } from '../../types';\nimport { nodeBelongs } from '../../utils/node-belongs';\nimport { FeaturePromptProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\ninterface InternalFeaturePromptProps\n extends SomeRequired<FeaturePromptProps, 'size' | 'position'>,\n InternalBaseComponentProps {}\n\nfunction InternalFeaturePrompt(\n {\n onShow,\n onDismiss,\n header,\n content,\n i18nStrings,\n size,\n position,\n getTrack,\n trackKey,\n __internalRootRef,\n ...restProps\n }: InternalFeaturePromptProps,\n ref: React.Ref<FeaturePromptProps.Ref>\n) {\n const baseProps = getBaseProps(restProps);\n const [show, setShow] = useState(false);\n\n const popoverBodyRef = useRef<HTMLDivElement | null>(null);\n\n useImperativeHandle(ref, () => ({\n dismiss: () => {\n setShow(false);\n fireNonCancelableEvent(onDismiss);\n },\n show: () => {\n setShow(true);\n fireNonCancelableEvent(onShow);\n },\n }));\n\n useEffect(() => {\n if (!show) {\n return;\n }\n const clickListener = (event: MouseEvent) => {\n // Since the listener is registered on the window, `event.target` will incorrectly point at the\n // shadow root if the component is rendered inside shadow DOM.\n const target = event.composedPath ? event.composedPath()[0] : event.target;\n if (!nodeBelongs(popoverBodyRef.current, target)) {\n setShow(false);\n fireNonCancelableEvent(onDismiss, { method: 'click-outside' });\n }\n };\n\n // Listen for blur events on the window to detect clicks in iframes\n const blurListener = () => {\n if (document.activeElement?.tagName === 'IFRAME') {\n setShow(false);\n fireNonCancelableEvent(onDismiss, { method: 'click-outside' });\n }\n };\n\n const controller = new AbortController();\n window.addEventListener('click', clickListener, { signal: controller.signal, capture: true });\n window.addEventListener('blur', blurListener, { signal: controller.signal, capture: true });\n\n return () => {\n controller.abort();\n };\n }, [show, onDismiss]);\n\n return (\n <span {...baseProps} className={styles.root} ref={__internalRootRef}>\n {show && (\n <Portal>\n <ResetContextsForModal>\n <PopoverContainer\n size={size}\n fixedWidth={false}\n position={position}\n getTrack={getTrack}\n trackKey={trackKey}\n variant=\"annotation\"\n arrow={position => <Arrow position={position} variant=\"info\" />}\n zIndex={7000}\n renderWithPortal={true}\n >\n <PopoverBody\n ref={popoverBodyRef}\n dismissButton={true}\n dismissAriaLabel={i18nStrings?.dismissAriaLabel}\n header={header}\n onDismiss={method => {\n setShow(false);\n fireNonCancelableEvent(onDismiss, { method });\n }}\n onBlur={event => {\n if (event.relatedTarget && !event.currentTarget.contains(event.relatedTarget)) {\n setShow(false);\n fireNonCancelableEvent(onDismiss, { method: 'blur' });\n }\n }}\n variant=\"feature-prompt\"\n overflowVisible=\"content\"\n >\n {content}\n </PopoverBody>\n </PopoverContainer>\n </ResetContextsForModal>\n </Portal>\n )}\n </span>\n );\n}\n\nexport default React.forwardRef(InternalFeaturePrompt);\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEhF,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AAGvE,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,gBAAgB,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,qBAAqB,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAMrC,SAAS,qBAAqB,CAC5B,EACE,MAAM,EACN,SAAS,EACT,MAAM,EACN,OAAO,EACP,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,GAAG,SAAS,E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;wBAClB,OAAO,CAAC,KAAK,CAAC,CAAC;wBACf,sBAAsB,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;oBAChD,CAAC,EACD,MAAM,EAAE,KAAK,CAAC,EAAE;wBACd,IAAI,KAAK,CAAC,aAAa,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC;4BAC9E,OAAO,CAAC,KAAK,CAAC,CAAC;4BACf,sBAAsB,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;wBACxD,CAAC;oBACH,CAAC,EACD,OAAO,EAAC,gBAAgB,EACxB,eAAe,EAAC,SAAS,IAExB,OAAO,CACI,CACG,CACG,CACjB,CACV,CACI,CACR,CAAC;AACJ,CAAC;AAED,eAAe,KAAK,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useEffect, useImperativeHandle, useRef, useState } from 'react';\n\nimport { Portal } from '@cloudscape-design/component-toolkit/internal';\n\nimport { SomeRequired } from '../../../internal/types';\nimport Arrow from '../../../popover/arrow';\nimport PopoverBody from '../../../popover/body';\nimport PopoverContainer from '../../../popover/container';\nimport { getBaseProps } from '../../base-component';\nimport ResetContextsForModal from '../../context/reset-contexts-for-modal';\nimport { fireNonCancelableEvent } from '../../events';\nimport { InternalBaseComponentProps } from '../../hooks/use-base-component';\nimport { nodeBelongs } from '../../utils/node-belongs';\nimport { FeaturePromptProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\ninterface InternalFeaturePromptProps\n extends SomeRequired<FeaturePromptProps, 'size' | 'position'>,\n InternalBaseComponentProps {}\n\nfunction InternalFeaturePrompt(\n {\n onShow,\n onDismiss,\n header,\n content,\n i18nStrings,\n size,\n position,\n getTrack,\n trackKey,\n __internalRootRef,\n ...restProps\n }: InternalFeaturePromptProps,\n ref: React.Ref<FeaturePromptProps.Ref>\n) {\n const baseProps = getBaseProps(restProps);\n const [show, setShow] = useState(false);\n\n const popoverBodyRef = useRef<HTMLDivElement | null>(null);\n\n useImperativeHandle(ref, () => ({\n dismiss: () => {\n setShow(false);\n fireNonCancelableEvent(onDismiss);\n },\n show: () => {\n setShow(true);\n fireNonCancelableEvent(onShow);\n },\n }));\n\n useEffect(() => {\n if (!show) {\n return;\n }\n const clickListener = (event: MouseEvent) => {\n // Since the listener is registered on the window, `event.target` will incorrectly point at the\n // shadow root if the component is rendered inside shadow DOM.\n const target = event.composedPath ? event.composedPath()[0] : event.target;\n if (!nodeBelongs(popoverBodyRef.current, target)) {\n setShow(false);\n fireNonCancelableEvent(onDismiss, { method: 'click-outside' });\n }\n };\n\n // Listen for blur events on the window to detect clicks in iframes\n const blurListener = () => {\n if (document.activeElement?.tagName === 'IFRAME') {\n setShow(false);\n fireNonCancelableEvent(onDismiss, { method: 'click-outside' });\n }\n };\n\n const controller = new AbortController();\n window.addEventListener('click', clickListener, { signal: controller.signal, capture: true });\n window.addEventListener('blur', blurListener, { signal: controller.signal, capture: true });\n\n return () => {\n controller.abort();\n };\n }, [show, onDismiss]);\n\n return (\n <span {...baseProps} className={styles.root} ref={__internalRootRef}>\n {show && (\n <Portal>\n <ResetContextsForModal>\n <PopoverContainer\n size={size}\n fixedWidth={false}\n position={position}\n getTrack={getTrack}\n trackKey={trackKey}\n variant=\"annotation\"\n arrow={position => <Arrow position={position} variant=\"info\" />}\n zIndex={7000}\n renderWithPortal={true}\n >\n <PopoverBody\n ref={popoverBodyRef}\n dismissButton={true}\n dismissAriaLabel={i18nStrings?.dismissAriaLabel}\n header={header}\n onDismiss={method => {\n setShow(false);\n fireNonCancelableEvent(onDismiss, { method });\n }}\n onBlur={event => {\n if (event.relatedTarget && !event.currentTarget.contains(event.relatedTarget)) {\n setShow(false);\n fireNonCancelableEvent(onDismiss, { method: 'blur' });\n }\n }}\n variant=\"feature-prompt\"\n overflowVisible=\"content\"\n >\n {content}\n </PopoverBody>\n </PopoverContainer>\n </ResetContextsForModal>\n </Portal>\n )}\n </span>\n );\n}\n\nexport default React.forwardRef(InternalFeaturePrompt);\n"]}
@@ -1,6 +1,6 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (d326da3c)";
3
- export var GIT_SHA = "d326da3c";
2
+ export var PACKAGE_VERSION = "3.0.0 (bf4d1c4a)";
3
+ export var GIT_SHA = "bf4d1c4a";
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 (d326da3c)",
4
- "GIT_SHA": "d326da3c",
3
+ "PACKAGE_VERSION": "3.0.0 (bf4d1c4a)",
4
+ "GIT_SHA": "bf4d1c4a",
5
5
  "THEME": "default",
6
6
  "SYSTEM": "core",
7
7
  "ALWAYS_VISUAL_REFRESH": false,
@@ -1,28 +1,6 @@
1
1
  import React from 'react';
2
- export type NonCancelableEventHandler<Detail = {}> = (event: NonCancelableCustomEvent<Detail>) => void;
3
- export type CancelableEventHandler<Detail = {}> = (event: CustomEvent<Detail>) => void;
4
- export type NonCancelableCustomEvent<DetailType> = Omit<CustomEvent<DetailType>, 'preventDefault'>;
5
- export interface BaseKeyDetail {
6
- keyCode: number;
7
- key: string;
8
- ctrlKey: boolean;
9
- shiftKey: boolean;
10
- altKey: boolean;
11
- metaKey: boolean;
12
- isComposing: boolean;
13
- }
14
- export interface ClickDetail {
15
- button: number;
16
- ctrlKey: boolean;
17
- shiftKey: boolean;
18
- altKey: boolean;
19
- metaKey: boolean;
20
- }
21
- export interface BaseNavigationDetail {
22
- href: string | undefined;
23
- external?: boolean;
24
- target?: string;
25
- }
2
+ import { BaseKeyDetail, CancelableEventHandler, NonCancelableEventHandler } from '../../types/events';
3
+ export { BaseKeyDetail, BaseNavigationDetail, CancelableEventHandler, ClickDetail, NonCancelableCustomEvent, NonCancelableEventHandler, } from '../../types/events';
26
4
  export declare function createCustomEvent<T>({ cancelable, detail }: CustomEventInit<T>): CustomEvent<T>;
27
5
  export declare function fireNonCancelableEvent<T = null>(handler: NonCancelableEventHandler<T> | undefined, detail?: T): void;
28
6
  export declare function fireCancelableEvent<T>(handler: CancelableEventHandler<T> | undefined, detail: T, sourceEvent?: React.SyntheticEvent | Event): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/internal/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,yBAAyB,CAAC,MAAM,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,wBAAwB,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;AAEvG,MAAM,MAAM,sBAAsB,CAAC,MAAM,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;AAEvF,MAAM,MAAM,wBAAwB,CAAC,UAAU,IAAI,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC,CAAC;AAmBnG,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,oBA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,MAAM,YAAY,GAAG,CAAC,CAAyC,EAAyB,EAAE;IACxF,OAAQ,CAAsB,CAAC,MAAM,KAAK,SAAS,CAAC;AACtD,CAAC,CAAC;AAEF,MAAM,UAAU,eAAe,CAAC,KAA6C;IAC3E,OAAO,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAA6C;IAC5E,OAAO,KAAK,IAAI,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AAC1F,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\n// This is a part of our public types API. We cannot change this in the current major version\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport type NonCancelableEventHandler<Detail = {}> = (event: NonCancelableCustomEvent<Detail>) => void;\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport type CancelableEventHandler<Detail = {}> = (event: CustomEvent<Detail>) => void;\n\nexport type NonCancelableCustomEvent<DetailType> = Omit<CustomEvent<DetailType>, 'preventDefault'>;\n\nclass CustomEventStub<T> {\n defaultPrevented = false;\n cancelBubble = false;\n constructor(\n public cancelable: boolean = false,\n public detail: T | null = null\n ) {}\n\n preventDefault() {\n this.defaultPrevented = true;\n }\n\n stopPropagation() {\n this.cancelBubble = true;\n }\n}\n\nexport interface BaseKeyDetail {\n keyCode: number;\n key: string;\n ctrlKey: boolean;\n shiftKey: boolean;\n altKey: boolean;\n metaKey: boolean;\n isComposing: boolean;\n}\n\nexport interface ClickDetail {\n button: number;\n ctrlKey: boolean;\n shiftKey: boolean;\n altKey: boolean;\n metaKey: boolean;\n}\n\nexport interface BaseNavigationDetail {\n href: string | undefined;\n external?: boolean;\n target?: string;\n}\n\nexport function createCustomEvent<T>({ cancelable, detail }: CustomEventInit<T>): CustomEvent<T> {\n return new CustomEventStub(cancelable, detail) as CustomEvent;\n}\n\nexport function fireNonCancelableEvent<T = null>(handler: NonCancelableEventHandler<T> | undefined, detail?: T) {\n if (!handler) {\n return;\n }\n const event = createCustomEvent({ cancelable: false, detail });\n handler(event);\n}\n\nexport function fireCancelableEvent<T>(\n handler: CancelableEventHandler<T> | undefined,\n detail: T,\n sourceEvent?: React.SyntheticEvent | Event\n) {\n if (!handler) {\n return false;\n }\n const event = createCustomEvent({ cancelable: true, detail });\n handler(event);\n if (event.defaultPrevented && sourceEvent) {\n sourceEvent.preventDefault();\n }\n if (event.cancelBubble && sourceEvent) {\n sourceEvent.stopPropagation();\n }\n return event.defaultPrevented;\n}\n\nexport function fireKeyboardEvent(\n handler: CancelableEventHandler<BaseKeyDetail> | undefined,\n reactEvent: React.KeyboardEvent\n) {\n return fireCancelableEvent(\n handler,\n {\n keyCode: reactEvent.keyCode,\n key: reactEvent.key,\n ctrlKey: reactEvent.ctrlKey,\n shiftKey: reactEvent.shiftKey,\n altKey: reactEvent.altKey,\n metaKey: reactEvent.metaKey,\n isComposing: reactEvent.nativeEvent.isComposing,\n },\n reactEvent\n );\n}\n\nconst isMouseEvent = (e: React.MouseEvent | React.KeyboardEvent): e is React.MouseEvent => {\n return (e as React.MouseEvent).button !== undefined;\n};\n\nexport function hasModifierKeys(event: React.MouseEvent | React.KeyboardEvent) {\n return event.ctrlKey || event.altKey || event.shiftKey || event.metaKey;\n}\n\nexport function isPlainLeftClick(event: React.MouseEvent | React.KeyboardEvent) {\n return event && (!isMouseEvent(event) || event.button === 0) && !hasModifierKeys(event);\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/internal/events/index.ts"],"names":[],"mappings":"AAgBA,MAAM,eAAe;IAGnB,YACS,aAAsB,KAAK,EAC3B,SAAmB,IAAI;QADvB,eAAU,GAAV,UA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AAO,mBAAmB,CACxB,OAAO,EACP;QACE,OAAO,EAAE,UAAU,CAAC,OAAO;QAC3B,GAAG,EAAE,UAAU,CAAC,GAAG;QACnB,OAAO,EAAE,UAAU,CAAC,OAAO;QAC3B,QAAQ,EAAE,UAAU,CAAC,QAAQ;QAC7B,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,OAAO,EAAE,UAAU,CAAC,OAAO;QAC3B,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC,WAAW;KAChD,EACD,UAAU,CACX,CAAC;AACJ,CAAC;AAED,MAAM,YAAY,GAAG,CAAC,CAAyC,EAAyB,EAAE;IACxF,OAAQ,CAAsB,CAAC,MAAM,KAAK,SAAS,CAAC;AACtD,CAAC,CAAC;AAEF,MAAM,UAAU,eAAe,CAAC,KAA6C;IAC3E,OAAO,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAA6C;IAC5E,OAAO,KAAK,IAAI,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AAC1F,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 { BaseKeyDetail, CancelableEventHandler, NonCancelableEventHandler } from '../../types/events';\n\n// Backward-compatibility re-export for consumers importing this public type from the internal path.\nexport {\n BaseKeyDetail,\n BaseNavigationDetail,\n CancelableEventHandler,\n ClickDetail,\n NonCancelableCustomEvent,\n NonCancelableEventHandler,\n} from '../../types/events';\n\nclass CustomEventStub<T> {\n defaultPrevented = false;\n cancelBubble = false;\n constructor(\n public cancelable: boolean = false,\n public detail: T | null = null\n ) {}\n\n preventDefault() {\n this.defaultPrevented = true;\n }\n\n stopPropagation() {\n this.cancelBubble = true;\n }\n}\n\nexport function createCustomEvent<T>({ cancelable, detail }: CustomEventInit<T>): CustomEvent<T> {\n return new CustomEventStub(cancelable, detail) as CustomEvent;\n}\n\nexport function fireNonCancelableEvent<T = null>(handler: NonCancelableEventHandler<T> | undefined, detail?: T) {\n if (!handler) {\n return;\n }\n const event = createCustomEvent({ cancelable: false, detail });\n handler(event);\n}\n\nexport function fireCancelableEvent<T>(\n handler: CancelableEventHandler<T> | undefined,\n detail: T,\n sourceEvent?: React.SyntheticEvent | Event\n) {\n if (!handler) {\n return false;\n }\n const event = createCustomEvent({ cancelable: true, detail });\n handler(event);\n if (event.defaultPrevented && sourceEvent) {\n sourceEvent.preventDefault();\n }\n if (event.cancelBubble && sourceEvent) {\n sourceEvent.stopPropagation();\n }\n return event.defaultPrevented;\n}\n\nexport function fireKeyboardEvent(\n handler: CancelableEventHandler<BaseKeyDetail> | undefined,\n reactEvent: React.KeyboardEvent\n) {\n return fireCancelableEvent(\n handler,\n {\n keyCode: reactEvent.keyCode,\n key: reactEvent.key,\n ctrlKey: reactEvent.ctrlKey,\n shiftKey: reactEvent.shiftKey,\n altKey: reactEvent.altKey,\n metaKey: reactEvent.metaKey,\n isComposing: reactEvent.nativeEvent.isComposing,\n },\n reactEvent\n );\n}\n\nconst isMouseEvent = (e: React.MouseEvent | React.KeyboardEvent): e is React.MouseEvent => {\n return (e as React.MouseEvent).button !== undefined;\n};\n\nexport function hasModifierKeys(event: React.MouseEvent | React.KeyboardEvent) {\n return event.ctrlKey || event.altKey || event.shiftKey || event.metaKey;\n}\n\nexport function isPlainLeftClick(event: React.MouseEvent | React.KeyboardEvent) {\n return event && (!isMouseEvent(event) || event.button === 0) && !hasModifierKeys(event);\n}\n"]}
@@ -339,6 +339,7 @@ export const colorBackgroundItemSelected: string;
339
339
  export const colorBackgroundSideNavigationItemActive: string;
340
340
  export const colorBackgroundLayoutMain: string;
341
341
  export const colorBackgroundDrawer: string;
342
+ export const colorBackgroundBackdrop: string;
342
343
  export const colorBackgroundDrawerBackdrop: string;
343
344
  export const colorBackgroundLayoutMobilePanel: string;
344
345
  export const colorBackgroundLayoutPanel: string;
@@ -339,6 +339,7 @@ export var colorBackgroundItemSelected = "var(--color-background-item-selected-9
339
339
  export var colorBackgroundSideNavigationItemActive = "var(--color-background-side-navigation-item-active-adfprg, transparent)";
340
340
  export var colorBackgroundLayoutMain = "var(--color-background-layout-main-5ilwcb, #ffffff)";
341
341
  export var colorBackgroundDrawer = "var(--color-background-drawer-5hs0eh, #ffffff)";
342
+ export var colorBackgroundBackdrop = "var(--color-background-backdrop-33f45f, rgba(35, 43, 55, 0.7))";
342
343
  export var colorBackgroundDrawerBackdrop = "var(--color-background-drawer-backdrop-ducxi3, rgba(35, 43, 55, 0.7))";
343
344
  export var colorBackgroundLayoutMobilePanel = "var(--color-background-layout-mobile-panel-ed0ava, #0f141a)";
344
345
  export var colorBackgroundLayoutPanel = "var(--color-background-layout-panel-jv6exs, #ffffff)";