@am92/react-design-system 2.6.0 → 2.7.1

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 (30) hide show
  1. package/dist/Components/DsAccordion/DsAccordion.Component.d.ts +2 -5
  2. package/dist/Components/DsAccordion/DsAccordion.Component.js +11 -14
  3. package/dist/Components/DsAccordion/DsAccordion.Overrides.d.ts +1 -1
  4. package/dist/Components/DsAccordion/DsAccordion.Overrides.js +1 -1
  5. package/dist/Components/DsAccordion/DsAccordion.Types.js +2 -4
  6. package/dist/Components/DsAppBar/DsAppBar.Types.js +1 -4
  7. package/dist/Components/DsAutocomplete/DsAutocomplete.Overrides.d.ts +0 -1
  8. package/dist/Components/DsAutocomplete/DsAutocomplete.Overrides.js +0 -1
  9. package/dist/Components/DsBottomSheet/DsBottomSheet.Component.js +1 -1
  10. package/dist/Components/DsDivider/DsDivider.Overrides.js +12 -2
  11. package/dist/Components/DsInputBase/DsInputBase.Overrides.js +1 -0
  12. package/dist/Components/DsNotistack/AlertMessage.Component.d.ts +9 -11
  13. package/dist/Components/DsNotistack/AlertMessage.Component.js +3 -12
  14. package/dist/Components/DsNotistack/DsNotistack.Types.d.ts +4 -6
  15. package/dist/Components/DsNotistack/DsNotistack.Types.js +1 -1
  16. package/dist/Components/DsPaper/DsPaper.Overrides.d.ts +1 -5
  17. package/dist/Components/DsPaper/DsPaper.Overrides.js +2 -6
  18. package/dist/Components/DsPaper/DsPaper.Types.js +3 -1
  19. package/dist/Components/DsProgressIndicator/DsProgressIndicator.Component.js +1 -1
  20. package/dist/Components/DsSelect/DsSelect.Component.js +2 -2
  21. package/dist/Components/DsSelect/DsSelect.Types.js +2 -0
  22. package/dist/Components/DsToast/DsToast.Component.js +5 -5
  23. package/dist/Theme/componentOverrides.d.ts +2 -7
  24. package/dist/Theme/elevation.d.ts +2 -1
  25. package/dist/Theme/elevation.js +28 -0
  26. package/dist/Theme/index.d.ts +4 -1
  27. package/dist/Theme/index.js +3 -2
  28. package/dist/Types/DsElevation.d.ts +2 -1
  29. package/dist/x-charts/Types/index.d.ts +44 -0
  30. package/package.json +2 -2
@@ -1,6 +1,3 @@
1
- import { PureComponent } from 'react';
1
+ import { FC } from 'react';
2
2
  import { DsAccordionProps } from './DsAccordion.Types';
3
- export declare class DsAccordion extends PureComponent<DsAccordionProps> {
4
- getMergedProps: () => DsAccordionProps;
5
- render(): import("react/jsx-runtime").JSX.Element;
6
- }
3
+ export declare const DsAccordion: FC<DsAccordionProps>;
@@ -1,17 +1,14 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { PureComponent } from 'react';
3
2
  import Accordion from '@mui/material/Accordion';
4
- import { DsAccordionSummary } from '../DsAccordionSummary';
3
+ import { useThemeProps } from '@mui/system';
5
4
  import { DsAccordionDetails } from '../DsAccordionDetails';
6
- import { DsAccordionDefaultProps } from './DsAccordion.Types';
7
- export class DsAccordion extends PureComponent {
8
- // Since we have custome props defined merging of default props is necessary
9
- getMergedProps = () => {
10
- return { ...DsAccordionDefaultProps, ...this.props };
11
- };
12
- render() {
13
- const mergedProps = this.getMergedProps();
14
- const { header, HeaderProps, summary, SummaryProps, expandIcon, ...AccordionProps } = mergedProps;
15
- return (_jsxs(Accordion, { ...AccordionProps, children: [_jsx(DsAccordionSummary, { expandIcon: expandIcon, ...HeaderProps, children: header }), summary && (_jsx(DsAccordionDetails, { ...SummaryProps, children: summary }))] }));
16
- }
17
- }
5
+ import { DsAccordionSummary } from '../DsAccordionSummary';
6
+ import { DsRemixIcon } from '../DsRemixIcon';
7
+ export const DsAccordion = inProps => {
8
+ const props = useThemeProps({
9
+ props: inProps,
10
+ name: 'MuiAccordion'
11
+ });
12
+ const { header, HeaderProps, summary, SummaryProps, expandIcon = (_jsx(DsRemixIcon, { className: "ri-arrow-drop-down-line", fontSize: "bitterCold" })), ...AccordionProps } = props;
13
+ return (_jsxs(Accordion, { ...AccordionProps, children: [_jsx(DsAccordionSummary, { expandIcon: expandIcon, ...HeaderProps, children: header }), summary && (_jsx(DsAccordionDetails, { ...SummaryProps, children: summary }))] }));
14
+ };
@@ -4,7 +4,7 @@ export declare const DsAccordionOverrides: {
4
4
  styleOverrides: {
5
5
  root: {
6
6
  backgroundColor: string;
7
- boxShadow: string;
7
+ backgroundImage: string;
8
8
  overflow: string;
9
9
  '&:not(:first-of-type):not(.Mui-expanded)': {
10
10
  marginTop: string;
@@ -5,7 +5,7 @@ export const DsAccordionOverrides = {
5
5
  styleOverrides: {
6
6
  root: {
7
7
  backgroundColor: 'var(--ds-colour-surfacePrimary)',
8
- boxShadow: 'var(--ds-elevation--1)',
8
+ backgroundImage: 'none',
9
9
  overflow: 'hidden',
10
10
  '&:not(:first-of-type):not(.Mui-expanded)': {
11
11
  marginTop: '-1px'
@@ -1,7 +1,5 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { DsRemixIcon } from '../DsRemixIcon';
3
1
  export const DsAccordionDefaultProps = {
2
+ elevation: -1,
4
3
  header: '',
5
- summary: '',
6
- expandIcon: (_jsx(DsRemixIcon, { className: "ri-arrow-drop-down-line", fontSize: "bitterCold" }))
4
+ summary: ''
7
5
  };
@@ -1,8 +1,5 @@
1
1
  export const DsAppBarDefaultProps = {
2
2
  color: 'default',
3
3
  enableColorOnDark: true,
4
- elevation: 0,
5
- appBarTitle: '',
6
- navigation: false,
7
- actions: false
4
+ elevation: 0
8
5
  };
@@ -22,7 +22,6 @@ export declare const DsAutocompleteOverrides: {
22
22
  };
23
23
  };
24
24
  endAdornment: {
25
- top: string;
26
25
  right: string;
27
26
  display: string;
28
27
  alignItems: string;
@@ -23,7 +23,6 @@ export const DsAutocompleteOverrides = {
23
23
  }
24
24
  },
25
25
  endAdornment: {
26
- top: 'unset',
27
26
  right: '8px',
28
27
  display: 'flex',
29
28
  alignItems: 'center',
@@ -45,7 +45,7 @@ export class DsBottomSheet extends PureComponent {
45
45
  maxHeight: 'var(--ds-rules-bottomSheetWorkingAreaHeight)',
46
46
  ...PaperProps?.sx
47
47
  }
48
- }, children: [showClose && (_jsx(DsIconButton, { onClick: this.handleCloseClick, ...CloseIconButtonProps, sx: {
48
+ }, onClose: this.handleDrawerClose, children: [showClose && (_jsx(DsIconButton, { onClick: this.handleCloseClick, ...CloseIconButtonProps, sx: {
49
49
  flexGrow: 0,
50
50
  alignSelf: 'center',
51
51
  backgroundColor: 'var(--ds-colour-iconDefault)',
@@ -14,13 +14,23 @@ export const DsDividerOverrides = {
14
14
  {
15
15
  props: { 'ds-size': 'M' },
16
16
  style: {
17
- borderWidth: '0.5px'
17
+ '&::before': {
18
+ borderWidth: '0.5px'
19
+ },
20
+ '&::after': {
21
+ borderWidth: '0.5px'
22
+ }
18
23
  }
19
24
  },
20
25
  {
21
26
  props: { 'ds-size': 'L' },
22
27
  style: {
23
- borderWidth: '6px'
28
+ '&::before': {
29
+ borderWidth: '6px'
30
+ },
31
+ '&::after': {
32
+ borderWidth: '6px'
33
+ }
24
34
  }
25
35
  }
26
36
  ]
@@ -115,6 +115,7 @@ export const DsInputBaseOverrides = {
115
115
  padding: 'var(--ds-spacing-deepFreeze)',
116
116
  height: 'auto'
117
117
  },
118
+ // The warning for SSR let it be
118
119
  '> :nth-child(even)': {
119
120
  marginLeft: 'var(--ds-spacing-quickFreeze)'
120
121
  }
@@ -1,15 +1,13 @@
1
1
  import React from 'react';
2
- import { VariantType } from 'notistack';
2
+ import { OptionsObject } from 'notistack';
3
3
  import { DsToastProps } from '../DsToast';
4
- export interface AlertMessageProps extends Omit<DsToastProps, 'variant' | 'color' | 'ref'> {
5
- message: string;
4
+ import { DsNotistackProviderProps, NotiStackMessage } from './DsNotistack.Types';
5
+ export interface AlertMessageProps extends Omit<DsToastProps, 'variant'>, Pick<OptionsObject, Exclude<keyof OptionsObject, keyof Omit<DsToastProps, 'variant'>>>, NotiStackMessage {
6
6
  toastVariant: DsToastProps['variant'];
7
- onClose: (props: object) => void;
8
- variant?: VariantType & DsToastProps['color'];
9
- sx?: object;
7
+ iconVariant: DsNotistackProviderProps['iconVariant'];
10
8
  }
11
- export declare const DsNotistackAlertDefault: React.ForwardRefExoticComponent<AlertMessageProps & React.RefAttributes<HTMLDivElement>>;
12
- export declare const DsNotistackAlertSuccess: React.ForwardRefExoticComponent<AlertMessageProps & React.RefAttributes<HTMLDivElement>>;
13
- export declare const DsNotistackAlertError: React.ForwardRefExoticComponent<AlertMessageProps & React.RefAttributes<HTMLDivElement>>;
14
- export declare const DsNotistackAlertWarning: React.ForwardRefExoticComponent<AlertMessageProps & React.RefAttributes<HTMLDivElement>>;
15
- export declare const DsNotistackAlertInfo: React.ForwardRefExoticComponent<AlertMessageProps & React.RefAttributes<HTMLDivElement>>;
9
+ export declare const DsNotistackAlertDefault: React.ForwardRefExoticComponent<Omit<AlertMessageProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ export declare const DsNotistackAlertSuccess: React.ForwardRefExoticComponent<Omit<AlertMessageProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ export declare const DsNotistackAlertError: React.ForwardRefExoticComponent<Omit<AlertMessageProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ export declare const DsNotistackAlertWarning: React.ForwardRefExoticComponent<Omit<AlertMessageProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ export declare const DsNotistackAlertInfo: React.ForwardRefExoticComponent<Omit<AlertMessageProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -2,23 +2,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React, { Component } from 'react';
3
3
  import { closeSnackbar } from 'notistack';
4
4
  import { DsToast } from '../DsToast';
5
- const AlertMessageDefaultProps = {
6
- toastVariant: 'filled',
7
- message: '',
8
- onClose: props => undefined
9
- };
10
5
  class AlertMessage extends Component {
11
- static defaultProps = AlertMessageDefaultProps;
12
6
  handleClose = () => {
13
- const { id, onClose } = this.props;
14
- if (onClose && typeof onClose === 'function') {
15
- onClose(this.props);
16
- }
7
+ const { id } = this.props;
17
8
  closeSnackbar(id);
18
9
  };
19
10
  render() {
20
- const { forwardedRef, message, toastVariant, variant, icon, action, sx } = this.props;
21
- return (_jsx(DsToast, { forwardedRef: forwardedRef, variant: toastVariant, color: variant, sx: sx, icon: icon, action: action, onClose: this.handleClose, children: message }));
11
+ const { ref, toastVariant, variant, message, id, autoHideDuration, hideIconVariant, anchorOrigin, persist, iconVariant, ...restProps } = this.props;
12
+ return (_jsx(DsToast, { ...restProps, variant: toastVariant, color: variant, onClose: this.handleClose, children: message }));
22
13
  }
23
14
  }
24
15
  export const DsNotistackAlertDefault = React.forwardRef((props, ref) => {
@@ -1,12 +1,10 @@
1
- import { SharedProps, SnackbarKey, SnackbarMessage, SnackbarProviderProps } from 'notistack';
1
+ import { OptionsObject, SnackbarKey, SnackbarMessage, SnackbarProviderProps } from 'notistack';
2
2
  import { DsToastProps } from '../DsToast';
3
3
  export interface DsNotistackProviderProps extends SnackbarProviderProps {
4
4
  }
5
5
  export type DsNotistackKey = SnackbarKey;
6
- export interface EnqueNotistackProps extends SharedProps {
6
+ export interface NotiStackMessage {
7
7
  message: SnackbarMessage;
8
- key?: DsNotistackKey;
9
- toastVariant?: Omit<DsToastProps['variant'], 'standard'>;
10
- icon?: DsToastProps['icon'];
11
8
  }
12
- export declare const DsNotistackDefaultProps: DsNotistackProviderProps;
9
+ export interface EnqueNotistackProps extends OptionsObject, NotiStackMessage, Pick<DsToastProps, Exclude<keyof DsToastProps, keyof OptionsObject>> {
10
+ }
@@ -1 +1 @@
1
- export const DsNotistackDefaultProps = {};
1
+ export {};
@@ -1,10 +1,6 @@
1
1
  export declare const DsPaperOverrides: {
2
2
  MuiPaper: {
3
3
  defaultProps: import("./DsPaper.Types").DsPaperProps;
4
- };
5
- styleOverrides: {
6
- root: {
7
- boxShadow: string;
8
- };
4
+ styleOverrides: {};
9
5
  };
10
6
  };
@@ -1,11 +1,7 @@
1
1
  import { DsPaperDefaultProps } from './DsPaper.Types';
2
2
  export const DsPaperOverrides = {
3
3
  MuiPaper: {
4
- defaultProps: DsPaperDefaultProps
5
- },
6
- styleOverrides: {
7
- root: {
8
- boxShadow: 'var(--ds-elevation-0)'
9
- }
4
+ defaultProps: DsPaperDefaultProps,
5
+ styleOverrides: {}
10
6
  }
11
7
  };
@@ -1 +1,3 @@
1
- export const DsPaperDefaultProps = {};
1
+ export const DsPaperDefaultProps = {
2
+ elevation: 0
3
+ };
@@ -25,7 +25,7 @@ export class DsProgressIndicator extends Component {
25
25
  const squareSize = this.props['ds-variant'] === 'fraction' ? '48px' : '32px';
26
26
  const fillPercentage = Math.round((activeStep / steps) * 100);
27
27
  const fillColor = isSuccess ? 'success' : isError ? 'error' : 'secondary';
28
- return (_jsxs(DsBox, { display: "flex", position: "relative", height: squareSize, width: squareSize, children: [_jsx(DsCircularProgress, { variant: "determinate", value: 100, sx: { color: 'var(--ds-colour-stateDisabledSurface)' }, size: squareSize, thickness: 4 }), _jsx(DsCircularProgress, { disableShrink: true, variant: "determinate", color: fillColor, value: fillPercentage, size: squareSize, thickness: 4, style: {
28
+ return (_jsxs(DsBox, { display: "flex", position: "relative", height: squareSize, width: squareSize, children: [_jsx(DsCircularProgress, { variant: "determinate", value: 100, sx: { color: 'var(--ds-colour-stateDisabledSurface)' }, size: squareSize, thickness: 4 }), _jsx(DsCircularProgress, { variant: "determinate", color: fillColor, value: fillPercentage, size: squareSize, thickness: 4, style: {
29
29
  position: 'absolute'
30
30
  } }), _jsx(DsTypography, { variant: "subheadingSemiboldDefault", sx: {
31
31
  position: 'absolute',
@@ -13,13 +13,13 @@ export class DsSelect extends PureComponent {
13
13
  static defaultProps = DsSelectDefaultProps;
14
14
  selectRef = React.createRef();
15
15
  render() {
16
- const { id, name, placeholder, label, labelSupportText, color, helperText, success, error, sx, fullWidth, children, options, disabled, FormControlProps, InputLabelProps, FormHelperTextProps, ...selectProps } = this.props;
16
+ const { id, name, placeholder, label, labelSupportText, color, helperText, success, error, sx, fullWidth, children, options, disabled, FormControlProps, InputLabelProps, FormHelperTextProps, required, ...selectProps } = this.props;
17
17
  const customColor = success ? 'success' : color;
18
18
  const valueMap = options.reduce((acc, item) => {
19
19
  acc.set(item.value, item.label);
20
20
  return acc;
21
21
  }, new Map());
22
- return (_jsxs(DsFormControl, { fullWidth: fullWidth, color: customColor, error: error, sx: sx, disabled: disabled, ...FormControlProps, children: [_jsx(DsInputLabel, { label: label, labelSupportText: labelSupportText, error: error, success: success, htmlFor: id || name, disabled: disabled, ...InputLabelProps }), _jsxs(Select, { ref: this.selectRef, id: id, name: name, IconComponent: IconComponent, displayEmpty: true, input: _jsx(DsInputBase, {}), renderValue: value => {
22
+ return (_jsxs(DsFormControl, { fullWidth: fullWidth, color: customColor, error: error, sx: sx, disabled: disabled, required: required, ...FormControlProps, children: [_jsx(DsInputLabel, { label: label, labelSupportText: labelSupportText, error: error, success: success, htmlFor: id || name, disabled: disabled, ...InputLabelProps }), _jsxs(Select, { ref: this.selectRef, id: id, name: name, IconComponent: IconComponent, displayEmpty: true, input: _jsx(DsInputBase, {}), renderValue: value => {
23
23
  if (!value || (value instanceof Array && !value.length)) {
24
24
  return (_jsx(DsTypography, { variant: "bodyRegularMedium", color: "text.disabled", children: placeholder }));
25
25
  }
@@ -1,5 +1,7 @@
1
1
  export const DsSelectDefaultProps = {
2
2
  options: [],
3
+ variant: 'filled',
4
+ defaultValue: '',
3
5
  MenuProps: {
4
6
  anchorOrigin: {
5
7
  vertical: 'bottom',
@@ -2,13 +2,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { PureComponent } from 'react';
3
3
  import Alert from '@mui/material/Alert';
4
4
  import { DsRemixIcon } from '../DsRemixIcon';
5
- const CloseIcon = (props) => (_jsx(DsRemixIcon, { ...props, fontSize: "mild", className: "ri-close-line" }));
5
+ const CloseIcon = (props) => {
6
+ const { ownerState, ...restProps } = props;
7
+ return (_jsx(DsRemixIcon, { fontSize: "mild", className: "ri-close-line", ...restProps }));
8
+ };
6
9
  export class DsToast extends PureComponent {
7
10
  render() {
8
11
  const { forwardedRef, ...restProps } = this.props;
9
- return (_jsx(Alert, { ref: forwardedRef, ...restProps, components: {
10
- ...this.props.components,
11
- CloseIcon
12
- } }));
12
+ return (_jsx(Alert, { ref: forwardedRef, ...restProps, slots: { closeIcon: CloseIcon, ...restProps?.slots } }));
13
13
  }
14
14
  }
@@ -719,11 +719,7 @@ declare const componentOverrides: {
719
719
  };
720
720
  MuiPaper: {
721
721
  defaultProps: import("../Components").DsPaperProps;
722
- };
723
- styleOverrides: {
724
- root: {
725
- boxShadow: string;
726
- };
722
+ styleOverrides: {};
727
723
  };
728
724
  MuiMenuItem: {
729
725
  styleOverrides: {
@@ -1292,7 +1288,6 @@ declare const componentOverrides: {
1292
1288
  };
1293
1289
  };
1294
1290
  endAdornment: {
1295
- top: string;
1296
1291
  right: string;
1297
1292
  display: string;
1298
1293
  alignItems: string;
@@ -1373,7 +1368,7 @@ declare const componentOverrides: {
1373
1368
  styleOverrides: {
1374
1369
  root: {
1375
1370
  backgroundColor: string;
1376
- boxShadow: string;
1371
+ backgroundImage: string;
1377
1372
  overflow: string;
1378
1373
  '&:not(:first-of-type):not(.Mui-expanded)': {
1379
1374
  marginTop: string;
@@ -1,3 +1,4 @@
1
- import { DsElevation } from '../Types';
1
+ import { DsElevation, DsShadows } from '../Types';
2
2
  declare const dsElevation: DsElevation;
3
+ export declare const dsShadows: DsShadows;
3
4
  export default dsElevation;
@@ -12,4 +12,32 @@ const dsElevation = {
12
12
  16: '0px 16px 24px rgba(0, 0, 0, 0.08)',
13
13
  24: '0px 24px 40px rgba(0, 0, 0, 0.08)'
14
14
  };
15
+ export const dsShadows = [
16
+ '0px 0px 10px rgba(0, 0, 0, 0.1)',
17
+ '0px 0px 2px rgba(0, 0, 0, 0.1)',
18
+ '0px 2px 4px rgba(0, 0, 0, 0.08)',
19
+ '0px 3px 4px rgba(0, 0, 0, 0.08)',
20
+ '0px 4px 6px rgba(0, 0, 0, 0.08)',
21
+ 'none',
22
+ '0px 6px 10px rgba(0, 0, 0, 0.08)',
23
+ 'none',
24
+ '0px 8px 12px rgba(0, 0, 0, 0.08)',
25
+ '0px 9px 14px rgba(0, 0, 0, 0.08)',
26
+ 'none',
27
+ 'none',
28
+ '0px 12px 20px rgba(0, 0, 0, 0.08)',
29
+ 'none',
30
+ 'none',
31
+ 'none',
32
+ '0px 16px 24px rgba(0, 0, 0, 0.08)',
33
+ 'none',
34
+ 'none',
35
+ 'none',
36
+ 'none',
37
+ 'none',
38
+ 'none',
39
+ 'none',
40
+ '0px 24px 40px rgba(0, 0, 0, 0.08)'
41
+ ];
42
+ dsShadows[-1] = 'none';
15
43
  export default dsElevation;
@@ -1,6 +1,6 @@
1
1
  import { CssVarsTheme, PaletteColorOptions, Theme } from '@mui/material/styles';
2
2
  import dsSpacing, { SPACE_COEFFICIENT } from './spacing';
3
- import { DsPalette } from '../Types';
3
+ import { DsPalette, DsShadows } from '../Types';
4
4
  export declare function getTheme(palette?: DsPalette, fontFamilyName?: string, themeArgs?: object[]): Omit<Theme, 'palette' | 'applyStyles'> & CssVarsTheme;
5
5
  export { dsSpacing, SPACE_COEFFICIENT };
6
6
  declare module '@mui/material/styles' {
@@ -19,4 +19,7 @@ declare module '@mui/material/styles' {
19
19
  surface?: PaletteColorOptions;
20
20
  tertiary?: PaletteColorOptions;
21
21
  }
22
+ interface CssVarsThemeOptions {
23
+ shadows: DsShadows;
24
+ }
22
25
  }
@@ -5,7 +5,7 @@ import breakpoints from './breakpoints';
5
5
  import componentOverrides from './componentOverrides';
6
6
  import dsRules from './rules';
7
7
  import dsSpacing, { dsSpacingCssVars, SPACE_COEFFICIENT } from './spacing';
8
- import dsElevation from './elevation';
8
+ import dsElevation, { dsShadows } from './elevation';
9
9
  import { PALETTE, FONT_FAMILY_NAME } from '../Constants';
10
10
  import { DSTYPOGRAPHY_TOKENS } from '../Constants';
11
11
  import dsRadius from './radius';
@@ -30,7 +30,8 @@ export function getTheme(palette = PALETTE, fontFamilyName = FONT_FAMILY_NAME, t
30
30
  shape: { borderRadius: 2 },
31
31
  breakpoints,
32
32
  typography,
33
- spacing: (input) => input * SPACE_COEFFICIENT
33
+ spacing: (input) => input * SPACE_COEFFICIENT,
34
+ shadows: dsShadows
34
35
  };
35
36
  let theme = extendTheme(cssVarsThemeOptions, ...(themeArgs || []));
36
37
  theme = responsiveFontSizes(theme, {
@@ -1,4 +1,5 @@
1
- export type DsElevationKeys = '-1' | 0 | 1 | 2 | 3 | 4 | 6 | 8 | 9 | 12 | 16 | 24;
1
+ export type DsElevationKeys = -1 | 0 | 1 | 2 | 3 | 4 | 6 | 8 | 9 | 12 | 16 | 24;
2
2
  export type DsElevation = {
3
3
  [key in DsElevationKeys]: string;
4
4
  };
5
+ export type DsShadows = string[];
@@ -1 +1,45 @@
1
+ export { AnimatedAreaProps as DsAnimatedAreaProps } from '@mui/x-charts';
2
+ export { AnimatedLineProps as DsAnimatedLineProps } from '@mui/x-charts';
3
+ export { AreaElementProps as DsAreaElementProps } from '@mui/x-charts';
4
+ export { AreaPlotProps as DsAreaPlotProps } from '@mui/x-charts';
5
+ export { BarChartProps as DsBarChartProps } from '@mui/x-charts';
6
+ export { BarElementProps as DsBarElementProps } from '@mui/x-charts';
7
+ export { BarLabelProps as DsBarLabelProps } from '@mui/x-charts';
8
+ export { BarPlotProps as DsBarPlotProps } from '@mui/x-charts';
9
+ export { ChartContainerProps as DsChartContainerProps } from '@mui/x-charts';
10
+ export { ChartsAxisProps as DsChartsAxisProps } from '@mui/x-charts';
11
+ export { ChartsAxisHighlightProps as DsChartsAxisHighlightProps } from '@mui/x-charts';
12
+ export { ChartsClipPathProps as DsChartsClipPathProps } from '@mui/x-charts';
13
+ export { ChartsGridProps as DsChartsGridProps } from '@mui/x-charts';
14
+ export { ChartsLegendProps as DsChartsLegendProps } from '@mui/x-charts';
15
+ export { ChartsOnAxisClickHandlerProps as DsChartsOnAxisClickHandlerProps } from '@mui/x-charts';
16
+ export { ChartsSurfaceProps as DsChartsSurfaceProps } from '@mui/x-charts';
17
+ export { ChartsTextProps as DsChartsTextProps } from '@mui/x-charts';
18
+ export { ChartsTooltipProps as DsChartsTooltipProps } from '@mui/x-charts';
19
+ export { ChartsVoronoiHandlerProps as DsChartsVoronoiHandlerProps } from '@mui/x-charts';
20
+ export { ChartsXAxisProps as DsChartsXAxisProps } from '@mui/x-charts';
21
+ export { ChartsYAxisProps as DsChartsYAxisProps } from '@mui/x-charts';
22
+ export { ChartsAxisContentProps as DsChartsAxisContentProps } from '@mui/x-charts';
23
+ export { ChartsItemContentProps as DsChartsItemContentProps } from '@mui/x-charts';
24
+ export { LegendRendererProps as DsLegendRendererProps } from '@mui/x-charts';
25
+ export { GaugeProps as DsGaugeProps } from '@mui/x-charts';
26
+ export { GaugeContainerProps as DsGaugeContainerProps } from '@mui/x-charts';
27
+ export { LineChartProps as DsLineChartProps } from '@mui/x-charts';
28
+ export { LineElementProps as DsLineElementProps } from '@mui/x-charts';
29
+ export { LineHighlightElementProps as DsLineHighlightElementProps } from '@mui/x-charts';
30
+ export { LineHighlightPlotProps as DsLineHighlightPlotProps } from '@mui/x-charts';
31
+ export { LinePlotProps as DsLinePlotProps } from '@mui/x-charts';
32
+ export { MarkElementProps as DsMarkElementProps } from '@mui/x-charts';
33
+ export { MarkPlotProps as DsMarkPlotProps } from '@mui/x-charts';
34
+ export { PieArcProps as DsPieArcProps } from '@mui/x-charts';
35
+ export { PieArcLabelProps as DsPieArcLabelProps } from '@mui/x-charts';
36
+ export { PieArcLabelPlotProps as DsPieArcLabelPlotProps } from '@mui/x-charts';
37
+ export { PieArcPlotProps as DsPieArcPlotProps } from '@mui/x-charts';
38
+ export { PieChartProps as DsPieChartProps } from '@mui/x-charts';
39
+ export { PiePlotProps as DsPiePlotProps } from '@mui/x-charts';
40
+ export { ResponsiveChartContainerProps as DsResponsiveChartContainerProps } from '@mui/x-charts';
41
+ export { ScatterProps as DsScatterProps } from '@mui/x-charts';
42
+ export { ScatterChartProps as DsScatterChartProps } from '@mui/x-charts';
43
+ export { ScatterPlotProps as DsScatterPlotProps } from '@mui/x-charts';
44
+ export { SparkLineChartProps as DsSparkLineChartProps } from '@mui/x-charts';
1
45
  export * from './DsDataVisColors.Types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@am92/react-design-system",
3
- "version": "2.6.0",
3
+ "version": "2.7.1",
4
4
  "description": "ReactJS Design System using Material UI",
5
5
  "sideEffects": false,
6
6
  "types": "dist/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  "@mui/lab": "5.0.0-alpha.155",
20
20
  "@mui/material": "~5.16.7",
21
21
  "@mui/system": "~5.16.7",
22
- "@mui/x-charts": "^7.17.0",
22
+ "@mui/x-charts": "7.15.0",
23
23
  "@mui/x-date-pickers": "~6.19.5",
24
24
  "date-fns": "~2.30.0",
25
25
  "lottie-react": "~2.4.0",