@digital-ai/dot-components 4.18.0 → 4.19.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 +597 -412
- package/package.json +1 -1
- package/src/lib/components/index.d.ts +2 -0
- package/src/lib/components/search/Search.d.ts +12 -0
- package/src/lib/components/search/Search.styles.d.ts +2 -0
- package/src/lib/components/search/index.d.ts +2 -0
- package/src/lib/components/table/Table.d.ts +2 -6
- package/src/lib/components/table/TableBody.d.ts +3 -1
- package/src/lib/components/table/TableHeader.d.ts +1 -1
- package/src/lib/components/table/TableHeaderCell.d.ts +5 -1
- package/src/lib/components/table/TableRow.d.ts +3 -1
- package/src/lib/components/table/utils/helpers.d.ts +8 -2
- package/src/lib/components/table/utils/interfaces.d.ts +13 -2
- package/src/lib/theme-provider/interfaces.d.ts +1 -0
package/index.esm.js
CHANGED
|
@@ -450,6 +450,7 @@ const lightFigmaColors = {
|
|
|
450
450
|
typography: {
|
|
451
451
|
link: b500,
|
|
452
452
|
disabled: n500,
|
|
453
|
+
disabledLightGray: n300,
|
|
453
454
|
black: n700,
|
|
454
455
|
gray: n400,
|
|
455
456
|
white: n0
|
|
@@ -596,6 +597,7 @@ const darkFigmaColors = {
|
|
|
596
597
|
typography: {
|
|
597
598
|
black: n100,
|
|
598
599
|
disabled: n300,
|
|
600
|
+
disabledLightGray: n400,
|
|
599
601
|
link: b200,
|
|
600
602
|
gray: n200,
|
|
601
603
|
white: n700
|
|
@@ -1285,7 +1287,7 @@ const readOnlyStyles = theme => css`
|
|
|
1285
1287
|
}
|
|
1286
1288
|
`;
|
|
1287
1289
|
|
|
1288
|
-
const rootClassName$
|
|
1290
|
+
const rootClassName$1o = 'dot-text-field';
|
|
1289
1291
|
const rootSelectClassName = 'dot-select-field';
|
|
1290
1292
|
const wrapperClassName$2 = 'dot-label-wrapper';
|
|
1291
1293
|
const labelClassName = 'dot-input-label';
|
|
@@ -1338,7 +1340,7 @@ const StyledTextField = styled(TextField)`
|
|
|
1338
1340
|
$maxRows,
|
|
1339
1341
|
$minRows
|
|
1340
1342
|
}) => css`
|
|
1341
|
-
&.${rootClassName$
|
|
1343
|
+
&.${rootClassName$1o} {
|
|
1342
1344
|
.MuiInputBase-root {
|
|
1343
1345
|
margin-bottom: 0;
|
|
1344
1346
|
|
|
@@ -1422,7 +1424,7 @@ const StyledTextField = styled(TextField)`
|
|
|
1422
1424
|
margin-right: ${theme.spacing(2)};
|
|
1423
1425
|
}
|
|
1424
1426
|
|
|
1425
|
-
&.${rootSelectClassName}, &.${rootClassName$
|
|
1427
|
+
&.${rootSelectClassName}, &.${rootClassName$1o} {
|
|
1426
1428
|
.${adornmentIconClassName} {
|
|
1427
1429
|
color: ${theme.palette.figma.icon.black};
|
|
1428
1430
|
p {
|
|
@@ -1512,12 +1514,12 @@ const StyledTextField = styled(TextField)`
|
|
|
1512
1514
|
`}
|
|
1513
1515
|
`;
|
|
1514
1516
|
|
|
1515
|
-
const rootClassName$
|
|
1517
|
+
const rootClassName$1n = 'dot-icon';
|
|
1516
1518
|
const StyledIcon = styled(Icon)`
|
|
1517
1519
|
${({
|
|
1518
1520
|
theme
|
|
1519
1521
|
}) => css`
|
|
1520
|
-
&.${rootClassName$
|
|
1522
|
+
&.${rootClassName$1n} {
|
|
1521
1523
|
color: ${theme.palette.figma.icon.black};
|
|
1522
1524
|
font-size: 20px;
|
|
1523
1525
|
|
|
@@ -1559,7 +1561,7 @@ const DotIcon = ({
|
|
|
1559
1561
|
iconId,
|
|
1560
1562
|
tooltip
|
|
1561
1563
|
}) => {
|
|
1562
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1564
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1n, className);
|
|
1563
1565
|
return jsx(DotTooltip, {
|
|
1564
1566
|
disableInteractive: disableInteractive,
|
|
1565
1567
|
childrenDisplayStyle: "inline-block",
|
|
@@ -1583,7 +1585,7 @@ const DotIcon = ({
|
|
|
1583
1585
|
});
|
|
1584
1586
|
};
|
|
1585
1587
|
|
|
1586
|
-
const rootClassName$
|
|
1588
|
+
const rootClassName$1m = 'dot-accordion';
|
|
1587
1589
|
const summaryClassName = 'dot-accordion-summary';
|
|
1588
1590
|
const detailClassName = 'dot-accordion-details';
|
|
1589
1591
|
const StyledAccordion = styled(Accordion)`
|
|
@@ -1594,7 +1596,7 @@ const StyledAccordion = styled(Accordion)`
|
|
|
1594
1596
|
background: ${theme.palette.figma.background.level1.white};
|
|
1595
1597
|
}
|
|
1596
1598
|
|
|
1597
|
-
&.${rootClassName$
|
|
1599
|
+
&.${rootClassName$1m} .${summaryClassName} {
|
|
1598
1600
|
align-items: center;
|
|
1599
1601
|
background: ${theme.palette.figma.background.level1.white};
|
|
1600
1602
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -1639,7 +1641,7 @@ const DotAccordion = ({
|
|
|
1639
1641
|
ariaLabel,
|
|
1640
1642
|
children,
|
|
1641
1643
|
className,
|
|
1642
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
1644
|
+
'data-pendoid': dataPendoId = rootClassName$1m,
|
|
1643
1645
|
'data-testid': dataTestId = 'dot-accordion',
|
|
1644
1646
|
disabled = false,
|
|
1645
1647
|
expanded,
|
|
@@ -1650,7 +1652,7 @@ const DotAccordion = ({
|
|
|
1650
1652
|
summary,
|
|
1651
1653
|
noWrap = true
|
|
1652
1654
|
}) => {
|
|
1653
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1655
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1m, className);
|
|
1654
1656
|
const [elevation, setElevation] = useState();
|
|
1655
1657
|
useEffect(() => {
|
|
1656
1658
|
if (onChange && expanded === undefined) {
|
|
@@ -1701,15 +1703,15 @@ const DotAccordion = ({
|
|
|
1701
1703
|
});
|
|
1702
1704
|
};
|
|
1703
1705
|
|
|
1704
|
-
const rootClassName$
|
|
1706
|
+
const rootClassName$1l = 'dot-action-toolbar';
|
|
1705
1707
|
const StyledToolbar = styled(Toolbar)`
|
|
1706
1708
|
${({
|
|
1707
1709
|
theme
|
|
1708
1710
|
}) => css`
|
|
1709
|
-
&.${rootClassName$
|
|
1711
|
+
&.${rootClassName$1l} {
|
|
1710
1712
|
border-bottom: 1px solid ${theme.palette.figma.border.default};
|
|
1711
1713
|
|
|
1712
|
-
.${rootClassName$
|
|
1714
|
+
.${rootClassName$1o} .MuiInputBase-root {
|
|
1713
1715
|
margin-bottom: 0;
|
|
1714
1716
|
}
|
|
1715
1717
|
}
|
|
@@ -1723,7 +1725,7 @@ const DotActionToolbar = ({
|
|
|
1723
1725
|
'data-testid': dataTestId,
|
|
1724
1726
|
variant = 'dense'
|
|
1725
1727
|
}) => {
|
|
1726
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1728
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1l, className);
|
|
1727
1729
|
return jsx(StyledToolbar, {
|
|
1728
1730
|
"aria-label": ariaLabel,
|
|
1729
1731
|
className: rootClasses,
|
|
@@ -1733,12 +1735,12 @@ const DotActionToolbar = ({
|
|
|
1733
1735
|
});
|
|
1734
1736
|
};
|
|
1735
1737
|
|
|
1736
|
-
const rootClassName$
|
|
1738
|
+
const rootClassName$1k = 'dot-alert-banner';
|
|
1737
1739
|
const StyledAlertBanner = styled(Alert)`
|
|
1738
1740
|
${({
|
|
1739
1741
|
theme
|
|
1740
1742
|
}) => css`
|
|
1741
|
-
&.${rootClassName$
|
|
1743
|
+
&.${rootClassName$1k} {
|
|
1742
1744
|
align-items: center;
|
|
1743
1745
|
box-sizing: border-box;
|
|
1744
1746
|
min-height: 48px;
|
|
@@ -1773,7 +1775,7 @@ const DotAlertBanner = ({
|
|
|
1773
1775
|
ariaLabel,
|
|
1774
1776
|
children,
|
|
1775
1777
|
className,
|
|
1776
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
1778
|
+
'data-pendoid': dataPendoId = rootClassName$1k,
|
|
1777
1779
|
'data-testid': dataTestId,
|
|
1778
1780
|
onClose,
|
|
1779
1781
|
roundedCorners = true,
|
|
@@ -1781,7 +1783,7 @@ const DotAlertBanner = ({
|
|
|
1781
1783
|
textVariant = 'body1',
|
|
1782
1784
|
width
|
|
1783
1785
|
}) => {
|
|
1784
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1786
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1k, severity, className);
|
|
1785
1787
|
/* For simple string use default component, for everything else use 'div' */
|
|
1786
1788
|
const typographyComponent = isString$2(children) ? undefined : 'div';
|
|
1787
1789
|
return jsx(StyledAlertBanner, {
|
|
@@ -1824,12 +1826,12 @@ const DotAppLogo = ({
|
|
|
1824
1826
|
});
|
|
1825
1827
|
};
|
|
1826
1828
|
|
|
1827
|
-
const rootClassName$
|
|
1829
|
+
const rootClassName$1j = 'dot-annotation';
|
|
1828
1830
|
const StyledAnnotation = styled.kbd`
|
|
1829
1831
|
${({
|
|
1830
1832
|
theme
|
|
1831
1833
|
}) => css`
|
|
1832
|
-
&.${rootClassName$
|
|
1834
|
+
&.${rootClassName$1j} {
|
|
1833
1835
|
font-family: inherit;
|
|
1834
1836
|
background-color: ${theme.palette.figma.background.level0.bckgGray};
|
|
1835
1837
|
color: ${theme.palette.figma.typography.disabled};
|
|
@@ -1855,13 +1857,13 @@ const StyledAnnotation = styled.kbd`
|
|
|
1855
1857
|
|
|
1856
1858
|
const DotAnnotation = ({
|
|
1857
1859
|
ariaLabel,
|
|
1858
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
1860
|
+
'data-pendoid': dataPendoId = rootClassName$1j,
|
|
1859
1861
|
'data-testid': dataTestId,
|
|
1860
1862
|
className,
|
|
1861
1863
|
content,
|
|
1862
1864
|
type = 'primary'
|
|
1863
1865
|
}) => {
|
|
1864
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1866
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1j, className, type === 'secondary' ? 'secondary' : '');
|
|
1865
1867
|
return jsx(StyledAnnotation, {
|
|
1866
1868
|
"aria-label": ariaLabel,
|
|
1867
1869
|
className: rootClasses,
|
|
@@ -2506,7 +2508,7 @@ const useDotCoreApiContext = () => {
|
|
|
2506
2508
|
return useContext(DotCoreApiContext);
|
|
2507
2509
|
};
|
|
2508
2510
|
|
|
2509
|
-
const rootClassName$
|
|
2511
|
+
const rootClassName$1i = 'dot-avatar';
|
|
2510
2512
|
const avatarSpacing = {
|
|
2511
2513
|
small: 3,
|
|
2512
2514
|
medium: 5,
|
|
@@ -2516,7 +2518,7 @@ const StyledAvatar = styled(Avatar)`
|
|
|
2516
2518
|
${({
|
|
2517
2519
|
theme
|
|
2518
2520
|
}) => css`
|
|
2519
|
-
&.${rootClassName$
|
|
2521
|
+
&.${rootClassName$1i} {
|
|
2520
2522
|
display: inline-flex;
|
|
2521
2523
|
background-color: ${({
|
|
2522
2524
|
color
|
|
@@ -2629,7 +2631,7 @@ const DotAvatar = ({
|
|
|
2629
2631
|
variant = 'circular',
|
|
2630
2632
|
style
|
|
2631
2633
|
}) => {
|
|
2632
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2634
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1i, className);
|
|
2633
2635
|
const getAvatarColor = () => {
|
|
2634
2636
|
if ((style === null || style === void 0 ? void 0 : style.color) !== undefined) return 'inherit';
|
|
2635
2637
|
if (color) return color;
|
|
@@ -2670,12 +2672,12 @@ const DotAvatar = ({
|
|
|
2670
2672
|
});
|
|
2671
2673
|
};
|
|
2672
2674
|
|
|
2673
|
-
const rootClassName$
|
|
2675
|
+
const rootClassName$1h = 'dot-button';
|
|
2674
2676
|
const StyledButton = styled(Button)`
|
|
2675
2677
|
${({
|
|
2676
2678
|
theme
|
|
2677
2679
|
}) => css`
|
|
2678
|
-
&.${rootClassName$
|
|
2680
|
+
&.${rootClassName$1h} {
|
|
2679
2681
|
background-color: ${theme.palette.figma.primary.normal};
|
|
2680
2682
|
margin: ${theme.spacing(0.5)};
|
|
2681
2683
|
padding: ${theme.spacing(0.75, 2)};
|
|
@@ -2727,7 +2729,7 @@ const StyledButton = styled(Button)`
|
|
|
2727
2729
|
|
|
2728
2730
|
&.Mui-disabled {
|
|
2729
2731
|
background-color: ${theme.palette.figma.disabled.normal};
|
|
2730
|
-
color: ${theme.palette.figma.typography.
|
|
2732
|
+
color: ${theme.palette.figma.typography.disabledLightGray};
|
|
2731
2733
|
|
|
2732
2734
|
&.MuiButton-outlined {
|
|
2733
2735
|
border-color: ${theme.palette.figma.border.defaultButton};
|
|
@@ -2736,6 +2738,10 @@ const StyledButton = styled(Button)`
|
|
|
2736
2738
|
&.MuiButton-text {
|
|
2737
2739
|
background-color: transparent;
|
|
2738
2740
|
}
|
|
2741
|
+
|
|
2742
|
+
.dot-icon {
|
|
2743
|
+
color: ${theme.palette.figma.icon.disabled};
|
|
2744
|
+
}
|
|
2739
2745
|
}
|
|
2740
2746
|
|
|
2741
2747
|
&:not(.MuiButton-sizeLarge):not(.MuiButton-sizeSmall) {
|
|
@@ -2759,7 +2765,7 @@ const DotButton = forwardRef(({
|
|
|
2759
2765
|
autoFocus = false,
|
|
2760
2766
|
children,
|
|
2761
2767
|
className,
|
|
2762
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
2768
|
+
'data-pendoid': dataPendoId = rootClassName$1h,
|
|
2763
2769
|
'data-testid': dataTestId,
|
|
2764
2770
|
disabled = false,
|
|
2765
2771
|
disableInteractive,
|
|
@@ -2776,7 +2782,7 @@ const DotButton = forwardRef(({
|
|
|
2776
2782
|
tooltipPlacement,
|
|
2777
2783
|
type = 'primary'
|
|
2778
2784
|
}, ref) => {
|
|
2779
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2785
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1h, className);
|
|
2780
2786
|
let color;
|
|
2781
2787
|
let variant;
|
|
2782
2788
|
switch (type) {
|
|
@@ -2799,7 +2805,7 @@ const DotButton = forwardRef(({
|
|
|
2799
2805
|
}
|
|
2800
2806
|
return jsx(DotTooltip, {
|
|
2801
2807
|
childrenDisplayStyle: "inline-block",
|
|
2802
|
-
"data-testid": `${dataTestId || rootClassName$
|
|
2808
|
+
"data-testid": `${dataTestId || rootClassName$1h}-tooltip`,
|
|
2803
2809
|
disableInteractive: disableInteractive,
|
|
2804
2810
|
placement: tooltipPlacement,
|
|
2805
2811
|
title: tooltip,
|
|
@@ -2811,7 +2817,7 @@ const DotButton = forwardRef(({
|
|
|
2811
2817
|
},
|
|
2812
2818
|
color: color,
|
|
2813
2819
|
"data-pendoid": dataPendoId,
|
|
2814
|
-
"data-testid": dataTestId || rootClassName$
|
|
2820
|
+
"data-testid": dataTestId || rootClassName$1h,
|
|
2815
2821
|
disableRipple: disableRipple,
|
|
2816
2822
|
disabled: disabled,
|
|
2817
2823
|
endIcon: endIcon,
|
|
@@ -2830,10 +2836,10 @@ const DotButton = forwardRef(({
|
|
|
2830
2836
|
});
|
|
2831
2837
|
});
|
|
2832
2838
|
|
|
2833
|
-
const rootClassName$
|
|
2839
|
+
const rootClassName$1g = 'dot-link';
|
|
2834
2840
|
const StyledLink = styled(Link)`
|
|
2835
2841
|
${() => css`
|
|
2836
|
-
&.${rootClassName$
|
|
2842
|
+
&.${rootClassName$1g} {
|
|
2837
2843
|
cursor: pointer;
|
|
2838
2844
|
|
|
2839
2845
|
&:hover.MuiLink-underlineHover {
|
|
@@ -2849,7 +2855,7 @@ const DotLink = ({
|
|
|
2849
2855
|
children,
|
|
2850
2856
|
className,
|
|
2851
2857
|
color = 'primary',
|
|
2852
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
2858
|
+
'data-pendoid': dataPendoId = rootClassName$1g,
|
|
2853
2859
|
'data-testid': dataTestId,
|
|
2854
2860
|
href,
|
|
2855
2861
|
onClick,
|
|
@@ -2862,7 +2868,7 @@ const DotLink = ({
|
|
|
2862
2868
|
underline = 'always',
|
|
2863
2869
|
variant = 'body1'
|
|
2864
2870
|
}) => {
|
|
2865
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2871
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1g, className);
|
|
2866
2872
|
useEffect(() => {
|
|
2867
2873
|
// Include a console warning if the link is not a string and no ariaLabel is provided
|
|
2868
2874
|
if (!isString$2(children) && !ariaLabel) {
|
|
@@ -2913,7 +2919,7 @@ const CreateUUID = () => {
|
|
|
2913
2919
|
});
|
|
2914
2920
|
};
|
|
2915
2921
|
|
|
2916
|
-
const rootClassName$
|
|
2922
|
+
const rootClassName$1f = 'dot-list';
|
|
2917
2923
|
const listItemRootClass = 'dot-list-item';
|
|
2918
2924
|
const nestedListClassName = 'dot-nested-list';
|
|
2919
2925
|
const nestedDrawerClassName = 'dot-nested-drawer';
|
|
@@ -2921,7 +2927,7 @@ const StyledList = styled(List)`
|
|
|
2921
2927
|
${({
|
|
2922
2928
|
theme
|
|
2923
2929
|
}) => css`
|
|
2924
|
-
&.${rootClassName$
|
|
2930
|
+
&.${rootClassName$1f} {
|
|
2925
2931
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
2926
2932
|
|
|
2927
2933
|
.dot-icon {
|
|
@@ -3014,12 +3020,12 @@ const DotListDivider = ({
|
|
|
3014
3020
|
});
|
|
3015
3021
|
};
|
|
3016
3022
|
|
|
3017
|
-
const rootClassName$
|
|
3023
|
+
const rootClassName$1e = 'dot-progress';
|
|
3018
3024
|
const StyledProgress = styled.div`
|
|
3019
3025
|
${({
|
|
3020
3026
|
theme
|
|
3021
3027
|
}) => css`
|
|
3022
|
-
&.${rootClassName$
|
|
3028
|
+
&.${rootClassName$1e} {
|
|
3023
3029
|
line-height: 0;
|
|
3024
3030
|
|
|
3025
3031
|
.dot-progress-with-label-wrapper {
|
|
@@ -3070,7 +3076,7 @@ const DotProgress = ({
|
|
|
3070
3076
|
value,
|
|
3071
3077
|
variant = 'indeterminate'
|
|
3072
3078
|
}) => {
|
|
3073
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3079
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1e, className);
|
|
3074
3080
|
useEffect(() => {
|
|
3075
3081
|
if (!ariaLabel) {
|
|
3076
3082
|
console.warn('a11y: DotProgress must have an ariaLabel to describe the progress component');
|
|
@@ -3136,13 +3142,13 @@ var variables = /*#__PURE__*/Object.freeze({
|
|
|
3136
3142
|
levelTop: levelTop
|
|
3137
3143
|
});
|
|
3138
3144
|
|
|
3139
|
-
const rootClassName$
|
|
3145
|
+
const rootClassName$1d = 'dot-popper';
|
|
3140
3146
|
const arrowClassName = 'MuiPopper-arrow';
|
|
3141
3147
|
const StyledPopper$1 = styled(Popper)`
|
|
3142
3148
|
${({
|
|
3143
3149
|
theme
|
|
3144
3150
|
}) => css`
|
|
3145
|
-
&.${rootClassName$
|
|
3151
|
+
&.${rootClassName$1d} {
|
|
3146
3152
|
font-family: ${theme.typography.fontFamily};
|
|
3147
3153
|
font-size: ${theme.typography.body1.fontSize}px;
|
|
3148
3154
|
|
|
@@ -3201,7 +3207,7 @@ const StyledPopper$1 = styled(Popper)`
|
|
|
3201
3207
|
}
|
|
3202
3208
|
}
|
|
3203
3209
|
|
|
3204
|
-
&.${rootClassName$
|
|
3210
|
+
&.${rootClassName$1d}, &.${rootClassName$1d} > .dot-popper-paper {
|
|
3205
3211
|
background-color: ${theme.palette.figma.background.level1.white};
|
|
3206
3212
|
}
|
|
3207
3213
|
`}
|
|
@@ -3231,12 +3237,12 @@ const StyledArrow = styled('span')`
|
|
|
3231
3237
|
`;
|
|
3232
3238
|
|
|
3233
3239
|
const flyoutMenuClassName = 'dot-flyout-menu';
|
|
3234
|
-
const rootClassName$
|
|
3240
|
+
const rootClassName$1c = 'dot-menu';
|
|
3235
3241
|
const StyledPopper = styled(Popper)`
|
|
3236
3242
|
${({
|
|
3237
3243
|
theme
|
|
3238
3244
|
}) => css`
|
|
3239
|
-
&.${rootClassName$
|
|
3245
|
+
&.${rootClassName$1d} {
|
|
3240
3246
|
font-family: ${theme.typography.fontFamily};
|
|
3241
3247
|
font-size: ${theme.typography.body1.fontSize}px;
|
|
3242
3248
|
|
|
@@ -3246,7 +3252,7 @@ const StyledPopper = styled(Popper)`
|
|
|
3246
3252
|
}) => $zIndex === undefined ? `z-index: ${levelSecond};` : `z-index: ${$zIndex};`}
|
|
3247
3253
|
}
|
|
3248
3254
|
}
|
|
3249
|
-
&.${rootClassName$
|
|
3255
|
+
&.${rootClassName$1c}, &.${rootClassName$1d} {
|
|
3250
3256
|
.MuiPaper-root:not(:empty) {
|
|
3251
3257
|
border: 1px solid ${theme.palette.layer.n100};
|
|
3252
3258
|
}
|
|
@@ -3326,14 +3332,14 @@ const MENU_ITEM_HEIGHT_NORMAL = 48;
|
|
|
3326
3332
|
const MENU_ITEM_HEIGHT_DENSE = 36;
|
|
3327
3333
|
const DEFAULT_MAX_VISIBLE_ITEMS = 7;
|
|
3328
3334
|
|
|
3329
|
-
const rootClassName$
|
|
3335
|
+
const rootClassName$1b = 'dot-ul';
|
|
3330
3336
|
const listItemClassName$1 = 'dot-li';
|
|
3331
3337
|
const listItemWithSubmenuClassName = 'dot-li-with-submenu';
|
|
3332
3338
|
const StyledMenuList = styled(MenuList)`
|
|
3333
3339
|
${({
|
|
3334
3340
|
theme
|
|
3335
3341
|
}) => css`
|
|
3336
|
-
&.${rootClassName$
|
|
3342
|
+
&.${rootClassName$1b} {
|
|
3337
3343
|
background: ${theme.palette.figma.background.level1.white};
|
|
3338
3344
|
|
|
3339
3345
|
.dot-li {
|
|
@@ -3435,7 +3441,7 @@ const DotMenuList = forwardRef(({
|
|
|
3435
3441
|
onSubMenuCreate,
|
|
3436
3442
|
selectedKey
|
|
3437
3443
|
}, ref) => {
|
|
3438
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3444
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1b, className);
|
|
3439
3445
|
const [activeSubmenu, setActiveSubmenu] = useState(null);
|
|
3440
3446
|
const [subItemAnchorEl, setSubItemAnchorEl] = useState(null);
|
|
3441
3447
|
const openSubmenu = (target, itemKey) => {
|
|
@@ -3547,7 +3553,7 @@ const DotMenu = ({
|
|
|
3547
3553
|
open = false,
|
|
3548
3554
|
selectedKey
|
|
3549
3555
|
}) => {
|
|
3550
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3556
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1c, className, loading ? 'loading' : '');
|
|
3551
3557
|
const isSubmenu = checkIfSubmenu(anchorEl);
|
|
3552
3558
|
const hasSubItems = checkForSubItems(menuItems);
|
|
3553
3559
|
// Timeout object is customizable when Menu component is either submenu
|
|
@@ -3635,12 +3641,12 @@ const DotMenu = ({
|
|
|
3635
3641
|
});
|
|
3636
3642
|
};
|
|
3637
3643
|
|
|
3638
|
-
const rootClassName$
|
|
3644
|
+
const rootClassName$1a = 'dot-drawer';
|
|
3639
3645
|
const StyledDrawer = styled(Drawer)`
|
|
3640
3646
|
${({
|
|
3641
3647
|
theme
|
|
3642
3648
|
}) => css`
|
|
3643
|
-
&.${rootClassName$
|
|
3649
|
+
&.${rootClassName$1a} .MuiBackdrop-root {
|
|
3644
3650
|
background-color: ${theme.palette.figma.overlay.default};
|
|
3645
3651
|
}
|
|
3646
3652
|
|
|
@@ -3659,12 +3665,12 @@ const StyledDrawer = styled(Drawer)`
|
|
|
3659
3665
|
`}
|
|
3660
3666
|
`;
|
|
3661
3667
|
|
|
3662
|
-
const rootClassName$
|
|
3668
|
+
const rootClassName$19 = 'dot-drawer-header';
|
|
3663
3669
|
const StyleDrawerHeader = styled.div`
|
|
3664
3670
|
${({
|
|
3665
3671
|
theme
|
|
3666
3672
|
}) => css`
|
|
3667
|
-
&.${rootClassName$
|
|
3673
|
+
&.${rootClassName$19} {
|
|
3668
3674
|
padding: ${theme.spacing(0, 0, 2)};
|
|
3669
3675
|
display: flex;
|
|
3670
3676
|
align-items: center;
|
|
@@ -3675,13 +3681,13 @@ const StyleDrawerHeader = styled.div`
|
|
|
3675
3681
|
`}
|
|
3676
3682
|
`;
|
|
3677
3683
|
|
|
3678
|
-
const rootClassName$
|
|
3684
|
+
const rootClassName$18 = 'dot-icon-btn';
|
|
3679
3685
|
const StyledIconButton = styled(IconButton)`
|
|
3680
3686
|
${({
|
|
3681
3687
|
theme,
|
|
3682
3688
|
color
|
|
3683
3689
|
}) => css`
|
|
3684
|
-
&.${rootClassName$
|
|
3690
|
+
&.${rootClassName$18} {
|
|
3685
3691
|
${color === 'inherit' ? css`
|
|
3686
3692
|
color: inherit;
|
|
3687
3693
|
` : ''}
|
|
@@ -3740,7 +3746,7 @@ const DotIconButton = ({
|
|
|
3740
3746
|
ariaRole = 'button',
|
|
3741
3747
|
className,
|
|
3742
3748
|
color = 'inherit',
|
|
3743
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
3749
|
+
'data-pendoid': dataPendoId = rootClassName$18,
|
|
3744
3750
|
'data-testid': dataTestId,
|
|
3745
3751
|
disableInteractive,
|
|
3746
3752
|
disableRipple = false,
|
|
@@ -3754,7 +3760,7 @@ const DotIconButton = ({
|
|
|
3754
3760
|
tooltipPlacement
|
|
3755
3761
|
}) => {
|
|
3756
3762
|
const rippleClassName = disableRipple ? 'ripple-disabled' : '';
|
|
3757
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3763
|
+
const rootClasses = useStylesWithRootClass(rootClassName$18, rippleClassName, `shape-${shape}`, className);
|
|
3758
3764
|
return jsx(DotTooltip, {
|
|
3759
3765
|
childrenDisplayStyle: "inline-block",
|
|
3760
3766
|
"data-testid": "icon-button-tooltip",
|
|
@@ -3791,7 +3797,7 @@ const DotDrawerHeader = ({
|
|
|
3791
3797
|
onClose,
|
|
3792
3798
|
variant
|
|
3793
3799
|
}) => {
|
|
3794
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3800
|
+
const rootClasses = useStylesWithRootClass(rootClassName$19, className);
|
|
3795
3801
|
return jsxs(StyleDrawerHeader, {
|
|
3796
3802
|
"aria-label": ariaLabel,
|
|
3797
3803
|
"aria-level": 2,
|
|
@@ -3808,10 +3814,10 @@ const DotDrawerHeader = ({
|
|
|
3808
3814
|
});
|
|
3809
3815
|
};
|
|
3810
3816
|
|
|
3811
|
-
const rootClassName$
|
|
3817
|
+
const rootClassName$17 = 'dot-drawer-body';
|
|
3812
3818
|
const StyleDrawerBody = styled.div`
|
|
3813
3819
|
${() => css`
|
|
3814
|
-
&.${rootClassName$
|
|
3820
|
+
&.${rootClassName$17} {
|
|
3815
3821
|
display: flex;
|
|
3816
3822
|
.dot-drawer-close-button {
|
|
3817
3823
|
align-self: self-start;
|
|
@@ -3832,7 +3838,7 @@ const DotDrawerBody = ({
|
|
|
3832
3838
|
onClose,
|
|
3833
3839
|
variant
|
|
3834
3840
|
}) => {
|
|
3835
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3841
|
+
const rootClasses = useStylesWithRootClass(rootClassName$17, className);
|
|
3836
3842
|
return jsxs(StyleDrawerBody, {
|
|
3837
3843
|
"aria-label": ariaLabel,
|
|
3838
3844
|
className: rootClasses,
|
|
@@ -3847,12 +3853,12 @@ const DotDrawerBody = ({
|
|
|
3847
3853
|
});
|
|
3848
3854
|
};
|
|
3849
3855
|
|
|
3850
|
-
const rootClassName$
|
|
3856
|
+
const rootClassName$16 = 'dot-drawer-footer';
|
|
3851
3857
|
const StyleDrawerFooter = styled.div`
|
|
3852
3858
|
${({
|
|
3853
3859
|
theme
|
|
3854
3860
|
}) => css`
|
|
3855
|
-
&.${rootClassName$
|
|
3861
|
+
&.${rootClassName$16} {
|
|
3856
3862
|
padding: ${theme.spacing(2, 0, 0)};
|
|
3857
3863
|
}
|
|
3858
3864
|
`}
|
|
@@ -3865,7 +3871,7 @@ const DotDrawerFooter = ({
|
|
|
3865
3871
|
className,
|
|
3866
3872
|
'data-testid': dataTestId
|
|
3867
3873
|
}) => {
|
|
3868
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3874
|
+
const rootClasses = useStylesWithRootClass(rootClassName$16, className);
|
|
3869
3875
|
return jsx(StyleDrawerFooter, {
|
|
3870
3876
|
"aria-label": ariaLabel,
|
|
3871
3877
|
className: rootClasses,
|
|
@@ -3881,7 +3887,7 @@ const DotDrawer = ({
|
|
|
3881
3887
|
ariaRole = 'dialog',
|
|
3882
3888
|
className,
|
|
3883
3889
|
children,
|
|
3884
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
3890
|
+
'data-pendoid': dataPendoId = rootClassName$1a,
|
|
3885
3891
|
'data-testid': dataTestId,
|
|
3886
3892
|
drawerBodyProps,
|
|
3887
3893
|
drawerFooterProps,
|
|
@@ -3904,7 +3910,7 @@ const DotDrawer = ({
|
|
|
3904
3910
|
onClose(event);
|
|
3905
3911
|
}
|
|
3906
3912
|
};
|
|
3907
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3913
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1a, className);
|
|
3908
3914
|
const backdropEnabled = variant === 'temporary' && !(ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.hideBackdrop);
|
|
3909
3915
|
const headerExists = !!drawerHeaderProps;
|
|
3910
3916
|
const bodyPendoId = drawerBodyProps ? drawerBodyProps['data-pendoid'] : 'drawer-body';
|
|
@@ -4379,7 +4385,7 @@ const DotList = ({
|
|
|
4379
4385
|
nestedListType = 'expandable',
|
|
4380
4386
|
width = 240
|
|
4381
4387
|
}) => {
|
|
4382
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4388
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1f, className);
|
|
4383
4389
|
const listWidth = typeof width === 'number' ? `${width}px` : width;
|
|
4384
4390
|
const listRef = useRef();
|
|
4385
4391
|
const disableCloseOnClickAway = !nestedListCloseOnClickAway && nestedListType === 'expandable';
|
|
@@ -4479,12 +4485,12 @@ const DotList = ({
|
|
|
4479
4485
|
});
|
|
4480
4486
|
};
|
|
4481
4487
|
|
|
4482
|
-
const rootClassName$
|
|
4488
|
+
const rootClassName$15 = 'dot-copy-button';
|
|
4483
4489
|
const StyledCopyButton = styled.span`
|
|
4484
4490
|
${({
|
|
4485
4491
|
theme
|
|
4486
4492
|
}) => css`
|
|
4487
|
-
&.${rootClassName$
|
|
4493
|
+
&.${rootClassName$15} .copied-to-clipboard {
|
|
4488
4494
|
color: ${theme.palette.figma.success.normal};
|
|
4489
4495
|
|
|
4490
4496
|
&.MuiIcon-fontSizeSmall.button-size-small {
|
|
@@ -4510,7 +4516,7 @@ const DotCopyButton = ({
|
|
|
4510
4516
|
color = 'inherit',
|
|
4511
4517
|
copiedTooltip = 'Copied!',
|
|
4512
4518
|
copyTooltip = 'Copy to clipboard',
|
|
4513
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
4519
|
+
'data-pendoid': dataPendoId = rootClassName$15,
|
|
4514
4520
|
'data-testid': dataTestId = 'dot-copy-button',
|
|
4515
4521
|
disableInteractive,
|
|
4516
4522
|
disabled = false,
|
|
@@ -4559,7 +4565,7 @@ const DotCopyButton = ({
|
|
|
4559
4565
|
return false;
|
|
4560
4566
|
}, [value, showCopiedIcon, disabled, onClick]);
|
|
4561
4567
|
return jsxs(StyledCopyButton, {
|
|
4562
|
-
className: rootClassName$
|
|
4568
|
+
className: rootClassName$15,
|
|
4563
4569
|
"data-testid": dataTestId,
|
|
4564
4570
|
children: [!timedShowCopiedIcon && jsx(DotIconButton, {
|
|
4565
4571
|
ariaLabel: ariaLabel,
|
|
@@ -4665,7 +4671,7 @@ const DotInputText = ({
|
|
|
4665
4671
|
autoFocus,
|
|
4666
4672
|
className,
|
|
4667
4673
|
defaultValue,
|
|
4668
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
4674
|
+
'data-pendoid': dataPendoId = rootClassName$1o,
|
|
4669
4675
|
'data-testid': dataTestId,
|
|
4670
4676
|
disabled = false,
|
|
4671
4677
|
error = false,
|
|
@@ -4713,7 +4719,7 @@ const DotInputText = ({
|
|
|
4713
4719
|
const internalInputRef = useRef(null);
|
|
4714
4720
|
const textFieldInputRef = inputRef || internalInputRef;
|
|
4715
4721
|
const [inputTextState, setInputTextState] = useState(getInitialState(value));
|
|
4716
|
-
const rootStyles = useStylesWithRootClass(rootClassName$
|
|
4722
|
+
const rootStyles = useStylesWithRootClass(rootClassName$1o, hasError, hasWarning, hasSuccess, readOnly && readOnlyClassName$1);
|
|
4717
4723
|
useEffect(() => {
|
|
4718
4724
|
if (value !== inputTextState.inputValue) {
|
|
4719
4725
|
setInputTextState(getInitialState(value, defaultValue));
|
|
@@ -4855,10 +4861,10 @@ const DotInputText = ({
|
|
|
4855
4861
|
});
|
|
4856
4862
|
};
|
|
4857
4863
|
|
|
4858
|
-
const rootClassName$
|
|
4864
|
+
const rootClassName$14 = 'dot-search-input';
|
|
4859
4865
|
const StyledSearchInput = styled.span`
|
|
4860
4866
|
${() => css`
|
|
4861
|
-
&.${rootClassName$
|
|
4867
|
+
&.${rootClassName$14} {
|
|
4862
4868
|
}
|
|
4863
4869
|
`}
|
|
4864
4870
|
`;
|
|
@@ -4875,7 +4881,7 @@ function SearchInput({
|
|
|
4875
4881
|
tooltip = null,
|
|
4876
4882
|
value
|
|
4877
4883
|
}) {
|
|
4878
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4884
|
+
const rootClasses = useStylesWithRootClass(rootClassName$14, className);
|
|
4879
4885
|
const [searchText, setSearchText] = useState(value);
|
|
4880
4886
|
let previousSearchText = '';
|
|
4881
4887
|
const handleChange = useCallback(event => {
|
|
@@ -5131,12 +5137,12 @@ const recentAppInstancesSetter = (latestInstance, maxRecentItems
|
|
|
5131
5137
|
};
|
|
5132
5138
|
};
|
|
5133
5139
|
|
|
5134
|
-
const rootClassName$
|
|
5140
|
+
const rootClassName$13 = 'dot-app-switcher';
|
|
5135
5141
|
const StyledAppSwitcher = styled(DotDrawer)`
|
|
5136
5142
|
${({
|
|
5137
5143
|
theme
|
|
5138
5144
|
}) => css`
|
|
5139
|
-
&.${rootClassName$
|
|
5145
|
+
&.${rootClassName$13} {
|
|
5140
5146
|
.dot-drawer-paper {
|
|
5141
5147
|
padding: 0;
|
|
5142
5148
|
width: 382px;
|
|
@@ -5246,7 +5252,7 @@ const DotAppSwitcherView = ({
|
|
|
5246
5252
|
if (dotCoreApiContext !== null) {
|
|
5247
5253
|
setSelectedAppType = dotCoreApiContext.setSelectedAppSwitcherAppType;
|
|
5248
5254
|
}
|
|
5249
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5255
|
+
const rootClasses = useStylesWithRootClass(rootClassName$13, className);
|
|
5250
5256
|
const [appTypeMap, setAppTypeMap] = useState();
|
|
5251
5257
|
const [appTypeLabels, setAppTypeLabels] = useState();
|
|
5252
5258
|
const [appTypeMenuItems, setAppTypeMenuItems] = useState();
|
|
@@ -5624,12 +5630,12 @@ var SvgLogoDigitalAiWhite = function SvgLogoDigitalAiWhite(_ref, ref) {
|
|
|
5624
5630
|
};
|
|
5625
5631
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgLogoDigitalAiWhite);
|
|
5626
5632
|
|
|
5627
|
-
const rootClassName$
|
|
5633
|
+
const rootClassName$12 = 'dot-sidebar';
|
|
5628
5634
|
const StyledSidebar = styled.aside`
|
|
5629
5635
|
${({
|
|
5630
5636
|
theme
|
|
5631
5637
|
}) => css`
|
|
5632
|
-
&.${rootClassName$
|
|
5638
|
+
&.${rootClassName$12} {
|
|
5633
5639
|
align-items: stretch;
|
|
5634
5640
|
background: ${theme.palette.figma.background.level1.white};
|
|
5635
5641
|
border-width: 0 1px;
|
|
@@ -5923,10 +5929,10 @@ const StyledSidebar = styled.aside`
|
|
|
5923
5929
|
`}
|
|
5924
5930
|
`;
|
|
5925
5931
|
|
|
5926
|
-
const rootClassName$
|
|
5932
|
+
const rootClassName$11 = 'dot-truncate-with-tooltip';
|
|
5927
5933
|
const StyledTruncateWithTooltip = styled(Tooltip)`
|
|
5928
5934
|
${() => css`
|
|
5929
|
-
&.${rootClassName$
|
|
5935
|
+
&.${rootClassName$11} {
|
|
5930
5936
|
display: block;
|
|
5931
5937
|
overflow: hidden;
|
|
5932
5938
|
white-space: nowrap;
|
|
@@ -5957,7 +5963,7 @@ const DotTruncateWithTooltip = ({
|
|
|
5957
5963
|
label,
|
|
5958
5964
|
width
|
|
5959
5965
|
}) => {
|
|
5960
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5966
|
+
const rootClasses = useStylesWithRootClass(rootClassName$11, className, charactersLimit ? 'dot-characters-limit' : '');
|
|
5961
5967
|
return jsx(StyledTruncateWithTooltip, {
|
|
5962
5968
|
"aria-label": ariaLabel,
|
|
5963
5969
|
arrow: arrow,
|
|
@@ -6071,7 +6077,7 @@ const DotSidebar = ({
|
|
|
6071
6077
|
keys: collapseKeys
|
|
6072
6078
|
}, toggleNavCollapseState, [isOpen, collapsable]);
|
|
6073
6079
|
const sidebarClasses = useStylesWithRootClass('side-nav', openClass);
|
|
6074
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6080
|
+
const rootClasses = useStylesWithRootClass(rootClassName$12, openClass, className);
|
|
6075
6081
|
return jsxs(StyledSidebar, {
|
|
6076
6082
|
"aria-label": ariaLabel,
|
|
6077
6083
|
className: rootClasses,
|
|
@@ -6146,12 +6152,12 @@ const DotSidebar = ({
|
|
|
6146
6152
|
});
|
|
6147
6153
|
};
|
|
6148
6154
|
|
|
6149
|
-
const rootClassName
|
|
6155
|
+
const rootClassName$10 = 'dot-badge';
|
|
6150
6156
|
const StyledBadge = styled(Badge)`
|
|
6151
6157
|
${({
|
|
6152
6158
|
theme
|
|
6153
6159
|
}) => css`
|
|
6154
|
-
&.${rootClassName
|
|
6160
|
+
&.${rootClassName$10} {
|
|
6155
6161
|
color: ${theme.palette.figma.typography.black};
|
|
6156
6162
|
word-break: normal;
|
|
6157
6163
|
|
|
@@ -6186,7 +6192,7 @@ const DotBadge = ({
|
|
|
6186
6192
|
overlap,
|
|
6187
6193
|
variant = 'dot'
|
|
6188
6194
|
}) => {
|
|
6189
|
-
const rootClasses = useStylesWithRootClass(rootClassName
|
|
6195
|
+
const rootClasses = useStylesWithRootClass(rootClassName$10, className);
|
|
6190
6196
|
return jsx(StyledBadge, {
|
|
6191
6197
|
"$badgeColor": badgeColor,
|
|
6192
6198
|
anchorOrigin: {
|
|
@@ -6208,7 +6214,7 @@ const DotBadge = ({
|
|
|
6208
6214
|
});
|
|
6209
6215
|
};
|
|
6210
6216
|
|
|
6211
|
-
const rootClassName
|
|
6217
|
+
const rootClassName$$ = 'dot-app-toolbar';
|
|
6212
6218
|
const denseClassName = 'dense';
|
|
6213
6219
|
const StyledMainMenu = styled(DotDrawer)`
|
|
6214
6220
|
${({
|
|
@@ -6248,7 +6254,7 @@ const StyledAppToolbar = styled.header`
|
|
|
6248
6254
|
${({
|
|
6249
6255
|
theme
|
|
6250
6256
|
}) => css`
|
|
6251
|
-
&.${rootClassName
|
|
6257
|
+
&.${rootClassName$$} {
|
|
6252
6258
|
align-items: center;
|
|
6253
6259
|
background: ${theme.palette.figma.appToolbar.background};
|
|
6254
6260
|
border-bottom: 4px solid ${theme.palette.figma.border.default};
|
|
@@ -6377,7 +6383,7 @@ const DotAppToolbar = ({
|
|
|
6377
6383
|
const displayAppLogo = appLogo || appLogoSmall;
|
|
6378
6384
|
const mainMenuRef = useRef(null);
|
|
6379
6385
|
const denseClass = dense ? denseClassName : '';
|
|
6380
|
-
const rootClasses = useStylesWithRootClass(rootClassName
|
|
6386
|
+
const rootClasses = useStylesWithRootClass(rootClassName$$, className, denseClass, showMainMenu ? '' : 'without-menu-icon');
|
|
6381
6387
|
const mainMenuClasses = useStylesWithRootClass('dot-main-menu', denseClass, menuOpen ? 'open' : '');
|
|
6382
6388
|
const targetBreakpoint = useMediaQuery(theme => theme.breakpoints.up('lg'));
|
|
6383
6389
|
useEffect(() => {
|
|
@@ -6529,12 +6535,12 @@ const DotAppToolbar = ({
|
|
|
6529
6535
|
}) : appToolbar;
|
|
6530
6536
|
};
|
|
6531
6537
|
|
|
6532
|
-
const rootClassName$
|
|
6538
|
+
const rootClassName$_ = 'dot-chip';
|
|
6533
6539
|
const StyledChip = styled(Chip)`
|
|
6534
6540
|
${({
|
|
6535
6541
|
theme
|
|
6536
6542
|
}) => css`
|
|
6537
|
-
&.${rootClassName$
|
|
6543
|
+
&.${rootClassName$_} {
|
|
6538
6544
|
background: ${theme.palette.figma.neutral.normal};
|
|
6539
6545
|
border-color: ${theme.palette.figma.border.darker};
|
|
6540
6546
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -6640,7 +6646,7 @@ const DotChip = ({
|
|
|
6640
6646
|
charactersLimit = DEFAULT_CHARACTERS_LIMIT,
|
|
6641
6647
|
children,
|
|
6642
6648
|
className,
|
|
6643
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
6649
|
+
'data-pendoid': dataPendoId = rootClassName$_,
|
|
6644
6650
|
'data-testid': dataTestId,
|
|
6645
6651
|
disabled = false,
|
|
6646
6652
|
error = false,
|
|
@@ -6654,7 +6660,7 @@ const DotChip = ({
|
|
|
6654
6660
|
tooltipProps
|
|
6655
6661
|
}) => {
|
|
6656
6662
|
const errorClass = error ? 'Mui-error' : '';
|
|
6657
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6663
|
+
const rootClasses = useStylesWithRootClass(rootClassName$_, className, errorClass);
|
|
6658
6664
|
const isTruncated = charactersLimit > 0 && children.length > charactersLimit;
|
|
6659
6665
|
const getChipLabelWithTooltip = label => jsx(DotTooltip, Object.assign({}, tooltipProps, {
|
|
6660
6666
|
hoverVisibility: "always",
|
|
@@ -6690,14 +6696,14 @@ const DotChip = ({
|
|
|
6690
6696
|
});
|
|
6691
6697
|
};
|
|
6692
6698
|
|
|
6693
|
-
const rootClassName$
|
|
6699
|
+
const rootClassName$Z = 'dot-autocomplete';
|
|
6694
6700
|
const inputRootClassName = 'dot-input-root';
|
|
6695
6701
|
const inputMediumClassName = 'dot-input-medium';
|
|
6696
6702
|
const StyledAutocomplete = styled(Autocomplete)`
|
|
6697
6703
|
${({
|
|
6698
6704
|
theme
|
|
6699
6705
|
}) => css`
|
|
6700
|
-
&.${rootClassName$
|
|
6706
|
+
&.${rootClassName$Z} {
|
|
6701
6707
|
&.${inputMediumClassName} .dot-text-field .${inputRootClassName} {
|
|
6702
6708
|
height: 56px;
|
|
6703
6709
|
padding-left: ${theme.spacing(2)};
|
|
@@ -6790,8 +6796,8 @@ const isEmptyValue = value => {
|
|
|
6790
6796
|
return !value;
|
|
6791
6797
|
}
|
|
6792
6798
|
};
|
|
6793
|
-
const getRootClassNames = (className, size) => useStylesWithRootClass(rootClassName$
|
|
6794
|
-
const getTextFieldRootClassNames = (textFieldWarningClassName, isReadOnly) => useStylesWithRootClass(rootClassName$
|
|
6799
|
+
const getRootClassNames = (className, size) => useStylesWithRootClass(rootClassName$Z, size === 'medium' && inputMediumClassName, className);
|
|
6800
|
+
const getTextFieldRootClassNames = (textFieldWarningClassName, isReadOnly) => useStylesWithRootClass(rootClassName$1o, isReadOnly && readOnlyClassName$1, textFieldWarningClassName);
|
|
6795
6801
|
const getInputRootClassNames = isDense => useStylesWithRootClass(inputRootClassName, !isDense && inputMediumClassName);
|
|
6796
6802
|
const getDefaultAutoCompleteValue = (hasMultiple, defaultValue) => hasMultiple && isString$2(defaultValue) ? [defaultValue] : defaultValue;
|
|
6797
6803
|
const getAutoCompleteGroupBy = group => group ? option => option.group : undefined;
|
|
@@ -6807,7 +6813,7 @@ const DotAutoComplete = ({
|
|
|
6807
6813
|
autoFocus,
|
|
6808
6814
|
autoHighlight,
|
|
6809
6815
|
className,
|
|
6810
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
6816
|
+
'data-pendoid': dataPendoId = rootClassName$Z,
|
|
6811
6817
|
'data-testid': dataTestId,
|
|
6812
6818
|
defaultValue,
|
|
6813
6819
|
dense = true,
|
|
@@ -6872,7 +6878,7 @@ const DotAutoComplete = ({
|
|
|
6872
6878
|
const rootClasses = getRootClassNames(className, size);
|
|
6873
6879
|
const textFieldRootClasses = getTextFieldRootClassNames(textFieldWarningClassName, readOnly);
|
|
6874
6880
|
const inputRootClasses = getInputRootClassNames(dense);
|
|
6875
|
-
const popperClasses = useStylesWithRootClass(rootClassName$
|
|
6881
|
+
const popperClasses = useStylesWithRootClass(rootClassName$1d, popperClassName);
|
|
6876
6882
|
let highlightedOption = null;
|
|
6877
6883
|
let textFieldInput;
|
|
6878
6884
|
const textFieldRef = element => {
|
|
@@ -7173,10 +7179,10 @@ const DotAutoComplete = ({
|
|
|
7173
7179
|
});
|
|
7174
7180
|
};
|
|
7175
7181
|
|
|
7176
|
-
const rootClassName$
|
|
7182
|
+
const rootClassName$Y = 'dot-avatar-group';
|
|
7177
7183
|
const StyledAvatarGroup = styled(AvatarGroup)`
|
|
7178
7184
|
${() => css`
|
|
7179
|
-
&.${rootClassName$
|
|
7185
|
+
&.${rootClassName$Y} {
|
|
7180
7186
|
justify-content: flex-end;
|
|
7181
7187
|
|
|
7182
7188
|
.MuiAvatar-root {
|
|
@@ -7195,7 +7201,7 @@ const DotAvatarGroup = ({
|
|
|
7195
7201
|
max = 3,
|
|
7196
7202
|
spacing = 'medium'
|
|
7197
7203
|
}) => {
|
|
7198
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7204
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Y, className);
|
|
7199
7205
|
return jsx(StyledAvatarGroup, {
|
|
7200
7206
|
"aria-label": ariaLabel,
|
|
7201
7207
|
classes: {
|
|
@@ -7210,14 +7216,14 @@ const DotAvatarGroup = ({
|
|
|
7210
7216
|
});
|
|
7211
7217
|
};
|
|
7212
7218
|
|
|
7213
|
-
const rootClassName$
|
|
7219
|
+
const rootClassName$X = 'dot-avatar-with-details';
|
|
7214
7220
|
const StyledAvatarWithDetails = styled.div`
|
|
7215
7221
|
${({
|
|
7216
7222
|
theme,
|
|
7217
7223
|
$maxSubtitleLines,
|
|
7218
7224
|
$maxTitleLines
|
|
7219
7225
|
}) => css`
|
|
7220
|
-
&.${rootClassName$
|
|
7226
|
+
&.${rootClassName$X} {
|
|
7221
7227
|
gap: ${theme.spacing(2)};
|
|
7222
7228
|
display: flex;
|
|
7223
7229
|
align-items: center;
|
|
@@ -7253,12 +7259,12 @@ const DotAvatarWithDetails = ({
|
|
|
7253
7259
|
ariaLabel,
|
|
7254
7260
|
avatar,
|
|
7255
7261
|
className,
|
|
7256
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
7262
|
+
'data-pendoid': dataPendoId = rootClassName$X,
|
|
7257
7263
|
'data-testid': dataTestId,
|
|
7258
7264
|
subtitle,
|
|
7259
7265
|
title
|
|
7260
7266
|
}) => {
|
|
7261
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7267
|
+
const rootClasses = useStylesWithRootClass(rootClassName$X, className);
|
|
7262
7268
|
const titleClasses = useStylesWithRootClass('dot-avatar-with-details-title', title.maxLines ? 'max-lines-clamp' : '');
|
|
7263
7269
|
const subtitleClasses = useStylesWithRootClass('dot-avatar-with-details-subtitle', (subtitle === null || subtitle === void 0 ? void 0 : subtitle.maxLines) ? 'max-lines-clamp' : '');
|
|
7264
7270
|
return jsxs(StyledAvatarWithDetails, {
|
|
@@ -7293,13 +7299,13 @@ const DotAvatarWithDetails = ({
|
|
|
7293
7299
|
});
|
|
7294
7300
|
};
|
|
7295
7301
|
|
|
7296
|
-
const rootClassName$
|
|
7302
|
+
const rootClassName$W = 'dot-breadcrumbs';
|
|
7297
7303
|
const breadcrumbsWrapperClass = 'dot-breadcrumbs-wrapper';
|
|
7298
7304
|
const StyledBreadcrumbsWrapper = styled.div`
|
|
7299
7305
|
${({
|
|
7300
7306
|
theme
|
|
7301
7307
|
}) => css`
|
|
7302
|
-
&.${rootClassName$
|
|
7308
|
+
&.${rootClassName$W} {
|
|
7303
7309
|
overflow: hidden;
|
|
7304
7310
|
|
|
7305
7311
|
.dot-breadcrumbs-menu {
|
|
@@ -7319,7 +7325,7 @@ const StyledBreadcrumbs = styled(Breadcrumbs)`
|
|
|
7319
7325
|
${({
|
|
7320
7326
|
theme
|
|
7321
7327
|
}) => css`
|
|
7322
|
-
&.${rootClassName$
|
|
7328
|
+
&.${rootClassName$W} {
|
|
7323
7329
|
margin-bottom: 0;
|
|
7324
7330
|
|
|
7325
7331
|
.MuiBreadcrumbs-ol {
|
|
@@ -7647,7 +7653,7 @@ const DotBreadcrumbs = ({
|
|
|
7647
7653
|
children: [jsx(StyledBreadcrumbs, {
|
|
7648
7654
|
"aria-label": "breadcrumb",
|
|
7649
7655
|
classes: {
|
|
7650
|
-
root: rootClassName$
|
|
7656
|
+
root: rootClassName$W,
|
|
7651
7657
|
ol: 'dot-ol',
|
|
7652
7658
|
li: 'dot-li'
|
|
7653
7659
|
},
|
|
@@ -7678,14 +7684,14 @@ const DotBreadcrumbs = ({
|
|
|
7678
7684
|
});
|
|
7679
7685
|
};
|
|
7680
7686
|
|
|
7681
|
-
const rootClassName$
|
|
7687
|
+
const rootClassName$V = 'dot-button-toggle';
|
|
7682
7688
|
// TODO: need to update ripple color
|
|
7683
7689
|
// https://github.com/mui/material-ui/issues/28543
|
|
7684
7690
|
const StyledToggleButtonGroup = styled(ToggleButtonGroup)`
|
|
7685
7691
|
${({
|
|
7686
7692
|
theme
|
|
7687
7693
|
}) => css`
|
|
7688
|
-
&.${rootClassName$
|
|
7694
|
+
&.${rootClassName$V} {
|
|
7689
7695
|
button:not(.MuiToggleButton-sizeLarge):not(.MuiToggleButton-sizeSmall) {
|
|
7690
7696
|
/* Override height for medium size */
|
|
7691
7697
|
height: ${theme.spacing(5)};
|
|
@@ -7771,13 +7777,18 @@ const StyledToggleButtonGroup = styled(ToggleButtonGroup)`
|
|
|
7771
7777
|
button.MuiButtonBase-root.MuiToggleButton-root {
|
|
7772
7778
|
&:not(.Mui-disabled):not(.Mui-selected) {
|
|
7773
7779
|
background-color: ${theme.palette.figma.neutral.normal};
|
|
7780
|
+
|
|
7781
|
+
.dot-typography,
|
|
7782
|
+
.dot-icon {
|
|
7783
|
+
color: ${theme.palette.figma.typography.gray};
|
|
7784
|
+
}
|
|
7774
7785
|
}
|
|
7775
7786
|
|
|
7776
7787
|
&.Mui-disabled {
|
|
7777
7788
|
background-color: ${theme.palette.figma.disabled.normal};
|
|
7778
7789
|
|
|
7779
7790
|
.dot-typography {
|
|
7780
|
-
color: ${theme.palette.figma.typography.
|
|
7791
|
+
color: ${theme.palette.figma.typography.disabledLightGray};
|
|
7781
7792
|
}
|
|
7782
7793
|
.dot-icon {
|
|
7783
7794
|
color: ${theme.palette.figma.icon.disabled};
|
|
@@ -7786,6 +7797,8 @@ const StyledToggleButtonGroup = styled(ToggleButtonGroup)`
|
|
|
7786
7797
|
|
|
7787
7798
|
&.Mui-selected {
|
|
7788
7799
|
background-color: ${theme.palette.figma.toggleTabs.bckg};
|
|
7800
|
+
border: 1px solid ${theme.palette.figma.border.inputActive};
|
|
7801
|
+
z-index: ${levelFirst};
|
|
7789
7802
|
|
|
7790
7803
|
.dot-icon,
|
|
7791
7804
|
.dot-typography {
|
|
@@ -7801,7 +7814,7 @@ const DotButtonToggle = ({
|
|
|
7801
7814
|
buttonOptions,
|
|
7802
7815
|
className,
|
|
7803
7816
|
color,
|
|
7804
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
7817
|
+
'data-pendoid': dataPendoId = rootClassName$V,
|
|
7805
7818
|
'data-testid': dataTestId = 'dot-toggle',
|
|
7806
7819
|
disableFocusRipple = false,
|
|
7807
7820
|
disableRipple = false,
|
|
@@ -7811,7 +7824,7 @@ const DotButtonToggle = ({
|
|
|
7811
7824
|
size = 'medium',
|
|
7812
7825
|
value
|
|
7813
7826
|
}) => {
|
|
7814
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7827
|
+
const rootClasses = useStylesWithRootClass(rootClassName$V, className);
|
|
7815
7828
|
const renderToggleButton = ({
|
|
7816
7829
|
ariaLabel: optionAriaLabel,
|
|
7817
7830
|
badgeContent: optionBadgeContent,
|
|
@@ -7896,12 +7909,12 @@ const TooltipToggleButton = forwardRef((_a, ref) => {
|
|
|
7896
7909
|
}));
|
|
7897
7910
|
});
|
|
7898
7911
|
|
|
7899
|
-
const rootClassName$
|
|
7912
|
+
const rootClassName$U = 'dot-card';
|
|
7900
7913
|
const StyledCard = styled(Card)`
|
|
7901
7914
|
${({
|
|
7902
7915
|
theme
|
|
7903
7916
|
}) => css`
|
|
7904
|
-
&.${rootClassName$
|
|
7917
|
+
&.${rootClassName$U} {
|
|
7905
7918
|
background-color: ${theme.palette.figma.background.level1.white};
|
|
7906
7919
|
}
|
|
7907
7920
|
`}
|
|
@@ -7913,7 +7926,7 @@ const DotCard = ({
|
|
|
7913
7926
|
className,
|
|
7914
7927
|
'data-testid': dataTestId
|
|
7915
7928
|
}) => {
|
|
7916
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7929
|
+
const rootClasses = useStylesWithRootClass(rootClassName$U, className);
|
|
7917
7930
|
return jsx(StyledCard, {
|
|
7918
7931
|
"aria-label": ariaLabel,
|
|
7919
7932
|
classes: {
|
|
@@ -7942,12 +7955,12 @@ const DotCardContent = ({
|
|
|
7942
7955
|
});
|
|
7943
7956
|
};
|
|
7944
7957
|
|
|
7945
|
-
const rootClassName$
|
|
7958
|
+
const rootClassName$T = 'dot-card-footer';
|
|
7946
7959
|
const StyledDiv = styled.div`
|
|
7947
7960
|
${({
|
|
7948
7961
|
theme
|
|
7949
7962
|
}) => css`
|
|
7950
|
-
&.${rootClassName$
|
|
7963
|
+
&.${rootClassName$T} {
|
|
7951
7964
|
padding: ${theme.spacing(2)};
|
|
7952
7965
|
}
|
|
7953
7966
|
`}
|
|
@@ -7959,7 +7972,7 @@ const DotCardFooter = ({
|
|
|
7959
7972
|
className,
|
|
7960
7973
|
'data-testid': dataTestId
|
|
7961
7974
|
}) => {
|
|
7962
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7975
|
+
const rootClasses = useStylesWithRootClass(rootClassName$T, className);
|
|
7963
7976
|
return jsx(StyledDiv, {
|
|
7964
7977
|
"aria-label": ariaLabel,
|
|
7965
7978
|
className: rootClasses,
|
|
@@ -7968,13 +7981,13 @@ const DotCardFooter = ({
|
|
|
7968
7981
|
});
|
|
7969
7982
|
};
|
|
7970
7983
|
|
|
7971
|
-
const rootClassName$
|
|
7984
|
+
const rootClassName$S = 'dot-card-header';
|
|
7972
7985
|
const StyledCardHeader = styled(CardHeader)`
|
|
7973
7986
|
${({
|
|
7974
7987
|
theme,
|
|
7975
7988
|
$maxTitleLines
|
|
7976
7989
|
}) => css`
|
|
7977
|
-
&.${rootClassName$
|
|
7990
|
+
&.${rootClassName$S} {
|
|
7978
7991
|
.MuiCardHeader-content {
|
|
7979
7992
|
overflow-x: hidden;
|
|
7980
7993
|
|
|
@@ -8006,7 +8019,7 @@ const DotCardHeader = ({
|
|
|
8006
8019
|
titleMaxLines = 1,
|
|
8007
8020
|
titleSize = 'large'
|
|
8008
8021
|
}) => {
|
|
8009
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8022
|
+
const rootClasses = useStylesWithRootClass(rootClassName$S, className);
|
|
8010
8023
|
const nonSmallTitleSize = titleSize === 'medium' ? 'h3' : 'h2';
|
|
8011
8024
|
const titleVariant = titleSize === 'small' ? 'h4' : nonSmallTitleSize;
|
|
8012
8025
|
const subheaderVariant = subheaderSize === 'small' ? 'body2' : 'body1';
|
|
@@ -8042,9 +8055,9 @@ const DotCardHeader = ({
|
|
|
8042
8055
|
});
|
|
8043
8056
|
};
|
|
8044
8057
|
|
|
8045
|
-
const rootClassName$
|
|
8058
|
+
const rootClassName$R = 'dot-form-control-label';
|
|
8046
8059
|
const StyledFormControlLabel = styled(FormControlLabel)`
|
|
8047
|
-
&.${rootClassName$
|
|
8060
|
+
&.${rootClassName$R} {
|
|
8048
8061
|
.MuiFormControlLabel-label {
|
|
8049
8062
|
margin-bottom: 0;
|
|
8050
8063
|
padding: 0 0 0 4px;
|
|
@@ -8067,12 +8080,12 @@ const StyledFormControlLabel = styled(FormControlLabel)`
|
|
|
8067
8080
|
}
|
|
8068
8081
|
`;
|
|
8069
8082
|
|
|
8070
|
-
const rootClassName$
|
|
8083
|
+
const rootClassName$Q = 'dot-checkbox';
|
|
8071
8084
|
const StyledCheckbox = styled(Checkbox)`
|
|
8072
8085
|
${({
|
|
8073
8086
|
theme
|
|
8074
8087
|
}) => css`
|
|
8075
|
-
&.${rootClassName$
|
|
8088
|
+
&.${rootClassName$Q} {
|
|
8076
8089
|
padding: ${theme.spacing(1)};
|
|
8077
8090
|
|
|
8078
8091
|
&.MuiCheckbox-indeterminate {
|
|
@@ -8091,7 +8104,7 @@ function DotCheckbox({
|
|
|
8091
8104
|
ariaLabelledby,
|
|
8092
8105
|
checked,
|
|
8093
8106
|
className,
|
|
8094
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
8107
|
+
'data-pendoid': dataPendoId = rootClassName$R,
|
|
8095
8108
|
'data-testid': dataTestId,
|
|
8096
8109
|
disabled,
|
|
8097
8110
|
disableRipple,
|
|
@@ -8106,14 +8119,14 @@ function DotCheckbox({
|
|
|
8106
8119
|
size = 'medium',
|
|
8107
8120
|
value
|
|
8108
8121
|
}) {
|
|
8109
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8122
|
+
const rootClasses = useStylesWithRootClass(rootClassName$R, className);
|
|
8110
8123
|
const handleChange = event => {
|
|
8111
8124
|
onChange && onChange(event, event.target.value);
|
|
8112
8125
|
};
|
|
8113
8126
|
const checkboxControl = jsx(StyledCheckbox, {
|
|
8114
8127
|
checked: checked,
|
|
8115
8128
|
classes: {
|
|
8116
|
-
root: rootClassName$
|
|
8129
|
+
root: rootClassName$Q
|
|
8117
8130
|
},
|
|
8118
8131
|
color: "primary",
|
|
8119
8132
|
"data-pendoid": dataPendoId,
|
|
@@ -8142,13 +8155,13 @@ function DotCheckbox({
|
|
|
8142
8155
|
});
|
|
8143
8156
|
}
|
|
8144
8157
|
|
|
8145
|
-
const rootClassName$
|
|
8158
|
+
const rootClassName$P = 'dot-form-group';
|
|
8146
8159
|
const groupLabelClassName = 'dot-form-group-label';
|
|
8147
8160
|
const startAdornmentClassName = 'dot-start-adornment';
|
|
8148
8161
|
const endAdornmentClassName = 'dot-end-adornment';
|
|
8149
8162
|
const placementClassName = 'dot-';
|
|
8150
8163
|
const StyledFormControl = styled(FormControl)`
|
|
8151
|
-
&.${rootClassName$
|
|
8164
|
+
&.${rootClassName$P} {
|
|
8152
8165
|
.MuiFormLabel-root {
|
|
8153
8166
|
width: 100%;
|
|
8154
8167
|
line-height: 24px;
|
|
@@ -8179,7 +8192,7 @@ const StyledFormControl = styled(FormControl)`
|
|
|
8179
8192
|
}
|
|
8180
8193
|
`;
|
|
8181
8194
|
|
|
8182
|
-
const rootClassName$
|
|
8195
|
+
const rootClassName$O = 'dot-checkbox-group';
|
|
8183
8196
|
const wrapperClassName$1 = 'dot-checkbox-group-wrapper';
|
|
8184
8197
|
const checkboxListClassName = 'dot-checkbox-list';
|
|
8185
8198
|
const checkboxListItemClassName = 'dot-checkbox-list-item';
|
|
@@ -8188,7 +8201,7 @@ const StyledCheckboxGroup = styled.div`
|
|
|
8188
8201
|
theme
|
|
8189
8202
|
}) => css`{
|
|
8190
8203
|
&.${wrapperClassName$1} {
|
|
8191
|
-
.${rootClassName$
|
|
8204
|
+
.${rootClassName$O} {
|
|
8192
8205
|
width: 100%;
|
|
8193
8206
|
}
|
|
8194
8207
|
|
|
@@ -8215,7 +8228,7 @@ const StyledCheckboxGroup = styled.div`
|
|
|
8215
8228
|
margin-top: 0;
|
|
8216
8229
|
padding-left: ${theme.spacing(2.5)};
|
|
8217
8230
|
|
|
8218
|
-
.${rootClassName$
|
|
8231
|
+
.${rootClassName$R} {
|
|
8219
8232
|
margin: 0;
|
|
8220
8233
|
}
|
|
8221
8234
|
}
|
|
@@ -8223,13 +8236,13 @@ const StyledCheckboxGroup = styled.div`
|
|
|
8223
8236
|
`}
|
|
8224
8237
|
`;
|
|
8225
8238
|
|
|
8226
|
-
const rootClassName$
|
|
8239
|
+
const rootClassName$N = 'dot-form-group';
|
|
8227
8240
|
const StyledFormGroup = styled(FormGroup)`
|
|
8228
8241
|
${({
|
|
8229
8242
|
theme,
|
|
8230
8243
|
row
|
|
8231
8244
|
}) => css`
|
|
8232
|
-
&.${rootClassName$
|
|
8245
|
+
&.${rootClassName$N} > * {
|
|
8233
8246
|
margin: ${row ? `${theme.spacing(0.5)}` : 0};
|
|
8234
8247
|
}
|
|
8235
8248
|
`}
|
|
@@ -8242,7 +8255,7 @@ function DotFormGroup({
|
|
|
8242
8255
|
'data-testid': dataTestId,
|
|
8243
8256
|
row
|
|
8244
8257
|
}) {
|
|
8245
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8258
|
+
const rootClasses = useStylesWithRootClass(rootClassName$P, className);
|
|
8246
8259
|
return jsx(StyledFormGroup, {
|
|
8247
8260
|
"aria-label": ariaLabel,
|
|
8248
8261
|
classes: {
|
|
@@ -8281,7 +8294,7 @@ function DotCheckboxGroup({
|
|
|
8281
8294
|
size = 'medium'
|
|
8282
8295
|
}) {
|
|
8283
8296
|
const placement = `${placementClassName}${labelPlacement}`;
|
|
8284
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8297
|
+
const rootClasses = useStylesWithRootClass(rootClassName$P, rootClassName$O, className, placement);
|
|
8285
8298
|
const [selectedOptions, setSelectedOptions] = useState(defaultValues);
|
|
8286
8299
|
const [allChecked, setAllChecked] = useState(false);
|
|
8287
8300
|
/* This will ensure that state can be updated from the outside */
|
|
@@ -8366,12 +8379,12 @@ function DotCheckboxGroup({
|
|
|
8366
8379
|
});
|
|
8367
8380
|
}
|
|
8368
8381
|
|
|
8369
|
-
const rootClassName$
|
|
8382
|
+
const rootClassName$M = 'chip-list';
|
|
8370
8383
|
const StyledChipList = styled.div`
|
|
8371
8384
|
${({
|
|
8372
8385
|
theme
|
|
8373
8386
|
}) => css`
|
|
8374
|
-
&.${rootClassName$
|
|
8387
|
+
&.${rootClassName$M} {
|
|
8375
8388
|
display: flex;
|
|
8376
8389
|
gap: ${theme.spacing(1)};
|
|
8377
8390
|
}
|
|
@@ -8446,19 +8459,19 @@ function DotChipList({
|
|
|
8446
8459
|
setChips(itemElements);
|
|
8447
8460
|
}, [items, maxChars]);
|
|
8448
8461
|
return jsx(StyledChipList, {
|
|
8449
|
-
className: rootClassName$
|
|
8462
|
+
className: rootClassName$M,
|
|
8450
8463
|
"data-testid": dataTestId,
|
|
8451
8464
|
style: style,
|
|
8452
8465
|
children: chips
|
|
8453
8466
|
});
|
|
8454
8467
|
}
|
|
8455
8468
|
|
|
8456
|
-
const rootClassName$
|
|
8469
|
+
const rootClassName$L = 'dot-dialog';
|
|
8457
8470
|
const StyledDialog = styled(Dialog)`
|
|
8458
8471
|
${({
|
|
8459
8472
|
theme
|
|
8460
8473
|
}) => css`
|
|
8461
|
-
&.${rootClassName$
|
|
8474
|
+
&.${rootClassName$L} {
|
|
8462
8475
|
.MuiDialog-paper {
|
|
8463
8476
|
background: ${theme.palette.figma.background.level1.white};
|
|
8464
8477
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -8504,7 +8517,7 @@ const DotDialog = ({
|
|
|
8504
8517
|
cancelButtonProps,
|
|
8505
8518
|
cancelButtonVisible = true,
|
|
8506
8519
|
className,
|
|
8507
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
8520
|
+
'data-pendoid': dataPendoId = rootClassName$L,
|
|
8508
8521
|
'data-testid': dataTestId,
|
|
8509
8522
|
children,
|
|
8510
8523
|
closeIconVisible,
|
|
@@ -8518,7 +8531,7 @@ const DotDialog = ({
|
|
|
8518
8531
|
submitButtonProps,
|
|
8519
8532
|
title
|
|
8520
8533
|
}) => {
|
|
8521
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8534
|
+
const rootClasses = useStylesWithRootClass(rootClassName$L, className);
|
|
8522
8535
|
const cancelClasses = useStylesWithRootClass(cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.className, 'cancel-button');
|
|
8523
8536
|
const [isOpen, setIsOpen] = useState(open);
|
|
8524
8537
|
const hasSecondaryAction = !!secondaryButtonProps;
|
|
@@ -8655,7 +8668,7 @@ const DotConfirmationDialog = ({
|
|
|
8655
8668
|
});
|
|
8656
8669
|
};
|
|
8657
8670
|
|
|
8658
|
-
const rootClassName$
|
|
8671
|
+
const rootClassName$K = 'dot-grid';
|
|
8659
8672
|
const frGetter = value => typeof value === 'number' ? `repeat(${value}, 1fr)` : value;
|
|
8660
8673
|
const breakpointsGetter$1 = (theme, columnsBreakpoints, columnGap, rowGap) => `${theme.breakpoints.up('xs')} {
|
|
8661
8674
|
column-gap: ${`${columnGap.xs}px`};
|
|
@@ -8715,7 +8728,7 @@ const Grid = ({
|
|
|
8715
8728
|
children,
|
|
8716
8729
|
isLoading
|
|
8717
8730
|
}) => {
|
|
8718
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8731
|
+
const rootClasses = useStylesWithRootClass(rootClassName$K, className);
|
|
8719
8732
|
return jsxs("div", {
|
|
8720
8733
|
className: rootClasses,
|
|
8721
8734
|
children: [children, isLoading && jsx(DotProgress, {
|
|
@@ -8738,7 +8751,7 @@ const StyledGrid = styled(Grid)`
|
|
|
8738
8751
|
theme,
|
|
8739
8752
|
width
|
|
8740
8753
|
}) => css`
|
|
8741
|
-
&.${rootClassName$
|
|
8754
|
+
&.${rootClassName$K} {
|
|
8742
8755
|
display: grid;
|
|
8743
8756
|
grid-template-rows: ${frGetter(rows)};
|
|
8744
8757
|
${columns ? `${columns && `grid-template-columns: ${frGetter(columns)}`};` : breakpointsGetter$1(theme, columnsBreakpoints, columnGap, rowGap)}
|
|
@@ -9009,12 +9022,12 @@ const CssGridDebug = ({
|
|
|
9009
9022
|
});
|
|
9010
9023
|
};
|
|
9011
9024
|
|
|
9012
|
-
const rootClassName$
|
|
9025
|
+
const rootClassName$J = 'dot-pill';
|
|
9013
9026
|
const StyledPill = styled(Chip)`
|
|
9014
9027
|
${({
|
|
9015
9028
|
theme
|
|
9016
9029
|
}) => css`
|
|
9017
|
-
&.${rootClassName$
|
|
9030
|
+
&.${rootClassName$J} {
|
|
9018
9031
|
background-color: ${({
|
|
9019
9032
|
backgroundcolor,
|
|
9020
9033
|
variant
|
|
@@ -9138,7 +9151,7 @@ const DotPill = ({
|
|
|
9138
9151
|
status = 'default',
|
|
9139
9152
|
variant = 'filled'
|
|
9140
9153
|
}) => {
|
|
9141
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
9154
|
+
const rootClasses = useStylesWithRootClass(rootClassName$J, className, status);
|
|
9142
9155
|
return jsx(StyledPill, {
|
|
9143
9156
|
"aria-label": ariaLabel,
|
|
9144
9157
|
bordercolor: bordercolor,
|
|
@@ -10714,18 +10727,18 @@ function addAutoHideDuration(severity) {
|
|
|
10714
10727
|
return severity === 'error' ? null : 10000;
|
|
10715
10728
|
}
|
|
10716
10729
|
|
|
10717
|
-
const rootClassName$
|
|
10730
|
+
const rootClassName$I = 'dot-snackbar';
|
|
10718
10731
|
const StyledSnackbar = styled(Snackbar)`
|
|
10719
10732
|
${({
|
|
10720
10733
|
theme,
|
|
10721
10734
|
width,
|
|
10722
10735
|
$anchorOriginTop
|
|
10723
10736
|
}) => css`
|
|
10724
|
-
&.${rootClassName$
|
|
10737
|
+
&.${rootClassName$I} {
|
|
10725
10738
|
.MuiAlert-message {
|
|
10726
10739
|
word-break: break-word;
|
|
10727
10740
|
}
|
|
10728
|
-
.${rootClassName$
|
|
10741
|
+
.${rootClassName$1k} {
|
|
10729
10742
|
align-items: flex-start;
|
|
10730
10743
|
}
|
|
10731
10744
|
&.MuiSnackbar-anchorOriginTopLeft,
|
|
@@ -10778,7 +10791,7 @@ const DotSnackbar = ({
|
|
|
10778
10791
|
}) => {
|
|
10779
10792
|
const hasActions = !!(primaryAction || secondaryAction);
|
|
10780
10793
|
const calculatedAutoHideDuration = autoHideDuration === null || autoHideDuration > 0 ? autoHideDuration : addAutoHideDuration(severity);
|
|
10781
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
10794
|
+
const rootClasses = useStylesWithRootClass(rootClassName$I, className);
|
|
10782
10795
|
const handleSnackbarClose = reason => {
|
|
10783
10796
|
if (!reason || hideOnClickAway || !hideOnClickAway && reason !== 'clickaway') {
|
|
10784
10797
|
onClose();
|
|
@@ -10848,10 +10861,10 @@ const DotSnackbar = ({
|
|
|
10848
10861
|
});
|
|
10849
10862
|
};
|
|
10850
10863
|
|
|
10851
|
-
const rootClassName$
|
|
10864
|
+
const rootClassName$H = 'dot-snackbar-container';
|
|
10852
10865
|
const StyledSnackbarContainer = styled.div`
|
|
10853
10866
|
${() => css`
|
|
10854
|
-
&.${rootClassName$
|
|
10867
|
+
&.${rootClassName$H} {
|
|
10855
10868
|
position: absolute;
|
|
10856
10869
|
top: 0;
|
|
10857
10870
|
width: 250px;
|
|
@@ -10883,10 +10896,10 @@ const DotSnackbarContainer = ({
|
|
|
10883
10896
|
};
|
|
10884
10897
|
}
|
|
10885
10898
|
return jsx(StyledSnackbarContainer, {
|
|
10886
|
-
className: rootClassName$
|
|
10899
|
+
className: rootClassName$H,
|
|
10887
10900
|
children: jsx("div", {
|
|
10888
|
-
className: rootClassName$
|
|
10889
|
-
"data-testid": rootClassName$
|
|
10901
|
+
className: rootClassName$H,
|
|
10902
|
+
"data-testid": rootClassName$H,
|
|
10890
10903
|
children: alerts.slice().reverse().map(alert => {
|
|
10891
10904
|
return jsx(DotSnackbar, {
|
|
10892
10905
|
autoCloseOnAction: autoCloseOnAction,
|
|
@@ -10960,12 +10973,12 @@ const useEnqueueErrorMessage = error => {
|
|
|
10960
10973
|
}, [error]);
|
|
10961
10974
|
};
|
|
10962
10975
|
|
|
10963
|
-
const rootClassName$
|
|
10976
|
+
const rootClassName$G = 'dot-dashboard-details';
|
|
10964
10977
|
const StyledDashboardDetails = styled(DotDrawer)`
|
|
10965
10978
|
${({
|
|
10966
10979
|
theme
|
|
10967
10980
|
}) => css`
|
|
10968
|
-
&.${rootClassName$
|
|
10981
|
+
&.${rootClassName$G} {
|
|
10969
10982
|
.dot-drawer-paper {
|
|
10970
10983
|
padding: 0;
|
|
10971
10984
|
width: 382px;
|
|
@@ -11091,7 +11104,7 @@ const DotDashboardDetailsView = ({
|
|
|
11091
11104
|
modifiedAuthorUser
|
|
11092
11105
|
}) => {
|
|
11093
11106
|
var _a, _b;
|
|
11094
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11107
|
+
const rootClasses = useStylesWithRootClass(rootClassName$G, className);
|
|
11095
11108
|
const closeHandler = useCallback(event => {
|
|
11096
11109
|
onClose && onClose(event);
|
|
11097
11110
|
}, [onClose]);
|
|
@@ -11744,12 +11757,12 @@ function DotDashboardDialog({
|
|
|
11744
11757
|
});
|
|
11745
11758
|
}
|
|
11746
11759
|
|
|
11747
|
-
const rootClassName$
|
|
11760
|
+
const rootClassName$F = 'dot-impact-dialog';
|
|
11748
11761
|
const StyledImpactDialog = styled(DotDialog)`
|
|
11749
11762
|
${({
|
|
11750
11763
|
theme
|
|
11751
11764
|
}) => css`
|
|
11752
|
-
&.${rootClassName$
|
|
11765
|
+
&.${rootClassName$F} {
|
|
11753
11766
|
.high-impact-default-content {
|
|
11754
11767
|
margin-top: ${theme.spacing(2)};
|
|
11755
11768
|
margin-bottom: ${theme.spacing(3)};
|
|
@@ -11855,7 +11868,7 @@ const DotImpactDialog = ({
|
|
|
11855
11868
|
}
|
|
11856
11869
|
return '';
|
|
11857
11870
|
}, [action, capitalize, impact, record]);
|
|
11858
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11871
|
+
const rootClasses = useStylesWithRootClass(rootClassName$F, className);
|
|
11859
11872
|
return jsx(StyledImpactDialog, {
|
|
11860
11873
|
"data-testid": dataTestId,
|
|
11861
11874
|
className: rootClasses,
|
|
@@ -13195,7 +13208,7 @@ function DotDashboardHeader({
|
|
|
13195
13208
|
});
|
|
13196
13209
|
}
|
|
13197
13210
|
|
|
13198
|
-
const rootClassName$
|
|
13211
|
+
const rootClassName$E = 'dot-empty-state';
|
|
13199
13212
|
const emptyStateImageSizing = {
|
|
13200
13213
|
xsmall: 9,
|
|
13201
13214
|
dense: 15,
|
|
@@ -13266,9 +13279,9 @@ const StyledEmptyState = styled.div`
|
|
|
13266
13279
|
`}
|
|
13267
13280
|
`;
|
|
13268
13281
|
|
|
13269
|
-
const rootClassName$
|
|
13282
|
+
const rootClassName$D = 'dot-illustration';
|
|
13270
13283
|
const StyledIllustration = styled.span`
|
|
13271
|
-
&.${rootClassName$
|
|
13284
|
+
&.${rootClassName$D} {
|
|
13272
13285
|
display: inline-block;
|
|
13273
13286
|
}
|
|
13274
13287
|
`;
|
|
@@ -13285,17 +13298,17 @@ const DotIllustration = ({
|
|
|
13285
13298
|
tooltip,
|
|
13286
13299
|
tooltipPlacement = 'right-end'
|
|
13287
13300
|
}) => {
|
|
13288
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13301
|
+
const rootClasses = useStylesWithRootClass(rootClassName$D, className);
|
|
13289
13302
|
return jsx(DotTooltip, {
|
|
13290
13303
|
childrenDisplayStyle: "inline-block",
|
|
13291
13304
|
title: tooltip,
|
|
13292
13305
|
placement: tooltipPlacement,
|
|
13293
|
-
"data-testid": `${dataTestId || rootClassName$
|
|
13306
|
+
"data-testid": `${dataTestId || rootClassName$D}-tooltip`,
|
|
13294
13307
|
children: jsx(StyledIllustration, {
|
|
13295
13308
|
"aria-hidden": "false",
|
|
13296
13309
|
"aria-label": ariaLabel || title || 'Illustration',
|
|
13297
13310
|
className: rootClasses,
|
|
13298
|
-
"data-testid": dataTestId || rootClassName$
|
|
13311
|
+
"data-testid": dataTestId || rootClassName$D,
|
|
13299
13312
|
role: ariaRole,
|
|
13300
13313
|
children: jsx("img", {
|
|
13301
13314
|
alt: alt || 'Illustration',
|
|
@@ -13321,7 +13334,7 @@ const DotEmptyState = ({
|
|
|
13321
13334
|
subtitle,
|
|
13322
13335
|
title
|
|
13323
13336
|
}) => {
|
|
13324
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13337
|
+
const rootClasses = useStylesWithRootClass(rootClassName$E, className);
|
|
13325
13338
|
return jsxs(StyledEmptyState, {
|
|
13326
13339
|
"aria-label": ariaLabel,
|
|
13327
13340
|
className: `${rootClasses} ${size}`,
|
|
@@ -13402,20 +13415,20 @@ const StyledRadioGroup = styled(RadioGroup)`
|
|
|
13402
13415
|
&.${groupClassName} {
|
|
13403
13416
|
padding-left: ${theme.spacing(2.5)};
|
|
13404
13417
|
|
|
13405
|
-
.${rootClassName$
|
|
13418
|
+
.${rootClassName$R} {
|
|
13406
13419
|
margin: 0;
|
|
13407
13420
|
}
|
|
13408
13421
|
}
|
|
13409
13422
|
`}
|
|
13410
13423
|
`;
|
|
13411
13424
|
|
|
13412
|
-
const rootClassName$
|
|
13425
|
+
const rootClassName$C = 'dot-date-picker';
|
|
13413
13426
|
const popperClassName = 'dot-date-picker-popper';
|
|
13414
13427
|
const containerClassName$2 = 'dot-date-picker-container';
|
|
13415
13428
|
const rectanglePickersDayClassName = 'dot-rectangle-pickers-day';
|
|
13416
13429
|
const StyledDatePickerContainer = styled.div`
|
|
13417
13430
|
${() => css`
|
|
13418
|
-
&.${rootClassName$
|
|
13431
|
+
&.${rootClassName$C} .full-width {
|
|
13419
13432
|
width: 100%;
|
|
13420
13433
|
}
|
|
13421
13434
|
`}
|
|
@@ -13424,7 +13437,7 @@ const StyledDatePicker = styled(DatePicker)`
|
|
|
13424
13437
|
${({
|
|
13425
13438
|
theme
|
|
13426
13439
|
}) => css`
|
|
13427
|
-
&.${rootClassName$
|
|
13440
|
+
&.${rootClassName$C} {
|
|
13428
13441
|
${pickerInputStyles(theme)};
|
|
13429
13442
|
|
|
13430
13443
|
.Mui-disabled.MuiInputBase-root,
|
|
@@ -13464,7 +13477,7 @@ const StyledPickersDay = styled(PickersDay)`
|
|
|
13464
13477
|
`}
|
|
13465
13478
|
`;
|
|
13466
13479
|
|
|
13467
|
-
const rootClassName$
|
|
13480
|
+
const rootClassName$B = 'dot-time-picker';
|
|
13468
13481
|
const containerClassName$1 = 'dot-time-picker-container';
|
|
13469
13482
|
const TIME_SELECTION_HEIGHT_SPACING = 34.5;
|
|
13470
13483
|
const TIME_SELECTION_WIDTH_SPACING = 14.5;
|
|
@@ -13535,7 +13548,7 @@ const StyledTimePicker = styled(TimePicker)`
|
|
|
13535
13548
|
${({
|
|
13536
13549
|
theme
|
|
13537
13550
|
}) => css`
|
|
13538
|
-
&.${rootClassName$
|
|
13551
|
+
&.${rootClassName$B} {
|
|
13539
13552
|
${pickerInputStyles(theme)};
|
|
13540
13553
|
|
|
13541
13554
|
.Mui-disabled.MuiInputBase-root,
|
|
@@ -13554,36 +13567,36 @@ const StyledTimePicker = styled(TimePicker)`
|
|
|
13554
13567
|
`}
|
|
13555
13568
|
`;
|
|
13556
13569
|
|
|
13557
|
-
const rootClassName$
|
|
13570
|
+
const rootClassName$A = 'dot-form';
|
|
13558
13571
|
const StyledFormContainer = styled.div`
|
|
13559
13572
|
${({
|
|
13560
13573
|
theme
|
|
13561
13574
|
}) => css`
|
|
13562
|
-
&.${rootClassName$
|
|
13575
|
+
&.${rootClassName$A} {
|
|
13563
13576
|
margin: ${theme.spacing(3, 0)};
|
|
13564
13577
|
|
|
13565
|
-
.${rootClassName$
|
|
13566
|
-
.${rootClassName$
|
|
13567
|
-
.${rootClassName$
|
|
13578
|
+
.${rootClassName$P},
|
|
13579
|
+
.${rootClassName$R},
|
|
13580
|
+
.${rootClassName$1o},
|
|
13568
13581
|
.${rootSelectClassName},
|
|
13569
|
-
.${rootClassName$
|
|
13570
|
-
.${rootClassName$
|
|
13582
|
+
.${rootClassName$C},
|
|
13583
|
+
.${rootClassName$B} {
|
|
13571
13584
|
margin: ${theme.spacing(1, 0)};
|
|
13572
13585
|
}
|
|
13573
13586
|
|
|
13574
13587
|
.${wrapperClassName$2} {
|
|
13575
|
-
+ .${rootClassName$
|
|
13588
|
+
+ .${rootClassName$1o},
|
|
13576
13589
|
.${wrapperClassName$2}
|
|
13577
13590
|
+ .${rootSelectClassName},
|
|
13578
13591
|
.${wrapperClassName$2}
|
|
13579
|
-
+ .${rootClassName$
|
|
13592
|
+
+ .${rootClassName$C},
|
|
13580
13593
|
.${wrapperClassName$2}
|
|
13581
|
-
+ .${rootClassName$
|
|
13594
|
+
+ .${rootClassName$B} {
|
|
13582
13595
|
margin: ${theme.spacing(0, 0, 1, 0)};
|
|
13583
13596
|
}
|
|
13584
13597
|
|
|
13585
|
-
.${rootClassName$
|
|
13586
|
-
.${rootClassName$
|
|
13598
|
+
.${rootClassName$O}, .${groupClassName} {
|
|
13599
|
+
.${rootClassName$R} {
|
|
13587
13600
|
margin: 0;
|
|
13588
13601
|
}
|
|
13589
13602
|
}
|
|
@@ -13598,7 +13611,7 @@ const DotForm = ({
|
|
|
13598
13611
|
'data-testid': dataTestId,
|
|
13599
13612
|
onSubmit
|
|
13600
13613
|
}) => {
|
|
13601
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13614
|
+
const rootClasses = useStylesWithRootClass(rootClassName$A, className);
|
|
13602
13615
|
return jsx("form", {
|
|
13603
13616
|
"aria-label": ariaLabel,
|
|
13604
13617
|
"data-testid": dataTestId,
|
|
@@ -13611,10 +13624,10 @@ const DotForm = ({
|
|
|
13611
13624
|
});
|
|
13612
13625
|
};
|
|
13613
13626
|
|
|
13614
|
-
const rootClassName$
|
|
13627
|
+
const rootClassName$z = 'dot-dynamic-form';
|
|
13615
13628
|
const StyledDynamicForm = styled(DotForm)`
|
|
13616
13629
|
${() => css`
|
|
13617
|
-
&.${rootClassName$
|
|
13630
|
+
&.${rootClassName$z} {
|
|
13618
13631
|
}
|
|
13619
13632
|
`}
|
|
13620
13633
|
`;
|
|
@@ -13794,12 +13807,12 @@ const checkIfFormDataValid = formState => {
|
|
|
13794
13807
|
return true;
|
|
13795
13808
|
};
|
|
13796
13809
|
|
|
13797
|
-
const rootClassName$
|
|
13810
|
+
const rootClassName$y = 'dot-progress-button';
|
|
13798
13811
|
const StyledProgressButton = styled(DotButton)`
|
|
13799
13812
|
${({
|
|
13800
13813
|
theme
|
|
13801
13814
|
}) => css`
|
|
13802
|
-
&.${rootClassName$
|
|
13815
|
+
&.${rootClassName$y} {
|
|
13803
13816
|
.hidden {
|
|
13804
13817
|
// hide children but preserve its space so that
|
|
13805
13818
|
// button's dimensions don't change
|
|
@@ -13824,7 +13837,7 @@ const DotProgressButton = ({
|
|
|
13824
13837
|
ariaLabel,
|
|
13825
13838
|
children,
|
|
13826
13839
|
className,
|
|
13827
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
13840
|
+
'data-pendoid': dataPendoId = rootClassName$y,
|
|
13828
13841
|
'data-testid': dataTestId,
|
|
13829
13842
|
disabled = false,
|
|
13830
13843
|
disableInteractive,
|
|
@@ -13838,7 +13851,7 @@ const DotProgressButton = ({
|
|
|
13838
13851
|
tooltip,
|
|
13839
13852
|
type = 'primary'
|
|
13840
13853
|
}) => {
|
|
13841
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13854
|
+
const rootClasses = useStylesWithRootClass(rootClassName$y, className);
|
|
13842
13855
|
const isButtonDisabled = disabled || isLoading;
|
|
13843
13856
|
const titleClasses = useStylesWithRootClass(isLoading ? 'hidden' : '');
|
|
13844
13857
|
const progressCircleSize = size === 'large' ? SPINNER_LARGE_SIZE : SPINNER_DEFAULT_SIZE;
|
|
@@ -13868,12 +13881,12 @@ const DotProgressButton = ({
|
|
|
13868
13881
|
});
|
|
13869
13882
|
};
|
|
13870
13883
|
|
|
13871
|
-
const rootClassName$
|
|
13884
|
+
const rootClassName$x = 'dot-radio';
|
|
13872
13885
|
const StyledRadioButton = styled(Radio)`
|
|
13873
13886
|
${({
|
|
13874
13887
|
theme
|
|
13875
13888
|
}) => css`
|
|
13876
|
-
&.${rootClassName$
|
|
13889
|
+
&.${rootClassName$x} {
|
|
13877
13890
|
padding: 8px;
|
|
13878
13891
|
|
|
13879
13892
|
svg {
|
|
@@ -13891,7 +13904,7 @@ function DotRadioButton({
|
|
|
13891
13904
|
ariaLabel,
|
|
13892
13905
|
checked,
|
|
13893
13906
|
className,
|
|
13894
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
13907
|
+
'data-pendoid': dataPendoId = rootClassName$R,
|
|
13895
13908
|
'data-testid': dataTestId,
|
|
13896
13909
|
disabled,
|
|
13897
13910
|
id,
|
|
@@ -13904,7 +13917,7 @@ function DotRadioButton({
|
|
|
13904
13917
|
size = 'medium',
|
|
13905
13918
|
value
|
|
13906
13919
|
}) {
|
|
13907
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13920
|
+
const rootClasses = useStylesWithRootClass(rootClassName$R, className);
|
|
13908
13921
|
const handleChange = event => {
|
|
13909
13922
|
onChange && onChange(event, event.target.value);
|
|
13910
13923
|
};
|
|
@@ -13912,7 +13925,7 @@ function DotRadioButton({
|
|
|
13912
13925
|
const radioControl = jsx(StyledRadioButton, {
|
|
13913
13926
|
checked: checked,
|
|
13914
13927
|
classes: {
|
|
13915
|
-
root: rootClassName$
|
|
13928
|
+
root: rootClassName$x
|
|
13916
13929
|
},
|
|
13917
13930
|
color: "primary",
|
|
13918
13931
|
"data-pendoid": dataPendoId,
|
|
@@ -13958,7 +13971,7 @@ const DotRadioGroup = ({
|
|
|
13958
13971
|
size = 'medium'
|
|
13959
13972
|
}) => {
|
|
13960
13973
|
const placement = `${placementClassName}${labelPlacement}`;
|
|
13961
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13974
|
+
const rootClasses = useStylesWithRootClass(rootClassName$P, className, placement);
|
|
13962
13975
|
const radioValue = value || defaultValue;
|
|
13963
13976
|
const [selectedValue, setSelectedValue] = useState(radioValue);
|
|
13964
13977
|
/* This will ensure that value can be updated from the outside */
|
|
@@ -14023,7 +14036,7 @@ const DotRadioGroup = ({
|
|
|
14023
14036
|
});
|
|
14024
14037
|
};
|
|
14025
14038
|
|
|
14026
|
-
const rootClassName$
|
|
14039
|
+
const rootClassName$w = 'dot-switch';
|
|
14027
14040
|
const StyledSwitch = styled(Switch)`
|
|
14028
14041
|
${({
|
|
14029
14042
|
theme
|
|
@@ -14052,7 +14065,7 @@ const DotSwitch = ({
|
|
|
14052
14065
|
checked,
|
|
14053
14066
|
className,
|
|
14054
14067
|
color,
|
|
14055
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
14068
|
+
'data-pendoid': dataPendoId = rootClassName$w,
|
|
14056
14069
|
'data-testid': dataTestId,
|
|
14057
14070
|
disabled = false,
|
|
14058
14071
|
id,
|
|
@@ -14062,7 +14075,7 @@ const DotSwitch = ({
|
|
|
14062
14075
|
onChange,
|
|
14063
14076
|
size = 'medium'
|
|
14064
14077
|
}) => {
|
|
14065
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14078
|
+
const rootClasses = useStylesWithRootClass(rootClassName$w, className);
|
|
14066
14079
|
const handleChange = event => {
|
|
14067
14080
|
onChange && onChange(event);
|
|
14068
14081
|
};
|
|
@@ -14092,7 +14105,7 @@ const DotSwitch = ({
|
|
|
14092
14105
|
tabIndex: 0
|
|
14093
14106
|
});
|
|
14094
14107
|
return jsx(StyledFormControlLabel, {
|
|
14095
|
-
className: rootClassName$
|
|
14108
|
+
className: rootClassName$R,
|
|
14096
14109
|
control: switchControl,
|
|
14097
14110
|
label: label,
|
|
14098
14111
|
labelPlacement: labelPlacement
|
|
@@ -14413,7 +14426,7 @@ const DotDynamicForm = ({
|
|
|
14413
14426
|
onChange,
|
|
14414
14427
|
onSubmit
|
|
14415
14428
|
}) => {
|
|
14416
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14429
|
+
const rootClasses = useStylesWithRootClass(rootClassName$z, className);
|
|
14417
14430
|
// Memoize this operation so that is doesn't get executed each time this
|
|
14418
14431
|
// component re-renders
|
|
14419
14432
|
const initialFormState = useMemo(() => getInitialFormState(config, liveValidation), [config, liveValidation, getInitialFormState]);
|
|
@@ -14659,7 +14672,7 @@ const DotDynamicForm = ({
|
|
|
14659
14672
|
});
|
|
14660
14673
|
};
|
|
14661
14674
|
|
|
14662
|
-
const rootClassName$
|
|
14675
|
+
const rootClassName$v = 'dot-inline-edit';
|
|
14663
14676
|
const editModeClassName = 'dot-edit-mode';
|
|
14664
14677
|
const viewModeClassName = 'dot-view-mode';
|
|
14665
14678
|
const placeholderClassName = 'dot-placeholder';
|
|
@@ -14671,7 +14684,7 @@ const StyledInlineEdit = styled.div`
|
|
|
14671
14684
|
theme,
|
|
14672
14685
|
fullWidth
|
|
14673
14686
|
}) => css`
|
|
14674
|
-
&.${rootClassName$
|
|
14687
|
+
&.${rootClassName$v} {
|
|
14675
14688
|
align-items: center;
|
|
14676
14689
|
color: ${theme.palette.figma.typography.black};
|
|
14677
14690
|
display: ${fullWidth ? 'flex' : 'inline-flex'};
|
|
@@ -14885,7 +14898,7 @@ const DotInlineEdit = ({
|
|
|
14885
14898
|
bindings,
|
|
14886
14899
|
charactersLimit,
|
|
14887
14900
|
className,
|
|
14888
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
14901
|
+
'data-pendoid': dataPendoId = rootClassName$v,
|
|
14889
14902
|
'data-testid': dataTestId,
|
|
14890
14903
|
fullWidth = true,
|
|
14891
14904
|
hideActionButtons,
|
|
@@ -14921,7 +14934,7 @@ const DotInlineEdit = ({
|
|
|
14921
14934
|
}
|
|
14922
14935
|
}, [value]);
|
|
14923
14936
|
const isSaveDisabled = checkIfEmptyValue(inputValue);
|
|
14924
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14937
|
+
const rootClasses = useStylesWithRootClass(rootClassName$v, className, editing ? editModeClassName : '');
|
|
14925
14938
|
const handleShowTooltip = visible => {
|
|
14926
14939
|
if (!editing) {
|
|
14927
14940
|
setShowTooltip(visible);
|
|
@@ -15109,13 +15122,13 @@ const DotInlineEdit = ({
|
|
|
15109
15122
|
});
|
|
15110
15123
|
};
|
|
15111
15124
|
|
|
15112
|
-
const rootClassName$
|
|
15125
|
+
const rootClassName$u = 'dot-navigation-rail';
|
|
15113
15126
|
const StyledNavigationRail = styled.div`
|
|
15114
15127
|
${({
|
|
15115
15128
|
theme,
|
|
15116
15129
|
railItemPosition
|
|
15117
15130
|
}) => css`
|
|
15118
|
-
&.${rootClassName$
|
|
15131
|
+
&.${rootClassName$u} {
|
|
15119
15132
|
background: ${theme.palette.figma.neutral.elevated};
|
|
15120
15133
|
border-left: 1px solid ${theme.palette.figma.border.default};
|
|
15121
15134
|
display: flex;
|
|
@@ -15133,14 +15146,26 @@ const StyledNavigationRail = styled.div`
|
|
|
15133
15146
|
padding: 0;
|
|
15134
15147
|
width: 100%;
|
|
15135
15148
|
white-space: normal;
|
|
15149
|
+
box-sizing: border-box;
|
|
15150
|
+
border-right: 3px solid transparent;
|
|
15136
15151
|
|
|
15137
15152
|
.dot-icon {
|
|
15138
15153
|
color: ${theme.palette.figma.icon.black};
|
|
15139
15154
|
}
|
|
15140
15155
|
|
|
15141
15156
|
&.selected,
|
|
15142
|
-
&:focus-visible
|
|
15143
|
-
|
|
15157
|
+
&:focus-visible,
|
|
15158
|
+
&:hover {
|
|
15159
|
+
background-color: ${theme.palette.figma.primary.light} !important;
|
|
15160
|
+
}
|
|
15161
|
+
|
|
15162
|
+
&.selected {
|
|
15163
|
+
border-right-color: ${theme.palette.figma.primary.normal};
|
|
15164
|
+
|
|
15165
|
+
.rail-item-button-icon,
|
|
15166
|
+
.rail-item-text {
|
|
15167
|
+
color: ${theme.palette.figma.primary.normal};
|
|
15168
|
+
}
|
|
15144
15169
|
}
|
|
15145
15170
|
|
|
15146
15171
|
.rail-item-text {
|
|
@@ -15162,7 +15187,7 @@ const DotNavigationRail = ({
|
|
|
15162
15187
|
railItems,
|
|
15163
15188
|
selectedIndex = 0
|
|
15164
15189
|
}) => {
|
|
15165
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15190
|
+
const rootClasses = useStylesWithRootClass(rootClassName$u, className);
|
|
15166
15191
|
const [selectedItemIndex, setSelectedItemIndex] = useState(selectedIndex);
|
|
15167
15192
|
/* Used to change selected index programmatically from the consumer component */
|
|
15168
15193
|
useEffect(() => {
|
|
@@ -15213,12 +15238,12 @@ const DotNavigationRail = ({
|
|
|
15213
15238
|
});
|
|
15214
15239
|
};
|
|
15215
15240
|
|
|
15216
|
-
const rootClassName$
|
|
15241
|
+
const rootClassName$t = 'dot-skeleton';
|
|
15217
15242
|
const StyledSkeleton = styled(Skeleton)`
|
|
15218
15243
|
${({
|
|
15219
15244
|
theme
|
|
15220
15245
|
}) => css`
|
|
15221
|
-
&.${rootClassName$
|
|
15246
|
+
&.${rootClassName$t} {
|
|
15222
15247
|
background-color: ${theme.palette.figma.border.darker};
|
|
15223
15248
|
}
|
|
15224
15249
|
`}
|
|
@@ -15233,7 +15258,7 @@ const DotSkeleton = ({
|
|
|
15233
15258
|
width,
|
|
15234
15259
|
variant
|
|
15235
15260
|
}) => {
|
|
15236
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15261
|
+
const rootClasses = useStylesWithRootClass(rootClassName$t, className);
|
|
15237
15262
|
return jsx(StyledSkeleton, {
|
|
15238
15263
|
animation: "wave",
|
|
15239
15264
|
"aria-label": ariaLabel,
|
|
@@ -15248,12 +15273,12 @@ const DotSkeleton = ({
|
|
|
15248
15273
|
});
|
|
15249
15274
|
};
|
|
15250
15275
|
|
|
15251
|
-
const rootClassName$
|
|
15276
|
+
const rootClassName$s = 'dot-split-button-group';
|
|
15252
15277
|
const StyledSplitButtonGroup = styled(ButtonGroup)`
|
|
15253
15278
|
${({
|
|
15254
15279
|
theme
|
|
15255
15280
|
}) => css`
|
|
15256
|
-
&.${rootClassName$
|
|
15281
|
+
&.${rootClassName$s} {
|
|
15257
15282
|
&.outlined,
|
|
15258
15283
|
&.text {
|
|
15259
15284
|
.expand-button {
|
|
@@ -15268,7 +15293,6 @@ const StyledSplitButtonGroup = styled(ButtonGroup)`
|
|
|
15268
15293
|
&.disabled .dot-button {
|
|
15269
15294
|
background: ${theme.palette.figma.disabled.normal};
|
|
15270
15295
|
border: 1px solid ${theme.palette.figma.border.defaultButton};
|
|
15271
|
-
color: ${theme.palette.figma.typography.gray};
|
|
15272
15296
|
}
|
|
15273
15297
|
|
|
15274
15298
|
.dot-button {
|
|
@@ -15320,7 +15344,7 @@ const DotSplitButton = ({
|
|
|
15320
15344
|
autoFocus = false,
|
|
15321
15345
|
ariaLabel,
|
|
15322
15346
|
className,
|
|
15323
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
15347
|
+
'data-pendoid': dataPendoId = rootClassName$s,
|
|
15324
15348
|
'data-testid': dataTestId,
|
|
15325
15349
|
defaultMainOptionKey,
|
|
15326
15350
|
disabled = false,
|
|
@@ -15336,7 +15360,7 @@ const DotSplitButton = ({
|
|
|
15336
15360
|
tooltipPlacement,
|
|
15337
15361
|
type = 'primary'
|
|
15338
15362
|
}) => {
|
|
15339
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15363
|
+
const rootClasses = useStylesWithRootClass(rootClassName$s, className, type, disabled ? 'disabled' : '');
|
|
15340
15364
|
const [open, setOpen] = useState(false);
|
|
15341
15365
|
const anchorRef = useRef(null);
|
|
15342
15366
|
const hasEmptyOptions = options.length === 0;
|
|
@@ -15404,7 +15428,7 @@ const DotSplitButton = ({
|
|
|
15404
15428
|
});
|
|
15405
15429
|
};
|
|
15406
15430
|
|
|
15407
|
-
const rootClassName$
|
|
15431
|
+
const rootClassName$r = 'dot-stepper';
|
|
15408
15432
|
const stepListClassName = 'dot-stepper-list';
|
|
15409
15433
|
const contentClassName = 'dot-stepper-content';
|
|
15410
15434
|
const StyledStepper = styled.div`
|
|
@@ -15412,7 +15436,7 @@ const StyledStepper = styled.div`
|
|
|
15412
15436
|
theme,
|
|
15413
15437
|
offset
|
|
15414
15438
|
}) => css`
|
|
15415
|
-
&.${rootClassName$
|
|
15439
|
+
&.${rootClassName$r} {
|
|
15416
15440
|
display: flex;
|
|
15417
15441
|
align-items: flex-start;
|
|
15418
15442
|
padding: 0;
|
|
@@ -15727,7 +15751,7 @@ const DotStepper = ({
|
|
|
15727
15751
|
return ['left', 'right'].includes(stepsPosition) ? stepsPosition : 'left';
|
|
15728
15752
|
}
|
|
15729
15753
|
};
|
|
15730
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15754
|
+
const rootClasses = useStylesWithRootClass(rootClassName$r, getStepsPosition(), className);
|
|
15731
15755
|
const stepContentClasses = displayInitialContent || displayFinalContent ? 'center-content' : '';
|
|
15732
15756
|
const stickyBottomClasses = useStylesWithRootClass('actions-container', isStickyBottom ? 'with-top-border' : '');
|
|
15733
15757
|
const actionsClasses = useStylesWithRootClass('actions', displayInitialContent || displayFinalContent ? 'center-actions' : '');
|
|
@@ -15945,12 +15969,12 @@ const DotStepper = ({
|
|
|
15945
15969
|
});
|
|
15946
15970
|
};
|
|
15947
15971
|
|
|
15948
|
-
const rootClassName$
|
|
15972
|
+
const rootClassName$q = 'dot-table-pagination-custom-actions';
|
|
15949
15973
|
const StyledTablePaginationCustomActions = styled.div`
|
|
15950
15974
|
${({
|
|
15951
15975
|
theme
|
|
15952
15976
|
}) => css`
|
|
15953
|
-
&.${rootClassName$
|
|
15977
|
+
&.${rootClassName$q} {
|
|
15954
15978
|
margin-left: ${theme.spacing(2.5)};
|
|
15955
15979
|
display: flex;
|
|
15956
15980
|
align-items: center;
|
|
@@ -16074,7 +16098,7 @@ const DotTablePaginationCustomActions = props => {
|
|
|
16074
16098
|
});
|
|
16075
16099
|
};
|
|
16076
16100
|
return jsxs(StyledTablePaginationCustomActions, {
|
|
16077
|
-
className: rootClassName$
|
|
16101
|
+
className: rootClassName$q,
|
|
16078
16102
|
children: [jsx(DotIconButton, {
|
|
16079
16103
|
ariaLabel: "previous page",
|
|
16080
16104
|
className: "page-control-button",
|
|
@@ -16121,7 +16145,7 @@ const DotTablePaginationCustomActions = props => {
|
|
|
16121
16145
|
});
|
|
16122
16146
|
};
|
|
16123
16147
|
|
|
16124
|
-
const rootClassName$
|
|
16148
|
+
const rootClassName$p = 'dot-table-pagination';
|
|
16125
16149
|
// TO-DO: Determine how to apply styles to standard popper element
|
|
16126
16150
|
const paginationItemClassName = 'dot-pagination-menu-item';
|
|
16127
16151
|
const StyledTablePagination = styled.div`
|
|
@@ -16129,7 +16153,7 @@ const StyledTablePagination = styled.div`
|
|
|
16129
16153
|
theme,
|
|
16130
16154
|
typography
|
|
16131
16155
|
}) => css`
|
|
16132
|
-
.${rootClassName$
|
|
16156
|
+
.${rootClassName$p} {
|
|
16133
16157
|
border-top: 1px solid ${theme.palette.figma.border.default};
|
|
16134
16158
|
|
|
16135
16159
|
.dot-caption,
|
|
@@ -16172,7 +16196,7 @@ const DotTablePagination = ({
|
|
|
16172
16196
|
showJumpToPageActionButton = false,
|
|
16173
16197
|
typography = 'subtitle2'
|
|
16174
16198
|
}) => {
|
|
16175
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
16199
|
+
const rootClasses = useStylesWithRootClass(rootClassName$p, className, showJumpToPageActionButton ? 'with-custom-actions' : '');
|
|
16176
16200
|
const handlePageChange = (event, newPage) => {
|
|
16177
16201
|
onPageChange && onPageChange(newPage);
|
|
16178
16202
|
};
|
|
@@ -16181,7 +16205,7 @@ const DotTablePagination = ({
|
|
|
16181
16205
|
};
|
|
16182
16206
|
return (/* Container is used to pass 'typography' prop to a styled component */
|
|
16183
16207
|
jsx(StyledTablePagination, {
|
|
16184
|
-
className: rootClassName$
|
|
16208
|
+
className: rootClassName$p,
|
|
16185
16209
|
typography: typography,
|
|
16186
16210
|
children: jsx(TablePagination, {
|
|
16187
16211
|
ActionsComponent: showJumpToPageActionButton ? DotTablePaginationCustomActions : undefined,
|
|
@@ -16208,16 +16232,61 @@ const DotTablePagination = ({
|
|
|
16208
16232
|
);
|
|
16209
16233
|
};
|
|
16210
16234
|
|
|
16211
|
-
const rootClassName$
|
|
16235
|
+
const rootClassName$o = 'dot-table';
|
|
16236
|
+
const MULTISELECT_COLUMN_WIDTH = 52;
|
|
16237
|
+
const COLLAPSIBLE_COLUMN_WIDTH = 42;
|
|
16212
16238
|
const StyledPaper$1 = styled(Paper)`
|
|
16213
16239
|
${({
|
|
16214
16240
|
theme
|
|
16215
16241
|
}) => css`
|
|
16216
|
-
&.${rootClassName$
|
|
16242
|
+
&.${rootClassName$o} {
|
|
16217
16243
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
16218
16244
|
border: 1px solid ${theme.palette.figma.border.default};
|
|
16219
16245
|
overflow: hidden;
|
|
16220
16246
|
|
|
16247
|
+
.dot-table-pinned {
|
|
16248
|
+
.dot-pinned-cell {
|
|
16249
|
+
box-shadow: -4px 0 4px -4px ${theme.palette.figma.border.default} inset;
|
|
16250
|
+
}
|
|
16251
|
+
|
|
16252
|
+
.dot-pinned-cell,
|
|
16253
|
+
.dot-th-checkbox,
|
|
16254
|
+
.dot-th-expand-collapse,
|
|
16255
|
+
.dot-td-checkbox,
|
|
16256
|
+
.dot-td-expand-collapse {
|
|
16257
|
+
position: sticky;
|
|
16258
|
+
left: 0;
|
|
16259
|
+
background-color: ${theme.palette.figma.background.level0.bckgWhiteBlack};
|
|
16260
|
+
z-index: ${levelSecond};
|
|
16261
|
+
}
|
|
16262
|
+
|
|
16263
|
+
.dot-th.dot-pinned-cell,
|
|
16264
|
+
.dot-th-checkbox {
|
|
16265
|
+
top: 0;
|
|
16266
|
+
z-index: ${levelSecond + 1};
|
|
16267
|
+
}
|
|
16268
|
+
|
|
16269
|
+
&.dot-table-collapsible .dot-pinned-cell {
|
|
16270
|
+
left: ${COLLAPSIBLE_COLUMN_WIDTH}px;
|
|
16271
|
+
}
|
|
16272
|
+
|
|
16273
|
+
&.dot-table-multiselect {
|
|
16274
|
+
.dot-pinned-cell {
|
|
16275
|
+
left: ${MULTISELECT_COLUMN_WIDTH}px;
|
|
16276
|
+
}
|
|
16277
|
+
|
|
16278
|
+
&.dot-table-collapsible {
|
|
16279
|
+
.dot-th-expand-collapse,
|
|
16280
|
+
.dot-td-expand-collapse {
|
|
16281
|
+
left: ${MULTISELECT_COLUMN_WIDTH}px;
|
|
16282
|
+
}
|
|
16283
|
+
.dot-pinned-cell {
|
|
16284
|
+
left: ${MULTISELECT_COLUMN_WIDTH + COLLAPSIBLE_COLUMN_WIDTH}px;
|
|
16285
|
+
}
|
|
16286
|
+
}
|
|
16287
|
+
}
|
|
16288
|
+
}
|
|
16289
|
+
|
|
16221
16290
|
// while loading, change opacity, disable pointer events
|
|
16222
16291
|
// and hide pagination.
|
|
16223
16292
|
&.loading {
|
|
@@ -16234,6 +16303,7 @@ const StyledPaper$1 = styled(Paper)`
|
|
|
16234
16303
|
.dot-table-multiselect-header {
|
|
16235
16304
|
position: absolute;
|
|
16236
16305
|
width: 100%;
|
|
16306
|
+
z-index: ${levelSecond + 5};
|
|
16237
16307
|
|
|
16238
16308
|
.dot-table-selection-toolbar {
|
|
16239
16309
|
padding: ${theme.spacing(0, 1)};
|
|
@@ -16312,10 +16382,10 @@ const StyledMenu$1 = styled(DotMenu)`
|
|
|
16312
16382
|
}
|
|
16313
16383
|
`;
|
|
16314
16384
|
|
|
16315
|
-
const rootClassName$
|
|
16385
|
+
const rootClassName$n = 'dot-tbody';
|
|
16316
16386
|
const StyledTableBody = styled(TableBody)`
|
|
16317
16387
|
${() => css`
|
|
16318
|
-
&.${rootClassName$
|
|
16388
|
+
&.${rootClassName$n} {
|
|
16319
16389
|
tr:last-child td {
|
|
16320
16390
|
border-bottom: none;
|
|
16321
16391
|
}
|
|
@@ -16465,13 +16535,57 @@ const parseCellMaxWidth = width => {
|
|
|
16465
16535
|
const checkIsMultiselectOverTableHeaderRow = (multiSelect, hasToolbar) => {
|
|
16466
16536
|
return !hasToolbar && !!(multiSelect === null || multiSelect === void 0 ? void 0 : multiSelect.showOverTableHeaderRow);
|
|
16467
16537
|
};
|
|
16538
|
+
const getSortedPageData = ({
|
|
16539
|
+
data,
|
|
16540
|
+
onUpdateData,
|
|
16541
|
+
order,
|
|
16542
|
+
orderBy,
|
|
16543
|
+
rowsPerPage
|
|
16544
|
+
}) => {
|
|
16545
|
+
const tableData = onUpdateData ? data : stableSort(data, getComparator(order, orderBy));
|
|
16546
|
+
return tableData.slice(0, rowsPerPage ? rowsPerPage : data.length);
|
|
16547
|
+
};
|
|
16548
|
+
const warnIfCountIgnored = (count, onUpdateData, rowsPerPage) => {
|
|
16549
|
+
if (!count) return;
|
|
16550
|
+
if (!rowsPerPage) {
|
|
16551
|
+
console.warn("'count' prop is ignored as table is not paginated (no 'rowsPerPage' prop provided)");
|
|
16552
|
+
}
|
|
16553
|
+
if (!onUpdateData) {
|
|
16554
|
+
console.warn("'count' prop is ignored as it can be determined by 'data.length' for internally paginated table (no 'onUpdateData' callback provided)");
|
|
16555
|
+
}
|
|
16556
|
+
};
|
|
16557
|
+
const sortComparator = (a, b, orderBy) => {
|
|
16558
|
+
const {
|
|
16559
|
+
valueA,
|
|
16560
|
+
valueB
|
|
16561
|
+
} = getValuesForSort(a, b, orderBy);
|
|
16562
|
+
if (valueB < valueA) {
|
|
16563
|
+
return -1;
|
|
16564
|
+
}
|
|
16565
|
+
if (valueB > valueA) {
|
|
16566
|
+
return 1;
|
|
16567
|
+
}
|
|
16568
|
+
return 0;
|
|
16569
|
+
};
|
|
16570
|
+
const getComparator = (order, orderBy) => (a, b) => {
|
|
16571
|
+
const compare = sortComparator(a, b, orderBy);
|
|
16572
|
+
return order === 'desc' ? compare : -compare;
|
|
16573
|
+
};
|
|
16574
|
+
function stableSort(array, comparator) {
|
|
16575
|
+
const stabilizedThis = array.map((el, index) => [el, index]);
|
|
16576
|
+
stabilizedThis.sort((order, orderBy) => {
|
|
16577
|
+
const newOrder = comparator(order[0], orderBy[0]);
|
|
16578
|
+
return newOrder !== 0 ? newOrder : order[1] - orderBy[1];
|
|
16579
|
+
});
|
|
16580
|
+
return stabilizedThis.map(el => el[0]);
|
|
16581
|
+
}
|
|
16468
16582
|
|
|
16469
|
-
const rootClassName$
|
|
16583
|
+
const rootClassName$m = 'dot-td';
|
|
16470
16584
|
const StyledTableCell = styled(TableCell)`
|
|
16471
16585
|
${({
|
|
16472
16586
|
theme
|
|
16473
16587
|
}) => css`
|
|
16474
|
-
&.${rootClassName$
|
|
16588
|
+
&.${rootClassName$m} {
|
|
16475
16589
|
padding-top: 0;
|
|
16476
16590
|
padding-bottom: 0;
|
|
16477
16591
|
|
|
@@ -16566,7 +16680,7 @@ const DotBodyCell = ({
|
|
|
16566
16680
|
const isOverflowing = actionTableCellWidth > (wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current.clientWidth);
|
|
16567
16681
|
setShowMenu(isOverflowing);
|
|
16568
16682
|
};
|
|
16569
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
16683
|
+
const rootClasses = useStylesWithRootClass(rootClassName$m, className, noWrap && 'noWrap', Array.isArray(value) && 'actionItems');
|
|
16570
16684
|
const getTableCellValue = () => {
|
|
16571
16685
|
if (Array.isArray(value)) {
|
|
16572
16686
|
return jsx("div", {
|
|
@@ -16631,47 +16745,16 @@ const EmptyDotRow = ({
|
|
|
16631
16745
|
}, CreateUUID());
|
|
16632
16746
|
};
|
|
16633
16747
|
|
|
16634
|
-
const rootClassName$k = 'dot-tr';
|
|
16635
|
-
const StyledTableRowStyles = styled(TableRow)`
|
|
16636
|
-
${({
|
|
16637
|
-
theme
|
|
16638
|
-
}) => css`
|
|
16639
|
-
&.${rootClassName$k} {
|
|
16640
|
-
&.selected {
|
|
16641
|
-
background: ${theme.palette.figma.overlay.table.highlights};
|
|
16642
|
-
|
|
16643
|
-
.dot-td-checkbox .dot-checkbox,
|
|
16644
|
-
.dot-td .dot-typography {
|
|
16645
|
-
color: ${theme.palette.figma.overlay.table.text};
|
|
16646
|
-
}
|
|
16647
|
-
|
|
16648
|
-
&:hover {
|
|
16649
|
-
background: ${theme.palette.figma.primary.rippleLight};
|
|
16650
|
-
|
|
16651
|
-
.dot-td-checkbox .dot-checkbox,
|
|
16652
|
-
.dot-td .dot-typography {
|
|
16653
|
-
color: ${theme.palette.figma.typography.black};
|
|
16654
|
-
}
|
|
16655
|
-
}
|
|
16656
|
-
}
|
|
16657
|
-
|
|
16658
|
-
&:hover {
|
|
16659
|
-
background: ${theme.palette.figma.overlay.table.hoverRow};
|
|
16660
|
-
}
|
|
16661
|
-
}
|
|
16662
|
-
`}
|
|
16663
|
-
`;
|
|
16664
|
-
|
|
16665
16748
|
const TABLE_TYPOGRAPHY_VARIANT = 'body1';
|
|
16666
16749
|
const TABLE_DEFAULT_SKELETON_ROWS = 4;
|
|
16667
16750
|
|
|
16668
|
-
const rootClassName$
|
|
16751
|
+
const rootClassName$l = 'dot-th-checkbox';
|
|
16669
16752
|
const styledTableHeaderCheckboxElement = (isCell = true) => {
|
|
16670
16753
|
return styled(isCell ? TableCell : 'div')`
|
|
16671
16754
|
${({
|
|
16672
16755
|
theme
|
|
16673
16756
|
}) => css`
|
|
16674
|
-
&.${rootClassName$
|
|
16757
|
+
&.${rootClassName$l} {
|
|
16675
16758
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
16676
16759
|
padding: ${theme.spacing(0, 1)};
|
|
16677
16760
|
width: ${theme.spacing(5)};
|
|
@@ -16699,7 +16782,7 @@ const DotHeaderCheckboxCell = ({
|
|
|
16699
16782
|
isFromTableSelectionToolbar,
|
|
16700
16783
|
multiSelectHeader
|
|
16701
16784
|
}) => {
|
|
16702
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
16785
|
+
const rootClasses = useStylesWithRootClass(rootClassName$l, className, isFromTableSelectionToolbar ? 'table-selection-toolbar-checkbox' : '');
|
|
16703
16786
|
const [multiSelectState, setMultiSelectState] = useState('unchecked');
|
|
16704
16787
|
const {
|
|
16705
16788
|
onCheckAllChange,
|
|
@@ -16749,12 +16832,12 @@ const DotHeaderCheckboxCell = ({
|
|
|
16749
16832
|
});
|
|
16750
16833
|
};
|
|
16751
16834
|
|
|
16752
|
-
const rootClassName$
|
|
16835
|
+
const rootClassName$k = 'dot-th';
|
|
16753
16836
|
const StyledTableHeaderCell = styled(TableCell)`
|
|
16754
16837
|
${({
|
|
16755
16838
|
theme
|
|
16756
16839
|
}) => css`
|
|
16757
|
-
&.${rootClassName$
|
|
16840
|
+
&.${rootClassName$k} {
|
|
16758
16841
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
16759
16842
|
|
|
16760
16843
|
&.MuiTableCell-alignCenter > span.MuiTableSortLabel-root {
|
|
@@ -16781,17 +16864,20 @@ const StyledTableHeaderCell = styled(TableCell)`
|
|
|
16781
16864
|
*/
|
|
16782
16865
|
const DotHeaderCell = ({
|
|
16783
16866
|
align,
|
|
16867
|
+
className,
|
|
16784
16868
|
typography,
|
|
16785
16869
|
createSortHandler,
|
|
16786
16870
|
id,
|
|
16787
16871
|
order,
|
|
16788
16872
|
orderBy,
|
|
16873
|
+
pinned,
|
|
16789
16874
|
sortable = true,
|
|
16790
16875
|
sortDirection,
|
|
16791
16876
|
uid,
|
|
16792
16877
|
value,
|
|
16793
16878
|
width
|
|
16794
16879
|
}) => {
|
|
16880
|
+
const rootClasses = useStylesWithRootClass(rootClassName$k, pinned ? 'dot-pinned-cell' : '', className);
|
|
16795
16881
|
const headerTitle = isString$2(value) ? value : null;
|
|
16796
16882
|
const formattedValue = getFormattedTableCellValue(value, typography);
|
|
16797
16883
|
const getCellValue = () => {
|
|
@@ -16813,7 +16899,7 @@ const DotHeaderCell = ({
|
|
|
16813
16899
|
return jsx(StyledTableHeaderCell, {
|
|
16814
16900
|
align: align,
|
|
16815
16901
|
classes: {
|
|
16816
|
-
root:
|
|
16902
|
+
root: rootClasses
|
|
16817
16903
|
},
|
|
16818
16904
|
sortDirection: sortable ? sortDirection : undefined,
|
|
16819
16905
|
style: headerCellStyle,
|
|
@@ -16833,6 +16919,7 @@ const DotHeaderRow = ({
|
|
|
16833
16919
|
onRequestSort,
|
|
16834
16920
|
order,
|
|
16835
16921
|
orderBy,
|
|
16922
|
+
pinnedFirstColumn,
|
|
16836
16923
|
sortable = false,
|
|
16837
16924
|
typography
|
|
16838
16925
|
}) => {
|
|
@@ -16855,16 +16942,19 @@ const DotHeaderRow = ({
|
|
|
16855
16942
|
},
|
|
16856
16943
|
children: [multiSelectHeader && renderMultiSelectCell(), collapsibleTableOptions && jsx(DotHeaderCell, {
|
|
16857
16944
|
"aria-hidden": "true",
|
|
16945
|
+
className: "dot-th-expand-collapse",
|
|
16858
16946
|
sortable: false,
|
|
16859
16947
|
typography: typography,
|
|
16860
16948
|
uid: CreateUUID()
|
|
16861
|
-
}), columns.map(cell => {
|
|
16949
|
+
}), columns.map((cell, index) => {
|
|
16950
|
+
const isPinnedColumn = !!pinnedFirstColumn && index === 0;
|
|
16862
16951
|
return jsx(DotHeaderCell, {
|
|
16863
16952
|
align: cell.align,
|
|
16864
16953
|
createSortHandler: createSortHandler,
|
|
16865
16954
|
id: cell.id,
|
|
16866
16955
|
order: order,
|
|
16867
16956
|
orderBy: orderBy,
|
|
16957
|
+
pinned: isPinnedColumn,
|
|
16868
16958
|
sortDirection: orderBy === cell.id ? order : undefined,
|
|
16869
16959
|
sortable: sortable && cell.sortable,
|
|
16870
16960
|
truncate: cell.truncate,
|
|
@@ -16878,6 +16968,52 @@ const DotHeaderRow = ({
|
|
|
16878
16968
|
});
|
|
16879
16969
|
};
|
|
16880
16970
|
|
|
16971
|
+
const rootClassName$j = 'dot-tr';
|
|
16972
|
+
const StyledTableRowStyles = styled(TableRow)`
|
|
16973
|
+
${({
|
|
16974
|
+
theme
|
|
16975
|
+
}) => css`
|
|
16976
|
+
&.${rootClassName$j} {
|
|
16977
|
+
&.selected {
|
|
16978
|
+
&,
|
|
16979
|
+
.dot-td.dot-pinned-cell,
|
|
16980
|
+
.dot-td-checkbox,
|
|
16981
|
+
.dot-td-expand-collapse {
|
|
16982
|
+
background: ${theme.palette.figma.overlay.table.highlights};
|
|
16983
|
+
}
|
|
16984
|
+
|
|
16985
|
+
.dot-td-checkbox .dot-checkbox,
|
|
16986
|
+
.dot-td .dot-typography {
|
|
16987
|
+
color: ${theme.palette.figma.overlay.table.text};
|
|
16988
|
+
}
|
|
16989
|
+
|
|
16990
|
+
&:hover {
|
|
16991
|
+
&,
|
|
16992
|
+
.dot-td.dot-pinned-cell,
|
|
16993
|
+
.dot-td-checkbox,
|
|
16994
|
+
.dot-td-expand-collapse {
|
|
16995
|
+
background: ${theme.palette.figma.primary.rippleLight};
|
|
16996
|
+
}
|
|
16997
|
+
|
|
16998
|
+
.dot-td-checkbox .dot-checkbox,
|
|
16999
|
+
.dot-td .dot-typography {
|
|
17000
|
+
color: ${theme.palette.figma.typography.black};
|
|
17001
|
+
}
|
|
17002
|
+
}
|
|
17003
|
+
}
|
|
17004
|
+
|
|
17005
|
+
&:hover {
|
|
17006
|
+
&,
|
|
17007
|
+
.dot-td.dot-pinned-cell,
|
|
17008
|
+
.dot-td-checkbox,
|
|
17009
|
+
.dot-td-expand-collapse {
|
|
17010
|
+
background: ${theme.palette.figma.overlay.table.hoverRow};
|
|
17011
|
+
}
|
|
17012
|
+
}
|
|
17013
|
+
}
|
|
17014
|
+
`}
|
|
17015
|
+
`;
|
|
17016
|
+
|
|
16881
17017
|
const CollapsibleTableBody = ({
|
|
16882
17018
|
nestedTableBodyTypography = TABLE_TYPOGRAPHY_VARIANT,
|
|
16883
17019
|
nestedTableColumns,
|
|
@@ -17063,12 +17199,12 @@ const ExpandCollapseCell = ({
|
|
|
17063
17199
|
});
|
|
17064
17200
|
};
|
|
17065
17201
|
|
|
17066
|
-
const rootClassName$
|
|
17202
|
+
const rootClassName$i = 'dot-td-checkbox';
|
|
17067
17203
|
const StyledTableBodyCheckboxCell = styled(TableCell)`
|
|
17068
17204
|
${({
|
|
17069
17205
|
theme
|
|
17070
17206
|
}) => css`
|
|
17071
|
-
&.${rootClassName$
|
|
17207
|
+
&.${rootClassName$i} {
|
|
17072
17208
|
padding: ${theme.spacing(0, 1)};
|
|
17073
17209
|
width: ${theme.spacing(5)};
|
|
17074
17210
|
|
|
@@ -17087,7 +17223,7 @@ const DotBodyCheckboxCell = ({
|
|
|
17087
17223
|
onChange,
|
|
17088
17224
|
rowId
|
|
17089
17225
|
}) => {
|
|
17090
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17226
|
+
const rootClasses = useStylesWithRootClass(rootClassName$i, className);
|
|
17091
17227
|
const [isCheckboxChecked, setIsCheckboxChecked] = useState(isChecked);
|
|
17092
17228
|
/** This effect is used when 'checked' status is changed from the outside */
|
|
17093
17229
|
useEffect(() => {
|
|
@@ -17124,6 +17260,7 @@ const DotTableRow = ({
|
|
|
17124
17260
|
multiSelectBody,
|
|
17125
17261
|
onActionMenuTrigger,
|
|
17126
17262
|
onClick,
|
|
17263
|
+
pinnedFirstColumn,
|
|
17127
17264
|
rowKey,
|
|
17128
17265
|
selected,
|
|
17129
17266
|
typography
|
|
@@ -17139,7 +17276,7 @@ const DotTableRow = ({
|
|
|
17139
17276
|
selectedTableRowIds
|
|
17140
17277
|
} = multiSelectBody || {};
|
|
17141
17278
|
const isCheckboxChecked = selectedTableRowIds && selectedTableRowIds.includes(id) || false;
|
|
17142
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17279
|
+
const rootClasses = useStylesWithRootClass(rootClassName$j, isCheckboxChecked ? 'selected' : undefined, className);
|
|
17143
17280
|
const renderCheckboxCell = () => {
|
|
17144
17281
|
return jsx(DotBodyCheckboxCell, {
|
|
17145
17282
|
ariaLabel: "Click to select this row",
|
|
@@ -17188,12 +17325,13 @@ const DotTableRow = ({
|
|
|
17188
17325
|
},
|
|
17189
17326
|
onClick: handleOnClick,
|
|
17190
17327
|
selected: selected,
|
|
17191
|
-
children: [multiSelectBody && renderCheckboxCell(), collapsibleTableBody && renderExpandCollapseCell(), columns.map(column => {
|
|
17328
|
+
children: [multiSelectBody && renderCheckboxCell(), collapsibleTableBody && renderExpandCollapseCell(), columns.map((column, index) => {
|
|
17329
|
+
const isPinnedColumn = pinnedFirstColumn && index === 0;
|
|
17192
17330
|
return jsx(DotBodyCell, {
|
|
17193
17331
|
align: column.align,
|
|
17194
17332
|
cellKey: rowKey,
|
|
17195
17333
|
typography: typography,
|
|
17196
|
-
className: rowData.className && `${rowData.className}-${column.id}`,
|
|
17334
|
+
className: useStylesWithRootClass(rowData.className && `${rowData.className}-${column.id}`, isPinnedColumn ? 'dot-pinned-cell' : ''),
|
|
17197
17335
|
noWrap: column.truncate,
|
|
17198
17336
|
onActionMenuTrigger: (menuRef, menuItem) => onActionMenuTrigger(menuRef, menuItem),
|
|
17199
17337
|
style: {
|
|
@@ -17219,6 +17357,7 @@ const DotTableBody = ({
|
|
|
17219
17357
|
emptyMessage,
|
|
17220
17358
|
multiSelectBody,
|
|
17221
17359
|
onRowClick,
|
|
17360
|
+
pinnedFirstColumn,
|
|
17222
17361
|
typography
|
|
17223
17362
|
}) => {
|
|
17224
17363
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
@@ -17248,6 +17387,7 @@ const DotTableBody = ({
|
|
|
17248
17387
|
multiSelectBody: multiSelectBody,
|
|
17249
17388
|
onActionMenuTrigger: handleActionMenuTrigger,
|
|
17250
17389
|
onClick: onRowClick,
|
|
17390
|
+
pinnedFirstColumn: pinnedFirstColumn,
|
|
17251
17391
|
rowKey: `${tableId}-row-${index}`,
|
|
17252
17392
|
selected: row.selected,
|
|
17253
17393
|
typography: typography
|
|
@@ -17257,7 +17397,7 @@ const DotTableBody = ({
|
|
|
17257
17397
|
return jsxs(Fragment, {
|
|
17258
17398
|
children: [jsx(StyledTableBody, {
|
|
17259
17399
|
classes: {
|
|
17260
|
-
root: rootClassName$
|
|
17400
|
+
root: rootClassName$n
|
|
17261
17401
|
},
|
|
17262
17402
|
children: getTableBodyRows()
|
|
17263
17403
|
}), jsx(StyledMenu$1, {
|
|
@@ -17272,12 +17412,12 @@ const DotTableBody = ({
|
|
|
17272
17412
|
});
|
|
17273
17413
|
};
|
|
17274
17414
|
|
|
17275
|
-
const rootClassName$
|
|
17415
|
+
const rootClassName$h = 'dot-table-selection-toolbar';
|
|
17276
17416
|
const StyledTableSelectionToolbar = styled(DotActionToolbar)`
|
|
17277
17417
|
${({
|
|
17278
17418
|
theme
|
|
17279
17419
|
}) => css`
|
|
17280
|
-
&.${rootClassName$
|
|
17420
|
+
&.${rootClassName$h} {
|
|
17281
17421
|
display: flex;
|
|
17282
17422
|
align-items: center;
|
|
17283
17423
|
justify-content: space-between;
|
|
@@ -17332,7 +17472,7 @@ const DotTableSelectionToolbar = ({
|
|
|
17332
17472
|
multiSelectHeader,
|
|
17333
17473
|
selectedRowsNumber
|
|
17334
17474
|
}) => {
|
|
17335
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17475
|
+
const rootClasses = useStylesWithRootClass(rootClassName$h, className);
|
|
17336
17476
|
return jsxs(StyledTableSelectionToolbar, {
|
|
17337
17477
|
ariaLabel: ariaLabel,
|
|
17338
17478
|
className: rootClasses,
|
|
@@ -17362,31 +17502,6 @@ const DotTableSelectionToolbar = ({
|
|
|
17362
17502
|
});
|
|
17363
17503
|
};
|
|
17364
17504
|
|
|
17365
|
-
const sortComparator = (a, b, orderBy) => {
|
|
17366
|
-
const {
|
|
17367
|
-
valueA,
|
|
17368
|
-
valueB
|
|
17369
|
-
} = getValuesForSort(a, b, orderBy);
|
|
17370
|
-
if (valueB < valueA) {
|
|
17371
|
-
return -1;
|
|
17372
|
-
}
|
|
17373
|
-
if (valueB > valueA) {
|
|
17374
|
-
return 1;
|
|
17375
|
-
}
|
|
17376
|
-
return 0;
|
|
17377
|
-
};
|
|
17378
|
-
const getComparator = (order, orderBy) => (a, b) => {
|
|
17379
|
-
const compare = sortComparator(a, b, orderBy);
|
|
17380
|
-
return order === 'desc' ? compare : -compare;
|
|
17381
|
-
};
|
|
17382
|
-
function stableSort(array, comparator) {
|
|
17383
|
-
const stabilizedThis = array.map((el, index) => [el, index]);
|
|
17384
|
-
stabilizedThis.sort((order, orderBy) => {
|
|
17385
|
-
const newOrder = comparator(order[0], orderBy[0]);
|
|
17386
|
-
return newOrder !== 0 ? newOrder : order[1] - orderBy[1];
|
|
17387
|
-
});
|
|
17388
|
-
return stabilizedThis.map(el => el[0]);
|
|
17389
|
-
}
|
|
17390
17505
|
// https://material-ui.com/components/tables/#custom-pagination-options
|
|
17391
17506
|
/**
|
|
17392
17507
|
* A wrapper component around the Table component from @material-ui. This component can be used for
|
|
@@ -17414,6 +17529,7 @@ const DotTable = ({
|
|
|
17414
17529
|
onRowClick,
|
|
17415
17530
|
onUpdateData,
|
|
17416
17531
|
page = 0,
|
|
17532
|
+
pinnedFirstColumn,
|
|
17417
17533
|
rowsPerPage,
|
|
17418
17534
|
rowsPerPageOptions,
|
|
17419
17535
|
stickyHeader = true,
|
|
@@ -17428,11 +17544,14 @@ const DotTable = ({
|
|
|
17428
17544
|
const [expandedRowIds, setExpandedRowIds] = useState([]);
|
|
17429
17545
|
const selectedRowsNumber = selectedRowIds.length;
|
|
17430
17546
|
const showMultiselectOverTableHeaderRow = checkIsMultiselectOverTableHeaderRow(multiSelect, !!toolbar);
|
|
17431
|
-
const
|
|
17432
|
-
|
|
17433
|
-
|
|
17434
|
-
|
|
17435
|
-
|
|
17547
|
+
const [pageData, setPageData] = useState(getSortedPageData({
|
|
17548
|
+
data,
|
|
17549
|
+
onUpdateData,
|
|
17550
|
+
orderBy,
|
|
17551
|
+
order,
|
|
17552
|
+
rowsPerPage
|
|
17553
|
+
}));
|
|
17554
|
+
const rootClasses = useStylesWithRootClass(rootClassName$o, className, loading ? 'loading' : '', showMultiselectOverTableHeaderRow ? 'with-multiselect-over-table-header' : '', showMultiselectOverTableHeaderRow && !selectedRowsNumber ? 'hidden-multiselect' : '');
|
|
17436
17555
|
const updateData = (newOrder, newOrderBy, newPage, newRowsPerPage) => {
|
|
17437
17556
|
const newData = stableSort(data, getComparator(newOrder, newOrderBy));
|
|
17438
17557
|
setPageData(newRowsPerPage ? newData.slice(newPage * newRowsPerPage, newPage * newRowsPerPage + newRowsPerPage) : newData);
|
|
@@ -17471,7 +17590,9 @@ const DotTable = ({
|
|
|
17471
17590
|
});
|
|
17472
17591
|
});
|
|
17473
17592
|
for (let i = 0; i < (rowsPerPage ? rowsPerPage : TABLE_DEFAULT_SKELETON_ROWS); i++) {
|
|
17474
|
-
skeletonData.push(
|
|
17593
|
+
skeletonData.push(Object.assign({
|
|
17594
|
+
id: `skeleton-row-${i}`
|
|
17595
|
+
}, skeletonRow));
|
|
17475
17596
|
}
|
|
17476
17597
|
return skeletonData;
|
|
17477
17598
|
};
|
|
@@ -17491,13 +17612,8 @@ const DotTable = ({
|
|
|
17491
17612
|
const totalCount = onUpdateData ? validCount : data.length;
|
|
17492
17613
|
return rowsPerPage ? totalCount : null;
|
|
17493
17614
|
};
|
|
17494
|
-
|
|
17495
|
-
|
|
17496
|
-
}
|
|
17497
|
-
if (count && !onUpdateData) {
|
|
17498
|
-
console.warn("'count' prop is ignored as it can be determined by 'data.length' for internally paginated table (no 'onUpdateData' callback provided)");
|
|
17499
|
-
}
|
|
17500
|
-
const tableClasses = useStylesWithRootClass('dot-table', rowsPerPage ? 'dot-table-paginated' : '');
|
|
17615
|
+
warnIfCountIgnored(count, onUpdateData, rowsPerPage);
|
|
17616
|
+
const tableClasses = useStylesWithRootClass('dot-table', rowsPerPage ? 'dot-table-paginated' : '', pinnedFirstColumn ? 'dot-table-pinned' : '', multiSelect ? 'dot-table-multiselect' : '', collapsibleTableOptions ? 'dot-table-collapsible' : '');
|
|
17501
17617
|
const maxHeightStyle = getContainerMaxHeightStyle(stickyHeader, maxHeight);
|
|
17502
17618
|
const handleCheckAllChange = isChecked => {
|
|
17503
17619
|
setSelectedRowIds(prevRowIds => {
|
|
@@ -17578,6 +17694,7 @@ const DotTable = ({
|
|
|
17578
17694
|
onRequestSort: onSortRequest,
|
|
17579
17695
|
order: tableOrder,
|
|
17580
17696
|
orderBy: tableOrderBy,
|
|
17697
|
+
pinnedFirstColumn: pinnedFirstColumn,
|
|
17581
17698
|
sortable: sortable,
|
|
17582
17699
|
typography: headerTypography
|
|
17583
17700
|
}), jsx(DotTableBody, {
|
|
@@ -17588,6 +17705,7 @@ const DotTable = ({
|
|
|
17588
17705
|
emptyMessage: emptyMessage,
|
|
17589
17706
|
multiSelectBody: multiSelectBody,
|
|
17590
17707
|
onRowClick: onRowClick,
|
|
17708
|
+
pinnedFirstColumn: pinnedFirstColumn,
|
|
17591
17709
|
typography: bodyTypography
|
|
17592
17710
|
})]
|
|
17593
17711
|
})
|
|
@@ -17636,7 +17754,7 @@ const DotTableAction = ({
|
|
|
17636
17754
|
});
|
|
17637
17755
|
};
|
|
17638
17756
|
|
|
17639
|
-
const rootClassName$
|
|
17757
|
+
const rootClassName$g = 'dot-table-actions';
|
|
17640
17758
|
const TableActionsContainer = styled.div`
|
|
17641
17759
|
overflow: hidden;
|
|
17642
17760
|
text-overflow: clip;
|
|
@@ -17726,7 +17844,7 @@ const DotTableActions = ({
|
|
|
17726
17844
|
};
|
|
17727
17845
|
return jsxs(Fragment, {
|
|
17728
17846
|
children: [jsxs(TableActionsContainer, {
|
|
17729
|
-
className: rootClassName$
|
|
17847
|
+
className: rootClassName$g,
|
|
17730
17848
|
ref: wrapperRef,
|
|
17731
17849
|
children: [!showMenu && renderTableActions(), (showMenu || actions.length > 2) && jsx(DotIconButton, {
|
|
17732
17850
|
ariaLabel: "more options",
|
|
@@ -17750,12 +17868,12 @@ const DotTableActions = ({
|
|
|
17750
17868
|
});
|
|
17751
17869
|
};
|
|
17752
17870
|
|
|
17753
|
-
const rootClassName$
|
|
17871
|
+
const rootClassName$f = 'dot-tabs';
|
|
17754
17872
|
const StyledTabs = styled(Tabs)`
|
|
17755
17873
|
${({
|
|
17756
17874
|
theme
|
|
17757
17875
|
}) => css`
|
|
17758
|
-
&.${rootClassName$
|
|
17876
|
+
&.${rootClassName$f} {
|
|
17759
17877
|
&.MuiTabs-root {
|
|
17760
17878
|
width: 100%;
|
|
17761
17879
|
}
|
|
@@ -17808,7 +17926,7 @@ const DotTabs = ({
|
|
|
17808
17926
|
centered = false,
|
|
17809
17927
|
className,
|
|
17810
17928
|
color,
|
|
17811
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
17929
|
+
'data-pendoid': dataPendoId = rootClassName$f,
|
|
17812
17930
|
'data-testid': dataTestId,
|
|
17813
17931
|
initialValue = 0,
|
|
17814
17932
|
onChange,
|
|
@@ -17817,7 +17935,7 @@ const DotTabs = ({
|
|
|
17817
17935
|
variant = 'standard'
|
|
17818
17936
|
}) => {
|
|
17819
17937
|
const [value, setValue] = useState(initialValue);
|
|
17820
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17938
|
+
const rootClasses = useStylesWithRootClass(rootClassName$f, className);
|
|
17821
17939
|
useEffect(() => {
|
|
17822
17940
|
if (color) {
|
|
17823
17941
|
console.warn('DEPRECATED: `color` prop is deprecated in `<DotTabs>`, please remove any usage of it in your application.');
|
|
@@ -17871,9 +17989,9 @@ const DotTabs = ({
|
|
|
17871
17989
|
});
|
|
17872
17990
|
};
|
|
17873
17991
|
|
|
17874
|
-
const rootClassName$
|
|
17875
|
-
const containerClassName = `${rootClassName$
|
|
17876
|
-
const dropZoneClassName = `${rootClassName$
|
|
17992
|
+
const rootClassName$e = 'dot-file-upload';
|
|
17993
|
+
const containerClassName = `${rootClassName$e}-container`;
|
|
17994
|
+
const dropZoneClassName = `${rootClassName$e}-drop-zone`;
|
|
17877
17995
|
const StyledFileUploadContainer = styled.div`
|
|
17878
17996
|
${({
|
|
17879
17997
|
theme
|
|
@@ -17893,7 +18011,7 @@ const StyledFileUpload = styled.div`
|
|
|
17893
18011
|
${({
|
|
17894
18012
|
theme
|
|
17895
18013
|
}) => css`
|
|
17896
|
-
&.${rootClassName$
|
|
18014
|
+
&.${rootClassName$e}.${dropZoneClassName} {
|
|
17897
18015
|
align-items: center;
|
|
17898
18016
|
background: ${theme.palette.figma.background.level0.bckgGray};
|
|
17899
18017
|
border: 2px dashed ${theme.palette.figma.border.defaultButton};
|
|
@@ -17924,12 +18042,12 @@ const StyledFileUpload = styled.div`
|
|
|
17924
18042
|
`}
|
|
17925
18043
|
`;
|
|
17926
18044
|
|
|
17927
|
-
const rootClassName$
|
|
18045
|
+
const rootClassName$d = 'dot-file-list-item';
|
|
17928
18046
|
const StyledFileListItem = styled(StyledListItem)`
|
|
17929
18047
|
${({
|
|
17930
18048
|
theme
|
|
17931
18049
|
}) => css`
|
|
17932
|
-
&.${rootClassName$
|
|
18050
|
+
&.${rootClassName$d} {
|
|
17933
18051
|
border-bottom: 1px solid ${theme.palette.figma.border.default};
|
|
17934
18052
|
&:hover {
|
|
17935
18053
|
cursor: pointer;
|
|
@@ -17941,7 +18059,7 @@ const StyledFileListItem = styled(StyledListItem)`
|
|
|
17941
18059
|
outline: none;
|
|
17942
18060
|
}
|
|
17943
18061
|
|
|
17944
|
-
&.file-success:not(:hover, :focus-visible) .${rootClassName$
|
|
18062
|
+
&.file-success:not(:hover, :focus-visible) .${rootClassName$d}-end-icon {
|
|
17945
18063
|
i:before {
|
|
17946
18064
|
color: ${theme.palette.figma.success.normal};
|
|
17947
18065
|
}
|
|
@@ -17951,7 +18069,7 @@ const StyledFileListItem = styled(StyledListItem)`
|
|
|
17951
18069
|
}
|
|
17952
18070
|
}
|
|
17953
18071
|
|
|
17954
|
-
&.file-error:not(:hover, :focus-visible) .${rootClassName$
|
|
18072
|
+
&.file-error:not(:hover, :focus-visible) .${rootClassName$d}-end-icon {
|
|
17955
18073
|
i:before,
|
|
17956
18074
|
.MuiListItemText-secondary {
|
|
17957
18075
|
color: ${theme.palette.figma.destructive.normal};
|
|
@@ -17993,7 +18111,7 @@ const DotFileListItem = ({
|
|
|
17993
18111
|
onKeyPress,
|
|
17994
18112
|
tabIndex = 0
|
|
17995
18113
|
}) => {
|
|
17996
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18114
|
+
const rootClasses = useStylesWithRootClass(rootClassName$d, className, error ? 'file-error' : 'file-success');
|
|
17997
18115
|
const defaultIcon = error ? 'error-solid' : 'check-solid';
|
|
17998
18116
|
const [endIcon, setEndIcon] = useState(defaultIcon);
|
|
17999
18117
|
const handleItemClick = clickedFile => _event => onClick === null || onClick === void 0 ? void 0 : onClick(clickedFile);
|
|
@@ -18026,7 +18144,7 @@ const DotFileListItem = ({
|
|
|
18026
18144
|
})]
|
|
18027
18145
|
}), jsx(DotIconButton, {
|
|
18028
18146
|
ariaLabel: "delete file",
|
|
18029
|
-
className: `${rootClassName$
|
|
18147
|
+
className: `${rootClassName$d}-end-icon`,
|
|
18030
18148
|
"data-testid": dataTestId && `${dataTestId}-end-icon`,
|
|
18031
18149
|
disabled: disableDelete,
|
|
18032
18150
|
iconId: endIcon,
|
|
@@ -18150,7 +18268,7 @@ const DotFileUpload = ({
|
|
|
18150
18268
|
buttonOnly = false,
|
|
18151
18269
|
className,
|
|
18152
18270
|
contentErrors,
|
|
18153
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
18271
|
+
'data-pendoid': dataPendoId = rootClassName$e,
|
|
18154
18272
|
'data-testid': dataTestId,
|
|
18155
18273
|
disabled,
|
|
18156
18274
|
hideFilesList,
|
|
@@ -18163,7 +18281,7 @@ const DotFileUpload = ({
|
|
|
18163
18281
|
const [uploadedFiles, setUploadedFiles] = useState([]);
|
|
18164
18282
|
const [hasMaxFilesError, setHasMaxFilesError] = useState(false);
|
|
18165
18283
|
const isUploadDisabled = disabled || maxFiles && uploadedFiles.length >= maxFiles;
|
|
18166
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18284
|
+
const rootClasses = useStylesWithRootClass(rootClassName$e, className, !buttonOnly ? dropZoneClassName : '', isUploadDisabled ? 'disabled' : '');
|
|
18167
18285
|
const maxFilesClasses = useStylesWithRootClass('dot-max-files-message', hasMaxFilesError ? 'dot-max-files-reached' : '');
|
|
18168
18286
|
const allowMultiple = maxFiles === undefined || maxFiles > 1;
|
|
18169
18287
|
const setNewlyUploadedFiles = (acceptedFiles, fileRejections) => {
|
|
@@ -18235,12 +18353,12 @@ const DotFileUpload = ({
|
|
|
18235
18353
|
});
|
|
18236
18354
|
};
|
|
18237
18355
|
|
|
18238
|
-
const rootClassName$
|
|
18356
|
+
const rootClassName$c = 'dot-divider';
|
|
18239
18357
|
const StyledDivider = styled(Divider)`
|
|
18240
18358
|
${({
|
|
18241
18359
|
theme
|
|
18242
18360
|
}) => css`
|
|
18243
|
-
&.${rootClassName$
|
|
18361
|
+
&.${rootClassName$c} {
|
|
18244
18362
|
color: ${theme.palette.figma.border.darker};
|
|
18245
18363
|
|
|
18246
18364
|
.MuiDivider-light {
|
|
@@ -18260,7 +18378,7 @@ const DotDivider = ({
|
|
|
18260
18378
|
orientation,
|
|
18261
18379
|
variant
|
|
18262
18380
|
}) => {
|
|
18263
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18381
|
+
const rootClasses = useStylesWithRootClass(rootClassName$c, className);
|
|
18264
18382
|
return jsx(StyledDivider, {
|
|
18265
18383
|
absolute: absolute,
|
|
18266
18384
|
"aria-label": ariaLabel,
|
|
@@ -18289,7 +18407,7 @@ const DotPopper = ({
|
|
|
18289
18407
|
placement
|
|
18290
18408
|
}) => {
|
|
18291
18409
|
const [arrowRef, setArrowRef] = useState(null);
|
|
18292
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18410
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1d, className);
|
|
18293
18411
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18294
18412
|
const handleClickAway = event => {
|
|
18295
18413
|
if (onClickAway && (!anchorEl || !anchorEl.contains(event.currentTarget))) {
|
|
@@ -18354,14 +18472,14 @@ const getListItemLayout = listItems => {
|
|
|
18354
18472
|
}));
|
|
18355
18473
|
};
|
|
18356
18474
|
|
|
18357
|
-
const rootClassName$
|
|
18475
|
+
const rootClassName$b = 'dot-draggable-list';
|
|
18358
18476
|
const listItemClassName = 'dot-draggable-list-item';
|
|
18359
18477
|
const StyledDraggableList = styled.div`
|
|
18360
18478
|
${({
|
|
18361
18479
|
theme,
|
|
18362
18480
|
draggableHandle
|
|
18363
18481
|
}) => css`
|
|
18364
|
-
&.${rootClassName$
|
|
18482
|
+
&.${rootClassName$b} {
|
|
18365
18483
|
padding: ${theme.spacing(1, 0)};
|
|
18366
18484
|
position: relative;
|
|
18367
18485
|
|
|
@@ -18396,7 +18514,7 @@ const ListGridLayout = WidthProvider(GridLayout);
|
|
|
18396
18514
|
const DotDraggableList = ({
|
|
18397
18515
|
ariaLabel,
|
|
18398
18516
|
className,
|
|
18399
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
18517
|
+
'data-pendoid': dataPendoId = rootClassName$b,
|
|
18400
18518
|
'data-testid': dataTestId,
|
|
18401
18519
|
disableDrag,
|
|
18402
18520
|
draggableHandle,
|
|
@@ -18405,7 +18523,7 @@ const DotDraggableList = ({
|
|
|
18405
18523
|
rowHeight = DEFAULT_LIST_ITEM_HEIGHT,
|
|
18406
18524
|
width = DEFAULT_LIST_WIDTH
|
|
18407
18525
|
}) => {
|
|
18408
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18526
|
+
const rootClasses = useStylesWithRootClass(rootClassName$b, className, draggableHandle ? 'with-draggable-handle' : '');
|
|
18409
18527
|
const listItemClasses = useStylesWithRootClass(listItemClassName, draggableHandle && !disableDrag ? 'with-handle-grab-cursor' : '', draggableHandle || disableDrag ? 'with-default-cursor' : '');
|
|
18410
18528
|
const listWidth = isNumber(width) ? `${width}px` : width;
|
|
18411
18529
|
const [orderedItems, setOrderedItems] = useState([]);
|
|
@@ -51755,7 +51873,7 @@ cjs.exports.DraggableCore = DraggableCore;
|
|
|
51755
51873
|
|
|
51756
51874
|
var Draggable$1 = cjs.exports;
|
|
51757
51875
|
|
|
51758
|
-
const rootClassName$
|
|
51876
|
+
const rootClassName$a = 'dot-draggable-window';
|
|
51759
51877
|
const defaultWidth = '600px';
|
|
51760
51878
|
const defaultHeight = '324px';
|
|
51761
51879
|
const StyledPaper = styled(Paper)`
|
|
@@ -51764,7 +51882,7 @@ const StyledPaper = styled(Paper)`
|
|
|
51764
51882
|
$maxHeight,
|
|
51765
51883
|
$maxWidth
|
|
51766
51884
|
}) => css`
|
|
51767
|
-
&.${rootClassName$
|
|
51885
|
+
&.${rootClassName$a} {
|
|
51768
51886
|
max-width: ${$maxWidth !== null && $maxWidth !== void 0 ? $maxWidth : defaultWidth};
|
|
51769
51887
|
max-height: ${$maxHeight !== null && $maxHeight !== void 0 ? $maxHeight : defaultHeight};
|
|
51770
51888
|
${$maxWidth ? '' : `width: ${defaultWidth};`}
|
|
@@ -51802,7 +51920,7 @@ const StyledPaper = styled(Paper)`
|
|
|
51802
51920
|
const DotDraggableWindow = ({
|
|
51803
51921
|
ariaLabel,
|
|
51804
51922
|
anchorEl,
|
|
51805
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
51923
|
+
'data-pendoid': dataPendoId = rootClassName$a,
|
|
51806
51924
|
'data-testid': dataTestId,
|
|
51807
51925
|
className,
|
|
51808
51926
|
children,
|
|
@@ -51811,7 +51929,7 @@ const DotDraggableWindow = ({
|
|
|
51811
51929
|
onClose,
|
|
51812
51930
|
title
|
|
51813
51931
|
}) => {
|
|
51814
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
51932
|
+
const rootClasses = useStylesWithRootClass(rootClassName$a, className);
|
|
51815
51933
|
const nodeRef = useRef(null);
|
|
51816
51934
|
return jsx(Draggable$1, {
|
|
51817
51935
|
bounds: "body",
|
|
@@ -51853,12 +51971,12 @@ const DotDraggableWindow = ({
|
|
|
51853
51971
|
});
|
|
51854
51972
|
};
|
|
51855
51973
|
|
|
51856
|
-
const rootClassName$
|
|
51974
|
+
const rootClassName$9 = 'dot-linear-progress';
|
|
51857
51975
|
const StyledLinearProgress = styled(LinearProgress)`
|
|
51858
51976
|
${({
|
|
51859
51977
|
theme
|
|
51860
51978
|
}) => css`
|
|
51861
|
-
&.${rootClassName$
|
|
51979
|
+
&.${rootClassName$9} {
|
|
51862
51980
|
&.MuiLinearProgress-colorError {
|
|
51863
51981
|
color: ${theme.palette.figma.inProgress.error};
|
|
51864
51982
|
}
|
|
@@ -51890,7 +52008,7 @@ const DotLinearProgress = ({
|
|
|
51890
52008
|
valueBuffer,
|
|
51891
52009
|
variant = 'indeterminate'
|
|
51892
52010
|
}) => {
|
|
51893
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
52011
|
+
const rootClasses = useStylesWithRootClass(rootClassName$9, className);
|
|
51894
52012
|
useEffect(() => {
|
|
51895
52013
|
if (!ariaLabel) {
|
|
51896
52014
|
console.warn('a11y: DotLinearProgress must have an ariaLabel to describe the progress bar');
|
|
@@ -51941,7 +52059,7 @@ const DotDatePicker = ({
|
|
|
51941
52059
|
autoFocus = false,
|
|
51942
52060
|
className,
|
|
51943
52061
|
closeOnSelect = true,
|
|
51944
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
52062
|
+
'data-pendoid': dataPendoId = rootClassName$C,
|
|
51945
52063
|
'data-testid': dataTestId,
|
|
51946
52064
|
defaultValue,
|
|
51947
52065
|
disableOpenPicker,
|
|
@@ -51982,7 +52100,7 @@ const DotDatePicker = ({
|
|
|
51982
52100
|
const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
|
|
51983
52101
|
const isInputReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
|
|
51984
52102
|
const inputRef = useRef(null);
|
|
51985
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
52103
|
+
const rootClasses = useStylesWithRootClass(rootClassName$C, className, isInputReadOnly ? 'read-only' : '');
|
|
51986
52104
|
const containerClasses = useStylesWithRootClass(containerClassName$2, fullWidth ? 'full-width' : '', className);
|
|
51987
52105
|
const focusInput = ref => {
|
|
51988
52106
|
setTimeout(() => {
|
|
@@ -52202,7 +52320,7 @@ const DotTimePicker = ({
|
|
|
52202
52320
|
ariaLabel,
|
|
52203
52321
|
autoFocus = false,
|
|
52204
52322
|
className,
|
|
52205
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
52323
|
+
'data-pendoid': dataPendoId = rootClassName$B,
|
|
52206
52324
|
'data-testid': dataTestId,
|
|
52207
52325
|
defaultValue,
|
|
52208
52326
|
disableOpenPicker = false,
|
|
@@ -52234,7 +52352,7 @@ const DotTimePicker = ({
|
|
|
52234
52352
|
const hasValueWithoutChangeHandler = value !== undefined && onChange === undefined;
|
|
52235
52353
|
const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
|
|
52236
52354
|
const isComponentReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
|
|
52237
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
52355
|
+
const rootClasses = useStylesWithRootClass(rootClassName$B, className, isComponentReadOnly ? 'read-only' : '');
|
|
52238
52356
|
const containerClasses = useStylesWithRootClass(containerClassName$1, fullWidth ? 'full-width' : '', className);
|
|
52239
52357
|
const inputRef = useRef(null);
|
|
52240
52358
|
const [isPickerOpened, setIsPickerOpened] = useState(false);
|
|
@@ -52526,13 +52644,13 @@ const DotTimePicker = ({
|
|
|
52526
52644
|
});
|
|
52527
52645
|
};
|
|
52528
52646
|
|
|
52529
|
-
const rootClassName$
|
|
52647
|
+
const rootClassName$8 = 'dot-carousel';
|
|
52530
52648
|
const StyledCarousel = styled.div`
|
|
52531
52649
|
${({
|
|
52532
52650
|
backgroundColor,
|
|
52533
52651
|
theme
|
|
52534
52652
|
}) => css`
|
|
52535
|
-
&.${rootClassName$
|
|
52653
|
+
&.${rootClassName$8} {
|
|
52536
52654
|
display: flex;
|
|
52537
52655
|
flex-direction: column;
|
|
52538
52656
|
justify-content: space-between;
|
|
@@ -52632,7 +52750,7 @@ const DotCarousel = ({
|
|
|
52632
52750
|
progressIndicator,
|
|
52633
52751
|
showPagesButtons = true
|
|
52634
52752
|
}) => {
|
|
52635
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
52753
|
+
const rootClasses = useStylesWithRootClass(rootClassName$8, className, backgroundColor ? 'with-background-color' : '');
|
|
52636
52754
|
const rightNavigationButtonClasses = useStylesWithRootClass('carousel-right-arrow', displayNavigationButtons);
|
|
52637
52755
|
const leftNavigationButtonClasses = useStylesWithRootClass('carousel-left-arrow', displayNavigationButtons);
|
|
52638
52756
|
const createUuids = () => {
|
|
@@ -52783,13 +52901,13 @@ const DotCarousel = ({
|
|
|
52783
52901
|
});
|
|
52784
52902
|
};
|
|
52785
52903
|
|
|
52786
|
-
const rootClassName$
|
|
52904
|
+
const rootClassName$7 = 'dot-sticky-with-border';
|
|
52787
52905
|
const StyledStickyWithBorder = styled.div`
|
|
52788
52906
|
${({
|
|
52789
52907
|
pinnedStickyBorder,
|
|
52790
52908
|
unpinnedStickyBorder
|
|
52791
52909
|
}) => css`
|
|
52792
|
-
&.${rootClassName$
|
|
52910
|
+
&.${rootClassName$7} {
|
|
52793
52911
|
position: sticky;
|
|
52794
52912
|
top: -1px;
|
|
52795
52913
|
|
|
@@ -52817,7 +52935,7 @@ const DotStickyWithBorder = ({
|
|
|
52817
52935
|
}) => {
|
|
52818
52936
|
const [isPinned, setIsPinned] = useState(false);
|
|
52819
52937
|
const ref = useRef();
|
|
52820
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
52938
|
+
const rootClasses = useStylesWithRootClass(rootClassName$7, className, isPinned ? 'pinned' : 'unpinned');
|
|
52821
52939
|
useEffect(() => {
|
|
52822
52940
|
const element = ref.current;
|
|
52823
52941
|
const observer = new IntersectionObserver(([e]) => setIsPinned(e.intersectionRatio < 1), {
|
|
@@ -52839,18 +52957,18 @@ const DotStickyWithBorder = ({
|
|
|
52839
52957
|
});
|
|
52840
52958
|
};
|
|
52841
52959
|
|
|
52842
|
-
const rootClassName$
|
|
52960
|
+
const rootClassName$6 = 'dot--board';
|
|
52843
52961
|
const classNames$5 = {
|
|
52844
|
-
root: rootClassName$
|
|
52845
|
-
spacingNormal: `${rootClassName$
|
|
52846
|
-
spacingDense: `${rootClassName$
|
|
52847
|
-
loading: `${rootClassName$
|
|
52962
|
+
root: rootClassName$6,
|
|
52963
|
+
spacingNormal: `${rootClassName$6}-normal`,
|
|
52964
|
+
spacingDense: `${rootClassName$6}-dense`,
|
|
52965
|
+
loading: `${rootClassName$6}-loading`
|
|
52848
52966
|
};
|
|
52849
52967
|
const StyledBoard = styled.div`
|
|
52850
52968
|
${({
|
|
52851
52969
|
theme
|
|
52852
52970
|
}) => css`
|
|
52853
|
-
&.${rootClassName$
|
|
52971
|
+
&.${rootClassName$6} {
|
|
52854
52972
|
display: flex;
|
|
52855
52973
|
overflow-x: auto;
|
|
52856
52974
|
flex: 1;
|
|
@@ -52858,7 +52976,7 @@ const StyledBoard = styled.div`
|
|
|
52858
52976
|
}
|
|
52859
52977
|
|
|
52860
52978
|
@media (max-width: 650px) {
|
|
52861
|
-
&.${rootClassName$
|
|
52979
|
+
&.${rootClassName$6} {
|
|
52862
52980
|
justify-content: center;
|
|
52863
52981
|
}
|
|
52864
52982
|
}
|
|
@@ -52959,18 +53077,18 @@ const Board = React__default.forwardRef(({
|
|
|
52959
53077
|
});
|
|
52960
53078
|
});
|
|
52961
53079
|
|
|
52962
|
-
const rootClassName$
|
|
53080
|
+
const rootClassName$5 = 'dot--board-column';
|
|
52963
53081
|
const classNames$4 = {
|
|
52964
|
-
root: rootClassName$
|
|
52965
|
-
spacingNormal: `${rootClassName$
|
|
52966
|
-
spacingDense: `${rootClassName$
|
|
52967
|
-
collapse: `${rootClassName$
|
|
53082
|
+
root: rootClassName$5,
|
|
53083
|
+
spacingNormal: `${rootClassName$5}-normal`,
|
|
53084
|
+
spacingDense: `${rootClassName$5}-dense`,
|
|
53085
|
+
collapse: `${rootClassName$5}-collapse`
|
|
52968
53086
|
};
|
|
52969
53087
|
const StyledBoardColumn = styled.div`
|
|
52970
53088
|
${({
|
|
52971
53089
|
theme
|
|
52972
53090
|
}) => css`
|
|
52973
|
-
&.${rootClassName$
|
|
53091
|
+
&.${rootClassName$5} {
|
|
52974
53092
|
display: flex;
|
|
52975
53093
|
flex-direction: column;
|
|
52976
53094
|
overflow: hidden;
|
|
@@ -53061,13 +53179,13 @@ const BoardColumn = React__default.forwardRef(({
|
|
|
53061
53179
|
});
|
|
53062
53180
|
});
|
|
53063
53181
|
|
|
53064
|
-
const rootClassName$
|
|
53182
|
+
const rootClassName$4 = 'dot--board-column-header';
|
|
53065
53183
|
const classNames$3 = {
|
|
53066
|
-
root: rootClassName$
|
|
53067
|
-
spacingNormal: `${rootClassName$
|
|
53068
|
-
spacingDense: `${rootClassName$
|
|
53069
|
-
colorBar: `${rootClassName$
|
|
53070
|
-
title: `${rootClassName$
|
|
53184
|
+
root: rootClassName$4,
|
|
53185
|
+
spacingNormal: `${rootClassName$4}-normal`,
|
|
53186
|
+
spacingDense: `${rootClassName$4}-dense`,
|
|
53187
|
+
colorBar: `${rootClassName$4}-color-bar`,
|
|
53188
|
+
title: `${rootClassName$4}-title`
|
|
53071
53189
|
};
|
|
53072
53190
|
const StyledBoardColumnHeader = styled.div`
|
|
53073
53191
|
${({
|
|
@@ -53135,11 +53253,11 @@ const BoardColumnHeader = ({
|
|
|
53135
53253
|
});
|
|
53136
53254
|
};
|
|
53137
53255
|
|
|
53138
|
-
const rootClassName$
|
|
53256
|
+
const rootClassName$3 = 'dot--board-column-items';
|
|
53139
53257
|
const classNames$2 = {
|
|
53140
|
-
root: rootClassName$
|
|
53141
|
-
spacingNormal: `${rootClassName$
|
|
53142
|
-
spacingDense: `${rootClassName$
|
|
53258
|
+
root: rootClassName$3,
|
|
53259
|
+
spacingNormal: `${rootClassName$3}-normal`,
|
|
53260
|
+
spacingDense: `${rootClassName$3}-dense`
|
|
53143
53261
|
};
|
|
53144
53262
|
const StyledBoardColumnItems = styled.div`
|
|
53145
53263
|
${({
|
|
@@ -53191,11 +53309,11 @@ const BoardColumnItems = ({
|
|
|
53191
53309
|
});
|
|
53192
53310
|
};
|
|
53193
53311
|
|
|
53194
|
-
const rootClassName$
|
|
53312
|
+
const rootClassName$2 = 'dot--board-column-action-bar';
|
|
53195
53313
|
const classNames$1 = {
|
|
53196
|
-
root: rootClassName$
|
|
53197
|
-
spacingNormal: `${rootClassName$
|
|
53198
|
-
spacingDense: `${rootClassName$
|
|
53314
|
+
root: rootClassName$2,
|
|
53315
|
+
spacingNormal: `${rootClassName$2}-normal`,
|
|
53316
|
+
spacingDense: `${rootClassName$2}-dense`
|
|
53199
53317
|
};
|
|
53200
53318
|
const StyledBoardColumnActionBar = styled(DotActionToolbar)`
|
|
53201
53319
|
${({
|
|
@@ -53266,13 +53384,13 @@ const BoardColumnCollapse = ({
|
|
|
53266
53384
|
return useMemo(() => collapsed ? children : null, [children, collapsed]);
|
|
53267
53385
|
};
|
|
53268
53386
|
|
|
53269
|
-
const rootClassName = 'dot--board-column-header';
|
|
53387
|
+
const rootClassName$1 = 'dot--board-column-header';
|
|
53270
53388
|
const classNames = {
|
|
53271
|
-
root: rootClassName,
|
|
53272
|
-
spacingNormal: `${rootClassName}-normal`,
|
|
53273
|
-
spacingDense: `${rootClassName}-dense`,
|
|
53274
|
-
title: `${rootClassName}-title`,
|
|
53275
|
-
text: `${rootClassName}-text`
|
|
53389
|
+
root: rootClassName$1,
|
|
53390
|
+
spacingNormal: `${rootClassName$1}-normal`,
|
|
53391
|
+
spacingDense: `${rootClassName$1}-dense`,
|
|
53392
|
+
title: `${rootClassName$1}-title`,
|
|
53393
|
+
text: `${rootClassName$1}-text`
|
|
53276
53394
|
};
|
|
53277
53395
|
const StyledBoardColumnSummary = styled.div`
|
|
53278
53396
|
${({
|
|
@@ -53334,4 +53452,71 @@ const BoardColumnSummary = ({
|
|
|
53334
53452
|
});
|
|
53335
53453
|
};
|
|
53336
53454
|
|
|
53337
|
-
|
|
53455
|
+
const rootClassName = 'dot-search';
|
|
53456
|
+
const StyledSearch = styled(DotInputText)`
|
|
53457
|
+
${({
|
|
53458
|
+
theme
|
|
53459
|
+
}) => css`
|
|
53460
|
+
&.${rootClassName} {
|
|
53461
|
+
&.with-value .MuiInputBase-root {
|
|
53462
|
+
background-color: ${theme.palette.figma.primary.light};
|
|
53463
|
+
|
|
53464
|
+
.icon-search,
|
|
53465
|
+
.clear-icon-button,
|
|
53466
|
+
input {
|
|
53467
|
+
color: ${theme.palette.figma.typography.link};
|
|
53468
|
+
}
|
|
53469
|
+
|
|
53470
|
+
&:not(.Mui-focused) {
|
|
53471
|
+
fieldset {
|
|
53472
|
+
border-color: ${theme.palette.figma.border.defaultButton};
|
|
53473
|
+
}
|
|
53474
|
+
|
|
53475
|
+
&:hover {
|
|
53476
|
+
background-color: ${theme.palette.primary['100']};
|
|
53477
|
+
|
|
53478
|
+
fieldset {
|
|
53479
|
+
border-color: ${theme.palette.figma.border.inputActive};
|
|
53480
|
+
}
|
|
53481
|
+
}
|
|
53482
|
+
}
|
|
53483
|
+
}
|
|
53484
|
+
}
|
|
53485
|
+
`}
|
|
53486
|
+
`;
|
|
53487
|
+
|
|
53488
|
+
const DotSearch = _a => {
|
|
53489
|
+
var {
|
|
53490
|
+
ariaLabel,
|
|
53491
|
+
className,
|
|
53492
|
+
'data-testid': dataTestId,
|
|
53493
|
+
disabled,
|
|
53494
|
+
hasDebounce = true,
|
|
53495
|
+
id = 'dot-search',
|
|
53496
|
+
name = 'dot-search',
|
|
53497
|
+
onSearch,
|
|
53498
|
+
onClear,
|
|
53499
|
+
placeholder = 'Search by...',
|
|
53500
|
+
value
|
|
53501
|
+
} = _a,
|
|
53502
|
+
rest = __rest(_a, ["ariaLabel", "className", 'data-testid', "disabled", "hasDebounce", "id", "name", "onSearch", "onClear", "placeholder", "value"]);
|
|
53503
|
+
const rootClasses = useStylesWithRootClass(rootClassName, className, value ? 'with-value' : '');
|
|
53504
|
+
return jsx(StyledSearch, Object.assign({}, rest, {
|
|
53505
|
+
"aria-label": ariaLabel,
|
|
53506
|
+
className: rootClasses,
|
|
53507
|
+
disabled: disabled,
|
|
53508
|
+
"data-testid": dataTestId,
|
|
53509
|
+
hasDebounce: hasDebounce,
|
|
53510
|
+
id: id,
|
|
53511
|
+
name: name,
|
|
53512
|
+
onChange: e => onSearch(e.target.value),
|
|
53513
|
+
onClear: onClear,
|
|
53514
|
+
placeholder: placeholder,
|
|
53515
|
+
startIcon: jsx(DotIcon, {
|
|
53516
|
+
iconId: "search"
|
|
53517
|
+
}),
|
|
53518
|
+
value: value
|
|
53519
|
+
}));
|
|
53520
|
+
};
|
|
53521
|
+
|
|
53522
|
+
export { ApiError$1 as ApiError, BoardStatusProvider, Cell, ColumnStatusProvider, CreateUUID, CssCell, CssGrid, CssGridDebug, DashboardAppTypeOptions, DashboardView, DatePickerKeydownContext, Daytime, DotAccordion, DotActionToolbar, DotAlertBanner, DotAnnotation, DotAppLogo, DotAppSwitcher, DotAppToolbar, DotAutoComplete, DotAvatar, DotAvatarGroup, DotAvatarWithDetails, DotBadge, Board as DotBoard, BoardColumn as DotBoardColumn, BoardColumnActionBar as DotBoardColumnActionBar, BoardColumnCollapse as DotBoardColumnCollapse, BoardColumnExpand as DotBoardColumnExpand, BoardColumnHeader as DotBoardColumnHeader, BoardColumnItems as DotBoardColumnItems, BoardColumnSummary as DotBoardColumnSummary, DotBreadcrumbs, DotButton, DotButtonToggle, DotCard, DotCardContent, DotCardFooter, DotCardHeader, DotCarousel, DotCheckbox, DotCheckboxGroup, DotChip, DotChipList, DotClickAwayListener, DotConfirmationDialog, DotCopyButton, DotCoreApiProvider, DotDashboardActions, DotDashboardDetails, DotDashboardDialog, DotDashboardHeader, DotDashboardOptionsMenu, DotDashboardPublishConfirm, DotDashboardStatusPill, DotDatePicker, DotDialog, DotDivider, DotDraggableList, DotDraggableWindow, DotDrawer, DotDynamicForm, DotEmptyFilterState, DotEmptyState, DotFileListItem, DotFileUpload, DotForm, DotFormGroup, DotHeaderRow, DotIcon, DotIconButton, DotIllustration, DotImpactDialog, DotInlineEdit, DotInputLabel, DotInputSelect, DotInputText, DotLinearProgress, DotLink, DotList, DotMenu, DotMenuList, DotMetadataApiProvider, DotNavigationRail, DotPill, DotPopper, DotProgress, DotProgressButton, DotRadioButton, DotRadioGroup, DotSearch, DotSidebar, DotSkeleton, DotSnackbar, DotSnackbarContainer, DotSnackbarProvider, DotSplitButton, DotStepper, DotStickyWithBorder, DotSwitch, DotTable, DotTableAction, DotTableActions, DotTablePagination, DotTabs, DotThemeProvider, DotTimePicker, DotTooltip, DotTruncateWithTooltip, DotTypography, avatarColors, breakpointOptions, checkIfValidDate, darkFigmaColors, lightThemeColors as lightColors, lightFigmaColors, mockScrollIntoView, parseAutoCompleteValue, variables as themeVariables, typographyOptions, useBoardStatus, useColumnStatus, useDotCoreApiContext, useDotMetadataApiContext, useDotSnackbarContext, useEnqueueErrorMessage, useKeyPress };
|