@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,74 @@
1
+ export interface ProgressBarProps {
2
+ /**
3
+ * Indicates the current progress as a percentage. The value must be between 0 and 100. Decimals are rounded.
4
+ */
5
+ value?: number;
6
+ /**
7
+ * Specifies the status of the progress bar. You can set it to one of the following:
8
+ *
9
+ * - `"in-progress"` - Displays a progress bar.
10
+ * - `"success"` or `"error"` - Displays a result state and replaces the progress element with a status indicator,
11
+ * `resultText`, and a result button.
12
+ */
13
+ status?: ProgressBarProps.Status;
14
+ /**
15
+ * Enables the correct styling of the progress bar in different contexts. You can set it to one of the following:
16
+ *
17
+ * - `"flash"` - Use this variant when using the progress bar within a flash component.
18
+ * Note that the result button isn't displayed when using this variant.
19
+ * Use the `buttonText` property and the `onButtonClick` event listener of the flashbar item instead of the result button provided by the progress bar.
20
+ * - `"key-value"` - Use this variant when using the progress bar within the key-value pairs pattern.
21
+ * - `"standalone"` Use in all other cases. This is the default value.
22
+ */
23
+ variant?: ProgressBarProps.Variant;
24
+ /**
25
+ * Specifies the text for the button that's displayed when the `status` is set to `error` or `success`.
26
+ * If `resultButtonText` is empty, the result button isn't displayed.
27
+ *
28
+ * Note: If you use the `flash` variant, the result button isn't displayed.
29
+ * Add a button using the `action` property of the flashbar item instead.
30
+ */
31
+ resultButtonText?: string;
32
+ /**
33
+ * Adds an `aria-label` to the progress bar.
34
+ */
35
+ ariaLabel?: string;
36
+ /**
37
+ * Adds `aria-labelledby` to the progress bar.
38
+ */
39
+ ariaLabelledby?: string;
40
+ /**
41
+ * Adds `aria-describedby` to the progress bar.
42
+ */
43
+ ariaDescribedby?: string;
44
+ /** @slot label — Short description of the operation that appears at the top of the component */
45
+ /** @slot description — More detailed information about the operation that appears below the label */
46
+ /** @slot additionalInfo — Information that's displayed below the progress bar or status text */
47
+ /** @slot resultText — Content that's displayed when `status` is set to `error` or `success` */
48
+ /** @event resultButtonClick — CustomEvent<void> */
49
+ /**
50
+ * An object containing CSS properties to customize the progress bar's visual appearance.
51
+ * Refer to the [style](/components/progress-bar/?tabId=style) tab for more details.
52
+ */
53
+ style?: ProgressBarProps.Style;
54
+ }
55
+ export declare namespace ProgressBarProps {
56
+ type Status = 'in-progress' | 'success' | 'error';
57
+ type Variant = 'standalone' | 'flash' | 'key-value';
58
+ interface Style {
59
+ progressBar?: {
60
+ backgroundColor?: string;
61
+ borderRadius?: string;
62
+ height?: string;
63
+ };
64
+ progressValue?: {
65
+ backgroundColor?: string;
66
+ };
67
+ progressPercentage?: {
68
+ color?: string;
69
+ fontSize?: string;
70
+ fontWeight?: string;
71
+ };
72
+ }
73
+ }
74
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/progress-bar/interfaces.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC;IACjC;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC;IACnC;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gGAAgG;IAChG,qGAAqG;IACrG,gGAAgG;IAChG,+FAA+F;IAC/F,mDAAmD;IACnD;;;OAGG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC,KAAK,CAAC;CAChC;AACD,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,KAAK,MAAM,GAAG,aAAa,GAAG,SAAS,GAAG,OAAO,CAAC;IAClD,KAAK,OAAO,GAAG,YAAY,GAAG,OAAO,GAAG,WAAW,CAAC;IACpD,UAAU,KAAK;QACb,WAAW,CAAC,EAAE;YACZ,eAAe,CAAC,EAAE,MAAM,CAAC;YACzB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,CAAC;QACF,aAAa,CAAC,EAAE;YACd,eAAe,CAAC,EAAE,MAAM,CAAC;SAC1B,CAAC;QACF,kBAAkB,CAAC,EAAE;YACnB,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,UAAU,CAAC,EAAE,MAAM,CAAC;SACrB,CAAC;KACH;CACF"}
@@ -0,0 +1,123 @@
1
+ import { IconProps } from '../icon/interfaces.js';
2
+ import { BaseChangeDetail, BaseInputProps, InputAutoComplete, InputAutoCorrect, InputKeyEvents, InputSpellcheck } from '../input/interfaces.js';
3
+ import { BaseKeyDetail } from '../internal/generated/cloudscape-types.js';
4
+ export interface PromptInputProps extends Omit<BaseInputProps, 'nativeInputAttributes'>, InputKeyEvents, InputAutoCorrect, InputAutoComplete, InputSpellcheck {
5
+ /** @event action — CustomEvent<PromptInputProps.ActionDetail> */
6
+ /**
7
+ * Determines what icon to display in the action button.
8
+ */
9
+ actionButtonIconName?: IconProps.Name;
10
+ /**
11
+ * Specifies the URL of a custom icon. Use this property if the icon you want isn't available.
12
+ *
13
+ * If you set both `actionButtonIconUrl` and `actionButtonIconSvg`, `actionButtonIconSvg` will take precedence.
14
+ */
15
+ actionButtonIconUrl?: string;
16
+ /** @slot actionButtonIconSvg — Specifies the SVG of a custom icon */
17
+ /**
18
+ * Specifies alternate text for a custom icon. We recommend that you provide this for accessibility.
19
+ * This property is ignored if you use a predefined icon or if you set your custom icon using the `iconSvg` slot.
20
+ */
21
+ actionButtonIconAlt?: string;
22
+ /**
23
+ * Adds an aria-label to the action button.
24
+ * @i18n
25
+ */
26
+ actionButtonAriaLabel?: string;
27
+ /**
28
+ * Specifies whether to disable the action button.
29
+ */
30
+ disableActionButton?: boolean;
31
+ /**
32
+ * Specifies the minimum number of lines of text to set the height to.
33
+ */
34
+ minRows?: number;
35
+ /**
36
+ * Specifies the maximum number of lines of text the textarea will expand to.
37
+ * Defaults to 3. Use -1 for infinite rows.
38
+ */
39
+ maxRows?: number;
40
+ /** @slot customPrimaryAction — Use this to replace the primary action */
41
+ /** @slot secondaryActions — Use this slot to add secondary actions to the prompt input */
42
+ /** @slot secondaryContent — Use this slot to add secondary content, such as file attachments, to the prompt input */
43
+ /**
44
+ * Determines whether the secondary actions area of the input has padding. If true, removes the default padding from the secondary actions area.
45
+ */
46
+ disableSecondaryActionsPaddings?: boolean;
47
+ /**
48
+ * Determines whether the secondary content area of the input has padding. If true, removes the default padding from the secondary content area.
49
+ */
50
+ disableSecondaryContentPaddings?: boolean;
51
+ /**
52
+ * An object containing CSS properties to customize the prompt input's visual appearance.
53
+ * Refer to the [style](/components/prompt-input/?tabId=style) tab for more details.
54
+ */
55
+ style?: PromptInputProps.Style;
56
+ }
57
+ export declare namespace PromptInputProps {
58
+ type KeyDetail = BaseKeyDetail;
59
+ type ActionDetail = BaseChangeDetail;
60
+ interface Ref {
61
+ /**
62
+ * Sets input focus on the textarea control.
63
+ */
64
+ focus(): void;
65
+ /**
66
+ * Selects all text in the textarea control.
67
+ */
68
+ select(): void;
69
+ /**
70
+ * Selects a range of text in the textarea control.
71
+ *
72
+ * See https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setSelectionRange
73
+ * for more details on this method. Be aware that using this method in React has some
74
+ * common pitfalls: https://stackoverflow.com/questions/60129605/is-javascripts-setselectionrange-incompatible-with-react-hooks
75
+ */
76
+ setSelectionRange(start: number | null, end: number | null, direction?: 'forward' | 'backward' | 'none'): void;
77
+ }
78
+ interface Style {
79
+ root?: {
80
+ backgroundColor?: {
81
+ default?: string;
82
+ disabled?: string;
83
+ focus?: string;
84
+ hover?: string;
85
+ readonly?: string;
86
+ };
87
+ borderColor?: {
88
+ default?: string;
89
+ disabled?: string;
90
+ focus?: string;
91
+ hover?: string;
92
+ readonly?: string;
93
+ };
94
+ borderRadius?: string;
95
+ borderWidth?: string;
96
+ boxShadow?: {
97
+ default?: string;
98
+ disabled?: string;
99
+ focus?: string;
100
+ hover?: string;
101
+ readonly?: string;
102
+ };
103
+ color?: {
104
+ default?: string;
105
+ disabled?: string;
106
+ focus?: string;
107
+ hover?: string;
108
+ readonly?: string;
109
+ };
110
+ fontSize?: string;
111
+ fontWeight?: string;
112
+ paddingBlock?: string;
113
+ paddingInline?: string;
114
+ };
115
+ placeholder?: {
116
+ color?: string;
117
+ fontSize?: string;
118
+ fontStyle?: string;
119
+ fontWeight?: string;
120
+ };
121
+ }
122
+ }
123
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/prompt-input/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAChJ,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC1E,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,cAAc,EAAE,uBAAuB,CAAC,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe;IAC3J,iEAAiE;IACjE;;OAEG;IACH,oBAAoB,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC;IACtC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,qEAAqE;IACrE;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;OAEG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AAC;YACF,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,SAAS,CAAC,EAAE;gBACV,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAClB,KAAK,CAAC,EAAE,MAAM,CAAC;gBACf,KAAK,CAAC,EAAE,MAAM,CAAC;gBACf,QAAQ,CAAC,EAAE,MAAM,CAAC;aACnB,CAAC;YACF,KAAK,CAAC,EAAE;gBACN,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAClB,KAAK,CAAC,EAAE,MAAM,CAAC;gBACf,KAAK,CAAC,EAAE,MAAM,CAAC;gBACf,QAAQ,CAAC,EAAE,MAAM,CAAC;aACnB,CAAC;YACF,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB,CAAC;QACF,WAAW,CAAC,EAAE;YACZ,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,UAAU,CAAC,EAAE,MAAM,CAAC;SACrB,CAAC;KACH;CACF"}
@@ -0,0 +1,344 @@
1
+ import type { PropertyFilterFreeTextFiltering, PropertyFilterOperation, PropertyFilterOperator, PropertyFilterOperatorExtended, PropertyFilterOperatorForm, PropertyFilterOperatorFormat, PropertyFilterOperatorFormProps, PropertyFilterOption, PropertyFilterProperty, PropertyFilterQuery, PropertyFilterToken, PropertyFilterTokenGroup, PropertyFilterTokenType } from '@cloudscape-design/collection-hooks';
2
+ import { AutosuggestProps } from '../autosuggest/interfaces.js';
3
+ import { ExpandToViewport } from '../dropdown/interfaces.js';
4
+ export interface PropertyFilterProps extends ExpandToViewport {
5
+ /**
6
+ * If set to `true`, the filtering input will be disabled.
7
+ * Use it, for example, if you are fetching new items upon filtering change
8
+ * in order to prevent the user from changing the filtering query.
9
+ */
10
+ disabled?: boolean;
11
+ /**
12
+ * An object containing all the necessary localized strings required by the component.
13
+ * @i18n
14
+ */
15
+ i18nStrings?: PropertyFilterProps.I18nStrings;
16
+ /**
17
+ * Accepts a human-readable, localized string that indicates the number of results. For example, "1 match" or "165 matches."
18
+ * If the total number of results is unknown, also include an indication that there may be more results than
19
+ * the number listed. For example, "25+ matches."
20
+ *
21
+ * The count text is only displayed when `query.tokens` isn't empty.
22
+ * When the `countText` or `query` changes, it will be announced to assistive technologies.
23
+ */
24
+ countText?: string;
25
+ /**
26
+ * Set to `true` while the related collection is loading (e.g. during an async filtering action).
27
+ * If set to `true`, the live announcement of countText by assistive technologies will be paused until it changes back to `false`.
28
+ */
29
+ loading?: boolean;
30
+ /**
31
+ * An object representing the current query displayed in the property filter, which has three properties: `operation`, `tokens`, and `tokenGroups`.
32
+ * The `operation` property has two valid values: "and", "or", and controls the join operation to be applied between tokens when filtering the items.
33
+ * The `tokens` property is an array of objects that will be displayed to the user beneath the filtering input. When `enableTokenGroups=true`, the
34
+ * `tokenGroups` property is used instead, which supports nested tokens.
35
+ *
36
+ * Each token has the following properties:
37
+ * * value [unknown]: The value of the token to be used as a filter. Can be null or string for default tokens, string[] for enum tokens, and anything for tokens with custom forms.
38
+ * * propertyKey [string]: The key of the corresponding property in filteringProperties.
39
+ * * operator ['<' | '<=' | '>' | '>=' | ':' | '!:' | '=' | '!=' | '^' | '!^']: The operator which indicates how to filter the dataset using this token.
40
+ */
41
+ query: PropertyFilterProps.Query;
42
+ /**
43
+ * If hideOperations it set, the indicator of the operation (that is, `and` or `or`) and the selection of operations
44
+ * (applied to the property and value token) are hidden from the user. Only use when you have a custom
45
+ * filtering logic which combines tokens in different way than the default one. When used, ensure that
46
+ * operations are communicated to the user in another way, or use `readOnlyOperations`.
47
+ *
48
+ * This property cannot be set when `enableTokenGroups=true`.
49
+ */
50
+ hideOperations?: boolean;
51
+ /**
52
+ * If readOnlyOperations it set, the indicator of the operation (that is, `and` or `or`) is shown, but the
53
+ * operation cannot be changed. This is also supported for nested tokens when `enableTokenGroups=true`.
54
+ */
55
+ readOnlyOperations?: boolean;
56
+ /**
57
+ * Activates token grouping mechanism to support token nesting (up to one level).
58
+ * When `true`, the `query.tokens` property is ignored and `query.tokenGroups` is used instead.
59
+ */
60
+ enableTokenGroups?: boolean;
61
+ /** @event change — CustomEvent<PropertyFilterProps.Query> */
62
+ /**
63
+ * An array of properties by which the data set can be filtered. Each element has the following properties:
64
+ *
65
+ * * groupValuesLabel [string]: Localized string to display for the 'Values' group label for a specific property.
66
+ * * key [string]: The identifier of this property.
67
+ * * propertyLabel [string]: A human-readable string for the property.
68
+ * * operators [Array]: A list of all operators supported by this property. If you omit the equals operator because your API does not support it, make sure to set `defaultOperator` to a supported operator from this list.
69
+ * * group [string]: Optional identifier of a custom group that this filtering option is assigned to. Use to create additional groups below the default one. Make sure to also define labels for the group in the customGroupsText property. Notice that only one level of options nesting is supported.
70
+ * * defaultOperator [ComparisonOperator]: Optional parameter that changes the default operator used with this filtering property. Use it only if your API does not support "equals" filtering terms with this property.
71
+ */
72
+ filteringProperties: ReadonlyArray<PropertyFilterProps.FilteringProperty>;
73
+ /**
74
+ * An array of possible values of the individual `filteringProperties`. Each element has the following properties:
75
+ *
76
+ * * `propertyKey` [string]: The key of the corresponding filtering property in the `filteringProperties` array.
77
+ * * `value` [string]: The value that will be used as a suggestion when creating or modifying a filtering token.
78
+ * * `label` [string]: Optional suggestion label to be matched instead of the value.
79
+ * * `tags` [string[]]: Optional list of tags giving further guidance about the option.
80
+ * * `filteringTags` [string[]]: Optional list of additional tags used for automatic filtering.
81
+ *
82
+ * Filtering options that require labels can only use `=` and `!=` operators. The token value must be labelled separately, for example:
83
+ * ```
84
+ * const filteringProperty = {
85
+ * key: 'state',
86
+ * propertyLabel: 'State',
87
+ * operators: ['=', '!='].map(operator => ({ operator, format: getStateLabel }))
88
+ * }
89
+ * const filteringOptions = [
90
+ * { propertyKey: 'state', value: 'STOPPED', label: getStateLabel('STOPPED') },
91
+ * { propertyKey: 'state', value: 'STOPPING', label: getStateLabel('STOPPING') },
92
+ * { propertyKey: 'state', value: 'RUNNING', label: getStateLabel('RUNNING') },
93
+ * ]
94
+ * ```
95
+ */
96
+ filteringOptions?: ReadonlyArray<PropertyFilterProps.FilteringOption>;
97
+ /**
98
+ * An array of objects that contain localized, human-readable strings for the labels of custom groups within the filtering dropdown. Use group property to associate the strings with your custom group of options. Define the following values for each group:
99
+ *
100
+ * * properties [string]: The group label in the filtering dropdown that contains the list of properties from this group. For example: Tags.
101
+ * * values [string]: The group label in the filtering dropdown that contains the list of values from this group. For example: Tags values.
102
+ * * group [string]: The identifier of a custom group.
103
+ */
104
+ customGroupsText?: PropertyFilterProps.GroupText[];
105
+ /**
106
+ * Set `disableFreeTextFiltering` only if you can’t filter the dataset using a filter that is applied to every column,
107
+ * instead of a specific property. This would stop the user from creating such tokens.
108
+ */
109
+ disableFreeTextFiltering?: boolean;
110
+ /**
111
+ * An object configuring the operators for free text filtering, which has the following properties:
112
+ *
113
+ * * operators [Array]: A list of all operators supported for free text filtering. If you omit the contains operator because your API does not support it, make sure to set `defaultOperator` to a supported operator from this list.
114
+ * * defaultOperator [ComparisonOperator]: An optional parameter that changes the default operator used for free text filtering. Use this parameter only if your API does not support "contains" free test filtering terms.
115
+ */
116
+ freeTextFiltering?: PropertyFilterProps.FreeTextFiltering;
117
+ /** @event loadItems — CustomEvent<PropertyFilterProps.LoadItemsDetail> */
118
+ /**
119
+ * If you have more than 500 `filteringOptions`, enable this flag to apply a performance optimization that makes
120
+ * the filtering experience smoother. We don't recommend enabling the feature if you have less than 500 options,
121
+ * because the improvements to performance are offset by a visible scrolling lag. When you set this flag to true,
122
+ * it removes options that are not currently in view from the DOM.
123
+ */
124
+ virtualScroll?: boolean;
125
+ /** @slot customControl — A slot located before the filtering input */
126
+ /** @slot customFilterActions — A slot that replaces the standard "Clear filter" button */
127
+ /**
128
+ * Set `asyncProperties` if you need to load `filteringProperties` asynchronously. This would cause extra `onLoadMore`
129
+ * events to fire calling for more properties.
130
+ */
131
+ asyncProperties?: boolean;
132
+ /**
133
+ * Specifies the maximum number of displayed tokens. If the property isn't set, all of the tokens are displayed.
134
+ */
135
+ tokenLimit?: number;
136
+ /**
137
+ * The label that will be passed down to the Autosuggest `ariaLabel` property.
138
+ * See the [Autosuggest API](/components/autosuggest/?tabId=api) page for more details.
139
+ */
140
+ filteringAriaLabel?: string;
141
+ /**
142
+ * Placeholder for the filtering input.
143
+ */
144
+ filteringPlaceholder?: string;
145
+ /** @slot filteringEmpty — Displayed when there are no options to display */
146
+ /**
147
+ * Specifies the text to display when in the loading state.
148
+ **/
149
+ filteringLoadingText?: string;
150
+ /**
151
+ * Specifies the text to display at the bottom of the dropdown menu after pagination has reached the end.
152
+ **/
153
+ filteringFinishedText?: string;
154
+ /**
155
+ * Specifies the text to display when a data fetching error occurs. Make sure that you provide `recoveryText`.
156
+ **/
157
+ filteringErrorText?: string;
158
+ /**
159
+ * Specifies the text for the recovery button. The text is displayed next to the error text.
160
+ * Use the `onLoadItems` event to perform a recovery action (for example, retrying the request).
161
+ **/
162
+ filteringRecoveryText?: string;
163
+ /** @slot filteringConstraintText — Constraint text that's displayed below the filtering input */
164
+ /**
165
+ * Specifies the current status of loading more options.
166
+ * * `pending` - Indicates that no request in progress, but more options may be loaded.
167
+ * * `loading` - Indicates that data fetching is in progress.
168
+ * * `finished` - Indicates that pagination has finished and no more requests are expected.
169
+ * * `error` - Indicates that an error occurred during fetch. You should use `recoveryText` to enable the user to recover.
170
+ **/
171
+ filteringStatusType?: PropertyFilterProps.StatusType;
172
+ /**
173
+ * Adds an aria-label to the "Show fewer" button for the token group control.
174
+ * Use to assign unique labels when there are multiple token groups with the same `tokenLimitShowFewer` label on one page.
175
+ */
176
+ tokenLimitShowFewerAriaLabel?: string;
177
+ /**
178
+ * Adds an aria-label to the "Show more" button for the token group control.
179
+ * Use to assign unique labels when there are multiple token groups with the same `tokenLimitShowMore` label on one page.
180
+ */
181
+ tokenLimitShowMoreAriaLabel?: string;
182
+ }
183
+ export declare namespace PropertyFilterProps {
184
+ type Token = PropertyFilterToken;
185
+ type TokenGroup = PropertyFilterTokenGroup;
186
+ type JoinOperation = PropertyFilterOperation;
187
+ type ComparisonOperator = PropertyFilterOperator;
188
+ type ExtendedOperator<TokenValue> = PropertyFilterOperatorExtended<TokenValue>;
189
+ type ExtendedOperatorFormProps<TokenValue> = PropertyFilterOperatorFormProps<TokenValue>;
190
+ type ExtendedOperatorForm<TokenValue> = PropertyFilterOperatorForm<TokenValue>;
191
+ type ExtendedOperatorFormat<TokenValue> = PropertyFilterOperatorFormat<TokenValue>;
192
+ type FilteringOption = PropertyFilterOption;
193
+ type FilteringProperty = PropertyFilterProperty;
194
+ type FreeTextFiltering = PropertyFilterFreeTextFiltering;
195
+ type Query = PropertyFilterQuery;
196
+ type StatusType = DropdownStatusProps.StatusType;
197
+ interface LoadItemsDetail {
198
+ filteringProperty?: FilteringProperty;
199
+ filteringOperator?: ComparisonOperator;
200
+ filteringText: string;
201
+ firstPage: boolean;
202
+ samePage: boolean;
203
+ }
204
+ interface I18nStrings {
205
+ /**
206
+ * @deprecated Use `filteringAriaLabel` on the component instead.
207
+ */
208
+ filteringAriaLabel?: string;
209
+ /**
210
+ * @deprecated Use `filteringPlaceholder` on the component instead.
211
+ */
212
+ filteringPlaceholder?: string;
213
+ dismissAriaLabel?: string;
214
+ clearAriaLabel?: string;
215
+ groupValuesText?: string;
216
+ groupPropertiesText?: string;
217
+ operatorsText?: string;
218
+ operationAndText?: string;
219
+ operationOrText?: string;
220
+ operatorLessText?: string;
221
+ operatorLessOrEqualText?: string;
222
+ operatorGreaterText?: string;
223
+ operatorGreaterOrEqualText?: string;
224
+ operatorContainsText?: string;
225
+ operatorDoesNotContainText?: string;
226
+ operatorEqualsText?: string;
227
+ operatorDoesNotEqualText?: string;
228
+ operatorStartsWithText?: string;
229
+ operatorDoesNotStartWithText?: string;
230
+ editTokenHeader?: string;
231
+ propertyText?: string;
232
+ operatorText?: string;
233
+ valueText?: string;
234
+ cancelActionText?: string;
235
+ applyActionText?: string;
236
+ allPropertiesLabel?: string;
237
+ formatToken?: (token: FormattedToken) => string;
238
+ tokenLimitShowMore?: string;
239
+ tokenLimitShowFewer?: string;
240
+ clearFiltersText?: string;
241
+ tokenOperatorAriaLabel?: string;
242
+ removeTokenButtonAriaLabel?: (token: FormattedToken) => string;
243
+ enteredTextLabel?: AutosuggestProps.EnteredTextLabel;
244
+ groupEditAriaLabel?: (group: FormattedTokenGroup) => string;
245
+ tokenEditorTokenActionsAriaLabel?: (token: FormattedToken) => string;
246
+ tokenEditorTokenRemoveAriaLabel?: (token: FormattedToken) => string;
247
+ tokenEditorTokenRemoveLabel?: string;
248
+ tokenEditorTokenRemoveFromGroupLabel?: string;
249
+ tokenEditorAddNewTokenLabel?: string;
250
+ tokenEditorAddTokenActionsAriaLabel?: string;
251
+ tokenEditorAddExistingTokenAriaLabel?: (token: FormattedToken) => string;
252
+ tokenEditorAddExistingTokenLabel?: (token: FormattedToken) => string;
253
+ }
254
+ interface FormattedToken {
255
+ propertyKey?: string;
256
+ propertyLabel: string;
257
+ operator: ComparisonOperator;
258
+ value: string;
259
+ }
260
+ interface FormattedTokenGroup {
261
+ tokens: FormattedToken[];
262
+ operation: string;
263
+ operationLabel: string;
264
+ }
265
+ interface GroupText {
266
+ properties: string;
267
+ values: string;
268
+ group: string;
269
+ }
270
+ interface FilteringChangeDetail {
271
+ filteringText: string;
272
+ filteringProperty?: FilteringProperty;
273
+ }
274
+ interface Ref {
275
+ /**
276
+ * Sets focus on the underlying input control.
277
+ */
278
+ focus(): void;
279
+ }
280
+ }
281
+ export type Token = PropertyFilterProps.Token;
282
+ export type TokenGroup = PropertyFilterProps.TokenGroup;
283
+ export type JoinOperation = PropertyFilterProps.JoinOperation;
284
+ export type ComparisonOperator = PropertyFilterProps.ComparisonOperator;
285
+ export type ExtendedOperator<TokenValue> = PropertyFilterOperatorExtended<TokenValue>;
286
+ export type ExtendedOperatorForm<TokenValue> = PropertyFilterOperatorForm<TokenValue>;
287
+ export type FilteringOption = PropertyFilterProps.FilteringOption;
288
+ export type FilteringProperty = PropertyFilterProps.FilteringProperty;
289
+ export type Query = PropertyFilterProps.Query;
290
+ export type LoadItemsDetail = PropertyFilterProps.LoadItemsDetail;
291
+ export type I18nStrings = PropertyFilterProps.I18nStrings;
292
+ export type GroupText = PropertyFilterProps.GroupText;
293
+ export type FormattedToken = PropertyFilterProps.FormattedToken;
294
+ export type Ref = PropertyFilterProps.Ref;
295
+ export interface InternalFilteringProperty<TokenValue = any> {
296
+ propertyKey: string;
297
+ propertyLabel: string;
298
+ groupValuesLabel: string;
299
+ propertyGroup?: string;
300
+ operators: readonly PropertyFilterOperator[];
301
+ defaultOperator: PropertyFilterOperator;
302
+ getTokenType: (operator?: PropertyFilterOperator) => PropertyFilterTokenType;
303
+ getValueFormatter: (operator?: PropertyFilterOperator) => null | ((value: any) => string);
304
+ getValueFormRenderer: (operator?: PropertyFilterOperator) => null | PropertyFilterOperatorForm<TokenValue>;
305
+ externalProperty: PropertyFilterProperty;
306
+ }
307
+ export interface InternalFilteringOption {
308
+ property: null | InternalFilteringProperty;
309
+ value: string;
310
+ label: string;
311
+ tags?: ReadonlyArray<string>;
312
+ filteringTags?: ReadonlyArray<string>;
313
+ }
314
+ export interface InternalFreeTextFiltering {
315
+ disabled: boolean;
316
+ operators: readonly PropertyFilterOperator[];
317
+ defaultOperator: PropertyFilterOperator;
318
+ }
319
+ export interface InternalToken<TokenValue = any> {
320
+ standaloneIndex?: number;
321
+ property: null | InternalFilteringProperty<TokenValue>;
322
+ operator: PropertyFilterOperator;
323
+ value: TokenValue;
324
+ }
325
+ export interface InternalTokenGroup<TokenValue = any> {
326
+ operation: PropertyFilterOperation;
327
+ tokens: readonly (InternalToken<TokenValue> | InternalTokenGroup<TokenValue>)[];
328
+ }
329
+ export type InternalQuery = InternalTokenGroup;
330
+ export type ParsedText = {
331
+ step: 'property';
332
+ property: InternalFilteringProperty;
333
+ operator: ComparisonOperator;
334
+ value: string;
335
+ } | {
336
+ step: 'operator';
337
+ property: InternalFilteringProperty;
338
+ operatorPrefix: string;
339
+ } | {
340
+ step: 'free-text';
341
+ operator?: ComparisonOperator;
342
+ value: string;
343
+ };
344
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/property-filter/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,+BAA+B,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,8BAA8B,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,+BAA+B,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAClZ,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,mBAAmB,CAAC,WAAW,CAAC;IAC9C;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;OAUG;IACH,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC;IACjC;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAA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MAAM,CAAC,CAAC;CACvC;AACD,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,SAAS,sBAAsB,EAAE,CAAC;IAC7C,eAAe,EAAE,sBAAsB,CAAC;CACzC;AACD,MAAM,WAAW,aAAa,CAAC,UAAU,GAAG,GAAG;IAC7C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,IAAI,GAAG,yBAAyB,CAAC,UAAU,CAAC,CAAC;IACvD,QAAQ,EAAE,sBAAsB,CAAC;IACjC,KAAK,EAAE,UAAU,CAAC;CACnB;AACD,MAAM,WAAW,kBAAkB,CAAC,UAAU,GAAG,GAAG;IAClD,SAAS,EAAE,uBAAuB,CAAC;IACnC,MAAM,EAAE,SAAS,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC;CACjF;AACD,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC;AAC/C,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,yBAAyB,CAAC;IACpC,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf,GAAG;IACF,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,yBAAyB,CAAC;IACpC,cAAc,EAAE,MAAM,CAAC;CACxB,GAAG;IACF,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { RadioButtonProps };
2
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/radio-button/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { CsRadioGroupInternal } from './internal.js';
2
+ export declare class CsRadioGroup extends CsRadioGroupInternal {
3
+ }
4
+ export type { RadioGroupProps } from './interfaces.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/radio-group/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAErD,qBAAa,YAAa,SAAQ,oBAAoB;CAAG;AAIzD,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,76 @@
1
+ export interface RadioGroupProps {
2
+ /**
3
+ * Specify a custom name for the radio buttons. If not provided, the radio group generates a random name.
4
+ */
5
+ name?: string;
6
+ /**
7
+ * Sets the value of the selected radio button.
8
+ * If you want to clear the selection, use `null`.
9
+ */
10
+ value: string | null;
11
+ /**
12
+ * Specifies an array of radio buttons to display. Each of these objects have the following properties:
13
+ *
14
+ * - `value` (string) - Sets the value of the radio button. Assigned to the radio group when a user selects the radio button.
15
+ * - `label` (unknown) - Specifies a label for the radio button.
16
+ * - `description` (unknown) - (Optional) Specifies descriptive text that appears below the label.
17
+ * - `disabled` (boolean) - (Optional) Determines whether the radio button is disabled, which prevents the user from selecting it.
18
+ * - `controlId` (string) - (Optional) Sets the ID of the internal input. You can use it to relate a label element's `for` attribute to this control.
19
+ * In general it's not recommended to set this because the ID is automatically set by the radio group component.
20
+ */
21
+ items?: ReadonlyArray<RadioGroupProps.RadioButtonDefinition>;
22
+ /**
23
+ * Adds `aria-label` to the group. If you are using this form element within a form field,
24
+ * don't set this property because the form field component automatically sets the correct labels to make the component accessible.
25
+ */
26
+ ariaLabel?: string;
27
+ /**
28
+ * Adds `aria-required` to the group.
29
+ */
30
+ ariaRequired?: boolean;
31
+ /**
32
+ * Adds `aria-controls` attribute to the radio group.
33
+ * If the radio group controls any secondary content (for example, another form field), use this to provide an ID referring to the secondary content.
34
+ */
35
+ ariaControls?: string;
36
+ /** @event change — CustomEvent<RadioGroupProps.ChangeDetail> */
37
+ /**
38
+ * @deprecated Has no effect.
39
+ */
40
+ controlId?: string;
41
+ /**
42
+ * Specifies if the whole group is read-only, which prevents the
43
+ * user from modifying the value, but does not prevent the value from
44
+ * being included in a form submission. A read-only control is still focusable.
45
+ */
46
+ readOnly?: boolean;
47
+ /**
48
+ * An object containing CSS properties to customize the radio group's visual appearance.
49
+ * Refer to the [style](/components/radio-group/?tabId=style) tab for more details.
50
+ */
51
+ style?: RadioGroupProps.Style;
52
+ /**
53
+ * Defines the direction in which the radio buttons are laid out.
54
+ */
55
+ direction?: 'horizontal' | 'vertical';
56
+ }
57
+ export declare namespace RadioGroupProps {
58
+ interface RadioButtonDefinition {
59
+ value: string;
60
+ label: unknown;
61
+ description?: unknown;
62
+ disabled?: boolean;
63
+ controlId?: string;
64
+ }
65
+ interface ChangeDetail {
66
+ value: string;
67
+ }
68
+ interface Ref {
69
+ /**
70
+ * Sets input focus onto the UI control.
71
+ */
72
+ focus(): void;
73
+ }
74
+ type Style = RadioButtonProps.Style;
75
+ }
76
+ //# sourceMappingURL=interfaces.d.ts.map