@carto/meridian-ds 2.8.0 → 2.9.1-alpha-lists.2

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.
Files changed (82) hide show
  1. package/CHANGELOG.md +13 -2
  2. package/dist/{Alert-C4W0H_uN.cjs → Alert-BDpjbOOk.cjs} +1 -1
  3. package/dist/{Alert-BZPM5zpX.js → Alert-BWe4a9zW.js} +1 -1
  4. package/dist/{MenuItem-CgF4QdGi.cjs → MenuItem-DrvPgr-r.cjs} +15 -1
  5. package/dist/{MenuItem-DRUK149i.js → MenuItem-zaH11xyj.js} +16 -2
  6. package/dist/components/index.cjs +223 -21
  7. package/dist/components/index.js +226 -24
  8. package/dist/{css-utils-CjUBRJVK.js → css-utils-BzztxQJk.js} +8 -4
  9. package/dist/{css-utils-CH7es90t.cjs → css-utils-Do3X_yIr.cjs} +4 -0
  10. package/dist/custom-icons/index.cjs +666 -538
  11. package/dist/custom-icons/index.js +666 -538
  12. package/dist/theme/index.cjs +267 -47
  13. package/dist/theme/index.js +253 -33
  14. package/dist/types/components/Avatar/Avatar.stories.d.ts.map +1 -1
  15. package/dist/types/components/EmptyState/EmptyState.d.ts +4 -0
  16. package/dist/types/components/EmptyState/EmptyState.d.ts.map +1 -0
  17. package/dist/types/components/EmptyState/EmptyState.stories.d.ts +188 -0
  18. package/dist/types/components/EmptyState/EmptyState.stories.d.ts.map +1 -0
  19. package/dist/types/components/EmptyState/EmptyState.styled.d.ts +38 -0
  20. package/dist/types/components/EmptyState/EmptyState.styled.d.ts.map +1 -0
  21. package/dist/types/components/EmptyState/EmptyState.test.d.ts +2 -0
  22. package/dist/types/components/EmptyState/EmptyState.test.d.ts.map +1 -0
  23. package/dist/types/components/EmptyState/index.d.ts +3 -0
  24. package/dist/types/components/EmptyState/index.d.ts.map +1 -0
  25. package/dist/types/components/EmptyState/types.d.ts +82 -0
  26. package/dist/types/components/EmptyState/types.d.ts.map +1 -0
  27. package/dist/types/components/List/List.d.ts +18 -0
  28. package/dist/types/components/List/List.d.ts.map +1 -0
  29. package/dist/types/components/List/List.stories.d.ts +80 -0
  30. package/dist/types/components/List/List.stories.d.ts.map +1 -0
  31. package/dist/types/components/List/List.test.d.ts +2 -0
  32. package/dist/types/components/List/List.test.d.ts.map +1 -0
  33. package/dist/types/components/List/ListSubheader/ListSubheader.d.ts +14 -0
  34. package/dist/types/components/List/ListSubheader/ListSubheader.d.ts.map +1 -0
  35. package/dist/types/components/List/ListSubheader/ListSubheader.test.d.ts +2 -0
  36. package/dist/types/components/List/ListSubheader/ListSubheader.test.d.ts.map +1 -0
  37. package/dist/types/components/List/index.d.ts +5 -0
  38. package/dist/types/components/List/index.d.ts.map +1 -0
  39. package/dist/types/components/ListItem/ListItem.d.ts +33 -0
  40. package/dist/types/components/ListItem/ListItem.d.ts.map +1 -0
  41. package/dist/types/components/ListItem/ListItem.stories.d.ts +235 -0
  42. package/dist/types/components/ListItem/ListItem.stories.d.ts.map +1 -0
  43. package/dist/types/components/ListItem/ListItem.test.d.ts +2 -0
  44. package/dist/types/components/ListItem/ListItem.test.d.ts.map +1 -0
  45. package/dist/types/components/ListItem/ListItemRightContent/ListItemRightContent.d.ts +14 -0
  46. package/dist/types/components/ListItem/ListItemRightContent/ListItemRightContent.d.ts.map +1 -0
  47. package/dist/types/components/ListItem/ListItemRightContent/ListItemRightContent.test.d.ts +2 -0
  48. package/dist/types/components/ListItem/ListItemRightContent/ListItemRightContent.test.d.ts.map +1 -0
  49. package/dist/types/components/ListItem/index.d.ts +5 -0
  50. package/dist/types/components/ListItem/index.d.ts.map +1 -0
  51. package/dist/types/components/Loader/Loader.stories.d.ts +3 -3
  52. package/dist/types/components/Loader/Loader.stories.d.ts.map +1 -1
  53. package/dist/types/components/Menu/Menu/Menu.stories.d.ts.map +1 -1
  54. package/dist/types/components/index.d.ts +6 -0
  55. package/dist/types/components/index.d.ts.map +1 -1
  56. package/dist/types/custom-icons/GroupOff.d.ts +4 -0
  57. package/dist/types/custom-icons/GroupOff.d.ts.map +1 -0
  58. package/dist/types/custom-icons/RunReuse.d.ts +4 -0
  59. package/dist/types/custom-icons/RunReuse.d.ts.map +1 -0
  60. package/dist/types/custom-icons/SearchMap.d.ts +4 -0
  61. package/dist/types/custom-icons/SearchMap.d.ts.map +1 -0
  62. package/dist/types/custom-icons/SwitchAccessShortcut.d.ts +4 -0
  63. package/dist/types/custom-icons/SwitchAccessShortcut.d.ts.map +1 -0
  64. package/dist/types/custom-icons/__docs__/CustomIcons.stories.d.ts +8 -0
  65. package/dist/types/custom-icons/__docs__/CustomIcons.stories.d.ts.map +1 -1
  66. package/dist/types/custom-icons/index.d.ts +4 -0
  67. package/dist/types/custom-icons/index.d.ts.map +1 -1
  68. package/dist/types/theme/components/data-display.d.ts.map +1 -1
  69. package/dist/types/theme/components/navigation.d.ts.map +1 -1
  70. package/dist/types/theme/types.d.ts +86 -0
  71. package/dist/types/theme/types.d.ts.map +1 -1
  72. package/dist/types/utils/theme-constants.d.ts +2 -0
  73. package/dist/types/utils/theme-constants.d.ts.map +1 -1
  74. package/dist/types/utils/theme-utils.d.ts +16 -0
  75. package/dist/types/utils/theme-utils.d.ts.map +1 -1
  76. package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionWidgetUI.test.d.ts +0 -1
  77. package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionWidgetUI.test.d.ts.map +1 -1
  78. package/dist/widgets/index.cjs +2 -2
  79. package/dist/widgets/index.js +2 -2
  80. package/package.json +1 -1
  81. package/dist/types/theme/components/stories/List.stories.d.ts +0 -62
  82. package/dist/types/theme/components/stories/List.stories.d.ts.map +0 -1
@@ -2,13 +2,13 @@ var _a, _b, _c, _d, _e, _f, _g, _h;
2
2
  import { alpha, Tooltip, responsiveFontSizes, createTheme } from "@mui/material";
3
3
  import { c as commonPalette } from "../palette-utils-BHqJlHm9.js";
4
4
  import { g } from "../palette-utils-BHqJlHm9.js";
5
+ import { g as getPixelToRem, M as MenuItem } from "../MenuItem-zaH11xyj.js";
5
6
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
6
- import { T as Typography, a as TablePaginationActions, I as ICON_SIZE_LARGE, b as ICON_SIZE_MEDIUM, c as ICON_SIZE_SMALL, g as getSpacing, e as ellipsisStyles, M as MENU_ITEM_SIZE_DEFAULT, d as MENU_LIST_MAX_SIZE, f as MENU_ITEM_SIZE_DENSE, A as APPBAR_SIZE, B as BREAKPOINTS, S as SPACING } from "../css-utils-CjUBRJVK.js";
7
- import { h, N } from "../css-utils-CjUBRJVK.js";
7
+ import { T as Typography, a as TablePaginationActions, I as ICON_SIZE_LARGE, b as ICON_SIZE_MEDIUM, c as ICON_SIZE_SMALL, g as getSpacing, e as ellipsisStyles, M as MENU_ITEM_SIZE_DEFAULT, d as MENU_LIST_MAX_SIZE, f as MENU_ITEM_SIZE_DENSE, L as LIST_ITEM_SIZE_DENSE, h as LIST_ITEM_SIZE_DEFAULT, A as APPBAR_SIZE, B as BREAKPOINTS, S as SPACING } from "../css-utils-BzztxQJk.js";
8
+ import { i, N } from "../css-utils-BzztxQJk.js";
8
9
  import { Cancel, EventOutlined, ChevronRightOutlined, ChevronLeftOutlined, ExpandMoreOutlined, CheckCircleOutlined, InfoOutlined } from "@mui/icons-material";
9
10
  import { A as ArrowDown } from "../ArrowDown-d6bxUL0F.js";
10
11
  import { renderDigitalClockTimeView } from "@mui/x-date-pickers";
11
- import { M as MenuItem } from "../MenuItem-DRUK149i.js";
12
12
  const themeShadows = [
13
13
  "none",
14
14
  // 0
@@ -44,11 +44,6 @@ const themeShadows = [
44
44
  "0px 11px 15px -7px rgba(44, 48, 50, 0.12), 0px 24px 38px 3px rgba(44, 48, 50, 0.08), 0px 9px 46px 8px rgba(44, 48, 50, 0.04)"
45
45
  // 24
46
46
  ];
47
- function getPixelToRem(px) {
48
- const fontBase = 16;
49
- const rem = 1 / fontBase * px + "rem";
50
- return rem;
51
- }
52
47
  const baseTypography = {
53
48
  htmlFontSize: 16,
54
49
  fontFamily: "Inter, sans-serif",
@@ -660,8 +655,19 @@ const dataDisplayOverrides = {
660
655
  styleOverrides: {
661
656
  root: ({ theme: theme2, ownerState }) => ({
662
657
  overflow: "initial",
658
+ position: "relative",
663
659
  color: theme2.palette.secondary.contrastText,
664
660
  backgroundColor: theme2.palette.secondary.main,
661
+ // Overlay border on top of all content using ::after pseudo-element
662
+ "&::after": {
663
+ content: '""',
664
+ position: "absolute",
665
+ inset: 0,
666
+ boxShadow: `inset 0 0 0 1px ${theme2.palette.default.outlinedBorder}`,
667
+ pointerEvents: "none",
668
+ borderRadius: "inherit",
669
+ zIndex: 1
670
+ },
665
671
  // Default fallback image override
666
672
  // https://github.com/mui/material-ui/issues/33229
667
673
  "& .MuiAvatar-fallback": {
@@ -698,11 +704,25 @@ const dataDisplayOverrides = {
698
704
  },
699
705
  // Disabled styles
700
706
  ...ownerState.disabled && {
701
- opacity: 0.6
707
+ opacity: 1,
708
+ color: theme2.palette.text.disabled,
709
+ backgroundColor: theme2.palette.action.disabledBackground,
710
+ // Overlay border on top of all content using ::after pseudo-element
711
+ "&::after": {
712
+ content: '""',
713
+ position: "absolute",
714
+ inset: 0,
715
+ boxShadow: `inset 0 0 0 1px ${theme2.palette.divider}`,
716
+ pointerEvents: "none",
717
+ borderRadius: "inherit",
718
+ zIndex: 1
719
+ }
702
720
  }
703
721
  }),
704
- img: ({ theme: theme2 }) => ({
705
- boxShadow: `0 0 0 1px ${theme2.palette.default.outlinedBorder}`
722
+ img: ({ ownerState }) => ({
723
+ ...ownerState.disabled && {
724
+ opacity: 0.6
725
+ }
706
726
  }),
707
727
  circular: () => ({
708
728
  borderRadius: avatarCircularRadius,
@@ -2325,6 +2345,72 @@ const formsOverrides = {
2325
2345
  }
2326
2346
  }
2327
2347
  };
2348
+ const getListItemAdornmentStyles = (theme2) => ({
2349
+ display: "flex",
2350
+ alignItems: "center",
2351
+ justifyContent: "center",
2352
+ gap: theme2.spacing(1.5),
2353
+ minHeight: MENU_ITEM_SIZE_DEFAULT,
2354
+ minWidth: MENU_ITEM_SIZE_DEFAULT
2355
+ });
2356
+ const getListItemStyles = (ownerState, theme2) => ({
2357
+ gap: theme2.spacing(1.5),
2358
+ minHeight: MENU_ITEM_SIZE_DEFAULT,
2359
+ padding: theme2.spacing(1, 2),
2360
+ // Checkbox and radio button styles
2361
+ "& .MuiCheckbox-root, & .MuiRadio-root": {
2362
+ ...getListItemAdornmentStyles(theme2),
2363
+ // Override the default icon size coming from MUI definition
2364
+ "& .MuiSvgIcon-fontSizeMedium": {
2365
+ fontSize: ICON_SIZE_LARGE,
2366
+ width: ICON_SIZE_LARGE,
2367
+ minWidth: ICON_SIZE_LARGE,
2368
+ height: ICON_SIZE_LARGE
2369
+ }
2370
+ },
2371
+ // Height: fixedHeight true (or undefined, which defaults to true) + dense true: 52px, dense false: 68px
2372
+ // fixedHeight false: adapts to content
2373
+ // Use data attribute selector since fixedHeight is not passed to MUI component to avoid DOM warning
2374
+ height: ownerState.dense ? LIST_ITEM_SIZE_DENSE : LIST_ITEM_SIZE_DEFAULT,
2375
+ '&[data-fixed-height="false"]': {
2376
+ height: "auto"
2377
+ },
2378
+ // Outlined variant styles
2379
+ ...ownerState.variant === "outlined" && {
2380
+ backgroundColor: theme2.palette.background.paper,
2381
+ boxShadow: `inset 0 0 0 1px ${theme2.palette.divider}`,
2382
+ borderRadius: theme2.spacing(1),
2383
+ "&.MuiListItemButton-root:hover": {
2384
+ backgroundColor: theme2.palette.background.paper,
2385
+ boxShadow: `inset 0 0 0 1px ${theme2.palette.text.hint}`
2386
+ }
2387
+ },
2388
+ // Disable gutters styles
2389
+ ...ownerState.disableGutters && {
2390
+ paddingLeft: 0,
2391
+ paddingRight: 0
2392
+ },
2393
+ // Disable padding styles
2394
+ ...ownerState.disablePadding && {
2395
+ padding: 0
2396
+ },
2397
+ // Disabled styles
2398
+ ...ownerState.disabled && {
2399
+ opacity: "1 !important",
2400
+ color: theme2.palette.text.disabled,
2401
+ backgroundColor: ownerState.variant === "outlined" ? theme2.palette.background.paper : "transparent",
2402
+ borderColor: ownerState.variant === "outlined" ? theme2.palette.divider : "transparent",
2403
+ ".MuiTypography-root": {
2404
+ color: theme2.palette.text.disabled
2405
+ },
2406
+ svg: {
2407
+ color: theme2.palette.text.disabled,
2408
+ path: {
2409
+ fill: theme2.palette.text.disabled
2410
+ }
2411
+ }
2412
+ }
2413
+ });
2328
2414
  const navigationOverrides = {
2329
2415
  // Menu
2330
2416
  MuiMenu: {
@@ -2444,9 +2530,15 @@ const navigationOverrides = {
2444
2530
  },
2445
2531
  // List
2446
2532
  MuiList: {
2533
+ defaultProps: {
2534
+ variant: "standard"
2535
+ },
2447
2536
  styleOverrides: {
2448
- root: ({ theme: theme2 }) => ({
2449
- paddingTop: 0,
2537
+ root: ({ theme: theme2, ownerState }) => ({
2538
+ display: "flex",
2539
+ flexDirection: "column",
2540
+ gap: theme2.spacing(ownerState.spacing ?? 0),
2541
+ padding: 0,
2450
2542
  ".MuiPopover-root &, .MuiPopper-root &, .base-Popper-root &": {
2451
2543
  minWidth: theme2.spacing(8),
2452
2544
  // 64px, defined by design
@@ -2461,13 +2553,30 @@ const navigationOverrides = {
2461
2553
  ".MuiDivider-root": {
2462
2554
  margin: theme2.spacing(1, 0)
2463
2555
  },
2556
+ ".MuiListSubheader-root": {
2557
+ // We need to offset the margin to avoid double spacing between subheaders and regular list items when using spacing prop.
2558
+ marginBottom: theme2.spacing(-(ownerState.spacing ?? 0))
2559
+ },
2560
+ // Outlined-list variant: border on the list container and in the list items
2561
+ ...ownerState.variant === "outlined-list" && {
2562
+ "& .MuiListItem-root, & .MuiListItemButton-root": {
2563
+ border: `1px solid ${theme2.palette.divider}`
2564
+ },
2565
+ // First list item has rounded top corners
2566
+ "& .MuiListItem-root:first-of-type, & .MuiListItemButton-root:first-of-type": {
2567
+ borderRadius: theme2.spacing(1, 1, 0, 0)
2568
+ },
2569
+ // Last list item has rounded bottom corners
2570
+ "& .MuiListItem-root:last-of-type, & .MuiListItemButton-root:last-of-type": {
2571
+ borderRadius: theme2.spacing(0, 0, 1, 1)
2572
+ },
2573
+ "& .MuiListItem-root + .MuiListItem-root, & .MuiListItemButton-root + .MuiListItemButton-root": {
2574
+ borderTop: "none"
2575
+ }
2576
+ },
2577
+ // TODO: old code, to be reviewed once we support sublevels in Figma specs.
2464
2578
  // Indent sublevels, ugly but needed to avoid issues with hover
2465
2579
  "& .MuiList-root": {
2466
- paddingTop: 0,
2467
- paddingBottom: 0,
2468
- "& .MuiListItem-root": {
2469
- paddingLeft: theme2.spacing(4)
2470
- },
2471
2580
  "& .MuiList-root": {
2472
2581
  "& .MuiListItem-root": {
2473
2582
  paddingLeft: theme2.spacing(6)
@@ -2493,32 +2602,105 @@ const navigationOverrides = {
2493
2602
  }
2494
2603
  },
2495
2604
  // List Item
2605
+ MuiListItem: {
2606
+ defaultProps: {
2607
+ dense: true,
2608
+ variant: "standard",
2609
+ disablePadding: false
2610
+ },
2611
+ styleOverrides: {
2612
+ root: ({ theme: theme2, ownerState }) => ({
2613
+ ...getListItemStyles(ownerState, theme2),
2614
+ // Add padding right when contains SecondaryAction to simulate spacing between the action and the content
2615
+ "&:has(.MuiListItemSecondaryAction-root)": {
2616
+ paddingRight: theme2.spacing(7.5)
2617
+ },
2618
+ // Reset padding when contains ListItemButton
2619
+ "&:has(.MuiListItemButton-root)": {
2620
+ padding: 0,
2621
+ '&.MuiListItem-root[data-variant="outlined"]': {
2622
+ boxShadow: "none",
2623
+ "&:hover": {
2624
+ backgroundColor: theme2.palette.background.paper,
2625
+ boxShadow: "none"
2626
+ }
2627
+ }
2628
+ }
2629
+ })
2630
+ }
2631
+ },
2632
+ // List Item Button
2633
+ MuiListItemButton: {
2634
+ defaultProps: {
2635
+ dense: true,
2636
+ variant: "standard",
2637
+ component: "button"
2638
+ },
2639
+ styleOverrides: {
2640
+ root: ({ theme: theme2, ownerState }) => ({
2641
+ ...getListItemStyles(ownerState, theme2),
2642
+ // Add padding right when contains SecondaryAction to simulate spacing between the action and the content
2643
+ "&:has(.MuiListItemSecondaryAction-root)": {
2644
+ paddingRight: theme2.spacing(7.5)
2645
+ },
2646
+ // Reset padding when inside ListItem, but keep padding left
2647
+ ".MuiListItem-root > &.MuiListItemButton-root": {
2648
+ padding: 0,
2649
+ paddingLeft: theme2.spacing(2),
2650
+ "&:hover": {
2651
+ backgroundColor: theme2.palette.action.hover
2652
+ }
2653
+ },
2654
+ // Outlined variant hover when inside ListItem
2655
+ '.MuiListItem-root[data-variant="outlined"] > &.MuiListItemButton-root': {
2656
+ boxShadow: `inset 0 0 0 1px ${theme2.palette.divider}`,
2657
+ borderRadius: theme2.spacing(1),
2658
+ "&:hover": {
2659
+ backgroundColor: theme2.palette.background.paper,
2660
+ boxShadow: `inset 0 0 0 1px ${theme2.palette.text.hint}`
2661
+ }
2662
+ },
2663
+ // Add padding right when inside ListItem that has SecondaryAction to simulate spacing between the action and the content
2664
+ ".MuiListItem-root:has(.MuiListItemSecondaryAction-root) > &.MuiListItemButton-root": {
2665
+ paddingRight: theme2.spacing(7.5)
2666
+ }
2667
+ })
2668
+ }
2669
+ },
2496
2670
  MuiListItemText: {
2497
2671
  defaultProps: {
2498
2672
  primaryTypographyProps: {
2499
- variant: "body2",
2673
+ variant: "button",
2500
2674
  noWrap: true,
2501
2675
  component: "span"
2502
2676
  },
2503
- secondaryTypographyProps: { variant: "caption" }
2677
+ secondaryTypographyProps: {
2678
+ variant: "caption",
2679
+ color: "text.secondary"
2680
+ }
2504
2681
  },
2505
2682
  styleOverrides: {
2506
- root: ({ theme: theme2 }) => ({
2507
- paddingRight: theme2.spacing(2),
2508
- "& + .MuiBox-root": {
2509
- marginRight: theme2.spacing(1)
2510
- }
2683
+ root: () => ({
2684
+ display: "flex",
2685
+ flexDirection: "column",
2686
+ justifyContent: "center",
2687
+ flex: 1,
2688
+ minHeight: MENU_ITEM_SIZE_DEFAULT,
2689
+ margin: 0
2511
2690
  })
2512
2691
  }
2513
2692
  },
2514
2693
  MuiListItemIcon: {
2515
2694
  styleOverrides: {
2516
2695
  root: ({ theme: theme2 }) => ({
2517
- display: "flex",
2518
- alignItems: "center",
2519
- gap: theme2.spacing(2),
2520
- "& .MuiSvgIcon-root": {
2521
- fontSize: ICON_SIZE_LARGE
2696
+ ...getListItemAdornmentStyles(theme2),
2697
+ // Apply styles to SVGs, but exclude those inside Radio or Checkbox components
2698
+ "&:not(:has(.MuiRadio-root)):not(:has(.MuiCheckbox-root)) svg": {
2699
+ color: theme2.palette.text.secondary,
2700
+ fontSize: ICON_SIZE_LARGE,
2701
+ width: ICON_SIZE_LARGE,
2702
+ minWidth: ICON_SIZE_LARGE,
2703
+ height: ICON_SIZE_LARGE
2522
2704
  },
2523
2705
  ".MuiMenuItem-root.MuiButtonBase-root &": {
2524
2706
  minWidth: ICON_SIZE_MEDIUM
@@ -2529,9 +2711,10 @@ const navigationOverrides = {
2529
2711
  MuiListItemAvatar: {
2530
2712
  styleOverrides: {
2531
2713
  root: ({ theme: theme2 }) => ({
2714
+ ...getListItemAdornmentStyles(theme2),
2532
2715
  "& .MuiAvatar-root": {
2533
- height: theme2.spacing(4),
2534
- width: theme2.spacing(4)
2716
+ height: MENU_ITEM_SIZE_DEFAULT,
2717
+ width: MENU_ITEM_SIZE_DEFAULT
2535
2718
  },
2536
2719
  "& .MuiSvgIcon-root": {
2537
2720
  fontSize: ICON_SIZE_MEDIUM
@@ -2539,6 +2722,41 @@ const navigationOverrides = {
2539
2722
  })
2540
2723
  }
2541
2724
  },
2725
+ MuiListItemSecondaryAction: {
2726
+ styleOverrides: {
2727
+ root: ({ theme: theme2 }) => ({
2728
+ ...getListItemAdornmentStyles(theme2)
2729
+ })
2730
+ }
2731
+ },
2732
+ MuiListSubheader: {
2733
+ defaultProps: {
2734
+ disableGutters: true,
2735
+ color: "default",
2736
+ component: "div"
2737
+ },
2738
+ styleOverrides: {
2739
+ root: ({ theme: theme2 }) => ({
2740
+ display: "flex",
2741
+ alignItems: "center",
2742
+ justifyContent: "flex-start",
2743
+ height: theme2.spacing(3),
2744
+ ...theme2.typography.caption,
2745
+ // Use data attribute selector since backgroundColor is not passed to MUI component to avoid DOM warning
2746
+ backgroundColor: theme2.palette.background.default,
2747
+ '&[data-background-color="paper"]': {
2748
+ backgroundColor: theme2.palette.background.paper
2749
+ },
2750
+ '&[data-background-color="inherit"]': {
2751
+ backgroundColor: "inherit"
2752
+ },
2753
+ // Padding for ListSubHeader when List is variant="standard"
2754
+ '[data-variant="standard"] &': {
2755
+ padding: theme2.spacing(0, 2)
2756
+ }
2757
+ })
2758
+ }
2759
+ },
2542
2760
  // Tabs
2543
2761
  MuiTabs: {
2544
2762
  styleOverrides: {
@@ -3268,9 +3486,11 @@ export {
3268
3486
  ICON_SIZE_LARGE,
3269
3487
  ICON_SIZE_MEDIUM,
3270
3488
  ICON_SIZE_SMALL,
3489
+ LIST_ITEM_SIZE_DEFAULT,
3490
+ LIST_ITEM_SIZE_DENSE,
3271
3491
  MENU_ITEM_SIZE_DEFAULT,
3272
3492
  MENU_ITEM_SIZE_DENSE,
3273
- h as MENU_ITEM_SIZE_EXTENDED,
3493
+ i as MENU_ITEM_SIZE_EXTENDED,
3274
3494
  MENU_LIST_MAX_SIZE,
3275
3495
  N as NOTIFICATION_DURATION_IN_MS,
3276
3496
  SPACING,
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/Avatar.stories.tsx"],"names":[],"mappings":"AAeA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCG,CAAA;AAChB,eAAe,OAAO,CAAA;AA8VtB,eAAO,MAAM,UAAU;;;;;;;;;CAKtB,CAAA;AAED,eAAO,MAAM,KAAK;;;;;;;CAKjB,CAAA;AAED,eAAO,MAAM,KAAK;;;;;;;;;;;CAGjB,CAAA;AAED,eAAO,MAAM,OAAO;;;;CAEnB,CAAA;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;CAGtB,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;CAGvB,CAAA;AAED,eAAO,MAAM,eAAe;;;;CAE3B,CAAA"}
1
+ {"version":3,"file":"Avatar.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/Avatar.stories.tsx"],"names":[],"mappings":"AAeA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCG,CAAA;AAChB,eAAe,OAAO,CAAA;AA8WtB,eAAO,MAAM,UAAU;;;;;;;;;CAKtB,CAAA;AAED,eAAO,MAAM,KAAK;;;;;;;CAKjB,CAAA;AAED,eAAO,MAAM,KAAK;;;;;;;;;;;CAGjB,CAAA;AAED,eAAO,MAAM,OAAO;;;;CAEnB,CAAA;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;CAGtB,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;CAGvB,CAAA;AAED,eAAO,MAAM,eAAe;;;;CAE3B,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { EmptyStateProps } from './types';
2
+ declare const EmptyState: import('react').ForwardRefExoticComponent<EmptyStateProps & import('react').RefAttributes<HTMLDivElement>>;
3
+ export default EmptyState;
4
+ //# sourceMappingURL=EmptyState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../../src/components/EmptyState/EmptyState.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAkGzC,QAAA,MAAM,UAAU,4GAA2D,CAAA;AAC3E,eAAe,UAAU,CAAA"}
@@ -0,0 +1,188 @@
1
+ import { EmptyStateProps } from './types';
2
+ type EmptyStateStoryProps = EmptyStateProps & {
3
+ /**
4
+ * The color of the icon.
5
+ * It supports any color from the theme (e.g., 'text.disabled', 'primary.main', 'text.secondary').
6
+ * @default 'text.disabled'
7
+ */
8
+ iconColor?: string;
9
+ /**
10
+ * The size of the icon.
11
+ * @default undefined
12
+ */
13
+ iconSize?: number | string;
14
+ };
15
+ declare const options: {
16
+ title: string;
17
+ component: import('react').ForwardRefExoticComponent<EmptyStateProps & import('react').RefAttributes<HTMLDivElement>>;
18
+ tags: string[];
19
+ argTypes: {
20
+ size: {
21
+ control: "select";
22
+ options: string[];
23
+ table: {
24
+ type: {
25
+ summary: string;
26
+ };
27
+ defaultValue: {
28
+ summary: string;
29
+ };
30
+ };
31
+ };
32
+ spacing: {
33
+ control: "number";
34
+ table: {
35
+ type: {
36
+ summary: string;
37
+ };
38
+ };
39
+ };
40
+ contentWidth: {
41
+ control: "number";
42
+ table: {
43
+ type: {
44
+ summary: string;
45
+ };
46
+ defaultValue: {
47
+ summary: string;
48
+ };
49
+ };
50
+ };
51
+ contentHeight: {
52
+ control: "number";
53
+ table: {
54
+ type: {
55
+ summary: string;
56
+ };
57
+ };
58
+ };
59
+ title: {
60
+ control: "text";
61
+ };
62
+ description: {
63
+ control: "text";
64
+ };
65
+ sx: {
66
+ control: "object";
67
+ };
68
+ iconProps: {
69
+ control: "boolean";
70
+ defaultValue: boolean;
71
+ description: string;
72
+ table: {
73
+ type: {
74
+ summary: string;
75
+ };
76
+ };
77
+ };
78
+ iconColor: {
79
+ control: "text";
80
+ description: string;
81
+ if: {
82
+ arg: string;
83
+ };
84
+ table: {
85
+ type: {
86
+ summary: string;
87
+ };
88
+ defaultValue: {
89
+ summary: string;
90
+ };
91
+ };
92
+ };
93
+ iconSize: {
94
+ control: "select";
95
+ options: number[];
96
+ description: string;
97
+ if: {
98
+ arg: string;
99
+ };
100
+ table: {
101
+ type: {
102
+ summary: string;
103
+ };
104
+ defaultValue: {
105
+ summary: string;
106
+ };
107
+ };
108
+ };
109
+ };
110
+ args: {
111
+ title: string;
112
+ description: string;
113
+ };
114
+ parameters: {
115
+ design: {
116
+ type: string;
117
+ url: string;
118
+ };
119
+ status: {
120
+ type: string;
121
+ };
122
+ };
123
+ };
124
+ export default options;
125
+ export declare const Playground: {
126
+ render: ({ iconSize, iconColor, iconProps, ...args }: EmptyStateStoryProps) => import("react/jsx-runtime").JSX.Element;
127
+ args: {
128
+ title: string;
129
+ icon: import("react/jsx-runtime").JSX.Element;
130
+ };
131
+ parameters: {
132
+ chromatic: {
133
+ disableSnapshot: boolean;
134
+ };
135
+ };
136
+ };
137
+ export declare const Size: {
138
+ render: (args: EmptyStateStoryProps) => import("react/jsx-runtime").JSX.Element;
139
+ args: {
140
+ icon: import("react/jsx-runtime").JSX.Element;
141
+ };
142
+ };
143
+ export declare const Icon: {
144
+ render: (args: EmptyStateStoryProps) => import("react/jsx-runtime").JSX.Element;
145
+ args: {
146
+ size: string;
147
+ title: string;
148
+ };
149
+ };
150
+ export declare const TitleAndDescription: {
151
+ render: (args: EmptyStateStoryProps) => import("react/jsx-runtime").JSX.Element;
152
+ args: {
153
+ icon: import("react/jsx-runtime").JSX.Element;
154
+ };
155
+ };
156
+ export declare const Actions: {
157
+ render: (args: EmptyStateStoryProps) => import("react/jsx-runtime").JSX.Element;
158
+ args: {
159
+ icon: import("react/jsx-runtime").JSX.Element;
160
+ };
161
+ };
162
+ export declare const IconProps: {
163
+ render: (args: EmptyStateStoryProps) => import("react/jsx-runtime").JSX.Element;
164
+ args: {
165
+ icon: import("react/jsx-runtime").JSX.Element;
166
+ };
167
+ };
168
+ export declare const ContentDimensions: {
169
+ render: (args: EmptyStateStoryProps) => import("react/jsx-runtime").JSX.Element;
170
+ args: {
171
+ title: string;
172
+ description: string;
173
+ actions: import("react/jsx-runtime").JSX.Element;
174
+ icon: import("react/jsx-runtime").JSX.Element;
175
+ };
176
+ };
177
+ export declare const CustomSXStyles: {
178
+ render: ({ iconSize, iconColor, iconProps, ...args }: EmptyStateStoryProps) => import("react/jsx-runtime").JSX.Element;
179
+ args: {
180
+ sx: {
181
+ padding: number;
182
+ border: string;
183
+ borderRadius: number;
184
+ };
185
+ icon: import("react/jsx-runtime").JSX.Element;
186
+ };
187
+ };
188
+ //# sourceMappingURL=EmptyState.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyState.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/EmptyState/EmptyState.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAKzC,KAAK,oBAAoB,GAAG,eAAe,GAAG;IAC5C;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAC3B,CAAA;AAED,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2FyB,CAAA;AACtC,eAAe,OAAO,CAAA;AAmXtB,eAAO,MAAM,UAAU;0DA5WpB,oBAAoB;;;;;;;;;;CAqXtB,CAAA;AAED,eAAO,MAAM,IAAI;mBAjUW,oBAAoB;;;;CAsU/C,CAAA;AAED,eAAO,MAAM,IAAI;mBAnXW,oBAAoB;;;;;CAyX/C,CAAA;AAED,eAAO,MAAM,mBAAmB;mBAlMG,oBAAoB;;;;CAuMtD,CAAA;AAED,eAAO,MAAM,OAAO;mBArJW,oBAAoB;;;;CA0JlD,CAAA;AAED,eAAO,MAAM,SAAS;mBA7TW,oBAAoB;;;;CAkUpD,CAAA;AAED,eAAO,MAAM,iBAAiB;mBA5QW,oBAAoB;;;;;;;CAyR5D,CAAA;AAED,eAAO,MAAM,cAAc;0DA1axB,oBAAoB;;;;;;;;;CAobtB,CAAA"}
@@ -0,0 +1,38 @@
1
+ import { EmptyStateProps } from './types';
2
+ export declare const EMPTY_STATE_WIDTH = 592;
3
+ /**
4
+ * Props for the Root styled component.
5
+ */
6
+ type RootProps = {
7
+ size?: EmptyStateProps['size'];
8
+ spacing?: number;
9
+ contentHeight?: number | string;
10
+ };
11
+ /**
12
+ * Props for the IconWrapper styled component.
13
+ */
14
+ type IconWrapperProps = {
15
+ size?: EmptyStateProps['size'];
16
+ iconSize?: number | string;
17
+ iconColor?: string | null;
18
+ };
19
+ export declare const Root: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
20
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
21
+ }, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & RootProps, {}, {}>;
22
+ export declare const IconWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
23
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
24
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & IconWrapperProps, {}, {}>;
25
+ type TextContentProps = {
26
+ contentWidth?: number | string;
27
+ };
28
+ export declare const TextContent: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
29
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
30
+ }, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & TextContentProps, {}, {}>;
31
+ export declare const Actions: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
32
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
33
+ }, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
34
+ size?: EmptyStateProps["size"];
35
+ spacing?: number;
36
+ }, {}, {}>;
37
+ export {};
38
+ //# sourceMappingURL=EmptyState.styled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyState.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/EmptyState/EmptyState.styled.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEzC,eAAO,MAAM,iBAAiB,MAAM,CAAA;AAEpC;;GAEG;AACH,KAAK,SAAS,GAAG;IACf,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAChC,CAAA;AAED;;GAEG;AACH,KAAK,gBAAgB,GAAG;IACtB,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;IAC9B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,IAAI;;iNAUd,CAAA;AAEH,eAAO,MAAM,WAAW;;kLAwBtB,CAAA;AAEF,KAAK,gBAAgB,GAAG;IACtB,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAC/B,CAAA;AAED,eAAO,MAAM,WAAW;;wNAUrB,CAAA;AAEH,eAAO,MAAM,OAAO;;;WAGX,eAAe,CAAC,MAAM,CAAC;cACpB,MAAM;UAUf,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=EmptyState.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyState.test.d.ts","sourceRoot":"","sources":["../../../../src/components/EmptyState/EmptyState.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export { default as EmptyState } from './EmptyState';
2
+ export type * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/EmptyState/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA;AACpD,mBAAmB,SAAS,CAAA"}