@digital-ai/dot-components 4.27.0 → 4.28.1
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
CHANGED
|
@@ -1390,7 +1390,7 @@ const readOnlyStyles = theme => css`
|
|
|
1390
1390
|
}
|
|
1391
1391
|
`;
|
|
1392
1392
|
|
|
1393
|
-
const rootClassName$
|
|
1393
|
+
const rootClassName$1q = 'dot-text-field';
|
|
1394
1394
|
const rootSelectClassName = 'dot-select-field';
|
|
1395
1395
|
const wrapperClassName$2 = 'dot-label-wrapper';
|
|
1396
1396
|
const labelClassName = 'dot-input-label';
|
|
@@ -1466,7 +1466,7 @@ const StyledTextField = styled(TextField)`
|
|
|
1466
1466
|
$maxRows,
|
|
1467
1467
|
$minRows
|
|
1468
1468
|
}) => css`
|
|
1469
|
-
&.${rootClassName$
|
|
1469
|
+
&.${rootClassName$1q} {
|
|
1470
1470
|
.MuiInputBase-root {
|
|
1471
1471
|
margin-bottom: 0;
|
|
1472
1472
|
|
|
@@ -1550,7 +1550,7 @@ const StyledTextField = styled(TextField)`
|
|
|
1550
1550
|
margin-right: ${theme.spacing(2)};
|
|
1551
1551
|
}
|
|
1552
1552
|
|
|
1553
|
-
&.${rootSelectClassName}, &.${rootClassName$
|
|
1553
|
+
&.${rootSelectClassName}, &.${rootClassName$1q} {
|
|
1554
1554
|
.${adornmentIconClassName} {
|
|
1555
1555
|
color: ${theme.palette.figma.icon.black};
|
|
1556
1556
|
p {
|
|
@@ -1655,13 +1655,13 @@ const StyledTextField = styled(TextField)`
|
|
|
1655
1655
|
`}
|
|
1656
1656
|
`;
|
|
1657
1657
|
|
|
1658
|
-
const rootClassName$
|
|
1658
|
+
const rootClassName$1p = 'dot-icon';
|
|
1659
1659
|
const aiIconClassName = 'dot-icon-ai';
|
|
1660
1660
|
const StyledIcon = styled(Icon)`
|
|
1661
1661
|
${({
|
|
1662
1662
|
theme
|
|
1663
1663
|
}) => css`
|
|
1664
|
-
&.${rootClassName$
|
|
1664
|
+
&.${rootClassName$1p} {
|
|
1665
1665
|
color: ${theme.palette.figma.icon.black};
|
|
1666
1666
|
font-size: 20px;
|
|
1667
1667
|
|
|
@@ -1711,7 +1711,7 @@ const DotIcon = ({
|
|
|
1711
1711
|
tooltip,
|
|
1712
1712
|
ai = false
|
|
1713
1713
|
}) => {
|
|
1714
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1714
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1p, className, ai ? aiIconClassName : '');
|
|
1715
1715
|
return jsx(DotTooltip, {
|
|
1716
1716
|
disableInteractive: disableInteractive,
|
|
1717
1717
|
childrenDisplayStyle: "inline-block",
|
|
@@ -1735,7 +1735,7 @@ const DotIcon = ({
|
|
|
1735
1735
|
});
|
|
1736
1736
|
};
|
|
1737
1737
|
|
|
1738
|
-
const rootClassName$
|
|
1738
|
+
const rootClassName$1o = 'dot-accordion';
|
|
1739
1739
|
const summaryClassName = 'dot-accordion-summary';
|
|
1740
1740
|
const detailClassName = 'dot-accordion-details';
|
|
1741
1741
|
const StyledAccordion = styled(Accordion)`
|
|
@@ -1746,7 +1746,7 @@ const StyledAccordion = styled(Accordion)`
|
|
|
1746
1746
|
background: ${theme.palette.figma.background.level1.white};
|
|
1747
1747
|
}
|
|
1748
1748
|
|
|
1749
|
-
&.${rootClassName$
|
|
1749
|
+
&.${rootClassName$1o} .${summaryClassName} {
|
|
1750
1750
|
align-items: center;
|
|
1751
1751
|
background: ${theme.palette.figma.background.level1.white};
|
|
1752
1752
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -1791,7 +1791,7 @@ const DotAccordion = ({
|
|
|
1791
1791
|
ariaLabel,
|
|
1792
1792
|
children,
|
|
1793
1793
|
className,
|
|
1794
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
1794
|
+
'data-pendoid': dataPendoId = rootClassName$1o,
|
|
1795
1795
|
'data-testid': dataTestId = 'dot-accordion',
|
|
1796
1796
|
disabled = false,
|
|
1797
1797
|
expanded,
|
|
@@ -1802,7 +1802,7 @@ const DotAccordion = ({
|
|
|
1802
1802
|
summary,
|
|
1803
1803
|
noWrap = true
|
|
1804
1804
|
}) => {
|
|
1805
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1805
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1o, className);
|
|
1806
1806
|
const [elevation, setElevation] = useState();
|
|
1807
1807
|
useEffect(() => {
|
|
1808
1808
|
if (onChange && expanded === undefined) {
|
|
@@ -1853,15 +1853,15 @@ const DotAccordion = ({
|
|
|
1853
1853
|
});
|
|
1854
1854
|
};
|
|
1855
1855
|
|
|
1856
|
-
const rootClassName$
|
|
1856
|
+
const rootClassName$1n = 'dot-action-toolbar';
|
|
1857
1857
|
const StyledToolbar = styled(Toolbar)`
|
|
1858
1858
|
${({
|
|
1859
1859
|
theme
|
|
1860
1860
|
}) => css`
|
|
1861
|
-
&.${rootClassName$
|
|
1861
|
+
&.${rootClassName$1n} {
|
|
1862
1862
|
border-bottom: 1px solid ${theme.palette.figma.border.default};
|
|
1863
1863
|
|
|
1864
|
-
.${rootClassName$
|
|
1864
|
+
.${rootClassName$1q} .MuiInputBase-root {
|
|
1865
1865
|
margin-bottom: 0;
|
|
1866
1866
|
}
|
|
1867
1867
|
}
|
|
@@ -1875,7 +1875,7 @@ const DotActionToolbar = ({
|
|
|
1875
1875
|
'data-testid': dataTestId,
|
|
1876
1876
|
variant = 'dense'
|
|
1877
1877
|
}) => {
|
|
1878
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1878
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1n, className);
|
|
1879
1879
|
return jsx(StyledToolbar, {
|
|
1880
1880
|
"aria-label": ariaLabel,
|
|
1881
1881
|
className: rootClasses,
|
|
@@ -1885,12 +1885,12 @@ const DotActionToolbar = ({
|
|
|
1885
1885
|
});
|
|
1886
1886
|
};
|
|
1887
1887
|
|
|
1888
|
-
const rootClassName$
|
|
1888
|
+
const rootClassName$1m = 'dot-alert-banner';
|
|
1889
1889
|
const StyledAlertBanner = styled(Alert)`
|
|
1890
1890
|
${({
|
|
1891
1891
|
theme
|
|
1892
1892
|
}) => css`
|
|
1893
|
-
&.${rootClassName$
|
|
1893
|
+
&.${rootClassName$1m} {
|
|
1894
1894
|
align-items: center;
|
|
1895
1895
|
box-sizing: border-box;
|
|
1896
1896
|
min-height: 48px;
|
|
@@ -1925,7 +1925,7 @@ const DotAlertBanner = ({
|
|
|
1925
1925
|
ariaLabel,
|
|
1926
1926
|
children,
|
|
1927
1927
|
className,
|
|
1928
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
1928
|
+
'data-pendoid': dataPendoId = rootClassName$1m,
|
|
1929
1929
|
'data-testid': dataTestId,
|
|
1930
1930
|
onClose,
|
|
1931
1931
|
roundedCorners = true,
|
|
@@ -1933,7 +1933,7 @@ const DotAlertBanner = ({
|
|
|
1933
1933
|
textVariant = 'body1',
|
|
1934
1934
|
width
|
|
1935
1935
|
}) => {
|
|
1936
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
1936
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1m, severity, className);
|
|
1937
1937
|
/* For simple string use default component, for everything else use 'div' */
|
|
1938
1938
|
const typographyComponent = isString$2(children) ? undefined : 'div';
|
|
1939
1939
|
return jsx(StyledAlertBanner, {
|
|
@@ -1976,12 +1976,12 @@ const DotAppLogo = ({
|
|
|
1976
1976
|
});
|
|
1977
1977
|
};
|
|
1978
1978
|
|
|
1979
|
-
const rootClassName$
|
|
1979
|
+
const rootClassName$1l = 'dot-annotation';
|
|
1980
1980
|
const StyledAnnotation = styled.kbd`
|
|
1981
1981
|
${({
|
|
1982
1982
|
theme
|
|
1983
1983
|
}) => css`
|
|
1984
|
-
&.${rootClassName$
|
|
1984
|
+
&.${rootClassName$1l} {
|
|
1985
1985
|
font-family: inherit;
|
|
1986
1986
|
background-color: ${theme.palette.figma.background.level0.bckgGray};
|
|
1987
1987
|
color: ${theme.palette.figma.typography.disabled};
|
|
@@ -2007,13 +2007,13 @@ const StyledAnnotation = styled.kbd`
|
|
|
2007
2007
|
|
|
2008
2008
|
const DotAnnotation = ({
|
|
2009
2009
|
ariaLabel,
|
|
2010
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
2010
|
+
'data-pendoid': dataPendoId = rootClassName$1l,
|
|
2011
2011
|
'data-testid': dataTestId,
|
|
2012
2012
|
className,
|
|
2013
2013
|
content,
|
|
2014
2014
|
type = 'primary'
|
|
2015
2015
|
}) => {
|
|
2016
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2016
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1l, className, type === 'secondary' ? 'secondary' : '');
|
|
2017
2017
|
return jsx(StyledAnnotation, {
|
|
2018
2018
|
"aria-label": ariaLabel,
|
|
2019
2019
|
className: rootClasses,
|
|
@@ -2658,7 +2658,7 @@ const useDotCoreApiContext = () => {
|
|
|
2658
2658
|
return useContext(DotCoreApiContext);
|
|
2659
2659
|
};
|
|
2660
2660
|
|
|
2661
|
-
const rootClassName$
|
|
2661
|
+
const rootClassName$1k = 'dot-avatar';
|
|
2662
2662
|
const avatarSpacing = {
|
|
2663
2663
|
small: 3,
|
|
2664
2664
|
medium: 5,
|
|
@@ -2668,7 +2668,7 @@ const StyledAvatar = styled(Avatar)`
|
|
|
2668
2668
|
${({
|
|
2669
2669
|
theme
|
|
2670
2670
|
}) => css`
|
|
2671
|
-
&.${rootClassName$
|
|
2671
|
+
&.${rootClassName$1k} {
|
|
2672
2672
|
display: inline-flex;
|
|
2673
2673
|
background-color: ${({
|
|
2674
2674
|
color
|
|
@@ -2781,7 +2781,7 @@ const DotAvatar = ({
|
|
|
2781
2781
|
variant = 'circular',
|
|
2782
2782
|
style
|
|
2783
2783
|
}) => {
|
|
2784
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
2784
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1k, className);
|
|
2785
2785
|
const getAvatarColor = () => {
|
|
2786
2786
|
if ((style === null || style === void 0 ? void 0 : style.color) !== undefined) return 'inherit';
|
|
2787
2787
|
if (color) return color;
|
|
@@ -2822,12 +2822,12 @@ const DotAvatar = ({
|
|
|
2822
2822
|
});
|
|
2823
2823
|
};
|
|
2824
2824
|
|
|
2825
|
-
const rootClassName$
|
|
2825
|
+
const rootClassName$1j = 'dot-button';
|
|
2826
2826
|
const StyledButton = styled(Button)`
|
|
2827
2827
|
${({
|
|
2828
2828
|
theme
|
|
2829
2829
|
}) => css`
|
|
2830
|
-
&.${rootClassName$
|
|
2830
|
+
&.${rootClassName$1j} {
|
|
2831
2831
|
background-color: ${theme.palette.figma.primary.normal};
|
|
2832
2832
|
margin: ${theme.spacing(0.5)};
|
|
2833
2833
|
padding: ${theme.spacing(0.75, 2)};
|
|
@@ -2980,7 +2980,7 @@ const DotButton = forwardRef(({
|
|
|
2980
2980
|
autoFocus = false,
|
|
2981
2981
|
children,
|
|
2982
2982
|
className,
|
|
2983
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
2983
|
+
'data-pendoid': dataPendoId = rootClassName$1j,
|
|
2984
2984
|
'data-testid': dataTestId,
|
|
2985
2985
|
disabled = false,
|
|
2986
2986
|
disableInteractive,
|
|
@@ -2998,7 +2998,7 @@ const DotButton = forwardRef(({
|
|
|
2998
2998
|
tooltipPlacement,
|
|
2999
2999
|
type = 'primary'
|
|
3000
3000
|
}, ref) => {
|
|
3001
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3001
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1j, className);
|
|
3002
3002
|
let color;
|
|
3003
3003
|
let variant;
|
|
3004
3004
|
switch (type) {
|
|
@@ -3029,7 +3029,7 @@ const DotButton = forwardRef(({
|
|
|
3029
3029
|
}
|
|
3030
3030
|
return jsx(DotTooltip, {
|
|
3031
3031
|
childrenDisplayStyle: "inline-block",
|
|
3032
|
-
"data-testid": `${dataTestId || rootClassName$
|
|
3032
|
+
"data-testid": `${dataTestId || rootClassName$1j}-tooltip`,
|
|
3033
3033
|
disableInteractive: disableInteractive,
|
|
3034
3034
|
placement: tooltipPlacement,
|
|
3035
3035
|
title: tooltip,
|
|
@@ -3041,7 +3041,7 @@ const DotButton = forwardRef(({
|
|
|
3041
3041
|
},
|
|
3042
3042
|
color: color,
|
|
3043
3043
|
"data-pendoid": dataPendoId,
|
|
3044
|
-
"data-testid": dataTestId || rootClassName$
|
|
3044
|
+
"data-testid": dataTestId || rootClassName$1j,
|
|
3045
3045
|
disableRipple: disableRipple,
|
|
3046
3046
|
disabled: disabled,
|
|
3047
3047
|
endIcon: endIcon,
|
|
@@ -3061,10 +3061,10 @@ const DotButton = forwardRef(({
|
|
|
3061
3061
|
});
|
|
3062
3062
|
});
|
|
3063
3063
|
|
|
3064
|
-
const rootClassName$
|
|
3064
|
+
const rootClassName$1i = 'dot-link';
|
|
3065
3065
|
const StyledLink = styled(Link)`
|
|
3066
3066
|
${() => css`
|
|
3067
|
-
&.${rootClassName$
|
|
3067
|
+
&.${rootClassName$1i} {
|
|
3068
3068
|
cursor: pointer;
|
|
3069
3069
|
|
|
3070
3070
|
&:hover.MuiLink-underlineHover {
|
|
@@ -3080,7 +3080,7 @@ const DotLink = ({
|
|
|
3080
3080
|
children,
|
|
3081
3081
|
className,
|
|
3082
3082
|
color = 'primary',
|
|
3083
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
3083
|
+
'data-pendoid': dataPendoId = rootClassName$1i,
|
|
3084
3084
|
'data-testid': dataTestId,
|
|
3085
3085
|
href,
|
|
3086
3086
|
onClick,
|
|
@@ -3093,7 +3093,7 @@ const DotLink = ({
|
|
|
3093
3093
|
underline = 'always',
|
|
3094
3094
|
variant = 'body1'
|
|
3095
3095
|
}) => {
|
|
3096
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3096
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1i, className);
|
|
3097
3097
|
useEffect(() => {
|
|
3098
3098
|
// Include a console warning if the link is not a string and no ariaLabel is provided
|
|
3099
3099
|
if (!isString$2(children) && !ariaLabel) {
|
|
@@ -3144,7 +3144,7 @@ const CreateUUID = () => {
|
|
|
3144
3144
|
});
|
|
3145
3145
|
};
|
|
3146
3146
|
|
|
3147
|
-
const rootClassName$
|
|
3147
|
+
const rootClassName$1h = 'dot-list';
|
|
3148
3148
|
const listItemRootClass = 'dot-list-item';
|
|
3149
3149
|
const nestedListClassName = 'dot-nested-list';
|
|
3150
3150
|
const nestedDrawerClassName = 'dot-nested-drawer';
|
|
@@ -3152,7 +3152,7 @@ const StyledList = styled(List)`
|
|
|
3152
3152
|
${({
|
|
3153
3153
|
theme
|
|
3154
3154
|
}) => css`
|
|
3155
|
-
&.${rootClassName$
|
|
3155
|
+
&.${rootClassName$1h} {
|
|
3156
3156
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
3157
3157
|
|
|
3158
3158
|
.dot-icon {
|
|
@@ -3246,12 +3246,12 @@ const DotListDivider = ({
|
|
|
3246
3246
|
});
|
|
3247
3247
|
};
|
|
3248
3248
|
|
|
3249
|
-
const rootClassName$
|
|
3249
|
+
const rootClassName$1g = 'dot-progress';
|
|
3250
3250
|
const StyledProgress = styled.div`
|
|
3251
3251
|
${({
|
|
3252
3252
|
theme
|
|
3253
3253
|
}) => css`
|
|
3254
|
-
&.${rootClassName$
|
|
3254
|
+
&.${rootClassName$1g} {
|
|
3255
3255
|
line-height: 0;
|
|
3256
3256
|
|
|
3257
3257
|
.dot-progress-with-label-wrapper {
|
|
@@ -3302,7 +3302,7 @@ const DotProgress = ({
|
|
|
3302
3302
|
value,
|
|
3303
3303
|
variant = 'indeterminate'
|
|
3304
3304
|
}) => {
|
|
3305
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3305
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1g, className);
|
|
3306
3306
|
useEffect(() => {
|
|
3307
3307
|
if (!ariaLabel) {
|
|
3308
3308
|
console.warn('a11y: DotProgress must have an ariaLabel to describe the progress component');
|
|
@@ -3368,13 +3368,13 @@ var variables = /*#__PURE__*/Object.freeze({
|
|
|
3368
3368
|
levelTop: levelTop
|
|
3369
3369
|
});
|
|
3370
3370
|
|
|
3371
|
-
const rootClassName$
|
|
3371
|
+
const rootClassName$1f = 'dot-popper';
|
|
3372
3372
|
const arrowClassName = 'MuiPopper-arrow';
|
|
3373
3373
|
const StyledPopper$1 = styled(Popper)`
|
|
3374
3374
|
${({
|
|
3375
3375
|
theme
|
|
3376
3376
|
}) => css`
|
|
3377
|
-
&.${rootClassName$
|
|
3377
|
+
&.${rootClassName$1f} {
|
|
3378
3378
|
font-family: ${theme.typography.fontFamily};
|
|
3379
3379
|
font-size: ${theme.typography.body1.fontSize}px;
|
|
3380
3380
|
|
|
@@ -3433,7 +3433,7 @@ const StyledPopper$1 = styled(Popper)`
|
|
|
3433
3433
|
}
|
|
3434
3434
|
}
|
|
3435
3435
|
|
|
3436
|
-
&.${rootClassName$
|
|
3436
|
+
&.${rootClassName$1f}, &.${rootClassName$1f} > .dot-popper-paper {
|
|
3437
3437
|
background-color: ${theme.palette.figma.background.level1.white};
|
|
3438
3438
|
}
|
|
3439
3439
|
`}
|
|
@@ -3463,12 +3463,12 @@ const StyledArrow = styled('span')`
|
|
|
3463
3463
|
`;
|
|
3464
3464
|
|
|
3465
3465
|
const flyoutMenuClassName = 'dot-flyout-menu';
|
|
3466
|
-
const rootClassName$
|
|
3466
|
+
const rootClassName$1e = 'dot-menu';
|
|
3467
3467
|
const StyledPopper = styled(Popper)`
|
|
3468
3468
|
${({
|
|
3469
3469
|
theme
|
|
3470
3470
|
}) => css`
|
|
3471
|
-
&.${rootClassName$
|
|
3471
|
+
&.${rootClassName$1f} {
|
|
3472
3472
|
font-family: ${theme.typography.fontFamily};
|
|
3473
3473
|
font-size: ${theme.typography.body1.fontSize}px;
|
|
3474
3474
|
|
|
@@ -3478,7 +3478,7 @@ const StyledPopper = styled(Popper)`
|
|
|
3478
3478
|
}) => $zIndex === undefined ? `z-index: ${levelSecond};` : `z-index: ${$zIndex};`}
|
|
3479
3479
|
}
|
|
3480
3480
|
}
|
|
3481
|
-
&.${rootClassName$
|
|
3481
|
+
&.${rootClassName$1e}, &.${rootClassName$1f} {
|
|
3482
3482
|
.MuiPaper-root:not(:empty) {
|
|
3483
3483
|
border: 1px solid ${theme.palette.layer.n100};
|
|
3484
3484
|
}
|
|
@@ -3558,14 +3558,14 @@ const MENU_ITEM_HEIGHT_NORMAL = 48;
|
|
|
3558
3558
|
const MENU_ITEM_HEIGHT_DENSE = 36;
|
|
3559
3559
|
const DEFAULT_MAX_VISIBLE_ITEMS = 7;
|
|
3560
3560
|
|
|
3561
|
-
const rootClassName$
|
|
3561
|
+
const rootClassName$1d = 'dot-ul';
|
|
3562
3562
|
const listItemClassName$1 = 'dot-li';
|
|
3563
3563
|
const listItemWithSubmenuClassName = 'dot-li-with-submenu';
|
|
3564
3564
|
const StyledMenuList = styled(MenuList)`
|
|
3565
3565
|
${({
|
|
3566
3566
|
theme
|
|
3567
3567
|
}) => css`
|
|
3568
|
-
&.${rootClassName$
|
|
3568
|
+
&.${rootClassName$1d} {
|
|
3569
3569
|
background: ${theme.palette.figma.background.level1.white};
|
|
3570
3570
|
|
|
3571
3571
|
.dot-li {
|
|
@@ -3667,7 +3667,7 @@ const DotMenuList = forwardRef(({
|
|
|
3667
3667
|
onSubMenuCreate,
|
|
3668
3668
|
selectedKey
|
|
3669
3669
|
}, ref) => {
|
|
3670
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3670
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1d, className);
|
|
3671
3671
|
const [activeSubmenu, setActiveSubmenu] = useState(null);
|
|
3672
3672
|
const [subItemAnchorEl, setSubItemAnchorEl] = useState(null);
|
|
3673
3673
|
const openSubmenu = (target, itemKey) => {
|
|
@@ -3779,7 +3779,7 @@ const DotMenu = ({
|
|
|
3779
3779
|
open = false,
|
|
3780
3780
|
selectedKey
|
|
3781
3781
|
}) => {
|
|
3782
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
3782
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1e, className, loading ? 'loading' : '');
|
|
3783
3783
|
const isSubmenu = checkIfSubmenu(anchorEl);
|
|
3784
3784
|
const hasSubItems = checkForSubItems(menuItems);
|
|
3785
3785
|
// Timeout object is customizable when Menu component is either submenu
|
|
@@ -3867,12 +3867,12 @@ const DotMenu = ({
|
|
|
3867
3867
|
});
|
|
3868
3868
|
};
|
|
3869
3869
|
|
|
3870
|
-
const rootClassName$
|
|
3870
|
+
const rootClassName$1c = 'dot-drawer';
|
|
3871
3871
|
const StyledDrawer = styled(Drawer)`
|
|
3872
3872
|
${({
|
|
3873
3873
|
theme
|
|
3874
3874
|
}) => css`
|
|
3875
|
-
&.${rootClassName$
|
|
3875
|
+
&.${rootClassName$1c} .MuiBackdrop-root {
|
|
3876
3876
|
background-color: ${theme.palette.figma.overlay.default};
|
|
3877
3877
|
}
|
|
3878
3878
|
|
|
@@ -3891,12 +3891,12 @@ const StyledDrawer = styled(Drawer)`
|
|
|
3891
3891
|
`}
|
|
3892
3892
|
`;
|
|
3893
3893
|
|
|
3894
|
-
const rootClassName$
|
|
3894
|
+
const rootClassName$1b = 'dot-drawer-header';
|
|
3895
3895
|
const StyleDrawerHeader = styled.div`
|
|
3896
3896
|
${({
|
|
3897
3897
|
theme
|
|
3898
3898
|
}) => css`
|
|
3899
|
-
&.${rootClassName$
|
|
3899
|
+
&.${rootClassName$1b} {
|
|
3900
3900
|
padding: ${theme.spacing(0, 0, 2)};
|
|
3901
3901
|
display: flex;
|
|
3902
3902
|
align-items: center;
|
|
@@ -3907,13 +3907,13 @@ const StyleDrawerHeader = styled.div`
|
|
|
3907
3907
|
`}
|
|
3908
3908
|
`;
|
|
3909
3909
|
|
|
3910
|
-
const rootClassName$
|
|
3910
|
+
const rootClassName$1a = 'dot-icon-btn';
|
|
3911
3911
|
const StyledIconButton = styled(IconButton)`
|
|
3912
3912
|
${({
|
|
3913
3913
|
theme,
|
|
3914
3914
|
color
|
|
3915
3915
|
}) => css`
|
|
3916
|
-
&.${rootClassName$
|
|
3916
|
+
&.${rootClassName$1a} {
|
|
3917
3917
|
${color === 'inherit' ? css`
|
|
3918
3918
|
color: inherit;
|
|
3919
3919
|
` : ''}
|
|
@@ -3999,7 +3999,7 @@ const DotIconButton = ({
|
|
|
3999
3999
|
ariaRole = 'button',
|
|
4000
4000
|
className,
|
|
4001
4001
|
color = 'inherit',
|
|
4002
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
4002
|
+
'data-pendoid': dataPendoId = rootClassName$1a,
|
|
4003
4003
|
'data-testid': dataTestId,
|
|
4004
4004
|
disableInteractive,
|
|
4005
4005
|
disableRipple = false,
|
|
@@ -4013,7 +4013,7 @@ const DotIconButton = ({
|
|
|
4013
4013
|
tooltipPlacement
|
|
4014
4014
|
}) => {
|
|
4015
4015
|
const rippleClassName = disableRipple ? 'ripple-disabled' : '';
|
|
4016
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4016
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1a, rippleClassName, `shape-${shape}`, className);
|
|
4017
4017
|
return jsx(DotTooltip, {
|
|
4018
4018
|
childrenDisplayStyle: "inline-block",
|
|
4019
4019
|
"data-testid": "icon-button-tooltip",
|
|
@@ -4050,7 +4050,7 @@ const DotDrawerHeader = ({
|
|
|
4050
4050
|
onClose,
|
|
4051
4051
|
variant
|
|
4052
4052
|
}) => {
|
|
4053
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4053
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1b, className);
|
|
4054
4054
|
return jsxs(StyleDrawerHeader, {
|
|
4055
4055
|
"aria-label": ariaLabel,
|
|
4056
4056
|
"aria-level": 2,
|
|
@@ -4067,10 +4067,10 @@ const DotDrawerHeader = ({
|
|
|
4067
4067
|
});
|
|
4068
4068
|
};
|
|
4069
4069
|
|
|
4070
|
-
const rootClassName$
|
|
4070
|
+
const rootClassName$19 = 'dot-drawer-body';
|
|
4071
4071
|
const StyleDrawerBody = styled.div`
|
|
4072
4072
|
${() => css`
|
|
4073
|
-
&.${rootClassName$
|
|
4073
|
+
&.${rootClassName$19} {
|
|
4074
4074
|
display: flex;
|
|
4075
4075
|
.dot-drawer-close-button {
|
|
4076
4076
|
align-self: self-start;
|
|
@@ -4091,7 +4091,7 @@ const DotDrawerBody = ({
|
|
|
4091
4091
|
onClose,
|
|
4092
4092
|
variant
|
|
4093
4093
|
}) => {
|
|
4094
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4094
|
+
const rootClasses = useStylesWithRootClass(rootClassName$19, className);
|
|
4095
4095
|
return jsxs(StyleDrawerBody, {
|
|
4096
4096
|
"aria-label": ariaLabel,
|
|
4097
4097
|
className: rootClasses,
|
|
@@ -4106,12 +4106,12 @@ const DotDrawerBody = ({
|
|
|
4106
4106
|
});
|
|
4107
4107
|
};
|
|
4108
4108
|
|
|
4109
|
-
const rootClassName$
|
|
4109
|
+
const rootClassName$18 = 'dot-drawer-footer';
|
|
4110
4110
|
const StyleDrawerFooter = styled.div`
|
|
4111
4111
|
${({
|
|
4112
4112
|
theme
|
|
4113
4113
|
}) => css`
|
|
4114
|
-
&.${rootClassName$
|
|
4114
|
+
&.${rootClassName$18} {
|
|
4115
4115
|
padding: ${theme.spacing(2, 0, 0)};
|
|
4116
4116
|
}
|
|
4117
4117
|
`}
|
|
@@ -4124,7 +4124,7 @@ const DotDrawerFooter = ({
|
|
|
4124
4124
|
className,
|
|
4125
4125
|
'data-testid': dataTestId
|
|
4126
4126
|
}) => {
|
|
4127
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4127
|
+
const rootClasses = useStylesWithRootClass(rootClassName$18, className);
|
|
4128
4128
|
return jsx(StyleDrawerFooter, {
|
|
4129
4129
|
"aria-label": ariaLabel,
|
|
4130
4130
|
className: rootClasses,
|
|
@@ -4140,7 +4140,7 @@ const DotDrawer = ({
|
|
|
4140
4140
|
ariaRole = 'dialog',
|
|
4141
4141
|
className,
|
|
4142
4142
|
children,
|
|
4143
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
4143
|
+
'data-pendoid': dataPendoId = rootClassName$1c,
|
|
4144
4144
|
'data-testid': dataTestId,
|
|
4145
4145
|
drawerBodyProps,
|
|
4146
4146
|
drawerFooterProps,
|
|
@@ -4163,7 +4163,7 @@ const DotDrawer = ({
|
|
|
4163
4163
|
onClose(event);
|
|
4164
4164
|
}
|
|
4165
4165
|
};
|
|
4166
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4166
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1c, className);
|
|
4167
4167
|
const backdropEnabled = variant === 'temporary' && !(ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.hideBackdrop);
|
|
4168
4168
|
const headerExists = !!drawerHeaderProps;
|
|
4169
4169
|
const bodyPendoId = drawerBodyProps ? drawerBodyProps['data-pendoid'] : 'drawer-body';
|
|
@@ -4638,7 +4638,7 @@ const DotList = ({
|
|
|
4638
4638
|
nestedListType = 'expandable',
|
|
4639
4639
|
width = 240
|
|
4640
4640
|
}) => {
|
|
4641
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
4641
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1h, className);
|
|
4642
4642
|
const listWidth = typeof width === 'number' ? `${width}px` : width;
|
|
4643
4643
|
const listRef = useRef();
|
|
4644
4644
|
const disableCloseOnClickAway = !nestedListCloseOnClickAway && nestedListType === 'expandable';
|
|
@@ -4738,12 +4738,12 @@ const DotList = ({
|
|
|
4738
4738
|
});
|
|
4739
4739
|
};
|
|
4740
4740
|
|
|
4741
|
-
const rootClassName$
|
|
4741
|
+
const rootClassName$17 = 'dot-copy-button';
|
|
4742
4742
|
const StyledCopyButton = styled.span`
|
|
4743
4743
|
${({
|
|
4744
4744
|
theme
|
|
4745
4745
|
}) => css`
|
|
4746
|
-
&.${rootClassName$
|
|
4746
|
+
&.${rootClassName$17} .copied-to-clipboard {
|
|
4747
4747
|
color: ${theme.palette.figma.success.normal};
|
|
4748
4748
|
|
|
4749
4749
|
&.MuiIcon-fontSizeSmall.button-size-small {
|
|
@@ -4769,7 +4769,7 @@ const DotCopyButton = ({
|
|
|
4769
4769
|
color = 'inherit',
|
|
4770
4770
|
copiedTooltip = 'Copied!',
|
|
4771
4771
|
copyTooltip = 'Copy to clipboard',
|
|
4772
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
4772
|
+
'data-pendoid': dataPendoId = rootClassName$17,
|
|
4773
4773
|
'data-testid': dataTestId = 'dot-copy-button',
|
|
4774
4774
|
disableInteractive,
|
|
4775
4775
|
disabled = false,
|
|
@@ -4818,7 +4818,7 @@ const DotCopyButton = ({
|
|
|
4818
4818
|
return false;
|
|
4819
4819
|
}, [value, showCopiedIcon, disabled, onClick]);
|
|
4820
4820
|
return jsxs(StyledCopyButton, {
|
|
4821
|
-
className: rootClassName$
|
|
4821
|
+
className: rootClassName$17,
|
|
4822
4822
|
"data-testid": dataTestId,
|
|
4823
4823
|
children: [!timedShowCopiedIcon && jsx(DotIconButton, {
|
|
4824
4824
|
ariaLabel: ariaLabel,
|
|
@@ -4925,7 +4925,7 @@ const DotInputText = ({
|
|
|
4925
4925
|
autoFocus,
|
|
4926
4926
|
className,
|
|
4927
4927
|
defaultValue,
|
|
4928
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
4928
|
+
'data-pendoid': dataPendoId = rootClassName$1q,
|
|
4929
4929
|
'data-testid': dataTestId,
|
|
4930
4930
|
disabled = false,
|
|
4931
4931
|
error = false,
|
|
@@ -4974,7 +4974,7 @@ const DotInputText = ({
|
|
|
4974
4974
|
const internalInputRef = useRef(null);
|
|
4975
4975
|
const textFieldInputRef = inputRef || internalInputRef;
|
|
4976
4976
|
const [inputTextState, setInputTextState] = useState(getInitialState(value));
|
|
4977
|
-
const rootStyles = useStylesWithRootClass(rootClassName$
|
|
4977
|
+
const rootStyles = useStylesWithRootClass(rootClassName$1q, hasError, hasWarning, hasSuccess, isAiEnabled, readOnly && readOnlyClassName$1);
|
|
4978
4978
|
useEffect(() => {
|
|
4979
4979
|
if (value !== inputTextState.inputValue) {
|
|
4980
4980
|
setInputTextState(getInitialState(value, defaultValue));
|
|
@@ -5117,10 +5117,10 @@ const DotInputText = ({
|
|
|
5117
5117
|
});
|
|
5118
5118
|
};
|
|
5119
5119
|
|
|
5120
|
-
const rootClassName$
|
|
5120
|
+
const rootClassName$16 = 'dot-search-input';
|
|
5121
5121
|
const StyledSearchInput = styled.span`
|
|
5122
5122
|
${() => css`
|
|
5123
|
-
&.${rootClassName$
|
|
5123
|
+
&.${rootClassName$16} {
|
|
5124
5124
|
}
|
|
5125
5125
|
`}
|
|
5126
5126
|
`;
|
|
@@ -5137,7 +5137,7 @@ function SearchInput({
|
|
|
5137
5137
|
tooltip = null,
|
|
5138
5138
|
value
|
|
5139
5139
|
}) {
|
|
5140
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5140
|
+
const rootClasses = useStylesWithRootClass(rootClassName$16, className);
|
|
5141
5141
|
const [searchText, setSearchText] = useState(value);
|
|
5142
5142
|
let previousSearchText = '';
|
|
5143
5143
|
const handleChange = useCallback(event => {
|
|
@@ -5393,12 +5393,12 @@ const recentAppInstancesSetter = (latestInstance, maxRecentItems
|
|
|
5393
5393
|
};
|
|
5394
5394
|
};
|
|
5395
5395
|
|
|
5396
|
-
const rootClassName$
|
|
5396
|
+
const rootClassName$15 = 'dot-app-switcher';
|
|
5397
5397
|
const StyledAppSwitcher = styled(DotDrawer)`
|
|
5398
5398
|
${({
|
|
5399
5399
|
theme
|
|
5400
5400
|
}) => css`
|
|
5401
|
-
&.${rootClassName$
|
|
5401
|
+
&.${rootClassName$15} {
|
|
5402
5402
|
.dot-drawer-paper {
|
|
5403
5403
|
padding: 0;
|
|
5404
5404
|
width: 382px;
|
|
@@ -5508,7 +5508,7 @@ const DotAppSwitcherView = ({
|
|
|
5508
5508
|
if (dotCoreApiContext !== null) {
|
|
5509
5509
|
setSelectedAppType = dotCoreApiContext.setSelectedAppSwitcherAppType;
|
|
5510
5510
|
}
|
|
5511
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
5511
|
+
const rootClasses = useStylesWithRootClass(rootClassName$15, className);
|
|
5512
5512
|
const [appTypeMap, setAppTypeMap] = useState();
|
|
5513
5513
|
const [appTypeLabels, setAppTypeLabels] = useState();
|
|
5514
5514
|
const [appTypeMenuItems, setAppTypeMenuItems] = useState();
|
|
@@ -5792,15 +5792,15 @@ const DotAppSwitcher = _a => {
|
|
|
5792
5792
|
};
|
|
5793
5793
|
|
|
5794
5794
|
var _path$2, _path2$2, _path3, _path4;
|
|
5795
|
-
var _excluded$
|
|
5796
|
-
function _extends$
|
|
5797
|
-
function _objectWithoutProperties$2(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$
|
|
5798
|
-
function _objectWithoutPropertiesLoose$
|
|
5795
|
+
var _excluded$b = ["title", "titleId"];
|
|
5796
|
+
function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
|
|
5797
|
+
function _objectWithoutProperties$2(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$3(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
5798
|
+
function _objectWithoutPropertiesLoose$3(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5799
5799
|
var SvgLogoD = function SvgLogoD(_ref, ref) {
|
|
5800
5800
|
var title = _ref.title,
|
|
5801
5801
|
titleId = _ref.titleId,
|
|
5802
|
-
props = _objectWithoutProperties$2(_ref, _excluded$
|
|
5803
|
-
return /*#__PURE__*/React$1.createElement("svg", _extends$
|
|
5802
|
+
props = _objectWithoutProperties$2(_ref, _excluded$b);
|
|
5803
|
+
return /*#__PURE__*/React$1.createElement("svg", _extends$3({
|
|
5804
5804
|
width: 26,
|
|
5805
5805
|
height: 27,
|
|
5806
5806
|
viewBox: "0 0 26 27",
|
|
@@ -5829,15 +5829,15 @@ var SvgLogoD = function SvgLogoD(_ref, ref) {
|
|
|
5829
5829
|
var ForwardRef$2 = /*#__PURE__*/forwardRef(SvgLogoD);
|
|
5830
5830
|
|
|
5831
5831
|
var _path$1, _path2$1;
|
|
5832
|
-
var _excluded$
|
|
5833
|
-
function _extends$
|
|
5834
|
-
function _objectWithoutProperties$1(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$
|
|
5835
|
-
function _objectWithoutPropertiesLoose$
|
|
5832
|
+
var _excluded$a = ["title", "titleId"];
|
|
5833
|
+
function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
|
|
5834
|
+
function _objectWithoutProperties$1(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$2(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
5835
|
+
function _objectWithoutPropertiesLoose$2(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5836
5836
|
var SvgLogoDigitalAi = function SvgLogoDigitalAi(_ref, ref) {
|
|
5837
5837
|
var title = _ref.title,
|
|
5838
5838
|
titleId = _ref.titleId,
|
|
5839
|
-
props = _objectWithoutProperties$1(_ref, _excluded$
|
|
5840
|
-
return /*#__PURE__*/React$1.createElement("svg", _extends$
|
|
5839
|
+
props = _objectWithoutProperties$1(_ref, _excluded$a);
|
|
5840
|
+
return /*#__PURE__*/React$1.createElement("svg", _extends$2({
|
|
5841
5841
|
width: 93,
|
|
5842
5842
|
height: 23,
|
|
5843
5843
|
viewBox: "0 0 93 23",
|
|
@@ -5858,15 +5858,15 @@ var SvgLogoDigitalAi = function SvgLogoDigitalAi(_ref, ref) {
|
|
|
5858
5858
|
var ForwardRef$1 = /*#__PURE__*/forwardRef(SvgLogoDigitalAi);
|
|
5859
5859
|
|
|
5860
5860
|
var _path, _path2;
|
|
5861
|
-
var _excluded = ["title", "titleId"];
|
|
5862
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5863
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
5864
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5861
|
+
var _excluded$9 = ["title", "titleId"];
|
|
5862
|
+
function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
5863
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
5864
|
+
function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5865
5865
|
var SvgLogoDigitalAiWhite = function SvgLogoDigitalAiWhite(_ref, ref) {
|
|
5866
5866
|
var title = _ref.title,
|
|
5867
5867
|
titleId = _ref.titleId,
|
|
5868
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
5869
|
-
return /*#__PURE__*/React$1.createElement("svg", _extends({
|
|
5868
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
5869
|
+
return /*#__PURE__*/React$1.createElement("svg", _extends$1({
|
|
5870
5870
|
width: 100,
|
|
5871
5871
|
height: 26,
|
|
5872
5872
|
viewBox: "0 0 100 26",
|
|
@@ -5886,12 +5886,12 @@ var SvgLogoDigitalAiWhite = function SvgLogoDigitalAiWhite(_ref, ref) {
|
|
|
5886
5886
|
};
|
|
5887
5887
|
var ForwardRef = /*#__PURE__*/forwardRef(SvgLogoDigitalAiWhite);
|
|
5888
5888
|
|
|
5889
|
-
const rootClassName$
|
|
5889
|
+
const rootClassName$14 = 'dot-sidebar';
|
|
5890
5890
|
const StyledSidebar = styled.aside`
|
|
5891
5891
|
${({
|
|
5892
5892
|
theme
|
|
5893
5893
|
}) => css`
|
|
5894
|
-
&.${rootClassName$
|
|
5894
|
+
&.${rootClassName$14} {
|
|
5895
5895
|
align-items: stretch;
|
|
5896
5896
|
background: ${theme.palette.figma.background.level1.white};
|
|
5897
5897
|
border-width: 0 1px;
|
|
@@ -6185,10 +6185,10 @@ const StyledSidebar = styled.aside`
|
|
|
6185
6185
|
`}
|
|
6186
6186
|
`;
|
|
6187
6187
|
|
|
6188
|
-
const rootClassName$
|
|
6188
|
+
const rootClassName$13 = 'dot-truncate-with-tooltip';
|
|
6189
6189
|
const StyledTruncateWithTooltip = styled(Tooltip)`
|
|
6190
6190
|
${() => css`
|
|
6191
|
-
&.${rootClassName$
|
|
6191
|
+
&.${rootClassName$13} {
|
|
6192
6192
|
display: block;
|
|
6193
6193
|
overflow: hidden;
|
|
6194
6194
|
white-space: nowrap;
|
|
@@ -6219,7 +6219,7 @@ const DotTruncateWithTooltip = ({
|
|
|
6219
6219
|
label,
|
|
6220
6220
|
width
|
|
6221
6221
|
}) => {
|
|
6222
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6222
|
+
const rootClasses = useStylesWithRootClass(rootClassName$13, className, charactersLimit ? 'dot-characters-limit' : '');
|
|
6223
6223
|
return jsx(StyledTruncateWithTooltip, {
|
|
6224
6224
|
"aria-label": ariaLabel,
|
|
6225
6225
|
arrow: arrow,
|
|
@@ -6333,7 +6333,7 @@ const DotSidebar = ({
|
|
|
6333
6333
|
keys: collapseKeys
|
|
6334
6334
|
}, toggleNavCollapseState, [isOpen, collapsable]);
|
|
6335
6335
|
const sidebarClasses = useStylesWithRootClass('side-nav', openClass);
|
|
6336
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6336
|
+
const rootClasses = useStylesWithRootClass(rootClassName$14, openClass, className);
|
|
6337
6337
|
return jsxs(StyledSidebar, {
|
|
6338
6338
|
"aria-label": ariaLabel,
|
|
6339
6339
|
className: rootClasses,
|
|
@@ -6408,12 +6408,12 @@ const DotSidebar = ({
|
|
|
6408
6408
|
});
|
|
6409
6409
|
};
|
|
6410
6410
|
|
|
6411
|
-
const rootClassName$
|
|
6411
|
+
const rootClassName$12 = 'dot-badge';
|
|
6412
6412
|
const StyledBadge = styled(Badge)`
|
|
6413
6413
|
${({
|
|
6414
6414
|
theme
|
|
6415
6415
|
}) => css`
|
|
6416
|
-
&.${rootClassName$
|
|
6416
|
+
&.${rootClassName$12} {
|
|
6417
6417
|
color: ${theme.palette.figma.typography.black};
|
|
6418
6418
|
word-break: normal;
|
|
6419
6419
|
|
|
@@ -6448,7 +6448,7 @@ const DotBadge = ({
|
|
|
6448
6448
|
overlap,
|
|
6449
6449
|
variant = 'dot'
|
|
6450
6450
|
}) => {
|
|
6451
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6451
|
+
const rootClasses = useStylesWithRootClass(rootClassName$12, className);
|
|
6452
6452
|
return jsx(StyledBadge, {
|
|
6453
6453
|
"$badgeColor": badgeColor,
|
|
6454
6454
|
anchorOrigin: {
|
|
@@ -6470,7 +6470,7 @@ const DotBadge = ({
|
|
|
6470
6470
|
});
|
|
6471
6471
|
};
|
|
6472
6472
|
|
|
6473
|
-
const rootClassName$
|
|
6473
|
+
const rootClassName$11 = 'dot-app-toolbar';
|
|
6474
6474
|
const denseClassName = 'dense';
|
|
6475
6475
|
const StyledMainMenu = styled(DotDrawer)`
|
|
6476
6476
|
${({
|
|
@@ -6510,7 +6510,7 @@ const StyledAppToolbar = styled.header`
|
|
|
6510
6510
|
${({
|
|
6511
6511
|
theme
|
|
6512
6512
|
}) => css`
|
|
6513
|
-
&.${rootClassName$
|
|
6513
|
+
&.${rootClassName$11} {
|
|
6514
6514
|
align-items: center;
|
|
6515
6515
|
background: ${theme.palette.figma.appToolbar.background};
|
|
6516
6516
|
border-bottom: 4px solid ${theme.palette.figma.border.default};
|
|
@@ -6639,7 +6639,7 @@ const DotAppToolbar = ({
|
|
|
6639
6639
|
const displayAppLogo = appLogo || appLogoSmall;
|
|
6640
6640
|
const mainMenuRef = useRef(null);
|
|
6641
6641
|
const denseClass = dense ? denseClassName : '';
|
|
6642
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
6642
|
+
const rootClasses = useStylesWithRootClass(rootClassName$11, className, denseClass, showMainMenu ? '' : 'without-menu-icon');
|
|
6643
6643
|
const mainMenuClasses = useStylesWithRootClass('dot-main-menu', denseClass, menuOpen ? 'open' : '');
|
|
6644
6644
|
const targetBreakpoint = useMediaQuery(theme => theme.breakpoints.up('lg'));
|
|
6645
6645
|
useEffect(() => {
|
|
@@ -6791,12 +6791,12 @@ const DotAppToolbar = ({
|
|
|
6791
6791
|
}) : appToolbar;
|
|
6792
6792
|
};
|
|
6793
6793
|
|
|
6794
|
-
const rootClassName
|
|
6794
|
+
const rootClassName$10 = 'dot-chip';
|
|
6795
6795
|
const StyledChip = styled(Chip)`
|
|
6796
6796
|
${({
|
|
6797
6797
|
theme
|
|
6798
6798
|
}) => css`
|
|
6799
|
-
&.${rootClassName
|
|
6799
|
+
&.${rootClassName$10} {
|
|
6800
6800
|
background: ${theme.palette.figma.neutral.normal};
|
|
6801
6801
|
border-color: ${theme.palette.figma.border.darker};
|
|
6802
6802
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -6902,7 +6902,7 @@ const DotChip = ({
|
|
|
6902
6902
|
charactersLimit = DEFAULT_CHARACTERS_LIMIT,
|
|
6903
6903
|
children,
|
|
6904
6904
|
className,
|
|
6905
|
-
'data-pendoid': dataPendoId = rootClassName
|
|
6905
|
+
'data-pendoid': dataPendoId = rootClassName$10,
|
|
6906
6906
|
'data-testid': dataTestId,
|
|
6907
6907
|
disabled = false,
|
|
6908
6908
|
error = false,
|
|
@@ -6916,7 +6916,7 @@ const DotChip = ({
|
|
|
6916
6916
|
tooltipProps
|
|
6917
6917
|
}) => {
|
|
6918
6918
|
const errorClass = error ? 'Mui-error' : '';
|
|
6919
|
-
const rootClasses = useStylesWithRootClass(rootClassName
|
|
6919
|
+
const rootClasses = useStylesWithRootClass(rootClassName$10, className, errorClass);
|
|
6920
6920
|
const isTruncated = charactersLimit > 0 && children.length > charactersLimit;
|
|
6921
6921
|
const getChipLabelWithTooltip = label => jsx(DotTooltip, Object.assign({}, tooltipProps, {
|
|
6922
6922
|
hoverVisibility: "always",
|
|
@@ -6952,7 +6952,7 @@ const DotChip = ({
|
|
|
6952
6952
|
});
|
|
6953
6953
|
};
|
|
6954
6954
|
|
|
6955
|
-
const rootClassName
|
|
6955
|
+
const rootClassName$$ = 'dot-autocomplete';
|
|
6956
6956
|
const inputRootClassName = 'dot-input-root';
|
|
6957
6957
|
const inputMediumClassName = 'dot-input-medium';
|
|
6958
6958
|
const inputAiClassName = 'dot-input-ai';
|
|
@@ -6960,7 +6960,7 @@ const StyledAutocomplete = styled(Autocomplete)`
|
|
|
6960
6960
|
${({
|
|
6961
6961
|
theme
|
|
6962
6962
|
}) => css`
|
|
6963
|
-
&.${rootClassName
|
|
6963
|
+
&.${rootClassName$$} {
|
|
6964
6964
|
&.${inputMediumClassName} .dot-text-field .${inputRootClassName} {
|
|
6965
6965
|
height: 56px;
|
|
6966
6966
|
padding-left: ${theme.spacing(2)};
|
|
@@ -7066,8 +7066,8 @@ const isEmptyValue = value => {
|
|
|
7066
7066
|
return !value;
|
|
7067
7067
|
}
|
|
7068
7068
|
};
|
|
7069
|
-
const getRootClassNames = (className, size) => useStylesWithRootClass(rootClassName
|
|
7070
|
-
const getTextFieldRootClassNames = (textFieldWarningClassName, isReadOnly) => useStylesWithRootClass(rootClassName$
|
|
7069
|
+
const getRootClassNames = (className, size) => useStylesWithRootClass(rootClassName$$, size === 'medium' && inputMediumClassName, className);
|
|
7070
|
+
const getTextFieldRootClassNames = (textFieldWarningClassName, isReadOnly) => useStylesWithRootClass(rootClassName$1q, isReadOnly && readOnlyClassName$1, textFieldWarningClassName);
|
|
7071
7071
|
const getInputRootClassNames = isDense => useStylesWithRootClass(inputRootClassName, !isDense && inputMediumClassName);
|
|
7072
7072
|
const getDefaultAutoCompleteValue = (hasMultiple, defaultValue) => hasMultiple && isString$2(defaultValue) ? [defaultValue] : defaultValue;
|
|
7073
7073
|
const getAutoCompleteGroupBy = group => group ? option => option.group : undefined;
|
|
@@ -7089,7 +7089,7 @@ const DotAutoComplete = ({
|
|
|
7089
7089
|
autoFocus,
|
|
7090
7090
|
autoHighlight,
|
|
7091
7091
|
className,
|
|
7092
|
-
'data-pendoid': dataPendoId = rootClassName
|
|
7092
|
+
'data-pendoid': dataPendoId = rootClassName$$,
|
|
7093
7093
|
'data-testid': dataTestId,
|
|
7094
7094
|
defaultValue,
|
|
7095
7095
|
dense = true,
|
|
@@ -7158,7 +7158,7 @@ const DotAutoComplete = ({
|
|
|
7158
7158
|
const rootClasses = useStylesWithRootClass(getRootClassNames(className, size), ai ? inputAiClassName : '');
|
|
7159
7159
|
const textFieldRootClasses = getTextFieldRootClassNames(textFieldWarningClassName, readOnly);
|
|
7160
7160
|
const inputRootClasses = getInputRootClassNames(dense);
|
|
7161
|
-
const popperClasses = useStylesWithRootClass(rootClassName$
|
|
7161
|
+
const popperClasses = useStylesWithRootClass(rootClassName$1f, popperClassName);
|
|
7162
7162
|
let highlightedOption = null;
|
|
7163
7163
|
let textFieldInput;
|
|
7164
7164
|
const textFieldRef = element => {
|
|
@@ -7508,10 +7508,10 @@ const DotAutoComplete = ({
|
|
|
7508
7508
|
});
|
|
7509
7509
|
};
|
|
7510
7510
|
|
|
7511
|
-
const rootClassName$
|
|
7511
|
+
const rootClassName$_ = 'dot-avatar-group';
|
|
7512
7512
|
const StyledAvatarGroup = styled(AvatarGroup)`
|
|
7513
7513
|
${() => css`
|
|
7514
|
-
&.${rootClassName$
|
|
7514
|
+
&.${rootClassName$_} {
|
|
7515
7515
|
justify-content: flex-end;
|
|
7516
7516
|
|
|
7517
7517
|
.MuiAvatar-root {
|
|
@@ -7530,7 +7530,7 @@ const DotAvatarGroup = ({
|
|
|
7530
7530
|
max = 3,
|
|
7531
7531
|
spacing = 'medium'
|
|
7532
7532
|
}) => {
|
|
7533
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7533
|
+
const rootClasses = useStylesWithRootClass(rootClassName$_, className);
|
|
7534
7534
|
return jsx(StyledAvatarGroup, {
|
|
7535
7535
|
"aria-label": ariaLabel,
|
|
7536
7536
|
classes: {
|
|
@@ -7545,14 +7545,14 @@ const DotAvatarGroup = ({
|
|
|
7545
7545
|
});
|
|
7546
7546
|
};
|
|
7547
7547
|
|
|
7548
|
-
const rootClassName$
|
|
7548
|
+
const rootClassName$Z = 'dot-avatar-with-details';
|
|
7549
7549
|
const StyledAvatarWithDetails = styled.div`
|
|
7550
7550
|
${({
|
|
7551
7551
|
theme,
|
|
7552
7552
|
$maxSubtitleLines,
|
|
7553
7553
|
$maxTitleLines
|
|
7554
7554
|
}) => css`
|
|
7555
|
-
&.${rootClassName$
|
|
7555
|
+
&.${rootClassName$Z} {
|
|
7556
7556
|
gap: ${theme.spacing(2)};
|
|
7557
7557
|
display: flex;
|
|
7558
7558
|
align-items: center;
|
|
@@ -7588,12 +7588,12 @@ const DotAvatarWithDetails = ({
|
|
|
7588
7588
|
ariaLabel,
|
|
7589
7589
|
avatar,
|
|
7590
7590
|
className,
|
|
7591
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
7591
|
+
'data-pendoid': dataPendoId = rootClassName$Z,
|
|
7592
7592
|
'data-testid': dataTestId,
|
|
7593
7593
|
subtitle,
|
|
7594
7594
|
title
|
|
7595
7595
|
}) => {
|
|
7596
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
7596
|
+
const rootClasses = useStylesWithRootClass(rootClassName$Z, className);
|
|
7597
7597
|
const titleClasses = useStylesWithRootClass('dot-avatar-with-details-title', title.maxLines ? 'max-lines-clamp' : '');
|
|
7598
7598
|
const subtitleClasses = useStylesWithRootClass('dot-avatar-with-details-subtitle', (subtitle === null || subtitle === void 0 ? void 0 : subtitle.maxLines) ? 'max-lines-clamp' : '');
|
|
7599
7599
|
return jsxs(StyledAvatarWithDetails, {
|
|
@@ -7628,13 +7628,13 @@ const DotAvatarWithDetails = ({
|
|
|
7628
7628
|
});
|
|
7629
7629
|
};
|
|
7630
7630
|
|
|
7631
|
-
const rootClassName$
|
|
7631
|
+
const rootClassName$Y = 'dot-breadcrumbs';
|
|
7632
7632
|
const breadcrumbsWrapperClass = 'dot-breadcrumbs-wrapper';
|
|
7633
7633
|
const StyledBreadcrumbsWrapper = styled.div`
|
|
7634
7634
|
${({
|
|
7635
7635
|
theme
|
|
7636
7636
|
}) => css`
|
|
7637
|
-
&.${rootClassName$
|
|
7637
|
+
&.${rootClassName$Y} {
|
|
7638
7638
|
overflow: hidden;
|
|
7639
7639
|
|
|
7640
7640
|
.dot-breadcrumbs-menu {
|
|
@@ -7654,7 +7654,7 @@ const StyledBreadcrumbs = styled(Breadcrumbs)`
|
|
|
7654
7654
|
${({
|
|
7655
7655
|
theme
|
|
7656
7656
|
}) => css`
|
|
7657
|
-
&.${rootClassName$
|
|
7657
|
+
&.${rootClassName$Y} {
|
|
7658
7658
|
margin-bottom: 0;
|
|
7659
7659
|
|
|
7660
7660
|
.MuiBreadcrumbs-ol {
|
|
@@ -7982,7 +7982,7 @@ const DotBreadcrumbs = ({
|
|
|
7982
7982
|
children: [jsx(StyledBreadcrumbs, {
|
|
7983
7983
|
"aria-label": "breadcrumb",
|
|
7984
7984
|
classes: {
|
|
7985
|
-
root: rootClassName$
|
|
7985
|
+
root: rootClassName$Y,
|
|
7986
7986
|
ol: 'dot-ol',
|
|
7987
7987
|
li: 'dot-li'
|
|
7988
7988
|
},
|
|
@@ -8013,14 +8013,14 @@ const DotBreadcrumbs = ({
|
|
|
8013
8013
|
});
|
|
8014
8014
|
};
|
|
8015
8015
|
|
|
8016
|
-
const rootClassName$
|
|
8016
|
+
const rootClassName$X = 'dot-button-toggle';
|
|
8017
8017
|
// TODO: need to update ripple color
|
|
8018
8018
|
// https://github.com/mui/material-ui/issues/28543
|
|
8019
8019
|
const StyledToggleButtonGroup = styled(ToggleButtonGroup)`
|
|
8020
8020
|
${({
|
|
8021
8021
|
theme
|
|
8022
8022
|
}) => css`
|
|
8023
|
-
&.${rootClassName$
|
|
8023
|
+
&.${rootClassName$X} {
|
|
8024
8024
|
button:not(.MuiToggleButton-sizeLarge):not(.MuiToggleButton-sizeSmall) {
|
|
8025
8025
|
/* Override height for medium size */
|
|
8026
8026
|
height: ${theme.spacing(5)};
|
|
@@ -8143,7 +8143,7 @@ const DotButtonToggle = ({
|
|
|
8143
8143
|
buttonOptions,
|
|
8144
8144
|
className,
|
|
8145
8145
|
color,
|
|
8146
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
8146
|
+
'data-pendoid': dataPendoId = rootClassName$X,
|
|
8147
8147
|
'data-testid': dataTestId = 'dot-toggle',
|
|
8148
8148
|
disableFocusRipple = false,
|
|
8149
8149
|
disableRipple = false,
|
|
@@ -8153,7 +8153,7 @@ const DotButtonToggle = ({
|
|
|
8153
8153
|
size = 'medium',
|
|
8154
8154
|
value
|
|
8155
8155
|
}) => {
|
|
8156
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8156
|
+
const rootClasses = useStylesWithRootClass(rootClassName$X, className);
|
|
8157
8157
|
const renderToggleButton = ({
|
|
8158
8158
|
ariaLabel: optionAriaLabel,
|
|
8159
8159
|
badgeContent: optionBadgeContent,
|
|
@@ -8238,12 +8238,12 @@ const TooltipToggleButton = forwardRef((_a, ref) => {
|
|
|
8238
8238
|
}));
|
|
8239
8239
|
});
|
|
8240
8240
|
|
|
8241
|
-
const rootClassName$
|
|
8241
|
+
const rootClassName$W = 'dot-card';
|
|
8242
8242
|
const StyledCard = styled(Card)`
|
|
8243
8243
|
${({
|
|
8244
8244
|
theme
|
|
8245
8245
|
}) => css`
|
|
8246
|
-
&.${rootClassName$
|
|
8246
|
+
&.${rootClassName$W} {
|
|
8247
8247
|
background-color: ${theme.palette.figma.background.level1.white};
|
|
8248
8248
|
}
|
|
8249
8249
|
`}
|
|
@@ -8257,7 +8257,7 @@ const DotCard = ({
|
|
|
8257
8257
|
onMouseEnter,
|
|
8258
8258
|
onMouseLeave
|
|
8259
8259
|
}) => {
|
|
8260
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8260
|
+
const rootClasses = useStylesWithRootClass(rootClassName$W, className);
|
|
8261
8261
|
return jsx(StyledCard, {
|
|
8262
8262
|
"aria-label": ariaLabel,
|
|
8263
8263
|
classes: {
|
|
@@ -8288,12 +8288,12 @@ const DotCardContent = ({
|
|
|
8288
8288
|
});
|
|
8289
8289
|
};
|
|
8290
8290
|
|
|
8291
|
-
const rootClassName$
|
|
8291
|
+
const rootClassName$V = 'dot-card-footer';
|
|
8292
8292
|
const StyledDiv = styled.div`
|
|
8293
8293
|
${({
|
|
8294
8294
|
theme
|
|
8295
8295
|
}) => css`
|
|
8296
|
-
&.${rootClassName$
|
|
8296
|
+
&.${rootClassName$V} {
|
|
8297
8297
|
padding: ${theme.spacing(2)};
|
|
8298
8298
|
}
|
|
8299
8299
|
`}
|
|
@@ -8305,7 +8305,7 @@ const DotCardFooter = ({
|
|
|
8305
8305
|
className,
|
|
8306
8306
|
'data-testid': dataTestId
|
|
8307
8307
|
}) => {
|
|
8308
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8308
|
+
const rootClasses = useStylesWithRootClass(rootClassName$V, className);
|
|
8309
8309
|
return jsx(StyledDiv, {
|
|
8310
8310
|
"aria-label": ariaLabel,
|
|
8311
8311
|
className: rootClasses,
|
|
@@ -8314,14 +8314,14 @@ const DotCardFooter = ({
|
|
|
8314
8314
|
});
|
|
8315
8315
|
};
|
|
8316
8316
|
|
|
8317
|
-
const rootClassName$
|
|
8317
|
+
const rootClassName$U = 'dot-card-header';
|
|
8318
8318
|
const StyledCardHeader = styled(CardHeader)`
|
|
8319
8319
|
${({
|
|
8320
8320
|
theme,
|
|
8321
8321
|
$maxSubheaderLines,
|
|
8322
8322
|
$maxTitleLines
|
|
8323
8323
|
}) => css`
|
|
8324
|
-
&.${rootClassName$
|
|
8324
|
+
&.${rootClassName$U} {
|
|
8325
8325
|
.MuiCardHeader-content {
|
|
8326
8326
|
overflow-x: hidden;
|
|
8327
8327
|
|
|
@@ -8359,7 +8359,7 @@ const DotCardHeader = ({
|
|
|
8359
8359
|
titleMaxLines = 1,
|
|
8360
8360
|
titleSize = 'large'
|
|
8361
8361
|
}) => {
|
|
8362
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8362
|
+
const rootClasses = useStylesWithRootClass(rootClassName$U, className);
|
|
8363
8363
|
const nonSmallTitleSize = titleSize === 'medium' ? 'h3' : 'h2';
|
|
8364
8364
|
const titleVariant = titleSize === 'small' ? 'h4' : nonSmallTitleSize;
|
|
8365
8365
|
const subheaderVariant = subheaderSize === 'small' ? 'body2' : 'body1';
|
|
@@ -8396,9 +8396,9 @@ const DotCardHeader = ({
|
|
|
8396
8396
|
});
|
|
8397
8397
|
};
|
|
8398
8398
|
|
|
8399
|
-
const rootClassName$
|
|
8399
|
+
const rootClassName$T = 'dot-form-control-label';
|
|
8400
8400
|
const StyledFormControlLabel = styled(FormControlLabel)`
|
|
8401
|
-
&.${rootClassName$
|
|
8401
|
+
&.${rootClassName$T} {
|
|
8402
8402
|
.MuiFormControlLabel-label {
|
|
8403
8403
|
margin-bottom: 0;
|
|
8404
8404
|
padding: 0 0 0 4px;
|
|
@@ -8421,12 +8421,12 @@ const StyledFormControlLabel = styled(FormControlLabel)`
|
|
|
8421
8421
|
}
|
|
8422
8422
|
`;
|
|
8423
8423
|
|
|
8424
|
-
const rootClassName$
|
|
8424
|
+
const rootClassName$S = 'dot-checkbox';
|
|
8425
8425
|
const StyledCheckbox = styled(Checkbox)`
|
|
8426
8426
|
${({
|
|
8427
8427
|
theme
|
|
8428
8428
|
}) => css`
|
|
8429
|
-
&.${rootClassName$
|
|
8429
|
+
&.${rootClassName$S} {
|
|
8430
8430
|
padding: ${theme.spacing(1)};
|
|
8431
8431
|
|
|
8432
8432
|
&.MuiCheckbox-indeterminate {
|
|
@@ -8445,7 +8445,7 @@ function DotCheckbox({
|
|
|
8445
8445
|
ariaLabelledby,
|
|
8446
8446
|
checked,
|
|
8447
8447
|
className,
|
|
8448
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
8448
|
+
'data-pendoid': dataPendoId = rootClassName$T,
|
|
8449
8449
|
'data-testid': dataTestId,
|
|
8450
8450
|
disabled,
|
|
8451
8451
|
disableRipple,
|
|
@@ -8460,14 +8460,14 @@ function DotCheckbox({
|
|
|
8460
8460
|
size = 'medium',
|
|
8461
8461
|
value
|
|
8462
8462
|
}) {
|
|
8463
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8463
|
+
const rootClasses = useStylesWithRootClass(rootClassName$T, className);
|
|
8464
8464
|
const handleChange = event => {
|
|
8465
8465
|
onChange && onChange(event, event.target.value);
|
|
8466
8466
|
};
|
|
8467
8467
|
const checkboxControl = jsx(StyledCheckbox, {
|
|
8468
8468
|
checked: checked,
|
|
8469
8469
|
classes: {
|
|
8470
|
-
root: rootClassName$
|
|
8470
|
+
root: rootClassName$S
|
|
8471
8471
|
},
|
|
8472
8472
|
color: "primary",
|
|
8473
8473
|
"data-pendoid": dataPendoId,
|
|
@@ -8496,13 +8496,13 @@ function DotCheckbox({
|
|
|
8496
8496
|
});
|
|
8497
8497
|
}
|
|
8498
8498
|
|
|
8499
|
-
const rootClassName$
|
|
8499
|
+
const rootClassName$R = 'dot-form-group';
|
|
8500
8500
|
const groupLabelClassName = 'dot-form-group-label';
|
|
8501
8501
|
const startAdornmentClassName = 'dot-start-adornment';
|
|
8502
8502
|
const endAdornmentClassName = 'dot-end-adornment';
|
|
8503
8503
|
const placementClassName = 'dot-';
|
|
8504
8504
|
const StyledFormControl = styled(FormControl)`
|
|
8505
|
-
&.${rootClassName$
|
|
8505
|
+
&.${rootClassName$R} {
|
|
8506
8506
|
.MuiFormLabel-root {
|
|
8507
8507
|
width: 100%;
|
|
8508
8508
|
line-height: 24px;
|
|
@@ -8533,7 +8533,7 @@ const StyledFormControl = styled(FormControl)`
|
|
|
8533
8533
|
}
|
|
8534
8534
|
`;
|
|
8535
8535
|
|
|
8536
|
-
const rootClassName$
|
|
8536
|
+
const rootClassName$Q = 'dot-checkbox-group';
|
|
8537
8537
|
const wrapperClassName$1 = 'dot-checkbox-group-wrapper';
|
|
8538
8538
|
const checkboxListClassName = 'dot-checkbox-list';
|
|
8539
8539
|
const checkboxListItemClassName = 'dot-checkbox-list-item';
|
|
@@ -8542,7 +8542,7 @@ const StyledCheckboxGroup = styled.div`
|
|
|
8542
8542
|
theme
|
|
8543
8543
|
}) => css`{
|
|
8544
8544
|
&.${wrapperClassName$1} {
|
|
8545
|
-
.${rootClassName$
|
|
8545
|
+
.${rootClassName$Q} {
|
|
8546
8546
|
width: 100%;
|
|
8547
8547
|
}
|
|
8548
8548
|
|
|
@@ -8569,7 +8569,7 @@ const StyledCheckboxGroup = styled.div`
|
|
|
8569
8569
|
margin-top: 0;
|
|
8570
8570
|
padding-left: ${theme.spacing(2.5)};
|
|
8571
8571
|
|
|
8572
|
-
.${rootClassName$
|
|
8572
|
+
.${rootClassName$T} {
|
|
8573
8573
|
margin: 0;
|
|
8574
8574
|
}
|
|
8575
8575
|
}
|
|
@@ -8577,13 +8577,13 @@ const StyledCheckboxGroup = styled.div`
|
|
|
8577
8577
|
`}
|
|
8578
8578
|
`;
|
|
8579
8579
|
|
|
8580
|
-
const rootClassName$
|
|
8580
|
+
const rootClassName$P = 'dot-form-group';
|
|
8581
8581
|
const StyledFormGroup = styled(FormGroup)`
|
|
8582
8582
|
${({
|
|
8583
8583
|
theme,
|
|
8584
8584
|
row
|
|
8585
8585
|
}) => css`
|
|
8586
|
-
&.${rootClassName$
|
|
8586
|
+
&.${rootClassName$P} > * {
|
|
8587
8587
|
margin: ${row ? `${theme.spacing(0.5)}` : 0};
|
|
8588
8588
|
}
|
|
8589
8589
|
`}
|
|
@@ -8596,7 +8596,7 @@ function DotFormGroup({
|
|
|
8596
8596
|
'data-testid': dataTestId,
|
|
8597
8597
|
row
|
|
8598
8598
|
}) {
|
|
8599
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8599
|
+
const rootClasses = useStylesWithRootClass(rootClassName$R, className);
|
|
8600
8600
|
return jsx(StyledFormGroup, {
|
|
8601
8601
|
"aria-label": ariaLabel,
|
|
8602
8602
|
classes: {
|
|
@@ -8635,7 +8635,7 @@ function DotCheckboxGroup({
|
|
|
8635
8635
|
size = 'medium'
|
|
8636
8636
|
}) {
|
|
8637
8637
|
const placement = `${placementClassName}${labelPlacement}`;
|
|
8638
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8638
|
+
const rootClasses = useStylesWithRootClass(rootClassName$R, rootClassName$Q, className, placement);
|
|
8639
8639
|
const [selectedOptions, setSelectedOptions] = useState(defaultValues);
|
|
8640
8640
|
const [allChecked, setAllChecked] = useState(false);
|
|
8641
8641
|
/* This will ensure that state can be updated from the outside */
|
|
@@ -8720,12 +8720,12 @@ function DotCheckboxGroup({
|
|
|
8720
8720
|
});
|
|
8721
8721
|
}
|
|
8722
8722
|
|
|
8723
|
-
const rootClassName$
|
|
8723
|
+
const rootClassName$O = 'chip-list';
|
|
8724
8724
|
const StyledChipList = styled.div`
|
|
8725
8725
|
${({
|
|
8726
8726
|
theme
|
|
8727
8727
|
}) => css`
|
|
8728
|
-
&.${rootClassName$
|
|
8728
|
+
&.${rootClassName$O} {
|
|
8729
8729
|
display: flex;
|
|
8730
8730
|
gap: ${theme.spacing(1)};
|
|
8731
8731
|
}
|
|
@@ -8800,19 +8800,19 @@ function DotChipList({
|
|
|
8800
8800
|
setChips(itemElements);
|
|
8801
8801
|
}, [items, maxChars]);
|
|
8802
8802
|
return jsx(StyledChipList, {
|
|
8803
|
-
className: rootClassName$
|
|
8803
|
+
className: rootClassName$O,
|
|
8804
8804
|
"data-testid": dataTestId,
|
|
8805
8805
|
style: style,
|
|
8806
8806
|
children: chips
|
|
8807
8807
|
});
|
|
8808
8808
|
}
|
|
8809
8809
|
|
|
8810
|
-
const rootClassName$
|
|
8810
|
+
const rootClassName$N = 'dot-dialog';
|
|
8811
8811
|
const StyledDialog = styled(Dialog)`
|
|
8812
8812
|
${({
|
|
8813
8813
|
theme
|
|
8814
8814
|
}) => css`
|
|
8815
|
-
&.${rootClassName$
|
|
8815
|
+
&.${rootClassName$N} {
|
|
8816
8816
|
.MuiDialog-paper {
|
|
8817
8817
|
background: ${theme.palette.figma.background.level1.white};
|
|
8818
8818
|
color: ${theme.palette.figma.typography.black};
|
|
@@ -8858,7 +8858,7 @@ const DotDialog = ({
|
|
|
8858
8858
|
cancelButtonProps,
|
|
8859
8859
|
cancelButtonVisible = true,
|
|
8860
8860
|
className,
|
|
8861
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
8861
|
+
'data-pendoid': dataPendoId = rootClassName$N,
|
|
8862
8862
|
'data-testid': dataTestId,
|
|
8863
8863
|
children,
|
|
8864
8864
|
closeIconVisible,
|
|
@@ -8872,7 +8872,7 @@ const DotDialog = ({
|
|
|
8872
8872
|
submitButtonProps,
|
|
8873
8873
|
title
|
|
8874
8874
|
}) => {
|
|
8875
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
8875
|
+
const rootClasses = useStylesWithRootClass(rootClassName$N, className);
|
|
8876
8876
|
const cancelClasses = useStylesWithRootClass(cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.className, 'cancel-button');
|
|
8877
8877
|
const [isOpen, setIsOpen] = useState(open);
|
|
8878
8878
|
const hasSecondaryAction = !!secondaryButtonProps;
|
|
@@ -9009,7 +9009,7 @@ const DotConfirmationDialog = ({
|
|
|
9009
9009
|
});
|
|
9010
9010
|
};
|
|
9011
9011
|
|
|
9012
|
-
const rootClassName$
|
|
9012
|
+
const rootClassName$M = 'dot-grid';
|
|
9013
9013
|
const frGetter = value => typeof value === 'number' ? `repeat(${value}, 1fr)` : value;
|
|
9014
9014
|
const breakpointsGetter$1 = (theme, columnsBreakpoints, columnGap, rowGap) => `${theme.breakpoints.up('xs')} {
|
|
9015
9015
|
column-gap: ${`${columnGap.xs}px`};
|
|
@@ -9069,7 +9069,7 @@ const Grid = ({
|
|
|
9069
9069
|
children,
|
|
9070
9070
|
isLoading
|
|
9071
9071
|
}) => {
|
|
9072
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
9072
|
+
const rootClasses = useStylesWithRootClass(rootClassName$M, className);
|
|
9073
9073
|
return jsxs("div", {
|
|
9074
9074
|
className: rootClasses,
|
|
9075
9075
|
children: [children, isLoading && jsx(DotProgress, {
|
|
@@ -9093,7 +9093,7 @@ const StyledGrid = styled(Grid)`
|
|
|
9093
9093
|
theme,
|
|
9094
9094
|
width
|
|
9095
9095
|
}) => css`
|
|
9096
|
-
&.${rootClassName$
|
|
9096
|
+
&.${rootClassName$M} {
|
|
9097
9097
|
display: grid;
|
|
9098
9098
|
grid-template-rows: ${frGetter(rows)};
|
|
9099
9099
|
${columns ? `${columns && `grid-template-columns: ${frGetter(columns)}`};` : breakpointsGetter$1(theme, columnsBreakpoints, columnGap, rowGap)}
|
|
@@ -9364,12 +9364,12 @@ const CssGridDebug = ({
|
|
|
9364
9364
|
});
|
|
9365
9365
|
};
|
|
9366
9366
|
|
|
9367
|
-
const rootClassName$
|
|
9367
|
+
const rootClassName$L = 'dot-pill';
|
|
9368
9368
|
const StyledPill = styled(Chip)`
|
|
9369
9369
|
${({
|
|
9370
9370
|
theme
|
|
9371
9371
|
}) => css`
|
|
9372
|
-
&.${rootClassName$
|
|
9372
|
+
&.${rootClassName$L} {
|
|
9373
9373
|
background-color: ${({
|
|
9374
9374
|
backgroundcolor,
|
|
9375
9375
|
variant
|
|
@@ -9493,7 +9493,7 @@ const DotPill = ({
|
|
|
9493
9493
|
status = 'default',
|
|
9494
9494
|
variant = 'filled'
|
|
9495
9495
|
}) => {
|
|
9496
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
9496
|
+
const rootClasses = useStylesWithRootClass(rootClassName$L, className, status);
|
|
9497
9497
|
return jsx(StyledPill, {
|
|
9498
9498
|
"aria-label": ariaLabel,
|
|
9499
9499
|
bordercolor: bordercolor,
|
|
@@ -11101,18 +11101,18 @@ function addAutoHideDuration(severity) {
|
|
|
11101
11101
|
return severity === 'error' ? null : 10000;
|
|
11102
11102
|
}
|
|
11103
11103
|
|
|
11104
|
-
const rootClassName$
|
|
11104
|
+
const rootClassName$K = 'dot-snackbar';
|
|
11105
11105
|
const StyledSnackbar = styled(Snackbar)`
|
|
11106
11106
|
${({
|
|
11107
11107
|
theme,
|
|
11108
11108
|
width,
|
|
11109
11109
|
$anchorOriginTop
|
|
11110
11110
|
}) => css`
|
|
11111
|
-
&.${rootClassName$
|
|
11111
|
+
&.${rootClassName$K} {
|
|
11112
11112
|
.MuiAlert-message {
|
|
11113
11113
|
word-break: break-word;
|
|
11114
11114
|
}
|
|
11115
|
-
.${rootClassName$
|
|
11115
|
+
.${rootClassName$1m} {
|
|
11116
11116
|
align-items: flex-start;
|
|
11117
11117
|
}
|
|
11118
11118
|
&.MuiSnackbar-anchorOriginTopLeft,
|
|
@@ -11165,7 +11165,7 @@ const DotSnackbar = ({
|
|
|
11165
11165
|
}) => {
|
|
11166
11166
|
const hasActions = !!(primaryAction || secondaryAction);
|
|
11167
11167
|
const calculatedAutoHideDuration = autoHideDuration === null || autoHideDuration > 0 ? autoHideDuration : addAutoHideDuration(severity);
|
|
11168
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11168
|
+
const rootClasses = useStylesWithRootClass(rootClassName$K, className);
|
|
11169
11169
|
const handleSnackbarClose = reason => {
|
|
11170
11170
|
if (!reason || hideOnClickAway || !hideOnClickAway && reason !== 'clickaway') {
|
|
11171
11171
|
onClose();
|
|
@@ -11235,10 +11235,10 @@ const DotSnackbar = ({
|
|
|
11235
11235
|
});
|
|
11236
11236
|
};
|
|
11237
11237
|
|
|
11238
|
-
const rootClassName$
|
|
11238
|
+
const rootClassName$J = 'dot-snackbar-container';
|
|
11239
11239
|
const StyledSnackbarContainer = styled.div`
|
|
11240
11240
|
${() => css`
|
|
11241
|
-
&.${rootClassName$
|
|
11241
|
+
&.${rootClassName$J} {
|
|
11242
11242
|
position: absolute;
|
|
11243
11243
|
top: 0;
|
|
11244
11244
|
width: 250px;
|
|
@@ -11270,10 +11270,10 @@ const DotSnackbarContainer = ({
|
|
|
11270
11270
|
};
|
|
11271
11271
|
}
|
|
11272
11272
|
return jsx(StyledSnackbarContainer, {
|
|
11273
|
-
className: rootClassName$
|
|
11273
|
+
className: rootClassName$J,
|
|
11274
11274
|
children: jsx("div", {
|
|
11275
|
-
className: rootClassName$
|
|
11276
|
-
"data-testid": rootClassName$
|
|
11275
|
+
className: rootClassName$J,
|
|
11276
|
+
"data-testid": rootClassName$J,
|
|
11277
11277
|
children: alerts.slice().reverse().map(alert => {
|
|
11278
11278
|
return jsx(DotSnackbar, {
|
|
11279
11279
|
autoCloseOnAction: autoCloseOnAction,
|
|
@@ -11347,12 +11347,12 @@ const useEnqueueErrorMessage = error => {
|
|
|
11347
11347
|
}, [error]);
|
|
11348
11348
|
};
|
|
11349
11349
|
|
|
11350
|
-
const rootClassName$
|
|
11350
|
+
const rootClassName$I = 'dot-dashboard-details';
|
|
11351
11351
|
const StyledDashboardDetails = styled(DotDrawer)`
|
|
11352
11352
|
${({
|
|
11353
11353
|
theme
|
|
11354
11354
|
}) => css`
|
|
11355
|
-
&.${rootClassName$
|
|
11355
|
+
&.${rootClassName$I} {
|
|
11356
11356
|
.dot-drawer-paper {
|
|
11357
11357
|
padding: 0;
|
|
11358
11358
|
width: 382px;
|
|
@@ -11478,7 +11478,7 @@ const DotDashboardDetailsView = ({
|
|
|
11478
11478
|
modifiedAuthorUser
|
|
11479
11479
|
}) => {
|
|
11480
11480
|
var _a, _b;
|
|
11481
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11481
|
+
const rootClasses = useStylesWithRootClass(rootClassName$I, className);
|
|
11482
11482
|
const closeHandler = useCallback(event => {
|
|
11483
11483
|
onClose && onClose(event);
|
|
11484
11484
|
}, [onClose]);
|
|
@@ -11948,10 +11948,7 @@ function DotDashboardDialog({
|
|
|
11948
11948
|
categories: editDashboard.categories
|
|
11949
11949
|
}));
|
|
11950
11950
|
}
|
|
11951
|
-
|
|
11952
|
-
onClose(false);
|
|
11953
|
-
};
|
|
11954
|
-
}, []);
|
|
11951
|
+
}, [copyDashboard, editDashboard]);
|
|
11955
11952
|
const validateName = useCallback(nameToValidate => __awaiter(this, void 0, void 0, function* () {
|
|
11956
11953
|
return cancelablePromise(searchDashboards({
|
|
11957
11954
|
name: nameToValidate
|
|
@@ -12150,12 +12147,12 @@ function DotDashboardDialog({
|
|
|
12150
12147
|
});
|
|
12151
12148
|
}
|
|
12152
12149
|
|
|
12153
|
-
const rootClassName$
|
|
12150
|
+
const rootClassName$H = 'dot-impact-dialog';
|
|
12154
12151
|
const StyledImpactDialog = styled(DotDialog)`
|
|
12155
12152
|
${({
|
|
12156
12153
|
theme
|
|
12157
12154
|
}) => css`
|
|
12158
|
-
&.${rootClassName$
|
|
12155
|
+
&.${rootClassName$H} {
|
|
12159
12156
|
.high-impact-default-content {
|
|
12160
12157
|
margin-top: ${theme.spacing(2)};
|
|
12161
12158
|
margin-bottom: ${theme.spacing(3)};
|
|
@@ -12261,7 +12258,7 @@ const DotImpactDialog = ({
|
|
|
12261
12258
|
}
|
|
12262
12259
|
return '';
|
|
12263
12260
|
}, [action, capitalize, impact, record]);
|
|
12264
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
12261
|
+
const rootClasses = useStylesWithRootClass(rootClassName$H, className);
|
|
12265
12262
|
return jsx(StyledImpactDialog, {
|
|
12266
12263
|
"data-testid": dataTestId,
|
|
12267
12264
|
className: rootClasses,
|
|
@@ -13633,7 +13630,7 @@ function DotDashboardHeader({
|
|
|
13633
13630
|
});
|
|
13634
13631
|
}
|
|
13635
13632
|
|
|
13636
|
-
const rootClassName$
|
|
13633
|
+
const rootClassName$G = 'dot-empty-state';
|
|
13637
13634
|
const emptyStateImageSizing = {
|
|
13638
13635
|
xsmall: 9,
|
|
13639
13636
|
dense: 15,
|
|
@@ -13704,9 +13701,9 @@ const StyledEmptyState = styled.div`
|
|
|
13704
13701
|
`}
|
|
13705
13702
|
`;
|
|
13706
13703
|
|
|
13707
|
-
const rootClassName$
|
|
13704
|
+
const rootClassName$F = 'dot-illustration';
|
|
13708
13705
|
const StyledIllustration = styled.span`
|
|
13709
|
-
&.${rootClassName$
|
|
13706
|
+
&.${rootClassName$F} {
|
|
13710
13707
|
display: inline-block;
|
|
13711
13708
|
}
|
|
13712
13709
|
`;
|
|
@@ -13723,17 +13720,17 @@ const DotIllustration = ({
|
|
|
13723
13720
|
tooltip,
|
|
13724
13721
|
tooltipPlacement = 'right-end'
|
|
13725
13722
|
}) => {
|
|
13726
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13723
|
+
const rootClasses = useStylesWithRootClass(rootClassName$F, className);
|
|
13727
13724
|
return jsx(DotTooltip, {
|
|
13728
13725
|
childrenDisplayStyle: "inline-block",
|
|
13729
13726
|
title: tooltip,
|
|
13730
13727
|
placement: tooltipPlacement,
|
|
13731
|
-
"data-testid": `${dataTestId || rootClassName$
|
|
13728
|
+
"data-testid": `${dataTestId || rootClassName$F}-tooltip`,
|
|
13732
13729
|
children: jsx(StyledIllustration, {
|
|
13733
13730
|
"aria-hidden": "false",
|
|
13734
13731
|
"aria-label": ariaLabel || title || 'Illustration',
|
|
13735
13732
|
className: rootClasses,
|
|
13736
|
-
"data-testid": dataTestId || rootClassName$
|
|
13733
|
+
"data-testid": dataTestId || rootClassName$F,
|
|
13737
13734
|
role: ariaRole,
|
|
13738
13735
|
children: jsx("img", {
|
|
13739
13736
|
alt: alt || 'Illustration',
|
|
@@ -13759,7 +13756,7 @@ const DotEmptyState = ({
|
|
|
13759
13756
|
subtitle,
|
|
13760
13757
|
title
|
|
13761
13758
|
}) => {
|
|
13762
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13759
|
+
const rootClasses = useStylesWithRootClass(rootClassName$G, className);
|
|
13763
13760
|
return jsxs(StyledEmptyState, {
|
|
13764
13761
|
"aria-label": ariaLabel,
|
|
13765
13762
|
className: `${rootClasses} ${size}`,
|
|
@@ -13840,20 +13837,20 @@ const StyledRadioGroup = styled(RadioGroup)`
|
|
|
13840
13837
|
&.${groupClassName} {
|
|
13841
13838
|
padding-left: ${theme.spacing(2.5)};
|
|
13842
13839
|
|
|
13843
|
-
.${rootClassName$
|
|
13840
|
+
.${rootClassName$T} {
|
|
13844
13841
|
margin: 0;
|
|
13845
13842
|
}
|
|
13846
13843
|
}
|
|
13847
13844
|
`}
|
|
13848
13845
|
`;
|
|
13849
13846
|
|
|
13850
|
-
const rootClassName$
|
|
13847
|
+
const rootClassName$E = 'dot-date-picker';
|
|
13851
13848
|
const popperClassName = 'dot-date-picker-popper';
|
|
13852
13849
|
const containerClassName$2 = 'dot-date-picker-container';
|
|
13853
13850
|
const rectanglePickersDayClassName = 'dot-rectangle-pickers-day';
|
|
13854
13851
|
const StyledDatePickerContainer = styled.div`
|
|
13855
13852
|
${() => css`
|
|
13856
|
-
&.${rootClassName$
|
|
13853
|
+
&.${rootClassName$E} .full-width {
|
|
13857
13854
|
width: 100%;
|
|
13858
13855
|
}
|
|
13859
13856
|
`}
|
|
@@ -13862,7 +13859,7 @@ const StyledDatePicker = styled(DatePicker)`
|
|
|
13862
13859
|
${({
|
|
13863
13860
|
theme
|
|
13864
13861
|
}) => css`
|
|
13865
|
-
&.${rootClassName$
|
|
13862
|
+
&.${rootClassName$E} {
|
|
13866
13863
|
${pickerInputStyles(theme)};
|
|
13867
13864
|
|
|
13868
13865
|
.Mui-disabled.MuiInputBase-root,
|
|
@@ -13904,7 +13901,7 @@ const StyledPickersDay = styled(PickersDay)`
|
|
|
13904
13901
|
`}
|
|
13905
13902
|
`;
|
|
13906
13903
|
|
|
13907
|
-
const rootClassName$
|
|
13904
|
+
const rootClassName$D = 'dot-time-picker';
|
|
13908
13905
|
const containerClassName$1 = 'dot-time-picker-container';
|
|
13909
13906
|
const timePickerPopperClassName = 'dot-time-picker-popper';
|
|
13910
13907
|
const TIME_SELECTION_HEIGHT_SPACING = 34.5;
|
|
@@ -13924,7 +13921,7 @@ const StyledTimePicker = styled(TimePicker)`
|
|
|
13924
13921
|
${({
|
|
13925
13922
|
theme
|
|
13926
13923
|
}) => css`
|
|
13927
|
-
&.${rootClassName$
|
|
13924
|
+
&.${rootClassName$D} {
|
|
13928
13925
|
${pickerInputStyles(theme)};
|
|
13929
13926
|
|
|
13930
13927
|
.Mui-disabled.MuiInputBase-root,
|
|
@@ -14001,36 +13998,36 @@ const StyledTimePickerPopper = styled(Popper)`
|
|
|
14001
13998
|
`}
|
|
14002
13999
|
`;
|
|
14003
14000
|
|
|
14004
|
-
const rootClassName$
|
|
14001
|
+
const rootClassName$C = 'dot-form';
|
|
14005
14002
|
const StyledFormContainer = styled.div`
|
|
14006
14003
|
${({
|
|
14007
14004
|
theme
|
|
14008
14005
|
}) => css`
|
|
14009
|
-
&.${rootClassName$
|
|
14006
|
+
&.${rootClassName$C} {
|
|
14010
14007
|
margin: ${theme.spacing(3, 0)};
|
|
14011
14008
|
|
|
14012
|
-
.${rootClassName$
|
|
14013
|
-
.${rootClassName$
|
|
14014
|
-
.${rootClassName$
|
|
14009
|
+
.${rootClassName$R},
|
|
14010
|
+
.${rootClassName$T},
|
|
14011
|
+
.${rootClassName$1q},
|
|
14015
14012
|
.${rootSelectClassName},
|
|
14016
|
-
.${rootClassName$
|
|
14017
|
-
.${rootClassName$
|
|
14013
|
+
.${rootClassName$E},
|
|
14014
|
+
.${rootClassName$D} {
|
|
14018
14015
|
margin: ${theme.spacing(1, 0)};
|
|
14019
14016
|
}
|
|
14020
14017
|
|
|
14021
14018
|
.${wrapperClassName$2} {
|
|
14022
|
-
+ .${rootClassName$
|
|
14019
|
+
+ .${rootClassName$1q},
|
|
14023
14020
|
.${wrapperClassName$2}
|
|
14024
14021
|
+ .${rootSelectClassName},
|
|
14025
14022
|
.${wrapperClassName$2}
|
|
14026
|
-
+ .${rootClassName$
|
|
14023
|
+
+ .${rootClassName$E},
|
|
14027
14024
|
.${wrapperClassName$2}
|
|
14028
|
-
+ .${rootClassName$
|
|
14025
|
+
+ .${rootClassName$D} {
|
|
14029
14026
|
margin: ${theme.spacing(0, 0, 1, 0)};
|
|
14030
14027
|
}
|
|
14031
14028
|
|
|
14032
|
-
.${rootClassName$
|
|
14033
|
-
.${rootClassName$
|
|
14029
|
+
.${rootClassName$Q}, .${groupClassName} {
|
|
14030
|
+
.${rootClassName$T} {
|
|
14034
14031
|
margin: 0;
|
|
14035
14032
|
}
|
|
14036
14033
|
}
|
|
@@ -14045,7 +14042,7 @@ const DotForm = ({
|
|
|
14045
14042
|
'data-testid': dataTestId,
|
|
14046
14043
|
onSubmit
|
|
14047
14044
|
}) => {
|
|
14048
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14045
|
+
const rootClasses = useStylesWithRootClass(rootClassName$C, className);
|
|
14049
14046
|
return jsx("form", {
|
|
14050
14047
|
"aria-label": ariaLabel,
|
|
14051
14048
|
"data-testid": dataTestId,
|
|
@@ -14058,10 +14055,10 @@ const DotForm = ({
|
|
|
14058
14055
|
});
|
|
14059
14056
|
};
|
|
14060
14057
|
|
|
14061
|
-
const rootClassName$
|
|
14058
|
+
const rootClassName$B = 'dot-dynamic-form';
|
|
14062
14059
|
const StyledDynamicForm = styled(DotForm)`
|
|
14063
14060
|
${() => css`
|
|
14064
|
-
&.${rootClassName$
|
|
14061
|
+
&.${rootClassName$B} {
|
|
14065
14062
|
}
|
|
14066
14063
|
`}
|
|
14067
14064
|
`;
|
|
@@ -14241,12 +14238,12 @@ const checkIfFormDataValid = formState => {
|
|
|
14241
14238
|
return true;
|
|
14242
14239
|
};
|
|
14243
14240
|
|
|
14244
|
-
const rootClassName$
|
|
14241
|
+
const rootClassName$A = 'dot-progress-button';
|
|
14245
14242
|
const StyledProgressButton = styled(DotButton)`
|
|
14246
14243
|
${({
|
|
14247
14244
|
theme
|
|
14248
14245
|
}) => css`
|
|
14249
|
-
&.${rootClassName$
|
|
14246
|
+
&.${rootClassName$A} {
|
|
14250
14247
|
.hidden {
|
|
14251
14248
|
// hide children but preserve its space so that
|
|
14252
14249
|
// button's dimensions don't change
|
|
@@ -14271,7 +14268,7 @@ const DotProgressButton = ({
|
|
|
14271
14268
|
ariaLabel,
|
|
14272
14269
|
children,
|
|
14273
14270
|
className,
|
|
14274
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
14271
|
+
'data-pendoid': dataPendoId = rootClassName$A,
|
|
14275
14272
|
'data-testid': dataTestId,
|
|
14276
14273
|
disabled = false,
|
|
14277
14274
|
disableInteractive,
|
|
@@ -14285,7 +14282,7 @@ const DotProgressButton = ({
|
|
|
14285
14282
|
tooltip,
|
|
14286
14283
|
type = 'primary'
|
|
14287
14284
|
}) => {
|
|
14288
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14285
|
+
const rootClasses = useStylesWithRootClass(rootClassName$A, className);
|
|
14289
14286
|
const isButtonDisabled = disabled || isLoading;
|
|
14290
14287
|
const titleClasses = useStylesWithRootClass(isLoading ? 'hidden' : '');
|
|
14291
14288
|
const progressCircleSize = size === 'large' ? SPINNER_LARGE_SIZE : SPINNER_DEFAULT_SIZE;
|
|
@@ -14315,12 +14312,12 @@ const DotProgressButton = ({
|
|
|
14315
14312
|
});
|
|
14316
14313
|
};
|
|
14317
14314
|
|
|
14318
|
-
const rootClassName$
|
|
14315
|
+
const rootClassName$z = 'dot-radio';
|
|
14319
14316
|
const StyledRadioButton = styled(Radio)`
|
|
14320
14317
|
${({
|
|
14321
14318
|
theme
|
|
14322
14319
|
}) => css`
|
|
14323
|
-
&.${rootClassName$
|
|
14320
|
+
&.${rootClassName$z} {
|
|
14324
14321
|
padding: 8px;
|
|
14325
14322
|
|
|
14326
14323
|
svg {
|
|
@@ -14338,7 +14335,7 @@ function DotRadioButton({
|
|
|
14338
14335
|
ariaLabel,
|
|
14339
14336
|
checked,
|
|
14340
14337
|
className,
|
|
14341
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
14338
|
+
'data-pendoid': dataPendoId = rootClassName$T,
|
|
14342
14339
|
'data-testid': dataTestId,
|
|
14343
14340
|
disabled,
|
|
14344
14341
|
id,
|
|
@@ -14351,7 +14348,7 @@ function DotRadioButton({
|
|
|
14351
14348
|
size = 'medium',
|
|
14352
14349
|
value
|
|
14353
14350
|
}) {
|
|
14354
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14351
|
+
const rootClasses = useStylesWithRootClass(rootClassName$T, className);
|
|
14355
14352
|
const handleChange = event => {
|
|
14356
14353
|
onChange && onChange(event, event.target.value);
|
|
14357
14354
|
};
|
|
@@ -14359,7 +14356,7 @@ function DotRadioButton({
|
|
|
14359
14356
|
const radioControl = jsx(StyledRadioButton, {
|
|
14360
14357
|
checked: checked,
|
|
14361
14358
|
classes: {
|
|
14362
|
-
root: rootClassName$
|
|
14359
|
+
root: rootClassName$z
|
|
14363
14360
|
},
|
|
14364
14361
|
color: "primary",
|
|
14365
14362
|
"data-pendoid": dataPendoId,
|
|
@@ -14405,7 +14402,7 @@ const DotRadioGroup = ({
|
|
|
14405
14402
|
size = 'medium'
|
|
14406
14403
|
}) => {
|
|
14407
14404
|
const placement = `${placementClassName}${labelPlacement}`;
|
|
14408
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14405
|
+
const rootClasses = useStylesWithRootClass(rootClassName$R, className, placement);
|
|
14409
14406
|
const radioValue = value || defaultValue;
|
|
14410
14407
|
const [selectedValue, setSelectedValue] = useState(radioValue);
|
|
14411
14408
|
/* This will ensure that value can be updated from the outside */
|
|
@@ -14470,7 +14467,7 @@ const DotRadioGroup = ({
|
|
|
14470
14467
|
});
|
|
14471
14468
|
};
|
|
14472
14469
|
|
|
14473
|
-
const rootClassName$
|
|
14470
|
+
const rootClassName$y = 'dot-switch';
|
|
14474
14471
|
const StyledSwitch = styled(Switch)`
|
|
14475
14472
|
${({
|
|
14476
14473
|
theme
|
|
@@ -14499,7 +14496,7 @@ const DotSwitch = ({
|
|
|
14499
14496
|
checked,
|
|
14500
14497
|
className,
|
|
14501
14498
|
color,
|
|
14502
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
14499
|
+
'data-pendoid': dataPendoId = rootClassName$y,
|
|
14503
14500
|
'data-testid': dataTestId,
|
|
14504
14501
|
disabled = false,
|
|
14505
14502
|
id,
|
|
@@ -14509,7 +14506,7 @@ const DotSwitch = ({
|
|
|
14509
14506
|
onChange,
|
|
14510
14507
|
size = 'medium'
|
|
14511
14508
|
}) => {
|
|
14512
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14509
|
+
const rootClasses = useStylesWithRootClass(rootClassName$y, className);
|
|
14513
14510
|
const handleChange = event => {
|
|
14514
14511
|
onChange && onChange(event);
|
|
14515
14512
|
};
|
|
@@ -14539,7 +14536,7 @@ const DotSwitch = ({
|
|
|
14539
14536
|
tabIndex: 0
|
|
14540
14537
|
});
|
|
14541
14538
|
return jsx(StyledFormControlLabel, {
|
|
14542
|
-
className: rootClassName$
|
|
14539
|
+
className: rootClassName$T,
|
|
14543
14540
|
control: switchControl,
|
|
14544
14541
|
label: label,
|
|
14545
14542
|
labelPlacement: labelPlacement
|
|
@@ -14860,7 +14857,7 @@ const DotDynamicForm = ({
|
|
|
14860
14857
|
onChange,
|
|
14861
14858
|
onSubmit
|
|
14862
14859
|
}) => {
|
|
14863
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14860
|
+
const rootClasses = useStylesWithRootClass(rootClassName$B, className);
|
|
14864
14861
|
// Memoize this operation so that is doesn't get executed each time this
|
|
14865
14862
|
// component re-renders
|
|
14866
14863
|
const initialFormState = useMemo(() => getInitialFormState(config, liveValidation), [config, liveValidation, getInitialFormState]);
|
|
@@ -15106,7 +15103,7 @@ const DotDynamicForm = ({
|
|
|
15106
15103
|
});
|
|
15107
15104
|
};
|
|
15108
15105
|
|
|
15109
|
-
const rootClassName$
|
|
15106
|
+
const rootClassName$x = 'dot-inline-edit';
|
|
15110
15107
|
const editModeClassName = 'dot-edit-mode';
|
|
15111
15108
|
const viewModeClassName = 'dot-view-mode';
|
|
15112
15109
|
const placeholderClassName = 'dot-placeholder';
|
|
@@ -15118,7 +15115,7 @@ const StyledInlineEdit = styled.div`
|
|
|
15118
15115
|
theme,
|
|
15119
15116
|
fullWidth
|
|
15120
15117
|
}) => css`
|
|
15121
|
-
&.${rootClassName$
|
|
15118
|
+
&.${rootClassName$x} {
|
|
15122
15119
|
align-items: center;
|
|
15123
15120
|
color: ${theme.palette.figma.typography.black};
|
|
15124
15121
|
display: ${fullWidth ? 'flex' : 'inline-flex'};
|
|
@@ -15332,7 +15329,7 @@ const DotInlineEdit = ({
|
|
|
15332
15329
|
bindings,
|
|
15333
15330
|
charactersLimit,
|
|
15334
15331
|
className,
|
|
15335
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
15332
|
+
'data-pendoid': dataPendoId = rootClassName$x,
|
|
15336
15333
|
'data-testid': dataTestId,
|
|
15337
15334
|
fullWidth = true,
|
|
15338
15335
|
hideActionButtons,
|
|
@@ -15368,7 +15365,7 @@ const DotInlineEdit = ({
|
|
|
15368
15365
|
}
|
|
15369
15366
|
}, [value]);
|
|
15370
15367
|
const isSaveDisabled = checkIfEmptyValue(inputValue);
|
|
15371
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15368
|
+
const rootClasses = useStylesWithRootClass(rootClassName$x, className, editing ? editModeClassName : '');
|
|
15372
15369
|
const handleShowTooltip = visible => {
|
|
15373
15370
|
if (!editing) {
|
|
15374
15371
|
setShowTooltip(visible);
|
|
@@ -15556,13 +15553,13 @@ const DotInlineEdit = ({
|
|
|
15556
15553
|
});
|
|
15557
15554
|
};
|
|
15558
15555
|
|
|
15559
|
-
const rootClassName$
|
|
15556
|
+
const rootClassName$w = 'dot-navigation-rail';
|
|
15560
15557
|
const StyledNavigationRail = styled.div`
|
|
15561
15558
|
${({
|
|
15562
15559
|
theme,
|
|
15563
15560
|
railItemPosition
|
|
15564
15561
|
}) => css`
|
|
15565
|
-
&.${rootClassName$
|
|
15562
|
+
&.${rootClassName$w} {
|
|
15566
15563
|
background: ${theme.palette.figma.neutral.elevated};
|
|
15567
15564
|
border-left: 1px solid ${theme.palette.figma.border.default};
|
|
15568
15565
|
display: flex;
|
|
@@ -15621,7 +15618,7 @@ const DotNavigationRail = ({
|
|
|
15621
15618
|
railItems,
|
|
15622
15619
|
selectedIndex = 0
|
|
15623
15620
|
}) => {
|
|
15624
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15621
|
+
const rootClasses = useStylesWithRootClass(rootClassName$w, className);
|
|
15625
15622
|
const [selectedItemIndex, setSelectedItemIndex] = useState(selectedIndex);
|
|
15626
15623
|
/* Used to change selected index programmatically from the consumer component */
|
|
15627
15624
|
useEffect(() => {
|
|
@@ -15672,12 +15669,12 @@ const DotNavigationRail = ({
|
|
|
15672
15669
|
});
|
|
15673
15670
|
};
|
|
15674
15671
|
|
|
15675
|
-
const rootClassName$
|
|
15672
|
+
const rootClassName$v = 'dot-skeleton';
|
|
15676
15673
|
const StyledSkeleton = styled(Skeleton)`
|
|
15677
15674
|
${({
|
|
15678
15675
|
theme
|
|
15679
15676
|
}) => css`
|
|
15680
|
-
&.${rootClassName$
|
|
15677
|
+
&.${rootClassName$v} {
|
|
15681
15678
|
background-color: ${theme.palette.figma.border.darker};
|
|
15682
15679
|
}
|
|
15683
15680
|
`}
|
|
@@ -15692,7 +15689,7 @@ const DotSkeleton = ({
|
|
|
15692
15689
|
width,
|
|
15693
15690
|
variant
|
|
15694
15691
|
}) => {
|
|
15695
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15692
|
+
const rootClasses = useStylesWithRootClass(rootClassName$v, className);
|
|
15696
15693
|
return jsx(StyledSkeleton, {
|
|
15697
15694
|
animation: "wave",
|
|
15698
15695
|
"aria-label": ariaLabel,
|
|
@@ -15707,12 +15704,12 @@ const DotSkeleton = ({
|
|
|
15707
15704
|
});
|
|
15708
15705
|
};
|
|
15709
15706
|
|
|
15710
|
-
const rootClassName$
|
|
15707
|
+
const rootClassName$u = 'dot-split-button-group';
|
|
15711
15708
|
const StyledSplitButtonGroup = styled(ButtonGroup)`
|
|
15712
15709
|
${({
|
|
15713
15710
|
theme
|
|
15714
15711
|
}) => css`
|
|
15715
|
-
&.${rootClassName$
|
|
15712
|
+
&.${rootClassName$u} {
|
|
15716
15713
|
&.outlined,
|
|
15717
15714
|
&.text {
|
|
15718
15715
|
.expand-button {
|
|
@@ -15778,7 +15775,7 @@ const DotSplitButton = ({
|
|
|
15778
15775
|
autoFocus = false,
|
|
15779
15776
|
ariaLabel,
|
|
15780
15777
|
className,
|
|
15781
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
15778
|
+
'data-pendoid': dataPendoId = rootClassName$u,
|
|
15782
15779
|
'data-testid': dataTestId,
|
|
15783
15780
|
defaultMainOptionKey,
|
|
15784
15781
|
disabled = false,
|
|
@@ -15794,7 +15791,7 @@ const DotSplitButton = ({
|
|
|
15794
15791
|
tooltipPlacement,
|
|
15795
15792
|
type = 'primary'
|
|
15796
15793
|
}) => {
|
|
15797
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15794
|
+
const rootClasses = useStylesWithRootClass(rootClassName$u, className, type, disabled ? 'disabled' : '');
|
|
15798
15795
|
const [open, setOpen] = useState(false);
|
|
15799
15796
|
const anchorRef = useRef(null);
|
|
15800
15797
|
const hasEmptyOptions = options.length === 0;
|
|
@@ -15862,7 +15859,7 @@ const DotSplitButton = ({
|
|
|
15862
15859
|
});
|
|
15863
15860
|
};
|
|
15864
15861
|
|
|
15865
|
-
const rootClassName$
|
|
15862
|
+
const rootClassName$t = 'dot-stepper';
|
|
15866
15863
|
const stepListClassName = 'dot-stepper-list';
|
|
15867
15864
|
const contentClassName = 'dot-stepper-content';
|
|
15868
15865
|
const StyledStepper = styled.div`
|
|
@@ -15870,7 +15867,7 @@ const StyledStepper = styled.div`
|
|
|
15870
15867
|
theme,
|
|
15871
15868
|
offset
|
|
15872
15869
|
}) => css`
|
|
15873
|
-
&.${rootClassName$
|
|
15870
|
+
&.${rootClassName$t} {
|
|
15874
15871
|
display: flex;
|
|
15875
15872
|
align-items: flex-start;
|
|
15876
15873
|
padding: 0;
|
|
@@ -16185,7 +16182,7 @@ const DotStepper = ({
|
|
|
16185
16182
|
return ['left', 'right'].includes(stepsPosition) ? stepsPosition : 'left';
|
|
16186
16183
|
}
|
|
16187
16184
|
};
|
|
16188
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
16185
|
+
const rootClasses = useStylesWithRootClass(rootClassName$t, getStepsPosition(), className);
|
|
16189
16186
|
const stepContentClasses = displayInitialContent || displayFinalContent ? 'center-content' : '';
|
|
16190
16187
|
const stickyBottomClasses = useStylesWithRootClass('actions-container', isStickyBottom ? 'with-top-border' : '');
|
|
16191
16188
|
const actionsClasses = useStylesWithRootClass('actions', displayInitialContent || displayFinalContent ? 'center-actions' : '');
|
|
@@ -16403,12 +16400,12 @@ const DotStepper = ({
|
|
|
16403
16400
|
});
|
|
16404
16401
|
};
|
|
16405
16402
|
|
|
16406
|
-
const rootClassName$
|
|
16403
|
+
const rootClassName$s = 'dot-table-pagination-custom-actions';
|
|
16407
16404
|
const StyledTablePaginationCustomActions = styled.div`
|
|
16408
16405
|
${({
|
|
16409
16406
|
theme
|
|
16410
16407
|
}) => css`
|
|
16411
|
-
&.${rootClassName$
|
|
16408
|
+
&.${rootClassName$s} {
|
|
16412
16409
|
margin-left: ${theme.spacing(2.5)};
|
|
16413
16410
|
display: flex;
|
|
16414
16411
|
align-items: center;
|
|
@@ -16532,7 +16529,7 @@ const DotTablePaginationCustomActions = props => {
|
|
|
16532
16529
|
});
|
|
16533
16530
|
};
|
|
16534
16531
|
return jsxs(StyledTablePaginationCustomActions, {
|
|
16535
|
-
className: rootClassName$
|
|
16532
|
+
className: rootClassName$s,
|
|
16536
16533
|
children: [jsx(DotIconButton, {
|
|
16537
16534
|
ariaLabel: "previous page",
|
|
16538
16535
|
className: "page-control-button",
|
|
@@ -16579,7 +16576,7 @@ const DotTablePaginationCustomActions = props => {
|
|
|
16579
16576
|
});
|
|
16580
16577
|
};
|
|
16581
16578
|
|
|
16582
|
-
const rootClassName$
|
|
16579
|
+
const rootClassName$r = 'dot-table-pagination';
|
|
16583
16580
|
// TO-DO: Determine how to apply styles to standard popper element
|
|
16584
16581
|
const paginationItemClassName = 'dot-pagination-menu-item';
|
|
16585
16582
|
const StyledTablePagination = styled.div`
|
|
@@ -16587,7 +16584,7 @@ const StyledTablePagination = styled.div`
|
|
|
16587
16584
|
theme,
|
|
16588
16585
|
typography
|
|
16589
16586
|
}) => css`
|
|
16590
|
-
.${rootClassName$
|
|
16587
|
+
.${rootClassName$r} {
|
|
16591
16588
|
border-top: 1px solid ${theme.palette.figma.border.default};
|
|
16592
16589
|
|
|
16593
16590
|
.dot-caption,
|
|
@@ -16630,7 +16627,7 @@ const DotTablePagination = ({
|
|
|
16630
16627
|
showJumpToPageActionButton = false,
|
|
16631
16628
|
typography = 'subtitle2'
|
|
16632
16629
|
}) => {
|
|
16633
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
16630
|
+
const rootClasses = useStylesWithRootClass(rootClassName$r, className, showJumpToPageActionButton ? 'with-custom-actions' : '');
|
|
16634
16631
|
const handlePageChange = (event, newPage) => {
|
|
16635
16632
|
onPageChange && onPageChange(newPage);
|
|
16636
16633
|
};
|
|
@@ -16639,7 +16636,7 @@ const DotTablePagination = ({
|
|
|
16639
16636
|
};
|
|
16640
16637
|
return (/* Container is used to pass 'typography' prop to a styled component */
|
|
16641
16638
|
jsx(StyledTablePagination, {
|
|
16642
|
-
className: rootClassName$
|
|
16639
|
+
className: rootClassName$r,
|
|
16643
16640
|
typography: typography,
|
|
16644
16641
|
children: jsx(TablePagination, {
|
|
16645
16642
|
ActionsComponent: showJumpToPageActionButton ? DotTablePaginationCustomActions : undefined,
|
|
@@ -16666,14 +16663,14 @@ const DotTablePagination = ({
|
|
|
16666
16663
|
);
|
|
16667
16664
|
};
|
|
16668
16665
|
|
|
16669
|
-
const rootClassName$
|
|
16666
|
+
const rootClassName$q = 'dot-table';
|
|
16670
16667
|
const MULTISELECT_COLUMN_WIDTH = 52;
|
|
16671
16668
|
const COLLAPSIBLE_COLUMN_WIDTH = 42;
|
|
16672
16669
|
const StyledPaper$1 = styled(Paper)`
|
|
16673
16670
|
${({
|
|
16674
16671
|
theme
|
|
16675
16672
|
}) => css`
|
|
16676
|
-
&.${rootClassName$
|
|
16673
|
+
&.${rootClassName$q} {
|
|
16677
16674
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
16678
16675
|
border: 1px solid ${theme.palette.figma.border.default};
|
|
16679
16676
|
overflow: hidden;
|
|
@@ -16816,10 +16813,10 @@ const StyledMenu$1 = styled(DotMenu)`
|
|
|
16816
16813
|
}
|
|
16817
16814
|
`;
|
|
16818
16815
|
|
|
16819
|
-
const rootClassName$
|
|
16816
|
+
const rootClassName$p = 'dot-tbody';
|
|
16820
16817
|
const StyledTableBody = styled(TableBody)`
|
|
16821
16818
|
${() => css`
|
|
16822
|
-
&.${rootClassName$
|
|
16819
|
+
&.${rootClassName$p} {
|
|
16823
16820
|
tr:last-child td {
|
|
16824
16821
|
border-bottom: none;
|
|
16825
16822
|
}
|
|
@@ -17014,12 +17011,12 @@ function stableSort(array, comparator) {
|
|
|
17014
17011
|
return stabilizedThis.map(el => el[0]);
|
|
17015
17012
|
}
|
|
17016
17013
|
|
|
17017
|
-
const rootClassName$
|
|
17014
|
+
const rootClassName$o = 'dot-td';
|
|
17018
17015
|
const StyledTableCell = styled(TableCell)`
|
|
17019
17016
|
${({
|
|
17020
17017
|
theme
|
|
17021
17018
|
}) => css`
|
|
17022
|
-
&.${rootClassName$
|
|
17019
|
+
&.${rootClassName$o} {
|
|
17023
17020
|
padding-top: 0;
|
|
17024
17021
|
padding-bottom: 0;
|
|
17025
17022
|
|
|
@@ -17114,7 +17111,7 @@ const DotBodyCell = ({
|
|
|
17114
17111
|
const isOverflowing = actionTableCellWidth > (wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current.clientWidth);
|
|
17115
17112
|
setShowMenu(isOverflowing);
|
|
17116
17113
|
};
|
|
17117
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17114
|
+
const rootClasses = useStylesWithRootClass(rootClassName$o, className, noWrap && 'noWrap', Array.isArray(value) && 'actionItems');
|
|
17118
17115
|
const getTableCellValue = () => {
|
|
17119
17116
|
if (Array.isArray(value)) {
|
|
17120
17117
|
return jsx("div", {
|
|
@@ -17182,13 +17179,13 @@ const EmptyDotRow = ({
|
|
|
17182
17179
|
const TABLE_TYPOGRAPHY_VARIANT = 'body1';
|
|
17183
17180
|
const TABLE_DEFAULT_SKELETON_ROWS = 4;
|
|
17184
17181
|
|
|
17185
|
-
const rootClassName$
|
|
17182
|
+
const rootClassName$n = 'dot-th-checkbox';
|
|
17186
17183
|
const styledTableHeaderCheckboxElement = (isCell = true) => {
|
|
17187
17184
|
return styled(isCell ? TableCell : 'div')`
|
|
17188
17185
|
${({
|
|
17189
17186
|
theme
|
|
17190
17187
|
}) => css`
|
|
17191
|
-
&.${rootClassName$
|
|
17188
|
+
&.${rootClassName$n} {
|
|
17192
17189
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
17193
17190
|
padding: ${theme.spacing(0, 1)};
|
|
17194
17191
|
width: ${theme.spacing(5)};
|
|
@@ -17216,7 +17213,7 @@ const DotHeaderCheckboxCell = ({
|
|
|
17216
17213
|
isFromTableSelectionToolbar,
|
|
17217
17214
|
multiSelectHeader
|
|
17218
17215
|
}) => {
|
|
17219
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17216
|
+
const rootClasses = useStylesWithRootClass(rootClassName$n, className, isFromTableSelectionToolbar ? 'table-selection-toolbar-checkbox' : '');
|
|
17220
17217
|
const [multiSelectState, setMultiSelectState] = useState('unchecked');
|
|
17221
17218
|
const {
|
|
17222
17219
|
onCheckAllChange,
|
|
@@ -17266,12 +17263,12 @@ const DotHeaderCheckboxCell = ({
|
|
|
17266
17263
|
});
|
|
17267
17264
|
};
|
|
17268
17265
|
|
|
17269
|
-
const rootClassName$
|
|
17266
|
+
const rootClassName$m = 'dot-th';
|
|
17270
17267
|
const StyledTableHeaderCell = styled(TableCell)`
|
|
17271
17268
|
${({
|
|
17272
17269
|
theme
|
|
17273
17270
|
}) => css`
|
|
17274
|
-
&.${rootClassName$
|
|
17271
|
+
&.${rootClassName$m} {
|
|
17275
17272
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
17276
17273
|
|
|
17277
17274
|
&.MuiTableCell-alignCenter > span.MuiTableSortLabel-root {
|
|
@@ -17311,7 +17308,7 @@ const DotHeaderCell = ({
|
|
|
17311
17308
|
value,
|
|
17312
17309
|
width
|
|
17313
17310
|
}) => {
|
|
17314
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17311
|
+
const rootClasses = useStylesWithRootClass(rootClassName$m, pinned ? 'dot-pinned-cell' : '', className);
|
|
17315
17312
|
const headerTitle = isString$2(value) ? value : null;
|
|
17316
17313
|
const formattedValue = getFormattedTableCellValue(value, typography);
|
|
17317
17314
|
const getCellValue = () => {
|
|
@@ -17402,12 +17399,12 @@ const DotHeaderRow = ({
|
|
|
17402
17399
|
});
|
|
17403
17400
|
};
|
|
17404
17401
|
|
|
17405
|
-
const rootClassName$
|
|
17402
|
+
const rootClassName$l = 'dot-tr';
|
|
17406
17403
|
const StyledTableRowStyles = styled(TableRow)`
|
|
17407
17404
|
${({
|
|
17408
17405
|
theme
|
|
17409
17406
|
}) => css`
|
|
17410
|
-
&.${rootClassName$
|
|
17407
|
+
&.${rootClassName$l} {
|
|
17411
17408
|
&.selected {
|
|
17412
17409
|
&,
|
|
17413
17410
|
.dot-td.dot-pinned-cell,
|
|
@@ -17633,12 +17630,12 @@ const ExpandCollapseCell = ({
|
|
|
17633
17630
|
});
|
|
17634
17631
|
};
|
|
17635
17632
|
|
|
17636
|
-
const rootClassName$
|
|
17633
|
+
const rootClassName$k = 'dot-td-checkbox';
|
|
17637
17634
|
const StyledTableBodyCheckboxCell = styled(TableCell)`
|
|
17638
17635
|
${({
|
|
17639
17636
|
theme
|
|
17640
17637
|
}) => css`
|
|
17641
|
-
&.${rootClassName$
|
|
17638
|
+
&.${rootClassName$k} {
|
|
17642
17639
|
padding: ${theme.spacing(0, 1)};
|
|
17643
17640
|
width: ${theme.spacing(5)};
|
|
17644
17641
|
|
|
@@ -17657,7 +17654,7 @@ const DotBodyCheckboxCell = ({
|
|
|
17657
17654
|
onChange,
|
|
17658
17655
|
rowId
|
|
17659
17656
|
}) => {
|
|
17660
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17657
|
+
const rootClasses = useStylesWithRootClass(rootClassName$k, className);
|
|
17661
17658
|
const [isCheckboxChecked, setIsCheckboxChecked] = useState(isChecked);
|
|
17662
17659
|
/** This effect is used when 'checked' status is changed from the outside */
|
|
17663
17660
|
useEffect(() => {
|
|
@@ -17710,7 +17707,7 @@ const DotTableRow = ({
|
|
|
17710
17707
|
selectedTableRowIds
|
|
17711
17708
|
} = multiSelectBody || {};
|
|
17712
17709
|
const isCheckboxChecked = selectedTableRowIds && selectedTableRowIds.includes(id) || false;
|
|
17713
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17710
|
+
const rootClasses = useStylesWithRootClass(rootClassName$l, isCheckboxChecked ? 'selected' : undefined, className);
|
|
17714
17711
|
const renderCheckboxCell = () => {
|
|
17715
17712
|
return jsx(DotBodyCheckboxCell, {
|
|
17716
17713
|
ariaLabel: "Click to select this row",
|
|
@@ -17831,7 +17828,7 @@ const DotTableBody = ({
|
|
|
17831
17828
|
return jsxs(Fragment, {
|
|
17832
17829
|
children: [jsx(StyledTableBody, {
|
|
17833
17830
|
classes: {
|
|
17834
|
-
root: rootClassName$
|
|
17831
|
+
root: rootClassName$p
|
|
17835
17832
|
},
|
|
17836
17833
|
children: getTableBodyRows()
|
|
17837
17834
|
}), jsx(StyledMenu$1, {
|
|
@@ -17846,12 +17843,12 @@ const DotTableBody = ({
|
|
|
17846
17843
|
});
|
|
17847
17844
|
};
|
|
17848
17845
|
|
|
17849
|
-
const rootClassName$
|
|
17846
|
+
const rootClassName$j = 'dot-table-selection-toolbar';
|
|
17850
17847
|
const StyledTableSelectionToolbar = styled(DotActionToolbar)`
|
|
17851
17848
|
${({
|
|
17852
17849
|
theme
|
|
17853
17850
|
}) => css`
|
|
17854
|
-
&.${rootClassName$
|
|
17851
|
+
&.${rootClassName$j} {
|
|
17855
17852
|
display: flex;
|
|
17856
17853
|
align-items: center;
|
|
17857
17854
|
justify-content: space-between;
|
|
@@ -17906,7 +17903,7 @@ const DotTableSelectionToolbar = ({
|
|
|
17906
17903
|
multiSelectHeader,
|
|
17907
17904
|
selectedRowsNumber
|
|
17908
17905
|
}) => {
|
|
17909
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17906
|
+
const rootClasses = useStylesWithRootClass(rootClassName$j, className);
|
|
17910
17907
|
return jsxs(StyledTableSelectionToolbar, {
|
|
17911
17908
|
ariaLabel: ariaLabel,
|
|
17912
17909
|
className: rootClasses,
|
|
@@ -17992,7 +17989,7 @@ const DotTable = ({
|
|
|
17992
17989
|
setPage(page);
|
|
17993
17990
|
}
|
|
17994
17991
|
}, [page]);
|
|
17995
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17992
|
+
const rootClasses = useStylesWithRootClass(rootClassName$q, className, loading ? 'loading' : '', showMultiselectOverTableHeaderRow ? 'with-multiselect-over-table-header' : '', showMultiselectOverTableHeaderRow && !selectedRowsNumber ? 'hidden-multiselect' : '');
|
|
17996
17993
|
const updateData = (newOrder, newOrderBy, newPage, newRowsPerPage) => {
|
|
17997
17994
|
const newData = stableSort(data, getComparator(newOrder, newOrderBy));
|
|
17998
17995
|
setPageData(newRowsPerPage ? newData.slice(newPage * newRowsPerPage, newPage * newRowsPerPage + newRowsPerPage) : newData);
|
|
@@ -18195,7 +18192,7 @@ const DotTableAction = ({
|
|
|
18195
18192
|
});
|
|
18196
18193
|
};
|
|
18197
18194
|
|
|
18198
|
-
const rootClassName$
|
|
18195
|
+
const rootClassName$i = 'dot-table-actions';
|
|
18199
18196
|
const TableActionsContainer = styled.div`
|
|
18200
18197
|
overflow: hidden;
|
|
18201
18198
|
text-overflow: clip;
|
|
@@ -18285,7 +18282,7 @@ const DotTableActions = ({
|
|
|
18285
18282
|
};
|
|
18286
18283
|
return jsxs(Fragment, {
|
|
18287
18284
|
children: [jsxs(TableActionsContainer, {
|
|
18288
|
-
className: rootClassName$
|
|
18285
|
+
className: rootClassName$i,
|
|
18289
18286
|
ref: wrapperRef,
|
|
18290
18287
|
children: [!showMenu && renderTableActions(), (showMenu || actions.length > 2) && jsx(DotIconButton, {
|
|
18291
18288
|
ariaLabel: "more options",
|
|
@@ -18309,12 +18306,12 @@ const DotTableActions = ({
|
|
|
18309
18306
|
});
|
|
18310
18307
|
};
|
|
18311
18308
|
|
|
18312
|
-
const rootClassName$
|
|
18309
|
+
const rootClassName$h = 'dot-tabs';
|
|
18313
18310
|
const StyledTabs = styled(Tabs)`
|
|
18314
18311
|
${({
|
|
18315
18312
|
theme
|
|
18316
18313
|
}) => css`
|
|
18317
|
-
&.${rootClassName$
|
|
18314
|
+
&.${rootClassName$h} {
|
|
18318
18315
|
&.MuiTabs-root {
|
|
18319
18316
|
width: 100%;
|
|
18320
18317
|
}
|
|
@@ -18367,7 +18364,7 @@ const DotTabs = ({
|
|
|
18367
18364
|
centered = false,
|
|
18368
18365
|
className,
|
|
18369
18366
|
color,
|
|
18370
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
18367
|
+
'data-pendoid': dataPendoId = rootClassName$h,
|
|
18371
18368
|
'data-testid': dataTestId,
|
|
18372
18369
|
initialValue = 0,
|
|
18373
18370
|
onChange,
|
|
@@ -18376,7 +18373,7 @@ const DotTabs = ({
|
|
|
18376
18373
|
variant = 'standard'
|
|
18377
18374
|
}) => {
|
|
18378
18375
|
const [value, setValue] = useState(initialValue);
|
|
18379
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18376
|
+
const rootClasses = useStylesWithRootClass(rootClassName$h, className);
|
|
18380
18377
|
useEffect(() => {
|
|
18381
18378
|
if (color) {
|
|
18382
18379
|
console.warn('DEPRECATED: `color` prop is deprecated in `<DotTabs>`, please remove any usage of it in your application.');
|
|
@@ -18430,9 +18427,9 @@ const DotTabs = ({
|
|
|
18430
18427
|
});
|
|
18431
18428
|
};
|
|
18432
18429
|
|
|
18433
|
-
const rootClassName$
|
|
18434
|
-
const containerClassName = `${rootClassName$
|
|
18435
|
-
const dropZoneClassName = `${rootClassName$
|
|
18430
|
+
const rootClassName$g = 'dot-file-upload';
|
|
18431
|
+
const containerClassName = `${rootClassName$g}-container`;
|
|
18432
|
+
const dropZoneClassName = `${rootClassName$g}-drop-zone`;
|
|
18436
18433
|
const StyledFileUploadContainer = styled.div`
|
|
18437
18434
|
${({
|
|
18438
18435
|
theme
|
|
@@ -18452,7 +18449,7 @@ const StyledFileUpload = styled.div`
|
|
|
18452
18449
|
${({
|
|
18453
18450
|
theme
|
|
18454
18451
|
}) => css`
|
|
18455
|
-
&.${rootClassName$
|
|
18452
|
+
&.${rootClassName$g}.${dropZoneClassName} {
|
|
18456
18453
|
align-items: center;
|
|
18457
18454
|
background: ${theme.palette.figma.background.level0.bckgGray};
|
|
18458
18455
|
border: 2px dashed ${theme.palette.figma.border.defaultButton};
|
|
@@ -18484,12 +18481,12 @@ const StyledFileUpload = styled.div`
|
|
|
18484
18481
|
`}
|
|
18485
18482
|
`;
|
|
18486
18483
|
|
|
18487
|
-
const rootClassName$
|
|
18484
|
+
const rootClassName$f = 'dot-file-list-item';
|
|
18488
18485
|
const StyledFileListItem = styled(StyledListItem)`
|
|
18489
18486
|
${({
|
|
18490
18487
|
theme
|
|
18491
18488
|
}) => css`
|
|
18492
|
-
&.${rootClassName$
|
|
18489
|
+
&.${rootClassName$f} {
|
|
18493
18490
|
border-bottom: 1px solid ${theme.palette.figma.border.default};
|
|
18494
18491
|
&:hover {
|
|
18495
18492
|
cursor: pointer;
|
|
@@ -18501,7 +18498,7 @@ const StyledFileListItem = styled(StyledListItem)`
|
|
|
18501
18498
|
outline: none;
|
|
18502
18499
|
}
|
|
18503
18500
|
|
|
18504
|
-
&.file-success:not(:hover, :focus-visible) .${rootClassName$
|
|
18501
|
+
&.file-success:not(:hover, :focus-visible) .${rootClassName$f}-end-icon {
|
|
18505
18502
|
i:before {
|
|
18506
18503
|
color: ${theme.palette.figma.success.normal};
|
|
18507
18504
|
}
|
|
@@ -18511,7 +18508,7 @@ const StyledFileListItem = styled(StyledListItem)`
|
|
|
18511
18508
|
}
|
|
18512
18509
|
}
|
|
18513
18510
|
|
|
18514
|
-
&.file-error:not(:hover, :focus-visible) .${rootClassName$
|
|
18511
|
+
&.file-error:not(:hover, :focus-visible) .${rootClassName$f}-end-icon {
|
|
18515
18512
|
i:before,
|
|
18516
18513
|
.MuiListItemText-secondary {
|
|
18517
18514
|
color: ${theme.palette.figma.destructive.normal};
|
|
@@ -18553,7 +18550,7 @@ const DotFileListItem = ({
|
|
|
18553
18550
|
onKeyPress,
|
|
18554
18551
|
tabIndex = 0
|
|
18555
18552
|
}) => {
|
|
18556
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18553
|
+
const rootClasses = useStylesWithRootClass(rootClassName$f, className, error ? 'file-error' : 'file-success');
|
|
18557
18554
|
const defaultIcon = error ? 'error-solid' : 'check-solid';
|
|
18558
18555
|
const [endIcon, setEndIcon] = useState(defaultIcon);
|
|
18559
18556
|
const handleItemClick = clickedFile => _event => onClick === null || onClick === void 0 ? void 0 : onClick(clickedFile);
|
|
@@ -18586,7 +18583,7 @@ const DotFileListItem = ({
|
|
|
18586
18583
|
})]
|
|
18587
18584
|
}), jsx(DotIconButton, {
|
|
18588
18585
|
ariaLabel: "delete file",
|
|
18589
|
-
className: `${rootClassName$
|
|
18586
|
+
className: `${rootClassName$f}-end-icon`,
|
|
18590
18587
|
"data-testid": dataTestId && `${dataTestId}-end-icon`,
|
|
18591
18588
|
disabled: disableDelete,
|
|
18592
18589
|
iconId: endIcon,
|
|
@@ -18710,7 +18707,7 @@ const DotFileUpload = ({
|
|
|
18710
18707
|
buttonOnly = false,
|
|
18711
18708
|
className,
|
|
18712
18709
|
contentErrors,
|
|
18713
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
18710
|
+
'data-pendoid': dataPendoId = rootClassName$g,
|
|
18714
18711
|
'data-testid': dataTestId,
|
|
18715
18712
|
disabled,
|
|
18716
18713
|
hideFilesList,
|
|
@@ -18723,7 +18720,7 @@ const DotFileUpload = ({
|
|
|
18723
18720
|
const [uploadedFiles, setUploadedFiles] = useState([]);
|
|
18724
18721
|
const [hasMaxFilesError, setHasMaxFilesError] = useState(false);
|
|
18725
18722
|
const isUploadDisabled = disabled || maxFiles && uploadedFiles.length >= maxFiles;
|
|
18726
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18723
|
+
const rootClasses = useStylesWithRootClass(rootClassName$g, className, !buttonOnly ? dropZoneClassName : '', isUploadDisabled ? 'disabled' : '');
|
|
18727
18724
|
const maxFilesClasses = useStylesWithRootClass('dot-max-files-message', hasMaxFilesError ? 'dot-max-files-reached' : '');
|
|
18728
18725
|
const allowMultiple = maxFiles === undefined || maxFiles > 1;
|
|
18729
18726
|
const setNewlyUploadedFiles = (acceptedFiles, fileRejections) => {
|
|
@@ -18795,12 +18792,12 @@ const DotFileUpload = ({
|
|
|
18795
18792
|
});
|
|
18796
18793
|
};
|
|
18797
18794
|
|
|
18798
|
-
const rootClassName$
|
|
18795
|
+
const rootClassName$e = 'dot-divider';
|
|
18799
18796
|
const StyledDivider = styled(Divider)`
|
|
18800
18797
|
${({
|
|
18801
18798
|
theme
|
|
18802
18799
|
}) => css`
|
|
18803
|
-
&.${rootClassName$
|
|
18800
|
+
&.${rootClassName$e} {
|
|
18804
18801
|
color: ${theme.palette.figma.border.darker};
|
|
18805
18802
|
|
|
18806
18803
|
.MuiDivider-light {
|
|
@@ -18820,7 +18817,7 @@ const DotDivider = ({
|
|
|
18820
18817
|
orientation,
|
|
18821
18818
|
variant
|
|
18822
18819
|
}) => {
|
|
18823
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18820
|
+
const rootClasses = useStylesWithRootClass(rootClassName$e, className);
|
|
18824
18821
|
return jsx(StyledDivider, {
|
|
18825
18822
|
absolute: absolute,
|
|
18826
18823
|
"aria-label": ariaLabel,
|
|
@@ -18849,7 +18846,7 @@ const DotPopper = ({
|
|
|
18849
18846
|
placement
|
|
18850
18847
|
}) => {
|
|
18851
18848
|
const [arrowRef, setArrowRef] = useState(null);
|
|
18852
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18849
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1f, className);
|
|
18853
18850
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18854
18851
|
const handleClickAway = event => {
|
|
18855
18852
|
if (onClickAway && (!anchorEl || !anchorEl.contains(event.currentTarget))) {
|
|
@@ -18914,14 +18911,14 @@ const getListItemLayout = listItems => {
|
|
|
18914
18911
|
}));
|
|
18915
18912
|
};
|
|
18916
18913
|
|
|
18917
|
-
const rootClassName$
|
|
18914
|
+
const rootClassName$d = 'dot-draggable-list';
|
|
18918
18915
|
const listItemClassName = 'dot-draggable-list-item';
|
|
18919
18916
|
const StyledDraggableList = styled.div`
|
|
18920
18917
|
${({
|
|
18921
18918
|
theme,
|
|
18922
18919
|
draggableHandle
|
|
18923
18920
|
}) => css`
|
|
18924
|
-
&.${rootClassName$
|
|
18921
|
+
&.${rootClassName$d} {
|
|
18925
18922
|
padding: ${theme.spacing(1, 0)};
|
|
18926
18923
|
position: relative;
|
|
18927
18924
|
|
|
@@ -18956,7 +18953,7 @@ const ListGridLayout = WidthProvider(GridLayout);
|
|
|
18956
18953
|
const DotDraggableList = ({
|
|
18957
18954
|
ariaLabel,
|
|
18958
18955
|
className,
|
|
18959
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
18956
|
+
'data-pendoid': dataPendoId = rootClassName$d,
|
|
18960
18957
|
'data-testid': dataTestId,
|
|
18961
18958
|
disableDrag,
|
|
18962
18959
|
draggableHandle,
|
|
@@ -18965,7 +18962,7 @@ const DotDraggableList = ({
|
|
|
18965
18962
|
rowHeight = DEFAULT_LIST_ITEM_HEIGHT,
|
|
18966
18963
|
width = DEFAULT_LIST_WIDTH
|
|
18967
18964
|
}) => {
|
|
18968
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18965
|
+
const rootClasses = useStylesWithRootClass(rootClassName$d, className, draggableHandle ? 'with-draggable-handle' : '');
|
|
18969
18966
|
const listItemClasses = useStylesWithRootClass(listItemClassName, draggableHandle && !disableDrag ? 'with-handle-grab-cursor' : '', draggableHandle || disableDrag ? 'with-default-cursor' : '');
|
|
18970
18967
|
const listWidth = isNumber(width) ? `${width}px` : width;
|
|
18971
18968
|
const [orderedItems, setOrderedItems] = useState([]);
|
|
@@ -52503,7 +52500,7 @@ cjs.exports.DraggableCore = DraggableCore;
|
|
|
52503
52500
|
var cjsExports = cjs.exports;
|
|
52504
52501
|
var Draggable$1 = /*@__PURE__*/getDefaultExportFromCjs(cjsExports);
|
|
52505
52502
|
|
|
52506
|
-
const rootClassName$
|
|
52503
|
+
const rootClassName$c = 'dot-draggable-window';
|
|
52507
52504
|
const defaultWidth = '600px';
|
|
52508
52505
|
const defaultHeight = '324px';
|
|
52509
52506
|
const StyledPaper = styled(Paper)`
|
|
@@ -52512,7 +52509,7 @@ const StyledPaper = styled(Paper)`
|
|
|
52512
52509
|
$maxHeight,
|
|
52513
52510
|
$maxWidth
|
|
52514
52511
|
}) => css`
|
|
52515
|
-
&.${rootClassName$
|
|
52512
|
+
&.${rootClassName$c} {
|
|
52516
52513
|
max-width: ${$maxWidth !== null && $maxWidth !== void 0 ? $maxWidth : defaultWidth};
|
|
52517
52514
|
max-height: ${$maxHeight !== null && $maxHeight !== void 0 ? $maxHeight : defaultHeight};
|
|
52518
52515
|
${$maxWidth ? '' : `width: ${defaultWidth};`}
|
|
@@ -52550,7 +52547,7 @@ const StyledPaper = styled(Paper)`
|
|
|
52550
52547
|
const DotDraggableWindow = ({
|
|
52551
52548
|
ariaLabel,
|
|
52552
52549
|
anchorEl,
|
|
52553
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
52550
|
+
'data-pendoid': dataPendoId = rootClassName$c,
|
|
52554
52551
|
'data-testid': dataTestId,
|
|
52555
52552
|
className,
|
|
52556
52553
|
children,
|
|
@@ -52559,7 +52556,7 @@ const DotDraggableWindow = ({
|
|
|
52559
52556
|
onClose,
|
|
52560
52557
|
title
|
|
52561
52558
|
}) => {
|
|
52562
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
52559
|
+
const rootClasses = useStylesWithRootClass(rootClassName$c, className);
|
|
52563
52560
|
const nodeRef = useRef(null);
|
|
52564
52561
|
return jsx(Draggable$1, {
|
|
52565
52562
|
bounds: "body",
|
|
@@ -52601,12 +52598,12 @@ const DotDraggableWindow = ({
|
|
|
52601
52598
|
});
|
|
52602
52599
|
};
|
|
52603
52600
|
|
|
52604
|
-
const rootClassName$
|
|
52601
|
+
const rootClassName$b = 'dot-linear-progress';
|
|
52605
52602
|
const StyledLinearProgress = styled(LinearProgress)`
|
|
52606
52603
|
${({
|
|
52607
52604
|
theme
|
|
52608
52605
|
}) => css`
|
|
52609
|
-
&.${rootClassName$
|
|
52606
|
+
&.${rootClassName$b} {
|
|
52610
52607
|
&.MuiLinearProgress-colorError {
|
|
52611
52608
|
color: ${theme.palette.figma.inProgress.error};
|
|
52612
52609
|
}
|
|
@@ -52638,7 +52635,7 @@ const DotLinearProgress = ({
|
|
|
52638
52635
|
valueBuffer,
|
|
52639
52636
|
variant = 'indeterminate'
|
|
52640
52637
|
}) => {
|
|
52641
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
52638
|
+
const rootClasses = useStylesWithRootClass(rootClassName$b, className);
|
|
52642
52639
|
useEffect(() => {
|
|
52643
52640
|
if (!ariaLabel) {
|
|
52644
52641
|
console.warn('a11y: DotLinearProgress must have an ariaLabel to describe the progress bar');
|
|
@@ -52689,7 +52686,7 @@ const DotDatePicker = ({
|
|
|
52689
52686
|
autoFocus = false,
|
|
52690
52687
|
className,
|
|
52691
52688
|
closeOnSelect = true,
|
|
52692
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
52689
|
+
'data-pendoid': dataPendoId = rootClassName$E,
|
|
52693
52690
|
'data-testid': dataTestId,
|
|
52694
52691
|
defaultValue,
|
|
52695
52692
|
disableOpenPicker,
|
|
@@ -52730,7 +52727,7 @@ const DotDatePicker = ({
|
|
|
52730
52727
|
const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
|
|
52731
52728
|
const isInputReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
|
|
52732
52729
|
const inputRef = useRef(null);
|
|
52733
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
52730
|
+
const rootClasses = useStylesWithRootClass(rootClassName$E, className, isInputReadOnly ? 'read-only' : '');
|
|
52734
52731
|
const containerClasses = useStylesWithRootClass(containerClassName$2, fullWidth ? 'full-width' : '', className);
|
|
52735
52732
|
const focusInput = ref => {
|
|
52736
52733
|
setTimeout(() => {
|
|
@@ -52951,7 +52948,7 @@ const DotTimePicker = ({
|
|
|
52951
52948
|
ariaLabel,
|
|
52952
52949
|
autoFocus = false,
|
|
52953
52950
|
className,
|
|
52954
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
52951
|
+
'data-pendoid': dataPendoId = rootClassName$D,
|
|
52955
52952
|
'data-testid': dataTestId,
|
|
52956
52953
|
defaultValue,
|
|
52957
52954
|
disableOpenPicker = false,
|
|
@@ -52983,7 +52980,7 @@ const DotTimePicker = ({
|
|
|
52983
52980
|
const hasValueWithoutChangeHandler = value !== undefined && onChange === undefined;
|
|
52984
52981
|
const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
|
|
52985
52982
|
const isComponentReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
|
|
52986
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
52983
|
+
const rootClasses = useStylesWithRootClass(rootClassName$D, className, isComponentReadOnly ? 'read-only' : '');
|
|
52987
52984
|
const containerClasses = useStylesWithRootClass(containerClassName$1, fullWidth ? 'full-width' : '', className);
|
|
52988
52985
|
const inputRef = useRef(null);
|
|
52989
52986
|
const [isPickerOpened, setIsPickerOpened] = useState(false);
|
|
@@ -53279,13 +53276,13 @@ const DotTimePicker = ({
|
|
|
53279
53276
|
});
|
|
53280
53277
|
};
|
|
53281
53278
|
|
|
53282
|
-
const rootClassName$
|
|
53279
|
+
const rootClassName$a = 'dot-carousel';
|
|
53283
53280
|
const StyledCarousel = styled.div`
|
|
53284
53281
|
${({
|
|
53285
53282
|
backgroundColor,
|
|
53286
53283
|
theme
|
|
53287
53284
|
}) => css`
|
|
53288
|
-
&.${rootClassName$
|
|
53285
|
+
&.${rootClassName$a} {
|
|
53289
53286
|
display: flex;
|
|
53290
53287
|
flex-direction: column;
|
|
53291
53288
|
justify-content: space-between;
|
|
@@ -53385,7 +53382,7 @@ const DotCarousel = ({
|
|
|
53385
53382
|
progressIndicator,
|
|
53386
53383
|
showPagesButtons = true
|
|
53387
53384
|
}) => {
|
|
53388
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
53385
|
+
const rootClasses = useStylesWithRootClass(rootClassName$a, className, backgroundColor ? 'with-background-color' : '');
|
|
53389
53386
|
const rightNavigationButtonClasses = useStylesWithRootClass('carousel-right-arrow', displayNavigationButtons);
|
|
53390
53387
|
const leftNavigationButtonClasses = useStylesWithRootClass('carousel-left-arrow', displayNavigationButtons);
|
|
53391
53388
|
const createUuids = () => {
|
|
@@ -53536,13 +53533,13 @@ const DotCarousel = ({
|
|
|
53536
53533
|
});
|
|
53537
53534
|
};
|
|
53538
53535
|
|
|
53539
|
-
const rootClassName$
|
|
53536
|
+
const rootClassName$9 = 'dot-sticky-with-border';
|
|
53540
53537
|
const StyledStickyWithBorder = styled.div`
|
|
53541
53538
|
${({
|
|
53542
53539
|
pinnedStickyBorder,
|
|
53543
53540
|
unpinnedStickyBorder
|
|
53544
53541
|
}) => css`
|
|
53545
|
-
&.${rootClassName$
|
|
53542
|
+
&.${rootClassName$9} {
|
|
53546
53543
|
position: sticky;
|
|
53547
53544
|
top: -1px;
|
|
53548
53545
|
|
|
@@ -53570,7 +53567,7 @@ const DotStickyWithBorder = ({
|
|
|
53570
53567
|
}) => {
|
|
53571
53568
|
const [isPinned, setIsPinned] = useState(false);
|
|
53572
53569
|
const ref = useRef();
|
|
53573
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
53570
|
+
const rootClasses = useStylesWithRootClass(rootClassName$9, className, isPinned ? 'pinned' : 'unpinned');
|
|
53574
53571
|
useEffect(() => {
|
|
53575
53572
|
const element = ref.current;
|
|
53576
53573
|
const observer = new IntersectionObserver(([e]) => setIsPinned(e.intersectionRatio < 1), {
|
|
@@ -53592,18 +53589,18 @@ const DotStickyWithBorder = ({
|
|
|
53592
53589
|
});
|
|
53593
53590
|
};
|
|
53594
53591
|
|
|
53595
|
-
const rootClassName$
|
|
53592
|
+
const rootClassName$8 = 'dot--board';
|
|
53596
53593
|
const classNames$5 = {
|
|
53597
|
-
root: rootClassName$
|
|
53598
|
-
spacingNormal: `${rootClassName$
|
|
53599
|
-
spacingDense: `${rootClassName$
|
|
53600
|
-
loading: `${rootClassName$
|
|
53594
|
+
root: rootClassName$8,
|
|
53595
|
+
spacingNormal: `${rootClassName$8}-normal`,
|
|
53596
|
+
spacingDense: `${rootClassName$8}-dense`,
|
|
53597
|
+
loading: `${rootClassName$8}-loading`
|
|
53601
53598
|
};
|
|
53602
53599
|
const StyledBoard = styled.div`
|
|
53603
53600
|
${({
|
|
53604
53601
|
theme
|
|
53605
53602
|
}) => css`
|
|
53606
|
-
&.${rootClassName$
|
|
53603
|
+
&.${rootClassName$8} {
|
|
53607
53604
|
display: flex;
|
|
53608
53605
|
overflow-x: auto;
|
|
53609
53606
|
flex: 1;
|
|
@@ -53611,7 +53608,7 @@ const StyledBoard = styled.div`
|
|
|
53611
53608
|
}
|
|
53612
53609
|
|
|
53613
53610
|
@media (max-width: 650px) {
|
|
53614
|
-
&.${rootClassName$
|
|
53611
|
+
&.${rootClassName$8} {
|
|
53615
53612
|
justify-content: center;
|
|
53616
53613
|
}
|
|
53617
53614
|
}
|
|
@@ -53712,18 +53709,18 @@ const Board = React__default.forwardRef(({
|
|
|
53712
53709
|
});
|
|
53713
53710
|
});
|
|
53714
53711
|
|
|
53715
|
-
const rootClassName$
|
|
53712
|
+
const rootClassName$7 = 'dot--board-column';
|
|
53716
53713
|
const classNames$4 = {
|
|
53717
|
-
root: rootClassName$
|
|
53718
|
-
spacingNormal: `${rootClassName$
|
|
53719
|
-
spacingDense: `${rootClassName$
|
|
53720
|
-
collapse: `${rootClassName$
|
|
53714
|
+
root: rootClassName$7,
|
|
53715
|
+
spacingNormal: `${rootClassName$7}-normal`,
|
|
53716
|
+
spacingDense: `${rootClassName$7}-dense`,
|
|
53717
|
+
collapse: `${rootClassName$7}-collapse`
|
|
53721
53718
|
};
|
|
53722
53719
|
const StyledBoardColumn = styled.div`
|
|
53723
53720
|
${({
|
|
53724
53721
|
theme
|
|
53725
53722
|
}) => css`
|
|
53726
|
-
&.${rootClassName$
|
|
53723
|
+
&.${rootClassName$7} {
|
|
53727
53724
|
display: flex;
|
|
53728
53725
|
flex-direction: column;
|
|
53729
53726
|
overflow: hidden;
|
|
@@ -53814,13 +53811,13 @@ const BoardColumn = React__default.forwardRef(({
|
|
|
53814
53811
|
});
|
|
53815
53812
|
});
|
|
53816
53813
|
|
|
53817
|
-
const rootClassName$
|
|
53814
|
+
const rootClassName$6 = 'dot--board-column-header';
|
|
53818
53815
|
const classNames$3 = {
|
|
53819
|
-
root: rootClassName$
|
|
53820
|
-
spacingNormal: `${rootClassName$
|
|
53821
|
-
spacingDense: `${rootClassName$
|
|
53822
|
-
colorBar: `${rootClassName$
|
|
53823
|
-
title: `${rootClassName$
|
|
53816
|
+
root: rootClassName$6,
|
|
53817
|
+
spacingNormal: `${rootClassName$6}-normal`,
|
|
53818
|
+
spacingDense: `${rootClassName$6}-dense`,
|
|
53819
|
+
colorBar: `${rootClassName$6}-color-bar`,
|
|
53820
|
+
title: `${rootClassName$6}-title`
|
|
53824
53821
|
};
|
|
53825
53822
|
const StyledBoardColumnHeader = styled.div`
|
|
53826
53823
|
${({
|
|
@@ -53888,11 +53885,11 @@ const BoardColumnHeader = ({
|
|
|
53888
53885
|
});
|
|
53889
53886
|
};
|
|
53890
53887
|
|
|
53891
|
-
const rootClassName$
|
|
53888
|
+
const rootClassName$5 = 'dot--board-column-items';
|
|
53892
53889
|
const classNames$2 = {
|
|
53893
|
-
root: rootClassName$
|
|
53894
|
-
spacingNormal: `${rootClassName$
|
|
53895
|
-
spacingDense: `${rootClassName$
|
|
53890
|
+
root: rootClassName$5,
|
|
53891
|
+
spacingNormal: `${rootClassName$5}-normal`,
|
|
53892
|
+
spacingDense: `${rootClassName$5}-dense`
|
|
53896
53893
|
};
|
|
53897
53894
|
const StyledBoardColumnItems = styled.div`
|
|
53898
53895
|
${({
|
|
@@ -53944,11 +53941,11 @@ const BoardColumnItems = ({
|
|
|
53944
53941
|
});
|
|
53945
53942
|
};
|
|
53946
53943
|
|
|
53947
|
-
const rootClassName$
|
|
53944
|
+
const rootClassName$4 = 'dot--board-column-action-bar';
|
|
53948
53945
|
const classNames$1 = {
|
|
53949
|
-
root: rootClassName$
|
|
53950
|
-
spacingNormal: `${rootClassName$
|
|
53951
|
-
spacingDense: `${rootClassName$
|
|
53946
|
+
root: rootClassName$4,
|
|
53947
|
+
spacingNormal: `${rootClassName$4}-normal`,
|
|
53948
|
+
spacingDense: `${rootClassName$4}-dense`
|
|
53952
53949
|
};
|
|
53953
53950
|
const StyledBoardColumnActionBar = styled(DotActionToolbar)`
|
|
53954
53951
|
${({
|
|
@@ -54019,13 +54016,13 @@ const BoardColumnCollapse = ({
|
|
|
54019
54016
|
return useMemo(() => collapsed ? children : null, [children, collapsed]);
|
|
54020
54017
|
};
|
|
54021
54018
|
|
|
54022
|
-
const rootClassName$
|
|
54019
|
+
const rootClassName$3 = 'dot--board-column-header';
|
|
54023
54020
|
const classNames = {
|
|
54024
|
-
root: rootClassName$
|
|
54025
|
-
spacingNormal: `${rootClassName$
|
|
54026
|
-
spacingDense: `${rootClassName$
|
|
54027
|
-
title: `${rootClassName$
|
|
54028
|
-
text: `${rootClassName$
|
|
54021
|
+
root: rootClassName$3,
|
|
54022
|
+
spacingNormal: `${rootClassName$3}-normal`,
|
|
54023
|
+
spacingDense: `${rootClassName$3}-dense`,
|
|
54024
|
+
title: `${rootClassName$3}-title`,
|
|
54025
|
+
text: `${rootClassName$3}-text`
|
|
54029
54026
|
};
|
|
54030
54027
|
const StyledBoardColumnSummary = styled.div`
|
|
54031
54028
|
${({
|
|
@@ -54087,12 +54084,12 @@ const BoardColumnSummary = ({
|
|
|
54087
54084
|
});
|
|
54088
54085
|
};
|
|
54089
54086
|
|
|
54090
|
-
const rootClassName$
|
|
54087
|
+
const rootClassName$2 = 'dot-search';
|
|
54091
54088
|
const StyledSearch = styled(DotInputText)`
|
|
54092
54089
|
${({
|
|
54093
54090
|
theme
|
|
54094
54091
|
}) => css`
|
|
54095
|
-
&.${rootClassName$
|
|
54092
|
+
&.${rootClassName$2} {
|
|
54096
54093
|
&.with-value .MuiInputBase-root {
|
|
54097
54094
|
background-color: ${theme.palette.figma.primary.light};
|
|
54098
54095
|
|
|
@@ -54135,7 +54132,7 @@ const DotSearch = _a => {
|
|
|
54135
54132
|
value
|
|
54136
54133
|
} = _a,
|
|
54137
54134
|
rest = __rest(_a, ["ariaLabel", "className", 'data-testid', "disabled", "hasDebounce", "id", "name", "onSearch", "onClear", "placeholder", "value"]);
|
|
54138
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
54135
|
+
const rootClasses = useStylesWithRootClass(rootClassName$2, className, value ? 'with-value' : '');
|
|
54139
54136
|
return jsx(StyledSearch, Object.assign({}, rest, {
|
|
54140
54137
|
"aria-label": ariaLabel,
|
|
54141
54138
|
className: rootClasses,
|
|
@@ -54154,12 +54151,12 @@ const DotSearch = _a => {
|
|
|
54154
54151
|
}));
|
|
54155
54152
|
};
|
|
54156
54153
|
|
|
54157
|
-
const rootClassName = 'dot-toggle-switch';
|
|
54154
|
+
const rootClassName$1 = 'dot-toggle-switch';
|
|
54158
54155
|
const StyledToggleSwitch = styled(Stack)`
|
|
54159
54156
|
${({
|
|
54160
54157
|
theme
|
|
54161
54158
|
}) => css`
|
|
54162
|
-
&.${rootClassName} {
|
|
54159
|
+
&.${rootClassName$1} {
|
|
54163
54160
|
gap: ${theme.spacing(2)};
|
|
54164
54161
|
cursor: pointer;
|
|
54165
54162
|
|
|
@@ -54213,7 +54210,7 @@ const StyledToggleSwitch = styled(Stack)`
|
|
|
54213
54210
|
const DotToggleSwitch = ({
|
|
54214
54211
|
ariaLabel,
|
|
54215
54212
|
className,
|
|
54216
|
-
'data-pendoid': dataPendoId = rootClassName,
|
|
54213
|
+
'data-pendoid': dataPendoId = rootClassName$1,
|
|
54217
54214
|
'data-testid': dataTestId,
|
|
54218
54215
|
disabled = false,
|
|
54219
54216
|
label,
|
|
@@ -54223,7 +54220,7 @@ const DotToggleSwitch = ({
|
|
|
54223
54220
|
}) => {
|
|
54224
54221
|
const toggleOptions = options.slice(0, 2);
|
|
54225
54222
|
const isChecked = toggleOptions[1].value === value;
|
|
54226
|
-
const rootClasses = useStylesWithRootClass(rootClassName, className, disabled ? 'dot-disabled' : '');
|
|
54223
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1, className, disabled ? 'dot-disabled' : '');
|
|
54227
54224
|
const toggleValue = () => {
|
|
54228
54225
|
const [firstOption, secondOption] = toggleOptions;
|
|
54229
54226
|
const newValue = value === firstOption.value ? secondOption.value : firstOption.value;
|
|
@@ -54276,4 +54273,1313 @@ const DotToggleSwitch = ({
|
|
|
54276
54273
|
});
|
|
54277
54274
|
};
|
|
54278
54275
|
|
|
54279
|
-
|
|
54276
|
+
function _extends() {
|
|
54277
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
54278
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
54279
|
+
var source = arguments[i];
|
|
54280
|
+
for (var key in source) {
|
|
54281
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
54282
|
+
target[key] = source[key];
|
|
54283
|
+
}
|
|
54284
|
+
}
|
|
54285
|
+
}
|
|
54286
|
+
return target;
|
|
54287
|
+
};
|
|
54288
|
+
return _extends.apply(this, arguments);
|
|
54289
|
+
}
|
|
54290
|
+
|
|
54291
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
54292
|
+
if (source == null) return {};
|
|
54293
|
+
var target = {};
|
|
54294
|
+
var sourceKeys = Object.keys(source);
|
|
54295
|
+
var key, i;
|
|
54296
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
54297
|
+
key = sourceKeys[i];
|
|
54298
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
54299
|
+
target[key] = source[key];
|
|
54300
|
+
}
|
|
54301
|
+
return target;
|
|
54302
|
+
}
|
|
54303
|
+
|
|
54304
|
+
var RGB_MAX = 255;
|
|
54305
|
+
var SV_MAX = 100;
|
|
54306
|
+
/**
|
|
54307
|
+
* ```js
|
|
54308
|
+
* rgbaToHsva({ r: 255, g: 255, b: 255, a: 1 }) //=> { h: 0, s: 0, v: 100, a: 1 }
|
|
54309
|
+
* ```
|
|
54310
|
+
*/
|
|
54311
|
+
var rgbaToHsva = _ref => {
|
|
54312
|
+
var {
|
|
54313
|
+
r,
|
|
54314
|
+
g,
|
|
54315
|
+
b,
|
|
54316
|
+
a
|
|
54317
|
+
} = _ref;
|
|
54318
|
+
var max = Math.max(r, g, b);
|
|
54319
|
+
var delta = max - Math.min(r, g, b);
|
|
54320
|
+
|
|
54321
|
+
// prettier-ignore
|
|
54322
|
+
var hh = delta ? max === r ? (g - b) / delta : max === g ? 2 + (b - r) / delta : 4 + (r - g) / delta : 0;
|
|
54323
|
+
return {
|
|
54324
|
+
h: 60 * (hh < 0 ? hh + 6 : hh),
|
|
54325
|
+
s: max ? delta / max * SV_MAX : 0,
|
|
54326
|
+
v: max / RGB_MAX * SV_MAX,
|
|
54327
|
+
a
|
|
54328
|
+
};
|
|
54329
|
+
};
|
|
54330
|
+
var hsvaToHslaString = hsva => {
|
|
54331
|
+
var {
|
|
54332
|
+
h,
|
|
54333
|
+
s,
|
|
54334
|
+
l,
|
|
54335
|
+
a
|
|
54336
|
+
} = hsvaToHsla(hsva);
|
|
54337
|
+
return "hsla(" + h + ", " + s + "%, " + l + "%, " + a + ")";
|
|
54338
|
+
};
|
|
54339
|
+
var hsvaToHsla = _ref5 => {
|
|
54340
|
+
var {
|
|
54341
|
+
h,
|
|
54342
|
+
s,
|
|
54343
|
+
v,
|
|
54344
|
+
a
|
|
54345
|
+
} = _ref5;
|
|
54346
|
+
var hh = (200 - s) * v / SV_MAX;
|
|
54347
|
+
return {
|
|
54348
|
+
h,
|
|
54349
|
+
s: hh > 0 && hh < 200 ? s * v / SV_MAX / (hh <= SV_MAX ? hh : 200 - hh) * SV_MAX : 0,
|
|
54350
|
+
l: hh / 2,
|
|
54351
|
+
a
|
|
54352
|
+
};
|
|
54353
|
+
};
|
|
54354
|
+
var rgbToHex = _ref7 => {
|
|
54355
|
+
var {
|
|
54356
|
+
r,
|
|
54357
|
+
g,
|
|
54358
|
+
b
|
|
54359
|
+
} = _ref7;
|
|
54360
|
+
var bin = r << 16 | g << 8 | b;
|
|
54361
|
+
return "#" + (h => new Array(7 - h.length).join('0') + h)(bin.toString(16));
|
|
54362
|
+
};
|
|
54363
|
+
var rgbaToHexa = _ref8 => {
|
|
54364
|
+
var {
|
|
54365
|
+
r,
|
|
54366
|
+
g,
|
|
54367
|
+
b,
|
|
54368
|
+
a
|
|
54369
|
+
} = _ref8;
|
|
54370
|
+
var alpha = typeof a === 'number' && (a * 255 | 1 << 8).toString(16).slice(1);
|
|
54371
|
+
return "" + rgbToHex({
|
|
54372
|
+
r,
|
|
54373
|
+
g,
|
|
54374
|
+
b
|
|
54375
|
+
}) + (alpha ? alpha : '');
|
|
54376
|
+
};
|
|
54377
|
+
var hexToHsva = hex => rgbaToHsva(hexToRgba(hex));
|
|
54378
|
+
var hexToRgba = hex => {
|
|
54379
|
+
var htemp = hex.replace('#', '');
|
|
54380
|
+
if (/^#?/.test(hex) && htemp.length === 3) {
|
|
54381
|
+
hex = "#" + htemp.charAt(0) + htemp.charAt(0) + htemp.charAt(1) + htemp.charAt(1) + htemp.charAt(2) + htemp.charAt(2);
|
|
54382
|
+
}
|
|
54383
|
+
var reg = new RegExp("[A-Za-z0-9]{2}", 'g');
|
|
54384
|
+
var [r, g, b = 0, a] = hex.match(reg).map(v => parseInt(v, 16));
|
|
54385
|
+
return {
|
|
54386
|
+
r,
|
|
54387
|
+
g,
|
|
54388
|
+
b,
|
|
54389
|
+
a: (a != null ? a : 255) / RGB_MAX
|
|
54390
|
+
};
|
|
54391
|
+
};
|
|
54392
|
+
|
|
54393
|
+
/**
|
|
54394
|
+
* Converts HSVA to RGBA. Based on formula from https://en.wikipedia.org/wiki/HSL_and_HSV
|
|
54395
|
+
* @param color HSVA color as an array [0-360, 0-1, 0-1, 0-1]
|
|
54396
|
+
*/
|
|
54397
|
+
var hsvaToRgba = _ref9 => {
|
|
54398
|
+
var {
|
|
54399
|
+
h,
|
|
54400
|
+
s,
|
|
54401
|
+
v,
|
|
54402
|
+
a
|
|
54403
|
+
} = _ref9;
|
|
54404
|
+
var _h = h / 60,
|
|
54405
|
+
_s = s / SV_MAX,
|
|
54406
|
+
_v = v / SV_MAX,
|
|
54407
|
+
hi = Math.floor(_h) % 6;
|
|
54408
|
+
var f = _h - Math.floor(_h),
|
|
54409
|
+
_p = RGB_MAX * _v * (1 - _s),
|
|
54410
|
+
_q = RGB_MAX * _v * (1 - _s * f),
|
|
54411
|
+
_t = RGB_MAX * _v * (1 - _s * (1 - f));
|
|
54412
|
+
_v *= RGB_MAX;
|
|
54413
|
+
var rgba = {};
|
|
54414
|
+
switch (hi) {
|
|
54415
|
+
case 0:
|
|
54416
|
+
rgba.r = _v;
|
|
54417
|
+
rgba.g = _t;
|
|
54418
|
+
rgba.b = _p;
|
|
54419
|
+
break;
|
|
54420
|
+
case 1:
|
|
54421
|
+
rgba.r = _q;
|
|
54422
|
+
rgba.g = _v;
|
|
54423
|
+
rgba.b = _p;
|
|
54424
|
+
break;
|
|
54425
|
+
case 2:
|
|
54426
|
+
rgba.r = _p;
|
|
54427
|
+
rgba.g = _v;
|
|
54428
|
+
rgba.b = _t;
|
|
54429
|
+
break;
|
|
54430
|
+
case 3:
|
|
54431
|
+
rgba.r = _p;
|
|
54432
|
+
rgba.g = _q;
|
|
54433
|
+
rgba.b = _v;
|
|
54434
|
+
break;
|
|
54435
|
+
case 4:
|
|
54436
|
+
rgba.r = _t;
|
|
54437
|
+
rgba.g = _p;
|
|
54438
|
+
rgba.b = _v;
|
|
54439
|
+
break;
|
|
54440
|
+
case 5:
|
|
54441
|
+
rgba.r = _v;
|
|
54442
|
+
rgba.g = _p;
|
|
54443
|
+
rgba.b = _q;
|
|
54444
|
+
break;
|
|
54445
|
+
}
|
|
54446
|
+
rgba.r = Math.round(rgba.r);
|
|
54447
|
+
rgba.g = Math.round(rgba.g);
|
|
54448
|
+
rgba.b = Math.round(rgba.b);
|
|
54449
|
+
return _extends({}, rgba, {
|
|
54450
|
+
a
|
|
54451
|
+
});
|
|
54452
|
+
};
|
|
54453
|
+
var hsvaToRgbaString = hsva => {
|
|
54454
|
+
var {
|
|
54455
|
+
r,
|
|
54456
|
+
g,
|
|
54457
|
+
b,
|
|
54458
|
+
a
|
|
54459
|
+
} = hsvaToRgba(hsva);
|
|
54460
|
+
return "rgba(" + r + ", " + g + ", " + b + ", " + a + ")";
|
|
54461
|
+
};
|
|
54462
|
+
var rgbaToRgb = _ref0 => {
|
|
54463
|
+
var {
|
|
54464
|
+
r,
|
|
54465
|
+
g,
|
|
54466
|
+
b
|
|
54467
|
+
} = _ref0;
|
|
54468
|
+
return {
|
|
54469
|
+
r,
|
|
54470
|
+
g,
|
|
54471
|
+
b
|
|
54472
|
+
};
|
|
54473
|
+
};
|
|
54474
|
+
var hslaToHsl = _ref1 => {
|
|
54475
|
+
var {
|
|
54476
|
+
h,
|
|
54477
|
+
s,
|
|
54478
|
+
l
|
|
54479
|
+
} = _ref1;
|
|
54480
|
+
return {
|
|
54481
|
+
h,
|
|
54482
|
+
s,
|
|
54483
|
+
l
|
|
54484
|
+
};
|
|
54485
|
+
};
|
|
54486
|
+
var hsvaToHex = hsva => rgbToHex(hsvaToRgba(hsva));
|
|
54487
|
+
var hsvaToHsv = _ref10 => {
|
|
54488
|
+
var {
|
|
54489
|
+
h,
|
|
54490
|
+
s,
|
|
54491
|
+
v
|
|
54492
|
+
} = _ref10;
|
|
54493
|
+
return {
|
|
54494
|
+
h,
|
|
54495
|
+
s,
|
|
54496
|
+
v
|
|
54497
|
+
};
|
|
54498
|
+
};
|
|
54499
|
+
|
|
54500
|
+
/**
|
|
54501
|
+
* Converts RGB to XY. Based on formula from https://developers.meethue.com/develop/application-design-guidance/color-conversion-formulas-rgb-to-xy-and-back/
|
|
54502
|
+
* @param color RGB color as an array [0-255, 0-255, 0-255]
|
|
54503
|
+
*/
|
|
54504
|
+
var rgbToXY = _ref12 => {
|
|
54505
|
+
var {
|
|
54506
|
+
r,
|
|
54507
|
+
g,
|
|
54508
|
+
b
|
|
54509
|
+
} = _ref12;
|
|
54510
|
+
var translateColor = function translateColor(color) {
|
|
54511
|
+
return color <= 0.04045 ? color / 12.92 : Math.pow((color + 0.055) / 1.055, 2.4);
|
|
54512
|
+
};
|
|
54513
|
+
var red = translateColor(r / 255);
|
|
54514
|
+
var green = translateColor(g / 255);
|
|
54515
|
+
var blue = translateColor(b / 255);
|
|
54516
|
+
var xyz = {};
|
|
54517
|
+
xyz.x = red * 0.4124 + green * 0.3576 + blue * 0.1805;
|
|
54518
|
+
xyz.y = red * 0.2126 + green * 0.7152 + blue * 0.0722;
|
|
54519
|
+
xyz.bri = red * 0.0193 + green * 0.1192 + blue * 0.9505;
|
|
54520
|
+
return xyz;
|
|
54521
|
+
};
|
|
54522
|
+
var color = str => {
|
|
54523
|
+
var rgb;
|
|
54524
|
+
var hsl;
|
|
54525
|
+
var hsv;
|
|
54526
|
+
var rgba;
|
|
54527
|
+
var hsla;
|
|
54528
|
+
var hsva;
|
|
54529
|
+
var xy;
|
|
54530
|
+
var hex;
|
|
54531
|
+
var hexa;
|
|
54532
|
+
if (typeof str === 'string' && validHex$1(str)) {
|
|
54533
|
+
hsva = hexToHsva(str);
|
|
54534
|
+
hex = str;
|
|
54535
|
+
} else if (typeof str !== 'string') {
|
|
54536
|
+
hsva = str;
|
|
54537
|
+
}
|
|
54538
|
+
if (hsva) {
|
|
54539
|
+
hsv = hsvaToHsv(hsva);
|
|
54540
|
+
hsla = hsvaToHsla(hsva);
|
|
54541
|
+
rgba = hsvaToRgba(hsva);
|
|
54542
|
+
hexa = rgbaToHexa(rgba);
|
|
54543
|
+
hex = hsvaToHex(hsva);
|
|
54544
|
+
hsl = hslaToHsl(hsla);
|
|
54545
|
+
rgb = rgbaToRgb(rgba);
|
|
54546
|
+
xy = rgbToXY(rgb);
|
|
54547
|
+
}
|
|
54548
|
+
return {
|
|
54549
|
+
rgb,
|
|
54550
|
+
hsl,
|
|
54551
|
+
hsv,
|
|
54552
|
+
rgba,
|
|
54553
|
+
hsla,
|
|
54554
|
+
hsva,
|
|
54555
|
+
hex,
|
|
54556
|
+
hexa,
|
|
54557
|
+
xy
|
|
54558
|
+
};
|
|
54559
|
+
};
|
|
54560
|
+
var validHex$1 = hex => /^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(hex);
|
|
54561
|
+
|
|
54562
|
+
// Saves incoming handler to the ref in order to avoid "useCallback hell"
|
|
54563
|
+
function useEventCallback(handler) {
|
|
54564
|
+
var callbackRef = useRef(handler);
|
|
54565
|
+
useEffect(() => {
|
|
54566
|
+
callbackRef.current = handler;
|
|
54567
|
+
});
|
|
54568
|
+
return useCallback((value, event) => callbackRef.current && callbackRef.current(value, event), []);
|
|
54569
|
+
}
|
|
54570
|
+
|
|
54571
|
+
// Check if an event was triggered by touch
|
|
54572
|
+
var isTouch = event => 'touches' in event;
|
|
54573
|
+
|
|
54574
|
+
// Browsers introduced an intervention, making touch events passive by default.
|
|
54575
|
+
// This workaround removes `preventDefault` call from the touch handlers.
|
|
54576
|
+
// https://github.com/facebook/react/issues/19651
|
|
54577
|
+
var preventDefaultMove = event => {
|
|
54578
|
+
!isTouch(event) && event.preventDefault && event.preventDefault();
|
|
54579
|
+
};
|
|
54580
|
+
// Clamps a value between an upper and lower bound.
|
|
54581
|
+
// We use ternary operators because it makes the minified code
|
|
54582
|
+
// 2 times shorter then `Math.min(Math.max(a,b),c)`
|
|
54583
|
+
var clamp = function clamp(number, min, max) {
|
|
54584
|
+
if (min === void 0) {
|
|
54585
|
+
min = 0;
|
|
54586
|
+
}
|
|
54587
|
+
if (max === void 0) {
|
|
54588
|
+
max = 1;
|
|
54589
|
+
}
|
|
54590
|
+
return number > max ? max : number < min ? min : number;
|
|
54591
|
+
};
|
|
54592
|
+
// Returns a relative position of the pointer inside the node's bounding box
|
|
54593
|
+
var getRelativePosition = (node, event) => {
|
|
54594
|
+
var rect = node.getBoundingClientRect();
|
|
54595
|
+
|
|
54596
|
+
// Get user's pointer position from `touches` array if it's a `TouchEvent`
|
|
54597
|
+
var pointer = isTouch(event) ? event.touches[0] : event;
|
|
54598
|
+
return {
|
|
54599
|
+
left: clamp((pointer.pageX - (rect.left + window.pageXOffset)) / rect.width),
|
|
54600
|
+
top: clamp((pointer.pageY - (rect.top + window.pageYOffset)) / rect.height),
|
|
54601
|
+
width: rect.width,
|
|
54602
|
+
height: rect.height,
|
|
54603
|
+
x: pointer.pageX - (rect.left + window.pageXOffset),
|
|
54604
|
+
y: pointer.pageY - (rect.top + window.pageYOffset)
|
|
54605
|
+
};
|
|
54606
|
+
};
|
|
54607
|
+
|
|
54608
|
+
var _excluded$8 = ["prefixCls", "className", "onMove", "onDown"];
|
|
54609
|
+
var Interactive = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
54610
|
+
var {
|
|
54611
|
+
prefixCls = 'w-color-interactive',
|
|
54612
|
+
className,
|
|
54613
|
+
onMove,
|
|
54614
|
+
onDown
|
|
54615
|
+
} = props,
|
|
54616
|
+
reset = _objectWithoutPropertiesLoose(props, _excluded$8);
|
|
54617
|
+
var container = useRef(null);
|
|
54618
|
+
var hasTouched = useRef(false);
|
|
54619
|
+
var [isDragging, setDragging] = useState(false);
|
|
54620
|
+
var onMoveCallback = useEventCallback(onMove);
|
|
54621
|
+
var onKeyCallback = useEventCallback(onDown);
|
|
54622
|
+
|
|
54623
|
+
// Prevent mobile browsers from handling mouse events (conflicting with touch ones).
|
|
54624
|
+
// If we detected a touch interaction before, we prefer reacting to touch events only.
|
|
54625
|
+
var isValid = event => {
|
|
54626
|
+
if (hasTouched.current && !isTouch(event)) return false;
|
|
54627
|
+
hasTouched.current = isTouch(event);
|
|
54628
|
+
return true;
|
|
54629
|
+
};
|
|
54630
|
+
var handleMove = useCallback(event => {
|
|
54631
|
+
preventDefaultMove(event);
|
|
54632
|
+
if (!container.current) return;
|
|
54633
|
+
var isDown = isTouch(event) ? event.touches.length > 0 : event.buttons > 0;
|
|
54634
|
+
if (!isDown) {
|
|
54635
|
+
setDragging(false);
|
|
54636
|
+
return;
|
|
54637
|
+
}
|
|
54638
|
+
onMoveCallback == null || onMoveCallback(getRelativePosition(container.current, event), event);
|
|
54639
|
+
}, [onMoveCallback]);
|
|
54640
|
+
var handleMoveEnd = useCallback(() => setDragging(false), []);
|
|
54641
|
+
var toggleDocumentEvents = useCallback(state => {
|
|
54642
|
+
if (state) {
|
|
54643
|
+
window.addEventListener(hasTouched.current ? 'touchmove' : 'mousemove', handleMove);
|
|
54644
|
+
window.addEventListener(hasTouched.current ? 'touchend' : 'mouseup', handleMoveEnd);
|
|
54645
|
+
} else {
|
|
54646
|
+
window.removeEventListener('mousemove', handleMove);
|
|
54647
|
+
window.removeEventListener('mouseup', handleMoveEnd);
|
|
54648
|
+
window.removeEventListener('touchmove', handleMove);
|
|
54649
|
+
window.removeEventListener('touchend', handleMoveEnd);
|
|
54650
|
+
}
|
|
54651
|
+
}, [handleMove, handleMoveEnd]);
|
|
54652
|
+
useEffect(() => {
|
|
54653
|
+
toggleDocumentEvents(isDragging);
|
|
54654
|
+
return () => {
|
|
54655
|
+
toggleDocumentEvents(false);
|
|
54656
|
+
};
|
|
54657
|
+
}, [isDragging, handleMove, handleMoveEnd, toggleDocumentEvents]);
|
|
54658
|
+
var handleMoveStart = useCallback(event => {
|
|
54659
|
+
var activeEl = document.activeElement;
|
|
54660
|
+
activeEl == null || activeEl.blur();
|
|
54661
|
+
preventDefaultMove(event.nativeEvent);
|
|
54662
|
+
if (!isValid(event.nativeEvent)) return;
|
|
54663
|
+
if (!container.current) return;
|
|
54664
|
+
onKeyCallback == null || onKeyCallback(getRelativePosition(container.current, event.nativeEvent), event.nativeEvent);
|
|
54665
|
+
setDragging(true);
|
|
54666
|
+
}, [onKeyCallback]);
|
|
54667
|
+
return /*#__PURE__*/jsx("div", _extends({}, reset, {
|
|
54668
|
+
className: [prefixCls, className || ''].filter(Boolean).join(' '),
|
|
54669
|
+
style: _extends({}, reset.style, {
|
|
54670
|
+
touchAction: 'none'
|
|
54671
|
+
}),
|
|
54672
|
+
ref: container,
|
|
54673
|
+
tabIndex: 0,
|
|
54674
|
+
onMouseDown: handleMoveStart,
|
|
54675
|
+
onTouchStart: handleMoveStart
|
|
54676
|
+
}));
|
|
54677
|
+
});
|
|
54678
|
+
Interactive.displayName = 'Interactive';
|
|
54679
|
+
var Interactive$1 = Interactive;
|
|
54680
|
+
|
|
54681
|
+
var Pointer$1 = _ref => {
|
|
54682
|
+
var {
|
|
54683
|
+
className,
|
|
54684
|
+
color,
|
|
54685
|
+
left,
|
|
54686
|
+
top,
|
|
54687
|
+
prefixCls
|
|
54688
|
+
} = _ref;
|
|
54689
|
+
var style = {
|
|
54690
|
+
position: 'absolute',
|
|
54691
|
+
top,
|
|
54692
|
+
left
|
|
54693
|
+
};
|
|
54694
|
+
var stylePointer = {
|
|
54695
|
+
'--saturation-pointer-box-shadow': 'rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px',
|
|
54696
|
+
width: 6,
|
|
54697
|
+
height: 6,
|
|
54698
|
+
transform: 'translate(-3px, -3px)',
|
|
54699
|
+
boxShadow: 'var(--saturation-pointer-box-shadow)',
|
|
54700
|
+
borderRadius: '50%',
|
|
54701
|
+
backgroundColor: color
|
|
54702
|
+
};
|
|
54703
|
+
return useMemo(() => /*#__PURE__*/jsx("div", {
|
|
54704
|
+
className: prefixCls + "-pointer " + (className || ''),
|
|
54705
|
+
style: style,
|
|
54706
|
+
children: /*#__PURE__*/jsx("div", {
|
|
54707
|
+
className: prefixCls + "-fill",
|
|
54708
|
+
style: stylePointer
|
|
54709
|
+
})
|
|
54710
|
+
}), [top, left, color, className, prefixCls]);
|
|
54711
|
+
};
|
|
54712
|
+
|
|
54713
|
+
var _excluded$7 = ["prefixCls", "radius", "pointer", "className", "hue", "style", "hsva", "onChange"];
|
|
54714
|
+
var Saturation = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
54715
|
+
var _hsva$h;
|
|
54716
|
+
var {
|
|
54717
|
+
prefixCls = 'w-color-saturation',
|
|
54718
|
+
radius = 0,
|
|
54719
|
+
pointer,
|
|
54720
|
+
className,
|
|
54721
|
+
hue = 0,
|
|
54722
|
+
style,
|
|
54723
|
+
hsva,
|
|
54724
|
+
onChange
|
|
54725
|
+
} = props,
|
|
54726
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$7);
|
|
54727
|
+
var containerStyle = _extends({
|
|
54728
|
+
width: 200,
|
|
54729
|
+
height: 200,
|
|
54730
|
+
borderRadius: radius
|
|
54731
|
+
}, style, {
|
|
54732
|
+
position: 'relative'
|
|
54733
|
+
});
|
|
54734
|
+
var handleChange = (interaction, event) => {
|
|
54735
|
+
onChange && hsva && onChange({
|
|
54736
|
+
h: hsva.h,
|
|
54737
|
+
s: interaction.left * 100,
|
|
54738
|
+
v: (1 - interaction.top) * 100,
|
|
54739
|
+
a: hsva.a
|
|
54740
|
+
// source: 'hsv',
|
|
54741
|
+
});
|
|
54742
|
+
};
|
|
54743
|
+
var handleKeyDown = useCallback(event => {
|
|
54744
|
+
if (!hsva || !onChange) return;
|
|
54745
|
+
var step = 1; // 1% step for saturation and value
|
|
54746
|
+
var newS = hsva.s;
|
|
54747
|
+
var newV = hsva.v;
|
|
54748
|
+
var changed = false;
|
|
54749
|
+
switch (event.key) {
|
|
54750
|
+
case 'ArrowLeft':
|
|
54751
|
+
newS = Math.max(0, hsva.s - step);
|
|
54752
|
+
changed = true;
|
|
54753
|
+
event.preventDefault();
|
|
54754
|
+
break;
|
|
54755
|
+
case 'ArrowRight':
|
|
54756
|
+
newS = Math.min(100, hsva.s + step);
|
|
54757
|
+
changed = true;
|
|
54758
|
+
event.preventDefault();
|
|
54759
|
+
break;
|
|
54760
|
+
case 'ArrowUp':
|
|
54761
|
+
newV = Math.min(100, hsva.v + step);
|
|
54762
|
+
changed = true;
|
|
54763
|
+
event.preventDefault();
|
|
54764
|
+
break;
|
|
54765
|
+
case 'ArrowDown':
|
|
54766
|
+
newV = Math.max(0, hsva.v - step);
|
|
54767
|
+
changed = true;
|
|
54768
|
+
event.preventDefault();
|
|
54769
|
+
break;
|
|
54770
|
+
default:
|
|
54771
|
+
return;
|
|
54772
|
+
}
|
|
54773
|
+
if (changed) {
|
|
54774
|
+
onChange({
|
|
54775
|
+
h: hsva.h,
|
|
54776
|
+
s: newS,
|
|
54777
|
+
v: newV,
|
|
54778
|
+
a: hsva.a
|
|
54779
|
+
});
|
|
54780
|
+
}
|
|
54781
|
+
}, [hsva, onChange]);
|
|
54782
|
+
var pointerElement = useMemo(() => {
|
|
54783
|
+
if (!hsva) return null;
|
|
54784
|
+
var comProps = {
|
|
54785
|
+
top: 100 - hsva.v + "%",
|
|
54786
|
+
left: hsva.s + "%",
|
|
54787
|
+
color: hsvaToHslaString(hsva)
|
|
54788
|
+
};
|
|
54789
|
+
if (pointer && typeof pointer === 'function') {
|
|
54790
|
+
return pointer(_extends({
|
|
54791
|
+
prefixCls
|
|
54792
|
+
}, comProps));
|
|
54793
|
+
}
|
|
54794
|
+
return /*#__PURE__*/jsx(Pointer$1, _extends({
|
|
54795
|
+
prefixCls: prefixCls
|
|
54796
|
+
}, comProps));
|
|
54797
|
+
}, [hsva, pointer, prefixCls]);
|
|
54798
|
+
var handleClick = useCallback(event => {
|
|
54799
|
+
event.target.focus();
|
|
54800
|
+
}, []);
|
|
54801
|
+
return /*#__PURE__*/jsx(Interactive$1, _extends({
|
|
54802
|
+
className: [prefixCls, className || ''].filter(Boolean).join(' ')
|
|
54803
|
+
}, other, {
|
|
54804
|
+
style: _extends({
|
|
54805
|
+
position: 'absolute',
|
|
54806
|
+
inset: 0,
|
|
54807
|
+
cursor: 'crosshair',
|
|
54808
|
+
backgroundImage: "linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl(" + ((_hsva$h = hsva == null ? void 0 : hsva.h) != null ? _hsva$h : hue) + ", 100%, 50%))"
|
|
54809
|
+
}, containerStyle, {
|
|
54810
|
+
outline: 'none'
|
|
54811
|
+
}),
|
|
54812
|
+
ref: ref,
|
|
54813
|
+
onMove: handleChange,
|
|
54814
|
+
onDown: handleChange,
|
|
54815
|
+
onKeyDown: handleKeyDown,
|
|
54816
|
+
onClick: handleClick,
|
|
54817
|
+
children: pointerElement
|
|
54818
|
+
}));
|
|
54819
|
+
});
|
|
54820
|
+
Saturation.displayName = 'Saturation';
|
|
54821
|
+
var Saturation$1 = Saturation;
|
|
54822
|
+
|
|
54823
|
+
var _excluded$6 = ["className", "prefixCls", "left", "top", "style", "fillProps"];
|
|
54824
|
+
var Pointer = _ref => {
|
|
54825
|
+
var {
|
|
54826
|
+
className,
|
|
54827
|
+
prefixCls,
|
|
54828
|
+
left,
|
|
54829
|
+
top,
|
|
54830
|
+
style,
|
|
54831
|
+
fillProps
|
|
54832
|
+
} = _ref,
|
|
54833
|
+
reset = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
54834
|
+
var styleWrapper = _extends({}, style, {
|
|
54835
|
+
position: 'absolute',
|
|
54836
|
+
left,
|
|
54837
|
+
top
|
|
54838
|
+
});
|
|
54839
|
+
var stylePointer = _extends({
|
|
54840
|
+
width: 18,
|
|
54841
|
+
height: 18,
|
|
54842
|
+
boxShadow: 'var(--alpha-pointer-box-shadow)',
|
|
54843
|
+
borderRadius: '50%',
|
|
54844
|
+
backgroundColor: 'var(--alpha-pointer-background-color)'
|
|
54845
|
+
}, fillProps == null ? void 0 : fillProps.style, {
|
|
54846
|
+
transform: left ? 'translate(-9px, -1px)' : 'translate(-1px, -9px)'
|
|
54847
|
+
});
|
|
54848
|
+
return /*#__PURE__*/jsx("div", _extends({
|
|
54849
|
+
className: prefixCls + "-pointer " + (className || ''),
|
|
54850
|
+
style: styleWrapper
|
|
54851
|
+
}, reset, {
|
|
54852
|
+
children: /*#__PURE__*/jsx("div", _extends({
|
|
54853
|
+
className: prefixCls + "-fill"
|
|
54854
|
+
}, fillProps, {
|
|
54855
|
+
style: stylePointer
|
|
54856
|
+
}))
|
|
54857
|
+
}));
|
|
54858
|
+
};
|
|
54859
|
+
|
|
54860
|
+
var _excluded$5 = ["prefixCls", "className", "hsva", "background", "bgProps", "innerProps", "pointerProps", "radius", "width", "height", "direction", "style", "onChange", "pointer"];
|
|
54861
|
+
var BACKGROUND_IMG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==';
|
|
54862
|
+
var Alpha = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
54863
|
+
var {
|
|
54864
|
+
prefixCls = 'w-color-alpha',
|
|
54865
|
+
className,
|
|
54866
|
+
hsva,
|
|
54867
|
+
background,
|
|
54868
|
+
bgProps = {},
|
|
54869
|
+
innerProps = {},
|
|
54870
|
+
pointerProps = {},
|
|
54871
|
+
radius = 0,
|
|
54872
|
+
width,
|
|
54873
|
+
height = 16,
|
|
54874
|
+
direction = 'horizontal',
|
|
54875
|
+
style,
|
|
54876
|
+
onChange,
|
|
54877
|
+
pointer
|
|
54878
|
+
} = props,
|
|
54879
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$5);
|
|
54880
|
+
var handleChange = offset => {
|
|
54881
|
+
onChange && onChange(_extends({}, hsva, {
|
|
54882
|
+
a: direction === 'horizontal' ? offset.left : offset.top
|
|
54883
|
+
}), offset);
|
|
54884
|
+
};
|
|
54885
|
+
var colorTo = hsvaToHslaString(Object.assign({}, hsva, {
|
|
54886
|
+
a: 1
|
|
54887
|
+
}));
|
|
54888
|
+
var innerBackground = "linear-gradient(to " + (direction === 'horizontal' ? 'right' : 'bottom') + ", rgba(244, 67, 54, 0) 0%, " + colorTo + " 100%)";
|
|
54889
|
+
var comProps = {};
|
|
54890
|
+
if (direction === 'horizontal') {
|
|
54891
|
+
comProps.left = hsva.a * 100 + "%";
|
|
54892
|
+
} else {
|
|
54893
|
+
comProps.top = hsva.a * 100 + "%";
|
|
54894
|
+
}
|
|
54895
|
+
var styleWrapper = _extends({
|
|
54896
|
+
'--alpha-background-color': '#fff',
|
|
54897
|
+
'--alpha-pointer-background-color': 'rgb(248, 248, 248)',
|
|
54898
|
+
'--alpha-pointer-box-shadow': 'rgb(0 0 0 / 37%) 0px 1px 4px 0px',
|
|
54899
|
+
borderRadius: radius,
|
|
54900
|
+
background: "url(" + BACKGROUND_IMG + ") left center",
|
|
54901
|
+
backgroundColor: 'var(--alpha-background-color)'
|
|
54902
|
+
}, {
|
|
54903
|
+
width,
|
|
54904
|
+
height
|
|
54905
|
+
}, style, {
|
|
54906
|
+
position: 'relative'
|
|
54907
|
+
});
|
|
54908
|
+
var handleKeyDown = useCallback(event => {
|
|
54909
|
+
var step = 0.01; // 1% step
|
|
54910
|
+
var currentAlpha = hsva.a;
|
|
54911
|
+
var newAlpha = currentAlpha;
|
|
54912
|
+
switch (event.key) {
|
|
54913
|
+
case 'ArrowLeft':
|
|
54914
|
+
if (direction === 'horizontal') {
|
|
54915
|
+
newAlpha = Math.max(0, currentAlpha - step);
|
|
54916
|
+
event.preventDefault();
|
|
54917
|
+
}
|
|
54918
|
+
break;
|
|
54919
|
+
case 'ArrowRight':
|
|
54920
|
+
if (direction === 'horizontal') {
|
|
54921
|
+
newAlpha = Math.min(1, currentAlpha + step);
|
|
54922
|
+
event.preventDefault();
|
|
54923
|
+
}
|
|
54924
|
+
break;
|
|
54925
|
+
case 'ArrowUp':
|
|
54926
|
+
if (direction === 'vertical') {
|
|
54927
|
+
newAlpha = Math.max(0, currentAlpha - step);
|
|
54928
|
+
event.preventDefault();
|
|
54929
|
+
}
|
|
54930
|
+
break;
|
|
54931
|
+
case 'ArrowDown':
|
|
54932
|
+
if (direction === 'vertical') {
|
|
54933
|
+
newAlpha = Math.min(1, currentAlpha + step);
|
|
54934
|
+
event.preventDefault();
|
|
54935
|
+
}
|
|
54936
|
+
break;
|
|
54937
|
+
default:
|
|
54938
|
+
return;
|
|
54939
|
+
}
|
|
54940
|
+
if (newAlpha !== currentAlpha) {
|
|
54941
|
+
var syntheticOffset = {
|
|
54942
|
+
left: direction === 'horizontal' ? newAlpha : hsva.a,
|
|
54943
|
+
top: direction === 'vertical' ? newAlpha : hsva.a,
|
|
54944
|
+
width: 0,
|
|
54945
|
+
height: 0,
|
|
54946
|
+
x: 0,
|
|
54947
|
+
y: 0
|
|
54948
|
+
};
|
|
54949
|
+
onChange && onChange(_extends({}, hsva, {
|
|
54950
|
+
a: newAlpha
|
|
54951
|
+
}), syntheticOffset);
|
|
54952
|
+
}
|
|
54953
|
+
}, [hsva, direction, onChange]);
|
|
54954
|
+
var handleClick = useCallback(event => {
|
|
54955
|
+
event.target.focus();
|
|
54956
|
+
}, []);
|
|
54957
|
+
var pointerElement = pointer && typeof pointer === 'function' ? pointer(_extends({
|
|
54958
|
+
prefixCls
|
|
54959
|
+
}, pointerProps, comProps)) : /*#__PURE__*/jsx(Pointer, _extends({}, pointerProps, {
|
|
54960
|
+
prefixCls: prefixCls
|
|
54961
|
+
}, comProps));
|
|
54962
|
+
return /*#__PURE__*/jsxs("div", _extends({}, other, {
|
|
54963
|
+
className: [prefixCls, prefixCls + "-" + direction, className || ''].filter(Boolean).join(' '),
|
|
54964
|
+
style: styleWrapper,
|
|
54965
|
+
ref: ref,
|
|
54966
|
+
children: [/*#__PURE__*/jsx("div", _extends({}, bgProps, {
|
|
54967
|
+
style: _extends({
|
|
54968
|
+
inset: 0,
|
|
54969
|
+
position: 'absolute',
|
|
54970
|
+
background: background || innerBackground,
|
|
54971
|
+
borderRadius: radius
|
|
54972
|
+
}, bgProps.style)
|
|
54973
|
+
})), /*#__PURE__*/jsx(Interactive$1, _extends({}, innerProps, {
|
|
54974
|
+
style: _extends({}, innerProps.style, {
|
|
54975
|
+
inset: 0,
|
|
54976
|
+
zIndex: 1,
|
|
54977
|
+
position: 'absolute',
|
|
54978
|
+
outline: 'none'
|
|
54979
|
+
}),
|
|
54980
|
+
onMove: handleChange,
|
|
54981
|
+
onDown: handleChange,
|
|
54982
|
+
onClick: handleClick,
|
|
54983
|
+
onKeyDown: handleKeyDown,
|
|
54984
|
+
children: pointerElement
|
|
54985
|
+
}))]
|
|
54986
|
+
}));
|
|
54987
|
+
});
|
|
54988
|
+
Alpha.displayName = 'Alpha';
|
|
54989
|
+
var Alpha$1 = Alpha;
|
|
54990
|
+
|
|
54991
|
+
var _excluded$4 = ["prefixCls", "placement", "label", "value", "className", "style", "labelStyle", "inputStyle", "onChange", "onBlur", "renderInput"];
|
|
54992
|
+
var validHex = hex => /^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(hex);
|
|
54993
|
+
var getNumberValue = value => Number(String(value).replace(/%/g, ''));
|
|
54994
|
+
var EditableInput = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
54995
|
+
var {
|
|
54996
|
+
prefixCls = 'w-color-editable-input',
|
|
54997
|
+
placement = 'bottom',
|
|
54998
|
+
label,
|
|
54999
|
+
value: initValue,
|
|
55000
|
+
className,
|
|
55001
|
+
style,
|
|
55002
|
+
labelStyle,
|
|
55003
|
+
inputStyle,
|
|
55004
|
+
onChange,
|
|
55005
|
+
onBlur,
|
|
55006
|
+
renderInput
|
|
55007
|
+
} = props,
|
|
55008
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$4);
|
|
55009
|
+
var [value, setValue] = useState(initValue);
|
|
55010
|
+
var isFocus = useRef(false);
|
|
55011
|
+
useEffect(() => {
|
|
55012
|
+
if (props.value !== value) {
|
|
55013
|
+
if (!isFocus.current) {
|
|
55014
|
+
setValue(props.value);
|
|
55015
|
+
}
|
|
55016
|
+
}
|
|
55017
|
+
}, [props.value]);
|
|
55018
|
+
function handleChange(evn, valInit) {
|
|
55019
|
+
var value = (valInit || evn.target.value).trim().replace(/^#/, '');
|
|
55020
|
+
if (validHex(value)) {
|
|
55021
|
+
onChange && onChange(evn, value);
|
|
55022
|
+
}
|
|
55023
|
+
var val = getNumberValue(value);
|
|
55024
|
+
if (!isNaN(val)) {
|
|
55025
|
+
onChange && onChange(evn, val);
|
|
55026
|
+
}
|
|
55027
|
+
setValue(value);
|
|
55028
|
+
}
|
|
55029
|
+
function handleBlur(evn) {
|
|
55030
|
+
isFocus.current = false;
|
|
55031
|
+
setValue(props.value);
|
|
55032
|
+
onBlur && onBlur(evn);
|
|
55033
|
+
}
|
|
55034
|
+
var placementStyle = {};
|
|
55035
|
+
if (placement === 'bottom') {
|
|
55036
|
+
placementStyle['flexDirection'] = 'column';
|
|
55037
|
+
}
|
|
55038
|
+
if (placement === 'top') {
|
|
55039
|
+
placementStyle['flexDirection'] = 'column-reverse';
|
|
55040
|
+
}
|
|
55041
|
+
if (placement === 'left') {
|
|
55042
|
+
placementStyle['flexDirection'] = 'row-reverse';
|
|
55043
|
+
}
|
|
55044
|
+
var wrapperStyle = _extends({
|
|
55045
|
+
'--editable-input-label-color': 'rgb(153, 153, 153)',
|
|
55046
|
+
'--editable-input-box-shadow': 'rgb(204 204 204) 0px 0px 0px 1px inset',
|
|
55047
|
+
'--editable-input-color': '#666',
|
|
55048
|
+
position: 'relative',
|
|
55049
|
+
alignItems: 'center',
|
|
55050
|
+
display: 'flex',
|
|
55051
|
+
fontSize: 11
|
|
55052
|
+
}, placementStyle, style);
|
|
55053
|
+
var editableStyle = _extends({
|
|
55054
|
+
width: '100%',
|
|
55055
|
+
paddingTop: 2,
|
|
55056
|
+
paddingBottom: 2,
|
|
55057
|
+
paddingLeft: 3,
|
|
55058
|
+
paddingRight: 3,
|
|
55059
|
+
fontSize: 11,
|
|
55060
|
+
background: 'transparent',
|
|
55061
|
+
boxSizing: 'border-box',
|
|
55062
|
+
border: 'none',
|
|
55063
|
+
color: 'var(--editable-input-color)',
|
|
55064
|
+
boxShadow: 'var(--editable-input-box-shadow)'
|
|
55065
|
+
}, inputStyle);
|
|
55066
|
+
var inputProps = _extends({
|
|
55067
|
+
value,
|
|
55068
|
+
onChange: handleChange,
|
|
55069
|
+
onBlur: handleBlur,
|
|
55070
|
+
autoComplete: 'off',
|
|
55071
|
+
onFocus: () => isFocus.current = true
|
|
55072
|
+
}, other, {
|
|
55073
|
+
style: editableStyle
|
|
55074
|
+
});
|
|
55075
|
+
return /*#__PURE__*/jsxs("div", {
|
|
55076
|
+
className: [prefixCls, className || ''].filter(Boolean).join(' '),
|
|
55077
|
+
style: wrapperStyle,
|
|
55078
|
+
children: [renderInput ? renderInput(inputProps, ref) : /*#__PURE__*/jsx("input", _extends({
|
|
55079
|
+
ref: ref
|
|
55080
|
+
}, inputProps)), label && /*#__PURE__*/jsx("span", {
|
|
55081
|
+
style: _extends({
|
|
55082
|
+
color: 'var(--editable-input-label-color)',
|
|
55083
|
+
textTransform: 'capitalize'
|
|
55084
|
+
}, labelStyle),
|
|
55085
|
+
children: label
|
|
55086
|
+
})]
|
|
55087
|
+
});
|
|
55088
|
+
});
|
|
55089
|
+
EditableInput.displayName = 'EditableInput';
|
|
55090
|
+
var EditableInput$1 = EditableInput;
|
|
55091
|
+
|
|
55092
|
+
var _excluded$3 = ["prefixCls", "hsva", "placement", "rProps", "gProps", "bProps", "aProps", "className", "style", "onChange"];
|
|
55093
|
+
var EditableInputRGBA = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
55094
|
+
var {
|
|
55095
|
+
prefixCls = 'w-color-editable-input-rgba',
|
|
55096
|
+
hsva,
|
|
55097
|
+
placement = 'bottom',
|
|
55098
|
+
rProps = {},
|
|
55099
|
+
gProps = {},
|
|
55100
|
+
bProps = {},
|
|
55101
|
+
aProps = {},
|
|
55102
|
+
className,
|
|
55103
|
+
style,
|
|
55104
|
+
onChange
|
|
55105
|
+
} = props,
|
|
55106
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$3);
|
|
55107
|
+
var rgba = hsva ? hsvaToRgba(hsva) : {};
|
|
55108
|
+
function handleBlur(evn) {
|
|
55109
|
+
var value = Number(evn.target.value);
|
|
55110
|
+
if (value && value > 255) {
|
|
55111
|
+
evn.target.value = '255';
|
|
55112
|
+
}
|
|
55113
|
+
if (value && value < 0) {
|
|
55114
|
+
evn.target.value = '0';
|
|
55115
|
+
}
|
|
55116
|
+
}
|
|
55117
|
+
var handleChange = (value, type, evn) => {
|
|
55118
|
+
if (typeof value === 'number') {
|
|
55119
|
+
if (type === 'a') {
|
|
55120
|
+
if (value < 0) value = 0;
|
|
55121
|
+
if (value > 100) value = 100;
|
|
55122
|
+
onChange && onChange(color(rgbaToHsva(_extends({}, rgba, {
|
|
55123
|
+
a: value / 100
|
|
55124
|
+
}))));
|
|
55125
|
+
}
|
|
55126
|
+
if (value > 255) {
|
|
55127
|
+
value = 255;
|
|
55128
|
+
evn.target.value = '255';
|
|
55129
|
+
}
|
|
55130
|
+
if (value < 0) {
|
|
55131
|
+
value = 0;
|
|
55132
|
+
evn.target.value = '0';
|
|
55133
|
+
}
|
|
55134
|
+
if (type === 'r') {
|
|
55135
|
+
onChange && onChange(color(rgbaToHsva(_extends({}, rgba, {
|
|
55136
|
+
r: value
|
|
55137
|
+
}))));
|
|
55138
|
+
}
|
|
55139
|
+
if (type === 'g') {
|
|
55140
|
+
onChange && onChange(color(rgbaToHsva(_extends({}, rgba, {
|
|
55141
|
+
g: value
|
|
55142
|
+
}))));
|
|
55143
|
+
}
|
|
55144
|
+
if (type === 'b') {
|
|
55145
|
+
onChange && onChange(color(rgbaToHsva(_extends({}, rgba, {
|
|
55146
|
+
b: value
|
|
55147
|
+
}))));
|
|
55148
|
+
}
|
|
55149
|
+
}
|
|
55150
|
+
};
|
|
55151
|
+
return /*#__PURE__*/jsxs("div", _extends({
|
|
55152
|
+
ref: ref,
|
|
55153
|
+
className: [prefixCls, className || ''].filter(Boolean).join(' ')
|
|
55154
|
+
}, other, {
|
|
55155
|
+
style: _extends({
|
|
55156
|
+
fontSize: 11,
|
|
55157
|
+
display: 'flex'
|
|
55158
|
+
}, style),
|
|
55159
|
+
children: [/*#__PURE__*/jsx(EditableInput$1, _extends({
|
|
55160
|
+
label: "R",
|
|
55161
|
+
value: rgba.r || 0,
|
|
55162
|
+
onBlur: handleBlur,
|
|
55163
|
+
placement: placement,
|
|
55164
|
+
onChange: (evn, val) => handleChange(val, 'r', evn)
|
|
55165
|
+
}, rProps, {
|
|
55166
|
+
style: _extends({}, rProps.style)
|
|
55167
|
+
})), /*#__PURE__*/jsx(EditableInput$1, _extends({
|
|
55168
|
+
label: "G",
|
|
55169
|
+
value: rgba.g || 0,
|
|
55170
|
+
onBlur: handleBlur,
|
|
55171
|
+
placement: placement,
|
|
55172
|
+
onChange: (evn, val) => handleChange(val, 'g', evn)
|
|
55173
|
+
}, gProps, {
|
|
55174
|
+
style: _extends({
|
|
55175
|
+
marginLeft: 5
|
|
55176
|
+
}, rProps.style)
|
|
55177
|
+
})), /*#__PURE__*/jsx(EditableInput$1, _extends({
|
|
55178
|
+
label: "B",
|
|
55179
|
+
value: rgba.b || 0,
|
|
55180
|
+
onBlur: handleBlur,
|
|
55181
|
+
placement: placement,
|
|
55182
|
+
onChange: (evn, val) => handleChange(val, 'b', evn)
|
|
55183
|
+
}, bProps, {
|
|
55184
|
+
style: _extends({
|
|
55185
|
+
marginLeft: 5
|
|
55186
|
+
}, bProps.style)
|
|
55187
|
+
})), aProps && /*#__PURE__*/jsx(EditableInput$1, _extends({
|
|
55188
|
+
label: "A",
|
|
55189
|
+
value: rgba.a ? parseInt(String(rgba.a * 100), 10) : 0,
|
|
55190
|
+
onBlur: handleBlur,
|
|
55191
|
+
placement: placement,
|
|
55192
|
+
onChange: (evn, val) => handleChange(val, 'a', evn)
|
|
55193
|
+
}, aProps, {
|
|
55194
|
+
style: _extends({
|
|
55195
|
+
marginLeft: 5
|
|
55196
|
+
}, aProps.style)
|
|
55197
|
+
}))]
|
|
55198
|
+
}));
|
|
55199
|
+
});
|
|
55200
|
+
EditableInputRGBA.displayName = 'EditableInputRGBA';
|
|
55201
|
+
var RGBA = EditableInputRGBA;
|
|
55202
|
+
|
|
55203
|
+
var _excluded$2 = ["prefixCls", "className", "hue", "onChange", "direction"];
|
|
55204
|
+
var Hue = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
55205
|
+
var {
|
|
55206
|
+
prefixCls = 'w-color-hue',
|
|
55207
|
+
className,
|
|
55208
|
+
hue = 0,
|
|
55209
|
+
onChange: _onChange,
|
|
55210
|
+
direction = 'horizontal'
|
|
55211
|
+
} = props,
|
|
55212
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2);
|
|
55213
|
+
return /*#__PURE__*/jsx(Alpha$1, _extends({
|
|
55214
|
+
ref: ref,
|
|
55215
|
+
className: prefixCls + " " + (className || '')
|
|
55216
|
+
}, other, {
|
|
55217
|
+
direction: direction,
|
|
55218
|
+
background: "linear-gradient(to " + (direction === 'horizontal' ? 'right' : 'bottom') + ", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)",
|
|
55219
|
+
hsva: {
|
|
55220
|
+
h: hue,
|
|
55221
|
+
s: 100,
|
|
55222
|
+
v: 100,
|
|
55223
|
+
a: hue / 360
|
|
55224
|
+
},
|
|
55225
|
+
onChange: (_, interaction) => {
|
|
55226
|
+
_onChange && _onChange({
|
|
55227
|
+
h: direction === 'horizontal' ? 360 * interaction.left : 360 * interaction.top
|
|
55228
|
+
});
|
|
55229
|
+
}
|
|
55230
|
+
}));
|
|
55231
|
+
});
|
|
55232
|
+
Hue.displayName = 'Hue';
|
|
55233
|
+
var Hue$1 = Hue;
|
|
55234
|
+
|
|
55235
|
+
var _excluded$1 = ["prefixCls", "className", "color", "colors", "style", "rectProps", "onChange", "addonAfter", "addonBefore", "rectRender"];
|
|
55236
|
+
var Swatch = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
55237
|
+
var {
|
|
55238
|
+
prefixCls = 'w-color-swatch',
|
|
55239
|
+
className,
|
|
55240
|
+
color: color$1,
|
|
55241
|
+
colors = [],
|
|
55242
|
+
style,
|
|
55243
|
+
rectProps = {},
|
|
55244
|
+
onChange,
|
|
55245
|
+
addonAfter,
|
|
55246
|
+
addonBefore,
|
|
55247
|
+
rectRender
|
|
55248
|
+
} = props,
|
|
55249
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$1);
|
|
55250
|
+
var rectStyle = _extends({
|
|
55251
|
+
'--swatch-background-color': 'rgb(144, 19, 254)',
|
|
55252
|
+
background: 'var(--swatch-background-color)',
|
|
55253
|
+
height: 15,
|
|
55254
|
+
width: 15,
|
|
55255
|
+
marginRight: 5,
|
|
55256
|
+
marginBottom: 5,
|
|
55257
|
+
cursor: 'pointer',
|
|
55258
|
+
position: 'relative',
|
|
55259
|
+
outline: 'none',
|
|
55260
|
+
borderRadius: 2
|
|
55261
|
+
}, rectProps.style);
|
|
55262
|
+
var handleClick = (hex, evn) => {
|
|
55263
|
+
onChange && onChange(hexToHsva(hex), color(hexToHsva(hex)), evn);
|
|
55264
|
+
};
|
|
55265
|
+
return /*#__PURE__*/jsxs("div", _extends({
|
|
55266
|
+
ref: ref
|
|
55267
|
+
}, other, {
|
|
55268
|
+
className: [prefixCls, className || ''].filter(Boolean).join(' '),
|
|
55269
|
+
style: _extends({
|
|
55270
|
+
display: 'flex',
|
|
55271
|
+
flexWrap: 'wrap',
|
|
55272
|
+
position: 'relative'
|
|
55273
|
+
}, style),
|
|
55274
|
+
children: [addonBefore && /*#__PURE__*/React__default.isValidElement(addonBefore) && addonBefore, colors && Array.isArray(colors) && colors.map((item, idx) => {
|
|
55275
|
+
var title = '';
|
|
55276
|
+
var background = '';
|
|
55277
|
+
if (typeof item === 'string') {
|
|
55278
|
+
title = item;
|
|
55279
|
+
background = item;
|
|
55280
|
+
}
|
|
55281
|
+
if (typeof item === 'object' && item.color) {
|
|
55282
|
+
title = item.title || item.color;
|
|
55283
|
+
background = item.color;
|
|
55284
|
+
}
|
|
55285
|
+
var checked = color$1 && color$1.toLocaleLowerCase() === background.toLocaleLowerCase();
|
|
55286
|
+
var render = rectRender && rectRender({
|
|
55287
|
+
title,
|
|
55288
|
+
color: background,
|
|
55289
|
+
checked: !!checked,
|
|
55290
|
+
style: _extends({}, rectStyle, {
|
|
55291
|
+
background
|
|
55292
|
+
}),
|
|
55293
|
+
onClick: evn => handleClick(background, evn)
|
|
55294
|
+
});
|
|
55295
|
+
if (render) {
|
|
55296
|
+
return /*#__PURE__*/jsx(Fragment$1, {
|
|
55297
|
+
children: render
|
|
55298
|
+
}, idx);
|
|
55299
|
+
}
|
|
55300
|
+
var child = rectProps.children && /*#__PURE__*/React__default.isValidElement(rectProps.children) ? /*#__PURE__*/React__default.cloneElement(rectProps.children, {
|
|
55301
|
+
color: background,
|
|
55302
|
+
checked
|
|
55303
|
+
}) : null;
|
|
55304
|
+
return /*#__PURE__*/jsx("div", _extends({
|
|
55305
|
+
tabIndex: 0,
|
|
55306
|
+
title: title,
|
|
55307
|
+
onClick: evn => handleClick(background, evn)
|
|
55308
|
+
}, rectProps, {
|
|
55309
|
+
children: child,
|
|
55310
|
+
style: _extends({}, rectStyle, {
|
|
55311
|
+
background
|
|
55312
|
+
})
|
|
55313
|
+
}), idx);
|
|
55314
|
+
}), addonAfter && /*#__PURE__*/React__default.isValidElement(addonAfter) && addonAfter]
|
|
55315
|
+
}));
|
|
55316
|
+
});
|
|
55317
|
+
Swatch.displayName = 'Swatch';
|
|
55318
|
+
var Swatch$1 = Swatch;
|
|
55319
|
+
|
|
55320
|
+
var _excluded = ["prefixCls", "className", "onChange", "width", "presetColors", "color", "editableDisable", "disableAlpha", "style"];
|
|
55321
|
+
var PRESET_COLORS = ['#D0021B', '#F5A623', '#f8e61b', '#8B572A', '#7ED321', '#417505', '#BD10E0', '#9013FE', '#4A90E2', '#50E3C2', '#B8E986', '#000000', '#4A4A4A', '#9B9B9B', '#FFFFFF'];
|
|
55322
|
+
var Bar = props => /*#__PURE__*/jsx("div", {
|
|
55323
|
+
style: {
|
|
55324
|
+
boxShadow: 'rgb(0 0 0 / 60%) 0px 0px 2px',
|
|
55325
|
+
width: 4,
|
|
55326
|
+
top: 1,
|
|
55327
|
+
bottom: 1,
|
|
55328
|
+
left: props.left,
|
|
55329
|
+
borderRadius: 1,
|
|
55330
|
+
position: 'absolute',
|
|
55331
|
+
backgroundColor: '#fff'
|
|
55332
|
+
}
|
|
55333
|
+
});
|
|
55334
|
+
var Sketch = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
55335
|
+
var {
|
|
55336
|
+
prefixCls = 'w-color-sketch',
|
|
55337
|
+
className,
|
|
55338
|
+
onChange,
|
|
55339
|
+
width = 218,
|
|
55340
|
+
presetColors = PRESET_COLORS,
|
|
55341
|
+
color: color$1,
|
|
55342
|
+
editableDisable = true,
|
|
55343
|
+
disableAlpha = false,
|
|
55344
|
+
style
|
|
55345
|
+
} = props,
|
|
55346
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
55347
|
+
var [hsva, setHsva] = useState({
|
|
55348
|
+
h: 209,
|
|
55349
|
+
s: 36,
|
|
55350
|
+
v: 90,
|
|
55351
|
+
a: 1
|
|
55352
|
+
});
|
|
55353
|
+
useEffect(() => {
|
|
55354
|
+
if (typeof color$1 === 'string' && validHex$1(color$1)) {
|
|
55355
|
+
setHsva(hexToHsva(color$1));
|
|
55356
|
+
}
|
|
55357
|
+
if (typeof color$1 === 'object') {
|
|
55358
|
+
setHsva(color$1);
|
|
55359
|
+
}
|
|
55360
|
+
}, [color$1]);
|
|
55361
|
+
var handleChange = hsv => {
|
|
55362
|
+
setHsva(hsv);
|
|
55363
|
+
onChange && onChange(color(hsv));
|
|
55364
|
+
};
|
|
55365
|
+
var handleHex = (value, evn) => {
|
|
55366
|
+
if (typeof value === 'string' && validHex$1(value) && /(3|6)/.test(String(value.length))) {
|
|
55367
|
+
handleChange(hexToHsva(value));
|
|
55368
|
+
}
|
|
55369
|
+
};
|
|
55370
|
+
var handleAlphaChange = newAlpha => handleChange(_extends({}, hsva, {
|
|
55371
|
+
a: newAlpha.a
|
|
55372
|
+
}));
|
|
55373
|
+
var handleSaturationChange = newColor => handleChange(_extends({}, hsva, newColor, {
|
|
55374
|
+
a: hsva.a
|
|
55375
|
+
}));
|
|
55376
|
+
var styleMain = _extends({
|
|
55377
|
+
'--sketch-background': 'rgb(255, 255, 255)',
|
|
55378
|
+
'--sketch-box-shadow': 'rgb(0 0 0 / 15%) 0px 0px 0px 1px, rgb(0 0 0 / 15%) 0px 8px 16px',
|
|
55379
|
+
'--sketch-swatch-box-shadow': 'rgb(0 0 0 / 15%) 0px 0px 0px 1px inset',
|
|
55380
|
+
'--sketch-alpha-box-shadow': 'rgb(0 0 0 / 15%) 0px 0px 0px 1px inset, rgb(0 0 0 / 25%) 0px 0px 4px inset',
|
|
55381
|
+
'--sketch-swatch-border-top': '1px solid rgb(238, 238, 238)',
|
|
55382
|
+
background: 'var(--sketch-background)',
|
|
55383
|
+
borderRadius: 4,
|
|
55384
|
+
boxShadow: 'var(--sketch-box-shadow)',
|
|
55385
|
+
width
|
|
55386
|
+
}, style);
|
|
55387
|
+
var styleAlpha = {
|
|
55388
|
+
borderRadius: 2,
|
|
55389
|
+
background: hsvaToRgbaString(hsva),
|
|
55390
|
+
boxShadow: 'var(--sketch-alpha-box-shadow)'
|
|
55391
|
+
};
|
|
55392
|
+
var styleSwatch = {
|
|
55393
|
+
borderTop: 'var(--sketch-swatch-border-top)',
|
|
55394
|
+
paddingTop: 10,
|
|
55395
|
+
paddingLeft: 10
|
|
55396
|
+
};
|
|
55397
|
+
var styleSwatchRect = {
|
|
55398
|
+
marginRight: 10,
|
|
55399
|
+
marginBottom: 10,
|
|
55400
|
+
borderRadius: 3,
|
|
55401
|
+
boxShadow: 'var(--sketch-swatch-box-shadow)'
|
|
55402
|
+
};
|
|
55403
|
+
return /*#__PURE__*/jsxs("div", _extends({}, other, {
|
|
55404
|
+
className: prefixCls + " " + (className || ''),
|
|
55405
|
+
ref: ref,
|
|
55406
|
+
style: styleMain,
|
|
55407
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
55408
|
+
style: {
|
|
55409
|
+
padding: '10px 10px 8px'
|
|
55410
|
+
},
|
|
55411
|
+
children: [/*#__PURE__*/jsx(Saturation$1, {
|
|
55412
|
+
hsva: hsva,
|
|
55413
|
+
style: {
|
|
55414
|
+
width: 'auto',
|
|
55415
|
+
height: 150
|
|
55416
|
+
},
|
|
55417
|
+
onChange: handleSaturationChange
|
|
55418
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
55419
|
+
style: {
|
|
55420
|
+
display: 'flex',
|
|
55421
|
+
marginTop: 4
|
|
55422
|
+
},
|
|
55423
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
55424
|
+
style: {
|
|
55425
|
+
flex: 1
|
|
55426
|
+
},
|
|
55427
|
+
children: [/*#__PURE__*/jsx(Hue$1, {
|
|
55428
|
+
width: "auto",
|
|
55429
|
+
height: 10,
|
|
55430
|
+
hue: hsva.h,
|
|
55431
|
+
pointer: Bar,
|
|
55432
|
+
innerProps: {
|
|
55433
|
+
style: {
|
|
55434
|
+
marginLeft: 1,
|
|
55435
|
+
marginRight: 5
|
|
55436
|
+
}
|
|
55437
|
+
},
|
|
55438
|
+
onChange: newHue => handleChange(_extends({}, hsva, newHue))
|
|
55439
|
+
}), !disableAlpha && /*#__PURE__*/jsx(Alpha$1, {
|
|
55440
|
+
width: "auto",
|
|
55441
|
+
height: 10,
|
|
55442
|
+
hsva: hsva,
|
|
55443
|
+
pointer: Bar,
|
|
55444
|
+
style: {
|
|
55445
|
+
marginTop: 4
|
|
55446
|
+
},
|
|
55447
|
+
innerProps: {
|
|
55448
|
+
style: {
|
|
55449
|
+
marginLeft: 1,
|
|
55450
|
+
marginRight: 5
|
|
55451
|
+
}
|
|
55452
|
+
},
|
|
55453
|
+
onChange: handleAlphaChange
|
|
55454
|
+
})]
|
|
55455
|
+
}), !disableAlpha && /*#__PURE__*/jsx(Alpha$1, {
|
|
55456
|
+
width: 24,
|
|
55457
|
+
height: 24,
|
|
55458
|
+
hsva: hsva,
|
|
55459
|
+
radius: 2,
|
|
55460
|
+
style: {
|
|
55461
|
+
marginLeft: 4
|
|
55462
|
+
},
|
|
55463
|
+
bgProps: {
|
|
55464
|
+
style: {
|
|
55465
|
+
background: 'transparent'
|
|
55466
|
+
}
|
|
55467
|
+
},
|
|
55468
|
+
innerProps: {
|
|
55469
|
+
style: styleAlpha
|
|
55470
|
+
},
|
|
55471
|
+
pointer: () => /*#__PURE__*/jsx(Fragment$1, {})
|
|
55472
|
+
})]
|
|
55473
|
+
})]
|
|
55474
|
+
}), editableDisable && /*#__PURE__*/jsxs("div", {
|
|
55475
|
+
style: {
|
|
55476
|
+
display: 'flex',
|
|
55477
|
+
margin: '0 10px 3px 10px'
|
|
55478
|
+
},
|
|
55479
|
+
children: [/*#__PURE__*/jsx(EditableInput$1, {
|
|
55480
|
+
label: "Hex",
|
|
55481
|
+
value: hsvaToHex(hsva).replace(/^#/, '').toLocaleUpperCase(),
|
|
55482
|
+
onChange: (evn, val) => handleHex(val),
|
|
55483
|
+
style: {
|
|
55484
|
+
minWidth: 58
|
|
55485
|
+
}
|
|
55486
|
+
}), /*#__PURE__*/jsx(RGBA, {
|
|
55487
|
+
hsva: hsva,
|
|
55488
|
+
style: {
|
|
55489
|
+
marginLeft: 6
|
|
55490
|
+
},
|
|
55491
|
+
aProps: !disableAlpha ? {} : false,
|
|
55492
|
+
onChange: result => handleChange(result.hsva)
|
|
55493
|
+
})]
|
|
55494
|
+
}), presetColors && presetColors.length > 0 && /*#__PURE__*/jsx(Swatch$1, {
|
|
55495
|
+
style: styleSwatch,
|
|
55496
|
+
colors: presetColors,
|
|
55497
|
+
color: hsvaToHex(hsva),
|
|
55498
|
+
onChange: hsvColor => handleChange(hsvColor),
|
|
55499
|
+
rectProps: {
|
|
55500
|
+
style: styleSwatchRect
|
|
55501
|
+
}
|
|
55502
|
+
})]
|
|
55503
|
+
}));
|
|
55504
|
+
});
|
|
55505
|
+
Sketch.displayName = 'Sketch';
|
|
55506
|
+
var Sketch$1 = Sketch;
|
|
55507
|
+
|
|
55508
|
+
const rootClassName = 'dot-color-picker';
|
|
55509
|
+
const StyledColorPicker = styled(Sketch$1)`
|
|
55510
|
+
${({
|
|
55511
|
+
theme,
|
|
55512
|
+
$hideShadow
|
|
55513
|
+
}) => css`
|
|
55514
|
+
&.${rootClassName} {
|
|
55515
|
+
--sketch-background: ${theme.palette.figma.background.level0.componentsBackground} !important;
|
|
55516
|
+
--sketch-swatch-border-top: none !important;
|
|
55517
|
+
--sketch-box-shadow: ${theme.shadows[1]} !important;
|
|
55518
|
+
box-shadow: ${$hideShadow ? 'none !important' : 'var(--sketch-box-shadow)'};
|
|
55519
|
+
font-family: ${theme.typography.fontFamily} !important;
|
|
55520
|
+
|
|
55521
|
+
.w-color-interactive,
|
|
55522
|
+
.w-color-hue > div,
|
|
55523
|
+
.w-color-alpha-horizontal > div {
|
|
55524
|
+
border-radius: ${theme.spacing(0.5)} !important;
|
|
55525
|
+
}
|
|
55526
|
+
|
|
55527
|
+
.w-color-editable-input {
|
|
55528
|
+
--editable-input-color: ${theme.palette.figma.typography.black} !important;
|
|
55529
|
+
--editable-input-label-color: ${theme.palette.figma.typography.black} !important;
|
|
55530
|
+
--editable-input-box-shadow: none !important;
|
|
55531
|
+
|
|
55532
|
+
input {
|
|
55533
|
+
border-radius: ${theme.spacing(0.5)};
|
|
55534
|
+
border: 1px solid ${theme.palette.figma.border.default} !important;
|
|
55535
|
+
|
|
55536
|
+
&:focus-visible {
|
|
55537
|
+
background: ${theme.palette.figma.neutral.elevated};
|
|
55538
|
+
outline: none;
|
|
55539
|
+
border: 1px solid ${theme.palette.figma.border.inputActive} !important;
|
|
55540
|
+
}
|
|
55541
|
+
}
|
|
55542
|
+
}
|
|
55543
|
+
|
|
55544
|
+
.w-color-swatch div {
|
|
55545
|
+
height: ${theme.spacing(3)} !important;
|
|
55546
|
+
width: ${theme.spacing(3)} !important;
|
|
55547
|
+
}
|
|
55548
|
+
}
|
|
55549
|
+
`}
|
|
55550
|
+
`;
|
|
55551
|
+
|
|
55552
|
+
const DotColorPicker = ({
|
|
55553
|
+
ariaLabel,
|
|
55554
|
+
ariaRole,
|
|
55555
|
+
className,
|
|
55556
|
+
color,
|
|
55557
|
+
'data-pendoid': dataPendoId,
|
|
55558
|
+
'data-testid': dataTestId,
|
|
55559
|
+
hideAlpha,
|
|
55560
|
+
hideRGB,
|
|
55561
|
+
hideShadow,
|
|
55562
|
+
onChange,
|
|
55563
|
+
presetColors,
|
|
55564
|
+
style,
|
|
55565
|
+
width
|
|
55566
|
+
}) => {
|
|
55567
|
+
return jsx(StyledColorPicker, {
|
|
55568
|
+
"$hideShadow": hideShadow,
|
|
55569
|
+
"aria-label": ariaLabel,
|
|
55570
|
+
className: rootClassName,
|
|
55571
|
+
color: color,
|
|
55572
|
+
"data-pendoid": dataPendoId,
|
|
55573
|
+
"data-testid": dataTestId,
|
|
55574
|
+
disableAlpha: hideAlpha,
|
|
55575
|
+
editableDisable: !hideRGB,
|
|
55576
|
+
onChange: onChange,
|
|
55577
|
+
prefixCls: className,
|
|
55578
|
+
presetColors: presetColors,
|
|
55579
|
+
role: ariaRole,
|
|
55580
|
+
style: style,
|
|
55581
|
+
width: width
|
|
55582
|
+
});
|
|
55583
|
+
};
|
|
55584
|
+
|
|
55585
|
+
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, DotColorPicker, 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, DotToggleSwitch, DotTooltip, DotTruncateWithTooltip, DotTypography, avatarColors, breakpointOptions, checkIfValidDate, darkFigmaColors, lightThemeColors as lightColors, lightFigmaColors, mockScrollIntoView, parseAutoCompleteValue, variables as themeVariables, typographyOptions, useBoardStatus, useColumnStatus, useDotCoreApiContext, useDotMetadataApiContext, useDotSnackbarContext, useEnqueueErrorMessage, useKeyPress };
|