@digital-ai/dot-components 3.2.1 → 3.3.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 +412 -246
- package/package.json +1 -1
- package/src/lib/components/chip/Chip.d.ts +3 -1
- package/src/lib/components/list/ListItem.d.ts +1 -1
- package/src/lib/components/list/utils/models.d.ts +5 -2
- package/src/lib/components/table/TablePagination.d.ts +3 -1
- package/src/lib/components/table/TablePaginationCustomActions.d.ts +2 -0
- package/src/lib/components/table/TablePaginationCustomActions.styles.d.ts +2 -0
package/index.esm.js
CHANGED
|
@@ -104,12 +104,12 @@ const DotTooltip = ({
|
|
|
104
104
|
}) : children;
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
const rootClassName$
|
|
107
|
+
const rootClassName$1a = 'dot-icon';
|
|
108
108
|
const StyledIcon = styled(Icon)`
|
|
109
109
|
${({
|
|
110
110
|
theme
|
|
111
111
|
}) => css`
|
|
112
|
-
&.${rootClassName$
|
|
112
|
+
&.${rootClassName$1a} {
|
|
113
113
|
color: ${theme.palette.figma.icon.black};
|
|
114
114
|
font-size: 20px;
|
|
115
115
|
|
|
@@ -146,7 +146,7 @@ const DotIcon = ({
|
|
|
146
146
|
iconId,
|
|
147
147
|
tooltip
|
|
148
148
|
}) => {
|
|
149
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
149
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1a, className);
|
|
150
150
|
return jsx(DotTooltip, {
|
|
151
151
|
title: tooltip,
|
|
152
152
|
children: jsx(StyledIcon, {
|
|
@@ -207,7 +207,7 @@ const DotTypography = ({
|
|
|
207
207
|
});
|
|
208
208
|
};
|
|
209
209
|
|
|
210
|
-
const rootClassName$
|
|
210
|
+
const rootClassName$19 = 'dot-accordion';
|
|
211
211
|
const summaryClassName = 'dot-accordion-summary';
|
|
212
212
|
const detailClassName = 'dot-accordion-details';
|
|
213
213
|
const StyledAccordion = styled(Accordion)`
|
|
@@ -218,7 +218,7 @@ const StyledAccordion = styled(Accordion)`
|
|
|
218
218
|
background: ${theme.palette.figma.background.level1.white};
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
&.${rootClassName$
|
|
221
|
+
&.${rootClassName$19} .${summaryClassName} {
|
|
222
222
|
align-items: center;
|
|
223
223
|
background: ${theme.palette.figma.background.level1.white};
|
|
224
224
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -263,7 +263,7 @@ const DotAccordion = ({
|
|
|
263
263
|
ariaLabel,
|
|
264
264
|
children,
|
|
265
265
|
className,
|
|
266
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
266
|
+
'data-pendoid': dataPendoId = rootClassName$19,
|
|
267
267
|
'data-testid': dataTestId = 'dot-accordion',
|
|
268
268
|
disabled = false,
|
|
269
269
|
expanded,
|
|
@@ -274,7 +274,7 @@ const DotAccordion = ({
|
|
|
274
274
|
summary,
|
|
275
275
|
noWrap = true
|
|
276
276
|
}) => {
|
|
277
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
277
|
+
const rootClasses = useStylesWithRootClass(rootClassName$19, className);
|
|
278
278
|
const [elevation, setElevation] = useState();
|
|
279
279
|
useEffect(() => {
|
|
280
280
|
if (onChange && expanded === undefined) {
|
|
@@ -390,7 +390,7 @@ const readOnlyStyles = theme => css`
|
|
|
390
390
|
}
|
|
391
391
|
`;
|
|
392
392
|
|
|
393
|
-
const rootClassName$
|
|
393
|
+
const rootClassName$18 = 'dot-text-field';
|
|
394
394
|
const rootSelectClassName = 'dot-select-field';
|
|
395
395
|
const labelClassName = 'dot-input-label';
|
|
396
396
|
const errorClassName = 'dot-error';
|
|
@@ -438,7 +438,7 @@ const StyledTextField = styled(TextField)`
|
|
|
438
438
|
theme,
|
|
439
439
|
InputProps
|
|
440
440
|
}) => css`
|
|
441
|
-
&.${rootClassName$
|
|
441
|
+
&.${rootClassName$18} {
|
|
442
442
|
.MuiInputBase-root {
|
|
443
443
|
margin-bottom: 0;
|
|
444
444
|
}
|
|
@@ -482,7 +482,7 @@ const StyledTextField = styled(TextField)`
|
|
|
482
482
|
margin-right: ${theme.spacing(2)};
|
|
483
483
|
}
|
|
484
484
|
|
|
485
|
-
&.${rootSelectClassName}, &.${rootClassName$
|
|
485
|
+
&.${rootSelectClassName}, &.${rootClassName$18} {
|
|
486
486
|
.${adornmentIconClassName} {
|
|
487
487
|
color: ${theme.palette.figma.icon.black};
|
|
488
488
|
p {
|
|
@@ -573,15 +573,15 @@ const StyledTextField = styled(TextField)`
|
|
|
573
573
|
`}
|
|
574
574
|
`;
|
|
575
575
|
|
|
576
|
-
const rootClassName$
|
|
576
|
+
const rootClassName$17 = 'dot-action-toolbar';
|
|
577
577
|
const StyledToolbar = styled(Toolbar)`
|
|
578
578
|
${({
|
|
579
579
|
theme
|
|
580
580
|
}) => css`
|
|
581
|
-
&.${rootClassName$
|
|
581
|
+
&.${rootClassName$17} {
|
|
582
582
|
border-bottom: 1px solid ${theme.palette.figma.border.default};
|
|
583
583
|
|
|
584
|
-
.${rootClassName$
|
|
584
|
+
.${rootClassName$18} .MuiInputBase-root {
|
|
585
585
|
margin-bottom: 0;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
@@ -595,7 +595,7 @@ const DotActionToolbar = ({
|
|
|
595
595
|
'data-testid': dataTestId,
|
|
596
596
|
variant = 'dense'
|
|
597
597
|
}) => {
|
|
598
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
598
|
+
const rootClasses = useStylesWithRootClass(rootClassName$17, className);
|
|
599
599
|
return jsx(StyledToolbar, {
|
|
600
600
|
"aria-label": ariaLabel,
|
|
601
601
|
className: rootClasses,
|
|
@@ -1663,12 +1663,12 @@ const renderNodeOrTypography = (content, typographyVariant = 'body1') => {
|
|
|
1663
1663
|
const checkIfArrowUpPressed = event => event.key === 'ArrowUp';
|
|
1664
1664
|
const checkIfArrowDownPressed = event => event.key === 'ArrowDown';
|
|
1665
1665
|
|
|
1666
|
-
const rootClassName$
|
|
1666
|
+
const rootClassName$16 = 'dot-alert-banner';
|
|
1667
1667
|
const StyledAlertBanner = styled(Alert)`
|
|
1668
1668
|
${({
|
|
1669
1669
|
theme
|
|
1670
1670
|
}) => css`
|
|
1671
|
-
&.${rootClassName$
|
|
1671
|
+
&.${rootClassName$16} {
|
|
1672
1672
|
align-items: center;
|
|
1673
1673
|
box-sizing: border-box;
|
|
1674
1674
|
min-height: 48px;
|
|
@@ -1703,7 +1703,7 @@ const DotAlertBanner = ({
|
|
|
1703
1703
|
ariaLabel,
|
|
1704
1704
|
children,
|
|
1705
1705
|
className,
|
|
1706
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
1706
|
+
'data-pendoid': dataPendoId = rootClassName$16,
|
|
1707
1707
|
'data-testid': dataTestId,
|
|
1708
1708
|
onClose,
|
|
1709
1709
|
roundedCorners = true,
|
|
@@ -1711,7 +1711,7 @@ const DotAlertBanner = ({
|
|
|
1711
1711
|
textVariant = 'body1',
|
|
1712
1712
|
width
|
|
1713
1713
|
}) => {
|
|
1714
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1714
|
+
const rootClasses = useStylesWithRootClass(rootClassName$16, severity, className);
|
|
1715
1715
|
/* For simple string use default component, for everything else use 'div' */
|
|
1716
1716
|
const typographyComponent = isString$1(children) ? undefined : 'div';
|
|
1717
1717
|
return jsx(StyledAlertBanner, {
|
|
@@ -2360,7 +2360,7 @@ const useDotCoreApiContext = () => {
|
|
|
2360
2360
|
return useContext(DotCoreApiContext);
|
|
2361
2361
|
};
|
|
2362
2362
|
|
|
2363
|
-
const rootClassName$
|
|
2363
|
+
const rootClassName$15 = 'dot-avatar';
|
|
2364
2364
|
const avatarSpacing = {
|
|
2365
2365
|
small: 3,
|
|
2366
2366
|
medium: 5,
|
|
@@ -2370,7 +2370,7 @@ const StyledAvatar = styled(Avatar)`
|
|
|
2370
2370
|
${({
|
|
2371
2371
|
theme
|
|
2372
2372
|
}) => css`
|
|
2373
|
-
&.${rootClassName$
|
|
2373
|
+
&.${rootClassName$15} {
|
|
2374
2374
|
display: inline-flex;
|
|
2375
2375
|
background-color: ${({
|
|
2376
2376
|
color
|
|
@@ -2482,7 +2482,7 @@ const DotAvatar = ({
|
|
|
2482
2482
|
variant = 'circular',
|
|
2483
2483
|
style
|
|
2484
2484
|
}) => {
|
|
2485
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2485
|
+
const rootClasses = useStylesWithRootClass(rootClassName$15, className);
|
|
2486
2486
|
const getAvatarColor = () => {
|
|
2487
2487
|
if ((style === null || style === void 0 ? void 0 : style.color) !== undefined) return 'inherit';
|
|
2488
2488
|
if (color) return color;
|
|
@@ -2521,12 +2521,12 @@ const DotAvatar = ({
|
|
|
2521
2521
|
});
|
|
2522
2522
|
};
|
|
2523
2523
|
|
|
2524
|
-
const rootClassName$
|
|
2524
|
+
const rootClassName$14 = 'dot-button';
|
|
2525
2525
|
const StyledButton = styled(Button)`
|
|
2526
2526
|
${({
|
|
2527
2527
|
theme
|
|
2528
2528
|
}) => css`
|
|
2529
|
-
&.${rootClassName$
|
|
2529
|
+
&.${rootClassName$14} {
|
|
2530
2530
|
background-color: ${theme.palette.figma.primary.normal};
|
|
2531
2531
|
margin: ${theme.spacing(0.5)};
|
|
2532
2532
|
padding: ${theme.spacing(0.75, 2)};
|
|
@@ -2610,7 +2610,7 @@ const DotButton = forwardRef(({
|
|
|
2610
2610
|
autoFocus = false,
|
|
2611
2611
|
children,
|
|
2612
2612
|
className,
|
|
2613
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
2613
|
+
'data-pendoid': dataPendoId = rootClassName$14,
|
|
2614
2614
|
'data-testid': dataTestId,
|
|
2615
2615
|
disabled = false,
|
|
2616
2616
|
disableRipple = false,
|
|
@@ -2626,7 +2626,7 @@ const DotButton = forwardRef(({
|
|
|
2626
2626
|
tooltipPlacement,
|
|
2627
2627
|
type = 'primary'
|
|
2628
2628
|
}, ref) => {
|
|
2629
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2629
|
+
const rootClasses = useStylesWithRootClass(rootClassName$14, className);
|
|
2630
2630
|
let color;
|
|
2631
2631
|
let variant;
|
|
2632
2632
|
switch (type) {
|
|
@@ -2650,7 +2650,7 @@ const DotButton = forwardRef(({
|
|
|
2650
2650
|
return jsx(DotTooltip, {
|
|
2651
2651
|
placement: tooltipPlacement,
|
|
2652
2652
|
title: tooltip,
|
|
2653
|
-
"data-testid": `${dataTestId || rootClassName$
|
|
2653
|
+
"data-testid": `${dataTestId || rootClassName$14}-tooltip`,
|
|
2654
2654
|
children: jsx(StyledButton, {
|
|
2655
2655
|
"aria-label": ariaLabel,
|
|
2656
2656
|
autoFocus: autoFocus,
|
|
@@ -2659,7 +2659,7 @@ const DotButton = forwardRef(({
|
|
|
2659
2659
|
},
|
|
2660
2660
|
color: color,
|
|
2661
2661
|
"data-pendoid": dataPendoId,
|
|
2662
|
-
"data-testid": dataTestId || rootClassName$
|
|
2662
|
+
"data-testid": dataTestId || rootClassName$14,
|
|
2663
2663
|
disableRipple: disableRipple,
|
|
2664
2664
|
disabled: disabled,
|
|
2665
2665
|
endIcon: endIcon,
|
|
@@ -2678,10 +2678,10 @@ const DotButton = forwardRef(({
|
|
|
2678
2678
|
});
|
|
2679
2679
|
});
|
|
2680
2680
|
|
|
2681
|
-
const rootClassName$
|
|
2681
|
+
const rootClassName$13 = 'dot-link';
|
|
2682
2682
|
const StyledLink = styled(Link)`
|
|
2683
2683
|
${() => css`
|
|
2684
|
-
&.${rootClassName$
|
|
2684
|
+
&.${rootClassName$13} {
|
|
2685
2685
|
cursor: pointer;
|
|
2686
2686
|
|
|
2687
2687
|
&:hover.MuiLink-underlineHover {
|
|
@@ -2697,7 +2697,7 @@ const DotLink = ({
|
|
|
2697
2697
|
children,
|
|
2698
2698
|
className,
|
|
2699
2699
|
color = 'primary',
|
|
2700
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
2700
|
+
'data-pendoid': dataPendoId = rootClassName$13,
|
|
2701
2701
|
'data-testid': dataTestId,
|
|
2702
2702
|
href,
|
|
2703
2703
|
onClick,
|
|
@@ -2709,7 +2709,7 @@ const DotLink = ({
|
|
|
2709
2709
|
tooltip,
|
|
2710
2710
|
underline = 'always'
|
|
2711
2711
|
}) => {
|
|
2712
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2712
|
+
const rootClasses = useStylesWithRootClass(rootClassName$13, className);
|
|
2713
2713
|
useEffect(() => {
|
|
2714
2714
|
// Include a console warning if the link is not a string and no ariaLabel is provided
|
|
2715
2715
|
if (!isString$1(children) && !ariaLabel) {
|
|
@@ -2759,7 +2759,7 @@ const CreateUUID = () => {
|
|
|
2759
2759
|
});
|
|
2760
2760
|
};
|
|
2761
2761
|
|
|
2762
|
-
const rootClassName$
|
|
2762
|
+
const rootClassName$12 = 'dot-list';
|
|
2763
2763
|
const listItemRootClass = 'dot-list-item';
|
|
2764
2764
|
const nestedListClassName = 'dot-nested-list';
|
|
2765
2765
|
const nestedDrawerClassName = 'dot-nested-drawer';
|
|
@@ -2767,7 +2767,7 @@ const StyledList = styled(List)`
|
|
|
2767
2767
|
${({
|
|
2768
2768
|
theme
|
|
2769
2769
|
}) => css`
|
|
2770
|
-
&.${rootClassName$
|
|
2770
|
+
&.${rootClassName$12} {
|
|
2771
2771
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
2772
2772
|
|
|
2773
2773
|
.dot-icon {
|
|
@@ -2850,12 +2850,12 @@ const DotListDivider = ({
|
|
|
2850
2850
|
});
|
|
2851
2851
|
};
|
|
2852
2852
|
|
|
2853
|
-
const rootClassName$
|
|
2853
|
+
const rootClassName$11 = 'dot-progress';
|
|
2854
2854
|
const StyledCircularProgress = styled(CircularProgress)`
|
|
2855
2855
|
${({
|
|
2856
2856
|
theme
|
|
2857
2857
|
}) => css`
|
|
2858
|
-
&.${rootClassName$
|
|
2858
|
+
&.${rootClassName$11} {
|
|
2859
2859
|
&.MuiCircularProgress-colorPrimary {
|
|
2860
2860
|
color: ${theme.palette.figma.inProgress.normal};
|
|
2861
2861
|
}
|
|
@@ -2877,7 +2877,7 @@ const DotProgress = ({
|
|
|
2877
2877
|
value,
|
|
2878
2878
|
variant = 'indeterminate'
|
|
2879
2879
|
}) => {
|
|
2880
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2880
|
+
const rootClasses = useStylesWithRootClass(rootClassName$11, className);
|
|
2881
2881
|
useEffect(() => {
|
|
2882
2882
|
if (!ariaLabel) {
|
|
2883
2883
|
console.warn('a11y: DotProgress must have an ariaLabel to describe the progress component');
|
|
@@ -2918,35 +2918,35 @@ var variables = /*#__PURE__*/Object.freeze({
|
|
|
2918
2918
|
levelTop: levelTop
|
|
2919
2919
|
});
|
|
2920
2920
|
|
|
2921
|
-
const rootClassName
|
|
2921
|
+
const rootClassName$10 = 'dot-popper';
|
|
2922
2922
|
const StyledPopper$1 = styled(Popper)`
|
|
2923
2923
|
${({
|
|
2924
2924
|
theme
|
|
2925
2925
|
}) => css`
|
|
2926
|
-
&.${rootClassName
|
|
2926
|
+
&.${rootClassName$10} {
|
|
2927
2927
|
font-family: ${theme.typography.fontFamily};
|
|
2928
2928
|
font-size: ${theme.typography.body1.fontSize}px;
|
|
2929
2929
|
}
|
|
2930
2930
|
|
|
2931
|
-
&.${rootClassName
|
|
2931
|
+
&.${rootClassName$10}, &.${rootClassName$10} > .dot-popper-paper {
|
|
2932
2932
|
background-color: ${theme.palette.figma.background.level1.white};
|
|
2933
2933
|
}
|
|
2934
2934
|
`}
|
|
2935
2935
|
`;
|
|
2936
2936
|
|
|
2937
2937
|
const flyoutMenuClassName = 'dot-flyout-menu';
|
|
2938
|
-
const rootClassName
|
|
2938
|
+
const rootClassName$$ = 'dot-menu';
|
|
2939
2939
|
const getListMaxHeight = maxHeight => isString$1(maxHeight) ? maxHeight : `${maxHeight}px`;
|
|
2940
2940
|
const StyledPopper = styled(Popper)`
|
|
2941
2941
|
${({
|
|
2942
2942
|
theme
|
|
2943
2943
|
}) => css`
|
|
2944
|
-
&.${rootClassName
|
|
2944
|
+
&.${rootClassName$10} {
|
|
2945
2945
|
font-family: ${theme.typography.fontFamily};
|
|
2946
2946
|
font-size: ${theme.typography.body1.fontSize}px;
|
|
2947
2947
|
z-index: ${levelSecond};
|
|
2948
2948
|
}
|
|
2949
|
-
&.${rootClassName
|
|
2949
|
+
&.${rootClassName$$}, &.${rootClassName$10} {
|
|
2950
2950
|
&.loading .MuiPaper-root {
|
|
2951
2951
|
align-items: center;
|
|
2952
2952
|
display: flex;
|
|
@@ -3021,14 +3021,14 @@ const MENU_ITEM_HEIGHT_NORMAL = 48;
|
|
|
3021
3021
|
const MENU_ITEM_HEIGHT_DENSE = 36;
|
|
3022
3022
|
const DEFAULT_MAX_VISIBLE_ITEMS = 7;
|
|
3023
3023
|
|
|
3024
|
-
const rootClassName$
|
|
3024
|
+
const rootClassName$_ = 'dot-ul';
|
|
3025
3025
|
const listItemClassName$1 = 'dot-li';
|
|
3026
3026
|
const listItemWithSubmenuClassName = 'dot-li-with-submenu';
|
|
3027
3027
|
const StyledMenuList = styled(MenuList)`
|
|
3028
3028
|
${({
|
|
3029
3029
|
theme
|
|
3030
3030
|
}) => css`
|
|
3031
|
-
&.${rootClassName$
|
|
3031
|
+
&.${rootClassName$_} {
|
|
3032
3032
|
background: ${theme.palette.figma.background.level1.white};
|
|
3033
3033
|
|
|
3034
3034
|
.dot-li {
|
|
@@ -3124,7 +3124,7 @@ const DotMenuList = forwardRef(({
|
|
|
3124
3124
|
onSubMenuCreate,
|
|
3125
3125
|
selectedKey
|
|
3126
3126
|
}, ref) => {
|
|
3127
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3127
|
+
const rootClasses = useStylesWithRootClass(rootClassName$_, className);
|
|
3128
3128
|
const [activeSubmenu, setActiveSubmenu] = useState(null);
|
|
3129
3129
|
const [subItemAnchorEl, setSubItemAnchorEl] = useState(null);
|
|
3130
3130
|
const openSubmenu = (target, itemKey) => {
|
|
@@ -3235,7 +3235,7 @@ const DotMenu = ({
|
|
|
3235
3235
|
open = false,
|
|
3236
3236
|
selectedKey
|
|
3237
3237
|
}) => {
|
|
3238
|
-
const rootClasses = useStylesWithRootClass(rootClassName
|
|
3238
|
+
const rootClasses = useStylesWithRootClass(rootClassName$$, className, loading ? 'loading' : '');
|
|
3239
3239
|
const isSubmenu = checkIfSubmenu(anchorEl);
|
|
3240
3240
|
const hasSubItems = checkForSubItems(menuItems);
|
|
3241
3241
|
// Timeout object is customizable when Menu component is either submenu
|
|
@@ -3323,12 +3323,12 @@ const DotMenu = ({
|
|
|
3323
3323
|
});
|
|
3324
3324
|
};
|
|
3325
3325
|
|
|
3326
|
-
const rootClassName$
|
|
3326
|
+
const rootClassName$Z = 'dot-drawer';
|
|
3327
3327
|
const StyledDrawer = styled(Drawer)`
|
|
3328
3328
|
${({
|
|
3329
3329
|
theme
|
|
3330
3330
|
}) => css`
|
|
3331
|
-
&.${rootClassName$
|
|
3331
|
+
&.${rootClassName$Z} .MuiBackdrop-root {
|
|
3332
3332
|
background-color: ${theme.palette.figma.overlay.default};
|
|
3333
3333
|
}
|
|
3334
3334
|
|
|
@@ -3347,12 +3347,12 @@ const StyledDrawer = styled(Drawer)`
|
|
|
3347
3347
|
`}
|
|
3348
3348
|
`;
|
|
3349
3349
|
|
|
3350
|
-
const rootClassName$
|
|
3350
|
+
const rootClassName$Y = 'dot-drawer-header';
|
|
3351
3351
|
const StyleDrawerHeader = styled.div`
|
|
3352
3352
|
${({
|
|
3353
3353
|
theme
|
|
3354
3354
|
}) => css`
|
|
3355
|
-
&.${rootClassName$
|
|
3355
|
+
&.${rootClassName$Y} {
|
|
3356
3356
|
padding: ${theme.spacing(0, 0, 2)};
|
|
3357
3357
|
display: flex;
|
|
3358
3358
|
align-items: center;
|
|
@@ -3363,13 +3363,13 @@ const StyleDrawerHeader = styled.div`
|
|
|
3363
3363
|
`}
|
|
3364
3364
|
`;
|
|
3365
3365
|
|
|
3366
|
-
const rootClassName$
|
|
3366
|
+
const rootClassName$X = 'dot-icon-btn';
|
|
3367
3367
|
const StyledIconButton = styled(IconButton)`
|
|
3368
3368
|
${({
|
|
3369
3369
|
theme,
|
|
3370
3370
|
color
|
|
3371
3371
|
}) => css`
|
|
3372
|
-
&.${rootClassName$
|
|
3372
|
+
&.${rootClassName$X} {
|
|
3373
3373
|
${color === 'inherit' ? css`
|
|
3374
3374
|
color: inherit;
|
|
3375
3375
|
` : ''}
|
|
@@ -3428,7 +3428,7 @@ const DotIconButton = ({
|
|
|
3428
3428
|
ariaRole = 'button',
|
|
3429
3429
|
className,
|
|
3430
3430
|
color = 'inherit',
|
|
3431
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
3431
|
+
'data-pendoid': dataPendoId = rootClassName$X,
|
|
3432
3432
|
'data-testid': dataTestId,
|
|
3433
3433
|
disableRipple = false,
|
|
3434
3434
|
disabled = false,
|
|
@@ -3441,7 +3441,7 @@ const DotIconButton = ({
|
|
|
3441
3441
|
tooltipPlacement
|
|
3442
3442
|
}) => {
|
|
3443
3443
|
const rippleClassName = disableRipple ? 'ripple-disabled' : '';
|
|
3444
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3444
|
+
const rootClasses = useStylesWithRootClass(rootClassName$X, rippleClassName, `shape-${shape}`, className);
|
|
3445
3445
|
return jsx(DotTooltip, {
|
|
3446
3446
|
"data-testid": "icon-button-tooltip",
|
|
3447
3447
|
placement: tooltipPlacement,
|
|
@@ -3476,7 +3476,7 @@ const DotDrawerHeader = ({
|
|
|
3476
3476
|
onClose,
|
|
3477
3477
|
variant
|
|
3478
3478
|
}) => {
|
|
3479
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3479
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Y, className);
|
|
3480
3480
|
return jsxs(StyleDrawerHeader, {
|
|
3481
3481
|
"aria-label": ariaLabel,
|
|
3482
3482
|
"aria-level": 2,
|
|
@@ -3493,10 +3493,10 @@ const DotDrawerHeader = ({
|
|
|
3493
3493
|
});
|
|
3494
3494
|
};
|
|
3495
3495
|
|
|
3496
|
-
const rootClassName$
|
|
3496
|
+
const rootClassName$W = 'dot-drawer-body';
|
|
3497
3497
|
const StyleDrawerBody = styled.div`
|
|
3498
3498
|
${() => css`
|
|
3499
|
-
&.${rootClassName$
|
|
3499
|
+
&.${rootClassName$W} {
|
|
3500
3500
|
display: flex;
|
|
3501
3501
|
.dot-drawer-close-button {
|
|
3502
3502
|
align-self: self-start;
|
|
@@ -3517,7 +3517,7 @@ const DotDrawerBody = ({
|
|
|
3517
3517
|
onClose,
|
|
3518
3518
|
variant
|
|
3519
3519
|
}) => {
|
|
3520
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3520
|
+
const rootClasses = useStylesWithRootClass(rootClassName$W, className);
|
|
3521
3521
|
return jsxs(StyleDrawerBody, {
|
|
3522
3522
|
"aria-label": ariaLabel,
|
|
3523
3523
|
className: rootClasses,
|
|
@@ -3532,12 +3532,12 @@ const DotDrawerBody = ({
|
|
|
3532
3532
|
});
|
|
3533
3533
|
};
|
|
3534
3534
|
|
|
3535
|
-
const rootClassName$
|
|
3535
|
+
const rootClassName$V = 'dot-drawer-footer';
|
|
3536
3536
|
const StyleDrawerFooter = styled.div`
|
|
3537
3537
|
${({
|
|
3538
3538
|
theme
|
|
3539
3539
|
}) => css`
|
|
3540
|
-
&.${rootClassName$
|
|
3540
|
+
&.${rootClassName$V} {
|
|
3541
3541
|
padding: ${theme.spacing(2, 0, 0)};
|
|
3542
3542
|
}
|
|
3543
3543
|
`}
|
|
@@ -3550,7 +3550,7 @@ const DotDrawerFooter = ({
|
|
|
3550
3550
|
className,
|
|
3551
3551
|
'data-testid': dataTestId
|
|
3552
3552
|
}) => {
|
|
3553
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3553
|
+
const rootClasses = useStylesWithRootClass(rootClassName$V, className);
|
|
3554
3554
|
return jsx(StyleDrawerFooter, {
|
|
3555
3555
|
"aria-label": ariaLabel,
|
|
3556
3556
|
className: rootClasses,
|
|
@@ -3566,7 +3566,7 @@ const DotDrawer = ({
|
|
|
3566
3566
|
ariaRole = 'dialog',
|
|
3567
3567
|
className,
|
|
3568
3568
|
children,
|
|
3569
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
3569
|
+
'data-pendoid': dataPendoId = rootClassName$Z,
|
|
3570
3570
|
'data-testid': dataTestId,
|
|
3571
3571
|
drawerBodyProps,
|
|
3572
3572
|
drawerFooterProps,
|
|
@@ -3589,7 +3589,7 @@ const DotDrawer = ({
|
|
|
3589
3589
|
onClose(event);
|
|
3590
3590
|
}
|
|
3591
3591
|
};
|
|
3592
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3592
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Z, className);
|
|
3593
3593
|
const backdropEnabled = variant === 'temporary' && !(ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.hideBackdrop);
|
|
3594
3594
|
const headerExists = !!drawerHeaderProps;
|
|
3595
3595
|
const bodyPendoId = drawerBodyProps ? drawerBodyProps['data-pendoid'] : 'drawer-body';
|
|
@@ -3831,6 +3831,7 @@ const NestedList = ({
|
|
|
3831
3831
|
const DotListItem = ({
|
|
3832
3832
|
ariaLabel,
|
|
3833
3833
|
ariaRole = 'listitem',
|
|
3834
|
+
autoFocus,
|
|
3834
3835
|
className,
|
|
3835
3836
|
component = 'li',
|
|
3836
3837
|
'data-pendoid': dataPendoId = listItemRootClass,
|
|
@@ -3840,6 +3841,7 @@ const DotListItem = ({
|
|
|
3840
3841
|
href,
|
|
3841
3842
|
isOpened = false,
|
|
3842
3843
|
onClick,
|
|
3844
|
+
onKeyDown,
|
|
3843
3845
|
onMenuLeave,
|
|
3844
3846
|
items = [],
|
|
3845
3847
|
menuPlacement,
|
|
@@ -3909,6 +3911,7 @@ const DotListItem = ({
|
|
|
3909
3911
|
return jsxs(Fragment, {
|
|
3910
3912
|
children: [jsx(ListItem, {
|
|
3911
3913
|
"aria-label": ariaLabel || tooltip,
|
|
3914
|
+
autoFocus: autoFocus,
|
|
3912
3915
|
classes: {
|
|
3913
3916
|
root: rootClasses
|
|
3914
3917
|
},
|
|
@@ -3918,6 +3921,7 @@ const DotListItem = ({
|
|
|
3918
3921
|
divider: divider,
|
|
3919
3922
|
href: onClick ? null : href,
|
|
3920
3923
|
onClick: !isLink ? handleClick : null,
|
|
3924
|
+
onKeyDown: onKeyDown,
|
|
3921
3925
|
role: ariaRole,
|
|
3922
3926
|
selected: isFlyout ? navIsOpened : selected,
|
|
3923
3927
|
tabIndex: isLink ? -1 : 0,
|
|
@@ -3973,7 +3977,7 @@ const DotList = ({
|
|
|
3973
3977
|
nestedListType = 'expandable',
|
|
3974
3978
|
width = 240
|
|
3975
3979
|
}) => {
|
|
3976
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3980
|
+
const rootClasses = useStylesWithRootClass(rootClassName$12, className);
|
|
3977
3981
|
const listWidth = typeof width === 'number' ? `${width}px` : width;
|
|
3978
3982
|
const listRef = useRef();
|
|
3979
3983
|
const [listItemIndex, setListItemIndex] = useState(null);
|
|
@@ -4063,12 +4067,12 @@ const DotList = ({
|
|
|
4063
4067
|
});
|
|
4064
4068
|
};
|
|
4065
4069
|
|
|
4066
|
-
const rootClassName$
|
|
4070
|
+
const rootClassName$U = 'dot-copy-button';
|
|
4067
4071
|
const StyledCopyButton = styled.span`
|
|
4068
4072
|
${({
|
|
4069
4073
|
theme
|
|
4070
4074
|
}) => css`
|
|
4071
|
-
&.${rootClassName$
|
|
4075
|
+
&.${rootClassName$U} .copied-to-clipboard {
|
|
4072
4076
|
color: ${theme.palette.figma.success.normal};
|
|
4073
4077
|
|
|
4074
4078
|
&.MuiIcon-fontSizeSmall.button-size-small {
|
|
@@ -4094,7 +4098,7 @@ const DotCopyButton = ({
|
|
|
4094
4098
|
color = 'inherit',
|
|
4095
4099
|
copiedTooltip = 'Copied!',
|
|
4096
4100
|
copyTooltip = 'Copy to clipboard',
|
|
4097
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
4101
|
+
'data-pendoid': dataPendoId = rootClassName$U,
|
|
4098
4102
|
'data-testid': dataTestId = 'dot-copy-button',
|
|
4099
4103
|
disabled = false,
|
|
4100
4104
|
disableRipple = false,
|
|
@@ -4142,7 +4146,7 @@ const DotCopyButton = ({
|
|
|
4142
4146
|
return false;
|
|
4143
4147
|
}, [value, showCopiedIcon, disabled, onClick]);
|
|
4144
4148
|
return jsxs(StyledCopyButton, {
|
|
4145
|
-
className: rootClassName$
|
|
4149
|
+
className: rootClassName$U,
|
|
4146
4150
|
"data-testid": dataTestId,
|
|
4147
4151
|
children: [!timedShowCopiedIcon && jsx(DotIconButton, {
|
|
4148
4152
|
ariaLabel: ariaLabel,
|
|
@@ -4231,7 +4235,7 @@ const DotInputText = ({
|
|
|
4231
4235
|
autoFocus,
|
|
4232
4236
|
className,
|
|
4233
4237
|
defaultValue,
|
|
4234
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
4238
|
+
'data-pendoid': dataPendoId = rootClassName$18,
|
|
4235
4239
|
'data-testid': dataTestId,
|
|
4236
4240
|
disabled = false,
|
|
4237
4241
|
error = false,
|
|
@@ -4277,7 +4281,7 @@ const DotInputText = ({
|
|
|
4277
4281
|
const internalInputRef = useRef(null);
|
|
4278
4282
|
const textFieldInputRef = inputRef || internalInputRef;
|
|
4279
4283
|
const [inputTextState, setInputTextState] = useState(getInitialState(value));
|
|
4280
|
-
const rootStyles = useStylesWithRootClass(rootClassName$
|
|
4284
|
+
const rootStyles = useStylesWithRootClass(rootClassName$18, hasError, hasWarning, hasSuccess, readOnly && readOnlyClassName$1);
|
|
4281
4285
|
useEffect(() => {
|
|
4282
4286
|
if (value !== inputTextState.inputValue) {
|
|
4283
4287
|
setInputTextState(getInitialState(value, defaultValue));
|
|
@@ -4413,10 +4417,10 @@ const DotInputText = ({
|
|
|
4413
4417
|
});
|
|
4414
4418
|
};
|
|
4415
4419
|
|
|
4416
|
-
const rootClassName$
|
|
4420
|
+
const rootClassName$T = 'dot-search-input';
|
|
4417
4421
|
const StyledSearchInput = styled.span`
|
|
4418
4422
|
${() => css`
|
|
4419
|
-
&.${rootClassName$
|
|
4423
|
+
&.${rootClassName$T} {
|
|
4420
4424
|
}
|
|
4421
4425
|
`}
|
|
4422
4426
|
`;
|
|
@@ -4433,7 +4437,7 @@ function SearchInput({
|
|
|
4433
4437
|
tooltip = null,
|
|
4434
4438
|
value
|
|
4435
4439
|
}) {
|
|
4436
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4440
|
+
const rootClasses = useStylesWithRootClass(rootClassName$T, className);
|
|
4437
4441
|
const [searchText, setSearchText] = useState(value);
|
|
4438
4442
|
let previousSearchText = '';
|
|
4439
4443
|
const handleChange = useCallback(event => {
|
|
@@ -4689,12 +4693,12 @@ const recentAppInstancesSetter = (latestInstance, maxRecentItems
|
|
|
4689
4693
|
};
|
|
4690
4694
|
};
|
|
4691
4695
|
|
|
4692
|
-
const rootClassName$
|
|
4696
|
+
const rootClassName$S = 'dot-app-switcher';
|
|
4693
4697
|
const StyledAppSwitcher = styled(DotDrawer)`
|
|
4694
4698
|
${({
|
|
4695
4699
|
theme
|
|
4696
4700
|
}) => css`
|
|
4697
|
-
&.${rootClassName$
|
|
4701
|
+
&.${rootClassName$S} {
|
|
4698
4702
|
.dot-drawer-paper {
|
|
4699
4703
|
padding: 0;
|
|
4700
4704
|
width: 382px;
|
|
@@ -4804,7 +4808,7 @@ const DotAppSwitcherView = ({
|
|
|
4804
4808
|
if (dotCoreApiContext !== null) {
|
|
4805
4809
|
setSelectedAppType = dotCoreApiContext.setSelectedAppSwitcherAppType;
|
|
4806
4810
|
}
|
|
4807
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4811
|
+
const rootClasses = useStylesWithRootClass(rootClassName$S, className);
|
|
4808
4812
|
const [appTypeMap, setAppTypeMap] = useState();
|
|
4809
4813
|
const [appTypeLabels, setAppTypeLabels] = useState();
|
|
4810
4814
|
const [appTypeMenuItems, setAppTypeMenuItems] = useState();
|
|
@@ -5182,12 +5186,12 @@ var SvgLogoDigitalAiWhite = function SvgLogoDigitalAiWhite(_ref, ref) {
|
|
|
5182
5186
|
};
|
|
5183
5187
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgLogoDigitalAiWhite);
|
|
5184
5188
|
|
|
5185
|
-
const rootClassName$
|
|
5189
|
+
const rootClassName$R = 'dot-sidebar';
|
|
5186
5190
|
const StyledSidebar = styled.aside`
|
|
5187
5191
|
${({
|
|
5188
5192
|
theme
|
|
5189
5193
|
}) => css`
|
|
5190
|
-
&.${rootClassName$
|
|
5194
|
+
&.${rootClassName$R} {
|
|
5191
5195
|
align-items: stretch;
|
|
5192
5196
|
background: ${theme.palette.figma.background.level1.white};
|
|
5193
5197
|
border-width: 0 1px;
|
|
@@ -5463,10 +5467,10 @@ const StyledSidebar = styled.aside`
|
|
|
5463
5467
|
`}
|
|
5464
5468
|
`;
|
|
5465
5469
|
|
|
5466
|
-
const rootClassName$
|
|
5470
|
+
const rootClassName$Q = 'dot-truncate-with-tooltip';
|
|
5467
5471
|
const StyledTruncateWithTooltip = styled(Tooltip)`
|
|
5468
5472
|
${() => css`
|
|
5469
|
-
&.${rootClassName$
|
|
5473
|
+
&.${rootClassName$Q} {
|
|
5470
5474
|
display: block;
|
|
5471
5475
|
overflow: hidden;
|
|
5472
5476
|
white-space: nowrap;
|
|
@@ -5497,7 +5501,7 @@ const DotTruncateWithTooltip = ({
|
|
|
5497
5501
|
label,
|
|
5498
5502
|
width
|
|
5499
5503
|
}) => {
|
|
5500
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5504
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Q, className, charactersLimit ? 'dot-characters-limit' : '');
|
|
5501
5505
|
return jsx(StyledTruncateWithTooltip, {
|
|
5502
5506
|
"aria-label": ariaLabel,
|
|
5503
5507
|
arrow: arrow,
|
|
@@ -5607,7 +5611,7 @@ const DotSidebar = ({
|
|
|
5607
5611
|
setIsOpen(!isOpen);
|
|
5608
5612
|
};
|
|
5609
5613
|
const sidebarClasses = useStylesWithRootClass('side-nav', openClass);
|
|
5610
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5614
|
+
const rootClasses = useStylesWithRootClass(rootClassName$R, openClass, className);
|
|
5611
5615
|
return jsxs(StyledSidebar, {
|
|
5612
5616
|
"aria-label": ariaLabel,
|
|
5613
5617
|
className: rootClasses,
|
|
@@ -5674,12 +5678,12 @@ const DotSidebar = ({
|
|
|
5674
5678
|
});
|
|
5675
5679
|
};
|
|
5676
5680
|
|
|
5677
|
-
const rootClassName$
|
|
5681
|
+
const rootClassName$P = 'dot-badge';
|
|
5678
5682
|
const StyledBadge = styled(Badge)`
|
|
5679
5683
|
${({
|
|
5680
5684
|
theme
|
|
5681
5685
|
}) => css`
|
|
5682
|
-
&.${rootClassName$
|
|
5686
|
+
&.${rootClassName$P} {
|
|
5683
5687
|
color: ${theme.palette.figma.typography.black};
|
|
5684
5688
|
word-break: normal;
|
|
5685
5689
|
|
|
@@ -5714,7 +5718,7 @@ const DotBadge = ({
|
|
|
5714
5718
|
overlap,
|
|
5715
5719
|
variant = 'dot'
|
|
5716
5720
|
}) => {
|
|
5717
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5721
|
+
const rootClasses = useStylesWithRootClass(rootClassName$P, className);
|
|
5718
5722
|
return jsx(StyledBadge, {
|
|
5719
5723
|
"$badgeColor": badgeColor,
|
|
5720
5724
|
anchorOrigin: {
|
|
@@ -5736,7 +5740,7 @@ const DotBadge = ({
|
|
|
5736
5740
|
});
|
|
5737
5741
|
};
|
|
5738
5742
|
|
|
5739
|
-
const rootClassName$
|
|
5743
|
+
const rootClassName$O = 'dot-app-toolbar';
|
|
5740
5744
|
const denseClassName = 'dense';
|
|
5741
5745
|
const StyledMainMenu = styled(DotDrawer)`
|
|
5742
5746
|
${({
|
|
@@ -5776,7 +5780,7 @@ const StyledAppToolbar = styled.header`
|
|
|
5776
5780
|
${({
|
|
5777
5781
|
theme
|
|
5778
5782
|
}) => css`
|
|
5779
|
-
&.${rootClassName$
|
|
5783
|
+
&.${rootClassName$O} {
|
|
5780
5784
|
align-items: center;
|
|
5781
5785
|
background: ${theme.palette.figma.appToolbar.background};
|
|
5782
5786
|
border-bottom: 4px solid ${theme.palette.figma.border.default};
|
|
@@ -5898,7 +5902,7 @@ const DotAppToolbar = ({
|
|
|
5898
5902
|
const displayAppLogo = appLogo || appLogoSmall;
|
|
5899
5903
|
const mainMenuRef = useRef(null);
|
|
5900
5904
|
const denseClass = dense ? denseClassName : '';
|
|
5901
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5905
|
+
const rootClasses = useStylesWithRootClass(rootClassName$O, className, denseClass, showMainMenu ? '' : 'without-menu-icon');
|
|
5902
5906
|
const mainMenuClasses = useStylesWithRootClass('dot-main-menu', denseClass, menuOpen ? 'open' : '');
|
|
5903
5907
|
const targetBreakpoint = useMediaQuery(theme => theme.breakpoints.up('lg'));
|
|
5904
5908
|
useEffect(() => {
|
|
@@ -6028,14 +6032,14 @@ const DotAppToolbar = ({
|
|
|
6028
6032
|
}) : appToolbar;
|
|
6029
6033
|
};
|
|
6030
6034
|
|
|
6031
|
-
const rootClassName$
|
|
6035
|
+
const rootClassName$N = 'dot-autocomplete';
|
|
6032
6036
|
const inputRootClassName = 'dot-input-root';
|
|
6033
6037
|
const inputMediumClassName = 'dot-input-medium';
|
|
6034
6038
|
const StyledAutocomplete = styled(Autocomplete)`
|
|
6035
6039
|
${({
|
|
6036
6040
|
theme
|
|
6037
6041
|
}) => css`
|
|
6038
|
-
&.${rootClassName$
|
|
6042
|
+
&.${rootClassName$N} {
|
|
6039
6043
|
&.${inputMediumClassName} .dot-text-field .${inputRootClassName} {
|
|
6040
6044
|
height: 56px;
|
|
6041
6045
|
padding-left: ${theme.spacing(2)};
|
|
@@ -6072,12 +6076,12 @@ const StyledAutocomplete = styled(Autocomplete)`
|
|
|
6072
6076
|
`}
|
|
6073
6077
|
`;
|
|
6074
6078
|
|
|
6075
|
-
const rootClassName$
|
|
6079
|
+
const rootClassName$M = 'dot-chip';
|
|
6076
6080
|
const StyledChip = styled(Chip)`
|
|
6077
6081
|
${({
|
|
6078
6082
|
theme
|
|
6079
6083
|
}) => css`
|
|
6080
|
-
&.${rootClassName$
|
|
6084
|
+
&.${rootClassName$M} {
|
|
6081
6085
|
background: ${theme.palette.figma.neutral.normal};
|
|
6082
6086
|
border-color: ${theme.palette.figma.border.darker};
|
|
6083
6087
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -6183,7 +6187,7 @@ const DotChip = ({
|
|
|
6183
6187
|
charactersLimit = DEFAULT_CHARACTERS_LIMIT,
|
|
6184
6188
|
children,
|
|
6185
6189
|
className,
|
|
6186
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
6190
|
+
'data-pendoid': dataPendoId = rootClassName$M,
|
|
6187
6191
|
'data-testid': dataTestId,
|
|
6188
6192
|
disabled = false,
|
|
6189
6193
|
error = false,
|
|
@@ -6192,10 +6196,11 @@ const DotChip = ({
|
|
|
6192
6196
|
onClick,
|
|
6193
6197
|
onDelete,
|
|
6194
6198
|
size = 'medium',
|
|
6195
|
-
startIcon
|
|
6199
|
+
startIcon,
|
|
6200
|
+
tabIndex
|
|
6196
6201
|
}) => {
|
|
6197
6202
|
const errorClass = error ? 'Mui-error' : '';
|
|
6198
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6203
|
+
const rootClasses = useStylesWithRootClass(rootClassName$M, className, errorClass);
|
|
6199
6204
|
const getChipLabel = () => {
|
|
6200
6205
|
if (charactersLimit <= 0 || children.length < charactersLimit) return children;
|
|
6201
6206
|
const label = `${children.substring(0, charactersLimit)}...`;
|
|
@@ -6222,6 +6227,7 @@ const DotChip = ({
|
|
|
6222
6227
|
onClick: event => onClick && onClick(event),
|
|
6223
6228
|
onDelete: isDeletable && onDelete ? event => onDelete(event) : undefined,
|
|
6224
6229
|
size: size,
|
|
6230
|
+
tabIndex: tabIndex,
|
|
6225
6231
|
variant: "outlined"
|
|
6226
6232
|
});
|
|
6227
6233
|
};
|
|
@@ -6293,7 +6299,7 @@ const DotAutoComplete = ({
|
|
|
6293
6299
|
ariaLabel,
|
|
6294
6300
|
autoFocus,
|
|
6295
6301
|
className,
|
|
6296
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
6302
|
+
'data-pendoid': dataPendoId = rootClassName$N,
|
|
6297
6303
|
'data-testid': dataTestId,
|
|
6298
6304
|
defaultValue,
|
|
6299
6305
|
dense = true,
|
|
@@ -6344,8 +6350,8 @@ const DotAutoComplete = ({
|
|
|
6344
6350
|
const popperOpen = !readOnly && (open || isOpened);
|
|
6345
6351
|
const preventDuplicateInsertion = actionItem === null || actionItem === void 0 ? void 0 : actionItem.preventDuplicateInsertion;
|
|
6346
6352
|
const textFieldWarningClassName = !error && warning && warningClassName;
|
|
6347
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6348
|
-
const textFieldRootClasses = useStylesWithRootClass(rootClassName$
|
|
6353
|
+
const rootClasses = useStylesWithRootClass(rootClassName$N, size === 'medium' && inputMediumClassName, className);
|
|
6354
|
+
const textFieldRootClasses = useStylesWithRootClass(rootClassName$18, readOnly && readOnlyClassName$1, textFieldWarningClassName);
|
|
6349
6355
|
const inputRootClasses = useStylesWithRootClass(inputRootClassName, !dense && inputMediumClassName);
|
|
6350
6356
|
let highlightedOption = null;
|
|
6351
6357
|
let textFieldInput;
|
|
@@ -6390,7 +6396,7 @@ const DotAutoComplete = ({
|
|
|
6390
6396
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6391
6397
|
const DotPopper = props => {
|
|
6392
6398
|
if (!isActionItemDefined) return jsx(StyledPopper, Object.assign({}, props, {
|
|
6393
|
-
className: rootClassName
|
|
6399
|
+
className: rootClassName$10,
|
|
6394
6400
|
disablePortal: disablePortal,
|
|
6395
6401
|
"$maxHeight": maxHeight
|
|
6396
6402
|
}));
|
|
@@ -6412,7 +6418,7 @@ const DotAutoComplete = ({
|
|
|
6412
6418
|
const paperProps = props.children.props;
|
|
6413
6419
|
const paperChildren = paperProps.children;
|
|
6414
6420
|
return jsx(StyledPopper, Object.assign({}, props, {
|
|
6415
|
-
className: rootClassName
|
|
6421
|
+
className: rootClassName$10,
|
|
6416
6422
|
disablePortal: disablePortal,
|
|
6417
6423
|
"$maxHeight": maxHeight,
|
|
6418
6424
|
children: jsxs(Paper, Object.assign({}, paperProps, {
|
|
@@ -6621,10 +6627,10 @@ const DotAutoComplete = ({
|
|
|
6621
6627
|
});
|
|
6622
6628
|
};
|
|
6623
6629
|
|
|
6624
|
-
const rootClassName$
|
|
6630
|
+
const rootClassName$L = 'dot-avatar-group';
|
|
6625
6631
|
const StyledAvatarGroup = styled(AvatarGroup)`
|
|
6626
6632
|
${() => css`
|
|
6627
|
-
&.${rootClassName$
|
|
6633
|
+
&.${rootClassName$L} {
|
|
6628
6634
|
justify-content: flex-end;
|
|
6629
6635
|
|
|
6630
6636
|
.MuiAvatar-root {
|
|
@@ -6643,7 +6649,7 @@ const DotAvatarGroup = ({
|
|
|
6643
6649
|
max = 3,
|
|
6644
6650
|
spacing = 'medium'
|
|
6645
6651
|
}) => {
|
|
6646
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6652
|
+
const rootClasses = useStylesWithRootClass(rootClassName$L, className);
|
|
6647
6653
|
return jsx(StyledAvatarGroup, {
|
|
6648
6654
|
"aria-label": ariaLabel,
|
|
6649
6655
|
classes: {
|
|
@@ -6658,13 +6664,13 @@ const DotAvatarGroup = ({
|
|
|
6658
6664
|
});
|
|
6659
6665
|
};
|
|
6660
6666
|
|
|
6661
|
-
const rootClassName$
|
|
6667
|
+
const rootClassName$K = 'dot-breadcrumbs';
|
|
6662
6668
|
const breadcrumbsWrapperClass = 'dot-breadcrumbs-wrapper';
|
|
6663
6669
|
const StyledBreadcrumbsWrapper = styled.div`
|
|
6664
6670
|
${({
|
|
6665
6671
|
theme
|
|
6666
6672
|
}) => css`
|
|
6667
|
-
&.${rootClassName$
|
|
6673
|
+
&.${rootClassName$K} {
|
|
6668
6674
|
overflow: hidden;
|
|
6669
6675
|
|
|
6670
6676
|
.dot-breadcrumbs-menu {
|
|
@@ -6684,7 +6690,7 @@ const StyledBreadcrumbs = styled(Breadcrumbs)`
|
|
|
6684
6690
|
${({
|
|
6685
6691
|
theme
|
|
6686
6692
|
}) => css`
|
|
6687
|
-
&.${rootClassName$
|
|
6693
|
+
&.${rootClassName$K} {
|
|
6688
6694
|
margin-bottom: 0;
|
|
6689
6695
|
|
|
6690
6696
|
.MuiBreadcrumbs-ol {
|
|
@@ -7012,7 +7018,7 @@ const DotBreadcrumbs = ({
|
|
|
7012
7018
|
children: [jsx(StyledBreadcrumbs, {
|
|
7013
7019
|
"aria-label": "breadcrumb",
|
|
7014
7020
|
classes: {
|
|
7015
|
-
root: rootClassName$
|
|
7021
|
+
root: rootClassName$K,
|
|
7016
7022
|
ol: 'dot-ol',
|
|
7017
7023
|
li: 'dot-li'
|
|
7018
7024
|
},
|
|
@@ -7043,14 +7049,14 @@ const DotBreadcrumbs = ({
|
|
|
7043
7049
|
});
|
|
7044
7050
|
};
|
|
7045
7051
|
|
|
7046
|
-
const rootClassName$
|
|
7052
|
+
const rootClassName$J = 'dot-button-toggle';
|
|
7047
7053
|
// TODO: need to update ripple color
|
|
7048
7054
|
// https://github.com/mui/material-ui/issues/28543
|
|
7049
7055
|
const StyledToggleButtonGroup = styled(ToggleButtonGroup)`
|
|
7050
7056
|
${({
|
|
7051
7057
|
theme
|
|
7052
7058
|
}) => css`
|
|
7053
|
-
&.${rootClassName$
|
|
7059
|
+
&.${rootClassName$J} {
|
|
7054
7060
|
button:not(.MuiToggleButton-sizeLarge):not(.MuiToggleButton-sizeSmall) {
|
|
7055
7061
|
/* Override height for medium size */
|
|
7056
7062
|
height: ${theme.spacing(5)};
|
|
@@ -7166,7 +7172,7 @@ const DotButtonToggle = ({
|
|
|
7166
7172
|
buttonOptions,
|
|
7167
7173
|
className,
|
|
7168
7174
|
color,
|
|
7169
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
7175
|
+
'data-pendoid': dataPendoId = rootClassName$J,
|
|
7170
7176
|
'data-testid': dataTestId = 'dot-toggle',
|
|
7171
7177
|
disableFocusRipple = false,
|
|
7172
7178
|
disableRipple = false,
|
|
@@ -7176,7 +7182,7 @@ const DotButtonToggle = ({
|
|
|
7176
7182
|
size = 'medium',
|
|
7177
7183
|
value
|
|
7178
7184
|
}) => {
|
|
7179
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7185
|
+
const rootClasses = useStylesWithRootClass(rootClassName$J, className);
|
|
7180
7186
|
const renderToggleButton = ({
|
|
7181
7187
|
ariaLabel: optionAriaLabel,
|
|
7182
7188
|
badgeContent: optionBadgeContent,
|
|
@@ -7259,12 +7265,12 @@ const TooltipToggleButton = forwardRef((_a, ref) => {
|
|
|
7259
7265
|
}));
|
|
7260
7266
|
});
|
|
7261
7267
|
|
|
7262
|
-
const rootClassName$
|
|
7268
|
+
const rootClassName$I = 'dot-card';
|
|
7263
7269
|
const StyledCard = styled(Card)`
|
|
7264
7270
|
${({
|
|
7265
7271
|
theme
|
|
7266
7272
|
}) => css`
|
|
7267
|
-
&.${rootClassName$
|
|
7273
|
+
&.${rootClassName$I} {
|
|
7268
7274
|
background-color: ${theme.palette.figma.background.level1.white};
|
|
7269
7275
|
}
|
|
7270
7276
|
`}
|
|
@@ -7276,7 +7282,7 @@ const DotCard = ({
|
|
|
7276
7282
|
className,
|
|
7277
7283
|
'data-testid': dataTestId
|
|
7278
7284
|
}) => {
|
|
7279
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7285
|
+
const rootClasses = useStylesWithRootClass(rootClassName$I, className);
|
|
7280
7286
|
return jsx(StyledCard, {
|
|
7281
7287
|
"aria-label": ariaLabel,
|
|
7282
7288
|
classes: {
|
|
@@ -7305,12 +7311,12 @@ const DotCardContent = ({
|
|
|
7305
7311
|
});
|
|
7306
7312
|
};
|
|
7307
7313
|
|
|
7308
|
-
const rootClassName$
|
|
7314
|
+
const rootClassName$H = 'dot-card-footer';
|
|
7309
7315
|
const StyledDiv = styled.div`
|
|
7310
7316
|
${({
|
|
7311
7317
|
theme
|
|
7312
7318
|
}) => css`
|
|
7313
|
-
&.${rootClassName$
|
|
7319
|
+
&.${rootClassName$H} {
|
|
7314
7320
|
padding: ${theme.spacing(2)};
|
|
7315
7321
|
}
|
|
7316
7322
|
`}
|
|
@@ -7322,7 +7328,7 @@ const DotCardFooter = ({
|
|
|
7322
7328
|
className,
|
|
7323
7329
|
'data-testid': dataTestId
|
|
7324
7330
|
}) => {
|
|
7325
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7331
|
+
const rootClasses = useStylesWithRootClass(rootClassName$H, className);
|
|
7326
7332
|
return jsx(StyledDiv, {
|
|
7327
7333
|
"aria-label": ariaLabel,
|
|
7328
7334
|
className: rootClasses,
|
|
@@ -7366,9 +7372,9 @@ const DotCardHeader = ({
|
|
|
7366
7372
|
});
|
|
7367
7373
|
};
|
|
7368
7374
|
|
|
7369
|
-
const rootClassName$
|
|
7375
|
+
const rootClassName$G = 'dot-form-control-label';
|
|
7370
7376
|
const StyledFormControlLabel = styled(FormControlLabel)`
|
|
7371
|
-
&.${rootClassName$
|
|
7377
|
+
&.${rootClassName$G} {
|
|
7372
7378
|
.MuiFormControlLabel-label {
|
|
7373
7379
|
margin-bottom: 0;
|
|
7374
7380
|
padding: 0 0 0 4px;
|
|
@@ -7391,12 +7397,12 @@ const StyledFormControlLabel = styled(FormControlLabel)`
|
|
|
7391
7397
|
}
|
|
7392
7398
|
`;
|
|
7393
7399
|
|
|
7394
|
-
const rootClassName$
|
|
7400
|
+
const rootClassName$F = 'dot-checkbox';
|
|
7395
7401
|
const StyledCheckbox = styled(Checkbox)`
|
|
7396
7402
|
${({
|
|
7397
7403
|
theme
|
|
7398
7404
|
}) => css`
|
|
7399
|
-
&.${rootClassName$
|
|
7405
|
+
&.${rootClassName$F} {
|
|
7400
7406
|
padding: ${theme.spacing(1)};
|
|
7401
7407
|
|
|
7402
7408
|
&.MuiCheckbox-indeterminate {
|
|
@@ -7415,7 +7421,7 @@ function DotCheckbox({
|
|
|
7415
7421
|
ariaLabelledby,
|
|
7416
7422
|
checked,
|
|
7417
7423
|
className,
|
|
7418
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
7424
|
+
'data-pendoid': dataPendoId = rootClassName$G,
|
|
7419
7425
|
'data-testid': dataTestId,
|
|
7420
7426
|
disabled,
|
|
7421
7427
|
disableRipple,
|
|
@@ -7430,14 +7436,14 @@ function DotCheckbox({
|
|
|
7430
7436
|
size = 'medium',
|
|
7431
7437
|
value
|
|
7432
7438
|
}) {
|
|
7433
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7439
|
+
const rootClasses = useStylesWithRootClass(rootClassName$G, className);
|
|
7434
7440
|
const handleChange = event => {
|
|
7435
7441
|
onChange && onChange(event, event.target.value);
|
|
7436
7442
|
};
|
|
7437
7443
|
const checkboxControl = jsx(StyledCheckbox, {
|
|
7438
7444
|
checked: checked,
|
|
7439
7445
|
classes: {
|
|
7440
|
-
root: rootClassName$
|
|
7446
|
+
root: rootClassName$F
|
|
7441
7447
|
},
|
|
7442
7448
|
color: "primary",
|
|
7443
7449
|
"data-pendoid": dataPendoId,
|
|
@@ -7466,13 +7472,13 @@ function DotCheckbox({
|
|
|
7466
7472
|
});
|
|
7467
7473
|
}
|
|
7468
7474
|
|
|
7469
|
-
const rootClassName$
|
|
7475
|
+
const rootClassName$E = 'dot-form-group';
|
|
7470
7476
|
const groupLabelClassName = 'dot-form-group-label';
|
|
7471
7477
|
const startAdornmentClassName = 'dot-start-adornment';
|
|
7472
7478
|
const endAdornmentClassName = 'dot-end-adornment';
|
|
7473
7479
|
const placementClassName = 'dot-';
|
|
7474
7480
|
const StyledFormControl = styled(FormControl)`
|
|
7475
|
-
&.${rootClassName$
|
|
7481
|
+
&.${rootClassName$E} {
|
|
7476
7482
|
.MuiFormLabel-root {
|
|
7477
7483
|
width: 100%;
|
|
7478
7484
|
line-height: 24px;
|
|
@@ -7503,7 +7509,7 @@ const StyledFormControl = styled(FormControl)`
|
|
|
7503
7509
|
}
|
|
7504
7510
|
`;
|
|
7505
7511
|
|
|
7506
|
-
const rootClassName$
|
|
7512
|
+
const rootClassName$D = 'dot-checkbox-group';
|
|
7507
7513
|
const wrapperClassName$1 = 'dot-checkbox-group-wrapper';
|
|
7508
7514
|
const checkboxListClassName = 'dot-checkbox-list';
|
|
7509
7515
|
const checkboxListItemClassName = 'dot-checkbox-list-item';
|
|
@@ -7512,7 +7518,7 @@ const StyledCheckboxGroup = styled.div`
|
|
|
7512
7518
|
theme
|
|
7513
7519
|
}) => css`{
|
|
7514
7520
|
&.${wrapperClassName$1} {
|
|
7515
|
-
.${rootClassName$
|
|
7521
|
+
.${rootClassName$D} {
|
|
7516
7522
|
width: 100%;
|
|
7517
7523
|
}
|
|
7518
7524
|
|
|
@@ -7535,7 +7541,7 @@ const StyledCheckboxGroup = styled.div`
|
|
|
7535
7541
|
margin-top: 0;
|
|
7536
7542
|
padding-left: ${theme.spacing(2.5)};
|
|
7537
7543
|
|
|
7538
|
-
.${rootClassName$
|
|
7544
|
+
.${rootClassName$G} {
|
|
7539
7545
|
margin: 0;
|
|
7540
7546
|
}
|
|
7541
7547
|
}
|
|
@@ -7543,13 +7549,13 @@ const StyledCheckboxGroup = styled.div`
|
|
|
7543
7549
|
`}
|
|
7544
7550
|
`;
|
|
7545
7551
|
|
|
7546
|
-
const rootClassName$
|
|
7552
|
+
const rootClassName$C = 'dot-form-group';
|
|
7547
7553
|
const StyledFormGroup = styled(FormGroup)`
|
|
7548
7554
|
${({
|
|
7549
7555
|
theme,
|
|
7550
7556
|
row
|
|
7551
7557
|
}) => css`
|
|
7552
|
-
&.${rootClassName$
|
|
7558
|
+
&.${rootClassName$C} > * {
|
|
7553
7559
|
margin: ${row ? `${theme.spacing(0.5)}` : 0};
|
|
7554
7560
|
}
|
|
7555
7561
|
`}
|
|
@@ -7562,7 +7568,7 @@ function DotFormGroup({
|
|
|
7562
7568
|
'data-testid': dataTestId,
|
|
7563
7569
|
row
|
|
7564
7570
|
}) {
|
|
7565
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7571
|
+
const rootClasses = useStylesWithRootClass(rootClassName$E, className);
|
|
7566
7572
|
return jsx(StyledFormGroup, {
|
|
7567
7573
|
"aria-label": ariaLabel,
|
|
7568
7574
|
classes: {
|
|
@@ -7601,7 +7607,7 @@ function DotCheckboxGroup({
|
|
|
7601
7607
|
size = 'medium'
|
|
7602
7608
|
}) {
|
|
7603
7609
|
const placement = `${placementClassName}${labelPlacement}`;
|
|
7604
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7610
|
+
const rootClasses = useStylesWithRootClass(rootClassName$E, rootClassName$D, className, placement);
|
|
7605
7611
|
const [selectedOptions, setSelectedOptions] = useState(defaultValues);
|
|
7606
7612
|
const [allChecked, setAllChecked] = useState(false);
|
|
7607
7613
|
/* This will ensure that state can be updated from the outside */
|
|
@@ -7686,12 +7692,12 @@ function DotCheckboxGroup({
|
|
|
7686
7692
|
});
|
|
7687
7693
|
}
|
|
7688
7694
|
|
|
7689
|
-
const rootClassName$
|
|
7695
|
+
const rootClassName$B = 'dot-dialog';
|
|
7690
7696
|
const StyledDialog = styled(Dialog)`
|
|
7691
7697
|
${({
|
|
7692
7698
|
theme
|
|
7693
7699
|
}) => css`
|
|
7694
|
-
&.${rootClassName$
|
|
7700
|
+
&.${rootClassName$B} {
|
|
7695
7701
|
.MuiDialog-paper {
|
|
7696
7702
|
background: ${theme.palette.figma.background.level1.white};
|
|
7697
7703
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -7737,7 +7743,7 @@ const DotDialog = ({
|
|
|
7737
7743
|
cancelButtonProps,
|
|
7738
7744
|
cancelButtonVisible = true,
|
|
7739
7745
|
className,
|
|
7740
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
7746
|
+
'data-pendoid': dataPendoId = rootClassName$B,
|
|
7741
7747
|
'data-testid': dataTestId,
|
|
7742
7748
|
children,
|
|
7743
7749
|
closeIconVisible,
|
|
@@ -7750,7 +7756,7 @@ const DotDialog = ({
|
|
|
7750
7756
|
submitButtonProps,
|
|
7751
7757
|
title
|
|
7752
7758
|
}) => {
|
|
7753
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7759
|
+
const rootClasses = useStylesWithRootClass(rootClassName$B, className);
|
|
7754
7760
|
const cancelClasses = useStylesWithRootClass(cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.className, 'cancel-button');
|
|
7755
7761
|
const [isOpen, setIsOpen] = useState(open);
|
|
7756
7762
|
useEffect(() => {
|
|
@@ -7868,7 +7874,7 @@ const DotConfirmationDialog = ({
|
|
|
7868
7874
|
});
|
|
7869
7875
|
};
|
|
7870
7876
|
|
|
7871
|
-
const rootClassName$
|
|
7877
|
+
const rootClassName$A = 'dot-grid';
|
|
7872
7878
|
const frGetter = value => typeof value === 'number' ? `repeat(${value}, 1fr)` : value;
|
|
7873
7879
|
const breakpointsGetter$1 = (theme, columnsBreakpoints, columnGap, rowGap) => `${theme.breakpoints.up('xs')} {
|
|
7874
7880
|
column-gap: ${`${columnGap.xs}px`};
|
|
@@ -7920,7 +7926,7 @@ const Grid = ({
|
|
|
7920
7926
|
className,
|
|
7921
7927
|
children
|
|
7922
7928
|
}) => {
|
|
7923
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7929
|
+
const rootClasses = useStylesWithRootClass(rootClassName$A, className);
|
|
7924
7930
|
return jsx("div", {
|
|
7925
7931
|
className: rootClasses,
|
|
7926
7932
|
children: children
|
|
@@ -7939,7 +7945,7 @@ const StyledGrid = styled(Grid)`
|
|
|
7939
7945
|
theme,
|
|
7940
7946
|
width
|
|
7941
7947
|
}) => css`
|
|
7942
|
-
&.${rootClassName$
|
|
7948
|
+
&.${rootClassName$A} {
|
|
7943
7949
|
display: grid;
|
|
7944
7950
|
grid-template-rows: ${frGetter(rows)};
|
|
7945
7951
|
${columns ? `${columns && `grid-template-columns: ${frGetter(columns)}`};` : breakpointsGetter$1(theme, columnsBreakpoints, columnGap, rowGap)}
|
|
@@ -8145,7 +8151,7 @@ const CssGridDebug = ({
|
|
|
8145
8151
|
});
|
|
8146
8152
|
};
|
|
8147
8153
|
|
|
8148
|
-
const rootClassName$
|
|
8154
|
+
const rootClassName$z = 'dot-empty-state';
|
|
8149
8155
|
const StyledEmptyState = styled.div`
|
|
8150
8156
|
${({
|
|
8151
8157
|
theme
|
|
@@ -8180,9 +8186,9 @@ const StyledEmptyState = styled.div`
|
|
|
8180
8186
|
`}
|
|
8181
8187
|
`;
|
|
8182
8188
|
|
|
8183
|
-
const rootClassName$
|
|
8189
|
+
const rootClassName$y = 'dot-illustration';
|
|
8184
8190
|
const StyledIllustration = styled.span`
|
|
8185
|
-
&.${rootClassName$
|
|
8191
|
+
&.${rootClassName$y} {
|
|
8186
8192
|
display: inline-block;
|
|
8187
8193
|
}
|
|
8188
8194
|
`;
|
|
@@ -8199,16 +8205,16 @@ const DotIllustration = ({
|
|
|
8199
8205
|
tooltip,
|
|
8200
8206
|
tooltipPlacement = 'right-end'
|
|
8201
8207
|
}) => {
|
|
8202
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8208
|
+
const rootClasses = useStylesWithRootClass(rootClassName$y, className);
|
|
8203
8209
|
return jsx(DotTooltip, {
|
|
8204
8210
|
title: tooltip,
|
|
8205
8211
|
placement: tooltipPlacement,
|
|
8206
|
-
"data-testid": `${dataTestId || rootClassName$
|
|
8212
|
+
"data-testid": `${dataTestId || rootClassName$y}-tooltip`,
|
|
8207
8213
|
children: jsx(StyledIllustration, {
|
|
8208
8214
|
"aria-hidden": "false",
|
|
8209
8215
|
"aria-label": ariaLabel || title || 'Illustration',
|
|
8210
8216
|
className: rootClasses,
|
|
8211
|
-
"data-testid": dataTestId || rootClassName$
|
|
8217
|
+
"data-testid": dataTestId || rootClassName$y,
|
|
8212
8218
|
role: ariaRole,
|
|
8213
8219
|
children: jsx("img", {
|
|
8214
8220
|
alt: alt || 'Illustration',
|
|
@@ -8233,7 +8239,7 @@ const DotEmptyState = ({
|
|
|
8233
8239
|
subtitle,
|
|
8234
8240
|
title
|
|
8235
8241
|
}) => {
|
|
8236
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8242
|
+
const rootClasses = useStylesWithRootClass(rootClassName$z, className);
|
|
8237
8243
|
return jsxs(StyledEmptyState, {
|
|
8238
8244
|
"aria-label": ariaLabel,
|
|
8239
8245
|
className: rootClasses,
|
|
@@ -8293,6 +8299,7 @@ const StyledRadioGroupWrapper = styled.div`
|
|
|
8293
8299
|
}
|
|
8294
8300
|
|
|
8295
8301
|
.MuiFormLabel-root {
|
|
8302
|
+
color: ${theme.palette.figma.typography.black};
|
|
8296
8303
|
display: inline;
|
|
8297
8304
|
width: 100%;
|
|
8298
8305
|
}
|
|
@@ -8315,20 +8322,20 @@ const StyledRadioGroup = styled(RadioGroup)`
|
|
|
8315
8322
|
&.${groupClassName} {
|
|
8316
8323
|
padding-left: ${theme.spacing(2.5)};
|
|
8317
8324
|
|
|
8318
|
-
.${rootClassName$
|
|
8325
|
+
.${rootClassName$G} {
|
|
8319
8326
|
margin: 0;
|
|
8320
8327
|
}
|
|
8321
8328
|
}
|
|
8322
8329
|
`}
|
|
8323
8330
|
`;
|
|
8324
8331
|
|
|
8325
|
-
const rootClassName$
|
|
8332
|
+
const rootClassName$x = 'dot-date-picker';
|
|
8326
8333
|
const popperClassName = 'dot-date-picker-popper';
|
|
8327
8334
|
const containerClassName$2 = 'dot-date-picker-container';
|
|
8328
8335
|
const rectanglePickersDayClassName = 'dot-rectangle-pickers-day';
|
|
8329
8336
|
const StyledDatePickerContainer = styled.div`
|
|
8330
8337
|
${() => css`
|
|
8331
|
-
&.${rootClassName$
|
|
8338
|
+
&.${rootClassName$x} .full-width {
|
|
8332
8339
|
width: 100%;
|
|
8333
8340
|
}
|
|
8334
8341
|
`}
|
|
@@ -8337,7 +8344,7 @@ const StyledDatePicker = styled(DatePicker)`
|
|
|
8337
8344
|
${({
|
|
8338
8345
|
theme
|
|
8339
8346
|
}) => css`
|
|
8340
|
-
&.${rootClassName$
|
|
8347
|
+
&.${rootClassName$x} {
|
|
8341
8348
|
${pickerInputStyles(theme)};
|
|
8342
8349
|
|
|
8343
8350
|
.Mui-disabled.MuiInputBase-root,
|
|
@@ -8377,7 +8384,7 @@ const StyledPickersDay = styled(PickersDay)`
|
|
|
8377
8384
|
`}
|
|
8378
8385
|
`;
|
|
8379
8386
|
|
|
8380
|
-
const rootClassName$
|
|
8387
|
+
const rootClassName$w = 'dot-time-picker';
|
|
8381
8388
|
const containerClassName$1 = 'dot-time-picker-container';
|
|
8382
8389
|
const TIME_SELECTION_HEIGHT_SPACING = 34.5;
|
|
8383
8390
|
const TIME_SELECTION_WIDTH_SPACING = 14.5;
|
|
@@ -8448,7 +8455,7 @@ const StyledTimePicker = styled(TimePicker)`
|
|
|
8448
8455
|
${({
|
|
8449
8456
|
theme
|
|
8450
8457
|
}) => css`
|
|
8451
|
-
&.${rootClassName$
|
|
8458
|
+
&.${rootClassName$w} {
|
|
8452
8459
|
${pickerInputStyles(theme)};
|
|
8453
8460
|
|
|
8454
8461
|
.Mui-disabled.MuiInputBase-root,
|
|
@@ -8467,36 +8474,36 @@ const StyledTimePicker = styled(TimePicker)`
|
|
|
8467
8474
|
`}
|
|
8468
8475
|
`;
|
|
8469
8476
|
|
|
8470
|
-
const rootClassName$
|
|
8477
|
+
const rootClassName$v = 'dot-form';
|
|
8471
8478
|
const StyledFormContainer = styled.div`
|
|
8472
8479
|
${({
|
|
8473
8480
|
theme
|
|
8474
8481
|
}) => css`
|
|
8475
|
-
&.${rootClassName$
|
|
8482
|
+
&.${rootClassName$v} {
|
|
8476
8483
|
margin: ${theme.spacing(3, 0)};
|
|
8477
8484
|
|
|
8478
|
-
.${rootClassName$
|
|
8479
|
-
.${rootClassName$
|
|
8480
|
-
.${rootClassName$
|
|
8485
|
+
.${rootClassName$E},
|
|
8486
|
+
.${rootClassName$G},
|
|
8487
|
+
.${rootClassName$18},
|
|
8481
8488
|
.${rootSelectClassName},
|
|
8482
|
-
.${rootClassName$
|
|
8483
|
-
.${rootClassName$
|
|
8489
|
+
.${rootClassName$x},
|
|
8490
|
+
.${rootClassName$w} {
|
|
8484
8491
|
margin: ${theme.spacing(1, 0)};
|
|
8485
8492
|
}
|
|
8486
8493
|
|
|
8487
8494
|
label
|
|
8488
|
-
+ .${rootClassName$
|
|
8495
|
+
+ .${rootClassName$18},
|
|
8489
8496
|
label
|
|
8490
8497
|
+ .${rootSelectClassName},
|
|
8491
8498
|
label
|
|
8492
|
-
+ .${rootClassName$
|
|
8499
|
+
+ .${rootClassName$x},
|
|
8493
8500
|
label
|
|
8494
|
-
+ .${rootClassName$
|
|
8501
|
+
+ .${rootClassName$w} {
|
|
8495
8502
|
margin: ${theme.spacing(0, 0, 1, 0)};
|
|
8496
8503
|
}
|
|
8497
8504
|
|
|
8498
|
-
.${rootClassName$
|
|
8499
|
-
.${rootClassName$
|
|
8505
|
+
.${rootClassName$D}, .${groupClassName} {
|
|
8506
|
+
.${rootClassName$G} {
|
|
8500
8507
|
margin: 0;
|
|
8501
8508
|
}
|
|
8502
8509
|
}
|
|
@@ -8511,7 +8518,7 @@ const DotForm = ({
|
|
|
8511
8518
|
'data-testid': dataTestId,
|
|
8512
8519
|
onSubmit
|
|
8513
8520
|
}) => {
|
|
8514
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8521
|
+
const rootClasses = useStylesWithRootClass(rootClassName$v, className);
|
|
8515
8522
|
return jsx("form", {
|
|
8516
8523
|
"aria-label": ariaLabel,
|
|
8517
8524
|
"data-testid": dataTestId,
|
|
@@ -8524,10 +8531,10 @@ const DotForm = ({
|
|
|
8524
8531
|
});
|
|
8525
8532
|
};
|
|
8526
8533
|
|
|
8527
|
-
const rootClassName$
|
|
8534
|
+
const rootClassName$u = 'dot-dynamic-form';
|
|
8528
8535
|
const StyledDynamicForm = styled(DotForm)`
|
|
8529
8536
|
${() => css`
|
|
8530
|
-
&.${rootClassName$
|
|
8537
|
+
&.${rootClassName$u} {
|
|
8531
8538
|
}
|
|
8532
8539
|
`}
|
|
8533
8540
|
`;
|
|
@@ -8818,12 +8825,12 @@ const DotInputSelect = ({
|
|
|
8818
8825
|
});
|
|
8819
8826
|
};
|
|
8820
8827
|
|
|
8821
|
-
const rootClassName$
|
|
8828
|
+
const rootClassName$t = 'dot-progress-button';
|
|
8822
8829
|
const StyledProgressButton = styled(DotButton)`
|
|
8823
8830
|
${({
|
|
8824
8831
|
theme
|
|
8825
8832
|
}) => css`
|
|
8826
|
-
&.${rootClassName$
|
|
8833
|
+
&.${rootClassName$t} {
|
|
8827
8834
|
.hidden {
|
|
8828
8835
|
// hide children but preserve its space so that
|
|
8829
8836
|
// button's dimensions don't change
|
|
@@ -8848,7 +8855,7 @@ const DotProgressButton = ({
|
|
|
8848
8855
|
ariaLabel,
|
|
8849
8856
|
children,
|
|
8850
8857
|
className,
|
|
8851
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
8858
|
+
'data-pendoid': dataPendoId = rootClassName$t,
|
|
8852
8859
|
'data-testid': dataTestId,
|
|
8853
8860
|
disabled = false,
|
|
8854
8861
|
disableRipple = false,
|
|
@@ -8861,7 +8868,7 @@ const DotProgressButton = ({
|
|
|
8861
8868
|
tooltip,
|
|
8862
8869
|
type = 'primary'
|
|
8863
8870
|
}) => {
|
|
8864
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8871
|
+
const rootClasses = useStylesWithRootClass(rootClassName$t, className);
|
|
8865
8872
|
const isButtonDisabled = disabled || isLoading;
|
|
8866
8873
|
const titleClasses = useStylesWithRootClass(isLoading ? 'hidden' : '');
|
|
8867
8874
|
const progressCircleSize = size === 'large' ? SPINNER_LARGE_SIZE : SPINNER_DEFAULT_SIZE;
|
|
@@ -8889,12 +8896,12 @@ const DotProgressButton = ({
|
|
|
8889
8896
|
});
|
|
8890
8897
|
};
|
|
8891
8898
|
|
|
8892
|
-
const rootClassName$
|
|
8899
|
+
const rootClassName$s = 'dot-radio';
|
|
8893
8900
|
const StyledRadioButton = styled(Radio)`
|
|
8894
8901
|
${({
|
|
8895
8902
|
theme
|
|
8896
8903
|
}) => css`
|
|
8897
|
-
&.${rootClassName$
|
|
8904
|
+
&.${rootClassName$s} {
|
|
8898
8905
|
padding: 8px;
|
|
8899
8906
|
|
|
8900
8907
|
svg {
|
|
@@ -8912,7 +8919,7 @@ function DotRadioButton({
|
|
|
8912
8919
|
ariaLabel,
|
|
8913
8920
|
checked,
|
|
8914
8921
|
className,
|
|
8915
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
8922
|
+
'data-pendoid': dataPendoId = rootClassName$G,
|
|
8916
8923
|
'data-testid': dataTestId,
|
|
8917
8924
|
disabled,
|
|
8918
8925
|
id,
|
|
@@ -8925,7 +8932,7 @@ function DotRadioButton({
|
|
|
8925
8932
|
size = 'medium',
|
|
8926
8933
|
value
|
|
8927
8934
|
}) {
|
|
8928
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8935
|
+
const rootClasses = useStylesWithRootClass(rootClassName$G, className);
|
|
8929
8936
|
const handleChange = event => {
|
|
8930
8937
|
onChange && onChange(event, event.target.value);
|
|
8931
8938
|
};
|
|
@@ -8933,7 +8940,7 @@ function DotRadioButton({
|
|
|
8933
8940
|
const radioControl = jsx(StyledRadioButton, {
|
|
8934
8941
|
checked: checked,
|
|
8935
8942
|
classes: {
|
|
8936
|
-
root: rootClassName$
|
|
8943
|
+
root: rootClassName$s
|
|
8937
8944
|
},
|
|
8938
8945
|
color: "primary",
|
|
8939
8946
|
"data-pendoid": dataPendoId,
|
|
@@ -8979,7 +8986,7 @@ const DotRadioGroup = ({
|
|
|
8979
8986
|
size = 'medium'
|
|
8980
8987
|
}) => {
|
|
8981
8988
|
const placement = `${placementClassName}${labelPlacement}`;
|
|
8982
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8989
|
+
const rootClasses = useStylesWithRootClass(rootClassName$E, className, placement);
|
|
8983
8990
|
const radioValue = value || defaultValue;
|
|
8984
8991
|
const [selectedValue, setSelectedValue] = useState(radioValue);
|
|
8985
8992
|
/* This will ensure that value can be updated from the outside */
|
|
@@ -9044,7 +9051,7 @@ const DotRadioGroup = ({
|
|
|
9044
9051
|
});
|
|
9045
9052
|
};
|
|
9046
9053
|
|
|
9047
|
-
const rootClassName$
|
|
9054
|
+
const rootClassName$r = 'dot-switch';
|
|
9048
9055
|
const StyledSwitch = styled(Switch)`
|
|
9049
9056
|
${({
|
|
9050
9057
|
theme
|
|
@@ -9073,7 +9080,7 @@ const DotSwitch = ({
|
|
|
9073
9080
|
checked,
|
|
9074
9081
|
className,
|
|
9075
9082
|
color,
|
|
9076
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
9083
|
+
'data-pendoid': dataPendoId = rootClassName$r,
|
|
9077
9084
|
'data-testid': dataTestId,
|
|
9078
9085
|
disabled = false,
|
|
9079
9086
|
id,
|
|
@@ -9083,7 +9090,7 @@ const DotSwitch = ({
|
|
|
9083
9090
|
onChange,
|
|
9084
9091
|
size = 'medium'
|
|
9085
9092
|
}) => {
|
|
9086
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
9093
|
+
const rootClasses = useStylesWithRootClass(rootClassName$r, className);
|
|
9087
9094
|
const handleChange = event => {
|
|
9088
9095
|
onChange && onChange(event);
|
|
9089
9096
|
};
|
|
@@ -9113,7 +9120,7 @@ const DotSwitch = ({
|
|
|
9113
9120
|
tabIndex: 0
|
|
9114
9121
|
});
|
|
9115
9122
|
return jsx(StyledFormControlLabel, {
|
|
9116
|
-
className: rootClassName$
|
|
9123
|
+
className: rootClassName$G,
|
|
9117
9124
|
control: switchControl,
|
|
9118
9125
|
label: label,
|
|
9119
9126
|
labelPlacement: labelPlacement
|
|
@@ -9434,7 +9441,7 @@ const DotDynamicForm = ({
|
|
|
9434
9441
|
onChange,
|
|
9435
9442
|
onSubmit
|
|
9436
9443
|
}) => {
|
|
9437
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
9444
|
+
const rootClasses = useStylesWithRootClass(rootClassName$u, className);
|
|
9438
9445
|
// Memoize this operation so that is doesn't get executed each time this
|
|
9439
9446
|
// component re-renders
|
|
9440
9447
|
const initialFormState = useMemo(() => getInitialFormState(config, liveValidation), [config, liveValidation, getInitialFormState]);
|
|
@@ -9680,7 +9687,7 @@ const DotDynamicForm = ({
|
|
|
9680
9687
|
});
|
|
9681
9688
|
};
|
|
9682
9689
|
|
|
9683
|
-
const rootClassName$
|
|
9690
|
+
const rootClassName$q = 'dot-inline-edit';
|
|
9684
9691
|
const editModeClassName = 'dot-edit-mode';
|
|
9685
9692
|
const viewModeClassName = 'dot-view-mode';
|
|
9686
9693
|
const placeholderClassName = 'dot-placeholder';
|
|
@@ -9692,7 +9699,7 @@ const StyledInlineEdit = styled.div`
|
|
|
9692
9699
|
theme,
|
|
9693
9700
|
fullWidth
|
|
9694
9701
|
}) => css`
|
|
9695
|
-
&.${rootClassName$
|
|
9702
|
+
&.${rootClassName$q} {
|
|
9696
9703
|
align-items: center;
|
|
9697
9704
|
color: ${theme.palette.figma.typography.black};
|
|
9698
9705
|
display: ${fullWidth ? 'flex' : 'inline-flex'};
|
|
@@ -9904,7 +9911,7 @@ const DotInlineEdit = ({
|
|
|
9904
9911
|
bindings,
|
|
9905
9912
|
charactersLimit,
|
|
9906
9913
|
className,
|
|
9907
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
9914
|
+
'data-pendoid': dataPendoId = rootClassName$q,
|
|
9908
9915
|
'data-testid': dataTestId,
|
|
9909
9916
|
fullWidth = true,
|
|
9910
9917
|
hideActionButtons,
|
|
@@ -9937,7 +9944,7 @@ const DotInlineEdit = ({
|
|
|
9937
9944
|
}
|
|
9938
9945
|
}, [value]);
|
|
9939
9946
|
const isSaveDisabled = checkIfEmptyValue(inputValue);
|
|
9940
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
9947
|
+
const rootClasses = useStylesWithRootClass(rootClassName$q, className, editing ? editModeClassName : '');
|
|
9941
9948
|
const handleShowTooltip = visible => {
|
|
9942
9949
|
if (!editing) {
|
|
9943
9950
|
setShowTooltip(visible);
|
|
@@ -10116,13 +10123,13 @@ const DotInlineEdit = ({
|
|
|
10116
10123
|
});
|
|
10117
10124
|
};
|
|
10118
10125
|
|
|
10119
|
-
const rootClassName$
|
|
10126
|
+
const rootClassName$p = 'dot-navigation-rail';
|
|
10120
10127
|
const StyledNavigationRail = styled.div`
|
|
10121
10128
|
${({
|
|
10122
10129
|
theme,
|
|
10123
10130
|
railItemPosition
|
|
10124
10131
|
}) => css`
|
|
10125
|
-
&.${rootClassName$
|
|
10132
|
+
&.${rootClassName$p} {
|
|
10126
10133
|
background: ${theme.palette.figma.neutral.elevated};
|
|
10127
10134
|
border-left: 1px solid ${theme.palette.figma.border.default};
|
|
10128
10135
|
display: flex;
|
|
@@ -10169,7 +10176,7 @@ const DotNavigationRail = ({
|
|
|
10169
10176
|
railItems,
|
|
10170
10177
|
selectedIndex = 0
|
|
10171
10178
|
}) => {
|
|
10172
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
10179
|
+
const rootClasses = useStylesWithRootClass(rootClassName$p, className);
|
|
10173
10180
|
const [selectedItemIndex, setSelectedItemIndex] = useState(selectedIndex);
|
|
10174
10181
|
/* Used to change selected index programmatically from the consumer component */
|
|
10175
10182
|
useEffect(() => {
|
|
@@ -10220,21 +10227,23 @@ const DotNavigationRail = ({
|
|
|
10220
10227
|
});
|
|
10221
10228
|
};
|
|
10222
10229
|
|
|
10223
|
-
const rootClassName$
|
|
10230
|
+
const rootClassName$o = 'dot-pill';
|
|
10224
10231
|
const StyledPill = styled(Chip)`
|
|
10225
10232
|
${({
|
|
10226
10233
|
theme
|
|
10227
10234
|
}) => css`
|
|
10228
|
-
&.${rootClassName$
|
|
10235
|
+
&.${rootClassName$o} {
|
|
10229
10236
|
background-color: ${({
|
|
10230
|
-
backgroundcolor
|
|
10237
|
+
backgroundcolor,
|
|
10238
|
+
variant
|
|
10231
10239
|
}) => {
|
|
10232
|
-
|
|
10240
|
+
const defaultBackground = variant === 'filled' ? theme.palette.grey[200] : theme.palette.grey[50];
|
|
10241
|
+
return backgroundcolor !== null && backgroundcolor !== void 0 ? backgroundcolor : defaultBackground;
|
|
10233
10242
|
}};
|
|
10234
10243
|
border-color: ${({
|
|
10235
10244
|
bordercolor
|
|
10236
10245
|
}) => {
|
|
10237
|
-
return bordercolor ? bordercolor : theme.palette.
|
|
10246
|
+
return bordercolor ? bordercolor : theme.palette.grey[200];
|
|
10238
10247
|
}};
|
|
10239
10248
|
color: ${({
|
|
10240
10249
|
labelcolor
|
|
@@ -10245,7 +10254,7 @@ const StyledPill = styled(Chip)`
|
|
|
10245
10254
|
color: ${({
|
|
10246
10255
|
labelcolor
|
|
10247
10256
|
}) => {
|
|
10248
|
-
return labelcolor ? labelcolor : theme.palette.
|
|
10257
|
+
return labelcolor ? labelcolor : theme.palette.grey.main;
|
|
10249
10258
|
}};
|
|
10250
10259
|
margin: ${theme.spacing(0, -0.5, 0, 1)};
|
|
10251
10260
|
}
|
|
@@ -10264,18 +10273,9 @@ const StyledPill = styled(Chip)`
|
|
|
10264
10273
|
}
|
|
10265
10274
|
}
|
|
10266
10275
|
|
|
10267
|
-
&.default {
|
|
10268
|
-
background-color: ${theme.palette.grey[50]};
|
|
10269
|
-
border-color: ${theme.palette.grey[200]};
|
|
10270
|
-
color: ${theme.palette.layer.n700};
|
|
10271
|
-
.dot-icon {
|
|
10272
|
-
color: ${theme.palette.grey.main};
|
|
10273
|
-
}
|
|
10274
|
-
}
|
|
10275
|
-
|
|
10276
10276
|
&.success {
|
|
10277
|
-
background-color: ${theme.palette.success
|
|
10278
|
-
border-color: ${theme.palette.success.
|
|
10277
|
+
background-color: ${theme.palette.figma.success.light};
|
|
10278
|
+
border-color: ${theme.palette.figma.success.normal};
|
|
10279
10279
|
color: ${theme.palette.layer.n700};
|
|
10280
10280
|
.dot-icon {
|
|
10281
10281
|
color: ${theme.palette.success.main};
|
|
@@ -10283,8 +10283,8 @@ const StyledPill = styled(Chip)`
|
|
|
10283
10283
|
}
|
|
10284
10284
|
|
|
10285
10285
|
&.warning {
|
|
10286
|
-
background-color: ${theme.palette.warning
|
|
10287
|
-
border-color: ${theme.palette.warning.
|
|
10286
|
+
background-color: ${theme.palette.figma.warning.light};
|
|
10287
|
+
border-color: ${theme.palette.figma.warning.normal};
|
|
10288
10288
|
color: ${theme.palette.layer.n700};
|
|
10289
10289
|
.dot-icon {
|
|
10290
10290
|
color: ${theme.palette.warning.main};
|
|
@@ -10292,8 +10292,8 @@ const StyledPill = styled(Chip)`
|
|
|
10292
10292
|
}
|
|
10293
10293
|
|
|
10294
10294
|
&.in-progress {
|
|
10295
|
-
background-color: ${theme.palette.primary
|
|
10296
|
-
border-color: ${theme.palette.primary.
|
|
10295
|
+
background-color: ${theme.palette.figma.primary.light};
|
|
10296
|
+
border-color: ${theme.palette.figma.primary.normal};
|
|
10297
10297
|
color: ${theme.palette.layer.n700};
|
|
10298
10298
|
.dot-icon {
|
|
10299
10299
|
color: ${theme.palette.primary.main};
|
|
@@ -10302,15 +10302,6 @@ const StyledPill = styled(Chip)`
|
|
|
10302
10302
|
}
|
|
10303
10303
|
|
|
10304
10304
|
&.MuiChip-filled {
|
|
10305
|
-
&.default {
|
|
10306
|
-
background-color: ${theme.palette.grey[200]};
|
|
10307
|
-
border-color: ${theme.palette.grey[200]};
|
|
10308
|
-
color: ${theme.palette.layer.n700};
|
|
10309
|
-
.dot-icon {
|
|
10310
|
-
color: ${theme.palette.grey.main};
|
|
10311
|
-
}
|
|
10312
|
-
}
|
|
10313
|
-
|
|
10314
10305
|
&.error {
|
|
10315
10306
|
background-color: ${theme.palette.error.main};
|
|
10316
10307
|
border-color: ${theme.palette.error.main};
|
|
@@ -10364,7 +10355,7 @@ const DotPill = ({
|
|
|
10364
10355
|
status = 'default',
|
|
10365
10356
|
variant = 'filled'
|
|
10366
10357
|
}) => {
|
|
10367
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
10358
|
+
const rootClasses = useStylesWithRootClass(rootClassName$o, className, status);
|
|
10368
10359
|
return jsx(StyledPill, {
|
|
10369
10360
|
"aria-label": ariaLabel,
|
|
10370
10361
|
bordercolor: bordercolor,
|
|
@@ -10382,12 +10373,12 @@ const DotPill = ({
|
|
|
10382
10373
|
});
|
|
10383
10374
|
};
|
|
10384
10375
|
|
|
10385
|
-
const rootClassName$
|
|
10376
|
+
const rootClassName$n = 'dot-skeleton';
|
|
10386
10377
|
const StyledSkeleton = styled(Skeleton)`
|
|
10387
10378
|
${({
|
|
10388
10379
|
theme
|
|
10389
10380
|
}) => css`
|
|
10390
|
-
&.${rootClassName$
|
|
10381
|
+
&.${rootClassName$n} {
|
|
10391
10382
|
background-color: ${theme.palette.figma.border.darker};
|
|
10392
10383
|
}
|
|
10393
10384
|
`}
|
|
@@ -10402,7 +10393,7 @@ const DotSkeleton = ({
|
|
|
10402
10393
|
width,
|
|
10403
10394
|
variant
|
|
10404
10395
|
}) => {
|
|
10405
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
10396
|
+
const rootClasses = useStylesWithRootClass(rootClassName$n, className);
|
|
10406
10397
|
return jsx(StyledSkeleton, {
|
|
10407
10398
|
animation: "wave",
|
|
10408
10399
|
"aria-label": ariaLabel,
|
|
@@ -10436,18 +10427,18 @@ const getSnackbarTitleFromSeverity = severity => {
|
|
|
10436
10427
|
}
|
|
10437
10428
|
};
|
|
10438
10429
|
|
|
10439
|
-
const rootClassName$
|
|
10430
|
+
const rootClassName$m = 'dot-snackbar';
|
|
10440
10431
|
const StyledSnackbar = styled(Snackbar)`
|
|
10441
10432
|
${({
|
|
10442
10433
|
theme,
|
|
10443
10434
|
width,
|
|
10444
10435
|
$anchorOriginTop
|
|
10445
10436
|
}) => css`
|
|
10446
|
-
&.${rootClassName$
|
|
10437
|
+
&.${rootClassName$m} {
|
|
10447
10438
|
.MuiAlert-message {
|
|
10448
10439
|
word-break: break-word;
|
|
10449
10440
|
}
|
|
10450
|
-
.${rootClassName$
|
|
10441
|
+
.${rootClassName$16} {
|
|
10451
10442
|
align-items: flex-start;
|
|
10452
10443
|
}
|
|
10453
10444
|
&.MuiSnackbar-anchorOriginTopLeft,
|
|
@@ -10499,7 +10490,7 @@ const DotSnackbar = ({
|
|
|
10499
10490
|
}) => {
|
|
10500
10491
|
const hasActions = !!(primaryAction || secondaryAction);
|
|
10501
10492
|
const calculatedAutoHideDuration = autoHideDuration === null || autoHideDuration > 0 ? autoHideDuration : addAutoHideDuration(severity);
|
|
10502
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
10493
|
+
const rootClasses = useStylesWithRootClass(rootClassName$m, className);
|
|
10503
10494
|
const handleSnackbarClose = reason => {
|
|
10504
10495
|
if (!reason || hideOnClickAway || !hideOnClickAway && reason !== 'clickaway') {
|
|
10505
10496
|
onClose();
|
|
@@ -10557,10 +10548,10 @@ const DotSnackbar = ({
|
|
|
10557
10548
|
});
|
|
10558
10549
|
};
|
|
10559
10550
|
|
|
10560
|
-
const rootClassName$
|
|
10551
|
+
const rootClassName$l = 'dot-snackbar-container';
|
|
10561
10552
|
const StyledSnackbarContainer = styled.div`
|
|
10562
10553
|
${() => css`
|
|
10563
|
-
&.${rootClassName$
|
|
10554
|
+
&.${rootClassName$l} {
|
|
10564
10555
|
position: absolute;
|
|
10565
10556
|
top: 0;
|
|
10566
10557
|
width: 250px;
|
|
@@ -10591,10 +10582,10 @@ const DotSnackbarContainer = ({
|
|
|
10591
10582
|
};
|
|
10592
10583
|
}
|
|
10593
10584
|
return jsx(StyledSnackbarContainer, {
|
|
10594
|
-
className: rootClassName$
|
|
10585
|
+
className: rootClassName$l,
|
|
10595
10586
|
children: jsx("div", {
|
|
10596
|
-
className: rootClassName$
|
|
10597
|
-
"data-testid": rootClassName$
|
|
10587
|
+
className: rootClassName$l,
|
|
10588
|
+
"data-testid": rootClassName$l,
|
|
10598
10589
|
children: alerts.slice().reverse().map(alert => {
|
|
10599
10590
|
return jsx(DotSnackbar, {
|
|
10600
10591
|
autoHideDuration: alert.autoHideDuration,
|
|
@@ -10657,12 +10648,12 @@ const useDotSnackbarContext = () => {
|
|
|
10657
10648
|
return useContext(DotSnackbarContext);
|
|
10658
10649
|
};
|
|
10659
10650
|
|
|
10660
|
-
const rootClassName$
|
|
10651
|
+
const rootClassName$k = 'dot-split-button-group';
|
|
10661
10652
|
const StyledSplitButtonGroup = styled(ButtonGroup)`
|
|
10662
10653
|
${({
|
|
10663
10654
|
theme
|
|
10664
10655
|
}) => css`
|
|
10665
|
-
&.${rootClassName$
|
|
10656
|
+
&.${rootClassName$k} {
|
|
10666
10657
|
&.outlined,
|
|
10667
10658
|
&.text {
|
|
10668
10659
|
.expand-button {
|
|
@@ -10729,7 +10720,7 @@ const DotSplitButton = ({
|
|
|
10729
10720
|
autoFocus = false,
|
|
10730
10721
|
ariaLabel,
|
|
10731
10722
|
className,
|
|
10732
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
10723
|
+
'data-pendoid': dataPendoId = rootClassName$k,
|
|
10733
10724
|
'data-testid': dataTestId,
|
|
10734
10725
|
defaultMainOptionKey,
|
|
10735
10726
|
disabled = false,
|
|
@@ -10744,7 +10735,7 @@ const DotSplitButton = ({
|
|
|
10744
10735
|
tooltipPlacement,
|
|
10745
10736
|
type = 'primary'
|
|
10746
10737
|
}) => {
|
|
10747
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
10738
|
+
const rootClasses = useStylesWithRootClass(rootClassName$k, className, type, disabled ? 'disabled' : '');
|
|
10748
10739
|
const [open, setOpen] = useState(false);
|
|
10749
10740
|
const anchorRef = useRef(null);
|
|
10750
10741
|
const hasEmptyOptions = options.length === 0;
|
|
@@ -10810,14 +10801,14 @@ const DotSplitButton = ({
|
|
|
10810
10801
|
});
|
|
10811
10802
|
};
|
|
10812
10803
|
|
|
10813
|
-
const rootClassName$
|
|
10804
|
+
const rootClassName$j = 'dot-stepper';
|
|
10814
10805
|
const stepListClassName = 'dot-stepper-list';
|
|
10815
10806
|
const contentClassName = 'dot-stepper-content';
|
|
10816
10807
|
const StyledStepper = styled.div`
|
|
10817
10808
|
${({
|
|
10818
10809
|
theme
|
|
10819
10810
|
}) => css`
|
|
10820
|
-
&.${rootClassName$
|
|
10811
|
+
&.${rootClassName$j} {
|
|
10821
10812
|
display: flex;
|
|
10822
10813
|
align-items: flex-start;
|
|
10823
10814
|
padding: 0;
|
|
@@ -11090,7 +11081,7 @@ const DotStepper = ({
|
|
|
11090
11081
|
const displayFinalContent = finalContent && currentStep > steps.length;
|
|
11091
11082
|
const displayCancelButton = !!(!displayInitialContent && !displayFinalContent && onCancel);
|
|
11092
11083
|
const isLastStep = currentStep === steps.length && !finalContent || currentStep > steps.length && finalContent;
|
|
11093
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11084
|
+
const rootClasses = useStylesWithRootClass(rootClassName$j, stepsPosition, className);
|
|
11094
11085
|
const stepContentClasses = displayInitialContent || displayFinalContent ? 'center-content' : '';
|
|
11095
11086
|
const stickyBottomClasses = useStylesWithRootClass('actions-container', isStickyBottom ? 'with-top-border' : '');
|
|
11096
11087
|
const actionsClasses = useStylesWithRootClass('actions', displayInitialContent || displayFinalContent ? 'center-actions' : '');
|
|
@@ -11289,6 +11280,175 @@ const DotStepper = ({
|
|
|
11289
11280
|
});
|
|
11290
11281
|
};
|
|
11291
11282
|
|
|
11283
|
+
const rootClassName$i = 'dot-table-pagination-custom-actions';
|
|
11284
|
+
const StyledTablePaginationCustomActions = styled.div`
|
|
11285
|
+
${({
|
|
11286
|
+
theme
|
|
11287
|
+
}) => css`
|
|
11288
|
+
&.${rootClassName$i} {
|
|
11289
|
+
margin-left: ${theme.spacing(2.5)};
|
|
11290
|
+
display: flex;
|
|
11291
|
+
align-items: center;
|
|
11292
|
+
|
|
11293
|
+
.page-picker-button {
|
|
11294
|
+
width: ${theme.spacing(5)};
|
|
11295
|
+
}
|
|
11296
|
+
|
|
11297
|
+
.page-control-button {
|
|
11298
|
+
padding: ${theme.spacing(1.5)};
|
|
11299
|
+
.dot-icon {
|
|
11300
|
+
font-size: ${theme.typography.body1.fontSize}px;
|
|
11301
|
+
i {
|
|
11302
|
+
height: ${theme.typography.body1.fontSize}px;
|
|
11303
|
+
}
|
|
11304
|
+
}
|
|
11305
|
+
}
|
|
11306
|
+
|
|
11307
|
+
.page-selection {
|
|
11308
|
+
width: ${theme.spacing(7)};
|
|
11309
|
+
padding: ${theme.spacing(1, 0)};
|
|
11310
|
+
display: flex;
|
|
11311
|
+
|
|
11312
|
+
.pagination-page-picker {
|
|
11313
|
+
max-height: ${theme.spacing(18)};
|
|
11314
|
+
width: 100%;
|
|
11315
|
+
overflow: auto;
|
|
11316
|
+
|
|
11317
|
+
/* Hide scrollbar for Chrome, Safari and Opera */
|
|
11318
|
+
::-webkit-scrollbar {
|
|
11319
|
+
display: none;
|
|
11320
|
+
}
|
|
11321
|
+
|
|
11322
|
+
/* Hide scrollbar for IE, Edge and Firefox */
|
|
11323
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
11324
|
+
scrollbar-width: none; /* Firefox */
|
|
11325
|
+
|
|
11326
|
+
.page-number-item {
|
|
11327
|
+
height: ${theme.spacing(4)};
|
|
11328
|
+
text-align: center;
|
|
11329
|
+
}
|
|
11330
|
+
}
|
|
11331
|
+
}
|
|
11332
|
+
}
|
|
11333
|
+
`}
|
|
11334
|
+
`;
|
|
11335
|
+
|
|
11336
|
+
const scrollOptions = {
|
|
11337
|
+
behavior: 'auto',
|
|
11338
|
+
block: 'start',
|
|
11339
|
+
inline: 'nearest'
|
|
11340
|
+
};
|
|
11341
|
+
const DotTablePaginationCustomActions = props => {
|
|
11342
|
+
const {
|
|
11343
|
+
count,
|
|
11344
|
+
page,
|
|
11345
|
+
rowsPerPage,
|
|
11346
|
+
onPageChange
|
|
11347
|
+
} = props;
|
|
11348
|
+
const pagePickerButtonRef = useRef(null);
|
|
11349
|
+
const pageSelectionRef = useRef(null);
|
|
11350
|
+
const [showPageSelectionPopper, setShowPageSelectionPopper] = useState(false);
|
|
11351
|
+
const pageToDisplay = page + 1;
|
|
11352
|
+
const numberOfPages = Math.ceil(count / rowsPerPage);
|
|
11353
|
+
const isFirstPage = pageToDisplay === 1;
|
|
11354
|
+
const isLastPage = pageToDisplay === numberOfPages;
|
|
11355
|
+
useEffect(() => {
|
|
11356
|
+
if (showPageSelectionPopper) {
|
|
11357
|
+
scrollToSelectedPage();
|
|
11358
|
+
}
|
|
11359
|
+
}, [showPageSelectionPopper]);
|
|
11360
|
+
const scrollToSelectedPage = () => {
|
|
11361
|
+
if (!(pageSelectionRef === null || pageSelectionRef === void 0 ? void 0 : pageSelectionRef.current)) return;
|
|
11362
|
+
pageSelectionRef.current.children[page].scrollIntoView(scrollOptions);
|
|
11363
|
+
};
|
|
11364
|
+
const handleBackButtonClick = event => {
|
|
11365
|
+
!isFirstPage && onPageChange(event, page - 1);
|
|
11366
|
+
};
|
|
11367
|
+
const handleNextButtonClick = event => {
|
|
11368
|
+
!isLastPage && onPageChange(event, page + 1);
|
|
11369
|
+
};
|
|
11370
|
+
const handlePageChange = newPage => {
|
|
11371
|
+
onPageChange(null, newPage);
|
|
11372
|
+
setShowPageSelectionPopper(false);
|
|
11373
|
+
pagePickerButtonRef === null || pagePickerButtonRef === void 0 ? void 0 : pagePickerButtonRef.current.focus();
|
|
11374
|
+
};
|
|
11375
|
+
const handlePageKeydown = pageNumber => event => {
|
|
11376
|
+
const prevElement = pageNumber > 0 && pageSelectionRef.current.children[pageNumber - 1];
|
|
11377
|
+
const nextElement = pageNumber < numberOfPages - 1 && pageSelectionRef.current.children[pageNumber + 1];
|
|
11378
|
+
if (event.key === 'ArrowUp' && prevElement) {
|
|
11379
|
+
event.preventDefault();
|
|
11380
|
+
prevElement.focus();
|
|
11381
|
+
} else if (event.key === 'ArrowDown' && nextElement) {
|
|
11382
|
+
event.preventDefault();
|
|
11383
|
+
nextElement.focus();
|
|
11384
|
+
} else if (event.key === 'Tab' || event.key === 'Escape') {
|
|
11385
|
+
event.preventDefault();
|
|
11386
|
+
setShowPageSelectionPopper(false);
|
|
11387
|
+
pagePickerButtonRef === null || pagePickerButtonRef === void 0 ? void 0 : pagePickerButtonRef.current.focus();
|
|
11388
|
+
}
|
|
11389
|
+
};
|
|
11390
|
+
const renderPagesList = () => {
|
|
11391
|
+
return Array.from(Array(numberOfPages)).map((_value, index) => {
|
|
11392
|
+
const pageNumberToDisplay = index + 1;
|
|
11393
|
+
const isSelected = index === page;
|
|
11394
|
+
return jsx(DotListItem, {
|
|
11395
|
+
ariaLabel: `page ${pageNumberToDisplay}`,
|
|
11396
|
+
autoFocus: isSelected,
|
|
11397
|
+
className: "page-number-item",
|
|
11398
|
+
"data-testid": `page-number-item-${index}`,
|
|
11399
|
+
onClick: _event => handlePageChange(index),
|
|
11400
|
+
onKeyDown: handlePageKeydown(index),
|
|
11401
|
+
text: pageNumberToDisplay.toString(),
|
|
11402
|
+
selected: isSelected
|
|
11403
|
+
}, pageNumberToDisplay);
|
|
11404
|
+
});
|
|
11405
|
+
};
|
|
11406
|
+
return jsxs(StyledTablePaginationCustomActions, {
|
|
11407
|
+
className: rootClassName$i,
|
|
11408
|
+
children: [jsx(DotIconButton, {
|
|
11409
|
+
ariaLabel: "previous page",
|
|
11410
|
+
className: "page-control-button",
|
|
11411
|
+
"data-testid": "previous-page-button",
|
|
11412
|
+
disabled: isFirstPage,
|
|
11413
|
+
iconId: "chevron-left",
|
|
11414
|
+
onClick: handleBackButtonClick
|
|
11415
|
+
}), jsx(DotButton, {
|
|
11416
|
+
ariaLabel: "jump to page",
|
|
11417
|
+
className: "page-picker-button",
|
|
11418
|
+
onClick: () => setShowPageSelectionPopper(!showPageSelectionPopper),
|
|
11419
|
+
ref: pagePickerButtonRef,
|
|
11420
|
+
type: "text",
|
|
11421
|
+
children: pageToDisplay
|
|
11422
|
+
}), jsx(DotIconButton, {
|
|
11423
|
+
ariaLabel: "next page",
|
|
11424
|
+
className: "page-control-button",
|
|
11425
|
+
"data-testid": "next-page-button",
|
|
11426
|
+
disabled: isLastPage,
|
|
11427
|
+
iconId: "chevron-right",
|
|
11428
|
+
onClick: handleNextButtonClick
|
|
11429
|
+
}), jsx(Popper, {
|
|
11430
|
+
anchorEl: pagePickerButtonRef === null || pagePickerButtonRef === void 0 ? void 0 : pagePickerButtonRef.current,
|
|
11431
|
+
disablePortal: true,
|
|
11432
|
+
open: showPageSelectionPopper,
|
|
11433
|
+
placement: "top",
|
|
11434
|
+
children: jsx(ClickAwayListener, {
|
|
11435
|
+
onClickAway: () => setShowPageSelectionPopper(false),
|
|
11436
|
+
children: jsx(Paper, {
|
|
11437
|
+
elevation: 8,
|
|
11438
|
+
children: jsx("div", {
|
|
11439
|
+
className: "page-selection",
|
|
11440
|
+
children: jsx("div", {
|
|
11441
|
+
className: "pagination-page-picker",
|
|
11442
|
+
ref: pageSelectionRef,
|
|
11443
|
+
children: renderPagesList()
|
|
11444
|
+
})
|
|
11445
|
+
})
|
|
11446
|
+
})
|
|
11447
|
+
})
|
|
11448
|
+
})]
|
|
11449
|
+
});
|
|
11450
|
+
};
|
|
11451
|
+
|
|
11292
11452
|
const rootClassName$h = 'dot-table-pagination';
|
|
11293
11453
|
// TO-DO: Determine how to apply styles to standard popper element
|
|
11294
11454
|
const paginationItemClassName = 'dot-pagination-menu-item';
|
|
@@ -11316,6 +11476,10 @@ const StyledTablePagination = styled.div`
|
|
|
11316
11476
|
.MuiInputBase-root {
|
|
11317
11477
|
margin-bottom: 0;
|
|
11318
11478
|
}
|
|
11479
|
+
|
|
11480
|
+
&.with-custom-actions {
|
|
11481
|
+
overflow: unset;
|
|
11482
|
+
}
|
|
11319
11483
|
}
|
|
11320
11484
|
`}
|
|
11321
11485
|
`;
|
|
@@ -11333,9 +11497,10 @@ const DotTablePagination = ({
|
|
|
11333
11497
|
page = 0,
|
|
11334
11498
|
rowsPerPage = 10,
|
|
11335
11499
|
rowsPerPageOptions = [...ROWS_PER_PAGE_OPTIONS],
|
|
11500
|
+
showJumpToPageActionButton = false,
|
|
11336
11501
|
typography = 'subtitle2'
|
|
11337
11502
|
}) => {
|
|
11338
|
-
const rootClasses = useStylesWithRootClass(rootClassName$h, className);
|
|
11503
|
+
const rootClasses = useStylesWithRootClass(rootClassName$h, className, showJumpToPageActionButton ? 'with-custom-actions' : '');
|
|
11339
11504
|
const handlePageChange = (event, newPage) => {
|
|
11340
11505
|
onPageChange && onPageChange(newPage);
|
|
11341
11506
|
};
|
|
@@ -11347,6 +11512,7 @@ const DotTablePagination = ({
|
|
|
11347
11512
|
className: rootClassName$h,
|
|
11348
11513
|
typography: typography,
|
|
11349
11514
|
children: jsx(TablePagination, {
|
|
11515
|
+
ActionsComponent: showJumpToPageActionButton ? DotTablePaginationCustomActions : undefined,
|
|
11350
11516
|
"aria-label": ariaLabel,
|
|
11351
11517
|
classes: {
|
|
11352
11518
|
root: rootClasses,
|
|
@@ -13383,7 +13549,7 @@ const DotPopper = ({
|
|
|
13383
13549
|
open,
|
|
13384
13550
|
placement
|
|
13385
13551
|
}) => {
|
|
13386
|
-
const rootClasses = useStylesWithRootClass(rootClassName
|
|
13552
|
+
const rootClasses = useStylesWithRootClass(rootClassName$10, className);
|
|
13387
13553
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13388
13554
|
const handleClickAway = event => {
|
|
13389
13555
|
if (onClickAway && (!anchorEl || !anchorEl.contains(event.currentTarget))) {
|
|
@@ -13623,7 +13789,7 @@ const DotDatePicker = ({
|
|
|
13623
13789
|
autoFocus = false,
|
|
13624
13790
|
className,
|
|
13625
13791
|
closeOnSelect = true,
|
|
13626
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
13792
|
+
'data-pendoid': dataPendoId = rootClassName$x,
|
|
13627
13793
|
'data-testid': dataTestId,
|
|
13628
13794
|
defaultValue,
|
|
13629
13795
|
disableOpenPicker,
|
|
@@ -13663,7 +13829,7 @@ const DotDatePicker = ({
|
|
|
13663
13829
|
const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
|
|
13664
13830
|
const isInputReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
|
|
13665
13831
|
const inputRef = useRef(null);
|
|
13666
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13832
|
+
const rootClasses = useStylesWithRootClass(rootClassName$x, className, isInputReadOnly ? 'read-only' : '');
|
|
13667
13833
|
const containerClasses = useStylesWithRootClass(containerClassName$2, fullWidth ? 'full-width' : '', className);
|
|
13668
13834
|
const focusInput = ref => {
|
|
13669
13835
|
setTimeout(() => {
|
|
@@ -13882,7 +14048,7 @@ const DotTimePicker = ({
|
|
|
13882
14048
|
ariaLabel,
|
|
13883
14049
|
autoFocus = false,
|
|
13884
14050
|
className,
|
|
13885
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
14051
|
+
'data-pendoid': dataPendoId = rootClassName$w,
|
|
13886
14052
|
'data-testid': dataTestId,
|
|
13887
14053
|
defaultValue,
|
|
13888
14054
|
disableOpenPicker = false,
|
|
@@ -13914,7 +14080,7 @@ const DotTimePicker = ({
|
|
|
13914
14080
|
const hasValueWithoutChangeHandler = value !== undefined && onChange === undefined;
|
|
13915
14081
|
const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
|
|
13916
14082
|
const isComponentReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
|
|
13917
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14083
|
+
const rootClasses = useStylesWithRootClass(rootClassName$w, className, isComponentReadOnly ? 'read-only' : '');
|
|
13918
14084
|
const containerClasses = useStylesWithRootClass(containerClassName$1, fullWidth ? 'full-width' : '', className);
|
|
13919
14085
|
const inputRef = useRef(null);
|
|
13920
14086
|
const [isPickerOpened, setIsPickerOpened] = useState(false);
|