@digital-ai/dot-components 4.20.3 → 4.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
3
  import React__default, { useEffect, useState, useRef, createContext, useMemo, useContext, forwardRef, useCallback, createElement, Fragment as Fragment$1, useLayoutEffect } from 'react';
4
- import { Typography, Fade, StyledEngineProvider, Tooltip, InputAdornment, InputLabel, TextField, Icon, Accordion, AccordionSummary, AccordionDetails, AccordionActions, Toolbar, Alert, Avatar, Button, Link, List, ListSubheader, Divider, CircularProgress, Popper, MenuList, MenuItem, Paper, ClickAwayListener, Drawer, IconButton, ListItem, ListItemButton, Collapse, ListItemIcon, ListItemText, Badge, useMediaQuery, Chip, Autocomplete, AvatarGroup, Breadcrumbs, ToggleButtonGroup, ToggleButton, Card, CardContent, CardHeader, FormControlLabel, Checkbox, FormControl, FormGroup, FormLabel, FormHelperText, Dialog, DialogContent, DialogActions, useTheme as useTheme$1, Snackbar, RadioGroup, Radio, Switch, Skeleton, ButtonGroup, Stepper, Step, StepLabel, TablePagination, TableContainer, TableBody, TableCell, TableRow, TableSortLabel, TableHead, Table, Tabs, Tab, LinearProgress, Slide } from '@mui/material';
4
+ import { Typography, Fade, StyledEngineProvider, Tooltip, InputAdornment, InputLabel, TextField, Icon, Accordion, AccordionSummary, AccordionDetails, AccordionActions, Toolbar, Alert, Avatar, Button, Link, List, ListSubheader, Divider, CircularProgress, Popper, MenuList, MenuItem, Paper, ClickAwayListener, Drawer, IconButton, ListItem, ListItemButton, Collapse, ListItemIcon, ListItemText, Badge, useMediaQuery, Chip, Autocomplete, AvatarGroup, Breadcrumbs, ToggleButtonGroup, ToggleButton, Card, CardContent, CardHeader, FormControlLabel, Checkbox, FormControl, FormGroup, FormLabel, FormHelperText, Dialog, DialogContent, DialogActions, useTheme as useTheme$1, Snackbar, RadioGroup, Radio, Switch, Skeleton, ButtonGroup, Stepper, Step, StepLabel, TablePagination, TableContainer, TableBody, TableCell, TableRow, TableSortLabel, TableHead, Table, Tabs, Tab, LinearProgress, Slide, Stack } from '@mui/material';
5
5
  import { createTheme, ThemeProvider, useTheme } from '@mui/material/styles';
6
6
  import styled, { createGlobalStyle, ThemeProvider as ThemeProvider$1, css, keyframes } from 'styled-components';
7
7
  import '@digital-ai/dot-icons';
@@ -1382,7 +1382,7 @@ const readOnlyStyles = theme => css`
1382
1382
  }
1383
1383
  `;
1384
1384
 
1385
- const rootClassName$1o = 'dot-text-field';
1385
+ const rootClassName$1p = 'dot-text-field';
1386
1386
  const rootSelectClassName = 'dot-select-field';
1387
1387
  const wrapperClassName$2 = 'dot-label-wrapper';
1388
1388
  const labelClassName = 'dot-input-label';
@@ -1436,7 +1436,7 @@ const StyledTextField = styled(TextField)`
1436
1436
  $maxRows,
1437
1437
  $minRows
1438
1438
  }) => css`
1439
- &.${rootClassName$1o} {
1439
+ &.${rootClassName$1p} {
1440
1440
  .MuiInputBase-root {
1441
1441
  margin-bottom: 0;
1442
1442
 
@@ -1520,7 +1520,7 @@ const StyledTextField = styled(TextField)`
1520
1520
  margin-right: ${theme.spacing(2)};
1521
1521
  }
1522
1522
 
1523
- &.${rootSelectClassName}, &.${rootClassName$1o} {
1523
+ &.${rootSelectClassName}, &.${rootClassName$1p} {
1524
1524
  .${adornmentIconClassName} {
1525
1525
  color: ${theme.palette.figma.icon.black};
1526
1526
  p {
@@ -1621,13 +1621,13 @@ const StyledTextField = styled(TextField)`
1621
1621
  `}
1622
1622
  `;
1623
1623
 
1624
- const rootClassName$1n = 'dot-icon';
1624
+ const rootClassName$1o = 'dot-icon';
1625
1625
  const aiIconClassName = 'dot-icon-ai';
1626
1626
  const StyledIcon = styled(Icon)`
1627
1627
  ${({
1628
1628
  theme
1629
1629
  }) => css`
1630
- &.${rootClassName$1n} {
1630
+ &.${rootClassName$1o} {
1631
1631
  color: ${theme.palette.figma.icon.black};
1632
1632
  font-size: 20px;
1633
1633
 
@@ -1677,7 +1677,7 @@ const DotIcon = ({
1677
1677
  tooltip,
1678
1678
  ai = false
1679
1679
  }) => {
1680
- const rootClasses = useStylesWithRootClass(rootClassName$1n, className, ai ? aiIconClassName : '');
1680
+ const rootClasses = useStylesWithRootClass(rootClassName$1o, className, ai ? aiIconClassName : '');
1681
1681
  return jsx(DotTooltip, {
1682
1682
  disableInteractive: disableInteractive,
1683
1683
  childrenDisplayStyle: "inline-block",
@@ -1701,7 +1701,7 @@ const DotIcon = ({
1701
1701
  });
1702
1702
  };
1703
1703
 
1704
- const rootClassName$1m = 'dot-accordion';
1704
+ const rootClassName$1n = 'dot-accordion';
1705
1705
  const summaryClassName = 'dot-accordion-summary';
1706
1706
  const detailClassName = 'dot-accordion-details';
1707
1707
  const StyledAccordion = styled(Accordion)`
@@ -1712,7 +1712,7 @@ const StyledAccordion = styled(Accordion)`
1712
1712
  background: ${theme.palette.figma.background.level1.white};
1713
1713
  }
1714
1714
 
1715
- &.${rootClassName$1m} .${summaryClassName} {
1715
+ &.${rootClassName$1n} .${summaryClassName} {
1716
1716
  align-items: center;
1717
1717
  background: ${theme.palette.figma.background.level1.white};
1718
1718
  color: ${theme.palette.figma.typography.black};
@@ -1757,7 +1757,7 @@ const DotAccordion = ({
1757
1757
  ariaLabel,
1758
1758
  children,
1759
1759
  className,
1760
- 'data-pendoid': dataPendoId = rootClassName$1m,
1760
+ 'data-pendoid': dataPendoId = rootClassName$1n,
1761
1761
  'data-testid': dataTestId = 'dot-accordion',
1762
1762
  disabled = false,
1763
1763
  expanded,
@@ -1768,7 +1768,7 @@ const DotAccordion = ({
1768
1768
  summary,
1769
1769
  noWrap = true
1770
1770
  }) => {
1771
- const rootClasses = useStylesWithRootClass(rootClassName$1m, className);
1771
+ const rootClasses = useStylesWithRootClass(rootClassName$1n, className);
1772
1772
  const [elevation, setElevation] = useState();
1773
1773
  useEffect(() => {
1774
1774
  if (onChange && expanded === undefined) {
@@ -1819,15 +1819,15 @@ const DotAccordion = ({
1819
1819
  });
1820
1820
  };
1821
1821
 
1822
- const rootClassName$1l = 'dot-action-toolbar';
1822
+ const rootClassName$1m = 'dot-action-toolbar';
1823
1823
  const StyledToolbar = styled(Toolbar)`
1824
1824
  ${({
1825
1825
  theme
1826
1826
  }) => css`
1827
- &.${rootClassName$1l} {
1827
+ &.${rootClassName$1m} {
1828
1828
  border-bottom: 1px solid ${theme.palette.figma.border.default};
1829
1829
 
1830
- .${rootClassName$1o} .MuiInputBase-root {
1830
+ .${rootClassName$1p} .MuiInputBase-root {
1831
1831
  margin-bottom: 0;
1832
1832
  }
1833
1833
  }
@@ -1841,7 +1841,7 @@ const DotActionToolbar = ({
1841
1841
  'data-testid': dataTestId,
1842
1842
  variant = 'dense'
1843
1843
  }) => {
1844
- const rootClasses = useStylesWithRootClass(rootClassName$1l, className);
1844
+ const rootClasses = useStylesWithRootClass(rootClassName$1m, className);
1845
1845
  return jsx(StyledToolbar, {
1846
1846
  "aria-label": ariaLabel,
1847
1847
  className: rootClasses,
@@ -1851,12 +1851,12 @@ const DotActionToolbar = ({
1851
1851
  });
1852
1852
  };
1853
1853
 
1854
- const rootClassName$1k = 'dot-alert-banner';
1854
+ const rootClassName$1l = 'dot-alert-banner';
1855
1855
  const StyledAlertBanner = styled(Alert)`
1856
1856
  ${({
1857
1857
  theme
1858
1858
  }) => css`
1859
- &.${rootClassName$1k} {
1859
+ &.${rootClassName$1l} {
1860
1860
  align-items: center;
1861
1861
  box-sizing: border-box;
1862
1862
  min-height: 48px;
@@ -1891,7 +1891,7 @@ const DotAlertBanner = ({
1891
1891
  ariaLabel,
1892
1892
  children,
1893
1893
  className,
1894
- 'data-pendoid': dataPendoId = rootClassName$1k,
1894
+ 'data-pendoid': dataPendoId = rootClassName$1l,
1895
1895
  'data-testid': dataTestId,
1896
1896
  onClose,
1897
1897
  roundedCorners = true,
@@ -1899,7 +1899,7 @@ const DotAlertBanner = ({
1899
1899
  textVariant = 'body1',
1900
1900
  width
1901
1901
  }) => {
1902
- const rootClasses = useStylesWithRootClass(rootClassName$1k, severity, className);
1902
+ const rootClasses = useStylesWithRootClass(rootClassName$1l, severity, className);
1903
1903
  /* For simple string use default component, for everything else use 'div' */
1904
1904
  const typographyComponent = isString$2(children) ? undefined : 'div';
1905
1905
  return jsx(StyledAlertBanner, {
@@ -1942,12 +1942,12 @@ const DotAppLogo = ({
1942
1942
  });
1943
1943
  };
1944
1944
 
1945
- const rootClassName$1j = 'dot-annotation';
1945
+ const rootClassName$1k = 'dot-annotation';
1946
1946
  const StyledAnnotation = styled.kbd`
1947
1947
  ${({
1948
1948
  theme
1949
1949
  }) => css`
1950
- &.${rootClassName$1j} {
1950
+ &.${rootClassName$1k} {
1951
1951
  font-family: inherit;
1952
1952
  background-color: ${theme.palette.figma.background.level0.bckgGray};
1953
1953
  color: ${theme.palette.figma.typography.disabled};
@@ -1973,13 +1973,13 @@ const StyledAnnotation = styled.kbd`
1973
1973
 
1974
1974
  const DotAnnotation = ({
1975
1975
  ariaLabel,
1976
- 'data-pendoid': dataPendoId = rootClassName$1j,
1976
+ 'data-pendoid': dataPendoId = rootClassName$1k,
1977
1977
  'data-testid': dataTestId,
1978
1978
  className,
1979
1979
  content,
1980
1980
  type = 'primary'
1981
1981
  }) => {
1982
- const rootClasses = useStylesWithRootClass(rootClassName$1j, className, type === 'secondary' ? 'secondary' : '');
1982
+ const rootClasses = useStylesWithRootClass(rootClassName$1k, className, type === 'secondary' ? 'secondary' : '');
1983
1983
  return jsx(StyledAnnotation, {
1984
1984
  "aria-label": ariaLabel,
1985
1985
  className: rootClasses,
@@ -2624,7 +2624,7 @@ const useDotCoreApiContext = () => {
2624
2624
  return useContext(DotCoreApiContext);
2625
2625
  };
2626
2626
 
2627
- const rootClassName$1i = 'dot-avatar';
2627
+ const rootClassName$1j = 'dot-avatar';
2628
2628
  const avatarSpacing = {
2629
2629
  small: 3,
2630
2630
  medium: 5,
@@ -2634,7 +2634,7 @@ const StyledAvatar = styled(Avatar)`
2634
2634
  ${({
2635
2635
  theme
2636
2636
  }) => css`
2637
- &.${rootClassName$1i} {
2637
+ &.${rootClassName$1j} {
2638
2638
  display: inline-flex;
2639
2639
  background-color: ${({
2640
2640
  color
@@ -2747,7 +2747,7 @@ const DotAvatar = ({
2747
2747
  variant = 'circular',
2748
2748
  style
2749
2749
  }) => {
2750
- const rootClasses = useStylesWithRootClass(rootClassName$1i, className);
2750
+ const rootClasses = useStylesWithRootClass(rootClassName$1j, className);
2751
2751
  const getAvatarColor = () => {
2752
2752
  if ((style === null || style === void 0 ? void 0 : style.color) !== undefined) return 'inherit';
2753
2753
  if (color) return color;
@@ -2788,12 +2788,12 @@ const DotAvatar = ({
2788
2788
  });
2789
2789
  };
2790
2790
 
2791
- const rootClassName$1h = 'dot-button';
2791
+ const rootClassName$1i = 'dot-button';
2792
2792
  const StyledButton = styled(Button)`
2793
2793
  ${({
2794
2794
  theme
2795
2795
  }) => css`
2796
- &.${rootClassName$1h} {
2796
+ &.${rootClassName$1i} {
2797
2797
  background-color: ${theme.palette.figma.primary.normal};
2798
2798
  margin: ${theme.spacing(0.5)};
2799
2799
  padding: ${theme.spacing(0.75, 2)};
@@ -2946,7 +2946,7 @@ const DotButton = forwardRef(({
2946
2946
  autoFocus = false,
2947
2947
  children,
2948
2948
  className,
2949
- 'data-pendoid': dataPendoId = rootClassName$1h,
2949
+ 'data-pendoid': dataPendoId = rootClassName$1i,
2950
2950
  'data-testid': dataTestId,
2951
2951
  disabled = false,
2952
2952
  disableInteractive,
@@ -2964,7 +2964,7 @@ const DotButton = forwardRef(({
2964
2964
  tooltipPlacement,
2965
2965
  type = 'primary'
2966
2966
  }, ref) => {
2967
- const rootClasses = useStylesWithRootClass(rootClassName$1h, className);
2967
+ const rootClasses = useStylesWithRootClass(rootClassName$1i, className);
2968
2968
  let color;
2969
2969
  let variant;
2970
2970
  switch (type) {
@@ -2995,7 +2995,7 @@ const DotButton = forwardRef(({
2995
2995
  }
2996
2996
  return jsx(DotTooltip, {
2997
2997
  childrenDisplayStyle: "inline-block",
2998
- "data-testid": `${dataTestId || rootClassName$1h}-tooltip`,
2998
+ "data-testid": `${dataTestId || rootClassName$1i}-tooltip`,
2999
2999
  disableInteractive: disableInteractive,
3000
3000
  placement: tooltipPlacement,
3001
3001
  title: tooltip,
@@ -3007,7 +3007,7 @@ const DotButton = forwardRef(({
3007
3007
  },
3008
3008
  color: color,
3009
3009
  "data-pendoid": dataPendoId,
3010
- "data-testid": dataTestId || rootClassName$1h,
3010
+ "data-testid": dataTestId || rootClassName$1i,
3011
3011
  disableRipple: disableRipple,
3012
3012
  disabled: disabled,
3013
3013
  endIcon: endIcon,
@@ -3027,10 +3027,10 @@ const DotButton = forwardRef(({
3027
3027
  });
3028
3028
  });
3029
3029
 
3030
- const rootClassName$1g = 'dot-link';
3030
+ const rootClassName$1h = 'dot-link';
3031
3031
  const StyledLink = styled(Link)`
3032
3032
  ${() => css`
3033
- &.${rootClassName$1g} {
3033
+ &.${rootClassName$1h} {
3034
3034
  cursor: pointer;
3035
3035
 
3036
3036
  &:hover.MuiLink-underlineHover {
@@ -3046,7 +3046,7 @@ const DotLink = ({
3046
3046
  children,
3047
3047
  className,
3048
3048
  color = 'primary',
3049
- 'data-pendoid': dataPendoId = rootClassName$1g,
3049
+ 'data-pendoid': dataPendoId = rootClassName$1h,
3050
3050
  'data-testid': dataTestId,
3051
3051
  href,
3052
3052
  onClick,
@@ -3059,7 +3059,7 @@ const DotLink = ({
3059
3059
  underline = 'always',
3060
3060
  variant = 'body1'
3061
3061
  }) => {
3062
- const rootClasses = useStylesWithRootClass(rootClassName$1g, className);
3062
+ const rootClasses = useStylesWithRootClass(rootClassName$1h, className);
3063
3063
  useEffect(() => {
3064
3064
  // Include a console warning if the link is not a string and no ariaLabel is provided
3065
3065
  if (!isString$2(children) && !ariaLabel) {
@@ -3110,7 +3110,7 @@ const CreateUUID = () => {
3110
3110
  });
3111
3111
  };
3112
3112
 
3113
- const rootClassName$1f = 'dot-list';
3113
+ const rootClassName$1g = 'dot-list';
3114
3114
  const listItemRootClass = 'dot-list-item';
3115
3115
  const nestedListClassName = 'dot-nested-list';
3116
3116
  const nestedDrawerClassName = 'dot-nested-drawer';
@@ -3118,7 +3118,7 @@ const StyledList = styled(List)`
3118
3118
  ${({
3119
3119
  theme
3120
3120
  }) => css`
3121
- &.${rootClassName$1f} {
3121
+ &.${rootClassName$1g} {
3122
3122
  background: ${theme.palette.figma.background.level0.componentsBackground};
3123
3123
 
3124
3124
  .dot-icon {
@@ -3182,6 +3182,7 @@ const getChevronIcon = (nestedListType, isOpened) => {
3182
3182
  // if the sidebar should be open or closed based on what target the user clicks
3183
3183
  const excludedClassNames = ['MuiPaper-root', 'MuiTypography-overline'];
3184
3184
  const shouldToggleOpen = classNames => {
3185
+ if (!isString$2(classNames)) return false;
3185
3186
  return !excludedClassNames.some(className => classNames.includes(className));
3186
3187
  };
3187
3188
 
@@ -3211,12 +3212,12 @@ const DotListDivider = ({
3211
3212
  });
3212
3213
  };
3213
3214
 
3214
- const rootClassName$1e = 'dot-progress';
3215
+ const rootClassName$1f = 'dot-progress';
3215
3216
  const StyledProgress = styled.div`
3216
3217
  ${({
3217
3218
  theme
3218
3219
  }) => css`
3219
- &.${rootClassName$1e} {
3220
+ &.${rootClassName$1f} {
3220
3221
  line-height: 0;
3221
3222
 
3222
3223
  .dot-progress-with-label-wrapper {
@@ -3267,7 +3268,7 @@ const DotProgress = ({
3267
3268
  value,
3268
3269
  variant = 'indeterminate'
3269
3270
  }) => {
3270
- const rootClasses = useStylesWithRootClass(rootClassName$1e, className);
3271
+ const rootClasses = useStylesWithRootClass(rootClassName$1f, className);
3271
3272
  useEffect(() => {
3272
3273
  if (!ariaLabel) {
3273
3274
  console.warn('a11y: DotProgress must have an ariaLabel to describe the progress component');
@@ -3333,13 +3334,13 @@ var variables = /*#__PURE__*/Object.freeze({
3333
3334
  levelTop: levelTop
3334
3335
  });
3335
3336
 
3336
- const rootClassName$1d = 'dot-popper';
3337
+ const rootClassName$1e = 'dot-popper';
3337
3338
  const arrowClassName = 'MuiPopper-arrow';
3338
3339
  const StyledPopper$1 = styled(Popper)`
3339
3340
  ${({
3340
3341
  theme
3341
3342
  }) => css`
3342
- &.${rootClassName$1d} {
3343
+ &.${rootClassName$1e} {
3343
3344
  font-family: ${theme.typography.fontFamily};
3344
3345
  font-size: ${theme.typography.body1.fontSize}px;
3345
3346
 
@@ -3398,7 +3399,7 @@ const StyledPopper$1 = styled(Popper)`
3398
3399
  }
3399
3400
  }
3400
3401
 
3401
- &.${rootClassName$1d}, &.${rootClassName$1d} > .dot-popper-paper {
3402
+ &.${rootClassName$1e}, &.${rootClassName$1e} > .dot-popper-paper {
3402
3403
  background-color: ${theme.palette.figma.background.level1.white};
3403
3404
  }
3404
3405
  `}
@@ -3428,12 +3429,12 @@ const StyledArrow = styled('span')`
3428
3429
  `;
3429
3430
 
3430
3431
  const flyoutMenuClassName = 'dot-flyout-menu';
3431
- const rootClassName$1c = 'dot-menu';
3432
+ const rootClassName$1d = 'dot-menu';
3432
3433
  const StyledPopper = styled(Popper)`
3433
3434
  ${({
3434
3435
  theme
3435
3436
  }) => css`
3436
- &.${rootClassName$1d} {
3437
+ &.${rootClassName$1e} {
3437
3438
  font-family: ${theme.typography.fontFamily};
3438
3439
  font-size: ${theme.typography.body1.fontSize}px;
3439
3440
 
@@ -3443,7 +3444,7 @@ const StyledPopper = styled(Popper)`
3443
3444
  }) => $zIndex === undefined ? `z-index: ${levelSecond};` : `z-index: ${$zIndex};`}
3444
3445
  }
3445
3446
  }
3446
- &.${rootClassName$1c}, &.${rootClassName$1d} {
3447
+ &.${rootClassName$1d}, &.${rootClassName$1e} {
3447
3448
  .MuiPaper-root:not(:empty) {
3448
3449
  border: 1px solid ${theme.palette.layer.n100};
3449
3450
  }
@@ -3523,14 +3524,14 @@ const MENU_ITEM_HEIGHT_NORMAL = 48;
3523
3524
  const MENU_ITEM_HEIGHT_DENSE = 36;
3524
3525
  const DEFAULT_MAX_VISIBLE_ITEMS = 7;
3525
3526
 
3526
- const rootClassName$1b = 'dot-ul';
3527
+ const rootClassName$1c = 'dot-ul';
3527
3528
  const listItemClassName$1 = 'dot-li';
3528
3529
  const listItemWithSubmenuClassName = 'dot-li-with-submenu';
3529
3530
  const StyledMenuList = styled(MenuList)`
3530
3531
  ${({
3531
3532
  theme
3532
3533
  }) => css`
3533
- &.${rootClassName$1b} {
3534
+ &.${rootClassName$1c} {
3534
3535
  background: ${theme.palette.figma.background.level1.white};
3535
3536
 
3536
3537
  .dot-li {
@@ -3632,7 +3633,7 @@ const DotMenuList = forwardRef(({
3632
3633
  onSubMenuCreate,
3633
3634
  selectedKey
3634
3635
  }, ref) => {
3635
- const rootClasses = useStylesWithRootClass(rootClassName$1b, className);
3636
+ const rootClasses = useStylesWithRootClass(rootClassName$1c, className);
3636
3637
  const [activeSubmenu, setActiveSubmenu] = useState(null);
3637
3638
  const [subItemAnchorEl, setSubItemAnchorEl] = useState(null);
3638
3639
  const openSubmenu = (target, itemKey) => {
@@ -3744,7 +3745,7 @@ const DotMenu = ({
3744
3745
  open = false,
3745
3746
  selectedKey
3746
3747
  }) => {
3747
- const rootClasses = useStylesWithRootClass(rootClassName$1c, className, loading ? 'loading' : '');
3748
+ const rootClasses = useStylesWithRootClass(rootClassName$1d, className, loading ? 'loading' : '');
3748
3749
  const isSubmenu = checkIfSubmenu(anchorEl);
3749
3750
  const hasSubItems = checkForSubItems(menuItems);
3750
3751
  // Timeout object is customizable when Menu component is either submenu
@@ -3832,12 +3833,12 @@ const DotMenu = ({
3832
3833
  });
3833
3834
  };
3834
3835
 
3835
- const rootClassName$1a = 'dot-drawer';
3836
+ const rootClassName$1b = 'dot-drawer';
3836
3837
  const StyledDrawer = styled(Drawer)`
3837
3838
  ${({
3838
3839
  theme
3839
3840
  }) => css`
3840
- &.${rootClassName$1a} .MuiBackdrop-root {
3841
+ &.${rootClassName$1b} .MuiBackdrop-root {
3841
3842
  background-color: ${theme.palette.figma.overlay.default};
3842
3843
  }
3843
3844
 
@@ -3856,12 +3857,12 @@ const StyledDrawer = styled(Drawer)`
3856
3857
  `}
3857
3858
  `;
3858
3859
 
3859
- const rootClassName$19 = 'dot-drawer-header';
3860
+ const rootClassName$1a = 'dot-drawer-header';
3860
3861
  const StyleDrawerHeader = styled.div`
3861
3862
  ${({
3862
3863
  theme
3863
3864
  }) => css`
3864
- &.${rootClassName$19} {
3865
+ &.${rootClassName$1a} {
3865
3866
  padding: ${theme.spacing(0, 0, 2)};
3866
3867
  display: flex;
3867
3868
  align-items: center;
@@ -3872,13 +3873,13 @@ const StyleDrawerHeader = styled.div`
3872
3873
  `}
3873
3874
  `;
3874
3875
 
3875
- const rootClassName$18 = 'dot-icon-btn';
3876
+ const rootClassName$19 = 'dot-icon-btn';
3876
3877
  const StyledIconButton = styled(IconButton)`
3877
3878
  ${({
3878
3879
  theme,
3879
3880
  color
3880
3881
  }) => css`
3881
- &.${rootClassName$18} {
3882
+ &.${rootClassName$19} {
3882
3883
  ${color === 'inherit' ? css`
3883
3884
  color: inherit;
3884
3885
  ` : ''}
@@ -3964,7 +3965,7 @@ const DotIconButton = ({
3964
3965
  ariaRole = 'button',
3965
3966
  className,
3966
3967
  color = 'inherit',
3967
- 'data-pendoid': dataPendoId = rootClassName$18,
3968
+ 'data-pendoid': dataPendoId = rootClassName$19,
3968
3969
  'data-testid': dataTestId,
3969
3970
  disableInteractive,
3970
3971
  disableRipple = false,
@@ -3978,7 +3979,7 @@ const DotIconButton = ({
3978
3979
  tooltipPlacement
3979
3980
  }) => {
3980
3981
  const rippleClassName = disableRipple ? 'ripple-disabled' : '';
3981
- const rootClasses = useStylesWithRootClass(rootClassName$18, rippleClassName, `shape-${shape}`, className);
3982
+ const rootClasses = useStylesWithRootClass(rootClassName$19, rippleClassName, `shape-${shape}`, className);
3982
3983
  return jsx(DotTooltip, {
3983
3984
  childrenDisplayStyle: "inline-block",
3984
3985
  "data-testid": "icon-button-tooltip",
@@ -4015,7 +4016,7 @@ const DotDrawerHeader = ({
4015
4016
  onClose,
4016
4017
  variant
4017
4018
  }) => {
4018
- const rootClasses = useStylesWithRootClass(rootClassName$19, className);
4019
+ const rootClasses = useStylesWithRootClass(rootClassName$1a, className);
4019
4020
  return jsxs(StyleDrawerHeader, {
4020
4021
  "aria-label": ariaLabel,
4021
4022
  "aria-level": 2,
@@ -4032,10 +4033,10 @@ const DotDrawerHeader = ({
4032
4033
  });
4033
4034
  };
4034
4035
 
4035
- const rootClassName$17 = 'dot-drawer-body';
4036
+ const rootClassName$18 = 'dot-drawer-body';
4036
4037
  const StyleDrawerBody = styled.div`
4037
4038
  ${() => css`
4038
- &.${rootClassName$17} {
4039
+ &.${rootClassName$18} {
4039
4040
  display: flex;
4040
4041
  .dot-drawer-close-button {
4041
4042
  align-self: self-start;
@@ -4056,7 +4057,7 @@ const DotDrawerBody = ({
4056
4057
  onClose,
4057
4058
  variant
4058
4059
  }) => {
4059
- const rootClasses = useStylesWithRootClass(rootClassName$17, className);
4060
+ const rootClasses = useStylesWithRootClass(rootClassName$18, className);
4060
4061
  return jsxs(StyleDrawerBody, {
4061
4062
  "aria-label": ariaLabel,
4062
4063
  className: rootClasses,
@@ -4071,12 +4072,12 @@ const DotDrawerBody = ({
4071
4072
  });
4072
4073
  };
4073
4074
 
4074
- const rootClassName$16 = 'dot-drawer-footer';
4075
+ const rootClassName$17 = 'dot-drawer-footer';
4075
4076
  const StyleDrawerFooter = styled.div`
4076
4077
  ${({
4077
4078
  theme
4078
4079
  }) => css`
4079
- &.${rootClassName$16} {
4080
+ &.${rootClassName$17} {
4080
4081
  padding: ${theme.spacing(2, 0, 0)};
4081
4082
  }
4082
4083
  `}
@@ -4089,7 +4090,7 @@ const DotDrawerFooter = ({
4089
4090
  className,
4090
4091
  'data-testid': dataTestId
4091
4092
  }) => {
4092
- const rootClasses = useStylesWithRootClass(rootClassName$16, className);
4093
+ const rootClasses = useStylesWithRootClass(rootClassName$17, className);
4093
4094
  return jsx(StyleDrawerFooter, {
4094
4095
  "aria-label": ariaLabel,
4095
4096
  className: rootClasses,
@@ -4105,7 +4106,7 @@ const DotDrawer = ({
4105
4106
  ariaRole = 'dialog',
4106
4107
  className,
4107
4108
  children,
4108
- 'data-pendoid': dataPendoId = rootClassName$1a,
4109
+ 'data-pendoid': dataPendoId = rootClassName$1b,
4109
4110
  'data-testid': dataTestId,
4110
4111
  drawerBodyProps,
4111
4112
  drawerFooterProps,
@@ -4128,7 +4129,7 @@ const DotDrawer = ({
4128
4129
  onClose(event);
4129
4130
  }
4130
4131
  };
4131
- const rootClasses = useStylesWithRootClass(rootClassName$1a, className);
4132
+ const rootClasses = useStylesWithRootClass(rootClassName$1b, className);
4132
4133
  const backdropEnabled = variant === 'temporary' && !(ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.hideBackdrop);
4133
4134
  const headerExists = !!drawerHeaderProps;
4134
4135
  const bodyPendoId = drawerBodyProps ? drawerBodyProps['data-pendoid'] : 'drawer-body';
@@ -4603,7 +4604,7 @@ const DotList = ({
4603
4604
  nestedListType = 'expandable',
4604
4605
  width = 240
4605
4606
  }) => {
4606
- const rootClasses = useStylesWithRootClass(rootClassName$1f, className);
4607
+ const rootClasses = useStylesWithRootClass(rootClassName$1g, className);
4607
4608
  const listWidth = typeof width === 'number' ? `${width}px` : width;
4608
4609
  const listRef = useRef();
4609
4610
  const disableCloseOnClickAway = !nestedListCloseOnClickAway && nestedListType === 'expandable';
@@ -4703,12 +4704,12 @@ const DotList = ({
4703
4704
  });
4704
4705
  };
4705
4706
 
4706
- const rootClassName$15 = 'dot-copy-button';
4707
+ const rootClassName$16 = 'dot-copy-button';
4707
4708
  const StyledCopyButton = styled.span`
4708
4709
  ${({
4709
4710
  theme
4710
4711
  }) => css`
4711
- &.${rootClassName$15} .copied-to-clipboard {
4712
+ &.${rootClassName$16} .copied-to-clipboard {
4712
4713
  color: ${theme.palette.figma.success.normal};
4713
4714
 
4714
4715
  &.MuiIcon-fontSizeSmall.button-size-small {
@@ -4734,7 +4735,7 @@ const DotCopyButton = ({
4734
4735
  color = 'inherit',
4735
4736
  copiedTooltip = 'Copied!',
4736
4737
  copyTooltip = 'Copy to clipboard',
4737
- 'data-pendoid': dataPendoId = rootClassName$15,
4738
+ 'data-pendoid': dataPendoId = rootClassName$16,
4738
4739
  'data-testid': dataTestId = 'dot-copy-button',
4739
4740
  disableInteractive,
4740
4741
  disabled = false,
@@ -4783,7 +4784,7 @@ const DotCopyButton = ({
4783
4784
  return false;
4784
4785
  }, [value, showCopiedIcon, disabled, onClick]);
4785
4786
  return jsxs(StyledCopyButton, {
4786
- className: rootClassName$15,
4787
+ className: rootClassName$16,
4787
4788
  "data-testid": dataTestId,
4788
4789
  children: [!timedShowCopiedIcon && jsx(DotIconButton, {
4789
4790
  ariaLabel: ariaLabel,
@@ -4890,7 +4891,7 @@ const DotInputText = ({
4890
4891
  autoFocus,
4891
4892
  className,
4892
4893
  defaultValue,
4893
- 'data-pendoid': dataPendoId = rootClassName$1o,
4894
+ 'data-pendoid': dataPendoId = rootClassName$1p,
4894
4895
  'data-testid': dataTestId,
4895
4896
  disabled = false,
4896
4897
  error = false,
@@ -4939,7 +4940,7 @@ const DotInputText = ({
4939
4940
  const internalInputRef = useRef(null);
4940
4941
  const textFieldInputRef = inputRef || internalInputRef;
4941
4942
  const [inputTextState, setInputTextState] = useState(getInitialState(value));
4942
- const rootStyles = useStylesWithRootClass(rootClassName$1o, hasError, hasWarning, hasSuccess, isAiEnabled, readOnly && readOnlyClassName$1);
4943
+ const rootStyles = useStylesWithRootClass(rootClassName$1p, hasError, hasWarning, hasSuccess, isAiEnabled, readOnly && readOnlyClassName$1);
4943
4944
  useEffect(() => {
4944
4945
  if (value !== inputTextState.inputValue) {
4945
4946
  setInputTextState(getInitialState(value, defaultValue));
@@ -5081,10 +5082,10 @@ const DotInputText = ({
5081
5082
  });
5082
5083
  };
5083
5084
 
5084
- const rootClassName$14 = 'dot-search-input';
5085
+ const rootClassName$15 = 'dot-search-input';
5085
5086
  const StyledSearchInput = styled.span`
5086
5087
  ${() => css`
5087
- &.${rootClassName$14} {
5088
+ &.${rootClassName$15} {
5088
5089
  }
5089
5090
  `}
5090
5091
  `;
@@ -5101,7 +5102,7 @@ function SearchInput({
5101
5102
  tooltip = null,
5102
5103
  value
5103
5104
  }) {
5104
- const rootClasses = useStylesWithRootClass(rootClassName$14, className);
5105
+ const rootClasses = useStylesWithRootClass(rootClassName$15, className);
5105
5106
  const [searchText, setSearchText] = useState(value);
5106
5107
  let previousSearchText = '';
5107
5108
  const handleChange = useCallback(event => {
@@ -5357,12 +5358,12 @@ const recentAppInstancesSetter = (latestInstance, maxRecentItems
5357
5358
  };
5358
5359
  };
5359
5360
 
5360
- const rootClassName$13 = 'dot-app-switcher';
5361
+ const rootClassName$14 = 'dot-app-switcher';
5361
5362
  const StyledAppSwitcher = styled(DotDrawer)`
5362
5363
  ${({
5363
5364
  theme
5364
5365
  }) => css`
5365
- &.${rootClassName$13} {
5366
+ &.${rootClassName$14} {
5366
5367
  .dot-drawer-paper {
5367
5368
  padding: 0;
5368
5369
  width: 382px;
@@ -5472,7 +5473,7 @@ const DotAppSwitcherView = ({
5472
5473
  if (dotCoreApiContext !== null) {
5473
5474
  setSelectedAppType = dotCoreApiContext.setSelectedAppSwitcherAppType;
5474
5475
  }
5475
- const rootClasses = useStylesWithRootClass(rootClassName$13, className);
5476
+ const rootClasses = useStylesWithRootClass(rootClassName$14, className);
5476
5477
  const [appTypeMap, setAppTypeMap] = useState();
5477
5478
  const [appTypeLabels, setAppTypeLabels] = useState();
5478
5479
  const [appTypeMenuItems, setAppTypeMenuItems] = useState();
@@ -5850,12 +5851,12 @@ var SvgLogoDigitalAiWhite = function SvgLogoDigitalAiWhite(_ref, ref) {
5850
5851
  };
5851
5852
  var ForwardRef = /*#__PURE__*/forwardRef(SvgLogoDigitalAiWhite);
5852
5853
 
5853
- const rootClassName$12 = 'dot-sidebar';
5854
+ const rootClassName$13 = 'dot-sidebar';
5854
5855
  const StyledSidebar = styled.aside`
5855
5856
  ${({
5856
5857
  theme
5857
5858
  }) => css`
5858
- &.${rootClassName$12} {
5859
+ &.${rootClassName$13} {
5859
5860
  align-items: stretch;
5860
5861
  background: ${theme.palette.figma.background.level1.white};
5861
5862
  border-width: 0 1px;
@@ -6149,10 +6150,10 @@ const StyledSidebar = styled.aside`
6149
6150
  `}
6150
6151
  `;
6151
6152
 
6152
- const rootClassName$11 = 'dot-truncate-with-tooltip';
6153
+ const rootClassName$12 = 'dot-truncate-with-tooltip';
6153
6154
  const StyledTruncateWithTooltip = styled(Tooltip)`
6154
6155
  ${() => css`
6155
- &.${rootClassName$11} {
6156
+ &.${rootClassName$12} {
6156
6157
  display: block;
6157
6158
  overflow: hidden;
6158
6159
  white-space: nowrap;
@@ -6183,7 +6184,7 @@ const DotTruncateWithTooltip = ({
6183
6184
  label,
6184
6185
  width
6185
6186
  }) => {
6186
- const rootClasses = useStylesWithRootClass(rootClassName$11, className, charactersLimit ? 'dot-characters-limit' : '');
6187
+ const rootClasses = useStylesWithRootClass(rootClassName$12, className, charactersLimit ? 'dot-characters-limit' : '');
6187
6188
  return jsx(StyledTruncateWithTooltip, {
6188
6189
  "aria-label": ariaLabel,
6189
6190
  arrow: arrow,
@@ -6297,7 +6298,7 @@ const DotSidebar = ({
6297
6298
  keys: collapseKeys
6298
6299
  }, toggleNavCollapseState, [isOpen, collapsable]);
6299
6300
  const sidebarClasses = useStylesWithRootClass('side-nav', openClass);
6300
- const rootClasses = useStylesWithRootClass(rootClassName$12, openClass, className);
6301
+ const rootClasses = useStylesWithRootClass(rootClassName$13, openClass, className);
6301
6302
  return jsxs(StyledSidebar, {
6302
6303
  "aria-label": ariaLabel,
6303
6304
  className: rootClasses,
@@ -6372,12 +6373,12 @@ const DotSidebar = ({
6372
6373
  });
6373
6374
  };
6374
6375
 
6375
- const rootClassName$10 = 'dot-badge';
6376
+ const rootClassName$11 = 'dot-badge';
6376
6377
  const StyledBadge = styled(Badge)`
6377
6378
  ${({
6378
6379
  theme
6379
6380
  }) => css`
6380
- &.${rootClassName$10} {
6381
+ &.${rootClassName$11} {
6381
6382
  color: ${theme.palette.figma.typography.black};
6382
6383
  word-break: normal;
6383
6384
 
@@ -6412,7 +6413,7 @@ const DotBadge = ({
6412
6413
  overlap,
6413
6414
  variant = 'dot'
6414
6415
  }) => {
6415
- const rootClasses = useStylesWithRootClass(rootClassName$10, className);
6416
+ const rootClasses = useStylesWithRootClass(rootClassName$11, className);
6416
6417
  return jsx(StyledBadge, {
6417
6418
  "$badgeColor": badgeColor,
6418
6419
  anchorOrigin: {
@@ -6434,7 +6435,7 @@ const DotBadge = ({
6434
6435
  });
6435
6436
  };
6436
6437
 
6437
- const rootClassName$$ = 'dot-app-toolbar';
6438
+ const rootClassName$10 = 'dot-app-toolbar';
6438
6439
  const denseClassName = 'dense';
6439
6440
  const StyledMainMenu = styled(DotDrawer)`
6440
6441
  ${({
@@ -6474,7 +6475,7 @@ const StyledAppToolbar = styled.header`
6474
6475
  ${({
6475
6476
  theme
6476
6477
  }) => css`
6477
- &.${rootClassName$$} {
6478
+ &.${rootClassName$10} {
6478
6479
  align-items: center;
6479
6480
  background: ${theme.palette.figma.appToolbar.background};
6480
6481
  border-bottom: 4px solid ${theme.palette.figma.border.default};
@@ -6603,7 +6604,7 @@ const DotAppToolbar = ({
6603
6604
  const displayAppLogo = appLogo || appLogoSmall;
6604
6605
  const mainMenuRef = useRef(null);
6605
6606
  const denseClass = dense ? denseClassName : '';
6606
- const rootClasses = useStylesWithRootClass(rootClassName$$, className, denseClass, showMainMenu ? '' : 'without-menu-icon');
6607
+ const rootClasses = useStylesWithRootClass(rootClassName$10, className, denseClass, showMainMenu ? '' : 'without-menu-icon');
6607
6608
  const mainMenuClasses = useStylesWithRootClass('dot-main-menu', denseClass, menuOpen ? 'open' : '');
6608
6609
  const targetBreakpoint = useMediaQuery(theme => theme.breakpoints.up('lg'));
6609
6610
  useEffect(() => {
@@ -6755,12 +6756,12 @@ const DotAppToolbar = ({
6755
6756
  }) : appToolbar;
6756
6757
  };
6757
6758
 
6758
- const rootClassName$_ = 'dot-chip';
6759
+ const rootClassName$$ = 'dot-chip';
6759
6760
  const StyledChip = styled(Chip)`
6760
6761
  ${({
6761
6762
  theme
6762
6763
  }) => css`
6763
- &.${rootClassName$_} {
6764
+ &.${rootClassName$$} {
6764
6765
  background: ${theme.palette.figma.neutral.normal};
6765
6766
  border-color: ${theme.palette.figma.border.darker};
6766
6767
  color: ${theme.palette.figma.typography.black};
@@ -6866,7 +6867,7 @@ const DotChip = ({
6866
6867
  charactersLimit = DEFAULT_CHARACTERS_LIMIT,
6867
6868
  children,
6868
6869
  className,
6869
- 'data-pendoid': dataPendoId = rootClassName$_,
6870
+ 'data-pendoid': dataPendoId = rootClassName$$,
6870
6871
  'data-testid': dataTestId,
6871
6872
  disabled = false,
6872
6873
  error = false,
@@ -6880,7 +6881,7 @@ const DotChip = ({
6880
6881
  tooltipProps
6881
6882
  }) => {
6882
6883
  const errorClass = error ? 'Mui-error' : '';
6883
- const rootClasses = useStylesWithRootClass(rootClassName$_, className, errorClass);
6884
+ const rootClasses = useStylesWithRootClass(rootClassName$$, className, errorClass);
6884
6885
  const isTruncated = charactersLimit > 0 && children.length > charactersLimit;
6885
6886
  const getChipLabelWithTooltip = label => jsx(DotTooltip, Object.assign({}, tooltipProps, {
6886
6887
  hoverVisibility: "always",
@@ -6916,7 +6917,7 @@ const DotChip = ({
6916
6917
  });
6917
6918
  };
6918
6919
 
6919
- const rootClassName$Z = 'dot-autocomplete';
6920
+ const rootClassName$_ = 'dot-autocomplete';
6920
6921
  const inputRootClassName = 'dot-input-root';
6921
6922
  const inputMediumClassName = 'dot-input-medium';
6922
6923
  const inputAiClassName = 'dot-input-ai';
@@ -6924,7 +6925,7 @@ const StyledAutocomplete = styled(Autocomplete)`
6924
6925
  ${({
6925
6926
  theme
6926
6927
  }) => css`
6927
- &.${rootClassName$Z} {
6928
+ &.${rootClassName$_} {
6928
6929
  &.${inputMediumClassName} .dot-text-field .${inputRootClassName} {
6929
6930
  height: 56px;
6930
6931
  padding-left: ${theme.spacing(2)};
@@ -7030,8 +7031,8 @@ const isEmptyValue = value => {
7030
7031
  return !value;
7031
7032
  }
7032
7033
  };
7033
- const getRootClassNames = (className, size) => useStylesWithRootClass(rootClassName$Z, size === 'medium' && inputMediumClassName, className);
7034
- const getTextFieldRootClassNames = (textFieldWarningClassName, isReadOnly) => useStylesWithRootClass(rootClassName$1o, isReadOnly && readOnlyClassName$1, textFieldWarningClassName);
7034
+ const getRootClassNames = (className, size) => useStylesWithRootClass(rootClassName$_, size === 'medium' && inputMediumClassName, className);
7035
+ const getTextFieldRootClassNames = (textFieldWarningClassName, isReadOnly) => useStylesWithRootClass(rootClassName$1p, isReadOnly && readOnlyClassName$1, textFieldWarningClassName);
7035
7036
  const getInputRootClassNames = isDense => useStylesWithRootClass(inputRootClassName, !isDense && inputMediumClassName);
7036
7037
  const getDefaultAutoCompleteValue = (hasMultiple, defaultValue) => hasMultiple && isString$2(defaultValue) ? [defaultValue] : defaultValue;
7037
7038
  const getAutoCompleteGroupBy = group => group ? option => option.group : undefined;
@@ -7052,7 +7053,7 @@ const DotAutoComplete = ({
7052
7053
  autoFocus,
7053
7054
  autoHighlight,
7054
7055
  className,
7055
- 'data-pendoid': dataPendoId = rootClassName$Z,
7056
+ 'data-pendoid': dataPendoId = rootClassName$_,
7056
7057
  'data-testid': dataTestId,
7057
7058
  defaultValue,
7058
7059
  dense = true,
@@ -7117,7 +7118,7 @@ const DotAutoComplete = ({
7117
7118
  const rootClasses = useStylesWithRootClass(getRootClassNames(className, size), ai ? inputAiClassName : '');
7118
7119
  const textFieldRootClasses = getTextFieldRootClassNames(textFieldWarningClassName, readOnly);
7119
7120
  const inputRootClasses = getInputRootClassNames(dense);
7120
- const popperClasses = useStylesWithRootClass(rootClassName$1d, popperClassName);
7121
+ const popperClasses = useStylesWithRootClass(rootClassName$1e, popperClassName);
7121
7122
  let highlightedOption = null;
7122
7123
  let textFieldInput;
7123
7124
  const textFieldRef = element => {
@@ -7444,10 +7445,10 @@ const DotAutoComplete = ({
7444
7445
  });
7445
7446
  };
7446
7447
 
7447
- const rootClassName$Y = 'dot-avatar-group';
7448
+ const rootClassName$Z = 'dot-avatar-group';
7448
7449
  const StyledAvatarGroup = styled(AvatarGroup)`
7449
7450
  ${() => css`
7450
- &.${rootClassName$Y} {
7451
+ &.${rootClassName$Z} {
7451
7452
  justify-content: flex-end;
7452
7453
 
7453
7454
  .MuiAvatar-root {
@@ -7466,7 +7467,7 @@ const DotAvatarGroup = ({
7466
7467
  max = 3,
7467
7468
  spacing = 'medium'
7468
7469
  }) => {
7469
- const rootClasses = useStylesWithRootClass(rootClassName$Y, className);
7470
+ const rootClasses = useStylesWithRootClass(rootClassName$Z, className);
7470
7471
  return jsx(StyledAvatarGroup, {
7471
7472
  "aria-label": ariaLabel,
7472
7473
  classes: {
@@ -7481,14 +7482,14 @@ const DotAvatarGroup = ({
7481
7482
  });
7482
7483
  };
7483
7484
 
7484
- const rootClassName$X = 'dot-avatar-with-details';
7485
+ const rootClassName$Y = 'dot-avatar-with-details';
7485
7486
  const StyledAvatarWithDetails = styled.div`
7486
7487
  ${({
7487
7488
  theme,
7488
7489
  $maxSubtitleLines,
7489
7490
  $maxTitleLines
7490
7491
  }) => css`
7491
- &.${rootClassName$X} {
7492
+ &.${rootClassName$Y} {
7492
7493
  gap: ${theme.spacing(2)};
7493
7494
  display: flex;
7494
7495
  align-items: center;
@@ -7524,12 +7525,12 @@ const DotAvatarWithDetails = ({
7524
7525
  ariaLabel,
7525
7526
  avatar,
7526
7527
  className,
7527
- 'data-pendoid': dataPendoId = rootClassName$X,
7528
+ 'data-pendoid': dataPendoId = rootClassName$Y,
7528
7529
  'data-testid': dataTestId,
7529
7530
  subtitle,
7530
7531
  title
7531
7532
  }) => {
7532
- const rootClasses = useStylesWithRootClass(rootClassName$X, className);
7533
+ const rootClasses = useStylesWithRootClass(rootClassName$Y, className);
7533
7534
  const titleClasses = useStylesWithRootClass('dot-avatar-with-details-title', title.maxLines ? 'max-lines-clamp' : '');
7534
7535
  const subtitleClasses = useStylesWithRootClass('dot-avatar-with-details-subtitle', (subtitle === null || subtitle === void 0 ? void 0 : subtitle.maxLines) ? 'max-lines-clamp' : '');
7535
7536
  return jsxs(StyledAvatarWithDetails, {
@@ -7564,13 +7565,13 @@ const DotAvatarWithDetails = ({
7564
7565
  });
7565
7566
  };
7566
7567
 
7567
- const rootClassName$W = 'dot-breadcrumbs';
7568
+ const rootClassName$X = 'dot-breadcrumbs';
7568
7569
  const breadcrumbsWrapperClass = 'dot-breadcrumbs-wrapper';
7569
7570
  const StyledBreadcrumbsWrapper = styled.div`
7570
7571
  ${({
7571
7572
  theme
7572
7573
  }) => css`
7573
- &.${rootClassName$W} {
7574
+ &.${rootClassName$X} {
7574
7575
  overflow: hidden;
7575
7576
 
7576
7577
  .dot-breadcrumbs-menu {
@@ -7590,7 +7591,7 @@ const StyledBreadcrumbs = styled(Breadcrumbs)`
7590
7591
  ${({
7591
7592
  theme
7592
7593
  }) => css`
7593
- &.${rootClassName$W} {
7594
+ &.${rootClassName$X} {
7594
7595
  margin-bottom: 0;
7595
7596
 
7596
7597
  .MuiBreadcrumbs-ol {
@@ -7918,7 +7919,7 @@ const DotBreadcrumbs = ({
7918
7919
  children: [jsx(StyledBreadcrumbs, {
7919
7920
  "aria-label": "breadcrumb",
7920
7921
  classes: {
7921
- root: rootClassName$W,
7922
+ root: rootClassName$X,
7922
7923
  ol: 'dot-ol',
7923
7924
  li: 'dot-li'
7924
7925
  },
@@ -7949,14 +7950,14 @@ const DotBreadcrumbs = ({
7949
7950
  });
7950
7951
  };
7951
7952
 
7952
- const rootClassName$V = 'dot-button-toggle';
7953
+ const rootClassName$W = 'dot-button-toggle';
7953
7954
  // TODO: need to update ripple color
7954
7955
  // https://github.com/mui/material-ui/issues/28543
7955
7956
  const StyledToggleButtonGroup = styled(ToggleButtonGroup)`
7956
7957
  ${({
7957
7958
  theme
7958
7959
  }) => css`
7959
- &.${rootClassName$V} {
7960
+ &.${rootClassName$W} {
7960
7961
  button:not(.MuiToggleButton-sizeLarge):not(.MuiToggleButton-sizeSmall) {
7961
7962
  /* Override height for medium size */
7962
7963
  height: ${theme.spacing(5)};
@@ -8079,7 +8080,7 @@ const DotButtonToggle = ({
8079
8080
  buttonOptions,
8080
8081
  className,
8081
8082
  color,
8082
- 'data-pendoid': dataPendoId = rootClassName$V,
8083
+ 'data-pendoid': dataPendoId = rootClassName$W,
8083
8084
  'data-testid': dataTestId = 'dot-toggle',
8084
8085
  disableFocusRipple = false,
8085
8086
  disableRipple = false,
@@ -8089,7 +8090,7 @@ const DotButtonToggle = ({
8089
8090
  size = 'medium',
8090
8091
  value
8091
8092
  }) => {
8092
- const rootClasses = useStylesWithRootClass(rootClassName$V, className);
8093
+ const rootClasses = useStylesWithRootClass(rootClassName$W, className);
8093
8094
  const renderToggleButton = ({
8094
8095
  ariaLabel: optionAriaLabel,
8095
8096
  badgeContent: optionBadgeContent,
@@ -8174,12 +8175,12 @@ const TooltipToggleButton = forwardRef((_a, ref) => {
8174
8175
  }));
8175
8176
  });
8176
8177
 
8177
- const rootClassName$U = 'dot-card';
8178
+ const rootClassName$V = 'dot-card';
8178
8179
  const StyledCard = styled(Card)`
8179
8180
  ${({
8180
8181
  theme
8181
8182
  }) => css`
8182
- &.${rootClassName$U} {
8183
+ &.${rootClassName$V} {
8183
8184
  background-color: ${theme.palette.figma.background.level1.white};
8184
8185
  }
8185
8186
  `}
@@ -8191,7 +8192,7 @@ const DotCard = ({
8191
8192
  className,
8192
8193
  'data-testid': dataTestId
8193
8194
  }) => {
8194
- const rootClasses = useStylesWithRootClass(rootClassName$U, className);
8195
+ const rootClasses = useStylesWithRootClass(rootClassName$V, className);
8195
8196
  return jsx(StyledCard, {
8196
8197
  "aria-label": ariaLabel,
8197
8198
  classes: {
@@ -8220,12 +8221,12 @@ const DotCardContent = ({
8220
8221
  });
8221
8222
  };
8222
8223
 
8223
- const rootClassName$T = 'dot-card-footer';
8224
+ const rootClassName$U = 'dot-card-footer';
8224
8225
  const StyledDiv = styled.div`
8225
8226
  ${({
8226
8227
  theme
8227
8228
  }) => css`
8228
- &.${rootClassName$T} {
8229
+ &.${rootClassName$U} {
8229
8230
  padding: ${theme.spacing(2)};
8230
8231
  }
8231
8232
  `}
@@ -8237,7 +8238,7 @@ const DotCardFooter = ({
8237
8238
  className,
8238
8239
  'data-testid': dataTestId
8239
8240
  }) => {
8240
- const rootClasses = useStylesWithRootClass(rootClassName$T, className);
8241
+ const rootClasses = useStylesWithRootClass(rootClassName$U, className);
8241
8242
  return jsx(StyledDiv, {
8242
8243
  "aria-label": ariaLabel,
8243
8244
  className: rootClasses,
@@ -8246,13 +8247,13 @@ const DotCardFooter = ({
8246
8247
  });
8247
8248
  };
8248
8249
 
8249
- const rootClassName$S = 'dot-card-header';
8250
+ const rootClassName$T = 'dot-card-header';
8250
8251
  const StyledCardHeader = styled(CardHeader)`
8251
8252
  ${({
8252
8253
  theme,
8253
8254
  $maxTitleLines
8254
8255
  }) => css`
8255
- &.${rootClassName$S} {
8256
+ &.${rootClassName$T} {
8256
8257
  .MuiCardHeader-content {
8257
8258
  overflow-x: hidden;
8258
8259
 
@@ -8284,7 +8285,7 @@ const DotCardHeader = ({
8284
8285
  titleMaxLines = 1,
8285
8286
  titleSize = 'large'
8286
8287
  }) => {
8287
- const rootClasses = useStylesWithRootClass(rootClassName$S, className);
8288
+ const rootClasses = useStylesWithRootClass(rootClassName$T, className);
8288
8289
  const nonSmallTitleSize = titleSize === 'medium' ? 'h3' : 'h2';
8289
8290
  const titleVariant = titleSize === 'small' ? 'h4' : nonSmallTitleSize;
8290
8291
  const subheaderVariant = subheaderSize === 'small' ? 'body2' : 'body1';
@@ -8320,9 +8321,9 @@ const DotCardHeader = ({
8320
8321
  });
8321
8322
  };
8322
8323
 
8323
- const rootClassName$R = 'dot-form-control-label';
8324
+ const rootClassName$S = 'dot-form-control-label';
8324
8325
  const StyledFormControlLabel = styled(FormControlLabel)`
8325
- &.${rootClassName$R} {
8326
+ &.${rootClassName$S} {
8326
8327
  .MuiFormControlLabel-label {
8327
8328
  margin-bottom: 0;
8328
8329
  padding: 0 0 0 4px;
@@ -8345,12 +8346,12 @@ const StyledFormControlLabel = styled(FormControlLabel)`
8345
8346
  }
8346
8347
  `;
8347
8348
 
8348
- const rootClassName$Q = 'dot-checkbox';
8349
+ const rootClassName$R = 'dot-checkbox';
8349
8350
  const StyledCheckbox = styled(Checkbox)`
8350
8351
  ${({
8351
8352
  theme
8352
8353
  }) => css`
8353
- &.${rootClassName$Q} {
8354
+ &.${rootClassName$R} {
8354
8355
  padding: ${theme.spacing(1)};
8355
8356
 
8356
8357
  &.MuiCheckbox-indeterminate {
@@ -8369,7 +8370,7 @@ function DotCheckbox({
8369
8370
  ariaLabelledby,
8370
8371
  checked,
8371
8372
  className,
8372
- 'data-pendoid': dataPendoId = rootClassName$R,
8373
+ 'data-pendoid': dataPendoId = rootClassName$S,
8373
8374
  'data-testid': dataTestId,
8374
8375
  disabled,
8375
8376
  disableRipple,
@@ -8384,14 +8385,14 @@ function DotCheckbox({
8384
8385
  size = 'medium',
8385
8386
  value
8386
8387
  }) {
8387
- const rootClasses = useStylesWithRootClass(rootClassName$R, className);
8388
+ const rootClasses = useStylesWithRootClass(rootClassName$S, className);
8388
8389
  const handleChange = event => {
8389
8390
  onChange && onChange(event, event.target.value);
8390
8391
  };
8391
8392
  const checkboxControl = jsx(StyledCheckbox, {
8392
8393
  checked: checked,
8393
8394
  classes: {
8394
- root: rootClassName$Q
8395
+ root: rootClassName$R
8395
8396
  },
8396
8397
  color: "primary",
8397
8398
  "data-pendoid": dataPendoId,
@@ -8420,13 +8421,13 @@ function DotCheckbox({
8420
8421
  });
8421
8422
  }
8422
8423
 
8423
- const rootClassName$P = 'dot-form-group';
8424
+ const rootClassName$Q = 'dot-form-group';
8424
8425
  const groupLabelClassName = 'dot-form-group-label';
8425
8426
  const startAdornmentClassName = 'dot-start-adornment';
8426
8427
  const endAdornmentClassName = 'dot-end-adornment';
8427
8428
  const placementClassName = 'dot-';
8428
8429
  const StyledFormControl = styled(FormControl)`
8429
- &.${rootClassName$P} {
8430
+ &.${rootClassName$Q} {
8430
8431
  .MuiFormLabel-root {
8431
8432
  width: 100%;
8432
8433
  line-height: 24px;
@@ -8457,7 +8458,7 @@ const StyledFormControl = styled(FormControl)`
8457
8458
  }
8458
8459
  `;
8459
8460
 
8460
- const rootClassName$O = 'dot-checkbox-group';
8461
+ const rootClassName$P = 'dot-checkbox-group';
8461
8462
  const wrapperClassName$1 = 'dot-checkbox-group-wrapper';
8462
8463
  const checkboxListClassName = 'dot-checkbox-list';
8463
8464
  const checkboxListItemClassName = 'dot-checkbox-list-item';
@@ -8466,7 +8467,7 @@ const StyledCheckboxGroup = styled.div`
8466
8467
  theme
8467
8468
  }) => css`{
8468
8469
  &.${wrapperClassName$1} {
8469
- .${rootClassName$O} {
8470
+ .${rootClassName$P} {
8470
8471
  width: 100%;
8471
8472
  }
8472
8473
 
@@ -8493,7 +8494,7 @@ const StyledCheckboxGroup = styled.div`
8493
8494
  margin-top: 0;
8494
8495
  padding-left: ${theme.spacing(2.5)};
8495
8496
 
8496
- .${rootClassName$R} {
8497
+ .${rootClassName$S} {
8497
8498
  margin: 0;
8498
8499
  }
8499
8500
  }
@@ -8501,13 +8502,13 @@ const StyledCheckboxGroup = styled.div`
8501
8502
  `}
8502
8503
  `;
8503
8504
 
8504
- const rootClassName$N = 'dot-form-group';
8505
+ const rootClassName$O = 'dot-form-group';
8505
8506
  const StyledFormGroup = styled(FormGroup)`
8506
8507
  ${({
8507
8508
  theme,
8508
8509
  row
8509
8510
  }) => css`
8510
- &.${rootClassName$N} > * {
8511
+ &.${rootClassName$O} > * {
8511
8512
  margin: ${row ? `${theme.spacing(0.5)}` : 0};
8512
8513
  }
8513
8514
  `}
@@ -8520,7 +8521,7 @@ function DotFormGroup({
8520
8521
  'data-testid': dataTestId,
8521
8522
  row
8522
8523
  }) {
8523
- const rootClasses = useStylesWithRootClass(rootClassName$P, className);
8524
+ const rootClasses = useStylesWithRootClass(rootClassName$Q, className);
8524
8525
  return jsx(StyledFormGroup, {
8525
8526
  "aria-label": ariaLabel,
8526
8527
  classes: {
@@ -8559,7 +8560,7 @@ function DotCheckboxGroup({
8559
8560
  size = 'medium'
8560
8561
  }) {
8561
8562
  const placement = `${placementClassName}${labelPlacement}`;
8562
- const rootClasses = useStylesWithRootClass(rootClassName$P, rootClassName$O, className, placement);
8563
+ const rootClasses = useStylesWithRootClass(rootClassName$Q, rootClassName$P, className, placement);
8563
8564
  const [selectedOptions, setSelectedOptions] = useState(defaultValues);
8564
8565
  const [allChecked, setAllChecked] = useState(false);
8565
8566
  /* This will ensure that state can be updated from the outside */
@@ -8644,12 +8645,12 @@ function DotCheckboxGroup({
8644
8645
  });
8645
8646
  }
8646
8647
 
8647
- const rootClassName$M = 'chip-list';
8648
+ const rootClassName$N = 'chip-list';
8648
8649
  const StyledChipList = styled.div`
8649
8650
  ${({
8650
8651
  theme
8651
8652
  }) => css`
8652
- &.${rootClassName$M} {
8653
+ &.${rootClassName$N} {
8653
8654
  display: flex;
8654
8655
  gap: ${theme.spacing(1)};
8655
8656
  }
@@ -8724,19 +8725,19 @@ function DotChipList({
8724
8725
  setChips(itemElements);
8725
8726
  }, [items, maxChars]);
8726
8727
  return jsx(StyledChipList, {
8727
- className: rootClassName$M,
8728
+ className: rootClassName$N,
8728
8729
  "data-testid": dataTestId,
8729
8730
  style: style,
8730
8731
  children: chips
8731
8732
  });
8732
8733
  }
8733
8734
 
8734
- const rootClassName$L = 'dot-dialog';
8735
+ const rootClassName$M = 'dot-dialog';
8735
8736
  const StyledDialog = styled(Dialog)`
8736
8737
  ${({
8737
8738
  theme
8738
8739
  }) => css`
8739
- &.${rootClassName$L} {
8740
+ &.${rootClassName$M} {
8740
8741
  .MuiDialog-paper {
8741
8742
  background: ${theme.palette.figma.background.level1.white};
8742
8743
  color: ${theme.palette.figma.typography.black};
@@ -8782,7 +8783,7 @@ const DotDialog = ({
8782
8783
  cancelButtonProps,
8783
8784
  cancelButtonVisible = true,
8784
8785
  className,
8785
- 'data-pendoid': dataPendoId = rootClassName$L,
8786
+ 'data-pendoid': dataPendoId = rootClassName$M,
8786
8787
  'data-testid': dataTestId,
8787
8788
  children,
8788
8789
  closeIconVisible,
@@ -8796,7 +8797,7 @@ const DotDialog = ({
8796
8797
  submitButtonProps,
8797
8798
  title
8798
8799
  }) => {
8799
- const rootClasses = useStylesWithRootClass(rootClassName$L, className);
8800
+ const rootClasses = useStylesWithRootClass(rootClassName$M, className);
8800
8801
  const cancelClasses = useStylesWithRootClass(cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.className, 'cancel-button');
8801
8802
  const [isOpen, setIsOpen] = useState(open);
8802
8803
  const hasSecondaryAction = !!secondaryButtonProps;
@@ -8933,7 +8934,7 @@ const DotConfirmationDialog = ({
8933
8934
  });
8934
8935
  };
8935
8936
 
8936
- const rootClassName$K = 'dot-grid';
8937
+ const rootClassName$L = 'dot-grid';
8937
8938
  const frGetter = value => typeof value === 'number' ? `repeat(${value}, 1fr)` : value;
8938
8939
  const breakpointsGetter$1 = (theme, columnsBreakpoints, columnGap, rowGap) => `${theme.breakpoints.up('xs')} {
8939
8940
  column-gap: ${`${columnGap.xs}px`};
@@ -8993,7 +8994,7 @@ const Grid = ({
8993
8994
  children,
8994
8995
  isLoading
8995
8996
  }) => {
8996
- const rootClasses = useStylesWithRootClass(rootClassName$K, className);
8997
+ const rootClasses = useStylesWithRootClass(rootClassName$L, className);
8997
8998
  return jsxs("div", {
8998
8999
  className: rootClasses,
8999
9000
  children: [children, isLoading && jsx(DotProgress, {
@@ -9017,7 +9018,7 @@ const StyledGrid = styled(Grid)`
9017
9018
  theme,
9018
9019
  width
9019
9020
  }) => css`
9020
- &.${rootClassName$K} {
9021
+ &.${rootClassName$L} {
9021
9022
  display: grid;
9022
9023
  grid-template-rows: ${frGetter(rows)};
9023
9024
  ${columns ? `${columns && `grid-template-columns: ${frGetter(columns)}`};` : breakpointsGetter$1(theme, columnsBreakpoints, columnGap, rowGap)}
@@ -9288,12 +9289,12 @@ const CssGridDebug = ({
9288
9289
  });
9289
9290
  };
9290
9291
 
9291
- const rootClassName$J = 'dot-pill';
9292
+ const rootClassName$K = 'dot-pill';
9292
9293
  const StyledPill = styled(Chip)`
9293
9294
  ${({
9294
9295
  theme
9295
9296
  }) => css`
9296
- &.${rootClassName$J} {
9297
+ &.${rootClassName$K} {
9297
9298
  background-color: ${({
9298
9299
  backgroundcolor,
9299
9300
  variant
@@ -9417,7 +9418,7 @@ const DotPill = ({
9417
9418
  status = 'default',
9418
9419
  variant = 'filled'
9419
9420
  }) => {
9420
- const rootClasses = useStylesWithRootClass(rootClassName$J, className, status);
9421
+ const rootClasses = useStylesWithRootClass(rootClassName$K, className, status);
9421
9422
  return jsx(StyledPill, {
9422
9423
  "aria-label": ariaLabel,
9423
9424
  bordercolor: bordercolor,
@@ -10993,18 +10994,18 @@ function addAutoHideDuration(severity) {
10993
10994
  return severity === 'error' ? null : 10000;
10994
10995
  }
10995
10996
 
10996
- const rootClassName$I = 'dot-snackbar';
10997
+ const rootClassName$J = 'dot-snackbar';
10997
10998
  const StyledSnackbar = styled(Snackbar)`
10998
10999
  ${({
10999
11000
  theme,
11000
11001
  width,
11001
11002
  $anchorOriginTop
11002
11003
  }) => css`
11003
- &.${rootClassName$I} {
11004
+ &.${rootClassName$J} {
11004
11005
  .MuiAlert-message {
11005
11006
  word-break: break-word;
11006
11007
  }
11007
- .${rootClassName$1k} {
11008
+ .${rootClassName$1l} {
11008
11009
  align-items: flex-start;
11009
11010
  }
11010
11011
  &.MuiSnackbar-anchorOriginTopLeft,
@@ -11057,7 +11058,7 @@ const DotSnackbar = ({
11057
11058
  }) => {
11058
11059
  const hasActions = !!(primaryAction || secondaryAction);
11059
11060
  const calculatedAutoHideDuration = autoHideDuration === null || autoHideDuration > 0 ? autoHideDuration : addAutoHideDuration(severity);
11060
- const rootClasses = useStylesWithRootClass(rootClassName$I, className);
11061
+ const rootClasses = useStylesWithRootClass(rootClassName$J, className);
11061
11062
  const handleSnackbarClose = reason => {
11062
11063
  if (!reason || hideOnClickAway || !hideOnClickAway && reason !== 'clickaway') {
11063
11064
  onClose();
@@ -11127,10 +11128,10 @@ const DotSnackbar = ({
11127
11128
  });
11128
11129
  };
11129
11130
 
11130
- const rootClassName$H = 'dot-snackbar-container';
11131
+ const rootClassName$I = 'dot-snackbar-container';
11131
11132
  const StyledSnackbarContainer = styled.div`
11132
11133
  ${() => css`
11133
- &.${rootClassName$H} {
11134
+ &.${rootClassName$I} {
11134
11135
  position: absolute;
11135
11136
  top: 0;
11136
11137
  width: 250px;
@@ -11162,10 +11163,10 @@ const DotSnackbarContainer = ({
11162
11163
  };
11163
11164
  }
11164
11165
  return jsx(StyledSnackbarContainer, {
11165
- className: rootClassName$H,
11166
+ className: rootClassName$I,
11166
11167
  children: jsx("div", {
11167
- className: rootClassName$H,
11168
- "data-testid": rootClassName$H,
11168
+ className: rootClassName$I,
11169
+ "data-testid": rootClassName$I,
11169
11170
  children: alerts.slice().reverse().map(alert => {
11170
11171
  return jsx(DotSnackbar, {
11171
11172
  autoCloseOnAction: autoCloseOnAction,
@@ -11239,12 +11240,12 @@ const useEnqueueErrorMessage = error => {
11239
11240
  }, [error]);
11240
11241
  };
11241
11242
 
11242
- const rootClassName$G = 'dot-dashboard-details';
11243
+ const rootClassName$H = 'dot-dashboard-details';
11243
11244
  const StyledDashboardDetails = styled(DotDrawer)`
11244
11245
  ${({
11245
11246
  theme
11246
11247
  }) => css`
11247
- &.${rootClassName$G} {
11248
+ &.${rootClassName$H} {
11248
11249
  .dot-drawer-paper {
11249
11250
  padding: 0;
11250
11251
  width: 382px;
@@ -11370,7 +11371,7 @@ const DotDashboardDetailsView = ({
11370
11371
  modifiedAuthorUser
11371
11372
  }) => {
11372
11373
  var _a, _b;
11373
- const rootClasses = useStylesWithRootClass(rootClassName$G, className);
11374
+ const rootClasses = useStylesWithRootClass(rootClassName$H, className);
11374
11375
  const closeHandler = useCallback(event => {
11375
11376
  onClose && onClose(event);
11376
11377
  }, [onClose]);
@@ -12037,12 +12038,12 @@ function DotDashboardDialog({
12037
12038
  });
12038
12039
  }
12039
12040
 
12040
- const rootClassName$F = 'dot-impact-dialog';
12041
+ const rootClassName$G = 'dot-impact-dialog';
12041
12042
  const StyledImpactDialog = styled(DotDialog)`
12042
12043
  ${({
12043
12044
  theme
12044
12045
  }) => css`
12045
- &.${rootClassName$F} {
12046
+ &.${rootClassName$G} {
12046
12047
  .high-impact-default-content {
12047
12048
  margin-top: ${theme.spacing(2)};
12048
12049
  margin-bottom: ${theme.spacing(3)};
@@ -12148,7 +12149,7 @@ const DotImpactDialog = ({
12148
12149
  }
12149
12150
  return '';
12150
12151
  }, [action, capitalize, impact, record]);
12151
- const rootClasses = useStylesWithRootClass(rootClassName$F, className);
12152
+ const rootClasses = useStylesWithRootClass(rootClassName$G, className);
12152
12153
  return jsx(StyledImpactDialog, {
12153
12154
  "data-testid": dataTestId,
12154
12155
  className: rootClasses,
@@ -13490,7 +13491,7 @@ function DotDashboardHeader({
13490
13491
  });
13491
13492
  }
13492
13493
 
13493
- const rootClassName$E = 'dot-empty-state';
13494
+ const rootClassName$F = 'dot-empty-state';
13494
13495
  const emptyStateImageSizing = {
13495
13496
  xsmall: 9,
13496
13497
  dense: 15,
@@ -13561,9 +13562,9 @@ const StyledEmptyState = styled.div`
13561
13562
  `}
13562
13563
  `;
13563
13564
 
13564
- const rootClassName$D = 'dot-illustration';
13565
+ const rootClassName$E = 'dot-illustration';
13565
13566
  const StyledIllustration = styled.span`
13566
- &.${rootClassName$D} {
13567
+ &.${rootClassName$E} {
13567
13568
  display: inline-block;
13568
13569
  }
13569
13570
  `;
@@ -13580,17 +13581,17 @@ const DotIllustration = ({
13580
13581
  tooltip,
13581
13582
  tooltipPlacement = 'right-end'
13582
13583
  }) => {
13583
- const rootClasses = useStylesWithRootClass(rootClassName$D, className);
13584
+ const rootClasses = useStylesWithRootClass(rootClassName$E, className);
13584
13585
  return jsx(DotTooltip, {
13585
13586
  childrenDisplayStyle: "inline-block",
13586
13587
  title: tooltip,
13587
13588
  placement: tooltipPlacement,
13588
- "data-testid": `${dataTestId || rootClassName$D}-tooltip`,
13589
+ "data-testid": `${dataTestId || rootClassName$E}-tooltip`,
13589
13590
  children: jsx(StyledIllustration, {
13590
13591
  "aria-hidden": "false",
13591
13592
  "aria-label": ariaLabel || title || 'Illustration',
13592
13593
  className: rootClasses,
13593
- "data-testid": dataTestId || rootClassName$D,
13594
+ "data-testid": dataTestId || rootClassName$E,
13594
13595
  role: ariaRole,
13595
13596
  children: jsx("img", {
13596
13597
  alt: alt || 'Illustration',
@@ -13616,7 +13617,7 @@ const DotEmptyState = ({
13616
13617
  subtitle,
13617
13618
  title
13618
13619
  }) => {
13619
- const rootClasses = useStylesWithRootClass(rootClassName$E, className);
13620
+ const rootClasses = useStylesWithRootClass(rootClassName$F, className);
13620
13621
  return jsxs(StyledEmptyState, {
13621
13622
  "aria-label": ariaLabel,
13622
13623
  className: `${rootClasses} ${size}`,
@@ -13697,20 +13698,20 @@ const StyledRadioGroup = styled(RadioGroup)`
13697
13698
  &.${groupClassName} {
13698
13699
  padding-left: ${theme.spacing(2.5)};
13699
13700
 
13700
- .${rootClassName$R} {
13701
+ .${rootClassName$S} {
13701
13702
  margin: 0;
13702
13703
  }
13703
13704
  }
13704
13705
  `}
13705
13706
  `;
13706
13707
 
13707
- const rootClassName$C = 'dot-date-picker';
13708
+ const rootClassName$D = 'dot-date-picker';
13708
13709
  const popperClassName = 'dot-date-picker-popper';
13709
13710
  const containerClassName$2 = 'dot-date-picker-container';
13710
13711
  const rectanglePickersDayClassName = 'dot-rectangle-pickers-day';
13711
13712
  const StyledDatePickerContainer = styled.div`
13712
13713
  ${() => css`
13713
- &.${rootClassName$C} .full-width {
13714
+ &.${rootClassName$D} .full-width {
13714
13715
  width: 100%;
13715
13716
  }
13716
13717
  `}
@@ -13719,7 +13720,7 @@ const StyledDatePicker = styled(DatePicker)`
13719
13720
  ${({
13720
13721
  theme
13721
13722
  }) => css`
13722
- &.${rootClassName$C} {
13723
+ &.${rootClassName$D} {
13723
13724
  ${pickerInputStyles(theme)};
13724
13725
 
13725
13726
  .Mui-disabled.MuiInputBase-root,
@@ -13759,7 +13760,7 @@ const StyledPickersDay = styled(PickersDay)`
13759
13760
  `}
13760
13761
  `;
13761
13762
 
13762
- const rootClassName$B = 'dot-time-picker';
13763
+ const rootClassName$C = 'dot-time-picker';
13763
13764
  const containerClassName$1 = 'dot-time-picker-container';
13764
13765
  const TIME_SELECTION_HEIGHT_SPACING = 34.5;
13765
13766
  const TIME_SELECTION_WIDTH_SPACING = 14.5;
@@ -13830,7 +13831,7 @@ const StyledTimePicker = styled(TimePicker)`
13830
13831
  ${({
13831
13832
  theme
13832
13833
  }) => css`
13833
- &.${rootClassName$B} {
13834
+ &.${rootClassName$C} {
13834
13835
  ${pickerInputStyles(theme)};
13835
13836
 
13836
13837
  .Mui-disabled.MuiInputBase-root,
@@ -13849,36 +13850,36 @@ const StyledTimePicker = styled(TimePicker)`
13849
13850
  `}
13850
13851
  `;
13851
13852
 
13852
- const rootClassName$A = 'dot-form';
13853
+ const rootClassName$B = 'dot-form';
13853
13854
  const StyledFormContainer = styled.div`
13854
13855
  ${({
13855
13856
  theme
13856
13857
  }) => css`
13857
- &.${rootClassName$A} {
13858
+ &.${rootClassName$B} {
13858
13859
  margin: ${theme.spacing(3, 0)};
13859
13860
 
13860
- .${rootClassName$P},
13861
- .${rootClassName$R},
13862
- .${rootClassName$1o},
13861
+ .${rootClassName$Q},
13862
+ .${rootClassName$S},
13863
+ .${rootClassName$1p},
13863
13864
  .${rootSelectClassName},
13864
- .${rootClassName$C},
13865
- .${rootClassName$B} {
13865
+ .${rootClassName$D},
13866
+ .${rootClassName$C} {
13866
13867
  margin: ${theme.spacing(1, 0)};
13867
13868
  }
13868
13869
 
13869
13870
  .${wrapperClassName$2} {
13870
- + .${rootClassName$1o},
13871
+ + .${rootClassName$1p},
13871
13872
  .${wrapperClassName$2}
13872
13873
  + .${rootSelectClassName},
13873
13874
  .${wrapperClassName$2}
13874
- + .${rootClassName$C},
13875
+ + .${rootClassName$D},
13875
13876
  .${wrapperClassName$2}
13876
- + .${rootClassName$B} {
13877
+ + .${rootClassName$C} {
13877
13878
  margin: ${theme.spacing(0, 0, 1, 0)};
13878
13879
  }
13879
13880
 
13880
- .${rootClassName$O}, .${groupClassName} {
13881
- .${rootClassName$R} {
13881
+ .${rootClassName$P}, .${groupClassName} {
13882
+ .${rootClassName$S} {
13882
13883
  margin: 0;
13883
13884
  }
13884
13885
  }
@@ -13893,7 +13894,7 @@ const DotForm = ({
13893
13894
  'data-testid': dataTestId,
13894
13895
  onSubmit
13895
13896
  }) => {
13896
- const rootClasses = useStylesWithRootClass(rootClassName$A, className);
13897
+ const rootClasses = useStylesWithRootClass(rootClassName$B, className);
13897
13898
  return jsx("form", {
13898
13899
  "aria-label": ariaLabel,
13899
13900
  "data-testid": dataTestId,
@@ -13906,10 +13907,10 @@ const DotForm = ({
13906
13907
  });
13907
13908
  };
13908
13909
 
13909
- const rootClassName$z = 'dot-dynamic-form';
13910
+ const rootClassName$A = 'dot-dynamic-form';
13910
13911
  const StyledDynamicForm = styled(DotForm)`
13911
13912
  ${() => css`
13912
- &.${rootClassName$z} {
13913
+ &.${rootClassName$A} {
13913
13914
  }
13914
13915
  `}
13915
13916
  `;
@@ -14089,12 +14090,12 @@ const checkIfFormDataValid = formState => {
14089
14090
  return true;
14090
14091
  };
14091
14092
 
14092
- const rootClassName$y = 'dot-progress-button';
14093
+ const rootClassName$z = 'dot-progress-button';
14093
14094
  const StyledProgressButton = styled(DotButton)`
14094
14095
  ${({
14095
14096
  theme
14096
14097
  }) => css`
14097
- &.${rootClassName$y} {
14098
+ &.${rootClassName$z} {
14098
14099
  .hidden {
14099
14100
  // hide children but preserve its space so that
14100
14101
  // button's dimensions don't change
@@ -14119,7 +14120,7 @@ const DotProgressButton = ({
14119
14120
  ariaLabel,
14120
14121
  children,
14121
14122
  className,
14122
- 'data-pendoid': dataPendoId = rootClassName$y,
14123
+ 'data-pendoid': dataPendoId = rootClassName$z,
14123
14124
  'data-testid': dataTestId,
14124
14125
  disabled = false,
14125
14126
  disableInteractive,
@@ -14133,7 +14134,7 @@ const DotProgressButton = ({
14133
14134
  tooltip,
14134
14135
  type = 'primary'
14135
14136
  }) => {
14136
- const rootClasses = useStylesWithRootClass(rootClassName$y, className);
14137
+ const rootClasses = useStylesWithRootClass(rootClassName$z, className);
14137
14138
  const isButtonDisabled = disabled || isLoading;
14138
14139
  const titleClasses = useStylesWithRootClass(isLoading ? 'hidden' : '');
14139
14140
  const progressCircleSize = size === 'large' ? SPINNER_LARGE_SIZE : SPINNER_DEFAULT_SIZE;
@@ -14163,12 +14164,12 @@ const DotProgressButton = ({
14163
14164
  });
14164
14165
  };
14165
14166
 
14166
- const rootClassName$x = 'dot-radio';
14167
+ const rootClassName$y = 'dot-radio';
14167
14168
  const StyledRadioButton = styled(Radio)`
14168
14169
  ${({
14169
14170
  theme
14170
14171
  }) => css`
14171
- &.${rootClassName$x} {
14172
+ &.${rootClassName$y} {
14172
14173
  padding: 8px;
14173
14174
 
14174
14175
  svg {
@@ -14186,7 +14187,7 @@ function DotRadioButton({
14186
14187
  ariaLabel,
14187
14188
  checked,
14188
14189
  className,
14189
- 'data-pendoid': dataPendoId = rootClassName$R,
14190
+ 'data-pendoid': dataPendoId = rootClassName$S,
14190
14191
  'data-testid': dataTestId,
14191
14192
  disabled,
14192
14193
  id,
@@ -14199,7 +14200,7 @@ function DotRadioButton({
14199
14200
  size = 'medium',
14200
14201
  value
14201
14202
  }) {
14202
- const rootClasses = useStylesWithRootClass(rootClassName$R, className);
14203
+ const rootClasses = useStylesWithRootClass(rootClassName$S, className);
14203
14204
  const handleChange = event => {
14204
14205
  onChange && onChange(event, event.target.value);
14205
14206
  };
@@ -14207,7 +14208,7 @@ function DotRadioButton({
14207
14208
  const radioControl = jsx(StyledRadioButton, {
14208
14209
  checked: checked,
14209
14210
  classes: {
14210
- root: rootClassName$x
14211
+ root: rootClassName$y
14211
14212
  },
14212
14213
  color: "primary",
14213
14214
  "data-pendoid": dataPendoId,
@@ -14253,7 +14254,7 @@ const DotRadioGroup = ({
14253
14254
  size = 'medium'
14254
14255
  }) => {
14255
14256
  const placement = `${placementClassName}${labelPlacement}`;
14256
- const rootClasses = useStylesWithRootClass(rootClassName$P, className, placement);
14257
+ const rootClasses = useStylesWithRootClass(rootClassName$Q, className, placement);
14257
14258
  const radioValue = value || defaultValue;
14258
14259
  const [selectedValue, setSelectedValue] = useState(radioValue);
14259
14260
  /* This will ensure that value can be updated from the outside */
@@ -14318,7 +14319,7 @@ const DotRadioGroup = ({
14318
14319
  });
14319
14320
  };
14320
14321
 
14321
- const rootClassName$w = 'dot-switch';
14322
+ const rootClassName$x = 'dot-switch';
14322
14323
  const StyledSwitch = styled(Switch)`
14323
14324
  ${({
14324
14325
  theme
@@ -14347,7 +14348,7 @@ const DotSwitch = ({
14347
14348
  checked,
14348
14349
  className,
14349
14350
  color,
14350
- 'data-pendoid': dataPendoId = rootClassName$w,
14351
+ 'data-pendoid': dataPendoId = rootClassName$x,
14351
14352
  'data-testid': dataTestId,
14352
14353
  disabled = false,
14353
14354
  id,
@@ -14357,7 +14358,7 @@ const DotSwitch = ({
14357
14358
  onChange,
14358
14359
  size = 'medium'
14359
14360
  }) => {
14360
- const rootClasses = useStylesWithRootClass(rootClassName$w, className);
14361
+ const rootClasses = useStylesWithRootClass(rootClassName$x, className);
14361
14362
  const handleChange = event => {
14362
14363
  onChange && onChange(event);
14363
14364
  };
@@ -14387,7 +14388,7 @@ const DotSwitch = ({
14387
14388
  tabIndex: 0
14388
14389
  });
14389
14390
  return jsx(StyledFormControlLabel, {
14390
- className: rootClassName$R,
14391
+ className: rootClassName$S,
14391
14392
  control: switchControl,
14392
14393
  label: label,
14393
14394
  labelPlacement: labelPlacement
@@ -14708,7 +14709,7 @@ const DotDynamicForm = ({
14708
14709
  onChange,
14709
14710
  onSubmit
14710
14711
  }) => {
14711
- const rootClasses = useStylesWithRootClass(rootClassName$z, className);
14712
+ const rootClasses = useStylesWithRootClass(rootClassName$A, className);
14712
14713
  // Memoize this operation so that is doesn't get executed each time this
14713
14714
  // component re-renders
14714
14715
  const initialFormState = useMemo(() => getInitialFormState(config, liveValidation), [config, liveValidation, getInitialFormState]);
@@ -14954,7 +14955,7 @@ const DotDynamicForm = ({
14954
14955
  });
14955
14956
  };
14956
14957
 
14957
- const rootClassName$v = 'dot-inline-edit';
14958
+ const rootClassName$w = 'dot-inline-edit';
14958
14959
  const editModeClassName = 'dot-edit-mode';
14959
14960
  const viewModeClassName = 'dot-view-mode';
14960
14961
  const placeholderClassName = 'dot-placeholder';
@@ -14966,7 +14967,7 @@ const StyledInlineEdit = styled.div`
14966
14967
  theme,
14967
14968
  fullWidth
14968
14969
  }) => css`
14969
- &.${rootClassName$v} {
14970
+ &.${rootClassName$w} {
14970
14971
  align-items: center;
14971
14972
  color: ${theme.palette.figma.typography.black};
14972
14973
  display: ${fullWidth ? 'flex' : 'inline-flex'};
@@ -15180,7 +15181,7 @@ const DotInlineEdit = ({
15180
15181
  bindings,
15181
15182
  charactersLimit,
15182
15183
  className,
15183
- 'data-pendoid': dataPendoId = rootClassName$v,
15184
+ 'data-pendoid': dataPendoId = rootClassName$w,
15184
15185
  'data-testid': dataTestId,
15185
15186
  fullWidth = true,
15186
15187
  hideActionButtons,
@@ -15216,7 +15217,7 @@ const DotInlineEdit = ({
15216
15217
  }
15217
15218
  }, [value]);
15218
15219
  const isSaveDisabled = checkIfEmptyValue(inputValue);
15219
- const rootClasses = useStylesWithRootClass(rootClassName$v, className, editing ? editModeClassName : '');
15220
+ const rootClasses = useStylesWithRootClass(rootClassName$w, className, editing ? editModeClassName : '');
15220
15221
  const handleShowTooltip = visible => {
15221
15222
  if (!editing) {
15222
15223
  setShowTooltip(visible);
@@ -15404,13 +15405,13 @@ const DotInlineEdit = ({
15404
15405
  });
15405
15406
  };
15406
15407
 
15407
- const rootClassName$u = 'dot-navigation-rail';
15408
+ const rootClassName$v = 'dot-navigation-rail';
15408
15409
  const StyledNavigationRail = styled.div`
15409
15410
  ${({
15410
15411
  theme,
15411
15412
  railItemPosition
15412
15413
  }) => css`
15413
- &.${rootClassName$u} {
15414
+ &.${rootClassName$v} {
15414
15415
  background: ${theme.palette.figma.neutral.elevated};
15415
15416
  border-left: 1px solid ${theme.palette.figma.border.default};
15416
15417
  display: flex;
@@ -15469,7 +15470,7 @@ const DotNavigationRail = ({
15469
15470
  railItems,
15470
15471
  selectedIndex = 0
15471
15472
  }) => {
15472
- const rootClasses = useStylesWithRootClass(rootClassName$u, className);
15473
+ const rootClasses = useStylesWithRootClass(rootClassName$v, className);
15473
15474
  const [selectedItemIndex, setSelectedItemIndex] = useState(selectedIndex);
15474
15475
  /* Used to change selected index programmatically from the consumer component */
15475
15476
  useEffect(() => {
@@ -15520,12 +15521,12 @@ const DotNavigationRail = ({
15520
15521
  });
15521
15522
  };
15522
15523
 
15523
- const rootClassName$t = 'dot-skeleton';
15524
+ const rootClassName$u = 'dot-skeleton';
15524
15525
  const StyledSkeleton = styled(Skeleton)`
15525
15526
  ${({
15526
15527
  theme
15527
15528
  }) => css`
15528
- &.${rootClassName$t} {
15529
+ &.${rootClassName$u} {
15529
15530
  background-color: ${theme.palette.figma.border.darker};
15530
15531
  }
15531
15532
  `}
@@ -15540,7 +15541,7 @@ const DotSkeleton = ({
15540
15541
  width,
15541
15542
  variant
15542
15543
  }) => {
15543
- const rootClasses = useStylesWithRootClass(rootClassName$t, className);
15544
+ const rootClasses = useStylesWithRootClass(rootClassName$u, className);
15544
15545
  return jsx(StyledSkeleton, {
15545
15546
  animation: "wave",
15546
15547
  "aria-label": ariaLabel,
@@ -15555,12 +15556,12 @@ const DotSkeleton = ({
15555
15556
  });
15556
15557
  };
15557
15558
 
15558
- const rootClassName$s = 'dot-split-button-group';
15559
+ const rootClassName$t = 'dot-split-button-group';
15559
15560
  const StyledSplitButtonGroup = styled(ButtonGroup)`
15560
15561
  ${({
15561
15562
  theme
15562
15563
  }) => css`
15563
- &.${rootClassName$s} {
15564
+ &.${rootClassName$t} {
15564
15565
  &.outlined,
15565
15566
  &.text {
15566
15567
  .expand-button {
@@ -15626,7 +15627,7 @@ const DotSplitButton = ({
15626
15627
  autoFocus = false,
15627
15628
  ariaLabel,
15628
15629
  className,
15629
- 'data-pendoid': dataPendoId = rootClassName$s,
15630
+ 'data-pendoid': dataPendoId = rootClassName$t,
15630
15631
  'data-testid': dataTestId,
15631
15632
  defaultMainOptionKey,
15632
15633
  disabled = false,
@@ -15642,7 +15643,7 @@ const DotSplitButton = ({
15642
15643
  tooltipPlacement,
15643
15644
  type = 'primary'
15644
15645
  }) => {
15645
- const rootClasses = useStylesWithRootClass(rootClassName$s, className, type, disabled ? 'disabled' : '');
15646
+ const rootClasses = useStylesWithRootClass(rootClassName$t, className, type, disabled ? 'disabled' : '');
15646
15647
  const [open, setOpen] = useState(false);
15647
15648
  const anchorRef = useRef(null);
15648
15649
  const hasEmptyOptions = options.length === 0;
@@ -15710,7 +15711,7 @@ const DotSplitButton = ({
15710
15711
  });
15711
15712
  };
15712
15713
 
15713
- const rootClassName$r = 'dot-stepper';
15714
+ const rootClassName$s = 'dot-stepper';
15714
15715
  const stepListClassName = 'dot-stepper-list';
15715
15716
  const contentClassName = 'dot-stepper-content';
15716
15717
  const StyledStepper = styled.div`
@@ -15718,7 +15719,7 @@ const StyledStepper = styled.div`
15718
15719
  theme,
15719
15720
  offset
15720
15721
  }) => css`
15721
- &.${rootClassName$r} {
15722
+ &.${rootClassName$s} {
15722
15723
  display: flex;
15723
15724
  align-items: flex-start;
15724
15725
  padding: 0;
@@ -16033,7 +16034,7 @@ const DotStepper = ({
16033
16034
  return ['left', 'right'].includes(stepsPosition) ? stepsPosition : 'left';
16034
16035
  }
16035
16036
  };
16036
- const rootClasses = useStylesWithRootClass(rootClassName$r, getStepsPosition(), className);
16037
+ const rootClasses = useStylesWithRootClass(rootClassName$s, getStepsPosition(), className);
16037
16038
  const stepContentClasses = displayInitialContent || displayFinalContent ? 'center-content' : '';
16038
16039
  const stickyBottomClasses = useStylesWithRootClass('actions-container', isStickyBottom ? 'with-top-border' : '');
16039
16040
  const actionsClasses = useStylesWithRootClass('actions', displayInitialContent || displayFinalContent ? 'center-actions' : '');
@@ -16251,12 +16252,12 @@ const DotStepper = ({
16251
16252
  });
16252
16253
  };
16253
16254
 
16254
- const rootClassName$q = 'dot-table-pagination-custom-actions';
16255
+ const rootClassName$r = 'dot-table-pagination-custom-actions';
16255
16256
  const StyledTablePaginationCustomActions = styled.div`
16256
16257
  ${({
16257
16258
  theme
16258
16259
  }) => css`
16259
- &.${rootClassName$q} {
16260
+ &.${rootClassName$r} {
16260
16261
  margin-left: ${theme.spacing(2.5)};
16261
16262
  display: flex;
16262
16263
  align-items: center;
@@ -16380,7 +16381,7 @@ const DotTablePaginationCustomActions = props => {
16380
16381
  });
16381
16382
  };
16382
16383
  return jsxs(StyledTablePaginationCustomActions, {
16383
- className: rootClassName$q,
16384
+ className: rootClassName$r,
16384
16385
  children: [jsx(DotIconButton, {
16385
16386
  ariaLabel: "previous page",
16386
16387
  className: "page-control-button",
@@ -16427,7 +16428,7 @@ const DotTablePaginationCustomActions = props => {
16427
16428
  });
16428
16429
  };
16429
16430
 
16430
- const rootClassName$p = 'dot-table-pagination';
16431
+ const rootClassName$q = 'dot-table-pagination';
16431
16432
  // TO-DO: Determine how to apply styles to standard popper element
16432
16433
  const paginationItemClassName = 'dot-pagination-menu-item';
16433
16434
  const StyledTablePagination = styled.div`
@@ -16435,7 +16436,7 @@ const StyledTablePagination = styled.div`
16435
16436
  theme,
16436
16437
  typography
16437
16438
  }) => css`
16438
- .${rootClassName$p} {
16439
+ .${rootClassName$q} {
16439
16440
  border-top: 1px solid ${theme.palette.figma.border.default};
16440
16441
 
16441
16442
  .dot-caption,
@@ -16478,7 +16479,7 @@ const DotTablePagination = ({
16478
16479
  showJumpToPageActionButton = false,
16479
16480
  typography = 'subtitle2'
16480
16481
  }) => {
16481
- const rootClasses = useStylesWithRootClass(rootClassName$p, className, showJumpToPageActionButton ? 'with-custom-actions' : '');
16482
+ const rootClasses = useStylesWithRootClass(rootClassName$q, className, showJumpToPageActionButton ? 'with-custom-actions' : '');
16482
16483
  const handlePageChange = (event, newPage) => {
16483
16484
  onPageChange && onPageChange(newPage);
16484
16485
  };
@@ -16487,7 +16488,7 @@ const DotTablePagination = ({
16487
16488
  };
16488
16489
  return (/* Container is used to pass 'typography' prop to a styled component */
16489
16490
  jsx(StyledTablePagination, {
16490
- className: rootClassName$p,
16491
+ className: rootClassName$q,
16491
16492
  typography: typography,
16492
16493
  children: jsx(TablePagination, {
16493
16494
  ActionsComponent: showJumpToPageActionButton ? DotTablePaginationCustomActions : undefined,
@@ -16514,14 +16515,14 @@ const DotTablePagination = ({
16514
16515
  );
16515
16516
  };
16516
16517
 
16517
- const rootClassName$o = 'dot-table';
16518
+ const rootClassName$p = 'dot-table';
16518
16519
  const MULTISELECT_COLUMN_WIDTH = 52;
16519
16520
  const COLLAPSIBLE_COLUMN_WIDTH = 42;
16520
16521
  const StyledPaper$1 = styled(Paper)`
16521
16522
  ${({
16522
16523
  theme
16523
16524
  }) => css`
16524
- &.${rootClassName$o} {
16525
+ &.${rootClassName$p} {
16525
16526
  background: ${theme.palette.figma.background.level0.componentsBackground};
16526
16527
  border: 1px solid ${theme.palette.figma.border.default};
16527
16528
  overflow: hidden;
@@ -16664,10 +16665,10 @@ const StyledMenu$1 = styled(DotMenu)`
16664
16665
  }
16665
16666
  `;
16666
16667
 
16667
- const rootClassName$n = 'dot-tbody';
16668
+ const rootClassName$o = 'dot-tbody';
16668
16669
  const StyledTableBody = styled(TableBody)`
16669
16670
  ${() => css`
16670
- &.${rootClassName$n} {
16671
+ &.${rootClassName$o} {
16671
16672
  tr:last-child td {
16672
16673
  border-bottom: none;
16673
16674
  }
@@ -16862,12 +16863,12 @@ function stableSort(array, comparator) {
16862
16863
  return stabilizedThis.map(el => el[0]);
16863
16864
  }
16864
16865
 
16865
- const rootClassName$m = 'dot-td';
16866
+ const rootClassName$n = 'dot-td';
16866
16867
  const StyledTableCell = styled(TableCell)`
16867
16868
  ${({
16868
16869
  theme
16869
16870
  }) => css`
16870
- &.${rootClassName$m} {
16871
+ &.${rootClassName$n} {
16871
16872
  padding-top: 0;
16872
16873
  padding-bottom: 0;
16873
16874
 
@@ -16962,7 +16963,7 @@ const DotBodyCell = ({
16962
16963
  const isOverflowing = actionTableCellWidth > (wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current.clientWidth);
16963
16964
  setShowMenu(isOverflowing);
16964
16965
  };
16965
- const rootClasses = useStylesWithRootClass(rootClassName$m, className, noWrap && 'noWrap', Array.isArray(value) && 'actionItems');
16966
+ const rootClasses = useStylesWithRootClass(rootClassName$n, className, noWrap && 'noWrap', Array.isArray(value) && 'actionItems');
16966
16967
  const getTableCellValue = () => {
16967
16968
  if (Array.isArray(value)) {
16968
16969
  return jsx("div", {
@@ -17030,13 +17031,13 @@ const EmptyDotRow = ({
17030
17031
  const TABLE_TYPOGRAPHY_VARIANT = 'body1';
17031
17032
  const TABLE_DEFAULT_SKELETON_ROWS = 4;
17032
17033
 
17033
- const rootClassName$l = 'dot-th-checkbox';
17034
+ const rootClassName$m = 'dot-th-checkbox';
17034
17035
  const styledTableHeaderCheckboxElement = (isCell = true) => {
17035
17036
  return styled(isCell ? TableCell : 'div')`
17036
17037
  ${({
17037
17038
  theme
17038
17039
  }) => css`
17039
- &.${rootClassName$l} {
17040
+ &.${rootClassName$m} {
17040
17041
  background: ${theme.palette.figma.background.level0.componentsBackground};
17041
17042
  padding: ${theme.spacing(0, 1)};
17042
17043
  width: ${theme.spacing(5)};
@@ -17064,7 +17065,7 @@ const DotHeaderCheckboxCell = ({
17064
17065
  isFromTableSelectionToolbar,
17065
17066
  multiSelectHeader
17066
17067
  }) => {
17067
- const rootClasses = useStylesWithRootClass(rootClassName$l, className, isFromTableSelectionToolbar ? 'table-selection-toolbar-checkbox' : '');
17068
+ const rootClasses = useStylesWithRootClass(rootClassName$m, className, isFromTableSelectionToolbar ? 'table-selection-toolbar-checkbox' : '');
17068
17069
  const [multiSelectState, setMultiSelectState] = useState('unchecked');
17069
17070
  const {
17070
17071
  onCheckAllChange,
@@ -17114,12 +17115,12 @@ const DotHeaderCheckboxCell = ({
17114
17115
  });
17115
17116
  };
17116
17117
 
17117
- const rootClassName$k = 'dot-th';
17118
+ const rootClassName$l = 'dot-th';
17118
17119
  const StyledTableHeaderCell = styled(TableCell)`
17119
17120
  ${({
17120
17121
  theme
17121
17122
  }) => css`
17122
- &.${rootClassName$k} {
17123
+ &.${rootClassName$l} {
17123
17124
  background: ${theme.palette.figma.background.level0.componentsBackground};
17124
17125
 
17125
17126
  &.MuiTableCell-alignCenter > span.MuiTableSortLabel-root {
@@ -17159,7 +17160,7 @@ const DotHeaderCell = ({
17159
17160
  value,
17160
17161
  width
17161
17162
  }) => {
17162
- const rootClasses = useStylesWithRootClass(rootClassName$k, pinned ? 'dot-pinned-cell' : '', className);
17163
+ const rootClasses = useStylesWithRootClass(rootClassName$l, pinned ? 'dot-pinned-cell' : '', className);
17163
17164
  const headerTitle = isString$2(value) ? value : null;
17164
17165
  const formattedValue = getFormattedTableCellValue(value, typography);
17165
17166
  const getCellValue = () => {
@@ -17250,12 +17251,12 @@ const DotHeaderRow = ({
17250
17251
  });
17251
17252
  };
17252
17253
 
17253
- const rootClassName$j = 'dot-tr';
17254
+ const rootClassName$k = 'dot-tr';
17254
17255
  const StyledTableRowStyles = styled(TableRow)`
17255
17256
  ${({
17256
17257
  theme
17257
17258
  }) => css`
17258
- &.${rootClassName$j} {
17259
+ &.${rootClassName$k} {
17259
17260
  &.selected {
17260
17261
  &,
17261
17262
  .dot-td.dot-pinned-cell,
@@ -17481,12 +17482,12 @@ const ExpandCollapseCell = ({
17481
17482
  });
17482
17483
  };
17483
17484
 
17484
- const rootClassName$i = 'dot-td-checkbox';
17485
+ const rootClassName$j = 'dot-td-checkbox';
17485
17486
  const StyledTableBodyCheckboxCell = styled(TableCell)`
17486
17487
  ${({
17487
17488
  theme
17488
17489
  }) => css`
17489
- &.${rootClassName$i} {
17490
+ &.${rootClassName$j} {
17490
17491
  padding: ${theme.spacing(0, 1)};
17491
17492
  width: ${theme.spacing(5)};
17492
17493
 
@@ -17505,7 +17506,7 @@ const DotBodyCheckboxCell = ({
17505
17506
  onChange,
17506
17507
  rowId
17507
17508
  }) => {
17508
- const rootClasses = useStylesWithRootClass(rootClassName$i, className);
17509
+ const rootClasses = useStylesWithRootClass(rootClassName$j, className);
17509
17510
  const [isCheckboxChecked, setIsCheckboxChecked] = useState(isChecked);
17510
17511
  /** This effect is used when 'checked' status is changed from the outside */
17511
17512
  useEffect(() => {
@@ -17558,7 +17559,7 @@ const DotTableRow = ({
17558
17559
  selectedTableRowIds
17559
17560
  } = multiSelectBody || {};
17560
17561
  const isCheckboxChecked = selectedTableRowIds && selectedTableRowIds.includes(id) || false;
17561
- const rootClasses = useStylesWithRootClass(rootClassName$j, isCheckboxChecked ? 'selected' : undefined, className);
17562
+ const rootClasses = useStylesWithRootClass(rootClassName$k, isCheckboxChecked ? 'selected' : undefined, className);
17562
17563
  const renderCheckboxCell = () => {
17563
17564
  return jsx(DotBodyCheckboxCell, {
17564
17565
  ariaLabel: "Click to select this row",
@@ -17679,7 +17680,7 @@ const DotTableBody = ({
17679
17680
  return jsxs(Fragment, {
17680
17681
  children: [jsx(StyledTableBody, {
17681
17682
  classes: {
17682
- root: rootClassName$n
17683
+ root: rootClassName$o
17683
17684
  },
17684
17685
  children: getTableBodyRows()
17685
17686
  }), jsx(StyledMenu$1, {
@@ -17694,12 +17695,12 @@ const DotTableBody = ({
17694
17695
  });
17695
17696
  };
17696
17697
 
17697
- const rootClassName$h = 'dot-table-selection-toolbar';
17698
+ const rootClassName$i = 'dot-table-selection-toolbar';
17698
17699
  const StyledTableSelectionToolbar = styled(DotActionToolbar)`
17699
17700
  ${({
17700
17701
  theme
17701
17702
  }) => css`
17702
- &.${rootClassName$h} {
17703
+ &.${rootClassName$i} {
17703
17704
  display: flex;
17704
17705
  align-items: center;
17705
17706
  justify-content: space-between;
@@ -17754,7 +17755,7 @@ const DotTableSelectionToolbar = ({
17754
17755
  multiSelectHeader,
17755
17756
  selectedRowsNumber
17756
17757
  }) => {
17757
- const rootClasses = useStylesWithRootClass(rootClassName$h, className);
17758
+ const rootClasses = useStylesWithRootClass(rootClassName$i, className);
17758
17759
  return jsxs(StyledTableSelectionToolbar, {
17759
17760
  ariaLabel: ariaLabel,
17760
17761
  className: rootClasses,
@@ -17833,7 +17834,14 @@ const DotTable = ({
17833
17834
  order,
17834
17835
  rowsPerPage
17835
17836
  }));
17836
- const rootClasses = useStylesWithRootClass(rootClassName$o, className, loading ? 'loading' : '', showMultiselectOverTableHeaderRow ? 'with-multiselect-over-table-header' : '', showMultiselectOverTableHeaderRow && !selectedRowsNumber ? 'hidden-multiselect' : '');
17837
+ // If the 'page' prop provided has changed since initial render, we need to update
17838
+ // the `tablePage` state so that it's passed to the TablePagination component.
17839
+ useEffect(() => {
17840
+ if (page !== tablePage) {
17841
+ setPage(page);
17842
+ }
17843
+ }, [page]);
17844
+ const rootClasses = useStylesWithRootClass(rootClassName$p, className, loading ? 'loading' : '', showMultiselectOverTableHeaderRow ? 'with-multiselect-over-table-header' : '', showMultiselectOverTableHeaderRow && !selectedRowsNumber ? 'hidden-multiselect' : '');
17837
17845
  const updateData = (newOrder, newOrderBy, newPage, newRowsPerPage) => {
17838
17846
  const newData = stableSort(data, getComparator(newOrder, newOrderBy));
17839
17847
  setPageData(newRowsPerPage ? newData.slice(newPage * newRowsPerPage, newPage * newRowsPerPage + newRowsPerPage) : newData);
@@ -18036,7 +18044,7 @@ const DotTableAction = ({
18036
18044
  });
18037
18045
  };
18038
18046
 
18039
- const rootClassName$g = 'dot-table-actions';
18047
+ const rootClassName$h = 'dot-table-actions';
18040
18048
  const TableActionsContainer = styled.div`
18041
18049
  overflow: hidden;
18042
18050
  text-overflow: clip;
@@ -18126,7 +18134,7 @@ const DotTableActions = ({
18126
18134
  };
18127
18135
  return jsxs(Fragment, {
18128
18136
  children: [jsxs(TableActionsContainer, {
18129
- className: rootClassName$g,
18137
+ className: rootClassName$h,
18130
18138
  ref: wrapperRef,
18131
18139
  children: [!showMenu && renderTableActions(), (showMenu || actions.length > 2) && jsx(DotIconButton, {
18132
18140
  ariaLabel: "more options",
@@ -18150,12 +18158,12 @@ const DotTableActions = ({
18150
18158
  });
18151
18159
  };
18152
18160
 
18153
- const rootClassName$f = 'dot-tabs';
18161
+ const rootClassName$g = 'dot-tabs';
18154
18162
  const StyledTabs = styled(Tabs)`
18155
18163
  ${({
18156
18164
  theme
18157
18165
  }) => css`
18158
- &.${rootClassName$f} {
18166
+ &.${rootClassName$g} {
18159
18167
  &.MuiTabs-root {
18160
18168
  width: 100%;
18161
18169
  }
@@ -18208,7 +18216,7 @@ const DotTabs = ({
18208
18216
  centered = false,
18209
18217
  className,
18210
18218
  color,
18211
- 'data-pendoid': dataPendoId = rootClassName$f,
18219
+ 'data-pendoid': dataPendoId = rootClassName$g,
18212
18220
  'data-testid': dataTestId,
18213
18221
  initialValue = 0,
18214
18222
  onChange,
@@ -18217,7 +18225,7 @@ const DotTabs = ({
18217
18225
  variant = 'standard'
18218
18226
  }) => {
18219
18227
  const [value, setValue] = useState(initialValue);
18220
- const rootClasses = useStylesWithRootClass(rootClassName$f, className);
18228
+ const rootClasses = useStylesWithRootClass(rootClassName$g, className);
18221
18229
  useEffect(() => {
18222
18230
  if (color) {
18223
18231
  console.warn('DEPRECATED: `color` prop is deprecated in `<DotTabs>`, please remove any usage of it in your application.');
@@ -18271,9 +18279,9 @@ const DotTabs = ({
18271
18279
  });
18272
18280
  };
18273
18281
 
18274
- const rootClassName$e = 'dot-file-upload';
18275
- const containerClassName = `${rootClassName$e}-container`;
18276
- const dropZoneClassName = `${rootClassName$e}-drop-zone`;
18282
+ const rootClassName$f = 'dot-file-upload';
18283
+ const containerClassName = `${rootClassName$f}-container`;
18284
+ const dropZoneClassName = `${rootClassName$f}-drop-zone`;
18277
18285
  const StyledFileUploadContainer = styled.div`
18278
18286
  ${({
18279
18287
  theme
@@ -18293,7 +18301,7 @@ const StyledFileUpload = styled.div`
18293
18301
  ${({
18294
18302
  theme
18295
18303
  }) => css`
18296
- &.${rootClassName$e}.${dropZoneClassName} {
18304
+ &.${rootClassName$f}.${dropZoneClassName} {
18297
18305
  align-items: center;
18298
18306
  background: ${theme.palette.figma.background.level0.bckgGray};
18299
18307
  border: 2px dashed ${theme.palette.figma.border.defaultButton};
@@ -18318,18 +18326,19 @@ const StyledFileUpload = styled.div`
18318
18326
 
18319
18327
  i.dot-i {
18320
18328
  height: 100px;
18329
+ width: 100px;
18321
18330
  }
18322
18331
  }
18323
18332
  }
18324
18333
  `}
18325
18334
  `;
18326
18335
 
18327
- const rootClassName$d = 'dot-file-list-item';
18336
+ const rootClassName$e = 'dot-file-list-item';
18328
18337
  const StyledFileListItem = styled(StyledListItem)`
18329
18338
  ${({
18330
18339
  theme
18331
18340
  }) => css`
18332
- &.${rootClassName$d} {
18341
+ &.${rootClassName$e} {
18333
18342
  border-bottom: 1px solid ${theme.palette.figma.border.default};
18334
18343
  &:hover {
18335
18344
  cursor: pointer;
@@ -18341,7 +18350,7 @@ const StyledFileListItem = styled(StyledListItem)`
18341
18350
  outline: none;
18342
18351
  }
18343
18352
 
18344
- &.file-success:not(:hover, :focus-visible) .${rootClassName$d}-end-icon {
18353
+ &.file-success:not(:hover, :focus-visible) .${rootClassName$e}-end-icon {
18345
18354
  i:before {
18346
18355
  color: ${theme.palette.figma.success.normal};
18347
18356
  }
@@ -18351,7 +18360,7 @@ const StyledFileListItem = styled(StyledListItem)`
18351
18360
  }
18352
18361
  }
18353
18362
 
18354
- &.file-error:not(:hover, :focus-visible) .${rootClassName$d}-end-icon {
18363
+ &.file-error:not(:hover, :focus-visible) .${rootClassName$e}-end-icon {
18355
18364
  i:before,
18356
18365
  .MuiListItemText-secondary {
18357
18366
  color: ${theme.palette.figma.destructive.normal};
@@ -18393,7 +18402,7 @@ const DotFileListItem = ({
18393
18402
  onKeyPress,
18394
18403
  tabIndex = 0
18395
18404
  }) => {
18396
- const rootClasses = useStylesWithRootClass(rootClassName$d, className, error ? 'file-error' : 'file-success');
18405
+ const rootClasses = useStylesWithRootClass(rootClassName$e, className, error ? 'file-error' : 'file-success');
18397
18406
  const defaultIcon = error ? 'error-solid' : 'check-solid';
18398
18407
  const [endIcon, setEndIcon] = useState(defaultIcon);
18399
18408
  const handleItemClick = clickedFile => _event => onClick === null || onClick === void 0 ? void 0 : onClick(clickedFile);
@@ -18426,7 +18435,7 @@ const DotFileListItem = ({
18426
18435
  })]
18427
18436
  }), jsx(DotIconButton, {
18428
18437
  ariaLabel: "delete file",
18429
- className: `${rootClassName$d}-end-icon`,
18438
+ className: `${rootClassName$e}-end-icon`,
18430
18439
  "data-testid": dataTestId && `${dataTestId}-end-icon`,
18431
18440
  disabled: disableDelete,
18432
18441
  iconId: endIcon,
@@ -18550,7 +18559,7 @@ const DotFileUpload = ({
18550
18559
  buttonOnly = false,
18551
18560
  className,
18552
18561
  contentErrors,
18553
- 'data-pendoid': dataPendoId = rootClassName$e,
18562
+ 'data-pendoid': dataPendoId = rootClassName$f,
18554
18563
  'data-testid': dataTestId,
18555
18564
  disabled,
18556
18565
  hideFilesList,
@@ -18563,7 +18572,7 @@ const DotFileUpload = ({
18563
18572
  const [uploadedFiles, setUploadedFiles] = useState([]);
18564
18573
  const [hasMaxFilesError, setHasMaxFilesError] = useState(false);
18565
18574
  const isUploadDisabled = disabled || maxFiles && uploadedFiles.length >= maxFiles;
18566
- const rootClasses = useStylesWithRootClass(rootClassName$e, className, !buttonOnly ? dropZoneClassName : '', isUploadDisabled ? 'disabled' : '');
18575
+ const rootClasses = useStylesWithRootClass(rootClassName$f, className, !buttonOnly ? dropZoneClassName : '', isUploadDisabled ? 'disabled' : '');
18567
18576
  const maxFilesClasses = useStylesWithRootClass('dot-max-files-message', hasMaxFilesError ? 'dot-max-files-reached' : '');
18568
18577
  const allowMultiple = maxFiles === undefined || maxFiles > 1;
18569
18578
  const setNewlyUploadedFiles = (acceptedFiles, fileRejections) => {
@@ -18635,12 +18644,12 @@ const DotFileUpload = ({
18635
18644
  });
18636
18645
  };
18637
18646
 
18638
- const rootClassName$c = 'dot-divider';
18647
+ const rootClassName$d = 'dot-divider';
18639
18648
  const StyledDivider = styled(Divider)`
18640
18649
  ${({
18641
18650
  theme
18642
18651
  }) => css`
18643
- &.${rootClassName$c} {
18652
+ &.${rootClassName$d} {
18644
18653
  color: ${theme.palette.figma.border.darker};
18645
18654
 
18646
18655
  .MuiDivider-light {
@@ -18660,7 +18669,7 @@ const DotDivider = ({
18660
18669
  orientation,
18661
18670
  variant
18662
18671
  }) => {
18663
- const rootClasses = useStylesWithRootClass(rootClassName$c, className);
18672
+ const rootClasses = useStylesWithRootClass(rootClassName$d, className);
18664
18673
  return jsx(StyledDivider, {
18665
18674
  absolute: absolute,
18666
18675
  "aria-label": ariaLabel,
@@ -18689,7 +18698,7 @@ const DotPopper = ({
18689
18698
  placement
18690
18699
  }) => {
18691
18700
  const [arrowRef, setArrowRef] = useState(null);
18692
- const rootClasses = useStylesWithRootClass(rootClassName$1d, className);
18701
+ const rootClasses = useStylesWithRootClass(rootClassName$1e, className);
18693
18702
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
18694
18703
  const handleClickAway = event => {
18695
18704
  if (onClickAway && (!anchorEl || !anchorEl.contains(event.currentTarget))) {
@@ -18754,14 +18763,14 @@ const getListItemLayout = listItems => {
18754
18763
  }));
18755
18764
  };
18756
18765
 
18757
- const rootClassName$b = 'dot-draggable-list';
18766
+ const rootClassName$c = 'dot-draggable-list';
18758
18767
  const listItemClassName = 'dot-draggable-list-item';
18759
18768
  const StyledDraggableList = styled.div`
18760
18769
  ${({
18761
18770
  theme,
18762
18771
  draggableHandle
18763
18772
  }) => css`
18764
- &.${rootClassName$b} {
18773
+ &.${rootClassName$c} {
18765
18774
  padding: ${theme.spacing(1, 0)};
18766
18775
  position: relative;
18767
18776
 
@@ -18796,7 +18805,7 @@ const ListGridLayout = WidthProvider(GridLayout);
18796
18805
  const DotDraggableList = ({
18797
18806
  ariaLabel,
18798
18807
  className,
18799
- 'data-pendoid': dataPendoId = rootClassName$b,
18808
+ 'data-pendoid': dataPendoId = rootClassName$c,
18800
18809
  'data-testid': dataTestId,
18801
18810
  disableDrag,
18802
18811
  draggableHandle,
@@ -18805,7 +18814,7 @@ const DotDraggableList = ({
18805
18814
  rowHeight = DEFAULT_LIST_ITEM_HEIGHT,
18806
18815
  width = DEFAULT_LIST_WIDTH
18807
18816
  }) => {
18808
- const rootClasses = useStylesWithRootClass(rootClassName$b, className, draggableHandle ? 'with-draggable-handle' : '');
18817
+ const rootClasses = useStylesWithRootClass(rootClassName$c, className, draggableHandle ? 'with-draggable-handle' : '');
18809
18818
  const listItemClasses = useStylesWithRootClass(listItemClassName, draggableHandle && !disableDrag ? 'with-handle-grab-cursor' : '', draggableHandle || disableDrag ? 'with-default-cursor' : '');
18810
18819
  const listWidth = isNumber(width) ? `${width}px` : width;
18811
18820
  const [orderedItems, setOrderedItems] = useState([]);
@@ -52155,7 +52164,7 @@ cjs.exports.DraggableCore = DraggableCore;
52155
52164
 
52156
52165
  var Draggable$1 = cjs.exports;
52157
52166
 
52158
- const rootClassName$a = 'dot-draggable-window';
52167
+ const rootClassName$b = 'dot-draggable-window';
52159
52168
  const defaultWidth = '600px';
52160
52169
  const defaultHeight = '324px';
52161
52170
  const StyledPaper = styled(Paper)`
@@ -52164,7 +52173,7 @@ const StyledPaper = styled(Paper)`
52164
52173
  $maxHeight,
52165
52174
  $maxWidth
52166
52175
  }) => css`
52167
- &.${rootClassName$a} {
52176
+ &.${rootClassName$b} {
52168
52177
  max-width: ${$maxWidth !== null && $maxWidth !== void 0 ? $maxWidth : defaultWidth};
52169
52178
  max-height: ${$maxHeight !== null && $maxHeight !== void 0 ? $maxHeight : defaultHeight};
52170
52179
  ${$maxWidth ? '' : `width: ${defaultWidth};`}
@@ -52202,7 +52211,7 @@ const StyledPaper = styled(Paper)`
52202
52211
  const DotDraggableWindow = ({
52203
52212
  ariaLabel,
52204
52213
  anchorEl,
52205
- 'data-pendoid': dataPendoId = rootClassName$a,
52214
+ 'data-pendoid': dataPendoId = rootClassName$b,
52206
52215
  'data-testid': dataTestId,
52207
52216
  className,
52208
52217
  children,
@@ -52211,7 +52220,7 @@ const DotDraggableWindow = ({
52211
52220
  onClose,
52212
52221
  title
52213
52222
  }) => {
52214
- const rootClasses = useStylesWithRootClass(rootClassName$a, className);
52223
+ const rootClasses = useStylesWithRootClass(rootClassName$b, className);
52215
52224
  const nodeRef = useRef(null);
52216
52225
  return jsx(Draggable$1, {
52217
52226
  bounds: "body",
@@ -52253,12 +52262,12 @@ const DotDraggableWindow = ({
52253
52262
  });
52254
52263
  };
52255
52264
 
52256
- const rootClassName$9 = 'dot-linear-progress';
52265
+ const rootClassName$a = 'dot-linear-progress';
52257
52266
  const StyledLinearProgress = styled(LinearProgress)`
52258
52267
  ${({
52259
52268
  theme
52260
52269
  }) => css`
52261
- &.${rootClassName$9} {
52270
+ &.${rootClassName$a} {
52262
52271
  &.MuiLinearProgress-colorError {
52263
52272
  color: ${theme.palette.figma.inProgress.error};
52264
52273
  }
@@ -52290,7 +52299,7 @@ const DotLinearProgress = ({
52290
52299
  valueBuffer,
52291
52300
  variant = 'indeterminate'
52292
52301
  }) => {
52293
- const rootClasses = useStylesWithRootClass(rootClassName$9, className);
52302
+ const rootClasses = useStylesWithRootClass(rootClassName$a, className);
52294
52303
  useEffect(() => {
52295
52304
  if (!ariaLabel) {
52296
52305
  console.warn('a11y: DotLinearProgress must have an ariaLabel to describe the progress bar');
@@ -52341,7 +52350,7 @@ const DotDatePicker = ({
52341
52350
  autoFocus = false,
52342
52351
  className,
52343
52352
  closeOnSelect = true,
52344
- 'data-pendoid': dataPendoId = rootClassName$C,
52353
+ 'data-pendoid': dataPendoId = rootClassName$D,
52345
52354
  'data-testid': dataTestId,
52346
52355
  defaultValue,
52347
52356
  disableOpenPicker,
@@ -52382,7 +52391,7 @@ const DotDatePicker = ({
52382
52391
  const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
52383
52392
  const isInputReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
52384
52393
  const inputRef = useRef(null);
52385
- const rootClasses = useStylesWithRootClass(rootClassName$C, className, isInputReadOnly ? 'read-only' : '');
52394
+ const rootClasses = useStylesWithRootClass(rootClassName$D, className, isInputReadOnly ? 'read-only' : '');
52386
52395
  const containerClasses = useStylesWithRootClass(containerClassName$2, fullWidth ? 'full-width' : '', className);
52387
52396
  const focusInput = ref => {
52388
52397
  setTimeout(() => {
@@ -52602,7 +52611,7 @@ const DotTimePicker = ({
52602
52611
  ariaLabel,
52603
52612
  autoFocus = false,
52604
52613
  className,
52605
- 'data-pendoid': dataPendoId = rootClassName$B,
52614
+ 'data-pendoid': dataPendoId = rootClassName$C,
52606
52615
  'data-testid': dataTestId,
52607
52616
  defaultValue,
52608
52617
  disableOpenPicker = false,
@@ -52634,7 +52643,7 @@ const DotTimePicker = ({
52634
52643
  const hasValueWithoutChangeHandler = value !== undefined && onChange === undefined;
52635
52644
  const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
52636
52645
  const isComponentReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
52637
- const rootClasses = useStylesWithRootClass(rootClassName$B, className, isComponentReadOnly ? 'read-only' : '');
52646
+ const rootClasses = useStylesWithRootClass(rootClassName$C, className, isComponentReadOnly ? 'read-only' : '');
52638
52647
  const containerClasses = useStylesWithRootClass(containerClassName$1, fullWidth ? 'full-width' : '', className);
52639
52648
  const inputRef = useRef(null);
52640
52649
  const [isPickerOpened, setIsPickerOpened] = useState(false);
@@ -52926,13 +52935,13 @@ const DotTimePicker = ({
52926
52935
  });
52927
52936
  };
52928
52937
 
52929
- const rootClassName$8 = 'dot-carousel';
52938
+ const rootClassName$9 = 'dot-carousel';
52930
52939
  const StyledCarousel = styled.div`
52931
52940
  ${({
52932
52941
  backgroundColor,
52933
52942
  theme
52934
52943
  }) => css`
52935
- &.${rootClassName$8} {
52944
+ &.${rootClassName$9} {
52936
52945
  display: flex;
52937
52946
  flex-direction: column;
52938
52947
  justify-content: space-between;
@@ -53032,7 +53041,7 @@ const DotCarousel = ({
53032
53041
  progressIndicator,
53033
53042
  showPagesButtons = true
53034
53043
  }) => {
53035
- const rootClasses = useStylesWithRootClass(rootClassName$8, className, backgroundColor ? 'with-background-color' : '');
53044
+ const rootClasses = useStylesWithRootClass(rootClassName$9, className, backgroundColor ? 'with-background-color' : '');
53036
53045
  const rightNavigationButtonClasses = useStylesWithRootClass('carousel-right-arrow', displayNavigationButtons);
53037
53046
  const leftNavigationButtonClasses = useStylesWithRootClass('carousel-left-arrow', displayNavigationButtons);
53038
53047
  const createUuids = () => {
@@ -53183,13 +53192,13 @@ const DotCarousel = ({
53183
53192
  });
53184
53193
  };
53185
53194
 
53186
- const rootClassName$7 = 'dot-sticky-with-border';
53195
+ const rootClassName$8 = 'dot-sticky-with-border';
53187
53196
  const StyledStickyWithBorder = styled.div`
53188
53197
  ${({
53189
53198
  pinnedStickyBorder,
53190
53199
  unpinnedStickyBorder
53191
53200
  }) => css`
53192
- &.${rootClassName$7} {
53201
+ &.${rootClassName$8} {
53193
53202
  position: sticky;
53194
53203
  top: -1px;
53195
53204
 
@@ -53217,7 +53226,7 @@ const DotStickyWithBorder = ({
53217
53226
  }) => {
53218
53227
  const [isPinned, setIsPinned] = useState(false);
53219
53228
  const ref = useRef();
53220
- const rootClasses = useStylesWithRootClass(rootClassName$7, className, isPinned ? 'pinned' : 'unpinned');
53229
+ const rootClasses = useStylesWithRootClass(rootClassName$8, className, isPinned ? 'pinned' : 'unpinned');
53221
53230
  useEffect(() => {
53222
53231
  const element = ref.current;
53223
53232
  const observer = new IntersectionObserver(([e]) => setIsPinned(e.intersectionRatio < 1), {
@@ -53239,18 +53248,18 @@ const DotStickyWithBorder = ({
53239
53248
  });
53240
53249
  };
53241
53250
 
53242
- const rootClassName$6 = 'dot--board';
53251
+ const rootClassName$7 = 'dot--board';
53243
53252
  const classNames$5 = {
53244
- root: rootClassName$6,
53245
- spacingNormal: `${rootClassName$6}-normal`,
53246
- spacingDense: `${rootClassName$6}-dense`,
53247
- loading: `${rootClassName$6}-loading`
53253
+ root: rootClassName$7,
53254
+ spacingNormal: `${rootClassName$7}-normal`,
53255
+ spacingDense: `${rootClassName$7}-dense`,
53256
+ loading: `${rootClassName$7}-loading`
53248
53257
  };
53249
53258
  const StyledBoard = styled.div`
53250
53259
  ${({
53251
53260
  theme
53252
53261
  }) => css`
53253
- &.${rootClassName$6} {
53262
+ &.${rootClassName$7} {
53254
53263
  display: flex;
53255
53264
  overflow-x: auto;
53256
53265
  flex: 1;
@@ -53258,7 +53267,7 @@ const StyledBoard = styled.div`
53258
53267
  }
53259
53268
 
53260
53269
  @media (max-width: 650px) {
53261
- &.${rootClassName$6} {
53270
+ &.${rootClassName$7} {
53262
53271
  justify-content: center;
53263
53272
  }
53264
53273
  }
@@ -53359,18 +53368,18 @@ const Board = React__default.forwardRef(({
53359
53368
  });
53360
53369
  });
53361
53370
 
53362
- const rootClassName$5 = 'dot--board-column';
53371
+ const rootClassName$6 = 'dot--board-column';
53363
53372
  const classNames$4 = {
53364
- root: rootClassName$5,
53365
- spacingNormal: `${rootClassName$5}-normal`,
53366
- spacingDense: `${rootClassName$5}-dense`,
53367
- collapse: `${rootClassName$5}-collapse`
53373
+ root: rootClassName$6,
53374
+ spacingNormal: `${rootClassName$6}-normal`,
53375
+ spacingDense: `${rootClassName$6}-dense`,
53376
+ collapse: `${rootClassName$6}-collapse`
53368
53377
  };
53369
53378
  const StyledBoardColumn = styled.div`
53370
53379
  ${({
53371
53380
  theme
53372
53381
  }) => css`
53373
- &.${rootClassName$5} {
53382
+ &.${rootClassName$6} {
53374
53383
  display: flex;
53375
53384
  flex-direction: column;
53376
53385
  overflow: hidden;
@@ -53461,13 +53470,13 @@ const BoardColumn = React__default.forwardRef(({
53461
53470
  });
53462
53471
  });
53463
53472
 
53464
- const rootClassName$4 = 'dot--board-column-header';
53473
+ const rootClassName$5 = 'dot--board-column-header';
53465
53474
  const classNames$3 = {
53466
- root: rootClassName$4,
53467
- spacingNormal: `${rootClassName$4}-normal`,
53468
- spacingDense: `${rootClassName$4}-dense`,
53469
- colorBar: `${rootClassName$4}-color-bar`,
53470
- title: `${rootClassName$4}-title`
53475
+ root: rootClassName$5,
53476
+ spacingNormal: `${rootClassName$5}-normal`,
53477
+ spacingDense: `${rootClassName$5}-dense`,
53478
+ colorBar: `${rootClassName$5}-color-bar`,
53479
+ title: `${rootClassName$5}-title`
53471
53480
  };
53472
53481
  const StyledBoardColumnHeader = styled.div`
53473
53482
  ${({
@@ -53535,11 +53544,11 @@ const BoardColumnHeader = ({
53535
53544
  });
53536
53545
  };
53537
53546
 
53538
- const rootClassName$3 = 'dot--board-column-items';
53547
+ const rootClassName$4 = 'dot--board-column-items';
53539
53548
  const classNames$2 = {
53540
- root: rootClassName$3,
53541
- spacingNormal: `${rootClassName$3}-normal`,
53542
- spacingDense: `${rootClassName$3}-dense`
53549
+ root: rootClassName$4,
53550
+ spacingNormal: `${rootClassName$4}-normal`,
53551
+ spacingDense: `${rootClassName$4}-dense`
53543
53552
  };
53544
53553
  const StyledBoardColumnItems = styled.div`
53545
53554
  ${({
@@ -53591,11 +53600,11 @@ const BoardColumnItems = ({
53591
53600
  });
53592
53601
  };
53593
53602
 
53594
- const rootClassName$2 = 'dot--board-column-action-bar';
53603
+ const rootClassName$3 = 'dot--board-column-action-bar';
53595
53604
  const classNames$1 = {
53596
- root: rootClassName$2,
53597
- spacingNormal: `${rootClassName$2}-normal`,
53598
- spacingDense: `${rootClassName$2}-dense`
53605
+ root: rootClassName$3,
53606
+ spacingNormal: `${rootClassName$3}-normal`,
53607
+ spacingDense: `${rootClassName$3}-dense`
53599
53608
  };
53600
53609
  const StyledBoardColumnActionBar = styled(DotActionToolbar)`
53601
53610
  ${({
@@ -53666,13 +53675,13 @@ const BoardColumnCollapse = ({
53666
53675
  return useMemo(() => collapsed ? children : null, [children, collapsed]);
53667
53676
  };
53668
53677
 
53669
- const rootClassName$1 = 'dot--board-column-header';
53678
+ const rootClassName$2 = 'dot--board-column-header';
53670
53679
  const classNames = {
53671
- root: rootClassName$1,
53672
- spacingNormal: `${rootClassName$1}-normal`,
53673
- spacingDense: `${rootClassName$1}-dense`,
53674
- title: `${rootClassName$1}-title`,
53675
- text: `${rootClassName$1}-text`
53680
+ root: rootClassName$2,
53681
+ spacingNormal: `${rootClassName$2}-normal`,
53682
+ spacingDense: `${rootClassName$2}-dense`,
53683
+ title: `${rootClassName$2}-title`,
53684
+ text: `${rootClassName$2}-text`
53676
53685
  };
53677
53686
  const StyledBoardColumnSummary = styled.div`
53678
53687
  ${({
@@ -53734,12 +53743,12 @@ const BoardColumnSummary = ({
53734
53743
  });
53735
53744
  };
53736
53745
 
53737
- const rootClassName = 'dot-search';
53746
+ const rootClassName$1 = 'dot-search';
53738
53747
  const StyledSearch = styled(DotInputText)`
53739
53748
  ${({
53740
53749
  theme
53741
53750
  }) => css`
53742
- &.${rootClassName} {
53751
+ &.${rootClassName$1} {
53743
53752
  &.with-value .MuiInputBase-root {
53744
53753
  background-color: ${theme.palette.figma.primary.light};
53745
53754
 
@@ -53782,7 +53791,7 @@ const DotSearch = _a => {
53782
53791
  value
53783
53792
  } = _a,
53784
53793
  rest = __rest(_a, ["ariaLabel", "className", 'data-testid', "disabled", "hasDebounce", "id", "name", "onSearch", "onClear", "placeholder", "value"]);
53785
- const rootClasses = useStylesWithRootClass(rootClassName, className, value ? 'with-value' : '');
53794
+ const rootClasses = useStylesWithRootClass(rootClassName$1, className, value ? 'with-value' : '');
53786
53795
  return jsx(StyledSearch, Object.assign({}, rest, {
53787
53796
  "aria-label": ariaLabel,
53788
53797
  className: rootClasses,
@@ -53801,4 +53810,126 @@ const DotSearch = _a => {
53801
53810
  }));
53802
53811
  };
53803
53812
 
53804
- export { ApiError$1 as ApiError, BoardStatusProvider, Cell, ColumnStatusProvider, CreateUUID, CssCell, CssGrid, CssGridDebug, DashboardAppTypeOptions, DashboardView, DatePickerKeydownContext, Daytime, DotAccordion, DotActionToolbar, DotAlertBanner, DotAnnotation, DotAppLogo, DotAppSwitcher, DotAppToolbar, DotAutoComplete, DotAvatar, DotAvatarGroup, DotAvatarWithDetails, DotBadge, Board as DotBoard, BoardColumn as DotBoardColumn, BoardColumnActionBar as DotBoardColumnActionBar, BoardColumnCollapse as DotBoardColumnCollapse, BoardColumnExpand as DotBoardColumnExpand, BoardColumnHeader as DotBoardColumnHeader, BoardColumnItems as DotBoardColumnItems, BoardColumnSummary as DotBoardColumnSummary, DotBreadcrumbs, DotButton, DotButtonToggle, DotCard, DotCardContent, DotCardFooter, DotCardHeader, DotCarousel, DotCheckbox, DotCheckboxGroup, DotChip, DotChipList, DotClickAwayListener, DotConfirmationDialog, DotCopyButton, DotCoreApiProvider, DotDashboardActions, DotDashboardDetails, DotDashboardDialog, DotDashboardHeader, DotDashboardOptionsMenu, DotDashboardPublishConfirm, DotDashboardStatusPill, DotDatePicker, DotDialog, DotDivider, DotDraggableList, DotDraggableWindow, DotDrawer, DotDynamicForm, DotEmptyFilterState, DotEmptyState, DotFileListItem, DotFileUpload, DotForm, DotFormGroup, DotHeaderRow, DotIcon, DotIconButton, DotIllustration, DotImpactDialog, DotInlineEdit, DotInputLabel, DotInputSelect, DotInputText, DotLinearProgress, DotLink, DotList, DotMenu, DotMenuList, DotMetadataApiProvider, DotNavigationRail, DotPill, DotPopper, DotProgress, DotProgressButton, DotRadioButton, DotRadioGroup, DotSearch, DotSidebar, DotSkeleton, DotSnackbar, DotSnackbarContainer, DotSnackbarProvider, DotSplitButton, DotStepper, DotStickyWithBorder, DotSwitch, DotTable, DotTableAction, DotTableActions, DotTablePagination, DotTabs, DotThemeProvider, DotTimePicker, DotTooltip, DotTruncateWithTooltip, DotTypography, avatarColors, breakpointOptions, checkIfValidDate, darkFigmaColors, lightThemeColors as lightColors, lightFigmaColors, mockScrollIntoView, parseAutoCompleteValue, variables as themeVariables, typographyOptions, useBoardStatus, useColumnStatus, useDotCoreApiContext, useDotMetadataApiContext, useDotSnackbarContext, useEnqueueErrorMessage, useKeyPress };
53813
+ const rootClassName = 'dot-toggle-switch';
53814
+ const StyledToggleSwitch = styled(Stack)`
53815
+ ${({
53816
+ theme
53817
+ }) => css`
53818
+ &.${rootClassName} {
53819
+ gap: ${theme.spacing(2)};
53820
+ cursor: pointer;
53821
+
53822
+ .dot-options {
53823
+ height: ${theme.spacing(3.5)};
53824
+ border-radius: 999px;
53825
+ background-color: ${theme.palette.figma.background.level1.deep};
53826
+
53827
+ &:focus-visible {
53828
+ outline: none;
53829
+ box-shadow: 0 0 0 2px
53830
+ ${theme.palette.figma.background.level0.bckgWhite},
53831
+ 0 0 0 4px ${theme.palette.figma.primary.normal};
53832
+ }
53833
+
53834
+ .dot-chip-container {
53835
+ display: flex;
53836
+ gap: ${theme.spacing(0.25)};
53837
+ margin: ${theme.spacing(0.25)};
53838
+
53839
+ .dot-toggle-switch-chip {
53840
+ height: ${theme.spacing(3)};
53841
+ user-select: none;
53842
+ cursor: pointer;
53843
+
53844
+ .MuiChip-label {
53845
+ padding: ${theme.spacing(0, 1)};
53846
+ }
53847
+
53848
+ &:not(.selected) {
53849
+ background-color: transparent;
53850
+ }
53851
+ }
53852
+ }
53853
+ }
53854
+
53855
+ &.dot-disabled {
53856
+ &,
53857
+ .dot-toggle-switch-chip {
53858
+ cursor: default !important;
53859
+ }
53860
+
53861
+ .dot-toggle-switch-label {
53862
+ color: ${theme.palette.figma.typography.disabled};
53863
+ }
53864
+ }
53865
+ }
53866
+ `}
53867
+ `;
53868
+
53869
+ const DotToggleSwitch = ({
53870
+ ariaLabel,
53871
+ className,
53872
+ 'data-pendoid': dataPendoId = rootClassName,
53873
+ 'data-testid': dataTestId,
53874
+ disabled = false,
53875
+ label,
53876
+ onChange,
53877
+ options,
53878
+ value
53879
+ }) => {
53880
+ const toggleOptions = options.slice(0, 2);
53881
+ const isChecked = toggleOptions[1].value === value;
53882
+ const rootClasses = useStylesWithRootClass(rootClassName, className, disabled ? 'dot-disabled' : '');
53883
+ const toggleValue = () => {
53884
+ const [firstOption, secondOption] = toggleOptions;
53885
+ const newValue = value === firstOption.value ? secondOption.value : firstOption.value;
53886
+ onChange(newValue);
53887
+ };
53888
+ const handleKeyDown = event => {
53889
+ if (event.key === 'Enter' || event.key === ' ') {
53890
+ event.preventDefault();
53891
+ toggleValue();
53892
+ }
53893
+ };
53894
+ return jsxs(StyledToggleSwitch, {
53895
+ className: rootClasses,
53896
+ "data-testid": dataTestId,
53897
+ "data-pendoid": dataPendoId,
53898
+ direction: "row",
53899
+ alignItems: "center",
53900
+ display: "inline-flex",
53901
+ onClick: disabled ? undefined : toggleValue,
53902
+ onKeyDown: handleKeyDown,
53903
+ children: [jsx("div", {
53904
+ "aria-label": ariaLabel,
53905
+ "aria-checked": isChecked,
53906
+ className: "dot-options",
53907
+ role: "switch",
53908
+ tabIndex: disabled ? -1 : 0,
53909
+ children: jsx("div", {
53910
+ className: "dot-chip-container",
53911
+ children: toggleOptions.map(({
53912
+ text: optionText,
53913
+ value: optionValue
53914
+ }) => {
53915
+ const isSelected = value === optionValue;
53916
+ const chipClasses = useStylesWithRootClass('dot-toggle-switch-chip', isSelected ? 'selected' : '');
53917
+ return jsx(Chip, {
53918
+ className: chipClasses,
53919
+ color: isSelected && !disabled ? 'primary' : 'default',
53920
+ "data-testid": dataTestId ? `${dataTestId}-chip-${optionValue}` : undefined,
53921
+ label: optionText,
53922
+ tabIndex: -1,
53923
+ variant: "filled"
53924
+ }, optionValue.toString());
53925
+ })
53926
+ })
53927
+ }), label && jsx(DotTypography, {
53928
+ className: "dot-toggle-switch-label",
53929
+ variant: "body1",
53930
+ children: label
53931
+ })]
53932
+ });
53933
+ };
53934
+
53935
+ export { ApiError$1 as ApiError, BoardStatusProvider, Cell, ColumnStatusProvider, CreateUUID, CssCell, CssGrid, CssGridDebug, DashboardAppTypeOptions, DashboardView, DatePickerKeydownContext, Daytime, DotAccordion, DotActionToolbar, DotAlertBanner, DotAnnotation, DotAppLogo, DotAppSwitcher, DotAppToolbar, DotAutoComplete, DotAvatar, DotAvatarGroup, DotAvatarWithDetails, DotBadge, Board as DotBoard, BoardColumn as DotBoardColumn, BoardColumnActionBar as DotBoardColumnActionBar, BoardColumnCollapse as DotBoardColumnCollapse, BoardColumnExpand as DotBoardColumnExpand, BoardColumnHeader as DotBoardColumnHeader, BoardColumnItems as DotBoardColumnItems, BoardColumnSummary as DotBoardColumnSummary, DotBreadcrumbs, DotButton, DotButtonToggle, DotCard, DotCardContent, DotCardFooter, DotCardHeader, DotCarousel, DotCheckbox, DotCheckboxGroup, DotChip, DotChipList, DotClickAwayListener, DotConfirmationDialog, DotCopyButton, DotCoreApiProvider, DotDashboardActions, DotDashboardDetails, DotDashboardDialog, DotDashboardHeader, DotDashboardOptionsMenu, DotDashboardPublishConfirm, DotDashboardStatusPill, DotDatePicker, DotDialog, DotDivider, DotDraggableList, DotDraggableWindow, DotDrawer, DotDynamicForm, DotEmptyFilterState, DotEmptyState, DotFileListItem, DotFileUpload, DotForm, DotFormGroup, DotHeaderRow, DotIcon, DotIconButton, DotIllustration, DotImpactDialog, DotInlineEdit, DotInputLabel, DotInputSelect, DotInputText, DotLinearProgress, DotLink, DotList, DotMenu, DotMenuList, DotMetadataApiProvider, DotNavigationRail, DotPill, DotPopper, DotProgress, DotProgressButton, DotRadioButton, DotRadioGroup, DotSearch, DotSidebar, DotSkeleton, DotSnackbar, DotSnackbarContainer, DotSnackbarProvider, DotSplitButton, DotStepper, DotStickyWithBorder, DotSwitch, DotTable, DotTableAction, DotTableActions, DotTablePagination, DotTabs, DotThemeProvider, DotTimePicker, DotToggleSwitch, DotTooltip, DotTruncateWithTooltip, DotTypography, avatarColors, breakpointOptions, checkIfValidDate, darkFigmaColors, lightThemeColors as lightColors, lightFigmaColors, mockScrollIntoView, parseAutoCompleteValue, variables as themeVariables, typographyOptions, useBoardStatus, useColumnStatus, useDotCoreApiContext, useDotMetadataApiContext, useDotSnackbarContext, useEnqueueErrorMessage, useKeyPress };