@digital-ai/dot-components 5.8.0 → 5.9.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 +676 -385
- package/package.json +1 -1
- package/src/lib/components/analytics/dashboard-actions/DashboardPublishConfirm.styles.d.ts +1 -1
- package/src/lib/components/avatar/Avatar.d.ts +1 -1
- package/src/lib/components/chat-bubble/ChatBubble.d.ts +15 -0
- package/src/lib/components/chat-bubble/ChatBubble.styles.d.ts +9 -0
- package/src/lib/components/chat-bubble/index.d.ts +2 -0
- package/src/lib/components/icon/Icon.d.ts +1 -1
- package/src/lib/components/index.d.ts +4 -0
- package/src/lib/components/loading-dots/LoadingDots.d.ts +10 -0
- package/src/lib/components/loading-dots/LoadingDots.styles.d.ts +8 -0
- package/src/lib/components/loading-dots/index.d.ts +2 -0
- package/src/lib/components/progress/AiGradientSvg.d.ts +3 -0
- package/src/lib/components/progress/Progress.d.ts +6 -1
- package/src/lib/components/progress/Progress.styles.d.ts +5 -1
- package/src/lib/components/typography/Typography.d.ts +3 -1
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
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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
|
-
&.
|
|
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
|
-
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
1915
|
+
const rootClassName$1r = 'dot-action-toolbar';
|
|
1871
1916
|
const StyledToolbar = styled(Toolbar)`
|
|
1872
1917
|
${({
|
|
1873
1918
|
theme
|
|
1874
1919
|
}) => css`
|
|
1875
|
-
&.${rootClassName$
|
|
1920
|
+
&.${rootClassName$1r} {
|
|
1876
1921
|
border-bottom: 1px solid ${theme.palette.figma.border.default};
|
|
1877
1922
|
|
|
1878
|
-
.${rootClassName$
|
|
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$
|
|
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$
|
|
1947
|
+
const rootClassName$1q = 'dot-alert-banner';
|
|
1903
1948
|
const StyledAlertBanner = styled(Alert)`
|
|
1904
1949
|
${({
|
|
1905
1950
|
theme
|
|
1906
1951
|
}) => css`
|
|
1907
|
-
&.${rootClassName$
|
|
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$
|
|
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$
|
|
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$
|
|
2038
|
+
const rootClassName$1p = 'dot-annotation';
|
|
1994
2039
|
const StyledAnnotation = styled.kbd`
|
|
1995
2040
|
${({
|
|
1996
2041
|
theme
|
|
1997
2042
|
}) => css`
|
|
1998
|
-
&.${rootClassName$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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
|
-
&.
|
|
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 = () =>
|
|
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:
|
|
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$
|
|
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$
|
|
2901
|
+
const rootClassName$1n = 'dot-button';
|
|
2851
2902
|
const StyledButton = styled(Button)`
|
|
2852
2903
|
${({
|
|
2853
2904
|
theme
|
|
2854
2905
|
}) => css`
|
|
2855
|
-
&.${rootClassName$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
3140
|
+
const rootClassName$1m = 'dot-link';
|
|
3090
3141
|
const StyledLink = styled(Link)`
|
|
3091
3142
|
${() => css`
|
|
3092
|
-
&.${rootClassName$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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:
|
|
3344
|
-
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:
|
|
3355
|
-
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
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
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
|
-
})
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
3615
|
+
const rootClassName$1i = 'dot-menu';
|
|
3492
3616
|
const StyledPopper = styled(Popper)`
|
|
3493
3617
|
${({
|
|
3494
3618
|
theme
|
|
3495
3619
|
}) => css`
|
|
3496
|
-
&.${rootClassName$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
4019
|
+
const rootClassName$1g = 'dot-drawer';
|
|
3896
4020
|
const StyledDrawer = styled(Drawer)`
|
|
3897
4021
|
${({
|
|
3898
4022
|
theme
|
|
3899
4023
|
}) => css`
|
|
3900
|
-
&.${rootClassName$
|
|
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$
|
|
4043
|
+
const rootClassName$1f = 'dot-drawer-header';
|
|
3920
4044
|
const StyleDrawerHeader = styled.div`
|
|
3921
4045
|
${({
|
|
3922
4046
|
theme
|
|
3923
4047
|
}) => css`
|
|
3924
|
-
&.${rootClassName$
|
|
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$
|
|
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$
|
|
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.
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
4219
|
+
const rootClassName$1d = 'dot-drawer-body';
|
|
4096
4220
|
const StyleDrawerBody = styled.div`
|
|
4097
4221
|
${() => css`
|
|
4098
|
-
&.${rootClassName$
|
|
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$
|
|
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$
|
|
4258
|
+
const rootClassName$1c = 'dot-drawer-footer';
|
|
4135
4259
|
const StyleDrawerFooter = styled.div`
|
|
4136
4260
|
${({
|
|
4137
4261
|
theme
|
|
4138
4262
|
}) => css`
|
|
4139
|
-
&.${rootClassName$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
4890
|
+
const rootClassName$1b = 'dot-copy-button';
|
|
4767
4891
|
const StyledCopyButton = styled.span`
|
|
4768
4892
|
${({
|
|
4769
4893
|
theme
|
|
4770
4894
|
}) => css`
|
|
4771
|
-
&.${rootClassName$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
5269
|
+
const rootClassName$1a = 'dot-search-input';
|
|
5146
5270
|
const StyledSearchInput = styled.span`
|
|
5147
5271
|
${() => css`
|
|
5148
|
-
&.${rootClassName$
|
|
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$
|
|
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$
|
|
5545
|
+
const rootClassName$19 = 'dot-app-switcher';
|
|
5422
5546
|
const StyledAppSwitcher = styled(DotDrawer)`
|
|
5423
5547
|
${({
|
|
5424
5548
|
theme
|
|
5425
5549
|
}) => css`
|
|
5426
|
-
&.${rootClassName$
|
|
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$
|
|
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$
|
|
6038
|
+
const rootClassName$18 = 'dot-sidebar';
|
|
5915
6039
|
const StyledSidebar = styled.aside`
|
|
5916
6040
|
${({
|
|
5917
6041
|
theme
|
|
5918
6042
|
}) => css`
|
|
5919
|
-
&.${rootClassName$
|
|
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$
|
|
6337
|
+
const rootClassName$17 = 'dot-truncate-with-tooltip';
|
|
6214
6338
|
const StyledTruncateWithTooltip = styled(Tooltip)`
|
|
6215
6339
|
${() => css`
|
|
6216
|
-
&.${rootClassName$
|
|
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$
|
|
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$
|
|
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$
|
|
6561
|
+
const rootClassName$16 = 'dot-badge';
|
|
6438
6562
|
const StyledBadge = styled(Badge)`
|
|
6439
6563
|
${({
|
|
6440
6564
|
theme
|
|
6441
6565
|
}) => css`
|
|
6442
|
-
&.${rootClassName$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
6944
|
+
const rootClassName$14 = 'dot-chip';
|
|
6821
6945
|
const StyledChip = styled(Chip)`
|
|
6822
6946
|
${({
|
|
6823
6947
|
theme
|
|
6824
6948
|
}) => css`
|
|
6825
|
-
&.${rootClassName$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
7089
|
-
const getTextFieldRootClassNames = (textFieldWarningClassName, isReadOnly) => useStylesWithRootClass(rootClassName$
|
|
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$
|
|
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$
|
|
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$
|
|
7655
|
+
const rootClassName$12 = 'dot-avatar-group';
|
|
7532
7656
|
const StyledAvatarGroup = styled(AvatarGroup)`
|
|
7533
7657
|
${() => css`
|
|
7534
|
-
&.${rootClassName$
|
|
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$
|
|
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
|
|
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
|
|
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$
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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$
|
|
8385
|
+
const rootClassName$_ = 'dot-card';
|
|
8262
8386
|
const StyledCard = styled(Card)`
|
|
8263
8387
|
${({
|
|
8264
8388
|
theme
|
|
8265
8389
|
}) => css`
|
|
8266
|
-
&.${rootClassName$
|
|
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$
|
|
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$
|
|
8435
|
+
const rootClassName$Z = 'dot-card-footer';
|
|
8312
8436
|
const StyledDiv = styled.div`
|
|
8313
8437
|
${({
|
|
8314
8438
|
theme
|
|
8315
8439
|
}) => css`
|
|
8316
|
-
&.${rootClassName$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
8543
|
+
const rootClassName$X = 'dot-form-control-label';
|
|
8420
8544
|
const StyledFormControlLabel = styled(FormControlLabel)`
|
|
8421
|
-
&.${rootClassName$
|
|
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$
|
|
8568
|
+
const rootClassName$W = 'dot-checkbox';
|
|
8445
8569
|
const StyledCheckbox = styled(Checkbox)`
|
|
8446
8570
|
${({
|
|
8447
8571
|
theme
|
|
8448
8572
|
}) => css`
|
|
8449
|
-
&.${rootClassName$
|
|
8573
|
+
&.${rootClassName$W} {
|
|
8450
8574
|
padding: ${theme.spacing(1)};
|
|
8451
8575
|
|
|
8452
8576
|
&.MuiCheckbox-indeterminate {
|
|
@@ -8465,7 +8589,7 @@ function DotCheckbox({
|
|
|
8465
8589
|
ariaLabelledby,
|
|
8466
8590
|
checked,
|
|
8467
8591
|
className,
|
|
8468
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
8592
|
+
'data-pendoid': dataPendoId = rootClassName$X,
|
|
8469
8593
|
'data-testid': dataTestId,
|
|
8470
8594
|
disabled,
|
|
8471
8595
|
disableRipple,
|
|
@@ -8480,14 +8604,14 @@ function DotCheckbox({
|
|
|
8480
8604
|
size = 'medium',
|
|
8481
8605
|
value
|
|
8482
8606
|
}) {
|
|
8483
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8607
|
+
const rootClasses = useStylesWithRootClass(rootClassName$X, className);
|
|
8484
8608
|
const handleChange = event => {
|
|
8485
8609
|
onChange && onChange(event, event.target.value);
|
|
8486
8610
|
};
|
|
8487
8611
|
const checkboxControl = jsx(StyledCheckbox, {
|
|
8488
8612
|
checked: checked,
|
|
8489
8613
|
classes: {
|
|
8490
|
-
root: rootClassName$
|
|
8614
|
+
root: rootClassName$W
|
|
8491
8615
|
},
|
|
8492
8616
|
color: "primary",
|
|
8493
8617
|
"data-pendoid": dataPendoId,
|
|
@@ -8516,13 +8640,13 @@ function DotCheckbox({
|
|
|
8516
8640
|
});
|
|
8517
8641
|
}
|
|
8518
8642
|
|
|
8519
|
-
const rootClassName$
|
|
8643
|
+
const rootClassName$V = 'dot-form-group';
|
|
8520
8644
|
const groupLabelClassName = 'dot-form-group-label';
|
|
8521
8645
|
const startAdornmentClassName = 'dot-start-adornment';
|
|
8522
8646
|
const endAdornmentClassName = 'dot-end-adornment';
|
|
8523
8647
|
const placementClassName = 'dot-';
|
|
8524
8648
|
const StyledFormControl = styled(FormControl)`
|
|
8525
|
-
&.${rootClassName$
|
|
8649
|
+
&.${rootClassName$V} {
|
|
8526
8650
|
.MuiFormLabel-root {
|
|
8527
8651
|
width: 100%;
|
|
8528
8652
|
line-height: 24px;
|
|
@@ -8553,7 +8677,7 @@ const StyledFormControl = styled(FormControl)`
|
|
|
8553
8677
|
}
|
|
8554
8678
|
`;
|
|
8555
8679
|
|
|
8556
|
-
const rootClassName$
|
|
8680
|
+
const rootClassName$U = 'dot-checkbox-group';
|
|
8557
8681
|
const wrapperClassName$1 = 'dot-checkbox-group-wrapper';
|
|
8558
8682
|
const checkboxListClassName = 'dot-checkbox-list';
|
|
8559
8683
|
const checkboxListItemClassName = 'dot-checkbox-list-item';
|
|
@@ -8562,7 +8686,7 @@ const StyledCheckboxGroup = styled.div`
|
|
|
8562
8686
|
theme
|
|
8563
8687
|
}) => css`
|
|
8564
8688
|
&.${wrapperClassName$1} {
|
|
8565
|
-
.${rootClassName$
|
|
8689
|
+
.${rootClassName$U} {
|
|
8566
8690
|
width: 100%;
|
|
8567
8691
|
}
|
|
8568
8692
|
|
|
@@ -8589,7 +8713,7 @@ const StyledCheckboxGroup = styled.div`
|
|
|
8589
8713
|
margin-top: 0;
|
|
8590
8714
|
padding-left: ${theme.spacing(2.5)};
|
|
8591
8715
|
|
|
8592
|
-
.${rootClassName$
|
|
8716
|
+
.${rootClassName$X} {
|
|
8593
8717
|
margin: 0;
|
|
8594
8718
|
}
|
|
8595
8719
|
}
|
|
@@ -8597,13 +8721,13 @@ const StyledCheckboxGroup = styled.div`
|
|
|
8597
8721
|
`}
|
|
8598
8722
|
`;
|
|
8599
8723
|
|
|
8600
|
-
const rootClassName$
|
|
8724
|
+
const rootClassName$T = 'dot-form-group';
|
|
8601
8725
|
const StyledFormGroup = styled(FormGroup)`
|
|
8602
8726
|
${({
|
|
8603
8727
|
theme,
|
|
8604
8728
|
row
|
|
8605
8729
|
}) => css`
|
|
8606
|
-
&.${rootClassName$
|
|
8730
|
+
&.${rootClassName$T} > * {
|
|
8607
8731
|
margin: ${row ? `${theme.spacing(0.5)}` : 0};
|
|
8608
8732
|
}
|
|
8609
8733
|
`}
|
|
@@ -8616,7 +8740,7 @@ function DotFormGroup({
|
|
|
8616
8740
|
'data-testid': dataTestId,
|
|
8617
8741
|
row
|
|
8618
8742
|
}) {
|
|
8619
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8743
|
+
const rootClasses = useStylesWithRootClass(rootClassName$V, className);
|
|
8620
8744
|
return jsx(StyledFormGroup, {
|
|
8621
8745
|
"aria-label": ariaLabel,
|
|
8622
8746
|
classes: {
|
|
@@ -8655,7 +8779,7 @@ function DotCheckboxGroup({
|
|
|
8655
8779
|
size = 'medium'
|
|
8656
8780
|
}) {
|
|
8657
8781
|
const placement = `${placementClassName}${labelPlacement}`;
|
|
8658
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8782
|
+
const rootClasses = useStylesWithRootClass(rootClassName$V, rootClassName$U, className, placement);
|
|
8659
8783
|
const [selectedOptions, setSelectedOptions] = useState(defaultValues);
|
|
8660
8784
|
const [allChecked, setAllChecked] = useState(false);
|
|
8661
8785
|
/* This will ensure that state can be updated from the outside */
|
|
@@ -8740,12 +8864,12 @@ function DotCheckboxGroup({
|
|
|
8740
8864
|
});
|
|
8741
8865
|
}
|
|
8742
8866
|
|
|
8743
|
-
const rootClassName$
|
|
8867
|
+
const rootClassName$S = 'chip-list';
|
|
8744
8868
|
const StyledChipList = styled.div`
|
|
8745
8869
|
${({
|
|
8746
8870
|
theme
|
|
8747
8871
|
}) => css`
|
|
8748
|
-
&.${rootClassName$
|
|
8872
|
+
&.${rootClassName$S} {
|
|
8749
8873
|
display: flex;
|
|
8750
8874
|
gap: ${theme.spacing(1)};
|
|
8751
8875
|
}
|
|
@@ -8820,19 +8944,19 @@ function DotChipList({
|
|
|
8820
8944
|
setChips(itemElements);
|
|
8821
8945
|
}, [items, maxChars]);
|
|
8822
8946
|
return jsx(StyledChipList, {
|
|
8823
|
-
className: rootClassName$
|
|
8947
|
+
className: rootClassName$S,
|
|
8824
8948
|
"data-testid": dataTestId,
|
|
8825
8949
|
style: style,
|
|
8826
8950
|
children: chips
|
|
8827
8951
|
});
|
|
8828
8952
|
}
|
|
8829
8953
|
|
|
8830
|
-
const rootClassName$
|
|
8954
|
+
const rootClassName$R = 'dot-dialog';
|
|
8831
8955
|
const StyledDialog = styled(Dialog)`
|
|
8832
8956
|
${({
|
|
8833
8957
|
theme
|
|
8834
8958
|
}) => css`
|
|
8835
|
-
&.${rootClassName$
|
|
8959
|
+
&.${rootClassName$R} {
|
|
8836
8960
|
.MuiDialog-paper {
|
|
8837
8961
|
background: ${theme.palette.figma.background.level1.white};
|
|
8838
8962
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -8878,7 +9002,7 @@ const DotDialog = ({
|
|
|
8878
9002
|
cancelButtonProps,
|
|
8879
9003
|
cancelButtonVisible = true,
|
|
8880
9004
|
className,
|
|
8881
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
9005
|
+
'data-pendoid': dataPendoId = rootClassName$R,
|
|
8882
9006
|
'data-testid': dataTestId,
|
|
8883
9007
|
children,
|
|
8884
9008
|
closeIconVisible,
|
|
@@ -8892,7 +9016,7 @@ const DotDialog = ({
|
|
|
8892
9016
|
submitButtonProps,
|
|
8893
9017
|
title
|
|
8894
9018
|
}) => {
|
|
8895
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
9019
|
+
const rootClasses = useStylesWithRootClass(rootClassName$R, className);
|
|
8896
9020
|
const cancelClasses = useStylesWithRootClass(cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.className, 'cancel-button');
|
|
8897
9021
|
const [isOpen, setIsOpen] = useState(open);
|
|
8898
9022
|
const hasSecondaryAction = !!secondaryButtonProps;
|
|
@@ -9029,7 +9153,7 @@ const DotConfirmationDialog = ({
|
|
|
9029
9153
|
});
|
|
9030
9154
|
};
|
|
9031
9155
|
|
|
9032
|
-
const rootClassName$
|
|
9156
|
+
const rootClassName$Q = 'dot-grid';
|
|
9033
9157
|
const frGetter = value => typeof value === 'number' ? `repeat(${value}, 1fr)` : value;
|
|
9034
9158
|
const breakpointsGetter$1 = (theme, columnsBreakpoints, columnGap, rowGap) => `${theme.breakpoints.up('xs')} {
|
|
9035
9159
|
column-gap: ${`${columnGap.xs}px`};
|
|
@@ -9089,7 +9213,7 @@ const Grid = ({
|
|
|
9089
9213
|
children,
|
|
9090
9214
|
isLoading
|
|
9091
9215
|
}) => {
|
|
9092
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
9216
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Q, className);
|
|
9093
9217
|
return jsxs("div", {
|
|
9094
9218
|
className: rootClasses,
|
|
9095
9219
|
children: [children, isLoading && jsx(DotProgress, {
|
|
@@ -9113,7 +9237,7 @@ const StyledGrid = styled(Grid)`
|
|
|
9113
9237
|
theme,
|
|
9114
9238
|
width
|
|
9115
9239
|
}) => css`
|
|
9116
|
-
&.${rootClassName$
|
|
9240
|
+
&.${rootClassName$Q} {
|
|
9117
9241
|
display: grid;
|
|
9118
9242
|
grid-template-rows: ${frGetter(rows)};
|
|
9119
9243
|
${columns ? `${columns && `grid-template-columns: ${frGetter(columns)}`};` : breakpointsGetter$1(theme, columnsBreakpoints, columnGap, rowGap)}
|
|
@@ -9384,12 +9508,12 @@ const CssGridDebug = ({
|
|
|
9384
9508
|
});
|
|
9385
9509
|
};
|
|
9386
9510
|
|
|
9387
|
-
const rootClassName$
|
|
9511
|
+
const rootClassName$P = 'dot-pill';
|
|
9388
9512
|
const StyledPill = styled(Chip)`
|
|
9389
9513
|
${({
|
|
9390
9514
|
theme
|
|
9391
9515
|
}) => css`
|
|
9392
|
-
&.${rootClassName$
|
|
9516
|
+
&.${rootClassName$P} {
|
|
9393
9517
|
background-color: ${({
|
|
9394
9518
|
backgroundcolor,
|
|
9395
9519
|
variant
|
|
@@ -9513,7 +9637,7 @@ const DotPill = ({
|
|
|
9513
9637
|
status = 'default',
|
|
9514
9638
|
variant = 'filled'
|
|
9515
9639
|
}) => {
|
|
9516
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
9640
|
+
const rootClasses = useStylesWithRootClass(rootClassName$P, className, status);
|
|
9517
9641
|
return jsx(StyledPill, {
|
|
9518
9642
|
"aria-label": ariaLabel,
|
|
9519
9643
|
bordercolor: bordercolor,
|
|
@@ -11224,18 +11348,18 @@ function addAutoHideDuration(severity) {
|
|
|
11224
11348
|
return severity === 'error' ? null : 10000;
|
|
11225
11349
|
}
|
|
11226
11350
|
|
|
11227
|
-
const rootClassName$
|
|
11351
|
+
const rootClassName$O = 'dot-snackbar';
|
|
11228
11352
|
const StyledSnackbar = styled(Snackbar)`
|
|
11229
11353
|
${({
|
|
11230
11354
|
theme,
|
|
11231
11355
|
width,
|
|
11232
11356
|
$anchorOriginTop
|
|
11233
11357
|
}) => css`
|
|
11234
|
-
&.${rootClassName$
|
|
11358
|
+
&.${rootClassName$O} {
|
|
11235
11359
|
.MuiAlert-message {
|
|
11236
11360
|
word-break: break-word;
|
|
11237
11361
|
}
|
|
11238
|
-
.${rootClassName$
|
|
11362
|
+
.${rootClassName$1q} {
|
|
11239
11363
|
align-items: flex-start;
|
|
11240
11364
|
}
|
|
11241
11365
|
&.MuiSnackbar-anchorOriginTopLeft,
|
|
@@ -11288,7 +11412,7 @@ const DotSnackbar = ({
|
|
|
11288
11412
|
}) => {
|
|
11289
11413
|
const hasActions = !!(primaryAction || secondaryAction);
|
|
11290
11414
|
const calculatedAutoHideDuration = autoHideDuration === null || autoHideDuration > 0 ? autoHideDuration : addAutoHideDuration(severity);
|
|
11291
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11415
|
+
const rootClasses = useStylesWithRootClass(rootClassName$O, className);
|
|
11292
11416
|
const handleSnackbarClose = reason => {
|
|
11293
11417
|
if (!reason || hideOnClickAway || !hideOnClickAway && reason !== 'clickaway') {
|
|
11294
11418
|
onClose();
|
|
@@ -11358,10 +11482,10 @@ const DotSnackbar = ({
|
|
|
11358
11482
|
});
|
|
11359
11483
|
};
|
|
11360
11484
|
|
|
11361
|
-
const rootClassName$
|
|
11485
|
+
const rootClassName$N = 'dot-snackbar-container';
|
|
11362
11486
|
const StyledSnackbarContainer = styled.div`
|
|
11363
11487
|
${() => css`
|
|
11364
|
-
&.${rootClassName$
|
|
11488
|
+
&.${rootClassName$N} {
|
|
11365
11489
|
position: absolute;
|
|
11366
11490
|
top: 0;
|
|
11367
11491
|
width: 250px;
|
|
@@ -11393,10 +11517,10 @@ const DotSnackbarContainer = ({
|
|
|
11393
11517
|
};
|
|
11394
11518
|
}
|
|
11395
11519
|
return jsx(StyledSnackbarContainer, {
|
|
11396
|
-
className: rootClassName$
|
|
11520
|
+
className: rootClassName$N,
|
|
11397
11521
|
children: jsx("div", {
|
|
11398
|
-
className: rootClassName$
|
|
11399
|
-
"data-testid": rootClassName$
|
|
11522
|
+
className: rootClassName$N,
|
|
11523
|
+
"data-testid": rootClassName$N,
|
|
11400
11524
|
children: alerts.slice().reverse().map(alert => {
|
|
11401
11525
|
return jsx(DotSnackbar, {
|
|
11402
11526
|
autoCloseOnAction: autoCloseOnAction,
|
|
@@ -11470,12 +11594,12 @@ const useEnqueueErrorMessage = error => {
|
|
|
11470
11594
|
}, [error]);
|
|
11471
11595
|
};
|
|
11472
11596
|
|
|
11473
|
-
const rootClassName$
|
|
11597
|
+
const rootClassName$M = 'dot-dashboard-details';
|
|
11474
11598
|
const StyledDashboardDetails = styled(DotDrawer)`
|
|
11475
11599
|
${({
|
|
11476
11600
|
theme
|
|
11477
11601
|
}) => css`
|
|
11478
|
-
&.${rootClassName$
|
|
11602
|
+
&.${rootClassName$M} {
|
|
11479
11603
|
.dot-drawer-paper {
|
|
11480
11604
|
padding: 0;
|
|
11481
11605
|
width: 382px;
|
|
@@ -11601,7 +11725,7 @@ const DotDashboardDetailsView = ({
|
|
|
11601
11725
|
modifiedAuthorUser
|
|
11602
11726
|
}) => {
|
|
11603
11727
|
var _a, _b;
|
|
11604
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11728
|
+
const rootClasses = useStylesWithRootClass(rootClassName$M, className);
|
|
11605
11729
|
const closeHandler = useCallback(event => {
|
|
11606
11730
|
onClose && onClose(event);
|
|
11607
11731
|
}, [onClose]);
|
|
@@ -12263,12 +12387,12 @@ function DotDashboardDialog({
|
|
|
12263
12387
|
});
|
|
12264
12388
|
}
|
|
12265
12389
|
|
|
12266
|
-
const rootClassName$
|
|
12390
|
+
const rootClassName$L = 'dot-impact-dialog';
|
|
12267
12391
|
const StyledImpactDialog = styled(DotDialog)`
|
|
12268
12392
|
${({
|
|
12269
12393
|
theme
|
|
12270
12394
|
}) => css`
|
|
12271
|
-
&.${rootClassName$
|
|
12395
|
+
&.${rootClassName$L} {
|
|
12272
12396
|
.high-impact-default-content {
|
|
12273
12397
|
margin-top: ${theme.spacing(2)};
|
|
12274
12398
|
margin-bottom: ${theme.spacing(3)};
|
|
@@ -12374,7 +12498,7 @@ const DotImpactDialog = ({
|
|
|
12374
12498
|
}
|
|
12375
12499
|
return '';
|
|
12376
12500
|
}, [action, capitalize, impact, record]);
|
|
12377
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
12501
|
+
const rootClasses = useStylesWithRootClass(rootClassName$L, className);
|
|
12378
12502
|
return jsx(StyledImpactDialog, {
|
|
12379
12503
|
"data-testid": dataTestId,
|
|
12380
12504
|
className: rootClasses,
|
|
@@ -13765,7 +13889,7 @@ function DotDashboardHeader({
|
|
|
13765
13889
|
});
|
|
13766
13890
|
}
|
|
13767
13891
|
|
|
13768
|
-
const rootClassName$
|
|
13892
|
+
const rootClassName$K = 'dot-empty-state';
|
|
13769
13893
|
const emptyStateImageSizing = {
|
|
13770
13894
|
xsmall: 9,
|
|
13771
13895
|
dense: 15,
|
|
@@ -13836,9 +13960,9 @@ const StyledEmptyState = styled.div`
|
|
|
13836
13960
|
`}
|
|
13837
13961
|
`;
|
|
13838
13962
|
|
|
13839
|
-
const rootClassName$
|
|
13963
|
+
const rootClassName$J = 'dot-illustration';
|
|
13840
13964
|
const StyledIllustration = styled.span`
|
|
13841
|
-
&.${rootClassName$
|
|
13965
|
+
&.${rootClassName$J} {
|
|
13842
13966
|
display: inline-block;
|
|
13843
13967
|
}
|
|
13844
13968
|
`;
|
|
@@ -13855,17 +13979,17 @@ const DotIllustration = ({
|
|
|
13855
13979
|
tooltip,
|
|
13856
13980
|
tooltipPlacement = 'right-end'
|
|
13857
13981
|
}) => {
|
|
13858
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13982
|
+
const rootClasses = useStylesWithRootClass(rootClassName$J, className);
|
|
13859
13983
|
return jsx(DotTooltip, {
|
|
13860
13984
|
childrenDisplayStyle: "inline-block",
|
|
13861
13985
|
title: tooltip,
|
|
13862
13986
|
placement: tooltipPlacement,
|
|
13863
|
-
"data-testid": `${dataTestId || rootClassName$
|
|
13987
|
+
"data-testid": `${dataTestId || rootClassName$J}-tooltip`,
|
|
13864
13988
|
children: jsx(StyledIllustration, {
|
|
13865
13989
|
"aria-hidden": "false",
|
|
13866
13990
|
"aria-label": ariaLabel || title || 'Illustration',
|
|
13867
13991
|
className: rootClasses,
|
|
13868
|
-
"data-testid": dataTestId || rootClassName$
|
|
13992
|
+
"data-testid": dataTestId || rootClassName$J,
|
|
13869
13993
|
role: ariaRole,
|
|
13870
13994
|
children: jsx("img", {
|
|
13871
13995
|
alt: alt || 'Illustration',
|
|
@@ -13891,7 +14015,7 @@ const DotEmptyState = ({
|
|
|
13891
14015
|
subtitle,
|
|
13892
14016
|
title
|
|
13893
14017
|
}) => {
|
|
13894
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14018
|
+
const rootClasses = useStylesWithRootClass(rootClassName$K, className);
|
|
13895
14019
|
return jsxs(StyledEmptyState, {
|
|
13896
14020
|
"aria-label": ariaLabel,
|
|
13897
14021
|
className: `${rootClasses} ${size}`,
|
|
@@ -13972,20 +14096,20 @@ const StyledRadioGroup = styled(RadioGroup)`
|
|
|
13972
14096
|
&.${groupClassName} {
|
|
13973
14097
|
padding-left: ${theme.spacing(2.5)};
|
|
13974
14098
|
|
|
13975
|
-
.${rootClassName$
|
|
14099
|
+
.${rootClassName$X} {
|
|
13976
14100
|
margin: 0;
|
|
13977
14101
|
}
|
|
13978
14102
|
}
|
|
13979
14103
|
`}
|
|
13980
14104
|
`;
|
|
13981
14105
|
|
|
13982
|
-
const rootClassName$
|
|
14106
|
+
const rootClassName$I = 'dot-date-picker';
|
|
13983
14107
|
const popperClassName = 'dot-date-picker-popper';
|
|
13984
14108
|
const containerClassName$2 = 'dot-date-picker-container';
|
|
13985
14109
|
const rectanglePickersDayClassName = 'dot-rectangle-pickers-day';
|
|
13986
14110
|
const StyledDatePickerContainer = styled.div`
|
|
13987
14111
|
${() => css`
|
|
13988
|
-
&.${rootClassName$
|
|
14112
|
+
&.${rootClassName$I} .full-width {
|
|
13989
14113
|
width: 100%;
|
|
13990
14114
|
}
|
|
13991
14115
|
`}
|
|
@@ -13994,7 +14118,7 @@ const StyledDatePicker = styled(DatePicker)`
|
|
|
13994
14118
|
${({
|
|
13995
14119
|
theme
|
|
13996
14120
|
}) => css`
|
|
13997
|
-
&.${rootClassName$
|
|
14121
|
+
&.${rootClassName$I} {
|
|
13998
14122
|
${pickerInputStyles(theme)};
|
|
13999
14123
|
|
|
14000
14124
|
.Mui-disabled.MuiInputBase-root,
|
|
@@ -14036,7 +14160,7 @@ const StyledPickersDay = styled(PickersDay)`
|
|
|
14036
14160
|
`}
|
|
14037
14161
|
`;
|
|
14038
14162
|
|
|
14039
|
-
const rootClassName$
|
|
14163
|
+
const rootClassName$H = 'dot-time-picker';
|
|
14040
14164
|
const containerClassName$1 = 'dot-time-picker-container';
|
|
14041
14165
|
const timePickerPopperClassName = 'dot-time-picker-popper';
|
|
14042
14166
|
const TIME_SELECTION_HEIGHT_SPACING = 34.5;
|
|
@@ -14056,7 +14180,7 @@ const StyledTimePicker = styled(TimePicker)`
|
|
|
14056
14180
|
${({
|
|
14057
14181
|
theme
|
|
14058
14182
|
}) => css`
|
|
14059
|
-
&.${rootClassName$
|
|
14183
|
+
&.${rootClassName$H} {
|
|
14060
14184
|
${pickerInputStyles(theme)};
|
|
14061
14185
|
|
|
14062
14186
|
.Mui-disabled.MuiInputBase-root,
|
|
@@ -14133,36 +14257,36 @@ const StyledTimePickerPopper = styled(Popper)`
|
|
|
14133
14257
|
`}
|
|
14134
14258
|
`;
|
|
14135
14259
|
|
|
14136
|
-
const rootClassName$
|
|
14260
|
+
const rootClassName$G = 'dot-form';
|
|
14137
14261
|
const StyledFormContainer = styled.div`
|
|
14138
14262
|
${({
|
|
14139
14263
|
theme
|
|
14140
14264
|
}) => css`
|
|
14141
|
-
&.${rootClassName$
|
|
14265
|
+
&.${rootClassName$G} {
|
|
14142
14266
|
margin: ${theme.spacing(3, 0)};
|
|
14143
14267
|
|
|
14144
|
-
.${rootClassName$
|
|
14145
|
-
.${rootClassName$
|
|
14146
|
-
.${rootClassName$
|
|
14268
|
+
.${rootClassName$V},
|
|
14269
|
+
.${rootClassName$X},
|
|
14270
|
+
.${rootClassName$1u},
|
|
14147
14271
|
.${rootSelectClassName},
|
|
14148
|
-
.${rootClassName$
|
|
14149
|
-
.${rootClassName$
|
|
14272
|
+
.${rootClassName$I},
|
|
14273
|
+
.${rootClassName$H} {
|
|
14150
14274
|
margin: ${theme.spacing(1, 0)};
|
|
14151
14275
|
}
|
|
14152
14276
|
|
|
14153
14277
|
.${wrapperClassName$2} {
|
|
14154
|
-
+ .${rootClassName$
|
|
14278
|
+
+ .${rootClassName$1u},
|
|
14155
14279
|
.${wrapperClassName$2}
|
|
14156
14280
|
+ .${rootSelectClassName},
|
|
14157
14281
|
.${wrapperClassName$2}
|
|
14158
|
-
+ .${rootClassName$
|
|
14282
|
+
+ .${rootClassName$I},
|
|
14159
14283
|
.${wrapperClassName$2}
|
|
14160
|
-
+ .${rootClassName$
|
|
14284
|
+
+ .${rootClassName$H} {
|
|
14161
14285
|
margin: ${theme.spacing(0, 0, 1, 0)};
|
|
14162
14286
|
}
|
|
14163
14287
|
|
|
14164
|
-
.${rootClassName$
|
|
14165
|
-
.${rootClassName$
|
|
14288
|
+
.${rootClassName$U}, .${groupClassName} {
|
|
14289
|
+
.${rootClassName$X} {
|
|
14166
14290
|
margin: 0;
|
|
14167
14291
|
}
|
|
14168
14292
|
}
|
|
@@ -14177,7 +14301,7 @@ const DotForm = ({
|
|
|
14177
14301
|
'data-testid': dataTestId,
|
|
14178
14302
|
onSubmit
|
|
14179
14303
|
}) => {
|
|
14180
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14304
|
+
const rootClasses = useStylesWithRootClass(rootClassName$G, className);
|
|
14181
14305
|
return jsx("form", {
|
|
14182
14306
|
"aria-label": ariaLabel,
|
|
14183
14307
|
"data-testid": dataTestId,
|
|
@@ -14190,10 +14314,10 @@ const DotForm = ({
|
|
|
14190
14314
|
});
|
|
14191
14315
|
};
|
|
14192
14316
|
|
|
14193
|
-
const rootClassName$
|
|
14317
|
+
const rootClassName$F = 'dot-dynamic-form';
|
|
14194
14318
|
const StyledDynamicForm = styled(DotForm)`
|
|
14195
14319
|
${() => css`
|
|
14196
|
-
&.${rootClassName$
|
|
14320
|
+
&.${rootClassName$F} {
|
|
14197
14321
|
}
|
|
14198
14322
|
`}
|
|
14199
14323
|
`;
|
|
@@ -14373,12 +14497,12 @@ const checkIfFormDataValid = formState => {
|
|
|
14373
14497
|
return true;
|
|
14374
14498
|
};
|
|
14375
14499
|
|
|
14376
|
-
const rootClassName$
|
|
14500
|
+
const rootClassName$E = 'dot-progress-button';
|
|
14377
14501
|
const StyledProgressButton = styled(DotButton)`
|
|
14378
14502
|
${({
|
|
14379
14503
|
theme
|
|
14380
14504
|
}) => css`
|
|
14381
|
-
&.${rootClassName$
|
|
14505
|
+
&.${rootClassName$E} {
|
|
14382
14506
|
.hidden {
|
|
14383
14507
|
// hide children but preserve its space so that
|
|
14384
14508
|
// button's dimensions don't change
|
|
@@ -14403,7 +14527,7 @@ const DotProgressButton = ({
|
|
|
14403
14527
|
ariaLabel,
|
|
14404
14528
|
children,
|
|
14405
14529
|
className,
|
|
14406
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
14530
|
+
'data-pendoid': dataPendoId = rootClassName$E,
|
|
14407
14531
|
'data-testid': dataTestId,
|
|
14408
14532
|
disabled = false,
|
|
14409
14533
|
disableInteractive,
|
|
@@ -14417,7 +14541,7 @@ const DotProgressButton = ({
|
|
|
14417
14541
|
tooltip,
|
|
14418
14542
|
type = 'primary'
|
|
14419
14543
|
}) => {
|
|
14420
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14544
|
+
const rootClasses = useStylesWithRootClass(rootClassName$E, className);
|
|
14421
14545
|
const isButtonDisabled = disabled || isLoading;
|
|
14422
14546
|
const titleClasses = useStylesWithRootClass(isLoading ? 'hidden' : '');
|
|
14423
14547
|
const progressCircleSize = size === 'large' ? SPINNER_LARGE_SIZE : SPINNER_DEFAULT_SIZE;
|
|
@@ -14447,12 +14571,12 @@ const DotProgressButton = ({
|
|
|
14447
14571
|
});
|
|
14448
14572
|
};
|
|
14449
14573
|
|
|
14450
|
-
const rootClassName$
|
|
14574
|
+
const rootClassName$D = 'dot-radio';
|
|
14451
14575
|
const StyledRadioButton = styled(Radio)`
|
|
14452
14576
|
${({
|
|
14453
14577
|
theme
|
|
14454
14578
|
}) => css`
|
|
14455
|
-
&.${rootClassName$
|
|
14579
|
+
&.${rootClassName$D} {
|
|
14456
14580
|
padding: 8px;
|
|
14457
14581
|
|
|
14458
14582
|
svg {
|
|
@@ -14470,7 +14594,7 @@ function DotRadioButton({
|
|
|
14470
14594
|
ariaLabel,
|
|
14471
14595
|
checked,
|
|
14472
14596
|
className,
|
|
14473
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
14597
|
+
'data-pendoid': dataPendoId = rootClassName$X,
|
|
14474
14598
|
'data-testid': dataTestId,
|
|
14475
14599
|
disabled,
|
|
14476
14600
|
id,
|
|
@@ -14483,7 +14607,7 @@ function DotRadioButton({
|
|
|
14483
14607
|
size = 'medium',
|
|
14484
14608
|
value
|
|
14485
14609
|
}) {
|
|
14486
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14610
|
+
const rootClasses = useStylesWithRootClass(rootClassName$X, className);
|
|
14487
14611
|
const handleChange = event => {
|
|
14488
14612
|
onChange && onChange(event, event.target.value);
|
|
14489
14613
|
};
|
|
@@ -14491,7 +14615,7 @@ function DotRadioButton({
|
|
|
14491
14615
|
const radioControl = jsx(StyledRadioButton, {
|
|
14492
14616
|
checked: checked,
|
|
14493
14617
|
classes: {
|
|
14494
|
-
root: rootClassName$
|
|
14618
|
+
root: rootClassName$D
|
|
14495
14619
|
},
|
|
14496
14620
|
color: "primary",
|
|
14497
14621
|
"data-pendoid": dataPendoId,
|
|
@@ -14537,7 +14661,7 @@ const DotRadioGroup = ({
|
|
|
14537
14661
|
size = 'medium'
|
|
14538
14662
|
}) => {
|
|
14539
14663
|
const placement = `${placementClassName}${labelPlacement}`;
|
|
14540
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14664
|
+
const rootClasses = useStylesWithRootClass(rootClassName$V, className, placement);
|
|
14541
14665
|
const radioValue = value || defaultValue;
|
|
14542
14666
|
const [selectedValue, setSelectedValue] = useState(radioValue);
|
|
14543
14667
|
/* This will ensure that value can be updated from the outside */
|
|
@@ -14602,7 +14726,7 @@ const DotRadioGroup = ({
|
|
|
14602
14726
|
});
|
|
14603
14727
|
};
|
|
14604
14728
|
|
|
14605
|
-
const rootClassName$
|
|
14729
|
+
const rootClassName$C = 'dot-switch';
|
|
14606
14730
|
const StyledSwitch = styled(Switch)`
|
|
14607
14731
|
${({
|
|
14608
14732
|
theme
|
|
@@ -14629,7 +14753,7 @@ const DotSwitch = ({
|
|
|
14629
14753
|
checked,
|
|
14630
14754
|
className,
|
|
14631
14755
|
color,
|
|
14632
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
14756
|
+
'data-pendoid': dataPendoId = rootClassName$C,
|
|
14633
14757
|
'data-testid': dataTestId,
|
|
14634
14758
|
disabled = false,
|
|
14635
14759
|
id,
|
|
@@ -14639,7 +14763,7 @@ const DotSwitch = ({
|
|
|
14639
14763
|
onChange,
|
|
14640
14764
|
size = 'medium'
|
|
14641
14765
|
}) => {
|
|
14642
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14766
|
+
const rootClasses = useStylesWithRootClass(rootClassName$C, className);
|
|
14643
14767
|
const handleChange = event => {
|
|
14644
14768
|
onChange && onChange(event);
|
|
14645
14769
|
};
|
|
@@ -14669,7 +14793,7 @@ const DotSwitch = ({
|
|
|
14669
14793
|
tabIndex: 0
|
|
14670
14794
|
});
|
|
14671
14795
|
return jsx(StyledFormControlLabel, {
|
|
14672
|
-
className: rootClassName$
|
|
14796
|
+
className: rootClassName$X,
|
|
14673
14797
|
control: switchControl,
|
|
14674
14798
|
label: label,
|
|
14675
14799
|
labelPlacement: labelPlacement
|
|
@@ -14990,7 +15114,7 @@ const DotDynamicForm = ({
|
|
|
14990
15114
|
onChange,
|
|
14991
15115
|
onSubmit
|
|
14992
15116
|
}) => {
|
|
14993
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15117
|
+
const rootClasses = useStylesWithRootClass(rootClassName$F, className);
|
|
14994
15118
|
// Memoize this operation so that is doesn't get executed each time this
|
|
14995
15119
|
// component re-renders
|
|
14996
15120
|
const initialFormState = useMemo(() => getInitialFormState(config, liveValidation), [config, liveValidation, getInitialFormState]);
|
|
@@ -15236,7 +15360,7 @@ const DotDynamicForm = ({
|
|
|
15236
15360
|
});
|
|
15237
15361
|
};
|
|
15238
15362
|
|
|
15239
|
-
const rootClassName$
|
|
15363
|
+
const rootClassName$B = 'dot-inline-edit';
|
|
15240
15364
|
const editModeClassName = 'dot-edit-mode';
|
|
15241
15365
|
const viewModeClassName = 'dot-view-mode';
|
|
15242
15366
|
const placeholderClassName = 'dot-placeholder';
|
|
@@ -15248,7 +15372,7 @@ const StyledInlineEdit = styled.div`
|
|
|
15248
15372
|
theme,
|
|
15249
15373
|
fullWidth
|
|
15250
15374
|
}) => css`
|
|
15251
|
-
&.${rootClassName$
|
|
15375
|
+
&.${rootClassName$B} {
|
|
15252
15376
|
align-items: center;
|
|
15253
15377
|
color: ${theme.palette.figma.typography.black};
|
|
15254
15378
|
display: ${fullWidth ? 'flex' : 'inline-flex'};
|
|
@@ -15462,7 +15586,7 @@ const DotInlineEdit = ({
|
|
|
15462
15586
|
bindings,
|
|
15463
15587
|
charactersLimit,
|
|
15464
15588
|
className,
|
|
15465
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
15589
|
+
'data-pendoid': dataPendoId = rootClassName$B,
|
|
15466
15590
|
'data-testid': dataTestId,
|
|
15467
15591
|
fullWidth = true,
|
|
15468
15592
|
hideActionButtons,
|
|
@@ -15498,7 +15622,7 @@ const DotInlineEdit = ({
|
|
|
15498
15622
|
}
|
|
15499
15623
|
}, [value]);
|
|
15500
15624
|
const isSaveDisabled = checkIfEmptyValue(inputValue);
|
|
15501
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15625
|
+
const rootClasses = useStylesWithRootClass(rootClassName$B, className, editing ? editModeClassName : '');
|
|
15502
15626
|
const handleShowTooltip = visible => {
|
|
15503
15627
|
if (!editing) {
|
|
15504
15628
|
setShowTooltip(visible);
|
|
@@ -15686,13 +15810,13 @@ const DotInlineEdit = ({
|
|
|
15686
15810
|
});
|
|
15687
15811
|
};
|
|
15688
15812
|
|
|
15689
|
-
const rootClassName$
|
|
15813
|
+
const rootClassName$A = 'dot-navigation-rail';
|
|
15690
15814
|
const StyledNavigationRail = styled.div`
|
|
15691
15815
|
${({
|
|
15692
15816
|
theme,
|
|
15693
15817
|
railItemPosition
|
|
15694
15818
|
}) => css`
|
|
15695
|
-
&.${rootClassName$
|
|
15819
|
+
&.${rootClassName$A} {
|
|
15696
15820
|
background: ${theme.palette.figma.neutral.elevated};
|
|
15697
15821
|
border-left: 1px solid ${theme.palette.figma.border.default};
|
|
15698
15822
|
display: flex;
|
|
@@ -15752,7 +15876,7 @@ const DotNavigationRail = ({
|
|
|
15752
15876
|
railItems,
|
|
15753
15877
|
selectedIndex
|
|
15754
15878
|
}) => {
|
|
15755
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15879
|
+
const rootClasses = useStylesWithRootClass(rootClassName$A, className);
|
|
15756
15880
|
const [selectedItemIndex, setSelectedItemIndex] = useState(selectedIndex !== null && selectedIndex !== void 0 ? selectedIndex : defaultIndex);
|
|
15757
15881
|
/* Used to change selected index programmatically from the consumer component */
|
|
15758
15882
|
useEffect(() => {
|
|
@@ -15803,12 +15927,12 @@ const DotNavigationRail = ({
|
|
|
15803
15927
|
});
|
|
15804
15928
|
};
|
|
15805
15929
|
|
|
15806
|
-
const rootClassName$
|
|
15930
|
+
const rootClassName$z = 'dot-skeleton';
|
|
15807
15931
|
const StyledSkeleton = styled(Skeleton)`
|
|
15808
15932
|
${({
|
|
15809
15933
|
theme
|
|
15810
15934
|
}) => css`
|
|
15811
|
-
&.${rootClassName$
|
|
15935
|
+
&.${rootClassName$z} {
|
|
15812
15936
|
background-color: ${theme.palette.figma.border.darker};
|
|
15813
15937
|
}
|
|
15814
15938
|
`}
|
|
@@ -15823,7 +15947,7 @@ const DotSkeleton = ({
|
|
|
15823
15947
|
width,
|
|
15824
15948
|
variant
|
|
15825
15949
|
}) => {
|
|
15826
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15950
|
+
const rootClasses = useStylesWithRootClass(rootClassName$z, className);
|
|
15827
15951
|
return jsx(StyledSkeleton, {
|
|
15828
15952
|
animation: "wave",
|
|
15829
15953
|
"aria-label": ariaLabel,
|
|
@@ -15838,12 +15962,12 @@ const DotSkeleton = ({
|
|
|
15838
15962
|
});
|
|
15839
15963
|
};
|
|
15840
15964
|
|
|
15841
|
-
const rootClassName$
|
|
15965
|
+
const rootClassName$y = 'dot-split-button-group';
|
|
15842
15966
|
const StyledSplitButtonGroup = styled(ButtonGroup)`
|
|
15843
15967
|
${({
|
|
15844
15968
|
theme
|
|
15845
15969
|
}) => css`
|
|
15846
|
-
&.${rootClassName$
|
|
15970
|
+
&.${rootClassName$y} {
|
|
15847
15971
|
&.outlined,
|
|
15848
15972
|
&.text {
|
|
15849
15973
|
.expand-button {
|
|
@@ -15909,7 +16033,7 @@ const DotSplitButton = ({
|
|
|
15909
16033
|
autoFocus = false,
|
|
15910
16034
|
ariaLabel,
|
|
15911
16035
|
className,
|
|
15912
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
16036
|
+
'data-pendoid': dataPendoId = rootClassName$y,
|
|
15913
16037
|
'data-testid': dataTestId,
|
|
15914
16038
|
defaultMainOptionKey,
|
|
15915
16039
|
disabled = false,
|
|
@@ -15925,7 +16049,7 @@ const DotSplitButton = ({
|
|
|
15925
16049
|
tooltipPlacement,
|
|
15926
16050
|
type = 'primary'
|
|
15927
16051
|
}) => {
|
|
15928
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
16052
|
+
const rootClasses = useStylesWithRootClass(rootClassName$y, className, type, disabled ? 'disabled' : '');
|
|
15929
16053
|
const [open, setOpen] = useState(false);
|
|
15930
16054
|
const anchorRef = useRef(null);
|
|
15931
16055
|
const hasEmptyOptions = options.length === 0;
|
|
@@ -15993,15 +16117,15 @@ const DotSplitButton = ({
|
|
|
15993
16117
|
});
|
|
15994
16118
|
};
|
|
15995
16119
|
|
|
15996
|
-
const rootClassName$
|
|
16120
|
+
const rootClassName$x = 'dot-stepper';
|
|
15997
16121
|
const stepListClassName = 'dot-stepper-list';
|
|
15998
|
-
const contentClassName = 'dot-stepper-content';
|
|
16122
|
+
const contentClassName$1 = 'dot-stepper-content';
|
|
15999
16123
|
const StyledStepper = styled.div`
|
|
16000
16124
|
${({
|
|
16001
16125
|
theme,
|
|
16002
16126
|
offset
|
|
16003
16127
|
}) => css`
|
|
16004
|
-
&.${rootClassName$
|
|
16128
|
+
&.${rootClassName$x} {
|
|
16005
16129
|
display: flex;
|
|
16006
16130
|
align-items: flex-start;
|
|
16007
16131
|
padding: 0;
|
|
@@ -16160,7 +16284,7 @@ const StyledStepper = styled.div`
|
|
|
16160
16284
|
}
|
|
16161
16285
|
}
|
|
16162
16286
|
|
|
16163
|
-
.${contentClassName} {
|
|
16287
|
+
.${contentClassName$1} {
|
|
16164
16288
|
width: 100%;
|
|
16165
16289
|
|
|
16166
16290
|
.left {
|
|
@@ -16316,7 +16440,7 @@ const DotStepper = ({
|
|
|
16316
16440
|
return ['left', 'right'].includes(stepsPosition) ? stepsPosition : 'left';
|
|
16317
16441
|
}
|
|
16318
16442
|
};
|
|
16319
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
16443
|
+
const rootClasses = useStylesWithRootClass(rootClassName$x, getStepsPosition(), className);
|
|
16320
16444
|
const stepContentClasses = displayInitialContent || displayFinalContent ? 'center-content' : '';
|
|
16321
16445
|
const stickyBottomClasses = useStylesWithRootClass('actions-container', isStickyBottom ? 'with-top-border' : '');
|
|
16322
16446
|
const actionsClasses = useStylesWithRootClass('actions', displayInitialContent || displayFinalContent ? 'center-actions' : '');
|
|
@@ -16411,7 +16535,7 @@ const DotStepper = ({
|
|
|
16411
16535
|
};
|
|
16412
16536
|
const renderContent = () => {
|
|
16413
16537
|
return jsx("div", {
|
|
16414
|
-
className: contentClassName,
|
|
16538
|
+
className: contentClassName$1,
|
|
16415
16539
|
ref: stepperContentRef,
|
|
16416
16540
|
children: jsxs(ScrollbarContainer, {
|
|
16417
16541
|
offset: offset,
|
|
@@ -16534,12 +16658,12 @@ const DotStepper = ({
|
|
|
16534
16658
|
});
|
|
16535
16659
|
};
|
|
16536
16660
|
|
|
16537
|
-
const rootClassName$
|
|
16661
|
+
const rootClassName$w = 'dot-table-pagination-custom-actions';
|
|
16538
16662
|
const StyledTablePaginationCustomActions = styled.div`
|
|
16539
16663
|
${({
|
|
16540
16664
|
theme
|
|
16541
16665
|
}) => css`
|
|
16542
|
-
&.${rootClassName$
|
|
16666
|
+
&.${rootClassName$w} {
|
|
16543
16667
|
margin-left: ${theme.spacing(2.5)};
|
|
16544
16668
|
display: flex;
|
|
16545
16669
|
align-items: center;
|
|
@@ -16663,7 +16787,7 @@ const DotTablePaginationCustomActions = props => {
|
|
|
16663
16787
|
});
|
|
16664
16788
|
};
|
|
16665
16789
|
return jsxs(StyledTablePaginationCustomActions, {
|
|
16666
|
-
className: rootClassName$
|
|
16790
|
+
className: rootClassName$w,
|
|
16667
16791
|
children: [jsx(DotIconButton, {
|
|
16668
16792
|
ariaLabel: "previous page",
|
|
16669
16793
|
className: "page-control-button",
|
|
@@ -16710,7 +16834,7 @@ const DotTablePaginationCustomActions = props => {
|
|
|
16710
16834
|
});
|
|
16711
16835
|
};
|
|
16712
16836
|
|
|
16713
|
-
const rootClassName$
|
|
16837
|
+
const rootClassName$v = 'dot-table-pagination';
|
|
16714
16838
|
// TO-DO: Determine how to apply styles to standard popper element
|
|
16715
16839
|
const paginationItemClassName = 'dot-pagination-menu-item';
|
|
16716
16840
|
const StyledTablePagination = styled.div`
|
|
@@ -16718,7 +16842,7 @@ const StyledTablePagination = styled.div`
|
|
|
16718
16842
|
theme,
|
|
16719
16843
|
typography
|
|
16720
16844
|
}) => css`
|
|
16721
|
-
.${rootClassName$
|
|
16845
|
+
.${rootClassName$v} {
|
|
16722
16846
|
border-top: 1px solid ${theme.palette.figma.border.default};
|
|
16723
16847
|
|
|
16724
16848
|
.dot-caption,
|
|
@@ -16761,7 +16885,7 @@ const DotTablePagination = ({
|
|
|
16761
16885
|
showJumpToPageActionButton = false,
|
|
16762
16886
|
typography = 'subtitle2'
|
|
16763
16887
|
}) => {
|
|
16764
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
16888
|
+
const rootClasses = useStylesWithRootClass(rootClassName$v, className, showJumpToPageActionButton ? 'with-custom-actions' : '');
|
|
16765
16889
|
const handlePageChange = (event, newPage) => {
|
|
16766
16890
|
onPageChange && onPageChange(newPage);
|
|
16767
16891
|
};
|
|
@@ -16769,7 +16893,7 @@ const DotTablePagination = ({
|
|
|
16769
16893
|
onRowsPerPageChange && onRowsPerPageChange(evt);
|
|
16770
16894
|
};
|
|
16771
16895
|
return /* Container is used to pass 'typography' prop to a styled component */jsx(StyledTablePagination, {
|
|
16772
|
-
className: rootClassName$
|
|
16896
|
+
className: rootClassName$v,
|
|
16773
16897
|
typography: typography,
|
|
16774
16898
|
children: jsx(TablePagination, {
|
|
16775
16899
|
ActionsComponent: showJumpToPageActionButton ? DotTablePaginationCustomActions : undefined,
|
|
@@ -16795,14 +16919,14 @@ const DotTablePagination = ({
|
|
|
16795
16919
|
});
|
|
16796
16920
|
};
|
|
16797
16921
|
|
|
16798
|
-
const rootClassName$
|
|
16922
|
+
const rootClassName$u = 'dot-table';
|
|
16799
16923
|
const MULTISELECT_COLUMN_WIDTH = 52;
|
|
16800
16924
|
const COLLAPSIBLE_COLUMN_WIDTH = 42;
|
|
16801
16925
|
const StyledPaper$1 = styled(Paper)`
|
|
16802
16926
|
${({
|
|
16803
16927
|
theme
|
|
16804
16928
|
}) => css`
|
|
16805
|
-
&.${rootClassName$
|
|
16929
|
+
&.${rootClassName$u} {
|
|
16806
16930
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
16807
16931
|
border: 1px solid ${theme.palette.figma.border.default};
|
|
16808
16932
|
overflow: hidden;
|
|
@@ -16945,10 +17069,10 @@ const StyledMenu$1 = styled(DotMenu)`
|
|
|
16945
17069
|
}
|
|
16946
17070
|
`;
|
|
16947
17071
|
|
|
16948
|
-
const rootClassName$
|
|
17072
|
+
const rootClassName$t = 'dot-tbody';
|
|
16949
17073
|
const StyledTableBody = styled(TableBody)`
|
|
16950
17074
|
${() => css`
|
|
16951
|
-
&.${rootClassName$
|
|
17075
|
+
&.${rootClassName$t} {
|
|
16952
17076
|
tr:last-child td {
|
|
16953
17077
|
border-bottom: none;
|
|
16954
17078
|
}
|
|
@@ -17143,12 +17267,12 @@ function stableSort(array, comparator) {
|
|
|
17143
17267
|
return stabilizedThis.map(el => el[0]);
|
|
17144
17268
|
}
|
|
17145
17269
|
|
|
17146
|
-
const rootClassName$
|
|
17270
|
+
const rootClassName$s = 'dot-td';
|
|
17147
17271
|
const StyledTableCell = styled(TableCell)`
|
|
17148
17272
|
${({
|
|
17149
17273
|
theme
|
|
17150
17274
|
}) => css`
|
|
17151
|
-
&.${rootClassName$
|
|
17275
|
+
&.${rootClassName$s} {
|
|
17152
17276
|
padding-top: 0;
|
|
17153
17277
|
padding-bottom: 0;
|
|
17154
17278
|
|
|
@@ -17243,7 +17367,7 @@ const DotBodyCell = ({
|
|
|
17243
17367
|
const isOverflowing = actionTableCellWidth > (wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current.clientWidth);
|
|
17244
17368
|
setShowMenu(isOverflowing);
|
|
17245
17369
|
};
|
|
17246
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17370
|
+
const rootClasses = useStylesWithRootClass(rootClassName$s, className, noWrap && 'noWrap', Array.isArray(value) && 'actionItems');
|
|
17247
17371
|
const getTableCellValue = () => {
|
|
17248
17372
|
if (Array.isArray(value)) {
|
|
17249
17373
|
return jsx("div", {
|
|
@@ -17311,13 +17435,13 @@ const EmptyDotRow = ({
|
|
|
17311
17435
|
const TABLE_TYPOGRAPHY_VARIANT = 'body1';
|
|
17312
17436
|
const TABLE_DEFAULT_SKELETON_ROWS = 4;
|
|
17313
17437
|
|
|
17314
|
-
const rootClassName$
|
|
17438
|
+
const rootClassName$r = 'dot-th-checkbox';
|
|
17315
17439
|
const styledTableHeaderCheckboxElement = (isCell = true) => {
|
|
17316
17440
|
return styled(isCell ? TableCell : 'div')`
|
|
17317
17441
|
${({
|
|
17318
17442
|
theme
|
|
17319
17443
|
}) => css`
|
|
17320
|
-
&.${rootClassName$
|
|
17444
|
+
&.${rootClassName$r} {
|
|
17321
17445
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
17322
17446
|
padding: ${theme.spacing(0, 1)};
|
|
17323
17447
|
width: ${theme.spacing(5)};
|
|
@@ -17345,7 +17469,7 @@ const DotHeaderCheckboxCell = ({
|
|
|
17345
17469
|
isFromTableSelectionToolbar,
|
|
17346
17470
|
multiSelectHeader
|
|
17347
17471
|
}) => {
|
|
17348
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17472
|
+
const rootClasses = useStylesWithRootClass(rootClassName$r, className, isFromTableSelectionToolbar ? 'table-selection-toolbar-checkbox' : '');
|
|
17349
17473
|
const [multiSelectState, setMultiSelectState] = useState('unchecked');
|
|
17350
17474
|
const {
|
|
17351
17475
|
onCheckAllChange,
|
|
@@ -17395,12 +17519,12 @@ const DotHeaderCheckboxCell = ({
|
|
|
17395
17519
|
});
|
|
17396
17520
|
};
|
|
17397
17521
|
|
|
17398
|
-
const rootClassName$
|
|
17522
|
+
const rootClassName$q = 'dot-th';
|
|
17399
17523
|
const StyledTableHeaderCell = styled(TableCell)`
|
|
17400
17524
|
${({
|
|
17401
17525
|
theme
|
|
17402
17526
|
}) => css`
|
|
17403
|
-
&.${rootClassName$
|
|
17527
|
+
&.${rootClassName$q} {
|
|
17404
17528
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
17405
17529
|
|
|
17406
17530
|
&.MuiTableCell-alignCenter > span.MuiTableSortLabel-root {
|
|
@@ -17440,7 +17564,7 @@ const DotHeaderCell = ({
|
|
|
17440
17564
|
value,
|
|
17441
17565
|
width
|
|
17442
17566
|
}) => {
|
|
17443
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17567
|
+
const rootClasses = useStylesWithRootClass(rootClassName$q, pinned ? 'dot-pinned-cell' : '', className);
|
|
17444
17568
|
const headerTitle = isString$2(value) ? value : null;
|
|
17445
17569
|
const formattedValue = getFormattedTableCellValue(value, typography);
|
|
17446
17570
|
const getCellValue = () => {
|
|
@@ -17531,12 +17655,12 @@ const DotHeaderRow = ({
|
|
|
17531
17655
|
});
|
|
17532
17656
|
};
|
|
17533
17657
|
|
|
17534
|
-
const rootClassName$
|
|
17658
|
+
const rootClassName$p = 'dot-tr';
|
|
17535
17659
|
const StyledTableRowStyles = styled(TableRow)`
|
|
17536
17660
|
${({
|
|
17537
17661
|
theme
|
|
17538
17662
|
}) => css`
|
|
17539
|
-
&.${rootClassName$
|
|
17663
|
+
&.${rootClassName$p} {
|
|
17540
17664
|
&.selected {
|
|
17541
17665
|
&,
|
|
17542
17666
|
.dot-td.dot-pinned-cell,
|
|
@@ -17762,12 +17886,12 @@ const ExpandCollapseCell = ({
|
|
|
17762
17886
|
});
|
|
17763
17887
|
};
|
|
17764
17888
|
|
|
17765
|
-
const rootClassName$
|
|
17889
|
+
const rootClassName$o = 'dot-td-checkbox';
|
|
17766
17890
|
const StyledTableBodyCheckboxCell = styled(TableCell)`
|
|
17767
17891
|
${({
|
|
17768
17892
|
theme
|
|
17769
17893
|
}) => css`
|
|
17770
|
-
&.${rootClassName$
|
|
17894
|
+
&.${rootClassName$o} {
|
|
17771
17895
|
padding: ${theme.spacing(0, 1)};
|
|
17772
17896
|
width: ${theme.spacing(5)};
|
|
17773
17897
|
|
|
@@ -17786,7 +17910,7 @@ const DotBodyCheckboxCell = ({
|
|
|
17786
17910
|
onChange,
|
|
17787
17911
|
rowId
|
|
17788
17912
|
}) => {
|
|
17789
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17913
|
+
const rootClasses = useStylesWithRootClass(rootClassName$o, className);
|
|
17790
17914
|
const [isCheckboxChecked, setIsCheckboxChecked] = useState(isChecked);
|
|
17791
17915
|
/** This effect is used when 'checked' status is changed from the outside */
|
|
17792
17916
|
useEffect(() => {
|
|
@@ -17839,7 +17963,7 @@ const DotTableRow = ({
|
|
|
17839
17963
|
selectedTableRowIds
|
|
17840
17964
|
} = multiSelectBody || {};
|
|
17841
17965
|
const isCheckboxChecked = selectedTableRowIds && selectedTableRowIds.includes(id) || false;
|
|
17842
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17966
|
+
const rootClasses = useStylesWithRootClass(rootClassName$p, isCheckboxChecked ? 'selected' : undefined, className);
|
|
17843
17967
|
const renderCheckboxCell = () => {
|
|
17844
17968
|
return jsx(DotBodyCheckboxCell, {
|
|
17845
17969
|
ariaLabel: "Click to select this row",
|
|
@@ -17960,7 +18084,7 @@ const DotTableBody = ({
|
|
|
17960
18084
|
return jsxs(Fragment, {
|
|
17961
18085
|
children: [jsx(StyledTableBody, {
|
|
17962
18086
|
classes: {
|
|
17963
|
-
root: rootClassName$
|
|
18087
|
+
root: rootClassName$t
|
|
17964
18088
|
},
|
|
17965
18089
|
children: getTableBodyRows()
|
|
17966
18090
|
}), jsx(StyledMenu$1, {
|
|
@@ -17975,12 +18099,12 @@ const DotTableBody = ({
|
|
|
17975
18099
|
});
|
|
17976
18100
|
};
|
|
17977
18101
|
|
|
17978
|
-
const rootClassName$
|
|
18102
|
+
const rootClassName$n = 'dot-table-selection-toolbar';
|
|
17979
18103
|
const StyledTableSelectionToolbar = styled(DotActionToolbar)`
|
|
17980
18104
|
${({
|
|
17981
18105
|
theme
|
|
17982
18106
|
}) => css`
|
|
17983
|
-
&.${rootClassName$
|
|
18107
|
+
&.${rootClassName$n} {
|
|
17984
18108
|
display: flex;
|
|
17985
18109
|
align-items: center;
|
|
17986
18110
|
justify-content: space-between;
|
|
@@ -18035,7 +18159,7 @@ const DotTableSelectionToolbar = ({
|
|
|
18035
18159
|
multiSelectHeader,
|
|
18036
18160
|
selectedRowsNumber
|
|
18037
18161
|
}) => {
|
|
18038
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18162
|
+
const rootClasses = useStylesWithRootClass(rootClassName$n, className);
|
|
18039
18163
|
return jsxs(StyledTableSelectionToolbar, {
|
|
18040
18164
|
ariaLabel: ariaLabel,
|
|
18041
18165
|
className: rootClasses,
|
|
@@ -18121,7 +18245,7 @@ const DotTable = ({
|
|
|
18121
18245
|
setPage(page);
|
|
18122
18246
|
}
|
|
18123
18247
|
}, [page]);
|
|
18124
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18248
|
+
const rootClasses = useStylesWithRootClass(rootClassName$u, className, loading ? 'loading' : '', showMultiselectOverTableHeaderRow ? 'with-multiselect-over-table-header' : '', showMultiselectOverTableHeaderRow && !selectedRowsNumber ? 'hidden-multiselect' : '');
|
|
18125
18249
|
const updateData = (newOrder, newOrderBy, newPage, newRowsPerPage) => {
|
|
18126
18250
|
const newData = stableSort(data, getComparator(newOrder, newOrderBy));
|
|
18127
18251
|
setPageData(newRowsPerPage ? newData.slice(newPage * newRowsPerPage, newPage * newRowsPerPage + newRowsPerPage) : newData);
|
|
@@ -18324,7 +18448,7 @@ const DotTableAction = ({
|
|
|
18324
18448
|
});
|
|
18325
18449
|
};
|
|
18326
18450
|
|
|
18327
|
-
const rootClassName$
|
|
18451
|
+
const rootClassName$m = 'dot-table-actions';
|
|
18328
18452
|
const TableActionsContainer = styled.div`
|
|
18329
18453
|
overflow: hidden;
|
|
18330
18454
|
text-overflow: clip;
|
|
@@ -18414,7 +18538,7 @@ const DotTableActions = ({
|
|
|
18414
18538
|
};
|
|
18415
18539
|
return jsxs(Fragment, {
|
|
18416
18540
|
children: [jsxs(TableActionsContainer, {
|
|
18417
|
-
className: rootClassName$
|
|
18541
|
+
className: rootClassName$m,
|
|
18418
18542
|
ref: wrapperRef,
|
|
18419
18543
|
children: [!showMenu && renderTableActions(), (showMenu || actions.length > 2) && jsx(DotIconButton, {
|
|
18420
18544
|
ariaLabel: "more options",
|
|
@@ -18438,12 +18562,12 @@ const DotTableActions = ({
|
|
|
18438
18562
|
});
|
|
18439
18563
|
};
|
|
18440
18564
|
|
|
18441
|
-
const rootClassName$
|
|
18565
|
+
const rootClassName$l = 'dot-tabs';
|
|
18442
18566
|
const StyledTabs = styled(Tabs)`
|
|
18443
18567
|
${({
|
|
18444
18568
|
theme
|
|
18445
18569
|
}) => css`
|
|
18446
|
-
&.${rootClassName$
|
|
18570
|
+
&.${rootClassName$l} {
|
|
18447
18571
|
&.MuiTabs-root {
|
|
18448
18572
|
width: 100%;
|
|
18449
18573
|
}
|
|
@@ -18496,7 +18620,7 @@ const DotTabs = ({
|
|
|
18496
18620
|
centered = false,
|
|
18497
18621
|
className,
|
|
18498
18622
|
color,
|
|
18499
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
18623
|
+
'data-pendoid': dataPendoId = rootClassName$l,
|
|
18500
18624
|
'data-testid': dataTestId,
|
|
18501
18625
|
initialValue = 0,
|
|
18502
18626
|
onChange,
|
|
@@ -18505,7 +18629,7 @@ const DotTabs = ({
|
|
|
18505
18629
|
variant = 'standard'
|
|
18506
18630
|
}) => {
|
|
18507
18631
|
const [value, setValue] = useState(initialValue);
|
|
18508
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18632
|
+
const rootClasses = useStylesWithRootClass(rootClassName$l, className);
|
|
18509
18633
|
useEffect(() => {
|
|
18510
18634
|
if (color) {
|
|
18511
18635
|
console.warn('DEPRECATED: `color` prop is deprecated in `<DotTabs>`, please remove any usage of it in your application.');
|
|
@@ -18559,9 +18683,9 @@ const DotTabs = ({
|
|
|
18559
18683
|
});
|
|
18560
18684
|
};
|
|
18561
18685
|
|
|
18562
|
-
const rootClassName$
|
|
18563
|
-
const containerClassName = `${rootClassName$
|
|
18564
|
-
const dropZoneClassName = `${rootClassName$
|
|
18686
|
+
const rootClassName$k = 'dot-file-upload';
|
|
18687
|
+
const containerClassName = `${rootClassName$k}-container`;
|
|
18688
|
+
const dropZoneClassName = `${rootClassName$k}-drop-zone`;
|
|
18565
18689
|
const StyledFileUploadContainer = styled.div`
|
|
18566
18690
|
${({
|
|
18567
18691
|
theme
|
|
@@ -18581,7 +18705,7 @@ const StyledFileUpload = styled.div`
|
|
|
18581
18705
|
${({
|
|
18582
18706
|
theme
|
|
18583
18707
|
}) => css`
|
|
18584
|
-
&.${rootClassName$
|
|
18708
|
+
&.${rootClassName$k}.${dropZoneClassName} {
|
|
18585
18709
|
align-items: center;
|
|
18586
18710
|
background: ${theme.palette.figma.background.level0.bckgGray};
|
|
18587
18711
|
border: 2px dashed ${theme.palette.figma.border.defaultButton};
|
|
@@ -18613,12 +18737,12 @@ const StyledFileUpload = styled.div`
|
|
|
18613
18737
|
`}
|
|
18614
18738
|
`;
|
|
18615
18739
|
|
|
18616
|
-
const rootClassName$
|
|
18740
|
+
const rootClassName$j = 'dot-file-list-item';
|
|
18617
18741
|
const StyledFileListItem = styled(StyledListItem)`
|
|
18618
18742
|
${({
|
|
18619
18743
|
theme
|
|
18620
18744
|
}) => css`
|
|
18621
|
-
&.${rootClassName$
|
|
18745
|
+
&.${rootClassName$j} {
|
|
18622
18746
|
border-bottom: 1px solid ${theme.palette.figma.border.default};
|
|
18623
18747
|
&:hover {
|
|
18624
18748
|
cursor: pointer;
|
|
@@ -18630,7 +18754,7 @@ const StyledFileListItem = styled(StyledListItem)`
|
|
|
18630
18754
|
outline: none;
|
|
18631
18755
|
}
|
|
18632
18756
|
|
|
18633
|
-
&.file-success:not(:hover, :focus-visible) .${rootClassName$
|
|
18757
|
+
&.file-success:not(:hover, :focus-visible) .${rootClassName$j}-end-icon {
|
|
18634
18758
|
i:before {
|
|
18635
18759
|
color: ${theme.palette.figma.success.normal};
|
|
18636
18760
|
}
|
|
@@ -18640,7 +18764,7 @@ const StyledFileListItem = styled(StyledListItem)`
|
|
|
18640
18764
|
}
|
|
18641
18765
|
}
|
|
18642
18766
|
|
|
18643
|
-
&.file-error:not(:hover, :focus-visible) .${rootClassName$
|
|
18767
|
+
&.file-error:not(:hover, :focus-visible) .${rootClassName$j}-end-icon {
|
|
18644
18768
|
i:before,
|
|
18645
18769
|
.MuiListItemText-secondary {
|
|
18646
18770
|
color: ${theme.palette.figma.destructive.normal};
|
|
@@ -18682,7 +18806,7 @@ const DotFileListItem = ({
|
|
|
18682
18806
|
onKeyPress,
|
|
18683
18807
|
tabIndex = 0
|
|
18684
18808
|
}) => {
|
|
18685
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18809
|
+
const rootClasses = useStylesWithRootClass(rootClassName$j, className, error ? 'file-error' : 'file-success');
|
|
18686
18810
|
const defaultIcon = error ? 'error-solid' : 'check-solid';
|
|
18687
18811
|
const [endIcon, setEndIcon] = useState(defaultIcon);
|
|
18688
18812
|
const handleItemClick = clickedFile => _event => onClick === null || onClick === void 0 ? void 0 : onClick(clickedFile);
|
|
@@ -18715,7 +18839,7 @@ const DotFileListItem = ({
|
|
|
18715
18839
|
})]
|
|
18716
18840
|
}), jsx(DotIconButton, {
|
|
18717
18841
|
ariaLabel: "delete file",
|
|
18718
|
-
className: `${rootClassName$
|
|
18842
|
+
className: `${rootClassName$j}-end-icon`,
|
|
18719
18843
|
"data-testid": dataTestId && `${dataTestId}-end-icon`,
|
|
18720
18844
|
disabled: disableDelete,
|
|
18721
18845
|
iconId: endIcon,
|
|
@@ -18839,7 +18963,7 @@ const DotFileUpload = ({
|
|
|
18839
18963
|
buttonOnly = false,
|
|
18840
18964
|
className,
|
|
18841
18965
|
contentErrors,
|
|
18842
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
18966
|
+
'data-pendoid': dataPendoId = rootClassName$k,
|
|
18843
18967
|
'data-testid': dataTestId,
|
|
18844
18968
|
disabled,
|
|
18845
18969
|
hideFilesList,
|
|
@@ -18852,7 +18976,7 @@ const DotFileUpload = ({
|
|
|
18852
18976
|
const [uploadedFiles, setUploadedFiles] = useState([]);
|
|
18853
18977
|
const [hasMaxFilesError, setHasMaxFilesError] = useState(false);
|
|
18854
18978
|
const isUploadDisabled = disabled || maxFiles && uploadedFiles.length >= maxFiles;
|
|
18855
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18979
|
+
const rootClasses = useStylesWithRootClass(rootClassName$k, className, !buttonOnly ? dropZoneClassName : '', isUploadDisabled ? 'disabled' : '');
|
|
18856
18980
|
const maxFilesClasses = useStylesWithRootClass('dot-max-files-message', hasMaxFilesError ? 'dot-max-files-reached' : '');
|
|
18857
18981
|
const allowMultiple = maxFiles === undefined || maxFiles > 1;
|
|
18858
18982
|
const setNewlyUploadedFiles = (acceptedFiles, fileRejections) => {
|
|
@@ -18924,13 +19048,13 @@ const DotFileUpload = ({
|
|
|
18924
19048
|
});
|
|
18925
19049
|
};
|
|
18926
19050
|
|
|
18927
|
-
const rootClassName$
|
|
19051
|
+
const rootClassName$i = 'dot-fab';
|
|
18928
19052
|
const StyledFab = styled(Fab)`
|
|
18929
19053
|
${({
|
|
18930
19054
|
theme,
|
|
18931
19055
|
color
|
|
18932
19056
|
}) => css`
|
|
18933
|
-
&.${rootClassName$
|
|
19057
|
+
&.${rootClassName$i} {
|
|
18934
19058
|
${color === 'default' ? css`
|
|
18935
19059
|
background-color: ${theme.palette.figma.typography.white};
|
|
18936
19060
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -18970,7 +19094,7 @@ const DotFab = ({
|
|
|
18970
19094
|
children,
|
|
18971
19095
|
className,
|
|
18972
19096
|
color = 'default',
|
|
18973
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
19097
|
+
'data-pendoid': dataPendoId = rootClassName$i,
|
|
18974
19098
|
'data-testid': dataTestId,
|
|
18975
19099
|
disableRipple = false,
|
|
18976
19100
|
disabled = false,
|
|
@@ -18978,7 +19102,7 @@ const DotFab = ({
|
|
|
18978
19102
|
size = 'large',
|
|
18979
19103
|
variant = 'circular'
|
|
18980
19104
|
}) => {
|
|
18981
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
19105
|
+
const rootClasses = useStylesWithRootClass(rootClassName$i, className);
|
|
18982
19106
|
return jsx(StyledFab, {
|
|
18983
19107
|
"aria-label": ariaLabel,
|
|
18984
19108
|
color: color,
|
|
@@ -18994,12 +19118,12 @@ const DotFab = ({
|
|
|
18994
19118
|
});
|
|
18995
19119
|
};
|
|
18996
19120
|
|
|
18997
|
-
const rootClassName$
|
|
19121
|
+
const rootClassName$h = 'dot-divider';
|
|
18998
19122
|
const StyledDivider = styled(Divider)`
|
|
18999
19123
|
${({
|
|
19000
19124
|
theme
|
|
19001
19125
|
}) => css`
|
|
19002
|
-
&.${rootClassName$
|
|
19126
|
+
&.${rootClassName$h} {
|
|
19003
19127
|
color: ${theme.palette.figma.border.darker};
|
|
19004
19128
|
|
|
19005
19129
|
.MuiDivider-light {
|
|
@@ -19019,7 +19143,7 @@ const DotDivider = ({
|
|
|
19019
19143
|
orientation,
|
|
19020
19144
|
variant
|
|
19021
19145
|
}) => {
|
|
19022
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
19146
|
+
const rootClasses = useStylesWithRootClass(rootClassName$h, className);
|
|
19023
19147
|
return jsx(StyledDivider, {
|
|
19024
19148
|
absolute: absolute,
|
|
19025
19149
|
"aria-label": ariaLabel,
|
|
@@ -19048,7 +19172,7 @@ const DotPopper = ({
|
|
|
19048
19172
|
placement
|
|
19049
19173
|
}) => {
|
|
19050
19174
|
const [arrowRef, setArrowRef] = useState(null);
|
|
19051
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
19175
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1j, className);
|
|
19052
19176
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19053
19177
|
const handleClickAway = event => {
|
|
19054
19178
|
if (onClickAway && (!anchorEl || !anchorEl.contains(event.currentTarget))) {
|
|
@@ -19113,14 +19237,14 @@ const getListItemLayout = listItems => {
|
|
|
19113
19237
|
}));
|
|
19114
19238
|
};
|
|
19115
19239
|
|
|
19116
|
-
const rootClassName$
|
|
19240
|
+
const rootClassName$g = 'dot-draggable-list';
|
|
19117
19241
|
const listItemClassName = 'dot-draggable-list-item';
|
|
19118
19242
|
const StyledDraggableList = styled.div`
|
|
19119
19243
|
${({
|
|
19120
19244
|
theme,
|
|
19121
19245
|
draggableHandle
|
|
19122
19246
|
}) => css`
|
|
19123
|
-
&.${rootClassName$
|
|
19247
|
+
&.${rootClassName$g} {
|
|
19124
19248
|
padding: ${theme.spacing(1, 0)};
|
|
19125
19249
|
position: relative;
|
|
19126
19250
|
|
|
@@ -19155,7 +19279,7 @@ const ListGridLayout = WidthProvider(GridLayout);
|
|
|
19155
19279
|
const DotDraggableList = ({
|
|
19156
19280
|
ariaLabel,
|
|
19157
19281
|
className,
|
|
19158
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
19282
|
+
'data-pendoid': dataPendoId = rootClassName$g,
|
|
19159
19283
|
'data-testid': dataTestId,
|
|
19160
19284
|
disableDrag,
|
|
19161
19285
|
draggableHandle,
|
|
@@ -19164,7 +19288,7 @@ const DotDraggableList = ({
|
|
|
19164
19288
|
rowHeight = DEFAULT_LIST_ITEM_HEIGHT,
|
|
19165
19289
|
width = DEFAULT_LIST_WIDTH
|
|
19166
19290
|
}) => {
|
|
19167
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
19291
|
+
const rootClasses = useStylesWithRootClass(rootClassName$g, className, draggableHandle ? 'with-draggable-handle' : '');
|
|
19168
19292
|
const listItemClasses = useStylesWithRootClass(listItemClassName, draggableHandle && !disableDrag ? 'with-handle-grab-cursor' : '', draggableHandle || disableDrag ? 'with-default-cursor' : '');
|
|
19169
19293
|
const listWidth = isNumber(width) ? `${width}px` : width;
|
|
19170
19294
|
const [orderedItems, setOrderedItems] = useState([]);
|
|
@@ -22440,7 +22564,7 @@ cjs.exports.DraggableCore = DraggableCore;
|
|
|
22440
22564
|
var cjsExports = cjs.exports;
|
|
22441
22565
|
var Draggable$1 = /*@__PURE__*/getDefaultExportFromCjs(cjsExports);
|
|
22442
22566
|
|
|
22443
|
-
const rootClassName$
|
|
22567
|
+
const rootClassName$f = 'dot-draggable-window';
|
|
22444
22568
|
const defaultWidth = '600px';
|
|
22445
22569
|
const defaultHeight = '324px';
|
|
22446
22570
|
const StyledPaper = styled(Paper)`
|
|
@@ -22449,7 +22573,7 @@ const StyledPaper = styled(Paper)`
|
|
|
22449
22573
|
$maxHeight,
|
|
22450
22574
|
$maxWidth
|
|
22451
22575
|
}) => css`
|
|
22452
|
-
&.${rootClassName$
|
|
22576
|
+
&.${rootClassName$f} {
|
|
22453
22577
|
max-width: ${$maxWidth !== null && $maxWidth !== void 0 ? $maxWidth : defaultWidth};
|
|
22454
22578
|
max-height: ${$maxHeight !== null && $maxHeight !== void 0 ? $maxHeight : defaultHeight};
|
|
22455
22579
|
${$maxWidth ? '' : `width: ${defaultWidth};`}
|
|
@@ -22487,7 +22611,7 @@ const StyledPaper = styled(Paper)`
|
|
|
22487
22611
|
const DotDraggableWindow = ({
|
|
22488
22612
|
ariaLabel,
|
|
22489
22613
|
anchorEl,
|
|
22490
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
22614
|
+
'data-pendoid': dataPendoId = rootClassName$f,
|
|
22491
22615
|
'data-testid': dataTestId,
|
|
22492
22616
|
className,
|
|
22493
22617
|
children,
|
|
@@ -22496,7 +22620,7 @@ const DotDraggableWindow = ({
|
|
|
22496
22620
|
onClose,
|
|
22497
22621
|
title
|
|
22498
22622
|
}) => {
|
|
22499
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
22623
|
+
const rootClasses = useStylesWithRootClass(rootClassName$f, className);
|
|
22500
22624
|
const nodeRef = useRef(null);
|
|
22501
22625
|
return jsx(Draggable$1, {
|
|
22502
22626
|
bounds: "body",
|
|
@@ -22538,12 +22662,12 @@ const DotDraggableWindow = ({
|
|
|
22538
22662
|
});
|
|
22539
22663
|
};
|
|
22540
22664
|
|
|
22541
|
-
const rootClassName$
|
|
22665
|
+
const rootClassName$e = 'dot-linear-progress';
|
|
22542
22666
|
const StyledLinearProgress = styled(LinearProgress)`
|
|
22543
22667
|
${({
|
|
22544
22668
|
theme
|
|
22545
22669
|
}) => css`
|
|
22546
|
-
&.${rootClassName$
|
|
22670
|
+
&.${rootClassName$e} {
|
|
22547
22671
|
&.MuiLinearProgress-colorError {
|
|
22548
22672
|
color: ${theme.palette.figma.inProgress.error};
|
|
22549
22673
|
}
|
|
@@ -22575,7 +22699,7 @@ const DotLinearProgress = ({
|
|
|
22575
22699
|
valueBuffer,
|
|
22576
22700
|
variant = 'indeterminate'
|
|
22577
22701
|
}) => {
|
|
22578
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
22702
|
+
const rootClasses = useStylesWithRootClass(rootClassName$e, className);
|
|
22579
22703
|
useEffect(() => {
|
|
22580
22704
|
if (!ariaLabel) {
|
|
22581
22705
|
console.warn('a11y: DotLinearProgress must have an ariaLabel to describe the progress bar');
|
|
@@ -22626,7 +22750,7 @@ const DotDatePicker = ({
|
|
|
22626
22750
|
autoFocus = false,
|
|
22627
22751
|
className,
|
|
22628
22752
|
closeOnSelect = true,
|
|
22629
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
22753
|
+
'data-pendoid': dataPendoId = rootClassName$I,
|
|
22630
22754
|
'data-testid': dataTestId,
|
|
22631
22755
|
defaultValue,
|
|
22632
22756
|
disableOpenPicker,
|
|
@@ -22667,7 +22791,7 @@ const DotDatePicker = ({
|
|
|
22667
22791
|
const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
|
|
22668
22792
|
const isInputReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
|
|
22669
22793
|
const inputRef = useRef(null);
|
|
22670
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
22794
|
+
const rootClasses = useStylesWithRootClass(rootClassName$I, className, isInputReadOnly ? 'read-only' : '');
|
|
22671
22795
|
const containerClasses = useStylesWithRootClass(containerClassName$2, fullWidth ? 'full-width' : '', className);
|
|
22672
22796
|
const focusInput = ref => {
|
|
22673
22797
|
setTimeout(() => {
|
|
@@ -22888,7 +23012,7 @@ const DotTimePicker = ({
|
|
|
22888
23012
|
ariaLabel,
|
|
22889
23013
|
autoFocus = false,
|
|
22890
23014
|
className,
|
|
22891
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
23015
|
+
'data-pendoid': dataPendoId = rootClassName$H,
|
|
22892
23016
|
'data-testid': dataTestId,
|
|
22893
23017
|
defaultValue,
|
|
22894
23018
|
disableOpenPicker = false,
|
|
@@ -22920,7 +23044,7 @@ const DotTimePicker = ({
|
|
|
22920
23044
|
const hasValueWithoutChangeHandler = value !== undefined && onChange === undefined;
|
|
22921
23045
|
const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
|
|
22922
23046
|
const isComponentReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
|
|
22923
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
23047
|
+
const rootClasses = useStylesWithRootClass(rootClassName$H, className, isComponentReadOnly ? 'read-only' : '');
|
|
22924
23048
|
const containerClasses = useStylesWithRootClass(containerClassName$1, fullWidth ? 'full-width' : '', className);
|
|
22925
23049
|
const inputRef = useRef(null);
|
|
22926
23050
|
const [isPickerOpened, setIsPickerOpened] = useState(false);
|
|
@@ -23216,13 +23340,13 @@ const DotTimePicker = ({
|
|
|
23216
23340
|
});
|
|
23217
23341
|
};
|
|
23218
23342
|
|
|
23219
|
-
const rootClassName$
|
|
23343
|
+
const rootClassName$d = 'dot-carousel';
|
|
23220
23344
|
const StyledCarousel = styled.div`
|
|
23221
23345
|
${({
|
|
23222
23346
|
backgroundColor,
|
|
23223
23347
|
theme
|
|
23224
23348
|
}) => css`
|
|
23225
|
-
&.${rootClassName$
|
|
23349
|
+
&.${rootClassName$d} {
|
|
23226
23350
|
display: flex;
|
|
23227
23351
|
flex-direction: column;
|
|
23228
23352
|
justify-content: space-between;
|
|
@@ -23322,7 +23446,7 @@ const DotCarousel = ({
|
|
|
23322
23446
|
progressIndicator,
|
|
23323
23447
|
showPagesButtons = true
|
|
23324
23448
|
}) => {
|
|
23325
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
23449
|
+
const rootClasses = useStylesWithRootClass(rootClassName$d, className, backgroundColor ? 'with-background-color' : '');
|
|
23326
23450
|
const rightNavigationButtonClasses = useStylesWithRootClass('carousel-right-arrow', displayNavigationButtons);
|
|
23327
23451
|
const leftNavigationButtonClasses = useStylesWithRootClass('carousel-left-arrow', displayNavigationButtons);
|
|
23328
23452
|
const createUuids = () => {
|
|
@@ -23473,13 +23597,13 @@ const DotCarousel = ({
|
|
|
23473
23597
|
});
|
|
23474
23598
|
};
|
|
23475
23599
|
|
|
23476
|
-
const rootClassName$
|
|
23600
|
+
const rootClassName$c = 'dot-sticky-with-border';
|
|
23477
23601
|
const StyledStickyWithBorder = styled.div`
|
|
23478
23602
|
${({
|
|
23479
23603
|
pinnedStickyBorder,
|
|
23480
23604
|
unpinnedStickyBorder
|
|
23481
23605
|
}) => css`
|
|
23482
|
-
&.${rootClassName$
|
|
23606
|
+
&.${rootClassName$c} {
|
|
23483
23607
|
position: sticky;
|
|
23484
23608
|
top: -1px;
|
|
23485
23609
|
|
|
@@ -23507,7 +23631,7 @@ const DotStickyWithBorder = ({
|
|
|
23507
23631
|
}) => {
|
|
23508
23632
|
const [isPinned, setIsPinned] = useState(false);
|
|
23509
23633
|
const ref = useRef(undefined);
|
|
23510
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
23634
|
+
const rootClasses = useStylesWithRootClass(rootClassName$c, className, isPinned ? 'pinned' : 'unpinned');
|
|
23511
23635
|
useEffect(() => {
|
|
23512
23636
|
const element = ref.current;
|
|
23513
23637
|
const observer = new IntersectionObserver(([e]) => setIsPinned(e.intersectionRatio < 1), {
|
|
@@ -23529,18 +23653,18 @@ const DotStickyWithBorder = ({
|
|
|
23529
23653
|
});
|
|
23530
23654
|
};
|
|
23531
23655
|
|
|
23532
|
-
const rootClassName$
|
|
23656
|
+
const rootClassName$b = 'dot--board';
|
|
23533
23657
|
const classNames$5 = {
|
|
23534
|
-
root: rootClassName$
|
|
23535
|
-
spacingNormal: `${rootClassName$
|
|
23536
|
-
spacingDense: `${rootClassName$
|
|
23537
|
-
loading: `${rootClassName$
|
|
23658
|
+
root: rootClassName$b,
|
|
23659
|
+
spacingNormal: `${rootClassName$b}-normal`,
|
|
23660
|
+
spacingDense: `${rootClassName$b}-dense`,
|
|
23661
|
+
loading: `${rootClassName$b}-loading`
|
|
23538
23662
|
};
|
|
23539
23663
|
const StyledBoard = styled.div`
|
|
23540
23664
|
${({
|
|
23541
23665
|
theme
|
|
23542
23666
|
}) => css`
|
|
23543
|
-
&.${rootClassName$
|
|
23667
|
+
&.${rootClassName$b} {
|
|
23544
23668
|
display: flex;
|
|
23545
23669
|
overflow-x: auto;
|
|
23546
23670
|
flex: 1;
|
|
@@ -23548,7 +23672,7 @@ const StyledBoard = styled.div`
|
|
|
23548
23672
|
}
|
|
23549
23673
|
|
|
23550
23674
|
@media (max-width: 650px) {
|
|
23551
|
-
&.${rootClassName$
|
|
23675
|
+
&.${rootClassName$b} {
|
|
23552
23676
|
justify-content: center;
|
|
23553
23677
|
}
|
|
23554
23678
|
}
|
|
@@ -23649,18 +23773,18 @@ const Board = React__default.forwardRef(({
|
|
|
23649
23773
|
});
|
|
23650
23774
|
});
|
|
23651
23775
|
|
|
23652
|
-
const rootClassName$
|
|
23776
|
+
const rootClassName$a = 'dot--board-column';
|
|
23653
23777
|
const classNames$4 = {
|
|
23654
|
-
root: rootClassName$
|
|
23655
|
-
spacingNormal: `${rootClassName$
|
|
23656
|
-
spacingDense: `${rootClassName$
|
|
23657
|
-
collapse: `${rootClassName$
|
|
23778
|
+
root: rootClassName$a,
|
|
23779
|
+
spacingNormal: `${rootClassName$a}-normal`,
|
|
23780
|
+
spacingDense: `${rootClassName$a}-dense`,
|
|
23781
|
+
collapse: `${rootClassName$a}-collapse`
|
|
23658
23782
|
};
|
|
23659
23783
|
const StyledBoardColumn = styled.div`
|
|
23660
23784
|
${({
|
|
23661
23785
|
theme
|
|
23662
23786
|
}) => css`
|
|
23663
|
-
&.${rootClassName$
|
|
23787
|
+
&.${rootClassName$a} {
|
|
23664
23788
|
display: flex;
|
|
23665
23789
|
flex-direction: column;
|
|
23666
23790
|
overflow: hidden;
|
|
@@ -23751,13 +23875,13 @@ const BoardColumn = React__default.forwardRef(({
|
|
|
23751
23875
|
});
|
|
23752
23876
|
});
|
|
23753
23877
|
|
|
23754
|
-
const rootClassName$
|
|
23878
|
+
const rootClassName$9 = 'dot--board-column-header';
|
|
23755
23879
|
const classNames$3 = {
|
|
23756
|
-
root: rootClassName$
|
|
23757
|
-
spacingNormal: `${rootClassName$
|
|
23758
|
-
spacingDense: `${rootClassName$
|
|
23759
|
-
colorBar: `${rootClassName$
|
|
23760
|
-
title: `${rootClassName$
|
|
23880
|
+
root: rootClassName$9,
|
|
23881
|
+
spacingNormal: `${rootClassName$9}-normal`,
|
|
23882
|
+
spacingDense: `${rootClassName$9}-dense`,
|
|
23883
|
+
colorBar: `${rootClassName$9}-color-bar`,
|
|
23884
|
+
title: `${rootClassName$9}-title`
|
|
23761
23885
|
};
|
|
23762
23886
|
const StyledBoardColumnHeader = styled.div`
|
|
23763
23887
|
${({
|
|
@@ -23825,11 +23949,11 @@ const BoardColumnHeader = ({
|
|
|
23825
23949
|
});
|
|
23826
23950
|
};
|
|
23827
23951
|
|
|
23828
|
-
const rootClassName$
|
|
23952
|
+
const rootClassName$8 = 'dot--board-column-items';
|
|
23829
23953
|
const classNames$2 = {
|
|
23830
|
-
root: rootClassName$
|
|
23831
|
-
spacingNormal: `${rootClassName$
|
|
23832
|
-
spacingDense: `${rootClassName$
|
|
23954
|
+
root: rootClassName$8,
|
|
23955
|
+
spacingNormal: `${rootClassName$8}-normal`,
|
|
23956
|
+
spacingDense: `${rootClassName$8}-dense`
|
|
23833
23957
|
};
|
|
23834
23958
|
const StyledBoardColumnItems = styled.div`
|
|
23835
23959
|
${({
|
|
@@ -23881,11 +24005,11 @@ const BoardColumnItems = ({
|
|
|
23881
24005
|
});
|
|
23882
24006
|
};
|
|
23883
24007
|
|
|
23884
|
-
const rootClassName$
|
|
24008
|
+
const rootClassName$7 = 'dot--board-column-action-bar';
|
|
23885
24009
|
const classNames$1 = {
|
|
23886
|
-
root: rootClassName$
|
|
23887
|
-
spacingNormal: `${rootClassName$
|
|
23888
|
-
spacingDense: `${rootClassName$
|
|
24010
|
+
root: rootClassName$7,
|
|
24011
|
+
spacingNormal: `${rootClassName$7}-normal`,
|
|
24012
|
+
spacingDense: `${rootClassName$7}-dense`
|
|
23889
24013
|
};
|
|
23890
24014
|
const StyledBoardColumnActionBar = styled(DotActionToolbar)`
|
|
23891
24015
|
${({
|
|
@@ -23956,13 +24080,13 @@ const BoardColumnCollapse = ({
|
|
|
23956
24080
|
return useMemo(() => collapsed ? children : null, [children, collapsed]);
|
|
23957
24081
|
};
|
|
23958
24082
|
|
|
23959
|
-
const rootClassName$
|
|
24083
|
+
const rootClassName$6 = 'dot--board-column-header';
|
|
23960
24084
|
const classNames = {
|
|
23961
|
-
root: rootClassName$
|
|
23962
|
-
spacingNormal: `${rootClassName$
|
|
23963
|
-
spacingDense: `${rootClassName$
|
|
23964
|
-
title: `${rootClassName$
|
|
23965
|
-
text: `${rootClassName$
|
|
24085
|
+
root: rootClassName$6,
|
|
24086
|
+
spacingNormal: `${rootClassName$6}-normal`,
|
|
24087
|
+
spacingDense: `${rootClassName$6}-dense`,
|
|
24088
|
+
title: `${rootClassName$6}-title`,
|
|
24089
|
+
text: `${rootClassName$6}-text`
|
|
23966
24090
|
};
|
|
23967
24091
|
const StyledBoardColumnSummary = styled.div`
|
|
23968
24092
|
${({
|
|
@@ -24024,12 +24148,12 @@ const BoardColumnSummary = ({
|
|
|
24024
24148
|
});
|
|
24025
24149
|
};
|
|
24026
24150
|
|
|
24027
|
-
const rootClassName$
|
|
24151
|
+
const rootClassName$5 = 'dot-search';
|
|
24028
24152
|
const StyledSearch = styled(DotInputText)`
|
|
24029
24153
|
${({
|
|
24030
24154
|
theme
|
|
24031
24155
|
}) => css`
|
|
24032
|
-
&.${rootClassName$
|
|
24156
|
+
&.${rootClassName$5} {
|
|
24033
24157
|
&.with-value .MuiInputBase-root {
|
|
24034
24158
|
background-color: ${theme.palette.figma.primary.light};
|
|
24035
24159
|
|
|
@@ -24072,7 +24196,7 @@ const DotSearch = _a => {
|
|
|
24072
24196
|
value
|
|
24073
24197
|
} = _a,
|
|
24074
24198
|
rest = __rest(_a, ["ariaLabel", "className", 'data-testid', "disabled", "hasDebounce", "id", "name", "onSearch", "onClear", "placeholder", "value"]);
|
|
24075
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
24199
|
+
const rootClasses = useStylesWithRootClass(rootClassName$5, className, value ? 'with-value' : '');
|
|
24076
24200
|
return jsx(StyledSearch, Object.assign({}, rest, {
|
|
24077
24201
|
"aria-label": ariaLabel,
|
|
24078
24202
|
className: rootClasses,
|
|
@@ -24091,12 +24215,12 @@ const DotSearch = _a => {
|
|
|
24091
24215
|
}));
|
|
24092
24216
|
};
|
|
24093
24217
|
|
|
24094
|
-
const rootClassName$
|
|
24218
|
+
const rootClassName$4 = 'dot-toggle-switch';
|
|
24095
24219
|
const StyledToggleSwitch = styled(Stack)`
|
|
24096
24220
|
${({
|
|
24097
24221
|
theme
|
|
24098
24222
|
}) => css`
|
|
24099
|
-
&.${rootClassName$
|
|
24223
|
+
&.${rootClassName$4} {
|
|
24100
24224
|
gap: ${theme.spacing(2)};
|
|
24101
24225
|
cursor: pointer;
|
|
24102
24226
|
|
|
@@ -24150,7 +24274,7 @@ const StyledToggleSwitch = styled(Stack)`
|
|
|
24150
24274
|
const DotToggleSwitch = ({
|
|
24151
24275
|
ariaLabel,
|
|
24152
24276
|
className,
|
|
24153
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
24277
|
+
'data-pendoid': dataPendoId = rootClassName$4,
|
|
24154
24278
|
'data-testid': dataTestId,
|
|
24155
24279
|
disabled = false,
|
|
24156
24280
|
label,
|
|
@@ -24160,7 +24284,7 @@ const DotToggleSwitch = ({
|
|
|
24160
24284
|
}) => {
|
|
24161
24285
|
const toggleOptions = options.slice(0, 2);
|
|
24162
24286
|
const isChecked = toggleOptions[1].value === value;
|
|
24163
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
24287
|
+
const rootClasses = useStylesWithRootClass(rootClassName$4, className, disabled ? 'dot-disabled' : '');
|
|
24164
24288
|
const toggleValue = () => {
|
|
24165
24289
|
const [firstOption, secondOption] = toggleOptions;
|
|
24166
24290
|
const newValue = value === firstOption.value ? secondOption.value : firstOption.value;
|
|
@@ -25429,13 +25553,13 @@ var Sketch = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
|
25429
25553
|
});
|
|
25430
25554
|
Sketch.displayName = 'Sketch';
|
|
25431
25555
|
|
|
25432
|
-
const rootClassName$
|
|
25556
|
+
const rootClassName$3 = 'dot-color-picker';
|
|
25433
25557
|
const StyledColorPicker = styled(Sketch)`
|
|
25434
25558
|
${({
|
|
25435
25559
|
theme,
|
|
25436
25560
|
$hideShadow
|
|
25437
25561
|
}) => css`
|
|
25438
|
-
&.${rootClassName$
|
|
25562
|
+
&.${rootClassName$3} {
|
|
25439
25563
|
--sketch-background: ${theme.palette.figma.background.level0.componentsBackground} !important;
|
|
25440
25564
|
--sketch-swatch-border-top: none !important;
|
|
25441
25565
|
--sketch-box-shadow: ${theme.shadows[1]} !important;
|
|
@@ -25491,7 +25615,7 @@ const DotColorPicker = ({
|
|
|
25491
25615
|
return jsx(StyledColorPicker, {
|
|
25492
25616
|
"$hideShadow": hideShadow,
|
|
25493
25617
|
"aria-label": ariaLabel,
|
|
25494
|
-
className: rootClassName$
|
|
25618
|
+
className: rootClassName$3,
|
|
25495
25619
|
color: color,
|
|
25496
25620
|
"data-pendoid": dataPendoId,
|
|
25497
25621
|
"data-testid": dataTestId,
|
|
@@ -25506,14 +25630,14 @@ const DotColorPicker = ({
|
|
|
25506
25630
|
});
|
|
25507
25631
|
};
|
|
25508
25632
|
|
|
25509
|
-
const rootClassName = 'dot-select';
|
|
25633
|
+
const rootClassName$2 = 'dot-select';
|
|
25510
25634
|
const StyledSelectContainer = styled.div`
|
|
25511
25635
|
${({
|
|
25512
25636
|
theme,
|
|
25513
25637
|
size,
|
|
25514
25638
|
persistentLabel
|
|
25515
25639
|
}) => css`
|
|
25516
|
-
&.${rootClassName} {
|
|
25640
|
+
&.${rootClassName$2} {
|
|
25517
25641
|
.MuiInputBase-root {
|
|
25518
25642
|
background: ${theme.palette.figma.neutral.normal};
|
|
25519
25643
|
height: ${theme.spacing(7)};
|
|
@@ -25562,7 +25686,7 @@ const DotSelect = ({
|
|
|
25562
25686
|
autoFocus,
|
|
25563
25687
|
className,
|
|
25564
25688
|
defaultValue = '',
|
|
25565
|
-
'data-pendoid': dataPendoId = rootClassName,
|
|
25689
|
+
'data-pendoid': dataPendoId = rootClassName$2,
|
|
25566
25690
|
'data-testid': dataTestId,
|
|
25567
25691
|
disabled = false,
|
|
25568
25692
|
error = false,
|
|
@@ -25586,7 +25710,7 @@ const DotSelect = ({
|
|
|
25586
25710
|
options,
|
|
25587
25711
|
renderOption
|
|
25588
25712
|
}) => {
|
|
25589
|
-
const rootStyles = useStylesWithRootClass(rootClassName, className);
|
|
25713
|
+
const rootStyles = useStylesWithRootClass(rootClassName$2, className);
|
|
25590
25714
|
return jsxs(StyledSelectContainer, {
|
|
25591
25715
|
persistentLabel: persistentLabel,
|
|
25592
25716
|
size: size,
|
|
@@ -25646,4 +25770,171 @@ const DotSelect = ({
|
|
|
25646
25770
|
});
|
|
25647
25771
|
};
|
|
25648
25772
|
|
|
25649
|
-
|
|
25773
|
+
const rootClassName$1 = 'dot-chat-bubble';
|
|
25774
|
+
const actionsClassName = 'dot-chat-bubble-actions';
|
|
25775
|
+
const contentClassName = 'dot-chat-bubble-content';
|
|
25776
|
+
const StyledChatBubble = styled.div`
|
|
25777
|
+
${({
|
|
25778
|
+
theme,
|
|
25779
|
+
$orientation
|
|
25780
|
+
}) => css`
|
|
25781
|
+
&.${rootClassName$1} {
|
|
25782
|
+
display: flex;
|
|
25783
|
+
flex-direction: column;
|
|
25784
|
+
gap: ${theme.spacing(0.5)};
|
|
25785
|
+
width: fit-content;
|
|
25786
|
+
|
|
25787
|
+
.${contentClassName} {
|
|
25788
|
+
overflow-wrap: break-word;
|
|
25789
|
+
padding: ${theme.spacing(1, 2)};
|
|
25790
|
+
border-top-left-radius: ${$orientation === 'left' ? '0' : theme.spacing(2)};
|
|
25791
|
+
border-top-right-radius: ${$orientation === 'right' ? '0' : theme.spacing(2)};
|
|
25792
|
+
border-bottom-right-radius: ${theme.spacing(2)};
|
|
25793
|
+
border-bottom-left-radius: ${theme.spacing(2)};
|
|
25794
|
+
|
|
25795
|
+
&.default {
|
|
25796
|
+
background-color: ${theme.palette.figma.neutral.light};
|
|
25797
|
+
}
|
|
25798
|
+
|
|
25799
|
+
&.info {
|
|
25800
|
+
background-color: ${theme.palette.figma.primary.light};
|
|
25801
|
+
}
|
|
25802
|
+
|
|
25803
|
+
&.error {
|
|
25804
|
+
background-color: ${theme.palette.figma.destructive.light};
|
|
25805
|
+
}
|
|
25806
|
+
|
|
25807
|
+
&.warning {
|
|
25808
|
+
background-color: ${theme.palette.figma.warning.light};
|
|
25809
|
+
}
|
|
25810
|
+
|
|
25811
|
+
&.success {
|
|
25812
|
+
background-color: ${theme.palette.figma.success.light};
|
|
25813
|
+
}
|
|
25814
|
+
|
|
25815
|
+
&.none {
|
|
25816
|
+
padding: 0;
|
|
25817
|
+
background-color: transparent;
|
|
25818
|
+
}
|
|
25819
|
+
}
|
|
25820
|
+
|
|
25821
|
+
.${actionsClassName} {
|
|
25822
|
+
align-self: ${$orientation === 'left' ? 'flex-start' : 'flex-end'};
|
|
25823
|
+
}
|
|
25824
|
+
}
|
|
25825
|
+
`}
|
|
25826
|
+
`;
|
|
25827
|
+
|
|
25828
|
+
const DotChatBubble = ({
|
|
25829
|
+
actions,
|
|
25830
|
+
ariaLabel,
|
|
25831
|
+
ariaRole,
|
|
25832
|
+
className,
|
|
25833
|
+
children,
|
|
25834
|
+
'data-testid': dataTestId,
|
|
25835
|
+
'data-pendoid': dataPendoId,
|
|
25836
|
+
orientation,
|
|
25837
|
+
severity = 'default'
|
|
25838
|
+
}) => {
|
|
25839
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1, className);
|
|
25840
|
+
const contentClasses = useStylesWithRootClass(contentClassName, severity);
|
|
25841
|
+
return jsxs(StyledChatBubble, {
|
|
25842
|
+
"aria-label": ariaLabel,
|
|
25843
|
+
className: rootClasses,
|
|
25844
|
+
"data-pendoid": dataPendoId,
|
|
25845
|
+
"data-testid": dataTestId,
|
|
25846
|
+
role: ariaRole,
|
|
25847
|
+
"$orientation": orientation,
|
|
25848
|
+
children: [jsx("div", {
|
|
25849
|
+
className: contentClasses,
|
|
25850
|
+
"data-testid": dataTestId && `${dataTestId}-content`,
|
|
25851
|
+
children: children
|
|
25852
|
+
}), actions && jsx("div", {
|
|
25853
|
+
className: actionsClassName,
|
|
25854
|
+
children: actions
|
|
25855
|
+
})]
|
|
25856
|
+
});
|
|
25857
|
+
};
|
|
25858
|
+
|
|
25859
|
+
const rootClassName = 'dot-loading-dots';
|
|
25860
|
+
const dotAnimation = keyframes`
|
|
25861
|
+
0%,
|
|
25862
|
+
100% {
|
|
25863
|
+
transform: translateY(0);
|
|
25864
|
+
}
|
|
25865
|
+
50% {
|
|
25866
|
+
transform: translateY(-8px);
|
|
25867
|
+
}
|
|
25868
|
+
`;
|
|
25869
|
+
const StyledLoadingDots = styled.div`
|
|
25870
|
+
${({
|
|
25871
|
+
theme,
|
|
25872
|
+
$size,
|
|
25873
|
+
$duration,
|
|
25874
|
+
$count
|
|
25875
|
+
}) => {
|
|
25876
|
+
const dotSize = typeof $size === 'number' ? `${$size}px` : $size;
|
|
25877
|
+
const spacing = typeof $size === 'number' ? `${$size * 0.75}px` : '6px';
|
|
25878
|
+
return css`
|
|
25879
|
+
&.${rootClassName} {
|
|
25880
|
+
display: flex;
|
|
25881
|
+
align-items: center;
|
|
25882
|
+
gap: ${spacing};
|
|
25883
|
+
|
|
25884
|
+
.loading-dot {
|
|
25885
|
+
width: ${dotSize};
|
|
25886
|
+
height: ${dotSize};
|
|
25887
|
+
border-radius: 50%;
|
|
25888
|
+
background-color: ${theme.palette.figma.typography.black};
|
|
25889
|
+
animation: ${dotAnimation} ${$duration}s infinite ease-in-out;
|
|
25890
|
+
|
|
25891
|
+
${Array.from({
|
|
25892
|
+
length: $count
|
|
25893
|
+
}, (_, i) => {
|
|
25894
|
+
return css`
|
|
25895
|
+
&:nth-child(${i + 1}) {
|
|
25896
|
+
animation-delay: ${$duration / $count * i}s;
|
|
25897
|
+
}
|
|
25898
|
+
`;
|
|
25899
|
+
})}
|
|
25900
|
+
}
|
|
25901
|
+
}
|
|
25902
|
+
`;
|
|
25903
|
+
}}
|
|
25904
|
+
`;
|
|
25905
|
+
|
|
25906
|
+
const DotLoadingDots = ({
|
|
25907
|
+
ariaLabel,
|
|
25908
|
+
className,
|
|
25909
|
+
count = 3,
|
|
25910
|
+
'data-pendoid': dataPendoId = rootClassName,
|
|
25911
|
+
'data-testid': dataTestId,
|
|
25912
|
+
size = 8,
|
|
25913
|
+
speed = 0.8
|
|
25914
|
+
}) => {
|
|
25915
|
+
const rootClasses = useStylesWithRootClass(rootClassName, className);
|
|
25916
|
+
useEffect(() => {
|
|
25917
|
+
if (!ariaLabel) {
|
|
25918
|
+
console.warn('a11y: LoadingDots should have an ariaLabel to describe the loading state');
|
|
25919
|
+
}
|
|
25920
|
+
}, []);
|
|
25921
|
+
const dotCount = Math.max(1, Math.min(count, 10));
|
|
25922
|
+
const animationDuration = 0.8 / speed;
|
|
25923
|
+
return jsx(StyledLoadingDots, {
|
|
25924
|
+
"aria-label": ariaLabel || 'Loading',
|
|
25925
|
+
className: rootClasses,
|
|
25926
|
+
"data-pendoid": dataPendoId,
|
|
25927
|
+
"data-testid": dataTestId,
|
|
25928
|
+
role: "status",
|
|
25929
|
+
"$size": size,
|
|
25930
|
+
"$duration": animationDuration,
|
|
25931
|
+
"$count": dotCount,
|
|
25932
|
+
children: Array.from({
|
|
25933
|
+
length: dotCount
|
|
25934
|
+
}, (_, i) => jsx("div", {
|
|
25935
|
+
className: "loading-dot"
|
|
25936
|
+
}, i))
|
|
25937
|
+
});
|
|
25938
|
+
};
|
|
25939
|
+
|
|
25940
|
+
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 };
|