@digital-ai/dot-components 2.26.0 → 2.27.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 +362 -279
- package/package.json +1 -2
- package/src/lib/components/auto-complete/AutoComplete.d.ts +4 -2
- package/src/lib/components/auto-complete/index.d.ts +1 -1
- package/src/lib/components/empty-state/EmptyFilterState.d.ts +8 -0
- package/src/lib/components/empty-state/EmptyState.d.ts +1 -1
- package/src/lib/components/index.d.ts +4 -1
- package/src/lib/components/sticky-with-border/StickyWithBorder.d.ts +16 -0
- package/src/lib/components/sticky-with-border/StickyWithBorder.styles.d.ts +3 -0
- package/src/lib/components/sticky-with-border/index.d.ts +2 -0
- package/index.esm.mjs +0 -14303
package/index.esm.js
CHANGED
|
@@ -62,12 +62,12 @@ const DotTooltip = ({
|
|
|
62
62
|
}) : children;
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
const rootClassName$
|
|
65
|
+
const rootClassName$18 = 'dot-icon';
|
|
66
66
|
const StyledIcon = styled(Icon)`
|
|
67
67
|
${({
|
|
68
68
|
theme
|
|
69
69
|
}) => css`
|
|
70
|
-
&.${rootClassName$
|
|
70
|
+
&.${rootClassName$18} {
|
|
71
71
|
color: ${theme.palette.figma.icon.black};
|
|
72
72
|
font-size: 20px;
|
|
73
73
|
|
|
@@ -104,7 +104,7 @@ const DotIcon = ({
|
|
|
104
104
|
iconId,
|
|
105
105
|
tooltip
|
|
106
106
|
}) => {
|
|
107
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
107
|
+
const rootClasses = useStylesWithRootClass(rootClassName$18, className);
|
|
108
108
|
return jsx(DotTooltip, {
|
|
109
109
|
title: tooltip,
|
|
110
110
|
children: jsx(StyledIcon, {
|
|
@@ -165,7 +165,7 @@ const DotTypography = ({
|
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
167
|
|
|
168
|
-
const rootClassName$
|
|
168
|
+
const rootClassName$17 = 'dot-accordion';
|
|
169
169
|
const summaryClassName = 'dot-accordion-summary';
|
|
170
170
|
const detailClassName = 'dot-accordion-details';
|
|
171
171
|
const StyledAccordion = styled(Accordion)`
|
|
@@ -176,7 +176,7 @@ const StyledAccordion = styled(Accordion)`
|
|
|
176
176
|
background: ${theme.palette.figma.background.level1.white};
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
&.${rootClassName$
|
|
179
|
+
&.${rootClassName$17} .${summaryClassName} {
|
|
180
180
|
align-items: center;
|
|
181
181
|
background: ${theme.palette.figma.background.level1.white};
|
|
182
182
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -221,7 +221,7 @@ const DotAccordion = ({
|
|
|
221
221
|
ariaLabel,
|
|
222
222
|
children,
|
|
223
223
|
className,
|
|
224
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
224
|
+
'data-pendoid': dataPendoId = rootClassName$17,
|
|
225
225
|
'data-testid': dataTestId = 'dot-accordion',
|
|
226
226
|
disabled = false,
|
|
227
227
|
expanded,
|
|
@@ -232,7 +232,7 @@ const DotAccordion = ({
|
|
|
232
232
|
summary,
|
|
233
233
|
noWrap = true
|
|
234
234
|
}) => {
|
|
235
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
235
|
+
const rootClasses = useStylesWithRootClass(rootClassName$17, className);
|
|
236
236
|
const [elevation, setElevation] = useState();
|
|
237
237
|
useEffect(() => {
|
|
238
238
|
if (onChange && expanded === undefined) {
|
|
@@ -348,7 +348,7 @@ const readOnlyStyles = theme => css`
|
|
|
348
348
|
}
|
|
349
349
|
`;
|
|
350
350
|
|
|
351
|
-
const rootClassName$
|
|
351
|
+
const rootClassName$16 = 'dot-text-field';
|
|
352
352
|
const rootSelectClassName = 'dot-select-field';
|
|
353
353
|
const labelClassName = 'dot-input-label';
|
|
354
354
|
const errorClassName = 'dot-error';
|
|
@@ -396,7 +396,7 @@ const StyledTextField = styled(TextField)`
|
|
|
396
396
|
theme,
|
|
397
397
|
InputProps
|
|
398
398
|
}) => css`
|
|
399
|
-
&.${rootClassName$
|
|
399
|
+
&.${rootClassName$16} {
|
|
400
400
|
.MuiInputBase-root {
|
|
401
401
|
margin-bottom: 0;
|
|
402
402
|
}
|
|
@@ -440,7 +440,7 @@ const StyledTextField = styled(TextField)`
|
|
|
440
440
|
margin-right: ${theme.spacing(2)};
|
|
441
441
|
}
|
|
442
442
|
|
|
443
|
-
&.${rootSelectClassName}, &.${rootClassName$
|
|
443
|
+
&.${rootSelectClassName}, &.${rootClassName$16} {
|
|
444
444
|
.${adornmentIconClassName} {
|
|
445
445
|
color: ${theme.palette.figma.icon.black};
|
|
446
446
|
p {
|
|
@@ -531,15 +531,15 @@ const StyledTextField = styled(TextField)`
|
|
|
531
531
|
`}
|
|
532
532
|
`;
|
|
533
533
|
|
|
534
|
-
const rootClassName$
|
|
534
|
+
const rootClassName$15 = 'dot-action-toolbar';
|
|
535
535
|
const StyledToolbar = styled(Toolbar)`
|
|
536
536
|
${({
|
|
537
537
|
theme
|
|
538
538
|
}) => css`
|
|
539
|
-
&.${rootClassName$
|
|
539
|
+
&.${rootClassName$15} {
|
|
540
540
|
border-bottom: 1px solid ${theme.palette.figma.border.default};
|
|
541
541
|
|
|
542
|
-
.${rootClassName$
|
|
542
|
+
.${rootClassName$16} .MuiInputBase-root {
|
|
543
543
|
margin-bottom: 0;
|
|
544
544
|
}
|
|
545
545
|
}
|
|
@@ -553,7 +553,7 @@ const DotActionToolbar = ({
|
|
|
553
553
|
'data-testid': dataTestId,
|
|
554
554
|
variant = 'dense'
|
|
555
555
|
}) => {
|
|
556
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
556
|
+
const rootClasses = useStylesWithRootClass(rootClassName$15, className);
|
|
557
557
|
return jsx(StyledToolbar, {
|
|
558
558
|
"aria-label": ariaLabel,
|
|
559
559
|
className: rootClasses,
|
|
@@ -563,12 +563,12 @@ const DotActionToolbar = ({
|
|
|
563
563
|
});
|
|
564
564
|
};
|
|
565
565
|
|
|
566
|
-
const rootClassName$
|
|
566
|
+
const rootClassName$14 = 'dot-alert-banner';
|
|
567
567
|
const StyledAlertBanner = styled(Alert)`
|
|
568
568
|
${({
|
|
569
569
|
theme
|
|
570
570
|
}) => css`
|
|
571
|
-
&.${rootClassName$
|
|
571
|
+
&.${rootClassName$14} {
|
|
572
572
|
align-items: center;
|
|
573
573
|
border-radius: 8px;
|
|
574
574
|
box-sizing: border-box;
|
|
@@ -1671,7 +1671,10 @@ const getAvatarColorForInputText = value => {
|
|
|
1671
1671
|
const colorOptions = [...Object.keys(avatarColors)];
|
|
1672
1672
|
if (!value || !colorOptions || colorOptions.length <= 0) return 'default';
|
|
1673
1673
|
const numberFromValue = calculateNumberFromText(value);
|
|
1674
|
-
|
|
1674
|
+
const index = numberFromValue % colorOptions.length;
|
|
1675
|
+
// if number is 9 (transparent), return default color
|
|
1676
|
+
if (index === 9) return 'default';
|
|
1677
|
+
return colorOptions[index];
|
|
1675
1678
|
};
|
|
1676
1679
|
const isString$1 = str => typeof str === 'string';
|
|
1677
1680
|
const isLowerCase = str => str === str.toLowerCase();
|
|
@@ -1690,7 +1693,7 @@ const DotAlertBanner = ({
|
|
|
1690
1693
|
ariaLabel,
|
|
1691
1694
|
children,
|
|
1692
1695
|
className,
|
|
1693
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
1696
|
+
'data-pendoid': dataPendoId = rootClassName$14,
|
|
1694
1697
|
'data-testid': dataTestId,
|
|
1695
1698
|
onClose,
|
|
1696
1699
|
roundedCorners = true,
|
|
@@ -1708,7 +1711,7 @@ const DotAlertBanner = ({
|
|
|
1708
1711
|
success: AlertBannerIcon('check-solid'),
|
|
1709
1712
|
warning: AlertBannerIcon('warning-solid')
|
|
1710
1713
|
};
|
|
1711
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1714
|
+
const rootClasses = useStylesWithRootClass(rootClassName$14, severity, className);
|
|
1712
1715
|
/* For simple string use default component, for everything else use 'div' */
|
|
1713
1716
|
const typographyComponent = isString$1(children) ? undefined : 'div';
|
|
1714
1717
|
return jsx(StyledAlertBanner, {
|
|
@@ -2357,7 +2360,7 @@ const useDotCoreApiContext = () => {
|
|
|
2357
2360
|
return useContext(DotCoreApiContext);
|
|
2358
2361
|
};
|
|
2359
2362
|
|
|
2360
|
-
const rootClassName$
|
|
2363
|
+
const rootClassName$13 = 'dot-avatar';
|
|
2361
2364
|
const avatarSpacing = {
|
|
2362
2365
|
small: 3,
|
|
2363
2366
|
medium: 5,
|
|
@@ -2367,7 +2370,7 @@ const StyledAvatar = styled(Avatar)`
|
|
|
2367
2370
|
${({
|
|
2368
2371
|
theme
|
|
2369
2372
|
}) => css`
|
|
2370
|
-
&.${rootClassName$
|
|
2373
|
+
&.${rootClassName$13} {
|
|
2371
2374
|
display: inline-flex;
|
|
2372
2375
|
background-color: ${({
|
|
2373
2376
|
color
|
|
@@ -2479,7 +2482,7 @@ const DotAvatar = ({
|
|
|
2479
2482
|
variant = 'circular',
|
|
2480
2483
|
style
|
|
2481
2484
|
}) => {
|
|
2482
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2485
|
+
const rootClasses = useStylesWithRootClass(rootClassName$13, className);
|
|
2483
2486
|
const getAvatarColor = () => {
|
|
2484
2487
|
if ((style === null || style === void 0 ? void 0 : style.color) !== undefined) return 'inherit';
|
|
2485
2488
|
if (color) return color;
|
|
@@ -2518,12 +2521,12 @@ const DotAvatar = ({
|
|
|
2518
2521
|
});
|
|
2519
2522
|
};
|
|
2520
2523
|
|
|
2521
|
-
const rootClassName$
|
|
2524
|
+
const rootClassName$12 = 'dot-button';
|
|
2522
2525
|
const StyledButton = styled(Button)`
|
|
2523
2526
|
${({
|
|
2524
2527
|
theme
|
|
2525
2528
|
}) => css`
|
|
2526
|
-
&.${rootClassName$
|
|
2529
|
+
&.${rootClassName$12} {
|
|
2527
2530
|
background-color: ${theme.palette.figma.primary.normal};
|
|
2528
2531
|
margin: ${theme.spacing(0.5)};
|
|
2529
2532
|
padding: ${theme.spacing(0.75, 2)};
|
|
@@ -2607,7 +2610,7 @@ const DotButton = forwardRef(({
|
|
|
2607
2610
|
autoFocus = false,
|
|
2608
2611
|
children,
|
|
2609
2612
|
className,
|
|
2610
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
2613
|
+
'data-pendoid': dataPendoId = rootClassName$12,
|
|
2611
2614
|
'data-testid': dataTestId,
|
|
2612
2615
|
disabled = false,
|
|
2613
2616
|
disableRipple = false,
|
|
@@ -2622,7 +2625,7 @@ const DotButton = forwardRef(({
|
|
|
2622
2625
|
tooltip,
|
|
2623
2626
|
type = 'primary'
|
|
2624
2627
|
}, ref) => {
|
|
2625
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2628
|
+
const rootClasses = useStylesWithRootClass(rootClassName$12, className);
|
|
2626
2629
|
let color;
|
|
2627
2630
|
let variant;
|
|
2628
2631
|
switch (type) {
|
|
@@ -2672,10 +2675,10 @@ const DotButton = forwardRef(({
|
|
|
2672
2675
|
});
|
|
2673
2676
|
});
|
|
2674
2677
|
|
|
2675
|
-
const rootClassName$
|
|
2678
|
+
const rootClassName$11 = 'dot-link';
|
|
2676
2679
|
const StyledLink = styled(Link)`
|
|
2677
2680
|
${() => css`
|
|
2678
|
-
&.${rootClassName$
|
|
2681
|
+
&.${rootClassName$11} {
|
|
2679
2682
|
cursor: pointer;
|
|
2680
2683
|
|
|
2681
2684
|
&:hover.MuiLink-underlineHover {
|
|
@@ -2691,7 +2694,7 @@ const DotLink = ({
|
|
|
2691
2694
|
children,
|
|
2692
2695
|
className,
|
|
2693
2696
|
color = 'primary',
|
|
2694
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
2697
|
+
'data-pendoid': dataPendoId = rootClassName$11,
|
|
2695
2698
|
'data-testid': dataTestId,
|
|
2696
2699
|
href,
|
|
2697
2700
|
onClick,
|
|
@@ -2703,7 +2706,7 @@ const DotLink = ({
|
|
|
2703
2706
|
tooltip,
|
|
2704
2707
|
underline = 'always'
|
|
2705
2708
|
}) => {
|
|
2706
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2709
|
+
const rootClasses = useStylesWithRootClass(rootClassName$11, className);
|
|
2707
2710
|
useEffect(() => {
|
|
2708
2711
|
// Include a console warning if the link is not a string and no ariaLabel is provided
|
|
2709
2712
|
if (!isString$1(children) && !ariaLabel) {
|
|
@@ -2753,7 +2756,7 @@ const CreateUUID = () => {
|
|
|
2753
2756
|
});
|
|
2754
2757
|
};
|
|
2755
2758
|
|
|
2756
|
-
const rootClassName
|
|
2759
|
+
const rootClassName$10 = 'dot-list';
|
|
2757
2760
|
const listItemRootClass = 'dot-list-item';
|
|
2758
2761
|
const nestedListClassName = 'dot-nested-list';
|
|
2759
2762
|
const nestedDrawerClassName = 'dot-nested-drawer';
|
|
@@ -2761,7 +2764,7 @@ const StyledList = styled(List)`
|
|
|
2761
2764
|
${({
|
|
2762
2765
|
theme
|
|
2763
2766
|
}) => css`
|
|
2764
|
-
&.${rootClassName
|
|
2767
|
+
&.${rootClassName$10} {
|
|
2765
2768
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
2766
2769
|
|
|
2767
2770
|
.dot-icon {
|
|
@@ -2844,12 +2847,12 @@ const DotListDivider = ({
|
|
|
2844
2847
|
});
|
|
2845
2848
|
};
|
|
2846
2849
|
|
|
2847
|
-
const rootClassName
|
|
2850
|
+
const rootClassName$$ = 'dot-progress';
|
|
2848
2851
|
const StyledCircularProgress = styled(CircularProgress)`
|
|
2849
2852
|
${({
|
|
2850
2853
|
theme
|
|
2851
2854
|
}) => css`
|
|
2852
|
-
&.${rootClassName
|
|
2855
|
+
&.${rootClassName$$} {
|
|
2853
2856
|
&.MuiCircularProgress-colorPrimary {
|
|
2854
2857
|
color: ${theme.palette.figma.inProgress.normal};
|
|
2855
2858
|
}
|
|
@@ -2871,7 +2874,7 @@ const DotProgress = ({
|
|
|
2871
2874
|
value,
|
|
2872
2875
|
variant = 'indeterminate'
|
|
2873
2876
|
}) => {
|
|
2874
|
-
const rootClasses = useStylesWithRootClass(rootClassName
|
|
2877
|
+
const rootClasses = useStylesWithRootClass(rootClassName$$, className);
|
|
2875
2878
|
useEffect(() => {
|
|
2876
2879
|
if (!ariaLabel) {
|
|
2877
2880
|
console.warn('a11y: DotProgress must have an ariaLabel to describe the progress component');
|
|
@@ -2912,35 +2915,35 @@ var variables = /*#__PURE__*/Object.freeze({
|
|
|
2912
2915
|
levelTop: levelTop
|
|
2913
2916
|
});
|
|
2914
2917
|
|
|
2915
|
-
const rootClassName$
|
|
2918
|
+
const rootClassName$_ = 'dot-popper';
|
|
2916
2919
|
const StyledPopper$1 = styled(Popper)`
|
|
2917
2920
|
${({
|
|
2918
2921
|
theme
|
|
2919
2922
|
}) => css`
|
|
2920
|
-
&.${rootClassName$
|
|
2923
|
+
&.${rootClassName$_} {
|
|
2921
2924
|
font-family: ${theme.typography.fontFamily};
|
|
2922
2925
|
font-size: ${theme.typography.body1.fontSize}px;
|
|
2923
2926
|
}
|
|
2924
2927
|
|
|
2925
|
-
&.${rootClassName$
|
|
2928
|
+
&.${rootClassName$_}, &.${rootClassName$_} > .dot-popper-paper {
|
|
2926
2929
|
background-color: ${theme.palette.figma.background.level1.white};
|
|
2927
2930
|
}
|
|
2928
2931
|
`}
|
|
2929
2932
|
`;
|
|
2930
2933
|
|
|
2931
2934
|
const flyoutMenuClassName = 'dot-flyout-menu';
|
|
2932
|
-
const rootClassName$
|
|
2935
|
+
const rootClassName$Z = 'dot-menu';
|
|
2933
2936
|
const getListMaxHeight = maxHeight => isString$1(maxHeight) ? maxHeight : `${maxHeight}px`;
|
|
2934
2937
|
const StyledPopper = styled(Popper)`
|
|
2935
2938
|
${({
|
|
2936
2939
|
theme
|
|
2937
2940
|
}) => css`
|
|
2938
|
-
&.${rootClassName$
|
|
2941
|
+
&.${rootClassName$_} {
|
|
2939
2942
|
font-family: ${theme.typography.fontFamily};
|
|
2940
2943
|
font-size: ${theme.typography.body1.fontSize}px;
|
|
2941
2944
|
z-index: ${levelSecond};
|
|
2942
2945
|
}
|
|
2943
|
-
&.${rootClassName$
|
|
2946
|
+
&.${rootClassName$Z}, &.${rootClassName$_} {
|
|
2944
2947
|
&.loading .MuiPaper-root {
|
|
2945
2948
|
align-items: center;
|
|
2946
2949
|
display: flex;
|
|
@@ -3011,14 +3014,14 @@ const MENU_ITEM_HEIGHT_NORMAL = 48;
|
|
|
3011
3014
|
const MENU_ITEM_HEIGHT_DENSE = 36;
|
|
3012
3015
|
const DEFAULT_MAX_VISIBLE_ITEMS = 7;
|
|
3013
3016
|
|
|
3014
|
-
const rootClassName$
|
|
3017
|
+
const rootClassName$Y = 'dot-ul';
|
|
3015
3018
|
const listItemClassName$1 = 'dot-li';
|
|
3016
3019
|
const listItemWithSubmenuClassName = 'dot-li-with-submenu';
|
|
3017
3020
|
const StyledMenuList = styled(MenuList)`
|
|
3018
3021
|
${({
|
|
3019
3022
|
theme
|
|
3020
3023
|
}) => css`
|
|
3021
|
-
&.${rootClassName$
|
|
3024
|
+
&.${rootClassName$Y} {
|
|
3022
3025
|
background: ${theme.palette.figma.background.level1.white};
|
|
3023
3026
|
|
|
3024
3027
|
.dot-li {
|
|
@@ -3114,7 +3117,7 @@ const DotMenuList = forwardRef(({
|
|
|
3114
3117
|
onSubMenuCreate,
|
|
3115
3118
|
selectedKey
|
|
3116
3119
|
}, ref) => {
|
|
3117
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3120
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Y, className);
|
|
3118
3121
|
const [activeSubmenu, setActiveSubmenu] = useState(null);
|
|
3119
3122
|
const [subItemAnchorEl, setSubItemAnchorEl] = useState(null);
|
|
3120
3123
|
const openSubmenu = (target, itemKey) => {
|
|
@@ -3225,7 +3228,7 @@ const DotMenu = ({
|
|
|
3225
3228
|
open = false,
|
|
3226
3229
|
selectedKey
|
|
3227
3230
|
}) => {
|
|
3228
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3231
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Z, className, loading ? 'loading' : '');
|
|
3229
3232
|
const isSubmenu = checkIfSubmenu(anchorEl);
|
|
3230
3233
|
const hasSubItems = checkForSubItems(menuItems);
|
|
3231
3234
|
// Timeout object is customizable when Menu component is either submenu
|
|
@@ -3313,12 +3316,12 @@ const DotMenu = ({
|
|
|
3313
3316
|
});
|
|
3314
3317
|
};
|
|
3315
3318
|
|
|
3316
|
-
const rootClassName$
|
|
3319
|
+
const rootClassName$X = 'dot-drawer';
|
|
3317
3320
|
const StyledDrawer = styled(Drawer)`
|
|
3318
3321
|
${({
|
|
3319
3322
|
theme
|
|
3320
3323
|
}) => css`
|
|
3321
|
-
&.${rootClassName$
|
|
3324
|
+
&.${rootClassName$X} .MuiBackdrop-root {
|
|
3322
3325
|
background-color: ${theme.palette.figma.overlay.default};
|
|
3323
3326
|
}
|
|
3324
3327
|
|
|
@@ -3337,12 +3340,12 @@ const StyledDrawer = styled(Drawer)`
|
|
|
3337
3340
|
`}
|
|
3338
3341
|
`;
|
|
3339
3342
|
|
|
3340
|
-
const rootClassName$
|
|
3343
|
+
const rootClassName$W = 'dot-drawer-header';
|
|
3341
3344
|
const StyleDrawerHeader = styled.div`
|
|
3342
3345
|
${({
|
|
3343
3346
|
theme
|
|
3344
3347
|
}) => css`
|
|
3345
|
-
&.${rootClassName$
|
|
3348
|
+
&.${rootClassName$W} {
|
|
3346
3349
|
padding: ${theme.spacing(0, 0, 2)};
|
|
3347
3350
|
display: flex;
|
|
3348
3351
|
align-items: center;
|
|
@@ -3353,13 +3356,13 @@ const StyleDrawerHeader = styled.div`
|
|
|
3353
3356
|
`}
|
|
3354
3357
|
`;
|
|
3355
3358
|
|
|
3356
|
-
const rootClassName$
|
|
3359
|
+
const rootClassName$V = 'dot-icon-btn';
|
|
3357
3360
|
const StyledIconButton = styled(IconButton)`
|
|
3358
3361
|
${({
|
|
3359
3362
|
theme,
|
|
3360
3363
|
color
|
|
3361
3364
|
}) => css`
|
|
3362
|
-
&.${rootClassName$
|
|
3365
|
+
&.${rootClassName$V} {
|
|
3363
3366
|
${color === 'inherit' ? css`
|
|
3364
3367
|
color: inherit;
|
|
3365
3368
|
` : ''}
|
|
@@ -3418,7 +3421,7 @@ const DotIconButton = ({
|
|
|
3418
3421
|
ariaRole = 'button',
|
|
3419
3422
|
className,
|
|
3420
3423
|
color = 'inherit',
|
|
3421
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
3424
|
+
'data-pendoid': dataPendoId = rootClassName$V,
|
|
3422
3425
|
'data-testid': dataTestId,
|
|
3423
3426
|
disabled = false,
|
|
3424
3427
|
disableRipple = false,
|
|
@@ -3430,7 +3433,7 @@ const DotIconButton = ({
|
|
|
3430
3433
|
size = 'medium'
|
|
3431
3434
|
}) => {
|
|
3432
3435
|
const rippleClassName = disableRipple ? 'ripple-disabled' : '';
|
|
3433
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3436
|
+
const rootClasses = useStylesWithRootClass(rootClassName$V, rippleClassName, `shape-${shape}`, className);
|
|
3434
3437
|
return jsx(DotTooltip, {
|
|
3435
3438
|
"data-testid": "icon-button-tooltip",
|
|
3436
3439
|
title: tooltip,
|
|
@@ -3464,7 +3467,7 @@ const DotDrawerHeader = ({
|
|
|
3464
3467
|
onClose,
|
|
3465
3468
|
variant
|
|
3466
3469
|
}) => {
|
|
3467
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3470
|
+
const rootClasses = useStylesWithRootClass(rootClassName$W, className);
|
|
3468
3471
|
return jsxs(StyleDrawerHeader, {
|
|
3469
3472
|
"aria-label": ariaLabel,
|
|
3470
3473
|
"aria-level": 2,
|
|
@@ -3481,10 +3484,10 @@ const DotDrawerHeader = ({
|
|
|
3481
3484
|
});
|
|
3482
3485
|
};
|
|
3483
3486
|
|
|
3484
|
-
const rootClassName$
|
|
3487
|
+
const rootClassName$U = 'dot-drawer-body';
|
|
3485
3488
|
const StyleDrawerBody = styled.div`
|
|
3486
3489
|
${() => css`
|
|
3487
|
-
&.${rootClassName$
|
|
3490
|
+
&.${rootClassName$U} {
|
|
3488
3491
|
display: flex;
|
|
3489
3492
|
.dot-drawer-close-button {
|
|
3490
3493
|
align-self: self-start;
|
|
@@ -3505,7 +3508,7 @@ const DotDrawerBody = ({
|
|
|
3505
3508
|
onClose,
|
|
3506
3509
|
variant
|
|
3507
3510
|
}) => {
|
|
3508
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3511
|
+
const rootClasses = useStylesWithRootClass(rootClassName$U, className);
|
|
3509
3512
|
return jsxs(StyleDrawerBody, {
|
|
3510
3513
|
"aria-label": ariaLabel,
|
|
3511
3514
|
className: rootClasses,
|
|
@@ -3520,12 +3523,12 @@ const DotDrawerBody = ({
|
|
|
3520
3523
|
});
|
|
3521
3524
|
};
|
|
3522
3525
|
|
|
3523
|
-
const rootClassName$
|
|
3526
|
+
const rootClassName$T = 'dot-drawer-footer';
|
|
3524
3527
|
const StyleDrawerFooter = styled.div`
|
|
3525
3528
|
${({
|
|
3526
3529
|
theme
|
|
3527
3530
|
}) => css`
|
|
3528
|
-
&.${rootClassName$
|
|
3531
|
+
&.${rootClassName$T} {
|
|
3529
3532
|
padding: ${theme.spacing(2, 0, 0)};
|
|
3530
3533
|
}
|
|
3531
3534
|
`}
|
|
@@ -3538,7 +3541,7 @@ const DotDrawerFooter = ({
|
|
|
3538
3541
|
className,
|
|
3539
3542
|
'data-testid': dataTestId
|
|
3540
3543
|
}) => {
|
|
3541
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3544
|
+
const rootClasses = useStylesWithRootClass(rootClassName$T, className);
|
|
3542
3545
|
return jsx(StyleDrawerFooter, {
|
|
3543
3546
|
"aria-label": ariaLabel,
|
|
3544
3547
|
className: rootClasses,
|
|
@@ -3554,7 +3557,7 @@ const DotDrawer = ({
|
|
|
3554
3557
|
ariaRole = 'dialog',
|
|
3555
3558
|
className,
|
|
3556
3559
|
children,
|
|
3557
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
3560
|
+
'data-pendoid': dataPendoId = rootClassName$X,
|
|
3558
3561
|
'data-testid': dataTestId,
|
|
3559
3562
|
drawerBodyProps,
|
|
3560
3563
|
drawerFooterProps,
|
|
@@ -3577,7 +3580,7 @@ const DotDrawer = ({
|
|
|
3577
3580
|
onClose(event);
|
|
3578
3581
|
}
|
|
3579
3582
|
};
|
|
3580
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3583
|
+
const rootClasses = useStylesWithRootClass(rootClassName$X, className);
|
|
3581
3584
|
const backdropEnabled = variant === 'temporary' && !(ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.hideBackdrop);
|
|
3582
3585
|
const headerExists = !!drawerHeaderProps;
|
|
3583
3586
|
const bodyPendoId = drawerBodyProps ? drawerBodyProps['data-pendoid'] : 'drawer-body';
|
|
@@ -3947,7 +3950,7 @@ const DotList = ({
|
|
|
3947
3950
|
nestedListType = 'expandable',
|
|
3948
3951
|
width = 240
|
|
3949
3952
|
}) => {
|
|
3950
|
-
const rootClasses = useStylesWithRootClass(rootClassName
|
|
3953
|
+
const rootClasses = useStylesWithRootClass(rootClassName$10, className);
|
|
3951
3954
|
const listWidth = typeof width === 'number' ? `${width}px` : width;
|
|
3952
3955
|
const listRef = useRef();
|
|
3953
3956
|
const [listItemIndex, setListItemIndex] = useState(null);
|
|
@@ -4036,12 +4039,12 @@ const DotList = ({
|
|
|
4036
4039
|
});
|
|
4037
4040
|
};
|
|
4038
4041
|
|
|
4039
|
-
const rootClassName$
|
|
4042
|
+
const rootClassName$S = 'dot-copy-button';
|
|
4040
4043
|
const StyledCopyButton = styled.span`
|
|
4041
4044
|
${({
|
|
4042
4045
|
theme
|
|
4043
4046
|
}) => css`
|
|
4044
|
-
&.${rootClassName$
|
|
4047
|
+
&.${rootClassName$S} .copied-to-clipboard {
|
|
4045
4048
|
color: ${theme.palette.figma.success.normal};
|
|
4046
4049
|
|
|
4047
4050
|
&.MuiIcon-fontSizeSmall.button-size-small {
|
|
@@ -4067,7 +4070,7 @@ const DotCopyButton = ({
|
|
|
4067
4070
|
color = 'inherit',
|
|
4068
4071
|
copiedTooltip = 'Copied!',
|
|
4069
4072
|
copyTooltip = 'Copy to clipboard',
|
|
4070
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
4073
|
+
'data-pendoid': dataPendoId = rootClassName$S,
|
|
4071
4074
|
'data-testid': dataTestId = 'dot-copy-button',
|
|
4072
4075
|
disabled = false,
|
|
4073
4076
|
disableRipple = false,
|
|
@@ -4115,7 +4118,7 @@ const DotCopyButton = ({
|
|
|
4115
4118
|
return false;
|
|
4116
4119
|
}, [value, showCopiedIcon, disabled, onClick]);
|
|
4117
4120
|
return jsxs(StyledCopyButton, {
|
|
4118
|
-
className: rootClassName$
|
|
4121
|
+
className: rootClassName$S,
|
|
4119
4122
|
"data-testid": dataTestId,
|
|
4120
4123
|
children: [!timedShowCopiedIcon && jsx(DotIconButton, {
|
|
4121
4124
|
ariaLabel: ariaLabel,
|
|
@@ -4204,7 +4207,7 @@ const DotInputText = ({
|
|
|
4204
4207
|
autoFocus,
|
|
4205
4208
|
className,
|
|
4206
4209
|
defaultValue,
|
|
4207
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
4210
|
+
'data-pendoid': dataPendoId = rootClassName$16,
|
|
4208
4211
|
'data-testid': dataTestId,
|
|
4209
4212
|
disabled = false,
|
|
4210
4213
|
error = false,
|
|
@@ -4250,7 +4253,7 @@ const DotInputText = ({
|
|
|
4250
4253
|
const internalInputRef = useRef(null);
|
|
4251
4254
|
const textFieldInputRef = inputRef || internalInputRef;
|
|
4252
4255
|
const [inputTextState, setInputTextState] = useState(getInitialState(value));
|
|
4253
|
-
const rootStyles = useStylesWithRootClass(rootClassName$
|
|
4256
|
+
const rootStyles = useStylesWithRootClass(rootClassName$16, hasError, hasWarning, hasSuccess, readOnly && readOnlyClassName$1);
|
|
4254
4257
|
useEffect(() => {
|
|
4255
4258
|
if (value !== inputTextState.inputValue) {
|
|
4256
4259
|
setInputTextState(getInitialState(value, defaultValue));
|
|
@@ -4386,10 +4389,10 @@ const DotInputText = ({
|
|
|
4386
4389
|
});
|
|
4387
4390
|
};
|
|
4388
4391
|
|
|
4389
|
-
const rootClassName$
|
|
4392
|
+
const rootClassName$R = 'dot-search-input';
|
|
4390
4393
|
const StyledSearchInput = styled.span`
|
|
4391
4394
|
${() => css`
|
|
4392
|
-
&.${rootClassName$
|
|
4395
|
+
&.${rootClassName$R} {
|
|
4393
4396
|
}
|
|
4394
4397
|
`}
|
|
4395
4398
|
`;
|
|
@@ -4406,7 +4409,7 @@ function SearchInput({
|
|
|
4406
4409
|
tooltip = null,
|
|
4407
4410
|
value
|
|
4408
4411
|
}) {
|
|
4409
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4412
|
+
const rootClasses = useStylesWithRootClass(rootClassName$R, className);
|
|
4410
4413
|
const [searchText, setSearchText] = useState(value);
|
|
4411
4414
|
let previousSearchText = '';
|
|
4412
4415
|
const handleChange = useCallback(event => {
|
|
@@ -4457,19 +4460,19 @@ function SearchInput({
|
|
|
4457
4460
|
});
|
|
4458
4461
|
}
|
|
4459
4462
|
|
|
4460
|
-
var img$
|
|
4463
|
+
var img$7 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z' fill='%23279FEA'/%3e%3cpath d='M12.4332 16.3533V14.8333H11.5665V16.3533L10.7432 15.8933L9.85651 16.4033L11.9998 17.6366L14.1932 16.3733L13.3332 15.8766L12.4332 16.3533Z' fill='white'/%3e%3cpath d='M7.99328 10.1866L9.24661 10.9132L9.67995 10.1399L8.36995 9.4299L9.09328 9.01657V8.03323L7.11328 9.18323L7.11661 11.5532L7.99328 11.0566V10.1866Z' fill='white'/%3e%3cpath d='M14.6934 10.9133L15.9934 10.1733L15.99 11.0566L16.8867 11.5599V9.1766L14.81 7.98993L14.7767 8.9566L15.6167 9.45326L14.29 10.0799L14.6934 10.9133Z' fill='white'/%3e%3cpath d='M16.8801 12.5435L16.0001 12.0402V12.0935V13.7068L12.4167 11.6868V7.61015L13.9667 8.49015V7.51682L12.0001 6.35349L9.95006 7.52348V8.52348L11.4967 7.63015V11.6868L8.00006 13.8168V12.0202L7.12006 12.5235V14.8202L8.96672 15.8502L9.86672 15.3335L8.40006 14.5268L12.0001 12.4368L15.5567 14.5035L14.1301 15.3268L15.0567 15.8701L16.8701 14.8268L16.8801 12.5435Z' fill='white'/%3e%3c/svg%3e";
|
|
4461
4464
|
|
|
4462
|
-
var img$
|
|
4465
|
+
var img$6 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z' fill='%23279FEA'/%3e%3cpath d='M14.1867 11.2667L12.1634 10.0833L10.1367 11.2667V13.62L12.1634 14.7867L14.1867 13.62V11.2667Z' fill='white'/%3e%3cpath d='M8.43666 12.0001L7.47333 11.1501V15.1667L10.41 16.8367V15.7034L8.43666 14.5401V12.0001Z' fill='white'/%3e%3cpath d='M15.8965 12V14.5833L13.9632 15.7033V16.9367L16.8532 15.1533V11.0967L15.8965 12Z' fill='white'/%3e%3cpath d='M12.1565 8.13333L14.7165 9.61333L15.4165 8.89L12.1565 7L8.87988 8.90667L9.57988 9.63333L12.1565 8.13333Z' fill='white'/%3e%3c/svg%3e";
|
|
4463
4466
|
|
|
4464
|
-
var img$
|
|
4467
|
+
var img$5 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z' fill='%2333D389'/%3e%3cpath d='M17.0033 7.62322H16.4567C16.3925 7.62863 16.3324 7.65679 16.2871 7.70264C16.2419 7.74848 16.2146 7.80898 16.21 7.87322V9.14322C15.7432 8.43248 15.1064 7.84955 14.3572 7.44732C13.6081 7.04509 12.7703 6.8363 11.92 6.83989C11.0845 6.84475 10.2627 7.05243 9.52515 7.44508C8.78763 7.83772 8.15649 8.40359 7.68598 9.09405C7.21547 9.7845 6.91966 10.5789 6.82398 11.4089C6.72831 12.2389 6.83562 13.0798 7.13669 13.8592C7.43777 14.6386 7.92361 15.3332 8.55245 15.8834C9.18128 16.4335 9.93431 16.8227 10.7468 17.0176C11.5593 17.2124 12.4069 17.207 13.2169 17.0019C14.0269 16.7967 14.7749 16.398 15.3967 15.8399C15.4257 15.8182 15.4492 15.79 15.4654 15.7576C15.4816 15.7252 15.49 15.6894 15.49 15.6532C15.49 15.617 15.4816 15.5813 15.4654 15.5489C15.4492 15.5165 15.4257 15.4883 15.3967 15.4666L14.9833 15.0532C14.9369 15.0135 14.8778 14.9917 14.8167 14.9917C14.7556 14.9917 14.6965 15.0135 14.65 15.0532C13.9076 15.7352 12.9312 16.1052 11.9233 16.0866C11.1892 16.087 10.4684 15.8897 9.83687 15.5154C9.20531 15.141 8.68627 14.6034 8.33429 13.9591C7.98231 13.3148 7.81039 12.5876 7.83662 11.8539C7.86284 11.1202 8.08624 10.4071 8.48332 9.78959C8.8804 9.17207 9.4365 8.67292 10.0932 8.34461C10.7499 8.0163 11.4828 7.87095 12.2151 7.92384C12.9474 7.97674 13.6519 8.22592 14.2545 8.6452C14.8572 9.06448 15.3358 9.63837 15.64 10.3066H14.1467C14.0828 10.3112 14.0227 10.3387 13.9774 10.384C13.9321 10.4293 13.9046 10.4893 13.9 10.5532V11.0466C13.9046 11.1104 13.9321 11.1705 13.9774 11.2158C14.0227 11.2611 14.0828 11.2886 14.1467 11.2932H17C17.0639 11.2886 17.124 11.2611 17.1693 11.2158C17.2146 11.1705 17.242 11.1104 17.2467 11.0466V7.87322C17.2422 7.8095 17.2154 7.74942 17.1708 7.70364C17.1263 7.65787 17.0669 7.62938 17.0033 7.62322Z' fill='white'/%3e%3cpath d='M12.1232 9.39987C12.1667 9.39747 12.2077 9.37914 12.2384 9.34839C12.2692 9.31764 12.2875 9.27662 12.2899 9.2332C12.2899 9.2332 12.3399 8.8332 12.3399 8.69987C12.3399 8.56653 12.2499 8.4932 12.1666 8.48987C11.5045 8.45232 10.8457 8.60791 10.2703 8.93771C9.69497 9.26752 9.22779 9.75734 8.92557 10.3477C8.62335 10.938 8.4991 11.6034 8.56792 12.263C8.63675 12.9226 8.89568 13.548 9.31325 14.0632C9.83849 14.7239 10.5905 15.1658 11.4232 15.3032C11.5166 15.3032 11.5999 15.2632 11.6299 15.1365C11.6299 15.1365 11.6999 14.8032 11.7132 14.6832C11.7233 14.639 11.7157 14.5927 11.692 14.554C11.6684 14.5154 11.6305 14.4876 11.5866 14.4765C11.225 14.4227 10.8806 14.2869 10.5795 14.0795C10.2785 13.8721 10.029 13.5986 9.84992 13.2799C9.64046 12.9274 9.51393 12.5318 9.47992 12.1232C9.44986 11.7648 9.49697 11.4042 9.61806 11.0655C9.73915 10.7269 9.93142 10.4181 10.1819 10.1601C10.4324 9.90199 10.7353 9.70061 11.0702 9.56947C11.405 9.43834 11.7641 9.38051 12.1232 9.39987Z' fill='white'/%3e%3cpath d='M13.9433 13.1568C13.96 13.1389 13.9724 13.1175 13.9796 13.0942C13.9868 13.0708 13.9885 13.0461 13.9846 13.0219C13.9808 12.9978 13.9714 12.9749 13.9573 12.9549C13.9432 12.9349 13.9247 12.9185 13.9033 12.9068L13.6133 12.7001C13.5739 12.6762 13.5272 12.6674 13.4818 12.6754C13.4364 12.6833 13.3955 12.7075 13.3666 12.7434C13.2321 12.9033 13.0642 13.0318 12.8747 13.12C12.6853 13.2082 12.4789 13.2538 12.2699 13.2538C12.061 13.2538 11.8546 13.2082 11.6651 13.12C11.4757 13.0318 11.3078 12.9033 11.1733 12.7434C11.1277 12.6913 11.0864 12.6356 11.0499 12.5768C10.9268 12.3776 10.8582 12.1495 10.8512 11.9155C10.8442 11.6814 10.8989 11.4496 11.0099 11.2434C11.0314 11.2102 11.0389 11.1699 11.0308 11.1312C11.0227 11.0925 10.9996 11.0585 10.9666 11.0368L10.6333 10.7901C10.5891 10.7715 10.5396 10.7697 10.4942 10.7851C10.4487 10.8004 10.4105 10.8319 10.3866 10.8734C10.2376 11.1465 10.153 11.45 10.1391 11.7608C10.1253 12.0716 10.1825 12.3815 10.3066 12.6668C10.4127 12.938 10.5831 13.1794 10.8033 13.3701C11.1902 13.7461 11.7104 13.9534 12.2499 13.9468C12.5743 13.9565 12.8964 13.8902 13.1905 13.753C13.4845 13.6158 13.7424 13.4116 13.9433 13.1568Z' fill='white'/%3e%3c/svg%3e";
|
|
4465
4468
|
|
|
4466
|
-
var img$
|
|
4469
|
+
var img$4 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z' fill='%23279FEA'/%3e%3cpath d='M17.6865 10.0334C17.3062 9.49067 16.7772 9.06934 16.1632 8.82008C15.6426 8.61932 15.0801 8.55138 14.5267 8.62237C13.9733 8.69337 13.4462 8.90108 12.9932 9.22674C12.4991 9.62868 12.0519 10.0849 11.6598 10.5867L11.4232 10.8534L13.0198 11.5434L13.1498 11.4067C13.4002 11.1158 13.6697 10.8419 13.9565 10.5867C14.1891 10.4177 14.4599 10.3085 14.7448 10.269C15.0297 10.2294 15.3199 10.2607 15.5898 10.3601C15.916 10.4798 16.1929 10.7051 16.3765 11.0001C16.5305 11.2108 16.6383 11.4516 16.6932 11.7067C16.7448 11.9619 16.7448 12.2249 16.6932 12.4801C16.6319 12.8145 16.4783 13.125 16.2498 13.3767C16.0471 13.5809 15.7972 13.7319 15.5221 13.8162C15.2471 13.9005 14.9554 13.9156 14.6732 13.8601C14.318 13.7558 13.9714 13.6243 13.6365 13.4667L13.4598 13.3967L12.3032 14.6934L12.6365 14.8367C13.196 15.1144 13.7809 15.3376 14.3832 15.5034C14.841 15.5831 15.3102 15.5706 15.7632 15.4667C16.4116 15.3301 17.0012 14.9945 17.4498 14.5067C17.907 14.0252 18.2099 13.4182 18.3198 12.7634C18.4116 12.2979 18.4116 11.8189 18.3198 11.3534C18.186 10.8803 17.9717 10.4338 17.6865 10.0334Z' fill='white'/%3e%3cpath d='M12.8401 13.0499L11.2468 12.3599L11.1168 12.4966C10.8669 12.7942 10.5962 13.0738 10.3068 13.3332C10.0741 13.5023 9.80337 13.6115 9.51849 13.651C9.2336 13.6905 8.94336 13.6593 8.67345 13.5599C8.35219 13.4397 8.07852 13.2187 7.89345 12.9299C7.74251 12.7191 7.63591 12.4798 7.58012 12.2266C7.51653 11.9342 7.52262 11.6311 7.5979 11.3415C7.67318 11.052 7.81553 10.7842 8.01345 10.5599C8.2156 10.3551 8.46564 10.2039 8.74095 10.1201C9.01626 10.0363 9.30813 10.0225 9.59012 10.0799C9.94807 10.1781 10.2971 10.3063 10.6335 10.4632L10.8101 10.5299L11.9668 9.23324L11.6735 9.11324C11.1141 8.8326 10.5278 8.60924 9.92345 8.44657C9.37154 8.32869 8.79848 8.35611 8.26035 8.52614C7.72222 8.69617 7.23744 9.00299 6.85345 9.41657C6.38782 9.89208 6.08347 10.5019 5.98345 11.1599C5.88532 11.6248 5.88532 12.105 5.98345 12.5699C6.08588 13.0347 6.28211 13.4736 6.56012 13.8599C6.92983 14.4125 7.46217 14.8365 8.08345 15.0732C8.69864 15.3134 9.37049 15.369 10.0168 15.2332C10.4725 15.1299 10.9023 14.9348 11.2801 14.6599C11.7741 14.258 12.2214 13.8018 12.6135 13.2999L12.8401 13.0499Z' fill='white'/%3e%3c/svg%3e";
|
|
4467
4470
|
|
|
4468
|
-
var img$
|
|
4471
|
+
var img$3 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z' fill='%23F7B731'/%3e%3cpath d='M17.0168 10.4836C16.8598 10.4819 16.704 10.5111 16.5583 10.5697C16.4126 10.6282 16.2799 10.715 16.1679 10.8249C16.0558 10.9348 15.9665 11.0658 15.9051 11.2103C15.8437 11.3548 15.8114 11.51 15.8101 11.667C15.8125 11.8887 15.8759 12.1056 15.9934 12.2936L15.3268 13.0036C15.1062 12.8766 14.8516 12.8214 14.5982 12.8459C14.3449 12.8704 14.1055 12.9733 13.9134 13.1403L13.2168 12.667C13.3204 12.3753 13.3514 12.0627 13.307 11.7564C13.2626 11.45 13.1441 11.1591 12.9619 10.9089C12.7796 10.6587 12.5391 10.4567 12.2611 10.3204C11.9832 10.1842 11.6762 10.1178 11.3668 10.127C10.9257 10.1237 10.4963 10.268 10.1468 10.537L9.2801 9.74364C9.38078 9.56935 9.43368 9.37158 9.43343 9.1703C9.43084 9.01345 9.39725 8.85866 9.33461 8.71484C9.27197 8.57101 9.18151 8.44099 9.06844 8.33225C8.95537 8.22352 8.82191 8.13821 8.67575 8.08124C8.52958 8.02427 8.3736 7.99677 8.21677 8.0003C7.89915 8.00103 7.59426 8.12525 7.36658 8.34671C7.13891 8.56817 7.00628 8.86949 6.99677 9.18697C6.99848 9.34467 7.03153 9.50046 7.09399 9.64528C7.15645 9.7901 7.24707 9.92106 7.36059 10.0305C7.4741 10.14 7.60825 10.2259 7.75524 10.283C7.90222 10.3402 8.0591 10.3676 8.21677 10.3636C8.43906 10.3609 8.65657 10.2987 8.84677 10.1836L9.71343 10.977C9.49991 11.2949 9.3884 11.6704 9.39376 12.0533C9.39912 12.4363 9.5211 12.8085 9.74343 13.1203L9.07677 13.8303C8.87595 13.7162 8.64759 13.6597 8.41677 13.667C8.18607 13.6729 7.96224 13.7467 7.77327 13.8791C7.5843 14.0116 7.43859 14.1968 7.35437 14.4117C7.27015 14.6265 7.25115 14.8615 7.29975 15.087C7.34836 15.3126 7.46241 15.5189 7.62763 15.68C7.79286 15.8411 8.00192 15.9499 8.22867 15.9928C8.45542 16.0357 8.68978 16.0108 8.90244 15.9212C9.11509 15.8315 9.2966 15.6812 9.42425 15.4889C9.5519 15.2967 9.62002 15.0711 9.6201 14.8403C9.61839 14.6452 9.57041 14.4533 9.4801 14.2803L10.1468 13.5703C10.5613 13.8772 11.0792 14.0102 11.5902 13.9411C12.1013 13.872 12.5653 13.6062 12.8834 13.2003L13.5501 13.637C13.5048 13.7597 13.4811 13.8894 13.4801 14.0203C13.4963 14.3289 13.6304 14.6196 13.8546 14.8323C14.0788 15.045 14.376 15.1636 14.6851 15.1636C14.9942 15.1636 15.2914 15.045 15.5156 14.8323C15.7398 14.6196 15.8739 14.3289 15.8901 14.0203C15.8923 13.8081 15.8333 13.5998 15.7201 13.4203L16.3868 12.7103C16.5613 12.81 16.7591 12.8617 16.9601 12.8603C17.1212 12.8706 17.2827 12.8481 17.4348 12.794C17.5869 12.74 17.7264 12.6555 17.8448 12.5458C17.9633 12.4361 18.0581 12.3035 18.1237 12.156C18.1893 12.0085 18.2241 11.8492 18.2261 11.6878C18.2282 11.5264 18.1974 11.3662 18.1356 11.2171C18.0737 11.068 17.9822 10.933 17.8666 10.8203C17.751 10.7077 17.6137 10.6198 17.463 10.5619C17.3123 10.504 17.1514 10.4774 16.9901 10.4836H17.0168ZM11.3501 13.2436C11.1161 13.2377 10.8891 13.163 10.6973 13.0287C10.5056 12.8944 10.3578 12.7065 10.2723 12.4886C10.1868 12.2707 10.1675 12.0325 10.2167 11.8036C10.266 11.5748 10.3816 11.3656 10.5492 11.2021C10.7167 11.0387 10.9288 10.9283 11.1588 10.8848C11.3887 10.8412 11.6264 10.8665 11.8422 10.9574C12.0579 11.0483 12.242 11.2007 12.3714 11.3957C12.5009 11.5907 12.57 11.8196 12.5701 12.0536C12.5657 12.3719 12.4357 12.6756 12.2085 12.8985C11.9812 13.1214 11.6751 13.2454 11.3568 13.2436H11.3501Z' fill='white'/%3e%3c/svg%3e";
|
|
4469
4472
|
|
|
4470
|
-
var img$
|
|
4473
|
+
var img$2 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z' fill='%23205AB7'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M16.0859 8.30868C16.4108 8.42839 16.6831 8.6593 16.8542 8.96074L16.8628 8.97583L16.8705 8.99134C17.0174 9.28464 17.0775 9.61353 17.0441 9.93936C17.0123 11.03 16.8132 12.1093 16.4535 13.1395L16.4528 13.1415C16.1368 14.0377 15.4456 15.1335 14.6589 16.0108C14.2622 16.4533 13.8228 16.8611 13.3705 17.1668C12.9284 17.4656 12.4155 17.7067 11.8835 17.7262L11.8597 17.7271L11.8358 17.7262C11.291 17.7072 10.7708 17.4701 10.3204 17.1682C9.86244 16.8612 9.42376 16.4516 9.03057 16.0079C8.24999 15.1271 7.57941 14.0321 7.26533 13.1415L7.2645 13.1391C6.90532 12.1083 6.70674 11.0285 6.67566 9.93751C6.64229 9.61177 6.70236 9.28297 6.84922 8.98974L6.85684 8.97453L6.86522 8.95974C7.03585 8.65846 7.30747 8.42744 7.63179 8.30728L11.3874 6.76891C11.4429 6.74689 11.4996 6.7281 11.5571 6.71254C11.7538 6.6514 11.9644 6.6514 12.161 6.71254C12.2186 6.7281 12.2753 6.74693 12.3307 6.76895L12.3374 6.77159L16.0859 8.30868ZM11.9735 7.35255C11.8994 7.32695 11.8188 7.32695 11.7447 7.35255C11.7069 7.36213 11.6698 7.37415 11.6335 7.38855L7.87245 8.92913C7.69157 8.99369 7.53996 9.12117 7.44531 9.28828C7.35196 9.47467 7.31578 9.6845 7.34132 9.89139C7.36791 10.9234 7.55437 11.9449 7.89404 12.9198C8.45396 14.5075 10.3737 17.008 11.8591 17.06C13.2749 17.008 15.2642 14.5075 15.8241 12.9198C16.1642 11.9455 16.3512 10.9245 16.3784 9.89299C16.404 9.6861 16.3678 9.47627 16.2745 9.28988C16.1794 9.12247 16.0272 8.99495 15.8457 8.93073L12.0847 7.38855C12.0484 7.37415 12.0113 7.36213 11.9735 7.35255Z' fill='white'/%3e%3cpath d='M11.8631 8.29559L8.22357 9.77059V10.8904L11.8631 9.33705L15.5025 10.8904V9.77059L11.8631 8.29559Z' fill='white'/%3e%3cpath d='M10.6184 15.718C10.7942 16.0092 11.3957 16.4678 11.8633 16.4774C12.3078 16.4678 12.9324 16.0092 13.108 15.718C13.2835 15.4268 10.4426 15.427 10.6184 15.718Z' fill='white'/%3e%3c/svg%3e";
|
|
4471
4474
|
|
|
4472
|
-
var img = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='-8 -8 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M19.7521 0.348161H20.3976V2.23694H20.7722L20.7752 0.351063H21.4208V0.00290065L19.7521 0V0.348161Z' fill='%232B2B2B'/%3e %3cpath d='M22.31 0.00290065H21.7223V2.23114H22.0785L22.0816 0.438104H22.0877L22.718 2.23404H22.9799L23.6224 0.441005H23.6285L23.6255 2.23404H23.997L24 0.00290065H23.4093L22.8642 1.58994H22.8551L22.31 0.00290065Z' fill='%232B2B2B'/%3e %3cpath d='M16.4863 0C15.3048 0 14.5435 0.713733 14.5435 1.81915L14.5374 8.1557C13.3194 6.89362 11.4893 6.20309 9.34245 6.20019C4.36976 6.19729 0.00609663 10.3636 6.37628e-06 15.1219C-0.00608387 19.8453 4.35149 23.9942 9.32114 24C11.5258 24.0029 13.5904 22.9207 14.6836 21.853C14.8968 23.0135 15.6306 23.6489 16.7726 23.6489C17.7165 23.6489 18.4017 22.9584 18.4047 22.0068L18.4291 1.82495C18.4291 0.734042 17.6496 0.00290135 16.4863 0ZM9.28764 20.0803C6.42218 20.0774 4.08961 17.852 4.09266 15.1161C4.0957 12.383 6.43131 10.1605 9.29677 10.1634C12.1622 10.1663 14.4948 12.3917 14.4918 15.1277C14.4887 17.8607 12.1531 20.0832 9.28764 20.0803Z' fill='%232B2B2B'/%3e %3cpath d='M9.29431 11.7998C7.3363 11.7998 5.74979 13.3143 5.74979 15.1799C5.74979 17.0455 7.3363 18.56 9.29431 18.56C11.2523 18.56 12.8419 17.0455 12.8419 15.1799C12.8419 13.3143 11.2523 11.7998 9.29431 11.7998Z' fill='%23517934'/%3e%3c/svg%3e";
|
|
4475
|
+
var img$1 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='-8 -8 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M19.7521 0.348161H20.3976V2.23694H20.7722L20.7752 0.351063H21.4208V0.00290065L19.7521 0V0.348161Z' fill='%232B2B2B'/%3e %3cpath d='M22.31 0.00290065H21.7223V2.23114H22.0785L22.0816 0.438104H22.0877L22.718 2.23404H22.9799L23.6224 0.441005H23.6285L23.6255 2.23404H23.997L24 0.00290065H23.4093L22.8642 1.58994H22.8551L22.31 0.00290065Z' fill='%232B2B2B'/%3e %3cpath d='M16.4863 0C15.3048 0 14.5435 0.713733 14.5435 1.81915L14.5374 8.1557C13.3194 6.89362 11.4893 6.20309 9.34245 6.20019C4.36976 6.19729 0.00609663 10.3636 6.37628e-06 15.1219C-0.00608387 19.8453 4.35149 23.9942 9.32114 24C11.5258 24.0029 13.5904 22.9207 14.6836 21.853C14.8968 23.0135 15.6306 23.6489 16.7726 23.6489C17.7165 23.6489 18.4017 22.9584 18.4047 22.0068L18.4291 1.82495C18.4291 0.734042 17.6496 0.00290135 16.4863 0ZM9.28764 20.0803C6.42218 20.0774 4.08961 17.852 4.09266 15.1161C4.0957 12.383 6.43131 10.1605 9.29677 10.1634C12.1622 10.1663 14.4948 12.3917 14.4918 15.1277C14.4887 17.8607 12.1531 20.0832 9.28764 20.0803Z' fill='%232B2B2B'/%3e %3cpath d='M9.29431 11.7998C7.3363 11.7998 5.74979 13.3143 5.74979 15.1799C5.74979 17.0455 7.3363 18.56 9.29431 18.56C11.2523 18.56 12.8419 17.0455 12.8419 15.1799C12.8419 13.3143 11.2523 11.7998 9.29431 11.7998Z' fill='%23517934'/%3e%3c/svg%3e";
|
|
4473
4476
|
|
|
4474
4477
|
// Takes a appType name and returns its logo as a data url.
|
|
4475
4478
|
// If appType does not exist the Digital.ai logo is returned.
|
|
@@ -4477,31 +4480,31 @@ const getLogoForAppType = appType => {
|
|
|
4477
4480
|
switch (appType) {
|
|
4478
4481
|
case 'Release':
|
|
4479
4482
|
{
|
|
4480
|
-
return img$
|
|
4483
|
+
return img$7;
|
|
4481
4484
|
}
|
|
4482
4485
|
case 'Deploy':
|
|
4483
4486
|
{
|
|
4484
|
-
return img$
|
|
4487
|
+
return img$6;
|
|
4485
4488
|
}
|
|
4486
4489
|
case 'Agility':
|
|
4487
4490
|
{
|
|
4488
|
-
return img$
|
|
4491
|
+
return img$5;
|
|
4489
4492
|
}
|
|
4490
4493
|
case 'Continuous Testing':
|
|
4491
4494
|
{
|
|
4492
|
-
return img$
|
|
4495
|
+
return img$4;
|
|
4493
4496
|
}
|
|
4494
4497
|
case 'Intelligence':
|
|
4495
4498
|
{
|
|
4496
|
-
return img$
|
|
4499
|
+
return img$3;
|
|
4497
4500
|
}
|
|
4498
4501
|
case 'Application Protection':
|
|
4499
4502
|
{
|
|
4500
|
-
return img$
|
|
4503
|
+
return img$2;
|
|
4501
4504
|
}
|
|
4502
4505
|
default:
|
|
4503
4506
|
{
|
|
4504
|
-
return img;
|
|
4507
|
+
return img$1;
|
|
4505
4508
|
}
|
|
4506
4509
|
}
|
|
4507
4510
|
};
|
|
@@ -4662,12 +4665,12 @@ const recentAppInstancesSetter = (latestInstance, maxRecentItems
|
|
|
4662
4665
|
};
|
|
4663
4666
|
};
|
|
4664
4667
|
|
|
4665
|
-
const rootClassName$
|
|
4668
|
+
const rootClassName$Q = 'dot-app-switcher';
|
|
4666
4669
|
const StyledAppSwitcher = styled(DotDrawer)`
|
|
4667
4670
|
${({
|
|
4668
4671
|
theme
|
|
4669
4672
|
}) => css`
|
|
4670
|
-
&.${rootClassName$
|
|
4673
|
+
&.${rootClassName$Q} {
|
|
4671
4674
|
.dot-drawer-paper {
|
|
4672
4675
|
padding: 0;
|
|
4673
4676
|
width: 382px;
|
|
@@ -4777,7 +4780,7 @@ const DotAppSwitcherView = ({
|
|
|
4777
4780
|
if (dotCoreApiContext !== null) {
|
|
4778
4781
|
setSelectedAppType = dotCoreApiContext.setSelectedAppSwitcherAppType;
|
|
4779
4782
|
}
|
|
4780
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4783
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Q, className);
|
|
4781
4784
|
const [appTypeMap, setAppTypeMap] = useState();
|
|
4782
4785
|
const [appTypeLabels, setAppTypeLabels] = useState();
|
|
4783
4786
|
const [appTypeMenuItems, setAppTypeMenuItems] = useState();
|
|
@@ -5155,12 +5158,12 @@ var SvgLogoDigitalAiWhite = function SvgLogoDigitalAiWhite(_ref, ref) {
|
|
|
5155
5158
|
};
|
|
5156
5159
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgLogoDigitalAiWhite);
|
|
5157
5160
|
|
|
5158
|
-
const rootClassName$
|
|
5161
|
+
const rootClassName$P = 'dot-sidebar';
|
|
5159
5162
|
const StyledSidebar = styled.aside`
|
|
5160
5163
|
${({
|
|
5161
5164
|
theme
|
|
5162
5165
|
}) => css`
|
|
5163
|
-
&.${rootClassName$
|
|
5166
|
+
&.${rootClassName$P} {
|
|
5164
5167
|
align-items: stretch;
|
|
5165
5168
|
background: ${theme.palette.figma.background.level1.white};
|
|
5166
5169
|
border-width: 0 1px;
|
|
@@ -5434,10 +5437,10 @@ const StyledSidebar = styled.aside`
|
|
|
5434
5437
|
`}
|
|
5435
5438
|
`;
|
|
5436
5439
|
|
|
5437
|
-
const rootClassName$
|
|
5440
|
+
const rootClassName$O = 'dot-truncate-with-tooltip';
|
|
5438
5441
|
const StyledTruncateWithTooltip = styled(Tooltip)`
|
|
5439
5442
|
${() => css`
|
|
5440
|
-
&.${rootClassName$
|
|
5443
|
+
&.${rootClassName$O} {
|
|
5441
5444
|
display: block;
|
|
5442
5445
|
overflow: hidden;
|
|
5443
5446
|
white-space: nowrap;
|
|
@@ -5468,7 +5471,7 @@ const DotTruncateWithTooltip = ({
|
|
|
5468
5471
|
label,
|
|
5469
5472
|
width
|
|
5470
5473
|
}) => {
|
|
5471
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5474
|
+
const rootClasses = useStylesWithRootClass(rootClassName$O, className, charactersLimit ? 'dot-characters-limit' : '');
|
|
5472
5475
|
return jsx(StyledTruncateWithTooltip, {
|
|
5473
5476
|
"aria-label": ariaLabel,
|
|
5474
5477
|
arrow: arrow,
|
|
@@ -5578,7 +5581,7 @@ const DotSidebar = ({
|
|
|
5578
5581
|
setIsOpen(!isOpen);
|
|
5579
5582
|
};
|
|
5580
5583
|
const sidebarClasses = useStylesWithRootClass('side-nav', openClass);
|
|
5581
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5584
|
+
const rootClasses = useStylesWithRootClass(rootClassName$P, openClass, className);
|
|
5582
5585
|
return jsxs(StyledSidebar, {
|
|
5583
5586
|
"aria-label": ariaLabel,
|
|
5584
5587
|
className: rootClasses,
|
|
@@ -5645,12 +5648,12 @@ const DotSidebar = ({
|
|
|
5645
5648
|
});
|
|
5646
5649
|
};
|
|
5647
5650
|
|
|
5648
|
-
const rootClassName$
|
|
5651
|
+
const rootClassName$N = 'dot-badge';
|
|
5649
5652
|
const StyledBadge = styled(Badge)`
|
|
5650
5653
|
${({
|
|
5651
5654
|
theme
|
|
5652
5655
|
}) => css`
|
|
5653
|
-
&.${rootClassName$
|
|
5656
|
+
&.${rootClassName$N} {
|
|
5654
5657
|
color: ${theme.palette.figma.typography.black};
|
|
5655
5658
|
word-break: normal;
|
|
5656
5659
|
|
|
@@ -5685,7 +5688,7 @@ const DotBadge = ({
|
|
|
5685
5688
|
overlap,
|
|
5686
5689
|
variant = 'dot'
|
|
5687
5690
|
}) => {
|
|
5688
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5691
|
+
const rootClasses = useStylesWithRootClass(rootClassName$N, className);
|
|
5689
5692
|
return jsx(StyledBadge, {
|
|
5690
5693
|
"$badgeColor": badgeColor,
|
|
5691
5694
|
anchorOrigin: {
|
|
@@ -5707,7 +5710,7 @@ const DotBadge = ({
|
|
|
5707
5710
|
});
|
|
5708
5711
|
};
|
|
5709
5712
|
|
|
5710
|
-
const rootClassName$
|
|
5713
|
+
const rootClassName$M = 'dot-app-toolbar';
|
|
5711
5714
|
const denseClassName = 'dense';
|
|
5712
5715
|
const StyledMainMenu = styled(DotDrawer)`
|
|
5713
5716
|
${({
|
|
@@ -5747,7 +5750,7 @@ const StyledAppToolbar = styled.header`
|
|
|
5747
5750
|
${({
|
|
5748
5751
|
theme
|
|
5749
5752
|
}) => css`
|
|
5750
|
-
&.${rootClassName$
|
|
5753
|
+
&.${rootClassName$M} {
|
|
5751
5754
|
align-items: center;
|
|
5752
5755
|
background: ${theme.palette.figma.appToolbar.background};
|
|
5753
5756
|
border-bottom: 4px solid ${theme.palette.figma.border.default};
|
|
@@ -5869,7 +5872,7 @@ const DotAppToolbar = ({
|
|
|
5869
5872
|
const displayAppLogo = appLogo || appLogoSmall;
|
|
5870
5873
|
const mainMenuRef = useRef(null);
|
|
5871
5874
|
const denseClass = dense ? denseClassName : '';
|
|
5872
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5875
|
+
const rootClasses = useStylesWithRootClass(rootClassName$M, className, denseClass, showMainMenu ? '' : 'without-menu-icon');
|
|
5873
5876
|
const mainMenuClasses = useStylesWithRootClass('dot-main-menu', denseClass, menuOpen ? 'open' : '');
|
|
5874
5877
|
const targetBreakpoint = useMediaQuery(theme => theme.breakpoints.up('lg'));
|
|
5875
5878
|
useEffect(() => {
|
|
@@ -5999,14 +6002,14 @@ const DotAppToolbar = ({
|
|
|
5999
6002
|
}) : appToolbar;
|
|
6000
6003
|
};
|
|
6001
6004
|
|
|
6002
|
-
const rootClassName$
|
|
6005
|
+
const rootClassName$L = 'dot-autocomplete';
|
|
6003
6006
|
const inputRootClassName = 'dot-input-root';
|
|
6004
6007
|
const inputMediumClassName = 'dot-input-medium';
|
|
6005
6008
|
const StyledAutocomplete = styled(Autocomplete)`
|
|
6006
6009
|
${({
|
|
6007
6010
|
theme
|
|
6008
6011
|
}) => css`
|
|
6009
|
-
&.${rootClassName$
|
|
6012
|
+
&.${rootClassName$L} {
|
|
6010
6013
|
&.${inputMediumClassName} .dot-text-field .${inputRootClassName} {
|
|
6011
6014
|
height: 56px;
|
|
6012
6015
|
padding-left: ${theme.spacing(2)};
|
|
@@ -6043,12 +6046,12 @@ const StyledAutocomplete = styled(Autocomplete)`
|
|
|
6043
6046
|
`}
|
|
6044
6047
|
`;
|
|
6045
6048
|
|
|
6046
|
-
const rootClassName$
|
|
6049
|
+
const rootClassName$K = 'dot-chip';
|
|
6047
6050
|
const StyledChip = styled(Chip)`
|
|
6048
6051
|
${({
|
|
6049
6052
|
theme
|
|
6050
6053
|
}) => css`
|
|
6051
|
-
&.${rootClassName$
|
|
6054
|
+
&.${rootClassName$K} {
|
|
6052
6055
|
background: ${theme.palette.figma.neutral.normal};
|
|
6053
6056
|
border-color: ${theme.palette.figma.border.darker};
|
|
6054
6057
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -6154,7 +6157,7 @@ const DotChip = ({
|
|
|
6154
6157
|
charactersLimit = DEFAULT_CHARACTERS_LIMIT,
|
|
6155
6158
|
children,
|
|
6156
6159
|
className,
|
|
6157
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
6160
|
+
'data-pendoid': dataPendoId = rootClassName$K,
|
|
6158
6161
|
'data-testid': dataTestId,
|
|
6159
6162
|
disabled = false,
|
|
6160
6163
|
error = false,
|
|
@@ -6166,7 +6169,7 @@ const DotChip = ({
|
|
|
6166
6169
|
startIcon
|
|
6167
6170
|
}) => {
|
|
6168
6171
|
const errorClass = error ? 'Mui-error' : '';
|
|
6169
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6172
|
+
const rootClasses = useStylesWithRootClass(rootClassName$K, className, errorClass);
|
|
6170
6173
|
const getChipLabel = () => {
|
|
6171
6174
|
if (charactersLimit <= 0 || children.length < charactersLimit) return children;
|
|
6172
6175
|
const label = `${children.substring(0, charactersLimit)}...`;
|
|
@@ -6264,7 +6267,7 @@ const DotAutoComplete = ({
|
|
|
6264
6267
|
ariaLabel,
|
|
6265
6268
|
autoFocus,
|
|
6266
6269
|
className,
|
|
6267
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
6270
|
+
'data-pendoid': dataPendoId = rootClassName$L,
|
|
6268
6271
|
'data-testid': dataTestId,
|
|
6269
6272
|
defaultValue,
|
|
6270
6273
|
dense = true,
|
|
@@ -6296,6 +6299,7 @@ const DotAutoComplete = ({
|
|
|
6296
6299
|
persistentLabel,
|
|
6297
6300
|
placeholder,
|
|
6298
6301
|
readOnly = false,
|
|
6302
|
+
renderGroup,
|
|
6299
6303
|
renderOption,
|
|
6300
6304
|
renderTags,
|
|
6301
6305
|
required = false,
|
|
@@ -6314,8 +6318,8 @@ const DotAutoComplete = ({
|
|
|
6314
6318
|
const popperOpen = !readOnly && (open || isOpened);
|
|
6315
6319
|
const preventDuplicateInsertion = actionItem === null || actionItem === void 0 ? void 0 : actionItem.preventDuplicateInsertion;
|
|
6316
6320
|
const textFieldWarningClassName = !error && warning && warningClassName;
|
|
6317
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6318
|
-
const textFieldRootClasses = useStylesWithRootClass(rootClassName$
|
|
6321
|
+
const rootClasses = useStylesWithRootClass(rootClassName$L, size === 'medium' && inputMediumClassName, className);
|
|
6322
|
+
const textFieldRootClasses = useStylesWithRootClass(rootClassName$16, readOnly && readOnlyClassName$1, textFieldWarningClassName);
|
|
6319
6323
|
const inputRootClasses = useStylesWithRootClass(inputRootClassName, !dense && inputMediumClassName);
|
|
6320
6324
|
let highlightedOption = null;
|
|
6321
6325
|
let textFieldInput;
|
|
@@ -6360,7 +6364,7 @@ const DotAutoComplete = ({
|
|
|
6360
6364
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6361
6365
|
const DotPopper = props => {
|
|
6362
6366
|
if (!isActionItemDefined) return jsx(StyledPopper, Object.assign({}, props, {
|
|
6363
|
-
className: rootClassName$
|
|
6367
|
+
className: rootClassName$_,
|
|
6364
6368
|
disablePortal: disablePortal,
|
|
6365
6369
|
"$maxHeight": maxHeight
|
|
6366
6370
|
}));
|
|
@@ -6382,7 +6386,7 @@ const DotAutoComplete = ({
|
|
|
6382
6386
|
const paperProps = props.children.props;
|
|
6383
6387
|
const paperChildren = paperProps.children;
|
|
6384
6388
|
return jsx(StyledPopper, Object.assign({}, props, {
|
|
6385
|
-
className: rootClassName$
|
|
6389
|
+
className: rootClassName$_,
|
|
6386
6390
|
disablePortal: disablePortal,
|
|
6387
6391
|
"$maxHeight": maxHeight,
|
|
6388
6392
|
children: jsxs(Paper, Object.assign({}, paperProps, {
|
|
@@ -6583,6 +6587,7 @@ const DotAutoComplete = ({
|
|
|
6583
6587
|
})
|
|
6584
6588
|
);
|
|
6585
6589
|
},
|
|
6590
|
+
renderGroup: group ? renderGroup : undefined,
|
|
6586
6591
|
renderOption: renderOption,
|
|
6587
6592
|
renderTags: handleTagsRender(),
|
|
6588
6593
|
size: size,
|
|
@@ -6590,10 +6595,10 @@ const DotAutoComplete = ({
|
|
|
6590
6595
|
});
|
|
6591
6596
|
};
|
|
6592
6597
|
|
|
6593
|
-
const rootClassName$
|
|
6598
|
+
const rootClassName$J = 'dot-avatar-group';
|
|
6594
6599
|
const StyledAvatarGroup = styled(AvatarGroup)`
|
|
6595
6600
|
${() => css`
|
|
6596
|
-
&.${rootClassName$
|
|
6601
|
+
&.${rootClassName$J} {
|
|
6597
6602
|
justify-content: flex-end;
|
|
6598
6603
|
|
|
6599
6604
|
.MuiAvatar-root {
|
|
@@ -6612,7 +6617,7 @@ const DotAvatarGroup = ({
|
|
|
6612
6617
|
max = 3,
|
|
6613
6618
|
spacing = 'medium'
|
|
6614
6619
|
}) => {
|
|
6615
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6620
|
+
const rootClasses = useStylesWithRootClass(rootClassName$J, className);
|
|
6616
6621
|
return jsx(StyledAvatarGroup, {
|
|
6617
6622
|
"aria-label": ariaLabel,
|
|
6618
6623
|
classes: {
|
|
@@ -6627,13 +6632,13 @@ const DotAvatarGroup = ({
|
|
|
6627
6632
|
});
|
|
6628
6633
|
};
|
|
6629
6634
|
|
|
6630
|
-
const rootClassName$
|
|
6635
|
+
const rootClassName$I = 'dot-breadcrumbs';
|
|
6631
6636
|
const breadcrumbsWrapperClass = 'dot-breadcrumbs-wrapper';
|
|
6632
6637
|
const StyledBreadcrumbsWrapper = styled.div`
|
|
6633
6638
|
${({
|
|
6634
6639
|
theme
|
|
6635
6640
|
}) => css`
|
|
6636
|
-
&.${rootClassName$
|
|
6641
|
+
&.${rootClassName$I} {
|
|
6637
6642
|
overflow: hidden;
|
|
6638
6643
|
|
|
6639
6644
|
.dot-breadcrumbs-menu {
|
|
@@ -6653,7 +6658,7 @@ const StyledBreadcrumbs = styled(Breadcrumbs)`
|
|
|
6653
6658
|
${({
|
|
6654
6659
|
theme
|
|
6655
6660
|
}) => css`
|
|
6656
|
-
&.${rootClassName$
|
|
6661
|
+
&.${rootClassName$I} {
|
|
6657
6662
|
margin-bottom: 0;
|
|
6658
6663
|
|
|
6659
6664
|
.MuiBreadcrumbs-ol {
|
|
@@ -6981,7 +6986,7 @@ const DotBreadcrumbs = ({
|
|
|
6981
6986
|
children: [jsx(StyledBreadcrumbs, {
|
|
6982
6987
|
"aria-label": "breadcrumb",
|
|
6983
6988
|
classes: {
|
|
6984
|
-
root: rootClassName$
|
|
6989
|
+
root: rootClassName$I,
|
|
6985
6990
|
ol: 'dot-ol',
|
|
6986
6991
|
li: 'dot-li'
|
|
6987
6992
|
},
|
|
@@ -7012,14 +7017,14 @@ const DotBreadcrumbs = ({
|
|
|
7012
7017
|
});
|
|
7013
7018
|
};
|
|
7014
7019
|
|
|
7015
|
-
const rootClassName$
|
|
7020
|
+
const rootClassName$H = 'dot-button-toggle';
|
|
7016
7021
|
// TODO: need to update ripple color
|
|
7017
7022
|
// https://github.com/mui/material-ui/issues/28543
|
|
7018
7023
|
const StyledToggleButtonGroup = styled(ToggleButtonGroup)`
|
|
7019
7024
|
${({
|
|
7020
7025
|
theme
|
|
7021
7026
|
}) => css`
|
|
7022
|
-
&.${rootClassName$
|
|
7027
|
+
&.${rootClassName$H} {
|
|
7023
7028
|
button:not(.MuiToggleButton-sizeLarge):not(.MuiToggleButton-sizeSmall) {
|
|
7024
7029
|
/* Override height for medium size */
|
|
7025
7030
|
height: ${theme.spacing(5)};
|
|
@@ -7135,7 +7140,7 @@ const DotButtonToggle = ({
|
|
|
7135
7140
|
buttonOptions,
|
|
7136
7141
|
className,
|
|
7137
7142
|
color,
|
|
7138
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
7143
|
+
'data-pendoid': dataPendoId = rootClassName$H,
|
|
7139
7144
|
'data-testid': dataTestId = 'dot-toggle',
|
|
7140
7145
|
disableFocusRipple = false,
|
|
7141
7146
|
disableRipple = false,
|
|
@@ -7145,7 +7150,7 @@ const DotButtonToggle = ({
|
|
|
7145
7150
|
size = 'medium',
|
|
7146
7151
|
value
|
|
7147
7152
|
}) => {
|
|
7148
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7153
|
+
const rootClasses = useStylesWithRootClass(rootClassName$H, className);
|
|
7149
7154
|
const renderToggleButton = ({
|
|
7150
7155
|
ariaLabel: optionAriaLabel,
|
|
7151
7156
|
badgeContent: optionBadgeContent,
|
|
@@ -7228,12 +7233,12 @@ const TooltipToggleButton = forwardRef((_a, ref) => {
|
|
|
7228
7233
|
}));
|
|
7229
7234
|
});
|
|
7230
7235
|
|
|
7231
|
-
const rootClassName$
|
|
7236
|
+
const rootClassName$G = 'dot-card';
|
|
7232
7237
|
const StyledCard = styled(Card)`
|
|
7233
7238
|
${({
|
|
7234
7239
|
theme
|
|
7235
7240
|
}) => css`
|
|
7236
|
-
&.${rootClassName$
|
|
7241
|
+
&.${rootClassName$G} {
|
|
7237
7242
|
background-color: ${theme.palette.figma.background.level1.white};
|
|
7238
7243
|
}
|
|
7239
7244
|
`}
|
|
@@ -7245,7 +7250,7 @@ const DotCard = ({
|
|
|
7245
7250
|
className,
|
|
7246
7251
|
'data-testid': dataTestId
|
|
7247
7252
|
}) => {
|
|
7248
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7253
|
+
const rootClasses = useStylesWithRootClass(rootClassName$G, className);
|
|
7249
7254
|
return jsx(StyledCard, {
|
|
7250
7255
|
"aria-label": ariaLabel,
|
|
7251
7256
|
classes: {
|
|
@@ -7274,12 +7279,12 @@ const DotCardContent = ({
|
|
|
7274
7279
|
});
|
|
7275
7280
|
};
|
|
7276
7281
|
|
|
7277
|
-
const rootClassName$
|
|
7282
|
+
const rootClassName$F = 'dot-card-footer';
|
|
7278
7283
|
const StyledDiv = styled.div`
|
|
7279
7284
|
${({
|
|
7280
7285
|
theme
|
|
7281
7286
|
}) => css`
|
|
7282
|
-
&.${rootClassName$
|
|
7287
|
+
&.${rootClassName$F} {
|
|
7283
7288
|
padding: ${theme.spacing(2)};
|
|
7284
7289
|
}
|
|
7285
7290
|
`}
|
|
@@ -7291,7 +7296,7 @@ const DotCardFooter = ({
|
|
|
7291
7296
|
className,
|
|
7292
7297
|
'data-testid': dataTestId
|
|
7293
7298
|
}) => {
|
|
7294
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7299
|
+
const rootClasses = useStylesWithRootClass(rootClassName$F, className);
|
|
7295
7300
|
return jsx(StyledDiv, {
|
|
7296
7301
|
"aria-label": ariaLabel,
|
|
7297
7302
|
className: rootClasses,
|
|
@@ -7335,9 +7340,9 @@ const DotCardHeader = ({
|
|
|
7335
7340
|
});
|
|
7336
7341
|
};
|
|
7337
7342
|
|
|
7338
|
-
const rootClassName$
|
|
7343
|
+
const rootClassName$E = 'dot-form-control-label';
|
|
7339
7344
|
const StyledFormControlLabel = styled(FormControlLabel)`
|
|
7340
|
-
&.${rootClassName$
|
|
7345
|
+
&.${rootClassName$E} {
|
|
7341
7346
|
.MuiFormControlLabel-label {
|
|
7342
7347
|
margin-bottom: 0;
|
|
7343
7348
|
padding: 0 0 0 4px;
|
|
@@ -7360,12 +7365,12 @@ const StyledFormControlLabel = styled(FormControlLabel)`
|
|
|
7360
7365
|
}
|
|
7361
7366
|
`;
|
|
7362
7367
|
|
|
7363
|
-
const rootClassName$
|
|
7368
|
+
const rootClassName$D = 'dot-checkbox';
|
|
7364
7369
|
const StyledCheckbox = styled(Checkbox)`
|
|
7365
7370
|
${({
|
|
7366
7371
|
theme
|
|
7367
7372
|
}) => css`
|
|
7368
|
-
&.${rootClassName$
|
|
7373
|
+
&.${rootClassName$D} {
|
|
7369
7374
|
padding: ${theme.spacing(1)};
|
|
7370
7375
|
|
|
7371
7376
|
&.MuiCheckbox-indeterminate {
|
|
@@ -7384,7 +7389,7 @@ function DotCheckbox({
|
|
|
7384
7389
|
ariaLabelledby,
|
|
7385
7390
|
checked,
|
|
7386
7391
|
className,
|
|
7387
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
7392
|
+
'data-pendoid': dataPendoId = rootClassName$E,
|
|
7388
7393
|
'data-testid': dataTestId,
|
|
7389
7394
|
disabled,
|
|
7390
7395
|
disableRipple,
|
|
@@ -7399,14 +7404,14 @@ function DotCheckbox({
|
|
|
7399
7404
|
size = 'medium',
|
|
7400
7405
|
value
|
|
7401
7406
|
}) {
|
|
7402
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7407
|
+
const rootClasses = useStylesWithRootClass(rootClassName$E, className);
|
|
7403
7408
|
const handleChange = event => {
|
|
7404
7409
|
onChange && onChange(event, event.target.value);
|
|
7405
7410
|
};
|
|
7406
7411
|
const checkboxControl = jsx(StyledCheckbox, {
|
|
7407
7412
|
checked: checked,
|
|
7408
7413
|
classes: {
|
|
7409
|
-
root: rootClassName$
|
|
7414
|
+
root: rootClassName$D
|
|
7410
7415
|
},
|
|
7411
7416
|
color: "primary",
|
|
7412
7417
|
"data-pendoid": dataPendoId,
|
|
@@ -7435,13 +7440,13 @@ function DotCheckbox({
|
|
|
7435
7440
|
});
|
|
7436
7441
|
}
|
|
7437
7442
|
|
|
7438
|
-
const rootClassName$
|
|
7443
|
+
const rootClassName$C = 'dot-form-group';
|
|
7439
7444
|
const groupLabelClassName = 'dot-form-group-label';
|
|
7440
7445
|
const startAdornmentClassName = 'dot-start-adornment';
|
|
7441
7446
|
const endAdornmentClassName = 'dot-end-adornment';
|
|
7442
7447
|
const placementClassName = 'dot-';
|
|
7443
7448
|
const StyledFormControl = styled(FormControl)`
|
|
7444
|
-
&.${rootClassName$
|
|
7449
|
+
&.${rootClassName$C} {
|
|
7445
7450
|
.MuiFormLabel-root {
|
|
7446
7451
|
width: 100%;
|
|
7447
7452
|
line-height: 24px;
|
|
@@ -7472,7 +7477,7 @@ const StyledFormControl = styled(FormControl)`
|
|
|
7472
7477
|
}
|
|
7473
7478
|
`;
|
|
7474
7479
|
|
|
7475
|
-
const rootClassName$
|
|
7480
|
+
const rootClassName$B = 'dot-checkbox-group';
|
|
7476
7481
|
const wrapperClassName$1 = 'dot-checkbox-group-wrapper';
|
|
7477
7482
|
const checkboxListClassName = 'dot-checkbox-list';
|
|
7478
7483
|
const checkboxListItemClassName = 'dot-checkbox-list-item';
|
|
@@ -7481,7 +7486,7 @@ const StyledCheckboxGroup = styled.div`
|
|
|
7481
7486
|
theme
|
|
7482
7487
|
}) => css`{
|
|
7483
7488
|
&.${wrapperClassName$1} {
|
|
7484
|
-
.${rootClassName$
|
|
7489
|
+
.${rootClassName$B} {
|
|
7485
7490
|
width: 100%;
|
|
7486
7491
|
}
|
|
7487
7492
|
|
|
@@ -7504,7 +7509,7 @@ const StyledCheckboxGroup = styled.div`
|
|
|
7504
7509
|
margin-top: 0;
|
|
7505
7510
|
padding-left: ${theme.spacing(2.5)};
|
|
7506
7511
|
|
|
7507
|
-
.${rootClassName$
|
|
7512
|
+
.${rootClassName$E} {
|
|
7508
7513
|
margin: 0;
|
|
7509
7514
|
}
|
|
7510
7515
|
}
|
|
@@ -7512,13 +7517,13 @@ const StyledCheckboxGroup = styled.div`
|
|
|
7512
7517
|
`}
|
|
7513
7518
|
`;
|
|
7514
7519
|
|
|
7515
|
-
const rootClassName$
|
|
7520
|
+
const rootClassName$A = 'dot-form-group';
|
|
7516
7521
|
const StyledFormGroup = styled(FormGroup)`
|
|
7517
7522
|
${({
|
|
7518
7523
|
theme,
|
|
7519
7524
|
row
|
|
7520
7525
|
}) => css`
|
|
7521
|
-
&.${rootClassName$
|
|
7526
|
+
&.${rootClassName$A} > * {
|
|
7522
7527
|
margin: ${row ? `${theme.spacing(0.5)}` : 0};
|
|
7523
7528
|
}
|
|
7524
7529
|
`}
|
|
@@ -7531,7 +7536,7 @@ function DotFormGroup({
|
|
|
7531
7536
|
'data-testid': dataTestId,
|
|
7532
7537
|
row
|
|
7533
7538
|
}) {
|
|
7534
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7539
|
+
const rootClasses = useStylesWithRootClass(rootClassName$C, className);
|
|
7535
7540
|
return jsx(StyledFormGroup, {
|
|
7536
7541
|
"aria-label": ariaLabel,
|
|
7537
7542
|
classes: {
|
|
@@ -7570,7 +7575,7 @@ function DotCheckboxGroup({
|
|
|
7570
7575
|
size = 'medium'
|
|
7571
7576
|
}) {
|
|
7572
7577
|
const placement = `${placementClassName}${labelPlacement}`;
|
|
7573
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7578
|
+
const rootClasses = useStylesWithRootClass(rootClassName$C, rootClassName$B, className, placement);
|
|
7574
7579
|
const [selectedOptions, setSelectedOptions] = useState(defaultValues);
|
|
7575
7580
|
const [allChecked, setAllChecked] = useState(false);
|
|
7576
7581
|
/* This will ensure that state can be updated from the outside */
|
|
@@ -7655,12 +7660,12 @@ function DotCheckboxGroup({
|
|
|
7655
7660
|
});
|
|
7656
7661
|
}
|
|
7657
7662
|
|
|
7658
|
-
const rootClassName$
|
|
7663
|
+
const rootClassName$z = 'dot-dialog';
|
|
7659
7664
|
const StyledDialog = styled(Dialog)`
|
|
7660
7665
|
${({
|
|
7661
7666
|
theme
|
|
7662
7667
|
}) => css`
|
|
7663
|
-
&.${rootClassName$
|
|
7668
|
+
&.${rootClassName$z} {
|
|
7664
7669
|
.MuiDialog-paper {
|
|
7665
7670
|
background: ${theme.palette.figma.background.level1.white};
|
|
7666
7671
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -7706,7 +7711,7 @@ const DotDialog = ({
|
|
|
7706
7711
|
cancelButtonProps,
|
|
7707
7712
|
cancelButtonVisible = true,
|
|
7708
7713
|
className,
|
|
7709
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
7714
|
+
'data-pendoid': dataPendoId = rootClassName$z,
|
|
7710
7715
|
'data-testid': dataTestId,
|
|
7711
7716
|
children,
|
|
7712
7717
|
closeIconVisible,
|
|
@@ -7719,7 +7724,7 @@ const DotDialog = ({
|
|
|
7719
7724
|
submitButtonProps,
|
|
7720
7725
|
title
|
|
7721
7726
|
}) => {
|
|
7722
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7727
|
+
const rootClasses = useStylesWithRootClass(rootClassName$z, className);
|
|
7723
7728
|
const cancelClasses = useStylesWithRootClass(cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.className, 'cancel-button');
|
|
7724
7729
|
const [isOpen, setIsOpen] = useState(open);
|
|
7725
7730
|
useEffect(() => {
|
|
@@ -7837,7 +7842,7 @@ const DotConfirmationDialog = ({
|
|
|
7837
7842
|
});
|
|
7838
7843
|
};
|
|
7839
7844
|
|
|
7840
|
-
const rootClassName$
|
|
7845
|
+
const rootClassName$y = 'dot-grid';
|
|
7841
7846
|
const frGetter = value => typeof value === 'number' ? `repeat(${value}, 1fr)` : value;
|
|
7842
7847
|
const breakpointsGetter$1 = (theme, columnsBreakpoints, columnGap, rowGap) => `${theme.breakpoints.up('xs')} {
|
|
7843
7848
|
column-gap: ${`${columnGap.xs}px`};
|
|
@@ -7889,7 +7894,7 @@ const Grid = ({
|
|
|
7889
7894
|
className,
|
|
7890
7895
|
children
|
|
7891
7896
|
}) => {
|
|
7892
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7897
|
+
const rootClasses = useStylesWithRootClass(rootClassName$y, className);
|
|
7893
7898
|
return jsx("div", {
|
|
7894
7899
|
className: rootClasses,
|
|
7895
7900
|
children: children
|
|
@@ -7908,7 +7913,7 @@ const StyledGrid = styled(Grid)`
|
|
|
7908
7913
|
theme,
|
|
7909
7914
|
width
|
|
7910
7915
|
}) => css`
|
|
7911
|
-
&.${rootClassName$
|
|
7916
|
+
&.${rootClassName$y} {
|
|
7912
7917
|
display: grid;
|
|
7913
7918
|
grid-template-rows: ${frGetter(rows)};
|
|
7914
7919
|
${columns ? `${columns && `grid-template-columns: ${frGetter(columns)}`};` : breakpointsGetter$1(theme, columnsBreakpoints, columnGap, rowGap)}
|
|
@@ -8114,7 +8119,7 @@ const CssGridDebug = ({
|
|
|
8114
8119
|
});
|
|
8115
8120
|
};
|
|
8116
8121
|
|
|
8117
|
-
const rootClassName$
|
|
8122
|
+
const rootClassName$x = 'dot-empty-state';
|
|
8118
8123
|
const StyledEmptyState = styled.div`
|
|
8119
8124
|
${({
|
|
8120
8125
|
theme
|
|
@@ -8154,7 +8159,7 @@ const DotEmptyState = ({
|
|
|
8154
8159
|
subtitle,
|
|
8155
8160
|
title
|
|
8156
8161
|
}) => {
|
|
8157
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8162
|
+
const rootClasses = useStylesWithRootClass(rootClassName$x, className);
|
|
8158
8163
|
return jsxs(StyledEmptyState, {
|
|
8159
8164
|
"aria-label": ariaLabel,
|
|
8160
8165
|
className: rootClasses,
|
|
@@ -8174,6 +8179,26 @@ const DotEmptyState = ({
|
|
|
8174
8179
|
});
|
|
8175
8180
|
};
|
|
8176
8181
|
|
|
8182
|
+
var img = "data:image/svg+xml,%3csvg width='297' height='253' viewBox='0 0 297 253' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M43.6231 229.335C101.544 259.595 195.456 259.595 253.383 229.335C311.311 199.075 311.304 150.017 253.383 119.757C195.462 89.4972 101.544 89.4903 43.6161 119.757C-14.3114 150.024 -14.3045 199.075 43.6231 229.335Z' fill='%23F3F5F6'/%3e%3cpath d='M196.97 234.893C208.68 234.893 218.173 230.368 218.173 224.786C218.173 219.204 208.68 214.678 196.97 214.678C185.259 214.678 175.766 219.204 175.766 224.786C175.766 230.368 185.259 234.893 196.97 234.893Z' fill='%23E3E5E8'/%3e%3cpath d='M31.1652 50.0008V84.7753C31.1652 85.916 31.9671 86.3861 32.9626 85.8123L113.698 39.1951C114.22 38.8537 114.655 38.3943 114.967 37.8539C115.279 37.3135 115.46 36.7073 115.495 36.0841V1.28195C115.495 0.141239 114.686 -0.328873 113.698 0.24494L32.9626 46.8621C32.4354 47.205 31.9973 47.6686 31.6848 48.2143C31.3722 48.7601 31.1941 49.3725 31.1652 50.0008Z' fill='%23F3F5F6'/%3e%3cpath d='M36.7858 49.4546L60.9827 35.4895C62.0958 34.8466 62.9876 35.3651 62.9876 36.6441V60.9586C62.9497 61.652 62.7483 62.3267 62.3998 62.9274C62.0514 63.5282 61.5658 64.038 60.9827 64.4153L36.7858 78.3873C35.6796 79.0233 34.7809 78.5048 34.7809 77.2258V52.9252C34.8183 52.2297 35.0194 51.5529 35.3678 50.9499C35.7162 50.3468 36.202 49.8345 36.7858 49.4546Z' fill='%23F3F5F6'/%3e%3cpath d='M56.3784 47.6226L49.1815 62.5417L45.5174 60.4262C45.1656 60.2338 44.7528 60.1853 44.366 60.2911C43.9792 60.3968 43.6484 60.6485 43.4434 60.9931L34.7809 75.933V77.2396C34.7809 78.5186 35.6796 79.0371 36.7858 78.4011L60.9827 64.4291C61.5647 64.0506 62.0494 63.5404 62.3977 62.94C62.7459 62.3395 62.948 61.6654 62.9876 60.9724V52.4205L58.1482 47.346C58.0402 47.1949 57.8922 47.0768 57.7209 47.0048C57.5496 46.9329 57.3616 46.91 57.1781 46.9387C56.9945 46.9674 56.8225 47.0465 56.6813 47.1673C56.5401 47.288 56.4352 47.4457 56.3784 47.6226Z' fill='%235A82AD'/%3e%3cpath d='M38.4173 58.3522C39.9124 57.377 41.1567 56.0632 42.0491 54.5174C42.9416 52.9715 43.4572 51.237 43.554 49.4546C43.554 47.9544 43.0701 46.869 42.275 46.2883L36.7858 49.4546C36.2039 49.8331 35.7192 50.3433 35.3709 50.9438C35.0226 51.5443 34.8205 52.2183 34.7809 52.9113V58.6979C35.728 59.2509 37.0001 59.168 38.4173 58.3522Z' fill='%235A82AD'/%3e%3cpath d='M72.0164 31.3899L108.374 10.3938C109.204 9.91682 109.874 10.2556 109.874 11.1543C109.838 11.658 109.683 12.1459 109.422 12.5784C109.162 13.0108 108.802 13.3757 108.374 13.6432L72.0164 34.6323C71.1868 35.1093 70.5162 34.7706 70.5162 33.8718C70.5538 33.3694 70.7092 32.8828 70.9698 32.4516C71.2305 32.0204 71.589 31.6567 72.0164 31.3899Z' fill='%23E3E5E8'/%3e%3cpath d='M72.0164 38.5729L108.374 17.5769C109.204 17.0999 109.874 17.4386 109.874 18.3374C109.838 18.841 109.683 19.3289 109.422 19.7614C109.162 20.1939 108.802 20.5587 108.374 20.8262L72.0164 41.8153C71.1868 42.2924 70.5162 41.9536 70.5162 41.0618C70.5528 40.5581 70.7077 40.0702 70.9683 39.6377C71.229 39.2052 71.5881 38.8404 72.0164 38.5729Z' fill='%23E3E5E8'/%3e%3cpath d='M72.0164 45.756L108.374 24.7669C109.204 24.2899 109.874 24.6286 109.874 25.5204C109.838 26.0241 109.683 26.512 109.422 26.9445C109.162 27.377 108.802 27.7418 108.374 28.0093L72.0164 48.9984C71.1868 49.4824 70.5162 49.1436 70.5162 48.2449C70.5528 47.7412 70.7077 47.2533 70.9683 46.8208C71.229 46.3883 71.5881 46.0235 72.0164 45.756Z' fill='%23E3E5E8'/%3e%3cpath d='M72.0164 52.939L108.374 31.9499C109.204 31.4729 109.874 31.8116 109.874 32.7104C109.837 33.2128 109.681 33.6993 109.421 34.1305C109.16 34.5617 108.802 34.9255 108.374 35.1923L72.0164 56.2229C71.1868 56.6999 70.5162 56.3612 70.5162 55.4624C70.5474 54.9528 70.6998 54.4579 70.9607 54.019C71.2217 53.5801 71.5836 53.2099 72.0164 52.939Z' fill='%23E3E5E8'/%3e%3cpath d='M14.2964 159.413V108.385C14.3296 107.761 14.5098 107.154 14.8221 106.614C15.1345 106.073 15.5703 105.614 16.0939 105.274L77.1532 70.0151C78.1418 69.4413 78.9507 69.9045 78.9507 71.0521V122.08C78.9158 122.703 78.735 123.309 78.4228 123.85C78.1105 124.39 77.6756 124.85 77.1532 125.191L16.0939 160.45C15.0983 161.023 14.2964 160.56 14.2964 159.413Z' fill='%23F3F5F6'/%3e%3cpath d='M14.2964 156.862V159.413C14.2964 160.561 15.0983 161.024 16.0939 160.45L77.1532 125.191C77.6756 124.85 78.1105 124.391 78.4228 123.85C78.735 123.31 78.9158 122.704 78.9507 122.08V119.522L14.2964 156.862Z' fill='%235A82AD'/%3e%3cpath d='M17.3909 110.888V112.685C17.3909 113.493 17.9614 113.82 18.6697 113.415L62.112 88.5817C62.4837 88.3413 62.7931 88.0177 63.0153 87.637C63.2374 87.2564 63.3661 86.8294 63.3909 86.3905V84.5889L17.3909 110.888Z' fill='%235A82AD'/%3e%3cpath d='M17.3909 118.913V120.028C17.3909 120.53 17.7506 120.732 18.1971 120.481L45.5846 105.067C45.819 104.918 46.014 104.717 46.1541 104.481C46.2941 104.245 46.3752 103.98 46.3909 103.707V102.589L17.3909 118.913Z' fill='%235A82AD'/%3e%3cpath d='M17.3909 125.913V127.028C17.3909 127.53 17.7506 127.732 18.1971 127.481L45.5846 112.067C45.819 111.918 46.014 111.717 46.1541 111.481C46.2941 111.245 46.3752 110.98 46.3909 110.707V109.589L17.3909 125.913Z' fill='%235A82AD'/%3e%3cpath d='M88.3942 156.004C88.3942 156.004 90.89 140.103 85.3454 126.429C79.8008 112.754 72.3274 111.911 68.4559 113.853C64.5844 115.796 67.0732 123.38 70.5299 128.475C75.1343 135.16 82.739 149.554 82.4902 162.482L88.3942 156.004Z' fill='%235A82AD'/%3e%3cpath opacity='0.2' d='M88.3942 156.004C88.3942 156.004 90.89 140.103 85.3454 126.429C79.8008 112.754 72.3274 111.911 68.4559 113.853C64.5844 115.796 67.0732 123.38 70.5299 128.475C75.1343 135.16 82.739 149.554 82.4902 162.482L88.3942 156.004Z' fill='black'/%3e%3cpath d='M85.9054 157.014C85.8433 157.012 85.7823 156.998 85.7258 156.972C85.6694 156.946 85.6187 156.909 85.5767 156.863C85.5348 156.818 85.5025 156.764 85.4818 156.705C85.4611 156.647 85.4523 156.585 85.456 156.523C86.3686 134.753 75.4938 118.499 70.7996 115.333C70.7483 115.298 70.7043 115.254 70.6701 115.202C70.6359 115.151 70.6122 115.093 70.6003 115.033C70.5884 114.972 70.5886 114.909 70.6009 114.849C70.6131 114.788 70.6372 114.731 70.6717 114.679C70.7062 114.628 70.7504 114.584 70.8019 114.55C70.8535 114.516 70.9112 114.492 70.9719 114.48C71.0325 114.468 71.0949 114.468 71.1555 114.481C71.2161 114.493 71.2737 114.517 71.325 114.551C76.8557 118.243 87.3088 134.863 86.3893 156.564C86.3876 156.626 86.3736 156.686 86.3482 156.742C86.3228 156.798 86.2866 156.849 86.2415 156.89C86.1965 156.932 86.1436 156.965 86.0859 156.986C86.0281 157.007 85.9668 157.017 85.9054 157.014Z' fill='white'/%3e%3cpath d='M87.4125 174.885C86.4654 172.507 84.0181 169.852 77.7338 167.017C71.4495 164.183 66.7207 160.401 65.8496 157.664C65.5875 156.907 65.5532 156.091 65.7511 155.315C65.949 154.54 66.3702 153.839 66.9627 153.301C66.9627 153.301 61.0379 152.61 60.2912 148.98C59.3579 144.404 64.536 144.106 64.536 144.106C64.536 144.106 57.7402 134.538 55.9358 130.28C54.1314 126.021 56.2123 125.765 60.5954 127.39C64.9785 129.014 73.3299 137.193 74.6227 139.689C74.6227 139.689 76.8834 136.923 79.3169 138.742C81.7505 140.56 81.868 146.001 80.43 147.964C81.3997 147.783 82.401 147.888 83.3127 148.264C84.2243 148.641 85.0073 149.274 85.5667 150.086C88.0417 153.329 88.8575 161.438 88.8575 161.438L87.4125 174.885Z' fill='%235A82AD'/%3e%3cpath d='M87.855 172.673C87.75 172.671 87.6483 172.635 87.5658 172.57C87.4833 172.505 87.4246 172.415 87.3987 172.313C84.0388 158.313 68.0895 135.969 58.1826 128.862C58.1322 128.826 58.0894 128.781 58.0566 128.729C58.0237 128.676 58.0016 128.618 57.9913 128.557C57.981 128.496 57.9829 128.433 57.9967 128.373C58.0106 128.313 58.0361 128.256 58.072 128.206C58.1079 128.155 58.1533 128.112 58.2057 128.079C58.2581 128.047 58.3165 128.024 58.3775 128.014C58.4385 128.004 58.5009 128.006 58.5612 128.02C58.6214 128.033 58.6784 128.059 58.7288 128.095C68.7601 135.292 84.9099 157.919 88.3182 172.092C88.3453 172.214 88.3235 172.341 88.2576 172.447C88.1917 172.553 88.0869 172.629 87.9656 172.659L87.855 172.673Z' fill='white'/%3e%3cpath d='M212.995 31.7009C212.913 31.6999 212.832 31.6786 212.76 31.6387L210.817 30.5118C210.764 30.4809 210.717 30.4398 210.679 30.3908C210.641 30.3418 210.614 30.2858 210.598 30.2261C210.582 30.1664 210.577 30.1042 210.585 30.0429C210.593 29.9816 210.613 29.9224 210.644 29.8689C210.675 29.8153 210.716 29.7683 210.765 29.7307C210.814 29.693 210.87 29.6653 210.93 29.6493C210.99 29.6332 211.052 29.6291 211.113 29.6371C211.175 29.6452 211.234 29.6652 211.287 29.696L213.23 30.8229C213.284 30.8537 213.331 30.8948 213.368 30.9438C213.406 30.9928 213.434 31.0488 213.45 31.1085C213.466 31.1683 213.47 31.2306 213.462 31.2919C213.454 31.3532 213.434 31.4123 213.403 31.4659C213.361 31.5375 213.302 31.5969 213.23 31.6381C213.159 31.6794 213.078 31.7011 212.995 31.7009Z' fill='white'/%3e%3cpath d='M87.4127 72.6906V175.548C87.4127 176.696 88.2147 177.159 89.2033 176.585L209.179 107.32C209.701 106.978 210.136 106.519 210.448 105.979C210.761 105.438 210.941 104.832 210.976 104.209V1.35102C210.976 0.203393 210.167 -0.259806 209.179 0.314007L89.2033 69.5796C88.6814 69.9209 88.2472 70.3805 87.9361 70.921C87.625 71.4616 87.4457 72.0678 87.4127 72.6906Z' fill='%23455A64'/%3e%3cpath d='M101.454 91.6886C101.454 95.2767 104.129 96.6317 107.441 94.7236L202.549 39.8103V26.8407L107.441 81.7471C104.129 83.6621 101.454 88.1075 101.454 91.6886Z' fill='%23F5F5F5'/%3e%3cpath d='M210.637 22.188C213.942 20.2799 216.624 21.6349 216.624 25.216C216.624 28.7972 213.942 33.2494 210.637 35.1575L202.583 39.8103V26.8407L210.637 22.188Z' fill='%235A82AD'/%3e%3cpath d='M207.734 33.1182C207.389 33.1231 207.05 33.0347 206.752 32.8624C206.385 32.6166 206.091 32.2761 205.901 31.877C205.711 31.4779 205.633 31.0349 205.674 30.5948C205.723 29.5127 206.032 28.4584 206.573 27.5201C207.114 26.5818 207.873 25.787 208.785 25.2023C209.133 24.9184 209.559 24.7472 210.007 24.7114C210.455 24.6757 210.903 24.7771 211.292 25.0023C211.68 25.2274 211.991 25.5656 212.183 25.9718C212.375 26.3781 212.439 26.8331 212.366 27.2764C212.314 28.358 212.005 29.4118 211.464 30.3498C210.923 31.2878 210.165 32.0829 209.255 32.6688C208.796 32.9493 208.271 33.1042 207.734 33.1182ZM210.299 25.6863C209.928 25.7046 209.568 25.8189 209.255 26.0181C208.491 26.5254 207.855 27.2026 207.397 27.9966C206.939 28.7906 206.671 29.6799 206.614 30.5948C206.542 30.8701 206.563 31.1612 206.673 31.4235C206.784 31.6858 206.977 31.9047 207.223 32.0468C207.469 32.1888 207.756 32.2461 208.038 32.2098C208.32 32.1736 208.582 32.0458 208.785 31.8461C209.549 31.3396 210.185 30.6627 210.644 29.8685C211.102 29.0743 211.37 28.1846 211.426 27.2695C211.461 26.9953 211.423 26.7167 211.317 26.4617C211.21 26.2068 211.037 25.9846 210.817 25.8176C210.66 25.7274 210.48 25.6819 210.299 25.6863Z' fill='white'/%3e%3cpath d='M212.02 50.5745L120.072 103.628C119.547 103.967 119.111 104.426 118.798 104.967C118.486 105.508 118.306 106.115 118.274 106.739V135.036C118.274 136.183 119.076 136.647 120.072 136.073L212.02 82.9984C212.544 82.6582 212.979 82.1991 213.292 81.6584C213.604 81.1178 213.784 80.5109 213.818 79.8874V51.6115C213.783 50.4639 212.981 50.0007 212.02 50.5745Z' fill='%235A82AD'/%3e%3cpath opacity='0.2' d='M212.02 50.5745L120.072 103.628C119.547 103.967 119.111 104.426 118.798 104.967C118.486 105.508 118.306 106.115 118.274 106.739V135.036C118.274 136.183 119.076 136.647 120.072 136.073L212.02 82.9984C212.544 82.6582 212.979 82.1991 213.292 81.6584C213.604 81.1178 213.784 80.5109 213.818 79.8874V51.6115C213.783 50.4639 212.981 50.0007 212.02 50.5745Z' fill='white'/%3e%3cpath d='M153.498 89.0477L170.159 79.4242C170.989 78.9472 171.66 79.286 171.66 80.1847C171.622 80.6872 171.467 81.1737 171.206 81.6049C170.945 82.0361 170.587 82.3998 170.159 82.6666L153.498 92.2901C152.668 92.7671 151.998 92.4284 151.998 91.5296C152.035 91.0272 152.191 90.5407 152.451 90.1095C152.712 89.6783 153.071 89.3145 153.498 89.0477Z' fill='white'/%3e%3cpath d='M151.998 98.0143C151.998 98.9131 152.689 99.2519 153.498 98.7748L203.862 69.697C204.289 69.4283 204.646 69.063 204.906 68.6307C205.165 68.1983 205.319 67.711 205.356 67.2081C205.356 66.3163 204.664 65.9776 203.862 66.4546L153.498 95.5324C153.071 95.7992 152.712 96.163 152.451 96.5942C152.191 97.0254 152.035 97.5119 151.998 98.0143Z' fill='white'/%3e%3cpath d='M151.998 104.499C151.998 105.398 152.689 105.737 153.498 105.26L203.862 76.1819C204.289 75.9132 204.646 75.548 204.906 75.1156C205.165 74.6833 205.319 74.196 205.356 73.6931C205.356 72.8012 204.664 72.4625 203.862 72.9395L153.498 102.017C153.071 102.284 152.712 102.648 152.451 103.079C152.191 103.51 152.035 103.997 151.998 104.499Z' fill='white'/%3e%3cpath d='M151.998 110.984C151.998 111.883 152.689 112.222 153.498 111.744L203.862 82.6667C204.289 82.398 204.646 82.0327 204.906 81.6004C205.165 81.168 205.319 80.6807 205.356 80.1778C205.356 79.286 204.664 78.9472 203.862 79.4243L153.498 108.502C153.071 108.769 152.712 109.133 152.451 109.564C152.191 109.995 152.035 110.482 151.998 110.984Z' fill='white'/%3e%3cpath d='M122.906 105.246L144.587 92.7256C145.582 92.1587 146.384 92.6219 146.384 93.7626V115.561C146.35 116.184 146.17 116.791 145.858 117.331C145.545 117.872 145.11 118.331 144.587 118.672L122.906 131.185C121.918 131.759 121.109 131.296 121.109 130.155V108.357C121.142 107.733 121.322 107.126 121.634 106.586C121.947 106.045 122.383 105.586 122.906 105.246Z' fill='white'/%3e%3cpath d='M140.466 103.607L134.016 116.978L130.732 115.084C130.415 114.901 130.038 114.851 129.684 114.946C129.33 115.04 129.028 115.271 128.845 115.588L121.109 128.98V130.148C121.109 131.296 121.918 131.759 122.906 131.185L144.587 118.672C145.11 118.331 145.546 117.872 145.858 117.332C146.171 116.791 146.351 116.184 146.384 115.561V107.907L142.022 103.358C141.923 103.231 141.792 103.133 141.642 103.074C141.492 103.015 141.329 102.997 141.17 103.023C141.011 103.048 140.862 103.116 140.738 103.219C140.614 103.322 140.52 103.456 140.466 103.607Z' fill='%235A82AD'/%3e%3cpath d='M124.365 113.224C125.705 112.349 126.821 111.171 127.621 109.785C128.421 108.399 128.883 106.844 128.969 105.246C129.015 104.715 128.935 104.181 128.736 103.688C128.536 103.194 128.223 102.754 127.822 102.404L122.906 105.246C122.383 105.586 121.947 106.045 121.634 106.586C121.322 107.126 121.142 107.733 121.109 108.357V113.542C121.945 114.026 123.093 113.957 124.365 113.224Z' fill='%235A82AD'/%3e%3cpath d='M212.02 92.7257L120.072 145.779C119.548 146.119 119.112 146.579 118.8 147.119C118.487 147.66 118.307 148.267 118.274 148.89V177.208C118.274 178.348 119.076 178.812 120.072 178.245L212.02 125.157C212.544 124.816 212.979 124.357 213.292 123.817C213.604 123.276 213.784 122.669 213.818 122.045V93.7627C213.783 92.622 212.981 92.1726 212.02 92.7257Z' fill='%235A82AD'/%3e%3cpath opacity='0.2' d='M212.02 92.7257L120.072 145.779C119.548 146.119 119.112 146.579 118.8 147.119C118.487 147.66 118.307 148.267 118.274 148.89V177.208C118.274 178.348 119.076 178.812 120.072 178.245L212.02 125.157C212.544 124.816 212.979 124.357 213.292 123.817C213.604 123.276 213.784 122.669 213.818 122.045V93.7627C213.783 92.622 212.981 92.1726 212.02 92.7257Z' fill='white'/%3e%3cpath d='M153.498 131.199L170.159 121.582C170.989 121.105 171.66 121.444 171.66 122.336C171.623 122.839 171.468 123.327 171.207 123.76C170.947 124.192 170.588 124.557 170.159 124.825L153.498 134.441C152.668 134.918 151.998 134.579 151.998 133.688C152.034 133.184 152.189 132.696 152.45 132.264C152.711 131.831 153.07 131.466 153.498 131.199Z' fill='white'/%3e%3cpath d='M151.998 140.172C151.998 141.064 152.689 141.403 153.498 140.926L203.862 111.848C204.288 111.58 204.645 111.216 204.904 110.785C205.164 110.354 205.318 109.868 205.356 109.366C205.356 108.468 204.664 108.129 203.862 108.606L153.498 137.684C153.07 137.951 152.711 138.316 152.45 138.748C152.189 139.181 152.034 139.669 151.998 140.172Z' fill='white'/%3e%3cpath d='M151.998 146.657C151.998 147.549 152.689 147.888 153.498 147.411L203.862 118.333C204.288 118.065 204.645 117.701 204.904 117.27C205.164 116.839 205.318 116.353 205.356 115.851C205.356 114.952 204.664 114.614 203.862 115.091L153.498 144.168C153.07 144.436 152.711 144.801 152.45 145.233C152.189 145.666 152.034 146.154 151.998 146.657Z' fill='white'/%3e%3cpath d='M151.998 153.142C151.998 154.034 152.689 154.373 153.498 153.896L203.862 124.818C204.288 124.55 204.645 124.186 204.904 123.754C205.164 123.323 205.318 122.838 205.356 122.336C205.356 121.437 204.664 121.098 203.862 121.575L153.498 150.653C153.07 150.921 152.711 151.285 152.45 151.718C152.189 152.15 152.034 152.638 151.998 153.142Z' fill='white'/%3e%3cpath d='M122.906 147.404L144.587 134.884C145.582 134.31 146.384 134.773 146.384 135.921V157.712C146.352 158.336 146.172 158.943 145.86 159.484C145.547 160.024 145.111 160.483 144.587 160.823L122.906 173.343C121.918 173.917 121.109 173.454 121.109 172.306V150.515C121.142 149.891 121.322 149.285 121.634 148.744C121.947 148.203 122.383 147.744 122.906 147.404Z' fill='white'/%3e%3cpath d='M140.466 145.765L134.016 159.136L130.732 157.235C130.575 157.144 130.401 157.086 130.221 157.063C130.041 157.04 129.858 157.052 129.682 157.1C129.507 157.147 129.343 157.229 129.199 157.34C129.056 157.451 128.935 157.589 128.845 157.746L121.109 171.138V172.306C121.109 173.454 121.918 173.917 122.906 173.343L144.587 160.823C145.11 160.484 145.546 160.026 145.858 159.487C146.171 158.947 146.351 158.341 146.384 157.719V150.059L142.022 145.516C141.924 145.387 141.793 145.287 141.643 145.227C141.493 145.166 141.329 145.148 141.169 145.173C141.009 145.199 140.859 145.268 140.736 145.372C140.612 145.476 140.519 145.612 140.466 145.765Z' fill='%235A82AD'/%3e%3cpath d='M124.365 155.375C125.705 154.502 126.821 153.325 127.621 151.94C128.421 150.555 128.883 149.001 128.969 147.404C129.015 146.873 128.935 146.339 128.736 145.846C128.536 145.352 128.223 144.912 127.822 144.562L122.906 147.404C122.383 147.744 121.947 148.203 121.634 148.744C121.322 149.285 121.142 149.891 121.109 150.515V155.7C121.945 156.177 123.093 156.108 124.365 155.375Z' fill='%235A82AD'/%3e%3cpath d='M210.976 5.75487V1.35102C210.976 0.203393 210.167 -0.259806 209.179 0.314007L89.2102 69.5796C88.6866 69.9198 88.2509 70.3789 87.9385 70.9196C87.6261 71.4602 87.4459 72.0671 87.4127 72.6906V77.1013L210.976 5.75487Z' fill='%235A82AD'/%3e%3cpath d='M196.257 9.46046C195.871 9.71441 195.549 10.0557 195.319 10.4568C195.088 10.8579 194.955 11.3076 194.93 11.7695C194.93 12.6199 195.525 12.9656 196.257 12.5369C196.646 12.2865 196.97 11.9471 197.202 11.5468C197.434 11.1465 197.568 10.6968 197.592 10.2348C197.592 9.38441 196.997 9.03874 196.257 9.46046Z' fill='%23F5F5F5'/%3e%3cpath d='M201.546 6.44624C201.158 6.69942 200.835 7.04038 200.603 7.44152C200.372 7.84266 200.238 8.29273 200.212 8.75532C200.212 9.60567 200.813 9.94443 201.546 9.52271C201.935 9.27076 202.259 8.9301 202.491 8.5287C202.723 8.12729 202.857 7.67661 202.88 7.21363C202.88 6.32871 202.286 5.98996 201.546 6.44624Z' fill='%23F5F5F5'/%3e%3cpath d='M206.835 3.36278C206.446 3.61323 206.122 3.9526 205.89 4.35289C205.658 4.75318 205.525 5.20291 205.501 5.66495C205.501 6.5153 206.095 6.86097 206.835 6.43925C207.222 6.1853 207.543 5.84401 207.774 5.44292C208.004 5.04182 208.138 4.59215 208.162 4.13017C208.162 3.27982 207.568 2.93415 206.835 3.36278Z' fill='%23F5F5F5'/%3e%3cpath d='M212.891 220.223C213.1 220.755 213.244 221.309 213.32 221.875C213.515 222.461 213.56 223.086 213.451 223.694C212.985 224.469 212.245 225.042 211.377 225.298C210.76 225.44 210.119 225.452 209.496 225.333C208.874 225.214 208.283 224.966 207.761 224.606C206.496 223.853 205.549 222.933 203.752 222.428C202.47 222.152 201.262 221.603 200.212 220.818C199.216 220.023 197.889 217.81 199.79 217.299C201.691 216.787 205.833 218.592 209.6 218.757L212.891 220.223Z' fill='%23263238'/%3e%3cpath d='M212.712 217.734C212.712 217.734 212.933 220.375 212.933 220.7C212.933 221.592 209.642 222.774 209.034 220.7L208.508 217.893L212.712 217.734Z' fill='%23F28F8F'/%3e%3cpath d='M208.674 159.793C209.806 161.457 210.842 163.183 211.778 164.964C211.778 164.964 212.103 168.808 212.103 171.366C212.103 176.067 211.377 179.697 210.72 188.961C211.79 190.783 212.402 192.837 212.504 194.948C212.781 199.144 212.787 199.096 212.815 218.453C212.185 218.793 211.494 219.004 210.782 219.072C210.069 219.141 209.35 219.067 208.667 218.854L202.445 191.747L201.754 181.107L199.804 167.882L208.674 159.793Z' fill='%2337474F'/%3e%3cpath d='M193.948 225.069C194.17 225.298 194.094 225.761 194.197 226.521C194.312 227.106 194.343 227.704 194.287 228.298C193.924 229.12 193.269 229.778 192.448 230.144C191.852 230.359 191.217 230.449 190.584 230.407C189.951 230.365 189.334 230.193 188.77 229.902C187.429 229.307 186.371 228.519 184.526 228.236C183.219 228.123 181.953 227.729 180.813 227.081C179.728 226.39 178.131 224.385 179.956 223.625C181.781 222.864 186.358 224.226 190.112 223.922L193.948 225.069Z' fill='%23263238'/%3e%3cpath d='M194.813 221.751C194.813 221.751 194.121 224.765 193.935 225.436C193.52 227.047 189.946 227.13 189.946 225.27L190.188 220.984L194.813 221.751Z' fill='%23F28F8F'/%3e%3cpath d='M200.606 160.616C202.397 164.135 204.125 167.239 204.18 170.986C204.312 178.915 201.021 187.647 199.811 193.378C200.172 195.452 200.274 197.563 200.115 199.663C199.873 202.062 194.405 223.86 194.405 223.86C194.405 223.86 191.363 224.496 190.07 223.12L191.605 181.148L192.02 168.96L200.606 160.616Z' fill='%2337474F'/%3e%3cpath d='M198.145 139.122L199.272 145.365L204.913 144.95L203.731 137.877L198.145 139.122Z' fill='%23FFA8A7'/%3e%3cpath d='M210.866 144.493C210.306 142.8 208.156 140.954 206.026 141.355C202.828 141.898 199.676 142.684 196.596 143.705C194.626 144.397 192.828 146.118 192.663 152.603L192.047 168.919C192.899 169.676 193.921 170.217 195.027 170.495C198.02 171.318 199.998 171.808 204.547 170.813C210.472 169.52 211.882 165.932 211.882 165.932C211.882 165.932 211.654 157.297 211.474 152.603C211.329 148.614 211.246 145.662 210.866 144.493Z' fill='%23455A64'/%3e%3cpath d='M195.739 131.151L167.014 123.359C164.414 122.91 163.329 129.256 165.928 129.699L195.428 132.678L195.739 131.151Z' fill='%23263238'/%3e%3cpath d='M187.478 144.314L181.608 144.493C181.608 144.493 182.493 135.762 183.039 134.614C183.585 133.467 184.892 133.231 186.192 132.865C187.491 132.499 187.484 131.876 187.484 131.876L186.316 131.759C185.293 131.655 184.885 130.376 185.327 129.512C185.542 129.111 185.887 128.475 186.51 128.648L188.058 129.07C188.082 128.386 187.912 127.71 187.567 127.12C187.049 126.546 186.703 126.726 185.666 126.366C184.899 126.097 183.33 125.62 182.064 126.138C180.799 126.657 179.838 129.035 179.513 130.715C179.185 132.658 178.652 134.56 177.923 136.391C176.796 139.502 175.158 145.89 174.985 148.448C174.909 149.63 175.02 150.335 176.333 150.646C177.647 150.957 187.312 150.978 187.312 150.978L187.478 144.314Z' fill='%23FFA8A7'/%3e%3cpath d='M193.969 131.731C193.969 131.731 192.586 133.75 192.78 133.971C193.092 134.179 193.439 134.332 193.803 134.421L193.969 131.731Z' fill='%23FFA8A7'/%3e%3cpath d='M198.138 125.357C196.824 126.049 194.557 127.245 193.928 132.056C193.285 136.992 194.135 138.583 194.799 139.239C195.255 139.682 197.702 139.709 198.947 139.336C200.482 138.88 203.945 137.559 205.528 135.022C207.388 132.036 207.803 128.04 205.708 126.45C204.642 125.641 203.388 125.117 202.064 124.925C200.74 124.734 199.389 124.883 198.138 125.357Z' fill='%23FFA8A7'/%3e%3cpath d='M202.003 184.93L204.996 176.468C207.317 175.645 209.396 174.258 211.045 172.431C211.045 172.431 210.354 174.843 205.625 177.318L202.341 185.324V189.776L202.003 184.93Z' fill='%23263238'/%3e%3cpath d='M193.658 126.982C194.087 128.164 194.813 131.068 197.841 132.277C197.841 132.277 198.276 130.432 199.825 130.625C201.374 130.819 201.643 132.803 200.689 134.033C199.735 135.264 198.809 134.822 198.809 134.822C198.809 134.822 198.601 137.469 200.371 138.672C201.03 139.061 201.77 139.291 202.533 139.345C203.296 139.399 204.061 139.275 204.768 138.983C205.784 138.52 207.229 136.08 208.073 134.075C209.856 129.844 210.112 126.47 207.381 125.378C207.043 123.456 206.178 122.73 204.436 122.371C200.689 121.603 197.855 124.064 194.709 123.629C193.098 123.401 193.16 125.627 193.658 126.982Z' fill='%23263238'/%3e%3cpath d='M207.471 126.048L209.241 124.949C209.087 124.734 208.856 124.585 208.596 124.533C208.336 124.481 208.066 124.53 207.841 124.67C207.616 124.81 207.452 125.03 207.384 125.286C207.315 125.542 207.346 125.815 207.471 126.048Z' fill='%23263238'/%3e%3cpath d='M186.164 144.196C186.164 144.196 194.425 143.719 196.534 143.705C198.643 143.691 200.883 147.293 199.569 149.748C198.698 151.358 195.981 151.912 192.559 152.077C189.137 152.243 185.687 152.243 185.687 152.243C185.687 152.243 182.61 148.738 186.164 144.196Z' fill='%23455A64'/%3e%3cpath d='M192.663 152.077C192.663 152.077 197.896 152.008 199.611 149.748C199.611 149.748 199.21 151.13 197.177 151.981C195.72 152.541 194.186 152.872 192.628 152.962L192.663 152.077Z' fill='%2337474F'/%3e%3cpath d='M167.014 123.359C164.414 122.91 163.329 129.256 165.928 129.699L170.076 130.114C168.39 129.941 169.558 124.044 170.844 124.389L167.014 123.359Z' fill='%23455A64'/%3e%3cpath d='M271.628 121.665C271.628 122.952 271.241 124.21 270.516 125.273C269.791 126.336 268.763 127.157 267.565 127.627C266.367 128.097 265.055 128.196 263.8 127.909C262.546 127.622 261.407 126.964 260.532 126.021L260.11 125.509C259.126 124.197 258.683 122.557 258.873 120.928C259.063 119.299 259.871 117.804 261.13 116.753C262.389 115.703 264.004 115.175 265.641 115.28C267.278 115.385 268.812 116.114 269.927 117.317L270.362 117.842C271.184 118.948 271.627 120.288 271.628 121.665Z' fill='%23455A64'/%3e%3cpath d='M271.628 121.665C271.628 122.952 271.241 124.209 270.516 125.273C269.791 126.336 268.763 127.157 267.565 127.627C266.367 128.097 265.055 128.195 263.801 127.909C262.546 127.622 261.407 126.964 260.532 126.021L260.11 125.509L233.452 93.3133L244.686 86.8285L269.927 117.303L270.363 117.828C271.186 118.938 271.63 120.283 271.628 121.665Z' fill='%23455A64'/%3e%3cpath d='M249.574 112.782C250.693 113.956 252.217 114.661 253.837 114.755C255.456 114.849 257.051 114.324 258.299 113.287C259.547 112.25 260.354 110.778 260.558 109.169C260.762 107.559 260.347 105.932 259.398 104.617L256.1 100.642C257.086 101.954 257.529 103.596 257.339 105.226C257.149 106.857 256.34 108.352 255.079 109.403C253.817 110.454 252.2 110.98 250.562 110.873C248.924 110.766 247.39 110.033 246.276 108.827L249.574 112.782Z' fill='%235A82AD'/%3e%3cpath d='M244.257 36.2155C246.27 36.4395 248.215 37.0723 249.975 38.0752L241.865 33.3603C236.424 29.6201 228.592 29.8414 219.888 34.8605C203.454 44.3526 190.125 67.4365 190.125 86.4208C190.125 95.747 193.299 102.412 198.532 105.578L198.643 105.647L207.298 110.632C205.763 109.633 204.425 108.36 203.351 106.878C205.483 107.111 207.64 106.987 209.732 106.511C210.492 106.345 211.26 106.145 212.041 105.896C211.939 105.865 211.839 105.826 211.744 105.778C211.327 105.584 210.93 105.352 210.554 105.087C209.874 104.613 209.268 104.04 208.757 103.386C208.058 102.492 207.49 101.503 207.07 100.448C206.507 100.53 205.938 100.571 205.369 100.573C204.024 100.599 202.688 100.333 201.456 99.7913C201.168 99.6594 200.889 99.5093 200.62 99.3419C200.378 99.1899 200.136 99.0101 199.928 98.8304C199.428 96.4902 199.185 94.1025 199.203 91.7095C199.203 72.7322 212.532 49.6414 228.979 40.1493C231.079 38.9243 233.303 37.9277 235.616 37.1765C236.239 37.431 236.825 37.7682 237.358 38.1789C237.922 38.612 238.431 39.1137 238.872 39.6722C239.573 40.5689 240.143 41.5605 240.566 42.6174C241.131 42.5381 241.702 42.4988 242.273 42.4998C243.836 42.4579 245.382 42.8325 246.753 43.5852C247.1 43.7742 247.431 43.9916 247.742 44.2351C247.617 43.682 247.486 43.1359 247.327 42.6174C246.702 40.3142 245.662 38.1446 244.257 36.2155Z' fill='%23263238'/%3e%3cpath d='M249.975 38.0752L249.505 37.8194C247.87 36.9635 246.091 36.4195 244.257 36.2155C242.29 35.9961 240.3 36.087 238.36 36.4851C237.426 36.6622 236.503 36.893 235.595 37.1764C233.283 37.9276 231.058 38.9243 228.958 40.1492C212.511 49.6413 199.182 72.7322 199.182 91.7095C199.164 94.1024 199.408 96.4902 199.908 98.8303C199.998 99.252 200.101 99.653 200.205 100.054C200.821 102.501 201.89 104.811 203.358 106.864C204.013 107.767 204.766 108.595 205.604 109.332C206.139 109.802 206.707 110.232 207.305 110.618C212.732 114.123 220.441 113.819 228.944 108.896C245.391 99.4041 258.72 76.3202 258.72 57.336C258.713 47.8439 255.374 41.1724 249.975 38.0752ZM246.726 43.6059C247.072 43.7949 247.403 44.0123 247.714 44.2558C248.235 44.6792 248.711 45.1566 249.131 45.68C251.205 48.2794 252.305 52.3237 252.305 57.3567C252.305 73.9489 240.137 95.0487 225.736 103.366C222.107 105.44 218.616 106.573 215.65 106.573C214.413 106.588 213.185 106.353 212.041 105.882C211.939 105.851 211.839 105.812 211.744 105.764C211.328 105.57 210.93 105.338 210.554 105.073C210.088 104.746 209.657 104.37 209.269 103.953C209.096 103.773 208.93 103.573 208.764 103.372C208.065 102.478 207.497 101.489 207.077 100.434C206.024 97.6443 205.521 94.6768 205.598 91.6957C205.598 91.4744 205.598 91.2601 205.598 91.0043C205.902 74.4813 217.938 53.8585 232.152 45.6592C232.477 45.4726 232.809 45.2859 233.141 45.113C235.433 43.8327 237.936 42.9733 240.531 42.5758C241.097 42.4966 241.667 42.4573 242.239 42.4583C243.469 42.4477 244.689 42.6827 245.827 43.1496C246.139 43.2735 246.439 43.4239 246.726 43.599V43.6059Z' fill='%23455A64'/%3e%3cpath d='M252.305 57.3498C252.305 73.942 240.137 95.0417 225.736 103.359C224.863 103.867 223.963 104.329 223.04 104.741C220.737 105.853 218.227 106.47 215.67 106.553C214.433 106.567 213.206 106.332 212.062 105.861C211.959 105.83 211.86 105.791 211.764 105.744C211.348 105.549 210.95 105.318 210.575 105.052C209.895 104.578 209.289 104.005 208.778 103.352C208.598 103.11 208.411 102.875 208.245 102.605C208.57 102.605 208.937 102.653 209.255 102.653C212.221 102.653 215.712 101.54 219.342 99.4456C233.721 91.1771 245.896 70.105 245.896 53.4575C245.896 48.8878 244.99 45.1614 243.269 42.5412C244.484 42.621 245.665 42.973 246.726 43.5713C247.072 43.7604 247.403 43.9777 247.714 44.2212C248.236 44.6446 248.711 45.122 249.131 45.6454C250.957 47.9337 252.028 51.3351 252.249 55.5454C252.284 56.1538 252.305 56.7483 252.305 57.3498Z' fill='%2337474F'/%3e%3cpath opacity='0.6' d='M249.525 55.4347C249.525 72.0269 237.358 93.1267 222.957 101.444C219.328 103.518 215.843 104.651 212.871 104.651C211.636 104.666 210.41 104.431 209.269 103.96C209.096 103.78 208.93 103.58 208.764 103.379C208.065 102.485 207.497 101.496 207.077 100.441C206.024 97.6512 205.522 94.6836 205.598 91.7025C205.598 91.4813 205.598 91.267 205.598 91.0112C205.902 74.4881 217.938 53.8654 232.152 45.6661C232.477 45.4794 232.809 45.2927 233.141 45.1199C235.433 43.8395 237.936 42.9802 240.531 42.5827C241.097 42.5034 241.667 42.4642 242.239 42.4652C243.469 42.4545 244.689 42.6896 245.827 43.1565C246.013 43.3432 246.186 43.5436 246.352 43.7441C248.426 46.3574 249.525 50.4018 249.525 55.4347Z' fill='white'/%3e%3c/svg%3e";
|
|
8183
|
+
|
|
8184
|
+
const DotEmptyFilterState = ({
|
|
8185
|
+
ariaLabel,
|
|
8186
|
+
className,
|
|
8187
|
+
'data-testid': dataTestId,
|
|
8188
|
+
imageAltText = 'no results found',
|
|
8189
|
+
imageSrc = img
|
|
8190
|
+
}) => {
|
|
8191
|
+
return jsx(DotEmptyState, {
|
|
8192
|
+
ariaLabel: ariaLabel,
|
|
8193
|
+
className: className,
|
|
8194
|
+
"data-testid": dataTestId,
|
|
8195
|
+
imageAltText: imageAltText,
|
|
8196
|
+
imageSrc: imageSrc,
|
|
8197
|
+
title: "No results found",
|
|
8198
|
+
subtitle: "No results match the current filter selection. Please, adjust the filters and attempt your search again."
|
|
8199
|
+
});
|
|
8200
|
+
};
|
|
8201
|
+
|
|
8177
8202
|
const wrapperClassName = 'dot-radio-group-wrapper';
|
|
8178
8203
|
const groupClassName = 'dot-radio-group';
|
|
8179
8204
|
const StyledRadioGroupWrapper = styled.div`
|
|
@@ -8208,30 +8233,30 @@ const StyledRadioGroup = styled(RadioGroup)`
|
|
|
8208
8233
|
&.${groupClassName} {
|
|
8209
8234
|
padding-left: ${theme.spacing(2.5)};
|
|
8210
8235
|
|
|
8211
|
-
.${rootClassName$
|
|
8236
|
+
.${rootClassName$E} {
|
|
8212
8237
|
margin: 0;
|
|
8213
8238
|
}
|
|
8214
8239
|
}
|
|
8215
8240
|
`}
|
|
8216
8241
|
`;
|
|
8217
8242
|
|
|
8218
|
-
const rootClassName$
|
|
8243
|
+
const rootClassName$w = 'dot-form';
|
|
8219
8244
|
const StyledFormContainer = styled.div`
|
|
8220
8245
|
${({
|
|
8221
8246
|
theme
|
|
8222
8247
|
}) => css`
|
|
8223
|
-
&.${rootClassName$
|
|
8248
|
+
&.${rootClassName$w} {
|
|
8224
8249
|
margin: ${theme.spacing(3, 0)};
|
|
8225
8250
|
|
|
8226
|
-
.${rootClassName$
|
|
8227
|
-
.${rootClassName$
|
|
8228
|
-
.${rootClassName$
|
|
8251
|
+
.${rootClassName$C},
|
|
8252
|
+
.${rootClassName$E},
|
|
8253
|
+
.${rootClassName$16},
|
|
8229
8254
|
.${rootSelectClassName} {
|
|
8230
8255
|
margin: ${theme.spacing(1, 0)};
|
|
8231
8256
|
}
|
|
8232
8257
|
|
|
8233
|
-
.${rootClassName$
|
|
8234
|
-
.${rootClassName$
|
|
8258
|
+
.${rootClassName$B}, .${groupClassName} {
|
|
8259
|
+
.${rootClassName$E} {
|
|
8235
8260
|
margin: 0;
|
|
8236
8261
|
}
|
|
8237
8262
|
}
|
|
@@ -8246,7 +8271,7 @@ const DotForm = ({
|
|
|
8246
8271
|
'data-testid': dataTestId,
|
|
8247
8272
|
onSubmit
|
|
8248
8273
|
}) => {
|
|
8249
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8274
|
+
const rootClasses = useStylesWithRootClass(rootClassName$w, className);
|
|
8250
8275
|
return jsx("form", {
|
|
8251
8276
|
"aria-label": ariaLabel,
|
|
8252
8277
|
"data-testid": dataTestId,
|
|
@@ -8259,10 +8284,10 @@ const DotForm = ({
|
|
|
8259
8284
|
});
|
|
8260
8285
|
};
|
|
8261
8286
|
|
|
8262
|
-
const rootClassName$
|
|
8287
|
+
const rootClassName$v = 'dot-dynamic-form';
|
|
8263
8288
|
const StyledDynamicForm = styled(DotForm)`
|
|
8264
8289
|
${() => css`
|
|
8265
|
-
&.${rootClassName$
|
|
8290
|
+
&.${rootClassName$v} {
|
|
8266
8291
|
}
|
|
8267
8292
|
`}
|
|
8268
8293
|
`;
|
|
@@ -8553,12 +8578,12 @@ const DotInputSelect = ({
|
|
|
8553
8578
|
});
|
|
8554
8579
|
};
|
|
8555
8580
|
|
|
8556
|
-
const rootClassName$
|
|
8581
|
+
const rootClassName$u = 'dot-progress-button';
|
|
8557
8582
|
const StyledProgressButton = styled(DotButton)`
|
|
8558
8583
|
${({
|
|
8559
8584
|
theme
|
|
8560
8585
|
}) => css`
|
|
8561
|
-
&.${rootClassName$
|
|
8586
|
+
&.${rootClassName$u} {
|
|
8562
8587
|
.hidden {
|
|
8563
8588
|
// hide children but preserve its space so that
|
|
8564
8589
|
// button's dimensions don't change
|
|
@@ -8583,7 +8608,7 @@ const DotProgressButton = ({
|
|
|
8583
8608
|
ariaLabel,
|
|
8584
8609
|
children,
|
|
8585
8610
|
className,
|
|
8586
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
8611
|
+
'data-pendoid': dataPendoId = rootClassName$u,
|
|
8587
8612
|
'data-testid': dataTestId,
|
|
8588
8613
|
disabled = false,
|
|
8589
8614
|
disableRipple = false,
|
|
@@ -8596,7 +8621,7 @@ const DotProgressButton = ({
|
|
|
8596
8621
|
tooltip,
|
|
8597
8622
|
type = 'primary'
|
|
8598
8623
|
}) => {
|
|
8599
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8624
|
+
const rootClasses = useStylesWithRootClass(rootClassName$u, className);
|
|
8600
8625
|
const isButtonDisabled = disabled || isLoading;
|
|
8601
8626
|
const titleClasses = useStylesWithRootClass(isLoading ? 'hidden' : '');
|
|
8602
8627
|
const progressCircleSize = size === 'large' ? SPINNER_LARGE_SIZE : SPINNER_DEFAULT_SIZE;
|
|
@@ -8624,12 +8649,12 @@ const DotProgressButton = ({
|
|
|
8624
8649
|
});
|
|
8625
8650
|
};
|
|
8626
8651
|
|
|
8627
|
-
const rootClassName$
|
|
8652
|
+
const rootClassName$t = 'dot-radio';
|
|
8628
8653
|
const StyledRadioButton = styled(Radio)`
|
|
8629
8654
|
${({
|
|
8630
8655
|
theme
|
|
8631
8656
|
}) => css`
|
|
8632
|
-
&.${rootClassName$
|
|
8657
|
+
&.${rootClassName$t} {
|
|
8633
8658
|
padding: 8px;
|
|
8634
8659
|
|
|
8635
8660
|
svg {
|
|
@@ -8647,7 +8672,7 @@ function DotRadioButton({
|
|
|
8647
8672
|
ariaLabel,
|
|
8648
8673
|
checked,
|
|
8649
8674
|
className,
|
|
8650
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
8675
|
+
'data-pendoid': dataPendoId = rootClassName$E,
|
|
8651
8676
|
'data-testid': dataTestId,
|
|
8652
8677
|
disabled,
|
|
8653
8678
|
id,
|
|
@@ -8660,7 +8685,7 @@ function DotRadioButton({
|
|
|
8660
8685
|
size = 'medium',
|
|
8661
8686
|
value
|
|
8662
8687
|
}) {
|
|
8663
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8688
|
+
const rootClasses = useStylesWithRootClass(rootClassName$E, className);
|
|
8664
8689
|
const handleChange = event => {
|
|
8665
8690
|
onChange && onChange(event, event.target.value);
|
|
8666
8691
|
};
|
|
@@ -8668,7 +8693,7 @@ function DotRadioButton({
|
|
|
8668
8693
|
const radioControl = jsx(StyledRadioButton, {
|
|
8669
8694
|
checked: checked,
|
|
8670
8695
|
classes: {
|
|
8671
|
-
root: rootClassName$
|
|
8696
|
+
root: rootClassName$t
|
|
8672
8697
|
},
|
|
8673
8698
|
color: "primary",
|
|
8674
8699
|
"data-pendoid": dataPendoId,
|
|
@@ -8714,7 +8739,7 @@ const DotRadioGroup = ({
|
|
|
8714
8739
|
size = 'medium'
|
|
8715
8740
|
}) => {
|
|
8716
8741
|
const placement = `${placementClassName}${labelPlacement}`;
|
|
8717
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8742
|
+
const rootClasses = useStylesWithRootClass(rootClassName$C, className, placement);
|
|
8718
8743
|
const radioValue = value || defaultValue;
|
|
8719
8744
|
const [selectedValue, setSelectedValue] = useState(radioValue);
|
|
8720
8745
|
/* This will ensure that value can be updated from the outside */
|
|
@@ -8779,7 +8804,7 @@ const DotRadioGroup = ({
|
|
|
8779
8804
|
});
|
|
8780
8805
|
};
|
|
8781
8806
|
|
|
8782
|
-
const rootClassName$
|
|
8807
|
+
const rootClassName$s = 'dot-switch';
|
|
8783
8808
|
const StyledSwitch = styled(Switch)`
|
|
8784
8809
|
${({
|
|
8785
8810
|
theme
|
|
@@ -8808,7 +8833,7 @@ const DotSwitch = ({
|
|
|
8808
8833
|
checked,
|
|
8809
8834
|
className,
|
|
8810
8835
|
color,
|
|
8811
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
8836
|
+
'data-pendoid': dataPendoId = rootClassName$s,
|
|
8812
8837
|
'data-testid': dataTestId,
|
|
8813
8838
|
disabled = false,
|
|
8814
8839
|
id,
|
|
@@ -8818,7 +8843,7 @@ const DotSwitch = ({
|
|
|
8818
8843
|
onChange,
|
|
8819
8844
|
size = 'medium'
|
|
8820
8845
|
}) => {
|
|
8821
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8846
|
+
const rootClasses = useStylesWithRootClass(rootClassName$s, className);
|
|
8822
8847
|
const handleChange = event => {
|
|
8823
8848
|
onChange && onChange(event);
|
|
8824
8849
|
};
|
|
@@ -8848,7 +8873,7 @@ const DotSwitch = ({
|
|
|
8848
8873
|
tabIndex: 0
|
|
8849
8874
|
});
|
|
8850
8875
|
return jsx(StyledFormControlLabel, {
|
|
8851
|
-
className: rootClassName$
|
|
8876
|
+
className: rootClassName$E,
|
|
8852
8877
|
control: switchControl,
|
|
8853
8878
|
label: label,
|
|
8854
8879
|
labelPlacement: labelPlacement
|
|
@@ -9169,7 +9194,7 @@ const DotDynamicForm = ({
|
|
|
9169
9194
|
onChange,
|
|
9170
9195
|
onSubmit
|
|
9171
9196
|
}) => {
|
|
9172
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
9197
|
+
const rootClasses = useStylesWithRootClass(rootClassName$v, className);
|
|
9173
9198
|
// Memoize this operation so that is doesn't get executed each time this
|
|
9174
9199
|
// component re-renders
|
|
9175
9200
|
const initialFormState = useMemo(() => getInitialFormState(config, liveValidation), [config, liveValidation, getInitialFormState]);
|
|
@@ -9415,7 +9440,7 @@ const DotDynamicForm = ({
|
|
|
9415
9440
|
});
|
|
9416
9441
|
};
|
|
9417
9442
|
|
|
9418
|
-
const rootClassName$
|
|
9443
|
+
const rootClassName$r = 'dot-inline-edit';
|
|
9419
9444
|
const editModeClassName = 'dot-edit-mode';
|
|
9420
9445
|
const viewModeClassName = 'dot-view-mode';
|
|
9421
9446
|
const placeholderClassName = 'dot-placeholder';
|
|
@@ -9427,7 +9452,7 @@ const StyledInlineEdit = styled.div`
|
|
|
9427
9452
|
theme,
|
|
9428
9453
|
fullWidth
|
|
9429
9454
|
}) => css`
|
|
9430
|
-
&.${rootClassName$
|
|
9455
|
+
&.${rootClassName$r} {
|
|
9431
9456
|
align-items: center;
|
|
9432
9457
|
color: ${theme.palette.figma.typography.black};
|
|
9433
9458
|
display: ${fullWidth ? 'flex' : 'inline-flex'};
|
|
@@ -9637,7 +9662,7 @@ const DotInlineEdit = ({
|
|
|
9637
9662
|
bindings,
|
|
9638
9663
|
charactersLimit,
|
|
9639
9664
|
className,
|
|
9640
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
9665
|
+
'data-pendoid': dataPendoId = rootClassName$r,
|
|
9641
9666
|
'data-testid': dataTestId,
|
|
9642
9667
|
fullWidth = true,
|
|
9643
9668
|
hideActionButtons,
|
|
@@ -9670,7 +9695,7 @@ const DotInlineEdit = ({
|
|
|
9670
9695
|
}
|
|
9671
9696
|
}, [value]);
|
|
9672
9697
|
const isSaveDisabled = checkIfEmptyValue(inputValue);
|
|
9673
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
9698
|
+
const rootClasses = useStylesWithRootClass(rootClassName$r, className, editing ? editModeClassName : '');
|
|
9674
9699
|
const handleShowTooltip = visible => {
|
|
9675
9700
|
if (!editing) {
|
|
9676
9701
|
setShowTooltip(visible);
|
|
@@ -9849,13 +9874,13 @@ const DotInlineEdit = ({
|
|
|
9849
9874
|
});
|
|
9850
9875
|
};
|
|
9851
9876
|
|
|
9852
|
-
const rootClassName$
|
|
9877
|
+
const rootClassName$q = 'dot-navigation-rail';
|
|
9853
9878
|
const StyledNavigationRail = styled.div`
|
|
9854
9879
|
${({
|
|
9855
9880
|
theme,
|
|
9856
9881
|
railItemPosition
|
|
9857
9882
|
}) => css`
|
|
9858
|
-
&.${rootClassName$
|
|
9883
|
+
&.${rootClassName$q} {
|
|
9859
9884
|
background: ${theme.palette.figma.neutral.elevated};
|
|
9860
9885
|
border-left: 1px solid ${theme.palette.figma.border.default};
|
|
9861
9886
|
display: flex;
|
|
@@ -9902,7 +9927,7 @@ const DotNavigationRail = ({
|
|
|
9902
9927
|
railItems,
|
|
9903
9928
|
selectedIndex = 0
|
|
9904
9929
|
}) => {
|
|
9905
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
9930
|
+
const rootClasses = useStylesWithRootClass(rootClassName$q, className);
|
|
9906
9931
|
const [selectedItemIndex, setSelectedItemIndex] = useState(selectedIndex);
|
|
9907
9932
|
/* Used to change selected index programmatically from the consumer component */
|
|
9908
9933
|
useEffect(() => {
|
|
@@ -9953,12 +9978,12 @@ const DotNavigationRail = ({
|
|
|
9953
9978
|
});
|
|
9954
9979
|
};
|
|
9955
9980
|
|
|
9956
|
-
const rootClassName$
|
|
9981
|
+
const rootClassName$p = 'dot-pill';
|
|
9957
9982
|
const StyledPill = styled(Chip)`
|
|
9958
9983
|
${({
|
|
9959
9984
|
theme
|
|
9960
9985
|
}) => css`
|
|
9961
|
-
&.${rootClassName$
|
|
9986
|
+
&.${rootClassName$p} {
|
|
9962
9987
|
background-color: ${({
|
|
9963
9988
|
backgroundcolor
|
|
9964
9989
|
}) => {
|
|
@@ -10079,7 +10104,7 @@ const DotPill = ({
|
|
|
10079
10104
|
status = 'default',
|
|
10080
10105
|
variant = 'filled'
|
|
10081
10106
|
}) => {
|
|
10082
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
10107
|
+
const rootClasses = useStylesWithRootClass(rootClassName$p, className, status);
|
|
10083
10108
|
return jsx(StyledPill, {
|
|
10084
10109
|
"aria-label": ariaLabel,
|
|
10085
10110
|
bordercolor: bordercolor,
|
|
@@ -10097,12 +10122,12 @@ const DotPill = ({
|
|
|
10097
10122
|
});
|
|
10098
10123
|
};
|
|
10099
10124
|
|
|
10100
|
-
const rootClassName$
|
|
10125
|
+
const rootClassName$o = 'dot-skeleton';
|
|
10101
10126
|
const StyledSkeleton = styled(Skeleton)`
|
|
10102
10127
|
${({
|
|
10103
10128
|
theme
|
|
10104
10129
|
}) => css`
|
|
10105
|
-
&.${rootClassName$
|
|
10130
|
+
&.${rootClassName$o} {
|
|
10106
10131
|
background-color: ${theme.palette.figma.border.darker};
|
|
10107
10132
|
}
|
|
10108
10133
|
`}
|
|
@@ -10117,7 +10142,7 @@ const DotSkeleton = ({
|
|
|
10117
10142
|
width,
|
|
10118
10143
|
variant
|
|
10119
10144
|
}) => {
|
|
10120
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
10145
|
+
const rootClasses = useStylesWithRootClass(rootClassName$o, className);
|
|
10121
10146
|
return jsx(StyledSkeleton, {
|
|
10122
10147
|
animation: "wave",
|
|
10123
10148
|
"aria-label": ariaLabel,
|
|
@@ -10132,12 +10157,12 @@ const DotSkeleton = ({
|
|
|
10132
10157
|
});
|
|
10133
10158
|
};
|
|
10134
10159
|
|
|
10135
|
-
const rootClassName$
|
|
10160
|
+
const rootClassName$n = 'dot-snackbar';
|
|
10136
10161
|
const StyledSnackbar = styled(Snackbar)`
|
|
10137
10162
|
${({
|
|
10138
10163
|
theme
|
|
10139
10164
|
}) => css`
|
|
10140
|
-
&.${rootClassName$
|
|
10165
|
+
&.${rootClassName$n} {
|
|
10141
10166
|
.dot-icon-btn .dot-icon {
|
|
10142
10167
|
color: ${theme.palette.figma.icon.white};
|
|
10143
10168
|
}
|
|
@@ -10225,7 +10250,7 @@ const DotSnackbar = ({
|
|
|
10225
10250
|
onClose,
|
|
10226
10251
|
action
|
|
10227
10252
|
});
|
|
10228
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
10253
|
+
const rootClasses = useStylesWithRootClass(rootClassName$n, className);
|
|
10229
10254
|
const handleSnackbarClose = reason => {
|
|
10230
10255
|
if (hideOnClickAway || !hideOnClickAway && reason !== 'clickaway') {
|
|
10231
10256
|
onClose();
|
|
@@ -10257,10 +10282,10 @@ const DotSnackbar = ({
|
|
|
10257
10282
|
});
|
|
10258
10283
|
};
|
|
10259
10284
|
|
|
10260
|
-
const rootClassName$
|
|
10285
|
+
const rootClassName$m = 'dot-snackbar-container';
|
|
10261
10286
|
const StyledSnackbarContainer = styled.div`
|
|
10262
10287
|
${() => css`
|
|
10263
|
-
&.${rootClassName$
|
|
10288
|
+
&.${rootClassName$m} {
|
|
10264
10289
|
position: absolute;
|
|
10265
10290
|
top: 0;
|
|
10266
10291
|
width: 250px;
|
|
@@ -10291,10 +10316,10 @@ const DotSnackbarContainer = ({
|
|
|
10291
10316
|
};
|
|
10292
10317
|
}
|
|
10293
10318
|
return jsx(StyledSnackbarContainer, {
|
|
10294
|
-
className: rootClassName$
|
|
10319
|
+
className: rootClassName$m,
|
|
10295
10320
|
children: jsx("div", {
|
|
10296
|
-
className: rootClassName$
|
|
10297
|
-
"data-testid": rootClassName$
|
|
10321
|
+
className: rootClassName$m,
|
|
10322
|
+
"data-testid": rootClassName$m,
|
|
10298
10323
|
children: alerts.slice().reverse().map(alert => {
|
|
10299
10324
|
return jsx(DotSnackbar, {
|
|
10300
10325
|
autoHideDuration: alert.autoHideDuration,
|
|
@@ -10353,12 +10378,12 @@ const useDotSnackbarContext = () => {
|
|
|
10353
10378
|
return useContext(DotSnackbarContext);
|
|
10354
10379
|
};
|
|
10355
10380
|
|
|
10356
|
-
const rootClassName$
|
|
10381
|
+
const rootClassName$l = 'dot-split-button-group';
|
|
10357
10382
|
const StyledSplitButtonGroup = styled(ButtonGroup)`
|
|
10358
10383
|
${({
|
|
10359
10384
|
theme
|
|
10360
10385
|
}) => css`
|
|
10361
|
-
&.${rootClassName$
|
|
10386
|
+
&.${rootClassName$l} {
|
|
10362
10387
|
&.outlined,
|
|
10363
10388
|
&.text {
|
|
10364
10389
|
.expand-button {
|
|
@@ -10425,7 +10450,7 @@ const DotSplitButton = ({
|
|
|
10425
10450
|
autoFocus = false,
|
|
10426
10451
|
ariaLabel,
|
|
10427
10452
|
className,
|
|
10428
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
10453
|
+
'data-pendoid': dataPendoId = rootClassName$l,
|
|
10429
10454
|
'data-testid': dataTestId,
|
|
10430
10455
|
defaultMainOptionKey,
|
|
10431
10456
|
disabled = false,
|
|
@@ -10439,7 +10464,7 @@ const DotSplitButton = ({
|
|
|
10439
10464
|
tooltip,
|
|
10440
10465
|
type = 'primary'
|
|
10441
10466
|
}) => {
|
|
10442
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
10467
|
+
const rootClasses = useStylesWithRootClass(rootClassName$l, className, type, disabled ? 'disabled' : '');
|
|
10443
10468
|
const [open, setOpen] = useState(false);
|
|
10444
10469
|
const anchorRef = useRef(null);
|
|
10445
10470
|
const hasEmptyOptions = options.length === 0;
|
|
@@ -10504,14 +10529,14 @@ const DotSplitButton = ({
|
|
|
10504
10529
|
});
|
|
10505
10530
|
};
|
|
10506
10531
|
|
|
10507
|
-
const rootClassName$
|
|
10532
|
+
const rootClassName$k = 'dot-stepper';
|
|
10508
10533
|
const stepListClassName = 'dot-stepper-list';
|
|
10509
10534
|
const contentClassName = 'dot-stepper-content';
|
|
10510
10535
|
const StyledStepper = styled.div`
|
|
10511
10536
|
${({
|
|
10512
10537
|
theme
|
|
10513
10538
|
}) => css`
|
|
10514
|
-
&.${rootClassName$
|
|
10539
|
+
&.${rootClassName$k} {
|
|
10515
10540
|
display: flex;
|
|
10516
10541
|
align-items: flex-start;
|
|
10517
10542
|
padding: 0;
|
|
@@ -10714,6 +10739,7 @@ const StepActionsContainer = styled.div`
|
|
|
10714
10739
|
position: -webkit-sticky;
|
|
10715
10740
|
bottom: 0;
|
|
10716
10741
|
z-index: 2;
|
|
10742
|
+
background-color: ${theme.palette.figma.background.level0.bckgWhite};
|
|
10717
10743
|
|
|
10718
10744
|
&.with-top-border {
|
|
10719
10745
|
border-top: 1px solid ${theme.palette.figma.border.default};
|
|
@@ -10783,9 +10809,9 @@ const DotStepper = ({
|
|
|
10783
10809
|
const displayFinalContent = finalContent && currentStep > steps.length;
|
|
10784
10810
|
const displayCancelButton = !!(!displayInitialContent && !displayFinalContent && onCancel);
|
|
10785
10811
|
const isLastStep = currentStep === steps.length && !finalContent || currentStep > steps.length && finalContent;
|
|
10786
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
10812
|
+
const rootClasses = useStylesWithRootClass(rootClassName$k, stepsPosition, className);
|
|
10787
10813
|
const stepContentClasses = displayInitialContent || displayFinalContent ? 'center-content' : '';
|
|
10788
|
-
const stickyBottomClasses = useStylesWithRootClass(isStickyBottom ? 'with-top-border' : '');
|
|
10814
|
+
const stickyBottomClasses = useStylesWithRootClass('actions-container', isStickyBottom ? 'with-top-border' : '');
|
|
10789
10815
|
const actionsClasses = useStylesWithRootClass('actions', displayInitialContent || displayFinalContent ? 'center-actions' : '');
|
|
10790
10816
|
useEffect(() => {
|
|
10791
10817
|
const actionsElement = actionsRef.current;
|
|
@@ -10982,7 +11008,7 @@ const DotStepper = ({
|
|
|
10982
11008
|
});
|
|
10983
11009
|
};
|
|
10984
11010
|
|
|
10985
|
-
const rootClassName$
|
|
11011
|
+
const rootClassName$j = 'dot-table-pagination';
|
|
10986
11012
|
// TO-DO: Determine how to apply styles to standard popper element
|
|
10987
11013
|
const paginationItemClassName = 'dot-pagination-menu-item';
|
|
10988
11014
|
const StyledTablePagination = styled.div`
|
|
@@ -10990,7 +11016,7 @@ const StyledTablePagination = styled.div`
|
|
|
10990
11016
|
theme,
|
|
10991
11017
|
typography
|
|
10992
11018
|
}) => css`
|
|
10993
|
-
.${rootClassName$
|
|
11019
|
+
.${rootClassName$j} {
|
|
10994
11020
|
border-top: 1px solid ${theme.palette.figma.border.default};
|
|
10995
11021
|
|
|
10996
11022
|
.dot-caption,
|
|
@@ -11028,7 +11054,7 @@ const DotTablePagination = ({
|
|
|
11028
11054
|
rowsPerPageOptions = [...ROWS_PER_PAGE_OPTIONS],
|
|
11029
11055
|
typography = 'subtitle2'
|
|
11030
11056
|
}) => {
|
|
11031
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11057
|
+
const rootClasses = useStylesWithRootClass(rootClassName$j, className);
|
|
11032
11058
|
const handlePageChange = (event, newPage) => {
|
|
11033
11059
|
onPageChange && onPageChange(newPage);
|
|
11034
11060
|
};
|
|
@@ -11037,7 +11063,7 @@ const DotTablePagination = ({
|
|
|
11037
11063
|
};
|
|
11038
11064
|
return (/* Container is used to pass 'typography' prop to a styled component */
|
|
11039
11065
|
jsx(StyledTablePagination, {
|
|
11040
|
-
className: rootClassName$
|
|
11066
|
+
className: rootClassName$j,
|
|
11041
11067
|
typography: typography,
|
|
11042
11068
|
children: jsx(TablePagination, {
|
|
11043
11069
|
"aria-label": ariaLabel,
|
|
@@ -11063,12 +11089,12 @@ const DotTablePagination = ({
|
|
|
11063
11089
|
);
|
|
11064
11090
|
};
|
|
11065
11091
|
|
|
11066
|
-
const rootClassName$
|
|
11092
|
+
const rootClassName$i = 'dot-table';
|
|
11067
11093
|
const StyledPaper = styled(Paper)`
|
|
11068
11094
|
${({
|
|
11069
11095
|
theme
|
|
11070
11096
|
}) => css`
|
|
11071
|
-
&.${rootClassName$
|
|
11097
|
+
&.${rootClassName$i} {
|
|
11072
11098
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
11073
11099
|
border: 1px solid ${theme.palette.figma.border.default};
|
|
11074
11100
|
overflow: hidden;
|
|
@@ -11137,10 +11163,10 @@ const StyledMenu$1 = styled(DotMenu)`
|
|
|
11137
11163
|
}
|
|
11138
11164
|
`;
|
|
11139
11165
|
|
|
11140
|
-
const rootClassName$
|
|
11166
|
+
const rootClassName$h = 'dot-tbody';
|
|
11141
11167
|
const StyledTableBody = styled(TableBody)`
|
|
11142
11168
|
${() => css`
|
|
11143
|
-
&.${rootClassName$
|
|
11169
|
+
&.${rootClassName$h} {
|
|
11144
11170
|
tr:last-child td {
|
|
11145
11171
|
border-bottom: none;
|
|
11146
11172
|
}
|
|
@@ -11288,12 +11314,12 @@ const parseCellMaxWidth = width => {
|
|
|
11288
11314
|
return width;
|
|
11289
11315
|
};
|
|
11290
11316
|
|
|
11291
|
-
const rootClassName$
|
|
11317
|
+
const rootClassName$g = 'dot-td';
|
|
11292
11318
|
const StyledTableCell = styled(TableCell)`
|
|
11293
11319
|
${({
|
|
11294
11320
|
theme
|
|
11295
11321
|
}) => css`
|
|
11296
|
-
&.${rootClassName$
|
|
11322
|
+
&.${rootClassName$g} {
|
|
11297
11323
|
padding-top: 0;
|
|
11298
11324
|
padding-bottom: 0;
|
|
11299
11325
|
|
|
@@ -11388,7 +11414,7 @@ const DotBodyCell = ({
|
|
|
11388
11414
|
const isOverflowing = actionTableCellWidth > (wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current.clientWidth);
|
|
11389
11415
|
setShowMenu(isOverflowing);
|
|
11390
11416
|
};
|
|
11391
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11417
|
+
const rootClasses = useStylesWithRootClass(rootClassName$g, className, noWrap && 'noWrap', Array.isArray(value) && 'actionItems');
|
|
11392
11418
|
const getTableCellValue = () => {
|
|
11393
11419
|
if (Array.isArray(value)) {
|
|
11394
11420
|
return jsx("div", {
|
|
@@ -11453,12 +11479,12 @@ const EmptyDotRow = ({
|
|
|
11453
11479
|
}, CreateUUID());
|
|
11454
11480
|
};
|
|
11455
11481
|
|
|
11456
|
-
const rootClassName$
|
|
11482
|
+
const rootClassName$f = 'dot-tr';
|
|
11457
11483
|
const StyledTableRowStyles = styled(TableRow)`
|
|
11458
11484
|
${({
|
|
11459
11485
|
theme
|
|
11460
11486
|
}) => css`
|
|
11461
|
-
&.${rootClassName$
|
|
11487
|
+
&.${rootClassName$f} {
|
|
11462
11488
|
&.selected {
|
|
11463
11489
|
background: ${theme.palette.figma.overlay.table.highlights};
|
|
11464
11490
|
|
|
@@ -11487,12 +11513,12 @@ const StyledTableRowStyles = styled(TableRow)`
|
|
|
11487
11513
|
const TABLE_TYPOGRAPHY_VARIANT = 'body1';
|
|
11488
11514
|
const TABLE_DEFAULT_SKELETON_ROWS = 4;
|
|
11489
11515
|
|
|
11490
|
-
const rootClassName$
|
|
11516
|
+
const rootClassName$e = 'dot-th-checkbox';
|
|
11491
11517
|
const StyledTableHeaderCheckboxCell = styled(TableCell)`
|
|
11492
11518
|
${({
|
|
11493
11519
|
theme
|
|
11494
11520
|
}) => css`
|
|
11495
|
-
&.${rootClassName$
|
|
11521
|
+
&.${rootClassName$e} {
|
|
11496
11522
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
11497
11523
|
padding: ${theme.spacing(0, 1)};
|
|
11498
11524
|
width: ${theme.spacing(5)};
|
|
@@ -11511,7 +11537,7 @@ const DotHeaderCheckboxCell = ({
|
|
|
11511
11537
|
multiSelectState,
|
|
11512
11538
|
onCheckAllChange
|
|
11513
11539
|
}) => {
|
|
11514
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11540
|
+
const rootClasses = useStylesWithRootClass(rootClassName$e, className);
|
|
11515
11541
|
const [checkboxState, setCheckboxState] = useState('unchecked');
|
|
11516
11542
|
useEffect(() => {
|
|
11517
11543
|
setCheckboxState(multiSelectState);
|
|
@@ -11542,12 +11568,12 @@ const DotHeaderCheckboxCell = ({
|
|
|
11542
11568
|
});
|
|
11543
11569
|
};
|
|
11544
11570
|
|
|
11545
|
-
const rootClassName$
|
|
11571
|
+
const rootClassName$d = 'dot-th';
|
|
11546
11572
|
const StyledTableHeaderCell = styled(TableCell)`
|
|
11547
11573
|
${({
|
|
11548
11574
|
theme
|
|
11549
11575
|
}) => css`
|
|
11550
|
-
&.${rootClassName$
|
|
11576
|
+
&.${rootClassName$d} {
|
|
11551
11577
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
11552
11578
|
|
|
11553
11579
|
&.MuiTableCell-alignCenter > span.MuiTableSortLabel-root {
|
|
@@ -11606,7 +11632,7 @@ const DotHeaderCell = ({
|
|
|
11606
11632
|
return jsx(StyledTableHeaderCell, {
|
|
11607
11633
|
align: align,
|
|
11608
11634
|
classes: {
|
|
11609
|
-
root: rootClassName$
|
|
11635
|
+
root: rootClassName$d
|
|
11610
11636
|
},
|
|
11611
11637
|
sortDirection: sortable ? sortDirection : undefined,
|
|
11612
11638
|
style: headerCellStyle,
|
|
@@ -11877,12 +11903,12 @@ const ExpandCollapseCell = ({
|
|
|
11877
11903
|
});
|
|
11878
11904
|
};
|
|
11879
11905
|
|
|
11880
|
-
const rootClassName$
|
|
11906
|
+
const rootClassName$c = 'dot-td-checkbox';
|
|
11881
11907
|
const StyledTableBodyCheckboxCell = styled(TableCell)`
|
|
11882
11908
|
${({
|
|
11883
11909
|
theme
|
|
11884
11910
|
}) => css`
|
|
11885
|
-
&.${rootClassName$
|
|
11911
|
+
&.${rootClassName$c} {
|
|
11886
11912
|
padding: ${theme.spacing(0, 1)};
|
|
11887
11913
|
width: ${theme.spacing(5)};
|
|
11888
11914
|
|
|
@@ -11901,7 +11927,7 @@ const DotBodyCheckboxCell = ({
|
|
|
11901
11927
|
onChange,
|
|
11902
11928
|
rowId
|
|
11903
11929
|
}) => {
|
|
11904
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11930
|
+
const rootClasses = useStylesWithRootClass(rootClassName$c, className);
|
|
11905
11931
|
const [isCheckboxChecked, setIsCheckboxChecked] = useState(isChecked);
|
|
11906
11932
|
/** This effect is used when 'checked' status is changed from the outside */
|
|
11907
11933
|
useEffect(() => {
|
|
@@ -11953,7 +11979,7 @@ const DotTableRow = ({
|
|
|
11953
11979
|
selectedTableRowIds
|
|
11954
11980
|
} = multiSelectBody || {};
|
|
11955
11981
|
const isCheckboxChecked = selectedTableRowIds && selectedTableRowIds.includes(id) || false;
|
|
11956
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11982
|
+
const rootClasses = useStylesWithRootClass(rootClassName$f, isCheckboxChecked ? 'selected' : undefined, className);
|
|
11957
11983
|
const renderCheckboxCell = () => {
|
|
11958
11984
|
return jsx(DotBodyCheckboxCell, {
|
|
11959
11985
|
ariaLabel: "Click to select this row",
|
|
@@ -12070,7 +12096,7 @@ const DotTableBody = ({
|
|
|
12070
12096
|
return jsxs(Fragment, {
|
|
12071
12097
|
children: [jsx(StyledTableBody, {
|
|
12072
12098
|
classes: {
|
|
12073
|
-
root: rootClassName$
|
|
12099
|
+
root: rootClassName$h
|
|
12074
12100
|
},
|
|
12075
12101
|
children: getTableBodyRows()
|
|
12076
12102
|
}), jsx(StyledMenu$1, {
|
|
@@ -12085,12 +12111,12 @@ const DotTableBody = ({
|
|
|
12085
12111
|
});
|
|
12086
12112
|
};
|
|
12087
12113
|
|
|
12088
|
-
const rootClassName$
|
|
12114
|
+
const rootClassName$b = 'dot-table-selection-toolbar';
|
|
12089
12115
|
const StyledTableSelectionToolbar = styled(DotActionToolbar)`
|
|
12090
12116
|
${({
|
|
12091
12117
|
theme
|
|
12092
12118
|
}) => css`
|
|
12093
|
-
&.${rootClassName$
|
|
12119
|
+
&.${rootClassName$b} {
|
|
12094
12120
|
display: flex;
|
|
12095
12121
|
align-items: center;
|
|
12096
12122
|
justify-content: space-between;
|
|
@@ -12148,7 +12174,7 @@ const DotTableSelectionToolbar = ({
|
|
|
12148
12174
|
onClearAll,
|
|
12149
12175
|
selectedRowsNumber
|
|
12150
12176
|
}) => {
|
|
12151
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
12177
|
+
const rootClasses = useStylesWithRootClass(rootClassName$b, className);
|
|
12152
12178
|
return jsxs(StyledTableSelectionToolbar, {
|
|
12153
12179
|
ariaLabel: ariaLabel,
|
|
12154
12180
|
className: rootClasses,
|
|
@@ -12242,7 +12268,7 @@ const DotTable = ({
|
|
|
12242
12268
|
return onUpdateData ? data : stableSort(data, getComparator(order, orderBy));
|
|
12243
12269
|
};
|
|
12244
12270
|
const [pageData, setPageData] = useState(getSortedData().slice(0, rowsPerPage ? rowsPerPage : data.length));
|
|
12245
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
12271
|
+
const rootClasses = useStylesWithRootClass(rootClassName$i, className, loading ? 'loading' : '');
|
|
12246
12272
|
const updateData = (newOrder, newOrderBy, newPage, newRowsPerPage) => {
|
|
12247
12273
|
const newData = stableSort(data, getComparator(newOrder, newOrderBy));
|
|
12248
12274
|
setPageData(newRowsPerPage ? newData.slice(newPage * newRowsPerPage, newPage * newRowsPerPage + newRowsPerPage) : newData);
|
|
@@ -12440,7 +12466,7 @@ const DotTableAction = ({
|
|
|
12440
12466
|
});
|
|
12441
12467
|
};
|
|
12442
12468
|
|
|
12443
|
-
const rootClassName$
|
|
12469
|
+
const rootClassName$a = 'dot-table-actions';
|
|
12444
12470
|
const TableActionsContainer = styled.div`
|
|
12445
12471
|
overflow: hidden;
|
|
12446
12472
|
text-overflow: clip;
|
|
@@ -12515,13 +12541,14 @@ const DotTableActions = ({
|
|
|
12515
12541
|
return actions && actions.map((action, index) => index < 2 && jsx(DotTableAction, {
|
|
12516
12542
|
iconId: action.iconId,
|
|
12517
12543
|
label: action.label,
|
|
12544
|
+
disabled: action.disabled,
|
|
12518
12545
|
tooltip: action.tooltip || action.label,
|
|
12519
12546
|
onClick: e => handleTableActionClick(e, action)
|
|
12520
12547
|
}, `action-${index}`));
|
|
12521
12548
|
};
|
|
12522
12549
|
return jsxs(Fragment, {
|
|
12523
12550
|
children: [jsxs(TableActionsContainer, {
|
|
12524
|
-
className: rootClassName$
|
|
12551
|
+
className: rootClassName$a,
|
|
12525
12552
|
ref: wrapperRef,
|
|
12526
12553
|
children: [!showMenu && renderTableActions(), (showMenu || actions.length > 2) && jsx(DotIconButton, {
|
|
12527
12554
|
ariaLabel: "more options",
|
|
@@ -12545,12 +12572,12 @@ const DotTableActions = ({
|
|
|
12545
12572
|
});
|
|
12546
12573
|
};
|
|
12547
12574
|
|
|
12548
|
-
const rootClassName$
|
|
12575
|
+
const rootClassName$9 = 'dot-tabs';
|
|
12549
12576
|
const StyledTabs = styled(Tabs)`
|
|
12550
12577
|
${({
|
|
12551
12578
|
theme
|
|
12552
12579
|
}) => css`
|
|
12553
|
-
&.${rootClassName$
|
|
12580
|
+
&.${rootClassName$9} {
|
|
12554
12581
|
&.MuiTabs-root {
|
|
12555
12582
|
width: 100%;
|
|
12556
12583
|
}
|
|
@@ -12595,7 +12622,7 @@ const DotTabs = ({
|
|
|
12595
12622
|
centered = false,
|
|
12596
12623
|
className,
|
|
12597
12624
|
color,
|
|
12598
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
12625
|
+
'data-pendoid': dataPendoId = rootClassName$9,
|
|
12599
12626
|
'data-testid': dataTestId,
|
|
12600
12627
|
initialValue = 0,
|
|
12601
12628
|
onChange,
|
|
@@ -12604,7 +12631,7 @@ const DotTabs = ({
|
|
|
12604
12631
|
variant = 'standard'
|
|
12605
12632
|
}) => {
|
|
12606
12633
|
const [value, setValue] = useState(initialValue);
|
|
12607
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
12634
|
+
const rootClasses = useStylesWithRootClass(rootClassName$9, className);
|
|
12608
12635
|
useEffect(() => {
|
|
12609
12636
|
if (color) {
|
|
12610
12637
|
console.warn('DEPRECATED: `color` prop is deprecated in `<DotTabs>`, please remove any usage of it in your application.');
|
|
@@ -12658,9 +12685,9 @@ const DotTabs = ({
|
|
|
12658
12685
|
});
|
|
12659
12686
|
};
|
|
12660
12687
|
|
|
12661
|
-
const rootClassName$
|
|
12662
|
-
const containerClassName$2 = `${rootClassName$
|
|
12663
|
-
const dropZoneClassName = `${rootClassName$
|
|
12688
|
+
const rootClassName$8 = 'dot-file-upload';
|
|
12689
|
+
const containerClassName$2 = `${rootClassName$8}-container`;
|
|
12690
|
+
const dropZoneClassName = `${rootClassName$8}-drop-zone`;
|
|
12664
12691
|
const StyledFileUploadContainer = styled.div`
|
|
12665
12692
|
${({
|
|
12666
12693
|
theme
|
|
@@ -12680,7 +12707,7 @@ const StyledFileUpload = styled.div`
|
|
|
12680
12707
|
${({
|
|
12681
12708
|
theme
|
|
12682
12709
|
}) => css`
|
|
12683
|
-
&.${rootClassName$
|
|
12710
|
+
&.${rootClassName$8}.${dropZoneClassName} {
|
|
12684
12711
|
align-items: center;
|
|
12685
12712
|
background: ${theme.palette.figma.background.level0.bckgGray};
|
|
12686
12713
|
border: 2px dashed ${theme.palette.figma.border.defaultButton};
|
|
@@ -12711,12 +12738,12 @@ const StyledFileUpload = styled.div`
|
|
|
12711
12738
|
`}
|
|
12712
12739
|
`;
|
|
12713
12740
|
|
|
12714
|
-
const rootClassName$
|
|
12741
|
+
const rootClassName$7 = 'dot-file-list-item';
|
|
12715
12742
|
const StyledFileListItem = styled(StyledListItem)`
|
|
12716
12743
|
${({
|
|
12717
12744
|
theme
|
|
12718
12745
|
}) => css`
|
|
12719
|
-
&.${rootClassName$
|
|
12746
|
+
&.${rootClassName$7} {
|
|
12720
12747
|
border-bottom: 1px solid ${theme.palette.figma.border.default};
|
|
12721
12748
|
&:hover {
|
|
12722
12749
|
cursor: pointer;
|
|
@@ -12728,7 +12755,7 @@ const StyledFileListItem = styled(StyledListItem)`
|
|
|
12728
12755
|
outline: none;
|
|
12729
12756
|
}
|
|
12730
12757
|
|
|
12731
|
-
&.file-success:not(:hover, :focus-visible) .${rootClassName$
|
|
12758
|
+
&.file-success:not(:hover, :focus-visible) .${rootClassName$7}-end-icon {
|
|
12732
12759
|
i:before {
|
|
12733
12760
|
color: ${theme.palette.figma.success.normal};
|
|
12734
12761
|
}
|
|
@@ -12738,7 +12765,7 @@ const StyledFileListItem = styled(StyledListItem)`
|
|
|
12738
12765
|
}
|
|
12739
12766
|
}
|
|
12740
12767
|
|
|
12741
|
-
&.file-error:not(:hover, :focus-visible) .${rootClassName$
|
|
12768
|
+
&.file-error:not(:hover, :focus-visible) .${rootClassName$7}-end-icon {
|
|
12742
12769
|
i:before,
|
|
12743
12770
|
.MuiListItemText-secondary {
|
|
12744
12771
|
color: ${theme.palette.figma.destructive.normal};
|
|
@@ -12780,7 +12807,7 @@ const DotFileListItem = ({
|
|
|
12780
12807
|
onKeyPress,
|
|
12781
12808
|
tabIndex = 0
|
|
12782
12809
|
}) => {
|
|
12783
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
12810
|
+
const rootClasses = useStylesWithRootClass(rootClassName$7, className, error ? 'file-error' : 'file-success');
|
|
12784
12811
|
const defaultIcon = error ? 'error-solid' : 'check-solid';
|
|
12785
12812
|
const [endIcon, setEndIcon] = useState(defaultIcon);
|
|
12786
12813
|
const handleItemClick = clickedFile => _event => onClick === null || onClick === void 0 ? void 0 : onClick(clickedFile);
|
|
@@ -12813,7 +12840,7 @@ const DotFileListItem = ({
|
|
|
12813
12840
|
})]
|
|
12814
12841
|
}), jsx(DotIconButton, {
|
|
12815
12842
|
ariaLabel: "delete file",
|
|
12816
|
-
className: `${rootClassName$
|
|
12843
|
+
className: `${rootClassName$7}-end-icon`,
|
|
12817
12844
|
"data-testid": dataTestId && `${dataTestId}-end-icon`,
|
|
12818
12845
|
disabled: disableDelete,
|
|
12819
12846
|
iconId: endIcon,
|
|
@@ -12937,7 +12964,7 @@ const DotFileUpload = ({
|
|
|
12937
12964
|
buttonOnly = false,
|
|
12938
12965
|
className,
|
|
12939
12966
|
contentErrors,
|
|
12940
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
12967
|
+
'data-pendoid': dataPendoId = rootClassName$8,
|
|
12941
12968
|
'data-testid': dataTestId,
|
|
12942
12969
|
disabled,
|
|
12943
12970
|
hideFilesList,
|
|
@@ -12950,7 +12977,7 @@ const DotFileUpload = ({
|
|
|
12950
12977
|
const [uploadedFiles, setUploadedFiles] = useState([]);
|
|
12951
12978
|
const [hasMaxFilesError, setHasMaxFilesError] = useState(false);
|
|
12952
12979
|
const isUploadDisabled = disabled || maxFiles && uploadedFiles.length >= maxFiles;
|
|
12953
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
12980
|
+
const rootClasses = useStylesWithRootClass(rootClassName$8, className, !buttonOnly ? dropZoneClassName : '', isUploadDisabled ? 'disabled' : '');
|
|
12954
12981
|
const maxFilesClasses = useStylesWithRootClass('dot-max-files-message', hasMaxFilesError ? 'dot-max-files-reached' : '');
|
|
12955
12982
|
const allowMultiple = maxFiles === undefined || maxFiles > 1;
|
|
12956
12983
|
const setNewlyUploadedFiles = (acceptedFiles, fileRejections) => {
|
|
@@ -13022,12 +13049,12 @@ const DotFileUpload = ({
|
|
|
13022
13049
|
});
|
|
13023
13050
|
};
|
|
13024
13051
|
|
|
13025
|
-
const rootClassName$
|
|
13052
|
+
const rootClassName$6 = 'dot-divider';
|
|
13026
13053
|
const StyledDivider = styled(Divider)`
|
|
13027
13054
|
${({
|
|
13028
13055
|
theme
|
|
13029
13056
|
}) => css`
|
|
13030
|
-
&.${rootClassName$
|
|
13057
|
+
&.${rootClassName$6} {
|
|
13031
13058
|
color: ${theme.palette.figma.border.darker};
|
|
13032
13059
|
|
|
13033
13060
|
.MuiDivider-light {
|
|
@@ -13047,7 +13074,7 @@ const DotDivider = ({
|
|
|
13047
13074
|
orientation,
|
|
13048
13075
|
variant
|
|
13049
13076
|
}) => {
|
|
13050
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13077
|
+
const rootClasses = useStylesWithRootClass(rootClassName$6, className);
|
|
13051
13078
|
return jsx(StyledDivider, {
|
|
13052
13079
|
absolute: absolute,
|
|
13053
13080
|
"aria-label": ariaLabel,
|
|
@@ -13074,7 +13101,7 @@ const DotPopper = ({
|
|
|
13074
13101
|
open,
|
|
13075
13102
|
placement
|
|
13076
13103
|
}) => {
|
|
13077
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13104
|
+
const rootClasses = useStylesWithRootClass(rootClassName$_, className);
|
|
13078
13105
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13079
13106
|
const handleClickAway = event => {
|
|
13080
13107
|
if (onClickAway && (!anchorEl || !anchorEl.contains(event.currentTarget))) {
|
|
@@ -13110,14 +13137,14 @@ const DotPopper = ({
|
|
|
13110
13137
|
});
|
|
13111
13138
|
};
|
|
13112
13139
|
|
|
13113
|
-
const rootClassName$
|
|
13140
|
+
const rootClassName$5 = 'dot-draggable-list';
|
|
13114
13141
|
const listItemClassName = 'dot-draggable-list-item';
|
|
13115
13142
|
const StyledDraggableList = styled.div`
|
|
13116
13143
|
${({
|
|
13117
13144
|
theme,
|
|
13118
13145
|
draggableHandle
|
|
13119
13146
|
}) => css`
|
|
13120
|
-
&.${rootClassName$
|
|
13147
|
+
&.${rootClassName$5} {
|
|
13121
13148
|
padding: ${theme.spacing(1, 0)};
|
|
13122
13149
|
position: relative;
|
|
13123
13150
|
|
|
@@ -13166,7 +13193,7 @@ const ListGridLayout = WidthProvider(GridLayout);
|
|
|
13166
13193
|
const DotDraggableList = ({
|
|
13167
13194
|
ariaLabel,
|
|
13168
13195
|
className,
|
|
13169
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
13196
|
+
'data-pendoid': dataPendoId = rootClassName$5,
|
|
13170
13197
|
'data-testid': dataTestId,
|
|
13171
13198
|
disableDrag,
|
|
13172
13199
|
draggableHandle,
|
|
@@ -13175,7 +13202,7 @@ const DotDraggableList = ({
|
|
|
13175
13202
|
rowHeight = DEFAULT_LIST_ITEM_HEIGHT,
|
|
13176
13203
|
width = DEFAULT_LIST_WIDTH
|
|
13177
13204
|
}) => {
|
|
13178
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13205
|
+
const rootClasses = useStylesWithRootClass(rootClassName$5, className, draggableHandle ? 'with-draggable-handle' : '');
|
|
13179
13206
|
const listItemClasses = useStylesWithRootClass(listItemClassName, draggableHandle && !disableDrag ? 'with-handle-grab-cursor' : '', draggableHandle || disableDrag ? 'with-default-cursor' : '');
|
|
13180
13207
|
const listWidth = isNumber(width) ? `${width}px` : width;
|
|
13181
13208
|
const [orderedItems, setOrderedItems] = useState([]);
|
|
@@ -13228,12 +13255,12 @@ const DotDraggableList = ({
|
|
|
13228
13255
|
});
|
|
13229
13256
|
};
|
|
13230
13257
|
|
|
13231
|
-
const rootClassName$
|
|
13258
|
+
const rootClassName$4 = 'dot-linear-progress';
|
|
13232
13259
|
const StyledLinearProgress = styled(LinearProgress)`
|
|
13233
13260
|
${({
|
|
13234
13261
|
theme
|
|
13235
13262
|
}) => css`
|
|
13236
|
-
&.${rootClassName$
|
|
13263
|
+
&.${rootClassName$4} {
|
|
13237
13264
|
&.MuiLinearProgress-colorError {
|
|
13238
13265
|
color: ${theme.palette.figma.inProgress.error};
|
|
13239
13266
|
}
|
|
@@ -13265,7 +13292,7 @@ const DotLinearProgress = ({
|
|
|
13265
13292
|
valueBuffer,
|
|
13266
13293
|
variant = 'indeterminate'
|
|
13267
13294
|
}) => {
|
|
13268
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13295
|
+
const rootClasses = useStylesWithRootClass(rootClassName$4, className);
|
|
13269
13296
|
useEffect(() => {
|
|
13270
13297
|
if (!ariaLabel) {
|
|
13271
13298
|
console.warn('a11y: DotLinearProgress must have an ariaLabel to describe the progress bar');
|
|
@@ -13304,13 +13331,13 @@ const getContextEnumBasedOnTarget = (event, inputElement, contextEnum) => {
|
|
|
13304
13331
|
return currentContextEnum;
|
|
13305
13332
|
};
|
|
13306
13333
|
|
|
13307
|
-
const rootClassName$
|
|
13334
|
+
const rootClassName$3 = 'dot-date-picker';
|
|
13308
13335
|
const popperClassName = 'dot-date-picker-popper';
|
|
13309
13336
|
const containerClassName$1 = 'dot-date-picker-container';
|
|
13310
13337
|
const rectanglePickersDayClassName = 'dot-rectangle-pickers-day';
|
|
13311
13338
|
const StyledDatePickerContainer = styled.div`
|
|
13312
13339
|
${() => css`
|
|
13313
|
-
&.${rootClassName$
|
|
13340
|
+
&.${rootClassName$3} .full-width {
|
|
13314
13341
|
width: 100%;
|
|
13315
13342
|
}
|
|
13316
13343
|
`}
|
|
@@ -13319,7 +13346,7 @@ const StyledDatePicker = styled(DatePicker)`
|
|
|
13319
13346
|
${({
|
|
13320
13347
|
theme
|
|
13321
13348
|
}) => css`
|
|
13322
|
-
&.${rootClassName$
|
|
13349
|
+
&.${rootClassName$3} {
|
|
13323
13350
|
${pickerInputStyles(theme)};
|
|
13324
13351
|
|
|
13325
13352
|
.Mui-disabled.MuiInputBase-root,
|
|
@@ -13371,7 +13398,7 @@ const DotDatePicker = ({
|
|
|
13371
13398
|
autoFocus = false,
|
|
13372
13399
|
className,
|
|
13373
13400
|
closeOnSelect = true,
|
|
13374
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
13401
|
+
'data-pendoid': dataPendoId = rootClassName$3,
|
|
13375
13402
|
'data-testid': dataTestId,
|
|
13376
13403
|
defaultValue,
|
|
13377
13404
|
disableOpenPicker,
|
|
@@ -13411,7 +13438,7 @@ const DotDatePicker = ({
|
|
|
13411
13438
|
const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
|
|
13412
13439
|
const isInputReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
|
|
13413
13440
|
const inputRef = useRef(null);
|
|
13414
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13441
|
+
const rootClasses = useStylesWithRootClass(rootClassName$3, className, isInputReadOnly ? 'read-only' : '');
|
|
13415
13442
|
const containerClasses = useStylesWithRootClass(containerClassName$1, fullWidth ? 'full-width' : '', className);
|
|
13416
13443
|
const focusInput = ref => {
|
|
13417
13444
|
setTimeout(() => {
|
|
@@ -13621,7 +13648,7 @@ const getTimePickerButtonType = selectedDaytime => selectedDaytime && selectedDa
|
|
|
13621
13648
|
const checkIfOpenPropDefined = open => open !== null && open !== undefined;
|
|
13622
13649
|
const getDaytimeButtonType = daytimeSelected => daytimeSelected && daytimeSelected === Daytime.AM ? 'primary' : 'text';
|
|
13623
13650
|
|
|
13624
|
-
const rootClassName$
|
|
13651
|
+
const rootClassName$2 = 'dot-time-picker';
|
|
13625
13652
|
const containerClassName = 'dot-time-picker-container';
|
|
13626
13653
|
const TIME_SELECTION_HEIGHT_SPACING = 34.5;
|
|
13627
13654
|
const TIME_SELECTION_WIDTH_SPACING = 14.5;
|
|
@@ -13692,7 +13719,7 @@ const StyledTimePicker = styled(TimePicker)`
|
|
|
13692
13719
|
${({
|
|
13693
13720
|
theme
|
|
13694
13721
|
}) => css`
|
|
13695
|
-
&.${rootClassName$
|
|
13722
|
+
&.${rootClassName$2} {
|
|
13696
13723
|
${pickerInputStyles(theme)};
|
|
13697
13724
|
|
|
13698
13725
|
.Mui-disabled.MuiInputBase-root,
|
|
@@ -13720,7 +13747,7 @@ const DotTimePicker = ({
|
|
|
13720
13747
|
ariaLabel,
|
|
13721
13748
|
autoFocus = false,
|
|
13722
13749
|
className,
|
|
13723
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
13750
|
+
'data-pendoid': dataPendoId = rootClassName$2,
|
|
13724
13751
|
'data-testid': dataTestId,
|
|
13725
13752
|
defaultValue,
|
|
13726
13753
|
disableOpenPicker = false,
|
|
@@ -13752,7 +13779,7 @@ const DotTimePicker = ({
|
|
|
13752
13779
|
const hasValueWithoutChangeHandler = value !== undefined && onChange === undefined;
|
|
13753
13780
|
const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
|
|
13754
13781
|
const isComponentReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
|
|
13755
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13782
|
+
const rootClasses = useStylesWithRootClass(rootClassName$2, className, isComponentReadOnly ? 'read-only' : '');
|
|
13756
13783
|
const containerClasses = useStylesWithRootClass(containerClassName, fullWidth ? 'full-width' : '', className);
|
|
13757
13784
|
const inputRef = useRef(null);
|
|
13758
13785
|
const [isPickerOpened, setIsPickerOpened] = useState(false);
|
|
@@ -14044,13 +14071,13 @@ const DotTimePicker = ({
|
|
|
14044
14071
|
});
|
|
14045
14072
|
};
|
|
14046
14073
|
|
|
14047
|
-
const rootClassName = 'dot-carousel';
|
|
14074
|
+
const rootClassName$1 = 'dot-carousel';
|
|
14048
14075
|
const StyledCarousel = styled.div`
|
|
14049
14076
|
${({
|
|
14050
14077
|
backgroundColor,
|
|
14051
14078
|
theme
|
|
14052
14079
|
}) => css`
|
|
14053
|
-
&.${rootClassName} {
|
|
14080
|
+
&.${rootClassName$1} {
|
|
14054
14081
|
display: flex;
|
|
14055
14082
|
flex-direction: column;
|
|
14056
14083
|
justify-content: space-between;
|
|
@@ -14149,7 +14176,7 @@ const DotCarousel = ({
|
|
|
14149
14176
|
progressIndicator,
|
|
14150
14177
|
showPagesButtons = true
|
|
14151
14178
|
}) => {
|
|
14152
|
-
const rootClasses = useStylesWithRootClass(rootClassName, className, backgroundColor ? 'with-background-color' : '');
|
|
14179
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1, className, backgroundColor ? 'with-background-color' : '');
|
|
14153
14180
|
const rightNavigationButtonClasses = useStylesWithRootClass('carousel-right-arrow', displayNavigationButtons);
|
|
14154
14181
|
const leftNavigationButtonClasses = useStylesWithRootClass('carousel-left-arrow', displayNavigationButtons);
|
|
14155
14182
|
const createUuids = () => {
|
|
@@ -14300,4 +14327,60 @@ const DotCarousel = ({
|
|
|
14300
14327
|
});
|
|
14301
14328
|
};
|
|
14302
14329
|
|
|
14303
|
-
|
|
14330
|
+
const rootClassName = 'dot-sticky-with-border';
|
|
14331
|
+
const StyledStickyWithBorder = styled.div`
|
|
14332
|
+
${({
|
|
14333
|
+
pinnedStickyBorder,
|
|
14334
|
+
unpinnedStickyBorder
|
|
14335
|
+
}) => css`
|
|
14336
|
+
&.${rootClassName} {
|
|
14337
|
+
position: sticky;
|
|
14338
|
+
top: -1px;
|
|
14339
|
+
|
|
14340
|
+
&.pinned {
|
|
14341
|
+
border-bottom: ${pinnedStickyBorder.width}px ${pinnedStickyBorder.style}
|
|
14342
|
+
${pinnedStickyBorder.color};
|
|
14343
|
+
}
|
|
14344
|
+
&.unpinned {
|
|
14345
|
+
${() => unpinnedStickyBorder && `
|
|
14346
|
+
border-bottom: ${unpinnedStickyBorder.width}px ${unpinnedStickyBorder.style}
|
|
14347
|
+
${unpinnedStickyBorder.color};
|
|
14348
|
+
`}
|
|
14349
|
+
}
|
|
14350
|
+
}
|
|
14351
|
+
`}
|
|
14352
|
+
`;
|
|
14353
|
+
|
|
14354
|
+
const DotStickyWithBorder = ({
|
|
14355
|
+
ariaLabel,
|
|
14356
|
+
className,
|
|
14357
|
+
children,
|
|
14358
|
+
'data-testid': dataTestId,
|
|
14359
|
+
pinnedStickyBorder,
|
|
14360
|
+
unpinnedStickyBorder
|
|
14361
|
+
}) => {
|
|
14362
|
+
const [isPinned, setIsPinned] = useState(false);
|
|
14363
|
+
const ref = useRef();
|
|
14364
|
+
const rootClasses = useStylesWithRootClass(rootClassName, className, isPinned ? 'pinned' : 'unpinned');
|
|
14365
|
+
useEffect(() => {
|
|
14366
|
+
const element = ref.current;
|
|
14367
|
+
const observer = new IntersectionObserver(([e]) => setIsPinned(e.intersectionRatio < 1), {
|
|
14368
|
+
threshold: [1]
|
|
14369
|
+
});
|
|
14370
|
+
observer.observe(element);
|
|
14371
|
+
return function () {
|
|
14372
|
+
observer.unobserve(element);
|
|
14373
|
+
};
|
|
14374
|
+
}, []);
|
|
14375
|
+
return jsx(StyledStickyWithBorder, {
|
|
14376
|
+
"aria-label": ariaLabel,
|
|
14377
|
+
className: rootClasses,
|
|
14378
|
+
"data-testid": dataTestId,
|
|
14379
|
+
pinnedStickyBorder: pinnedStickyBorder,
|
|
14380
|
+
ref: ref,
|
|
14381
|
+
unpinnedStickyBorder: unpinnedStickyBorder,
|
|
14382
|
+
children: children
|
|
14383
|
+
});
|
|
14384
|
+
};
|
|
14385
|
+
|
|
14386
|
+
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, DotEmptyFilterState, 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, DotStickyWithBorder, DotSwitch, DotTable, DotTableAction, DotTableActions, DotTablePagination, DotTabs, DotThemeProvider, DotTimePicker, DotTooltip, DotTruncateWithTooltip, DotTypography, avatarColors, breakpointOptions, checkIfValidDate, darkFigmaColors, lightThemeColors as lightColors, lightFigmaColors, mockScrollIntoView, parseAutoCompleteValue, variables as themeVariables, typographyOptions, useDotCoreApiContext, useDotSnackbarContext };
|