@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,121 @@
1
+ import { BaseSelectProps } from '../select/interfaces.js';
2
+ import { OptionDefinition, OptionGroup as OptionGroupDefinition } from '../internal/generated/cloudscape-types.js';
3
+ export interface MultiselectProps extends BaseSelectProps {
4
+ /**
5
+ * Specifies the currently selected options.
6
+ * Provide an empty array to clear the selection.
7
+ */
8
+ selectedOptions: ReadonlyArray<MultiselectProps.Option>;
9
+ /**
10
+ * Specifies an inline label that appears next to the multiselect trigger.
11
+ */
12
+ inlineLabelText?: string;
13
+ /**
14
+ * Determines whether the dropdown list stays open after the user selects an item.
15
+ */
16
+ keepOpen?: boolean;
17
+ /**
18
+ * Specifies the maximum number of displayed tokens. If the property isn't set, all of the tokens are displayed.
19
+ */
20
+ tokenLimit?: number;
21
+ /**
22
+ * Hides the tokens displayed underneath the component.
23
+ * Only use this if the selected options are displayed elsewhere on the page.
24
+ */
25
+ hideTokens?: boolean;
26
+ /**
27
+ * Shows tokens inside the trigger instead of below it.
28
+ */
29
+ inlineTokens?: boolean;
30
+ /**
31
+ * Specifies an `aria-label` for the token deselection button.
32
+ * @i18n
33
+ */
34
+ deselectAriaLabel?: MultiselectProps.DeselectAriaLabelFunction;
35
+ /**
36
+ * An object containing all the localized strings required by the component.
37
+ *
38
+ * * `selectAllText` (string) - Specifies the text to be displayed next to the checkbox that selects or deselects all options.
39
+ * * `tokenLimitShowFewer` (string) - Specifies the text to be displayed in the "Show fewer" button for the token group control.
40
+ * * `tokenLimitShowMore` (string) - Specifies the text to be displayed in the "Show more" button for the token group control. This string should not contain the number of hidden tokens
41
+ * because this will be added by the component automatically.
42
+ * @i18n
43
+ */
44
+ i18nStrings?: MultiselectProps.I18nStrings;
45
+ /** @event change — CustomEvent<MultiselectProps.MultiselectChangeDetail> */
46
+ /**
47
+ * Automatically focuses the trigger when component is mounted.
48
+ */
49
+ autoFocus?: boolean;
50
+ /**
51
+ * Adds an aria-label to the "Show fewer" button for the token group control.
52
+ * Use to assign unique labels when there are multiple token groups with the same `tokenLimitShowFewer` label on one page.
53
+ */
54
+ tokenLimitShowFewerAriaLabel?: string;
55
+ /**
56
+ * Adds an aria-label to the "Show more" button for the token group control.
57
+ * Use to assign unique labels when there are multiple token groups with the same `tokenLimitShowMore` label on one page.
58
+ */
59
+ tokenLimitShowMoreAriaLabel?: string;
60
+ /**
61
+ * Enables users to select and deselect all options with a special extra checkbox which is displayed at the start of the dropdown.
62
+ */
63
+ enableSelectAll?: boolean;
64
+ /**
65
+ * Specifies a render function to render custom options in the dropdown menu.
66
+ *
67
+ */
68
+ renderOption?: MultiselectProps.MultiselectOptionItemRenderer;
69
+ }
70
+ export declare namespace MultiselectProps {
71
+ type Option = OptionDefinition;
72
+ type OptionGroup = OptionGroupDefinition;
73
+ type Options = ReadonlyArray<Option | OptionGroup>;
74
+ interface MultiselectOptionItem {
75
+ type: 'item';
76
+ index: number;
77
+ option: Option;
78
+ disabled: boolean;
79
+ highlighted: boolean;
80
+ selected: boolean;
81
+ parent: MultiselectOptionGroupItem | null;
82
+ }
83
+ interface MultiselectOptionGroupItem {
84
+ type: 'group';
85
+ index: number;
86
+ option: OptionGroup;
87
+ indeterminate: boolean;
88
+ disabled: boolean;
89
+ highlighted: boolean;
90
+ selected: boolean;
91
+ }
92
+ interface MultiselectSelectAllItem {
93
+ type: 'select-all';
94
+ option: Option;
95
+ indeterminate: boolean;
96
+ highlighted: boolean;
97
+ selected: boolean;
98
+ }
99
+ type MultiselectItem = MultiselectOptionItem | MultiselectOptionGroupItem | MultiselectSelectAllItem;
100
+ type MultiselectOptionItemRenderer = (props: {
101
+ item: MultiselectItem;
102
+ filterText?: string;
103
+ }) => unknown | null;
104
+ type DeselectAriaLabelFunction = (option: Option) => string;
105
+ type TriggerVariant = 'placeholder' | 'tokens';
106
+ interface I18nStrings {
107
+ selectAllText?: string;
108
+ tokenLimitShowFewer?: string;
109
+ tokenLimitShowMore?: string;
110
+ }
111
+ interface MultiselectChangeDetail {
112
+ selectedOptions: ReadonlyArray<Option>;
113
+ }
114
+ interface Ref {
115
+ /**
116
+ * Sets focus on the element without opening the dropdown or showing a visual focus indicator.
117
+ */
118
+ focus(): void;
119
+ }
120
+ }
121
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/multiselect/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,WAAW,IAAI,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AACnH,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD;;;OAGG;IACH,eAAe,EAAE,aAAa,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACxD;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,yBAAyB,CAAC;IAC/D;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC;IAC3C,4EAA4E;IAC5E;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC;;;OAGG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,YAAY,CAAC,EAAE,gBAAgB,CAAC,6BAA6B,CA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,EAAE,MAAM,CAAC;QACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC7B;IACD,UAAU,uBAAuB;QAC/B,eAAe,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;KACxC;IACD,UAAU,GAAG;QACX;;WAEG;QACH,KAAK,IAAI,IAAI,CAAC;KACf;CACF"}
@@ -0,0 +1,26 @@
1
+ export interface NavigableGroupProps {
2
+ /** @slot default — The children that will be rendered inside the navigation group */
3
+ /**
4
+ * A method that should return a unique identifier for a given element.
5
+ * The element passed will be the first focusable descendent of a child component.
6
+ */
7
+ getItemKey: (element: HTMLElement) => string;
8
+ /**
9
+ * Determines which arrow keys move focus sequentially within the group:
10
+ * - `horizontal` - left and right arrow keys
11
+ * - `vertical` - up and down arrow keys
12
+ * - `both` - all arrow keys
13
+ */
14
+ navigationDirection?: 'horizontal' | 'vertical' | 'both';
15
+ }
16
+ export interface InternalNavigableGroupProps extends NavigableGroupProps {
17
+ }
18
+ export declare namespace NavigableGroupProps {
19
+ interface Ref {
20
+ /**
21
+ * Focuses the first focusable element (or previously focused element) in the navigation group.
22
+ */
23
+ focus(): void;
24
+ }
25
+ }
26
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/navigable-group/interfaces.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,mBAAmB;IAClC,qFAAqF;IACrF;;;OAGG;IACH,UAAU,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,MAAM,CAAC;IAC7C;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,MAAM,CAAC;CAC1D;AACD,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB;CAAG;AAC3E,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,UAAU,GAAG;QACX;;WAEG;QACH,KAAK,IAAI,IAAI,CAAC;KACf;CACF"}
@@ -0,0 +1,59 @@
1
+ export interface PaginationProps {
2
+ /**
3
+ * Index of the current page. The first page has an index of 1.
4
+ */
5
+ currentPageIndex: number;
6
+ /**
7
+ * Sets the total number of pages. Only positive integers are allowed.
8
+ */
9
+ pagesCount: number;
10
+ /**
11
+ * Sets the pagination variant. It can be either default (when setting it to `false`) or open ended (when setting it
12
+ * to `true`). Default pagination navigates you through the items list. The open-end variant enables you
13
+ * to lazy-load your items because it always displays three dots before the next page icon. The next page button is
14
+ * never disabled. When the user clicks on it but there are no more items to show, the
15
+ * `onNextPageClick` handler is called with `requestedPageAvailable: false` in the event detail.
16
+ */
17
+ openEnd?: boolean;
18
+ /**
19
+ * If set to `true`, the pagination links will be disabled. Use it, for example, if you want to prevent the user
20
+ * from changing page before items are loaded.
21
+ */
22
+ disabled?: boolean;
23
+ /**
24
+ * Adds aria-labels to the pagination buttons:
25
+ * * `paginationLabel` (string) - Label for the entire pagination group. It allows users to distinguish context
26
+ * * in cases of multiple pagination components in a page.
27
+ * * `previousPageLabel` (string) - Previous page button.
28
+ * * `pageLabel` (number => string) - Individual page button, this function is called for every page number that's rendered.
29
+ * * `nextPageLabel` (string) - Next page button
30
+ *
31
+ * Example:
32
+ * ```
33
+ * {
34
+ * nextPageLabel: 'Next page',
35
+ * paginationLabel: 'Table pagination',
36
+ * previousPageLabel: 'Previous page',
37
+ * pageLabel: pageNumber => `Page ${pageNumber}`
38
+ * }
39
+ * ```
40
+ * @i18n
41
+ */
42
+ ariaLabels?: PaginationProps.Labels;
43
+ }
44
+ export declare namespace PaginationProps {
45
+ interface Labels {
46
+ nextPageLabel?: string;
47
+ paginationLabel?: string;
48
+ previousPageLabel?: string;
49
+ pageLabel?: (pageNumber: number) => string;
50
+ }
51
+ interface PageClickDetail {
52
+ requestedPageAvailable: boolean;
53
+ requestedPageIndex: number;
54
+ }
55
+ interface ChangeDetail {
56
+ currentPageIndex: number;
57
+ }
58
+ }
59
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/pagination/interfaces.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;;;;;;;;;;;;OAkBG;IACH,UAAU,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC;CAIrC;AACD,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,UAAU,MAAM;QACd,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;KAC5C;IACD,UAAU,eAAe;QACvB,sBAAsB,EAAE,OAAO,CAAC;QAChC,kBAAkB,EAAE,MAAM,CAAC;KAC5B;IACD,UAAU,YAAY;QACpB,gBAAgB,EAAE,MAAM,CAAC;KAC1B;CACF"}
@@ -0,0 +1,88 @@
1
+ export interface PanelLayoutProps {
2
+ /**
3
+ * Position of the panel with respect to the main content
4
+ */
5
+ panelPosition?: PanelLayoutProps.PanelPosition;
6
+ /**
7
+ * Initial panel size, for uncontrolled behavior.
8
+ *
9
+ * The actual size will be constrained by `minPanelSize` and `maxPanelSize`, if set.
10
+ */
11
+ defaultPanelSize?: number;
12
+ /**
13
+ * Size of the panel. If provided, and panel is resizable, the component is controlled,
14
+ * so you must also provide `onPanelResize`.
15
+ *
16
+ * The actual size will be constrained by `minPanelSize` and `maxPanelSize`, if set.
17
+ */
18
+ panelSize?: number;
19
+ /**
20
+ * The minimum size of the panel.
21
+ */
22
+ minPanelSize?: number;
23
+ /**
24
+ * The maximum size of the panel.
25
+ */
26
+ maxPanelSize?: number;
27
+ /**
28
+ * Indicates whether the panel is resizable.
29
+ */
30
+ resizable?: boolean;
31
+ /**
32
+ * Panel contents.
33
+ */
34
+ panelContent: unknown;
35
+ /**
36
+ * Main content area displayed next to the panel.
37
+ */
38
+ mainContent: unknown;
39
+ /**
40
+ * Makes the panel content focusable. This should be used if there are no focusable elements
41
+ * inside the panel, to ensure it is keyboard scrollable.
42
+ *
43
+ * Provide either `{ariaLabel: "Panel label"}` or `{ariaLabelledby: "panel-label-id"}`
44
+ */
45
+ panelFocusable?: PanelLayoutProps.FocusableConfig;
46
+ /**
47
+ * Makes the main content area focusable. This should be used if there are no focusable elements
48
+ * inside the content, to ensure it is keyboard scrollable.
49
+ *
50
+ * Provide either `{ariaLabel: "Main label"}` or `{ariaLabelledby: "main-label-id"}`
51
+ */
52
+ mainFocusable?: PanelLayoutProps.FocusableConfig;
53
+ /**
54
+ * Determines which content is displayed:
55
+ * - 'all': Both panel and main content are displayed.
56
+ * - 'panel-only': Only panel is displayed.
57
+ * - 'main-only': Only main content is displayed.
58
+ */
59
+ display?: PanelLayoutProps.Display;
60
+ /**
61
+ * An object containing all the necessary localized strings required by the component.
62
+ * @i18n
63
+ */
64
+ i18nStrings?: PanelLayoutProps.I18nStrings;
65
+ }
66
+ export declare namespace PanelLayoutProps {
67
+ type PanelPosition = 'side-start' | 'side-end';
68
+ type Display = 'all' | 'panel-only' | 'main-only';
69
+ interface PanelResizeDetail {
70
+ totalSize: number;
71
+ panelSize: number;
72
+ }
73
+ interface FocusableConfig {
74
+ ariaLabel?: string;
75
+ ariaLabelledby?: string;
76
+ }
77
+ interface I18nStrings {
78
+ resizeHandleAriaLabel?: string;
79
+ resizeHandleTooltipText?: string;
80
+ }
81
+ interface Ref {
82
+ /**
83
+ * Focuses the resize handle of the panel layout.
84
+ */
85
+ focusResizeHandle(): void;
86
+ }
87
+ }
88
+ //# sourceMappingURL=interfaces.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AClC;IACD,UAAU,GAAG;QACX;;WAEG;QACH,iBAAiB,IAAI,IAAI,CAAC;KAC3B;CACF"}
@@ -0,0 +1,209 @@
1
+ import { PopoverProps } from '../popover/interfaces.js';
2
+ export interface SeriesInfo {
3
+ label: string;
4
+ color: string;
5
+ index: number;
6
+ markerType: 'line' | 'rectangle';
7
+ }
8
+ interface ChartDetailPair {
9
+ key: unknown;
10
+ value: unknown;
11
+ }
12
+ export interface PieChartProps<T extends PieChartProps.Datum = PieChartProps.Datum> {
13
+ /**
14
+ * An array that represents the source of data for the displayed segments.
15
+ * Each element can have the following properties:
16
+ *
17
+ * * `title` (string) - A human-readable title for this data point.
18
+ * * `value` (number) - Numeric value that determines the segment size.
19
+ * A segment with a value of zero (0) or lower (negative number) won't have a segment.
20
+ * * `color`: (string) - (Optional) Color value for this segment that takes priority over the automatically assigned color.
21
+ * Can be any valid CSS color identifier.
22
+ *
23
+ * As long as your data object implements the properties above, you can also define additional properties
24
+ * that are relevant to your data visualization.
25
+ * The full data object will be passed down to events and properties like `detailPopoverContent`.
26
+ */
27
+ data: ReadonlyArray<T>;
28
+ /**
29
+ * Specifies the size of the pie or donut chart.
30
+ * When used with `fitHeight`, this property defines the minimum size of the chart area.
31
+ */
32
+ size?: 'small' | 'medium' | 'large';
33
+ /**
34
+ * Visual variant of the pie chart. Currently supports the default `pie` variant and the `donut` variant.
35
+ * The donut variant provides a slot in the center of the chart that can contain additional information.
36
+ * For more information, see `innerContent`.
37
+ */
38
+ variant?: 'pie' | 'donut';
39
+ /**
40
+ * A function that determines the details that are displayed in the popover when hovering over a segment.
41
+ * The function is called with the data of the target segment and is expected to return an array of detail pairs.
42
+ * By default, each segment displays two detail pairs: count and percentage.
43
+ *
44
+ * Each pair has the following properties:
45
+ * * `key` (unknown) - Name of the detail or metric.
46
+ * * `value` (unknown) - The value of this detail for the target segment.
47
+ */
48
+ detailPopoverContent?: PieChartProps.DetailPopoverContentFunction<T>;
49
+ /**
50
+ * Additional content that is displayed at the bottom of the detail popover.
51
+ */
52
+ detailPopoverFooter?: PieChartProps.DetailPopoverFooter<T>;
53
+ /**
54
+ * A function that determines the description of a segment that is displayed on the chart, unless `hideDescriptions` is set to `true`.
55
+ * This is an optional description that explains the segment and is displayed underneath the label.
56
+ * The function is called with the data object of each segment and is expected to return the description as a string.
57
+ */
58
+ segmentDescription?: PieChartProps.SegmentDescriptionFunction<T>;
59
+ /**
60
+ * Determines the maximum width of the popover.
61
+ */
62
+ detailPopoverSize?: PopoverProps.Size;
63
+ /**
64
+ * Hides legend beneath the chart when set to `true`.
65
+ * We highly recommend that you leave this unspecified or set to `false`.
66
+ */
67
+ hideLegend?: boolean;
68
+ /**
69
+ * Hides label titles next to the chart segments when set to `true`.
70
+ * We highly recommend that you leave this unspecified or set to `false`.
71
+ */
72
+ hideTitles?: boolean;
73
+ /**
74
+ * Hides the label descriptions next to the chart segments when set to `true`.
75
+ */
76
+ hideDescriptions?: boolean;
77
+ /**
78
+ * Hides the default filtering dropdown when set to `true`.
79
+ * You can still display additional filters with the `additionalFilters` slot.
80
+ */
81
+ hideFilter?: boolean;
82
+ /**
83
+ * Additional metric number that's displayed in the center of the chart if `variant` is set to `donut`.
84
+ */
85
+ innerMetricValue?: string;
86
+ /**
87
+ * Additional description that's displayed in the center of the chart below `innerMetricValue` if `variant` is set to `donut`.
88
+ * This is usually the unit of the `innerMetricValue`.
89
+ */
90
+ innerMetricDescription?: string;
91
+ /**
92
+ * Title for the legend.
93
+ */
94
+ legendTitle?: string;
95
+ /** @slot additionalFilters — Additional filters that you can add above the chart component */
96
+ /**
97
+ * Specifies the currently highlighted data segment. Highlighting is typically the result of
98
+ * a user hovering over or selecting a segment in the chart or the legend.
99
+ * A value of `null` means no segment is being highlighted.
100
+ *
101
+ * - If you don't set this property, segments are highlighted automatically when a user hovers over or selects one of the triggers (that is, uncontrolled behavior).
102
+ * - If you explicitly set this property, you must set an `onHighlightChange` listener to update this property when a segment should be highlighted (that is, controlled behavior).
103
+ */
104
+ highlightedSegment?: T | null;
105
+ /**
106
+ * An array of data segment objects that determines which data segments are currently visible (that is, not filtered out).
107
+ *
108
+ * - If you don't set this property, segments are filtered automatically when using the default filtering of the component (that is, uncontrolled behavior).
109
+ * - If you explicitly set this property, you must set an `onFilterChange` listener to update this property when the list of filtered segments changes (that is, controlled behavior).
110
+ */
111
+ visibleSegments?: ReadonlyArray<T>;
112
+ /**
113
+ * Specifies the current status of loading data.
114
+ * * `loading` - Indicates that data fetching is in progress.
115
+ * * `finished` - Indicates that data has loaded successfully.
116
+ * * `error` - Indicates that an error occurred during fetch. You should provide an option to enable the user to recover.
117
+ **/
118
+ statusType?: 'loading' | 'finished' | 'error';
119
+ /** @slot empty — Content that's displayed when the data passed to the component is empty */
120
+ /** @slot noMatch — Content that's displayed when there is no data to display because it doesn't match the specified filter */
121
+ /**
122
+ * Text that's displayed when the chart is loading (that is, when `statusType` is set to `loading`).
123
+ * @i18n
124
+ */
125
+ loadingText?: string;
126
+ /**
127
+ * Text that's displayed when the chart is in error state (that is, when `statusType` is set to `error`).
128
+ * @i18n
129
+ */
130
+ errorText?: string;
131
+ /**
132
+ * Text for the recovery button that's displayed next to the error text.
133
+ * @i18n
134
+ **/
135
+ recoveryText?: string;
136
+ /** @event recoveryClick — CustomEvent<void> */
137
+ /** @event highlightChange — CustomEvent<PieChartProps.HighlightChangeDetail<T>> */
138
+ /** @event filterChange — CustomEvent<PieChartProps.FilterChangeDetail<T>> */
139
+ /**
140
+ * ARIA label that's assigned to the chart. It should match the visible label on the page
141
+ * (for example, in the container header). Use either `ariaLabel` or `ariaLabelledby` (you can't use both).
142
+ */
143
+ ariaLabel?: string;
144
+ /**
145
+ * Sets `aria-labelledby` on the chart. If there is a visible label for the chart on the page
146
+ * (for example, in the container header), set this property to the ID of that header element.
147
+ * Use either `ariaLabel` or `ariaLabelledby` (you can't use both).
148
+ */
149
+ ariaLabelledby?: string;
150
+ /**
151
+ * A description of the chart that assistive technologies can use (through `aria-describedby` and `<title>`).
152
+ * Provide a concise summary of the data visualized in the chart.
153
+ */
154
+ ariaDescription?: string;
155
+ /**
156
+ * An object that contains all of the localized strings required by the component.
157
+ * @i18n
158
+ */
159
+ i18nStrings?: PieChartProps.I18nStrings;
160
+ /**
161
+ * Enable this property to make the chart fit into the available height of the parent container.
162
+ */
163
+ fitHeight?: boolean;
164
+ }
165
+ export declare namespace PieChartProps {
166
+ interface Datum {
167
+ title: string;
168
+ value: number;
169
+ color?: string;
170
+ }
171
+ type PieChartData = ReadonlyArray<Datum>;
172
+ interface DetailPopoverContentFunction<T = Datum> {
173
+ (segment: T, visibleDataSum: number): ReadonlyArray<ChartDetailPair>;
174
+ }
175
+ interface DetailPopoverFooter<T> {
176
+ (segment: T): unknown;
177
+ }
178
+ interface SegmentDescriptionFunction<T = Datum> {
179
+ (segment: T, visibleDataSum: number): string;
180
+ }
181
+ interface HighlightChangeDetail<T> {
182
+ highlightedSegment: T | null;
183
+ }
184
+ interface FilterChangeDetail<T> {
185
+ visibleSegments: ReadonlyArray<T>;
186
+ }
187
+ interface I18nStrings {
188
+ /** Name of the "Value" key that is displayed in the details popover by default */
189
+ detailsValue?: string;
190
+ /** Name of the "Percentage" key that is displayed in the details popover by default */
191
+ detailsPercentage?: string;
192
+ /** Visible label of the default filter */
193
+ filterLabel?: string;
194
+ /** Placeholder text of the default filter */
195
+ filterPlaceholder?: string;
196
+ /** ARIA label for the default filter which is appended to any option that is selected */
197
+ filterSelectedAriaLabel?: string;
198
+ /** ARIA label that is associated with the legend in case there is no visible `legendTitle` defined */
199
+ legendAriaLabel?: string;
200
+ /** ARIA label for details popover dismiss button */
201
+ detailPopoverDismissAriaLabel?: string;
202
+ /** Name of the ARIA role description of the chart, e.g. "pie chart" */
203
+ chartAriaRoleDescription?: string;
204
+ /** Name of the ARIA role description of each segment, e.g. "segment" */
205
+ segmentAriaRoleDescription?: string;
206
+ }
207
+ }
208
+ export {};
209
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1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O,EAAE,CAAC,GAAG,OAAO,CAAC;KACvB;IACD,UAAU,0BAA0B,CAAC,CAAC,GAAG,KAAK;QAC5C,CAAC,OAAO,EAAE,CAAC,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC;KAC9C;IACD,UAAU,qBAAqB,CAAC,CAAC;QAC/B,kBAAkB,EAAE,CAAC,GAAG,IAAI,CAAC;KAC9B;IACD,UAAU,kBAAkB,CAAC,CAAC;QAC5B,eAAe,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KACnC;IACD,UAAU,WAAW;QACnB,kFAAkF;QAClF,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,uFAAuF;QACvF,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,0CAA0C;QAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,6CAA6C;QAC7C,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,yFAAyF;QACzF,uBAAuB,CAAC,EAAE,MAAM,CAAC;QACjC,sGAAsG;QACtG,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,oDAAoD;QACpD,6BAA6B,CAAC,EAAE,MAAM,CAAC;QACvC,uEAAuE;QACvE,wBAAwB,CAAC,EAAE,MAAM,CAAC;QAClC,wEAAwE;QACxE,0BAA0B,CAAC,EAAE,MAAM,CAAC;KACrC;CACF;AACD,OAAO,EAAE,CAAC"}
@@ -0,0 +1,92 @@
1
+ export interface PopoverProps {
2
+ /**
3
+ * Determines where the popover is displayed when opened, relative to the trigger.
4
+ * If the popover doesn't have enough space to open in this direction, it
5
+ * automatically chooses a better direction based on available space.
6
+ */
7
+ position?: PopoverProps.Position;
8
+ /**
9
+ * Determines the maximum width for the popover.
10
+ */
11
+ size?: PopoverProps.Size;
12
+ /**
13
+ * Expands the popover body to its maximum width regardless of content.
14
+ * For example, use it when you need to place a column layout in the popover content.
15
+ */
16
+ fixedWidth?: boolean;
17
+ /**
18
+ * Specifies the type of content inside the trigger region. The following types are available:
19
+ * - `text` - Use for triggers containing inline components, like status indicator.
20
+ * - `text-inline` - Use for triggers containing plain text only.
21
+ * - `custom` - Use for the [button](/components/button/) component.
22
+ */
23
+ triggerType?: PopoverProps.TriggerType;
24
+ /**
25
+ * Adds `aria-label` to the text trigger button. Use this to provide an accessible name for triggers
26
+ * that don't have visible text, and to distinguish between multiple triggers with identical visible text.
27
+ */
28
+ triggerAriaLabel?: string;
29
+ /**
30
+ * Specifies if the text trigger content should wrap. If you set it to false, it prevents the text from
31
+ * wrapping and truncates it with an ellipsis.
32
+ */
33
+ wrapTriggerText?: boolean;
34
+ /** @slot default — Element that triggers the popover when selected by the user */
35
+ /**
36
+ * Specifies optional header text for the popover.
37
+ */
38
+ header?: string;
39
+ /** @slot content — Content of the popover */
40
+ /**
41
+ * Determines whether the dismiss button is shown in the popover body.
42
+ */
43
+ dismissButton?: boolean;
44
+ /**
45
+ * Adds an `aria-label` to the dismiss button for accessibility.
46
+ * @i18n
47
+ */
48
+ dismissAriaLabel?: string;
49
+ /**
50
+ * By default, the popover is constrained to fit inside its parent
51
+ * [stacking context](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context).
52
+ * Enabling this property will allow the popover to be rendered in the root stack context using
53
+ * [React Portals](https://reactjs.org/docs/portals.html).
54
+ * Enable this setting if you need the popover to ignore its parent stacking context, such as in side navigation.
55
+ *
56
+ * Note: Using popover rendered with portal within a Modal is not supported.
57
+ */
58
+ renderWithPortal?: boolean;
59
+ }
60
+ /**
61
+ * The position the popover is actually in, given space constraints.
62
+ */
63
+ export type InternalPosition = 'right-top' | 'right-bottom' | 'left-top' | 'left-bottom' | 'top-center' | 'top-right' | 'top-left' | 'bottom-center' | 'bottom-right' | 'bottom-left';
64
+ export interface Offset {
65
+ insetInlineStart: number;
66
+ insetBlockStart: number;
67
+ }
68
+ export interface Dimensions {
69
+ inlineSize: number;
70
+ blockSize: number;
71
+ }
72
+ export type BoundingBox = Dimensions & Offset;
73
+ export type Rect = BoundingBox & {
74
+ insetBlockEnd: number;
75
+ insetInlineEnd: number;
76
+ };
77
+ export declare namespace PopoverProps {
78
+ type Position = 'top' | 'right' | 'bottom' | 'left';
79
+ type Size = 'small' | 'medium' | 'large';
80
+ type TriggerType = 'text' | 'text-inline' | 'custom';
81
+ interface Ref {
82
+ /**
83
+ * Sets focus on the popover's trigger and dismisses the popover if open.
84
+ */
85
+ focus(): void;
86
+ /**
87
+ * Dismisses the popover without focusing the trigger. Use only if an element other than the trigger needs to be focused after dismissing the popover.
88
+ */
89
+ dismiss(): void;
90
+ }
91
+ }
92
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/popover/interfaces.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC;IACvC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kFAAkF;IAClF;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6CAA6C;IAC7C;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,cAAc,GAAG,UAAU,GAAG,aAAa,GAAG,YAAY,GAAG,WAAW,GAAG,UAAU,GAAG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