@digital-ai/dot-components 4.26.1 → 4.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +1679 -366
- package/package.json +1 -1
- package/src/lib/components/analytics/metadata-api/openapi/models/DashboardCreateBody.d.ts +1 -1
- package/src/lib/components/analytics/metadata-api/openapi/models/DashboardPatchBody.d.ts +1 -1
- package/src/lib/components/analytics/metadata-api/openapi/models/DashboardPutBody.d.ts +1 -1
- package/src/lib/components/analytics/metadata-api/openapi/models/DashboardView.d.ts +1 -1
- package/src/lib/components/analytics/metadata-api/openapi/services/DashboardsService.d.ts +2 -2
- package/src/lib/components/color-picker/ColorPicker.d.ts +15 -0
- package/src/lib/components/color-picker/ColorPicker.styles.d.ts +6 -0
- package/src/lib/components/color-picker/index.d.ts +4 -0
- package/src/lib/components/index.d.ts +2 -0
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,
|
|
@@ -9810,7 +9810,7 @@ class DashboardsService {
|
|
|
9810
9810
|
* @param isOotbDashboard Boolean match on Dashboard OOTB status.
|
|
9811
9811
|
* @param lifecycleState String match on Dashboard lifecycle state - 'DRAFT' or 'PUBLISHED'.
|
|
9812
9812
|
* @param name String match on Dashboard name.
|
|
9813
|
-
* @param targetApp String match on the Dashboard target application - 'AGILITY', 'CONTINUOUSTEST', 'DEPLOY', 'RELEASE', 'TEAMFORGE', 'CHANGERISKPREDICTION', or
|
|
9813
|
+
* @param targetApp String match on the Dashboard target application - 'AGILITY', 'CONTINUOUSTEST', 'DEPLOY', 'RELEASE', 'TEAMFORGE', 'CHANGERISKPREDICTION', 'APPLICATIONSECURITY', or 'SERVICEMGMTPROCESSOPTIMIZATION'.
|
|
9814
9814
|
* @param viewModified Return dashboards with modified changes if they exist for this user.
|
|
9815
9815
|
* @returns DashboardViewPagedResponse OK
|
|
9816
9816
|
* @returns Error Default error response
|
|
@@ -10236,7 +10236,7 @@ class DashboardsService {
|
|
|
10236
10236
|
* * **Filterable field names**: author_fullname, bi_type, categories, created_dt, description, is_ootb_dashboard, lifecycle_state, name, updated_by_fullname, updated_dt
|
|
10237
10237
|
* * **Searchable field names**: author_fullname, categories, description, name
|
|
10238
10238
|
*
|
|
10239
|
-
* @param targetApp String match on the Dashboard target application - 'AGILITY', 'CONTINUOUSTEST', 'DEPLOY', 'RELEASE', 'TEAMFORGE', 'CHANGERISKPREDICTION', or '
|
|
10239
|
+
* @param targetApp String match on the Dashboard target application - 'AGILITY', 'CONTINUOUSTEST', 'DEPLOY', 'RELEASE', 'TEAMFORGE', 'CHANGERISKPREDICTION', 'APPLICATIONSECURITY', or 'SERVICEMGMTPROCESSOPTIMIZATION'.
|
|
10240
10240
|
* @param biType String match on Dashboard bi type - 'MICROSTRATEGY'.
|
|
10241
10241
|
* @param isOotbDashboard Boolean match on Dashboard OOTB status.
|
|
10242
10242
|
* @param lifecycleState String match on Dashboard lifecycle state - 'DRAFT' or 'PUBLISHED'.
|
|
@@ -10684,7 +10684,8 @@ const getCategoriesMock = {
|
|
|
10684
10684
|
RELEASE: ['DevOps COE', 'Engineering Manager', 'Release Manager', 'Platform Engineer', 'Platform Product Manager'],
|
|
10685
10685
|
TEAMFORGE: ['Scrum Master'],
|
|
10686
10686
|
CHANGERISKPREDICTION: [],
|
|
10687
|
-
APPLICATIONSECURITY: []
|
|
10687
|
+
APPLICATIONSECURITY: [],
|
|
10688
|
+
SERVICEMGMTPROCESSOPTIMIZATION: []
|
|
10688
10689
|
}
|
|
10689
10690
|
};
|
|
10690
10691
|
const getAuthorsMock = [{
|
|
@@ -11100,18 +11101,18 @@ function addAutoHideDuration(severity) {
|
|
|
11100
11101
|
return severity === 'error' ? null : 10000;
|
|
11101
11102
|
}
|
|
11102
11103
|
|
|
11103
|
-
const rootClassName$
|
|
11104
|
+
const rootClassName$K = 'dot-snackbar';
|
|
11104
11105
|
const StyledSnackbar = styled(Snackbar)`
|
|
11105
11106
|
${({
|
|
11106
11107
|
theme,
|
|
11107
11108
|
width,
|
|
11108
11109
|
$anchorOriginTop
|
|
11109
11110
|
}) => css`
|
|
11110
|
-
&.${rootClassName$
|
|
11111
|
+
&.${rootClassName$K} {
|
|
11111
11112
|
.MuiAlert-message {
|
|
11112
11113
|
word-break: break-word;
|
|
11113
11114
|
}
|
|
11114
|
-
.${rootClassName$
|
|
11115
|
+
.${rootClassName$1m} {
|
|
11115
11116
|
align-items: flex-start;
|
|
11116
11117
|
}
|
|
11117
11118
|
&.MuiSnackbar-anchorOriginTopLeft,
|
|
@@ -11164,7 +11165,7 @@ const DotSnackbar = ({
|
|
|
11164
11165
|
}) => {
|
|
11165
11166
|
const hasActions = !!(primaryAction || secondaryAction);
|
|
11166
11167
|
const calculatedAutoHideDuration = autoHideDuration === null || autoHideDuration > 0 ? autoHideDuration : addAutoHideDuration(severity);
|
|
11167
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11168
|
+
const rootClasses = useStylesWithRootClass(rootClassName$K, className);
|
|
11168
11169
|
const handleSnackbarClose = reason => {
|
|
11169
11170
|
if (!reason || hideOnClickAway || !hideOnClickAway && reason !== 'clickaway') {
|
|
11170
11171
|
onClose();
|
|
@@ -11234,10 +11235,10 @@ const DotSnackbar = ({
|
|
|
11234
11235
|
});
|
|
11235
11236
|
};
|
|
11236
11237
|
|
|
11237
|
-
const rootClassName$
|
|
11238
|
+
const rootClassName$J = 'dot-snackbar-container';
|
|
11238
11239
|
const StyledSnackbarContainer = styled.div`
|
|
11239
11240
|
${() => css`
|
|
11240
|
-
&.${rootClassName$
|
|
11241
|
+
&.${rootClassName$J} {
|
|
11241
11242
|
position: absolute;
|
|
11242
11243
|
top: 0;
|
|
11243
11244
|
width: 250px;
|
|
@@ -11269,10 +11270,10 @@ const DotSnackbarContainer = ({
|
|
|
11269
11270
|
};
|
|
11270
11271
|
}
|
|
11271
11272
|
return jsx(StyledSnackbarContainer, {
|
|
11272
|
-
className: rootClassName$
|
|
11273
|
+
className: rootClassName$J,
|
|
11273
11274
|
children: jsx("div", {
|
|
11274
|
-
className: rootClassName$
|
|
11275
|
-
"data-testid": rootClassName$
|
|
11275
|
+
className: rootClassName$J,
|
|
11276
|
+
"data-testid": rootClassName$J,
|
|
11276
11277
|
children: alerts.slice().reverse().map(alert => {
|
|
11277
11278
|
return jsx(DotSnackbar, {
|
|
11278
11279
|
autoCloseOnAction: autoCloseOnAction,
|
|
@@ -11346,12 +11347,12 @@ const useEnqueueErrorMessage = error => {
|
|
|
11346
11347
|
}, [error]);
|
|
11347
11348
|
};
|
|
11348
11349
|
|
|
11349
|
-
const rootClassName$
|
|
11350
|
+
const rootClassName$I = 'dot-dashboard-details';
|
|
11350
11351
|
const StyledDashboardDetails = styled(DotDrawer)`
|
|
11351
11352
|
${({
|
|
11352
11353
|
theme
|
|
11353
11354
|
}) => css`
|
|
11354
|
-
&.${rootClassName$
|
|
11355
|
+
&.${rootClassName$I} {
|
|
11355
11356
|
.dot-drawer-paper {
|
|
11356
11357
|
padding: 0;
|
|
11357
11358
|
width: 382px;
|
|
@@ -11477,7 +11478,7 @@ const DotDashboardDetailsView = ({
|
|
|
11477
11478
|
modifiedAuthorUser
|
|
11478
11479
|
}) => {
|
|
11479
11480
|
var _a, _b;
|
|
11480
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
11481
|
+
const rootClasses = useStylesWithRootClass(rootClassName$I, className);
|
|
11481
11482
|
const closeHandler = useCallback(event => {
|
|
11482
11483
|
onClose && onClose(event);
|
|
11483
11484
|
}, [onClose]);
|
|
@@ -11873,6 +11874,9 @@ const DashboardAppTypeOptions = [
|
|
|
11873
11874
|
}, {
|
|
11874
11875
|
option: 'Application Security',
|
|
11875
11876
|
value: 'APPLICATIONSECURITY'
|
|
11877
|
+
}, {
|
|
11878
|
+
option: 'Service Mgmt. Process Optimization',
|
|
11879
|
+
value: 'SERVICEMGMTPROCESSOPTIMIZATION'
|
|
11876
11880
|
}];
|
|
11877
11881
|
const initialFormState = {
|
|
11878
11882
|
categories: [],
|
|
@@ -12146,12 +12150,12 @@ function DotDashboardDialog({
|
|
|
12146
12150
|
});
|
|
12147
12151
|
}
|
|
12148
12152
|
|
|
12149
|
-
const rootClassName$
|
|
12153
|
+
const rootClassName$H = 'dot-impact-dialog';
|
|
12150
12154
|
const StyledImpactDialog = styled(DotDialog)`
|
|
12151
12155
|
${({
|
|
12152
12156
|
theme
|
|
12153
12157
|
}) => css`
|
|
12154
|
-
&.${rootClassName$
|
|
12158
|
+
&.${rootClassName$H} {
|
|
12155
12159
|
.high-impact-default-content {
|
|
12156
12160
|
margin-top: ${theme.spacing(2)};
|
|
12157
12161
|
margin-bottom: ${theme.spacing(3)};
|
|
@@ -12257,7 +12261,7 @@ const DotImpactDialog = ({
|
|
|
12257
12261
|
}
|
|
12258
12262
|
return '';
|
|
12259
12263
|
}, [action, capitalize, impact, record]);
|
|
12260
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
12264
|
+
const rootClasses = useStylesWithRootClass(rootClassName$H, className);
|
|
12261
12265
|
return jsx(StyledImpactDialog, {
|
|
12262
12266
|
"data-testid": dataTestId,
|
|
12263
12267
|
className: rootClasses,
|
|
@@ -13629,7 +13633,7 @@ function DotDashboardHeader({
|
|
|
13629
13633
|
});
|
|
13630
13634
|
}
|
|
13631
13635
|
|
|
13632
|
-
const rootClassName$
|
|
13636
|
+
const rootClassName$G = 'dot-empty-state';
|
|
13633
13637
|
const emptyStateImageSizing = {
|
|
13634
13638
|
xsmall: 9,
|
|
13635
13639
|
dense: 15,
|
|
@@ -13700,9 +13704,9 @@ const StyledEmptyState = styled.div`
|
|
|
13700
13704
|
`}
|
|
13701
13705
|
`;
|
|
13702
13706
|
|
|
13703
|
-
const rootClassName$
|
|
13707
|
+
const rootClassName$F = 'dot-illustration';
|
|
13704
13708
|
const StyledIllustration = styled.span`
|
|
13705
|
-
&.${rootClassName$
|
|
13709
|
+
&.${rootClassName$F} {
|
|
13706
13710
|
display: inline-block;
|
|
13707
13711
|
}
|
|
13708
13712
|
`;
|
|
@@ -13719,17 +13723,17 @@ const DotIllustration = ({
|
|
|
13719
13723
|
tooltip,
|
|
13720
13724
|
tooltipPlacement = 'right-end'
|
|
13721
13725
|
}) => {
|
|
13722
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13726
|
+
const rootClasses = useStylesWithRootClass(rootClassName$F, className);
|
|
13723
13727
|
return jsx(DotTooltip, {
|
|
13724
13728
|
childrenDisplayStyle: "inline-block",
|
|
13725
13729
|
title: tooltip,
|
|
13726
13730
|
placement: tooltipPlacement,
|
|
13727
|
-
"data-testid": `${dataTestId || rootClassName$
|
|
13731
|
+
"data-testid": `${dataTestId || rootClassName$F}-tooltip`,
|
|
13728
13732
|
children: jsx(StyledIllustration, {
|
|
13729
13733
|
"aria-hidden": "false",
|
|
13730
13734
|
"aria-label": ariaLabel || title || 'Illustration',
|
|
13731
13735
|
className: rootClasses,
|
|
13732
|
-
"data-testid": dataTestId || rootClassName$
|
|
13736
|
+
"data-testid": dataTestId || rootClassName$F,
|
|
13733
13737
|
role: ariaRole,
|
|
13734
13738
|
children: jsx("img", {
|
|
13735
13739
|
alt: alt || 'Illustration',
|
|
@@ -13755,7 +13759,7 @@ const DotEmptyState = ({
|
|
|
13755
13759
|
subtitle,
|
|
13756
13760
|
title
|
|
13757
13761
|
}) => {
|
|
13758
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
13762
|
+
const rootClasses = useStylesWithRootClass(rootClassName$G, className);
|
|
13759
13763
|
return jsxs(StyledEmptyState, {
|
|
13760
13764
|
"aria-label": ariaLabel,
|
|
13761
13765
|
className: `${rootClasses} ${size}`,
|
|
@@ -13836,20 +13840,20 @@ const StyledRadioGroup = styled(RadioGroup)`
|
|
|
13836
13840
|
&.${groupClassName} {
|
|
13837
13841
|
padding-left: ${theme.spacing(2.5)};
|
|
13838
13842
|
|
|
13839
|
-
.${rootClassName$
|
|
13843
|
+
.${rootClassName$T} {
|
|
13840
13844
|
margin: 0;
|
|
13841
13845
|
}
|
|
13842
13846
|
}
|
|
13843
13847
|
`}
|
|
13844
13848
|
`;
|
|
13845
13849
|
|
|
13846
|
-
const rootClassName$
|
|
13850
|
+
const rootClassName$E = 'dot-date-picker';
|
|
13847
13851
|
const popperClassName = 'dot-date-picker-popper';
|
|
13848
13852
|
const containerClassName$2 = 'dot-date-picker-container';
|
|
13849
13853
|
const rectanglePickersDayClassName = 'dot-rectangle-pickers-day';
|
|
13850
13854
|
const StyledDatePickerContainer = styled.div`
|
|
13851
13855
|
${() => css`
|
|
13852
|
-
&.${rootClassName$
|
|
13856
|
+
&.${rootClassName$E} .full-width {
|
|
13853
13857
|
width: 100%;
|
|
13854
13858
|
}
|
|
13855
13859
|
`}
|
|
@@ -13858,7 +13862,7 @@ const StyledDatePicker = styled(DatePicker)`
|
|
|
13858
13862
|
${({
|
|
13859
13863
|
theme
|
|
13860
13864
|
}) => css`
|
|
13861
|
-
&.${rootClassName$
|
|
13865
|
+
&.${rootClassName$E} {
|
|
13862
13866
|
${pickerInputStyles(theme)};
|
|
13863
13867
|
|
|
13864
13868
|
.Mui-disabled.MuiInputBase-root,
|
|
@@ -13900,7 +13904,7 @@ const StyledPickersDay = styled(PickersDay)`
|
|
|
13900
13904
|
`}
|
|
13901
13905
|
`;
|
|
13902
13906
|
|
|
13903
|
-
const rootClassName$
|
|
13907
|
+
const rootClassName$D = 'dot-time-picker';
|
|
13904
13908
|
const containerClassName$1 = 'dot-time-picker-container';
|
|
13905
13909
|
const timePickerPopperClassName = 'dot-time-picker-popper';
|
|
13906
13910
|
const TIME_SELECTION_HEIGHT_SPACING = 34.5;
|
|
@@ -13920,7 +13924,7 @@ const StyledTimePicker = styled(TimePicker)`
|
|
|
13920
13924
|
${({
|
|
13921
13925
|
theme
|
|
13922
13926
|
}) => css`
|
|
13923
|
-
&.${rootClassName$
|
|
13927
|
+
&.${rootClassName$D} {
|
|
13924
13928
|
${pickerInputStyles(theme)};
|
|
13925
13929
|
|
|
13926
13930
|
.Mui-disabled.MuiInputBase-root,
|
|
@@ -13997,36 +14001,36 @@ const StyledTimePickerPopper = styled(Popper)`
|
|
|
13997
14001
|
`}
|
|
13998
14002
|
`;
|
|
13999
14003
|
|
|
14000
|
-
const rootClassName$
|
|
14004
|
+
const rootClassName$C = 'dot-form';
|
|
14001
14005
|
const StyledFormContainer = styled.div`
|
|
14002
14006
|
${({
|
|
14003
14007
|
theme
|
|
14004
14008
|
}) => css`
|
|
14005
|
-
&.${rootClassName$
|
|
14009
|
+
&.${rootClassName$C} {
|
|
14006
14010
|
margin: ${theme.spacing(3, 0)};
|
|
14007
14011
|
|
|
14008
|
-
.${rootClassName$
|
|
14009
|
-
.${rootClassName$
|
|
14010
|
-
.${rootClassName$
|
|
14012
|
+
.${rootClassName$R},
|
|
14013
|
+
.${rootClassName$T},
|
|
14014
|
+
.${rootClassName$1q},
|
|
14011
14015
|
.${rootSelectClassName},
|
|
14012
|
-
.${rootClassName$
|
|
14013
|
-
.${rootClassName$
|
|
14016
|
+
.${rootClassName$E},
|
|
14017
|
+
.${rootClassName$D} {
|
|
14014
14018
|
margin: ${theme.spacing(1, 0)};
|
|
14015
14019
|
}
|
|
14016
14020
|
|
|
14017
14021
|
.${wrapperClassName$2} {
|
|
14018
|
-
+ .${rootClassName$
|
|
14022
|
+
+ .${rootClassName$1q},
|
|
14019
14023
|
.${wrapperClassName$2}
|
|
14020
14024
|
+ .${rootSelectClassName},
|
|
14021
14025
|
.${wrapperClassName$2}
|
|
14022
|
-
+ .${rootClassName$
|
|
14026
|
+
+ .${rootClassName$E},
|
|
14023
14027
|
.${wrapperClassName$2}
|
|
14024
|
-
+ .${rootClassName$
|
|
14028
|
+
+ .${rootClassName$D} {
|
|
14025
14029
|
margin: ${theme.spacing(0, 0, 1, 0)};
|
|
14026
14030
|
}
|
|
14027
14031
|
|
|
14028
|
-
.${rootClassName$
|
|
14029
|
-
.${rootClassName$
|
|
14032
|
+
.${rootClassName$Q}, .${groupClassName} {
|
|
14033
|
+
.${rootClassName$T} {
|
|
14030
14034
|
margin: 0;
|
|
14031
14035
|
}
|
|
14032
14036
|
}
|
|
@@ -14041,7 +14045,7 @@ const DotForm = ({
|
|
|
14041
14045
|
'data-testid': dataTestId,
|
|
14042
14046
|
onSubmit
|
|
14043
14047
|
}) => {
|
|
14044
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14048
|
+
const rootClasses = useStylesWithRootClass(rootClassName$C, className);
|
|
14045
14049
|
return jsx("form", {
|
|
14046
14050
|
"aria-label": ariaLabel,
|
|
14047
14051
|
"data-testid": dataTestId,
|
|
@@ -14054,10 +14058,10 @@ const DotForm = ({
|
|
|
14054
14058
|
});
|
|
14055
14059
|
};
|
|
14056
14060
|
|
|
14057
|
-
const rootClassName$
|
|
14061
|
+
const rootClassName$B = 'dot-dynamic-form';
|
|
14058
14062
|
const StyledDynamicForm = styled(DotForm)`
|
|
14059
14063
|
${() => css`
|
|
14060
|
-
&.${rootClassName$
|
|
14064
|
+
&.${rootClassName$B} {
|
|
14061
14065
|
}
|
|
14062
14066
|
`}
|
|
14063
14067
|
`;
|
|
@@ -14237,12 +14241,12 @@ const checkIfFormDataValid = formState => {
|
|
|
14237
14241
|
return true;
|
|
14238
14242
|
};
|
|
14239
14243
|
|
|
14240
|
-
const rootClassName$
|
|
14244
|
+
const rootClassName$A = 'dot-progress-button';
|
|
14241
14245
|
const StyledProgressButton = styled(DotButton)`
|
|
14242
14246
|
${({
|
|
14243
14247
|
theme
|
|
14244
14248
|
}) => css`
|
|
14245
|
-
&.${rootClassName$
|
|
14249
|
+
&.${rootClassName$A} {
|
|
14246
14250
|
.hidden {
|
|
14247
14251
|
// hide children but preserve its space so that
|
|
14248
14252
|
// button's dimensions don't change
|
|
@@ -14267,7 +14271,7 @@ const DotProgressButton = ({
|
|
|
14267
14271
|
ariaLabel,
|
|
14268
14272
|
children,
|
|
14269
14273
|
className,
|
|
14270
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
14274
|
+
'data-pendoid': dataPendoId = rootClassName$A,
|
|
14271
14275
|
'data-testid': dataTestId,
|
|
14272
14276
|
disabled = false,
|
|
14273
14277
|
disableInteractive,
|
|
@@ -14281,7 +14285,7 @@ const DotProgressButton = ({
|
|
|
14281
14285
|
tooltip,
|
|
14282
14286
|
type = 'primary'
|
|
14283
14287
|
}) => {
|
|
14284
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14288
|
+
const rootClasses = useStylesWithRootClass(rootClassName$A, className);
|
|
14285
14289
|
const isButtonDisabled = disabled || isLoading;
|
|
14286
14290
|
const titleClasses = useStylesWithRootClass(isLoading ? 'hidden' : '');
|
|
14287
14291
|
const progressCircleSize = size === 'large' ? SPINNER_LARGE_SIZE : SPINNER_DEFAULT_SIZE;
|
|
@@ -14311,12 +14315,12 @@ const DotProgressButton = ({
|
|
|
14311
14315
|
});
|
|
14312
14316
|
};
|
|
14313
14317
|
|
|
14314
|
-
const rootClassName$
|
|
14318
|
+
const rootClassName$z = 'dot-radio';
|
|
14315
14319
|
const StyledRadioButton = styled(Radio)`
|
|
14316
14320
|
${({
|
|
14317
14321
|
theme
|
|
14318
14322
|
}) => css`
|
|
14319
|
-
&.${rootClassName$
|
|
14323
|
+
&.${rootClassName$z} {
|
|
14320
14324
|
padding: 8px;
|
|
14321
14325
|
|
|
14322
14326
|
svg {
|
|
@@ -14334,7 +14338,7 @@ function DotRadioButton({
|
|
|
14334
14338
|
ariaLabel,
|
|
14335
14339
|
checked,
|
|
14336
14340
|
className,
|
|
14337
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
14341
|
+
'data-pendoid': dataPendoId = rootClassName$T,
|
|
14338
14342
|
'data-testid': dataTestId,
|
|
14339
14343
|
disabled,
|
|
14340
14344
|
id,
|
|
@@ -14347,7 +14351,7 @@ function DotRadioButton({
|
|
|
14347
14351
|
size = 'medium',
|
|
14348
14352
|
value
|
|
14349
14353
|
}) {
|
|
14350
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14354
|
+
const rootClasses = useStylesWithRootClass(rootClassName$T, className);
|
|
14351
14355
|
const handleChange = event => {
|
|
14352
14356
|
onChange && onChange(event, event.target.value);
|
|
14353
14357
|
};
|
|
@@ -14355,7 +14359,7 @@ function DotRadioButton({
|
|
|
14355
14359
|
const radioControl = jsx(StyledRadioButton, {
|
|
14356
14360
|
checked: checked,
|
|
14357
14361
|
classes: {
|
|
14358
|
-
root: rootClassName$
|
|
14362
|
+
root: rootClassName$z
|
|
14359
14363
|
},
|
|
14360
14364
|
color: "primary",
|
|
14361
14365
|
"data-pendoid": dataPendoId,
|
|
@@ -14401,7 +14405,7 @@ const DotRadioGroup = ({
|
|
|
14401
14405
|
size = 'medium'
|
|
14402
14406
|
}) => {
|
|
14403
14407
|
const placement = `${placementClassName}${labelPlacement}`;
|
|
14404
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14408
|
+
const rootClasses = useStylesWithRootClass(rootClassName$R, className, placement);
|
|
14405
14409
|
const radioValue = value || defaultValue;
|
|
14406
14410
|
const [selectedValue, setSelectedValue] = useState(radioValue);
|
|
14407
14411
|
/* This will ensure that value can be updated from the outside */
|
|
@@ -14466,7 +14470,7 @@ const DotRadioGroup = ({
|
|
|
14466
14470
|
});
|
|
14467
14471
|
};
|
|
14468
14472
|
|
|
14469
|
-
const rootClassName$
|
|
14473
|
+
const rootClassName$y = 'dot-switch';
|
|
14470
14474
|
const StyledSwitch = styled(Switch)`
|
|
14471
14475
|
${({
|
|
14472
14476
|
theme
|
|
@@ -14495,7 +14499,7 @@ const DotSwitch = ({
|
|
|
14495
14499
|
checked,
|
|
14496
14500
|
className,
|
|
14497
14501
|
color,
|
|
14498
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
14502
|
+
'data-pendoid': dataPendoId = rootClassName$y,
|
|
14499
14503
|
'data-testid': dataTestId,
|
|
14500
14504
|
disabled = false,
|
|
14501
14505
|
id,
|
|
@@ -14505,7 +14509,7 @@ const DotSwitch = ({
|
|
|
14505
14509
|
onChange,
|
|
14506
14510
|
size = 'medium'
|
|
14507
14511
|
}) => {
|
|
14508
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14512
|
+
const rootClasses = useStylesWithRootClass(rootClassName$y, className);
|
|
14509
14513
|
const handleChange = event => {
|
|
14510
14514
|
onChange && onChange(event);
|
|
14511
14515
|
};
|
|
@@ -14535,7 +14539,7 @@ const DotSwitch = ({
|
|
|
14535
14539
|
tabIndex: 0
|
|
14536
14540
|
});
|
|
14537
14541
|
return jsx(StyledFormControlLabel, {
|
|
14538
|
-
className: rootClassName$
|
|
14542
|
+
className: rootClassName$T,
|
|
14539
14543
|
control: switchControl,
|
|
14540
14544
|
label: label,
|
|
14541
14545
|
labelPlacement: labelPlacement
|
|
@@ -14856,7 +14860,7 @@ const DotDynamicForm = ({
|
|
|
14856
14860
|
onChange,
|
|
14857
14861
|
onSubmit
|
|
14858
14862
|
}) => {
|
|
14859
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
14863
|
+
const rootClasses = useStylesWithRootClass(rootClassName$B, className);
|
|
14860
14864
|
// Memoize this operation so that is doesn't get executed each time this
|
|
14861
14865
|
// component re-renders
|
|
14862
14866
|
const initialFormState = useMemo(() => getInitialFormState(config, liveValidation), [config, liveValidation, getInitialFormState]);
|
|
@@ -15102,7 +15106,7 @@ const DotDynamicForm = ({
|
|
|
15102
15106
|
});
|
|
15103
15107
|
};
|
|
15104
15108
|
|
|
15105
|
-
const rootClassName$
|
|
15109
|
+
const rootClassName$x = 'dot-inline-edit';
|
|
15106
15110
|
const editModeClassName = 'dot-edit-mode';
|
|
15107
15111
|
const viewModeClassName = 'dot-view-mode';
|
|
15108
15112
|
const placeholderClassName = 'dot-placeholder';
|
|
@@ -15114,7 +15118,7 @@ const StyledInlineEdit = styled.div`
|
|
|
15114
15118
|
theme,
|
|
15115
15119
|
fullWidth
|
|
15116
15120
|
}) => css`
|
|
15117
|
-
&.${rootClassName$
|
|
15121
|
+
&.${rootClassName$x} {
|
|
15118
15122
|
align-items: center;
|
|
15119
15123
|
color: ${theme.palette.figma.typography.black};
|
|
15120
15124
|
display: ${fullWidth ? 'flex' : 'inline-flex'};
|
|
@@ -15328,7 +15332,7 @@ const DotInlineEdit = ({
|
|
|
15328
15332
|
bindings,
|
|
15329
15333
|
charactersLimit,
|
|
15330
15334
|
className,
|
|
15331
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
15335
|
+
'data-pendoid': dataPendoId = rootClassName$x,
|
|
15332
15336
|
'data-testid': dataTestId,
|
|
15333
15337
|
fullWidth = true,
|
|
15334
15338
|
hideActionButtons,
|
|
@@ -15364,7 +15368,7 @@ const DotInlineEdit = ({
|
|
|
15364
15368
|
}
|
|
15365
15369
|
}, [value]);
|
|
15366
15370
|
const isSaveDisabled = checkIfEmptyValue(inputValue);
|
|
15367
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15371
|
+
const rootClasses = useStylesWithRootClass(rootClassName$x, className, editing ? editModeClassName : '');
|
|
15368
15372
|
const handleShowTooltip = visible => {
|
|
15369
15373
|
if (!editing) {
|
|
15370
15374
|
setShowTooltip(visible);
|
|
@@ -15552,13 +15556,13 @@ const DotInlineEdit = ({
|
|
|
15552
15556
|
});
|
|
15553
15557
|
};
|
|
15554
15558
|
|
|
15555
|
-
const rootClassName$
|
|
15559
|
+
const rootClassName$w = 'dot-navigation-rail';
|
|
15556
15560
|
const StyledNavigationRail = styled.div`
|
|
15557
15561
|
${({
|
|
15558
15562
|
theme,
|
|
15559
15563
|
railItemPosition
|
|
15560
15564
|
}) => css`
|
|
15561
|
-
&.${rootClassName$
|
|
15565
|
+
&.${rootClassName$w} {
|
|
15562
15566
|
background: ${theme.palette.figma.neutral.elevated};
|
|
15563
15567
|
border-left: 1px solid ${theme.palette.figma.border.default};
|
|
15564
15568
|
display: flex;
|
|
@@ -15617,7 +15621,7 @@ const DotNavigationRail = ({
|
|
|
15617
15621
|
railItems,
|
|
15618
15622
|
selectedIndex = 0
|
|
15619
15623
|
}) => {
|
|
15620
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15624
|
+
const rootClasses = useStylesWithRootClass(rootClassName$w, className);
|
|
15621
15625
|
const [selectedItemIndex, setSelectedItemIndex] = useState(selectedIndex);
|
|
15622
15626
|
/* Used to change selected index programmatically from the consumer component */
|
|
15623
15627
|
useEffect(() => {
|
|
@@ -15668,12 +15672,12 @@ const DotNavigationRail = ({
|
|
|
15668
15672
|
});
|
|
15669
15673
|
};
|
|
15670
15674
|
|
|
15671
|
-
const rootClassName$
|
|
15675
|
+
const rootClassName$v = 'dot-skeleton';
|
|
15672
15676
|
const StyledSkeleton = styled(Skeleton)`
|
|
15673
15677
|
${({
|
|
15674
15678
|
theme
|
|
15675
15679
|
}) => css`
|
|
15676
|
-
&.${rootClassName$
|
|
15680
|
+
&.${rootClassName$v} {
|
|
15677
15681
|
background-color: ${theme.palette.figma.border.darker};
|
|
15678
15682
|
}
|
|
15679
15683
|
`}
|
|
@@ -15688,7 +15692,7 @@ const DotSkeleton = ({
|
|
|
15688
15692
|
width,
|
|
15689
15693
|
variant
|
|
15690
15694
|
}) => {
|
|
15691
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15695
|
+
const rootClasses = useStylesWithRootClass(rootClassName$v, className);
|
|
15692
15696
|
return jsx(StyledSkeleton, {
|
|
15693
15697
|
animation: "wave",
|
|
15694
15698
|
"aria-label": ariaLabel,
|
|
@@ -15703,12 +15707,12 @@ const DotSkeleton = ({
|
|
|
15703
15707
|
});
|
|
15704
15708
|
};
|
|
15705
15709
|
|
|
15706
|
-
const rootClassName$
|
|
15710
|
+
const rootClassName$u = 'dot-split-button-group';
|
|
15707
15711
|
const StyledSplitButtonGroup = styled(ButtonGroup)`
|
|
15708
15712
|
${({
|
|
15709
15713
|
theme
|
|
15710
15714
|
}) => css`
|
|
15711
|
-
&.${rootClassName$
|
|
15715
|
+
&.${rootClassName$u} {
|
|
15712
15716
|
&.outlined,
|
|
15713
15717
|
&.text {
|
|
15714
15718
|
.expand-button {
|
|
@@ -15774,7 +15778,7 @@ const DotSplitButton = ({
|
|
|
15774
15778
|
autoFocus = false,
|
|
15775
15779
|
ariaLabel,
|
|
15776
15780
|
className,
|
|
15777
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
15781
|
+
'data-pendoid': dataPendoId = rootClassName$u,
|
|
15778
15782
|
'data-testid': dataTestId,
|
|
15779
15783
|
defaultMainOptionKey,
|
|
15780
15784
|
disabled = false,
|
|
@@ -15790,7 +15794,7 @@ const DotSplitButton = ({
|
|
|
15790
15794
|
tooltipPlacement,
|
|
15791
15795
|
type = 'primary'
|
|
15792
15796
|
}) => {
|
|
15793
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
15797
|
+
const rootClasses = useStylesWithRootClass(rootClassName$u, className, type, disabled ? 'disabled' : '');
|
|
15794
15798
|
const [open, setOpen] = useState(false);
|
|
15795
15799
|
const anchorRef = useRef(null);
|
|
15796
15800
|
const hasEmptyOptions = options.length === 0;
|
|
@@ -15858,7 +15862,7 @@ const DotSplitButton = ({
|
|
|
15858
15862
|
});
|
|
15859
15863
|
};
|
|
15860
15864
|
|
|
15861
|
-
const rootClassName$
|
|
15865
|
+
const rootClassName$t = 'dot-stepper';
|
|
15862
15866
|
const stepListClassName = 'dot-stepper-list';
|
|
15863
15867
|
const contentClassName = 'dot-stepper-content';
|
|
15864
15868
|
const StyledStepper = styled.div`
|
|
@@ -15866,7 +15870,7 @@ const StyledStepper = styled.div`
|
|
|
15866
15870
|
theme,
|
|
15867
15871
|
offset
|
|
15868
15872
|
}) => css`
|
|
15869
|
-
&.${rootClassName$
|
|
15873
|
+
&.${rootClassName$t} {
|
|
15870
15874
|
display: flex;
|
|
15871
15875
|
align-items: flex-start;
|
|
15872
15876
|
padding: 0;
|
|
@@ -16181,7 +16185,7 @@ const DotStepper = ({
|
|
|
16181
16185
|
return ['left', 'right'].includes(stepsPosition) ? stepsPosition : 'left';
|
|
16182
16186
|
}
|
|
16183
16187
|
};
|
|
16184
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
16188
|
+
const rootClasses = useStylesWithRootClass(rootClassName$t, getStepsPosition(), className);
|
|
16185
16189
|
const stepContentClasses = displayInitialContent || displayFinalContent ? 'center-content' : '';
|
|
16186
16190
|
const stickyBottomClasses = useStylesWithRootClass('actions-container', isStickyBottom ? 'with-top-border' : '');
|
|
16187
16191
|
const actionsClasses = useStylesWithRootClass('actions', displayInitialContent || displayFinalContent ? 'center-actions' : '');
|
|
@@ -16399,12 +16403,12 @@ const DotStepper = ({
|
|
|
16399
16403
|
});
|
|
16400
16404
|
};
|
|
16401
16405
|
|
|
16402
|
-
const rootClassName$
|
|
16406
|
+
const rootClassName$s = 'dot-table-pagination-custom-actions';
|
|
16403
16407
|
const StyledTablePaginationCustomActions = styled.div`
|
|
16404
16408
|
${({
|
|
16405
16409
|
theme
|
|
16406
16410
|
}) => css`
|
|
16407
|
-
&.${rootClassName$
|
|
16411
|
+
&.${rootClassName$s} {
|
|
16408
16412
|
margin-left: ${theme.spacing(2.5)};
|
|
16409
16413
|
display: flex;
|
|
16410
16414
|
align-items: center;
|
|
@@ -16528,7 +16532,7 @@ const DotTablePaginationCustomActions = props => {
|
|
|
16528
16532
|
});
|
|
16529
16533
|
};
|
|
16530
16534
|
return jsxs(StyledTablePaginationCustomActions, {
|
|
16531
|
-
className: rootClassName$
|
|
16535
|
+
className: rootClassName$s,
|
|
16532
16536
|
children: [jsx(DotIconButton, {
|
|
16533
16537
|
ariaLabel: "previous page",
|
|
16534
16538
|
className: "page-control-button",
|
|
@@ -16575,7 +16579,7 @@ const DotTablePaginationCustomActions = props => {
|
|
|
16575
16579
|
});
|
|
16576
16580
|
};
|
|
16577
16581
|
|
|
16578
|
-
const rootClassName$
|
|
16582
|
+
const rootClassName$r = 'dot-table-pagination';
|
|
16579
16583
|
// TO-DO: Determine how to apply styles to standard popper element
|
|
16580
16584
|
const paginationItemClassName = 'dot-pagination-menu-item';
|
|
16581
16585
|
const StyledTablePagination = styled.div`
|
|
@@ -16583,7 +16587,7 @@ const StyledTablePagination = styled.div`
|
|
|
16583
16587
|
theme,
|
|
16584
16588
|
typography
|
|
16585
16589
|
}) => css`
|
|
16586
|
-
.${rootClassName$
|
|
16590
|
+
.${rootClassName$r} {
|
|
16587
16591
|
border-top: 1px solid ${theme.palette.figma.border.default};
|
|
16588
16592
|
|
|
16589
16593
|
.dot-caption,
|
|
@@ -16626,7 +16630,7 @@ const DotTablePagination = ({
|
|
|
16626
16630
|
showJumpToPageActionButton = false,
|
|
16627
16631
|
typography = 'subtitle2'
|
|
16628
16632
|
}) => {
|
|
16629
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
16633
|
+
const rootClasses = useStylesWithRootClass(rootClassName$r, className, showJumpToPageActionButton ? 'with-custom-actions' : '');
|
|
16630
16634
|
const handlePageChange = (event, newPage) => {
|
|
16631
16635
|
onPageChange && onPageChange(newPage);
|
|
16632
16636
|
};
|
|
@@ -16635,7 +16639,7 @@ const DotTablePagination = ({
|
|
|
16635
16639
|
};
|
|
16636
16640
|
return (/* Container is used to pass 'typography' prop to a styled component */
|
|
16637
16641
|
jsx(StyledTablePagination, {
|
|
16638
|
-
className: rootClassName$
|
|
16642
|
+
className: rootClassName$r,
|
|
16639
16643
|
typography: typography,
|
|
16640
16644
|
children: jsx(TablePagination, {
|
|
16641
16645
|
ActionsComponent: showJumpToPageActionButton ? DotTablePaginationCustomActions : undefined,
|
|
@@ -16662,14 +16666,14 @@ const DotTablePagination = ({
|
|
|
16662
16666
|
);
|
|
16663
16667
|
};
|
|
16664
16668
|
|
|
16665
|
-
const rootClassName$
|
|
16669
|
+
const rootClassName$q = 'dot-table';
|
|
16666
16670
|
const MULTISELECT_COLUMN_WIDTH = 52;
|
|
16667
16671
|
const COLLAPSIBLE_COLUMN_WIDTH = 42;
|
|
16668
16672
|
const StyledPaper$1 = styled(Paper)`
|
|
16669
16673
|
${({
|
|
16670
16674
|
theme
|
|
16671
16675
|
}) => css`
|
|
16672
|
-
&.${rootClassName$
|
|
16676
|
+
&.${rootClassName$q} {
|
|
16673
16677
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
16674
16678
|
border: 1px solid ${theme.palette.figma.border.default};
|
|
16675
16679
|
overflow: hidden;
|
|
@@ -16812,10 +16816,10 @@ const StyledMenu$1 = styled(DotMenu)`
|
|
|
16812
16816
|
}
|
|
16813
16817
|
`;
|
|
16814
16818
|
|
|
16815
|
-
const rootClassName$
|
|
16819
|
+
const rootClassName$p = 'dot-tbody';
|
|
16816
16820
|
const StyledTableBody = styled(TableBody)`
|
|
16817
16821
|
${() => css`
|
|
16818
|
-
&.${rootClassName$
|
|
16822
|
+
&.${rootClassName$p} {
|
|
16819
16823
|
tr:last-child td {
|
|
16820
16824
|
border-bottom: none;
|
|
16821
16825
|
}
|
|
@@ -17010,12 +17014,12 @@ function stableSort(array, comparator) {
|
|
|
17010
17014
|
return stabilizedThis.map(el => el[0]);
|
|
17011
17015
|
}
|
|
17012
17016
|
|
|
17013
|
-
const rootClassName$
|
|
17017
|
+
const rootClassName$o = 'dot-td';
|
|
17014
17018
|
const StyledTableCell = styled(TableCell)`
|
|
17015
17019
|
${({
|
|
17016
17020
|
theme
|
|
17017
17021
|
}) => css`
|
|
17018
|
-
&.${rootClassName$
|
|
17022
|
+
&.${rootClassName$o} {
|
|
17019
17023
|
padding-top: 0;
|
|
17020
17024
|
padding-bottom: 0;
|
|
17021
17025
|
|
|
@@ -17110,7 +17114,7 @@ const DotBodyCell = ({
|
|
|
17110
17114
|
const isOverflowing = actionTableCellWidth > (wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current.clientWidth);
|
|
17111
17115
|
setShowMenu(isOverflowing);
|
|
17112
17116
|
};
|
|
17113
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17117
|
+
const rootClasses = useStylesWithRootClass(rootClassName$o, className, noWrap && 'noWrap', Array.isArray(value) && 'actionItems');
|
|
17114
17118
|
const getTableCellValue = () => {
|
|
17115
17119
|
if (Array.isArray(value)) {
|
|
17116
17120
|
return jsx("div", {
|
|
@@ -17178,13 +17182,13 @@ const EmptyDotRow = ({
|
|
|
17178
17182
|
const TABLE_TYPOGRAPHY_VARIANT = 'body1';
|
|
17179
17183
|
const TABLE_DEFAULT_SKELETON_ROWS = 4;
|
|
17180
17184
|
|
|
17181
|
-
const rootClassName$
|
|
17185
|
+
const rootClassName$n = 'dot-th-checkbox';
|
|
17182
17186
|
const styledTableHeaderCheckboxElement = (isCell = true) => {
|
|
17183
17187
|
return styled(isCell ? TableCell : 'div')`
|
|
17184
17188
|
${({
|
|
17185
17189
|
theme
|
|
17186
17190
|
}) => css`
|
|
17187
|
-
&.${rootClassName$
|
|
17191
|
+
&.${rootClassName$n} {
|
|
17188
17192
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
17189
17193
|
padding: ${theme.spacing(0, 1)};
|
|
17190
17194
|
width: ${theme.spacing(5)};
|
|
@@ -17212,7 +17216,7 @@ const DotHeaderCheckboxCell = ({
|
|
|
17212
17216
|
isFromTableSelectionToolbar,
|
|
17213
17217
|
multiSelectHeader
|
|
17214
17218
|
}) => {
|
|
17215
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17219
|
+
const rootClasses = useStylesWithRootClass(rootClassName$n, className, isFromTableSelectionToolbar ? 'table-selection-toolbar-checkbox' : '');
|
|
17216
17220
|
const [multiSelectState, setMultiSelectState] = useState('unchecked');
|
|
17217
17221
|
const {
|
|
17218
17222
|
onCheckAllChange,
|
|
@@ -17262,12 +17266,12 @@ const DotHeaderCheckboxCell = ({
|
|
|
17262
17266
|
});
|
|
17263
17267
|
};
|
|
17264
17268
|
|
|
17265
|
-
const rootClassName$
|
|
17269
|
+
const rootClassName$m = 'dot-th';
|
|
17266
17270
|
const StyledTableHeaderCell = styled(TableCell)`
|
|
17267
17271
|
${({
|
|
17268
17272
|
theme
|
|
17269
17273
|
}) => css`
|
|
17270
|
-
&.${rootClassName$
|
|
17274
|
+
&.${rootClassName$m} {
|
|
17271
17275
|
background: ${theme.palette.figma.background.level0.componentsBackground};
|
|
17272
17276
|
|
|
17273
17277
|
&.MuiTableCell-alignCenter > span.MuiTableSortLabel-root {
|
|
@@ -17307,7 +17311,7 @@ const DotHeaderCell = ({
|
|
|
17307
17311
|
value,
|
|
17308
17312
|
width
|
|
17309
17313
|
}) => {
|
|
17310
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17314
|
+
const rootClasses = useStylesWithRootClass(rootClassName$m, pinned ? 'dot-pinned-cell' : '', className);
|
|
17311
17315
|
const headerTitle = isString$2(value) ? value : null;
|
|
17312
17316
|
const formattedValue = getFormattedTableCellValue(value, typography);
|
|
17313
17317
|
const getCellValue = () => {
|
|
@@ -17398,12 +17402,12 @@ const DotHeaderRow = ({
|
|
|
17398
17402
|
});
|
|
17399
17403
|
};
|
|
17400
17404
|
|
|
17401
|
-
const rootClassName$
|
|
17405
|
+
const rootClassName$l = 'dot-tr';
|
|
17402
17406
|
const StyledTableRowStyles = styled(TableRow)`
|
|
17403
17407
|
${({
|
|
17404
17408
|
theme
|
|
17405
17409
|
}) => css`
|
|
17406
|
-
&.${rootClassName$
|
|
17410
|
+
&.${rootClassName$l} {
|
|
17407
17411
|
&.selected {
|
|
17408
17412
|
&,
|
|
17409
17413
|
.dot-td.dot-pinned-cell,
|
|
@@ -17629,12 +17633,12 @@ const ExpandCollapseCell = ({
|
|
|
17629
17633
|
});
|
|
17630
17634
|
};
|
|
17631
17635
|
|
|
17632
|
-
const rootClassName$
|
|
17636
|
+
const rootClassName$k = 'dot-td-checkbox';
|
|
17633
17637
|
const StyledTableBodyCheckboxCell = styled(TableCell)`
|
|
17634
17638
|
${({
|
|
17635
17639
|
theme
|
|
17636
17640
|
}) => css`
|
|
17637
|
-
&.${rootClassName$
|
|
17641
|
+
&.${rootClassName$k} {
|
|
17638
17642
|
padding: ${theme.spacing(0, 1)};
|
|
17639
17643
|
width: ${theme.spacing(5)};
|
|
17640
17644
|
|
|
@@ -17653,7 +17657,7 @@ const DotBodyCheckboxCell = ({
|
|
|
17653
17657
|
onChange,
|
|
17654
17658
|
rowId
|
|
17655
17659
|
}) => {
|
|
17656
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17660
|
+
const rootClasses = useStylesWithRootClass(rootClassName$k, className);
|
|
17657
17661
|
const [isCheckboxChecked, setIsCheckboxChecked] = useState(isChecked);
|
|
17658
17662
|
/** This effect is used when 'checked' status is changed from the outside */
|
|
17659
17663
|
useEffect(() => {
|
|
@@ -17706,7 +17710,7 @@ const DotTableRow = ({
|
|
|
17706
17710
|
selectedTableRowIds
|
|
17707
17711
|
} = multiSelectBody || {};
|
|
17708
17712
|
const isCheckboxChecked = selectedTableRowIds && selectedTableRowIds.includes(id) || false;
|
|
17709
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17713
|
+
const rootClasses = useStylesWithRootClass(rootClassName$l, isCheckboxChecked ? 'selected' : undefined, className);
|
|
17710
17714
|
const renderCheckboxCell = () => {
|
|
17711
17715
|
return jsx(DotBodyCheckboxCell, {
|
|
17712
17716
|
ariaLabel: "Click to select this row",
|
|
@@ -17827,7 +17831,7 @@ const DotTableBody = ({
|
|
|
17827
17831
|
return jsxs(Fragment, {
|
|
17828
17832
|
children: [jsx(StyledTableBody, {
|
|
17829
17833
|
classes: {
|
|
17830
|
-
root: rootClassName$
|
|
17834
|
+
root: rootClassName$p
|
|
17831
17835
|
},
|
|
17832
17836
|
children: getTableBodyRows()
|
|
17833
17837
|
}), jsx(StyledMenu$1, {
|
|
@@ -17842,12 +17846,12 @@ const DotTableBody = ({
|
|
|
17842
17846
|
});
|
|
17843
17847
|
};
|
|
17844
17848
|
|
|
17845
|
-
const rootClassName$
|
|
17849
|
+
const rootClassName$j = 'dot-table-selection-toolbar';
|
|
17846
17850
|
const StyledTableSelectionToolbar = styled(DotActionToolbar)`
|
|
17847
17851
|
${({
|
|
17848
17852
|
theme
|
|
17849
17853
|
}) => css`
|
|
17850
|
-
&.${rootClassName$
|
|
17854
|
+
&.${rootClassName$j} {
|
|
17851
17855
|
display: flex;
|
|
17852
17856
|
align-items: center;
|
|
17853
17857
|
justify-content: space-between;
|
|
@@ -17902,7 +17906,7 @@ const DotTableSelectionToolbar = ({
|
|
|
17902
17906
|
multiSelectHeader,
|
|
17903
17907
|
selectedRowsNumber
|
|
17904
17908
|
}) => {
|
|
17905
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17909
|
+
const rootClasses = useStylesWithRootClass(rootClassName$j, className);
|
|
17906
17910
|
return jsxs(StyledTableSelectionToolbar, {
|
|
17907
17911
|
ariaLabel: ariaLabel,
|
|
17908
17912
|
className: rootClasses,
|
|
@@ -17988,7 +17992,7 @@ const DotTable = ({
|
|
|
17988
17992
|
setPage(page);
|
|
17989
17993
|
}
|
|
17990
17994
|
}, [page]);
|
|
17991
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
17995
|
+
const rootClasses = useStylesWithRootClass(rootClassName$q, className, loading ? 'loading' : '', showMultiselectOverTableHeaderRow ? 'with-multiselect-over-table-header' : '', showMultiselectOverTableHeaderRow && !selectedRowsNumber ? 'hidden-multiselect' : '');
|
|
17992
17996
|
const updateData = (newOrder, newOrderBy, newPage, newRowsPerPage) => {
|
|
17993
17997
|
const newData = stableSort(data, getComparator(newOrder, newOrderBy));
|
|
17994
17998
|
setPageData(newRowsPerPage ? newData.slice(newPage * newRowsPerPage, newPage * newRowsPerPage + newRowsPerPage) : newData);
|
|
@@ -18191,7 +18195,7 @@ const DotTableAction = ({
|
|
|
18191
18195
|
});
|
|
18192
18196
|
};
|
|
18193
18197
|
|
|
18194
|
-
const rootClassName$
|
|
18198
|
+
const rootClassName$i = 'dot-table-actions';
|
|
18195
18199
|
const TableActionsContainer = styled.div`
|
|
18196
18200
|
overflow: hidden;
|
|
18197
18201
|
text-overflow: clip;
|
|
@@ -18281,7 +18285,7 @@ const DotTableActions = ({
|
|
|
18281
18285
|
};
|
|
18282
18286
|
return jsxs(Fragment, {
|
|
18283
18287
|
children: [jsxs(TableActionsContainer, {
|
|
18284
|
-
className: rootClassName$
|
|
18288
|
+
className: rootClassName$i,
|
|
18285
18289
|
ref: wrapperRef,
|
|
18286
18290
|
children: [!showMenu && renderTableActions(), (showMenu || actions.length > 2) && jsx(DotIconButton, {
|
|
18287
18291
|
ariaLabel: "more options",
|
|
@@ -18305,12 +18309,12 @@ const DotTableActions = ({
|
|
|
18305
18309
|
});
|
|
18306
18310
|
};
|
|
18307
18311
|
|
|
18308
|
-
const rootClassName$
|
|
18312
|
+
const rootClassName$h = 'dot-tabs';
|
|
18309
18313
|
const StyledTabs = styled(Tabs)`
|
|
18310
18314
|
${({
|
|
18311
18315
|
theme
|
|
18312
18316
|
}) => css`
|
|
18313
|
-
&.${rootClassName$
|
|
18317
|
+
&.${rootClassName$h} {
|
|
18314
18318
|
&.MuiTabs-root {
|
|
18315
18319
|
width: 100%;
|
|
18316
18320
|
}
|
|
@@ -18363,7 +18367,7 @@ const DotTabs = ({
|
|
|
18363
18367
|
centered = false,
|
|
18364
18368
|
className,
|
|
18365
18369
|
color,
|
|
18366
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
18370
|
+
'data-pendoid': dataPendoId = rootClassName$h,
|
|
18367
18371
|
'data-testid': dataTestId,
|
|
18368
18372
|
initialValue = 0,
|
|
18369
18373
|
onChange,
|
|
@@ -18372,7 +18376,7 @@ const DotTabs = ({
|
|
|
18372
18376
|
variant = 'standard'
|
|
18373
18377
|
}) => {
|
|
18374
18378
|
const [value, setValue] = useState(initialValue);
|
|
18375
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18379
|
+
const rootClasses = useStylesWithRootClass(rootClassName$h, className);
|
|
18376
18380
|
useEffect(() => {
|
|
18377
18381
|
if (color) {
|
|
18378
18382
|
console.warn('DEPRECATED: `color` prop is deprecated in `<DotTabs>`, please remove any usage of it in your application.');
|
|
@@ -18426,9 +18430,9 @@ const DotTabs = ({
|
|
|
18426
18430
|
});
|
|
18427
18431
|
};
|
|
18428
18432
|
|
|
18429
|
-
const rootClassName$
|
|
18430
|
-
const containerClassName = `${rootClassName$
|
|
18431
|
-
const dropZoneClassName = `${rootClassName$
|
|
18433
|
+
const rootClassName$g = 'dot-file-upload';
|
|
18434
|
+
const containerClassName = `${rootClassName$g}-container`;
|
|
18435
|
+
const dropZoneClassName = `${rootClassName$g}-drop-zone`;
|
|
18432
18436
|
const StyledFileUploadContainer = styled.div`
|
|
18433
18437
|
${({
|
|
18434
18438
|
theme
|
|
@@ -18448,7 +18452,7 @@ const StyledFileUpload = styled.div`
|
|
|
18448
18452
|
${({
|
|
18449
18453
|
theme
|
|
18450
18454
|
}) => css`
|
|
18451
|
-
&.${rootClassName$
|
|
18455
|
+
&.${rootClassName$g}.${dropZoneClassName} {
|
|
18452
18456
|
align-items: center;
|
|
18453
18457
|
background: ${theme.palette.figma.background.level0.bckgGray};
|
|
18454
18458
|
border: 2px dashed ${theme.palette.figma.border.defaultButton};
|
|
@@ -18480,12 +18484,12 @@ const StyledFileUpload = styled.div`
|
|
|
18480
18484
|
`}
|
|
18481
18485
|
`;
|
|
18482
18486
|
|
|
18483
|
-
const rootClassName$
|
|
18487
|
+
const rootClassName$f = 'dot-file-list-item';
|
|
18484
18488
|
const StyledFileListItem = styled(StyledListItem)`
|
|
18485
18489
|
${({
|
|
18486
18490
|
theme
|
|
18487
18491
|
}) => css`
|
|
18488
|
-
&.${rootClassName$
|
|
18492
|
+
&.${rootClassName$f} {
|
|
18489
18493
|
border-bottom: 1px solid ${theme.palette.figma.border.default};
|
|
18490
18494
|
&:hover {
|
|
18491
18495
|
cursor: pointer;
|
|
@@ -18497,7 +18501,7 @@ const StyledFileListItem = styled(StyledListItem)`
|
|
|
18497
18501
|
outline: none;
|
|
18498
18502
|
}
|
|
18499
18503
|
|
|
18500
|
-
&.file-success:not(:hover, :focus-visible) .${rootClassName$
|
|
18504
|
+
&.file-success:not(:hover, :focus-visible) .${rootClassName$f}-end-icon {
|
|
18501
18505
|
i:before {
|
|
18502
18506
|
color: ${theme.palette.figma.success.normal};
|
|
18503
18507
|
}
|
|
@@ -18507,7 +18511,7 @@ const StyledFileListItem = styled(StyledListItem)`
|
|
|
18507
18511
|
}
|
|
18508
18512
|
}
|
|
18509
18513
|
|
|
18510
|
-
&.file-error:not(:hover, :focus-visible) .${rootClassName$
|
|
18514
|
+
&.file-error:not(:hover, :focus-visible) .${rootClassName$f}-end-icon {
|
|
18511
18515
|
i:before,
|
|
18512
18516
|
.MuiListItemText-secondary {
|
|
18513
18517
|
color: ${theme.palette.figma.destructive.normal};
|
|
@@ -18549,7 +18553,7 @@ const DotFileListItem = ({
|
|
|
18549
18553
|
onKeyPress,
|
|
18550
18554
|
tabIndex = 0
|
|
18551
18555
|
}) => {
|
|
18552
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18556
|
+
const rootClasses = useStylesWithRootClass(rootClassName$f, className, error ? 'file-error' : 'file-success');
|
|
18553
18557
|
const defaultIcon = error ? 'error-solid' : 'check-solid';
|
|
18554
18558
|
const [endIcon, setEndIcon] = useState(defaultIcon);
|
|
18555
18559
|
const handleItemClick = clickedFile => _event => onClick === null || onClick === void 0 ? void 0 : onClick(clickedFile);
|
|
@@ -18582,7 +18586,7 @@ const DotFileListItem = ({
|
|
|
18582
18586
|
})]
|
|
18583
18587
|
}), jsx(DotIconButton, {
|
|
18584
18588
|
ariaLabel: "delete file",
|
|
18585
|
-
className: `${rootClassName$
|
|
18589
|
+
className: `${rootClassName$f}-end-icon`,
|
|
18586
18590
|
"data-testid": dataTestId && `${dataTestId}-end-icon`,
|
|
18587
18591
|
disabled: disableDelete,
|
|
18588
18592
|
iconId: endIcon,
|
|
@@ -18706,7 +18710,7 @@ const DotFileUpload = ({
|
|
|
18706
18710
|
buttonOnly = false,
|
|
18707
18711
|
className,
|
|
18708
18712
|
contentErrors,
|
|
18709
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
18713
|
+
'data-pendoid': dataPendoId = rootClassName$g,
|
|
18710
18714
|
'data-testid': dataTestId,
|
|
18711
18715
|
disabled,
|
|
18712
18716
|
hideFilesList,
|
|
@@ -18719,7 +18723,7 @@ const DotFileUpload = ({
|
|
|
18719
18723
|
const [uploadedFiles, setUploadedFiles] = useState([]);
|
|
18720
18724
|
const [hasMaxFilesError, setHasMaxFilesError] = useState(false);
|
|
18721
18725
|
const isUploadDisabled = disabled || maxFiles && uploadedFiles.length >= maxFiles;
|
|
18722
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18726
|
+
const rootClasses = useStylesWithRootClass(rootClassName$g, className, !buttonOnly ? dropZoneClassName : '', isUploadDisabled ? 'disabled' : '');
|
|
18723
18727
|
const maxFilesClasses = useStylesWithRootClass('dot-max-files-message', hasMaxFilesError ? 'dot-max-files-reached' : '');
|
|
18724
18728
|
const allowMultiple = maxFiles === undefined || maxFiles > 1;
|
|
18725
18729
|
const setNewlyUploadedFiles = (acceptedFiles, fileRejections) => {
|
|
@@ -18791,12 +18795,12 @@ const DotFileUpload = ({
|
|
|
18791
18795
|
});
|
|
18792
18796
|
};
|
|
18793
18797
|
|
|
18794
|
-
const rootClassName$
|
|
18798
|
+
const rootClassName$e = 'dot-divider';
|
|
18795
18799
|
const StyledDivider = styled(Divider)`
|
|
18796
18800
|
${({
|
|
18797
18801
|
theme
|
|
18798
18802
|
}) => css`
|
|
18799
|
-
&.${rootClassName$
|
|
18803
|
+
&.${rootClassName$e} {
|
|
18800
18804
|
color: ${theme.palette.figma.border.darker};
|
|
18801
18805
|
|
|
18802
18806
|
.MuiDivider-light {
|
|
@@ -18816,7 +18820,7 @@ const DotDivider = ({
|
|
|
18816
18820
|
orientation,
|
|
18817
18821
|
variant
|
|
18818
18822
|
}) => {
|
|
18819
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18823
|
+
const rootClasses = useStylesWithRootClass(rootClassName$e, className);
|
|
18820
18824
|
return jsx(StyledDivider, {
|
|
18821
18825
|
absolute: absolute,
|
|
18822
18826
|
"aria-label": ariaLabel,
|
|
@@ -18845,7 +18849,7 @@ const DotPopper = ({
|
|
|
18845
18849
|
placement
|
|
18846
18850
|
}) => {
|
|
18847
18851
|
const [arrowRef, setArrowRef] = useState(null);
|
|
18848
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18852
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1f, className);
|
|
18849
18853
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18850
18854
|
const handleClickAway = event => {
|
|
18851
18855
|
if (onClickAway && (!anchorEl || !anchorEl.contains(event.currentTarget))) {
|
|
@@ -18910,14 +18914,14 @@ const getListItemLayout = listItems => {
|
|
|
18910
18914
|
}));
|
|
18911
18915
|
};
|
|
18912
18916
|
|
|
18913
|
-
const rootClassName$
|
|
18917
|
+
const rootClassName$d = 'dot-draggable-list';
|
|
18914
18918
|
const listItemClassName = 'dot-draggable-list-item';
|
|
18915
18919
|
const StyledDraggableList = styled.div`
|
|
18916
18920
|
${({
|
|
18917
18921
|
theme,
|
|
18918
18922
|
draggableHandle
|
|
18919
18923
|
}) => css`
|
|
18920
|
-
&.${rootClassName$
|
|
18924
|
+
&.${rootClassName$d} {
|
|
18921
18925
|
padding: ${theme.spacing(1, 0)};
|
|
18922
18926
|
position: relative;
|
|
18923
18927
|
|
|
@@ -18952,7 +18956,7 @@ const ListGridLayout = WidthProvider(GridLayout);
|
|
|
18952
18956
|
const DotDraggableList = ({
|
|
18953
18957
|
ariaLabel,
|
|
18954
18958
|
className,
|
|
18955
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
18959
|
+
'data-pendoid': dataPendoId = rootClassName$d,
|
|
18956
18960
|
'data-testid': dataTestId,
|
|
18957
18961
|
disableDrag,
|
|
18958
18962
|
draggableHandle,
|
|
@@ -18961,7 +18965,7 @@ const DotDraggableList = ({
|
|
|
18961
18965
|
rowHeight = DEFAULT_LIST_ITEM_HEIGHT,
|
|
18962
18966
|
width = DEFAULT_LIST_WIDTH
|
|
18963
18967
|
}) => {
|
|
18964
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
18968
|
+
const rootClasses = useStylesWithRootClass(rootClassName$d, className, draggableHandle ? 'with-draggable-handle' : '');
|
|
18965
18969
|
const listItemClasses = useStylesWithRootClass(listItemClassName, draggableHandle && !disableDrag ? 'with-handle-grab-cursor' : '', draggableHandle || disableDrag ? 'with-default-cursor' : '');
|
|
18966
18970
|
const listWidth = isNumber(width) ? `${width}px` : width;
|
|
18967
18971
|
const [orderedItems, setOrderedItems] = useState([]);
|
|
@@ -52499,7 +52503,7 @@ cjs.exports.DraggableCore = DraggableCore;
|
|
|
52499
52503
|
var cjsExports = cjs.exports;
|
|
52500
52504
|
var Draggable$1 = /*@__PURE__*/getDefaultExportFromCjs(cjsExports);
|
|
52501
52505
|
|
|
52502
|
-
const rootClassName$
|
|
52506
|
+
const rootClassName$c = 'dot-draggable-window';
|
|
52503
52507
|
const defaultWidth = '600px';
|
|
52504
52508
|
const defaultHeight = '324px';
|
|
52505
52509
|
const StyledPaper = styled(Paper)`
|
|
@@ -52508,7 +52512,7 @@ const StyledPaper = styled(Paper)`
|
|
|
52508
52512
|
$maxHeight,
|
|
52509
52513
|
$maxWidth
|
|
52510
52514
|
}) => css`
|
|
52511
|
-
&.${rootClassName$
|
|
52515
|
+
&.${rootClassName$c} {
|
|
52512
52516
|
max-width: ${$maxWidth !== null && $maxWidth !== void 0 ? $maxWidth : defaultWidth};
|
|
52513
52517
|
max-height: ${$maxHeight !== null && $maxHeight !== void 0 ? $maxHeight : defaultHeight};
|
|
52514
52518
|
${$maxWidth ? '' : `width: ${defaultWidth};`}
|
|
@@ -52546,7 +52550,7 @@ const StyledPaper = styled(Paper)`
|
|
|
52546
52550
|
const DotDraggableWindow = ({
|
|
52547
52551
|
ariaLabel,
|
|
52548
52552
|
anchorEl,
|
|
52549
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
52553
|
+
'data-pendoid': dataPendoId = rootClassName$c,
|
|
52550
52554
|
'data-testid': dataTestId,
|
|
52551
52555
|
className,
|
|
52552
52556
|
children,
|
|
@@ -52555,7 +52559,7 @@ const DotDraggableWindow = ({
|
|
|
52555
52559
|
onClose,
|
|
52556
52560
|
title
|
|
52557
52561
|
}) => {
|
|
52558
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
52562
|
+
const rootClasses = useStylesWithRootClass(rootClassName$c, className);
|
|
52559
52563
|
const nodeRef = useRef(null);
|
|
52560
52564
|
return jsx(Draggable$1, {
|
|
52561
52565
|
bounds: "body",
|
|
@@ -52597,12 +52601,12 @@ const DotDraggableWindow = ({
|
|
|
52597
52601
|
});
|
|
52598
52602
|
};
|
|
52599
52603
|
|
|
52600
|
-
const rootClassName$
|
|
52604
|
+
const rootClassName$b = 'dot-linear-progress';
|
|
52601
52605
|
const StyledLinearProgress = styled(LinearProgress)`
|
|
52602
52606
|
${({
|
|
52603
52607
|
theme
|
|
52604
52608
|
}) => css`
|
|
52605
|
-
&.${rootClassName$
|
|
52609
|
+
&.${rootClassName$b} {
|
|
52606
52610
|
&.MuiLinearProgress-colorError {
|
|
52607
52611
|
color: ${theme.palette.figma.inProgress.error};
|
|
52608
52612
|
}
|
|
@@ -52634,7 +52638,7 @@ const DotLinearProgress = ({
|
|
|
52634
52638
|
valueBuffer,
|
|
52635
52639
|
variant = 'indeterminate'
|
|
52636
52640
|
}) => {
|
|
52637
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
52641
|
+
const rootClasses = useStylesWithRootClass(rootClassName$b, className);
|
|
52638
52642
|
useEffect(() => {
|
|
52639
52643
|
if (!ariaLabel) {
|
|
52640
52644
|
console.warn('a11y: DotLinearProgress must have an ariaLabel to describe the progress bar');
|
|
@@ -52685,7 +52689,7 @@ const DotDatePicker = ({
|
|
|
52685
52689
|
autoFocus = false,
|
|
52686
52690
|
className,
|
|
52687
52691
|
closeOnSelect = true,
|
|
52688
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
52692
|
+
'data-pendoid': dataPendoId = rootClassName$E,
|
|
52689
52693
|
'data-testid': dataTestId,
|
|
52690
52694
|
defaultValue,
|
|
52691
52695
|
disableOpenPicker,
|
|
@@ -52726,7 +52730,7 @@ const DotDatePicker = ({
|
|
|
52726
52730
|
const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
|
|
52727
52731
|
const isInputReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
|
|
52728
52732
|
const inputRef = useRef(null);
|
|
52729
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
52733
|
+
const rootClasses = useStylesWithRootClass(rootClassName$E, className, isInputReadOnly ? 'read-only' : '');
|
|
52730
52734
|
const containerClasses = useStylesWithRootClass(containerClassName$2, fullWidth ? 'full-width' : '', className);
|
|
52731
52735
|
const focusInput = ref => {
|
|
52732
52736
|
setTimeout(() => {
|
|
@@ -52947,7 +52951,7 @@ const DotTimePicker = ({
|
|
|
52947
52951
|
ariaLabel,
|
|
52948
52952
|
autoFocus = false,
|
|
52949
52953
|
className,
|
|
52950
|
-
'data-pendoid': dataPendoId = rootClassName$
|
|
52954
|
+
'data-pendoid': dataPendoId = rootClassName$D,
|
|
52951
52955
|
'data-testid': dataTestId,
|
|
52952
52956
|
defaultValue,
|
|
52953
52957
|
disableOpenPicker = false,
|
|
@@ -52979,7 +52983,7 @@ const DotTimePicker = ({
|
|
|
52979
52983
|
const hasValueWithoutChangeHandler = value !== undefined && onChange === undefined;
|
|
52980
52984
|
const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
|
|
52981
52985
|
const isComponentReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
|
|
52982
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
52986
|
+
const rootClasses = useStylesWithRootClass(rootClassName$D, className, isComponentReadOnly ? 'read-only' : '');
|
|
52983
52987
|
const containerClasses = useStylesWithRootClass(containerClassName$1, fullWidth ? 'full-width' : '', className);
|
|
52984
52988
|
const inputRef = useRef(null);
|
|
52985
52989
|
const [isPickerOpened, setIsPickerOpened] = useState(false);
|
|
@@ -53275,13 +53279,13 @@ const DotTimePicker = ({
|
|
|
53275
53279
|
});
|
|
53276
53280
|
};
|
|
53277
53281
|
|
|
53278
|
-
const rootClassName$
|
|
53282
|
+
const rootClassName$a = 'dot-carousel';
|
|
53279
53283
|
const StyledCarousel = styled.div`
|
|
53280
53284
|
${({
|
|
53281
53285
|
backgroundColor,
|
|
53282
53286
|
theme
|
|
53283
53287
|
}) => css`
|
|
53284
|
-
&.${rootClassName$
|
|
53288
|
+
&.${rootClassName$a} {
|
|
53285
53289
|
display: flex;
|
|
53286
53290
|
flex-direction: column;
|
|
53287
53291
|
justify-content: space-between;
|
|
@@ -53381,7 +53385,7 @@ const DotCarousel = ({
|
|
|
53381
53385
|
progressIndicator,
|
|
53382
53386
|
showPagesButtons = true
|
|
53383
53387
|
}) => {
|
|
53384
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
53388
|
+
const rootClasses = useStylesWithRootClass(rootClassName$a, className, backgroundColor ? 'with-background-color' : '');
|
|
53385
53389
|
const rightNavigationButtonClasses = useStylesWithRootClass('carousel-right-arrow', displayNavigationButtons);
|
|
53386
53390
|
const leftNavigationButtonClasses = useStylesWithRootClass('carousel-left-arrow', displayNavigationButtons);
|
|
53387
53391
|
const createUuids = () => {
|
|
@@ -53532,13 +53536,13 @@ const DotCarousel = ({
|
|
|
53532
53536
|
});
|
|
53533
53537
|
};
|
|
53534
53538
|
|
|
53535
|
-
const rootClassName$
|
|
53539
|
+
const rootClassName$9 = 'dot-sticky-with-border';
|
|
53536
53540
|
const StyledStickyWithBorder = styled.div`
|
|
53537
53541
|
${({
|
|
53538
53542
|
pinnedStickyBorder,
|
|
53539
53543
|
unpinnedStickyBorder
|
|
53540
53544
|
}) => css`
|
|
53541
|
-
&.${rootClassName$
|
|
53545
|
+
&.${rootClassName$9} {
|
|
53542
53546
|
position: sticky;
|
|
53543
53547
|
top: -1px;
|
|
53544
53548
|
|
|
@@ -53566,7 +53570,7 @@ const DotStickyWithBorder = ({
|
|
|
53566
53570
|
}) => {
|
|
53567
53571
|
const [isPinned, setIsPinned] = useState(false);
|
|
53568
53572
|
const ref = useRef();
|
|
53569
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
53573
|
+
const rootClasses = useStylesWithRootClass(rootClassName$9, className, isPinned ? 'pinned' : 'unpinned');
|
|
53570
53574
|
useEffect(() => {
|
|
53571
53575
|
const element = ref.current;
|
|
53572
53576
|
const observer = new IntersectionObserver(([e]) => setIsPinned(e.intersectionRatio < 1), {
|
|
@@ -53588,18 +53592,18 @@ const DotStickyWithBorder = ({
|
|
|
53588
53592
|
});
|
|
53589
53593
|
};
|
|
53590
53594
|
|
|
53591
|
-
const rootClassName$
|
|
53595
|
+
const rootClassName$8 = 'dot--board';
|
|
53592
53596
|
const classNames$5 = {
|
|
53593
|
-
root: rootClassName$
|
|
53594
|
-
spacingNormal: `${rootClassName$
|
|
53595
|
-
spacingDense: `${rootClassName$
|
|
53596
|
-
loading: `${rootClassName$
|
|
53597
|
+
root: rootClassName$8,
|
|
53598
|
+
spacingNormal: `${rootClassName$8}-normal`,
|
|
53599
|
+
spacingDense: `${rootClassName$8}-dense`,
|
|
53600
|
+
loading: `${rootClassName$8}-loading`
|
|
53597
53601
|
};
|
|
53598
53602
|
const StyledBoard = styled.div`
|
|
53599
53603
|
${({
|
|
53600
53604
|
theme
|
|
53601
53605
|
}) => css`
|
|
53602
|
-
&.${rootClassName$
|
|
53606
|
+
&.${rootClassName$8} {
|
|
53603
53607
|
display: flex;
|
|
53604
53608
|
overflow-x: auto;
|
|
53605
53609
|
flex: 1;
|
|
@@ -53607,7 +53611,7 @@ const StyledBoard = styled.div`
|
|
|
53607
53611
|
}
|
|
53608
53612
|
|
|
53609
53613
|
@media (max-width: 650px) {
|
|
53610
|
-
&.${rootClassName$
|
|
53614
|
+
&.${rootClassName$8} {
|
|
53611
53615
|
justify-content: center;
|
|
53612
53616
|
}
|
|
53613
53617
|
}
|
|
@@ -53708,18 +53712,18 @@ const Board = React__default.forwardRef(({
|
|
|
53708
53712
|
});
|
|
53709
53713
|
});
|
|
53710
53714
|
|
|
53711
|
-
const rootClassName$
|
|
53715
|
+
const rootClassName$7 = 'dot--board-column';
|
|
53712
53716
|
const classNames$4 = {
|
|
53713
|
-
root: rootClassName$
|
|
53714
|
-
spacingNormal: `${rootClassName$
|
|
53715
|
-
spacingDense: `${rootClassName$
|
|
53716
|
-
collapse: `${rootClassName$
|
|
53717
|
+
root: rootClassName$7,
|
|
53718
|
+
spacingNormal: `${rootClassName$7}-normal`,
|
|
53719
|
+
spacingDense: `${rootClassName$7}-dense`,
|
|
53720
|
+
collapse: `${rootClassName$7}-collapse`
|
|
53717
53721
|
};
|
|
53718
53722
|
const StyledBoardColumn = styled.div`
|
|
53719
53723
|
${({
|
|
53720
53724
|
theme
|
|
53721
53725
|
}) => css`
|
|
53722
|
-
&.${rootClassName$
|
|
53726
|
+
&.${rootClassName$7} {
|
|
53723
53727
|
display: flex;
|
|
53724
53728
|
flex-direction: column;
|
|
53725
53729
|
overflow: hidden;
|
|
@@ -53810,13 +53814,13 @@ const BoardColumn = React__default.forwardRef(({
|
|
|
53810
53814
|
});
|
|
53811
53815
|
});
|
|
53812
53816
|
|
|
53813
|
-
const rootClassName$
|
|
53817
|
+
const rootClassName$6 = 'dot--board-column-header';
|
|
53814
53818
|
const classNames$3 = {
|
|
53815
|
-
root: rootClassName$
|
|
53816
|
-
spacingNormal: `${rootClassName$
|
|
53817
|
-
spacingDense: `${rootClassName$
|
|
53818
|
-
colorBar: `${rootClassName$
|
|
53819
|
-
title: `${rootClassName$
|
|
53819
|
+
root: rootClassName$6,
|
|
53820
|
+
spacingNormal: `${rootClassName$6}-normal`,
|
|
53821
|
+
spacingDense: `${rootClassName$6}-dense`,
|
|
53822
|
+
colorBar: `${rootClassName$6}-color-bar`,
|
|
53823
|
+
title: `${rootClassName$6}-title`
|
|
53820
53824
|
};
|
|
53821
53825
|
const StyledBoardColumnHeader = styled.div`
|
|
53822
53826
|
${({
|
|
@@ -53884,11 +53888,11 @@ const BoardColumnHeader = ({
|
|
|
53884
53888
|
});
|
|
53885
53889
|
};
|
|
53886
53890
|
|
|
53887
|
-
const rootClassName$
|
|
53891
|
+
const rootClassName$5 = 'dot--board-column-items';
|
|
53888
53892
|
const classNames$2 = {
|
|
53889
|
-
root: rootClassName$
|
|
53890
|
-
spacingNormal: `${rootClassName$
|
|
53891
|
-
spacingDense: `${rootClassName$
|
|
53893
|
+
root: rootClassName$5,
|
|
53894
|
+
spacingNormal: `${rootClassName$5}-normal`,
|
|
53895
|
+
spacingDense: `${rootClassName$5}-dense`
|
|
53892
53896
|
};
|
|
53893
53897
|
const StyledBoardColumnItems = styled.div`
|
|
53894
53898
|
${({
|
|
@@ -53940,11 +53944,11 @@ const BoardColumnItems = ({
|
|
|
53940
53944
|
});
|
|
53941
53945
|
};
|
|
53942
53946
|
|
|
53943
|
-
const rootClassName$
|
|
53947
|
+
const rootClassName$4 = 'dot--board-column-action-bar';
|
|
53944
53948
|
const classNames$1 = {
|
|
53945
|
-
root: rootClassName$
|
|
53946
|
-
spacingNormal: `${rootClassName$
|
|
53947
|
-
spacingDense: `${rootClassName$
|
|
53949
|
+
root: rootClassName$4,
|
|
53950
|
+
spacingNormal: `${rootClassName$4}-normal`,
|
|
53951
|
+
spacingDense: `${rootClassName$4}-dense`
|
|
53948
53952
|
};
|
|
53949
53953
|
const StyledBoardColumnActionBar = styled(DotActionToolbar)`
|
|
53950
53954
|
${({
|
|
@@ -54015,13 +54019,13 @@ const BoardColumnCollapse = ({
|
|
|
54015
54019
|
return useMemo(() => collapsed ? children : null, [children, collapsed]);
|
|
54016
54020
|
};
|
|
54017
54021
|
|
|
54018
|
-
const rootClassName$
|
|
54022
|
+
const rootClassName$3 = 'dot--board-column-header';
|
|
54019
54023
|
const classNames = {
|
|
54020
|
-
root: rootClassName$
|
|
54021
|
-
spacingNormal: `${rootClassName$
|
|
54022
|
-
spacingDense: `${rootClassName$
|
|
54023
|
-
title: `${rootClassName$
|
|
54024
|
-
text: `${rootClassName$
|
|
54024
|
+
root: rootClassName$3,
|
|
54025
|
+
spacingNormal: `${rootClassName$3}-normal`,
|
|
54026
|
+
spacingDense: `${rootClassName$3}-dense`,
|
|
54027
|
+
title: `${rootClassName$3}-title`,
|
|
54028
|
+
text: `${rootClassName$3}-text`
|
|
54025
54029
|
};
|
|
54026
54030
|
const StyledBoardColumnSummary = styled.div`
|
|
54027
54031
|
${({
|
|
@@ -54083,12 +54087,12 @@ const BoardColumnSummary = ({
|
|
|
54083
54087
|
});
|
|
54084
54088
|
};
|
|
54085
54089
|
|
|
54086
|
-
const rootClassName$
|
|
54090
|
+
const rootClassName$2 = 'dot-search';
|
|
54087
54091
|
const StyledSearch = styled(DotInputText)`
|
|
54088
54092
|
${({
|
|
54089
54093
|
theme
|
|
54090
54094
|
}) => css`
|
|
54091
|
-
&.${rootClassName$
|
|
54095
|
+
&.${rootClassName$2} {
|
|
54092
54096
|
&.with-value .MuiInputBase-root {
|
|
54093
54097
|
background-color: ${theme.palette.figma.primary.light};
|
|
54094
54098
|
|
|
@@ -54131,7 +54135,7 @@ const DotSearch = _a => {
|
|
|
54131
54135
|
value
|
|
54132
54136
|
} = _a,
|
|
54133
54137
|
rest = __rest(_a, ["ariaLabel", "className", 'data-testid', "disabled", "hasDebounce", "id", "name", "onSearch", "onClear", "placeholder", "value"]);
|
|
54134
|
-
const rootClasses = useStylesWithRootClass(rootClassName$
|
|
54138
|
+
const rootClasses = useStylesWithRootClass(rootClassName$2, className, value ? 'with-value' : '');
|
|
54135
54139
|
return jsx(StyledSearch, Object.assign({}, rest, {
|
|
54136
54140
|
"aria-label": ariaLabel,
|
|
54137
54141
|
className: rootClasses,
|
|
@@ -54150,12 +54154,12 @@ const DotSearch = _a => {
|
|
|
54150
54154
|
}));
|
|
54151
54155
|
};
|
|
54152
54156
|
|
|
54153
|
-
const rootClassName = 'dot-toggle-switch';
|
|
54157
|
+
const rootClassName$1 = 'dot-toggle-switch';
|
|
54154
54158
|
const StyledToggleSwitch = styled(Stack)`
|
|
54155
54159
|
${({
|
|
54156
54160
|
theme
|
|
54157
54161
|
}) => css`
|
|
54158
|
-
&.${rootClassName} {
|
|
54162
|
+
&.${rootClassName$1} {
|
|
54159
54163
|
gap: ${theme.spacing(2)};
|
|
54160
54164
|
cursor: pointer;
|
|
54161
54165
|
|
|
@@ -54209,7 +54213,7 @@ const StyledToggleSwitch = styled(Stack)`
|
|
|
54209
54213
|
const DotToggleSwitch = ({
|
|
54210
54214
|
ariaLabel,
|
|
54211
54215
|
className,
|
|
54212
|
-
'data-pendoid': dataPendoId = rootClassName,
|
|
54216
|
+
'data-pendoid': dataPendoId = rootClassName$1,
|
|
54213
54217
|
'data-testid': dataTestId,
|
|
54214
54218
|
disabled = false,
|
|
54215
54219
|
label,
|
|
@@ -54219,7 +54223,7 @@ const DotToggleSwitch = ({
|
|
|
54219
54223
|
}) => {
|
|
54220
54224
|
const toggleOptions = options.slice(0, 2);
|
|
54221
54225
|
const isChecked = toggleOptions[1].value === value;
|
|
54222
|
-
const rootClasses = useStylesWithRootClass(rootClassName, className, disabled ? 'dot-disabled' : '');
|
|
54226
|
+
const rootClasses = useStylesWithRootClass(rootClassName$1, className, disabled ? 'dot-disabled' : '');
|
|
54223
54227
|
const toggleValue = () => {
|
|
54224
54228
|
const [firstOption, secondOption] = toggleOptions;
|
|
54225
54229
|
const newValue = value === firstOption.value ? secondOption.value : firstOption.value;
|
|
@@ -54272,4 +54276,1313 @@ const DotToggleSwitch = ({
|
|
|
54272
54276
|
});
|
|
54273
54277
|
};
|
|
54274
54278
|
|
|
54275
|
-
|
|
54279
|
+
function _extends() {
|
|
54280
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
54281
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
54282
|
+
var source = arguments[i];
|
|
54283
|
+
for (var key in source) {
|
|
54284
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
54285
|
+
target[key] = source[key];
|
|
54286
|
+
}
|
|
54287
|
+
}
|
|
54288
|
+
}
|
|
54289
|
+
return target;
|
|
54290
|
+
};
|
|
54291
|
+
return _extends.apply(this, arguments);
|
|
54292
|
+
}
|
|
54293
|
+
|
|
54294
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
54295
|
+
if (source == null) return {};
|
|
54296
|
+
var target = {};
|
|
54297
|
+
var sourceKeys = Object.keys(source);
|
|
54298
|
+
var key, i;
|
|
54299
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
54300
|
+
key = sourceKeys[i];
|
|
54301
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
54302
|
+
target[key] = source[key];
|
|
54303
|
+
}
|
|
54304
|
+
return target;
|
|
54305
|
+
}
|
|
54306
|
+
|
|
54307
|
+
var RGB_MAX = 255;
|
|
54308
|
+
var SV_MAX = 100;
|
|
54309
|
+
/**
|
|
54310
|
+
* ```js
|
|
54311
|
+
* rgbaToHsva({ r: 255, g: 255, b: 255, a: 1 }) //=> { h: 0, s: 0, v: 100, a: 1 }
|
|
54312
|
+
* ```
|
|
54313
|
+
*/
|
|
54314
|
+
var rgbaToHsva = _ref => {
|
|
54315
|
+
var {
|
|
54316
|
+
r,
|
|
54317
|
+
g,
|
|
54318
|
+
b,
|
|
54319
|
+
a
|
|
54320
|
+
} = _ref;
|
|
54321
|
+
var max = Math.max(r, g, b);
|
|
54322
|
+
var delta = max - Math.min(r, g, b);
|
|
54323
|
+
|
|
54324
|
+
// prettier-ignore
|
|
54325
|
+
var hh = delta ? max === r ? (g - b) / delta : max === g ? 2 + (b - r) / delta : 4 + (r - g) / delta : 0;
|
|
54326
|
+
return {
|
|
54327
|
+
h: 60 * (hh < 0 ? hh + 6 : hh),
|
|
54328
|
+
s: max ? delta / max * SV_MAX : 0,
|
|
54329
|
+
v: max / RGB_MAX * SV_MAX,
|
|
54330
|
+
a
|
|
54331
|
+
};
|
|
54332
|
+
};
|
|
54333
|
+
var hsvaToHslaString = hsva => {
|
|
54334
|
+
var {
|
|
54335
|
+
h,
|
|
54336
|
+
s,
|
|
54337
|
+
l,
|
|
54338
|
+
a
|
|
54339
|
+
} = hsvaToHsla(hsva);
|
|
54340
|
+
return "hsla(" + h + ", " + s + "%, " + l + "%, " + a + ")";
|
|
54341
|
+
};
|
|
54342
|
+
var hsvaToHsla = _ref5 => {
|
|
54343
|
+
var {
|
|
54344
|
+
h,
|
|
54345
|
+
s,
|
|
54346
|
+
v,
|
|
54347
|
+
a
|
|
54348
|
+
} = _ref5;
|
|
54349
|
+
var hh = (200 - s) * v / SV_MAX;
|
|
54350
|
+
return {
|
|
54351
|
+
h,
|
|
54352
|
+
s: hh > 0 && hh < 200 ? s * v / SV_MAX / (hh <= SV_MAX ? hh : 200 - hh) * SV_MAX : 0,
|
|
54353
|
+
l: hh / 2,
|
|
54354
|
+
a
|
|
54355
|
+
};
|
|
54356
|
+
};
|
|
54357
|
+
var rgbToHex = _ref7 => {
|
|
54358
|
+
var {
|
|
54359
|
+
r,
|
|
54360
|
+
g,
|
|
54361
|
+
b
|
|
54362
|
+
} = _ref7;
|
|
54363
|
+
var bin = r << 16 | g << 8 | b;
|
|
54364
|
+
return "#" + (h => new Array(7 - h.length).join('0') + h)(bin.toString(16));
|
|
54365
|
+
};
|
|
54366
|
+
var rgbaToHexa = _ref8 => {
|
|
54367
|
+
var {
|
|
54368
|
+
r,
|
|
54369
|
+
g,
|
|
54370
|
+
b,
|
|
54371
|
+
a
|
|
54372
|
+
} = _ref8;
|
|
54373
|
+
var alpha = typeof a === 'number' && (a * 255 | 1 << 8).toString(16).slice(1);
|
|
54374
|
+
return "" + rgbToHex({
|
|
54375
|
+
r,
|
|
54376
|
+
g,
|
|
54377
|
+
b
|
|
54378
|
+
}) + (alpha ? alpha : '');
|
|
54379
|
+
};
|
|
54380
|
+
var hexToHsva = hex => rgbaToHsva(hexToRgba(hex));
|
|
54381
|
+
var hexToRgba = hex => {
|
|
54382
|
+
var htemp = hex.replace('#', '');
|
|
54383
|
+
if (/^#?/.test(hex) && htemp.length === 3) {
|
|
54384
|
+
hex = "#" + htemp.charAt(0) + htemp.charAt(0) + htemp.charAt(1) + htemp.charAt(1) + htemp.charAt(2) + htemp.charAt(2);
|
|
54385
|
+
}
|
|
54386
|
+
var reg = new RegExp("[A-Za-z0-9]{2}", 'g');
|
|
54387
|
+
var [r, g, b = 0, a] = hex.match(reg).map(v => parseInt(v, 16));
|
|
54388
|
+
return {
|
|
54389
|
+
r,
|
|
54390
|
+
g,
|
|
54391
|
+
b,
|
|
54392
|
+
a: (a != null ? a : 255) / RGB_MAX
|
|
54393
|
+
};
|
|
54394
|
+
};
|
|
54395
|
+
|
|
54396
|
+
/**
|
|
54397
|
+
* Converts HSVA to RGBA. Based on formula from https://en.wikipedia.org/wiki/HSL_and_HSV
|
|
54398
|
+
* @param color HSVA color as an array [0-360, 0-1, 0-1, 0-1]
|
|
54399
|
+
*/
|
|
54400
|
+
var hsvaToRgba = _ref9 => {
|
|
54401
|
+
var {
|
|
54402
|
+
h,
|
|
54403
|
+
s,
|
|
54404
|
+
v,
|
|
54405
|
+
a
|
|
54406
|
+
} = _ref9;
|
|
54407
|
+
var _h = h / 60,
|
|
54408
|
+
_s = s / SV_MAX,
|
|
54409
|
+
_v = v / SV_MAX,
|
|
54410
|
+
hi = Math.floor(_h) % 6;
|
|
54411
|
+
var f = _h - Math.floor(_h),
|
|
54412
|
+
_p = RGB_MAX * _v * (1 - _s),
|
|
54413
|
+
_q = RGB_MAX * _v * (1 - _s * f),
|
|
54414
|
+
_t = RGB_MAX * _v * (1 - _s * (1 - f));
|
|
54415
|
+
_v *= RGB_MAX;
|
|
54416
|
+
var rgba = {};
|
|
54417
|
+
switch (hi) {
|
|
54418
|
+
case 0:
|
|
54419
|
+
rgba.r = _v;
|
|
54420
|
+
rgba.g = _t;
|
|
54421
|
+
rgba.b = _p;
|
|
54422
|
+
break;
|
|
54423
|
+
case 1:
|
|
54424
|
+
rgba.r = _q;
|
|
54425
|
+
rgba.g = _v;
|
|
54426
|
+
rgba.b = _p;
|
|
54427
|
+
break;
|
|
54428
|
+
case 2:
|
|
54429
|
+
rgba.r = _p;
|
|
54430
|
+
rgba.g = _v;
|
|
54431
|
+
rgba.b = _t;
|
|
54432
|
+
break;
|
|
54433
|
+
case 3:
|
|
54434
|
+
rgba.r = _p;
|
|
54435
|
+
rgba.g = _q;
|
|
54436
|
+
rgba.b = _v;
|
|
54437
|
+
break;
|
|
54438
|
+
case 4:
|
|
54439
|
+
rgba.r = _t;
|
|
54440
|
+
rgba.g = _p;
|
|
54441
|
+
rgba.b = _v;
|
|
54442
|
+
break;
|
|
54443
|
+
case 5:
|
|
54444
|
+
rgba.r = _v;
|
|
54445
|
+
rgba.g = _p;
|
|
54446
|
+
rgba.b = _q;
|
|
54447
|
+
break;
|
|
54448
|
+
}
|
|
54449
|
+
rgba.r = Math.round(rgba.r);
|
|
54450
|
+
rgba.g = Math.round(rgba.g);
|
|
54451
|
+
rgba.b = Math.round(rgba.b);
|
|
54452
|
+
return _extends({}, rgba, {
|
|
54453
|
+
a
|
|
54454
|
+
});
|
|
54455
|
+
};
|
|
54456
|
+
var hsvaToRgbaString = hsva => {
|
|
54457
|
+
var {
|
|
54458
|
+
r,
|
|
54459
|
+
g,
|
|
54460
|
+
b,
|
|
54461
|
+
a
|
|
54462
|
+
} = hsvaToRgba(hsva);
|
|
54463
|
+
return "rgba(" + r + ", " + g + ", " + b + ", " + a + ")";
|
|
54464
|
+
};
|
|
54465
|
+
var rgbaToRgb = _ref0 => {
|
|
54466
|
+
var {
|
|
54467
|
+
r,
|
|
54468
|
+
g,
|
|
54469
|
+
b
|
|
54470
|
+
} = _ref0;
|
|
54471
|
+
return {
|
|
54472
|
+
r,
|
|
54473
|
+
g,
|
|
54474
|
+
b
|
|
54475
|
+
};
|
|
54476
|
+
};
|
|
54477
|
+
var hslaToHsl = _ref1 => {
|
|
54478
|
+
var {
|
|
54479
|
+
h,
|
|
54480
|
+
s,
|
|
54481
|
+
l
|
|
54482
|
+
} = _ref1;
|
|
54483
|
+
return {
|
|
54484
|
+
h,
|
|
54485
|
+
s,
|
|
54486
|
+
l
|
|
54487
|
+
};
|
|
54488
|
+
};
|
|
54489
|
+
var hsvaToHex = hsva => rgbToHex(hsvaToRgba(hsva));
|
|
54490
|
+
var hsvaToHsv = _ref10 => {
|
|
54491
|
+
var {
|
|
54492
|
+
h,
|
|
54493
|
+
s,
|
|
54494
|
+
v
|
|
54495
|
+
} = _ref10;
|
|
54496
|
+
return {
|
|
54497
|
+
h,
|
|
54498
|
+
s,
|
|
54499
|
+
v
|
|
54500
|
+
};
|
|
54501
|
+
};
|
|
54502
|
+
|
|
54503
|
+
/**
|
|
54504
|
+
* Converts RGB to XY. Based on formula from https://developers.meethue.com/develop/application-design-guidance/color-conversion-formulas-rgb-to-xy-and-back/
|
|
54505
|
+
* @param color RGB color as an array [0-255, 0-255, 0-255]
|
|
54506
|
+
*/
|
|
54507
|
+
var rgbToXY = _ref12 => {
|
|
54508
|
+
var {
|
|
54509
|
+
r,
|
|
54510
|
+
g,
|
|
54511
|
+
b
|
|
54512
|
+
} = _ref12;
|
|
54513
|
+
var translateColor = function translateColor(color) {
|
|
54514
|
+
return color <= 0.04045 ? color / 12.92 : Math.pow((color + 0.055) / 1.055, 2.4);
|
|
54515
|
+
};
|
|
54516
|
+
var red = translateColor(r / 255);
|
|
54517
|
+
var green = translateColor(g / 255);
|
|
54518
|
+
var blue = translateColor(b / 255);
|
|
54519
|
+
var xyz = {};
|
|
54520
|
+
xyz.x = red * 0.4124 + green * 0.3576 + blue * 0.1805;
|
|
54521
|
+
xyz.y = red * 0.2126 + green * 0.7152 + blue * 0.0722;
|
|
54522
|
+
xyz.bri = red * 0.0193 + green * 0.1192 + blue * 0.9505;
|
|
54523
|
+
return xyz;
|
|
54524
|
+
};
|
|
54525
|
+
var color = str => {
|
|
54526
|
+
var rgb;
|
|
54527
|
+
var hsl;
|
|
54528
|
+
var hsv;
|
|
54529
|
+
var rgba;
|
|
54530
|
+
var hsla;
|
|
54531
|
+
var hsva;
|
|
54532
|
+
var xy;
|
|
54533
|
+
var hex;
|
|
54534
|
+
var hexa;
|
|
54535
|
+
if (typeof str === 'string' && validHex$1(str)) {
|
|
54536
|
+
hsva = hexToHsva(str);
|
|
54537
|
+
hex = str;
|
|
54538
|
+
} else if (typeof str !== 'string') {
|
|
54539
|
+
hsva = str;
|
|
54540
|
+
}
|
|
54541
|
+
if (hsva) {
|
|
54542
|
+
hsv = hsvaToHsv(hsva);
|
|
54543
|
+
hsla = hsvaToHsla(hsva);
|
|
54544
|
+
rgba = hsvaToRgba(hsva);
|
|
54545
|
+
hexa = rgbaToHexa(rgba);
|
|
54546
|
+
hex = hsvaToHex(hsva);
|
|
54547
|
+
hsl = hslaToHsl(hsla);
|
|
54548
|
+
rgb = rgbaToRgb(rgba);
|
|
54549
|
+
xy = rgbToXY(rgb);
|
|
54550
|
+
}
|
|
54551
|
+
return {
|
|
54552
|
+
rgb,
|
|
54553
|
+
hsl,
|
|
54554
|
+
hsv,
|
|
54555
|
+
rgba,
|
|
54556
|
+
hsla,
|
|
54557
|
+
hsva,
|
|
54558
|
+
hex,
|
|
54559
|
+
hexa,
|
|
54560
|
+
xy
|
|
54561
|
+
};
|
|
54562
|
+
};
|
|
54563
|
+
var validHex$1 = hex => /^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(hex);
|
|
54564
|
+
|
|
54565
|
+
// Saves incoming handler to the ref in order to avoid "useCallback hell"
|
|
54566
|
+
function useEventCallback(handler) {
|
|
54567
|
+
var callbackRef = useRef(handler);
|
|
54568
|
+
useEffect(() => {
|
|
54569
|
+
callbackRef.current = handler;
|
|
54570
|
+
});
|
|
54571
|
+
return useCallback((value, event) => callbackRef.current && callbackRef.current(value, event), []);
|
|
54572
|
+
}
|
|
54573
|
+
|
|
54574
|
+
// Check if an event was triggered by touch
|
|
54575
|
+
var isTouch = event => 'touches' in event;
|
|
54576
|
+
|
|
54577
|
+
// Browsers introduced an intervention, making touch events passive by default.
|
|
54578
|
+
// This workaround removes `preventDefault` call from the touch handlers.
|
|
54579
|
+
// https://github.com/facebook/react/issues/19651
|
|
54580
|
+
var preventDefaultMove = event => {
|
|
54581
|
+
!isTouch(event) && event.preventDefault && event.preventDefault();
|
|
54582
|
+
};
|
|
54583
|
+
// Clamps a value between an upper and lower bound.
|
|
54584
|
+
// We use ternary operators because it makes the minified code
|
|
54585
|
+
// 2 times shorter then `Math.min(Math.max(a,b),c)`
|
|
54586
|
+
var clamp = function clamp(number, min, max) {
|
|
54587
|
+
if (min === void 0) {
|
|
54588
|
+
min = 0;
|
|
54589
|
+
}
|
|
54590
|
+
if (max === void 0) {
|
|
54591
|
+
max = 1;
|
|
54592
|
+
}
|
|
54593
|
+
return number > max ? max : number < min ? min : number;
|
|
54594
|
+
};
|
|
54595
|
+
// Returns a relative position of the pointer inside the node's bounding box
|
|
54596
|
+
var getRelativePosition = (node, event) => {
|
|
54597
|
+
var rect = node.getBoundingClientRect();
|
|
54598
|
+
|
|
54599
|
+
// Get user's pointer position from `touches` array if it's a `TouchEvent`
|
|
54600
|
+
var pointer = isTouch(event) ? event.touches[0] : event;
|
|
54601
|
+
return {
|
|
54602
|
+
left: clamp((pointer.pageX - (rect.left + window.pageXOffset)) / rect.width),
|
|
54603
|
+
top: clamp((pointer.pageY - (rect.top + window.pageYOffset)) / rect.height),
|
|
54604
|
+
width: rect.width,
|
|
54605
|
+
height: rect.height,
|
|
54606
|
+
x: pointer.pageX - (rect.left + window.pageXOffset),
|
|
54607
|
+
y: pointer.pageY - (rect.top + window.pageYOffset)
|
|
54608
|
+
};
|
|
54609
|
+
};
|
|
54610
|
+
|
|
54611
|
+
var _excluded$8 = ["prefixCls", "className", "onMove", "onDown"];
|
|
54612
|
+
var Interactive = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
54613
|
+
var {
|
|
54614
|
+
prefixCls = 'w-color-interactive',
|
|
54615
|
+
className,
|
|
54616
|
+
onMove,
|
|
54617
|
+
onDown
|
|
54618
|
+
} = props,
|
|
54619
|
+
reset = _objectWithoutPropertiesLoose(props, _excluded$8);
|
|
54620
|
+
var container = useRef(null);
|
|
54621
|
+
var hasTouched = useRef(false);
|
|
54622
|
+
var [isDragging, setDragging] = useState(false);
|
|
54623
|
+
var onMoveCallback = useEventCallback(onMove);
|
|
54624
|
+
var onKeyCallback = useEventCallback(onDown);
|
|
54625
|
+
|
|
54626
|
+
// Prevent mobile browsers from handling mouse events (conflicting with touch ones).
|
|
54627
|
+
// If we detected a touch interaction before, we prefer reacting to touch events only.
|
|
54628
|
+
var isValid = event => {
|
|
54629
|
+
if (hasTouched.current && !isTouch(event)) return false;
|
|
54630
|
+
hasTouched.current = isTouch(event);
|
|
54631
|
+
return true;
|
|
54632
|
+
};
|
|
54633
|
+
var handleMove = useCallback(event => {
|
|
54634
|
+
preventDefaultMove(event);
|
|
54635
|
+
if (!container.current) return;
|
|
54636
|
+
var isDown = isTouch(event) ? event.touches.length > 0 : event.buttons > 0;
|
|
54637
|
+
if (!isDown) {
|
|
54638
|
+
setDragging(false);
|
|
54639
|
+
return;
|
|
54640
|
+
}
|
|
54641
|
+
onMoveCallback == null || onMoveCallback(getRelativePosition(container.current, event), event);
|
|
54642
|
+
}, [onMoveCallback]);
|
|
54643
|
+
var handleMoveEnd = useCallback(() => setDragging(false), []);
|
|
54644
|
+
var toggleDocumentEvents = useCallback(state => {
|
|
54645
|
+
if (state) {
|
|
54646
|
+
window.addEventListener(hasTouched.current ? 'touchmove' : 'mousemove', handleMove);
|
|
54647
|
+
window.addEventListener(hasTouched.current ? 'touchend' : 'mouseup', handleMoveEnd);
|
|
54648
|
+
} else {
|
|
54649
|
+
window.removeEventListener('mousemove', handleMove);
|
|
54650
|
+
window.removeEventListener('mouseup', handleMoveEnd);
|
|
54651
|
+
window.removeEventListener('touchmove', handleMove);
|
|
54652
|
+
window.removeEventListener('touchend', handleMoveEnd);
|
|
54653
|
+
}
|
|
54654
|
+
}, [handleMove, handleMoveEnd]);
|
|
54655
|
+
useEffect(() => {
|
|
54656
|
+
toggleDocumentEvents(isDragging);
|
|
54657
|
+
return () => {
|
|
54658
|
+
toggleDocumentEvents(false);
|
|
54659
|
+
};
|
|
54660
|
+
}, [isDragging, handleMove, handleMoveEnd, toggleDocumentEvents]);
|
|
54661
|
+
var handleMoveStart = useCallback(event => {
|
|
54662
|
+
var activeEl = document.activeElement;
|
|
54663
|
+
activeEl == null || activeEl.blur();
|
|
54664
|
+
preventDefaultMove(event.nativeEvent);
|
|
54665
|
+
if (!isValid(event.nativeEvent)) return;
|
|
54666
|
+
if (!container.current) return;
|
|
54667
|
+
onKeyCallback == null || onKeyCallback(getRelativePosition(container.current, event.nativeEvent), event.nativeEvent);
|
|
54668
|
+
setDragging(true);
|
|
54669
|
+
}, [onKeyCallback]);
|
|
54670
|
+
return /*#__PURE__*/jsx("div", _extends({}, reset, {
|
|
54671
|
+
className: [prefixCls, className || ''].filter(Boolean).join(' '),
|
|
54672
|
+
style: _extends({}, reset.style, {
|
|
54673
|
+
touchAction: 'none'
|
|
54674
|
+
}),
|
|
54675
|
+
ref: container,
|
|
54676
|
+
tabIndex: 0,
|
|
54677
|
+
onMouseDown: handleMoveStart,
|
|
54678
|
+
onTouchStart: handleMoveStart
|
|
54679
|
+
}));
|
|
54680
|
+
});
|
|
54681
|
+
Interactive.displayName = 'Interactive';
|
|
54682
|
+
var Interactive$1 = Interactive;
|
|
54683
|
+
|
|
54684
|
+
var Pointer$1 = _ref => {
|
|
54685
|
+
var {
|
|
54686
|
+
className,
|
|
54687
|
+
color,
|
|
54688
|
+
left,
|
|
54689
|
+
top,
|
|
54690
|
+
prefixCls
|
|
54691
|
+
} = _ref;
|
|
54692
|
+
var style = {
|
|
54693
|
+
position: 'absolute',
|
|
54694
|
+
top,
|
|
54695
|
+
left
|
|
54696
|
+
};
|
|
54697
|
+
var stylePointer = {
|
|
54698
|
+
'--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',
|
|
54699
|
+
width: 6,
|
|
54700
|
+
height: 6,
|
|
54701
|
+
transform: 'translate(-3px, -3px)',
|
|
54702
|
+
boxShadow: 'var(--saturation-pointer-box-shadow)',
|
|
54703
|
+
borderRadius: '50%',
|
|
54704
|
+
backgroundColor: color
|
|
54705
|
+
};
|
|
54706
|
+
return useMemo(() => /*#__PURE__*/jsx("div", {
|
|
54707
|
+
className: prefixCls + "-pointer " + (className || ''),
|
|
54708
|
+
style: style,
|
|
54709
|
+
children: /*#__PURE__*/jsx("div", {
|
|
54710
|
+
className: prefixCls + "-fill",
|
|
54711
|
+
style: stylePointer
|
|
54712
|
+
})
|
|
54713
|
+
}), [top, left, color, className, prefixCls]);
|
|
54714
|
+
};
|
|
54715
|
+
|
|
54716
|
+
var _excluded$7 = ["prefixCls", "radius", "pointer", "className", "hue", "style", "hsva", "onChange"];
|
|
54717
|
+
var Saturation = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
54718
|
+
var _hsva$h;
|
|
54719
|
+
var {
|
|
54720
|
+
prefixCls = 'w-color-saturation',
|
|
54721
|
+
radius = 0,
|
|
54722
|
+
pointer,
|
|
54723
|
+
className,
|
|
54724
|
+
hue = 0,
|
|
54725
|
+
style,
|
|
54726
|
+
hsva,
|
|
54727
|
+
onChange
|
|
54728
|
+
} = props,
|
|
54729
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$7);
|
|
54730
|
+
var containerStyle = _extends({
|
|
54731
|
+
width: 200,
|
|
54732
|
+
height: 200,
|
|
54733
|
+
borderRadius: radius
|
|
54734
|
+
}, style, {
|
|
54735
|
+
position: 'relative'
|
|
54736
|
+
});
|
|
54737
|
+
var handleChange = (interaction, event) => {
|
|
54738
|
+
onChange && hsva && onChange({
|
|
54739
|
+
h: hsva.h,
|
|
54740
|
+
s: interaction.left * 100,
|
|
54741
|
+
v: (1 - interaction.top) * 100,
|
|
54742
|
+
a: hsva.a
|
|
54743
|
+
// source: 'hsv',
|
|
54744
|
+
});
|
|
54745
|
+
};
|
|
54746
|
+
var handleKeyDown = useCallback(event => {
|
|
54747
|
+
if (!hsva || !onChange) return;
|
|
54748
|
+
var step = 1; // 1% step for saturation and value
|
|
54749
|
+
var newS = hsva.s;
|
|
54750
|
+
var newV = hsva.v;
|
|
54751
|
+
var changed = false;
|
|
54752
|
+
switch (event.key) {
|
|
54753
|
+
case 'ArrowLeft':
|
|
54754
|
+
newS = Math.max(0, hsva.s - step);
|
|
54755
|
+
changed = true;
|
|
54756
|
+
event.preventDefault();
|
|
54757
|
+
break;
|
|
54758
|
+
case 'ArrowRight':
|
|
54759
|
+
newS = Math.min(100, hsva.s + step);
|
|
54760
|
+
changed = true;
|
|
54761
|
+
event.preventDefault();
|
|
54762
|
+
break;
|
|
54763
|
+
case 'ArrowUp':
|
|
54764
|
+
newV = Math.min(100, hsva.v + step);
|
|
54765
|
+
changed = true;
|
|
54766
|
+
event.preventDefault();
|
|
54767
|
+
break;
|
|
54768
|
+
case 'ArrowDown':
|
|
54769
|
+
newV = Math.max(0, hsva.v - step);
|
|
54770
|
+
changed = true;
|
|
54771
|
+
event.preventDefault();
|
|
54772
|
+
break;
|
|
54773
|
+
default:
|
|
54774
|
+
return;
|
|
54775
|
+
}
|
|
54776
|
+
if (changed) {
|
|
54777
|
+
onChange({
|
|
54778
|
+
h: hsva.h,
|
|
54779
|
+
s: newS,
|
|
54780
|
+
v: newV,
|
|
54781
|
+
a: hsva.a
|
|
54782
|
+
});
|
|
54783
|
+
}
|
|
54784
|
+
}, [hsva, onChange]);
|
|
54785
|
+
var pointerElement = useMemo(() => {
|
|
54786
|
+
if (!hsva) return null;
|
|
54787
|
+
var comProps = {
|
|
54788
|
+
top: 100 - hsva.v + "%",
|
|
54789
|
+
left: hsva.s + "%",
|
|
54790
|
+
color: hsvaToHslaString(hsva)
|
|
54791
|
+
};
|
|
54792
|
+
if (pointer && typeof pointer === 'function') {
|
|
54793
|
+
return pointer(_extends({
|
|
54794
|
+
prefixCls
|
|
54795
|
+
}, comProps));
|
|
54796
|
+
}
|
|
54797
|
+
return /*#__PURE__*/jsx(Pointer$1, _extends({
|
|
54798
|
+
prefixCls: prefixCls
|
|
54799
|
+
}, comProps));
|
|
54800
|
+
}, [hsva, pointer, prefixCls]);
|
|
54801
|
+
var handleClick = useCallback(event => {
|
|
54802
|
+
event.target.focus();
|
|
54803
|
+
}, []);
|
|
54804
|
+
return /*#__PURE__*/jsx(Interactive$1, _extends({
|
|
54805
|
+
className: [prefixCls, className || ''].filter(Boolean).join(' ')
|
|
54806
|
+
}, other, {
|
|
54807
|
+
style: _extends({
|
|
54808
|
+
position: 'absolute',
|
|
54809
|
+
inset: 0,
|
|
54810
|
+
cursor: 'crosshair',
|
|
54811
|
+
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%))"
|
|
54812
|
+
}, containerStyle, {
|
|
54813
|
+
outline: 'none'
|
|
54814
|
+
}),
|
|
54815
|
+
ref: ref,
|
|
54816
|
+
onMove: handleChange,
|
|
54817
|
+
onDown: handleChange,
|
|
54818
|
+
onKeyDown: handleKeyDown,
|
|
54819
|
+
onClick: handleClick,
|
|
54820
|
+
children: pointerElement
|
|
54821
|
+
}));
|
|
54822
|
+
});
|
|
54823
|
+
Saturation.displayName = 'Saturation';
|
|
54824
|
+
var Saturation$1 = Saturation;
|
|
54825
|
+
|
|
54826
|
+
var _excluded$6 = ["className", "prefixCls", "left", "top", "style", "fillProps"];
|
|
54827
|
+
var Pointer = _ref => {
|
|
54828
|
+
var {
|
|
54829
|
+
className,
|
|
54830
|
+
prefixCls,
|
|
54831
|
+
left,
|
|
54832
|
+
top,
|
|
54833
|
+
style,
|
|
54834
|
+
fillProps
|
|
54835
|
+
} = _ref,
|
|
54836
|
+
reset = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
54837
|
+
var styleWrapper = _extends({}, style, {
|
|
54838
|
+
position: 'absolute',
|
|
54839
|
+
left,
|
|
54840
|
+
top
|
|
54841
|
+
});
|
|
54842
|
+
var stylePointer = _extends({
|
|
54843
|
+
width: 18,
|
|
54844
|
+
height: 18,
|
|
54845
|
+
boxShadow: 'var(--alpha-pointer-box-shadow)',
|
|
54846
|
+
borderRadius: '50%',
|
|
54847
|
+
backgroundColor: 'var(--alpha-pointer-background-color)'
|
|
54848
|
+
}, fillProps == null ? void 0 : fillProps.style, {
|
|
54849
|
+
transform: left ? 'translate(-9px, -1px)' : 'translate(-1px, -9px)'
|
|
54850
|
+
});
|
|
54851
|
+
return /*#__PURE__*/jsx("div", _extends({
|
|
54852
|
+
className: prefixCls + "-pointer " + (className || ''),
|
|
54853
|
+
style: styleWrapper
|
|
54854
|
+
}, reset, {
|
|
54855
|
+
children: /*#__PURE__*/jsx("div", _extends({
|
|
54856
|
+
className: prefixCls + "-fill"
|
|
54857
|
+
}, fillProps, {
|
|
54858
|
+
style: stylePointer
|
|
54859
|
+
}))
|
|
54860
|
+
}));
|
|
54861
|
+
};
|
|
54862
|
+
|
|
54863
|
+
var _excluded$5 = ["prefixCls", "className", "hsva", "background", "bgProps", "innerProps", "pointerProps", "radius", "width", "height", "direction", "style", "onChange", "pointer"];
|
|
54864
|
+
var BACKGROUND_IMG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==';
|
|
54865
|
+
var Alpha = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
54866
|
+
var {
|
|
54867
|
+
prefixCls = 'w-color-alpha',
|
|
54868
|
+
className,
|
|
54869
|
+
hsva,
|
|
54870
|
+
background,
|
|
54871
|
+
bgProps = {},
|
|
54872
|
+
innerProps = {},
|
|
54873
|
+
pointerProps = {},
|
|
54874
|
+
radius = 0,
|
|
54875
|
+
width,
|
|
54876
|
+
height = 16,
|
|
54877
|
+
direction = 'horizontal',
|
|
54878
|
+
style,
|
|
54879
|
+
onChange,
|
|
54880
|
+
pointer
|
|
54881
|
+
} = props,
|
|
54882
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$5);
|
|
54883
|
+
var handleChange = offset => {
|
|
54884
|
+
onChange && onChange(_extends({}, hsva, {
|
|
54885
|
+
a: direction === 'horizontal' ? offset.left : offset.top
|
|
54886
|
+
}), offset);
|
|
54887
|
+
};
|
|
54888
|
+
var colorTo = hsvaToHslaString(Object.assign({}, hsva, {
|
|
54889
|
+
a: 1
|
|
54890
|
+
}));
|
|
54891
|
+
var innerBackground = "linear-gradient(to " + (direction === 'horizontal' ? 'right' : 'bottom') + ", rgba(244, 67, 54, 0) 0%, " + colorTo + " 100%)";
|
|
54892
|
+
var comProps = {};
|
|
54893
|
+
if (direction === 'horizontal') {
|
|
54894
|
+
comProps.left = hsva.a * 100 + "%";
|
|
54895
|
+
} else {
|
|
54896
|
+
comProps.top = hsva.a * 100 + "%";
|
|
54897
|
+
}
|
|
54898
|
+
var styleWrapper = _extends({
|
|
54899
|
+
'--alpha-background-color': '#fff',
|
|
54900
|
+
'--alpha-pointer-background-color': 'rgb(248, 248, 248)',
|
|
54901
|
+
'--alpha-pointer-box-shadow': 'rgb(0 0 0 / 37%) 0px 1px 4px 0px',
|
|
54902
|
+
borderRadius: radius,
|
|
54903
|
+
background: "url(" + BACKGROUND_IMG + ") left center",
|
|
54904
|
+
backgroundColor: 'var(--alpha-background-color)'
|
|
54905
|
+
}, {
|
|
54906
|
+
width,
|
|
54907
|
+
height
|
|
54908
|
+
}, style, {
|
|
54909
|
+
position: 'relative'
|
|
54910
|
+
});
|
|
54911
|
+
var handleKeyDown = useCallback(event => {
|
|
54912
|
+
var step = 0.01; // 1% step
|
|
54913
|
+
var currentAlpha = hsva.a;
|
|
54914
|
+
var newAlpha = currentAlpha;
|
|
54915
|
+
switch (event.key) {
|
|
54916
|
+
case 'ArrowLeft':
|
|
54917
|
+
if (direction === 'horizontal') {
|
|
54918
|
+
newAlpha = Math.max(0, currentAlpha - step);
|
|
54919
|
+
event.preventDefault();
|
|
54920
|
+
}
|
|
54921
|
+
break;
|
|
54922
|
+
case 'ArrowRight':
|
|
54923
|
+
if (direction === 'horizontal') {
|
|
54924
|
+
newAlpha = Math.min(1, currentAlpha + step);
|
|
54925
|
+
event.preventDefault();
|
|
54926
|
+
}
|
|
54927
|
+
break;
|
|
54928
|
+
case 'ArrowUp':
|
|
54929
|
+
if (direction === 'vertical') {
|
|
54930
|
+
newAlpha = Math.max(0, currentAlpha - step);
|
|
54931
|
+
event.preventDefault();
|
|
54932
|
+
}
|
|
54933
|
+
break;
|
|
54934
|
+
case 'ArrowDown':
|
|
54935
|
+
if (direction === 'vertical') {
|
|
54936
|
+
newAlpha = Math.min(1, currentAlpha + step);
|
|
54937
|
+
event.preventDefault();
|
|
54938
|
+
}
|
|
54939
|
+
break;
|
|
54940
|
+
default:
|
|
54941
|
+
return;
|
|
54942
|
+
}
|
|
54943
|
+
if (newAlpha !== currentAlpha) {
|
|
54944
|
+
var syntheticOffset = {
|
|
54945
|
+
left: direction === 'horizontal' ? newAlpha : hsva.a,
|
|
54946
|
+
top: direction === 'vertical' ? newAlpha : hsva.a,
|
|
54947
|
+
width: 0,
|
|
54948
|
+
height: 0,
|
|
54949
|
+
x: 0,
|
|
54950
|
+
y: 0
|
|
54951
|
+
};
|
|
54952
|
+
onChange && onChange(_extends({}, hsva, {
|
|
54953
|
+
a: newAlpha
|
|
54954
|
+
}), syntheticOffset);
|
|
54955
|
+
}
|
|
54956
|
+
}, [hsva, direction, onChange]);
|
|
54957
|
+
var handleClick = useCallback(event => {
|
|
54958
|
+
event.target.focus();
|
|
54959
|
+
}, []);
|
|
54960
|
+
var pointerElement = pointer && typeof pointer === 'function' ? pointer(_extends({
|
|
54961
|
+
prefixCls
|
|
54962
|
+
}, pointerProps, comProps)) : /*#__PURE__*/jsx(Pointer, _extends({}, pointerProps, {
|
|
54963
|
+
prefixCls: prefixCls
|
|
54964
|
+
}, comProps));
|
|
54965
|
+
return /*#__PURE__*/jsxs("div", _extends({}, other, {
|
|
54966
|
+
className: [prefixCls, prefixCls + "-" + direction, className || ''].filter(Boolean).join(' '),
|
|
54967
|
+
style: styleWrapper,
|
|
54968
|
+
ref: ref,
|
|
54969
|
+
children: [/*#__PURE__*/jsx("div", _extends({}, bgProps, {
|
|
54970
|
+
style: _extends({
|
|
54971
|
+
inset: 0,
|
|
54972
|
+
position: 'absolute',
|
|
54973
|
+
background: background || innerBackground,
|
|
54974
|
+
borderRadius: radius
|
|
54975
|
+
}, bgProps.style)
|
|
54976
|
+
})), /*#__PURE__*/jsx(Interactive$1, _extends({}, innerProps, {
|
|
54977
|
+
style: _extends({}, innerProps.style, {
|
|
54978
|
+
inset: 0,
|
|
54979
|
+
zIndex: 1,
|
|
54980
|
+
position: 'absolute',
|
|
54981
|
+
outline: 'none'
|
|
54982
|
+
}),
|
|
54983
|
+
onMove: handleChange,
|
|
54984
|
+
onDown: handleChange,
|
|
54985
|
+
onClick: handleClick,
|
|
54986
|
+
onKeyDown: handleKeyDown,
|
|
54987
|
+
children: pointerElement
|
|
54988
|
+
}))]
|
|
54989
|
+
}));
|
|
54990
|
+
});
|
|
54991
|
+
Alpha.displayName = 'Alpha';
|
|
54992
|
+
var Alpha$1 = Alpha;
|
|
54993
|
+
|
|
54994
|
+
var _excluded$4 = ["prefixCls", "placement", "label", "value", "className", "style", "labelStyle", "inputStyle", "onChange", "onBlur", "renderInput"];
|
|
54995
|
+
var validHex = hex => /^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(hex);
|
|
54996
|
+
var getNumberValue = value => Number(String(value).replace(/%/g, ''));
|
|
54997
|
+
var EditableInput = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
54998
|
+
var {
|
|
54999
|
+
prefixCls = 'w-color-editable-input',
|
|
55000
|
+
placement = 'bottom',
|
|
55001
|
+
label,
|
|
55002
|
+
value: initValue,
|
|
55003
|
+
className,
|
|
55004
|
+
style,
|
|
55005
|
+
labelStyle,
|
|
55006
|
+
inputStyle,
|
|
55007
|
+
onChange,
|
|
55008
|
+
onBlur,
|
|
55009
|
+
renderInput
|
|
55010
|
+
} = props,
|
|
55011
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$4);
|
|
55012
|
+
var [value, setValue] = useState(initValue);
|
|
55013
|
+
var isFocus = useRef(false);
|
|
55014
|
+
useEffect(() => {
|
|
55015
|
+
if (props.value !== value) {
|
|
55016
|
+
if (!isFocus.current) {
|
|
55017
|
+
setValue(props.value);
|
|
55018
|
+
}
|
|
55019
|
+
}
|
|
55020
|
+
}, [props.value]);
|
|
55021
|
+
function handleChange(evn, valInit) {
|
|
55022
|
+
var value = (valInit || evn.target.value).trim().replace(/^#/, '');
|
|
55023
|
+
if (validHex(value)) {
|
|
55024
|
+
onChange && onChange(evn, value);
|
|
55025
|
+
}
|
|
55026
|
+
var val = getNumberValue(value);
|
|
55027
|
+
if (!isNaN(val)) {
|
|
55028
|
+
onChange && onChange(evn, val);
|
|
55029
|
+
}
|
|
55030
|
+
setValue(value);
|
|
55031
|
+
}
|
|
55032
|
+
function handleBlur(evn) {
|
|
55033
|
+
isFocus.current = false;
|
|
55034
|
+
setValue(props.value);
|
|
55035
|
+
onBlur && onBlur(evn);
|
|
55036
|
+
}
|
|
55037
|
+
var placementStyle = {};
|
|
55038
|
+
if (placement === 'bottom') {
|
|
55039
|
+
placementStyle['flexDirection'] = 'column';
|
|
55040
|
+
}
|
|
55041
|
+
if (placement === 'top') {
|
|
55042
|
+
placementStyle['flexDirection'] = 'column-reverse';
|
|
55043
|
+
}
|
|
55044
|
+
if (placement === 'left') {
|
|
55045
|
+
placementStyle['flexDirection'] = 'row-reverse';
|
|
55046
|
+
}
|
|
55047
|
+
var wrapperStyle = _extends({
|
|
55048
|
+
'--editable-input-label-color': 'rgb(153, 153, 153)',
|
|
55049
|
+
'--editable-input-box-shadow': 'rgb(204 204 204) 0px 0px 0px 1px inset',
|
|
55050
|
+
'--editable-input-color': '#666',
|
|
55051
|
+
position: 'relative',
|
|
55052
|
+
alignItems: 'center',
|
|
55053
|
+
display: 'flex',
|
|
55054
|
+
fontSize: 11
|
|
55055
|
+
}, placementStyle, style);
|
|
55056
|
+
var editableStyle = _extends({
|
|
55057
|
+
width: '100%',
|
|
55058
|
+
paddingTop: 2,
|
|
55059
|
+
paddingBottom: 2,
|
|
55060
|
+
paddingLeft: 3,
|
|
55061
|
+
paddingRight: 3,
|
|
55062
|
+
fontSize: 11,
|
|
55063
|
+
background: 'transparent',
|
|
55064
|
+
boxSizing: 'border-box',
|
|
55065
|
+
border: 'none',
|
|
55066
|
+
color: 'var(--editable-input-color)',
|
|
55067
|
+
boxShadow: 'var(--editable-input-box-shadow)'
|
|
55068
|
+
}, inputStyle);
|
|
55069
|
+
var inputProps = _extends({
|
|
55070
|
+
value,
|
|
55071
|
+
onChange: handleChange,
|
|
55072
|
+
onBlur: handleBlur,
|
|
55073
|
+
autoComplete: 'off',
|
|
55074
|
+
onFocus: () => isFocus.current = true
|
|
55075
|
+
}, other, {
|
|
55076
|
+
style: editableStyle
|
|
55077
|
+
});
|
|
55078
|
+
return /*#__PURE__*/jsxs("div", {
|
|
55079
|
+
className: [prefixCls, className || ''].filter(Boolean).join(' '),
|
|
55080
|
+
style: wrapperStyle,
|
|
55081
|
+
children: [renderInput ? renderInput(inputProps, ref) : /*#__PURE__*/jsx("input", _extends({
|
|
55082
|
+
ref: ref
|
|
55083
|
+
}, inputProps)), label && /*#__PURE__*/jsx("span", {
|
|
55084
|
+
style: _extends({
|
|
55085
|
+
color: 'var(--editable-input-label-color)',
|
|
55086
|
+
textTransform: 'capitalize'
|
|
55087
|
+
}, labelStyle),
|
|
55088
|
+
children: label
|
|
55089
|
+
})]
|
|
55090
|
+
});
|
|
55091
|
+
});
|
|
55092
|
+
EditableInput.displayName = 'EditableInput';
|
|
55093
|
+
var EditableInput$1 = EditableInput;
|
|
55094
|
+
|
|
55095
|
+
var _excluded$3 = ["prefixCls", "hsva", "placement", "rProps", "gProps", "bProps", "aProps", "className", "style", "onChange"];
|
|
55096
|
+
var EditableInputRGBA = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
55097
|
+
var {
|
|
55098
|
+
prefixCls = 'w-color-editable-input-rgba',
|
|
55099
|
+
hsva,
|
|
55100
|
+
placement = 'bottom',
|
|
55101
|
+
rProps = {},
|
|
55102
|
+
gProps = {},
|
|
55103
|
+
bProps = {},
|
|
55104
|
+
aProps = {},
|
|
55105
|
+
className,
|
|
55106
|
+
style,
|
|
55107
|
+
onChange
|
|
55108
|
+
} = props,
|
|
55109
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$3);
|
|
55110
|
+
var rgba = hsva ? hsvaToRgba(hsva) : {};
|
|
55111
|
+
function handleBlur(evn) {
|
|
55112
|
+
var value = Number(evn.target.value);
|
|
55113
|
+
if (value && value > 255) {
|
|
55114
|
+
evn.target.value = '255';
|
|
55115
|
+
}
|
|
55116
|
+
if (value && value < 0) {
|
|
55117
|
+
evn.target.value = '0';
|
|
55118
|
+
}
|
|
55119
|
+
}
|
|
55120
|
+
var handleChange = (value, type, evn) => {
|
|
55121
|
+
if (typeof value === 'number') {
|
|
55122
|
+
if (type === 'a') {
|
|
55123
|
+
if (value < 0) value = 0;
|
|
55124
|
+
if (value > 100) value = 100;
|
|
55125
|
+
onChange && onChange(color(rgbaToHsva(_extends({}, rgba, {
|
|
55126
|
+
a: value / 100
|
|
55127
|
+
}))));
|
|
55128
|
+
}
|
|
55129
|
+
if (value > 255) {
|
|
55130
|
+
value = 255;
|
|
55131
|
+
evn.target.value = '255';
|
|
55132
|
+
}
|
|
55133
|
+
if (value < 0) {
|
|
55134
|
+
value = 0;
|
|
55135
|
+
evn.target.value = '0';
|
|
55136
|
+
}
|
|
55137
|
+
if (type === 'r') {
|
|
55138
|
+
onChange && onChange(color(rgbaToHsva(_extends({}, rgba, {
|
|
55139
|
+
r: value
|
|
55140
|
+
}))));
|
|
55141
|
+
}
|
|
55142
|
+
if (type === 'g') {
|
|
55143
|
+
onChange && onChange(color(rgbaToHsva(_extends({}, rgba, {
|
|
55144
|
+
g: value
|
|
55145
|
+
}))));
|
|
55146
|
+
}
|
|
55147
|
+
if (type === 'b') {
|
|
55148
|
+
onChange && onChange(color(rgbaToHsva(_extends({}, rgba, {
|
|
55149
|
+
b: value
|
|
55150
|
+
}))));
|
|
55151
|
+
}
|
|
55152
|
+
}
|
|
55153
|
+
};
|
|
55154
|
+
return /*#__PURE__*/jsxs("div", _extends({
|
|
55155
|
+
ref: ref,
|
|
55156
|
+
className: [prefixCls, className || ''].filter(Boolean).join(' ')
|
|
55157
|
+
}, other, {
|
|
55158
|
+
style: _extends({
|
|
55159
|
+
fontSize: 11,
|
|
55160
|
+
display: 'flex'
|
|
55161
|
+
}, style),
|
|
55162
|
+
children: [/*#__PURE__*/jsx(EditableInput$1, _extends({
|
|
55163
|
+
label: "R",
|
|
55164
|
+
value: rgba.r || 0,
|
|
55165
|
+
onBlur: handleBlur,
|
|
55166
|
+
placement: placement,
|
|
55167
|
+
onChange: (evn, val) => handleChange(val, 'r', evn)
|
|
55168
|
+
}, rProps, {
|
|
55169
|
+
style: _extends({}, rProps.style)
|
|
55170
|
+
})), /*#__PURE__*/jsx(EditableInput$1, _extends({
|
|
55171
|
+
label: "G",
|
|
55172
|
+
value: rgba.g || 0,
|
|
55173
|
+
onBlur: handleBlur,
|
|
55174
|
+
placement: placement,
|
|
55175
|
+
onChange: (evn, val) => handleChange(val, 'g', evn)
|
|
55176
|
+
}, gProps, {
|
|
55177
|
+
style: _extends({
|
|
55178
|
+
marginLeft: 5
|
|
55179
|
+
}, rProps.style)
|
|
55180
|
+
})), /*#__PURE__*/jsx(EditableInput$1, _extends({
|
|
55181
|
+
label: "B",
|
|
55182
|
+
value: rgba.b || 0,
|
|
55183
|
+
onBlur: handleBlur,
|
|
55184
|
+
placement: placement,
|
|
55185
|
+
onChange: (evn, val) => handleChange(val, 'b', evn)
|
|
55186
|
+
}, bProps, {
|
|
55187
|
+
style: _extends({
|
|
55188
|
+
marginLeft: 5
|
|
55189
|
+
}, bProps.style)
|
|
55190
|
+
})), aProps && /*#__PURE__*/jsx(EditableInput$1, _extends({
|
|
55191
|
+
label: "A",
|
|
55192
|
+
value: rgba.a ? parseInt(String(rgba.a * 100), 10) : 0,
|
|
55193
|
+
onBlur: handleBlur,
|
|
55194
|
+
placement: placement,
|
|
55195
|
+
onChange: (evn, val) => handleChange(val, 'a', evn)
|
|
55196
|
+
}, aProps, {
|
|
55197
|
+
style: _extends({
|
|
55198
|
+
marginLeft: 5
|
|
55199
|
+
}, aProps.style)
|
|
55200
|
+
}))]
|
|
55201
|
+
}));
|
|
55202
|
+
});
|
|
55203
|
+
EditableInputRGBA.displayName = 'EditableInputRGBA';
|
|
55204
|
+
var RGBA = EditableInputRGBA;
|
|
55205
|
+
|
|
55206
|
+
var _excluded$2 = ["prefixCls", "className", "hue", "onChange", "direction"];
|
|
55207
|
+
var Hue = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
55208
|
+
var {
|
|
55209
|
+
prefixCls = 'w-color-hue',
|
|
55210
|
+
className,
|
|
55211
|
+
hue = 0,
|
|
55212
|
+
onChange: _onChange,
|
|
55213
|
+
direction = 'horizontal'
|
|
55214
|
+
} = props,
|
|
55215
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2);
|
|
55216
|
+
return /*#__PURE__*/jsx(Alpha$1, _extends({
|
|
55217
|
+
ref: ref,
|
|
55218
|
+
className: prefixCls + " " + (className || '')
|
|
55219
|
+
}, other, {
|
|
55220
|
+
direction: direction,
|
|
55221
|
+
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%)",
|
|
55222
|
+
hsva: {
|
|
55223
|
+
h: hue,
|
|
55224
|
+
s: 100,
|
|
55225
|
+
v: 100,
|
|
55226
|
+
a: hue / 360
|
|
55227
|
+
},
|
|
55228
|
+
onChange: (_, interaction) => {
|
|
55229
|
+
_onChange && _onChange({
|
|
55230
|
+
h: direction === 'horizontal' ? 360 * interaction.left : 360 * interaction.top
|
|
55231
|
+
});
|
|
55232
|
+
}
|
|
55233
|
+
}));
|
|
55234
|
+
});
|
|
55235
|
+
Hue.displayName = 'Hue';
|
|
55236
|
+
var Hue$1 = Hue;
|
|
55237
|
+
|
|
55238
|
+
var _excluded$1 = ["prefixCls", "className", "color", "colors", "style", "rectProps", "onChange", "addonAfter", "addonBefore", "rectRender"];
|
|
55239
|
+
var Swatch = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
55240
|
+
var {
|
|
55241
|
+
prefixCls = 'w-color-swatch',
|
|
55242
|
+
className,
|
|
55243
|
+
color: color$1,
|
|
55244
|
+
colors = [],
|
|
55245
|
+
style,
|
|
55246
|
+
rectProps = {},
|
|
55247
|
+
onChange,
|
|
55248
|
+
addonAfter,
|
|
55249
|
+
addonBefore,
|
|
55250
|
+
rectRender
|
|
55251
|
+
} = props,
|
|
55252
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$1);
|
|
55253
|
+
var rectStyle = _extends({
|
|
55254
|
+
'--swatch-background-color': 'rgb(144, 19, 254)',
|
|
55255
|
+
background: 'var(--swatch-background-color)',
|
|
55256
|
+
height: 15,
|
|
55257
|
+
width: 15,
|
|
55258
|
+
marginRight: 5,
|
|
55259
|
+
marginBottom: 5,
|
|
55260
|
+
cursor: 'pointer',
|
|
55261
|
+
position: 'relative',
|
|
55262
|
+
outline: 'none',
|
|
55263
|
+
borderRadius: 2
|
|
55264
|
+
}, rectProps.style);
|
|
55265
|
+
var handleClick = (hex, evn) => {
|
|
55266
|
+
onChange && onChange(hexToHsva(hex), color(hexToHsva(hex)), evn);
|
|
55267
|
+
};
|
|
55268
|
+
return /*#__PURE__*/jsxs("div", _extends({
|
|
55269
|
+
ref: ref
|
|
55270
|
+
}, other, {
|
|
55271
|
+
className: [prefixCls, className || ''].filter(Boolean).join(' '),
|
|
55272
|
+
style: _extends({
|
|
55273
|
+
display: 'flex',
|
|
55274
|
+
flexWrap: 'wrap',
|
|
55275
|
+
position: 'relative'
|
|
55276
|
+
}, style),
|
|
55277
|
+
children: [addonBefore && /*#__PURE__*/React__default.isValidElement(addonBefore) && addonBefore, colors && Array.isArray(colors) && colors.map((item, idx) => {
|
|
55278
|
+
var title = '';
|
|
55279
|
+
var background = '';
|
|
55280
|
+
if (typeof item === 'string') {
|
|
55281
|
+
title = item;
|
|
55282
|
+
background = item;
|
|
55283
|
+
}
|
|
55284
|
+
if (typeof item === 'object' && item.color) {
|
|
55285
|
+
title = item.title || item.color;
|
|
55286
|
+
background = item.color;
|
|
55287
|
+
}
|
|
55288
|
+
var checked = color$1 && color$1.toLocaleLowerCase() === background.toLocaleLowerCase();
|
|
55289
|
+
var render = rectRender && rectRender({
|
|
55290
|
+
title,
|
|
55291
|
+
color: background,
|
|
55292
|
+
checked: !!checked,
|
|
55293
|
+
style: _extends({}, rectStyle, {
|
|
55294
|
+
background
|
|
55295
|
+
}),
|
|
55296
|
+
onClick: evn => handleClick(background, evn)
|
|
55297
|
+
});
|
|
55298
|
+
if (render) {
|
|
55299
|
+
return /*#__PURE__*/jsx(Fragment$1, {
|
|
55300
|
+
children: render
|
|
55301
|
+
}, idx);
|
|
55302
|
+
}
|
|
55303
|
+
var child = rectProps.children && /*#__PURE__*/React__default.isValidElement(rectProps.children) ? /*#__PURE__*/React__default.cloneElement(rectProps.children, {
|
|
55304
|
+
color: background,
|
|
55305
|
+
checked
|
|
55306
|
+
}) : null;
|
|
55307
|
+
return /*#__PURE__*/jsx("div", _extends({
|
|
55308
|
+
tabIndex: 0,
|
|
55309
|
+
title: title,
|
|
55310
|
+
onClick: evn => handleClick(background, evn)
|
|
55311
|
+
}, rectProps, {
|
|
55312
|
+
children: child,
|
|
55313
|
+
style: _extends({}, rectStyle, {
|
|
55314
|
+
background
|
|
55315
|
+
})
|
|
55316
|
+
}), idx);
|
|
55317
|
+
}), addonAfter && /*#__PURE__*/React__default.isValidElement(addonAfter) && addonAfter]
|
|
55318
|
+
}));
|
|
55319
|
+
});
|
|
55320
|
+
Swatch.displayName = 'Swatch';
|
|
55321
|
+
var Swatch$1 = Swatch;
|
|
55322
|
+
|
|
55323
|
+
var _excluded = ["prefixCls", "className", "onChange", "width", "presetColors", "color", "editableDisable", "disableAlpha", "style"];
|
|
55324
|
+
var PRESET_COLORS = ['#D0021B', '#F5A623', '#f8e61b', '#8B572A', '#7ED321', '#417505', '#BD10E0', '#9013FE', '#4A90E2', '#50E3C2', '#B8E986', '#000000', '#4A4A4A', '#9B9B9B', '#FFFFFF'];
|
|
55325
|
+
var Bar = props => /*#__PURE__*/jsx("div", {
|
|
55326
|
+
style: {
|
|
55327
|
+
boxShadow: 'rgb(0 0 0 / 60%) 0px 0px 2px',
|
|
55328
|
+
width: 4,
|
|
55329
|
+
top: 1,
|
|
55330
|
+
bottom: 1,
|
|
55331
|
+
left: props.left,
|
|
55332
|
+
borderRadius: 1,
|
|
55333
|
+
position: 'absolute',
|
|
55334
|
+
backgroundColor: '#fff'
|
|
55335
|
+
}
|
|
55336
|
+
});
|
|
55337
|
+
var Sketch = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
55338
|
+
var {
|
|
55339
|
+
prefixCls = 'w-color-sketch',
|
|
55340
|
+
className,
|
|
55341
|
+
onChange,
|
|
55342
|
+
width = 218,
|
|
55343
|
+
presetColors = PRESET_COLORS,
|
|
55344
|
+
color: color$1,
|
|
55345
|
+
editableDisable = true,
|
|
55346
|
+
disableAlpha = false,
|
|
55347
|
+
style
|
|
55348
|
+
} = props,
|
|
55349
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
55350
|
+
var [hsva, setHsva] = useState({
|
|
55351
|
+
h: 209,
|
|
55352
|
+
s: 36,
|
|
55353
|
+
v: 90,
|
|
55354
|
+
a: 1
|
|
55355
|
+
});
|
|
55356
|
+
useEffect(() => {
|
|
55357
|
+
if (typeof color$1 === 'string' && validHex$1(color$1)) {
|
|
55358
|
+
setHsva(hexToHsva(color$1));
|
|
55359
|
+
}
|
|
55360
|
+
if (typeof color$1 === 'object') {
|
|
55361
|
+
setHsva(color$1);
|
|
55362
|
+
}
|
|
55363
|
+
}, [color$1]);
|
|
55364
|
+
var handleChange = hsv => {
|
|
55365
|
+
setHsva(hsv);
|
|
55366
|
+
onChange && onChange(color(hsv));
|
|
55367
|
+
};
|
|
55368
|
+
var handleHex = (value, evn) => {
|
|
55369
|
+
if (typeof value === 'string' && validHex$1(value) && /(3|6)/.test(String(value.length))) {
|
|
55370
|
+
handleChange(hexToHsva(value));
|
|
55371
|
+
}
|
|
55372
|
+
};
|
|
55373
|
+
var handleAlphaChange = newAlpha => handleChange(_extends({}, hsva, {
|
|
55374
|
+
a: newAlpha.a
|
|
55375
|
+
}));
|
|
55376
|
+
var handleSaturationChange = newColor => handleChange(_extends({}, hsva, newColor, {
|
|
55377
|
+
a: hsva.a
|
|
55378
|
+
}));
|
|
55379
|
+
var styleMain = _extends({
|
|
55380
|
+
'--sketch-background': 'rgb(255, 255, 255)',
|
|
55381
|
+
'--sketch-box-shadow': 'rgb(0 0 0 / 15%) 0px 0px 0px 1px, rgb(0 0 0 / 15%) 0px 8px 16px',
|
|
55382
|
+
'--sketch-swatch-box-shadow': 'rgb(0 0 0 / 15%) 0px 0px 0px 1px inset',
|
|
55383
|
+
'--sketch-alpha-box-shadow': 'rgb(0 0 0 / 15%) 0px 0px 0px 1px inset, rgb(0 0 0 / 25%) 0px 0px 4px inset',
|
|
55384
|
+
'--sketch-swatch-border-top': '1px solid rgb(238, 238, 238)',
|
|
55385
|
+
background: 'var(--sketch-background)',
|
|
55386
|
+
borderRadius: 4,
|
|
55387
|
+
boxShadow: 'var(--sketch-box-shadow)',
|
|
55388
|
+
width
|
|
55389
|
+
}, style);
|
|
55390
|
+
var styleAlpha = {
|
|
55391
|
+
borderRadius: 2,
|
|
55392
|
+
background: hsvaToRgbaString(hsva),
|
|
55393
|
+
boxShadow: 'var(--sketch-alpha-box-shadow)'
|
|
55394
|
+
};
|
|
55395
|
+
var styleSwatch = {
|
|
55396
|
+
borderTop: 'var(--sketch-swatch-border-top)',
|
|
55397
|
+
paddingTop: 10,
|
|
55398
|
+
paddingLeft: 10
|
|
55399
|
+
};
|
|
55400
|
+
var styleSwatchRect = {
|
|
55401
|
+
marginRight: 10,
|
|
55402
|
+
marginBottom: 10,
|
|
55403
|
+
borderRadius: 3,
|
|
55404
|
+
boxShadow: 'var(--sketch-swatch-box-shadow)'
|
|
55405
|
+
};
|
|
55406
|
+
return /*#__PURE__*/jsxs("div", _extends({}, other, {
|
|
55407
|
+
className: prefixCls + " " + (className || ''),
|
|
55408
|
+
ref: ref,
|
|
55409
|
+
style: styleMain,
|
|
55410
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
55411
|
+
style: {
|
|
55412
|
+
padding: '10px 10px 8px'
|
|
55413
|
+
},
|
|
55414
|
+
children: [/*#__PURE__*/jsx(Saturation$1, {
|
|
55415
|
+
hsva: hsva,
|
|
55416
|
+
style: {
|
|
55417
|
+
width: 'auto',
|
|
55418
|
+
height: 150
|
|
55419
|
+
},
|
|
55420
|
+
onChange: handleSaturationChange
|
|
55421
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
55422
|
+
style: {
|
|
55423
|
+
display: 'flex',
|
|
55424
|
+
marginTop: 4
|
|
55425
|
+
},
|
|
55426
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
55427
|
+
style: {
|
|
55428
|
+
flex: 1
|
|
55429
|
+
},
|
|
55430
|
+
children: [/*#__PURE__*/jsx(Hue$1, {
|
|
55431
|
+
width: "auto",
|
|
55432
|
+
height: 10,
|
|
55433
|
+
hue: hsva.h,
|
|
55434
|
+
pointer: Bar,
|
|
55435
|
+
innerProps: {
|
|
55436
|
+
style: {
|
|
55437
|
+
marginLeft: 1,
|
|
55438
|
+
marginRight: 5
|
|
55439
|
+
}
|
|
55440
|
+
},
|
|
55441
|
+
onChange: newHue => handleChange(_extends({}, hsva, newHue))
|
|
55442
|
+
}), !disableAlpha && /*#__PURE__*/jsx(Alpha$1, {
|
|
55443
|
+
width: "auto",
|
|
55444
|
+
height: 10,
|
|
55445
|
+
hsva: hsva,
|
|
55446
|
+
pointer: Bar,
|
|
55447
|
+
style: {
|
|
55448
|
+
marginTop: 4
|
|
55449
|
+
},
|
|
55450
|
+
innerProps: {
|
|
55451
|
+
style: {
|
|
55452
|
+
marginLeft: 1,
|
|
55453
|
+
marginRight: 5
|
|
55454
|
+
}
|
|
55455
|
+
},
|
|
55456
|
+
onChange: handleAlphaChange
|
|
55457
|
+
})]
|
|
55458
|
+
}), !disableAlpha && /*#__PURE__*/jsx(Alpha$1, {
|
|
55459
|
+
width: 24,
|
|
55460
|
+
height: 24,
|
|
55461
|
+
hsva: hsva,
|
|
55462
|
+
radius: 2,
|
|
55463
|
+
style: {
|
|
55464
|
+
marginLeft: 4
|
|
55465
|
+
},
|
|
55466
|
+
bgProps: {
|
|
55467
|
+
style: {
|
|
55468
|
+
background: 'transparent'
|
|
55469
|
+
}
|
|
55470
|
+
},
|
|
55471
|
+
innerProps: {
|
|
55472
|
+
style: styleAlpha
|
|
55473
|
+
},
|
|
55474
|
+
pointer: () => /*#__PURE__*/jsx(Fragment$1, {})
|
|
55475
|
+
})]
|
|
55476
|
+
})]
|
|
55477
|
+
}), editableDisable && /*#__PURE__*/jsxs("div", {
|
|
55478
|
+
style: {
|
|
55479
|
+
display: 'flex',
|
|
55480
|
+
margin: '0 10px 3px 10px'
|
|
55481
|
+
},
|
|
55482
|
+
children: [/*#__PURE__*/jsx(EditableInput$1, {
|
|
55483
|
+
label: "Hex",
|
|
55484
|
+
value: hsvaToHex(hsva).replace(/^#/, '').toLocaleUpperCase(),
|
|
55485
|
+
onChange: (evn, val) => handleHex(val),
|
|
55486
|
+
style: {
|
|
55487
|
+
minWidth: 58
|
|
55488
|
+
}
|
|
55489
|
+
}), /*#__PURE__*/jsx(RGBA, {
|
|
55490
|
+
hsva: hsva,
|
|
55491
|
+
style: {
|
|
55492
|
+
marginLeft: 6
|
|
55493
|
+
},
|
|
55494
|
+
aProps: !disableAlpha ? {} : false,
|
|
55495
|
+
onChange: result => handleChange(result.hsva)
|
|
55496
|
+
})]
|
|
55497
|
+
}), presetColors && presetColors.length > 0 && /*#__PURE__*/jsx(Swatch$1, {
|
|
55498
|
+
style: styleSwatch,
|
|
55499
|
+
colors: presetColors,
|
|
55500
|
+
color: hsvaToHex(hsva),
|
|
55501
|
+
onChange: hsvColor => handleChange(hsvColor),
|
|
55502
|
+
rectProps: {
|
|
55503
|
+
style: styleSwatchRect
|
|
55504
|
+
}
|
|
55505
|
+
})]
|
|
55506
|
+
}));
|
|
55507
|
+
});
|
|
55508
|
+
Sketch.displayName = 'Sketch';
|
|
55509
|
+
var Sketch$1 = Sketch;
|
|
55510
|
+
|
|
55511
|
+
const rootClassName = 'dot-color-picker';
|
|
55512
|
+
const StyledColorPicker = styled(Sketch$1)`
|
|
55513
|
+
${({
|
|
55514
|
+
theme,
|
|
55515
|
+
$hideShadow
|
|
55516
|
+
}) => css`
|
|
55517
|
+
&.${rootClassName} {
|
|
55518
|
+
--sketch-background: ${theme.palette.figma.background.level0.componentsBackground} !important;
|
|
55519
|
+
--sketch-swatch-border-top: none !important;
|
|
55520
|
+
--sketch-box-shadow: ${theme.shadows[1]} !important;
|
|
55521
|
+
box-shadow: ${$hideShadow ? 'none !important' : 'var(--sketch-box-shadow)'};
|
|
55522
|
+
font-family: ${theme.typography.fontFamily} !important;
|
|
55523
|
+
|
|
55524
|
+
.w-color-interactive,
|
|
55525
|
+
.w-color-hue > div,
|
|
55526
|
+
.w-color-alpha-horizontal > div {
|
|
55527
|
+
border-radius: ${theme.spacing(0.5)} !important;
|
|
55528
|
+
}
|
|
55529
|
+
|
|
55530
|
+
.w-color-editable-input {
|
|
55531
|
+
--editable-input-color: ${theme.palette.figma.typography.black} !important;
|
|
55532
|
+
--editable-input-label-color: ${theme.palette.figma.typography.black} !important;
|
|
55533
|
+
--editable-input-box-shadow: none !important;
|
|
55534
|
+
|
|
55535
|
+
input {
|
|
55536
|
+
border-radius: ${theme.spacing(0.5)};
|
|
55537
|
+
border: 1px solid ${theme.palette.figma.border.default} !important;
|
|
55538
|
+
|
|
55539
|
+
&:focus-visible {
|
|
55540
|
+
background: ${theme.palette.figma.neutral.elevated};
|
|
55541
|
+
outline: none;
|
|
55542
|
+
border: 1px solid ${theme.palette.figma.border.inputActive} !important;
|
|
55543
|
+
}
|
|
55544
|
+
}
|
|
55545
|
+
}
|
|
55546
|
+
|
|
55547
|
+
.w-color-swatch div {
|
|
55548
|
+
height: ${theme.spacing(3)} !important;
|
|
55549
|
+
width: ${theme.spacing(3)} !important;
|
|
55550
|
+
}
|
|
55551
|
+
}
|
|
55552
|
+
`}
|
|
55553
|
+
`;
|
|
55554
|
+
|
|
55555
|
+
const DotColorPicker = ({
|
|
55556
|
+
ariaLabel,
|
|
55557
|
+
ariaRole,
|
|
55558
|
+
className,
|
|
55559
|
+
color,
|
|
55560
|
+
'data-pendoid': dataPendoId,
|
|
55561
|
+
'data-testid': dataTestId,
|
|
55562
|
+
hideAlpha,
|
|
55563
|
+
hideRGB,
|
|
55564
|
+
hideShadow,
|
|
55565
|
+
onChange,
|
|
55566
|
+
presetColors,
|
|
55567
|
+
style,
|
|
55568
|
+
width
|
|
55569
|
+
}) => {
|
|
55570
|
+
return jsx(StyledColorPicker, {
|
|
55571
|
+
"$hideShadow": hideShadow,
|
|
55572
|
+
"aria-label": ariaLabel,
|
|
55573
|
+
className: rootClassName,
|
|
55574
|
+
color: color,
|
|
55575
|
+
"data-pendoid": dataPendoId,
|
|
55576
|
+
"data-testid": dataTestId,
|
|
55577
|
+
disableAlpha: hideAlpha,
|
|
55578
|
+
editableDisable: !hideRGB,
|
|
55579
|
+
onChange: onChange,
|
|
55580
|
+
prefixCls: className,
|
|
55581
|
+
presetColors: presetColors,
|
|
55582
|
+
role: ariaRole,
|
|
55583
|
+
style: style,
|
|
55584
|
+
width: width
|
|
55585
|
+
});
|
|
55586
|
+
};
|
|
55587
|
+
|
|
55588
|
+
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 };
|