@dxc-technology/halstack-react 0.0.0-76d2ef0 → 0.0.0-77f5f9a

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 (197) hide show
  1. package/README.md +27 -47
  2. package/dist/index.d.mts +4862 -0
  3. package/dist/index.d.ts +4862 -0
  4. package/dist/index.js +19807 -0
  5. package/dist/index.mjs +19712 -0
  6. package/package.json +93 -64
  7. package/babel.config.js +0 -8
  8. package/dist/ThemeContext.js +0 -180
  9. package/dist/accordion/Accordion.js +0 -268
  10. package/dist/accordion/Accordion.stories.js +0 -207
  11. package/dist/accordion/readme.md +0 -96
  12. package/dist/accordion-group/AccordionGroup.js +0 -156
  13. package/dist/accordion-group/AccordionGroup.stories.js +0 -207
  14. package/dist/accordion-group/readme.md +0 -70
  15. package/dist/alert/Alert.js +0 -303
  16. package/dist/alert/Alert.stories.js +0 -158
  17. package/dist/alert/close.svg +0 -4
  18. package/dist/alert/error.svg +0 -4
  19. package/dist/alert/info.svg +0 -4
  20. package/dist/alert/readme.md +0 -43
  21. package/dist/alert/success.svg +0 -4
  22. package/dist/alert/warning.svg +0 -4
  23. package/dist/badge/Badge.js +0 -42
  24. package/dist/box/Box.js +0 -145
  25. package/dist/button/Button.js +0 -199
  26. package/dist/button/Button.stories.js +0 -224
  27. package/dist/button/readme.md +0 -93
  28. package/dist/card/Card.js +0 -217
  29. package/dist/checkbox/Checkbox.js +0 -229
  30. package/dist/checkbox/Checkbox.stories.js +0 -144
  31. package/dist/checkbox/readme.md +0 -116
  32. package/dist/chip/Chip.js +0 -205
  33. package/dist/common/OpenSans.css +0 -81
  34. package/dist/common/RequiredComponent.js +0 -40
  35. package/dist/common/fonts/OpenSans-Bold.ttf +0 -0
  36. package/dist/common/fonts/OpenSans-BoldItalic.ttf +0 -0
  37. package/dist/common/fonts/OpenSans-ExtraBold.ttf +0 -0
  38. package/dist/common/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
  39. package/dist/common/fonts/OpenSans-Italic.ttf +0 -0
  40. package/dist/common/fonts/OpenSans-Light.ttf +0 -0
  41. package/dist/common/fonts/OpenSans-LightItalic.ttf +0 -0
  42. package/dist/common/fonts/OpenSans-Regular.ttf +0 -0
  43. package/dist/common/fonts/OpenSans-SemiBold.ttf +0 -0
  44. package/dist/common/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
  45. package/dist/common/services/example-service.js +0 -10
  46. package/dist/common/services/example-service.test.js +0 -12
  47. package/dist/common/utils.js +0 -42
  48. package/dist/common/variables.js +0 -349
  49. package/dist/date/Date.js +0 -352
  50. package/dist/date/Date.stories.js +0 -205
  51. package/dist/date/calendar.svg +0 -1
  52. package/dist/date/calendar_dark.svg +0 -1
  53. package/dist/date/readme.md +0 -73
  54. package/dist/dialog/Dialog.js +0 -195
  55. package/dist/dialog/Dialog.stories.js +0 -217
  56. package/dist/dialog/readme.md +0 -32
  57. package/dist/dropdown/Dropdown.js +0 -446
  58. package/dist/dropdown/Dropdown.stories.js +0 -249
  59. package/dist/dropdown/baseline-arrow_drop_down.svg +0 -1
  60. package/dist/dropdown/baseline-arrow_drop_down_wh.svg +0 -4
  61. package/dist/dropdown/baseline-arrow_drop_up.svg +0 -1
  62. package/dist/dropdown/baseline-arrow_drop_up_wh.svg +0 -4
  63. package/dist/dropdown/readme.md +0 -69
  64. package/dist/footer/Footer.js +0 -366
  65. package/dist/footer/Footer.stories.js +0 -94
  66. package/dist/footer/dxc_logo_wht.png +0 -0
  67. package/dist/footer/readme.md +0 -41
  68. package/dist/header/Header.js +0 -368
  69. package/dist/header/Header.stories.js +0 -176
  70. package/dist/header/close_icon.svg +0 -1
  71. package/dist/header/dxc_logo_black.png +0 -0
  72. package/dist/header/dxc_logo_blk_rgb.svg +0 -6
  73. package/dist/header/dxc_logo_white.png +0 -0
  74. package/dist/header/hamb_menu_black.svg +0 -1
  75. package/dist/header/hamb_menu_white.svg +0 -1
  76. package/dist/header/readme.md +0 -33
  77. package/dist/heading/Heading.js +0 -153
  78. package/dist/input-text/InputText.js +0 -561
  79. package/dist/input-text/InputText.stories.js +0 -209
  80. package/dist/input-text/error.svg +0 -1
  81. package/dist/input-text/readme.md +0 -91
  82. package/dist/layout/ApplicationLayout.js +0 -330
  83. package/dist/layout/facebook.svg +0 -45
  84. package/dist/layout/linkedin.svg +0 -50
  85. package/dist/layout/twitter.svg +0 -53
  86. package/dist/link/Link.js +0 -187
  87. package/dist/link/readme.md +0 -51
  88. package/dist/main.js +0 -303
  89. package/dist/paginator/Paginator.js +0 -247
  90. package/dist/paginator/images/next.svg +0 -3
  91. package/dist/paginator/images/nextPage.svg +0 -3
  92. package/dist/paginator/images/previous.svg +0 -3
  93. package/dist/paginator/images/previousPage.svg +0 -3
  94. package/dist/paginator/readme.md +0 -50
  95. package/dist/progress-bar/ProgressBar.js +0 -184
  96. package/dist/progress-bar/ProgressBar.stories.js +0 -280
  97. package/dist/progress-bar/readme.md +0 -63
  98. package/dist/radio/Radio.js +0 -190
  99. package/dist/radio/Radio.stories.js +0 -166
  100. package/dist/radio/readme.md +0 -70
  101. package/dist/resultsetTable/ResultsetTable.js +0 -327
  102. package/dist/resultsetTable/arrow_downward-24px_wht.svg +0 -1
  103. package/dist/resultsetTable/arrow_upward-24px_wht.svg +0 -1
  104. package/dist/resultsetTable/unfold_more-24px_wht.svg +0 -1
  105. package/dist/select/Select.js +0 -475
  106. package/dist/select/Select.stories.js +0 -235
  107. package/dist/select/readme.md +0 -72
  108. package/dist/sidenav/Sidenav.js +0 -123
  109. package/dist/slider/Slider.js +0 -257
  110. package/dist/slider/Slider.stories.js +0 -241
  111. package/dist/slider/readme.md +0 -64
  112. package/dist/spinner/Spinner.js +0 -190
  113. package/dist/spinner/Spinner.stories.js +0 -183
  114. package/dist/spinner/readme.md +0 -65
  115. package/dist/switch/Switch.js +0 -190
  116. package/dist/switch/Switch.stories.js +0 -134
  117. package/dist/switch/readme.md +0 -133
  118. package/dist/table/Table.js +0 -102
  119. package/dist/tabs/Tabs.js +0 -302
  120. package/dist/tabs/Tabs.stories.js +0 -130
  121. package/dist/tabs/readme.md +0 -78
  122. package/dist/tabs-for-sections/TabsForSections.js +0 -92
  123. package/dist/tabs-for-sections/readme.md +0 -78
  124. package/dist/tag/Tag.js +0 -249
  125. package/dist/textarea/Textarea.js +0 -220
  126. package/dist/toggle/Toggle.js +0 -223
  127. package/dist/toggle/Toggle.stories.js +0 -297
  128. package/dist/toggle/readme.md +0 -80
  129. package/dist/toggle-group/ToggleGroup.js +0 -209
  130. package/dist/toggle-group/readme.md +0 -82
  131. package/dist/upload/Upload.js +0 -200
  132. package/dist/upload/Upload.stories.js +0 -72
  133. package/dist/upload/buttons-upload/ButtonsUpload.js +0 -122
  134. package/dist/upload/buttons-upload/drag-drop-icon.svg +0 -4
  135. package/dist/upload/buttons-upload/upload-button.svg +0 -1
  136. package/dist/upload/dragAndDropArea/DragAndDropArea.js +0 -279
  137. package/dist/upload/dragAndDropArea/upload_drop.svg +0 -4
  138. package/dist/upload/dragAndDropArea/upload_file.svg +0 -4
  139. package/dist/upload/file-upload/FileToUpload.js +0 -158
  140. package/dist/upload/file-upload/audio-icon.svg +0 -4
  141. package/dist/upload/file-upload/close.svg +0 -4
  142. package/dist/upload/file-upload/file-icon.svg +0 -4
  143. package/dist/upload/file-upload/video-icon.svg +0 -4
  144. package/dist/upload/files-upload/FilesToUpload.js +0 -123
  145. package/dist/upload/readme.md +0 -37
  146. package/dist/upload/transaction/Transaction.js +0 -155
  147. package/dist/upload/transaction/audio-icon-err.svg +0 -4
  148. package/dist/upload/transaction/audio-icon.svg +0 -4
  149. package/dist/upload/transaction/error-icon.svg +0 -4
  150. package/dist/upload/transaction/file-icon-err.svg +0 -4
  151. package/dist/upload/transaction/file-icon.svg +0 -4
  152. package/dist/upload/transaction/image-icon-err.svg +0 -4
  153. package/dist/upload/transaction/image-icon.svg +0 -4
  154. package/dist/upload/transaction/success-icon.svg +0 -4
  155. package/dist/upload/transaction/video-icon-err.svg +0 -4
  156. package/dist/upload/transaction/video-icon.svg +0 -4
  157. package/dist/upload/transactions/Transactions.js +0 -120
  158. package/dist/useTheme.js +0 -22
  159. package/dist/wizard/Wizard.js +0 -325
  160. package/dist/wizard/invalid_icon.svg +0 -6
  161. package/dist/wizard/valid_icon.svg +0 -6
  162. package/dist/wizard/validation-wrong.svg +0 -6
  163. package/test/Accordion.test.js +0 -33
  164. package/test/AccordionGroup.test.js +0 -109
  165. package/test/Alert.test.js +0 -53
  166. package/test/Box.test.js +0 -10
  167. package/test/Button.test.js +0 -18
  168. package/test/Card.test.js +0 -30
  169. package/test/Checkbox.test.js +0 -45
  170. package/test/Chip.test.js +0 -25
  171. package/test/Date.test.js +0 -393
  172. package/test/Dialog.test.js +0 -23
  173. package/test/Dropdown.test.js +0 -130
  174. package/test/Footer.test.js +0 -99
  175. package/test/Header.test.js +0 -39
  176. package/test/Heading.test.js +0 -35
  177. package/test/InputText.test.js +0 -240
  178. package/test/Link.test.js +0 -42
  179. package/test/Paginator.test.js +0 -177
  180. package/test/ProgressBar.test.js +0 -35
  181. package/test/Radio.test.js +0 -37
  182. package/test/ResultsetTable.test.js +0 -330
  183. package/test/Select.test.js +0 -192
  184. package/test/Sidenav.test.js +0 -45
  185. package/test/Slider.test.js +0 -82
  186. package/test/Spinner.test.js +0 -27
  187. package/test/Switch.test.js +0 -45
  188. package/test/Table.test.js +0 -36
  189. package/test/Tabs.test.js +0 -109
  190. package/test/TabsForSections.test.js +0 -34
  191. package/test/Tag.test.js +0 -32
  192. package/test/TextArea.test.js +0 -52
  193. package/test/ToggleGroup.test.js +0 -81
  194. package/test/Upload.test.js +0 -60
  195. package/test/Wizard.test.js +0 -130
  196. package/test/mocks/pngMock.js +0 -1
  197. package/test/mocks/svgMock.js +0 -1
@@ -0,0 +1,4862 @@
1
+ import * as react from 'react';
2
+ import react__default, { ReactElement, ReactNode, JSX, Ref, ReactEventHandler } from 'react';
3
+ import { SortColumn } from 'react-data-grid';
4
+ import * as _emotion_styled from '@emotion/styled';
5
+ import * as _emotion_react from '@emotion/react';
6
+
7
+ type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
8
+ type Margin = {
9
+ top?: Space;
10
+ bottom?: Space;
11
+ left?: Space;
12
+ right?: Space;
13
+ };
14
+ type SVG = react__default.ReactNode & react__default.SVGProps<SVGSVGElement>;
15
+ type Size$1 = "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
16
+ type Shape = "circle" | "square";
17
+ type Color = "primary" | "secondary" | "tertiary" | "success" | "info" | "neutral" | "warning" | "error";
18
+ type Mode = "default" | "info" | "success" | "warning" | "error";
19
+ type Action$1 = {
20
+ /**
21
+ * This function will be called when the user clicks the action.
22
+ */
23
+ onClick: () => void;
24
+ /**
25
+ * Icon to be placed in the action..
26
+ */
27
+ icon: string | SVG;
28
+ /**
29
+ * Text representing advisory information related
30
+ * to the button's action. Under the hood, this prop also serves
31
+ * as an accessible label for the component.
32
+ */
33
+ title?: string;
34
+ };
35
+ /**
36
+ * Utility type to make complex types more readable in TypeScript.
37
+ */
38
+ type PrettifyTypes<T> = {
39
+ [K in keyof T]: T[K];
40
+ } & {};
41
+
42
+ type AccordionItemProps = {
43
+ /**
44
+ * The panel label.
45
+ */
46
+ label: string;
47
+ /**
48
+ * Additional info label positioned under the label.
49
+ */
50
+ subLabel?: string;
51
+ /**
52
+ * Badge component to add extra value to the accordion.
53
+ */
54
+ badge?: {
55
+ position: "before" | "after";
56
+ element: ReactNode;
57
+ };
58
+ /**
59
+ * Status light component to add extra value to the accordion.
60
+ */
61
+ statusLight?: ReactNode;
62
+ /**
63
+ * Material Symbol name or SVG element used as the icon that will be
64
+ * placed next to panel label. When using Material Symbols, replace spaces with underscores.
65
+ * By default they are outlined if you want it to be filled
66
+ * prefix the symbol name with "filled_".
67
+ */
68
+ icon?: string | SVG;
69
+ /**
70
+ * Assistive text to be placed on the right side of the panel.
71
+ */
72
+ assistiveText?: string;
73
+ /**
74
+ * If true, the component will be disabled.
75
+ */
76
+ disabled?: boolean;
77
+ /**
78
+ * The expanded panel of the accordion. This area can be used to render
79
+ * custom content.
80
+ */
81
+ children: ReactNode;
82
+ /**
83
+ * Value of the tabindex attribute.
84
+ */
85
+ tabIndex?: number;
86
+ };
87
+ type CommonProps$b = {
88
+ /**
89
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
90
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
91
+ */
92
+ margin?: Space | Margin;
93
+ /**
94
+ * Contains one or more accordion items.
95
+ */
96
+ children: ReactElement<AccordionItemProps>[] | ReactElement<AccordionItemProps>;
97
+ };
98
+ type IndependentProps = CommonProps$b & {
99
+ /**
100
+ * When true, limits the user to single-open section at a time. When false, multiple sections can be opened simultaneously.
101
+ */
102
+ independent: true;
103
+ /**
104
+ * Initially active accordion, only when it is uncontrolled.If the accordion is not independent,
105
+ * several accordions can be activated by default.
106
+ */
107
+ defaultIndexActive?: number;
108
+ /**
109
+ * The index of the active accordion. If undefined, the component will be uncontrolled and the active
110
+ * accordion will be managed internally by the component. If null, the component will be controlled and all
111
+ * accordions will be closed. If the accordion is not independent, several accordions can be activated.
112
+ */
113
+ indexActive?: number;
114
+ /**
115
+ * This function will be called when the user clicks on an accordion. The index of the clicked accordion will be passed as a parameter.
116
+ */
117
+ onActiveChange?: (index: number) => void;
118
+ };
119
+ type NonIndependentProps = CommonProps$b & {
120
+ /**
121
+ * When true, limits the user to single-open section at a time. When false, multiple sections can be opened simultaneously.
122
+ */
123
+ independent?: false;
124
+ /**
125
+ * Initially active accordion, only when it is uncontrolled. If the accordion is not independent,
126
+ * several accordions can be activated by default.
127
+ */
128
+ defaultIndexActive?: number[];
129
+ /**
130
+ * The index of the active accordion. If undefined, the component will be uncontrolled and the active
131
+ * accordion will be managed internally by the component. If null, the component will be controlled and all
132
+ * accordions will be closed. If the accordion is not independent, several accordions can be activated.
133
+ */
134
+ indexActive?: number[];
135
+ /**
136
+ * This function will be called when the user clicks on an accordion. The index of the clicked accordion will be passed as a parameter.
137
+ */
138
+ onActiveChange?: (index: number[]) => void;
139
+ };
140
+ type AccordionProps = PrettifyTypes<IndependentProps | NonIndependentProps>;
141
+
142
+ declare const DxcAccordion: {
143
+ (props: AccordionProps): JSX.Element;
144
+ AccordionItem: ({ label, subLabel, badge, statusLight, icon, assistiveText, disabled, children, tabIndex, }: AccordionItemProps) => JSX.Element;
145
+ };
146
+
147
+ type AlertAction = {
148
+ /**
149
+ * The icon of the action. It can be a string with the name of the icon or an SVG component.
150
+ */
151
+ icon?: string | SVG;
152
+ /**
153
+ * The label of the action.
154
+ */
155
+ label: string;
156
+ /**
157
+ * The function that will be executed when the user clicks on the action button.
158
+ */
159
+ onClick: () => void;
160
+ };
161
+ type AlertMessage = {
162
+ /**
163
+ * The function that will be executed when the user clicks on the close action button.
164
+ */
165
+ onClose?: () => void;
166
+ /**
167
+ * The content of the message. The only Halstack component allowed within the text of an alert is the Link component,
168
+ * and it should be used exclusively to direct users to additional resources or relevant pages.
169
+ * No other components are permitted within the content of an alert.
170
+ */
171
+ text: ReactNode;
172
+ };
173
+ type CommonProps$a = {
174
+ /**
175
+ * If true, the alert will have a close button that will remove the message from the alert,
176
+ * only in banner and inline modes. The rest of the functionality will depend
177
+ * on the onClose event of each message (e.g. closing the modal alert).
178
+ */
179
+ closable?: boolean;
180
+ /**
181
+ * Primary action of the alert.
182
+ */
183
+ primaryAction?: AlertAction;
184
+ /**
185
+ * Secondary action of the alert.
186
+ */
187
+ secondaryAction?: AlertAction;
188
+ /**
189
+ * Specifies the semantic meaning of the alert.
190
+ */
191
+ semantic?: "error" | "info" | "success" | "warning";
192
+ /**
193
+ * Title of the alert.
194
+ */
195
+ title: string;
196
+ };
197
+ type ModeSpecificProps = {
198
+ /**
199
+ * List of messages to be displayed. Each message has a close action that will,
200
+ * apart from remove from the alert the current message, call the onClose if it is defined.
201
+ * If the message is an array, the alert will show a navigation bar to move between the messages.
202
+ * The modal mode only allows one message per alert. In this case, the message must be an object
203
+ * and the presence of the onClose attribute is mandatory, since the management of the closing
204
+ * of the alert relies completely on the user.
205
+ */
206
+ message?: AlertMessage | AlertMessage[];
207
+ /**
208
+ * The mode of the alert.
209
+ */
210
+ mode?: "inline" | "banner";
211
+ } | {
212
+ /**
213
+ * List of messages to be displayed. Each message has a close action that will,
214
+ * apart from remove from the alert the current message, call the onClose if it is defined.
215
+ * If the message is an array, the alert will show a navigation bar to move between the messages.
216
+ * The modal mode only allows one message per alert. In this case, the message must be an object
217
+ * and the presence of the onClose attribute is mandatory, since the management of the closing
218
+ * of the alert relies completely on the user.
219
+ */
220
+ message: Required<AlertMessage>;
221
+ /**
222
+ * The mode of the alert.
223
+ */
224
+ mode: "modal";
225
+ };
226
+ type AlertProps = PrettifyTypes<CommonProps$a & ModeSpecificProps>;
227
+
228
+ declare const DxcAlert: ({ closable, message, mode, primaryAction, secondaryAction, semantic, title, }: AlertProps) => react.JSX.Element;
229
+
230
+ type AppLayoutMainProps = {
231
+ /**
232
+ * Everything between the tags will be displayed as the content of the main part of the application.
233
+ */
234
+ children: ReactNode;
235
+ };
236
+ type AppLayoutLogo = {
237
+ /**
238
+ * Alternative text for the logo image.
239
+ */
240
+ alt: string;
241
+ /**
242
+ * URL to navigate when the logo is clicked.
243
+ */
244
+ href?: string;
245
+ /**
246
+ * Function to be called on logo click.
247
+ */
248
+ onClick?: () => void;
249
+ /**
250
+ * URL or SVG of the image that will be placed in the logo.
251
+ */
252
+ src: string | SVG;
253
+ };
254
+ type AppLayoutSidenavProps = {
255
+ /**
256
+ * The area inside the sidenav. This area can be used to render the content inside the sidenav.
257
+ */
258
+ children: ReactNode;
259
+ /**
260
+ * The area assigned to render the sidenav title. It is highly recommended to use the sidenav title.
261
+ */
262
+ title?: ReactNode;
263
+ };
264
+ type ApplicationLayoutProps = {
265
+ /**
266
+ * Logo properties.
267
+ */
268
+ logo?: AppLayoutLogo;
269
+ /**
270
+ * Header content.
271
+ */
272
+ header?: ReactNode;
273
+ /**
274
+ * Sidenav content
275
+ */
276
+ sidenav?: ReactNode;
277
+ /**
278
+ * Footer content
279
+ */
280
+ footer?: ReactNode;
281
+ /**
282
+ * Use the DxcApplicationLayout.Main provided to render main content.
283
+ */
284
+ children: ReactElement<AppLayoutMainProps>;
285
+ };
286
+
287
+ declare const DxcApplicationLayout: {
288
+ ({ logo, header, sidenav, footer, children }: ApplicationLayoutProps): JSX.Element;
289
+ Footer: ({ bottomLinks, copyright, leftContent, logo, mode, rightContent, socialLinks, variant, tabIndex, }: FooterProps) => JSX.Element;
290
+ Header: ({ appTitle, navItems, responsiveBottomContent, searchBar, sideContent, }: HeaderProps) => JSX.Element;
291
+ Main: ({ children }: AppLayoutMainProps) => JSX.Element;
292
+ Sidenav: ({ topContent, bottomContent, navItems, appTitle, displayGroupLines, expanded, defaultExpanded, onExpandedChange, searchBar, }: SidenavProps) => JSX.Element;
293
+ };
294
+
295
+ type AvatarStatus = {
296
+ mode: Mode;
297
+ position: "top" | "bottom";
298
+ };
299
+ type AvatarProps = {
300
+ /**
301
+ * Affects the visual style of the avatar. It can be used following semantic purposes or not.
302
+ */
303
+ color?: Color;
304
+ /**
305
+ * If true, the component will be disabled.
306
+ */
307
+ disabled?: boolean;
308
+ /**
309
+ * Material Symbol name or SVG element as the icon that will be placed as avatar.
310
+ */
311
+ icon?: string | SVG;
312
+ /**
313
+ * URL of the image.
314
+ */
315
+ imageSrc?: string;
316
+ /**
317
+ * Text label associated with the avatar.
318
+ * Used to generate and display initials inside the avatar.
319
+ */
320
+ label?: string;
321
+ /**
322
+ * Page to be opened when the user clicks on the link.
323
+ */
324
+ linkHref?: string;
325
+ /**
326
+ * This function will be called when the user clicks the avatar. Makes it behave as a button.
327
+ */
328
+ onClick?: () => void;
329
+ /**
330
+ * Text to be displayed as label next to the avatar.
331
+ */
332
+ primaryText?: string;
333
+ /**
334
+ * Ref to the avatar container element.
335
+ */
336
+ ref?: Ref<HTMLDivElement>;
337
+ /**
338
+ * Text to be displayed as sublabel next to the avatar.
339
+ */
340
+ secondaryText?: string;
341
+ /**
342
+ * This will determine if the avatar will be rounded square or a circle.
343
+ */
344
+ shape?: Shape;
345
+ /**
346
+ * Size of the component.
347
+ */
348
+ size?: Size$1;
349
+ /**
350
+ * Defines the color of the status indicator displayed on the avatar and where it will be placed.
351
+ * If not provided, no indicator will be rendered.
352
+ */
353
+ status?: AvatarStatus;
354
+ /**
355
+ * Value of the tabindex attribute. It will only apply when the onClick property is passed.
356
+ */
357
+ tabIndex?: number;
358
+ /**
359
+ * Text to be displayed inside a tooltip when hovering the avatar.
360
+ */
361
+ title?: string;
362
+ };
363
+
364
+ declare const DxcAvatar: ({ color, disabled, icon, imageSrc, label, linkHref, onClick, primaryText, ref, secondaryText, shape, size, status, tabIndex, title, }: AvatarProps) => react.JSX.Element;
365
+
366
+ type CommonProps$9 = {
367
+ /**
368
+ * Text representing advisory information related to the badge. Under the hood, this prop also serves as an accessible label for the component.
369
+ */
370
+ title?: string;
371
+ /**
372
+ * Material Symbol name or SVG element used as the icon that will be placed next to the badge label in contextual mode.
373
+ */
374
+ icon?: string | SVG;
375
+ /**
376
+ * Ref to be forwarded to the badge container element.
377
+ */
378
+ ref?: React.Ref<HTMLDivElement>;
379
+ /**
380
+ * Size of the component.
381
+ */
382
+ size?: "small" | "medium" | "large";
383
+ };
384
+ type ContextualBadgeProps = CommonProps$9 & {
385
+ /**
386
+ * Text to be placed in the badge.
387
+ */
388
+ label: string;
389
+ /**
390
+ * The available badge modes.
391
+ */
392
+ mode?: "contextual";
393
+ /**
394
+ * 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.
395
+ */
396
+ notificationLimit?: never;
397
+ /**
398
+ * Affects the visual style of the badge. It can be used following semantic purposes or not.
399
+ */
400
+ color?: Color;
401
+ };
402
+ type NotificationBadgeProps = CommonProps$9 & {
403
+ /**
404
+ * Text to be placed in the badge.
405
+ */
406
+ label?: number;
407
+ /**
408
+ * The available badge modes.
409
+ */
410
+ mode: "notification";
411
+ /**
412
+ * 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.
413
+ */
414
+ notificationLimit?: number;
415
+ /**
416
+ * Affects the visual style of the badge. It can be used following semantic purposes or not.
417
+ */
418
+ color?: never;
419
+ };
420
+ type BadgeProps = PrettifyTypes<ContextualBadgeProps> | PrettifyTypes<NotificationBadgeProps>;
421
+
422
+ declare const DxcBadge: ({ label, title, mode, color, icon, notificationLimit, ref, size, }: BadgeProps) => react.JSX.Element;
423
+
424
+ type BleedProps = {
425
+ /**
426
+ * Applies the spacing scale to all sides.
427
+ */
428
+ space?: string;
429
+ /**
430
+ * Applies the spacing scale to the left and right sides.
431
+ */
432
+ horizontal?: string;
433
+ /**
434
+ * Applies the spacing scale to the top and bottom sides.
435
+ */
436
+ vertical?: string;
437
+ /**
438
+ * Applies the spacing scale to the top side.
439
+ */
440
+ top?: string;
441
+ /**
442
+ * Applies the spacing scale to the right side.
443
+ */
444
+ right?: string;
445
+ /**
446
+ * Applies the spacing scale to the bottom side.
447
+ */
448
+ bottom?: string;
449
+ /**
450
+ * Applies the spacing scale to the left side.
451
+ */
452
+ left?: string;
453
+ /**
454
+ * Custom content inside the bleed.
455
+ */
456
+ children: ReactNode;
457
+ };
458
+
459
+ declare const DxcBleed: ({ space, horizontal, vertical, top, right, bottom, left, children }: BleedProps) => react.JSX.Element;
460
+
461
+ type BreadcrumbsItem = {
462
+ href?: string;
463
+ label: string;
464
+ };
465
+ type BreadcrumbsProps = {
466
+ /**
467
+ * Provides a label that describes the type of navigation enabled by
468
+ * the component.
469
+ */
470
+ ariaLabel?: string;
471
+ /**
472
+ * Array of objects representing the items of the breadcrumbs.
473
+ */
474
+ items: BreadcrumbsItem[];
475
+ /**
476
+ * Number of items before showing a collapsed version of the
477
+ * breadcrumbs. It can't be lower than two (root/collapsed action and
478
+ * current page).
479
+ */
480
+ itemsBeforeCollapse?: number;
481
+ /**
482
+ * Callback for custom navigation with third-party libraries such as
483
+ * Next ('useRouter') or React Router ('useNavigate').
484
+ * This function will be called when an item is clicked,
485
+ * receiving its 'href' as a parameter.
486
+ * @param href
487
+ * @returns
488
+ */
489
+ onItemClick?: (href: string) => void;
490
+ /**
491
+ * When items are collapsed, whether the root item should always be
492
+ * displayed or not.
493
+ */
494
+ showRoot?: boolean;
495
+ };
496
+ type BreadcrumbsItemProps = PrettifyTypes<BreadcrumbsItem & {
497
+ isCurrentPage?: boolean;
498
+ onClick?: (href: string) => void;
499
+ }>;
500
+
501
+ declare const DxcBreadcrumbs: ({ ariaLabel, items, itemsBeforeCollapse, onItemClick, showRoot, }: BreadcrumbsProps) => react.JSX.Element;
502
+
503
+ type BulletedListIconProps = {
504
+ /**
505
+ * Defines the style of the bullet point in the list.
506
+ */
507
+ type: "icon";
508
+ /**
509
+ * Icon to display as bullet.
510
+ */
511
+ icon: string | SVG;
512
+ /**
513
+ * Text to be shown in the list.
514
+ */
515
+ children: ReactNode;
516
+ };
517
+ type BulletedListWithoutIconProps = {
518
+ /**
519
+ * Defines the style of the bullet point in the list.
520
+ */
521
+ type?: "disc" | "circle" | "square" | "number";
522
+ /**
523
+ * Icon to display as bullet.
524
+ */
525
+ icon?: never;
526
+ /**
527
+ * Text to be shown in the list.
528
+ */
529
+ children: ReactNode;
530
+ };
531
+ type BulletedListProps = PrettifyTypes<BulletedListIconProps | BulletedListWithoutIconProps>;
532
+ type BulletedListItemProps = {
533
+ /**
534
+ * Text to be shown in the list.
535
+ */
536
+ children?: ReactNode;
537
+ };
538
+
539
+ declare const DxcBulletedList: {
540
+ ({ children, type, icon }: BulletedListProps): JSX.Element;
541
+ Item: ({ children }: BulletedListItemProps) => JSX.Element;
542
+ };
543
+
544
+ type ButtonSemantic = "default" | "error" | "warning" | "success" | "info";
545
+ type ButtonMode = "primary" | "secondary" | "tertiary";
546
+ type ButtonSize = {
547
+ /**
548
+ * Height of the button.
549
+ */
550
+ height?: "small" | "medium" | "large";
551
+ width?: "small" | "medium" | "large" | "fillParent" | "fitContent";
552
+ };
553
+ type ButtonProps = {
554
+ /**
555
+ * If true, the component will be disabled.
556
+ */
557
+ disabled?: boolean;
558
+ /**
559
+ * Material Symbol name or SVG element as the icon that will be placed next to the label.
560
+ */
561
+ icon?: string | SVG;
562
+ /**
563
+ * Whether the icon should appear after or before the label.
564
+ */
565
+ iconPosition?: "before" | "after";
566
+ /**
567
+ * Text to be placed in the button.
568
+ */
569
+ label?: string;
570
+ /**
571
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
572
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
573
+ */
574
+ margin?: Space | Margin;
575
+ /**
576
+ * The available button modes.
577
+ */
578
+ mode?: ButtonMode;
579
+ /**
580
+ * This function will be called when the user clicks the button.
581
+ */
582
+ onClick?: () => void;
583
+ /**
584
+ * ref to the button element.
585
+ */
586
+ ref?: React.Ref<HTMLButtonElement>;
587
+ /**
588
+ * Specifies the semantic meaning of the buttons, which determines its color.
589
+ */
590
+ semantic?: ButtonSemantic;
591
+ /**
592
+ * Size of the component.
593
+ */
594
+ size?: ButtonSize;
595
+ /**
596
+ * Value of the tabindex attribute.
597
+ */
598
+ tabIndex?: number;
599
+ /**
600
+ * Value for the HTML properties title and aria-label.
601
+ */
602
+ title?: string;
603
+ /**
604
+ * 'type' html prop of the button.
605
+ */
606
+ type?: "button" | "reset" | "submit";
607
+ };
608
+
609
+ declare const DxcButton: ({ disabled, icon, iconPosition, label, margin, mode, onClick, ref, semantic, size, tabIndex, title, type, }: ButtonProps) => react.JSX.Element;
610
+
611
+ type CommonProps$8 = {
612
+ /**
613
+ * If true, the link will be disabled.
614
+ */
615
+ disabled?: boolean;
616
+ /**
617
+ * Page to be opened when the user clicks on the link.
618
+ */
619
+ href: string;
620
+ /**
621
+ * Indicates the position of the icon in the component.
622
+ */
623
+ iconPosition?: "before" | "after";
624
+ /**
625
+ * The available button link modes.
626
+ */
627
+ mode?: ButtonMode;
628
+ /**
629
+ * If true, the page is opened in a new browser tab.
630
+ */
631
+ newWindow?: boolean;
632
+ /**
633
+ * If defined, the link will be displayed as a button. This
634
+ * function will be called when the user clicks the link.
635
+ */
636
+ onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
637
+ /**
638
+ * Ref of the link element.
639
+ */
640
+ ref?: React.Ref<HTMLAnchorElement>;
641
+ /**
642
+ * Size of the component.
643
+ */
644
+ size?: ButtonSize;
645
+ /**
646
+ * Value of the tabindex.
647
+ */
648
+ tabIndex?: number;
649
+ /**
650
+ * Text to be displayed as a tooltip when hovering over the link.
651
+ * If there is no aria-label or label, the title will be used as the aria-label.
652
+ */
653
+ title?: string;
654
+ };
655
+ type LabelProps = {
656
+ /**
657
+ * Material Symbol name or SVG element as the icon that will be placed next to the link text.
658
+ */
659
+ icon?: string | SVG;
660
+ /**
661
+ * Text to be placed in the button link.
662
+ */
663
+ label: string;
664
+ /**
665
+ * Text to be used as aria-label for the button link. If provided, it takes precedence over the label as the accessible name.
666
+ */
667
+ ariaLabel?: string;
668
+ };
669
+ type IconProps$1 = {
670
+ /**
671
+ * Material Symbol name or SVG element as the icon that will be placed next to the link text.
672
+ */
673
+ icon: string | SVG;
674
+ /**
675
+ * Text to be placed in the button link.
676
+ */
677
+ label?: string;
678
+ } & ({
679
+ /**
680
+ * Text to be displayed as a tooltip when hovering over the link. Required when no ariaLabel is provided.
681
+ */
682
+ title: string;
683
+ ariaLabel?: string;
684
+ } | {
685
+ /**
686
+ * Text to be used as aria-label for the button link. Required when no title is provided.
687
+ */
688
+ ariaLabel: string;
689
+ title?: string;
690
+ });
691
+ type ButtonLinkProps = CommonProps$8 & (LabelProps | IconProps$1);
692
+
693
+ declare const DxcButtonLink: {
694
+ ({ disabled, href, icon, iconPosition, label, ariaLabel, mode, newWindow, onClick, size, tabIndex, title, ref, ...otherProps }: ButtonLinkProps): react.JSX.Element;
695
+ displayName: string;
696
+ };
697
+
698
+ type ImageProps = {
699
+ /**
700
+ * Alternative text description displayed when the specified image is not loaded.
701
+ *
702
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/alt
703
+ * See W3C alt decision tree: https://www.w3.org/WAI/tutorials/images/decision-tree/
704
+ */
705
+ alt: string;
706
+ /**
707
+ * Image legend with a descriptive purpose. It is placed below the image and is complementary to the alt attribute,
708
+ * which is required regardless of the presence of the caption or not.
709
+ */
710
+ caption?: string;
711
+ /**
712
+ * Sets the rendered height of the image.
713
+ */
714
+ height?: string;
715
+ /**
716
+ * If true, the image will be loaded only when it is visible on the screen (lazy loading).
717
+ * Otherwise and by default, the image will be loaded as soon as the component is mounted (eager loading).
718
+ */
719
+ lazyLoading?: boolean;
720
+ /**
721
+ * Sets the object-fit CSS property.
722
+ *
723
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
724
+ */
725
+ objectFit?: "contain" | "cover" | "fill" | "none" | "scale-down";
726
+ /**
727
+ * Sets the object-position CSS property.
728
+ *
729
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/object-position
730
+ */
731
+ objectPosition?: string;
732
+ /**
733
+ * This function will be called when the image fails to load.
734
+ */
735
+ onError?: ReactEventHandler<HTMLImageElement>;
736
+ /**
737
+ * This function will be called when the image is loaded.
738
+ */
739
+ onLoad?: ReactEventHandler<HTMLImageElement>;
740
+ /**
741
+ * One or more strings separated by commas, indicating a set of source sizes.
742
+ * If the srcSet attribute is absent or contains no values with a width descriptor,
743
+ * then this attribute has no effect.
744
+ *
745
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/sizes
746
+ */
747
+ sizes?: string;
748
+ /**
749
+ * URL of the image. This prop is required and must be valid.
750
+ */
751
+ src: string;
752
+ /**
753
+ * List of one or more strings separated by commas indicating a set of possible images for the user agent to use.
754
+ *
755
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/srcset
756
+ */
757
+ srcSet?: string;
758
+ /**
759
+ * Sets the rendered width of the image.
760
+ */
761
+ width?: string;
762
+ };
763
+
764
+ type Size = {
765
+ width?: "fillParent" | "fitContent";
766
+ height?: "fillParent" | "fitContent";
767
+ };
768
+ type CardProps = {
769
+ /**
770
+ * Custom content that will be placed inside the component.
771
+ */
772
+ children?: ReactNode;
773
+ /**
774
+ * Initial state of the checkbox, only when it is uncontrolled.
775
+ */
776
+ defaultSelected?: boolean;
777
+ /**
778
+ * Defines the direction of the content inside the card. It can be set to "row" or "column". The default value is "column".
779
+ */
780
+ direction?: "row" | "column";
781
+ /**
782
+ * Defines the size of the card when it is empty.
783
+ */
784
+ emptySize?: {
785
+ width?: string;
786
+ height?: string;
787
+ iconSize?: "small" | "medium" | "large";
788
+ };
789
+ /**
790
+ * URL to navigate to when the card is clicked.
791
+ * If href is defined selectable will be ignored and the link will be always considered as an anchor.
792
+ */
793
+ href?: string;
794
+ /**
795
+ * Image to be displayed inside the card.
796
+ */
797
+ image?: ImageProps;
798
+ /**
799
+ * Position of the image inside the card. It can be set to "before" or "after" the content.
800
+ */
801
+ imagePosition?: "before" | "after";
802
+ /**
803
+ * If true, the card will be displayed as empty state.
804
+ */
805
+ isEmpty?: boolean;
806
+ /**
807
+ * If true, a loading state will be displayed inside the card.
808
+ */
809
+ isLoading?: boolean;
810
+ /**
811
+ * Defines the size of the loading card when isLoading is true.
812
+ */
813
+ loadingSize?: {
814
+ width?: string;
815
+ height?: string;
816
+ };
817
+ /**
818
+ * Defines the visual style of the card. It can be set to "elevated" or "outlined".
819
+ */
820
+ mode?: "elevated" | "outlined";
821
+ /**
822
+ * If true, the link will open in a new window. href must be provided for this to work.
823
+ */
824
+ newWindow?: boolean;
825
+ /**
826
+ * Callback function that is called when the card is clicked.
827
+ * It receives a boolean value indicating whether the card is selected or not.
828
+ * selectable must be true for this to work.
829
+ */
830
+ onSelectionChange?: (selected: boolean) => void;
831
+ /**
832
+ * Callback function that is called when the card is clicked.
833
+ */
834
+ onClick?: (event: React.MouseEvent | React.KeyboardEvent) => void;
835
+ /**
836
+ * Ref to the card element.
837
+ */
838
+ ref?: React.Ref<HTMLDivElement | HTMLAnchorElement>;
839
+ /**
840
+ * If true, the card can be selected. When the card is clicked, the onSelectionChange callback will be called with the new selected state of the card.
841
+ * If href is defined, the card won't be selectable, even if this prop is true.
842
+ */
843
+ selectable?: boolean;
844
+ /**
845
+ * If true, the card is selected and if defined it will behave as a controlled component.
846
+ */
847
+ selected?: boolean;
848
+ /**
849
+ * Defines the size of the card. Width and height can be set to "fillParent" or "fitContent".
850
+ * The default value is { width: "fitContent", height: "fitContent" }.
851
+ */
852
+ size?: Size;
853
+ /**
854
+ * Specifies the tab index of the card.
855
+ * The default value is 0.
856
+ */
857
+ tabIndex?: number;
858
+ };
859
+
860
+ declare const DxcCard: ({ children, defaultSelected, direction, emptySize, href, imagePosition, image, isEmpty, isLoading, loadingSize, mode, newWindow, onSelectionChange, onClick, ref, selectable, selected, size, tabIndex, }: CardProps) => react.JSX.Element;
861
+
862
+ /**
863
+ * Reference to the component.
864
+ */
865
+ type RefType$a = HTMLDivElement;
866
+ type CheckboxProps = {
867
+ /**
868
+ * Specifies a string to be used as the name for the checkbox element when no `label` is provided.
869
+ */
870
+ ariaLabel?: string;
871
+ /**
872
+ * If true, the component is checked. If undefined the component will be
873
+ * uncontrolled and the value will be managed internally by the component.
874
+ */
875
+ checked?: boolean;
876
+ /**
877
+ * Initial state of the checkbox, only when it is uncontrolled.
878
+ */
879
+ defaultChecked?: boolean;
880
+ /**
881
+ * If true, the component will be disabled.
882
+ */
883
+ disabled?: boolean;
884
+ /**
885
+ * Text to be placed next to the checkbox.
886
+ */
887
+ label?: string;
888
+ /**
889
+ * Whether the label should appear after or before the checkbox.
890
+ */
891
+ labelPosition?: "before" | "after";
892
+ /**
893
+ * Size of the margin to be applied to the component
894
+ * ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
895
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties
896
+ * in order to specify different margin sizes.
897
+ */
898
+ margin?: Space | Margin;
899
+ /**
900
+ * Name attribute of the input element.
901
+ */
902
+ name?: string;
903
+ /**
904
+ * This function will be called when the user clicks the checkbox.
905
+ * The new value will be passed as a parameter.
906
+ */
907
+ onChange?: (value: boolean) => void;
908
+ /**
909
+ * If true, the component will display '(Optional)' next to the label.
910
+ */
911
+ optional?: boolean;
912
+ /**
913
+ * If true, the component will not be mutable, meaning the user can not edit the control.
914
+ */
915
+ readOnly?: boolean;
916
+ /**
917
+ * ref to the checkbox container element.
918
+ */
919
+ ref?: React.Ref<RefType$a>;
920
+ /**
921
+ * Size of the component.
922
+ */
923
+ size?: "small" | "medium" | "large" | "fillParent" | "fitContent";
924
+ /**
925
+ * Value of the tabindex.
926
+ */
927
+ tabIndex?: number;
928
+ /**
929
+ * Will be passed to the value attribute of the html input element.
930
+ * When inside a form, this value will be only submitted if the checkbox is checked.
931
+ */
932
+ value?: string;
933
+ };
934
+
935
+ declare const DxcCheckbox: {
936
+ ({ ariaLabel, checked, defaultChecked, disabled, label, labelPosition, margin, name, onChange, optional, readOnly, ref, size, tabIndex, value, }: CheckboxProps): react.JSX.Element;
937
+ displayName: string;
938
+ };
939
+
940
+ type ChipAvatarType = {
941
+ color: AvatarProps["color"];
942
+ profileName?: AvatarProps["label"];
943
+ imageSrc?: AvatarProps["imageSrc"];
944
+ icon?: AvatarProps["icon"];
945
+ };
946
+ type CommonProps$7 = {
947
+ /**
948
+ * Function to be called when the chip is clicked or the dismiss action is triggered.
949
+ */
950
+ onClick?: () => void;
951
+ /**
952
+ * Ref to the chip element.
953
+ */
954
+ ref?: React.Ref<HTMLDivElement>;
955
+ /**
956
+ * Value of the tabindex attribute.
957
+ */
958
+ tabIndex?: number;
959
+ };
960
+ type SelectableChipProps = PrettifyTypes<CommonProps$7 & {
961
+ /**
962
+ * If true, the component will be disabled.
963
+ */
964
+ disabled?: boolean;
965
+ /**
966
+ * The whole chip is an interactive element that allows users to activate or clear options directly within the interface.
967
+ */
968
+ mode?: "selectable";
969
+ /**
970
+ * If true, the component will be selected. This property is only applicable when the mode is "selectable".
971
+ * If undefined, the component manages its own internal state (uncontrolled mode).
972
+ */
973
+ selected?: boolean;
974
+ } & ({
975
+ /**
976
+ * Element, path or avatar used as icon to be placed before the chip label.
977
+ */
978
+ prefix: ChipAvatarType;
979
+ /**
980
+ * Text to be placed on the chip. Required when using an avatar prefix.
981
+ */
982
+ label: string;
983
+ } | {
984
+ /**
985
+ * Element or path used as icon to be placed before the chip label.
986
+ */
987
+ prefix: string | SVG;
988
+ /**
989
+ * Text to be placed on the chip. Optional when using an icon prefix.
990
+ */
991
+ label?: string;
992
+ } | {
993
+ prefix?: undefined;
994
+ /**
995
+ * Text to be placed on the chip.
996
+ */
997
+ label: string;
998
+ })>;
999
+ type DismissibleChipProps = PrettifyTypes<CommonProps$7 & {
1000
+ /**
1001
+ * Dismissible chip is used to represent information generated by user input within an interface.
1002
+ */
1003
+ mode: "dismissible";
1004
+ /**
1005
+ * Text to be placed on the chip.
1006
+ */
1007
+ label: string;
1008
+ /**
1009
+ * Element, path or avatar used as icon to be placed before the chip label.
1010
+ */
1011
+ prefix?: string | SVG | ChipAvatarType;
1012
+ selected?: never;
1013
+ disabled?: never;
1014
+ }>;
1015
+ type ChipProps = PrettifyTypes<SelectableChipProps | DismissibleChipProps>;
1016
+
1017
+ declare const DxcChip: ({ disabled, label, mode, onClick, prefix, selected, tabIndex, ref, }: ChipProps) => react.JSX.Element | null;
1018
+
1019
+ type ContainerSpacing = {
1020
+ top?: string;
1021
+ right?: string;
1022
+ bottom?: string;
1023
+ left?: string;
1024
+ };
1025
+ type ContainerBackground = {
1026
+ attachment?: string;
1027
+ clip?: string;
1028
+ color?: string;
1029
+ image?: string;
1030
+ origin?: string;
1031
+ position?: string;
1032
+ repeat?: string;
1033
+ size?: string;
1034
+ };
1035
+ type ContainerBorderProperties = {
1036
+ width?: string;
1037
+ style?: string;
1038
+ color?: string;
1039
+ };
1040
+ type ContainerBorder = PrettifyTypes<ContainerBorderProperties | {
1041
+ top?: ContainerBorderProperties;
1042
+ right?: ContainerBorderProperties;
1043
+ bottom?: ContainerBorderProperties;
1044
+ left?: ContainerBorderProperties;
1045
+ }>;
1046
+ type ContainerOutline = PrettifyTypes<ContainerBorderProperties & {
1047
+ offset?: string;
1048
+ }>;
1049
+ type OverflowValues = "visible" | "hidden" | "clip" | "scroll" | "auto";
1050
+ type ContainerOverflow = PrettifyTypes<OverflowValues | {
1051
+ x?: OverflowValues;
1052
+ y?: OverflowValues;
1053
+ }>;
1054
+ type ContainerProps = {
1055
+ /**
1056
+ * Based on the CSS property background allows configuring all properties related to the background of a container.
1057
+ *
1058
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/background
1059
+ */
1060
+ background?: ContainerBackground;
1061
+ /**
1062
+ * Based on the CSS property border allows configuring all properties related to the border of a container.
1063
+ */
1064
+ border?: ContainerBorder;
1065
+ /**
1066
+ * Sets the border-radius CSS property.
1067
+ *
1068
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius
1069
+ */
1070
+ borderRadius?: string;
1071
+ /**
1072
+ * Sets the box-shadow CSS property.
1073
+ *
1074
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
1075
+ */
1076
+ boxShadow?: string;
1077
+ /**
1078
+ * Sets the box-sizing CSS property.
1079
+ *
1080
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing
1081
+ */
1082
+ boxSizing?: "border-box" | "content-box";
1083
+ /**
1084
+ * Custom content inside the container.
1085
+ */
1086
+ children?: ReactNode;
1087
+ /**
1088
+ * Reference to the container element.
1089
+ */
1090
+ ref?: Ref<HTMLDivElement>;
1091
+ /**
1092
+ * Sets the display CSS property.
1093
+ * The set of values is limited to the ones related to the outer display type.
1094
+ * If you want to apply any pattern from the inner box and how the children are laid out,
1095
+ * we recommend you to use the Flex and Grid components.
1096
+ *
1097
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/display
1098
+ */
1099
+ display?: "block" | "inline-block" | "inline" | "none";
1100
+ /**
1101
+ * Sets the float CSS property.
1102
+ *
1103
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/float
1104
+ */
1105
+ float?: "left" | "right" | "none";
1106
+ /**
1107
+ * Sets the height CSS property.
1108
+ *
1109
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/height
1110
+ */
1111
+ height?: string;
1112
+ /**
1113
+ * Based on the CSS property inset this prop is a shorthand that corresponds
1114
+ * to the top, right, bottom, and/or left properties.
1115
+ */
1116
+ inset?: ContainerSpacing;
1117
+ /**
1118
+ * Size of the margin to be applied to the container.
1119
+ */
1120
+ margin?: string | ContainerSpacing;
1121
+ /**
1122
+ * Sets the max-width CSS property.
1123
+ *
1124
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/max-width
1125
+ */
1126
+ maxHeight?: string;
1127
+ /**
1128
+ * Sets the max-height CSS property.
1129
+ *
1130
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/max-height
1131
+ */
1132
+ maxWidth?: string;
1133
+ /**
1134
+ * Sets the min-width CSS property.
1135
+ *
1136
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/min-width
1137
+ */
1138
+ minHeight?: string;
1139
+ /**
1140
+ * Sets the min-height CSS property.
1141
+ *
1142
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/min-height
1143
+ */
1144
+ minWidth?: string;
1145
+ /**
1146
+ * Based on the CSS property outline allows configuring all properties related
1147
+ * to the outline of a container.
1148
+ */
1149
+ outline?: ContainerOutline;
1150
+ /**
1151
+ * Sets the overflow CSS property.
1152
+ *
1153
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/overflow
1154
+ */
1155
+ overflow?: ContainerOverflow;
1156
+ /**
1157
+ * Size of the padding to be applied to the container.
1158
+ */
1159
+ padding?: string | ContainerSpacing;
1160
+ /**
1161
+ * Sets the position CSS property.
1162
+ *
1163
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/position
1164
+ */
1165
+ position?: "static" | "relative" | "absolute" | "fixed" | "sticky";
1166
+ /**
1167
+ * Sets the width CSS property.
1168
+ *
1169
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/width
1170
+ */
1171
+ width?: string;
1172
+ /**
1173
+ * Sets the z-index CSS property.
1174
+ *
1175
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/z-index
1176
+ */
1177
+ zIndex?: "auto" | number;
1178
+ };
1179
+
1180
+ declare const DxcContainer: ({ display, width, height, overflow, ref, ...props }: ContainerProps) => react.JSX.Element;
1181
+
1182
+ type BaseCommonItemProps = {
1183
+ badge?: ReactElement;
1184
+ icon?: string | SVG;
1185
+ label: string;
1186
+ };
1187
+ type BaseItem = PrettifyTypes<BaseCommonItemProps & {
1188
+ onSelect?: () => void;
1189
+ selected?: boolean;
1190
+ href?: string;
1191
+ renderItem?: (props: {
1192
+ children: ReactNode;
1193
+ }) => ReactNode;
1194
+ }>;
1195
+ type BaseGroupItem = PrettifyTypes<BaseCommonItemProps & {
1196
+ items: (BaseItem | BaseGroupItem)[];
1197
+ defaultOpen?: boolean;
1198
+ }>;
1199
+ type BaseSection = {
1200
+ items: (BaseItem | BaseGroupItem)[];
1201
+ title?: string;
1202
+ };
1203
+ type BaseMenuProps = {
1204
+ /**
1205
+ * Array of items to be displayed in the menu.
1206
+ * Each item can be a single/simple item, a group item or a section.
1207
+ */
1208
+ items: (BaseItem | BaseGroupItem)[] | BaseSection[];
1209
+ /**
1210
+ * If true the menu will be displayed with a border.
1211
+ */
1212
+ displayBorder?: boolean;
1213
+ /**
1214
+ * If true the menu will have lines marking the groups.
1215
+ */
1216
+ displayGroupLines?: boolean;
1217
+ /**
1218
+ * If true the menu will have controls at the end.
1219
+ */
1220
+ displayControlsAfter?: boolean;
1221
+ /**
1222
+ * If true the menu will be icons only and display a popover on click.
1223
+ */
1224
+ hasPopOver?: boolean;
1225
+ /**
1226
+ * If true the menu will be displayed horizontally.
1227
+ */
1228
+ isHorizontal?: boolean;
1229
+ /**
1230
+ * Function that will be called when an option is clicked.
1231
+ * This is used to notify that an item has been selected to close any visible menu that is not managed by the navigation tree.
1232
+ */
1233
+ onSelectItem?: () => void;
1234
+ };
1235
+
1236
+ type ContextualMenuProps = Omit<BaseMenuProps, "displayBorder" | "displayGroupLines" | "displayControlsAfter" | "hasPopOver">;
1237
+
1238
+ declare function DxcContextualMenu({ items }: ContextualMenuProps): react.JSX.Element;
1239
+
1240
+ type DataGridColumn = {
1241
+ /**
1242
+ * Key that will be rendered from each row in rows.
1243
+ */
1244
+ key: string;
1245
+ /**
1246
+ * Label that will be used for the column header.
1247
+ */
1248
+ label: string;
1249
+ /**
1250
+ * Whether the column is resizable or not.
1251
+ */
1252
+ resizable?: boolean;
1253
+ /**
1254
+ * Whether the column is sortable or not.
1255
+ */
1256
+ sortable?: boolean;
1257
+ /**
1258
+ * Custom criteria for sorting the column.
1259
+ */
1260
+ sortFn?: (_a: ReactNode, _b: ReactNode) => 0 | 1 | -1;
1261
+ /**
1262
+ * Whether the column is draggable or not.
1263
+ */
1264
+ draggable?: boolean;
1265
+ /**
1266
+ * Whether the column cells are editable or not.
1267
+ */
1268
+ textEditable?: boolean;
1269
+ /**
1270
+ * Value that will be rendered from the summaryRow.
1271
+ */
1272
+ summaryKey?: string;
1273
+ /**
1274
+ * Sets the alignment inside the cells.
1275
+ */
1276
+ alignment?: "left" | "right" | "center";
1277
+ };
1278
+ type DataGridRow = {
1279
+ /**
1280
+ * List of rows that will be rendered in each cell based on the key in each column.
1281
+ */
1282
+ [key: string]: ReactNode | undefined;
1283
+ };
1284
+ type DataGridHierarchyRow = PrettifyTypes<DataGridRow & {
1285
+ /**
1286
+ * Array of child rows nested under this row, enabling hierarchical (tree-like) structures.
1287
+ * These child rows will be displayed when the parent row is expanded.
1288
+ */
1289
+ childRows?: DataGridHierarchyRow[] | DataGridRow[];
1290
+ /**
1291
+ * Function called when a row with children is expanded or collapsed (based on the value of `open`).
1292
+ * Returns (or resolves to) the array of child rows nested under this row to display when expanded.
1293
+ */
1294
+ childrenTrigger?: (open?: boolean, triggerRow?: DataGridHierarchyRow) => (DataGridHierarchyRow[] | DataGridRow[]) | Promise<DataGridHierarchyRow[] | DataGridRow[]>;
1295
+ /**
1296
+ * Indicates whether child rows are currently being loaded.
1297
+ */
1298
+ loadingChildren?: boolean;
1299
+ /**
1300
+ * Indicates the level of nesting for this row in the hierarchy.
1301
+ */
1302
+ rowLevel?: number;
1303
+ /**
1304
+ * Reference to the parent row's unique identifier.
1305
+ */
1306
+ parentKey?: string | number;
1307
+ /**
1308
+ * Indicates whether child rows are currently visible.
1309
+ */
1310
+ visibleChildren?: boolean;
1311
+ }>;
1312
+ type DataGridExpandableRow = PrettifyTypes<DataGridRow & {
1313
+ expandedContent?: ReactNode;
1314
+ expandedContentHeight?: number;
1315
+ contentIsExpanded?: boolean;
1316
+ }>;
1317
+ type DataGridExpandableRows = {
1318
+ rows: DataGridExpandableRow[];
1319
+ /**
1320
+ * Whether the rows can expand or not.
1321
+ */
1322
+ expandable: true;
1323
+ /**
1324
+ * 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 DataGridHierarchyRow[].
1325
+ */
1326
+ uniqueRowId: string;
1327
+ };
1328
+ type DataGridHierarchyRows = {
1329
+ rows: DataGridHierarchyRow[];
1330
+ /**
1331
+ * 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 DataGridHierarchyRow[].
1332
+ */
1333
+ uniqueRowId: string;
1334
+ /**
1335
+ * Whether the rows can expand or not.
1336
+ */
1337
+ expandable?: false;
1338
+ };
1339
+ type DataGridSelectableProps = {
1340
+ /**
1341
+ * Whether the rows are selectable or not.
1342
+ */
1343
+ selectable: true;
1344
+ /**
1345
+ * 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.
1346
+ */
1347
+ selectedRows: Set<string | number>;
1348
+ /**
1349
+ * 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.
1350
+ */
1351
+ onSelectRows: (selectedRows: Set<number | string>) => void;
1352
+ /**
1353
+ * 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 DataGridHierarchyRow[].
1354
+ */
1355
+ uniqueRowId: string;
1356
+ } | {
1357
+ selectable?: false;
1358
+ selectedRows?: never;
1359
+ onSelectRows?: never;
1360
+ uniqueRowId?: string;
1361
+ };
1362
+ type DataGridPaginatedProps = {
1363
+ /**
1364
+ * If true, paginator will be displayed.
1365
+ */
1366
+ showPaginator?: true;
1367
+ /**
1368
+ * Number of total items.
1369
+ */
1370
+ totalItems?: number;
1371
+ /**
1372
+ * If true, a select component for navigation between pages will be displayed.
1373
+ */
1374
+ showGoToPage?: boolean;
1375
+ /**
1376
+ * Number of items per page.
1377
+ */
1378
+ itemsPerPage?: number;
1379
+ /**
1380
+ * An array of numbers representing the items per page options.
1381
+ */
1382
+ itemsPerPageOptions?: number[];
1383
+ /**
1384
+ * This function will be called when the user selects an item per page
1385
+ * option. The value selected will be passed as a parameter.
1386
+ */
1387
+ itemsPerPageFunction?: (value: number) => void;
1388
+ /**
1389
+ * Function called whenever the current page is changed.
1390
+ */
1391
+ onPageChange?: (_page: number) => void;
1392
+ /**
1393
+ * Default page in which the datagrid is rendered
1394
+ */
1395
+ defaultPage?: number;
1396
+ };
1397
+ type DataGridNonPaginatedProps = {
1398
+ /**
1399
+ * If true, paginator will be displayed.
1400
+ */
1401
+ showPaginator: false;
1402
+ /**
1403
+ * Number of total items.
1404
+ */
1405
+ totalItems?: never;
1406
+ /**
1407
+ * If true, a select component for navigation between pages will be displayed.
1408
+ */
1409
+ showGoToPage?: never;
1410
+ /**
1411
+ * Number of items per page.
1412
+ */
1413
+ itemsPerPage?: never;
1414
+ /**
1415
+ * An array of numbers representing the items per page options.
1416
+ */
1417
+ itemsPerPageOptions?: never;
1418
+ /**
1419
+ * This function will be called when the user selects an item per page
1420
+ * option. The value selected will be passed as a parameter.
1421
+ */
1422
+ itemsPerPageFunction?: never;
1423
+ /**
1424
+ * Function called whenever the current page is changed.
1425
+ */
1426
+ onPageChange?: never;
1427
+ /**
1428
+ * Default page in which the datagrid is rendered
1429
+ */
1430
+ defaultPage?: never;
1431
+ };
1432
+ type CommonProps$6 = {
1433
+ columns: DataGridColumn[];
1434
+ /**
1435
+ * Extra row that will be always visible.
1436
+ */
1437
+ summaryRow?: DataGridRow;
1438
+ /**
1439
+ * Function called whenever a cell is edited.
1440
+ */
1441
+ onGridRowsChange?: (_rows: DataGridRow[] | DataGridHierarchyRow[] | DataGridExpandableRow[]) => void;
1442
+ /**
1443
+ * Function called whenever a column is sorted. Receives the sorted
1444
+ * column and direction, or `undefined` if no sorting is applied.
1445
+ */
1446
+ onSort?: (_sortColumn?: SortColumn) => void;
1447
+ };
1448
+ type DataGridBasicProps = {
1449
+ rows: DataGridRow[];
1450
+ /**
1451
+ * Whether the rows can expand or not.
1452
+ */
1453
+ expandable?: false;
1454
+ };
1455
+ type DataGridProps = PrettifyTypes<CommonProps$6 & (DataGridPaginatedProps | DataGridNonPaginatedProps) & (DataGridBasicProps | DataGridExpandableRows | DataGridHierarchyRows) & DataGridSelectableProps>;
1456
+
1457
+ declare const DxcDataGrid: {
1458
+ ({ columns, rows, selectable, expandable, onSelectRows, selectedRows, uniqueRowId, summaryRow, onGridRowsChange, showPaginator, showGoToPage, itemsPerPage, itemsPerPageOptions, itemsPerPageFunction, onSort, onPageChange, totalItems, defaultPage, }: DataGridProps): JSX.Element;
1459
+ ActionsCell: ({ actions }: ActionsCellProps) => JSX.Element;
1460
+ };
1461
+
1462
+ type RefType$9 = React.Ref<HTMLDivElement>;
1463
+ type DateInputProps = {
1464
+ /**
1465
+ * Initial value of the input element, only when it is uncontrolled.
1466
+ */
1467
+ defaultValue?: string;
1468
+ /**
1469
+ * Value of the input element. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
1470
+ */
1471
+ value?: string;
1472
+ /**
1473
+ * Text to be placed above the date input.
1474
+ */
1475
+ label?: string;
1476
+ /**
1477
+ * Name attribute of the input element.
1478
+ */
1479
+ name?: string;
1480
+ /**
1481
+ * Helper text to be placed above the date.
1482
+ */
1483
+ helperText?: string;
1484
+ /**
1485
+ * If true, the date format will appear as placeholder in the field.
1486
+ */
1487
+ placeholder?: boolean;
1488
+ /**
1489
+ * 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.
1490
+ */
1491
+ format?: string;
1492
+ /**
1493
+ * If true, the date input will have an action to clear the entered value.
1494
+ */
1495
+ clearable?: boolean;
1496
+ /**
1497
+ * If true, the component will be disabled.
1498
+ */
1499
+ disabled?: boolean;
1500
+ /**
1501
+ * If true, the date will be optional, showing the text '(Optional)'
1502
+ * next to the label. Otherwise, the field will be considered required and an error will be
1503
+ * passed as a parameter to the OnBlur and onChange functions when it has
1504
+ * not been filled.
1505
+ */
1506
+ optional?: boolean;
1507
+ /**
1508
+ * If true, the component will not be mutable, meaning the user can not edit the control.
1509
+ * The date picker cannot be opened either. In addition, the clear action will not be displayed
1510
+ * even if the flag is set to true.
1511
+ */
1512
+ readOnly?: boolean;
1513
+ /**
1514
+ * This function will be called when the user types within the input
1515
+ * element of the component. An object including the string value, the
1516
+ * error and the date value will be passed to this function.
1517
+ * If the string value is a valid date, error will
1518
+ * be undefined. Also, if the string value is not a valid date, date will be undefined.
1519
+ */
1520
+ onChange?: (val: {
1521
+ value: string;
1522
+ error?: string;
1523
+ date?: Date;
1524
+ }) => void;
1525
+ /**
1526
+ * This function will be called when the input element loses the focus.
1527
+ * An object including the string value, the error and the date value
1528
+ * will be passed to this function. If the string value is a valid date, error will
1529
+ * be undefined. Also, if the string value is not a valid date, date will be undefined.
1530
+ */
1531
+ onBlur?: (val: {
1532
+ value: string;
1533
+ error?: string;
1534
+ date?: Date;
1535
+ }) => void;
1536
+ /**
1537
+ * If it is a defined value and also a truthy string, the component will
1538
+ * change its appearance, showing the error below the date input
1539
+ * component. If the defined value is an empty string, it will reserve a
1540
+ * space below the component for a future error, but it would not change
1541
+ * its look. In case of being undefined or null, both the appearance and
1542
+ * the space for the error message would not be modified.
1543
+ */
1544
+ error?: string;
1545
+ /**
1546
+ * HTML autocomplete attribute. Lets the user specify if any permission the user agent has to provide automated assistance in filling out the input value.
1547
+ * Its value must be one of all the possible values of the HTML autocomplete attribute: 'on', 'off', 'email', 'username', 'new-password', ...
1548
+ */
1549
+ autocomplete?: string;
1550
+ /**
1551
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1552
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1553
+ */
1554
+ margin?: Space | Margin;
1555
+ /**
1556
+ * Size of the component.
1557
+ */
1558
+ size?: "small" | "medium" | "large" | "fillParent";
1559
+ /**
1560
+ * Value of the tabindex attribute.
1561
+ */
1562
+ tabIndex?: number;
1563
+ /**
1564
+ * Specifies a string to be used as the name for the date input element when no `label` is provided.
1565
+ */
1566
+ ariaLabel?: string;
1567
+ /**
1568
+ * Ref object to access the date input element.
1569
+ */
1570
+ ref?: RefType$9;
1571
+ };
1572
+
1573
+ declare const DxcDateInput: {
1574
+ ({ label, name, defaultValue, value, format, helperText, placeholder, clearable, disabled, readOnly, optional, onChange, onBlur, error, autocomplete, margin, size, tabIndex, ariaLabel, ref, }: DateInputProps): react.JSX.Element;
1575
+ displayName: string;
1576
+ };
1577
+
1578
+ type DialogProps = {
1579
+ /**
1580
+ * If true, the close button will be visible.
1581
+ */
1582
+ closable?: boolean;
1583
+ /**
1584
+ * This function will be called when the user clicks the close button.
1585
+ * The responsibility of hiding the dialog lies with the user.
1586
+ */
1587
+ onCloseClick?: () => void;
1588
+ /**
1589
+ * This function will be called when the user clicks on the background of the modal.
1590
+ * The responsibility of hiding the dialog lies with the user.
1591
+ */
1592
+ onBackgroundClick?: () => void;
1593
+ /**
1594
+ * If true, the dialog will be displayed over a darker background that covers the content behind.
1595
+ */
1596
+ overlay?: boolean;
1597
+ /**
1598
+ * Area within the dialog that can be used to render custom content.
1599
+ * We strongly encourage users to not change the
1600
+ * tabindex of the inner components or elements. This
1601
+ * can lead to unpredictable behaviour for keyboard users, affecting
1602
+ * the order of focus and focus locking within the dialog.
1603
+ */
1604
+ children: ReactNode;
1605
+ /**
1606
+ * Value of the tabindex applied to the close button.
1607
+ * Note that values greater than 0 are strongly discouraged. It can
1608
+ * lead to unexpected behaviours with the focus within the dialog.
1609
+ */
1610
+ tabIndex?: number;
1611
+ /**
1612
+ * If true the focusLock functionality won't work.
1613
+ * @private
1614
+ */
1615
+ disableFocusLock?: boolean;
1616
+ };
1617
+
1618
+ declare const DxcDialog: ({ children, closable, onBackgroundClick, onCloseClick, overlay, tabIndex, disableFocusLock, }: DialogProps) => JSX.Element;
1619
+
1620
+ type DividerProps = {
1621
+ /**
1622
+ * The divider can be shown in horizontal or vertical.
1623
+ */
1624
+ orientation?: "horizontal" | "vertical";
1625
+ /**
1626
+ * Modifies the thickness of the divider.
1627
+ */
1628
+ weight?: "regular" | "strong";
1629
+ /**
1630
+ * Modifies the color of the divider.
1631
+ */
1632
+ color?: "lightGrey" | "mediumGrey" | "darkGrey";
1633
+ /**
1634
+ * Specifies whether the divider serves a purely decorative purpose
1635
+ * or functions as a semantic separator for content. Additionally, it
1636
+ * determines whether the divider is accessible to screen readers.
1637
+ */
1638
+ decorative?: boolean;
1639
+ };
1640
+
1641
+ declare function DxcDivider({ color, decorative, orientation, weight, }: DividerProps): react.JSX.Element;
1642
+
1643
+ type DropdownOption = {
1644
+ /**
1645
+ * Option display value.
1646
+ */
1647
+ label?: string;
1648
+ /**
1649
+ * Material Symbol name or SVG element as the icon that will be placed next to the label.
1650
+ */
1651
+ icon?: string | SVG;
1652
+ /**
1653
+ * Option inner value.
1654
+ */
1655
+ value: string;
1656
+ /**
1657
+ * Whether the option has a divider below it.
1658
+ */
1659
+ hasDivider?: boolean;
1660
+ };
1661
+ type DropdownProps = {
1662
+ /**
1663
+ * An array of objects representing the options.
1664
+ */
1665
+ options: DropdownOption[];
1666
+ /**
1667
+ * In case options include icons, whether the icon should appear
1668
+ * after or before the label.
1669
+ */
1670
+ optionsIconPosition?: "before" | "after";
1671
+ /**
1672
+ * Material Symbol name or SVG element as the icon that will be placed next to the label.
1673
+ */
1674
+ icon?: string | SVG;
1675
+ /**
1676
+ * Whether the icon should appear after or before the label.
1677
+ */
1678
+ iconPosition?: "before" | "after";
1679
+ /**
1680
+ * Text to be placed within the dropdown.
1681
+ */
1682
+ label?: string;
1683
+ /**
1684
+ * Whether the arrow next to the label must be displayed or not.
1685
+ */
1686
+ caretHidden?: boolean;
1687
+ /**
1688
+ * If true, the component will be disabled.
1689
+ */
1690
+ disabled?: boolean;
1691
+ /**
1692
+ * If true, the options are shown when the dropdown is hover.
1693
+ */
1694
+ expandOnHover?: boolean;
1695
+ /**
1696
+ * This function will be called every time the selection changes.
1697
+ * The value of the selected option will be passed as a parameter.
1698
+ */
1699
+ onSelectOption: (value: string) => void;
1700
+ /**
1701
+ * Size of the margin to be applied to the component.
1702
+ * You can pass an object with 'top', 'bottom', 'left' and 'right'
1703
+ * properties in order to specify different margin sizes.
1704
+ */
1705
+ margin?: Space | Margin;
1706
+ /**
1707
+ * Size of the component.
1708
+ */
1709
+ size?: "small" | "medium" | "large" | "fillParent" | "fitContent";
1710
+ /**
1711
+ * Value of the tabindex attribute.
1712
+ */
1713
+ tabIndex?: number;
1714
+ /**
1715
+ * Text representing advisory information related to the dropdown's trigger action.
1716
+ * Under the hood, this prop also serves as an accessible label for the component.
1717
+ */
1718
+ title?: string;
1719
+ };
1720
+
1721
+ declare const DxcDropdown: ({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: DropdownProps) => react.JSX.Element;
1722
+
1723
+ /**
1724
+ * Reference to the component.
1725
+ */
1726
+ type RefType$8 = React.Ref<HTMLDivElement>;
1727
+ type FileData = {
1728
+ /**
1729
+ * Error of the file. If it is defined, it will be shown and the file item will be mark as invalid.
1730
+ */
1731
+ error?: string;
1732
+ /**
1733
+ * Selected file.
1734
+ */
1735
+ file: File;
1736
+ /**
1737
+ * Preview of the file.
1738
+ */
1739
+ preview?: string;
1740
+ };
1741
+ type CommonProps$5 = {
1742
+ /**
1743
+ * 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.
1744
+ */
1745
+ accept?: string;
1746
+ /**
1747
+ * Text to be placed inside the button.
1748
+ */
1749
+ buttonLabel?: string;
1750
+ /**
1751
+ * This function will be called when the user selects or drops a file. The list of files will be sent as a parameter.
1752
+ * 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.
1753
+ */
1754
+ callbackFile: (files: FileData[]) => void;
1755
+ /**
1756
+ * If true, the component will be disabled.
1757
+ */
1758
+ disabled?: boolean;
1759
+ /**
1760
+ * Helper text to be placed above the component.
1761
+ */
1762
+ helperText?: string;
1763
+ /**
1764
+ * Text to be placed above the component.
1765
+ */
1766
+ label?: string;
1767
+ /**
1768
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
1769
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
1770
+ */
1771
+ margin?: Space | Margin;
1772
+ /**
1773
+ * The maximum file size (in bytes) allowed. If the size of the file does not comply the maxSize, the file will have an error.
1774
+ */
1775
+ maxSize?: number;
1776
+ /**
1777
+ * The minimum file size (in bytes) allowed. If the size of the file does not comply the minSize, the file will have an error.
1778
+ */
1779
+ minSize?: number;
1780
+ /**
1781
+ * 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
1782
+ * file selected and a new one is chosen, it will be replaced by the new selected one.
1783
+ */
1784
+ multiple?: boolean;
1785
+ /**
1786
+ * If true, the input will be optional, showing '(Optional)'
1787
+ * next to the label.
1788
+ */
1789
+ optional?: boolean;
1790
+ /**
1791
+ * Reference to the component.
1792
+ */
1793
+ ref?: RefType$8;
1794
+ /**
1795
+ * 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.
1796
+ */
1797
+ showPreview?: boolean;
1798
+ /**
1799
+ * Size of the component.
1800
+ */
1801
+ size?: "medium" | "fillParent";
1802
+ /**
1803
+ * Value of the tabindex attribute.
1804
+ */
1805
+ tabIndex?: number;
1806
+ /**
1807
+ * An array of files representing the selected files.
1808
+ */
1809
+ value: FileData[];
1810
+ };
1811
+ type DropModeProps = CommonProps$5 & {
1812
+ /**
1813
+ * Text to be placed inside the drag and drop zone alongside the button.
1814
+ */
1815
+ dropAreaLabel?: string;
1816
+ /**
1817
+ * Uses one of the available file input modes:
1818
+ * 'file': Files are selected by clicking the button and selecting it through the file explorer.
1819
+ * '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.
1820
+ * '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.
1821
+ * The drag and drop area of this mode is bigger than the one of the filedrop mode.
1822
+ */
1823
+ mode: "filedrop" | "dropzone";
1824
+ };
1825
+ type FileModeProps = CommonProps$5 & {
1826
+ /**
1827
+ * Text to be placed inside the drag and drop zone alongside the button.
1828
+ */
1829
+ dropAreaLabel?: never;
1830
+ /**
1831
+ * Uses one of the available file input modes:
1832
+ * 'file': Files are selected by clicking the button and selecting it through the file explorer.
1833
+ * '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.
1834
+ * '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.
1835
+ * The drag and drop area of this mode is bigger than the one of the filedrop mode.
1836
+ */
1837
+ mode?: "file";
1838
+ };
1839
+ type FileInputProps = PrettifyTypes<DropModeProps | FileModeProps>;
1840
+
1841
+ declare const DxcFileInput: {
1842
+ ({ mode, label, buttonLabel, dropAreaLabel, helperText, accept, minSize, maxSize, showPreview, multiple, disabled, callbackFile, size, value, margin, tabIndex, optional, ref, }: FileInputProps): react.JSX.Element;
1843
+ displayName: string;
1844
+ };
1845
+
1846
+ type FlexGap = {
1847
+ rowGap: string;
1848
+ columnGap?: string;
1849
+ } | {
1850
+ rowGap?: string;
1851
+ columnGap: string;
1852
+ } | string;
1853
+ type CommonProps$4 = {
1854
+ /**
1855
+ * Sets the justify-content CSS property.
1856
+ *
1857
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
1858
+ */
1859
+ justifyContent?: "flex-start" | "flex-end" | "start" | "end" | "left" | "normal" | "right" | "center" | "space-between" | "space-around" | "space-evenly";
1860
+ /**
1861
+ * Sets the align-items CSS property.
1862
+ *
1863
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
1864
+ */
1865
+ alignItems?: "stretch" | "flex-start" | "flex-end" | "start" | "end" | "self-start" | "self-end" | "center" | "baseline" | "normal";
1866
+ /**
1867
+ * Sets the align-content CSS property.
1868
+ *
1869
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
1870
+ */
1871
+ alignContent?: "normal" | "flex-start" | "flex-end" | "start" | "end" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch";
1872
+ /**
1873
+ * Sets the align-self CSS property.
1874
+ *
1875
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/align-self
1876
+ */
1877
+ alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch";
1878
+ };
1879
+ type FlexProps = PrettifyTypes<CommonProps$4 & {
1880
+ /**
1881
+ * Sets the flex-direction CSS property.
1882
+ *
1883
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
1884
+ */
1885
+ direction?: "row" | "row-reverse" | "column" | "column-reverse";
1886
+ /**
1887
+ * Sets the flex-wrap CSS property.
1888
+ *
1889
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
1890
+ */
1891
+ wrap?: "nowrap" | "wrap" | "wrap-reverse";
1892
+ /**
1893
+ * Sets the gap CSS property.
1894
+ *
1895
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/gap
1896
+ */
1897
+ gap?: FlexGap;
1898
+ /**
1899
+ * Sets the order CSS property.
1900
+ *
1901
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/order
1902
+ */
1903
+ order?: number;
1904
+ /**
1905
+ * If true, the flex container will take the full height of its parent.
1906
+ */
1907
+ fullHeight?: boolean;
1908
+ /**
1909
+ * Sets the flex-grow CSS property.
1910
+ *
1911
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow
1912
+ */
1913
+ grow?: number;
1914
+ /**
1915
+ * Sets the flex-shrink CSS property.
1916
+ *
1917
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink
1918
+ */
1919
+ shrink?: number;
1920
+ /**
1921
+ * Sets the flex-basis CSS property.
1922
+ *
1923
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis
1924
+ */
1925
+ basis?: string;
1926
+ /**
1927
+ * Sets a custom HTML tag.
1928
+ */
1929
+ as?: keyof HTMLElementTagNameMap;
1930
+ /**
1931
+ * Custom content inside the flex container.
1932
+ */
1933
+ children: ReactNode;
1934
+ }>;
1935
+
1936
+ declare const DxcFlex: ({ basis, direction, fullHeight, gap, grow, order, shrink, wrap, ...props }: FlexProps) => react.JSX.Element;
1937
+
1938
+ type GridGap = string | {
1939
+ columnGap?: string;
1940
+ rowGap: string;
1941
+ } | {
1942
+ columnGap: string;
1943
+ rowGap?: string;
1944
+ };
1945
+ type GridCell = {
1946
+ end: number | string;
1947
+ start: number | string;
1948
+ };
1949
+ type GridPlaceSelfValues = "auto" | "baseline" | "center" | "end" | "start" | "stretch";
1950
+ type GridPlaceContentValues = "baseline" | "center" | "end" | "normal" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch";
1951
+ type GridPlaceItemsValues = "baseline" | "center" | "end" | "normal" | "start" | "stretch";
1952
+ type PlaceObject<Type, Suffix extends string> = {
1953
+ [Property in keyof Type as Property extends string ? `${Property}${Capitalize<Suffix>}` : never]: Type[Property];
1954
+ };
1955
+ type PlaceGeneric<PlaceValues, Element extends string> = PlaceObject<{
1956
+ align?: PlaceValues;
1957
+ justify?: PlaceValues;
1958
+ }, Element> | PlaceObject<{
1959
+ align: PlaceValues;
1960
+ justify: PlaceValues;
1961
+ }, Element> | PlaceValues;
1962
+ type GridItemProps = {
1963
+ /**
1964
+ * Sets the name of an item so that it can be referenced by a template created with the grid-template-areas property.
1965
+ */
1966
+ areaName?: string;
1967
+ /**
1968
+ * Sets a custom HTML tag.
1969
+ */
1970
+ as?: keyof HTMLElementTagNameMap;
1971
+ /**
1972
+ * Custom content inside the grid container.
1973
+ */
1974
+ children: ReactNode;
1975
+ /**
1976
+ * Sets the grid-column CSS property.
1977
+ *
1978
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column
1979
+ */
1980
+ column?: number | string | GridCell;
1981
+ /**
1982
+ * Sets the place-self CSS property.
1983
+ *
1984
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/place-self
1985
+ */
1986
+ placeSelf?: PlaceGeneric<GridPlaceSelfValues, "self">;
1987
+ /**
1988
+ * Sets the grid-row CSS property.
1989
+ *
1990
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row
1991
+ */
1992
+ row?: number | string | GridCell;
1993
+ };
1994
+ type GridProps = PrettifyTypes<GridItemProps & {
1995
+ /**
1996
+ * Sets the grid-auto-columns CSS property.
1997
+ *
1998
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns
1999
+ */
2000
+ autoColumns?: string;
2001
+ /**
2002
+ * Sets the grid-auto-flow CSS property.
2003
+ *
2004
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow
2005
+ */
2006
+ autoFlow?: "row" | "column" | "row dense" | "column dense";
2007
+ /**
2008
+ * Sets the grid-auto-rows CSS property.
2009
+ *
2010
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows
2011
+ */
2012
+ autoRows?: string;
2013
+ /**
2014
+ * Sets the gap CSS property.
2015
+ *
2016
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/gap
2017
+ */
2018
+ gap?: GridGap;
2019
+ /**
2020
+ * Sets the place-content CSS property.
2021
+ *
2022
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/place-content
2023
+ */
2024
+ placeContent?: PlaceGeneric<GridPlaceContentValues, "content">;
2025
+ /**
2026
+ * Sets the place-items CSS property.
2027
+ *
2028
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/place-items
2029
+ */
2030
+ placeItems?: PlaceGeneric<GridPlaceItemsValues, "items">;
2031
+ /**
2032
+ * Sets the grid-template-areas CSS property.
2033
+ *
2034
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas
2035
+ */
2036
+ templateAreas?: string[];
2037
+ /**
2038
+ * Sets the grid-template-columns CSS property.
2039
+ *
2040
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns
2041
+ */
2042
+ templateColumns?: string[];
2043
+ /**
2044
+ * Sets the grid-template-rows CSS property.
2045
+ *
2046
+ * See MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows
2047
+ */
2048
+ templateRows?: string[];
2049
+ }>;
2050
+
2051
+ declare const DxcGrid: {
2052
+ (props: GridProps): react.JSX.Element;
2053
+ Item: _emotion_styled.StyledComponent<{
2054
+ theme?: _emotion_react.Theme;
2055
+ as?: React.ElementType;
2056
+ } & GridItemProps, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
2057
+ };
2058
+
2059
+ type HeadingProps = {
2060
+ /**
2061
+ * Defines the heading level from 1 to 5. The styles of the heading are applied according to the level.
2062
+ * The html tag of the heading will be the one specified in the 'as' prop.
2063
+ * If 'as' is not specified, the html tag of the heading is the one specified in the 'level' prop.
2064
+ */
2065
+ level?: 1 | 2 | 3 | 4 | 5 | 6;
2066
+ /**
2067
+ * Heading text.
2068
+ */
2069
+ text: string;
2070
+ /**
2071
+ * Modifies the default weight of the heading.
2072
+ */
2073
+ weight?: "light" | "default" | "regular";
2074
+ /**
2075
+ * Specifies the HTML tag of the heading.
2076
+ */
2077
+ as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
2078
+ /**
2079
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2080
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2081
+ */
2082
+ margin?: Space | Margin;
2083
+ };
2084
+
2085
+ declare function DxcHeading({ as, level, margin, text, weight }: HeadingProps): react.JSX.Element;
2086
+
2087
+ type IconProps = {
2088
+ /**
2089
+ * Accessible name of the icon. Set it only when the icon conveys meaning on its own; otherwise the icon is hidden from assistive technologies.
2090
+ */
2091
+ ariaLabel?: string;
2092
+ /**
2093
+ * Color of the icon. Use a design token or a CSS color.
2094
+ */
2095
+ color?: string;
2096
+ /**
2097
+ * Name of the Material Symbols icon to display (for example "home"). Prefix the name with "filled_" (for example "filled_home") to render the filled variant. An SVG element can also be passed, in which case it is rendered as is.
2098
+ */
2099
+ icon: string | SVG;
2100
+ /**
2101
+ * Font size of the icon. Use a design token or a CSS value.
2102
+ */
2103
+ size?: string;
2104
+ };
2105
+
2106
+ declare function DxcIcon({ ariaLabel, color, icon, size }: IconProps): react.JSX.Element;
2107
+
2108
+ declare function DxcImage({ alt, caption, height, lazyLoading, objectFit, objectPosition, onError, onLoad, sizes, src, srcSet, width, }: ImageProps): react.JSX.Element;
2109
+
2110
+ type InsetProps = {
2111
+ /**
2112
+ * Applies the spacing scale to the bottom side.
2113
+ */
2114
+ bottom?: string;
2115
+ /**
2116
+ * Custom content inside the inset.
2117
+ */
2118
+ children: ReactNode;
2119
+ /**
2120
+ * Applies the spacing scale to the left and right sides.
2121
+ */
2122
+ horizontal?: string;
2123
+ /**
2124
+ * Applies the spacing scale to the left side.
2125
+ */
2126
+ left?: string;
2127
+ /**
2128
+ * Applies the spacing scale to the right side.
2129
+ */
2130
+ right?: string;
2131
+ /**
2132
+ * Applies the spacing scale to all sides.
2133
+ */
2134
+ space?: string;
2135
+ /**
2136
+ * Applies the spacing scale to the top side.
2137
+ */
2138
+ top?: string;
2139
+ /**
2140
+ * Applies the spacing scale to the top and bottom sides.
2141
+ */
2142
+ vertical?: string;
2143
+ };
2144
+
2145
+ declare function DxcInset({ bottom, children, horizontal, left, right, space, top, vertical }: InsetProps): react.JSX.Element;
2146
+
2147
+ type LinkProps = {
2148
+ /**
2149
+ * Text of the link.
2150
+ */
2151
+ children: string;
2152
+ /**
2153
+ * If true, the link will be disabled.
2154
+ */
2155
+ disabled?: boolean;
2156
+ /**
2157
+ * Page to be opened when the user clicks on the link.
2158
+ */
2159
+ href?: string;
2160
+ /**
2161
+ * If true, the color is inherited from parent.
2162
+ */
2163
+ inheritColor?: boolean;
2164
+ /**
2165
+ * Material Symbol name or SVG element as the icon that will be placed next to the link text.
2166
+ */
2167
+ icon?: string | SVG;
2168
+ /**
2169
+ * Indicates the position of the icon in the component.
2170
+ */
2171
+ iconPosition?: "before" | "after";
2172
+ /**
2173
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2174
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2175
+ */
2176
+ margin?: Space | Margin;
2177
+ /**
2178
+ * If true, the page is opened in a new browser tab.
2179
+ */
2180
+ newWindow?: boolean;
2181
+ /**
2182
+ * If defined, the link will be displayed as a button. This
2183
+ * function will be called when the user clicks the link.
2184
+ */
2185
+ onClick?: () => void;
2186
+ /**
2187
+ * Ref of the link element.
2188
+ */
2189
+ ref?: React.Ref<HTMLAnchorElement>;
2190
+ /**
2191
+ * Value of the tabindex.
2192
+ */
2193
+ tabIndex?: number;
2194
+ };
2195
+
2196
+ declare const DxcLink: {
2197
+ ({ children, disabled, href, icon, iconPosition, inheritColor, margin, newWindow, onClick, tabIndex, ref, ...otherProps }: LinkProps): react.JSX.Element;
2198
+ displayName: string;
2199
+ };
2200
+
2201
+ type SelectOption$1 = {
2202
+ label?: string;
2203
+ value: string;
2204
+ onSelect: (value: string) => void;
2205
+ selected?: boolean;
2206
+ };
2207
+ type MessageInputProps = {
2208
+ /**
2209
+ * If true, the voice recording button will be shown.
2210
+ */
2211
+ allowRecording?: boolean;
2212
+ /**
2213
+ * This function will be called when the selection of top items changes.
2214
+ * If this function is provided the message input will allow file selection.
2215
+ */
2216
+ callbackFile?: (files: File[]) => void;
2217
+ /**
2218
+ * Initial value of the input, only when it is uncontrolled.
2219
+ */
2220
+ defaultValue?: string;
2221
+ /**
2222
+ * If true, the component will be disabled.
2223
+ */
2224
+ disabled?: boolean;
2225
+ /**
2226
+ * If it is a defined value and also a truthy string, the component will
2227
+ * change its appearance, showing the error below the input component. If
2228
+ * the defined value is an empty string, it will reserve a space below
2229
+ * the component for a future error, but it would not change its look. In
2230
+ * case of being undefined or null, both the appearance and the space for
2231
+ * the error message would not be modified.
2232
+ */
2233
+ error?: string;
2234
+ /**
2235
+ * Items to be shown at the top.
2236
+ */
2237
+ files?: File[];
2238
+ /**
2239
+ * If true, it indicates that a request is being processed after the user submits a query.
2240
+ */
2241
+ isGenerating?: boolean;
2242
+ /**
2243
+ * Specifies the maximum length allowed by the input.
2244
+ * This will be checked both when the input element loses the
2245
+ * focus and while typing within it. If the string entered does not
2246
+ * comply the maximum length, the onBlur and onChange functions will be called
2247
+ * with the current value and an internal error informing that the value
2248
+ * length does not comply the specified range. If a valid length is
2249
+ * reached, the error parameter of both events will not be defined.
2250
+ */
2251
+ maxLength?: number;
2252
+ /**
2253
+ * Specifies the minimum length allowed by the input.
2254
+ * This will be checked both when the input element loses the
2255
+ * focus and while typing within it. If the string entered does not
2256
+ * comply the minimum length, the onBlur and onChange functions will be called
2257
+ * with the current value and an internal error informing that the value
2258
+ * length does not comply the specified range. If a valid length is
2259
+ * reached, the error parameter of both events will not be defined.
2260
+ */
2261
+ minLength?: number;
2262
+ /**
2263
+ * Options to be shown on the dropdown under the input.
2264
+ */
2265
+ selectOptions?: SelectOption$1[];
2266
+ /**
2267
+ * This function will be called when the input element loses the focus.
2268
+ * An object including the input value and the error (if the value
2269
+ * entered is not valid) will be passed to this function. If there is no error,
2270
+ * error will not be defined.
2271
+ */
2272
+ onBlur?: (val: {
2273
+ value: string;
2274
+ error?: string;
2275
+ }) => void;
2276
+ /**
2277
+ * This function will be called when the user types within the input
2278
+ * element of the component. An object including the current value and
2279
+ * the error (if the value entered is not valid) will be passed to this
2280
+ * function. If there is no error, error will not be defined.
2281
+ */
2282
+ onChange?: (val: {
2283
+ value: string;
2284
+ error?: string;
2285
+ }) => void;
2286
+ /**
2287
+ * This function will be called when the user clicks on the button (submit or stop) or presses enter.
2288
+ * The type parameter indicates whether it's a "submit" or "stop" event. For submit events, "value", "files" and "selectedOption" are provided.
2289
+ */
2290
+ onButtonClick?: (val: {
2291
+ type: "submit" | "stop";
2292
+ value?: string;
2293
+ files?: File[];
2294
+ selectedOption?: SelectOption$1;
2295
+ }) => void;
2296
+ /**
2297
+ * Text to be put as placeholder of the input.
2298
+ */
2299
+ placeholder?: string;
2300
+ /**
2301
+ * Specifies the size of the component. The size will affect the width of the input.
2302
+ */
2303
+ size?: "small" | "medium" | "large" | "fillParent";
2304
+ /**
2305
+ * Value of the tabindex attribute.
2306
+ */
2307
+ tabIndex?: number;
2308
+ /**
2309
+ * Value of the input. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
2310
+ */
2311
+ value?: string;
2312
+ };
2313
+
2314
+ declare const DxcMessageInput: ({ allowRecording, callbackFile, defaultValue, disabled, error, files, isGenerating, maxLength, minLength, selectOptions, onBlur, onButtonClick, onChange, placeholder, size, tabIndex, value, }: MessageInputProps) => react.JSX.Element;
2315
+
2316
+ type NavTabsTabProps = {
2317
+ /**
2318
+ * Whether the tab is active or not.
2319
+ */
2320
+ active?: boolean;
2321
+ /**
2322
+ * Tab text label.
2323
+ */
2324
+ children: string;
2325
+ /**
2326
+ * If true, the tab will be disabled.
2327
+ */
2328
+ disabled?: boolean;
2329
+ /**
2330
+ * Page to be opened when the user clicks on the tab.
2331
+ */
2332
+ href?: string;
2333
+ /**
2334
+ * Material Symbol name or SVG element used as the icon that will be displayed in the tab.
2335
+ */
2336
+ icon?: string | SVG;
2337
+ /**
2338
+ * If the value is 'true', an empty badge will appear.
2339
+ * If it is 'false', no badge will appear.
2340
+ * If a number is put it will be shown as the label of the notification
2341
+ * in the tab, taking into account that if that number is greater than 99,
2342
+ * it will appear as '+99' in the badge.
2343
+ */
2344
+ notificationNumber?: boolean | number;
2345
+ /**
2346
+ * This function will be called when the user clicks on this tab.
2347
+ */
2348
+ onClick?: () => void;
2349
+ /**
2350
+ * Ref of the tab element.
2351
+ */
2352
+ ref?: React.Ref<HTMLAnchorElement | HTMLDivElement>;
2353
+ };
2354
+ type NavTabsProps = {
2355
+ /**
2356
+ * Contains one or more DxcNavTabs.Tab.
2357
+ */
2358
+ children: ReactNode;
2359
+ /**
2360
+ * Whether the icon should appear above or to the left of the label.
2361
+ */
2362
+ iconPosition?: "top" | "left";
2363
+ /**
2364
+ * Value of the tabindex attribute applied to each tab.
2365
+ */
2366
+ tabIndex?: number;
2367
+ };
2368
+
2369
+ declare const DxcNavTabs: {
2370
+ ({ iconPosition, tabIndex, children }: NavTabsProps): JSX.Element;
2371
+ Tab: {
2372
+ ({ active, children, disabled, href, icon, notificationNumber, onClick, ref, ...otherProps }: NavTabsTabProps): JSX.Element;
2373
+ displayName: string;
2374
+ };
2375
+ };
2376
+
2377
+ /**
2378
+ * Reference to the component.
2379
+ */
2380
+ type RefType$7 = React.Ref<HTMLInputElement>;
2381
+ type NumberInputProps = {
2382
+ /**
2383
+ * Text to be placed above the number.
2384
+ */
2385
+ label?: string;
2386
+ /**
2387
+ * Name attribute of the input element.
2388
+ */
2389
+ name?: string;
2390
+ /**
2391
+ * Initial value of the input element, only when it is uncontrolled.
2392
+ */
2393
+ defaultValue?: string;
2394
+ /**
2395
+ * Value of the input element. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
2396
+ */
2397
+ value?: string;
2398
+ /**
2399
+ * Helper text to be placed above the number.
2400
+ */
2401
+ helperText?: string;
2402
+ /**
2403
+ * Text to be put as placeholder of the number.
2404
+ */
2405
+ placeholder?: string;
2406
+ /**
2407
+ * If true, the component will be disabled.
2408
+ */
2409
+ disabled?: boolean;
2410
+ /**
2411
+ * If true, the number will be optional, showing the text '(Optional)'
2412
+ * next to the label. Otherwise, the field will be considered required
2413
+ * and an error will be passed as a parameter to the OnBlur and onChange
2414
+ * functions when it has not been filled.
2415
+ */
2416
+ optional?: boolean;
2417
+ /**
2418
+ * Prefix to be placed before the number value.
2419
+ */
2420
+ prefix?: string;
2421
+ /**
2422
+ * If true, the component will not be mutable, meaning the user can
2423
+ * not edit the control. The value won't change when pressing on the
2424
+ * up or down arrows and neither on the spin buttons.
2425
+ */
2426
+ readOnly?: boolean;
2427
+ /**
2428
+ * Ref of the component.
2429
+ */
2430
+ ref?: RefType$7;
2431
+ /**
2432
+ * Suffix to be placed after the number value.
2433
+ */
2434
+ suffix?: string;
2435
+ /**
2436
+ * Minimum value allowed by the number input. If the typed value by the user is
2437
+ * lower than min, the onBlur and onChange functions will be called with
2438
+ * the current value and an internal error informing that the current
2439
+ * value is not correct. If a valid state is reached, the error parameter
2440
+ * will not be defined in both events.
2441
+ */
2442
+ min?: number;
2443
+ /**
2444
+ * Maximum value allowed by the number input. If the typed value by the user
2445
+ * surpasses max, the onBlur and onChange functions will be called with
2446
+ * the current value and an internal error informing that the current
2447
+ * value is not correct. If a valid state is reached, the error parameter
2448
+ * will not be defined in both events.
2449
+ */
2450
+ max?: number;
2451
+ /**
2452
+ * The step interval to use when using the up and down arrows to adjust the value.
2453
+ */
2454
+ step?: number;
2455
+ /**
2456
+ * This function will be called when the user types within the input
2457
+ * element of the component. An object including the current value and
2458
+ * the error (if the value entered is not valid) will be passed to this
2459
+ * function. If there is no error, error will not be defined.
2460
+ */
2461
+ onChange?: (val: {
2462
+ value: string;
2463
+ error?: string;
2464
+ }) => void;
2465
+ /**
2466
+ * This function will be called when the input element loses the focus.
2467
+ * An object including the input value and the error (if the value
2468
+ * entered is not valid) will be passed to this function. If there is no error,
2469
+ * error will not be defined.
2470
+ */
2471
+ onBlur?: (val: {
2472
+ value: string;
2473
+ error?: string;
2474
+ }) => void;
2475
+ /**
2476
+ * If it is a defined value and also a truthy string, the component will
2477
+ * change its appearance, showing the error below the input component. If
2478
+ * the defined value is an empty string, it will reserve a space below
2479
+ * the component for a future error, but it would not change its look. In
2480
+ * case of being undefined or null, both the appearance and the space for
2481
+ * the error message would not be modified.
2482
+ */
2483
+ error?: string;
2484
+ /**
2485
+ * HTML autocomplete attribute. Lets the user specify if any permission the user agent has to provide automated assistance in filling out the input value.
2486
+ * Its value must be one of all the possible values of the HTML autocomplete attribute: 'on', 'off', 'email', 'username', 'new-password', ...
2487
+ */
2488
+ autocomplete?: string;
2489
+ /**
2490
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2491
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2492
+ */
2493
+ margin?: Space | Margin;
2494
+ /**
2495
+ * Size of the component.
2496
+ */
2497
+ size?: "small" | "medium" | "large" | "fillParent";
2498
+ /**
2499
+ * Value of the tabindex attribute.
2500
+ */
2501
+ tabIndex?: number;
2502
+ /**
2503
+ * Specifies a string to be used as the name for the number input element when no `label` is provided.
2504
+ */
2505
+ ariaLabel?: string;
2506
+ /**
2507
+ * Decides whether the number input has actions to increase or decrease the value, following the defined step.
2508
+ */
2509
+ showControls?: boolean;
2510
+ };
2511
+
2512
+ declare const DxcNumberInput: {
2513
+ ({ ariaLabel, autocomplete, defaultValue, disabled, error, helperText, label, margin, max, min, name, onBlur, onChange, optional, placeholder, prefix, readOnly, ref, showControls, size, step, suffix, tabIndex, value, }: NumberInputProps): react.JSX.Element;
2514
+ displayName: string;
2515
+ };
2516
+
2517
+ type PaginatorProps = {
2518
+ /**
2519
+ * Number of the current selected page.
2520
+ */
2521
+ currentPage?: number;
2522
+ /**
2523
+ * Number of items per page.
2524
+ */
2525
+ itemsPerPage?: number;
2526
+ /**
2527
+ * Array of numbers representing the items per page options.
2528
+ * If undefined, the select with items per page options will not be displayed.
2529
+ */
2530
+ itemsPerPageOptions?: number[];
2531
+ /**
2532
+ * This function will be called when the user selects an item per page option.
2533
+ * The number will be passed as a parameter to this function.
2534
+ */
2535
+ itemsPerPageFunction?: (itemsPerPage: number) => void;
2536
+ /**
2537
+ * Total number of items in the pages.
2538
+ */
2539
+ totalItems?: number;
2540
+ /**
2541
+ * If true, a select will be displayed with the page numbers to move through them.
2542
+ */
2543
+ showGoToPage?: boolean;
2544
+ /**
2545
+ * This function will be called when the user clicks on any of the button to change pages.
2546
+ * The page number will be passed as a parameter to this function.
2547
+ */
2548
+ onPageChange?: (page: number) => void;
2549
+ /**
2550
+ * Value of the tabindex attribute.
2551
+ */
2552
+ tabIndex?: number;
2553
+ };
2554
+
2555
+ declare const DxcPaginator: ({ currentPage, itemsPerPage, itemsPerPageOptions, totalItems, showGoToPage, onPageChange, itemsPerPageFunction, tabIndex, }: PaginatorProps) => JSX.Element;
2556
+
2557
+ declare function DxcParagraph({ children }: {
2558
+ children: ReactNode;
2559
+ }): react.JSX.Element;
2560
+
2561
+ /**
2562
+ * Reference to the component.
2563
+ */
2564
+ type RefType$6 = React.Ref<HTMLDivElement>;
2565
+ type PasswordInputProps = {
2566
+ /**
2567
+ * Specifies a string to be used as the name for the password input element when no `label` is provided.
2568
+ */
2569
+ ariaLabel?: string;
2570
+ /**
2571
+ * HTML autocomplete attribute. Lets the user specify if any permission the user agent has to provide automated assistance in filling out the input value.
2572
+ * Its value must be one of all the possible values of the HTML autocomplete attribute: 'on', 'off', 'email', 'username', 'new-password', ...
2573
+ */
2574
+ autocomplete?: string;
2575
+ /**
2576
+ * If true, the password input will have an action to clear the entered value.
2577
+ */
2578
+ clearable?: boolean;
2579
+ /**
2580
+ * If it is a defined value and also a truthy string, the component will
2581
+ * change its appearance, showing the error below the password input
2582
+ * component. If the defined value is an empty string, it will reserve a
2583
+ * space below the component for a future error, but it would not change
2584
+ * its look. In case of being undefined or null, both the appearance and
2585
+ * the space for the error message would not be modified.
2586
+ */
2587
+ error?: string;
2588
+ /**
2589
+ * Helper text to be placed above the password.
2590
+ */
2591
+ helperText?: string;
2592
+ /**
2593
+ * Text to be placed above the password input.
2594
+ */
2595
+ label?: string;
2596
+ /**
2597
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
2598
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2599
+ */
2600
+ margin?: Space | Margin;
2601
+ /**
2602
+ * Specifies the maximum length allowed by the password input.
2603
+ * This will be checked both when the input element loses the
2604
+ * focus and while typing within it. If the string entered does not
2605
+ * comply the maximum length, the onBlur and onChange functions will be called
2606
+ * with the current value and an internal error informing that the value
2607
+ * length does not comply the specified range. If a valid length is
2608
+ * reached, the error parameter of both events will not be defined.
2609
+ */
2610
+ maxLength?: number;
2611
+ /**
2612
+ * Specifies the minimum length allowed by the password input.
2613
+ * This will be checked both when the input element loses the
2614
+ * focus and while typing within it. If the string entered does not
2615
+ * comply the minimum length, the onBlur and onChange functions will be called
2616
+ * with the current value and an internal error informing that the value
2617
+ * length does not comply the specified range. If a valid length is
2618
+ * reached, the error parameter of both events will not be defined.
2619
+ */
2620
+ minLength?: number;
2621
+ /**
2622
+ * Name attribute of the input element.
2623
+ */
2624
+ name?: string;
2625
+ /**
2626
+ * This function will be called when the input element loses the focus.
2627
+ * An object including the input value and the error (if the value entered is
2628
+ * not valid) will be passed to this function. If there is no error, error will
2629
+ * not be defined.
2630
+ */
2631
+ onBlur?: (val: {
2632
+ value: string;
2633
+ error?: string;
2634
+ }) => void;
2635
+ /**
2636
+ * This function will be called when the user types within the input
2637
+ * element of the component. An object including the current value and
2638
+ * the error (if the value entered is not valid) will be passed to this
2639
+ * function. If there is no error, error will not be defined.
2640
+ * */
2641
+ onChange?: (val: {
2642
+ value: string;
2643
+ error?: string;
2644
+ }) => void;
2645
+ /**
2646
+ * Regular expression that defines the valid format allowed by the
2647
+ * password input. This will be checked both when the input element loses the
2648
+ * focus and while typing within it. If the string entered does not match
2649
+ * the pattern, the onBlur and onChange functions will be called with the
2650
+ * current value and an internal error informing that this value does not
2651
+ * match the pattern. If the pattern is met, the error parameter of both
2652
+ * events will not be defined.
2653
+ */
2654
+ pattern?: string;
2655
+ /**
2656
+ * Reference to the input element.
2657
+ */
2658
+ ref?: RefType$6;
2659
+ /**
2660
+ * Size of the component.
2661
+ */
2662
+ size?: "small" | "medium" | "large" | "fillParent";
2663
+ /**
2664
+ * Value of the tabindex attribute.
2665
+ */
2666
+ tabIndex?: number;
2667
+ /**
2668
+ * Value of the input element. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
2669
+ */
2670
+ value?: string;
2671
+ };
2672
+
2673
+ declare const DxcPasswordInput: {
2674
+ ({ label, name, value, helperText, clearable, onChange, onBlur, error, pattern, minLength, maxLength, autocomplete, margin, size, tabIndex, ariaLabel, ref, }: PasswordInputProps): react.JSX.Element;
2675
+ displayName: string;
2676
+ };
2677
+
2678
+ type PopoverProps = {
2679
+ /** Action that triggers the popover to open. */
2680
+ actionToOpen?: "click" | "hover";
2681
+ /** Alignment of the popover relative to the trigger element. */
2682
+ align?: "start" | "center" | "end";
2683
+ /** Set to true if child controls the events. It will render the child directly without wrapping it. */
2684
+ asChild?: boolean;
2685
+ /** Element that triggers the popover and works as the anchor. */
2686
+ children: React.ReactNode;
2687
+ /** Whether the popover should display a tip (arrow). */
2688
+ hasTip?: boolean;
2689
+ /** Controlled open state of the popover. If it is left undefined, it will be uncontrolled. */
2690
+ isOpen?: boolean;
2691
+ /** Distance in pixels from the trigger element to the popover. */
2692
+ offset?: number;
2693
+ /** Callback function when the popover is opened.
2694
+ * Used only in controlled mode and if the trigger lacks the events to manage the controlled behavior. */
2695
+ onOpen?: () => void;
2696
+ /** Callback function when the popover is opened and the focus is set to the first focusable element inside the popover.
2697
+ * */
2698
+ onOpenAutoFocus?: (event: Event) => void;
2699
+ /** Callback function when the popover is closed. */
2700
+ onClose?: () => void;
2701
+ /** Callback function when the popover is closed and the focus is set back to the trigger element.
2702
+ * */
2703
+ onCloseAutoFocus?: (event: Event) => void;
2704
+ /** Content to be displayed inside the popover. */
2705
+ popoverContent: React.ReactNode;
2706
+ /** Side of the trigger where the popover will appear. */
2707
+ side?: "top" | "bottom" | "left" | "right";
2708
+ };
2709
+
2710
+ declare const DxcPopover: ({ actionToOpen, align, asChild, children, hasTip, isOpen, offset, onOpen, onOpenAutoFocus, onClose, onCloseAutoFocus, popoverContent, side, }: PopoverProps) => JSX.Element;
2711
+
2712
+ type ProgressBarProps = {
2713
+ /**
2714
+ * Text to be placed above the progress bar.
2715
+ */
2716
+ label?: string;
2717
+ /**
2718
+ * Helper text to be placed under the progress bar.
2719
+ */
2720
+ helperText?: string;
2721
+ /**
2722
+ * If true, the progress bar will be displayed as a modal.
2723
+ */
2724
+ overlay?: boolean;
2725
+ /**
2726
+ * The value of the progress indicator. If it's received the component is
2727
+ * determinate otherwise is indeterminate.
2728
+ */
2729
+ value?: number;
2730
+ /**
2731
+ * If true, the value is displayed above the progress bar.
2732
+ */
2733
+ showValue?: boolean;
2734
+ /**
2735
+ * Size of the margin to be applied to the component. You can pass
2736
+ * an object with 'top', 'bottom', 'left' and 'right' properties
2737
+ * in order to specify different margin sizes.
2738
+ */
2739
+ margin?: Space | Margin;
2740
+ /**
2741
+ * Specifies a string to be used as the name for the progress bar element when no `label` is provided.
2742
+ */
2743
+ ariaLabel?: string;
2744
+ };
2745
+
2746
+ declare const DxcProgressBar: ({ label, helperText, overlay, value, showValue, margin, ariaLabel, }: ProgressBarProps) => JSX.Element;
2747
+
2748
+ type QuickNavLink = {
2749
+ /**
2750
+ * Label to be shown in the link.
2751
+ */
2752
+ label: string;
2753
+ /**
2754
+ * Sublinks of the link.
2755
+ */
2756
+ links?: QuickNavLink[];
2757
+ };
2758
+ type QuickNavProps = {
2759
+ /**
2760
+ * Title of the quick nav component.
2761
+ */
2762
+ title?: string;
2763
+ /**
2764
+ * Links to be shown inside the quick nav component.
2765
+ */
2766
+ links: QuickNavLink[];
2767
+ };
2768
+
2769
+ declare function DxcQuickNav({ links, title }: QuickNavProps): react.JSX.Element;
2770
+
2771
+ /**
2772
+ * Reference to the component.
2773
+ */
2774
+ type RefType$5 = React.Ref<HTMLDivElement>;
2775
+ type RadioGroupOption = {
2776
+ /**
2777
+ * Label of the option placed next to the radio input.
2778
+ */
2779
+ value: string;
2780
+ /**
2781
+ * Value of the option. It should be unique and
2782
+ * not an empty string, which is reserved to the optional item added
2783
+ * by 'optional' prop.
2784
+ */
2785
+ label: string;
2786
+ /**
2787
+ * If true, disables the option.
2788
+ */
2789
+ disabled?: boolean;
2790
+ };
2791
+ type RadioGroupProps = {
2792
+ /**
2793
+ * Specifies a string to be used as the name for the radio group when no `label` is provided.
2794
+ */
2795
+ ariaLabel?: string;
2796
+ /**
2797
+ * Initial value of the radio group, only when it is uncontrolled.
2798
+ */
2799
+ defaultValue?: string;
2800
+ /**
2801
+ * If true, the component will be disabled.
2802
+ */
2803
+ disabled?: boolean;
2804
+ /**
2805
+ * If it is a defined value and also a truthy string, the component will
2806
+ * change its appearance, showing the error below the radio group. If the
2807
+ * defined value is an empty string, it will reserve a space below the
2808
+ * component for a future error, but it would not change its look. In
2809
+ * case of being undefined or null, both the appearance and the space for
2810
+ * the error message would not be modified.
2811
+ */
2812
+ error?: string;
2813
+ /**
2814
+ * Helper text to be placed above the radio group.
2815
+ */
2816
+ helperText?: string;
2817
+ /**
2818
+ * Text to be placed above the radio group.
2819
+ */
2820
+ label?: string;
2821
+ /**
2822
+ * Name attribute of the input element. This attribute will allow users
2823
+ * to find the component's value during the submit event.
2824
+ */
2825
+ name?: string;
2826
+ /**
2827
+ * If true, the radio group will be optional, showing
2828
+ * (Optional) next to the label and adding a default last
2829
+ * option with an empty string as value. Otherwise, the field will be
2830
+ * considered required and an error will be passed as a parameter to the
2831
+ * OnBlur functions if an option wasn't selected.
2832
+ */
2833
+ optional?: boolean;
2834
+ /**
2835
+ * Label of the optional radio input.
2836
+ */
2837
+ optionalItemLabel?: string;
2838
+ /**
2839
+ * An array of objects representing the selectable options.
2840
+ */
2841
+ options: RadioGroupOption[];
2842
+ /**
2843
+ * This function will be called when the radio group loses the focus. An
2844
+ * object including the value and the error will be passed to this
2845
+ * function. If there is no error, error will not be defined.
2846
+ */
2847
+ onBlur?: (val: {
2848
+ value?: string;
2849
+ error?: string;
2850
+ }) => void;
2851
+ /**
2852
+ * This function will be called when the user chooses an option. The new
2853
+ * value will be passed to this function.
2854
+ */
2855
+ onChange?: (value: string) => void;
2856
+ /**
2857
+ * If true, the component will not be mutable, meaning the user can not edit the control.
2858
+ */
2859
+ readOnly?: boolean;
2860
+ /**
2861
+ * Reference to the component.
2862
+ */
2863
+ ref?: RefType$5;
2864
+ /**
2865
+ * Sets the orientation of the options within the radio group.
2866
+ */
2867
+ stacking?: "row" | "column";
2868
+ /**
2869
+ * Value of the tabindex attribute.
2870
+ */
2871
+ tabIndex?: number;
2872
+ /**
2873
+ * Value of the radio group. If undefined, the component will be
2874
+ * uncontrolled and the value will be managed internally by the
2875
+ * component.
2876
+ */
2877
+ value?: string;
2878
+ };
2879
+
2880
+ declare const DxcRadioGroup: {
2881
+ ({ ariaLabel, defaultValue, disabled, error, helperText, label, name, onBlur, onChange, optional, optionalItemLabel, options, readOnly, ref, stacking, tabIndex, value, }: RadioGroupProps): react.JSX.Element;
2882
+ displayName: string;
2883
+ };
2884
+
2885
+ type ResultSetTableColumn = {
2886
+ /**
2887
+ * Column display value.
2888
+ */
2889
+ displayValue: ReactNode;
2890
+ /**
2891
+ * Boolean value to indicate whether the column is sortable or not.
2892
+ */
2893
+ isSortable?: boolean;
2894
+ };
2895
+ type ResultSetTableRow = {
2896
+ /**
2897
+ * Value to be displayed in the cell.
2898
+ */
2899
+ displayValue: ReactNode;
2900
+ /**
2901
+ * Value to be used when sorting the table by that
2902
+ * column. If not indicated displayValue will be used for sorting.
2903
+ */
2904
+ sortValue?: string | number | Date;
2905
+ }[];
2906
+ type CommonProps$3 = {
2907
+ /**
2908
+ * An array of objects representing the columns of the table.
2909
+ */
2910
+ columns: ResultSetTableColumn[];
2911
+ /**
2912
+ * Size of the margin to be applied to the component. You can pass an object with 'top',
2913
+ * 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
2914
+ */
2915
+ margin?: Space | Margin;
2916
+ /**
2917
+ * Determines the visual style and layout
2918
+ * - "default": The default mode with big spacing
2919
+ * - "reduced": A reduced mode with minimal spacing for dense tables
2920
+ */
2921
+ mode?: "default" | "reduced";
2922
+ /**
2923
+ * An array of objects representing the rows of the table, you will have
2924
+ * as many objects as columns in the table.
2925
+ */
2926
+ rows: ResultSetTableRow[];
2927
+ /**
2928
+ * Value of the tabindex attribute applied to the sortable icon.
2929
+ */
2930
+ tabIndex?: number;
2931
+ /**
2932
+ * A fixed height must be set to enable virtualization.
2933
+ * If no height is provided, the table will automatically adjust to the height of its content, and virtualization will not be applied.
2934
+ */
2935
+ virtualizedHeight?: string;
2936
+ };
2937
+ type PaginatedProps = CommonProps$3 & {
2938
+ hidePaginator?: false;
2939
+ /**
2940
+ * If true, a select component for navigation between pages will be displayed.
2941
+ */
2942
+ showGoToPage?: boolean;
2943
+ /**
2944
+ * Number of items per page.
2945
+ */
2946
+ itemsPerPage?: number;
2947
+ /**
2948
+ * An array of numbers representing the items per page options.
2949
+ */
2950
+ itemsPerPageOptions?: number[];
2951
+ /**
2952
+ * This function will be called when the user selects an item per page
2953
+ * option. The value selected will be passed as a parameter.
2954
+ */
2955
+ itemsPerPageFunction?: (value: number) => void;
2956
+ };
2957
+ type NonPaginatedProps = CommonProps$3 & {
2958
+ /**
2959
+ * If true, paginator will not be displayed.
2960
+ */
2961
+ hidePaginator: true;
2962
+ /**
2963
+ * Number of items per page.
2964
+ */
2965
+ itemsPerPage?: never;
2966
+ /**
2967
+ * An array of numbers representing the items per page options.
2968
+ */
2969
+ itemsPerPageOptions?: never;
2970
+ /**
2971
+ * This function will be called when the user selects an item per page
2972
+ * option. The value selected will be passed as a parameter.
2973
+ */
2974
+ itemsPerPageFunction?: never;
2975
+ /**
2976
+ * If true, a select component for navigation between pages will be displayed.
2977
+ */
2978
+ showGoToPage?: never;
2979
+ };
2980
+ type ResultSetTableProps = PrettifyTypes<PaginatedProps | NonPaginatedProps>;
2981
+
2982
+ declare const DxcResultsetTable: {
2983
+ ({ columns, hidePaginator, itemsPerPage, itemsPerPageFunction, itemsPerPageOptions, margin, mode, rows, showGoToPage, tabIndex, virtualizedHeight, }: ResultSetTableProps): react.JSX.Element;
2984
+ ActionsCell: ({ actions }: ActionsCellProps) => react.JSX.Element;
2985
+ };
2986
+
2987
+ /**
2988
+ * Reference to the select component.
2989
+ */
2990
+ type RefType$4 = React.Ref<HTMLDivElement>;
2991
+ type SelectOption = {
2992
+ /**
2993
+ * Element used as the icon that will be placed before the option label.
2994
+ * It can be an inline SVG or Material Symbol name. If the url option
2995
+ * is the chosen one, take into account that the component's
2996
+ * color styling tokens will not be applied to the image.
2997
+ */
2998
+ icon?: string | SVG;
2999
+ /**
3000
+ * Label of the option to be shown in the select's listbox.
3001
+ */
3002
+ label: string;
3003
+ /**
3004
+ * Value of the option. It should be unique and
3005
+ * not an empty string, which is reserved to the empty option added
3006
+ * by optional prop.
3007
+ */
3008
+ value: string;
3009
+ };
3010
+ type SelectOptionGroup = {
3011
+ /**
3012
+ * Label of the group to be shown in the select's listbox.
3013
+ */
3014
+ label: string;
3015
+ /**
3016
+ * List of the grouped options.
3017
+ */
3018
+ options: SelectOption[];
3019
+ };
3020
+ type CommonProps$2 = {
3021
+ /**
3022
+ * Specifies a string to be used as the name for the select element when no `label` is provided.
3023
+ */
3024
+ ariaLabel?: string;
3025
+ /**
3026
+ * If true, the component will be disabled.
3027
+ */
3028
+ disabled?: boolean;
3029
+ /**
3030
+ * If it is a defined value and also a truthy string, the component will
3031
+ * change its appearance, showing the error below the select component.
3032
+ * If the defined value is an empty string, it will reserve a space below
3033
+ * the component for a future error, but it would not change its look. In
3034
+ * case of being undefined or null, both the appearance and the space for
3035
+ * the error message would not be modified.
3036
+ */
3037
+ error?: string;
3038
+ /**
3039
+ * Helper text to be placed above the select.
3040
+ */
3041
+ helperText?: string;
3042
+ /**
3043
+ * Text to be placed above the select.
3044
+ */
3045
+ label?: string;
3046
+ /**
3047
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3048
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3049
+ */
3050
+ margin?: Space | Margin;
3051
+ /**
3052
+ * Name attribute of the input element. This attribute will allow users
3053
+ * to find the component's value during the submit event. In this event,
3054
+ * the component's value will always be a regular string, for both single
3055
+ * and multiple selection modes, being a single option value in the first case
3056
+ * and more than one value when multiple selection is available, separated by commas.
3057
+ */
3058
+ name?: string;
3059
+ /**
3060
+ * If true, the select will be optional, showing '(Optional)'
3061
+ * next to the label and adding a default first option with an empty string as value,
3062
+ * been the placeholder (if defined) its label. Otherwise, the field will be
3063
+ * considered required and an error will be passed as a parameter to the
3064
+ * OnBlur and onChange functions if an option wasn't selected.
3065
+ */
3066
+ optional?: boolean;
3067
+ /**
3068
+ * An array of objects representing the selectable options.
3069
+ */
3070
+ options: SelectOption[] | SelectOptionGroup[];
3071
+ /**
3072
+ * Text to be put as placeholder of the select.
3073
+ */
3074
+ placeholder?: string;
3075
+ /**
3076
+ * Reference to the select component.
3077
+ */
3078
+ ref?: RefType$4;
3079
+ /**
3080
+ * If true, enables search functionality.
3081
+ */
3082
+ searchable?: boolean;
3083
+ /**
3084
+ * Defines the search mode when searchable is true.
3085
+ * If true, matches options that start with the search text.
3086
+ * If false, matches options that contain the search text anywhere in their label.
3087
+ */
3088
+ searchByStartsWith?: boolean;
3089
+ /**
3090
+ * Size of the component.
3091
+ */
3092
+ size?: "small" | "medium" | "large" | "fillParent";
3093
+ /**
3094
+ * Value of the tabindex attribute.
3095
+ */
3096
+ tabIndex?: number;
3097
+ /**
3098
+ * A fixed height must be set to enable virtualization.
3099
+ * If no height is provided, the select will automatically adjust to the height of its content, and virtualization will not be applied.
3100
+ */
3101
+ virtualizedHeight?: string;
3102
+ };
3103
+ type SingleSelect = CommonProps$2 & {
3104
+ /**
3105
+ * Initial value of the select, only when it is uncontrolled.
3106
+ */
3107
+ defaultValue?: string;
3108
+ /**
3109
+ * Enables users to select multiple items from the list.
3110
+ */
3111
+ enableSelectAll?: never;
3112
+ /**
3113
+ * If true, the select component will support multiple selected options.
3114
+ * In that case, value will be an array of strings with each selected
3115
+ * option value.
3116
+ */
3117
+ multiple?: false;
3118
+ /**
3119
+ * This function will be called when the select loses the focus. An
3120
+ * object including the value and the error (if the value
3121
+ * selected is not valid) will be passed to this function. If there is no error,
3122
+ * error will not be defined.
3123
+ */
3124
+ onBlur?: (val: {
3125
+ value: string;
3126
+ error?: string;
3127
+ }) => void;
3128
+ /**
3129
+ * This function will be called when the user selects an option.
3130
+ * An object including the current value and the error (if the value entered is not valid)
3131
+ * will be passed to this function. If there is no error, error will not be defined.
3132
+ */
3133
+ onChange?: (val: {
3134
+ value: string;
3135
+ error?: string;
3136
+ }) => void;
3137
+ /**
3138
+ * Value of the select. If undefined, the component will be uncontrolled
3139
+ * and the value will be managed internally by the component.
3140
+ */
3141
+ value?: string;
3142
+ };
3143
+ type MultipleSelect = CommonProps$2 & {
3144
+ /**
3145
+ * Initial value of the select, only when it is uncontrolled.
3146
+ */
3147
+ defaultValue?: string[];
3148
+ /**
3149
+ * Enables users to select multiple items from the list.
3150
+ */
3151
+ enableSelectAll?: boolean;
3152
+ /**
3153
+ * If true, the select component will support multiple selected options.
3154
+ * In that case, value will be an array of strings with each selected
3155
+ * option value.
3156
+ */
3157
+ multiple: true;
3158
+ /**
3159
+ * This function will be called when the select loses the focus. An
3160
+ * object including the selected values and the error (if the value
3161
+ * selected is not valid) will be passed to this function. If there is no error,
3162
+ * error will be null.
3163
+ */
3164
+ onBlur?: (val: {
3165
+ value: string[];
3166
+ error?: string;
3167
+ }) => void;
3168
+ /**
3169
+ * This function will be called when the user selects an option.
3170
+ * An object including the current selected values and the error (if the value entered is not valid)
3171
+ * will be passed to this function. If there is no error, error will be null.
3172
+ */
3173
+ onChange?: (val: {
3174
+ value: string[];
3175
+ error?: string;
3176
+ }) => void;
3177
+ /**
3178
+ * Value of the select. If undefined, the component will be uncontrolled
3179
+ * and the value will be managed internally by the component.
3180
+ */
3181
+ value?: string[];
3182
+ };
3183
+ type SelectProps = PrettifyTypes<SingleSelect | MultipleSelect>;
3184
+
3185
+ declare const DxcSelect: {
3186
+ ({ ariaLabel, defaultValue, disabled, enableSelectAll, error, helperText, label, margin, multiple, name, onBlur, onChange, optional, options, placeholder, ref, searchable, searchByStartsWith, size, tabIndex, value, virtualizedHeight, }: SelectProps): react.JSX.Element;
3187
+ displayName: string;
3188
+ };
3189
+
3190
+ /**
3191
+ * Reference to the component.
3192
+ */
3193
+ type RefType$3 = React.Ref<HTMLDivElement>;
3194
+ type SliderProps = {
3195
+ /**
3196
+ * Specifies a string to be used as the name for the slider element when no `label` is provided.
3197
+ */
3198
+ ariaLabel?: string;
3199
+ /**
3200
+ * Initial value of the slider, only when it is uncontrolled.
3201
+ */
3202
+ defaultValue?: number;
3203
+ /**
3204
+ * If true, the component will be disabled.
3205
+ */
3206
+ disabled?: boolean;
3207
+ /**
3208
+ * Helper text to be placed above the slider.
3209
+ */
3210
+ helperText?: string;
3211
+ /**
3212
+ * Text to be placed above the slider.
3213
+ */
3214
+ label?: string;
3215
+ /**
3216
+ * This function will be used to format the labels displayed next to the slider.
3217
+ * The value will be passed as parameter and the function must return the formatted value.
3218
+ */
3219
+ labelFormatCallback?: (value: number) => string;
3220
+ /**
3221
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3222
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3223
+ */
3224
+ margin?: Space | Margin;
3225
+ /**
3226
+ * Whether the marks between each step should be shown or not.
3227
+ */
3228
+ marks?: boolean;
3229
+ /**
3230
+ * The maximum value available for selection.
3231
+ */
3232
+ maxValue?: number;
3233
+ /**
3234
+ * The minimum value available for selection.
3235
+ */
3236
+ minValue?: number;
3237
+ /**
3238
+ * Name attribute of the input element.
3239
+ */
3240
+ name?: string;
3241
+ /**
3242
+ * This function will be called when the slider changes its value, as it's being dragged.
3243
+ * The new value will be passed as a parameter when this function is executed.
3244
+ */
3245
+ onChange?: (value: number) => void;
3246
+ /**
3247
+ * This function will be called when the slider changes its value, but only when the thumb is released.
3248
+ * The new value will be passed as a parameter when this function is executed.
3249
+ */
3250
+ onDragEnd?: (value: number) => void;
3251
+ /**
3252
+ * Reference to the component.
3253
+ */
3254
+ ref?: RefType$3;
3255
+ /**
3256
+ * Whether the input element for displaying/controlling the slider value should be displayed next to the slider.
3257
+ */
3258
+ showInput?: boolean;
3259
+ /**
3260
+ * Whether the min/max value labels should be displayed next to the slider
3261
+ */
3262
+ showLimitsValues?: boolean;
3263
+ /**
3264
+ * Size of the component.
3265
+ */
3266
+ size?: "medium" | "large" | "fillParent";
3267
+ /**
3268
+ * The step interval between values available for selection.
3269
+ */
3270
+ step?: number;
3271
+ /**
3272
+ * The selected value. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
3273
+ */
3274
+ value?: number;
3275
+ };
3276
+
3277
+ declare const DxcSlider: {
3278
+ ({ ariaLabel, defaultValue, disabled, helperText, label, labelFormatCallback, margin, marks, maxValue, minValue, name, onChange, onDragEnd, ref, showLimitsValues, showInput, size, step, value, }: SliderProps): react.JSX.Element;
3279
+ displayName: string;
3280
+ };
3281
+
3282
+ type SpinnerProps = {
3283
+ /**
3284
+ * 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.
3285
+ */
3286
+ ariaLabel?: string;
3287
+ /**
3288
+ * If true, the color is inherited from the closest parent with a defined color. This allows users to adapt the spinner
3289
+ * to the semantic color of the use case in which it is used.
3290
+ */
3291
+ inheritColor?: boolean;
3292
+ /**
3293
+ * Text to be placed inside the spinner.
3294
+ */
3295
+ label?: string;
3296
+ /**
3297
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3298
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3299
+ */
3300
+ margin?: Space | Margin;
3301
+ /**
3302
+ * Available modes of the spinner.
3303
+ */
3304
+ mode?: "large" | "small" | "overlay";
3305
+ /**
3306
+ * If true, the value is displayed inside the spinner..
3307
+ */
3308
+ showValue?: boolean;
3309
+ /**
3310
+ * The value of the progress indicator. If it's received the
3311
+ * component is determinate, otherwise is indeterminate.
3312
+ */
3313
+ value?: number;
3314
+ };
3315
+
3316
+ declare const DxcSpinner: ({ ariaLabel, inheritColor, label, margin, mode, showValue, value, }: SpinnerProps) => react.JSX.Element;
3317
+
3318
+ type StatusLightProps = {
3319
+ /**
3320
+ * It will define the color of the light based on its semantic meaning.
3321
+ */
3322
+ mode?: Mode;
3323
+ /**
3324
+ * An auxiliar text that will add some context to the status.
3325
+ */
3326
+ label: string;
3327
+ /**
3328
+ * Size of the component. Should be defined based on its importance and/or available space.
3329
+ */
3330
+ size?: "small" | "medium" | "large";
3331
+ };
3332
+
3333
+ declare function DxcStatusLight({ label, mode, size }: StatusLightProps): react.JSX.Element;
3334
+
3335
+ /**
3336
+ * Reference to the component.
3337
+ */
3338
+ type RefType$2 = React.Ref<HTMLDivElement>;
3339
+ type SwitchProps = {
3340
+ /**
3341
+ * Specifies a string to be used as the name for the switch element when no `label` is provided.
3342
+ */
3343
+ ariaLabel?: string;
3344
+ /**
3345
+ * If true, the component is checked. If undefined, the component will be uncontrolled
3346
+ * and the checked attribute will be managed internally by the component.
3347
+ */
3348
+ checked?: boolean;
3349
+ /**
3350
+ * Initial state of the switch, only when it is uncontrolled.
3351
+ */
3352
+ defaultChecked?: boolean;
3353
+ /**
3354
+ * If true, the component will be disabled.
3355
+ */
3356
+ disabled?: boolean;
3357
+ /**
3358
+ * Text to be placed next to the switch.
3359
+ */
3360
+ label?: string;
3361
+ /**
3362
+ * Whether the label should appear after or before the switch.
3363
+ */
3364
+ labelPosition?: "before" | "after";
3365
+ /**
3366
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3367
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3368
+ */
3369
+ margin?: Space | Margin;
3370
+ /**
3371
+ * Name attribute of the input element.
3372
+ */
3373
+ name?: string;
3374
+ /**
3375
+ * This function will be called when the user changes the state of the switch.
3376
+ * The new value of the checked attribute will be passed as a parameter.
3377
+ */
3378
+ onChange?: (checked: boolean) => void;
3379
+ /**
3380
+ * If true, the component will display '(Optional)' next to the label.
3381
+ */
3382
+ optional?: boolean;
3383
+ /**
3384
+ * Reference to the component.
3385
+ */
3386
+ ref?: RefType$2;
3387
+ /**
3388
+ * Size of the component.
3389
+ */
3390
+ size?: "small" | "medium" | "large" | "fillParent" | "fitContent";
3391
+ /**
3392
+ * Value of the tabindex.
3393
+ */
3394
+ tabIndex?: number;
3395
+ /**
3396
+ * Will be passed to the value attribute of the html input element. When inside a form,
3397
+ * this value will be only submitted if the switch is checked.
3398
+ */
3399
+ value?: string;
3400
+ };
3401
+
3402
+ declare const DxcSwitch: {
3403
+ ({ ariaLabel, checked, defaultChecked, disabled, label, labelPosition, margin, name, onChange, optional, ref, size, tabIndex, value, }: SwitchProps): react.JSX.Element;
3404
+ displayName: string;
3405
+ };
3406
+
3407
+ type BaseActionCell = {
3408
+ disabled?: boolean;
3409
+ tabIndex?: number;
3410
+ title: string;
3411
+ };
3412
+ type TableActionCell = PrettifyTypes<BaseActionCell & ({
3413
+ icon: string | SVG;
3414
+ onClick: () => void;
3415
+ options?: never;
3416
+ } | {
3417
+ icon?: never;
3418
+ onClick: (value?: string) => void;
3419
+ options: DropdownOption[];
3420
+ })>;
3421
+ type ActionsCellProps = {
3422
+ /**
3423
+ * It represents a list of interactive elements that will work as buttons or as a dropdown. Those with an icon from Material Symbols
3424
+ * or a SVG are treated as buttons. If any element lacks an icon and includes options, it is interpreted as a dropdown.
3425
+ * Only the first action with options will be displayed and only up to 3 actions.
3426
+ * In the case of the dropdown the click function will pass the value assigned to the option.
3427
+ */
3428
+ actions: TableActionCell[];
3429
+ };
3430
+ type TableProps = {
3431
+ /**
3432
+ * The center section of the table. Can be used to render custom
3433
+ * content in this area.
3434
+ */
3435
+ children: ReactNode;
3436
+ /**
3437
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3438
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3439
+ */
3440
+ margin?: Space | Margin;
3441
+ /**
3442
+ * Determines the visual style and layout
3443
+ * - "default": Default table size.
3444
+ * - "reduced": More compact table with less spacing for high density information.
3445
+ */
3446
+ mode?: "default" | "reduced";
3447
+ };
3448
+
3449
+ declare const DxcTable: {
3450
+ ({ children, margin, mode }: TableProps): react.JSX.Element;
3451
+ ActionsCell: ({ actions }: ActionsCellProps) => react.JSX.Element;
3452
+ };
3453
+
3454
+ type CommonTabProps = {
3455
+ defaultActive?: boolean;
3456
+ active?: boolean;
3457
+ title?: string;
3458
+ disabled?: boolean;
3459
+ notificationNumber?: boolean | number;
3460
+ children: ReactNode;
3461
+ onClick?: () => void;
3462
+ onHover?: () => void;
3463
+ ref?: React.Ref<HTMLButtonElement>;
3464
+ };
3465
+ type TabsTabProps = PrettifyTypes<CommonTabProps & ({
3466
+ tabId: string;
3467
+ label?: string;
3468
+ icon?: string | SVG;
3469
+ } | (CommonTabProps & {
3470
+ tabId?: string;
3471
+ label: string;
3472
+ icon?: string | SVG;
3473
+ }))>;
3474
+ type TabsProps = {
3475
+ /**
3476
+ * Whether the icon should appear above or to the left of the label.
3477
+ */
3478
+ iconPosition?: "top" | "left";
3479
+ /**
3480
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3481
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3482
+ */
3483
+ margin?: Space | Margin;
3484
+ /**
3485
+ * Value of the tabindex attribute applied to each tab.
3486
+ */
3487
+ tabIndex?: number;
3488
+ /**
3489
+ * Contains one or more DxcTabs.Tab.
3490
+ */
3491
+ children?: ReactNode;
3492
+ };
3493
+
3494
+ declare const DxcTabs: {
3495
+ ({ children, iconPosition, margin, tabIndex }: TabsProps): react.JSX.Element;
3496
+ Tab: {
3497
+ ({ active, disabled, icon, label, notificationNumber, onClick, onHover, ref, title, tabId, }: TabsTabProps): react.JSX.Element;
3498
+ displayName: string;
3499
+ };
3500
+ };
3501
+
3502
+ /**
3503
+ * Reference to the component.
3504
+ */
3505
+ type RefType$1 = React.Ref<HTMLDivElement>;
3506
+ type TextAreaProps = {
3507
+ /**
3508
+ * Specifies a string to be used as the name for the textarea element when no `label` is provided.
3509
+ */
3510
+ ariaLabel?: string;
3511
+ /**
3512
+ * HTML autocomplete attribute. Lets the user specify if any permission the user agent has to provide automated assistance in filling out the textarea value.
3513
+ * Its value must be one of all the possible values of the HTML autocomplete attribute: 'on', 'off', 'email', 'username', 'new-password', ...
3514
+ */
3515
+ autocomplete?: string;
3516
+ /**
3517
+ * If true, the component will be disabled.
3518
+ */
3519
+ disabled?: boolean;
3520
+ /**
3521
+ * Initial value of the textarea, only when it is uncontrolled.
3522
+ */
3523
+ defaultValue?: string;
3524
+ /**
3525
+ * If it is a defined value and also a truthy string, the component will
3526
+ * change its appearance, showing the error below the textarea. If the
3527
+ * defined value is an empty string, it will reserve a space below the
3528
+ * component for a future error, but it would not change its look. In
3529
+ * case of being undefined or null, both the appearance and the space for
3530
+ * the error message would not be modified.
3531
+ */
3532
+ error?: string;
3533
+ /**
3534
+ * Helper text to be placed above the textarea.
3535
+ */
3536
+ helperText?: string;
3537
+ /**
3538
+ * Text to be placed above the textarea.
3539
+ */
3540
+ label?: string;
3541
+ /**
3542
+ * Specifies the maximum length allowed by the textarea.
3543
+ * This will be checked both when the textarea loses the
3544
+ * focus and while typing within it. If the string entered does not
3545
+ * comply the maximum length, the onBlur and onChange functions will be called
3546
+ * with the current value and an internal error informing that the value
3547
+ * length does not comply the specified range. If a valid length is
3548
+ * reached, the error parameter of both events will not be defined.
3549
+ */
3550
+ maxLength?: number;
3551
+ /**
3552
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3553
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3554
+ */
3555
+ margin?: Space | Margin;
3556
+ /**
3557
+ * Specifies the minimum length allowed by the textarea.
3558
+ * This will be checked both when the textarea loses the
3559
+ * focus and while typing within it. If the string entered does not
3560
+ * comply the minimum length, the onBlur and onChange functions will be called
3561
+ * with the current value and an internal error informing that the value
3562
+ * length does not comply the specified range. If a valid length is
3563
+ * reached, the error parameter of both events will not be defined.
3564
+ */
3565
+ minLength?: number;
3566
+ /**
3567
+ * Name attribute of the textarea element.
3568
+ */
3569
+ name?: string;
3570
+ /**
3571
+ * This function will be called when the textarea loses the focus. An
3572
+ * object including the textarea value and the error (if the value entered
3573
+ * is not valid) will be passed to this function. If there is no error,
3574
+ * error will not be defined.
3575
+ */
3576
+ onBlur?: (val: {
3577
+ value: string;
3578
+ error?: string;
3579
+ }) => void;
3580
+ /**
3581
+ * This function will be called when the user types within the textarea.
3582
+ * An object including the current value and the error (if the value
3583
+ * entered is not valid) will be passed to this function.
3584
+ * If there is no error, error will not be defined.
3585
+ */
3586
+ onChange?: (val: {
3587
+ value: string;
3588
+ error?: string;
3589
+ }) => void;
3590
+ /**
3591
+ * If true, the textarea will be optional, showing '(Optional)'
3592
+ * next to the label. Otherwise, the field will be considered required
3593
+ * and an error will be passed as a parameter to the OnBlur and onChange functions
3594
+ * when it has not been filled.
3595
+ */
3596
+ optional?: boolean;
3597
+ /**
3598
+ * Regular expression that defines the valid format allowed by the
3599
+ * textarea. This will be checked both when the textarea loses the focus
3600
+ * and while typing within it. If the string entered does not match the
3601
+ * pattern, the onBlur and onChange functions will be called with the
3602
+ * current value and an internal error informing that this value does not
3603
+ * match the pattern. If the pattern is met, the error parameter of both
3604
+ * events will not be defined.
3605
+ */
3606
+ pattern?: string;
3607
+ /**
3608
+ * Text to be put as placeholder of the textarea.
3609
+ */
3610
+ placeholder?: string;
3611
+ /**
3612
+ * If true, the component will not be mutable, meaning the user can not edit the control.
3613
+ */
3614
+ readOnly?: boolean;
3615
+ /**
3616
+ * Reference to the container element of the textarea component.
3617
+ */
3618
+ ref?: RefType$1;
3619
+ /**
3620
+ * Number of rows of the textarea.
3621
+ */
3622
+ rows?: number;
3623
+ /**
3624
+ * Size of the component.
3625
+ */
3626
+ size?: "small" | "medium" | "large" | "fillParent";
3627
+ /**
3628
+ * Value of the tabindex attribute.
3629
+ */
3630
+ tabIndex?: number;
3631
+ /**
3632
+ * Value of the textarea. If undefined, the component will be uncontrolled and the value will be managed internally.
3633
+ */
3634
+ value?: string;
3635
+ /**
3636
+ * Defines the textarea's ability to resize vertically. It can be:
3637
+ * - 'auto': The textarea grows or shrinks automatically in order to fit the content.
3638
+ * - 'manual': The height of the textarea is enabled to be manually modified.
3639
+ * - 'none': The textarea has a fixed height and can't be modified.
3640
+ */
3641
+ verticalGrow?: "auto" | "manual" | "none";
3642
+ };
3643
+
3644
+ declare const DxcTextarea: {
3645
+ ({ ariaLabel, autocomplete, defaultValue, disabled, error, helperText, label, margin, maxLength, minLength, name, onBlur, onChange, optional, pattern, placeholder, readOnly, ref, rows, size, tabIndex, value, verticalGrow, }: TextAreaProps): react.JSX.Element;
3646
+ displayName: string;
3647
+ };
3648
+
3649
+ type TextInputProps = {
3650
+ /**
3651
+ * Sets the alignment inside the input.
3652
+ */
3653
+ alignment?: "left" | "right";
3654
+ /**
3655
+ * Text to be placed above the input. This label will be used as the aria-label attribute of the list of suggestions.
3656
+ */
3657
+ label?: string;
3658
+ /**
3659
+ * Name attribute of the input element.
3660
+ */
3661
+ name?: string;
3662
+ /**
3663
+ * Initial value of the input, only when it is uncontrolled.
3664
+ */
3665
+ defaultValue?: string;
3666
+ /**
3667
+ * Value of the input. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
3668
+ */
3669
+ value?: string;
3670
+ /**
3671
+ * Helper text to be placed above the input.
3672
+ */
3673
+ helperText?: string;
3674
+ /**
3675
+ * Text to be put as placeholder of the input.
3676
+ */
3677
+ placeholder?: string;
3678
+ /**
3679
+ * Action to be shown in the input.
3680
+ */
3681
+ action?: Action$1;
3682
+ /**
3683
+ * If true, the input will have an action to clear the entered value.
3684
+ */
3685
+ clearable?: boolean;
3686
+ /**
3687
+ * If true, the component will be disabled.
3688
+ */
3689
+ disabled?: boolean;
3690
+ /**
3691
+ * If true, the component will not be mutable, meaning the user can not edit the control.
3692
+ * In addition, the clear action will not be displayed even if the flag is set to true
3693
+ * and the custom action will not execute its onClick event.
3694
+ */
3695
+ readOnly?: boolean;
3696
+ /**
3697
+ * Ref to the input element.
3698
+ */
3699
+ ref?: React.Ref<HTMLInputElement>;
3700
+ /**
3701
+ * If true, the input will be optional, showing '(Optional)'
3702
+ * next to the label. Otherwise, the field will be considered required and an error will be
3703
+ * passed as a parameter to the OnBlur and onChange functions when it has
3704
+ * not been filled.
3705
+ */
3706
+ optional?: boolean;
3707
+ /**
3708
+ * Prefix to be placed before the input value.
3709
+ */
3710
+ prefix?: string;
3711
+ /**
3712
+ * Suffix to be placed after the input value.
3713
+ */
3714
+ suffix?: string;
3715
+ /**
3716
+ * This function will be called when the user types within the input
3717
+ * element of the component. An object including the current value and
3718
+ * the error (if the value entered is not valid) will be passed to this
3719
+ * function. If there is no error, error will not be defined.
3720
+ */
3721
+ onChange?: (val: {
3722
+ value: string;
3723
+ error?: string;
3724
+ }) => void;
3725
+ /**
3726
+ * This function will be called when the input element loses the focus.
3727
+ * An object including the input value and the error (if the value
3728
+ * entered is not valid) will be passed to this function. If there is no error,
3729
+ * error will not be defined.
3730
+ */
3731
+ onBlur?: (val: {
3732
+ value: string;
3733
+ error?: string;
3734
+ }) => void;
3735
+ /**
3736
+ * If it is a defined value and also a truthy string, the component will
3737
+ * change its appearance, showing the error below the input component. If
3738
+ * the defined value is an empty string, it will reserve a space below
3739
+ * the component for a future error, but it would not change its look. In
3740
+ * case of being undefined or null, both the appearance and the space for
3741
+ * the error message would not be modified.
3742
+ */
3743
+ error?: string;
3744
+ /**
3745
+ * These are the options to be displayed as suggestions. It can be either an array or a function:
3746
+ * - Array: Array of options that will be filtered by the component.
3747
+ * - Function: This function will be called when the user changes the value.
3748
+ * It will receive the new value as a parameter and should return a promise
3749
+ * that resolves to an array with the filtered options.
3750
+ */
3751
+ suggestions?: string[] | ((value: string) => Promise<string[]>);
3752
+ /**
3753
+ * Regular expression that defines the valid format allowed by the input.
3754
+ * This will be checked both when the input element loses the focus and
3755
+ * while typing within it. If the string entered does not match the
3756
+ * pattern, the onBlur and onChange functions will be called with the
3757
+ * current value and an internal error informing that this value does not
3758
+ * match the pattern. If the pattern is met, the error parameter of both
3759
+ * events will not be defined.
3760
+ */
3761
+ pattern?: string;
3762
+ /**
3763
+ * Specifies the minimum length allowed by the input.
3764
+ * This will be checked both when the input element loses the
3765
+ * focus and while typing within it. If the string entered does not
3766
+ * comply the minimum length, the onBlur and onChange functions will be called
3767
+ * with the current value and an internal error informing that the value
3768
+ * length does not comply the specified range. If a valid length is
3769
+ * reached, the error parameter of both events will not be defined.
3770
+ */
3771
+ minLength?: number;
3772
+ /**
3773
+ * Specifies the maximum length allowed by the input.
3774
+ * This will be checked both when the input element loses the
3775
+ * focus and while typing within it. If the string entered does not
3776
+ * comply the maximum length, the onBlur and onChange functions will be called
3777
+ * with the current value and an internal error informing that the value
3778
+ * length does not comply the specified range. If a valid length is
3779
+ * reached, the error parameter of both events will not be defined.
3780
+ */
3781
+ maxLength?: number;
3782
+ /**
3783
+ * HTML autocomplete attribute. Lets the user specify if any permission the user agent has to provide automated assistance in filling out the input value.
3784
+ * Its value must be one of all the possible values of the HTML autocomplete attribute: 'on', 'off', 'email', 'username', 'new-password', ...
3785
+ */
3786
+ autocomplete?: string;
3787
+ /**
3788
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
3789
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
3790
+ */
3791
+ margin?: Space | Margin;
3792
+ /**
3793
+ * Size of the component.
3794
+ */
3795
+ size?: "small" | "medium" | "large" | "fillParent";
3796
+ /**
3797
+ * Value of the tabindex attribute.
3798
+ */
3799
+ tabIndex?: number;
3800
+ /**
3801
+ * Specifies a string to be used as the name for the textInput element when no `label` is provided.
3802
+ */
3803
+ ariaLabel?: string;
3804
+ };
3805
+
3806
+ declare const DxcTextInput: {
3807
+ ({ alignment, action, ariaLabel, autocomplete, clearable, defaultValue, disabled, error, helperText, label, margin, maxLength, minLength, name, optional, placeholder, prefix, readOnly, suffix, onBlur, onChange, pattern, ref, size, suggestions, tabIndex, value, }: TextInputProps): JSX.Element;
3808
+ displayName: string;
3809
+ };
3810
+
3811
+ /**
3812
+ * Reference to the component.
3813
+ */
3814
+ type RefType = React.Ref<HTMLDivElement>;
3815
+ type TimeInputProps = {
3816
+ /**
3817
+ * Specifies a string to be used as the name for the timeInput element when no `label` is provided.
3818
+ */
3819
+ ariaLabel?: string;
3820
+ /**
3821
+ * If true, the input will have an action to clear the entered value.
3822
+ */
3823
+ clearable?: boolean;
3824
+ /**
3825
+ * Initial value of the input, only when it is uncontrolled.
3826
+ */
3827
+ defaultValue?: string;
3828
+ /**
3829
+ * If true, the component will be disabled.
3830
+ */
3831
+ disabled?: boolean;
3832
+ /**
3833
+ * If it is a defined value and also a truthy string, the component will
3834
+ * change its appearance, showing the error below the input component. If
3835
+ * the defined value is an empty string, it will reserve a space below
3836
+ * the component for a future error, but it would not change its look. In
3837
+ * case of being undefined or null, both the appearance and the space for
3838
+ * the error message would not be modified.
3839
+ */
3840
+ error?: string;
3841
+ /**
3842
+ * Helper text to be placed above the input.
3843
+ */
3844
+ helperText?: string;
3845
+ /**
3846
+ * Text to be placed above the input.
3847
+ */
3848
+ label?: string;
3849
+ /**
3850
+ * Name attribute of the input element.
3851
+ */
3852
+ name?: string;
3853
+ /**
3854
+ * This function will be called when the input element loses the focus.
3855
+ * An object including the input value and the error (if the value
3856
+ * entered is not valid) will be passed to this function. If there is no error,
3857
+ * error will not be defined.
3858
+ */
3859
+ onBlur?: (val: {
3860
+ value: string;
3861
+ error?: string;
3862
+ }) => void;
3863
+ /**
3864
+ * This function will be called when the user types within the input
3865
+ * or selects a value in the dropdown element of the component.
3866
+ */
3867
+ onChange?: (value: string) => void;
3868
+ /**
3869
+ * If true, the input will be optional, showing '(Optional)'
3870
+ * next to the label. Otherwise, the field will be considered required and an error will be
3871
+ * passed as a parameter to the OnBlur function when it has
3872
+ * not been filled.
3873
+ */
3874
+ optional?: boolean;
3875
+ /**
3876
+ * If true, the component will not be mutable, meaning the user can not edit the control.
3877
+ * In addition, the clear action will not be displayed even if the flag is set to true.
3878
+ */
3879
+ readOnly?: boolean;
3880
+ /**
3881
+ * Reference to the component.
3882
+ */
3883
+ ref?: RefType;
3884
+ /**
3885
+ * If true, the component will display seconds and allow the user to input them. Otherwise, seconds will not be shown and the user will not be able to input them.
3886
+ */
3887
+ showSeconds?: boolean;
3888
+ /**
3889
+ * Size of the component.
3890
+ */
3891
+ size?: "small" | "medium" | "large" | "fillParent";
3892
+ /**
3893
+ * Value of the tabindex attribute.
3894
+ */
3895
+ tabIndex?: number;
3896
+ /**
3897
+ * Time format of the input. It can be either 12 or 24.
3898
+ */
3899
+ timeFormat?: "12" | "24";
3900
+ /**
3901
+ * Value of the input. If undefined, the component will be uncontrolled and the value will be managed internally by the component.
3902
+ */
3903
+ value?: string;
3904
+ };
3905
+
3906
+ declare const DxcTimeInput: ({ ariaLabel, clearable, defaultValue, disabled, error, helperText, label, name, optional, readOnly, onBlur, onChange, ref, showSeconds, size, tabIndex, timeFormat, value, }: TimeInputProps) => react.JSX.Element;
3907
+
3908
+ type Action = {
3909
+ /**
3910
+ * The icon of the action. It can be a string with the name of the icon or an SVG component.
3911
+ */
3912
+ icon?: string | SVG;
3913
+ /**
3914
+ * The label of the action.
3915
+ */
3916
+ label: string;
3917
+ /**
3918
+ * The function that will be executed when the user clicks on the action button.
3919
+ */
3920
+ onClick: () => void;
3921
+ };
3922
+ type CommonProps$1 = {
3923
+ /**
3924
+ * Tertiary button which performs a custom action, specified by the user.
3925
+ */
3926
+ action?: Action;
3927
+ /**
3928
+ * Message to be displayed as a toast.
3929
+ */
3930
+ message: string;
3931
+ };
3932
+ type DefaultToast = PrettifyTypes<CommonProps$1 & {
3933
+ /**
3934
+ * Material Symbol name or SVG element as the icon that will be placed next to the panel label.
3935
+ * When using Material Symbols, replace spaces with underscores.
3936
+ * By default they are outlined if you want it to be filled prefix the symbol name with "filled_".
3937
+ */
3938
+ icon?: string | SVG;
3939
+ }>;
3940
+ type LoadingToast = PrettifyTypes<CommonProps$1 & {
3941
+ loading: boolean;
3942
+ }>;
3943
+ type SemanticToast = PrettifyTypes<CommonProps$1 & {
3944
+ /**
3945
+ * Flag that allows to hide the semantic icon of the toast.
3946
+ */
3947
+ hideSemanticIcon?: boolean;
3948
+ }>;
3949
+ type Semantic = "default" | "info" | "success" | "warning";
3950
+ type ToastProps = {
3951
+ action?: Action;
3952
+ duration: number;
3953
+ icon?: string | SVG;
3954
+ loading?: boolean;
3955
+ message: string;
3956
+ onClear: () => void;
3957
+ semantic: Semantic;
3958
+ hideSemanticIcon?: boolean;
3959
+ };
3960
+ type ToastsQueueProps = {
3961
+ /**
3962
+ * Tree of components from which the useToast hook can be triggered.
3963
+ */
3964
+ children: ReactNode;
3965
+ /**
3966
+ * Duration in milliseconds before a toast automatically hides itself.
3967
+ * The range goes from 3000ms to 5000ms, any other value will not be taken into consideration.
3968
+ */
3969
+ duration?: number;
3970
+ };
3971
+
3972
+ declare function DxcToastsQueue({ children, duration }: ToastsQueueProps): react.JSX.Element;
3973
+
3974
+ type ToggleOptionIcon = {
3975
+ /**
3976
+ * Material Symbols icon or SVG element. Icon and label can't be used at same time.
3977
+ */
3978
+ icon: string | SVG;
3979
+ /**
3980
+ * String with the option display value.
3981
+ */
3982
+ label?: never;
3983
+ /**
3984
+ * Value for the HTML properties title and aria-label.
3985
+ * When a label is defined, this prop can not be use.
3986
+ */
3987
+ title: string;
3988
+ };
3989
+ type ToggleOptionLabel = {
3990
+ /**
3991
+ * Material Symbols icon or SVG element. Icon and label can't be used at same time.
3992
+ */
3993
+ icon?: string | SVG;
3994
+ /**
3995
+ * String with the option display value.
3996
+ */
3997
+ label: string;
3998
+ /**
3999
+ * Value for the HTML properties title and aria-label.
4000
+ * When a label is defined, this prop can not be use.
4001
+ */
4002
+ title?: never;
4003
+ };
4004
+ type ToggleOption = PrettifyTypes<{
4005
+ /**
4006
+ * If true, the option will be disabled.
4007
+ */
4008
+ disabled?: boolean;
4009
+ /**
4010
+ * Number with the option inner value.
4011
+ */
4012
+ value: number;
4013
+ } & (ToggleOptionIcon | ToggleOptionLabel)>;
4014
+ type CommonProps = {
4015
+ /**
4016
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
4017
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
4018
+ */
4019
+ margin?: Space | Margin;
4020
+ /**
4021
+ * An array of objects representing the selectable options.
4022
+ */
4023
+ options: ToggleOption[];
4024
+ /**
4025
+ * The orientation of the toggle group.
4026
+ */
4027
+ orientation?: "horizontal" | "vertical";
4028
+ /**
4029
+ * Value of the tabindex.
4030
+ */
4031
+ tabIndex?: number;
4032
+ };
4033
+ type MultipleSelectionToggleGroup = {
4034
+ /**
4035
+ * The array of keys with the initially selected values.
4036
+ */
4037
+ defaultValue?: number[];
4038
+ /**
4039
+ * 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.
4040
+ */
4041
+ multiple: true;
4042
+ /**
4043
+ * This function will be called every time the selection changes. An array with the key of
4044
+ * the selected values will be passed as a parameter to this function.
4045
+ */
4046
+ onChange?: (optionIndex: number[]) => void;
4047
+ /**
4048
+ * An array with the keys of the selected values.
4049
+ * If undefined, the component will be uncontrolled and the value will be managed internally by the component.
4050
+ */
4051
+ value?: number[];
4052
+ };
4053
+ type SingleSelectionToggleGroup = {
4054
+ /**
4055
+ * The key of the initially selected value.
4056
+ */
4057
+ defaultValue?: number;
4058
+ /**
4059
+ * 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.
4060
+ */
4061
+ multiple?: false;
4062
+ /**
4063
+ * This function will be called every time the selection changes. The number with the key of the selected
4064
+ * value will be passed as a parameter to this function.
4065
+ */
4066
+ onChange?: (optionIndex: number) => void;
4067
+ /**
4068
+ * The key of the selected value. If the component allows multiple selection, value must be an array.
4069
+ * If undefined, the component will be uncontrolled and the value will be managed internally by the component.
4070
+ */
4071
+ value?: number;
4072
+ };
4073
+ type ToggleGroupProps = PrettifyTypes<CommonProps & (MultipleSelectionToggleGroup | SingleSelectionToggleGroup)>;
4074
+
4075
+ declare function DxcToggleGroup({ defaultValue, margin, multiple, onChange, options, orientation, tabIndex, value, }: ToggleGroupProps): react.JSX.Element;
4076
+
4077
+ type TooltipProps = {
4078
+ /**
4079
+ * Content in which the Tooltip will be displayed.
4080
+ */
4081
+ children: ReactNode;
4082
+ /**
4083
+ * Text to be displayed inside the tooltip.
4084
+ */
4085
+ label?: string;
4086
+ /**
4087
+ * Preferred position for displaying the tooltip. It may adjust automatically based on available space.
4088
+ */
4089
+ position?: "bottom" | "top" | "left" | "right";
4090
+ };
4091
+
4092
+ declare const DxcTooltip: (props: TooltipProps) => react.JSX.Element;
4093
+
4094
+ type TypographyProps = {
4095
+ as?: "a" | "blockquote" | "cite" | "code" | "div" | "em" | "figcaption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "pre" | "small" | "span" | "strong";
4096
+ children: ReactNode;
4097
+ color?: string;
4098
+ display?: "inline" | "block";
4099
+ fontFamily?: string;
4100
+ fontSize?: string;
4101
+ fontStyle?: "italic" | "normal";
4102
+ fontWeight?: string;
4103
+ letterSpacing?: string;
4104
+ lineHeight?: string;
4105
+ textAlign?: "left" | "center" | "right";
4106
+ textDecoration?: "none" | "underline" | "line-through";
4107
+ textOverflow?: "clip" | "ellipsis" | "unset";
4108
+ whiteSpace?: "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap";
4109
+ };
4110
+
4111
+ declare function DxcTypography({ children, ...props }: TypographyProps): react.JSX.Element;
4112
+
4113
+ type WizardStepProps = {
4114
+ /**
4115
+ * Step label.
4116
+ */
4117
+ label: string;
4118
+ /**
4119
+ * Description that will be placed next to the step.
4120
+ */
4121
+ description?: string;
4122
+ /**
4123
+ * Material Symbol name or SVG element used as the icon displayed in the step.
4124
+ */
4125
+ icon?: string | SVG;
4126
+ /**
4127
+ * If true, the step will be disabled.
4128
+ */
4129
+ disabled?: boolean;
4130
+ /**
4131
+ * Whether the step is valid or not.
4132
+ */
4133
+ valid?: boolean;
4134
+ };
4135
+ type WizardProps = {
4136
+ /**
4137
+ * The wizard can be shown in horizontal or vertical.
4138
+ */
4139
+ mode?: "horizontal" | "vertical";
4140
+ /**
4141
+ * Initially selected step, only when it is uncontrolled.
4142
+ */
4143
+ defaultCurrentStep?: number;
4144
+ /**
4145
+ * Defines which step is marked as the current. The numeration starts at 0.
4146
+ */
4147
+ currentStep?: number;
4148
+ /**
4149
+ * This function will be called when the user clicks a step. The step
4150
+ * number will be passed as a parameter.
4151
+ */
4152
+ onStepClick?: (currentStep: number) => void;
4153
+ /**
4154
+ * An array of objects representing the steps.
4155
+ */
4156
+ steps: WizardStepProps[];
4157
+ /**
4158
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
4159
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
4160
+ */
4161
+ margin?: Space | Margin;
4162
+ /**
4163
+ * Value of the tabindex attribute that is given to all the steps.
4164
+ */
4165
+ tabIndex?: number;
4166
+ };
4167
+
4168
+ declare function DxcWizard({ currentStep, defaultCurrentStep, margin, mode, onStepClick, steps, tabIndex, }: WizardProps): react.JSX.Element;
4169
+
4170
+ declare const defaultTranslatedComponentLabels: {
4171
+ applicationLayout: {
4172
+ visibilityToggleTitle: string;
4173
+ };
4174
+ alert: {
4175
+ previousMessageActionTitle: string;
4176
+ nextMessageActionTitle: string;
4177
+ closeAlertActionTitle: string;
4178
+ closeMessageActionTitle: string;
4179
+ };
4180
+ calendar: {
4181
+ daysShort: string[];
4182
+ months: string[];
4183
+ previousMonthTitle: string;
4184
+ nextMonthTitle: string;
4185
+ };
4186
+ card: {
4187
+ noContent: string;
4188
+ };
4189
+ dateInput: {
4190
+ invalidDateErrorMessage: string;
4191
+ datePickerActionTitle: string;
4192
+ };
4193
+ dialog: {
4194
+ closeIconAriaLabel: string;
4195
+ };
4196
+ fileInput: {
4197
+ fileSizeGreaterThanErrorMessage: string;
4198
+ fileSizeLessThanErrorMessage: string;
4199
+ multipleButtonLabelDefault: string;
4200
+ singleButtonLabelDefault: string;
4201
+ dropAreaButtonLabelDefault: string;
4202
+ multipleDropAreaLabelDefault: string;
4203
+ singleDropAreaLabelDefault: string;
4204
+ deleteFileActionTitle: string;
4205
+ };
4206
+ footer: {
4207
+ copyrightText: (year: number) => string;
4208
+ };
4209
+ formFields: {
4210
+ optionalLabel: string;
4211
+ requiredSelectionErrorMessage: string;
4212
+ requiredValueErrorMessage: string;
4213
+ formatRequestedErrorMessage: string;
4214
+ minLengthErrorMessage: (minLength: number) => string;
4215
+ maxLengthErrorMessage: (maxLength: number) => string;
4216
+ };
4217
+ header: {
4218
+ closeIcon: string;
4219
+ hamburgerTitle: string;
4220
+ };
4221
+ messageInput: {
4222
+ inputAriaLabel: string;
4223
+ sendButtonTitle: string;
4224
+ stopButtonTitle: string;
4225
+ attachFileButtonTitle: string;
4226
+ recordAudioButtonTitle: string;
4227
+ stopRecordingButtonTitle: string;
4228
+ };
4229
+ numberInput: {
4230
+ valueGreaterThanOrEqualToErrorMessage: (value: number) => string;
4231
+ valueLessThanOrEqualToErrorMessage: (value: number) => string;
4232
+ decrementValueTitle: string;
4233
+ incrementValueTitle: string;
4234
+ };
4235
+ paginator: {
4236
+ itemsPerPageText: string;
4237
+ minToMaxOfText: (minNumberOfItems: number, maxNumberOfItems: number, totalItems: number) => string;
4238
+ goToPageText: string;
4239
+ pageOfText: (pageNumber: number, totalPagesNumber: number) => string;
4240
+ firstResultsTitle: string;
4241
+ previousResultsTitle: string;
4242
+ nextResultsTitle: string;
4243
+ lastResultsTitle: string;
4244
+ };
4245
+ passwordInput: {
4246
+ inputShowPasswordTitle: string;
4247
+ inputHidePasswordTitle: string;
4248
+ };
4249
+ quickNav: {
4250
+ contentTitle: string;
4251
+ };
4252
+ radioGroup: {
4253
+ optionalItemLabelDefault: string;
4254
+ };
4255
+ searchBar: {
4256
+ clearFieldActionTitle: string;
4257
+ inputAriaLabel: string;
4258
+ triggerTitle: string;
4259
+ cancelButtonLabel: string;
4260
+ };
4261
+ select: {
4262
+ actionClearSelectionTitle: string;
4263
+ actionClearSearchTitle: string;
4264
+ noMatchesErrorMessage: string;
4265
+ selectAllLabel: string;
4266
+ };
4267
+ tabs: {
4268
+ scrollLeft: string;
4269
+ scrollRight: string;
4270
+ };
4271
+ textInput: {
4272
+ clearFieldActionTitle: string;
4273
+ searchingMessage: string;
4274
+ fetchingDataErrorMessage: string;
4275
+ };
4276
+ timeInput: {
4277
+ timePickerActionTitle: string;
4278
+ timePeriodAM: string;
4279
+ timePeriodPM: string;
4280
+ };
4281
+ toast: {
4282
+ clearToastActionTitle: string;
4283
+ };
4284
+ };
4285
+ type TranslatedLabels = typeof defaultTranslatedComponentLabels;
4286
+ type LocalizedContext = {
4287
+ labels: TranslatedLabels;
4288
+ locale?: string;
4289
+ };
4290
+
4291
+ /**
4292
+ * This type is used to allow labels objects to be passed to the HalstackProvider.
4293
+ * This is an extension of the already existing Partial type, which only allows one level of partiality.
4294
+ */
4295
+ type DeepPartial<T> = {
4296
+ [P in keyof T]?: Partial<T[P]>;
4297
+ };
4298
+ declare const HalstackLanguageContext: react.Context<LocalizedContext>;
4299
+ type ThemeType = {
4300
+ tokens?: Record<string, string | number>;
4301
+ logos?: Record<string, string | undefined>;
4302
+ };
4303
+ type HalstackProviderPropsType = {
4304
+ labels?: DeepPartial<TranslatedLabels>;
4305
+ children: ReactNode;
4306
+ opinionatedTheme?: ThemeType;
4307
+ localeTag?: string;
4308
+ };
4309
+ declare const HalstackProvider: ({ labels, children, opinionatedTheme, localeTag, }: HalstackProviderPropsType) => JSX.Element;
4310
+
4311
+ declare function useToast(): {
4312
+ default: (toast: DefaultToast) => (() => void) | undefined;
4313
+ success: (toast: SemanticToast) => (() => void) | undefined;
4314
+ warning: (toast: SemanticToast) => (() => void) | undefined;
4315
+ info: (toast: SemanticToast) => (() => void) | undefined;
4316
+ loading: (toast: Omit<LoadingToast, "loading">) => (() => void) | undefined;
4317
+ };
4318
+
4319
+ declare const coreTokens: {
4320
+ /**************/
4321
+ /** POSITION **/
4322
+ /**************/
4323
+ "--z-app-layout-sidenav": number;
4324
+ "--z-app-layout-header": number;
4325
+ "--z-header-overlay": number;
4326
+ "--z-header-menu": number;
4327
+ "--z-date-input": number;
4328
+ "--z-dropdown": number;
4329
+ "--z-textinput": number;
4330
+ "--z-select": number;
4331
+ "--z-contextualmenu": number;
4332
+ "--z-dialog": number;
4333
+ "--z-spinner-overlay": number;
4334
+ "--z-progressbar-overlay": number;
4335
+ "--z-alert": number;
4336
+ "--z-toast": number;
4337
+ "--z-tooltip": number;
4338
+ /************/
4339
+ /** TOKENS **/
4340
+ /************/
4341
+ "--color-absolutes-black": string;
4342
+ "--color-absolutes-white": string;
4343
+ "--color-alpha-100-a": string;
4344
+ "--color-alpha-200-a": string;
4345
+ "--color-alpha-300-a": string;
4346
+ "--color-alpha-400-a": string;
4347
+ "--color-alpha-500-a": string;
4348
+ "--color-alpha-600-a": string;
4349
+ "--color-alpha-700-a": string;
4350
+ "--color-alpha-800-a": string;
4351
+ "--color-alpha-900-a": string;
4352
+ "--color-primary-50": string;
4353
+ "--color-primary-100": string;
4354
+ "--color-primary-200": string;
4355
+ "--color-primary-300": string;
4356
+ "--color-primary-400": string;
4357
+ "--color-primary-500": string;
4358
+ "--color-primary-600": string;
4359
+ "--color-primary-700": string;
4360
+ "--color-primary-800": string;
4361
+ "--color-primary-900": string;
4362
+ "--color-secondary-50": string;
4363
+ "--color-secondary-100": string;
4364
+ "--color-secondary-200": string;
4365
+ "--color-secondary-300": string;
4366
+ "--color-secondary-400": string;
4367
+ "--color-secondary-500": string;
4368
+ "--color-secondary-600": string;
4369
+ "--color-secondary-700": string;
4370
+ "--color-secondary-800": string;
4371
+ "--color-secondary-900": string;
4372
+ "--color-tertiary-50": string;
4373
+ "--color-tertiary-100": string;
4374
+ "--color-tertiary-200": string;
4375
+ "--color-tertiary-300": string;
4376
+ "--color-tertiary-400": string;
4377
+ "--color-tertiary-500": string;
4378
+ "--color-tertiary-600": string;
4379
+ "--color-tertiary-700": string;
4380
+ "--color-tertiary-800": string;
4381
+ "--color-tertiary-900": string;
4382
+ "--color-semantic01-50": string;
4383
+ "--color-semantic01-100": string;
4384
+ "--color-semantic01-200": string;
4385
+ "--color-semantic01-300": string;
4386
+ "--color-semantic01-400": string;
4387
+ "--color-semantic01-500": string;
4388
+ "--color-semantic01-600": string;
4389
+ "--color-semantic01-700": string;
4390
+ "--color-semantic01-800": string;
4391
+ "--color-semantic01-900": string;
4392
+ "--color-semantic02-50": string;
4393
+ "--color-semantic02-100": string;
4394
+ "--color-semantic02-200": string;
4395
+ "--color-semantic02-300": string;
4396
+ "--color-semantic02-400": string;
4397
+ "--color-semantic02-500": string;
4398
+ "--color-semantic02-600": string;
4399
+ "--color-semantic02-700": string;
4400
+ "--color-semantic02-800": string;
4401
+ "--color-semantic02-900": string;
4402
+ "--color-semantic03-50": string;
4403
+ "--color-semantic03-100": string;
4404
+ "--color-semantic03-200": string;
4405
+ "--color-semantic03-300": string;
4406
+ "--color-semantic03-400": string;
4407
+ "--color-semantic03-500": string;
4408
+ "--color-semantic03-600": string;
4409
+ "--color-semantic03-700": string;
4410
+ "--color-semantic03-800": string;
4411
+ "--color-semantic03-900": string;
4412
+ "--color-semantic04-50": string;
4413
+ "--color-semantic04-100": string;
4414
+ "--color-semantic04-200": string;
4415
+ "--color-semantic04-300": string;
4416
+ "--color-semantic04-400": string;
4417
+ "--color-semantic04-500": string;
4418
+ "--color-semantic04-600": string;
4419
+ "--color-semantic04-700": string;
4420
+ "--color-semantic04-800": string;
4421
+ "--color-semantic04-900": string;
4422
+ "--color-neutral-50": string;
4423
+ "--color-neutral-100": string;
4424
+ "--color-neutral-200": string;
4425
+ "--color-neutral-300": string;
4426
+ "--color-neutral-400": string;
4427
+ "--color-neutral-500": string;
4428
+ "--color-neutral-600": string;
4429
+ "--color-neutral-700": string;
4430
+ "--color-neutral-800": string;
4431
+ "--color-neutral-900": string;
4432
+ "--dimensions-0": string;
4433
+ "--dimensions-1": string;
4434
+ "--dimensions-2": string;
4435
+ "--dimensions-4": string;
4436
+ "--dimensions-8": string;
4437
+ "--dimensions-12": string;
4438
+ "--dimensions-16": string;
4439
+ "--dimensions-20": string;
4440
+ "--dimensions-24": string;
4441
+ "--dimensions-28": string;
4442
+ "--dimensions-32": string;
4443
+ "--dimensions-36": string;
4444
+ "--dimensions-40": string;
4445
+ "--dimensions-44": string;
4446
+ "--dimensions-48": string;
4447
+ "--dimensions-56": string;
4448
+ "--dimensions-64": string;
4449
+ "--dimensions-72": string;
4450
+ "--dimensions-80": string;
4451
+ "--dimensions-96": string;
4452
+ "--font-size-12": string;
4453
+ "--font-size-14": string;
4454
+ "--font-size-16": string;
4455
+ "--font-size-18": string;
4456
+ "--font-size-20": string;
4457
+ "--font-size-24": string;
4458
+ "--font-size-32": string;
4459
+ "--font-size-40": string;
4460
+ "--font-size-48": string;
4461
+ "--font-size-60": string;
4462
+ "--font-weight-light": string;
4463
+ "--font-weight-regular": string;
4464
+ "--font-weight-semibold": string;
4465
+ "--font-weight-bold": string;
4466
+ "--font-family-mono": string;
4467
+ "--font-family-sans": string;
4468
+ "--font-style-lightitalic": string;
4469
+ "--font-style-normal": string;
4470
+ "--line-style-dashed": string;
4471
+ "--line-style-solid": string;
4472
+ };
4473
+ declare const aliasTokens: {
4474
+ /************/
4475
+ /** TOKENS **/
4476
+ /************/
4477
+ "--border-color-info-lightest": string;
4478
+ "--border-color-info-lighter": string;
4479
+ "--border-color-info-light": string;
4480
+ "--border-color-info-medium": string;
4481
+ "--border-color-info-strong": string;
4482
+ "--border-color-info-stronger": string;
4483
+ "--border-color-info-strongest": string;
4484
+ "--border-color-success-light": string;
4485
+ "--border-color-success-medium": string;
4486
+ "--border-color-success-strong": string;
4487
+ "--border-color-warning-light": string;
4488
+ "--border-color-warning-medium": string;
4489
+ "--border-color-warning-strong": string;
4490
+ "--border-color-error-light": string;
4491
+ "--border-color-error-medium": string;
4492
+ "--border-color-error-strong": string;
4493
+ "--border-color-error-stronger": string;
4494
+ "--border-color-neutral-bright": string;
4495
+ "--border-color-neutral-brighter": string;
4496
+ "--border-color-neutral-dark": string;
4497
+ "--border-color-neutral-light": string;
4498
+ "--border-color-neutral-lighter": string;
4499
+ "--border-color-neutral-lightest": string;
4500
+ "--border-color-neutral-medium": string;
4501
+ "--border-color-neutral-strong": string;
4502
+ "--border-color-neutral-stronger": string;
4503
+ "--border-color-neutral-strongest": string;
4504
+ "--border-color-primary-light": string;
4505
+ "--border-color-primary-lighter": string;
4506
+ "--border-color-primary-medium": string;
4507
+ "--border-color-primary-strong": string;
4508
+ "--border-color-primary-stronger": string;
4509
+ "--border-color-secondary-light": string;
4510
+ "--border-color-secondary-medium": string;
4511
+ "--border-color-secondary-strong": string;
4512
+ "--border-color-secondary-stronger": string;
4513
+ "--border-color-secondary-strongest": string;
4514
+ "--color-bg-overlay-dark": string;
4515
+ "--color-bg-yellow-light": string;
4516
+ "--color-bg-alpha-light": string;
4517
+ "--color-bg-alpha-medium": string;
4518
+ "--color-bg-alpha-strong": string;
4519
+ "--color-bg-neutral-light": string;
4520
+ "--color-bg-neutral-lighter": string;
4521
+ "--color-bg-neutral-lightest": string;
4522
+ "--color-bg-neutral-medium": string;
4523
+ "--color-bg-neutral-strong": string;
4524
+ "--color-bg-neutral-stronger": string;
4525
+ "--color-bg-neutral-strongest": string;
4526
+ "--color-bg-primary-light": string;
4527
+ "--color-bg-primary-lighter": string;
4528
+ "--color-bg-primary-lightest": string;
4529
+ "--color-bg-primary-medium": string;
4530
+ "--color-bg-primary-strong": string;
4531
+ "--color-bg-primary-stronger": string;
4532
+ "--color-bg-primary-strongest": string;
4533
+ "--color-bg-secondary-light": string;
4534
+ "--color-bg-secondary-lighter": string;
4535
+ "--color-bg-secondary-lightest": string;
4536
+ "--color-bg-secondary-medium": string;
4537
+ "--color-bg-secondary-strong": string;
4538
+ "--color-bg-secondary-stronger": string;
4539
+ "--color-bg-secondary-strongest": string;
4540
+ "--color-bg-info-lightest": string;
4541
+ "--color-bg-info-lighter": string;
4542
+ "--color-bg-info-light": string;
4543
+ "--color-bg-info-medium": string;
4544
+ "--color-bg-info-strong": string;
4545
+ "--color-bg-info-stronger": string;
4546
+ "--color-bg-info-strongest": string;
4547
+ "--color-bg-success-light": string;
4548
+ "--color-bg-success-lighter": string;
4549
+ "--color-bg-success-lightest": string;
4550
+ "--color-bg-success-medium": string;
4551
+ "--color-bg-success-strong": string;
4552
+ "--color-bg-success-stronger": string;
4553
+ "--color-bg-success-strongest": string;
4554
+ "--color-bg-warning-light": string;
4555
+ "--color-bg-warning-lighter": string;
4556
+ "--color-bg-warning-lightest": string;
4557
+ "--color-bg-warning-medium": string;
4558
+ "--color-bg-warning-strong": string;
4559
+ "--color-bg-warning-stronger": string;
4560
+ "--color-bg-warning-strongest": string;
4561
+ "--color-bg-error-light": string;
4562
+ "--color-bg-error-lighter": string;
4563
+ "--color-bg-error-lightest": string;
4564
+ "--color-bg-error-medium": string;
4565
+ "--color-bg-error-strong": string;
4566
+ "--color-bg-error-stronger": string;
4567
+ "--color-bg-error-strongest": string;
4568
+ "--color-fg-info-lightest": string;
4569
+ "--color-fg-info-lighter": string;
4570
+ "--color-fg-info-light": string;
4571
+ "--color-fg-info-medium": string;
4572
+ "--color-fg-info-strong": string;
4573
+ "--color-fg-info-stronger": string;
4574
+ "--color-fg-info-strongest": string;
4575
+ "--color-fg-success-light": string;
4576
+ "--color-fg-success-lighter": string;
4577
+ "--color-fg-success-medium": string;
4578
+ "--color-fg-success-strong": string;
4579
+ "--color-fg-success-stronger": string;
4580
+ "--color-fg-warning-light": string;
4581
+ "--color-fg-warning-medium": string;
4582
+ "--color-fg-warning-strong": string;
4583
+ "--color-fg-warning-stronger": string;
4584
+ "--color-fg-error-light": string;
4585
+ "--color-fg-error-lighter": string;
4586
+ "--color-fg-error-medium": string;
4587
+ "--color-fg-error-strong": string;
4588
+ "--color-fg-error-stronger": string;
4589
+ "--color-fg-neutral-bright": string;
4590
+ "--color-fg-neutral-dark": string;
4591
+ "--color-fg-neutral-light": string;
4592
+ "--color-fg-neutral-lighter": string;
4593
+ "--color-fg-neutral-lightest": string;
4594
+ "--color-fg-neutral-medium": string;
4595
+ "--color-fg-neutral-strong": string;
4596
+ "--color-fg-neutral-stronger": string;
4597
+ "--color-fg-neutral-strongest": string;
4598
+ "--color-fg-neutral-yellow-dark": string;
4599
+ "--color-fg-primary-light": string;
4600
+ "--color-fg-primary-lighter": string;
4601
+ "--color-fg-primary-medium": string;
4602
+ "--color-fg-primary-strong": string;
4603
+ "--color-fg-primary-stronger": string;
4604
+ "--color-fg-primary-strongest": string;
4605
+ "--color-fg-secondary-light": string;
4606
+ "--color-fg-secondary-lighter": string;
4607
+ "--color-fg-secondary-medium": string;
4608
+ "--color-fg-secondary-strong": string;
4609
+ "--color-fg-secondary-stronger": string;
4610
+ "--color-fg-secondary-strongest": string;
4611
+ "--border-radius-none": string;
4612
+ "--border-radius-xs": string;
4613
+ "--border-radius-s": string;
4614
+ "--border-radius-m": string;
4615
+ "--border-radius-l": string;
4616
+ "--border-radius-xl": string;
4617
+ "--border-width-none": string;
4618
+ "--border-width-s": string;
4619
+ "--border-width-m": string;
4620
+ "--border-width-l": string;
4621
+ "--height-xxxs": string;
4622
+ "--height-xxs": string;
4623
+ "--height-xs": string;
4624
+ "--height-s": string;
4625
+ "--height-m": string;
4626
+ "--height-l": string;
4627
+ "--height-xl": string;
4628
+ "--height-xxl": string;
4629
+ "--height-xxxl": string;
4630
+ "--shadow-100": string;
4631
+ "--shadow-200": string;
4632
+ "--shadow-300": string;
4633
+ "--shadow-400": string;
4634
+ "--spacing-gap-none": string;
4635
+ "--spacing-gap-xxs": string;
4636
+ "--spacing-gap-xs": string;
4637
+ "--spacing-gap-s": string;
4638
+ "--spacing-gap-m": string;
4639
+ "--spacing-gap-ml": string;
4640
+ "--spacing-gap-l": string;
4641
+ "--spacing-gap-xl": string;
4642
+ "--spacing-gap-xxl": string;
4643
+ "--spacing-padding-none": string;
4644
+ "--spacing-padding-xxxs": string;
4645
+ "--spacing-padding-xxs": string;
4646
+ "--spacing-padding-xs": string;
4647
+ "--spacing-padding-s": string;
4648
+ "--spacing-padding-m": string;
4649
+ "--spacing-padding-ml": string;
4650
+ "--spacing-padding-l": string;
4651
+ "--spacing-padding-xl": string;
4652
+ "--spacing-padding-xxl": string;
4653
+ "--typography-body-xs": string;
4654
+ "--typography-body-s": string;
4655
+ "--typography-body-m": string;
4656
+ "--typography-body-l": string;
4657
+ "--typography-body-xl": string;
4658
+ "--typography-body-xxl": string;
4659
+ "--typography-body-regular": string;
4660
+ "--typography-heading-xs": string;
4661
+ "--typography-heading-s": string;
4662
+ "--typography-heading-m": string;
4663
+ "--typography-heading-l": string;
4664
+ "--typography-heading-xl": string;
4665
+ "--typography-heading-xxl": string;
4666
+ "--typography-heading-light": string;
4667
+ "--typography-heading-regular": string;
4668
+ "--typography-heading-semibold": string;
4669
+ "--typography-helper-text-s": string;
4670
+ "--typography-helper-text-m": string;
4671
+ "--typography-helper-text-l": string;
4672
+ "--typography-helper-text-light": string;
4673
+ "--typography-helper-text-regular": string;
4674
+ "--typography-helper-text-semibold": string;
4675
+ "--typography-helper-text-italic": string;
4676
+ "--typography-label-s": string;
4677
+ "--typography-label-m": string;
4678
+ "--typography-label-l": string;
4679
+ "--typography-label-xl": string;
4680
+ "--typography-label-regular": string;
4681
+ "--typography-label-semibold": string;
4682
+ "--typography-link-m": string;
4683
+ "--typography-link-regular": string;
4684
+ "--typography-title-s": string;
4685
+ "--typography-title-m": string;
4686
+ "--typography-title-l": string;
4687
+ "--typography-title-xl": string;
4688
+ "--typography-title-bold": string;
4689
+ "--border-style-default": string;
4690
+ "--border-style-outline": string;
4691
+ "--typography-font-family": string;
4692
+ };
4693
+
4694
+ type FooterSocialLink = {
4695
+ /**
4696
+ * URL of the page the link goes to.
4697
+ */
4698
+ href: string;
4699
+ /**
4700
+ * Material Symbol name or SVG element as the icon used for the link.
4701
+ */
4702
+ logo: string | SVG;
4703
+ /**
4704
+ * Value for the HTML properties title and aria-label.
4705
+ */
4706
+ title: string;
4707
+ };
4708
+ type FooterBottomLink = {
4709
+ /**
4710
+ * URL of the page the link goes to.
4711
+ */
4712
+ href: string;
4713
+ /**
4714
+ * Text for the link.
4715
+ */
4716
+ text: string;
4717
+ };
4718
+ type FooterLogo = {
4719
+ /**
4720
+ * Source of the logo image.
4721
+ */
4722
+ src: string | SVG;
4723
+ /**
4724
+ * Alternative text for the logo image.
4725
+ */
4726
+ alt: string;
4727
+ };
4728
+ type FooterProps = {
4729
+ /**
4730
+ * An array of objects representing the links that will be rendered at
4731
+ * the bottom part of the footer.
4732
+ */
4733
+ bottomLinks?: FooterBottomLink[];
4734
+ /**
4735
+ * The text that will be displayed as copyright disclaimer.
4736
+ */
4737
+ copyright?: string;
4738
+ /**
4739
+ * Content to be displayed on the left side of the footer under the logo.
4740
+ */
4741
+ leftContent?: ReactNode;
4742
+ /**
4743
+ * Logo to be displayed inside the footer
4744
+ */
4745
+ logo?: FooterLogo;
4746
+ /**
4747
+ * Determines the visual style and layout
4748
+ * - "default": The default mode with full content and styling.
4749
+ * - "reduced": A reduced mode with minimal content and styling.
4750
+ */
4751
+ mode?: "default" | "reduced";
4752
+ /**
4753
+ * Content to be displayed on the right side of the footer before the socialLinks if provided.
4754
+ */
4755
+ rightContent?: ReactNode;
4756
+ /**
4757
+ * An array of objects representing the links that will be rendered as
4758
+ * icons at the top-right side of the footer.
4759
+ */
4760
+ socialLinks?: FooterSocialLink[];
4761
+ /**
4762
+ * Value of the tabindex for all interactive elements, except those
4763
+ * inside the leftContent and rightContent.
4764
+ */
4765
+ tabIndex?: number;
4766
+ /**
4767
+ * Visual variant of the footer.
4768
+ */
4769
+ variant?: "branded" | "neutral";
4770
+ };
4771
+
4772
+ type SearchBarProps = {
4773
+ /**
4774
+ * If true, the search bar input will be focused when rendered.
4775
+ */
4776
+ autoFocus?: boolean;
4777
+ /**
4778
+ * If true, the component will be disabled.
4779
+ */
4780
+ disabled?: boolean;
4781
+ /**
4782
+ * Function invoked when the search bar loses focus.
4783
+ */
4784
+ onBlur?: (value: string) => void;
4785
+ /**
4786
+ * Function invoked when the user cancels the search.
4787
+ */
4788
+ onCancel?: () => void;
4789
+ /**
4790
+ * Function invoked when the user changes the input value.
4791
+ */
4792
+ onChange?: (value: string) => void;
4793
+ /**
4794
+ * Function invoked when the Enter key is pressed.
4795
+ */
4796
+ onEnter?: (value: string) => void;
4797
+ /**
4798
+ * Placeholder text displayed in the search bar input field.
4799
+ */
4800
+ placeholder?: string;
4801
+ };
4802
+
4803
+ type HeaderGroupItem = PrettifyTypes<BaseCommonItemProps & {
4804
+ items: BaseItem[];
4805
+ }>;
4806
+ type HeaderMainNavProps = (HeaderGroupItem | PrettifyTypes<BaseItem>)[];
4807
+ type HeaderSearchBarProps = Omit<SearchBarProps, "autoFocus" | "disabled">;
4808
+ type HeaderProps = {
4809
+ appTitle?: string;
4810
+ navItems?: HeaderMainNavProps;
4811
+ responsiveBottomContent?: ReactNode;
4812
+ searchBar?: HeaderSearchBarProps;
4813
+ sideContent?: ReactNode | ((isResponsive: boolean) => ReactNode);
4814
+ };
4815
+
4816
+ type SidenavSection = {
4817
+ items: (BaseItem | BaseGroupItem)[];
4818
+ title?: string;
4819
+ };
4820
+ type SidenavSearchbarProps = Omit<SearchBarProps, "autoFocus" | "disabled" | "onCancel">;
4821
+ type SidenavProps = {
4822
+ /**
4823
+ * The content rendered in the bottom part of the sidenav, under the navigation menu.
4824
+ */
4825
+ bottomContent?: ReactNode;
4826
+ /**
4827
+ * Object with the properties of the branding placed at the top of the sidenav.
4828
+ */
4829
+ appTitle?: string | ReactNode;
4830
+ /**
4831
+ * Initial state of the expansion of the sidenav, only when it is uncontrolled.
4832
+ */
4833
+ defaultExpanded?: boolean;
4834
+ /**
4835
+ * If true the nav menu will have lines marking the groups.
4836
+ */
4837
+ displayGroupLines?: boolean;
4838
+ /**
4839
+ * If true, the sidenav is expanded.
4840
+ * If undefined the component will be uncontrolled and the value will be managed internally by the component.
4841
+ */
4842
+ expanded?: boolean;
4843
+ /**
4844
+ * Array of items to be displayed in the navigation menu.
4845
+ * Each item can be a single/simple item, a group item or a section.
4846
+ */
4847
+ navItems?: (BaseItem | BaseGroupItem)[] | SidenavSection[];
4848
+ /**
4849
+ * Function called when the expansion state of the sidenav changes.
4850
+ */
4851
+ onExpandedChange?: (value: boolean) => void;
4852
+ /**
4853
+ * When provided, a search bar will be rendered at the top of the sidenav.
4854
+ */
4855
+ searchBar?: SidenavSearchbarProps;
4856
+ /**
4857
+ * The additional content rendered in the upper part of the sidenav, under the branding.
4858
+ */
4859
+ topContent?: ReactNode;
4860
+ };
4861
+
4862
+ export { DxcAccordion, type AccordionItemProps as DxcAccordionItemProps, type AccordionProps as DxcAccordionProps, type Action$1 as DxcAction, type ActionsCellProps as DxcActionsCellProps, DxcAlert, type AlertAction as DxcAlertAction, type AlertMessage as DxcAlertMessage, type AlertProps as DxcAlertProps, aliasTokens as DxcAliasTokens, type AppLayoutLogo as DxcAppLayoutLogo, type AppLayoutMainProps as DxcAppLayoutMainProps, type ApplicationLayoutProps as DxcAppLayoutProps, type AppLayoutSidenavProps as DxcAppLayoutSidenavProps, DxcApplicationLayout, DxcAvatar, type AvatarProps as DxcAvatarProps, type AvatarStatus as DxcAvatarStatus, DxcBadge, type BadgeProps as DxcBadgeProps, type BaseGroupItem as DxcBaseGroupItem, type BaseItem as DxcBaseItem, type BaseSection as DxcBaseSection, DxcBleed, type BleedProps as DxcBleedProps, DxcBreadcrumbs, type BreadcrumbsItemProps as DxcBreadcrumbsItemProps, type BreadcrumbsProps as DxcBreadcrumbsProps, DxcBulletedList, type BulletedListItemProps as DxcBulletedListItemProps, type BulletedListProps as DxcBulletedListProps, DxcButton, DxcButtonLink, type ButtonLinkProps as DxcButtonLinkProps, type ButtonMode as DxcButtonMode, type ButtonProps as DxcButtonProps, type ButtonSemantic as DxcButtonSemantic, type ButtonSize as DxcButtonSize, DxcCard, type CardProps as DxcCardProps, DxcCheckbox, type CheckboxProps as DxcCheckboxProps, DxcChip, type ChipProps as DxcChipProps, type Color as DxcColor, DxcContainer, type ContainerBackground as DxcContainerBackground, type ContainerBorder as DxcContainerBorder, type ContainerBorderProperties as DxcContainerBorderProperties, type ContainerOutline as DxcContainerOutline, type ContainerOverflow as DxcContainerOverflow, type ContainerProps as DxcContainerProps, type ContainerSpacing as DxcContainerSpacing, DxcContextualMenu, type ContextualMenuProps as DxcContextualMenuProps, coreTokens as DxcCoreTokens, DxcDataGrid, type DataGridBasicProps as DxcDataGridBasicProps, type DataGridColumn as DxcDataGridColumn, type DataGridExpandableRow as DxcDataGridExpandableRow, type DataGridExpandableRows as DxcDataGridExpandableRows, type DataGridHierarchyRow as DxcDataGridHierarchyRow, type DataGridHierarchyRows as DxcDataGridHierarchyRows, type DataGridProps as DxcDataGridProps, type DataGridRow as DxcDataGridRow, type DataGridSelectableProps as DxcDataGridSelectableProps, DxcDateInput, type DateInputProps as DxcDateInputProps, type DefaultToast as DxcDefaultToast, DxcDialog, type DialogProps as DxcDialogProps, DxcDivider, type DividerProps as DxcDividerProps, DxcDropdown, type DropdownOption as DxcDropdownOption, type DropdownProps as DxcDropdownProps, type FileData as DxcFileData, DxcFileInput, type FileInputProps as DxcFileInputProps, DxcFlex, type FlexGap as DxcFlexGap, type FlexProps as DxcFlexProps, type FooterBottomLink as DxcFooterBottomLink, type FooterLogo as DxcFooterLogo, type FooterProps as DxcFooterProps, type FooterSocialLink as DxcFooterSocialLink, DxcGrid, type GridCell as DxcGridCell, type GridGap as DxcGridGap, type GridItemProps as DxcGridItemProps, type GridPlaceContentValues as DxcGridPlaceContentValues, type GridPlaceItemsValues as DxcGridPlaceItemsValues, type GridPlaceSelfValues as DxcGridPlaceSelfValues, type GridProps as DxcGridProps, type HeaderGroupItem as DxcHeaderGroupItem, type HeaderMainNavProps as DxcHeaderMainNavProps, type HeaderProps as DxcHeaderProps, type HeaderSearchBarProps as DxcHeaderSearchBarProps, DxcHeading, type HeadingProps as DxcHeadingProps, DxcIcon, type IconProps as DxcIconProps, DxcImage, type ImageProps as DxcImageProps, DxcInset, type InsetProps as DxcInsetProps, DxcLink, type LinkProps as DxcLinkProps, type LoadingToast as DxcLoadingToast, type Margin as DxcMargin, DxcMessageInput, type MessageInputProps as DxcMessageInputProps, DxcNavTabs, type NavTabsProps as DxcNavTabsProps, type NavTabsTabProps as DxcNavTabsTabProps, DxcNumberInput, type NumberInputProps as DxcNumberInputProps, DxcPaginator, type PaginatorProps as DxcPaginatorProps, DxcParagraph, DxcPasswordInput, type PasswordInputProps as DxcPasswordInputProps, DxcPopover, type PopoverProps as DxcPopoverProps, DxcProgressBar, type ProgressBarProps as DxcProgressBarProps, DxcQuickNav, type QuickNavLink as DxcQuickNavLink, type QuickNavProps as DxcQuickNavProps, DxcRadioGroup, type RadioGroupOption as DxcRadioGroupOption, type RadioGroupProps as DxcRadioGroupProps, type ResultSetTableColumn as DxcResultSetTableColumn, type ResultSetTableProps as DxcResultSetTableProps, type ResultSetTableRow as DxcResultSetTableRow, DxcResultsetTable, type SVG as DxcSVG, DxcSelect, type SelectOption as DxcSelectOption, type SelectOptionGroup as DxcSelectOptionGroup, type SelectProps as DxcSelectProps, type SemanticToast as DxcSemanticToast, type Shape as DxcShape, type SidenavProps as DxcSidenavProps, type SidenavSearchbarProps as DxcSidenavSearchbarProps, type SidenavSection as DxcSidenavSection, type Size$1 as DxcSize, DxcSlider, type SliderProps as DxcSliderProps, type Space as DxcSpace, DxcSpinner, type SpinnerProps as DxcSpinnerProps, DxcStatusLight, type StatusLightProps as DxcStatusLightProps, DxcSwitch, type SwitchProps as DxcSwitchProps, DxcTable, type TableProps as DxcTableProps, DxcTabs, type TabsProps as DxcTabsProps, type TabsTabProps as DxcTabsTabProps, DxcTextInput, type TextInputProps as DxcTextInputProps, DxcTextarea, type TextAreaProps as DxcTextareaProps, DxcTimeInput, type TimeInputProps as DxcTimeInputProps, type ToastProps as DxcToastProps, DxcToastsQueue, type ToastsQueueProps as DxcToastsQueueProps, DxcToggleGroup, type ToggleGroupProps as DxcToggleGroupProps, type ToggleOption as DxcToggleOption, DxcTooltip, type TooltipProps as DxcTooltipProps, DxcTypography, type TypographyProps as DxcTypographyProps, DxcWizard, type WizardProps as DxcWizardProps, type WizardStepProps as DxcWizardStepProps, HalstackLanguageContext, HalstackProvider, useToast };