@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,131 @@
1
+ export interface BoxProps {
2
+ /**
3
+ * Defines the style of element to display.
4
+ *
5
+ * - If you set it to `'div'`, `'span'`, `'h1'`, `'h2'`, `'h3'`, `'h4'`, `'h5'`, `'p'`, `'strong'`, `'small'`, `'code'`, `'pre'`, or `'samp'`, the variant is also used as the HTML tag name.
6
+ * - If you set it to `awsui-key-label`, the component will render a `div`,
7
+ * styled for use as a key label in key-value pairs.
8
+ * - If you set it to `awsui-gen-ai-label`, the component will render a `div`,
9
+ * styled for use as a label indicating that content is produced by generative AI.
10
+ * - If you set it to `awsui-value-large`, the component will render a `span`,
11
+ * styled using "Display large light" typography.
12
+ * - If you set it to `awsui-inline-code`, the component will render a `code` element,
13
+ * styled with a background and padding for inline code snippets.
14
+ *
15
+ * Override the HTML tag by using property `tagOverride`.
16
+ */
17
+ variant?: BoxProps.Variant;
18
+ /**
19
+ * Overrides the default HTML tag provided by the variant.
20
+ */
21
+ tagOverride?: string;
22
+ /**
23
+ * Overrides the display of the element. You can set it to the following values:
24
+ *
25
+ * - `block` - Specifies block display.
26
+ * - `inline` - Specifies inline display.
27
+ * - `inline-block` - Specifies inline-block display.
28
+ * - `none` - Hides the box.
29
+ *
30
+ * Note: If you don't set it, the display depends on the variant.
31
+ */
32
+ display?: BoxProps.Display;
33
+ /**
34
+ * Adds margins to the element. It can be the following:
35
+ *
36
+ * - A single string with a size. This applies the same margin to all sides (that is, top, right, bottom, left).
37
+ * - An object specifying the size of the margin per side. The object has the following format:
38
+ * ```
39
+ * {
40
+ * top: "size of top margin",
41
+ * right: "size of right margin",
42
+ * bottom: "size of bottom margin",
43
+ * left: "size of left margin",
44
+ * horizontal: "size of left and right margin",
45
+ * vertical: "size of top and bottom margin",
46
+ * }
47
+ * ```
48
+ *
49
+ * The size can be `n`, `xxxs`, `xxs`, `xs`, `s`, `m`, `l`, `xl`, `xxl`, `xxxl`, where `n` stands for none.
50
+ * Sizes are automatically scaled down in compact mode.
51
+ *
52
+ * For example, `margin="s"` adds a small margin to all sides.
53
+ * `margin={{ right: "l", bottom: "s" }}` adds a small margin to the bottom and a large margin to the right.
54
+ */
55
+ margin?: BoxProps.SpacingSize | BoxProps.Spacing;
56
+ /**
57
+ * Adds padding to the element. It can be the following:
58
+ *
59
+ * - A single string with a size. This applies the same padding to all sides (that is, top, right, bottom, left).
60
+ * - An object specifying the size of padding per side. The object has the following format:
61
+ * ```
62
+ * {
63
+ * top: "size of top padding",
64
+ * right: "size of right padding",
65
+ * bottom: "size of bottom padding",
66
+ * left: "size of left padding",
67
+ * horizontal: "size of left and right padding",
68
+ * vertical: "size of top and bottom padding",
69
+ * }
70
+ * ```
71
+ *
72
+ * The size can be `n`, `xxxs`, `xxs`, `xs`, `s`, `m`, `l`, `xl`, `xxl`, `xxxl`, where `n` stands for none.
73
+ * Sizes are automatically scaled down in compact mode.
74
+ *
75
+ * For example, `padding="s"` adds small padding to all sides.
76
+ * `padding={{ right: "l", bottom: "s" }}` adds small padding to the bottom and large padding to the right.
77
+ */
78
+ padding?: BoxProps.SpacingSize | BoxProps.Spacing;
79
+ /**
80
+ * Defines the text alignment within the element. You can set it to `left`, `center`, or `right`.
81
+ */
82
+ textAlign?: BoxProps.TextAlign;
83
+ /**
84
+ * Defines the floating behavior. You can set it to `left` or `right`.
85
+ */
86
+ float?: BoxProps.Float;
87
+ /**
88
+ * Overrides the font size and line height. If not set, the font size and line height depend on the variant.
89
+ */
90
+ fontSize?: BoxProps.FontSize;
91
+ /**
92
+ * Overrides the font weight. If not set, the value depends on the variant.
93
+ * @visualrefresh 'heavy'
94
+ */
95
+ fontWeight?: BoxProps.FontWeight;
96
+ /**
97
+ * Overrides the text color. You can set it to the following values:
98
+ *
99
+ * - `inherit` - Inherits the color from the parent element. For example, use this to style content
100
+ * in Flashbars and to style the `empty` and `noMatch` slots of the Table and Cards components.
101
+ * - `text-label` - Specifies the text color for non-form labels. For example, use it for the key in key/value pairs.
102
+ * - `text-body-secondary` - Specifies the color for secondary text.
103
+ * - `text-status-error` - Specifies the color for error text and icons.
104
+ * - `text-status-success` - Specifies the color for success text and icons.
105
+ * - `text-status-info` - Specifies the color for info text and icon.
106
+ * - `text-status-inactive` - Specifies the color for inactive and loading text and icons.
107
+ * - `text-status-warning` - Specifies the color for warning text and icons.
108
+ *
109
+ * Note: If you don't set it, the text color depends on the variant.
110
+ */
111
+ color?: BoxProps.Color;
112
+ }
113
+ export declare namespace BoxProps {
114
+ type Variant = 'div' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p' | 'strong' | 'small' | 'code' | 'pre' | 'samp' | 'awsui-key-label' | 'awsui-gen-ai-label' | 'awsui-value-large' | 'awsui-inline-code';
115
+ type Display = 'block' | 'inline' | 'inline-block' | 'none';
116
+ type TextAlign = 'left' | 'center' | 'right';
117
+ type Float = 'left' | 'right';
118
+ type FontSize = 'body-s' | 'body-m' | 'heading-xs' | 'heading-s' | 'heading-m' | 'heading-l' | 'heading-xl' | 'display-l';
119
+ type FontWeight = 'light' | 'normal' | 'bold' | 'heavy';
120
+ type Color = 'inherit' | 'text-label' | 'text-body-secondary' | 'text-status-error' | 'text-status-success' | 'text-status-info' | 'text-status-inactive' | 'text-status-warning';
121
+ type SpacingSize = 'n' | 'xxxs' | 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';
122
+ interface Spacing {
123
+ top?: BoxProps.SpacingSize;
124
+ right?: BoxProps.SpacingSize;
125
+ bottom?: BoxProps.SpacingSize;
126
+ left?: BoxProps.SpacingSize;
127
+ horizontal?: BoxProps.SpacingSize;
128
+ vertical?: BoxProps.SpacingSize;
129
+ }
130
+ }
131
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/box/interfaces.ts"],"names":[],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GAAG,OAAO,CAAC;IAC9B,KAAK,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,GAAG,WAAW,CAAC;IAC1H,KAAK,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IACxD,KAAK,KAAK,GAAG,SAAS,GAAG,YAAY,GAAG,qBAAqB,GAAG,mBAAmB,GAAG,qBAAqB,GAAG,kBAAkB,GAAG,sBAAsB,GAAG,qBAAqB,CAAC;IAClL,KAAK,WAAW,GAAG,GAAG,GAAG,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,CAAC;IACzF,UAAU,OAAO;QACf,GAAG,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC;QAC3B,KAAK,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC;QAC7B,MAAM,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC;QAC9B,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC;QAC5B,UAAU,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC;QAClC,QAAQ,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC;KACjC;CACF"}
@@ -0,0 +1,18 @@
1
+ import { LitElement } from 'lit';
2
+ import type { BoxProps } from './interfaces.js';
3
+ export declare class CsBoxInternal extends LitElement {
4
+ static styles: import("lit").CSSResult[];
5
+ variant: BoxProps.Variant;
6
+ tagOverride?: string;
7
+ display?: BoxProps.Display;
8
+ margin?: BoxProps.SpacingSize | BoxProps.Spacing;
9
+ padding?: BoxProps.SpacingSize | BoxProps.Spacing;
10
+ textAlign?: BoxProps.TextAlign;
11
+ float?: BoxProps.Float;
12
+ fontSize?: BoxProps.FontSize;
13
+ fontWeight?: BoxProps.FontWeight;
14
+ color?: BoxProps.Color;
15
+ render(): import("lit-html").TemplateResult<1>;
16
+ private _renderTag;
17
+ }
18
+ //# sourceMappingURL=internal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../src/box/internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAkEhD,qBAAa,aAAc,SAAQ,UAAU;IAC3C,OAAgB,MAAM,4BAA+C;IAGrE,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAS;IAGlC,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC;IAG3B,MAAM,CAAC,EAAE,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC;IAGjD,OAAO,CAAC,EAAE,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC;IAGlD,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAG/B,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC;IAGvB,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAG7B,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC;IAGjC,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC;IAEd,MAAM;IAmBf,OAAO,CAAC,UAAU;CAgCnB"}
@@ -0,0 +1,5 @@
1
+ import { sharedStyles } from '../internal/styles/shared.js';
2
+ export declare const componentStyles: import("lit").CSSResult;
3
+ export { componentStyles as boxStyles };
4
+ export { sharedStyles };
5
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/box/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,eAAO,MAAM,eAAe,yBA0vB3B,CAAC;AAEF,OAAO,EAAE,eAAe,IAAI,SAAS,EAAE,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,53 @@
1
+ import { LinkItem } from '../button-dropdown/interfaces.js';
2
+ import { BaseNavigationDetail } from '../internal/generated/cloudscape-types.js';
3
+ export interface BreadcrumbGroupProps<T extends BreadcrumbGroupProps.Item = BreadcrumbGroupProps.Item> {
4
+ /**
5
+ * An array of breadcrumb items that describes the link hierarchy for this navigation.
6
+ * Each option has the following properties:
7
+ * * `text` (string) - Specifies the title text of the breadcrumb item.
8
+ * * `href` (string) - Specifies the URL for the link in the breadcrumb item.
9
+ * You should specify the link even if you have a click handler for a breadcrumb item
10
+ * to ensure that valid markup is generated.
11
+ * Note: The last breadcrumb item is automatically considered the current item, and it's
12
+ * not a link.
13
+ */
14
+ items: ReadonlyArray<T>;
15
+ /**
16
+ * Provides an `aria-label` to the breadcrumb group that screen readers can read (for accessibility).
17
+ */
18
+ ariaLabel?: string;
19
+ /**
20
+ * Provides an `aria-label` to the ellipsis button that screen readers can read (for accessibility).
21
+ * @i18n
22
+ */
23
+ expandAriaLabel?: string;
24
+ }
25
+ export declare namespace BreadcrumbGroupProps {
26
+ interface Item {
27
+ text: string;
28
+ href: string;
29
+ }
30
+ interface ClickDetail<T extends BreadcrumbGroupProps.Item = BreadcrumbGroupProps.Item> extends BaseNavigationDetail {
31
+ item: T;
32
+ text: string;
33
+ href: string;
34
+ }
35
+ }
36
+ export type InternalBreadcrumbGroupProps<T extends BreadcrumbGroupProps.Item = BreadcrumbGroupProps.Item> = BreadcrumbGroupProps<T> & InternalBaseComponentProps & {
37
+ __injectAnalyticsComponentMetadata?: boolean;
38
+ };
39
+ export interface BreadcrumbItemProps<T extends BreadcrumbGroupProps.Item> {
40
+ item: T;
41
+ itemIndex: number;
42
+ totalCount: number;
43
+ isTruncated?: boolean;
44
+ isGhost?: boolean;
45
+ }
46
+ export interface EllipsisDropdownProps {
47
+ ariaLabel?: BreadcrumbGroupProps['expandAriaLabel'];
48
+ dropdownItems: ReadonlyArray<LinkItem>;
49
+ /** @event dropdownItemClick — CustomEvent<{ id: string; }> */
50
+ /** @event dropdownItemFollow — CustomEvent<{ id: string; }> */
51
+ visible?: boolean;
52
+ }
53
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/breadcrumb-group/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,MAAM,WAAW,oBAAoB,CAAC,CAAC,SAAS,oBAAoB,CAAC,IAAI,GAAG,oBAAoB,CAAC,IAAI;IACnG;;;;;;;;;OASG;IACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAG1B;AACD,MAAM,CAAC,OAAO,WAAW,oBAAoB,CAAC;IAC5C,UAAU,IAAI;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd;IACD,UAAU,WAAW,CAAC,CAAC,SAAS,oBAAoB,CAAC,IAAI,GAAG,oBAAoB,CAAC,IAAI,CAAE,SAAQ,oBAAoB;QACjH,IAAI,EAAE,CAAC,CAAC;QACR,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AACD,MAAM,MAAM,4BAA4B,CAAC,CAAC,SAAS,oBAAoB,CAAC,IAAI,GAAG,oBAAoB,CAAC,IAAI,IAAI,oBAAoB,CAAC,CAAC,CAAC,GAAG,0BAA0B,GAAG;IACjK,kCAAkC,CAAC,EAAE,OAAO,CAAC;CAC9C,CAAC;AACF,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,oBAAoB,CAAC,IAAI;IACtE,IAAI,EAAE,CAAC,CAAC;IACR,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;CAGnB;AACD,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IACpD,aAAa,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IACvC,8DAA8D;IAC9D,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -0,0 +1,190 @@
1
+ import { IconProps } from '../icon/interfaces.js';
2
+ import { ClickDetail as _ClickDetail, BaseNavigationDetail } from '../internal/generated/cloudscape-types.js';
3
+ export interface BaseButtonProps {
4
+ /**
5
+ * Renders the button as disabled and prevents clicks.
6
+ */
7
+ disabled?: boolean;
8
+ /**
9
+ * Provides a reason why the button is disabled (only when `disabled` is `true`).
10
+ * If provided, the button becomes focusable.
11
+ * Applicable for all button variants, except link.
12
+ */
13
+ disabledReason?: string;
14
+ /**
15
+ * Renders the button as being in a loading state. It takes precedence over the `disabled` if both are set to `true`.
16
+ * It prevents users from clicking the button, but it can still be focused.
17
+ */
18
+ loading?: boolean;
19
+ /**
20
+ * Specifies the text that screen reader announces when the button is in a loading state.
21
+ */
22
+ loadingText?: string;
23
+ /**
24
+ * Displays an icon next to the text. You can use the `iconAlign` property to position the icon.
25
+ */
26
+ iconName?: IconProps.Name;
27
+ /**
28
+ * Specifies the URL of a custom icon. Use this property if the icon you want isn't available.
29
+ *
30
+ * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.
31
+ */
32
+ iconUrl?: string;
33
+ /** @slot iconSvg — Specifies the SVG of a custom icon */
34
+ /**
35
+ * Adds `aria-label` to the button element. Use this to provide an accessible name for buttons
36
+ * that don't have visible text, and to distinguish between multiple buttons with identical visible text.
37
+ * The text will also be added to the `title` attribute of the button.
38
+ */
39
+ ariaLabel?: string;
40
+ /**
41
+ * Adds `aria-describedby` to the button.
42
+ */
43
+ ariaDescribedby?: string;
44
+ /**
45
+ * Specifies if the `text` content wraps. If you set it to `false`, it prevents the text from wrapping.
46
+ */
47
+ wrapText?: boolean;
48
+ /** @slot default — Text displayed in the button element */
49
+ /**
50
+ * Adds `aria-controls` to the button. Use when the button controls the contents or presence of an element.
51
+ */
52
+ ariaControls?: string;
53
+ /**
54
+ * Adds an external icon after the button label text.
55
+ * If an href is provided, it opens the link in a new tab.
56
+ */
57
+ external?: boolean;
58
+ /**
59
+ * An object containing all the necessary localized strings required by the component. The object should contain:
60
+ *
61
+ * * `externalIconAriaLabel` - (optional) Specifies the aria-label for the external icon when `external` is set to `true`.
62
+ * @i18n
63
+ */
64
+ i18nStrings?: ButtonProps.I18nStrings;
65
+ }
66
+ export interface ButtonProps extends BaseButtonProps {
67
+ /**
68
+ * Specifies the alignment of the icon.
69
+ */
70
+ iconAlign?: ButtonProps.IconAlign;
71
+ /**
72
+ * The form action that is performed by a button click.
73
+ */
74
+ formAction?: ButtonProps.FormAction;
75
+ /**
76
+ * Applies button styling to a link. Use this property if you need a link styled as a button (`variant=link`).
77
+ * For example, if you have a 'help' button that links to a documentation page.
78
+ */
79
+ href?: string;
80
+ /**
81
+ * Specifies where to open the linked URL (for example, to open in a new browser window or tab use `_blank`).
82
+ * This property only applies when an `href` is provided.
83
+ */
84
+ target?: string;
85
+ /**
86
+ * Adds a `rel` attribute to the link. By default, the component sets the `rel` attribute to "noopener noreferrer" when `target` is `"_blank"`.
87
+ * If the `rel` property is provided, it overrides the default behavior.
88
+ */
89
+ rel?: string;
90
+ /**
91
+ * Specifies whether the linked URL, when selected, will prompt the user to download instead of navigate.
92
+ * You can specify a string value that will be suggested as the name of the downloaded file.
93
+ * This property only applies when an `href` is provided.
94
+ **/
95
+ download?: boolean | string;
96
+ /** The id of the <form> element to associate with the button. The value of this attribute must be the id of a <form> in the same document.
97
+ * Use when a button is not the descendant of a form element, such as when used in a modal.
98
+ */
99
+ form?: string;
100
+ /**
101
+ * Adds aria-expanded to the button element. Use when the button controls an expandable element.
102
+ */
103
+ ariaExpanded?: boolean;
104
+ /**
105
+ * Adds `aria-haspopup` to the button element. Use when the button triggers a popup element such as a menu, listbox, tree, grid, or dialog.
106
+ */
107
+ ariaHaspopup?: boolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
108
+ /** @event click — CustomEvent<ButtonProps.ClickDetail> */
109
+ /** @event follow — CustomEvent<ButtonProps.FollowDetail> */
110
+ /**
111
+ * Sets the button width to be 100% of the parent container width. Button content is centered.
112
+ */
113
+ fullWidth?: boolean;
114
+ /** Determines the general styling of the button as follows:
115
+ * * `primary` for primary buttons.
116
+ * * `normal` for secondary buttons.
117
+ * * `link` for tertiary buttons.
118
+ * * `icon` to display an icon only (no text).
119
+ * * `inline-icon` to display an icon-only (no text) button within a text context.
120
+ * * `inline-link` to display a tertiary button with no outer padding.
121
+ */
122
+ variant?: ButtonProps.Variant;
123
+ /**
124
+ * Specifies alternate text for a custom icon. We recommend that you provide this for accessibility.
125
+ * This property is ignored if you use a predefined icon or if you set your custom icon using the `iconSvg` slot.
126
+ */
127
+ iconAlt?: string;
128
+ /**
129
+ * An object containing CSS properties to customize the button's visual appearance.
130
+ * Refer to the [style](/components/button/?tabId=style) tab for more details.
131
+ */
132
+ style?: ButtonProps.Style;
133
+ }
134
+ export declare namespace ButtonProps {
135
+ type Variant = 'normal' | 'primary' | 'link' | 'icon' | 'inline-icon' | 'inline-link';
136
+ type ClickDetail = _ClickDetail;
137
+ type FollowDetail = BaseNavigationDetail;
138
+ type FormAction = 'submit' | 'none';
139
+ type IconAlign = 'left' | 'right';
140
+ interface I18nStrings {
141
+ /**
142
+ * Specifies the aria-label for the external icon when `external` is set to `true`.
143
+ */
144
+ externalIconAriaLabel?: string;
145
+ }
146
+ interface Ref {
147
+ /**
148
+ * Focuses the underlying native button.
149
+ */
150
+ focus(options?: FocusOptions): void;
151
+ }
152
+ interface Style {
153
+ root?: {
154
+ background?: {
155
+ active?: string;
156
+ default?: string;
157
+ disabled?: string;
158
+ hover?: string;
159
+ };
160
+ borderColor?: {
161
+ active?: string;
162
+ default?: string;
163
+ disabled?: string;
164
+ hover?: string;
165
+ };
166
+ borderRadius?: string;
167
+ borderWidth?: string;
168
+ boxShadow?: {
169
+ active?: string;
170
+ default?: string;
171
+ disabled?: string;
172
+ hover?: string;
173
+ };
174
+ color?: {
175
+ active?: string;
176
+ default?: string;
177
+ disabled?: string;
178
+ hover?: string;
179
+ };
180
+ focusRing?: {
181
+ borderColor?: string;
182
+ borderRadius?: string;
183
+ borderWidth?: string;
184
+ };
185
+ paddingBlock?: string;
186
+ paddingInline?: string;
187
+ };
188
+ }
189
+ }
190
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/button/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAC9G,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC;IAC1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yDAAyD;IACzD;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,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