@digital-ai/dot-components 2.20.1 → 2.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +363 -215
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- 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/css-grid/CssGrid.d.ts +1 -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/ThemeProvider.d.ts +7 -1
- package/src/lib/theme-provider/colors/light-theme-colors.d.ts +2 -0
- package/src/lib/theme-provider/interfaces.d.ts +5 -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
|
};
|
|
@@ -917,60 +940,62 @@ const typographyOptions = {
|
|
|
917
940
|
const breakpointOptions = {
|
|
918
941
|
values: {
|
|
919
942
|
xs: 0,
|
|
920
|
-
sm:
|
|
921
|
-
md:
|
|
922
|
-
lg:
|
|
923
|
-
xl:
|
|
943
|
+
sm: 540,
|
|
944
|
+
md: 720,
|
|
945
|
+
lg: 960,
|
|
946
|
+
xl: 1140,
|
|
947
|
+
xxl: 1320
|
|
924
948
|
}
|
|
925
949
|
};
|
|
950
|
+
// light colors by default
|
|
926
951
|
const avatarColors = {
|
|
952
|
+
blue: {
|
|
953
|
+
color: lightFigmaColors.typography.white,
|
|
954
|
+
backgroundColor: lightFigmaColors.primary.normal
|
|
955
|
+
},
|
|
956
|
+
darkGrey: {
|
|
957
|
+
color: lightFigmaColors.typography.white,
|
|
958
|
+
backgroundColor: lightFigmaColors.typography.gray
|
|
959
|
+
},
|
|
927
960
|
default: {
|
|
928
|
-
color:
|
|
929
|
-
backgroundColor:
|
|
961
|
+
color: lightFigmaColors.icon.black,
|
|
962
|
+
backgroundColor: lightFigmaColors.background.level1.deep
|
|
963
|
+
},
|
|
964
|
+
green: {
|
|
965
|
+
color: lightFigmaColors.typography.white,
|
|
966
|
+
backgroundColor: lightFigmaColors.success.normal
|
|
930
967
|
},
|
|
931
968
|
inherit: {
|
|
932
969
|
color: 'inherit',
|
|
933
970
|
backgroundColor: null
|
|
934
971
|
},
|
|
935
|
-
|
|
936
|
-
color:
|
|
937
|
-
backgroundColor:
|
|
938
|
-
},
|
|
939
|
-
blue: {
|
|
940
|
-
color: n0,
|
|
941
|
-
backgroundColor: b500
|
|
972
|
+
lightGrey: {
|
|
973
|
+
color: lightFigmaColors.overlay.alerts.text.black,
|
|
974
|
+
backgroundColor: n200
|
|
942
975
|
},
|
|
943
976
|
orange: {
|
|
944
|
-
color:
|
|
945
|
-
backgroundColor:
|
|
977
|
+
color: lightFigmaColors.overlay.alerts.text.black,
|
|
978
|
+
backgroundColor: lightFigmaColors.warning.normal
|
|
946
979
|
},
|
|
947
980
|
purple: {
|
|
948
981
|
color: n0,
|
|
949
982
|
backgroundColor: p500
|
|
950
983
|
},
|
|
951
|
-
yellow: {
|
|
952
|
-
color: n700,
|
|
953
|
-
backgroundColor: y500
|
|
954
|
-
},
|
|
955
984
|
red: {
|
|
956
|
-
color:
|
|
957
|
-
backgroundColor:
|
|
958
|
-
},
|
|
959
|
-
darkGrey: {
|
|
960
|
-
color: n0,
|
|
961
|
-
backgroundColor: n700
|
|
962
|
-
},
|
|
963
|
-
lightGrey: {
|
|
964
|
-
color: n700,
|
|
965
|
-
backgroundColor: n200
|
|
985
|
+
color: lightFigmaColors.typography.white,
|
|
986
|
+
backgroundColor: lightFigmaColors.destructive.normal
|
|
966
987
|
},
|
|
967
988
|
transparent: {
|
|
968
|
-
color:
|
|
989
|
+
color: lightFigmaColors.typography.black,
|
|
969
990
|
backgroundColor: 'transparent'
|
|
970
991
|
},
|
|
971
992
|
white: {
|
|
972
993
|
color: n700,
|
|
973
994
|
backgroundColor: n0
|
|
995
|
+
},
|
|
996
|
+
yellow: {
|
|
997
|
+
color: lightFigmaColors.overlay.alerts.text.black,
|
|
998
|
+
backgroundColor: y500
|
|
974
999
|
}
|
|
975
1000
|
};
|
|
976
1001
|
const darkTheme = createTheme({
|
|
@@ -978,7 +1003,35 @@ const darkTheme = createTheme({
|
|
|
978
1003
|
palette: {
|
|
979
1004
|
figma: darkFigmaColors,
|
|
980
1005
|
mode: 'dark',
|
|
981
|
-
avatarColors: Object.assign({}, avatarColors),
|
|
1006
|
+
avatarColors: Object.assign(Object.assign({}, avatarColors), {
|
|
1007
|
+
blue: {
|
|
1008
|
+
color: darkFigmaColors.typography.white,
|
|
1009
|
+
backgroundColor: darkFigmaColors.primary.normal
|
|
1010
|
+
},
|
|
1011
|
+
darkGrey: {
|
|
1012
|
+
color: darkFigmaColors.typography.white,
|
|
1013
|
+
backgroundColor: darkFigmaColors.typography.gray
|
|
1014
|
+
},
|
|
1015
|
+
default: {
|
|
1016
|
+
color: darkFigmaColors.icon.black,
|
|
1017
|
+
backgroundColor: darkFigmaColors.background.level1.deep
|
|
1018
|
+
},
|
|
1019
|
+
green: {
|
|
1020
|
+
color: darkFigmaColors.typography.white,
|
|
1021
|
+
backgroundColor: darkFigmaColors.success.normal
|
|
1022
|
+
},
|
|
1023
|
+
orange: {
|
|
1024
|
+
color: darkFigmaColors.overlay.alerts.text.black,
|
|
1025
|
+
backgroundColor: darkFigmaColors.warning.normal
|
|
1026
|
+
},
|
|
1027
|
+
red: {
|
|
1028
|
+
color: darkFigmaColors.typography.white,
|
|
1029
|
+
backgroundColor: darkFigmaColors.destructive.normal
|
|
1030
|
+
},
|
|
1031
|
+
transparent: Object.assign(Object.assign({}, avatarColors.transparent), {
|
|
1032
|
+
color: darkFigmaColors.typography.black
|
|
1033
|
+
})
|
|
1034
|
+
}),
|
|
982
1035
|
background: {
|
|
983
1036
|
default: n900
|
|
984
1037
|
},
|
|
@@ -1044,10 +1097,21 @@ const darkTheme = createTheme({
|
|
|
1044
1097
|
primary: n50
|
|
1045
1098
|
}
|
|
1046
1099
|
},
|
|
1047
|
-
components: componentOverrides,
|
|
1100
|
+
components: Object.assign(Object.assign({}, componentOverrides), {
|
|
1101
|
+
MuiPaper: {
|
|
1102
|
+
styleOverrides: {
|
|
1103
|
+
root: {
|
|
1104
|
+
backgroundColor: darkFigmaColors.background.level0.componentsBackground
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
}),
|
|
1048
1109
|
typography: Object.assign(Object.assign({}, typographyOptions), {
|
|
1049
1110
|
allVariants: Object.assign(Object.assign({}, typographyOptions.allVariants), {
|
|
1050
|
-
color:
|
|
1111
|
+
color: darkFigmaColors.typography.black
|
|
1112
|
+
}),
|
|
1113
|
+
body2: Object.assign(Object.assign({}, typographyOptions.body2), {
|
|
1114
|
+
color: darkFigmaColors.typography.gray
|
|
1051
1115
|
})
|
|
1052
1116
|
})
|
|
1053
1117
|
});
|
|
@@ -1208,10 +1272,21 @@ const lightTheme = createTheme({
|
|
|
1208
1272
|
},
|
|
1209
1273
|
tonalOffset: 0.2
|
|
1210
1274
|
},
|
|
1211
|
-
components: componentOverrides,
|
|
1275
|
+
components: Object.assign(Object.assign({}, componentOverrides), {
|
|
1276
|
+
MuiPaper: {
|
|
1277
|
+
styleOverrides: {
|
|
1278
|
+
root: {
|
|
1279
|
+
backgroundColor: lightFigmaColors.background.level0.componentsBackground
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
}),
|
|
1212
1284
|
typography: Object.assign(Object.assign({}, typographyOptions), {
|
|
1213
1285
|
allVariants: Object.assign(Object.assign({}, typographyOptions.allVariants), {
|
|
1214
|
-
color:
|
|
1286
|
+
color: lightFigmaColors.typography.black
|
|
1287
|
+
}),
|
|
1288
|
+
body2: Object.assign(Object.assign({}, typographyOptions.body2), {
|
|
1289
|
+
color: lightFigmaColors.typography.gray
|
|
1215
1290
|
})
|
|
1216
1291
|
})
|
|
1217
1292
|
});
|
|
@@ -1288,7 +1363,7 @@ const DotAlertBanner = ({
|
|
|
1288
1363
|
success: AlertBannerIcon('check-solid'),
|
|
1289
1364
|
warning: AlertBannerIcon('warning-solid')
|
|
1290
1365
|
};
|
|
1291
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1366
|
+
const rootClasses = useStylesWithRootClass(rootClassName$13, severity, className);
|
|
1292
1367
|
/* For simple string use default component, for everything else use 'div' */
|
|
1293
1368
|
const typographyComponent = isString$1(children) ? undefined : 'div';
|
|
1294
1369
|
return jsx(StyledAlertBanner, {
|
|
@@ -1936,7 +2011,7 @@ const useDotCoreApiContext = () => {
|
|
|
1936
2011
|
return useContext(DotCoreApiContext);
|
|
1937
2012
|
};
|
|
1938
2013
|
|
|
1939
|
-
const rootClassName$
|
|
2014
|
+
const rootClassName$12 = 'dot-avatar';
|
|
1940
2015
|
const avatarSpacing = {
|
|
1941
2016
|
small: 3,
|
|
1942
2017
|
medium: 5,
|
|
@@ -1947,11 +2022,11 @@ const StyledAvatar = styled(Avatar).withConfig({
|
|
|
1947
2022
|
componentId: "sc-13bzj2s-0"
|
|
1948
2023
|
})(["", ""], ({
|
|
1949
2024
|
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$
|
|
2025
|
+
}) => 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
2026
|
color
|
|
1952
2027
|
}) => {
|
|
1953
2028
|
return color && theme.palette.avatarColors[color] ? theme.palette.avatarColors[color].backgroundColor : theme.palette.avatarColors['default'].backgroundColor;
|
|
1954
|
-
}, theme.palette.
|
|
2029
|
+
}, theme.palette.figma.icon.white, theme.palette.figma.icon.black, ({
|
|
1955
2030
|
color
|
|
1956
2031
|
}) => {
|
|
1957
2032
|
return color ? theme.palette.avatarColors[color].color : theme.palette.avatarColors['default'].color;
|
|
@@ -2022,7 +2097,7 @@ const DotAvatar = ({
|
|
|
2022
2097
|
variant: _variant = 'circular',
|
|
2023
2098
|
style
|
|
2024
2099
|
}) => {
|
|
2025
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2100
|
+
const rootClasses = useStylesWithRootClass(rootClassName$12, className);
|
|
2026
2101
|
const getAvatarColor = () => {
|
|
2027
2102
|
if ((style === null || style === void 0 ? void 0 : style.color) !== undefined) return 'inherit';
|
|
2028
2103
|
if (color) return color;
|
|
@@ -2061,13 +2136,13 @@ const DotAvatar = ({
|
|
|
2061
2136
|
});
|
|
2062
2137
|
};
|
|
2063
2138
|
|
|
2064
|
-
const rootClassName$
|
|
2139
|
+
const rootClassName$11 = 'dot-button';
|
|
2065
2140
|
const StyledButton = styled(Button).withConfig({
|
|
2066
2141
|
displayName: "Buttonstyles__StyledButton",
|
|
2067
2142
|
componentId: "sx99hh-0"
|
|
2068
2143
|
})(["", ""], ({
|
|
2069
2144
|
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$
|
|
2145
|
+
}) => 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
2146
|
|
|
2072
2147
|
/** This component wraps the Button component from @material-ui. */
|
|
2073
2148
|
const DotButton = /*#__PURE__*/forwardRef(({
|
|
@@ -2090,7 +2165,7 @@ const DotButton = /*#__PURE__*/forwardRef(({
|
|
|
2090
2165
|
tooltip,
|
|
2091
2166
|
type: _type = 'primary'
|
|
2092
2167
|
}, ref) => {
|
|
2093
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2168
|
+
const rootClasses = useStylesWithRootClass(rootClassName$11, className);
|
|
2094
2169
|
let color;
|
|
2095
2170
|
let variant;
|
|
2096
2171
|
switch (_type) {
|
|
@@ -2139,11 +2214,11 @@ const DotButton = /*#__PURE__*/forwardRef(({
|
|
|
2139
2214
|
});
|
|
2140
2215
|
});
|
|
2141
2216
|
|
|
2142
|
-
const rootClassName
|
|
2217
|
+
const rootClassName$10 = 'dot-link';
|
|
2143
2218
|
const StyledLink = styled(Link).withConfig({
|
|
2144
2219
|
displayName: "Linkstyles__StyledLink",
|
|
2145
2220
|
componentId: "sc-1lpmaww-0"
|
|
2146
|
-
})(["", ""], () => css(["&.", "{cursor:pointer;&:hover.MuiLink-underlineHover{text-decoration:none;}}"], rootClassName
|
|
2221
|
+
})(["", ""], () => css(["&.", "{cursor:pointer;&:hover.MuiLink-underlineHover{text-decoration:none;}}"], rootClassName$10));
|
|
2147
2222
|
|
|
2148
2223
|
const DotLink = ({
|
|
2149
2224
|
ariaLabel,
|
|
@@ -2162,7 +2237,7 @@ const DotLink = ({
|
|
|
2162
2237
|
tooltip,
|
|
2163
2238
|
underline: _underline = 'always'
|
|
2164
2239
|
}) => {
|
|
2165
|
-
const rootClasses = useStylesWithRootClass(rootClassName
|
|
2240
|
+
const rootClasses = useStylesWithRootClass(rootClassName$10, className);
|
|
2166
2241
|
useEffect(() => {
|
|
2167
2242
|
// Include a console warning if the link is not a string and no ariaLabel is provided
|
|
2168
2243
|
if (!isString$1(children) && !ariaLabel) {
|
|
@@ -2211,7 +2286,7 @@ const CreateUUID = () => {
|
|
|
2211
2286
|
});
|
|
2212
2287
|
};
|
|
2213
2288
|
|
|
2214
|
-
const rootClassName
|
|
2289
|
+
const rootClassName$$ = 'dot-list';
|
|
2215
2290
|
const listItemRootClass = 'dot-list-item';
|
|
2216
2291
|
const nestedListClassName = 'dot-nested-list';
|
|
2217
2292
|
const nestedDrawerClassName = 'dot-nested-drawer';
|
|
@@ -2220,7 +2295,7 @@ const StyledList = styled(List).withConfig({
|
|
|
2220
2295
|
componentId: "wxwqwr-0"
|
|
2221
2296
|
})(["", ""], ({
|
|
2222
2297
|
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
|
|
2298
|
+
}) => 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
2299
|
|
|
2225
2300
|
const getChevronIcon = (nestedListType, isOpened) => {
|
|
2226
2301
|
if (nestedListType !== 'expandable') {
|
|
@@ -2264,13 +2339,13 @@ const DotListDivider = ({
|
|
|
2264
2339
|
});
|
|
2265
2340
|
};
|
|
2266
2341
|
|
|
2267
|
-
const rootClassName$
|
|
2342
|
+
const rootClassName$_ = 'dot-progress';
|
|
2268
2343
|
const StyledCircularProgress = styled(CircularProgress).withConfig({
|
|
2269
2344
|
displayName: "Progressstyles__StyledCircularProgress",
|
|
2270
2345
|
componentId: "sc-1gs77rb-0"
|
|
2271
2346
|
})(["", ""], ({
|
|
2272
2347
|
theme
|
|
2273
|
-
}) => css(["&.", "{&.MuiCircularProgress-colorPrimary{color:", ";}&.MuiCircularProgress-colorSecondary{color:", ";}"], rootClassName$
|
|
2348
|
+
}) => css(["&.", "{&.MuiCircularProgress-colorPrimary{color:", ";}&.MuiCircularProgress-colorSecondary{color:", ";}"], rootClassName$_, theme.palette.figma.inProgress.normal, theme.palette.figma.inProgress.secondary));
|
|
2274
2349
|
|
|
2275
2350
|
const DotProgress = ({
|
|
2276
2351
|
ariaLabel,
|
|
@@ -2283,7 +2358,7 @@ const DotProgress = ({
|
|
|
2283
2358
|
value,
|
|
2284
2359
|
variant: _variant = 'indeterminate'
|
|
2285
2360
|
}) => {
|
|
2286
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2361
|
+
const rootClasses = useStylesWithRootClass(rootClassName$_, className);
|
|
2287
2362
|
useEffect(() => {
|
|
2288
2363
|
if (!ariaLabel) {
|
|
2289
2364
|
console.warn('a11y: DotProgress must have an ariaLabel to describe the progress component');
|
|
@@ -2324,23 +2399,23 @@ var variables = /*#__PURE__*/Object.freeze({
|
|
|
2324
2399
|
levelTop: levelTop
|
|
2325
2400
|
});
|
|
2326
2401
|
|
|
2327
|
-
const rootClassName$
|
|
2402
|
+
const rootClassName$Z = 'dot-popper';
|
|
2328
2403
|
const StyledPopper$1 = styled(Popper).withConfig({
|
|
2329
2404
|
displayName: "Popperstyles__StyledPopper",
|
|
2330
2405
|
componentId: "sd1h8p-0"
|
|
2331
2406
|
})(["", ""], ({
|
|
2332
2407
|
theme
|
|
2333
|
-
}) => css(["&.", "{font-family:", ";font-size:", "px;}&.", ",&.", " > .dot-popper-paper{background-color:", ";}"], rootClassName$
|
|
2408
|
+
}) => 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
2409
|
|
|
2335
2410
|
const flyoutMenuClassName = 'dot-flyout-menu';
|
|
2336
|
-
const rootClassName$
|
|
2411
|
+
const rootClassName$Y = 'dot-menu';
|
|
2337
2412
|
const getListMaxHeight = maxHeight => isString$1(maxHeight) ? maxHeight : `${maxHeight}px`;
|
|
2338
2413
|
const StyledPopper = styled(Popper).withConfig({
|
|
2339
2414
|
displayName: "Menustyles__StyledPopper",
|
|
2340
2415
|
componentId: "sc-134fmqu-0"
|
|
2341
2416
|
})(["", ""], ({
|
|
2342
2417
|
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$
|
|
2418
|
+
}) => 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
2419
|
$maxHeight
|
|
2345
2420
|
}) => $maxHeight !== undefined && `
|
|
2346
2421
|
max-height: ${getListMaxHeight($maxHeight)};
|
|
@@ -2350,7 +2425,7 @@ const MENU_ITEM_HEIGHT_NORMAL = 48;
|
|
|
2350
2425
|
const MENU_ITEM_HEIGHT_DENSE = 36;
|
|
2351
2426
|
const DEFAULT_MAX_VISIBLE_ITEMS = 7;
|
|
2352
2427
|
|
|
2353
|
-
const rootClassName$
|
|
2428
|
+
const rootClassName$X = 'dot-ul';
|
|
2354
2429
|
const listItemClassName$1 = 'dot-li';
|
|
2355
2430
|
const listItemWithSubmenuClassName = 'dot-li-with-submenu';
|
|
2356
2431
|
const StyledMenuList = styled(MenuList).withConfig({
|
|
@@ -2358,7 +2433,7 @@ const StyledMenuList = styled(MenuList).withConfig({
|
|
|
2358
2433
|
componentId: "yqdwwg-0"
|
|
2359
2434
|
})(["", ""], ({
|
|
2360
2435
|
theme
|
|
2361
|
-
}) => css(["&.", "{
|
|
2436
|
+
}) => 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
2437
|
|
|
2363
2438
|
const getDefaultItemHeight = isDense => isDense ? MENU_ITEM_HEIGHT_DENSE : MENU_ITEM_HEIGHT_NORMAL;
|
|
2364
2439
|
const calculateItemHeight = (isDense, customItemHeight, menuItemHeight) => {
|
|
@@ -2430,7 +2505,7 @@ const DotMenuList = /*#__PURE__*/forwardRef(({
|
|
|
2430
2505
|
onSubMenuCreate,
|
|
2431
2506
|
selectedKey
|
|
2432
2507
|
}, ref) => {
|
|
2433
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2508
|
+
const rootClasses = useStylesWithRootClass(rootClassName$X, className);
|
|
2434
2509
|
const [activeSubmenu, setActiveSubmenu] = useState(null);
|
|
2435
2510
|
const [subItemAnchorEl, setSubItemAnchorEl] = useState(null);
|
|
2436
2511
|
const openSubmenu = (target, itemKey) => {
|
|
@@ -2539,7 +2614,7 @@ const DotMenu = ({
|
|
|
2539
2614
|
open: _open = false,
|
|
2540
2615
|
selectedKey
|
|
2541
2616
|
}) => {
|
|
2542
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2617
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Y, className, _loading ? 'loading' : '');
|
|
2543
2618
|
const isSubmenu = checkIfSubmenu(anchorEl);
|
|
2544
2619
|
const hasSubItems = checkForSubItems(_menuItems);
|
|
2545
2620
|
// Timeout object is customizable when Menu component is either submenu
|
|
@@ -2627,13 +2702,13 @@ const DotMenu = ({
|
|
|
2627
2702
|
});
|
|
2628
2703
|
};
|
|
2629
2704
|
|
|
2630
|
-
const rootClassName$
|
|
2705
|
+
const rootClassName$W = 'dot-drawer';
|
|
2631
2706
|
const StyledDrawer = styled(Drawer).withConfig({
|
|
2632
2707
|
displayName: "Drawerstyles__StyledDrawer",
|
|
2633
2708
|
componentId: "sc-1uiowy0-0"
|
|
2634
2709
|
})(["", ""], ({
|
|
2635
2710
|
theme
|
|
2636
|
-
}) => css(["&.", " .MuiBackdrop-root{background-color:", ";}.dot-drawer-paper{height:", ";padding:", ";width:", ";}"], rootClassName$
|
|
2711
|
+
}) => 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
2712
|
height,
|
|
2638
2713
|
anchor
|
|
2639
2714
|
}) => anchor === 'left' || anchor === 'right' ? '100%' : height, theme.spacing(2), ({
|
|
@@ -2641,21 +2716,21 @@ const StyledDrawer = styled(Drawer).withConfig({
|
|
|
2641
2716
|
anchor
|
|
2642
2717
|
}) => anchor === 'bottom' || anchor === 'top' ? 'auto' : width));
|
|
2643
2718
|
|
|
2644
|
-
const rootClassName$
|
|
2719
|
+
const rootClassName$V = 'dot-drawer-header';
|
|
2645
2720
|
const StyleDrawerHeader = styled.div.withConfig({
|
|
2646
2721
|
displayName: "DrawerHeaderstyles__StyleDrawerHeader",
|
|
2647
2722
|
componentId: "sc-2d2xd3-0"
|
|
2648
2723
|
})(["", ""], ({
|
|
2649
2724
|
theme
|
|
2650
|
-
}) => css(["&.", "{padding:", ";display:flex;align-items:center;.close-button{margin-left:auto;}}"], rootClassName$
|
|
2725
|
+
}) => css(["&.", "{padding:", ";display:flex;align-items:center;.close-button{margin-left:auto;}}"], rootClassName$V, theme.spacing(0, 0, 2)));
|
|
2651
2726
|
|
|
2652
|
-
const rootClassName$
|
|
2727
|
+
const rootClassName$U = 'dot-icon-btn';
|
|
2653
2728
|
const StyledIconButton = styled(IconButton).withConfig({
|
|
2654
2729
|
displayName: "IconButtonstyles__StyledIconButton",
|
|
2655
2730
|
componentId: "eko0kb-0"
|
|
2656
2731
|
})(["", ""], ({
|
|
2657
2732
|
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$
|
|
2733
|
+
}) => 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
2734
|
|
|
2660
2735
|
const DotIconButton = ({
|
|
2661
2736
|
ariaLabel,
|
|
@@ -2673,7 +2748,7 @@ const DotIconButton = ({
|
|
|
2673
2748
|
size: _size = 'medium'
|
|
2674
2749
|
}) => {
|
|
2675
2750
|
const rippleClassName = _disableRipple ? 'ripple-disabled' : '';
|
|
2676
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2751
|
+
const rootClasses = useStylesWithRootClass(rootClassName$U, rippleClassName, `shape-${_shape}`, className);
|
|
2677
2752
|
return jsx(DotTooltip, {
|
|
2678
2753
|
"data-testid": "icon-button-tooltip",
|
|
2679
2754
|
title: tooltip,
|
|
@@ -2706,7 +2781,7 @@ const DotDrawerHeader = ({
|
|
|
2706
2781
|
onClose,
|
|
2707
2782
|
variant
|
|
2708
2783
|
}) => {
|
|
2709
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2784
|
+
const rootClasses = useStylesWithRootClass(rootClassName$V, className);
|
|
2710
2785
|
return jsxs(StyleDrawerHeader, {
|
|
2711
2786
|
"aria-label": ariaLabel,
|
|
2712
2787
|
"aria-level": 2,
|
|
@@ -2723,11 +2798,11 @@ const DotDrawerHeader = ({
|
|
|
2723
2798
|
});
|
|
2724
2799
|
};
|
|
2725
2800
|
|
|
2726
|
-
const rootClassName$
|
|
2801
|
+
const rootClassName$T = 'dot-drawer-body';
|
|
2727
2802
|
const StyleDrawerBody = styled.div.withConfig({
|
|
2728
2803
|
displayName: "DrawerBodystyles__StyleDrawerBody",
|
|
2729
2804
|
componentId: "sc-1mpmjdk-0"
|
|
2730
|
-
})(["", ""], () => css(["&.", "{display:flex;.dot-drawer-close-button{align-self:self-start;padding:0;margin-left:auto;}}"], rootClassName$
|
|
2805
|
+
})(["", ""], () => css(["&.", "{display:flex;.dot-drawer-close-button{align-self:self-start;padding:0;margin-left:auto;}}"], rootClassName$T));
|
|
2731
2806
|
|
|
2732
2807
|
const DotDrawerBody = ({
|
|
2733
2808
|
ariaLabel,
|
|
@@ -2739,7 +2814,7 @@ const DotDrawerBody = ({
|
|
|
2739
2814
|
onClose,
|
|
2740
2815
|
variant
|
|
2741
2816
|
}) => {
|
|
2742
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2817
|
+
const rootClasses = useStylesWithRootClass(rootClassName$T, className);
|
|
2743
2818
|
return jsxs(StyleDrawerBody, {
|
|
2744
2819
|
"aria-label": ariaLabel,
|
|
2745
2820
|
className: rootClasses,
|
|
@@ -2754,13 +2829,13 @@ const DotDrawerBody = ({
|
|
|
2754
2829
|
});
|
|
2755
2830
|
};
|
|
2756
2831
|
|
|
2757
|
-
const rootClassName$
|
|
2832
|
+
const rootClassName$S = 'dot-drawer-footer';
|
|
2758
2833
|
const StyleDrawerFooter = styled.div.withConfig({
|
|
2759
2834
|
displayName: "DrawerFooterstyles__StyleDrawerFooter",
|
|
2760
2835
|
componentId: "sc-1ki05ze-0"
|
|
2761
2836
|
})(["", ""], ({
|
|
2762
2837
|
theme
|
|
2763
|
-
}) => css(["&.", "{padding:", ";}"], rootClassName$
|
|
2838
|
+
}) => css(["&.", "{padding:", ";}"], rootClassName$S, theme.spacing(2, 0, 0)));
|
|
2764
2839
|
|
|
2765
2840
|
const DotDrawerFooter = ({
|
|
2766
2841
|
ariaLabel,
|
|
@@ -2769,7 +2844,7 @@ const DotDrawerFooter = ({
|
|
|
2769
2844
|
className,
|
|
2770
2845
|
'data-testid': dataTestId
|
|
2771
2846
|
}) => {
|
|
2772
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2847
|
+
const rootClasses = useStylesWithRootClass(rootClassName$S, className);
|
|
2773
2848
|
return jsx(StyleDrawerFooter, {
|
|
2774
2849
|
"aria-label": ariaLabel,
|
|
2775
2850
|
className: rootClasses,
|
|
@@ -2807,7 +2882,7 @@ const DotDrawer = ({
|
|
|
2807
2882
|
onClose(event);
|
|
2808
2883
|
}
|
|
2809
2884
|
};
|
|
2810
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2885
|
+
const rootClasses = useStylesWithRootClass(rootClassName$W, className);
|
|
2811
2886
|
const backdropEnabled = _variant === 'temporary' && !(ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.hideBackdrop);
|
|
2812
2887
|
const headerExists = !!drawerHeaderProps;
|
|
2813
2888
|
const bodyTestId = drawerBodyProps ? drawerBodyProps[`data-testid`] : 'drawer-body';
|
|
@@ -2869,7 +2944,7 @@ const styledListItemElement = elementType => {
|
|
|
2869
2944
|
componentId: "sc-1fawh8v-0"
|
|
2870
2945
|
})(["", ""], ({
|
|
2871
2946
|
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.
|
|
2947
|
+
}) => 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
2948
|
};
|
|
2874
2949
|
const StyledListItem = styledListItemElement(ListItem);
|
|
2875
2950
|
const StyledListItemButton = styledListItemElement(ListItemButton);
|
|
@@ -3117,7 +3192,7 @@ const DotList = ({
|
|
|
3117
3192
|
nestedListType: _nestedListType = 'expandable',
|
|
3118
3193
|
width: _width = 240
|
|
3119
3194
|
}) => {
|
|
3120
|
-
const rootClasses = useStylesWithRootClass(rootClassName
|
|
3195
|
+
const rootClasses = useStylesWithRootClass(rootClassName$$, className);
|
|
3121
3196
|
const listWidth = typeof _width === 'number' ? `${_width}px` : _width;
|
|
3122
3197
|
const listRef = useRef();
|
|
3123
3198
|
const [listItemIndex, setListItemIndex] = useState(null);
|
|
@@ -3281,8 +3356,10 @@ const DotInputText = ({
|
|
|
3281
3356
|
inputRef,
|
|
3282
3357
|
label,
|
|
3283
3358
|
max,
|
|
3359
|
+
maxLength,
|
|
3284
3360
|
maxRows,
|
|
3285
3361
|
min,
|
|
3362
|
+
minLength,
|
|
3286
3363
|
minRows,
|
|
3287
3364
|
multiline: _multiline = false,
|
|
3288
3365
|
name,
|
|
@@ -3309,7 +3386,7 @@ const DotInputText = ({
|
|
|
3309
3386
|
const hasEndAdornmentIcon = endIcon || _error || hasWarning || hasSuccess;
|
|
3310
3387
|
// This state is used only with debounce feature enabled
|
|
3311
3388
|
const [inputTextState, setInputTextState] = useState(hasDebounce && getInitialState(value));
|
|
3312
|
-
const rootStyles = useStylesWithRootClass(rootClassName$
|
|
3389
|
+
const rootStyles = useStylesWithRootClass(rootClassName$15, hasError, hasWarning, hasSuccess, _readOnly && readOnlyClassName$1);
|
|
3313
3390
|
// Used to control text value from the consumer component
|
|
3314
3391
|
// when debounce feature is enabled
|
|
3315
3392
|
useEffect(() => {
|
|
@@ -3394,7 +3471,9 @@ const DotInputText = ({
|
|
|
3394
3471
|
className: inputClassName,
|
|
3395
3472
|
'data-testid': dataTestId,
|
|
3396
3473
|
max,
|
|
3474
|
+
maxLength: maxLength,
|
|
3397
3475
|
min,
|
|
3476
|
+
minLength: minLength,
|
|
3398
3477
|
readOnly: _readOnly,
|
|
3399
3478
|
tabIndex: 0
|
|
3400
3479
|
},
|
|
@@ -3420,11 +3499,11 @@ const DotInputText = ({
|
|
|
3420
3499
|
});
|
|
3421
3500
|
};
|
|
3422
3501
|
|
|
3423
|
-
const rootClassName$
|
|
3502
|
+
const rootClassName$R = 'dot-search-input';
|
|
3424
3503
|
const StyledSearchInput = styled.span.withConfig({
|
|
3425
3504
|
displayName: "SearchInputstyles__StyledSearchInput",
|
|
3426
3505
|
componentId: "qlwzku-0"
|
|
3427
|
-
})(["", ""], () => css(["&.", "{}"], rootClassName$
|
|
3506
|
+
})(["", ""], () => css(["&.", "{}"], rootClassName$R));
|
|
3428
3507
|
|
|
3429
3508
|
function SearchInput({
|
|
3430
3509
|
'data-testid': dataTestId,
|
|
@@ -3438,7 +3517,7 @@ function SearchInput({
|
|
|
3438
3517
|
tooltip = null,
|
|
3439
3518
|
value
|
|
3440
3519
|
}) {
|
|
3441
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3520
|
+
const rootClasses = useStylesWithRootClass(rootClassName$R, className);
|
|
3442
3521
|
const [searchText, setSearchText] = useState(value);
|
|
3443
3522
|
let previousSearchText = '';
|
|
3444
3523
|
const handleChange = useCallback(event => {
|
|
@@ -3489,13 +3568,13 @@ function SearchInput({
|
|
|
3489
3568
|
});
|
|
3490
3569
|
}
|
|
3491
3570
|
|
|
3492
|
-
const rootClassName$
|
|
3571
|
+
const rootClassName$Q = 'dot-copy-button';
|
|
3493
3572
|
const StyledCopyButton = styled.span.withConfig({
|
|
3494
3573
|
displayName: "CopyButtonstyles__StyledCopyButton",
|
|
3495
3574
|
componentId: "sc-18ff0u-0"
|
|
3496
3575
|
})(["", ""], ({
|
|
3497
3576
|
theme
|
|
3498
|
-
}) => css(["&.", " .copied-to-clipboard{color:", ";}"], rootClassName$
|
|
3577
|
+
}) => css(["&.", " .copied-to-clipboard{color:", ";}"], rootClassName$Q, theme.palette.figma.success.normal));
|
|
3499
3578
|
|
|
3500
3579
|
const DotCopyButton = ({
|
|
3501
3580
|
ariaLabel: _ariaLabel = 'Copy to clipboard',
|
|
@@ -3549,9 +3628,9 @@ const DotCopyButton = ({
|
|
|
3549
3628
|
return _onClick(event);
|
|
3550
3629
|
}
|
|
3551
3630
|
return false;
|
|
3552
|
-
}, [_showCopiedIcon, _disabled, _onClick]);
|
|
3631
|
+
}, [value, _showCopiedIcon, _disabled, _onClick]);
|
|
3553
3632
|
return jsxs(StyledCopyButton, {
|
|
3554
|
-
className: rootClassName$
|
|
3633
|
+
className: rootClassName$Q,
|
|
3555
3634
|
"data-testid": dataTestId,
|
|
3556
3635
|
children: [!timedShowCopiedIcon && jsx(DotIconButton, {
|
|
3557
3636
|
ariaLabel: _ariaLabel,
|
|
@@ -3782,13 +3861,13 @@ const recentAppInstancesSetter = (latestInstance, maxRecentItems
|
|
|
3782
3861
|
};
|
|
3783
3862
|
};
|
|
3784
3863
|
|
|
3785
|
-
const rootClassName$
|
|
3864
|
+
const rootClassName$P = 'dot-app-switcher';
|
|
3786
3865
|
const StyledAppSwitcher = styled(DotDrawer).withConfig({
|
|
3787
3866
|
displayName: "AppSwitcherstyles__StyledAppSwitcher",
|
|
3788
3867
|
componentId: "hhxfqg-0"
|
|
3789
3868
|
})(["", ""], ({
|
|
3790
3869
|
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{
|
|
3870
|
+
}) => 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
3871
|
|
|
3793
3872
|
const DotAppSwitcherView = ({
|
|
3794
3873
|
activeApp,
|
|
@@ -3809,7 +3888,7 @@ const DotAppSwitcherView = ({
|
|
|
3809
3888
|
if (dotCoreApiContext !== null) {
|
|
3810
3889
|
setSelectedAppType = dotCoreApiContext.setSelectedAppSwitcherAppType;
|
|
3811
3890
|
}
|
|
3812
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3891
|
+
const rootClasses = useStylesWithRootClass(rootClassName$P, className);
|
|
3813
3892
|
const [appTypeMap, setAppTypeMap] = useState();
|
|
3814
3893
|
const [appTypeLabels, setAppTypeLabels] = useState();
|
|
3815
3894
|
const [appTypeMenuItems, setAppTypeMenuItems] = useState();
|
|
@@ -3856,7 +3935,7 @@ const DotAppSwitcherView = ({
|
|
|
3856
3935
|
key: app.id
|
|
3857
3936
|
});
|
|
3858
3937
|
});
|
|
3859
|
-
const keys = Array.from(newAppTypeMap.keys()).sort();
|
|
3938
|
+
const keys = Array.from(newAppTypeMap.keys()).sort((a, b) => a.localeCompare(b));
|
|
3860
3939
|
const sortedAppTypeMap = new Map();
|
|
3861
3940
|
for (const appType of keys) {
|
|
3862
3941
|
const appTypeApps = newAppTypeMap.get(appType);
|
|
@@ -3966,18 +4045,14 @@ const DotAppSwitcherView = ({
|
|
|
3966
4045
|
return jsxs("div", {
|
|
3967
4046
|
className: "content",
|
|
3968
4047
|
role: "contentinfo",
|
|
3969
|
-
children: [jsx(
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
children: jsx("span", {
|
|
3978
|
-
children: "Back"
|
|
3979
|
-
})
|
|
3980
|
-
})
|
|
4048
|
+
children: [jsx(DotButton, {
|
|
4049
|
+
className: "app-switcher-back-button",
|
|
4050
|
+
type: "text",
|
|
4051
|
+
onClick: showAppTypes,
|
|
4052
|
+
startIcon: jsx(DotIcon, {
|
|
4053
|
+
iconId: "back"
|
|
4054
|
+
}),
|
|
4055
|
+
children: "Back"
|
|
3981
4056
|
}), jsx("div", {
|
|
3982
4057
|
"aria-level": 2,
|
|
3983
4058
|
className: "product-heading",
|
|
@@ -4191,19 +4266,19 @@ var SvgLogoDigitalAiWhite = function SvgLogoDigitalAiWhite(_ref, ref) {
|
|
|
4191
4266
|
};
|
|
4192
4267
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgLogoDigitalAiWhite);
|
|
4193
4268
|
|
|
4194
|
-
const rootClassName$
|
|
4269
|
+
const rootClassName$O = 'dot-sidebar';
|
|
4195
4270
|
const StyledSidebar = styled.aside.withConfig({
|
|
4196
4271
|
displayName: "Sidebarstyles__StyledSidebar",
|
|
4197
4272
|
componentId: "l3atb4-0"
|
|
4198
4273
|
})(["", ""], ({
|
|
4199
4274
|
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{
|
|
4275
|
+
}) => 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
4276
|
|
|
4202
|
-
const rootClassName$
|
|
4277
|
+
const rootClassName$N = 'dot-truncate-with-tooltip';
|
|
4203
4278
|
const StyledTruncateWithTooltip = styled(Tooltip).withConfig({
|
|
4204
4279
|
displayName: "TruncateWithTooltipstyles__StyledTruncateWithTooltip",
|
|
4205
4280
|
componentId: "sc-1o80lur-0"
|
|
4206
|
-
})(["", ""], () => css(["&.", "{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}&.dot-characters-limit{display:inline;}"], rootClassName$
|
|
4281
|
+
})(["", ""], () => css(["&.", "{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}&.dot-characters-limit{display:inline;}"], rootClassName$N));
|
|
4207
4282
|
|
|
4208
4283
|
const getTruncatedLabel = (label, charactersLimit) => {
|
|
4209
4284
|
if (!charactersLimit || charactersLimit <= 0 || label.length < charactersLimit) return label;
|
|
@@ -4223,7 +4298,7 @@ const DotTruncateWithTooltip = ({
|
|
|
4223
4298
|
label,
|
|
4224
4299
|
width
|
|
4225
4300
|
}) => {
|
|
4226
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4301
|
+
const rootClasses = useStylesWithRootClass(rootClassName$N, className, charactersLimit ? 'dot-characters-limit' : '');
|
|
4227
4302
|
return jsx(StyledTruncateWithTooltip, {
|
|
4228
4303
|
"aria-label": ariaLabel,
|
|
4229
4304
|
arrow: _arrow,
|
|
@@ -4333,7 +4408,7 @@ const DotSidebar = ({
|
|
|
4333
4408
|
setIsOpen(!isOpen);
|
|
4334
4409
|
};
|
|
4335
4410
|
const sidebarClasses = useStylesWithRootClass('side-nav', openClass);
|
|
4336
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4411
|
+
const rootClasses = useStylesWithRootClass(rootClassName$O, openClass, className);
|
|
4337
4412
|
return jsxs(StyledSidebar, {
|
|
4338
4413
|
"aria-label": ariaLabel,
|
|
4339
4414
|
className: rootClasses,
|
|
@@ -4400,13 +4475,13 @@ const DotSidebar = ({
|
|
|
4400
4475
|
});
|
|
4401
4476
|
};
|
|
4402
4477
|
|
|
4403
|
-
const rootClassName$
|
|
4478
|
+
const rootClassName$M = 'dot-badge';
|
|
4404
4479
|
const StyledBadge = styled(Badge).withConfig({
|
|
4405
4480
|
displayName: "Badgestyles__StyledBadge",
|
|
4406
4481
|
componentId: "sc-1brv3h5-0"
|
|
4407
4482
|
})(["", ""], ({
|
|
4408
4483
|
theme
|
|
4409
|
-
}) => css(["&.", "{color:", ";word-break:normal;.MuiBadge-badge{background-color:", ";color:", ";&.MuiBadge-standard{font-size:10px;height:", ";min-width:", ";padding:", ";}}}"], rootClassName$
|
|
4484
|
+
}) => 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
4485
|
$badgeColor
|
|
4411
4486
|
}) => {
|
|
4412
4487
|
return $badgeColor || theme.palette.figma.destructive.normal;
|
|
@@ -4424,7 +4499,7 @@ const DotBadge = ({
|
|
|
4424
4499
|
overlap,
|
|
4425
4500
|
variant: _variant = 'dot'
|
|
4426
4501
|
}) => {
|
|
4427
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4502
|
+
const rootClasses = useStylesWithRootClass(rootClassName$M, className);
|
|
4428
4503
|
return jsx(StyledBadge, {
|
|
4429
4504
|
"$badgeColor": badgeColor,
|
|
4430
4505
|
anchorOrigin: {
|
|
@@ -4446,7 +4521,7 @@ const DotBadge = ({
|
|
|
4446
4521
|
});
|
|
4447
4522
|
};
|
|
4448
4523
|
|
|
4449
|
-
const rootClassName$
|
|
4524
|
+
const rootClassName$L = 'dot-app-toolbar';
|
|
4450
4525
|
const denseClassName = 'dense';
|
|
4451
4526
|
const StyledMainMenu = styled(DotDrawer).withConfig({
|
|
4452
4527
|
displayName: "AppToolbarstyles__StyledMainMenu",
|
|
@@ -4459,7 +4534,7 @@ const StyledAppToolbar = styled.header.withConfig({
|
|
|
4459
4534
|
componentId: "sc-3kokby-1"
|
|
4460
4535
|
})(["", ""], ({
|
|
4461
4536
|
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$
|
|
4537
|
+
}) => 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
4538
|
|
|
4464
4539
|
const DotAppToolbar = ({
|
|
4465
4540
|
ariaLabel,
|
|
@@ -4487,9 +4562,9 @@ const DotAppToolbar = ({
|
|
|
4487
4562
|
const displayAppLogo = appLogo || appLogoSmall;
|
|
4488
4563
|
const mainMenuRef = useRef(null);
|
|
4489
4564
|
const denseClass = _dense ? denseClassName : '';
|
|
4490
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4565
|
+
const rootClasses = useStylesWithRootClass(rootClassName$L, className, denseClass, showMainMenu ? '' : 'without-menu-icon');
|
|
4491
4566
|
const mainMenuClasses = useStylesWithRootClass('dot-main-menu', denseClass, menuOpen ? 'open' : '');
|
|
4492
|
-
const targetBreakpoint = useMediaQuery(theme => theme.breakpoints.up('
|
|
4567
|
+
const targetBreakpoint = useMediaQuery(theme => theme.breakpoints.up('lg'));
|
|
4493
4568
|
useEffect(() => {
|
|
4494
4569
|
const handleInsideMenuClick = event => {
|
|
4495
4570
|
var _a, _b;
|
|
@@ -4617,7 +4692,7 @@ const DotAppToolbar = ({
|
|
|
4617
4692
|
}) : appToolbar;
|
|
4618
4693
|
};
|
|
4619
4694
|
|
|
4620
|
-
const rootClassName$
|
|
4695
|
+
const rootClassName$K = 'dot-autocomplete';
|
|
4621
4696
|
const inputRootClassName = 'dot-input-root';
|
|
4622
4697
|
const inputMediumClassName = 'dot-input-medium';
|
|
4623
4698
|
const StyledAutocomplete = styled(Autocomplete).withConfig({
|
|
@@ -4625,15 +4700,15 @@ const StyledAutocomplete = styled(Autocomplete).withConfig({
|
|
|
4625
4700
|
componentId: "j2sgjy-0"
|
|
4626
4701
|
})(["", ""], ({
|
|
4627
4702
|
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$
|
|
4703
|
+
}) => 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
4704
|
|
|
4630
|
-
const rootClassName$
|
|
4705
|
+
const rootClassName$J = 'dot-chip';
|
|
4631
4706
|
const StyledChip = styled(Chip).withConfig({
|
|
4632
4707
|
displayName: "Chipstyles__StyledChip",
|
|
4633
4708
|
componentId: "f1tsra-0"
|
|
4634
4709
|
})(["", ""], ({
|
|
4635
4710
|
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:
|
|
4711
|
+
}) => css(["&.", "{background:", ";border-color:", ";color:", ";.dot-icon i{color:", ";height:auto;}.MuiChip-label{padding:", ";}&.MuiChip-sizeSmall{.dot-icon,.dot-avatar{width:18px;height:18px;}.dot-icon{margin-left:5px;}.dot-avatar{margin-left:3px;}.MuiChip-deleteIcon{width:17px;height:17px;margin-right:3px;}.MuiChip-label{padding:", ";}}&.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:", ";height:", ";margin-right:", ";}.dot-icon{margin:", ";}.dot-avatar{margin-right:", ";}}"], 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.spacing(0, 1), 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, theme.spacing(3), theme.spacing(3), theme.spacing(0.5), theme.spacing(0, -0.5, 0, 1), theme.spacing(-0.5)));
|
|
4637
4712
|
|
|
4638
4713
|
const DEFAULT_CHARACTERS_LIMIT = 32;
|
|
4639
4714
|
const DotChip = ({
|
|
@@ -4653,7 +4728,7 @@ const DotChip = ({
|
|
|
4653
4728
|
startIcon
|
|
4654
4729
|
}) => {
|
|
4655
4730
|
const errorClass = _error ? 'Mui-error' : '';
|
|
4656
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4731
|
+
const rootClasses = useStylesWithRootClass(rootClassName$J, className, errorClass);
|
|
4657
4732
|
const getChipLabel = () => {
|
|
4658
4733
|
if (_charactersLimit <= 0 || children.length < _charactersLimit) return children;
|
|
4659
4734
|
const label = `${children.substring(0, _charactersLimit)}...`;
|
|
@@ -4799,8 +4874,8 @@ const DotAutoComplete = ({
|
|
|
4799
4874
|
const popperOpen = !_readOnly && (open || isOpened);
|
|
4800
4875
|
const preventDuplicateInsertion = actionItem === null || actionItem === void 0 ? void 0 : actionItem.preventDuplicateInsertion;
|
|
4801
4876
|
const textFieldWarningClassName = !_error && _warning && warningClassName;
|
|
4802
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4803
|
-
const textFieldRootClasses = useStylesWithRootClass(rootClassName$
|
|
4877
|
+
const rootClasses = useStylesWithRootClass(rootClassName$K, _size === 'medium' && inputMediumClassName, className);
|
|
4878
|
+
const textFieldRootClasses = useStylesWithRootClass(rootClassName$15, _readOnly && readOnlyClassName$1, textFieldWarningClassName);
|
|
4804
4879
|
const inputRootClasses = useStylesWithRootClass(inputRootClassName, !_dense && inputMediumClassName);
|
|
4805
4880
|
let highlightedOption = null;
|
|
4806
4881
|
let textFieldInput;
|
|
@@ -4845,7 +4920,7 @@ const DotAutoComplete = ({
|
|
|
4845
4920
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4846
4921
|
const DotPopper = props => {
|
|
4847
4922
|
if (!isActionItemDefined) return jsx(StyledPopper, Object.assign({}, props, {
|
|
4848
|
-
className: rootClassName$
|
|
4923
|
+
className: rootClassName$Z,
|
|
4849
4924
|
disablePortal: _disablePortal,
|
|
4850
4925
|
"$maxHeight": maxHeight
|
|
4851
4926
|
}));
|
|
@@ -4867,7 +4942,7 @@ const DotAutoComplete = ({
|
|
|
4867
4942
|
const paperProps = props.children.props;
|
|
4868
4943
|
const paperChildren = paperProps.children;
|
|
4869
4944
|
return jsx(StyledPopper, Object.assign({}, props, {
|
|
4870
|
-
className: rootClassName$
|
|
4945
|
+
className: rootClassName$Z,
|
|
4871
4946
|
disablePortal: _disablePortal,
|
|
4872
4947
|
"$maxHeight": maxHeight,
|
|
4873
4948
|
children: jsxs(Paper, Object.assign({}, paperProps, {
|
|
@@ -5074,11 +5149,11 @@ const DotAutoComplete = ({
|
|
|
5074
5149
|
});
|
|
5075
5150
|
};
|
|
5076
5151
|
|
|
5077
|
-
const rootClassName$
|
|
5152
|
+
const rootClassName$I = 'dot-avatar-group';
|
|
5078
5153
|
const StyledAvatarGroup = styled(AvatarGroup).withConfig({
|
|
5079
5154
|
displayName: "AvatarGroupstyles__StyledAvatarGroup",
|
|
5080
5155
|
componentId: "sc-25by6z-0"
|
|
5081
|
-
})(["", ""], () => css(["&.", "{justify-content:flex-end;.MuiAvatar-root{border:none;}}}"], rootClassName$
|
|
5156
|
+
})(["", ""], () => css(["&.", "{justify-content:flex-end;.MuiAvatar-root{border:none;}}}"], rootClassName$I));
|
|
5082
5157
|
|
|
5083
5158
|
const DotAvatarGroup = ({
|
|
5084
5159
|
ariaLabel,
|
|
@@ -5088,7 +5163,7 @@ const DotAvatarGroup = ({
|
|
|
5088
5163
|
max: _max = 3,
|
|
5089
5164
|
spacing: _spacing = 'medium'
|
|
5090
5165
|
}) => {
|
|
5091
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5166
|
+
const rootClasses = useStylesWithRootClass(rootClassName$I, className);
|
|
5092
5167
|
return jsx(StyledAvatarGroup, {
|
|
5093
5168
|
"aria-label": ariaLabel,
|
|
5094
5169
|
classes: {
|
|
@@ -5103,20 +5178,20 @@ const DotAvatarGroup = ({
|
|
|
5103
5178
|
});
|
|
5104
5179
|
};
|
|
5105
5180
|
|
|
5106
|
-
const rootClassName$
|
|
5181
|
+
const rootClassName$H = 'dot-breadcrumbs';
|
|
5107
5182
|
const breadcrumbsWrapperClass = 'dot-breadcrumbs-wrapper';
|
|
5108
5183
|
const StyledBreadcrumbsWrapper = styled.div.withConfig({
|
|
5109
5184
|
displayName: "Breadcrumbsstyles__StyledBreadcrumbsWrapper",
|
|
5110
5185
|
componentId: "sc-7cg374-0"
|
|
5111
5186
|
})(["", ""], ({
|
|
5112
5187
|
theme
|
|
5113
|
-
}) => css(["&.", "{overflow:hidden;.dot-breadcrumbs-menu{.MuiMenuItem-root{padding:0;}a.breadcrumb{width:100%;padding:", ";}}}"], rootClassName$
|
|
5188
|
+
}) => css(["&.", "{overflow:hidden;.dot-breadcrumbs-menu{.MuiMenuItem-root{padding:0;}a.breadcrumb{width:100%;padding:", ";}}}"], rootClassName$H, theme.spacing(0.5, 2)));
|
|
5114
5189
|
const StyledBreadcrumbs = styled(Breadcrumbs).withConfig({
|
|
5115
5190
|
displayName: "Breadcrumbsstyles__StyledBreadcrumbs",
|
|
5116
5191
|
componentId: "sc-7cg374-1"
|
|
5117
5192
|
})(["", ""], ({
|
|
5118
5193
|
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$
|
|
5194
|
+
}) => 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
5195
|
|
|
5121
5196
|
const compareWidth = (parentEl, childEl) => {
|
|
5122
5197
|
return parentEl.getBoundingClientRect().width < childEl.getBoundingClientRect().width;
|
|
@@ -5400,7 +5475,7 @@ const DotBreadcrumbs = ({
|
|
|
5400
5475
|
children: [jsx(StyledBreadcrumbs, {
|
|
5401
5476
|
"aria-label": "breadcrumb",
|
|
5402
5477
|
classes: {
|
|
5403
|
-
root: rootClassName$
|
|
5478
|
+
root: rootClassName$H,
|
|
5404
5479
|
ol: 'dot-ol',
|
|
5405
5480
|
li: 'dot-li'
|
|
5406
5481
|
},
|
|
@@ -5431,13 +5506,15 @@ const DotBreadcrumbs = ({
|
|
|
5431
5506
|
});
|
|
5432
5507
|
};
|
|
5433
5508
|
|
|
5434
|
-
const rootClassName$
|
|
5509
|
+
const rootClassName$G = 'dot-button-toggle';
|
|
5510
|
+
// TODO: need to update ripple color
|
|
5511
|
+
// https://github.com/mui/material-ui/issues/28543
|
|
5435
5512
|
const StyledToggleButtonGroup = styled(ToggleButtonGroup).withConfig({
|
|
5436
5513
|
displayName: "ButtonTogglestyles__StyledToggleButtonGroup",
|
|
5437
5514
|
componentId: "sc-1oh4ljv-0"
|
|
5438
5515
|
})(["", ""], ({
|
|
5439
5516
|
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
|
|
5517
|
+
}) => 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
5518
|
|
|
5442
5519
|
const DotButtonToggle = ({
|
|
5443
5520
|
ariaLabel,
|
|
@@ -5453,7 +5530,7 @@ const DotButtonToggle = ({
|
|
|
5453
5530
|
size: _size = 'medium',
|
|
5454
5531
|
value
|
|
5455
5532
|
}) => {
|
|
5456
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5533
|
+
const rootClasses = useStylesWithRootClass(rootClassName$G, className);
|
|
5457
5534
|
const renderToggleButton = ({
|
|
5458
5535
|
ariaLabel: optionAriaLabel,
|
|
5459
5536
|
className: optionClassName,
|
|
@@ -5523,14 +5600,22 @@ const TooltipToggleButton = /*#__PURE__*/forwardRef((_a, ref) => {
|
|
|
5523
5600
|
}));
|
|
5524
5601
|
});
|
|
5525
5602
|
|
|
5603
|
+
const rootClassName$F = 'dot-card';
|
|
5604
|
+
const StyledCard = styled(Card).withConfig({
|
|
5605
|
+
displayName: "Cardstyles__StyledCard",
|
|
5606
|
+
componentId: "oq44zg-0"
|
|
5607
|
+
})(["", ""], ({
|
|
5608
|
+
theme
|
|
5609
|
+
}) => css(["&.", "{background-color:", ";}"], rootClassName$F, theme.palette.figma.background.level1.white));
|
|
5610
|
+
|
|
5526
5611
|
const DotCard = ({
|
|
5527
5612
|
ariaLabel,
|
|
5528
5613
|
children,
|
|
5529
5614
|
className,
|
|
5530
5615
|
'data-testid': dataTestId
|
|
5531
5616
|
}) => {
|
|
5532
|
-
const rootClasses = useStylesWithRootClass(
|
|
5533
|
-
return jsx(
|
|
5617
|
+
const rootClasses = useStylesWithRootClass(rootClassName$F, className);
|
|
5618
|
+
return jsx(StyledCard, {
|
|
5534
5619
|
"aria-label": ariaLabel,
|
|
5535
5620
|
classes: {
|
|
5536
5621
|
root: rootClasses
|
|
@@ -5628,7 +5713,7 @@ const StyledCheckbox = styled(Checkbox).withConfig({
|
|
|
5628
5713
|
componentId: "sc-1ubsn6i-0"
|
|
5629
5714
|
})(["", ""], ({
|
|
5630
5715
|
theme
|
|
5631
|
-
}) => css(["&.", "{padding:", ";&.MuiCheckbox-indeterminate{color:
|
|
5716
|
+
}) => 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
5717
|
|
|
5633
5718
|
function DotCheckbox({
|
|
5634
5719
|
ariaLabel,
|
|
@@ -5703,7 +5788,7 @@ const StyledCheckboxGroup = styled.div.withConfig({
|
|
|
5703
5788
|
componentId: "bhb21v-0"
|
|
5704
5789
|
})(["", ""], ({
|
|
5705
5790
|
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.
|
|
5791
|
+
}) => 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
5792
|
|
|
5708
5793
|
const rootClassName$z = 'dot-form-group';
|
|
5709
5794
|
const StyledFormGroup = styled(FormGroup).withConfig({
|
|
@@ -5712,7 +5797,7 @@ const StyledFormGroup = styled(FormGroup).withConfig({
|
|
|
5712
5797
|
})(["", ""], ({
|
|
5713
5798
|
theme,
|
|
5714
5799
|
row
|
|
5715
|
-
}) => css(["&.", "
|
|
5800
|
+
}) => css(["&.", " > *{margin:", ";}"], rootClassName$z, row ? `${theme.spacing(0.5)}` : 0));
|
|
5716
5801
|
|
|
5717
5802
|
function DotFormGroup({
|
|
5718
5803
|
ariaLabel,
|
|
@@ -5851,7 +5936,7 @@ const StyledDialog = styled(Dialog).withConfig({
|
|
|
5851
5936
|
componentId: "sc-1tkr4ex-0"
|
|
5852
5937
|
})(["", ""], ({
|
|
5853
5938
|
theme
|
|
5854
|
-
}) => css(["&.", "{.MuiDialog-paper{
|
|
5939
|
+
}) => 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
5940
|
|
|
5856
5941
|
const DotDialog = ({
|
|
5857
5942
|
ariaLabel,
|
|
@@ -6007,22 +6092,29 @@ const breakpointsGetter$1 = (theme, columnsBreakpoints, columnGap, rowGap) => `$
|
|
|
6007
6092
|
}
|
|
6008
6093
|
${theme.breakpoints.up('xl')} {
|
|
6009
6094
|
column-gap: ${`${columnGap.xl}px`};
|
|
6010
|
-
grid-template-columns: ${frGetter(columnsBreakpoints.
|
|
6095
|
+
grid-template-columns: ${frGetter(columnsBreakpoints.xl)};
|
|
6011
6096
|
row-gap: ${`${rowGap.xl}px`};
|
|
6097
|
+
}
|
|
6098
|
+
${theme.breakpoints.up('xxl')} {
|
|
6099
|
+
column-gap: ${`${columnGap.xxl}px`};
|
|
6100
|
+
grid-template-columns: ${frGetter(columnsBreakpoints.xxl)};
|
|
6101
|
+
row-gap: ${`${rowGap.xxl}px`};
|
|
6012
6102
|
}`;
|
|
6013
6103
|
const defaultGutter = {
|
|
6014
6104
|
xs: 16,
|
|
6015
6105
|
sm: 16,
|
|
6016
6106
|
md: 24,
|
|
6017
6107
|
lg: 24,
|
|
6018
|
-
xl: 24
|
|
6108
|
+
xl: 24,
|
|
6109
|
+
xxl: 24
|
|
6019
6110
|
};
|
|
6020
6111
|
const defaultColumns = {
|
|
6021
6112
|
xs: 4,
|
|
6022
6113
|
sm: 8,
|
|
6023
6114
|
md: 12,
|
|
6024
6115
|
lg: 12,
|
|
6025
|
-
xl: 12
|
|
6116
|
+
xl: 12,
|
|
6117
|
+
xxl: 12
|
|
6026
6118
|
};
|
|
6027
6119
|
const Grid = ({
|
|
6028
6120
|
className,
|
|
@@ -6145,6 +6237,9 @@ const CssGridDebug = ({
|
|
|
6145
6237
|
if (getWidth() > theme.breakpoints.values.xl) {
|
|
6146
6238
|
setColumns(defaultColumns.xl);
|
|
6147
6239
|
}
|
|
6240
|
+
if (getWidth() > theme.breakpoints.values.xxl) {
|
|
6241
|
+
setColumns(defaultColumns.xxl);
|
|
6242
|
+
}
|
|
6148
6243
|
if (getWidth() < theme.breakpoints.values.sm) {
|
|
6149
6244
|
setColumns(defaultColumns.xs);
|
|
6150
6245
|
}
|
|
@@ -6240,7 +6335,7 @@ const StyledRadioGroupWrapper = styled.div.withConfig({
|
|
|
6240
6335
|
componentId: "sc-84g3mq-0"
|
|
6241
6336
|
})(["", ""], ({
|
|
6242
6337
|
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.
|
|
6338
|
+
}) => 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
6339
|
const StyledRadioGroup = styled(RadioGroup).withConfig({
|
|
6245
6340
|
displayName: "RadioGroupstyles__StyledRadioGroup",
|
|
6246
6341
|
componentId: "sc-84g3mq-1"
|
|
@@ -6254,7 +6349,7 @@ const StyledFormContainer = styled.div.withConfig({
|
|
|
6254
6349
|
componentId: "bbovqo-0"
|
|
6255
6350
|
})(["", ""], ({
|
|
6256
6351
|
theme
|
|
6257
|
-
}) => css(["&.", "{margin:", ";.", ",.", ",.", ",.", "{margin:", ";}.", ",.", "{.", "{margin:0;}}}"], rootClassName$v, theme.spacing(3, 0), rootClassName$B, rootClassName$D, rootClassName$
|
|
6352
|
+
}) => 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
6353
|
|
|
6259
6354
|
const DotForm = ({
|
|
6260
6355
|
ariaLabel,
|
|
@@ -6623,7 +6718,9 @@ const rootClassName$s = 'dot-radio';
|
|
|
6623
6718
|
const StyledRadioButton = styled(Radio).withConfig({
|
|
6624
6719
|
displayName: "RadioButtonstyles__StyledRadioButton",
|
|
6625
6720
|
componentId: "brp0sc-0"
|
|
6626
|
-
})(["", ""], (
|
|
6721
|
+
})(["", ""], ({
|
|
6722
|
+
theme
|
|
6723
|
+
}) => css(["&.", "{padding:8px;svg{color:", ";}&.Mui-disabled svg{color:", ";}}"], rootClassName$s, theme.palette.figma.primary.normal, theme.palette.figma.icon.disabled));
|
|
6627
6724
|
|
|
6628
6725
|
function DotRadioButton({
|
|
6629
6726
|
ariaLabel,
|
|
@@ -6765,7 +6862,7 @@ const StyledSwitch = styled(Switch).withConfig({
|
|
|
6765
6862
|
componentId: "eign2a-0"
|
|
6766
6863
|
})(["", ""], ({
|
|
6767
6864
|
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.
|
|
6865
|
+
}) => 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
6866
|
|
|
6770
6867
|
const DotSwitch = ({
|
|
6771
6868
|
ariaLabel,
|
|
@@ -6785,14 +6882,19 @@ const DotSwitch = ({
|
|
|
6785
6882
|
const handleChange = event => {
|
|
6786
6883
|
onChange && onChange(event);
|
|
6787
6884
|
};
|
|
6788
|
-
|
|
6885
|
+
useEffect(() => {
|
|
6886
|
+
if (color) {
|
|
6887
|
+
console.warn('DEPRECATED: `color` prop is deprecated, please remove any usage of it in your application.');
|
|
6888
|
+
}
|
|
6889
|
+
}, []);
|
|
6890
|
+
// Future version of MUI v6 will have proper role="switch" instead of role="checkbox"
|
|
6789
6891
|
// https://github.com/mui/material-ui/pull/17870
|
|
6790
6892
|
const switchControl = jsx(StyledSwitch, {
|
|
6791
6893
|
checked: checked,
|
|
6792
6894
|
classes: {
|
|
6793
6895
|
root: rootClasses
|
|
6794
6896
|
},
|
|
6795
|
-
color:
|
|
6897
|
+
color: "primary",
|
|
6796
6898
|
"data-testid": dataTestId,
|
|
6797
6899
|
disabled: _disabled,
|
|
6798
6900
|
id: id,
|
|
@@ -7385,7 +7487,7 @@ const StyledInlineEdit = styled.div.withConfig({
|
|
|
7385
7487
|
})(["", ""], ({
|
|
7386
7488
|
theme,
|
|
7387
7489
|
fullWidth
|
|
7388
|
-
}) => css(["&.", "{
|
|
7490
|
+
}) => 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
7491
|
typography
|
|
7390
7492
|
}) => typography && `
|
|
7391
7493
|
.MuiInputBase-root {
|
|
@@ -7395,7 +7497,7 @@ const StyledInlineEdit = styled.div.withConfig({
|
|
|
7395
7497
|
letter-spacing: ${theme.typography[typography].letterSpacing || 'normal'};
|
|
7396
7498
|
text-transform: ${theme.typography[typography].textTransform || 'none'};
|
|
7397
7499
|
}
|
|
7398
|
-
`, editTextFieldClassName, theme.spacing(1), theme.palette.
|
|
7500
|
+
`, 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
7501
|
|
|
7400
7502
|
const getCounterAdornment = (currentLength, maxLength, dataTestId) => {
|
|
7401
7503
|
if (currentLength === undefined || typeof currentLength !== 'number' || !maxLength || typeof maxLength !== 'number') return;
|
|
@@ -7686,7 +7788,7 @@ const StyledNavigationRail = styled.div.withConfig({
|
|
|
7686
7788
|
})(["", ""], ({
|
|
7687
7789
|
theme,
|
|
7688
7790
|
railItemPosition
|
|
7689
|
-
}) => css(["&.", "{background
|
|
7791
|
+
}) => 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
7792
|
|
|
7691
7793
|
const MAX_ALLOWED_ITEMS = 7;
|
|
7692
7794
|
const DotNavigationRail = ({
|
|
@@ -7755,7 +7857,7 @@ const StyledPill = styled(Chip).withConfig({
|
|
|
7755
7857
|
componentId: "l7oxi2-0"
|
|
7756
7858
|
})(["", ""], ({
|
|
7757
7859
|
theme
|
|
7758
|
-
}) => css(["&.", "{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}&.MuiChip-outlined{&.error{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.success{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.warning{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.in-progress{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}}&.MuiChip-filled{&.error{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.success{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.warning{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.in-progress{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}}}"], rootClassName$o, ({
|
|
7860
|
+
}) => css(["&.", "{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";margin:", ";}&.MuiChip-sizeSmall .dot-icon{margin-left:5px;}&.MuiChip-outlined{&.error{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.success{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.warning{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.in-progress{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}}&.MuiChip-filled{&.error{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.success{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.warning{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.in-progress{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}}}"], rootClassName$o, ({
|
|
7759
7861
|
backgroundcolor
|
|
7760
7862
|
}) => {
|
|
7761
7863
|
return backgroundcolor || theme.palette.grey[200];
|
|
@@ -7771,7 +7873,7 @@ const StyledPill = styled(Chip).withConfig({
|
|
|
7771
7873
|
labelcolor
|
|
7772
7874
|
}) => {
|
|
7773
7875
|
return labelcolor ? labelcolor : theme.palette.layer.n700;
|
|
7774
|
-
}, theme.palette.error[100], theme.palette.error.main, theme.palette.layer.n700, theme.palette.error.main, theme.palette.success[100], theme.palette.success.main, theme.palette.layer.n700, theme.palette.success.main, theme.palette.warning[100], theme.palette.warning.main, theme.palette.layer.n700, theme.palette.warning.main, theme.palette.primary[100], theme.palette.primary.main, theme.palette.layer.n700, theme.palette.primary.main, theme.palette.error.main, theme.palette.error.main, theme.palette.layer.n0, theme.palette.layer.n0, theme.palette.success.main, theme.palette.success.main, theme.palette.layer.n0, theme.palette.layer.n0, theme.palette.warning.main, theme.palette.warning.main, theme.palette.layer.n700, theme.palette.layer.n700, theme.palette.primary.main, theme.palette.primary.main, theme.palette.layer.n0, theme.palette.layer.n0));
|
|
7876
|
+
}, theme.spacing(0, -0.5, 0, 1), theme.palette.error[100], theme.palette.error.main, theme.palette.layer.n700, theme.palette.error.main, theme.palette.success[100], theme.palette.success.main, theme.palette.layer.n700, theme.palette.success.main, theme.palette.warning[100], theme.palette.warning.main, theme.palette.layer.n700, theme.palette.warning.main, theme.palette.primary[100], theme.palette.primary.main, theme.palette.layer.n700, theme.palette.primary.main, theme.palette.error.main, theme.palette.error.main, theme.palette.layer.n0, theme.palette.layer.n0, theme.palette.success.main, theme.palette.success.main, theme.palette.layer.n0, theme.palette.layer.n0, theme.palette.warning.main, theme.palette.warning.main, theme.palette.layer.n700, theme.palette.layer.n700, theme.palette.primary.main, theme.palette.primary.main, theme.palette.layer.n0, theme.palette.layer.n0));
|
|
7775
7877
|
|
|
7776
7878
|
const DotPill = ({
|
|
7777
7879
|
ariaLabel,
|
|
@@ -7810,7 +7912,7 @@ const StyledSkeleton = styled(Skeleton).withConfig({
|
|
|
7810
7912
|
componentId: "sc-17ayzv5-0"
|
|
7811
7913
|
})(["", ""], ({
|
|
7812
7914
|
theme
|
|
7813
|
-
}) => css(["&.", "{background-color:", ";}"], rootClassName$n, theme.palette.figma.
|
|
7915
|
+
}) => css(["&.", "{background-color:", ";}"], rootClassName$n, theme.palette.figma.border.darker));
|
|
7814
7916
|
|
|
7815
7917
|
const DotSkeleton = ({
|
|
7816
7918
|
ariaLabel,
|
|
@@ -7842,7 +7944,7 @@ const StyledSnackbar = styled(Snackbar).withConfig({
|
|
|
7842
7944
|
componentId: "sc-1huxoy3-0"
|
|
7843
7945
|
})(["", ""], ({
|
|
7844
7946
|
theme
|
|
7845
|
-
}) => css(["&.", "{.
|
|
7947
|
+
}) => 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
7948
|
|
|
7847
7949
|
function addAutoHideDuration(severity) {
|
|
7848
7950
|
return severity === 'error' ? null : 10000;
|
|
@@ -7987,7 +8089,7 @@ const StyledSplitButtonGroup = styled(ButtonGroup).withConfig({
|
|
|
7987
8089
|
componentId: "ild520-0"
|
|
7988
8090
|
})(["", ""], ({
|
|
7989
8091
|
theme
|
|
7990
|
-
}) => css(["&.", "{&.outlined,&.text{.expand-button{border-left:none;.dot-icon{color:", ";}}}&.
|
|
8092
|
+
}) => 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
8093
|
const StyledMenu$2 = styled(DotMenu).withConfig({
|
|
7992
8094
|
displayName: "SplitButtonstyles__StyledMenu",
|
|
7993
8095
|
componentId: "ild520-1"
|
|
@@ -8087,14 +8189,14 @@ const StyledStepper = styled.div.withConfig({
|
|
|
8087
8189
|
componentId: "sc-1qka0yq-0"
|
|
8088
8190
|
})(["", ""], ({
|
|
8089
8191
|
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;}.
|
|
8192
|
+
}) => 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
8193
|
const ScrollbarContainer = styled.div.withConfig({
|
|
8092
8194
|
displayName: "Stepperstyles__ScrollbarContainer",
|
|
8093
8195
|
componentId: "sc-1qka0yq-1"
|
|
8094
8196
|
})(["", ""], ({
|
|
8095
8197
|
theme,
|
|
8096
8198
|
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.
|
|
8199
|
+
}) => 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
8200
|
const StepContentWrapper = styled.div.withConfig({
|
|
8099
8201
|
displayName: "Stepperstyles__StepContentWrapper",
|
|
8100
8202
|
componentId: "sc-1qka0yq-2"
|
|
@@ -8111,7 +8213,7 @@ const StepActionsContainer = styled.div.withConfig({
|
|
|
8111
8213
|
})(["", ""], ({
|
|
8112
8214
|
theme,
|
|
8113
8215
|
displayCancelButton
|
|
8114
|
-
}) => css(["padding:", ";position:sticky;position:-webkit-sticky;bottom:0;
|
|
8216
|
+
}) => 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
8217
|
|
|
8116
8218
|
const defaultCellProps = {
|
|
8117
8219
|
center: false,
|
|
@@ -8365,7 +8467,7 @@ const StyledTablePagination = styled.div.withConfig({
|
|
|
8365
8467
|
})(["", ""], ({
|
|
8366
8468
|
theme,
|
|
8367
8469
|
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.
|
|
8470
|
+
}) => 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
8471
|
|
|
8370
8472
|
const ROWS_PER_PAGE_OPTIONS = [10, 25, 50, 100, 150, 200];
|
|
8371
8473
|
/** This component wraps the TablePagination component from @material-ui. */
|
|
@@ -8423,13 +8525,13 @@ const StyledPaper = styled(Paper).withConfig({
|
|
|
8423
8525
|
componentId: "s95z6y-0"
|
|
8424
8526
|
})(["", ""], ({
|
|
8425
8527
|
theme
|
|
8426
|
-
}) => css(["&.", "{
|
|
8528
|
+
}) => 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
8529
|
const StyledTableContainer = styled(TableContainer).withConfig({
|
|
8428
8530
|
displayName: "Tablestyles__StyledTableContainer",
|
|
8429
8531
|
componentId: "s95z6y-1"
|
|
8430
8532
|
})(["", ""], ({
|
|
8431
8533
|
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.
|
|
8534
|
+
}) => 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
8535
|
const StyledMenu$1 = styled(DotMenu).withConfig({
|
|
8434
8536
|
displayName: "Tablestyles__StyledMenu",
|
|
8435
8537
|
componentId: "s95z6y-2"
|
|
@@ -8523,7 +8625,9 @@ const rootClassName$f = 'dot-td';
|
|
|
8523
8625
|
const StyledTableCell = styled(TableCell).withConfig({
|
|
8524
8626
|
displayName: "TableCellstyles__StyledTableCell",
|
|
8525
8627
|
componentId: "e84k25-0"
|
|
8526
|
-
})(["", ""], (
|
|
8628
|
+
})(["", ""], ({
|
|
8629
|
+
theme
|
|
8630
|
+
}) => 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
8631
|
|
|
8528
8632
|
/**
|
|
8529
8633
|
* A wrapper component around the TableCell component from @material-ui.
|
|
@@ -8597,6 +8701,36 @@ const DotBodyCell = ({
|
|
|
8597
8701
|
})
|
|
8598
8702
|
});
|
|
8599
8703
|
}
|
|
8704
|
+
if (value === null || value === void 0 ? void 0 : value.mainText) {
|
|
8705
|
+
const {
|
|
8706
|
+
avatarIcon,
|
|
8707
|
+
avatarImageSrc,
|
|
8708
|
+
mainText,
|
|
8709
|
+
secondaryText
|
|
8710
|
+
} = value;
|
|
8711
|
+
return jsxs("div", {
|
|
8712
|
+
className: "cell-avatar-with-text",
|
|
8713
|
+
children: [(avatarImageSrc || avatarIcon) && jsx(DotAvatar, {
|
|
8714
|
+
alt: mainText,
|
|
8715
|
+
className: "cell-avatar",
|
|
8716
|
+
"data-testid": "cell-avatar",
|
|
8717
|
+
iconId: avatarIcon,
|
|
8718
|
+
imageSrc: avatarImageSrc,
|
|
8719
|
+
size: "small",
|
|
8720
|
+
type: avatarImageSrc ? 'image' : 'icon'
|
|
8721
|
+
}), jsxs("div", {
|
|
8722
|
+
className: "cell-text",
|
|
8723
|
+
children: [jsx(DotTypography, {
|
|
8724
|
+
variant: "body1",
|
|
8725
|
+
children: mainText
|
|
8726
|
+
}), secondaryText && jsx(DotTypography, {
|
|
8727
|
+
"data-testid": "cell-secondary-text",
|
|
8728
|
+
variant: "body2",
|
|
8729
|
+
children: secondaryText
|
|
8730
|
+
})]
|
|
8731
|
+
})]
|
|
8732
|
+
});
|
|
8733
|
+
}
|
|
8600
8734
|
return getFormattedTableCellValue(value, typography);
|
|
8601
8735
|
};
|
|
8602
8736
|
return jsx(StyledTableCell, {
|
|
@@ -8633,7 +8767,7 @@ const StyledTableRowStyles = styled(TableRow).withConfig({
|
|
|
8633
8767
|
componentId: "a4fx2l-0"
|
|
8634
8768
|
})(["", ""], ({
|
|
8635
8769
|
theme
|
|
8636
|
-
}) => css(["&.", "{&.selected{background-color:", ";}&:hover{background-color:", ";}}"], rootClassName$e, theme.palette.primary
|
|
8770
|
+
}) => 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
8771
|
|
|
8638
8772
|
const TABLE_TYPOGRAPHY_VARIANT = 'body1';
|
|
8639
8773
|
const TABLE_DEFAULT_SKELETON_ROWS = 4;
|
|
@@ -8644,7 +8778,7 @@ const StyledTableHeaderCheckboxCell = styled(TableCell).withConfig({
|
|
|
8644
8778
|
componentId: "ymqg8x-0"
|
|
8645
8779
|
})(["", ""], ({
|
|
8646
8780
|
theme
|
|
8647
|
-
}) => css(["&.", "{
|
|
8781
|
+
}) => 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
8782
|
|
|
8649
8783
|
const DotHeaderCheckboxCell = ({
|
|
8650
8784
|
ariaLabel,
|
|
@@ -8690,7 +8824,7 @@ const StyledTableHeaderCell = styled(TableCell).withConfig({
|
|
|
8690
8824
|
componentId: "nko9j-0"
|
|
8691
8825
|
})(["", ""], ({
|
|
8692
8826
|
theme
|
|
8693
|
-
}) => css(["&.", "{
|
|
8827
|
+
}) => 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
8828
|
|
|
8695
8829
|
/**
|
|
8696
8830
|
* A wrapper component around the TableCell component from @material-ui. This component should only
|
|
@@ -8793,8 +8927,10 @@ const DotHeaderRow = ({
|
|
|
8793
8927
|
classes: {
|
|
8794
8928
|
root: 'dot-tr'
|
|
8795
8929
|
},
|
|
8796
|
-
children: [multiSelectHeader && renderMultiSelectCell(), collapsibleTableOptions && jsx(
|
|
8797
|
-
"aria-hidden": "true"
|
|
8930
|
+
children: [multiSelectHeader && renderMultiSelectCell(), collapsibleTableOptions && jsx(DotHeaderCell, {
|
|
8931
|
+
"aria-hidden": "true",
|
|
8932
|
+
typography: typography,
|
|
8933
|
+
uid: CreateUUID()
|
|
8798
8934
|
}), columns.map(cell => {
|
|
8799
8935
|
return jsx(DotHeaderCell, {
|
|
8800
8936
|
align: cell.align,
|
|
@@ -8859,7 +8995,7 @@ const StyledCollapsibleTableWrapper = styled.div.withConfig({
|
|
|
8859
8995
|
componentId: "sc-7uzf9c-0"
|
|
8860
8996
|
})(["", ""], ({
|
|
8861
8997
|
theme
|
|
8862
|
-
}) => css(["&.", "{
|
|
8998
|
+
}) => 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
8999
|
|
|
8864
9000
|
const DotCollapsibleTable = ({
|
|
8865
9001
|
collapsibleTableBody,
|
|
@@ -8942,7 +9078,7 @@ const StyledTableBodyExpandCollapseCell = styled(TableCell).withConfig({
|
|
|
8942
9078
|
componentId: "jtyppp-0"
|
|
8943
9079
|
})(["", ""], ({
|
|
8944
9080
|
theme
|
|
8945
|
-
}) => css(["&.", "{
|
|
9081
|
+
}) => css(["&.", "{width:", ";padding:", ";.dot-form-control-label{margin:0;}}"], ExpandCollapseCellClassName, theme.spacing(5), theme.spacing(0, 1)));
|
|
8946
9082
|
|
|
8947
9083
|
const ExpandCollapseCell = ({
|
|
8948
9084
|
ariaLabel,
|
|
@@ -8982,7 +9118,7 @@ const StyledTableBodyCheckboxCell = styled(TableCell).withConfig({
|
|
|
8982
9118
|
componentId: "ebk3sz-0"
|
|
8983
9119
|
})(["", ""], ({
|
|
8984
9120
|
theme
|
|
8985
|
-
}) => css(["&.", "{
|
|
9121
|
+
}) => css(["&.", "{padding:", ";width:", ";.dot-form-control-label{margin:0;}}"], rootClassName$b, theme.spacing(0, 1), theme.spacing(5)));
|
|
8986
9122
|
|
|
8987
9123
|
const DotBodyCheckboxCell = ({
|
|
8988
9124
|
ariaLabel,
|
|
@@ -9182,7 +9318,7 @@ const StyledTableSelectionToolbar = styled(DotActionToolbar).withConfig({
|
|
|
9182
9318
|
componentId: "qpx3y9-0"
|
|
9183
9319
|
})(["", ""], ({
|
|
9184
9320
|
theme
|
|
9185
|
-
}) => css(["&.", "{display:flex;align-items:center;justify-content:space-between;background
|
|
9321
|
+
}) => 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
9322
|
|
|
9187
9323
|
const DotTableSelectionToolbar = ({
|
|
9188
9324
|
ariaLabel,
|
|
@@ -9204,12 +9340,9 @@ const DotTableSelectionToolbar = ({
|
|
|
9204
9340
|
className: "dot-selected-rows-heading",
|
|
9205
9341
|
variant: "h3",
|
|
9206
9342
|
children: [selectedRowsNumber, " selected"]
|
|
9207
|
-
}), onClearAll && jsxs(
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
children: "|"
|
|
9211
|
-
}), jsx(DotButton, {
|
|
9212
|
-
type: "text",
|
|
9343
|
+
}), onClearAll && jsxs(DotTypography, {
|
|
9344
|
+
className: "dot-selected-rows-divider",
|
|
9345
|
+
children: ["| ", jsx(DotLink, {
|
|
9213
9346
|
onClick: onClearAll,
|
|
9214
9347
|
children: "Clear all"
|
|
9215
9348
|
})]
|
|
@@ -9222,10 +9355,18 @@ const DotTableSelectionToolbar = ({
|
|
|
9222
9355
|
};
|
|
9223
9356
|
|
|
9224
9357
|
const sortComparator = (a, b, orderBy) => {
|
|
9225
|
-
|
|
9358
|
+
var _a, _b;
|
|
9359
|
+
let valueA = a.rowData[orderBy];
|
|
9360
|
+
let valueB = b.rowData[orderBy];
|
|
9361
|
+
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)) {
|
|
9362
|
+
// use mainText value for sort in case when data for the table cell is of type CustomCellDataWrapper
|
|
9363
|
+
valueA = a.rowData[orderBy].mainText;
|
|
9364
|
+
valueB = b.rowData[orderBy].mainText;
|
|
9365
|
+
}
|
|
9366
|
+
if (valueB < valueA) {
|
|
9226
9367
|
return -1;
|
|
9227
9368
|
}
|
|
9228
|
-
if (
|
|
9369
|
+
if (valueB > valueA) {
|
|
9229
9370
|
return 1;
|
|
9230
9371
|
}
|
|
9231
9372
|
return 0;
|
|
@@ -9586,12 +9727,12 @@ const StyledTabs = styled(Tabs).withConfig({
|
|
|
9586
9727
|
componentId: "sc-1pmrz8k-0"
|
|
9587
9728
|
})(["", ""], ({
|
|
9588
9729
|
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;}.
|
|
9730
|
+
}) => 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
9731
|
|
|
9591
9732
|
const DotTabs = ({
|
|
9592
9733
|
centered: _centered = false,
|
|
9593
9734
|
className,
|
|
9594
|
-
color
|
|
9735
|
+
color,
|
|
9595
9736
|
'data-testid': dataTestId,
|
|
9596
9737
|
initialValue: _initialValue = 0,
|
|
9597
9738
|
onChange,
|
|
@@ -9601,6 +9742,11 @@ const DotTabs = ({
|
|
|
9601
9742
|
}) => {
|
|
9602
9743
|
const [value, setValue] = useState(_initialValue);
|
|
9603
9744
|
const rootClasses = useStylesWithRootClass(rootClassName$8, className);
|
|
9745
|
+
useEffect(() => {
|
|
9746
|
+
if (color) {
|
|
9747
|
+
console.warn('DEPRECATED: `color` prop is deprecated in `<DotTabs>`, please remove any usage of it in your application.');
|
|
9748
|
+
}
|
|
9749
|
+
}, []);
|
|
9604
9750
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9605
9751
|
const handleChange = (_event, val) => {
|
|
9606
9752
|
setValue(val);
|
|
@@ -9637,10 +9783,10 @@ const DotTabs = ({
|
|
|
9637
9783
|
root: rootClasses
|
|
9638
9784
|
},
|
|
9639
9785
|
"data-testid": dataTestId,
|
|
9640
|
-
indicatorColor:
|
|
9786
|
+
indicatorColor: "primary",
|
|
9641
9787
|
onChange: handleChange,
|
|
9642
9788
|
scrollButtons: scrollButtons,
|
|
9643
|
-
textColor:
|
|
9789
|
+
textColor: "primary",
|
|
9644
9790
|
value: value,
|
|
9645
9791
|
variant: _variant,
|
|
9646
9792
|
children: tabArray
|
|
@@ -9655,13 +9801,13 @@ const StyledFileUploadContainer = styled.div.withConfig({
|
|
|
9655
9801
|
componentId: "sc-1q8bcxy-0"
|
|
9656
9802
|
})(["", ""], ({
|
|
9657
9803
|
theme
|
|
9658
|
-
}) => css(["&.", "{.dot-max-files-message.dot-max-files-reached{color:", ";}}"], containerClassName$2, theme.palette.
|
|
9804
|
+
}) => css(["&.", "{.dot-max-files-message.dot-max-files-reached{color:", ";}.dot-list{padding:0;}}"], containerClassName$2, theme.palette.figma.destructive.normal));
|
|
9659
9805
|
const StyledFileUpload = styled.div.withConfig({
|
|
9660
9806
|
displayName: "FileUploadstyles__StyledFileUpload",
|
|
9661
9807
|
componentId: "sc-1q8bcxy-1"
|
|
9662
9808
|
})(["", ""], ({
|
|
9663
9809
|
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.
|
|
9810
|
+
}) => 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
9811
|
|
|
9666
9812
|
const rootClassName$6 = 'dot-file-list-item';
|
|
9667
9813
|
const StyledFileListItem = styled(StyledListItem).withConfig({
|
|
@@ -9669,7 +9815,7 @@ const StyledFileListItem = styled(StyledListItem).withConfig({
|
|
|
9669
9815
|
componentId: "sc-6mp1tz-0"
|
|
9670
9816
|
})(["", ""], ({
|
|
9671
9817
|
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.
|
|
9818
|
+
}) => 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
9819
|
|
|
9674
9820
|
const DotFileListItem = ({
|
|
9675
9821
|
ariaLabel,
|
|
@@ -9961,7 +10107,7 @@ const DotPopper = ({
|
|
|
9961
10107
|
open,
|
|
9962
10108
|
placement
|
|
9963
10109
|
}) => {
|
|
9964
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
10110
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Z, className);
|
|
9965
10111
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9966
10112
|
const handleClickAway = event => {
|
|
9967
10113
|
if (onClickAway && (!anchorEl || !anchorEl.contains(event.currentTarget))) {
|
|
@@ -10165,24 +10311,25 @@ var updateLocale$1 = {exports: {}};
|
|
|
10165
10311
|
var updateLocale = updateLocale$1.exports;
|
|
10166
10312
|
|
|
10167
10313
|
const rootClassName$2 = 'dot-date-picker';
|
|
10314
|
+
const popperClassName = 'dot-date-picker-popper';
|
|
10168
10315
|
const containerClassName$1 = 'dot-date-picker-container';
|
|
10169
10316
|
const rectanglePickersDayClassName = 'dot-rectangle-pickers-day';
|
|
10170
10317
|
const StyledDatePickerContainer = styled.div.withConfig({
|
|
10171
10318
|
displayName: "DatePickerstyles__StyledDatePickerContainer",
|
|
10172
10319
|
componentId: "sc-1to4suu-0"
|
|
10173
|
-
})(["&.", " .full-width{width:100%;}"], rootClassName$2);
|
|
10320
|
+
})(["", ""], () => css(["&.", " .full-width{width:100%;}"], rootClassName$2));
|
|
10174
10321
|
const StyledDatePicker = styled(DatePicker).withConfig({
|
|
10175
10322
|
displayName: "DatePickerstyles__StyledDatePicker",
|
|
10176
10323
|
componentId: "sc-1to4suu-1"
|
|
10177
10324
|
})(["", ""], ({
|
|
10178
10325
|
theme
|
|
10179
|
-
}) => css(["&.", "{", ";.Mui-disabled.MuiInputBase-root,&.read-only .MuiInputBase-root{", ";}.MuiFormLabel-root{color:", ";}}"], rootClassName$2, pickerInputStyles(theme), readOnlyStyles(theme), theme.palette.
|
|
10326
|
+
}) => 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
10327
|
const StyledPickersDay = styled(PickersDay).withConfig({
|
|
10181
10328
|
displayName: "DatePickerstyles__StyledPickersDay",
|
|
10182
10329
|
componentId: "sc-1to4suu-2"
|
|
10183
10330
|
})(["", ""], ({
|
|
10184
10331
|
theme
|
|
10185
|
-
}) => css(["&.", "{border-radius:", ";&.MuiPickersDay-today{border:1px solid ", ";}}"], rectanglePickersDayClassName, theme.spacing(0.5), theme.palette.primary.
|
|
10332
|
+
}) => 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
10333
|
|
|
10187
10334
|
const RectanglePickersDay = pickersDayProps => {
|
|
10188
10335
|
return jsx(StyledPickersDay, Object.assign({}, pickersDayProps, {
|
|
@@ -10364,6 +10511,7 @@ const DotDatePicker = ({
|
|
|
10364
10511
|
disableEnforceFocus: true
|
|
10365
10512
|
},
|
|
10366
10513
|
popper: {
|
|
10514
|
+
className: popperClassName,
|
|
10367
10515
|
disablePortal: _disablePortal,
|
|
10368
10516
|
onKeyDown: onKeyDown && handleKeyDown(DatePickerKeydownContext.Popper)
|
|
10369
10517
|
}
|
|
@@ -10797,7 +10945,7 @@ const StyledCarousel = styled.div.withConfig({
|
|
|
10797
10945
|
})(["", ""], ({
|
|
10798
10946
|
backgroundColor,
|
|
10799
10947
|
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{
|
|
10948
|
+
}) => 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
10949
|
|
|
10802
10950
|
const DotCarousel = ({
|
|
10803
10951
|
animation: _animation = 'fade',
|
|
@@ -10967,4 +11115,4 @@ const DotCarousel = ({
|
|
|
10967
11115
|
});
|
|
10968
11116
|
};
|
|
10969
11117
|
|
|
10970
|
-
export { ApiError, Cell, CreateUUID, CssCell, CssGrid, CssGridDebug, DatePickerKeydownContext, Daytime, DotAccordion, DotActionToolbar, DotAlertBanner, DotAppLogo, DotAppSwitcher, DotAppToolbar, DotAutoComplete, DotAvatar, DotAvatarGroup, DotBadge, DotBreadcrumbs, DotButton, DotButtonToggle, DotCard, DotCardContent, DotCardFooter, DotCardHeader, DotCarousel, DotCheckbox, DotCheckboxGroup, DotChip, DotClickAwayListener, DotConfirmationDialog, DotCopyButton, DotCoreApiProvider, DotDatePicker, DotDialog, DotDivider, DotDraggableList, DotDrawer, DotDynamicForm, DotEmptyState, DotFileListItem, DotFileUpload, DotForm, DotFormGroup, DotHeaderRow, DotIcon, DotIconButton, DotInlineEdit, DotInputSelect, DotInputText, DotLinearProgress, DotLink, DotList, DotMenu, DotNavigationRail, DotPill, DotPopper, DotProgress, DotProgressButton, DotRadioButton, DotRadioGroup, DotSidebar, DotSkeleton, DotSnackbar, DotSnackbarContainer, DotSnackbarProvider, DotSplitButton, DotStepper, DotSwitch, DotTable, DotTableAction, DotTableActions, DotTablePagination, DotTabs, DotThemeProvider, DotTimePicker, DotTooltip, DotTruncateWithTooltip, DotTypography, avatarColors, checkIfValidDate, darkFigmaColors, lightThemeColors as lightColors, lightFigmaColors, mockScrollIntoView, parseAutoCompleteValue, variables as themeVariables, typographyOptions, useDotCoreApiContext, useDotSnackbarContext };
|
|
11118
|
+
export { ApiError, Cell, CreateUUID, CssCell, CssGrid, CssGridDebug, DatePickerKeydownContext, Daytime, DotAccordion, DotActionToolbar, DotAlertBanner, DotAppLogo, DotAppSwitcher, DotAppToolbar, DotAutoComplete, DotAvatar, DotAvatarGroup, DotBadge, DotBreadcrumbs, DotButton, DotButtonToggle, DotCard, DotCardContent, DotCardFooter, DotCardHeader, DotCarousel, DotCheckbox, DotCheckboxGroup, DotChip, DotClickAwayListener, DotConfirmationDialog, DotCopyButton, DotCoreApiProvider, DotDatePicker, DotDialog, DotDivider, DotDraggableList, DotDrawer, DotDynamicForm, DotEmptyState, DotFileListItem, DotFileUpload, DotForm, DotFormGroup, DotHeaderRow, DotIcon, DotIconButton, DotInlineEdit, DotInputSelect, DotInputText, DotLinearProgress, DotLink, DotList, DotMenu, DotNavigationRail, DotPill, DotPopper, DotProgress, DotProgressButton, DotRadioButton, DotRadioGroup, DotSidebar, DotSkeleton, DotSnackbar, DotSnackbarContainer, DotSnackbarProvider, DotSplitButton, DotStepper, DotSwitch, DotTable, DotTableAction, DotTableActions, DotTablePagination, DotTabs, DotThemeProvider, DotTimePicker, DotTooltip, DotTruncateWithTooltip, DotTypography, avatarColors, breakpointOptions, checkIfValidDate, darkFigmaColors, lightThemeColors as lightColors, lightFigmaColors, mockScrollIntoView, parseAutoCompleteValue, variables as themeVariables, typographyOptions, useDotCoreApiContext, useDotSnackbarContext };
|