@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.mjs CHANGED
@@ -3540,8 +3540,8 @@ var BottomLink = styled12.a`
3540
3540
  var Footer_default = DxcFooter;
3541
3541
 
3542
3542
  // src/header/Header.tsx
3543
- import { useEffect as useEffect4, useMemo as useMemo5, useRef as useRef3, useState as useState6 } from "react";
3544
- import styled16, { ThemeProvider as ThemeProvider2 } from "styled-components";
3543
+ import { useEffect as useEffect4, useRef as useRef3, useState as useState6 } from "react";
3544
+ import styled16 from "styled-components";
3545
3545
 
3546
3546
  // src/dropdown/Dropdown.tsx
3547
3547
  import * as Popover from "@radix-ui/react-popover";
@@ -3982,114 +3982,33 @@ var Dropdown_default = DxcDropdown;
3982
3982
 
3983
3983
  // src/header/Header.tsx
3984
3984
  import { useContext as useContext6 } from "react";
3985
+
3986
+ // src/header/Icons.tsx
3985
3987
  import { jsx as jsx20, jsxs as jsxs12 } from "react/jsx-runtime";
3986
- var Dropdown = (props) => /* @__PURE__ */ jsx20(HeaderDropdown, { children: /* @__PURE__ */ jsx20(Dropdown_default, { ...props }) });
3987
- var getLogoElement = (themeInput, logoLabel) => {
3988
- if (!themeInput) {
3989
- return /* @__PURE__ */ jsxs12("svg", { xmlns: "http://www.w3.org/2000/svg", width: "73", height: "40", viewBox: "0 0 73 40", children: [
3990
- /* @__PURE__ */ jsx20("title", { children: "DXC Logo" }),
3991
- /* @__PURE__ */ jsx20("g", { transform: "translate(0)", children: /* @__PURE__ */ jsxs12("g", { children: [
3992
- /* @__PURE__ */ jsx20(
3993
- "path",
3994
- {
3995
- d: "M91.613-28.177v2.514H90.231V-28.15l-2.415-3.82h1.616l1.5,2.532,1.526-2.532h1.571ZM83.9-25.555A3.15,3.15,0,0,1,80.6-28.8v-.018a3.231,3.231,0,0,1,3.294-3.262,3.442,3.442,0,0,1,2.469.865l-.87,1.054a2.311,2.311,0,0,0-1.643-.64,1.891,1.891,0,0,0-1.8,1.964v.018a1.886,1.886,0,0,0,1.9,2,2.2,2.2,0,0,0,1.3-.378v-.9H83.858v-1.2h2.729v2.738A4.071,4.071,0,0,1,83.9-25.555Zm-6.416-3.261a1.913,1.913,0,0,0-1.9-1.982A1.883,1.883,0,0,0,73.7-28.835v.018a1.913,1.913,0,0,0,1.9,1.982A1.883,1.883,0,0,0,77.486-28.8Zm-1.9,3.261a3.225,3.225,0,0,1-3.33-3.243v-.018A3.255,3.255,0,0,1,75.6-32.078a3.225,3.225,0,0,1,3.331,3.243v.018A3.255,3.255,0,0,1,75.583-25.555Zm-9.173-.108V-31.97h1.382v5.045h3.133v1.261Zm-3.433-3.153a1.913,1.913,0,0,0-1.9-1.982,1.883,1.883,0,0,0-1.886,1.964v.018a1.913,1.913,0,0,0,1.9,1.982A1.883,1.883,0,0,0,62.978-28.8Zm-1.9,3.261a3.225,3.225,0,0,1-3.33-3.243v-.018a3.255,3.255,0,0,1,3.348-3.262,3.225,3.225,0,0,1,3.331,3.243v.018A3.255,3.255,0,0,1,61.075-25.555Zm-6.508-.108-3.043-4.009v4.009H50.159V-31.97h1.275l2.944,3.883V-31.97h1.364v6.306Zm-8.246,0v-2.531h-2.55v2.531H42.389V-31.97h1.382v2.5h2.55v-2.5H47.7v6.306Zm-8.432.108A3.178,3.178,0,0,1,34.666-28.8v-.018a3.2,3.2,0,0,1,3.276-3.262,3.237,3.237,0,0,1,2.478.973l-.88,1.018a2.315,2.315,0,0,0-1.606-.712,1.866,1.866,0,0,0-1.822,1.964v.018a1.87,1.87,0,0,0,1.822,1.982,2.265,2.265,0,0,0,1.651-.739l.88.891A3.206,3.206,0,0,1,37.889-25.555Zm-9.805-.108V-31.97h4.739v1.235H29.458v1.279h2.962v1.234H29.458V-26.9h3.411v1.234ZM24.322-30.69v5.027H22.939V-30.69H21.028v-1.28h5.206v1.28H24.322",
3996
- transform: "translate(-21.028 65.555)",
3997
- fill: "#010101"
3998
- }
3999
- ),
4000
- /* @__PURE__ */ jsx20(
4001
- "path",
4002
- {
4003
- d: "M75.836-76.712a8.975,8.975,0,0,1,2.246-3.9,8.393,8.393,0,0,1,6.058-2.457h9.824v-5.67H84.139a14.611,14.611,0,0,0-10.232,4.221,14.509,14.509,0,0,0-3.076,4.536,11.913,11.913,0,0,0-.973,3.271Zm0,4.325a8.978,8.978,0,0,0,2.246,3.9,8.394,8.394,0,0,0,6.058,2.457h9.824v5.67H84.139A14.611,14.611,0,0,1,73.907-64.58a14.506,14.506,0,0,1-3.076-4.536,11.91,11.91,0,0,1-.973-3.271ZM57.522-69.832l-7.5,9.473H42.581L53.818-74.55,42.581-88.739H50.02l7.5,9.472,7.5-9.472h7.439L61.225-74.55l11.237,14.19H65.023Zm-12.336-6.88a11.935,11.935,0,0,0-.973-3.271,14.515,14.515,0,0,0-3.076-4.536A14.612,14.612,0,0,0,30.9-88.739H21.081v5.67H30.9a8.394,8.394,0,0,1,6.058,2.457,8.978,8.978,0,0,1,2.246,3.9Zm0,4.325a11.932,11.932,0,0,1-.973,3.271,14.511,14.511,0,0,1-3.076,4.536A14.611,14.611,0,0,1,30.9-60.359H21.081v-5.67H30.9a8.4,8.4,0,0,0,6.058-2.457,8.981,8.981,0,0,0,2.246-3.9h5.978",
4004
- transform: "translate(-21.049 88.739)",
4005
- fill: "#603494"
4006
- }
4007
- )
4008
- ] }) })
4009
- ] });
4010
- } else if (typeof themeInput === "string") return /* @__PURE__ */ jsx20(LogoImg2, { alt: logoLabel, src: themeInput });
4011
- else return themeInput;
4012
- };
4013
- var Content3 = ({ isResponsive, responsiveContent, handleMenu, content }) => isResponsive ? /* @__PURE__ */ jsx20(MenuContent, { children: responsiveContent?.(handleMenu) }) : /* @__PURE__ */ jsx20(ContentContainer, { children: content });
4014
- var DxcHeader = ({
4015
- underlined = false,
4016
- content,
4017
- responsiveContent,
4018
- onClick,
4019
- margin,
4020
- tabIndex = 0
4021
- }) => {
4022
- const [isResponsive, setIsResponsive] = useState6(false);
4023
- const [isMenuVisible, setIsMenuVisible] = useState6(false);
4024
- const colorsTheme = useContext6(HalstackContext);
4025
- const translatedLabels = useContext6(HalstackLanguageContext);
4026
- const ref = useRef3(null);
4027
- const handleMenu = () => {
4028
- if (isResponsive && !isMenuVisible) {
4029
- setIsMenuVisible(!isMenuVisible);
4030
- } else {
4031
- setIsMenuVisible(!isMenuVisible);
4032
- }
4033
- };
4034
- const headerLogo = useMemo5(
4035
- () => getLogoElement(colorsTheme.header.logo, translatedLabels.formFields.logoAlternativeText),
4036
- [colorsTheme, translatedLabels]
4037
- );
4038
- const headerResponsiveLogo = useMemo5(
4039
- () => getLogoElement(colorsTheme.header.logoResponsive, translatedLabels.formFields.logoAlternativeText),
4040
- [colorsTheme, translatedLabels]
4041
- );
4042
- useEffect4(() => {
4043
- const handleResize = () => {
4044
- setIsResponsive(window.matchMedia(`(max-width: ${responsiveSizes.medium}rem)`).matches);
4045
- };
4046
- handleResize();
4047
- window.addEventListener("resize", handleResize);
4048
- return () => {
4049
- window.removeEventListener("resize", handleResize);
4050
- };
4051
- }, []);
4052
- useEffect4(() => {
4053
- if (!isResponsive) {
4054
- setIsMenuVisible(false);
4055
- }
4056
- }, [isResponsive]);
4057
- return /* @__PURE__ */ jsx20(ThemeProvider2, { theme: colorsTheme.header, children: /* @__PURE__ */ jsxs12(HeaderContainer, { underlined, margin, ref, children: [
4058
- /* @__PURE__ */ jsx20(LogoAnchor, { tabIndex: onClick ? tabIndex : -1, interactive: !!onClick, onClick, children: /* @__PURE__ */ jsx20(LogoContainer2, { children: headerLogo }) }),
4059
- isResponsive && responsiveContent && /* @__PURE__ */ jsxs12(Flex_default, { grow: 1, children: [
4060
- /* @__PURE__ */ jsx20(ChildContainer, { children: /* @__PURE__ */ jsxs12(HamburgerTrigger, { tabIndex, onClick: handleMenu, "aria-label": "Show options", children: [
4061
- /* @__PURE__ */ jsx20(DxcIcon, { icon: "menu" }),
4062
- translatedLabels.header.hamburgerTitle
4063
- ] }) }),
4064
- /* @__PURE__ */ jsxs12(ResponsiveMenu, { hasVisibility: isMenuVisible, children: [
4065
- /* @__PURE__ */ jsxs12(Flex_default, { justifyContent: "space-between", alignItems: "center", children: [
4066
- /* @__PURE__ */ jsx20(ResponsiveLogoContainer, { children: headerResponsiveLogo }),
4067
- /* @__PURE__ */ jsx20(Tooltip, { label: translatedLabels.header.closeIcon, children: /* @__PURE__ */ jsx20(CloseAction, { tabIndex, onClick: handleMenu, "aria-label": translatedLabels.header.closeIcon, children: /* @__PURE__ */ jsx20(DxcIcon, { icon: "close" }) }) })
4068
- ] }),
4069
- /* @__PURE__ */ jsx20(
4070
- Content3,
4071
- {
4072
- isResponsive,
4073
- responsiveContent,
4074
- handleMenu,
4075
- content
4076
- }
4077
- )
4078
- ] }),
4079
- /* @__PURE__ */ jsx20(Overlay2, { onClick: handleMenu, hasVisibility: isMenuVisible })
4080
- ] }),
4081
- !isResponsive && /* @__PURE__ */ jsx20(
4082
- Content3,
3988
+ var dxcLogo2 = /* @__PURE__ */ jsxs12("svg", { xmlns: "http://www.w3.org/2000/svg", width: "73", height: "40", viewBox: "0 0 73 40", children: [
3989
+ /* @__PURE__ */ jsx20("title", { children: "DXC Logo" }),
3990
+ /* @__PURE__ */ jsx20("g", { transform: "translate(0)", children: /* @__PURE__ */ jsxs12("g", { children: [
3991
+ /* @__PURE__ */ jsx20(
3992
+ "path",
4083
3993
  {
4084
- isResponsive,
4085
- responsiveContent,
4086
- handleMenu,
4087
- content
3994
+ d: "M91.613-28.177v2.514H90.231V-28.15l-2.415-3.82h1.616l1.5,2.532,1.526-2.532h1.571ZM83.9-25.555A3.15,3.15,0,0,1,80.6-28.8v-.018a3.231,3.231,0,0,1,3.294-3.262,3.442,3.442,0,0,1,2.469.865l-.87,1.054a2.311,2.311,0,0,0-1.643-.64,1.891,1.891,0,0,0-1.8,1.964v.018a1.886,1.886,0,0,0,1.9,2,2.2,2.2,0,0,0,1.3-.378v-.9H83.858v-1.2h2.729v2.738A4.071,4.071,0,0,1,83.9-25.555Zm-6.416-3.261a1.913,1.913,0,0,0-1.9-1.982A1.883,1.883,0,0,0,73.7-28.835v.018a1.913,1.913,0,0,0,1.9,1.982A1.883,1.883,0,0,0,77.486-28.8Zm-1.9,3.261a3.225,3.225,0,0,1-3.33-3.243v-.018A3.255,3.255,0,0,1,75.6-32.078a3.225,3.225,0,0,1,3.331,3.243v.018A3.255,3.255,0,0,1,75.583-25.555Zm-9.173-.108V-31.97h1.382v5.045h3.133v1.261Zm-3.433-3.153a1.913,1.913,0,0,0-1.9-1.982,1.883,1.883,0,0,0-1.886,1.964v.018a1.913,1.913,0,0,0,1.9,1.982A1.883,1.883,0,0,0,62.978-28.8Zm-1.9,3.261a3.225,3.225,0,0,1-3.33-3.243v-.018a3.255,3.255,0,0,1,3.348-3.262,3.225,3.225,0,0,1,3.331,3.243v.018A3.255,3.255,0,0,1,61.075-25.555Zm-6.508-.108-3.043-4.009v4.009H50.159V-31.97h1.275l2.944,3.883V-31.97h1.364v6.306Zm-8.246,0v-2.531h-2.55v2.531H42.389V-31.97h1.382v2.5h2.55v-2.5H47.7v6.306Zm-8.432.108A3.178,3.178,0,0,1,34.666-28.8v-.018a3.2,3.2,0,0,1,3.276-3.262,3.237,3.237,0,0,1,2.478.973l-.88,1.018a2.315,2.315,0,0,0-1.606-.712,1.866,1.866,0,0,0-1.822,1.964v.018a1.87,1.87,0,0,0,1.822,1.982,2.265,2.265,0,0,0,1.651-.739l.88.891A3.206,3.206,0,0,1,37.889-25.555Zm-9.805-.108V-31.97h4.739v1.235H29.458v1.279h2.962v1.234H29.458V-26.9h3.411v1.234ZM24.322-30.69v5.027H22.939V-30.69H21.028v-1.28h5.206v1.28H24.322",
3995
+ transform: "translate(-21.028 65.555)",
3996
+ fill: "#010101"
3997
+ }
3998
+ ),
3999
+ /* @__PURE__ */ jsx20(
4000
+ "path",
4001
+ {
4002
+ d: "M75.836-76.712a8.975,8.975,0,0,1,2.246-3.9,8.393,8.393,0,0,1,6.058-2.457h9.824v-5.67H84.139a14.611,14.611,0,0,0-10.232,4.221,14.509,14.509,0,0,0-3.076,4.536,11.913,11.913,0,0,0-.973,3.271Zm0,4.325a8.978,8.978,0,0,0,2.246,3.9,8.394,8.394,0,0,0,6.058,2.457h9.824v5.67H84.139A14.611,14.611,0,0,1,73.907-64.58a14.506,14.506,0,0,1-3.076-4.536,11.91,11.91,0,0,1-.973-3.271ZM57.522-69.832l-7.5,9.473H42.581L53.818-74.55,42.581-88.739H50.02l7.5,9.472,7.5-9.472h7.439L61.225-74.55l11.237,14.19H65.023Zm-12.336-6.88a11.935,11.935,0,0,0-.973-3.271,14.515,14.515,0,0,0-3.076-4.536A14.612,14.612,0,0,0,30.9-88.739H21.081v5.67H30.9a8.394,8.394,0,0,1,6.058,2.457,8.978,8.978,0,0,1,2.246,3.9Zm0,4.325a11.932,11.932,0,0,1-.973,3.271,14.511,14.511,0,0,1-3.076,4.536A14.611,14.611,0,0,1,30.9-60.359H21.081v-5.67H30.9a8.4,8.4,0,0,0,6.058-2.457,8.981,8.981,0,0,0,2.246-3.9h5.978",
4003
+ transform: "translate(-21.049 88.739)",
4004
+ fill: "#603494"
4088
4005
  }
4089
4006
  )
4090
- ] }) });
4091
- };
4092
- DxcHeader.Dropdown = Dropdown;
4007
+ ] }) })
4008
+ ] });
4009
+
4010
+ // src/header/Header.tsx
4011
+ import { jsx as jsx21, jsxs as jsxs13 } from "react/jsx-runtime";
4093
4012
  var HeaderDropdown = styled16.div`
4094
4013
  display: flex;
4095
4014
  button {
@@ -4100,28 +4019,28 @@ var HeaderDropdown = styled16.div`
4100
4019
  }
4101
4020
  `;
4102
4021
  var HeaderContainer = styled16.header`
4022
+ background-color: var(--color-bg-neutral-lightest);
4023
+ border-bottom: ${(props) => props.underlined && `var(--border-width-m) var(--border-style-default) var(--border-color-neutral-strongest)`};
4024
+ align-items: center;
4103
4025
  box-sizing: border-box;
4104
4026
  display: flex;
4105
4027
  flex-direction: row;
4106
- align-items: center;
4107
4028
  justify-content: space-between;
4108
- min-height: ${(props) => props.theme.minHeight};
4109
4029
  margin-bottom: ${(props) => props.margin ? spaces[props.margin] : "0px"};
4110
- padding: ${(props) => `${props.theme.paddingTop} ${props.theme.paddingRight} ${props.theme.paddingBottom} ${props.theme.paddingLeft}`};
4111
- background-color: ${(props) => props.theme.backgroundColor};
4112
- border-bottom: ${(props) => props.underlined && `${props.theme.underlinedThickness} ${props.theme.underlinedStyle} ${props.theme.underlinedColor}`};
4030
+ min-height: 64px;
4031
+ padding: var(--spacing-padding-none) var(--spacing-padding-l);
4113
4032
  `;
4114
4033
  var LogoAnchor = styled16.a`
4115
4034
  ${(props) => props.interactive ? "cursor: pointer" : "cursor: default; outline:none;"};
4116
4035
  `;
4117
4036
  var LogoImg2 = styled16.img`
4118
- max-height: ${(props) => props.theme.logoHeight};
4119
- width: ${(props) => props.theme.logoWidth};
4037
+ max-height: var(--height-xl);
4038
+ width: auto;
4120
4039
  `;
4121
4040
  var LogoContainer2 = styled16.div`
4122
- max-height: ${(props) => props.theme.logoHeight};
4123
- width: ${(props) => props.theme.logoWidth};
4041
+ max-height: var(--height-xl);
4124
4042
  vertical-align: middle;
4043
+ width: auto;
4125
4044
  `;
4126
4045
  var ChildContainer = styled16.div`
4127
4046
  display: flex;
@@ -4136,94 +4055,74 @@ var ContentContainer = styled16.div`
4136
4055
  flex-grow: 1;
4137
4056
  justify-content: flex-end;
4138
4057
  width: calc(100% - 186px);
4139
- color: ${(props) => props.theme.contentColor};
4058
+ color: var(--color-fg-neutral-dark);
4140
4059
  `;
4141
4060
  var HamburgerTrigger = styled16.button`
4061
+ align-items: center;
4062
+ background-color: transparent;
4063
+ border-radius: var(--border-radius-xs);
4064
+ border: var(--border-width-s) var(--border-style-default) transparent;
4065
+ color: var(--color-fg-neutral-dark);
4066
+ cursor: pointer;
4142
4067
  display: flex;
4143
4068
  flex-direction: column;
4069
+ font-family: var(--typography-font-family);
4070
+ font-size: var(--typography-label-s);
4071
+ font-weight: var(--typography-label-semibold);
4072
+ height: var(--height-xl);
4144
4073
  justify-content: center;
4145
- align-items: center;
4146
- width: 54px;
4147
- cursor: pointer;
4148
- border: 1px solid transparent;
4149
- border-radius: 2px;
4150
- background-color: transparent;
4074
+ // TODO: Ask about padding (spacing-padding-m or spacing-padding-xs?)
4075
+ padding: var(--spacing-padding-none) var(--spacing-padding-m);
4076
+ text-transform: uppercase;
4151
4077
  :hover {
4152
- background-color: ${(props) => props.theme.hamburgerHoverColor};
4078
+ background-color: var(--color-bg-neutral-medium);
4153
4079
  }
4154
4080
  &:focus {
4155
- outline: ${(props) => props.theme.hamburgerFocusColor} auto 1px;
4081
+ outline: var(--border-color-secondary-medium) var(--border-style-default) var(--border-width-m);
4156
4082
  }
4157
4083
  & > svg {
4158
- fill: ${(props) => props.theme.hamburgerIconColor};
4084
+ fill: var(--color-fg-neutral-dark);
4159
4085
  }
4160
4086
  & > span {
4161
- font-size: 24px;
4087
+ font-size: var(--height-s);
4162
4088
  }
4163
- font-family: ${(props) => props.theme.hamburgerFontFamily};
4164
- font-style: ${(props) => props.theme.hamburgerFontStyle};
4165
- font-size: ${(props) => props.theme.hamburgerFontSize};
4166
- text-transform: ${(props) => props.theme.hamburgerTextTransform};
4167
- font-weight: ${(props) => props.theme.hamburgerFontWeight};
4168
- color: ${(props) => props.theme.hamburgerFontColor};
4169
4089
  `;
4170
4090
  var ResponsiveMenu = styled16.div`
4171
4091
  display: flex;
4172
4092
  flex-direction: column;
4173
- background-color: ${(props) => props.theme.menuBackgroundColor};
4093
+ background-color: var(--color-bg-neutral-lightest);
4174
4094
  position: fixed;
4175
4095
  top: 0;
4176
4096
  right: 0;
4177
- z-index: ${(props) => props.theme.menuZindex};
4097
+ z-index: 2000;
4178
4098
 
4179
4099
  @media (max-width: ${responsiveSizes.large}rem) and (min-width: ${responsiveSizes.small}rem) {
4180
- width: ${(props) => props.theme.menuTabletWidth};
4100
+ width: 60vw;
4181
4101
  }
4182
4102
 
4183
4103
  @media (not((max-width: ${responsiveSizes.large}rem) and (min-width: ${responsiveSizes.small}rem))) {
4184
- width: ${(props) => props.theme.menuMobileWidth};
4104
+ width: 100vw;
4185
4105
  }
4186
4106
 
4187
4107
  height: 100vh;
4188
4108
  padding: 20px;
4189
4109
  transform: ${(props) => props.hasVisibility ? "translateX(0)" : "translateX(100vw)"};
4190
- opacity: ${(props) => props.hasVisibility ? "1" : "0.96"};
4191
4110
  transition-property: transform, opacity;
4192
4111
  transition-duration: 0.6s;
4193
4112
  transition-timing-function: ease-in-out;
4194
4113
  box-sizing: border-box;
4195
4114
  `;
4196
4115
  var ResponsiveLogoContainer = styled16.div`
4197
- max-height: ${(props) => props.theme.logoHeight};
4198
- width: ${(props) => props.theme.logoWidth};
4116
+ max-height: var(--height-xl);
4117
+ width: auto;
4199
4118
  display: flex;
4200
4119
  `;
4201
- var CloseAction = styled16.button`
4202
- display: flex;
4203
- justify-content: center;
4204
- align-content: center;
4205
- padding: 6px;
4206
- border: unset;
4207
- border-radius: 2px;
4208
- background-color: transparent;
4209
- cursor: pointer;
4210
-
4211
- :focus,
4212
- :focus-visible {
4213
- outline: ${(props) => props.theme.hamburgerFocusColor} auto 1px;
4214
- }
4215
- font-size: 24px;
4216
- svg {
4217
- height: 24px;
4218
- width: 24px;
4219
- }
4220
- `;
4221
4120
  var MenuContent = styled16.div`
4222
4121
  display: flex;
4223
4122
  flex-direction: column;
4224
4123
  align-items: flex-start;
4225
4124
  height: 100%;
4226
- color: ${(props) => props.theme.contentColor};
4125
+ color: var(--color-fg-neutral-dark);
4227
4126
  `;
4228
4127
  var Overlay2 = styled16.div`
4229
4128
  position: fixed;
@@ -4231,29 +4130,123 @@ var Overlay2 = styled16.div`
4231
4130
  left: 0;
4232
4131
  width: 100vw;
4233
4132
  height: 100vh;
4234
- background-color: ${(props) => props.theme.overlayColor};
4235
- opacity: ${(props) => props.theme.overlayOpacity} !important;
4236
- visibility: ${(props) => props.hasVisibility ? "visible" : "hidden"};
4237
- opacity: ${(props) => props.hasVisibility ? "1" : "0"};
4133
+ background-color: ${(props) => props.hasVisibility ? "var(--color-bg-alpha-medium)" : "transparent"};
4238
4134
 
4239
4135
  @media (max-width: ${responsiveSizes.small}rem) {
4240
- display: none;
4136
+ ${(props) => !props.hasVisibility && "display: none"};
4241
4137
  }
4242
4138
 
4243
- transition: opacity 0.2s 0.2s ease-in-out;
4244
- z-index: ${(props) => props.theme.overlayZindex};
4139
+ z-index: 1600;
4245
4140
  `;
4141
+ var Dropdown = (props) => /* @__PURE__ */ jsx21(HeaderDropdown, { children: /* @__PURE__ */ jsx21(Dropdown_default, { ...props }) });
4142
+ var getLogoElement = (logo) => {
4143
+ if (logo) {
4144
+ return /* @__PURE__ */ jsx21(LogoImg2, { alt: logo.title, src: logo.src, title: logo.title });
4145
+ } else {
4146
+ return dxcLogo2;
4147
+ }
4148
+ };
4149
+ var Content3 = ({ isResponsive, responsiveContent, handleMenu, content }) => isResponsive ? /* @__PURE__ */ jsx21(MenuContent, { children: responsiveContent?.(handleMenu) }) : /* @__PURE__ */ jsx21(ContentContainer, { children: content });
4150
+ var DxcHeader = ({
4151
+ underlined = false,
4152
+ content,
4153
+ responsiveContent,
4154
+ logo,
4155
+ margin,
4156
+ onClick,
4157
+ tabIndex = 0
4158
+ }) => {
4159
+ const [isResponsive, setIsResponsive] = useState6(false);
4160
+ const [isMenuVisible, setIsMenuVisible] = useState6(false);
4161
+ const translatedLabels = useContext6(HalstackLanguageContext);
4162
+ const ref = useRef3(null);
4163
+ const handleMenu = () => {
4164
+ if (isResponsive && !isMenuVisible) {
4165
+ setIsMenuVisible(!isMenuVisible);
4166
+ } else {
4167
+ setIsMenuVisible(!isMenuVisible);
4168
+ }
4169
+ };
4170
+ const headerLogo = getLogoElement(logo);
4171
+ useEffect4(() => {
4172
+ const handleResize = () => {
4173
+ setIsResponsive(window.matchMedia(`(max-width: ${responsiveSizes.medium}rem)`).matches);
4174
+ };
4175
+ handleResize();
4176
+ window.addEventListener("resize", handleResize);
4177
+ return () => {
4178
+ window.removeEventListener("resize", handleResize);
4179
+ };
4180
+ }, []);
4181
+ useEffect4(() => {
4182
+ if (!isResponsive) {
4183
+ setIsMenuVisible(false);
4184
+ }
4185
+ }, [isResponsive]);
4186
+ return /* @__PURE__ */ jsxs13(HeaderContainer, { underlined, margin, ref, children: [
4187
+ /* @__PURE__ */ jsx21(
4188
+ LogoAnchor,
4189
+ {
4190
+ href: logo?.href,
4191
+ tabIndex: onClick ? tabIndex : -1,
4192
+ interactive: !!onClick || !!logo?.href,
4193
+ onClick,
4194
+ children: /* @__PURE__ */ jsx21(LogoContainer2, { children: headerLogo })
4195
+ }
4196
+ ),
4197
+ isResponsive && responsiveContent && /* @__PURE__ */ jsxs13(Flex_default, { grow: 1, children: [
4198
+ /* @__PURE__ */ jsx21(ChildContainer, { children: /* @__PURE__ */ jsxs13(HamburgerTrigger, { tabIndex, onClick: handleMenu, "aria-label": "Show options", children: [
4199
+ /* @__PURE__ */ jsx21(DxcIcon, { icon: "menu" }),
4200
+ translatedLabels.header.hamburgerTitle
4201
+ ] }) }),
4202
+ /* @__PURE__ */ jsxs13(ResponsiveMenu, { hasVisibility: isMenuVisible, children: [
4203
+ /* @__PURE__ */ jsxs13(Flex_default, { justifyContent: "space-between", alignItems: "center", children: [
4204
+ /* @__PURE__ */ jsx21(ResponsiveLogoContainer, { children: headerLogo }),
4205
+ /* @__PURE__ */ jsx21(
4206
+ ActionIcon_default,
4207
+ {
4208
+ icon: "close",
4209
+ onClick: handleMenu,
4210
+ tabIndex,
4211
+ title: translatedLabels.header.closeIcon
4212
+ }
4213
+ )
4214
+ ] }),
4215
+ /* @__PURE__ */ jsx21(
4216
+ Content3,
4217
+ {
4218
+ isResponsive,
4219
+ responsiveContent,
4220
+ handleMenu,
4221
+ content
4222
+ }
4223
+ )
4224
+ ] }),
4225
+ /* @__PURE__ */ jsx21(Overlay2, { onClick: handleMenu, hasVisibility: isMenuVisible })
4226
+ ] }),
4227
+ !isResponsive && /* @__PURE__ */ jsx21(
4228
+ Content3,
4229
+ {
4230
+ isResponsive,
4231
+ responsiveContent,
4232
+ handleMenu,
4233
+ content
4234
+ }
4235
+ )
4236
+ ] });
4237
+ };
4238
+ DxcHeader.Dropdown = Dropdown;
4246
4239
  var Header_default = DxcHeader;
4247
4240
 
4248
4241
  // src/sidenav/Sidenav.tsx
4249
4242
  import { forwardRef as forwardRef3, useContext as useContext8, useEffect as useEffect5, useState as useState7 } from "react";
4250
- import styled17, { ThemeProvider as ThemeProvider3 } from "styled-components";
4243
+ import styled17, { ThemeProvider as ThemeProvider2 } from "styled-components";
4251
4244
 
4252
4245
  // src/bleed/Bleed.tsx
4253
- import { jsx as jsx21 } from "react/jsx-runtime";
4246
+ import { jsx as jsx22 } from "react/jsx-runtime";
4254
4247
  var getNegativeValue = (value) => value ? `calc(${value} * -1)` : null;
4255
4248
  function DxcBleed({ space, horizontal, vertical, top, right, bottom, left, children }) {
4256
- return /* @__PURE__ */ jsx21(
4249
+ return /* @__PURE__ */ jsx22(
4257
4250
  DxcContainer,
4258
4251
  {
4259
4252
  margin: {
@@ -4279,39 +4272,39 @@ var useResponsiveSidenavVisibility = () => {
4279
4272
  };
4280
4273
 
4281
4274
  // src/sidenav/Sidenav.tsx
4282
- import { Fragment as Fragment6, jsx as jsx22, jsxs as jsxs13 } from "react/jsx-runtime";
4275
+ import { Fragment as Fragment6, jsx as jsx23, jsxs as jsxs14 } from "react/jsx-runtime";
4283
4276
  var DxcSidenav = ({ title, children }) => {
4284
4277
  const colorsTheme = useContext8(HalstackContext);
4285
- return /* @__PURE__ */ jsx22(ThemeProvider3, { theme: colorsTheme.sidenav, children: /* @__PURE__ */ jsxs13(SidenavContainer, { children: [
4278
+ return /* @__PURE__ */ jsx23(ThemeProvider2, { theme: colorsTheme.sidenav, children: /* @__PURE__ */ jsxs14(SidenavContainer, { children: [
4286
4279
  title,
4287
- /* @__PURE__ */ jsx22(Flex_default, { direction: "column", gap: "1rem", children })
4280
+ /* @__PURE__ */ jsx23(Flex_default, { direction: "column", gap: "1rem", children })
4288
4281
  ] }) });
4289
4282
  };
4290
- var Title2 = ({ children }) => /* @__PURE__ */ jsx22(DxcBleed, { horizontal: "1rem", children: /* @__PURE__ */ jsx22(SidenavTitle, { children }) });
4291
- var Section = ({ children }) => /* @__PURE__ */ jsxs13(Fragment6, { children: [
4292
- /* @__PURE__ */ jsx22(DxcBleed, { horizontal: "1rem", children: /* @__PURE__ */ jsx22(Flex_default, { direction: "column", children }) }),
4293
- /* @__PURE__ */ jsx22(Divider, {})
4283
+ var Title2 = ({ children }) => /* @__PURE__ */ jsx23(DxcBleed, { horizontal: "1rem", children: /* @__PURE__ */ jsx23(SidenavTitle, { children }) });
4284
+ var Section = ({ children }) => /* @__PURE__ */ jsxs14(Fragment6, { children: [
4285
+ /* @__PURE__ */ jsx23(DxcBleed, { horizontal: "1rem", children: /* @__PURE__ */ jsx23(Flex_default, { direction: "column", children }) }),
4286
+ /* @__PURE__ */ jsx23(Divider, {})
4294
4287
  ] });
4295
4288
  var Group = ({ title, collapsable = false, icon, children }) => {
4296
4289
  const [collapsed, setCollapsed] = useState7(false);
4297
4290
  const [isSelected, changeIsSelected] = useState7(false);
4298
- return /* @__PURE__ */ jsx22(GroupContextProvider, { value: changeIsSelected, children: /* @__PURE__ */ jsxs13(SidenavGroup, { children: [
4299
- collapsable && title ? /* @__PURE__ */ jsxs13(
4291
+ return /* @__PURE__ */ jsx23(GroupContextProvider, { value: changeIsSelected, children: /* @__PURE__ */ jsxs14(SidenavGroup, { children: [
4292
+ collapsable && title ? /* @__PURE__ */ jsxs14(
4300
4293
  SidenavGroupTitleButton,
4301
4294
  {
4302
4295
  "aria-expanded": !collapsed,
4303
4296
  onClick: () => setCollapsed(!collapsed),
4304
4297
  selectedGroup: collapsed && isSelected,
4305
4298
  children: [
4306
- /* @__PURE__ */ jsxs13(Flex_default, { alignItems: "center", gap: "0.5rem", children: [
4307
- typeof icon === "string" ? /* @__PURE__ */ jsx22(DxcIcon, { icon }) : icon,
4299
+ /* @__PURE__ */ jsxs14(Flex_default, { alignItems: "center", gap: "0.5rem", children: [
4300
+ typeof icon === "string" ? /* @__PURE__ */ jsx23(DxcIcon, { icon }) : icon,
4308
4301
  title
4309
4302
  ] }),
4310
- /* @__PURE__ */ jsx22(DxcIcon, { icon: collapsed ? "expand_more" : "expand_less" })
4303
+ /* @__PURE__ */ jsx23(DxcIcon, { icon: collapsed ? "expand_more" : "expand_less" })
4311
4304
  ]
4312
4305
  }
4313
- ) : title && /* @__PURE__ */ jsxs13(SidenavGroupTitle, { children: [
4314
- typeof icon === "string" ? /* @__PURE__ */ jsx22(DxcIcon, { icon }) : icon,
4306
+ ) : title && /* @__PURE__ */ jsxs14(SidenavGroupTitle, { children: [
4307
+ typeof icon === "string" ? /* @__PURE__ */ jsx23(DxcIcon, { icon }) : icon,
4315
4308
  title
4316
4309
  ] }),
4317
4310
  !collapsed && children
@@ -4328,7 +4321,7 @@ var Link = forwardRef3(
4328
4321
  useEffect5(() => {
4329
4322
  changeIsGroupSelected?.((isGroupSelected2) => !isGroupSelected2 ? selected : isGroupSelected2);
4330
4323
  }, [selected, changeIsGroupSelected]);
4331
- return /* @__PURE__ */ jsxs13(
4324
+ return /* @__PURE__ */ jsxs14(
4332
4325
  SidenavLink,
4333
4326
  {
4334
4327
  selected,
@@ -4339,11 +4332,11 @@ var Link = forwardRef3(
4339
4332
  onClick: handleClick,
4340
4333
  ...otherProps,
4341
4334
  children: [
4342
- /* @__PURE__ */ jsxs13(Flex_default, { alignItems: "center", gap: "0.5rem", children: [
4343
- typeof icon === "string" ? /* @__PURE__ */ jsx22(DxcIcon, { icon }) : icon,
4335
+ /* @__PURE__ */ jsxs14(Flex_default, { alignItems: "center", gap: "0.5rem", children: [
4336
+ typeof icon === "string" ? /* @__PURE__ */ jsx23(DxcIcon, { icon }) : icon,
4344
4337
  children
4345
4338
  ] }),
4346
- newWindow && /* @__PURE__ */ jsx22(DxcIcon, { icon: "open_in_new" })
4339
+ newWindow && /* @__PURE__ */ jsx23(DxcIcon, { icon: "open_in_new" })
4347
4340
  ]
4348
4341
  }
4349
4342
  );
@@ -4502,9 +4495,9 @@ var Sidenav_default = DxcSidenav;
4502
4495
  import { Children as Children2, isValidElement, useState as useState8, useEffect as useEffect6 } from "react";
4503
4496
 
4504
4497
  // src/layout/Icons.tsx
4505
- import { jsx as jsx23, jsxs as jsxs14 } from "react/jsx-runtime";
4498
+ import { jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
4506
4499
  var layoutIcons = {
4507
- facebookLogo: /* @__PURE__ */ jsx23(
4500
+ facebookLogo: /* @__PURE__ */ jsx24(
4508
4501
  "svg",
4509
4502
  {
4510
4503
  version: "1.1",
@@ -4514,7 +4507,7 @@ var layoutIcons = {
4514
4507
  height: "438.536px",
4515
4508
  viewBox: "0 0 438.536 438.536",
4516
4509
  fill: "#FFFFFF",
4517
- children: /* @__PURE__ */ jsx23("g", { children: /* @__PURE__ */ jsx23(
4510
+ children: /* @__PURE__ */ jsx24("g", { children: /* @__PURE__ */ jsx24(
4518
4511
  "path",
4519
4512
  {
4520
4513
  d: "M414.41,24.123C398.333,8.042,378.963,0,356.315,0H82.228C59.58,0,40.21,8.042,24.126,24.123\n C8.045,40.207,0.003,59.576,0.003,82.225v274.084c0,22.647,8.042,42.018,24.123,58.102c16.084,16.084,35.454,24.126,58.102,24.126\n h274.084c22.648,0,42.018-8.042,58.095-24.126c16.084-16.084,24.126-35.454,24.126-58.102V82.225\n C438.532,59.576,430.49,40.204,414.41,24.123z M373.155,225.548h-49.963V406.84h-74.802V225.548H210.99V163.02h37.401v-37.402\n c0-26.838,6.283-47.107,18.843-60.813c12.559-13.706,33.304-20.555,62.242-20.555h49.963v62.526h-31.401\n c-10.663,0-17.467,1.853-20.417,5.568c-2.949,3.711-4.428,10.23-4.428,19.558v31.119h56.534L373.155,225.548z"
@@ -4522,9 +4515,9 @@ var layoutIcons = {
4522
4515
  ) })
4523
4516
  }
4524
4517
  ),
4525
- xLogo: /* @__PURE__ */ jsxs14("svg", { width: "256", height: "256", viewBox: "0 0 256 256", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4526
- /* @__PURE__ */ jsx23("rect", { width: "256", height: "256", rx: "40", fill: "white" }),
4527
- /* @__PURE__ */ jsx23(
4518
+ xLogo: /* @__PURE__ */ jsxs15("svg", { width: "256", height: "256", viewBox: "0 0 256 256", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4519
+ /* @__PURE__ */ jsx24("rect", { width: "256", height: "256", rx: "40", fill: "white" }),
4520
+ /* @__PURE__ */ jsx24(
4528
4521
  "path",
4529
4522
  {
4530
4523
  d: "M140.192 118.205L187.848 64H176.556L135.158 111.056L102.117 64H64L113.975 135.163L64 192H75.2914L118.982 142.296L153.883 192H192L140.192 118.205ZM124.722 135.787L119.65 128.697L79.3634 72.3294H96.7094L129.232 117.837L134.282 124.927L176.551 184.076H159.205L124.722 135.787Z",
@@ -4532,7 +4525,7 @@ var layoutIcons = {
4532
4525
  }
4533
4526
  )
4534
4527
  ] }),
4535
- linkedinLogo: /* @__PURE__ */ jsx23(
4528
+ linkedinLogo: /* @__PURE__ */ jsx24(
4536
4529
  "svg",
4537
4530
  {
4538
4531
  version: "1.1",
@@ -4542,7 +4535,7 @@ var layoutIcons = {
4542
4535
  height: "438.536px",
4543
4536
  viewBox: "0 0 438.536 438.536",
4544
4537
  fill: "#FFFFFF",
4545
- children: /* @__PURE__ */ jsx23("g", { children: /* @__PURE__ */ jsx23(
4538
+ children: /* @__PURE__ */ jsx24("g", { children: /* @__PURE__ */ jsx24(
4546
4539
  "path",
4547
4540
  {
4548
4541
  d: "M414.41,24.123C398.333,8.042,378.963,0,356.315,0H82.228C59.58,0,40.21,8.042,24.126,24.123\n C8.045,40.207,0.003,59.576,0.003,82.225v274.084c0,22.647,8.042,42.018,24.123,58.102c16.084,16.084,35.454,24.126,58.102,24.126\n h274.084c22.648,0,42.018-8.042,58.095-24.126c16.084-16.084,24.126-35.454,24.126-58.102V82.225\n C438.532,59.576,430.49,40.204,414.41,24.123z M133.618,367.157H67.666V169.016h65.952V367.157z M127.626,132.332\n c-6.851,6.567-15.893,9.851-27.124,9.851h-0.288c-10.848,0-19.648-3.284-26.407-9.851c-6.76-6.567-10.138-14.703-10.138-24.41\n c0-9.897,3.476-18.083,10.421-24.556c6.95-6.471,15.942-9.708,26.98-9.708c11.039,0,19.89,3.237,26.553,9.708\n c6.661,6.473,10.088,14.659,10.277,24.556C137.899,117.625,134.477,125.761,127.626,132.332z M370.873,367.157h-65.952v-105.92\n c0-29.879-11.036-44.823-33.116-44.823c-8.374,0-15.42,2.331-21.128,6.995c-5.715,4.661-9.996,10.324-12.847,16.991\n c-1.335,3.422-1.999,8.75-1.999,15.981v110.775h-65.952c0.571-119.529,0.571-185.579,0-198.142h65.952v27.974\n c13.867-21.681,33.558-32.544,59.101-32.544c22.84,0,41.21,7.52,55.104,22.554c13.895,15.037,20.841,37.214,20.841,66.519v113.64\n H370.873z"
@@ -4601,7 +4594,7 @@ var useResponsive = (breakpoint) => {
4601
4594
  };
4602
4595
 
4603
4596
  // src/layout/ApplicationLayout.tsx
4604
- import { Fragment as Fragment7, jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
4597
+ import { Fragment as Fragment7, jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
4605
4598
  var ApplicationLayoutContainer = styled18.div`
4606
4599
  position: absolute;
4607
4600
  top: 64px;
@@ -4693,7 +4686,7 @@ var MainContentContainer = styled18.main`
4693
4686
  flex: 1;
4694
4687
  background-color: #fff;
4695
4688
  `;
4696
- var Main = ({ children }) => /* @__PURE__ */ jsx24(Fragment7, { children });
4689
+ var Main = ({ children }) => /* @__PURE__ */ jsx25(Fragment7, { children });
4697
4690
  var DxcApplicationLayout = ({
4698
4691
  visibilityToggleLabel = "",
4699
4692
  header,
@@ -4713,24 +4706,24 @@ var DxcApplicationLayout = ({
4713
4706
  setIsSidenavVisibleResponsive(false);
4714
4707
  }
4715
4708
  }, [isResponsive]);
4716
- return /* @__PURE__ */ jsxs15(ApplicationLayoutContainer, { hasSidenav: !!sidenav, isSidenavVisible: isSidenavVisibleResponsive, ref, children: [
4717
- /* @__PURE__ */ jsx24(HeaderContainer2, { children: header ?? /* @__PURE__ */ jsx24(Header_default, { underlined: true }) }),
4718
- sidenav && isResponsive && /* @__PURE__ */ jsx24(VisibilityToggle, { children: /* @__PURE__ */ jsx24(Tooltip, { label: translatedLabels.applicationLayout.visibilityToggleTitle, children: /* @__PURE__ */ jsxs15(
4709
+ return /* @__PURE__ */ jsxs16(ApplicationLayoutContainer, { hasSidenav: !!sidenav, isSidenavVisible: isSidenavVisibleResponsive, ref, children: [
4710
+ /* @__PURE__ */ jsx25(HeaderContainer2, { children: header ?? /* @__PURE__ */ jsx25(Header_default, { underlined: true }) }),
4711
+ sidenav && isResponsive && /* @__PURE__ */ jsx25(VisibilityToggle, { children: /* @__PURE__ */ jsx25(Tooltip, { label: translatedLabels.applicationLayout.visibilityToggleTitle, children: /* @__PURE__ */ jsxs16(
4719
4712
  HamburgerTrigger2,
4720
4713
  {
4721
4714
  onClick: handleSidenavVisibility,
4722
4715
  "aria-label": visibilityToggleLabel ? void 0 : translatedLabels.applicationLayout.visibilityToggleTitle,
4723
4716
  children: [
4724
- /* @__PURE__ */ jsx24(DxcIcon, { icon: "Menu" }),
4717
+ /* @__PURE__ */ jsx25(DxcIcon, { icon: "Menu" }),
4725
4718
  visibilityToggleLabel
4726
4719
  ]
4727
4720
  }
4728
4721
  ) }) }),
4729
- /* @__PURE__ */ jsxs15(BodyContainer, { children: [
4730
- /* @__PURE__ */ jsx24(SidenavContextProvider, { value: setIsSidenavVisibleResponsive, children: sidenav && (isResponsive ? isSidenavVisibleResponsive : true) && /* @__PURE__ */ jsx24(SidenavContainer2, { children: sidenav }) }),
4731
- /* @__PURE__ */ jsxs15(MainContainer, { children: [
4732
- /* @__PURE__ */ jsx24(MainContentContainer, { children: findChildType(children, Main) }),
4733
- footer ?? /* @__PURE__ */ jsx24(
4722
+ /* @__PURE__ */ jsxs16(BodyContainer, { children: [
4723
+ /* @__PURE__ */ jsx25(SidenavContextProvider, { value: setIsSidenavVisibleResponsive, children: sidenav && (isResponsive ? isSidenavVisibleResponsive : true) && /* @__PURE__ */ jsx25(SidenavContainer2, { children: sidenav }) }),
4724
+ /* @__PURE__ */ jsxs16(MainContainer, { children: [
4725
+ /* @__PURE__ */ jsx25(MainContentContainer, { children: findChildType(children, Main) }),
4726
+ footer ?? /* @__PURE__ */ jsx25(
4734
4727
  Footer_default,
4735
4728
  {
4736
4729
  copyright: `\xA9 DXC Technology ${year}. All rights reserved.`,
@@ -4751,7 +4744,7 @@ var ApplicationLayout_default = DxcApplicationLayout;
4751
4744
 
4752
4745
  // src/badge/Badge.tsx
4753
4746
  import styled19 from "styled-components";
4754
- import { jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
4747
+ import { jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
4755
4748
  var contextualColorMap = {
4756
4749
  grey: {
4757
4750
  background: "var(--color-bg-neutral-light)",
@@ -4866,7 +4859,7 @@ var DxcBadge = ({
4866
4859
  icon,
4867
4860
  notificationLimit = 99,
4868
4861
  size = "medium"
4869
- }) => /* @__PURE__ */ jsx25(Tooltip, { label: title, children: /* @__PURE__ */ jsxs16(
4862
+ }) => /* @__PURE__ */ jsx26(Tooltip, { label: title, children: /* @__PURE__ */ jsxs17(
4870
4863
  BadgeContainer,
4871
4864
  {
4872
4865
  label,
@@ -4875,8 +4868,8 @@ var DxcBadge = ({
4875
4868
  size,
4876
4869
  "aria-label": title,
4877
4870
  children: [
4878
- mode === "contextual" && icon && /* @__PURE__ */ jsx25(IconContainer4, { size, children: typeof icon === "string" ? /* @__PURE__ */ jsx25(DxcIcon, { icon }) : icon }),
4879
- label && /* @__PURE__ */ jsx25(Label, { size, children: typeof label === "number" ? label > notificationLimit ? `+${notificationLimit}` : label : label })
4871
+ mode === "contextual" && icon && /* @__PURE__ */ jsx26(IconContainer4, { size, children: typeof icon === "string" ? /* @__PURE__ */ jsx26(DxcIcon, { icon }) : icon }),
4872
+ label && /* @__PURE__ */ jsx26(Label, { size, children: typeof label === "number" ? label > notificationLimit ? `+${notificationLimit}` : label : label })
4880
4873
  ]
4881
4874
  }
4882
4875
  ) });
@@ -4889,7 +4882,7 @@ import styled21 from "styled-components";
4889
4882
  // src/breadcrumbs/Item.tsx
4890
4883
  import { useRef as useRef5 } from "react";
4891
4884
  import styled20 from "styled-components";
4892
- import { jsx as jsx26 } from "react/jsx-runtime";
4885
+ import { jsx as jsx27 } from "react/jsx-runtime";
4893
4886
  var ListItem = styled20.li`
4894
4887
  display: flex;
4895
4888
  align-items: center;
@@ -4940,12 +4933,12 @@ var Item = ({ isCurrentPage = false, href, label, onClick }) => {
4940
4933
  if (optionElement?.title === "" && labelContainer.scrollWidth > labelContainer.clientWidth)
4941
4934
  optionElement.title = label;
4942
4935
  };
4943
- return /* @__PURE__ */ jsx26(ListItem, { "aria-current": isCurrentPage ? "page" : void 0, isCurrentPage, children: isCurrentPage ? /* @__PURE__ */ jsx26(CurrentPage, { ref: currentItemRef, onMouseEnter: handleOnMouseEnter, children: label }) : /* @__PURE__ */ jsx26(Link2, { href, onClick: handleOnClick, children: /* @__PURE__ */ jsx26(Text, { children: label }) }) });
4936
+ return /* @__PURE__ */ jsx27(ListItem, { "aria-current": isCurrentPage ? "page" : void 0, isCurrentPage, children: isCurrentPage ? /* @__PURE__ */ jsx27(CurrentPage, { ref: currentItemRef, onMouseEnter: handleOnMouseEnter, children: label }) : /* @__PURE__ */ jsx27(Link2, { href, onClick: handleOnClick, children: /* @__PURE__ */ jsx27(Text, { children: label }) }) });
4944
4937
  };
4945
4938
  var Item_default = Item;
4946
4939
 
4947
4940
  // src/breadcrumbs/Breadcrumbs.tsx
4948
- import { Fragment as Fragment8, jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
4941
+ import { Fragment as Fragment8, jsx as jsx28, jsxs as jsxs18 } from "react/jsx-runtime";
4949
4942
  var OrderedList = styled21.ol`
4950
4943
  display: flex;
4951
4944
  align-items: center;
@@ -4982,21 +4975,21 @@ var DxcBreadcrumbs = ({
4982
4975
  },
4983
4976
  [items]
4984
4977
  );
4985
- return /* @__PURE__ */ jsx27("nav", { "aria-label": ariaLabel, children: /* @__PURE__ */ jsx27(OrderedList, { children: items && items.length > Math.max(itemsBeforeCollapse, 2) ? /* @__PURE__ */ jsxs17(Fragment8, { children: [
4986
- showRoot && /* @__PURE__ */ jsx27(Item_default, { href: items[0]?.href, label: items[0]?.label ?? "" }, 0),
4987
- /* @__PURE__ */ jsx27(Flex_default, { alignItems: "center", as: "li", children: /* @__PURE__ */ jsx27(
4978
+ return /* @__PURE__ */ jsx28("nav", { "aria-label": ariaLabel, children: /* @__PURE__ */ jsx28(OrderedList, { children: items && items.length > Math.max(itemsBeforeCollapse, 2) ? /* @__PURE__ */ jsxs18(Fragment8, { children: [
4979
+ showRoot && /* @__PURE__ */ jsx28(Item_default, { href: items[0]?.href, label: items[0]?.label ?? "" }, 0),
4980
+ /* @__PURE__ */ jsx28(Flex_default, { alignItems: "center", as: "li", children: /* @__PURE__ */ jsx28(
4988
4981
  Dropdown_default,
4989
4982
  {
4990
4983
  caretHidden: true,
4991
- icon: /* @__PURE__ */ jsx27(DxcIcon, { icon: "more_horiz" }),
4984
+ icon: /* @__PURE__ */ jsx28(DxcIcon, { icon: "more_horiz" }),
4992
4985
  margin: showRoot ? { left: "small" } : void 0,
4993
4986
  onSelectOption: handleOnSelectOption,
4994
4987
  options: items.slice(showRoot ? 1 : 0, -1).map(({ label, href }) => ({ label, value: href })),
4995
4988
  title: "More options"
4996
4989
  }
4997
4990
  ) }, 1),
4998
- /* @__PURE__ */ jsx27(Item_default, { isCurrentPage: true, label: items[items.length - 1]?.label ?? "" }, 2)
4999
- ] }) : items.map((item, index, { length }) => /* @__PURE__ */ jsx27(
4991
+ /* @__PURE__ */ jsx28(Item_default, { isCurrentPage: true, label: items[items.length - 1]?.label ?? "" }, 2)
4992
+ ] }) : items.map((item, index, { length }) => /* @__PURE__ */ jsx28(
5000
4993
  Item_default,
5001
4994
  {
5002
4995
  href: item.href,
@@ -5011,10 +5004,10 @@ var Breadcrumbs_default = DxcBreadcrumbs;
5011
5004
 
5012
5005
  // src/bulleted-list/BulletedList.tsx
5013
5006
  import { Children as Children3, useContext as useContext11 } from "react";
5014
- import styled23, { ThemeProvider as ThemeProvider4 } from "styled-components";
5007
+ import styled23, { ThemeProvider as ThemeProvider3 } from "styled-components";
5015
5008
 
5016
5009
  // src/typography/Typography.tsx
5017
- import { useContext as useContext10, useMemo as useMemo6 } from "react";
5010
+ import { useContext as useContext10, useMemo as useMemo5 } from "react";
5018
5011
  import styled22 from "styled-components";
5019
5012
 
5020
5013
  // src/typography/TypographyContext.tsx
@@ -5036,7 +5029,7 @@ var TypographyContext_default = createContext5({
5036
5029
  });
5037
5030
 
5038
5031
  // src/typography/Typography.tsx
5039
- import { jsx as jsx28 } from "react/jsx-runtime";
5032
+ import { jsx as jsx29 } from "react/jsx-runtime";
5040
5033
  var Typography = styled22.span`
5041
5034
  margin: 0px;
5042
5035
  display: ${({ display }) => display};
@@ -5055,103 +5048,101 @@ var Typography = styled22.span`
5055
5048
  `;
5056
5049
  function DxcTypography({ children, ...props }) {
5057
5050
  const componentContext = useContext10(TypographyContext_default);
5058
- const contextValue = useMemo6(
5051
+ const contextValue = useMemo5(
5059
5052
  () => ({
5060
5053
  ...componentContext,
5061
5054
  ...props
5062
5055
  }),
5063
5056
  [componentContext, props]
5064
5057
  );
5065
- return /* @__PURE__ */ jsx28(TypographyContext_default.Provider, { value: contextValue, children: /* @__PURE__ */ jsx28(Typography, { ...contextValue, children }) });
5058
+ return /* @__PURE__ */ jsx29(TypographyContext_default.Provider, { value: contextValue, children: /* @__PURE__ */ jsx29(Typography, { ...contextValue, children }) });
5066
5059
  }
5067
5060
 
5068
5061
  // src/bulleted-list/BulletedList.tsx
5069
- import { Fragment as Fragment9, jsx as jsx29, jsxs as jsxs18 } from "react/jsx-runtime";
5070
- var BulletedListItem = ({ children }) => /* @__PURE__ */ jsx29(Fragment9, { children });
5071
- var DxcBulletedList = ({ children, type = "disc", icon = "" }) => {
5072
- const colorsTheme = useContext11(HalstackContext);
5073
- return /* @__PURE__ */ jsx29(ThemeProvider4, { theme: colorsTheme.bulletedList, children: /* @__PURE__ */ jsx29(ListContainer, { children: /* @__PURE__ */ jsx29(Flex_default, { direction: "column", as: type === "number" ? "ol" : "ul", gap: "0.125rem", children: Children3.map(children, (child, index) => /* @__PURE__ */ jsx29(ListItem2, { children: /* @__PURE__ */ jsxs18(GeneralContent, { children: [
5074
- type === "number" ? /* @__PURE__ */ jsx29(Number2, { children: /* @__PURE__ */ jsxs18(DxcTypography, { color: colorsTheme.bulletedList.fontColor, children: [
5075
- index + 1,
5076
- "."
5077
- ] }) }) : type === "square" ? /* @__PURE__ */ jsx29(Bullet, { children: /* @__PURE__ */ jsx29(Square, {}) }) : type === "circle" ? /* @__PURE__ */ jsx29(Bullet, { children: /* @__PURE__ */ jsx29(Circle, {}) }) : type === "icon" ? /* @__PURE__ */ jsx29(Bullet, { children: /* @__PURE__ */ jsx29(Icon, { children: typeof icon === "string" ? /* @__PURE__ */ jsx29(DxcIcon, { icon }) : icon }) }) : /* @__PURE__ */ jsx29(Bullet, { children: /* @__PURE__ */ jsx29(Disc, {}) }),
5078
- /* @__PURE__ */ jsx29(DxcTypography, { color: colorsTheme.bulletedList.fontColor, children: child })
5079
- ] }) })) }) }) });
5080
- };
5081
- DxcBulletedList.Item = BulletedListItem;
5062
+ import { Fragment as Fragment9, jsx as jsx30, jsxs as jsxs19 } from "react/jsx-runtime";
5082
5063
  var ListContainer = styled23.div`
5083
5064
  ul,
5084
5065
  ol {
5085
- padding: 0;
5086
5066
  margin: 0;
5067
+ padding: 0;
5087
5068
  }
5088
5069
  `;
5089
5070
  var Bullet = styled23.div`
5090
- display: flex;
5091
- align-self: flex-start;
5092
5071
  align-items: center;
5093
- height: 1.5rem;
5072
+ align-self: flex-start;
5073
+ display: flex;
5074
+ height: var(--height-s);
5094
5075
  `;
5095
5076
  var GeneralContent = styled23.div`
5077
+ align-items: center;
5096
5078
  display: grid;
5079
+ gap: var(--spacing-gap-s);
5097
5080
  grid-template-columns: auto 1fr;
5098
- align-items: center;
5099
5081
  `;
5100
5082
  var Icon = styled23.div`
5101
- height: 1.5rem;
5083
+ display: flex;
5084
+ align-items: center;
5085
+ font-size: var(--height-xxs);
5086
+ height: var(--height-s);
5102
5087
  width: auto;
5103
- margin-right: ${(props) => props.theme.bulletMarginRight};
5104
- align-content: center;
5105
- color: ${(props) => props.theme.fontColor};
5106
-
5107
- font-size: ${(props) => props.theme.bulletIconHeight};
5108
5088
  svg {
5109
- height: ${(props) => props.theme.bulletIconHeight};
5110
- width: ${(props) => props.theme.bulletIconWidth};
5089
+ height: var(--height-xxs);
5090
+ width: 16px;
5111
5091
  }
5112
5092
  `;
5113
5093
  var Number2 = styled23.div`
5114
- user-select: none;
5115
- margin-right: ${(props) => props.theme.bulletMarginRight};
5116
- display: flex;
5117
- box-sizing: border-box;
5118
5094
  align-self: flex-start;
5095
+ box-sizing: border-box;
5096
+ display: flex;
5119
5097
  min-width: 0;
5098
+ user-select: none;
5120
5099
  `;
5121
5100
  var Square = styled23.div`
5122
- background-color: ${(props) => props.theme.fontColor};
5123
- height: ${(props) => props.theme.bulletHeight};
5124
- width: ${(props) => props.theme.bulletWidth};
5125
- margin-right: ${(props) => props.theme.bulletMarginRight};
5101
+ background-color: var(--color-fg-neutral-dark);
5102
+ height: 4px;
5103
+ width: 4px;
5126
5104
  `;
5127
5105
  var Circle = styled23.div`
5128
- height: ${(props) => props.theme.bulletHeight};
5129
- width: ${(props) => props.theme.bulletWidth};
5106
+ border-color: var(--color-fg-neutral-dark);
5130
5107
  border-radius: 50%;
5131
- border: 1px solid;
5132
- border-color: ${(props) => props.theme.fontColor};
5133
- margin-right: ${(props) => props.theme.bulletMarginRight};
5108
+ border: var(--border-width-s) var(--border-style-default);
5109
+ height: 4px;
5110
+ width: 4px;
5134
5111
  `;
5135
5112
  var Disc = styled23.div`
5136
- background-color: ${(props) => props.theme.fontColor};
5137
- height: ${(props) => props.theme.bulletHeight};
5138
- width: ${(props) => props.theme.bulletWidth};
5113
+ background-color: var(--color-fg-neutral-dark);
5139
5114
  border-radius: 50%;
5140
- margin-right: ${(props) => props.theme.bulletMarginRight};
5115
+ height: 4px;
5116
+ width: 4px;
5141
5117
  `;
5142
5118
  var ListItem2 = styled23.li`
5119
+ color: var(--color-fg-neutral-dark);
5143
5120
  display: flex;
5144
- margin: 0px;
5145
- padding: 0px;
5121
+ font-family: var(--typography-font-family);
5122
+ font-size: var(--typography-body-m);
5123
+ font-weight: var(--typography-body-regular);
5146
5124
  list-style: none;
5147
- font-size: 1em;
5125
+ margin: var(--spacing-padding-none);
5126
+ padding: var(--spacing-padding-none);
5148
5127
  `;
5128
+ var BulletedListItem = ({ children }) => /* @__PURE__ */ jsx30(Fragment9, { children });
5129
+ var DxcBulletedList = ({ children, type = "disc", icon = "" }) => {
5130
+ const colorsTheme = useContext11(HalstackContext);
5131
+ return /* @__PURE__ */ jsx30(ThemeProvider3, { theme: colorsTheme.bulletedList, children: /* @__PURE__ */ jsx30(ListContainer, { children: /* @__PURE__ */ jsx30(Flex_default, { direction: "column", as: type === "number" ? "ol" : "ul", gap: "0.125rem", children: Children3.map(children, (child, index) => /* @__PURE__ */ jsx30(ListItem2, { children: /* @__PURE__ */ jsxs19(GeneralContent, { children: [
5132
+ type === "number" ? /* @__PURE__ */ jsx30(Number2, { children: /* @__PURE__ */ jsxs19(DxcTypography, { color: colorsTheme.bulletedList.fontColor, children: [
5133
+ index + 1,
5134
+ "."
5135
+ ] }) }) : type === "square" ? /* @__PURE__ */ jsx30(Bullet, { children: /* @__PURE__ */ jsx30(Square, {}) }) : type === "circle" ? /* @__PURE__ */ jsx30(Bullet, { children: /* @__PURE__ */ jsx30(Circle, {}) }) : type === "icon" ? /* @__PURE__ */ jsx30(Bullet, { children: /* @__PURE__ */ jsx30(Icon, { children: typeof icon === "string" ? /* @__PURE__ */ jsx30(DxcIcon, { icon }) : icon }) }) : /* @__PURE__ */ jsx30(Bullet, { children: /* @__PURE__ */ jsx30(Disc, {}) }),
5136
+ /* @__PURE__ */ jsx30(DxcTypography, { color: colorsTheme.bulletedList.fontColor, children: child })
5137
+ ] }) })) }) }) });
5138
+ };
5139
+ DxcBulletedList.Item = BulletedListItem;
5149
5140
  var BulletedList_default = DxcBulletedList;
5150
5141
 
5151
5142
  // src/card/Card.tsx
5152
5143
  import { useState as useState10 } from "react";
5153
5144
  import styled24 from "styled-components";
5154
- import { jsx as jsx30, jsxs as jsxs19 } from "react/jsx-runtime";
5145
+ import { jsx as jsx31, jsxs as jsxs20 } from "react/jsx-runtime";
5155
5146
  var Card = styled24.div`
5156
5147
  display: flex;
5157
5148
  cursor: ${({ hasAction }) => hasAction ? "pointer" : "unset"};
@@ -5215,7 +5206,7 @@ var DxcCard = ({
5215
5206
  children
5216
5207
  }) => {
5217
5208
  const [isHovered, changeIsHovered] = useState10(false);
5218
- return /* @__PURE__ */ jsx30(
5209
+ return /* @__PURE__ */ jsx31(
5219
5210
  Card,
5220
5211
  {
5221
5212
  hasAction: !!(onClick || linkHref),
@@ -5227,9 +5218,9 @@ var DxcCard = ({
5227
5218
  as: linkHref && "a",
5228
5219
  href: linkHref,
5229
5220
  shadowDepth: !outlined ? 0 : isHovered && (onClick || linkHref) ? 2 : 1,
5230
- children: /* @__PURE__ */ jsxs19(CardContainer, { hasAction: onClick || linkHref ? true : false, imagePosition: imageSrc ? imagePosition : "none", children: [
5231
- imageSrc && /* @__PURE__ */ jsx30(ImageContainer, { imageBgColor, children: /* @__PURE__ */ jsx30(TagImage, { imagePadding, imageCover, src: imageSrc, alt: "Card image" }) }),
5232
- /* @__PURE__ */ jsx30(CardContent, { children })
5221
+ children: /* @__PURE__ */ jsxs20(CardContainer, { hasAction: onClick || linkHref ? true : false, imagePosition: imageSrc ? imagePosition : "none", children: [
5222
+ imageSrc && /* @__PURE__ */ jsx31(ImageContainer, { imageBgColor, children: /* @__PURE__ */ jsx31(TagImage, { imagePadding, imageCover, src: imageSrc, alt: "Card image" }) }),
5223
+ /* @__PURE__ */ jsx31(CardContent, { children })
5233
5224
  ] })
5234
5225
  }
5235
5226
  );
@@ -5241,7 +5232,7 @@ import { useContext as useContext12, useState as useState11, useRef as useRef6,
5241
5232
  import styled25 from "styled-components";
5242
5233
 
5243
5234
  // src/checkbox/utils.tsx
5244
- import { jsx as jsx31 } from "react/jsx-runtime";
5235
+ import { jsx as jsx32 } from "react/jsx-runtime";
5245
5236
  var sizes2 = {
5246
5237
  small: "120px",
5247
5238
  medium: "240px",
@@ -5260,21 +5251,21 @@ var spaces2 = {
5260
5251
  };
5261
5252
  var calculateWidth4 = (margin, size) => size === "fillParent" ? `calc(${sizes2[size]} - ${getMargin(margin, "left")} - ${getMargin(margin, "right")})` : size && sizes2[size];
5262
5253
  var icons = {
5263
- checked: /* @__PURE__ */ jsx31("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx31(
5254
+ checked: /* @__PURE__ */ jsx32("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx32(
5264
5255
  "path",
5265
5256
  {
5266
5257
  d: "M19 3H5C3.89 3 3 3.9 3 5V19C3 20.1 3.89 21 5 21H19C20.11 21 21 20.1 21 19V5C21 3.9 20.11 3 19 3ZM10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",
5267
5258
  fill: "currentColor"
5268
5259
  }
5269
5260
  ) }),
5270
- partial: /* @__PURE__ */ jsx31("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx31(
5261
+ partial: /* @__PURE__ */ jsx32("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx32(
5271
5262
  "path",
5272
5263
  {
5273
5264
  d: "M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 19H5V5H19V19ZM7 11H17V13H7V11Z",
5274
5265
  fill: "currentColor"
5275
5266
  }
5276
5267
  ) }),
5277
- unchecked: /* @__PURE__ */ jsx31("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx31(
5268
+ unchecked: /* @__PURE__ */ jsx32("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx32(
5278
5269
  "path",
5279
5270
  {
5280
5271
  d: "M19 5V19H5V5H19ZM19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3Z",
@@ -5288,7 +5279,7 @@ import { createContext as createContext6 } from "react";
5288
5279
  var CheckboxContext_default = createContext6(null);
5289
5280
 
5290
5281
  // src/checkbox/Checkbox.tsx
5291
- import { jsx as jsx32, jsxs as jsxs20 } from "react/jsx-runtime";
5282
+ import { jsx as jsx33, jsxs as jsxs21 } from "react/jsx-runtime";
5292
5283
  var Label2 = styled25.span`
5293
5284
  color: ${({ disabled }) => disabled ? "var(--color-fg-neutral-medium)" : "var(--color-fg-neutral-dark)"};
5294
5285
  font-family: var(--typography-font-family);
@@ -5372,7 +5363,7 @@ var DxcCheckbox = forwardRef4(
5372
5363
  break;
5373
5364
  }
5374
5365
  };
5375
- return /* @__PURE__ */ jsxs20(
5366
+ return /* @__PURE__ */ jsxs21(
5376
5367
  CheckboxContainer,
5377
5368
  {
5378
5369
  disabled,
@@ -5383,12 +5374,12 @@ var DxcCheckbox = forwardRef4(
5383
5374
  ref,
5384
5375
  size,
5385
5376
  children: [
5386
- label && /* @__PURE__ */ jsxs20(Label2, { "aria-label": label, disabled, id: labelId, children: [
5377
+ label && /* @__PURE__ */ jsxs21(Label2, { "aria-label": label, disabled, id: labelId, children: [
5387
5378
  label,
5388
5379
  " ",
5389
- optional && /* @__PURE__ */ jsx32("span", { children: translatedLabels.formFields.optionalLabel })
5380
+ optional && /* @__PURE__ */ jsx33("span", { children: translatedLabels.formFields.optionalLabel })
5390
5381
  ] }),
5391
- /* @__PURE__ */ jsx32(
5382
+ /* @__PURE__ */ jsx33(
5392
5383
  Checkbox,
5393
5384
  {
5394
5385
  "aria-checked": checked ?? innerChecked,
@@ -5406,7 +5397,7 @@ var DxcCheckbox = forwardRef4(
5406
5397
  children: partial ? icons.partial : checked ?? innerChecked ? icons.checked : icons.unchecked
5407
5398
  }
5408
5399
  ),
5409
- /* @__PURE__ */ jsx32(
5400
+ /* @__PURE__ */ jsx33(
5410
5401
  "input",
5411
5402
  {
5412
5403
  checked: checked ?? innerChecked,
@@ -5427,7 +5418,7 @@ var Checkbox_default = DxcCheckbox;
5427
5418
 
5428
5419
  // src/chip/Chip.tsx
5429
5420
  import styled26 from "styled-components";
5430
- import { jsx as jsx33, jsxs as jsxs21 } from "react/jsx-runtime";
5421
+ import { jsx as jsx34, jsxs as jsxs22 } from "react/jsx-runtime";
5431
5422
  var calculateWidth5 = (margin) => `calc(100% - ${getMargin(margin, "left")} - ${getMargin(margin, "right")})`;
5432
5423
  var Chip = styled26.div`
5433
5424
  box-sizing: border-box;
@@ -5474,8 +5465,8 @@ var DxcChip = ({
5474
5465
  disabled,
5475
5466
  margin,
5476
5467
  tabIndex = 0
5477
- }) => /* @__PURE__ */ jsxs21(Chip, { disabled, margin, children: [
5478
- prefixIcon && (typeof onClickPrefix === "function" ? /* @__PURE__ */ jsx33(
5468
+ }) => /* @__PURE__ */ jsxs22(Chip, { disabled, margin, children: [
5469
+ prefixIcon && (typeof onClickPrefix === "function" ? /* @__PURE__ */ jsx34(
5479
5470
  ActionIcon_default,
5480
5471
  {
5481
5472
  disabled,
@@ -5484,9 +5475,9 @@ var DxcChip = ({
5484
5475
  tabIndex,
5485
5476
  title: "Prefix Action"
5486
5477
  }
5487
- ) : /* @__PURE__ */ jsx33(IconContainer5, { disabled, children: typeof prefixIcon === "string" ? /* @__PURE__ */ jsx33(DxcIcon, { icon: prefixIcon }) : prefixIcon })),
5488
- label && /* @__PURE__ */ jsx33(LabelContainer2, { disabled, children: label }),
5489
- suffixIcon && (typeof onClickSuffix === "function" ? /* @__PURE__ */ jsx33(
5478
+ ) : /* @__PURE__ */ jsx34(IconContainer5, { disabled, children: typeof prefixIcon === "string" ? /* @__PURE__ */ jsx34(DxcIcon, { icon: prefixIcon }) : prefixIcon })),
5479
+ label && /* @__PURE__ */ jsx34(LabelContainer2, { disabled, children: label }),
5480
+ suffixIcon && (typeof onClickSuffix === "function" ? /* @__PURE__ */ jsx34(
5490
5481
  ActionIcon_default,
5491
5482
  {
5492
5483
  disabled,
@@ -5495,23 +5486,23 @@ var DxcChip = ({
5495
5486
  tabIndex,
5496
5487
  title: "Suffix Action"
5497
5488
  }
5498
- ) : /* @__PURE__ */ jsx33(IconContainer5, { disabled, children: typeof suffixIcon === "string" ? /* @__PURE__ */ jsx33(DxcIcon, { icon: suffixIcon }) : suffixIcon }))
5489
+ ) : /* @__PURE__ */ jsx34(IconContainer5, { disabled, children: typeof suffixIcon === "string" ? /* @__PURE__ */ jsx34(DxcIcon, { icon: suffixIcon }) : suffixIcon }))
5499
5490
  ] });
5500
5491
  var Chip_default = DxcChip;
5501
5492
 
5502
5493
  // src/contextual-menu/ContextualMenu.tsx
5503
- import { useLayoutEffect as useLayoutEffect3, useMemo as useMemo8, useRef as useRef7, useState as useState14 } from "react";
5494
+ import { useLayoutEffect as useLayoutEffect3, useMemo as useMemo7, useRef as useRef7, useState as useState14 } from "react";
5504
5495
  import styled31 from "styled-components";
5505
5496
 
5506
5497
  // src/contextual-menu/MenuItem.tsx
5507
5498
  import styled29 from "styled-components";
5508
5499
 
5509
5500
  // src/contextual-menu/GroupItem.tsx
5510
- import { useContext as useContext13, useMemo as useMemo7, useState as useState13, useId as useId5 } from "react";
5501
+ import { useContext as useContext13, useMemo as useMemo6, useState as useState13, useId as useId5 } from "react";
5511
5502
 
5512
5503
  // src/contextual-menu/SubMenu.tsx
5513
5504
  import styled27 from "styled-components";
5514
- import { jsx as jsx34 } from "react/jsx-runtime";
5505
+ import { jsx as jsx35 } from "react/jsx-runtime";
5515
5506
  var SubMenuContainer = styled27.ul`
5516
5507
  margin: 0;
5517
5508
  padding: 0;
@@ -5520,13 +5511,13 @@ var SubMenuContainer = styled27.ul`
5520
5511
  list-style: none;
5521
5512
  `;
5522
5513
  function SubMenu({ children, id }) {
5523
- return /* @__PURE__ */ jsx34(SubMenuContainer, { id, role: "menu", children });
5514
+ return /* @__PURE__ */ jsx35(SubMenuContainer, { id, role: "menu", children });
5524
5515
  }
5525
5516
 
5526
5517
  // src/contextual-menu/ItemAction.tsx
5527
5518
  import { cloneElement as cloneElement2, memo as memo4, useState as useState12 } from "react";
5528
5519
  import styled28 from "styled-components";
5529
- import { jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
5520
+ import { jsx as jsx36, jsxs as jsxs23 } from "react/jsx-runtime";
5530
5521
  var Action = styled28.button`
5531
5522
  box-sizing: content-box;
5532
5523
  border: none;
@@ -5580,11 +5571,11 @@ var Text2 = styled28.span`
5580
5571
  var ItemAction_default = memo4(function ItemAction({ badge, collapseIcon, depthLevel, icon, label, ...props }) {
5581
5572
  const [hasTooltip, setHasTooltip] = useState12(false);
5582
5573
  const modifiedBadge = badge && cloneElement2(badge, { size: "small" });
5583
- return /* @__PURE__ */ jsx35(TooltipWrapper, { condition: hasTooltip, label, children: /* @__PURE__ */ jsxs22(Action, { depthLevel, ...props, children: [
5584
- /* @__PURE__ */ jsxs22(Label3, { children: [
5585
- collapseIcon && /* @__PURE__ */ jsx35(Icon2, { children: collapseIcon }),
5586
- icon && depthLevel === 0 && /* @__PURE__ */ jsx35(Icon2, { children: typeof icon === "string" ? /* @__PURE__ */ jsx35(DxcIcon, { icon }) : icon }),
5587
- /* @__PURE__ */ jsx35(
5574
+ return /* @__PURE__ */ jsx36(TooltipWrapper, { condition: hasTooltip, label, children: /* @__PURE__ */ jsxs23(Action, { depthLevel, ...props, children: [
5575
+ /* @__PURE__ */ jsxs23(Label3, { children: [
5576
+ collapseIcon && /* @__PURE__ */ jsx36(Icon2, { children: collapseIcon }),
5577
+ icon && depthLevel === 0 && /* @__PURE__ */ jsx36(Icon2, { children: typeof icon === "string" ? /* @__PURE__ */ jsx36(DxcIcon, { icon }) : icon }),
5578
+ /* @__PURE__ */ jsx36(
5588
5579
  Text2,
5589
5580
  {
5590
5581
  selected: props.selected,
@@ -5623,20 +5614,20 @@ var isGroupSelected = (items, selectedItemId) => items.some((item) => {
5623
5614
  });
5624
5615
 
5625
5616
  // src/contextual-menu/GroupItem.tsx
5626
- import { Fragment as Fragment10, jsx as jsx36, jsxs as jsxs23 } from "react/jsx-runtime";
5617
+ import { Fragment as Fragment10, jsx as jsx37, jsxs as jsxs24 } from "react/jsx-runtime";
5627
5618
  function GroupItem({ items, ...props }) {
5628
5619
  const groupMenuId = `group-menu-${useId5()}`;
5629
5620
  const { selectedItemId } = useContext13(ContextualMenuContext_default) ?? {};
5630
- const groupSelected = useMemo7(() => isGroupSelected(items, selectedItemId), [items, selectedItemId]);
5621
+ const groupSelected = useMemo6(() => isGroupSelected(items, selectedItemId), [items, selectedItemId]);
5631
5622
  const [isOpen, setIsOpen] = useState13(groupSelected && selectedItemId === -1);
5632
- return /* @__PURE__ */ jsxs23(Fragment10, { children: [
5633
- /* @__PURE__ */ jsx36(
5623
+ return /* @__PURE__ */ jsxs24(Fragment10, { children: [
5624
+ /* @__PURE__ */ jsx37(
5634
5625
  ItemAction_default,
5635
5626
  {
5636
5627
  "aria-controls": isOpen ? groupMenuId : void 0,
5637
5628
  "aria-expanded": isOpen ? true : void 0,
5638
5629
  "aria-pressed": groupSelected && !isOpen,
5639
- collapseIcon: isOpen ? /* @__PURE__ */ jsx36(DxcIcon, { icon: "filled_expand_less" }) : /* @__PURE__ */ jsx36(DxcIcon, { icon: "filled_expand_more" }),
5630
+ collapseIcon: isOpen ? /* @__PURE__ */ jsx37(DxcIcon, { icon: "filled_expand_less" }) : /* @__PURE__ */ jsx37(DxcIcon, { icon: "filled_expand_more" }),
5640
5631
  onClick: () => {
5641
5632
  setIsOpen((isCurrentlyOpen) => !isCurrentlyOpen);
5642
5633
  },
@@ -5644,13 +5635,13 @@ function GroupItem({ items, ...props }) {
5644
5635
  ...props
5645
5636
  }
5646
5637
  ),
5647
- isOpen && /* @__PURE__ */ jsx36(SubMenu, { id: groupMenuId, children: items.map((item, index) => /* @__PURE__ */ jsx36(MenuItem, { item, depthLevel: props.depthLevel + 1 }, `${item.label}-${index}`)) })
5638
+ isOpen && /* @__PURE__ */ jsx37(SubMenu, { id: groupMenuId, children: items.map((item, index) => /* @__PURE__ */ jsx37(MenuItem, { item, depthLevel: props.depthLevel + 1 }, `${item.label}-${index}`)) })
5648
5639
  ] });
5649
5640
  }
5650
5641
 
5651
5642
  // src/contextual-menu/SingleItem.tsx
5652
5643
  import { useContext as useContext14, useEffect as useEffect8 } from "react";
5653
- import { jsx as jsx37 } from "react/jsx-runtime";
5644
+ import { jsx as jsx38 } from "react/jsx-runtime";
5654
5645
  function SingleItem({ id, onSelect, selectedByDefault = false, ...props }) {
5655
5646
  const { selectedItemId, setSelectedItemId } = useContext14(ContextualMenuContext_default) ?? {};
5656
5647
  const handleClick = () => {
@@ -5662,7 +5653,7 @@ function SingleItem({ id, onSelect, selectedByDefault = false, ...props }) {
5662
5653
  setSelectedItemId?.(id);
5663
5654
  }
5664
5655
  }, [selectedItemId, selectedByDefault, id]);
5665
- return /* @__PURE__ */ jsx37(
5656
+ return /* @__PURE__ */ jsx38(
5666
5657
  ItemAction_default,
5667
5658
  {
5668
5659
  "aria-pressed": selectedItemId === -1 ? selectedByDefault : selectedItemId === id,
@@ -5674,19 +5665,19 @@ function SingleItem({ id, onSelect, selectedByDefault = false, ...props }) {
5674
5665
  }
5675
5666
 
5676
5667
  // src/contextual-menu/MenuItem.tsx
5677
- import { jsx as jsx38 } from "react/jsx-runtime";
5668
+ import { jsx as jsx39 } from "react/jsx-runtime";
5678
5669
  var MenuItemContainer = styled29.li`
5679
5670
  display: grid;
5680
5671
  gap: var(--spacing-gap-xs);
5681
5672
  `;
5682
5673
  function MenuItem({ item, depthLevel = 0 }) {
5683
- return /* @__PURE__ */ jsx38(MenuItemContainer, { role: "menuitem", children: "items" in item ? /* @__PURE__ */ jsx38(GroupItem, { ...item, depthLevel }) : /* @__PURE__ */ jsx38(SingleItem, { ...item, depthLevel }) });
5674
+ return /* @__PURE__ */ jsx39(MenuItemContainer, { role: "menuitem", children: "items" in item ? /* @__PURE__ */ jsx39(GroupItem, { ...item, depthLevel }) : /* @__PURE__ */ jsx39(SingleItem, { ...item, depthLevel }) });
5684
5675
  }
5685
5676
 
5686
5677
  // src/contextual-menu/Section.tsx
5687
5678
  import styled30 from "styled-components";
5688
5679
  import { useId as useId6 } from "react";
5689
- import { jsx as jsx39, jsxs as jsxs24 } from "react/jsx-runtime";
5680
+ import { jsx as jsx40, jsxs as jsxs25 } from "react/jsx-runtime";
5690
5681
  var SectionContainer = styled30.section`
5691
5682
  display: grid;
5692
5683
  gap: var(--spacing-gap-xs);
@@ -5701,15 +5692,15 @@ var Title3 = styled30.h2`
5701
5692
  `;
5702
5693
  function Section2({ index, length, section }) {
5703
5694
  const id = `section-${useId6()}`;
5704
- return /* @__PURE__ */ jsxs24(SectionContainer, { "aria-label": section.title ?? id, "aria-labelledby": id, children: [
5705
- section.title && /* @__PURE__ */ jsx39(Title3, { id, children: section.title }),
5706
- /* @__PURE__ */ jsx39(SubMenu, { children: section.items.map((item, index2) => /* @__PURE__ */ jsx39(MenuItem, { item }, `${item.label}-${index2}`)) }),
5707
- index !== length - 1 && /* @__PURE__ */ jsx39(DxcInset, { top: "var(--spacing-padding-xxs)", bottom: "var(--spacing-padding-xxs)", children: /* @__PURE__ */ jsx39(DxcDivider, { color: "lightGrey" }) })
5695
+ return /* @__PURE__ */ jsxs25(SectionContainer, { "aria-label": section.title ?? id, "aria-labelledby": id, children: [
5696
+ section.title && /* @__PURE__ */ jsx40(Title3, { id, children: section.title }),
5697
+ /* @__PURE__ */ jsx40(SubMenu, { children: section.items.map((item, index2) => /* @__PURE__ */ jsx40(MenuItem, { item }, `${item.label}-${index2}`)) }),
5698
+ index !== length - 1 && /* @__PURE__ */ jsx40(DxcInset, { top: "var(--spacing-padding-xxs)", bottom: "var(--spacing-padding-xxs)", children: /* @__PURE__ */ jsx40(DxcDivider, { color: "lightGrey" }) })
5708
5699
  ] });
5709
5700
  }
5710
5701
 
5711
5702
  // src/contextual-menu/ContextualMenu.tsx
5712
- import { jsx as jsx40 } from "react/jsx-runtime";
5703
+ import { jsx as jsx41 } from "react/jsx-runtime";
5713
5704
  var ContextualMenu = styled31.div`
5714
5705
  box-sizing: border-box;
5715
5706
  margin: 0;
@@ -5729,8 +5720,8 @@ function DxcContextualMenu({ items }) {
5729
5720
  const [firstUpdate, setFirstUpdate] = useState14(true);
5730
5721
  const [selectedItemId, setSelectedItemId] = useState14(-1);
5731
5722
  const contextualMenuRef = useRef7(null);
5732
- const itemsWithId = useMemo8(() => addIdToItems(items), [items]);
5733
- const contextValue = useMemo8(() => ({ selectedItemId, setSelectedItemId }), [selectedItemId, setSelectedItemId]);
5723
+ const itemsWithId = useMemo7(() => addIdToItems(items), [items]);
5724
+ const contextValue = useMemo7(() => ({ selectedItemId, setSelectedItemId }), [selectedItemId, setSelectedItemId]);
5734
5725
  useLayoutEffect3(() => {
5735
5726
  if (selectedItemId !== -1 && firstUpdate) {
5736
5727
  const contextualMenuEl = contextualMenuRef.current;
@@ -5741,31 +5732,18 @@ function DxcContextualMenu({ items }) {
5741
5732
  setFirstUpdate(false);
5742
5733
  }
5743
5734
  }, [firstUpdate, selectedItemId]);
5744
- return /* @__PURE__ */ jsx40(ContextualMenu, { ref: contextualMenuRef, children: /* @__PURE__ */ jsx40(ContextualMenuContext_default.Provider, { value: contextValue, children: itemsWithId[0] && isSection(itemsWithId[0]) ? itemsWithId.map((item, index) => /* @__PURE__ */ jsx40(Section2, { section: item, index, length: itemsWithId.length }, `section-${index}`)) : /* @__PURE__ */ jsx40(SubMenu, { children: itemsWithId.map((item, index) => /* @__PURE__ */ jsx40(MenuItem, { item }, `${item.label}-${index}`)) }) }) });
5735
+ return /* @__PURE__ */ jsx41(ContextualMenu, { ref: contextualMenuRef, children: /* @__PURE__ */ jsx41(ContextualMenuContext_default.Provider, { value: contextValue, children: itemsWithId[0] && isSection(itemsWithId[0]) ? itemsWithId.map((item, index) => /* @__PURE__ */ jsx41(Section2, { section: item, index, length: itemsWithId.length }, `section-${index}`)) : /* @__PURE__ */ jsx41(SubMenu, { children: itemsWithId.map((item, index) => /* @__PURE__ */ jsx41(MenuItem, { item }, `${item.label}-${index}`)) }) }) });
5745
5736
  }
5746
5737
 
5747
5738
  // src/data-grid/DataGrid.tsx
5748
- import { useContext as useContext18, useEffect as useEffect11, useMemo as useMemo11, useState as useState17 } from "react";
5739
+ import { useEffect as useEffect11, useMemo as useMemo10, useState as useState17 } from "react";
5749
5740
  import DataGrid from "react-data-grid";
5750
- import styled40, { ThemeProvider as ThemeProvider5 } from "styled-components";
5741
+ import styled40 from "styled-components";
5751
5742
  import "react-data-grid/lib/styles.css";
5752
5743
 
5753
5744
  // src/data-grid/utils.tsx
5754
5745
  import { textEditor } from "react-data-grid";
5755
- import { jsx as jsx41, jsxs as jsxs25 } from "react/jsx-runtime";
5756
- var overwriteTheme = (theme) => {
5757
- const newTheme = {
5758
- checkbox: {
5759
- backgroundColorChecked: theme?.dataGrid?.headerCheckboxBackgroundColorChecked,
5760
- hoverBackgroundColorChecked: theme?.dataGrid?.headerCheckboxHoverBackgroundColorChecked,
5761
- borderColor: theme?.dataGrid?.headerCheckboxBorderColor,
5762
- hoverBorderColor: theme?.dataGrid?.headerCheckboxHoverBorderColor,
5763
- checkColor: theme?.dataGrid?.headerCheckboxCheckColor,
5764
- focusColor: theme?.dataGrid?.focusColor
5765
- }
5766
- };
5767
- return newTheme;
5768
- };
5746
+ import { jsx as jsx42, jsxs as jsxs26 } from "react/jsx-runtime";
5769
5747
  var convertToRDGColumns = (gridColumn, summaryRow) => ({
5770
5748
  key: gridColumn.key,
5771
5749
  name: gridColumn.label,
@@ -5775,11 +5753,11 @@ var convertToRDGColumns = (gridColumn, summaryRow) => ({
5775
5753
  editable: gridColumn.textEditable,
5776
5754
  headerCellClass: gridColumn.alignment ? `header-align-${gridColumn.alignment}` : `header-align-left`,
5777
5755
  renderEditCell: gridColumn.textEditable ? textEditor : void 0,
5778
- renderCell: ({ row }) => /* @__PURE__ */ jsx41("div", { className: `ellipsis-cell ${gridColumn.alignment ? `align-${gridColumn.alignment}` : "align-left"}`, children: row[gridColumn.key] }),
5779
- renderSummaryCell: () => gridColumn.summaryKey ? /* @__PURE__ */ jsx41("div", { className: `ellipsis-cell ${gridColumn.alignment ? `align-${gridColumn.alignment}` : "align-left"}`, children: summaryRow?.[gridColumn.summaryKey] }) : void 0
5756
+ renderCell: ({ row }) => /* @__PURE__ */ jsx42("div", { className: `ellipsis-cell ${gridColumn.alignment ? `align-${gridColumn.alignment}` : "align-left"}`, children: row[gridColumn.key] }),
5757
+ renderSummaryCell: () => gridColumn.summaryKey ? /* @__PURE__ */ jsx42("div", { className: `ellipsis-cell ${gridColumn.alignment ? `align-${gridColumn.alignment}` : "align-left"}`, children: summaryRow?.[gridColumn.summaryKey] }) : void 0
5780
5758
  });
5781
- var renderSortStatus = ({ sortDirection }) => /* @__PURE__ */ jsx41("div", { className: "sortIconContainer", children: sortDirection !== void 0 ? sortDirection === "ASC" ? /* @__PURE__ */ jsx41(DxcIcon, { icon: "Keyboard_Arrow_Up" }) : /* @__PURE__ */ jsx41(DxcIcon, { icon: "Keyboard_Arrow_Down" }) : /* @__PURE__ */ jsx41(DxcIcon, { icon: "Expand_All" }) });
5782
- var renderExpandableTrigger = (row, rows, uniqueRowId, setRowsToRender) => /* @__PURE__ */ jsx41(
5759
+ var renderSortStatus = ({ sortDirection }) => /* @__PURE__ */ jsx42("div", { className: "sortIconContainer", children: sortDirection !== void 0 ? sortDirection === "ASC" ? /* @__PURE__ */ jsx42(DxcIcon, { icon: "Keyboard_Arrow_Up" }) : /* @__PURE__ */ jsx42(DxcIcon, { icon: "Keyboard_Arrow_Down" }) : /* @__PURE__ */ jsx42(DxcIcon, { icon: "Expand_All" }) });
5760
+ var renderExpandableTrigger = (row, rows, uniqueRowId, setRowsToRender) => /* @__PURE__ */ jsx42(
5783
5761
  ActionIcon_default,
5784
5762
  {
5785
5763
  icon: row.contentIsExpanded ? "arrow_drop_down" : "arrow_right",
@@ -5812,7 +5790,7 @@ var renderExpandableTrigger = (row, rows, uniqueRowId, setRowsToRender) => /* @_
5812
5790
  disabled: !rows.some((row2) => uniqueRowId in row2)
5813
5791
  }
5814
5792
  );
5815
- var renderHierarchyTrigger = (rows, triggerRow, uniqueRowId, columnKey, setRowsToRender) => /* @__PURE__ */ jsxs25(
5793
+ var renderHierarchyTrigger = (rows, triggerRow, uniqueRowId, columnKey, setRowsToRender) => /* @__PURE__ */ jsxs26(
5816
5794
  "button",
5817
5795
  {
5818
5796
  type: "button",
@@ -5852,12 +5830,12 @@ var renderHierarchyTrigger = (rows, triggerRow, uniqueRowId, columnKey, setRowsT
5852
5830
  setRowsToRender(newRowsToRender);
5853
5831
  },
5854
5832
  children: [
5855
- /* @__PURE__ */ jsx41(DxcIcon, { icon: triggerRow.visibleChildren ? "Keyboard_Arrow_Down" : "Chevron_Right" }),
5856
- /* @__PURE__ */ jsx41("span", { className: "ellipsis-cell", children: triggerRow[columnKey] })
5833
+ /* @__PURE__ */ jsx42(DxcIcon, { icon: triggerRow.visibleChildren ? "Keyboard_Arrow_Down" : "Chevron_Right" }),
5834
+ /* @__PURE__ */ jsx42("span", { className: "ellipsis-cell", children: triggerRow[columnKey] })
5857
5835
  ]
5858
5836
  }
5859
5837
  );
5860
- var renderCheckbox = (rows, row, uniqueRowId, selectedRows, onSelectRows) => /* @__PURE__ */ jsx41(
5838
+ var renderCheckbox = (rows, row, uniqueRowId, selectedRows, onSelectRows) => /* @__PURE__ */ jsx42(
5861
5839
  Checkbox_default,
5862
5840
  {
5863
5841
  checked: selectedRows.has(rowKeyGetter(row, uniqueRowId)),
@@ -5879,7 +5857,7 @@ var renderCheckbox = (rows, row, uniqueRowId, selectedRows, onSelectRows) => /*
5879
5857
  disabled: !rows.some((row2) => uniqueRowId in row2)
5880
5858
  }
5881
5859
  );
5882
- var renderHeaderCheckbox = (rows, uniqueRowId, selectedRows, colorsTheme, onSelectRows) => /* @__PURE__ */ jsx41(HalstackProvider, { advancedTheme: overwriteTheme(colorsTheme), children: /* @__PURE__ */ jsx41(
5860
+ var renderHeaderCheckbox = (rows, uniqueRowId, selectedRows, onSelectRows) => /* @__PURE__ */ jsx42(
5883
5861
  Checkbox_default,
5884
5862
  {
5885
5863
  checked: rows.length > 0 && !rows.some((row) => !selectedRows.has(rowKeyGetter(row, uniqueRowId))),
@@ -5904,7 +5882,7 @@ var renderHeaderCheckbox = (rows, uniqueRowId, selectedRows, colorsTheme, onSele
5904
5882
  },
5905
5883
  disabled: rows.length === 0 || !rows.some((row) => uniqueRowId in row)
5906
5884
  }
5907
- ) });
5885
+ );
5908
5886
  var rowKeyGetter = (row, uniqueRowId) => {
5909
5887
  const keyValue = row[uniqueRowId];
5910
5888
  return typeof keyValue === "string" || typeof keyValue === "number" ? keyValue : "";
@@ -6059,7 +6037,7 @@ import {
6059
6037
  useCallback as useCallback6,
6060
6038
  useContext as useContext16,
6061
6039
  useId as useId7,
6062
- useMemo as useMemo9,
6040
+ useMemo as useMemo8,
6063
6041
  useRef as useRef10,
6064
6042
  useState as useState16
6065
6043
  } from "react";
@@ -6072,7 +6050,7 @@ import styled33 from "styled-components";
6072
6050
  // src/select/ListOption.tsx
6073
6051
  import styled32 from "styled-components";
6074
6052
  import { useEffect as useEffect9, useRef as useRef8, useState as useState15 } from "react";
6075
- import { jsx as jsx42, jsxs as jsxs26 } from "react/jsx-runtime";
6053
+ import { jsx as jsx43, jsxs as jsxs27 } from "react/jsx-runtime";
6076
6054
  var OptionItem = styled32.li`
6077
6055
  padding: var(--spacing-padding-none) var(--spacing-padding-xs);
6078
6056
  cursor: pointer;
@@ -6143,7 +6121,7 @@ var ListOption = ({
6143
6121
  useEffect9(() => {
6144
6122
  if (checkboxRef.current) checkboxRef.current.style.pointerEvents = "none";
6145
6123
  }, []);
6146
- return /* @__PURE__ */ jsx42(TooltipWrapper, { condition: hasTooltip, label: option.label, children: /* @__PURE__ */ jsx42(
6124
+ return /* @__PURE__ */ jsx43(TooltipWrapper, { condition: hasTooltip, label: option.label, children: /* @__PURE__ */ jsx43(
6147
6125
  OptionItem,
6148
6126
  {
6149
6127
  "aria-selected": !multiple ? isSelected : void 0,
@@ -6155,12 +6133,12 @@ var ListOption = ({
6155
6133
  role: "option",
6156
6134
  selected: isSelected,
6157
6135
  visualFocused,
6158
- children: /* @__PURE__ */ jsxs26(StyledOption, { grouped: isGroupedOption, last: isLastOption, selected: isSelected, visualFocused, children: [
6159
- multiple && /* @__PURE__ */ jsx42(Checkbox_default, { checked: isSelected, tabIndex: -1, ref: checkboxRef }),
6160
- option.icon && /* @__PURE__ */ jsx42(OptionIcon, { children: typeof option.icon === "string" ? /* @__PURE__ */ jsx42(DxcIcon, { icon: option.icon }) : option.icon }),
6161
- /* @__PURE__ */ jsxs26(OptionContent, { children: [
6162
- /* @__PURE__ */ jsx42(OptionLabel, { isSelectAllOption, onMouseEnter: handleOnMouseEnter, children: option.label }),
6163
- !multiple && isSelected && /* @__PURE__ */ jsx42(DxcIcon, { icon: "done" })
6136
+ children: /* @__PURE__ */ jsxs27(StyledOption, { grouped: isGroupedOption, last: isLastOption, selected: isSelected, visualFocused, children: [
6137
+ multiple && /* @__PURE__ */ jsx43(Checkbox_default, { checked: isSelected, tabIndex: -1, ref: checkboxRef }),
6138
+ option.icon && /* @__PURE__ */ jsx43(OptionIcon, { children: typeof option.icon === "string" ? /* @__PURE__ */ jsx43(DxcIcon, { icon: option.icon }) : option.icon }),
6139
+ /* @__PURE__ */ jsxs27(OptionContent, { children: [
6140
+ /* @__PURE__ */ jsx43(OptionLabel, { isSelectAllOption, onMouseEnter: handleOnMouseEnter, children: option.label }),
6141
+ !multiple && isSelected && /* @__PURE__ */ jsx43(DxcIcon, { icon: "done" })
6164
6142
  ] })
6165
6143
  ] })
6166
6144
  }
@@ -6261,7 +6239,7 @@ var getSelectableOptionsValues = (options) => isArrayOfGroupedOptions(options) ?
6261
6239
  var computeNewValue = (currentValue, newOption) => currentValue.includes(newOption.value) ? currentValue.filter((val) => val !== newOption.value) : [...currentValue, newOption.value];
6262
6240
 
6263
6241
  // src/select/Listbox.tsx
6264
- import { jsx as jsx43, jsxs as jsxs27 } from "react/jsx-runtime";
6242
+ import { jsx as jsx44, jsxs as jsxs28 } from "react/jsx-runtime";
6265
6243
  var ListboxContainer = styled33.div`
6266
6244
  box-sizing: border-box;
6267
6245
  max-height: 304px;
@@ -6323,7 +6301,7 @@ var Listbox = ({
6323
6301
  if (multiple && enableSelectAll) {
6324
6302
  const groupSelectionType = getGroupSelectionType(option.options, currentValue);
6325
6303
  globalMappingIndex++;
6326
- return /* @__PURE__ */ jsx43(CheckboxContext_default.Provider, { value: { partial: groupSelectionType === "indeterminate" }, children: /* @__PURE__ */ jsx43(
6304
+ return /* @__PURE__ */ jsx44(CheckboxContext_default.Provider, { value: { partial: groupSelectionType === "indeterminate" }, children: /* @__PURE__ */ jsx44(
6327
6305
  ListOption_default,
6328
6306
  {
6329
6307
  id: groupId,
@@ -6341,17 +6319,17 @@ var Listbox = ({
6341
6319
  groupId
6342
6320
  ) });
6343
6321
  } else
6344
- return /* @__PURE__ */ jsx43(GroupLabel, { id: groupId, role: "presentation", children: option.label });
6322
+ return /* @__PURE__ */ jsx44(GroupLabel, { id: groupId, role: "presentation", children: option.label });
6345
6323
  };
6346
6324
  const mapOptionFunc = (option, mapIndex) => {
6347
6325
  if ("options" in option) {
6348
6326
  const groupId = `${id}-group-${mapIndex}`;
6349
- return option.options.length > 0 && /* @__PURE__ */ jsxs27("ul", { "aria-labelledby": groupId, role: "group", style: { padding: 0, margin: 0 }, children: [
6327
+ return option.options.length > 0 && /* @__PURE__ */ jsxs28("ul", { "aria-labelledby": groupId, role: "group", style: { padding: 0, margin: 0 }, children: [
6350
6328
  getGroupOption(groupId, option),
6351
6329
  option.options.map((singleOption) => {
6352
6330
  globalMappingIndex++;
6353
6331
  const optionId = `${id}-option-${globalMappingIndex}`;
6354
- return /* @__PURE__ */ jsx43(
6332
+ return /* @__PURE__ */ jsx44(
6355
6333
  ListOption_default,
6356
6334
  {
6357
6335
  id: optionId,
@@ -6370,7 +6348,7 @@ var Listbox = ({
6370
6348
  } else {
6371
6349
  globalMappingIndex++;
6372
6350
  const optionId = `${id}-option-${globalMappingIndex}`;
6373
- return /* @__PURE__ */ jsx43(
6351
+ return /* @__PURE__ */ jsx44(
6374
6352
  ListOption_default,
6375
6353
  {
6376
6354
  id: optionId,
@@ -6387,12 +6365,12 @@ var Listbox = ({
6387
6365
  };
6388
6366
  const getFirstItem = () => {
6389
6367
  if (searchable && (options.length === 0 || !groupsHaveOptions(options)))
6390
- return /* @__PURE__ */ jsxs27(OptionsSystemMessage, { children: [
6391
- /* @__PURE__ */ jsx43(DxcIcon, { icon: "search_off" }),
6368
+ return /* @__PURE__ */ jsxs28(OptionsSystemMessage, { children: [
6369
+ /* @__PURE__ */ jsx44(DxcIcon, { icon: "search_off" }),
6392
6370
  translatedLabels.select.noMatchesErrorMessage
6393
6371
  ] });
6394
6372
  else if (optional && !multiple)
6395
- return /* @__PURE__ */ jsx43(
6373
+ return /* @__PURE__ */ jsx44(
6396
6374
  ListOption_default,
6397
6375
  {
6398
6376
  id: `${id}-option-${0}`,
@@ -6406,7 +6384,7 @@ var Listbox = ({
6406
6384
  `${id}-option-${optionalItem.value}`
6407
6385
  );
6408
6386
  else if (multiple && enableSelectAll) {
6409
- return /* @__PURE__ */ jsx43(CheckboxContext_default.Provider, { value: { partial: selectionType === "indeterminate" }, children: /* @__PURE__ */ jsx43(
6387
+ return /* @__PURE__ */ jsx44(CheckboxContext_default.Provider, { value: { partial: selectionType === "indeterminate" }, children: /* @__PURE__ */ jsx44(
6410
6388
  ListOption_default,
6411
6389
  {
6412
6390
  id: `${id}-option-${0}`,
@@ -6441,7 +6419,7 @@ var Listbox = ({
6441
6419
  inline: "start"
6442
6420
  });
6443
6421
  }, [visualFocusIndex]);
6444
- return /* @__PURE__ */ jsxs27(
6422
+ return /* @__PURE__ */ jsxs28(
6445
6423
  ListboxContainer,
6446
6424
  {
6447
6425
  "aria-labelledby": ariaLabelledBy,
@@ -6467,7 +6445,7 @@ var Listbox_default = Listbox;
6467
6445
 
6468
6446
  // src/styles/forms/ErrorMessage.tsx
6469
6447
  import styled34 from "styled-components";
6470
- import { jsx as jsx44, jsxs as jsxs28 } from "react/jsx-runtime";
6448
+ import { jsx as jsx45, jsxs as jsxs29 } from "react/jsx-runtime";
6471
6449
  var ErrorMessageContainer = styled34.div`
6472
6450
  display: flex;
6473
6451
  align-items: center;
@@ -6482,8 +6460,8 @@ var ErrorMessageContainer = styled34.div`
6482
6460
  font-size: var(--height-xxs);
6483
6461
  }
6484
6462
  `;
6485
- var ErrorMessage = ({ error, id }) => /* @__PURE__ */ jsxs28(ErrorMessageContainer, { "aria-live": error ? "assertive" : "off", id, role: "alert", children: [
6486
- error && /* @__PURE__ */ jsx44(DxcIcon, { icon: "filled_error" }),
6463
+ var ErrorMessage = ({ error, id }) => /* @__PURE__ */ jsxs29(ErrorMessageContainer, { "aria-live": error ? "assertive" : "off", id, role: "alert", children: [
6464
+ error && /* @__PURE__ */ jsx45(DxcIcon, { icon: "filled_error" }),
6487
6465
  error
6488
6466
  ] });
6489
6467
  var ErrorMessage_default = ErrorMessage;
@@ -6539,7 +6517,7 @@ var inputStylesByState = (disabled, error, readOnly) => css3`
6539
6517
  `;
6540
6518
 
6541
6519
  // src/select/Select.tsx
6542
- import { jsx as jsx45, jsxs as jsxs29 } from "react/jsx-runtime";
6520
+ import { jsx as jsx46, jsxs as jsxs30 } from "react/jsx-runtime";
6543
6521
  var SelectContainer = styled37.div`
6544
6522
  box-sizing: border-box;
6545
6523
  display: flex;
@@ -6676,18 +6654,18 @@ var DxcSelect = forwardRef5(
6676
6654
  const selectSearchInputRef = useRef10(null);
6677
6655
  const width = useWidth_default(selectRef.current);
6678
6656
  const translatedLabels = useContext16(HalstackLanguageContext);
6679
- const optionalItem = useMemo9(() => ({ label: placeholder, value: "" }), [placeholder]);
6680
- const filteredOptions = useMemo9(() => filterOptionsBySearchValue(options, searchValue), [options, searchValue]);
6681
- const lastOptionIndex = useMemo9(
6657
+ const optionalItem = useMemo8(() => ({ label: placeholder, value: "" }), [placeholder]);
6658
+ const filteredOptions = useMemo8(() => filterOptionsBySearchValue(options, searchValue), [options, searchValue]);
6659
+ const lastOptionIndex = useMemo8(
6682
6660
  () => getLastOptionIndex(options, filteredOptions, searchable, optional, multiple, enableSelectAll),
6683
6661
  [options, filteredOptions, searchable, optional, multiple, enableSelectAll]
6684
6662
  );
6685
- const { selectedOption, singleSelectionIndex } = useMemo9(
6663
+ const { selectedOption, singleSelectionIndex } = useMemo8(
6686
6664
  () => getSelectedOption(value ?? innerValue, options, multiple, optional, optionalItem),
6687
6665
  [value, innerValue, options, multiple, optional, optionalItem]
6688
6666
  );
6689
- const selectableOptionsValues = useMemo9(() => getSelectableOptionsValues(options), [options]);
6690
- const selectionType = useMemo9(
6667
+ const selectableOptionsValues = useMemo8(() => getSelectableOptionsValues(options), [options]);
6668
+ const selectionType = useMemo8(
6691
6669
  () => getSelectionType(options, value ?? innerValue),
6692
6670
  [innerValue, options, value]
6693
6671
  );
@@ -6902,8 +6880,8 @@ var DxcSelect = forwardRef5(
6902
6880
  },
6903
6881
  [handleOptionOnClick, innerValue, value]
6904
6882
  );
6905
- return /* @__PURE__ */ jsxs29(SelectContainer, { margin, ref, size, children: [
6906
- label && /* @__PURE__ */ jsxs29(
6883
+ return /* @__PURE__ */ jsxs30(SelectContainer, { margin, ref, size, children: [
6884
+ label && /* @__PURE__ */ jsxs30(
6907
6885
  Label_default,
6908
6886
  {
6909
6887
  disabled,
@@ -6915,13 +6893,13 @@ var DxcSelect = forwardRef5(
6915
6893
  children: [
6916
6894
  label,
6917
6895
  " ",
6918
- optional && /* @__PURE__ */ jsx45("span", { children: translatedLabels.formFields.optionalLabel })
6896
+ optional && /* @__PURE__ */ jsx46("span", { children: translatedLabels.formFields.optionalLabel })
6919
6897
  ]
6920
6898
  }
6921
6899
  ),
6922
- helperText && /* @__PURE__ */ jsx45(HelperText_default, { disabled, hasMargin: true, children: helperText }),
6923
- /* @__PURE__ */ jsxs29(Popover2.Root, { open: isOpen, children: [
6924
- /* @__PURE__ */ jsx45(Popover2.Trigger, { asChild: true, type: void 0, children: /* @__PURE__ */ jsxs29(
6900
+ helperText && /* @__PURE__ */ jsx46(HelperText_default, { disabled, hasMargin: true, children: helperText }),
6901
+ /* @__PURE__ */ jsxs30(Popover2.Root, { open: isOpen, children: [
6902
+ /* @__PURE__ */ jsx46(Popover2.Trigger, { asChild: true, type: void 0, children: /* @__PURE__ */ jsxs30(
6925
6903
  Select,
6926
6904
  {
6927
6905
  "aria-activedescendant": visualFocusIndex >= 0 ? `option-${visualFocusIndex}` : void 0,
@@ -6945,9 +6923,9 @@ var DxcSelect = forwardRef5(
6945
6923
  role: "combobox",
6946
6924
  tabIndex: disabled ? -1 : tabIndex,
6947
6925
  children: [
6948
- multiple && Array.isArray(selectedOption) && selectedOption.length > 0 && /* @__PURE__ */ jsxs29(SelectionIndicator, { disabled, children: [
6949
- /* @__PURE__ */ jsx45(SelectionNumber, { disabled, children: selectedOption.length }),
6950
- /* @__PURE__ */ jsx45(Tooltip, { label: translatedLabels.select.actionClearSelectionTitle, children: /* @__PURE__ */ jsx45(
6926
+ multiple && Array.isArray(selectedOption) && selectedOption.length > 0 && /* @__PURE__ */ jsxs30(SelectionIndicator, { disabled, children: [
6927
+ /* @__PURE__ */ jsx46(SelectionNumber, { disabled, children: selectedOption.length }),
6928
+ /* @__PURE__ */ jsx46(Tooltip, { label: translatedLabels.select.actionClearSelectionTitle, children: /* @__PURE__ */ jsx46(
6951
6929
  ClearOptionsAction,
6952
6930
  {
6953
6931
  "aria-label": translatedLabels.select.actionClearSelectionTitle,
@@ -6957,12 +6935,12 @@ var DxcSelect = forwardRef5(
6957
6935
  event.preventDefault();
6958
6936
  },
6959
6937
  tabIndex: -1,
6960
- children: /* @__PURE__ */ jsx45(DxcIcon, { icon: "clear" })
6938
+ children: /* @__PURE__ */ jsx46(DxcIcon, { icon: "clear" })
6961
6939
  }
6962
6940
  ) })
6963
6941
  ] }),
6964
- /* @__PURE__ */ jsx45(TooltipWrapper, { condition: hasTooltip, label: getSelectedOptionLabel(placeholder, selectedOption), children: /* @__PURE__ */ jsxs29(SearchableValueContainer, { children: [
6965
- /* @__PURE__ */ jsx45(
6942
+ /* @__PURE__ */ jsx46(TooltipWrapper, { condition: hasTooltip, label: getSelectedOptionLabel(placeholder, selectedOption), children: /* @__PURE__ */ jsxs30(SearchableValueContainer, { children: [
6943
+ /* @__PURE__ */ jsx46(
6966
6944
  "input",
6967
6945
  {
6968
6946
  disabled,
@@ -6971,7 +6949,7 @@ var DxcSelect = forwardRef5(
6971
6949
  value: multiple ? (Array.isArray(value) ? value : Array.isArray(innerValue) ? innerValue : []).join(",") : value ?? innerValue
6972
6950
  }
6973
6951
  ),
6974
- searchable && /* @__PURE__ */ jsx45(
6952
+ searchable && /* @__PURE__ */ jsx46(
6975
6953
  SearchInput,
6976
6954
  {
6977
6955
  "aria-labelledby": label ? labelId : void 0,
@@ -6984,7 +6962,7 @@ var DxcSelect = forwardRef5(
6984
6962
  value: searchValue
6985
6963
  }
6986
6964
  ),
6987
- (!searchable || searchValue === "") && /* @__PURE__ */ jsx45(
6965
+ (!searchable || searchValue === "") && /* @__PURE__ */ jsx46(
6988
6966
  SelectedOption,
6989
6967
  {
6990
6968
  atBackground: (multiple ? (value ?? innerValue).length === 0 : !(value ?? innerValue)) || searchable && isOpen,
@@ -6994,8 +6972,8 @@ var DxcSelect = forwardRef5(
6994
6972
  }
6995
6973
  )
6996
6974
  ] }) }),
6997
- /* @__PURE__ */ jsxs29(Flex_default, { alignItems: "center", children: [
6998
- searchable && searchValue.length > 0 && /* @__PURE__ */ jsx45(Tooltip, { label: translatedLabels.select.actionClearSelectionTitle, children: /* @__PURE__ */ jsx45(
6975
+ /* @__PURE__ */ jsxs30(Flex_default, { alignItems: "center", children: [
6976
+ searchable && searchValue.length > 0 && /* @__PURE__ */ jsx46(Tooltip, { label: translatedLabels.select.actionClearSelectionTitle, children: /* @__PURE__ */ jsx46(
6999
6977
  ActionIcon_default,
7000
6978
  {
7001
6979
  icon: "clear",
@@ -7004,12 +6982,12 @@ var DxcSelect = forwardRef5(
7004
6982
  title: translatedLabels.select.actionClearSearchTitle
7005
6983
  }
7006
6984
  ) }),
7007
- /* @__PURE__ */ jsx45(DxcIcon, { icon: isOpen ? "keyboard_arrow_up" : "keyboard_arrow_down" })
6985
+ /* @__PURE__ */ jsx46(DxcIcon, { icon: isOpen ? "keyboard_arrow_up" : "keyboard_arrow_down" })
7008
6986
  ] })
7009
6987
  ]
7010
6988
  }
7011
6989
  ) }),
7012
- /* @__PURE__ */ jsx45(Popover2.Portal, { children: /* @__PURE__ */ jsx45(
6990
+ /* @__PURE__ */ jsx46(Popover2.Portal, { children: /* @__PURE__ */ jsx46(
7013
6991
  Popover2.Content,
7014
6992
  {
7015
6993
  onCloseAutoFocus: (event) => {
@@ -7020,7 +6998,7 @@ var DxcSelect = forwardRef5(
7020
6998
  },
7021
6999
  sideOffset: 4,
7022
7000
  style: { zIndex: "2147483647" },
7023
- children: /* @__PURE__ */ jsx45(
7001
+ children: /* @__PURE__ */ jsx46(
7024
7002
  Listbox_default,
7025
7003
  {
7026
7004
  ariaLabelledBy: labelId,
@@ -7044,14 +7022,14 @@ var DxcSelect = forwardRef5(
7044
7022
  }
7045
7023
  ) })
7046
7024
  ] }),
7047
- !disabled && typeof error === "string" && /* @__PURE__ */ jsx45(ErrorMessage_default, { error, id: errorId })
7025
+ !disabled && typeof error === "string" && /* @__PURE__ */ jsx46(ErrorMessage_default, { error, id: errorId })
7048
7026
  ] });
7049
7027
  }
7050
7028
  );
7051
7029
  var Select_default = DxcSelect;
7052
7030
 
7053
7031
  // src/paginator/Paginator.tsx
7054
- import { jsx as jsx46, jsxs as jsxs30 } from "react/jsx-runtime";
7032
+ import { jsx as jsx47, jsxs as jsxs31 } from "react/jsx-runtime";
7055
7033
  var DxcPaginator = ({
7056
7034
  currentPage = 1,
7057
7035
  itemsPerPage = 5,
@@ -7108,10 +7086,10 @@ var DxcPaginator = ({
7108
7086
  align-items: center;
7109
7087
  gap: var(--spacing-gap-s);
7110
7088
  `;
7111
- return /* @__PURE__ */ jsxs30(DxcPaginatorContainer, { children: [
7112
- itemsPerPageOptions && /* @__PURE__ */ jsxs30(ItemsPerPageContainer, { children: [
7113
- /* @__PURE__ */ jsx46("span", { children: translatedLabels.paginator.itemsPerPageText }),
7114
- /* @__PURE__ */ jsx46(SelectContainer2, { children: /* @__PURE__ */ jsx46(
7089
+ return /* @__PURE__ */ jsxs31(DxcPaginatorContainer, { children: [
7090
+ itemsPerPageOptions && /* @__PURE__ */ jsxs31(ItemsPerPageContainer, { children: [
7091
+ /* @__PURE__ */ jsx47("span", { children: translatedLabels.paginator.itemsPerPageText }),
7092
+ /* @__PURE__ */ jsx47(SelectContainer2, { children: /* @__PURE__ */ jsx47(
7115
7093
  Select_default,
7116
7094
  {
7117
7095
  options: itemsPerPageOptions.map((num) => ({
@@ -7127,10 +7105,10 @@ var DxcPaginator = ({
7127
7105
  }
7128
7106
  ) })
7129
7107
  ] }),
7130
- /* @__PURE__ */ jsx46(TotalItemsContainer, { children: translatedLabels.paginator.minToMaxOfText(minItemsPerPage, maxItemsPerPage, totalItems) }),
7131
- /* @__PURE__ */ jsxs30(GoToPageContainer, { children: [
7132
- onPageChange && /* @__PURE__ */ jsxs30(ButtonsContainer, { children: [
7133
- /* @__PURE__ */ jsx46(
7108
+ /* @__PURE__ */ jsx47(TotalItemsContainer, { children: translatedLabels.paginator.minToMaxOfText(minItemsPerPage, maxItemsPerPage, totalItems) }),
7109
+ /* @__PURE__ */ jsxs31(GoToPageContainer, { children: [
7110
+ onPageChange && /* @__PURE__ */ jsxs31(ButtonsContainer, { children: [
7111
+ /* @__PURE__ */ jsx47(
7134
7112
  Button_default,
7135
7113
  {
7136
7114
  mode: "secondary",
@@ -7144,7 +7122,7 @@ var DxcPaginator = ({
7144
7122
  size: { height: "medium" }
7145
7123
  }
7146
7124
  ),
7147
- /* @__PURE__ */ jsx46(
7125
+ /* @__PURE__ */ jsx47(
7148
7126
  Button_default,
7149
7127
  {
7150
7128
  mode: "secondary",
@@ -7159,12 +7137,12 @@ var DxcPaginator = ({
7159
7137
  }
7160
7138
  )
7161
7139
  ] }),
7162
- showGoToPage ? /* @__PURE__ */ jsxs30(PageToSelectContainer, { children: [
7163
- /* @__PURE__ */ jsxs30("span", { children: [
7140
+ showGoToPage ? /* @__PURE__ */ jsxs31(PageToSelectContainer, { children: [
7141
+ /* @__PURE__ */ jsxs31("span", { children: [
7164
7142
  translatedLabels.paginator.goToPageText,
7165
7143
  " "
7166
7144
  ] }),
7167
- /* @__PURE__ */ jsx46(SelectContainer2, { children: /* @__PURE__ */ jsx46(
7145
+ /* @__PURE__ */ jsx47(SelectContainer2, { children: /* @__PURE__ */ jsx47(
7168
7146
  Select_default,
7169
7147
  {
7170
7148
  options: Array.from(Array(totalPages), (e, num) => ({
@@ -7179,9 +7157,9 @@ var DxcPaginator = ({
7179
7157
  tabIndex
7180
7158
  }
7181
7159
  ) })
7182
- ] }) : /* @__PURE__ */ jsx46("span", { children: translatedLabels.paginator.pageOfText(currentPageInternal, totalPages) }),
7183
- onPageChange && /* @__PURE__ */ jsxs30(ButtonsContainer, { children: [
7184
- /* @__PURE__ */ jsx46(
7160
+ ] }) : /* @__PURE__ */ jsx47("span", { children: translatedLabels.paginator.pageOfText(currentPageInternal, totalPages) }),
7161
+ onPageChange && /* @__PURE__ */ jsxs31(ButtonsContainer, { children: [
7162
+ /* @__PURE__ */ jsx47(
7185
7163
  Button_default,
7186
7164
  {
7187
7165
  mode: "secondary",
@@ -7195,7 +7173,7 @@ var DxcPaginator = ({
7195
7173
  size: { height: "medium" }
7196
7174
  }
7197
7175
  ),
7198
- /* @__PURE__ */ jsx46(
7176
+ /* @__PURE__ */ jsx47(
7199
7177
  Button_default,
7200
7178
  {
7201
7179
  mode: "secondary",
@@ -7217,8 +7195,8 @@ var Paginator_default = DxcPaginator;
7217
7195
 
7218
7196
  // src/table/Table.tsx
7219
7197
  import styled39 from "styled-components";
7220
- import { useMemo as useMemo10 } from "react";
7221
- import { jsx as jsx47, jsxs as jsxs31 } from "react/jsx-runtime";
7198
+ import { useMemo as useMemo9 } from "react";
7199
+ import { jsx as jsx48, jsxs as jsxs32 } from "react/jsx-runtime";
7222
7200
  var calculateWidth7 = (margin) => `calc(100% - ${getMargin(margin, "left")} - ${getMargin(margin, "right")})`;
7223
7201
  var TableContainer = styled39.div`
7224
7202
  width: ${({ margin }) => calculateWidth7(margin)};
@@ -7287,11 +7265,11 @@ var ActionsContainer = styled39.div`
7287
7265
  }
7288
7266
  `;
7289
7267
  var DxcActionsCell = ({ actions }) => {
7290
- const actionIcons = useMemo10(() => actions.filter((action) => !action.options), [actions]);
7291
- const dropdownAction = useMemo10(() => actions.find((action) => action.options), [actions]);
7292
- return /* @__PURE__ */ jsxs31(ActionsContainer, { children: [
7268
+ const actionIcons = useMemo9(() => actions.filter((action) => !action.options), [actions]);
7269
+ const dropdownAction = useMemo9(() => actions.find((action) => action.options), [actions]);
7270
+ return /* @__PURE__ */ jsxs32(ActionsContainer, { children: [
7293
7271
  actionIcons.map(
7294
- (action, index) => index < (dropdownAction ? 2 : 3) && /* @__PURE__ */ jsx47(
7272
+ (action, index) => index < (dropdownAction ? 2 : 3) && /* @__PURE__ */ jsx48(
7295
7273
  ActionIcon_default,
7296
7274
  {
7297
7275
  icon: action.icon,
@@ -7303,7 +7281,7 @@ var DxcActionsCell = ({ actions }) => {
7303
7281
  `action-${index}`
7304
7282
  )
7305
7283
  ),
7306
- dropdownAction && /* @__PURE__ */ jsx47(
7284
+ dropdownAction && /* @__PURE__ */ jsx48(
7307
7285
  Dropdown_default,
7308
7286
  {
7309
7287
  caretHidden: true,
@@ -7317,99 +7295,56 @@ var DxcActionsCell = ({ actions }) => {
7317
7295
  )
7318
7296
  ] });
7319
7297
  };
7320
- var DxcTable = ({ children, margin, mode = "default" }) => /* @__PURE__ */ jsx47(TableContainer, { margin, children: /* @__PURE__ */ jsx47(Table, { mode, children }) });
7298
+ var DxcTable = ({ children, margin, mode = "default" }) => /* @__PURE__ */ jsx48(TableContainer, { margin, children: /* @__PURE__ */ jsx48(Table, { mode, children }) });
7321
7299
  DxcTable.ActionsCell = DxcActionsCell;
7322
7300
  var Table_default = DxcTable;
7323
7301
 
7324
7302
  // src/data-grid/DataGrid.tsx
7325
- import { jsx as jsx48, jsxs as jsxs32 } from "react/jsx-runtime";
7326
- var ActionContainer = styled40.div`
7327
- display: flex;
7328
- height: 100%;
7329
- align-items: center;
7330
- justify-content: center;
7331
- font-size: 14px;
7332
- width: 100%;
7333
- `;
7334
- var HierarchyContainer = styled40.div`
7335
- padding-left: ${(props) => `calc(${props.theme.dataPaddingLeft} * ${props.level})`};
7336
- button {
7337
- display: grid;
7338
- grid-template-columns: auto 1fr;
7339
- align-items: center;
7340
- gap: 0.5rem;
7341
- padding: 0px;
7342
- border: 0px;
7343
- width: 100%;
7344
- height: ${(props) => props.theme.dataRowHeight}px;
7345
- background: transparent;
7346
- text-align: left;
7347
- font-size: ${(props) => props.theme.dataFontSize};
7348
- font-family: inherit;
7349
- color: inherit;
7350
- cursor: pointer;
7351
- }
7352
- `;
7303
+ import { jsx as jsx49, jsxs as jsxs33 } from "react/jsx-runtime";
7353
7304
  var DataGridContainer = styled40.div`
7354
7305
  width: 100%;
7355
7306
  height: ${(props) => props.paginatorRendered ? `calc(100% - 50px)` : `100%`};
7356
7307
  .rdg {
7357
- border-radius: 4px;
7308
+ border-radius: var(--border-radius-s);
7358
7309
  height: 100%;
7359
7310
  border: 0px;
7360
- &::-webkit-scrollbar {
7361
- width: 8px;
7362
- height: 8px;
7363
- }
7364
- &::-webkit-scrollbar-thumb {
7365
- background-color: ${(props) => props.theme.scrollBarThumbColor};
7366
- border-radius: 6px;
7367
- }
7368
- &::-webkit-scrollbar-track {
7369
- background-color: ${(props) => props.theme.scrollBarTrackColor};
7370
- border-radius: 6px;
7371
- }
7311
+ ${scrollbarStyles}
7372
7312
  }
7373
- .rdg-cell:has(> #action) {
7313
+ .rdg-cell:has(> #small_action) {
7374
7314
  padding: 0px;
7375
7315
  }
7376
7316
  .rdg-cell {
7377
7317
  display: grid;
7378
7318
  align-items: center;
7379
7319
  width: 100%;
7380
- padding: 0px ${(props) => props.theme.dataPaddingRight} 0 ${(props) => props.theme.dataPaddingLeft};
7381
- font-family: ${(props) => props.theme.dataFontFamily};
7382
- font-size: ${(props) => props.theme.dataFontSize};
7383
- font-style: ${(props) => props.theme.dataFontStyle};
7384
- font-weight: ${(props) => props.theme.dataFontWeight};
7385
- color: ${(props) => props.theme.dataFontColor};
7386
- text-transform: ${(props) => props.theme.dataFontTextTransform};
7387
- line-height: ${(props) => props.theme.dataTextLineHeight};
7388
- border-bottom: ${(props) => `${props.theme.rowSeparatorThickness} ${props.theme.rowSeparatorStyle} ${props.theme.rowSeparatorColor}`};
7389
- border-right: ${(props) => `${props.theme.rowSeparatorThickness} ${props.theme.rowSeparatorStyle} ${props.theme.rowSeparatorColor}`};
7390
- background-color: ${(props) => props.theme.dataBackgroundColor};
7391
- outline-color: ${(props) => props.theme.focusColor} !important;
7320
+ padding: 0px var(--spacing-padding-xs);
7321
+ font-family: var(--typography-font-family);
7322
+ font-size: var(--typography-label-m);
7323
+ font-weight: var(--typography-label-regular);
7324
+ color: var(--color-fg-neutral-dark);
7325
+ border-bottom: var(--border-width-s) var(--border-style-default) var(--border-color-neutral-lightest);
7326
+ border-right: var(--border-width-s) var(--border-style-default) var(--border-color-neutral-lightest);
7327
+ background-color: var(--color-bg-neutral-lightest);
7328
+
7329
+ &[aria-selected="true"] {
7330
+ outline: var(--border-width-m) var(--border-style-default) var(--border-color-secondary-medium);
7331
+ }
7392
7332
  .rdg-text-editor:focus {
7393
7333
  border-color: transparent;
7394
- background-color: transparent;
7395
- color: ${(props) => props.theme.dataFontColor};
7334
+ background-color: var(--color-bg-neutral-lightest);
7335
+ color: var(--color-fg-neutral-dark);
7396
7336
  }
7397
7337
  }
7398
7338
  .rdg-header-row {
7399
- border-top-left-radius: ${(props) => props.theme.headerBorderRadius};
7400
- border-top-right-radius: ${(props) => props.theme.headerBorderRadius};
7339
+ border-top-left-radius: var(--border-radius-s);
7340
+ border-top-right-radius: var(--border-radius-s);
7401
7341
  .rdg-cell {
7402
- font-family: ${(props) => props.theme.headerFontFamily};
7403
- font-size: ${(props) => props.theme.headerFontSize};
7404
- font-style: ${(props) => props.theme.headerFontStyle};
7405
- font-weight: ${(props) => props.theme.headerFontWeight};
7406
- color: ${(props) => props.theme.headerFontColor};
7407
- text-transform: ${(props) => props.theme.headerFontTextTransform};
7408
- padding: 0px ${(props) => props.theme.headerPaddingRight} 0 ${(props) => props.theme.headerPaddingLeft};
7409
- line-height: ${(props) => props.theme.headerTextLineHeight};
7410
- background-color: ${(props) => props.theme.headerBackgroundColor};
7342
+ font-weight: var(--font-weight-bold);
7343
+ color: var(--color-fg-neutral-bright);
7344
+ padding: 0px var(--spacing-padding-xs);
7345
+ background-color: var(--color-bg-primary-strong);
7411
7346
  .sortIconContainer {
7412
- margin-left: 0.5rem;
7347
+ margin-left: var(--spacing-gap-s);
7413
7348
  display: flex;
7414
7349
  height: 100%;
7415
7350
  align-items: center;
@@ -7422,10 +7357,10 @@ var DataGridContainer = styled40.div`
7422
7357
  }
7423
7358
  }
7424
7359
  .rdg-summary-row {
7425
- background-color: #fafafa;
7360
+ background-color: var(--color-bg-neutral-lighter);
7426
7361
  .rdg-cell {
7427
7362
  border: 0px;
7428
- font-weight: 600;
7363
+ font-weight: var(--font-weight-semibold);
7429
7364
  }
7430
7365
  }
7431
7366
  .ellipsis-cell {
@@ -7459,6 +7394,34 @@ var DataGridContainer = styled40.div`
7459
7394
  text-align: right;
7460
7395
  }
7461
7396
  `;
7397
+ var HierarchyContainer = styled40.div`
7398
+ padding-left: ${(props) => `calc(var(--spacing-gap-s) * ${props.level})`};
7399
+ button {
7400
+ display: grid;
7401
+ grid-template-columns: auto 1fr;
7402
+ align-items: center;
7403
+ gap: var(--spacing-gap-s);
7404
+ padding: 0px;
7405
+ border: 0px;
7406
+ width: 100%;
7407
+ height: var(--height-l);
7408
+ background-color: var(--color-bg-neutral-lightest);
7409
+ font-family: var(--typography-font-family);
7410
+ font-size: var(--typography-label-m);
7411
+ font-weight: var(--typography-label-regular);
7412
+ color: var(--color-fg-neutral-dark);
7413
+ text-align: left;
7414
+ cursor: pointer;
7415
+ }
7416
+ `;
7417
+ var ActionContainer = styled40.div`
7418
+ display: flex;
7419
+ height: 100%;
7420
+ align-items: center;
7421
+ justify-content: center;
7422
+ font-size: var(--height-s);
7423
+ width: 100%;
7424
+ `;
7462
7425
  var DxcDataGrid = ({
7463
7426
  columns,
7464
7427
  rows,
@@ -7480,8 +7443,8 @@ var DxcDataGrid = ({
7480
7443
  defaultPage = 1
7481
7444
  }) => {
7482
7445
  const [rowsToRender, setRowsToRender] = useState17(rows);
7483
- const colorsTheme = useContext18(HalstackContext);
7484
7446
  const [page, changePage] = useState17(defaultPage);
7447
+ const [colHeight, setColHeight] = useState17(36);
7485
7448
  const goToPage = (newPage) => {
7486
7449
  if (onPageChange) {
7487
7450
  onPageChange(newPage);
@@ -7499,7 +7462,7 @@ var DxcDataGrid = ({
7499
7462
  }
7500
7463
  setSortColumns(newSortColumns);
7501
7464
  };
7502
- const columnsToRender = useMemo11(() => {
7465
+ const columnsToRender = useMemo10(() => {
7503
7466
  let expectedColumns = columns.map((column) => convertToRDGColumns(column, summaryRow));
7504
7467
  if (expandable) {
7505
7468
  expectedColumns = [
@@ -7516,7 +7479,7 @@ var DxcDataGrid = ({
7516
7479
  if (row.isExpandedChildContent) {
7517
7480
  return row.expandedChildContent || null;
7518
7481
  }
7519
- return /* @__PURE__ */ jsx48(ActionContainer, { id: "action", children: row.expandedContent && renderExpandableTrigger(row, rowsToRender, uniqueRowId, setRowsToRender) });
7482
+ return /* @__PURE__ */ jsx49(ActionContainer, { id: "small_action", children: row.expandedContent && renderExpandableTrigger(row, rowsToRender, uniqueRowId, setRowsToRender) });
7520
7483
  }
7521
7484
  },
7522
7485
  ...expectedColumns
@@ -7529,9 +7492,9 @@ var DxcDataGrid = ({
7529
7492
  ...expectedColumns[0],
7530
7493
  renderCell({ row }) {
7531
7494
  if (row.childRows?.length) {
7532
- return /* @__PURE__ */ jsx48(HierarchyContainer, { level: typeof row.rowLevel === "number" ? row.rowLevel : 0, children: renderHierarchyTrigger(rowsToRender, row, uniqueRowId, firstColumnKey, setRowsToRender) });
7495
+ return /* @__PURE__ */ jsx49(HierarchyContainer, { level: typeof row.rowLevel === "number" ? row.rowLevel : 0, children: renderHierarchyTrigger(rowsToRender, row, uniqueRowId, firstColumnKey, setRowsToRender) });
7533
7496
  }
7534
- return /* @__PURE__ */ jsx48(HierarchyContainer, { level: typeof row.rowLevel === "number" ? row.rowLevel : 0, className: "ellipsis-cell", children: row[firstColumnKey] });
7497
+ return /* @__PURE__ */ jsx49(HierarchyContainer, { level: typeof row.rowLevel === "number" ? row.rowLevel : 0, className: "ellipsis-cell", children: row[firstColumnKey] });
7535
7498
  }
7536
7499
  };
7537
7500
  }
@@ -7546,11 +7509,11 @@ var DxcDataGrid = ({
7546
7509
  minWidth: 36,
7547
7510
  renderCell({ row }) {
7548
7511
  if (!row.isExpandedChildContent) {
7549
- return /* @__PURE__ */ jsx48(ActionContainer, { id: "action", children: renderCheckbox(rows, row, uniqueRowId, selectedRows, onSelectRows) });
7512
+ return /* @__PURE__ */ jsx49(ActionContainer, { id: "small_action", children: renderCheckbox(rows, row, uniqueRowId, selectedRows, onSelectRows) });
7550
7513
  }
7551
7514
  return null;
7552
7515
  },
7553
- renderHeaderCell: () => /* @__PURE__ */ jsx48(ActionContainer, { id: "action", children: renderHeaderCheckbox(rows, uniqueRowId, selectedRows, colorsTheme, onSelectRows) })
7516
+ renderHeaderCell: () => /* @__PURE__ */ jsx49(ActionContainer, { id: "small_action", children: renderHeaderCheckbox(rows, uniqueRowId, selectedRows, onSelectRows) })
7554
7517
  },
7555
7518
  ...expectedColumns
7556
7519
  ];
@@ -7559,6 +7522,10 @@ var DxcDataGrid = ({
7559
7522
  }, [selectable, expandable, columns, rowsToRender, onSelectRows, rows, summaryRow, uniqueRowId, selectedRows]);
7560
7523
  const [columnsOrder, setColumnsOrder] = useState17(() => columnsToRender.map((_, index) => index));
7561
7524
  const [sortColumns, setSortColumns] = useState17([]);
7525
+ useEffect11(() => {
7526
+ const rootStyles = getComputedStyle(document.documentElement);
7527
+ if (rootStyles) setColHeight(parseFloat(rootStyles.getPropertyValue("--height-l")));
7528
+ }, []);
7562
7529
  useEffect11(() => {
7563
7530
  setColumnsOrder(Array.from({ length: columnsToRender.length }, (_, index) => index));
7564
7531
  }, [columnsToRender.length]);
@@ -7579,7 +7546,7 @@ var DxcDataGrid = ({
7579
7546
  }
7580
7547
  setRowsToRender(finalRows);
7581
7548
  }, [rows]);
7582
- const reorderedColumns = useMemo11(
7549
+ const reorderedColumns = useMemo10(
7583
7550
  () => (
7584
7551
  // Array ordered by columnsOrder
7585
7552
  columnsOrder.map((index) => columnsToRender[index])
@@ -7611,7 +7578,7 @@ var DxcDataGrid = ({
7611
7578
  onGridRowsChange(newRows);
7612
7579
  }
7613
7580
  };
7614
- const sortedRows = useMemo11(() => {
7581
+ const sortedRows = useMemo10(() => {
7615
7582
  const sortFunctions = getCustomSortFn(columns);
7616
7583
  if (!onSort) {
7617
7584
  if (sortColumns.length > 0 && uniqueRowId) {
@@ -7640,19 +7607,19 @@ var DxcDataGrid = ({
7640
7607
  }
7641
7608
  return rowsToRender;
7642
7609
  }, [expandable, rowsToRender, sortColumns, uniqueRowId]);
7643
- const minItemsPerPageIndex = useMemo11(() => getMinItemsPerPageIndex(page, itemsPerPage, page), [itemsPerPage, page]);
7644
- const maxItemsPerPageIndex = useMemo11(
7610
+ const minItemsPerPageIndex = useMemo10(() => getMinItemsPerPageIndex(page, itemsPerPage, page), [itemsPerPage, page]);
7611
+ const maxItemsPerPageIndex = useMemo10(
7645
7612
  () => getMaxItemsPerPageIndex(minItemsPerPageIndex, itemsPerPage, rows, page),
7646
7613
  [itemsPerPage, minItemsPerPageIndex, page, rows]
7647
7614
  );
7648
- const filteredRows = useMemo11(() => {
7615
+ const filteredRows = useMemo10(() => {
7649
7616
  if (onSort && sortColumns?.length > 0) {
7650
7617
  onSort?.(sortColumns?.[0]);
7651
7618
  }
7652
7619
  return !showPaginator || onPageChange ? sortedRows : getPaginatedNodes(sortedRows, uniqueRowId, minItemsPerPageIndex, maxItemsPerPageIndex + 1);
7653
7620
  }, [sortedRows, minItemsPerPageIndex, maxItemsPerPageIndex]);
7654
- return /* @__PURE__ */ jsx48(ThemeProvider5, { theme: colorsTheme.dataGrid, children: /* @__PURE__ */ jsxs32(DataGridContainer, { paginatorRendered: showPaginator && (totalItems ?? rows.length) > itemsPerPage, children: [
7655
- /* @__PURE__ */ jsx48(
7621
+ return /* @__PURE__ */ jsxs33(DataGridContainer, { paginatorRendered: showPaginator && (totalItems ?? rows.length) > itemsPerPage, children: [
7622
+ /* @__PURE__ */ jsx49(
7656
7623
  DataGrid,
7657
7624
  {
7658
7625
  columns: reorderedColumns,
@@ -7663,15 +7630,15 @@ var DxcDataGrid = ({
7663
7630
  sortColumns,
7664
7631
  onSortColumnsChange: handleSortChange,
7665
7632
  rowKeyGetter: (row) => uniqueRowId ? rowKeyGetter(row, uniqueRowId) : "",
7666
- rowHeight: (row) => row.isExpandedChildContent && typeof row.expandedContentHeight === "number" && row.expandedContentHeight > 0 ? row.expandedContentHeight : colorsTheme.dataGrid?.dataRowHeight ?? 0,
7633
+ rowHeight: (row) => row.isExpandedChildContent && typeof row.expandedContentHeight === "number" && row.expandedContentHeight > 0 ? row.expandedContentHeight : colHeight ?? 0,
7667
7634
  selectedRows,
7668
7635
  bottomSummaryRows: summaryRow ? [summaryRow] : void 0,
7669
- headerRowHeight: colorsTheme.dataGrid.headerRowHeight,
7670
- summaryRowHeight: colorsTheme.dataGrid.summaryRowHeight,
7636
+ headerRowHeight: colHeight,
7637
+ summaryRowHeight: colHeight,
7671
7638
  className: "fill-grid"
7672
7639
  }
7673
7640
  ),
7674
- showPaginator && (totalItems ?? rows.length) > itemsPerPage && /* @__PURE__ */ jsx48(
7641
+ showPaginator && (totalItems ?? rows.length) > itemsPerPage && /* @__PURE__ */ jsx49(
7675
7642
  Paginator_default,
7676
7643
  {
7677
7644
  totalItems: totalItems ?? rows.length,
@@ -7683,7 +7650,7 @@ var DxcDataGrid = ({
7683
7650
  onPageChange: goToPage
7684
7651
  }
7685
7652
  )
7686
- ] }) });
7653
+ ] });
7687
7654
  };
7688
7655
  DxcDataGrid.ActionsCell = DxcActionsCell;
7689
7656
  var DataGrid_default = DxcDataGrid;
@@ -7695,23 +7662,23 @@ import {
7695
7662
  useEffect as useEffect16,
7696
7663
  useId as useId11,
7697
7664
  useCallback as useCallback7,
7698
- useContext as useContext23,
7665
+ useContext as useContext22,
7699
7666
  forwardRef as forwardRef7
7700
7667
  } from "react";
7701
7668
  import dayjs3 from "dayjs";
7702
- import styled47, { ThemeProvider as ThemeProvider6 } from "styled-components";
7669
+ import styled47, { ThemeProvider as ThemeProvider4 } from "styled-components";
7703
7670
  import * as Popover4 from "@radix-ui/react-popover";
7704
7671
  import customParseFormat from "dayjs/plugin/customParseFormat";
7705
7672
 
7706
7673
  // src/date-input/DatePicker.tsx
7707
- import { memo as memo8, useContext as useContext20, useState as useState20 } from "react";
7674
+ import { memo as memo8, useContext as useContext19, useState as useState20 } from "react";
7708
7675
  import dayjs2 from "dayjs";
7709
7676
  import styled43 from "styled-components";
7710
7677
 
7711
7678
  // src/date-input/Calendar.tsx
7712
- import { useContext as useContext19, useState as useState18, useMemo as useMemo12, useEffect as useEffect12, useId as useId8, memo as memo6 } from "react";
7679
+ import { useContext as useContext18, useState as useState18, useMemo as useMemo11, useEffect as useEffect12, useId as useId8, memo as memo6 } from "react";
7713
7680
  import styled41 from "styled-components";
7714
- import { jsx as jsx49, jsxs as jsxs33 } from "react/jsx-runtime";
7681
+ import { jsx as jsx50, jsxs as jsxs34 } from "react/jsx-runtime";
7715
7682
  var CalendarContainer = styled41.div`
7716
7683
  box-sizing: border-box;
7717
7684
  display: flex;
@@ -7824,8 +7791,8 @@ var Calendar = ({
7824
7791
  const [dateToFocus, setDateToFocus] = useState18(getDateToFocus(selectedDate, innerDate, today2));
7825
7792
  const [isFocusable, setIsFocusable] = useState18(false);
7826
7793
  const id = useId8();
7827
- const translatedLabels = useContext19(HalstackLanguageContext);
7828
- const dayCells = useMemo12(() => getDays(innerDate), [innerDate]);
7794
+ const translatedLabels = useContext18(HalstackLanguageContext);
7795
+ const dayCells = useMemo11(() => getDays(innerDate), [innerDate]);
7829
7796
  const onDateClickHandler = (date) => {
7830
7797
  const newDate = innerDate.set("month", date.month).set("date", date.day);
7831
7798
  onDaySelect(newDate);
@@ -7919,9 +7886,9 @@ var Calendar = ({
7919
7886
  break;
7920
7887
  }
7921
7888
  };
7922
- return /* @__PURE__ */ jsxs33(CalendarContainer, { role: "grid", children: [
7923
- /* @__PURE__ */ jsx49(CalendarHeaderRow, { role: "row", children: translatedLabels.calendar.daysShort.map((weekDay) => /* @__PURE__ */ jsx49(WeekHeaderCell, { role: "columnheader", children: weekDay }, weekDay)) }),
7924
- /* @__PURE__ */ jsx49(MonthContainer, { onBlur: handleOnBlur, role: "rowgroup", children: divideDaysIntoWeeks(dayCells, translatedLabels.calendar.daysShort.length).map((week, rowIndex) => /* @__PURE__ */ jsx49(WeekContainer, { role: "row", children: week.map((date) => /* @__PURE__ */ jsx49(
7889
+ return /* @__PURE__ */ jsxs34(CalendarContainer, { role: "grid", children: [
7890
+ /* @__PURE__ */ jsx50(CalendarHeaderRow, { role: "row", children: translatedLabels.calendar.daysShort.map((weekDay) => /* @__PURE__ */ jsx50(WeekHeaderCell, { role: "columnheader", children: weekDay }, weekDay)) }),
7891
+ /* @__PURE__ */ jsx50(MonthContainer, { onBlur: handleOnBlur, role: "rowgroup", children: divideDaysIntoWeeks(dayCells, translatedLabels.calendar.daysShort.length).map((week, rowIndex) => /* @__PURE__ */ jsx50(WeekContainer, { role: "row", children: week.map((date) => /* @__PURE__ */ jsx50(
7925
7892
  DayCellButton,
7926
7893
  {
7927
7894
  id: `${id}_day_${date.day}_month${date.month}`,
@@ -7946,7 +7913,7 @@ var Calendar_default = memo6(Calendar);
7946
7913
  import dayjs from "dayjs";
7947
7914
  import { useEffect as useEffect13, useId as useId9, useState as useState19, memo as memo7 } from "react";
7948
7915
  import styled42 from "styled-components";
7949
- import { jsx as jsx50 } from "react/jsx-runtime";
7916
+ import { jsx as jsx51 } from "react/jsx-runtime";
7950
7917
  var YearPickerContainer = styled42.div`
7951
7918
  box-sizing: border-box;
7952
7919
  display: flex;
@@ -8023,7 +7990,7 @@ var YearPicker = ({ onYearSelect, selectedDate, today: today2 }) => {
8023
7990
  break;
8024
7991
  }
8025
7992
  };
8026
- return /* @__PURE__ */ jsx50(YearPickerContainer, { role: "listbox", "aria-label": "Year Picker", children: yearList.map((year2) => /* @__PURE__ */ jsx50(
7993
+ return /* @__PURE__ */ jsx51(YearPickerContainer, { role: "listbox", "aria-label": "Year Picker", children: yearList.map((year2) => /* @__PURE__ */ jsx51(
8027
7994
  YearPickerButton,
8028
7995
  {
8029
7996
  "aria-label": year2.toString(),
@@ -8045,7 +8012,7 @@ var YearPicker = ({ onYearSelect, selectedDate, today: today2 }) => {
8045
8012
  var YearPicker_default = memo7(YearPicker);
8046
8013
 
8047
8014
  // src/date-input/DatePicker.tsx
8048
- import { jsx as jsx51, jsxs as jsxs34 } from "react/jsx-runtime";
8015
+ import { jsx as jsx52, jsxs as jsxs35 } from "react/jsx-runtime";
8049
8016
  var DatePickerContainer = styled43.div`
8050
8017
  padding: var(--spacing-padding-m) var(--spacing-padding-xs) var(--spacing-padding-xs) var(--spacing-padding-xs);
8051
8018
  background-color: var(--color-bg-neutral-lightest);
@@ -8117,7 +8084,7 @@ var DatePicker = ({ date, onDateSelect, id }) => {
8117
8084
  const [innerDate, setInnerDate] = useState20(date?.isValid() ? date : dayjs2());
8118
8085
  const [content, setContent] = useState20("calendar");
8119
8086
  const selectedDate = date?.isValid() ? date : dayjs2(null);
8120
- const translatedLabels = useContext20(HalstackLanguageContext);
8087
+ const translatedLabels = useContext19(HalstackLanguageContext);
8121
8088
  const handleDateSelect = (chosenDate) => {
8122
8089
  setInnerDate(chosenDate);
8123
8090
  onDateSelect(chosenDate);
@@ -8129,41 +8096,41 @@ var DatePicker = ({ date, onDateSelect, id }) => {
8129
8096
  const handleMonthChange = (chosenDate) => {
8130
8097
  setInnerDate(chosenDate);
8131
8098
  };
8132
- return /* @__PURE__ */ jsxs34(DatePickerContainer, { id, children: [
8133
- /* @__PURE__ */ jsxs34(PickerHeader, { children: [
8134
- /* @__PURE__ */ jsx51(Tooltip, { label: translatedLabels.calendar.previousMonthTitle, children: /* @__PURE__ */ jsx51(
8099
+ return /* @__PURE__ */ jsxs35(DatePickerContainer, { id, children: [
8100
+ /* @__PURE__ */ jsxs35(PickerHeader, { children: [
8101
+ /* @__PURE__ */ jsx52(Tooltip, { label: translatedLabels.calendar.previousMonthTitle, children: /* @__PURE__ */ jsx52(
8135
8102
  HeaderButton,
8136
8103
  {
8137
8104
  "aria-label": translatedLabels.calendar.previousMonthTitle,
8138
8105
  onClick: () => handleMonthChange(innerDate.set("month", innerDate.get("month") - 1)),
8139
- children: /* @__PURE__ */ jsx51(DxcIcon, { icon: "keyboard_arrow_left" })
8106
+ children: /* @__PURE__ */ jsx52(DxcIcon, { icon: "keyboard_arrow_left" })
8140
8107
  }
8141
8108
  ) }),
8142
- /* @__PURE__ */ jsxs34(
8109
+ /* @__PURE__ */ jsxs35(
8143
8110
  HeaderYearTrigger,
8144
8111
  {
8145
8112
  "aria-live": "polite",
8146
8113
  onClick: () => setContent((currentContent) => currentContent === "yearPicker" ? "calendar" : "yearPicker"),
8147
8114
  children: [
8148
- /* @__PURE__ */ jsxs34(HeaderYearTriggerLabel, { children: [
8115
+ /* @__PURE__ */ jsxs35(HeaderYearTriggerLabel, { children: [
8149
8116
  translatedLabels.calendar.months[innerDate.get("month")],
8150
8117
  " ",
8151
8118
  innerDate.format("YYYY")
8152
8119
  ] }),
8153
- /* @__PURE__ */ jsx51(DxcIcon, { icon: content === "yearPicker" ? "arrow_drop_up" : "arrow_drop_down" })
8120
+ /* @__PURE__ */ jsx52(DxcIcon, { icon: content === "yearPicker" ? "arrow_drop_up" : "arrow_drop_down" })
8154
8121
  ]
8155
8122
  }
8156
8123
  ),
8157
- /* @__PURE__ */ jsx51(Tooltip, { label: translatedLabels.calendar.nextMonthTitle, children: /* @__PURE__ */ jsx51(
8124
+ /* @__PURE__ */ jsx52(Tooltip, { label: translatedLabels.calendar.nextMonthTitle, children: /* @__PURE__ */ jsx52(
8158
8125
  HeaderButton,
8159
8126
  {
8160
8127
  "aria-label": translatedLabels.calendar.nextMonthTitle,
8161
8128
  onClick: () => handleMonthChange(innerDate.set("month", innerDate.get("month") + 1)),
8162
- children: /* @__PURE__ */ jsx51(DxcIcon, { icon: "keyboard_arrow_right" })
8129
+ children: /* @__PURE__ */ jsx52(DxcIcon, { icon: "keyboard_arrow_right" })
8163
8130
  }
8164
8131
  ) })
8165
8132
  ] }),
8166
- content === "calendar" && /* @__PURE__ */ jsx51(
8133
+ content === "calendar" && /* @__PURE__ */ jsx52(
8167
8134
  Calendar_default,
8168
8135
  {
8169
8136
  innerDate,
@@ -8173,7 +8140,7 @@ var DatePicker = ({ date, onDateSelect, id }) => {
8173
8140
  today
8174
8141
  }
8175
8142
  ),
8176
- content === "yearPicker" && /* @__PURE__ */ jsx51(YearPicker_default, { selectedDate, onYearSelect: handleOnYearSelect, today })
8143
+ content === "yearPicker" && /* @__PURE__ */ jsx52(YearPicker_default, { selectedDate, onYearSelect: handleOnYearSelect, today })
8177
8144
  ] });
8178
8145
  };
8179
8146
  var DatePicker_default = memo8(DatePicker);
@@ -8182,7 +8149,7 @@ var DatePicker_default = memo8(DatePicker);
8182
8149
  import * as Popover3 from "@radix-ui/react-popover";
8183
8150
  import {
8184
8151
  forwardRef as forwardRef6,
8185
- useContext as useContext22,
8152
+ useContext as useContext21,
8186
8153
  useEffect as useEffect15,
8187
8154
  useId as useId10,
8188
8155
  useRef as useRef12,
@@ -8195,11 +8162,11 @@ import { createContext as createContext8 } from "react";
8195
8162
  var NumberInputContext_default = createContext8(null);
8196
8163
 
8197
8164
  // src/text-input/Suggestions.tsx
8198
- import { memo as memo10, useContext as useContext21, useEffect as useEffect14, useRef as useRef11 } from "react";
8165
+ import { memo as memo10, useContext as useContext20, useEffect as useEffect14, useRef as useRef11 } from "react";
8199
8166
  import styled45 from "styled-components";
8200
8167
 
8201
8168
  // src/text-input/Suggestion.tsx
8202
- import { memo as memo9, useMemo as useMemo13 } from "react";
8169
+ import { memo as memo9, useMemo as useMemo12 } from "react";
8203
8170
  import styled44 from "styled-components";
8204
8171
 
8205
8172
  // src/text-input/utils.ts
@@ -8244,7 +8211,7 @@ var transformSpecialChars = (str) => {
8244
8211
  };
8245
8212
 
8246
8213
  // src/text-input/Suggestion.tsx
8247
- import { Fragment as Fragment11, jsx as jsx52, jsxs as jsxs35 } from "react/jsx-runtime";
8214
+ import { Fragment as Fragment11, jsx as jsx53, jsxs as jsxs36 } from "react/jsx-runtime";
8248
8215
  var SuggestionContainer = styled44.li`
8249
8216
  display: flex;
8250
8217
  flex-direction: column;
@@ -8268,11 +8235,11 @@ var StyledSuggestion = styled44.span`
8268
8235
  }
8269
8236
  `;
8270
8237
  var Suggestion = ({ highlighted, id, isLast, onClick, suggestion, value, visuallyFocused }) => {
8271
- const matchedSuggestion = useMemo13(() => {
8238
+ const matchedSuggestion = useMemo12(() => {
8272
8239
  const regEx = new RegExp(transformSpecialChars(value), "i");
8273
8240
  return { matchedWords: suggestion.match(regEx), noMatchedWords: suggestion.replace(regEx, "") };
8274
8241
  }, [value, suggestion]);
8275
- return /* @__PURE__ */ jsxs35(
8242
+ return /* @__PURE__ */ jsxs36(
8276
8243
  SuggestionContainer,
8277
8244
  {
8278
8245
  "aria-selected": visuallyFocused ? true : void 0,
@@ -8283,11 +8250,11 @@ var Suggestion = ({ highlighted, id, isLast, onClick, suggestion, value, visuall
8283
8250
  role: "option",
8284
8251
  visuallyFocused,
8285
8252
  children: [
8286
- /* @__PURE__ */ jsx52(Flex_default, { alignItems: "center", grow: 1, children: /* @__PURE__ */ jsx52(StyledSuggestion, { children: highlighted ? /* @__PURE__ */ jsxs35(Fragment11, { children: [
8287
- /* @__PURE__ */ jsx52("span", { children: matchedSuggestion.matchedWords }),
8253
+ /* @__PURE__ */ jsx53(Flex_default, { alignItems: "center", grow: 1, children: /* @__PURE__ */ jsx53(StyledSuggestion, { children: highlighted ? /* @__PURE__ */ jsxs36(Fragment11, { children: [
8254
+ /* @__PURE__ */ jsx53("span", { children: matchedSuggestion.matchedWords }),
8288
8255
  matchedSuggestion.noMatchedWords
8289
8256
  ] }) : suggestion }) }),
8290
- !isLast && /* @__PURE__ */ jsx52(DxcDivider, {})
8257
+ !isLast && /* @__PURE__ */ jsx53(DxcDivider, {})
8291
8258
  ]
8292
8259
  }
8293
8260
  );
@@ -8295,7 +8262,7 @@ var Suggestion = ({ highlighted, id, isLast, onClick, suggestion, value, visuall
8295
8262
  var Suggestion_default = memo9(Suggestion);
8296
8263
 
8297
8264
  // src/text-input/Suggestions.tsx
8298
- import { jsx as jsx53, jsxs as jsxs36 } from "react/jsx-runtime";
8265
+ import { jsx as jsx54, jsxs as jsxs37 } from "react/jsx-runtime";
8299
8266
  var SuggestionsContainer = styled45.div`
8300
8267
  box-sizing: border-box;
8301
8268
  max-height: 304px;
@@ -8342,7 +8309,7 @@ var Suggestions = ({
8342
8309
  value,
8343
8310
  visualFocusIndex
8344
8311
  }) => {
8345
- const translatedLabels = useContext21(HalstackLanguageContext);
8312
+ const translatedLabels = useContext20(HalstackLanguageContext);
8346
8313
  const listboxRef = useRef11(null);
8347
8314
  useEffect14(() => {
8348
8315
  const visualFocusedOptionEl = listboxRef?.current?.querySelectorAll("[role='option']")[visualFocusIndex];
@@ -8351,10 +8318,10 @@ var Suggestions = ({
8351
8318
  inline: "start"
8352
8319
  });
8353
8320
  }, [visualFocusIndex]);
8354
- return /* @__PURE__ */ jsx53(SuggestionsContainer, { style: styles, children: isSearching ? /* @__PURE__ */ jsx53(SuggestionsSystemMessage, { "aria-live": "polite", children: translatedLabels.textInput.searchingMessage }) : searchHasErrors ? /* @__PURE__ */ jsxs36(SuggestionsErrorMessage, { "aria-live": "assertive", role: "alert", children: [
8355
- /* @__PURE__ */ jsx53(DxcIcon, { icon: "filled_error" }),
8321
+ return /* @__PURE__ */ jsx54(SuggestionsContainer, { style: styles, children: isSearching ? /* @__PURE__ */ jsx54(SuggestionsSystemMessage, { "aria-live": "polite", children: translatedLabels.textInput.searchingMessage }) : searchHasErrors ? /* @__PURE__ */ jsxs37(SuggestionsErrorMessage, { "aria-live": "assertive", role: "alert", children: [
8322
+ /* @__PURE__ */ jsx54(DxcIcon, { icon: "filled_error" }),
8356
8323
  translatedLabels.textInput.fetchingDataErrorMessage
8357
- ] }) : /* @__PURE__ */ jsx53(
8324
+ ] }) : /* @__PURE__ */ jsx54(
8358
8325
  "ul",
8359
8326
  {
8360
8327
  "aria-label": "Suggestions",
@@ -8365,7 +8332,7 @@ var Suggestions = ({
8365
8332
  ref: listboxRef,
8366
8333
  role: "listbox",
8367
8334
  style: { margin: 0, padding: 0 },
8368
- children: suggestions.map((suggestion, index) => /* @__PURE__ */ jsx53(
8335
+ children: suggestions.map((suggestion, index) => /* @__PURE__ */ jsx54(
8369
8336
  Suggestion_default,
8370
8337
  {
8371
8338
  highlighted: highlightedSuggestions,
@@ -8384,7 +8351,7 @@ var Suggestions = ({
8384
8351
  var Suggestions_default = memo10(Suggestions);
8385
8352
 
8386
8353
  // src/text-input/TextInput.tsx
8387
- import { Fragment as Fragment12, jsx as jsx54, jsxs as jsxs37 } from "react/jsx-runtime";
8354
+ import { Fragment as Fragment12, jsx as jsx55, jsxs as jsxs38 } from "react/jsx-runtime";
8388
8355
  var TextInputContainer = styled46.div`
8389
8356
  box-sizing: border-box;
8390
8357
  display: flex;
@@ -8436,7 +8403,7 @@ var Addon = styled46.span`
8436
8403
  ${({ type }) => `padding-${type === "prefix" ? "right" : "left"}: var(--spacing-padding-xs);`}
8437
8404
  pointer-events: none;
8438
8405
  `;
8439
- var AutosuggestWrapper = ({ condition, wrapper, children }) => /* @__PURE__ */ jsx54(Fragment12, { children: condition ? wrapper(children) : children });
8406
+ var AutosuggestWrapper = ({ condition, wrapper, children }) => /* @__PURE__ */ jsx55(Fragment12, { children: condition ? wrapper(children) : children });
8440
8407
  var DxcTextInput = forwardRef6(
8441
8408
  ({
8442
8409
  action,
@@ -8468,8 +8435,8 @@ var DxcTextInput = forwardRef6(
8468
8435
  const inputId = `input-${useId10()}`;
8469
8436
  const autosuggestId = `suggestions-${inputId}`;
8470
8437
  const errorId = `error-${inputId}`;
8471
- const translatedLabels = useContext22(HalstackLanguageContext);
8472
- const numberInputContext = useContext22(NumberInputContext_default);
8438
+ const translatedLabels = useContext21(HalstackLanguageContext);
8439
+ const numberInputContext = useContext21(NumberInputContext_default);
8473
8440
  const inputRef = useRef12(null);
8474
8441
  const inputContainerRef = useRef12(null);
8475
8442
  const actionRef = useRef12(null);
@@ -8716,19 +8683,19 @@ var DxcTextInput = forwardRef6(
8716
8683
  }
8717
8684
  return void 0;
8718
8685
  }, [value, innerValue, suggestions, numberInputContext]);
8719
- return /* @__PURE__ */ jsxs37(TextInputContainer, { margin, ref, size, children: [
8720
- label && /* @__PURE__ */ jsxs37(Label_default, { disabled, hasMargin: !helperText, htmlFor: inputId, children: [
8686
+ return /* @__PURE__ */ jsxs38(TextInputContainer, { margin, ref, size, children: [
8687
+ label && /* @__PURE__ */ jsxs38(Label_default, { disabled, hasMargin: !helperText, htmlFor: inputId, children: [
8721
8688
  label,
8722
8689
  " ",
8723
- optional && /* @__PURE__ */ jsx54("span", { children: translatedLabels.formFields.optionalLabel })
8690
+ optional && /* @__PURE__ */ jsx55("span", { children: translatedLabels.formFields.optionalLabel })
8724
8691
  ] }),
8725
- helperText && /* @__PURE__ */ jsx54(HelperText_default, { disabled, hasMargin: true, children: helperText }),
8726
- /* @__PURE__ */ jsx54(
8692
+ helperText && /* @__PURE__ */ jsx55(HelperText_default, { disabled, hasMargin: true, children: helperText }),
8693
+ /* @__PURE__ */ jsx55(
8727
8694
  AutosuggestWrapper,
8728
8695
  {
8729
8696
  condition: hasSuggestions(suggestions),
8730
- wrapper: (children) => /* @__PURE__ */ jsxs37(Popover3.Root, { open: isOpen && (filteredSuggestions.length > 0 || isSearching || isAutosuggestError), children: [
8731
- /* @__PURE__ */ jsx54(
8697
+ wrapper: (children) => /* @__PURE__ */ jsxs38(Popover3.Root, { open: isOpen && (filteredSuggestions.length > 0 || isSearching || isAutosuggestError), children: [
8698
+ /* @__PURE__ */ jsx55(
8732
8699
  Popover3.Trigger,
8733
8700
  {
8734
8701
  "aria-controls": void 0,
@@ -8739,7 +8706,7 @@ var DxcTextInput = forwardRef6(
8739
8706
  children
8740
8707
  }
8741
8708
  ),
8742
- /* @__PURE__ */ jsx54(Popover3.Portal, { children: /* @__PURE__ */ jsx54(
8709
+ /* @__PURE__ */ jsx55(Popover3.Portal, { children: /* @__PURE__ */ jsx55(
8743
8710
  Popover3.Content,
8744
8711
  {
8745
8712
  onCloseAutoFocus: (event) => {
@@ -8750,7 +8717,7 @@ var DxcTextInput = forwardRef6(
8750
8717
  },
8751
8718
  sideOffset: 4,
8752
8719
  style: { zIndex: "2147483647" },
8753
- children: /* @__PURE__ */ jsx54(
8720
+ children: /* @__PURE__ */ jsx55(
8754
8721
  Suggestions_default,
8755
8722
  {
8756
8723
  highlightedSuggestions: typeof suggestions !== "function",
@@ -8770,7 +8737,7 @@ var DxcTextInput = forwardRef6(
8770
8737
  }
8771
8738
  ) })
8772
8739
  ] }),
8773
- children: /* @__PURE__ */ jsxs37(
8740
+ children: /* @__PURE__ */ jsxs38(
8774
8741
  TextInput,
8775
8742
  {
8776
8743
  disabled,
@@ -8780,8 +8747,8 @@ var DxcTextInput = forwardRef6(
8780
8747
  readOnly,
8781
8748
  ref: inputContainerRef,
8782
8749
  children: [
8783
- prefix && /* @__PURE__ */ jsx54(Addon, { disabled, type: "prefix", children: prefix }),
8784
- /* @__PURE__ */ jsx54(
8750
+ prefix && /* @__PURE__ */ jsx55(Addon, { disabled, type: "prefix", children: prefix }),
8751
+ /* @__PURE__ */ jsx55(
8785
8752
  Input,
8786
8753
  {
8787
8754
  "aria-activedescendant": hasSuggestions(suggestions) && isOpen && visualFocusIndex !== -1 ? `suggestion-${visualFocusIndex}` : void 0,
@@ -8817,8 +8784,8 @@ var DxcTextInput = forwardRef6(
8817
8784
  value: value ?? innerValue
8818
8785
  }
8819
8786
  ),
8820
- /* @__PURE__ */ jsxs37(Flex_default, { children: [
8821
- !disabled && !readOnly && clearable && (value ?? innerValue).length > 0 && /* @__PURE__ */ jsx54(
8787
+ /* @__PURE__ */ jsxs38(Flex_default, { children: [
8788
+ !disabled && !readOnly && clearable && (value ?? innerValue).length > 0 && /* @__PURE__ */ jsx55(
8822
8789
  ActionIcon_default,
8823
8790
  {
8824
8791
  icon: "close",
@@ -8827,8 +8794,8 @@ var DxcTextInput = forwardRef6(
8827
8794
  title: translatedLabels.textInput.clearFieldActionTitle
8828
8795
  }
8829
8796
  ),
8830
- numberInputContext?.typeNumber === "number" && numberInputContext?.showControls && /* @__PURE__ */ jsxs37(Fragment12, { children: [
8831
- /* @__PURE__ */ jsx54(
8797
+ numberInputContext?.typeNumber === "number" && numberInputContext?.showControls && /* @__PURE__ */ jsxs38(Fragment12, { children: [
8798
+ /* @__PURE__ */ jsx55(
8832
8799
  ActionIcon_default,
8833
8800
  {
8834
8801
  disabled,
@@ -8839,7 +8806,7 @@ var DxcTextInput = forwardRef6(
8839
8806
  title: translatedLabels.numberInput.decrementValueTitle
8840
8807
  }
8841
8808
  ),
8842
- /* @__PURE__ */ jsx54(
8809
+ /* @__PURE__ */ jsx55(
8843
8810
  ActionIcon_default,
8844
8811
  {
8845
8812
  disabled,
@@ -8851,7 +8818,7 @@ var DxcTextInput = forwardRef6(
8851
8818
  }
8852
8819
  )
8853
8820
  ] }),
8854
- action && /* @__PURE__ */ jsx54(
8821
+ action && /* @__PURE__ */ jsx55(
8855
8822
  ActionIcon_default,
8856
8823
  {
8857
8824
  disabled,
@@ -8863,20 +8830,20 @@ var DxcTextInput = forwardRef6(
8863
8830
  }
8864
8831
  )
8865
8832
  ] }),
8866
- suffix && /* @__PURE__ */ jsx54(Addon, { disabled, type: "suffix", children: suffix })
8833
+ suffix && /* @__PURE__ */ jsx55(Addon, { disabled, type: "suffix", children: suffix })
8867
8834
  ]
8868
8835
  }
8869
8836
  )
8870
8837
  }
8871
8838
  ),
8872
- !disabled && typeof error === "string" && /* @__PURE__ */ jsx54(ErrorMessage_default, { error, id: errorId })
8839
+ !disabled && typeof error === "string" && /* @__PURE__ */ jsx55(ErrorMessage_default, { error, id: errorId })
8873
8840
  ] });
8874
8841
  }
8875
8842
  );
8876
8843
  var TextInput_default = DxcTextInput;
8877
8844
 
8878
8845
  // src/date-input/DateInput.tsx
8879
- import { jsx as jsx55, jsxs as jsxs38 } from "react/jsx-runtime";
8846
+ import { jsx as jsx56, jsxs as jsxs39 } from "react/jsx-runtime";
8880
8847
  dayjs3.extend(customParseFormat);
8881
8848
  var SIDEOFFSET = 4;
8882
8849
  var sizes5 = {
@@ -8970,8 +8937,8 @@ var DxcDateInput = forwardRef7(
8970
8937
  innerValue || value ? !format.toUpperCase().includes("YYYY") && +getValueForPicker(value ?? innerValue, format).format("YY") < 68 ? 2e3 : 1900 : null
8971
8938
  );
8972
8939
  const [sideOffset, setSideOffset] = useState22(SIDEOFFSET);
8973
- const colorsTheme = useContext23(HalstackContext);
8974
- const translatedLabels = useContext23(HalstackLanguageContext);
8940
+ const colorsTheme = useContext22(HalstackContext);
8941
+ const translatedLabels = useContext22(HalstackLanguageContext);
8975
8942
  const dateRef = useRef13(null);
8976
8943
  const popoverContentRef = useRef13(null);
8977
8944
  const handleCalendarOnClick = (newDate) => {
@@ -9089,8 +9056,8 @@ var DxcDateInput = forwardRef7(
9089
9056
  }
9090
9057
  }
9091
9058
  }, [isOpen, disabled, calendarId]);
9092
- return /* @__PURE__ */ jsx55(ThemeProvider6, { theme: colorsTheme, children: /* @__PURE__ */ jsxs38(DateInputContainer, { margin, size, ref, children: [
9093
- label && /* @__PURE__ */ jsxs38(
9059
+ return /* @__PURE__ */ jsx56(ThemeProvider4, { theme: colorsTheme, children: /* @__PURE__ */ jsxs39(DateInputContainer, { margin, size, ref, children: [
9060
+ label && /* @__PURE__ */ jsxs39(
9094
9061
  Label5,
9095
9062
  {
9096
9063
  htmlFor: dateRef.current?.getElementsByTagName("input")[0]?.id,
@@ -9099,13 +9066,13 @@ var DxcDateInput = forwardRef7(
9099
9066
  children: [
9100
9067
  label,
9101
9068
  " ",
9102
- optional && /* @__PURE__ */ jsx55(OptionalLabel, { disabled, children: translatedLabels.formFields.optionalLabel })
9069
+ optional && /* @__PURE__ */ jsx56(OptionalLabel, { disabled, children: translatedLabels.formFields.optionalLabel })
9103
9070
  ]
9104
9071
  }
9105
9072
  ),
9106
- helperText && /* @__PURE__ */ jsx55(HelperText2, { disabled, children: helperText }),
9107
- /* @__PURE__ */ jsxs38(Popover4.Root, { open: isOpen, children: [
9108
- /* @__PURE__ */ jsx55(Popover4.Trigger, { asChild: true, "aria-controls": void 0, children: /* @__PURE__ */ jsx55(
9073
+ helperText && /* @__PURE__ */ jsx56(HelperText2, { disabled, children: helperText }),
9074
+ /* @__PURE__ */ jsxs39(Popover4.Root, { open: isOpen, children: [
9075
+ /* @__PURE__ */ jsx56(Popover4.Trigger, { asChild: true, "aria-controls": void 0, children: /* @__PURE__ */ jsx56(
9109
9076
  TextInput_default,
9110
9077
  {
9111
9078
  name,
@@ -9131,7 +9098,7 @@ var DxcDateInput = forwardRef7(
9131
9098
  ariaLabel
9132
9099
  }
9133
9100
  ) }),
9134
- /* @__PURE__ */ jsx55(Popover4.Portal, { children: /* @__PURE__ */ jsx55(
9101
+ /* @__PURE__ */ jsx56(Popover4.Portal, { children: /* @__PURE__ */ jsx56(
9135
9102
  StyledPopoverContent,
9136
9103
  {
9137
9104
  sideOffset,
@@ -9140,7 +9107,7 @@ var DxcDateInput = forwardRef7(
9140
9107
  onBlur: handleDatePickerOnBlur,
9141
9108
  onKeyDown: handleDatePickerEscKeydown,
9142
9109
  ref: popoverContentRef,
9143
- children: /* @__PURE__ */ jsx55(DatePicker_default, { id: calendarId, onDateSelect: handleCalendarOnClick, date: dayjsDate })
9110
+ children: /* @__PURE__ */ jsx56(DatePicker_default, { id: calendarId, onDateSelect: handleCalendarOnClick, date: dayjsDate })
9144
9111
  }
9145
9112
  ) })
9146
9113
  ] })
@@ -9150,10 +9117,10 @@ var DxcDateInput = forwardRef7(
9150
9117
  var DateInput_default = DxcDateInput;
9151
9118
 
9152
9119
  // src/dialog/Dialog.tsx
9153
- import { useContext as useContext24, useEffect as useEffect17 } from "react";
9120
+ import { useContext as useContext23, useEffect as useEffect17 } from "react";
9154
9121
  import { createPortal as createPortal2 } from "react-dom";
9155
9122
  import styled48, { createGlobalStyle as createGlobalStyle2 } from "styled-components";
9156
- import { Fragment as Fragment13, jsx as jsx56, jsxs as jsxs39 } from "react/jsx-runtime";
9123
+ import { Fragment as Fragment13, jsx as jsx57, jsxs as jsxs40 } from "react/jsx-runtime";
9157
9124
  var BodyStyle2 = createGlobalStyle2`
9158
9125
  body {
9159
9126
  overflow: hidden;
@@ -9203,7 +9170,7 @@ var DxcDialog = ({
9203
9170
  overlay = true,
9204
9171
  tabIndex = 0
9205
9172
  }) => {
9206
- const translatedLabels = useContext24(HalstackLanguageContext);
9173
+ const translatedLabels = useContext23(HalstackLanguageContext);
9207
9174
  useEffect17(() => {
9208
9175
  const handleKeyDown = (event) => {
9209
9176
  if (event.key === "Escape") {
@@ -9216,14 +9183,14 @@ var DxcDialog = ({
9216
9183
  document.removeEventListener("keydown", handleKeyDown);
9217
9184
  };
9218
9185
  }, [onCloseClick]);
9219
- return /* @__PURE__ */ jsxs39(Fragment13, { children: [
9220
- /* @__PURE__ */ jsx56(BodyStyle2, {}),
9186
+ return /* @__PURE__ */ jsxs40(Fragment13, { children: [
9187
+ /* @__PURE__ */ jsx57(BodyStyle2, {}),
9221
9188
  createPortal2(
9222
- /* @__PURE__ */ jsxs39(DialogContainer, { children: [
9223
- overlay && /* @__PURE__ */ jsx56(Overlay3, { onClick: onBackgroundClick }),
9224
- /* @__PURE__ */ jsx56(Dialog, { "aria-label": "Dialog", "aria-modal": overlay, closable, role: "dialog", children: /* @__PURE__ */ jsxs39(FocusLock_default, { children: [
9189
+ /* @__PURE__ */ jsxs40(DialogContainer, { children: [
9190
+ overlay && /* @__PURE__ */ jsx57(Overlay3, { onClick: onBackgroundClick }),
9191
+ /* @__PURE__ */ jsx57(Dialog, { "aria-label": "Dialog", "aria-modal": overlay, closable, role: "dialog", children: /* @__PURE__ */ jsxs40(FocusLock_default, { children: [
9225
9192
  children,
9226
- closable && /* @__PURE__ */ jsx56(CloseIconActionContainer, { children: /* @__PURE__ */ jsx56(
9193
+ closable && /* @__PURE__ */ jsx57(CloseIconActionContainer, { children: /* @__PURE__ */ jsx57(
9227
9194
  ActionIcon_default,
9228
9195
  {
9229
9196
  icon: "close",
@@ -9241,13 +9208,13 @@ var DxcDialog = ({
9241
9208
  var Dialog_default = DxcDialog;
9242
9209
 
9243
9210
  // src/file-input/FileInput.tsx
9244
- import { useCallback as useCallback8, useContext as useContext26, useEffect as useEffect18, useId as useId13, useState as useState24, forwardRef as forwardRef8 } from "react";
9211
+ import { useCallback as useCallback8, useContext as useContext25, useEffect as useEffect18, useId as useId13, useState as useState24, forwardRef as forwardRef8 } from "react";
9245
9212
  import styled50 from "styled-components";
9246
9213
 
9247
9214
  // src/file-input/FileItem.tsx
9248
- import { memo as memo11, useContext as useContext25, useId as useId12, useState as useState23 } from "react";
9215
+ import { memo as memo11, useContext as useContext24, useId as useId12, useState as useState23 } from "react";
9249
9216
  import styled49 from "styled-components";
9250
- import { jsx as jsx57, jsxs as jsxs40 } from "react/jsx-runtime";
9217
+ import { jsx as jsx58, jsxs as jsxs41 } from "react/jsx-runtime";
9251
9218
  var ListItem3 = styled49.li`
9252
9219
  list-style: none;
9253
9220
  display: flex;
@@ -9341,19 +9308,19 @@ var FileItem = ({
9341
9308
  onDelete,
9342
9309
  tabIndex
9343
9310
  }) => {
9344
- const translatedLabels = useContext25(HalstackLanguageContext);
9311
+ const translatedLabels = useContext24(HalstackLanguageContext);
9345
9312
  const [hasTooltip, setHasTooltip] = useState23(false);
9346
9313
  const fileNameId = useId12();
9347
9314
  const handleOnMouseEnter = (event) => {
9348
9315
  const text = event.currentTarget;
9349
9316
  setHasTooltip(text.scrollWidth > text.clientWidth);
9350
9317
  };
9351
- return /* @__PURE__ */ jsxs40(ListItem3, { children: [
9352
- /* @__PURE__ */ jsxs40(MainContainer2, { error, singleFileMode, showPreview, children: [
9353
- showPreview && (type.includes("image") ? /* @__PURE__ */ jsx57(ImagePreview, { src: preview, alt: `Preview of ${fileName}` }) : /* @__PURE__ */ jsx57(IconPreview, { "aria-labelledby": fileNameId, error, role: "img", children: /* @__PURE__ */ jsx57(DxcIcon, { icon: preview }) })),
9354
- /* @__PURE__ */ jsxs40(FileItemContent, { children: [
9355
- /* @__PURE__ */ jsx57(FileName, { id: fileNameId, children: fileName }),
9356
- /* @__PURE__ */ jsx57(Flex_default, { children: /* @__PURE__ */ jsx57(
9318
+ return /* @__PURE__ */ jsxs41(ListItem3, { children: [
9319
+ /* @__PURE__ */ jsxs41(MainContainer2, { error, singleFileMode, showPreview, children: [
9320
+ showPreview && (type.includes("image") ? /* @__PURE__ */ jsx58(ImagePreview, { src: preview, alt: `Preview of ${fileName}` }) : /* @__PURE__ */ jsx58(IconPreview, { "aria-labelledby": fileNameId, error, role: "img", children: /* @__PURE__ */ jsx58(DxcIcon, { icon: preview }) })),
9321
+ /* @__PURE__ */ jsxs41(FileItemContent, { children: [
9322
+ /* @__PURE__ */ jsx58(FileName, { id: fileNameId, children: fileName }),
9323
+ /* @__PURE__ */ jsx58(Flex_default, { children: /* @__PURE__ */ jsx58(
9357
9324
  ActionIcon_default,
9358
9325
  {
9359
9326
  onClick: () => onDelete(fileName),
@@ -9364,9 +9331,9 @@ var FileItem = ({
9364
9331
  ) })
9365
9332
  ] })
9366
9333
  ] }),
9367
- error && /* @__PURE__ */ jsx57(TooltipWrapper, { condition: hasTooltip, label: error, children: /* @__PURE__ */ jsxs40(ErrorMessageContainer2, { role: "alert", "aria-live": "assertive", singleFileMode, children: [
9368
- /* @__PURE__ */ jsx57(ErrorIcon, { children: /* @__PURE__ */ jsx57(DxcIcon, { icon: "filled_error" }) }),
9369
- /* @__PURE__ */ jsx57(ErrorMessage2, { onMouseEnter: handleOnMouseEnter, children: error })
9334
+ error && /* @__PURE__ */ jsx58(TooltipWrapper, { condition: hasTooltip, label: error, children: /* @__PURE__ */ jsxs41(ErrorMessageContainer2, { role: "alert", "aria-live": "assertive", singleFileMode, children: [
9335
+ /* @__PURE__ */ jsx58(ErrorIcon, { children: /* @__PURE__ */ jsx58(DxcIcon, { icon: "filled_error" }) }),
9336
+ /* @__PURE__ */ jsx58(ErrorMessage2, { onMouseEnter: handleOnMouseEnter, children: error })
9370
9337
  ] }) })
9371
9338
  ] });
9372
9339
  };
@@ -9394,7 +9361,7 @@ var isFileIncluded = (file, fileList) => {
9394
9361
  };
9395
9362
 
9396
9363
  // src/file-input/FileInput.tsx
9397
- import { jsx as jsx58, jsxs as jsxs41 } from "react/jsx-runtime";
9364
+ import { jsx as jsx59, jsxs as jsxs42 } from "react/jsx-runtime";
9398
9365
  var FileInputContainer = styled50.div`
9399
9366
  display: flex;
9400
9367
  flex-direction: column;
@@ -9484,7 +9451,7 @@ var DxcFileInput = forwardRef8(
9484
9451
  const [isDragging, setIsDragging] = useState24(false);
9485
9452
  const [files, setFiles] = useState24([]);
9486
9453
  const fileInputId = `file-input-${useId13()}`;
9487
- const translatedLabels = useContext26(HalstackLanguageContext);
9454
+ const translatedLabels = useContext25(HalstackLanguageContext);
9488
9455
  const checkFileSize = (file) => {
9489
9456
  if (minSize && file.size < minSize) return translatedLabels.fileInput.fileSizeGreaterThanErrorMessage;
9490
9457
  else if (maxSize && file.size > maxSize) return translatedLabels.fileInput.fileSizeLessThanErrorMessage;
@@ -9573,11 +9540,11 @@ var DxcFileInput = forwardRef8(
9573
9540
  };
9574
9541
  getFiles();
9575
9542
  }, [value]);
9576
- return /* @__PURE__ */ jsxs41(FileInputContainer, { margin, ref, children: [
9577
- /* @__PURE__ */ jsx58(Label_default, { htmlFor: fileInputId, disabled, children: label }),
9578
- /* @__PURE__ */ jsx58(HelperText_default, { disabled, children: helperText }),
9579
- mode === "file" ? /* @__PURE__ */ jsxs41(FileContainer, { singleFileMode: !multiple && files.length === 1, children: [
9580
- /* @__PURE__ */ jsx58(
9543
+ return /* @__PURE__ */ jsxs42(FileInputContainer, { margin, ref, children: [
9544
+ /* @__PURE__ */ jsx59(Label_default, { htmlFor: fileInputId, disabled, children: label }),
9545
+ /* @__PURE__ */ jsx59(HelperText_default, { disabled, children: helperText }),
9546
+ mode === "file" ? /* @__PURE__ */ jsxs42(FileContainer, { singleFileMode: !multiple && files.length === 1, children: [
9547
+ /* @__PURE__ */ jsx59(
9581
9548
  ValueInput,
9582
9549
  {
9583
9550
  id: fileInputId,
@@ -9589,7 +9556,7 @@ var DxcFileInput = forwardRef8(
9589
9556
  readOnly: true
9590
9557
  }
9591
9558
  ),
9592
- /* @__PURE__ */ jsx58(
9559
+ /* @__PURE__ */ jsx59(
9593
9560
  Button_default,
9594
9561
  {
9595
9562
  mode: "secondary",
@@ -9600,7 +9567,7 @@ var DxcFileInput = forwardRef8(
9600
9567
  tabIndex
9601
9568
  }
9602
9569
  ),
9603
- files.length > 0 && /* @__PURE__ */ jsx58(FileItemListContainer, { role: "list", children: files.map((file, index) => /* @__PURE__ */ jsx58(
9570
+ files.length > 0 && /* @__PURE__ */ jsx59(FileItemListContainer, { role: "list", children: files.map((file, index) => /* @__PURE__ */ jsx59(
9604
9571
  FileItem_default,
9605
9572
  {
9606
9573
  fileName: file.file.name,
@@ -9614,8 +9581,8 @@ var DxcFileInput = forwardRef8(
9614
9581
  },
9615
9582
  `file-${index}`
9616
9583
  )) })
9617
- ] }) : /* @__PURE__ */ jsxs41(Container2, { children: [
9618
- /* @__PURE__ */ jsx58(
9584
+ ] }) : /* @__PURE__ */ jsxs42(Container2, { children: [
9585
+ /* @__PURE__ */ jsx59(
9619
9586
  ValueInput,
9620
9587
  {
9621
9588
  id: fileInputId,
@@ -9627,7 +9594,7 @@ var DxcFileInput = forwardRef8(
9627
9594
  readOnly: true
9628
9595
  }
9629
9596
  ),
9630
- /* @__PURE__ */ jsxs41(
9597
+ /* @__PURE__ */ jsxs42(
9631
9598
  DragDropArea,
9632
9599
  {
9633
9600
  isDragging,
@@ -9638,7 +9605,7 @@ var DxcFileInput = forwardRef8(
9638
9605
  onDragOver: handleDrag,
9639
9606
  onDragLeave: handleDragOut,
9640
9607
  children: [
9641
- /* @__PURE__ */ jsx58(
9608
+ /* @__PURE__ */ jsx59(
9642
9609
  Button_default,
9643
9610
  {
9644
9611
  mode: "secondary",
@@ -9648,11 +9615,11 @@ var DxcFileInput = forwardRef8(
9648
9615
  size: { width: "fitContent", height: "medium" }
9649
9616
  }
9650
9617
  ),
9651
- mode === "dropzone" ? /* @__PURE__ */ jsx58(DropzoneLabel, { disabled, children: dropAreaLabel ?? (multiple ? translatedLabels.fileInput.multipleDropAreaLabelDefault : translatedLabels.fileInput.singleDropAreaLabelDefault) }) : /* @__PURE__ */ jsx58(FiledropLabel, { disabled, children: dropAreaLabel ?? (multiple ? translatedLabels.fileInput.multipleDropAreaLabelDefault : translatedLabels.fileInput.singleDropAreaLabelDefault) })
9618
+ mode === "dropzone" ? /* @__PURE__ */ jsx59(DropzoneLabel, { disabled, children: dropAreaLabel ?? (multiple ? translatedLabels.fileInput.multipleDropAreaLabelDefault : translatedLabels.fileInput.singleDropAreaLabelDefault) }) : /* @__PURE__ */ jsx59(FiledropLabel, { disabled, children: dropAreaLabel ?? (multiple ? translatedLabels.fileInput.multipleDropAreaLabelDefault : translatedLabels.fileInput.singleDropAreaLabelDefault) })
9652
9619
  ]
9653
9620
  }
9654
9621
  ),
9655
- files.length > 0 && /* @__PURE__ */ jsx58(FileItemListContainer, { role: "list", children: files.map((file, index) => /* @__PURE__ */ jsx58(
9622
+ files.length > 0 && /* @__PURE__ */ jsx59(FileItemListContainer, { role: "list", children: files.map((file, index) => /* @__PURE__ */ jsx59(
9656
9623
  FileItem_default,
9657
9624
  {
9658
9625
  fileName: file.file.name,
@@ -9674,7 +9641,7 @@ var FileInput_default = DxcFileInput;
9674
9641
 
9675
9642
  // src/grid/Grid.tsx
9676
9643
  import styled51 from "styled-components";
9677
- import { jsx as jsx59 } from "react/jsx-runtime";
9644
+ import { jsx as jsx60 } from "react/jsx-runtime";
9678
9645
  var Grid = styled51.div`
9679
9646
  display: grid;
9680
9647
  ${(props) => `
@@ -9701,7 +9668,7 @@ var GridItem = styled51.div`
9701
9668
  ${props.placeSelf ? typeof props.placeSelf === "string" ? `place-self: ${props.placeSelf};` : `align-self: ${props.placeSelf.alignSelf ?? ""}; justify-self: ${props.placeSelf.justifySelf ?? ""};` : ""}
9702
9669
  `}
9703
9670
  `;
9704
- var DxcGrid = (props) => /* @__PURE__ */ jsx59(Grid, { ...props });
9671
+ var DxcGrid = (props) => /* @__PURE__ */ jsx60(Grid, { ...props });
9705
9672
  DxcGrid.Item = GridItem;
9706
9673
  var Grid_default = DxcGrid;
9707
9674
 
@@ -9737,7 +9704,7 @@ var getHeadingWeight = (weight) => {
9737
9704
  };
9738
9705
 
9739
9706
  // src/heading/Heading.tsx
9740
- import { jsx as jsx60 } from "react/jsx-runtime";
9707
+ import { jsx as jsx61 } from "react/jsx-runtime";
9741
9708
  var HeadingContainer = styled52.div`
9742
9709
  margin: ${({ margin }) => margin && typeof margin !== "object" ? spaces[margin] : "0px"};
9743
9710
  margin-top: ${({ margin }) => margin && typeof margin === "object" && margin.top ? spaces[margin.top] : ""};
@@ -9753,12 +9720,12 @@ var Heading = styled52.h1`
9753
9720
  margin: 0;
9754
9721
  `;
9755
9722
  function DxcHeading({ as, level = 1, margin, text, weight = "default" }) {
9756
- return /* @__PURE__ */ jsx60(HeadingContainer, { margin, children: /* @__PURE__ */ jsx60(Heading, { as: as ?? `h${level}`, $level: level, $weight: weight, children: text }) });
9723
+ return /* @__PURE__ */ jsx61(HeadingContainer, { margin, children: /* @__PURE__ */ jsx61(Heading, { as: as ?? `h${level}`, $level: level, $weight: weight, children: text }) });
9757
9724
  }
9758
9725
 
9759
9726
  // src/image/Image.tsx
9760
9727
  import styled53 from "styled-components";
9761
- import { jsx as jsx61, jsxs as jsxs42 } from "react/jsx-runtime";
9728
+ import { jsx as jsx62, jsxs as jsxs43 } from "react/jsx-runtime";
9762
9729
  var Figure = styled53.figure`
9763
9730
  display: flex;
9764
9731
  flex-direction: column;
@@ -9773,9 +9740,9 @@ var CaptionContainer = styled53.figcaption`
9773
9740
  font-size: var(--typography-label-s);
9774
9741
  font-weight: var(--typography-label-regular);
9775
9742
  `;
9776
- var CaptionWrapper = ({ caption, children }) => caption != null ? /* @__PURE__ */ jsxs42(Figure, { children: [
9743
+ var CaptionWrapper = ({ caption, children }) => caption != null ? /* @__PURE__ */ jsxs43(Figure, { children: [
9777
9744
  children,
9778
- /* @__PURE__ */ jsx61(CaptionContainer, { children: caption })
9745
+ /* @__PURE__ */ jsx62(CaptionContainer, { children: caption })
9779
9746
  ] }) : children;
9780
9747
  function DxcImage({
9781
9748
  alt,
@@ -9791,7 +9758,7 @@ function DxcImage({
9791
9758
  srcSet,
9792
9759
  width
9793
9760
  }) {
9794
- return /* @__PURE__ */ jsx61(CaptionWrapper, { caption, children: /* @__PURE__ */ jsx61(
9761
+ return /* @__PURE__ */ jsx62(CaptionWrapper, { caption, children: /* @__PURE__ */ jsx62(
9795
9762
  "img",
9796
9763
  {
9797
9764
  alt,
@@ -9812,9 +9779,9 @@ function DxcImage({
9812
9779
  }
9813
9780
 
9814
9781
  // src/inset/Inset.tsx
9815
- import { jsx as jsx62 } from "react/jsx-runtime";
9782
+ import { jsx as jsx63 } from "react/jsx-runtime";
9816
9783
  function DxcInset({ bottom, children, horizontal, left, right, space, top, vertical }) {
9817
- return /* @__PURE__ */ jsx62(
9784
+ return /* @__PURE__ */ jsx63(
9818
9785
  DxcContainer,
9819
9786
  {
9820
9787
  padding: {
@@ -9831,7 +9798,7 @@ function DxcInset({ bottom, children, horizontal, left, right, space, top, verti
9831
9798
  // src/link/Link.tsx
9832
9799
  import { forwardRef as forwardRef9 } from "react";
9833
9800
  import styled54 from "styled-components";
9834
- import { jsx as jsx63, jsxs as jsxs43 } from "react/jsx-runtime";
9801
+ import { jsx as jsx64, jsxs as jsxs44 } from "react/jsx-runtime";
9835
9802
  var Link3 = styled54.a`
9836
9803
  all: unset;
9837
9804
  display: inline-flex;
@@ -9894,7 +9861,7 @@ var DxcLink = forwardRef9(
9894
9861
  onClick,
9895
9862
  tabIndex = 0,
9896
9863
  ...otherProps
9897
- }, ref) => /* @__PURE__ */ jsx63(
9864
+ }, ref) => /* @__PURE__ */ jsx64(
9898
9865
  Link3,
9899
9866
  {
9900
9867
  as: onClick && !href ? "button" : "a",
@@ -9907,9 +9874,9 @@ var DxcLink = forwardRef9(
9907
9874
  margin,
9908
9875
  ref,
9909
9876
  ...otherProps,
9910
- children: /* @__PURE__ */ jsxs43(LinkContent, { iconPosition, inheritColor, children: [
9877
+ children: /* @__PURE__ */ jsxs44(LinkContent, { iconPosition, inheritColor, children: [
9911
9878
  children,
9912
- icon && /* @__PURE__ */ jsx63(IconContainer6, { children: typeof icon === "string" ? /* @__PURE__ */ jsx63(DxcIcon, { icon }) : icon })
9879
+ icon && /* @__PURE__ */ jsx64(IconContainer6, { children: typeof icon === "string" ? /* @__PURE__ */ jsx64(DxcIcon, { icon }) : icon })
9913
9880
  ] })
9914
9881
  }
9915
9882
  )
@@ -9917,11 +9884,11 @@ var DxcLink = forwardRef9(
9917
9884
  var Link_default = DxcLink;
9918
9885
 
9919
9886
  // src/nav-tabs/NavTabs.tsx
9920
- import { Children as Children4, useMemo as useMemo14, useState as useState25 } from "react";
9887
+ import { Children as Children4, useMemo as useMemo13, useState as useState25 } from "react";
9921
9888
  import styled56 from "styled-components";
9922
9889
 
9923
9890
  // src/nav-tabs/Tab.tsx
9924
- import { useEffect as useEffect19, forwardRef as forwardRef10, useContext as useContext27, useRef as useRef14, useImperativeHandle } from "react";
9891
+ import { useEffect as useEffect19, forwardRef as forwardRef10, useContext as useContext26, useRef as useRef14, useImperativeHandle } from "react";
9925
9892
  import styled55 from "styled-components";
9926
9893
 
9927
9894
  // src/nav-tabs/NavTabsContext.tsx
@@ -9929,7 +9896,7 @@ import { createContext as createContext9 } from "react";
9929
9896
  var NavTabsContext_default = createContext9(null);
9930
9897
 
9931
9898
  // src/nav-tabs/Tab.tsx
9932
- import { jsx as jsx64, jsxs as jsxs44 } from "react/jsx-runtime";
9899
+ import { jsx as jsx65, jsxs as jsxs45 } from "react/jsx-runtime";
9933
9900
  var TabContainer = styled55.div`
9934
9901
  position: relative;
9935
9902
  display: flex;
@@ -9994,7 +9961,7 @@ var Underline = styled55.span`
9994
9961
  `;
9995
9962
  var Tab = forwardRef10(
9996
9963
  ({ href, active = false, icon, disabled = false, notificationNumber = false, children, ...otherProps }, ref) => {
9997
- const { iconPosition, tabIndex, focusedLabel } = useContext27(NavTabsContext_default) ?? {};
9964
+ const { iconPosition, tabIndex, focusedLabel } = useContext26(NavTabsContext_default) ?? {};
9998
9965
  const tabRef = useRef14();
9999
9966
  const innerRef = useRef14(null);
10000
9967
  useImperativeHandle(ref, () => innerRef.current, []);
@@ -10014,8 +9981,8 @@ var Tab = forwardRef10(
10014
9981
  break;
10015
9982
  }
10016
9983
  };
10017
- return /* @__PURE__ */ jsxs44(TabContainer, { children: [
10018
- /* @__PURE__ */ jsx64(DxcInset, { space: "var(--spacing-padding-xs)", children: /* @__PURE__ */ jsxs44(
9984
+ return /* @__PURE__ */ jsxs45(TabContainer, { children: [
9985
+ /* @__PURE__ */ jsx65(DxcInset, { space: "var(--spacing-padding-xs)", children: /* @__PURE__ */ jsxs45(
10019
9986
  TabLink,
10020
9987
  {
10021
9988
  href: !disabled ? href : void 0,
@@ -10035,10 +10002,10 @@ var Tab = forwardRef10(
10035
10002
  "aria-disabled": disabled,
10036
10003
  ...otherProps,
10037
10004
  children: [
10038
- icon && /* @__PURE__ */ jsx64(IconContainer7, { disabled, children: typeof icon === "string" ? /* @__PURE__ */ jsx64(DxcIcon, { icon }) : icon }),
10039
- /* @__PURE__ */ jsxs44(Flex_default, { alignItems: "center", gap: "var(--spacing-gap-s)", children: [
10040
- /* @__PURE__ */ jsx64(Label6, { disabled, children }),
10041
- notificationNumber && !disabled && /* @__PURE__ */ jsx64(
10005
+ icon && /* @__PURE__ */ jsx65(IconContainer7, { disabled, children: typeof icon === "string" ? /* @__PURE__ */ jsx65(DxcIcon, { icon }) : icon }),
10006
+ /* @__PURE__ */ jsxs45(Flex_default, { alignItems: "center", gap: "var(--spacing-gap-s)", children: [
10007
+ /* @__PURE__ */ jsx65(Label6, { disabled, children }),
10008
+ notificationNumber && !disabled && /* @__PURE__ */ jsx65(
10042
10009
  Badge_default,
10043
10010
  {
10044
10011
  mode: "notification",
@@ -10050,7 +10017,7 @@ var Tab = forwardRef10(
10050
10017
  ]
10051
10018
  }
10052
10019
  ) }),
10053
- /* @__PURE__ */ jsx64(Underline, { active })
10020
+ /* @__PURE__ */ jsx65(Underline, { active })
10054
10021
  ] });
10055
10022
  }
10056
10023
  );
@@ -10091,7 +10058,7 @@ var getNextTabIndex = (array, initialIndex) => {
10091
10058
  };
10092
10059
 
10093
10060
  // src/nav-tabs/NavTabs.tsx
10094
- import { jsx as jsx65, jsxs as jsxs45 } from "react/jsx-runtime";
10061
+ import { jsx as jsx66, jsxs as jsxs46 } from "react/jsx-runtime";
10095
10062
  var NavTabsContainer = styled56.div`
10096
10063
  position: relative;
10097
10064
  display: flex;
@@ -10110,7 +10077,7 @@ var DxcNavTabs = ({ iconPosition = "left", tabIndex = 0, children }) => {
10110
10077
  const childArray = Children4.toArray(children).filter(
10111
10078
  (child) => typeof child === "object" && "props" in child
10112
10079
  );
10113
- const contextValue = useMemo14(
10080
+ const contextValue = useMemo13(
10114
10081
  () => ({
10115
10082
  iconPosition,
10116
10083
  tabIndex,
@@ -10135,18 +10102,18 @@ var DxcNavTabs = ({ iconPosition = "left", tabIndex = 0, children }) => {
10135
10102
  break;
10136
10103
  }
10137
10104
  };
10138
- return /* @__PURE__ */ jsxs45(NavTabsContainer, { onKeyDown: handleOnKeyDown, role: "tablist", "aria-label": "Navigation tabs", children: [
10139
- /* @__PURE__ */ jsx65(Underline2, {}),
10140
- /* @__PURE__ */ jsx65(NavTabsContext_default.Provider, { value: contextValue, children })
10105
+ return /* @__PURE__ */ jsxs46(NavTabsContainer, { onKeyDown: handleOnKeyDown, role: "tablist", "aria-label": "Navigation tabs", children: [
10106
+ /* @__PURE__ */ jsx66(Underline2, {}),
10107
+ /* @__PURE__ */ jsx66(NavTabsContext_default.Provider, { value: contextValue, children })
10141
10108
  ] });
10142
10109
  };
10143
10110
  DxcNavTabs.Tab = Tab_default;
10144
10111
  var NavTabs_default = DxcNavTabs;
10145
10112
 
10146
10113
  // src/number-input/NumberInput.tsx
10147
- import { forwardRef as forwardRef11, useEffect as useEffect20, useMemo as useMemo15, useRef as useRef15 } from "react";
10114
+ import { forwardRef as forwardRef11, useEffect as useEffect20, useMemo as useMemo14, useRef as useRef15 } from "react";
10148
10115
  import styled57 from "styled-components";
10149
- import { jsx as jsx66 } from "react/jsx-runtime";
10116
+ import { jsx as jsx67 } from "react/jsx-runtime";
10150
10117
  var NumberInputContainer = styled57.div`
10151
10118
  ${({ size }) => size === "fillParent" && "width: 100%;"}
10152
10119
 
@@ -10189,7 +10156,7 @@ var DxcNumberInput = forwardRef11(
10189
10156
  value
10190
10157
  }, ref) => {
10191
10158
  const numberInputRef = useRef15(null);
10192
- const contextValue = useMemo15(
10159
+ const contextValue = useMemo14(
10193
10160
  () => ({
10194
10161
  maxNumber: max,
10195
10162
  minNumber: min,
@@ -10209,7 +10176,7 @@ var DxcNumberInput = forwardRef11(
10209
10176
  input?.removeEventListener("wheel", preventDefault);
10210
10177
  };
10211
10178
  }, []);
10212
- return /* @__PURE__ */ jsx66(NumberInputContext_default.Provider, { value: contextValue, children: /* @__PURE__ */ jsx66(NumberInputContainer, { ref: numberInputRef, size, children: /* @__PURE__ */ jsx66(
10179
+ return /* @__PURE__ */ jsx67(NumberInputContext_default.Provider, { value: contextValue, children: /* @__PURE__ */ jsx67(NumberInputContainer, { ref: numberInputRef, size, children: /* @__PURE__ */ jsx67(
10213
10180
  TextInput_default,
10214
10181
  {
10215
10182
  label,
@@ -10239,9 +10206,9 @@ var DxcNumberInput = forwardRef11(
10239
10206
  var NumberInput_default = DxcNumberInput;
10240
10207
 
10241
10208
  // src/paragraph/Paragraph.tsx
10242
- import { useContext as useContext28 } from "react";
10243
- import styled58, { ThemeProvider as ThemeProvider8 } from "styled-components";
10244
- import { jsx as jsx67 } from "react/jsx-runtime";
10209
+ import { useContext as useContext27 } from "react";
10210
+ import styled58, { ThemeProvider as ThemeProvider6 } from "styled-components";
10211
+ import { jsx as jsx68 } from "react/jsx-runtime";
10245
10212
  var Paragraph = styled58.p`
10246
10213
  display: ${(props) => props.theme.display};
10247
10214
  font-family: "Open Sans", sans-serif;
@@ -10258,14 +10225,14 @@ var Paragraph = styled58.p`
10258
10225
  margin: 0;
10259
10226
  `;
10260
10227
  function DxcParagraph({ children }) {
10261
- const colorsTheme = useContext28(HalstackContext);
10262
- return /* @__PURE__ */ jsx67(ThemeProvider8, { theme: colorsTheme.paragraph, children: /* @__PURE__ */ jsx67(Paragraph, { children }) });
10228
+ const colorsTheme = useContext27(HalstackContext);
10229
+ return /* @__PURE__ */ jsx68(ThemeProvider6, { theme: colorsTheme.paragraph, children: /* @__PURE__ */ jsx68(Paragraph, { children }) });
10263
10230
  }
10264
10231
 
10265
10232
  // src/password-input/PasswordInput.tsx
10266
- import { forwardRef as forwardRef12, useContext as useContext29, useEffect as useEffect21, useRef as useRef16, useState as useState26 } from "react";
10233
+ import { forwardRef as forwardRef12, useContext as useContext28, useEffect as useEffect21, useRef as useRef16, useState as useState26 } from "react";
10267
10234
  import styled59 from "styled-components";
10268
- import { jsx as jsx68 } from "react/jsx-runtime";
10235
+ import { jsx as jsx69 } from "react/jsx-runtime";
10269
10236
  var setInputType = (type, element) => {
10270
10237
  element?.getElementsByTagName("input")[0]?.setAttribute("type", type);
10271
10238
  };
@@ -10300,7 +10267,7 @@ var DxcPasswordInput = forwardRef12(
10300
10267
  }, ref) => {
10301
10268
  const [isPasswordVisible, setIsPasswordVisible] = useState26(false);
10302
10269
  const inputRef = useRef16(null);
10303
- const { passwordInput } = useContext29(HalstackLanguageContext);
10270
+ const { passwordInput } = useContext28(HalstackLanguageContext);
10304
10271
  useEffect21(() => {
10305
10272
  (() => {
10306
10273
  if (isPasswordVisible) {
@@ -10316,7 +10283,7 @@ var DxcPasswordInput = forwardRef12(
10316
10283
  }
10317
10284
  })();
10318
10285
  }, [isPasswordVisible, passwordInput]);
10319
- return /* @__PURE__ */ jsx68(PasswordInput, { ref, size, children: /* @__PURE__ */ jsx68(
10286
+ return /* @__PURE__ */ jsx69(PasswordInput, { ref, size, children: /* @__PURE__ */ jsx69(
10320
10287
  TextInput_default,
10321
10288
  {
10322
10289
  label,
@@ -10370,7 +10337,7 @@ var auxTextStyles = css4`
10370
10337
  `;
10371
10338
 
10372
10339
  // src/progress-bar/ProgressBar.tsx
10373
- import { jsx as jsx69, jsxs as jsxs46 } from "react/jsx-runtime";
10340
+ import { jsx as jsx70, jsxs as jsxs47 } from "react/jsx-runtime";
10374
10341
  var ProgressBarContainer = styled60.div`
10375
10342
  display: flex;
10376
10343
  flex-wrap: wrap;
@@ -10484,17 +10451,17 @@ var DxcProgressBar = ({
10484
10451
  useEffect22(() => {
10485
10452
  if (value != null) setInnerValue(value < 0 ? 0 : value > 100 ? 100 : value);
10486
10453
  }, [value]);
10487
- return /* @__PURE__ */ jsxs46(ProgressBarContainer, { overlay, children: [
10488
- overlay && /* @__PURE__ */ jsx69(Overlay4, {}),
10489
- /* @__PURE__ */ jsxs46(MainContainer3, { overlay, margin, children: [
10490
- /* @__PURE__ */ jsxs46(Flex_default, { justifyContent: "space-between", children: [
10491
- label && /* @__PURE__ */ jsx69(ProgressBarLabel, { id: labelId, overlay, children: label }),
10492
- innerValue != null && showValue && /* @__PURE__ */ jsxs46(ProgressBarProgress, { overlay, children: [
10454
+ return /* @__PURE__ */ jsxs47(ProgressBarContainer, { overlay, children: [
10455
+ overlay && /* @__PURE__ */ jsx70(Overlay4, {}),
10456
+ /* @__PURE__ */ jsxs47(MainContainer3, { overlay, margin, children: [
10457
+ /* @__PURE__ */ jsxs47(Flex_default, { justifyContent: "space-between", children: [
10458
+ label && /* @__PURE__ */ jsx70(ProgressBarLabel, { id: labelId, overlay, children: label }),
10459
+ innerValue != null && showValue && /* @__PURE__ */ jsxs47(ProgressBarProgress, { overlay, children: [
10493
10460
  innerValue,
10494
10461
  " %"
10495
10462
  ] })
10496
10463
  ] }),
10497
- /* @__PURE__ */ jsx69(
10464
+ /* @__PURE__ */ jsx70(
10498
10465
  LinearProgress,
10499
10466
  {
10500
10467
  "aria-label": label ? void 0 : ariaLabel,
@@ -10505,7 +10472,7 @@ var DxcProgressBar = ({
10505
10472
  helperText,
10506
10473
  role: "progressbar",
10507
10474
  overlay,
10508
- children: /* @__PURE__ */ jsx69(
10475
+ children: /* @__PURE__ */ jsx70(
10509
10476
  LinearProgressBar,
10510
10477
  {
10511
10478
  overlay,
@@ -10515,17 +10482,17 @@ var DxcProgressBar = ({
10515
10482
  )
10516
10483
  }
10517
10484
  ),
10518
- helperText && /* @__PURE__ */ jsx69(HelperText3, { overlay, children: helperText })
10485
+ helperText && /* @__PURE__ */ jsx70(HelperText3, { overlay, children: helperText })
10519
10486
  ] })
10520
10487
  ] });
10521
10488
  };
10522
10489
  var ProgressBar_default = DxcProgressBar;
10523
10490
 
10524
10491
  // src/quick-nav/QuickNav.tsx
10525
- import { useContext as useContext30 } from "react";
10492
+ import { useContext as useContext29 } from "react";
10526
10493
  import slugify from "slugify";
10527
10494
  import styled61 from "styled-components";
10528
- import { jsx as jsx70, jsxs as jsxs47 } from "react/jsx-runtime";
10495
+ import { jsx as jsx71, jsxs as jsxs48 } from "react/jsx-runtime";
10529
10496
  var QuickNavContainer = styled61.div`
10530
10497
  display: flex;
10531
10498
  flex-direction: column;
@@ -10577,18 +10544,18 @@ var Link4 = styled61.a`
10577
10544
  }
10578
10545
  `;
10579
10546
  function DxcQuickNav({ links, title }) {
10580
- const translatedLabels = useContext30(HalstackLanguageContext);
10581
- return /* @__PURE__ */ jsxs47(QuickNavContainer, { children: [
10582
- /* @__PURE__ */ jsx70(DxcHeading, { level: 5, text: title ?? translatedLabels.quickNav.contentTitle }),
10583
- /* @__PURE__ */ jsx70(ListColumn, { children: links.map((link) => /* @__PURE__ */ jsxs47("li", { children: [
10584
- /* @__PURE__ */ jsx70(Link4, { href: `#${slugify(link.label, { lower: true })}`, children: /* @__PURE__ */ jsx70("span", { children: link.label }) }),
10585
- link.links?.length && /* @__PURE__ */ jsx70(ListSecondColumn, { children: link.links?.map((sublink) => /* @__PURE__ */ jsx70("li", { children: /* @__PURE__ */ jsx70(
10547
+ const translatedLabels = useContext29(HalstackLanguageContext);
10548
+ return /* @__PURE__ */ jsxs48(QuickNavContainer, { children: [
10549
+ /* @__PURE__ */ jsx71(DxcHeading, { level: 5, text: title ?? translatedLabels.quickNav.contentTitle }),
10550
+ /* @__PURE__ */ jsx71(ListColumn, { children: links.map((link) => /* @__PURE__ */ jsxs48("li", { children: [
10551
+ /* @__PURE__ */ jsx71(Link4, { href: `#${slugify(link.label, { lower: true })}`, children: /* @__PURE__ */ jsx71("span", { children: link.label }) }),
10552
+ link.links?.length && /* @__PURE__ */ jsx71(ListSecondColumn, { children: link.links?.map((sublink) => /* @__PURE__ */ jsx71("li", { children: /* @__PURE__ */ jsx71(
10586
10553
  Link4,
10587
10554
  {
10588
10555
  href: `#${slugify(link?.label, { lower: true })}-${slugify(sublink?.label, {
10589
10556
  lower: true
10590
10557
  })}`,
10591
- children: /* @__PURE__ */ jsx70("span", { children: sublink.label })
10558
+ children: /* @__PURE__ */ jsx71("span", { children: sublink.label })
10592
10559
  }
10593
10560
  ) }, sublink.label)) })
10594
10561
  ] }, link.label)) })
@@ -10596,7 +10563,7 @@ function DxcQuickNav({ links, title }) {
10596
10563
  }
10597
10564
 
10598
10565
  // src/radio-group/RadioGroup.tsx
10599
- import { forwardRef as forwardRef13, useCallback as useCallback9, useContext as useContext31, useId as useId16, useMemo as useMemo16, useState as useState29 } from "react";
10566
+ import { forwardRef as forwardRef13, useCallback as useCallback9, useContext as useContext30, useId as useId16, useMemo as useMemo15, useState as useState29 } from "react";
10600
10567
  import styled63 from "styled-components";
10601
10568
 
10602
10569
  // src/radio-group/RadioInput.tsx
@@ -10604,7 +10571,7 @@ import { memo as memo12, useEffect as useEffect23, useId as useId15, useRef as u
10604
10571
  import styled62 from "styled-components";
10605
10572
 
10606
10573
  // src/radio-group/utils.tsx
10607
- import { jsx as jsx71, jsxs as jsxs48 } from "react/jsx-runtime";
10574
+ import { jsx as jsx72, jsxs as jsxs49 } from "react/jsx-runtime";
10608
10575
  function getRadioInputStyles(disabled, error, readOnly, status) {
10609
10576
  switch (true) {
10610
10577
  case disabled:
@@ -10618,15 +10585,15 @@ function getRadioInputStyles(disabled, error, readOnly, status) {
10618
10585
  }
10619
10586
  }
10620
10587
  var icons2 = {
10621
- checked: /* @__PURE__ */ jsxs48("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
10622
- /* @__PURE__ */ jsx71(
10588
+ checked: /* @__PURE__ */ jsxs49("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
10589
+ /* @__PURE__ */ jsx72(
10623
10590
  "path",
10624
10591
  {
10625
10592
  d: "M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM5.00194 12C5.00194 15.8649 8.13508 18.9981 12 18.9981C15.8649 18.9981 18.9981 15.8649 18.9981 12C18.9981 8.13508 15.8649 5.00194 12 5.00194C8.13508 5.00194 5.00194 8.13508 5.00194 12Z",
10626
10593
  fill: "currentColor"
10627
10594
  }
10628
10595
  ),
10629
- /* @__PURE__ */ jsx71(
10596
+ /* @__PURE__ */ jsx72(
10630
10597
  "path",
10631
10598
  {
10632
10599
  d: "M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z",
@@ -10634,7 +10601,7 @@ var icons2 = {
10634
10601
  }
10635
10602
  )
10636
10603
  ] }),
10637
- unchecked: /* @__PURE__ */ jsx71("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx71(
10604
+ unchecked: /* @__PURE__ */ jsx72("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx72(
10638
10605
  "path",
10639
10606
  {
10640
10607
  d: "M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM5.00194 12C5.00194 15.8649 8.13508 18.9981 12 18.9981C15.8649 18.9981 18.9981 15.8649 18.9981 12C18.9981 8.13508 15.8649 5.00194 12 5.00194C8.13508 5.00194 5.00194 8.13508 5.00194 12Z",
@@ -10644,7 +10611,7 @@ var icons2 = {
10644
10611
  };
10645
10612
 
10646
10613
  // src/radio-group/RadioInput.tsx
10647
- import { jsx as jsx72, jsxs as jsxs49 } from "react/jsx-runtime";
10614
+ import { jsx as jsx73, jsxs as jsxs50 } from "react/jsx-runtime";
10648
10615
  var Label7 = styled62.span`
10649
10616
  color: ${({ disabled }) => disabled ? "var(--color-fg-neutral-medium)" : "var(--color-fg-neutral-dark)"};
10650
10617
  font-family: var(--typography-font-family);
@@ -10693,7 +10660,7 @@ var RadioInput = ({ checked, disabled, error, focused, label, onClick, readOnly,
10693
10660
  onClick();
10694
10661
  document.activeElement !== ref.current && ref.current?.focus();
10695
10662
  };
10696
- return /* @__PURE__ */ jsxs49(
10663
+ return /* @__PURE__ */ jsxs50(
10697
10664
  RadioInputContainer,
10698
10665
  {
10699
10666
  disabled,
@@ -10701,7 +10668,7 @@ var RadioInput = ({ checked, disabled, error, focused, label, onClick, readOnly,
10701
10668
  onClick: disabled ? void 0 : handleOnClick,
10702
10669
  readOnly,
10703
10670
  children: [
10704
- /* @__PURE__ */ jsx72(
10671
+ /* @__PURE__ */ jsx73(
10705
10672
  RadioButton,
10706
10673
  {
10707
10674
  "aria-checked": checked,
@@ -10716,7 +10683,7 @@ var RadioInput = ({ checked, disabled, error, focused, label, onClick, readOnly,
10716
10683
  children: checked ? icons2.checked : icons2.unchecked
10717
10684
  }
10718
10685
  ),
10719
- /* @__PURE__ */ jsx72(Label7, { disabled, id: radioLabelId, children: label })
10686
+ /* @__PURE__ */ jsx73(Label7, { disabled, id: radioLabelId, children: label })
10720
10687
  ]
10721
10688
  }
10722
10689
  );
@@ -10724,7 +10691,7 @@ var RadioInput = ({ checked, disabled, error, focused, label, onClick, readOnly,
10724
10691
  var RadioInput_default = memo12(RadioInput);
10725
10692
 
10726
10693
  // src/radio-group/RadioGroup.tsx
10727
- import { jsx as jsx73, jsxs as jsxs50 } from "react/jsx-runtime";
10694
+ import { jsx as jsx74, jsxs as jsxs51 } from "react/jsx-runtime";
10728
10695
  var RadioGroupContainer = styled63.div`
10729
10696
  box-sizing: border-box;
10730
10697
  display: inline-flex;
@@ -10759,8 +10726,8 @@ var DxcRadioGroup = forwardRef13(
10759
10726
  const id = `radio-group-${useId16()}`;
10760
10727
  const labelId = `label-${id}`;
10761
10728
  const errorId = `error-${id}`;
10762
- const translatedLabels = useContext31(HalstackLanguageContext);
10763
- const innerOptions = useMemo16(
10729
+ const translatedLabels = useContext30(HalstackLanguageContext);
10730
+ const innerOptions = useMemo15(
10764
10731
  () => optional ? [
10765
10732
  ...options,
10766
10733
  {
@@ -10846,13 +10813,13 @@ var DxcRadioGroup = forwardRef13(
10846
10813
  break;
10847
10814
  }
10848
10815
  };
10849
- return /* @__PURE__ */ jsxs50(RadioGroupContainer, { ref, children: [
10850
- label && /* @__PURE__ */ jsxs50(Label_default, { disabled, hasMargin: !helperText, id: labelId, children: [
10816
+ return /* @__PURE__ */ jsxs51(RadioGroupContainer, { ref, children: [
10817
+ label && /* @__PURE__ */ jsxs51(Label_default, { disabled, hasMargin: !helperText, id: labelId, children: [
10851
10818
  label,
10852
- optional && /* @__PURE__ */ jsx73("span", { children: ` ${translatedLabels.formFields.optionalLabel}` })
10819
+ optional && /* @__PURE__ */ jsx74("span", { children: ` ${translatedLabels.formFields.optionalLabel}` })
10853
10820
  ] }),
10854
- helperText && /* @__PURE__ */ jsx73(HelperText_default, { disabled, hasMargin: true, children: helperText }),
10855
- /* @__PURE__ */ jsxs50(
10821
+ helperText && /* @__PURE__ */ jsx74(HelperText_default, { disabled, hasMargin: true, children: helperText }),
10822
+ /* @__PURE__ */ jsxs51(
10856
10823
  RadioGroup,
10857
10824
  {
10858
10825
  "aria-disabled": disabled,
@@ -10869,8 +10836,8 @@ var DxcRadioGroup = forwardRef13(
10869
10836
  role: "radiogroup",
10870
10837
  stacking,
10871
10838
  children: [
10872
- /* @__PURE__ */ jsx73("input", { disabled, name, readOnly: true, type: "hidden", value: value ?? innerValue ?? "" }),
10873
- innerOptions.map((option, index) => /* @__PURE__ */ jsx73(
10839
+ /* @__PURE__ */ jsx74("input", { disabled, name, readOnly: true, type: "hidden", value: value ?? innerValue ?? "" }),
10840
+ innerOptions.map((option, index) => /* @__PURE__ */ jsx74(
10874
10841
  RadioInput_default,
10875
10842
  {
10876
10843
  checked: (value ?? innerValue) === option.value,
@@ -10890,14 +10857,14 @@ var DxcRadioGroup = forwardRef13(
10890
10857
  ]
10891
10858
  }
10892
10859
  ),
10893
- !disabled && typeof error === "string" && /* @__PURE__ */ jsx73(ErrorMessage_default, { error, id: errorId })
10860
+ !disabled && typeof error === "string" && /* @__PURE__ */ jsx74(ErrorMessage_default, { error, id: errorId })
10894
10861
  ] });
10895
10862
  }
10896
10863
  );
10897
10864
  var RadioGroup_default = DxcRadioGroup;
10898
10865
 
10899
10866
  // src/resultset-table/ResultsetTable.tsx
10900
- import { useEffect as useEffect24, useMemo as useMemo17, useRef as useRef18, useState as useState30 } from "react";
10867
+ import { useEffect as useEffect24, useMemo as useMemo16, useRef as useRef18, useState as useState30 } from "react";
10901
10868
  import styled64 from "styled-components";
10902
10869
 
10903
10870
  // src/resultset-table/utils.ts
@@ -10929,7 +10896,7 @@ var sortArray = (index, order, resultset) => resultset.slice().sort((element1, e
10929
10896
  });
10930
10897
 
10931
10898
  // src/resultset-table/ResultsetTable.tsx
10932
- import { jsx as jsx74, jsxs as jsxs51 } from "react/jsx-runtime";
10899
+ import { jsx as jsx75, jsxs as jsxs52 } from "react/jsx-runtime";
10933
10900
  var ResultsetTableContainer = styled64.div`
10934
10901
  width: ${({ margin }) => calculateWidth10(margin)};
10935
10902
  margin: ${({ margin }) => margin && typeof margin !== "object" ? spaces[margin] : "0px"};
@@ -10967,17 +10934,17 @@ var DxcResultsetTable = ({
10967
10934
  const [sortColumnIndex, changeSortColumnIndex] = useState30(-1);
10968
10935
  const [sortOrder, changeSortOrder] = useState30("ascending");
10969
10936
  const prevRowCountRef = useRef18(rows.length);
10970
- const rowsWithIds = useMemo17(() => assignIdsToRows(rows), [rows]);
10971
- const minItemsPerPageIndex = useMemo17(() => getMinItemsPerPageIndex2(page, itemsPerPage, page), [itemsPerPage, page]);
10972
- const maxItemsPerPageIndex = useMemo17(
10937
+ const rowsWithIds = useMemo16(() => assignIdsToRows(rows), [rows]);
10938
+ const minItemsPerPageIndex = useMemo16(() => getMinItemsPerPageIndex2(page, itemsPerPage, page), [itemsPerPage, page]);
10939
+ const maxItemsPerPageIndex = useMemo16(
10973
10940
  () => getMaxItemsPerPageIndex2(minItemsPerPageIndex, itemsPerPage, rows, page),
10974
10941
  [itemsPerPage, minItemsPerPageIndex, page, rows]
10975
10942
  );
10976
- const sortedResultset = useMemo17(
10943
+ const sortedResultset = useMemo16(
10977
10944
  () => sortColumnIndex !== -1 ? sortArray(sortColumnIndex, sortOrder, rowsWithIds) : rowsWithIds,
10978
10945
  [sortColumnIndex, sortOrder, rowsWithIds]
10979
10946
  );
10980
- const filteredResultset = useMemo17(
10947
+ const filteredResultset = useMemo16(
10981
10948
  () => sortedResultset && sortedResultset.slice(minItemsPerPageIndex, maxItemsPerPageIndex + 1),
10982
10949
  [sortedResultset, minItemsPerPageIndex, maxItemsPerPageIndex]
10983
10950
  );
@@ -11005,13 +10972,13 @@ var DxcResultsetTable = ({
11005
10972
  prevRowCountRef.current = rows.length;
11006
10973
  }
11007
10974
  }, [hidePaginator, page, rows]);
11008
- return /* @__PURE__ */ jsxs51(ResultsetTableContainer, { margin, children: [
11009
- /* @__PURE__ */ jsxs51(Table_default, { mode, children: [
11010
- /* @__PURE__ */ jsx74("thead", { children: /* @__PURE__ */ jsx74("tr", { children: columns.map((column, index) => /* @__PURE__ */ jsx74(
10975
+ return /* @__PURE__ */ jsxs52(ResultsetTableContainer, { margin, children: [
10976
+ /* @__PURE__ */ jsxs52(Table_default, { mode, children: [
10977
+ /* @__PURE__ */ jsx75("thead", { children: /* @__PURE__ */ jsx75("tr", { children: columns.map((column, index) => /* @__PURE__ */ jsx75(
11011
10978
  "th",
11012
10979
  {
11013
10980
  "aria-sort": column.isSortable ? sortColumnIndex === index ? sortOrder : "none" : void 0,
11014
- children: /* @__PURE__ */ jsxs51(
10981
+ children: /* @__PURE__ */ jsxs52(
11015
10982
  SortingHeader,
11016
10983
  {
11017
10984
  "aria-label": column.isSortable ? "Sort column" : void 0,
@@ -11025,8 +10992,8 @@ var DxcResultsetTable = ({
11025
10992
  role: column.isSortable ? "button" : void 0,
11026
10993
  tabIndex: column.isSortable ? tabIndex : -1,
11027
10994
  children: [
11028
- /* @__PURE__ */ jsx74("span", { children: column.displayValue }),
11029
- column.isSortable && /* @__PURE__ */ jsx74(
10995
+ /* @__PURE__ */ jsx75("span", { children: column.displayValue }),
10996
+ column.isSortable && /* @__PURE__ */ jsx75(
11030
10997
  DxcIcon,
11031
10998
  {
11032
10999
  icon: sortColumnIndex === index ? sortOrder === "ascending" ? "arrow_upward" : "arrow_downward" : "unfold_more"
@@ -11038,9 +11005,9 @@ var DxcResultsetTable = ({
11038
11005
  },
11039
11006
  `tableHeader_${index}`
11040
11007
  )) }) }),
11041
- /* @__PURE__ */ jsx74("tbody", { children: filteredResultset.map((row) => /* @__PURE__ */ jsx74("tr", { children: row.cells.map((cellContent, cellIndex) => /* @__PURE__ */ jsx74("td", { children: cellContent.displayValue }, `resultSetTableCellContent_${cellIndex}`)) }, `resultSetTableCell_${row.id}`)) })
11008
+ /* @__PURE__ */ jsx75("tbody", { children: filteredResultset.map((row) => /* @__PURE__ */ jsx75("tr", { children: row.cells.map((cellContent, cellIndex) => /* @__PURE__ */ jsx75("td", { children: cellContent.displayValue }, `resultSetTableCellContent_${cellIndex}`)) }, `resultSetTableCell_${row.id}`)) })
11042
11009
  ] }),
11043
- !hidePaginator && rows.length > itemsPerPage && /* @__PURE__ */ jsx74(
11010
+ !hidePaginator && rows.length > itemsPerPage && /* @__PURE__ */ jsx75(
11044
11011
  Paginator_default,
11045
11012
  {
11046
11013
  currentPage: page,
@@ -11059,7 +11026,7 @@ DxcResultsetTable.ActionsCell = DxcActionsCell;
11059
11026
  var ResultsetTable_default = DxcResultsetTable;
11060
11027
 
11061
11028
  // src/slider/Slider.tsx
11062
- import { forwardRef as forwardRef14, useId as useId17, useMemo as useMemo18, useState as useState31 } from "react";
11029
+ import { forwardRef as forwardRef14, useId as useId17, useMemo as useMemo17, useState as useState31 } from "react";
11063
11030
  import styled65, { css as css5 } from "styled-components";
11064
11031
 
11065
11032
  // src/slider/utils.ts
@@ -11094,7 +11061,7 @@ var roundUp = (target, step, min, max) => {
11094
11061
  };
11095
11062
 
11096
11063
  // src/slider/Slider.tsx
11097
- import { jsx as jsx75, jsxs as jsxs52 } from "react/jsx-runtime";
11064
+ import { jsx as jsx76, jsxs as jsxs53 } from "react/jsx-runtime";
11098
11065
  var SliderContainer = styled65.div`
11099
11066
  display: flex;
11100
11067
  flex-direction: column;
@@ -11226,12 +11193,12 @@ var DxcSlider = forwardRef14(
11226
11193
  const labelId = `label-${useId17()}`;
11227
11194
  const [innerValue, setInnerValue] = useState31(defaultValue);
11228
11195
  const [inputValue, setInputValue] = useState31((value ?? defaultValue).toString());
11229
- const roundedUpValue = useMemo18(
11196
+ const roundedUpValue = useMemo17(
11230
11197
  () => roundUp(value ?? innerValue, step, minValue, maxValue),
11231
11198
  [innerValue, maxValue, minValue, step, value]
11232
11199
  );
11233
- const minLabel = useMemo18(() => labelFormatCallback?.(minValue) ?? minValue, [labelFormatCallback, minValue]);
11234
- const maxLabel = useMemo18(() => labelFormatCallback?.(maxValue) ?? maxValue, [labelFormatCallback, maxValue]);
11200
+ const minLabel = useMemo17(() => labelFormatCallback?.(minValue) ?? minValue, [labelFormatCallback, minValue]);
11201
+ const maxLabel = useMemo17(() => labelFormatCallback?.(maxValue) ?? maxValue, [labelFormatCallback, maxValue]);
11235
11202
  const changeValue = (newValue) => {
11236
11203
  if (showInput) setInputValue(newValue);
11237
11204
  const numberValue = Number(newValue);
@@ -11254,14 +11221,14 @@ var DxcSlider = forwardRef14(
11254
11221
  else if (textInputIntegerValue > maxValue) changeValue(maxValue.toString());
11255
11222
  else changeValue(roundUp(textInputIntegerValue, step, minValue, maxValue).toString());
11256
11223
  };
11257
- return /* @__PURE__ */ jsxs52(SliderContainer, { margin, size, ref, children: [
11258
- label && /* @__PURE__ */ jsx75(Label_default, { id: labelId, disabled, children: label }),
11259
- helperText && /* @__PURE__ */ jsx75(HelperText_default, { disabled, children: helperText }),
11260
- /* @__PURE__ */ jsxs52(MainContainer4, { showInput, children: [
11261
- /* @__PURE__ */ jsxs52(LimitsValueGrid, { showLimitsValues, children: [
11262
- showLimitsValues && /* @__PURE__ */ jsx75(LimitLabel, { disabled, children: minLabel }),
11263
- /* @__PURE__ */ jsxs52(SliderInputContainer, { children: [
11264
- /* @__PURE__ */ jsx75(
11224
+ return /* @__PURE__ */ jsxs53(SliderContainer, { margin, size, ref, children: [
11225
+ label && /* @__PURE__ */ jsx76(Label_default, { id: labelId, disabled, children: label }),
11226
+ helperText && /* @__PURE__ */ jsx76(HelperText_default, { disabled, children: helperText }),
11227
+ /* @__PURE__ */ jsxs53(MainContainer4, { showInput, children: [
11228
+ /* @__PURE__ */ jsxs53(LimitsValueGrid, { showLimitsValues, children: [
11229
+ showLimitsValues && /* @__PURE__ */ jsx76(LimitLabel, { disabled, children: minLabel }),
11230
+ /* @__PURE__ */ jsxs53(SliderInputContainer, { children: [
11231
+ /* @__PURE__ */ jsx76(
11265
11232
  SliderInput,
11266
11233
  {
11267
11234
  "aria-label": label ? void 0 : ariaLabel,
@@ -11281,9 +11248,9 @@ var DxcSlider = forwardRef14(
11281
11248
  value: roundedUpValue
11282
11249
  }
11283
11250
  ),
11284
- marks && /* @__PURE__ */ jsx75(TicksContainer, { children: Array.from({ length: Math.floor((maxValue - minValue) / step) + 1 }, (_, index) => {
11251
+ marks && /* @__PURE__ */ jsx76(TicksContainer, { children: Array.from({ length: Math.floor((maxValue - minValue) / step) + 1 }, (_, index) => {
11285
11252
  const tick = minValue + index * step;
11286
- return /* @__PURE__ */ jsx75(
11253
+ return /* @__PURE__ */ jsx76(
11287
11254
  Tick,
11288
11255
  {
11289
11256
  currentTick: roundedUpValue === stepPrecision(tick, step),
@@ -11294,9 +11261,9 @@ var DxcSlider = forwardRef14(
11294
11261
  );
11295
11262
  }) })
11296
11263
  ] }),
11297
- showLimitsValues && /* @__PURE__ */ jsx75(LimitLabel, { disabled, children: maxLabel })
11264
+ showLimitsValues && /* @__PURE__ */ jsx76(LimitLabel, { disabled, children: maxLabel })
11298
11265
  ] }),
11299
- showInput && /* @__PURE__ */ jsx75(
11266
+ showInput && /* @__PURE__ */ jsx76(
11300
11267
  NumberInput_default,
11301
11268
  {
11302
11269
  disabled,
@@ -11316,9 +11283,9 @@ var DxcSlider = forwardRef14(
11316
11283
  var Slider_default = DxcSlider;
11317
11284
 
11318
11285
  // src/spinner/Spinner.tsx
11319
- import { useId as useId18, useMemo as useMemo19, useState as useState32 } from "react";
11286
+ import { useId as useId18, useMemo as useMemo18, useState as useState32 } from "react";
11320
11287
  import styled66 from "styled-components";
11321
- import { jsx as jsx76, jsxs as jsxs53 } from "react/jsx-runtime";
11288
+ import { jsx as jsx77, jsxs as jsxs54 } from "react/jsx-runtime";
11322
11289
  var SpinnerContainer = styled66.div`
11323
11290
  ${({ mode }) => mode === "overlay" && `
11324
11291
  position: fixed;
@@ -11459,15 +11426,15 @@ var DxcSpinner = ({
11459
11426
  value
11460
11427
  }) => {
11461
11428
  const labelId = useId18();
11462
- const determined = useMemo19(() => value != null && value >= 0 && value <= 100, [value]);
11429
+ const determined = useMemo18(() => value != null && value >= 0 && value <= 100, [value]);
11463
11430
  const [hasTooltip, setHasTooltip] = useState32(false);
11464
11431
  const handleLabelOnMouseEnter = (event) => {
11465
11432
  const text = event.currentTarget;
11466
11433
  setHasTooltip(text.scrollWidth > text.clientWidth);
11467
11434
  };
11468
- return /* @__PURE__ */ jsx76(SpinnerContainer, { margin, mode, children: /* @__PURE__ */ jsxs53(MainContainer5, { mode, children: [
11469
- mode === "overlay" && /* @__PURE__ */ jsx76(Overlay5, {}),
11470
- /* @__PURE__ */ jsx76(SVGTotalTrack, { viewBox: mode === "small" ? "0 0 16 16" : "0 0 140 140", children: /* @__PURE__ */ jsx76(
11435
+ return /* @__PURE__ */ jsx77(SpinnerContainer, { margin, mode, children: /* @__PURE__ */ jsxs54(MainContainer5, { mode, children: [
11436
+ mode === "overlay" && /* @__PURE__ */ jsx77(Overlay5, {}),
11437
+ /* @__PURE__ */ jsx77(SVGTotalTrack, { viewBox: mode === "small" ? "0 0 16 16" : "0 0 140 140", children: /* @__PURE__ */ jsx77(
11471
11438
  TotalTrack,
11472
11439
  {
11473
11440
  cx: mode === "small" ? "8" : "70",
@@ -11476,7 +11443,7 @@ var DxcSpinner = ({
11476
11443
  r: mode === "small" ? "6" : "65"
11477
11444
  }
11478
11445
  ) }),
11479
- /* @__PURE__ */ jsx76(
11446
+ /* @__PURE__ */ jsx77(
11480
11447
  Spinner,
11481
11448
  {
11482
11449
  "aria-label": !label || mode === "small" ? ariaLabel : void 0,
@@ -11485,7 +11452,7 @@ var DxcSpinner = ({
11485
11452
  "aria-valuemin": determined ? 0 : void 0,
11486
11453
  "aria-valuenow": determined && showValue ? value : void 0,
11487
11454
  role: determined ? "progressbar" : "status",
11488
- children: /* @__PURE__ */ jsx76(SVGSpinner, { determined, viewBox: mode === "small" ? "0 0 16 16" : "0 0 140 140", children: /* @__PURE__ */ jsx76(
11455
+ children: /* @__PURE__ */ jsx77(SVGSpinner, { determined, viewBox: mode === "small" ? "0 0 16 16" : "0 0 140 140", children: /* @__PURE__ */ jsx77(
11489
11456
  CircleSpinner,
11490
11457
  {
11491
11458
  cx: mode === "small" ? "8" : "70",
@@ -11499,9 +11466,9 @@ var DxcSpinner = ({
11499
11466
  ) })
11500
11467
  }
11501
11468
  ),
11502
- mode !== "small" && /* @__PURE__ */ jsx76(TooltipWrapper, { condition: hasTooltip, label, children: /* @__PURE__ */ jsxs53(Labels, { mode, children: [
11503
- label && /* @__PURE__ */ jsx76("span", { id: labelId, onMouseEnter: handleLabelOnMouseEnter, children: label }),
11504
- (value || value === 0) && showValue && /* @__PURE__ */ jsxs53("strong", { children: [
11469
+ mode !== "small" && /* @__PURE__ */ jsx77(TooltipWrapper, { condition: hasTooltip, label, children: /* @__PURE__ */ jsxs54(Labels, { mode, children: [
11470
+ label && /* @__PURE__ */ jsx77("span", { id: labelId, onMouseEnter: handleLabelOnMouseEnter, children: label }),
11471
+ (value || value === 0) && showValue && /* @__PURE__ */ jsxs54("strong", { children: [
11505
11472
  value,
11506
11473
  "%"
11507
11474
  ] })
@@ -11512,7 +11479,7 @@ var Spinner_default = DxcSpinner;
11512
11479
 
11513
11480
  // src/status-light/StatusLight.tsx
11514
11481
  import styled67 from "styled-components";
11515
- import { jsx as jsx77, jsxs as jsxs54 } from "react/jsx-runtime";
11482
+ import { jsx as jsx78, jsxs as jsxs55 } from "react/jsx-runtime";
11516
11483
  var getModeColor = (mode) => {
11517
11484
  switch (mode) {
11518
11485
  case "default":
@@ -11569,16 +11536,16 @@ var Label8 = styled67.span`
11569
11536
  white-space: nowrap;
11570
11537
  `;
11571
11538
  function DxcStatusLight({ label, mode = "default", size = "medium" }) {
11572
- return /* @__PURE__ */ jsxs54(StatusLightContainer, { role: "status", size, children: [
11573
- /* @__PURE__ */ jsx77(Dot, { mode, size, "aria-hidden": "true" }),
11574
- /* @__PURE__ */ jsx77(Label8, { mode, size, children: label })
11539
+ return /* @__PURE__ */ jsxs55(StatusLightContainer, { role: "status", size, children: [
11540
+ /* @__PURE__ */ jsx78(Dot, { mode, size, "aria-hidden": "true" }),
11541
+ /* @__PURE__ */ jsx78(Label8, { mode, size, children: label })
11575
11542
  ] });
11576
11543
  }
11577
11544
 
11578
11545
  // src/switch/Switch.tsx
11579
- import { forwardRef as forwardRef15, useContext as useContext32, useState as useState33 } from "react";
11546
+ import { forwardRef as forwardRef15, useContext as useContext31, useState as useState33 } from "react";
11580
11547
  import styled68 from "styled-components";
11581
- import { jsx as jsx78, jsxs as jsxs55 } from "react/jsx-runtime";
11548
+ import { jsx as jsx79, jsxs as jsxs56 } from "react/jsx-runtime";
11582
11549
  var sizes7 = {
11583
11550
  small: "60px",
11584
11551
  medium: "240px",
@@ -11672,7 +11639,7 @@ var DxcSwitch = forwardRef15(
11672
11639
  value
11673
11640
  }, ref) => {
11674
11641
  const [innerChecked, setInnerChecked] = useState33(defaultChecked);
11675
- const translatedLabels = useContext32(HalstackLanguageContext);
11642
+ const translatedLabels = useContext31(HalstackLanguageContext);
11676
11643
  const handleOnChange = () => {
11677
11644
  if (checked == null) setInnerChecked((currentInnerChecked) => !currentInnerChecked);
11678
11645
  onChange?.(!(checked ?? innerChecked));
@@ -11689,7 +11656,7 @@ var DxcSwitch = forwardRef15(
11689
11656
  break;
11690
11657
  }
11691
11658
  };
11692
- return /* @__PURE__ */ jsxs55(
11659
+ return /* @__PURE__ */ jsxs56(
11693
11660
  SwitchContainer,
11694
11661
  {
11695
11662
  "aria-checked": checked ?? innerChecked,
@@ -11705,12 +11672,12 @@ var DxcSwitch = forwardRef15(
11705
11672
  size,
11706
11673
  tabIndex: disabled ? -1 : tabIndex,
11707
11674
  children: [
11708
- label && /* @__PURE__ */ jsxs55(LabelContainer3, { disabled, labelPosition, children: [
11709
- /* @__PURE__ */ jsx78(Label9, { children: label }),
11710
- optional && /* @__PURE__ */ jsx78(OptionalLabel2, { disabled, children: translatedLabels.formFields.optionalLabel })
11675
+ label && /* @__PURE__ */ jsxs56(LabelContainer3, { disabled, labelPosition, children: [
11676
+ /* @__PURE__ */ jsx79(Label9, { children: label }),
11677
+ optional && /* @__PURE__ */ jsx79(OptionalLabel2, { disabled, children: translatedLabels.formFields.optionalLabel })
11711
11678
  ] }),
11712
- /* @__PURE__ */ jsx78(Switch, { checked: checked ?? innerChecked, disabled }),
11713
- /* @__PURE__ */ jsx78(
11679
+ /* @__PURE__ */ jsx79(Switch, { checked: checked ?? innerChecked, disabled }),
11680
+ /* @__PURE__ */ jsx79(
11714
11681
  "input",
11715
11682
  {
11716
11683
  "aria-hidden": true,
@@ -11735,9 +11702,9 @@ var Switch_default = DxcSwitch;
11735
11702
  import {
11736
11703
  Children as Children5,
11737
11704
  isValidElement as isValidElement2,
11738
- useContext as useContext35,
11705
+ useContext as useContext34,
11739
11706
  useLayoutEffect as useLayoutEffect5,
11740
- useMemo as useMemo21,
11707
+ useMemo as useMemo20,
11741
11708
  useRef as useRef21,
11742
11709
  useState as useState35
11743
11710
  } from "react";
@@ -11748,9 +11715,9 @@ import { createContext as createContext10 } from "react";
11748
11715
  var TabsContext_default = createContext10(null);
11749
11716
 
11750
11717
  // src/tabs/Tab.tsx
11751
- import { forwardRef as forwardRef16, useContext as useContext33, useEffect as useEffect25, useRef as useRef19 } from "react";
11718
+ import { forwardRef as forwardRef16, useContext as useContext32, useEffect as useEffect25, useRef as useRef19 } from "react";
11752
11719
  import styled69 from "styled-components";
11753
- import { jsx as jsx79, jsxs as jsxs56 } from "react/jsx-runtime";
11720
+ import { jsx as jsx80, jsxs as jsxs57 } from "react/jsx-runtime";
11754
11721
  var sharedTabStyles = `
11755
11722
  background-color: var(--color-bg-neutral-lightest);
11756
11723
  color: var(--color-fg-neutral-stronger);
@@ -11821,7 +11788,7 @@ var Underline3 = styled69.span`
11821
11788
  background-color: ${({ active }) => active ? "var(--border-color-primary-stronger)" : "var(--border-color-neutral-medium)"};
11822
11789
  `;
11823
11790
  var DxcTab = forwardRef16(
11824
- ({ active, disabled, icon, label, notificationNumber, onClick, onHover, title, tabId }, ref) => {
11791
+ ({ active, disabled, icon, label, notificationNumber, onClick, onHover, title, tabId = label }, ref) => {
11825
11792
  const {
11826
11793
  activeTabId,
11827
11794
  focusedTabId,
@@ -11829,7 +11796,7 @@ var DxcTab = forwardRef16(
11829
11796
  isControlled,
11830
11797
  setActiveTabId,
11831
11798
  tabIndex = 0
11832
- } = useContext33(TabsContext_default) ?? {};
11799
+ } = useContext32(TabsContext_default) ?? {};
11833
11800
  const tabRef = useRef19(null);
11834
11801
  const handleOnKeyDown = (event) => {
11835
11802
  switch (event.key) {
@@ -11846,9 +11813,9 @@ var DxcTab = forwardRef16(
11846
11813
  if (focusedTabId === tabId) tabRef?.current?.focus();
11847
11814
  }, [focusedTabId, tabId]);
11848
11815
  useEffect25(() => {
11849
- if (active) setActiveTabId?.(tabId);
11816
+ if (active) setActiveTabId?.(tabId ?? "");
11850
11817
  }, [active, tabId, setActiveTabId]);
11851
- return /* @__PURE__ */ jsx79(Tooltip, { label: title, children: /* @__PURE__ */ jsxs56(
11818
+ return /* @__PURE__ */ jsx80(Tooltip, { label: title, children: /* @__PURE__ */ jsxs57(
11852
11819
  Tab2,
11853
11820
  {
11854
11821
  "aria-selected": activeTabId === tabId,
@@ -11856,7 +11823,9 @@ var DxcTab = forwardRef16(
11856
11823
  hasLabelAndIcon: Boolean(icon && label),
11857
11824
  iconPosition,
11858
11825
  onClick: () => {
11859
- if (!isControlled) setActiveTabId?.(tabId);
11826
+ if (!isControlled) {
11827
+ setActiveTabId?.(tabId ?? "");
11828
+ }
11860
11829
  onClick?.();
11861
11830
  },
11862
11831
  onKeyDown: handleOnKeyDown,
@@ -11874,12 +11843,13 @@ var DxcTab = forwardRef16(
11874
11843
  role: "tab",
11875
11844
  tabIndex: activeTabId === label && !disabled ? tabIndex : -1,
11876
11845
  type: "button",
11846
+ "aria-label": label ?? tabId ?? "tab",
11877
11847
  children: [
11878
- /* @__PURE__ */ jsxs56(LabelIconContainer, { iconPosition, children: [
11879
- icon && /* @__PURE__ */ jsx79(IconContainer8, { children: typeof icon === "string" ? /* @__PURE__ */ jsx79(DxcIcon, { icon }) : icon }),
11880
- /* @__PURE__ */ jsx79(Label10, { children: label })
11848
+ /* @__PURE__ */ jsxs57(LabelIconContainer, { iconPosition, children: [
11849
+ icon && /* @__PURE__ */ jsx80(IconContainer8, { children: typeof icon === "string" ? /* @__PURE__ */ jsx80(DxcIcon, { icon }) : icon }),
11850
+ label && /* @__PURE__ */ jsx80(Label10, { children: label })
11881
11851
  ] }),
11882
- !disabled && notificationNumber && /* @__PURE__ */ jsx79(BadgeContainer2, { hasLabelAndIcon: Boolean(icon && label), iconPosition, children: /* @__PURE__ */ jsx79(
11852
+ !disabled && notificationNumber && /* @__PURE__ */ jsx80(BadgeContainer2, { hasLabelAndIcon: Boolean(icon && label), iconPosition, children: /* @__PURE__ */ jsx80(
11883
11853
  Badge_default,
11884
11854
  {
11885
11855
  label: typeof notificationNumber === "number" ? notificationNumber : void 0,
@@ -11887,7 +11857,7 @@ var DxcTab = forwardRef16(
11887
11857
  size: "small"
11888
11858
  }
11889
11859
  ) }),
11890
- /* @__PURE__ */ jsx79(Underline3, { active: activeTabId === tabId })
11860
+ /* @__PURE__ */ jsx80(Underline3, { active: activeTabId === tabId })
11891
11861
  ]
11892
11862
  }
11893
11863
  ) });
@@ -11896,15 +11866,15 @@ var DxcTab = forwardRef16(
11896
11866
  var Tab_default2 = DxcTab;
11897
11867
 
11898
11868
  // src/tabs/TabsLegacy.tsx
11899
- import { useCallback as useCallback10, useContext as useContext34, useEffect as useEffect26, useMemo as useMemo20, useRef as useRef20, useState as useState34 } from "react";
11900
- import styled71, { ThemeProvider as ThemeProvider9 } from "styled-components";
11869
+ import { useCallback as useCallback10, useContext as useContext33, useEffect as useEffect26, useMemo as useMemo19, useRef as useRef20, useState as useState34 } from "react";
11870
+ import styled71, { ThemeProvider as ThemeProvider7 } from "styled-components";
11901
11871
 
11902
11872
  // src/tabs/TabLegacy.tsx
11903
11873
  import { forwardRef as forwardRef17, memo as memo13 } from "react";
11904
11874
  import styled70 from "styled-components";
11905
- import { jsx as jsx80, jsxs as jsxs57 } from "react/jsx-runtime";
11875
+ import { jsx as jsx81, jsxs as jsxs58 } from "react/jsx-runtime";
11906
11876
  var Tab3 = forwardRef17(
11907
- ({ active, tab, tabIndex, hasLabelAndIcon, iconPosition, onClick, onMouseEnter, onMouseLeave }, ref) => /* @__PURE__ */ jsxs57(
11877
+ ({ active, tab, tabIndex, hasLabelAndIcon, iconPosition, onClick, onMouseEnter, onMouseLeave }, ref) => /* @__PURE__ */ jsxs58(
11908
11878
  TabContainer2,
11909
11879
  {
11910
11880
  role: "tab",
@@ -11925,7 +11895,7 @@ var Tab3 = forwardRef17(
11925
11895
  onMouseLeave();
11926
11896
  },
11927
11897
  children: [
11928
- /* @__PURE__ */ jsxs57(
11898
+ /* @__PURE__ */ jsxs58(
11929
11899
  MainLabelContainer,
11930
11900
  {
11931
11901
  notificationNumber: tab.notificationNumber,
@@ -11933,12 +11903,12 @@ var Tab3 = forwardRef17(
11933
11903
  iconPosition,
11934
11904
  disabled: tab.isDisabled,
11935
11905
  children: [
11936
- tab.icon && /* @__PURE__ */ jsx80(TabIconContainer, { hasLabelAndIcon, iconPosition, children: typeof tab.icon === "string" ? /* @__PURE__ */ jsx80(DxcIcon, { icon: tab.icon }) : tab.icon }),
11937
- /* @__PURE__ */ jsx80(LabelContainer4, { disabled: tab.isDisabled, active, children: tab.label })
11906
+ tab.icon && /* @__PURE__ */ jsx81(TabIconContainer, { hasLabelAndIcon, iconPosition, children: typeof tab.icon === "string" ? /* @__PURE__ */ jsx81(DxcIcon, { icon: tab.icon }) : tab.icon }),
11907
+ /* @__PURE__ */ jsx81(LabelContainer4, { disabled: tab.isDisabled, active, children: tab.label })
11938
11908
  ]
11939
11909
  }
11940
11910
  ),
11941
- tab.notificationNumber && !tab.isDisabled && /* @__PURE__ */ jsx80(BadgeContainer3, { hasLabelAndIcon, iconPosition, children: /* @__PURE__ */ jsx80(
11911
+ tab.notificationNumber && !tab.isDisabled && /* @__PURE__ */ jsx81(BadgeContainer3, { hasLabelAndIcon, iconPosition, children: /* @__PURE__ */ jsx81(
11942
11912
  Badge_default,
11943
11913
  {
11944
11914
  mode: "notification",
@@ -12050,7 +12020,7 @@ var TabIconContainer = styled70.div`
12050
12020
  var TabLegacy_default = memo13(Tab3);
12051
12021
 
12052
12022
  // src/tabs/TabsLegacy.tsx
12053
- import { jsx as jsx81, jsxs as jsxs58 } from "react/jsx-runtime";
12023
+ import { jsx as jsx82, jsxs as jsxs59 } from "react/jsx-runtime";
12054
12024
  var useResize = (refTabList) => {
12055
12025
  const [viewWidth, setViewWidth] = useState34(0);
12056
12026
  const handleWindowSizeChange = useCallback10(() => {
@@ -12075,7 +12045,7 @@ var DxcTabs = ({
12075
12045
  iconPosition = "top",
12076
12046
  tabIndex = 0
12077
12047
  }) => {
12078
- const colorsTheme = useContext34(HalstackContext);
12048
+ const colorsTheme = useContext33(HalstackContext);
12079
12049
  const hasLabelAndIcon = tabs != null && tabs.filter((tab) => tab.label && tab.icon).length > 0;
12080
12050
  const firstFocus = tabs != null ? tabs.findIndex((tab) => !tab.isDisabled) : null;
12081
12051
  const [innerActiveTabIndex, setInnerActiveTabIndex] = useState34(
@@ -12094,8 +12064,8 @@ var DxcTabs = ({
12094
12064
  const refTabs = useRef20([]);
12095
12065
  const refTabList = useRef20(null);
12096
12066
  const viewWidth = useResize(refTabList);
12097
- const translatedLabels = useContext34(HalstackLanguageContext);
12098
- const enabledIndicator = useMemo20(() => viewWidth < totalTabsWidth, [viewWidth]);
12067
+ const translatedLabels = useContext33(HalstackLanguageContext);
12068
+ const enabledIndicator = useMemo19(() => viewWidth < totalTabsWidth, [viewWidth]);
12099
12069
  useEffect26(() => {
12100
12070
  if (activeTabIndex != null || innerActiveTabIndex != null) {
12101
12071
  const sumWidth = refTabs.current?.reduce((count, obj) => count + obj.offsetWidth, 0);
@@ -12247,10 +12217,10 @@ var DxcTabs = ({
12247
12217
  };
12248
12218
  const isTabActive = (index) => activeTabIndex != null && activeTabIndex >= 0 ? activeTabIndex === index : innerActiveTabIndex === index;
12249
12219
  const isActiveIndicatorDisabled = firstFocus === -1 || tabs != null && activeTabIndex !== void 0 && activeTabIndex >= 0 && !!tabs[activeTabIndex]?.isDisabled;
12250
- return /* @__PURE__ */ jsx81(ThemeProvider9, { theme: colorsTheme.tabs, children: /* @__PURE__ */ jsxs58(TabsContainer, { margin, children: [
12251
- /* @__PURE__ */ jsx81(Underline4, {}),
12252
- /* @__PURE__ */ jsxs58(Tabs, { hasLabelAndIcon, iconPosition, children: [
12253
- /* @__PURE__ */ jsx81(
12220
+ return /* @__PURE__ */ jsx82(ThemeProvider7, { theme: colorsTheme.tabs, children: /* @__PURE__ */ jsxs59(TabsContainer, { margin, children: [
12221
+ /* @__PURE__ */ jsx82(Underline4, {}),
12222
+ /* @__PURE__ */ jsxs59(Tabs, { hasLabelAndIcon, iconPosition, children: [
12223
+ /* @__PURE__ */ jsx82(
12254
12224
  ScrollIndicator,
12255
12225
  {
12256
12226
  onClick: scrollLeft,
@@ -12259,11 +12229,11 @@ var DxcTabs = ({
12259
12229
  "aria-label": translatedLabels.tabs.scrollLeft,
12260
12230
  tabIndex: scrollLeftEnabled ? tabIndex : -1,
12261
12231
  minHeightTabs,
12262
- children: /* @__PURE__ */ jsx81(DxcIcon, { icon: "keyboard_arrow_left" })
12232
+ children: /* @__PURE__ */ jsx82(DxcIcon, { icon: "keyboard_arrow_left" })
12263
12233
  }
12264
12234
  ),
12265
- /* @__PURE__ */ jsx81(TabsContent, { children: /* @__PURE__ */ jsxs58(TabsContentScroll, { translateScroll, ref: refTabList, enabled: enabledIndicator, children: [
12266
- /* @__PURE__ */ jsx81(TabList, { role: "tablist", onKeyDown: handleOnKeyDown, minHeightTabs, children: tabs?.map((tab, i) => /* @__PURE__ */ jsx81(
12235
+ /* @__PURE__ */ jsx82(TabsContent, { children: /* @__PURE__ */ jsxs59(TabsContentScroll, { translateScroll, ref: refTabList, enabled: enabledIndicator, children: [
12236
+ /* @__PURE__ */ jsx82(TabList, { role: "tablist", onKeyDown: handleOnKeyDown, minHeightTabs, children: tabs?.map((tab, i) => /* @__PURE__ */ jsx82(
12267
12237
  TabLegacy_default,
12268
12238
  {
12269
12239
  tab,
@@ -12288,7 +12258,7 @@ var DxcTabs = ({
12288
12258
  },
12289
12259
  `tab-${i}`
12290
12260
  )) }),
12291
- /* @__PURE__ */ jsx81(
12261
+ /* @__PURE__ */ jsx82(
12292
12262
  ActiveIndicator,
12293
12263
  {
12294
12264
  tabWidth: activeIndicatorWidth,
@@ -12297,7 +12267,7 @@ var DxcTabs = ({
12297
12267
  }
12298
12268
  )
12299
12269
  ] }) }),
12300
- /* @__PURE__ */ jsx81(
12270
+ /* @__PURE__ */ jsx82(
12301
12271
  ScrollIndicator,
12302
12272
  {
12303
12273
  onClick: scrollRight,
@@ -12306,7 +12276,7 @@ var DxcTabs = ({
12306
12276
  "aria-label": translatedLabels.tabs.scrollRight,
12307
12277
  tabIndex: scrollRightEnabled ? tabIndex : -1,
12308
12278
  minHeightTabs,
12309
- children: /* @__PURE__ */ jsx81(DxcIcon, { icon: "keyboard_arrow_right" })
12279
+ children: /* @__PURE__ */ jsx82(DxcIcon, { icon: "keyboard_arrow_right" })
12310
12280
  }
12311
12281
  )
12312
12282
  ] })
@@ -12432,7 +12402,7 @@ var getPreviousTabIndex2 = (array, initialIndex) => {
12432
12402
  };
12433
12403
 
12434
12404
  // src/tabs/Tabs.tsx
12435
- import { Fragment as Fragment14, jsx as jsx82, jsxs as jsxs59 } from "react/jsx-runtime";
12405
+ import { Fragment as Fragment14, jsx as jsx83, jsxs as jsxs60 } from "react/jsx-runtime";
12436
12406
  var TabsContainer2 = styled72.div`
12437
12407
  position: relative;
12438
12408
  margin: ${(props) => props.margin && typeof props.margin !== "object" ? spaces[props.margin] : "0px"};
@@ -12500,7 +12470,7 @@ var DxcTabs2 = ({
12500
12470
  tabIndex = 0,
12501
12471
  tabs
12502
12472
  }) => {
12503
- const childrenArray = useMemo21(
12473
+ const childrenArray = useMemo20(
12504
12474
  () => Children5.toArray(children),
12505
12475
  [children]
12506
12476
  );
@@ -12511,7 +12481,7 @@ var DxcTabs2 = ({
12511
12481
  const initialActiveTab = hasActiveChild ? childrenArray.find(
12512
12482
  (child) => isValidElement2(child) && (child.props.active || child.props.defaultActive) && !child.props.disabled
12513
12483
  ) : childrenArray.find((child) => isValidElement2(child) && !child.props.disabled);
12514
- return isValidElement2(initialActiveTab) ? initialActiveTab.props.tabId : "";
12484
+ return isValidElement2(initialActiveTab) ? initialActiveTab.props.label ?? initialActiveTab.props.tabId : "";
12515
12485
  });
12516
12486
  const [countClick, setCountClick] = useState35(0);
12517
12487
  const [innerFocusIndex, setInnerFocusIndex] = useState35(null);
@@ -12520,13 +12490,13 @@ var DxcTabs2 = ({
12520
12490
  const [translateScroll, setTranslateScroll] = useState35(0);
12521
12491
  const [totalTabsWidth, setTotalTabsWidth] = useState35(0);
12522
12492
  const refTabList = useRef21(null);
12523
- const translatedLabels = useContext35(HalstackLanguageContext);
12493
+ const translatedLabels = useContext34(HalstackLanguageContext);
12524
12494
  const viewWidth = useWidth_default(refTabList.current);
12525
- const contextValue = useMemo21(() => {
12495
+ const contextValue = useMemo20(() => {
12526
12496
  const focusedChild = innerFocusIndex != null ? childrenArray[innerFocusIndex] : null;
12527
12497
  return {
12528
12498
  activeTabId,
12529
- focusedTabId: isValidElement2(focusedChild) ? focusedChild.props.tabId : "",
12499
+ focusedTabId: isValidElement2(focusedChild) ? focusedChild.props.label ?? focusedChild.props.tabId : "",
12530
12500
  iconPosition,
12531
12501
  isControlled: childrenArray.some((child) => isValidElement2(child) && typeof child.props.active !== "undefined"),
12532
12502
  setActiveTabId,
@@ -12564,7 +12534,9 @@ var DxcTabs2 = ({
12564
12534
  setCountClick(moveX);
12565
12535
  };
12566
12536
  const handleOnKeyDown = (event) => {
12567
- const activeTab = childrenArray.findIndex((child) => child.props.tabId === activeTabId);
12537
+ const activeTab = childrenArray.findIndex(
12538
+ (child) => (child.props.label ?? child.props.tabId) === activeTabId
12539
+ );
12568
12540
  switch (event.key) {
12569
12541
  case "Left":
12570
12542
  case "ArrowLeft":
@@ -12595,21 +12567,21 @@ var DxcTabs2 = ({
12595
12567
  return total;
12596
12568
  });
12597
12569
  }, []);
12598
- return children ? /* @__PURE__ */ jsxs59(Fragment14, { children: [
12599
- /* @__PURE__ */ jsxs59(TabsContainer2, { margin, children: [
12600
- /* @__PURE__ */ jsx82(Underline5, {}),
12601
- /* @__PURE__ */ jsxs59(Tabs2, { children: [
12602
- viewWidth < totalTabsWidth && /* @__PURE__ */ jsx82(
12570
+ return children ? /* @__PURE__ */ jsxs60(Fragment14, { children: [
12571
+ /* @__PURE__ */ jsxs60(TabsContainer2, { margin, children: [
12572
+ /* @__PURE__ */ jsx83(Underline5, {}),
12573
+ /* @__PURE__ */ jsxs60(Tabs2, { children: [
12574
+ viewWidth < totalTabsWidth && /* @__PURE__ */ jsx83(
12603
12575
  ScrollIndicatorButton,
12604
12576
  {
12605
12577
  "aria-label": translatedLabels.tabs.scrollLeft,
12606
12578
  disabled: !scrollLeftEnabled,
12607
12579
  onClick: scrollLeft,
12608
12580
  tabIndex: scrollLeftEnabled ? tabIndex : -1,
12609
- children: /* @__PURE__ */ jsx82(DxcIcon, { icon: "keyboard_arrow_left" })
12581
+ children: /* @__PURE__ */ jsx83(DxcIcon, { icon: "keyboard_arrow_left" })
12610
12582
  }
12611
12583
  ),
12612
- /* @__PURE__ */ jsx82(TabsContent2, { children: /* @__PURE__ */ jsx82(
12584
+ /* @__PURE__ */ jsx83(TabsContent2, { children: /* @__PURE__ */ jsx83(
12613
12585
  ScrollableTabsList,
12614
12586
  {
12615
12587
  enabled: viewWidth < totalTabsWidth,
@@ -12618,17 +12590,17 @@ var DxcTabs2 = ({
12618
12590
  ref: refTabList,
12619
12591
  role: "tablist",
12620
12592
  translateScroll,
12621
- children: /* @__PURE__ */ jsx82(TabsContext_default.Provider, { value: contextValue, children })
12593
+ children: /* @__PURE__ */ jsx83(TabsContext_default.Provider, { value: contextValue, children })
12622
12594
  }
12623
12595
  ) }),
12624
- viewWidth < totalTabsWidth && /* @__PURE__ */ jsx82(
12596
+ viewWidth < totalTabsWidth && /* @__PURE__ */ jsx83(
12625
12597
  ScrollIndicatorButton,
12626
12598
  {
12627
12599
  "aria-label": translatedLabels.tabs.scrollRight,
12628
12600
  disabled: !scrollRightEnabled,
12629
12601
  onClick: scrollRight,
12630
12602
  tabIndex: scrollRightEnabled ? tabIndex : -1,
12631
- children: /* @__PURE__ */ jsx82(DxcIcon, { icon: "keyboard_arrow_right" })
12603
+ children: /* @__PURE__ */ jsx83(DxcIcon, { icon: "keyboard_arrow_right" })
12632
12604
  }
12633
12605
  )
12634
12606
  ] })
@@ -12637,7 +12609,7 @@ var DxcTabs2 = ({
12637
12609
  children,
12638
12610
  (child) => isValidElement2(child) && child.props.tabId === activeTabId ? child.props.children : null
12639
12611
  )
12640
- ] }) : tabs != null && /* @__PURE__ */ jsx82(
12612
+ ] }) : tabs != null && /* @__PURE__ */ jsx83(
12641
12613
  TabsLegacy_default,
12642
12614
  {
12643
12615
  activeTabIndex,
@@ -12655,9 +12627,9 @@ DxcTabs2.Tab = Tab_default2;
12655
12627
  var Tabs_default = DxcTabs2;
12656
12628
 
12657
12629
  // src/textarea/Textarea.tsx
12658
- import { forwardRef as forwardRef18, useContext as useContext36, useEffect as useEffect27, useId as useId19, useRef as useRef22, useState as useState36 } from "react";
12630
+ import { forwardRef as forwardRef18, useContext as useContext35, useEffect as useEffect27, useId as useId19, useRef as useRef22, useState as useState36 } from "react";
12659
12631
  import styled73 from "styled-components";
12660
- import { jsx as jsx83, jsxs as jsxs60 } from "react/jsx-runtime";
12632
+ import { jsx as jsx84, jsxs as jsxs61 } from "react/jsx-runtime";
12661
12633
  var sizes8 = {
12662
12634
  small: "240px",
12663
12635
  medium: "360px",
@@ -12723,7 +12695,7 @@ var DxcTextarea = forwardRef18(
12723
12695
  const [innerValue, setInnerValue] = useState36(defaultValue);
12724
12696
  const textareaId = `textarea-${useId19()}`;
12725
12697
  const errorId = `error-${textareaId}`;
12726
- const translatedLabels = useContext36(HalstackLanguageContext);
12698
+ const translatedLabels = useContext35(HalstackLanguageContext);
12727
12699
  const textareaRef = useRef22(null);
12728
12700
  const prevValueRef = useRef22(null);
12729
12701
  const isLengthOutOfRange = (value2) => value2 !== "" && minLength && maxLength && (value2.length < minLength || value2.length > maxLength);
@@ -12778,14 +12750,14 @@ var DxcTextarea = forwardRef18(
12778
12750
  prevValueRef.current = value ?? innerValue;
12779
12751
  }
12780
12752
  }, [innerValue, rows, value, verticalGrow]);
12781
- return /* @__PURE__ */ jsxs60(TextareaContainer, { margin, size, ref, children: [
12782
- label && /* @__PURE__ */ jsxs60(Label_default, { disabled, hasMargin: !helperText, htmlFor: textareaId, children: [
12753
+ return /* @__PURE__ */ jsxs61(TextareaContainer, { margin, size, ref, children: [
12754
+ label && /* @__PURE__ */ jsxs61(Label_default, { disabled, hasMargin: !helperText, htmlFor: textareaId, children: [
12783
12755
  label,
12784
12756
  " ",
12785
- optional && /* @__PURE__ */ jsx83("span", { children: translatedLabels.formFields.optionalLabel })
12757
+ optional && /* @__PURE__ */ jsx84("span", { children: translatedLabels.formFields.optionalLabel })
12786
12758
  ] }),
12787
- helperText && /* @__PURE__ */ jsx83(HelperText_default, { disabled, hasMargin: true, children: helperText }),
12788
- /* @__PURE__ */ jsx83(
12759
+ helperText && /* @__PURE__ */ jsx84(HelperText_default, { disabled, hasMargin: true, children: helperText }),
12760
+ /* @__PURE__ */ jsx84(
12789
12761
  Textarea,
12790
12762
  {
12791
12763
  "aria-errormessage": error ? errorId : void 0,
@@ -12810,19 +12782,19 @@ var DxcTextarea = forwardRef18(
12810
12782
  verticalGrow
12811
12783
  }
12812
12784
  ),
12813
- !disabled && typeof error === "string" && /* @__PURE__ */ jsx83(ErrorMessage_default, { error, id: errorId })
12785
+ !disabled && typeof error === "string" && /* @__PURE__ */ jsx84(ErrorMessage_default, { error, id: errorId })
12814
12786
  ] });
12815
12787
  }
12816
12788
  );
12817
12789
  var Textarea_default = DxcTextarea;
12818
12790
 
12819
12791
  // src/toast/ToastsQueue.tsx
12820
- import { useCallback as useCallback12, useEffect as useEffect29, useMemo as useMemo22, useState as useState38 } from "react";
12792
+ import { useCallback as useCallback12, useEffect as useEffect29, useMemo as useMemo21, useState as useState38 } from "react";
12821
12793
  import { createPortal as createPortal3 } from "react-dom";
12822
12794
  import styled75 from "styled-components";
12823
12795
 
12824
12796
  // src/toast/Toast.tsx
12825
- import { memo as memo15, useContext as useContext37, useState as useState37 } from "react";
12797
+ import { memo as memo15, useContext as useContext36, useState as useState37 } from "react";
12826
12798
  import styled74, { keyframes } from "styled-components";
12827
12799
 
12828
12800
  // src/utils/useTimeout.ts
@@ -12887,7 +12859,7 @@ function generateUniqueToastId(toasts) {
12887
12859
 
12888
12860
  // src/toast/ToastIcon.tsx
12889
12861
  import { memo as memo14 } from "react";
12890
- import { jsx as jsx84 } from "react/jsx-runtime";
12862
+ import { jsx as jsx85 } from "react/jsx-runtime";
12891
12863
  var ToastIcon = memo14(
12892
12864
  ({
12893
12865
  icon,
@@ -12895,15 +12867,15 @@ var ToastIcon = memo14(
12895
12867
  loading,
12896
12868
  semantic
12897
12869
  }) => {
12898
- if (semantic === "default") return typeof icon === "string" ? /* @__PURE__ */ jsx84(DxcIcon, { icon }) : icon;
12899
- else if (semantic === "info" && loading) return /* @__PURE__ */ jsx84(Spinner_default, { inheritColor: true, mode: "small" });
12900
- else return !hideSemanticIcon && /* @__PURE__ */ jsx84(DxcIcon, { icon: getSemantic(semantic).icon });
12870
+ if (semantic === "default") return typeof icon === "string" ? /* @__PURE__ */ jsx85(DxcIcon, { icon }) : icon;
12871
+ else if (semantic === "info" && loading) return /* @__PURE__ */ jsx85(Spinner_default, { inheritColor: true, mode: "small" });
12872
+ else return !hideSemanticIcon && /* @__PURE__ */ jsx85(DxcIcon, { icon: getSemantic(semantic).icon });
12901
12873
  }
12902
12874
  );
12903
12875
  var ToastIcon_default = ToastIcon;
12904
12876
 
12905
12877
  // src/toast/Toast.tsx
12906
- import { jsx as jsx85, jsxs as jsxs61 } from "react/jsx-runtime";
12878
+ import { jsx as jsx86, jsxs as jsxs62 } from "react/jsx-runtime";
12907
12879
  var fadeInUp = keyframes`
12908
12880
  0% {
12909
12881
  transform: translateY(100%);
@@ -12976,7 +12948,7 @@ var DxcToast = ({
12976
12948
  semantic
12977
12949
  }) => {
12978
12950
  const [isClosing, setIsClosing] = useState37(false);
12979
- const translatedLabels = useContext37(HalstackLanguageContext);
12951
+ const translatedLabels = useContext36(HalstackLanguageContext);
12980
12952
  const clearClosingAnimationTimer = useTimeout(
12981
12953
  () => {
12982
12954
  setIsClosing(true);
@@ -12989,13 +12961,13 @@ var DxcToast = ({
12989
12961
  },
12990
12962
  loading ? void 0 : duration
12991
12963
  );
12992
- return /* @__PURE__ */ jsxs61(Toast, { isClosing, role: "status", semantic, children: [
12993
- /* @__PURE__ */ jsxs61(ContentContainer2, { loading, semantic, children: [
12994
- /* @__PURE__ */ jsx85(ToastIcon_default, { hideSemanticIcon, icon, loading, semantic }),
12995
- /* @__PURE__ */ jsx85(Message2, { children: message })
12964
+ return /* @__PURE__ */ jsxs62(Toast, { isClosing, role: "status", semantic, children: [
12965
+ /* @__PURE__ */ jsxs62(ContentContainer2, { loading, semantic, children: [
12966
+ /* @__PURE__ */ jsx86(ToastIcon_default, { hideSemanticIcon, icon, loading, semantic }),
12967
+ /* @__PURE__ */ jsx86(Message2, { children: message })
12996
12968
  ] }),
12997
- /* @__PURE__ */ jsxs61(Flex_default, { alignItems: "center", gap: "var(--spacing-gap-xs)", children: [
12998
- action && /* @__PURE__ */ jsx85(
12969
+ /* @__PURE__ */ jsxs62(Flex_default, { alignItems: "center", gap: "var(--spacing-gap-xs)", children: [
12970
+ action && /* @__PURE__ */ jsx86(
12999
12971
  Button_default,
13000
12972
  {
13001
12973
  icon: action.icon,
@@ -13006,7 +12978,7 @@ var DxcToast = ({
13006
12978
  size: { height: "small" }
13007
12979
  }
13008
12980
  ),
13009
- /* @__PURE__ */ jsx85(
12981
+ /* @__PURE__ */ jsx86(
13010
12982
  ActionIcon_default,
13011
12983
  {
13012
12984
  icon: "clear",
@@ -13033,7 +13005,7 @@ import { createContext as createContext11 } from "react";
13033
13005
  var ToastContext_default = createContext11(null);
13034
13006
 
13035
13007
  // src/toast/ToastsQueue.tsx
13036
- import { jsx as jsx86, jsxs as jsxs62 } from "react/jsx-runtime";
13008
+ import { jsx as jsx87, jsxs as jsxs63 } from "react/jsx-runtime";
13037
13009
  var ToastsQueue = styled75.section`
13038
13010
  box-sizing: border-box;
13039
13011
  position: fixed;
@@ -13054,7 +13026,7 @@ var ToastsQueue = styled75.section`
13054
13026
  function DxcToastsQueue({ children, duration = 3e3 }) {
13055
13027
  const [toasts, setToasts] = useState38([]);
13056
13028
  const [isMounted, setIsMounted] = useState38(false);
13057
- const adjustedDuration = useMemo22(() => duration > 5e3 ? 5e3 : duration < 3e3 ? 3e3 : duration, [duration]);
13029
+ const adjustedDuration = useMemo21(() => duration > 5e3 ? 5e3 : duration < 3e3 ? 3e3 : duration, [duration]);
13058
13030
  const remove = useCallback12((id) => {
13059
13031
  setToasts((prevToasts) => prevToasts.filter((toast) => toast.id !== id));
13060
13032
  }, []);
@@ -13069,9 +13041,9 @@ function DxcToastsQueue({ children, duration = 3e3 }) {
13069
13041
  useEffect29(() => {
13070
13042
  setIsMounted(true);
13071
13043
  }, []);
13072
- return /* @__PURE__ */ jsxs62(ToastContext_default.Provider, { value: add, children: [
13044
+ return /* @__PURE__ */ jsxs63(ToastContext_default.Provider, { value: add, children: [
13073
13045
  isMounted && createPortal3(
13074
- /* @__PURE__ */ jsx86(ToastsQueue, { children: toasts.map((t) => /* @__PURE__ */ jsx86(
13046
+ /* @__PURE__ */ jsx87(ToastsQueue, { children: toasts.map((t) => /* @__PURE__ */ jsx87(
13075
13047
  Toast_default,
13076
13048
  {
13077
13049
  duration: adjustedDuration,
@@ -13091,7 +13063,7 @@ function DxcToastsQueue({ children, duration = 3e3 }) {
13091
13063
  // src/toggle-group/ToggleGroup.tsx
13092
13064
  import { useState as useState39 } from "react";
13093
13065
  import styled76 from "styled-components";
13094
- import { jsx as jsx87, jsxs as jsxs63 } from "react/jsx-runtime";
13066
+ import { jsx as jsx88, jsxs as jsxs64 } from "react/jsx-runtime";
13095
13067
  var ToggleGroup = styled76.div`
13096
13068
  display: flex;
13097
13069
  &[aria-orientation="vertical"] {
@@ -13171,9 +13143,9 @@ function DxcToggleGroup({
13171
13143
  break;
13172
13144
  }
13173
13145
  };
13174
- return /* @__PURE__ */ jsx87(ToggleGroup, { "aria-orientation": orientation, margin, role: "toolbar", children: options.map((option, i) => {
13146
+ return /* @__PURE__ */ jsx88(ToggleGroup, { "aria-orientation": orientation, margin, role: "toolbar", children: options.map((option, i) => {
13175
13147
  const selected = !option.disabled && isToggleButtonSelected(multiple, option.value, value ?? selectedValue);
13176
- return /* @__PURE__ */ jsx87(Tooltip, { label: option.title, children: /* @__PURE__ */ jsxs63(
13148
+ return /* @__PURE__ */ jsx88(Tooltip, { label: option.title, children: /* @__PURE__ */ jsxs64(
13177
13149
  ToggleButton,
13178
13150
  {
13179
13151
  "aria-label": option.title,
@@ -13189,8 +13161,8 @@ function DxcToggleGroup({
13189
13161
  selected,
13190
13162
  tabIndex: !option.disabled ? tabIndex : -1,
13191
13163
  children: [
13192
- option.icon && /* @__PURE__ */ jsx87(IconContainer9, { children: typeof option.icon === "string" ? /* @__PURE__ */ jsx87(DxcIcon, { icon: option.icon }) : option.icon }),
13193
- option.label && /* @__PURE__ */ jsx87("span", { children: option.label })
13164
+ option.icon && /* @__PURE__ */ jsx88(IconContainer9, { children: typeof option.icon === "string" ? /* @__PURE__ */ jsx88(DxcIcon, { icon: option.icon }) : option.icon }),
13165
+ option.label && /* @__PURE__ */ jsx88("span", { children: option.label })
13194
13166
  ]
13195
13167
  }
13196
13168
  ) }, `toggle-${i}-${option.label}`);
@@ -13202,16 +13174,16 @@ import { useState as useState40 } from "react";
13202
13174
  import styled77 from "styled-components";
13203
13175
 
13204
13176
  // src/wizard/Icons.tsx
13205
- import { jsx as jsx88 } from "react/jsx-runtime";
13177
+ import { jsx as jsx89 } from "react/jsx-runtime";
13206
13178
  var icons3 = {
13207
- valid: /* @__PURE__ */ jsx88("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: /* @__PURE__ */ jsx88(
13179
+ valid: /* @__PURE__ */ jsx89("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: /* @__PURE__ */ jsx89(
13208
13180
  "path",
13209
13181
  {
13210
13182
  d: "M9 0C7.21997 0 5.47991 0.527841 3.99987 1.51677C2.51983 2.50571 1.36628 3.91131 0.685088 5.55585C0.00389949 7.20038 -0.17433 9.00998 0.172937 10.7558C0.520203 12.5016 1.37737 14.1053 2.63604 15.364C3.89471 16.6226 5.49836 17.4798 7.24419 17.8271C8.99002 18.1743 10.7996 17.9961 12.4442 17.3149C14.0887 16.6337 15.4943 15.4802 16.4832 14.0001C17.4722 12.5201 18 10.78 18 9C17.9978 6.61373 17.0488 4.32584 15.3615 2.6385C13.6742 0.951152 11.3863 0.00222614 9 0ZM9 16.1995C7.57607 16.1995 6.18412 15.7773 5.00016 14.9862C3.81621 14.1951 2.89343 13.0707 2.34851 11.7551C1.8036 10.4396 1.66103 8.99201 1.93882 7.59544C2.21662 6.19887 2.9023 4.91604 3.90917 3.90917C4.91605 2.9023 6.19888 2.21661 7.59545 1.93882C8.99202 1.66102 10.4396 1.8036 11.7551 2.34851C13.0707 2.89343 14.1951 3.81621 14.9862 5.00016C15.7773 6.18411 16.1995 7.57607 16.1995 9C16.1976 10.9088 15.4385 12.739 14.0887 14.0887C12.739 15.4385 10.9088 16.1976 9 16.1995ZM13.1307 5.02189L7.19952 10.953L4.86935 8.63125L3.60337 9.89964L7.20673 13.503L14.4062 6.30348L13.1307 5.02189Z",
13211
13183
  fill: "currentColor"
13212
13184
  }
13213
13185
  ) }),
13214
- invalid: /* @__PURE__ */ jsx88("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: /* @__PURE__ */ jsx88(
13186
+ invalid: /* @__PURE__ */ jsx89("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: /* @__PURE__ */ jsx89(
13215
13187
  "path",
13216
13188
  {
13217
13189
  d: "M11.3328 5.4L9 7.7316L6.6696 5.4L5.4 6.6696L7.7316 9L5.4 11.3328L6.6696 12.6L9 10.2696L11.3328 12.6L12.6 11.3328L10.2696 9L12.6 6.6696L11.3328 5.4ZM9 2.88488e-06C7.21997 2.88488e-06 5.47991 0.527844 3.99987 1.51678C2.51983 2.50571 1.36628 3.91132 0.685088 5.55585C0.00389957 7.20038 -0.17433 9.00998 0.172936 10.7558C0.520203 12.5016 1.37737 14.1053 2.63604 15.364C3.89471 16.6226 5.49836 17.4798 7.24419 17.8271C8.99002 18.1743 10.7996 17.9961 12.4441 17.3149C14.0887 16.6337 15.4943 15.4802 16.4832 14.0001C17.4722 12.5201 18 10.78 18 9C18.0009 7.81784 17.7688 6.64709 17.3168 5.55473C16.8649 4.46237 16.202 3.46985 15.3661 2.63393C14.5302 1.79801 13.5376 1.13512 12.4453 0.683158C11.3529 0.231201 10.1822 -0.000943982 9 2.88488e-06ZM9 16.2C7.57598 16.2 6.18393 15.7777 4.9999 14.9866C3.81586 14.1954 2.89302 13.0709 2.34807 11.7553C1.80312 10.4397 1.66054 8.99201 1.93835 7.59535C2.21616 6.19869 2.9019 4.91577 3.90883 3.90883C4.91577 2.9019 6.19869 2.21616 7.59535 1.93835C8.99201 1.66053 10.4397 1.80312 11.7553 2.34807C13.0709 2.89302 14.1954 3.81586 14.9866 4.9999C15.7777 6.18393 16.2 7.57597 16.2 9C16.1971 10.9087 15.4377 12.7384 14.088 14.088C12.7384 15.4377 10.9087 16.1971 9 16.2Z",
@@ -13222,7 +13194,7 @@ var icons3 = {
13222
13194
  var Icons_default2 = icons3;
13223
13195
 
13224
13196
  // src/wizard/Wizard.tsx
13225
- import { jsx as jsx89, jsxs as jsxs64 } from "react/jsx-runtime";
13197
+ import { jsx as jsx90, jsxs as jsxs65 } from "react/jsx-runtime";
13226
13198
  var Wizard = styled77.div`
13227
13199
  display: flex;
13228
13200
  flex-direction: ${({ mode }) => mode === "vertical" ? "column" : "row"};
@@ -13351,8 +13323,8 @@ function DxcWizard({
13351
13323
  setInnerCurrentStep(newValue);
13352
13324
  onStepClick?.(newValue);
13353
13325
  };
13354
- return /* @__PURE__ */ jsx89(Wizard, { margin, mode, role: "group", children: steps.map((step, i) => /* @__PURE__ */ jsxs64(StepContainer, { lastStep: i === steps.length - 1, mode, children: [
13355
- /* @__PURE__ */ jsxs64(
13326
+ return /* @__PURE__ */ jsx90(Wizard, { margin, mode, role: "group", children: steps.map((step, i) => /* @__PURE__ */ jsxs65(StepContainer, { lastStep: i === steps.length - 1, mode, children: [
13327
+ /* @__PURE__ */ jsxs65(
13356
13328
  Step,
13357
13329
  {
13358
13330
  "aria-current": (currentStep ?? innerCurrent) === i ? "step" : false,
@@ -13364,34 +13336,34 @@ function DxcWizard({
13364
13336
  tabIndex,
13365
13337
  unvisited: i > (currentStep ?? innerCurrent),
13366
13338
  children: [
13367
- /* @__PURE__ */ jsxs64(StepIndicator, { hasValidityIcon: step.valid != null, children: [
13368
- /* @__PURE__ */ jsx89(
13339
+ /* @__PURE__ */ jsxs65(StepIndicator, { hasValidityIcon: step.valid != null, children: [
13340
+ /* @__PURE__ */ jsx90(
13369
13341
  IconContainer10,
13370
13342
  {
13371
13343
  current: i === (currentStep ?? innerCurrent),
13372
13344
  disabled: step.disabled,
13373
13345
  visited: i < (currentStep ?? innerCurrent),
13374
- children: step.icon ? typeof step.icon === "string" ? /* @__PURE__ */ jsx89(DxcIcon, { icon: step.icon }) : step.icon : /* @__PURE__ */ jsx89(Number3, { children: i + 1 })
13346
+ children: step.icon ? typeof step.icon === "string" ? /* @__PURE__ */ jsx90(DxcIcon, { icon: step.icon }) : step.icon : /* @__PURE__ */ jsx90(Number3, { children: i + 1 })
13375
13347
  }
13376
13348
  ),
13377
- step.valid != null && /* @__PURE__ */ jsx89(ValidityIconContainer, { disabled: step.disabled, valid: step.valid, children: step.valid ? Icons_default2.valid : Icons_default2.invalid })
13349
+ step.valid != null && /* @__PURE__ */ jsx90(ValidityIconContainer, { disabled: step.disabled, valid: step.valid, children: step.valid ? Icons_default2.valid : Icons_default2.invalid })
13378
13350
  ] }),
13379
- (step.label || step.description) && /* @__PURE__ */ jsxs64(Flex_default, { direction: "column", alignItems: "flex-start", children: [
13380
- step.label && /* @__PURE__ */ jsx89(Label11, { children: step.label }),
13381
- step.description && /* @__PURE__ */ jsx89(Description, { children: step.description })
13351
+ (step.label || step.description) && /* @__PURE__ */ jsxs65(Flex_default, { direction: "column", alignItems: "flex-start", children: [
13352
+ step.label && /* @__PURE__ */ jsx90(Label11, { children: step.label }),
13353
+ step.description && /* @__PURE__ */ jsx90(Description, { children: step.description })
13382
13354
  ] })
13383
13355
  ]
13384
13356
  }
13385
13357
  ),
13386
- i !== steps.length - 1 && /* @__PURE__ */ jsx89(DividerContainer, { mode, children: /* @__PURE__ */ jsx89(DxcDivider, { color: "darkGrey", orientation: mode }) })
13358
+ i !== steps.length - 1 && /* @__PURE__ */ jsx90(DividerContainer, { mode, children: /* @__PURE__ */ jsx90(DxcDivider, { color: "darkGrey", orientation: mode }) })
13387
13359
  ] }, `step${i}`)) });
13388
13360
  }
13389
13361
 
13390
13362
  // src/toast/useToast.tsx
13391
- import { useContext as useContext38, useMemo as useMemo23 } from "react";
13363
+ import { useContext as useContext37, useMemo as useMemo22 } from "react";
13392
13364
  function useToast() {
13393
- const add = useContext38(ToastContext_default);
13394
- const toast = useMemo23(
13365
+ const add = useContext37(ToastContext_default);
13366
+ const toast = useMemo22(
13395
13367
  () => ({
13396
13368
  default: (toast2) => add?.(toast2, "default"),
13397
13369
  success: (toast2) => add?.(toast2, "success"),