@digital-ai/dot-components 4.27.0 → 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 CHANGED
@@ -1390,7 +1390,7 @@ const readOnlyStyles = theme => css`
1390
1390
  }
1391
1391
  `;
1392
1392
 
1393
- const rootClassName$1p = 'dot-text-field';
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$1p} {
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$1p} {
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$1o = 'dot-icon';
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$1o} {
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$1o, className, ai ? aiIconClassName : '');
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$1n = 'dot-accordion';
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$1n} .${summaryClassName} {
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$1n,
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$1n, className);
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$1m = 'dot-action-toolbar';
1856
+ const rootClassName$1n = 'dot-action-toolbar';
1857
1857
  const StyledToolbar = styled(Toolbar)`
1858
1858
  ${({
1859
1859
  theme
1860
1860
  }) => css`
1861
- &.${rootClassName$1m} {
1861
+ &.${rootClassName$1n} {
1862
1862
  border-bottom: 1px solid ${theme.palette.figma.border.default};
1863
1863
 
1864
- .${rootClassName$1p} .MuiInputBase-root {
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$1m, className);
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$1l = 'dot-alert-banner';
1888
+ const rootClassName$1m = 'dot-alert-banner';
1889
1889
  const StyledAlertBanner = styled(Alert)`
1890
1890
  ${({
1891
1891
  theme
1892
1892
  }) => css`
1893
- &.${rootClassName$1l} {
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$1l,
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$1l, severity, className);
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$1k = 'dot-annotation';
1979
+ const rootClassName$1l = 'dot-annotation';
1980
1980
  const StyledAnnotation = styled.kbd`
1981
1981
  ${({
1982
1982
  theme
1983
1983
  }) => css`
1984
- &.${rootClassName$1k} {
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$1k,
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$1k, className, type === 'secondary' ? 'secondary' : '');
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$1j = 'dot-avatar';
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$1j} {
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$1j, className);
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$1i = 'dot-button';
2825
+ const rootClassName$1j = 'dot-button';
2826
2826
  const StyledButton = styled(Button)`
2827
2827
  ${({
2828
2828
  theme
2829
2829
  }) => css`
2830
- &.${rootClassName$1i} {
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$1i,
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$1i, className);
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$1i}-tooltip`,
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$1i,
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$1h = 'dot-link';
3064
+ const rootClassName$1i = 'dot-link';
3065
3065
  const StyledLink = styled(Link)`
3066
3066
  ${() => css`
3067
- &.${rootClassName$1h} {
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$1h,
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$1h, className);
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$1g = 'dot-list';
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$1g} {
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$1f = 'dot-progress';
3249
+ const rootClassName$1g = 'dot-progress';
3250
3250
  const StyledProgress = styled.div`
3251
3251
  ${({
3252
3252
  theme
3253
3253
  }) => css`
3254
- &.${rootClassName$1f} {
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$1f, className);
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$1e = 'dot-popper';
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$1e} {
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$1e}, &.${rootClassName$1e} > .dot-popper-paper {
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$1d = 'dot-menu';
3466
+ const rootClassName$1e = 'dot-menu';
3467
3467
  const StyledPopper = styled(Popper)`
3468
3468
  ${({
3469
3469
  theme
3470
3470
  }) => css`
3471
- &.${rootClassName$1e} {
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$1d}, &.${rootClassName$1e} {
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$1c = 'dot-ul';
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$1c} {
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$1c, className);
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$1d, className, loading ? 'loading' : '');
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$1b = 'dot-drawer';
3870
+ const rootClassName$1c = 'dot-drawer';
3871
3871
  const StyledDrawer = styled(Drawer)`
3872
3872
  ${({
3873
3873
  theme
3874
3874
  }) => css`
3875
- &.${rootClassName$1b} .MuiBackdrop-root {
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$1a = 'dot-drawer-header';
3894
+ const rootClassName$1b = 'dot-drawer-header';
3895
3895
  const StyleDrawerHeader = styled.div`
3896
3896
  ${({
3897
3897
  theme
3898
3898
  }) => css`
3899
- &.${rootClassName$1a} {
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$19 = 'dot-icon-btn';
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$19} {
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$19,
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$19, rippleClassName, `shape-${shape}`, className);
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$1a, className);
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$18 = 'dot-drawer-body';
4070
+ const rootClassName$19 = 'dot-drawer-body';
4071
4071
  const StyleDrawerBody = styled.div`
4072
4072
  ${() => css`
4073
- &.${rootClassName$18} {
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$18, className);
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$17 = 'dot-drawer-footer';
4109
+ const rootClassName$18 = 'dot-drawer-footer';
4110
4110
  const StyleDrawerFooter = styled.div`
4111
4111
  ${({
4112
4112
  theme
4113
4113
  }) => css`
4114
- &.${rootClassName$17} {
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$17, className);
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$1b,
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$1b, className);
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$1g, className);
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$16 = 'dot-copy-button';
4741
+ const rootClassName$17 = 'dot-copy-button';
4742
4742
  const StyledCopyButton = styled.span`
4743
4743
  ${({
4744
4744
  theme
4745
4745
  }) => css`
4746
- &.${rootClassName$16} .copied-to-clipboard {
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$16,
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$16,
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$1p,
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$1p, hasError, hasWarning, hasSuccess, isAiEnabled, readOnly && readOnlyClassName$1);
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$15 = 'dot-search-input';
5120
+ const rootClassName$16 = 'dot-search-input';
5121
5121
  const StyledSearchInput = styled.span`
5122
5122
  ${() => css`
5123
- &.${rootClassName$15} {
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$15, className);
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$14 = 'dot-app-switcher';
5396
+ const rootClassName$15 = 'dot-app-switcher';
5397
5397
  const StyledAppSwitcher = styled(DotDrawer)`
5398
5398
  ${({
5399
5399
  theme
5400
5400
  }) => css`
5401
- &.${rootClassName$14} {
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$14, className);
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$2 = ["title", "titleId"];
5796
- 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); }
5797
- function _objectWithoutProperties$2(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; }
5798
- 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; }
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$2);
5803
- return /*#__PURE__*/React$1.createElement("svg", _extends$2({
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$1 = ["title", "titleId"];
5833
- 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); }
5834
- function _objectWithoutProperties$1(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; }
5835
- 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; }
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$1);
5840
- return /*#__PURE__*/React$1.createElement("svg", _extends$1({
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$13 = 'dot-sidebar';
5889
+ const rootClassName$14 = 'dot-sidebar';
5890
5890
  const StyledSidebar = styled.aside`
5891
5891
  ${({
5892
5892
  theme
5893
5893
  }) => css`
5894
- &.${rootClassName$13} {
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$12 = 'dot-truncate-with-tooltip';
6188
+ const rootClassName$13 = 'dot-truncate-with-tooltip';
6189
6189
  const StyledTruncateWithTooltip = styled(Tooltip)`
6190
6190
  ${() => css`
6191
- &.${rootClassName$12} {
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$12, className, charactersLimit ? 'dot-characters-limit' : '');
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$13, openClass, className);
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$11 = 'dot-badge';
6411
+ const rootClassName$12 = 'dot-badge';
6412
6412
  const StyledBadge = styled(Badge)`
6413
6413
  ${({
6414
6414
  theme
6415
6415
  }) => css`
6416
- &.${rootClassName$11} {
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$11, className);
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$10 = 'dot-app-toolbar';
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$10} {
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$10, className, denseClass, showMainMenu ? '' : 'without-menu-icon');
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$$ = 'dot-chip';
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$$, className, errorClass);
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$_ = 'dot-autocomplete';
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$_, size === 'medium' && inputMediumClassName, className);
7070
- const getTextFieldRootClassNames = (textFieldWarningClassName, isReadOnly) => useStylesWithRootClass(rootClassName$1p, isReadOnly && readOnlyClassName$1, textFieldWarningClassName);
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$1e, popperClassName);
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$Z = 'dot-avatar-group';
7511
+ const rootClassName$_ = 'dot-avatar-group';
7512
7512
  const StyledAvatarGroup = styled(AvatarGroup)`
7513
7513
  ${() => css`
7514
- &.${rootClassName$Z} {
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$Z, className);
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$Y = 'dot-avatar-with-details';
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$Y} {
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$Y,
7591
+ 'data-pendoid': dataPendoId = rootClassName$Z,
7592
7592
  'data-testid': dataTestId,
7593
7593
  subtitle,
7594
7594
  title
7595
7595
  }) => {
7596
- const rootClasses = useStylesWithRootClass(rootClassName$Y, className);
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$X = 'dot-breadcrumbs';
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$X} {
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$X} {
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$X,
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$W = 'dot-button-toggle';
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$W} {
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$W,
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$W, className);
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$V = 'dot-card';
8241
+ const rootClassName$W = 'dot-card';
8242
8242
  const StyledCard = styled(Card)`
8243
8243
  ${({
8244
8244
  theme
8245
8245
  }) => css`
8246
- &.${rootClassName$V} {
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$V, className);
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$U = 'dot-card-footer';
8291
+ const rootClassName$V = 'dot-card-footer';
8292
8292
  const StyledDiv = styled.div`
8293
8293
  ${({
8294
8294
  theme
8295
8295
  }) => css`
8296
- &.${rootClassName$U} {
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$U, className);
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$T = 'dot-card-header';
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$T} {
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$T, className);
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$S = 'dot-form-control-label';
8399
+ const rootClassName$T = 'dot-form-control-label';
8400
8400
  const StyledFormControlLabel = styled(FormControlLabel)`
8401
- &.${rootClassName$S} {
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$R = 'dot-checkbox';
8424
+ const rootClassName$S = 'dot-checkbox';
8425
8425
  const StyledCheckbox = styled(Checkbox)`
8426
8426
  ${({
8427
8427
  theme
8428
8428
  }) => css`
8429
- &.${rootClassName$R} {
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$S,
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$S, className);
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$R
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$Q = 'dot-form-group';
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$Q} {
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$P = 'dot-checkbox-group';
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$P} {
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$S} {
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$O = 'dot-form-group';
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$O} > * {
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$Q, className);
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$Q, rootClassName$P, className, placement);
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$N = 'chip-list';
8723
+ const rootClassName$O = 'chip-list';
8724
8724
  const StyledChipList = styled.div`
8725
8725
  ${({
8726
8726
  theme
8727
8727
  }) => css`
8728
- &.${rootClassName$N} {
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$N,
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$M = 'dot-dialog';
8810
+ const rootClassName$N = 'dot-dialog';
8811
8811
  const StyledDialog = styled(Dialog)`
8812
8812
  ${({
8813
8813
  theme
8814
8814
  }) => css`
8815
- &.${rootClassName$M} {
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$M,
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$M, className);
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$L = 'dot-grid';
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$L, className);
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$L} {
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$K = 'dot-pill';
9367
+ const rootClassName$L = 'dot-pill';
9368
9368
  const StyledPill = styled(Chip)`
9369
9369
  ${({
9370
9370
  theme
9371
9371
  }) => css`
9372
- &.${rootClassName$K} {
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$K, className, status);
9496
+ const rootClasses = useStylesWithRootClass(rootClassName$L, className, status);
9497
9497
  return jsx(StyledPill, {
9498
9498
  "aria-label": ariaLabel,
9499
9499
  bordercolor: bordercolor,
@@ -11101,18 +11101,18 @@ function addAutoHideDuration(severity) {
11101
11101
  return severity === 'error' ? null : 10000;
11102
11102
  }
11103
11103
 
11104
- const rootClassName$J = 'dot-snackbar';
11104
+ const rootClassName$K = 'dot-snackbar';
11105
11105
  const StyledSnackbar = styled(Snackbar)`
11106
11106
  ${({
11107
11107
  theme,
11108
11108
  width,
11109
11109
  $anchorOriginTop
11110
11110
  }) => css`
11111
- &.${rootClassName$J} {
11111
+ &.${rootClassName$K} {
11112
11112
  .MuiAlert-message {
11113
11113
  word-break: break-word;
11114
11114
  }
11115
- .${rootClassName$1l} {
11115
+ .${rootClassName$1m} {
11116
11116
  align-items: flex-start;
11117
11117
  }
11118
11118
  &.MuiSnackbar-anchorOriginTopLeft,
@@ -11165,7 +11165,7 @@ const DotSnackbar = ({
11165
11165
  }) => {
11166
11166
  const hasActions = !!(primaryAction || secondaryAction);
11167
11167
  const calculatedAutoHideDuration = autoHideDuration === null || autoHideDuration > 0 ? autoHideDuration : addAutoHideDuration(severity);
11168
- const rootClasses = useStylesWithRootClass(rootClassName$J, className);
11168
+ const rootClasses = useStylesWithRootClass(rootClassName$K, className);
11169
11169
  const handleSnackbarClose = reason => {
11170
11170
  if (!reason || hideOnClickAway || !hideOnClickAway && reason !== 'clickaway') {
11171
11171
  onClose();
@@ -11235,10 +11235,10 @@ const DotSnackbar = ({
11235
11235
  });
11236
11236
  };
11237
11237
 
11238
- const rootClassName$I = 'dot-snackbar-container';
11238
+ const rootClassName$J = 'dot-snackbar-container';
11239
11239
  const StyledSnackbarContainer = styled.div`
11240
11240
  ${() => css`
11241
- &.${rootClassName$I} {
11241
+ &.${rootClassName$J} {
11242
11242
  position: absolute;
11243
11243
  top: 0;
11244
11244
  width: 250px;
@@ -11270,10 +11270,10 @@ const DotSnackbarContainer = ({
11270
11270
  };
11271
11271
  }
11272
11272
  return jsx(StyledSnackbarContainer, {
11273
- className: rootClassName$I,
11273
+ className: rootClassName$J,
11274
11274
  children: jsx("div", {
11275
- className: rootClassName$I,
11276
- "data-testid": rootClassName$I,
11275
+ className: rootClassName$J,
11276
+ "data-testid": rootClassName$J,
11277
11277
  children: alerts.slice().reverse().map(alert => {
11278
11278
  return jsx(DotSnackbar, {
11279
11279
  autoCloseOnAction: autoCloseOnAction,
@@ -11347,12 +11347,12 @@ const useEnqueueErrorMessage = error => {
11347
11347
  }, [error]);
11348
11348
  };
11349
11349
 
11350
- const rootClassName$H = 'dot-dashboard-details';
11350
+ const rootClassName$I = 'dot-dashboard-details';
11351
11351
  const StyledDashboardDetails = styled(DotDrawer)`
11352
11352
  ${({
11353
11353
  theme
11354
11354
  }) => css`
11355
- &.${rootClassName$H} {
11355
+ &.${rootClassName$I} {
11356
11356
  .dot-drawer-paper {
11357
11357
  padding: 0;
11358
11358
  width: 382px;
@@ -11478,7 +11478,7 @@ const DotDashboardDetailsView = ({
11478
11478
  modifiedAuthorUser
11479
11479
  }) => {
11480
11480
  var _a, _b;
11481
- const rootClasses = useStylesWithRootClass(rootClassName$H, className);
11481
+ const rootClasses = useStylesWithRootClass(rootClassName$I, className);
11482
11482
  const closeHandler = useCallback(event => {
11483
11483
  onClose && onClose(event);
11484
11484
  }, [onClose]);
@@ -12150,12 +12150,12 @@ function DotDashboardDialog({
12150
12150
  });
12151
12151
  }
12152
12152
 
12153
- const rootClassName$G = 'dot-impact-dialog';
12153
+ const rootClassName$H = 'dot-impact-dialog';
12154
12154
  const StyledImpactDialog = styled(DotDialog)`
12155
12155
  ${({
12156
12156
  theme
12157
12157
  }) => css`
12158
- &.${rootClassName$G} {
12158
+ &.${rootClassName$H} {
12159
12159
  .high-impact-default-content {
12160
12160
  margin-top: ${theme.spacing(2)};
12161
12161
  margin-bottom: ${theme.spacing(3)};
@@ -12261,7 +12261,7 @@ const DotImpactDialog = ({
12261
12261
  }
12262
12262
  return '';
12263
12263
  }, [action, capitalize, impact, record]);
12264
- const rootClasses = useStylesWithRootClass(rootClassName$G, className);
12264
+ const rootClasses = useStylesWithRootClass(rootClassName$H, className);
12265
12265
  return jsx(StyledImpactDialog, {
12266
12266
  "data-testid": dataTestId,
12267
12267
  className: rootClasses,
@@ -13633,7 +13633,7 @@ function DotDashboardHeader({
13633
13633
  });
13634
13634
  }
13635
13635
 
13636
- const rootClassName$F = 'dot-empty-state';
13636
+ const rootClassName$G = 'dot-empty-state';
13637
13637
  const emptyStateImageSizing = {
13638
13638
  xsmall: 9,
13639
13639
  dense: 15,
@@ -13704,9 +13704,9 @@ const StyledEmptyState = styled.div`
13704
13704
  `}
13705
13705
  `;
13706
13706
 
13707
- const rootClassName$E = 'dot-illustration';
13707
+ const rootClassName$F = 'dot-illustration';
13708
13708
  const StyledIllustration = styled.span`
13709
- &.${rootClassName$E} {
13709
+ &.${rootClassName$F} {
13710
13710
  display: inline-block;
13711
13711
  }
13712
13712
  `;
@@ -13723,17 +13723,17 @@ const DotIllustration = ({
13723
13723
  tooltip,
13724
13724
  tooltipPlacement = 'right-end'
13725
13725
  }) => {
13726
- const rootClasses = useStylesWithRootClass(rootClassName$E, className);
13726
+ const rootClasses = useStylesWithRootClass(rootClassName$F, className);
13727
13727
  return jsx(DotTooltip, {
13728
13728
  childrenDisplayStyle: "inline-block",
13729
13729
  title: tooltip,
13730
13730
  placement: tooltipPlacement,
13731
- "data-testid": `${dataTestId || rootClassName$E}-tooltip`,
13731
+ "data-testid": `${dataTestId || rootClassName$F}-tooltip`,
13732
13732
  children: jsx(StyledIllustration, {
13733
13733
  "aria-hidden": "false",
13734
13734
  "aria-label": ariaLabel || title || 'Illustration',
13735
13735
  className: rootClasses,
13736
- "data-testid": dataTestId || rootClassName$E,
13736
+ "data-testid": dataTestId || rootClassName$F,
13737
13737
  role: ariaRole,
13738
13738
  children: jsx("img", {
13739
13739
  alt: alt || 'Illustration',
@@ -13759,7 +13759,7 @@ const DotEmptyState = ({
13759
13759
  subtitle,
13760
13760
  title
13761
13761
  }) => {
13762
- const rootClasses = useStylesWithRootClass(rootClassName$F, className);
13762
+ const rootClasses = useStylesWithRootClass(rootClassName$G, className);
13763
13763
  return jsxs(StyledEmptyState, {
13764
13764
  "aria-label": ariaLabel,
13765
13765
  className: `${rootClasses} ${size}`,
@@ -13840,20 +13840,20 @@ const StyledRadioGroup = styled(RadioGroup)`
13840
13840
  &.${groupClassName} {
13841
13841
  padding-left: ${theme.spacing(2.5)};
13842
13842
 
13843
- .${rootClassName$S} {
13843
+ .${rootClassName$T} {
13844
13844
  margin: 0;
13845
13845
  }
13846
13846
  }
13847
13847
  `}
13848
13848
  `;
13849
13849
 
13850
- const rootClassName$D = 'dot-date-picker';
13850
+ const rootClassName$E = 'dot-date-picker';
13851
13851
  const popperClassName = 'dot-date-picker-popper';
13852
13852
  const containerClassName$2 = 'dot-date-picker-container';
13853
13853
  const rectanglePickersDayClassName = 'dot-rectangle-pickers-day';
13854
13854
  const StyledDatePickerContainer = styled.div`
13855
13855
  ${() => css`
13856
- &.${rootClassName$D} .full-width {
13856
+ &.${rootClassName$E} .full-width {
13857
13857
  width: 100%;
13858
13858
  }
13859
13859
  `}
@@ -13862,7 +13862,7 @@ const StyledDatePicker = styled(DatePicker)`
13862
13862
  ${({
13863
13863
  theme
13864
13864
  }) => css`
13865
- &.${rootClassName$D} {
13865
+ &.${rootClassName$E} {
13866
13866
  ${pickerInputStyles(theme)};
13867
13867
 
13868
13868
  .Mui-disabled.MuiInputBase-root,
@@ -13904,7 +13904,7 @@ const StyledPickersDay = styled(PickersDay)`
13904
13904
  `}
13905
13905
  `;
13906
13906
 
13907
- const rootClassName$C = 'dot-time-picker';
13907
+ const rootClassName$D = 'dot-time-picker';
13908
13908
  const containerClassName$1 = 'dot-time-picker-container';
13909
13909
  const timePickerPopperClassName = 'dot-time-picker-popper';
13910
13910
  const TIME_SELECTION_HEIGHT_SPACING = 34.5;
@@ -13924,7 +13924,7 @@ const StyledTimePicker = styled(TimePicker)`
13924
13924
  ${({
13925
13925
  theme
13926
13926
  }) => css`
13927
- &.${rootClassName$C} {
13927
+ &.${rootClassName$D} {
13928
13928
  ${pickerInputStyles(theme)};
13929
13929
 
13930
13930
  .Mui-disabled.MuiInputBase-root,
@@ -14001,36 +14001,36 @@ const StyledTimePickerPopper = styled(Popper)`
14001
14001
  `}
14002
14002
  `;
14003
14003
 
14004
- const rootClassName$B = 'dot-form';
14004
+ const rootClassName$C = 'dot-form';
14005
14005
  const StyledFormContainer = styled.div`
14006
14006
  ${({
14007
14007
  theme
14008
14008
  }) => css`
14009
- &.${rootClassName$B} {
14009
+ &.${rootClassName$C} {
14010
14010
  margin: ${theme.spacing(3, 0)};
14011
14011
 
14012
- .${rootClassName$Q},
14013
- .${rootClassName$S},
14014
- .${rootClassName$1p},
14012
+ .${rootClassName$R},
14013
+ .${rootClassName$T},
14014
+ .${rootClassName$1q},
14015
14015
  .${rootSelectClassName},
14016
- .${rootClassName$D},
14017
- .${rootClassName$C} {
14016
+ .${rootClassName$E},
14017
+ .${rootClassName$D} {
14018
14018
  margin: ${theme.spacing(1, 0)};
14019
14019
  }
14020
14020
 
14021
14021
  .${wrapperClassName$2} {
14022
- + .${rootClassName$1p},
14022
+ + .${rootClassName$1q},
14023
14023
  .${wrapperClassName$2}
14024
14024
  + .${rootSelectClassName},
14025
14025
  .${wrapperClassName$2}
14026
- + .${rootClassName$D},
14026
+ + .${rootClassName$E},
14027
14027
  .${wrapperClassName$2}
14028
- + .${rootClassName$C} {
14028
+ + .${rootClassName$D} {
14029
14029
  margin: ${theme.spacing(0, 0, 1, 0)};
14030
14030
  }
14031
14031
 
14032
- .${rootClassName$P}, .${groupClassName} {
14033
- .${rootClassName$S} {
14032
+ .${rootClassName$Q}, .${groupClassName} {
14033
+ .${rootClassName$T} {
14034
14034
  margin: 0;
14035
14035
  }
14036
14036
  }
@@ -14045,7 +14045,7 @@ const DotForm = ({
14045
14045
  'data-testid': dataTestId,
14046
14046
  onSubmit
14047
14047
  }) => {
14048
- const rootClasses = useStylesWithRootClass(rootClassName$B, className);
14048
+ const rootClasses = useStylesWithRootClass(rootClassName$C, className);
14049
14049
  return jsx("form", {
14050
14050
  "aria-label": ariaLabel,
14051
14051
  "data-testid": dataTestId,
@@ -14058,10 +14058,10 @@ const DotForm = ({
14058
14058
  });
14059
14059
  };
14060
14060
 
14061
- const rootClassName$A = 'dot-dynamic-form';
14061
+ const rootClassName$B = 'dot-dynamic-form';
14062
14062
  const StyledDynamicForm = styled(DotForm)`
14063
14063
  ${() => css`
14064
- &.${rootClassName$A} {
14064
+ &.${rootClassName$B} {
14065
14065
  }
14066
14066
  `}
14067
14067
  `;
@@ -14241,12 +14241,12 @@ const checkIfFormDataValid = formState => {
14241
14241
  return true;
14242
14242
  };
14243
14243
 
14244
- const rootClassName$z = 'dot-progress-button';
14244
+ const rootClassName$A = 'dot-progress-button';
14245
14245
  const StyledProgressButton = styled(DotButton)`
14246
14246
  ${({
14247
14247
  theme
14248
14248
  }) => css`
14249
- &.${rootClassName$z} {
14249
+ &.${rootClassName$A} {
14250
14250
  .hidden {
14251
14251
  // hide children but preserve its space so that
14252
14252
  // button's dimensions don't change
@@ -14271,7 +14271,7 @@ const DotProgressButton = ({
14271
14271
  ariaLabel,
14272
14272
  children,
14273
14273
  className,
14274
- 'data-pendoid': dataPendoId = rootClassName$z,
14274
+ 'data-pendoid': dataPendoId = rootClassName$A,
14275
14275
  'data-testid': dataTestId,
14276
14276
  disabled = false,
14277
14277
  disableInteractive,
@@ -14285,7 +14285,7 @@ const DotProgressButton = ({
14285
14285
  tooltip,
14286
14286
  type = 'primary'
14287
14287
  }) => {
14288
- const rootClasses = useStylesWithRootClass(rootClassName$z, className);
14288
+ const rootClasses = useStylesWithRootClass(rootClassName$A, className);
14289
14289
  const isButtonDisabled = disabled || isLoading;
14290
14290
  const titleClasses = useStylesWithRootClass(isLoading ? 'hidden' : '');
14291
14291
  const progressCircleSize = size === 'large' ? SPINNER_LARGE_SIZE : SPINNER_DEFAULT_SIZE;
@@ -14315,12 +14315,12 @@ const DotProgressButton = ({
14315
14315
  });
14316
14316
  };
14317
14317
 
14318
- const rootClassName$y = 'dot-radio';
14318
+ const rootClassName$z = 'dot-radio';
14319
14319
  const StyledRadioButton = styled(Radio)`
14320
14320
  ${({
14321
14321
  theme
14322
14322
  }) => css`
14323
- &.${rootClassName$y} {
14323
+ &.${rootClassName$z} {
14324
14324
  padding: 8px;
14325
14325
 
14326
14326
  svg {
@@ -14338,7 +14338,7 @@ function DotRadioButton({
14338
14338
  ariaLabel,
14339
14339
  checked,
14340
14340
  className,
14341
- 'data-pendoid': dataPendoId = rootClassName$S,
14341
+ 'data-pendoid': dataPendoId = rootClassName$T,
14342
14342
  'data-testid': dataTestId,
14343
14343
  disabled,
14344
14344
  id,
@@ -14351,7 +14351,7 @@ function DotRadioButton({
14351
14351
  size = 'medium',
14352
14352
  value
14353
14353
  }) {
14354
- const rootClasses = useStylesWithRootClass(rootClassName$S, className);
14354
+ const rootClasses = useStylesWithRootClass(rootClassName$T, className);
14355
14355
  const handleChange = event => {
14356
14356
  onChange && onChange(event, event.target.value);
14357
14357
  };
@@ -14359,7 +14359,7 @@ function DotRadioButton({
14359
14359
  const radioControl = jsx(StyledRadioButton, {
14360
14360
  checked: checked,
14361
14361
  classes: {
14362
- root: rootClassName$y
14362
+ root: rootClassName$z
14363
14363
  },
14364
14364
  color: "primary",
14365
14365
  "data-pendoid": dataPendoId,
@@ -14405,7 +14405,7 @@ const DotRadioGroup = ({
14405
14405
  size = 'medium'
14406
14406
  }) => {
14407
14407
  const placement = `${placementClassName}${labelPlacement}`;
14408
- const rootClasses = useStylesWithRootClass(rootClassName$Q, className, placement);
14408
+ const rootClasses = useStylesWithRootClass(rootClassName$R, className, placement);
14409
14409
  const radioValue = value || defaultValue;
14410
14410
  const [selectedValue, setSelectedValue] = useState(radioValue);
14411
14411
  /* This will ensure that value can be updated from the outside */
@@ -14470,7 +14470,7 @@ const DotRadioGroup = ({
14470
14470
  });
14471
14471
  };
14472
14472
 
14473
- const rootClassName$x = 'dot-switch';
14473
+ const rootClassName$y = 'dot-switch';
14474
14474
  const StyledSwitch = styled(Switch)`
14475
14475
  ${({
14476
14476
  theme
@@ -14499,7 +14499,7 @@ const DotSwitch = ({
14499
14499
  checked,
14500
14500
  className,
14501
14501
  color,
14502
- 'data-pendoid': dataPendoId = rootClassName$x,
14502
+ 'data-pendoid': dataPendoId = rootClassName$y,
14503
14503
  'data-testid': dataTestId,
14504
14504
  disabled = false,
14505
14505
  id,
@@ -14509,7 +14509,7 @@ const DotSwitch = ({
14509
14509
  onChange,
14510
14510
  size = 'medium'
14511
14511
  }) => {
14512
- const rootClasses = useStylesWithRootClass(rootClassName$x, className);
14512
+ const rootClasses = useStylesWithRootClass(rootClassName$y, className);
14513
14513
  const handleChange = event => {
14514
14514
  onChange && onChange(event);
14515
14515
  };
@@ -14539,7 +14539,7 @@ const DotSwitch = ({
14539
14539
  tabIndex: 0
14540
14540
  });
14541
14541
  return jsx(StyledFormControlLabel, {
14542
- className: rootClassName$S,
14542
+ className: rootClassName$T,
14543
14543
  control: switchControl,
14544
14544
  label: label,
14545
14545
  labelPlacement: labelPlacement
@@ -14860,7 +14860,7 @@ const DotDynamicForm = ({
14860
14860
  onChange,
14861
14861
  onSubmit
14862
14862
  }) => {
14863
- const rootClasses = useStylesWithRootClass(rootClassName$A, className);
14863
+ const rootClasses = useStylesWithRootClass(rootClassName$B, className);
14864
14864
  // Memoize this operation so that is doesn't get executed each time this
14865
14865
  // component re-renders
14866
14866
  const initialFormState = useMemo(() => getInitialFormState(config, liveValidation), [config, liveValidation, getInitialFormState]);
@@ -15106,7 +15106,7 @@ const DotDynamicForm = ({
15106
15106
  });
15107
15107
  };
15108
15108
 
15109
- const rootClassName$w = 'dot-inline-edit';
15109
+ const rootClassName$x = 'dot-inline-edit';
15110
15110
  const editModeClassName = 'dot-edit-mode';
15111
15111
  const viewModeClassName = 'dot-view-mode';
15112
15112
  const placeholderClassName = 'dot-placeholder';
@@ -15118,7 +15118,7 @@ const StyledInlineEdit = styled.div`
15118
15118
  theme,
15119
15119
  fullWidth
15120
15120
  }) => css`
15121
- &.${rootClassName$w} {
15121
+ &.${rootClassName$x} {
15122
15122
  align-items: center;
15123
15123
  color: ${theme.palette.figma.typography.black};
15124
15124
  display: ${fullWidth ? 'flex' : 'inline-flex'};
@@ -15332,7 +15332,7 @@ const DotInlineEdit = ({
15332
15332
  bindings,
15333
15333
  charactersLimit,
15334
15334
  className,
15335
- 'data-pendoid': dataPendoId = rootClassName$w,
15335
+ 'data-pendoid': dataPendoId = rootClassName$x,
15336
15336
  'data-testid': dataTestId,
15337
15337
  fullWidth = true,
15338
15338
  hideActionButtons,
@@ -15368,7 +15368,7 @@ const DotInlineEdit = ({
15368
15368
  }
15369
15369
  }, [value]);
15370
15370
  const isSaveDisabled = checkIfEmptyValue(inputValue);
15371
- const rootClasses = useStylesWithRootClass(rootClassName$w, className, editing ? editModeClassName : '');
15371
+ const rootClasses = useStylesWithRootClass(rootClassName$x, className, editing ? editModeClassName : '');
15372
15372
  const handleShowTooltip = visible => {
15373
15373
  if (!editing) {
15374
15374
  setShowTooltip(visible);
@@ -15556,13 +15556,13 @@ const DotInlineEdit = ({
15556
15556
  });
15557
15557
  };
15558
15558
 
15559
- const rootClassName$v = 'dot-navigation-rail';
15559
+ const rootClassName$w = 'dot-navigation-rail';
15560
15560
  const StyledNavigationRail = styled.div`
15561
15561
  ${({
15562
15562
  theme,
15563
15563
  railItemPosition
15564
15564
  }) => css`
15565
- &.${rootClassName$v} {
15565
+ &.${rootClassName$w} {
15566
15566
  background: ${theme.palette.figma.neutral.elevated};
15567
15567
  border-left: 1px solid ${theme.palette.figma.border.default};
15568
15568
  display: flex;
@@ -15621,7 +15621,7 @@ const DotNavigationRail = ({
15621
15621
  railItems,
15622
15622
  selectedIndex = 0
15623
15623
  }) => {
15624
- const rootClasses = useStylesWithRootClass(rootClassName$v, className);
15624
+ const rootClasses = useStylesWithRootClass(rootClassName$w, className);
15625
15625
  const [selectedItemIndex, setSelectedItemIndex] = useState(selectedIndex);
15626
15626
  /* Used to change selected index programmatically from the consumer component */
15627
15627
  useEffect(() => {
@@ -15672,12 +15672,12 @@ const DotNavigationRail = ({
15672
15672
  });
15673
15673
  };
15674
15674
 
15675
- const rootClassName$u = 'dot-skeleton';
15675
+ const rootClassName$v = 'dot-skeleton';
15676
15676
  const StyledSkeleton = styled(Skeleton)`
15677
15677
  ${({
15678
15678
  theme
15679
15679
  }) => css`
15680
- &.${rootClassName$u} {
15680
+ &.${rootClassName$v} {
15681
15681
  background-color: ${theme.palette.figma.border.darker};
15682
15682
  }
15683
15683
  `}
@@ -15692,7 +15692,7 @@ const DotSkeleton = ({
15692
15692
  width,
15693
15693
  variant
15694
15694
  }) => {
15695
- const rootClasses = useStylesWithRootClass(rootClassName$u, className);
15695
+ const rootClasses = useStylesWithRootClass(rootClassName$v, className);
15696
15696
  return jsx(StyledSkeleton, {
15697
15697
  animation: "wave",
15698
15698
  "aria-label": ariaLabel,
@@ -15707,12 +15707,12 @@ const DotSkeleton = ({
15707
15707
  });
15708
15708
  };
15709
15709
 
15710
- const rootClassName$t = 'dot-split-button-group';
15710
+ const rootClassName$u = 'dot-split-button-group';
15711
15711
  const StyledSplitButtonGroup = styled(ButtonGroup)`
15712
15712
  ${({
15713
15713
  theme
15714
15714
  }) => css`
15715
- &.${rootClassName$t} {
15715
+ &.${rootClassName$u} {
15716
15716
  &.outlined,
15717
15717
  &.text {
15718
15718
  .expand-button {
@@ -15778,7 +15778,7 @@ const DotSplitButton = ({
15778
15778
  autoFocus = false,
15779
15779
  ariaLabel,
15780
15780
  className,
15781
- 'data-pendoid': dataPendoId = rootClassName$t,
15781
+ 'data-pendoid': dataPendoId = rootClassName$u,
15782
15782
  'data-testid': dataTestId,
15783
15783
  defaultMainOptionKey,
15784
15784
  disabled = false,
@@ -15794,7 +15794,7 @@ const DotSplitButton = ({
15794
15794
  tooltipPlacement,
15795
15795
  type = 'primary'
15796
15796
  }) => {
15797
- const rootClasses = useStylesWithRootClass(rootClassName$t, className, type, disabled ? 'disabled' : '');
15797
+ const rootClasses = useStylesWithRootClass(rootClassName$u, className, type, disabled ? 'disabled' : '');
15798
15798
  const [open, setOpen] = useState(false);
15799
15799
  const anchorRef = useRef(null);
15800
15800
  const hasEmptyOptions = options.length === 0;
@@ -15862,7 +15862,7 @@ const DotSplitButton = ({
15862
15862
  });
15863
15863
  };
15864
15864
 
15865
- const rootClassName$s = 'dot-stepper';
15865
+ const rootClassName$t = 'dot-stepper';
15866
15866
  const stepListClassName = 'dot-stepper-list';
15867
15867
  const contentClassName = 'dot-stepper-content';
15868
15868
  const StyledStepper = styled.div`
@@ -15870,7 +15870,7 @@ const StyledStepper = styled.div`
15870
15870
  theme,
15871
15871
  offset
15872
15872
  }) => css`
15873
- &.${rootClassName$s} {
15873
+ &.${rootClassName$t} {
15874
15874
  display: flex;
15875
15875
  align-items: flex-start;
15876
15876
  padding: 0;
@@ -16185,7 +16185,7 @@ const DotStepper = ({
16185
16185
  return ['left', 'right'].includes(stepsPosition) ? stepsPosition : 'left';
16186
16186
  }
16187
16187
  };
16188
- const rootClasses = useStylesWithRootClass(rootClassName$s, getStepsPosition(), className);
16188
+ const rootClasses = useStylesWithRootClass(rootClassName$t, getStepsPosition(), className);
16189
16189
  const stepContentClasses = displayInitialContent || displayFinalContent ? 'center-content' : '';
16190
16190
  const stickyBottomClasses = useStylesWithRootClass('actions-container', isStickyBottom ? 'with-top-border' : '');
16191
16191
  const actionsClasses = useStylesWithRootClass('actions', displayInitialContent || displayFinalContent ? 'center-actions' : '');
@@ -16403,12 +16403,12 @@ const DotStepper = ({
16403
16403
  });
16404
16404
  };
16405
16405
 
16406
- const rootClassName$r = 'dot-table-pagination-custom-actions';
16406
+ const rootClassName$s = 'dot-table-pagination-custom-actions';
16407
16407
  const StyledTablePaginationCustomActions = styled.div`
16408
16408
  ${({
16409
16409
  theme
16410
16410
  }) => css`
16411
- &.${rootClassName$r} {
16411
+ &.${rootClassName$s} {
16412
16412
  margin-left: ${theme.spacing(2.5)};
16413
16413
  display: flex;
16414
16414
  align-items: center;
@@ -16532,7 +16532,7 @@ const DotTablePaginationCustomActions = props => {
16532
16532
  });
16533
16533
  };
16534
16534
  return jsxs(StyledTablePaginationCustomActions, {
16535
- className: rootClassName$r,
16535
+ className: rootClassName$s,
16536
16536
  children: [jsx(DotIconButton, {
16537
16537
  ariaLabel: "previous page",
16538
16538
  className: "page-control-button",
@@ -16579,7 +16579,7 @@ const DotTablePaginationCustomActions = props => {
16579
16579
  });
16580
16580
  };
16581
16581
 
16582
- const rootClassName$q = 'dot-table-pagination';
16582
+ const rootClassName$r = 'dot-table-pagination';
16583
16583
  // TO-DO: Determine how to apply styles to standard popper element
16584
16584
  const paginationItemClassName = 'dot-pagination-menu-item';
16585
16585
  const StyledTablePagination = styled.div`
@@ -16587,7 +16587,7 @@ const StyledTablePagination = styled.div`
16587
16587
  theme,
16588
16588
  typography
16589
16589
  }) => css`
16590
- .${rootClassName$q} {
16590
+ .${rootClassName$r} {
16591
16591
  border-top: 1px solid ${theme.palette.figma.border.default};
16592
16592
 
16593
16593
  .dot-caption,
@@ -16630,7 +16630,7 @@ const DotTablePagination = ({
16630
16630
  showJumpToPageActionButton = false,
16631
16631
  typography = 'subtitle2'
16632
16632
  }) => {
16633
- const rootClasses = useStylesWithRootClass(rootClassName$q, className, showJumpToPageActionButton ? 'with-custom-actions' : '');
16633
+ const rootClasses = useStylesWithRootClass(rootClassName$r, className, showJumpToPageActionButton ? 'with-custom-actions' : '');
16634
16634
  const handlePageChange = (event, newPage) => {
16635
16635
  onPageChange && onPageChange(newPage);
16636
16636
  };
@@ -16639,7 +16639,7 @@ const DotTablePagination = ({
16639
16639
  };
16640
16640
  return (/* Container is used to pass 'typography' prop to a styled component */
16641
16641
  jsx(StyledTablePagination, {
16642
- className: rootClassName$q,
16642
+ className: rootClassName$r,
16643
16643
  typography: typography,
16644
16644
  children: jsx(TablePagination, {
16645
16645
  ActionsComponent: showJumpToPageActionButton ? DotTablePaginationCustomActions : undefined,
@@ -16666,14 +16666,14 @@ const DotTablePagination = ({
16666
16666
  );
16667
16667
  };
16668
16668
 
16669
- const rootClassName$p = 'dot-table';
16669
+ const rootClassName$q = 'dot-table';
16670
16670
  const MULTISELECT_COLUMN_WIDTH = 52;
16671
16671
  const COLLAPSIBLE_COLUMN_WIDTH = 42;
16672
16672
  const StyledPaper$1 = styled(Paper)`
16673
16673
  ${({
16674
16674
  theme
16675
16675
  }) => css`
16676
- &.${rootClassName$p} {
16676
+ &.${rootClassName$q} {
16677
16677
  background: ${theme.palette.figma.background.level0.componentsBackground};
16678
16678
  border: 1px solid ${theme.palette.figma.border.default};
16679
16679
  overflow: hidden;
@@ -16816,10 +16816,10 @@ const StyledMenu$1 = styled(DotMenu)`
16816
16816
  }
16817
16817
  `;
16818
16818
 
16819
- const rootClassName$o = 'dot-tbody';
16819
+ const rootClassName$p = 'dot-tbody';
16820
16820
  const StyledTableBody = styled(TableBody)`
16821
16821
  ${() => css`
16822
- &.${rootClassName$o} {
16822
+ &.${rootClassName$p} {
16823
16823
  tr:last-child td {
16824
16824
  border-bottom: none;
16825
16825
  }
@@ -17014,12 +17014,12 @@ function stableSort(array, comparator) {
17014
17014
  return stabilizedThis.map(el => el[0]);
17015
17015
  }
17016
17016
 
17017
- const rootClassName$n = 'dot-td';
17017
+ const rootClassName$o = 'dot-td';
17018
17018
  const StyledTableCell = styled(TableCell)`
17019
17019
  ${({
17020
17020
  theme
17021
17021
  }) => css`
17022
- &.${rootClassName$n} {
17022
+ &.${rootClassName$o} {
17023
17023
  padding-top: 0;
17024
17024
  padding-bottom: 0;
17025
17025
 
@@ -17114,7 +17114,7 @@ const DotBodyCell = ({
17114
17114
  const isOverflowing = actionTableCellWidth > (wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current.clientWidth);
17115
17115
  setShowMenu(isOverflowing);
17116
17116
  };
17117
- const rootClasses = useStylesWithRootClass(rootClassName$n, className, noWrap && 'noWrap', Array.isArray(value) && 'actionItems');
17117
+ const rootClasses = useStylesWithRootClass(rootClassName$o, className, noWrap && 'noWrap', Array.isArray(value) && 'actionItems');
17118
17118
  const getTableCellValue = () => {
17119
17119
  if (Array.isArray(value)) {
17120
17120
  return jsx("div", {
@@ -17182,13 +17182,13 @@ const EmptyDotRow = ({
17182
17182
  const TABLE_TYPOGRAPHY_VARIANT = 'body1';
17183
17183
  const TABLE_DEFAULT_SKELETON_ROWS = 4;
17184
17184
 
17185
- const rootClassName$m = 'dot-th-checkbox';
17185
+ const rootClassName$n = 'dot-th-checkbox';
17186
17186
  const styledTableHeaderCheckboxElement = (isCell = true) => {
17187
17187
  return styled(isCell ? TableCell : 'div')`
17188
17188
  ${({
17189
17189
  theme
17190
17190
  }) => css`
17191
- &.${rootClassName$m} {
17191
+ &.${rootClassName$n} {
17192
17192
  background: ${theme.palette.figma.background.level0.componentsBackground};
17193
17193
  padding: ${theme.spacing(0, 1)};
17194
17194
  width: ${theme.spacing(5)};
@@ -17216,7 +17216,7 @@ const DotHeaderCheckboxCell = ({
17216
17216
  isFromTableSelectionToolbar,
17217
17217
  multiSelectHeader
17218
17218
  }) => {
17219
- const rootClasses = useStylesWithRootClass(rootClassName$m, className, isFromTableSelectionToolbar ? 'table-selection-toolbar-checkbox' : '');
17219
+ const rootClasses = useStylesWithRootClass(rootClassName$n, className, isFromTableSelectionToolbar ? 'table-selection-toolbar-checkbox' : '');
17220
17220
  const [multiSelectState, setMultiSelectState] = useState('unchecked');
17221
17221
  const {
17222
17222
  onCheckAllChange,
@@ -17266,12 +17266,12 @@ const DotHeaderCheckboxCell = ({
17266
17266
  });
17267
17267
  };
17268
17268
 
17269
- const rootClassName$l = 'dot-th';
17269
+ const rootClassName$m = 'dot-th';
17270
17270
  const StyledTableHeaderCell = styled(TableCell)`
17271
17271
  ${({
17272
17272
  theme
17273
17273
  }) => css`
17274
- &.${rootClassName$l} {
17274
+ &.${rootClassName$m} {
17275
17275
  background: ${theme.palette.figma.background.level0.componentsBackground};
17276
17276
 
17277
17277
  &.MuiTableCell-alignCenter > span.MuiTableSortLabel-root {
@@ -17311,7 +17311,7 @@ const DotHeaderCell = ({
17311
17311
  value,
17312
17312
  width
17313
17313
  }) => {
17314
- const rootClasses = useStylesWithRootClass(rootClassName$l, pinned ? 'dot-pinned-cell' : '', className);
17314
+ const rootClasses = useStylesWithRootClass(rootClassName$m, pinned ? 'dot-pinned-cell' : '', className);
17315
17315
  const headerTitle = isString$2(value) ? value : null;
17316
17316
  const formattedValue = getFormattedTableCellValue(value, typography);
17317
17317
  const getCellValue = () => {
@@ -17402,12 +17402,12 @@ const DotHeaderRow = ({
17402
17402
  });
17403
17403
  };
17404
17404
 
17405
- const rootClassName$k = 'dot-tr';
17405
+ const rootClassName$l = 'dot-tr';
17406
17406
  const StyledTableRowStyles = styled(TableRow)`
17407
17407
  ${({
17408
17408
  theme
17409
17409
  }) => css`
17410
- &.${rootClassName$k} {
17410
+ &.${rootClassName$l} {
17411
17411
  &.selected {
17412
17412
  &,
17413
17413
  .dot-td.dot-pinned-cell,
@@ -17633,12 +17633,12 @@ const ExpandCollapseCell = ({
17633
17633
  });
17634
17634
  };
17635
17635
 
17636
- const rootClassName$j = 'dot-td-checkbox';
17636
+ const rootClassName$k = 'dot-td-checkbox';
17637
17637
  const StyledTableBodyCheckboxCell = styled(TableCell)`
17638
17638
  ${({
17639
17639
  theme
17640
17640
  }) => css`
17641
- &.${rootClassName$j} {
17641
+ &.${rootClassName$k} {
17642
17642
  padding: ${theme.spacing(0, 1)};
17643
17643
  width: ${theme.spacing(5)};
17644
17644
 
@@ -17657,7 +17657,7 @@ const DotBodyCheckboxCell = ({
17657
17657
  onChange,
17658
17658
  rowId
17659
17659
  }) => {
17660
- const rootClasses = useStylesWithRootClass(rootClassName$j, className);
17660
+ const rootClasses = useStylesWithRootClass(rootClassName$k, className);
17661
17661
  const [isCheckboxChecked, setIsCheckboxChecked] = useState(isChecked);
17662
17662
  /** This effect is used when 'checked' status is changed from the outside */
17663
17663
  useEffect(() => {
@@ -17710,7 +17710,7 @@ const DotTableRow = ({
17710
17710
  selectedTableRowIds
17711
17711
  } = multiSelectBody || {};
17712
17712
  const isCheckboxChecked = selectedTableRowIds && selectedTableRowIds.includes(id) || false;
17713
- const rootClasses = useStylesWithRootClass(rootClassName$k, isCheckboxChecked ? 'selected' : undefined, className);
17713
+ const rootClasses = useStylesWithRootClass(rootClassName$l, isCheckboxChecked ? 'selected' : undefined, className);
17714
17714
  const renderCheckboxCell = () => {
17715
17715
  return jsx(DotBodyCheckboxCell, {
17716
17716
  ariaLabel: "Click to select this row",
@@ -17831,7 +17831,7 @@ const DotTableBody = ({
17831
17831
  return jsxs(Fragment, {
17832
17832
  children: [jsx(StyledTableBody, {
17833
17833
  classes: {
17834
- root: rootClassName$o
17834
+ root: rootClassName$p
17835
17835
  },
17836
17836
  children: getTableBodyRows()
17837
17837
  }), jsx(StyledMenu$1, {
@@ -17846,12 +17846,12 @@ const DotTableBody = ({
17846
17846
  });
17847
17847
  };
17848
17848
 
17849
- const rootClassName$i = 'dot-table-selection-toolbar';
17849
+ const rootClassName$j = 'dot-table-selection-toolbar';
17850
17850
  const StyledTableSelectionToolbar = styled(DotActionToolbar)`
17851
17851
  ${({
17852
17852
  theme
17853
17853
  }) => css`
17854
- &.${rootClassName$i} {
17854
+ &.${rootClassName$j} {
17855
17855
  display: flex;
17856
17856
  align-items: center;
17857
17857
  justify-content: space-between;
@@ -17906,7 +17906,7 @@ const DotTableSelectionToolbar = ({
17906
17906
  multiSelectHeader,
17907
17907
  selectedRowsNumber
17908
17908
  }) => {
17909
- const rootClasses = useStylesWithRootClass(rootClassName$i, className);
17909
+ const rootClasses = useStylesWithRootClass(rootClassName$j, className);
17910
17910
  return jsxs(StyledTableSelectionToolbar, {
17911
17911
  ariaLabel: ariaLabel,
17912
17912
  className: rootClasses,
@@ -17992,7 +17992,7 @@ const DotTable = ({
17992
17992
  setPage(page);
17993
17993
  }
17994
17994
  }, [page]);
17995
- const rootClasses = useStylesWithRootClass(rootClassName$p, className, loading ? 'loading' : '', showMultiselectOverTableHeaderRow ? 'with-multiselect-over-table-header' : '', showMultiselectOverTableHeaderRow && !selectedRowsNumber ? 'hidden-multiselect' : '');
17995
+ const rootClasses = useStylesWithRootClass(rootClassName$q, className, loading ? 'loading' : '', showMultiselectOverTableHeaderRow ? 'with-multiselect-over-table-header' : '', showMultiselectOverTableHeaderRow && !selectedRowsNumber ? 'hidden-multiselect' : '');
17996
17996
  const updateData = (newOrder, newOrderBy, newPage, newRowsPerPage) => {
17997
17997
  const newData = stableSort(data, getComparator(newOrder, newOrderBy));
17998
17998
  setPageData(newRowsPerPage ? newData.slice(newPage * newRowsPerPage, newPage * newRowsPerPage + newRowsPerPage) : newData);
@@ -18195,7 +18195,7 @@ const DotTableAction = ({
18195
18195
  });
18196
18196
  };
18197
18197
 
18198
- const rootClassName$h = 'dot-table-actions';
18198
+ const rootClassName$i = 'dot-table-actions';
18199
18199
  const TableActionsContainer = styled.div`
18200
18200
  overflow: hidden;
18201
18201
  text-overflow: clip;
@@ -18285,7 +18285,7 @@ const DotTableActions = ({
18285
18285
  };
18286
18286
  return jsxs(Fragment, {
18287
18287
  children: [jsxs(TableActionsContainer, {
18288
- className: rootClassName$h,
18288
+ className: rootClassName$i,
18289
18289
  ref: wrapperRef,
18290
18290
  children: [!showMenu && renderTableActions(), (showMenu || actions.length > 2) && jsx(DotIconButton, {
18291
18291
  ariaLabel: "more options",
@@ -18309,12 +18309,12 @@ const DotTableActions = ({
18309
18309
  });
18310
18310
  };
18311
18311
 
18312
- const rootClassName$g = 'dot-tabs';
18312
+ const rootClassName$h = 'dot-tabs';
18313
18313
  const StyledTabs = styled(Tabs)`
18314
18314
  ${({
18315
18315
  theme
18316
18316
  }) => css`
18317
- &.${rootClassName$g} {
18317
+ &.${rootClassName$h} {
18318
18318
  &.MuiTabs-root {
18319
18319
  width: 100%;
18320
18320
  }
@@ -18367,7 +18367,7 @@ const DotTabs = ({
18367
18367
  centered = false,
18368
18368
  className,
18369
18369
  color,
18370
- 'data-pendoid': dataPendoId = rootClassName$g,
18370
+ 'data-pendoid': dataPendoId = rootClassName$h,
18371
18371
  'data-testid': dataTestId,
18372
18372
  initialValue = 0,
18373
18373
  onChange,
@@ -18376,7 +18376,7 @@ const DotTabs = ({
18376
18376
  variant = 'standard'
18377
18377
  }) => {
18378
18378
  const [value, setValue] = useState(initialValue);
18379
- const rootClasses = useStylesWithRootClass(rootClassName$g, className);
18379
+ const rootClasses = useStylesWithRootClass(rootClassName$h, className);
18380
18380
  useEffect(() => {
18381
18381
  if (color) {
18382
18382
  console.warn('DEPRECATED: `color` prop is deprecated in `<DotTabs>`, please remove any usage of it in your application.');
@@ -18430,9 +18430,9 @@ const DotTabs = ({
18430
18430
  });
18431
18431
  };
18432
18432
 
18433
- const rootClassName$f = 'dot-file-upload';
18434
- const containerClassName = `${rootClassName$f}-container`;
18435
- const dropZoneClassName = `${rootClassName$f}-drop-zone`;
18433
+ const rootClassName$g = 'dot-file-upload';
18434
+ const containerClassName = `${rootClassName$g}-container`;
18435
+ const dropZoneClassName = `${rootClassName$g}-drop-zone`;
18436
18436
  const StyledFileUploadContainer = styled.div`
18437
18437
  ${({
18438
18438
  theme
@@ -18452,7 +18452,7 @@ const StyledFileUpload = styled.div`
18452
18452
  ${({
18453
18453
  theme
18454
18454
  }) => css`
18455
- &.${rootClassName$f}.${dropZoneClassName} {
18455
+ &.${rootClassName$g}.${dropZoneClassName} {
18456
18456
  align-items: center;
18457
18457
  background: ${theme.palette.figma.background.level0.bckgGray};
18458
18458
  border: 2px dashed ${theme.palette.figma.border.defaultButton};
@@ -18484,12 +18484,12 @@ const StyledFileUpload = styled.div`
18484
18484
  `}
18485
18485
  `;
18486
18486
 
18487
- const rootClassName$e = 'dot-file-list-item';
18487
+ const rootClassName$f = 'dot-file-list-item';
18488
18488
  const StyledFileListItem = styled(StyledListItem)`
18489
18489
  ${({
18490
18490
  theme
18491
18491
  }) => css`
18492
- &.${rootClassName$e} {
18492
+ &.${rootClassName$f} {
18493
18493
  border-bottom: 1px solid ${theme.palette.figma.border.default};
18494
18494
  &:hover {
18495
18495
  cursor: pointer;
@@ -18501,7 +18501,7 @@ const StyledFileListItem = styled(StyledListItem)`
18501
18501
  outline: none;
18502
18502
  }
18503
18503
 
18504
- &.file-success:not(:hover, :focus-visible) .${rootClassName$e}-end-icon {
18504
+ &.file-success:not(:hover, :focus-visible) .${rootClassName$f}-end-icon {
18505
18505
  i:before {
18506
18506
  color: ${theme.palette.figma.success.normal};
18507
18507
  }
@@ -18511,7 +18511,7 @@ const StyledFileListItem = styled(StyledListItem)`
18511
18511
  }
18512
18512
  }
18513
18513
 
18514
- &.file-error:not(:hover, :focus-visible) .${rootClassName$e}-end-icon {
18514
+ &.file-error:not(:hover, :focus-visible) .${rootClassName$f}-end-icon {
18515
18515
  i:before,
18516
18516
  .MuiListItemText-secondary {
18517
18517
  color: ${theme.palette.figma.destructive.normal};
@@ -18553,7 +18553,7 @@ const DotFileListItem = ({
18553
18553
  onKeyPress,
18554
18554
  tabIndex = 0
18555
18555
  }) => {
18556
- const rootClasses = useStylesWithRootClass(rootClassName$e, className, error ? 'file-error' : 'file-success');
18556
+ const rootClasses = useStylesWithRootClass(rootClassName$f, className, error ? 'file-error' : 'file-success');
18557
18557
  const defaultIcon = error ? 'error-solid' : 'check-solid';
18558
18558
  const [endIcon, setEndIcon] = useState(defaultIcon);
18559
18559
  const handleItemClick = clickedFile => _event => onClick === null || onClick === void 0 ? void 0 : onClick(clickedFile);
@@ -18586,7 +18586,7 @@ const DotFileListItem = ({
18586
18586
  })]
18587
18587
  }), jsx(DotIconButton, {
18588
18588
  ariaLabel: "delete file",
18589
- className: `${rootClassName$e}-end-icon`,
18589
+ className: `${rootClassName$f}-end-icon`,
18590
18590
  "data-testid": dataTestId && `${dataTestId}-end-icon`,
18591
18591
  disabled: disableDelete,
18592
18592
  iconId: endIcon,
@@ -18710,7 +18710,7 @@ const DotFileUpload = ({
18710
18710
  buttonOnly = false,
18711
18711
  className,
18712
18712
  contentErrors,
18713
- 'data-pendoid': dataPendoId = rootClassName$f,
18713
+ 'data-pendoid': dataPendoId = rootClassName$g,
18714
18714
  'data-testid': dataTestId,
18715
18715
  disabled,
18716
18716
  hideFilesList,
@@ -18723,7 +18723,7 @@ const DotFileUpload = ({
18723
18723
  const [uploadedFiles, setUploadedFiles] = useState([]);
18724
18724
  const [hasMaxFilesError, setHasMaxFilesError] = useState(false);
18725
18725
  const isUploadDisabled = disabled || maxFiles && uploadedFiles.length >= maxFiles;
18726
- const rootClasses = useStylesWithRootClass(rootClassName$f, className, !buttonOnly ? dropZoneClassName : '', isUploadDisabled ? 'disabled' : '');
18726
+ const rootClasses = useStylesWithRootClass(rootClassName$g, className, !buttonOnly ? dropZoneClassName : '', isUploadDisabled ? 'disabled' : '');
18727
18727
  const maxFilesClasses = useStylesWithRootClass('dot-max-files-message', hasMaxFilesError ? 'dot-max-files-reached' : '');
18728
18728
  const allowMultiple = maxFiles === undefined || maxFiles > 1;
18729
18729
  const setNewlyUploadedFiles = (acceptedFiles, fileRejections) => {
@@ -18795,12 +18795,12 @@ const DotFileUpload = ({
18795
18795
  });
18796
18796
  };
18797
18797
 
18798
- const rootClassName$d = 'dot-divider';
18798
+ const rootClassName$e = 'dot-divider';
18799
18799
  const StyledDivider = styled(Divider)`
18800
18800
  ${({
18801
18801
  theme
18802
18802
  }) => css`
18803
- &.${rootClassName$d} {
18803
+ &.${rootClassName$e} {
18804
18804
  color: ${theme.palette.figma.border.darker};
18805
18805
 
18806
18806
  .MuiDivider-light {
@@ -18820,7 +18820,7 @@ const DotDivider = ({
18820
18820
  orientation,
18821
18821
  variant
18822
18822
  }) => {
18823
- const rootClasses = useStylesWithRootClass(rootClassName$d, className);
18823
+ const rootClasses = useStylesWithRootClass(rootClassName$e, className);
18824
18824
  return jsx(StyledDivider, {
18825
18825
  absolute: absolute,
18826
18826
  "aria-label": ariaLabel,
@@ -18849,7 +18849,7 @@ const DotPopper = ({
18849
18849
  placement
18850
18850
  }) => {
18851
18851
  const [arrowRef, setArrowRef] = useState(null);
18852
- const rootClasses = useStylesWithRootClass(rootClassName$1e, className);
18852
+ const rootClasses = useStylesWithRootClass(rootClassName$1f, className);
18853
18853
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
18854
18854
  const handleClickAway = event => {
18855
18855
  if (onClickAway && (!anchorEl || !anchorEl.contains(event.currentTarget))) {
@@ -18914,14 +18914,14 @@ const getListItemLayout = listItems => {
18914
18914
  }));
18915
18915
  };
18916
18916
 
18917
- const rootClassName$c = 'dot-draggable-list';
18917
+ const rootClassName$d = 'dot-draggable-list';
18918
18918
  const listItemClassName = 'dot-draggable-list-item';
18919
18919
  const StyledDraggableList = styled.div`
18920
18920
  ${({
18921
18921
  theme,
18922
18922
  draggableHandle
18923
18923
  }) => css`
18924
- &.${rootClassName$c} {
18924
+ &.${rootClassName$d} {
18925
18925
  padding: ${theme.spacing(1, 0)};
18926
18926
  position: relative;
18927
18927
 
@@ -18956,7 +18956,7 @@ const ListGridLayout = WidthProvider(GridLayout);
18956
18956
  const DotDraggableList = ({
18957
18957
  ariaLabel,
18958
18958
  className,
18959
- 'data-pendoid': dataPendoId = rootClassName$c,
18959
+ 'data-pendoid': dataPendoId = rootClassName$d,
18960
18960
  'data-testid': dataTestId,
18961
18961
  disableDrag,
18962
18962
  draggableHandle,
@@ -18965,7 +18965,7 @@ const DotDraggableList = ({
18965
18965
  rowHeight = DEFAULT_LIST_ITEM_HEIGHT,
18966
18966
  width = DEFAULT_LIST_WIDTH
18967
18967
  }) => {
18968
- const rootClasses = useStylesWithRootClass(rootClassName$c, className, draggableHandle ? 'with-draggable-handle' : '');
18968
+ const rootClasses = useStylesWithRootClass(rootClassName$d, className, draggableHandle ? 'with-draggable-handle' : '');
18969
18969
  const listItemClasses = useStylesWithRootClass(listItemClassName, draggableHandle && !disableDrag ? 'with-handle-grab-cursor' : '', draggableHandle || disableDrag ? 'with-default-cursor' : '');
18970
18970
  const listWidth = isNumber(width) ? `${width}px` : width;
18971
18971
  const [orderedItems, setOrderedItems] = useState([]);
@@ -52503,7 +52503,7 @@ cjs.exports.DraggableCore = DraggableCore;
52503
52503
  var cjsExports = cjs.exports;
52504
52504
  var Draggable$1 = /*@__PURE__*/getDefaultExportFromCjs(cjsExports);
52505
52505
 
52506
- const rootClassName$b = 'dot-draggable-window';
52506
+ const rootClassName$c = 'dot-draggable-window';
52507
52507
  const defaultWidth = '600px';
52508
52508
  const defaultHeight = '324px';
52509
52509
  const StyledPaper = styled(Paper)`
@@ -52512,7 +52512,7 @@ const StyledPaper = styled(Paper)`
52512
52512
  $maxHeight,
52513
52513
  $maxWidth
52514
52514
  }) => css`
52515
- &.${rootClassName$b} {
52515
+ &.${rootClassName$c} {
52516
52516
  max-width: ${$maxWidth !== null && $maxWidth !== void 0 ? $maxWidth : defaultWidth};
52517
52517
  max-height: ${$maxHeight !== null && $maxHeight !== void 0 ? $maxHeight : defaultHeight};
52518
52518
  ${$maxWidth ? '' : `width: ${defaultWidth};`}
@@ -52550,7 +52550,7 @@ const StyledPaper = styled(Paper)`
52550
52550
  const DotDraggableWindow = ({
52551
52551
  ariaLabel,
52552
52552
  anchorEl,
52553
- 'data-pendoid': dataPendoId = rootClassName$b,
52553
+ 'data-pendoid': dataPendoId = rootClassName$c,
52554
52554
  'data-testid': dataTestId,
52555
52555
  className,
52556
52556
  children,
@@ -52559,7 +52559,7 @@ const DotDraggableWindow = ({
52559
52559
  onClose,
52560
52560
  title
52561
52561
  }) => {
52562
- const rootClasses = useStylesWithRootClass(rootClassName$b, className);
52562
+ const rootClasses = useStylesWithRootClass(rootClassName$c, className);
52563
52563
  const nodeRef = useRef(null);
52564
52564
  return jsx(Draggable$1, {
52565
52565
  bounds: "body",
@@ -52601,12 +52601,12 @@ const DotDraggableWindow = ({
52601
52601
  });
52602
52602
  };
52603
52603
 
52604
- const rootClassName$a = 'dot-linear-progress';
52604
+ const rootClassName$b = 'dot-linear-progress';
52605
52605
  const StyledLinearProgress = styled(LinearProgress)`
52606
52606
  ${({
52607
52607
  theme
52608
52608
  }) => css`
52609
- &.${rootClassName$a} {
52609
+ &.${rootClassName$b} {
52610
52610
  &.MuiLinearProgress-colorError {
52611
52611
  color: ${theme.palette.figma.inProgress.error};
52612
52612
  }
@@ -52638,7 +52638,7 @@ const DotLinearProgress = ({
52638
52638
  valueBuffer,
52639
52639
  variant = 'indeterminate'
52640
52640
  }) => {
52641
- const rootClasses = useStylesWithRootClass(rootClassName$a, className);
52641
+ const rootClasses = useStylesWithRootClass(rootClassName$b, className);
52642
52642
  useEffect(() => {
52643
52643
  if (!ariaLabel) {
52644
52644
  console.warn('a11y: DotLinearProgress must have an ariaLabel to describe the progress bar');
@@ -52689,7 +52689,7 @@ const DotDatePicker = ({
52689
52689
  autoFocus = false,
52690
52690
  className,
52691
52691
  closeOnSelect = true,
52692
- 'data-pendoid': dataPendoId = rootClassName$D,
52692
+ 'data-pendoid': dataPendoId = rootClassName$E,
52693
52693
  'data-testid': dataTestId,
52694
52694
  defaultValue,
52695
52695
  disableOpenPicker,
@@ -52730,7 +52730,7 @@ const DotDatePicker = ({
52730
52730
  const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
52731
52731
  const isInputReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
52732
52732
  const inputRef = useRef(null);
52733
- const rootClasses = useStylesWithRootClass(rootClassName$D, className, isInputReadOnly ? 'read-only' : '');
52733
+ const rootClasses = useStylesWithRootClass(rootClassName$E, className, isInputReadOnly ? 'read-only' : '');
52734
52734
  const containerClasses = useStylesWithRootClass(containerClassName$2, fullWidth ? 'full-width' : '', className);
52735
52735
  const focusInput = ref => {
52736
52736
  setTimeout(() => {
@@ -52951,7 +52951,7 @@ const DotTimePicker = ({
52951
52951
  ariaLabel,
52952
52952
  autoFocus = false,
52953
52953
  className,
52954
- 'data-pendoid': dataPendoId = rootClassName$C,
52954
+ 'data-pendoid': dataPendoId = rootClassName$D,
52955
52955
  'data-testid': dataTestId,
52956
52956
  defaultValue,
52957
52957
  disableOpenPicker = false,
@@ -52983,7 +52983,7 @@ const DotTimePicker = ({
52983
52983
  const hasValueWithoutChangeHandler = value !== undefined && onChange === undefined;
52984
52984
  const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
52985
52985
  const isComponentReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
52986
- const rootClasses = useStylesWithRootClass(rootClassName$C, className, isComponentReadOnly ? 'read-only' : '');
52986
+ const rootClasses = useStylesWithRootClass(rootClassName$D, className, isComponentReadOnly ? 'read-only' : '');
52987
52987
  const containerClasses = useStylesWithRootClass(containerClassName$1, fullWidth ? 'full-width' : '', className);
52988
52988
  const inputRef = useRef(null);
52989
52989
  const [isPickerOpened, setIsPickerOpened] = useState(false);
@@ -53279,13 +53279,13 @@ const DotTimePicker = ({
53279
53279
  });
53280
53280
  };
53281
53281
 
53282
- const rootClassName$9 = 'dot-carousel';
53282
+ const rootClassName$a = 'dot-carousel';
53283
53283
  const StyledCarousel = styled.div`
53284
53284
  ${({
53285
53285
  backgroundColor,
53286
53286
  theme
53287
53287
  }) => css`
53288
- &.${rootClassName$9} {
53288
+ &.${rootClassName$a} {
53289
53289
  display: flex;
53290
53290
  flex-direction: column;
53291
53291
  justify-content: space-between;
@@ -53385,7 +53385,7 @@ const DotCarousel = ({
53385
53385
  progressIndicator,
53386
53386
  showPagesButtons = true
53387
53387
  }) => {
53388
- const rootClasses = useStylesWithRootClass(rootClassName$9, className, backgroundColor ? 'with-background-color' : '');
53388
+ const rootClasses = useStylesWithRootClass(rootClassName$a, className, backgroundColor ? 'with-background-color' : '');
53389
53389
  const rightNavigationButtonClasses = useStylesWithRootClass('carousel-right-arrow', displayNavigationButtons);
53390
53390
  const leftNavigationButtonClasses = useStylesWithRootClass('carousel-left-arrow', displayNavigationButtons);
53391
53391
  const createUuids = () => {
@@ -53536,13 +53536,13 @@ const DotCarousel = ({
53536
53536
  });
53537
53537
  };
53538
53538
 
53539
- const rootClassName$8 = 'dot-sticky-with-border';
53539
+ const rootClassName$9 = 'dot-sticky-with-border';
53540
53540
  const StyledStickyWithBorder = styled.div`
53541
53541
  ${({
53542
53542
  pinnedStickyBorder,
53543
53543
  unpinnedStickyBorder
53544
53544
  }) => css`
53545
- &.${rootClassName$8} {
53545
+ &.${rootClassName$9} {
53546
53546
  position: sticky;
53547
53547
  top: -1px;
53548
53548
 
@@ -53570,7 +53570,7 @@ const DotStickyWithBorder = ({
53570
53570
  }) => {
53571
53571
  const [isPinned, setIsPinned] = useState(false);
53572
53572
  const ref = useRef();
53573
- const rootClasses = useStylesWithRootClass(rootClassName$8, className, isPinned ? 'pinned' : 'unpinned');
53573
+ const rootClasses = useStylesWithRootClass(rootClassName$9, className, isPinned ? 'pinned' : 'unpinned');
53574
53574
  useEffect(() => {
53575
53575
  const element = ref.current;
53576
53576
  const observer = new IntersectionObserver(([e]) => setIsPinned(e.intersectionRatio < 1), {
@@ -53592,18 +53592,18 @@ const DotStickyWithBorder = ({
53592
53592
  });
53593
53593
  };
53594
53594
 
53595
- const rootClassName$7 = 'dot--board';
53595
+ const rootClassName$8 = 'dot--board';
53596
53596
  const classNames$5 = {
53597
- root: rootClassName$7,
53598
- spacingNormal: `${rootClassName$7}-normal`,
53599
- spacingDense: `${rootClassName$7}-dense`,
53600
- loading: `${rootClassName$7}-loading`
53597
+ root: rootClassName$8,
53598
+ spacingNormal: `${rootClassName$8}-normal`,
53599
+ spacingDense: `${rootClassName$8}-dense`,
53600
+ loading: `${rootClassName$8}-loading`
53601
53601
  };
53602
53602
  const StyledBoard = styled.div`
53603
53603
  ${({
53604
53604
  theme
53605
53605
  }) => css`
53606
- &.${rootClassName$7} {
53606
+ &.${rootClassName$8} {
53607
53607
  display: flex;
53608
53608
  overflow-x: auto;
53609
53609
  flex: 1;
@@ -53611,7 +53611,7 @@ const StyledBoard = styled.div`
53611
53611
  }
53612
53612
 
53613
53613
  @media (max-width: 650px) {
53614
- &.${rootClassName$7} {
53614
+ &.${rootClassName$8} {
53615
53615
  justify-content: center;
53616
53616
  }
53617
53617
  }
@@ -53712,18 +53712,18 @@ const Board = React__default.forwardRef(({
53712
53712
  });
53713
53713
  });
53714
53714
 
53715
- const rootClassName$6 = 'dot--board-column';
53715
+ const rootClassName$7 = 'dot--board-column';
53716
53716
  const classNames$4 = {
53717
- root: rootClassName$6,
53718
- spacingNormal: `${rootClassName$6}-normal`,
53719
- spacingDense: `${rootClassName$6}-dense`,
53720
- collapse: `${rootClassName$6}-collapse`
53717
+ root: rootClassName$7,
53718
+ spacingNormal: `${rootClassName$7}-normal`,
53719
+ spacingDense: `${rootClassName$7}-dense`,
53720
+ collapse: `${rootClassName$7}-collapse`
53721
53721
  };
53722
53722
  const StyledBoardColumn = styled.div`
53723
53723
  ${({
53724
53724
  theme
53725
53725
  }) => css`
53726
- &.${rootClassName$6} {
53726
+ &.${rootClassName$7} {
53727
53727
  display: flex;
53728
53728
  flex-direction: column;
53729
53729
  overflow: hidden;
@@ -53814,13 +53814,13 @@ const BoardColumn = React__default.forwardRef(({
53814
53814
  });
53815
53815
  });
53816
53816
 
53817
- const rootClassName$5 = 'dot--board-column-header';
53817
+ const rootClassName$6 = 'dot--board-column-header';
53818
53818
  const classNames$3 = {
53819
- root: rootClassName$5,
53820
- spacingNormal: `${rootClassName$5}-normal`,
53821
- spacingDense: `${rootClassName$5}-dense`,
53822
- colorBar: `${rootClassName$5}-color-bar`,
53823
- title: `${rootClassName$5}-title`
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`
53824
53824
  };
53825
53825
  const StyledBoardColumnHeader = styled.div`
53826
53826
  ${({
@@ -53888,11 +53888,11 @@ const BoardColumnHeader = ({
53888
53888
  });
53889
53889
  };
53890
53890
 
53891
- const rootClassName$4 = 'dot--board-column-items';
53891
+ const rootClassName$5 = 'dot--board-column-items';
53892
53892
  const classNames$2 = {
53893
- root: rootClassName$4,
53894
- spacingNormal: `${rootClassName$4}-normal`,
53895
- spacingDense: `${rootClassName$4}-dense`
53893
+ root: rootClassName$5,
53894
+ spacingNormal: `${rootClassName$5}-normal`,
53895
+ spacingDense: `${rootClassName$5}-dense`
53896
53896
  };
53897
53897
  const StyledBoardColumnItems = styled.div`
53898
53898
  ${({
@@ -53944,11 +53944,11 @@ const BoardColumnItems = ({
53944
53944
  });
53945
53945
  };
53946
53946
 
53947
- const rootClassName$3 = 'dot--board-column-action-bar';
53947
+ const rootClassName$4 = 'dot--board-column-action-bar';
53948
53948
  const classNames$1 = {
53949
- root: rootClassName$3,
53950
- spacingNormal: `${rootClassName$3}-normal`,
53951
- spacingDense: `${rootClassName$3}-dense`
53949
+ root: rootClassName$4,
53950
+ spacingNormal: `${rootClassName$4}-normal`,
53951
+ spacingDense: `${rootClassName$4}-dense`
53952
53952
  };
53953
53953
  const StyledBoardColumnActionBar = styled(DotActionToolbar)`
53954
53954
  ${({
@@ -54019,13 +54019,13 @@ const BoardColumnCollapse = ({
54019
54019
  return useMemo(() => collapsed ? children : null, [children, collapsed]);
54020
54020
  };
54021
54021
 
54022
- const rootClassName$2 = 'dot--board-column-header';
54022
+ const rootClassName$3 = 'dot--board-column-header';
54023
54023
  const classNames = {
54024
- root: rootClassName$2,
54025
- spacingNormal: `${rootClassName$2}-normal`,
54026
- spacingDense: `${rootClassName$2}-dense`,
54027
- title: `${rootClassName$2}-title`,
54028
- text: `${rootClassName$2}-text`
54024
+ root: rootClassName$3,
54025
+ spacingNormal: `${rootClassName$3}-normal`,
54026
+ spacingDense: `${rootClassName$3}-dense`,
54027
+ title: `${rootClassName$3}-title`,
54028
+ text: `${rootClassName$3}-text`
54029
54029
  };
54030
54030
  const StyledBoardColumnSummary = styled.div`
54031
54031
  ${({
@@ -54087,12 +54087,12 @@ const BoardColumnSummary = ({
54087
54087
  });
54088
54088
  };
54089
54089
 
54090
- const rootClassName$1 = 'dot-search';
54090
+ const rootClassName$2 = 'dot-search';
54091
54091
  const StyledSearch = styled(DotInputText)`
54092
54092
  ${({
54093
54093
  theme
54094
54094
  }) => css`
54095
- &.${rootClassName$1} {
54095
+ &.${rootClassName$2} {
54096
54096
  &.with-value .MuiInputBase-root {
54097
54097
  background-color: ${theme.palette.figma.primary.light};
54098
54098
 
@@ -54135,7 +54135,7 @@ const DotSearch = _a => {
54135
54135
  value
54136
54136
  } = _a,
54137
54137
  rest = __rest(_a, ["ariaLabel", "className", 'data-testid', "disabled", "hasDebounce", "id", "name", "onSearch", "onClear", "placeholder", "value"]);
54138
- const rootClasses = useStylesWithRootClass(rootClassName$1, className, value ? 'with-value' : '');
54138
+ const rootClasses = useStylesWithRootClass(rootClassName$2, className, value ? 'with-value' : '');
54139
54139
  return jsx(StyledSearch, Object.assign({}, rest, {
54140
54140
  "aria-label": ariaLabel,
54141
54141
  className: rootClasses,
@@ -54154,12 +54154,12 @@ const DotSearch = _a => {
54154
54154
  }));
54155
54155
  };
54156
54156
 
54157
- const rootClassName = 'dot-toggle-switch';
54157
+ const rootClassName$1 = 'dot-toggle-switch';
54158
54158
  const StyledToggleSwitch = styled(Stack)`
54159
54159
  ${({
54160
54160
  theme
54161
54161
  }) => css`
54162
- &.${rootClassName} {
54162
+ &.${rootClassName$1} {
54163
54163
  gap: ${theme.spacing(2)};
54164
54164
  cursor: pointer;
54165
54165
 
@@ -54213,7 +54213,7 @@ const StyledToggleSwitch = styled(Stack)`
54213
54213
  const DotToggleSwitch = ({
54214
54214
  ariaLabel,
54215
54215
  className,
54216
- 'data-pendoid': dataPendoId = rootClassName,
54216
+ 'data-pendoid': dataPendoId = rootClassName$1,
54217
54217
  'data-testid': dataTestId,
54218
54218
  disabled = false,
54219
54219
  label,
@@ -54223,7 +54223,7 @@ const DotToggleSwitch = ({
54223
54223
  }) => {
54224
54224
  const toggleOptions = options.slice(0, 2);
54225
54225
  const isChecked = toggleOptions[1].value === value;
54226
- const rootClasses = useStylesWithRootClass(rootClassName, className, disabled ? 'dot-disabled' : '');
54226
+ const rootClasses = useStylesWithRootClass(rootClassName$1, className, disabled ? 'dot-disabled' : '');
54227
54227
  const toggleValue = () => {
54228
54228
  const [firstOption, secondOption] = toggleOptions;
54229
54229
  const newValue = value === firstOption.value ? secondOption.value : firstOption.value;
@@ -54276,4 +54276,1313 @@ const DotToggleSwitch = ({
54276
54276
  });
54277
54277
  };
54278
54278
 
54279
- export { ApiError$1 as ApiError, BoardStatusProvider, Cell, ColumnStatusProvider, CreateUUID, CssCell, CssGrid, CssGridDebug, DashboardAppTypeOptions, DashboardView, DatePickerKeydownContext, Daytime, DotAccordion, DotActionToolbar, DotAlertBanner, DotAnnotation, DotAppLogo, DotAppSwitcher, DotAppToolbar, DotAutoComplete, DotAvatar, DotAvatarGroup, DotAvatarWithDetails, DotBadge, Board as DotBoard, BoardColumn as DotBoardColumn, BoardColumnActionBar as DotBoardColumnActionBar, BoardColumnCollapse as DotBoardColumnCollapse, BoardColumnExpand as DotBoardColumnExpand, BoardColumnHeader as DotBoardColumnHeader, BoardColumnItems as DotBoardColumnItems, BoardColumnSummary as DotBoardColumnSummary, DotBreadcrumbs, DotButton, DotButtonToggle, DotCard, DotCardContent, DotCardFooter, DotCardHeader, DotCarousel, DotCheckbox, DotCheckboxGroup, DotChip, DotChipList, DotClickAwayListener, DotConfirmationDialog, DotCopyButton, DotCoreApiProvider, DotDashboardActions, DotDashboardDetails, DotDashboardDialog, DotDashboardHeader, DotDashboardOptionsMenu, DotDashboardPublishConfirm, DotDashboardStatusPill, DotDatePicker, DotDialog, DotDivider, DotDraggableList, DotDraggableWindow, DotDrawer, DotDynamicForm, DotEmptyFilterState, DotEmptyState, DotFileListItem, DotFileUpload, DotForm, DotFormGroup, DotHeaderRow, DotIcon, DotIconButton, DotIllustration, DotImpactDialog, DotInlineEdit, DotInputLabel, DotInputSelect, DotInputText, DotLinearProgress, DotLink, DotList, DotMenu, DotMenuList, DotMetadataApiProvider, DotNavigationRail, DotPill, DotPopper, DotProgress, DotProgressButton, DotRadioButton, DotRadioGroup, DotSearch, DotSidebar, DotSkeleton, DotSnackbar, DotSnackbarContainer, DotSnackbarProvider, DotSplitButton, DotStepper, DotStickyWithBorder, DotSwitch, DotTable, DotTableAction, DotTableActions, DotTablePagination, DotTabs, DotThemeProvider, DotTimePicker, 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 };
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 };