@digital-ai/dot-components 5.8.0 → 5.10.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
@@ -2,7 +2,7 @@ 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
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, Fab, LinearProgress, Slide, Stack, Select } from '@mui/material';
5
- import styled, { css, createGlobalStyle, ThemeProvider as ThemeProvider$1, keyframes } from 'styled-components';
5
+ import styled, { keyframes, css, createGlobalStyle, ThemeProvider as ThemeProvider$1 } from 'styled-components';
6
6
  import { createTheme, ThemeProvider, useTheme } from '@mui/material/styles';
7
7
  import '@digital-ai/dot-icons';
8
8
  import jwt_decode from 'jwt-decode';
@@ -42,14 +42,49 @@ const checkIfOverflowPresentInElementTree = element => {
42
42
  return false;
43
43
  };
44
44
 
45
- const rootClassName$1t = 'dot-typography';
45
+ const rootClassName$1v = 'dot-typography';
46
+ const shimmer = keyframes`
47
+ from {
48
+ background-position: 200% 0;
49
+ }
50
+ to {
51
+ background-position: -200% 0;
52
+ }
53
+ `;
46
54
  const StyledTypography = styled(Typography)`
47
55
  ${({
48
56
  theme
49
57
  }) => css`
50
- &.${rootClassName$1t} {
58
+ &.${rootClassName$1v} {
51
59
  &.dot-typography-ai {
52
60
  background: ${theme.palette.figma.gradient.ai};
61
+ }
62
+
63
+ &.dot-typography-shimmer {
64
+ background-image: linear-gradient(
65
+ 134deg,
66
+ #111 0%,
67
+ #aaa 40%,
68
+ #ddd 50%,
69
+ #aaa 60%,
70
+ #111 100%
71
+ );
72
+ background-size: 200% 100%;
73
+ animation: ${shimmer} 1.5s infinite linear;
74
+ }
75
+
76
+ &.dot-typography-ai.dot-typography-shimmer {
77
+ background-image: linear-gradient(
78
+ 134deg,
79
+ transparent 30%,
80
+ #ddd 50%,
81
+ transparent 70%
82
+ ),
83
+ ${theme.palette.figma.gradient.ai};
84
+ }
85
+
86
+ &.dot-typography-shimmer,
87
+ &.dot-typography-ai {
53
88
  background-clip: text;
54
89
  -webkit-background-clip: text;
55
90
  color: transparent;
@@ -69,11 +104,12 @@ const DotTypography = ({
69
104
  'data-testid': dataTestId,
70
105
  children,
71
106
  component,
107
+ hasShimmer,
72
108
  noMarginBottom,
73
109
  noWrap,
74
110
  variant
75
111
  }) => {
76
- const rootClasses = useStylesWithRootClass(rootClassName$1t, ai ? 'dot-typography-ai' : '', className);
112
+ const rootClasses = useStylesWithRootClass(rootClassName$1v, ai ? 'dot-typography-ai' : '', hasShimmer ? 'dot-typography-shimmer' : '', className);
77
113
  useEffect(() => {
78
114
  if (ariaRole === 'heading' && !ariaLevel) {
79
115
  console.warn('please include ariaLevel when using ariaRole="heading"');
@@ -1409,7 +1445,7 @@ const readOnlyStyles = theme => css`
1409
1445
  }
1410
1446
  `;
1411
1447
 
1412
- const rootClassName$1s = 'dot-text-field';
1448
+ const rootClassName$1u = 'dot-text-field';
1413
1449
  const rootSelectClassName = 'dot-select-field';
1414
1450
  const wrapperClassName$2 = 'dot-label-wrapper';
1415
1451
  const labelClassName = 'dot-input-label';
@@ -1485,7 +1521,7 @@ const StyledTextField = styled(TextField)`
1485
1521
  $maxRows,
1486
1522
  $minRows
1487
1523
  }) => css`
1488
- &.${rootClassName$1s} {
1524
+ &.${rootClassName$1u} {
1489
1525
  .MuiInputBase-root {
1490
1526
  margin-bottom: 0;
1491
1527
 
@@ -1574,7 +1610,7 @@ const StyledTextField = styled(TextField)`
1574
1610
  margin-right: ${theme.spacing(2)};
1575
1611
  }
1576
1612
 
1577
- &.${rootSelectClassName}, &.${rootClassName$1s} {
1613
+ &.${rootSelectClassName}, &.${rootClassName$1u} {
1578
1614
  .${adornmentIconClassName} {
1579
1615
  color: ${theme.palette.figma.icon.gray};
1580
1616
 
@@ -1669,13 +1705,13 @@ const StyledTextField = styled(TextField)`
1669
1705
  `}
1670
1706
  `;
1671
1707
 
1672
- const rootClassName$1r = 'dot-icon';
1708
+ const rootClassName$1t = 'dot-icon';
1673
1709
  const aiIconClassName = 'dot-icon-ai';
1674
1710
  const StyledIcon = styled(Icon)`
1675
1711
  ${({
1676
1712
  theme
1677
1713
  }) => css`
1678
- &.${rootClassName$1r} {
1714
+ &.${rootClassName$1t} {
1679
1715
  color: ${theme.palette.figma.icon.gray};
1680
1716
  font-size: 20px;
1681
1717
 
@@ -1684,7 +1720,7 @@ const StyledIcon = styled(Icon)`
1684
1720
  width: 20px;
1685
1721
  }
1686
1722
 
1687
- &.MuiIcon-fontSizeLarge {
1723
+ &.dot-icon-large {
1688
1724
  font-size: 24px;
1689
1725
 
1690
1726
  i {
@@ -1692,7 +1728,8 @@ const StyledIcon = styled(Icon)`
1692
1728
  width: 24px;
1693
1729
  }
1694
1730
  }
1695
- &.MuiIcon-fontSizeSmall {
1731
+
1732
+ &.dot-icon-small {
1696
1733
  font-size: 18px;
1697
1734
 
1698
1735
  i {
@@ -1701,6 +1738,15 @@ const StyledIcon = styled(Icon)`
1701
1738
  }
1702
1739
  }
1703
1740
 
1741
+ &.dot-icon-xs {
1742
+ font-size: 12px;
1743
+
1744
+ i {
1745
+ height: 12px;
1746
+ width: 12px;
1747
+ }
1748
+ }
1749
+
1704
1750
  &.${warningClassName} {
1705
1751
  color: ${theme.palette.figma.warning.normal};
1706
1752
  }
@@ -1725,7 +1771,7 @@ const DotIcon = ({
1725
1771
  tooltip,
1726
1772
  ai = false
1727
1773
  }) => {
1728
- const rootClasses = useStylesWithRootClass(rootClassName$1r, className, ai ? aiIconClassName : '');
1774
+ const rootClasses = useStylesWithRootClass(rootClassName$1t, className, ai ? aiIconClassName : '', `dot-icon-${fontSize}`);
1729
1775
  return jsx(DotTooltip, {
1730
1776
  disableInteractive: disableInteractive,
1731
1777
  childrenDisplayStyle: "inline-block",
@@ -1737,7 +1783,6 @@ const DotIcon = ({
1737
1783
  root: rootClasses
1738
1784
  },
1739
1785
  "data-testid": dataTestId,
1740
- fontSize: fontSize,
1741
1786
  role: ariaRole,
1742
1787
  children: jsx("i", {
1743
1788
  "aria-label": ariaLabel || `${iconId} icon`,
@@ -1749,7 +1794,7 @@ const DotIcon = ({
1749
1794
  });
1750
1795
  };
1751
1796
 
1752
- const rootClassName$1q = 'dot-accordion';
1797
+ const rootClassName$1s = 'dot-accordion';
1753
1798
  const summaryClassName = 'dot-accordion-summary';
1754
1799
  const detailClassName = 'dot-accordion-details';
1755
1800
  const StyledAccordion = styled(Accordion)`
@@ -1760,7 +1805,7 @@ const StyledAccordion = styled(Accordion)`
1760
1805
  background: ${theme.palette.figma.background.level1.white};
1761
1806
  }
1762
1807
 
1763
- &.${rootClassName$1q} .${summaryClassName} {
1808
+ &.${rootClassName$1s} .${summaryClassName} {
1764
1809
  align-items: center;
1765
1810
  background: ${theme.palette.figma.background.level1.white};
1766
1811
  color: ${theme.palette.figma.typography.black};
@@ -1805,7 +1850,7 @@ const DotAccordion = ({
1805
1850
  ariaLabel,
1806
1851
  children,
1807
1852
  className,
1808
- 'data-pendoid': dataPendoId = rootClassName$1q,
1853
+ 'data-pendoid': dataPendoId = rootClassName$1s,
1809
1854
  'data-testid': dataTestId = 'dot-accordion',
1810
1855
  disabled = false,
1811
1856
  expanded,
@@ -1816,7 +1861,7 @@ const DotAccordion = ({
1816
1861
  summary,
1817
1862
  noWrap = true
1818
1863
  }) => {
1819
- const rootClasses = useStylesWithRootClass(rootClassName$1q, className);
1864
+ const rootClasses = useStylesWithRootClass(rootClassName$1s, className);
1820
1865
  const [elevation, setElevation] = useState();
1821
1866
  useEffect(() => {
1822
1867
  if (onChange && expanded === undefined) {
@@ -1867,15 +1912,15 @@ const DotAccordion = ({
1867
1912
  });
1868
1913
  };
1869
1914
 
1870
- const rootClassName$1p = 'dot-action-toolbar';
1915
+ const rootClassName$1r = 'dot-action-toolbar';
1871
1916
  const StyledToolbar = styled(Toolbar)`
1872
1917
  ${({
1873
1918
  theme
1874
1919
  }) => css`
1875
- &.${rootClassName$1p} {
1920
+ &.${rootClassName$1r} {
1876
1921
  border-bottom: 1px solid ${theme.palette.figma.border.default};
1877
1922
 
1878
- .${rootClassName$1s} .MuiInputBase-root {
1923
+ .${rootClassName$1u} .MuiInputBase-root {
1879
1924
  margin-bottom: 0;
1880
1925
  }
1881
1926
  }
@@ -1889,7 +1934,7 @@ const DotActionToolbar = ({
1889
1934
  'data-testid': dataTestId,
1890
1935
  variant = 'dense'
1891
1936
  }) => {
1892
- const rootClasses = useStylesWithRootClass(rootClassName$1p, className);
1937
+ const rootClasses = useStylesWithRootClass(rootClassName$1r, className);
1893
1938
  return jsx(StyledToolbar, {
1894
1939
  "aria-label": ariaLabel,
1895
1940
  className: rootClasses,
@@ -1899,12 +1944,12 @@ const DotActionToolbar = ({
1899
1944
  });
1900
1945
  };
1901
1946
 
1902
- const rootClassName$1o = 'dot-alert-banner';
1947
+ const rootClassName$1q = 'dot-alert-banner';
1903
1948
  const StyledAlertBanner = styled(Alert)`
1904
1949
  ${({
1905
1950
  theme
1906
1951
  }) => css`
1907
- &.${rootClassName$1o} {
1952
+ &.${rootClassName$1q} {
1908
1953
  align-items: center;
1909
1954
  box-sizing: border-box;
1910
1955
  min-height: 48px;
@@ -1939,7 +1984,7 @@ const DotAlertBanner = ({
1939
1984
  ariaLabel,
1940
1985
  children,
1941
1986
  className,
1942
- 'data-pendoid': dataPendoId = rootClassName$1o,
1987
+ 'data-pendoid': dataPendoId = rootClassName$1q,
1943
1988
  'data-testid': dataTestId,
1944
1989
  onClose,
1945
1990
  roundedCorners = true,
@@ -1947,7 +1992,7 @@ const DotAlertBanner = ({
1947
1992
  textVariant = 'body1',
1948
1993
  width
1949
1994
  }) => {
1950
- const rootClasses = useStylesWithRootClass(rootClassName$1o, severity, className);
1995
+ const rootClasses = useStylesWithRootClass(rootClassName$1q, severity, className);
1951
1996
  /* For simple string use default component, for everything else use 'div' */
1952
1997
  const typographyComponent = isString$2(children) ? undefined : 'div';
1953
1998
  return jsx(StyledAlertBanner, {
@@ -1990,12 +2035,12 @@ const DotAppLogo = ({
1990
2035
  });
1991
2036
  };
1992
2037
 
1993
- const rootClassName$1n = 'dot-annotation';
2038
+ const rootClassName$1p = 'dot-annotation';
1994
2039
  const StyledAnnotation = styled.kbd`
1995
2040
  ${({
1996
2041
  theme
1997
2042
  }) => css`
1998
- &.${rootClassName$1n} {
2043
+ &.${rootClassName$1p} {
1999
2044
  font-family: inherit;
2000
2045
  background-color: ${theme.palette.figma.background.level0.bckgGray};
2001
2046
  color: ${theme.palette.figma.typography.disabled};
@@ -2021,13 +2066,13 @@ const StyledAnnotation = styled.kbd`
2021
2066
 
2022
2067
  const DotAnnotation = ({
2023
2068
  ariaLabel,
2024
- 'data-pendoid': dataPendoId = rootClassName$1n,
2069
+ 'data-pendoid': dataPendoId = rootClassName$1p,
2025
2070
  'data-testid': dataTestId,
2026
2071
  className,
2027
2072
  content,
2028
2073
  type = 'primary'
2029
2074
  }) => {
2030
- const rootClasses = useStylesWithRootClass(rootClassName$1n, className, type === 'secondary' ? 'secondary' : '');
2075
+ const rootClasses = useStylesWithRootClass(rootClassName$1p, className, type === 'secondary' ? 'secondary' : '');
2031
2076
  return jsx(StyledAnnotation, {
2032
2077
  "aria-label": ariaLabel,
2033
2078
  className: rootClasses,
@@ -2677,8 +2722,9 @@ const useDotCoreApiContext = () => {
2677
2722
  return useContext(DotCoreApiContext);
2678
2723
  };
2679
2724
 
2680
- const rootClassName$1m = 'dot-avatar';
2725
+ const rootClassName$1o = 'dot-avatar';
2681
2726
  const avatarSpacing = {
2727
+ xs: 2,
2682
2728
  small: 3,
2683
2729
  medium: 5,
2684
2730
  large: 7
@@ -2687,7 +2733,7 @@ const StyledAvatar = styled(Avatar)`
2687
2733
  ${({
2688
2734
  theme
2689
2735
  }) => css`
2690
- &.${rootClassName$1m} {
2736
+ &.${rootClassName$1o} {
2691
2737
  display: inline-flex;
2692
2738
  background-color: ${({
2693
2739
  color
@@ -2717,17 +2763,22 @@ const StyledAvatar = styled(Avatar)`
2717
2763
  margin-bottom: 0;
2718
2764
  }
2719
2765
 
2720
- &.small {
2766
+ &.dot-size-xs {
2767
+ height: ${theme.spacing(avatarSpacing.xs)};
2768
+ width: ${theme.spacing(avatarSpacing.xs)};
2769
+ }
2770
+
2771
+ &.dot-size-small {
2721
2772
  height: ${theme.spacing(avatarSpacing.small)};
2722
2773
  width: ${theme.spacing(avatarSpacing.small)};
2723
2774
  }
2724
2775
 
2725
- &.medium {
2776
+ &.dot-size-medium {
2726
2777
  height: ${theme.spacing(avatarSpacing.medium)};
2727
2778
  width: ${theme.spacing(avatarSpacing.medium)};
2728
2779
  }
2729
2780
 
2730
- &.large {
2781
+ &.dot-size-large {
2731
2782
  height: ${theme.spacing(avatarSpacing.large)};
2732
2783
  width: ${theme.spacing(avatarSpacing.large)};
2733
2784
  }
@@ -2765,7 +2816,7 @@ const AvatarContent = ({
2765
2816
  }
2766
2817
  };
2767
2818
  const getHeadingFromAvatarSize = () => size === 'large' ? 'h1' : 'h3';
2768
- const getIconFontSizeFromAvatarSize = () => size === 'small' ? size : 'medium';
2819
+ const getIconFontSizeFromAvatarSize = () => ['xs', 'small'].includes(size) ? size : 'medium';
2769
2820
  if (type === 'icon' || type === 'image' && !imageSrc) {
2770
2821
  return jsx(DotIcon, {
2771
2822
  ai: ai,
@@ -2777,7 +2828,7 @@ const AvatarContent = ({
2777
2828
  if (type === 'text') {
2778
2829
  return jsx(DotTypography, {
2779
2830
  ai: ai,
2780
- variant: size === 'small' ? 'caption' : getHeadingFromAvatarSize(),
2831
+ variant: ['xs', 'small'].includes(size) ? 'caption' : getHeadingFromAvatarSize(),
2781
2832
  children: parsedNumber() || parsedText()
2782
2833
  });
2783
2834
  }
@@ -2805,7 +2856,7 @@ const DotAvatar = ({
2805
2856
  variant = 'circular',
2806
2857
  style
2807
2858
  }) => {
2808
- const rootClasses = useStylesWithRootClass(rootClassName$1m, className);
2859
+ const rootClasses = useStylesWithRootClass(rootClassName$1o, className);
2809
2860
  const getAvatarColor = () => {
2810
2861
  if ((style === null || style === void 0 ? void 0 : style.color) !== undefined) return 'inherit';
2811
2862
  if (color) return color;
@@ -2819,7 +2870,7 @@ const DotAvatar = ({
2819
2870
  children: jsx(StyledAvatar, {
2820
2871
  alt: alt,
2821
2872
  "aria-label": ariaLabel || alt,
2822
- className: size,
2873
+ className: `dot-size-${size}`,
2823
2874
  classes: {
2824
2875
  root: rootClasses,
2825
2876
  img: 'dot-img'
@@ -2847,12 +2898,12 @@ const DotAvatar = ({
2847
2898
  });
2848
2899
  };
2849
2900
 
2850
- const rootClassName$1l = 'dot-button';
2901
+ const rootClassName$1n = 'dot-button';
2851
2902
  const StyledButton = styled(Button)`
2852
2903
  ${({
2853
2904
  theme
2854
2905
  }) => css`
2855
- &.${rootClassName$1l} {
2906
+ &.${rootClassName$1n} {
2856
2907
  background-color: ${theme.palette.figma.primary.normal};
2857
2908
  margin: ${theme.spacing(0.5)};
2858
2909
  padding: ${theme.spacing(0.75, 2)};
@@ -3005,7 +3056,7 @@ const DotButton = forwardRef(({
3005
3056
  autoFocus = false,
3006
3057
  children,
3007
3058
  className,
3008
- 'data-pendoid': dataPendoId = rootClassName$1l,
3059
+ 'data-pendoid': dataPendoId = rootClassName$1n,
3009
3060
  'data-testid': dataTestId,
3010
3061
  disabled = false,
3011
3062
  disableInteractive,
@@ -3023,7 +3074,7 @@ const DotButton = forwardRef(({
3023
3074
  tooltipPlacement,
3024
3075
  type = 'primary'
3025
3076
  }, ref) => {
3026
- const rootClasses = useStylesWithRootClass(rootClassName$1l, className);
3077
+ const rootClasses = useStylesWithRootClass(rootClassName$1n, className);
3027
3078
  let color;
3028
3079
  let variant;
3029
3080
  switch (type) {
@@ -3054,7 +3105,7 @@ const DotButton = forwardRef(({
3054
3105
  }
3055
3106
  return jsx(DotTooltip, {
3056
3107
  childrenDisplayStyle: "inline-block",
3057
- "data-testid": `${dataTestId || rootClassName$1l}-tooltip`,
3108
+ "data-testid": `${dataTestId || rootClassName$1n}-tooltip`,
3058
3109
  disableInteractive: disableInteractive,
3059
3110
  placement: tooltipPlacement,
3060
3111
  title: tooltip,
@@ -3066,7 +3117,7 @@ const DotButton = forwardRef(({
3066
3117
  },
3067
3118
  color: color,
3068
3119
  "data-pendoid": dataPendoId,
3069
- "data-testid": dataTestId || rootClassName$1l,
3120
+ "data-testid": dataTestId || rootClassName$1n,
3070
3121
  disableRipple: disableRipple,
3071
3122
  disabled: disabled,
3072
3123
  endIcon: endIcon,
@@ -3086,10 +3137,10 @@ const DotButton = forwardRef(({
3086
3137
  });
3087
3138
  });
3088
3139
 
3089
- const rootClassName$1k = 'dot-link';
3140
+ const rootClassName$1m = 'dot-link';
3090
3141
  const StyledLink = styled(Link)`
3091
3142
  ${() => css`
3092
- &.${rootClassName$1k} {
3143
+ &.${rootClassName$1m} {
3093
3144
  cursor: pointer;
3094
3145
 
3095
3146
  &:hover.MuiLink-underlineHover {
@@ -3105,7 +3156,7 @@ const DotLink = ({
3105
3156
  children,
3106
3157
  className,
3107
3158
  color = 'primary',
3108
- 'data-pendoid': dataPendoId = rootClassName$1k,
3159
+ 'data-pendoid': dataPendoId = rootClassName$1m,
3109
3160
  'data-testid': dataTestId,
3110
3161
  href,
3111
3162
  onClick,
@@ -3118,7 +3169,7 @@ const DotLink = ({
3118
3169
  underline = 'always',
3119
3170
  variant = 'body1'
3120
3171
  }) => {
3121
- const rootClasses = useStylesWithRootClass(rootClassName$1k, className);
3172
+ const rootClasses = useStylesWithRootClass(rootClassName$1m, className);
3122
3173
  useEffect(() => {
3123
3174
  // Include a console warning if the link is not a string and no ariaLabel is provided
3124
3175
  if (!isString$2(children) && !ariaLabel) {
@@ -3169,7 +3220,7 @@ const CreateUUID = () => {
3169
3220
  });
3170
3221
  };
3171
3222
 
3172
- const rootClassName$1j = 'dot-list';
3223
+ const rootClassName$1l = 'dot-list';
3173
3224
  const listItemRootClass = 'dot-list-item';
3174
3225
  const nestedListClassName = 'dot-nested-list';
3175
3226
  const nestedDrawerClassName = 'dot-nested-drawer';
@@ -3177,7 +3228,7 @@ const StyledList = styled(List)`
3177
3228
  ${({
3178
3229
  theme
3179
3230
  }) => css`
3180
- &.${rootClassName$1j} {
3231
+ &.${rootClassName$1l} {
3181
3232
  background: ${theme.palette.figma.background.level0.componentsBackground};
3182
3233
 
3183
3234
  .dot-icon {
@@ -3271,14 +3322,27 @@ const DotListDivider = ({
3271
3322
  });
3272
3323
  };
3273
3324
 
3274
- const rootClassName$1i = 'dot-progress';
3325
+ const rootClassName$1k = 'dot-progress';
3275
3326
  const StyledProgress = styled.div`
3276
3327
  ${({
3277
- theme
3328
+ theme,
3329
+ $aiProgressGradientId
3278
3330
  }) => css`
3279
- &.${rootClassName$1i} {
3331
+ &.${rootClassName$1k} {
3280
3332
  line-height: 0;
3281
3333
 
3334
+ .dot-progress-with-ai-wrapper {
3335
+ position: relative;
3336
+ display: inline-flex;
3337
+
3338
+ .dot-avatar {
3339
+ position: absolute;
3340
+ left: 50%;
3341
+ top: 50%;
3342
+ transform: translate(-50%, -50%);
3343
+ }
3344
+ }
3345
+
3282
3346
  .dot-progress-with-label-wrapper {
3283
3347
  position: relative;
3284
3348
  display: inline-flex;
@@ -3303,6 +3367,10 @@ const StyledProgress = styled.div`
3303
3367
  }
3304
3368
 
3305
3369
  .dot-circular-progress {
3370
+ & .MuiCircularProgress-circle {
3371
+ stroke: ${$aiProgressGradientId ? `url(#${$aiProgressGradientId})` : undefined};
3372
+ }
3373
+
3306
3374
  &.MuiCircularProgress-colorPrimary {
3307
3375
  color: ${theme.palette.figma.inProgress.normal};
3308
3376
  }
@@ -3315,7 +3383,40 @@ const StyledProgress = styled.div`
3315
3383
  `}
3316
3384
  `;
3317
3385
 
3386
+ const AiGradientSvg = ({
3387
+ id
3388
+ }) => jsx("svg", {
3389
+ width: 0,
3390
+ height: 0,
3391
+ children: jsx("defs", {
3392
+ children: jsxs("linearGradient", {
3393
+ id: id,
3394
+ x1: "0%",
3395
+ y1: "0%",
3396
+ x2: "100%",
3397
+ y2: "100%",
3398
+ children: [jsx("stop", {
3399
+ offset: "0%",
3400
+ stopColor: "#DBD1FA"
3401
+ }), jsx("stop", {
3402
+ offset: "25%",
3403
+ stopColor: "rgba(182,163,245,0.4)"
3404
+ }), jsx("stop", {
3405
+ offset: "50%",
3406
+ stopColor: "#9275F0"
3407
+ }), jsx("stop", {
3408
+ offset: "100%",
3409
+ stopColor: "#E44EB9"
3410
+ })]
3411
+ })
3412
+ })
3413
+ });
3414
+
3415
+ const AI_PROGRESS_GRADIENT_ID = 'dot-progress-ai-gradient';
3416
+ const AI_PROGRESS_SIZE = 24;
3417
+ const AI_PROGRESS_THICKNESS = 2;
3318
3418
  const DotProgress = ({
3419
+ ai,
3319
3420
  ariaLabel,
3320
3421
  color = 'secondary',
3321
3422
  className,
@@ -3327,7 +3428,9 @@ const DotProgress = ({
3327
3428
  value,
3328
3429
  variant = 'indeterminate'
3329
3430
  }) => {
3330
- const rootClasses = useStylesWithRootClass(rootClassName$1i, className);
3431
+ const rootClasses = useStylesWithRootClass(rootClassName$1k, className);
3432
+ const calculatedSize = ai ? AI_PROGRESS_SIZE : size;
3433
+ const calculatedThickness = ai ? AI_PROGRESS_THICKNESS : thickness;
3331
3434
  useEffect(() => {
3332
3435
  if (!ariaLabel) {
3333
3436
  console.warn('a11y: DotProgress must have an ariaLabel to describe the progress component');
@@ -3340,8 +3443,8 @@ const DotProgress = ({
3340
3443
  color: color,
3341
3444
  "data-testid": dataTestId,
3342
3445
  role: "progressbar",
3343
- size: size,
3344
- thickness: thickness,
3446
+ size: calculatedSize,
3447
+ thickness: calculatedThickness,
3345
3448
  value: value,
3346
3449
  variant: variant
3347
3450
  });
@@ -3351,8 +3454,8 @@ const DotProgress = ({
3351
3454
  children: [jsx(CircularProgress, {
3352
3455
  "aria-label": "background progress",
3353
3456
  className: "dot-progress-background",
3354
- size: size,
3355
- thickness: thickness,
3457
+ size: calculatedSize,
3458
+ thickness: calculatedThickness,
3356
3459
  value: 100,
3357
3460
  variant: "determinate"
3358
3461
  }), circularProgress]
@@ -3360,19 +3463,40 @@ const DotProgress = ({
3360
3463
  }
3361
3464
  return circularProgress;
3362
3465
  };
3363
- return jsx(StyledProgress, {
3364
- className: rootClasses,
3365
- children: jsx(DotTooltip, {
3366
- title: tooltip,
3367
- children: hasPercentageLabel ? jsxs("div", {
3466
+ const renderProgress = () => {
3467
+ if (ai) {
3468
+ return jsxs("div", {
3469
+ className: "dot-progress-with-ai-wrapper",
3470
+ children: [renderCircularProgress(true), jsx(DotAvatar, {
3471
+ ai: true,
3472
+ alt: "AI Avatar",
3473
+ iconId: "ai",
3474
+ size: "xs",
3475
+ type: "icon"
3476
+ })]
3477
+ });
3478
+ }
3479
+ if (hasPercentageLabel) {
3480
+ return jsxs("div", {
3368
3481
  className: "dot-progress-with-label-wrapper",
3369
3482
  children: [renderCircularProgress(true), jsxs(DotTypography, {
3370
3483
  className: "progress-label-typography",
3371
3484
  variant: "caption",
3372
3485
  children: [value, "%"]
3373
3486
  })]
3374
- }) : renderCircularProgress()
3375
- })
3487
+ });
3488
+ }
3489
+ return renderCircularProgress();
3490
+ };
3491
+ return jsxs(StyledProgress, {
3492
+ className: rootClasses,
3493
+ "$aiProgressGradientId": ai ? AI_PROGRESS_GRADIENT_ID : undefined,
3494
+ children: [ai && jsx(AiGradientSvg, {
3495
+ id: AI_PROGRESS_GRADIENT_ID
3496
+ }), jsx(DotTooltip, {
3497
+ title: tooltip,
3498
+ children: renderProgress()
3499
+ })]
3376
3500
  });
3377
3501
  };
3378
3502
 
@@ -3393,13 +3517,13 @@ var variables = /*#__PURE__*/Object.freeze({
3393
3517
  levelTop: levelTop
3394
3518
  });
3395
3519
 
3396
- const rootClassName$1h = 'dot-popper';
3520
+ const rootClassName$1j = 'dot-popper';
3397
3521
  const arrowClassName = 'MuiPopper-arrow';
3398
3522
  const StyledPopper$1 = styled(Popper)`
3399
3523
  ${({
3400
3524
  theme
3401
3525
  }) => css`
3402
- &.${rootClassName$1h} {
3526
+ &.${rootClassName$1j} {
3403
3527
  font-family: ${theme.typography.fontFamily};
3404
3528
  font-size: ${theme.typography.body1.fontSize}px;
3405
3529
 
@@ -3458,7 +3582,7 @@ const StyledPopper$1 = styled(Popper)`
3458
3582
  }
3459
3583
  }
3460
3584
 
3461
- &.${rootClassName$1h}, &.${rootClassName$1h} > .dot-popper-paper {
3585
+ &.${rootClassName$1j}, &.${rootClassName$1j} > .dot-popper-paper {
3462
3586
  background-color: ${theme.palette.figma.background.level1.white};
3463
3587
  }
3464
3588
  `}
@@ -3488,12 +3612,12 @@ const StyledArrow = styled('span')`
3488
3612
  `;
3489
3613
 
3490
3614
  const flyoutMenuClassName = 'dot-flyout-menu';
3491
- const rootClassName$1g = 'dot-menu';
3615
+ const rootClassName$1i = 'dot-menu';
3492
3616
  const StyledPopper = styled(Popper)`
3493
3617
  ${({
3494
3618
  theme
3495
3619
  }) => css`
3496
- &.${rootClassName$1h} {
3620
+ &.${rootClassName$1j} {
3497
3621
  font-family: ${theme.typography.fontFamily};
3498
3622
  font-size: ${theme.typography.body1.fontSize}px;
3499
3623
 
@@ -3503,7 +3627,7 @@ const StyledPopper = styled(Popper)`
3503
3627
  }) => $zIndex === undefined ? `z-index: ${levelSecond};` : `z-index: ${$zIndex};`}
3504
3628
  }
3505
3629
  }
3506
- &.${rootClassName$1g}, &.${rootClassName$1h} {
3630
+ &.${rootClassName$1i}, &.${rootClassName$1j} {
3507
3631
  .MuiPaper-root:not(:empty) {
3508
3632
  border: 1px solid ${theme.palette.layer.n100};
3509
3633
  }
@@ -3583,14 +3707,14 @@ const MENU_ITEM_HEIGHT_NORMAL = 48;
3583
3707
  const MENU_ITEM_HEIGHT_DENSE = 36;
3584
3708
  const DEFAULT_MAX_VISIBLE_ITEMS = 7;
3585
3709
 
3586
- const rootClassName$1f = 'dot-ul';
3710
+ const rootClassName$1h = 'dot-ul';
3587
3711
  const listItemClassName$1 = 'dot-li';
3588
3712
  const listItemWithSubmenuClassName = 'dot-li-with-submenu';
3589
3713
  const StyledMenuList = styled(MenuList)`
3590
3714
  ${({
3591
3715
  theme
3592
3716
  }) => css`
3593
- &.${rootClassName$1f} {
3717
+ &.${rootClassName$1h} {
3594
3718
  background: ${theme.palette.figma.background.level1.white};
3595
3719
 
3596
3720
  .dot-li {
@@ -3692,7 +3816,7 @@ const DotMenuList = forwardRef(({
3692
3816
  onSubMenuCreate,
3693
3817
  selectedKey
3694
3818
  }, ref) => {
3695
- const rootClasses = useStylesWithRootClass(rootClassName$1f, className);
3819
+ const rootClasses = useStylesWithRootClass(rootClassName$1h, className);
3696
3820
  const [activeSubmenu, setActiveSubmenu] = useState(null);
3697
3821
  const [subItemAnchorEl, setSubItemAnchorEl] = useState(null);
3698
3822
  const openSubmenu = (target, itemKey) => {
@@ -3804,7 +3928,7 @@ const DotMenu = ({
3804
3928
  open = false,
3805
3929
  selectedKey
3806
3930
  }) => {
3807
- const rootClasses = useStylesWithRootClass(rootClassName$1g, className, loading ? 'loading' : '');
3931
+ const rootClasses = useStylesWithRootClass(rootClassName$1i, className, loading ? 'loading' : '');
3808
3932
  const isSubmenu = checkIfSubmenu(anchorEl);
3809
3933
  const hasSubItems = checkForSubItems(menuItems);
3810
3934
  // Timeout object is customizable when Menu component is either submenu
@@ -3892,12 +4016,12 @@ const DotMenu = ({
3892
4016
  });
3893
4017
  };
3894
4018
 
3895
- const rootClassName$1e = 'dot-drawer';
4019
+ const rootClassName$1g = 'dot-drawer';
3896
4020
  const StyledDrawer = styled(Drawer)`
3897
4021
  ${({
3898
4022
  theme
3899
4023
  }) => css`
3900
- &.${rootClassName$1e} .MuiBackdrop-root {
4024
+ &.${rootClassName$1g} .MuiBackdrop-root {
3901
4025
  background-color: ${theme.palette.figma.overlay.default};
3902
4026
  }
3903
4027
 
@@ -3916,12 +4040,12 @@ const StyledDrawer = styled(Drawer)`
3916
4040
  `}
3917
4041
  `;
3918
4042
 
3919
- const rootClassName$1d = 'dot-drawer-header';
4043
+ const rootClassName$1f = 'dot-drawer-header';
3920
4044
  const StyleDrawerHeader = styled.div`
3921
4045
  ${({
3922
4046
  theme
3923
4047
  }) => css`
3924
- &.${rootClassName$1d} {
4048
+ &.${rootClassName$1f} {
3925
4049
  padding: ${theme.spacing(0, 0, 2)};
3926
4050
  display: flex;
3927
4051
  align-items: center;
@@ -3932,13 +4056,13 @@ const StyleDrawerHeader = styled.div`
3932
4056
  `}
3933
4057
  `;
3934
4058
 
3935
- const rootClassName$1c = 'dot-icon-btn';
4059
+ const rootClassName$1e = 'dot-icon-btn';
3936
4060
  const StyledIconButton = styled(IconButton)`
3937
4061
  ${({
3938
4062
  theme,
3939
4063
  color
3940
4064
  }) => css`
3941
- &.${rootClassName$1c} {
4065
+ &.${rootClassName$1e} {
3942
4066
  ${color === 'inherit' ? css`
3943
4067
  color: inherit;
3944
4068
  ` : ''}
@@ -4009,7 +4133,7 @@ const StyledIconButton = styled(IconButton)`
4009
4133
  color: inherit;
4010
4134
  }
4011
4135
 
4012
- .dot-icon.MuiIcon-fontSizeSmall {
4136
+ .dot-icon.dot-icon-small {
4013
4137
  padding: 1px;
4014
4138
  }
4015
4139
 
@@ -4024,7 +4148,7 @@ const DotIconButton = ({
4024
4148
  ariaRole = 'button',
4025
4149
  className,
4026
4150
  color = 'inherit',
4027
- 'data-pendoid': dataPendoId = rootClassName$1c,
4151
+ 'data-pendoid': dataPendoId = rootClassName$1e,
4028
4152
  'data-testid': dataTestId,
4029
4153
  disableInteractive,
4030
4154
  disableRipple = false,
@@ -4038,7 +4162,7 @@ const DotIconButton = ({
4038
4162
  tooltipPlacement
4039
4163
  }) => {
4040
4164
  const rippleClassName = disableRipple ? 'ripple-disabled' : '';
4041
- const rootClasses = useStylesWithRootClass(rootClassName$1c, rippleClassName, `shape-${shape}`, className);
4165
+ const rootClasses = useStylesWithRootClass(rootClassName$1e, rippleClassName, `shape-${shape}`, className);
4042
4166
  return jsx(DotTooltip, {
4043
4167
  childrenDisplayStyle: "inline-block",
4044
4168
  "data-testid": "icon-button-tooltip",
@@ -4075,7 +4199,7 @@ const DotDrawerHeader = ({
4075
4199
  onClose,
4076
4200
  variant
4077
4201
  }) => {
4078
- const rootClasses = useStylesWithRootClass(rootClassName$1d, className);
4202
+ const rootClasses = useStylesWithRootClass(rootClassName$1f, className);
4079
4203
  return jsxs(StyleDrawerHeader, {
4080
4204
  "aria-label": ariaLabel,
4081
4205
  "aria-level": 2,
@@ -4092,10 +4216,10 @@ const DotDrawerHeader = ({
4092
4216
  });
4093
4217
  };
4094
4218
 
4095
- const rootClassName$1b = 'dot-drawer-body';
4219
+ const rootClassName$1d = 'dot-drawer-body';
4096
4220
  const StyleDrawerBody = styled.div`
4097
4221
  ${() => css`
4098
- &.${rootClassName$1b} {
4222
+ &.${rootClassName$1d} {
4099
4223
  display: flex;
4100
4224
  .dot-drawer-close-button {
4101
4225
  align-self: self-start;
@@ -4116,7 +4240,7 @@ const DotDrawerBody = ({
4116
4240
  onClose,
4117
4241
  variant
4118
4242
  }) => {
4119
- const rootClasses = useStylesWithRootClass(rootClassName$1b, className);
4243
+ const rootClasses = useStylesWithRootClass(rootClassName$1d, className);
4120
4244
  return jsxs(StyleDrawerBody, {
4121
4245
  "aria-label": ariaLabel,
4122
4246
  className: rootClasses,
@@ -4131,12 +4255,12 @@ const DotDrawerBody = ({
4131
4255
  });
4132
4256
  };
4133
4257
 
4134
- const rootClassName$1a = 'dot-drawer-footer';
4258
+ const rootClassName$1c = 'dot-drawer-footer';
4135
4259
  const StyleDrawerFooter = styled.div`
4136
4260
  ${({
4137
4261
  theme
4138
4262
  }) => css`
4139
- &.${rootClassName$1a} {
4263
+ &.${rootClassName$1c} {
4140
4264
  padding: ${theme.spacing(2, 0, 0)};
4141
4265
  }
4142
4266
  `}
@@ -4149,7 +4273,7 @@ const DotDrawerFooter = ({
4149
4273
  className,
4150
4274
  'data-testid': dataTestId
4151
4275
  }) => {
4152
- const rootClasses = useStylesWithRootClass(rootClassName$1a, className);
4276
+ const rootClasses = useStylesWithRootClass(rootClassName$1c, className);
4153
4277
  return jsx(StyleDrawerFooter, {
4154
4278
  "aria-label": ariaLabel,
4155
4279
  className: rootClasses,
@@ -4165,7 +4289,7 @@ const DotDrawer = ({
4165
4289
  ariaRole = 'dialog',
4166
4290
  className,
4167
4291
  children,
4168
- 'data-pendoid': dataPendoId = rootClassName$1e,
4292
+ 'data-pendoid': dataPendoId = rootClassName$1g,
4169
4293
  'data-testid': dataTestId,
4170
4294
  drawerBodyProps,
4171
4295
  drawerFooterProps,
@@ -4188,7 +4312,7 @@ const DotDrawer = ({
4188
4312
  onClose(event);
4189
4313
  }
4190
4314
  };
4191
- const rootClasses = useStylesWithRootClass(rootClassName$1e, className);
4315
+ const rootClasses = useStylesWithRootClass(rootClassName$1g, className);
4192
4316
  const backdropEnabled = variant === 'temporary' && !(ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.hideBackdrop);
4193
4317
  const headerExists = !!drawerHeaderProps;
4194
4318
  const bodyPendoId = drawerBodyProps ? drawerBodyProps['data-pendoid'] : 'drawer-body';
@@ -4663,7 +4787,7 @@ const DotList = ({
4663
4787
  nestedListType = 'expandable',
4664
4788
  width = 240
4665
4789
  }) => {
4666
- const rootClasses = useStylesWithRootClass(rootClassName$1j, className);
4790
+ const rootClasses = useStylesWithRootClass(rootClassName$1l, className);
4667
4791
  const listWidth = typeof width === 'number' ? `${width}px` : width;
4668
4792
  const listRef = useRef(undefined);
4669
4793
  const disableCloseOnClickAway = !nestedListCloseOnClickAway && nestedListType === 'expandable';
@@ -4763,12 +4887,12 @@ const DotList = ({
4763
4887
  });
4764
4888
  };
4765
4889
 
4766
- const rootClassName$19 = 'dot-copy-button';
4890
+ const rootClassName$1b = 'dot-copy-button';
4767
4891
  const StyledCopyButton = styled.span`
4768
4892
  ${({
4769
4893
  theme
4770
4894
  }) => css`
4771
- &.${rootClassName$19} .copied-to-clipboard {
4895
+ &.${rootClassName$1b} .copied-to-clipboard {
4772
4896
  color: ${theme.palette.figma.success.normal};
4773
4897
 
4774
4898
  &.MuiIcon-fontSizeSmall.button-size-small {
@@ -4794,7 +4918,7 @@ const DotCopyButton = ({
4794
4918
  color = 'inherit',
4795
4919
  copiedTooltip = 'Copied!',
4796
4920
  copyTooltip = 'Copy to clipboard',
4797
- 'data-pendoid': dataPendoId = rootClassName$19,
4921
+ 'data-pendoid': dataPendoId = rootClassName$1b,
4798
4922
  'data-testid': dataTestId = 'dot-copy-button',
4799
4923
  disableInteractive,
4800
4924
  disabled = false,
@@ -4843,7 +4967,7 @@ const DotCopyButton = ({
4843
4967
  return false;
4844
4968
  }, [value, showCopiedIcon, disabled, onClick]);
4845
4969
  return jsxs(StyledCopyButton, {
4846
- className: rootClassName$19,
4970
+ className: rootClassName$1b,
4847
4971
  "data-testid": dataTestId,
4848
4972
  children: [!timedShowCopiedIcon && jsx(DotIconButton, {
4849
4973
  ariaLabel: ariaLabel,
@@ -4950,7 +5074,7 @@ const DotInputText = ({
4950
5074
  autoFocus,
4951
5075
  className,
4952
5076
  defaultValue,
4953
- 'data-pendoid': dataPendoId = rootClassName$1s,
5077
+ 'data-pendoid': dataPendoId = rootClassName$1u,
4954
5078
  'data-testid': dataTestId,
4955
5079
  disabled = false,
4956
5080
  error = false,
@@ -4999,7 +5123,7 @@ const DotInputText = ({
4999
5123
  const internalInputRef = useRef(null);
5000
5124
  const textFieldInputRef = inputRef || internalInputRef;
5001
5125
  const [inputTextState, setInputTextState] = useState(getInitialState(value));
5002
- const rootStyles = useStylesWithRootClass(rootClassName$1s, hasError, hasWarning, hasSuccess, isAiEnabled, readOnly && readOnlyClassName$1);
5126
+ const rootStyles = useStylesWithRootClass(rootClassName$1u, hasError, hasWarning, hasSuccess, isAiEnabled, readOnly && readOnlyClassName$1);
5003
5127
  useEffect(() => {
5004
5128
  if (value !== inputTextState.inputValue) {
5005
5129
  setInputTextState(getInitialState(value, defaultValue));
@@ -5142,10 +5266,10 @@ const DotInputText = ({
5142
5266
  });
5143
5267
  };
5144
5268
 
5145
- const rootClassName$18 = 'dot-search-input';
5269
+ const rootClassName$1a = 'dot-search-input';
5146
5270
  const StyledSearchInput = styled.span`
5147
5271
  ${() => css`
5148
- &.${rootClassName$18} {
5272
+ &.${rootClassName$1a} {
5149
5273
  }
5150
5274
  `}
5151
5275
  `;
@@ -5162,7 +5286,7 @@ function SearchInput({
5162
5286
  tooltip = null,
5163
5287
  value
5164
5288
  }) {
5165
- const rootClasses = useStylesWithRootClass(rootClassName$18, className);
5289
+ const rootClasses = useStylesWithRootClass(rootClassName$1a, className);
5166
5290
  const [searchText, setSearchText] = useState(value);
5167
5291
  let previousSearchText = '';
5168
5292
  const handleChange = useCallback(event => {
@@ -5418,12 +5542,12 @@ const recentAppInstancesSetter = (latestInstance, maxRecentItems
5418
5542
  };
5419
5543
  };
5420
5544
 
5421
- const rootClassName$17 = 'dot-app-switcher';
5545
+ const rootClassName$19 = 'dot-app-switcher';
5422
5546
  const StyledAppSwitcher = styled(DotDrawer)`
5423
5547
  ${({
5424
5548
  theme
5425
5549
  }) => css`
5426
- &.${rootClassName$17} {
5550
+ &.${rootClassName$19} {
5427
5551
  .dot-drawer-paper {
5428
5552
  padding: 0;
5429
5553
  width: 382px;
@@ -5533,7 +5657,7 @@ const DotAppSwitcherView = ({
5533
5657
  if (dotCoreApiContext !== null) {
5534
5658
  setSelectedAppType = dotCoreApiContext.setSelectedAppSwitcherAppType;
5535
5659
  }
5536
- const rootClasses = useStylesWithRootClass(rootClassName$17, className);
5660
+ const rootClasses = useStylesWithRootClass(rootClassName$19, className);
5537
5661
  const [appTypeMap, setAppTypeMap] = useState();
5538
5662
  const [appTypeLabels, setAppTypeLabels] = useState();
5539
5663
  const [appTypeMenuItems, setAppTypeMenuItems] = useState();
@@ -5911,12 +6035,12 @@ var SvgLogoDigitalAiWhite = function SvgLogoDigitalAiWhite(_ref, ref) {
5911
6035
  };
5912
6036
  var ForwardRef = /*#__PURE__*/forwardRef(SvgLogoDigitalAiWhite);
5913
6037
 
5914
- const rootClassName$16 = 'dot-sidebar';
6038
+ const rootClassName$18 = 'dot-sidebar';
5915
6039
  const StyledSidebar = styled.aside`
5916
6040
  ${({
5917
6041
  theme
5918
6042
  }) => css`
5919
- &.${rootClassName$16} {
6043
+ &.${rootClassName$18} {
5920
6044
  align-items: stretch;
5921
6045
  background: ${theme.palette.figma.background.level1.white};
5922
6046
  border-width: 0 1px;
@@ -6210,10 +6334,10 @@ const StyledSidebar = styled.aside`
6210
6334
  `}
6211
6335
  `;
6212
6336
 
6213
- const rootClassName$15 = 'dot-truncate-with-tooltip';
6337
+ const rootClassName$17 = 'dot-truncate-with-tooltip';
6214
6338
  const StyledTruncateWithTooltip = styled(Tooltip)`
6215
6339
  ${() => css`
6216
- &.${rootClassName$15} {
6340
+ &.${rootClassName$17} {
6217
6341
  display: block;
6218
6342
  overflow: hidden;
6219
6343
  white-space: nowrap;
@@ -6244,7 +6368,7 @@ const DotTruncateWithTooltip = ({
6244
6368
  label,
6245
6369
  width
6246
6370
  }) => {
6247
- const rootClasses = useStylesWithRootClass(rootClassName$15, className, charactersLimit ? 'dot-characters-limit' : '');
6371
+ const rootClasses = useStylesWithRootClass(rootClassName$17, className, charactersLimit ? 'dot-characters-limit' : '');
6248
6372
  return jsx(StyledTruncateWithTooltip, {
6249
6373
  "aria-label": ariaLabel,
6250
6374
  arrow: arrow,
@@ -6358,7 +6482,7 @@ const DotSidebar = ({
6358
6482
  keys: collapseKeys
6359
6483
  }, toggleNavCollapseState, [isOpen, collapsable]);
6360
6484
  const sidebarClasses = useStylesWithRootClass('side-nav', openClass);
6361
- const rootClasses = useStylesWithRootClass(rootClassName$16, openClass, className);
6485
+ const rootClasses = useStylesWithRootClass(rootClassName$18, openClass, className);
6362
6486
  return jsxs(StyledSidebar, {
6363
6487
  "aria-label": ariaLabel,
6364
6488
  className: rootClasses,
@@ -6434,12 +6558,12 @@ const DotSidebar = ({
6434
6558
  });
6435
6559
  };
6436
6560
 
6437
- const rootClassName$14 = 'dot-badge';
6561
+ const rootClassName$16 = 'dot-badge';
6438
6562
  const StyledBadge = styled(Badge)`
6439
6563
  ${({
6440
6564
  theme
6441
6565
  }) => css`
6442
- &.${rootClassName$14} {
6566
+ &.${rootClassName$16} {
6443
6567
  color: ${theme.palette.figma.typography.black};
6444
6568
  word-break: normal;
6445
6569
 
@@ -6474,7 +6598,7 @@ const DotBadge = ({
6474
6598
  overlap,
6475
6599
  variant = 'dot'
6476
6600
  }) => {
6477
- const rootClasses = useStylesWithRootClass(rootClassName$14, className);
6601
+ const rootClasses = useStylesWithRootClass(rootClassName$16, className);
6478
6602
  return jsx(StyledBadge, {
6479
6603
  "$badgeColor": badgeColor,
6480
6604
  anchorOrigin: {
@@ -6496,7 +6620,7 @@ const DotBadge = ({
6496
6620
  });
6497
6621
  };
6498
6622
 
6499
- const rootClassName$13 = 'dot-app-toolbar';
6623
+ const rootClassName$15 = 'dot-app-toolbar';
6500
6624
  const denseClassName = 'dense';
6501
6625
  const StyledMainMenu = styled(DotDrawer)`
6502
6626
  ${({
@@ -6536,7 +6660,7 @@ const StyledAppToolbar = styled.header`
6536
6660
  ${({
6537
6661
  theme
6538
6662
  }) => css`
6539
- &.${rootClassName$13} {
6663
+ &.${rootClassName$15} {
6540
6664
  align-items: center;
6541
6665
  background: ${theme.palette.figma.appToolbar.background};
6542
6666
  border-bottom: 4px solid ${theme.palette.figma.border.default};
@@ -6665,7 +6789,7 @@ const DotAppToolbar = ({
6665
6789
  const displayAppLogo = appLogo || appLogoSmall;
6666
6790
  const mainMenuRef = useRef(null);
6667
6791
  const denseClass = dense ? denseClassName : '';
6668
- const rootClasses = useStylesWithRootClass(rootClassName$13, className, denseClass, showMainMenu ? '' : 'without-menu-icon');
6792
+ const rootClasses = useStylesWithRootClass(rootClassName$15, className, denseClass, showMainMenu ? '' : 'without-menu-icon');
6669
6793
  const mainMenuClasses = useStylesWithRootClass('dot-main-menu', denseClass, menuOpen ? 'open' : '');
6670
6794
  const targetBreakpoint = useMediaQuery(theme => theme.breakpoints.up('lg'));
6671
6795
  useEffect(() => {
@@ -6817,12 +6941,12 @@ const DotAppToolbar = ({
6817
6941
  }) : appToolbar;
6818
6942
  };
6819
6943
 
6820
- const rootClassName$12 = 'dot-chip';
6944
+ const rootClassName$14 = 'dot-chip';
6821
6945
  const StyledChip = styled(Chip)`
6822
6946
  ${({
6823
6947
  theme
6824
6948
  }) => css`
6825
- &.${rootClassName$12} {
6949
+ &.${rootClassName$14} {
6826
6950
  background: ${theme.palette.figma.neutral.normal};
6827
6951
  border-color: ${theme.palette.figma.border.darker};
6828
6952
  color: ${theme.palette.figma.typography.black};
@@ -6928,7 +7052,7 @@ const DotChip = ({
6928
7052
  charactersLimit = DEFAULT_CHARACTERS_LIMIT,
6929
7053
  children,
6930
7054
  className,
6931
- 'data-pendoid': dataPendoId = rootClassName$12,
7055
+ 'data-pendoid': dataPendoId = rootClassName$14,
6932
7056
  'data-testid': dataTestId,
6933
7057
  disabled = false,
6934
7058
  error = false,
@@ -6942,7 +7066,7 @@ const DotChip = ({
6942
7066
  tooltipProps
6943
7067
  }) => {
6944
7068
  const errorClass = error ? 'Mui-error' : '';
6945
- const rootClasses = useStylesWithRootClass(rootClassName$12, className, errorClass);
7069
+ const rootClasses = useStylesWithRootClass(rootClassName$14, className, errorClass);
6946
7070
  const isTruncated = charactersLimit > 0 && children.length > charactersLimit;
6947
7071
  const getChipLabelWithTooltip = label => jsx(DotTooltip, Object.assign({}, tooltipProps, {
6948
7072
  hoverVisibility: "always",
@@ -6978,7 +7102,7 @@ const DotChip = ({
6978
7102
  });
6979
7103
  };
6980
7104
 
6981
- const rootClassName$11 = 'dot-autocomplete';
7105
+ const rootClassName$13 = 'dot-autocomplete';
6982
7106
  const inputRootClassName = 'dot-input-root';
6983
7107
  const inputMediumClassName = 'dot-input-medium';
6984
7108
  const inputAiClassName = 'dot-input-ai';
@@ -6986,7 +7110,7 @@ const StyledAutocomplete = styled(Autocomplete)`
6986
7110
  ${({
6987
7111
  theme
6988
7112
  }) => css`
6989
- &.${rootClassName$11} {
7113
+ &.${rootClassName$13} {
6990
7114
  &.${inputMediumClassName} .dot-text-field .${inputRootClassName} {
6991
7115
  height: 56px;
6992
7116
  padding-left: ${theme.spacing(2)};
@@ -7085,8 +7209,8 @@ const isEmptyValue = value => {
7085
7209
  return !value;
7086
7210
  }
7087
7211
  };
7088
- const getRootClassNames = (className, size) => useStylesWithRootClass(rootClassName$11, size === 'medium' && inputMediumClassName, className);
7089
- const getTextFieldRootClassNames = (textFieldWarningClassName, isReadOnly) => useStylesWithRootClass(rootClassName$1s, isReadOnly && readOnlyClassName$1, textFieldWarningClassName);
7212
+ const getRootClassNames = (className, size) => useStylesWithRootClass(rootClassName$13, size === 'medium' && inputMediumClassName, className);
7213
+ const getTextFieldRootClassNames = (textFieldWarningClassName, isReadOnly) => useStylesWithRootClass(rootClassName$1u, isReadOnly && readOnlyClassName$1, textFieldWarningClassName);
7090
7214
  const getInputRootClassNames = isDense => useStylesWithRootClass(inputRootClassName, !isDense && inputMediumClassName);
7091
7215
  const getDefaultAutoCompleteValue = (hasMultiple, defaultValue) => hasMultiple && isString$2(defaultValue) ? [defaultValue] : defaultValue;
7092
7216
  const getAutoCompleteGroupBy = group => group ? option => option.group : undefined;
@@ -7108,7 +7232,7 @@ const DotAutoComplete = ({
7108
7232
  autoFocus,
7109
7233
  autoHighlight,
7110
7234
  className,
7111
- 'data-pendoid': dataPendoId = rootClassName$11,
7235
+ 'data-pendoid': dataPendoId = rootClassName$13,
7112
7236
  'data-testid': dataTestId,
7113
7237
  defaultValue,
7114
7238
  dense = true,
@@ -7178,7 +7302,7 @@ const DotAutoComplete = ({
7178
7302
  const rootClasses = useStylesWithRootClass(getRootClassNames(className, size), isAiEnabled ? inputAiClassName : '');
7179
7303
  const textFieldRootClasses = getTextFieldRootClassNames(textFieldWarningClassName, readOnly);
7180
7304
  const inputRootClasses = getInputRootClassNames(dense);
7181
- const popperClasses = useStylesWithRootClass(rootClassName$1h, popperClassName);
7305
+ const popperClasses = useStylesWithRootClass(rootClassName$1j, popperClassName);
7182
7306
  let highlightedOption = null;
7183
7307
  let textFieldInput;
7184
7308
  const textFieldRef = element => {
@@ -7528,10 +7652,10 @@ const DotAutoComplete = ({
7528
7652
  });
7529
7653
  };
7530
7654
 
7531
- const rootClassName$10 = 'dot-avatar-group';
7655
+ const rootClassName$12 = 'dot-avatar-group';
7532
7656
  const StyledAvatarGroup = styled(AvatarGroup)`
7533
7657
  ${() => css`
7534
- &.${rootClassName$10} {
7658
+ &.${rootClassName$12} {
7535
7659
  justify-content: flex-end;
7536
7660
 
7537
7661
  .MuiAvatar-root {
@@ -7550,7 +7674,7 @@ const DotAvatarGroup = ({
7550
7674
  max = 3,
7551
7675
  spacing = 'medium'
7552
7676
  }) => {
7553
- const rootClasses = useStylesWithRootClass(rootClassName$10, className);
7677
+ const rootClasses = useStylesWithRootClass(rootClassName$12, className);
7554
7678
  return jsx(StyledAvatarGroup, {
7555
7679
  "aria-label": ariaLabel,
7556
7680
  classes: {
@@ -7565,14 +7689,14 @@ const DotAvatarGroup = ({
7565
7689
  });
7566
7690
  };
7567
7691
 
7568
- const rootClassName$$ = 'dot-avatar-with-details';
7692
+ const rootClassName$11 = 'dot-avatar-with-details';
7569
7693
  const StyledAvatarWithDetails = styled.div`
7570
7694
  ${({
7571
7695
  theme,
7572
7696
  $maxSubtitleLines,
7573
7697
  $maxTitleLines
7574
7698
  }) => css`
7575
- &.${rootClassName$$} {
7699
+ &.${rootClassName$11} {
7576
7700
  gap: ${theme.spacing(2)};
7577
7701
  display: flex;
7578
7702
  align-items: center;
@@ -7608,12 +7732,12 @@ const DotAvatarWithDetails = ({
7608
7732
  ariaLabel,
7609
7733
  avatar,
7610
7734
  className,
7611
- 'data-pendoid': dataPendoId = rootClassName$$,
7735
+ 'data-pendoid': dataPendoId = rootClassName$11,
7612
7736
  'data-testid': dataTestId,
7613
7737
  subtitle,
7614
7738
  title
7615
7739
  }) => {
7616
- const rootClasses = useStylesWithRootClass(rootClassName$$, className);
7740
+ const rootClasses = useStylesWithRootClass(rootClassName$11, className);
7617
7741
  const titleClasses = useStylesWithRootClass('dot-avatar-with-details-title', title.maxLines ? 'max-lines-clamp' : '');
7618
7742
  const subtitleClasses = useStylesWithRootClass('dot-avatar-with-details-subtitle', (subtitle === null || subtitle === void 0 ? void 0 : subtitle.maxLines) ? 'max-lines-clamp' : '');
7619
7743
  return jsxs(StyledAvatarWithDetails, {
@@ -7648,13 +7772,13 @@ const DotAvatarWithDetails = ({
7648
7772
  });
7649
7773
  };
7650
7774
 
7651
- const rootClassName$_ = 'dot-breadcrumbs';
7775
+ const rootClassName$10 = 'dot-breadcrumbs';
7652
7776
  const breadcrumbsWrapperClass = 'dot-breadcrumbs-wrapper';
7653
7777
  const StyledBreadcrumbsWrapper = styled.div`
7654
7778
  ${({
7655
7779
  theme
7656
7780
  }) => css`
7657
- &.${rootClassName$_} {
7781
+ &.${rootClassName$10} {
7658
7782
  overflow: hidden;
7659
7783
 
7660
7784
  .dot-breadcrumbs-menu {
@@ -7674,7 +7798,7 @@ const StyledBreadcrumbs = styled(Breadcrumbs)`
7674
7798
  ${({
7675
7799
  theme
7676
7800
  }) => css`
7677
- &.${rootClassName$_} {
7801
+ &.${rootClassName$10} {
7678
7802
  margin-bottom: 0;
7679
7803
 
7680
7804
  .MuiBreadcrumbs-ol {
@@ -8002,7 +8126,7 @@ const DotBreadcrumbs = ({
8002
8126
  children: [jsx(StyledBreadcrumbs, {
8003
8127
  "aria-label": "breadcrumb",
8004
8128
  classes: {
8005
- root: rootClassName$_,
8129
+ root: rootClassName$10,
8006
8130
  ol: 'dot-ol',
8007
8131
  li: 'dot-li'
8008
8132
  },
@@ -8033,14 +8157,14 @@ const DotBreadcrumbs = ({
8033
8157
  });
8034
8158
  };
8035
8159
 
8036
- const rootClassName$Z = 'dot-button-toggle';
8160
+ const rootClassName$$ = 'dot-button-toggle';
8037
8161
  // TODO: need to update ripple color
8038
8162
  // https://github.com/mui/material-ui/issues/28543
8039
8163
  const StyledToggleButtonGroup = styled(ToggleButtonGroup)`
8040
8164
  ${({
8041
8165
  theme
8042
8166
  }) => css`
8043
- &.${rootClassName$Z} {
8167
+ &.${rootClassName$$} {
8044
8168
  button:not(.MuiToggleButton-sizeLarge):not(.MuiToggleButton-sizeSmall) {
8045
8169
  /* Override height for medium size */
8046
8170
  height: ${theme.spacing(5)};
@@ -8163,7 +8287,7 @@ const DotButtonToggle = ({
8163
8287
  buttonOptions,
8164
8288
  className,
8165
8289
  color,
8166
- 'data-pendoid': dataPendoId = rootClassName$Z,
8290
+ 'data-pendoid': dataPendoId = rootClassName$$,
8167
8291
  'data-testid': dataTestId = 'dot-toggle',
8168
8292
  disableFocusRipple = false,
8169
8293
  disableRipple = false,
@@ -8173,7 +8297,7 @@ const DotButtonToggle = ({
8173
8297
  size = 'medium',
8174
8298
  value
8175
8299
  }) => {
8176
- const rootClasses = useStylesWithRootClass(rootClassName$Z, className);
8300
+ const rootClasses = useStylesWithRootClass(rootClassName$$, className);
8177
8301
  const renderToggleButton = ({
8178
8302
  ariaLabel: optionAriaLabel,
8179
8303
  badgeContent: optionBadgeContent,
@@ -8258,12 +8382,12 @@ const TooltipToggleButton = forwardRef((_a, ref) => {
8258
8382
  }));
8259
8383
  });
8260
8384
 
8261
- const rootClassName$Y = 'dot-card';
8385
+ const rootClassName$_ = 'dot-card';
8262
8386
  const StyledCard = styled(Card)`
8263
8387
  ${({
8264
8388
  theme
8265
8389
  }) => css`
8266
- &.${rootClassName$Y} {
8390
+ &.${rootClassName$_} {
8267
8391
  background-color: ${theme.palette.figma.background.level1.white};
8268
8392
  }
8269
8393
  `}
@@ -8277,7 +8401,7 @@ const DotCard = ({
8277
8401
  onMouseEnter,
8278
8402
  onMouseLeave
8279
8403
  }) => {
8280
- const rootClasses = useStylesWithRootClass(rootClassName$Y, className);
8404
+ const rootClasses = useStylesWithRootClass(rootClassName$_, className);
8281
8405
  return jsx(StyledCard, {
8282
8406
  "aria-label": ariaLabel,
8283
8407
  classes: {
@@ -8308,12 +8432,12 @@ const DotCardContent = ({
8308
8432
  });
8309
8433
  };
8310
8434
 
8311
- const rootClassName$X = 'dot-card-footer';
8435
+ const rootClassName$Z = 'dot-card-footer';
8312
8436
  const StyledDiv = styled.div`
8313
8437
  ${({
8314
8438
  theme
8315
8439
  }) => css`
8316
- &.${rootClassName$X} {
8440
+ &.${rootClassName$Z} {
8317
8441
  padding: ${theme.spacing(2)};
8318
8442
  }
8319
8443
  `}
@@ -8325,7 +8449,7 @@ const DotCardFooter = ({
8325
8449
  className,
8326
8450
  'data-testid': dataTestId
8327
8451
  }) => {
8328
- const rootClasses = useStylesWithRootClass(rootClassName$X, className);
8452
+ const rootClasses = useStylesWithRootClass(rootClassName$Z, className);
8329
8453
  return jsx(StyledDiv, {
8330
8454
  "aria-label": ariaLabel,
8331
8455
  className: rootClasses,
@@ -8334,14 +8458,14 @@ const DotCardFooter = ({
8334
8458
  });
8335
8459
  };
8336
8460
 
8337
- const rootClassName$W = 'dot-card-header';
8461
+ const rootClassName$Y = 'dot-card-header';
8338
8462
  const StyledCardHeader = styled(CardHeader)`
8339
8463
  ${({
8340
8464
  theme,
8341
8465
  $maxSubheaderLines,
8342
8466
  $maxTitleLines
8343
8467
  }) => css`
8344
- &.${rootClassName$W} {
8468
+ &.${rootClassName$Y} {
8345
8469
  .MuiCardHeader-content {
8346
8470
  overflow-x: hidden;
8347
8471
 
@@ -8379,7 +8503,7 @@ const DotCardHeader = ({
8379
8503
  titleMaxLines = 1,
8380
8504
  titleSize = 'large'
8381
8505
  }) => {
8382
- const rootClasses = useStylesWithRootClass(rootClassName$W, className);
8506
+ const rootClasses = useStylesWithRootClass(rootClassName$Y, className);
8383
8507
  const nonSmallTitleSize = titleSize === 'medium' ? 'h3' : 'h2';
8384
8508
  const titleVariant = titleSize === 'small' ? 'h4' : nonSmallTitleSize;
8385
8509
  const subheaderVariant = subheaderSize === 'small' ? 'body2' : 'body1';
@@ -8416,9 +8540,9 @@ const DotCardHeader = ({
8416
8540
  });
8417
8541
  };
8418
8542
 
8419
- const rootClassName$V = 'dot-form-control-label';
8543
+ const rootClassName$X = 'dot-form-control-label';
8420
8544
  const StyledFormControlLabel = styled(FormControlLabel)`
8421
- &.${rootClassName$V} {
8545
+ &.${rootClassName$X} {
8422
8546
  .MuiFormControlLabel-label {
8423
8547
  margin-bottom: 0;
8424
8548
  padding: 0 0 0 4px;
@@ -8441,12 +8565,12 @@ const StyledFormControlLabel = styled(FormControlLabel)`
8441
8565
  }
8442
8566
  `;
8443
8567
 
8444
- const rootClassName$U = 'dot-checkbox';
8568
+ const rootClassName$W = 'dot-checkbox';
8445
8569
  const StyledCheckbox = styled(Checkbox)`
8446
8570
  ${({
8447
8571
  theme
8448
8572
  }) => css`
8449
- &.${rootClassName$U} {
8573
+ &.${rootClassName$W} {
8450
8574
  padding: ${theme.spacing(1)};
8451
8575
 
8452
8576
  &.MuiCheckbox-indeterminate {
@@ -8465,8 +8589,9 @@ function DotCheckbox({
8465
8589
  ariaLabelledby,
8466
8590
  checked,
8467
8591
  className,
8468
- 'data-pendoid': dataPendoId = rootClassName$V,
8592
+ 'data-pendoid': dataPendoId = rootClassName$X,
8469
8593
  'data-testid': dataTestId,
8594
+ defaultChecked,
8470
8595
  disabled,
8471
8596
  disableRipple,
8472
8597
  id,
@@ -8480,18 +8605,19 @@ function DotCheckbox({
8480
8605
  size = 'medium',
8481
8606
  value
8482
8607
  }) {
8483
- const rootClasses = useStylesWithRootClass(rootClassName$V, className);
8608
+ const rootClasses = useStylesWithRootClass(rootClassName$X, className);
8484
8609
  const handleChange = event => {
8485
8610
  onChange && onChange(event, event.target.value);
8486
8611
  };
8487
8612
  const checkboxControl = jsx(StyledCheckbox, {
8488
8613
  checked: checked,
8489
8614
  classes: {
8490
- root: rootClassName$U
8615
+ root: rootClassName$W
8491
8616
  },
8492
8617
  color: "primary",
8493
8618
  "data-pendoid": dataPendoId,
8494
8619
  "data-testid": dataTestId,
8620
+ defaultChecked: defaultChecked,
8495
8621
  disableRipple: disableRipple,
8496
8622
  disabled: disabled,
8497
8623
  id: id,
@@ -8516,13 +8642,13 @@ function DotCheckbox({
8516
8642
  });
8517
8643
  }
8518
8644
 
8519
- const rootClassName$T = 'dot-form-group';
8645
+ const rootClassName$V = 'dot-form-group';
8520
8646
  const groupLabelClassName = 'dot-form-group-label';
8521
8647
  const startAdornmentClassName = 'dot-start-adornment';
8522
8648
  const endAdornmentClassName = 'dot-end-adornment';
8523
8649
  const placementClassName = 'dot-';
8524
8650
  const StyledFormControl = styled(FormControl)`
8525
- &.${rootClassName$T} {
8651
+ &.${rootClassName$V} {
8526
8652
  .MuiFormLabel-root {
8527
8653
  width: 100%;
8528
8654
  line-height: 24px;
@@ -8553,7 +8679,7 @@ const StyledFormControl = styled(FormControl)`
8553
8679
  }
8554
8680
  `;
8555
8681
 
8556
- const rootClassName$S = 'dot-checkbox-group';
8682
+ const rootClassName$U = 'dot-checkbox-group';
8557
8683
  const wrapperClassName$1 = 'dot-checkbox-group-wrapper';
8558
8684
  const checkboxListClassName = 'dot-checkbox-list';
8559
8685
  const checkboxListItemClassName = 'dot-checkbox-list-item';
@@ -8562,7 +8688,7 @@ const StyledCheckboxGroup = styled.div`
8562
8688
  theme
8563
8689
  }) => css`
8564
8690
  &.${wrapperClassName$1} {
8565
- .${rootClassName$S} {
8691
+ .${rootClassName$U} {
8566
8692
  width: 100%;
8567
8693
  }
8568
8694
 
@@ -8589,7 +8715,7 @@ const StyledCheckboxGroup = styled.div`
8589
8715
  margin-top: 0;
8590
8716
  padding-left: ${theme.spacing(2.5)};
8591
8717
 
8592
- .${rootClassName$V} {
8718
+ .${rootClassName$X} {
8593
8719
  margin: 0;
8594
8720
  }
8595
8721
  }
@@ -8597,13 +8723,13 @@ const StyledCheckboxGroup = styled.div`
8597
8723
  `}
8598
8724
  `;
8599
8725
 
8600
- const rootClassName$R = 'dot-form-group';
8726
+ const rootClassName$T = 'dot-form-group';
8601
8727
  const StyledFormGroup = styled(FormGroup)`
8602
8728
  ${({
8603
8729
  theme,
8604
8730
  row
8605
8731
  }) => css`
8606
- &.${rootClassName$R} > * {
8732
+ &.${rootClassName$T} > * {
8607
8733
  margin: ${row ? `${theme.spacing(0.5)}` : 0};
8608
8734
  }
8609
8735
  `}
@@ -8616,7 +8742,7 @@ function DotFormGroup({
8616
8742
  'data-testid': dataTestId,
8617
8743
  row
8618
8744
  }) {
8619
- const rootClasses = useStylesWithRootClass(rootClassName$T, className);
8745
+ const rootClasses = useStylesWithRootClass(rootClassName$V, className);
8620
8746
  return jsx(StyledFormGroup, {
8621
8747
  "aria-label": ariaLabel,
8622
8748
  classes: {
@@ -8655,7 +8781,7 @@ function DotCheckboxGroup({
8655
8781
  size = 'medium'
8656
8782
  }) {
8657
8783
  const placement = `${placementClassName}${labelPlacement}`;
8658
- const rootClasses = useStylesWithRootClass(rootClassName$T, rootClassName$S, className, placement);
8784
+ const rootClasses = useStylesWithRootClass(rootClassName$V, rootClassName$U, className, placement);
8659
8785
  const [selectedOptions, setSelectedOptions] = useState(defaultValues);
8660
8786
  const [allChecked, setAllChecked] = useState(false);
8661
8787
  /* This will ensure that state can be updated from the outside */
@@ -8740,12 +8866,12 @@ function DotCheckboxGroup({
8740
8866
  });
8741
8867
  }
8742
8868
 
8743
- const rootClassName$Q = 'chip-list';
8869
+ const rootClassName$S = 'chip-list';
8744
8870
  const StyledChipList = styled.div`
8745
8871
  ${({
8746
8872
  theme
8747
8873
  }) => css`
8748
- &.${rootClassName$Q} {
8874
+ &.${rootClassName$S} {
8749
8875
  display: flex;
8750
8876
  gap: ${theme.spacing(1)};
8751
8877
  }
@@ -8820,19 +8946,19 @@ function DotChipList({
8820
8946
  setChips(itemElements);
8821
8947
  }, [items, maxChars]);
8822
8948
  return jsx(StyledChipList, {
8823
- className: rootClassName$Q,
8949
+ className: rootClassName$S,
8824
8950
  "data-testid": dataTestId,
8825
8951
  style: style,
8826
8952
  children: chips
8827
8953
  });
8828
8954
  }
8829
8955
 
8830
- const rootClassName$P = 'dot-dialog';
8956
+ const rootClassName$R = 'dot-dialog';
8831
8957
  const StyledDialog = styled(Dialog)`
8832
8958
  ${({
8833
8959
  theme
8834
8960
  }) => css`
8835
- &.${rootClassName$P} {
8961
+ &.${rootClassName$R} {
8836
8962
  .MuiDialog-paper {
8837
8963
  background: ${theme.palette.figma.background.level1.white};
8838
8964
  color: ${theme.palette.figma.typography.black};
@@ -8878,7 +9004,7 @@ const DotDialog = ({
8878
9004
  cancelButtonProps,
8879
9005
  cancelButtonVisible = true,
8880
9006
  className,
8881
- 'data-pendoid': dataPendoId = rootClassName$P,
9007
+ 'data-pendoid': dataPendoId = rootClassName$R,
8882
9008
  'data-testid': dataTestId,
8883
9009
  children,
8884
9010
  closeIconVisible,
@@ -8892,7 +9018,7 @@ const DotDialog = ({
8892
9018
  submitButtonProps,
8893
9019
  title
8894
9020
  }) => {
8895
- const rootClasses = useStylesWithRootClass(rootClassName$P, className);
9021
+ const rootClasses = useStylesWithRootClass(rootClassName$R, className);
8896
9022
  const cancelClasses = useStylesWithRootClass(cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.className, 'cancel-button');
8897
9023
  const [isOpen, setIsOpen] = useState(open);
8898
9024
  const hasSecondaryAction = !!secondaryButtonProps;
@@ -9029,7 +9155,7 @@ const DotConfirmationDialog = ({
9029
9155
  });
9030
9156
  };
9031
9157
 
9032
- const rootClassName$O = 'dot-grid';
9158
+ const rootClassName$Q = 'dot-grid';
9033
9159
  const frGetter = value => typeof value === 'number' ? `repeat(${value}, 1fr)` : value;
9034
9160
  const breakpointsGetter$1 = (theme, columnsBreakpoints, columnGap, rowGap) => `${theme.breakpoints.up('xs')} {
9035
9161
  column-gap: ${`${columnGap.xs}px`};
@@ -9089,7 +9215,7 @@ const Grid = ({
9089
9215
  children,
9090
9216
  isLoading
9091
9217
  }) => {
9092
- const rootClasses = useStylesWithRootClass(rootClassName$O, className);
9218
+ const rootClasses = useStylesWithRootClass(rootClassName$Q, className);
9093
9219
  return jsxs("div", {
9094
9220
  className: rootClasses,
9095
9221
  children: [children, isLoading && jsx(DotProgress, {
@@ -9113,7 +9239,7 @@ const StyledGrid = styled(Grid)`
9113
9239
  theme,
9114
9240
  width
9115
9241
  }) => css`
9116
- &.${rootClassName$O} {
9242
+ &.${rootClassName$Q} {
9117
9243
  display: grid;
9118
9244
  grid-template-rows: ${frGetter(rows)};
9119
9245
  ${columns ? `${columns && `grid-template-columns: ${frGetter(columns)}`};` : breakpointsGetter$1(theme, columnsBreakpoints, columnGap, rowGap)}
@@ -9384,12 +9510,12 @@ const CssGridDebug = ({
9384
9510
  });
9385
9511
  };
9386
9512
 
9387
- const rootClassName$N = 'dot-pill';
9513
+ const rootClassName$P = 'dot-pill';
9388
9514
  const StyledPill = styled(Chip)`
9389
9515
  ${({
9390
9516
  theme
9391
9517
  }) => css`
9392
- &.${rootClassName$N} {
9518
+ &.${rootClassName$P} {
9393
9519
  background-color: ${({
9394
9520
  backgroundcolor,
9395
9521
  variant
@@ -9513,7 +9639,7 @@ const DotPill = ({
9513
9639
  status = 'default',
9514
9640
  variant = 'filled'
9515
9641
  }) => {
9516
- const rootClasses = useStylesWithRootClass(rootClassName$N, className, status);
9642
+ const rootClasses = useStylesWithRootClass(rootClassName$P, className, status);
9517
9643
  return jsx(StyledPill, {
9518
9644
  "aria-label": ariaLabel,
9519
9645
  bordercolor: bordercolor,
@@ -11224,18 +11350,18 @@ function addAutoHideDuration(severity) {
11224
11350
  return severity === 'error' ? null : 10000;
11225
11351
  }
11226
11352
 
11227
- const rootClassName$M = 'dot-snackbar';
11353
+ const rootClassName$O = 'dot-snackbar';
11228
11354
  const StyledSnackbar = styled(Snackbar)`
11229
11355
  ${({
11230
11356
  theme,
11231
11357
  width,
11232
11358
  $anchorOriginTop
11233
11359
  }) => css`
11234
- &.${rootClassName$M} {
11360
+ &.${rootClassName$O} {
11235
11361
  .MuiAlert-message {
11236
11362
  word-break: break-word;
11237
11363
  }
11238
- .${rootClassName$1o} {
11364
+ .${rootClassName$1q} {
11239
11365
  align-items: flex-start;
11240
11366
  }
11241
11367
  &.MuiSnackbar-anchorOriginTopLeft,
@@ -11288,7 +11414,7 @@ const DotSnackbar = ({
11288
11414
  }) => {
11289
11415
  const hasActions = !!(primaryAction || secondaryAction);
11290
11416
  const calculatedAutoHideDuration = autoHideDuration === null || autoHideDuration > 0 ? autoHideDuration : addAutoHideDuration(severity);
11291
- const rootClasses = useStylesWithRootClass(rootClassName$M, className);
11417
+ const rootClasses = useStylesWithRootClass(rootClassName$O, className);
11292
11418
  const handleSnackbarClose = reason => {
11293
11419
  if (!reason || hideOnClickAway || !hideOnClickAway && reason !== 'clickaway') {
11294
11420
  onClose();
@@ -11358,10 +11484,10 @@ const DotSnackbar = ({
11358
11484
  });
11359
11485
  };
11360
11486
 
11361
- const rootClassName$L = 'dot-snackbar-container';
11487
+ const rootClassName$N = 'dot-snackbar-container';
11362
11488
  const StyledSnackbarContainer = styled.div`
11363
11489
  ${() => css`
11364
- &.${rootClassName$L} {
11490
+ &.${rootClassName$N} {
11365
11491
  position: absolute;
11366
11492
  top: 0;
11367
11493
  width: 250px;
@@ -11393,10 +11519,10 @@ const DotSnackbarContainer = ({
11393
11519
  };
11394
11520
  }
11395
11521
  return jsx(StyledSnackbarContainer, {
11396
- className: rootClassName$L,
11522
+ className: rootClassName$N,
11397
11523
  children: jsx("div", {
11398
- className: rootClassName$L,
11399
- "data-testid": rootClassName$L,
11524
+ className: rootClassName$N,
11525
+ "data-testid": rootClassName$N,
11400
11526
  children: alerts.slice().reverse().map(alert => {
11401
11527
  return jsx(DotSnackbar, {
11402
11528
  autoCloseOnAction: autoCloseOnAction,
@@ -11470,12 +11596,12 @@ const useEnqueueErrorMessage = error => {
11470
11596
  }, [error]);
11471
11597
  };
11472
11598
 
11473
- const rootClassName$K = 'dot-dashboard-details';
11599
+ const rootClassName$M = 'dot-dashboard-details';
11474
11600
  const StyledDashboardDetails = styled(DotDrawer)`
11475
11601
  ${({
11476
11602
  theme
11477
11603
  }) => css`
11478
- &.${rootClassName$K} {
11604
+ &.${rootClassName$M} {
11479
11605
  .dot-drawer-paper {
11480
11606
  padding: 0;
11481
11607
  width: 382px;
@@ -11601,7 +11727,7 @@ const DotDashboardDetailsView = ({
11601
11727
  modifiedAuthorUser
11602
11728
  }) => {
11603
11729
  var _a, _b;
11604
- const rootClasses = useStylesWithRootClass(rootClassName$K, className);
11730
+ const rootClasses = useStylesWithRootClass(rootClassName$M, className);
11605
11731
  const closeHandler = useCallback(event => {
11606
11732
  onClose && onClose(event);
11607
11733
  }, [onClose]);
@@ -12263,12 +12389,12 @@ function DotDashboardDialog({
12263
12389
  });
12264
12390
  }
12265
12391
 
12266
- const rootClassName$J = 'dot-impact-dialog';
12392
+ const rootClassName$L = 'dot-impact-dialog';
12267
12393
  const StyledImpactDialog = styled(DotDialog)`
12268
12394
  ${({
12269
12395
  theme
12270
12396
  }) => css`
12271
- &.${rootClassName$J} {
12397
+ &.${rootClassName$L} {
12272
12398
  .high-impact-default-content {
12273
12399
  margin-top: ${theme.spacing(2)};
12274
12400
  margin-bottom: ${theme.spacing(3)};
@@ -12374,7 +12500,7 @@ const DotImpactDialog = ({
12374
12500
  }
12375
12501
  return '';
12376
12502
  }, [action, capitalize, impact, record]);
12377
- const rootClasses = useStylesWithRootClass(rootClassName$J, className);
12503
+ const rootClasses = useStylesWithRootClass(rootClassName$L, className);
12378
12504
  return jsx(StyledImpactDialog, {
12379
12505
  "data-testid": dataTestId,
12380
12506
  className: rootClasses,
@@ -13765,7 +13891,7 @@ function DotDashboardHeader({
13765
13891
  });
13766
13892
  }
13767
13893
 
13768
- const rootClassName$I = 'dot-empty-state';
13894
+ const rootClassName$K = 'dot-empty-state';
13769
13895
  const emptyStateImageSizing = {
13770
13896
  xsmall: 9,
13771
13897
  dense: 15,
@@ -13836,9 +13962,9 @@ const StyledEmptyState = styled.div`
13836
13962
  `}
13837
13963
  `;
13838
13964
 
13839
- const rootClassName$H = 'dot-illustration';
13965
+ const rootClassName$J = 'dot-illustration';
13840
13966
  const StyledIllustration = styled.span`
13841
- &.${rootClassName$H} {
13967
+ &.${rootClassName$J} {
13842
13968
  display: inline-block;
13843
13969
  }
13844
13970
  `;
@@ -13855,17 +13981,17 @@ const DotIllustration = ({
13855
13981
  tooltip,
13856
13982
  tooltipPlacement = 'right-end'
13857
13983
  }) => {
13858
- const rootClasses = useStylesWithRootClass(rootClassName$H, className);
13984
+ const rootClasses = useStylesWithRootClass(rootClassName$J, className);
13859
13985
  return jsx(DotTooltip, {
13860
13986
  childrenDisplayStyle: "inline-block",
13861
13987
  title: tooltip,
13862
13988
  placement: tooltipPlacement,
13863
- "data-testid": `${dataTestId || rootClassName$H}-tooltip`,
13989
+ "data-testid": `${dataTestId || rootClassName$J}-tooltip`,
13864
13990
  children: jsx(StyledIllustration, {
13865
13991
  "aria-hidden": "false",
13866
13992
  "aria-label": ariaLabel || title || 'Illustration',
13867
13993
  className: rootClasses,
13868
- "data-testid": dataTestId || rootClassName$H,
13994
+ "data-testid": dataTestId || rootClassName$J,
13869
13995
  role: ariaRole,
13870
13996
  children: jsx("img", {
13871
13997
  alt: alt || 'Illustration',
@@ -13891,7 +14017,7 @@ const DotEmptyState = ({
13891
14017
  subtitle,
13892
14018
  title
13893
14019
  }) => {
13894
- const rootClasses = useStylesWithRootClass(rootClassName$I, className);
14020
+ const rootClasses = useStylesWithRootClass(rootClassName$K, className);
13895
14021
  return jsxs(StyledEmptyState, {
13896
14022
  "aria-label": ariaLabel,
13897
14023
  className: `${rootClasses} ${size}`,
@@ -13972,20 +14098,20 @@ const StyledRadioGroup = styled(RadioGroup)`
13972
14098
  &.${groupClassName} {
13973
14099
  padding-left: ${theme.spacing(2.5)};
13974
14100
 
13975
- .${rootClassName$V} {
14101
+ .${rootClassName$X} {
13976
14102
  margin: 0;
13977
14103
  }
13978
14104
  }
13979
14105
  `}
13980
14106
  `;
13981
14107
 
13982
- const rootClassName$G = 'dot-date-picker';
14108
+ const rootClassName$I = 'dot-date-picker';
13983
14109
  const popperClassName = 'dot-date-picker-popper';
13984
14110
  const containerClassName$2 = 'dot-date-picker-container';
13985
14111
  const rectanglePickersDayClassName = 'dot-rectangle-pickers-day';
13986
14112
  const StyledDatePickerContainer = styled.div`
13987
14113
  ${() => css`
13988
- &.${rootClassName$G} .full-width {
14114
+ &.${rootClassName$I} .full-width {
13989
14115
  width: 100%;
13990
14116
  }
13991
14117
  `}
@@ -13994,7 +14120,7 @@ const StyledDatePicker = styled(DatePicker)`
13994
14120
  ${({
13995
14121
  theme
13996
14122
  }) => css`
13997
- &.${rootClassName$G} {
14123
+ &.${rootClassName$I} {
13998
14124
  ${pickerInputStyles(theme)};
13999
14125
 
14000
14126
  .Mui-disabled.MuiInputBase-root,
@@ -14036,7 +14162,7 @@ const StyledPickersDay = styled(PickersDay)`
14036
14162
  `}
14037
14163
  `;
14038
14164
 
14039
- const rootClassName$F = 'dot-time-picker';
14165
+ const rootClassName$H = 'dot-time-picker';
14040
14166
  const containerClassName$1 = 'dot-time-picker-container';
14041
14167
  const timePickerPopperClassName = 'dot-time-picker-popper';
14042
14168
  const TIME_SELECTION_HEIGHT_SPACING = 34.5;
@@ -14056,7 +14182,7 @@ const StyledTimePicker = styled(TimePicker)`
14056
14182
  ${({
14057
14183
  theme
14058
14184
  }) => css`
14059
- &.${rootClassName$F} {
14185
+ &.${rootClassName$H} {
14060
14186
  ${pickerInputStyles(theme)};
14061
14187
 
14062
14188
  .Mui-disabled.MuiInputBase-root,
@@ -14133,36 +14259,36 @@ const StyledTimePickerPopper = styled(Popper)`
14133
14259
  `}
14134
14260
  `;
14135
14261
 
14136
- const rootClassName$E = 'dot-form';
14262
+ const rootClassName$G = 'dot-form';
14137
14263
  const StyledFormContainer = styled.div`
14138
14264
  ${({
14139
14265
  theme
14140
14266
  }) => css`
14141
- &.${rootClassName$E} {
14267
+ &.${rootClassName$G} {
14142
14268
  margin: ${theme.spacing(3, 0)};
14143
14269
 
14144
- .${rootClassName$T},
14145
- .${rootClassName$V},
14146
- .${rootClassName$1s},
14270
+ .${rootClassName$V},
14271
+ .${rootClassName$X},
14272
+ .${rootClassName$1u},
14147
14273
  .${rootSelectClassName},
14148
- .${rootClassName$G},
14149
- .${rootClassName$F} {
14274
+ .${rootClassName$I},
14275
+ .${rootClassName$H} {
14150
14276
  margin: ${theme.spacing(1, 0)};
14151
14277
  }
14152
14278
 
14153
14279
  .${wrapperClassName$2} {
14154
- + .${rootClassName$1s},
14280
+ + .${rootClassName$1u},
14155
14281
  .${wrapperClassName$2}
14156
14282
  + .${rootSelectClassName},
14157
14283
  .${wrapperClassName$2}
14158
- + .${rootClassName$G},
14284
+ + .${rootClassName$I},
14159
14285
  .${wrapperClassName$2}
14160
- + .${rootClassName$F} {
14286
+ + .${rootClassName$H} {
14161
14287
  margin: ${theme.spacing(0, 0, 1, 0)};
14162
14288
  }
14163
14289
 
14164
- .${rootClassName$S}, .${groupClassName} {
14165
- .${rootClassName$V} {
14290
+ .${rootClassName$U}, .${groupClassName} {
14291
+ .${rootClassName$X} {
14166
14292
  margin: 0;
14167
14293
  }
14168
14294
  }
@@ -14177,7 +14303,7 @@ const DotForm = ({
14177
14303
  'data-testid': dataTestId,
14178
14304
  onSubmit
14179
14305
  }) => {
14180
- const rootClasses = useStylesWithRootClass(rootClassName$E, className);
14306
+ const rootClasses = useStylesWithRootClass(rootClassName$G, className);
14181
14307
  return jsx("form", {
14182
14308
  "aria-label": ariaLabel,
14183
14309
  "data-testid": dataTestId,
@@ -14190,10 +14316,10 @@ const DotForm = ({
14190
14316
  });
14191
14317
  };
14192
14318
 
14193
- const rootClassName$D = 'dot-dynamic-form';
14319
+ const rootClassName$F = 'dot-dynamic-form';
14194
14320
  const StyledDynamicForm = styled(DotForm)`
14195
14321
  ${() => css`
14196
- &.${rootClassName$D} {
14322
+ &.${rootClassName$F} {
14197
14323
  }
14198
14324
  `}
14199
14325
  `;
@@ -14373,12 +14499,12 @@ const checkIfFormDataValid = formState => {
14373
14499
  return true;
14374
14500
  };
14375
14501
 
14376
- const rootClassName$C = 'dot-progress-button';
14502
+ const rootClassName$E = 'dot-progress-button';
14377
14503
  const StyledProgressButton = styled(DotButton)`
14378
14504
  ${({
14379
14505
  theme
14380
14506
  }) => css`
14381
- &.${rootClassName$C} {
14507
+ &.${rootClassName$E} {
14382
14508
  .hidden {
14383
14509
  // hide children but preserve its space so that
14384
14510
  // button's dimensions don't change
@@ -14403,7 +14529,7 @@ const DotProgressButton = ({
14403
14529
  ariaLabel,
14404
14530
  children,
14405
14531
  className,
14406
- 'data-pendoid': dataPendoId = rootClassName$C,
14532
+ 'data-pendoid': dataPendoId = rootClassName$E,
14407
14533
  'data-testid': dataTestId,
14408
14534
  disabled = false,
14409
14535
  disableInteractive,
@@ -14417,7 +14543,7 @@ const DotProgressButton = ({
14417
14543
  tooltip,
14418
14544
  type = 'primary'
14419
14545
  }) => {
14420
- const rootClasses = useStylesWithRootClass(rootClassName$C, className);
14546
+ const rootClasses = useStylesWithRootClass(rootClassName$E, className);
14421
14547
  const isButtonDisabled = disabled || isLoading;
14422
14548
  const titleClasses = useStylesWithRootClass(isLoading ? 'hidden' : '');
14423
14549
  const progressCircleSize = size === 'large' ? SPINNER_LARGE_SIZE : SPINNER_DEFAULT_SIZE;
@@ -14447,12 +14573,12 @@ const DotProgressButton = ({
14447
14573
  });
14448
14574
  };
14449
14575
 
14450
- const rootClassName$B = 'dot-radio';
14576
+ const rootClassName$D = 'dot-radio';
14451
14577
  const StyledRadioButton = styled(Radio)`
14452
14578
  ${({
14453
14579
  theme
14454
14580
  }) => css`
14455
- &.${rootClassName$B} {
14581
+ &.${rootClassName$D} {
14456
14582
  padding: 8px;
14457
14583
 
14458
14584
  svg {
@@ -14470,8 +14596,9 @@ function DotRadioButton({
14470
14596
  ariaLabel,
14471
14597
  checked,
14472
14598
  className,
14473
- 'data-pendoid': dataPendoId = rootClassName$V,
14599
+ 'data-pendoid': dataPendoId = rootClassName$X,
14474
14600
  'data-testid': dataTestId,
14601
+ defaultChecked,
14475
14602
  disabled,
14476
14603
  id,
14477
14604
  inputRef,
@@ -14483,7 +14610,7 @@ function DotRadioButton({
14483
14610
  size = 'medium',
14484
14611
  value
14485
14612
  }) {
14486
- const rootClasses = useStylesWithRootClass(rootClassName$V, className);
14613
+ const rootClasses = useStylesWithRootClass(rootClassName$X, className);
14487
14614
  const handleChange = event => {
14488
14615
  onChange && onChange(event, event.target.value);
14489
14616
  };
@@ -14491,11 +14618,12 @@ function DotRadioButton({
14491
14618
  const radioControl = jsx(StyledRadioButton, {
14492
14619
  checked: checked,
14493
14620
  classes: {
14494
- root: rootClassName$B
14621
+ root: rootClassName$D
14495
14622
  },
14496
14623
  color: "primary",
14497
14624
  "data-pendoid": dataPendoId,
14498
14625
  "data-testid": dataTestId,
14626
+ defaultChecked: defaultChecked,
14499
14627
  disabled: disabled,
14500
14628
  id: id,
14501
14629
  inputRef: inputRef,
@@ -14537,7 +14665,7 @@ const DotRadioGroup = ({
14537
14665
  size = 'medium'
14538
14666
  }) => {
14539
14667
  const placement = `${placementClassName}${labelPlacement}`;
14540
- const rootClasses = useStylesWithRootClass(rootClassName$T, className, placement);
14668
+ const rootClasses = useStylesWithRootClass(rootClassName$V, className, placement);
14541
14669
  const radioValue = value || defaultValue;
14542
14670
  const [selectedValue, setSelectedValue] = useState(radioValue);
14543
14671
  /* This will ensure that value can be updated from the outside */
@@ -14602,7 +14730,7 @@ const DotRadioGroup = ({
14602
14730
  });
14603
14731
  };
14604
14732
 
14605
- const rootClassName$A = 'dot-switch';
14733
+ const rootClassName$C = 'dot-switch';
14606
14734
  const StyledSwitch = styled(Switch)`
14607
14735
  ${({
14608
14736
  theme
@@ -14629,7 +14757,7 @@ const DotSwitch = ({
14629
14757
  checked,
14630
14758
  className,
14631
14759
  color,
14632
- 'data-pendoid': dataPendoId = rootClassName$A,
14760
+ 'data-pendoid': dataPendoId = rootClassName$C,
14633
14761
  'data-testid': dataTestId,
14634
14762
  disabled = false,
14635
14763
  id,
@@ -14639,7 +14767,7 @@ const DotSwitch = ({
14639
14767
  onChange,
14640
14768
  size = 'medium'
14641
14769
  }) => {
14642
- const rootClasses = useStylesWithRootClass(rootClassName$A, className);
14770
+ const rootClasses = useStylesWithRootClass(rootClassName$C, className);
14643
14771
  const handleChange = event => {
14644
14772
  onChange && onChange(event);
14645
14773
  };
@@ -14669,7 +14797,7 @@ const DotSwitch = ({
14669
14797
  tabIndex: 0
14670
14798
  });
14671
14799
  return jsx(StyledFormControlLabel, {
14672
- className: rootClassName$V,
14800
+ className: rootClassName$X,
14673
14801
  control: switchControl,
14674
14802
  label: label,
14675
14803
  labelPlacement: labelPlacement
@@ -14990,7 +15118,7 @@ const DotDynamicForm = ({
14990
15118
  onChange,
14991
15119
  onSubmit
14992
15120
  }) => {
14993
- const rootClasses = useStylesWithRootClass(rootClassName$D, className);
15121
+ const rootClasses = useStylesWithRootClass(rootClassName$F, className);
14994
15122
  // Memoize this operation so that is doesn't get executed each time this
14995
15123
  // component re-renders
14996
15124
  const initialFormState = useMemo(() => getInitialFormState(config, liveValidation), [config, liveValidation, getInitialFormState]);
@@ -15236,7 +15364,7 @@ const DotDynamicForm = ({
15236
15364
  });
15237
15365
  };
15238
15366
 
15239
- const rootClassName$z = 'dot-inline-edit';
15367
+ const rootClassName$B = 'dot-inline-edit';
15240
15368
  const editModeClassName = 'dot-edit-mode';
15241
15369
  const viewModeClassName = 'dot-view-mode';
15242
15370
  const placeholderClassName = 'dot-placeholder';
@@ -15248,7 +15376,7 @@ const StyledInlineEdit = styled.div`
15248
15376
  theme,
15249
15377
  fullWidth
15250
15378
  }) => css`
15251
- &.${rootClassName$z} {
15379
+ &.${rootClassName$B} {
15252
15380
  align-items: center;
15253
15381
  color: ${theme.palette.figma.typography.black};
15254
15382
  display: ${fullWidth ? 'flex' : 'inline-flex'};
@@ -15462,7 +15590,7 @@ const DotInlineEdit = ({
15462
15590
  bindings,
15463
15591
  charactersLimit,
15464
15592
  className,
15465
- 'data-pendoid': dataPendoId = rootClassName$z,
15593
+ 'data-pendoid': dataPendoId = rootClassName$B,
15466
15594
  'data-testid': dataTestId,
15467
15595
  fullWidth = true,
15468
15596
  hideActionButtons,
@@ -15498,7 +15626,7 @@ const DotInlineEdit = ({
15498
15626
  }
15499
15627
  }, [value]);
15500
15628
  const isSaveDisabled = checkIfEmptyValue(inputValue);
15501
- const rootClasses = useStylesWithRootClass(rootClassName$z, className, editing ? editModeClassName : '');
15629
+ const rootClasses = useStylesWithRootClass(rootClassName$B, className, editing ? editModeClassName : '');
15502
15630
  const handleShowTooltip = visible => {
15503
15631
  if (!editing) {
15504
15632
  setShowTooltip(visible);
@@ -15686,13 +15814,13 @@ const DotInlineEdit = ({
15686
15814
  });
15687
15815
  };
15688
15816
 
15689
- const rootClassName$y = 'dot-navigation-rail';
15817
+ const rootClassName$A = 'dot-navigation-rail';
15690
15818
  const StyledNavigationRail = styled.div`
15691
15819
  ${({
15692
15820
  theme,
15693
15821
  railItemPosition
15694
15822
  }) => css`
15695
- &.${rootClassName$y} {
15823
+ &.${rootClassName$A} {
15696
15824
  background: ${theme.palette.figma.neutral.elevated};
15697
15825
  border-left: 1px solid ${theme.palette.figma.border.default};
15698
15826
  display: flex;
@@ -15752,7 +15880,7 @@ const DotNavigationRail = ({
15752
15880
  railItems,
15753
15881
  selectedIndex
15754
15882
  }) => {
15755
- const rootClasses = useStylesWithRootClass(rootClassName$y, className);
15883
+ const rootClasses = useStylesWithRootClass(rootClassName$A, className);
15756
15884
  const [selectedItemIndex, setSelectedItemIndex] = useState(selectedIndex !== null && selectedIndex !== void 0 ? selectedIndex : defaultIndex);
15757
15885
  /* Used to change selected index programmatically from the consumer component */
15758
15886
  useEffect(() => {
@@ -15803,12 +15931,12 @@ const DotNavigationRail = ({
15803
15931
  });
15804
15932
  };
15805
15933
 
15806
- const rootClassName$x = 'dot-skeleton';
15934
+ const rootClassName$z = 'dot-skeleton';
15807
15935
  const StyledSkeleton = styled(Skeleton)`
15808
15936
  ${({
15809
15937
  theme
15810
15938
  }) => css`
15811
- &.${rootClassName$x} {
15939
+ &.${rootClassName$z} {
15812
15940
  background-color: ${theme.palette.figma.border.darker};
15813
15941
  }
15814
15942
  `}
@@ -15823,7 +15951,7 @@ const DotSkeleton = ({
15823
15951
  width,
15824
15952
  variant
15825
15953
  }) => {
15826
- const rootClasses = useStylesWithRootClass(rootClassName$x, className);
15954
+ const rootClasses = useStylesWithRootClass(rootClassName$z, className);
15827
15955
  return jsx(StyledSkeleton, {
15828
15956
  animation: "wave",
15829
15957
  "aria-label": ariaLabel,
@@ -15838,12 +15966,12 @@ const DotSkeleton = ({
15838
15966
  });
15839
15967
  };
15840
15968
 
15841
- const rootClassName$w = 'dot-split-button-group';
15969
+ const rootClassName$y = 'dot-split-button-group';
15842
15970
  const StyledSplitButtonGroup = styled(ButtonGroup)`
15843
15971
  ${({
15844
15972
  theme
15845
15973
  }) => css`
15846
- &.${rootClassName$w} {
15974
+ &.${rootClassName$y} {
15847
15975
  &.outlined,
15848
15976
  &.text {
15849
15977
  .expand-button {
@@ -15909,7 +16037,7 @@ const DotSplitButton = ({
15909
16037
  autoFocus = false,
15910
16038
  ariaLabel,
15911
16039
  className,
15912
- 'data-pendoid': dataPendoId = rootClassName$w,
16040
+ 'data-pendoid': dataPendoId = rootClassName$y,
15913
16041
  'data-testid': dataTestId,
15914
16042
  defaultMainOptionKey,
15915
16043
  disabled = false,
@@ -15925,7 +16053,7 @@ const DotSplitButton = ({
15925
16053
  tooltipPlacement,
15926
16054
  type = 'primary'
15927
16055
  }) => {
15928
- const rootClasses = useStylesWithRootClass(rootClassName$w, className, type, disabled ? 'disabled' : '');
16056
+ const rootClasses = useStylesWithRootClass(rootClassName$y, className, type, disabled ? 'disabled' : '');
15929
16057
  const [open, setOpen] = useState(false);
15930
16058
  const anchorRef = useRef(null);
15931
16059
  const hasEmptyOptions = options.length === 0;
@@ -15993,15 +16121,15 @@ const DotSplitButton = ({
15993
16121
  });
15994
16122
  };
15995
16123
 
15996
- const rootClassName$v = 'dot-stepper';
16124
+ const rootClassName$x = 'dot-stepper';
15997
16125
  const stepListClassName = 'dot-stepper-list';
15998
- const contentClassName = 'dot-stepper-content';
16126
+ const contentClassName$1 = 'dot-stepper-content';
15999
16127
  const StyledStepper = styled.div`
16000
16128
  ${({
16001
16129
  theme,
16002
16130
  offset
16003
16131
  }) => css`
16004
- &.${rootClassName$v} {
16132
+ &.${rootClassName$x} {
16005
16133
  display: flex;
16006
16134
  align-items: flex-start;
16007
16135
  padding: 0;
@@ -16160,7 +16288,7 @@ const StyledStepper = styled.div`
16160
16288
  }
16161
16289
  }
16162
16290
 
16163
- .${contentClassName} {
16291
+ .${contentClassName$1} {
16164
16292
  width: 100%;
16165
16293
 
16166
16294
  .left {
@@ -16316,7 +16444,7 @@ const DotStepper = ({
16316
16444
  return ['left', 'right'].includes(stepsPosition) ? stepsPosition : 'left';
16317
16445
  }
16318
16446
  };
16319
- const rootClasses = useStylesWithRootClass(rootClassName$v, getStepsPosition(), className);
16447
+ const rootClasses = useStylesWithRootClass(rootClassName$x, getStepsPosition(), className);
16320
16448
  const stepContentClasses = displayInitialContent || displayFinalContent ? 'center-content' : '';
16321
16449
  const stickyBottomClasses = useStylesWithRootClass('actions-container', isStickyBottom ? 'with-top-border' : '');
16322
16450
  const actionsClasses = useStylesWithRootClass('actions', displayInitialContent || displayFinalContent ? 'center-actions' : '');
@@ -16411,7 +16539,7 @@ const DotStepper = ({
16411
16539
  };
16412
16540
  const renderContent = () => {
16413
16541
  return jsx("div", {
16414
- className: contentClassName,
16542
+ className: contentClassName$1,
16415
16543
  ref: stepperContentRef,
16416
16544
  children: jsxs(ScrollbarContainer, {
16417
16545
  offset: offset,
@@ -16534,12 +16662,12 @@ const DotStepper = ({
16534
16662
  });
16535
16663
  };
16536
16664
 
16537
- const rootClassName$u = 'dot-table-pagination-custom-actions';
16665
+ const rootClassName$w = 'dot-table-pagination-custom-actions';
16538
16666
  const StyledTablePaginationCustomActions = styled.div`
16539
16667
  ${({
16540
16668
  theme
16541
16669
  }) => css`
16542
- &.${rootClassName$u} {
16670
+ &.${rootClassName$w} {
16543
16671
  margin-left: ${theme.spacing(2.5)};
16544
16672
  display: flex;
16545
16673
  align-items: center;
@@ -16663,7 +16791,7 @@ const DotTablePaginationCustomActions = props => {
16663
16791
  });
16664
16792
  };
16665
16793
  return jsxs(StyledTablePaginationCustomActions, {
16666
- className: rootClassName$u,
16794
+ className: rootClassName$w,
16667
16795
  children: [jsx(DotIconButton, {
16668
16796
  ariaLabel: "previous page",
16669
16797
  className: "page-control-button",
@@ -16710,7 +16838,7 @@ const DotTablePaginationCustomActions = props => {
16710
16838
  });
16711
16839
  };
16712
16840
 
16713
- const rootClassName$t = 'dot-table-pagination';
16841
+ const rootClassName$v = 'dot-table-pagination';
16714
16842
  // TO-DO: Determine how to apply styles to standard popper element
16715
16843
  const paginationItemClassName = 'dot-pagination-menu-item';
16716
16844
  const StyledTablePagination = styled.div`
@@ -16718,7 +16846,7 @@ const StyledTablePagination = styled.div`
16718
16846
  theme,
16719
16847
  typography
16720
16848
  }) => css`
16721
- .${rootClassName$t} {
16849
+ .${rootClassName$v} {
16722
16850
  border-top: 1px solid ${theme.palette.figma.border.default};
16723
16851
 
16724
16852
  .dot-caption,
@@ -16761,7 +16889,7 @@ const DotTablePagination = ({
16761
16889
  showJumpToPageActionButton = false,
16762
16890
  typography = 'subtitle2'
16763
16891
  }) => {
16764
- const rootClasses = useStylesWithRootClass(rootClassName$t, className, showJumpToPageActionButton ? 'with-custom-actions' : '');
16892
+ const rootClasses = useStylesWithRootClass(rootClassName$v, className, showJumpToPageActionButton ? 'with-custom-actions' : '');
16765
16893
  const handlePageChange = (event, newPage) => {
16766
16894
  onPageChange && onPageChange(newPage);
16767
16895
  };
@@ -16769,7 +16897,7 @@ const DotTablePagination = ({
16769
16897
  onRowsPerPageChange && onRowsPerPageChange(evt);
16770
16898
  };
16771
16899
  return /* Container is used to pass 'typography' prop to a styled component */jsx(StyledTablePagination, {
16772
- className: rootClassName$t,
16900
+ className: rootClassName$v,
16773
16901
  typography: typography,
16774
16902
  children: jsx(TablePagination, {
16775
16903
  ActionsComponent: showJumpToPageActionButton ? DotTablePaginationCustomActions : undefined,
@@ -16795,14 +16923,14 @@ const DotTablePagination = ({
16795
16923
  });
16796
16924
  };
16797
16925
 
16798
- const rootClassName$s = 'dot-table';
16926
+ const rootClassName$u = 'dot-table';
16799
16927
  const MULTISELECT_COLUMN_WIDTH = 52;
16800
16928
  const COLLAPSIBLE_COLUMN_WIDTH = 42;
16801
16929
  const StyledPaper$1 = styled(Paper)`
16802
16930
  ${({
16803
16931
  theme
16804
16932
  }) => css`
16805
- &.${rootClassName$s} {
16933
+ &.${rootClassName$u} {
16806
16934
  background: ${theme.palette.figma.background.level0.componentsBackground};
16807
16935
  border: 1px solid ${theme.palette.figma.border.default};
16808
16936
  overflow: hidden;
@@ -16945,10 +17073,10 @@ const StyledMenu$1 = styled(DotMenu)`
16945
17073
  }
16946
17074
  `;
16947
17075
 
16948
- const rootClassName$r = 'dot-tbody';
17076
+ const rootClassName$t = 'dot-tbody';
16949
17077
  const StyledTableBody = styled(TableBody)`
16950
17078
  ${() => css`
16951
- &.${rootClassName$r} {
17079
+ &.${rootClassName$t} {
16952
17080
  tr:last-child td {
16953
17081
  border-bottom: none;
16954
17082
  }
@@ -17143,12 +17271,12 @@ function stableSort(array, comparator) {
17143
17271
  return stabilizedThis.map(el => el[0]);
17144
17272
  }
17145
17273
 
17146
- const rootClassName$q = 'dot-td';
17274
+ const rootClassName$s = 'dot-td';
17147
17275
  const StyledTableCell = styled(TableCell)`
17148
17276
  ${({
17149
17277
  theme
17150
17278
  }) => css`
17151
- &.${rootClassName$q} {
17279
+ &.${rootClassName$s} {
17152
17280
  padding-top: 0;
17153
17281
  padding-bottom: 0;
17154
17282
 
@@ -17243,7 +17371,7 @@ const DotBodyCell = ({
17243
17371
  const isOverflowing = actionTableCellWidth > (wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current.clientWidth);
17244
17372
  setShowMenu(isOverflowing);
17245
17373
  };
17246
- const rootClasses = useStylesWithRootClass(rootClassName$q, className, noWrap && 'noWrap', Array.isArray(value) && 'actionItems');
17374
+ const rootClasses = useStylesWithRootClass(rootClassName$s, className, noWrap && 'noWrap', Array.isArray(value) && 'actionItems');
17247
17375
  const getTableCellValue = () => {
17248
17376
  if (Array.isArray(value)) {
17249
17377
  return jsx("div", {
@@ -17311,13 +17439,13 @@ const EmptyDotRow = ({
17311
17439
  const TABLE_TYPOGRAPHY_VARIANT = 'body1';
17312
17440
  const TABLE_DEFAULT_SKELETON_ROWS = 4;
17313
17441
 
17314
- const rootClassName$p = 'dot-th-checkbox';
17442
+ const rootClassName$r = 'dot-th-checkbox';
17315
17443
  const styledTableHeaderCheckboxElement = (isCell = true) => {
17316
17444
  return styled(isCell ? TableCell : 'div')`
17317
17445
  ${({
17318
17446
  theme
17319
17447
  }) => css`
17320
- &.${rootClassName$p} {
17448
+ &.${rootClassName$r} {
17321
17449
  background: ${theme.palette.figma.background.level0.componentsBackground};
17322
17450
  padding: ${theme.spacing(0, 1)};
17323
17451
  width: ${theme.spacing(5)};
@@ -17345,7 +17473,7 @@ const DotHeaderCheckboxCell = ({
17345
17473
  isFromTableSelectionToolbar,
17346
17474
  multiSelectHeader
17347
17475
  }) => {
17348
- const rootClasses = useStylesWithRootClass(rootClassName$p, className, isFromTableSelectionToolbar ? 'table-selection-toolbar-checkbox' : '');
17476
+ const rootClasses = useStylesWithRootClass(rootClassName$r, className, isFromTableSelectionToolbar ? 'table-selection-toolbar-checkbox' : '');
17349
17477
  const [multiSelectState, setMultiSelectState] = useState('unchecked');
17350
17478
  const {
17351
17479
  onCheckAllChange,
@@ -17395,12 +17523,12 @@ const DotHeaderCheckboxCell = ({
17395
17523
  });
17396
17524
  };
17397
17525
 
17398
- const rootClassName$o = 'dot-th';
17526
+ const rootClassName$q = 'dot-th';
17399
17527
  const StyledTableHeaderCell = styled(TableCell)`
17400
17528
  ${({
17401
17529
  theme
17402
17530
  }) => css`
17403
- &.${rootClassName$o} {
17531
+ &.${rootClassName$q} {
17404
17532
  background: ${theme.palette.figma.background.level0.componentsBackground};
17405
17533
 
17406
17534
  &.MuiTableCell-alignCenter > span.MuiTableSortLabel-root {
@@ -17440,7 +17568,7 @@ const DotHeaderCell = ({
17440
17568
  value,
17441
17569
  width
17442
17570
  }) => {
17443
- const rootClasses = useStylesWithRootClass(rootClassName$o, pinned ? 'dot-pinned-cell' : '', className);
17571
+ const rootClasses = useStylesWithRootClass(rootClassName$q, pinned ? 'dot-pinned-cell' : '', className);
17444
17572
  const headerTitle = isString$2(value) ? value : null;
17445
17573
  const formattedValue = getFormattedTableCellValue(value, typography);
17446
17574
  const getCellValue = () => {
@@ -17531,12 +17659,12 @@ const DotHeaderRow = ({
17531
17659
  });
17532
17660
  };
17533
17661
 
17534
- const rootClassName$n = 'dot-tr';
17662
+ const rootClassName$p = 'dot-tr';
17535
17663
  const StyledTableRowStyles = styled(TableRow)`
17536
17664
  ${({
17537
17665
  theme
17538
17666
  }) => css`
17539
- &.${rootClassName$n} {
17667
+ &.${rootClassName$p} {
17540
17668
  &.selected {
17541
17669
  &,
17542
17670
  .dot-td.dot-pinned-cell,
@@ -17762,12 +17890,12 @@ const ExpandCollapseCell = ({
17762
17890
  });
17763
17891
  };
17764
17892
 
17765
- const rootClassName$m = 'dot-td-checkbox';
17893
+ const rootClassName$o = 'dot-td-checkbox';
17766
17894
  const StyledTableBodyCheckboxCell = styled(TableCell)`
17767
17895
  ${({
17768
17896
  theme
17769
17897
  }) => css`
17770
- &.${rootClassName$m} {
17898
+ &.${rootClassName$o} {
17771
17899
  padding: ${theme.spacing(0, 1)};
17772
17900
  width: ${theme.spacing(5)};
17773
17901
 
@@ -17786,7 +17914,7 @@ const DotBodyCheckboxCell = ({
17786
17914
  onChange,
17787
17915
  rowId
17788
17916
  }) => {
17789
- const rootClasses = useStylesWithRootClass(rootClassName$m, className);
17917
+ const rootClasses = useStylesWithRootClass(rootClassName$o, className);
17790
17918
  const [isCheckboxChecked, setIsCheckboxChecked] = useState(isChecked);
17791
17919
  /** This effect is used when 'checked' status is changed from the outside */
17792
17920
  useEffect(() => {
@@ -17839,7 +17967,7 @@ const DotTableRow = ({
17839
17967
  selectedTableRowIds
17840
17968
  } = multiSelectBody || {};
17841
17969
  const isCheckboxChecked = selectedTableRowIds && selectedTableRowIds.includes(id) || false;
17842
- const rootClasses = useStylesWithRootClass(rootClassName$n, isCheckboxChecked ? 'selected' : undefined, className);
17970
+ const rootClasses = useStylesWithRootClass(rootClassName$p, isCheckboxChecked ? 'selected' : undefined, className);
17843
17971
  const renderCheckboxCell = () => {
17844
17972
  return jsx(DotBodyCheckboxCell, {
17845
17973
  ariaLabel: "Click to select this row",
@@ -17960,7 +18088,7 @@ const DotTableBody = ({
17960
18088
  return jsxs(Fragment, {
17961
18089
  children: [jsx(StyledTableBody, {
17962
18090
  classes: {
17963
- root: rootClassName$r
18091
+ root: rootClassName$t
17964
18092
  },
17965
18093
  children: getTableBodyRows()
17966
18094
  }), jsx(StyledMenu$1, {
@@ -17975,12 +18103,12 @@ const DotTableBody = ({
17975
18103
  });
17976
18104
  };
17977
18105
 
17978
- const rootClassName$l = 'dot-table-selection-toolbar';
18106
+ const rootClassName$n = 'dot-table-selection-toolbar';
17979
18107
  const StyledTableSelectionToolbar = styled(DotActionToolbar)`
17980
18108
  ${({
17981
18109
  theme
17982
18110
  }) => css`
17983
- &.${rootClassName$l} {
18111
+ &.${rootClassName$n} {
17984
18112
  display: flex;
17985
18113
  align-items: center;
17986
18114
  justify-content: space-between;
@@ -18035,7 +18163,7 @@ const DotTableSelectionToolbar = ({
18035
18163
  multiSelectHeader,
18036
18164
  selectedRowsNumber
18037
18165
  }) => {
18038
- const rootClasses = useStylesWithRootClass(rootClassName$l, className);
18166
+ const rootClasses = useStylesWithRootClass(rootClassName$n, className);
18039
18167
  return jsxs(StyledTableSelectionToolbar, {
18040
18168
  ariaLabel: ariaLabel,
18041
18169
  className: rootClasses,
@@ -18121,7 +18249,7 @@ const DotTable = ({
18121
18249
  setPage(page);
18122
18250
  }
18123
18251
  }, [page]);
18124
- const rootClasses = useStylesWithRootClass(rootClassName$s, className, loading ? 'loading' : '', showMultiselectOverTableHeaderRow ? 'with-multiselect-over-table-header' : '', showMultiselectOverTableHeaderRow && !selectedRowsNumber ? 'hidden-multiselect' : '');
18252
+ const rootClasses = useStylesWithRootClass(rootClassName$u, className, loading ? 'loading' : '', showMultiselectOverTableHeaderRow ? 'with-multiselect-over-table-header' : '', showMultiselectOverTableHeaderRow && !selectedRowsNumber ? 'hidden-multiselect' : '');
18125
18253
  const updateData = (newOrder, newOrderBy, newPage, newRowsPerPage) => {
18126
18254
  const newData = stableSort(data, getComparator(newOrder, newOrderBy));
18127
18255
  setPageData(newRowsPerPage ? newData.slice(newPage * newRowsPerPage, newPage * newRowsPerPage + newRowsPerPage) : newData);
@@ -18324,7 +18452,7 @@ const DotTableAction = ({
18324
18452
  });
18325
18453
  };
18326
18454
 
18327
- const rootClassName$k = 'dot-table-actions';
18455
+ const rootClassName$m = 'dot-table-actions';
18328
18456
  const TableActionsContainer = styled.div`
18329
18457
  overflow: hidden;
18330
18458
  text-overflow: clip;
@@ -18414,7 +18542,7 @@ const DotTableActions = ({
18414
18542
  };
18415
18543
  return jsxs(Fragment, {
18416
18544
  children: [jsxs(TableActionsContainer, {
18417
- className: rootClassName$k,
18545
+ className: rootClassName$m,
18418
18546
  ref: wrapperRef,
18419
18547
  children: [!showMenu && renderTableActions(), (showMenu || actions.length > 2) && jsx(DotIconButton, {
18420
18548
  ariaLabel: "more options",
@@ -18438,12 +18566,12 @@ const DotTableActions = ({
18438
18566
  });
18439
18567
  };
18440
18568
 
18441
- const rootClassName$j = 'dot-tabs';
18569
+ const rootClassName$l = 'dot-tabs';
18442
18570
  const StyledTabs = styled(Tabs)`
18443
18571
  ${({
18444
18572
  theme
18445
18573
  }) => css`
18446
- &.${rootClassName$j} {
18574
+ &.${rootClassName$l} {
18447
18575
  &.MuiTabs-root {
18448
18576
  width: 100%;
18449
18577
  }
@@ -18496,7 +18624,7 @@ const DotTabs = ({
18496
18624
  centered = false,
18497
18625
  className,
18498
18626
  color,
18499
- 'data-pendoid': dataPendoId = rootClassName$j,
18627
+ 'data-pendoid': dataPendoId = rootClassName$l,
18500
18628
  'data-testid': dataTestId,
18501
18629
  initialValue = 0,
18502
18630
  onChange,
@@ -18505,7 +18633,7 @@ const DotTabs = ({
18505
18633
  variant = 'standard'
18506
18634
  }) => {
18507
18635
  const [value, setValue] = useState(initialValue);
18508
- const rootClasses = useStylesWithRootClass(rootClassName$j, className);
18636
+ const rootClasses = useStylesWithRootClass(rootClassName$l, className);
18509
18637
  useEffect(() => {
18510
18638
  if (color) {
18511
18639
  console.warn('DEPRECATED: `color` prop is deprecated in `<DotTabs>`, please remove any usage of it in your application.');
@@ -18559,9 +18687,9 @@ const DotTabs = ({
18559
18687
  });
18560
18688
  };
18561
18689
 
18562
- const rootClassName$i = 'dot-file-upload';
18563
- const containerClassName = `${rootClassName$i}-container`;
18564
- const dropZoneClassName = `${rootClassName$i}-drop-zone`;
18690
+ const rootClassName$k = 'dot-file-upload';
18691
+ const containerClassName = `${rootClassName$k}-container`;
18692
+ const dropZoneClassName = `${rootClassName$k}-drop-zone`;
18565
18693
  const StyledFileUploadContainer = styled.div`
18566
18694
  ${({
18567
18695
  theme
@@ -18581,7 +18709,7 @@ const StyledFileUpload = styled.div`
18581
18709
  ${({
18582
18710
  theme
18583
18711
  }) => css`
18584
- &.${rootClassName$i}.${dropZoneClassName} {
18712
+ &.${rootClassName$k}.${dropZoneClassName} {
18585
18713
  align-items: center;
18586
18714
  background: ${theme.palette.figma.background.level0.bckgGray};
18587
18715
  border: 2px dashed ${theme.palette.figma.border.defaultButton};
@@ -18613,12 +18741,12 @@ const StyledFileUpload = styled.div`
18613
18741
  `}
18614
18742
  `;
18615
18743
 
18616
- const rootClassName$h = 'dot-file-list-item';
18744
+ const rootClassName$j = 'dot-file-list-item';
18617
18745
  const StyledFileListItem = styled(StyledListItem)`
18618
18746
  ${({
18619
18747
  theme
18620
18748
  }) => css`
18621
- &.${rootClassName$h} {
18749
+ &.${rootClassName$j} {
18622
18750
  border-bottom: 1px solid ${theme.palette.figma.border.default};
18623
18751
  &:hover {
18624
18752
  cursor: pointer;
@@ -18630,7 +18758,7 @@ const StyledFileListItem = styled(StyledListItem)`
18630
18758
  outline: none;
18631
18759
  }
18632
18760
 
18633
- &.file-success:not(:hover, :focus-visible) .${rootClassName$h}-end-icon {
18761
+ &.file-success:not(:hover, :focus-visible) .${rootClassName$j}-end-icon {
18634
18762
  i:before {
18635
18763
  color: ${theme.palette.figma.success.normal};
18636
18764
  }
@@ -18640,7 +18768,7 @@ const StyledFileListItem = styled(StyledListItem)`
18640
18768
  }
18641
18769
  }
18642
18770
 
18643
- &.file-error:not(:hover, :focus-visible) .${rootClassName$h}-end-icon {
18771
+ &.file-error:not(:hover, :focus-visible) .${rootClassName$j}-end-icon {
18644
18772
  i:before,
18645
18773
  .MuiListItemText-secondary {
18646
18774
  color: ${theme.palette.figma.destructive.normal};
@@ -18682,7 +18810,7 @@ const DotFileListItem = ({
18682
18810
  onKeyPress,
18683
18811
  tabIndex = 0
18684
18812
  }) => {
18685
- const rootClasses = useStylesWithRootClass(rootClassName$h, className, error ? 'file-error' : 'file-success');
18813
+ const rootClasses = useStylesWithRootClass(rootClassName$j, className, error ? 'file-error' : 'file-success');
18686
18814
  const defaultIcon = error ? 'error-solid' : 'check-solid';
18687
18815
  const [endIcon, setEndIcon] = useState(defaultIcon);
18688
18816
  const handleItemClick = clickedFile => _event => onClick === null || onClick === void 0 ? void 0 : onClick(clickedFile);
@@ -18715,7 +18843,7 @@ const DotFileListItem = ({
18715
18843
  })]
18716
18844
  }), jsx(DotIconButton, {
18717
18845
  ariaLabel: "delete file",
18718
- className: `${rootClassName$h}-end-icon`,
18846
+ className: `${rootClassName$j}-end-icon`,
18719
18847
  "data-testid": dataTestId && `${dataTestId}-end-icon`,
18720
18848
  disabled: disableDelete,
18721
18849
  iconId: endIcon,
@@ -18839,7 +18967,7 @@ const DotFileUpload = ({
18839
18967
  buttonOnly = false,
18840
18968
  className,
18841
18969
  contentErrors,
18842
- 'data-pendoid': dataPendoId = rootClassName$i,
18970
+ 'data-pendoid': dataPendoId = rootClassName$k,
18843
18971
  'data-testid': dataTestId,
18844
18972
  disabled,
18845
18973
  hideFilesList,
@@ -18852,7 +18980,7 @@ const DotFileUpload = ({
18852
18980
  const [uploadedFiles, setUploadedFiles] = useState([]);
18853
18981
  const [hasMaxFilesError, setHasMaxFilesError] = useState(false);
18854
18982
  const isUploadDisabled = disabled || maxFiles && uploadedFiles.length >= maxFiles;
18855
- const rootClasses = useStylesWithRootClass(rootClassName$i, className, !buttonOnly ? dropZoneClassName : '', isUploadDisabled ? 'disabled' : '');
18983
+ const rootClasses = useStylesWithRootClass(rootClassName$k, className, !buttonOnly ? dropZoneClassName : '', isUploadDisabled ? 'disabled' : '');
18856
18984
  const maxFilesClasses = useStylesWithRootClass('dot-max-files-message', hasMaxFilesError ? 'dot-max-files-reached' : '');
18857
18985
  const allowMultiple = maxFiles === undefined || maxFiles > 1;
18858
18986
  const setNewlyUploadedFiles = (acceptedFiles, fileRejections) => {
@@ -18924,13 +19052,13 @@ const DotFileUpload = ({
18924
19052
  });
18925
19053
  };
18926
19054
 
18927
- const rootClassName$g = 'dot-fab';
19055
+ const rootClassName$i = 'dot-fab';
18928
19056
  const StyledFab = styled(Fab)`
18929
19057
  ${({
18930
19058
  theme,
18931
19059
  color
18932
19060
  }) => css`
18933
- &.${rootClassName$g} {
19061
+ &.${rootClassName$i} {
18934
19062
  ${color === 'default' ? css`
18935
19063
  background-color: ${theme.palette.figma.typography.white};
18936
19064
  color: ${theme.palette.figma.typography.black};
@@ -18970,7 +19098,7 @@ const DotFab = ({
18970
19098
  children,
18971
19099
  className,
18972
19100
  color = 'default',
18973
- 'data-pendoid': dataPendoId = rootClassName$g,
19101
+ 'data-pendoid': dataPendoId = rootClassName$i,
18974
19102
  'data-testid': dataTestId,
18975
19103
  disableRipple = false,
18976
19104
  disabled = false,
@@ -18978,7 +19106,7 @@ const DotFab = ({
18978
19106
  size = 'large',
18979
19107
  variant = 'circular'
18980
19108
  }) => {
18981
- const rootClasses = useStylesWithRootClass(rootClassName$g, className);
19109
+ const rootClasses = useStylesWithRootClass(rootClassName$i, className);
18982
19110
  return jsx(StyledFab, {
18983
19111
  "aria-label": ariaLabel,
18984
19112
  color: color,
@@ -18994,12 +19122,12 @@ const DotFab = ({
18994
19122
  });
18995
19123
  };
18996
19124
 
18997
- const rootClassName$f = 'dot-divider';
19125
+ const rootClassName$h = 'dot-divider';
18998
19126
  const StyledDivider = styled(Divider)`
18999
19127
  ${({
19000
19128
  theme
19001
19129
  }) => css`
19002
- &.${rootClassName$f} {
19130
+ &.${rootClassName$h} {
19003
19131
  color: ${theme.palette.figma.border.darker};
19004
19132
 
19005
19133
  .MuiDivider-light {
@@ -19019,7 +19147,7 @@ const DotDivider = ({
19019
19147
  orientation,
19020
19148
  variant
19021
19149
  }) => {
19022
- const rootClasses = useStylesWithRootClass(rootClassName$f, className);
19150
+ const rootClasses = useStylesWithRootClass(rootClassName$h, className);
19023
19151
  return jsx(StyledDivider, {
19024
19152
  absolute: absolute,
19025
19153
  "aria-label": ariaLabel,
@@ -19048,7 +19176,7 @@ const DotPopper = ({
19048
19176
  placement
19049
19177
  }) => {
19050
19178
  const [arrowRef, setArrowRef] = useState(null);
19051
- const rootClasses = useStylesWithRootClass(rootClassName$1h, className);
19179
+ const rootClasses = useStylesWithRootClass(rootClassName$1j, className);
19052
19180
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
19053
19181
  const handleClickAway = event => {
19054
19182
  if (onClickAway && (!anchorEl || !anchorEl.contains(event.currentTarget))) {
@@ -19113,14 +19241,14 @@ const getListItemLayout = listItems => {
19113
19241
  }));
19114
19242
  };
19115
19243
 
19116
- const rootClassName$e = 'dot-draggable-list';
19244
+ const rootClassName$g = 'dot-draggable-list';
19117
19245
  const listItemClassName = 'dot-draggable-list-item';
19118
19246
  const StyledDraggableList = styled.div`
19119
19247
  ${({
19120
19248
  theme,
19121
19249
  draggableHandle
19122
19250
  }) => css`
19123
- &.${rootClassName$e} {
19251
+ &.${rootClassName$g} {
19124
19252
  padding: ${theme.spacing(1, 0)};
19125
19253
  position: relative;
19126
19254
 
@@ -19155,7 +19283,7 @@ const ListGridLayout = WidthProvider(GridLayout);
19155
19283
  const DotDraggableList = ({
19156
19284
  ariaLabel,
19157
19285
  className,
19158
- 'data-pendoid': dataPendoId = rootClassName$e,
19286
+ 'data-pendoid': dataPendoId = rootClassName$g,
19159
19287
  'data-testid': dataTestId,
19160
19288
  disableDrag,
19161
19289
  draggableHandle,
@@ -19164,7 +19292,7 @@ const DotDraggableList = ({
19164
19292
  rowHeight = DEFAULT_LIST_ITEM_HEIGHT,
19165
19293
  width = DEFAULT_LIST_WIDTH
19166
19294
  }) => {
19167
- const rootClasses = useStylesWithRootClass(rootClassName$e, className, draggableHandle ? 'with-draggable-handle' : '');
19295
+ const rootClasses = useStylesWithRootClass(rootClassName$g, className, draggableHandle ? 'with-draggable-handle' : '');
19168
19296
  const listItemClasses = useStylesWithRootClass(listItemClassName, draggableHandle && !disableDrag ? 'with-handle-grab-cursor' : '', draggableHandle || disableDrag ? 'with-default-cursor' : '');
19169
19297
  const listWidth = isNumber(width) ? `${width}px` : width;
19170
19298
  const [orderedItems, setOrderedItems] = useState([]);
@@ -22440,7 +22568,7 @@ cjs.exports.DraggableCore = DraggableCore;
22440
22568
  var cjsExports = cjs.exports;
22441
22569
  var Draggable$1 = /*@__PURE__*/getDefaultExportFromCjs(cjsExports);
22442
22570
 
22443
- const rootClassName$d = 'dot-draggable-window';
22571
+ const rootClassName$f = 'dot-draggable-window';
22444
22572
  const defaultWidth = '600px';
22445
22573
  const defaultHeight = '324px';
22446
22574
  const StyledPaper = styled(Paper)`
@@ -22449,7 +22577,7 @@ const StyledPaper = styled(Paper)`
22449
22577
  $maxHeight,
22450
22578
  $maxWidth
22451
22579
  }) => css`
22452
- &.${rootClassName$d} {
22580
+ &.${rootClassName$f} {
22453
22581
  max-width: ${$maxWidth !== null && $maxWidth !== void 0 ? $maxWidth : defaultWidth};
22454
22582
  max-height: ${$maxHeight !== null && $maxHeight !== void 0 ? $maxHeight : defaultHeight};
22455
22583
  ${$maxWidth ? '' : `width: ${defaultWidth};`}
@@ -22487,7 +22615,7 @@ const StyledPaper = styled(Paper)`
22487
22615
  const DotDraggableWindow = ({
22488
22616
  ariaLabel,
22489
22617
  anchorEl,
22490
- 'data-pendoid': dataPendoId = rootClassName$d,
22618
+ 'data-pendoid': dataPendoId = rootClassName$f,
22491
22619
  'data-testid': dataTestId,
22492
22620
  className,
22493
22621
  children,
@@ -22496,7 +22624,7 @@ const DotDraggableWindow = ({
22496
22624
  onClose,
22497
22625
  title
22498
22626
  }) => {
22499
- const rootClasses = useStylesWithRootClass(rootClassName$d, className);
22627
+ const rootClasses = useStylesWithRootClass(rootClassName$f, className);
22500
22628
  const nodeRef = useRef(null);
22501
22629
  return jsx(Draggable$1, {
22502
22630
  bounds: "body",
@@ -22538,12 +22666,12 @@ const DotDraggableWindow = ({
22538
22666
  });
22539
22667
  };
22540
22668
 
22541
- const rootClassName$c = 'dot-linear-progress';
22669
+ const rootClassName$e = 'dot-linear-progress';
22542
22670
  const StyledLinearProgress = styled(LinearProgress)`
22543
22671
  ${({
22544
22672
  theme
22545
22673
  }) => css`
22546
- &.${rootClassName$c} {
22674
+ &.${rootClassName$e} {
22547
22675
  &.MuiLinearProgress-colorError {
22548
22676
  color: ${theme.palette.figma.inProgress.error};
22549
22677
  }
@@ -22575,7 +22703,7 @@ const DotLinearProgress = ({
22575
22703
  valueBuffer,
22576
22704
  variant = 'indeterminate'
22577
22705
  }) => {
22578
- const rootClasses = useStylesWithRootClass(rootClassName$c, className);
22706
+ const rootClasses = useStylesWithRootClass(rootClassName$e, className);
22579
22707
  useEffect(() => {
22580
22708
  if (!ariaLabel) {
22581
22709
  console.warn('a11y: DotLinearProgress must have an ariaLabel to describe the progress bar');
@@ -22626,7 +22754,7 @@ const DotDatePicker = ({
22626
22754
  autoFocus = false,
22627
22755
  className,
22628
22756
  closeOnSelect = true,
22629
- 'data-pendoid': dataPendoId = rootClassName$G,
22757
+ 'data-pendoid': dataPendoId = rootClassName$I,
22630
22758
  'data-testid': dataTestId,
22631
22759
  defaultValue,
22632
22760
  disableOpenPicker,
@@ -22667,7 +22795,7 @@ const DotDatePicker = ({
22667
22795
  const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
22668
22796
  const isInputReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
22669
22797
  const inputRef = useRef(null);
22670
- const rootClasses = useStylesWithRootClass(rootClassName$G, className, isInputReadOnly ? 'read-only' : '');
22798
+ const rootClasses = useStylesWithRootClass(rootClassName$I, className, isInputReadOnly ? 'read-only' : '');
22671
22799
  const containerClasses = useStylesWithRootClass(containerClassName$2, fullWidth ? 'full-width' : '', className);
22672
22800
  const focusInput = ref => {
22673
22801
  setTimeout(() => {
@@ -22888,7 +23016,7 @@ const DotTimePicker = ({
22888
23016
  ariaLabel,
22889
23017
  autoFocus = false,
22890
23018
  className,
22891
- 'data-pendoid': dataPendoId = rootClassName$F,
23019
+ 'data-pendoid': dataPendoId = rootClassName$H,
22892
23020
  'data-testid': dataTestId,
22893
23021
  defaultValue,
22894
23022
  disableOpenPicker = false,
@@ -22920,7 +23048,7 @@ const DotTimePicker = ({
22920
23048
  const hasValueWithoutChangeHandler = value !== undefined && onChange === undefined;
22921
23049
  const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
22922
23050
  const isComponentReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
22923
- const rootClasses = useStylesWithRootClass(rootClassName$F, className, isComponentReadOnly ? 'read-only' : '');
23051
+ const rootClasses = useStylesWithRootClass(rootClassName$H, className, isComponentReadOnly ? 'read-only' : '');
22924
23052
  const containerClasses = useStylesWithRootClass(containerClassName$1, fullWidth ? 'full-width' : '', className);
22925
23053
  const inputRef = useRef(null);
22926
23054
  const [isPickerOpened, setIsPickerOpened] = useState(false);
@@ -23216,13 +23344,13 @@ const DotTimePicker = ({
23216
23344
  });
23217
23345
  };
23218
23346
 
23219
- const rootClassName$b = 'dot-carousel';
23347
+ const rootClassName$d = 'dot-carousel';
23220
23348
  const StyledCarousel = styled.div`
23221
23349
  ${({
23222
23350
  backgroundColor,
23223
23351
  theme
23224
23352
  }) => css`
23225
- &.${rootClassName$b} {
23353
+ &.${rootClassName$d} {
23226
23354
  display: flex;
23227
23355
  flex-direction: column;
23228
23356
  justify-content: space-between;
@@ -23322,7 +23450,7 @@ const DotCarousel = ({
23322
23450
  progressIndicator,
23323
23451
  showPagesButtons = true
23324
23452
  }) => {
23325
- const rootClasses = useStylesWithRootClass(rootClassName$b, className, backgroundColor ? 'with-background-color' : '');
23453
+ const rootClasses = useStylesWithRootClass(rootClassName$d, className, backgroundColor ? 'with-background-color' : '');
23326
23454
  const rightNavigationButtonClasses = useStylesWithRootClass('carousel-right-arrow', displayNavigationButtons);
23327
23455
  const leftNavigationButtonClasses = useStylesWithRootClass('carousel-left-arrow', displayNavigationButtons);
23328
23456
  const createUuids = () => {
@@ -23473,13 +23601,13 @@ const DotCarousel = ({
23473
23601
  });
23474
23602
  };
23475
23603
 
23476
- const rootClassName$a = 'dot-sticky-with-border';
23604
+ const rootClassName$c = 'dot-sticky-with-border';
23477
23605
  const StyledStickyWithBorder = styled.div`
23478
23606
  ${({
23479
23607
  pinnedStickyBorder,
23480
23608
  unpinnedStickyBorder
23481
23609
  }) => css`
23482
- &.${rootClassName$a} {
23610
+ &.${rootClassName$c} {
23483
23611
  position: sticky;
23484
23612
  top: -1px;
23485
23613
 
@@ -23507,7 +23635,7 @@ const DotStickyWithBorder = ({
23507
23635
  }) => {
23508
23636
  const [isPinned, setIsPinned] = useState(false);
23509
23637
  const ref = useRef(undefined);
23510
- const rootClasses = useStylesWithRootClass(rootClassName$a, className, isPinned ? 'pinned' : 'unpinned');
23638
+ const rootClasses = useStylesWithRootClass(rootClassName$c, className, isPinned ? 'pinned' : 'unpinned');
23511
23639
  useEffect(() => {
23512
23640
  const element = ref.current;
23513
23641
  const observer = new IntersectionObserver(([e]) => setIsPinned(e.intersectionRatio < 1), {
@@ -23529,18 +23657,18 @@ const DotStickyWithBorder = ({
23529
23657
  });
23530
23658
  };
23531
23659
 
23532
- const rootClassName$9 = 'dot--board';
23660
+ const rootClassName$b = 'dot--board';
23533
23661
  const classNames$5 = {
23534
- root: rootClassName$9,
23535
- spacingNormal: `${rootClassName$9}-normal`,
23536
- spacingDense: `${rootClassName$9}-dense`,
23537
- loading: `${rootClassName$9}-loading`
23662
+ root: rootClassName$b,
23663
+ spacingNormal: `${rootClassName$b}-normal`,
23664
+ spacingDense: `${rootClassName$b}-dense`,
23665
+ loading: `${rootClassName$b}-loading`
23538
23666
  };
23539
23667
  const StyledBoard = styled.div`
23540
23668
  ${({
23541
23669
  theme
23542
23670
  }) => css`
23543
- &.${rootClassName$9} {
23671
+ &.${rootClassName$b} {
23544
23672
  display: flex;
23545
23673
  overflow-x: auto;
23546
23674
  flex: 1;
@@ -23548,7 +23676,7 @@ const StyledBoard = styled.div`
23548
23676
  }
23549
23677
 
23550
23678
  @media (max-width: 650px) {
23551
- &.${rootClassName$9} {
23679
+ &.${rootClassName$b} {
23552
23680
  justify-content: center;
23553
23681
  }
23554
23682
  }
@@ -23649,18 +23777,18 @@ const Board = React__default.forwardRef(({
23649
23777
  });
23650
23778
  });
23651
23779
 
23652
- const rootClassName$8 = 'dot--board-column';
23780
+ const rootClassName$a = 'dot--board-column';
23653
23781
  const classNames$4 = {
23654
- root: rootClassName$8,
23655
- spacingNormal: `${rootClassName$8}-normal`,
23656
- spacingDense: `${rootClassName$8}-dense`,
23657
- collapse: `${rootClassName$8}-collapse`
23782
+ root: rootClassName$a,
23783
+ spacingNormal: `${rootClassName$a}-normal`,
23784
+ spacingDense: `${rootClassName$a}-dense`,
23785
+ collapse: `${rootClassName$a}-collapse`
23658
23786
  };
23659
23787
  const StyledBoardColumn = styled.div`
23660
23788
  ${({
23661
23789
  theme
23662
23790
  }) => css`
23663
- &.${rootClassName$8} {
23791
+ &.${rootClassName$a} {
23664
23792
  display: flex;
23665
23793
  flex-direction: column;
23666
23794
  overflow: hidden;
@@ -23751,13 +23879,13 @@ const BoardColumn = React__default.forwardRef(({
23751
23879
  });
23752
23880
  });
23753
23881
 
23754
- const rootClassName$7 = 'dot--board-column-header';
23882
+ const rootClassName$9 = 'dot--board-column-header';
23755
23883
  const classNames$3 = {
23756
- root: rootClassName$7,
23757
- spacingNormal: `${rootClassName$7}-normal`,
23758
- spacingDense: `${rootClassName$7}-dense`,
23759
- colorBar: `${rootClassName$7}-color-bar`,
23760
- title: `${rootClassName$7}-title`
23884
+ root: rootClassName$9,
23885
+ spacingNormal: `${rootClassName$9}-normal`,
23886
+ spacingDense: `${rootClassName$9}-dense`,
23887
+ colorBar: `${rootClassName$9}-color-bar`,
23888
+ title: `${rootClassName$9}-title`
23761
23889
  };
23762
23890
  const StyledBoardColumnHeader = styled.div`
23763
23891
  ${({
@@ -23825,11 +23953,11 @@ const BoardColumnHeader = ({
23825
23953
  });
23826
23954
  };
23827
23955
 
23828
- const rootClassName$6 = 'dot--board-column-items';
23956
+ const rootClassName$8 = 'dot--board-column-items';
23829
23957
  const classNames$2 = {
23830
- root: rootClassName$6,
23831
- spacingNormal: `${rootClassName$6}-normal`,
23832
- spacingDense: `${rootClassName$6}-dense`
23958
+ root: rootClassName$8,
23959
+ spacingNormal: `${rootClassName$8}-normal`,
23960
+ spacingDense: `${rootClassName$8}-dense`
23833
23961
  };
23834
23962
  const StyledBoardColumnItems = styled.div`
23835
23963
  ${({
@@ -23881,11 +24009,11 @@ const BoardColumnItems = ({
23881
24009
  });
23882
24010
  };
23883
24011
 
23884
- const rootClassName$5 = 'dot--board-column-action-bar';
24012
+ const rootClassName$7 = 'dot--board-column-action-bar';
23885
24013
  const classNames$1 = {
23886
- root: rootClassName$5,
23887
- spacingNormal: `${rootClassName$5}-normal`,
23888
- spacingDense: `${rootClassName$5}-dense`
24014
+ root: rootClassName$7,
24015
+ spacingNormal: `${rootClassName$7}-normal`,
24016
+ spacingDense: `${rootClassName$7}-dense`
23889
24017
  };
23890
24018
  const StyledBoardColumnActionBar = styled(DotActionToolbar)`
23891
24019
  ${({
@@ -23956,13 +24084,13 @@ const BoardColumnCollapse = ({
23956
24084
  return useMemo(() => collapsed ? children : null, [children, collapsed]);
23957
24085
  };
23958
24086
 
23959
- const rootClassName$4 = 'dot--board-column-header';
24087
+ const rootClassName$6 = 'dot--board-column-header';
23960
24088
  const classNames = {
23961
- root: rootClassName$4,
23962
- spacingNormal: `${rootClassName$4}-normal`,
23963
- spacingDense: `${rootClassName$4}-dense`,
23964
- title: `${rootClassName$4}-title`,
23965
- text: `${rootClassName$4}-text`
24089
+ root: rootClassName$6,
24090
+ spacingNormal: `${rootClassName$6}-normal`,
24091
+ spacingDense: `${rootClassName$6}-dense`,
24092
+ title: `${rootClassName$6}-title`,
24093
+ text: `${rootClassName$6}-text`
23966
24094
  };
23967
24095
  const StyledBoardColumnSummary = styled.div`
23968
24096
  ${({
@@ -24024,12 +24152,12 @@ const BoardColumnSummary = ({
24024
24152
  });
24025
24153
  };
24026
24154
 
24027
- const rootClassName$3 = 'dot-search';
24155
+ const rootClassName$5 = 'dot-search';
24028
24156
  const StyledSearch = styled(DotInputText)`
24029
24157
  ${({
24030
24158
  theme
24031
24159
  }) => css`
24032
- &.${rootClassName$3} {
24160
+ &.${rootClassName$5} {
24033
24161
  &.with-value .MuiInputBase-root {
24034
24162
  background-color: ${theme.palette.figma.primary.light};
24035
24163
 
@@ -24072,7 +24200,7 @@ const DotSearch = _a => {
24072
24200
  value
24073
24201
  } = _a,
24074
24202
  rest = __rest(_a, ["ariaLabel", "className", 'data-testid', "disabled", "hasDebounce", "id", "name", "onSearch", "onClear", "placeholder", "value"]);
24075
- const rootClasses = useStylesWithRootClass(rootClassName$3, className, value ? 'with-value' : '');
24203
+ const rootClasses = useStylesWithRootClass(rootClassName$5, className, value ? 'with-value' : '');
24076
24204
  return jsx(StyledSearch, Object.assign({}, rest, {
24077
24205
  "aria-label": ariaLabel,
24078
24206
  className: rootClasses,
@@ -24091,12 +24219,12 @@ const DotSearch = _a => {
24091
24219
  }));
24092
24220
  };
24093
24221
 
24094
- const rootClassName$2 = 'dot-toggle-switch';
24222
+ const rootClassName$4 = 'dot-toggle-switch';
24095
24223
  const StyledToggleSwitch = styled(Stack)`
24096
24224
  ${({
24097
24225
  theme
24098
24226
  }) => css`
24099
- &.${rootClassName$2} {
24227
+ &.${rootClassName$4} {
24100
24228
  gap: ${theme.spacing(2)};
24101
24229
  cursor: pointer;
24102
24230
 
@@ -24150,7 +24278,7 @@ const StyledToggleSwitch = styled(Stack)`
24150
24278
  const DotToggleSwitch = ({
24151
24279
  ariaLabel,
24152
24280
  className,
24153
- 'data-pendoid': dataPendoId = rootClassName$2,
24281
+ 'data-pendoid': dataPendoId = rootClassName$4,
24154
24282
  'data-testid': dataTestId,
24155
24283
  disabled = false,
24156
24284
  label,
@@ -24160,7 +24288,7 @@ const DotToggleSwitch = ({
24160
24288
  }) => {
24161
24289
  const toggleOptions = options.slice(0, 2);
24162
24290
  const isChecked = toggleOptions[1].value === value;
24163
- const rootClasses = useStylesWithRootClass(rootClassName$2, className, disabled ? 'dot-disabled' : '');
24291
+ const rootClasses = useStylesWithRootClass(rootClassName$4, className, disabled ? 'dot-disabled' : '');
24164
24292
  const toggleValue = () => {
24165
24293
  const [firstOption, secondOption] = toggleOptions;
24166
24294
  const newValue = value === firstOption.value ? secondOption.value : firstOption.value;
@@ -25429,13 +25557,13 @@ var Sketch = /*#__PURE__*/React__default.forwardRef((props, ref) => {
25429
25557
  });
25430
25558
  Sketch.displayName = 'Sketch';
25431
25559
 
25432
- const rootClassName$1 = 'dot-color-picker';
25560
+ const rootClassName$3 = 'dot-color-picker';
25433
25561
  const StyledColorPicker = styled(Sketch)`
25434
25562
  ${({
25435
25563
  theme,
25436
25564
  $hideShadow
25437
25565
  }) => css`
25438
- &.${rootClassName$1} {
25566
+ &.${rootClassName$3} {
25439
25567
  --sketch-background: ${theme.palette.figma.background.level0.componentsBackground} !important;
25440
25568
  --sketch-swatch-border-top: none !important;
25441
25569
  --sketch-box-shadow: ${theme.shadows[1]} !important;
@@ -25491,7 +25619,7 @@ const DotColorPicker = ({
25491
25619
  return jsx(StyledColorPicker, {
25492
25620
  "$hideShadow": hideShadow,
25493
25621
  "aria-label": ariaLabel,
25494
- className: rootClassName$1,
25622
+ className: rootClassName$3,
25495
25623
  color: color,
25496
25624
  "data-pendoid": dataPendoId,
25497
25625
  "data-testid": dataTestId,
@@ -25506,14 +25634,14 @@ const DotColorPicker = ({
25506
25634
  });
25507
25635
  };
25508
25636
 
25509
- const rootClassName = 'dot-select';
25637
+ const rootClassName$2 = 'dot-select';
25510
25638
  const StyledSelectContainer = styled.div`
25511
25639
  ${({
25512
25640
  theme,
25513
25641
  size,
25514
25642
  persistentLabel
25515
25643
  }) => css`
25516
- &.${rootClassName} {
25644
+ &.${rootClassName$2} {
25517
25645
  .MuiInputBase-root {
25518
25646
  background: ${theme.palette.figma.neutral.normal};
25519
25647
  height: ${theme.spacing(7)};
@@ -25562,7 +25690,7 @@ const DotSelect = ({
25562
25690
  autoFocus,
25563
25691
  className,
25564
25692
  defaultValue = '',
25565
- 'data-pendoid': dataPendoId = rootClassName,
25693
+ 'data-pendoid': dataPendoId = rootClassName$2,
25566
25694
  'data-testid': dataTestId,
25567
25695
  disabled = false,
25568
25696
  error = false,
@@ -25586,7 +25714,7 @@ const DotSelect = ({
25586
25714
  options,
25587
25715
  renderOption
25588
25716
  }) => {
25589
- const rootStyles = useStylesWithRootClass(rootClassName, className);
25717
+ const rootStyles = useStylesWithRootClass(rootClassName$2, className);
25590
25718
  return jsxs(StyledSelectContainer, {
25591
25719
  persistentLabel: persistentLabel,
25592
25720
  size: size,
@@ -25646,4 +25774,175 @@ const DotSelect = ({
25646
25774
  });
25647
25775
  };
25648
25776
 
25649
- export { ApiError$1 as ApiError, BoardStatusProvider, Cell, ColumnStatusProvider, CreateUUID, CssCell, CssGrid, CssGridDebug, DashboardAppTypeOptions, DashboardAppTypeToLabelMap, 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, DotColorPicker, DotConfirmationDialog, DotCopyButton, DotCoreApiProvider, DotDashboardActions, DotDashboardDetails, DotDashboardDialog, DotDashboardHeader, DotDashboardOptionsMenu, DotDashboardPublishConfirm, DotDashboardStatusPill, DotDatePicker, DotDialog, DotDivider, DotDraggableList, DotDraggableWindow, DotDrawer, DotDynamicForm, DotEmptyFilterState, DotEmptyState, DotFab, 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, DotSelect, 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 };
25777
+ const rootClassName$1 = 'dot-chat-bubble';
25778
+ const actionsClassName = 'dot-chat-bubble-actions';
25779
+ const contentClassName = 'dot-chat-bubble-content';
25780
+ const StyledChatBubble = styled.div`
25781
+ ${({
25782
+ theme,
25783
+ $orientation
25784
+ }) => css`
25785
+ &.${rootClassName$1} {
25786
+ display: flex;
25787
+ flex-direction: column;
25788
+ gap: ${theme.spacing(0.5)};
25789
+ width: fit-content;
25790
+
25791
+ .${contentClassName} {
25792
+ overflow-wrap: break-word;
25793
+ padding: ${theme.spacing(1, 2)};
25794
+ border-top-left-radius: ${$orientation === 'left' ? '0' : theme.spacing(2)};
25795
+ border-top-right-radius: ${$orientation === 'right' ? '0' : theme.spacing(2)};
25796
+ border-bottom-right-radius: ${theme.spacing(2)};
25797
+ border-bottom-left-radius: ${theme.spacing(2)};
25798
+
25799
+ &.default {
25800
+ background-color: ${theme.palette.figma.neutral.light};
25801
+ }
25802
+
25803
+ &.info {
25804
+ background-color: ${theme.palette.figma.primary.light};
25805
+ }
25806
+
25807
+ &.error {
25808
+ background-color: ${theme.palette.figma.destructive.light};
25809
+ }
25810
+
25811
+ &.warning {
25812
+ background-color: ${theme.palette.figma.warning.light};
25813
+ }
25814
+
25815
+ &.success {
25816
+ background-color: ${theme.palette.figma.success.light};
25817
+ }
25818
+
25819
+ &.none {
25820
+ padding: 0;
25821
+ background-color: transparent;
25822
+ }
25823
+ }
25824
+
25825
+ .${actionsClassName} {
25826
+ align-self: ${$orientation === 'left' ? 'flex-start' : 'flex-end'};
25827
+ }
25828
+ }
25829
+ `}
25830
+ `;
25831
+
25832
+ const DotChatBubble = ({
25833
+ actions,
25834
+ ariaLabel,
25835
+ ariaRole,
25836
+ className,
25837
+ children,
25838
+ 'data-testid': dataTestId,
25839
+ 'data-pendoid': dataPendoId,
25840
+ orientation,
25841
+ severity = 'default'
25842
+ }) => {
25843
+ const rootClasses = useStylesWithRootClass(rootClassName$1, className);
25844
+ const contentClasses = useStylesWithRootClass(contentClassName, severity);
25845
+ return jsxs(StyledChatBubble, {
25846
+ "aria-label": ariaLabel,
25847
+ className: rootClasses,
25848
+ "data-pendoid": dataPendoId,
25849
+ "data-testid": dataTestId,
25850
+ role: ariaRole,
25851
+ "$orientation": orientation,
25852
+ children: [jsx("div", {
25853
+ className: contentClasses,
25854
+ "data-testid": dataTestId && `${dataTestId}-content`,
25855
+ children: children
25856
+ }), actions && jsx("div", {
25857
+ className: actionsClassName,
25858
+ children: actions
25859
+ })]
25860
+ });
25861
+ };
25862
+
25863
+ const rootClassName = 'dot-loading-dots';
25864
+ const dotAnimation = y => keyframes`
25865
+ 0%,
25866
+ 100% {
25867
+ transform: translateY(0);
25868
+ }
25869
+ 50% {
25870
+ transform: translateY(${y}px);
25871
+ }
25872
+ `;
25873
+ const StyledLoadingDots = styled.div`
25874
+ ${({
25875
+ theme,
25876
+ $size,
25877
+ $duration,
25878
+ $count,
25879
+ $verticalOffset
25880
+ }) => {
25881
+ const dotSize = typeof $size === 'number' ? `${$size}px` : $size;
25882
+ const spacing = typeof $size === 'number' ? `${$size * 0.75}px` : '6px';
25883
+ return css`
25884
+ &.${rootClassName} {
25885
+ display: flex;
25886
+ align-items: center;
25887
+ gap: ${spacing};
25888
+
25889
+ .loading-dot {
25890
+ width: ${dotSize};
25891
+ height: ${dotSize};
25892
+ border-radius: 50%;
25893
+ background-color: ${theme.palette.figma.typography.black};
25894
+ animation: ${dotAnimation($verticalOffset)} ${$duration}s infinite
25895
+ ease-in-out;
25896
+
25897
+ ${Array.from({
25898
+ length: $count
25899
+ }, (_, i) => {
25900
+ return css`
25901
+ &:nth-child(${i + 1}) {
25902
+ animation-delay: ${$duration / $count * i}s;
25903
+ }
25904
+ `;
25905
+ })}
25906
+ }
25907
+ }
25908
+ `;
25909
+ }}
25910
+ `;
25911
+
25912
+ const DotLoadingDots = ({
25913
+ ariaLabel,
25914
+ className,
25915
+ count = 3,
25916
+ 'data-pendoid': dataPendoId = rootClassName,
25917
+ 'data-testid': dataTestId,
25918
+ size = 8,
25919
+ speed = 0.8,
25920
+ verticalOffset = -8
25921
+ }) => {
25922
+ const rootClasses = useStylesWithRootClass(rootClassName, className);
25923
+ useEffect(() => {
25924
+ if (!ariaLabel) {
25925
+ console.warn('a11y: LoadingDots should have an ariaLabel to describe the loading state');
25926
+ }
25927
+ }, []);
25928
+ const dotCount = Math.max(1, Math.min(count, 10));
25929
+ const animationDuration = 0.8 / speed;
25930
+ return jsx(StyledLoadingDots, {
25931
+ "aria-label": ariaLabel || 'Loading',
25932
+ className: rootClasses,
25933
+ "data-pendoid": dataPendoId,
25934
+ "data-testid": dataTestId,
25935
+ role: "status",
25936
+ "$size": size,
25937
+ "$duration": animationDuration,
25938
+ "$count": dotCount,
25939
+ "$verticalOffset": verticalOffset,
25940
+ children: Array.from({
25941
+ length: dotCount
25942
+ }, (_, i) => jsx("div", {
25943
+ className: "loading-dot"
25944
+ }, i))
25945
+ });
25946
+ };
25947
+
25948
+ export { ApiError$1 as ApiError, BoardStatusProvider, Cell, ColumnStatusProvider, CreateUUID, CssCell, CssGrid, CssGridDebug, DashboardAppTypeOptions, DashboardAppTypeToLabelMap, 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, DotChatBubble, DotCheckbox, DotCheckboxGroup, DotChip, DotChipList, DotClickAwayListener, DotColorPicker, DotConfirmationDialog, DotCopyButton, DotCoreApiProvider, DotDashboardActions, DotDashboardDetails, DotDashboardDialog, DotDashboardHeader, DotDashboardOptionsMenu, DotDashboardPublishConfirm, DotDashboardStatusPill, DotDatePicker, DotDialog, DotDivider, DotDraggableList, DotDraggableWindow, DotDrawer, DotDynamicForm, DotEmptyFilterState, DotEmptyState, DotFab, DotFileListItem, DotFileUpload, DotForm, DotFormGroup, DotHeaderRow, DotIcon, DotIconButton, DotIllustration, DotImpactDialog, DotInlineEdit, DotInputLabel, DotInputSelect, DotInputText, DotLinearProgress, DotLink, DotList, DotLoadingDots, DotMenu, DotMenuList, DotMetadataApiProvider, DotNavigationRail, DotPill, DotPopper, DotProgress, DotProgressButton, DotRadioButton, DotRadioGroup, DotSearch, DotSelect, 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 };