@dxc-technology/halstack-react 0.0.0-f319e71 → 0.0.0-f35154e

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 (531) hide show
  1. package/README.md +1 -2
  2. package/dist/index.d.mts +3857 -0
  3. package/dist/index.d.ts +3857 -0
  4. package/dist/index.js +12889 -0
  5. package/dist/index.mjs +12802 -0
  6. package/package.json +70 -68
  7. package/BackgroundColorContext.d.ts +0 -1
  8. package/BackgroundColorContext.js +0 -30
  9. package/HalstackContext.d.ts +0 -1246
  10. package/HalstackContext.js +0 -310
  11. package/accordion/Accordion.accessibility.test.d.ts +0 -1
  12. package/accordion/Accordion.accessibility.test.js +0 -71
  13. package/accordion/Accordion.d.ts +0 -4
  14. package/accordion/Accordion.js +0 -168
  15. package/accordion/Accordion.stories.tsx +0 -241
  16. package/accordion/Accordion.test.d.ts +0 -1
  17. package/accordion/Accordion.test.js +0 -56
  18. package/accordion/types.d.ts +0 -57
  19. package/accordion/types.js +0 -5
  20. package/accordion-group/AccordionGroup.accessibility.test.d.ts +0 -1
  21. package/accordion-group/AccordionGroup.accessibility.test.js +0 -82
  22. package/accordion-group/AccordionGroup.d.ts +0 -7
  23. package/accordion-group/AccordionGroup.js +0 -101
  24. package/accordion-group/AccordionGroup.stories.tsx +0 -252
  25. package/accordion-group/AccordionGroup.test.d.ts +0 -1
  26. package/accordion-group/AccordionGroup.test.js +0 -94
  27. package/accordion-group/AccordionGroupAccordion.d.ts +0 -4
  28. package/accordion-group/AccordionGroupAccordion.js +0 -31
  29. package/accordion-group/AccordionGroupContext.d.ts +0 -3
  30. package/accordion-group/AccordionGroupContext.js +0 -8
  31. package/accordion-group/types.d.ts +0 -67
  32. package/accordion-group/types.js +0 -5
  33. package/action-icon/ActionIcon.accessibility.test.d.ts +0 -1
  34. package/action-icon/ActionIcon.accessibility.test.js +0 -63
  35. package/action-icon/ActionIcon.d.ts +0 -4
  36. package/action-icon/ActionIcon.js +0 -48
  37. package/action-icon/ActionIcon.stories.tsx +0 -41
  38. package/action-icon/ActionIcon.test.d.ts +0 -1
  39. package/action-icon/ActionIcon.test.js +0 -64
  40. package/action-icon/types.d.ts +0 -26
  41. package/action-icon/types.js +0 -5
  42. package/alert/Alert.accessibility.test.d.ts +0 -1
  43. package/alert/Alert.accessibility.test.js +0 -95
  44. package/alert/Alert.d.ts +0 -4
  45. package/alert/Alert.js +0 -203
  46. package/alert/Alert.stories.tsx +0 -198
  47. package/alert/Alert.test.d.ts +0 -1
  48. package/alert/Alert.test.js +0 -75
  49. package/alert/types.d.ts +0 -49
  50. package/alert/types.js +0 -5
  51. package/badge/Badge.accessibility.test.d.ts +0 -1
  52. package/badge/Badge.accessibility.test.js +0 -129
  53. package/badge/Badge.d.ts +0 -4
  54. package/badge/Badge.js +0 -161
  55. package/badge/Badge.stories.tsx +0 -210
  56. package/badge/Badge.test.d.ts +0 -1
  57. package/badge/Badge.test.js +0 -30
  58. package/badge/types.d.ts +0 -54
  59. package/badge/types.js +0 -5
  60. package/bleed/Bleed.d.ts +0 -3
  61. package/bleed/Bleed.js +0 -43
  62. package/bleed/Bleed.stories.tsx +0 -342
  63. package/bleed/types.d.ts +0 -37
  64. package/bleed/types.js +0 -5
  65. package/box/Box.accessibility.test.d.ts +0 -1
  66. package/box/Box.accessibility.test.js +0 -33
  67. package/box/Box.d.ts +0 -4
  68. package/box/Box.js +0 -75
  69. package/box/Box.stories.tsx +0 -119
  70. package/box/Box.test.d.ts +0 -1
  71. package/box/Box.test.js +0 -13
  72. package/box/types.d.ts +0 -32
  73. package/box/types.js +0 -5
  74. package/breadcrumbs/Breadcrumbs.accessibility.test.d.ts +0 -1
  75. package/breadcrumbs/Breadcrumbs.accessibility.test.js +0 -96
  76. package/breadcrumbs/Breadcrumbs.d.ts +0 -4
  77. package/breadcrumbs/Breadcrumbs.js +0 -79
  78. package/breadcrumbs/Breadcrumbs.stories.tsx +0 -194
  79. package/breadcrumbs/Breadcrumbs.test.d.ts +0 -1
  80. package/breadcrumbs/Breadcrumbs.test.js +0 -168
  81. package/breadcrumbs/Item.d.ts +0 -4
  82. package/breadcrumbs/Item.js +0 -52
  83. package/breadcrumbs/dropdownTheme.d.ts +0 -53
  84. package/breadcrumbs/dropdownTheme.js +0 -62
  85. package/breadcrumbs/types.d.ts +0 -16
  86. package/breadcrumbs/types.js +0 -5
  87. package/bulleted-list/BulletedList.accessibility.test.d.ts +0 -1
  88. package/bulleted-list/BulletedList.accessibility.test.js +0 -119
  89. package/bulleted-list/BulletedList.d.ts +0 -7
  90. package/bulleted-list/BulletedList.js +0 -92
  91. package/bulleted-list/BulletedList.stories.tsx +0 -115
  92. package/bulleted-list/types.d.ts +0 -38
  93. package/bulleted-list/types.js +0 -5
  94. package/button/Button.accessibility.test.d.ts +0 -1
  95. package/button/Button.accessibility.test.js +0 -127
  96. package/button/Button.d.ts +0 -4
  97. package/button/Button.js +0 -121
  98. package/button/Button.stories.tsx +0 -325
  99. package/button/Button.test.d.ts +0 -1
  100. package/button/Button.test.js +0 -38
  101. package/button/types.d.ts +0 -57
  102. package/button/types.js +0 -5
  103. package/card/Card.accessibility.test.d.ts +0 -1
  104. package/card/Card.accessibility.test.js +0 -36
  105. package/card/Card.d.ts +0 -4
  106. package/card/Card.js +0 -121
  107. package/card/Card.stories.tsx +0 -171
  108. package/card/Card.test.d.ts +0 -1
  109. package/card/Card.test.js +0 -39
  110. package/card/types.d.ts +0 -62
  111. package/card/types.js +0 -5
  112. package/checkbox/Checkbox.accessibility.test.d.ts +0 -1
  113. package/checkbox/Checkbox.accessibility.test.js +0 -87
  114. package/checkbox/Checkbox.d.ts +0 -4
  115. package/checkbox/Checkbox.js +0 -212
  116. package/checkbox/Checkbox.stories.tsx +0 -222
  117. package/checkbox/Checkbox.test.d.ts +0 -1
  118. package/checkbox/Checkbox.test.js +0 -199
  119. package/checkbox/types.d.ts +0 -72
  120. package/checkbox/types.js +0 -5
  121. package/chip/Chip.accessibility.test.d.ts +0 -1
  122. package/chip/Chip.accessibility.test.js +0 -67
  123. package/chip/Chip.d.ts +0 -4
  124. package/chip/Chip.js +0 -126
  125. package/chip/Chip.stories.tsx +0 -195
  126. package/chip/Chip.test.d.ts +0 -1
  127. package/chip/Chip.test.js +0 -41
  128. package/chip/types.d.ts +0 -45
  129. package/chip/types.js +0 -5
  130. package/common/coreTokens.d.ts +0 -237
  131. package/common/coreTokens.js +0 -184
  132. package/common/utils.d.ts +0 -1
  133. package/common/utils.js +0 -16
  134. package/common/variables.d.ts +0 -1392
  135. package/common/variables.js +0 -1264
  136. package/container/Container.d.ts +0 -4
  137. package/container/Container.js +0 -194
  138. package/container/Container.stories.tsx +0 -214
  139. package/container/types.d.ts +0 -74
  140. package/container/types.js +0 -5
  141. package/contextual-menu/ContextualMenu.accessibility.test.d.ts +0 -1
  142. package/contextual-menu/ContextualMenu.accessibility.test.js +0 -98
  143. package/contextual-menu/ContextualMenu.d.ts +0 -5
  144. package/contextual-menu/ContextualMenu.js +0 -108
  145. package/contextual-menu/ContextualMenu.stories.tsx +0 -223
  146. package/contextual-menu/ContextualMenu.test.d.ts +0 -1
  147. package/contextual-menu/ContextualMenu.test.js +0 -247
  148. package/contextual-menu/GroupItem.d.ts +0 -4
  149. package/contextual-menu/GroupItem.js +0 -67
  150. package/contextual-menu/ItemAction.d.ts +0 -4
  151. package/contextual-menu/ItemAction.js +0 -50
  152. package/contextual-menu/MenuItem.d.ts +0 -4
  153. package/contextual-menu/MenuItem.js +0 -29
  154. package/contextual-menu/SingleItem.d.ts +0 -4
  155. package/contextual-menu/SingleItem.js +0 -38
  156. package/contextual-menu/types.d.ts +0 -61
  157. package/contextual-menu/types.js +0 -5
  158. package/date-input/Calendar.d.ts +0 -4
  159. package/date-input/Calendar.js +0 -230
  160. package/date-input/DateInput.accessibility.test.d.ts +0 -1
  161. package/date-input/DateInput.accessibility.test.js +0 -229
  162. package/date-input/DateInput.d.ts +0 -4
  163. package/date-input/DateInput.js +0 -228
  164. package/date-input/DateInput.stories.tsx +0 -291
  165. package/date-input/DateInput.test.d.ts +0 -1
  166. package/date-input/DateInput.test.js +0 -808
  167. package/date-input/DatePicker.d.ts +0 -4
  168. package/date-input/DatePicker.js +0 -121
  169. package/date-input/YearPicker.d.ts +0 -4
  170. package/date-input/YearPicker.js +0 -105
  171. package/date-input/types.d.ts +0 -164
  172. package/date-input/types.js +0 -5
  173. package/dialog/Dialog.accessibility.test.d.ts +0 -1
  174. package/dialog/Dialog.accessibility.test.js +0 -69
  175. package/dialog/Dialog.d.ts +0 -4
  176. package/dialog/Dialog.js +0 -93
  177. package/dialog/Dialog.stories.tsx +0 -369
  178. package/dialog/Dialog.test.d.ts +0 -1
  179. package/dialog/Dialog.test.js +0 -370
  180. package/dialog/types.d.ts +0 -36
  181. package/dialog/types.js +0 -5
  182. package/divider/Divider.accessibility.test.d.ts +0 -1
  183. package/divider/Divider.accessibility.test.js +0 -33
  184. package/divider/Divider.d.ts +0 -4
  185. package/divider/Divider.js +0 -36
  186. package/divider/Divider.stories.tsx +0 -224
  187. package/divider/Divider.test.d.ts +0 -1
  188. package/divider/Divider.test.js +0 -38
  189. package/divider/types.d.ts +0 -21
  190. package/divider/types.js +0 -5
  191. package/dropdown/Dropdown.accessibility.test.d.ts +0 -1
  192. package/dropdown/Dropdown.accessibility.test.js +0 -183
  193. package/dropdown/Dropdown.d.ts +0 -4
  194. package/dropdown/Dropdown.js +0 -320
  195. package/dropdown/Dropdown.stories.tsx +0 -427
  196. package/dropdown/Dropdown.test.d.ts +0 -1
  197. package/dropdown/Dropdown.test.js +0 -628
  198. package/dropdown/DropdownMenu.d.ts +0 -4
  199. package/dropdown/DropdownMenu.js +0 -63
  200. package/dropdown/DropdownMenuItem.d.ts +0 -4
  201. package/dropdown/DropdownMenuItem.js +0 -71
  202. package/dropdown/types.d.ts +0 -96
  203. package/dropdown/types.js +0 -5
  204. package/file-input/FileInput.accessibility.test.d.ts +0 -1
  205. package/file-input/FileInput.accessibility.test.js +0 -167
  206. package/file-input/FileInput.d.ts +0 -4
  207. package/file-input/FileInput.js +0 -438
  208. package/file-input/FileInput.stories.tsx +0 -618
  209. package/file-input/FileInput.test.d.ts +0 -1
  210. package/file-input/FileInput.test.js +0 -404
  211. package/file-input/FileItem.d.ts +0 -4
  212. package/file-input/FileItem.js +0 -125
  213. package/file-input/types.d.ts +0 -125
  214. package/file-input/types.js +0 -5
  215. package/flex/Flex.d.ts +0 -4
  216. package/flex/Flex.js +0 -57
  217. package/flex/Flex.stories.tsx +0 -112
  218. package/flex/types.d.ts +0 -97
  219. package/flex/types.js +0 -5
  220. package/footer/Footer.accessibility.test.d.ts +0 -1
  221. package/footer/Footer.accessibility.test.js +0 -125
  222. package/footer/Footer.d.ts +0 -4
  223. package/footer/Footer.js +0 -140
  224. package/footer/Footer.stories.tsx +0 -208
  225. package/footer/Footer.test.d.ts +0 -1
  226. package/footer/Footer.test.js +0 -85
  227. package/footer/Icons.d.ts +0 -3
  228. package/footer/Icons.js +0 -108
  229. package/footer/types.d.ts +0 -64
  230. package/footer/types.js +0 -5
  231. package/grid/Grid.d.ts +0 -7
  232. package/grid/Grid.js +0 -76
  233. package/grid/Grid.stories.tsx +0 -221
  234. package/grid/types.d.ts +0 -115
  235. package/grid/types.js +0 -5
  236. package/header/Header.accessibility.test.d.ts +0 -1
  237. package/header/Header.accessibility.test.js +0 -94
  238. package/header/Header.d.ts +0 -8
  239. package/header/Header.js +0 -210
  240. package/header/Header.stories.tsx +0 -267
  241. package/header/Header.test.d.ts +0 -1
  242. package/header/Header.test.js +0 -66
  243. package/header/Icons.d.ts +0 -2
  244. package/header/Icons.js +0 -24
  245. package/header/types.d.ts +0 -33
  246. package/header/types.js +0 -5
  247. package/heading/Heading.accessibility.test.d.ts +0 -1
  248. package/heading/Heading.accessibility.test.js +0 -33
  249. package/heading/Heading.d.ts +0 -4
  250. package/heading/Heading.js +0 -137
  251. package/heading/Heading.stories.tsx +0 -54
  252. package/heading/Heading.test.d.ts +0 -1
  253. package/heading/Heading.test.js +0 -156
  254. package/heading/types.d.ts +0 -33
  255. package/heading/types.js +0 -5
  256. package/icon/Icon.accessibility.test.d.ts +0 -1
  257. package/icon/Icon.accessibility.test.js +0 -30
  258. package/icon/Icon.d.ts +0 -4
  259. package/icon/Icon.js +0 -33
  260. package/icon/Icon.stories.tsx +0 -28
  261. package/icon/types.d.ts +0 -4
  262. package/icon/types.js +0 -5
  263. package/image/Image.accessibility.test.d.ts +0 -1
  264. package/image/Image.accessibility.test.js +0 -56
  265. package/image/Image.d.ts +0 -4
  266. package/image/Image.js +0 -70
  267. package/image/Image.stories.tsx +0 -129
  268. package/image/types.d.ts +0 -72
  269. package/image/types.js +0 -5
  270. package/inset/Inset.d.ts +0 -3
  271. package/inset/Inset.js +0 -43
  272. package/inset/Inset.stories.tsx +0 -230
  273. package/inset/types.d.ts +0 -37
  274. package/inset/types.js +0 -5
  275. package/layout/ApplicationLayout.d.ts +0 -20
  276. package/layout/ApplicationLayout.js +0 -137
  277. package/layout/ApplicationLayout.stories.tsx +0 -162
  278. package/layout/Icons.d.ts +0 -7
  279. package/layout/Icons.js +0 -48
  280. package/layout/types.d.ts +0 -41
  281. package/layout/types.js +0 -5
  282. package/link/Link.accessibility.test.d.ts +0 -1
  283. package/link/Link.accessibility.test.js +0 -108
  284. package/link/Link.d.ts +0 -4
  285. package/link/Link.js +0 -117
  286. package/link/Link.stories.tsx +0 -253
  287. package/link/Link.test.d.ts +0 -1
  288. package/link/Link.test.js +0 -63
  289. package/link/types.d.ts +0 -54
  290. package/link/types.js +0 -5
  291. package/main.d.ts +0 -50
  292. package/main.js +0 -364
  293. package/nav-tabs/NavTabs.accessibility.test.d.ts +0 -1
  294. package/nav-tabs/NavTabs.accessibility.test.js +0 -44
  295. package/nav-tabs/NavTabs.d.ts +0 -7
  296. package/nav-tabs/NavTabs.js +0 -108
  297. package/nav-tabs/NavTabs.stories.tsx +0 -294
  298. package/nav-tabs/NavTabs.test.d.ts +0 -1
  299. package/nav-tabs/NavTabs.test.js +0 -77
  300. package/nav-tabs/NavTabsContext.d.ts +0 -3
  301. package/nav-tabs/NavTabsContext.js +0 -8
  302. package/nav-tabs/Tab.d.ts +0 -4
  303. package/nav-tabs/Tab.js +0 -117
  304. package/nav-tabs/types.d.ts +0 -52
  305. package/nav-tabs/types.js +0 -5
  306. package/number-input/NumberInput.accessibility.test.d.ts +0 -1
  307. package/number-input/NumberInput.accessibility.test.js +0 -227
  308. package/number-input/NumberInput.d.ts +0 -4
  309. package/number-input/NumberInput.js +0 -89
  310. package/number-input/NumberInput.stories.tsx +0 -126
  311. package/number-input/NumberInput.test.d.ts +0 -1
  312. package/number-input/NumberInput.test.js +0 -988
  313. package/number-input/NumberInputContext.d.ts +0 -3
  314. package/number-input/NumberInputContext.js +0 -8
  315. package/number-input/types.d.ts +0 -136
  316. package/number-input/types.js +0 -5
  317. package/paginator/Paginator.accessibility.test.d.ts +0 -1
  318. package/paginator/Paginator.accessibility.test.js +0 -78
  319. package/paginator/Paginator.d.ts +0 -4
  320. package/paginator/Paginator.js +0 -138
  321. package/paginator/Paginator.stories.tsx +0 -87
  322. package/paginator/Paginator.test.d.ts +0 -1
  323. package/paginator/Paginator.test.js +0 -334
  324. package/paginator/types.d.ts +0 -38
  325. package/paginator/types.js +0 -5
  326. package/paragraph/Paragraph.accessibility.test.d.ts +0 -1
  327. package/paragraph/Paragraph.accessibility.test.js +0 -28
  328. package/paragraph/Paragraph.d.ts +0 -5
  329. package/paragraph/Paragraph.js +0 -22
  330. package/paragraph/Paragraph.stories.tsx +0 -27
  331. package/password-input/PasswordInput.accessibility.test.d.ts +0 -1
  332. package/password-input/PasswordInput.accessibility.test.js +0 -152
  333. package/password-input/PasswordInput.d.ts +0 -4
  334. package/password-input/PasswordInput.js +0 -100
  335. package/password-input/PasswordInput.stories.tsx +0 -108
  336. package/password-input/PasswordInput.test.d.ts +0 -1
  337. package/password-input/PasswordInput.test.js +0 -197
  338. package/password-input/types.d.ts +0 -111
  339. package/password-input/types.js +0 -5
  340. package/progress-bar/ProgressBar.accessibility.test.d.ts +0 -1
  341. package/progress-bar/ProgressBar.accessibility.test.js +0 -35
  342. package/progress-bar/ProgressBar.d.ts +0 -4
  343. package/progress-bar/ProgressBar.js +0 -146
  344. package/progress-bar/ProgressBar.stories.tsx +0 -93
  345. package/progress-bar/ProgressBar.test.d.ts +0 -1
  346. package/progress-bar/ProgressBar.test.js +0 -93
  347. package/progress-bar/types.d.ts +0 -37
  348. package/progress-bar/types.js +0 -5
  349. package/quick-nav/QuickNav.accessibility.test.d.ts +0 -1
  350. package/quick-nav/QuickNav.accessibility.test.js +0 -57
  351. package/quick-nav/QuickNav.d.ts +0 -4
  352. package/quick-nav/QuickNav.js +0 -94
  353. package/quick-nav/QuickNav.stories.tsx +0 -356
  354. package/quick-nav/types.d.ts +0 -21
  355. package/quick-nav/types.js +0 -5
  356. package/radio-group/Radio.d.ts +0 -4
  357. package/radio-group/Radio.js +0 -121
  358. package/radio-group/RadioGroup.accessibility.test.d.ts +0 -1
  359. package/radio-group/RadioGroup.accessibility.test.js +0 -97
  360. package/radio-group/RadioGroup.d.ts +0 -4
  361. package/radio-group/RadioGroup.js +0 -233
  362. package/radio-group/RadioGroup.stories.tsx +0 -214
  363. package/radio-group/RadioGroup.test.d.ts +0 -1
  364. package/radio-group/RadioGroup.test.js +0 -754
  365. package/radio-group/types.d.ts +0 -114
  366. package/radio-group/types.js +0 -5
  367. package/resultset-table/Icons.d.ts +0 -7
  368. package/resultset-table/Icons.js +0 -47
  369. package/resultset-table/ResultsetTable.accessibility.test.d.ts +0 -1
  370. package/resultset-table/ResultsetTable.accessibility.test.js +0 -284
  371. package/resultset-table/ResultsetTable.d.ts +0 -7
  372. package/resultset-table/ResultsetTable.js +0 -195
  373. package/resultset-table/ResultsetTable.stories.tsx +0 -413
  374. package/resultset-table/ResultsetTable.test.d.ts +0 -1
  375. package/resultset-table/ResultsetTable.test.js +0 -450
  376. package/resultset-table/types.d.ts +0 -100
  377. package/resultset-table/types.js +0 -5
  378. package/select/Listbox.d.ts +0 -4
  379. package/select/Listbox.js +0 -151
  380. package/select/Option.d.ts +0 -4
  381. package/select/Option.js +0 -89
  382. package/select/Select.accessibility.test.d.ts +0 -1
  383. package/select/Select.accessibility.test.js +0 -227
  384. package/select/Select.d.ts +0 -4
  385. package/select/Select.js +0 -602
  386. package/select/Select.stories.tsx +0 -928
  387. package/select/Select.test.d.ts +0 -1
  388. package/select/Select.test.js +0 -2267
  389. package/select/types.d.ts +0 -209
  390. package/select/types.js +0 -5
  391. package/sidenav/Sidenav.accessibility.test.d.ts +0 -1
  392. package/sidenav/Sidenav.accessibility.test.js +0 -59
  393. package/sidenav/Sidenav.d.ts +0 -10
  394. package/sidenav/Sidenav.js +0 -201
  395. package/sidenav/Sidenav.stories.tsx +0 -277
  396. package/sidenav/Sidenav.test.d.ts +0 -1
  397. package/sidenav/Sidenav.test.js +0 -37
  398. package/sidenav/SidenavContext.d.ts +0 -5
  399. package/sidenav/SidenavContext.js +0 -13
  400. package/sidenav/types.d.ts +0 -76
  401. package/sidenav/types.js +0 -5
  402. package/slider/Slider.accessibility.test.d.ts +0 -1
  403. package/slider/Slider.accessibility.test.js +0 -103
  404. package/slider/Slider.d.ts +0 -4
  405. package/slider/Slider.js +0 -283
  406. package/slider/Slider.stories.tsx +0 -180
  407. package/slider/Slider.test.d.ts +0 -1
  408. package/slider/Slider.test.js +0 -256
  409. package/slider/types.d.ts +0 -86
  410. package/slider/types.js +0 -5
  411. package/spinner/Spinner.accessibility.test.d.ts +0 -1
  412. package/spinner/Spinner.accessibility.test.js +0 -96
  413. package/spinner/Spinner.d.ts +0 -4
  414. package/spinner/Spinner.js +0 -210
  415. package/spinner/Spinner.stories.tsx +0 -129
  416. package/spinner/Spinner.test.d.ts +0 -1
  417. package/spinner/Spinner.test.js +0 -55
  418. package/spinner/types.d.ts +0 -32
  419. package/spinner/types.js +0 -5
  420. package/status-light/StatusLight.accessibility.test.d.ts +0 -1
  421. package/status-light/StatusLight.accessibility.test.js +0 -157
  422. package/status-light/StatusLight.d.ts +0 -4
  423. package/status-light/StatusLight.js +0 -51
  424. package/status-light/StatusLight.stories.tsx +0 -74
  425. package/status-light/StatusLight.test.d.ts +0 -1
  426. package/status-light/StatusLight.test.js +0 -25
  427. package/status-light/types.d.ts +0 -17
  428. package/status-light/types.js +0 -5
  429. package/switch/Switch.accessibility.test.d.ts +0 -1
  430. package/switch/Switch.accessibility.test.js +0 -98
  431. package/switch/Switch.d.ts +0 -4
  432. package/switch/Switch.js +0 -211
  433. package/switch/Switch.stories.tsx +0 -149
  434. package/switch/Switch.test.d.ts +0 -1
  435. package/switch/Switch.test.js +0 -180
  436. package/switch/types.d.ts +0 -66
  437. package/switch/types.js +0 -5
  438. package/table/DropdownTheme.js +0 -62
  439. package/table/Table.accessibility.test.d.ts +0 -1
  440. package/table/Table.accessibility.test.js +0 -92
  441. package/table/Table.d.ts +0 -8
  442. package/table/Table.js +0 -161
  443. package/table/Table.stories.tsx +0 -663
  444. package/table/Table.test.d.ts +0 -1
  445. package/table/Table.test.js +0 -111
  446. package/table/types.d.ts +0 -49
  447. package/table/types.js +0 -5
  448. package/tabs/Tab.d.ts +0 -4
  449. package/tabs/Tab.js +0 -117
  450. package/tabs/Tabs.accessibility.test.d.ts +0 -1
  451. package/tabs/Tabs.accessibility.test.js +0 -56
  452. package/tabs/Tabs.d.ts +0 -4
  453. package/tabs/Tabs.js +0 -373
  454. package/tabs/Tabs.stories.tsx +0 -230
  455. package/tabs/Tabs.test.d.ts +0 -1
  456. package/tabs/Tabs.test.js +0 -276
  457. package/tabs/types.d.ts +0 -92
  458. package/tabs/types.js +0 -5
  459. package/tag/Tag.accessibility.test.d.ts +0 -1
  460. package/tag/Tag.accessibility.test.js +0 -69
  461. package/tag/Tag.d.ts +0 -4
  462. package/tag/Tag.js +0 -151
  463. package/tag/Tag.stories.tsx +0 -152
  464. package/tag/Tag.test.d.ts +0 -1
  465. package/tag/Tag.test.js +0 -41
  466. package/tag/types.d.ts +0 -69
  467. package/tag/types.js +0 -5
  468. package/text-input/Suggestion.d.ts +0 -4
  469. package/text-input/Suggestion.js +0 -67
  470. package/text-input/Suggestions.d.ts +0 -4
  471. package/text-input/Suggestions.js +0 -94
  472. package/text-input/TextInput.accessibility.test.d.ts +0 -1
  473. package/text-input/TextInput.accessibility.test.js +0 -320
  474. package/text-input/TextInput.d.ts +0 -4
  475. package/text-input/TextInput.js +0 -571
  476. package/text-input/TextInput.stories.tsx +0 -477
  477. package/text-input/TextInput.test.d.ts +0 -1
  478. package/text-input/TextInput.test.js +0 -1755
  479. package/text-input/types.d.ts +0 -205
  480. package/text-input/types.js +0 -5
  481. package/textarea/Textarea.accessibility.test.d.ts +0 -1
  482. package/textarea/Textarea.accessibility.test.js +0 -155
  483. package/textarea/Textarea.d.ts +0 -4
  484. package/textarea/Textarea.js +0 -235
  485. package/textarea/Textarea.stories.tsx +0 -174
  486. package/textarea/Textarea.test.d.ts +0 -1
  487. package/textarea/Textarea.test.js +0 -406
  488. package/textarea/types.d.ts +0 -141
  489. package/textarea/types.js +0 -5
  490. package/toggle-group/ToggleGroup.accessibility.test.d.ts +0 -1
  491. package/toggle-group/ToggleGroup.accessibility.test.js +0 -107
  492. package/toggle-group/ToggleGroup.d.ts +0 -4
  493. package/toggle-group/ToggleGroup.js +0 -199
  494. package/toggle-group/ToggleGroup.stories.tsx +0 -218
  495. package/toggle-group/ToggleGroup.test.d.ts +0 -1
  496. package/toggle-group/ToggleGroup.test.js +0 -137
  497. package/toggle-group/types.d.ts +0 -114
  498. package/toggle-group/types.js +0 -5
  499. package/tooltip/Tooltip.accessibility.test.d.ts +0 -1
  500. package/tooltip/Tooltip.accessibility.test.js +0 -144
  501. package/tooltip/Tooltip.d.ts +0 -4
  502. package/tooltip/Tooltip.js +0 -50
  503. package/tooltip/Tooltip.stories.tsx +0 -111
  504. package/tooltip/Tooltip.test.d.ts +0 -1
  505. package/tooltip/Tooltip.test.js +0 -112
  506. package/tooltip/types.d.ts +0 -16
  507. package/tooltip/types.js +0 -5
  508. package/typography/Typography.accessibility.test.d.ts +0 -1
  509. package/typography/Typography.accessibility.test.js +0 -339
  510. package/typography/Typography.d.ts +0 -4
  511. package/typography/Typography.js +0 -23
  512. package/typography/Typography.stories.tsx +0 -196
  513. package/typography/types.d.ts +0 -18
  514. package/typography/types.js +0 -5
  515. package/useTheme.d.ts +0 -1145
  516. package/useTheme.js +0 -15
  517. package/useTranslatedLabels.d.ts +0 -85
  518. package/useTranslatedLabels.js +0 -14
  519. package/utils/BaseTypography.d.ts +0 -21
  520. package/utils/BaseTypography.js +0 -94
  521. package/utils/FocusLock.d.ts +0 -13
  522. package/utils/FocusLock.js +0 -125
  523. package/wizard/Wizard.accessibility.test.d.ts +0 -1
  524. package/wizard/Wizard.accessibility.test.js +0 -55
  525. package/wizard/Wizard.d.ts +0 -4
  526. package/wizard/Wizard.js +0 -239
  527. package/wizard/Wizard.stories.tsx +0 -272
  528. package/wizard/Wizard.test.d.ts +0 -1
  529. package/wizard/Wizard.test.js +0 -114
  530. package/wizard/types.d.ts +0 -64
  531. package/wizard/types.js +0 -5
@@ -0,0 +1,3857 @@
1
+ import * as react from 'react';
2
+ import { ReactNode, SVGProps, ReactElement, MouseEvent, ReactEventHandler } from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
+ import { SortColumn } from 'react-data-grid';
5
+ import * as _emotion_styled from '@emotion/styled';
6
+ import * as _emotion_react from '@emotion/react';
7
+
8
+ type Space$1 = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
9
+ type Margin = {
10
+ top?: Space$1;
11
+ bottom?: Space$1;
12
+ left?: Space$1;
13
+ right?: Space$1;
14
+ };
15
+ type SVG = ReactNode & SVGProps<SVGSVGElement>;
16
+
17
+ type AccordionItemProps = {
18
+ /**
19
+ * The panel label.
20
+ */
21
+ label: string;
22
+ /**
23
+ * Additional info label positioned under the label.
24
+ */
25
+ subLabel?: string;
26
+ /**
27
+ * Badge component to add extra value to the accordion.
28
+ */
29
+ badge?: {
30
+ position: "before" | "after";
31
+ element: ReactNode;
32
+ };
33
+ /**
34
+ * Status light component to add extra value to the accordion.
35
+ */
36
+ statusLight?: ReactNode;
37
+ /**
38
+ * Material Symbol name or SVG element used as the icon that will be
39
+ * placed next to panel label. When using Material Symbols, replace spaces with underscores.
40
+ * By default they are outlined if you want it to be filled
41
+ * prefix the symbol name with "filled_".
42
+ */
43
+ icon?: string | SVG;
44
+ /**
45
+ * Assistive text to be placed on the right side of the panel.
46
+ */
47
+ assistiveText?: string;
48
+ /**
49
+ * If true, the component will be disabled.
50
+ */
51
+ disabled?: boolean;
52
+ /**
53
+ * The expanded panel of the accordion. This area can be used to render
54
+ * custom content.
55
+ */
56
+ children: ReactNode;
57
+ /**
58
+ * Value of the tabindex attribute.
59
+ */
60
+ tabIndex?: number;
61
+ };
62
+ type CommonProps$9 = {
63
+ /**
64
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
65
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
66
+ */
67
+ margin?: Space$1 | Margin;
68
+ /**
69
+ * Contains one or more accordion items.
70
+ */
71
+ children: ReactElement<AccordionItemProps>[] | ReactElement<AccordionItemProps>;
72
+ };
73
+ type IndependentProps = CommonProps$9 & {
74
+ /**
75
+ * When true, limits the user to single-open section at a time. When false, multiple sections can be opened simultaneously.
76
+ */
77
+ independent: true;
78
+ /**
79
+ * Initially active accordion, only when it is uncontrolled.If the accordion is not independent,
80
+ * several accordions can be activated by default.
81
+ */
82
+ defaultIndexActive?: number;
83
+ /**
84
+ * The index of the active accordion. If undefined, the component will be uncontrolled and the active
85
+ * accordion will be managed internally by the component. If null, the component will be controlled and all
86
+ * accordions will be closed. If the accordion is not independent, several accordions can be activated.
87
+ */
88
+ indexActive?: number;
89
+ /**
90
+ * This function will be called when the user clicks on an accordion. The index of the clicked accordion will be passed as a parameter.
91
+ */
92
+ onActiveChange?: (index: number) => void;
93
+ };
94
+ type NonIndependentProps = CommonProps$9 & {
95
+ /**
96
+ * When true, limits the user to single-open section at a time. When false, multiple sections can be opened simultaneously.
97
+ */
98
+ independent?: false;
99
+ /**
100
+ * Initially active accordion, only when it is uncontrolled. If the accordion is not independent,
101
+ * several accordions can be activated by default.
102
+ */
103
+ defaultIndexActive?: number[];
104
+ /**
105
+ * The index of the active accordion. If undefined, the component will be uncontrolled and the active
106
+ * accordion will be managed internally by the component. If null, the component will be controlled and all
107
+ * accordions will be closed. If the accordion is not independent, several accordions can be activated.
108
+ */
109
+ indexActive?: number[];
110
+ /**
111
+ * This function will be called when the user clicks on an accordion. The index of the clicked accordion will be passed as a parameter.
112
+ */
113
+ onActiveChange?: (index: number[]) => void;
114
+ };
115
+ type Props$I = IndependentProps | NonIndependentProps;
116
+
117
+ declare const DxcAccordion: {
118
+ (props: Props$I): JSX.Element;
119
+ AccordionItem: ({ label, subLabel, badge, statusLight, icon, assistiveText, disabled, children, tabIndex, }: AccordionItemProps) => JSX.Element;
120
+ };
121
+
122
+ type Action$2 = {
123
+ /**
124
+ * The icon of the action. It can be a string with the name of the icon or an SVG component.
125
+ */
126
+ icon?: string | SVG;
127
+ /**
128
+ * The label of the action.
129
+ */
130
+ label: string;
131
+ /**
132
+ * The function that will be executed when the user clicks on the action button.
133
+ */
134
+ onClick: () => void;
135
+ };
136
+ type Message = {
137
+ /**
138
+ * The function that will be executed when the user clicks on the close action button.
139
+ */
140
+ onClose?: () => void;
141
+ /**
142
+ * The content of the message. The only Halstack component allowed within the text of an alert is the Link component,
143
+ * and it should be used exclusively to direct users to additional resources or relevant pages.
144
+ * No other components are permitted within the content of an alert.
145
+ */
146
+ text: ReactNode;
147
+ };
148
+ type CommonProps$8 = {
149
+ /**
150
+ * If true, the alert will have a close button that will remove the message from the alert,
151
+ * only in banner and inline modes. The rest of the functionality will depend
152
+ * on the onClose event of each message (e.g. closing the modal alert).
153
+ */
154
+ closable?: boolean;
155
+ /**
156
+ * Primary action of the alert.
157
+ */
158
+ primaryAction?: Action$2;
159
+ /**
160
+ * Secondary action of the alert.
161
+ */
162
+ secondaryAction?: Action$2;
163
+ /**
164
+ * Specifies the semantic meaning of the alert.
165
+ */
166
+ semantic?: "error" | "info" | "success" | "warning";
167
+ /**
168
+ * Title of the alert.
169
+ */
170
+ title: string;
171
+ };
172
+ type ModeSpecificProps = {
173
+ /**
174
+ * List of messages to be displayed. Each message has a close action that will,
175
+ * apart from remove from the alert the current message, call the onClose if it is defined.
176
+ * If the message is an array, the alert will show a navigation bar to move between the messages.
177
+ * The modal mode only allows one message per alert. In this case, the message must be an object
178
+ * and the presence of the onClose attribute is mandatory, since the management of the closing
179
+ * of the alert relies completely on the user.
180
+ */
181
+ message?: Message | Message[];
182
+ /**
183
+ * The mode of the alert.
184
+ */
185
+ mode?: "inline" | "banner";
186
+ } | {
187
+ /**
188
+ * List of messages to be displayed. Each message has a close action that will,
189
+ * apart from remove from the alert the current message, call the onClose if it is defined.
190
+ * If the message is an array, the alert will show a navigation bar to move between the messages.
191
+ * The modal mode only allows one message per alert. In this case, the message must be an object
192
+ * and the presence of the onClose attribute is mandatory, since the management of the closing
193
+ * of the alert relies completely on the user.
194
+ */
195
+ message: Required<Message>;
196
+ /**
197
+ * The mode of the alert.
198
+ */
199
+ mode: "modal";
200
+ };
201
+ type Props$H = CommonProps$8 & ModeSpecificProps;
202
+
203
+ declare function DxcAlert({ closable, message, mode, primaryAction, secondaryAction, semantic, title, }: Props$H): react_jsx_runtime.JSX.Element;
204
+
205
+ type SidenavTitlePropsType = {
206
+ /**
207
+ * The area inside the sidenav title. This area can be used to render custom content.
208
+ */
209
+ children: ReactNode;
210
+ };
211
+ type SidenavSectionPropsType = {
212
+ /**
213
+ * The area inside the sidenav section. This area can be used to render sidenav groups, links and custom content.
214
+ */
215
+ children: ReactNode;
216
+ };
217
+ type SidenavGroupPropsType = {
218
+ /**
219
+ * The title of the sidenav group.
220
+ */
221
+ title?: string;
222
+ /**
223
+ * If true, the sidenav group will be a button that will allow you to collapse the links contained within it.
224
+ * In addition, if it's collapsed and contains the currently selected link, the group title will also be marked as selected.
225
+ */
226
+ collapsable?: boolean;
227
+ /**
228
+ * Material Symbol name or SVG icon to be displayed next to the title of the group.
229
+ */
230
+ icon?: string | SVG;
231
+ /**
232
+ * The area inside the sidenav group. This area can be used to render sidenav links.
233
+ */
234
+ children: ReactNode;
235
+ };
236
+ type SidenavLinkPropsType = {
237
+ /**
238
+ * Page to be opened when the user clicks on the link.
239
+ */
240
+ href?: string;
241
+ /**
242
+ * If true, the page is opened in a new browser tab.
243
+ */
244
+ newWindow?: boolean;
245
+ /**
246
+ * The Material symbol or SVG element used as the icon that will be placed to the left of the link text.
247
+ */
248
+ icon?: string | SVG;
249
+ /**
250
+ * If true, the link will be marked as selected. Moreover, in that same case,
251
+ * if it is contained within a collapsed group, and consequently, the currently selected link is not visible,
252
+ * the group title will appear as selected too.
253
+ */
254
+ selected?: boolean;
255
+ /**
256
+ * This function will be called when the user clicks the link and the event will be passed to this function.
257
+ */
258
+ onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
259
+ /**
260
+ * The area inside the sidenav link.
261
+ */
262
+ children: ReactNode;
263
+ /**
264
+ * Value of the tabindex.
265
+ */
266
+ tabIndex?: number;
267
+ };
268
+ type Props$G = {
269
+ /**
270
+ * The area assigned to render the sidenav title. It is highly recommended to use the sidenav title.
271
+ */
272
+ title?: ReactNode;
273
+ /**
274
+ * The area inside the sidenav. This area can be used to render the content inside the sidenav.
275
+ */
276
+ children: ReactNode;
277
+ };
278
+
279
+ type Size$4 = "small" | "medium" | "large" | "fillParent" | "fitContent";
280
+ type Option$2 = {
281
+ /**
282
+ * Option display value.
283
+ */
284
+ label?: string;
285
+ /**
286
+ * Material Symbol name or SVG element as the icon that will be placed next to the label.
287
+ */
288
+ icon?: string | SVG;
289
+ /**
290
+ * Option inner value.
291
+ */
292
+ value: string;
293
+ };
294
+ type Props$F = {
295
+ /**
296
+ * An array of objects representing the options.
297
+ */
298
+ options: Option$2[];
299
+ /**
300
+ * In case options include icons, whether the icon should appear
301
+ * after or before the label.
302
+ */
303
+ optionsIconPosition?: "before" | "after";
304
+ /**
305
+ * Material Symbol name or SVG element as the icon that will be placed next to the label.
306
+ */
307
+ icon?: string | SVG;
308
+ /**
309
+ * Whether the icon should appear after or before the label.
310
+ */
311
+ iconPosition?: "before" | "after";
312
+ /**
313
+ * Text to be placed within the dropdown.
314
+ */
315
+ label?: string;
316
+ /**
317
+ * Whether the arrow next to the label must be displayed or not.
318
+ */
319
+ caretHidden?: boolean;
320
+ /**
321
+ * If true, the component will be disabled.
322
+ */
323
+ disabled?: boolean;
324
+ /**
325
+ * If true, the options are shown when the dropdown is hover.
326
+ */
327
+ expandOnHover?: boolean;
328
+ /**
329
+ * This function will be called every time the selection changes.
330
+ * The value of the selected option will be passed as a parameter.
331
+ */
332
+ onSelectOption: (value: string) => void;
333
+ /**
334
+ * Size of the margin to be applied to the component.
335
+ * You can pass an object with 'top', 'bottom', 'left' and 'right'
336
+ * properties in order to specify different margin sizes.
337
+ */
338
+ margin?: Space$1 | Margin;
339
+ /**
340
+ * Size of the component.
341
+ */
342
+ size?: Size$4;
343
+ /**
344
+ * Value of the tabindex attribute.
345
+ */
346
+ tabIndex?: number;
347
+ /**
348
+ * Text representing advisory information related to the dropdown's trigger action.
349
+ * Under the hood, this prop also serves as an accessible label for the component.
350
+ */
351
+ title?: string;
352
+ };
353
+
354
+ type Logo$1 = {
355
+ /**
356
+ * URL to navigate when the logo is clicked.
357
+ */
358
+ href?: string;
359
+ /**
360
+ * Source of the logo image.
361
+ */
362
+ src: string;
363
+ /**
364
+ * Alternative text for the logo image.
365
+ */
366
+ title?: string;
367
+ };
368
+ type Props$E = {
369
+ /**
370
+ * Whether a contrast line should appear at the bottom of the header.
371
+ */
372
+ underlined?: boolean;
373
+ /**
374
+ * Content shown in the header. Take into account that the component applies styles
375
+ * for the first child in the content, so we recommend the use of React.Fragment
376
+ * to be applied correctly. Otherwise, the styles can be modified.
377
+ */
378
+ content?: ReactNode;
379
+ /**
380
+ * Content shown in responsive version. It receives the close menu handler that can
381
+ * be used to add that functionality when a element is clicked.
382
+ */
383
+ responsiveContent?: (closeHandler: () => void) => ReactNode;
384
+ /**
385
+ * Logo to be displayed inside the header
386
+ */
387
+ logo?: Logo$1;
388
+ /**
389
+ * Size of the bottom margin to be applied to the header.
390
+ */
391
+ margin?: Space$1;
392
+ /**
393
+ * This function will be called when the user clicks the header logo.
394
+ */
395
+ onClick?: () => void;
396
+ /**
397
+ * Value of the tabindex for all interactive elements, except those inside the
398
+ * custom area.
399
+ */
400
+ tabIndex?: number;
401
+ };
402
+
403
+ type SocialLink = {
404
+ /**
405
+ * URL of the page the link goes to.
406
+ */
407
+ href: string;
408
+ /**
409
+ * Material Symbol name or SVG element as the icon used for the link.
410
+ */
411
+ logo: string | SVG;
412
+ /**
413
+ * Value for the HTML properties title and aria-label.
414
+ */
415
+ title: string;
416
+ };
417
+ type BottomLink = {
418
+ /**
419
+ * URL of the page the link goes to.
420
+ */
421
+ href: string;
422
+ /**
423
+ * Text for the link.
424
+ */
425
+ text: string;
426
+ };
427
+ type Logo = {
428
+ /**
429
+ * URL to navigate when the logo is clicked.
430
+ */
431
+ href?: string;
432
+ /**
433
+ * Source of the logo image.
434
+ */
435
+ src: string;
436
+ /**
437
+ * Alternative text for the logo image.
438
+ */
439
+ title?: string;
440
+ };
441
+ type FooterPropsType = {
442
+ /**
443
+ * An array of objects representing the links that will be rendered at
444
+ * the bottom part of the footer.
445
+ */
446
+ bottomLinks?: BottomLink[];
447
+ /**
448
+ * The center section of the footer. Can be used to render custom
449
+ * content in this area.
450
+ */
451
+ children?: ReactNode;
452
+ /**
453
+ * The text that will be displayed as copyright disclaimer.
454
+ */
455
+ copyright?: string;
456
+ /**
457
+ * Logo to be displayed inside the footer
458
+ */
459
+ logo?: Logo;
460
+ /**
461
+ * Size of the top margin to be applied to the footer.
462
+ */
463
+ margin?: Space$1;
464
+ /**
465
+ * Determines the visual style and layout
466
+ * - "default": The default mode with full content and styling.
467
+ * - "reduced": A reduced mode with minimal content and styling.
468
+ */
469
+ mode?: "default" | "reduced";
470
+ /**
471
+ * An array of objects representing the links that will be rendered as
472
+ * icons at the top-right side of the footer.
473
+ */
474
+ socialLinks?: SocialLink[];
475
+ /**
476
+ * Value of the tabindex for all interactive elements, except those
477
+ * inside the custom area.
478
+ */
479
+ tabIndex?: number;
480
+ };
481
+
482
+ type AppLayoutMainPropsType = {
483
+ /**
484
+ * Everything between the tags will be displayed as the content of the main part of the application.
485
+ */
486
+ children: ReactNode;
487
+ };
488
+ type ApplicationLayoutPropsType = {
489
+ /**
490
+ * Text to be placed next to the hamburger button that toggles the
491
+ * visibility of the sidenav.
492
+ */
493
+ visibilityToggleLabel?: string;
494
+ /**
495
+ * Header content.
496
+ */
497
+ header?: ReactNode;
498
+ /**
499
+ * Sidenav content
500
+ */
501
+ sidenav?: ReactNode;
502
+ /**
503
+ * Footer content
504
+ */
505
+ footer?: ReactNode;
506
+ /**
507
+ * Use the DxcApplicationLayout.Main provided to render main content.
508
+ */
509
+ children: ReactElement<AppLayoutMainPropsType>;
510
+ };
511
+
512
+ declare const DxcApplicationLayout: {
513
+ ({ visibilityToggleLabel, header, sidenav, footer, children, }: ApplicationLayoutPropsType): JSX.Element;
514
+ Footer: ({ bottomLinks, children, copyright, logo, margin, mode, socialLinks, tabIndex, }: FooterPropsType) => JSX.Element;
515
+ Header: {
516
+ ({ underlined, content, responsiveContent, logo, margin, onClick, tabIndex, }: Props$E): JSX.Element;
517
+ Dropdown: (props: react.ComponentProps<({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: Props$F) => react_jsx_runtime.JSX.Element>) => react_jsx_runtime.JSX.Element;
518
+ };
519
+ Main: ({ children }: AppLayoutMainPropsType) => JSX.Element;
520
+ SideNav: {
521
+ ({ title, children }: Props$G): JSX.Element;
522
+ Section: ({ children }: SidenavSectionPropsType) => JSX.Element;
523
+ Group: ({ title, collapsable, icon, children }: SidenavGroupPropsType) => JSX.Element;
524
+ Link: react.ForwardRefExoticComponent<SidenavLinkPropsType & react.RefAttributes<HTMLAnchorElement>>;
525
+ Title: ({ children }: SidenavTitlePropsType) => JSX.Element;
526
+ };
527
+ useResponsiveSidenavVisibility: () => ((_isSidenavVisible: boolean) => void) | null;
528
+ };
529
+
530
+ type ContextualProps = {
531
+ /**
532
+ * Text to be placed in the badge.
533
+ */
534
+ label: string;
535
+ /**
536
+ * The available badge modes.
537
+ */
538
+ mode?: "contextual";
539
+ /**
540
+ * In notification mode, if the number entered as label is greater that this notification limit, +99 will be shown. If not, the entered text will be shown as label.
541
+ */
542
+ notificationLimit?: never;
543
+ /**
544
+ * Affects the visual style of the badge. It can be used following semantic purposes or not.
545
+ */
546
+ color?: "grey" | "blue" | "green" | "orange" | "red" | "yellow" | "purple";
547
+ };
548
+ type NotificationProps = {
549
+ /**
550
+ * Text to be placed in the badge.
551
+ */
552
+ label?: number;
553
+ /**
554
+ * The available badge modes.
555
+ */
556
+ mode: "notification";
557
+ /**
558
+ * In notification mode, if the number entered as label is greater that this notification limit, +99 will be shown. If not, the entered text will be shown as label.
559
+ */
560
+ notificationLimit?: number;
561
+ /**
562
+ * Affects the visual style of the badge. It can be used following semantic purposes or not.
563
+ */
564
+ color?: never;
565
+ };
566
+ type CommonProps$7 = {
567
+ /**
568
+ * Text representing advisory information related to the badge. Under the hood, this prop also serves as an accessible label for the component.
569
+ */
570
+ title?: string;
571
+ /**
572
+ * Material Symbol name or SVG element used as the icon that will be placed next to the badge label in contextual mode.
573
+ */
574
+ icon?: string | SVG;
575
+ /**
576
+ * Size of the component.
577
+ */
578
+ size?: "small" | "medium" | "large";
579
+ };
580
+ type Props$D = (ContextualProps | NotificationProps) & CommonProps$7;
581
+
582
+ declare const DxcBadge: ({ label, title, mode, color, icon, notificationLimit, size, }: Props$D) => JSX.Element;
583
+
584
+ type Props$C = {
585
+ /**
586
+ * Applies the spacing scale to all sides.
587
+ */
588
+ space?: string;
589
+ /**
590
+ * Applies the spacing scale to the left and right sides.
591
+ */
592
+ horizontal?: string;
593
+ /**
594
+ * Applies the spacing scale to the top and bottom sides.
595
+ */
596
+ vertical?: string;
597
+ /**
598
+ * Applies the spacing scale to the top side.
599
+ */
600
+ top?: string;
601
+ /**
602
+ * Applies the spacing scale to the right side.
603
+ */
604
+ right?: string;
605
+ /**
606
+ * Applies the spacing scale to the bottom side.
607
+ */
608
+ bottom?: string;
609
+ /**
610
+ * Applies the spacing scale to the left side.
611
+ */
612
+ left?: string;
613
+ /**
614
+ * Custom content inside the bleed.
615
+ */
616
+ children: ReactNode;
617
+ };
618
+
619
+ declare function DxcBleed({ space, horizontal, vertical, top, right, bottom, left, children }: Props$C): react_jsx_runtime.JSX.Element;
620
+
621
+ type Item$1 = {
622
+ href?: string;
623
+ label: string;
624
+ };
625
+ type Props$B = {
626
+ /**
627
+ * Provides a label that describes the type of navigation enabled by
628
+ * the component.
629
+ */
630
+ ariaLabel?: string;
631
+ /**
632
+ * Array of objects representing the items of the breadcrumbs.
633
+ */
634
+ items: Item$1[];
635
+ /**
636
+ * Number of items before showing a collapsed version of the
637
+ * breadcrumbs. It can't be lower than two (root/collapsed action and
638
+ * current page).
639
+ */
640
+ itemsBeforeCollapse?: number;
641
+ /**
642
+ * Callback for custom navigation with third-party libraries such as
643
+ * Next ('useRouter') or React Router ('useNavigate').
644
+ * This function will be called when an item is clicked,
645
+ * receiving its 'href' as a parameter.
646
+ * @param href
647
+ * @returns
648
+ */
649
+ onItemClick?: (href: string) => void;
650
+ /**
651
+ * When items are collapsed, whether the root item should always be
652
+ * displayed or not.
653
+ */
654
+ showRoot?: boolean;
655
+ };
656
+
657
+ declare const DxcBreadcrumbs: ({ ariaLabel, items, itemsBeforeCollapse, onItemClick, showRoot, }: Props$B) => react_jsx_runtime.JSX.Element;
658
+
659
+ type IconProps = {
660
+ /**
661
+ * Defines the style of the bullet point in the list.
662
+ */
663
+ type: "icon";
664
+ /**
665
+ * Icon to display as bullet.
666
+ */
667
+ icon: string | SVG;
668
+ /**
669
+ * Text to be shown in the list.
670
+ */
671
+ children: ReactNode;
672
+ };
673
+ type OtherProps = {
674
+ /**
675
+ * Defines the style of the bullet point in the list.
676
+ */
677
+ type?: "disc" | "circle" | "square" | "number";
678
+ /**
679
+ * Icon to display as bullet.
680
+ */
681
+ icon?: never;
682
+ /**
683
+ * Text to be shown in the list.
684
+ */
685
+ children: ReactNode;
686
+ };
687
+ type Props$A = IconProps | OtherProps;
688
+
689
+ type BulletedListItemPropsType = {
690
+ /**
691
+ * Text to be shown in the list.
692
+ */
693
+ children?: ReactNode;
694
+ };
695
+
696
+ declare const DxcBulletedList: {
697
+ ({ children, type, icon }: Props$A): JSX.Element;
698
+ Item: ({ children }: BulletedListItemPropsType) => JSX.Element;
699
+ };
700
+
701
+ type Semantic = "default" | "error" | "warning" | "success" | "info";
702
+ type Mode$1 = "primary" | "secondary" | "tertiary";
703
+ type Size$3 = {
704
+ /**
705
+ * Height of the button.
706
+ */
707
+ height?: "small" | "medium" | "large";
708
+ width?: "small" | "medium" | "large" | "fillParent" | "fitContent";
709
+ };
710
+ type Props$z = {
711
+ /**
712
+ * Text to be placed in the button.
713
+ */
714
+ label?: string;
715
+ /**
716
+ * The available button modes.
717
+ */
718
+ mode?: Mode$1;
719
+ /**
720
+ * Specifies the semantic meaning of the buttons, which determines its color.
721
+ */
722
+ semantic?: Semantic;
723
+ /**
724
+ * If true, the component will be disabled.
725
+ */
726
+ disabled?: boolean;
727
+ /**
728
+ * Whether the icon should appear after or before the label.
729
+ */
730
+ iconPosition?: "before" | "after";
731
+ /**
732
+ * Value for the HTML properties title and aria-label.
733
+ */
734
+ title?: string;
735
+ /**
736
+ * 'type' html prop of the button.
737
+ */
738
+ type?: "button" | "reset" | "submit";
739
+ /**
740
+ * Material Symbol name or SVG element as the icon that will be placed next to the label.
741
+ */
742
+ icon?: string | SVG;
743
+ /**
744
+ * This function will be called when the user clicks the button.
745
+ */
746
+ onClick?: () => void;
747
+ /**
748
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
749
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
750
+ */
751
+ margin?: Space$1 | Margin;
752
+ /**
753
+ * Size of the component.
754
+ */
755
+ size?: Size$3;
756
+ /**
757
+ * Value of the tabindex attribute.
758
+ */
759
+ tabIndex?: number;
760
+ };
761
+
762
+ declare const DxcButton: ({ disabled, icon, iconPosition, label, margin, mode, onClick, semantic, size, tabIndex, title, type, }: Props$z) => JSX.Element;
763
+
764
+ type Size$2 = {
765
+ top?: Space$1;
766
+ bottom?: Space$1;
767
+ left?: Space$1;
768
+ right?: Space$1;
769
+ };
770
+ type Props$y = {
771
+ /**
772
+ * URL of the image that will be placed in the card component.
773
+ * In case of omission, the image container will not appear and
774
+ * the content will occupy its space.
775
+ */
776
+ imageSrc?: string;
777
+ /**
778
+ * Color of the image background.
779
+ */
780
+ imageBgColor?: string;
781
+ /**
782
+ * Size of the padding to be applied to the image section of the
783
+ * component. You can pass an object with 'top', 'bottom', 'left'
784
+ * and 'right' properties in order to specify different padding sizes.
785
+ */
786
+ imagePadding?: Space$1 | Size$2;
787
+ /**
788
+ * Whether the image should appear in relation to the content.
789
+ */
790
+ imagePosition?: "before" | "after";
791
+ /**
792
+ * If defined, the tag will be displayed as an anchor, using this prop
793
+ * as "href". Component will show some visual feedback on hover.
794
+ */
795
+ linkHref?: string;
796
+ /**
797
+ * This function will be called when the user clicks the card. Component
798
+ * will show some visual feedback on hover.
799
+ */
800
+ onClick?: () => void;
801
+ /**
802
+ * Whether the image must cover the whole image area of the card.
803
+ */
804
+ imageCover?: boolean;
805
+ /**
806
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
807
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
808
+ */
809
+ margin?: Space$1 | Size$2;
810
+ /**
811
+ * Value of the tabindex attribute applied when the component is clickable.
812
+ */
813
+ tabIndex?: number;
814
+ /**
815
+ * Determines whether or not the component should have an outline.
816
+ */
817
+ outlined?: boolean;
818
+ /**
819
+ * Custom content that will be placed inside the component.
820
+ */
821
+ children?: ReactNode;
822
+ };
823
+
824
+ declare const DxcCard: ({ imageSrc, imageBgColor, imagePadding, imagePosition, linkHref, onClick, imageCover, margin, tabIndex, outlined, children, }: Props$y) => react_jsx_runtime.JSX.Element;
825
+
826
+ type Props$x = {
827
+ /**
828
+ * Specifies a string to be used as the name for the checkbox element when no `label` is provided.
829
+ */
830
+ ariaLabel?: string;
831
+ /**
832
+ * If true, the component is checked. If undefined the component will be
833
+ * uncontrolled and the value will be managed internally by the component.
834
+ */
835
+ checked?: boolean;
836
+ /**
837
+ * Initial state of the checkbox, only when it is uncontrolled.
838
+ */
839
+ defaultChecked?: boolean;
840
+ /**
841
+ * If true, the component will be disabled.
842
+ */
843
+ disabled?: boolean;
844
+ /**
845
+ * Text to be placed next to the checkbox.
846
+ */
847
+ label?: string;
848
+ /**
849
+ * Whether the label should appear after or before the checkbox.
850
+ */
851
+ labelPosition?: "before" | "after";
852
+ /**
853
+ * Size of the margin to be applied to the component
854
+ * ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
855
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties
856
+ * in order to specify different margin sizes.
857
+ */
858
+ margin?: Space$1 | Margin;
859
+ /**
860
+ * Name attribute of the input element.
861
+ */
862
+ name?: string;
863
+ /**
864
+ * This function will be called when the user clicks the checkbox.
865
+ * The new value will be passed as a parameter.
866
+ */
867
+ onChange?: (value: boolean) => void;
868
+ /**
869
+ * If true, the component will display '(Optional)' next to the label.
870
+ */
871
+ optional?: boolean;
872
+ /**
873
+ * If true, the component will not be mutable, meaning the user can not edit the control.
874
+ */
875
+ readOnly?: boolean;
876
+ /**
877
+ * Size of the component.
878
+ */
879
+ size?: "small" | "medium" | "large" | "fillParent" | "fitContent";
880
+ /**
881
+ * Value of the tabindex.
882
+ */
883
+ tabIndex?: number;
884
+ /**
885
+ * Will be passed to the value attribute of the html input element.
886
+ * When inside a form, this value will be only submitted if the checkbox is checked.
887
+ */
888
+ value?: string;
889
+ };
890
+
891
+ declare const DxcCheckbox: react.ForwardRefExoticComponent<Props$x & react.RefAttributes<HTMLDivElement>>;
892
+
893
+ type Props$w = {
894
+ /**
895
+ * Text to be placed on the chip.
896
+ */
897
+ label?: string;
898
+ /**
899
+ * Element or path used as icon to be placed after the chip label.
900
+ */
901
+ suffixIcon?: string | SVG;
902
+ /**
903
+ * Element or path used as icon to be placed before the chip label.
904
+ */
905
+ prefixIcon?: string | SVG;
906
+ /**
907
+ * This function will be called when the suffix is clicked.
908
+ */
909
+ onClickSuffix?: () => void;
910
+ /**
911
+ * This function will be called when the prefix is clicked.
912
+ */
913
+ onClickPrefix?: () => void;
914
+ /**
915
+ * If true, the component will be disabled.
916
+ */
917
+ disabled?: boolean;
918
+ /**
919
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
920
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
921
+ */
922
+ margin?: Space$1 | Margin;
923
+ /**
924
+ * Value of the tabindex attribute.
925
+ */
926
+ tabIndex?: number;
927
+ };
928
+
929
+ declare const DxcChip: ({ label, suffixIcon, prefixIcon, onClickSuffix, onClickPrefix, disabled, margin, tabIndex, }: Props$w) => react_jsx_runtime.JSX.Element;
930
+
931
+ type Space = {
932
+ top?: string;
933
+ right?: string;
934
+ bottom?: string;
935
+ left?: string;
936
+ };
937
+ type Inset = {
938
+ top?: string;
939
+ right?: string;
940
+ bottom?: string;
941
+ left?: string;
942
+ };
943
+ type Background = {
944
+ attachment?: string;
945
+ clip?: string;
946
+ color?: string;
947
+ image?: string;
948
+ origin?: string;
949
+ position?: string;
950
+ repeat?: string;
951
+ size?: string;
952
+ };
953
+ type BorderProperties = {
954
+ width?: string;
955
+ style?: string;
956
+ color?: string;
957
+ };
958
+ type Border = BorderProperties | {
959
+ top?: BorderProperties;
960
+ right?: BorderProperties;
961
+ bottom?: BorderProperties;
962
+ left?: BorderProperties;
963
+ };
964
+ type Outline = BorderProperties & {
965
+ offset?: string;
966
+ };
967
+ type OverflowValues = "visible" | "hidden" | "clip" | "scroll" | "auto";
968
+ type Overflow = OverflowValues | {
969
+ x?: OverflowValues;
970
+ y?: OverflowValues;
971
+ };
972
+ type Props$v = {
973
+ /**
974
+ * Based on the CSS property background allows configuring all properties related to the background of a container.
975
+ *
976
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/background
977
+ */
978
+ background?: Background;
979
+ /**
980
+ * Based on the CSS property border allows configuring all properties related to the border of a container.
981
+ */
982
+ border?: Border;
983
+ /**
984
+ * Sets the border-radius CSS property.
985
+ *
986
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius
987
+ */
988
+ borderRadius?: string;
989
+ /**
990
+ * Sets the box-shadow CSS property.
991
+ *
992
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
993
+ */
994
+ boxShadow?: string;
995
+ /**
996
+ * Sets the box-sizing CSS property.
997
+ *
998
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing
999
+ */
1000
+ boxSizing?: "border-box" | "content-box";
1001
+ /**
1002
+ * Custom content inside the container.
1003
+ */
1004
+ children?: ReactNode;
1005
+ /**
1006
+ * Sets the display CSS property.
1007
+ * The set of values is limited to the ones related to the outer display type.
1008
+ * If you want to apply any pattern from the inner box and how the children are laid out,
1009
+ * we recommend you to use the Flex and Grid components.
1010
+ *
1011
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/display
1012
+ */
1013
+ display?: "block" | "inline-block" | "inline" | "none";
1014
+ /**
1015
+ * Sets the float CSS property.
1016
+ *
1017
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/float
1018
+ */
1019
+ float?: "left" | "right" | "none";
1020
+ /**
1021
+ * Sets the height CSS property.
1022
+ *
1023
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/height
1024
+ */
1025
+ height?: string;
1026
+ /**
1027
+ * Based on the CSS property inset this prop is a shorthand that corresponds
1028
+ * to the top, right, bottom, and/or left properties.
1029
+ */
1030
+ inset?: Inset;
1031
+ /**
1032
+ * Size of the margin to be applied to the container.
1033
+ */
1034
+ margin?: string | Space;
1035
+ /**
1036
+ * Sets the max-width CSS property.
1037
+ *
1038
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/max-width
1039
+ */
1040
+ maxHeight?: string;
1041
+ /**
1042
+ * Sets the max-height CSS property.
1043
+ *
1044
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/max-height
1045
+ */
1046
+ maxWidth?: string;
1047
+ /**
1048
+ * Sets the min-width CSS property.
1049
+ *
1050
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/min-width
1051
+ */
1052
+ minHeight?: string;
1053
+ /**
1054
+ * Sets the min-height CSS property.
1055
+ *
1056
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/min-height
1057
+ */
1058
+ minWidth?: string;
1059
+ /**
1060
+ * Based on the CSS property outline allows configuring all properties related
1061
+ * to the outline of a container.
1062
+ */
1063
+ outline?: Outline;
1064
+ /**
1065
+ * Sets the overflow CSS property.
1066
+ *
1067
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/overflow
1068
+ */
1069
+ overflow?: Overflow;
1070
+ /**
1071
+ * Size of the padding to be applied to the container.
1072
+ */
1073
+ padding?: string | Space;
1074
+ /**
1075
+ * Sets the position CSS property.
1076
+ *
1077
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/position
1078
+ */
1079
+ position?: "static" | "relative" | "absolute" | "fixed" | "sticky";
1080
+ /**
1081
+ * Sets the width CSS property.
1082
+ *
1083
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/width
1084
+ */
1085
+ width?: string;
1086
+ /**
1087
+ * Sets the z-index CSS property.
1088
+ *
1089
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/z-index
1090
+ */
1091
+ zIndex?: "auto" | number;
1092
+ };
1093
+
1094
+ declare function DxcContainer({ display, width, height, overflow, ...props }: Props$v): react_jsx_runtime.JSX.Element;
1095
+
1096
+ type CommonItemProps = {
1097
+ badge?: ReactElement;
1098
+ icon?: string | SVG;
1099
+ label: string;
1100
+ };
1101
+ type Item = CommonItemProps & {
1102
+ onSelect?: () => void;
1103
+ selectedByDefault?: boolean;
1104
+ };
1105
+ type GroupItem = CommonItemProps & {
1106
+ items: (Item | GroupItem)[];
1107
+ };
1108
+ type Section = {
1109
+ items: (Item | GroupItem)[];
1110
+ title?: string;
1111
+ };
1112
+ type Props$u = {
1113
+ /**
1114
+ * Array of items to be displayed in the Contextual menu.
1115
+ * Each item can be a single/simple item, a group item or a section.
1116
+ */
1117
+ items: (Item | GroupItem)[] | Section[];
1118
+ };
1119
+
1120
+ declare function DxcContextualMenu({ items }: Props$u): react_jsx_runtime.JSX.Element;
1121
+
1122
+ type BaseActionCell = {
1123
+ disabled?: boolean;
1124
+ tabIndex?: number;
1125
+ title: string;
1126
+ };
1127
+ type ActionCell = BaseActionCell & ({
1128
+ icon: string | SVG;
1129
+ onClick: () => void;
1130
+ options?: never;
1131
+ } | {
1132
+ icon?: never;
1133
+ onClick: (value?: string) => void;
1134
+ options: Option$2[];
1135
+ });
1136
+ type ActionsCellPropsType = {
1137
+ /**
1138
+ * It represents a list of interactive elements that will work as buttons or as a dropdown. Those with an icon from Material Symbols
1139
+ * or a SVG are treated as buttons. If any element lacks an icon and includes options, it is interpreted as a dropdown.
1140
+ * Only the first action with options will be displayed and only up to 3 actions.
1141
+ * In the case of the dropdown the click function will pass the value assigned to the option.
1142
+ */
1143
+ actions: ActionCell[];
1144
+ };
1145
+ type Props$t = {
1146
+ /**
1147
+ * The center section of the table. Can be used to render custom
1148
+ * content in this area.
1149
+ */
1150
+ children: ReactNode;
1151
+ /**
1152
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1153
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1154
+ */
1155
+ margin?: Space$1 | Margin;
1156
+ /**
1157
+ * Determines the visual style and layout
1158
+ * - "default": Default table size.
1159
+ * - "reduced": More compact table with less spacing for high density information.
1160
+ */
1161
+ mode?: "default" | "reduced";
1162
+ };
1163
+
1164
+ type GridColumn = {
1165
+ /**
1166
+ * Key that will be rendered from each row in rows.
1167
+ */
1168
+ key: string;
1169
+ /**
1170
+ * Label that will be used for the column header.
1171
+ */
1172
+ label: string;
1173
+ /**
1174
+ * Whether the column is resizable or not.
1175
+ */
1176
+ resizable?: boolean;
1177
+ /**
1178
+ * Whether the column is sortable or not.
1179
+ */
1180
+ sortable?: boolean;
1181
+ /**
1182
+ * Custom criteria for sorting the column.
1183
+ */
1184
+ sortFn?: (_a: ReactNode, _b: ReactNode) => 0 | 1 | -1;
1185
+ /**
1186
+ * Whether the column is draggable or not.
1187
+ */
1188
+ draggable?: boolean;
1189
+ /**
1190
+ * Whether the column cells are editable or not.
1191
+ */
1192
+ textEditable?: boolean;
1193
+ /**
1194
+ * Value that will be rendered from the summaryRow.
1195
+ */
1196
+ summaryKey?: string;
1197
+ /**
1198
+ * Sets the alignment inside the cells.
1199
+ */
1200
+ alignment?: "left" | "right" | "center";
1201
+ };
1202
+ type GridRow = {
1203
+ /**
1204
+ * List of rows that will be rendered in each cell based on the key in each column.
1205
+ */
1206
+ [key: string]: ReactNode | undefined;
1207
+ };
1208
+ type HierarchyGridRow = GridRow & {
1209
+ /**
1210
+ * Array of child rows nested under this row, enabling hierarchical (tree-like) structures.
1211
+ * These child rows will be displayed when the parent row is expanded.
1212
+ */
1213
+ childRows?: HierarchyGridRow[] | GridRow[];
1214
+ /**
1215
+ * Function called when a row with children is expanded or collapsed (based on the value of `open`).
1216
+ * Returns (or resolves to) the array of child rows nested under this row to display when expanded.
1217
+ */
1218
+ childrenTrigger?: (open?: boolean, triggerRow?: HierarchyGridRow) => (HierarchyGridRow[] | GridRow[]) | Promise<HierarchyGridRow[] | GridRow[]>;
1219
+ /**
1220
+ * Indicates whether child rows are currently being loaded.
1221
+ */
1222
+ loadingChildren?: boolean;
1223
+ /**
1224
+ * Indicates the level of nesting for this row in the hierarchy.
1225
+ */
1226
+ rowLevel?: number;
1227
+ /**
1228
+ * Reference to the parent row's unique identifier.
1229
+ */
1230
+ parentKey?: string | number;
1231
+ /**
1232
+ * Indicates whether child rows are currently visible.
1233
+ */
1234
+ visibleChildren?: boolean;
1235
+ };
1236
+ type ExpandableGridRow = GridRow & {
1237
+ expandedContent?: ReactNode;
1238
+ expandedContentHeight?: number;
1239
+ contentIsExpanded?: boolean;
1240
+ };
1241
+ type ExpandableRows = {
1242
+ rows: ExpandableGridRow[];
1243
+ /**
1244
+ * Whether the rows can expand or not.
1245
+ */
1246
+ expandable: true;
1247
+ /**
1248
+ * This prop indicates the unique key that can be used to identify each row. This prop is mandatory if selectable is set to true, expandable is set to true or rows is of type HierarchyGridRow[].
1249
+ */
1250
+ uniqueRowId: string;
1251
+ };
1252
+ type HierarchyRows = {
1253
+ rows: HierarchyGridRow[];
1254
+ /**
1255
+ * This prop indicates the unique key that can be used to identify each row. This prop is mandatory if selectable is set to true, expandable is set to true or rows is of type HierarchyGridRow[].
1256
+ */
1257
+ uniqueRowId: string;
1258
+ /**
1259
+ * Whether the rows can expand or not.
1260
+ */
1261
+ expandable?: false;
1262
+ };
1263
+ type SelectableGridProps = {
1264
+ /**
1265
+ * Whether the rows are selectable or not.
1266
+ */
1267
+ selectable: true;
1268
+ /**
1269
+ * Set of selected rows. This prop is mandatory if selectable is set to true. The uniqueRowId key will be used to identify the each row.
1270
+ */
1271
+ selectedRows: Set<string | number>;
1272
+ /**
1273
+ * Function called whenever the selected values changes. This prop is mandatory if selectable is set to true.The uniqueRowId key will be used to identify the rows.
1274
+ */
1275
+ onSelectRows: (selectedRows: Set<number | string>) => void;
1276
+ /**
1277
+ * This prop indicates the unique key that can be used to identify each row. This prop is mandatory if selectable is set to true, expandable is set to true or rows is of type HierarchyGridRow[].
1278
+ */
1279
+ uniqueRowId: string;
1280
+ } | {
1281
+ selectable?: false;
1282
+ selectedRows?: never;
1283
+ onSelectRows?: never;
1284
+ uniqueRowId?: string;
1285
+ };
1286
+ type PaginatedProps$1 = {
1287
+ /**
1288
+ * If true, paginator will be displayed.
1289
+ */
1290
+ showPaginator?: true;
1291
+ /**
1292
+ * Number of total items.
1293
+ */
1294
+ totalItems?: number;
1295
+ /**
1296
+ * If true, a select component for navigation between pages will be displayed.
1297
+ */
1298
+ showGoToPage?: boolean;
1299
+ /**
1300
+ * Number of items per page.
1301
+ */
1302
+ itemsPerPage?: number;
1303
+ /**
1304
+ * An array of numbers representing the items per page options.
1305
+ */
1306
+ itemsPerPageOptions?: number[];
1307
+ /**
1308
+ * This function will be called when the user selects an item per page
1309
+ * option. The value selected will be passed as a parameter.
1310
+ */
1311
+ itemsPerPageFunction?: (value: number) => void;
1312
+ /**
1313
+ * Function called whenever the current page is changed.
1314
+ */
1315
+ onPageChange?: (_page: number) => void;
1316
+ /**
1317
+ * Default page in which the datagrid is rendered
1318
+ */
1319
+ defaultPage?: number;
1320
+ };
1321
+ type NonPaginatedProps$1 = {
1322
+ /**
1323
+ * If true, paginator will be displayed.
1324
+ */
1325
+ showPaginator: false;
1326
+ /**
1327
+ * Number of total items.
1328
+ */
1329
+ totalItems?: never;
1330
+ /**
1331
+ * If true, a select component for navigation between pages will be displayed.
1332
+ */
1333
+ showGoToPage?: never;
1334
+ /**
1335
+ * Number of items per page.
1336
+ */
1337
+ itemsPerPage?: never;
1338
+ /**
1339
+ * An array of numbers representing the items per page options.
1340
+ */
1341
+ itemsPerPageOptions?: never;
1342
+ /**
1343
+ * This function will be called when the user selects an item per page
1344
+ * option. The value selected will be passed as a parameter.
1345
+ */
1346
+ itemsPerPageFunction?: never;
1347
+ /**
1348
+ * Function called whenever the current page is changed.
1349
+ */
1350
+ onPageChange?: never;
1351
+ /**
1352
+ * Default page in which the datagrid is rendered
1353
+ */
1354
+ defaultPage?: never;
1355
+ };
1356
+ type CommonProps$6 = {
1357
+ columns: GridColumn[];
1358
+ /**
1359
+ * Extra row that will be always visible.
1360
+ */
1361
+ summaryRow?: GridRow;
1362
+ /**
1363
+ * Function called whenever a cell is edited.
1364
+ */
1365
+ onGridRowsChange?: (_rows: GridRow[] | HierarchyGridRow[] | ExpandableGridRow[]) => void;
1366
+ /**
1367
+ * Function called whenever a column is sorted. Receives the sorted
1368
+ * column and direction, or `undefined` if no sorting is applied.
1369
+ */
1370
+ onSort?: (_sortColumn?: SortColumn) => void;
1371
+ };
1372
+ type BasicGridProps = {
1373
+ rows: GridRow[];
1374
+ /**
1375
+ * Whether the rows can expand or not.
1376
+ */
1377
+ expandable?: false;
1378
+ };
1379
+ type Props$s = CommonProps$6 & (PaginatedProps$1 | NonPaginatedProps$1) & ((BasicGridProps & SelectableGridProps) | (ExpandableRows & SelectableGridProps) | (HierarchyRows & SelectableGridProps));
1380
+
1381
+ declare const DxcDataGrid: {
1382
+ ({ columns, rows, selectable, expandable, onSelectRows, selectedRows, uniqueRowId, summaryRow, onGridRowsChange, showPaginator, showGoToPage, itemsPerPage, itemsPerPageOptions, itemsPerPageFunction, onSort, onPageChange, totalItems, defaultPage, }: Props$s): JSX.Element;
1383
+ ActionsCell: ({ actions }: ActionsCellPropsType) => react_jsx_runtime.JSX.Element;
1384
+ };
1385
+
1386
+ type Props$r = {
1387
+ /**
1388
+ * Initial value of the input element, only when it is uncontrolled.
1389
+ */
1390
+ defaultValue?: string;
1391
+ /**
1392
+ * Value of the input element. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
1393
+ */
1394
+ value?: string;
1395
+ /**
1396
+ * Text to be placed above the date input.
1397
+ */
1398
+ label?: string;
1399
+ /**
1400
+ * Name attribute of the input element.
1401
+ */
1402
+ name?: string;
1403
+ /**
1404
+ * Helper text to be placed above the date.
1405
+ */
1406
+ helperText?: string;
1407
+ /**
1408
+ * If true, the date format will appear as placeholder in the field.
1409
+ */
1410
+ placeholder?: boolean;
1411
+ /**
1412
+ * The format in which the date value will be displayed. User must use this format when editing the value or it will be considered as an invalid date.
1413
+ */
1414
+ format?: string;
1415
+ /**
1416
+ * If true, the date input will have an action to clear the entered value.
1417
+ */
1418
+ clearable?: boolean;
1419
+ /**
1420
+ * If true, the component will be disabled.
1421
+ */
1422
+ disabled?: boolean;
1423
+ /**
1424
+ * If true, the date will be optional, showing the text '(Optional)'
1425
+ * next to the label. Otherwise, the field will be considered required and an error will be
1426
+ * passed as a parameter to the OnBlur and onChange functions when it has
1427
+ * not been filled.
1428
+ */
1429
+ optional?: boolean;
1430
+ /**
1431
+ * If true, the component will not be mutable, meaning the user can not edit the control.
1432
+ * The date picker cannot be opened either. In addition, the clear action will not be displayed
1433
+ * even if the flag is set to true.
1434
+ */
1435
+ readOnly?: boolean;
1436
+ /**
1437
+ * This function will be called when the user types within the input
1438
+ * element of the component. An object including the string value, the
1439
+ * error and the date value will be passed to this function.
1440
+ * If the string value is a valid date, error will
1441
+ * be undefined. Also, if the string value is not a valid date, date will be undefined.
1442
+ */
1443
+ onChange?: (val: {
1444
+ value: string;
1445
+ error?: string;
1446
+ date?: Date;
1447
+ }) => void;
1448
+ /**
1449
+ * This function will be called when the input element loses the focus.
1450
+ * An object including the string value, the error and the date value
1451
+ * will be passed to this function. If the string value is a valid date, error will
1452
+ * be undefined. Also, if the string value is not a valid date, date will be undefined.
1453
+ */
1454
+ onBlur?: (val: {
1455
+ value: string;
1456
+ error?: string;
1457
+ date?: Date;
1458
+ }) => void;
1459
+ /**
1460
+ * If it is a defined value and also a truthy string, the component will
1461
+ * change its appearance, showing the error below the date input
1462
+ * component. If the defined value is an empty string, it will reserve a
1463
+ * space below the component for a future error, but it would not change
1464
+ * its look. In case of being undefined or null, both the appearance and
1465
+ * the space for the error message would not be modified.
1466
+ */
1467
+ error?: string;
1468
+ /**
1469
+ * HTML autocomplete attribute. Lets the user specify if any permission the user agent has to provide automated assistance in filling out the input value.
1470
+ * Its value must be one of all the possible values of the HTML autocomplete attribute: 'on', 'off', 'email', 'username', 'new-password', ...
1471
+ */
1472
+ autocomplete?: string;
1473
+ /**
1474
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1475
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1476
+ */
1477
+ margin?: Space$1 | Margin;
1478
+ /**
1479
+ * Size of the component.
1480
+ */
1481
+ size?: "small" | "medium" | "large" | "fillParent";
1482
+ /**
1483
+ * Value of the tabindex attribute.
1484
+ */
1485
+ tabIndex?: number;
1486
+ /**
1487
+ * Specifies a string to be used as the name for the date input element when no `label` is provided.
1488
+ */
1489
+ ariaLabel?: string;
1490
+ };
1491
+
1492
+ declare const DxcDateInput: react.ForwardRefExoticComponent<Props$r & react.RefAttributes<HTMLDivElement>>;
1493
+
1494
+ type Props$q = {
1495
+ /**
1496
+ * If true, the close button will be visible.
1497
+ */
1498
+ closable?: boolean;
1499
+ /**
1500
+ * This function will be called when the user clicks the close button.
1501
+ * The responsibility of hiding the dialog lies with the user.
1502
+ */
1503
+ onCloseClick?: () => void;
1504
+ /**
1505
+ * This function will be called when the user clicks on the background of the modal.
1506
+ * The responsibility of hiding the dialog lies with the user.
1507
+ */
1508
+ onBackgroundClick?: () => void;
1509
+ /**
1510
+ * If true, the dialog will be displayed over a darker background that covers the content behind.
1511
+ */
1512
+ overlay?: boolean;
1513
+ /**
1514
+ * Area within the dialog that can be used to render custom content.
1515
+ * We strongly encourage users to not change the
1516
+ * tabindex of the inner components or elements. This
1517
+ * can lead to unpredictable behaviour for keyboard users, affecting
1518
+ * the order of focus and focus locking within the dialog.
1519
+ */
1520
+ children: ReactNode;
1521
+ /**
1522
+ * Value of the tabindex applied to the close button.
1523
+ * Note that values greater than 0 are strongly discouraged. It can
1524
+ * lead to unexpected behaviours with the focus within the dialog.
1525
+ */
1526
+ tabIndex?: number;
1527
+ };
1528
+
1529
+ declare const DxcDialog: ({ children, closable, onBackgroundClick, onCloseClick, overlay, tabIndex, }: Props$q) => JSX.Element;
1530
+
1531
+ type Props$p = {
1532
+ /**
1533
+ * The divider can be shown in horizontal or vertical.
1534
+ */
1535
+ orientation?: "horizontal" | "vertical";
1536
+ /**
1537
+ * Modifies the thickness of the divider.
1538
+ */
1539
+ weight?: "regular" | "strong";
1540
+ /**
1541
+ * Modifies the color of the divider.
1542
+ */
1543
+ color?: "lightGrey" | "mediumGrey" | "darkGrey";
1544
+ /**
1545
+ * Specifies whether the divider serves a purely decorative purpose
1546
+ * or functions as a semantic separator for content. Additionally, it
1547
+ * determines whether the divider is accessible to screen readers.
1548
+ */
1549
+ decorative?: boolean;
1550
+ };
1551
+
1552
+ declare function DxcDivider({ color, decorative, orientation, weight, }: Props$p): react_jsx_runtime.JSX.Element;
1553
+
1554
+ declare const DxcDropdown: ({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: Props$F) => react_jsx_runtime.JSX.Element;
1555
+
1556
+ type FileData = {
1557
+ /**
1558
+ * Error of the file. If it is defined, it will be shown and the file item will be mark as invalid.
1559
+ */
1560
+ error?: string;
1561
+ /**
1562
+ * Selected file.
1563
+ */
1564
+ file: File;
1565
+ /**
1566
+ * Preview of the file.
1567
+ */
1568
+ preview?: string;
1569
+ };
1570
+ type CommonProps$5 = {
1571
+ /**
1572
+ * The file types that the component accepts. Its value must be one of all the possible values of the HTML file input's accept attribute.
1573
+ */
1574
+ accept?: string;
1575
+ /**
1576
+ * Text to be placed inside the button.
1577
+ */
1578
+ buttonLabel?: string;
1579
+ /**
1580
+ * This function will be called when the user selects or drops a file. The list of files will be sent as a parameter.
1581
+ * In this function, the files can be updated or returned as they come. These files must be passed to the value in order to be shown.
1582
+ */
1583
+ callbackFile: (files: FileData[]) => void;
1584
+ /**
1585
+ * If true, the component will be disabled.
1586
+ */
1587
+ disabled?: boolean;
1588
+ /**
1589
+ * Helper text to be placed above the component.
1590
+ */
1591
+ helperText?: string;
1592
+ /**
1593
+ * Text to be placed above the component.
1594
+ */
1595
+ label?: string;
1596
+ /**
1597
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1598
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1599
+ */
1600
+ margin?: Space$1 | Margin;
1601
+ /**
1602
+ * The maximum file size (in bytes) allowed. If the size of the file does not comply the maxSize, the file will have an error.
1603
+ */
1604
+ maxSize?: number;
1605
+ /**
1606
+ * The minimum file size (in bytes) allowed. If the size of the file does not comply the minSize, the file will have an error.
1607
+ */
1608
+ minSize?: number;
1609
+ /**
1610
+ * If true, the component allows multiple file items and will show all of them. If false, only one file will be shown, and if there is already one
1611
+ * file selected and a new one is chosen, it will be replaced by the new selected one.
1612
+ */
1613
+ multiple?: boolean;
1614
+ /**
1615
+ * If true, the input will be optional, showing '(Optional)'
1616
+ * next to the label.
1617
+ */
1618
+ optional?: boolean;
1619
+ /**
1620
+ * If true, if the file is an image, a preview of it will be shown. If not, an icon refering to the file type will be shown.
1621
+ */
1622
+ showPreview?: boolean;
1623
+ /**
1624
+ * Value of the tabindex attribute.
1625
+ */
1626
+ tabIndex?: number;
1627
+ /**
1628
+ * An array of files representing the selected files.
1629
+ */
1630
+ value: FileData[];
1631
+ };
1632
+ type DropModeProps = CommonProps$5 & {
1633
+ /**
1634
+ * Text to be placed inside the drag and drop zone alongside the button.
1635
+ */
1636
+ dropAreaLabel?: string;
1637
+ /**
1638
+ * Uses one of the available file input modes:
1639
+ * 'file': Files are selected by clicking the button and selecting it through the file explorer.
1640
+ * 'filedrop': Files can be selected by clicking the button and selecting it through the file explorer or by dropping them inside the drag and drop area.
1641
+ * 'dropzone': Files can be selected by clicking the button and selecting it through the file explorer or by dropping them inside the drag and drop area.
1642
+ * The drag and drop area of this mode is bigger than the one of the filedrop mode.
1643
+ */
1644
+ mode: "filedrop" | "dropzone";
1645
+ };
1646
+ type FileModeProps = CommonProps$5 & {
1647
+ /**
1648
+ * Text to be placed inside the drag and drop zone alongside the button.
1649
+ */
1650
+ dropAreaLabel?: never;
1651
+ /**
1652
+ * Uses one of the available file input modes:
1653
+ * 'file': Files are selected by clicking the button and selecting it through the file explorer.
1654
+ * 'filedrop': Files can be selected by clicking the button and selecting it through the file explorer or by dropping them inside the drag and drop area.
1655
+ * 'dropzone': Files can be selected by clicking the button and selecting it through the file explorer or by dropping them inside the drag and drop area.
1656
+ * The drag and drop area of this mode is bigger than the one of the filedrop mode.
1657
+ */
1658
+ mode?: "file";
1659
+ };
1660
+ type Props$o = DropModeProps | FileModeProps;
1661
+
1662
+ declare const DxcFileInput: react.ForwardRefExoticComponent<Props$o & react.RefAttributes<HTMLDivElement>>;
1663
+
1664
+ type Gap$1 = {
1665
+ rowGap: string;
1666
+ columnGap?: string;
1667
+ } | {
1668
+ rowGap?: string;
1669
+ columnGap: string;
1670
+ } | string;
1671
+ type CommonProps$4 = {
1672
+ /**
1673
+ * Sets the justify-content CSS property.
1674
+ *
1675
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
1676
+ */
1677
+ justifyContent?: "flex-start" | "flex-end" | "start" | "end" | "left" | "normal" | "right" | "center" | "space-between" | "space-around" | "space-evenly";
1678
+ /**
1679
+ * Sets the align-items CSS property.
1680
+ *
1681
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
1682
+ */
1683
+ alignItems?: "stretch" | "flex-start" | "flex-end" | "start" | "end" | "self-start" | "self-end" | "center" | "baseline" | "normal";
1684
+ /**
1685
+ * Sets the align-content CSS property.
1686
+ *
1687
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
1688
+ */
1689
+ alignContent?: "normal" | "flex-start" | "flex-end" | "start" | "end" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch";
1690
+ /**
1691
+ * Sets the align-self CSS property.
1692
+ *
1693
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/align-self
1694
+ */
1695
+ alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch";
1696
+ };
1697
+ type Props$n = CommonProps$4 & {
1698
+ /**
1699
+ * Sets the flex-direction CSS property.
1700
+ *
1701
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
1702
+ */
1703
+ direction?: "row" | "row-reverse" | "column" | "column-reverse";
1704
+ /**
1705
+ * Sets the flex-wrap CSS property.
1706
+ *
1707
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
1708
+ */
1709
+ wrap?: "nowrap" | "wrap" | "wrap-reverse";
1710
+ /**
1711
+ * Sets the gap CSS property.
1712
+ *
1713
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/gap
1714
+ */
1715
+ gap?: Gap$1;
1716
+ /**
1717
+ * Sets the order CSS property.
1718
+ *
1719
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/order
1720
+ */
1721
+ order?: number;
1722
+ /**
1723
+ * Sets the flex-grow CSS property.
1724
+ *
1725
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow
1726
+ */
1727
+ grow?: number;
1728
+ /**
1729
+ * Sets the flex-shrink CSS property.
1730
+ *
1731
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink
1732
+ */
1733
+ shrink?: number;
1734
+ /**
1735
+ * Sets the flex-basis CSS property.
1736
+ *
1737
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis
1738
+ */
1739
+ basis?: string;
1740
+ /**
1741
+ * Sets a custom HTML tag.
1742
+ */
1743
+ as?: keyof HTMLElementTagNameMap;
1744
+ /**
1745
+ * Custom content inside the flex container.
1746
+ */
1747
+ children: ReactNode;
1748
+ };
1749
+
1750
+ declare const DxcFlex: ({ basis, direction, gap, grow, order, shrink, wrap, ...props }: Props$n) => react_jsx_runtime.JSX.Element;
1751
+
1752
+ type Gap = string | {
1753
+ columnGap?: string;
1754
+ rowGap: string;
1755
+ } | {
1756
+ columnGap: string;
1757
+ rowGap?: string;
1758
+ };
1759
+ type GridCell = {
1760
+ end: number | string;
1761
+ start: number | string;
1762
+ };
1763
+ type PlaceSelfValues = "auto" | "baseline" | "center" | "end" | "start" | "stretch";
1764
+ type PlaceContentValues = "baseline" | "center" | "end" | "normal" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch";
1765
+ type PlaceItemsValues = "baseline" | "center" | "end" | "normal" | "start" | "stretch";
1766
+ type PlaceObject<Type, Suffix extends string> = {
1767
+ [Property in keyof Type as `${string & Property}${Capitalize<string & Suffix>}`]: Type[Property];
1768
+ };
1769
+ type PlaceGeneric<PlaceValues, Element extends string> = PlaceObject<{
1770
+ align: PlaceValues;
1771
+ justify?: PlaceValues;
1772
+ }, Element> | PlaceObject<{
1773
+ align?: PlaceValues;
1774
+ justify: PlaceValues;
1775
+ }, Element> | PlaceValues;
1776
+ type GridItemProps = {
1777
+ /**
1778
+ * Sets the name of an item so that it can be referenced by a template created with the grid-template-areas property.
1779
+ */
1780
+ areaName?: string;
1781
+ /**
1782
+ * Sets a custom HTML tag.
1783
+ */
1784
+ as?: keyof HTMLElementTagNameMap;
1785
+ /**
1786
+ * Custom content inside the grid container.
1787
+ */
1788
+ children: ReactNode;
1789
+ /**
1790
+ * Sets the grid-column CSS property.
1791
+ *
1792
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column
1793
+ */
1794
+ column?: number | string | GridCell;
1795
+ /**
1796
+ * Sets the place-self CSS property.
1797
+ *
1798
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/place-self
1799
+ */
1800
+ placeSelf?: PlaceGeneric<PlaceSelfValues, "self">;
1801
+ /**
1802
+ * Sets the grid-row CSS property.
1803
+ *
1804
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row
1805
+ */
1806
+ row?: number | string | GridCell;
1807
+ };
1808
+ type Props$m = GridItemProps & {
1809
+ /**
1810
+ * Sets the grid-auto-columns CSS property.
1811
+ *
1812
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns
1813
+ */
1814
+ autoColumns?: string;
1815
+ /**
1816
+ * Sets the grid-auto-flow CSS property.
1817
+ *
1818
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow
1819
+ */
1820
+ autoFlow?: "row" | "column" | "row dense" | "column dense";
1821
+ /**
1822
+ * Sets the grid-auto-rows CSS property.
1823
+ *
1824
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows
1825
+ */
1826
+ autoRows?: string;
1827
+ /**
1828
+ * Sets the gap CSS property.
1829
+ *
1830
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/gap
1831
+ */
1832
+ gap?: Gap;
1833
+ /**
1834
+ * Sets the place-content CSS property.
1835
+ *
1836
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/place-content
1837
+ */
1838
+ placeContent?: PlaceGeneric<PlaceContentValues, "content">;
1839
+ /**
1840
+ * Sets the place-items CSS property.
1841
+ *
1842
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/place-items
1843
+ */
1844
+ placeItems?: PlaceGeneric<PlaceItemsValues, "items">;
1845
+ /**
1846
+ * Sets the grid-template-areas CSS property.
1847
+ *
1848
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas
1849
+ */
1850
+ templateAreas?: string[];
1851
+ /**
1852
+ * Sets the grid-template-columns CSS property.
1853
+ *
1854
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns
1855
+ */
1856
+ templateColumns?: string[];
1857
+ /**
1858
+ * Sets the grid-template-rows CSS property.
1859
+ *
1860
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows
1861
+ */
1862
+ templateRows?: string[];
1863
+ };
1864
+
1865
+ declare const DxcGrid: {
1866
+ (props: Props$m): react_jsx_runtime.JSX.Element;
1867
+ Item: _emotion_styled.StyledComponent<{
1868
+ theme?: _emotion_react.Theme;
1869
+ as?: React.ElementType;
1870
+ } & GridItemProps, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1871
+ };
1872
+
1873
+ type Props$l = {
1874
+ /**
1875
+ * Defines the heading level from 1 to 5. The styles of the heading are applied according to the level.
1876
+ * The html tag of the heading will be the one specified in the 'as' prop.
1877
+ * If 'as' is not specified, the html tag of the heading is the one specified in the 'level' prop.
1878
+ */
1879
+ level?: 1 | 2 | 3 | 4 | 5 | 6;
1880
+ /**
1881
+ * Heading text.
1882
+ */
1883
+ text: string;
1884
+ /**
1885
+ * Modifies the default weight of the heading.
1886
+ */
1887
+ weight?: "light" | "default" | "regular";
1888
+ /**
1889
+ * Specifies the HTML tag of the heading.
1890
+ */
1891
+ as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
1892
+ /**
1893
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1894
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1895
+ */
1896
+ margin?: Space$1 | Margin;
1897
+ };
1898
+
1899
+ declare function DxcHeading({ as, level, margin, text, weight }: Props$l): react_jsx_runtime.JSX.Element;
1900
+
1901
+ type Props$k = {
1902
+ /**
1903
+ * Alternative text description displayed when the specified image is not loaded.
1904
+ *
1905
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/alt
1906
+ * See W3C alt decision tree: https://www.w3.org/WAI/tutorials/images/decision-tree/
1907
+ */
1908
+ alt: string;
1909
+ /**
1910
+ * Image legend with a descriptive purpose. It is placed below the image and is complementary to the alt attribute,
1911
+ * which is required regardless of the presence of the caption or not.
1912
+ */
1913
+ caption?: string;
1914
+ /**
1915
+ * Sets the rendered height of the image.
1916
+ */
1917
+ height?: string;
1918
+ /**
1919
+ * If true, the image will be loaded only when it is visible on the screen (lazy loading).
1920
+ * Otherwise and by default, the image will be loaded as soon as the component is mounted (eager loading).
1921
+ */
1922
+ lazyLoading?: boolean;
1923
+ /**
1924
+ * Sets the object-fit CSS property.
1925
+ *
1926
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
1927
+ */
1928
+ objectFit?: "contain" | "cover" | "fill" | "none" | "scale-down";
1929
+ /**
1930
+ * Sets the object-position CSS property.
1931
+ *
1932
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-position
1933
+ */
1934
+ objectPosition?: string;
1935
+ /**
1936
+ * This function will be called when the image fails to load.
1937
+ */
1938
+ onError?: ReactEventHandler<HTMLImageElement>;
1939
+ /**
1940
+ * This function will be called when the image is loaded.
1941
+ */
1942
+ onLoad?: ReactEventHandler<HTMLImageElement>;
1943
+ /**
1944
+ * One or more strings separated by commas, indicating a set of source sizes.
1945
+ * If the srcSet attribute is absent or contains no values with a width descriptor,
1946
+ * then this attribute has no effect.
1947
+ *
1948
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/sizes
1949
+ */
1950
+ sizes?: string;
1951
+ /**
1952
+ * URL of the image. This prop is required and must be valid.
1953
+ */
1954
+ src: string;
1955
+ /**
1956
+ * List of one or more strings separated by commas indicating a set of possible images for the user agent to use.
1957
+ *
1958
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/srcset
1959
+ */
1960
+ srcSet?: string;
1961
+ /**
1962
+ * Sets the rendered width of the image.
1963
+ */
1964
+ width?: string;
1965
+ };
1966
+
1967
+ declare function DxcImage({ alt, caption, height, lazyLoading, objectFit, objectPosition, onError, onLoad, sizes, src, srcSet, width, }: Props$k): react_jsx_runtime.JSX.Element;
1968
+
1969
+ type Props$j = {
1970
+ /**
1971
+ * Applies the spacing scale to the bottom side.
1972
+ */
1973
+ bottom?: string;
1974
+ /**
1975
+ * Custom content inside the inset.
1976
+ */
1977
+ children: ReactNode;
1978
+ /**
1979
+ * Applies the spacing scale to the left and right sides.
1980
+ */
1981
+ horizontal?: string;
1982
+ /**
1983
+ * Applies the spacing scale to the left side.
1984
+ */
1985
+ left?: string;
1986
+ /**
1987
+ * Applies the spacing scale to the right side.
1988
+ */
1989
+ right?: string;
1990
+ /**
1991
+ * Applies the spacing scale to all sides.
1992
+ */
1993
+ space?: string;
1994
+ /**
1995
+ * Applies the spacing scale to the top side.
1996
+ */
1997
+ top?: string;
1998
+ /**
1999
+ * Applies the spacing scale to the top and bottom sides.
2000
+ */
2001
+ vertical?: string;
2002
+ };
2003
+
2004
+ declare function DxcInset({ bottom, children, horizontal, left, right, space, top, vertical }: Props$j): react_jsx_runtime.JSX.Element;
2005
+
2006
+ type LinkProps = {
2007
+ /**
2008
+ * If true, the link is disabled.
2009
+ */
2010
+ disabled?: boolean;
2011
+ /**
2012
+ * If true, the color is inherited from parent.
2013
+ */
2014
+ inheritColor?: boolean;
2015
+ /**
2016
+ * Material Symbol name or SVG element as the icon that will be placed next to the link text.
2017
+ */
2018
+ icon?: string | SVG;
2019
+ /**
2020
+ * Indicates the position of the icon in the component.
2021
+ */
2022
+ iconPosition?: "before" | "after";
2023
+ /**
2024
+ * Page to be opened when the user clicks on the link.
2025
+ */
2026
+ href?: string;
2027
+ /**
2028
+ * If true, the page is opened in a new browser tab.
2029
+ */
2030
+ newWindow?: boolean;
2031
+ /**
2032
+ * If defined, the link will be displayed as a button. This
2033
+ * function will be called when the user clicks the link.
2034
+ */
2035
+ onClick?: () => void;
2036
+ /**
2037
+ * Text of the link.
2038
+ */
2039
+ children: string;
2040
+ /**
2041
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2042
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2043
+ */
2044
+ margin?: Space$1 | Margin;
2045
+ /**
2046
+ * Value of the tabindex.
2047
+ */
2048
+ tabIndex?: number;
2049
+ };
2050
+
2051
+ declare const DxcLink: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
2052
+
2053
+ type TabProps$1 = {
2054
+ /**
2055
+ * Whether the tab is active or not.
2056
+ */
2057
+ active?: boolean;
2058
+ /**
2059
+ * Tab text label.
2060
+ */
2061
+ children: string;
2062
+ /**
2063
+ * Whether the tab is disabled or not.
2064
+ */
2065
+ disabled?: boolean;
2066
+ /**
2067
+ * Page to be opened when the user clicks on the tab.
2068
+ */
2069
+ href?: string;
2070
+ /**
2071
+ * Material Symbol name or SVG element used as the icon that will be displayed in the tab.
2072
+ */
2073
+ icon?: string | SVG;
2074
+ /**
2075
+ * This function will be called when the user clicks on this tab.
2076
+ */
2077
+ onClick?: () => void;
2078
+ /**
2079
+ * If the value is 'true', an empty badge will appear.
2080
+ * If it is 'false', no badge will appear.
2081
+ * If a number is put it will be shown as the label of the notification
2082
+ * in the tab, taking into account that if that number is greater than 99,
2083
+ * it will appear as '+99' in the badge.
2084
+ */
2085
+ notificationNumber?: boolean | number;
2086
+ };
2087
+ type Props$i = {
2088
+ /**
2089
+ * Contains one or more DxcNavTabs.Tab.
2090
+ */
2091
+ children: ReactNode;
2092
+ /**
2093
+ * Whether the icon should appear above or to the left of the label.
2094
+ */
2095
+ iconPosition?: "top" | "left";
2096
+ /**
2097
+ * Value of the tabindex attribute applied to each tab.
2098
+ */
2099
+ tabIndex?: number;
2100
+ };
2101
+
2102
+ declare const DxcNavTabs: {
2103
+ ({ iconPosition, tabIndex, children }: Props$i): JSX.Element;
2104
+ Tab: react.ForwardRefExoticComponent<TabProps$1 & react.RefAttributes<HTMLAnchorElement>>;
2105
+ };
2106
+
2107
+ type Props$h = {
2108
+ /**
2109
+ * Text to be placed above the number.
2110
+ */
2111
+ label?: string;
2112
+ /**
2113
+ * Name attribute of the input element.
2114
+ */
2115
+ name?: string;
2116
+ /**
2117
+ * Initial value of the input element, only when it is uncontrolled.
2118
+ */
2119
+ defaultValue?: string;
2120
+ /**
2121
+ * Value of the input element. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
2122
+ */
2123
+ value?: string;
2124
+ /**
2125
+ * Helper text to be placed above the number.
2126
+ */
2127
+ helperText?: string;
2128
+ /**
2129
+ * Text to be put as placeholder of the number.
2130
+ */
2131
+ placeholder?: string;
2132
+ /**
2133
+ * If true, the component will be disabled.
2134
+ */
2135
+ disabled?: boolean;
2136
+ /**
2137
+ * If true, the number will be optional, showing the text '(Optional)'
2138
+ * next to the label. Otherwise, the field will be considered required
2139
+ * and an error will be passed as a parameter to the OnBlur and onChange
2140
+ * functions when it has not been filled.
2141
+ */
2142
+ optional?: boolean;
2143
+ /**
2144
+ * If true, the component will not be mutable, meaning the user can
2145
+ * not edit the control. The value won't change when pressing on the
2146
+ * up or down arrows and neither on the spin buttons.
2147
+ */
2148
+ readOnly?: boolean;
2149
+ /**
2150
+ * Prefix to be placed before the number value.
2151
+ */
2152
+ prefix?: string;
2153
+ /**
2154
+ * Suffix to be placed after the number value.
2155
+ */
2156
+ suffix?: string;
2157
+ /**
2158
+ * Minimum value allowed by the number input. If the typed value by the user is
2159
+ * lower than min, the onBlur and onChange functions will be called with
2160
+ * the current value and an internal error informing that the current
2161
+ * value is not correct. If a valid state is reached, the error parameter
2162
+ * will not be defined in both events.
2163
+ */
2164
+ min?: number;
2165
+ /**
2166
+ * Maximum value allowed by the number input. If the typed value by the user
2167
+ * surpasses max, the onBlur and onChange functions will be called with
2168
+ * the current value and an internal error informing that the current
2169
+ * value is not correct. If a valid state is reached, the error parameter
2170
+ * will not be defined in both events.
2171
+ */
2172
+ max?: number;
2173
+ /**
2174
+ * The step interval to use when using the up and down arrows to adjust the value.
2175
+ */
2176
+ step?: number;
2177
+ /**
2178
+ * This function will be called when the user types within the input
2179
+ * element of the component. An object including the current value and
2180
+ * the error (if the value entered is not valid) will be passed to this
2181
+ * function. If there is no error, error will not be defined.
2182
+ */
2183
+ onChange?: (val: {
2184
+ value: string;
2185
+ error?: string;
2186
+ }) => void;
2187
+ /**
2188
+ * This function will be called when the input element loses the focus.
2189
+ * An object including the input value and the error (if the value
2190
+ * entered is not valid) will be passed to this function. If there is no error,
2191
+ * error will not be defined.
2192
+ */
2193
+ onBlur?: (val: {
2194
+ value: string;
2195
+ error?: string;
2196
+ }) => void;
2197
+ /**
2198
+ * If it is a defined value and also a truthy string, the component will
2199
+ * change its appearance, showing the error below the input component. If
2200
+ * the defined value is an empty string, it will reserve a space below
2201
+ * the component for a future error, but it would not change its look. In
2202
+ * case of being undefined or null, both the appearance and the space for
2203
+ * the error message would not be modified.
2204
+ */
2205
+ error?: string;
2206
+ /**
2207
+ * HTML autocomplete attribute. Lets the user specify if any permission the user agent has to provide automated assistance in filling out the input value.
2208
+ * Its value must be one of all the possible values of the HTML autocomplete attribute: 'on', 'off', 'email', 'username', 'new-password', ...
2209
+ */
2210
+ autocomplete?: string;
2211
+ /**
2212
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2213
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2214
+ */
2215
+ margin?: Space$1 | Margin;
2216
+ /**
2217
+ * Size of the component.
2218
+ */
2219
+ size?: "small" | "medium" | "large" | "fillParent";
2220
+ /**
2221
+ * Value of the tabindex attribute.
2222
+ */
2223
+ tabIndex?: number;
2224
+ /**
2225
+ * Specifies a string to be used as the name for the number input element when no `label` is provided.
2226
+ */
2227
+ ariaLabel?: string;
2228
+ /**
2229
+ * Decides whether the number input has actions to increase or decrease the value, following the defined step.
2230
+ */
2231
+ showControls?: boolean;
2232
+ };
2233
+
2234
+ declare const DxcNumberInput: react.ForwardRefExoticComponent<Props$h & react.RefAttributes<HTMLDivElement>>;
2235
+
2236
+ type Props$g = {
2237
+ /**
2238
+ * Number of the current selected page.
2239
+ */
2240
+ currentPage?: number;
2241
+ /**
2242
+ * Number of items per page.
2243
+ */
2244
+ itemsPerPage?: number;
2245
+ /**
2246
+ * Array of numbers representing the items per page options.
2247
+ * If undefined, the select with items per page options will not be displayed.
2248
+ */
2249
+ itemsPerPageOptions?: number[];
2250
+ /**
2251
+ * This function will be called when the user selects an item per page option.
2252
+ * The number will be passed as a parameter to this function.
2253
+ */
2254
+ itemsPerPageFunction?: (itemsPerPage: number) => void;
2255
+ /**
2256
+ * Total number of items in the pages.
2257
+ */
2258
+ totalItems?: number;
2259
+ /**
2260
+ * If true, a select will be displayed with the page numbers to move through them.
2261
+ */
2262
+ showGoToPage?: boolean;
2263
+ /**
2264
+ * This function will be called when the user clicks on any of the button to change pages.
2265
+ * The page number will be passed as a parameter to this function.
2266
+ */
2267
+ onPageChange?: (page: number) => void;
2268
+ /**
2269
+ * Value of the tabindex attribute.
2270
+ */
2271
+ tabIndex?: number;
2272
+ };
2273
+
2274
+ declare const DxcPaginator: ({ currentPage, itemsPerPage, itemsPerPageOptions, totalItems, showGoToPage, onPageChange, itemsPerPageFunction, tabIndex, }: Props$g) => JSX.Element;
2275
+
2276
+ declare function DxcParagraph({ children }: {
2277
+ children: ReactNode;
2278
+ }): react_jsx_runtime.JSX.Element;
2279
+
2280
+ type Props$f = {
2281
+ /**
2282
+ * Text to be placed above the password input.
2283
+ */
2284
+ label?: string;
2285
+ /**
2286
+ * Name attribute of the input element.
2287
+ */
2288
+ name?: string;
2289
+ /**
2290
+ * Value of the input element. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
2291
+ */
2292
+ value?: string;
2293
+ /**
2294
+ * Helper text to be placed above the password.
2295
+ */
2296
+ helperText?: string;
2297
+ /**
2298
+ * If true, the password input will have an action to clear the entered value.
2299
+ */
2300
+ clearable?: boolean;
2301
+ /**
2302
+ * This function will be called when the user types within the input
2303
+ * element of the component. An object including the current value and
2304
+ * the error (if the value entered is not valid) will be passed to this
2305
+ * function. If there is no error, error will not be defined.
2306
+ * */
2307
+ onChange?: (val: {
2308
+ value: string;
2309
+ error?: string;
2310
+ }) => void;
2311
+ /**
2312
+ * This function will be called when the input element loses the focus.
2313
+ * An object including the input value and the error (if the value entered is
2314
+ * not valid) will be passed to this function. If there is no error, error will
2315
+ * not be defined.
2316
+ */
2317
+ onBlur?: (val: {
2318
+ value: string;
2319
+ error?: string;
2320
+ }) => void;
2321
+ /**
2322
+ * If it is a defined value and also a truthy string, the component will
2323
+ * change its appearance, showing the error below the password input
2324
+ * component. If the defined value is an empty string, it will reserve a
2325
+ * space below the component for a future error, but it would not change
2326
+ * its look. In case of being undefined or null, both the appearance and
2327
+ * the space for the error message would not be modified.
2328
+ */
2329
+ error?: string;
2330
+ /**
2331
+ * Regular expression that defines the valid format allowed by the
2332
+ * password input. This will be checked both when the input element loses the
2333
+ * focus and while typing within it. If the string entered does not match
2334
+ * the pattern, the onBlur and onChange functions will be called with the
2335
+ * current value and an internal error informing that this value does not
2336
+ * match the pattern. If the pattern is met, the error parameter of both
2337
+ * events will not be defined.
2338
+ */
2339
+ pattern?: string;
2340
+ /**
2341
+ * Specifies the minimum length allowed by the password input.
2342
+ * This will be checked both when the input element loses the
2343
+ * focus and while typing within it. If the string entered does not
2344
+ * comply the minimum length, the onBlur and onChange functions will be called
2345
+ * with the current value and an internal error informing that the value
2346
+ * length does not comply the specified range. If a valid length is
2347
+ * reached, the error parameter of both events will not be defined.
2348
+ */
2349
+ minLength?: number;
2350
+ /**
2351
+ * Specifies the maximum length allowed by the password input.
2352
+ * This will be checked both when the input element loses the
2353
+ * focus and while typing within it. If the string entered does not
2354
+ * comply the maximum length, the onBlur and onChange functions will be called
2355
+ * with the current value and an internal error informing that the value
2356
+ * length does not comply the specified range. If a valid length is
2357
+ * reached, the error parameter of both events will not be defined.
2358
+ */
2359
+ maxLength?: number;
2360
+ /**
2361
+ * HTML autocomplete attribute. Lets the user specify if any permission the user agent has to provide automated assistance in filling out the input value.
2362
+ * Its value must be one of all the possible values of the HTML autocomplete attribute: 'on', 'off', 'email', 'username', 'new-password', ...
2363
+ */
2364
+ autocomplete?: string;
2365
+ /**
2366
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2367
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2368
+ */
2369
+ margin?: Space$1 | Margin;
2370
+ /**
2371
+ * Size of the component.
2372
+ */
2373
+ size?: "small" | "medium" | "large" | "fillParent";
2374
+ /**
2375
+ * Value of the tabindex attribute.
2376
+ */
2377
+ tabIndex?: number;
2378
+ /**
2379
+ * Specifies a string to be used as the name for the password input element when no `label` is provided.
2380
+ */
2381
+ ariaLabel?: string;
2382
+ };
2383
+
2384
+ declare const DxcPasswordInput: react.ForwardRefExoticComponent<Props$f & react.RefAttributes<HTMLDivElement>>;
2385
+
2386
+ type Size$1 = {
2387
+ top?: Space$1;
2388
+ bottom?: Space$1;
2389
+ left?: Space$1;
2390
+ right?: Space$1;
2391
+ };
2392
+ type Props$e = {
2393
+ /**
2394
+ * Text to be placed above the progress bar.
2395
+ */
2396
+ label?: string;
2397
+ /**
2398
+ * Helper text to be placed under the progress bar.
2399
+ */
2400
+ helperText?: string;
2401
+ /**
2402
+ * If true, the progress bar will be displayed as a modal.
2403
+ */
2404
+ overlay?: boolean;
2405
+ /**
2406
+ * The value of the progress indicator. If it's received the component is
2407
+ * determinate otherwise is indeterminate.
2408
+ */
2409
+ value?: number;
2410
+ /**
2411
+ * If true, the value is displayed above the progress bar.
2412
+ */
2413
+ showValue?: boolean;
2414
+ /**
2415
+ * Size of the margin to be applied to the component. You can pass
2416
+ * an object with 'top', 'bottom', 'left' and 'right' properties
2417
+ * in order to specify different margin sizes.
2418
+ */
2419
+ margin?: Space$1 | Size$1;
2420
+ /**
2421
+ * Specifies a string to be used as the name for the progress bar element when no `label` is provided.
2422
+ */
2423
+ ariaLabel?: string;
2424
+ };
2425
+
2426
+ declare const DxcProgressBar: ({ label, helperText, overlay, value, showValue, margin, ariaLabel, }: Props$e) => JSX.Element;
2427
+
2428
+ type Link = {
2429
+ /**
2430
+ * Label to be shown in the link.
2431
+ */
2432
+ label: string;
2433
+ /**
2434
+ * Sublinks of the link.
2435
+ */
2436
+ links?: Link[];
2437
+ };
2438
+ type Props$d = {
2439
+ /**
2440
+ * Title of the quick nav component.
2441
+ */
2442
+ title?: string;
2443
+ /**
2444
+ * Links to be shown inside the quick nav component.
2445
+ */
2446
+ links: Link[];
2447
+ };
2448
+
2449
+ declare function DxcQuickNav({ links, title }: Props$d): react_jsx_runtime.JSX.Element;
2450
+
2451
+ type Option$1 = {
2452
+ /**
2453
+ * Label of the option placed next to the radio input.
2454
+ */
2455
+ value: string;
2456
+ /**
2457
+ * Value of the option. It should be unique and
2458
+ * not an empty string, which is reserved to the optional item added
2459
+ * by 'optional' prop.
2460
+ */
2461
+ label: string;
2462
+ /**
2463
+ * If true, disables the option.
2464
+ */
2465
+ disabled?: boolean;
2466
+ };
2467
+ type RadioGroupProps = {
2468
+ /**
2469
+ * Specifies a string to be used as the name for the radio group when no `label` is provided.
2470
+ */
2471
+ ariaLabel?: string;
2472
+ /**
2473
+ * Initial value of the radio group, only when it is uncontrolled.
2474
+ */
2475
+ defaultValue?: string;
2476
+ /**
2477
+ * If true, the component will be disabled.
2478
+ */
2479
+ disabled?: boolean;
2480
+ /**
2481
+ * If it is a defined value and also a truthy string, the component will
2482
+ * change its appearance, showing the error below the radio group. If the
2483
+ * defined value is an empty string, it will reserve a space below the
2484
+ * component for a future error, but it would not change its look. In
2485
+ * case of being undefined or null, both the appearance and the space for
2486
+ * the error message would not be modified.
2487
+ */
2488
+ error?: string;
2489
+ /**
2490
+ * Helper text to be placed above the radio group.
2491
+ */
2492
+ helperText?: string;
2493
+ /**
2494
+ * Text to be placed above the radio group.
2495
+ */
2496
+ label?: string;
2497
+ /**
2498
+ * Name attribute of the input element. This attribute will allow users
2499
+ * to find the component's value during the submit event.
2500
+ */
2501
+ name?: string;
2502
+ /**
2503
+ * If true, the radio group will be optional, showing
2504
+ * (Optional) next to the label and adding a default last
2505
+ * option with an empty string as value. Otherwise, the field will be
2506
+ * considered required and an error will be passed as a parameter to the
2507
+ * OnBlur functions if an option wasn't selected.
2508
+ */
2509
+ optional?: boolean;
2510
+ /**
2511
+ * Label of the optional radio input.
2512
+ */
2513
+ optionalItemLabel?: string;
2514
+ /**
2515
+ * An array of objects representing the selectable options.
2516
+ */
2517
+ options: Option$1[];
2518
+ /**
2519
+ * This function will be called when the radio group loses the focus. An
2520
+ * object including the value and the error will be passed to this
2521
+ * function. If there is no error, error will not be defined.
2522
+ */
2523
+ onBlur?: (val: {
2524
+ value?: string;
2525
+ error?: string;
2526
+ }) => void;
2527
+ /**
2528
+ * This function will be called when the user chooses an option. The new
2529
+ * value will be passed to this function.
2530
+ */
2531
+ onChange?: (value: string) => void;
2532
+ /**
2533
+ * If true, the component will not be mutable, meaning the user can not edit the control.
2534
+ */
2535
+ readOnly?: boolean;
2536
+ /**
2537
+ * Sets the orientation of the options within the radio group.
2538
+ */
2539
+ stacking?: "row" | "column";
2540
+ /**
2541
+ * Value of the tabindex attribute.
2542
+ */
2543
+ tabIndex?: number;
2544
+ /**
2545
+ * Value of the radio group. If undefined, the component will be
2546
+ * uncontrolled and the value will be managed internally by the
2547
+ * component.
2548
+ */
2549
+ value?: string;
2550
+ };
2551
+
2552
+ declare const DxcRadioGroup: react.ForwardRefExoticComponent<RadioGroupProps & react.RefAttributes<HTMLDivElement>>;
2553
+
2554
+ type Column = {
2555
+ /**
2556
+ * Column display value.
2557
+ */
2558
+ displayValue: ReactNode;
2559
+ /**
2560
+ * Boolean value to indicate whether the column is sortable or not.
2561
+ */
2562
+ isSortable?: boolean;
2563
+ };
2564
+ type Cell = {
2565
+ /**
2566
+ * Value to be displayed in the cell.
2567
+ */
2568
+ displayValue: ReactNode;
2569
+ /**
2570
+ * Value to be used when sorting the table by that
2571
+ * column. If not indicated displayValue will be used for sorting.
2572
+ */
2573
+ sortValue?: string | number | Date;
2574
+ };
2575
+ type Row = Cell[];
2576
+ type CommonProps$3 = {
2577
+ /**
2578
+ * An array of objects representing the columns of the table.
2579
+ */
2580
+ columns: Column[];
2581
+ /**
2582
+ * An array of objects representing the rows of the table, you will have
2583
+ * as many objects as columns in the table.
2584
+ */
2585
+ rows: Row[];
2586
+ /**
2587
+ * Size of the margin to be applied to the component. You can pass an object with 'top',
2588
+ * 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2589
+ */
2590
+ margin?: Space$1 | Margin;
2591
+ /**
2592
+ * Value of the tabindex attribute applied to the sortable icon.
2593
+ */
2594
+ tabIndex?: number;
2595
+ /**
2596
+ * Determines the visual style and layout
2597
+ * - "default": The default mode with big spacing
2598
+ * - "reduced": A reduced mode with minimal spacing for dense tables
2599
+ */
2600
+ mode?: "default" | "reduced";
2601
+ };
2602
+ type PaginatedProps = CommonProps$3 & {
2603
+ hidePaginator?: false;
2604
+ /**
2605
+ * If true, a select component for navigation between pages will be displayed.
2606
+ */
2607
+ showGoToPage?: boolean;
2608
+ /**
2609
+ * Number of items per page.
2610
+ */
2611
+ itemsPerPage?: number;
2612
+ /**
2613
+ * An array of numbers representing the items per page options.
2614
+ */
2615
+ itemsPerPageOptions?: number[];
2616
+ /**
2617
+ * This function will be called when the user selects an item per page
2618
+ * option. The value selected will be passed as a parameter.
2619
+ */
2620
+ itemsPerPageFunction?: (value: number) => void;
2621
+ };
2622
+ type NonPaginatedProps = CommonProps$3 & {
2623
+ /**
2624
+ * If true, paginator will not be displayed.
2625
+ */
2626
+ hidePaginator: true;
2627
+ /**
2628
+ * If true, a select component for navigation between pages will be displayed.
2629
+ */
2630
+ showGoToPage?: never;
2631
+ /**
2632
+ * Number of items per page.
2633
+ */
2634
+ itemsPerPage?: never;
2635
+ /**
2636
+ * An array of numbers representing the items per page options.
2637
+ */
2638
+ itemsPerPageOptions?: never;
2639
+ /**
2640
+ * This function will be called when the user selects an item per page
2641
+ * option. The value selected will be passed as a parameter.
2642
+ */
2643
+ itemsPerPageFunction?: never;
2644
+ };
2645
+ type Props$c = PaginatedProps | NonPaginatedProps;
2646
+
2647
+ declare const DxcResultsetTable: {
2648
+ ({ columns, hidePaginator, itemsPerPage, itemsPerPageFunction, itemsPerPageOptions, margin, mode, rows, showGoToPage, tabIndex, }: Props$c): react_jsx_runtime.JSX.Element;
2649
+ ActionsCell: ({ actions }: ActionsCellPropsType) => react_jsx_runtime.JSX.Element;
2650
+ };
2651
+
2652
+ type ListOptionType = {
2653
+ /**
2654
+ * Element used as the icon that will be placed before the option label.
2655
+ * It can be an inline SVG or Material Symbol name. If the url option
2656
+ * is the chosen one, take into account that the component's
2657
+ * color styling tokens will not be applied to the image.
2658
+ */
2659
+ icon?: string | SVG;
2660
+ /**
2661
+ * Label of the option to be shown in the select's listbox.
2662
+ */
2663
+ label: string;
2664
+ /**
2665
+ * Value of the option. It should be unique and
2666
+ * not an empty string, which is reserved to the empty option added
2667
+ * by optional prop.
2668
+ */
2669
+ value: string;
2670
+ };
2671
+ type ListOptionGroupType = {
2672
+ /**
2673
+ * Label of the group to be shown in the select's listbox.
2674
+ */
2675
+ label: string;
2676
+ /**
2677
+ * List of the grouped options.
2678
+ */
2679
+ options: ListOptionType[];
2680
+ };
2681
+ type CommonProps$2 = {
2682
+ /**
2683
+ * Text to be placed above the select.
2684
+ */
2685
+ label?: string;
2686
+ /**
2687
+ * Name attribute of the input element. This attribute will allow users
2688
+ * to find the component's value during the submit event. In this event,
2689
+ * the component's value will always be a regular string, for both single
2690
+ * and multiple selection modes, being a single option value in the first case
2691
+ * and more than one value when multiple selection is available, separated by commas.
2692
+ */
2693
+ name?: string;
2694
+ /**
2695
+ * An array of objects representing the selectable options.
2696
+ */
2697
+ options: ListOptionType[] | ListOptionGroupType[];
2698
+ /**
2699
+ * Helper text to be placed above the select.
2700
+ */
2701
+ helperText?: string;
2702
+ /**
2703
+ * Text to be put as placeholder of the select.
2704
+ */
2705
+ placeholder?: string;
2706
+ /**
2707
+ * If true, the component will be disabled.
2708
+ */
2709
+ disabled?: boolean;
2710
+ /**
2711
+ * If true, the select will be optional, showing '(Optional)'
2712
+ * next to the label and adding a default first option with an empty string as value,
2713
+ * been the placeholder (if defined) its label. Otherwise, the field will be
2714
+ * considered required and an error will be passed as a parameter to the
2715
+ * OnBlur and onChange functions if an option wasn't selected.
2716
+ */
2717
+ optional?: boolean;
2718
+ /**
2719
+ * If true, enables search functionality.
2720
+ */
2721
+ searchable?: boolean;
2722
+ /**
2723
+ * If it is a defined value and also a truthy string, the component will
2724
+ * change its appearance, showing the error below the select component.
2725
+ * If the defined value is an empty string, it will reserve a space below
2726
+ * the component for a future error, but it would not change its look. In
2727
+ * case of being undefined or null, both the appearance and the space for
2728
+ * the error message would not be modified.
2729
+ */
2730
+ error?: string;
2731
+ /**
2732
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2733
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2734
+ */
2735
+ margin?: Space$1 | Margin;
2736
+ /**
2737
+ * Size of the component.
2738
+ */
2739
+ size?: "small" | "medium" | "large" | "fillParent";
2740
+ /**
2741
+ * Value of the tabindex attribute.
2742
+ */
2743
+ tabIndex?: number;
2744
+ /**
2745
+ * Specifies a string to be used as the name for the select element when no `label` is provided.
2746
+ */
2747
+ ariaLabel?: string;
2748
+ };
2749
+ type SingleSelect = CommonProps$2 & {
2750
+ /**
2751
+ * Enables users to select multiple items from the list.
2752
+ */
2753
+ enableSelectAll?: never;
2754
+ /**
2755
+ * If true, the select component will support multiple selected options.
2756
+ * In that case, value will be an array of strings with each selected
2757
+ * option value.
2758
+ */
2759
+ multiple?: false;
2760
+ /**
2761
+ * Initial value of the select, only when it is uncontrolled.
2762
+ */
2763
+ defaultValue?: string;
2764
+ /**
2765
+ * Value of the select. If undefined, the component will be uncontrolled
2766
+ * and the value will be managed internally by the component.
2767
+ */
2768
+ value?: string;
2769
+ /**
2770
+ * This function will be called when the user selects an option.
2771
+ * An object including the current value and the error (if the value entered is not valid)
2772
+ * will be passed to this function. If there is no error, error will not be defined.
2773
+ */
2774
+ onChange?: (val: {
2775
+ value: string;
2776
+ error?: string;
2777
+ }) => void;
2778
+ /**
2779
+ * This function will be called when the select loses the focus. An
2780
+ * object including the value and the error (if the value
2781
+ * selected is not valid) will be passed to this function. If there is no error,
2782
+ * error will not be defined.
2783
+ */
2784
+ onBlur?: (val: {
2785
+ value: string;
2786
+ error?: string;
2787
+ }) => void;
2788
+ };
2789
+ type MultipleSelect = CommonProps$2 & {
2790
+ /**
2791
+ * Enables users to select multiple items from the list.
2792
+ */
2793
+ enableSelectAll?: boolean;
2794
+ /**
2795
+ * If true, the select component will support multiple selected options.
2796
+ * In that case, value will be an array of strings with each selected
2797
+ * option value.
2798
+ */
2799
+ multiple: true;
2800
+ /**
2801
+ * Initial value of the select, only when it is uncontrolled.
2802
+ */
2803
+ defaultValue?: string[];
2804
+ /**
2805
+ * Value of the select. If undefined, the component will be uncontrolled
2806
+ * and the value will be managed internally by the component.
2807
+ */
2808
+ value?: string[];
2809
+ /**
2810
+ * This function will be called when the user selects an option.
2811
+ * An object including the current selected values and the error (if the value entered is not valid)
2812
+ * will be passed to this function. If there is no error, error will be null.
2813
+ */
2814
+ onChange?: (val: {
2815
+ value: string[];
2816
+ error?: string;
2817
+ }) => void;
2818
+ /**
2819
+ * This function will be called when the select loses the focus. An
2820
+ * object including the selected values and the error (if the value
2821
+ * selected is not valid) will be passed to this function. If there is no error,
2822
+ * error will be null.
2823
+ */
2824
+ onBlur?: (val: {
2825
+ value: string[];
2826
+ error?: string;
2827
+ }) => void;
2828
+ };
2829
+ type Props$b = SingleSelect | MultipleSelect;
2830
+
2831
+ declare const DxcSelect: react.ForwardRefExoticComponent<Props$b & react.RefAttributes<HTMLDivElement>>;
2832
+
2833
+ type Props$a = {
2834
+ /**
2835
+ * Specifies a string to be used as the name for the slider element when no `label` is provided.
2836
+ */
2837
+ ariaLabel?: string;
2838
+ /**
2839
+ * Initial value of the slider, only when it is uncontrolled.
2840
+ */
2841
+ defaultValue?: number;
2842
+ /**
2843
+ * If true, the component will be disabled.
2844
+ */
2845
+ disabled?: boolean;
2846
+ /**
2847
+ * Helper text to be placed above the slider.
2848
+ */
2849
+ helperText?: string;
2850
+ /**
2851
+ * Text to be placed above the slider.
2852
+ */
2853
+ label?: string;
2854
+ /**
2855
+ * This function will be used to format the labels displayed next to the slider.
2856
+ * The value will be passed as parameter and the function must return the formatted value.
2857
+ */
2858
+ labelFormatCallback?: (value: number) => string;
2859
+ /**
2860
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2861
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2862
+ */
2863
+ margin?: Space$1 | Margin;
2864
+ /**
2865
+ * Whether the marks between each step should be shown or not.
2866
+ */
2867
+ marks?: boolean;
2868
+ /**
2869
+ * The maximum value available for selection.
2870
+ */
2871
+ maxValue?: number;
2872
+ /**
2873
+ * The minimum value available for selection.
2874
+ */
2875
+ minValue?: number;
2876
+ /**
2877
+ * Name attribute of the input element.
2878
+ */
2879
+ name?: string;
2880
+ /**
2881
+ * This function will be called when the slider changes its value, as it's being dragged.
2882
+ * The new value will be passed as a parameter when this function is executed.
2883
+ */
2884
+ onChange?: (value: number) => void;
2885
+ /**
2886
+ * This function will be called when the slider changes its value, but only when the thumb is released.
2887
+ * The new value will be passed as a parameter when this function is executed.
2888
+ */
2889
+ onDragEnd?: (value: number) => void;
2890
+ /**
2891
+ * Whether the input element for displaying/controlling the slider value should be displayed next to the slider.
2892
+ */
2893
+ showInput?: boolean;
2894
+ /**
2895
+ * Whether the min/max value labels should be displayed next to the slider
2896
+ */
2897
+ showLimitsValues?: boolean;
2898
+ /**
2899
+ * Size of the component.
2900
+ */
2901
+ size?: "medium" | "large" | "fillParent";
2902
+ /**
2903
+ * The step interval between values available for selection.
2904
+ */
2905
+ step?: number;
2906
+ /**
2907
+ * The selected value. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
2908
+ */
2909
+ value?: number;
2910
+ };
2911
+
2912
+ declare const DxcSlider: react.ForwardRefExoticComponent<Props$a & react.RefAttributes<HTMLDivElement>>;
2913
+
2914
+ type Props$9 = {
2915
+ /**
2916
+ * Specifies a string to be used as the name for the spinner element when no `label` is provided or the `mode` is set to small.
2917
+ */
2918
+ ariaLabel?: string;
2919
+ /**
2920
+ * If true, the color is inherited from the closest parent with a defined color. This allows users to adapt the spinner
2921
+ * to the semantic color of the use case in which it is used.
2922
+ */
2923
+ inheritColor?: boolean;
2924
+ /**
2925
+ * Text to be placed inside the spinner.
2926
+ */
2927
+ label?: string;
2928
+ /**
2929
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2930
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2931
+ */
2932
+ margin?: Space$1 | Margin;
2933
+ /**
2934
+ * Available modes of the spinner.
2935
+ */
2936
+ mode?: "large" | "small" | "overlay";
2937
+ /**
2938
+ * If true, the value is displayed inside the spinner..
2939
+ */
2940
+ showValue?: boolean;
2941
+ /**
2942
+ * The value of the progress indicator. If it's received the
2943
+ * component is determinate, otherwise is indeterminate.
2944
+ */
2945
+ value?: number;
2946
+ };
2947
+
2948
+ declare const DxcSpinner: ({ ariaLabel, inheritColor, label, margin, mode, showValue, value, }: Props$9) => react_jsx_runtime.JSX.Element;
2949
+
2950
+ type Mode = "default" | "info" | "success" | "warning" | "error";
2951
+ type Size = "small" | "medium" | "large";
2952
+ type Props$8 = {
2953
+ /**
2954
+ * It will define the color of the light based on its semantic meaning.
2955
+ */
2956
+ mode?: Mode;
2957
+ /**
2958
+ * An auxiliar text that will add some context to the status.
2959
+ */
2960
+ label: string;
2961
+ /**
2962
+ * Size of the component. Should be defined based on its importance and/or available space.
2963
+ */
2964
+ size?: Size;
2965
+ };
2966
+
2967
+ declare function DxcStatusLight({ label, mode, size }: Props$8): react_jsx_runtime.JSX.Element;
2968
+
2969
+ type Props$7 = {
2970
+ /**
2971
+ * Specifies a string to be used as the name for the switch element when no `label` is provided.
2972
+ */
2973
+ ariaLabel?: string;
2974
+ /**
2975
+ * If true, the component is checked. If undefined, the component will be uncontrolled
2976
+ * and the checked attribute will be managed internally by the component.
2977
+ */
2978
+ checked?: boolean;
2979
+ /**
2980
+ * Initial state of the switch, only when it is uncontrolled.
2981
+ */
2982
+ defaultChecked?: boolean;
2983
+ /**
2984
+ * If true, the component will be disabled.
2985
+ */
2986
+ disabled?: boolean;
2987
+ /**
2988
+ * Text to be placed next to the switch.
2989
+ */
2990
+ label?: string;
2991
+ /**
2992
+ * Whether the label should appear after or before the switch.
2993
+ */
2994
+ labelPosition?: "before" | "after";
2995
+ /**
2996
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2997
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2998
+ */
2999
+ margin?: Space$1 | Margin;
3000
+ /**
3001
+ * Name attribute of the input element.
3002
+ */
3003
+ name?: string;
3004
+ /**
3005
+ * This function will be called when the user changes the state of the switch.
3006
+ * The new value of the checked attribute will be passed as a parameter.
3007
+ */
3008
+ onChange?: (checked: boolean) => void;
3009
+ /**
3010
+ * If true, the component will display '(Optional)' next to the label.
3011
+ */
3012
+ optional?: boolean;
3013
+ /**
3014
+ * Size of the component.
3015
+ */
3016
+ size?: "small" | "medium" | "large" | "fillParent" | "fitContent";
3017
+ /**
3018
+ * Value of the tabindex.
3019
+ */
3020
+ tabIndex?: number;
3021
+ /**
3022
+ * Will be passed to the value attribute of the html input element. When inside a form,
3023
+ * this value will be only submitted if the switch is checked.
3024
+ */
3025
+ value?: string;
3026
+ };
3027
+
3028
+ declare const DxcSwitch: react.ForwardRefExoticComponent<Props$7 & react.RefAttributes<HTMLDivElement>>;
3029
+
3030
+ declare const DxcTable: {
3031
+ ({ children, margin, mode }: Props$t): react_jsx_runtime.JSX.Element;
3032
+ ActionsCell: ({ actions }: ActionsCellPropsType) => react_jsx_runtime.JSX.Element;
3033
+ };
3034
+
3035
+ type TabLabelProps = {
3036
+ /**
3037
+ * Tab label.
3038
+ */
3039
+ label: string;
3040
+ /**
3041
+ * Material Symbol name or SVG element used as the icon that will be displayed in the tab.
3042
+ */
3043
+ icon?: string | SVG;
3044
+ };
3045
+ type TabIconProps = {
3046
+ /**
3047
+ * Tab label.
3048
+ */
3049
+ label?: string;
3050
+ /**
3051
+ * Material Symbol name or SVG element used as the icon that will be displayed in the tab.
3052
+ */
3053
+ icon: string | SVG;
3054
+ };
3055
+ type TabProps = {
3056
+ defaultActive?: boolean;
3057
+ active?: boolean;
3058
+ title?: string;
3059
+ tabId?: string;
3060
+ disabled?: boolean;
3061
+ notificationNumber?: boolean | number;
3062
+ children: ReactNode;
3063
+ onClick?: () => void;
3064
+ onHover?: () => void;
3065
+ } & (TabLabelProps | TabIconProps);
3066
+ type TabsProps = {
3067
+ /**
3068
+ * Whether the icon should appear above or to the left of the label.
3069
+ */
3070
+ iconPosition?: "top" | "left";
3071
+ /**
3072
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3073
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3074
+ */
3075
+ margin?: Space$1 | Margin;
3076
+ /**
3077
+ * Value of the tabindex attribute applied to each tab.
3078
+ */
3079
+ tabIndex?: number;
3080
+ /**
3081
+ * Contains one or more DxcTabs.Tab.
3082
+ */
3083
+ children?: ReactNode;
3084
+ };
3085
+ type Props$6 = TabsProps;
3086
+
3087
+ declare const DxcTabs: {
3088
+ ({ children, iconPosition, margin, tabIndex }: Props$6): react_jsx_runtime.JSX.Element;
3089
+ Tab: react.ForwardRefExoticComponent<TabProps & react.RefAttributes<HTMLButtonElement>>;
3090
+ };
3091
+
3092
+ type Props$5 = {
3093
+ /**
3094
+ * Specifies a string to be used as the name for the textarea element when no `label` is provided.
3095
+ */
3096
+ ariaLabel?: string;
3097
+ /**
3098
+ * HTML autocomplete attribute. Lets the user specify if any permission the user agent has to provide automated assistance in filling out the textarea value.
3099
+ * Its value must be one of all the possible values of the HTML autocomplete attribute: 'on', 'off', 'email', 'username', 'new-password', ...
3100
+ */
3101
+ autocomplete?: string;
3102
+ /**
3103
+ * If true, the component will be disabled.
3104
+ */
3105
+ disabled?: boolean;
3106
+ /**
3107
+ * Initial value of the textarea, only when it is uncontrolled.
3108
+ */
3109
+ defaultValue?: string;
3110
+ /**
3111
+ * If it is a defined value and also a truthy string, the component will
3112
+ * change its appearance, showing the error below the textarea. If the
3113
+ * defined value is an empty string, it will reserve a space below the
3114
+ * component for a future error, but it would not change its look. In
3115
+ * case of being undefined or null, both the appearance and the space for
3116
+ * the error message would not be modified.
3117
+ */
3118
+ error?: string;
3119
+ /**
3120
+ * Helper text to be placed above the textarea.
3121
+ */
3122
+ helperText?: string;
3123
+ /**
3124
+ * Text to be placed above the textarea.
3125
+ */
3126
+ label?: string;
3127
+ /**
3128
+ * Specifies the maximum length allowed by the textarea.
3129
+ * This will be checked both when the textarea loses the
3130
+ * focus and while typing within it. If the string entered does not
3131
+ * comply the maximum length, the onBlur and onChange functions will be called
3132
+ * with the current value and an internal error informing that the value
3133
+ * length does not comply the specified range. If a valid length is
3134
+ * reached, the error parameter of both events will not be defined.
3135
+ */
3136
+ maxLength?: number;
3137
+ /**
3138
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3139
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3140
+ */
3141
+ margin?: Space$1 | Margin;
3142
+ /**
3143
+ * Specifies the minimum length allowed by the textarea.
3144
+ * This will be checked both when the textarea loses the
3145
+ * focus and while typing within it. If the string entered does not
3146
+ * comply the minimum length, the onBlur and onChange functions will be called
3147
+ * with the current value and an internal error informing that the value
3148
+ * length does not comply the specified range. If a valid length is
3149
+ * reached, the error parameter of both events will not be defined.
3150
+ */
3151
+ minLength?: number;
3152
+ /**
3153
+ * Name attribute of the textarea element.
3154
+ */
3155
+ name?: string;
3156
+ /**
3157
+ * This function will be called when the textarea loses the focus. An
3158
+ * object including the textarea value and the error (if the value entered
3159
+ * is not valid) will be passed to this function. If there is no error,
3160
+ * error will not be defined.
3161
+ */
3162
+ onBlur?: (val: {
3163
+ value: string;
3164
+ error?: string;
3165
+ }) => void;
3166
+ /**
3167
+ * This function will be called when the user types within the textarea.
3168
+ * An object including the current value and the error (if the value
3169
+ * entered is not valid) will be passed to this function.
3170
+ * If there is no error, error will not be defined.
3171
+ */
3172
+ onChange?: (val: {
3173
+ value: string;
3174
+ error?: string;
3175
+ }) => void;
3176
+ /**
3177
+ * If true, the textarea will be optional, showing '(Optional)'
3178
+ * next to the label. Otherwise, the field will be considered required
3179
+ * and an error will be passed as a parameter to the OnBlur and onChange functions
3180
+ * when it has not been filled.
3181
+ */
3182
+ optional?: boolean;
3183
+ /**
3184
+ * Regular expression that defines the valid format allowed by the
3185
+ * textarea. This will be checked both when the textarea loses the focus
3186
+ * and while typing within it. If the string entered does not match the
3187
+ * pattern, the onBlur and onChange functions will be called with the
3188
+ * current value and an internal error informing that this value does not
3189
+ * match the pattern. If the pattern is met, the error parameter of both
3190
+ * events will not be defined.
3191
+ */
3192
+ pattern?: string;
3193
+ /**
3194
+ * Text to be put as placeholder of the textarea.
3195
+ */
3196
+ placeholder?: string;
3197
+ /**
3198
+ * If true, the component will not be mutable, meaning the user can not edit the control.
3199
+ */
3200
+ readOnly?: boolean;
3201
+ /**
3202
+ * Number of rows of the textarea.
3203
+ */
3204
+ rows?: number;
3205
+ /**
3206
+ * Size of the component.
3207
+ */
3208
+ size?: "small" | "medium" | "large" | "fillParent";
3209
+ /**
3210
+ * Value of the tabindex attribute.
3211
+ */
3212
+ tabIndex?: number;
3213
+ /**
3214
+ * Value of the textarea. If undefined, the component will be uncontrolled and the value will be managed internally.
3215
+ */
3216
+ value?: string;
3217
+ /**
3218
+ * Defines the textarea's ability to resize vertically. It can be:
3219
+ * - 'auto': The textarea grows or shrinks automatically in order to fit the content.
3220
+ * - 'manual': The height of the textarea is enabled to be manually modified.
3221
+ * - 'none': The textarea has a fixed height and can't be modified.
3222
+ */
3223
+ verticalGrow?: "auto" | "manual" | "none";
3224
+ };
3225
+
3226
+ declare const DxcTextarea: react.ForwardRefExoticComponent<Props$5 & react.RefAttributes<HTMLDivElement>>;
3227
+
3228
+ type Action$1 = {
3229
+ /**
3230
+ * This function will be called when the user clicks the action.
3231
+ */
3232
+ onClick: () => void;
3233
+ /**
3234
+ * Icon to be placed in the action..
3235
+ */
3236
+ icon: string | SVG;
3237
+ /**
3238
+ * Text representing advisory information related
3239
+ * to the button's action. Under the hood, this prop also serves
3240
+ * as an accessible label for the component.
3241
+ */
3242
+ title?: string;
3243
+ };
3244
+ type Props$4 = {
3245
+ /**
3246
+ * Sets the alignment inside the input.
3247
+ */
3248
+ alignment?: "left" | "right";
3249
+ /**
3250
+ * Text to be placed above the input. This label will be used as the aria-label attribute of the list of suggestions.
3251
+ */
3252
+ label?: string;
3253
+ /**
3254
+ * Name attribute of the input element.
3255
+ */
3256
+ name?: string;
3257
+ /**
3258
+ * Initial value of the input, only when it is uncontrolled.
3259
+ */
3260
+ defaultValue?: string;
3261
+ /**
3262
+ * Value of the input. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
3263
+ */
3264
+ value?: string;
3265
+ /**
3266
+ * Helper text to be placed above the input.
3267
+ */
3268
+ helperText?: string;
3269
+ /**
3270
+ * Text to be put as placeholder of the input.
3271
+ */
3272
+ placeholder?: string;
3273
+ /**
3274
+ * Action to be shown in the input.
3275
+ */
3276
+ action?: Action$1;
3277
+ /**
3278
+ * If true, the input will have an action to clear the entered value.
3279
+ */
3280
+ clearable?: boolean;
3281
+ /**
3282
+ * If true, the component will be disabled.
3283
+ */
3284
+ disabled?: boolean;
3285
+ /**
3286
+ * If true, the component will not be mutable, meaning the user can not edit the control.
3287
+ * In addition, the clear action will not be displayed even if the flag is set to true
3288
+ * and the custom action will not execute its onClick event.
3289
+ */
3290
+ readOnly?: boolean;
3291
+ /**
3292
+ * If true, the input will be optional, showing '(Optional)'
3293
+ * next to the label. Otherwise, the field will be considered required and an error will be
3294
+ * passed as a parameter to the OnBlur and onChange functions when it has
3295
+ * not been filled.
3296
+ */
3297
+ optional?: boolean;
3298
+ /**
3299
+ * Prefix to be placed before the input value.
3300
+ */
3301
+ prefix?: string;
3302
+ /**
3303
+ * Suffix to be placed after the input value.
3304
+ */
3305
+ suffix?: string;
3306
+ /**
3307
+ * This function will be called when the user types within the input
3308
+ * element of the component. An object including the current value and
3309
+ * the error (if the value entered is not valid) will be passed to this
3310
+ * function. If there is no error, error will not be defined.
3311
+ */
3312
+ onChange?: (val: {
3313
+ value: string;
3314
+ error?: string;
3315
+ }) => void;
3316
+ /**
3317
+ * This function will be called when the input element loses the focus.
3318
+ * An object including the input value and the error (if the value
3319
+ * entered is not valid) will be passed to this function. If there is no error,
3320
+ * error will not be defined.
3321
+ */
3322
+ onBlur?: (val: {
3323
+ value: string;
3324
+ error?: string;
3325
+ }) => void;
3326
+ /**
3327
+ * If it is a defined value and also a truthy string, the component will
3328
+ * change its appearance, showing the error below the input component. If
3329
+ * the defined value is an empty string, it will reserve a space below
3330
+ * the component for a future error, but it would not change its look. In
3331
+ * case of being undefined or null, both the appearance and the space for
3332
+ * the error message would not be modified.
3333
+ */
3334
+ error?: string;
3335
+ /**
3336
+ * These are the options to be displayed as suggestions. It can be either an array or a function:
3337
+ * - Array: Array of options that will be filtered by the component.
3338
+ * - Function: This function will be called when the user changes the value.
3339
+ * It will receive the new value as a parameter and should return a promise
3340
+ * that resolves to an array with the filtered options.
3341
+ */
3342
+ suggestions?: string[] | ((value: string) => Promise<string[]>);
3343
+ /**
3344
+ * Regular expression that defines the valid format allowed by the input.
3345
+ * This will be checked both when the input element loses the focus and
3346
+ * while typing within it. If the string entered does not match the
3347
+ * pattern, the onBlur and onChange functions will be called with the
3348
+ * current value and an internal error informing that this value does not
3349
+ * match the pattern. If the pattern is met, the error parameter of both
3350
+ * events will not be defined.
3351
+ */
3352
+ pattern?: string;
3353
+ /**
3354
+ * Specifies the minimum length allowed by the input.
3355
+ * This will be checked both when the input element loses the
3356
+ * focus and while typing within it. If the string entered does not
3357
+ * comply the minimum length, the onBlur and onChange functions will be called
3358
+ * with the current value and an internal error informing that the value
3359
+ * length does not comply the specified range. If a valid length is
3360
+ * reached, the error parameter of both events will not be defined.
3361
+ */
3362
+ minLength?: number;
3363
+ /**
3364
+ * Specifies the maximum length allowed by the input.
3365
+ * This will be checked both when the input element loses the
3366
+ * focus and while typing within it. If the string entered does not
3367
+ * comply the maximum length, the onBlur and onChange functions will be called
3368
+ * with the current value and an internal error informing that the value
3369
+ * length does not comply the specified range. If a valid length is
3370
+ * reached, the error parameter of both events will not be defined.
3371
+ */
3372
+ maxLength?: number;
3373
+ /**
3374
+ * HTML autocomplete attribute. Lets the user specify if any permission the user agent has to provide automated assistance in filling out the input value.
3375
+ * Its value must be one of all the possible values of the HTML autocomplete attribute: 'on', 'off', 'email', 'username', 'new-password', ...
3376
+ */
3377
+ autocomplete?: string;
3378
+ /**
3379
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3380
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3381
+ */
3382
+ margin?: Space$1 | Margin;
3383
+ /**
3384
+ * Size of the component.
3385
+ */
3386
+ size?: "small" | "medium" | "large" | "fillParent";
3387
+ /**
3388
+ * Value of the tabindex attribute.
3389
+ */
3390
+ tabIndex?: number;
3391
+ /**
3392
+ * Specifies a string to be used as the name for the textInput element when no `label` is provided.
3393
+ */
3394
+ ariaLabel?: string;
3395
+ };
3396
+
3397
+ declare const DxcTextInput: react.ForwardRefExoticComponent<Props$4 & react.RefAttributes<HTMLDivElement>>;
3398
+
3399
+ type Action = {
3400
+ /**
3401
+ * The icon of the action. It can be a string with the name of the icon or an SVG component.
3402
+ */
3403
+ icon?: string | SVG;
3404
+ /**
3405
+ * The label of the action.
3406
+ */
3407
+ label: string;
3408
+ /**
3409
+ * The function that will be executed when the user clicks on the action button.
3410
+ */
3411
+ onClick: () => void;
3412
+ };
3413
+ type CommonProps$1 = {
3414
+ /**
3415
+ * Tertiary button which performs a custom action, specified by the user.
3416
+ */
3417
+ action?: Action;
3418
+ /**
3419
+ * Message to be displayed as a toast.
3420
+ */
3421
+ message: string;
3422
+ };
3423
+ type DefaultToast = CommonProps$1 & {
3424
+ /**
3425
+ * Material Symbol name or SVG element as the icon that will be placed next to the panel label.
3426
+ * When using Material Symbols, replace spaces with underscores.
3427
+ * By default they are outlined if you want it to be filled prefix the symbol name with "filled_".
3428
+ */
3429
+ icon?: string | SVG;
3430
+ };
3431
+ type LoadingToast = CommonProps$1 & {
3432
+ loading: boolean;
3433
+ };
3434
+ type SemanticToast = CommonProps$1 & {
3435
+ /**
3436
+ * Flag that allows to hide the semantic icon of the toast.
3437
+ */
3438
+ hideSemanticIcon?: boolean;
3439
+ };
3440
+ type ToastsQueuePropsType = {
3441
+ /**
3442
+ * Tree of components from which the useToast hook can be triggered.
3443
+ */
3444
+ children: ReactNode;
3445
+ /**
3446
+ * Duration in milliseconds before a toast automatically hides itself.
3447
+ * The range goes from 3000ms to 5000ms, any other value will not be taken into consideration.
3448
+ */
3449
+ duration?: number;
3450
+ };
3451
+
3452
+ declare function DxcToastsQueue({ children, duration }: ToastsQueuePropsType): react_jsx_runtime.JSX.Element;
3453
+
3454
+ type OptionIcon = {
3455
+ /**
3456
+ * Material Symbols icon or SVG element. Icon and label can't be used at same time.
3457
+ */
3458
+ icon: string | SVG;
3459
+ /**
3460
+ * String with the option display value.
3461
+ */
3462
+ label?: never;
3463
+ /**
3464
+ * Value for the HTML properties title and aria-label.
3465
+ * When a label is defined, this prop can not be use.
3466
+ */
3467
+ title: string;
3468
+ };
3469
+ type OptionLabel = {
3470
+ /**
3471
+ * Material Symbols icon or SVG element. Icon and label can't be used at same time.
3472
+ */
3473
+ icon?: string | SVG;
3474
+ /**
3475
+ * String with the option display value.
3476
+ */
3477
+ label: string;
3478
+ /**
3479
+ * Value for the HTML properties title and aria-label.
3480
+ * When a label is defined, this prop can not be use.
3481
+ */
3482
+ title?: never;
3483
+ };
3484
+ type Option = {
3485
+ /**
3486
+ * If true, the option will be disabled.
3487
+ */
3488
+ disabled?: boolean;
3489
+ /**
3490
+ * Number with the option inner value.
3491
+ */
3492
+ value: number;
3493
+ } & (OptionIcon | OptionLabel);
3494
+ type CommonProps = {
3495
+ /**
3496
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3497
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3498
+ */
3499
+ margin?: Space$1 | Margin;
3500
+ /**
3501
+ * An array of objects representing the selectable options.
3502
+ */
3503
+ options: Option[];
3504
+ /**
3505
+ * The orientation of the toggle group.
3506
+ */
3507
+ orientation?: "horizontal" | "vertical";
3508
+ /**
3509
+ * Value of the tabindex.
3510
+ */
3511
+ tabIndex?: number;
3512
+ };
3513
+ type MultipleSelectionToggleGroup = {
3514
+ /**
3515
+ * The array of keys with the initially selected values.
3516
+ */
3517
+ defaultValue?: number[];
3518
+ /**
3519
+ * If true, the toggle group will support multiple selection. In that case, value must be an array of numbers with the keys of the selected values.
3520
+ */
3521
+ multiple: true;
3522
+ /**
3523
+ * This function will be called every time the selection changes. An array with the key of
3524
+ * the selected values will be passed as a parameter to this function.
3525
+ */
3526
+ onChange?: (optionIndex: number[]) => void;
3527
+ /**
3528
+ * An array with the keys of the selected values.
3529
+ * If undefined, the component will be uncontrolled and the value will be managed internally by the component.
3530
+ */
3531
+ value?: number[];
3532
+ };
3533
+ type SingleSelectionToggleGroup = {
3534
+ /**
3535
+ * The key of the initially selected value.
3536
+ */
3537
+ defaultValue?: number;
3538
+ /**
3539
+ * If true, the toggle group will support multiple selection. In that case, value must be an array of numbers with the keys of the selected values.
3540
+ */
3541
+ multiple?: false;
3542
+ /**
3543
+ * This function will be called every time the selection changes. The number with the key of the selected
3544
+ * value will be passed as a parameter to this function.
3545
+ */
3546
+ onChange?: (optionIndex: number) => void;
3547
+ /**
3548
+ * The key of the selected value. If the component allows multiple selection, value must be an array.
3549
+ * If undefined, the component will be uncontrolled and the value will be managed internally by the component.
3550
+ */
3551
+ value?: number;
3552
+ };
3553
+ type Props$3 = CommonProps & (MultipleSelectionToggleGroup | SingleSelectionToggleGroup);
3554
+
3555
+ declare function DxcToggleGroup({ defaultValue, margin, multiple, onChange, options, orientation, tabIndex, value, }: Props$3): react_jsx_runtime.JSX.Element;
3556
+
3557
+ type Props$2 = {
3558
+ /**
3559
+ * Content in which the Tooltip will be displayed.
3560
+ */
3561
+ children: ReactNode;
3562
+ /**
3563
+ * Text to be displayed inside the tooltip.
3564
+ */
3565
+ label?: string;
3566
+ /**
3567
+ * Preferred position for displaying the tooltip. It may adjust automatically based on available space.
3568
+ */
3569
+ position?: "bottom" | "top" | "left" | "right";
3570
+ };
3571
+
3572
+ declare function DxcTooltip(props: Props$2): react_jsx_runtime.JSX.Element;
3573
+
3574
+ type Props$1 = {
3575
+ as?: "a" | "blockquote" | "cite" | "code" | "div" | "em" | "figcaption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "pre" | "small" | "span" | "strong";
3576
+ children: ReactNode;
3577
+ color?: string;
3578
+ display?: "inline" | "block";
3579
+ fontFamily?: string;
3580
+ fontSize?: string;
3581
+ fontStyle?: "italic" | "normal";
3582
+ fontWeight?: string;
3583
+ letterSpacing?: string;
3584
+ lineHeight?: string;
3585
+ textAlign?: "left" | "center" | "right";
3586
+ textDecoration?: "none" | "underline" | "line-through";
3587
+ textOverflow?: "clip" | "ellipsis" | "unset";
3588
+ whiteSpace?: "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap";
3589
+ };
3590
+
3591
+ declare function DxcTypography({ children, ...props }: Props$1): react_jsx_runtime.JSX.Element;
3592
+
3593
+ type StepProps = {
3594
+ /**
3595
+ * Step label.
3596
+ */
3597
+ label: string;
3598
+ /**
3599
+ * Description that will be placed next to the step.
3600
+ */
3601
+ description?: string;
3602
+ /**
3603
+ * Material Symbol name or SVG element used as the icon displayed in the step.
3604
+ */
3605
+ icon?: string | SVG;
3606
+ /**
3607
+ * Whether the step is disabled or not.
3608
+ */
3609
+ disabled?: boolean;
3610
+ /**
3611
+ * Whether the step is valid or not.
3612
+ */
3613
+ valid?: boolean;
3614
+ };
3615
+ type Props = {
3616
+ /**
3617
+ * The wizard can be shown in horizontal or vertical.
3618
+ */
3619
+ mode?: "horizontal" | "vertical";
3620
+ /**
3621
+ * Initially selected step, only when it is uncontrolled.
3622
+ */
3623
+ defaultCurrentStep?: number;
3624
+ /**
3625
+ * Defines which step is marked as the current. The numeration starts at 0.
3626
+ */
3627
+ currentStep?: number;
3628
+ /**
3629
+ * This function will be called when the user clicks a step. The step
3630
+ * number will be passed as a parameter.
3631
+ */
3632
+ onStepClick?: (currentStep: number) => void;
3633
+ /**
3634
+ * An array of objects representing the steps.
3635
+ */
3636
+ steps: StepProps[];
3637
+ /**
3638
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3639
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3640
+ */
3641
+ margin?: Space$1 | Margin;
3642
+ /**
3643
+ * Value of the tabindex attribute that is given to all the steps.
3644
+ */
3645
+ tabIndex?: number;
3646
+ };
3647
+
3648
+ declare function DxcWizard({ currentStep, defaultCurrentStep, margin, mode, onStepClick, steps, tabIndex, }: Props): react_jsx_runtime.JSX.Element;
3649
+
3650
+ declare const defaultTranslatedComponentLabels: {
3651
+ applicationLayout: {
3652
+ visibilityToggleTitle: string;
3653
+ };
3654
+ alert: {
3655
+ previousMessageActionTitle: string;
3656
+ nextMessageActionTitle: string;
3657
+ closeAlertActionTitle: string;
3658
+ closeMessageActionTitle: string;
3659
+ };
3660
+ calendar: {
3661
+ daysShort: string[];
3662
+ months: string[];
3663
+ previousMonthTitle: string;
3664
+ nextMonthTitle: string;
3665
+ };
3666
+ dateInput: {
3667
+ invalidDateErrorMessage: string;
3668
+ };
3669
+ dialog: {
3670
+ closeIconAriaLabel: string;
3671
+ };
3672
+ fileInput: {
3673
+ fileSizeGreaterThanErrorMessage: string;
3674
+ fileSizeLessThanErrorMessage: string;
3675
+ multipleButtonLabelDefault: string;
3676
+ singleButtonLabelDefault: string;
3677
+ dropAreaButtonLabelDefault: string;
3678
+ multipleDropAreaLabelDefault: string;
3679
+ singleDropAreaLabelDefault: string;
3680
+ deleteFileActionTitle: string;
3681
+ };
3682
+ footer: {
3683
+ copyrightText: (year: number) => string;
3684
+ };
3685
+ formFields: {
3686
+ optionalLabel: string;
3687
+ requiredSelectionErrorMessage: string;
3688
+ requiredValueErrorMessage: string;
3689
+ formatRequestedErrorMessage: string;
3690
+ lengthErrorMessage: (minLength?: number, maxLength?: number) => string;
3691
+ logoAlternativeText: string;
3692
+ };
3693
+ header: {
3694
+ closeIcon: string;
3695
+ hamburgerTitle: string;
3696
+ };
3697
+ numberInput: {
3698
+ valueGreaterThanOrEqualToErrorMessage: (value: number) => string;
3699
+ valueLessThanOrEqualToErrorMessage: (value: number) => string;
3700
+ decrementValueTitle: string;
3701
+ incrementValueTitle: string;
3702
+ };
3703
+ paginator: {
3704
+ itemsPerPageText: string;
3705
+ minToMaxOfText: (minNumberOfItems: number, maxNumberOfItems: number, totalItems: number) => string;
3706
+ goToPageText: string;
3707
+ pageOfText: (pageNumber: number, totalPagesNumber: number) => string;
3708
+ firstResultsTitle: string;
3709
+ previousResultsTitle: string;
3710
+ nextResultsTitle: string;
3711
+ lastResultsTitle: string;
3712
+ };
3713
+ passwordInput: {
3714
+ inputShowPasswordTitle: string;
3715
+ inputHidePasswordTitle: string;
3716
+ };
3717
+ quickNav: {
3718
+ contentTitle: string;
3719
+ };
3720
+ radioGroup: {
3721
+ optionalItemLabelDefault: string;
3722
+ };
3723
+ select: {
3724
+ actionClearSelectionTitle: string;
3725
+ actionClearSearchTitle: string;
3726
+ noMatchesErrorMessage: string;
3727
+ selectAllLabel: string;
3728
+ };
3729
+ tabs: {
3730
+ scrollLeft: string;
3731
+ scrollRight: string;
3732
+ };
3733
+ textInput: {
3734
+ clearFieldActionTitle: string;
3735
+ searchingMessage: string;
3736
+ fetchingDataErrorMessage: string;
3737
+ };
3738
+ toast: {
3739
+ clearToastActionTitle: string;
3740
+ };
3741
+ };
3742
+ type TranslatedLabels = typeof defaultTranslatedComponentLabels;
3743
+
3744
+ /**
3745
+ * This type is used to allow labels objects to be passed to the HalstackProvider.
3746
+ * This is an extension of the already existing Partial type, which only allows one level of partiality.
3747
+ */
3748
+ type DeepPartial<T> = {
3749
+ [P in keyof T]?: Partial<T[P]>;
3750
+ };
3751
+ declare const HalstackLanguageContext: react.Context<{
3752
+ applicationLayout: {
3753
+ visibilityToggleTitle: string;
3754
+ };
3755
+ alert: {
3756
+ previousMessageActionTitle: string;
3757
+ nextMessageActionTitle: string;
3758
+ closeAlertActionTitle: string;
3759
+ closeMessageActionTitle: string;
3760
+ };
3761
+ calendar: {
3762
+ daysShort: string[];
3763
+ months: string[];
3764
+ previousMonthTitle: string;
3765
+ nextMonthTitle: string;
3766
+ };
3767
+ dateInput: {
3768
+ invalidDateErrorMessage: string;
3769
+ };
3770
+ dialog: {
3771
+ closeIconAriaLabel: string;
3772
+ };
3773
+ fileInput: {
3774
+ fileSizeGreaterThanErrorMessage: string;
3775
+ fileSizeLessThanErrorMessage: string;
3776
+ multipleButtonLabelDefault: string;
3777
+ singleButtonLabelDefault: string;
3778
+ dropAreaButtonLabelDefault: string;
3779
+ multipleDropAreaLabelDefault: string;
3780
+ singleDropAreaLabelDefault: string;
3781
+ deleteFileActionTitle: string;
3782
+ };
3783
+ footer: {
3784
+ copyrightText: (year: number) => string;
3785
+ };
3786
+ formFields: {
3787
+ optionalLabel: string;
3788
+ requiredSelectionErrorMessage: string;
3789
+ requiredValueErrorMessage: string;
3790
+ formatRequestedErrorMessage: string;
3791
+ lengthErrorMessage: (minLength?: number, maxLength?: number) => string;
3792
+ logoAlternativeText: string;
3793
+ };
3794
+ header: {
3795
+ closeIcon: string;
3796
+ hamburgerTitle: string;
3797
+ };
3798
+ numberInput: {
3799
+ valueGreaterThanOrEqualToErrorMessage: (value: number) => string;
3800
+ valueLessThanOrEqualToErrorMessage: (value: number) => string;
3801
+ decrementValueTitle: string;
3802
+ incrementValueTitle: string;
3803
+ };
3804
+ paginator: {
3805
+ itemsPerPageText: string;
3806
+ minToMaxOfText: (minNumberOfItems: number, maxNumberOfItems: number, totalItems: number) => string;
3807
+ goToPageText: string;
3808
+ pageOfText: (pageNumber: number, totalPagesNumber: number) => string;
3809
+ firstResultsTitle: string;
3810
+ previousResultsTitle: string;
3811
+ nextResultsTitle: string;
3812
+ lastResultsTitle: string;
3813
+ };
3814
+ passwordInput: {
3815
+ inputShowPasswordTitle: string;
3816
+ inputHidePasswordTitle: string;
3817
+ };
3818
+ quickNav: {
3819
+ contentTitle: string;
3820
+ };
3821
+ radioGroup: {
3822
+ optionalItemLabelDefault: string;
3823
+ };
3824
+ select: {
3825
+ actionClearSelectionTitle: string;
3826
+ actionClearSearchTitle: string;
3827
+ noMatchesErrorMessage: string;
3828
+ selectAllLabel: string;
3829
+ };
3830
+ tabs: {
3831
+ scrollLeft: string;
3832
+ scrollRight: string;
3833
+ };
3834
+ textInput: {
3835
+ clearFieldActionTitle: string;
3836
+ searchingMessage: string;
3837
+ fetchingDataErrorMessage: string;
3838
+ };
3839
+ toast: {
3840
+ clearToastActionTitle: string;
3841
+ };
3842
+ }>;
3843
+ type HalstackProviderPropsType = {
3844
+ labels?: DeepPartial<TranslatedLabels>;
3845
+ children: ReactNode;
3846
+ };
3847
+ declare const HalstackProvider: ({ labels, children }: HalstackProviderPropsType) => JSX.Element;
3848
+
3849
+ declare function useToast(): {
3850
+ default: (toast: DefaultToast) => (() => void) | undefined;
3851
+ success: (toast: SemanticToast) => (() => void) | undefined;
3852
+ warning: (toast: SemanticToast) => (() => void) | undefined;
3853
+ info: (toast: SemanticToast) => (() => void) | undefined;
3854
+ loading: (toast: Omit<LoadingToast, "loading">) => (() => void) | undefined;
3855
+ };
3856
+
3857
+ export { DxcAccordion, DxcAlert, DxcApplicationLayout, DxcBadge, DxcBleed, DxcBreadcrumbs, DxcBulletedList, DxcButton, DxcCard, DxcCheckbox, DxcChip, DxcContainer, DxcContextualMenu, DxcDataGrid, DxcDateInput, DxcDialog, DxcDivider, DxcDropdown, DxcFileInput, DxcFlex, DxcGrid, DxcHeading, DxcImage, DxcInset, DxcLink, DxcNavTabs, DxcNumberInput, DxcPaginator, DxcParagraph, DxcPasswordInput, DxcProgressBar, DxcQuickNav, DxcRadioGroup, DxcResultsetTable, DxcSelect, DxcSlider, DxcSpinner, DxcStatusLight, DxcSwitch, DxcTable, DxcTabs, DxcTextInput, DxcTextarea, DxcToastsQueue, DxcToggleGroup, DxcTooltip, DxcTypography, DxcWizard, HalstackLanguageContext, HalstackProvider, useToast };