@dxc-technology/halstack-react 0.0.0-9559292 → 0.0.0-955a751

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.js +208 -218
  2. package/dist/index.mjs +210 -220
  3. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1368,7 +1368,7 @@ var defaultTranslatedComponentLabels = {
1368
1368
  logoAlternativeText: "Logo"
1369
1369
  },
1370
1370
  applicationLayout: {
1371
- visibilityToggleTitle: "Toggle visibility sidenav"
1371
+ visibilityToggleTitle: "Toggle sidenav visibility"
1372
1372
  },
1373
1373
  alert: {
1374
1374
  infoTitleText: "information",
@@ -7787,7 +7787,7 @@ var Chip_default = DxcChip;
7787
7787
 
7788
7788
  // src/layout/ApplicationLayout.tsx
7789
7789
  import { Children, useCallback as useCallback6, useEffect as useEffect10, useRef as useRef12, useState as useState18 } from "react";
7790
- import styled41 from "styled-components";
7790
+ import styled42 from "styled-components";
7791
7791
 
7792
7792
  // src/footer/Footer.tsx
7793
7793
  import { useMemo as useMemo9 } from "react";
@@ -8146,15 +8146,126 @@ var Footer_default = DxcFooter;
8146
8146
 
8147
8147
  // src/header/Header.tsx
8148
8148
  import { useCallback as useCallback5, useEffect as useEffect8, useMemo as useMemo10, useRef as useRef11, useState as useState16 } from "react";
8149
- import styled38, { ThemeProvider as ThemeProvider25 } from "styled-components";
8150
- import { jsx as jsx41, jsxs as jsxs33 } from "react/jsx-runtime";
8151
- var Dropdown = (props) => /* @__PURE__ */ jsx41(HeaderDropdown, { children: /* @__PURE__ */ jsx41(Dropdown_default, { ...props }) });
8149
+ import styled39, { ThemeProvider as ThemeProvider25 } from "styled-components";
8150
+
8151
+ // src/tooltip/Tooltip.tsx
8152
+ import * as Tooltip from "@radix-ui/react-tooltip";
8153
+ import styled38 from "styled-components";
8154
+ import { Fragment as Fragment6, jsx as jsx41, jsxs as jsxs33 } from "react/jsx-runtime";
8155
+ var triangleIcon = /* @__PURE__ */ jsx41(
8156
+ "svg",
8157
+ {
8158
+ width: "12",
8159
+ height: "6",
8160
+ viewBox: "0 0 12 6",
8161
+ xmlns: "http://www.w3.org/2000/svg",
8162
+ preserveAspectRatio: "none",
8163
+ display: "block",
8164
+ children: /* @__PURE__ */ jsx41(
8165
+ "path",
8166
+ {
8167
+ d: "M0.351562 0L5.30131 4.94975C5.69184 5.34027 6.325 5.34027 6.71552 4.94975L11.6653 0H6.00842H0.351562Z",
8168
+ fill: coreTokens_default.color_grey_800
8169
+ }
8170
+ )
8171
+ }
8172
+ );
8173
+ var DxcTooltip = ({ position = "bottom", label, children }) => label ? /* @__PURE__ */ jsx41(Tooltip.Provider, { delayDuration: 300, children: /* @__PURE__ */ jsxs33(Tooltip.Root, { children: [
8174
+ /* @__PURE__ */ jsx41(Tooltip.Trigger, { asChild: true, children: /* @__PURE__ */ jsx41(TooltipTriggerContainer, { children }) }),
8175
+ /* @__PURE__ */ jsx41(Tooltip.Portal, { children: /* @__PURE__ */ jsxs33(StyledTooltipContent, { side: position, sideOffset: 8, children: [
8176
+ /* @__PURE__ */ jsx41(TooltipContainer, { children: label }),
8177
+ /* @__PURE__ */ jsx41(Tooltip.Arrow, { asChild: true, "aria-hidden": true, children: triangleIcon })
8178
+ ] }) })
8179
+ ] }) }) : /* @__PURE__ */ jsx41(Fragment6, { children });
8180
+ var TooltipTriggerContainer = styled38.div`
8181
+ display: inline-flex;
8182
+ position: relative;
8183
+ `;
8184
+ var StyledTooltipContent = styled38(Tooltip.Content)`
8185
+ z-index: 2147483647;
8186
+
8187
+ animation-duration: 0.2s;
8188
+ animation-timing-function: ease-out;
8189
+
8190
+ /* Additional optimization to prevent blurry text in certain browsers */
8191
+ -webkit-font-smoothing: antialiased;
8192
+ transform: translateZ(0) scale(1, 1);
8193
+
8194
+ &[data-side="top"] {
8195
+ animation-name: slideUp;
8196
+ }
8197
+ &[data-side="bottom"] {
8198
+ animation-name: slideDown;
8199
+ }
8200
+ &[data-side="left"] {
8201
+ animation-name: slideLeft;
8202
+ }
8203
+ &[data-side="right"] {
8204
+ animation-name: slideRight;
8205
+ }
8206
+ @keyframes slideDown {
8207
+ from {
8208
+ opacity: 0;
8209
+ transform: translateY(-10px);
8210
+ }
8211
+ to {
8212
+ opacity: 1;
8213
+ transform: translateY(0);
8214
+ }
8215
+ }
8216
+ @keyframes slideUp {
8217
+ from {
8218
+ opacity: 0;
8219
+ transform: translateY(10px);
8220
+ }
8221
+ to {
8222
+ opacity: 1;
8223
+ transform: translateY(0);
8224
+ }
8225
+ }
8226
+ @keyframes slideLeft {
8227
+ from {
8228
+ opacity: 0;
8229
+ transform: translateX(10px);
8230
+ }
8231
+ to {
8232
+ opacity: 1;
8233
+ transform: translateX(0);
8234
+ }
8235
+ }
8236
+ @keyframes slideRight {
8237
+ from {
8238
+ opacity: 0;
8239
+ transform: translateX(-10px);
8240
+ }
8241
+ to {
8242
+ opacity: 1;
8243
+ transform: translateX(0);
8244
+ }
8245
+ }
8246
+ `;
8247
+ var TooltipContainer = styled38.div`
8248
+ box-sizing: border-box;
8249
+ padding: 8px 12px;
8250
+ border-radius: 4px;
8251
+ font-size: ${coreTokens_default.type_scale_01};
8252
+ font-family: ${coreTokens_default.type_sans};
8253
+ max-width: 242px;
8254
+ color: ${coreTokens_default.color_white};
8255
+ background-color: ${coreTokens_default.color_grey_800};
8256
+ border-color: ${coreTokens_default.color_grey_800};
8257
+ `;
8258
+ var Tooltip_default = DxcTooltip;
8259
+
8260
+ // src/header/Header.tsx
8261
+ import { jsx as jsx42, jsxs as jsxs34 } from "react/jsx-runtime";
8262
+ var Dropdown = (props) => /* @__PURE__ */ jsx42(HeaderDropdown, { children: /* @__PURE__ */ jsx42(Dropdown_default, { ...props }) });
8152
8263
  var getLogoElement = (themeInput, logoLabel) => {
8153
8264
  if (!themeInput)
8154
- return /* @__PURE__ */ jsxs33("svg", { xmlns: "http://www.w3.org/2000/svg", width: "73", height: "40", viewBox: "0 0 73 40", children: [
8155
- /* @__PURE__ */ jsx41("title", { children: "DXC Logo" }),
8156
- /* @__PURE__ */ jsx41("g", { transform: "translate(0)", children: /* @__PURE__ */ jsxs33("g", { children: [
8157
- /* @__PURE__ */ jsx41(
8265
+ return /* @__PURE__ */ jsxs34("svg", { xmlns: "http://www.w3.org/2000/svg", width: "73", height: "40", viewBox: "0 0 73 40", children: [
8266
+ /* @__PURE__ */ jsx42("title", { children: "DXC Logo" }),
8267
+ /* @__PURE__ */ jsx42("g", { transform: "translate(0)", children: /* @__PURE__ */ jsxs34("g", { children: [
8268
+ /* @__PURE__ */ jsx42(
8158
8269
  "path",
8159
8270
  {
8160
8271
  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",
@@ -8162,7 +8273,7 @@ var getLogoElement = (themeInput, logoLabel) => {
8162
8273
  fill: "#010101"
8163
8274
  }
8164
8275
  ),
8165
- /* @__PURE__ */ jsx41(
8276
+ /* @__PURE__ */ jsx42(
8166
8277
  "path",
8167
8278
  {
8168
8279
  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",
@@ -8172,11 +8283,11 @@ var getLogoElement = (themeInput, logoLabel) => {
8172
8283
  )
8173
8284
  ] }) })
8174
8285
  ] });
8175
- else if (typeof themeInput === "string") return /* @__PURE__ */ jsx41(LogoImg2, { alt: logoLabel, src: themeInput });
8286
+ else if (typeof themeInput === "string") return /* @__PURE__ */ jsx42(LogoImg2, { alt: logoLabel, src: themeInput });
8176
8287
  else return themeInput;
8177
8288
  };
8178
- var Content4 = ({ isResponsive, responsiveContent, handleMenu, content }) => {
8179
- return isResponsive ? /* @__PURE__ */ jsx41(MenuContent, { children: responsiveContent(handleMenu) }) : /* @__PURE__ */ jsx41(ContentContainer, { children: content });
8289
+ var Content5 = ({ isResponsive, responsiveContent, handleMenu, content }) => {
8290
+ return isResponsive ? /* @__PURE__ */ jsx42(MenuContent, { children: responsiveContent(handleMenu) }) : /* @__PURE__ */ jsx42(ContentContainer, { children: content });
8180
8291
  };
8181
8292
  var DxcHeader = ({
8182
8293
  underlined = false,
@@ -8217,29 +8328,20 @@ var DxcHeader = ({
8217
8328
  useEffect8(() => {
8218
8329
  !isResponsive && setIsMenuVisible(false);
8219
8330
  }, [isResponsive]);
8220
- return /* @__PURE__ */ jsx41(ThemeProvider25, { theme: colorsTheme.header, children: /* @__PURE__ */ jsxs33(HeaderContainer2, { underlined, margin, ref, children: [
8221
- /* @__PURE__ */ jsx41(LogoAnchor, { tabIndex: onClick ? tabIndex : -1, interactuable: onClick ? true : false, onClick, children: /* @__PURE__ */ jsx41(LogoContainer2, { children: headerLogo }) }),
8222
- isResponsive && responsiveContent && /* @__PURE__ */ jsxs33(Flex_default, { grow: 1, children: [
8223
- /* @__PURE__ */ jsx41(ChildContainer, { children: /* @__PURE__ */ jsxs33(HamburgerTrigger, { tabIndex, onClick: handleMenu, "aria-label": "Show options", children: [
8224
- /* @__PURE__ */ jsx41(Icon_default, { icon: "menu" }),
8331
+ return /* @__PURE__ */ jsx42(ThemeProvider25, { theme: colorsTheme.header, children: /* @__PURE__ */ jsxs34(HeaderContainer2, { underlined, margin, ref, children: [
8332
+ /* @__PURE__ */ jsx42(LogoAnchor, { tabIndex: onClick ? tabIndex : -1, interactuable: onClick ? true : false, onClick, children: /* @__PURE__ */ jsx42(LogoContainer2, { children: headerLogo }) }),
8333
+ isResponsive && responsiveContent && /* @__PURE__ */ jsxs34(Flex_default, { grow: 1, children: [
8334
+ /* @__PURE__ */ jsx42(ChildContainer, { children: /* @__PURE__ */ jsxs34(HamburgerTrigger, { tabIndex, onClick: handleMenu, "aria-label": "Show options", children: [
8335
+ /* @__PURE__ */ jsx42(Icon_default, { icon: "menu" }),
8225
8336
  translatedLabels.header.hamburguerTitle
8226
8337
  ] }) }),
8227
- /* @__PURE__ */ jsxs33(ResponsiveMenu, { hasVisibility: isMenuVisible, children: [
8228
- /* @__PURE__ */ jsxs33(Flex_default, { justifyContent: "space-between", alignItems: "center", children: [
8229
- /* @__PURE__ */ jsx41(ResponsiveLogoContainer, { children: headerResponsiveLogo }),
8230
- /* @__PURE__ */ jsx41(
8231
- CloseAction,
8232
- {
8233
- tabIndex,
8234
- onClick: handleMenu,
8235
- "aria-label": translatedLabels.header.closeIcon,
8236
- title: translatedLabels.header.closeIcon,
8237
- children: /* @__PURE__ */ jsx41(Icon_default, { icon: "close" })
8238
- }
8239
- )
8338
+ /* @__PURE__ */ jsxs34(ResponsiveMenu, { hasVisibility: isMenuVisible, children: [
8339
+ /* @__PURE__ */ jsxs34(Flex_default, { justifyContent: "space-between", alignItems: "center", children: [
8340
+ /* @__PURE__ */ jsx42(ResponsiveLogoContainer, { children: headerResponsiveLogo }),
8341
+ /* @__PURE__ */ jsx42(Tooltip_default, { label: translatedLabels.header.closeIcon, children: /* @__PURE__ */ jsx42(CloseAction, { tabIndex, onClick: handleMenu, "aria-label": translatedLabels.header.closeIcon, children: /* @__PURE__ */ jsx42(Icon_default, { icon: "close" }) }) })
8240
8342
  ] }),
8241
- /* @__PURE__ */ jsx41(
8242
- Content4,
8343
+ /* @__PURE__ */ jsx42(
8344
+ Content5,
8243
8345
  {
8244
8346
  isResponsive,
8245
8347
  responsiveContent,
@@ -8248,10 +8350,10 @@ var DxcHeader = ({
8248
8350
  }
8249
8351
  )
8250
8352
  ] }),
8251
- /* @__PURE__ */ jsx41(Overlay2, { onClick: handleMenu, hasVisibility: isMenuVisible })
8353
+ /* @__PURE__ */ jsx42(Overlay2, { onClick: handleMenu, hasVisibility: isMenuVisible })
8252
8354
  ] }),
8253
- !isResponsive && /* @__PURE__ */ jsx41(
8254
- Content4,
8355
+ !isResponsive && /* @__PURE__ */ jsx42(
8356
+ Content5,
8255
8357
  {
8256
8358
  isResponsive,
8257
8359
  responsiveContent,
@@ -8262,7 +8364,7 @@ var DxcHeader = ({
8262
8364
  ] }) });
8263
8365
  };
8264
8366
  DxcHeader.Dropdown = Dropdown;
8265
- var HeaderDropdown = styled38.div`
8367
+ var HeaderDropdown = styled39.div`
8266
8368
  display: flex;
8267
8369
  button {
8268
8370
  background-color: transparent;
@@ -8271,7 +8373,7 @@ var HeaderDropdown = styled38.div`
8271
8373
  }
8272
8374
  }
8273
8375
  `;
8274
- var HeaderContainer2 = styled38.header`
8376
+ var HeaderContainer2 = styled39.header`
8275
8377
  box-sizing: border-box;
8276
8378
  display: flex;
8277
8379
  flex-direction: row;
@@ -8283,26 +8385,26 @@ var HeaderContainer2 = styled38.header`
8283
8385
  background-color: ${(props) => props.theme.backgroundColor};
8284
8386
  border-bottom: ${(props) => props.underlined && `${props.theme.underlinedThickness} ${props.theme.underlinedStyle} ${props.theme.underlinedColor}`};
8285
8387
  `;
8286
- var LogoAnchor = styled38.a`
8388
+ var LogoAnchor = styled39.a`
8287
8389
  ${(props) => props.interactuable ? "cursor: pointer" : "cursor: default; outline:none;"};
8288
8390
  `;
8289
- var LogoImg2 = styled38.img`
8391
+ var LogoImg2 = styled39.img`
8290
8392
  max-height: ${(props) => props.theme.logoHeight};
8291
8393
  width: ${(props) => props.theme.logoWidth};
8292
8394
  `;
8293
- var LogoContainer2 = styled38.div`
8395
+ var LogoContainer2 = styled39.div`
8294
8396
  max-height: ${(props) => props.theme.logoHeight};
8295
8397
  width: ${(props) => props.theme.logoWidth};
8296
8398
  vertical-align: middle;
8297
8399
  `;
8298
- var ChildContainer = styled38.div`
8400
+ var ChildContainer = styled39.div`
8299
8401
  display: flex;
8300
8402
  align-items: center;
8301
8403
  justify-content: flex-end;
8302
8404
  flex-grow: 1;
8303
8405
  width: calc(100% - 186px);
8304
8406
  `;
8305
- var ContentContainer = styled38.div`
8407
+ var ContentContainer = styled39.div`
8306
8408
  display: flex;
8307
8409
  align-items: center;
8308
8410
  flex-grow: 1;
@@ -8310,7 +8412,7 @@ var ContentContainer = styled38.div`
8310
8412
  width: calc(100% - 186px);
8311
8413
  color: ${(props) => props.theme.contentColor};
8312
8414
  `;
8313
- var HamburgerTrigger = styled38.button`
8415
+ var HamburgerTrigger = styled39.button`
8314
8416
  display: flex;
8315
8417
  flex-direction: column;
8316
8418
  justify-content: center;
@@ -8339,7 +8441,7 @@ var HamburgerTrigger = styled38.button`
8339
8441
  font-weight: ${(props) => props.theme.hamburguerFontWeight};
8340
8442
  color: ${(props) => props.theme.hamburguerFontColor};
8341
8443
  `;
8342
- var ResponsiveMenu = styled38.div`
8444
+ var ResponsiveMenu = styled39.div`
8343
8445
  display: flex;
8344
8446
  flex-direction: column;
8345
8447
  background-color: ${(props) => props.theme.menuBackgroundColor};
@@ -8365,12 +8467,12 @@ var ResponsiveMenu = styled38.div`
8365
8467
  transition-timing-function: ease-in-out;
8366
8468
  box-sizing: border-box;
8367
8469
  `;
8368
- var ResponsiveLogoContainer = styled38.div`
8470
+ var ResponsiveLogoContainer = styled39.div`
8369
8471
  max-height: ${(props) => props.theme.logoHeight};
8370
8472
  width: ${(props) => props.theme.logoWidth};
8371
8473
  display: flex;
8372
8474
  `;
8373
- var CloseAction = styled38.button`
8475
+ var CloseAction = styled39.button`
8374
8476
  display: flex;
8375
8477
  justify-content: center;
8376
8478
  align-content: center;
@@ -8390,14 +8492,14 @@ var CloseAction = styled38.button`
8390
8492
  width: 24px;
8391
8493
  }
8392
8494
  `;
8393
- var MenuContent = styled38.div`
8495
+ var MenuContent = styled39.div`
8394
8496
  display: flex;
8395
8497
  flex-direction: column;
8396
8498
  align-items: flex-start;
8397
8499
  height: 100%;
8398
8500
  color: ${(props) => props.theme.contentColor};
8399
8501
  `;
8400
- var Overlay2 = styled38.div`
8502
+ var Overlay2 = styled39.div`
8401
8503
  position: fixed;
8402
8504
  top: 0;
8403
8505
  left: 0;
@@ -8419,11 +8521,11 @@ var Header_default = DxcHeader;
8419
8521
 
8420
8522
  // src/sidenav/Sidenav.tsx
8421
8523
  import { createContext as createContext5, forwardRef as forwardRef10, useContext as useContext6, useEffect as useEffect9, useState as useState17 } from "react";
8422
- import styled40, { ThemeProvider as ThemeProvider26 } from "styled-components";
8524
+ import styled41, { ThemeProvider as ThemeProvider26 } from "styled-components";
8423
8525
 
8424
8526
  // src/bleed/Bleed.tsx
8425
- import styled39 from "styled-components";
8426
- import { jsx as jsx42 } from "react/jsx-runtime";
8527
+ import styled40 from "styled-components";
8528
+ import { jsx as jsx43 } from "react/jsx-runtime";
8427
8529
  function Bleed({
8428
8530
  space,
8429
8531
  horizontal,
@@ -8434,7 +8536,7 @@ function Bleed({
8434
8536
  left,
8435
8537
  children
8436
8538
  }) {
8437
- return /* @__PURE__ */ jsx42(
8539
+ return /* @__PURE__ */ jsx43(
8438
8540
  StyledBleed,
8439
8541
  {
8440
8542
  space,
@@ -8451,7 +8553,7 @@ function Bleed({
8451
8553
  function getSpacingValue(spacingName) {
8452
8554
  return spacingName ? spacingName : "0rem";
8453
8555
  }
8454
- var StyledBleed = styled39.div`
8556
+ var StyledBleed = styled40.div`
8455
8557
  ${({ space, horizontal, vertical, top, right, bottom, left }) => `
8456
8558
  margin: -${getSpacingValue(top || vertical || space)} -${getSpacingValue(
8457
8559
  right || horizontal || space
@@ -8469,40 +8571,40 @@ var useResponsiveSidenavVisibility = () => {
8469
8571
  };
8470
8572
 
8471
8573
  // src/sidenav/Sidenav.tsx
8472
- import { Fragment as Fragment6, jsx as jsx43, jsxs as jsxs34 } from "react/jsx-runtime";
8574
+ import { Fragment as Fragment7, jsx as jsx44, jsxs as jsxs35 } from "react/jsx-runtime";
8473
8575
  var DxcSidenav = ({ title, children }) => {
8474
8576
  const colorsTheme = useTheme_default();
8475
- return /* @__PURE__ */ jsx43(ThemeProvider26, { theme: colorsTheme.sidenav, children: /* @__PURE__ */ jsxs34(SidenavContainer, { children: [
8577
+ return /* @__PURE__ */ jsx44(ThemeProvider26, { theme: colorsTheme.sidenav, children: /* @__PURE__ */ jsxs35(SidenavContainer, { children: [
8476
8578
  title,
8477
- /* @__PURE__ */ jsx43(Flex_default, { direction: "column", gap: "1rem", children })
8579
+ /* @__PURE__ */ jsx44(Flex_default, { direction: "column", gap: "1rem", children })
8478
8580
  ] }) });
8479
8581
  };
8480
- var Title = ({ children }) => /* @__PURE__ */ jsx43(Bleed, { horizontal: "1rem", children: /* @__PURE__ */ jsx43(SidenavTitle, { children }) });
8481
- var Section = ({ children }) => /* @__PURE__ */ jsxs34(Fragment6, { children: [
8482
- /* @__PURE__ */ jsx43(Bleed, { horizontal: "1rem", children: /* @__PURE__ */ jsx43(Flex_default, { direction: "column", children }) }),
8483
- /* @__PURE__ */ jsx43(Divider, {})
8582
+ var Title = ({ children }) => /* @__PURE__ */ jsx44(Bleed, { horizontal: "1rem", children: /* @__PURE__ */ jsx44(SidenavTitle, { children }) });
8583
+ var Section = ({ children }) => /* @__PURE__ */ jsxs35(Fragment7, { children: [
8584
+ /* @__PURE__ */ jsx44(Bleed, { horizontal: "1rem", children: /* @__PURE__ */ jsx44(Flex_default, { direction: "column", children }) }),
8585
+ /* @__PURE__ */ jsx44(Divider, {})
8484
8586
  ] });
8485
8587
  var GroupContext = createContext5(null);
8486
8588
  var Group = ({ title, collapsable = false, icon, children }) => {
8487
8589
  const [collapsed, setCollapsed] = useState17(false);
8488
8590
  const [isSelected, changeIsSelected] = useState17(false);
8489
- return /* @__PURE__ */ jsx43(GroupContext.Provider, { value: changeIsSelected, children: /* @__PURE__ */ jsxs34(SidenavGroup, { children: [
8490
- collapsable && title ? /* @__PURE__ */ jsxs34(
8591
+ return /* @__PURE__ */ jsx44(GroupContext.Provider, { value: changeIsSelected, children: /* @__PURE__ */ jsxs35(SidenavGroup, { children: [
8592
+ collapsable && title ? /* @__PURE__ */ jsxs35(
8491
8593
  SidenavGroupTitleButton,
8492
8594
  {
8493
8595
  "aria-expanded": !collapsed,
8494
8596
  onClick: () => setCollapsed(!collapsed),
8495
8597
  selectedGroup: collapsed && isSelected,
8496
8598
  children: [
8497
- /* @__PURE__ */ jsxs34(Flex_default, { alignItems: "center", gap: "0.5rem", children: [
8498
- typeof icon === "string" ? /* @__PURE__ */ jsx43(Icon_default, { icon }) : icon,
8599
+ /* @__PURE__ */ jsxs35(Flex_default, { alignItems: "center", gap: "0.5rem", children: [
8600
+ typeof icon === "string" ? /* @__PURE__ */ jsx44(Icon_default, { icon }) : icon,
8499
8601
  title
8500
8602
  ] }),
8501
- /* @__PURE__ */ jsx43(Icon_default, { icon: collapsed ? "expand_more" : "expand_less" })
8603
+ /* @__PURE__ */ jsx44(Icon_default, { icon: collapsed ? "expand_more" : "expand_less" })
8502
8604
  ]
8503
8605
  }
8504
- ) : title && /* @__PURE__ */ jsxs34(SidenavGroupTitle, { children: [
8505
- typeof icon === "string" ? /* @__PURE__ */ jsx43(Icon_default, { icon }) : icon,
8606
+ ) : title && /* @__PURE__ */ jsxs35(SidenavGroupTitle, { children: [
8607
+ typeof icon === "string" ? /* @__PURE__ */ jsx44(Icon_default, { icon }) : icon,
8506
8608
  title
8507
8609
  ] }),
8508
8610
  !collapsed && children
@@ -8519,7 +8621,7 @@ var Link = forwardRef10(
8519
8621
  useEffect9(() => {
8520
8622
  changeIsGroupSelected?.((isGroupSelected2) => !isGroupSelected2 ? selected : isGroupSelected2);
8521
8623
  }, [selected, changeIsGroupSelected]);
8522
- return /* @__PURE__ */ jsxs34(
8624
+ return /* @__PURE__ */ jsxs35(
8523
8625
  SidenavLink,
8524
8626
  {
8525
8627
  selected,
@@ -8530,17 +8632,17 @@ var Link = forwardRef10(
8530
8632
  onClick: handleClick,
8531
8633
  ...otherProps,
8532
8634
  children: [
8533
- /* @__PURE__ */ jsxs34(Flex_default, { alignItems: "center", gap: "0.5rem", children: [
8534
- typeof icon === "string" ? /* @__PURE__ */ jsx43(Icon_default, { icon }) : icon,
8635
+ /* @__PURE__ */ jsxs35(Flex_default, { alignItems: "center", gap: "0.5rem", children: [
8636
+ typeof icon === "string" ? /* @__PURE__ */ jsx44(Icon_default, { icon }) : icon,
8535
8637
  children
8536
8638
  ] }),
8537
- newWindow && /* @__PURE__ */ jsx43(Icon_default, { icon: "open_in_new" })
8639
+ newWindow && /* @__PURE__ */ jsx44(Icon_default, { icon: "open_in_new" })
8538
8640
  ]
8539
8641
  }
8540
8642
  );
8541
8643
  }
8542
8644
  );
8543
- var SidenavContainer = styled40.div`
8645
+ var SidenavContainer = styled41.div`
8544
8646
  box-sizing: border-box;
8545
8647
  display: flex;
8546
8648
  flex-direction: column;
@@ -8565,7 +8667,7 @@ var SidenavContainer = styled40.div`
8565
8667
  border-radius: 3px;
8566
8668
  }
8567
8669
  `;
8568
- var SidenavTitle = styled40.div`
8670
+ var SidenavTitle = styled41.div`
8569
8671
  display: flex;
8570
8672
  align-items: center;
8571
8673
  padding: 0.5rem 1.2rem;
@@ -8577,7 +8679,7 @@ var SidenavTitle = styled40.div`
8577
8679
  letter-spacing: ${(props) => props.theme.titleFontLetterSpacing};
8578
8680
  text-transform: ${(props) => props.theme.titleFontTextTransform};
8579
8681
  `;
8580
- var Divider = styled40.div`
8682
+ var Divider = styled41.div`
8581
8683
  width: 100%;
8582
8684
  height: 1px;
8583
8685
  background-color: ${coreTokens_default.color_grey_400};
@@ -8586,12 +8688,12 @@ var Divider = styled40.div`
8586
8688
  display: none;
8587
8689
  }
8588
8690
  `;
8589
- var SidenavGroup = styled40.div`
8691
+ var SidenavGroup = styled41.div`
8590
8692
  a {
8591
8693
  padding: 0.5rem 1.2rem 0.5rem 2.25rem;
8592
8694
  }
8593
8695
  `;
8594
- var SidenavGroupTitle = styled40.span`
8696
+ var SidenavGroupTitle = styled41.span`
8595
8697
  box-sizing: border-box;
8596
8698
  display: flex;
8597
8699
  align-items: center;
@@ -8609,7 +8711,7 @@ var SidenavGroupTitle = styled40.span`
8609
8711
  width: 16px;
8610
8712
  }
8611
8713
  `;
8612
- var SidenavGroupTitleButton = styled40.button`
8714
+ var SidenavGroupTitleButton = styled41.button`
8613
8715
  all: unset;
8614
8716
  box-sizing: border-box;
8615
8717
  display: flex;
@@ -8644,7 +8746,7 @@ var SidenavGroupTitleButton = styled40.button`
8644
8746
  width: 16px;
8645
8747
  }
8646
8748
  `;
8647
- var SidenavLink = styled40.a`
8749
+ var SidenavLink = styled41.a`
8648
8750
  display: flex;
8649
8751
  align-items: center;
8650
8752
  justify-content: space-between;
@@ -8690,9 +8792,9 @@ DxcSidenav.Title = Title;
8690
8792
  var Sidenav_default = DxcSidenav;
8691
8793
 
8692
8794
  // src/layout/Icons.tsx
8693
- import { jsx as jsx44, jsxs as jsxs35 } from "react/jsx-runtime";
8795
+ import { jsx as jsx45, jsxs as jsxs36 } from "react/jsx-runtime";
8694
8796
  var layoutIcons = {
8695
- facebookLogo: /* @__PURE__ */ jsx44(
8797
+ facebookLogo: /* @__PURE__ */ jsx45(
8696
8798
  "svg",
8697
8799
  {
8698
8800
  version: "1.1",
@@ -8702,7 +8804,7 @@ var layoutIcons = {
8702
8804
  height: "438.536px",
8703
8805
  viewBox: "0 0 438.536 438.536",
8704
8806
  fill: "#FFFFFF",
8705
- children: /* @__PURE__ */ jsx44("g", { children: /* @__PURE__ */ jsx44(
8807
+ children: /* @__PURE__ */ jsx45("g", { children: /* @__PURE__ */ jsx45(
8706
8808
  "path",
8707
8809
  {
8708
8810
  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"
@@ -8710,9 +8812,9 @@ var layoutIcons = {
8710
8812
  ) })
8711
8813
  }
8712
8814
  ),
8713
- xLogo: /* @__PURE__ */ jsxs35("svg", { width: "256", height: "256", viewBox: "0 0 256 256", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
8714
- /* @__PURE__ */ jsx44("rect", { width: "256", height: "256", rx: "40", fill: "white" }),
8715
- /* @__PURE__ */ jsx44(
8815
+ xLogo: /* @__PURE__ */ jsxs36("svg", { width: "256", height: "256", viewBox: "0 0 256 256", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
8816
+ /* @__PURE__ */ jsx45("rect", { width: "256", height: "256", rx: "40", fill: "white" }),
8817
+ /* @__PURE__ */ jsx45(
8716
8818
  "path",
8717
8819
  {
8718
8820
  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",
@@ -8720,7 +8822,7 @@ var layoutIcons = {
8720
8822
  }
8721
8823
  )
8722
8824
  ] }),
8723
- linkedinLogo: /* @__PURE__ */ jsx44(
8825
+ linkedinLogo: /* @__PURE__ */ jsx45(
8724
8826
  "svg",
8725
8827
  {
8726
8828
  version: "1.1",
@@ -8730,7 +8832,7 @@ var layoutIcons = {
8730
8832
  height: "438.536px",
8731
8833
  viewBox: "0 0 438.536 438.536",
8732
8834
  fill: "#FFFFFF",
8733
- children: /* @__PURE__ */ jsx44("g", { children: /* @__PURE__ */ jsx44(
8835
+ children: /* @__PURE__ */ jsx45("g", { children: /* @__PURE__ */ jsx45(
8734
8836
  "path",
8735
8837
  {
8736
8838
  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"
@@ -8742,11 +8844,11 @@ var layoutIcons = {
8742
8844
  var Icons_default2 = layoutIcons;
8743
8845
 
8744
8846
  // src/layout/ApplicationLayout.tsx
8745
- import { Fragment as Fragment7, jsx as jsx45, jsxs as jsxs36 } from "react/jsx-runtime";
8847
+ import { Fragment as Fragment8, jsx as jsx46, jsxs as jsxs37 } from "react/jsx-runtime";
8746
8848
  var year = (/* @__PURE__ */ new Date()).getFullYear();
8747
- var Main = ({ children }) => /* @__PURE__ */ jsx45(Fragment7, { children });
8748
- var defaultHeader = () => /* @__PURE__ */ jsx45(Header_default, { underlined: true });
8749
- var defaultFooter = () => /* @__PURE__ */ jsx45(
8849
+ var Main = ({ children }) => /* @__PURE__ */ jsx46(Fragment8, { children });
8850
+ var defaultHeader = () => /* @__PURE__ */ jsx46(Header_default, { underlined: true });
8851
+ var defaultFooter = () => /* @__PURE__ */ jsx46(
8750
8852
  Footer_default,
8751
8853
  {
8752
8854
  copyright: `\xA9 DXC Technology ${year}\u200B\u200B\u200B\u200B. All rights reserved.`,
@@ -8815,30 +8917,29 @@ var DxcApplicationLayout = ({
8815
8917
  useEffect10(() => {
8816
8918
  !isResponsive && setIsSidenavVisibleResponsive(false);
8817
8919
  }, [isResponsive]);
8818
- return /* @__PURE__ */ jsxs36(
8920
+ return /* @__PURE__ */ jsxs37(
8819
8921
  ApplicationLayoutContainer,
8820
8922
  {
8821
8923
  hasSidenav: sidenav ? true : false,
8822
8924
  isSidenavVisible: isSidenavVisibleResponsive,
8823
8925
  ref,
8824
8926
  children: [
8825
- /* @__PURE__ */ jsx45(HeaderContainer3, { children: headerContent }),
8826
- sidenav && isResponsive && /* @__PURE__ */ jsx45(VisibilityToggle, { children: /* @__PURE__ */ jsxs36(
8927
+ /* @__PURE__ */ jsx46(HeaderContainer3, { children: headerContent }),
8928
+ sidenav && isResponsive && /* @__PURE__ */ jsx46(VisibilityToggle, { children: /* @__PURE__ */ jsx46(Tooltip_default, { label: translatedLabels.applicationLayout.visibilityToggleTitle, children: /* @__PURE__ */ jsxs37(
8827
8929
  HamburgerTrigger2,
8828
8930
  {
8829
8931
  onClick: handleSidenavVisibility,
8830
8932
  "aria-label": visibilityToggleLabel ? void 0 : translatedLabels.applicationLayout.visibilityToggleTitle,
8831
- title: translatedLabels.applicationLayout.visibilityToggleTitle,
8832
8933
  children: [
8833
- /* @__PURE__ */ jsx45(Icon_default, { icon: "Menu" }),
8934
+ /* @__PURE__ */ jsx46(Icon_default, { icon: "Menu" }),
8834
8935
  visibilityToggleLabel
8835
8936
  ]
8836
8937
  }
8837
- ) }),
8838
- /* @__PURE__ */ jsxs36(BodyContainer, { children: [
8839
- /* @__PURE__ */ jsx45(SidenavContextProvider, { value: setIsSidenavVisibleResponsive, children: sidenav && (isResponsive ? isSidenavVisibleResponsive : true) && /* @__PURE__ */ jsx45(SidenavContainer2, { children: sidenav }) }),
8840
- /* @__PURE__ */ jsxs36(MainContainer2, { children: [
8841
- /* @__PURE__ */ jsx45(MainContentContainer, { children: main }),
8938
+ ) }) }),
8939
+ /* @__PURE__ */ jsxs37(BodyContainer, { children: [
8940
+ /* @__PURE__ */ jsx46(SidenavContextProvider, { value: setIsSidenavVisibleResponsive, children: sidenav && (isResponsive ? isSidenavVisibleResponsive : true) && /* @__PURE__ */ jsx46(SidenavContainer2, { children: sidenav }) }),
8941
+ /* @__PURE__ */ jsxs37(MainContainer2, { children: [
8942
+ /* @__PURE__ */ jsx46(MainContentContainer, { children: main }),
8842
8943
  footerContent
8843
8944
  ] })
8844
8945
  ] })
@@ -8846,7 +8947,7 @@ var DxcApplicationLayout = ({
8846
8947
  }
8847
8948
  );
8848
8949
  };
8849
- var ApplicationLayoutContainer = styled41.div`
8950
+ var ApplicationLayoutContainer = styled42.div`
8850
8951
  position: absolute;
8851
8952
  top: 64px;
8852
8953
  bottom: 0;
@@ -8860,14 +8961,14 @@ var ApplicationLayoutContainer = styled41.div`
8860
8961
  ${(props) => props.isSidenavVisible && "overflow: hidden;"}
8861
8962
  }
8862
8963
  `;
8863
- var HeaderContainer3 = styled41.div`
8964
+ var HeaderContainer3 = styled42.div`
8864
8965
  position: fixed;
8865
8966
  top: 0;
8866
8967
  left: 0;
8867
8968
  right: 0;
8868
8969
  z-index: 3;
8869
8970
  `;
8870
- var VisibilityToggle = styled41.div`
8971
+ var VisibilityToggle = styled42.div`
8871
8972
  position: fixed;
8872
8973
  top: 64px;
8873
8974
  left: 0;
@@ -8881,7 +8982,7 @@ var VisibilityToggle = styled41.div`
8881
8982
  user-select: none;
8882
8983
  z-index: 2;
8883
8984
  `;
8884
- var HamburgerTrigger2 = styled41.button`
8985
+ var HamburgerTrigger2 = styled42.button`
8885
8986
  display: flex;
8886
8987
  flex-wrap: wrap;
8887
8988
  gap: 10px;
@@ -8910,12 +9011,12 @@ var HamburgerTrigger2 = styled41.button`
8910
9011
  font-size: 20px;
8911
9012
  }
8912
9013
  `;
8913
- var BodyContainer = styled41.div`
9014
+ var BodyContainer = styled42.div`
8914
9015
  display: flex;
8915
9016
  flex-direction: row;
8916
9017
  flex: 1;
8917
9018
  `;
8918
- var SidenavContainer2 = styled41.div`
9019
+ var SidenavContainer2 = styled42.div`
8919
9020
  position: sticky;
8920
9021
  top: 64px;
8921
9022
  display: flex;
@@ -8928,12 +9029,12 @@ var SidenavContainer2 = styled41.div`
8928
9029
  height: 100%;
8929
9030
  }
8930
9031
  `;
8931
- var MainContainer2 = styled41.div`
9032
+ var MainContainer2 = styled42.div`
8932
9033
  display: flex;
8933
9034
  flex-direction: column;
8934
9035
  width: 100%;
8935
9036
  `;
8936
- var MainContentContainer = styled41.main`
9037
+ var MainContentContainer = styled42.main`
8937
9038
  flex: 1;
8938
9039
  background-color: #fff;
8939
9040
  `;
@@ -8947,117 +9048,6 @@ var ApplicationLayout_default = DxcApplicationLayout;
8947
9048
  // src/toggle-group/ToggleGroup.tsx
8948
9049
  import { useId as useId9, useState as useState19 } from "react";
8949
9050
  import styled43, { ThemeProvider as ThemeProvider27 } from "styled-components";
8950
-
8951
- // src/tooltip/Tooltip.tsx
8952
- import * as Tooltip from "@radix-ui/react-tooltip";
8953
- import styled42 from "styled-components";
8954
- import { Fragment as Fragment8, jsx as jsx46, jsxs as jsxs37 } from "react/jsx-runtime";
8955
- var triangleIcon = /* @__PURE__ */ jsx46(
8956
- "svg",
8957
- {
8958
- width: "12",
8959
- height: "6",
8960
- viewBox: "0 0 12 6",
8961
- xmlns: "http://www.w3.org/2000/svg",
8962
- preserveAspectRatio: "none",
8963
- display: "block",
8964
- children: /* @__PURE__ */ jsx46(
8965
- "path",
8966
- {
8967
- d: "M0.351562 0L5.30131 4.94975C5.69184 5.34027 6.325 5.34027 6.71552 4.94975L11.6653 0H6.00842H0.351562Z",
8968
- fill: coreTokens_default.color_grey_800
8969
- }
8970
- )
8971
- }
8972
- );
8973
- var DxcTooltip = ({ position = "bottom", label, children }) => label ? /* @__PURE__ */ jsx46(Tooltip.Provider, { delayDuration: 300, children: /* @__PURE__ */ jsxs37(Tooltip.Root, { children: [
8974
- /* @__PURE__ */ jsx46(Tooltip.Trigger, { asChild: true, children: /* @__PURE__ */ jsx46(TooltipTriggerContainer, { children }) }),
8975
- /* @__PURE__ */ jsx46(Tooltip.Portal, { children: /* @__PURE__ */ jsxs37(StyledTooltipContent, { side: position, sideOffset: 8, children: [
8976
- /* @__PURE__ */ jsx46(TooltipContainer, { children: label }),
8977
- /* @__PURE__ */ jsx46(Tooltip.Arrow, { asChild: true, "aria-hidden": true, children: triangleIcon })
8978
- ] }) })
8979
- ] }) }) : /* @__PURE__ */ jsx46(Fragment8, { children });
8980
- var TooltipTriggerContainer = styled42.div`
8981
- display: inline-flex;
8982
- position: relative;
8983
- `;
8984
- var StyledTooltipContent = styled42(Tooltip.Content)`
8985
- z-index: 2147483647;
8986
-
8987
- animation-duration: 0.2s;
8988
- animation-timing-function: ease-out;
8989
-
8990
- /* Additional optimization to prevent blurry text in certain browsers */
8991
- -webkit-font-smoothing: antialiased;
8992
- transform: translateZ(0) scale(1, 1);
8993
-
8994
- &[data-side="top"] {
8995
- animation-name: slideUp;
8996
- }
8997
- &[data-side="bottom"] {
8998
- animation-name: slideDown;
8999
- }
9000
- &[data-side="left"] {
9001
- animation-name: slideLeft;
9002
- }
9003
- &[data-side="right"] {
9004
- animation-name: slideRight;
9005
- }
9006
- @keyframes slideDown {
9007
- from {
9008
- opacity: 0;
9009
- transform: translateY(-10px);
9010
- }
9011
- to {
9012
- opacity: 1;
9013
- transform: translateY(0);
9014
- }
9015
- }
9016
- @keyframes slideUp {
9017
- from {
9018
- opacity: 0;
9019
- transform: translateY(10px);
9020
- }
9021
- to {
9022
- opacity: 1;
9023
- transform: translateY(0);
9024
- }
9025
- }
9026
- @keyframes slideLeft {
9027
- from {
9028
- opacity: 0;
9029
- transform: translateX(10px);
9030
- }
9031
- to {
9032
- opacity: 1;
9033
- transform: translateX(0);
9034
- }
9035
- }
9036
- @keyframes slideRight {
9037
- from {
9038
- opacity: 0;
9039
- transform: translateX(-10px);
9040
- }
9041
- to {
9042
- opacity: 1;
9043
- transform: translateX(0);
9044
- }
9045
- }
9046
- `;
9047
- var TooltipContainer = styled42.div`
9048
- box-sizing: border-box;
9049
- padding: 8px 12px;
9050
- border-radius: 4px;
9051
- font-size: ${coreTokens_default.type_scale_01};
9052
- font-family: ${coreTokens_default.type_sans};
9053
- max-width: 242px;
9054
- color: ${coreTokens_default.color_white};
9055
- background-color: ${coreTokens_default.color_grey_800};
9056
- border-color: ${coreTokens_default.color_grey_800};
9057
- `;
9058
- var Tooltip_default = DxcTooltip;
9059
-
9060
- // src/toggle-group/ToggleGroup.tsx
9061
9051
  import { jsx as jsx47, jsxs as jsxs38 } from "react/jsx-runtime";
9062
9052
  var DxcToggleGroup = ({
9063
9053
  label,