@movable/ui 3.8.0 → 3.8.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.
@@ -1,4 +1,5 @@
1
1
  import { SxProps, Theme, SvgIconTypeMap } from '@mui/material';
2
+ import { ReactNode } from 'react';
2
3
  import { OverridableComponent } from '@mui/material/OverridableComponent';
3
4
  import { VariantType } from './VariantStyles';
4
5
  type ActionType = {
@@ -7,7 +8,7 @@ type ActionType = {
7
8
  };
8
9
  type InkEmptyStateProps = {
9
10
  title?: string;
10
- description?: string;
11
+ description?: ReactNode;
11
12
  action?: ActionType;
12
13
  variant: VariantType;
13
14
  icon?: JSX.Element | OverridableComponent<SvgIconTypeMap<object, 'svg'>>;
package/lib/index.d.ts CHANGED
@@ -521,7 +521,7 @@ export declare function InkEmptyState({ title, description, action, variant, ico
521
521
 
522
522
  declare type InkEmptyStateProps = {
523
523
  title?: string;
524
- description?: string;
524
+ description?: ReactNode;
525
525
  action?: ActionType;
526
526
  variant: VariantType;
527
527
  icon?: JSX.Element | OverridableComponent<SvgIconTypeMap<object, 'svg'>>;
package/lib/index.mjs CHANGED
@@ -24484,9 +24484,18 @@ const AE = {
24484
24484
  }
24485
24485
  }
24486
24486
  },
24487
+ // ButtonBase has `disableRipple: true`. As per the docs: https://mui.com/material-ui/api/button-base/#props
24488
+ // disable Ripple loses a focus state so adding it back in manually. IconButtons only have default and primary in design library
24487
24489
  MuiIconButton: {
24488
- defaultProps: {
24489
- disableRipple: !0
24490
+ styleOverrides: {
24491
+ root: {
24492
+ "&:focus": {
24493
+ backgroundColor: B.action.focus
24494
+ },
24495
+ "&.MuiIconButton-colorPrimary:focus": {
24496
+ backgroundColor: B.primary.focus
24497
+ }
24498
+ }
24490
24499
  }
24491
24500
  },
24492
24501
  MuiAccordion: {