@dxc-technology/halstack-react 0.0.0-c2aa807 → 0.0.0-c2da493

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 CHANGED
@@ -350,6 +350,20 @@ type Props$F = {
350
350
  title?: string;
351
351
  };
352
352
 
353
+ type Logo = {
354
+ /**
355
+ * URL to navigate when the logo is clicked.
356
+ */
357
+ href?: string;
358
+ /**
359
+ * Source of the logo image.
360
+ */
361
+ src: string;
362
+ /**
363
+ * Alternative text for the logo image.
364
+ */
365
+ title?: string;
366
+ };
353
367
  type Props$E = {
354
368
  /**
355
369
  * Whether a contrast line should appear at the bottom of the header.
@@ -367,13 +381,17 @@ type Props$E = {
367
381
  */
368
382
  responsiveContent?: (closeHandler: () => void) => ReactNode;
369
383
  /**
370
- * This function will be called when the user clicks the header logo.
384
+ * Logo to be displayed inside the header
371
385
  */
372
- onClick?: () => void;
386
+ logo?: Logo;
373
387
  /**
374
388
  * Size of the bottom margin to be applied to the header.
375
389
  */
376
390
  margin?: Space$1;
391
+ /**
392
+ * This function will be called when the user clicks the header logo.
393
+ */
394
+ onClick?: () => void;
377
395
  /**
378
396
  * Value of the tabindex for all interactive elements, except those inside the
379
397
  * custom area.
@@ -476,7 +494,7 @@ declare const DxcApplicationLayout: {
476
494
  ({ visibilityToggleLabel, header, sidenav, footer, children, }: ApplicationLayoutPropsType): JSX.Element;
477
495
  Footer: ({ socialLinks, bottomLinks, copyright, children, margin, tabIndex, mode, }: FooterPropsType) => JSX.Element;
478
496
  Header: {
479
- ({ underlined, content, responsiveContent, onClick, margin, tabIndex, }: Props$E): JSX.Element;
497
+ ({ underlined, content, responsiveContent, logo, margin, onClick, tabIndex, }: Props$E): JSX.Element;
480
498
  Dropdown: (props: react.ComponentProps<({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: Props$F) => react_jsx_runtime.JSX.Element>) => react_jsx_runtime.JSX.Element;
481
499
  };
482
500
  Main: ({ children }: AppLayoutMainPropsType) => JSX.Element;
@@ -2996,7 +3014,7 @@ type TabProps = {
2996
3014
  defaultActive?: boolean;
2997
3015
  active?: boolean;
2998
3016
  title?: string;
2999
- tabId: string;
3017
+ tabId?: string;
3000
3018
  disabled?: boolean;
3001
3019
  notificationNumber?: boolean | number;
3002
3020
  children: ReactNode;
package/dist/index.d.ts CHANGED
@@ -350,6 +350,20 @@ type Props$F = {
350
350
  title?: string;
351
351
  };
352
352
 
353
+ type Logo = {
354
+ /**
355
+ * URL to navigate when the logo is clicked.
356
+ */
357
+ href?: string;
358
+ /**
359
+ * Source of the logo image.
360
+ */
361
+ src: string;
362
+ /**
363
+ * Alternative text for the logo image.
364
+ */
365
+ title?: string;
366
+ };
353
367
  type Props$E = {
354
368
  /**
355
369
  * Whether a contrast line should appear at the bottom of the header.
@@ -367,13 +381,17 @@ type Props$E = {
367
381
  */
368
382
  responsiveContent?: (closeHandler: () => void) => ReactNode;
369
383
  /**
370
- * This function will be called when the user clicks the header logo.
384
+ * Logo to be displayed inside the header
371
385
  */
372
- onClick?: () => void;
386
+ logo?: Logo;
373
387
  /**
374
388
  * Size of the bottom margin to be applied to the header.
375
389
  */
376
390
  margin?: Space$1;
391
+ /**
392
+ * This function will be called when the user clicks the header logo.
393
+ */
394
+ onClick?: () => void;
377
395
  /**
378
396
  * Value of the tabindex for all interactive elements, except those inside the
379
397
  * custom area.
@@ -476,7 +494,7 @@ declare const DxcApplicationLayout: {
476
494
  ({ visibilityToggleLabel, header, sidenav, footer, children, }: ApplicationLayoutPropsType): JSX.Element;
477
495
  Footer: ({ socialLinks, bottomLinks, copyright, children, margin, tabIndex, mode, }: FooterPropsType) => JSX.Element;
478
496
  Header: {
479
- ({ underlined, content, responsiveContent, onClick, margin, tabIndex, }: Props$E): JSX.Element;
497
+ ({ underlined, content, responsiveContent, logo, margin, onClick, tabIndex, }: Props$E): JSX.Element;
480
498
  Dropdown: (props: react.ComponentProps<({ options, optionsIconPosition, icon, iconPosition, label, caretHidden, disabled, expandOnHover, onSelectOption, margin, size, tabIndex, title, }: Props$F) => react_jsx_runtime.JSX.Element>) => react_jsx_runtime.JSX.Element;
481
499
  };
482
500
  Main: ({ children }: AppLayoutMainPropsType) => JSX.Element;
@@ -2996,7 +3014,7 @@ type TabProps = {
2996
3014
  defaultActive?: boolean;
2997
3015
  active?: boolean;
2998
3016
  title?: string;
2999
- tabId: string;
3017
+ tabId?: string;
3000
3018
  disabled?: boolean;
3001
3019
  notificationNumber?: boolean | number;
3002
3020
  children: ReactNode;