@digital-ai/dot-components 2.20.1 → 2.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +339 -202
- package/package.json +1 -1
- package/src/lib/components/breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/src/lib/components/card/Card.d.ts +0 -1
- package/src/lib/components/card/Card.styles.d.ts +2 -0
- package/src/lib/components/date-picker/DatePicker.styles.d.ts +1 -0
- package/src/lib/components/input-form-fields/InputFormFields.propTypes.d.ts +2 -0
- package/src/lib/components/input-form-fields/InputText.d.ts +1 -1
- package/src/lib/components/input-form-fields/common.styles.d.ts +3 -4
- package/src/lib/components/list/ListItem.styles.d.ts +3 -3
- package/src/lib/components/stepper/Stepper.styles.d.ts +3 -3
- package/src/lib/components/switch/Switch.d.ts +1 -1
- package/src/lib/components/table/TableCell.d.ts +6 -0
- package/src/lib/components/table/index.d.ts +1 -1
- package/src/lib/components/tabs/Tabs.d.ts +1 -1
- package/src/lib/theme-provider/colors/light-theme-colors.d.ts +2 -0
- package/src/lib/theme-provider/interfaces.d.ts +4 -0
package/index.esm.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useEffect, useState, useRef, useMemo, useContext, createContext, forwar
|
|
|
4
4
|
import { Tooltip, Icon, Typography, Accordion, AccordionSummary, AccordionDetails, AccordionActions, InputAdornment, InputLabel, TextField, Toolbar, Alert, Fade, StyledEngineProvider, 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, RadioGroup, Radio, Switch, Skeleton, Snackbar, 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';
|
|
7
|
-
import { createTheme, ThemeProvider,
|
|
7
|
+
import { createTheme, ThemeProvider, useTheme } from '@mui/material/styles';
|
|
8
8
|
import jwt_decode from 'jwt-decode';
|
|
9
9
|
import { useDropzone } from 'react-dropzone';
|
|
10
10
|
import GridLayout, { WidthProvider } from 'react-grid-layout';
|
|
@@ -59,13 +59,13 @@ const DotTooltip = ({
|
|
|
59
59
|
}) : children;
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
const rootClassName$
|
|
62
|
+
const rootClassName$17 = 'dot-icon';
|
|
63
63
|
const StyledIcon = styled(Icon).withConfig({
|
|
64
64
|
displayName: "Iconstyles__StyledIcon",
|
|
65
65
|
componentId: "st0ybo-0"
|
|
66
66
|
})(["", ""], ({
|
|
67
67
|
theme
|
|
68
|
-
}) => css(["&.", "{color:", ";font-size:20px;&.MuiIcon-fontSizeLarge{font-size:28px;height:35px;width:35px;i{height:28px;}}&.MuiIcon-fontSizeSmall{font-size:18px;i{height:18px;}}i{height:20px;}}"], rootClassName$
|
|
68
|
+
}) => css(["&.", "{color:", ";font-size:20px;&.MuiIcon-fontSizeLarge{font-size:28px;height:35px;width:35px;i{height:28px;}}&.MuiIcon-fontSizeSmall{font-size:18px;i{height:18px;}}i{height:20px;}}"], rootClassName$17, theme.palette.figma.icon.black));
|
|
69
69
|
|
|
70
70
|
const DotIcon = ({
|
|
71
71
|
ariaLabel,
|
|
@@ -76,7 +76,7 @@ const DotIcon = ({
|
|
|
76
76
|
iconId,
|
|
77
77
|
tooltip
|
|
78
78
|
}) => {
|
|
79
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
79
|
+
const rootClasses = useStylesWithRootClass(rootClassName$17, className);
|
|
80
80
|
return jsx(DotTooltip, {
|
|
81
81
|
title: tooltip,
|
|
82
82
|
children: jsx(StyledIcon, {
|
|
@@ -116,7 +116,7 @@ const DotTypography = ({
|
|
|
116
116
|
console.warn('please include ariaLevel when using ariaRole="heading"');
|
|
117
117
|
}
|
|
118
118
|
if (noMarginBottom) {
|
|
119
|
-
console.warn('`noMarginBottom`
|
|
119
|
+
console.warn('DEPRECATED: `noMarginBottom` on `DotTypography` is no longer included');
|
|
120
120
|
}
|
|
121
121
|
}, []);
|
|
122
122
|
return jsx(Typography, {
|
|
@@ -137,7 +137,7 @@ const DotTypography = ({
|
|
|
137
137
|
});
|
|
138
138
|
};
|
|
139
139
|
|
|
140
|
-
const rootClassName$
|
|
140
|
+
const rootClassName$16 = 'dot-accordion';
|
|
141
141
|
const summaryClassName = 'dot-accordion-summary';
|
|
142
142
|
const detailClassName = 'dot-accordion-details';
|
|
143
143
|
const StyledAccordion = styled(Accordion).withConfig({
|
|
@@ -145,7 +145,7 @@ const StyledAccordion = styled(Accordion).withConfig({
|
|
|
145
145
|
componentId: "sc-1amx4r3-0"
|
|
146
146
|
})(["", ""], ({
|
|
147
147
|
theme
|
|
148
|
-
}) => css(["&.", " .", "{align-items:center;display:flex;&.Mui-expanded{border-top:1px solid
|
|
148
|
+
}) => css([".", "{background:", ";}&.", " .", "{align-items:center;background:", ";color:", ";display:flex;&.Mui-expanded{border-top:1px solid ", ";margin:0;&:before{opacity:1;}}.MuiAccordionSummary-content{align-items:center;gap:", ";width:calc(100% - ", ");.dot-tooltip{overflow:hidden;}}.MuiAccordionSummary-expandIconWrapper{padding:", ";margin-right:", ";}.MuiTypography-root{margin-bottom:0;}.MuiTypography-body1{padding:2px 0;}}"], detailClassName, theme.palette.figma.background.level1.white, rootClassName$16, summaryClassName, theme.palette.figma.background.level1.white, theme.palette.figma.typography.black, theme.palette.figma.border.default, theme.spacing(1), theme.spacing(5), theme.spacing(1.5), theme.spacing(-1.5)));
|
|
149
149
|
|
|
150
150
|
const DotAccordion = ({
|
|
151
151
|
actions,
|
|
@@ -162,7 +162,7 @@ const DotAccordion = ({
|
|
|
162
162
|
summary,
|
|
163
163
|
noWrap: _noWrap = true
|
|
164
164
|
}) => {
|
|
165
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
165
|
+
const rootClasses = useStylesWithRootClass(rootClassName$16, className);
|
|
166
166
|
const [elevation, setElevation] = useState();
|
|
167
167
|
useEffect(() => {
|
|
168
168
|
if (onChange && expanded === undefined) {
|
|
@@ -212,12 +212,15 @@ const DotAccordion = ({
|
|
|
212
212
|
});
|
|
213
213
|
};
|
|
214
214
|
|
|
215
|
-
|
|
215
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
216
|
+
const formHelperTextRootStyles = theme => css(["align-items:flex-end;color:", ";display:flex;font-family:", ";font-size:", "px;font-weight:400;margin:", ";&.read-only .MuiOutlinedInput-root:hover > fieldset{border-color:", ";}"], theme.palette.figma.typography.gray, theme.typography.fontFamily, theme.typography.body2.fontSize, theme.spacing(0.5, 0, 0, 1.5), theme.palette.figma.typography.black);
|
|
216
217
|
const adornmentIconStyles = () => css(["font-size:24px;height:24px;padding:0;width:24px;"]);
|
|
217
|
-
|
|
218
|
-
const
|
|
218
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
219
|
+
const pickerInputStyles = theme => css(["label:not(.MuiInputLabel-shrink){top:-5px;}.MuiInputBase-root{margin-bottom:0;.dot-error-icon{margin-right:", ";color:", ";}.dot-icon{", ";}}.MuiInputBase-input{height:", ";padding:", ";}.MuiFormHelperText-root{", ";}"], theme.spacing(0.5), theme.palette.figma.destructive.normal, adornmentIconStyles(), theme.spacing(2), theme.spacing(1.5, 0, 1.5, 2), formHelperTextRootStyles(theme));
|
|
220
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
221
|
+
const readOnlyStyles = theme => css(["background:", ";color:", ";border-color:", ";-webkit-text-fill-color:", ";input.Mui-disabled{-webkit-text-fill-color:", ";}.dot-chip{background:", ";opacity:1;}"], theme.palette.figma.disabled.normal, theme.palette.figma.typography.disabled, theme.palette.figma.border.defaultButton, theme.palette.figma.typography.disabled, theme.palette.figma.typography.disabled, theme.palette.figma.disabled.normal);
|
|
219
222
|
|
|
220
|
-
const rootClassName$
|
|
223
|
+
const rootClassName$15 = 'dot-text-field';
|
|
221
224
|
const rootSelectClassName = 'dot-select-field';
|
|
222
225
|
const labelClassName = 'dot-input-label';
|
|
223
226
|
const errorClassName = 'dot-error';
|
|
@@ -235,7 +238,7 @@ const StyledInputLabel = styled(InputLabel).withConfig({
|
|
|
235
238
|
componentId: "sc-1mbn9f0-1"
|
|
236
239
|
})(["", ""], ({
|
|
237
240
|
theme
|
|
238
|
-
}) => css(["&.", "{margin-bottom:", ";transform:none;&.Mui-disabled .dot-typography{color:", ";}&.Mui-error .dot-typography{color:", ";}.dot-typography{display:inline;}}"], labelClassName, theme.spacing(0.5), theme.palette.
|
|
241
|
+
}) => css(["&.", "{margin-bottom:", ";transform:none;&.Mui-disabled .dot-typography{color:", ";}&.Mui-error .dot-typography,&.MuiInputLabel-outlined.Mui-disabled,&.MuiInputLabel-outlined.Mui-disabled .dot-typography{color:", ";}.dot-typography{display:inline;}}"], labelClassName, theme.spacing(0.5), theme.palette.figma.typography.disabled, theme.palette.figma.typography.black));
|
|
239
242
|
const StyledTextFieldContainer = styled.div.withConfig({
|
|
240
243
|
displayName: "InputFormFieldsstyles__StyledTextFieldContainer",
|
|
241
244
|
componentId: "sc-1mbn9f0-2"
|
|
@@ -246,15 +249,15 @@ const StyledTextField = styled(TextField).withConfig({
|
|
|
246
249
|
})(["", ""], ({
|
|
247
250
|
theme,
|
|
248
251
|
InputProps
|
|
249
|
-
}) => css(["&.", "{.MuiInputBase-root{margin-bottom:0;}.MuiInputBase-input{box-sizing:content-box;}.MuiOutlinedInput-input{padding:", ";}.MuiInputBase-inputSizeSmall{padding-top:10.5px;padding-bottom:10.5px;&:not(textarea){height:19px;}}.MuiInputBase-inputMultiline{padding:0;}
|
|
252
|
+
}) => css(["&.", "{.MuiInputBase-root{margin-bottom:0;}.MuiInputBase-input{box-sizing:content-box;}.MuiOutlinedInput-input{padding:", ";}.MuiInputBase-inputSizeSmall{padding-top:10.5px;padding-bottom:10.5px;&:not(textarea){height:19px;}}.MuiInputBase-inputMultiline{padding:0;}&.", " .MuiInputBase-root,.MuiInputBase-root.Mui-disabled{", ";}}.dot-select,.dot-input{&.", ",&.Mui-disabled{", ";}}&.", " .", "{margin-right:", ";}&.", ",&.", "{.", "{color:", ";p{font-size:", "px;margin:0;}.dot-icon i{margin-top:-2px;}}.MuiInputLabel-root.Mui-error{color:", ";}.MuiInputBase-root{background:", ";margin-bottom:0;}.MuiInputBase-inputSizeSmall:not(textarea){height:19px;padding-top:10.5px;padding-bottom:10.5px;}select.dot-select{padding-left:", ";}.MuiSelect-select:focus:not(.", "){background-color:transparent;}.MuiSelect-icon{right:", ";}&.", "{.MuiOutlinedInput-notchedOutline{border-color:", ";}.", " .dot-icon{color:", ";}}&.", "{.MuiOutlinedInput-notchedOutline{border-color:", ";}.", " .dot-icon{color:", ";}}&.", "{.MuiOutlinedInput-notchedOutline{border-color:", ";}.", " .dot-icon{color:", ";}}.MuiOutlinedInput-adornedStart{padding-left:12px;&.", " .", "{border-color:", ";}}.MuiInputBase-inputAdornedStart{padding-left:12px;}.MuiInputBase-inputAdornedEnd{padding-right:12px;}.MuiFormHelperText-root{", ";}}"], rootClassName$15, InputProps.startAdornment ? `18px 12px 18px 0px` : `18px 12px`, readOnlyClassName$1, readOnlyStyles(theme), readOnlyClassName$1, readOnlyStyles(theme), rootSelectClassName, adornmentIconClassName, theme.spacing(2), rootSelectClassName, rootClassName$15, adornmentIconClassName, theme.palette.figma.icon.black, theme.typography.body2.fontSize, theme.palette.figma.typography.black, theme.palette.figma.neutral.normal, theme.spacing(1.5), readOnlyClassName$1, InputProps.endAdornment ? `44px` : `12px`, successClassName, theme.palette.figma.success.normal, adornmentIconClassName, theme.palette.figma.success.normal, errorClassName, theme.palette.figma.destructive.normal, adornmentIconClassName, theme.palette.figma.destructive.normal, warningClassName, theme.palette.figma.warning.normal, adornmentIconClassName, theme.palette.figma.warning.normal, warningClassName, fieldsetClassName, theme.palette.figma.warning.normal, formHelperTextRootStyles(theme)));
|
|
250
253
|
|
|
251
|
-
const rootClassName$
|
|
254
|
+
const rootClassName$14 = 'dot-action-toolbar';
|
|
252
255
|
const StyledToolbar = styled(Toolbar).withConfig({
|
|
253
256
|
displayName: "ActionToolbarstyles__StyledToolbar",
|
|
254
257
|
componentId: "sc-5llm03-0"
|
|
255
258
|
})(["", ""], ({
|
|
256
259
|
theme
|
|
257
|
-
}) => css(["&.", "{border-bottom:1px solid ", ";.", " .MuiInputBase-root{margin-bottom:0;}}"], rootClassName$
|
|
260
|
+
}) => css(["&.", "{border-bottom:1px solid ", ";.", " .MuiInputBase-root{margin-bottom:0;}}"], rootClassName$14, theme.palette.figma.border.default, rootClassName$15));
|
|
258
261
|
|
|
259
262
|
const DotActionToolbar = ({
|
|
260
263
|
ariaLabel,
|
|
@@ -263,7 +266,7 @@ const DotActionToolbar = ({
|
|
|
263
266
|
'data-testid': dataTestId,
|
|
264
267
|
variant: _variant = 'dense'
|
|
265
268
|
}) => {
|
|
266
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
269
|
+
const rootClasses = useStylesWithRootClass(rootClassName$14, className);
|
|
267
270
|
return jsx(StyledToolbar, {
|
|
268
271
|
"aria-label": ariaLabel,
|
|
269
272
|
className: rootClasses,
|
|
@@ -273,13 +276,13 @@ const DotActionToolbar = ({
|
|
|
273
276
|
});
|
|
274
277
|
};
|
|
275
278
|
|
|
276
|
-
const rootClassName$
|
|
279
|
+
const rootClassName$13 = 'dot-alert-banner';
|
|
277
280
|
const StyledAlertBanner = styled(Alert).withConfig({
|
|
278
281
|
displayName: "AlertBannerstyles__StyledAlertBanner",
|
|
279
282
|
componentId: "sc-1u3aqgz-0"
|
|
280
283
|
})(["", ""], ({
|
|
281
284
|
theme
|
|
282
|
-
}) => css(["&.", "{align-items:center;border-radius:8px;box-sizing:border-box;display:flex;min-height:48px;overflow:hidden;padding:", "
|
|
285
|
+
}) => css(["&.", "{align-items:center;border-radius:8px;box-sizing:border-box;display:flex;min-height:48px;overflow:hidden;padding:", ";svg,.dot-typography{color:", ";}.dot-icon,.MuiAlert-icon,.MuiAlert-message{padding:0;.dot-typography{margin-bottom:0;}}&.MuiAlert-standardSuccess{background:", ";.dot-icon,.MuiAlert-icon{color:", ";}}&.MuiAlert-standardInfo{background:", ";.dot-icon,.MuiAlert-icon{color:", ";}}&.MuiAlert-standardWarning{background:", ";.dot-icon,.MuiAlert-icon{color:", ";}}&.MuiAlert-standardError{background:", ";.dot-icon,.MuiAlert-icon{color:", ";}}}"], rootClassName$13, theme.spacing(0.75, 2), theme.palette.figma.overlay.alerts.text.black, theme.palette.figma.overlay.alerts.success.background, theme.palette.figma.overlay.alerts.success.icon, theme.palette.figma.overlay.alerts.info.background, theme.palette.figma.overlay.alerts.info.icon, theme.palette.figma.overlay.alerts.warning.background, theme.palette.figma.overlay.alerts.warning.icon, theme.palette.figma.overlay.alerts.error.background, theme.palette.figma.overlay.alerts.error.icon));
|
|
283
286
|
|
|
284
287
|
//Primary blue
|
|
285
288
|
//https://zeroheight.com/4a9ac476a/p/22005a-color/t/6288e9
|
|
@@ -324,9 +327,11 @@ const n400 = '#667385';
|
|
|
324
327
|
const n500 = '#4b5a6f';
|
|
325
328
|
const n600 = '#445267';
|
|
326
329
|
const n700 = '#3b485c';
|
|
330
|
+
const n700_70 = 'rgba(59, 72, 92, 0.7)';
|
|
327
331
|
const n700_90 = 'rgba(59, 72, 92, 0.9)';
|
|
328
332
|
const n800 = '#333f52';
|
|
329
333
|
const n900 = '#232e40';
|
|
334
|
+
const n900_20 = 'rgba(35, 46, 64, 0.2)';
|
|
330
335
|
const n900_70 = 'rgba(35, 46, 64, 0.7)';
|
|
331
336
|
const nA100 = '#88b1ff';
|
|
332
337
|
const nA200 = '#5590ff';
|
|
@@ -440,9 +445,11 @@ var lightThemeColors = /*#__PURE__*/Object.freeze({
|
|
|
440
445
|
n500: n500,
|
|
441
446
|
n600: n600,
|
|
442
447
|
n700: n700,
|
|
448
|
+
n700_70: n700_70,
|
|
443
449
|
n700_90: n700_90,
|
|
444
450
|
n800: n800,
|
|
445
451
|
n900: n900,
|
|
452
|
+
n900_20: n900_20,
|
|
446
453
|
n900_70: n900_70,
|
|
447
454
|
nA100: nA100,
|
|
448
455
|
nA200: nA200,
|
|
@@ -510,6 +517,10 @@ var lightThemeColors = /*#__PURE__*/Object.freeze({
|
|
|
510
517
|
});
|
|
511
518
|
|
|
512
519
|
const lightFigmaColors = {
|
|
520
|
+
appToolbar: {
|
|
521
|
+
background: n700,
|
|
522
|
+
btnHover: n900
|
|
523
|
+
},
|
|
513
524
|
background: {
|
|
514
525
|
level0: {
|
|
515
526
|
bckgGray: n50,
|
|
@@ -614,7 +625,7 @@ const lightFigmaColors = {
|
|
|
614
625
|
icon: o500
|
|
615
626
|
}
|
|
616
627
|
},
|
|
617
|
-
default:
|
|
628
|
+
default: n900_70,
|
|
618
629
|
table: {
|
|
619
630
|
highlights: b50,
|
|
620
631
|
hoverRow: n50,
|
|
@@ -652,6 +663,10 @@ const lightFigmaColors = {
|
|
|
652
663
|
}
|
|
653
664
|
};
|
|
654
665
|
const darkFigmaColors = {
|
|
666
|
+
appToolbar: {
|
|
667
|
+
background: n700,
|
|
668
|
+
btnHover: n900
|
|
669
|
+
},
|
|
655
670
|
background: {
|
|
656
671
|
level0: {
|
|
657
672
|
bckgGray: n800,
|
|
@@ -660,7 +675,7 @@ const darkFigmaColors = {
|
|
|
660
675
|
componentsBackground: n700
|
|
661
676
|
},
|
|
662
677
|
level1: {
|
|
663
|
-
deep:
|
|
678
|
+
deep: n900,
|
|
664
679
|
gray: n50,
|
|
665
680
|
white: n700
|
|
666
681
|
}
|
|
@@ -723,7 +738,7 @@ const darkFigmaColors = {
|
|
|
723
738
|
active: n700,
|
|
724
739
|
darkGray: n400,
|
|
725
740
|
darkerGrayFocus: n700,
|
|
726
|
-
elevated:
|
|
741
|
+
elevated: n800,
|
|
727
742
|
light: n800,
|
|
728
743
|
lightGray: n200,
|
|
729
744
|
normal: n900,
|
|
@@ -756,7 +771,7 @@ const darkFigmaColors = {
|
|
|
756
771
|
icon: o800
|
|
757
772
|
}
|
|
758
773
|
},
|
|
759
|
-
default:
|
|
774
|
+
default: n900_70,
|
|
760
775
|
table: {
|
|
761
776
|
highlights: b200,
|
|
762
777
|
hoverRow: n500,
|
|
@@ -834,6 +849,14 @@ const componentOverrides = {
|
|
|
834
849
|
MuiTooltip: {
|
|
835
850
|
defaultProps: {
|
|
836
851
|
TransitionComponent: Fade
|
|
852
|
+
},
|
|
853
|
+
styleOverrides: {
|
|
854
|
+
arrow: {
|
|
855
|
+
color: n900_70
|
|
856
|
+
},
|
|
857
|
+
tooltip: {
|
|
858
|
+
backgroundColor: n900_70
|
|
859
|
+
}
|
|
837
860
|
}
|
|
838
861
|
}
|
|
839
862
|
};
|
|
@@ -923,54 +946,55 @@ const breakpointOptions = {
|
|
|
923
946
|
xl: 1920
|
|
924
947
|
}
|
|
925
948
|
};
|
|
949
|
+
// light colors by default
|
|
926
950
|
const avatarColors = {
|
|
951
|
+
blue: {
|
|
952
|
+
color: lightFigmaColors.typography.white,
|
|
953
|
+
backgroundColor: lightFigmaColors.primary.normal
|
|
954
|
+
},
|
|
955
|
+
darkGrey: {
|
|
956
|
+
color: lightFigmaColors.typography.white,
|
|
957
|
+
backgroundColor: lightFigmaColors.typography.gray
|
|
958
|
+
},
|
|
927
959
|
default: {
|
|
928
|
-
color:
|
|
929
|
-
backgroundColor:
|
|
960
|
+
color: lightFigmaColors.icon.black,
|
|
961
|
+
backgroundColor: lightFigmaColors.background.level1.deep
|
|
962
|
+
},
|
|
963
|
+
green: {
|
|
964
|
+
color: lightFigmaColors.typography.white,
|
|
965
|
+
backgroundColor: lightFigmaColors.success.normal
|
|
930
966
|
},
|
|
931
967
|
inherit: {
|
|
932
968
|
color: 'inherit',
|
|
933
969
|
backgroundColor: null
|
|
934
970
|
},
|
|
935
|
-
|
|
936
|
-
color:
|
|
937
|
-
backgroundColor:
|
|
938
|
-
},
|
|
939
|
-
blue: {
|
|
940
|
-
color: n0,
|
|
941
|
-
backgroundColor: b500
|
|
971
|
+
lightGrey: {
|
|
972
|
+
color: lightFigmaColors.overlay.alerts.text.black,
|
|
973
|
+
backgroundColor: n200
|
|
942
974
|
},
|
|
943
975
|
orange: {
|
|
944
|
-
color:
|
|
945
|
-
backgroundColor:
|
|
976
|
+
color: lightFigmaColors.overlay.alerts.text.black,
|
|
977
|
+
backgroundColor: lightFigmaColors.warning.normal
|
|
946
978
|
},
|
|
947
979
|
purple: {
|
|
948
980
|
color: n0,
|
|
949
981
|
backgroundColor: p500
|
|
950
982
|
},
|
|
951
|
-
yellow: {
|
|
952
|
-
color: n700,
|
|
953
|
-
backgroundColor: y500
|
|
954
|
-
},
|
|
955
983
|
red: {
|
|
956
|
-
color:
|
|
957
|
-
backgroundColor:
|
|
958
|
-
},
|
|
959
|
-
darkGrey: {
|
|
960
|
-
color: n0,
|
|
961
|
-
backgroundColor: n700
|
|
962
|
-
},
|
|
963
|
-
lightGrey: {
|
|
964
|
-
color: n700,
|
|
965
|
-
backgroundColor: n200
|
|
984
|
+
color: lightFigmaColors.typography.white,
|
|
985
|
+
backgroundColor: lightFigmaColors.destructive.normal
|
|
966
986
|
},
|
|
967
987
|
transparent: {
|
|
968
|
-
color:
|
|
988
|
+
color: lightFigmaColors.typography.black,
|
|
969
989
|
backgroundColor: 'transparent'
|
|
970
990
|
},
|
|
971
991
|
white: {
|
|
972
992
|
color: n700,
|
|
973
993
|
backgroundColor: n0
|
|
994
|
+
},
|
|
995
|
+
yellow: {
|
|
996
|
+
color: lightFigmaColors.overlay.alerts.text.black,
|
|
997
|
+
backgroundColor: y500
|
|
974
998
|
}
|
|
975
999
|
};
|
|
976
1000
|
const darkTheme = createTheme({
|
|
@@ -978,7 +1002,35 @@ const darkTheme = createTheme({
|
|
|
978
1002
|
palette: {
|
|
979
1003
|
figma: darkFigmaColors,
|
|
980
1004
|
mode: 'dark',
|
|
981
|
-
avatarColors: Object.assign({}, avatarColors),
|
|
1005
|
+
avatarColors: Object.assign(Object.assign({}, avatarColors), {
|
|
1006
|
+
blue: {
|
|
1007
|
+
color: darkFigmaColors.typography.white,
|
|
1008
|
+
backgroundColor: darkFigmaColors.primary.normal
|
|
1009
|
+
},
|
|
1010
|
+
darkGrey: {
|
|
1011
|
+
color: darkFigmaColors.typography.white,
|
|
1012
|
+
backgroundColor: darkFigmaColors.typography.gray
|
|
1013
|
+
},
|
|
1014
|
+
default: {
|
|
1015
|
+
color: darkFigmaColors.icon.black,
|
|
1016
|
+
backgroundColor: darkFigmaColors.background.level1.deep
|
|
1017
|
+
},
|
|
1018
|
+
green: {
|
|
1019
|
+
color: darkFigmaColors.typography.white,
|
|
1020
|
+
backgroundColor: darkFigmaColors.success.normal
|
|
1021
|
+
},
|
|
1022
|
+
orange: {
|
|
1023
|
+
color: darkFigmaColors.overlay.alerts.text.black,
|
|
1024
|
+
backgroundColor: darkFigmaColors.warning.normal
|
|
1025
|
+
},
|
|
1026
|
+
red: {
|
|
1027
|
+
color: darkFigmaColors.typography.white,
|
|
1028
|
+
backgroundColor: darkFigmaColors.destructive.normal
|
|
1029
|
+
},
|
|
1030
|
+
transparent: Object.assign(Object.assign({}, avatarColors.transparent), {
|
|
1031
|
+
color: darkFigmaColors.typography.black
|
|
1032
|
+
})
|
|
1033
|
+
}),
|
|
982
1034
|
background: {
|
|
983
1035
|
default: n900
|
|
984
1036
|
},
|
|
@@ -1044,10 +1096,21 @@ const darkTheme = createTheme({
|
|
|
1044
1096
|
primary: n50
|
|
1045
1097
|
}
|
|
1046
1098
|
},
|
|
1047
|
-
components: componentOverrides,
|
|
1099
|
+
components: Object.assign(Object.assign({}, componentOverrides), {
|
|
1100
|
+
MuiPaper: {
|
|
1101
|
+
styleOverrides: {
|
|
1102
|
+
root: {
|
|
1103
|
+
backgroundColor: darkFigmaColors.background.level0.componentsBackground
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
}),
|
|
1048
1108
|
typography: Object.assign(Object.assign({}, typographyOptions), {
|
|
1049
1109
|
allVariants: Object.assign(Object.assign({}, typographyOptions.allVariants), {
|
|
1050
|
-
color:
|
|
1110
|
+
color: darkFigmaColors.typography.black
|
|
1111
|
+
}),
|
|
1112
|
+
body2: Object.assign(Object.assign({}, typographyOptions.body2), {
|
|
1113
|
+
color: darkFigmaColors.typography.gray
|
|
1051
1114
|
})
|
|
1052
1115
|
})
|
|
1053
1116
|
});
|
|
@@ -1208,10 +1271,21 @@ const lightTheme = createTheme({
|
|
|
1208
1271
|
},
|
|
1209
1272
|
tonalOffset: 0.2
|
|
1210
1273
|
},
|
|
1211
|
-
components: componentOverrides,
|
|
1274
|
+
components: Object.assign(Object.assign({}, componentOverrides), {
|
|
1275
|
+
MuiPaper: {
|
|
1276
|
+
styleOverrides: {
|
|
1277
|
+
root: {
|
|
1278
|
+
backgroundColor: lightFigmaColors.background.level0.componentsBackground
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
}),
|
|
1212
1283
|
typography: Object.assign(Object.assign({}, typographyOptions), {
|
|
1213
1284
|
allVariants: Object.assign(Object.assign({}, typographyOptions.allVariants), {
|
|
1214
|
-
color:
|
|
1285
|
+
color: lightFigmaColors.typography.black
|
|
1286
|
+
}),
|
|
1287
|
+
body2: Object.assign(Object.assign({}, typographyOptions.body2), {
|
|
1288
|
+
color: lightFigmaColors.typography.gray
|
|
1215
1289
|
})
|
|
1216
1290
|
})
|
|
1217
1291
|
});
|
|
@@ -1288,7 +1362,7 @@ const DotAlertBanner = ({
|
|
|
1288
1362
|
success: AlertBannerIcon('check-solid'),
|
|
1289
1363
|
warning: AlertBannerIcon('warning-solid')
|
|
1290
1364
|
};
|
|
1291
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1365
|
+
const rootClasses = useStylesWithRootClass(rootClassName$13, severity, className);
|
|
1292
1366
|
/* For simple string use default component, for everything else use 'div' */
|
|
1293
1367
|
const typographyComponent = isString$1(children) ? undefined : 'div';
|
|
1294
1368
|
return jsx(StyledAlertBanner, {
|
|
@@ -1936,7 +2010,7 @@ const useDotCoreApiContext = () => {
|
|
|
1936
2010
|
return useContext(DotCoreApiContext);
|
|
1937
2011
|
};
|
|
1938
2012
|
|
|
1939
|
-
const rootClassName$
|
|
2013
|
+
const rootClassName$12 = 'dot-avatar';
|
|
1940
2014
|
const avatarSpacing = {
|
|
1941
2015
|
small: 3,
|
|
1942
2016
|
medium: 5,
|
|
@@ -1947,11 +2021,11 @@ const StyledAvatar = styled(Avatar).withConfig({
|
|
|
1947
2021
|
componentId: "sc-13bzj2s-0"
|
|
1948
2022
|
})(["", ""], ({
|
|
1949
2023
|
theme
|
|
1950
|
-
}) => css(["&.", "{display:inline-flex;background-color:", ";border:0px;&:focus-visible{box-shadow:0px 0px 0px 3px ", ",0px 0px 0px 5px ", ";outline:0;}img{width:auto;height:105%;}.dot-i,.dot-typography{color:", ";margin-bottom:0;}&.small{height:", ";width:", ";}&.medium{height:", ";width:", ";}&.large{height:", ";width:", ";}}"], rootClassName$
|
|
2024
|
+
}) => css(["&.", "{display:inline-flex;background-color:", ";border:0px;&:focus-visible{box-shadow:0px 0px 0px 3px ", ",0px 0px 0px 5px ", ";outline:0;}img{width:auto;height:105%;}.dot-i,.dot-typography{color:", ";margin-bottom:0;}&.small{height:", ";width:", ";}&.medium{height:", ";width:", ";}&.large{height:", ";width:", ";}}"], rootClassName$12, ({
|
|
1951
2025
|
color
|
|
1952
2026
|
}) => {
|
|
1953
2027
|
return color && theme.palette.avatarColors[color] ? theme.palette.avatarColors[color].backgroundColor : theme.palette.avatarColors['default'].backgroundColor;
|
|
1954
|
-
}, theme.palette.
|
|
2028
|
+
}, theme.palette.figma.icon.white, theme.palette.figma.icon.black, ({
|
|
1955
2029
|
color
|
|
1956
2030
|
}) => {
|
|
1957
2031
|
return color ? theme.palette.avatarColors[color].color : theme.palette.avatarColors['default'].color;
|
|
@@ -2022,7 +2096,7 @@ const DotAvatar = ({
|
|
|
2022
2096
|
variant: _variant = 'circular',
|
|
2023
2097
|
style
|
|
2024
2098
|
}) => {
|
|
2025
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2099
|
+
const rootClasses = useStylesWithRootClass(rootClassName$12, className);
|
|
2026
2100
|
const getAvatarColor = () => {
|
|
2027
2101
|
if ((style === null || style === void 0 ? void 0 : style.color) !== undefined) return 'inherit';
|
|
2028
2102
|
if (color) return color;
|
|
@@ -2061,13 +2135,13 @@ const DotAvatar = ({
|
|
|
2061
2135
|
});
|
|
2062
2136
|
};
|
|
2063
2137
|
|
|
2064
|
-
const rootClassName$
|
|
2138
|
+
const rootClassName$11 = 'dot-button';
|
|
2065
2139
|
const StyledButton = styled(Button).withConfig({
|
|
2066
2140
|
displayName: "Buttonstyles__StyledButton",
|
|
2067
2141
|
componentId: "sx99hh-0"
|
|
2068
2142
|
})(["", ""], ({
|
|
2069
2143
|
theme
|
|
2070
|
-
}) => css(["&.", "{background-color:", ";margin:", ";padding:", ";min-width:auto;white-space:nowrap;&:hover{background-color:", ";}&:active{background-color:", ";}&.MuiButton-containedSecondary{background-color:", ";&:hover{background-color:", ";}&:active{background-color:", ";}}&.MuiButton-outlined,&.MuiButton-text{color:", ";&:hover{background-color:", ";}&:active{background-color:", ";}.dot-icon{color:", ";}}&.MuiButton-outlined{background-color:", ";border-color:", ";}&.MuiButton-text{background-color:transparent;}&.Mui-disabled{background-color:", ";color:", ";&.MuiButton-outlined{border-color:", ";}&.MuiButton-text{background-color:transparent;}}&:not(.MuiButton-sizeLarge):not(.MuiButton-sizeSmall){height:", ";}.dot-icon{color:", ";display:flex;padding:0;}}"], rootClassName$
|
|
2144
|
+
}) => css(["&.", "{background-color:", ";margin:", ";padding:", ";min-width:auto;white-space:nowrap;&:hover{background-color:", ";}&:active{background-color:", ";}&.MuiButton-containedSecondary{background-color:", ";&:hover{background-color:", ";}&:active{background-color:", ";}}&.MuiButton-outlined,&.MuiButton-text{color:", ";&:hover{background-color:", ";}&:active{background-color:", ";}.dot-icon{color:", ";}}&.MuiButton-outlined{background-color:", ";border-color:", ";}&.MuiButton-text{background-color:transparent;}&.Mui-disabled{background-color:", ";color:", ";&.MuiButton-outlined{border-color:", ";}&.MuiButton-text{background-color:transparent;}}&:not(.MuiButton-sizeLarge):not(.MuiButton-sizeSmall){height:", ";}.dot-icon{color:", ";display:flex;padding:0;}}"], rootClassName$11, theme.palette.figma.primary.normal, theme.spacing(0.5), theme.spacing(0.75, 2), theme.palette.figma.primary.elevated, theme.palette.figma.primary.active, theme.palette.figma.destructive.normal, theme.palette.figma.destructive.elevated, theme.palette.figma.destructive.active, theme.palette.figma.typography.black, theme.palette.figma.neutral.elevated, theme.palette.figma.neutral.active, theme.palette.figma.icon.black, theme.palette.figma.neutral.normal, theme.palette.figma.border.defaultButton, theme.palette.figma.disabled.normal, theme.palette.figma.typography.gray, theme.palette.figma.border.defaultButton, theme.spacing(5), theme.palette.figma.icon.white));
|
|
2071
2145
|
|
|
2072
2146
|
/** This component wraps the Button component from @material-ui. */
|
|
2073
2147
|
const DotButton = /*#__PURE__*/forwardRef(({
|
|
@@ -2090,7 +2164,7 @@ const DotButton = /*#__PURE__*/forwardRef(({
|
|
|
2090
2164
|
tooltip,
|
|
2091
2165
|
type: _type = 'primary'
|
|
2092
2166
|
}, ref) => {
|
|
2093
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2167
|
+
const rootClasses = useStylesWithRootClass(rootClassName$11, className);
|
|
2094
2168
|
let color;
|
|
2095
2169
|
let variant;
|
|
2096
2170
|
switch (_type) {
|
|
@@ -2139,11 +2213,11 @@ const DotButton = /*#__PURE__*/forwardRef(({
|
|
|
2139
2213
|
});
|
|
2140
2214
|
});
|
|
2141
2215
|
|
|
2142
|
-
const rootClassName
|
|
2216
|
+
const rootClassName$10 = 'dot-link';
|
|
2143
2217
|
const StyledLink = styled(Link).withConfig({
|
|
2144
2218
|
displayName: "Linkstyles__StyledLink",
|
|
2145
2219
|
componentId: "sc-1lpmaww-0"
|
|
2146
|
-
})(["", ""], () => css(["&.", "{cursor:pointer;&:hover.MuiLink-underlineHover{text-decoration:none;}}"], rootClassName
|
|
2220
|
+
})(["", ""], () => css(["&.", "{cursor:pointer;&:hover.MuiLink-underlineHover{text-decoration:none;}}"], rootClassName$10));
|
|
2147
2221
|
|
|
2148
2222
|
const DotLink = ({
|
|
2149
2223
|
ariaLabel,
|
|
@@ -2162,7 +2236,7 @@ const DotLink = ({
|
|
|
2162
2236
|
tooltip,
|
|
2163
2237
|
underline: _underline = 'always'
|
|
2164
2238
|
}) => {
|
|
2165
|
-
const rootClasses = useStylesWithRootClass(rootClassName
|
|
2239
|
+
const rootClasses = useStylesWithRootClass(rootClassName$10, className);
|
|
2166
2240
|
useEffect(() => {
|
|
2167
2241
|
// Include a console warning if the link is not a string and no ariaLabel is provided
|
|
2168
2242
|
if (!isString$1(children) && !ariaLabel) {
|
|
@@ -2211,7 +2285,7 @@ const CreateUUID = () => {
|
|
|
2211
2285
|
});
|
|
2212
2286
|
};
|
|
2213
2287
|
|
|
2214
|
-
const rootClassName
|
|
2288
|
+
const rootClassName$$ = 'dot-list';
|
|
2215
2289
|
const listItemRootClass = 'dot-list-item';
|
|
2216
2290
|
const nestedListClassName = 'dot-nested-list';
|
|
2217
2291
|
const nestedDrawerClassName = 'dot-nested-drawer';
|
|
@@ -2220,7 +2294,7 @@ const StyledList = styled(List).withConfig({
|
|
|
2220
2294
|
componentId: "wxwqwr-0"
|
|
2221
2295
|
})(["", ""], ({
|
|
2222
2296
|
theme
|
|
2223
|
-
}) => css(["&.", "{background:", ";.dot-icon{color:", ";}&.", " .", "{padding-left:", ";}.MuiCollapse-root{padding-top:", ";margin-bottom:", ";.MuiCollapse-wrapper{margin:", ";overflow:hidden;width:calc(100% - ", ");}.MuiListSubheader-root .MuiTypography-root{padding:", ";}}.MuiListSubheader-root{padding:0;.MuiTypography-root{padding:", ";}}}"], rootClassName
|
|
2297
|
+
}) => css(["&.", "{background:", ";.dot-icon{color:", ";}&.", " .", "{padding-left:", ";}.MuiCollapse-root{padding-top:", ";margin-bottom:", ";.MuiCollapse-wrapper{margin:", ";overflow:hidden;width:calc(100% - ", ");}.MuiListSubheader-root .MuiTypography-root{padding:", ";}}.MuiListSubheader-root{padding:0;.MuiTypography-root{padding:", ";}}.", " .dot-drawer-paper{border-left:1px solid ", ";}}"], rootClassName$$, theme.palette.figma.background.level0.componentsBackground, theme.palette.figma.icon.black, nestedListClassName, listItemRootClass, theme.spacing(4), theme.spacing(1), theme.spacing(-1), theme.spacing(0, 2), theme.spacing(4), theme.spacing(1, 0), theme.spacing(1), nestedDrawerClassName, theme.palette.figma.border.default));
|
|
2224
2298
|
|
|
2225
2299
|
const getChevronIcon = (nestedListType, isOpened) => {
|
|
2226
2300
|
if (nestedListType !== 'expandable') {
|
|
@@ -2264,13 +2338,13 @@ const DotListDivider = ({
|
|
|
2264
2338
|
});
|
|
2265
2339
|
};
|
|
2266
2340
|
|
|
2267
|
-
const rootClassName$
|
|
2341
|
+
const rootClassName$_ = 'dot-progress';
|
|
2268
2342
|
const StyledCircularProgress = styled(CircularProgress).withConfig({
|
|
2269
2343
|
displayName: "Progressstyles__StyledCircularProgress",
|
|
2270
2344
|
componentId: "sc-1gs77rb-0"
|
|
2271
2345
|
})(["", ""], ({
|
|
2272
2346
|
theme
|
|
2273
|
-
}) => css(["&.", "{&.MuiCircularProgress-colorPrimary{color:", ";}&.MuiCircularProgress-colorSecondary{color:", ";}"], rootClassName$
|
|
2347
|
+
}) => css(["&.", "{&.MuiCircularProgress-colorPrimary{color:", ";}&.MuiCircularProgress-colorSecondary{color:", ";}"], rootClassName$_, theme.palette.figma.inProgress.normal, theme.palette.figma.inProgress.secondary));
|
|
2274
2348
|
|
|
2275
2349
|
const DotProgress = ({
|
|
2276
2350
|
ariaLabel,
|
|
@@ -2283,7 +2357,7 @@ const DotProgress = ({
|
|
|
2283
2357
|
value,
|
|
2284
2358
|
variant: _variant = 'indeterminate'
|
|
2285
2359
|
}) => {
|
|
2286
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2360
|
+
const rootClasses = useStylesWithRootClass(rootClassName$_, className);
|
|
2287
2361
|
useEffect(() => {
|
|
2288
2362
|
if (!ariaLabel) {
|
|
2289
2363
|
console.warn('a11y: DotProgress must have an ariaLabel to describe the progress component');
|
|
@@ -2324,23 +2398,23 @@ var variables = /*#__PURE__*/Object.freeze({
|
|
|
2324
2398
|
levelTop: levelTop
|
|
2325
2399
|
});
|
|
2326
2400
|
|
|
2327
|
-
const rootClassName$
|
|
2401
|
+
const rootClassName$Z = 'dot-popper';
|
|
2328
2402
|
const StyledPopper$1 = styled(Popper).withConfig({
|
|
2329
2403
|
displayName: "Popperstyles__StyledPopper",
|
|
2330
2404
|
componentId: "sd1h8p-0"
|
|
2331
2405
|
})(["", ""], ({
|
|
2332
2406
|
theme
|
|
2333
|
-
}) => css(["&.", "{font-family:", ";font-size:", "px;}&.", ",&.", " > .dot-popper-paper{background-color:", ";}"], rootClassName$
|
|
2407
|
+
}) => css(["&.", "{font-family:", ";font-size:", "px;}&.", ",&.", " > .dot-popper-paper{background-color:", ";}"], rootClassName$Z, theme.typography.fontFamily, theme.typography.body1.fontSize, rootClassName$Z, rootClassName$Z, theme.palette.figma.background.level1.white));
|
|
2334
2408
|
|
|
2335
2409
|
const flyoutMenuClassName = 'dot-flyout-menu';
|
|
2336
|
-
const rootClassName$
|
|
2410
|
+
const rootClassName$Y = 'dot-menu';
|
|
2337
2411
|
const getListMaxHeight = maxHeight => isString$1(maxHeight) ? maxHeight : `${maxHeight}px`;
|
|
2338
2412
|
const StyledPopper = styled(Popper).withConfig({
|
|
2339
2413
|
displayName: "Menustyles__StyledPopper",
|
|
2340
2414
|
componentId: "sc-134fmqu-0"
|
|
2341
2415
|
})(["", ""], ({
|
|
2342
2416
|
theme
|
|
2343
|
-
}) => css(["&.", "{font-family:", ";font-size:", "px;z-index:", ";}&.", ",&.", "{&.loading .MuiPaper-root{align-items:center;display:flex;justify-content:center;min-height:200px;min-width:200px;}ul,.dot-action-item{.dot-action-item-text{white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;}}ul{box-sizing:content-box;min-width:112px;overflow:auto;", " .dot-li{min-height:auto;}}.dot-action-item{height:", ";border-top:1px solid ", ";line-height:inherit;button.dot-button{border-radius:", ";justify-content:flex-start;height:100%;margin:0;&:focus-visible{background-color:", ";}.MuiButton-label{gap:", ";.MuiButton-startIcon{margin-left:0;.dot-icon{flex-shrink:0;}}}}}}"], rootClassName$
|
|
2417
|
+
}) => css(["&.", "{font-family:", ";font-size:", "px;z-index:", ";}&.", ",&.", "{&.loading .MuiPaper-root{align-items:center;display:flex;justify-content:center;min-height:200px;min-width:200px;}ul,.dot-action-item{.dot-action-item-text{white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;}}ul{box-sizing:content-box;min-width:112px;overflow:auto;", " .dot-li{min-height:auto;}}.dot-action-item{height:", ";border-top:1px solid ", ";line-height:inherit;button.dot-button{border-radius:", ";justify-content:flex-start;height:100%;margin:0;&:focus-visible{background-color:", ";}.MuiButton-label{gap:", ";.MuiButton-startIcon{margin-left:0;.dot-icon{flex-shrink:0;}}}}}}"], rootClassName$Z, theme.typography.fontFamily, theme.typography.body1.fontSize, levelSecond, rootClassName$Y, rootClassName$Z, ({
|
|
2344
2418
|
$maxHeight
|
|
2345
2419
|
}) => $maxHeight !== undefined && `
|
|
2346
2420
|
max-height: ${getListMaxHeight($maxHeight)};
|
|
@@ -2350,7 +2424,7 @@ const MENU_ITEM_HEIGHT_NORMAL = 48;
|
|
|
2350
2424
|
const MENU_ITEM_HEIGHT_DENSE = 36;
|
|
2351
2425
|
const DEFAULT_MAX_VISIBLE_ITEMS = 7;
|
|
2352
2426
|
|
|
2353
|
-
const rootClassName$
|
|
2427
|
+
const rootClassName$X = 'dot-ul';
|
|
2354
2428
|
const listItemClassName$1 = 'dot-li';
|
|
2355
2429
|
const listItemWithSubmenuClassName = 'dot-li-with-submenu';
|
|
2356
2430
|
const StyledMenuList = styled(MenuList).withConfig({
|
|
@@ -2358,7 +2432,7 @@ const StyledMenuList = styled(MenuList).withConfig({
|
|
|
2358
2432
|
componentId: "yqdwwg-0"
|
|
2359
2433
|
})(["", ""], ({
|
|
2360
2434
|
theme
|
|
2361
|
-
}) => css(["&.", "{
|
|
2435
|
+
}) => css(["&.", "{background:", ";.dot-li{color:", ";font-size:", "px;justify-content:space-between;gap:", ";&:hover{background:", ";}&.Mui-selected,&.Mui-selected:hover{background:", ";}&.", "{padding-right:", ";}}}"], rootClassName$X, theme.palette.figma.background.level1.white, theme.palette.figma.typography.black, theme.typography.body1.fontSize, theme.spacing(3), hoverGray, lightSelectedGray, listItemWithSubmenuClassName, theme.spacing(0.5)));
|
|
2362
2436
|
|
|
2363
2437
|
const getDefaultItemHeight = isDense => isDense ? MENU_ITEM_HEIGHT_DENSE : MENU_ITEM_HEIGHT_NORMAL;
|
|
2364
2438
|
const calculateItemHeight = (isDense, customItemHeight, menuItemHeight) => {
|
|
@@ -2430,7 +2504,7 @@ const DotMenuList = /*#__PURE__*/forwardRef(({
|
|
|
2430
2504
|
onSubMenuCreate,
|
|
2431
2505
|
selectedKey
|
|
2432
2506
|
}, ref) => {
|
|
2433
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2507
|
+
const rootClasses = useStylesWithRootClass(rootClassName$X, className);
|
|
2434
2508
|
const [activeSubmenu, setActiveSubmenu] = useState(null);
|
|
2435
2509
|
const [subItemAnchorEl, setSubItemAnchorEl] = useState(null);
|
|
2436
2510
|
const openSubmenu = (target, itemKey) => {
|
|
@@ -2539,7 +2613,7 @@ const DotMenu = ({
|
|
|
2539
2613
|
open: _open = false,
|
|
2540
2614
|
selectedKey
|
|
2541
2615
|
}) => {
|
|
2542
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2616
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Y, className, _loading ? 'loading' : '');
|
|
2543
2617
|
const isSubmenu = checkIfSubmenu(anchorEl);
|
|
2544
2618
|
const hasSubItems = checkForSubItems(_menuItems);
|
|
2545
2619
|
// Timeout object is customizable when Menu component is either submenu
|
|
@@ -2627,13 +2701,13 @@ const DotMenu = ({
|
|
|
2627
2701
|
});
|
|
2628
2702
|
};
|
|
2629
2703
|
|
|
2630
|
-
const rootClassName$
|
|
2704
|
+
const rootClassName$W = 'dot-drawer';
|
|
2631
2705
|
const StyledDrawer = styled(Drawer).withConfig({
|
|
2632
2706
|
displayName: "Drawerstyles__StyledDrawer",
|
|
2633
2707
|
componentId: "sc-1uiowy0-0"
|
|
2634
2708
|
})(["", ""], ({
|
|
2635
2709
|
theme
|
|
2636
|
-
}) => css(["&.", " .MuiBackdrop-root{background-color:", ";}.dot-drawer-paper{height:", ";padding:", ";width:", ";}"], rootClassName$
|
|
2710
|
+
}) => css(["&.", " .MuiBackdrop-root{background-color:", ";}.dot-drawer-paper{background:", ";height:", ";padding:", ";width:", ";}"], rootClassName$W, theme.palette.figma.overlay.default, theme.palette.figma.background.level0.componentsBackground, ({
|
|
2637
2711
|
height,
|
|
2638
2712
|
anchor
|
|
2639
2713
|
}) => anchor === 'left' || anchor === 'right' ? '100%' : height, theme.spacing(2), ({
|
|
@@ -2641,21 +2715,21 @@ const StyledDrawer = styled(Drawer).withConfig({
|
|
|
2641
2715
|
anchor
|
|
2642
2716
|
}) => anchor === 'bottom' || anchor === 'top' ? 'auto' : width));
|
|
2643
2717
|
|
|
2644
|
-
const rootClassName$
|
|
2718
|
+
const rootClassName$V = 'dot-drawer-header';
|
|
2645
2719
|
const StyleDrawerHeader = styled.div.withConfig({
|
|
2646
2720
|
displayName: "DrawerHeaderstyles__StyleDrawerHeader",
|
|
2647
2721
|
componentId: "sc-2d2xd3-0"
|
|
2648
2722
|
})(["", ""], ({
|
|
2649
2723
|
theme
|
|
2650
|
-
}) => css(["&.", "{padding:", ";display:flex;align-items:center;.close-button{margin-left:auto;}}"], rootClassName$
|
|
2724
|
+
}) => css(["&.", "{padding:", ";display:flex;align-items:center;.close-button{margin-left:auto;}}"], rootClassName$V, theme.spacing(0, 0, 2)));
|
|
2651
2725
|
|
|
2652
|
-
const rootClassName$
|
|
2726
|
+
const rootClassName$U = 'dot-icon-btn';
|
|
2653
2727
|
const StyledIconButton = styled(IconButton).withConfig({
|
|
2654
2728
|
displayName: "IconButtonstyles__StyledIconButton",
|
|
2655
2729
|
componentId: "eko0kb-0"
|
|
2656
2730
|
})(["", ""], ({
|
|
2657
2731
|
theme
|
|
2658
|
-
}) => css(["&.", "{color:", ";font-size:inherit;padding:10px;&:hover{background-color:", ";}&:active{background-color:", ";}&:focus{background-color:", ";}&.Mui-disabled .dot-icon{color:", ";}&.ripple-disabled{&:hover,&:focus{background:", ";}}&.shape-square{border-radius:4px;border:1px solid ", ";padding:", ";&:active{background:", ";}}.dot-icon.MuiIcon-fontSizeSmall{padding:1px;}&.MuiIconButton-sizeSmall{padding:3px;}"], rootClassName$
|
|
2732
|
+
}) => css(["&.", "{color:", ";font-size:inherit;padding:10px;&:hover{background-color:", ";}&:active{background-color:", ";}&:focus{background-color:", ";}&.Mui-disabled .dot-icon{color:", ";}&.ripple-disabled{&:hover,&:focus{background:", ";}}&.shape-square{border-radius:4px;border:1px solid ", ";padding:", ";&:active{background:", ";}}.dot-icon.MuiIcon-fontSizeSmall{padding:1px;}&.MuiIconButton-sizeSmall{padding:3px;}"], rootClassName$U, theme.palette.figma.icon.black, theme.palette.figma.neutral.elevated, theme.palette.figma.neutral.ripple, theme.palette.figma.neutral.active, theme.palette.figma.icon.disabled, theme.palette.figma.neutral.elevated, theme.palette.figma.border.defaultButton, theme.spacing(1), theme.palette.figma.toggleTabs.bckg));
|
|
2659
2733
|
|
|
2660
2734
|
const DotIconButton = ({
|
|
2661
2735
|
ariaLabel,
|
|
@@ -2673,7 +2747,7 @@ const DotIconButton = ({
|
|
|
2673
2747
|
size: _size = 'medium'
|
|
2674
2748
|
}) => {
|
|
2675
2749
|
const rippleClassName = _disableRipple ? 'ripple-disabled' : '';
|
|
2676
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2750
|
+
const rootClasses = useStylesWithRootClass(rootClassName$U, rippleClassName, `shape-${_shape}`, className);
|
|
2677
2751
|
return jsx(DotTooltip, {
|
|
2678
2752
|
"data-testid": "icon-button-tooltip",
|
|
2679
2753
|
title: tooltip,
|
|
@@ -2706,7 +2780,7 @@ const DotDrawerHeader = ({
|
|
|
2706
2780
|
onClose,
|
|
2707
2781
|
variant
|
|
2708
2782
|
}) => {
|
|
2709
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2783
|
+
const rootClasses = useStylesWithRootClass(rootClassName$V, className);
|
|
2710
2784
|
return jsxs(StyleDrawerHeader, {
|
|
2711
2785
|
"aria-label": ariaLabel,
|
|
2712
2786
|
"aria-level": 2,
|
|
@@ -2723,11 +2797,11 @@ const DotDrawerHeader = ({
|
|
|
2723
2797
|
});
|
|
2724
2798
|
};
|
|
2725
2799
|
|
|
2726
|
-
const rootClassName$
|
|
2800
|
+
const rootClassName$T = 'dot-drawer-body';
|
|
2727
2801
|
const StyleDrawerBody = styled.div.withConfig({
|
|
2728
2802
|
displayName: "DrawerBodystyles__StyleDrawerBody",
|
|
2729
2803
|
componentId: "sc-1mpmjdk-0"
|
|
2730
|
-
})(["", ""], () => css(["&.", "{display:flex;.dot-drawer-close-button{align-self:self-start;padding:0;margin-left:auto;}}"], rootClassName$
|
|
2804
|
+
})(["", ""], () => css(["&.", "{display:flex;.dot-drawer-close-button{align-self:self-start;padding:0;margin-left:auto;}}"], rootClassName$T));
|
|
2731
2805
|
|
|
2732
2806
|
const DotDrawerBody = ({
|
|
2733
2807
|
ariaLabel,
|
|
@@ -2739,7 +2813,7 @@ const DotDrawerBody = ({
|
|
|
2739
2813
|
onClose,
|
|
2740
2814
|
variant
|
|
2741
2815
|
}) => {
|
|
2742
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2816
|
+
const rootClasses = useStylesWithRootClass(rootClassName$T, className);
|
|
2743
2817
|
return jsxs(StyleDrawerBody, {
|
|
2744
2818
|
"aria-label": ariaLabel,
|
|
2745
2819
|
className: rootClasses,
|
|
@@ -2754,13 +2828,13 @@ const DotDrawerBody = ({
|
|
|
2754
2828
|
});
|
|
2755
2829
|
};
|
|
2756
2830
|
|
|
2757
|
-
const rootClassName$
|
|
2831
|
+
const rootClassName$S = 'dot-drawer-footer';
|
|
2758
2832
|
const StyleDrawerFooter = styled.div.withConfig({
|
|
2759
2833
|
displayName: "DrawerFooterstyles__StyleDrawerFooter",
|
|
2760
2834
|
componentId: "sc-1ki05ze-0"
|
|
2761
2835
|
})(["", ""], ({
|
|
2762
2836
|
theme
|
|
2763
|
-
}) => css(["&.", "{padding:", ";}"], rootClassName$
|
|
2837
|
+
}) => css(["&.", "{padding:", ";}"], rootClassName$S, theme.spacing(2, 0, 0)));
|
|
2764
2838
|
|
|
2765
2839
|
const DotDrawerFooter = ({
|
|
2766
2840
|
ariaLabel,
|
|
@@ -2769,7 +2843,7 @@ const DotDrawerFooter = ({
|
|
|
2769
2843
|
className,
|
|
2770
2844
|
'data-testid': dataTestId
|
|
2771
2845
|
}) => {
|
|
2772
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2846
|
+
const rootClasses = useStylesWithRootClass(rootClassName$S, className);
|
|
2773
2847
|
return jsx(StyleDrawerFooter, {
|
|
2774
2848
|
"aria-label": ariaLabel,
|
|
2775
2849
|
className: rootClasses,
|
|
@@ -2807,7 +2881,7 @@ const DotDrawer = ({
|
|
|
2807
2881
|
onClose(event);
|
|
2808
2882
|
}
|
|
2809
2883
|
};
|
|
2810
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2884
|
+
const rootClasses = useStylesWithRootClass(rootClassName$W, className);
|
|
2811
2885
|
const backdropEnabled = _variant === 'temporary' && !(ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.hideBackdrop);
|
|
2812
2886
|
const headerExists = !!drawerHeaderProps;
|
|
2813
2887
|
const bodyTestId = drawerBodyProps ? drawerBodyProps[`data-testid`] : 'drawer-body';
|
|
@@ -2869,7 +2943,7 @@ const styledListItemElement = elementType => {
|
|
|
2869
2943
|
componentId: "sc-1fawh8v-0"
|
|
2870
2944
|
})(["", ""], ({
|
|
2871
2945
|
theme
|
|
2872
|
-
}) => css(["&.", "{&.", "{padding:0;}.dot-tooltip{display:flex;width:100%;}p.MuiTypography-root{flex-grow:2;margin-bottom:0;}.", "{align-items:center;display:flex;flex-grow:2;}.", " .MuiIcon-root{margin-right:", ";}.dot-icon i:before{color:", ";}}"], listItemRootClass, flyoutListItemClassName, listItemLinkClassName, flyoutItemLinkClassName, theme.spacing(4), theme.palette.
|
|
2946
|
+
}) => css(["&.", "{& > span:first-of-type{display:flex;width:100%;}&.", "{padding:0;}&:hover{background:", ";}.dot-tooltip{display:flex;width:100%;}p.MuiTypography-root{flex-grow:2;margin-bottom:0;}.", "{align-items:center;display:flex;flex-grow:2;}.", " .MuiIcon-root{margin-right:", ";}.dot-icon i:before{color:", ";}}"], listItemRootClass, flyoutListItemClassName, theme.palette.figma.neutral.elevated, listItemLinkClassName, flyoutItemLinkClassName, theme.spacing(4), theme.palette.figma.icon.black));
|
|
2873
2947
|
};
|
|
2874
2948
|
const StyledListItem = styledListItemElement(ListItem);
|
|
2875
2949
|
const StyledListItemButton = styledListItemElement(ListItemButton);
|
|
@@ -3117,7 +3191,7 @@ const DotList = ({
|
|
|
3117
3191
|
nestedListType: _nestedListType = 'expandable',
|
|
3118
3192
|
width: _width = 240
|
|
3119
3193
|
}) => {
|
|
3120
|
-
const rootClasses = useStylesWithRootClass(rootClassName
|
|
3194
|
+
const rootClasses = useStylesWithRootClass(rootClassName$$, className);
|
|
3121
3195
|
const listWidth = typeof _width === 'number' ? `${_width}px` : _width;
|
|
3122
3196
|
const listRef = useRef();
|
|
3123
3197
|
const [listItemIndex, setListItemIndex] = useState(null);
|
|
@@ -3281,8 +3355,10 @@ const DotInputText = ({
|
|
|
3281
3355
|
inputRef,
|
|
3282
3356
|
label,
|
|
3283
3357
|
max,
|
|
3358
|
+
maxLength,
|
|
3284
3359
|
maxRows,
|
|
3285
3360
|
min,
|
|
3361
|
+
minLength,
|
|
3286
3362
|
minRows,
|
|
3287
3363
|
multiline: _multiline = false,
|
|
3288
3364
|
name,
|
|
@@ -3309,7 +3385,7 @@ const DotInputText = ({
|
|
|
3309
3385
|
const hasEndAdornmentIcon = endIcon || _error || hasWarning || hasSuccess;
|
|
3310
3386
|
// This state is used only with debounce feature enabled
|
|
3311
3387
|
const [inputTextState, setInputTextState] = useState(hasDebounce && getInitialState(value));
|
|
3312
|
-
const rootStyles = useStylesWithRootClass(rootClassName$
|
|
3388
|
+
const rootStyles = useStylesWithRootClass(rootClassName$15, hasError, hasWarning, hasSuccess, _readOnly && readOnlyClassName$1);
|
|
3313
3389
|
// Used to control text value from the consumer component
|
|
3314
3390
|
// when debounce feature is enabled
|
|
3315
3391
|
useEffect(() => {
|
|
@@ -3394,7 +3470,9 @@ const DotInputText = ({
|
|
|
3394
3470
|
className: inputClassName,
|
|
3395
3471
|
'data-testid': dataTestId,
|
|
3396
3472
|
max,
|
|
3473
|
+
maxLength: maxLength,
|
|
3397
3474
|
min,
|
|
3475
|
+
minLength: minLength,
|
|
3398
3476
|
readOnly: _readOnly,
|
|
3399
3477
|
tabIndex: 0
|
|
3400
3478
|
},
|
|
@@ -3420,11 +3498,11 @@ const DotInputText = ({
|
|
|
3420
3498
|
});
|
|
3421
3499
|
};
|
|
3422
3500
|
|
|
3423
|
-
const rootClassName$
|
|
3501
|
+
const rootClassName$R = 'dot-search-input';
|
|
3424
3502
|
const StyledSearchInput = styled.span.withConfig({
|
|
3425
3503
|
displayName: "SearchInputstyles__StyledSearchInput",
|
|
3426
3504
|
componentId: "qlwzku-0"
|
|
3427
|
-
})(["", ""], () => css(["&.", "{}"], rootClassName$
|
|
3505
|
+
})(["", ""], () => css(["&.", "{}"], rootClassName$R));
|
|
3428
3506
|
|
|
3429
3507
|
function SearchInput({
|
|
3430
3508
|
'data-testid': dataTestId,
|
|
@@ -3438,7 +3516,7 @@ function SearchInput({
|
|
|
3438
3516
|
tooltip = null,
|
|
3439
3517
|
value
|
|
3440
3518
|
}) {
|
|
3441
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3519
|
+
const rootClasses = useStylesWithRootClass(rootClassName$R, className);
|
|
3442
3520
|
const [searchText, setSearchText] = useState(value);
|
|
3443
3521
|
let previousSearchText = '';
|
|
3444
3522
|
const handleChange = useCallback(event => {
|
|
@@ -3489,13 +3567,13 @@ function SearchInput({
|
|
|
3489
3567
|
});
|
|
3490
3568
|
}
|
|
3491
3569
|
|
|
3492
|
-
const rootClassName$
|
|
3570
|
+
const rootClassName$Q = 'dot-copy-button';
|
|
3493
3571
|
const StyledCopyButton = styled.span.withConfig({
|
|
3494
3572
|
displayName: "CopyButtonstyles__StyledCopyButton",
|
|
3495
3573
|
componentId: "sc-18ff0u-0"
|
|
3496
3574
|
})(["", ""], ({
|
|
3497
3575
|
theme
|
|
3498
|
-
}) => css(["&.", " .copied-to-clipboard{color:", ";}"], rootClassName$
|
|
3576
|
+
}) => css(["&.", " .copied-to-clipboard{color:", ";}"], rootClassName$Q, theme.palette.figma.success.normal));
|
|
3499
3577
|
|
|
3500
3578
|
const DotCopyButton = ({
|
|
3501
3579
|
ariaLabel: _ariaLabel = 'Copy to clipboard',
|
|
@@ -3551,7 +3629,7 @@ const DotCopyButton = ({
|
|
|
3551
3629
|
return false;
|
|
3552
3630
|
}, [_showCopiedIcon, _disabled, _onClick]);
|
|
3553
3631
|
return jsxs(StyledCopyButton, {
|
|
3554
|
-
className: rootClassName$
|
|
3632
|
+
className: rootClassName$Q,
|
|
3555
3633
|
"data-testid": dataTestId,
|
|
3556
3634
|
children: [!timedShowCopiedIcon && jsx(DotIconButton, {
|
|
3557
3635
|
ariaLabel: _ariaLabel,
|
|
@@ -3782,13 +3860,13 @@ const recentAppInstancesSetter = (latestInstance, maxRecentItems
|
|
|
3782
3860
|
};
|
|
3783
3861
|
};
|
|
3784
3862
|
|
|
3785
|
-
const rootClassName$
|
|
3863
|
+
const rootClassName$P = 'dot-app-switcher';
|
|
3786
3864
|
const StyledAppSwitcher = styled(DotDrawer).withConfig({
|
|
3787
3865
|
displayName: "AppSwitcherstyles__StyledAppSwitcher",
|
|
3788
3866
|
componentId: "hhxfqg-0"
|
|
3789
3867
|
})(["", ""], ({
|
|
3790
3868
|
theme
|
|
3791
|
-
}) => css(["&.", "{.dot-drawer-paper{padding:0;width:382px;}.content{padding:", ";overflow-y:auto;}.app-menu-item{display:flex;justify-content:space-between;align-items:center;}.dot-link,.product-menu-item{display:flex;justify-content:space-between;align-items:center;width:100%;height:60px;margin-bottom:", ";text-decoration:none;cursor:pointer;}.logo-title{display:flex;align-items:center;gap:16px;width:100%;.start-icon{width:40px;display:flex;justify-content:space-around;align-items:center;}}.dot-avatar{flex-basis:40px;}.section-title{display:flex;align-items:center;height:30px;padding:", ";margin:", ";border-bottom:1px solid ", ";}.dot-app-switcher-app-title{min-width:150px;}.dot-icon{flex-basis:content;}.app-switcher-header{
|
|
3869
|
+
}) => css(["&.", "{.dot-drawer-paper{padding:0;width:382px;.dot-list{background:transparent;}}.content{padding:", ";overflow-y:auto;}.app-menu-item{display:flex;justify-content:space-between;align-items:center;}.dot-link,.product-menu-item{display:flex;justify-content:space-between;align-items:center;width:100%;height:60px;margin-bottom:", ";text-decoration:none;cursor:pointer;}.logo-title{display:flex;align-items:center;gap:16px;width:100%;.start-icon{width:40px;display:flex;justify-content:space-around;align-items:center;}}.dot-avatar{flex-basis:40px;}.section-title{display:flex;align-items:center;height:30px;padding:", ";margin:", ";border-bottom:1px solid ", ";}.dot-app-switcher-app-title{min-width:150px;}.dot-icon{flex-basis:content;}.app-switcher-header{align-items:end;border-bottom:1px solid ", ";display:flex;justify-content:space-between;padding:", ";.app-switcher-header-title{display:flex;align-items:center;}.app-switcher-label{padding-left:", ";}}}.product-heading{display:flex;align-items:center;gap:16px;}.product-applications{margin-top:", ";width:100%;}.app-instance-search{margin-top:", ";}}"], rootClassName$P, theme.spacing(0, 2, 1, 2), theme.spacing(1), theme.spacing(0, 0, 0, 2), theme.spacing(0, -2, 0), theme.palette.figma.border.default, theme.palette.figma.border.default, theme.spacing(0, 2, 1, 2), theme.spacing(2), theme.spacing(2), theme.spacing(2)));
|
|
3792
3870
|
|
|
3793
3871
|
const DotAppSwitcherView = ({
|
|
3794
3872
|
activeApp,
|
|
@@ -3809,7 +3887,7 @@ const DotAppSwitcherView = ({
|
|
|
3809
3887
|
if (dotCoreApiContext !== null) {
|
|
3810
3888
|
setSelectedAppType = dotCoreApiContext.setSelectedAppSwitcherAppType;
|
|
3811
3889
|
}
|
|
3812
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3890
|
+
const rootClasses = useStylesWithRootClass(rootClassName$P, className);
|
|
3813
3891
|
const [appTypeMap, setAppTypeMap] = useState();
|
|
3814
3892
|
const [appTypeLabels, setAppTypeLabels] = useState();
|
|
3815
3893
|
const [appTypeMenuItems, setAppTypeMenuItems] = useState();
|
|
@@ -3966,18 +4044,14 @@ const DotAppSwitcherView = ({
|
|
|
3966
4044
|
return jsxs("div", {
|
|
3967
4045
|
className: "content",
|
|
3968
4046
|
role: "contentinfo",
|
|
3969
|
-
children: [jsx(
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
children: jsx("span", {
|
|
3978
|
-
children: "Back"
|
|
3979
|
-
})
|
|
3980
|
-
})
|
|
4047
|
+
children: [jsx(DotButton, {
|
|
4048
|
+
className: "app-switcher-back-button",
|
|
4049
|
+
type: "text",
|
|
4050
|
+
onClick: showAppTypes,
|
|
4051
|
+
startIcon: jsx(DotIcon, {
|
|
4052
|
+
iconId: "back"
|
|
4053
|
+
}),
|
|
4054
|
+
children: "Back"
|
|
3981
4055
|
}), jsx("div", {
|
|
3982
4056
|
"aria-level": 2,
|
|
3983
4057
|
className: "product-heading",
|
|
@@ -4191,19 +4265,19 @@ var SvgLogoDigitalAiWhite = function SvgLogoDigitalAiWhite(_ref, ref) {
|
|
|
4191
4265
|
};
|
|
4192
4266
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgLogoDigitalAiWhite);
|
|
4193
4267
|
|
|
4194
|
-
const rootClassName$
|
|
4268
|
+
const rootClassName$O = 'dot-sidebar';
|
|
4195
4269
|
const StyledSidebar = styled.aside.withConfig({
|
|
4196
4270
|
displayName: "Sidebarstyles__StyledSidebar",
|
|
4197
4271
|
componentId: "l3atb4-0"
|
|
4198
4272
|
})(["", ""], ({
|
|
4199
4273
|
theme
|
|
4200
|
-
}) => css(["&.", "{align-items:stretch;background:", ";border-width:0 1px;border-style:solid;border-color:", ";box-sizing:border-box;color:", ";display:flex;height:100%;flex-direction:column;justify-content:space-between;letter-spacing:0.01em;-o-transition:width cubic-bezier(0.4,0,0.6,1) 0.3s;-moz-transition:width cubic-bezier(0.4,0,0.6,1) 0.3s;-webkit-transition:width cubic-bezier(0.4,0,0.6,1) 0.3s;transition:width cubic-bezier(0.4,0,0.6,1) 0.3s;header{align-items:center;border-bottom:1px solid;border-bottom-color:", ";display:flex;height:40px;flex-shrink:0;overflow:hidden;padding:", ";white-space:nowrap;&.app-logo{box-sizing:border-box;.dot-app-logo{svg,img{max-width:100%;}}}.dot-avatar{margin-right:", ";}}.go-back{align-items:center;border-bottom:1px solid;border-bottom-color:", ";display:flex;.go-back-button{
|
|
4274
|
+
}) => css(["&.", "{align-items:stretch;background:", ";border-width:0 1px;border-style:solid;border-color:", ";box-sizing:border-box;color:", ";display:flex;height:100%;flex-direction:column;justify-content:space-between;letter-spacing:0.01em;-o-transition:width cubic-bezier(0.4,0,0.6,1) 0.3s;-moz-transition:width cubic-bezier(0.4,0,0.6,1) 0.3s;-webkit-transition:width cubic-bezier(0.4,0,0.6,1) 0.3s;transition:width cubic-bezier(0.4,0,0.6,1) 0.3s;header{align-items:center;border-bottom:1px solid;border-bottom-color:", ";display:flex;height:40px;flex-shrink:0;overflow:hidden;padding:", ";white-space:nowrap;&.app-logo{box-sizing:border-box;.dot-app-logo{svg,img{max-width:100%;}}}.dot-avatar{margin-right:", ";}}.go-back{align-items:center;border-bottom:1px solid;border-bottom-color:", ";display:flex;.go-back-button{color:", ";background-color:", ";margin:", ";&:hover{background-color:", ";.dot-icon{color:", ";}}&:focus-visible{box-shadow:0 0 0 2px ", ",0 0 0 4px ", ";}}.back-button-text{margin-right:", ";}}hr.MuiDivider-root{border-color:", ";margin:", ";}.MuiListSubheader-root{border-bottom:1px solid ", ";margin:", ";.dot-typography{display:block;margin:0;padding:", ";}}ul.side-nav{background:transparent;flex-grow:2;overflow-x:hidden;overflow-y:auto;padding:0;width:auto;.dot-nested-list{background:transparent;}.", "{.dot-drawer-paper{padding:", ";overflow-y:auto;border-right:1px solid ", ";box-shadow:0 0 5px 0 rgba(0,0,0,0.15);background:", ";color:", ";}.MuiTypography-root.MuiTypography-subtitle2{line-height:40px;}}.", "{height:44px;margin:0;padding:0;.dot-typography{margin-left:", ";}.MuiListItemIcon-root{min-width:40px;.dot-icon{margin:0;}}&:before{content:'';position:relative;left:0;top:0;bottom:0;border-radius:0 2px 2px 0;height:24px;width:4px;background-color:transparent;margin-right:", ";}&:hover{background-color:", ";color:", ";.dot-typography,.dot-icon i:before,.MuiListItemIcon-root .dot-icon i:before{color:", ";}}&.Mui-selected{background-color:", ";color:", ";&:before{background-color:", ";}.dot-typography,.MuiListItemIcon-root .dot-icon i:before{color:", ";}}&.Mui-focusVisible{background-color:", ";box-shadow:inset 0 0 0 2px ", ";border:2px solid ", ";}&.open{border:'none';}.dot-list-item-link .dot-icon{margin-right:", ";}.dot-icon{border-radius:50%;display:flex;height:40px;margin:", ";width:40px;}.dot-typography{white-space:nowrap;}}}.toggle-nav{border-top:1px solid ", ";padding:", ";text-align:right;.dot-icon{transform:rotate(0deg);-o-transition:all cubic-bezier(0.4,0,0.2,1) 0.3s;-moz-transition:all cubic-bezier(0.4,0,0.2,1) 0.3s;-webkit-transition:all cubic-bezier(0.4,0,0.2,1) 0.3s;transition:all cubic-bezier(0.4,0,0.2,1) 0.3s;}}.powered-by{border-top:1px solid ", ";color:", ";display:flex;flex-direction:column;flex-shrink:0;font-size:12px;overflow:hidden;padding:", ";p.desc{white-space:nowrap;}.company-name{margin-top:", ";}.d-icon{display:none;}}&.collapsed{overflow:hidden;width:58px;-o-transition:all cubic-bezier(0.4,0,0.6,1) 0.3s;-moz-transition:all cubic-bezier(0.4,0,0.6,1) 0.3s;-webkit-transition:all cubic-bezier(0.4,0,0.6,1) 0.3s;transition:all cubic-bezier(0.4,0,0.6,1) 0.3s;li.MuiListSubheader-root .dot-typography,.go-back .MuiTypography-root,.MuiListItem-divider .dot-list-item-link,.child,.powered-by .company-name,.powered-by p.desc{display:none;}.dot-nested-drawer li.MuiListSubheader-root .dot-typography,.powered-by .d-icon{display:block;}header .dot-app-logo{text-align:center;}ul.side-nav{width:56px;.dot-list-item{margin-left:0;}.toggle-nav{align-self:center;}}.powered-by{align-items:center;}}}"], rootClassName$O, theme.palette.figma.background.level1.white, theme.palette.figma.border.default, theme.palette.figma.typography.black, theme.palette.figma.border.default, theme.spacing(1, 2), theme.spacing(1), theme.palette.figma.border.default, theme.palette.figma.icon.disabled, theme.palette.figma.background.level1.deep, theme.spacing(0.5, 1), theme.palette.figma.primary.normal, theme.palette.figma.typography.white, theme.palette.figma.icon.white, theme.palette.figma.icon.black, theme.spacing(2.5), theme.palette.figma.border.default, theme.spacing(1, 0), theme.palette.figma.border.default, theme.spacing(0, 0, 1), theme.spacing(1.5, 2), nestedDrawerClassName, theme.spacing(2), theme.palette.figma.border.default, theme.palette.figma.background.level0.componentsBackground, theme.palette.figma.typography.black, listItemRootClass, theme.spacing(1), theme.spacing(1), theme.palette.figma.overlay.table.highlights, theme.palette.figma.toggleTabs.text, theme.palette.figma.toggleTabs.text, theme.palette.figma.overlay.table.highlights, theme.palette.figma.toggleTabs.text, theme.palette.figma.toggleTabs.text, theme.palette.figma.toggleTabs.text, theme.palette.figma.primary.light, theme.palette.figma.background.level0.componentsBackground, theme.palette.figma.primary.normal, theme.spacing(1), theme.spacing(0, 1), theme.palette.figma.border.default, theme.spacing(1), theme.palette.figma.border.default, theme.palette.figma.typography.gray, theme.spacing(1), theme.spacing(1)));
|
|
4201
4275
|
|
|
4202
|
-
const rootClassName$
|
|
4276
|
+
const rootClassName$N = 'dot-truncate-with-tooltip';
|
|
4203
4277
|
const StyledTruncateWithTooltip = styled(Tooltip).withConfig({
|
|
4204
4278
|
displayName: "TruncateWithTooltipstyles__StyledTruncateWithTooltip",
|
|
4205
4279
|
componentId: "sc-1o80lur-0"
|
|
4206
|
-
})(["", ""], () => css(["&.", "{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}&.dot-characters-limit{display:inline;}"], rootClassName$
|
|
4280
|
+
})(["", ""], () => css(["&.", "{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}&.dot-characters-limit{display:inline;}"], rootClassName$N));
|
|
4207
4281
|
|
|
4208
4282
|
const getTruncatedLabel = (label, charactersLimit) => {
|
|
4209
4283
|
if (!charactersLimit || charactersLimit <= 0 || label.length < charactersLimit) return label;
|
|
@@ -4223,7 +4297,7 @@ const DotTruncateWithTooltip = ({
|
|
|
4223
4297
|
label,
|
|
4224
4298
|
width
|
|
4225
4299
|
}) => {
|
|
4226
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4300
|
+
const rootClasses = useStylesWithRootClass(rootClassName$N, className, charactersLimit ? 'dot-characters-limit' : '');
|
|
4227
4301
|
return jsx(StyledTruncateWithTooltip, {
|
|
4228
4302
|
"aria-label": ariaLabel,
|
|
4229
4303
|
arrow: _arrow,
|
|
@@ -4333,7 +4407,7 @@ const DotSidebar = ({
|
|
|
4333
4407
|
setIsOpen(!isOpen);
|
|
4334
4408
|
};
|
|
4335
4409
|
const sidebarClasses = useStylesWithRootClass('side-nav', openClass);
|
|
4336
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4410
|
+
const rootClasses = useStylesWithRootClass(rootClassName$O, openClass, className);
|
|
4337
4411
|
return jsxs(StyledSidebar, {
|
|
4338
4412
|
"aria-label": ariaLabel,
|
|
4339
4413
|
className: rootClasses,
|
|
@@ -4400,13 +4474,13 @@ const DotSidebar = ({
|
|
|
4400
4474
|
});
|
|
4401
4475
|
};
|
|
4402
4476
|
|
|
4403
|
-
const rootClassName$
|
|
4477
|
+
const rootClassName$M = 'dot-badge';
|
|
4404
4478
|
const StyledBadge = styled(Badge).withConfig({
|
|
4405
4479
|
displayName: "Badgestyles__StyledBadge",
|
|
4406
4480
|
componentId: "sc-1brv3h5-0"
|
|
4407
4481
|
})(["", ""], ({
|
|
4408
4482
|
theme
|
|
4409
|
-
}) => css(["&.", "{color:", ";word-break:normal;.MuiBadge-badge{background-color:", ";color:", ";&.MuiBadge-standard{font-size:10px;height:", ";min-width:", ";padding:", ";}}}"], rootClassName$
|
|
4483
|
+
}) => css(["&.", "{color:", ";word-break:normal;.MuiBadge-badge{background-color:", ";color:", ";&.MuiBadge-standard{font-size:10px;height:", ";min-width:", ";padding:", ";}}}"], rootClassName$M, theme.palette.figma.typography.black, ({
|
|
4410
4484
|
$badgeColor
|
|
4411
4485
|
}) => {
|
|
4412
4486
|
return $badgeColor || theme.palette.figma.destructive.normal;
|
|
@@ -4424,7 +4498,7 @@ const DotBadge = ({
|
|
|
4424
4498
|
overlap,
|
|
4425
4499
|
variant: _variant = 'dot'
|
|
4426
4500
|
}) => {
|
|
4427
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4501
|
+
const rootClasses = useStylesWithRootClass(rootClassName$M, className);
|
|
4428
4502
|
return jsx(StyledBadge, {
|
|
4429
4503
|
"$badgeColor": badgeColor,
|
|
4430
4504
|
anchorOrigin: {
|
|
@@ -4446,7 +4520,7 @@ const DotBadge = ({
|
|
|
4446
4520
|
});
|
|
4447
4521
|
};
|
|
4448
4522
|
|
|
4449
|
-
const rootClassName$
|
|
4523
|
+
const rootClassName$L = 'dot-app-toolbar';
|
|
4450
4524
|
const denseClassName = 'dense';
|
|
4451
4525
|
const StyledMainMenu = styled(DotDrawer).withConfig({
|
|
4452
4526
|
displayName: "AppToolbarstyles__StyledMainMenu",
|
|
@@ -4459,7 +4533,7 @@ const StyledAppToolbar = styled.header.withConfig({
|
|
|
4459
4533
|
componentId: "sc-3kokby-1"
|
|
4460
4534
|
})(["", ""], ({
|
|
4461
4535
|
theme
|
|
4462
|
-
}) => css(["&.", "{align-items:center;background:", ";border-bottom:4px solid ", ";box-sizing:border-box;color:", ";display:flex;height:64px;padding:", ";position:fixed;width:100%;z-index:", ";top:0;left:0;right:0;&.without-menu-icon{padding-left:", ";}&.", "{height:48px;}.dot-main-menu-btn,.dot-right-side{.dot-icon-btn .dot-icon{color:", ";}}.dot-main-menu-btn{text-align:center;}.dot-branding{align-items:center;display:flex;padding:", ";.primary-logo,.app-logo{margin-right:", ";}.primary-logo,.dot-app-logo{display:flex;max-width:200px;svg,img{max-height:36px;max-width:200px;}}a{line-height:0;}.divider{margin-left:", ";}}div.dot-right-side{display:flex;flex-grow:2;justify-content:flex-end;.dot-badge .MuiBadge-anchorOriginTopRightRectangular{top:", ";right:", ";}}.avatar-wrapper{display:flex;align-items:center;justify-content:center;width:40px;button.dot-avatar:focus-visible{box-shadow:0px 0px 0px 3px ", ",0px 0px 0px 5px ", ";}}}"], rootClassName$
|
|
4536
|
+
}) => css(["&.", "{align-items:center;background:", ";border-bottom:4px solid ", ";box-sizing:border-box;color:", ";display:flex;height:64px;padding:", ";position:fixed;width:100%;z-index:", ";top:0;left:0;right:0;&.without-menu-icon{padding-left:", ";}&.", "{height:48px;}.dot-main-menu-btn,.dot-right-side{.dot-icon-btn{&:hover{background:", ";}.dot-icon{color:", ";}}}.dot-main-menu-btn{text-align:center;}.dot-branding{align-items:center;display:flex;padding:", ";.primary-logo,.app-logo{margin-right:", ";}.primary-logo,.dot-app-logo{display:flex;max-width:200px;svg,img{max-height:36px;max-width:200px;}}a{line-height:0;}.divider{margin-left:", ";}}div.dot-right-side{display:flex;flex-grow:2;justify-content:flex-end;.dot-badge .MuiBadge-anchorOriginTopRightRectangular{top:", ";right:", ";}}.avatar-wrapper{display:flex;align-items:center;justify-content:center;width:40px;button.dot-avatar:focus-visible{box-shadow:0px 0px 0px 3px ", ",0px 0px 0px 5px ", ";}}}"], rootClassName$L, theme.palette.figma.appToolbar.background, theme.palette.figma.border.default, theme.palette.figma.typography.white, theme.spacing(1.5, 2, 1.5, 1), levelFourth, theme.spacing(1.5), denseClassName, theme.palette.figma.appToolbar.btnHover, theme.palette.figma.border.avatar, theme.spacing(0, 4, 0, 0.75), theme.spacing(1.5), theme.spacing(2), theme.spacing(1.5), theme.spacing(1.5), theme.palette.figma.icon.white, theme.palette.figma.icon.black));
|
|
4463
4537
|
|
|
4464
4538
|
const DotAppToolbar = ({
|
|
4465
4539
|
ariaLabel,
|
|
@@ -4487,7 +4561,7 @@ const DotAppToolbar = ({
|
|
|
4487
4561
|
const displayAppLogo = appLogo || appLogoSmall;
|
|
4488
4562
|
const mainMenuRef = useRef(null);
|
|
4489
4563
|
const denseClass = _dense ? denseClassName : '';
|
|
4490
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4564
|
+
const rootClasses = useStylesWithRootClass(rootClassName$L, className, denseClass, showMainMenu ? '' : 'without-menu-icon');
|
|
4491
4565
|
const mainMenuClasses = useStylesWithRootClass('dot-main-menu', denseClass, menuOpen ? 'open' : '');
|
|
4492
4566
|
const targetBreakpoint = useMediaQuery(theme => theme.breakpoints.up('md'));
|
|
4493
4567
|
useEffect(() => {
|
|
@@ -4617,7 +4691,7 @@ const DotAppToolbar = ({
|
|
|
4617
4691
|
}) : appToolbar;
|
|
4618
4692
|
};
|
|
4619
4693
|
|
|
4620
|
-
const rootClassName$
|
|
4694
|
+
const rootClassName$K = 'dot-autocomplete';
|
|
4621
4695
|
const inputRootClassName = 'dot-input-root';
|
|
4622
4696
|
const inputMediumClassName = 'dot-input-medium';
|
|
4623
4697
|
const StyledAutocomplete = styled(Autocomplete).withConfig({
|
|
@@ -4625,15 +4699,15 @@ const StyledAutocomplete = styled(Autocomplete).withConfig({
|
|
|
4625
4699
|
componentId: "j2sgjy-0"
|
|
4626
4700
|
})(["", ""], ({
|
|
4627
4701
|
theme
|
|
4628
|
-
}) => css(["&.", "{&.", " .dot-text-field .", "{height:56px;padding-left:", ";}.MuiInputBase-root.Mui-disabled,.", " .MuiInputBase-root{", ";}.", "{padding-top:", ";padding-bottom:", ";}.dot-chip:first-child{margin-left:", ";}.dot-text-field{.", "{min-height:", ";}.warning-icon{color:", ";}.error-icon{color:", ";}}}"], rootClassName$
|
|
4702
|
+
}) => css(["&.", "{&.", " .dot-text-field .", "{height:56px;padding-left:", ";}.MuiInputBase-root.Mui-disabled,.", " .MuiInputBase-root{", ";}.", "{padding-top:", ";padding-bottom:", ";}.dot-chip:first-child{margin-left:", ";}.dot-text-field{.", "{min-height:", ";}.warning-icon{color:", ";}.error-icon{color:", ";}}}"], rootClassName$K, inputMediumClassName, inputRootClassName, theme.spacing(2), readOnlyClassName$1, readOnlyStyles(theme), inputRootClassName, theme.spacing(0), theme.spacing(0), theme.spacing(0), inputRootClassName, theme.spacing(5), theme.palette.warning.main, theme.palette.error.main));
|
|
4629
4703
|
|
|
4630
|
-
const rootClassName$
|
|
4704
|
+
const rootClassName$J = 'dot-chip';
|
|
4631
4705
|
const StyledChip = styled(Chip).withConfig({
|
|
4632
4706
|
displayName: "Chipstyles__StyledChip",
|
|
4633
4707
|
componentId: "f1tsra-0"
|
|
4634
4708
|
})(["", ""], ({
|
|
4635
4709
|
theme
|
|
4636
|
-
}) => css(["&.", "{background:", ";border-color:", ";color:", ";.dot-icon i{color:", ";height:auto;}.MuiChip-label{padding:", ";}&.MuiChip-sizeSmall{.dot-icon,.dot-avatar{width:18px;height:18px;}}&.Mui-error{background-color:", ";border-color:", ";.dot-icon i{color:", ";}.MuiChip-label{color:", ";}.MuiChip-deleteIcon{color:", ";}}&.Mui-disabled{background:", ";border-color:", " opacity:1;.dot-icon i{color:", ";}.MuiChip-deleteIcon,.MuiChip-label{color:", ";}}&:not(.Mui-error){&:hover{background-color:", ";}.MuiChip-deleteIcon:hover{color:", ";}}.MuiChip-deleteIcon{width:18px;height:18px;}}"], rootClassName$
|
|
4710
|
+
}) => css(["&.", "{background:", ";border-color:", ";color:", ";.dot-icon i{color:", ";height:auto;}.MuiChip-label{padding:", ";}&.MuiChip-sizeSmall{.dot-icon,.dot-avatar{width:18px;height:18px;}}&.Mui-error{background-color:", ";border-color:", ";.dot-icon i{color:", ";}.MuiChip-label{color:", ";}.MuiChip-deleteIcon{color:", ";}}&.Mui-disabled{background:", ";border-color:", " opacity:1;.dot-icon i{color:", ";}.MuiChip-deleteIcon,.MuiChip-label{color:", ";}}&:not(.Mui-error){&:hover{background-color:", ";}.MuiChip-deleteIcon:hover{color:", ";}}.MuiChip-deleteIcon{width:18px;height:18px;}}"], rootClassName$J, theme.palette.figma.neutral.normal, theme.palette.figma.border.darker, theme.palette.figma.typography.black, theme.palette.figma.icon.black, theme.spacing(0, 1.5), theme.palette.figma.overlay.alerts.error.background, theme.palette.figma.overlay.alerts.error.icon, theme.palette.figma.overlay.alerts.custom.icon, theme.palette.figma.overlay.alerts.text.black, theme.palette.figma.overlay.alerts.error.icon, theme.palette.figma.disabled.normal, theme.palette.figma.border.default, theme.palette.figma.icon.disabled, theme.palette.figma.typography.disabled, theme.palette.figma.neutral.elevated, theme.palette.figma.icon.black));
|
|
4637
4711
|
|
|
4638
4712
|
const DEFAULT_CHARACTERS_LIMIT = 32;
|
|
4639
4713
|
const DotChip = ({
|
|
@@ -4653,7 +4727,7 @@ const DotChip = ({
|
|
|
4653
4727
|
startIcon
|
|
4654
4728
|
}) => {
|
|
4655
4729
|
const errorClass = _error ? 'Mui-error' : '';
|
|
4656
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4730
|
+
const rootClasses = useStylesWithRootClass(rootClassName$J, className, errorClass);
|
|
4657
4731
|
const getChipLabel = () => {
|
|
4658
4732
|
if (_charactersLimit <= 0 || children.length < _charactersLimit) return children;
|
|
4659
4733
|
const label = `${children.substring(0, _charactersLimit)}...`;
|
|
@@ -4799,8 +4873,8 @@ const DotAutoComplete = ({
|
|
|
4799
4873
|
const popperOpen = !_readOnly && (open || isOpened);
|
|
4800
4874
|
const preventDuplicateInsertion = actionItem === null || actionItem === void 0 ? void 0 : actionItem.preventDuplicateInsertion;
|
|
4801
4875
|
const textFieldWarningClassName = !_error && _warning && warningClassName;
|
|
4802
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4803
|
-
const textFieldRootClasses = useStylesWithRootClass(rootClassName$
|
|
4876
|
+
const rootClasses = useStylesWithRootClass(rootClassName$K, _size === 'medium' && inputMediumClassName, className);
|
|
4877
|
+
const textFieldRootClasses = useStylesWithRootClass(rootClassName$15, _readOnly && readOnlyClassName$1, textFieldWarningClassName);
|
|
4804
4878
|
const inputRootClasses = useStylesWithRootClass(inputRootClassName, !_dense && inputMediumClassName);
|
|
4805
4879
|
let highlightedOption = null;
|
|
4806
4880
|
let textFieldInput;
|
|
@@ -4845,7 +4919,7 @@ const DotAutoComplete = ({
|
|
|
4845
4919
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4846
4920
|
const DotPopper = props => {
|
|
4847
4921
|
if (!isActionItemDefined) return jsx(StyledPopper, Object.assign({}, props, {
|
|
4848
|
-
className: rootClassName$
|
|
4922
|
+
className: rootClassName$Z,
|
|
4849
4923
|
disablePortal: _disablePortal,
|
|
4850
4924
|
"$maxHeight": maxHeight
|
|
4851
4925
|
}));
|
|
@@ -4867,7 +4941,7 @@ const DotAutoComplete = ({
|
|
|
4867
4941
|
const paperProps = props.children.props;
|
|
4868
4942
|
const paperChildren = paperProps.children;
|
|
4869
4943
|
return jsx(StyledPopper, Object.assign({}, props, {
|
|
4870
|
-
className: rootClassName$
|
|
4944
|
+
className: rootClassName$Z,
|
|
4871
4945
|
disablePortal: _disablePortal,
|
|
4872
4946
|
"$maxHeight": maxHeight,
|
|
4873
4947
|
children: jsxs(Paper, Object.assign({}, paperProps, {
|
|
@@ -5074,11 +5148,11 @@ const DotAutoComplete = ({
|
|
|
5074
5148
|
});
|
|
5075
5149
|
};
|
|
5076
5150
|
|
|
5077
|
-
const rootClassName$
|
|
5151
|
+
const rootClassName$I = 'dot-avatar-group';
|
|
5078
5152
|
const StyledAvatarGroup = styled(AvatarGroup).withConfig({
|
|
5079
5153
|
displayName: "AvatarGroupstyles__StyledAvatarGroup",
|
|
5080
5154
|
componentId: "sc-25by6z-0"
|
|
5081
|
-
})(["", ""], () => css(["&.", "{justify-content:flex-end;.MuiAvatar-root{border:none;}}}"], rootClassName$
|
|
5155
|
+
})(["", ""], () => css(["&.", "{justify-content:flex-end;.MuiAvatar-root{border:none;}}}"], rootClassName$I));
|
|
5082
5156
|
|
|
5083
5157
|
const DotAvatarGroup = ({
|
|
5084
5158
|
ariaLabel,
|
|
@@ -5088,7 +5162,7 @@ const DotAvatarGroup = ({
|
|
|
5088
5162
|
max: _max = 3,
|
|
5089
5163
|
spacing: _spacing = 'medium'
|
|
5090
5164
|
}) => {
|
|
5091
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5165
|
+
const rootClasses = useStylesWithRootClass(rootClassName$I, className);
|
|
5092
5166
|
return jsx(StyledAvatarGroup, {
|
|
5093
5167
|
"aria-label": ariaLabel,
|
|
5094
5168
|
classes: {
|
|
@@ -5103,20 +5177,20 @@ const DotAvatarGroup = ({
|
|
|
5103
5177
|
});
|
|
5104
5178
|
};
|
|
5105
5179
|
|
|
5106
|
-
const rootClassName$
|
|
5180
|
+
const rootClassName$H = 'dot-breadcrumbs';
|
|
5107
5181
|
const breadcrumbsWrapperClass = 'dot-breadcrumbs-wrapper';
|
|
5108
5182
|
const StyledBreadcrumbsWrapper = styled.div.withConfig({
|
|
5109
5183
|
displayName: "Breadcrumbsstyles__StyledBreadcrumbsWrapper",
|
|
5110
5184
|
componentId: "sc-7cg374-0"
|
|
5111
5185
|
})(["", ""], ({
|
|
5112
5186
|
theme
|
|
5113
|
-
}) => css(["&.", "{overflow:hidden;.dot-breadcrumbs-menu{.MuiMenuItem-root{padding:0;}a.breadcrumb{width:100%;padding:", ";}}}"], rootClassName$
|
|
5187
|
+
}) => css(["&.", "{overflow:hidden;.dot-breadcrumbs-menu{.MuiMenuItem-root{padding:0;}a.breadcrumb{width:100%;padding:", ";}}}"], rootClassName$H, theme.spacing(0.5, 2)));
|
|
5114
5188
|
const StyledBreadcrumbs = styled(Breadcrumbs).withConfig({
|
|
5115
5189
|
displayName: "Breadcrumbsstyles__StyledBreadcrumbs",
|
|
5116
5190
|
componentId: "sc-7cg374-1"
|
|
5117
5191
|
})(["", ""], ({
|
|
5118
5192
|
theme
|
|
5119
|
-
}) => css(["&.", "{margin-bottom:0;.MuiBreadcrumbs-ol{flex-wrap:nowrap;}.MuiBreadcrumbs-li,.separator{color:", ";margin:0;white-space:nowrap;}.separator{font-size:12px;width:20px;height:20px;padding:0;i{line-height:20px;}}.MuiBreadcrumbs-separator{margin:0;}.MuiLink-underlineHover{cursor:pointer;}.MuiBreadcrumbs-li:last-child{overflow:hidden;text-overflow:ellipsis;}.breadcrumb{padding:", ";}.current-page{color:", ";cursor:default;}}"], rootClassName$
|
|
5193
|
+
}) => css(["&.", "{margin-bottom:0;.MuiBreadcrumbs-ol{flex-wrap:nowrap;}.MuiBreadcrumbs-li,.separator{color:", ";margin:0;white-space:nowrap;}.separator{font-size:12px;width:20px;height:20px;padding:0;i{line-height:20px;}}.MuiBreadcrumbs-separator{margin:0;}.MuiLink-underlineHover{cursor:pointer;}.MuiBreadcrumbs-li:last-child{overflow:hidden;text-overflow:ellipsis;}.breadcrumb{padding:", ";}.current-page{color:", ";cursor:default;}}"], rootClassName$H, theme.palette.figma.icon.black, theme.spacing(0.5, 2), theme.palette.figma.typography.black));
|
|
5120
5194
|
|
|
5121
5195
|
const compareWidth = (parentEl, childEl) => {
|
|
5122
5196
|
return parentEl.getBoundingClientRect().width < childEl.getBoundingClientRect().width;
|
|
@@ -5400,7 +5474,7 @@ const DotBreadcrumbs = ({
|
|
|
5400
5474
|
children: [jsx(StyledBreadcrumbs, {
|
|
5401
5475
|
"aria-label": "breadcrumb",
|
|
5402
5476
|
classes: {
|
|
5403
|
-
root: rootClassName$
|
|
5477
|
+
root: rootClassName$H,
|
|
5404
5478
|
ol: 'dot-ol',
|
|
5405
5479
|
li: 'dot-li'
|
|
5406
5480
|
},
|
|
@@ -5431,13 +5505,15 @@ const DotBreadcrumbs = ({
|
|
|
5431
5505
|
});
|
|
5432
5506
|
};
|
|
5433
5507
|
|
|
5434
|
-
const rootClassName$
|
|
5508
|
+
const rootClassName$G = 'dot-button-toggle';
|
|
5509
|
+
// TODO: need to update ripple color
|
|
5510
|
+
// https://github.com/mui/material-ui/issues/28543
|
|
5435
5511
|
const StyledToggleButtonGroup = styled(ToggleButtonGroup).withConfig({
|
|
5436
5512
|
displayName: "ButtonTogglestyles__StyledToggleButtonGroup",
|
|
5437
5513
|
componentId: "sc-1oh4ljv-0"
|
|
5438
5514
|
})(["", ""], ({
|
|
5439
5515
|
theme
|
|
5440
|
-
}) => css(["&.", "{button:not(.MuiToggleButton-sizeLarge):not(.MuiToggleButton-sizeSmall){height:", ";.dot-icon{width:", ";}}.dot-icon{color:", ";display:flex;+ p{margin-left:", ";}i{height:auto;}}.dot-typography{margin-bottom:0;}.MuiToggleButton-label{color:", ";p{margin-bottom:0;}}.MuiToggleButtonGroup-groupedHorizontal{border:1px solid ", ";border-radius:0;}.dot-tooltip{&:first-child .MuiToggleButtonGroup-groupedHorizontal{border-top-left-radius:4px;border-bottom-left-radius:4px;margin-left:0;}&:last-child .MuiToggleButtonGroup-groupedHorizontal{border-top-right-radius:4px;border-bottom-right-radius:4px;margin-right:0;}&:not(:first-child) .MuiToggleButtonGroup-groupedHorizontal{margin-left:-1px;}}& > .MuiToggleButtonGroup-groupedHorizontal{:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px;margin-left:0;}:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px;margin-right:0;}}}.MuiButtonBase-root{&.Mui-disabled
|
|
5516
|
+
}) => css(["&.", "{button:not(.MuiToggleButton-sizeLarge):not(.MuiToggleButton-sizeSmall){height:", ";.dot-icon{width:", ";}}.dot-icon{color:", ";display:flex;+ p{margin-left:", ";}i{height:auto;}}.dot-typography{margin-bottom:0;}.MuiToggleButton-label{color:", ";p{margin-bottom:0;}}.MuiToggleButtonGroup-groupedHorizontal{border:1px solid ", ";border-radius:0;}.dot-tooltip{&:first-child .MuiToggleButtonGroup-groupedHorizontal{border-top-left-radius:4px;border-bottom-left-radius:4px;margin-left:0;}&:last-child .MuiToggleButtonGroup-groupedHorizontal{border-top-right-radius:4px;border-bottom-right-radius:4px;margin-right:0;}&:not(:first-child) .MuiToggleButtonGroup-groupedHorizontal{margin-left:-1px;}}& > .MuiToggleButtonGroup-groupedHorizontal{:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px;margin-left:0;}:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px;margin-right:0;}}}.MuiButtonBase-root{&.Mui-disabled{background:", ";.dot-typography{color:", ";}.dot-icon{color:", ";}}&.Mui-selected{&.MuiToggleButton-standard{background:", ";}.dot-icon,.dot-typography{color:", ";}}}"], rootClassName$G, theme.spacing(5), theme.spacing(2), theme.palette.figma.icon.black, theme.spacing(1), theme.palette.figma.typography.black, theme.palette.figma.border.defaultButton, theme.palette.figma.disabled.normal, theme.palette.figma.typography.gray, theme.palette.figma.icon.disabled, theme.palette.figma.toggleTabs.bckg, theme.palette.figma.toggleTabs.text));
|
|
5441
5517
|
|
|
5442
5518
|
const DotButtonToggle = ({
|
|
5443
5519
|
ariaLabel,
|
|
@@ -5453,7 +5529,7 @@ const DotButtonToggle = ({
|
|
|
5453
5529
|
size: _size = 'medium',
|
|
5454
5530
|
value
|
|
5455
5531
|
}) => {
|
|
5456
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5532
|
+
const rootClasses = useStylesWithRootClass(rootClassName$G, className);
|
|
5457
5533
|
const renderToggleButton = ({
|
|
5458
5534
|
ariaLabel: optionAriaLabel,
|
|
5459
5535
|
className: optionClassName,
|
|
@@ -5523,14 +5599,22 @@ const TooltipToggleButton = /*#__PURE__*/forwardRef((_a, ref) => {
|
|
|
5523
5599
|
}));
|
|
5524
5600
|
});
|
|
5525
5601
|
|
|
5602
|
+
const rootClassName$F = 'dot-card';
|
|
5603
|
+
const StyledCard = styled(Card).withConfig({
|
|
5604
|
+
displayName: "Cardstyles__StyledCard",
|
|
5605
|
+
componentId: "oq44zg-0"
|
|
5606
|
+
})(["", ""], ({
|
|
5607
|
+
theme
|
|
5608
|
+
}) => css(["&.", "{background-color:", ";}"], rootClassName$F, theme.palette.figma.background.level1.white));
|
|
5609
|
+
|
|
5526
5610
|
const DotCard = ({
|
|
5527
5611
|
ariaLabel,
|
|
5528
5612
|
children,
|
|
5529
5613
|
className,
|
|
5530
5614
|
'data-testid': dataTestId
|
|
5531
5615
|
}) => {
|
|
5532
|
-
const rootClasses = useStylesWithRootClass(
|
|
5533
|
-
return jsx(
|
|
5616
|
+
const rootClasses = useStylesWithRootClass(rootClassName$F, className);
|
|
5617
|
+
return jsx(StyledCard, {
|
|
5534
5618
|
"aria-label": ariaLabel,
|
|
5535
5619
|
classes: {
|
|
5536
5620
|
root: rootClasses
|
|
@@ -5628,7 +5712,7 @@ const StyledCheckbox = styled(Checkbox).withConfig({
|
|
|
5628
5712
|
componentId: "sc-1ubsn6i-0"
|
|
5629
5713
|
})(["", ""], ({
|
|
5630
5714
|
theme
|
|
5631
|
-
}) => css(["&.", "{padding:", ";&.MuiCheckbox-indeterminate{color:
|
|
5715
|
+
}) => css(["&.", "{padding:", ";&.MuiCheckbox-indeterminate{color:", ";}&.Mui-disabled svg{color:", ";}}"], rootClassName$C, theme.spacing(1), theme.palette.figma.neutral.darkGray, theme.palette.figma.border.default));
|
|
5632
5716
|
|
|
5633
5717
|
function DotCheckbox({
|
|
5634
5718
|
ariaLabel,
|
|
@@ -5703,7 +5787,7 @@ const StyledCheckboxGroup = styled.div.withConfig({
|
|
|
5703
5787
|
componentId: "bhb21v-0"
|
|
5704
5788
|
})(["", ""], ({
|
|
5705
5789
|
theme
|
|
5706
|
-
}) => css(["{&.", "{.", "{width:100%;}.MuiFormLabel-root{display:inline;width:100%;}.MuiFormHelperText-root{font-family:", ";font-size:", "px;font-weight:", ";&:not(.Mui-error){color:", ";}}.", "{list-style:none;margin-top:0;padding-left:", ";.", "{margin:0;}}}"], wrapperClassName$1, rootClassName$A, theme.typography.body2.fontFamily, theme.typography.body2.fontSize, theme.typography.body2.fontWeight, theme.palette.
|
|
5790
|
+
}) => css(["{&.", "{.", "{width:100%;}.MuiFormLabel-root{display:inline;width:100%;}.MuiFormHelperText-root{font-family:", ";font-size:", "px;font-weight:", ";&:not(.Mui-error){color:", ";}}.", "{list-style:none;margin-top:0;padding-left:", ";.", "{margin:0;}}}"], wrapperClassName$1, rootClassName$A, theme.typography.body2.fontFamily, theme.typography.body2.fontSize, theme.typography.body2.fontWeight, theme.palette.figma.typography.gray, checkboxListClassName, theme.spacing(2.5), rootClassName$D));
|
|
5707
5791
|
|
|
5708
5792
|
const rootClassName$z = 'dot-form-group';
|
|
5709
5793
|
const StyledFormGroup = styled(FormGroup).withConfig({
|
|
@@ -5712,7 +5796,7 @@ const StyledFormGroup = styled(FormGroup).withConfig({
|
|
|
5712
5796
|
})(["", ""], ({
|
|
5713
5797
|
theme,
|
|
5714
5798
|
row
|
|
5715
|
-
}) => css(["&.", "
|
|
5799
|
+
}) => css(["&.", " > *{margin:", ";}"], rootClassName$z, row ? `${theme.spacing(0.5)}` : 0));
|
|
5716
5800
|
|
|
5717
5801
|
function DotFormGroup({
|
|
5718
5802
|
ariaLabel,
|
|
@@ -5851,7 +5935,7 @@ const StyledDialog = styled(Dialog).withConfig({
|
|
|
5851
5935
|
componentId: "sc-1tkr4ex-0"
|
|
5852
5936
|
})(["", ""], ({
|
|
5853
5937
|
theme
|
|
5854
|
-
}) => css(["&.", "{.MuiDialog-paper{
|
|
5938
|
+
}) => css(["&.", "{.MuiDialog-paper{background:", ";color:", ";max-height:80vh;max-width:80vw;min-width:280px;}.MuiDialogTitle-root,.dot-dialog-title{align-items:center;display:flex;flex-wrap:nowrap;padding:", ";h2{flex-grow:1;}.dot-icon-button{margin-left:", ";}}.dot-dialog-content{padding:", ";overflow-y:auto;}.dot-dialog-actions{padding:", ";.cancel-button{color:inherit;}}}"], rootClassName$y, theme.palette.figma.background.level1.white, theme.palette.figma.typography.black, theme.spacing(2, 3), theme.spacing(1), theme.spacing(1, 3), theme.spacing(1, 3, 2, 3)));
|
|
5855
5939
|
|
|
5856
5940
|
const DotDialog = ({
|
|
5857
5941
|
ariaLabel,
|
|
@@ -6240,7 +6324,7 @@ const StyledRadioGroupWrapper = styled.div.withConfig({
|
|
|
6240
6324
|
componentId: "sc-84g3mq-0"
|
|
6241
6325
|
})(["", ""], ({
|
|
6242
6326
|
theme
|
|
6243
|
-
}) => css(["{&.", "{.MuiFormControl-root{width:100%;}.MuiFormLabel-root{display:inline;width:100%;}}.MuiFormHelperText-root{font-family:", ";font-size:", "px;font-weight:", ";&:not(.Mui-error){color:", ";}}"], wrapperClassName, theme.typography.body2.fontFamily, theme.typography.body2.fontSize, theme.typography.body2.fontWeight, theme.palette.
|
|
6327
|
+
}) => css(["{&.", "{.MuiFormControl-root{width:100%;}.MuiFormLabel-root{display:inline;width:100%;}}.MuiFormHelperText-root{font-family:", ";font-size:", "px;font-weight:", ";&:not(.Mui-error){color:", ";}}"], wrapperClassName, theme.typography.body2.fontFamily, theme.typography.body2.fontSize, theme.typography.body2.fontWeight, theme.palette.figma.typography.gray));
|
|
6244
6328
|
const StyledRadioGroup = styled(RadioGroup).withConfig({
|
|
6245
6329
|
displayName: "RadioGroupstyles__StyledRadioGroup",
|
|
6246
6330
|
componentId: "sc-84g3mq-1"
|
|
@@ -6254,7 +6338,7 @@ const StyledFormContainer = styled.div.withConfig({
|
|
|
6254
6338
|
componentId: "bbovqo-0"
|
|
6255
6339
|
})(["", ""], ({
|
|
6256
6340
|
theme
|
|
6257
|
-
}) => css(["&.", "{margin:", ";.", ",.", ",.", ",.", "{margin:", ";}.", ",.", "{.", "{margin:0;}}}"], rootClassName$v, theme.spacing(3, 0), rootClassName$B, rootClassName$D, rootClassName$
|
|
6341
|
+
}) => css(["&.", "{margin:", ";.", ",.", ",.", ",.", "{margin:", ";}.", ",.", "{.", "{margin:0;}}}"], rootClassName$v, theme.spacing(3, 0), rootClassName$B, rootClassName$D, rootClassName$15, rootSelectClassName, theme.spacing(1, 0), rootClassName$A, groupClassName, rootClassName$D));
|
|
6258
6342
|
|
|
6259
6343
|
const DotForm = ({
|
|
6260
6344
|
ariaLabel,
|
|
@@ -6623,7 +6707,9 @@ const rootClassName$s = 'dot-radio';
|
|
|
6623
6707
|
const StyledRadioButton = styled(Radio).withConfig({
|
|
6624
6708
|
displayName: "RadioButtonstyles__StyledRadioButton",
|
|
6625
6709
|
componentId: "brp0sc-0"
|
|
6626
|
-
})(["", ""], (
|
|
6710
|
+
})(["", ""], ({
|
|
6711
|
+
theme
|
|
6712
|
+
}) => css(["&.", "{padding:8px;svg{color:", ";}&.Mui-disabled svg{color:", ";}}"], rootClassName$s, theme.palette.figma.primary.normal, theme.palette.figma.icon.disabled));
|
|
6627
6713
|
|
|
6628
6714
|
function DotRadioButton({
|
|
6629
6715
|
ariaLabel,
|
|
@@ -6765,7 +6851,7 @@ const StyledSwitch = styled(Switch).withConfig({
|
|
|
6765
6851
|
componentId: "eign2a-0"
|
|
6766
6852
|
})(["", ""], ({
|
|
6767
6853
|
theme
|
|
6768
|
-
}) => css(["{&.dot-switch{span.Mui-disabled{color:", ";}.MuiSwitch-switchBase:not(.Mui-checked):not(.Mui-disabled){color:", ";&.Mui-focusVisible .MuiTouchRipple-root{color:", ";}}}"], theme.palette.
|
|
6854
|
+
}) => css(["{&.dot-switch{span.Mui-disabled{color:", ";}.MuiSwitch-switchBase:not(.Mui-checked):not(.Mui-disabled){color:", ";&.Mui-focusVisible .MuiTouchRipple-root{color:", ";}}}"], theme.palette.figma.disabled.normal, theme.palette.figma.neutral.lightGray, theme.palette.figma.primary.normal));
|
|
6769
6855
|
|
|
6770
6856
|
const DotSwitch = ({
|
|
6771
6857
|
ariaLabel,
|
|
@@ -6785,14 +6871,19 @@ const DotSwitch = ({
|
|
|
6785
6871
|
const handleChange = event => {
|
|
6786
6872
|
onChange && onChange(event);
|
|
6787
6873
|
};
|
|
6788
|
-
|
|
6874
|
+
useEffect(() => {
|
|
6875
|
+
if (color) {
|
|
6876
|
+
console.warn('DEPRECATED: `color` prop is deprecated, please remove any usage of it in your application.');
|
|
6877
|
+
}
|
|
6878
|
+
}, []);
|
|
6879
|
+
// Future version of MUI v6 will have proper role="switch" instead of role="checkbox"
|
|
6789
6880
|
// https://github.com/mui/material-ui/pull/17870
|
|
6790
6881
|
const switchControl = jsx(StyledSwitch, {
|
|
6791
6882
|
checked: checked,
|
|
6792
6883
|
classes: {
|
|
6793
6884
|
root: rootClasses
|
|
6794
6885
|
},
|
|
6795
|
-
color:
|
|
6886
|
+
color: "primary",
|
|
6796
6887
|
"data-testid": dataTestId,
|
|
6797
6888
|
disabled: _disabled,
|
|
6798
6889
|
id: id,
|
|
@@ -7385,7 +7476,7 @@ const StyledInlineEdit = styled.div.withConfig({
|
|
|
7385
7476
|
})(["", ""], ({
|
|
7386
7477
|
theme,
|
|
7387
7478
|
fullWidth
|
|
7388
|
-
}) => css(["&.", "{
|
|
7479
|
+
}) => css(["&.", "{align-items:center;color:", ";display:", ";min-width:", ";&:not(.", "):focus-visible{background:", ";border-radius:", ";cursor:pointer;outline:0;.dot-edit-icon{display:block;}}.", "{display:flex;width:100%;position:relative;.dot-edit-icon{border-radius:", ";display:none;height:100%;position:absolute;right:0;width:40px;.dot-i{left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);}}&:not(.", "):hover{background:", ";border-radius:", ";cursor:pointer;.dot-edit-icon{display:block;}}.dot-view-mode-typography{padding:", ";margin-bottom:0;&.", "{color:", ";}}}.dot-empty-value fieldset{border-color:", ";}.dot-adornment-error{color:", ";}.MuiInputBase-input{height:auto;}.MuiInputBase-root{margin-bottom:", ";}", " .", " .dot-input{padding-left:", ";}.MuiOutlinedInput-input:focus{cursor:auto;}.dot-counter-adornment{.dot-counter-max-length{color:", ";}.dot-counter-length,.dot-counter-max-length{&.dot-counter-limit{color:", ";}.editing-actions{display:flex;justify-content:flex-end;margin-top:", ";}}}.dot-read-only-adornment{display:none;}.", "{align-items:center;display:flex;margin:", ";.dot-button{margin-bottom:", ";margin-top:", ";padding:", ";}}}"], rootClassName$q, theme.palette.figma.typography.black, fullWidth ? 'flex' : 'inline-flex', theme.spacing(32), readOnlyClassName, theme.palette.figma.neutral.elevated, theme.spacing(0.5), viewModeClassName, theme.spacing(0, 0.5, 0.5, 0), readOnlyClassName, theme.palette.figma.neutral.elevated, theme.spacing(0.5), theme.spacing(1.3125, 1), placeholderClassName, theme.palette.figma.typography.gray, theme.palette.figma.destructive.normal, theme.palette.figma.destructive.normal, theme.spacing(0), ({
|
|
7389
7480
|
typography
|
|
7390
7481
|
}) => typography && `
|
|
7391
7482
|
.MuiInputBase-root {
|
|
@@ -7395,7 +7486,7 @@ const StyledInlineEdit = styled.div.withConfig({
|
|
|
7395
7486
|
letter-spacing: ${theme.typography[typography].letterSpacing || 'normal'};
|
|
7396
7487
|
text-transform: ${theme.typography[typography].textTransform || 'none'};
|
|
7397
7488
|
}
|
|
7398
|
-
`, editTextFieldClassName, theme.spacing(1), theme.palette.
|
|
7489
|
+
`, editTextFieldClassName, theme.spacing(1), theme.palette.figma.typography.gray, theme.palette.figma.destructive.normal, theme.spacing(0.5), editActionsClassName, theme.spacing(0, 0, 0, 0.5), theme.spacing(0), theme.spacing(0), theme.spacing(0.75)));
|
|
7399
7490
|
|
|
7400
7491
|
const getCounterAdornment = (currentLength, maxLength, dataTestId) => {
|
|
7401
7492
|
if (currentLength === undefined || typeof currentLength !== 'number' || !maxLength || typeof maxLength !== 'number') return;
|
|
@@ -7686,7 +7777,7 @@ const StyledNavigationRail = styled.div.withConfig({
|
|
|
7686
7777
|
})(["", ""], ({
|
|
7687
7778
|
theme,
|
|
7688
7779
|
railItemPosition
|
|
7689
|
-
}) => css(["&.", "{background
|
|
7780
|
+
}) => css(["&.", "{background:", ";border-left:1px solid ", ";display:flex;flex-direction:column;justify-content:", ";padding:", ";width:72px;.rail-item-button{border-radius:0;display:flex;flex-basis:72px;flex-direction:column;margin:0;padding:0;width:100%;white-space:normal;.dot-icon{color:", ";}&.selected,&:focus-visible{background-color:", ";}.rail-item-text{word-break:break-word;padding:", ";}}}"], rootClassName$p, theme.palette.figma.neutral.elevated, theme.palette.figma.border.default, railItemPosition, theme.spacing(1, 0, 0), theme.palette.figma.icon.black, theme.palette.figma.neutral.normal, theme.spacing(0, 0.5)));
|
|
7690
7781
|
|
|
7691
7782
|
const MAX_ALLOWED_ITEMS = 7;
|
|
7692
7783
|
const DotNavigationRail = ({
|
|
@@ -7810,7 +7901,7 @@ const StyledSkeleton = styled(Skeleton).withConfig({
|
|
|
7810
7901
|
componentId: "sc-17ayzv5-0"
|
|
7811
7902
|
})(["", ""], ({
|
|
7812
7903
|
theme
|
|
7813
|
-
}) => css(["&.", "{background-color:", ";}"], rootClassName$n, theme.palette.figma.
|
|
7904
|
+
}) => css(["&.", "{background-color:", ";}"], rootClassName$n, theme.palette.figma.border.darker));
|
|
7814
7905
|
|
|
7815
7906
|
const DotSkeleton = ({
|
|
7816
7907
|
ariaLabel,
|
|
@@ -7842,7 +7933,7 @@ const StyledSnackbar = styled(Snackbar).withConfig({
|
|
|
7842
7933
|
componentId: "sc-1huxoy3-0"
|
|
7843
7934
|
})(["", ""], ({
|
|
7844
7935
|
theme
|
|
7845
|
-
}) => css(["&.", "{.
|
|
7936
|
+
}) => css(["&.", "{.dot-icon-btn .dot-icon{color:", ";}.dot-icon-btn:hover{background:", ";}.MuiAlert-icon{color:", ";padding:11px 0px;}.MuiAlert-message{padding:13px 0px;}&.MuiSnackbar-anchorOriginTopRight{top:0px;z-index:", ";}.MuiAlert-root{color:", ";position:relative;margin-top:108px;max-width:500px;min-width:344px;z-index:", ";@media (min-width:720px){.MuiAlert-root{top:112px;position:relative;}}&.MuiAlert-standardSuccess{background:", ";}&.MuiAlert-standardInfo{background:", ";}&.MuiAlert-standardWarning{background:", ";}&.MuiAlert-standardError{background:", ";}}"], rootClassName$m, theme.palette.figma.icon.white, n900_20, theme.palette.figma.icon.white, levelFourth, theme.palette.figma.typography.white, levelFourth, theme.palette.figma.success.normal, theme.palette.figma.inProgress.normal, theme.palette.figma.warning.normal, theme.palette.figma.destructive.normal));
|
|
7846
7937
|
|
|
7847
7938
|
function addAutoHideDuration(severity) {
|
|
7848
7939
|
return severity === 'error' ? null : 10000;
|
|
@@ -7987,7 +8078,7 @@ const StyledSplitButtonGroup = styled(ButtonGroup).withConfig({
|
|
|
7987
8078
|
componentId: "ild520-0"
|
|
7988
8079
|
})(["", ""], ({
|
|
7989
8080
|
theme
|
|
7990
|
-
}) => css(["&.", "{&.outlined,&.text{.expand-button{border-left:none;.dot-icon{color:", ";}}}&.
|
|
8081
|
+
}) => css(["&.", "{&.outlined,&.text{.expand-button{border-left:none;.dot-icon{color:", ";}}}&.disabled .dot-button{background:", ";border:1px solid ", ";color:", ";}.dot-button{box-shadow:none;margin:0;padding:", ";}.label-button{border-top-right-radius:0;border-bottom-right-radius:0;}.expand-button{border-left:1px solid ", ";border-top-left-radius:0;border-bottom-left-radius:0;&.Mui-disabled{border-left:0;.dot-icon{color:", ";}}.MuiButton-label,.dot-icon{width:14px;height:14px;}}}"], rootClassName$k, theme.palette.figma.icon.black, theme.palette.figma.disabled.normal, theme.palette.figma.border.defaultButton, theme.palette.figma.typography.gray, theme.spacing(0.75, 1.5), theme.palette.figma.border.defaultButton, theme.palette.figma.icon.disabled));
|
|
7991
8082
|
const StyledMenu$2 = styled(DotMenu).withConfig({
|
|
7992
8083
|
displayName: "SplitButtonstyles__StyledMenu",
|
|
7993
8084
|
componentId: "ild520-1"
|
|
@@ -8087,14 +8178,14 @@ const StyledStepper = styled.div.withConfig({
|
|
|
8087
8178
|
componentId: "sc-1qka0yq-0"
|
|
8088
8179
|
})(["", ""], ({
|
|
8089
8180
|
theme
|
|
8090
|
-
}) => css(["&.", "{display:flex;align-items:flex-start;padding:0;width:100%;&.left{flex-direction:row;}&.right{flex-direction:row-reverse;}.", "{padding:", ";&.MuiStepper-horizontal{padding:0;display:flex;flex-direction:column;}.MuiStep-root{width:315px;.dot-icon{display:flex;background:", ";border-radius:50%;color:", ";height:28px;width:28px;}.
|
|
8181
|
+
}) => css(["&.", "{display:flex;align-items:flex-start;padding:0;width:100%;&.left{flex-direction:row;}&.right{flex-direction:row-reverse;}.MuiStepConnector-root .MuiStepConnector-line{border-left:1px solid ", ";}.", "{padding:", ";&.MuiStepper-horizontal{padding:0;display:flex;flex-direction:column;}.MuiStep-root{width:315px;.dot-icon{display:flex;background:", ";border-radius:50%;color:", ";height:28px;width:28px;}.MuiStepContent-root{border-left:1px solid ", ";}&.MuiStep-horizontal{padding:", ";.dot-avatar i:before{color:", ";}.dot-avatar,.dot-icon{background:", ";}.dot-typography{color:", ";}.horizontal-step-description{color:", ";}&:hover{cursor:pointer;}&.completed{.dot-avatar i:before{color:", ";}.dot-avatar,.dot-icon{background:", ";}}&.active{background:", ";}&.error{.dot-avatar i:before{color:", ";}.dot-avatar,.dot-icon{background:", ";}}&.in-progress{.dot-avatar i:before{color:", ";}}}&.MuiStep-vertical{&.completed{.dot-typography,.dot-icon{color:", ";}}&.active{.dot-icon{background:", ";color:", ";}.step-label.dot-typography{color:", ";}.dot-typography{color:", ";}}&.inactive .step-label.dot-typography{color:", ";}&.error{.dot-typography{color:", ";}.dot-icon{background:", ";border:1px solid ", ";color:", ";}}}&.disabled{.dot-icon{color:", ";}.dot-typography{color:", ";}}&:last-of-type .MuiStepContent-root{border-left-color:transparent;}}}.", "{width:100%;.step-content-container{padding:", ";}}}"], rootClassName$j, theme.palette.figma.border.default, stepListClassName, theme.spacing(3), theme.palette.figma.primary.rippleLight, theme.palette.figma.primary.light, theme.palette.figma.border.default, theme.spacing(1), theme.palette.figma.icon.disabled, theme.palette.figma.neutral.active, theme.palette.figma.typography.disabled, theme.palette.figma.typography.gray, theme.palette.figma.overlay.alerts.success.icon, theme.palette.figma.overlay.alerts.success.background, theme.palette.figma.border.darker, theme.palette.figma.overlay.alerts.error.icon, theme.palette.figma.overlay.alerts.error.background, theme.palette.figma.primary.active, theme.palette.figma.typography.black, theme.palette.figma.primary.active, theme.palette.figma.typography.white, theme.palette.figma.primary.normal, theme.palette.figma.typography.black, theme.palette.figma.typography.gray, theme.palette.figma.destructive.normal, theme.palette.figma.background.level0.bckgWhite, theme.palette.figma.destructive.normal, theme.palette.figma.destructive.normal, theme.palette.figma.primary.light, theme.palette.figma.typography.disabled, contentClassName, theme.spacing(3, 3, 2, 3)));
|
|
8091
8182
|
const ScrollbarContainer = styled.div.withConfig({
|
|
8092
8183
|
displayName: "Stepperstyles__ScrollbarContainer",
|
|
8093
8184
|
componentId: "sc-1qka0yq-1"
|
|
8094
8185
|
})(["", ""], ({
|
|
8095
8186
|
theme,
|
|
8096
8187
|
offset
|
|
8097
|
-
}) => css(["height:", ";overflow-y:auto;&.left{border-right:1px solid ", ";}&.right{border-left:1px solid ", ";}&.center-content{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;}"], `calc(100vh - ${offset}px)`, theme.palette.
|
|
8188
|
+
}) => css(["height:", ";overflow-y:auto;&.left{border-right:1px solid ", ";}&.right{border-left:1px solid ", ";}&.center-content{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;}"], `calc(100vh - ${offset}px)`, theme.palette.figma.border.default, theme.palette.figma.border.default));
|
|
8098
8189
|
const StepContentWrapper = styled.div.withConfig({
|
|
8099
8190
|
displayName: "Stepperstyles__StepContentWrapper",
|
|
8100
8191
|
componentId: "sc-1qka0yq-2"
|
|
@@ -8111,7 +8202,7 @@ const StepActionsContainer = styled.div.withConfig({
|
|
|
8111
8202
|
})(["", ""], ({
|
|
8112
8203
|
theme,
|
|
8113
8204
|
displayCancelButton
|
|
8114
|
-
}) => css(["padding:", ";position:sticky;position:-webkit-sticky;bottom:0;
|
|
8205
|
+
}) => css(["padding:", ";position:sticky;position:-webkit-sticky;bottom:0;z-index:2;&.with-top-border{border-top:1px solid ", ";}.actions{display:flex;flex-direction:row;justify-content:", ";&.center-actions{justify-content:center;}.cancel-stepper{justify-self:flex-start;}.navigation-buttons{justify-self:flex-end;}}"], theme.spacing(2), theme.palette.figma.border.default, displayCancelButton ? 'space-between' : 'flex-end'));
|
|
8115
8206
|
|
|
8116
8207
|
const defaultCellProps = {
|
|
8117
8208
|
center: false,
|
|
@@ -8365,7 +8456,7 @@ const StyledTablePagination = styled.div.withConfig({
|
|
|
8365
8456
|
})(["", ""], ({
|
|
8366
8457
|
theme,
|
|
8367
8458
|
typography
|
|
8368
|
-
}) => css([".", "{border-top:1px solid ", ";.dot-caption,.MuiInputBase-root{font-family:", ";font-size:", "px;letter-spacing:", ";line-height:", ";}.dot-caption{margin:0;}.dot-menu,.MuiInputBase-root{margin-bottom:0;}}"], rootClassName$i, theme.palette.
|
|
8459
|
+
}) => css([".", "{border-top:1px solid ", ";.dot-caption,.MuiInputBase-root{font-family:", ";font-size:", "px;letter-spacing:", ";line-height:", ";}.dot-caption{margin:0;}.dot-menu,.MuiInputBase-root{margin-bottom:0;}}"], rootClassName$i, theme.palette.figma.border.default, theme.typography[typography].fontFamily, theme.typography[typography].fontSize, theme.typography[typography].letterSpacing, theme.typography[typography].lineHeight));
|
|
8369
8460
|
|
|
8370
8461
|
const ROWS_PER_PAGE_OPTIONS = [10, 25, 50, 100, 150, 200];
|
|
8371
8462
|
/** This component wraps the TablePagination component from @material-ui. */
|
|
@@ -8423,13 +8514,13 @@ const StyledPaper = styled(Paper).withConfig({
|
|
|
8423
8514
|
componentId: "s95z6y-0"
|
|
8424
8515
|
})(["", ""], ({
|
|
8425
8516
|
theme
|
|
8426
|
-
}) => css(["&.", "{
|
|
8517
|
+
}) => css(["&.", "{background:", ";border:1px solid ", ";overflow:hidden;&.loading{opacity:0.4;pointer-events:none;.dot-table-pagination{display:none;}}}"], rootClassName$h, theme.palette.figma.background.level0.componentsBackground, theme.palette.figma.border.default));
|
|
8427
8518
|
const StyledTableContainer = styled(TableContainer).withConfig({
|
|
8428
8519
|
displayName: "Tablestyles__StyledTableContainer",
|
|
8429
8520
|
componentId: "s95z6y-1"
|
|
8430
8521
|
})(["", ""], ({
|
|
8431
8522
|
theme
|
|
8432
|
-
}) => css(["&.dot-table-container{border-radius:4px;align-items:stretch;flex-direction:column;justify-content:center;table{width:100%;td,th{.dot-cell-typography{margin:0;}}.Mui-selected:not(:hover){background-color:", ";}.MuiTableRow-head{height:56px;}.MuiTableCell-root{border-bottom:1px solid ", ";}.MuiTableRow-root{height:52px;}}}"], theme.palette.
|
|
8523
|
+
}) => css(["&.dot-table-container{border-radius:4px;align-items:stretch;flex-direction:column;justify-content:center;table{width:100%;td,th{.dot-cell-typography{margin:0;}}.Mui-selected:not(:hover){background-color:", ";}.MuiTableRow-head{height:56px;}.MuiTableCell-root{border-bottom:1px solid ", ";}.MuiTableRow-root{height:52px;}}}"], theme.palette.figma.overlay.table.highlights, theme.palette.figma.border.default));
|
|
8433
8524
|
const StyledMenu$1 = styled(DotMenu).withConfig({
|
|
8434
8525
|
displayName: "Tablestyles__StyledMenu",
|
|
8435
8526
|
componentId: "s95z6y-2"
|
|
@@ -8523,7 +8614,9 @@ const rootClassName$f = 'dot-td';
|
|
|
8523
8614
|
const StyledTableCell = styled(TableCell).withConfig({
|
|
8524
8615
|
displayName: "TableCellstyles__StyledTableCell",
|
|
8525
8616
|
componentId: "e84k25-0"
|
|
8526
|
-
})(["", ""], (
|
|
8617
|
+
})(["", ""], ({
|
|
8618
|
+
theme
|
|
8619
|
+
}) => css(["&.", "{padding-top:0;padding-bottom:0;&.actionItems,&.noWrap p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}&.actionItems{max-width:0;text-align:right;text-overflow:clip;}&.noWrap p{max-width:calc(100% - 1px);}.action-cell-wrapper{width:100%;}.cell-avatar-with-text{display:flex;align-items:center;.cell-avatar{margin-right:", ";}.cell-text{width:100%;}}}"], rootClassName$f, theme.spacing(1)));
|
|
8527
8620
|
|
|
8528
8621
|
/**
|
|
8529
8622
|
* A wrapper component around the TableCell component from @material-ui.
|
|
@@ -8597,6 +8690,36 @@ const DotBodyCell = ({
|
|
|
8597
8690
|
})
|
|
8598
8691
|
});
|
|
8599
8692
|
}
|
|
8693
|
+
if (value === null || value === void 0 ? void 0 : value.mainText) {
|
|
8694
|
+
const {
|
|
8695
|
+
avatarIcon,
|
|
8696
|
+
avatarImageSrc,
|
|
8697
|
+
mainText,
|
|
8698
|
+
secondaryText
|
|
8699
|
+
} = value;
|
|
8700
|
+
return jsxs("div", {
|
|
8701
|
+
className: "cell-avatar-with-text",
|
|
8702
|
+
children: [(avatarImageSrc || avatarIcon) && jsx(DotAvatar, {
|
|
8703
|
+
alt: mainText,
|
|
8704
|
+
className: "cell-avatar",
|
|
8705
|
+
"data-testid": "cell-avatar",
|
|
8706
|
+
iconId: avatarIcon,
|
|
8707
|
+
imageSrc: avatarImageSrc,
|
|
8708
|
+
size: "small",
|
|
8709
|
+
type: avatarImageSrc ? 'image' : 'icon'
|
|
8710
|
+
}), jsxs("div", {
|
|
8711
|
+
className: "cell-text",
|
|
8712
|
+
children: [jsx(DotTypography, {
|
|
8713
|
+
variant: "body1",
|
|
8714
|
+
children: mainText
|
|
8715
|
+
}), secondaryText && jsx(DotTypography, {
|
|
8716
|
+
"data-testid": "cell-secondary-text",
|
|
8717
|
+
variant: "body2",
|
|
8718
|
+
children: secondaryText
|
|
8719
|
+
})]
|
|
8720
|
+
})]
|
|
8721
|
+
});
|
|
8722
|
+
}
|
|
8600
8723
|
return getFormattedTableCellValue(value, typography);
|
|
8601
8724
|
};
|
|
8602
8725
|
return jsx(StyledTableCell, {
|
|
@@ -8633,7 +8756,7 @@ const StyledTableRowStyles = styled(TableRow).withConfig({
|
|
|
8633
8756
|
componentId: "a4fx2l-0"
|
|
8634
8757
|
})(["", ""], ({
|
|
8635
8758
|
theme
|
|
8636
|
-
}) => css(["&.", "{&.selected{background-color:", ";}&:hover{background-color:", ";}}"], rootClassName$e, theme.palette.primary
|
|
8759
|
+
}) => css(["&.", "{&.selected{background:", ";.dot-td-checkbox .dot-checkbox,.dot-td .dot-typography{color:", ";}&:hover{background:", ";.dot-td-checkbox .dot-checkbox,.dot-td .dot-typography{color:", ";}}}&:hover{background:", ";}}"], rootClassName$e, theme.palette.figma.overlay.table.highlights, theme.palette.figma.overlay.table.text, theme.palette.figma.primary.rippleLight, theme.palette.figma.typography.black, theme.palette.figma.overlay.table.hoverRow));
|
|
8637
8760
|
|
|
8638
8761
|
const TABLE_TYPOGRAPHY_VARIANT = 'body1';
|
|
8639
8762
|
const TABLE_DEFAULT_SKELETON_ROWS = 4;
|
|
@@ -8644,7 +8767,7 @@ const StyledTableHeaderCheckboxCell = styled(TableCell).withConfig({
|
|
|
8644
8767
|
componentId: "ymqg8x-0"
|
|
8645
8768
|
})(["", ""], ({
|
|
8646
8769
|
theme
|
|
8647
|
-
}) => css(["&.", "{
|
|
8770
|
+
}) => css(["&.", "{background:", ";padding:", ";width:", ";.dot-form-control-label{margin:0;}}"], rootClassName$d, theme.palette.figma.background.level0.componentsBackground, theme.spacing(0, 1), theme.spacing(5)));
|
|
8648
8771
|
|
|
8649
8772
|
const DotHeaderCheckboxCell = ({
|
|
8650
8773
|
ariaLabel,
|
|
@@ -8690,7 +8813,7 @@ const StyledTableHeaderCell = styled(TableCell).withConfig({
|
|
|
8690
8813
|
componentId: "nko9j-0"
|
|
8691
8814
|
})(["", ""], ({
|
|
8692
8815
|
theme
|
|
8693
|
-
}) => css(["&.", "{
|
|
8816
|
+
}) => css(["&.", "{background:", ";&.MuiTableCell-alignCenter > span.MuiTableSortLabel-root{padding-left:26px;}> span.MuiTableSortLabel-root.Mui-focusVisible{.dot-cell-typography{color:", ";text-decoration:underline;}}.dot-cell-typography{font-family:", ";}}"], rootClassName$c, theme.palette.figma.background.level0.componentsBackground, theme.palette.figma.overlay.table.text, theme.typography.h4.fontFamily));
|
|
8694
8817
|
|
|
8695
8818
|
/**
|
|
8696
8819
|
* A wrapper component around the TableCell component from @material-ui. This component should only
|
|
@@ -8793,8 +8916,10 @@ const DotHeaderRow = ({
|
|
|
8793
8916
|
classes: {
|
|
8794
8917
|
root: 'dot-tr'
|
|
8795
8918
|
},
|
|
8796
|
-
children: [multiSelectHeader && renderMultiSelectCell(), collapsibleTableOptions && jsx(
|
|
8797
|
-
"aria-hidden": "true"
|
|
8919
|
+
children: [multiSelectHeader && renderMultiSelectCell(), collapsibleTableOptions && jsx(DotHeaderCell, {
|
|
8920
|
+
"aria-hidden": "true",
|
|
8921
|
+
typography: typography,
|
|
8922
|
+
uid: CreateUUID()
|
|
8798
8923
|
}), columns.map(cell => {
|
|
8799
8924
|
return jsx(DotHeaderCell, {
|
|
8800
8925
|
align: cell.align,
|
|
@@ -8859,7 +8984,7 @@ const StyledCollapsibleTableWrapper = styled.div.withConfig({
|
|
|
8859
8984
|
componentId: "sc-7uzf9c-0"
|
|
8860
8985
|
})(["", ""], ({
|
|
8861
8986
|
theme
|
|
8862
|
-
}) => css(["&.", "{
|
|
8987
|
+
}) => css(["&.", "{margin:", ";.dot-table-container{th.MuiTableCell-root:first-child,td.MuiTableCell-root:first-child{padding-left:", ";}}&.loading{opacity:0.4;pointer-events:none;}}"], CollapsibleTableClassName, theme.spacing(-2), theme.spacing(9)));
|
|
8863
8988
|
|
|
8864
8989
|
const DotCollapsibleTable = ({
|
|
8865
8990
|
collapsibleTableBody,
|
|
@@ -8942,7 +9067,7 @@ const StyledTableBodyExpandCollapseCell = styled(TableCell).withConfig({
|
|
|
8942
9067
|
componentId: "jtyppp-0"
|
|
8943
9068
|
})(["", ""], ({
|
|
8944
9069
|
theme
|
|
8945
|
-
}) => css(["&.", "{
|
|
9070
|
+
}) => css(["&.", "{width:", ";padding:", ";.dot-form-control-label{margin:0;}}"], ExpandCollapseCellClassName, theme.spacing(5), theme.spacing(0, 1)));
|
|
8946
9071
|
|
|
8947
9072
|
const ExpandCollapseCell = ({
|
|
8948
9073
|
ariaLabel,
|
|
@@ -8982,7 +9107,7 @@ const StyledTableBodyCheckboxCell = styled(TableCell).withConfig({
|
|
|
8982
9107
|
componentId: "ebk3sz-0"
|
|
8983
9108
|
})(["", ""], ({
|
|
8984
9109
|
theme
|
|
8985
|
-
}) => css(["&.", "{
|
|
9110
|
+
}) => css(["&.", "{padding:", ";width:", ";.dot-form-control-label{margin:0;}}"], rootClassName$b, theme.spacing(0, 1), theme.spacing(5)));
|
|
8986
9111
|
|
|
8987
9112
|
const DotBodyCheckboxCell = ({
|
|
8988
9113
|
ariaLabel,
|
|
@@ -9182,7 +9307,7 @@ const StyledTableSelectionToolbar = styled(DotActionToolbar).withConfig({
|
|
|
9182
9307
|
componentId: "qpx3y9-0"
|
|
9183
9308
|
})(["", ""], ({
|
|
9184
9309
|
theme
|
|
9185
|
-
}) => css(["&.", "{display:flex;align-items:center;justify-content:space-between;background
|
|
9310
|
+
}) => css(["&.", "{display:flex;align-items:center;justify-content:space-between;background:", ";.dot-selected-rows-container{display:flex;align-items:center;.dot-typography{color:", ";}.dot-selected-rows-divider{padding:", ";}.dot-link{color:", ";padding:", ";&:hover{color:", ";}}}.dot-selected-rows-heading{color:", ";font-weight:bold;}.dot-bulk-actions .dot-icon-btn{&:hover{background:", ";.dot-icon{color:", ";}}.dot-icon{color:", ";}}}"], rootClassName$a, theme.palette.figma.overlay.table.highlights, theme.palette.figma.overlay.table.text, theme.spacing(0.25, 0, 0, 1), theme.palette.figma.overlay.table.text, theme.spacing(0.25, 0.25, 0, 0.5), theme.palette.figma.typography.white, theme.palette.figma.overlay.table.text, theme.palette.figma.primary.rippleLight, theme.palette.figma.typography.black, theme.palette.figma.overlay.table.text));
|
|
9186
9311
|
|
|
9187
9312
|
const DotTableSelectionToolbar = ({
|
|
9188
9313
|
ariaLabel,
|
|
@@ -9204,12 +9329,9 @@ const DotTableSelectionToolbar = ({
|
|
|
9204
9329
|
className: "dot-selected-rows-heading",
|
|
9205
9330
|
variant: "h3",
|
|
9206
9331
|
children: [selectedRowsNumber, " selected"]
|
|
9207
|
-
}), onClearAll && jsxs(
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
children: "|"
|
|
9211
|
-
}), jsx(DotButton, {
|
|
9212
|
-
type: "text",
|
|
9332
|
+
}), onClearAll && jsxs(DotTypography, {
|
|
9333
|
+
className: "dot-selected-rows-divider",
|
|
9334
|
+
children: ["| ", jsx(DotLink, {
|
|
9213
9335
|
onClick: onClearAll,
|
|
9214
9336
|
children: "Clear all"
|
|
9215
9337
|
})]
|
|
@@ -9222,10 +9344,18 @@ const DotTableSelectionToolbar = ({
|
|
|
9222
9344
|
};
|
|
9223
9345
|
|
|
9224
9346
|
const sortComparator = (a, b, orderBy) => {
|
|
9225
|
-
|
|
9347
|
+
var _a, _b;
|
|
9348
|
+
let valueA = a.rowData[orderBy];
|
|
9349
|
+
let valueB = b.rowData[orderBy];
|
|
9350
|
+
if (((_a = a.rowData[orderBy]) === null || _a === void 0 ? void 0 : _a.mainText) && ((_b = b.rowData[orderBy]) === null || _b === void 0 ? void 0 : _b.mainText)) {
|
|
9351
|
+
// use mainText value for sort in case when data for the table cell is of type CustomCellDataWrapper
|
|
9352
|
+
valueA = a.rowData[orderBy].mainText;
|
|
9353
|
+
valueB = b.rowData[orderBy].mainText;
|
|
9354
|
+
}
|
|
9355
|
+
if (valueB < valueA) {
|
|
9226
9356
|
return -1;
|
|
9227
9357
|
}
|
|
9228
|
-
if (
|
|
9358
|
+
if (valueB > valueA) {
|
|
9229
9359
|
return 1;
|
|
9230
9360
|
}
|
|
9231
9361
|
return 0;
|
|
@@ -9586,12 +9716,12 @@ const StyledTabs = styled(Tabs).withConfig({
|
|
|
9586
9716
|
componentId: "sc-1pmrz8k-0"
|
|
9587
9717
|
})(["", ""], ({
|
|
9588
9718
|
theme
|
|
9589
|
-
}) => css(["&.", "{&.MuiTabs-root{width:100%;}.dot-tab-label-container{display:flex;.dot-tab-label{padding-top:", ";}}.MuiTab-root{box-shadow:inset 0px -1px 0px ", ";max-width:360px;min-width:0;}.
|
|
9719
|
+
}) => css(["&.", "{&.MuiTabs-root{width:100%;}.dot-tab-label-container{display:flex;.dot-tab-label{padding-top:", ";}}.MuiTab-root{box-shadow:inset 0px -1px 0px ", ";color:", ";max-width:360px;min-width:0;&.Mui-disabled{color:", ";.dot-icon{color:", ";}}}.MuiTabs-indicator{background:", ";height:3px;}.dot-icon{color:", ";display:inline;padding-right:", ";}}"], rootClassName$8, theme.spacing(0.5), theme.palette.figma.border.default, theme.palette.figma.primary.elevated, theme.palette.figma.typography.disabled, theme.palette.figma.typography.disabled, theme.palette.figma.border.inputActive, theme.palette.figma.primary.elevated, theme.spacing(0.5)));
|
|
9590
9720
|
|
|
9591
9721
|
const DotTabs = ({
|
|
9592
9722
|
centered: _centered = false,
|
|
9593
9723
|
className,
|
|
9594
|
-
color
|
|
9724
|
+
color,
|
|
9595
9725
|
'data-testid': dataTestId,
|
|
9596
9726
|
initialValue: _initialValue = 0,
|
|
9597
9727
|
onChange,
|
|
@@ -9601,6 +9731,11 @@ const DotTabs = ({
|
|
|
9601
9731
|
}) => {
|
|
9602
9732
|
const [value, setValue] = useState(_initialValue);
|
|
9603
9733
|
const rootClasses = useStylesWithRootClass(rootClassName$8, className);
|
|
9734
|
+
useEffect(() => {
|
|
9735
|
+
if (color) {
|
|
9736
|
+
console.warn('DEPRECATED: `color` prop is deprecated in `<DotTabs>`, please remove any usage of it in your application.');
|
|
9737
|
+
}
|
|
9738
|
+
}, []);
|
|
9604
9739
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9605
9740
|
const handleChange = (_event, val) => {
|
|
9606
9741
|
setValue(val);
|
|
@@ -9637,10 +9772,10 @@ const DotTabs = ({
|
|
|
9637
9772
|
root: rootClasses
|
|
9638
9773
|
},
|
|
9639
9774
|
"data-testid": dataTestId,
|
|
9640
|
-
indicatorColor:
|
|
9775
|
+
indicatorColor: "primary",
|
|
9641
9776
|
onChange: handleChange,
|
|
9642
9777
|
scrollButtons: scrollButtons,
|
|
9643
|
-
textColor:
|
|
9778
|
+
textColor: "primary",
|
|
9644
9779
|
value: value,
|
|
9645
9780
|
variant: _variant,
|
|
9646
9781
|
children: tabArray
|
|
@@ -9655,13 +9790,13 @@ const StyledFileUploadContainer = styled.div.withConfig({
|
|
|
9655
9790
|
componentId: "sc-1q8bcxy-0"
|
|
9656
9791
|
})(["", ""], ({
|
|
9657
9792
|
theme
|
|
9658
|
-
}) => css(["&.", "{.dot-max-files-message.dot-max-files-reached{color:", ";}}"], containerClassName$2, theme.palette.
|
|
9793
|
+
}) => css(["&.", "{.dot-max-files-message.dot-max-files-reached{color:", ";}.dot-list{padding:0;}}"], containerClassName$2, theme.palette.figma.destructive.normal));
|
|
9659
9794
|
const StyledFileUpload = styled.div.withConfig({
|
|
9660
9795
|
displayName: "FileUploadstyles__StyledFileUpload",
|
|
9661
9796
|
componentId: "sc-1q8bcxy-1"
|
|
9662
9797
|
})(["", ""], ({
|
|
9663
9798
|
theme
|
|
9664
|
-
}) => css(["&.", ".", "{align-items:center;background:", ";border:2px dashed ", ";border-radius:4px;color:", ";display:flex;flex-direction:column;flex-wrap:wrap;height:240px;justify-content:center;padding:", ";margin-bottom:", ";text-align:center;&.disabled .dot-typography{color:", ";}.dot-icon{color:", ";font-size:100px;i.dot-i{height:100px;}}}"], rootClassName$7, dropZoneClassName, theme.palette.
|
|
9799
|
+
}) => css(["&.", ".", "{align-items:center;background:", ";border:2px dashed ", ";border-radius:4px;color:", ";display:flex;flex-direction:column;flex-wrap:wrap;height:240px;justify-content:center;padding:", ";margin-bottom:", ";text-align:center;&.disabled .dot-typography{color:", ";}.dot-icon{color:", ";font-size:100px;i.dot-i{height:100px;}}}"], rootClassName$7, dropZoneClassName, theme.palette.figma.background.level0.bckgGray, theme.palette.figma.border.defaultButton, theme.palette.figma.typography.disabled, theme.spacing(3, 0), theme.spacing(1), theme.palette.figma.icon.disabled, theme.palette.figma.border.default));
|
|
9665
9800
|
|
|
9666
9801
|
const rootClassName$6 = 'dot-file-list-item';
|
|
9667
9802
|
const StyledFileListItem = styled(StyledListItem).withConfig({
|
|
@@ -9669,7 +9804,7 @@ const StyledFileListItem = styled(StyledListItem).withConfig({
|
|
|
9669
9804
|
componentId: "sc-6mp1tz-0"
|
|
9670
9805
|
})(["", ""], ({
|
|
9671
9806
|
theme
|
|
9672
|
-
}) => css(["&.", "{border-bottom:1px solid ", ";&:hover{cursor:pointer;background:", ";}&:focus-visible{background-color:", ";outline:none;}&.file-success:not(:hover,:focus-visible) .", "-end-icon{i:before{color:", ";}&:focus-visible i:before{color:unset;}}&.file-error:not(:hover,:focus-visible) .", "-end-icon{i:before,.MuiListItemText-secondary{color:", ";}&:focus-visible i:before{color:unset;}}.dot-typography,.file-item-text{flex-grow:2;padding-left:", ";}.file-item-text{display:flex;flex-direction:column;.MuiTypography-body2{color:", ";}}}"], rootClassName$6, theme.palette.
|
|
9807
|
+
}) => css(["&.", "{border-bottom:1px solid ", ";&:hover{cursor:pointer;background:", ";}&:focus-visible{background-color:", ";outline:none;}&.file-success:not(:hover,:focus-visible) .", "-end-icon{i:before{color:", ";}&:focus-visible i:before{color:unset;}}&.file-error:not(:hover,:focus-visible) .", "-end-icon{i:before,.MuiListItemText-secondary{color:", ";}&:focus-visible i:before{color:unset;}}.dot-typography,.file-item-text{flex-grow:2;padding-left:", ";}.file-item-text{display:flex;flex-direction:column;.MuiTypography-body2{color:", ";}}}"], rootClassName$6, theme.palette.figma.border.default, theme.palette.figma.background.level0.bckgGray, theme.palette.figma.border.default, rootClassName$6, theme.palette.figma.success.normal, rootClassName$6, theme.palette.figma.destructive.normal, theme.spacing(1), theme.palette.figma.destructive.normal));
|
|
9673
9808
|
|
|
9674
9809
|
const DotFileListItem = ({
|
|
9675
9810
|
ariaLabel,
|
|
@@ -9961,7 +10096,7 @@ const DotPopper = ({
|
|
|
9961
10096
|
open,
|
|
9962
10097
|
placement
|
|
9963
10098
|
}) => {
|
|
9964
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
10099
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Z, className);
|
|
9965
10100
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9966
10101
|
const handleClickAway = event => {
|
|
9967
10102
|
if (onClickAway && (!anchorEl || !anchorEl.contains(event.currentTarget))) {
|
|
@@ -10165,24 +10300,25 @@ var updateLocale$1 = {exports: {}};
|
|
|
10165
10300
|
var updateLocale = updateLocale$1.exports;
|
|
10166
10301
|
|
|
10167
10302
|
const rootClassName$2 = 'dot-date-picker';
|
|
10303
|
+
const popperClassName = 'dot-date-picker-popper';
|
|
10168
10304
|
const containerClassName$1 = 'dot-date-picker-container';
|
|
10169
10305
|
const rectanglePickersDayClassName = 'dot-rectangle-pickers-day';
|
|
10170
10306
|
const StyledDatePickerContainer = styled.div.withConfig({
|
|
10171
10307
|
displayName: "DatePickerstyles__StyledDatePickerContainer",
|
|
10172
10308
|
componentId: "sc-1to4suu-0"
|
|
10173
|
-
})(["&.", " .full-width{width:100%;}"], rootClassName$2);
|
|
10309
|
+
})(["", ""], () => css(["&.", " .full-width{width:100%;}"], rootClassName$2));
|
|
10174
10310
|
const StyledDatePicker = styled(DatePicker).withConfig({
|
|
10175
10311
|
displayName: "DatePickerstyles__StyledDatePicker",
|
|
10176
10312
|
componentId: "sc-1to4suu-1"
|
|
10177
10313
|
})(["", ""], ({
|
|
10178
10314
|
theme
|
|
10179
|
-
}) => css(["&.", "{", ";.Mui-disabled.MuiInputBase-root,&.read-only .MuiInputBase-root{", ";}.MuiFormLabel-root{color:", ";}}"], rootClassName$2, pickerInputStyles(theme), readOnlyStyles(theme), theme.palette.
|
|
10315
|
+
}) => css(["&.", "{", ";.Mui-disabled.MuiInputBase-root,&.read-only .MuiInputBase-root{", ";}.dot-icon-btn .dot-i{margin-top:-5px;}.MuiFormLabel-root{color:", ";}}"], rootClassName$2, pickerInputStyles(theme), readOnlyStyles(theme), theme.palette.figma.typography.black));
|
|
10180
10316
|
const StyledPickersDay = styled(PickersDay).withConfig({
|
|
10181
10317
|
displayName: "DatePickerstyles__StyledPickersDay",
|
|
10182
10318
|
componentId: "sc-1to4suu-2"
|
|
10183
10319
|
})(["", ""], ({
|
|
10184
10320
|
theme
|
|
10185
|
-
}) => css(["&.", "{border-radius:", ";&.MuiPickersDay-today{border:1px solid ", ";}}"], rectanglePickersDayClassName, theme.spacing(0.5), theme.palette.primary.
|
|
10321
|
+
}) => css(["&.", "{border-radius:", ";&.MuiPickersDay-today{background:", ";border:1px solid ", ";}&:hover{background:", ";color:", ";}}"], rectanglePickersDayClassName, theme.spacing(0.5), theme.palette.figma.neutral.normal, theme.palette.figma.primary.normal, theme.palette.figma.primary.normal, theme.palette.figma.typography.white));
|
|
10186
10322
|
|
|
10187
10323
|
const RectanglePickersDay = pickersDayProps => {
|
|
10188
10324
|
return jsx(StyledPickersDay, Object.assign({}, pickersDayProps, {
|
|
@@ -10364,6 +10500,7 @@ const DotDatePicker = ({
|
|
|
10364
10500
|
disableEnforceFocus: true
|
|
10365
10501
|
},
|
|
10366
10502
|
popper: {
|
|
10503
|
+
className: popperClassName,
|
|
10367
10504
|
disablePortal: _disablePortal,
|
|
10368
10505
|
onKeyDown: onKeyDown && handleKeyDown(DatePickerKeydownContext.Popper)
|
|
10369
10506
|
}
|
|
@@ -10797,7 +10934,7 @@ const StyledCarousel = styled.div.withConfig({
|
|
|
10797
10934
|
})(["", ""], ({
|
|
10798
10935
|
backgroundColor,
|
|
10799
10936
|
theme
|
|
10800
|
-
}) => css(["&.", "{display:flex;flex-direction:column;justify-content:space-between;height:100%;overflow-x:hidden;&.with-background-color{background-color:", ";}.no-animation .MuiLinearProgress-bar{transition:0ms;}.MuiLinearProgress-bar{transition:1000ms;transition-timing-function:linear;}.carousel-top-container{flex-grow:1;padding:", ";.carousel-left-arrow{
|
|
10937
|
+
}) => css(["&.", "{display:flex;flex-direction:column;justify-content:space-between;height:100%;overflow-x:hidden;&.with-background-color{background-color:", ";}.no-animation .MuiLinearProgress-bar{transition:0ms;}.MuiLinearProgress-bar{transition:1000ms;transition-timing-function:linear;}.carousel-top-container{flex-grow:1;padding:", ";.carousel-left-arrow{float:left;}.carousel-right-arrow{float:right;}.carousel-left-arrow,.carousel-right-arrow{position:sticky;position:-webkit-sticky;top:calc(50% - ", ");margin:", ";&.top{top:", ";}&.bottom{z-index:1;top:calc(100% - ", ");}}.carousel-page{display:flex;flex-direction:row;justify-content:space-between;height:100%;.carousel-page-main-content-container{display:grid;width:100%;.carousel-page-main-content{grid-column:1;grid-row:1;}}}}.carousel-bottom-container{position:sticky;position:-webkit-sticky;bottom:0;width:100%;text-align:center;.carousel-page-button{margin-bottom:", ";}}}"], rootClassName, backgroundColor || 'transparent', theme.spacing(2, 0), theme.spacing(4), theme.spacing(0, 2), theme.spacing(2), theme.spacing(4), theme.spacing(2)));
|
|
10801
10938
|
|
|
10802
10939
|
const DotCarousel = ({
|
|
10803
10940
|
animation: _animation = 'fade',
|