@dxc-technology/halstack-react 16.0.1 → 16.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +51 -59
- package/dist/index.d.ts +51 -59
- package/dist/index.js +388 -389
- package/dist/index.mjs +446 -447
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -202,59 +202,6 @@ type Props$J = CommonProps$8 & ModeSpecificProps;
|
|
|
202
202
|
|
|
203
203
|
declare const DxcAlert: ({ closable, message, mode, primaryAction, secondaryAction, semantic, title, }: Props$J) => react_jsx_runtime.JSX.Element;
|
|
204
204
|
|
|
205
|
-
type Section$1 = {
|
|
206
|
-
items: (Item$2 | GroupItem$2)[];
|
|
207
|
-
title?: string;
|
|
208
|
-
};
|
|
209
|
-
type Props$I = {
|
|
210
|
-
/**
|
|
211
|
-
* The content rendered in the bottom part of the sidenav, under the navigation menu.
|
|
212
|
-
*/
|
|
213
|
-
bottomContent?: ReactNode;
|
|
214
|
-
/**
|
|
215
|
-
* Object with the properties of the branding placed at the top of the sidenav.
|
|
216
|
-
*/
|
|
217
|
-
appTitle?: string | ReactNode;
|
|
218
|
-
/**
|
|
219
|
-
* Initial state of the expansion of the sidenav, only when it is uncontrolled.
|
|
220
|
-
*/
|
|
221
|
-
defaultExpanded?: boolean;
|
|
222
|
-
/**
|
|
223
|
-
* If true the nav menu will have lines marking the groups.
|
|
224
|
-
*/
|
|
225
|
-
displayGroupLines?: boolean;
|
|
226
|
-
/**
|
|
227
|
-
* If true, the sidenav is expanded.
|
|
228
|
-
* If undefined the component will be uncontrolled and the value will be managed internally by the component.
|
|
229
|
-
*/
|
|
230
|
-
expanded?: boolean;
|
|
231
|
-
/**
|
|
232
|
-
* Array of items to be displayed in the navigation menu.
|
|
233
|
-
* Each item can be a single/simple item, a group item or a section.
|
|
234
|
-
*/
|
|
235
|
-
navItems?: (Item$2 | GroupItem$2)[] | Section$1[];
|
|
236
|
-
/**
|
|
237
|
-
* Function called when the expansion state of the sidenav changes.
|
|
238
|
-
*/
|
|
239
|
-
onExpandedChange?: (value: boolean) => void;
|
|
240
|
-
/**
|
|
241
|
-
* The additional content rendered in the upper part of the sidenav, under the branding.
|
|
242
|
-
*/
|
|
243
|
-
topContent?: ReactNode;
|
|
244
|
-
};
|
|
245
|
-
type CommonItemProps$1 = {
|
|
246
|
-
badge?: ReactElement;
|
|
247
|
-
icon?: string | SVG;
|
|
248
|
-
label: string;
|
|
249
|
-
};
|
|
250
|
-
type Item$2 = CommonItemProps$1 & {
|
|
251
|
-
onSelect?: () => void;
|
|
252
|
-
selected?: boolean;
|
|
253
|
-
};
|
|
254
|
-
type GroupItem$2 = CommonItemProps$1 & {
|
|
255
|
-
items: (Item$2 | GroupItem$2)[];
|
|
256
|
-
};
|
|
257
|
-
|
|
258
205
|
type CommonItemProps = {
|
|
259
206
|
badge?: ReactElement;
|
|
260
207
|
icon?: string | SVG;
|
|
@@ -271,16 +218,16 @@ type Item$1 = CommonItemProps & {
|
|
|
271
218
|
type GroupItem$1 = CommonItemProps & {
|
|
272
219
|
items: (Item$1 | GroupItem$1)[];
|
|
273
220
|
};
|
|
274
|
-
type Section = {
|
|
221
|
+
type Section$1 = {
|
|
275
222
|
items: (Item$1 | GroupItem$1)[];
|
|
276
223
|
title?: string;
|
|
277
224
|
};
|
|
278
|
-
type Props$
|
|
225
|
+
type Props$I = {
|
|
279
226
|
/**
|
|
280
227
|
* Array of items to be displayed in the menu.
|
|
281
228
|
* Each item can be a single/simple item, a group item or a section.
|
|
282
229
|
*/
|
|
283
|
-
items: (Item$1 | GroupItem$1)[] | Section[];
|
|
230
|
+
items: (Item$1 | GroupItem$1)[] | Section$1[];
|
|
284
231
|
/**
|
|
285
232
|
* If true the menu will be displayed with a border.
|
|
286
233
|
*/
|
|
@@ -303,6 +250,47 @@ type Props$H = {
|
|
|
303
250
|
isHorizontal?: boolean;
|
|
304
251
|
};
|
|
305
252
|
|
|
253
|
+
type Section = {
|
|
254
|
+
items: (Item$1 | GroupItem$1)[];
|
|
255
|
+
title?: string;
|
|
256
|
+
};
|
|
257
|
+
type Props$H = {
|
|
258
|
+
/**
|
|
259
|
+
* The content rendered in the bottom part of the sidenav, under the navigation menu.
|
|
260
|
+
*/
|
|
261
|
+
bottomContent?: ReactNode;
|
|
262
|
+
/**
|
|
263
|
+
* Object with the properties of the branding placed at the top of the sidenav.
|
|
264
|
+
*/
|
|
265
|
+
appTitle?: string | ReactNode;
|
|
266
|
+
/**
|
|
267
|
+
* Initial state of the expansion of the sidenav, only when it is uncontrolled.
|
|
268
|
+
*/
|
|
269
|
+
defaultExpanded?: boolean;
|
|
270
|
+
/**
|
|
271
|
+
* If true the nav menu will have lines marking the groups.
|
|
272
|
+
*/
|
|
273
|
+
displayGroupLines?: boolean;
|
|
274
|
+
/**
|
|
275
|
+
* If true, the sidenav is expanded.
|
|
276
|
+
* If undefined the component will be uncontrolled and the value will be managed internally by the component.
|
|
277
|
+
*/
|
|
278
|
+
expanded?: boolean;
|
|
279
|
+
/**
|
|
280
|
+
* Array of items to be displayed in the navigation menu.
|
|
281
|
+
* Each item can be a single/simple item, a group item or a section.
|
|
282
|
+
*/
|
|
283
|
+
navItems?: (Item$1 | GroupItem$1)[] | Section[];
|
|
284
|
+
/**
|
|
285
|
+
* Function called when the expansion state of the sidenav changes.
|
|
286
|
+
*/
|
|
287
|
+
onExpandedChange?: (value: boolean) => void;
|
|
288
|
+
/**
|
|
289
|
+
* The additional content rendered in the upper part of the sidenav, under the branding.
|
|
290
|
+
*/
|
|
291
|
+
topContent?: ReactNode;
|
|
292
|
+
};
|
|
293
|
+
|
|
306
294
|
type GroupItem = CommonItemProps & {
|
|
307
295
|
items: Item$1[];
|
|
308
296
|
};
|
|
@@ -342,7 +330,7 @@ type Logo = {
|
|
|
342
330
|
/**
|
|
343
331
|
* Source of the logo image.
|
|
344
332
|
*/
|
|
345
|
-
src: string;
|
|
333
|
+
src: string | SVG;
|
|
346
334
|
/**
|
|
347
335
|
* Alternative text for the logo image.
|
|
348
336
|
*/
|
|
@@ -440,7 +428,7 @@ declare const DxcApplicationLayout: {
|
|
|
440
428
|
Footer: ({ bottomLinks, copyright, leftContent, logo, mode, rightContent, socialLinks, tabIndex, }: FooterPropsType) => JSX.Element;
|
|
441
429
|
Header: ({ appTitle, navItems, sideContent, responsiveBottomContent }: Props$G) => JSX.Element;
|
|
442
430
|
Main: ({ children }: AppLayoutMainPropsType) => JSX.Element;
|
|
443
|
-
Sidenav: ({ topContent, bottomContent, navItems, appTitle, displayGroupLines, expanded, defaultExpanded, onExpandedChange, }: Props$
|
|
431
|
+
Sidenav: ({ topContent, bottomContent, navItems, appTitle, displayGroupLines, expanded, defaultExpanded, onExpandedChange, }: Props$H) => JSX.Element;
|
|
444
432
|
};
|
|
445
433
|
|
|
446
434
|
type Size$5 = "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
@@ -1078,7 +1066,7 @@ type Props$w = {
|
|
|
1078
1066
|
|
|
1079
1067
|
declare const DxcContainer: react.ForwardRefExoticComponent<Props$w & react.RefAttributes<HTMLDivElement>>;
|
|
1080
1068
|
|
|
1081
|
-
type Props$v = Omit<Props$
|
|
1069
|
+
type Props$v = Omit<Props$I, "displayBorder" | "displayGroupLines" | "displayControlsAfter" | "hasPopOver">;
|
|
1082
1070
|
|
|
1083
1071
|
declare function DxcContextualMenu({ items }: Props$v): react_jsx_runtime.JSX.Element;
|
|
1084
1072
|
|
|
@@ -1663,6 +1651,10 @@ type CommonProps$5 = {
|
|
|
1663
1651
|
* 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.
|
|
1664
1652
|
*/
|
|
1665
1653
|
showPreview?: boolean;
|
|
1654
|
+
/**
|
|
1655
|
+
* Size of the component.
|
|
1656
|
+
*/
|
|
1657
|
+
size?: "medium" | "fillParent";
|
|
1666
1658
|
/**
|
|
1667
1659
|
* Value of the tabindex attribute.
|
|
1668
1660
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -202,59 +202,6 @@ type Props$J = CommonProps$8 & ModeSpecificProps;
|
|
|
202
202
|
|
|
203
203
|
declare const DxcAlert: ({ closable, message, mode, primaryAction, secondaryAction, semantic, title, }: Props$J) => react_jsx_runtime.JSX.Element;
|
|
204
204
|
|
|
205
|
-
type Section$1 = {
|
|
206
|
-
items: (Item$2 | GroupItem$2)[];
|
|
207
|
-
title?: string;
|
|
208
|
-
};
|
|
209
|
-
type Props$I = {
|
|
210
|
-
/**
|
|
211
|
-
* The content rendered in the bottom part of the sidenav, under the navigation menu.
|
|
212
|
-
*/
|
|
213
|
-
bottomContent?: ReactNode;
|
|
214
|
-
/**
|
|
215
|
-
* Object with the properties of the branding placed at the top of the sidenav.
|
|
216
|
-
*/
|
|
217
|
-
appTitle?: string | ReactNode;
|
|
218
|
-
/**
|
|
219
|
-
* Initial state of the expansion of the sidenav, only when it is uncontrolled.
|
|
220
|
-
*/
|
|
221
|
-
defaultExpanded?: boolean;
|
|
222
|
-
/**
|
|
223
|
-
* If true the nav menu will have lines marking the groups.
|
|
224
|
-
*/
|
|
225
|
-
displayGroupLines?: boolean;
|
|
226
|
-
/**
|
|
227
|
-
* If true, the sidenav is expanded.
|
|
228
|
-
* If undefined the component will be uncontrolled and the value will be managed internally by the component.
|
|
229
|
-
*/
|
|
230
|
-
expanded?: boolean;
|
|
231
|
-
/**
|
|
232
|
-
* Array of items to be displayed in the navigation menu.
|
|
233
|
-
* Each item can be a single/simple item, a group item or a section.
|
|
234
|
-
*/
|
|
235
|
-
navItems?: (Item$2 | GroupItem$2)[] | Section$1[];
|
|
236
|
-
/**
|
|
237
|
-
* Function called when the expansion state of the sidenav changes.
|
|
238
|
-
*/
|
|
239
|
-
onExpandedChange?: (value: boolean) => void;
|
|
240
|
-
/**
|
|
241
|
-
* The additional content rendered in the upper part of the sidenav, under the branding.
|
|
242
|
-
*/
|
|
243
|
-
topContent?: ReactNode;
|
|
244
|
-
};
|
|
245
|
-
type CommonItemProps$1 = {
|
|
246
|
-
badge?: ReactElement;
|
|
247
|
-
icon?: string | SVG;
|
|
248
|
-
label: string;
|
|
249
|
-
};
|
|
250
|
-
type Item$2 = CommonItemProps$1 & {
|
|
251
|
-
onSelect?: () => void;
|
|
252
|
-
selected?: boolean;
|
|
253
|
-
};
|
|
254
|
-
type GroupItem$2 = CommonItemProps$1 & {
|
|
255
|
-
items: (Item$2 | GroupItem$2)[];
|
|
256
|
-
};
|
|
257
|
-
|
|
258
205
|
type CommonItemProps = {
|
|
259
206
|
badge?: ReactElement;
|
|
260
207
|
icon?: string | SVG;
|
|
@@ -271,16 +218,16 @@ type Item$1 = CommonItemProps & {
|
|
|
271
218
|
type GroupItem$1 = CommonItemProps & {
|
|
272
219
|
items: (Item$1 | GroupItem$1)[];
|
|
273
220
|
};
|
|
274
|
-
type Section = {
|
|
221
|
+
type Section$1 = {
|
|
275
222
|
items: (Item$1 | GroupItem$1)[];
|
|
276
223
|
title?: string;
|
|
277
224
|
};
|
|
278
|
-
type Props$
|
|
225
|
+
type Props$I = {
|
|
279
226
|
/**
|
|
280
227
|
* Array of items to be displayed in the menu.
|
|
281
228
|
* Each item can be a single/simple item, a group item or a section.
|
|
282
229
|
*/
|
|
283
|
-
items: (Item$1 | GroupItem$1)[] | Section[];
|
|
230
|
+
items: (Item$1 | GroupItem$1)[] | Section$1[];
|
|
284
231
|
/**
|
|
285
232
|
* If true the menu will be displayed with a border.
|
|
286
233
|
*/
|
|
@@ -303,6 +250,47 @@ type Props$H = {
|
|
|
303
250
|
isHorizontal?: boolean;
|
|
304
251
|
};
|
|
305
252
|
|
|
253
|
+
type Section = {
|
|
254
|
+
items: (Item$1 | GroupItem$1)[];
|
|
255
|
+
title?: string;
|
|
256
|
+
};
|
|
257
|
+
type Props$H = {
|
|
258
|
+
/**
|
|
259
|
+
* The content rendered in the bottom part of the sidenav, under the navigation menu.
|
|
260
|
+
*/
|
|
261
|
+
bottomContent?: ReactNode;
|
|
262
|
+
/**
|
|
263
|
+
* Object with the properties of the branding placed at the top of the sidenav.
|
|
264
|
+
*/
|
|
265
|
+
appTitle?: string | ReactNode;
|
|
266
|
+
/**
|
|
267
|
+
* Initial state of the expansion of the sidenav, only when it is uncontrolled.
|
|
268
|
+
*/
|
|
269
|
+
defaultExpanded?: boolean;
|
|
270
|
+
/**
|
|
271
|
+
* If true the nav menu will have lines marking the groups.
|
|
272
|
+
*/
|
|
273
|
+
displayGroupLines?: boolean;
|
|
274
|
+
/**
|
|
275
|
+
* If true, the sidenav is expanded.
|
|
276
|
+
* If undefined the component will be uncontrolled and the value will be managed internally by the component.
|
|
277
|
+
*/
|
|
278
|
+
expanded?: boolean;
|
|
279
|
+
/**
|
|
280
|
+
* Array of items to be displayed in the navigation menu.
|
|
281
|
+
* Each item can be a single/simple item, a group item or a section.
|
|
282
|
+
*/
|
|
283
|
+
navItems?: (Item$1 | GroupItem$1)[] | Section[];
|
|
284
|
+
/**
|
|
285
|
+
* Function called when the expansion state of the sidenav changes.
|
|
286
|
+
*/
|
|
287
|
+
onExpandedChange?: (value: boolean) => void;
|
|
288
|
+
/**
|
|
289
|
+
* The additional content rendered in the upper part of the sidenav, under the branding.
|
|
290
|
+
*/
|
|
291
|
+
topContent?: ReactNode;
|
|
292
|
+
};
|
|
293
|
+
|
|
306
294
|
type GroupItem = CommonItemProps & {
|
|
307
295
|
items: Item$1[];
|
|
308
296
|
};
|
|
@@ -342,7 +330,7 @@ type Logo = {
|
|
|
342
330
|
/**
|
|
343
331
|
* Source of the logo image.
|
|
344
332
|
*/
|
|
345
|
-
src: string;
|
|
333
|
+
src: string | SVG;
|
|
346
334
|
/**
|
|
347
335
|
* Alternative text for the logo image.
|
|
348
336
|
*/
|
|
@@ -440,7 +428,7 @@ declare const DxcApplicationLayout: {
|
|
|
440
428
|
Footer: ({ bottomLinks, copyright, leftContent, logo, mode, rightContent, socialLinks, tabIndex, }: FooterPropsType) => JSX.Element;
|
|
441
429
|
Header: ({ appTitle, navItems, sideContent, responsiveBottomContent }: Props$G) => JSX.Element;
|
|
442
430
|
Main: ({ children }: AppLayoutMainPropsType) => JSX.Element;
|
|
443
|
-
Sidenav: ({ topContent, bottomContent, navItems, appTitle, displayGroupLines, expanded, defaultExpanded, onExpandedChange, }: Props$
|
|
431
|
+
Sidenav: ({ topContent, bottomContent, navItems, appTitle, displayGroupLines, expanded, defaultExpanded, onExpandedChange, }: Props$H) => JSX.Element;
|
|
444
432
|
};
|
|
445
433
|
|
|
446
434
|
type Size$5 = "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
@@ -1078,7 +1066,7 @@ type Props$w = {
|
|
|
1078
1066
|
|
|
1079
1067
|
declare const DxcContainer: react.ForwardRefExoticComponent<Props$w & react.RefAttributes<HTMLDivElement>>;
|
|
1080
1068
|
|
|
1081
|
-
type Props$v = Omit<Props$
|
|
1069
|
+
type Props$v = Omit<Props$I, "displayBorder" | "displayGroupLines" | "displayControlsAfter" | "hasPopOver">;
|
|
1082
1070
|
|
|
1083
1071
|
declare function DxcContextualMenu({ items }: Props$v): react_jsx_runtime.JSX.Element;
|
|
1084
1072
|
|
|
@@ -1663,6 +1651,10 @@ type CommonProps$5 = {
|
|
|
1663
1651
|
* 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.
|
|
1664
1652
|
*/
|
|
1665
1653
|
showPreview?: boolean;
|
|
1654
|
+
/**
|
|
1655
|
+
* Size of the component.
|
|
1656
|
+
*/
|
|
1657
|
+
size?: "medium" | "fillParent";
|
|
1666
1658
|
/**
|
|
1667
1659
|
* Value of the tabindex attribute.
|
|
1668
1660
|
*/
|