@dxc-technology/halstack-react 0.0.0-da4b2be → 0.0.0-da56eb6

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