@digital-ai/dot-components 4.20.3 → 4.22.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 +500 -350
- package/package.json +1 -1
- package/src/lib/components/file-upload/FileUpload.styles.d.ts +0 -1
- package/src/lib/components/index.d.ts +2 -0
- package/src/lib/components/toggle-switch/ToggleSwitch.d.ts +15 -0
- package/src/lib/components/toggle-switch/ToggleSwitch.styles.d.ts +2 -0
- package/src/lib/components/toggle-switch/index.d.ts +3 -0
- package/src/lib/components/toggle-switch/utils/models.d.ts +7 -0
package/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { useEffect, useState, useRef, createContext, useMemo, useContext, forwardRef, useCallback, createElement, Fragment as Fragment$1, useLayoutEffect } from 'react';
|
|
4
|
-
import { Typography, Fade, StyledEngineProvider, Tooltip, InputAdornment, InputLabel, TextField, Icon, Accordion, AccordionSummary, AccordionDetails, AccordionActions, Toolbar, Alert, Avatar, Button, Link, List, ListSubheader, Divider, CircularProgress, Popper, MenuList, MenuItem, Paper, ClickAwayListener, Drawer, IconButton, ListItem, ListItemButton, Collapse, ListItemIcon, ListItemText, Badge, useMediaQuery, Chip, Autocomplete, AvatarGroup, Breadcrumbs, ToggleButtonGroup, ToggleButton, Card, CardContent, CardHeader, FormControlLabel, Checkbox, FormControl, FormGroup, FormLabel, FormHelperText, Dialog, DialogContent, DialogActions, useTheme as useTheme$1, Snackbar, RadioGroup, Radio, Switch, Skeleton, ButtonGroup, Stepper, Step, StepLabel, TablePagination, TableContainer, TableBody, TableCell, TableRow, TableSortLabel, TableHead, Table, Tabs, Tab, LinearProgress, Slide } from '@mui/material';
|
|
4
|
+
import { Typography, Fade, StyledEngineProvider, Tooltip, InputAdornment, InputLabel, TextField, Icon, Accordion, AccordionSummary, AccordionDetails, AccordionActions, Toolbar, Alert, Avatar, Button, Link, List, ListSubheader, Divider, CircularProgress, Popper, MenuList, MenuItem, Paper, ClickAwayListener, Drawer, IconButton, ListItem, ListItemButton, Collapse, ListItemIcon, ListItemText, Badge, useMediaQuery, Chip, Autocomplete, AvatarGroup, Breadcrumbs, ToggleButtonGroup, ToggleButton, Card, CardContent, CardHeader, FormControlLabel, Checkbox, FormControl, FormGroup, FormLabel, FormHelperText, Dialog, DialogContent, DialogActions, useTheme as useTheme$1, Snackbar, RadioGroup, Radio, Switch, Skeleton, ButtonGroup, Stepper, Step, StepLabel, TablePagination, TableContainer, TableBody, TableCell, TableRow, TableSortLabel, TableHead, Table, Tabs, Tab, LinearProgress, Slide, Stack } from '@mui/material';
|
|
5
5
|
import { createTheme, ThemeProvider, useTheme } from '@mui/material/styles';
|
|
6
6
|
import styled, { createGlobalStyle, ThemeProvider as ThemeProvider$1, css, keyframes } from 'styled-components';
|
|
7
7
|
import '@digital-ai/dot-icons';
|
|
@@ -1382,7 +1382,7 @@ const readOnlyStyles = theme => css`
|
|
|
1382
1382
|
}
|
|
1383
1383
|
`;
|
|
1384
1384
|
|
|
1385
|
-
const rootClassName$
|
|
1385
|
+
const rootClassName$1p = 'dot-text-field';
|
|
1386
1386
|
const rootSelectClassName = 'dot-select-field';
|
|
1387
1387
|
const wrapperClassName$2 = 'dot-label-wrapper';
|
|
1388
1388
|
const labelClassName = 'dot-input-label';
|
|
@@ -1436,7 +1436,7 @@ const StyledTextField = styled(TextField)`
|
|
|
1436
1436
|
$maxRows,
|
|
1437
1437
|
$minRows
|
|
1438
1438
|
}) => css`
|
|
1439
|
-
&.${rootClassName$
|
|
1439
|
+
&.${rootClassName$1p} {
|
|
1440
1440
|
.MuiInputBase-root {
|
|
1441
1441
|
margin-bottom: 0;
|
|
1442
1442
|
|
|
@@ -1520,7 +1520,7 @@ const StyledTextField = styled(TextField)`
|
|
|
1520
1520
|
margin-right: ${theme.spacing(2)};
|
|
1521
1521
|
}
|
|
1522
1522
|
|
|
1523
|
-
&.${rootSelectClassName}, &.${rootClassName$
|
|
1523
|
+
&.${rootSelectClassName}, &.${rootClassName$1p} {
|
|
1524
1524
|
.${adornmentIconClassName} {
|
|
1525
1525
|
color: ${theme.palette.figma.icon.black};
|
|
1526
1526
|
p {
|
|
@@ -1606,6 +1606,10 @@ const StyledTextField = styled(TextField)`
|
|
|
1606
1606
|
}
|
|
1607
1607
|
}
|
|
1608
1608
|
|
|
1609
|
+
.ai-text-clear-icon {
|
|
1610
|
+
right: 36px;
|
|
1611
|
+
position: relative;
|
|
1612
|
+
}
|
|
1609
1613
|
.MuiOutlinedInput-adornedStart {
|
|
1610
1614
|
padding-left: 12px;
|
|
1611
1615
|
|
|
@@ -1621,13 +1625,13 @@ const StyledTextField = styled(TextField)`
|
|
|
1621
1625
|
`}
|
|
1622
1626
|
`;
|
|
1623
1627
|
|
|
1624
|
-
const rootClassName$
|
|
1628
|
+
const rootClassName$1o = 'dot-icon';
|
|
1625
1629
|
const aiIconClassName = 'dot-icon-ai';
|
|
1626
1630
|
const StyledIcon = styled(Icon)`
|
|
1627
1631
|
${({
|
|
1628
1632
|
theme
|
|
1629
1633
|
}) => css`
|
|
1630
|
-
&.${rootClassName$
|
|
1634
|
+
&.${rootClassName$1o} {
|
|
1631
1635
|
color: ${theme.palette.figma.icon.black};
|
|
1632
1636
|
font-size: 20px;
|
|
1633
1637
|
|
|
@@ -1677,7 +1681,7 @@ const DotIcon = ({
|
|
|
1677
1681
|
tooltip,
|
|
1678
1682
|
ai = false
|
|
1679
1683
|
}) => {
|
|
1680
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1684
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1o, className, ai ? aiIconClassName : '');
|
|
1681
1685
|
return jsx(DotTooltip, {
|
|
1682
1686
|
disableInteractive: disableInteractive,
|
|
1683
1687
|
childrenDisplayStyle: "inline-block",
|
|
@@ -1701,7 +1705,7 @@ const DotIcon = ({
|
|
|
1701
1705
|
});
|
|
1702
1706
|
};
|
|
1703
1707
|
|
|
1704
|
-
const rootClassName$
|
|
1708
|
+
const rootClassName$1n = 'dot-accordion';
|
|
1705
1709
|
const summaryClassName = 'dot-accordion-summary';
|
|
1706
1710
|
const detailClassName = 'dot-accordion-details';
|
|
1707
1711
|
const StyledAccordion = styled(Accordion)`
|
|
@@ -1712,7 +1716,7 @@ const StyledAccordion = styled(Accordion)`
|
|
|
1712
1716
|
background: ${theme.palette.figma.background.level1.white};
|
|
1713
1717
|
}
|
|
1714
1718
|
|
|
1715
|
-
&.${rootClassName$
|
|
1719
|
+
&.${rootClassName$1n} .${summaryClassName} {
|
|
1716
1720
|
align-items: center;
|
|
1717
1721
|
background: ${theme.palette.figma.background.level1.white};
|
|
1718
1722
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -1757,7 +1761,7 @@ const DotAccordion = ({
|
|
|
1757
1761
|
ariaLabel,
|
|
1758
1762
|
children,
|
|
1759
1763
|
className,
|
|
1760
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
1764
|
+
'data-pendoid': dataPendoId = rootClassName$1n,
|
|
1761
1765
|
'data-testid': dataTestId = 'dot-accordion',
|
|
1762
1766
|
disabled = false,
|
|
1763
1767
|
expanded,
|
|
@@ -1768,7 +1772,7 @@ const DotAccordion = ({
|
|
|
1768
1772
|
summary,
|
|
1769
1773
|
noWrap = true
|
|
1770
1774
|
}) => {
|
|
1771
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1775
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1n, className);
|
|
1772
1776
|
const [elevation, setElevation] = useState();
|
|
1773
1777
|
useEffect(() => {
|
|
1774
1778
|
if (onChange && expanded === undefined) {
|
|
@@ -1819,15 +1823,15 @@ const DotAccordion = ({
|
|
|
1819
1823
|
});
|
|
1820
1824
|
};
|
|
1821
1825
|
|
|
1822
|
-
const rootClassName$
|
|
1826
|
+
const rootClassName$1m = 'dot-action-toolbar';
|
|
1823
1827
|
const StyledToolbar = styled(Toolbar)`
|
|
1824
1828
|
${({
|
|
1825
1829
|
theme
|
|
1826
1830
|
}) => css`
|
|
1827
|
-
&.${rootClassName$
|
|
1831
|
+
&.${rootClassName$1m} {
|
|
1828
1832
|
border-bottom: 1px solid ${theme.palette.figma.border.default};
|
|
1829
1833
|
|
|
1830
|
-
.${rootClassName$
|
|
1834
|
+
.${rootClassName$1p} .MuiInputBase-root {
|
|
1831
1835
|
margin-bottom: 0;
|
|
1832
1836
|
}
|
|
1833
1837
|
}
|
|
@@ -1841,7 +1845,7 @@ const DotActionToolbar = ({
|
|
|
1841
1845
|
'data-testid': dataTestId,
|
|
1842
1846
|
variant = 'dense'
|
|
1843
1847
|
}) => {
|
|
1844
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1848
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1m, className);
|
|
1845
1849
|
return jsx(StyledToolbar, {
|
|
1846
1850
|
"aria-label": ariaLabel,
|
|
1847
1851
|
className: rootClasses,
|
|
@@ -1851,12 +1855,12 @@ const DotActionToolbar = ({
|
|
|
1851
1855
|
});
|
|
1852
1856
|
};
|
|
1853
1857
|
|
|
1854
|
-
const rootClassName$
|
|
1858
|
+
const rootClassName$1l = 'dot-alert-banner';
|
|
1855
1859
|
const StyledAlertBanner = styled(Alert)`
|
|
1856
1860
|
${({
|
|
1857
1861
|
theme
|
|
1858
1862
|
}) => css`
|
|
1859
|
-
&.${rootClassName$
|
|
1863
|
+
&.${rootClassName$1l} {
|
|
1860
1864
|
align-items: center;
|
|
1861
1865
|
box-sizing: border-box;
|
|
1862
1866
|
min-height: 48px;
|
|
@@ -1891,7 +1895,7 @@ const DotAlertBanner = ({
|
|
|
1891
1895
|
ariaLabel,
|
|
1892
1896
|
children,
|
|
1893
1897
|
className,
|
|
1894
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
1898
|
+
'data-pendoid': dataPendoId = rootClassName$1l,
|
|
1895
1899
|
'data-testid': dataTestId,
|
|
1896
1900
|
onClose,
|
|
1897
1901
|
roundedCorners = true,
|
|
@@ -1899,7 +1903,7 @@ const DotAlertBanner = ({
|
|
|
1899
1903
|
textVariant = 'body1',
|
|
1900
1904
|
width
|
|
1901
1905
|
}) => {
|
|
1902
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1906
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1l, severity, className);
|
|
1903
1907
|
/* For simple string use default component, for everything else use 'div' */
|
|
1904
1908
|
const typographyComponent = isString$2(children) ? undefined : 'div';
|
|
1905
1909
|
return jsx(StyledAlertBanner, {
|
|
@@ -1942,12 +1946,12 @@ const DotAppLogo = ({
|
|
|
1942
1946
|
});
|
|
1943
1947
|
};
|
|
1944
1948
|
|
|
1945
|
-
const rootClassName$
|
|
1949
|
+
const rootClassName$1k = 'dot-annotation';
|
|
1946
1950
|
const StyledAnnotation = styled.kbd`
|
|
1947
1951
|
${({
|
|
1948
1952
|
theme
|
|
1949
1953
|
}) => css`
|
|
1950
|
-
&.${rootClassName$
|
|
1954
|
+
&.${rootClassName$1k} {
|
|
1951
1955
|
font-family: inherit;
|
|
1952
1956
|
background-color: ${theme.palette.figma.background.level0.bckgGray};
|
|
1953
1957
|
color: ${theme.palette.figma.typography.disabled};
|
|
@@ -1973,13 +1977,13 @@ const StyledAnnotation = styled.kbd`
|
|
|
1973
1977
|
|
|
1974
1978
|
const DotAnnotation = ({
|
|
1975
1979
|
ariaLabel,
|
|
1976
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
1980
|
+
'data-pendoid': dataPendoId = rootClassName$1k,
|
|
1977
1981
|
'data-testid': dataTestId,
|
|
1978
1982
|
className,
|
|
1979
1983
|
content,
|
|
1980
1984
|
type = 'primary'
|
|
1981
1985
|
}) => {
|
|
1982
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1986
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1k, className, type === 'secondary' ? 'secondary' : '');
|
|
1983
1987
|
return jsx(StyledAnnotation, {
|
|
1984
1988
|
"aria-label": ariaLabel,
|
|
1985
1989
|
className: rootClasses,
|
|
@@ -2624,7 +2628,7 @@ const useDotCoreApiContext = () => {
|
|
|
2624
2628
|
return useContext(DotCoreApiContext);
|
|
2625
2629
|
};
|
|
2626
2630
|
|
|
2627
|
-
const rootClassName$
|
|
2631
|
+
const rootClassName$1j = 'dot-avatar';
|
|
2628
2632
|
const avatarSpacing = {
|
|
2629
2633
|
small: 3,
|
|
2630
2634
|
medium: 5,
|
|
@@ -2634,7 +2638,7 @@ const StyledAvatar = styled(Avatar)`
|
|
|
2634
2638
|
${({
|
|
2635
2639
|
theme
|
|
2636
2640
|
}) => css`
|
|
2637
|
-
&.${rootClassName$
|
|
2641
|
+
&.${rootClassName$1j} {
|
|
2638
2642
|
display: inline-flex;
|
|
2639
2643
|
background-color: ${({
|
|
2640
2644
|
color
|
|
@@ -2747,7 +2751,7 @@ const DotAvatar = ({
|
|
|
2747
2751
|
variant = 'circular',
|
|
2748
2752
|
style
|
|
2749
2753
|
}) => {
|
|
2750
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2754
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1j, className);
|
|
2751
2755
|
const getAvatarColor = () => {
|
|
2752
2756
|
if ((style === null || style === void 0 ? void 0 : style.color) !== undefined) return 'inherit';
|
|
2753
2757
|
if (color) return color;
|
|
@@ -2788,12 +2792,12 @@ const DotAvatar = ({
|
|
|
2788
2792
|
});
|
|
2789
2793
|
};
|
|
2790
2794
|
|
|
2791
|
-
const rootClassName$
|
|
2795
|
+
const rootClassName$1i = 'dot-button';
|
|
2792
2796
|
const StyledButton = styled(Button)`
|
|
2793
2797
|
${({
|
|
2794
2798
|
theme
|
|
2795
2799
|
}) => css`
|
|
2796
|
-
&.${rootClassName$
|
|
2800
|
+
&.${rootClassName$1i} {
|
|
2797
2801
|
background-color: ${theme.palette.figma.primary.normal};
|
|
2798
2802
|
margin: ${theme.spacing(0.5)};
|
|
2799
2803
|
padding: ${theme.spacing(0.75, 2)};
|
|
@@ -2946,7 +2950,7 @@ const DotButton = forwardRef(({
|
|
|
2946
2950
|
autoFocus = false,
|
|
2947
2951
|
children,
|
|
2948
2952
|
className,
|
|
2949
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
2953
|
+
'data-pendoid': dataPendoId = rootClassName$1i,
|
|
2950
2954
|
'data-testid': dataTestId,
|
|
2951
2955
|
disabled = false,
|
|
2952
2956
|
disableInteractive,
|
|
@@ -2964,7 +2968,7 @@ const DotButton = forwardRef(({
|
|
|
2964
2968
|
tooltipPlacement,
|
|
2965
2969
|
type = 'primary'
|
|
2966
2970
|
}, ref) => {
|
|
2967
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2971
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1i, className);
|
|
2968
2972
|
let color;
|
|
2969
2973
|
let variant;
|
|
2970
2974
|
switch (type) {
|
|
@@ -2995,7 +2999,7 @@ const DotButton = forwardRef(({
|
|
|
2995
2999
|
}
|
|
2996
3000
|
return jsx(DotTooltip, {
|
|
2997
3001
|
childrenDisplayStyle: "inline-block",
|
|
2998
|
-
"data-testid": `${dataTestId || rootClassName$
|
|
3002
|
+
"data-testid": `${dataTestId || rootClassName$1i}-tooltip`,
|
|
2999
3003
|
disableInteractive: disableInteractive,
|
|
3000
3004
|
placement: tooltipPlacement,
|
|
3001
3005
|
title: tooltip,
|
|
@@ -3007,7 +3011,7 @@ const DotButton = forwardRef(({
|
|
|
3007
3011
|
},
|
|
3008
3012
|
color: color,
|
|
3009
3013
|
"data-pendoid": dataPendoId,
|
|
3010
|
-
"data-testid": dataTestId || rootClassName$
|
|
3014
|
+
"data-testid": dataTestId || rootClassName$1i,
|
|
3011
3015
|
disableRipple: disableRipple,
|
|
3012
3016
|
disabled: disabled,
|
|
3013
3017
|
endIcon: endIcon,
|
|
@@ -3027,10 +3031,10 @@ const DotButton = forwardRef(({
|
|
|
3027
3031
|
});
|
|
3028
3032
|
});
|
|
3029
3033
|
|
|
3030
|
-
const rootClassName$
|
|
3034
|
+
const rootClassName$1h = 'dot-link';
|
|
3031
3035
|
const StyledLink = styled(Link)`
|
|
3032
3036
|
${() => css`
|
|
3033
|
-
&.${rootClassName$
|
|
3037
|
+
&.${rootClassName$1h} {
|
|
3034
3038
|
cursor: pointer;
|
|
3035
3039
|
|
|
3036
3040
|
&:hover.MuiLink-underlineHover {
|
|
@@ -3046,7 +3050,7 @@ const DotLink = ({
|
|
|
3046
3050
|
children,
|
|
3047
3051
|
className,
|
|
3048
3052
|
color = 'primary',
|
|
3049
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
3053
|
+
'data-pendoid': dataPendoId = rootClassName$1h,
|
|
3050
3054
|
'data-testid': dataTestId,
|
|
3051
3055
|
href,
|
|
3052
3056
|
onClick,
|
|
@@ -3059,7 +3063,7 @@ const DotLink = ({
|
|
|
3059
3063
|
underline = 'always',
|
|
3060
3064
|
variant = 'body1'
|
|
3061
3065
|
}) => {
|
|
3062
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3066
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1h, className);
|
|
3063
3067
|
useEffect(() => {
|
|
3064
3068
|
// Include a console warning if the link is not a string and no ariaLabel is provided
|
|
3065
3069
|
if (!isString$2(children) && !ariaLabel) {
|
|
@@ -3110,7 +3114,7 @@ const CreateUUID = () => {
|
|
|
3110
3114
|
});
|
|
3111
3115
|
};
|
|
3112
3116
|
|
|
3113
|
-
const rootClassName$
|
|
3117
|
+
const rootClassName$1g = 'dot-list';
|
|
3114
3118
|
const listItemRootClass = 'dot-list-item';
|
|
3115
3119
|
const nestedListClassName = 'dot-nested-list';
|
|
3116
3120
|
const nestedDrawerClassName = 'dot-nested-drawer';
|
|
@@ -3118,7 +3122,7 @@ const StyledList = styled(List)`
|
|
|
3118
3122
|
${({
|
|
3119
3123
|
theme
|
|
3120
3124
|
}) => css`
|
|
3121
|
-
&.${rootClassName$
|
|
3125
|
+
&.${rootClassName$1g} {
|
|
3122
3126
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
3123
3127
|
|
|
3124
3128
|
.dot-icon {
|
|
@@ -3182,6 +3186,7 @@ const getChevronIcon = (nestedListType, isOpened) => {
|
|
|
3182
3186
|
// if the sidebar should be open or closed based on what target the user clicks
|
|
3183
3187
|
const excludedClassNames = ['MuiPaper-root', 'MuiTypography-overline'];
|
|
3184
3188
|
const shouldToggleOpen = classNames => {
|
|
3189
|
+
if (!isString$2(classNames)) return false;
|
|
3185
3190
|
return !excludedClassNames.some(className => classNames.includes(className));
|
|
3186
3191
|
};
|
|
3187
3192
|
|
|
@@ -3211,12 +3216,12 @@ const DotListDivider = ({
|
|
|
3211
3216
|
});
|
|
3212
3217
|
};
|
|
3213
3218
|
|
|
3214
|
-
const rootClassName$
|
|
3219
|
+
const rootClassName$1f = 'dot-progress';
|
|
3215
3220
|
const StyledProgress = styled.div`
|
|
3216
3221
|
${({
|
|
3217
3222
|
theme
|
|
3218
3223
|
}) => css`
|
|
3219
|
-
&.${rootClassName$
|
|
3224
|
+
&.${rootClassName$1f} {
|
|
3220
3225
|
line-height: 0;
|
|
3221
3226
|
|
|
3222
3227
|
.dot-progress-with-label-wrapper {
|
|
@@ -3267,7 +3272,7 @@ const DotProgress = ({
|
|
|
3267
3272
|
value,
|
|
3268
3273
|
variant = 'indeterminate'
|
|
3269
3274
|
}) => {
|
|
3270
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3275
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1f, className);
|
|
3271
3276
|
useEffect(() => {
|
|
3272
3277
|
if (!ariaLabel) {
|
|
3273
3278
|
console.warn('a11y: DotProgress must have an ariaLabel to describe the progress component');
|
|
@@ -3333,13 +3338,13 @@ var variables = /*#__PURE__*/Object.freeze({
|
|
|
3333
3338
|
levelTop: levelTop
|
|
3334
3339
|
});
|
|
3335
3340
|
|
|
3336
|
-
const rootClassName$
|
|
3341
|
+
const rootClassName$1e = 'dot-popper';
|
|
3337
3342
|
const arrowClassName = 'MuiPopper-arrow';
|
|
3338
3343
|
const StyledPopper$1 = styled(Popper)`
|
|
3339
3344
|
${({
|
|
3340
3345
|
theme
|
|
3341
3346
|
}) => css`
|
|
3342
|
-
&.${rootClassName$
|
|
3347
|
+
&.${rootClassName$1e} {
|
|
3343
3348
|
font-family: ${theme.typography.fontFamily};
|
|
3344
3349
|
font-size: ${theme.typography.body1.fontSize}px;
|
|
3345
3350
|
|
|
@@ -3398,7 +3403,7 @@ const StyledPopper$1 = styled(Popper)`
|
|
|
3398
3403
|
}
|
|
3399
3404
|
}
|
|
3400
3405
|
|
|
3401
|
-
&.${rootClassName$
|
|
3406
|
+
&.${rootClassName$1e}, &.${rootClassName$1e} > .dot-popper-paper {
|
|
3402
3407
|
background-color: ${theme.palette.figma.background.level1.white};
|
|
3403
3408
|
}
|
|
3404
3409
|
`}
|
|
@@ -3428,12 +3433,12 @@ const StyledArrow = styled('span')`
|
|
|
3428
3433
|
`;
|
|
3429
3434
|
|
|
3430
3435
|
const flyoutMenuClassName = 'dot-flyout-menu';
|
|
3431
|
-
const rootClassName$
|
|
3436
|
+
const rootClassName$1d = 'dot-menu';
|
|
3432
3437
|
const StyledPopper = styled(Popper)`
|
|
3433
3438
|
${({
|
|
3434
3439
|
theme
|
|
3435
3440
|
}) => css`
|
|
3436
|
-
&.${rootClassName$
|
|
3441
|
+
&.${rootClassName$1e} {
|
|
3437
3442
|
font-family: ${theme.typography.fontFamily};
|
|
3438
3443
|
font-size: ${theme.typography.body1.fontSize}px;
|
|
3439
3444
|
|
|
@@ -3443,7 +3448,7 @@ const StyledPopper = styled(Popper)`
|
|
|
3443
3448
|
}) => $zIndex === undefined ? `z-index: ${levelSecond};` : `z-index: ${$zIndex};`}
|
|
3444
3449
|
}
|
|
3445
3450
|
}
|
|
3446
|
-
&.${rootClassName$
|
|
3451
|
+
&.${rootClassName$1d}, &.${rootClassName$1e} {
|
|
3447
3452
|
.MuiPaper-root:not(:empty) {
|
|
3448
3453
|
border: 1px solid ${theme.palette.layer.n100};
|
|
3449
3454
|
}
|
|
@@ -3523,14 +3528,14 @@ const MENU_ITEM_HEIGHT_NORMAL = 48;
|
|
|
3523
3528
|
const MENU_ITEM_HEIGHT_DENSE = 36;
|
|
3524
3529
|
const DEFAULT_MAX_VISIBLE_ITEMS = 7;
|
|
3525
3530
|
|
|
3526
|
-
const rootClassName$
|
|
3531
|
+
const rootClassName$1c = 'dot-ul';
|
|
3527
3532
|
const listItemClassName$1 = 'dot-li';
|
|
3528
3533
|
const listItemWithSubmenuClassName = 'dot-li-with-submenu';
|
|
3529
3534
|
const StyledMenuList = styled(MenuList)`
|
|
3530
3535
|
${({
|
|
3531
3536
|
theme
|
|
3532
3537
|
}) => css`
|
|
3533
|
-
&.${rootClassName$
|
|
3538
|
+
&.${rootClassName$1c} {
|
|
3534
3539
|
background: ${theme.palette.figma.background.level1.white};
|
|
3535
3540
|
|
|
3536
3541
|
.dot-li {
|
|
@@ -3632,7 +3637,7 @@ const DotMenuList = forwardRef(({
|
|
|
3632
3637
|
onSubMenuCreate,
|
|
3633
3638
|
selectedKey
|
|
3634
3639
|
}, ref) => {
|
|
3635
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3640
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1c, className);
|
|
3636
3641
|
const [activeSubmenu, setActiveSubmenu] = useState(null);
|
|
3637
3642
|
const [subItemAnchorEl, setSubItemAnchorEl] = useState(null);
|
|
3638
3643
|
const openSubmenu = (target, itemKey) => {
|
|
@@ -3744,7 +3749,7 @@ const DotMenu = ({
|
|
|
3744
3749
|
open = false,
|
|
3745
3750
|
selectedKey
|
|
3746
3751
|
}) => {
|
|
3747
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3752
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1d, className, loading ? 'loading' : '');
|
|
3748
3753
|
const isSubmenu = checkIfSubmenu(anchorEl);
|
|
3749
3754
|
const hasSubItems = checkForSubItems(menuItems);
|
|
3750
3755
|
// Timeout object is customizable when Menu component is either submenu
|
|
@@ -3832,12 +3837,12 @@ const DotMenu = ({
|
|
|
3832
3837
|
});
|
|
3833
3838
|
};
|
|
3834
3839
|
|
|
3835
|
-
const rootClassName$
|
|
3840
|
+
const rootClassName$1b = 'dot-drawer';
|
|
3836
3841
|
const StyledDrawer = styled(Drawer)`
|
|
3837
3842
|
${({
|
|
3838
3843
|
theme
|
|
3839
3844
|
}) => css`
|
|
3840
|
-
&.${rootClassName$
|
|
3845
|
+
&.${rootClassName$1b} .MuiBackdrop-root {
|
|
3841
3846
|
background-color: ${theme.palette.figma.overlay.default};
|
|
3842
3847
|
}
|
|
3843
3848
|
|
|
@@ -3856,12 +3861,12 @@ const StyledDrawer = styled(Drawer)`
|
|
|
3856
3861
|
`}
|
|
3857
3862
|
`;
|
|
3858
3863
|
|
|
3859
|
-
const rootClassName$
|
|
3864
|
+
const rootClassName$1a = 'dot-drawer-header';
|
|
3860
3865
|
const StyleDrawerHeader = styled.div`
|
|
3861
3866
|
${({
|
|
3862
3867
|
theme
|
|
3863
3868
|
}) => css`
|
|
3864
|
-
&.${rootClassName$
|
|
3869
|
+
&.${rootClassName$1a} {
|
|
3865
3870
|
padding: ${theme.spacing(0, 0, 2)};
|
|
3866
3871
|
display: flex;
|
|
3867
3872
|
align-items: center;
|
|
@@ -3872,13 +3877,13 @@ const StyleDrawerHeader = styled.div`
|
|
|
3872
3877
|
`}
|
|
3873
3878
|
`;
|
|
3874
3879
|
|
|
3875
|
-
const rootClassName$
|
|
3880
|
+
const rootClassName$19 = 'dot-icon-btn';
|
|
3876
3881
|
const StyledIconButton = styled(IconButton)`
|
|
3877
3882
|
${({
|
|
3878
3883
|
theme,
|
|
3879
3884
|
color
|
|
3880
3885
|
}) => css`
|
|
3881
|
-
&.${rootClassName$
|
|
3886
|
+
&.${rootClassName$19} {
|
|
3882
3887
|
${color === 'inherit' ? css`
|
|
3883
3888
|
color: inherit;
|
|
3884
3889
|
` : ''}
|
|
@@ -3964,7 +3969,7 @@ const DotIconButton = ({
|
|
|
3964
3969
|
ariaRole = 'button',
|
|
3965
3970
|
className,
|
|
3966
3971
|
color = 'inherit',
|
|
3967
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
3972
|
+
'data-pendoid': dataPendoId = rootClassName$19,
|
|
3968
3973
|
'data-testid': dataTestId,
|
|
3969
3974
|
disableInteractive,
|
|
3970
3975
|
disableRipple = false,
|
|
@@ -3978,7 +3983,7 @@ const DotIconButton = ({
|
|
|
3978
3983
|
tooltipPlacement
|
|
3979
3984
|
}) => {
|
|
3980
3985
|
const rippleClassName = disableRipple ? 'ripple-disabled' : '';
|
|
3981
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3986
|
+
const rootClasses = useStylesWithRootClass(rootClassName$19, rippleClassName, `shape-${shape}`, className);
|
|
3982
3987
|
return jsx(DotTooltip, {
|
|
3983
3988
|
childrenDisplayStyle: "inline-block",
|
|
3984
3989
|
"data-testid": "icon-button-tooltip",
|
|
@@ -4015,7 +4020,7 @@ const DotDrawerHeader = ({
|
|
|
4015
4020
|
onClose,
|
|
4016
4021
|
variant
|
|
4017
4022
|
}) => {
|
|
4018
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4023
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1a, className);
|
|
4019
4024
|
return jsxs(StyleDrawerHeader, {
|
|
4020
4025
|
"aria-label": ariaLabel,
|
|
4021
4026
|
"aria-level": 2,
|
|
@@ -4032,10 +4037,10 @@ const DotDrawerHeader = ({
|
|
|
4032
4037
|
});
|
|
4033
4038
|
};
|
|
4034
4039
|
|
|
4035
|
-
const rootClassName$
|
|
4040
|
+
const rootClassName$18 = 'dot-drawer-body';
|
|
4036
4041
|
const StyleDrawerBody = styled.div`
|
|
4037
4042
|
${() => css`
|
|
4038
|
-
&.${rootClassName$
|
|
4043
|
+
&.${rootClassName$18} {
|
|
4039
4044
|
display: flex;
|
|
4040
4045
|
.dot-drawer-close-button {
|
|
4041
4046
|
align-self: self-start;
|
|
@@ -4056,7 +4061,7 @@ const DotDrawerBody = ({
|
|
|
4056
4061
|
onClose,
|
|
4057
4062
|
variant
|
|
4058
4063
|
}) => {
|
|
4059
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4064
|
+
const rootClasses = useStylesWithRootClass(rootClassName$18, className);
|
|
4060
4065
|
return jsxs(StyleDrawerBody, {
|
|
4061
4066
|
"aria-label": ariaLabel,
|
|
4062
4067
|
className: rootClasses,
|
|
@@ -4071,12 +4076,12 @@ const DotDrawerBody = ({
|
|
|
4071
4076
|
});
|
|
4072
4077
|
};
|
|
4073
4078
|
|
|
4074
|
-
const rootClassName$
|
|
4079
|
+
const rootClassName$17 = 'dot-drawer-footer';
|
|
4075
4080
|
const StyleDrawerFooter = styled.div`
|
|
4076
4081
|
${({
|
|
4077
4082
|
theme
|
|
4078
4083
|
}) => css`
|
|
4079
|
-
&.${rootClassName$
|
|
4084
|
+
&.${rootClassName$17} {
|
|
4080
4085
|
padding: ${theme.spacing(2, 0, 0)};
|
|
4081
4086
|
}
|
|
4082
4087
|
`}
|
|
@@ -4089,7 +4094,7 @@ const DotDrawerFooter = ({
|
|
|
4089
4094
|
className,
|
|
4090
4095
|
'data-testid': dataTestId
|
|
4091
4096
|
}) => {
|
|
4092
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4097
|
+
const rootClasses = useStylesWithRootClass(rootClassName$17, className);
|
|
4093
4098
|
return jsx(StyleDrawerFooter, {
|
|
4094
4099
|
"aria-label": ariaLabel,
|
|
4095
4100
|
className: rootClasses,
|
|
@@ -4105,7 +4110,7 @@ const DotDrawer = ({
|
|
|
4105
4110
|
ariaRole = 'dialog',
|
|
4106
4111
|
className,
|
|
4107
4112
|
children,
|
|
4108
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
4113
|
+
'data-pendoid': dataPendoId = rootClassName$1b,
|
|
4109
4114
|
'data-testid': dataTestId,
|
|
4110
4115
|
drawerBodyProps,
|
|
4111
4116
|
drawerFooterProps,
|
|
@@ -4128,7 +4133,7 @@ const DotDrawer = ({
|
|
|
4128
4133
|
onClose(event);
|
|
4129
4134
|
}
|
|
4130
4135
|
};
|
|
4131
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4136
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1b, className);
|
|
4132
4137
|
const backdropEnabled = variant === 'temporary' && !(ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.hideBackdrop);
|
|
4133
4138
|
const headerExists = !!drawerHeaderProps;
|
|
4134
4139
|
const bodyPendoId = drawerBodyProps ? drawerBodyProps['data-pendoid'] : 'drawer-body';
|
|
@@ -4603,7 +4608,7 @@ const DotList = ({
|
|
|
4603
4608
|
nestedListType = 'expandable',
|
|
4604
4609
|
width = 240
|
|
4605
4610
|
}) => {
|
|
4606
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4611
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1g, className);
|
|
4607
4612
|
const listWidth = typeof width === 'number' ? `${width}px` : width;
|
|
4608
4613
|
const listRef = useRef();
|
|
4609
4614
|
const disableCloseOnClickAway = !nestedListCloseOnClickAway && nestedListType === 'expandable';
|
|
@@ -4703,12 +4708,12 @@ const DotList = ({
|
|
|
4703
4708
|
});
|
|
4704
4709
|
};
|
|
4705
4710
|
|
|
4706
|
-
const rootClassName$
|
|
4711
|
+
const rootClassName$16 = 'dot-copy-button';
|
|
4707
4712
|
const StyledCopyButton = styled.span`
|
|
4708
4713
|
${({
|
|
4709
4714
|
theme
|
|
4710
4715
|
}) => css`
|
|
4711
|
-
&.${rootClassName$
|
|
4716
|
+
&.${rootClassName$16} .copied-to-clipboard {
|
|
4712
4717
|
color: ${theme.palette.figma.success.normal};
|
|
4713
4718
|
|
|
4714
4719
|
&.MuiIcon-fontSizeSmall.button-size-small {
|
|
@@ -4734,7 +4739,7 @@ const DotCopyButton = ({
|
|
|
4734
4739
|
color = 'inherit',
|
|
4735
4740
|
copiedTooltip = 'Copied!',
|
|
4736
4741
|
copyTooltip = 'Copy to clipboard',
|
|
4737
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
4742
|
+
'data-pendoid': dataPendoId = rootClassName$16,
|
|
4738
4743
|
'data-testid': dataTestId = 'dot-copy-button',
|
|
4739
4744
|
disableInteractive,
|
|
4740
4745
|
disabled = false,
|
|
@@ -4783,7 +4788,7 @@ const DotCopyButton = ({
|
|
|
4783
4788
|
return false;
|
|
4784
4789
|
}, [value, showCopiedIcon, disabled, onClick]);
|
|
4785
4790
|
return jsxs(StyledCopyButton, {
|
|
4786
|
-
className: rootClassName$
|
|
4791
|
+
className: rootClassName$16,
|
|
4787
4792
|
"data-testid": dataTestId,
|
|
4788
4793
|
children: [!timedShowCopiedIcon && jsx(DotIconButton, {
|
|
4789
4794
|
ariaLabel: ariaLabel,
|
|
@@ -4890,7 +4895,7 @@ const DotInputText = ({
|
|
|
4890
4895
|
autoFocus,
|
|
4891
4896
|
className,
|
|
4892
4897
|
defaultValue,
|
|
4893
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
4898
|
+
'data-pendoid': dataPendoId = rootClassName$1p,
|
|
4894
4899
|
'data-testid': dataTestId,
|
|
4895
4900
|
disabled = false,
|
|
4896
4901
|
error = false,
|
|
@@ -4939,7 +4944,7 @@ const DotInputText = ({
|
|
|
4939
4944
|
const internalInputRef = useRef(null);
|
|
4940
4945
|
const textFieldInputRef = inputRef || internalInputRef;
|
|
4941
4946
|
const [inputTextState, setInputTextState] = useState(getInitialState(value));
|
|
4942
|
-
const rootStyles = useStylesWithRootClass(rootClassName$
|
|
4947
|
+
const rootStyles = useStylesWithRootClass(rootClassName$1p, hasError, hasWarning, hasSuccess, isAiEnabled, readOnly && readOnlyClassName$1);
|
|
4943
4948
|
useEffect(() => {
|
|
4944
4949
|
if (value !== inputTextState.inputValue) {
|
|
4945
4950
|
setInputTextState(getInitialState(value, defaultValue));
|
|
@@ -5081,10 +5086,10 @@ const DotInputText = ({
|
|
|
5081
5086
|
});
|
|
5082
5087
|
};
|
|
5083
5088
|
|
|
5084
|
-
const rootClassName$
|
|
5089
|
+
const rootClassName$15 = 'dot-search-input';
|
|
5085
5090
|
const StyledSearchInput = styled.span`
|
|
5086
5091
|
${() => css`
|
|
5087
|
-
&.${rootClassName$
|
|
5092
|
+
&.${rootClassName$15} {
|
|
5088
5093
|
}
|
|
5089
5094
|
`}
|
|
5090
5095
|
`;
|
|
@@ -5101,7 +5106,7 @@ function SearchInput({
|
|
|
5101
5106
|
tooltip = null,
|
|
5102
5107
|
value
|
|
5103
5108
|
}) {
|
|
5104
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5109
|
+
const rootClasses = useStylesWithRootClass(rootClassName$15, className);
|
|
5105
5110
|
const [searchText, setSearchText] = useState(value);
|
|
5106
5111
|
let previousSearchText = '';
|
|
5107
5112
|
const handleChange = useCallback(event => {
|
|
@@ -5357,12 +5362,12 @@ const recentAppInstancesSetter = (latestInstance, maxRecentItems
|
|
|
5357
5362
|
};
|
|
5358
5363
|
};
|
|
5359
5364
|
|
|
5360
|
-
const rootClassName$
|
|
5365
|
+
const rootClassName$14 = 'dot-app-switcher';
|
|
5361
5366
|
const StyledAppSwitcher = styled(DotDrawer)`
|
|
5362
5367
|
${({
|
|
5363
5368
|
theme
|
|
5364
5369
|
}) => css`
|
|
5365
|
-
&.${rootClassName$
|
|
5370
|
+
&.${rootClassName$14} {
|
|
5366
5371
|
.dot-drawer-paper {
|
|
5367
5372
|
padding: 0;
|
|
5368
5373
|
width: 382px;
|
|
@@ -5472,7 +5477,7 @@ const DotAppSwitcherView = ({
|
|
|
5472
5477
|
if (dotCoreApiContext !== null) {
|
|
5473
5478
|
setSelectedAppType = dotCoreApiContext.setSelectedAppSwitcherAppType;
|
|
5474
5479
|
}
|
|
5475
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5480
|
+
const rootClasses = useStylesWithRootClass(rootClassName$14, className);
|
|
5476
5481
|
const [appTypeMap, setAppTypeMap] = useState();
|
|
5477
5482
|
const [appTypeLabels, setAppTypeLabels] = useState();
|
|
5478
5483
|
const [appTypeMenuItems, setAppTypeMenuItems] = useState();
|
|
@@ -5850,12 +5855,12 @@ var SvgLogoDigitalAiWhite = function SvgLogoDigitalAiWhite(_ref, ref) {
|
|
|
5850
5855
|
};
|
|
5851
5856
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgLogoDigitalAiWhite);
|
|
5852
5857
|
|
|
5853
|
-
const rootClassName$
|
|
5858
|
+
const rootClassName$13 = 'dot-sidebar';
|
|
5854
5859
|
const StyledSidebar = styled.aside`
|
|
5855
5860
|
${({
|
|
5856
5861
|
theme
|
|
5857
5862
|
}) => css`
|
|
5858
|
-
&.${rootClassName$
|
|
5863
|
+
&.${rootClassName$13} {
|
|
5859
5864
|
align-items: stretch;
|
|
5860
5865
|
background: ${theme.palette.figma.background.level1.white};
|
|
5861
5866
|
border-width: 0 1px;
|
|
@@ -6149,10 +6154,10 @@ const StyledSidebar = styled.aside`
|
|
|
6149
6154
|
`}
|
|
6150
6155
|
`;
|
|
6151
6156
|
|
|
6152
|
-
const rootClassName$
|
|
6157
|
+
const rootClassName$12 = 'dot-truncate-with-tooltip';
|
|
6153
6158
|
const StyledTruncateWithTooltip = styled(Tooltip)`
|
|
6154
6159
|
${() => css`
|
|
6155
|
-
&.${rootClassName$
|
|
6160
|
+
&.${rootClassName$12} {
|
|
6156
6161
|
display: block;
|
|
6157
6162
|
overflow: hidden;
|
|
6158
6163
|
white-space: nowrap;
|
|
@@ -6183,7 +6188,7 @@ const DotTruncateWithTooltip = ({
|
|
|
6183
6188
|
label,
|
|
6184
6189
|
width
|
|
6185
6190
|
}) => {
|
|
6186
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6191
|
+
const rootClasses = useStylesWithRootClass(rootClassName$12, className, charactersLimit ? 'dot-characters-limit' : '');
|
|
6187
6192
|
return jsx(StyledTruncateWithTooltip, {
|
|
6188
6193
|
"aria-label": ariaLabel,
|
|
6189
6194
|
arrow: arrow,
|
|
@@ -6297,7 +6302,7 @@ const DotSidebar = ({
|
|
|
6297
6302
|
keys: collapseKeys
|
|
6298
6303
|
}, toggleNavCollapseState, [isOpen, collapsable]);
|
|
6299
6304
|
const sidebarClasses = useStylesWithRootClass('side-nav', openClass);
|
|
6300
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6305
|
+
const rootClasses = useStylesWithRootClass(rootClassName$13, openClass, className);
|
|
6301
6306
|
return jsxs(StyledSidebar, {
|
|
6302
6307
|
"aria-label": ariaLabel,
|
|
6303
6308
|
className: rootClasses,
|
|
@@ -6372,12 +6377,12 @@ const DotSidebar = ({
|
|
|
6372
6377
|
});
|
|
6373
6378
|
};
|
|
6374
6379
|
|
|
6375
|
-
const rootClassName$
|
|
6380
|
+
const rootClassName$11 = 'dot-badge';
|
|
6376
6381
|
const StyledBadge = styled(Badge)`
|
|
6377
6382
|
${({
|
|
6378
6383
|
theme
|
|
6379
6384
|
}) => css`
|
|
6380
|
-
&.${rootClassName$
|
|
6385
|
+
&.${rootClassName$11} {
|
|
6381
6386
|
color: ${theme.palette.figma.typography.black};
|
|
6382
6387
|
word-break: normal;
|
|
6383
6388
|
|
|
@@ -6412,7 +6417,7 @@ const DotBadge = ({
|
|
|
6412
6417
|
overlap,
|
|
6413
6418
|
variant = 'dot'
|
|
6414
6419
|
}) => {
|
|
6415
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6420
|
+
const rootClasses = useStylesWithRootClass(rootClassName$11, className);
|
|
6416
6421
|
return jsx(StyledBadge, {
|
|
6417
6422
|
"$badgeColor": badgeColor,
|
|
6418
6423
|
anchorOrigin: {
|
|
@@ -6434,7 +6439,7 @@ const DotBadge = ({
|
|
|
6434
6439
|
});
|
|
6435
6440
|
};
|
|
6436
6441
|
|
|
6437
|
-
const rootClassName
|
|
6442
|
+
const rootClassName$10 = 'dot-app-toolbar';
|
|
6438
6443
|
const denseClassName = 'dense';
|
|
6439
6444
|
const StyledMainMenu = styled(DotDrawer)`
|
|
6440
6445
|
${({
|
|
@@ -6474,7 +6479,7 @@ const StyledAppToolbar = styled.header`
|
|
|
6474
6479
|
${({
|
|
6475
6480
|
theme
|
|
6476
6481
|
}) => css`
|
|
6477
|
-
&.${rootClassName
|
|
6482
|
+
&.${rootClassName$10} {
|
|
6478
6483
|
align-items: center;
|
|
6479
6484
|
background: ${theme.palette.figma.appToolbar.background};
|
|
6480
6485
|
border-bottom: 4px solid ${theme.palette.figma.border.default};
|
|
@@ -6603,7 +6608,7 @@ const DotAppToolbar = ({
|
|
|
6603
6608
|
const displayAppLogo = appLogo || appLogoSmall;
|
|
6604
6609
|
const mainMenuRef = useRef(null);
|
|
6605
6610
|
const denseClass = dense ? denseClassName : '';
|
|
6606
|
-
const rootClasses = useStylesWithRootClass(rootClassName
|
|
6611
|
+
const rootClasses = useStylesWithRootClass(rootClassName$10, className, denseClass, showMainMenu ? '' : 'without-menu-icon');
|
|
6607
6612
|
const mainMenuClasses = useStylesWithRootClass('dot-main-menu', denseClass, menuOpen ? 'open' : '');
|
|
6608
6613
|
const targetBreakpoint = useMediaQuery(theme => theme.breakpoints.up('lg'));
|
|
6609
6614
|
useEffect(() => {
|
|
@@ -6755,12 +6760,12 @@ const DotAppToolbar = ({
|
|
|
6755
6760
|
}) : appToolbar;
|
|
6756
6761
|
};
|
|
6757
6762
|
|
|
6758
|
-
const rootClassName
|
|
6763
|
+
const rootClassName$$ = 'dot-chip';
|
|
6759
6764
|
const StyledChip = styled(Chip)`
|
|
6760
6765
|
${({
|
|
6761
6766
|
theme
|
|
6762
6767
|
}) => css`
|
|
6763
|
-
&.${rootClassName
|
|
6768
|
+
&.${rootClassName$$} {
|
|
6764
6769
|
background: ${theme.palette.figma.neutral.normal};
|
|
6765
6770
|
border-color: ${theme.palette.figma.border.darker};
|
|
6766
6771
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -6866,7 +6871,7 @@ const DotChip = ({
|
|
|
6866
6871
|
charactersLimit = DEFAULT_CHARACTERS_LIMIT,
|
|
6867
6872
|
children,
|
|
6868
6873
|
className,
|
|
6869
|
-
'data-pendoid': dataPendoId = rootClassName
|
|
6874
|
+
'data-pendoid': dataPendoId = rootClassName$$,
|
|
6870
6875
|
'data-testid': dataTestId,
|
|
6871
6876
|
disabled = false,
|
|
6872
6877
|
error = false,
|
|
@@ -6880,7 +6885,7 @@ const DotChip = ({
|
|
|
6880
6885
|
tooltipProps
|
|
6881
6886
|
}) => {
|
|
6882
6887
|
const errorClass = error ? 'Mui-error' : '';
|
|
6883
|
-
const rootClasses = useStylesWithRootClass(rootClassName
|
|
6888
|
+
const rootClasses = useStylesWithRootClass(rootClassName$$, className, errorClass);
|
|
6884
6889
|
const isTruncated = charactersLimit > 0 && children.length > charactersLimit;
|
|
6885
6890
|
const getChipLabelWithTooltip = label => jsx(DotTooltip, Object.assign({}, tooltipProps, {
|
|
6886
6891
|
hoverVisibility: "always",
|
|
@@ -6916,7 +6921,7 @@ const DotChip = ({
|
|
|
6916
6921
|
});
|
|
6917
6922
|
};
|
|
6918
6923
|
|
|
6919
|
-
const rootClassName$
|
|
6924
|
+
const rootClassName$_ = 'dot-autocomplete';
|
|
6920
6925
|
const inputRootClassName = 'dot-input-root';
|
|
6921
6926
|
const inputMediumClassName = 'dot-input-medium';
|
|
6922
6927
|
const inputAiClassName = 'dot-input-ai';
|
|
@@ -6924,7 +6929,7 @@ const StyledAutocomplete = styled(Autocomplete)`
|
|
|
6924
6929
|
${({
|
|
6925
6930
|
theme
|
|
6926
6931
|
}) => css`
|
|
6927
|
-
&.${rootClassName$
|
|
6932
|
+
&.${rootClassName$_} {
|
|
6928
6933
|
&.${inputMediumClassName} .dot-text-field .${inputRootClassName} {
|
|
6929
6934
|
height: 56px;
|
|
6930
6935
|
padding-left: ${theme.spacing(2)};
|
|
@@ -7030,8 +7035,8 @@ const isEmptyValue = value => {
|
|
|
7030
7035
|
return !value;
|
|
7031
7036
|
}
|
|
7032
7037
|
};
|
|
7033
|
-
const getRootClassNames = (className, size) => useStylesWithRootClass(rootClassName$
|
|
7034
|
-
const getTextFieldRootClassNames = (textFieldWarningClassName, isReadOnly) => useStylesWithRootClass(rootClassName$
|
|
7038
|
+
const getRootClassNames = (className, size) => useStylesWithRootClass(rootClassName$_, size === 'medium' && inputMediumClassName, className);
|
|
7039
|
+
const getTextFieldRootClassNames = (textFieldWarningClassName, isReadOnly) => useStylesWithRootClass(rootClassName$1p, isReadOnly && readOnlyClassName$1, textFieldWarningClassName);
|
|
7035
7040
|
const getInputRootClassNames = isDense => useStylesWithRootClass(inputRootClassName, !isDense && inputMediumClassName);
|
|
7036
7041
|
const getDefaultAutoCompleteValue = (hasMultiple, defaultValue) => hasMultiple && isString$2(defaultValue) ? [defaultValue] : defaultValue;
|
|
7037
7042
|
const getAutoCompleteGroupBy = group => group ? option => option.group : undefined;
|
|
@@ -7052,7 +7057,7 @@ const DotAutoComplete = ({
|
|
|
7052
7057
|
autoFocus,
|
|
7053
7058
|
autoHighlight,
|
|
7054
7059
|
className,
|
|
7055
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
7060
|
+
'data-pendoid': dataPendoId = rootClassName$_,
|
|
7056
7061
|
'data-testid': dataTestId,
|
|
7057
7062
|
defaultValue,
|
|
7058
7063
|
dense = true,
|
|
@@ -7117,7 +7122,7 @@ const DotAutoComplete = ({
|
|
|
7117
7122
|
const rootClasses = useStylesWithRootClass(getRootClassNames(className, size), ai ? inputAiClassName : '');
|
|
7118
7123
|
const textFieldRootClasses = getTextFieldRootClassNames(textFieldWarningClassName, readOnly);
|
|
7119
7124
|
const inputRootClasses = getInputRootClassNames(dense);
|
|
7120
|
-
const popperClasses = useStylesWithRootClass(rootClassName$
|
|
7125
|
+
const popperClasses = useStylesWithRootClass(rootClassName$1e, popperClassName);
|
|
7121
7126
|
let highlightedOption = null;
|
|
7122
7127
|
let textFieldInput;
|
|
7123
7128
|
const textFieldRef = element => {
|
|
@@ -7292,14 +7297,23 @@ const DotAutoComplete = ({
|
|
|
7292
7297
|
const {
|
|
7293
7298
|
inputProps
|
|
7294
7299
|
} = params;
|
|
7295
|
-
return
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7300
|
+
return jsxs(Fragment, {
|
|
7301
|
+
children: [jsx(DotIconButton, {
|
|
7302
|
+
iconId: "send-airplane",
|
|
7303
|
+
tooltip: "Send",
|
|
7304
|
+
"data-testid": dataTestId && `${dataTestId}-send-airplane-icon`,
|
|
7305
|
+
shape: "square",
|
|
7306
|
+
color: "ai",
|
|
7307
|
+
disabled: !(inputProps === null || inputProps === void 0 ? void 0 : inputProps.value),
|
|
7308
|
+
onClick: () => {
|
|
7309
|
+
if (inputProps === null || inputProps === void 0 ? void 0 : inputProps.value) {
|
|
7310
|
+
handleAiAction(inputProps.value.toString());
|
|
7311
|
+
}
|
|
7312
|
+
}
|
|
7313
|
+
}), jsx("span", {
|
|
7314
|
+
className: "ai-text-clear-icon",
|
|
7315
|
+
children: params.InputProps.endAdornment
|
|
7316
|
+
})]
|
|
7303
7317
|
});
|
|
7304
7318
|
};
|
|
7305
7319
|
const renderTrimmedLongOptions = (props, option) => {
|
|
@@ -7427,6 +7441,12 @@ const DotAutoComplete = ({
|
|
|
7427
7441
|
event.preventDefault();
|
|
7428
7442
|
(_a = actionItemRef === null || actionItemRef === void 0 ? void 0 : actionItemRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
7429
7443
|
}
|
|
7444
|
+
if (event.key === 'Enter' && ai) {
|
|
7445
|
+
event.stopPropagation();
|
|
7446
|
+
event.preventDefault();
|
|
7447
|
+
const text = event.target.value;
|
|
7448
|
+
handleAiAction(text);
|
|
7449
|
+
}
|
|
7430
7450
|
},
|
|
7431
7451
|
placeholder: showPlaceholder ? placeholder : undefined,
|
|
7432
7452
|
required: required,
|
|
@@ -7444,10 +7464,10 @@ const DotAutoComplete = ({
|
|
|
7444
7464
|
});
|
|
7445
7465
|
};
|
|
7446
7466
|
|
|
7447
|
-
const rootClassName$
|
|
7467
|
+
const rootClassName$Z = 'dot-avatar-group';
|
|
7448
7468
|
const StyledAvatarGroup = styled(AvatarGroup)`
|
|
7449
7469
|
${() => css`
|
|
7450
|
-
&.${rootClassName$
|
|
7470
|
+
&.${rootClassName$Z} {
|
|
7451
7471
|
justify-content: flex-end;
|
|
7452
7472
|
|
|
7453
7473
|
.MuiAvatar-root {
|
|
@@ -7466,7 +7486,7 @@ const DotAvatarGroup = ({
|
|
|
7466
7486
|
max = 3,
|
|
7467
7487
|
spacing = 'medium'
|
|
7468
7488
|
}) => {
|
|
7469
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7489
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Z, className);
|
|
7470
7490
|
return jsx(StyledAvatarGroup, {
|
|
7471
7491
|
"aria-label": ariaLabel,
|
|
7472
7492
|
classes: {
|
|
@@ -7481,14 +7501,14 @@ const DotAvatarGroup = ({
|
|
|
7481
7501
|
});
|
|
7482
7502
|
};
|
|
7483
7503
|
|
|
7484
|
-
const rootClassName$
|
|
7504
|
+
const rootClassName$Y = 'dot-avatar-with-details';
|
|
7485
7505
|
const StyledAvatarWithDetails = styled.div`
|
|
7486
7506
|
${({
|
|
7487
7507
|
theme,
|
|
7488
7508
|
$maxSubtitleLines,
|
|
7489
7509
|
$maxTitleLines
|
|
7490
7510
|
}) => css`
|
|
7491
|
-
&.${rootClassName$
|
|
7511
|
+
&.${rootClassName$Y} {
|
|
7492
7512
|
gap: ${theme.spacing(2)};
|
|
7493
7513
|
display: flex;
|
|
7494
7514
|
align-items: center;
|
|
@@ -7524,12 +7544,12 @@ const DotAvatarWithDetails = ({
|
|
|
7524
7544
|
ariaLabel,
|
|
7525
7545
|
avatar,
|
|
7526
7546
|
className,
|
|
7527
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
7547
|
+
'data-pendoid': dataPendoId = rootClassName$Y,
|
|
7528
7548
|
'data-testid': dataTestId,
|
|
7529
7549
|
subtitle,
|
|
7530
7550
|
title
|
|
7531
7551
|
}) => {
|
|
7532
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7552
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Y, className);
|
|
7533
7553
|
const titleClasses = useStylesWithRootClass('dot-avatar-with-details-title', title.maxLines ? 'max-lines-clamp' : '');
|
|
7534
7554
|
const subtitleClasses = useStylesWithRootClass('dot-avatar-with-details-subtitle', (subtitle === null || subtitle === void 0 ? void 0 : subtitle.maxLines) ? 'max-lines-clamp' : '');
|
|
7535
7555
|
return jsxs(StyledAvatarWithDetails, {
|
|
@@ -7564,13 +7584,13 @@ const DotAvatarWithDetails = ({
|
|
|
7564
7584
|
});
|
|
7565
7585
|
};
|
|
7566
7586
|
|
|
7567
|
-
const rootClassName$
|
|
7587
|
+
const rootClassName$X = 'dot-breadcrumbs';
|
|
7568
7588
|
const breadcrumbsWrapperClass = 'dot-breadcrumbs-wrapper';
|
|
7569
7589
|
const StyledBreadcrumbsWrapper = styled.div`
|
|
7570
7590
|
${({
|
|
7571
7591
|
theme
|
|
7572
7592
|
}) => css`
|
|
7573
|
-
&.${rootClassName$
|
|
7593
|
+
&.${rootClassName$X} {
|
|
7574
7594
|
overflow: hidden;
|
|
7575
7595
|
|
|
7576
7596
|
.dot-breadcrumbs-menu {
|
|
@@ -7590,7 +7610,7 @@ const StyledBreadcrumbs = styled(Breadcrumbs)`
|
|
|
7590
7610
|
${({
|
|
7591
7611
|
theme
|
|
7592
7612
|
}) => css`
|
|
7593
|
-
&.${rootClassName$
|
|
7613
|
+
&.${rootClassName$X} {
|
|
7594
7614
|
margin-bottom: 0;
|
|
7595
7615
|
|
|
7596
7616
|
.MuiBreadcrumbs-ol {
|
|
@@ -7918,7 +7938,7 @@ const DotBreadcrumbs = ({
|
|
|
7918
7938
|
children: [jsx(StyledBreadcrumbs, {
|
|
7919
7939
|
"aria-label": "breadcrumb",
|
|
7920
7940
|
classes: {
|
|
7921
|
-
root: rootClassName$
|
|
7941
|
+
root: rootClassName$X,
|
|
7922
7942
|
ol: 'dot-ol',
|
|
7923
7943
|
li: 'dot-li'
|
|
7924
7944
|
},
|
|
@@ -7949,14 +7969,14 @@ const DotBreadcrumbs = ({
|
|
|
7949
7969
|
});
|
|
7950
7970
|
};
|
|
7951
7971
|
|
|
7952
|
-
const rootClassName$
|
|
7972
|
+
const rootClassName$W = 'dot-button-toggle';
|
|
7953
7973
|
// TODO: need to update ripple color
|
|
7954
7974
|
// https://github.com/mui/material-ui/issues/28543
|
|
7955
7975
|
const StyledToggleButtonGroup = styled(ToggleButtonGroup)`
|
|
7956
7976
|
${({
|
|
7957
7977
|
theme
|
|
7958
7978
|
}) => css`
|
|
7959
|
-
&.${rootClassName$
|
|
7979
|
+
&.${rootClassName$W} {
|
|
7960
7980
|
button:not(.MuiToggleButton-sizeLarge):not(.MuiToggleButton-sizeSmall) {
|
|
7961
7981
|
/* Override height for medium size */
|
|
7962
7982
|
height: ${theme.spacing(5)};
|
|
@@ -8079,7 +8099,7 @@ const DotButtonToggle = ({
|
|
|
8079
8099
|
buttonOptions,
|
|
8080
8100
|
className,
|
|
8081
8101
|
color,
|
|
8082
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
8102
|
+
'data-pendoid': dataPendoId = rootClassName$W,
|
|
8083
8103
|
'data-testid': dataTestId = 'dot-toggle',
|
|
8084
8104
|
disableFocusRipple = false,
|
|
8085
8105
|
disableRipple = false,
|
|
@@ -8089,7 +8109,7 @@ const DotButtonToggle = ({
|
|
|
8089
8109
|
size = 'medium',
|
|
8090
8110
|
value
|
|
8091
8111
|
}) => {
|
|
8092
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8112
|
+
const rootClasses = useStylesWithRootClass(rootClassName$W, className);
|
|
8093
8113
|
const renderToggleButton = ({
|
|
8094
8114
|
ariaLabel: optionAriaLabel,
|
|
8095
8115
|
badgeContent: optionBadgeContent,
|
|
@@ -8174,12 +8194,12 @@ const TooltipToggleButton = forwardRef((_a, ref) => {
|
|
|
8174
8194
|
}));
|
|
8175
8195
|
});
|
|
8176
8196
|
|
|
8177
|
-
const rootClassName$
|
|
8197
|
+
const rootClassName$V = 'dot-card';
|
|
8178
8198
|
const StyledCard = styled(Card)`
|
|
8179
8199
|
${({
|
|
8180
8200
|
theme
|
|
8181
8201
|
}) => css`
|
|
8182
|
-
&.${rootClassName$
|
|
8202
|
+
&.${rootClassName$V} {
|
|
8183
8203
|
background-color: ${theme.palette.figma.background.level1.white};
|
|
8184
8204
|
}
|
|
8185
8205
|
`}
|
|
@@ -8191,7 +8211,7 @@ const DotCard = ({
|
|
|
8191
8211
|
className,
|
|
8192
8212
|
'data-testid': dataTestId
|
|
8193
8213
|
}) => {
|
|
8194
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8214
|
+
const rootClasses = useStylesWithRootClass(rootClassName$V, className);
|
|
8195
8215
|
return jsx(StyledCard, {
|
|
8196
8216
|
"aria-label": ariaLabel,
|
|
8197
8217
|
classes: {
|
|
@@ -8220,12 +8240,12 @@ const DotCardContent = ({
|
|
|
8220
8240
|
});
|
|
8221
8241
|
};
|
|
8222
8242
|
|
|
8223
|
-
const rootClassName$
|
|
8243
|
+
const rootClassName$U = 'dot-card-footer';
|
|
8224
8244
|
const StyledDiv = styled.div`
|
|
8225
8245
|
${({
|
|
8226
8246
|
theme
|
|
8227
8247
|
}) => css`
|
|
8228
|
-
&.${rootClassName$
|
|
8248
|
+
&.${rootClassName$U} {
|
|
8229
8249
|
padding: ${theme.spacing(2)};
|
|
8230
8250
|
}
|
|
8231
8251
|
`}
|
|
@@ -8237,7 +8257,7 @@ const DotCardFooter = ({
|
|
|
8237
8257
|
className,
|
|
8238
8258
|
'data-testid': dataTestId
|
|
8239
8259
|
}) => {
|
|
8240
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8260
|
+
const rootClasses = useStylesWithRootClass(rootClassName$U, className);
|
|
8241
8261
|
return jsx(StyledDiv, {
|
|
8242
8262
|
"aria-label": ariaLabel,
|
|
8243
8263
|
className: rootClasses,
|
|
@@ -8246,13 +8266,13 @@ const DotCardFooter = ({
|
|
|
8246
8266
|
});
|
|
8247
8267
|
};
|
|
8248
8268
|
|
|
8249
|
-
const rootClassName$
|
|
8269
|
+
const rootClassName$T = 'dot-card-header';
|
|
8250
8270
|
const StyledCardHeader = styled(CardHeader)`
|
|
8251
8271
|
${({
|
|
8252
8272
|
theme,
|
|
8253
8273
|
$maxTitleLines
|
|
8254
8274
|
}) => css`
|
|
8255
|
-
&.${rootClassName$
|
|
8275
|
+
&.${rootClassName$T} {
|
|
8256
8276
|
.MuiCardHeader-content {
|
|
8257
8277
|
overflow-x: hidden;
|
|
8258
8278
|
|
|
@@ -8284,7 +8304,7 @@ const DotCardHeader = ({
|
|
|
8284
8304
|
titleMaxLines = 1,
|
|
8285
8305
|
titleSize = 'large'
|
|
8286
8306
|
}) => {
|
|
8287
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8307
|
+
const rootClasses = useStylesWithRootClass(rootClassName$T, className);
|
|
8288
8308
|
const nonSmallTitleSize = titleSize === 'medium' ? 'h3' : 'h2';
|
|
8289
8309
|
const titleVariant = titleSize === 'small' ? 'h4' : nonSmallTitleSize;
|
|
8290
8310
|
const subheaderVariant = subheaderSize === 'small' ? 'body2' : 'body1';
|
|
@@ -8320,9 +8340,9 @@ const DotCardHeader = ({
|
|
|
8320
8340
|
});
|
|
8321
8341
|
};
|
|
8322
8342
|
|
|
8323
|
-
const rootClassName$
|
|
8343
|
+
const rootClassName$S = 'dot-form-control-label';
|
|
8324
8344
|
const StyledFormControlLabel = styled(FormControlLabel)`
|
|
8325
|
-
&.${rootClassName$
|
|
8345
|
+
&.${rootClassName$S} {
|
|
8326
8346
|
.MuiFormControlLabel-label {
|
|
8327
8347
|
margin-bottom: 0;
|
|
8328
8348
|
padding: 0 0 0 4px;
|
|
@@ -8345,12 +8365,12 @@ const StyledFormControlLabel = styled(FormControlLabel)`
|
|
|
8345
8365
|
}
|
|
8346
8366
|
`;
|
|
8347
8367
|
|
|
8348
|
-
const rootClassName$
|
|
8368
|
+
const rootClassName$R = 'dot-checkbox';
|
|
8349
8369
|
const StyledCheckbox = styled(Checkbox)`
|
|
8350
8370
|
${({
|
|
8351
8371
|
theme
|
|
8352
8372
|
}) => css`
|
|
8353
|
-
&.${rootClassName$
|
|
8373
|
+
&.${rootClassName$R} {
|
|
8354
8374
|
padding: ${theme.spacing(1)};
|
|
8355
8375
|
|
|
8356
8376
|
&.MuiCheckbox-indeterminate {
|
|
@@ -8369,7 +8389,7 @@ function DotCheckbox({
|
|
|
8369
8389
|
ariaLabelledby,
|
|
8370
8390
|
checked,
|
|
8371
8391
|
className,
|
|
8372
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
8392
|
+
'data-pendoid': dataPendoId = rootClassName$S,
|
|
8373
8393
|
'data-testid': dataTestId,
|
|
8374
8394
|
disabled,
|
|
8375
8395
|
disableRipple,
|
|
@@ -8384,14 +8404,14 @@ function DotCheckbox({
|
|
|
8384
8404
|
size = 'medium',
|
|
8385
8405
|
value
|
|
8386
8406
|
}) {
|
|
8387
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8407
|
+
const rootClasses = useStylesWithRootClass(rootClassName$S, className);
|
|
8388
8408
|
const handleChange = event => {
|
|
8389
8409
|
onChange && onChange(event, event.target.value);
|
|
8390
8410
|
};
|
|
8391
8411
|
const checkboxControl = jsx(StyledCheckbox, {
|
|
8392
8412
|
checked: checked,
|
|
8393
8413
|
classes: {
|
|
8394
|
-
root: rootClassName$
|
|
8414
|
+
root: rootClassName$R
|
|
8395
8415
|
},
|
|
8396
8416
|
color: "primary",
|
|
8397
8417
|
"data-pendoid": dataPendoId,
|
|
@@ -8420,13 +8440,13 @@ function DotCheckbox({
|
|
|
8420
8440
|
});
|
|
8421
8441
|
}
|
|
8422
8442
|
|
|
8423
|
-
const rootClassName$
|
|
8443
|
+
const rootClassName$Q = 'dot-form-group';
|
|
8424
8444
|
const groupLabelClassName = 'dot-form-group-label';
|
|
8425
8445
|
const startAdornmentClassName = 'dot-start-adornment';
|
|
8426
8446
|
const endAdornmentClassName = 'dot-end-adornment';
|
|
8427
8447
|
const placementClassName = 'dot-';
|
|
8428
8448
|
const StyledFormControl = styled(FormControl)`
|
|
8429
|
-
&.${rootClassName$
|
|
8449
|
+
&.${rootClassName$Q} {
|
|
8430
8450
|
.MuiFormLabel-root {
|
|
8431
8451
|
width: 100%;
|
|
8432
8452
|
line-height: 24px;
|
|
@@ -8457,7 +8477,7 @@ const StyledFormControl = styled(FormControl)`
|
|
|
8457
8477
|
}
|
|
8458
8478
|
`;
|
|
8459
8479
|
|
|
8460
|
-
const rootClassName$
|
|
8480
|
+
const rootClassName$P = 'dot-checkbox-group';
|
|
8461
8481
|
const wrapperClassName$1 = 'dot-checkbox-group-wrapper';
|
|
8462
8482
|
const checkboxListClassName = 'dot-checkbox-list';
|
|
8463
8483
|
const checkboxListItemClassName = 'dot-checkbox-list-item';
|
|
@@ -8466,7 +8486,7 @@ const StyledCheckboxGroup = styled.div`
|
|
|
8466
8486
|
theme
|
|
8467
8487
|
}) => css`{
|
|
8468
8488
|
&.${wrapperClassName$1} {
|
|
8469
|
-
.${rootClassName$
|
|
8489
|
+
.${rootClassName$P} {
|
|
8470
8490
|
width: 100%;
|
|
8471
8491
|
}
|
|
8472
8492
|
|
|
@@ -8493,7 +8513,7 @@ const StyledCheckboxGroup = styled.div`
|
|
|
8493
8513
|
margin-top: 0;
|
|
8494
8514
|
padding-left: ${theme.spacing(2.5)};
|
|
8495
8515
|
|
|
8496
|
-
.${rootClassName$
|
|
8516
|
+
.${rootClassName$S} {
|
|
8497
8517
|
margin: 0;
|
|
8498
8518
|
}
|
|
8499
8519
|
}
|
|
@@ -8501,13 +8521,13 @@ const StyledCheckboxGroup = styled.div`
|
|
|
8501
8521
|
`}
|
|
8502
8522
|
`;
|
|
8503
8523
|
|
|
8504
|
-
const rootClassName$
|
|
8524
|
+
const rootClassName$O = 'dot-form-group';
|
|
8505
8525
|
const StyledFormGroup = styled(FormGroup)`
|
|
8506
8526
|
${({
|
|
8507
8527
|
theme,
|
|
8508
8528
|
row
|
|
8509
8529
|
}) => css`
|
|
8510
|
-
&.${rootClassName$
|
|
8530
|
+
&.${rootClassName$O} > * {
|
|
8511
8531
|
margin: ${row ? `${theme.spacing(0.5)}` : 0};
|
|
8512
8532
|
}
|
|
8513
8533
|
`}
|
|
@@ -8520,7 +8540,7 @@ function DotFormGroup({
|
|
|
8520
8540
|
'data-testid': dataTestId,
|
|
8521
8541
|
row
|
|
8522
8542
|
}) {
|
|
8523
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8543
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Q, className);
|
|
8524
8544
|
return jsx(StyledFormGroup, {
|
|
8525
8545
|
"aria-label": ariaLabel,
|
|
8526
8546
|
classes: {
|
|
@@ -8559,7 +8579,7 @@ function DotCheckboxGroup({
|
|
|
8559
8579
|
size = 'medium'
|
|
8560
8580
|
}) {
|
|
8561
8581
|
const placement = `${placementClassName}${labelPlacement}`;
|
|
8562
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8582
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Q, rootClassName$P, className, placement);
|
|
8563
8583
|
const [selectedOptions, setSelectedOptions] = useState(defaultValues);
|
|
8564
8584
|
const [allChecked, setAllChecked] = useState(false);
|
|
8565
8585
|
/* This will ensure that state can be updated from the outside */
|
|
@@ -8644,12 +8664,12 @@ function DotCheckboxGroup({
|
|
|
8644
8664
|
});
|
|
8645
8665
|
}
|
|
8646
8666
|
|
|
8647
|
-
const rootClassName$
|
|
8667
|
+
const rootClassName$N = 'chip-list';
|
|
8648
8668
|
const StyledChipList = styled.div`
|
|
8649
8669
|
${({
|
|
8650
8670
|
theme
|
|
8651
8671
|
}) => css`
|
|
8652
|
-
&.${rootClassName$
|
|
8672
|
+
&.${rootClassName$N} {
|
|
8653
8673
|
display: flex;
|
|
8654
8674
|
gap: ${theme.spacing(1)};
|
|
8655
8675
|
}
|
|
@@ -8724,19 +8744,19 @@ function DotChipList({
|
|
|
8724
8744
|
setChips(itemElements);
|
|
8725
8745
|
}, [items, maxChars]);
|
|
8726
8746
|
return jsx(StyledChipList, {
|
|
8727
|
-
className: rootClassName$
|
|
8747
|
+
className: rootClassName$N,
|
|
8728
8748
|
"data-testid": dataTestId,
|
|
8729
8749
|
style: style,
|
|
8730
8750
|
children: chips
|
|
8731
8751
|
});
|
|
8732
8752
|
}
|
|
8733
8753
|
|
|
8734
|
-
const rootClassName$
|
|
8754
|
+
const rootClassName$M = 'dot-dialog';
|
|
8735
8755
|
const StyledDialog = styled(Dialog)`
|
|
8736
8756
|
${({
|
|
8737
8757
|
theme
|
|
8738
8758
|
}) => css`
|
|
8739
|
-
&.${rootClassName$
|
|
8759
|
+
&.${rootClassName$M} {
|
|
8740
8760
|
.MuiDialog-paper {
|
|
8741
8761
|
background: ${theme.palette.figma.background.level1.white};
|
|
8742
8762
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -8782,7 +8802,7 @@ const DotDialog = ({
|
|
|
8782
8802
|
cancelButtonProps,
|
|
8783
8803
|
cancelButtonVisible = true,
|
|
8784
8804
|
className,
|
|
8785
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
8805
|
+
'data-pendoid': dataPendoId = rootClassName$M,
|
|
8786
8806
|
'data-testid': dataTestId,
|
|
8787
8807
|
children,
|
|
8788
8808
|
closeIconVisible,
|
|
@@ -8796,7 +8816,7 @@ const DotDialog = ({
|
|
|
8796
8816
|
submitButtonProps,
|
|
8797
8817
|
title
|
|
8798
8818
|
}) => {
|
|
8799
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8819
|
+
const rootClasses = useStylesWithRootClass(rootClassName$M, className);
|
|
8800
8820
|
const cancelClasses = useStylesWithRootClass(cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.className, 'cancel-button');
|
|
8801
8821
|
const [isOpen, setIsOpen] = useState(open);
|
|
8802
8822
|
const hasSecondaryAction = !!secondaryButtonProps;
|
|
@@ -8933,7 +8953,7 @@ const DotConfirmationDialog = ({
|
|
|
8933
8953
|
});
|
|
8934
8954
|
};
|
|
8935
8955
|
|
|
8936
|
-
const rootClassName$
|
|
8956
|
+
const rootClassName$L = 'dot-grid';
|
|
8937
8957
|
const frGetter = value => typeof value === 'number' ? `repeat(${value}, 1fr)` : value;
|
|
8938
8958
|
const breakpointsGetter$1 = (theme, columnsBreakpoints, columnGap, rowGap) => `${theme.breakpoints.up('xs')} {
|
|
8939
8959
|
column-gap: ${`${columnGap.xs}px`};
|
|
@@ -8993,7 +9013,7 @@ const Grid = ({
|
|
|
8993
9013
|
children,
|
|
8994
9014
|
isLoading
|
|
8995
9015
|
}) => {
|
|
8996
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
9016
|
+
const rootClasses = useStylesWithRootClass(rootClassName$L, className);
|
|
8997
9017
|
return jsxs("div", {
|
|
8998
9018
|
className: rootClasses,
|
|
8999
9019
|
children: [children, isLoading && jsx(DotProgress, {
|
|
@@ -9017,7 +9037,7 @@ const StyledGrid = styled(Grid)`
|
|
|
9017
9037
|
theme,
|
|
9018
9038
|
width
|
|
9019
9039
|
}) => css`
|
|
9020
|
-
&.${rootClassName$
|
|
9040
|
+
&.${rootClassName$L} {
|
|
9021
9041
|
display: grid;
|
|
9022
9042
|
grid-template-rows: ${frGetter(rows)};
|
|
9023
9043
|
${columns ? `${columns && `grid-template-columns: ${frGetter(columns)}`};` : breakpointsGetter$1(theme, columnsBreakpoints, columnGap, rowGap)}
|
|
@@ -9288,12 +9308,12 @@ const CssGridDebug = ({
|
|
|
9288
9308
|
});
|
|
9289
9309
|
};
|
|
9290
9310
|
|
|
9291
|
-
const rootClassName$
|
|
9311
|
+
const rootClassName$K = 'dot-pill';
|
|
9292
9312
|
const StyledPill = styled(Chip)`
|
|
9293
9313
|
${({
|
|
9294
9314
|
theme
|
|
9295
9315
|
}) => css`
|
|
9296
|
-
&.${rootClassName$
|
|
9316
|
+
&.${rootClassName$K} {
|
|
9297
9317
|
background-color: ${({
|
|
9298
9318
|
backgroundcolor,
|
|
9299
9319
|
variant
|
|
@@ -9417,7 +9437,7 @@ const DotPill = ({
|
|
|
9417
9437
|
status = 'default',
|
|
9418
9438
|
variant = 'filled'
|
|
9419
9439
|
}) => {
|
|
9420
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
9440
|
+
const rootClasses = useStylesWithRootClass(rootClassName$K, className, status);
|
|
9421
9441
|
return jsx(StyledPill, {
|
|
9422
9442
|
"aria-label": ariaLabel,
|
|
9423
9443
|
bordercolor: bordercolor,
|
|
@@ -10993,18 +11013,18 @@ function addAutoHideDuration(severity) {
|
|
|
10993
11013
|
return severity === 'error' ? null : 10000;
|
|
10994
11014
|
}
|
|
10995
11015
|
|
|
10996
|
-
const rootClassName$
|
|
11016
|
+
const rootClassName$J = 'dot-snackbar';
|
|
10997
11017
|
const StyledSnackbar = styled(Snackbar)`
|
|
10998
11018
|
${({
|
|
10999
11019
|
theme,
|
|
11000
11020
|
width,
|
|
11001
11021
|
$anchorOriginTop
|
|
11002
11022
|
}) => css`
|
|
11003
|
-
&.${rootClassName$
|
|
11023
|
+
&.${rootClassName$J} {
|
|
11004
11024
|
.MuiAlert-message {
|
|
11005
11025
|
word-break: break-word;
|
|
11006
11026
|
}
|
|
11007
|
-
.${rootClassName$
|
|
11027
|
+
.${rootClassName$1l} {
|
|
11008
11028
|
align-items: flex-start;
|
|
11009
11029
|
}
|
|
11010
11030
|
&.MuiSnackbar-anchorOriginTopLeft,
|
|
@@ -11057,7 +11077,7 @@ const DotSnackbar = ({
|
|
|
11057
11077
|
}) => {
|
|
11058
11078
|
const hasActions = !!(primaryAction || secondaryAction);
|
|
11059
11079
|
const calculatedAutoHideDuration = autoHideDuration === null || autoHideDuration > 0 ? autoHideDuration : addAutoHideDuration(severity);
|
|
11060
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11080
|
+
const rootClasses = useStylesWithRootClass(rootClassName$J, className);
|
|
11061
11081
|
const handleSnackbarClose = reason => {
|
|
11062
11082
|
if (!reason || hideOnClickAway || !hideOnClickAway && reason !== 'clickaway') {
|
|
11063
11083
|
onClose();
|
|
@@ -11127,10 +11147,10 @@ const DotSnackbar = ({
|
|
|
11127
11147
|
});
|
|
11128
11148
|
};
|
|
11129
11149
|
|
|
11130
|
-
const rootClassName$
|
|
11150
|
+
const rootClassName$I = 'dot-snackbar-container';
|
|
11131
11151
|
const StyledSnackbarContainer = styled.div`
|
|
11132
11152
|
${() => css`
|
|
11133
|
-
&.${rootClassName$
|
|
11153
|
+
&.${rootClassName$I} {
|
|
11134
11154
|
position: absolute;
|
|
11135
11155
|
top: 0;
|
|
11136
11156
|
width: 250px;
|
|
@@ -11162,10 +11182,10 @@ const DotSnackbarContainer = ({
|
|
|
11162
11182
|
};
|
|
11163
11183
|
}
|
|
11164
11184
|
return jsx(StyledSnackbarContainer, {
|
|
11165
|
-
className: rootClassName$
|
|
11185
|
+
className: rootClassName$I,
|
|
11166
11186
|
children: jsx("div", {
|
|
11167
|
-
className: rootClassName$
|
|
11168
|
-
"data-testid": rootClassName$
|
|
11187
|
+
className: rootClassName$I,
|
|
11188
|
+
"data-testid": rootClassName$I,
|
|
11169
11189
|
children: alerts.slice().reverse().map(alert => {
|
|
11170
11190
|
return jsx(DotSnackbar, {
|
|
11171
11191
|
autoCloseOnAction: autoCloseOnAction,
|
|
@@ -11239,12 +11259,12 @@ const useEnqueueErrorMessage = error => {
|
|
|
11239
11259
|
}, [error]);
|
|
11240
11260
|
};
|
|
11241
11261
|
|
|
11242
|
-
const rootClassName$
|
|
11262
|
+
const rootClassName$H = 'dot-dashboard-details';
|
|
11243
11263
|
const StyledDashboardDetails = styled(DotDrawer)`
|
|
11244
11264
|
${({
|
|
11245
11265
|
theme
|
|
11246
11266
|
}) => css`
|
|
11247
|
-
&.${rootClassName$
|
|
11267
|
+
&.${rootClassName$H} {
|
|
11248
11268
|
.dot-drawer-paper {
|
|
11249
11269
|
padding: 0;
|
|
11250
11270
|
width: 382px;
|
|
@@ -11370,7 +11390,7 @@ const DotDashboardDetailsView = ({
|
|
|
11370
11390
|
modifiedAuthorUser
|
|
11371
11391
|
}) => {
|
|
11372
11392
|
var _a, _b;
|
|
11373
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11393
|
+
const rootClasses = useStylesWithRootClass(rootClassName$H, className);
|
|
11374
11394
|
const closeHandler = useCallback(event => {
|
|
11375
11395
|
onClose && onClose(event);
|
|
11376
11396
|
}, [onClose]);
|
|
@@ -12037,12 +12057,12 @@ function DotDashboardDialog({
|
|
|
12037
12057
|
});
|
|
12038
12058
|
}
|
|
12039
12059
|
|
|
12040
|
-
const rootClassName$
|
|
12060
|
+
const rootClassName$G = 'dot-impact-dialog';
|
|
12041
12061
|
const StyledImpactDialog = styled(DotDialog)`
|
|
12042
12062
|
${({
|
|
12043
12063
|
theme
|
|
12044
12064
|
}) => css`
|
|
12045
|
-
&.${rootClassName$
|
|
12065
|
+
&.${rootClassName$G} {
|
|
12046
12066
|
.high-impact-default-content {
|
|
12047
12067
|
margin-top: ${theme.spacing(2)};
|
|
12048
12068
|
margin-bottom: ${theme.spacing(3)};
|
|
@@ -12148,7 +12168,7 @@ const DotImpactDialog = ({
|
|
|
12148
12168
|
}
|
|
12149
12169
|
return '';
|
|
12150
12170
|
}, [action, capitalize, impact, record]);
|
|
12151
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
12171
|
+
const rootClasses = useStylesWithRootClass(rootClassName$G, className);
|
|
12152
12172
|
return jsx(StyledImpactDialog, {
|
|
12153
12173
|
"data-testid": dataTestId,
|
|
12154
12174
|
className: rootClasses,
|
|
@@ -13490,7 +13510,7 @@ function DotDashboardHeader({
|
|
|
13490
13510
|
});
|
|
13491
13511
|
}
|
|
13492
13512
|
|
|
13493
|
-
const rootClassName$
|
|
13513
|
+
const rootClassName$F = 'dot-empty-state';
|
|
13494
13514
|
const emptyStateImageSizing = {
|
|
13495
13515
|
xsmall: 9,
|
|
13496
13516
|
dense: 15,
|
|
@@ -13561,9 +13581,9 @@ const StyledEmptyState = styled.div`
|
|
|
13561
13581
|
`}
|
|
13562
13582
|
`;
|
|
13563
13583
|
|
|
13564
|
-
const rootClassName$
|
|
13584
|
+
const rootClassName$E = 'dot-illustration';
|
|
13565
13585
|
const StyledIllustration = styled.span`
|
|
13566
|
-
&.${rootClassName$
|
|
13586
|
+
&.${rootClassName$E} {
|
|
13567
13587
|
display: inline-block;
|
|
13568
13588
|
}
|
|
13569
13589
|
`;
|
|
@@ -13580,17 +13600,17 @@ const DotIllustration = ({
|
|
|
13580
13600
|
tooltip,
|
|
13581
13601
|
tooltipPlacement = 'right-end'
|
|
13582
13602
|
}) => {
|
|
13583
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13603
|
+
const rootClasses = useStylesWithRootClass(rootClassName$E, className);
|
|
13584
13604
|
return jsx(DotTooltip, {
|
|
13585
13605
|
childrenDisplayStyle: "inline-block",
|
|
13586
13606
|
title: tooltip,
|
|
13587
13607
|
placement: tooltipPlacement,
|
|
13588
|
-
"data-testid": `${dataTestId || rootClassName$
|
|
13608
|
+
"data-testid": `${dataTestId || rootClassName$E}-tooltip`,
|
|
13589
13609
|
children: jsx(StyledIllustration, {
|
|
13590
13610
|
"aria-hidden": "false",
|
|
13591
13611
|
"aria-label": ariaLabel || title || 'Illustration',
|
|
13592
13612
|
className: rootClasses,
|
|
13593
|
-
"data-testid": dataTestId || rootClassName$
|
|
13613
|
+
"data-testid": dataTestId || rootClassName$E,
|
|
13594
13614
|
role: ariaRole,
|
|
13595
13615
|
children: jsx("img", {
|
|
13596
13616
|
alt: alt || 'Illustration',
|
|
@@ -13616,7 +13636,7 @@ const DotEmptyState = ({
|
|
|
13616
13636
|
subtitle,
|
|
13617
13637
|
title
|
|
13618
13638
|
}) => {
|
|
13619
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13639
|
+
const rootClasses = useStylesWithRootClass(rootClassName$F, className);
|
|
13620
13640
|
return jsxs(StyledEmptyState, {
|
|
13621
13641
|
"aria-label": ariaLabel,
|
|
13622
13642
|
className: `${rootClasses} ${size}`,
|
|
@@ -13697,20 +13717,20 @@ const StyledRadioGroup = styled(RadioGroup)`
|
|
|
13697
13717
|
&.${groupClassName} {
|
|
13698
13718
|
padding-left: ${theme.spacing(2.5)};
|
|
13699
13719
|
|
|
13700
|
-
.${rootClassName$
|
|
13720
|
+
.${rootClassName$S} {
|
|
13701
13721
|
margin: 0;
|
|
13702
13722
|
}
|
|
13703
13723
|
}
|
|
13704
13724
|
`}
|
|
13705
13725
|
`;
|
|
13706
13726
|
|
|
13707
|
-
const rootClassName$
|
|
13727
|
+
const rootClassName$D = 'dot-date-picker';
|
|
13708
13728
|
const popperClassName = 'dot-date-picker-popper';
|
|
13709
13729
|
const containerClassName$2 = 'dot-date-picker-container';
|
|
13710
13730
|
const rectanglePickersDayClassName = 'dot-rectangle-pickers-day';
|
|
13711
13731
|
const StyledDatePickerContainer = styled.div`
|
|
13712
13732
|
${() => css`
|
|
13713
|
-
&.${rootClassName$
|
|
13733
|
+
&.${rootClassName$D} .full-width {
|
|
13714
13734
|
width: 100%;
|
|
13715
13735
|
}
|
|
13716
13736
|
`}
|
|
@@ -13719,7 +13739,7 @@ const StyledDatePicker = styled(DatePicker)`
|
|
|
13719
13739
|
${({
|
|
13720
13740
|
theme
|
|
13721
13741
|
}) => css`
|
|
13722
|
-
&.${rootClassName$
|
|
13742
|
+
&.${rootClassName$D} {
|
|
13723
13743
|
${pickerInputStyles(theme)};
|
|
13724
13744
|
|
|
13725
13745
|
.Mui-disabled.MuiInputBase-root,
|
|
@@ -13759,7 +13779,7 @@ const StyledPickersDay = styled(PickersDay)`
|
|
|
13759
13779
|
`}
|
|
13760
13780
|
`;
|
|
13761
13781
|
|
|
13762
|
-
const rootClassName$
|
|
13782
|
+
const rootClassName$C = 'dot-time-picker';
|
|
13763
13783
|
const containerClassName$1 = 'dot-time-picker-container';
|
|
13764
13784
|
const TIME_SELECTION_HEIGHT_SPACING = 34.5;
|
|
13765
13785
|
const TIME_SELECTION_WIDTH_SPACING = 14.5;
|
|
@@ -13830,7 +13850,7 @@ const StyledTimePicker = styled(TimePicker)`
|
|
|
13830
13850
|
${({
|
|
13831
13851
|
theme
|
|
13832
13852
|
}) => css`
|
|
13833
|
-
&.${rootClassName$
|
|
13853
|
+
&.${rootClassName$C} {
|
|
13834
13854
|
${pickerInputStyles(theme)};
|
|
13835
13855
|
|
|
13836
13856
|
.Mui-disabled.MuiInputBase-root,
|
|
@@ -13849,36 +13869,36 @@ const StyledTimePicker = styled(TimePicker)`
|
|
|
13849
13869
|
`}
|
|
13850
13870
|
`;
|
|
13851
13871
|
|
|
13852
|
-
const rootClassName$
|
|
13872
|
+
const rootClassName$B = 'dot-form';
|
|
13853
13873
|
const StyledFormContainer = styled.div`
|
|
13854
13874
|
${({
|
|
13855
13875
|
theme
|
|
13856
13876
|
}) => css`
|
|
13857
|
-
&.${rootClassName$
|
|
13877
|
+
&.${rootClassName$B} {
|
|
13858
13878
|
margin: ${theme.spacing(3, 0)};
|
|
13859
13879
|
|
|
13860
|
-
.${rootClassName$
|
|
13861
|
-
.${rootClassName$
|
|
13862
|
-
.${rootClassName$
|
|
13880
|
+
.${rootClassName$Q},
|
|
13881
|
+
.${rootClassName$S},
|
|
13882
|
+
.${rootClassName$1p},
|
|
13863
13883
|
.${rootSelectClassName},
|
|
13864
|
-
.${rootClassName$
|
|
13865
|
-
.${rootClassName$
|
|
13884
|
+
.${rootClassName$D},
|
|
13885
|
+
.${rootClassName$C} {
|
|
13866
13886
|
margin: ${theme.spacing(1, 0)};
|
|
13867
13887
|
}
|
|
13868
13888
|
|
|
13869
13889
|
.${wrapperClassName$2} {
|
|
13870
|
-
+ .${rootClassName$
|
|
13890
|
+
+ .${rootClassName$1p},
|
|
13871
13891
|
.${wrapperClassName$2}
|
|
13872
13892
|
+ .${rootSelectClassName},
|
|
13873
13893
|
.${wrapperClassName$2}
|
|
13874
|
-
+ .${rootClassName$
|
|
13894
|
+
+ .${rootClassName$D},
|
|
13875
13895
|
.${wrapperClassName$2}
|
|
13876
|
-
+ .${rootClassName$
|
|
13896
|
+
+ .${rootClassName$C} {
|
|
13877
13897
|
margin: ${theme.spacing(0, 0, 1, 0)};
|
|
13878
13898
|
}
|
|
13879
13899
|
|
|
13880
|
-
.${rootClassName$
|
|
13881
|
-
.${rootClassName$
|
|
13900
|
+
.${rootClassName$P}, .${groupClassName} {
|
|
13901
|
+
.${rootClassName$S} {
|
|
13882
13902
|
margin: 0;
|
|
13883
13903
|
}
|
|
13884
13904
|
}
|
|
@@ -13893,7 +13913,7 @@ const DotForm = ({
|
|
|
13893
13913
|
'data-testid': dataTestId,
|
|
13894
13914
|
onSubmit
|
|
13895
13915
|
}) => {
|
|
13896
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13916
|
+
const rootClasses = useStylesWithRootClass(rootClassName$B, className);
|
|
13897
13917
|
return jsx("form", {
|
|
13898
13918
|
"aria-label": ariaLabel,
|
|
13899
13919
|
"data-testid": dataTestId,
|
|
@@ -13906,10 +13926,10 @@ const DotForm = ({
|
|
|
13906
13926
|
});
|
|
13907
13927
|
};
|
|
13908
13928
|
|
|
13909
|
-
const rootClassName$
|
|
13929
|
+
const rootClassName$A = 'dot-dynamic-form';
|
|
13910
13930
|
const StyledDynamicForm = styled(DotForm)`
|
|
13911
13931
|
${() => css`
|
|
13912
|
-
&.${rootClassName$
|
|
13932
|
+
&.${rootClassName$A} {
|
|
13913
13933
|
}
|
|
13914
13934
|
`}
|
|
13915
13935
|
`;
|
|
@@ -14089,12 +14109,12 @@ const checkIfFormDataValid = formState => {
|
|
|
14089
14109
|
return true;
|
|
14090
14110
|
};
|
|
14091
14111
|
|
|
14092
|
-
const rootClassName$
|
|
14112
|
+
const rootClassName$z = 'dot-progress-button';
|
|
14093
14113
|
const StyledProgressButton = styled(DotButton)`
|
|
14094
14114
|
${({
|
|
14095
14115
|
theme
|
|
14096
14116
|
}) => css`
|
|
14097
|
-
&.${rootClassName$
|
|
14117
|
+
&.${rootClassName$z} {
|
|
14098
14118
|
.hidden {
|
|
14099
14119
|
// hide children but preserve its space so that
|
|
14100
14120
|
// button's dimensions don't change
|
|
@@ -14119,7 +14139,7 @@ const DotProgressButton = ({
|
|
|
14119
14139
|
ariaLabel,
|
|
14120
14140
|
children,
|
|
14121
14141
|
className,
|
|
14122
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
14142
|
+
'data-pendoid': dataPendoId = rootClassName$z,
|
|
14123
14143
|
'data-testid': dataTestId,
|
|
14124
14144
|
disabled = false,
|
|
14125
14145
|
disableInteractive,
|
|
@@ -14133,7 +14153,7 @@ const DotProgressButton = ({
|
|
|
14133
14153
|
tooltip,
|
|
14134
14154
|
type = 'primary'
|
|
14135
14155
|
}) => {
|
|
14136
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14156
|
+
const rootClasses = useStylesWithRootClass(rootClassName$z, className);
|
|
14137
14157
|
const isButtonDisabled = disabled || isLoading;
|
|
14138
14158
|
const titleClasses = useStylesWithRootClass(isLoading ? 'hidden' : '');
|
|
14139
14159
|
const progressCircleSize = size === 'large' ? SPINNER_LARGE_SIZE : SPINNER_DEFAULT_SIZE;
|
|
@@ -14163,12 +14183,12 @@ const DotProgressButton = ({
|
|
|
14163
14183
|
});
|
|
14164
14184
|
};
|
|
14165
14185
|
|
|
14166
|
-
const rootClassName$
|
|
14186
|
+
const rootClassName$y = 'dot-radio';
|
|
14167
14187
|
const StyledRadioButton = styled(Radio)`
|
|
14168
14188
|
${({
|
|
14169
14189
|
theme
|
|
14170
14190
|
}) => css`
|
|
14171
|
-
&.${rootClassName$
|
|
14191
|
+
&.${rootClassName$y} {
|
|
14172
14192
|
padding: 8px;
|
|
14173
14193
|
|
|
14174
14194
|
svg {
|
|
@@ -14186,7 +14206,7 @@ function DotRadioButton({
|
|
|
14186
14206
|
ariaLabel,
|
|
14187
14207
|
checked,
|
|
14188
14208
|
className,
|
|
14189
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
14209
|
+
'data-pendoid': dataPendoId = rootClassName$S,
|
|
14190
14210
|
'data-testid': dataTestId,
|
|
14191
14211
|
disabled,
|
|
14192
14212
|
id,
|
|
@@ -14199,7 +14219,7 @@ function DotRadioButton({
|
|
|
14199
14219
|
size = 'medium',
|
|
14200
14220
|
value
|
|
14201
14221
|
}) {
|
|
14202
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14222
|
+
const rootClasses = useStylesWithRootClass(rootClassName$S, className);
|
|
14203
14223
|
const handleChange = event => {
|
|
14204
14224
|
onChange && onChange(event, event.target.value);
|
|
14205
14225
|
};
|
|
@@ -14207,7 +14227,7 @@ function DotRadioButton({
|
|
|
14207
14227
|
const radioControl = jsx(StyledRadioButton, {
|
|
14208
14228
|
checked: checked,
|
|
14209
14229
|
classes: {
|
|
14210
|
-
root: rootClassName$
|
|
14230
|
+
root: rootClassName$y
|
|
14211
14231
|
},
|
|
14212
14232
|
color: "primary",
|
|
14213
14233
|
"data-pendoid": dataPendoId,
|
|
@@ -14253,7 +14273,7 @@ const DotRadioGroup = ({
|
|
|
14253
14273
|
size = 'medium'
|
|
14254
14274
|
}) => {
|
|
14255
14275
|
const placement = `${placementClassName}${labelPlacement}`;
|
|
14256
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14276
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Q, className, placement);
|
|
14257
14277
|
const radioValue = value || defaultValue;
|
|
14258
14278
|
const [selectedValue, setSelectedValue] = useState(radioValue);
|
|
14259
14279
|
/* This will ensure that value can be updated from the outside */
|
|
@@ -14318,7 +14338,7 @@ const DotRadioGroup = ({
|
|
|
14318
14338
|
});
|
|
14319
14339
|
};
|
|
14320
14340
|
|
|
14321
|
-
const rootClassName$
|
|
14341
|
+
const rootClassName$x = 'dot-switch';
|
|
14322
14342
|
const StyledSwitch = styled(Switch)`
|
|
14323
14343
|
${({
|
|
14324
14344
|
theme
|
|
@@ -14347,7 +14367,7 @@ const DotSwitch = ({
|
|
|
14347
14367
|
checked,
|
|
14348
14368
|
className,
|
|
14349
14369
|
color,
|
|
14350
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
14370
|
+
'data-pendoid': dataPendoId = rootClassName$x,
|
|
14351
14371
|
'data-testid': dataTestId,
|
|
14352
14372
|
disabled = false,
|
|
14353
14373
|
id,
|
|
@@ -14357,7 +14377,7 @@ const DotSwitch = ({
|
|
|
14357
14377
|
onChange,
|
|
14358
14378
|
size = 'medium'
|
|
14359
14379
|
}) => {
|
|
14360
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14380
|
+
const rootClasses = useStylesWithRootClass(rootClassName$x, className);
|
|
14361
14381
|
const handleChange = event => {
|
|
14362
14382
|
onChange && onChange(event);
|
|
14363
14383
|
};
|
|
@@ -14387,7 +14407,7 @@ const DotSwitch = ({
|
|
|
14387
14407
|
tabIndex: 0
|
|
14388
14408
|
});
|
|
14389
14409
|
return jsx(StyledFormControlLabel, {
|
|
14390
|
-
className: rootClassName$
|
|
14410
|
+
className: rootClassName$S,
|
|
14391
14411
|
control: switchControl,
|
|
14392
14412
|
label: label,
|
|
14393
14413
|
labelPlacement: labelPlacement
|
|
@@ -14708,7 +14728,7 @@ const DotDynamicForm = ({
|
|
|
14708
14728
|
onChange,
|
|
14709
14729
|
onSubmit
|
|
14710
14730
|
}) => {
|
|
14711
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14731
|
+
const rootClasses = useStylesWithRootClass(rootClassName$A, className);
|
|
14712
14732
|
// Memoize this operation so that is doesn't get executed each time this
|
|
14713
14733
|
// component re-renders
|
|
14714
14734
|
const initialFormState = useMemo(() => getInitialFormState(config, liveValidation), [config, liveValidation, getInitialFormState]);
|
|
@@ -14954,7 +14974,7 @@ const DotDynamicForm = ({
|
|
|
14954
14974
|
});
|
|
14955
14975
|
};
|
|
14956
14976
|
|
|
14957
|
-
const rootClassName$
|
|
14977
|
+
const rootClassName$w = 'dot-inline-edit';
|
|
14958
14978
|
const editModeClassName = 'dot-edit-mode';
|
|
14959
14979
|
const viewModeClassName = 'dot-view-mode';
|
|
14960
14980
|
const placeholderClassName = 'dot-placeholder';
|
|
@@ -14966,7 +14986,7 @@ const StyledInlineEdit = styled.div`
|
|
|
14966
14986
|
theme,
|
|
14967
14987
|
fullWidth
|
|
14968
14988
|
}) => css`
|
|
14969
|
-
&.${rootClassName$
|
|
14989
|
+
&.${rootClassName$w} {
|
|
14970
14990
|
align-items: center;
|
|
14971
14991
|
color: ${theme.palette.figma.typography.black};
|
|
14972
14992
|
display: ${fullWidth ? 'flex' : 'inline-flex'};
|
|
@@ -15180,7 +15200,7 @@ const DotInlineEdit = ({
|
|
|
15180
15200
|
bindings,
|
|
15181
15201
|
charactersLimit,
|
|
15182
15202
|
className,
|
|
15183
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
15203
|
+
'data-pendoid': dataPendoId = rootClassName$w,
|
|
15184
15204
|
'data-testid': dataTestId,
|
|
15185
15205
|
fullWidth = true,
|
|
15186
15206
|
hideActionButtons,
|
|
@@ -15216,7 +15236,7 @@ const DotInlineEdit = ({
|
|
|
15216
15236
|
}
|
|
15217
15237
|
}, [value]);
|
|
15218
15238
|
const isSaveDisabled = checkIfEmptyValue(inputValue);
|
|
15219
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15239
|
+
const rootClasses = useStylesWithRootClass(rootClassName$w, className, editing ? editModeClassName : '');
|
|
15220
15240
|
const handleShowTooltip = visible => {
|
|
15221
15241
|
if (!editing) {
|
|
15222
15242
|
setShowTooltip(visible);
|
|
@@ -15404,13 +15424,13 @@ const DotInlineEdit = ({
|
|
|
15404
15424
|
});
|
|
15405
15425
|
};
|
|
15406
15426
|
|
|
15407
|
-
const rootClassName$
|
|
15427
|
+
const rootClassName$v = 'dot-navigation-rail';
|
|
15408
15428
|
const StyledNavigationRail = styled.div`
|
|
15409
15429
|
${({
|
|
15410
15430
|
theme,
|
|
15411
15431
|
railItemPosition
|
|
15412
15432
|
}) => css`
|
|
15413
|
-
&.${rootClassName$
|
|
15433
|
+
&.${rootClassName$v} {
|
|
15414
15434
|
background: ${theme.palette.figma.neutral.elevated};
|
|
15415
15435
|
border-left: 1px solid ${theme.palette.figma.border.default};
|
|
15416
15436
|
display: flex;
|
|
@@ -15469,7 +15489,7 @@ const DotNavigationRail = ({
|
|
|
15469
15489
|
railItems,
|
|
15470
15490
|
selectedIndex = 0
|
|
15471
15491
|
}) => {
|
|
15472
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15492
|
+
const rootClasses = useStylesWithRootClass(rootClassName$v, className);
|
|
15473
15493
|
const [selectedItemIndex, setSelectedItemIndex] = useState(selectedIndex);
|
|
15474
15494
|
/* Used to change selected index programmatically from the consumer component */
|
|
15475
15495
|
useEffect(() => {
|
|
@@ -15520,12 +15540,12 @@ const DotNavigationRail = ({
|
|
|
15520
15540
|
});
|
|
15521
15541
|
};
|
|
15522
15542
|
|
|
15523
|
-
const rootClassName$
|
|
15543
|
+
const rootClassName$u = 'dot-skeleton';
|
|
15524
15544
|
const StyledSkeleton = styled(Skeleton)`
|
|
15525
15545
|
${({
|
|
15526
15546
|
theme
|
|
15527
15547
|
}) => css`
|
|
15528
|
-
&.${rootClassName$
|
|
15548
|
+
&.${rootClassName$u} {
|
|
15529
15549
|
background-color: ${theme.palette.figma.border.darker};
|
|
15530
15550
|
}
|
|
15531
15551
|
`}
|
|
@@ -15540,7 +15560,7 @@ const DotSkeleton = ({
|
|
|
15540
15560
|
width,
|
|
15541
15561
|
variant
|
|
15542
15562
|
}) => {
|
|
15543
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15563
|
+
const rootClasses = useStylesWithRootClass(rootClassName$u, className);
|
|
15544
15564
|
return jsx(StyledSkeleton, {
|
|
15545
15565
|
animation: "wave",
|
|
15546
15566
|
"aria-label": ariaLabel,
|
|
@@ -15555,12 +15575,12 @@ const DotSkeleton = ({
|
|
|
15555
15575
|
});
|
|
15556
15576
|
};
|
|
15557
15577
|
|
|
15558
|
-
const rootClassName$
|
|
15578
|
+
const rootClassName$t = 'dot-split-button-group';
|
|
15559
15579
|
const StyledSplitButtonGroup = styled(ButtonGroup)`
|
|
15560
15580
|
${({
|
|
15561
15581
|
theme
|
|
15562
15582
|
}) => css`
|
|
15563
|
-
&.${rootClassName$
|
|
15583
|
+
&.${rootClassName$t} {
|
|
15564
15584
|
&.outlined,
|
|
15565
15585
|
&.text {
|
|
15566
15586
|
.expand-button {
|
|
@@ -15626,7 +15646,7 @@ const DotSplitButton = ({
|
|
|
15626
15646
|
autoFocus = false,
|
|
15627
15647
|
ariaLabel,
|
|
15628
15648
|
className,
|
|
15629
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
15649
|
+
'data-pendoid': dataPendoId = rootClassName$t,
|
|
15630
15650
|
'data-testid': dataTestId,
|
|
15631
15651
|
defaultMainOptionKey,
|
|
15632
15652
|
disabled = false,
|
|
@@ -15642,7 +15662,7 @@ const DotSplitButton = ({
|
|
|
15642
15662
|
tooltipPlacement,
|
|
15643
15663
|
type = 'primary'
|
|
15644
15664
|
}) => {
|
|
15645
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15665
|
+
const rootClasses = useStylesWithRootClass(rootClassName$t, className, type, disabled ? 'disabled' : '');
|
|
15646
15666
|
const [open, setOpen] = useState(false);
|
|
15647
15667
|
const anchorRef = useRef(null);
|
|
15648
15668
|
const hasEmptyOptions = options.length === 0;
|
|
@@ -15710,7 +15730,7 @@ const DotSplitButton = ({
|
|
|
15710
15730
|
});
|
|
15711
15731
|
};
|
|
15712
15732
|
|
|
15713
|
-
const rootClassName$
|
|
15733
|
+
const rootClassName$s = 'dot-stepper';
|
|
15714
15734
|
const stepListClassName = 'dot-stepper-list';
|
|
15715
15735
|
const contentClassName = 'dot-stepper-content';
|
|
15716
15736
|
const StyledStepper = styled.div`
|
|
@@ -15718,7 +15738,7 @@ const StyledStepper = styled.div`
|
|
|
15718
15738
|
theme,
|
|
15719
15739
|
offset
|
|
15720
15740
|
}) => css`
|
|
15721
|
-
&.${rootClassName$
|
|
15741
|
+
&.${rootClassName$s} {
|
|
15722
15742
|
display: flex;
|
|
15723
15743
|
align-items: flex-start;
|
|
15724
15744
|
padding: 0;
|
|
@@ -16033,7 +16053,7 @@ const DotStepper = ({
|
|
|
16033
16053
|
return ['left', 'right'].includes(stepsPosition) ? stepsPosition : 'left';
|
|
16034
16054
|
}
|
|
16035
16055
|
};
|
|
16036
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
16056
|
+
const rootClasses = useStylesWithRootClass(rootClassName$s, getStepsPosition(), className);
|
|
16037
16057
|
const stepContentClasses = displayInitialContent || displayFinalContent ? 'center-content' : '';
|
|
16038
16058
|
const stickyBottomClasses = useStylesWithRootClass('actions-container', isStickyBottom ? 'with-top-border' : '');
|
|
16039
16059
|
const actionsClasses = useStylesWithRootClass('actions', displayInitialContent || displayFinalContent ? 'center-actions' : '');
|
|
@@ -16251,12 +16271,12 @@ const DotStepper = ({
|
|
|
16251
16271
|
});
|
|
16252
16272
|
};
|
|
16253
16273
|
|
|
16254
|
-
const rootClassName$
|
|
16274
|
+
const rootClassName$r = 'dot-table-pagination-custom-actions';
|
|
16255
16275
|
const StyledTablePaginationCustomActions = styled.div`
|
|
16256
16276
|
${({
|
|
16257
16277
|
theme
|
|
16258
16278
|
}) => css`
|
|
16259
|
-
&.${rootClassName$
|
|
16279
|
+
&.${rootClassName$r} {
|
|
16260
16280
|
margin-left: ${theme.spacing(2.5)};
|
|
16261
16281
|
display: flex;
|
|
16262
16282
|
align-items: center;
|
|
@@ -16380,7 +16400,7 @@ const DotTablePaginationCustomActions = props => {
|
|
|
16380
16400
|
});
|
|
16381
16401
|
};
|
|
16382
16402
|
return jsxs(StyledTablePaginationCustomActions, {
|
|
16383
|
-
className: rootClassName$
|
|
16403
|
+
className: rootClassName$r,
|
|
16384
16404
|
children: [jsx(DotIconButton, {
|
|
16385
16405
|
ariaLabel: "previous page",
|
|
16386
16406
|
className: "page-control-button",
|
|
@@ -16427,7 +16447,7 @@ const DotTablePaginationCustomActions = props => {
|
|
|
16427
16447
|
});
|
|
16428
16448
|
};
|
|
16429
16449
|
|
|
16430
|
-
const rootClassName$
|
|
16450
|
+
const rootClassName$q = 'dot-table-pagination';
|
|
16431
16451
|
// TO-DO: Determine how to apply styles to standard popper element
|
|
16432
16452
|
const paginationItemClassName = 'dot-pagination-menu-item';
|
|
16433
16453
|
const StyledTablePagination = styled.div`
|
|
@@ -16435,7 +16455,7 @@ const StyledTablePagination = styled.div`
|
|
|
16435
16455
|
theme,
|
|
16436
16456
|
typography
|
|
16437
16457
|
}) => css`
|
|
16438
|
-
.${rootClassName$
|
|
16458
|
+
.${rootClassName$q} {
|
|
16439
16459
|
border-top: 1px solid ${theme.palette.figma.border.default};
|
|
16440
16460
|
|
|
16441
16461
|
.dot-caption,
|
|
@@ -16478,7 +16498,7 @@ const DotTablePagination = ({
|
|
|
16478
16498
|
showJumpToPageActionButton = false,
|
|
16479
16499
|
typography = 'subtitle2'
|
|
16480
16500
|
}) => {
|
|
16481
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
16501
|
+
const rootClasses = useStylesWithRootClass(rootClassName$q, className, showJumpToPageActionButton ? 'with-custom-actions' : '');
|
|
16482
16502
|
const handlePageChange = (event, newPage) => {
|
|
16483
16503
|
onPageChange && onPageChange(newPage);
|
|
16484
16504
|
};
|
|
@@ -16487,7 +16507,7 @@ const DotTablePagination = ({
|
|
|
16487
16507
|
};
|
|
16488
16508
|
return (/* Container is used to pass 'typography' prop to a styled component */
|
|
16489
16509
|
jsx(StyledTablePagination, {
|
|
16490
|
-
className: rootClassName$
|
|
16510
|
+
className: rootClassName$q,
|
|
16491
16511
|
typography: typography,
|
|
16492
16512
|
children: jsx(TablePagination, {
|
|
16493
16513
|
ActionsComponent: showJumpToPageActionButton ? DotTablePaginationCustomActions : undefined,
|
|
@@ -16514,14 +16534,14 @@ const DotTablePagination = ({
|
|
|
16514
16534
|
);
|
|
16515
16535
|
};
|
|
16516
16536
|
|
|
16517
|
-
const rootClassName$
|
|
16537
|
+
const rootClassName$p = 'dot-table';
|
|
16518
16538
|
const MULTISELECT_COLUMN_WIDTH = 52;
|
|
16519
16539
|
const COLLAPSIBLE_COLUMN_WIDTH = 42;
|
|
16520
16540
|
const StyledPaper$1 = styled(Paper)`
|
|
16521
16541
|
${({
|
|
16522
16542
|
theme
|
|
16523
16543
|
}) => css`
|
|
16524
|
-
&.${rootClassName$
|
|
16544
|
+
&.${rootClassName$p} {
|
|
16525
16545
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
16526
16546
|
border: 1px solid ${theme.palette.figma.border.default};
|
|
16527
16547
|
overflow: hidden;
|
|
@@ -16664,10 +16684,10 @@ const StyledMenu$1 = styled(DotMenu)`
|
|
|
16664
16684
|
}
|
|
16665
16685
|
`;
|
|
16666
16686
|
|
|
16667
|
-
const rootClassName$
|
|
16687
|
+
const rootClassName$o = 'dot-tbody';
|
|
16668
16688
|
const StyledTableBody = styled(TableBody)`
|
|
16669
16689
|
${() => css`
|
|
16670
|
-
&.${rootClassName$
|
|
16690
|
+
&.${rootClassName$o} {
|
|
16671
16691
|
tr:last-child td {
|
|
16672
16692
|
border-bottom: none;
|
|
16673
16693
|
}
|
|
@@ -16862,12 +16882,12 @@ function stableSort(array, comparator) {
|
|
|
16862
16882
|
return stabilizedThis.map(el => el[0]);
|
|
16863
16883
|
}
|
|
16864
16884
|
|
|
16865
|
-
const rootClassName$
|
|
16885
|
+
const rootClassName$n = 'dot-td';
|
|
16866
16886
|
const StyledTableCell = styled(TableCell)`
|
|
16867
16887
|
${({
|
|
16868
16888
|
theme
|
|
16869
16889
|
}) => css`
|
|
16870
|
-
&.${rootClassName$
|
|
16890
|
+
&.${rootClassName$n} {
|
|
16871
16891
|
padding-top: 0;
|
|
16872
16892
|
padding-bottom: 0;
|
|
16873
16893
|
|
|
@@ -16962,7 +16982,7 @@ const DotBodyCell = ({
|
|
|
16962
16982
|
const isOverflowing = actionTableCellWidth > (wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current.clientWidth);
|
|
16963
16983
|
setShowMenu(isOverflowing);
|
|
16964
16984
|
};
|
|
16965
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
16985
|
+
const rootClasses = useStylesWithRootClass(rootClassName$n, className, noWrap && 'noWrap', Array.isArray(value) && 'actionItems');
|
|
16966
16986
|
const getTableCellValue = () => {
|
|
16967
16987
|
if (Array.isArray(value)) {
|
|
16968
16988
|
return jsx("div", {
|
|
@@ -17030,13 +17050,13 @@ const EmptyDotRow = ({
|
|
|
17030
17050
|
const TABLE_TYPOGRAPHY_VARIANT = 'body1';
|
|
17031
17051
|
const TABLE_DEFAULT_SKELETON_ROWS = 4;
|
|
17032
17052
|
|
|
17033
|
-
const rootClassName$
|
|
17053
|
+
const rootClassName$m = 'dot-th-checkbox';
|
|
17034
17054
|
const styledTableHeaderCheckboxElement = (isCell = true) => {
|
|
17035
17055
|
return styled(isCell ? TableCell : 'div')`
|
|
17036
17056
|
${({
|
|
17037
17057
|
theme
|
|
17038
17058
|
}) => css`
|
|
17039
|
-
&.${rootClassName$
|
|
17059
|
+
&.${rootClassName$m} {
|
|
17040
17060
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
17041
17061
|
padding: ${theme.spacing(0, 1)};
|
|
17042
17062
|
width: ${theme.spacing(5)};
|
|
@@ -17064,7 +17084,7 @@ const DotHeaderCheckboxCell = ({
|
|
|
17064
17084
|
isFromTableSelectionToolbar,
|
|
17065
17085
|
multiSelectHeader
|
|
17066
17086
|
}) => {
|
|
17067
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17087
|
+
const rootClasses = useStylesWithRootClass(rootClassName$m, className, isFromTableSelectionToolbar ? 'table-selection-toolbar-checkbox' : '');
|
|
17068
17088
|
const [multiSelectState, setMultiSelectState] = useState('unchecked');
|
|
17069
17089
|
const {
|
|
17070
17090
|
onCheckAllChange,
|
|
@@ -17114,12 +17134,12 @@ const DotHeaderCheckboxCell = ({
|
|
|
17114
17134
|
});
|
|
17115
17135
|
};
|
|
17116
17136
|
|
|
17117
|
-
const rootClassName$
|
|
17137
|
+
const rootClassName$l = 'dot-th';
|
|
17118
17138
|
const StyledTableHeaderCell = styled(TableCell)`
|
|
17119
17139
|
${({
|
|
17120
17140
|
theme
|
|
17121
17141
|
}) => css`
|
|
17122
|
-
&.${rootClassName$
|
|
17142
|
+
&.${rootClassName$l} {
|
|
17123
17143
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
17124
17144
|
|
|
17125
17145
|
&.MuiTableCell-alignCenter > span.MuiTableSortLabel-root {
|
|
@@ -17159,7 +17179,7 @@ const DotHeaderCell = ({
|
|
|
17159
17179
|
value,
|
|
17160
17180
|
width
|
|
17161
17181
|
}) => {
|
|
17162
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17182
|
+
const rootClasses = useStylesWithRootClass(rootClassName$l, pinned ? 'dot-pinned-cell' : '', className);
|
|
17163
17183
|
const headerTitle = isString$2(value) ? value : null;
|
|
17164
17184
|
const formattedValue = getFormattedTableCellValue(value, typography);
|
|
17165
17185
|
const getCellValue = () => {
|
|
@@ -17250,12 +17270,12 @@ const DotHeaderRow = ({
|
|
|
17250
17270
|
});
|
|
17251
17271
|
};
|
|
17252
17272
|
|
|
17253
|
-
const rootClassName$
|
|
17273
|
+
const rootClassName$k = 'dot-tr';
|
|
17254
17274
|
const StyledTableRowStyles = styled(TableRow)`
|
|
17255
17275
|
${({
|
|
17256
17276
|
theme
|
|
17257
17277
|
}) => css`
|
|
17258
|
-
&.${rootClassName$
|
|
17278
|
+
&.${rootClassName$k} {
|
|
17259
17279
|
&.selected {
|
|
17260
17280
|
&,
|
|
17261
17281
|
.dot-td.dot-pinned-cell,
|
|
@@ -17481,12 +17501,12 @@ const ExpandCollapseCell = ({
|
|
|
17481
17501
|
});
|
|
17482
17502
|
};
|
|
17483
17503
|
|
|
17484
|
-
const rootClassName$
|
|
17504
|
+
const rootClassName$j = 'dot-td-checkbox';
|
|
17485
17505
|
const StyledTableBodyCheckboxCell = styled(TableCell)`
|
|
17486
17506
|
${({
|
|
17487
17507
|
theme
|
|
17488
17508
|
}) => css`
|
|
17489
|
-
&.${rootClassName$
|
|
17509
|
+
&.${rootClassName$j} {
|
|
17490
17510
|
padding: ${theme.spacing(0, 1)};
|
|
17491
17511
|
width: ${theme.spacing(5)};
|
|
17492
17512
|
|
|
@@ -17505,7 +17525,7 @@ const DotBodyCheckboxCell = ({
|
|
|
17505
17525
|
onChange,
|
|
17506
17526
|
rowId
|
|
17507
17527
|
}) => {
|
|
17508
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17528
|
+
const rootClasses = useStylesWithRootClass(rootClassName$j, className);
|
|
17509
17529
|
const [isCheckboxChecked, setIsCheckboxChecked] = useState(isChecked);
|
|
17510
17530
|
/** This effect is used when 'checked' status is changed from the outside */
|
|
17511
17531
|
useEffect(() => {
|
|
@@ -17558,7 +17578,7 @@ const DotTableRow = ({
|
|
|
17558
17578
|
selectedTableRowIds
|
|
17559
17579
|
} = multiSelectBody || {};
|
|
17560
17580
|
const isCheckboxChecked = selectedTableRowIds && selectedTableRowIds.includes(id) || false;
|
|
17561
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17581
|
+
const rootClasses = useStylesWithRootClass(rootClassName$k, isCheckboxChecked ? 'selected' : undefined, className);
|
|
17562
17582
|
const renderCheckboxCell = () => {
|
|
17563
17583
|
return jsx(DotBodyCheckboxCell, {
|
|
17564
17584
|
ariaLabel: "Click to select this row",
|
|
@@ -17679,7 +17699,7 @@ const DotTableBody = ({
|
|
|
17679
17699
|
return jsxs(Fragment, {
|
|
17680
17700
|
children: [jsx(StyledTableBody, {
|
|
17681
17701
|
classes: {
|
|
17682
|
-
root: rootClassName$
|
|
17702
|
+
root: rootClassName$o
|
|
17683
17703
|
},
|
|
17684
17704
|
children: getTableBodyRows()
|
|
17685
17705
|
}), jsx(StyledMenu$1, {
|
|
@@ -17694,12 +17714,12 @@ const DotTableBody = ({
|
|
|
17694
17714
|
});
|
|
17695
17715
|
};
|
|
17696
17716
|
|
|
17697
|
-
const rootClassName$
|
|
17717
|
+
const rootClassName$i = 'dot-table-selection-toolbar';
|
|
17698
17718
|
const StyledTableSelectionToolbar = styled(DotActionToolbar)`
|
|
17699
17719
|
${({
|
|
17700
17720
|
theme
|
|
17701
17721
|
}) => css`
|
|
17702
|
-
&.${rootClassName$
|
|
17722
|
+
&.${rootClassName$i} {
|
|
17703
17723
|
display: flex;
|
|
17704
17724
|
align-items: center;
|
|
17705
17725
|
justify-content: space-between;
|
|
@@ -17754,7 +17774,7 @@ const DotTableSelectionToolbar = ({
|
|
|
17754
17774
|
multiSelectHeader,
|
|
17755
17775
|
selectedRowsNumber
|
|
17756
17776
|
}) => {
|
|
17757
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17777
|
+
const rootClasses = useStylesWithRootClass(rootClassName$i, className);
|
|
17758
17778
|
return jsxs(StyledTableSelectionToolbar, {
|
|
17759
17779
|
ariaLabel: ariaLabel,
|
|
17760
17780
|
className: rootClasses,
|
|
@@ -17833,7 +17853,14 @@ const DotTable = ({
|
|
|
17833
17853
|
order,
|
|
17834
17854
|
rowsPerPage
|
|
17835
17855
|
}));
|
|
17836
|
-
|
|
17856
|
+
// If the 'page' prop provided has changed since initial render, we need to update
|
|
17857
|
+
// the `tablePage` state so that it's passed to the TablePagination component.
|
|
17858
|
+
useEffect(() => {
|
|
17859
|
+
if (page !== tablePage) {
|
|
17860
|
+
setPage(page);
|
|
17861
|
+
}
|
|
17862
|
+
}, [page]);
|
|
17863
|
+
const rootClasses = useStylesWithRootClass(rootClassName$p, className, loading ? 'loading' : '', showMultiselectOverTableHeaderRow ? 'with-multiselect-over-table-header' : '', showMultiselectOverTableHeaderRow && !selectedRowsNumber ? 'hidden-multiselect' : '');
|
|
17837
17864
|
const updateData = (newOrder, newOrderBy, newPage, newRowsPerPage) => {
|
|
17838
17865
|
const newData = stableSort(data, getComparator(newOrder, newOrderBy));
|
|
17839
17866
|
setPageData(newRowsPerPage ? newData.slice(newPage * newRowsPerPage, newPage * newRowsPerPage + newRowsPerPage) : newData);
|
|
@@ -18036,7 +18063,7 @@ const DotTableAction = ({
|
|
|
18036
18063
|
});
|
|
18037
18064
|
};
|
|
18038
18065
|
|
|
18039
|
-
const rootClassName$
|
|
18066
|
+
const rootClassName$h = 'dot-table-actions';
|
|
18040
18067
|
const TableActionsContainer = styled.div`
|
|
18041
18068
|
overflow: hidden;
|
|
18042
18069
|
text-overflow: clip;
|
|
@@ -18126,7 +18153,7 @@ const DotTableActions = ({
|
|
|
18126
18153
|
};
|
|
18127
18154
|
return jsxs(Fragment, {
|
|
18128
18155
|
children: [jsxs(TableActionsContainer, {
|
|
18129
|
-
className: rootClassName$
|
|
18156
|
+
className: rootClassName$h,
|
|
18130
18157
|
ref: wrapperRef,
|
|
18131
18158
|
children: [!showMenu && renderTableActions(), (showMenu || actions.length > 2) && jsx(DotIconButton, {
|
|
18132
18159
|
ariaLabel: "more options",
|
|
@@ -18150,12 +18177,12 @@ const DotTableActions = ({
|
|
|
18150
18177
|
});
|
|
18151
18178
|
};
|
|
18152
18179
|
|
|
18153
|
-
const rootClassName$
|
|
18180
|
+
const rootClassName$g = 'dot-tabs';
|
|
18154
18181
|
const StyledTabs = styled(Tabs)`
|
|
18155
18182
|
${({
|
|
18156
18183
|
theme
|
|
18157
18184
|
}) => css`
|
|
18158
|
-
&.${rootClassName$
|
|
18185
|
+
&.${rootClassName$g} {
|
|
18159
18186
|
&.MuiTabs-root {
|
|
18160
18187
|
width: 100%;
|
|
18161
18188
|
}
|
|
@@ -18208,7 +18235,7 @@ const DotTabs = ({
|
|
|
18208
18235
|
centered = false,
|
|
18209
18236
|
className,
|
|
18210
18237
|
color,
|
|
18211
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
18238
|
+
'data-pendoid': dataPendoId = rootClassName$g,
|
|
18212
18239
|
'data-testid': dataTestId,
|
|
18213
18240
|
initialValue = 0,
|
|
18214
18241
|
onChange,
|
|
@@ -18217,7 +18244,7 @@ const DotTabs = ({
|
|
|
18217
18244
|
variant = 'standard'
|
|
18218
18245
|
}) => {
|
|
18219
18246
|
const [value, setValue] = useState(initialValue);
|
|
18220
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18247
|
+
const rootClasses = useStylesWithRootClass(rootClassName$g, className);
|
|
18221
18248
|
useEffect(() => {
|
|
18222
18249
|
if (color) {
|
|
18223
18250
|
console.warn('DEPRECATED: `color` prop is deprecated in `<DotTabs>`, please remove any usage of it in your application.');
|
|
@@ -18271,9 +18298,9 @@ const DotTabs = ({
|
|
|
18271
18298
|
});
|
|
18272
18299
|
};
|
|
18273
18300
|
|
|
18274
|
-
const rootClassName$
|
|
18275
|
-
const containerClassName = `${rootClassName$
|
|
18276
|
-
const dropZoneClassName = `${rootClassName$
|
|
18301
|
+
const rootClassName$f = 'dot-file-upload';
|
|
18302
|
+
const containerClassName = `${rootClassName$f}-container`;
|
|
18303
|
+
const dropZoneClassName = `${rootClassName$f}-drop-zone`;
|
|
18277
18304
|
const StyledFileUploadContainer = styled.div`
|
|
18278
18305
|
${({
|
|
18279
18306
|
theme
|
|
@@ -18293,7 +18320,7 @@ const StyledFileUpload = styled.div`
|
|
|
18293
18320
|
${({
|
|
18294
18321
|
theme
|
|
18295
18322
|
}) => css`
|
|
18296
|
-
&.${rootClassName$
|
|
18323
|
+
&.${rootClassName$f}.${dropZoneClassName} {
|
|
18297
18324
|
align-items: center;
|
|
18298
18325
|
background: ${theme.palette.figma.background.level0.bckgGray};
|
|
18299
18326
|
border: 2px dashed ${theme.palette.figma.border.defaultButton};
|
|
@@ -18318,18 +18345,19 @@ const StyledFileUpload = styled.div`
|
|
|
18318
18345
|
|
|
18319
18346
|
i.dot-i {
|
|
18320
18347
|
height: 100px;
|
|
18348
|
+
width: 100px;
|
|
18321
18349
|
}
|
|
18322
18350
|
}
|
|
18323
18351
|
}
|
|
18324
18352
|
`}
|
|
18325
18353
|
`;
|
|
18326
18354
|
|
|
18327
|
-
const rootClassName$
|
|
18355
|
+
const rootClassName$e = 'dot-file-list-item';
|
|
18328
18356
|
const StyledFileListItem = styled(StyledListItem)`
|
|
18329
18357
|
${({
|
|
18330
18358
|
theme
|
|
18331
18359
|
}) => css`
|
|
18332
|
-
&.${rootClassName$
|
|
18360
|
+
&.${rootClassName$e} {
|
|
18333
18361
|
border-bottom: 1px solid ${theme.palette.figma.border.default};
|
|
18334
18362
|
&:hover {
|
|
18335
18363
|
cursor: pointer;
|
|
@@ -18341,7 +18369,7 @@ const StyledFileListItem = styled(StyledListItem)`
|
|
|
18341
18369
|
outline: none;
|
|
18342
18370
|
}
|
|
18343
18371
|
|
|
18344
|
-
&.file-success:not(:hover, :focus-visible) .${rootClassName$
|
|
18372
|
+
&.file-success:not(:hover, :focus-visible) .${rootClassName$e}-end-icon {
|
|
18345
18373
|
i:before {
|
|
18346
18374
|
color: ${theme.palette.figma.success.normal};
|
|
18347
18375
|
}
|
|
@@ -18351,7 +18379,7 @@ const StyledFileListItem = styled(StyledListItem)`
|
|
|
18351
18379
|
}
|
|
18352
18380
|
}
|
|
18353
18381
|
|
|
18354
|
-
&.file-error:not(:hover, :focus-visible) .${rootClassName$
|
|
18382
|
+
&.file-error:not(:hover, :focus-visible) .${rootClassName$e}-end-icon {
|
|
18355
18383
|
i:before,
|
|
18356
18384
|
.MuiListItemText-secondary {
|
|
18357
18385
|
color: ${theme.palette.figma.destructive.normal};
|
|
@@ -18393,7 +18421,7 @@ const DotFileListItem = ({
|
|
|
18393
18421
|
onKeyPress,
|
|
18394
18422
|
tabIndex = 0
|
|
18395
18423
|
}) => {
|
|
18396
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18424
|
+
const rootClasses = useStylesWithRootClass(rootClassName$e, className, error ? 'file-error' : 'file-success');
|
|
18397
18425
|
const defaultIcon = error ? 'error-solid' : 'check-solid';
|
|
18398
18426
|
const [endIcon, setEndIcon] = useState(defaultIcon);
|
|
18399
18427
|
const handleItemClick = clickedFile => _event => onClick === null || onClick === void 0 ? void 0 : onClick(clickedFile);
|
|
@@ -18426,7 +18454,7 @@ const DotFileListItem = ({
|
|
|
18426
18454
|
})]
|
|
18427
18455
|
}), jsx(DotIconButton, {
|
|
18428
18456
|
ariaLabel: "delete file",
|
|
18429
|
-
className: `${rootClassName$
|
|
18457
|
+
className: `${rootClassName$e}-end-icon`,
|
|
18430
18458
|
"data-testid": dataTestId && `${dataTestId}-end-icon`,
|
|
18431
18459
|
disabled: disableDelete,
|
|
18432
18460
|
iconId: endIcon,
|
|
@@ -18550,7 +18578,7 @@ const DotFileUpload = ({
|
|
|
18550
18578
|
buttonOnly = false,
|
|
18551
18579
|
className,
|
|
18552
18580
|
contentErrors,
|
|
18553
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
18581
|
+
'data-pendoid': dataPendoId = rootClassName$f,
|
|
18554
18582
|
'data-testid': dataTestId,
|
|
18555
18583
|
disabled,
|
|
18556
18584
|
hideFilesList,
|
|
@@ -18563,7 +18591,7 @@ const DotFileUpload = ({
|
|
|
18563
18591
|
const [uploadedFiles, setUploadedFiles] = useState([]);
|
|
18564
18592
|
const [hasMaxFilesError, setHasMaxFilesError] = useState(false);
|
|
18565
18593
|
const isUploadDisabled = disabled || maxFiles && uploadedFiles.length >= maxFiles;
|
|
18566
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18594
|
+
const rootClasses = useStylesWithRootClass(rootClassName$f, className, !buttonOnly ? dropZoneClassName : '', isUploadDisabled ? 'disabled' : '');
|
|
18567
18595
|
const maxFilesClasses = useStylesWithRootClass('dot-max-files-message', hasMaxFilesError ? 'dot-max-files-reached' : '');
|
|
18568
18596
|
const allowMultiple = maxFiles === undefined || maxFiles > 1;
|
|
18569
18597
|
const setNewlyUploadedFiles = (acceptedFiles, fileRejections) => {
|
|
@@ -18635,12 +18663,12 @@ const DotFileUpload = ({
|
|
|
18635
18663
|
});
|
|
18636
18664
|
};
|
|
18637
18665
|
|
|
18638
|
-
const rootClassName$
|
|
18666
|
+
const rootClassName$d = 'dot-divider';
|
|
18639
18667
|
const StyledDivider = styled(Divider)`
|
|
18640
18668
|
${({
|
|
18641
18669
|
theme
|
|
18642
18670
|
}) => css`
|
|
18643
|
-
&.${rootClassName$
|
|
18671
|
+
&.${rootClassName$d} {
|
|
18644
18672
|
color: ${theme.palette.figma.border.darker};
|
|
18645
18673
|
|
|
18646
18674
|
.MuiDivider-light {
|
|
@@ -18660,7 +18688,7 @@ const DotDivider = ({
|
|
|
18660
18688
|
orientation,
|
|
18661
18689
|
variant
|
|
18662
18690
|
}) => {
|
|
18663
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18691
|
+
const rootClasses = useStylesWithRootClass(rootClassName$d, className);
|
|
18664
18692
|
return jsx(StyledDivider, {
|
|
18665
18693
|
absolute: absolute,
|
|
18666
18694
|
"aria-label": ariaLabel,
|
|
@@ -18689,7 +18717,7 @@ const DotPopper = ({
|
|
|
18689
18717
|
placement
|
|
18690
18718
|
}) => {
|
|
18691
18719
|
const [arrowRef, setArrowRef] = useState(null);
|
|
18692
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18720
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1e, className);
|
|
18693
18721
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18694
18722
|
const handleClickAway = event => {
|
|
18695
18723
|
if (onClickAway && (!anchorEl || !anchorEl.contains(event.currentTarget))) {
|
|
@@ -18754,14 +18782,14 @@ const getListItemLayout = listItems => {
|
|
|
18754
18782
|
}));
|
|
18755
18783
|
};
|
|
18756
18784
|
|
|
18757
|
-
const rootClassName$
|
|
18785
|
+
const rootClassName$c = 'dot-draggable-list';
|
|
18758
18786
|
const listItemClassName = 'dot-draggable-list-item';
|
|
18759
18787
|
const StyledDraggableList = styled.div`
|
|
18760
18788
|
${({
|
|
18761
18789
|
theme,
|
|
18762
18790
|
draggableHandle
|
|
18763
18791
|
}) => css`
|
|
18764
|
-
&.${rootClassName$
|
|
18792
|
+
&.${rootClassName$c} {
|
|
18765
18793
|
padding: ${theme.spacing(1, 0)};
|
|
18766
18794
|
position: relative;
|
|
18767
18795
|
|
|
@@ -18796,7 +18824,7 @@ const ListGridLayout = WidthProvider(GridLayout);
|
|
|
18796
18824
|
const DotDraggableList = ({
|
|
18797
18825
|
ariaLabel,
|
|
18798
18826
|
className,
|
|
18799
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
18827
|
+
'data-pendoid': dataPendoId = rootClassName$c,
|
|
18800
18828
|
'data-testid': dataTestId,
|
|
18801
18829
|
disableDrag,
|
|
18802
18830
|
draggableHandle,
|
|
@@ -18805,7 +18833,7 @@ const DotDraggableList = ({
|
|
|
18805
18833
|
rowHeight = DEFAULT_LIST_ITEM_HEIGHT,
|
|
18806
18834
|
width = DEFAULT_LIST_WIDTH
|
|
18807
18835
|
}) => {
|
|
18808
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18836
|
+
const rootClasses = useStylesWithRootClass(rootClassName$c, className, draggableHandle ? 'with-draggable-handle' : '');
|
|
18809
18837
|
const listItemClasses = useStylesWithRootClass(listItemClassName, draggableHandle && !disableDrag ? 'with-handle-grab-cursor' : '', draggableHandle || disableDrag ? 'with-default-cursor' : '');
|
|
18810
18838
|
const listWidth = isNumber(width) ? `${width}px` : width;
|
|
18811
18839
|
const [orderedItems, setOrderedItems] = useState([]);
|
|
@@ -52155,7 +52183,7 @@ cjs.exports.DraggableCore = DraggableCore;
|
|
|
52155
52183
|
|
|
52156
52184
|
var Draggable$1 = cjs.exports;
|
|
52157
52185
|
|
|
52158
|
-
const rootClassName$
|
|
52186
|
+
const rootClassName$b = 'dot-draggable-window';
|
|
52159
52187
|
const defaultWidth = '600px';
|
|
52160
52188
|
const defaultHeight = '324px';
|
|
52161
52189
|
const StyledPaper = styled(Paper)`
|
|
@@ -52164,7 +52192,7 @@ const StyledPaper = styled(Paper)`
|
|
|
52164
52192
|
$maxHeight,
|
|
52165
52193
|
$maxWidth
|
|
52166
52194
|
}) => css`
|
|
52167
|
-
&.${rootClassName$
|
|
52195
|
+
&.${rootClassName$b} {
|
|
52168
52196
|
max-width: ${$maxWidth !== null && $maxWidth !== void 0 ? $maxWidth : defaultWidth};
|
|
52169
52197
|
max-height: ${$maxHeight !== null && $maxHeight !== void 0 ? $maxHeight : defaultHeight};
|
|
52170
52198
|
${$maxWidth ? '' : `width: ${defaultWidth};`}
|
|
@@ -52202,7 +52230,7 @@ const StyledPaper = styled(Paper)`
|
|
|
52202
52230
|
const DotDraggableWindow = ({
|
|
52203
52231
|
ariaLabel,
|
|
52204
52232
|
anchorEl,
|
|
52205
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
52233
|
+
'data-pendoid': dataPendoId = rootClassName$b,
|
|
52206
52234
|
'data-testid': dataTestId,
|
|
52207
52235
|
className,
|
|
52208
52236
|
children,
|
|
@@ -52211,7 +52239,7 @@ const DotDraggableWindow = ({
|
|
|
52211
52239
|
onClose,
|
|
52212
52240
|
title
|
|
52213
52241
|
}) => {
|
|
52214
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
52242
|
+
const rootClasses = useStylesWithRootClass(rootClassName$b, className);
|
|
52215
52243
|
const nodeRef = useRef(null);
|
|
52216
52244
|
return jsx(Draggable$1, {
|
|
52217
52245
|
bounds: "body",
|
|
@@ -52253,12 +52281,12 @@ const DotDraggableWindow = ({
|
|
|
52253
52281
|
});
|
|
52254
52282
|
};
|
|
52255
52283
|
|
|
52256
|
-
const rootClassName$
|
|
52284
|
+
const rootClassName$a = 'dot-linear-progress';
|
|
52257
52285
|
const StyledLinearProgress = styled(LinearProgress)`
|
|
52258
52286
|
${({
|
|
52259
52287
|
theme
|
|
52260
52288
|
}) => css`
|
|
52261
|
-
&.${rootClassName$
|
|
52289
|
+
&.${rootClassName$a} {
|
|
52262
52290
|
&.MuiLinearProgress-colorError {
|
|
52263
52291
|
color: ${theme.palette.figma.inProgress.error};
|
|
52264
52292
|
}
|
|
@@ -52290,7 +52318,7 @@ const DotLinearProgress = ({
|
|
|
52290
52318
|
valueBuffer,
|
|
52291
52319
|
variant = 'indeterminate'
|
|
52292
52320
|
}) => {
|
|
52293
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
52321
|
+
const rootClasses = useStylesWithRootClass(rootClassName$a, className);
|
|
52294
52322
|
useEffect(() => {
|
|
52295
52323
|
if (!ariaLabel) {
|
|
52296
52324
|
console.warn('a11y: DotLinearProgress must have an ariaLabel to describe the progress bar');
|
|
@@ -52341,7 +52369,7 @@ const DotDatePicker = ({
|
|
|
52341
52369
|
autoFocus = false,
|
|
52342
52370
|
className,
|
|
52343
52371
|
closeOnSelect = true,
|
|
52344
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
52372
|
+
'data-pendoid': dataPendoId = rootClassName$D,
|
|
52345
52373
|
'data-testid': dataTestId,
|
|
52346
52374
|
defaultValue,
|
|
52347
52375
|
disableOpenPicker,
|
|
@@ -52382,7 +52410,7 @@ const DotDatePicker = ({
|
|
|
52382
52410
|
const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
|
|
52383
52411
|
const isInputReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
|
|
52384
52412
|
const inputRef = useRef(null);
|
|
52385
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
52413
|
+
const rootClasses = useStylesWithRootClass(rootClassName$D, className, isInputReadOnly ? 'read-only' : '');
|
|
52386
52414
|
const containerClasses = useStylesWithRootClass(containerClassName$2, fullWidth ? 'full-width' : '', className);
|
|
52387
52415
|
const focusInput = ref => {
|
|
52388
52416
|
setTimeout(() => {
|
|
@@ -52602,7 +52630,7 @@ const DotTimePicker = ({
|
|
|
52602
52630
|
ariaLabel,
|
|
52603
52631
|
autoFocus = false,
|
|
52604
52632
|
className,
|
|
52605
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
52633
|
+
'data-pendoid': dataPendoId = rootClassName$C,
|
|
52606
52634
|
'data-testid': dataTestId,
|
|
52607
52635
|
defaultValue,
|
|
52608
52636
|
disableOpenPicker = false,
|
|
@@ -52634,7 +52662,7 @@ const DotTimePicker = ({
|
|
|
52634
52662
|
const hasValueWithoutChangeHandler = value !== undefined && onChange === undefined;
|
|
52635
52663
|
const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
|
|
52636
52664
|
const isComponentReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
|
|
52637
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
52665
|
+
const rootClasses = useStylesWithRootClass(rootClassName$C, className, isComponentReadOnly ? 'read-only' : '');
|
|
52638
52666
|
const containerClasses = useStylesWithRootClass(containerClassName$1, fullWidth ? 'full-width' : '', className);
|
|
52639
52667
|
const inputRef = useRef(null);
|
|
52640
52668
|
const [isPickerOpened, setIsPickerOpened] = useState(false);
|
|
@@ -52926,13 +52954,13 @@ const DotTimePicker = ({
|
|
|
52926
52954
|
});
|
|
52927
52955
|
};
|
|
52928
52956
|
|
|
52929
|
-
const rootClassName$
|
|
52957
|
+
const rootClassName$9 = 'dot-carousel';
|
|
52930
52958
|
const StyledCarousel = styled.div`
|
|
52931
52959
|
${({
|
|
52932
52960
|
backgroundColor,
|
|
52933
52961
|
theme
|
|
52934
52962
|
}) => css`
|
|
52935
|
-
&.${rootClassName$
|
|
52963
|
+
&.${rootClassName$9} {
|
|
52936
52964
|
display: flex;
|
|
52937
52965
|
flex-direction: column;
|
|
52938
52966
|
justify-content: space-between;
|
|
@@ -53032,7 +53060,7 @@ const DotCarousel = ({
|
|
|
53032
53060
|
progressIndicator,
|
|
53033
53061
|
showPagesButtons = true
|
|
53034
53062
|
}) => {
|
|
53035
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
53063
|
+
const rootClasses = useStylesWithRootClass(rootClassName$9, className, backgroundColor ? 'with-background-color' : '');
|
|
53036
53064
|
const rightNavigationButtonClasses = useStylesWithRootClass('carousel-right-arrow', displayNavigationButtons);
|
|
53037
53065
|
const leftNavigationButtonClasses = useStylesWithRootClass('carousel-left-arrow', displayNavigationButtons);
|
|
53038
53066
|
const createUuids = () => {
|
|
@@ -53183,13 +53211,13 @@ const DotCarousel = ({
|
|
|
53183
53211
|
});
|
|
53184
53212
|
};
|
|
53185
53213
|
|
|
53186
|
-
const rootClassName$
|
|
53214
|
+
const rootClassName$8 = 'dot-sticky-with-border';
|
|
53187
53215
|
const StyledStickyWithBorder = styled.div`
|
|
53188
53216
|
${({
|
|
53189
53217
|
pinnedStickyBorder,
|
|
53190
53218
|
unpinnedStickyBorder
|
|
53191
53219
|
}) => css`
|
|
53192
|
-
&.${rootClassName$
|
|
53220
|
+
&.${rootClassName$8} {
|
|
53193
53221
|
position: sticky;
|
|
53194
53222
|
top: -1px;
|
|
53195
53223
|
|
|
@@ -53217,7 +53245,7 @@ const DotStickyWithBorder = ({
|
|
|
53217
53245
|
}) => {
|
|
53218
53246
|
const [isPinned, setIsPinned] = useState(false);
|
|
53219
53247
|
const ref = useRef();
|
|
53220
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
53248
|
+
const rootClasses = useStylesWithRootClass(rootClassName$8, className, isPinned ? 'pinned' : 'unpinned');
|
|
53221
53249
|
useEffect(() => {
|
|
53222
53250
|
const element = ref.current;
|
|
53223
53251
|
const observer = new IntersectionObserver(([e]) => setIsPinned(e.intersectionRatio < 1), {
|
|
@@ -53239,18 +53267,18 @@ const DotStickyWithBorder = ({
|
|
|
53239
53267
|
});
|
|
53240
53268
|
};
|
|
53241
53269
|
|
|
53242
|
-
const rootClassName$
|
|
53270
|
+
const rootClassName$7 = 'dot--board';
|
|
53243
53271
|
const classNames$5 = {
|
|
53244
|
-
root: rootClassName$
|
|
53245
|
-
spacingNormal: `${rootClassName$
|
|
53246
|
-
spacingDense: `${rootClassName$
|
|
53247
|
-
loading: `${rootClassName$
|
|
53272
|
+
root: rootClassName$7,
|
|
53273
|
+
spacingNormal: `${rootClassName$7}-normal`,
|
|
53274
|
+
spacingDense: `${rootClassName$7}-dense`,
|
|
53275
|
+
loading: `${rootClassName$7}-loading`
|
|
53248
53276
|
};
|
|
53249
53277
|
const StyledBoard = styled.div`
|
|
53250
53278
|
${({
|
|
53251
53279
|
theme
|
|
53252
53280
|
}) => css`
|
|
53253
|
-
&.${rootClassName$
|
|
53281
|
+
&.${rootClassName$7} {
|
|
53254
53282
|
display: flex;
|
|
53255
53283
|
overflow-x: auto;
|
|
53256
53284
|
flex: 1;
|
|
@@ -53258,7 +53286,7 @@ const StyledBoard = styled.div`
|
|
|
53258
53286
|
}
|
|
53259
53287
|
|
|
53260
53288
|
@media (max-width: 650px) {
|
|
53261
|
-
&.${rootClassName$
|
|
53289
|
+
&.${rootClassName$7} {
|
|
53262
53290
|
justify-content: center;
|
|
53263
53291
|
}
|
|
53264
53292
|
}
|
|
@@ -53359,18 +53387,18 @@ const Board = React__default.forwardRef(({
|
|
|
53359
53387
|
});
|
|
53360
53388
|
});
|
|
53361
53389
|
|
|
53362
|
-
const rootClassName$
|
|
53390
|
+
const rootClassName$6 = 'dot--board-column';
|
|
53363
53391
|
const classNames$4 = {
|
|
53364
|
-
root: rootClassName$
|
|
53365
|
-
spacingNormal: `${rootClassName$
|
|
53366
|
-
spacingDense: `${rootClassName$
|
|
53367
|
-
collapse: `${rootClassName$
|
|
53392
|
+
root: rootClassName$6,
|
|
53393
|
+
spacingNormal: `${rootClassName$6}-normal`,
|
|
53394
|
+
spacingDense: `${rootClassName$6}-dense`,
|
|
53395
|
+
collapse: `${rootClassName$6}-collapse`
|
|
53368
53396
|
};
|
|
53369
53397
|
const StyledBoardColumn = styled.div`
|
|
53370
53398
|
${({
|
|
53371
53399
|
theme
|
|
53372
53400
|
}) => css`
|
|
53373
|
-
&.${rootClassName$
|
|
53401
|
+
&.${rootClassName$6} {
|
|
53374
53402
|
display: flex;
|
|
53375
53403
|
flex-direction: column;
|
|
53376
53404
|
overflow: hidden;
|
|
@@ -53461,13 +53489,13 @@ const BoardColumn = React__default.forwardRef(({
|
|
|
53461
53489
|
});
|
|
53462
53490
|
});
|
|
53463
53491
|
|
|
53464
|
-
const rootClassName$
|
|
53492
|
+
const rootClassName$5 = 'dot--board-column-header';
|
|
53465
53493
|
const classNames$3 = {
|
|
53466
|
-
root: rootClassName$
|
|
53467
|
-
spacingNormal: `${rootClassName$
|
|
53468
|
-
spacingDense: `${rootClassName$
|
|
53469
|
-
colorBar: `${rootClassName$
|
|
53470
|
-
title: `${rootClassName$
|
|
53494
|
+
root: rootClassName$5,
|
|
53495
|
+
spacingNormal: `${rootClassName$5}-normal`,
|
|
53496
|
+
spacingDense: `${rootClassName$5}-dense`,
|
|
53497
|
+
colorBar: `${rootClassName$5}-color-bar`,
|
|
53498
|
+
title: `${rootClassName$5}-title`
|
|
53471
53499
|
};
|
|
53472
53500
|
const StyledBoardColumnHeader = styled.div`
|
|
53473
53501
|
${({
|
|
@@ -53535,11 +53563,11 @@ const BoardColumnHeader = ({
|
|
|
53535
53563
|
});
|
|
53536
53564
|
};
|
|
53537
53565
|
|
|
53538
|
-
const rootClassName$
|
|
53566
|
+
const rootClassName$4 = 'dot--board-column-items';
|
|
53539
53567
|
const classNames$2 = {
|
|
53540
|
-
root: rootClassName$
|
|
53541
|
-
spacingNormal: `${rootClassName$
|
|
53542
|
-
spacingDense: `${rootClassName$
|
|
53568
|
+
root: rootClassName$4,
|
|
53569
|
+
spacingNormal: `${rootClassName$4}-normal`,
|
|
53570
|
+
spacingDense: `${rootClassName$4}-dense`
|
|
53543
53571
|
};
|
|
53544
53572
|
const StyledBoardColumnItems = styled.div`
|
|
53545
53573
|
${({
|
|
@@ -53591,11 +53619,11 @@ const BoardColumnItems = ({
|
|
|
53591
53619
|
});
|
|
53592
53620
|
};
|
|
53593
53621
|
|
|
53594
|
-
const rootClassName$
|
|
53622
|
+
const rootClassName$3 = 'dot--board-column-action-bar';
|
|
53595
53623
|
const classNames$1 = {
|
|
53596
|
-
root: rootClassName$
|
|
53597
|
-
spacingNormal: `${rootClassName$
|
|
53598
|
-
spacingDense: `${rootClassName$
|
|
53624
|
+
root: rootClassName$3,
|
|
53625
|
+
spacingNormal: `${rootClassName$3}-normal`,
|
|
53626
|
+
spacingDense: `${rootClassName$3}-dense`
|
|
53599
53627
|
};
|
|
53600
53628
|
const StyledBoardColumnActionBar = styled(DotActionToolbar)`
|
|
53601
53629
|
${({
|
|
@@ -53666,13 +53694,13 @@ const BoardColumnCollapse = ({
|
|
|
53666
53694
|
return useMemo(() => collapsed ? children : null, [children, collapsed]);
|
|
53667
53695
|
};
|
|
53668
53696
|
|
|
53669
|
-
const rootClassName$
|
|
53697
|
+
const rootClassName$2 = 'dot--board-column-header';
|
|
53670
53698
|
const classNames = {
|
|
53671
|
-
root: rootClassName$
|
|
53672
|
-
spacingNormal: `${rootClassName$
|
|
53673
|
-
spacingDense: `${rootClassName$
|
|
53674
|
-
title: `${rootClassName$
|
|
53675
|
-
text: `${rootClassName$
|
|
53699
|
+
root: rootClassName$2,
|
|
53700
|
+
spacingNormal: `${rootClassName$2}-normal`,
|
|
53701
|
+
spacingDense: `${rootClassName$2}-dense`,
|
|
53702
|
+
title: `${rootClassName$2}-title`,
|
|
53703
|
+
text: `${rootClassName$2}-text`
|
|
53676
53704
|
};
|
|
53677
53705
|
const StyledBoardColumnSummary = styled.div`
|
|
53678
53706
|
${({
|
|
@@ -53734,12 +53762,12 @@ const BoardColumnSummary = ({
|
|
|
53734
53762
|
});
|
|
53735
53763
|
};
|
|
53736
53764
|
|
|
53737
|
-
const rootClassName = 'dot-search';
|
|
53765
|
+
const rootClassName$1 = 'dot-search';
|
|
53738
53766
|
const StyledSearch = styled(DotInputText)`
|
|
53739
53767
|
${({
|
|
53740
53768
|
theme
|
|
53741
53769
|
}) => css`
|
|
53742
|
-
&.${rootClassName} {
|
|
53770
|
+
&.${rootClassName$1} {
|
|
53743
53771
|
&.with-value .MuiInputBase-root {
|
|
53744
53772
|
background-color: ${theme.palette.figma.primary.light};
|
|
53745
53773
|
|
|
@@ -53782,7 +53810,7 @@ const DotSearch = _a => {
|
|
|
53782
53810
|
value
|
|
53783
53811
|
} = _a,
|
|
53784
53812
|
rest = __rest(_a, ["ariaLabel", "className", 'data-testid', "disabled", "hasDebounce", "id", "name", "onSearch", "onClear", "placeholder", "value"]);
|
|
53785
|
-
const rootClasses = useStylesWithRootClass(rootClassName, className, value ? 'with-value' : '');
|
|
53813
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1, className, value ? 'with-value' : '');
|
|
53786
53814
|
return jsx(StyledSearch, Object.assign({}, rest, {
|
|
53787
53815
|
"aria-label": ariaLabel,
|
|
53788
53816
|
className: rootClasses,
|
|
@@ -53801,4 +53829,126 @@ const DotSearch = _a => {
|
|
|
53801
53829
|
}));
|
|
53802
53830
|
};
|
|
53803
53831
|
|
|
53804
|
-
|
|
53832
|
+
const rootClassName = 'dot-toggle-switch';
|
|
53833
|
+
const StyledToggleSwitch = styled(Stack)`
|
|
53834
|
+
${({
|
|
53835
|
+
theme
|
|
53836
|
+
}) => css`
|
|
53837
|
+
&.${rootClassName} {
|
|
53838
|
+
gap: ${theme.spacing(2)};
|
|
53839
|
+
cursor: pointer;
|
|
53840
|
+
|
|
53841
|
+
.dot-options {
|
|
53842
|
+
height: ${theme.spacing(3.5)};
|
|
53843
|
+
border-radius: 999px;
|
|
53844
|
+
background-color: ${theme.palette.figma.background.level1.deep};
|
|
53845
|
+
|
|
53846
|
+
&:focus-visible {
|
|
53847
|
+
outline: none;
|
|
53848
|
+
box-shadow: 0 0 0 2px
|
|
53849
|
+
${theme.palette.figma.background.level0.bckgWhite},
|
|
53850
|
+
0 0 0 4px ${theme.palette.figma.primary.normal};
|
|
53851
|
+
}
|
|
53852
|
+
|
|
53853
|
+
.dot-chip-container {
|
|
53854
|
+
display: flex;
|
|
53855
|
+
gap: ${theme.spacing(0.25)};
|
|
53856
|
+
margin: ${theme.spacing(0.25)};
|
|
53857
|
+
|
|
53858
|
+
.dot-toggle-switch-chip {
|
|
53859
|
+
height: ${theme.spacing(3)};
|
|
53860
|
+
user-select: none;
|
|
53861
|
+
cursor: pointer;
|
|
53862
|
+
|
|
53863
|
+
.MuiChip-label {
|
|
53864
|
+
padding: ${theme.spacing(0, 1)};
|
|
53865
|
+
}
|
|
53866
|
+
|
|
53867
|
+
&:not(.selected) {
|
|
53868
|
+
background-color: transparent;
|
|
53869
|
+
}
|
|
53870
|
+
}
|
|
53871
|
+
}
|
|
53872
|
+
}
|
|
53873
|
+
|
|
53874
|
+
&.dot-disabled {
|
|
53875
|
+
&,
|
|
53876
|
+
.dot-toggle-switch-chip {
|
|
53877
|
+
cursor: default !important;
|
|
53878
|
+
}
|
|
53879
|
+
|
|
53880
|
+
.dot-toggle-switch-label {
|
|
53881
|
+
color: ${theme.palette.figma.typography.disabled};
|
|
53882
|
+
}
|
|
53883
|
+
}
|
|
53884
|
+
}
|
|
53885
|
+
`}
|
|
53886
|
+
`;
|
|
53887
|
+
|
|
53888
|
+
const DotToggleSwitch = ({
|
|
53889
|
+
ariaLabel,
|
|
53890
|
+
className,
|
|
53891
|
+
'data-pendoid': dataPendoId = rootClassName,
|
|
53892
|
+
'data-testid': dataTestId,
|
|
53893
|
+
disabled = false,
|
|
53894
|
+
label,
|
|
53895
|
+
onChange,
|
|
53896
|
+
options,
|
|
53897
|
+
value
|
|
53898
|
+
}) => {
|
|
53899
|
+
const toggleOptions = options.slice(0, 2);
|
|
53900
|
+
const isChecked = toggleOptions[1].value === value;
|
|
53901
|
+
const rootClasses = useStylesWithRootClass(rootClassName, className, disabled ? 'dot-disabled' : '');
|
|
53902
|
+
const toggleValue = () => {
|
|
53903
|
+
const [firstOption, secondOption] = toggleOptions;
|
|
53904
|
+
const newValue = value === firstOption.value ? secondOption.value : firstOption.value;
|
|
53905
|
+
onChange(newValue);
|
|
53906
|
+
};
|
|
53907
|
+
const handleKeyDown = event => {
|
|
53908
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
53909
|
+
event.preventDefault();
|
|
53910
|
+
toggleValue();
|
|
53911
|
+
}
|
|
53912
|
+
};
|
|
53913
|
+
return jsxs(StyledToggleSwitch, {
|
|
53914
|
+
className: rootClasses,
|
|
53915
|
+
"data-testid": dataTestId,
|
|
53916
|
+
"data-pendoid": dataPendoId,
|
|
53917
|
+
direction: "row",
|
|
53918
|
+
alignItems: "center",
|
|
53919
|
+
display: "inline-flex",
|
|
53920
|
+
onClick: disabled ? undefined : toggleValue,
|
|
53921
|
+
onKeyDown: handleKeyDown,
|
|
53922
|
+
children: [jsx("div", {
|
|
53923
|
+
"aria-label": ariaLabel,
|
|
53924
|
+
"aria-checked": isChecked,
|
|
53925
|
+
className: "dot-options",
|
|
53926
|
+
role: "switch",
|
|
53927
|
+
tabIndex: disabled ? -1 : 0,
|
|
53928
|
+
children: jsx("div", {
|
|
53929
|
+
className: "dot-chip-container",
|
|
53930
|
+
children: toggleOptions.map(({
|
|
53931
|
+
text: optionText,
|
|
53932
|
+
value: optionValue
|
|
53933
|
+
}) => {
|
|
53934
|
+
const isSelected = value === optionValue;
|
|
53935
|
+
const chipClasses = useStylesWithRootClass('dot-toggle-switch-chip', isSelected ? 'selected' : '');
|
|
53936
|
+
return jsx(Chip, {
|
|
53937
|
+
className: chipClasses,
|
|
53938
|
+
color: isSelected && !disabled ? 'primary' : 'default',
|
|
53939
|
+
"data-testid": dataTestId ? `${dataTestId}-chip-${optionValue}` : undefined,
|
|
53940
|
+
label: optionText,
|
|
53941
|
+
tabIndex: -1,
|
|
53942
|
+
variant: "filled"
|
|
53943
|
+
}, optionValue.toString());
|
|
53944
|
+
})
|
|
53945
|
+
})
|
|
53946
|
+
}), label && jsx(DotTypography, {
|
|
53947
|
+
className: "dot-toggle-switch-label",
|
|
53948
|
+
variant: "caption",
|
|
53949
|
+
children: label
|
|
53950
|
+
})]
|
|
53951
|
+
});
|
|
53952
|
+
};
|
|
53953
|
+
|
|
53954
|
+
export { ApiError$1 as ApiError, BoardStatusProvider, Cell, ColumnStatusProvider, CreateUUID, CssCell, CssGrid, CssGridDebug, DashboardAppTypeOptions, DashboardView, DatePickerKeydownContext, Daytime, DotAccordion, DotActionToolbar, DotAlertBanner, DotAnnotation, DotAppLogo, DotAppSwitcher, DotAppToolbar, DotAutoComplete, DotAvatar, DotAvatarGroup, DotAvatarWithDetails, DotBadge, Board as DotBoard, BoardColumn as DotBoardColumn, BoardColumnActionBar as DotBoardColumnActionBar, BoardColumnCollapse as DotBoardColumnCollapse, BoardColumnExpand as DotBoardColumnExpand, BoardColumnHeader as DotBoardColumnHeader, BoardColumnItems as DotBoardColumnItems, BoardColumnSummary as DotBoardColumnSummary, DotBreadcrumbs, DotButton, DotButtonToggle, DotCard, DotCardContent, DotCardFooter, DotCardHeader, DotCarousel, DotCheckbox, DotCheckboxGroup, DotChip, DotChipList, DotClickAwayListener, DotConfirmationDialog, DotCopyButton, DotCoreApiProvider, DotDashboardActions, DotDashboardDetails, DotDashboardDialog, DotDashboardHeader, DotDashboardOptionsMenu, DotDashboardPublishConfirm, DotDashboardStatusPill, DotDatePicker, DotDialog, DotDivider, DotDraggableList, DotDraggableWindow, DotDrawer, DotDynamicForm, DotEmptyFilterState, DotEmptyState, DotFileListItem, DotFileUpload, DotForm, DotFormGroup, DotHeaderRow, DotIcon, DotIconButton, DotIllustration, DotImpactDialog, DotInlineEdit, DotInputLabel, DotInputSelect, DotInputText, DotLinearProgress, DotLink, DotList, DotMenu, DotMenuList, DotMetadataApiProvider, DotNavigationRail, DotPill, DotPopper, DotProgress, DotProgressButton, DotRadioButton, DotRadioGroup, DotSearch, DotSidebar, DotSkeleton, DotSnackbar, DotSnackbarContainer, DotSnackbarProvider, DotSplitButton, DotStepper, DotStickyWithBorder, DotSwitch, DotTable, DotTableAction, DotTableActions, DotTablePagination, DotTabs, DotThemeProvider, DotTimePicker, DotToggleSwitch, DotTooltip, DotTruncateWithTooltip, DotTypography, avatarColors, breakpointOptions, checkIfValidDate, darkFigmaColors, lightThemeColors as lightColors, lightFigmaColors, mockScrollIntoView, parseAutoCompleteValue, variables as themeVariables, typographyOptions, useBoardStatus, useColumnStatus, useDotCoreApiContext, useDotMetadataApiContext, useDotSnackbarContext, useEnqueueErrorMessage, useKeyPress };
|