@cumulus-ui/components 0.1.0

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 (394) hide show
  1. package/LICENSE +13 -0
  2. package/README.md +25 -0
  3. package/dist/alert/interfaces.d.ts +107 -0
  4. package/dist/alert/interfaces.d.ts.map +1 -0
  5. package/dist/anchor-navigation/index.d.ts +5 -0
  6. package/dist/anchor-navigation/index.d.ts.map +1 -0
  7. package/dist/anchor-navigation/interfaces.d.ts +54 -0
  8. package/dist/anchor-navigation/interfaces.d.ts.map +1 -0
  9. package/dist/anchor-navigation/internal.d.ts +23 -0
  10. package/dist/anchor-navigation/internal.d.ts.map +1 -0
  11. package/dist/anchor-navigation/styles.d.ts +5 -0
  12. package/dist/anchor-navigation/styles.d.ts.map +1 -0
  13. package/dist/annotation-context/interfaces.d.ts +47 -0
  14. package/dist/annotation-context/interfaces.d.ts.map +1 -0
  15. package/dist/app-layout/interfaces.d.ts +264 -0
  16. package/dist/app-layout/interfaces.d.ts.map +1 -0
  17. package/dist/app-layout-toolbar/interfaces.d.ts +51 -0
  18. package/dist/app-layout-toolbar/interfaces.d.ts.map +1 -0
  19. package/dist/area-chart/interfaces.d.ts +55 -0
  20. package/dist/area-chart/interfaces.d.ts.map +1 -0
  21. package/dist/attribute-editor/interfaces.d.ts +159 -0
  22. package/dist/attribute-editor/interfaces.d.ts.map +1 -0
  23. package/dist/autosuggest/interfaces.d.ts +239 -0
  24. package/dist/autosuggest/interfaces.d.ts.map +1 -0
  25. package/dist/badge/index.d.ts +5 -0
  26. package/dist/badge/index.d.ts.map +1 -0
  27. package/dist/badge/interfaces.d.ts +26 -0
  28. package/dist/badge/interfaces.d.ts.map +1 -0
  29. package/dist/badge/internal.d.ts +8 -0
  30. package/dist/badge/internal.d.ts.map +1 -0
  31. package/dist/badge/styles.d.ts +5 -0
  32. package/dist/badge/styles.d.ts.map +1 -0
  33. package/dist/bar-chart/interfaces.d.ts +32 -0
  34. package/dist/bar-chart/interfaces.d.ts.map +1 -0
  35. package/dist/box/index.d.ts +5 -0
  36. package/dist/box/index.d.ts.map +1 -0
  37. package/dist/box/interfaces.d.ts +131 -0
  38. package/dist/box/interfaces.d.ts.map +1 -0
  39. package/dist/box/internal.d.ts +18 -0
  40. package/dist/box/internal.d.ts.map +1 -0
  41. package/dist/box/styles.d.ts +5 -0
  42. package/dist/box/styles.d.ts.map +1 -0
  43. package/dist/breadcrumb-group/interfaces.d.ts +53 -0
  44. package/dist/breadcrumb-group/interfaces.d.ts.map +1 -0
  45. package/dist/button/interfaces.d.ts +190 -0
  46. package/dist/button/interfaces.d.ts.map +1 -0
  47. package/dist/button-dropdown/interfaces.d.ts +380 -0
  48. package/dist/button-dropdown/interfaces.d.ts.map +1 -0
  49. package/dist/button-group/interfaces.d.ts +224 -0
  50. package/dist/button-group/interfaces.d.ts.map +1 -0
  51. package/dist/calendar/interfaces.d.ts +116 -0
  52. package/dist/calendar/interfaces.d.ts.map +1 -0
  53. package/dist/cards/interfaces.d.ts +212 -0
  54. package/dist/cards/interfaces.d.ts.map +1 -0
  55. package/dist/checkbox/base-checkbox.d.ts +44 -0
  56. package/dist/checkbox/base-checkbox.d.ts.map +1 -0
  57. package/dist/checkbox/index.d.ts +5 -0
  58. package/dist/checkbox/index.d.ts.map +1 -0
  59. package/dist/checkbox/interfaces.d.ts +73 -0
  60. package/dist/checkbox/interfaces.d.ts.map +1 -0
  61. package/dist/checkbox/internal.d.ts +22 -0
  62. package/dist/checkbox/internal.d.ts.map +1 -0
  63. package/dist/checkbox/styles.d.ts +5 -0
  64. package/dist/checkbox/styles.d.ts.map +1 -0
  65. package/dist/code-editor/interfaces.d.ts +132 -0
  66. package/dist/code-editor/interfaces.d.ts.map +1 -0
  67. package/dist/collection-preferences/interfaces.d.ts +287 -0
  68. package/dist/collection-preferences/interfaces.d.ts.map +1 -0
  69. package/dist/column-layout/interfaces.d.ts +41 -0
  70. package/dist/column-layout/interfaces.d.ts.map +1 -0
  71. package/dist/container/interfaces.d.ts +124 -0
  72. package/dist/container/interfaces.d.ts.map +1 -0
  73. package/dist/content-layout/interfaces.d.ts +44 -0
  74. package/dist/content-layout/interfaces.d.ts.map +1 -0
  75. package/dist/copy-to-clipboard/interfaces.d.ts +66 -0
  76. package/dist/copy-to-clipboard/interfaces.d.ts.map +1 -0
  77. package/dist/date-input/interfaces.d.ts +39 -0
  78. package/dist/date-input/interfaces.d.ts.map +1 -0
  79. package/dist/date-picker/interfaces.d.ts +111 -0
  80. package/dist/date-picker/interfaces.d.ts.map +1 -0
  81. package/dist/date-range-picker/interfaces.d.ts +496 -0
  82. package/dist/date-range-picker/interfaces.d.ts.map +1 -0
  83. package/dist/drawer/interfaces.d.ts +25 -0
  84. package/dist/drawer/interfaces.d.ts.map +1 -0
  85. package/dist/dropdown/interfaces.d.ts +111 -0
  86. package/dist/dropdown/interfaces.d.ts.map +1 -0
  87. package/dist/error-boundary/interfaces.d.ts +93 -0
  88. package/dist/error-boundary/interfaces.d.ts.map +1 -0
  89. package/dist/expandable-section/interfaces.d.ts +70 -0
  90. package/dist/expandable-section/interfaces.d.ts.map +1 -0
  91. package/dist/file-dropzone/index.d.ts +5 -0
  92. package/dist/file-dropzone/index.d.ts.map +1 -0
  93. package/dist/file-dropzone/interfaces.d.ts +8 -0
  94. package/dist/file-dropzone/interfaces.d.ts.map +1 -0
  95. package/dist/file-dropzone/internal.d.ts +14 -0
  96. package/dist/file-dropzone/internal.d.ts.map +1 -0
  97. package/dist/file-dropzone/styles.d.ts +5 -0
  98. package/dist/file-dropzone/styles.d.ts.map +1 -0
  99. package/dist/file-input/interfaces.d.ts +46 -0
  100. package/dist/file-input/interfaces.d.ts.map +1 -0
  101. package/dist/file-token-group/interfaces.d.ts +79 -0
  102. package/dist/file-token-group/interfaces.d.ts.map +1 -0
  103. package/dist/file-upload/interfaces.d.ts +92 -0
  104. package/dist/file-upload/interfaces.d.ts.map +1 -0
  105. package/dist/flashbar/interfaces.d.ts +210 -0
  106. package/dist/flashbar/interfaces.d.ts.map +1 -0
  107. package/dist/form/interfaces.d.ts +37 -0
  108. package/dist/form/interfaces.d.ts.map +1 -0
  109. package/dist/form-field/interfaces.d.ts +78 -0
  110. package/dist/form-field/interfaces.d.ts.map +1 -0
  111. package/dist/grid/index.d.ts +5 -0
  112. package/dist/grid/index.d.ts.map +1 -0
  113. package/dist/grid/interfaces.d.ts +47 -0
  114. package/dist/grid/interfaces.d.ts.map +1 -0
  115. package/dist/grid/internal.d.ts +16 -0
  116. package/dist/grid/internal.d.ts.map +1 -0
  117. package/dist/grid/styles.d.ts +5 -0
  118. package/dist/grid/styles.d.ts.map +1 -0
  119. package/dist/header/interfaces.d.ts +22 -0
  120. package/dist/header/interfaces.d.ts.map +1 -0
  121. package/dist/help-panel/interfaces.d.ts +15 -0
  122. package/dist/help-panel/interfaces.d.ts.map +1 -0
  123. package/dist/hotspot/interfaces.d.ts +19 -0
  124. package/dist/hotspot/interfaces.d.ts.map +1 -0
  125. package/dist/icon/icons/index.d.ts +4 -0
  126. package/dist/icon/icons/index.d.ts.map +1 -0
  127. package/dist/icon/index.d.ts +5 -0
  128. package/dist/icon/index.d.ts.map +1 -0
  129. package/dist/icon/interfaces.d.ts +45 -0
  130. package/dist/icon/interfaces.d.ts.map +1 -0
  131. package/dist/icon/internal.d.ts +17 -0
  132. package/dist/icon/internal.d.ts.map +1 -0
  133. package/dist/icon/styles.d.ts +5 -0
  134. package/dist/icon/styles.d.ts.map +1 -0
  135. package/dist/icon-provider/index.d.ts +5 -0
  136. package/dist/icon-provider/index.d.ts.map +1 -0
  137. package/dist/icon-provider/interfaces.d.ts +43 -0
  138. package/dist/icon-provider/interfaces.d.ts.map +1 -0
  139. package/dist/icon-provider/internal.d.ts +14 -0
  140. package/dist/icon-provider/internal.d.ts.map +1 -0
  141. package/dist/index.d.ts +33 -0
  142. package/dist/index.d.ts.map +1 -0
  143. package/dist/index.js +4541 -0
  144. package/dist/input/interfaces.d.ts +181 -0
  145. package/dist/input/interfaces.d.ts.map +1 -0
  146. package/dist/internal/components/dropdown/internal.d.ts +27 -0
  147. package/dist/internal/components/dropdown/internal.d.ts.map +1 -0
  148. package/dist/internal/components/dropdown/styles.d.ts +2 -0
  149. package/dist/internal/components/dropdown/styles.d.ts.map +1 -0
  150. package/dist/internal/components/navigable-group/index.d.ts +3 -0
  151. package/dist/internal/components/navigable-group/index.d.ts.map +1 -0
  152. package/dist/internal/components/navigable-group/navigable-group-controller.d.ts +42 -0
  153. package/dist/internal/components/navigable-group/navigable-group-controller.d.ts.map +1 -0
  154. package/dist/internal/context/form-field-context.d.ts +11 -0
  155. package/dist/internal/context/form-field-context.d.ts.map +1 -0
  156. package/dist/internal/events.d.ts +10 -0
  157. package/dist/internal/events.d.ts.map +1 -0
  158. package/dist/internal/focus.d.ts +28 -0
  159. package/dist/internal/focus.d.ts.map +1 -0
  160. package/dist/internal/generated/cloudscape-types.d.ts +49 -0
  161. package/dist/internal/generated/cloudscape-types.d.ts.map +1 -0
  162. package/dist/internal/generated/component-manifest.d.ts +457 -0
  163. package/dist/internal/generated/component-manifest.d.ts.map +1 -0
  164. package/dist/internal/hooks/use-controllable.d.ts +25 -0
  165. package/dist/internal/hooks/use-controllable.d.ts.map +1 -0
  166. package/dist/internal/hooks/use-focus-tracker.d.ts +24 -0
  167. package/dist/internal/hooks/use-focus-tracker.d.ts.map +1 -0
  168. package/dist/internal/hooks/use-unique-id.d.ts +2 -0
  169. package/dist/internal/hooks/use-unique-id.d.ts.map +1 -0
  170. package/dist/internal/mixins/form-associated.d.ts +40 -0
  171. package/dist/internal/mixins/form-associated.d.ts.map +1 -0
  172. package/dist/internal/slot-utils.d.ts +10 -0
  173. package/dist/internal/slot-utils.d.ts.map +1 -0
  174. package/dist/internal/styles/abstract-switch.d.ts +2 -0
  175. package/dist/internal/styles/abstract-switch.d.ts.map +1 -0
  176. package/dist/internal/styles/autosuggest-input.d.ts +2 -0
  177. package/dist/internal/styles/autosuggest-input.d.ts.map +1 -0
  178. package/dist/internal/styles/button-trigger.d.ts +2 -0
  179. package/dist/internal/styles/button-trigger.d.ts.map +1 -0
  180. package/dist/internal/styles/cartesian-chart.d.ts +2 -0
  181. package/dist/internal/styles/cartesian-chart.d.ts.map +1 -0
  182. package/dist/internal/styles/chart-filter.d.ts +2 -0
  183. package/dist/internal/styles/chart-filter.d.ts.map +1 -0
  184. package/dist/internal/styles/chart-legend.d.ts +2 -0
  185. package/dist/internal/styles/chart-legend.d.ts.map +1 -0
  186. package/dist/internal/styles/chart-plot.d.ts +2 -0
  187. package/dist/internal/styles/chart-plot.d.ts.map +1 -0
  188. package/dist/internal/styles/chart-popover.d.ts +2 -0
  189. package/dist/internal/styles/chart-popover.d.ts.map +1 -0
  190. package/dist/internal/styles/chart-series-details.d.ts +2 -0
  191. package/dist/internal/styles/chart-series-details.d.ts.map +1 -0
  192. package/dist/internal/styles/chart-series-marker.d.ts +2 -0
  193. package/dist/internal/styles/chart-series-marker.d.ts.map +1 -0
  194. package/dist/internal/styles/chart-status-container.d.ts +2 -0
  195. package/dist/internal/styles/chart-status-container.d.ts.map +1 -0
  196. package/dist/internal/styles/chart-wrapper.d.ts +2 -0
  197. package/dist/internal/styles/chart-wrapper.d.ts.map +1 -0
  198. package/dist/internal/styles/checkbox-icon.d.ts +2 -0
  199. package/dist/internal/styles/checkbox-icon.d.ts.map +1 -0
  200. package/dist/internal/styles/drag-handle-wrapper.d.ts +2 -0
  201. package/dist/internal/styles/drag-handle-wrapper.d.ts.map +1 -0
  202. package/dist/internal/styles/drag-handle.d.ts +2 -0
  203. package/dist/internal/styles/drag-handle.d.ts.map +1 -0
  204. package/dist/internal/styles/dropdown-footer.d.ts +2 -0
  205. package/dist/internal/styles/dropdown-footer.d.ts.map +1 -0
  206. package/dist/internal/styles/dropdown-status.d.ts +2 -0
  207. package/dist/internal/styles/dropdown-status.d.ts.map +1 -0
  208. package/dist/internal/styles/dropdown.d.ts +2 -0
  209. package/dist/internal/styles/dropdown.d.ts.map +1 -0
  210. package/dist/internal/styles/expand-toggle-button.d.ts +2 -0
  211. package/dist/internal/styles/expand-toggle-button.d.ts.map +1 -0
  212. package/dist/internal/styles/global.d.ts +3 -0
  213. package/dist/internal/styles/global.d.ts.map +1 -0
  214. package/dist/internal/styles/menu-dropdown.d.ts +2 -0
  215. package/dist/internal/styles/menu-dropdown.d.ts.map +1 -0
  216. package/dist/internal/styles/option.d.ts +2 -0
  217. package/dist/internal/styles/option.d.ts.map +1 -0
  218. package/dist/internal/styles/options-list.d.ts +2 -0
  219. package/dist/internal/styles/options-list.d.ts.map +1 -0
  220. package/dist/internal/styles/panel-resize-handle.d.ts +2 -0
  221. package/dist/internal/styles/panel-resize-handle.d.ts.map +1 -0
  222. package/dist/internal/styles/radio-button.d.ts +2 -0
  223. package/dist/internal/styles/radio-button.d.ts.map +1 -0
  224. package/dist/internal/styles/screenreader-only.d.ts +2 -0
  225. package/dist/internal/styles/screenreader-only.d.ts.map +1 -0
  226. package/dist/internal/styles/selectable-item.d.ts +2 -0
  227. package/dist/internal/styles/selectable-item.d.ts.map +1 -0
  228. package/dist/internal/styles/shared.d.ts +3 -0
  229. package/dist/internal/styles/shared.d.ts.map +1 -0
  230. package/dist/internal/styles/sortable-area.d.ts +2 -0
  231. package/dist/internal/styles/sortable-area.d.ts.map +1 -0
  232. package/dist/internal/styles/structured-item.d.ts +2 -0
  233. package/dist/internal/styles/structured-item.d.ts.map +1 -0
  234. package/dist/internal/styles/tab-trap.d.ts +2 -0
  235. package/dist/internal/styles/tab-trap.d.ts.map +1 -0
  236. package/dist/internal/styles/token-list.d.ts +2 -0
  237. package/dist/internal/styles/token-list.d.ts.map +1 -0
  238. package/dist/internal/styles/tooltip.d.ts +2 -0
  239. package/dist/internal/styles/tooltip.d.ts.map +1 -0
  240. package/dist/internal/theming.d.ts +2 -0
  241. package/dist/internal/theming.d.ts.map +1 -0
  242. package/dist/internal/token-utils.d.ts +46 -0
  243. package/dist/internal/token-utils.d.ts.map +1 -0
  244. package/dist/internal/tokens.d.ts +119 -0
  245. package/dist/internal/tokens.d.ts.map +1 -0
  246. package/dist/internal/utils/debounce.d.ts +8 -0
  247. package/dist/internal/utils/debounce.d.ts.map +1 -0
  248. package/dist/internal/utils/dom.d.ts +12 -0
  249. package/dist/internal/utils/dom.d.ts.map +1 -0
  250. package/dist/internal/utils/strings.d.ts +5 -0
  251. package/dist/internal/utils/strings.d.ts.map +1 -0
  252. package/dist/internal/utils/throttle.d.ts +7 -0
  253. package/dist/internal/utils/throttle.d.ts.map +1 -0
  254. package/dist/item-card/interfaces.d.ts +86 -0
  255. package/dist/item-card/interfaces.d.ts.map +1 -0
  256. package/dist/key-value-pairs/interfaces.d.ts +59 -0
  257. package/dist/key-value-pairs/interfaces.d.ts.map +1 -0
  258. package/dist/line-chart/interfaces.d.ts +18 -0
  259. package/dist/line-chart/interfaces.d.ts.map +1 -0
  260. package/dist/link/interfaces.d.ts +107 -0
  261. package/dist/link/interfaces.d.ts.map +1 -0
  262. package/dist/list/index.d.ts +5 -0
  263. package/dist/list/index.d.ts.map +1 -0
  264. package/dist/list/interfaces.d.ts +77 -0
  265. package/dist/list/interfaces.d.ts.map +1 -0
  266. package/dist/list/internal.d.ts +28 -0
  267. package/dist/list/internal.d.ts.map +1 -0
  268. package/dist/list/styles.d.ts +5 -0
  269. package/dist/list/styles.d.ts.map +1 -0
  270. package/dist/live-region/index.d.ts +5 -0
  271. package/dist/live-region/index.d.ts.map +1 -0
  272. package/dist/live-region/interfaces.d.ts +20 -0
  273. package/dist/live-region/interfaces.d.ts.map +1 -0
  274. package/dist/live-region/internal.d.ts +10 -0
  275. package/dist/live-region/internal.d.ts.map +1 -0
  276. package/dist/live-region/styles.d.ts +5 -0
  277. package/dist/live-region/styles.d.ts.map +1 -0
  278. package/dist/mixed-line-bar-chart/interfaces.d.ts +118 -0
  279. package/dist/mixed-line-bar-chart/interfaces.d.ts.map +1 -0
  280. package/dist/modal/interfaces.d.ts +91 -0
  281. package/dist/modal/interfaces.d.ts.map +1 -0
  282. package/dist/multiselect/interfaces.d.ts +121 -0
  283. package/dist/multiselect/interfaces.d.ts.map +1 -0
  284. package/dist/navigable-group/interfaces.d.ts +26 -0
  285. package/dist/navigable-group/interfaces.d.ts.map +1 -0
  286. package/dist/pagination/interfaces.d.ts +59 -0
  287. package/dist/pagination/interfaces.d.ts.map +1 -0
  288. package/dist/panel-layout/interfaces.d.ts +88 -0
  289. package/dist/panel-layout/interfaces.d.ts.map +1 -0
  290. package/dist/pie-chart/interfaces.d.ts +209 -0
  291. package/dist/pie-chart/interfaces.d.ts.map +1 -0
  292. package/dist/popover/interfaces.d.ts +92 -0
  293. package/dist/popover/interfaces.d.ts.map +1 -0
  294. package/dist/progress-bar/interfaces.d.ts +74 -0
  295. package/dist/progress-bar/interfaces.d.ts.map +1 -0
  296. package/dist/prompt-input/interfaces.d.ts +123 -0
  297. package/dist/prompt-input/interfaces.d.ts.map +1 -0
  298. package/dist/property-filter/interfaces.d.ts +344 -0
  299. package/dist/property-filter/interfaces.d.ts.map +1 -0
  300. package/dist/radio-button/interfaces.d.ts +2 -0
  301. package/dist/radio-button/interfaces.d.ts.map +1 -0
  302. package/dist/radio-group/index.d.ts +5 -0
  303. package/dist/radio-group/index.d.ts.map +1 -0
  304. package/dist/radio-group/interfaces.d.ts +76 -0
  305. package/dist/radio-group/interfaces.d.ts.map +1 -0
  306. package/dist/radio-group/internal.d.ts +33 -0
  307. package/dist/radio-group/internal.d.ts.map +1 -0
  308. package/dist/radio-group/styles.d.ts +5 -0
  309. package/dist/radio-group/styles.d.ts.map +1 -0
  310. package/dist/s3-resource-selector/interfaces.d.ts +234 -0
  311. package/dist/s3-resource-selector/interfaces.d.ts.map +1 -0
  312. package/dist/segmented-control/interfaces.d.ts +82 -0
  313. package/dist/segmented-control/interfaces.d.ts.map +1 -0
  314. package/dist/select/interfaces.d.ts +207 -0
  315. package/dist/select/interfaces.d.ts.map +1 -0
  316. package/dist/side-navigation/interfaces.d.ts +148 -0
  317. package/dist/side-navigation/interfaces.d.ts.map +1 -0
  318. package/dist/slider/interfaces.d.ts +98 -0
  319. package/dist/slider/interfaces.d.ts.map +1 -0
  320. package/dist/space-between/index.d.ts +5 -0
  321. package/dist/space-between/index.d.ts.map +1 -0
  322. package/dist/space-between/interfaces.d.ts +21 -0
  323. package/dist/space-between/interfaces.d.ts.map +1 -0
  324. package/dist/space-between/internal.d.ts +10 -0
  325. package/dist/space-between/internal.d.ts.map +1 -0
  326. package/dist/space-between/styles.d.ts +5 -0
  327. package/dist/space-between/styles.d.ts.map +1 -0
  328. package/dist/spinner/index.d.ts +5 -0
  329. package/dist/spinner/index.d.ts.map +1 -0
  330. package/dist/spinner/interfaces.d.ts +15 -0
  331. package/dist/spinner/interfaces.d.ts.map +1 -0
  332. package/dist/spinner/internal.d.ts +9 -0
  333. package/dist/spinner/internal.d.ts.map +1 -0
  334. package/dist/spinner/styles.d.ts +5 -0
  335. package/dist/spinner/styles.d.ts.map +1 -0
  336. package/dist/split-panel/interfaces.d.ts +64 -0
  337. package/dist/split-panel/interfaces.d.ts.map +1 -0
  338. package/dist/status-indicator/interfaces.d.ts +26 -0
  339. package/dist/status-indicator/interfaces.d.ts.map +1 -0
  340. package/dist/steps/interfaces.d.ts +53 -0
  341. package/dist/steps/interfaces.d.ts.map +1 -0
  342. package/dist/table/interfaces.d.ts +534 -0
  343. package/dist/table/interfaces.d.ts.map +1 -0
  344. package/dist/tabs/interfaces.d.ts +214 -0
  345. package/dist/tabs/interfaces.d.ts.map +1 -0
  346. package/dist/tag-editor/interfaces.d.ts +121 -0
  347. package/dist/tag-editor/interfaces.d.ts.map +1 -0
  348. package/dist/text-content/index.d.ts +5 -0
  349. package/dist/text-content/index.d.ts.map +1 -0
  350. package/dist/text-content/interfaces.d.ts +3 -0
  351. package/dist/text-content/interfaces.d.ts.map +1 -0
  352. package/dist/text-content/internal.d.ts +6 -0
  353. package/dist/text-content/internal.d.ts.map +1 -0
  354. package/dist/text-content/styles.d.ts +5 -0
  355. package/dist/text-content/styles.d.ts.map +1 -0
  356. package/dist/text-filter/interfaces.d.ts +102 -0
  357. package/dist/text-filter/interfaces.d.ts.map +1 -0
  358. package/dist/textarea/interfaces.d.ts +83 -0
  359. package/dist/textarea/interfaces.d.ts.map +1 -0
  360. package/dist/tiles/index.d.ts +5 -0
  361. package/dist/tiles/index.d.ts.map +1 -0
  362. package/dist/tiles/interfaces.d.ts +71 -0
  363. package/dist/tiles/interfaces.d.ts.map +1 -0
  364. package/dist/tiles/internal.d.ts +34 -0
  365. package/dist/tiles/internal.d.ts.map +1 -0
  366. package/dist/tiles/styles.d.ts +5 -0
  367. package/dist/tiles/styles.d.ts.map +1 -0
  368. package/dist/time-input/interfaces.d.ts +31 -0
  369. package/dist/time-input/interfaces.d.ts.map +1 -0
  370. package/dist/toggle/interfaces.d.ts +53 -0
  371. package/dist/toggle/interfaces.d.ts.map +1 -0
  372. package/dist/toggle-button/interfaces.d.ts +49 -0
  373. package/dist/toggle-button/interfaces.d.ts.map +1 -0
  374. package/dist/token/interfaces.d.ts +89 -0
  375. package/dist/token/interfaces.d.ts.map +1 -0
  376. package/dist/token-group/interfaces.d.ts +76 -0
  377. package/dist/token-group/interfaces.d.ts.map +1 -0
  378. package/dist/tooltip/interfaces.d.ts +30 -0
  379. package/dist/tooltip/interfaces.d.ts.map +1 -0
  380. package/dist/top-navigation/interfaces.d.ts +112 -0
  381. package/dist/top-navigation/interfaces.d.ts.map +1 -0
  382. package/dist/tree-view/index.d.ts +5 -0
  383. package/dist/tree-view/index.d.ts.map +1 -0
  384. package/dist/tree-view/interfaces.d.ts +79 -0
  385. package/dist/tree-view/interfaces.d.ts.map +1 -0
  386. package/dist/tree-view/internal.d.ts +24 -0
  387. package/dist/tree-view/internal.d.ts.map +1 -0
  388. package/dist/tree-view/styles.d.ts +5 -0
  389. package/dist/tree-view/styles.d.ts.map +1 -0
  390. package/dist/tutorial-panel/interfaces.d.ts +180 -0
  391. package/dist/tutorial-panel/interfaces.d.ts.map +1 -0
  392. package/dist/wizard/interfaces.d.ts +128 -0
  393. package/dist/wizard/interfaces.d.ts.map +1 -0
  394. package/package.json +62 -0
@@ -0,0 +1,380 @@
1
+ import type { GeneratedAnalyticsMetadataFragment } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';
2
+ import { ButtonProps } from '../button/interfaces.js';
3
+ import { ExpandToViewport } from '../dropdown/interfaces.js';
4
+ import { IconProps } from '../icon/interfaces.js';
5
+ import { BaseNavigationDetail } from '../internal/generated/cloudscape-types.js';
6
+ export interface ButtonDropdownProps extends ExpandToViewport {
7
+ /**
8
+ * Array of objects with a number of supported types.
9
+ *
10
+ * The following properties are supported across all types:
11
+ *
12
+ * - `type` (string) - The type of the item. Can be `action`, `group`, `checkbox`. Defaults to `action` if `items` undefined and `group` otherwise.
13
+ * - `id` (string) - allows to identify the item that the user clicked on. Mandatory for individual items, optional for categories.
14
+ * - `text` (string) - description shown in the menu for this item. Mandatory for individual items, optional for categories.
15
+ * - `lang` (string) - (Optional) The language of the item, provided as a BCP 47 language tag.
16
+ * - `disabled` (boolean) - whether the item is disabled. Disabled items are not clickable, but they can be highlighted with the keyboard to make them accessible.
17
+ * - `disabledReason` (string) - (Optional) Displays text near the `text` property when item is disabled. Use to provide additional context.
18
+ * - `description` (string) - additional data that will be passed to a `data-description` attribute. **Deprecated**, has no effect.
19
+ * - `ariaLabel` (string) - (Optional) - ARIA label of the item element.
20
+ * - `dataAttributes` (Record<string, string>) - (Optional) Custom data attributes for the item element. Attribute names are automatically prefixed with "data-". The "testid" key is reserved.
21
+ *
22
+ * ### action
23
+ *
24
+ * - `href` (string) - (Optional) Defines the target URL of the menu item, turning it into a link.
25
+ * - `download` (boolean | string) - (Optional) Indicates that the link should be downloaded when clicked. Only works when `href` is also provided. If set to `true`, the browser will use the filename from the URL. If set to a string, that string will be used as the suggested filename.
26
+ * - `external` (boolean) - Marks a menu item as external by adding an icon after the menu item text. The link will open in a new tab when clicked. Note that this only works when `href` is also provided.
27
+ * - `externalIconAriaLabel` (string) - Adds an `aria-label` to the external icon.
28
+ * - `iconName` (string) - (Optional) Specifies the name of the icon, used with the [icon component](/components/icon/).
29
+ * - `iconAlt` (string) - (Optional) Specifies alternate text for the icon when using `iconUrl`.
30
+ * - `iconUrl` (string) - (Optional) Specifies the URL of a custom icon.
31
+ * - `iconSvg` (unknown) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).
32
+ * - `secondaryText` (string) - (Optional) Further information about the action that appears below the label.
33
+ * - `labelTag` (string) - (Optional) - A label tag that provides additional guidance, shown next to the label.
34
+ *
35
+ * ### checkbox
36
+ *
37
+ * When `type` is set to "checkbox", the values set to `href`, `external` and `externalIconAriaLabel` will be ignored.
38
+ *
39
+ * - `checked` (boolean) - Controls the state of the checkbox item.
40
+ * - `iconName` (string) - (Optional) Specifies the name of the icon, used with the [icon component](/components/icon/).
41
+ * - `iconAlt` (string) - (Optional) Specifies alternate text for the icon when using `iconUrl`.
42
+ * - `iconUrl` (string) - (Optional) Specifies the URL of a custom icon.
43
+ * - `iconSvg` (unknown) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).
44
+ * - `secondaryText` (string) - (Optional) Further information about the action that appears below the label.
45
+ * - `labelTag` (string) - (Optional) - A label tag that provides additional guidance, shown next to the label.
46
+ *
47
+ * ### group
48
+ *
49
+ * - `items` (ReadonlyArray<Item>) - an array of item objects. Items will be rendered as nested menu items but only for the first nesting level, multi-nesting is not supported.
50
+ * An item which belongs to nested group has the following properties: `id`, `text`, `disabled`, and `description`.
51
+ *
52
+ */
53
+ items: ReadonlyArray<ButtonDropdownProps.ItemOrGroup>;
54
+ /**
55
+ * Specifies a render function to render custom options in the dropdown menu.
56
+ *
57
+ * The item inside the props has a different shape depending on its type:
58
+ *
59
+ *
60
+ * ### action
61
+ *
62
+ * - `type` ('action') - The item type.
63
+ * - `index` (number) - The item's position relative to its parent.
64
+ * - `option` (Item) - The original item configuration.
65
+ * - `highlighted` (boolean) - Whether the item is currently highlighted.
66
+ * - `disabled` (boolean) - Whether the item is disabled.
67
+ * - `parent` (GroupRenderItem | null) - The parent group item, if any.
68
+ *
69
+ * ### checkbox
70
+ *
71
+ * - `type` ('checkbox') - The item type.
72
+ * - `index` (number) - The item's position relative to its parent.
73
+ * - `option` (CheckboxItem) - The original item configuration.
74
+ * - `disabled` (boolean) - Whether the item is disabled.
75
+ * - `highlighted` (boolean) - Whether the item is currently highlighted.
76
+ * - `checked` (boolean) - Controls the state of the checkbox item.
77
+ * - `parent` (GroupRenderItem | null) - The parent group item, if any.
78
+ *
79
+ * ### group
80
+ *
81
+ * - `type` ('group') - The item type.
82
+ * - `index` (number) - The item's position in the list.
83
+ * - `option` (ItemGroup) - The original item configuration.
84
+ * - `disabled` (boolean) - Whether the item is disabled.
85
+ * - `highlighted` (boolean) - Whether the item is currently highlighted.
86
+ * - `expanded` (boolean) - Whether the group is expanded.
87
+ * - `expandDirection` ('vertical' | 'horizontal') - The direction in which the group expands.
88
+ *
89
+ * When providing a custom `renderItem` implementation, it fully replaces the default visual rendering and content for that item.
90
+ * The component still manages focus, keyboard interactions, and selection state, but it no longer applies its default item layout or typography.
91
+ *
92
+ * When returning `null`, the default styling will be applied.
93
+ *
94
+ */
95
+ renderItem?: ButtonDropdownProps.ItemRenderer;
96
+ /**
97
+ * Determines whether the button dropdown is disabled. Users cannot interact with the control if it's disabled.
98
+ */
99
+ disabled?: boolean;
100
+ /**
101
+ * Provides a reason why the button dropdown is disabled (only when `disabled` is `true`).
102
+ * If provided, the disabled button becomes focusable.
103
+ */
104
+ disabledReason?: string;
105
+ /**
106
+ * Renders the button as being in a loading state. It takes precedence over the `disabled` if both are set to `true`.
107
+ * It prevents clicks.
108
+ */
109
+ loading?: boolean;
110
+ /**
111
+ * Specifies the text that screen reader announces when the button dropdown is in a loading state.
112
+ */
113
+ loadingText?: string;
114
+ /** Determines the general styling of the button dropdown.
115
+ * * `primary` for primary buttons
116
+ * * `normal` for secondary buttons
117
+ * * `icon` for icon buttons
118
+ * * `inline-icon` for icon buttons with no outer padding
119
+ */
120
+ variant?: ButtonDropdownProps.Variant;
121
+ /**
122
+ * Controls expandability of the item groups.
123
+ */
124
+ expandableGroups?: boolean;
125
+ /**
126
+ * Adds `aria-label` to the button dropdown trigger.
127
+ * Use this to provide an accessible name for buttons that don't have visible text.
128
+ */
129
+ ariaLabel?: string;
130
+ /** @slot default — Text displayed in the button dropdown trigger */
131
+ /** @event itemClick — CustomEvent<ButtonDropdownProps.ItemClickDetails> */
132
+ /** @event itemFollow — CustomEvent<ButtonDropdownProps.ItemClickDetails> */
133
+ /**
134
+ * A standalone action that is shown prior to the dropdown trigger.
135
+ * Use it with "primary" and "normal" variant only.
136
+ *
137
+ * Main action properties:
138
+ * * `text` (string) - Specifies the text shown in the main action.
139
+ * * `external` (boolean) - Marks the main action as external by adding an icon after the text. The link will open in a new tab when clicked. Note that this only works when `href` is also provided.
140
+ * * `externalIconAriaLabel` (string) - Adds an ARIA label to the external icon.
141
+ *
142
+ * The main action also supports the following properties of the [button](/components/button/?tabId=api) component:
143
+ * `ariaLabel`, `disabled`, `loading`, `loadingText`, `href`, `target`, `rel`, `download`, `iconAlt`, `iconName`, `iconUrl`, `iconSvg`, `onClick`, `onFollow`.
144
+ */
145
+ mainAction?: ButtonDropdownProps.MainAction;
146
+ /**
147
+ * Sets the button width to be 100% of the parent container width. Button content is centered.
148
+ */
149
+ fullWidth?: boolean;
150
+ }
151
+ export declare namespace ButtonDropdownProps {
152
+ type Variant = 'normal' | 'primary' | 'icon' | 'inline-icon';
153
+ type ItemType = 'action' | 'group';
154
+ interface ActionRenderItem {
155
+ type: 'action';
156
+ index: number;
157
+ option: Item;
158
+ highlighted: boolean;
159
+ disabled: boolean;
160
+ parent: GroupRenderItem | null;
161
+ }
162
+ interface CheckboxRenderItem {
163
+ type: 'checkbox';
164
+ index: number;
165
+ option: CheckboxItem;
166
+ disabled: boolean;
167
+ highlighted: boolean;
168
+ checked: boolean;
169
+ parent: GroupRenderItem | null;
170
+ }
171
+ interface GroupRenderItem {
172
+ type: 'group';
173
+ index: number;
174
+ option: ItemGroup;
175
+ disabled: boolean;
176
+ highlighted: boolean;
177
+ expanded: boolean;
178
+ expandDirection: 'vertical' | 'horizontal';
179
+ }
180
+ type RenderItem = ActionRenderItem | CheckboxRenderItem | GroupRenderItem;
181
+ type ItemRenderer = (props: {
182
+ item: ButtonDropdownProps.RenderItem;
183
+ }) => unknown | null;
184
+ interface MainAction {
185
+ text?: string;
186
+ ariaLabel?: string;
187
+ onClick?: (event: CustomEvent<ButtonProps.ClickDetail>) => void;
188
+ onFollow?: (event: CustomEvent<ButtonProps.FollowDetail>) => void;
189
+ disabled?: boolean;
190
+ disabledReason?: string;
191
+ loading?: boolean;
192
+ loadingText?: string;
193
+ href?: string;
194
+ target?: string;
195
+ rel?: string;
196
+ download?: boolean | string;
197
+ external?: boolean;
198
+ externalIconAriaLabel?: string;
199
+ iconAlt?: string;
200
+ iconName?: IconProps.Name;
201
+ iconUrl?: string;
202
+ iconSvg?: unknown;
203
+ }
204
+ interface Item {
205
+ itemType?: ItemType;
206
+ id: string;
207
+ text: string;
208
+ secondaryText?: string;
209
+ ariaLabel?: string;
210
+ lang?: string;
211
+ disabled?: boolean;
212
+ disabledReason?: string;
213
+ /**
214
+ * @deprecated Has no effect.
215
+ */
216
+ description?: string;
217
+ href?: string;
218
+ download?: boolean | string;
219
+ external?: boolean;
220
+ externalIconAriaLabel?: string;
221
+ iconAlt?: string;
222
+ iconName?: IconProps.Name;
223
+ iconUrl?: string;
224
+ iconSvg?: unknown;
225
+ labelTag?: string;
226
+ dataAttributes?: Record<string, string>;
227
+ }
228
+ interface CheckboxItem extends Omit<ButtonDropdownProps.Item, 'href' | 'download' | 'external' | 'externalIconAriaLabel' | 'itemType'> {
229
+ itemType: 'checkbox';
230
+ checked: boolean;
231
+ }
232
+ interface ItemGroup extends Omit<Item, 'id' | 'text' | 'itemType' | 'secondaryText' | 'labelTag'> {
233
+ itemType?: 'group';
234
+ id?: string;
235
+ text?: string;
236
+ items: Items;
237
+ }
238
+ type ItemOrGroup = Item | CheckboxItem | ItemGroup;
239
+ type Items = ReadonlyArray<ItemOrGroup>;
240
+ interface ItemClickDetails extends BaseNavigationDetail {
241
+ id: string;
242
+ checked?: boolean;
243
+ }
244
+ interface Ref {
245
+ /**
246
+ * Focuses the underlying native button. If a main action is defined this will focus that button.
247
+ */
248
+ focus(options?: FocusOptions): void;
249
+ /**
250
+ * Focuses the underlying native button for the dropdown.
251
+ */
252
+ focusDropdownTrigger(options?: FocusOptions): void;
253
+ }
254
+ }
255
+ export interface ButtonDropdownSettings {
256
+ hasExpandableGroups: boolean;
257
+ isInRestrictedView?: boolean;
258
+ }
259
+ export interface HighlightProps {
260
+ targetItem: ButtonDropdownProps.ItemOrGroup | null;
261
+ isHighlighted: (item: ButtonDropdownProps.ItemOrGroup) => boolean;
262
+ isKeyboardHighlight: (item: ButtonDropdownProps.ItemOrGroup) => boolean;
263
+ isExpanded: (group: ButtonDropdownProps.ItemGroup) => boolean;
264
+ highlightItem: (item: ButtonDropdownProps.ItemOrGroup) => void;
265
+ }
266
+ export type GroupToggle = (item: ButtonDropdownProps.ItemGroup, event: Event) => void;
267
+ export type ItemActivate = (item: ButtonDropdownProps.Item | ButtonDropdownProps.CheckboxItem, event: MouseEvent | KeyboardEvent) => void;
268
+ export interface CategoryProps extends HighlightProps {
269
+ index?: number;
270
+ item: ButtonDropdownProps.ItemGroup;
271
+ onGroupToggle: GroupToggle;
272
+ onItemActivate: ItemActivate;
273
+ disabled: boolean;
274
+ lastInDropdown: boolean;
275
+ expandToViewport?: boolean;
276
+ variant?: ItemListProps['variant'];
277
+ position?: string;
278
+ renderItem?: ButtonDropdownProps.ItemRenderer;
279
+ }
280
+ export interface ItemListProps extends HighlightProps {
281
+ items: ButtonDropdownProps.Items;
282
+ onGroupToggle: GroupToggle;
283
+ onItemActivate: ItemActivate;
284
+ categoryDisabled?: boolean;
285
+ hasExpandableGroups?: boolean;
286
+ hasCategoryHeader?: boolean;
287
+ lastInDropdown: boolean;
288
+ expandToViewport?: boolean;
289
+ variant?: InternalButtonDropdownProps['variant'];
290
+ position?: string;
291
+ analyticsMetadataTransformer?: InternalButtonDropdownProps['analyticsMetadataTransformer'];
292
+ linkStyle?: boolean;
293
+ renderItem?: ButtonDropdownProps.ItemRenderer;
294
+ parentProps?: ButtonDropdownProps.GroupRenderItem;
295
+ }
296
+ export interface LinkItem extends ButtonDropdownProps.Item {
297
+ href: string;
298
+ }
299
+ export interface ItemProps {
300
+ index?: number;
301
+ item: ButtonDropdownProps.Item | ButtonDropdownProps.CheckboxItem | LinkItem;
302
+ disabled: boolean;
303
+ highlighted: boolean;
304
+ onItemActivate: ItemActivate;
305
+ highlightItem: (item: ButtonDropdownProps.ItemOrGroup) => void;
306
+ showDivider: boolean;
307
+ hasCategoryHeader: boolean;
308
+ isKeyboardHighlighted?: boolean;
309
+ variant?: ItemListProps['variant'];
310
+ position?: string;
311
+ analyticsMetadataTransformer?: InternalButtonDropdownProps['analyticsMetadataTransformer'];
312
+ linkStyle?: boolean;
313
+ renderItem?: ButtonDropdownProps.ItemRenderer;
314
+ parentProps?: ButtonDropdownProps.GroupRenderItem;
315
+ }
316
+ export interface InternalItem extends ButtonDropdownProps.Item {
317
+ badge?: boolean;
318
+ /**
319
+ * Used in breadcrumb-group: indicates that this breadcrumb item is the current page
320
+ */
321
+ isCurrentBreadcrumb?: boolean;
322
+ }
323
+ export interface InternalCheckboxItem extends ButtonDropdownProps.CheckboxItem {
324
+ badge?: boolean;
325
+ }
326
+ interface InternalItemGroup extends Omit<ButtonDropdownProps.ItemGroup, 'items'> {
327
+ items: InternalItems;
328
+ }
329
+ type InternalItems = ReadonlyArray<InternalItemOrGroup>;
330
+ export type InternalItemOrGroup = InternalItem | InternalCheckboxItem | InternalItemGroup;
331
+ export interface InternalButtonDropdownProps extends Omit<ButtonDropdownProps, 'variant' | 'items'> {
332
+ customTriggerBuilder?: (props: CustomTriggerProps) => unknown;
333
+ variant?: ButtonDropdownProps['variant'] | 'navigation';
334
+ items: ReadonlyArray<InternalItemOrGroup>;
335
+ /**
336
+ * Optional text that is displayed as the title at the top of the dropdown.
337
+ */
338
+ title?: string;
339
+ /**
340
+ * Optional text that is displayed underneath the title at the top of the dropdown.
341
+ */
342
+ description?: string;
343
+ /**
344
+ * Only show main action button as a regular, non-split button.
345
+ * That is needed so that button dropdown test utils wrapper can still be used.
346
+ */
347
+ showMainActionOnly?: boolean;
348
+ /**
349
+ * Determines that the dropdown should preferably be aligned to the center of the trigger
350
+ * instead of dropping left or right.
351
+ */
352
+ preferCenter?: boolean;
353
+ /**
354
+ * Determines whether simple items should be displayed with the link styles.
355
+ * Used in Breadcrumb group component for collapsed breadcrumbs
356
+ */
357
+ linkStyle?: boolean;
358
+ /**
359
+ * Determines whether the dropdown should take up the full available width.
360
+ * Used in Breadcrumb group component for collapsed breadcrumbs
361
+ */
362
+ fullWidth?: boolean;
363
+ analyticsMetadataTransformer?: (input: GeneratedAnalyticsMetadataFragment) => GeneratedAnalyticsMetadataFragment;
364
+ /**
365
+ * Position of the button dropdown inside a list of elements, for example a button group
366
+ */
367
+ position?: string;
368
+ }
369
+ export interface CustomTriggerProps {
370
+ triggerRef: unknown;
371
+ testUtilsClass: string;
372
+ ariaLabel: string | undefined;
373
+ disabled: boolean;
374
+ disabledReason?: string;
375
+ isOpen: boolean;
376
+ onClick: () => void;
377
+ ariaExpanded: boolean;
378
+ }
379
+ export {};
380
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/button-dropdown/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,kEAAkE,CAAC;AAC3H,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,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
2
+ import { IconProps } from '../icon/interfaces.js';
3
+ export interface ButtonGroupProps {
4
+ /**
5
+ * Adds `aria-label` to the button group toolbar element.
6
+ * Use this to provide a unique accessible name for each button group on the page.
7
+ */
8
+ ariaLabel?: string;
9
+ /**
10
+ * Determines the general styling of the button dropdown.
11
+ * * `icon` for icon buttons.
12
+ */
13
+ variant: ButtonGroupProps.Variant;
14
+ /**
15
+ * Use this property to determine dropdown placement strategy for all menu dropdown items.
16
+ *
17
+ * By default, the dropdown height is constrained to fit inside the height of its next scrollable container element.
18
+ * Enabling this property will allow the dropdown to extend beyond that container by using fixed positioning and
19
+ * [React Portals](https://reactjs.org/docs/portals.html).
20
+ *
21
+ * Set this property if the dropdown would otherwise be constrained by a scrollable container,
22
+ * for example inside table and split view layouts.
23
+ *
24
+ * We recommend you use discretion, and don't enable this property unless necessary
25
+ * because fixed positioning results in a slight, visible lag when scrolling complex pages.
26
+ */
27
+ dropdownExpandToViewport?: boolean;
28
+ /**
29
+ * Array of objects with a number of supported types.
30
+ *
31
+ * ### icon-button
32
+ *
33
+ * * `id` (string) - The unique identifier of the button, used as detail in `onItemClick` handler and to focus the button using `ref.focus(id)`.
34
+ * * `text` (string) - The name shown as a tooltip for this button.
35
+ * * `disabled` (optional, boolean) - The disabled state indication for this button.
36
+ * * `disabledReason` (optional, boolean) - Provides a reason why the button is disabled (only when `disabled` is `true`). If provided, the button becomes focusable.
37
+ * * `loading` (optional, boolean) - The loading state indication for this button.
38
+ * * `loadingText` (optional, string) - The loading text announced to screen readers.
39
+ * * `iconName` (optional, string) - Specifies the name of the icon, used with the [icon component](/components/icon/).
40
+ * * `iconAlt` (optional, string) - Specifies alternate text for the icon when using `iconUrl`.
41
+ * * `iconUrl` (optional, string) - Specifies the URL of a custom icon.
42
+ * * `iconSvg` (optional, unknown) - Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).
43
+ * * `popoverFeedback` (optional, unknown) - Text that appears when the user clicks the button. Use to provide feedback to the user.
44
+ *
45
+ * ### icon-toggle-button
46
+ *
47
+ * * `id` (string) - The unique identifier of the button, used as detail in `onItemClick` handler and to focus the button using `ref.focus(id)`.
48
+ * * `pressed` (boolean) - The toggle button pressed state.
49
+ * * `text` (string) - The name shown as a tooltip for this button.
50
+ * * `disabled` (optional, boolean) - The disabled state indication for this button.
51
+ * * `disabledReason` (optional, boolean) - Provides a reason why the button is disabled (only when `disabled` is `true`). If provided, the button becomes focusable.
52
+ * * `loading` (optional, boolean) - The loading state indication for this button.
53
+ * * `loadingText` (optional, string) - The loading text announced to screen readers.
54
+ * * `iconName` (optional, string) - Specifies the name of the icon, used with the [icon component](/components/icon/).
55
+ * * `iconUrl` (optional, string) - Specifies the URL of a custom icon.
56
+ * * `iconSvg` (optional, unknown) - Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).
57
+ * * `pressedIconName` (optional, string) - Specifies the name of the icon in pressed state, used with the [icon component](/components/icon/).
58
+ * * `pressedIconUrl` (optional, string) - Specifies the URL of a custom icon in pressed state.
59
+ * * `pressedIconSvg` (optional, unknown) - Custom SVG icon in pressed state. Equivalent to the `svg` slot of the [icon component](/components/icon/).
60
+ * * `popoverFeedback` (optional, unknown) - Text that appears when the user clicks the button. Use to provide feedback to the user.
61
+ * * `pressedPopoverFeedback` (optional, unknown) - Text that appears when the user clicks the button in pressed state. Defaults to `popoverFeedback`.
62
+ *
63
+ * * ### file-input
64
+ *
65
+ * * `id` (string) - The unique identifier of the button, used as detail in `onFilesChange`.
66
+ * * `text` (string) - The name of the menu button shown as a tooltip.
67
+ * * `accept` (optional, string) - Specifies the native file input `accept` attribute to describe the allow-list of file types.
68
+ * * `multiple` (optional, string) - Specifies the native file input `multiple` attribute to allow users entering more than one file.
69
+ *
70
+ * ### menu-dropdown
71
+ *
72
+ * * `id` (string) - The unique identifier of the button, used as detail in `onItemClick`.
73
+ * * `text` (string) - The name of the menu button shown as a tooltip.
74
+ * * `disabled` (optional, boolean) - The disabled state indication for the menu button.
75
+ * * `disabledReason` (optional, boolean) - Provides a reason why the button is disabled (only when `disabled` is `true`). If provided, the button becomes focusable.
76
+ * * `loading` (optional, boolean) - The loading state indication for the menu button.
77
+ * * `loadingText` (optional, string) - The loading text announced to screen readers.
78
+ * * `items` (ButtonDropdownProps.ItemOrGroup[]) - The array of dropdown items that belong to this menu.
79
+ *
80
+ * ### group
81
+ *
82
+ * * `text` (string) - The name of the group rendered as ARIA label for this group.
83
+ * * `items` ((ButtonGroupProps.IconButton | ButtonGroupProps.MenuDropdown)[]) - The array of items that belong to this group.
84
+ */
85
+ items: ReadonlyArray<ButtonGroupProps.ItemOrGroup>;
86
+ /** @event itemClick — CustomEvent<ButtonGroupProps.ItemClickDetails> */
87
+ /** @event filesChange — CustomEvent<ButtonGroupProps.FilesChangeDetails> */
88
+ /**
89
+ * An object containing CSS properties to customize the button group's visual appearance.
90
+ * Refer to the [style](/components/button-group/?tabId=style) tab for more details.
91
+ */
92
+ style?: ButtonGroupProps.Style;
93
+ }
94
+ export interface InternalIconButton extends ButtonGroupProps.IconButton {
95
+ analyticsAction?: string;
96
+ }
97
+ export interface InternalIconToggleButton extends ButtonGroupProps.IconToggleButton {
98
+ analyticsAction?: string;
99
+ }
100
+ export interface IconButtonRuntime extends Omit<ButtonGroupProps.IconButton, 'iconSvg' | 'popoverFeedback'> {
101
+ iconSvg?: string;
102
+ }
103
+ export interface IconToggleButtonRuntime extends Omit<ButtonGroupProps.IconToggleButton, 'iconSvg' | 'pressedIconSvg' | 'popoverFeedback' | 'pressedPopoverFeedback'> {
104
+ iconSvg?: string;
105
+ pressedIconSvg?: string;
106
+ }
107
+ export type ItemOrGroupRuntime = ItemRuntime | ButtonGroupProps.Group;
108
+ export type ItemRuntime = IconButtonRuntime | IconToggleButtonRuntime | ButtonGroupProps.IconFileInput | ButtonGroupProps.MenuDropdown;
109
+ export type InternalItemOrGroup = InternalItem | ButtonGroupProps.Group;
110
+ export type InternalItem = InternalIconButton | InternalIconToggleButton | ButtonGroupProps.IconFileInput | ButtonGroupProps.MenuDropdown;
111
+ export interface InternalButtonGroupProps {
112
+ style?: ButtonGroupProps.Style;
113
+ items: ReadonlyArray<InternalItemOrGroup>;
114
+ }
115
+ export declare namespace ButtonGroupProps {
116
+ type Variant = 'icon';
117
+ type ItemOrGroup = Item | Group;
118
+ type Item = IconButton | IconToggleButton | IconFileInput | MenuDropdown;
119
+ interface IconButton {
120
+ type: 'icon-button';
121
+ id: string;
122
+ text: string;
123
+ disabled?: boolean;
124
+ disabledReason?: string;
125
+ loading?: boolean;
126
+ loadingText?: string;
127
+ iconName?: IconProps.Name;
128
+ iconAlt?: string;
129
+ iconUrl?: string;
130
+ iconSvg?: unknown;
131
+ popoverFeedback?: unknown;
132
+ }
133
+ interface IconToggleButton {
134
+ type: 'icon-toggle-button';
135
+ id: string;
136
+ text: string;
137
+ pressed: boolean;
138
+ disabled?: boolean;
139
+ disabledReason?: string;
140
+ loading?: boolean;
141
+ loadingText?: string;
142
+ iconName?: IconProps.Name;
143
+ iconUrl?: string;
144
+ iconSvg?: unknown;
145
+ pressedIconName?: IconProps.Name;
146
+ pressedIconUrl?: string;
147
+ pressedIconSvg?: unknown;
148
+ popoverFeedback?: unknown;
149
+ pressedPopoverFeedback?: unknown;
150
+ }
151
+ interface IconFileInput {
152
+ type: 'icon-file-input';
153
+ id: string;
154
+ text: string;
155
+ accept?: string;
156
+ multiple?: boolean;
157
+ }
158
+ interface MenuDropdown {
159
+ type: 'menu-dropdown';
160
+ id: string;
161
+ text: string;
162
+ disabled?: boolean;
163
+ disabledReason?: string;
164
+ loading?: boolean;
165
+ loadingText?: string;
166
+ items: ReadonlyArray<ButtonDropdownProps.ItemOrGroup>;
167
+ }
168
+ interface Group {
169
+ type: 'group';
170
+ text: string;
171
+ items: ReadonlyArray<ButtonGroupProps.Item>;
172
+ }
173
+ interface ItemClickDetails {
174
+ id: string;
175
+ pressed?: boolean;
176
+ checked?: boolean;
177
+ }
178
+ interface FilesChangeDetails {
179
+ id: string;
180
+ files: File[];
181
+ }
182
+ interface Ref {
183
+ /**
184
+ * Focuses button group item by id.
185
+ */
186
+ focus(itemId: string): void;
187
+ }
188
+ interface Style {
189
+ root?: {
190
+ background?: string;
191
+ borderColor?: string;
192
+ borderRadius?: string;
193
+ borderWidth?: string;
194
+ paddingBlock?: string;
195
+ paddingInline?: string;
196
+ boxShadow?: string;
197
+ focusRing?: {
198
+ borderColor?: string;
199
+ borderRadius?: string;
200
+ borderWidth?: string;
201
+ };
202
+ };
203
+ item?: {
204
+ color?: {
205
+ active?: string;
206
+ default?: string;
207
+ disabled?: string;
208
+ hover?: string;
209
+ };
210
+ boxShadow?: {
211
+ active?: string;
212
+ default?: string;
213
+ disabled?: string;
214
+ hover?: string;
215
+ };
216
+ focusRing?: {
217
+ borderColor?: string;
218
+ borderRadius?: string;
219
+ borderWidth?: string;
220
+ };
221
+ };
222
+ }
223
+ }
224
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/button-group/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,EAAE,gBAAgB,CAAC,OAAO,CAAC;IAClC;;;;;;;;;;;;OAYG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwDG;IACH,KAAK,EAAE,aAAa,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACnD,wEAAwE;IACxE,4EAA4E;IAC5E;;;OAGG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC,KAAK,CAAC;CAChC;AACD,MAA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