@digital-ai/dot-components 3.0.0 → 3.2.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
@@ -6,11 +6,12 @@ import '@digital-ai/dot-icons';
6
6
  import styled, { css, createGlobalStyle, ThemeProvider as ThemeProvider$1, keyframes } from 'styled-components';
7
7
  import { createTheme, ThemeProvider, useTheme } from '@mui/material/styles';
8
8
  import jwt_decode from 'jwt-decode';
9
+ import '@digital-ai/dot-illustrations';
10
+ import { DatePicker, PickersDay, TimePicker, LocalizationProvider } from '@mui/x-date-pickers';
9
11
  import { useDropzone } from 'react-dropzone';
10
12
  import GridLayout, { WidthProvider } from 'react-grid-layout';
11
13
  import dayjs from 'dayjs';
12
14
  import updateLocale from 'dayjs/plugin/updateLocale';
13
- import { DatePicker, PickersDay, LocalizationProvider, TimePicker } from '@mui/x-date-pickers';
14
15
  import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
15
16
  import utc from 'dayjs/plugin/utc';
16
17
 
@@ -54,6 +55,7 @@ const DotTooltip = ({
54
55
  onClose,
55
56
  open,
56
57
  placement = 'bottom',
58
+ popperClassName,
57
59
  title
58
60
  }) => {
59
61
  const rootClasses = useStylesWithRootClass('dot-tooltip', className);
@@ -89,7 +91,8 @@ const DotTooltip = ({
89
91
  open: open,
90
92
  placement: placement,
91
93
  PopperProps: {
92
- disablePortal
94
+ disablePortal,
95
+ className: popperClassName
93
96
  },
94
97
  role: ariaRole,
95
98
  title: title,
@@ -101,12 +104,12 @@ const DotTooltip = ({
101
104
  }) : children;
102
105
  };
103
106
 
104
- const rootClassName$18 = 'dot-icon';
107
+ const rootClassName$19 = 'dot-icon';
105
108
  const StyledIcon = styled(Icon)`
106
109
  ${({
107
110
  theme
108
111
  }) => css`
109
- &.${rootClassName$18} {
112
+ &.${rootClassName$19} {
110
113
  color: ${theme.palette.figma.icon.black};
111
114
  font-size: 20px;
112
115
 
@@ -143,7 +146,7 @@ const DotIcon = ({
143
146
  iconId,
144
147
  tooltip
145
148
  }) => {
146
- const rootClasses = useStylesWithRootClass(rootClassName$18, className);
149
+ const rootClasses = useStylesWithRootClass(rootClassName$19, className);
147
150
  return jsx(DotTooltip, {
148
151
  title: tooltip,
149
152
  children: jsx(StyledIcon, {
@@ -204,7 +207,7 @@ const DotTypography = ({
204
207
  });
205
208
  };
206
209
 
207
- const rootClassName$17 = 'dot-accordion';
210
+ const rootClassName$18 = 'dot-accordion';
208
211
  const summaryClassName = 'dot-accordion-summary';
209
212
  const detailClassName = 'dot-accordion-details';
210
213
  const StyledAccordion = styled(Accordion)`
@@ -215,7 +218,7 @@ const StyledAccordion = styled(Accordion)`
215
218
  background: ${theme.palette.figma.background.level1.white};
216
219
  }
217
220
 
218
- &.${rootClassName$17} .${summaryClassName} {
221
+ &.${rootClassName$18} .${summaryClassName} {
219
222
  align-items: center;
220
223
  background: ${theme.palette.figma.background.level1.white};
221
224
  color: ${theme.palette.figma.typography.black};
@@ -260,7 +263,7 @@ const DotAccordion = ({
260
263
  ariaLabel,
261
264
  children,
262
265
  className,
263
- 'data-pendoid': dataPendoId = rootClassName$17,
266
+ 'data-pendoid': dataPendoId = rootClassName$18,
264
267
  'data-testid': dataTestId = 'dot-accordion',
265
268
  disabled = false,
266
269
  expanded,
@@ -271,7 +274,7 @@ const DotAccordion = ({
271
274
  summary,
272
275
  noWrap = true
273
276
  }) => {
274
- const rootClasses = useStylesWithRootClass(rootClassName$17, className);
277
+ const rootClasses = useStylesWithRootClass(rootClassName$18, className);
275
278
  const [elevation, setElevation] = useState();
276
279
  useEffect(() => {
277
280
  if (onChange && expanded === undefined) {
@@ -387,7 +390,7 @@ const readOnlyStyles = theme => css`
387
390
  }
388
391
  `;
389
392
 
390
- const rootClassName$16 = 'dot-text-field';
393
+ const rootClassName$17 = 'dot-text-field';
391
394
  const rootSelectClassName = 'dot-select-field';
392
395
  const labelClassName = 'dot-input-label';
393
396
  const errorClassName = 'dot-error';
@@ -435,7 +438,7 @@ const StyledTextField = styled(TextField)`
435
438
  theme,
436
439
  InputProps
437
440
  }) => css`
438
- &.${rootClassName$16} {
441
+ &.${rootClassName$17} {
439
442
  .MuiInputBase-root {
440
443
  margin-bottom: 0;
441
444
  }
@@ -479,7 +482,7 @@ const StyledTextField = styled(TextField)`
479
482
  margin-right: ${theme.spacing(2)};
480
483
  }
481
484
 
482
- &.${rootSelectClassName}, &.${rootClassName$16} {
485
+ &.${rootSelectClassName}, &.${rootClassName$17} {
483
486
  .${adornmentIconClassName} {
484
487
  color: ${theme.palette.figma.icon.black};
485
488
  p {
@@ -570,15 +573,15 @@ const StyledTextField = styled(TextField)`
570
573
  `}
571
574
  `;
572
575
 
573
- const rootClassName$15 = 'dot-action-toolbar';
576
+ const rootClassName$16 = 'dot-action-toolbar';
574
577
  const StyledToolbar = styled(Toolbar)`
575
578
  ${({
576
579
  theme
577
580
  }) => css`
578
- &.${rootClassName$15} {
581
+ &.${rootClassName$16} {
579
582
  border-bottom: 1px solid ${theme.palette.figma.border.default};
580
583
 
581
- .${rootClassName$16} .MuiInputBase-root {
584
+ .${rootClassName$17} .MuiInputBase-root {
582
585
  margin-bottom: 0;
583
586
  }
584
587
  }
@@ -592,7 +595,7 @@ const DotActionToolbar = ({
592
595
  'data-testid': dataTestId,
593
596
  variant = 'dense'
594
597
  }) => {
595
- const rootClasses = useStylesWithRootClass(rootClassName$15, className);
598
+ const rootClasses = useStylesWithRootClass(rootClassName$16, className);
596
599
  return jsx(StyledToolbar, {
597
600
  "aria-label": ariaLabel,
598
601
  className: rootClasses,
@@ -1660,16 +1663,22 @@ const renderNodeOrTypography = (content, typographyVariant = 'body1') => {
1660
1663
  const checkIfArrowUpPressed = event => event.key === 'ArrowUp';
1661
1664
  const checkIfArrowDownPressed = event => event.key === 'ArrowDown';
1662
1665
 
1663
- const rootClassName$14 = 'dot-alert-banner';
1666
+ const rootClassName$15 = 'dot-alert-banner';
1664
1667
  const StyledAlertBanner = styled(Alert)`
1665
1668
  ${({
1666
1669
  theme
1667
1670
  }) => css`
1668
- &.${rootClassName$14} {
1671
+ &.${rootClassName$15} {
1672
+ align-items: center;
1669
1673
  box-sizing: border-box;
1670
1674
  min-height: 48px;
1671
1675
  overflow: hidden;
1672
1676
 
1677
+ .MuiAlert-message {
1678
+ margin: ${theme.spacing(1, 0)};
1679
+ padding: 0;
1680
+ }
1681
+
1673
1682
  &.MuiAlert-standardSuccess {
1674
1683
  background: ${theme.palette.figma.overlay.alerts.success.background};
1675
1684
  }
@@ -1694,7 +1703,7 @@ const DotAlertBanner = ({
1694
1703
  ariaLabel,
1695
1704
  children,
1696
1705
  className,
1697
- 'data-pendoid': dataPendoId = rootClassName$14,
1706
+ 'data-pendoid': dataPendoId = rootClassName$15,
1698
1707
  'data-testid': dataTestId,
1699
1708
  onClose,
1700
1709
  roundedCorners = true,
@@ -1702,7 +1711,7 @@ const DotAlertBanner = ({
1702
1711
  textVariant = 'body1',
1703
1712
  width
1704
1713
  }) => {
1705
- const rootClasses = useStylesWithRootClass(rootClassName$14, severity, className);
1714
+ const rootClasses = useStylesWithRootClass(rootClassName$15, severity, className);
1706
1715
  /* For simple string use default component, for everything else use 'div' */
1707
1716
  const typographyComponent = isString$1(children) ? undefined : 'div';
1708
1717
  return jsx(StyledAlertBanner, {
@@ -2351,7 +2360,7 @@ const useDotCoreApiContext = () => {
2351
2360
  return useContext(DotCoreApiContext);
2352
2361
  };
2353
2362
 
2354
- const rootClassName$13 = 'dot-avatar';
2363
+ const rootClassName$14 = 'dot-avatar';
2355
2364
  const avatarSpacing = {
2356
2365
  small: 3,
2357
2366
  medium: 5,
@@ -2361,7 +2370,7 @@ const StyledAvatar = styled(Avatar)`
2361
2370
  ${({
2362
2371
  theme
2363
2372
  }) => css`
2364
- &.${rootClassName$13} {
2373
+ &.${rootClassName$14} {
2365
2374
  display: inline-flex;
2366
2375
  background-color: ${({
2367
2376
  color
@@ -2473,7 +2482,7 @@ const DotAvatar = ({
2473
2482
  variant = 'circular',
2474
2483
  style
2475
2484
  }) => {
2476
- const rootClasses = useStylesWithRootClass(rootClassName$13, className);
2485
+ const rootClasses = useStylesWithRootClass(rootClassName$14, className);
2477
2486
  const getAvatarColor = () => {
2478
2487
  if ((style === null || style === void 0 ? void 0 : style.color) !== undefined) return 'inherit';
2479
2488
  if (color) return color;
@@ -2512,12 +2521,12 @@ const DotAvatar = ({
2512
2521
  });
2513
2522
  };
2514
2523
 
2515
- const rootClassName$12 = 'dot-button';
2524
+ const rootClassName$13 = 'dot-button';
2516
2525
  const StyledButton = styled(Button)`
2517
2526
  ${({
2518
2527
  theme
2519
2528
  }) => css`
2520
- &.${rootClassName$12} {
2529
+ &.${rootClassName$13} {
2521
2530
  background-color: ${theme.palette.figma.primary.normal};
2522
2531
  margin: ${theme.spacing(0.5)};
2523
2532
  padding: ${theme.spacing(0.75, 2)};
@@ -2601,7 +2610,7 @@ const DotButton = forwardRef(({
2601
2610
  autoFocus = false,
2602
2611
  children,
2603
2612
  className,
2604
- 'data-pendoid': dataPendoId = rootClassName$12,
2613
+ 'data-pendoid': dataPendoId = rootClassName$13,
2605
2614
  'data-testid': dataTestId,
2606
2615
  disabled = false,
2607
2616
  disableRipple = false,
@@ -2617,7 +2626,7 @@ const DotButton = forwardRef(({
2617
2626
  tooltipPlacement,
2618
2627
  type = 'primary'
2619
2628
  }, ref) => {
2620
- const rootClasses = useStylesWithRootClass(rootClassName$12, className);
2629
+ const rootClasses = useStylesWithRootClass(rootClassName$13, className);
2621
2630
  let color;
2622
2631
  let variant;
2623
2632
  switch (type) {
@@ -2641,6 +2650,7 @@ const DotButton = forwardRef(({
2641
2650
  return jsx(DotTooltip, {
2642
2651
  placement: tooltipPlacement,
2643
2652
  title: tooltip,
2653
+ "data-testid": `${dataTestId || rootClassName$13}-tooltip`,
2644
2654
  children: jsx(StyledButton, {
2645
2655
  "aria-label": ariaLabel,
2646
2656
  autoFocus: autoFocus,
@@ -2649,7 +2659,7 @@ const DotButton = forwardRef(({
2649
2659
  },
2650
2660
  color: color,
2651
2661
  "data-pendoid": dataPendoId,
2652
- "data-testid": dataTestId,
2662
+ "data-testid": dataTestId || rootClassName$13,
2653
2663
  disableRipple: disableRipple,
2654
2664
  disabled: disabled,
2655
2665
  endIcon: endIcon,
@@ -2668,10 +2678,10 @@ const DotButton = forwardRef(({
2668
2678
  });
2669
2679
  });
2670
2680
 
2671
- const rootClassName$11 = 'dot-link';
2681
+ const rootClassName$12 = 'dot-link';
2672
2682
  const StyledLink = styled(Link)`
2673
2683
  ${() => css`
2674
- &.${rootClassName$11} {
2684
+ &.${rootClassName$12} {
2675
2685
  cursor: pointer;
2676
2686
 
2677
2687
  &:hover.MuiLink-underlineHover {
@@ -2687,7 +2697,7 @@ const DotLink = ({
2687
2697
  children,
2688
2698
  className,
2689
2699
  color = 'primary',
2690
- 'data-pendoid': dataPendoId = rootClassName$11,
2700
+ 'data-pendoid': dataPendoId = rootClassName$12,
2691
2701
  'data-testid': dataTestId,
2692
2702
  href,
2693
2703
  onClick,
@@ -2699,7 +2709,7 @@ const DotLink = ({
2699
2709
  tooltip,
2700
2710
  underline = 'always'
2701
2711
  }) => {
2702
- const rootClasses = useStylesWithRootClass(rootClassName$11, className);
2712
+ const rootClasses = useStylesWithRootClass(rootClassName$12, className);
2703
2713
  useEffect(() => {
2704
2714
  // Include a console warning if the link is not a string and no ariaLabel is provided
2705
2715
  if (!isString$1(children) && !ariaLabel) {
@@ -2749,7 +2759,7 @@ const CreateUUID = () => {
2749
2759
  });
2750
2760
  };
2751
2761
 
2752
- const rootClassName$10 = 'dot-list';
2762
+ const rootClassName$11 = 'dot-list';
2753
2763
  const listItemRootClass = 'dot-list-item';
2754
2764
  const nestedListClassName = 'dot-nested-list';
2755
2765
  const nestedDrawerClassName = 'dot-nested-drawer';
@@ -2757,7 +2767,7 @@ const StyledList = styled(List)`
2757
2767
  ${({
2758
2768
  theme
2759
2769
  }) => css`
2760
- &.${rootClassName$10} {
2770
+ &.${rootClassName$11} {
2761
2771
  background: ${theme.palette.figma.background.level0.componentsBackground};
2762
2772
 
2763
2773
  .dot-icon {
@@ -2840,12 +2850,12 @@ const DotListDivider = ({
2840
2850
  });
2841
2851
  };
2842
2852
 
2843
- const rootClassName$$ = 'dot-progress';
2853
+ const rootClassName$10 = 'dot-progress';
2844
2854
  const StyledCircularProgress = styled(CircularProgress)`
2845
2855
  ${({
2846
2856
  theme
2847
2857
  }) => css`
2848
- &.${rootClassName$$} {
2858
+ &.${rootClassName$10} {
2849
2859
  &.MuiCircularProgress-colorPrimary {
2850
2860
  color: ${theme.palette.figma.inProgress.normal};
2851
2861
  }
@@ -2867,7 +2877,7 @@ const DotProgress = ({
2867
2877
  value,
2868
2878
  variant = 'indeterminate'
2869
2879
  }) => {
2870
- const rootClasses = useStylesWithRootClass(rootClassName$$, className);
2880
+ const rootClasses = useStylesWithRootClass(rootClassName$10, className);
2871
2881
  useEffect(() => {
2872
2882
  if (!ariaLabel) {
2873
2883
  console.warn('a11y: DotProgress must have an ariaLabel to describe the progress component');
@@ -2908,35 +2918,35 @@ var variables = /*#__PURE__*/Object.freeze({
2908
2918
  levelTop: levelTop
2909
2919
  });
2910
2920
 
2911
- const rootClassName$_ = 'dot-popper';
2921
+ const rootClassName$$ = 'dot-popper';
2912
2922
  const StyledPopper$1 = styled(Popper)`
2913
2923
  ${({
2914
2924
  theme
2915
2925
  }) => css`
2916
- &.${rootClassName$_} {
2926
+ &.${rootClassName$$} {
2917
2927
  font-family: ${theme.typography.fontFamily};
2918
2928
  font-size: ${theme.typography.body1.fontSize}px;
2919
2929
  }
2920
2930
 
2921
- &.${rootClassName$_}, &.${rootClassName$_} > .dot-popper-paper {
2931
+ &.${rootClassName$$}, &.${rootClassName$$} > .dot-popper-paper {
2922
2932
  background-color: ${theme.palette.figma.background.level1.white};
2923
2933
  }
2924
2934
  `}
2925
2935
  `;
2926
2936
 
2927
2937
  const flyoutMenuClassName = 'dot-flyout-menu';
2928
- const rootClassName$Z = 'dot-menu';
2938
+ const rootClassName$_ = 'dot-menu';
2929
2939
  const getListMaxHeight = maxHeight => isString$1(maxHeight) ? maxHeight : `${maxHeight}px`;
2930
2940
  const StyledPopper = styled(Popper)`
2931
2941
  ${({
2932
2942
  theme
2933
2943
  }) => css`
2934
- &.${rootClassName$_} {
2944
+ &.${rootClassName$$} {
2935
2945
  font-family: ${theme.typography.fontFamily};
2936
2946
  font-size: ${theme.typography.body1.fontSize}px;
2937
2947
  z-index: ${levelSecond};
2938
2948
  }
2939
- &.${rootClassName$Z}, &.${rootClassName$_} {
2949
+ &.${rootClassName$_}, &.${rootClassName$$} {
2940
2950
  &.loading .MuiPaper-root {
2941
2951
  align-items: center;
2942
2952
  display: flex;
@@ -3011,14 +3021,14 @@ const MENU_ITEM_HEIGHT_NORMAL = 48;
3011
3021
  const MENU_ITEM_HEIGHT_DENSE = 36;
3012
3022
  const DEFAULT_MAX_VISIBLE_ITEMS = 7;
3013
3023
 
3014
- const rootClassName$Y = 'dot-ul';
3024
+ const rootClassName$Z = 'dot-ul';
3015
3025
  const listItemClassName$1 = 'dot-li';
3016
3026
  const listItemWithSubmenuClassName = 'dot-li-with-submenu';
3017
3027
  const StyledMenuList = styled(MenuList)`
3018
3028
  ${({
3019
3029
  theme
3020
3030
  }) => css`
3021
- &.${rootClassName$Y} {
3031
+ &.${rootClassName$Z} {
3022
3032
  background: ${theme.palette.figma.background.level1.white};
3023
3033
 
3024
3034
  .dot-li {
@@ -3114,7 +3124,7 @@ const DotMenuList = forwardRef(({
3114
3124
  onSubMenuCreate,
3115
3125
  selectedKey
3116
3126
  }, ref) => {
3117
- const rootClasses = useStylesWithRootClass(rootClassName$Y, className);
3127
+ const rootClasses = useStylesWithRootClass(rootClassName$Z, className);
3118
3128
  const [activeSubmenu, setActiveSubmenu] = useState(null);
3119
3129
  const [subItemAnchorEl, setSubItemAnchorEl] = useState(null);
3120
3130
  const openSubmenu = (target, itemKey) => {
@@ -3225,7 +3235,7 @@ const DotMenu = ({
3225
3235
  open = false,
3226
3236
  selectedKey
3227
3237
  }) => {
3228
- const rootClasses = useStylesWithRootClass(rootClassName$Z, className, loading ? 'loading' : '');
3238
+ const rootClasses = useStylesWithRootClass(rootClassName$_, className, loading ? 'loading' : '');
3229
3239
  const isSubmenu = checkIfSubmenu(anchorEl);
3230
3240
  const hasSubItems = checkForSubItems(menuItems);
3231
3241
  // Timeout object is customizable when Menu component is either submenu
@@ -3313,12 +3323,12 @@ const DotMenu = ({
3313
3323
  });
3314
3324
  };
3315
3325
 
3316
- const rootClassName$X = 'dot-drawer';
3326
+ const rootClassName$Y = 'dot-drawer';
3317
3327
  const StyledDrawer = styled(Drawer)`
3318
3328
  ${({
3319
3329
  theme
3320
3330
  }) => css`
3321
- &.${rootClassName$X} .MuiBackdrop-root {
3331
+ &.${rootClassName$Y} .MuiBackdrop-root {
3322
3332
  background-color: ${theme.palette.figma.overlay.default};
3323
3333
  }
3324
3334
 
@@ -3337,12 +3347,12 @@ const StyledDrawer = styled(Drawer)`
3337
3347
  `}
3338
3348
  `;
3339
3349
 
3340
- const rootClassName$W = 'dot-drawer-header';
3350
+ const rootClassName$X = 'dot-drawer-header';
3341
3351
  const StyleDrawerHeader = styled.div`
3342
3352
  ${({
3343
3353
  theme
3344
3354
  }) => css`
3345
- &.${rootClassName$W} {
3355
+ &.${rootClassName$X} {
3346
3356
  padding: ${theme.spacing(0, 0, 2)};
3347
3357
  display: flex;
3348
3358
  align-items: center;
@@ -3353,13 +3363,13 @@ const StyleDrawerHeader = styled.div`
3353
3363
  `}
3354
3364
  `;
3355
3365
 
3356
- const rootClassName$V = 'dot-icon-btn';
3366
+ const rootClassName$W = 'dot-icon-btn';
3357
3367
  const StyledIconButton = styled(IconButton)`
3358
3368
  ${({
3359
3369
  theme,
3360
3370
  color
3361
3371
  }) => css`
3362
- &.${rootClassName$V} {
3372
+ &.${rootClassName$W} {
3363
3373
  ${color === 'inherit' ? css`
3364
3374
  color: inherit;
3365
3375
  ` : ''}
@@ -3418,7 +3428,7 @@ const DotIconButton = ({
3418
3428
  ariaRole = 'button',
3419
3429
  className,
3420
3430
  color = 'inherit',
3421
- 'data-pendoid': dataPendoId = rootClassName$V,
3431
+ 'data-pendoid': dataPendoId = rootClassName$W,
3422
3432
  'data-testid': dataTestId,
3423
3433
  disableRipple = false,
3424
3434
  disabled = false,
@@ -3431,7 +3441,7 @@ const DotIconButton = ({
3431
3441
  tooltipPlacement
3432
3442
  }) => {
3433
3443
  const rippleClassName = disableRipple ? 'ripple-disabled' : '';
3434
- const rootClasses = useStylesWithRootClass(rootClassName$V, rippleClassName, `shape-${shape}`, className);
3444
+ const rootClasses = useStylesWithRootClass(rootClassName$W, rippleClassName, `shape-${shape}`, className);
3435
3445
  return jsx(DotTooltip, {
3436
3446
  "data-testid": "icon-button-tooltip",
3437
3447
  placement: tooltipPlacement,
@@ -3466,7 +3476,7 @@ const DotDrawerHeader = ({
3466
3476
  onClose,
3467
3477
  variant
3468
3478
  }) => {
3469
- const rootClasses = useStylesWithRootClass(rootClassName$W, className);
3479
+ const rootClasses = useStylesWithRootClass(rootClassName$X, className);
3470
3480
  return jsxs(StyleDrawerHeader, {
3471
3481
  "aria-label": ariaLabel,
3472
3482
  "aria-level": 2,
@@ -3483,10 +3493,10 @@ const DotDrawerHeader = ({
3483
3493
  });
3484
3494
  };
3485
3495
 
3486
- const rootClassName$U = 'dot-drawer-body';
3496
+ const rootClassName$V = 'dot-drawer-body';
3487
3497
  const StyleDrawerBody = styled.div`
3488
3498
  ${() => css`
3489
- &.${rootClassName$U} {
3499
+ &.${rootClassName$V} {
3490
3500
  display: flex;
3491
3501
  .dot-drawer-close-button {
3492
3502
  align-self: self-start;
@@ -3507,7 +3517,7 @@ const DotDrawerBody = ({
3507
3517
  onClose,
3508
3518
  variant
3509
3519
  }) => {
3510
- const rootClasses = useStylesWithRootClass(rootClassName$U, className);
3520
+ const rootClasses = useStylesWithRootClass(rootClassName$V, className);
3511
3521
  return jsxs(StyleDrawerBody, {
3512
3522
  "aria-label": ariaLabel,
3513
3523
  className: rootClasses,
@@ -3522,12 +3532,12 @@ const DotDrawerBody = ({
3522
3532
  });
3523
3533
  };
3524
3534
 
3525
- const rootClassName$T = 'dot-drawer-footer';
3535
+ const rootClassName$U = 'dot-drawer-footer';
3526
3536
  const StyleDrawerFooter = styled.div`
3527
3537
  ${({
3528
3538
  theme
3529
3539
  }) => css`
3530
- &.${rootClassName$T} {
3540
+ &.${rootClassName$U} {
3531
3541
  padding: ${theme.spacing(2, 0, 0)};
3532
3542
  }
3533
3543
  `}
@@ -3540,7 +3550,7 @@ const DotDrawerFooter = ({
3540
3550
  className,
3541
3551
  'data-testid': dataTestId
3542
3552
  }) => {
3543
- const rootClasses = useStylesWithRootClass(rootClassName$T, className);
3553
+ const rootClasses = useStylesWithRootClass(rootClassName$U, className);
3544
3554
  return jsx(StyleDrawerFooter, {
3545
3555
  "aria-label": ariaLabel,
3546
3556
  className: rootClasses,
@@ -3556,7 +3566,7 @@ const DotDrawer = ({
3556
3566
  ariaRole = 'dialog',
3557
3567
  className,
3558
3568
  children,
3559
- 'data-pendoid': dataPendoId = rootClassName$X,
3569
+ 'data-pendoid': dataPendoId = rootClassName$Y,
3560
3570
  'data-testid': dataTestId,
3561
3571
  drawerBodyProps,
3562
3572
  drawerFooterProps,
@@ -3579,7 +3589,7 @@ const DotDrawer = ({
3579
3589
  onClose(event);
3580
3590
  }
3581
3591
  };
3582
- const rootClasses = useStylesWithRootClass(rootClassName$X, className);
3592
+ const rootClasses = useStylesWithRootClass(rootClassName$Y, className);
3583
3593
  const backdropEnabled = variant === 'temporary' && !(ModalProps === null || ModalProps === void 0 ? void 0 : ModalProps.hideBackdrop);
3584
3594
  const headerExists = !!drawerHeaderProps;
3585
3595
  const bodyPendoId = drawerBodyProps ? drawerBodyProps['data-pendoid'] : 'drawer-body';
@@ -3963,7 +3973,7 @@ const DotList = ({
3963
3973
  nestedListType = 'expandable',
3964
3974
  width = 240
3965
3975
  }) => {
3966
- const rootClasses = useStylesWithRootClass(rootClassName$10, className);
3976
+ const rootClasses = useStylesWithRootClass(rootClassName$11, className);
3967
3977
  const listWidth = typeof width === 'number' ? `${width}px` : width;
3968
3978
  const listRef = useRef();
3969
3979
  const [listItemIndex, setListItemIndex] = useState(null);
@@ -4001,7 +4011,7 @@ const DotList = ({
4001
4011
  updateSelectedListItem(index);
4002
4012
  }
4003
4013
  };
4004
- const determineOnClick = item.href && !item.onClick ? null : handleListItemClick;
4014
+ const determineOnClick = item.onClick || item.items ? handleListItemClick : null;
4005
4015
  const handleMenuLeave = event => {
4006
4016
  // TODO: Need to apply animation to open/close
4007
4017
  var _a, _b;
@@ -4052,12 +4062,12 @@ const DotList = ({
4052
4062
  });
4053
4063
  };
4054
4064
 
4055
- const rootClassName$S = 'dot-copy-button';
4065
+ const rootClassName$T = 'dot-copy-button';
4056
4066
  const StyledCopyButton = styled.span`
4057
4067
  ${({
4058
4068
  theme
4059
4069
  }) => css`
4060
- &.${rootClassName$S} .copied-to-clipboard {
4070
+ &.${rootClassName$T} .copied-to-clipboard {
4061
4071
  color: ${theme.palette.figma.success.normal};
4062
4072
 
4063
4073
  &.MuiIcon-fontSizeSmall.button-size-small {
@@ -4083,7 +4093,7 @@ const DotCopyButton = ({
4083
4093
  color = 'inherit',
4084
4094
  copiedTooltip = 'Copied!',
4085
4095
  copyTooltip = 'Copy to clipboard',
4086
- 'data-pendoid': dataPendoId = rootClassName$S,
4096
+ 'data-pendoid': dataPendoId = rootClassName$T,
4087
4097
  'data-testid': dataTestId = 'dot-copy-button',
4088
4098
  disabled = false,
4089
4099
  disableRipple = false,
@@ -4131,7 +4141,7 @@ const DotCopyButton = ({
4131
4141
  return false;
4132
4142
  }, [value, showCopiedIcon, disabled, onClick]);
4133
4143
  return jsxs(StyledCopyButton, {
4134
- className: rootClassName$S,
4144
+ className: rootClassName$T,
4135
4145
  "data-testid": dataTestId,
4136
4146
  children: [!timedShowCopiedIcon && jsx(DotIconButton, {
4137
4147
  ariaLabel: ariaLabel,
@@ -4220,7 +4230,7 @@ const DotInputText = ({
4220
4230
  autoFocus,
4221
4231
  className,
4222
4232
  defaultValue,
4223
- 'data-pendoid': dataPendoId = rootClassName$16,
4233
+ 'data-pendoid': dataPendoId = rootClassName$17,
4224
4234
  'data-testid': dataTestId,
4225
4235
  disabled = false,
4226
4236
  error = false,
@@ -4266,7 +4276,7 @@ const DotInputText = ({
4266
4276
  const internalInputRef = useRef(null);
4267
4277
  const textFieldInputRef = inputRef || internalInputRef;
4268
4278
  const [inputTextState, setInputTextState] = useState(getInitialState(value));
4269
- const rootStyles = useStylesWithRootClass(rootClassName$16, hasError, hasWarning, hasSuccess, readOnly && readOnlyClassName$1);
4279
+ const rootStyles = useStylesWithRootClass(rootClassName$17, hasError, hasWarning, hasSuccess, readOnly && readOnlyClassName$1);
4270
4280
  useEffect(() => {
4271
4281
  if (value !== inputTextState.inputValue) {
4272
4282
  setInputTextState(getInitialState(value, defaultValue));
@@ -4402,10 +4412,10 @@ const DotInputText = ({
4402
4412
  });
4403
4413
  };
4404
4414
 
4405
- const rootClassName$R = 'dot-search-input';
4415
+ const rootClassName$S = 'dot-search-input';
4406
4416
  const StyledSearchInput = styled.span`
4407
4417
  ${() => css`
4408
- &.${rootClassName$R} {
4418
+ &.${rootClassName$S} {
4409
4419
  }
4410
4420
  `}
4411
4421
  `;
@@ -4422,7 +4432,7 @@ function SearchInput({
4422
4432
  tooltip = null,
4423
4433
  value
4424
4434
  }) {
4425
- const rootClasses = useStylesWithRootClass(rootClassName$R, className);
4435
+ const rootClasses = useStylesWithRootClass(rootClassName$S, className);
4426
4436
  const [searchText, setSearchText] = useState(value);
4427
4437
  let previousSearchText = '';
4428
4438
  const handleChange = useCallback(event => {
@@ -4678,12 +4688,12 @@ const recentAppInstancesSetter = (latestInstance, maxRecentItems
4678
4688
  };
4679
4689
  };
4680
4690
 
4681
- const rootClassName$Q = 'dot-app-switcher';
4691
+ const rootClassName$R = 'dot-app-switcher';
4682
4692
  const StyledAppSwitcher = styled(DotDrawer)`
4683
4693
  ${({
4684
4694
  theme
4685
4695
  }) => css`
4686
- &.${rootClassName$Q} {
4696
+ &.${rootClassName$R} {
4687
4697
  .dot-drawer-paper {
4688
4698
  padding: 0;
4689
4699
  width: 382px;
@@ -4793,7 +4803,7 @@ const DotAppSwitcherView = ({
4793
4803
  if (dotCoreApiContext !== null) {
4794
4804
  setSelectedAppType = dotCoreApiContext.setSelectedAppSwitcherAppType;
4795
4805
  }
4796
- const rootClasses = useStylesWithRootClass(rootClassName$Q, className);
4806
+ const rootClasses = useStylesWithRootClass(rootClassName$R, className);
4797
4807
  const [appTypeMap, setAppTypeMap] = useState();
4798
4808
  const [appTypeLabels, setAppTypeLabels] = useState();
4799
4809
  const [appTypeMenuItems, setAppTypeMenuItems] = useState();
@@ -5171,12 +5181,12 @@ var SvgLogoDigitalAiWhite = function SvgLogoDigitalAiWhite(_ref, ref) {
5171
5181
  };
5172
5182
  var ForwardRef = /*#__PURE__*/forwardRef(SvgLogoDigitalAiWhite);
5173
5183
 
5174
- const rootClassName$P = 'dot-sidebar';
5184
+ const rootClassName$Q = 'dot-sidebar';
5175
5185
  const StyledSidebar = styled.aside`
5176
5186
  ${({
5177
5187
  theme
5178
5188
  }) => css`
5179
- &.${rootClassName$P} {
5189
+ &.${rootClassName$Q} {
5180
5190
  align-items: stretch;
5181
5191
  background: ${theme.palette.figma.background.level1.white};
5182
5192
  border-width: 0 1px;
@@ -5452,10 +5462,10 @@ const StyledSidebar = styled.aside`
5452
5462
  `}
5453
5463
  `;
5454
5464
 
5455
- const rootClassName$O = 'dot-truncate-with-tooltip';
5465
+ const rootClassName$P = 'dot-truncate-with-tooltip';
5456
5466
  const StyledTruncateWithTooltip = styled(Tooltip)`
5457
5467
  ${() => css`
5458
- &.${rootClassName$O} {
5468
+ &.${rootClassName$P} {
5459
5469
  display: block;
5460
5470
  overflow: hidden;
5461
5471
  white-space: nowrap;
@@ -5486,7 +5496,7 @@ const DotTruncateWithTooltip = ({
5486
5496
  label,
5487
5497
  width
5488
5498
  }) => {
5489
- const rootClasses = useStylesWithRootClass(rootClassName$O, className, charactersLimit ? 'dot-characters-limit' : '');
5499
+ const rootClasses = useStylesWithRootClass(rootClassName$P, className, charactersLimit ? 'dot-characters-limit' : '');
5490
5500
  return jsx(StyledTruncateWithTooltip, {
5491
5501
  "aria-label": ariaLabel,
5492
5502
  arrow: arrow,
@@ -5596,7 +5606,7 @@ const DotSidebar = ({
5596
5606
  setIsOpen(!isOpen);
5597
5607
  };
5598
5608
  const sidebarClasses = useStylesWithRootClass('side-nav', openClass);
5599
- const rootClasses = useStylesWithRootClass(rootClassName$P, openClass, className);
5609
+ const rootClasses = useStylesWithRootClass(rootClassName$Q, openClass, className);
5600
5610
  return jsxs(StyledSidebar, {
5601
5611
  "aria-label": ariaLabel,
5602
5612
  className: rootClasses,
@@ -5663,12 +5673,12 @@ const DotSidebar = ({
5663
5673
  });
5664
5674
  };
5665
5675
 
5666
- const rootClassName$N = 'dot-badge';
5676
+ const rootClassName$O = 'dot-badge';
5667
5677
  const StyledBadge = styled(Badge)`
5668
5678
  ${({
5669
5679
  theme
5670
5680
  }) => css`
5671
- &.${rootClassName$N} {
5681
+ &.${rootClassName$O} {
5672
5682
  color: ${theme.palette.figma.typography.black};
5673
5683
  word-break: normal;
5674
5684
 
@@ -5703,7 +5713,7 @@ const DotBadge = ({
5703
5713
  overlap,
5704
5714
  variant = 'dot'
5705
5715
  }) => {
5706
- const rootClasses = useStylesWithRootClass(rootClassName$N, className);
5716
+ const rootClasses = useStylesWithRootClass(rootClassName$O, className);
5707
5717
  return jsx(StyledBadge, {
5708
5718
  "$badgeColor": badgeColor,
5709
5719
  anchorOrigin: {
@@ -5725,7 +5735,7 @@ const DotBadge = ({
5725
5735
  });
5726
5736
  };
5727
5737
 
5728
- const rootClassName$M = 'dot-app-toolbar';
5738
+ const rootClassName$N = 'dot-app-toolbar';
5729
5739
  const denseClassName = 'dense';
5730
5740
  const StyledMainMenu = styled(DotDrawer)`
5731
5741
  ${({
@@ -5765,7 +5775,7 @@ const StyledAppToolbar = styled.header`
5765
5775
  ${({
5766
5776
  theme
5767
5777
  }) => css`
5768
- &.${rootClassName$M} {
5778
+ &.${rootClassName$N} {
5769
5779
  align-items: center;
5770
5780
  background: ${theme.palette.figma.appToolbar.background};
5771
5781
  border-bottom: 4px solid ${theme.palette.figma.border.default};
@@ -5887,7 +5897,7 @@ const DotAppToolbar = ({
5887
5897
  const displayAppLogo = appLogo || appLogoSmall;
5888
5898
  const mainMenuRef = useRef(null);
5889
5899
  const denseClass = dense ? denseClassName : '';
5890
- const rootClasses = useStylesWithRootClass(rootClassName$M, className, denseClass, showMainMenu ? '' : 'without-menu-icon');
5900
+ const rootClasses = useStylesWithRootClass(rootClassName$N, className, denseClass, showMainMenu ? '' : 'without-menu-icon');
5891
5901
  const mainMenuClasses = useStylesWithRootClass('dot-main-menu', denseClass, menuOpen ? 'open' : '');
5892
5902
  const targetBreakpoint = useMediaQuery(theme => theme.breakpoints.up('lg'));
5893
5903
  useEffect(() => {
@@ -6017,14 +6027,14 @@ const DotAppToolbar = ({
6017
6027
  }) : appToolbar;
6018
6028
  };
6019
6029
 
6020
- const rootClassName$L = 'dot-autocomplete';
6030
+ const rootClassName$M = 'dot-autocomplete';
6021
6031
  const inputRootClassName = 'dot-input-root';
6022
6032
  const inputMediumClassName = 'dot-input-medium';
6023
6033
  const StyledAutocomplete = styled(Autocomplete)`
6024
6034
  ${({
6025
6035
  theme
6026
6036
  }) => css`
6027
- &.${rootClassName$L} {
6037
+ &.${rootClassName$M} {
6028
6038
  &.${inputMediumClassName} .dot-text-field .${inputRootClassName} {
6029
6039
  height: 56px;
6030
6040
  padding-left: ${theme.spacing(2)};
@@ -6061,12 +6071,12 @@ const StyledAutocomplete = styled(Autocomplete)`
6061
6071
  `}
6062
6072
  `;
6063
6073
 
6064
- const rootClassName$K = 'dot-chip';
6074
+ const rootClassName$L = 'dot-chip';
6065
6075
  const StyledChip = styled(Chip)`
6066
6076
  ${({
6067
6077
  theme
6068
6078
  }) => css`
6069
- &.${rootClassName$K} {
6079
+ &.${rootClassName$L} {
6070
6080
  background: ${theme.palette.figma.neutral.normal};
6071
6081
  border-color: ${theme.palette.figma.border.darker};
6072
6082
  color: ${theme.palette.figma.typography.black};
@@ -6172,7 +6182,7 @@ const DotChip = ({
6172
6182
  charactersLimit = DEFAULT_CHARACTERS_LIMIT,
6173
6183
  children,
6174
6184
  className,
6175
- 'data-pendoid': dataPendoId = rootClassName$K,
6185
+ 'data-pendoid': dataPendoId = rootClassName$L,
6176
6186
  'data-testid': dataTestId,
6177
6187
  disabled = false,
6178
6188
  error = false,
@@ -6184,7 +6194,7 @@ const DotChip = ({
6184
6194
  startIcon
6185
6195
  }) => {
6186
6196
  const errorClass = error ? 'Mui-error' : '';
6187
- const rootClasses = useStylesWithRootClass(rootClassName$K, className, errorClass);
6197
+ const rootClasses = useStylesWithRootClass(rootClassName$L, className, errorClass);
6188
6198
  const getChipLabel = () => {
6189
6199
  if (charactersLimit <= 0 || children.length < charactersLimit) return children;
6190
6200
  const label = `${children.substring(0, charactersLimit)}...`;
@@ -6282,7 +6292,7 @@ const DotAutoComplete = ({
6282
6292
  ariaLabel,
6283
6293
  autoFocus,
6284
6294
  className,
6285
- 'data-pendoid': dataPendoId = rootClassName$L,
6295
+ 'data-pendoid': dataPendoId = rootClassName$M,
6286
6296
  'data-testid': dataTestId,
6287
6297
  defaultValue,
6288
6298
  dense = true,
@@ -6333,8 +6343,8 @@ const DotAutoComplete = ({
6333
6343
  const popperOpen = !readOnly && (open || isOpened);
6334
6344
  const preventDuplicateInsertion = actionItem === null || actionItem === void 0 ? void 0 : actionItem.preventDuplicateInsertion;
6335
6345
  const textFieldWarningClassName = !error && warning && warningClassName;
6336
- const rootClasses = useStylesWithRootClass(rootClassName$L, size === 'medium' && inputMediumClassName, className);
6337
- const textFieldRootClasses = useStylesWithRootClass(rootClassName$16, readOnly && readOnlyClassName$1, textFieldWarningClassName);
6346
+ const rootClasses = useStylesWithRootClass(rootClassName$M, size === 'medium' && inputMediumClassName, className);
6347
+ const textFieldRootClasses = useStylesWithRootClass(rootClassName$17, readOnly && readOnlyClassName$1, textFieldWarningClassName);
6338
6348
  const inputRootClasses = useStylesWithRootClass(inputRootClassName, !dense && inputMediumClassName);
6339
6349
  let highlightedOption = null;
6340
6350
  let textFieldInput;
@@ -6379,7 +6389,7 @@ const DotAutoComplete = ({
6379
6389
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6380
6390
  const DotPopper = props => {
6381
6391
  if (!isActionItemDefined) return jsx(StyledPopper, Object.assign({}, props, {
6382
- className: rootClassName$_,
6392
+ className: rootClassName$$,
6383
6393
  disablePortal: disablePortal,
6384
6394
  "$maxHeight": maxHeight
6385
6395
  }));
@@ -6401,7 +6411,7 @@ const DotAutoComplete = ({
6401
6411
  const paperProps = props.children.props;
6402
6412
  const paperChildren = paperProps.children;
6403
6413
  return jsx(StyledPopper, Object.assign({}, props, {
6404
- className: rootClassName$_,
6414
+ className: rootClassName$$,
6405
6415
  disablePortal: disablePortal,
6406
6416
  "$maxHeight": maxHeight,
6407
6417
  children: jsxs(Paper, Object.assign({}, paperProps, {
@@ -6610,10 +6620,10 @@ const DotAutoComplete = ({
6610
6620
  });
6611
6621
  };
6612
6622
 
6613
- const rootClassName$J = 'dot-avatar-group';
6623
+ const rootClassName$K = 'dot-avatar-group';
6614
6624
  const StyledAvatarGroup = styled(AvatarGroup)`
6615
6625
  ${() => css`
6616
- &.${rootClassName$J} {
6626
+ &.${rootClassName$K} {
6617
6627
  justify-content: flex-end;
6618
6628
 
6619
6629
  .MuiAvatar-root {
@@ -6632,7 +6642,7 @@ const DotAvatarGroup = ({
6632
6642
  max = 3,
6633
6643
  spacing = 'medium'
6634
6644
  }) => {
6635
- const rootClasses = useStylesWithRootClass(rootClassName$J, className);
6645
+ const rootClasses = useStylesWithRootClass(rootClassName$K, className);
6636
6646
  return jsx(StyledAvatarGroup, {
6637
6647
  "aria-label": ariaLabel,
6638
6648
  classes: {
@@ -6647,13 +6657,13 @@ const DotAvatarGroup = ({
6647
6657
  });
6648
6658
  };
6649
6659
 
6650
- const rootClassName$I = 'dot-breadcrumbs';
6660
+ const rootClassName$J = 'dot-breadcrumbs';
6651
6661
  const breadcrumbsWrapperClass = 'dot-breadcrumbs-wrapper';
6652
6662
  const StyledBreadcrumbsWrapper = styled.div`
6653
6663
  ${({
6654
6664
  theme
6655
6665
  }) => css`
6656
- &.${rootClassName$I} {
6666
+ &.${rootClassName$J} {
6657
6667
  overflow: hidden;
6658
6668
 
6659
6669
  .dot-breadcrumbs-menu {
@@ -6673,7 +6683,7 @@ const StyledBreadcrumbs = styled(Breadcrumbs)`
6673
6683
  ${({
6674
6684
  theme
6675
6685
  }) => css`
6676
- &.${rootClassName$I} {
6686
+ &.${rootClassName$J} {
6677
6687
  margin-bottom: 0;
6678
6688
 
6679
6689
  .MuiBreadcrumbs-ol {
@@ -7001,7 +7011,7 @@ const DotBreadcrumbs = ({
7001
7011
  children: [jsx(StyledBreadcrumbs, {
7002
7012
  "aria-label": "breadcrumb",
7003
7013
  classes: {
7004
- root: rootClassName$I,
7014
+ root: rootClassName$J,
7005
7015
  ol: 'dot-ol',
7006
7016
  li: 'dot-li'
7007
7017
  },
@@ -7032,14 +7042,14 @@ const DotBreadcrumbs = ({
7032
7042
  });
7033
7043
  };
7034
7044
 
7035
- const rootClassName$H = 'dot-button-toggle';
7045
+ const rootClassName$I = 'dot-button-toggle';
7036
7046
  // TODO: need to update ripple color
7037
7047
  // https://github.com/mui/material-ui/issues/28543
7038
7048
  const StyledToggleButtonGroup = styled(ToggleButtonGroup)`
7039
7049
  ${({
7040
7050
  theme
7041
7051
  }) => css`
7042
- &.${rootClassName$H} {
7052
+ &.${rootClassName$I} {
7043
7053
  button:not(.MuiToggleButton-sizeLarge):not(.MuiToggleButton-sizeSmall) {
7044
7054
  /* Override height for medium size */
7045
7055
  height: ${theme.spacing(5)};
@@ -7155,7 +7165,7 @@ const DotButtonToggle = ({
7155
7165
  buttonOptions,
7156
7166
  className,
7157
7167
  color,
7158
- 'data-pendoid': dataPendoId = rootClassName$H,
7168
+ 'data-pendoid': dataPendoId = rootClassName$I,
7159
7169
  'data-testid': dataTestId = 'dot-toggle',
7160
7170
  disableFocusRipple = false,
7161
7171
  disableRipple = false,
@@ -7165,7 +7175,7 @@ const DotButtonToggle = ({
7165
7175
  size = 'medium',
7166
7176
  value
7167
7177
  }) => {
7168
- const rootClasses = useStylesWithRootClass(rootClassName$H, className);
7178
+ const rootClasses = useStylesWithRootClass(rootClassName$I, className);
7169
7179
  const renderToggleButton = ({
7170
7180
  ariaLabel: optionAriaLabel,
7171
7181
  badgeContent: optionBadgeContent,
@@ -7248,12 +7258,12 @@ const TooltipToggleButton = forwardRef((_a, ref) => {
7248
7258
  }));
7249
7259
  });
7250
7260
 
7251
- const rootClassName$G = 'dot-card';
7261
+ const rootClassName$H = 'dot-card';
7252
7262
  const StyledCard = styled(Card)`
7253
7263
  ${({
7254
7264
  theme
7255
7265
  }) => css`
7256
- &.${rootClassName$G} {
7266
+ &.${rootClassName$H} {
7257
7267
  background-color: ${theme.palette.figma.background.level1.white};
7258
7268
  }
7259
7269
  `}
@@ -7265,7 +7275,7 @@ const DotCard = ({
7265
7275
  className,
7266
7276
  'data-testid': dataTestId
7267
7277
  }) => {
7268
- const rootClasses = useStylesWithRootClass(rootClassName$G, className);
7278
+ const rootClasses = useStylesWithRootClass(rootClassName$H, className);
7269
7279
  return jsx(StyledCard, {
7270
7280
  "aria-label": ariaLabel,
7271
7281
  classes: {
@@ -7294,12 +7304,12 @@ const DotCardContent = ({
7294
7304
  });
7295
7305
  };
7296
7306
 
7297
- const rootClassName$F = 'dot-card-footer';
7307
+ const rootClassName$G = 'dot-card-footer';
7298
7308
  const StyledDiv = styled.div`
7299
7309
  ${({
7300
7310
  theme
7301
7311
  }) => css`
7302
- &.${rootClassName$F} {
7312
+ &.${rootClassName$G} {
7303
7313
  padding: ${theme.spacing(2)};
7304
7314
  }
7305
7315
  `}
@@ -7311,7 +7321,7 @@ const DotCardFooter = ({
7311
7321
  className,
7312
7322
  'data-testid': dataTestId
7313
7323
  }) => {
7314
- const rootClasses = useStylesWithRootClass(rootClassName$F, className);
7324
+ const rootClasses = useStylesWithRootClass(rootClassName$G, className);
7315
7325
  return jsx(StyledDiv, {
7316
7326
  "aria-label": ariaLabel,
7317
7327
  className: rootClasses,
@@ -7355,9 +7365,9 @@ const DotCardHeader = ({
7355
7365
  });
7356
7366
  };
7357
7367
 
7358
- const rootClassName$E = 'dot-form-control-label';
7368
+ const rootClassName$F = 'dot-form-control-label';
7359
7369
  const StyledFormControlLabel = styled(FormControlLabel)`
7360
- &.${rootClassName$E} {
7370
+ &.${rootClassName$F} {
7361
7371
  .MuiFormControlLabel-label {
7362
7372
  margin-bottom: 0;
7363
7373
  padding: 0 0 0 4px;
@@ -7380,12 +7390,12 @@ const StyledFormControlLabel = styled(FormControlLabel)`
7380
7390
  }
7381
7391
  `;
7382
7392
 
7383
- const rootClassName$D = 'dot-checkbox';
7393
+ const rootClassName$E = 'dot-checkbox';
7384
7394
  const StyledCheckbox = styled(Checkbox)`
7385
7395
  ${({
7386
7396
  theme
7387
7397
  }) => css`
7388
- &.${rootClassName$D} {
7398
+ &.${rootClassName$E} {
7389
7399
  padding: ${theme.spacing(1)};
7390
7400
 
7391
7401
  &.MuiCheckbox-indeterminate {
@@ -7404,7 +7414,7 @@ function DotCheckbox({
7404
7414
  ariaLabelledby,
7405
7415
  checked,
7406
7416
  className,
7407
- 'data-pendoid': dataPendoId = rootClassName$E,
7417
+ 'data-pendoid': dataPendoId = rootClassName$F,
7408
7418
  'data-testid': dataTestId,
7409
7419
  disabled,
7410
7420
  disableRipple,
@@ -7419,14 +7429,14 @@ function DotCheckbox({
7419
7429
  size = 'medium',
7420
7430
  value
7421
7431
  }) {
7422
- const rootClasses = useStylesWithRootClass(rootClassName$E, className);
7432
+ const rootClasses = useStylesWithRootClass(rootClassName$F, className);
7423
7433
  const handleChange = event => {
7424
7434
  onChange && onChange(event, event.target.value);
7425
7435
  };
7426
7436
  const checkboxControl = jsx(StyledCheckbox, {
7427
7437
  checked: checked,
7428
7438
  classes: {
7429
- root: rootClassName$D
7439
+ root: rootClassName$E
7430
7440
  },
7431
7441
  color: "primary",
7432
7442
  "data-pendoid": dataPendoId,
@@ -7455,13 +7465,13 @@ function DotCheckbox({
7455
7465
  });
7456
7466
  }
7457
7467
 
7458
- const rootClassName$C = 'dot-form-group';
7468
+ const rootClassName$D = 'dot-form-group';
7459
7469
  const groupLabelClassName = 'dot-form-group-label';
7460
7470
  const startAdornmentClassName = 'dot-start-adornment';
7461
7471
  const endAdornmentClassName = 'dot-end-adornment';
7462
7472
  const placementClassName = 'dot-';
7463
7473
  const StyledFormControl = styled(FormControl)`
7464
- &.${rootClassName$C} {
7474
+ &.${rootClassName$D} {
7465
7475
  .MuiFormLabel-root {
7466
7476
  width: 100%;
7467
7477
  line-height: 24px;
@@ -7492,7 +7502,7 @@ const StyledFormControl = styled(FormControl)`
7492
7502
  }
7493
7503
  `;
7494
7504
 
7495
- const rootClassName$B = 'dot-checkbox-group';
7505
+ const rootClassName$C = 'dot-checkbox-group';
7496
7506
  const wrapperClassName$1 = 'dot-checkbox-group-wrapper';
7497
7507
  const checkboxListClassName = 'dot-checkbox-list';
7498
7508
  const checkboxListItemClassName = 'dot-checkbox-list-item';
@@ -7501,7 +7511,7 @@ const StyledCheckboxGroup = styled.div`
7501
7511
  theme
7502
7512
  }) => css`{
7503
7513
  &.${wrapperClassName$1} {
7504
- .${rootClassName$B} {
7514
+ .${rootClassName$C} {
7505
7515
  width: 100%;
7506
7516
  }
7507
7517
 
@@ -7524,7 +7534,7 @@ const StyledCheckboxGroup = styled.div`
7524
7534
  margin-top: 0;
7525
7535
  padding-left: ${theme.spacing(2.5)};
7526
7536
 
7527
- .${rootClassName$E} {
7537
+ .${rootClassName$F} {
7528
7538
  margin: 0;
7529
7539
  }
7530
7540
  }
@@ -7532,13 +7542,13 @@ const StyledCheckboxGroup = styled.div`
7532
7542
  `}
7533
7543
  `;
7534
7544
 
7535
- const rootClassName$A = 'dot-form-group';
7545
+ const rootClassName$B = 'dot-form-group';
7536
7546
  const StyledFormGroup = styled(FormGroup)`
7537
7547
  ${({
7538
7548
  theme,
7539
7549
  row
7540
7550
  }) => css`
7541
- &.${rootClassName$A} > * {
7551
+ &.${rootClassName$B} > * {
7542
7552
  margin: ${row ? `${theme.spacing(0.5)}` : 0};
7543
7553
  }
7544
7554
  `}
@@ -7551,7 +7561,7 @@ function DotFormGroup({
7551
7561
  'data-testid': dataTestId,
7552
7562
  row
7553
7563
  }) {
7554
- const rootClasses = useStylesWithRootClass(rootClassName$C, className);
7564
+ const rootClasses = useStylesWithRootClass(rootClassName$D, className);
7555
7565
  return jsx(StyledFormGroup, {
7556
7566
  "aria-label": ariaLabel,
7557
7567
  classes: {
@@ -7590,7 +7600,7 @@ function DotCheckboxGroup({
7590
7600
  size = 'medium'
7591
7601
  }) {
7592
7602
  const placement = `${placementClassName}${labelPlacement}`;
7593
- const rootClasses = useStylesWithRootClass(rootClassName$C, rootClassName$B, className, placement);
7603
+ const rootClasses = useStylesWithRootClass(rootClassName$D, rootClassName$C, className, placement);
7594
7604
  const [selectedOptions, setSelectedOptions] = useState(defaultValues);
7595
7605
  const [allChecked, setAllChecked] = useState(false);
7596
7606
  /* This will ensure that state can be updated from the outside */
@@ -7675,12 +7685,12 @@ function DotCheckboxGroup({
7675
7685
  });
7676
7686
  }
7677
7687
 
7678
- const rootClassName$z = 'dot-dialog';
7688
+ const rootClassName$A = 'dot-dialog';
7679
7689
  const StyledDialog = styled(Dialog)`
7680
7690
  ${({
7681
7691
  theme
7682
7692
  }) => css`
7683
- &.${rootClassName$z} {
7693
+ &.${rootClassName$A} {
7684
7694
  .MuiDialog-paper {
7685
7695
  background: ${theme.palette.figma.background.level1.white};
7686
7696
  color: ${theme.palette.figma.typography.black};
@@ -7726,7 +7736,7 @@ const DotDialog = ({
7726
7736
  cancelButtonProps,
7727
7737
  cancelButtonVisible = true,
7728
7738
  className,
7729
- 'data-pendoid': dataPendoId = rootClassName$z,
7739
+ 'data-pendoid': dataPendoId = rootClassName$A,
7730
7740
  'data-testid': dataTestId,
7731
7741
  children,
7732
7742
  closeIconVisible,
@@ -7739,7 +7749,7 @@ const DotDialog = ({
7739
7749
  submitButtonProps,
7740
7750
  title
7741
7751
  }) => {
7742
- const rootClasses = useStylesWithRootClass(rootClassName$z, className);
7752
+ const rootClasses = useStylesWithRootClass(rootClassName$A, className);
7743
7753
  const cancelClasses = useStylesWithRootClass(cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.className, 'cancel-button');
7744
7754
  const [isOpen, setIsOpen] = useState(open);
7745
7755
  useEffect(() => {
@@ -7857,7 +7867,7 @@ const DotConfirmationDialog = ({
7857
7867
  });
7858
7868
  };
7859
7869
 
7860
- const rootClassName$y = 'dot-grid';
7870
+ const rootClassName$z = 'dot-grid';
7861
7871
  const frGetter = value => typeof value === 'number' ? `repeat(${value}, 1fr)` : value;
7862
7872
  const breakpointsGetter$1 = (theme, columnsBreakpoints, columnGap, rowGap) => `${theme.breakpoints.up('xs')} {
7863
7873
  column-gap: ${`${columnGap.xs}px`};
@@ -7909,7 +7919,7 @@ const Grid = ({
7909
7919
  className,
7910
7920
  children
7911
7921
  }) => {
7912
- const rootClasses = useStylesWithRootClass(rootClassName$y, className);
7922
+ const rootClasses = useStylesWithRootClass(rootClassName$z, className);
7913
7923
  return jsx("div", {
7914
7924
  className: rootClasses,
7915
7925
  children: children
@@ -7928,7 +7938,7 @@ const StyledGrid = styled(Grid)`
7928
7938
  theme,
7929
7939
  width
7930
7940
  }) => css`
7931
- &.${rootClassName$y} {
7941
+ &.${rootClassName$z} {
7932
7942
  display: grid;
7933
7943
  grid-template-rows: ${frGetter(rows)};
7934
7944
  ${columns ? `${columns && `grid-template-columns: ${frGetter(columns)}`};` : breakpointsGetter$1(theme, columnsBreakpoints, columnGap, rowGap)}
@@ -8134,7 +8144,7 @@ const CssGridDebug = ({
8134
8144
  });
8135
8145
  };
8136
8146
 
8137
- const rootClassName$x = 'dot-empty-state';
8147
+ const rootClassName$y = 'dot-empty-state';
8138
8148
  const StyledEmptyState = styled.div`
8139
8149
  ${({
8140
8150
  theme
@@ -8144,6 +8154,11 @@ const StyledEmptyState = styled.div`
8144
8154
  max-width: 600px;
8145
8155
  text-align: center;
8146
8156
 
8157
+ .empty-state-image-container {
8158
+ display: flex;
8159
+ justify-content: center;
8160
+ }
8161
+
8147
8162
  .empty-state-image {
8148
8163
  min-height: 239px;
8149
8164
  margin-bottom: ${theme.spacing(5)};
@@ -8164,26 +8179,77 @@ const StyledEmptyState = styled.div`
8164
8179
  `}
8165
8180
  `;
8166
8181
 
8182
+ const rootClassName$x = 'dot-illustration';
8183
+ const StyledIllustration = styled.span`
8184
+ &.${rootClassName$x} {
8185
+ display: inline-block;
8186
+ }
8187
+ `;
8188
+
8189
+ const DotIllustration = ({
8190
+ alt,
8191
+ ariaLabel,
8192
+ ariaRole = 'img',
8193
+ className,
8194
+ 'data-testid': dataTestId,
8195
+ illustrationId,
8196
+ theme = 'light',
8197
+ title,
8198
+ tooltip,
8199
+ tooltipPlacement = 'right-end'
8200
+ }) => {
8201
+ const rootClasses = useStylesWithRootClass(rootClassName$x, className);
8202
+ return jsx(DotTooltip, {
8203
+ title: tooltip,
8204
+ placement: tooltipPlacement,
8205
+ "data-testid": `${dataTestId || rootClassName$x}-tooltip`,
8206
+ children: jsx(StyledIllustration, {
8207
+ "aria-hidden": "false",
8208
+ "aria-label": ariaLabel || title || 'Illustration',
8209
+ className: rootClasses,
8210
+ "data-testid": dataTestId || rootClassName$x,
8211
+ role: ariaRole,
8212
+ children: jsx("img", {
8213
+ alt: alt || 'Illustration',
8214
+ "aria-label": ariaLabel || title || 'Illustration',
8215
+ className: `illustration-${illustrationId} dot-img ${theme}-theme`,
8216
+ "data-testid": dataTestId && `${dataTestId}-img`,
8217
+ role: ariaRole,
8218
+ title: title || 'Illustration'
8219
+ })
8220
+ })
8221
+ });
8222
+ };
8223
+
8167
8224
  const DotEmptyState = ({
8168
8225
  ariaLabel,
8169
8226
  buttonProps,
8170
8227
  className,
8171
8228
  'data-testid': dataTestId,
8229
+ illustrationId,
8172
8230
  imageAltText,
8173
8231
  imageSrc,
8174
8232
  subtitle,
8175
8233
  title
8176
8234
  }) => {
8177
- const rootClasses = useStylesWithRootClass(rootClassName$x, className);
8235
+ const rootClasses = useStylesWithRootClass(rootClassName$y, className);
8178
8236
  return jsxs(StyledEmptyState, {
8179
8237
  "aria-label": ariaLabel,
8180
8238
  className: rootClasses,
8181
8239
  "data-testid": dataTestId,
8182
- children: [imageSrc && jsx("img", {
8183
- alt: imageAltText || title,
8184
- className: "empty-state-image",
8185
- src: imageSrc,
8186
- title: imageAltText || title
8240
+ children: [jsxs("div", {
8241
+ className: "empty-state-image-container",
8242
+ children: [illustrationId && jsx(DotIllustration, {
8243
+ alt: imageAltText || title,
8244
+ className: "empty-state-image",
8245
+ illustrationId: illustrationId,
8246
+ title: imageAltText || title
8247
+ }), !illustrationId && imageSrc && jsx("img", {
8248
+ alt: imageAltText || title,
8249
+ className: "empty-state-image",
8250
+ src: imageSrc,
8251
+ title: imageAltText || title
8252
+ })]
8187
8253
  }), jsx(DotTypography, {
8188
8254
  variant: "h2",
8189
8255
  children: title
@@ -8248,30 +8314,188 @@ const StyledRadioGroup = styled(RadioGroup)`
8248
8314
  &.${groupClassName} {
8249
8315
  padding-left: ${theme.spacing(2.5)};
8250
8316
 
8251
- .${rootClassName$E} {
8317
+ .${rootClassName$F} {
8252
8318
  margin: 0;
8253
8319
  }
8254
8320
  }
8255
8321
  `}
8256
8322
  `;
8257
8323
 
8258
- const rootClassName$w = 'dot-form';
8259
- const StyledFormContainer = styled.div`
8324
+ const rootClassName$w = 'dot-date-picker';
8325
+ const popperClassName = 'dot-date-picker-popper';
8326
+ const containerClassName$2 = 'dot-date-picker-container';
8327
+ const rectanglePickersDayClassName = 'dot-rectangle-pickers-day';
8328
+ const StyledDatePickerContainer = styled.div`
8329
+ ${() => css`
8330
+ &.${rootClassName$w} .full-width {
8331
+ width: 100%;
8332
+ }
8333
+ `}
8334
+ `;
8335
+ const StyledDatePicker = styled(DatePicker)`
8260
8336
  ${({
8261
8337
  theme
8262
8338
  }) => css`
8263
8339
  &.${rootClassName$w} {
8340
+ ${pickerInputStyles(theme)};
8341
+
8342
+ .Mui-disabled.MuiInputBase-root,
8343
+ &.read-only .MuiInputBase-root {
8344
+ ${readOnlyStyles(theme)};
8345
+ }
8346
+
8347
+ .dot-icon-btn .dot-i {
8348
+ margin-top: -5px;
8349
+ }
8350
+
8351
+ .MuiFormLabel-root {
8352
+ color: ${theme.palette.figma.typography.black};
8353
+ }
8354
+ }
8355
+ `}
8356
+ `;
8357
+ const StyledPickersDay = styled(PickersDay)`
8358
+ ${({
8359
+ theme
8360
+ }) => css`
8361
+ &.${rectanglePickersDayClassName} {
8362
+ border-radius: ${theme.spacing(0.5)};
8363
+ &.MuiPickersDay-today:not(.Mui-selected) {
8364
+ background: ${theme.palette.figma.neutral.normal};
8365
+ border: 1px solid ${theme.palette.figma.primary.normal};
8366
+ &:hover {
8367
+ background: ${theme.palette.figma.primary.normal};
8368
+ }
8369
+ }
8370
+
8371
+ &:hover {
8372
+ background: ${theme.palette.figma.primary.normal};
8373
+ color: ${theme.palette.figma.typography.white};
8374
+ }
8375
+ }
8376
+ `}
8377
+ `;
8378
+
8379
+ const rootClassName$v = 'dot-time-picker';
8380
+ const containerClassName$1 = 'dot-time-picker-container';
8381
+ const TIME_SELECTION_HEIGHT_SPACING = 34.5;
8382
+ const TIME_SELECTION_WIDTH_SPACING = 14.5;
8383
+ const TIME_UNIT_WIDTH_SPACING = 4.5;
8384
+ const TIME_UNIT_HEIGHT_SPACING = 4.5;
8385
+ const StyledTimePickerContainer = styled.div`
8386
+ ${({
8387
+ theme
8388
+ }) => css`
8389
+ &.${containerClassName$1} {
8390
+ .full-width {
8391
+ width: 100%;
8392
+ }
8393
+
8394
+ .dot-time-picker-popper {
8395
+ z-index: ${levelTop};
8396
+
8397
+ .dot-time-picker-paper {
8398
+ display: flex;
8399
+ flex-direction: column;
8400
+ align-items: center;
8401
+
8402
+ .dot-time-picker-selection {
8403
+ max-height: ${theme.spacing(TIME_SELECTION_HEIGHT_SPACING)};
8404
+ width: ${theme.spacing(TIME_SELECTION_WIDTH_SPACING)};
8405
+ display: flex;
8406
+ margin: ${theme.spacing(1)};
8407
+ gap: ${theme.spacing(0.5)};
8408
+
8409
+ .dot-time-picker-hours,
8410
+ .dot-time-picker-minutes,
8411
+ .dot-time-picker-daytime {
8412
+ display: flex;
8413
+ flex-direction: column;
8414
+ overflow: auto;
8415
+ gap: ${theme.spacing(0.5)};
8416
+ padding-bottom: ${theme.spacing(TIME_SELECTION_HEIGHT_SPACING - TIME_UNIT_HEIGHT_SPACING)};
8417
+
8418
+ /* Hide scrollbar for Chrome, Safari and Opera */
8419
+ ::-webkit-scrollbar {
8420
+ display: none;
8421
+ }
8422
+
8423
+ /* Hide scrollbar for IE, Edge and Firefox */
8424
+ -ms-overflow-style: none; /* IE and Edge */
8425
+ scrollbar-width: none; /* Firefox */
8426
+ }
8427
+
8428
+ .dot-picker-button {
8429
+ width: ${theme.spacing(TIME_UNIT_WIDTH_SPACING)};
8430
+ height: ${theme.spacing(TIME_UNIT_HEIGHT_SPACING)};
8431
+ margin: 0;
8432
+ }
8433
+ }
8434
+
8435
+ .dot-time-picker-action-buttons {
8436
+ display: flex;
8437
+ align-items: center;
8438
+ justify-content: space-between;
8439
+ padding: ${theme.spacing(0.5)};
8440
+ }
8441
+ }
8442
+ }
8443
+ }
8444
+ `}
8445
+ `;
8446
+ const StyledTimePicker = styled(TimePicker)`
8447
+ ${({
8448
+ theme
8449
+ }) => css`
8450
+ &.${rootClassName$v} {
8451
+ ${pickerInputStyles(theme)};
8452
+
8453
+ .Mui-disabled.MuiInputBase-root,
8454
+ &.read-only .MuiInputBase-root {
8455
+ ${readOnlyStyles(theme)};
8456
+ }
8457
+
8458
+ .dot-icon-btn .dot-i {
8459
+ margin-top: -5px;
8460
+ }
8461
+
8462
+ .MuiFormLabel-root {
8463
+ color: ${theme.palette.figma.typography.black};
8464
+ }
8465
+ }
8466
+ `}
8467
+ `;
8468
+
8469
+ const rootClassName$u = 'dot-form';
8470
+ const StyledFormContainer = styled.div`
8471
+ ${({
8472
+ theme
8473
+ }) => css`
8474
+ &.${rootClassName$u} {
8264
8475
  margin: ${theme.spacing(3, 0)};
8265
8476
 
8266
- .${rootClassName$C},
8267
- .${rootClassName$E},
8268
- .${rootClassName$16},
8269
- .${rootSelectClassName} {
8477
+ .${rootClassName$D},
8478
+ .${rootClassName$F},
8479
+ .${rootClassName$17},
8480
+ .${rootSelectClassName},
8481
+ .${rootClassName$w},
8482
+ .${rootClassName$v} {
8270
8483
  margin: ${theme.spacing(1, 0)};
8271
8484
  }
8272
8485
 
8273
- .${rootClassName$B}, .${groupClassName} {
8274
- .${rootClassName$E} {
8486
+ label
8487
+ + .${rootClassName$17},
8488
+ label
8489
+ + .${rootSelectClassName},
8490
+ label
8491
+ + .${rootClassName$w},
8492
+ label
8493
+ + .${rootClassName$v} {
8494
+ margin: ${theme.spacing(0, 0, 1, 0)};
8495
+ }
8496
+
8497
+ .${rootClassName$C}, .${groupClassName} {
8498
+ .${rootClassName$F} {
8275
8499
  margin: 0;
8276
8500
  }
8277
8501
  }
@@ -8286,7 +8510,7 @@ const DotForm = ({
8286
8510
  'data-testid': dataTestId,
8287
8511
  onSubmit
8288
8512
  }) => {
8289
- const rootClasses = useStylesWithRootClass(rootClassName$w, className);
8513
+ const rootClasses = useStylesWithRootClass(rootClassName$u, className);
8290
8514
  return jsx("form", {
8291
8515
  "aria-label": ariaLabel,
8292
8516
  "data-testid": dataTestId,
@@ -8299,10 +8523,10 @@ const DotForm = ({
8299
8523
  });
8300
8524
  };
8301
8525
 
8302
- const rootClassName$v = 'dot-dynamic-form';
8526
+ const rootClassName$t = 'dot-dynamic-form';
8303
8527
  const StyledDynamicForm = styled(DotForm)`
8304
8528
  ${() => css`
8305
- &.${rootClassName$v} {
8529
+ &.${rootClassName$t} {
8306
8530
  }
8307
8531
  `}
8308
8532
  `;
@@ -8593,12 +8817,12 @@ const DotInputSelect = ({
8593
8817
  });
8594
8818
  };
8595
8819
 
8596
- const rootClassName$u = 'dot-progress-button';
8820
+ const rootClassName$s = 'dot-progress-button';
8597
8821
  const StyledProgressButton = styled(DotButton)`
8598
8822
  ${({
8599
8823
  theme
8600
8824
  }) => css`
8601
- &.${rootClassName$u} {
8825
+ &.${rootClassName$s} {
8602
8826
  .hidden {
8603
8827
  // hide children but preserve its space so that
8604
8828
  // button's dimensions don't change
@@ -8623,7 +8847,7 @@ const DotProgressButton = ({
8623
8847
  ariaLabel,
8624
8848
  children,
8625
8849
  className,
8626
- 'data-pendoid': dataPendoId = rootClassName$u,
8850
+ 'data-pendoid': dataPendoId = rootClassName$s,
8627
8851
  'data-testid': dataTestId,
8628
8852
  disabled = false,
8629
8853
  disableRipple = false,
@@ -8636,7 +8860,7 @@ const DotProgressButton = ({
8636
8860
  tooltip,
8637
8861
  type = 'primary'
8638
8862
  }) => {
8639
- const rootClasses = useStylesWithRootClass(rootClassName$u, className);
8863
+ const rootClasses = useStylesWithRootClass(rootClassName$s, className);
8640
8864
  const isButtonDisabled = disabled || isLoading;
8641
8865
  const titleClasses = useStylesWithRootClass(isLoading ? 'hidden' : '');
8642
8866
  const progressCircleSize = size === 'large' ? SPINNER_LARGE_SIZE : SPINNER_DEFAULT_SIZE;
@@ -8664,12 +8888,12 @@ const DotProgressButton = ({
8664
8888
  });
8665
8889
  };
8666
8890
 
8667
- const rootClassName$t = 'dot-radio';
8891
+ const rootClassName$r = 'dot-radio';
8668
8892
  const StyledRadioButton = styled(Radio)`
8669
8893
  ${({
8670
8894
  theme
8671
8895
  }) => css`
8672
- &.${rootClassName$t} {
8896
+ &.${rootClassName$r} {
8673
8897
  padding: 8px;
8674
8898
 
8675
8899
  svg {
@@ -8687,7 +8911,7 @@ function DotRadioButton({
8687
8911
  ariaLabel,
8688
8912
  checked,
8689
8913
  className,
8690
- 'data-pendoid': dataPendoId = rootClassName$E,
8914
+ 'data-pendoid': dataPendoId = rootClassName$F,
8691
8915
  'data-testid': dataTestId,
8692
8916
  disabled,
8693
8917
  id,
@@ -8700,7 +8924,7 @@ function DotRadioButton({
8700
8924
  size = 'medium',
8701
8925
  value
8702
8926
  }) {
8703
- const rootClasses = useStylesWithRootClass(rootClassName$E, className);
8927
+ const rootClasses = useStylesWithRootClass(rootClassName$F, className);
8704
8928
  const handleChange = event => {
8705
8929
  onChange && onChange(event, event.target.value);
8706
8930
  };
@@ -8708,7 +8932,7 @@ function DotRadioButton({
8708
8932
  const radioControl = jsx(StyledRadioButton, {
8709
8933
  checked: checked,
8710
8934
  classes: {
8711
- root: rootClassName$t
8935
+ root: rootClassName$r
8712
8936
  },
8713
8937
  color: "primary",
8714
8938
  "data-pendoid": dataPendoId,
@@ -8754,7 +8978,7 @@ const DotRadioGroup = ({
8754
8978
  size = 'medium'
8755
8979
  }) => {
8756
8980
  const placement = `${placementClassName}${labelPlacement}`;
8757
- const rootClasses = useStylesWithRootClass(rootClassName$C, className, placement);
8981
+ const rootClasses = useStylesWithRootClass(rootClassName$D, className, placement);
8758
8982
  const radioValue = value || defaultValue;
8759
8983
  const [selectedValue, setSelectedValue] = useState(radioValue);
8760
8984
  /* This will ensure that value can be updated from the outside */
@@ -8819,7 +9043,7 @@ const DotRadioGroup = ({
8819
9043
  });
8820
9044
  };
8821
9045
 
8822
- const rootClassName$s = 'dot-switch';
9046
+ const rootClassName$q = 'dot-switch';
8823
9047
  const StyledSwitch = styled(Switch)`
8824
9048
  ${({
8825
9049
  theme
@@ -8848,7 +9072,7 @@ const DotSwitch = ({
8848
9072
  checked,
8849
9073
  className,
8850
9074
  color,
8851
- 'data-pendoid': dataPendoId = rootClassName$s,
9075
+ 'data-pendoid': dataPendoId = rootClassName$q,
8852
9076
  'data-testid': dataTestId,
8853
9077
  disabled = false,
8854
9078
  id,
@@ -8858,7 +9082,7 @@ const DotSwitch = ({
8858
9082
  onChange,
8859
9083
  size = 'medium'
8860
9084
  }) => {
8861
- const rootClasses = useStylesWithRootClass(rootClassName$s, className);
9085
+ const rootClasses = useStylesWithRootClass(rootClassName$q, className);
8862
9086
  const handleChange = event => {
8863
9087
  onChange && onChange(event);
8864
9088
  };
@@ -8888,7 +9112,7 @@ const DotSwitch = ({
8888
9112
  tabIndex: 0
8889
9113
  });
8890
9114
  return jsx(StyledFormControlLabel, {
8891
- className: rootClassName$E,
9115
+ className: rootClassName$F,
8892
9116
  control: switchControl,
8893
9117
  label: label,
8894
9118
  labelPlacement: labelPlacement
@@ -9209,7 +9433,7 @@ const DotDynamicForm = ({
9209
9433
  onChange,
9210
9434
  onSubmit
9211
9435
  }) => {
9212
- const rootClasses = useStylesWithRootClass(rootClassName$v, className);
9436
+ const rootClasses = useStylesWithRootClass(rootClassName$t, className);
9213
9437
  // Memoize this operation so that is doesn't get executed each time this
9214
9438
  // component re-renders
9215
9439
  const initialFormState = useMemo(() => getInitialFormState(config, liveValidation), [config, liveValidation, getInitialFormState]);
@@ -9455,7 +9679,7 @@ const DotDynamicForm = ({
9455
9679
  });
9456
9680
  };
9457
9681
 
9458
- const rootClassName$r = 'dot-inline-edit';
9682
+ const rootClassName$p = 'dot-inline-edit';
9459
9683
  const editModeClassName = 'dot-edit-mode';
9460
9684
  const viewModeClassName = 'dot-view-mode';
9461
9685
  const placeholderClassName = 'dot-placeholder';
@@ -9467,7 +9691,7 @@ const StyledInlineEdit = styled.div`
9467
9691
  theme,
9468
9692
  fullWidth
9469
9693
  }) => css`
9470
- &.${rootClassName$r} {
9694
+ &.${rootClassName$p} {
9471
9695
  align-items: center;
9472
9696
  color: ${theme.palette.figma.typography.black};
9473
9697
  display: ${fullWidth ? 'flex' : 'inline-flex'};
@@ -9679,7 +9903,7 @@ const DotInlineEdit = ({
9679
9903
  bindings,
9680
9904
  charactersLimit,
9681
9905
  className,
9682
- 'data-pendoid': dataPendoId = rootClassName$r,
9906
+ 'data-pendoid': dataPendoId = rootClassName$p,
9683
9907
  'data-testid': dataTestId,
9684
9908
  fullWidth = true,
9685
9909
  hideActionButtons,
@@ -9712,7 +9936,7 @@ const DotInlineEdit = ({
9712
9936
  }
9713
9937
  }, [value]);
9714
9938
  const isSaveDisabled = checkIfEmptyValue(inputValue);
9715
- const rootClasses = useStylesWithRootClass(rootClassName$r, className, editing ? editModeClassName : '');
9939
+ const rootClasses = useStylesWithRootClass(rootClassName$p, className, editing ? editModeClassName : '');
9716
9940
  const handleShowTooltip = visible => {
9717
9941
  if (!editing) {
9718
9942
  setShowTooltip(visible);
@@ -9891,13 +10115,13 @@ const DotInlineEdit = ({
9891
10115
  });
9892
10116
  };
9893
10117
 
9894
- const rootClassName$q = 'dot-navigation-rail';
10118
+ const rootClassName$o = 'dot-navigation-rail';
9895
10119
  const StyledNavigationRail = styled.div`
9896
10120
  ${({
9897
10121
  theme,
9898
10122
  railItemPosition
9899
10123
  }) => css`
9900
- &.${rootClassName$q} {
10124
+ &.${rootClassName$o} {
9901
10125
  background: ${theme.palette.figma.neutral.elevated};
9902
10126
  border-left: 1px solid ${theme.palette.figma.border.default};
9903
10127
  display: flex;
@@ -9944,7 +10168,7 @@ const DotNavigationRail = ({
9944
10168
  railItems,
9945
10169
  selectedIndex = 0
9946
10170
  }) => {
9947
- const rootClasses = useStylesWithRootClass(rootClassName$q, className);
10171
+ const rootClasses = useStylesWithRootClass(rootClassName$o, className);
9948
10172
  const [selectedItemIndex, setSelectedItemIndex] = useState(selectedIndex);
9949
10173
  /* Used to change selected index programmatically from the consumer component */
9950
10174
  useEffect(() => {
@@ -9995,12 +10219,12 @@ const DotNavigationRail = ({
9995
10219
  });
9996
10220
  };
9997
10221
 
9998
- const rootClassName$p = 'dot-pill';
10222
+ const rootClassName$n = 'dot-pill';
9999
10223
  const StyledPill = styled(Chip)`
10000
10224
  ${({
10001
10225
  theme
10002
10226
  }) => css`
10003
- &.${rootClassName$p} {
10227
+ &.${rootClassName$n} {
10004
10228
  background-color: ${({
10005
10229
  backgroundcolor
10006
10230
  }) => {
@@ -10031,7 +10255,7 @@ const StyledPill = styled(Chip)`
10031
10255
 
10032
10256
  &.MuiChip-outlined {
10033
10257
  &.error {
10034
- background-color: ${theme.palette.error[100]};
10258
+ background-color: ${theme.palette.error[50]};
10035
10259
  border-color: ${theme.palette.error.main};
10036
10260
  color: ${theme.palette.layer.n700};
10037
10261
  .dot-icon {
@@ -10039,8 +10263,17 @@ const StyledPill = styled(Chip)`
10039
10263
  }
10040
10264
  }
10041
10265
 
10266
+ &.default {
10267
+ background-color: ${theme.palette.grey[50]};
10268
+ border-color: ${theme.palette.grey[200]};
10269
+ color: ${theme.palette.layer.n700};
10270
+ .dot-icon {
10271
+ color: ${theme.palette.grey.main};
10272
+ }
10273
+ }
10274
+
10042
10275
  &.success {
10043
- background-color: ${theme.palette.success[100]};
10276
+ background-color: ${theme.palette.success[50]};
10044
10277
  border-color: ${theme.palette.success.main};
10045
10278
  color: ${theme.palette.layer.n700};
10046
10279
  .dot-icon {
@@ -10049,7 +10282,7 @@ const StyledPill = styled(Chip)`
10049
10282
  }
10050
10283
 
10051
10284
  &.warning {
10052
- background-color: ${theme.palette.warning[100]};
10285
+ background-color: ${theme.palette.warning[50]};
10053
10286
  border-color: ${theme.palette.warning.main};
10054
10287
  color: ${theme.palette.layer.n700};
10055
10288
  .dot-icon {
@@ -10058,7 +10291,7 @@ const StyledPill = styled(Chip)`
10058
10291
  }
10059
10292
 
10060
10293
  &.in-progress {
10061
- background-color: ${theme.palette.primary[100]};
10294
+ background-color: ${theme.palette.primary[50]};
10062
10295
  border-color: ${theme.palette.primary.main};
10063
10296
  color: ${theme.palette.layer.n700};
10064
10297
  .dot-icon {
@@ -10068,6 +10301,15 @@ const StyledPill = styled(Chip)`
10068
10301
  }
10069
10302
 
10070
10303
  &.MuiChip-filled {
10304
+ &.default {
10305
+ background-color: ${theme.palette.grey[200]};
10306
+ border-color: ${theme.palette.grey[200]};
10307
+ color: ${theme.palette.layer.n700};
10308
+ .dot-icon {
10309
+ color: ${theme.palette.grey.main};
10310
+ }
10311
+ }
10312
+
10071
10313
  &.error {
10072
10314
  background-color: ${theme.palette.error.main};
10073
10315
  border-color: ${theme.palette.error.main};
@@ -10121,7 +10363,7 @@ const DotPill = ({
10121
10363
  status = 'default',
10122
10364
  variant = 'filled'
10123
10365
  }) => {
10124
- const rootClasses = useStylesWithRootClass(rootClassName$p, className, status);
10366
+ const rootClasses = useStylesWithRootClass(rootClassName$n, className, status);
10125
10367
  return jsx(StyledPill, {
10126
10368
  "aria-label": ariaLabel,
10127
10369
  bordercolor: bordercolor,
@@ -10139,12 +10381,12 @@ const DotPill = ({
10139
10381
  });
10140
10382
  };
10141
10383
 
10142
- const rootClassName$o = 'dot-skeleton';
10384
+ const rootClassName$m = 'dot-skeleton';
10143
10385
  const StyledSkeleton = styled(Skeleton)`
10144
10386
  ${({
10145
10387
  theme
10146
10388
  }) => css`
10147
- &.${rootClassName$o} {
10389
+ &.${rootClassName$m} {
10148
10390
  background-color: ${theme.palette.figma.border.darker};
10149
10391
  }
10150
10392
  `}
@@ -10159,7 +10401,7 @@ const DotSkeleton = ({
10159
10401
  width,
10160
10402
  variant
10161
10403
  }) => {
10162
- const rootClasses = useStylesWithRootClass(rootClassName$o, className);
10404
+ const rootClasses = useStylesWithRootClass(rootClassName$m, className);
10163
10405
  return jsx(StyledSkeleton, {
10164
10406
  animation: "wave",
10165
10407
  "aria-label": ariaLabel,
@@ -10193,18 +10435,20 @@ const getSnackbarTitleFromSeverity = severity => {
10193
10435
  }
10194
10436
  };
10195
10437
 
10196
- const rootClassName$n = 'dot-snackbar';
10438
+ const rootClassName$l = 'dot-snackbar';
10197
10439
  const StyledSnackbar = styled(Snackbar)`
10198
10440
  ${({
10199
10441
  theme,
10200
10442
  width,
10201
10443
  $anchorOriginTop
10202
10444
  }) => css`
10203
- &.${rootClassName$n} {
10445
+ &.${rootClassName$l} {
10204
10446
  .MuiAlert-message {
10205
10447
  word-break: break-word;
10206
10448
  }
10207
-
10449
+ .${rootClassName$15} {
10450
+ align-items: flex-start;
10451
+ }
10208
10452
  &.MuiSnackbar-anchorOriginTopLeft,
10209
10453
  &.MuiSnackbar-anchorOriginTopCenter,
10210
10454
  &.MuiSnackbar-anchorOriginTopRight {
@@ -10254,7 +10498,7 @@ const DotSnackbar = ({
10254
10498
  }) => {
10255
10499
  const hasActions = !!(primaryAction || secondaryAction);
10256
10500
  const calculatedAutoHideDuration = autoHideDuration === null || autoHideDuration > 0 ? autoHideDuration : addAutoHideDuration(severity);
10257
- const rootClasses = useStylesWithRootClass(rootClassName$n, className);
10501
+ const rootClasses = useStylesWithRootClass(rootClassName$l, className);
10258
10502
  const handleSnackbarClose = reason => {
10259
10503
  if (!reason || hideOnClickAway || !hideOnClickAway && reason !== 'clickaway') {
10260
10504
  onClose();
@@ -10312,10 +10556,10 @@ const DotSnackbar = ({
10312
10556
  });
10313
10557
  };
10314
10558
 
10315
- const rootClassName$m = 'dot-snackbar-container';
10559
+ const rootClassName$k = 'dot-snackbar-container';
10316
10560
  const StyledSnackbarContainer = styled.div`
10317
10561
  ${() => css`
10318
- &.${rootClassName$m} {
10562
+ &.${rootClassName$k} {
10319
10563
  position: absolute;
10320
10564
  top: 0;
10321
10565
  width: 250px;
@@ -10330,7 +10574,7 @@ const StyledSnackbarContainer = styled.div`
10330
10574
 
10331
10575
  const DotSnackbarContext = createContext({
10332
10576
  alerts: [],
10333
- enqueueMessage: (_message, _severity, _autoHideDuration) => null,
10577
+ enqueueMessage: (_message, _severity, _autoHideDuration, _primaryAction, _secondaryAction) => null,
10334
10578
  removeMessage: _id => null
10335
10579
  });
10336
10580
  const DotSnackbarContainer = ({
@@ -10346,10 +10590,10 @@ const DotSnackbarContainer = ({
10346
10590
  };
10347
10591
  }
10348
10592
  return jsx(StyledSnackbarContainer, {
10349
- className: rootClassName$m,
10593
+ className: rootClassName$k,
10350
10594
  children: jsx("div", {
10351
- className: rootClassName$m,
10352
- "data-testid": rootClassName$m,
10595
+ className: rootClassName$k,
10596
+ "data-testid": rootClassName$k,
10353
10597
  children: alerts.slice().reverse().map(alert => {
10354
10598
  return jsx(DotSnackbar, {
10355
10599
  autoHideDuration: alert.autoHideDuration,
@@ -10357,6 +10601,8 @@ const DotSnackbarContainer = ({
10357
10601
  onClose: handleClose(alert.id),
10358
10602
  open: alert.open,
10359
10603
  severity: alert.severity,
10604
+ primaryAction: alert.primaryAction,
10605
+ secondaryAction: alert.secondaryAction,
10360
10606
  children: alert.message
10361
10607
  }, alert.id);
10362
10608
  })
@@ -10368,14 +10614,16 @@ const DotSnackbarProvider = ({
10368
10614
  hideOnClickAway = true
10369
10615
  }) => {
10370
10616
  const [alerts, setAlerts] = useState([]);
10371
- function enqueueMessage(message, severity, autoHideDuration) {
10617
+ function enqueueMessage(message, severity, autoHideDuration, primaryAction, secondaryAction) {
10372
10618
  const id = CreateUUID();
10373
10619
  const queue = {
10374
10620
  id,
10375
10621
  message,
10376
10622
  severity,
10377
10623
  open: true,
10378
- autoHideDuration
10624
+ autoHideDuration,
10625
+ primaryAction,
10626
+ secondaryAction
10379
10627
  };
10380
10628
  setAlerts(prevState => {
10381
10629
  return [...prevState, Object.assign({}, queue)];
@@ -10408,12 +10656,12 @@ const useDotSnackbarContext = () => {
10408
10656
  return useContext(DotSnackbarContext);
10409
10657
  };
10410
10658
 
10411
- const rootClassName$l = 'dot-split-button-group';
10659
+ const rootClassName$j = 'dot-split-button-group';
10412
10660
  const StyledSplitButtonGroup = styled(ButtonGroup)`
10413
10661
  ${({
10414
10662
  theme
10415
10663
  }) => css`
10416
- &.${rootClassName$l} {
10664
+ &.${rootClassName$j} {
10417
10665
  &.outlined,
10418
10666
  &.text {
10419
10667
  .expand-button {
@@ -10480,7 +10728,7 @@ const DotSplitButton = ({
10480
10728
  autoFocus = false,
10481
10729
  ariaLabel,
10482
10730
  className,
10483
- 'data-pendoid': dataPendoId = rootClassName$l,
10731
+ 'data-pendoid': dataPendoId = rootClassName$j,
10484
10732
  'data-testid': dataTestId,
10485
10733
  defaultMainOptionKey,
10486
10734
  disabled = false,
@@ -10495,7 +10743,7 @@ const DotSplitButton = ({
10495
10743
  tooltipPlacement,
10496
10744
  type = 'primary'
10497
10745
  }) => {
10498
- const rootClasses = useStylesWithRootClass(rootClassName$l, className, type, disabled ? 'disabled' : '');
10746
+ const rootClasses = useStylesWithRootClass(rootClassName$j, className, type, disabled ? 'disabled' : '');
10499
10747
  const [open, setOpen] = useState(false);
10500
10748
  const anchorRef = useRef(null);
10501
10749
  const hasEmptyOptions = options.length === 0;
@@ -10561,14 +10809,14 @@ const DotSplitButton = ({
10561
10809
  });
10562
10810
  };
10563
10811
 
10564
- const rootClassName$k = 'dot-stepper';
10812
+ const rootClassName$i = 'dot-stepper';
10565
10813
  const stepListClassName = 'dot-stepper-list';
10566
10814
  const contentClassName = 'dot-stepper-content';
10567
10815
  const StyledStepper = styled.div`
10568
10816
  ${({
10569
10817
  theme
10570
10818
  }) => css`
10571
- &.${rootClassName$k} {
10819
+ &.${rootClassName$i} {
10572
10820
  display: flex;
10573
10821
  align-items: flex-start;
10574
10822
  padding: 0;
@@ -10841,7 +11089,7 @@ const DotStepper = ({
10841
11089
  const displayFinalContent = finalContent && currentStep > steps.length;
10842
11090
  const displayCancelButton = !!(!displayInitialContent && !displayFinalContent && onCancel);
10843
11091
  const isLastStep = currentStep === steps.length && !finalContent || currentStep > steps.length && finalContent;
10844
- const rootClasses = useStylesWithRootClass(rootClassName$k, stepsPosition, className);
11092
+ const rootClasses = useStylesWithRootClass(rootClassName$i, stepsPosition, className);
10845
11093
  const stepContentClasses = displayInitialContent || displayFinalContent ? 'center-content' : '';
10846
11094
  const stickyBottomClasses = useStylesWithRootClass('actions-container', isStickyBottom ? 'with-top-border' : '');
10847
11095
  const actionsClasses = useStylesWithRootClass('actions', displayInitialContent || displayFinalContent ? 'center-actions' : '');
@@ -11040,7 +11288,7 @@ const DotStepper = ({
11040
11288
  });
11041
11289
  };
11042
11290
 
11043
- const rootClassName$j = 'dot-table-pagination';
11291
+ const rootClassName$h = 'dot-table-pagination';
11044
11292
  // TO-DO: Determine how to apply styles to standard popper element
11045
11293
  const paginationItemClassName = 'dot-pagination-menu-item';
11046
11294
  const StyledTablePagination = styled.div`
@@ -11048,7 +11296,7 @@ const StyledTablePagination = styled.div`
11048
11296
  theme,
11049
11297
  typography
11050
11298
  }) => css`
11051
- .${rootClassName$j} {
11299
+ .${rootClassName$h} {
11052
11300
  border-top: 1px solid ${theme.palette.figma.border.default};
11053
11301
 
11054
11302
  .dot-caption,
@@ -11086,7 +11334,7 @@ const DotTablePagination = ({
11086
11334
  rowsPerPageOptions = [...ROWS_PER_PAGE_OPTIONS],
11087
11335
  typography = 'subtitle2'
11088
11336
  }) => {
11089
- const rootClasses = useStylesWithRootClass(rootClassName$j, className);
11337
+ const rootClasses = useStylesWithRootClass(rootClassName$h, className);
11090
11338
  const handlePageChange = (event, newPage) => {
11091
11339
  onPageChange && onPageChange(newPage);
11092
11340
  };
@@ -11095,7 +11343,7 @@ const DotTablePagination = ({
11095
11343
  };
11096
11344
  return (/* Container is used to pass 'typography' prop to a styled component */
11097
11345
  jsx(StyledTablePagination, {
11098
- className: rootClassName$j,
11346
+ className: rootClassName$h,
11099
11347
  typography: typography,
11100
11348
  children: jsx(TablePagination, {
11101
11349
  "aria-label": ariaLabel,
@@ -11121,12 +11369,12 @@ const DotTablePagination = ({
11121
11369
  );
11122
11370
  };
11123
11371
 
11124
- const rootClassName$i = 'dot-table';
11372
+ const rootClassName$g = 'dot-table';
11125
11373
  const StyledPaper = styled(Paper)`
11126
11374
  ${({
11127
11375
  theme
11128
11376
  }) => css`
11129
- &.${rootClassName$i} {
11377
+ &.${rootClassName$g} {
11130
11378
  background: ${theme.palette.figma.background.level0.componentsBackground};
11131
11379
  border: 1px solid ${theme.palette.figma.border.default};
11132
11380
  overflow: hidden;
@@ -11195,10 +11443,10 @@ const StyledMenu$1 = styled(DotMenu)`
11195
11443
  }
11196
11444
  `;
11197
11445
 
11198
- const rootClassName$h = 'dot-tbody';
11446
+ const rootClassName$f = 'dot-tbody';
11199
11447
  const StyledTableBody = styled(TableBody)`
11200
11448
  ${() => css`
11201
- &.${rootClassName$h} {
11449
+ &.${rootClassName$f} {
11202
11450
  tr:last-child td {
11203
11451
  border-bottom: none;
11204
11452
  }
@@ -11346,12 +11594,12 @@ const parseCellMaxWidth = width => {
11346
11594
  return width;
11347
11595
  };
11348
11596
 
11349
- const rootClassName$g = 'dot-td';
11597
+ const rootClassName$e = 'dot-td';
11350
11598
  const StyledTableCell = styled(TableCell)`
11351
11599
  ${({
11352
11600
  theme
11353
11601
  }) => css`
11354
- &.${rootClassName$g} {
11602
+ &.${rootClassName$e} {
11355
11603
  padding-top: 0;
11356
11604
  padding-bottom: 0;
11357
11605
 
@@ -11446,7 +11694,7 @@ const DotBodyCell = ({
11446
11694
  const isOverflowing = actionTableCellWidth > (wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current.clientWidth);
11447
11695
  setShowMenu(isOverflowing);
11448
11696
  };
11449
- const rootClasses = useStylesWithRootClass(rootClassName$g, className, noWrap && 'noWrap', Array.isArray(value) && 'actionItems');
11697
+ const rootClasses = useStylesWithRootClass(rootClassName$e, className, noWrap && 'noWrap', Array.isArray(value) && 'actionItems');
11450
11698
  const getTableCellValue = () => {
11451
11699
  if (Array.isArray(value)) {
11452
11700
  return jsx("div", {
@@ -11511,12 +11759,12 @@ const EmptyDotRow = ({
11511
11759
  }, CreateUUID());
11512
11760
  };
11513
11761
 
11514
- const rootClassName$f = 'dot-tr';
11762
+ const rootClassName$d = 'dot-tr';
11515
11763
  const StyledTableRowStyles = styled(TableRow)`
11516
11764
  ${({
11517
11765
  theme
11518
11766
  }) => css`
11519
- &.${rootClassName$f} {
11767
+ &.${rootClassName$d} {
11520
11768
  &.selected {
11521
11769
  background: ${theme.palette.figma.overlay.table.highlights};
11522
11770
 
@@ -11545,12 +11793,12 @@ const StyledTableRowStyles = styled(TableRow)`
11545
11793
  const TABLE_TYPOGRAPHY_VARIANT = 'body1';
11546
11794
  const TABLE_DEFAULT_SKELETON_ROWS = 4;
11547
11795
 
11548
- const rootClassName$e = 'dot-th-checkbox';
11796
+ const rootClassName$c = 'dot-th-checkbox';
11549
11797
  const StyledTableHeaderCheckboxCell = styled(TableCell)`
11550
11798
  ${({
11551
11799
  theme
11552
11800
  }) => css`
11553
- &.${rootClassName$e} {
11801
+ &.${rootClassName$c} {
11554
11802
  background: ${theme.palette.figma.background.level0.componentsBackground};
11555
11803
  padding: ${theme.spacing(0, 1)};
11556
11804
  width: ${theme.spacing(5)};
@@ -11569,7 +11817,7 @@ const DotHeaderCheckboxCell = ({
11569
11817
  multiSelectState,
11570
11818
  onCheckAllChange
11571
11819
  }) => {
11572
- const rootClasses = useStylesWithRootClass(rootClassName$e, className);
11820
+ const rootClasses = useStylesWithRootClass(rootClassName$c, className);
11573
11821
  const [checkboxState, setCheckboxState] = useState('unchecked');
11574
11822
  useEffect(() => {
11575
11823
  setCheckboxState(multiSelectState);
@@ -11600,12 +11848,12 @@ const DotHeaderCheckboxCell = ({
11600
11848
  });
11601
11849
  };
11602
11850
 
11603
- const rootClassName$d = 'dot-th';
11851
+ const rootClassName$b = 'dot-th';
11604
11852
  const StyledTableHeaderCell = styled(TableCell)`
11605
11853
  ${({
11606
11854
  theme
11607
11855
  }) => css`
11608
- &.${rootClassName$d} {
11856
+ &.${rootClassName$b} {
11609
11857
  background: ${theme.palette.figma.background.level0.componentsBackground};
11610
11858
 
11611
11859
  &.MuiTableCell-alignCenter > span.MuiTableSortLabel-root {
@@ -11664,7 +11912,7 @@ const DotHeaderCell = ({
11664
11912
  return jsx(StyledTableHeaderCell, {
11665
11913
  align: align,
11666
11914
  classes: {
11667
- root: rootClassName$d
11915
+ root: rootClassName$b
11668
11916
  },
11669
11917
  sortDirection: sortable ? sortDirection : undefined,
11670
11918
  style: headerCellStyle,
@@ -11936,12 +12184,12 @@ const ExpandCollapseCell = ({
11936
12184
  });
11937
12185
  };
11938
12186
 
11939
- const rootClassName$c = 'dot-td-checkbox';
12187
+ const rootClassName$a = 'dot-td-checkbox';
11940
12188
  const StyledTableBodyCheckboxCell = styled(TableCell)`
11941
12189
  ${({
11942
12190
  theme
11943
12191
  }) => css`
11944
- &.${rootClassName$c} {
12192
+ &.${rootClassName$a} {
11945
12193
  padding: ${theme.spacing(0, 1)};
11946
12194
  width: ${theme.spacing(5)};
11947
12195
 
@@ -11960,7 +12208,7 @@ const DotBodyCheckboxCell = ({
11960
12208
  onChange,
11961
12209
  rowId
11962
12210
  }) => {
11963
- const rootClasses = useStylesWithRootClass(rootClassName$c, className);
12211
+ const rootClasses = useStylesWithRootClass(rootClassName$a, className);
11964
12212
  const [isCheckboxChecked, setIsCheckboxChecked] = useState(isChecked);
11965
12213
  /** This effect is used when 'checked' status is changed from the outside */
11966
12214
  useEffect(() => {
@@ -12012,7 +12260,7 @@ const DotTableRow = ({
12012
12260
  selectedTableRowIds
12013
12261
  } = multiSelectBody || {};
12014
12262
  const isCheckboxChecked = selectedTableRowIds && selectedTableRowIds.includes(id) || false;
12015
- const rootClasses = useStylesWithRootClass(rootClassName$f, isCheckboxChecked ? 'selected' : undefined, className);
12263
+ const rootClasses = useStylesWithRootClass(rootClassName$d, isCheckboxChecked ? 'selected' : undefined, className);
12016
12264
  const renderCheckboxCell = () => {
12017
12265
  return jsx(DotBodyCheckboxCell, {
12018
12266
  ariaLabel: "Click to select this row",
@@ -12129,7 +12377,7 @@ const DotTableBody = ({
12129
12377
  return jsxs(Fragment, {
12130
12378
  children: [jsx(StyledTableBody, {
12131
12379
  classes: {
12132
- root: rootClassName$h
12380
+ root: rootClassName$f
12133
12381
  },
12134
12382
  children: getTableBodyRows()
12135
12383
  }), jsx(StyledMenu$1, {
@@ -12144,12 +12392,12 @@ const DotTableBody = ({
12144
12392
  });
12145
12393
  };
12146
12394
 
12147
- const rootClassName$b = 'dot-table-selection-toolbar';
12395
+ const rootClassName$9 = 'dot-table-selection-toolbar';
12148
12396
  const StyledTableSelectionToolbar = styled(DotActionToolbar)`
12149
12397
  ${({
12150
12398
  theme
12151
12399
  }) => css`
12152
- &.${rootClassName$b} {
12400
+ &.${rootClassName$9} {
12153
12401
  display: flex;
12154
12402
  align-items: center;
12155
12403
  justify-content: space-between;
@@ -12207,7 +12455,7 @@ const DotTableSelectionToolbar = ({
12207
12455
  onClearAll,
12208
12456
  selectedRowsNumber
12209
12457
  }) => {
12210
- const rootClasses = useStylesWithRootClass(rootClassName$b, className);
12458
+ const rootClasses = useStylesWithRootClass(rootClassName$9, className);
12211
12459
  return jsxs(StyledTableSelectionToolbar, {
12212
12460
  ariaLabel: ariaLabel,
12213
12461
  className: rootClasses,
@@ -12301,7 +12549,7 @@ const DotTable = ({
12301
12549
  return onUpdateData ? data : stableSort(data, getComparator(order, orderBy));
12302
12550
  };
12303
12551
  const [pageData, setPageData] = useState(getSortedData().slice(0, rowsPerPage ? rowsPerPage : data.length));
12304
- const rootClasses = useStylesWithRootClass(rootClassName$i, className, loading ? 'loading' : '');
12552
+ const rootClasses = useStylesWithRootClass(rootClassName$g, className, loading ? 'loading' : '');
12305
12553
  const updateData = (newOrder, newOrderBy, newPage, newRowsPerPage) => {
12306
12554
  const newData = stableSort(data, getComparator(newOrder, newOrderBy));
12307
12555
  setPageData(newRowsPerPage ? newData.slice(newPage * newRowsPerPage, newPage * newRowsPerPage + newRowsPerPage) : newData);
@@ -12499,7 +12747,7 @@ const DotTableAction = ({
12499
12747
  });
12500
12748
  };
12501
12749
 
12502
- const rootClassName$a = 'dot-table-actions';
12750
+ const rootClassName$8 = 'dot-table-actions';
12503
12751
  const TableActionsContainer = styled.div`
12504
12752
  overflow: hidden;
12505
12753
  text-overflow: clip;
@@ -12581,7 +12829,7 @@ const DotTableActions = ({
12581
12829
  };
12582
12830
  return jsxs(Fragment, {
12583
12831
  children: [jsxs(TableActionsContainer, {
12584
- className: rootClassName$a,
12832
+ className: rootClassName$8,
12585
12833
  ref: wrapperRef,
12586
12834
  children: [!showMenu && renderTableActions(), (showMenu || actions.length > 2) && jsx(DotIconButton, {
12587
12835
  ariaLabel: "more options",
@@ -12605,12 +12853,12 @@ const DotTableActions = ({
12605
12853
  });
12606
12854
  };
12607
12855
 
12608
- const rootClassName$9 = 'dot-tabs';
12856
+ const rootClassName$7 = 'dot-tabs';
12609
12857
  const StyledTabs = styled(Tabs)`
12610
12858
  ${({
12611
12859
  theme
12612
12860
  }) => css`
12613
- &.${rootClassName$9} {
12861
+ &.${rootClassName$7} {
12614
12862
  &.MuiTabs-root {
12615
12863
  width: 100%;
12616
12864
  }
@@ -12655,7 +12903,7 @@ const DotTabs = ({
12655
12903
  centered = false,
12656
12904
  className,
12657
12905
  color,
12658
- 'data-pendoid': dataPendoId = rootClassName$9,
12906
+ 'data-pendoid': dataPendoId = rootClassName$7,
12659
12907
  'data-testid': dataTestId,
12660
12908
  initialValue = 0,
12661
12909
  onChange,
@@ -12664,7 +12912,7 @@ const DotTabs = ({
12664
12912
  variant = 'standard'
12665
12913
  }) => {
12666
12914
  const [value, setValue] = useState(initialValue);
12667
- const rootClasses = useStylesWithRootClass(rootClassName$9, className);
12915
+ const rootClasses = useStylesWithRootClass(rootClassName$7, className);
12668
12916
  useEffect(() => {
12669
12917
  if (color) {
12670
12918
  console.warn('DEPRECATED: `color` prop is deprecated in `<DotTabs>`, please remove any usage of it in your application.');
@@ -12718,14 +12966,14 @@ const DotTabs = ({
12718
12966
  });
12719
12967
  };
12720
12968
 
12721
- const rootClassName$8 = 'dot-file-upload';
12722
- const containerClassName$2 = `${rootClassName$8}-container`;
12723
- const dropZoneClassName = `${rootClassName$8}-drop-zone`;
12969
+ const rootClassName$6 = 'dot-file-upload';
12970
+ const containerClassName = `${rootClassName$6}-container`;
12971
+ const dropZoneClassName = `${rootClassName$6}-drop-zone`;
12724
12972
  const StyledFileUploadContainer = styled.div`
12725
12973
  ${({
12726
12974
  theme
12727
12975
  }) => css`
12728
- &.${containerClassName$2} {
12976
+ &.${containerClassName} {
12729
12977
  .dot-max-files-message.dot-max-files-reached {
12730
12978
  color: ${theme.palette.figma.destructive.normal};
12731
12979
  }
@@ -12740,7 +12988,7 @@ const StyledFileUpload = styled.div`
12740
12988
  ${({
12741
12989
  theme
12742
12990
  }) => css`
12743
- &.${rootClassName$8}.${dropZoneClassName} {
12991
+ &.${rootClassName$6}.${dropZoneClassName} {
12744
12992
  align-items: center;
12745
12993
  background: ${theme.palette.figma.background.level0.bckgGray};
12746
12994
  border: 2px dashed ${theme.palette.figma.border.defaultButton};
@@ -12771,12 +13019,12 @@ const StyledFileUpload = styled.div`
12771
13019
  `}
12772
13020
  `;
12773
13021
 
12774
- const rootClassName$7 = 'dot-file-list-item';
13022
+ const rootClassName$5 = 'dot-file-list-item';
12775
13023
  const StyledFileListItem = styled(StyledListItem)`
12776
13024
  ${({
12777
13025
  theme
12778
13026
  }) => css`
12779
- &.${rootClassName$7} {
13027
+ &.${rootClassName$5} {
12780
13028
  border-bottom: 1px solid ${theme.palette.figma.border.default};
12781
13029
  &:hover {
12782
13030
  cursor: pointer;
@@ -12788,7 +13036,7 @@ const StyledFileListItem = styled(StyledListItem)`
12788
13036
  outline: none;
12789
13037
  }
12790
13038
 
12791
- &.file-success:not(:hover, :focus-visible) .${rootClassName$7}-end-icon {
13039
+ &.file-success:not(:hover, :focus-visible) .${rootClassName$5}-end-icon {
12792
13040
  i:before {
12793
13041
  color: ${theme.palette.figma.success.normal};
12794
13042
  }
@@ -12798,7 +13046,7 @@ const StyledFileListItem = styled(StyledListItem)`
12798
13046
  }
12799
13047
  }
12800
13048
 
12801
- &.file-error:not(:hover, :focus-visible) .${rootClassName$7}-end-icon {
13049
+ &.file-error:not(:hover, :focus-visible) .${rootClassName$5}-end-icon {
12802
13050
  i:before,
12803
13051
  .MuiListItemText-secondary {
12804
13052
  color: ${theme.palette.figma.destructive.normal};
@@ -12840,7 +13088,7 @@ const DotFileListItem = ({
12840
13088
  onKeyPress,
12841
13089
  tabIndex = 0
12842
13090
  }) => {
12843
- const rootClasses = useStylesWithRootClass(rootClassName$7, className, error ? 'file-error' : 'file-success');
13091
+ const rootClasses = useStylesWithRootClass(rootClassName$5, className, error ? 'file-error' : 'file-success');
12844
13092
  const defaultIcon = error ? 'error-solid' : 'check-solid';
12845
13093
  const [endIcon, setEndIcon] = useState(defaultIcon);
12846
13094
  const handleItemClick = clickedFile => _event => onClick === null || onClick === void 0 ? void 0 : onClick(clickedFile);
@@ -12873,7 +13121,7 @@ const DotFileListItem = ({
12873
13121
  })]
12874
13122
  }), jsx(DotIconButton, {
12875
13123
  ariaLabel: "delete file",
12876
- className: `${rootClassName$7}-end-icon`,
13124
+ className: `${rootClassName$5}-end-icon`,
12877
13125
  "data-testid": dataTestId && `${dataTestId}-end-icon`,
12878
13126
  disabled: disableDelete,
12879
13127
  iconId: endIcon,
@@ -12997,7 +13245,7 @@ const DotFileUpload = ({
12997
13245
  buttonOnly = false,
12998
13246
  className,
12999
13247
  contentErrors,
13000
- 'data-pendoid': dataPendoId = rootClassName$8,
13248
+ 'data-pendoid': dataPendoId = rootClassName$6,
13001
13249
  'data-testid': dataTestId,
13002
13250
  disabled,
13003
13251
  hideFilesList,
@@ -13010,7 +13258,7 @@ const DotFileUpload = ({
13010
13258
  const [uploadedFiles, setUploadedFiles] = useState([]);
13011
13259
  const [hasMaxFilesError, setHasMaxFilesError] = useState(false);
13012
13260
  const isUploadDisabled = disabled || maxFiles && uploadedFiles.length >= maxFiles;
13013
- const rootClasses = useStylesWithRootClass(rootClassName$8, className, !buttonOnly ? dropZoneClassName : '', isUploadDisabled ? 'disabled' : '');
13261
+ const rootClasses = useStylesWithRootClass(rootClassName$6, className, !buttonOnly ? dropZoneClassName : '', isUploadDisabled ? 'disabled' : '');
13014
13262
  const maxFilesClasses = useStylesWithRootClass('dot-max-files-message', hasMaxFilesError ? 'dot-max-files-reached' : '');
13015
13263
  const allowMultiple = maxFiles === undefined || maxFiles > 1;
13016
13264
  const setNewlyUploadedFiles = (acceptedFiles, fileRejections) => {
@@ -13060,7 +13308,7 @@ const DotFileUpload = ({
13060
13308
  uploadedFiles
13061
13309
  });
13062
13310
  return jsxs(StyledFileUploadContainer, {
13063
- className: containerClassName$2,
13311
+ className: containerClassName,
13064
13312
  role: ariaRole,
13065
13313
  children: [jsxs(StyledFileUpload, Object.assign({}, getRootProps(), {
13066
13314
  "aria-label": ariaLabel,
@@ -13082,12 +13330,12 @@ const DotFileUpload = ({
13082
13330
  });
13083
13331
  };
13084
13332
 
13085
- const rootClassName$6 = 'dot-divider';
13333
+ const rootClassName$4 = 'dot-divider';
13086
13334
  const StyledDivider = styled(Divider)`
13087
13335
  ${({
13088
13336
  theme
13089
13337
  }) => css`
13090
- &.${rootClassName$6} {
13338
+ &.${rootClassName$4} {
13091
13339
  color: ${theme.palette.figma.border.darker};
13092
13340
 
13093
13341
  .MuiDivider-light {
@@ -13107,7 +13355,7 @@ const DotDivider = ({
13107
13355
  orientation,
13108
13356
  variant
13109
13357
  }) => {
13110
- const rootClasses = useStylesWithRootClass(rootClassName$6, className);
13358
+ const rootClasses = useStylesWithRootClass(rootClassName$4, className);
13111
13359
  return jsx(StyledDivider, {
13112
13360
  absolute: absolute,
13113
13361
  "aria-label": ariaLabel,
@@ -13134,7 +13382,7 @@ const DotPopper = ({
13134
13382
  open,
13135
13383
  placement
13136
13384
  }) => {
13137
- const rootClasses = useStylesWithRootClass(rootClassName$_, className);
13385
+ const rootClasses = useStylesWithRootClass(rootClassName$$, className);
13138
13386
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
13139
13387
  const handleClickAway = event => {
13140
13388
  if (onClickAway && (!anchorEl || !anchorEl.contains(event.currentTarget))) {
@@ -13188,14 +13436,14 @@ const getListItemLayout = listItems => {
13188
13436
  }));
13189
13437
  };
13190
13438
 
13191
- const rootClassName$5 = 'dot-draggable-list';
13439
+ const rootClassName$3 = 'dot-draggable-list';
13192
13440
  const listItemClassName = 'dot-draggable-list-item';
13193
13441
  const StyledDraggableList = styled.div`
13194
13442
  ${({
13195
13443
  theme,
13196
13444
  draggableHandle
13197
13445
  }) => css`
13198
- &.${rootClassName$5} {
13446
+ &.${rootClassName$3} {
13199
13447
  padding: ${theme.spacing(1, 0)};
13200
13448
  position: relative;
13201
13449
 
@@ -13230,7 +13478,7 @@ const ListGridLayout = WidthProvider(GridLayout);
13230
13478
  const DotDraggableList = ({
13231
13479
  ariaLabel,
13232
13480
  className,
13233
- 'data-pendoid': dataPendoId = rootClassName$5,
13481
+ 'data-pendoid': dataPendoId = rootClassName$3,
13234
13482
  'data-testid': dataTestId,
13235
13483
  disableDrag,
13236
13484
  draggableHandle,
@@ -13239,7 +13487,7 @@ const DotDraggableList = ({
13239
13487
  rowHeight = DEFAULT_LIST_ITEM_HEIGHT,
13240
13488
  width = DEFAULT_LIST_WIDTH
13241
13489
  }) => {
13242
- const rootClasses = useStylesWithRootClass(rootClassName$5, className, draggableHandle ? 'with-draggable-handle' : '');
13490
+ const rootClasses = useStylesWithRootClass(rootClassName$3, className, draggableHandle ? 'with-draggable-handle' : '');
13243
13491
  const listItemClasses = useStylesWithRootClass(listItemClassName, draggableHandle && !disableDrag ? 'with-handle-grab-cursor' : '', draggableHandle || disableDrag ? 'with-default-cursor' : '');
13244
13492
  const listWidth = isNumber(width) ? `${width}px` : width;
13245
13493
  const [orderedItems, setOrderedItems] = useState([]);
@@ -13286,12 +13534,12 @@ const DotDraggableList = ({
13286
13534
  });
13287
13535
  };
13288
13536
 
13289
- const rootClassName$4 = 'dot-linear-progress';
13537
+ const rootClassName$2 = 'dot-linear-progress';
13290
13538
  const StyledLinearProgress = styled(LinearProgress)`
13291
13539
  ${({
13292
13540
  theme
13293
13541
  }) => css`
13294
- &.${rootClassName$4} {
13542
+ &.${rootClassName$2} {
13295
13543
  &.MuiLinearProgress-colorError {
13296
13544
  color: ${theme.palette.figma.inProgress.error};
13297
13545
  }
@@ -13323,7 +13571,7 @@ const DotLinearProgress = ({
13323
13571
  valueBuffer,
13324
13572
  variant = 'indeterminate'
13325
13573
  }) => {
13326
- const rootClasses = useStylesWithRootClass(rootClassName$4, className);
13574
+ const rootClasses = useStylesWithRootClass(rootClassName$2, className);
13327
13575
  useEffect(() => {
13328
13576
  if (!ariaLabel) {
13329
13577
  console.warn('a11y: DotLinearProgress must have an ariaLabel to describe the progress bar');
@@ -13362,61 +13610,6 @@ const getContextEnumBasedOnTarget = (event, inputElement, contextEnum) => {
13362
13610
  return currentContextEnum;
13363
13611
  };
13364
13612
 
13365
- const rootClassName$3 = 'dot-date-picker';
13366
- const popperClassName = 'dot-date-picker-popper';
13367
- const containerClassName$1 = 'dot-date-picker-container';
13368
- const rectanglePickersDayClassName = 'dot-rectangle-pickers-day';
13369
- const StyledDatePickerContainer = styled.div`
13370
- ${() => css`
13371
- &.${rootClassName$3} .full-width {
13372
- width: 100%;
13373
- }
13374
- `}
13375
- `;
13376
- const StyledDatePicker = styled(DatePicker)`
13377
- ${({
13378
- theme
13379
- }) => css`
13380
- &.${rootClassName$3} {
13381
- ${pickerInputStyles(theme)};
13382
-
13383
- .Mui-disabled.MuiInputBase-root,
13384
- &.read-only .MuiInputBase-root {
13385
- ${readOnlyStyles(theme)};
13386
- }
13387
-
13388
- .dot-icon-btn .dot-i {
13389
- margin-top: -5px;
13390
- }
13391
-
13392
- .MuiFormLabel-root {
13393
- color: ${theme.palette.figma.typography.black};
13394
- }
13395
- }
13396
- `}
13397
- `;
13398
- const StyledPickersDay = styled(PickersDay)`
13399
- ${({
13400
- theme
13401
- }) => css`
13402
- &.${rectanglePickersDayClassName} {
13403
- border-radius: ${theme.spacing(0.5)};
13404
- &.MuiPickersDay-today:not(.Mui-selected) {
13405
- background: ${theme.palette.figma.neutral.normal};
13406
- border: 1px solid ${theme.palette.figma.primary.normal};
13407
- &:hover {
13408
- background: ${theme.palette.figma.primary.normal};
13409
- }
13410
- }
13411
-
13412
- &:hover {
13413
- background: ${theme.palette.figma.primary.normal};
13414
- color: ${theme.palette.figma.typography.white};
13415
- }
13416
- }
13417
- `}
13418
- `;
13419
-
13420
13613
  const RectanglePickersDay = pickersDayProps => {
13421
13614
  return jsx(StyledPickersDay, Object.assign({}, pickersDayProps, {
13422
13615
  className: rectanglePickersDayClassName,
@@ -13429,7 +13622,7 @@ const DotDatePicker = ({
13429
13622
  autoFocus = false,
13430
13623
  className,
13431
13624
  closeOnSelect = true,
13432
- 'data-pendoid': dataPendoId = rootClassName$3,
13625
+ 'data-pendoid': dataPendoId = rootClassName$w,
13433
13626
  'data-testid': dataTestId,
13434
13627
  defaultValue,
13435
13628
  disableOpenPicker,
@@ -13469,8 +13662,8 @@ const DotDatePicker = ({
13469
13662
  const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
13470
13663
  const isInputReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
13471
13664
  const inputRef = useRef(null);
13472
- const rootClasses = useStylesWithRootClass(rootClassName$3, className, isInputReadOnly ? 'read-only' : '');
13473
- const containerClasses = useStylesWithRootClass(containerClassName$1, fullWidth ? 'full-width' : '', className);
13665
+ const rootClasses = useStylesWithRootClass(rootClassName$w, className, isInputReadOnly ? 'read-only' : '');
13666
+ const containerClasses = useStylesWithRootClass(containerClassName$2, fullWidth ? 'full-width' : '', className);
13474
13667
  const focusInput = ref => {
13475
13668
  setTimeout(() => {
13476
13669
  ref.current.focus();
@@ -13679,96 +13872,6 @@ const getTimePickerButtonType = selectedDaytime => selectedDaytime && selectedDa
13679
13872
  const checkIfOpenPropDefined = open => open !== null && open !== undefined;
13680
13873
  const getDaytimeButtonType = daytimeSelected => daytimeSelected && daytimeSelected === Daytime.AM ? 'primary' : 'text';
13681
13874
 
13682
- const rootClassName$2 = 'dot-time-picker';
13683
- const containerClassName = 'dot-time-picker-container';
13684
- const TIME_SELECTION_HEIGHT_SPACING = 34.5;
13685
- const TIME_SELECTION_WIDTH_SPACING = 14.5;
13686
- const TIME_UNIT_WIDTH_SPACING = 4.5;
13687
- const TIME_UNIT_HEIGHT_SPACING = 4.5;
13688
- const StyledTimePickerContainer = styled.div`
13689
- ${({
13690
- theme
13691
- }) => css`
13692
- &.${containerClassName} {
13693
- .full-width {
13694
- width: 100%;
13695
- }
13696
-
13697
- .dot-time-picker-popper {
13698
- z-index: ${levelTop};
13699
-
13700
- .dot-time-picker-paper {
13701
- display: flex;
13702
- flex-direction: column;
13703
- align-items: center;
13704
-
13705
- .dot-time-picker-selection {
13706
- max-height: ${theme.spacing(TIME_SELECTION_HEIGHT_SPACING)};
13707
- width: ${theme.spacing(TIME_SELECTION_WIDTH_SPACING)};
13708
- display: flex;
13709
- margin: ${theme.spacing(1)};
13710
- gap: ${theme.spacing(0.5)};
13711
-
13712
- .dot-time-picker-hours,
13713
- .dot-time-picker-minutes,
13714
- .dot-time-picker-daytime {
13715
- display: flex;
13716
- flex-direction: column;
13717
- overflow: auto;
13718
- gap: ${theme.spacing(0.5)};
13719
- padding-bottom: ${theme.spacing(TIME_SELECTION_HEIGHT_SPACING - TIME_UNIT_HEIGHT_SPACING)};
13720
-
13721
- /* Hide scrollbar for Chrome, Safari and Opera */
13722
- ::-webkit-scrollbar {
13723
- display: none;
13724
- }
13725
-
13726
- /* Hide scrollbar for IE, Edge and Firefox */
13727
- -ms-overflow-style: none; /* IE and Edge */
13728
- scrollbar-width: none; /* Firefox */
13729
- }
13730
-
13731
- .dot-picker-button {
13732
- width: ${theme.spacing(TIME_UNIT_WIDTH_SPACING)};
13733
- height: ${theme.spacing(TIME_UNIT_HEIGHT_SPACING)};
13734
- margin: 0;
13735
- }
13736
- }
13737
-
13738
- .dot-time-picker-action-buttons {
13739
- display: flex;
13740
- align-items: center;
13741
- justify-content: space-between;
13742
- padding: ${theme.spacing(0.5)};
13743
- }
13744
- }
13745
- }
13746
- }
13747
- `}
13748
- `;
13749
- const StyledTimePicker = styled(TimePicker)`
13750
- ${({
13751
- theme
13752
- }) => css`
13753
- &.${rootClassName$2} {
13754
- ${pickerInputStyles(theme)};
13755
-
13756
- .Mui-disabled.MuiInputBase-root,
13757
- &.read-only .MuiInputBase-root {
13758
- ${readOnlyStyles(theme)};
13759
- }
13760
-
13761
- .dot-icon-btn .dot-i {
13762
- margin-top: -5px;
13763
- }
13764
-
13765
- .MuiFormLabel-root {
13766
- color: ${theme.palette.figma.typography.black};
13767
- }
13768
- }
13769
- `}
13770
- `;
13771
-
13772
13875
  dayjs.extend(utc);
13773
13876
  const DEFAULT_PICKER_TIME_FORMAT = 'HH:mm';
13774
13877
  const DEFAULT_TIME_FORMAT = 'HH:mm';
@@ -13778,7 +13881,7 @@ const DotTimePicker = ({
13778
13881
  ariaLabel,
13779
13882
  autoFocus = false,
13780
13883
  className,
13781
- 'data-pendoid': dataPendoId = rootClassName$2,
13884
+ 'data-pendoid': dataPendoId = rootClassName$v,
13782
13885
  'data-testid': dataTestId,
13783
13886
  defaultValue,
13784
13887
  disableOpenPicker = false,
@@ -13810,8 +13913,8 @@ const DotTimePicker = ({
13810
13913
  const hasValueWithoutChangeHandler = value !== undefined && onChange === undefined;
13811
13914
  const hasBothValueAndDefaultValue = value !== undefined && defaultValue !== undefined;
13812
13915
  const isComponentReadOnly = readOnly || hasValueWithoutChangeHandler || hasBothValueAndDefaultValue;
13813
- const rootClasses = useStylesWithRootClass(rootClassName$2, className, isComponentReadOnly ? 'read-only' : '');
13814
- const containerClasses = useStylesWithRootClass(containerClassName, fullWidth ? 'full-width' : '', className);
13916
+ const rootClasses = useStylesWithRootClass(rootClassName$v, className, isComponentReadOnly ? 'read-only' : '');
13917
+ const containerClasses = useStylesWithRootClass(containerClassName$1, fullWidth ? 'full-width' : '', className);
13815
13918
  const inputRef = useRef(null);
13816
13919
  const [isPickerOpened, setIsPickerOpened] = useState(false);
13817
13920
  const [time, setTime] = useState(null);
@@ -14414,4 +14517,4 @@ const DotStickyWithBorder = ({
14414
14517
  });
14415
14518
  };
14416
14519
 
14417
- export { ApiError, Cell, CreateUUID, CssCell, CssGrid, CssGridDebug, DatePickerKeydownContext, Daytime, DotAccordion, DotActionToolbar, DotAlertBanner, DotAppLogo, DotAppSwitcher, DotAppToolbar, DotAutoComplete, DotAvatar, DotAvatarGroup, DotBadge, DotBreadcrumbs, DotButton, DotButtonToggle, DotCard, DotCardContent, DotCardFooter, DotCardHeader, DotCarousel, DotCheckbox, DotCheckboxGroup, DotChip, DotClickAwayListener, DotConfirmationDialog, DotCopyButton, DotCoreApiProvider, DotDatePicker, DotDialog, DotDivider, DotDraggableList, DotDrawer, DotDynamicForm, DotEmptyFilterState, DotEmptyState, DotFileListItem, DotFileUpload, DotForm, DotFormGroup, DotHeaderRow, DotIcon, DotIconButton, DotInlineEdit, DotInputSelect, DotInputText, DotLinearProgress, DotLink, DotList, DotMenu, DotNavigationRail, DotPill, DotPopper, DotProgress, DotProgressButton, DotRadioButton, DotRadioGroup, DotSidebar, DotSkeleton, DotSnackbar, DotSnackbarContainer, DotSnackbarProvider, DotSplitButton, DotStepper, DotStickyWithBorder, DotSwitch, DotTable, DotTableAction, DotTableActions, DotTablePagination, DotTabs, DotThemeProvider, DotTimePicker, DotTooltip, DotTruncateWithTooltip, DotTypography, avatarColors, breakpointOptions, checkIfValidDate, darkFigmaColors, lightThemeColors as lightColors, lightFigmaColors, mockScrollIntoView, parseAutoCompleteValue, variables as themeVariables, typographyOptions, useDotCoreApiContext, useDotSnackbarContext };
14520
+ export { ApiError, Cell, CreateUUID, CssCell, CssGrid, CssGridDebug, DatePickerKeydownContext, Daytime, DotAccordion, DotActionToolbar, DotAlertBanner, DotAppLogo, DotAppSwitcher, DotAppToolbar, DotAutoComplete, DotAvatar, DotAvatarGroup, DotBadge, DotBreadcrumbs, DotButton, DotButtonToggle, DotCard, DotCardContent, DotCardFooter, DotCardHeader, DotCarousel, DotCheckbox, DotCheckboxGroup, DotChip, DotClickAwayListener, DotConfirmationDialog, DotCopyButton, DotCoreApiProvider, DotDatePicker, DotDialog, DotDivider, DotDraggableList, DotDrawer, DotDynamicForm, DotEmptyFilterState, DotEmptyState, DotFileListItem, DotFileUpload, DotForm, DotFormGroup, DotHeaderRow, DotIcon, DotIconButton, DotIllustration, DotInlineEdit, DotInputSelect, DotInputText, DotLinearProgress, DotLink, DotList, DotMenu, DotNavigationRail, DotPill, DotPopper, DotProgress, DotProgressButton, DotRadioButton, DotRadioGroup, DotSidebar, DotSkeleton, DotSnackbar, DotSnackbarContainer, DotSnackbarProvider, DotSplitButton, DotStepper, DotStickyWithBorder, DotSwitch, DotTable, DotTableAction, DotTableActions, DotTablePagination, DotTabs, DotThemeProvider, DotTimePicker, DotTooltip, DotTruncateWithTooltip, DotTypography, avatarColors, breakpointOptions, checkIfValidDate, darkFigmaColors, lightThemeColors as lightColors, lightFigmaColors, mockScrollIntoView, parseAutoCompleteValue, variables as themeVariables, typographyOptions, useDotCoreApiContext, useDotSnackbarContext };