@digital-ai/dot-components 3.8.2 → 3.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +811 -291
- package/package.json +1 -1
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/components/linear-progress/LinearProgress.d.ts +1 -1
- package/src/lib/components/list/ListItem.d.ts +1 -1
- package/src/lib/components/list/utils/models.d.ts +2 -0
- package/src/lib/components/menu/Menu.styles.d.ts +4 -4
- package/src/lib/components/pill/Pill.d.ts +4 -2
package/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useState, useRef, useEffect, createContext, useMemo, useContext, forwardRef, useCallback, createElement, Fragment as Fragment$1, useLayoutEffect } from 'react';
|
|
3
|
+
import React__default, { useState, useRef, useEffect, createContext, useMemo, useContext, forwardRef, useCallback, createElement, Fragment as Fragment$1, useLayoutEffect } from 'react';
|
|
4
4
|
import { Tooltip, Icon, Typography, Accordion, AccordionSummary, AccordionDetails, AccordionActions, InputAdornment, InputLabel, TextField, Toolbar, Fade, StyledEngineProvider, Alert, Avatar, Button, Link, List, ListSubheader, Divider, CircularProgress, Popper, MenuList, MenuItem, Paper, ClickAwayListener, Drawer, IconButton, ListItem, ListItemButton, Collapse, ListItemIcon, ListItemText, Badge, useMediaQuery, Autocomplete, Chip, 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, StepContent, TablePagination, TableContainer, TableBody, TableCell, TableRow, TableSortLabel, TableHead, Table, Tabs, Tab, LinearProgress, Slide } from '@mui/material';
|
|
5
5
|
import '@digital-ai/dot-icons';
|
|
6
6
|
import styled, { css, createGlobalStyle, ThemeProvider as ThemeProvider$1, keyframes } from 'styled-components';
|
|
@@ -104,12 +104,12 @@ const DotTooltip = ({
|
|
|
104
104
|
}) : children;
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
const rootClassName$
|
|
107
|
+
const rootClassName$1g = 'dot-icon';
|
|
108
108
|
const StyledIcon = styled(Icon)`
|
|
109
109
|
${({
|
|
110
110
|
theme
|
|
111
111
|
}) => css`
|
|
112
|
-
&.${rootClassName$
|
|
112
|
+
&.${rootClassName$1g} {
|
|
113
113
|
color: ${theme.palette.figma.icon.black};
|
|
114
114
|
font-size: 20px;
|
|
115
115
|
|
|
@@ -146,7 +146,7 @@ const DotIcon = ({
|
|
|
146
146
|
iconId,
|
|
147
147
|
tooltip
|
|
148
148
|
}) => {
|
|
149
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
149
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1g, className);
|
|
150
150
|
return jsx(DotTooltip, {
|
|
151
151
|
title: tooltip,
|
|
152
152
|
children: jsx(StyledIcon, {
|
|
@@ -207,7 +207,7 @@ const DotTypography = ({
|
|
|
207
207
|
});
|
|
208
208
|
};
|
|
209
209
|
|
|
210
|
-
const rootClassName$
|
|
210
|
+
const rootClassName$1f = 'dot-accordion';
|
|
211
211
|
const summaryClassName = 'dot-accordion-summary';
|
|
212
212
|
const detailClassName = 'dot-accordion-details';
|
|
213
213
|
const StyledAccordion = styled(Accordion)`
|
|
@@ -218,7 +218,7 @@ const StyledAccordion = styled(Accordion)`
|
|
|
218
218
|
background: ${theme.palette.figma.background.level1.white};
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
&.${rootClassName$
|
|
221
|
+
&.${rootClassName$1f} .${summaryClassName} {
|
|
222
222
|
align-items: center;
|
|
223
223
|
background: ${theme.palette.figma.background.level1.white};
|
|
224
224
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -263,7 +263,7 @@ const DotAccordion = ({
|
|
|
263
263
|
ariaLabel,
|
|
264
264
|
children,
|
|
265
265
|
className,
|
|
266
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
266
|
+
'data-pendoid': dataPendoId = rootClassName$1f,
|
|
267
267
|
'data-testid': dataTestId = 'dot-accordion',
|
|
268
268
|
disabled = false,
|
|
269
269
|
expanded,
|
|
@@ -274,7 +274,7 @@ const DotAccordion = ({
|
|
|
274
274
|
summary,
|
|
275
275
|
noWrap = true
|
|
276
276
|
}) => {
|
|
277
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
277
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1f, className);
|
|
278
278
|
const [elevation, setElevation] = useState();
|
|
279
279
|
useEffect(() => {
|
|
280
280
|
if (onChange && expanded === undefined) {
|
|
@@ -390,7 +390,7 @@ const readOnlyStyles = theme => css`
|
|
|
390
390
|
}
|
|
391
391
|
`;
|
|
392
392
|
|
|
393
|
-
const rootClassName$
|
|
393
|
+
const rootClassName$1e = 'dot-text-field';
|
|
394
394
|
const rootSelectClassName = 'dot-select-field';
|
|
395
395
|
const labelClassName = 'dot-input-label';
|
|
396
396
|
const errorClassName = 'dot-error';
|
|
@@ -438,7 +438,7 @@ const StyledTextField = styled(TextField)`
|
|
|
438
438
|
theme,
|
|
439
439
|
InputProps
|
|
440
440
|
}) => css`
|
|
441
|
-
&.${rootClassName$
|
|
441
|
+
&.${rootClassName$1e} {
|
|
442
442
|
.MuiInputBase-root {
|
|
443
443
|
margin-bottom: 0;
|
|
444
444
|
}
|
|
@@ -482,7 +482,7 @@ const StyledTextField = styled(TextField)`
|
|
|
482
482
|
margin-right: ${theme.spacing(2)};
|
|
483
483
|
}
|
|
484
484
|
|
|
485
|
-
&.${rootSelectClassName}, &.${rootClassName$
|
|
485
|
+
&.${rootSelectClassName}, &.${rootClassName$1e} {
|
|
486
486
|
.${adornmentIconClassName} {
|
|
487
487
|
color: ${theme.palette.figma.icon.black};
|
|
488
488
|
p {
|
|
@@ -573,15 +573,15 @@ const StyledTextField = styled(TextField)`
|
|
|
573
573
|
`}
|
|
574
574
|
`;
|
|
575
575
|
|
|
576
|
-
const rootClassName$
|
|
576
|
+
const rootClassName$1d = 'dot-action-toolbar';
|
|
577
577
|
const StyledToolbar = styled(Toolbar)`
|
|
578
578
|
${({
|
|
579
579
|
theme
|
|
580
580
|
}) => css`
|
|
581
|
-
&.${rootClassName$
|
|
581
|
+
&.${rootClassName$1d} {
|
|
582
582
|
border-bottom: 1px solid ${theme.palette.figma.border.default};
|
|
583
583
|
|
|
584
|
-
.${rootClassName$
|
|
584
|
+
.${rootClassName$1e} .MuiInputBase-root {
|
|
585
585
|
margin-bottom: 0;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
@@ -595,7 +595,7 @@ const DotActionToolbar = ({
|
|
|
595
595
|
'data-testid': dataTestId,
|
|
596
596
|
variant = 'dense'
|
|
597
597
|
}) => {
|
|
598
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
598
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1d, className);
|
|
599
599
|
return jsx(StyledToolbar, {
|
|
600
600
|
"aria-label": ariaLabel,
|
|
601
601
|
className: rootClasses,
|
|
@@ -1226,7 +1226,8 @@ const typographyOptions = {
|
|
|
1226
1226
|
fontFamily: 'LatoBold, sans-serif',
|
|
1227
1227
|
fontSize: 14,
|
|
1228
1228
|
lineHeight: '20px',
|
|
1229
|
-
letterSpacing: '0.03em'
|
|
1229
|
+
letterSpacing: '0.03em',
|
|
1230
|
+
fontWeight: 700
|
|
1230
1231
|
},
|
|
1231
1232
|
body1: {
|
|
1232
1233
|
fontSize: 14,
|
|
@@ -1664,12 +1665,12 @@ const renderNodeOrTypography = (content, typographyVariant = 'body1') => {
|
|
|
1664
1665
|
const checkIfArrowUpPressed = event => event.key === 'ArrowUp';
|
|
1665
1666
|
const checkIfArrowDownPressed = event => event.key === 'ArrowDown';
|
|
1666
1667
|
|
|
1667
|
-
const rootClassName$
|
|
1668
|
+
const rootClassName$1c = 'dot-alert-banner';
|
|
1668
1669
|
const StyledAlertBanner = styled(Alert)`
|
|
1669
1670
|
${({
|
|
1670
1671
|
theme
|
|
1671
1672
|
}) => css`
|
|
1672
|
-
&.${rootClassName$
|
|
1673
|
+
&.${rootClassName$1c} {
|
|
1673
1674
|
align-items: center;
|
|
1674
1675
|
box-sizing: border-box;
|
|
1675
1676
|
min-height: 48px;
|
|
@@ -1704,7 +1705,7 @@ const DotAlertBanner = ({
|
|
|
1704
1705
|
ariaLabel,
|
|
1705
1706
|
children,
|
|
1706
1707
|
className,
|
|
1707
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
1708
|
+
'data-pendoid': dataPendoId = rootClassName$1c,
|
|
1708
1709
|
'data-testid': dataTestId,
|
|
1709
1710
|
onClose,
|
|
1710
1711
|
roundedCorners = true,
|
|
@@ -1712,7 +1713,7 @@ const DotAlertBanner = ({
|
|
|
1712
1713
|
textVariant = 'body1',
|
|
1713
1714
|
width
|
|
1714
1715
|
}) => {
|
|
1715
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1716
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1c, severity, className);
|
|
1716
1717
|
/* For simple string use default component, for everything else use 'div' */
|
|
1717
1718
|
const typographyComponent = isString$2(children) ? undefined : 'div';
|
|
1718
1719
|
return jsx(StyledAlertBanner, {
|
|
@@ -2390,7 +2391,7 @@ const useDotCoreApiContext = () => {
|
|
|
2390
2391
|
return useContext(DotCoreApiContext);
|
|
2391
2392
|
};
|
|
2392
2393
|
|
|
2393
|
-
const rootClassName$
|
|
2394
|
+
const rootClassName$1b = 'dot-avatar';
|
|
2394
2395
|
const avatarSpacing = {
|
|
2395
2396
|
small: 3,
|
|
2396
2397
|
medium: 5,
|
|
@@ -2400,7 +2401,7 @@ const StyledAvatar = styled(Avatar)`
|
|
|
2400
2401
|
${({
|
|
2401
2402
|
theme
|
|
2402
2403
|
}) => css`
|
|
2403
|
-
&.${rootClassName$
|
|
2404
|
+
&.${rootClassName$1b} {
|
|
2404
2405
|
display: inline-flex;
|
|
2405
2406
|
background-color: ${({
|
|
2406
2407
|
color
|
|
@@ -2512,7 +2513,7 @@ const DotAvatar = ({
|
|
|
2512
2513
|
variant = 'circular',
|
|
2513
2514
|
style
|
|
2514
2515
|
}) => {
|
|
2515
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2516
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1b, className);
|
|
2516
2517
|
const getAvatarColor = () => {
|
|
2517
2518
|
if ((style === null || style === void 0 ? void 0 : style.color) !== undefined) return 'inherit';
|
|
2518
2519
|
if (color) return color;
|
|
@@ -2551,12 +2552,12 @@ const DotAvatar = ({
|
|
|
2551
2552
|
});
|
|
2552
2553
|
};
|
|
2553
2554
|
|
|
2554
|
-
const rootClassName$
|
|
2555
|
+
const rootClassName$1a = 'dot-button';
|
|
2555
2556
|
const StyledButton = styled(Button)`
|
|
2556
2557
|
${({
|
|
2557
2558
|
theme
|
|
2558
2559
|
}) => css`
|
|
2559
|
-
&.${rootClassName$
|
|
2560
|
+
&.${rootClassName$1a} {
|
|
2560
2561
|
background-color: ${theme.palette.figma.primary.normal};
|
|
2561
2562
|
margin: ${theme.spacing(0.5)};
|
|
2562
2563
|
padding: ${theme.spacing(0.75, 2)};
|
|
@@ -2640,7 +2641,7 @@ const DotButton = forwardRef(({
|
|
|
2640
2641
|
autoFocus = false,
|
|
2641
2642
|
children,
|
|
2642
2643
|
className,
|
|
2643
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
2644
|
+
'data-pendoid': dataPendoId = rootClassName$1a,
|
|
2644
2645
|
'data-testid': dataTestId,
|
|
2645
2646
|
disabled = false,
|
|
2646
2647
|
disableRipple = false,
|
|
@@ -2656,7 +2657,7 @@ const DotButton = forwardRef(({
|
|
|
2656
2657
|
tooltipPlacement,
|
|
2657
2658
|
type = 'primary'
|
|
2658
2659
|
}, ref) => {
|
|
2659
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2660
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1a, className);
|
|
2660
2661
|
let color;
|
|
2661
2662
|
let variant;
|
|
2662
2663
|
switch (type) {
|
|
@@ -2680,7 +2681,7 @@ const DotButton = forwardRef(({
|
|
|
2680
2681
|
return jsx(DotTooltip, {
|
|
2681
2682
|
placement: tooltipPlacement,
|
|
2682
2683
|
title: tooltip,
|
|
2683
|
-
"data-testid": `${dataTestId || rootClassName$
|
|
2684
|
+
"data-testid": `${dataTestId || rootClassName$1a}-tooltip`,
|
|
2684
2685
|
children: jsx(StyledButton, {
|
|
2685
2686
|
"aria-label": ariaLabel,
|
|
2686
2687
|
autoFocus: autoFocus,
|
|
@@ -2689,7 +2690,7 @@ const DotButton = forwardRef(({
|
|
|
2689
2690
|
},
|
|
2690
2691
|
color: color,
|
|
2691
2692
|
"data-pendoid": dataPendoId,
|
|
2692
|
-
"data-testid": dataTestId || rootClassName$
|
|
2693
|
+
"data-testid": dataTestId || rootClassName$1a,
|
|
2693
2694
|
disableRipple: disableRipple,
|
|
2694
2695
|
disabled: disabled,
|
|
2695
2696
|
endIcon: endIcon,
|
|
@@ -2708,10 +2709,10 @@ const DotButton = forwardRef(({
|
|
|
2708
2709
|
});
|
|
2709
2710
|
});
|
|
2710
2711
|
|
|
2711
|
-
const rootClassName$
|
|
2712
|
+
const rootClassName$19 = 'dot-link';
|
|
2712
2713
|
const StyledLink = styled(Link)`
|
|
2713
2714
|
${() => css`
|
|
2714
|
-
&.${rootClassName$
|
|
2715
|
+
&.${rootClassName$19} {
|
|
2715
2716
|
cursor: pointer;
|
|
2716
2717
|
|
|
2717
2718
|
&:hover.MuiLink-underlineHover {
|
|
@@ -2727,7 +2728,7 @@ const DotLink = ({
|
|
|
2727
2728
|
children,
|
|
2728
2729
|
className,
|
|
2729
2730
|
color = 'primary',
|
|
2730
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
2731
|
+
'data-pendoid': dataPendoId = rootClassName$19,
|
|
2731
2732
|
'data-testid': dataTestId,
|
|
2732
2733
|
href,
|
|
2733
2734
|
onClick,
|
|
@@ -2739,7 +2740,7 @@ const DotLink = ({
|
|
|
2739
2740
|
tooltip,
|
|
2740
2741
|
underline = 'always'
|
|
2741
2742
|
}) => {
|
|
2742
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2743
|
+
const rootClasses = useStylesWithRootClass(rootClassName$19, className);
|
|
2743
2744
|
useEffect(() => {
|
|
2744
2745
|
// Include a console warning if the link is not a string and no ariaLabel is provided
|
|
2745
2746
|
if (!isString$2(children) && !ariaLabel) {
|
|
@@ -2789,7 +2790,7 @@ const CreateUUID = () => {
|
|
|
2789
2790
|
});
|
|
2790
2791
|
};
|
|
2791
2792
|
|
|
2792
|
-
const rootClassName$
|
|
2793
|
+
const rootClassName$18 = 'dot-list';
|
|
2793
2794
|
const listItemRootClass = 'dot-list-item';
|
|
2794
2795
|
const nestedListClassName = 'dot-nested-list';
|
|
2795
2796
|
const nestedDrawerClassName = 'dot-nested-drawer';
|
|
@@ -2797,7 +2798,7 @@ const StyledList = styled(List)`
|
|
|
2797
2798
|
${({
|
|
2798
2799
|
theme
|
|
2799
2800
|
}) => css`
|
|
2800
|
-
&.${rootClassName$
|
|
2801
|
+
&.${rootClassName$18} {
|
|
2801
2802
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
2802
2803
|
|
|
2803
2804
|
.dot-icon {
|
|
@@ -2880,12 +2881,12 @@ const DotListDivider = ({
|
|
|
2880
2881
|
});
|
|
2881
2882
|
};
|
|
2882
2883
|
|
|
2883
|
-
const rootClassName$
|
|
2884
|
+
const rootClassName$17 = 'dot-progress';
|
|
2884
2885
|
const StyledProgress = styled.div`
|
|
2885
2886
|
${({
|
|
2886
2887
|
theme
|
|
2887
2888
|
}) => css`
|
|
2888
|
-
&.${rootClassName$
|
|
2889
|
+
&.${rootClassName$17} {
|
|
2889
2890
|
line-height: 0;
|
|
2890
2891
|
|
|
2891
2892
|
.dot-progress-with-label-wrapper {
|
|
@@ -2936,7 +2937,7 @@ const DotProgress = ({
|
|
|
2936
2937
|
value,
|
|
2937
2938
|
variant = 'indeterminate'
|
|
2938
2939
|
}) => {
|
|
2939
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2940
|
+
const rootClasses = useStylesWithRootClass(rootClassName$17, className);
|
|
2940
2941
|
useEffect(() => {
|
|
2941
2942
|
if (!ariaLabel) {
|
|
2942
2943
|
console.warn('a11y: DotProgress must have an ariaLabel to describe the progress component');
|
|
@@ -3002,35 +3003,38 @@ var variables = /*#__PURE__*/Object.freeze({
|
|
|
3002
3003
|
levelTop: levelTop
|
|
3003
3004
|
});
|
|
3004
3005
|
|
|
3005
|
-
const rootClassName$
|
|
3006
|
+
const rootClassName$16 = 'dot-popper';
|
|
3006
3007
|
const StyledPopper$1 = styled(Popper)`
|
|
3007
3008
|
${({
|
|
3008
3009
|
theme
|
|
3009
3010
|
}) => css`
|
|
3010
|
-
&.${rootClassName$
|
|
3011
|
+
&.${rootClassName$16} {
|
|
3011
3012
|
font-family: ${theme.typography.fontFamily};
|
|
3012
3013
|
font-size: ${theme.typography.body1.fontSize}px;
|
|
3013
3014
|
}
|
|
3014
3015
|
|
|
3015
|
-
&.${rootClassName$
|
|
3016
|
+
&.${rootClassName$16}, &.${rootClassName$16} > .dot-popper-paper {
|
|
3016
3017
|
background-color: ${theme.palette.figma.background.level1.white};
|
|
3017
3018
|
}
|
|
3018
3019
|
`}
|
|
3019
3020
|
`;
|
|
3020
3021
|
|
|
3021
3022
|
const flyoutMenuClassName = 'dot-flyout-menu';
|
|
3022
|
-
const rootClassName
|
|
3023
|
-
const getListMaxHeight = maxHeight => isString$2(maxHeight) ? maxHeight : `${maxHeight}px`;
|
|
3023
|
+
const rootClassName$15 = 'dot-menu';
|
|
3024
3024
|
const StyledPopper = styled(Popper)`
|
|
3025
3025
|
${({
|
|
3026
3026
|
theme
|
|
3027
3027
|
}) => css`
|
|
3028
|
-
&.${rootClassName$
|
|
3028
|
+
&.${rootClassName$16} {
|
|
3029
3029
|
font-family: ${theme.typography.fontFamily};
|
|
3030
3030
|
font-size: ${theme.typography.body1.fontSize}px;
|
|
3031
3031
|
z-index: ${levelSecond};
|
|
3032
3032
|
}
|
|
3033
|
-
&.${rootClassName
|
|
3033
|
+
&.${rootClassName$15}, &.${rootClassName$16} {
|
|
3034
|
+
.MuiPaper-root {
|
|
3035
|
+
border: 1px solid ${theme.palette.layer.n100};
|
|
3036
|
+
}
|
|
3037
|
+
|
|
3034
3038
|
&.loading .MuiPaper-root {
|
|
3035
3039
|
align-items: center;
|
|
3036
3040
|
display: flex;
|
|
@@ -3100,19 +3104,20 @@ const StyledPopper = styled(Popper)`
|
|
|
3100
3104
|
}
|
|
3101
3105
|
`}
|
|
3102
3106
|
`;
|
|
3107
|
+
const getListMaxHeight = maxHeight => isString$2(maxHeight) ? maxHeight : `${maxHeight}px`;
|
|
3103
3108
|
|
|
3104
3109
|
const MENU_ITEM_HEIGHT_NORMAL = 48;
|
|
3105
3110
|
const MENU_ITEM_HEIGHT_DENSE = 36;
|
|
3106
3111
|
const DEFAULT_MAX_VISIBLE_ITEMS = 7;
|
|
3107
3112
|
|
|
3108
|
-
const rootClassName$
|
|
3113
|
+
const rootClassName$14 = 'dot-ul';
|
|
3109
3114
|
const listItemClassName$1 = 'dot-li';
|
|
3110
3115
|
const listItemWithSubmenuClassName = 'dot-li-with-submenu';
|
|
3111
3116
|
const StyledMenuList = styled(MenuList)`
|
|
3112
3117
|
${({
|
|
3113
3118
|
theme
|
|
3114
3119
|
}) => css`
|
|
3115
|
-
&.${rootClassName$
|
|
3120
|
+
&.${rootClassName$14} {
|
|
3116
3121
|
background: ${theme.palette.figma.background.level1.white};
|
|
3117
3122
|
|
|
3118
3123
|
.dot-li {
|
|
@@ -3208,7 +3213,7 @@ const DotMenuList = forwardRef(({
|
|
|
3208
3213
|
onSubMenuCreate,
|
|
3209
3214
|
selectedKey
|
|
3210
3215
|
}, ref) => {
|
|
3211
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3216
|
+
const rootClasses = useStylesWithRootClass(rootClassName$14, className);
|
|
3212
3217
|
const [activeSubmenu, setActiveSubmenu] = useState(null);
|
|
3213
3218
|
const [subItemAnchorEl, setSubItemAnchorEl] = useState(null);
|
|
3214
3219
|
const openSubmenu = (target, itemKey) => {
|
|
@@ -3319,7 +3324,7 @@ const DotMenu = ({
|
|
|
3319
3324
|
open = false,
|
|
3320
3325
|
selectedKey
|
|
3321
3326
|
}) => {
|
|
3322
|
-
const rootClasses = useStylesWithRootClass(rootClassName
|
|
3327
|
+
const rootClasses = useStylesWithRootClass(rootClassName$15, className, loading ? 'loading' : '');
|
|
3323
3328
|
const isSubmenu = checkIfSubmenu(anchorEl);
|
|
3324
3329
|
const hasSubItems = checkForSubItems(menuItems);
|
|
3325
3330
|
// Timeout object is customizable when Menu component is either submenu
|
|
@@ -3407,12 +3412,12 @@ const DotMenu = ({
|
|
|
3407
3412
|
});
|
|
3408
3413
|
};
|
|
3409
3414
|
|
|
3410
|
-
const rootClassName$
|
|
3415
|
+
const rootClassName$13 = 'dot-drawer';
|
|
3411
3416
|
const StyledDrawer = styled(Drawer)`
|
|
3412
3417
|
${({
|
|
3413
3418
|
theme
|
|
3414
3419
|
}) => css`
|
|
3415
|
-
&.${rootClassName$
|
|
3420
|
+
&.${rootClassName$13} .MuiBackdrop-root {
|
|
3416
3421
|
background-color: ${theme.palette.figma.overlay.default};
|
|
3417
3422
|
}
|
|
3418
3423
|
|
|
@@ -3431,12 +3436,12 @@ const StyledDrawer = styled(Drawer)`
|
|
|
3431
3436
|
`}
|
|
3432
3437
|
`;
|
|
3433
3438
|
|
|
3434
|
-
const rootClassName$
|
|
3439
|
+
const rootClassName$12 = 'dot-drawer-header';
|
|
3435
3440
|
const StyleDrawerHeader = styled.div`
|
|
3436
3441
|
${({
|
|
3437
3442
|
theme
|
|
3438
3443
|
}) => css`
|
|
3439
|
-
&.${rootClassName$
|
|
3444
|
+
&.${rootClassName$12} {
|
|
3440
3445
|
padding: ${theme.spacing(0, 0, 2)};
|
|
3441
3446
|
display: flex;
|
|
3442
3447
|
align-items: center;
|
|
@@ -3447,13 +3452,13 @@ const StyleDrawerHeader = styled.div`
|
|
|
3447
3452
|
`}
|
|
3448
3453
|
`;
|
|
3449
3454
|
|
|
3450
|
-
const rootClassName$
|
|
3455
|
+
const rootClassName$11 = 'dot-icon-btn';
|
|
3451
3456
|
const StyledIconButton = styled(IconButton)`
|
|
3452
3457
|
${({
|
|
3453
3458
|
theme,
|
|
3454
3459
|
color
|
|
3455
3460
|
}) => css`
|
|
3456
|
-
&.${rootClassName$
|
|
3461
|
+
&.${rootClassName$11} {
|
|
3457
3462
|
${color === 'inherit' ? css`
|
|
3458
3463
|
color: inherit;
|
|
3459
3464
|
` : ''}
|
|
@@ -3512,7 +3517,7 @@ const DotIconButton = ({
|
|
|
3512
3517
|
ariaRole = 'button',
|
|
3513
3518
|
className,
|
|
3514
3519
|
color = 'inherit',
|
|
3515
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
3520
|
+
'data-pendoid': dataPendoId = rootClassName$11,
|
|
3516
3521
|
'data-testid': dataTestId,
|
|
3517
3522
|
disableRipple = false,
|
|
3518
3523
|
disabled = false,
|
|
@@ -3525,7 +3530,7 @@ const DotIconButton = ({
|
|
|
3525
3530
|
tooltipPlacement
|
|
3526
3531
|
}) => {
|
|
3527
3532
|
const rippleClassName = disableRipple ? 'ripple-disabled' : '';
|
|
3528
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3533
|
+
const rootClasses = useStylesWithRootClass(rootClassName$11, rippleClassName, `shape-${shape}`, className);
|
|
3529
3534
|
return jsx(DotTooltip, {
|
|
3530
3535
|
"data-testid": "icon-button-tooltip",
|
|
3531
3536
|
placement: tooltipPlacement,
|
|
@@ -3560,7 +3565,7 @@ const DotDrawerHeader = ({
|
|
|
3560
3565
|
onClose,
|
|
3561
3566
|
variant
|
|
3562
3567
|
}) => {
|
|
3563
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3568
|
+
const rootClasses = useStylesWithRootClass(rootClassName$12, className);
|
|
3564
3569
|
return jsxs(StyleDrawerHeader, {
|
|
3565
3570
|
"aria-label": ariaLabel,
|
|
3566
3571
|
"aria-level": 2,
|
|
@@ -3577,10 +3582,10 @@ const DotDrawerHeader = ({
|
|
|
3577
3582
|
});
|
|
3578
3583
|
};
|
|
3579
3584
|
|
|
3580
|
-
const rootClassName$
|
|
3585
|
+
const rootClassName$10 = 'dot-drawer-body';
|
|
3581
3586
|
const StyleDrawerBody = styled.div`
|
|
3582
3587
|
${() => css`
|
|
3583
|
-
&.${rootClassName$
|
|
3588
|
+
&.${rootClassName$10} {
|
|
3584
3589
|
display: flex;
|
|
3585
3590
|
.dot-drawer-close-button {
|
|
3586
3591
|
align-self: self-start;
|
|
@@ -3601,7 +3606,7 @@ const DotDrawerBody = ({
|
|
|
3601
3606
|
onClose,
|
|
3602
3607
|
variant
|
|
3603
3608
|
}) => {
|
|
3604
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3609
|
+
const rootClasses = useStylesWithRootClass(rootClassName$10, className);
|
|
3605
3610
|
return jsxs(StyleDrawerBody, {
|
|
3606
3611
|
"aria-label": ariaLabel,
|
|
3607
3612
|
className: rootClasses,
|
|
@@ -3616,12 +3621,12 @@ const DotDrawerBody = ({
|
|
|
3616
3621
|
});
|
|
3617
3622
|
};
|
|
3618
3623
|
|
|
3619
|
-
const rootClassName
|
|
3624
|
+
const rootClassName$$ = 'dot-drawer-footer';
|
|
3620
3625
|
const StyleDrawerFooter = styled.div`
|
|
3621
3626
|
${({
|
|
3622
3627
|
theme
|
|
3623
3628
|
}) => css`
|
|
3624
|
-
&.${rootClassName
|
|
3629
|
+
&.${rootClassName$$} {
|
|
3625
3630
|
padding: ${theme.spacing(2, 0, 0)};
|
|
3626
3631
|
}
|
|
3627
3632
|
`}
|
|
@@ -3634,7 +3639,7 @@ const DotDrawerFooter = ({
|
|
|
3634
3639
|
className,
|
|
3635
3640
|
'data-testid': dataTestId
|
|
3636
3641
|
}) => {
|
|
3637
|
-
const rootClasses = useStylesWithRootClass(rootClassName
|
|
3642
|
+
const rootClasses = useStylesWithRootClass(rootClassName$$, className);
|
|
3638
3643
|
return jsx(StyleDrawerFooter, {
|
|
3639
3644
|
"aria-label": ariaLabel,
|
|
3640
3645
|
className: rootClasses,
|
|
@@ -3650,7 +3655,7 @@ const DotDrawer = ({
|
|
|
3650
3655
|
ariaRole = 'dialog',
|
|
3651
3656
|
className,
|
|
3652
3657
|
children,
|
|
3653
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
3658
|
+
'data-pendoid': dataPendoId = rootClassName$13,
|
|
3654
3659
|
'data-testid': dataTestId,
|
|
3655
3660
|
drawerBodyProps,
|
|
3656
3661
|
drawerFooterProps,
|
|
@@ -3673,7 +3678,7 @@ const DotDrawer = ({
|
|
|
3673
3678
|
onClose(event);
|
|
3674
3679
|
}
|
|
3675
3680
|
};
|
|
3676
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3681
|
+
const rootClasses = useStylesWithRootClass(rootClassName$13, className);
|
|
3677
3682
|
const backdropEnabled = variant === 'temporary' && !(ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.hideBackdrop);
|
|
3678
3683
|
const headerExists = !!drawerHeaderProps;
|
|
3679
3684
|
const bodyPendoId = drawerBodyProps ? drawerBodyProps['data-pendoid'] : 'drawer-body';
|
|
@@ -3755,6 +3760,14 @@ const styledListItemElement = elementType => {
|
|
|
3755
3760
|
theme
|
|
3756
3761
|
}) => css`
|
|
3757
3762
|
&.${listItemRootClass} {
|
|
3763
|
+
&.open {
|
|
3764
|
+
.dot-typography {
|
|
3765
|
+
font-weight: bold;
|
|
3766
|
+
}
|
|
3767
|
+
|
|
3768
|
+
background-color: ${theme.palette.figma.primary.light};
|
|
3769
|
+
}
|
|
3770
|
+
|
|
3758
3771
|
& > span:first-of-type {
|
|
3759
3772
|
display: flex;
|
|
3760
3773
|
width: 100%;
|
|
@@ -3926,6 +3939,7 @@ const DotListItem = ({
|
|
|
3926
3939
|
isOpened = false,
|
|
3927
3940
|
onClick,
|
|
3928
3941
|
onKeyDown,
|
|
3942
|
+
onHrefClick,
|
|
3929
3943
|
onMenuLeave,
|
|
3930
3944
|
items = [],
|
|
3931
3945
|
menuPlacement,
|
|
@@ -3974,9 +3988,9 @@ const DotListItem = ({
|
|
|
3974
3988
|
children: text
|
|
3975
3989
|
});
|
|
3976
3990
|
const renderListItemEndIcon = () => {
|
|
3977
|
-
if (hasChildren
|
|
3991
|
+
if (hasChildren && !endIcon) {
|
|
3978
3992
|
return jsx(DotIcon, {
|
|
3979
|
-
iconId:
|
|
3993
|
+
iconId: getChevronIcon(nestedListType, navIsOpened)
|
|
3980
3994
|
});
|
|
3981
3995
|
}
|
|
3982
3996
|
return endIcon;
|
|
@@ -3985,6 +3999,7 @@ const DotListItem = ({
|
|
|
3985
3999
|
ariaLabel: ariaLabel || tooltip,
|
|
3986
4000
|
className: listItemLinkClassName,
|
|
3987
4001
|
href: href,
|
|
4002
|
+
onClick: onHrefClick,
|
|
3988
4003
|
target: target,
|
|
3989
4004
|
underline: "none",
|
|
3990
4005
|
children: [startIcon && jsx(ListItemIcon, {
|
|
@@ -4007,7 +4022,7 @@ const DotListItem = ({
|
|
|
4007
4022
|
onClick: !isLink ? handleClick : null,
|
|
4008
4023
|
onKeyDown: onKeyDown,
|
|
4009
4024
|
role: ariaRole,
|
|
4010
|
-
selected: isFlyout ?
|
|
4025
|
+
selected: isFlyout ? false : selected,
|
|
4011
4026
|
tabIndex: isLink ? -1 : 0,
|
|
4012
4027
|
target: target,
|
|
4013
4028
|
children: jsx(DotTooltip, {
|
|
@@ -4061,7 +4076,7 @@ const DotList = ({
|
|
|
4061
4076
|
nestedListType = 'expandable',
|
|
4062
4077
|
width = 240
|
|
4063
4078
|
}) => {
|
|
4064
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4079
|
+
const rootClasses = useStylesWithRootClass(rootClassName$18, className);
|
|
4065
4080
|
const listWidth = typeof width === 'number' ? `${width}px` : width;
|
|
4066
4081
|
const listRef = useRef();
|
|
4067
4082
|
const [listItemIndex, setListItemIndex] = useState(null);
|
|
@@ -4071,6 +4086,9 @@ const DotList = ({
|
|
|
4071
4086
|
const handleClickAway = () => {
|
|
4072
4087
|
setListItemIndex(null);
|
|
4073
4088
|
};
|
|
4089
|
+
const handleHrefClick = index => () => {
|
|
4090
|
+
updateSelectedListItem(index);
|
|
4091
|
+
};
|
|
4074
4092
|
return jsx(DotClickAwayListener, {
|
|
4075
4093
|
onClickAway: handleClickAway,
|
|
4076
4094
|
children: jsxs(StyledList, {
|
|
@@ -4136,6 +4154,7 @@ const DotList = ({
|
|
|
4136
4154
|
nestedDrawerLeftSpacing: nestedDrawerLeftSpacing,
|
|
4137
4155
|
nestedListType: nestedListType,
|
|
4138
4156
|
onClick: determineOnClick,
|
|
4157
|
+
onHrefClick: item.href ? handleHrefClick(index) : undefined,
|
|
4139
4158
|
onMenuLeave: handleMenuLeave,
|
|
4140
4159
|
primaryText: item.primaryText,
|
|
4141
4160
|
secondaryText: item.secondaryText,
|
|
@@ -4151,12 +4170,12 @@ const DotList = ({
|
|
|
4151
4170
|
});
|
|
4152
4171
|
};
|
|
4153
4172
|
|
|
4154
|
-
const rootClassName$
|
|
4173
|
+
const rootClassName$_ = 'dot-copy-button';
|
|
4155
4174
|
const StyledCopyButton = styled.span`
|
|
4156
4175
|
${({
|
|
4157
4176
|
theme
|
|
4158
4177
|
}) => css`
|
|
4159
|
-
&.${rootClassName$
|
|
4178
|
+
&.${rootClassName$_} .copied-to-clipboard {
|
|
4160
4179
|
color: ${theme.palette.figma.success.normal};
|
|
4161
4180
|
|
|
4162
4181
|
&.MuiIcon-fontSizeSmall.button-size-small {
|
|
@@ -4182,7 +4201,7 @@ const DotCopyButton = ({
|
|
|
4182
4201
|
color = 'inherit',
|
|
4183
4202
|
copiedTooltip = 'Copied!',
|
|
4184
4203
|
copyTooltip = 'Copy to clipboard',
|
|
4185
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
4204
|
+
'data-pendoid': dataPendoId = rootClassName$_,
|
|
4186
4205
|
'data-testid': dataTestId = 'dot-copy-button',
|
|
4187
4206
|
disabled = false,
|
|
4188
4207
|
disableRipple = false,
|
|
@@ -4230,7 +4249,7 @@ const DotCopyButton = ({
|
|
|
4230
4249
|
return false;
|
|
4231
4250
|
}, [value, showCopiedIcon, disabled, onClick]);
|
|
4232
4251
|
return jsxs(StyledCopyButton, {
|
|
4233
|
-
className: rootClassName$
|
|
4252
|
+
className: rootClassName$_,
|
|
4234
4253
|
"data-testid": dataTestId,
|
|
4235
4254
|
children: [!timedShowCopiedIcon && jsx(DotIconButton, {
|
|
4236
4255
|
ariaLabel: ariaLabel,
|
|
@@ -4319,7 +4338,7 @@ const DotInputText = ({
|
|
|
4319
4338
|
autoFocus,
|
|
4320
4339
|
className,
|
|
4321
4340
|
defaultValue,
|
|
4322
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
4341
|
+
'data-pendoid': dataPendoId = rootClassName$1e,
|
|
4323
4342
|
'data-testid': dataTestId,
|
|
4324
4343
|
disabled = false,
|
|
4325
4344
|
error = false,
|
|
@@ -4365,7 +4384,7 @@ const DotInputText = ({
|
|
|
4365
4384
|
const internalInputRef = useRef(null);
|
|
4366
4385
|
const textFieldInputRef = inputRef || internalInputRef;
|
|
4367
4386
|
const [inputTextState, setInputTextState] = useState(getInitialState(value));
|
|
4368
|
-
const rootStyles = useStylesWithRootClass(rootClassName$
|
|
4387
|
+
const rootStyles = useStylesWithRootClass(rootClassName$1e, hasError, hasWarning, hasSuccess, readOnly && readOnlyClassName$1);
|
|
4369
4388
|
useEffect(() => {
|
|
4370
4389
|
if (value !== inputTextState.inputValue) {
|
|
4371
4390
|
setInputTextState(getInitialState(value, defaultValue));
|
|
@@ -4501,10 +4520,10 @@ const DotInputText = ({
|
|
|
4501
4520
|
});
|
|
4502
4521
|
};
|
|
4503
4522
|
|
|
4504
|
-
const rootClassName$
|
|
4523
|
+
const rootClassName$Z = 'dot-search-input';
|
|
4505
4524
|
const StyledSearchInput = styled.span`
|
|
4506
4525
|
${() => css`
|
|
4507
|
-
&.${rootClassName$
|
|
4526
|
+
&.${rootClassName$Z} {
|
|
4508
4527
|
}
|
|
4509
4528
|
`}
|
|
4510
4529
|
`;
|
|
@@ -4521,7 +4540,7 @@ function SearchInput({
|
|
|
4521
4540
|
tooltip = null,
|
|
4522
4541
|
value
|
|
4523
4542
|
}) {
|
|
4524
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4543
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Z, className);
|
|
4525
4544
|
const [searchText, setSearchText] = useState(value);
|
|
4526
4545
|
let previousSearchText = '';
|
|
4527
4546
|
const handleChange = useCallback(event => {
|
|
@@ -4777,12 +4796,12 @@ const recentAppInstancesSetter = (latestInstance, maxRecentItems
|
|
|
4777
4796
|
};
|
|
4778
4797
|
};
|
|
4779
4798
|
|
|
4780
|
-
const rootClassName$
|
|
4799
|
+
const rootClassName$Y = 'dot-app-switcher';
|
|
4781
4800
|
const StyledAppSwitcher = styled(DotDrawer)`
|
|
4782
4801
|
${({
|
|
4783
4802
|
theme
|
|
4784
4803
|
}) => css`
|
|
4785
|
-
&.${rootClassName$
|
|
4804
|
+
&.${rootClassName$Y} {
|
|
4786
4805
|
.dot-drawer-paper {
|
|
4787
4806
|
padding: 0;
|
|
4788
4807
|
width: 382px;
|
|
@@ -4892,7 +4911,7 @@ const DotAppSwitcherView = ({
|
|
|
4892
4911
|
if (dotCoreApiContext !== null) {
|
|
4893
4912
|
setSelectedAppType = dotCoreApiContext.setSelectedAppSwitcherAppType;
|
|
4894
4913
|
}
|
|
4895
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4914
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Y, className);
|
|
4896
4915
|
const [appTypeMap, setAppTypeMap] = useState();
|
|
4897
4916
|
const [appTypeLabels, setAppTypeLabels] = useState();
|
|
4898
4917
|
const [appTypeMenuItems, setAppTypeMenuItems] = useState();
|
|
@@ -5270,12 +5289,12 @@ var SvgLogoDigitalAiWhite = function SvgLogoDigitalAiWhite(_ref, ref) {
|
|
|
5270
5289
|
};
|
|
5271
5290
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgLogoDigitalAiWhite);
|
|
5272
5291
|
|
|
5273
|
-
const rootClassName$
|
|
5292
|
+
const rootClassName$X = 'dot-sidebar';
|
|
5274
5293
|
const StyledSidebar = styled.aside`
|
|
5275
5294
|
${({
|
|
5276
5295
|
theme
|
|
5277
5296
|
}) => css`
|
|
5278
|
-
&.${rootClassName$
|
|
5297
|
+
&.${rootClassName$X} {
|
|
5279
5298
|
align-items: stretch;
|
|
5280
5299
|
background: ${theme.palette.figma.background.level1.white};
|
|
5281
5300
|
border-width: 0 1px;
|
|
@@ -5428,7 +5447,7 @@ const StyledSidebar = styled.aside`
|
|
|
5428
5447
|
}
|
|
5429
5448
|
|
|
5430
5449
|
&:hover {
|
|
5431
|
-
background-color: ${theme.palette.figma.overlay.table.
|
|
5450
|
+
background-color: ${theme.palette.figma.overlay.table.hoverRow};
|
|
5432
5451
|
color: ${theme.palette.figma.toggleTabs.text};
|
|
5433
5452
|
|
|
5434
5453
|
.dot-typography,
|
|
@@ -5569,10 +5588,10 @@ const StyledSidebar = styled.aside`
|
|
|
5569
5588
|
`}
|
|
5570
5589
|
`;
|
|
5571
5590
|
|
|
5572
|
-
const rootClassName$
|
|
5591
|
+
const rootClassName$W = 'dot-truncate-with-tooltip';
|
|
5573
5592
|
const StyledTruncateWithTooltip = styled(Tooltip)`
|
|
5574
5593
|
${() => css`
|
|
5575
|
-
&.${rootClassName$
|
|
5594
|
+
&.${rootClassName$W} {
|
|
5576
5595
|
display: block;
|
|
5577
5596
|
overflow: hidden;
|
|
5578
5597
|
white-space: nowrap;
|
|
@@ -5603,7 +5622,7 @@ const DotTruncateWithTooltip = ({
|
|
|
5603
5622
|
label,
|
|
5604
5623
|
width
|
|
5605
5624
|
}) => {
|
|
5606
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5625
|
+
const rootClasses = useStylesWithRootClass(rootClassName$W, className, charactersLimit ? 'dot-characters-limit' : '');
|
|
5607
5626
|
return jsx(StyledTruncateWithTooltip, {
|
|
5608
5627
|
"aria-label": ariaLabel,
|
|
5609
5628
|
arrow: arrow,
|
|
@@ -5726,7 +5745,7 @@ const DotSidebar = ({
|
|
|
5726
5745
|
};
|
|
5727
5746
|
}, [isOpen]);
|
|
5728
5747
|
const sidebarClasses = useStylesWithRootClass('side-nav', openClass);
|
|
5729
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5748
|
+
const rootClasses = useStylesWithRootClass(rootClassName$X, openClass, className);
|
|
5730
5749
|
return jsxs(StyledSidebar, {
|
|
5731
5750
|
"aria-label": ariaLabel,
|
|
5732
5751
|
className: rootClasses,
|
|
@@ -5794,12 +5813,12 @@ const DotSidebar = ({
|
|
|
5794
5813
|
});
|
|
5795
5814
|
};
|
|
5796
5815
|
|
|
5797
|
-
const rootClassName$
|
|
5816
|
+
const rootClassName$V = 'dot-badge';
|
|
5798
5817
|
const StyledBadge = styled(Badge)`
|
|
5799
5818
|
${({
|
|
5800
5819
|
theme
|
|
5801
5820
|
}) => css`
|
|
5802
|
-
&.${rootClassName$
|
|
5821
|
+
&.${rootClassName$V} {
|
|
5803
5822
|
color: ${theme.palette.figma.typography.black};
|
|
5804
5823
|
word-break: normal;
|
|
5805
5824
|
|
|
@@ -5834,7 +5853,7 @@ const DotBadge = ({
|
|
|
5834
5853
|
overlap,
|
|
5835
5854
|
variant = 'dot'
|
|
5836
5855
|
}) => {
|
|
5837
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5856
|
+
const rootClasses = useStylesWithRootClass(rootClassName$V, className);
|
|
5838
5857
|
return jsx(StyledBadge, {
|
|
5839
5858
|
"$badgeColor": badgeColor,
|
|
5840
5859
|
anchorOrigin: {
|
|
@@ -5856,7 +5875,7 @@ const DotBadge = ({
|
|
|
5856
5875
|
});
|
|
5857
5876
|
};
|
|
5858
5877
|
|
|
5859
|
-
const rootClassName$
|
|
5878
|
+
const rootClassName$U = 'dot-app-toolbar';
|
|
5860
5879
|
const denseClassName = 'dense';
|
|
5861
5880
|
const StyledMainMenu = styled(DotDrawer)`
|
|
5862
5881
|
${({
|
|
@@ -5896,7 +5915,7 @@ const StyledAppToolbar = styled.header`
|
|
|
5896
5915
|
${({
|
|
5897
5916
|
theme
|
|
5898
5917
|
}) => css`
|
|
5899
|
-
&.${rootClassName$
|
|
5918
|
+
&.${rootClassName$U} {
|
|
5900
5919
|
align-items: center;
|
|
5901
5920
|
background: ${theme.palette.figma.appToolbar.background};
|
|
5902
5921
|
border-bottom: 4px solid ${theme.palette.figma.border.default};
|
|
@@ -6018,7 +6037,7 @@ const DotAppToolbar = ({
|
|
|
6018
6037
|
const displayAppLogo = appLogo || appLogoSmall;
|
|
6019
6038
|
const mainMenuRef = useRef(null);
|
|
6020
6039
|
const denseClass = dense ? denseClassName : '';
|
|
6021
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6040
|
+
const rootClasses = useStylesWithRootClass(rootClassName$U, className, denseClass, showMainMenu ? '' : 'without-menu-icon');
|
|
6022
6041
|
const mainMenuClasses = useStylesWithRootClass('dot-main-menu', denseClass, menuOpen ? 'open' : '');
|
|
6023
6042
|
const targetBreakpoint = useMediaQuery(theme => theme.breakpoints.up('lg'));
|
|
6024
6043
|
useEffect(() => {
|
|
@@ -6148,14 +6167,14 @@ const DotAppToolbar = ({
|
|
|
6148
6167
|
}) : appToolbar;
|
|
6149
6168
|
};
|
|
6150
6169
|
|
|
6151
|
-
const rootClassName$
|
|
6170
|
+
const rootClassName$T = 'dot-autocomplete';
|
|
6152
6171
|
const inputRootClassName = 'dot-input-root';
|
|
6153
6172
|
const inputMediumClassName = 'dot-input-medium';
|
|
6154
6173
|
const StyledAutocomplete = styled(Autocomplete)`
|
|
6155
6174
|
${({
|
|
6156
6175
|
theme
|
|
6157
6176
|
}) => css`
|
|
6158
|
-
&.${rootClassName$
|
|
6177
|
+
&.${rootClassName$T} {
|
|
6159
6178
|
&.${inputMediumClassName} .dot-text-field .${inputRootClassName} {
|
|
6160
6179
|
height: 56px;
|
|
6161
6180
|
padding-left: ${theme.spacing(2)};
|
|
@@ -6168,8 +6187,8 @@ const StyledAutocomplete = styled(Autocomplete)`
|
|
|
6168
6187
|
|
|
6169
6188
|
.${inputRootClassName} {
|
|
6170
6189
|
/* Override only top/bottom, but preserve left/right padding */
|
|
6171
|
-
padding-top: ${theme.spacing(
|
|
6172
|
-
padding-bottom: ${theme.spacing(
|
|
6190
|
+
padding-top: ${theme.spacing(1)};
|
|
6191
|
+
padding-bottom: ${theme.spacing(1)};
|
|
6173
6192
|
}
|
|
6174
6193
|
|
|
6175
6194
|
.dot-chip:first-child {
|
|
@@ -6192,12 +6211,12 @@ const StyledAutocomplete = styled(Autocomplete)`
|
|
|
6192
6211
|
`}
|
|
6193
6212
|
`;
|
|
6194
6213
|
|
|
6195
|
-
const rootClassName$
|
|
6214
|
+
const rootClassName$S = 'dot-chip';
|
|
6196
6215
|
const StyledChip = styled(Chip)`
|
|
6197
6216
|
${({
|
|
6198
6217
|
theme
|
|
6199
6218
|
}) => css`
|
|
6200
|
-
&.${rootClassName$
|
|
6219
|
+
&.${rootClassName$S} {
|
|
6201
6220
|
background: ${theme.palette.figma.neutral.normal};
|
|
6202
6221
|
border-color: ${theme.palette.figma.border.darker};
|
|
6203
6222
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -6303,7 +6322,7 @@ const DotChip = ({
|
|
|
6303
6322
|
charactersLimit = DEFAULT_CHARACTERS_LIMIT,
|
|
6304
6323
|
children,
|
|
6305
6324
|
className,
|
|
6306
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
6325
|
+
'data-pendoid': dataPendoId = rootClassName$S,
|
|
6307
6326
|
'data-testid': dataTestId,
|
|
6308
6327
|
disabled = false,
|
|
6309
6328
|
error = false,
|
|
@@ -6316,7 +6335,7 @@ const DotChip = ({
|
|
|
6316
6335
|
tabIndex
|
|
6317
6336
|
}) => {
|
|
6318
6337
|
const errorClass = error ? 'Mui-error' : '';
|
|
6319
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6338
|
+
const rootClasses = useStylesWithRootClass(rootClassName$S, className, errorClass);
|
|
6320
6339
|
const getChipLabel = () => {
|
|
6321
6340
|
if (charactersLimit <= 0 || children.length < charactersLimit) return children;
|
|
6322
6341
|
const label = `${children.substring(0, charactersLimit)}...`;
|
|
@@ -6416,7 +6435,7 @@ const DotAutoComplete = ({
|
|
|
6416
6435
|
autoFocus,
|
|
6417
6436
|
autoHighlight,
|
|
6418
6437
|
className,
|
|
6419
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
6438
|
+
'data-pendoid': dataPendoId = rootClassName$T,
|
|
6420
6439
|
'data-testid': dataTestId,
|
|
6421
6440
|
defaultValue,
|
|
6422
6441
|
dense = true,
|
|
@@ -6468,10 +6487,10 @@ const DotAutoComplete = ({
|
|
|
6468
6487
|
const popperOpen = !readOnly && (open || isOpened);
|
|
6469
6488
|
const preventDuplicateInsertion = actionItem === null || actionItem === void 0 ? void 0 : actionItem.preventDuplicateInsertion;
|
|
6470
6489
|
const textFieldWarningClassName = !error && warning && warningClassName;
|
|
6471
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6472
|
-
const textFieldRootClasses = useStylesWithRootClass(rootClassName$
|
|
6490
|
+
const rootClasses = useStylesWithRootClass(rootClassName$T, size === 'medium' && inputMediumClassName, className);
|
|
6491
|
+
const textFieldRootClasses = useStylesWithRootClass(rootClassName$1e, readOnly && readOnlyClassName$1, textFieldWarningClassName);
|
|
6473
6492
|
const inputRootClasses = useStylesWithRootClass(inputRootClassName, !dense && inputMediumClassName);
|
|
6474
|
-
const popperClasses = useStylesWithRootClass(rootClassName$
|
|
6493
|
+
const popperClasses = useStylesWithRootClass(rootClassName$16, popperClassName);
|
|
6475
6494
|
let highlightedOption = null;
|
|
6476
6495
|
let textFieldInput;
|
|
6477
6496
|
const textFieldRef = element => {
|
|
@@ -6748,10 +6767,10 @@ const DotAutoComplete = ({
|
|
|
6748
6767
|
});
|
|
6749
6768
|
};
|
|
6750
6769
|
|
|
6751
|
-
const rootClassName$
|
|
6770
|
+
const rootClassName$R = 'dot-avatar-group';
|
|
6752
6771
|
const StyledAvatarGroup = styled(AvatarGroup)`
|
|
6753
6772
|
${() => css`
|
|
6754
|
-
&.${rootClassName$
|
|
6773
|
+
&.${rootClassName$R} {
|
|
6755
6774
|
justify-content: flex-end;
|
|
6756
6775
|
|
|
6757
6776
|
.MuiAvatar-root {
|
|
@@ -6770,7 +6789,7 @@ const DotAvatarGroup = ({
|
|
|
6770
6789
|
max = 3,
|
|
6771
6790
|
spacing = 'medium'
|
|
6772
6791
|
}) => {
|
|
6773
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6792
|
+
const rootClasses = useStylesWithRootClass(rootClassName$R, className);
|
|
6774
6793
|
return jsx(StyledAvatarGroup, {
|
|
6775
6794
|
"aria-label": ariaLabel,
|
|
6776
6795
|
classes: {
|
|
@@ -6785,13 +6804,13 @@ const DotAvatarGroup = ({
|
|
|
6785
6804
|
});
|
|
6786
6805
|
};
|
|
6787
6806
|
|
|
6788
|
-
const rootClassName$
|
|
6807
|
+
const rootClassName$Q = 'dot-breadcrumbs';
|
|
6789
6808
|
const breadcrumbsWrapperClass = 'dot-breadcrumbs-wrapper';
|
|
6790
6809
|
const StyledBreadcrumbsWrapper = styled.div`
|
|
6791
6810
|
${({
|
|
6792
6811
|
theme
|
|
6793
6812
|
}) => css`
|
|
6794
|
-
&.${rootClassName$
|
|
6813
|
+
&.${rootClassName$Q} {
|
|
6795
6814
|
overflow: hidden;
|
|
6796
6815
|
|
|
6797
6816
|
.dot-breadcrumbs-menu {
|
|
@@ -6811,7 +6830,7 @@ const StyledBreadcrumbs = styled(Breadcrumbs)`
|
|
|
6811
6830
|
${({
|
|
6812
6831
|
theme
|
|
6813
6832
|
}) => css`
|
|
6814
|
-
&.${rootClassName$
|
|
6833
|
+
&.${rootClassName$Q} {
|
|
6815
6834
|
margin-bottom: 0;
|
|
6816
6835
|
|
|
6817
6836
|
.MuiBreadcrumbs-ol {
|
|
@@ -7139,7 +7158,7 @@ const DotBreadcrumbs = ({
|
|
|
7139
7158
|
children: [jsx(StyledBreadcrumbs, {
|
|
7140
7159
|
"aria-label": "breadcrumb",
|
|
7141
7160
|
classes: {
|
|
7142
|
-
root: rootClassName$
|
|
7161
|
+
root: rootClassName$Q,
|
|
7143
7162
|
ol: 'dot-ol',
|
|
7144
7163
|
li: 'dot-li'
|
|
7145
7164
|
},
|
|
@@ -7170,14 +7189,14 @@ const DotBreadcrumbs = ({
|
|
|
7170
7189
|
});
|
|
7171
7190
|
};
|
|
7172
7191
|
|
|
7173
|
-
const rootClassName$
|
|
7192
|
+
const rootClassName$P = 'dot-button-toggle';
|
|
7174
7193
|
// TODO: need to update ripple color
|
|
7175
7194
|
// https://github.com/mui/material-ui/issues/28543
|
|
7176
7195
|
const StyledToggleButtonGroup = styled(ToggleButtonGroup)`
|
|
7177
7196
|
${({
|
|
7178
7197
|
theme
|
|
7179
7198
|
}) => css`
|
|
7180
|
-
&.${rootClassName$
|
|
7199
|
+
&.${rootClassName$P} {
|
|
7181
7200
|
button:not(.MuiToggleButton-sizeLarge):not(.MuiToggleButton-sizeSmall) {
|
|
7182
7201
|
/* Override height for medium size */
|
|
7183
7202
|
height: ${theme.spacing(5)};
|
|
@@ -7293,7 +7312,7 @@ const DotButtonToggle = ({
|
|
|
7293
7312
|
buttonOptions,
|
|
7294
7313
|
className,
|
|
7295
7314
|
color,
|
|
7296
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
7315
|
+
'data-pendoid': dataPendoId = rootClassName$P,
|
|
7297
7316
|
'data-testid': dataTestId = 'dot-toggle',
|
|
7298
7317
|
disableFocusRipple = false,
|
|
7299
7318
|
disableRipple = false,
|
|
@@ -7303,7 +7322,7 @@ const DotButtonToggle = ({
|
|
|
7303
7322
|
size = 'medium',
|
|
7304
7323
|
value
|
|
7305
7324
|
}) => {
|
|
7306
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7325
|
+
const rootClasses = useStylesWithRootClass(rootClassName$P, className);
|
|
7307
7326
|
const renderToggleButton = ({
|
|
7308
7327
|
ariaLabel: optionAriaLabel,
|
|
7309
7328
|
badgeContent: optionBadgeContent,
|
|
@@ -7386,12 +7405,12 @@ const TooltipToggleButton = forwardRef((_a, ref) => {
|
|
|
7386
7405
|
}));
|
|
7387
7406
|
});
|
|
7388
7407
|
|
|
7389
|
-
const rootClassName$
|
|
7408
|
+
const rootClassName$O = 'dot-card';
|
|
7390
7409
|
const StyledCard = styled(Card)`
|
|
7391
7410
|
${({
|
|
7392
7411
|
theme
|
|
7393
7412
|
}) => css`
|
|
7394
|
-
&.${rootClassName$
|
|
7413
|
+
&.${rootClassName$O} {
|
|
7395
7414
|
background-color: ${theme.palette.figma.background.level1.white};
|
|
7396
7415
|
}
|
|
7397
7416
|
`}
|
|
@@ -7403,7 +7422,7 @@ const DotCard = ({
|
|
|
7403
7422
|
className,
|
|
7404
7423
|
'data-testid': dataTestId
|
|
7405
7424
|
}) => {
|
|
7406
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7425
|
+
const rootClasses = useStylesWithRootClass(rootClassName$O, className);
|
|
7407
7426
|
return jsx(StyledCard, {
|
|
7408
7427
|
"aria-label": ariaLabel,
|
|
7409
7428
|
classes: {
|
|
@@ -7432,12 +7451,12 @@ const DotCardContent = ({
|
|
|
7432
7451
|
});
|
|
7433
7452
|
};
|
|
7434
7453
|
|
|
7435
|
-
const rootClassName$
|
|
7454
|
+
const rootClassName$N = 'dot-card-footer';
|
|
7436
7455
|
const StyledDiv = styled.div`
|
|
7437
7456
|
${({
|
|
7438
7457
|
theme
|
|
7439
7458
|
}) => css`
|
|
7440
|
-
&.${rootClassName$
|
|
7459
|
+
&.${rootClassName$N} {
|
|
7441
7460
|
padding: ${theme.spacing(2)};
|
|
7442
7461
|
}
|
|
7443
7462
|
`}
|
|
@@ -7449,7 +7468,7 @@ const DotCardFooter = ({
|
|
|
7449
7468
|
className,
|
|
7450
7469
|
'data-testid': dataTestId
|
|
7451
7470
|
}) => {
|
|
7452
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7471
|
+
const rootClasses = useStylesWithRootClass(rootClassName$N, className);
|
|
7453
7472
|
return jsx(StyledDiv, {
|
|
7454
7473
|
"aria-label": ariaLabel,
|
|
7455
7474
|
className: rootClasses,
|
|
@@ -7493,9 +7512,9 @@ const DotCardHeader = ({
|
|
|
7493
7512
|
});
|
|
7494
7513
|
};
|
|
7495
7514
|
|
|
7496
|
-
const rootClassName$
|
|
7515
|
+
const rootClassName$M = 'dot-form-control-label';
|
|
7497
7516
|
const StyledFormControlLabel = styled(FormControlLabel)`
|
|
7498
|
-
&.${rootClassName$
|
|
7517
|
+
&.${rootClassName$M} {
|
|
7499
7518
|
.MuiFormControlLabel-label {
|
|
7500
7519
|
margin-bottom: 0;
|
|
7501
7520
|
padding: 0 0 0 4px;
|
|
@@ -7518,12 +7537,12 @@ const StyledFormControlLabel = styled(FormControlLabel)`
|
|
|
7518
7537
|
}
|
|
7519
7538
|
`;
|
|
7520
7539
|
|
|
7521
|
-
const rootClassName$
|
|
7540
|
+
const rootClassName$L = 'dot-checkbox';
|
|
7522
7541
|
const StyledCheckbox = styled(Checkbox)`
|
|
7523
7542
|
${({
|
|
7524
7543
|
theme
|
|
7525
7544
|
}) => css`
|
|
7526
|
-
&.${rootClassName$
|
|
7545
|
+
&.${rootClassName$L} {
|
|
7527
7546
|
padding: ${theme.spacing(1)};
|
|
7528
7547
|
|
|
7529
7548
|
&.MuiCheckbox-indeterminate {
|
|
@@ -7542,7 +7561,7 @@ function DotCheckbox({
|
|
|
7542
7561
|
ariaLabelledby,
|
|
7543
7562
|
checked,
|
|
7544
7563
|
className,
|
|
7545
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
7564
|
+
'data-pendoid': dataPendoId = rootClassName$M,
|
|
7546
7565
|
'data-testid': dataTestId,
|
|
7547
7566
|
disabled,
|
|
7548
7567
|
disableRipple,
|
|
@@ -7557,14 +7576,14 @@ function DotCheckbox({
|
|
|
7557
7576
|
size = 'medium',
|
|
7558
7577
|
value
|
|
7559
7578
|
}) {
|
|
7560
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7579
|
+
const rootClasses = useStylesWithRootClass(rootClassName$M, className);
|
|
7561
7580
|
const handleChange = event => {
|
|
7562
7581
|
onChange && onChange(event, event.target.value);
|
|
7563
7582
|
};
|
|
7564
7583
|
const checkboxControl = jsx(StyledCheckbox, {
|
|
7565
7584
|
checked: checked,
|
|
7566
7585
|
classes: {
|
|
7567
|
-
root: rootClassName$
|
|
7586
|
+
root: rootClassName$L
|
|
7568
7587
|
},
|
|
7569
7588
|
color: "primary",
|
|
7570
7589
|
"data-pendoid": dataPendoId,
|
|
@@ -7593,13 +7612,13 @@ function DotCheckbox({
|
|
|
7593
7612
|
});
|
|
7594
7613
|
}
|
|
7595
7614
|
|
|
7596
|
-
const rootClassName$
|
|
7615
|
+
const rootClassName$K = 'dot-form-group';
|
|
7597
7616
|
const groupLabelClassName = 'dot-form-group-label';
|
|
7598
7617
|
const startAdornmentClassName = 'dot-start-adornment';
|
|
7599
7618
|
const endAdornmentClassName = 'dot-end-adornment';
|
|
7600
7619
|
const placementClassName = 'dot-';
|
|
7601
7620
|
const StyledFormControl = styled(FormControl)`
|
|
7602
|
-
&.${rootClassName$
|
|
7621
|
+
&.${rootClassName$K} {
|
|
7603
7622
|
.MuiFormLabel-root {
|
|
7604
7623
|
width: 100%;
|
|
7605
7624
|
line-height: 24px;
|
|
@@ -7630,7 +7649,7 @@ const StyledFormControl = styled(FormControl)`
|
|
|
7630
7649
|
}
|
|
7631
7650
|
`;
|
|
7632
7651
|
|
|
7633
|
-
const rootClassName$
|
|
7652
|
+
const rootClassName$J = 'dot-checkbox-group';
|
|
7634
7653
|
const wrapperClassName$1 = 'dot-checkbox-group-wrapper';
|
|
7635
7654
|
const checkboxListClassName = 'dot-checkbox-list';
|
|
7636
7655
|
const checkboxListItemClassName = 'dot-checkbox-list-item';
|
|
@@ -7639,13 +7658,17 @@ const StyledCheckboxGroup = styled.div`
|
|
|
7639
7658
|
theme
|
|
7640
7659
|
}) => css`{
|
|
7641
7660
|
&.${wrapperClassName$1} {
|
|
7642
|
-
.${rootClassName$
|
|
7661
|
+
.${rootClassName$J} {
|
|
7643
7662
|
width: 100%;
|
|
7644
7663
|
}
|
|
7645
7664
|
|
|
7646
7665
|
.MuiFormLabel-root {
|
|
7647
7666
|
display: inline;
|
|
7648
7667
|
width: 100%;
|
|
7668
|
+
font-weight: ${theme.typography.subtitle2.fontWeight};
|
|
7669
|
+
&:not(.Mui-error) {
|
|
7670
|
+
color: ${theme.palette.figma.typography.black};
|
|
7671
|
+
}
|
|
7649
7672
|
}
|
|
7650
7673
|
|
|
7651
7674
|
.MuiFormHelperText-root {
|
|
@@ -7662,7 +7685,7 @@ const StyledCheckboxGroup = styled.div`
|
|
|
7662
7685
|
margin-top: 0;
|
|
7663
7686
|
padding-left: ${theme.spacing(2.5)};
|
|
7664
7687
|
|
|
7665
|
-
.${rootClassName$
|
|
7688
|
+
.${rootClassName$M} {
|
|
7666
7689
|
margin: 0;
|
|
7667
7690
|
}
|
|
7668
7691
|
}
|
|
@@ -7670,13 +7693,13 @@ const StyledCheckboxGroup = styled.div`
|
|
|
7670
7693
|
`}
|
|
7671
7694
|
`;
|
|
7672
7695
|
|
|
7673
|
-
const rootClassName$
|
|
7696
|
+
const rootClassName$I = 'dot-form-group';
|
|
7674
7697
|
const StyledFormGroup = styled(FormGroup)`
|
|
7675
7698
|
${({
|
|
7676
7699
|
theme,
|
|
7677
7700
|
row
|
|
7678
7701
|
}) => css`
|
|
7679
|
-
&.${rootClassName$
|
|
7702
|
+
&.${rootClassName$I} > * {
|
|
7680
7703
|
margin: ${row ? `${theme.spacing(0.5)}` : 0};
|
|
7681
7704
|
}
|
|
7682
7705
|
`}
|
|
@@ -7689,7 +7712,7 @@ function DotFormGroup({
|
|
|
7689
7712
|
'data-testid': dataTestId,
|
|
7690
7713
|
row
|
|
7691
7714
|
}) {
|
|
7692
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7715
|
+
const rootClasses = useStylesWithRootClass(rootClassName$K, className);
|
|
7693
7716
|
return jsx(StyledFormGroup, {
|
|
7694
7717
|
"aria-label": ariaLabel,
|
|
7695
7718
|
classes: {
|
|
@@ -7728,7 +7751,7 @@ function DotCheckboxGroup({
|
|
|
7728
7751
|
size = 'medium'
|
|
7729
7752
|
}) {
|
|
7730
7753
|
const placement = `${placementClassName}${labelPlacement}`;
|
|
7731
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7754
|
+
const rootClasses = useStylesWithRootClass(rootClassName$K, rootClassName$J, className, placement);
|
|
7732
7755
|
const [selectedOptions, setSelectedOptions] = useState(defaultValues);
|
|
7733
7756
|
const [allChecked, setAllChecked] = useState(false);
|
|
7734
7757
|
/* This will ensure that state can be updated from the outside */
|
|
@@ -7813,12 +7836,12 @@ function DotCheckboxGroup({
|
|
|
7813
7836
|
});
|
|
7814
7837
|
}
|
|
7815
7838
|
|
|
7816
|
-
const rootClassName$
|
|
7839
|
+
const rootClassName$H = 'dot-dialog';
|
|
7817
7840
|
const StyledDialog = styled(Dialog)`
|
|
7818
7841
|
${({
|
|
7819
7842
|
theme
|
|
7820
7843
|
}) => css`
|
|
7821
|
-
&.${rootClassName$
|
|
7844
|
+
&.${rootClassName$H} {
|
|
7822
7845
|
.MuiDialog-paper {
|
|
7823
7846
|
background: ${theme.palette.figma.background.level1.white};
|
|
7824
7847
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -7864,7 +7887,7 @@ const DotDialog = ({
|
|
|
7864
7887
|
cancelButtonProps,
|
|
7865
7888
|
cancelButtonVisible = true,
|
|
7866
7889
|
className,
|
|
7867
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
7890
|
+
'data-pendoid': dataPendoId = rootClassName$H,
|
|
7868
7891
|
'data-testid': dataTestId,
|
|
7869
7892
|
children,
|
|
7870
7893
|
closeIconVisible,
|
|
@@ -7877,7 +7900,7 @@ const DotDialog = ({
|
|
|
7877
7900
|
submitButtonProps,
|
|
7878
7901
|
title
|
|
7879
7902
|
}) => {
|
|
7880
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7903
|
+
const rootClasses = useStylesWithRootClass(rootClassName$H, className);
|
|
7881
7904
|
const cancelClasses = useStylesWithRootClass(cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.className, 'cancel-button');
|
|
7882
7905
|
const [isOpen, setIsOpen] = useState(open);
|
|
7883
7906
|
useEffect(() => {
|
|
@@ -7995,7 +8018,7 @@ const DotConfirmationDialog = ({
|
|
|
7995
8018
|
});
|
|
7996
8019
|
};
|
|
7997
8020
|
|
|
7998
|
-
const rootClassName$
|
|
8021
|
+
const rootClassName$G = 'dot-grid';
|
|
7999
8022
|
const frGetter = value => typeof value === 'number' ? `repeat(${value}, 1fr)` : value;
|
|
8000
8023
|
const breakpointsGetter$1 = (theme, columnsBreakpoints, columnGap, rowGap) => `${theme.breakpoints.up('xs')} {
|
|
8001
8024
|
column-gap: ${`${columnGap.xs}px`};
|
|
@@ -8047,7 +8070,7 @@ const Grid = ({
|
|
|
8047
8070
|
className,
|
|
8048
8071
|
children
|
|
8049
8072
|
}) => {
|
|
8050
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8073
|
+
const rootClasses = useStylesWithRootClass(rootClassName$G, className);
|
|
8051
8074
|
return jsx("div", {
|
|
8052
8075
|
className: rootClasses,
|
|
8053
8076
|
children: children
|
|
@@ -8066,7 +8089,7 @@ const StyledGrid = styled(Grid)`
|
|
|
8066
8089
|
theme,
|
|
8067
8090
|
width
|
|
8068
8091
|
}) => css`
|
|
8069
|
-
&.${rootClassName$
|
|
8092
|
+
&.${rootClassName$G} {
|
|
8070
8093
|
display: grid;
|
|
8071
8094
|
grid-template-rows: ${frGetter(rows)};
|
|
8072
8095
|
${columns ? `${columns && `grid-template-columns: ${frGetter(columns)}`};` : breakpointsGetter$1(theme, columnsBreakpoints, columnGap, rowGap)}
|
|
@@ -9726,18 +9749,18 @@ function addAutoHideDuration(severity) {
|
|
|
9726
9749
|
return severity === 'error' ? null : 10000;
|
|
9727
9750
|
}
|
|
9728
9751
|
|
|
9729
|
-
const rootClassName$
|
|
9752
|
+
const rootClassName$F = 'dot-snackbar';
|
|
9730
9753
|
const StyledSnackbar = styled(Snackbar)`
|
|
9731
9754
|
${({
|
|
9732
9755
|
theme,
|
|
9733
9756
|
width,
|
|
9734
9757
|
$anchorOriginTop
|
|
9735
9758
|
}) => css`
|
|
9736
|
-
&.${rootClassName$
|
|
9759
|
+
&.${rootClassName$F} {
|
|
9737
9760
|
.MuiAlert-message {
|
|
9738
9761
|
word-break: break-word;
|
|
9739
9762
|
}
|
|
9740
|
-
.${rootClassName$
|
|
9763
|
+
.${rootClassName$1c} {
|
|
9741
9764
|
align-items: flex-start;
|
|
9742
9765
|
}
|
|
9743
9766
|
&.MuiSnackbar-anchorOriginTopLeft,
|
|
@@ -9789,7 +9812,7 @@ const DotSnackbar = ({
|
|
|
9789
9812
|
}) => {
|
|
9790
9813
|
const hasActions = !!(primaryAction || secondaryAction);
|
|
9791
9814
|
const calculatedAutoHideDuration = autoHideDuration === null || autoHideDuration > 0 ? autoHideDuration : addAutoHideDuration(severity);
|
|
9792
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
9815
|
+
const rootClasses = useStylesWithRootClass(rootClassName$F, className);
|
|
9793
9816
|
const handleSnackbarClose = reason => {
|
|
9794
9817
|
if (!reason || hideOnClickAway || !hideOnClickAway && reason !== 'clickaway') {
|
|
9795
9818
|
onClose();
|
|
@@ -9847,10 +9870,10 @@ const DotSnackbar = ({
|
|
|
9847
9870
|
});
|
|
9848
9871
|
};
|
|
9849
9872
|
|
|
9850
|
-
const rootClassName$
|
|
9873
|
+
const rootClassName$E = 'dot-snackbar-container';
|
|
9851
9874
|
const StyledSnackbarContainer = styled.div`
|
|
9852
9875
|
${() => css`
|
|
9853
|
-
&.${rootClassName$
|
|
9876
|
+
&.${rootClassName$E} {
|
|
9854
9877
|
position: absolute;
|
|
9855
9878
|
top: 0;
|
|
9856
9879
|
width: 250px;
|
|
@@ -9881,10 +9904,10 @@ const DotSnackbarContainer = ({
|
|
|
9881
9904
|
};
|
|
9882
9905
|
}
|
|
9883
9906
|
return jsx(StyledSnackbarContainer, {
|
|
9884
|
-
className: rootClassName$
|
|
9907
|
+
className: rootClassName$E,
|
|
9885
9908
|
children: jsx("div", {
|
|
9886
|
-
className: rootClassName$
|
|
9887
|
-
"data-testid": rootClassName$
|
|
9909
|
+
className: rootClassName$E,
|
|
9910
|
+
"data-testid": rootClassName$E,
|
|
9888
9911
|
children: alerts.slice().reverse().map(alert => {
|
|
9889
9912
|
return jsx(DotSnackbar, {
|
|
9890
9913
|
autoHideDuration: alert.autoHideDuration,
|
|
@@ -10679,7 +10702,7 @@ function DotDashboardHeader({
|
|
|
10679
10702
|
});
|
|
10680
10703
|
}
|
|
10681
10704
|
|
|
10682
|
-
const rootClassName$
|
|
10705
|
+
const rootClassName$D = 'dot-empty-state';
|
|
10683
10706
|
const StyledEmptyState = styled.div`
|
|
10684
10707
|
${({
|
|
10685
10708
|
theme
|
|
@@ -10714,9 +10737,9 @@ const StyledEmptyState = styled.div`
|
|
|
10714
10737
|
`}
|
|
10715
10738
|
`;
|
|
10716
10739
|
|
|
10717
|
-
const rootClassName$
|
|
10740
|
+
const rootClassName$C = 'dot-illustration';
|
|
10718
10741
|
const StyledIllustration = styled.span`
|
|
10719
|
-
&.${rootClassName$
|
|
10742
|
+
&.${rootClassName$C} {
|
|
10720
10743
|
display: inline-block;
|
|
10721
10744
|
}
|
|
10722
10745
|
`;
|
|
@@ -10733,16 +10756,16 @@ const DotIllustration = ({
|
|
|
10733
10756
|
tooltip,
|
|
10734
10757
|
tooltipPlacement = 'right-end'
|
|
10735
10758
|
}) => {
|
|
10736
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
10759
|
+
const rootClasses = useStylesWithRootClass(rootClassName$C, className);
|
|
10737
10760
|
return jsx(DotTooltip, {
|
|
10738
10761
|
title: tooltip,
|
|
10739
10762
|
placement: tooltipPlacement,
|
|
10740
|
-
"data-testid": `${dataTestId || rootClassName$
|
|
10763
|
+
"data-testid": `${dataTestId || rootClassName$C}-tooltip`,
|
|
10741
10764
|
children: jsx(StyledIllustration, {
|
|
10742
10765
|
"aria-hidden": "false",
|
|
10743
10766
|
"aria-label": ariaLabel || title || 'Illustration',
|
|
10744
10767
|
className: rootClasses,
|
|
10745
|
-
"data-testid": dataTestId || rootClassName$
|
|
10768
|
+
"data-testid": dataTestId || rootClassName$C,
|
|
10746
10769
|
role: ariaRole,
|
|
10747
10770
|
children: jsx("img", {
|
|
10748
10771
|
alt: alt || 'Illustration',
|
|
@@ -10767,7 +10790,7 @@ const DotEmptyState = ({
|
|
|
10767
10790
|
subtitle,
|
|
10768
10791
|
title
|
|
10769
10792
|
}) => {
|
|
10770
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
10793
|
+
const rootClasses = useStylesWithRootClass(rootClassName$D, className);
|
|
10771
10794
|
return jsxs(StyledEmptyState, {
|
|
10772
10795
|
"aria-label": ariaLabel,
|
|
10773
10796
|
className: rootClasses,
|
|
@@ -10848,20 +10871,20 @@ const StyledRadioGroup = styled(RadioGroup)`
|
|
|
10848
10871
|
&.${groupClassName} {
|
|
10849
10872
|
padding-left: ${theme.spacing(2.5)};
|
|
10850
10873
|
|
|
10851
|
-
.${rootClassName$
|
|
10874
|
+
.${rootClassName$M} {
|
|
10852
10875
|
margin: 0;
|
|
10853
10876
|
}
|
|
10854
10877
|
}
|
|
10855
10878
|
`}
|
|
10856
10879
|
`;
|
|
10857
10880
|
|
|
10858
|
-
const rootClassName$
|
|
10881
|
+
const rootClassName$B = 'dot-date-picker';
|
|
10859
10882
|
const popperClassName = 'dot-date-picker-popper';
|
|
10860
10883
|
const containerClassName$2 = 'dot-date-picker-container';
|
|
10861
10884
|
const rectanglePickersDayClassName = 'dot-rectangle-pickers-day';
|
|
10862
10885
|
const StyledDatePickerContainer = styled.div`
|
|
10863
10886
|
${() => css`
|
|
10864
|
-
&.${rootClassName$
|
|
10887
|
+
&.${rootClassName$B} .full-width {
|
|
10865
10888
|
width: 100%;
|
|
10866
10889
|
}
|
|
10867
10890
|
`}
|
|
@@ -10870,7 +10893,7 @@ const StyledDatePicker = styled(DatePicker)`
|
|
|
10870
10893
|
${({
|
|
10871
10894
|
theme
|
|
10872
10895
|
}) => css`
|
|
10873
|
-
&.${rootClassName$
|
|
10896
|
+
&.${rootClassName$B} {
|
|
10874
10897
|
${pickerInputStyles(theme)};
|
|
10875
10898
|
|
|
10876
10899
|
.Mui-disabled.MuiInputBase-root,
|
|
@@ -10910,7 +10933,7 @@ const StyledPickersDay = styled(PickersDay)`
|
|
|
10910
10933
|
`}
|
|
10911
10934
|
`;
|
|
10912
10935
|
|
|
10913
|
-
const rootClassName$
|
|
10936
|
+
const rootClassName$A = 'dot-time-picker';
|
|
10914
10937
|
const containerClassName$1 = 'dot-time-picker-container';
|
|
10915
10938
|
const TIME_SELECTION_HEIGHT_SPACING = 34.5;
|
|
10916
10939
|
const TIME_SELECTION_WIDTH_SPACING = 14.5;
|
|
@@ -10981,7 +11004,7 @@ const StyledTimePicker = styled(TimePicker)`
|
|
|
10981
11004
|
${({
|
|
10982
11005
|
theme
|
|
10983
11006
|
}) => css`
|
|
10984
|
-
&.${rootClassName$
|
|
11007
|
+
&.${rootClassName$A} {
|
|
10985
11008
|
${pickerInputStyles(theme)};
|
|
10986
11009
|
|
|
10987
11010
|
.Mui-disabled.MuiInputBase-root,
|
|
@@ -11000,36 +11023,36 @@ const StyledTimePicker = styled(TimePicker)`
|
|
|
11000
11023
|
`}
|
|
11001
11024
|
`;
|
|
11002
11025
|
|
|
11003
|
-
const rootClassName$
|
|
11026
|
+
const rootClassName$z = 'dot-form';
|
|
11004
11027
|
const StyledFormContainer = styled.div`
|
|
11005
11028
|
${({
|
|
11006
11029
|
theme
|
|
11007
11030
|
}) => css`
|
|
11008
|
-
&.${rootClassName$
|
|
11031
|
+
&.${rootClassName$z} {
|
|
11009
11032
|
margin: ${theme.spacing(3, 0)};
|
|
11010
11033
|
|
|
11011
|
-
.${rootClassName$
|
|
11012
|
-
.${rootClassName$
|
|
11013
|
-
.${rootClassName$
|
|
11034
|
+
.${rootClassName$K},
|
|
11035
|
+
.${rootClassName$M},
|
|
11036
|
+
.${rootClassName$1e},
|
|
11014
11037
|
.${rootSelectClassName},
|
|
11015
|
-
.${rootClassName$
|
|
11016
|
-
.${rootClassName$
|
|
11038
|
+
.${rootClassName$B},
|
|
11039
|
+
.${rootClassName$A} {
|
|
11017
11040
|
margin: ${theme.spacing(1, 0)};
|
|
11018
11041
|
}
|
|
11019
11042
|
|
|
11020
11043
|
label
|
|
11021
|
-
+ .${rootClassName$
|
|
11044
|
+
+ .${rootClassName$1e},
|
|
11022
11045
|
label
|
|
11023
11046
|
+ .${rootSelectClassName},
|
|
11024
11047
|
label
|
|
11025
|
-
+ .${rootClassName$
|
|
11048
|
+
+ .${rootClassName$B},
|
|
11026
11049
|
label
|
|
11027
|
-
+ .${rootClassName$
|
|
11050
|
+
+ .${rootClassName$A} {
|
|
11028
11051
|
margin: ${theme.spacing(0, 0, 1, 0)};
|
|
11029
11052
|
}
|
|
11030
11053
|
|
|
11031
|
-
.${rootClassName$
|
|
11032
|
-
.${rootClassName$
|
|
11054
|
+
.${rootClassName$J}, .${groupClassName} {
|
|
11055
|
+
.${rootClassName$M} {
|
|
11033
11056
|
margin: 0;
|
|
11034
11057
|
}
|
|
11035
11058
|
}
|
|
@@ -11044,7 +11067,7 @@ const DotForm = ({
|
|
|
11044
11067
|
'data-testid': dataTestId,
|
|
11045
11068
|
onSubmit
|
|
11046
11069
|
}) => {
|
|
11047
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11070
|
+
const rootClasses = useStylesWithRootClass(rootClassName$z, className);
|
|
11048
11071
|
return jsx("form", {
|
|
11049
11072
|
"aria-label": ariaLabel,
|
|
11050
11073
|
"data-testid": dataTestId,
|
|
@@ -11057,10 +11080,10 @@ const DotForm = ({
|
|
|
11057
11080
|
});
|
|
11058
11081
|
};
|
|
11059
11082
|
|
|
11060
|
-
const rootClassName$
|
|
11083
|
+
const rootClassName$y = 'dot-dynamic-form';
|
|
11061
11084
|
const StyledDynamicForm = styled(DotForm)`
|
|
11062
11085
|
${() => css`
|
|
11063
|
-
&.${rootClassName$
|
|
11086
|
+
&.${rootClassName$y} {
|
|
11064
11087
|
}
|
|
11065
11088
|
`}
|
|
11066
11089
|
`;
|
|
@@ -11240,12 +11263,12 @@ const checkIfFormDataValid = formState => {
|
|
|
11240
11263
|
return true;
|
|
11241
11264
|
};
|
|
11242
11265
|
|
|
11243
|
-
const rootClassName$
|
|
11266
|
+
const rootClassName$x = 'dot-progress-button';
|
|
11244
11267
|
const StyledProgressButton = styled(DotButton)`
|
|
11245
11268
|
${({
|
|
11246
11269
|
theme
|
|
11247
11270
|
}) => css`
|
|
11248
|
-
&.${rootClassName$
|
|
11271
|
+
&.${rootClassName$x} {
|
|
11249
11272
|
.hidden {
|
|
11250
11273
|
// hide children but preserve its space so that
|
|
11251
11274
|
// button's dimensions don't change
|
|
@@ -11270,7 +11293,7 @@ const DotProgressButton = ({
|
|
|
11270
11293
|
ariaLabel,
|
|
11271
11294
|
children,
|
|
11272
11295
|
className,
|
|
11273
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
11296
|
+
'data-pendoid': dataPendoId = rootClassName$x,
|
|
11274
11297
|
'data-testid': dataTestId,
|
|
11275
11298
|
disabled = false,
|
|
11276
11299
|
disableRipple = false,
|
|
@@ -11283,7 +11306,7 @@ const DotProgressButton = ({
|
|
|
11283
11306
|
tooltip,
|
|
11284
11307
|
type = 'primary'
|
|
11285
11308
|
}) => {
|
|
11286
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11309
|
+
const rootClasses = useStylesWithRootClass(rootClassName$x, className);
|
|
11287
11310
|
const isButtonDisabled = disabled || isLoading;
|
|
11288
11311
|
const titleClasses = useStylesWithRootClass(isLoading ? 'hidden' : '');
|
|
11289
11312
|
const progressCircleSize = size === 'large' ? SPINNER_LARGE_SIZE : SPINNER_DEFAULT_SIZE;
|
|
@@ -11312,12 +11335,12 @@ const DotProgressButton = ({
|
|
|
11312
11335
|
});
|
|
11313
11336
|
};
|
|
11314
11337
|
|
|
11315
|
-
const rootClassName$
|
|
11338
|
+
const rootClassName$w = 'dot-radio';
|
|
11316
11339
|
const StyledRadioButton = styled(Radio)`
|
|
11317
11340
|
${({
|
|
11318
11341
|
theme
|
|
11319
11342
|
}) => css`
|
|
11320
|
-
&.${rootClassName$
|
|
11343
|
+
&.${rootClassName$w} {
|
|
11321
11344
|
padding: 8px;
|
|
11322
11345
|
|
|
11323
11346
|
svg {
|
|
@@ -11335,7 +11358,7 @@ function DotRadioButton({
|
|
|
11335
11358
|
ariaLabel,
|
|
11336
11359
|
checked,
|
|
11337
11360
|
className,
|
|
11338
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
11361
|
+
'data-pendoid': dataPendoId = rootClassName$M,
|
|
11339
11362
|
'data-testid': dataTestId,
|
|
11340
11363
|
disabled,
|
|
11341
11364
|
id,
|
|
@@ -11348,7 +11371,7 @@ function DotRadioButton({
|
|
|
11348
11371
|
size = 'medium',
|
|
11349
11372
|
value
|
|
11350
11373
|
}) {
|
|
11351
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11374
|
+
const rootClasses = useStylesWithRootClass(rootClassName$M, className);
|
|
11352
11375
|
const handleChange = event => {
|
|
11353
11376
|
onChange && onChange(event, event.target.value);
|
|
11354
11377
|
};
|
|
@@ -11356,7 +11379,7 @@ function DotRadioButton({
|
|
|
11356
11379
|
const radioControl = jsx(StyledRadioButton, {
|
|
11357
11380
|
checked: checked,
|
|
11358
11381
|
classes: {
|
|
11359
|
-
root: rootClassName$
|
|
11382
|
+
root: rootClassName$w
|
|
11360
11383
|
},
|
|
11361
11384
|
color: "primary",
|
|
11362
11385
|
"data-pendoid": dataPendoId,
|
|
@@ -11402,7 +11425,7 @@ const DotRadioGroup = ({
|
|
|
11402
11425
|
size = 'medium'
|
|
11403
11426
|
}) => {
|
|
11404
11427
|
const placement = `${placementClassName}${labelPlacement}`;
|
|
11405
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11428
|
+
const rootClasses = useStylesWithRootClass(rootClassName$K, className, placement);
|
|
11406
11429
|
const radioValue = value || defaultValue;
|
|
11407
11430
|
const [selectedValue, setSelectedValue] = useState(radioValue);
|
|
11408
11431
|
/* This will ensure that value can be updated from the outside */
|
|
@@ -11467,7 +11490,7 @@ const DotRadioGroup = ({
|
|
|
11467
11490
|
});
|
|
11468
11491
|
};
|
|
11469
11492
|
|
|
11470
|
-
const rootClassName$
|
|
11493
|
+
const rootClassName$v = 'dot-switch';
|
|
11471
11494
|
const StyledSwitch = styled(Switch)`
|
|
11472
11495
|
${({
|
|
11473
11496
|
theme
|
|
@@ -11496,7 +11519,7 @@ const DotSwitch = ({
|
|
|
11496
11519
|
checked,
|
|
11497
11520
|
className,
|
|
11498
11521
|
color,
|
|
11499
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
11522
|
+
'data-pendoid': dataPendoId = rootClassName$v,
|
|
11500
11523
|
'data-testid': dataTestId,
|
|
11501
11524
|
disabled = false,
|
|
11502
11525
|
id,
|
|
@@ -11506,7 +11529,7 @@ const DotSwitch = ({
|
|
|
11506
11529
|
onChange,
|
|
11507
11530
|
size = 'medium'
|
|
11508
11531
|
}) => {
|
|
11509
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11532
|
+
const rootClasses = useStylesWithRootClass(rootClassName$v, className);
|
|
11510
11533
|
const handleChange = event => {
|
|
11511
11534
|
onChange && onChange(event);
|
|
11512
11535
|
};
|
|
@@ -11536,7 +11559,7 @@ const DotSwitch = ({
|
|
|
11536
11559
|
tabIndex: 0
|
|
11537
11560
|
});
|
|
11538
11561
|
return jsx(StyledFormControlLabel, {
|
|
11539
|
-
className: rootClassName$
|
|
11562
|
+
className: rootClassName$M,
|
|
11540
11563
|
control: switchControl,
|
|
11541
11564
|
label: label,
|
|
11542
11565
|
labelPlacement: labelPlacement
|
|
@@ -11857,7 +11880,7 @@ const DotDynamicForm = ({
|
|
|
11857
11880
|
onChange,
|
|
11858
11881
|
onSubmit
|
|
11859
11882
|
}) => {
|
|
11860
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11883
|
+
const rootClasses = useStylesWithRootClass(rootClassName$y, className);
|
|
11861
11884
|
// Memoize this operation so that is doesn't get executed each time this
|
|
11862
11885
|
// component re-renders
|
|
11863
11886
|
const initialFormState = useMemo(() => getInitialFormState(config, liveValidation), [config, liveValidation, getInitialFormState]);
|
|
@@ -12103,7 +12126,7 @@ const DotDynamicForm = ({
|
|
|
12103
12126
|
});
|
|
12104
12127
|
};
|
|
12105
12128
|
|
|
12106
|
-
const rootClassName$
|
|
12129
|
+
const rootClassName$u = 'dot-inline-edit';
|
|
12107
12130
|
const editModeClassName = 'dot-edit-mode';
|
|
12108
12131
|
const viewModeClassName = 'dot-view-mode';
|
|
12109
12132
|
const placeholderClassName = 'dot-placeholder';
|
|
@@ -12115,7 +12138,7 @@ const StyledInlineEdit = styled.div`
|
|
|
12115
12138
|
theme,
|
|
12116
12139
|
fullWidth
|
|
12117
12140
|
}) => css`
|
|
12118
|
-
&.${rootClassName$
|
|
12141
|
+
&.${rootClassName$u} {
|
|
12119
12142
|
align-items: center;
|
|
12120
12143
|
color: ${theme.palette.figma.typography.black};
|
|
12121
12144
|
display: ${fullWidth ? 'flex' : 'inline-flex'};
|
|
@@ -12327,7 +12350,7 @@ const DotInlineEdit = ({
|
|
|
12327
12350
|
bindings,
|
|
12328
12351
|
charactersLimit,
|
|
12329
12352
|
className,
|
|
12330
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
12353
|
+
'data-pendoid': dataPendoId = rootClassName$u,
|
|
12331
12354
|
'data-testid': dataTestId,
|
|
12332
12355
|
fullWidth = true,
|
|
12333
12356
|
hideActionButtons,
|
|
@@ -12360,7 +12383,7 @@ const DotInlineEdit = ({
|
|
|
12360
12383
|
}
|
|
12361
12384
|
}, [value]);
|
|
12362
12385
|
const isSaveDisabled = checkIfEmptyValue(inputValue);
|
|
12363
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
12386
|
+
const rootClasses = useStylesWithRootClass(rootClassName$u, className, editing ? editModeClassName : '');
|
|
12364
12387
|
const handleShowTooltip = visible => {
|
|
12365
12388
|
if (!editing) {
|
|
12366
12389
|
setShowTooltip(visible);
|
|
@@ -12539,13 +12562,13 @@ const DotInlineEdit = ({
|
|
|
12539
12562
|
});
|
|
12540
12563
|
};
|
|
12541
12564
|
|
|
12542
|
-
const rootClassName$
|
|
12565
|
+
const rootClassName$t = 'dot-navigation-rail';
|
|
12543
12566
|
const StyledNavigationRail = styled.div`
|
|
12544
12567
|
${({
|
|
12545
12568
|
theme,
|
|
12546
12569
|
railItemPosition
|
|
12547
12570
|
}) => css`
|
|
12548
|
-
&.${rootClassName$
|
|
12571
|
+
&.${rootClassName$t} {
|
|
12549
12572
|
background: ${theme.palette.figma.neutral.elevated};
|
|
12550
12573
|
border-left: 1px solid ${theme.palette.figma.border.default};
|
|
12551
12574
|
display: flex;
|
|
@@ -12592,7 +12615,7 @@ const DotNavigationRail = ({
|
|
|
12592
12615
|
railItems,
|
|
12593
12616
|
selectedIndex = 0
|
|
12594
12617
|
}) => {
|
|
12595
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
12618
|
+
const rootClasses = useStylesWithRootClass(rootClassName$t, className);
|
|
12596
12619
|
const [selectedItemIndex, setSelectedItemIndex] = useState(selectedIndex);
|
|
12597
12620
|
/* Used to change selected index programmatically from the consumer component */
|
|
12598
12621
|
useEffect(() => {
|
|
@@ -12643,12 +12666,12 @@ const DotNavigationRail = ({
|
|
|
12643
12666
|
});
|
|
12644
12667
|
};
|
|
12645
12668
|
|
|
12646
|
-
const rootClassName$
|
|
12669
|
+
const rootClassName$s = 'dot-pill';
|
|
12647
12670
|
const StyledPill = styled(Chip)`
|
|
12648
12671
|
${({
|
|
12649
12672
|
theme
|
|
12650
12673
|
}) => css`
|
|
12651
|
-
&.${rootClassName$
|
|
12674
|
+
&.${rootClassName$s} {
|
|
12652
12675
|
background-color: ${({
|
|
12653
12676
|
backgroundcolor,
|
|
12654
12677
|
variant
|
|
@@ -12767,11 +12790,12 @@ const DotPill = ({
|
|
|
12767
12790
|
icon,
|
|
12768
12791
|
label,
|
|
12769
12792
|
labelcolor,
|
|
12793
|
+
onClick,
|
|
12770
12794
|
size = 'medium',
|
|
12771
12795
|
status = 'default',
|
|
12772
12796
|
variant = 'filled'
|
|
12773
12797
|
}) => {
|
|
12774
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
12798
|
+
const rootClasses = useStylesWithRootClass(rootClassName$s, className, status);
|
|
12775
12799
|
return jsx(StyledPill, {
|
|
12776
12800
|
"aria-label": ariaLabel,
|
|
12777
12801
|
bordercolor: bordercolor,
|
|
@@ -12779,22 +12803,23 @@ const DotPill = ({
|
|
|
12779
12803
|
classes: {
|
|
12780
12804
|
root: rootClasses
|
|
12781
12805
|
},
|
|
12782
|
-
clickable:
|
|
12806
|
+
clickable: !!onClick,
|
|
12783
12807
|
"data-testid": dataTestId,
|
|
12784
12808
|
icon: icon,
|
|
12785
12809
|
label: label,
|
|
12786
12810
|
labelcolor: labelcolor,
|
|
12811
|
+
onClick: onClick,
|
|
12787
12812
|
size: size,
|
|
12788
12813
|
variant: variant
|
|
12789
12814
|
});
|
|
12790
12815
|
};
|
|
12791
12816
|
|
|
12792
|
-
const rootClassName$
|
|
12817
|
+
const rootClassName$r = 'dot-skeleton';
|
|
12793
12818
|
const StyledSkeleton = styled(Skeleton)`
|
|
12794
12819
|
${({
|
|
12795
12820
|
theme
|
|
12796
12821
|
}) => css`
|
|
12797
|
-
&.${rootClassName$
|
|
12822
|
+
&.${rootClassName$r} {
|
|
12798
12823
|
background-color: ${theme.palette.figma.border.darker};
|
|
12799
12824
|
}
|
|
12800
12825
|
`}
|
|
@@ -12809,7 +12834,7 @@ const DotSkeleton = ({
|
|
|
12809
12834
|
width,
|
|
12810
12835
|
variant
|
|
12811
12836
|
}) => {
|
|
12812
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
12837
|
+
const rootClasses = useStylesWithRootClass(rootClassName$r, className);
|
|
12813
12838
|
return jsx(StyledSkeleton, {
|
|
12814
12839
|
animation: "wave",
|
|
12815
12840
|
"aria-label": ariaLabel,
|
|
@@ -12824,12 +12849,12 @@ const DotSkeleton = ({
|
|
|
12824
12849
|
});
|
|
12825
12850
|
};
|
|
12826
12851
|
|
|
12827
|
-
const rootClassName$
|
|
12852
|
+
const rootClassName$q = 'dot-split-button-group';
|
|
12828
12853
|
const StyledSplitButtonGroup = styled(ButtonGroup)`
|
|
12829
12854
|
${({
|
|
12830
12855
|
theme
|
|
12831
12856
|
}) => css`
|
|
12832
|
-
&.${rootClassName$
|
|
12857
|
+
&.${rootClassName$q} {
|
|
12833
12858
|
&.outlined,
|
|
12834
12859
|
&.text {
|
|
12835
12860
|
.expand-button {
|
|
@@ -12896,7 +12921,7 @@ const DotSplitButton = ({
|
|
|
12896
12921
|
autoFocus = false,
|
|
12897
12922
|
ariaLabel,
|
|
12898
12923
|
className,
|
|
12899
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
12924
|
+
'data-pendoid': dataPendoId = rootClassName$q,
|
|
12900
12925
|
'data-testid': dataTestId,
|
|
12901
12926
|
defaultMainOptionKey,
|
|
12902
12927
|
disabled = false,
|
|
@@ -12911,7 +12936,7 @@ const DotSplitButton = ({
|
|
|
12911
12936
|
tooltipPlacement,
|
|
12912
12937
|
type = 'primary'
|
|
12913
12938
|
}) => {
|
|
12914
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
12939
|
+
const rootClasses = useStylesWithRootClass(rootClassName$q, className, type, disabled ? 'disabled' : '');
|
|
12915
12940
|
const [open, setOpen] = useState(false);
|
|
12916
12941
|
const anchorRef = useRef(null);
|
|
12917
12942
|
const hasEmptyOptions = options.length === 0;
|
|
@@ -12977,14 +13002,14 @@ const DotSplitButton = ({
|
|
|
12977
13002
|
});
|
|
12978
13003
|
};
|
|
12979
13004
|
|
|
12980
|
-
const rootClassName$
|
|
13005
|
+
const rootClassName$p = 'dot-stepper';
|
|
12981
13006
|
const stepListClassName = 'dot-stepper-list';
|
|
12982
13007
|
const contentClassName = 'dot-stepper-content';
|
|
12983
13008
|
const StyledStepper = styled.div`
|
|
12984
13009
|
${({
|
|
12985
13010
|
theme
|
|
12986
13011
|
}) => css`
|
|
12987
|
-
&.${rootClassName$
|
|
13012
|
+
&.${rootClassName$p} {
|
|
12988
13013
|
display: flex;
|
|
12989
13014
|
align-items: flex-start;
|
|
12990
13015
|
padding: 0;
|
|
@@ -13257,7 +13282,7 @@ const DotStepper = ({
|
|
|
13257
13282
|
const displayFinalContent = finalContent && currentStep > steps.length;
|
|
13258
13283
|
const displayCancelButton = !!(!displayInitialContent && !displayFinalContent && onCancel);
|
|
13259
13284
|
const isLastStep = currentStep === steps.length && !finalContent || currentStep > steps.length && finalContent;
|
|
13260
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13285
|
+
const rootClasses = useStylesWithRootClass(rootClassName$p, stepsPosition, className);
|
|
13261
13286
|
const stepContentClasses = displayInitialContent || displayFinalContent ? 'center-content' : '';
|
|
13262
13287
|
const stickyBottomClasses = useStylesWithRootClass('actions-container', isStickyBottom ? 'with-top-border' : '');
|
|
13263
13288
|
const actionsClasses = useStylesWithRootClass('actions', displayInitialContent || displayFinalContent ? 'center-actions' : '');
|
|
@@ -13456,12 +13481,12 @@ const DotStepper = ({
|
|
|
13456
13481
|
});
|
|
13457
13482
|
};
|
|
13458
13483
|
|
|
13459
|
-
const rootClassName$
|
|
13484
|
+
const rootClassName$o = 'dot-table-pagination-custom-actions';
|
|
13460
13485
|
const StyledTablePaginationCustomActions = styled.div`
|
|
13461
13486
|
${({
|
|
13462
13487
|
theme
|
|
13463
13488
|
}) => css`
|
|
13464
|
-
&.${rootClassName$
|
|
13489
|
+
&.${rootClassName$o} {
|
|
13465
13490
|
margin-left: ${theme.spacing(2.5)};
|
|
13466
13491
|
display: flex;
|
|
13467
13492
|
align-items: center;
|
|
@@ -13585,7 +13610,7 @@ const DotTablePaginationCustomActions = props => {
|
|
|
13585
13610
|
});
|
|
13586
13611
|
};
|
|
13587
13612
|
return jsxs(StyledTablePaginationCustomActions, {
|
|
13588
|
-
className: rootClassName$
|
|
13613
|
+
className: rootClassName$o,
|
|
13589
13614
|
children: [jsx(DotIconButton, {
|
|
13590
13615
|
ariaLabel: "previous page",
|
|
13591
13616
|
className: "page-control-button",
|
|
@@ -13632,7 +13657,7 @@ const DotTablePaginationCustomActions = props => {
|
|
|
13632
13657
|
});
|
|
13633
13658
|
};
|
|
13634
13659
|
|
|
13635
|
-
const rootClassName$
|
|
13660
|
+
const rootClassName$n = 'dot-table-pagination';
|
|
13636
13661
|
// TO-DO: Determine how to apply styles to standard popper element
|
|
13637
13662
|
const paginationItemClassName = 'dot-pagination-menu-item';
|
|
13638
13663
|
const StyledTablePagination = styled.div`
|
|
@@ -13640,7 +13665,7 @@ const StyledTablePagination = styled.div`
|
|
|
13640
13665
|
theme,
|
|
13641
13666
|
typography
|
|
13642
13667
|
}) => css`
|
|
13643
|
-
.${rootClassName$
|
|
13668
|
+
.${rootClassName$n} {
|
|
13644
13669
|
border-top: 1px solid ${theme.palette.figma.border.default};
|
|
13645
13670
|
|
|
13646
13671
|
.dot-caption,
|
|
@@ -13683,7 +13708,7 @@ const DotTablePagination = ({
|
|
|
13683
13708
|
showJumpToPageActionButton = false,
|
|
13684
13709
|
typography = 'subtitle2'
|
|
13685
13710
|
}) => {
|
|
13686
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13711
|
+
const rootClasses = useStylesWithRootClass(rootClassName$n, className, showJumpToPageActionButton ? 'with-custom-actions' : '');
|
|
13687
13712
|
const handlePageChange = (event, newPage) => {
|
|
13688
13713
|
onPageChange && onPageChange(newPage);
|
|
13689
13714
|
};
|
|
@@ -13692,7 +13717,7 @@ const DotTablePagination = ({
|
|
|
13692
13717
|
};
|
|
13693
13718
|
return (/* Container is used to pass 'typography' prop to a styled component */
|
|
13694
13719
|
jsx(StyledTablePagination, {
|
|
13695
|
-
className: rootClassName$
|
|
13720
|
+
className: rootClassName$n,
|
|
13696
13721
|
typography: typography,
|
|
13697
13722
|
children: jsx(TablePagination, {
|
|
13698
13723
|
ActionsComponent: showJumpToPageActionButton ? DotTablePaginationCustomActions : undefined,
|
|
@@ -13719,12 +13744,12 @@ const DotTablePagination = ({
|
|
|
13719
13744
|
);
|
|
13720
13745
|
};
|
|
13721
13746
|
|
|
13722
|
-
const rootClassName$
|
|
13747
|
+
const rootClassName$m = 'dot-table';
|
|
13723
13748
|
const StyledPaper = styled(Paper)`
|
|
13724
13749
|
${({
|
|
13725
13750
|
theme
|
|
13726
13751
|
}) => css`
|
|
13727
|
-
&.${rootClassName$
|
|
13752
|
+
&.${rootClassName$m} {
|
|
13728
13753
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
13729
13754
|
border: 1px solid ${theme.palette.figma.border.default};
|
|
13730
13755
|
overflow: hidden;
|
|
@@ -13793,10 +13818,10 @@ const StyledMenu$1 = styled(DotMenu)`
|
|
|
13793
13818
|
}
|
|
13794
13819
|
`;
|
|
13795
13820
|
|
|
13796
|
-
const rootClassName$
|
|
13821
|
+
const rootClassName$l = 'dot-tbody';
|
|
13797
13822
|
const StyledTableBody = styled(TableBody)`
|
|
13798
13823
|
${() => css`
|
|
13799
|
-
&.${rootClassName$
|
|
13824
|
+
&.${rootClassName$l} {
|
|
13800
13825
|
tr:last-child td {
|
|
13801
13826
|
border-bottom: none;
|
|
13802
13827
|
}
|
|
@@ -13944,12 +13969,12 @@ const parseCellMaxWidth = width => {
|
|
|
13944
13969
|
return width;
|
|
13945
13970
|
};
|
|
13946
13971
|
|
|
13947
|
-
const rootClassName$
|
|
13972
|
+
const rootClassName$k = 'dot-td';
|
|
13948
13973
|
const StyledTableCell = styled(TableCell)`
|
|
13949
13974
|
${({
|
|
13950
13975
|
theme
|
|
13951
13976
|
}) => css`
|
|
13952
|
-
&.${rootClassName$
|
|
13977
|
+
&.${rootClassName$k} {
|
|
13953
13978
|
padding-top: 0;
|
|
13954
13979
|
padding-bottom: 0;
|
|
13955
13980
|
|
|
@@ -14044,7 +14069,7 @@ const DotBodyCell = ({
|
|
|
14044
14069
|
const isOverflowing = actionTableCellWidth > (wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current.clientWidth);
|
|
14045
14070
|
setShowMenu(isOverflowing);
|
|
14046
14071
|
};
|
|
14047
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14072
|
+
const rootClasses = useStylesWithRootClass(rootClassName$k, className, noWrap && 'noWrap', Array.isArray(value) && 'actionItems');
|
|
14048
14073
|
const getTableCellValue = () => {
|
|
14049
14074
|
if (Array.isArray(value)) {
|
|
14050
14075
|
return jsx("div", {
|
|
@@ -14109,12 +14134,12 @@ const EmptyDotRow = ({
|
|
|
14109
14134
|
}, CreateUUID());
|
|
14110
14135
|
};
|
|
14111
14136
|
|
|
14112
|
-
const rootClassName$
|
|
14137
|
+
const rootClassName$j = 'dot-tr';
|
|
14113
14138
|
const StyledTableRowStyles = styled(TableRow)`
|
|
14114
14139
|
${({
|
|
14115
14140
|
theme
|
|
14116
14141
|
}) => css`
|
|
14117
|
-
&.${rootClassName$
|
|
14142
|
+
&.${rootClassName$j} {
|
|
14118
14143
|
&.selected {
|
|
14119
14144
|
background: ${theme.palette.figma.overlay.table.highlights};
|
|
14120
14145
|
|
|
@@ -14143,12 +14168,12 @@ const StyledTableRowStyles = styled(TableRow)`
|
|
|
14143
14168
|
const TABLE_TYPOGRAPHY_VARIANT = 'body1';
|
|
14144
14169
|
const TABLE_DEFAULT_SKELETON_ROWS = 4;
|
|
14145
14170
|
|
|
14146
|
-
const rootClassName$
|
|
14171
|
+
const rootClassName$i = 'dot-th-checkbox';
|
|
14147
14172
|
const StyledTableHeaderCheckboxCell = styled(TableCell)`
|
|
14148
14173
|
${({
|
|
14149
14174
|
theme
|
|
14150
14175
|
}) => css`
|
|
14151
|
-
&.${rootClassName$
|
|
14176
|
+
&.${rootClassName$i} {
|
|
14152
14177
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
14153
14178
|
padding: ${theme.spacing(0, 1)};
|
|
14154
14179
|
width: ${theme.spacing(5)};
|
|
@@ -14167,7 +14192,7 @@ const DotHeaderCheckboxCell = ({
|
|
|
14167
14192
|
multiSelectState,
|
|
14168
14193
|
onCheckAllChange
|
|
14169
14194
|
}) => {
|
|
14170
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14195
|
+
const rootClasses = useStylesWithRootClass(rootClassName$i, className);
|
|
14171
14196
|
const [checkboxState, setCheckboxState] = useState('unchecked');
|
|
14172
14197
|
useEffect(() => {
|
|
14173
14198
|
setCheckboxState(multiSelectState);
|
|
@@ -14198,12 +14223,12 @@ const DotHeaderCheckboxCell = ({
|
|
|
14198
14223
|
});
|
|
14199
14224
|
};
|
|
14200
14225
|
|
|
14201
|
-
const rootClassName$
|
|
14226
|
+
const rootClassName$h = 'dot-th';
|
|
14202
14227
|
const StyledTableHeaderCell = styled(TableCell)`
|
|
14203
14228
|
${({
|
|
14204
14229
|
theme
|
|
14205
14230
|
}) => css`
|
|
14206
|
-
&.${rootClassName$
|
|
14231
|
+
&.${rootClassName$h} {
|
|
14207
14232
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
14208
14233
|
|
|
14209
14234
|
&.MuiTableCell-alignCenter > span.MuiTableSortLabel-root {
|
|
@@ -14262,7 +14287,7 @@ const DotHeaderCell = ({
|
|
|
14262
14287
|
return jsx(StyledTableHeaderCell, {
|
|
14263
14288
|
align: align,
|
|
14264
14289
|
classes: {
|
|
14265
|
-
root: rootClassName$
|
|
14290
|
+
root: rootClassName$h
|
|
14266
14291
|
},
|
|
14267
14292
|
sortDirection: sortable ? sortDirection : undefined,
|
|
14268
14293
|
style: headerCellStyle,
|
|
@@ -14534,12 +14559,12 @@ const ExpandCollapseCell = ({
|
|
|
14534
14559
|
});
|
|
14535
14560
|
};
|
|
14536
14561
|
|
|
14537
|
-
const rootClassName$
|
|
14562
|
+
const rootClassName$g = 'dot-td-checkbox';
|
|
14538
14563
|
const StyledTableBodyCheckboxCell = styled(TableCell)`
|
|
14539
14564
|
${({
|
|
14540
14565
|
theme
|
|
14541
14566
|
}) => css`
|
|
14542
|
-
&.${rootClassName$
|
|
14567
|
+
&.${rootClassName$g} {
|
|
14543
14568
|
padding: ${theme.spacing(0, 1)};
|
|
14544
14569
|
width: ${theme.spacing(5)};
|
|
14545
14570
|
|
|
@@ -14558,7 +14583,7 @@ const DotBodyCheckboxCell = ({
|
|
|
14558
14583
|
onChange,
|
|
14559
14584
|
rowId
|
|
14560
14585
|
}) => {
|
|
14561
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14586
|
+
const rootClasses = useStylesWithRootClass(rootClassName$g, className);
|
|
14562
14587
|
const [isCheckboxChecked, setIsCheckboxChecked] = useState(isChecked);
|
|
14563
14588
|
/** This effect is used when 'checked' status is changed from the outside */
|
|
14564
14589
|
useEffect(() => {
|
|
@@ -14610,7 +14635,7 @@ const DotTableRow = ({
|
|
|
14610
14635
|
selectedTableRowIds
|
|
14611
14636
|
} = multiSelectBody || {};
|
|
14612
14637
|
const isCheckboxChecked = selectedTableRowIds && selectedTableRowIds.includes(id) || false;
|
|
14613
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14638
|
+
const rootClasses = useStylesWithRootClass(rootClassName$j, isCheckboxChecked ? 'selected' : undefined, className);
|
|
14614
14639
|
const renderCheckboxCell = () => {
|
|
14615
14640
|
return jsx(DotBodyCheckboxCell, {
|
|
14616
14641
|
ariaLabel: "Click to select this row",
|
|
@@ -14727,7 +14752,7 @@ const DotTableBody = ({
|
|
|
14727
14752
|
return jsxs(Fragment, {
|
|
14728
14753
|
children: [jsx(StyledTableBody, {
|
|
14729
14754
|
classes: {
|
|
14730
|
-
root: rootClassName$
|
|
14755
|
+
root: rootClassName$l
|
|
14731
14756
|
},
|
|
14732
14757
|
children: getTableBodyRows()
|
|
14733
14758
|
}), jsx(StyledMenu$1, {
|
|
@@ -14742,12 +14767,12 @@ const DotTableBody = ({
|
|
|
14742
14767
|
});
|
|
14743
14768
|
};
|
|
14744
14769
|
|
|
14745
|
-
const rootClassName$
|
|
14770
|
+
const rootClassName$f = 'dot-table-selection-toolbar';
|
|
14746
14771
|
const StyledTableSelectionToolbar = styled(DotActionToolbar)`
|
|
14747
14772
|
${({
|
|
14748
14773
|
theme
|
|
14749
14774
|
}) => css`
|
|
14750
|
-
&.${rootClassName$
|
|
14775
|
+
&.${rootClassName$f} {
|
|
14751
14776
|
display: flex;
|
|
14752
14777
|
align-items: center;
|
|
14753
14778
|
justify-content: space-between;
|
|
@@ -14805,7 +14830,7 @@ const DotTableSelectionToolbar = ({
|
|
|
14805
14830
|
onClearAll,
|
|
14806
14831
|
selectedRowsNumber
|
|
14807
14832
|
}) => {
|
|
14808
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14833
|
+
const rootClasses = useStylesWithRootClass(rootClassName$f, className);
|
|
14809
14834
|
return jsxs(StyledTableSelectionToolbar, {
|
|
14810
14835
|
ariaLabel: ariaLabel,
|
|
14811
14836
|
className: rootClasses,
|
|
@@ -14899,7 +14924,7 @@ const DotTable = ({
|
|
|
14899
14924
|
return onUpdateData ? data : stableSort(data, getComparator(order, orderBy));
|
|
14900
14925
|
};
|
|
14901
14926
|
const [pageData, setPageData] = useState(getSortedData().slice(0, rowsPerPage ? rowsPerPage : data.length));
|
|
14902
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14927
|
+
const rootClasses = useStylesWithRootClass(rootClassName$m, className, loading ? 'loading' : '');
|
|
14903
14928
|
const updateData = (newOrder, newOrderBy, newPage, newRowsPerPage) => {
|
|
14904
14929
|
const newData = stableSort(data, getComparator(newOrder, newOrderBy));
|
|
14905
14930
|
setPageData(newRowsPerPage ? newData.slice(newPage * newRowsPerPage, newPage * newRowsPerPage + newRowsPerPage) : newData);
|
|
@@ -15097,7 +15122,7 @@ const DotTableAction = ({
|
|
|
15097
15122
|
});
|
|
15098
15123
|
};
|
|
15099
15124
|
|
|
15100
|
-
const rootClassName$
|
|
15125
|
+
const rootClassName$e = 'dot-table-actions';
|
|
15101
15126
|
const TableActionsContainer = styled.div`
|
|
15102
15127
|
overflow: hidden;
|
|
15103
15128
|
text-overflow: clip;
|
|
@@ -15180,7 +15205,7 @@ const DotTableActions = ({
|
|
|
15180
15205
|
};
|
|
15181
15206
|
return jsxs(Fragment, {
|
|
15182
15207
|
children: [jsxs(TableActionsContainer, {
|
|
15183
|
-
className: rootClassName$
|
|
15208
|
+
className: rootClassName$e,
|
|
15184
15209
|
ref: wrapperRef,
|
|
15185
15210
|
children: [!showMenu && renderTableActions(), (showMenu || actions.length > 2) && jsx(DotIconButton, {
|
|
15186
15211
|
ariaLabel: "more options",
|
|
@@ -15204,12 +15229,12 @@ const DotTableActions = ({
|
|
|
15204
15229
|
});
|
|
15205
15230
|
};
|
|
15206
15231
|
|
|
15207
|
-
const rootClassName$
|
|
15232
|
+
const rootClassName$d = 'dot-tabs';
|
|
15208
15233
|
const StyledTabs = styled(Tabs)`
|
|
15209
15234
|
${({
|
|
15210
15235
|
theme
|
|
15211
15236
|
}) => css`
|
|
15212
|
-
&.${rootClassName$
|
|
15237
|
+
&.${rootClassName$d} {
|
|
15213
15238
|
&.MuiTabs-root {
|
|
15214
15239
|
width: 100%;
|
|
15215
15240
|
}
|
|
@@ -15254,7 +15279,7 @@ const DotTabs = ({
|
|
|
15254
15279
|
centered = false,
|
|
15255
15280
|
className,
|
|
15256
15281
|
color,
|
|
15257
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
15282
|
+
'data-pendoid': dataPendoId = rootClassName$d,
|
|
15258
15283
|
'data-testid': dataTestId,
|
|
15259
15284
|
initialValue = 0,
|
|
15260
15285
|
onChange,
|
|
@@ -15263,7 +15288,7 @@ const DotTabs = ({
|
|
|
15263
15288
|
variant = 'standard'
|
|
15264
15289
|
}) => {
|
|
15265
15290
|
const [value, setValue] = useState(initialValue);
|
|
15266
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15291
|
+
const rootClasses = useStylesWithRootClass(rootClassName$d, className);
|
|
15267
15292
|
useEffect(() => {
|
|
15268
15293
|
if (color) {
|
|
15269
15294
|
console.warn('DEPRECATED: `color` prop is deprecated in `<DotTabs>`, please remove any usage of it in your application.');
|
|
@@ -15317,9 +15342,9 @@ const DotTabs = ({
|
|
|
15317
15342
|
});
|
|
15318
15343
|
};
|
|
15319
15344
|
|
|
15320
|
-
const rootClassName$
|
|
15321
|
-
const containerClassName = `${rootClassName$
|
|
15322
|
-
const dropZoneClassName = `${rootClassName$
|
|
15345
|
+
const rootClassName$c = 'dot-file-upload';
|
|
15346
|
+
const containerClassName = `${rootClassName$c}-container`;
|
|
15347
|
+
const dropZoneClassName = `${rootClassName$c}-drop-zone`;
|
|
15323
15348
|
const StyledFileUploadContainer = styled.div`
|
|
15324
15349
|
${({
|
|
15325
15350
|
theme
|
|
@@ -15339,7 +15364,7 @@ const StyledFileUpload = styled.div`
|
|
|
15339
15364
|
${({
|
|
15340
15365
|
theme
|
|
15341
15366
|
}) => css`
|
|
15342
|
-
&.${rootClassName$
|
|
15367
|
+
&.${rootClassName$c}.${dropZoneClassName} {
|
|
15343
15368
|
align-items: center;
|
|
15344
15369
|
background: ${theme.palette.figma.background.level0.bckgGray};
|
|
15345
15370
|
border: 2px dashed ${theme.palette.figma.border.defaultButton};
|
|
@@ -15370,12 +15395,12 @@ const StyledFileUpload = styled.div`
|
|
|
15370
15395
|
`}
|
|
15371
15396
|
`;
|
|
15372
15397
|
|
|
15373
|
-
const rootClassName$
|
|
15398
|
+
const rootClassName$b = 'dot-file-list-item';
|
|
15374
15399
|
const StyledFileListItem = styled(StyledListItem)`
|
|
15375
15400
|
${({
|
|
15376
15401
|
theme
|
|
15377
15402
|
}) => css`
|
|
15378
|
-
&.${rootClassName$
|
|
15403
|
+
&.${rootClassName$b} {
|
|
15379
15404
|
border-bottom: 1px solid ${theme.palette.figma.border.default};
|
|
15380
15405
|
&:hover {
|
|
15381
15406
|
cursor: pointer;
|
|
@@ -15387,7 +15412,7 @@ const StyledFileListItem = styled(StyledListItem)`
|
|
|
15387
15412
|
outline: none;
|
|
15388
15413
|
}
|
|
15389
15414
|
|
|
15390
|
-
&.file-success:not(:hover, :focus-visible) .${rootClassName$
|
|
15415
|
+
&.file-success:not(:hover, :focus-visible) .${rootClassName$b}-end-icon {
|
|
15391
15416
|
i:before {
|
|
15392
15417
|
color: ${theme.palette.figma.success.normal};
|
|
15393
15418
|
}
|
|
@@ -15397,7 +15422,7 @@ const StyledFileListItem = styled(StyledListItem)`
|
|
|
15397
15422
|
}
|
|
15398
15423
|
}
|
|
15399
15424
|
|
|
15400
|
-
&.file-error:not(:hover, :focus-visible) .${rootClassName$
|
|
15425
|
+
&.file-error:not(:hover, :focus-visible) .${rootClassName$b}-end-icon {
|
|
15401
15426
|
i:before,
|
|
15402
15427
|
.MuiListItemText-secondary {
|
|
15403
15428
|
color: ${theme.palette.figma.destructive.normal};
|
|
@@ -15439,7 +15464,7 @@ const DotFileListItem = ({
|
|
|
15439
15464
|
onKeyPress,
|
|
15440
15465
|
tabIndex = 0
|
|
15441
15466
|
}) => {
|
|
15442
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15467
|
+
const rootClasses = useStylesWithRootClass(rootClassName$b, className, error ? 'file-error' : 'file-success');
|
|
15443
15468
|
const defaultIcon = error ? 'error-solid' : 'check-solid';
|
|
15444
15469
|
const [endIcon, setEndIcon] = useState(defaultIcon);
|
|
15445
15470
|
const handleItemClick = clickedFile => _event => onClick === null || onClick === void 0 ? void 0 : onClick(clickedFile);
|
|
@@ -15472,7 +15497,7 @@ const DotFileListItem = ({
|
|
|
15472
15497
|
})]
|
|
15473
15498
|
}), jsx(DotIconButton, {
|
|
15474
15499
|
ariaLabel: "delete file",
|
|
15475
|
-
className: `${rootClassName$
|
|
15500
|
+
className: `${rootClassName$b}-end-icon`,
|
|
15476
15501
|
"data-testid": dataTestId && `${dataTestId}-end-icon`,
|
|
15477
15502
|
disabled: disableDelete,
|
|
15478
15503
|
iconId: endIcon,
|
|
@@ -15596,7 +15621,7 @@ const DotFileUpload = ({
|
|
|
15596
15621
|
buttonOnly = false,
|
|
15597
15622
|
className,
|
|
15598
15623
|
contentErrors,
|
|
15599
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
15624
|
+
'data-pendoid': dataPendoId = rootClassName$c,
|
|
15600
15625
|
'data-testid': dataTestId,
|
|
15601
15626
|
disabled,
|
|
15602
15627
|
hideFilesList,
|
|
@@ -15609,7 +15634,7 @@ const DotFileUpload = ({
|
|
|
15609
15634
|
const [uploadedFiles, setUploadedFiles] = useState([]);
|
|
15610
15635
|
const [hasMaxFilesError, setHasMaxFilesError] = useState(false);
|
|
15611
15636
|
const isUploadDisabled = disabled || maxFiles && uploadedFiles.length >= maxFiles;
|
|
15612
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15637
|
+
const rootClasses = useStylesWithRootClass(rootClassName$c, className, !buttonOnly ? dropZoneClassName : '', isUploadDisabled ? 'disabled' : '');
|
|
15613
15638
|
const maxFilesClasses = useStylesWithRootClass('dot-max-files-message', hasMaxFilesError ? 'dot-max-files-reached' : '');
|
|
15614
15639
|
const allowMultiple = maxFiles === undefined || maxFiles > 1;
|
|
15615
15640
|
const setNewlyUploadedFiles = (acceptedFiles, fileRejections) => {
|
|
@@ -15681,12 +15706,12 @@ const DotFileUpload = ({
|
|
|
15681
15706
|
});
|
|
15682
15707
|
};
|
|
15683
15708
|
|
|
15684
|
-
const rootClassName$
|
|
15709
|
+
const rootClassName$a = 'dot-divider';
|
|
15685
15710
|
const StyledDivider = styled(Divider)`
|
|
15686
15711
|
${({
|
|
15687
15712
|
theme
|
|
15688
15713
|
}) => css`
|
|
15689
|
-
&.${rootClassName$
|
|
15714
|
+
&.${rootClassName$a} {
|
|
15690
15715
|
color: ${theme.palette.figma.border.darker};
|
|
15691
15716
|
|
|
15692
15717
|
.MuiDivider-light {
|
|
@@ -15706,7 +15731,7 @@ const DotDivider = ({
|
|
|
15706
15731
|
orientation,
|
|
15707
15732
|
variant
|
|
15708
15733
|
}) => {
|
|
15709
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15734
|
+
const rootClasses = useStylesWithRootClass(rootClassName$a, className);
|
|
15710
15735
|
return jsx(StyledDivider, {
|
|
15711
15736
|
absolute: absolute,
|
|
15712
15737
|
"aria-label": ariaLabel,
|
|
@@ -15733,7 +15758,7 @@ const DotPopper = ({
|
|
|
15733
15758
|
open,
|
|
15734
15759
|
placement
|
|
15735
15760
|
}) => {
|
|
15736
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15761
|
+
const rootClasses = useStylesWithRootClass(rootClassName$16, className);
|
|
15737
15762
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15738
15763
|
const handleClickAway = event => {
|
|
15739
15764
|
if (onClickAway && (!anchorEl || !anchorEl.contains(event.currentTarget))) {
|
|
@@ -15787,14 +15812,14 @@ const getListItemLayout = listItems => {
|
|
|
15787
15812
|
}));
|
|
15788
15813
|
};
|
|
15789
15814
|
|
|
15790
|
-
const rootClassName$
|
|
15815
|
+
const rootClassName$9 = 'dot-draggable-list';
|
|
15791
15816
|
const listItemClassName = 'dot-draggable-list-item';
|
|
15792
15817
|
const StyledDraggableList = styled.div`
|
|
15793
15818
|
${({
|
|
15794
15819
|
theme,
|
|
15795
15820
|
draggableHandle
|
|
15796
15821
|
}) => css`
|
|
15797
|
-
&.${rootClassName$
|
|
15822
|
+
&.${rootClassName$9} {
|
|
15798
15823
|
padding: ${theme.spacing(1, 0)};
|
|
15799
15824
|
position: relative;
|
|
15800
15825
|
|
|
@@ -15829,7 +15854,7 @@ const ListGridLayout = WidthProvider(GridLayout);
|
|
|
15829
15854
|
const DotDraggableList = ({
|
|
15830
15855
|
ariaLabel,
|
|
15831
15856
|
className,
|
|
15832
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
15857
|
+
'data-pendoid': dataPendoId = rootClassName$9,
|
|
15833
15858
|
'data-testid': dataTestId,
|
|
15834
15859
|
disableDrag,
|
|
15835
15860
|
draggableHandle,
|
|
@@ -15838,7 +15863,7 @@ const DotDraggableList = ({
|
|
|
15838
15863
|
rowHeight = DEFAULT_LIST_ITEM_HEIGHT,
|
|
15839
15864
|
width = DEFAULT_LIST_WIDTH
|
|
15840
15865
|
}) => {
|
|
15841
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15866
|
+
const rootClasses = useStylesWithRootClass(rootClassName$9, className, draggableHandle ? 'with-draggable-handle' : '');
|
|
15842
15867
|
const listItemClasses = useStylesWithRootClass(listItemClassName, draggableHandle && !disableDrag ? 'with-handle-grab-cursor' : '', draggableHandle || disableDrag ? 'with-default-cursor' : '');
|
|
15843
15868
|
const listWidth = isNumber(width) ? `${width}px` : width;
|
|
15844
15869
|
const [orderedItems, setOrderedItems] = useState([]);
|
|
@@ -15885,12 +15910,12 @@ const DotDraggableList = ({
|
|
|
15885
15910
|
});
|
|
15886
15911
|
};
|
|
15887
15912
|
|
|
15888
|
-
const rootClassName$
|
|
15913
|
+
const rootClassName$8 = 'dot-linear-progress';
|
|
15889
15914
|
const StyledLinearProgress = styled(LinearProgress)`
|
|
15890
15915
|
${({
|
|
15891
15916
|
theme
|
|
15892
15917
|
}) => css`
|
|
15893
|
-
&.${rootClassName$
|
|
15918
|
+
&.${rootClassName$8} {
|
|
15894
15919
|
&.MuiLinearProgress-colorError {
|
|
15895
15920
|
color: ${theme.palette.figma.inProgress.error};
|
|
15896
15921
|
}
|
|
@@ -15922,7 +15947,7 @@ const DotLinearProgress = ({
|
|
|
15922
15947
|
valueBuffer,
|
|
15923
15948
|
variant = 'indeterminate'
|
|
15924
15949
|
}) => {
|
|
15925
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15950
|
+
const rootClasses = useStylesWithRootClass(rootClassName$8, className);
|
|
15926
15951
|
useEffect(() => {
|
|
15927
15952
|
if (!ariaLabel) {
|
|
15928
15953
|
console.warn('a11y: DotLinearProgress must have an ariaLabel to describe the progress bar');
|
|
@@ -15973,7 +15998,7 @@ const DotDatePicker = ({
|
|
|
15973
15998
|
autoFocus = false,
|
|
15974
15999
|
className,
|
|
15975
16000
|
closeOnSelect = true,
|
|
15976
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
16001
|
+
'data-pendoid': dataPendoId = rootClassName$B,
|
|
15977
16002
|
'data-testid': dataTestId,
|
|
15978
16003
|
defaultValue,
|
|
15979
16004
|
disableOpenPicker,
|
|
@@ -16013,7 +16038,7 @@ const DotDatePicker = ({
|
|
|
16013
16038
|
const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
|
|
16014
16039
|
const isInputReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
|
|
16015
16040
|
const inputRef = useRef(null);
|
|
16016
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
16041
|
+
const rootClasses = useStylesWithRootClass(rootClassName$B, className, isInputReadOnly ? 'read-only' : '');
|
|
16017
16042
|
const containerClasses = useStylesWithRootClass(containerClassName$2, fullWidth ? 'full-width' : '', className);
|
|
16018
16043
|
const focusInput = ref => {
|
|
16019
16044
|
setTimeout(() => {
|
|
@@ -16232,7 +16257,7 @@ const DotTimePicker = ({
|
|
|
16232
16257
|
ariaLabel,
|
|
16233
16258
|
autoFocus = false,
|
|
16234
16259
|
className,
|
|
16235
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
16260
|
+
'data-pendoid': dataPendoId = rootClassName$A,
|
|
16236
16261
|
'data-testid': dataTestId,
|
|
16237
16262
|
defaultValue,
|
|
16238
16263
|
disableOpenPicker = false,
|
|
@@ -16264,7 +16289,7 @@ const DotTimePicker = ({
|
|
|
16264
16289
|
const hasValueWithoutChangeHandler = value !== undefined && onChange === undefined;
|
|
16265
16290
|
const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
|
|
16266
16291
|
const isComponentReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
|
|
16267
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
16292
|
+
const rootClasses = useStylesWithRootClass(rootClassName$A, className, isComponentReadOnly ? 'read-only' : '');
|
|
16268
16293
|
const containerClasses = useStylesWithRootClass(containerClassName$1, fullWidth ? 'full-width' : '', className);
|
|
16269
16294
|
const inputRef = useRef(null);
|
|
16270
16295
|
const [isPickerOpened, setIsPickerOpened] = useState(false);
|
|
@@ -16556,13 +16581,13 @@ const DotTimePicker = ({
|
|
|
16556
16581
|
});
|
|
16557
16582
|
};
|
|
16558
16583
|
|
|
16559
|
-
const rootClassName$
|
|
16584
|
+
const rootClassName$7 = 'dot-carousel';
|
|
16560
16585
|
const StyledCarousel = styled.div`
|
|
16561
16586
|
${({
|
|
16562
16587
|
backgroundColor,
|
|
16563
16588
|
theme
|
|
16564
16589
|
}) => css`
|
|
16565
|
-
&.${rootClassName$
|
|
16590
|
+
&.${rootClassName$7} {
|
|
16566
16591
|
display: flex;
|
|
16567
16592
|
flex-direction: column;
|
|
16568
16593
|
justify-content: space-between;
|
|
@@ -16661,7 +16686,7 @@ const DotCarousel = ({
|
|
|
16661
16686
|
progressIndicator,
|
|
16662
16687
|
showPagesButtons = true
|
|
16663
16688
|
}) => {
|
|
16664
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
16689
|
+
const rootClasses = useStylesWithRootClass(rootClassName$7, className, backgroundColor ? 'with-background-color' : '');
|
|
16665
16690
|
const rightNavigationButtonClasses = useStylesWithRootClass('carousel-right-arrow', displayNavigationButtons);
|
|
16666
16691
|
const leftNavigationButtonClasses = useStylesWithRootClass('carousel-left-arrow', displayNavigationButtons);
|
|
16667
16692
|
const createUuids = () => {
|
|
@@ -16812,13 +16837,13 @@ const DotCarousel = ({
|
|
|
16812
16837
|
});
|
|
16813
16838
|
};
|
|
16814
16839
|
|
|
16815
|
-
const rootClassName = 'dot-sticky-with-border';
|
|
16840
|
+
const rootClassName$6 = 'dot-sticky-with-border';
|
|
16816
16841
|
const StyledStickyWithBorder = styled.div`
|
|
16817
16842
|
${({
|
|
16818
16843
|
pinnedStickyBorder,
|
|
16819
16844
|
unpinnedStickyBorder
|
|
16820
16845
|
}) => css`
|
|
16821
|
-
&.${rootClassName} {
|
|
16846
|
+
&.${rootClassName$6} {
|
|
16822
16847
|
position: sticky;
|
|
16823
16848
|
top: -1px;
|
|
16824
16849
|
|
|
@@ -16846,7 +16871,7 @@ const DotStickyWithBorder = ({
|
|
|
16846
16871
|
}) => {
|
|
16847
16872
|
const [isPinned, setIsPinned] = useState(false);
|
|
16848
16873
|
const ref = useRef();
|
|
16849
|
-
const rootClasses = useStylesWithRootClass(rootClassName, className, isPinned ? 'pinned' : 'unpinned');
|
|
16874
|
+
const rootClasses = useStylesWithRootClass(rootClassName$6, className, isPinned ? 'pinned' : 'unpinned');
|
|
16850
16875
|
useEffect(() => {
|
|
16851
16876
|
const element = ref.current;
|
|
16852
16877
|
const observer = new IntersectionObserver(([e]) => setIsPinned(e.intersectionRatio < 1), {
|
|
@@ -16868,4 +16893,499 @@ const DotStickyWithBorder = ({
|
|
|
16868
16893
|
});
|
|
16869
16894
|
};
|
|
16870
16895
|
|
|
16871
|
-
|
|
16896
|
+
const rootClassName$5 = 'dot--board';
|
|
16897
|
+
const classNames$5 = {
|
|
16898
|
+
root: rootClassName$5,
|
|
16899
|
+
spacingNormal: `${rootClassName$5}-normal`,
|
|
16900
|
+
spacingDense: `${rootClassName$5}-dense`,
|
|
16901
|
+
loading: `${rootClassName$5}-loading`
|
|
16902
|
+
};
|
|
16903
|
+
const StyledBoard = styled.div`
|
|
16904
|
+
${({
|
|
16905
|
+
theme
|
|
16906
|
+
}) => css`
|
|
16907
|
+
&.${rootClassName$5} {
|
|
16908
|
+
display: flex;
|
|
16909
|
+
overflow-x: auto;
|
|
16910
|
+
flex: 1;
|
|
16911
|
+
max-height: calc(100vh - ${theme.spacing(4)});
|
|
16912
|
+
}
|
|
16913
|
+
|
|
16914
|
+
@media (max-width: 650px) {
|
|
16915
|
+
&.${rootClassName$5} {
|
|
16916
|
+
justify-content: center;
|
|
16917
|
+
}
|
|
16918
|
+
}
|
|
16919
|
+
|
|
16920
|
+
&.${classNames$5.spacingNormal} {
|
|
16921
|
+
gap: ${theme.spacing(1)};
|
|
16922
|
+
}
|
|
16923
|
+
|
|
16924
|
+
&.${classNames$5.spacingDense} {
|
|
16925
|
+
gap: ${theme.spacing(0.5)};
|
|
16926
|
+
}
|
|
16927
|
+
`}
|
|
16928
|
+
`;
|
|
16929
|
+
const StyledLoadingIndicator = styled.div`
|
|
16930
|
+
${({
|
|
16931
|
+
theme
|
|
16932
|
+
}) => css`
|
|
16933
|
+
&.${classNames$5.loading} {
|
|
16934
|
+
position: absolute;
|
|
16935
|
+
background-color: rgba(255, 255, 255, 0.644);
|
|
16936
|
+
/*dim the background*/
|
|
16937
|
+
width: 100%;
|
|
16938
|
+
height: 100%;
|
|
16939
|
+
color: black;
|
|
16940
|
+
text-align: center;
|
|
16941
|
+
z-index: 1000;
|
|
16942
|
+
|
|
16943
|
+
> span {
|
|
16944
|
+
position: 'absolute'
|
|
16945
|
+
top: 30%;
|
|
16946
|
+
left: 50%;
|
|
16947
|
+
-webkit-transform: translate(-30%, -50%);
|
|
16948
|
+
transform: translate(-30%, -50%);
|
|
16949
|
+
}
|
|
16950
|
+
}
|
|
16951
|
+
`}
|
|
16952
|
+
`;
|
|
16953
|
+
|
|
16954
|
+
const BoardStatusContext = createContext({
|
|
16955
|
+
spacing: 'normal'
|
|
16956
|
+
});
|
|
16957
|
+
const useBoardStatus = () => useContext(BoardStatusContext);
|
|
16958
|
+
const BoardStatusProvider = ({
|
|
16959
|
+
children,
|
|
16960
|
+
spacing
|
|
16961
|
+
}) => {
|
|
16962
|
+
return jsx(BoardStatusContext.Provider, {
|
|
16963
|
+
value: {
|
|
16964
|
+
spacing: spacing
|
|
16965
|
+
},
|
|
16966
|
+
children: children
|
|
16967
|
+
});
|
|
16968
|
+
};
|
|
16969
|
+
|
|
16970
|
+
/**
|
|
16971
|
+
* A flexible framework component for creating a board.
|
|
16972
|
+
* Subcomponents may be used or omitted as desired
|
|
16973
|
+
* `useBoardStatus` can be used to get state information about the board
|
|
16974
|
+
*/
|
|
16975
|
+
const Board = React__default.forwardRef(({
|
|
16976
|
+
ariaLabel,
|
|
16977
|
+
'data-testid': dataTestId,
|
|
16978
|
+
children,
|
|
16979
|
+
className,
|
|
16980
|
+
loading = false,
|
|
16981
|
+
spacing = 'normal',
|
|
16982
|
+
style
|
|
16983
|
+
}, ref) => {
|
|
16984
|
+
const classNameBySpacing = {
|
|
16985
|
+
normal: classNames$5.spacingNormal,
|
|
16986
|
+
dense: classNames$5.spacingDense
|
|
16987
|
+
};
|
|
16988
|
+
const spacingClassName = classNameBySpacing[spacing];
|
|
16989
|
+
const rootClasses = useStylesWithRootClass(classNames$5.root, spacingClassName, className);
|
|
16990
|
+
const loadingIndicator = jsx(StyledLoadingIndicator, {
|
|
16991
|
+
"data-testid": `${dataTestId}-loading`,
|
|
16992
|
+
className: classNames$5.loading,
|
|
16993
|
+
children: jsx("span", {
|
|
16994
|
+
children: jsx(DotProgress, {
|
|
16995
|
+
tooltip: "Loading Data...",
|
|
16996
|
+
color: "primary",
|
|
16997
|
+
variant: "indeterminate",
|
|
16998
|
+
ariaLabel: "Loading..."
|
|
16999
|
+
})
|
|
17000
|
+
})
|
|
17001
|
+
});
|
|
17002
|
+
if (loading) return loadingIndicator;
|
|
17003
|
+
return jsx(StyledBoard, {
|
|
17004
|
+
"aria-label": ariaLabel,
|
|
17005
|
+
style: style,
|
|
17006
|
+
"data-testid": dataTestId,
|
|
17007
|
+
className: rootClasses,
|
|
17008
|
+
ref: ref,
|
|
17009
|
+
children: jsx(BoardStatusProvider, {
|
|
17010
|
+
spacing: spacing,
|
|
17011
|
+
children: children
|
|
17012
|
+
})
|
|
17013
|
+
});
|
|
17014
|
+
});
|
|
17015
|
+
|
|
17016
|
+
const rootClassName$4 = 'dot--board-column';
|
|
17017
|
+
const classNames$4 = {
|
|
17018
|
+
root: rootClassName$4,
|
|
17019
|
+
spacingNormal: `${rootClassName$4}-normal`,
|
|
17020
|
+
spacingDense: `${rootClassName$4}-dense`,
|
|
17021
|
+
collapse: `${rootClassName$4}-collapse`
|
|
17022
|
+
};
|
|
17023
|
+
const StyledBoardColumn = styled.div`
|
|
17024
|
+
${({
|
|
17025
|
+
theme
|
|
17026
|
+
}) => css`
|
|
17027
|
+
&.${rootClassName$4} {
|
|
17028
|
+
display: flex;
|
|
17029
|
+
flex-direction: column;
|
|
17030
|
+
overflow: hidden;
|
|
17031
|
+
min-height: ${theme.spacing(31)};
|
|
17032
|
+
background-color: ${theme.palette.figma.background.level0.bckgGray};
|
|
17033
|
+
border-radius: ${theme.spacing(0.5)};
|
|
17034
|
+
margin-bottom: ${theme.spacing(0.5)}
|
|
17035
|
+
flex: 1;
|
|
17036
|
+
}
|
|
17037
|
+
|
|
17038
|
+
&.${classNames$4.collapse} {
|
|
17039
|
+
width: fit-content;
|
|
17040
|
+
min-width: fit-content;
|
|
17041
|
+
max-width: ${theme.spacing(2)};
|
|
17042
|
+
}
|
|
17043
|
+
|
|
17044
|
+
&.${classNames$4.spacingNormal} {
|
|
17045
|
+
width: ${theme.spacing(42)};
|
|
17046
|
+
min-width: ${theme.spacing(42)};
|
|
17047
|
+
}
|
|
17048
|
+
|
|
17049
|
+
&.${classNames$4.spacingDense} {
|
|
17050
|
+
min-width: ${theme.spacing(31)};
|
|
17051
|
+
max-width: ${theme.spacing(42)};
|
|
17052
|
+
width: auto;
|
|
17053
|
+
}
|
|
17054
|
+
`}
|
|
17055
|
+
`;
|
|
17056
|
+
|
|
17057
|
+
const BoardColumnStatusContext = createContext({
|
|
17058
|
+
collapsed: false,
|
|
17059
|
+
setCollapsed: () => {
|
|
17060
|
+
return;
|
|
17061
|
+
}
|
|
17062
|
+
});
|
|
17063
|
+
const useColumnStatus = () => useContext(BoardColumnStatusContext);
|
|
17064
|
+
const ColumnStatusProvider = ({
|
|
17065
|
+
children,
|
|
17066
|
+
onCollapseToggle
|
|
17067
|
+
}) => {
|
|
17068
|
+
const [isCollapsed, setIsCollapsed] = useState(false);
|
|
17069
|
+
useEffect(() => {
|
|
17070
|
+
if (onCollapseToggle) onCollapseToggle(isCollapsed);
|
|
17071
|
+
}, [isCollapsed]);
|
|
17072
|
+
return jsx(BoardColumnStatusContext.Provider, {
|
|
17073
|
+
value: {
|
|
17074
|
+
collapsed: isCollapsed,
|
|
17075
|
+
setCollapsed: setIsCollapsed
|
|
17076
|
+
},
|
|
17077
|
+
children: children
|
|
17078
|
+
});
|
|
17079
|
+
};
|
|
17080
|
+
|
|
17081
|
+
/**
|
|
17082
|
+
* Represents a single column in the board.
|
|
17083
|
+
* useColumnStatus can be used to get state information about the column
|
|
17084
|
+
*/
|
|
17085
|
+
const BoardColumn = React__default.forwardRef(({
|
|
17086
|
+
ariaLabel,
|
|
17087
|
+
'data-testid': dataTestId,
|
|
17088
|
+
children,
|
|
17089
|
+
className,
|
|
17090
|
+
style
|
|
17091
|
+
}, ref) => {
|
|
17092
|
+
const classNameBySpacing = {
|
|
17093
|
+
normal: classNames$4.spacingNormal,
|
|
17094
|
+
dense: classNames$4.spacingDense
|
|
17095
|
+
};
|
|
17096
|
+
const {
|
|
17097
|
+
spacing
|
|
17098
|
+
} = useBoardStatus();
|
|
17099
|
+
const [spacingClassName, setSpacingClassName] = useState(classNameBySpacing[spacing]);
|
|
17100
|
+
const rootClasses = useStylesWithRootClass(classNames$4.root, spacingClassName, className);
|
|
17101
|
+
const handleCollapseToggle = isCollapsed => {
|
|
17102
|
+
const className = isCollapsed ? classNames$4.collapse : classNameBySpacing[spacing];
|
|
17103
|
+
setSpacingClassName(className);
|
|
17104
|
+
};
|
|
17105
|
+
return jsx(StyledBoardColumn, {
|
|
17106
|
+
"aria-label": ariaLabel,
|
|
17107
|
+
"data-testid": dataTestId,
|
|
17108
|
+
className: rootClasses,
|
|
17109
|
+
style: style,
|
|
17110
|
+
ref: ref,
|
|
17111
|
+
children: jsx(ColumnStatusProvider, {
|
|
17112
|
+
onCollapseToggle: handleCollapseToggle,
|
|
17113
|
+
children: children
|
|
17114
|
+
})
|
|
17115
|
+
});
|
|
17116
|
+
});
|
|
17117
|
+
|
|
17118
|
+
const rootClassName$3 = 'dot--board-column-header';
|
|
17119
|
+
const classNames$3 = {
|
|
17120
|
+
root: rootClassName$3,
|
|
17121
|
+
spacingNormal: `${rootClassName$3}-normal`,
|
|
17122
|
+
spacingDense: `${rootClassName$3}-dense`,
|
|
17123
|
+
colorBar: `${rootClassName$3}-color-bar`,
|
|
17124
|
+
title: `${rootClassName$3}-title`
|
|
17125
|
+
};
|
|
17126
|
+
const StyledBoardColumnHeader = styled.div`
|
|
17127
|
+
${({
|
|
17128
|
+
theme
|
|
17129
|
+
}) => css`
|
|
17130
|
+
&.${classNames$3.root} {
|
|
17131
|
+
display: flex;
|
|
17132
|
+
flex-direction: column;
|
|
17133
|
+
}
|
|
17134
|
+
|
|
17135
|
+
> .${classNames$3.colorBar} {
|
|
17136
|
+
height: ${theme.spacing(0.5)};
|
|
17137
|
+
width: 100%;
|
|
17138
|
+
}
|
|
17139
|
+
|
|
17140
|
+
> .${classNames$3.title} {
|
|
17141
|
+
display: flex;
|
|
17142
|
+
justify-content: space-between;
|
|
17143
|
+
}
|
|
17144
|
+
|
|
17145
|
+
&.${classNames$3.spacingNormal} > .${classNames$3.title} {
|
|
17146
|
+
padding: ${theme.spacing(1)};
|
|
17147
|
+
}
|
|
17148
|
+
|
|
17149
|
+
&.${classNames$3.spacingDense} > .${classNames$3.title} {
|
|
17150
|
+
padding: ${theme.spacing(0.5)};
|
|
17151
|
+
}
|
|
17152
|
+
`}
|
|
17153
|
+
`;
|
|
17154
|
+
|
|
17155
|
+
/**
|
|
17156
|
+
* Header for the column. Expects lineBarHexColor to have the form: "#XXXXXX"
|
|
17157
|
+
*/
|
|
17158
|
+
const BoardColumnHeader = ({
|
|
17159
|
+
ariaLabel,
|
|
17160
|
+
'data-testid': dataTestId,
|
|
17161
|
+
children,
|
|
17162
|
+
className,
|
|
17163
|
+
lineBarHexColor,
|
|
17164
|
+
style
|
|
17165
|
+
}) => {
|
|
17166
|
+
const classNameBySpacing = {
|
|
17167
|
+
normal: classNames$3.spacingNormal,
|
|
17168
|
+
dense: classNames$3.spacingDense
|
|
17169
|
+
};
|
|
17170
|
+
const {
|
|
17171
|
+
spacing
|
|
17172
|
+
} = useBoardStatus();
|
|
17173
|
+
const spacingClassName = classNameBySpacing[spacing];
|
|
17174
|
+
const rootClasses = useStylesWithRootClass(classNames$3.root, spacingClassName, className);
|
|
17175
|
+
return jsxs(StyledBoardColumnHeader, {
|
|
17176
|
+
"aria-label": ariaLabel,
|
|
17177
|
+
"data-testid": dataTestId,
|
|
17178
|
+
className: rootClasses,
|
|
17179
|
+
style: style,
|
|
17180
|
+
children: [jsx("div", {
|
|
17181
|
+
className: classNames$3.colorBar,
|
|
17182
|
+
style: {
|
|
17183
|
+
background: lineBarHexColor || 'inherit'
|
|
17184
|
+
}
|
|
17185
|
+
}), jsx("div", {
|
|
17186
|
+
className: classNames$3.title,
|
|
17187
|
+
children: children
|
|
17188
|
+
})]
|
|
17189
|
+
});
|
|
17190
|
+
};
|
|
17191
|
+
|
|
17192
|
+
const rootClassName$2 = 'dot--board-column-items';
|
|
17193
|
+
const classNames$2 = {
|
|
17194
|
+
root: rootClassName$2,
|
|
17195
|
+
spacingNormal: `${rootClassName$2}-normal`,
|
|
17196
|
+
spacingDense: `${rootClassName$2}-dense`
|
|
17197
|
+
};
|
|
17198
|
+
const StyledBoardColumnItems = styled.div`
|
|
17199
|
+
${({
|
|
17200
|
+
theme
|
|
17201
|
+
}) => css`
|
|
17202
|
+
&.${classNames$2.root} {
|
|
17203
|
+
overflow-y: auto;
|
|
17204
|
+
height: 100%;
|
|
17205
|
+
display: flex;
|
|
17206
|
+
gap: ${theme.spacing(0.5)};
|
|
17207
|
+
flex-direction: column;
|
|
17208
|
+
}
|
|
17209
|
+
|
|
17210
|
+
&.${classNames$2.spacingNormal} {
|
|
17211
|
+
padding: 0 ${theme.spacing(1)};
|
|
17212
|
+
}
|
|
17213
|
+
|
|
17214
|
+
&.${classNames$2.spacingDense} {
|
|
17215
|
+
padding: 0 ${theme.spacing(0.5)};
|
|
17216
|
+
}
|
|
17217
|
+
`}
|
|
17218
|
+
`;
|
|
17219
|
+
|
|
17220
|
+
/**
|
|
17221
|
+
* Container for items within a column
|
|
17222
|
+
*/
|
|
17223
|
+
const BoardColumnItems = ({
|
|
17224
|
+
ariaLabel,
|
|
17225
|
+
'data-testid': dataTestId,
|
|
17226
|
+
children,
|
|
17227
|
+
className,
|
|
17228
|
+
style
|
|
17229
|
+
}) => {
|
|
17230
|
+
const classNameBySpacing = {
|
|
17231
|
+
normal: classNames$2.spacingNormal,
|
|
17232
|
+
dense: classNames$2.spacingDense
|
|
17233
|
+
};
|
|
17234
|
+
const {
|
|
17235
|
+
spacing
|
|
17236
|
+
} = useBoardStatus();
|
|
17237
|
+
const spacingClassName = classNameBySpacing[spacing];
|
|
17238
|
+
const rootClasses = useStylesWithRootClass(classNames$2.root, spacingClassName, className);
|
|
17239
|
+
return jsx(StyledBoardColumnItems, {
|
|
17240
|
+
"aria-label": ariaLabel,
|
|
17241
|
+
"data-testid": dataTestId,
|
|
17242
|
+
className: rootClasses,
|
|
17243
|
+
style: style,
|
|
17244
|
+
children: children
|
|
17245
|
+
});
|
|
17246
|
+
};
|
|
17247
|
+
|
|
17248
|
+
const rootClassName$1 = 'dot--board-column-action-bar';
|
|
17249
|
+
const classNames$1 = {
|
|
17250
|
+
root: rootClassName$1,
|
|
17251
|
+
spacingNormal: `${rootClassName$1}-normal`,
|
|
17252
|
+
spacingDense: `${rootClassName$1}-dense`
|
|
17253
|
+
};
|
|
17254
|
+
const StyledBoardColumnActionBar = styled(DotActionToolbar)`
|
|
17255
|
+
${({
|
|
17256
|
+
theme
|
|
17257
|
+
}) => css`
|
|
17258
|
+
&.${classNames$1.root} {
|
|
17259
|
+
display: flex;
|
|
17260
|
+
justify-content: space-around;
|
|
17261
|
+
}
|
|
17262
|
+
|
|
17263
|
+
&.${classNames$1.spacingNormal} {
|
|
17264
|
+
padding: 0 ${theme.spacing(1)};
|
|
17265
|
+
}
|
|
17266
|
+
|
|
17267
|
+
&.${classNames$1.spacingDense} {
|
|
17268
|
+
padding: 0;
|
|
17269
|
+
}
|
|
17270
|
+
`}
|
|
17271
|
+
`;
|
|
17272
|
+
|
|
17273
|
+
/*
|
|
17274
|
+
Represents an action bar within the column.
|
|
17275
|
+
*/
|
|
17276
|
+
const BoardColumnActionBar = ({
|
|
17277
|
+
ariaLabel,
|
|
17278
|
+
'data-testid': dataTestId,
|
|
17279
|
+
children,
|
|
17280
|
+
className
|
|
17281
|
+
}) => {
|
|
17282
|
+
const classNameBySpacing = {
|
|
17283
|
+
normal: classNames$1.spacingNormal,
|
|
17284
|
+
dense: classNames$1.spacingDense
|
|
17285
|
+
};
|
|
17286
|
+
const {
|
|
17287
|
+
spacing
|
|
17288
|
+
} = useBoardStatus();
|
|
17289
|
+
const spacingClassName = classNameBySpacing[spacing];
|
|
17290
|
+
const rootClasses = useStylesWithRootClass(classNames$1.root, spacingClassName, className);
|
|
17291
|
+
return jsx(StyledBoardColumnActionBar, {
|
|
17292
|
+
ariaLabel: ariaLabel,
|
|
17293
|
+
"data-testid": dataTestId,
|
|
17294
|
+
className: rootClasses,
|
|
17295
|
+
children: children
|
|
17296
|
+
});
|
|
17297
|
+
};
|
|
17298
|
+
|
|
17299
|
+
/**
|
|
17300
|
+
* Optional component. Displays any children when the column is expanded.
|
|
17301
|
+
*/
|
|
17302
|
+
const BoardColumnExpand = ({
|
|
17303
|
+
children
|
|
17304
|
+
}) => {
|
|
17305
|
+
const {
|
|
17306
|
+
collapsed
|
|
17307
|
+
} = useColumnStatus();
|
|
17308
|
+
return useMemo(() => collapsed ? null : children, [children, collapsed]);
|
|
17309
|
+
};
|
|
17310
|
+
|
|
17311
|
+
/**
|
|
17312
|
+
* Optional component. Displays any children when the column is collapsed.
|
|
17313
|
+
*/
|
|
17314
|
+
const BoardColumnCollapse = ({
|
|
17315
|
+
children
|
|
17316
|
+
}) => {
|
|
17317
|
+
const {
|
|
17318
|
+
collapsed
|
|
17319
|
+
} = useColumnStatus();
|
|
17320
|
+
return useMemo(() => collapsed ? children : null, [children, collapsed]);
|
|
17321
|
+
};
|
|
17322
|
+
|
|
17323
|
+
const rootClassName = 'dot--board-column-header';
|
|
17324
|
+
const classNames = {
|
|
17325
|
+
root: rootClassName,
|
|
17326
|
+
spacingNormal: `${rootClassName}-normal`,
|
|
17327
|
+
spacingDense: `${rootClassName}-dense`,
|
|
17328
|
+
title: `${rootClassName}-title`,
|
|
17329
|
+
text: `${rootClassName}-text`
|
|
17330
|
+
};
|
|
17331
|
+
const StyledBoardColumnSummary = styled.div`
|
|
17332
|
+
${({
|
|
17333
|
+
theme
|
|
17334
|
+
}) => css`
|
|
17335
|
+
&.${classNames.root} {
|
|
17336
|
+
height: 100%;
|
|
17337
|
+
padding: 0 ${theme.spacing(1)};
|
|
17338
|
+
writing-mode: vertical-lr;
|
|
17339
|
+
text-orientation: sideways;
|
|
17340
|
+
overflow-y: hidden;
|
|
17341
|
+
}
|
|
17342
|
+
|
|
17343
|
+
> .${classNames.title} {
|
|
17344
|
+
display: inline-block;
|
|
17345
|
+
margin-bottom: ${theme.spacing(1)};
|
|
17346
|
+
}
|
|
17347
|
+
|
|
17348
|
+
> .${classNames.text} {
|
|
17349
|
+
font-weight: 600;
|
|
17350
|
+
color: #667385
|
|
17351
|
+
}
|
|
17352
|
+
`}
|
|
17353
|
+
`;
|
|
17354
|
+
|
|
17355
|
+
/**
|
|
17356
|
+
* A summary component for a a column. Displays test verticially instead of horizonally.
|
|
17357
|
+
*/
|
|
17358
|
+
const BoardColumnSummary = ({
|
|
17359
|
+
ariaLabel,
|
|
17360
|
+
'data-testid': dataTestId,
|
|
17361
|
+
className,
|
|
17362
|
+
style,
|
|
17363
|
+
text,
|
|
17364
|
+
title
|
|
17365
|
+
}) => {
|
|
17366
|
+
const classNameBySpacing = {
|
|
17367
|
+
normal: classNames.spacingNormal,
|
|
17368
|
+
dense: classNames.spacingDense
|
|
17369
|
+
};
|
|
17370
|
+
const {
|
|
17371
|
+
spacing
|
|
17372
|
+
} = useBoardStatus();
|
|
17373
|
+
const spacingClassName = classNameBySpacing[spacing];
|
|
17374
|
+
const rootClasses = useStylesWithRootClass(classNames.root, spacingClassName, className);
|
|
17375
|
+
return jsxs(StyledBoardColumnSummary, {
|
|
17376
|
+
"aria-label": ariaLabel,
|
|
17377
|
+
"data-testid": dataTestId,
|
|
17378
|
+
className: rootClasses,
|
|
17379
|
+
style: style,
|
|
17380
|
+
children: [jsx(DotTypography, {
|
|
17381
|
+
className: classNames.title,
|
|
17382
|
+
variant: "h4",
|
|
17383
|
+
children: title
|
|
17384
|
+
}), jsx("span", {
|
|
17385
|
+
className: classNames.text,
|
|
17386
|
+
children: text
|
|
17387
|
+
})]
|
|
17388
|
+
});
|
|
17389
|
+
};
|
|
17390
|
+
|
|
17391
|
+
export { ApiError$1 as ApiError, BoardStatusProvider, Cell, ColumnStatusProvider, CreateUUID, CssCell, CssGrid, CssGridDebug, DashboardAppTypeOptions, DatePickerKeydownContext, Daytime, DotAccordion, DotActionToolbar, DotAlertBanner, DotAppLogo, DotAppSwitcher, DotAppToolbar, DotAutoComplete, DotAvatar, DotAvatarGroup, 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, DotClickAwayListener, DotConfirmationDialog, DotCopyButton, DotCoreApiProvider, DotDashboardActions, DotDashboardDialog, DotDashboardHeader, DotDashboardOptionsMenu, DotDashboardPublishConfirm, DotDatePicker, DotDialog, DotDivider, DotDraggableList, DotDrawer, DotDynamicForm, DotEmptyFilterState, DotEmptyState, DotFileListItem, DotFileUpload, DotForm, DotFormGroup, DotHeaderRow, DotIcon, DotIconButton, DotIllustration, DotInlineEdit, DotInputSelect, DotInputText, DotLinearProgress, DotLink, DotList, DotMenu, DotMetadataApiProvider, DotNavigationRail, DotPill, DotPopper, DotProgress, DotProgressButton, DotRadioButton, DotRadioGroup, DotSidebar, DotSkeleton, DotSnackbar, DotSnackbarContainer, DotSnackbarProvider, DotSplitButton, DotStepper, DotStickyWithBorder, DotSwitch, DotTable, DotTableAction, DotTableActions, DotTablePagination, DotTabs, DotThemeProvider, DotTimePicker, DotTooltip, DotTruncateWithTooltip, DotTypography, avatarColors, breakpointOptions, checkIfValidDate, darkFigmaColors, lightThemeColors as lightColors, lightFigmaColors, mockScrollIntoView, parseAutoCompleteValue, variables as themeVariables, typographyOptions, useBoardStatus, useColumnStatus, useDotCoreApiContext, useDotMetadataApiContext, useDotSnackbarContext, useEnqueueErrorMessage };
|