@am92/react-design-system 2.5.10 → 2.7.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.
Files changed (96) hide show
  1. package/dist/Components/DsAccordion/DsAccordion.Types.d.ts +0 -1
  2. package/dist/Components/DsAppBar/DsAppBar.Types.d.ts +0 -1
  3. package/dist/Components/DsAppBar/DsAppBar.Types.js +1 -4
  4. package/dist/Components/DsAutocomplete/DsAutocomplete.Overrides.d.ts +0 -1
  5. package/dist/Components/DsAutocomplete/DsAutocomplete.Overrides.js +0 -1
  6. package/dist/Components/DsBottomSheet/DsBottomSheet.Component.d.ts +1 -1
  7. package/dist/Components/DsBottomSheet/DsBottomSheet.Component.js +1 -1
  8. package/dist/Components/DsCarousel/DsCarousel.Component/index.d.ts +3 -3
  9. package/dist/Components/DsDialog/DsDialog.Component.d.ts +1 -1
  10. package/dist/Components/DsFileUploader/DsFileUploader.Types.d.ts +0 -1
  11. package/dist/Components/DsHeader/DsHeader.Types.d.ts +0 -1
  12. package/dist/Components/DsHelperText/DsHelperText.Types.d.ts +0 -1
  13. package/dist/Components/DsImage/DsImage.Types.d.ts +1 -2
  14. package/dist/Components/DsInputBase/DsInputBase.Overrides.js +1 -0
  15. package/dist/Components/DsInputLabel/DsInputLabel.Types.d.ts +0 -1
  16. package/dist/Components/DsNotistack/AlertMessage.Component.d.ts +9 -11
  17. package/dist/Components/DsNotistack/AlertMessage.Component.js +3 -12
  18. package/dist/Components/DsNotistack/DsNotistack.Types.d.ts +4 -6
  19. package/dist/Components/DsNotistack/DsNotistack.Types.js +1 -1
  20. package/dist/Components/DsPopup/DsPopup.Types.d.ts +0 -1
  21. package/dist/Components/DsProgressIndicator/DsProgressIndicator.Component.js +1 -1
  22. package/dist/Components/DsProgressTracker/DsProgressTracker.Component.d.ts +4 -4
  23. package/dist/Components/DsProgressTracker/DsProgressTracker.Types.d.ts +0 -1
  24. package/dist/Components/DsSearchbar/DsSearchbar.Types.d.ts +1 -0
  25. package/dist/Components/DsSelect/DsSelect.Component.js +2 -2
  26. package/dist/Components/DsSelect/DsSelect.Types.d.ts +0 -1
  27. package/dist/Components/DsSelect/DsSelect.Types.js +2 -0
  28. package/dist/Components/DsTextField/DsTextField.Types.d.ts +0 -1
  29. package/dist/Components/DsTextFieldPassword/DsTextFieldPassword.Types.d.ts +0 -1
  30. package/dist/Components/DsToast/DsToast.Component.js +5 -5
  31. package/dist/Components/DsToast/DsToast.Types.d.ts +0 -1
  32. package/dist/Components/DsTooltip/DsTooltip.Types.d.ts +0 -1
  33. package/dist/Hocs/withBreakpoints.d.ts +0 -1
  34. package/dist/Theme/componentOverrides.d.ts +0 -2
  35. package/dist/Theme/getColorScheme/dark.js +2 -2
  36. package/dist/Theme/getTypography.d.ts +0 -1
  37. package/dist/Theme/index.d.ts +1 -1
  38. package/dist/Types/DsTypography.d.ts +0 -1
  39. package/dist/index.d.ts +1 -0
  40. package/dist/index.js +1 -0
  41. package/dist/x-charts/Components/index.d.ts +47 -0
  42. package/dist/x-charts/Components/index.js +47 -0
  43. package/dist/x-charts/Constants/DS_DATA_VIS_CAT_COLORS.d.ts +4 -0
  44. package/dist/x-charts/Constants/DS_DATA_VIS_CAT_COLORS.js +30 -0
  45. package/dist/x-charts/Constants/DS_DATA_VIS_SEQ_COLORS.d.ts +10 -0
  46. package/dist/x-charts/Constants/DS_DATA_VIS_SEQ_COLORS.js +120 -0
  47. package/dist/x-charts/Constants/DS_DATA_VIS_TREND_COLORS.d.ts +14 -0
  48. package/dist/x-charts/Constants/DS_DATA_VIS_TREND_COLORS.js +36 -0
  49. package/dist/x-charts/Constants/index.d.ts +3 -0
  50. package/dist/x-charts/Constants/index.js +3 -0
  51. package/dist/x-charts/Types/DsDataVisColors.Types.d.ts +2 -0
  52. package/dist/x-charts/Types/DsDataVisColors.Types.js +1 -0
  53. package/dist/x-charts/Types/index.d.ts +1 -0
  54. package/dist/x-charts/Types/index.js +1 -0
  55. package/dist/x-charts/index.d.ts +3 -0
  56. package/dist/x-charts/index.js +3 -0
  57. package/dist/x-datepicker/Components/DsDatePicker/DatePickerTextField.d.ts +4 -3
  58. package/dist/x-datepicker/Components/DsDatePicker/DatePickerTextField.js +7 -7
  59. package/dist/x-datepicker/Components/DsDatePicker/DsDatePicker.Component.js +1 -1
  60. package/dist/x-datepicker/Components/DsDatePicker/DsDatePicker.Overrides.d.ts +0 -1
  61. package/dist/x-datepicker/Components/DsDatePicker/utils.d.ts +3 -3
  62. package/dist/x-datepicker/Locale/DsDatePickerLocaleBeBY.d.ts +0 -1
  63. package/dist/x-datepicker/Locale/DsDatePickerLocaleCaES.d.ts +0 -1
  64. package/dist/x-datepicker/Locale/DsDatePickerLocaleCsCZ.d.ts +0 -1
  65. package/dist/x-datepicker/Locale/DsDatePickerLocaleDaDK.d.ts +0 -1
  66. package/dist/x-datepicker/Locale/DsDatePickerLocaleDeDE.d.ts +0 -1
  67. package/dist/x-datepicker/Locale/DsDatePickerLocaleElGR.d.ts +0 -1
  68. package/dist/x-datepicker/Locale/DsDatePickerLocaleEnUS.d.ts +0 -1
  69. package/dist/x-datepicker/Locale/DsDatePickerLocaleEsES.d.ts +0 -1
  70. package/dist/x-datepicker/Locale/DsDatePickerLocaleEu.d.ts +0 -1
  71. package/dist/x-datepicker/Locale/DsDatePickerLocaleFaIR.d.ts +0 -1
  72. package/dist/x-datepicker/Locale/DsDatePickerLocaleFiFI.d.ts +0 -1
  73. package/dist/x-datepicker/Locale/DsDatePickerLocaleFrFR.d.ts +0 -1
  74. package/dist/x-datepicker/Locale/DsDatePickerLocaleHeIL.d.ts +0 -1
  75. package/dist/x-datepicker/Locale/DsDatePickerLocaleHuHU.d.ts +0 -1
  76. package/dist/x-datepicker/Locale/DsDatePickerLocaleIsIS.d.ts +0 -1
  77. package/dist/x-datepicker/Locale/DsDatePickerLocaleItIT.d.ts +0 -1
  78. package/dist/x-datepicker/Locale/DsDatePickerLocaleJaJP.d.ts +0 -1
  79. package/dist/x-datepicker/Locale/DsDatePickerLocaleKoKR.d.ts +0 -1
  80. package/dist/x-datepicker/Locale/DsDatePickerLocaleKzKZ.d.ts +0 -1
  81. package/dist/x-datepicker/Locale/DsDatePickerLocaleMk.d.ts +0 -1
  82. package/dist/x-datepicker/Locale/DsDatePickerLocaleNbNO.d.ts +0 -1
  83. package/dist/x-datepicker/Locale/DsDatePickerLocaleNlNL.d.ts +0 -1
  84. package/dist/x-datepicker/Locale/DsDatePickerLocalePlPL.d.ts +0 -1
  85. package/dist/x-datepicker/Locale/DsDatePickerLocalePtBR.d.ts +0 -1
  86. package/dist/x-datepicker/Locale/DsDatePickerLocaleRoRO.d.ts +0 -1
  87. package/dist/x-datepicker/Locale/DsDatePickerLocaleRuRU.d.ts +0 -1
  88. package/dist/x-datepicker/Locale/DsDatePickerLocaleSkSK.d.ts +0 -1
  89. package/dist/x-datepicker/Locale/DsDatePickerLocaleSvSE.d.ts +0 -1
  90. package/dist/x-datepicker/Locale/DsDatePickerLocaleTrTR.d.ts +0 -1
  91. package/dist/x-datepicker/Locale/DsDatePickerLocaleUkUA.d.ts +0 -1
  92. package/dist/x-datepicker/Locale/DsDatePickerLocaleViVN.d.ts +0 -1
  93. package/dist/x-datepicker/Locale/DsDatePickerLocaleZhCN.d.ts +0 -1
  94. package/dist/x-datepicker/Locale/DsDatePickerLocaleZhHK.d.ts +0 -1
  95. package/dist/x-datepicker/componentOverrides.d.ts +0 -1
  96. package/package.json +4 -3
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AccordionProps } from '@mui/material';
3
2
  import { DsAccordionSummaryProps } from '../DsAccordionSummary';
4
3
  import { DsAccordionDetailsProps } from '../DsAccordionDetails';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AppBarProps } from '@mui/material';
3
2
  export interface DsAppBarProps extends AppBarProps {
4
3
  navigation?: boolean | React.ReactElement;
@@ -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',
@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
2
2
  import { DsBottomSheetProps } from './DsBottomSheet.Types';
3
3
  export declare class DsBottomSheet extends PureComponent<DsBottomSheetProps> {
4
4
  static defaultProps: DsBottomSheetProps;
5
- handleDrawerClose: (event: React.SyntheticEvent, reason: 'backdropClick' | 'escapeKeyDown') => void;
5
+ handleDrawerClose: (event: React.SyntheticEvent, reason: "backdropClick" | "escapeKeyDown") => void;
6
6
  handleCloseClick: (event: React.SyntheticEvent) => void;
7
7
  render(): import("react/jsx-runtime").JSX.Element;
8
8
  }
@@ -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)',
@@ -9,10 +9,10 @@ export declare class DsCarousel extends React.PureComponent<DsCarouselProps> {
9
9
  _isNavigationEnabled: () => boolean;
10
10
  _isPaginationEnabled: () => boolean;
11
11
  _isAutoplayEnabled: () => boolean;
12
- _getNavigationSettings: () => DsCarouselProps['navigation'] | undefined;
12
+ _getNavigationSettings: () => DsCarouselProps["navigation"] | undefined;
13
13
  _getPaginationSettings: () => DsCaroselPaginationSettings | undefined;
14
- _getAutoPlaySettings: () => DsCarouselProps['autoplay'] | undefined;
15
- _sanitizeModuleProps: (modules: SwiperProps['modules']) => SwiperProps['modules'];
14
+ _getAutoPlaySettings: () => DsCarouselProps["autoplay"] | undefined;
15
+ _sanitizeModuleProps: (modules: SwiperProps["modules"]) => SwiperProps["modules"];
16
16
  initialize: () => void;
17
17
  setRef: (swiperRef: unknown) => void;
18
18
  render(): import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { DsDialogProps } from './DsDialog.Types';
3
3
  export declare class DsDialog extends React.Component<DsDialogProps> {
4
4
  static defaultProps: DsDialogProps;
5
- handleDialogClose: (event: React.SyntheticEvent, reason: 'backdropClick' | 'escapeKeyDown') => void;
5
+ handleDialogClose: (event: React.SyntheticEvent, reason: "backdropClick" | "escapeKeyDown") => void;
6
6
  handleCloseClick: (event: React.SyntheticEvent) => void;
7
7
  render(): import("react/jsx-runtime").JSX.Element;
8
8
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DsButtonProps } from '../DsButton';
3
2
  import { DsInputProps } from '../DsInput';
4
3
  import { DsRemixIconProps } from '../DsRemixIcon';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DsBoxProps } from '../DsBox';
3
2
  export interface DsHeaderProps extends DsBoxProps {
4
3
  logoUrl?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DsFormHelperTextProps } from '../DsFormHelperText';
3
2
  export interface DsHelperTextProps extends DsFormHelperTextProps {
4
3
  helperText: React.ReactNode;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { DsBoxProps } from '../DsBox';
3
2
  import { DsRemixIconProps } from '../DsRemixIcon';
4
3
  import { DsSkeletonProps } from '../DsSkeleton';
5
- export interface DsImageSrcSetProps extends Omit<React.SourceHTMLAttributes<HTMLSourceElement>, 'srcSet'> {
4
+ export interface DsImageSrcSetProps extends Omit<React.SourceHTMLAttributes<HTMLSourceElement | HTMLImageElement>, 'srcSet' | 'ref'> {
6
5
  src: string;
7
6
  alt: string;
8
7
  }
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputLabelProps } from '@mui/material';
3
2
  export interface DsInputLabelProps extends InputLabelProps {
4
3
  label?: React.ReactNode;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DsBottomSheetProps } from '../DsBottomSheet';
3
2
  import { DsButtonProps } from '../DsButton';
4
3
  import { DsDialogProps } from '../DsDialog';
@@ -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',
@@ -5,13 +5,13 @@ export declare class DsProgressTracker extends PureComponent<DsProgressTrackerPr
5
5
  constructor(props: DsProgressTrackerProps);
6
6
  getMergedProps: () => {
7
7
  StepperProps: {
8
- sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
9
- orientation?: import("@mui/material").Orientation | undefined;
8
+ sx?: import("@mui/system").SxProps<import("@mui/material").Theme>;
9
+ orientation?: import("@mui/material").Orientation;
10
10
  };
11
- 'ds-variant': "header" | "default" | "steps";
11
+ 'ds-variant': "default" | "header" | "steps";
12
12
  steps: import("./DsProgressTracker.Types").DsProgressTrackerStepProps[];
13
13
  activeStep: number;
14
- sx?: import("../DsBox").DsBoxProps | undefined;
14
+ sx?: import("../DsBox").DsBoxProps;
15
15
  nextStepLabelPrefix: React.ReactNode;
16
16
  };
17
17
  handleToggleCollapse: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DsBoxProps } from '../DsBox';
3
2
  import { DsProgressStepperProps } from './DsProgressStepper.Types';
4
3
  export interface DsProgressTrackerStepProps {
@@ -4,5 +4,6 @@ export interface DsSearchbarProps<T, Multiple extends boolean | undefined, Disab
4
4
  name: string;
5
5
  onChange: (name: string, value: any) => void;
6
6
  startAdornmentProps?: DsInputAdornmentProps;
7
+ placeholder?: string;
7
8
  }
8
9
  export declare const DsSearchbarDefaultProps: DsSearchbarProps<any, boolean, boolean, boolean>;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from '@mui/material';
3
2
  import { DsFormControlProps } from '../DsFormControl';
4
3
  import { DsInputLabelProps } from '../DsInputLabel';
@@ -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',
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DsInputBaseProps } from '../DsInputBase';
3
2
  import { DsFormControlProps } from '../DsFormControl';
4
3
  import { DsInputLabelProps } from '../DsInputLabel';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DsTextFieldProps } from '../DsTextField';
3
2
  export interface DsTextFieldPasswordProps extends Omit<DsTextFieldProps, 'endAdornment'> {
4
3
  isVisible: boolean;
@@ -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
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AlertProps } from '@mui/material';
3
2
  export interface DsToastProps extends AlertProps {
4
3
  forwardedRef?: React.ForwardedRef<HTMLDivElement>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TooltipProps } from '@mui/material';
3
2
  export interface DsTooltipProps extends Omit<TooltipProps, 'title'> {
4
3
  heading?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Breakpoint } from '@mui/material/styles';
3
2
  import { Subtract } from 'utility-types';
4
3
  type BreakpointsMap = {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  declare const componentOverrides: {
3
2
  MuiDatePicker: {
4
3
  defaultProps: import("..").DsDatePickerProps<Date>;
@@ -1293,7 +1292,6 @@ declare const componentOverrides: {
1293
1292
  };
1294
1293
  };
1295
1294
  endAdornment: {
1296
- top: string;
1297
1295
  right: string;
1298
1296
  display: string;
1299
1297
  alignItems: string;
@@ -54,8 +54,8 @@ export default function getDarkModeColorScheme(colorPalette) {
54
54
  supportTypicalNeutral: snackBlueNeutralDark,
55
55
  stateSelectedPrimaryHover: hexToRgbA(secondary40, 0.2),
56
56
  stateSelectedPrimaryPressed: secondary40,
57
- stateSelectedSecondaryHover: '#081919',
58
- stateSelectedSecondaryPressed: '#154B3F',
57
+ stateSelectedSecondaryHover: '#081919', // TODO
58
+ stateSelectedSecondaryPressed: '#154B3F', // TODO
59
59
  stateSelectedVisitedTextLink: linkPurpleDark,
60
60
  stateUnselectedDefault: secondaryGrey60,
61
61
  stateUnselectedHover: hexToRgbA(secondaryGrey50, 0.2),
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DsTypographyVariants } from '../Types';
3
2
  export default function getTypography(fontFamilyName?: string): {
4
3
  dsTypo: {
@@ -1,7 +1,7 @@
1
1
  import { CssVarsTheme, PaletteColorOptions, Theme } from '@mui/material/styles';
2
2
  import dsSpacing, { SPACE_COEFFICIENT } from './spacing';
3
3
  import { DsPalette } from '../Types';
4
- export declare function getTheme(palette?: DsPalette, fontFamilyName?: string, themeArgs?: object[]): Omit<Theme, 'palette'> & CssVarsTheme;
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' {
7
7
  interface ColorSchemeOverrides {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type DsFontSizeTokens = 'scorched' | 'torrid' | 'blazzing' | 'hot' | 'tropical' | 'warm' | 'mild' | 'cool' | 'cold' | 'bitterCold' | 'frigid' | 'frostbite' | 'blizzard' | 'iceAge';
3
2
  export type DsFontSizeClassTokens = 'scorched' | 'torrid' | 'blazzing' | 'hot' | 'tropical' | 'warm' | 'mild' | 'cool' | 'cold' | 'bitterCold' | 'frigid' | 'frostbite' | 'blizzard' | 'iceAge';
4
3
  export type DsTypographyTokens = 'displayBoldLarge' | 'displayBoldMedium' | 'displayBoldSmall' | 'displayBoldItalicLarge' | 'displayBoldItalicMedium' | 'displayBoldItalicSmall' | 'headingBoldExtraLarge' | 'headingBoldLarge' | 'headingBoldMedium' | 'headingBoldSmall' | 'headingBoldExtraSmall' | 'subheadingSemiboldLarge' | 'subheadingSemiboldDefault' | 'headingBoldItalicExtraLarge' | 'headingBoldItalicLarge' | 'headingBoldItalicMedium' | 'headingBoldItalicSmall' | 'headingBoldItalicExtraSmall' | 'bodyRegularLarge' | 'bodyRegularMedium' | 'bodyRegularSmall' | 'bodyBoldLarge' | 'bodyBoldMedium' | 'bodyBoldSmall' | 'supportRegularInfo' | 'supportRegularFootnote' | 'supportBoldTextButton' | 'supportRegularMetadata';
package/dist/index.d.ts CHANGED
@@ -9,3 +9,4 @@ export * from './styles';
9
9
  export * from './transitions';
10
10
  export * from './utils';
11
11
  export * from './x-datepicker';
12
+ export * from './x-charts';
package/dist/index.js CHANGED
@@ -9,3 +9,4 @@ export * from './styles';
9
9
  export * from './transitions';
10
10
  export * from './utils';
11
11
  export * from './x-datepicker';
12
+ export * from './x-charts';
@@ -0,0 +1,47 @@
1
+ export { AnimatedArea as DsAnimatedArea } from '@mui/x-charts';
2
+ export { AnimatedLine as DsAnimatedLine } from '@mui/x-charts';
3
+ export { AreaElement as DsAreaElement } from '@mui/x-charts';
4
+ export { AreaPlot as DsAreaPlot } from '@mui/x-charts';
5
+ export { BarChart as DsBarChart } from '@mui/x-charts';
6
+ export { BarElement as DsBarElement } from '@mui/x-charts';
7
+ export { BarLabel as DsBarLabel } from '@mui/x-charts';
8
+ export { BarPlot as DsBarPlot } from '@mui/x-charts';
9
+ export { ChartContainer as DsChartContainer } from '@mui/x-charts';
10
+ export { ChartsAxis as DsChartsAxis } from '@mui/x-charts';
11
+ export { ChartsAxisHighlight as DsChartsAxisHighlight } from '@mui/x-charts';
12
+ export { ChartsClipPath as DsChartsClipPath } from '@mui/x-charts';
13
+ export { ChartsGrid as DsChartsGrid } from '@mui/x-charts';
14
+ export { ChartsLegend as DsChartsLegend } from '@mui/x-charts';
15
+ export { ChartsOnAxisClickHandler as DsChartsOnAxisClickHandler } from '@mui/x-charts';
16
+ export { ChartsReferenceLine as DsChartsReferenceLine } from '@mui/x-charts';
17
+ export { ChartsSurface as DsChartsSurface } from '@mui/x-charts';
18
+ export { ChartsText as DsChartsText } from '@mui/x-charts';
19
+ export { ChartsTooltip as DsChartsTooltip } from '@mui/x-charts';
20
+ export { ChartsVoronoiHandler as DsChartsVoronoiHandler } from '@mui/x-charts';
21
+ export { ChartsXAxis as DsChartsXAxis } from '@mui/x-charts';
22
+ export { ChartsYAxis as DsChartsYAxis } from '@mui/x-charts';
23
+ export { ContinuousColorLegend as DsContinuousColorLegend } from '@mui/x-charts';
24
+ export { DefaultChartsAxisTooltipContent as DsDefaultChartsAxisTooltipContent } from '@mui/x-charts';
25
+ export { DefaultChartsItemTooltipContent as DsDefaultChartsItemTooltipContent } from '@mui/x-charts';
26
+ export { DefaultChartsLegend as DsDefaultChartsLegend } from '@mui/x-charts';
27
+ export { Gauge as DsGauge } from '@mui/x-charts';
28
+ export { GaugeContainer as DsGaugeContainer } from '@mui/x-charts';
29
+ export { LineChart as DsLineChart } from '@mui/x-charts';
30
+ export { LineElement as DsLineElement } from '@mui/x-charts';
31
+ export { LineHighlightElement as DsLineHighlightElement } from '@mui/x-charts';
32
+ export { LineHighlightPlot as DsLineHighlightPlot } from '@mui/x-charts';
33
+ export { LinePlot as DsLinePlot } from '@mui/x-charts';
34
+ export { MarkElement as DsMarkElement } from '@mui/x-charts';
35
+ export { MarkPlot as DsMarkPlot } from '@mui/x-charts';
36
+ export { PieArc as DsPieArc } from '@mui/x-charts';
37
+ export { PieArcLabel as DsPieArcLabel } from '@mui/x-charts';
38
+ export { PieArcLabelPlot as DsPieArcLabelPlot } from '@mui/x-charts';
39
+ export { PieArcPlot as DsPieArcPlot } from '@mui/x-charts';
40
+ export { PiecewiseColorLegend as DsPiecewiseColorLegend } from '@mui/x-charts';
41
+ export { PieChart as DsPieChart } from '@mui/x-charts';
42
+ export { PiePlot as DsPiePlot } from '@mui/x-charts';
43
+ export { ResponsiveChartContainer as DsResponsiveChartContainer } from '@mui/x-charts';
44
+ export { Scatter as DsScatter } from '@mui/x-charts';
45
+ export { ScatterChart as DsScatterChart } from '@mui/x-charts';
46
+ export { ScatterPlot as DsScatterPlot } from '@mui/x-charts';
47
+ export { SparkLineChart as DsSparkLineChart } from '@mui/x-charts';
@@ -0,0 +1,47 @@
1
+ export { AnimatedArea as DsAnimatedArea } from '@mui/x-charts';
2
+ export { AnimatedLine as DsAnimatedLine } from '@mui/x-charts';
3
+ export { AreaElement as DsAreaElement } from '@mui/x-charts';
4
+ export { AreaPlot as DsAreaPlot } from '@mui/x-charts';
5
+ export { BarChart as DsBarChart } from '@mui/x-charts';
6
+ export { BarElement as DsBarElement } from '@mui/x-charts';
7
+ export { BarLabel as DsBarLabel } from '@mui/x-charts';
8
+ export { BarPlot as DsBarPlot } from '@mui/x-charts';
9
+ export { ChartContainer as DsChartContainer } from '@mui/x-charts';
10
+ export { ChartsAxis as DsChartsAxis } from '@mui/x-charts';
11
+ export { ChartsAxisHighlight as DsChartsAxisHighlight } from '@mui/x-charts';
12
+ export { ChartsClipPath as DsChartsClipPath } from '@mui/x-charts';
13
+ export { ChartsGrid as DsChartsGrid } from '@mui/x-charts';
14
+ export { ChartsLegend as DsChartsLegend } from '@mui/x-charts';
15
+ export { ChartsOnAxisClickHandler as DsChartsOnAxisClickHandler } from '@mui/x-charts';
16
+ export { ChartsReferenceLine as DsChartsReferenceLine } from '@mui/x-charts';
17
+ export { ChartsSurface as DsChartsSurface } from '@mui/x-charts';
18
+ export { ChartsText as DsChartsText } from '@mui/x-charts';
19
+ export { ChartsTooltip as DsChartsTooltip } from '@mui/x-charts';
20
+ export { ChartsVoronoiHandler as DsChartsVoronoiHandler } from '@mui/x-charts';
21
+ export { ChartsXAxis as DsChartsXAxis } from '@mui/x-charts';
22
+ export { ChartsYAxis as DsChartsYAxis } from '@mui/x-charts';
23
+ export { ContinuousColorLegend as DsContinuousColorLegend } from '@mui/x-charts';
24
+ export { DefaultChartsAxisTooltipContent as DsDefaultChartsAxisTooltipContent } from '@mui/x-charts';
25
+ export { DefaultChartsItemTooltipContent as DsDefaultChartsItemTooltipContent } from '@mui/x-charts';
26
+ export { DefaultChartsLegend as DsDefaultChartsLegend } from '@mui/x-charts';
27
+ export { Gauge as DsGauge } from '@mui/x-charts';
28
+ export { GaugeContainer as DsGaugeContainer } from '@mui/x-charts';
29
+ export { LineChart as DsLineChart } from '@mui/x-charts';
30
+ export { LineElement as DsLineElement } from '@mui/x-charts';
31
+ export { LineHighlightElement as DsLineHighlightElement } from '@mui/x-charts';
32
+ export { LineHighlightPlot as DsLineHighlightPlot } from '@mui/x-charts';
33
+ export { LinePlot as DsLinePlot } from '@mui/x-charts';
34
+ export { MarkElement as DsMarkElement } from '@mui/x-charts';
35
+ export { MarkPlot as DsMarkPlot } from '@mui/x-charts';
36
+ export { PieArc as DsPieArc } from '@mui/x-charts';
37
+ export { PieArcLabel as DsPieArcLabel } from '@mui/x-charts';
38
+ export { PieArcLabelPlot as DsPieArcLabelPlot } from '@mui/x-charts';
39
+ export { PieArcPlot as DsPieArcPlot } from '@mui/x-charts';
40
+ export { PiecewiseColorLegend as DsPiecewiseColorLegend } from '@mui/x-charts';
41
+ export { PieChart as DsPieChart } from '@mui/x-charts';
42
+ export { PiePlot as DsPiePlot } from '@mui/x-charts';
43
+ export { ResponsiveChartContainer as DsResponsiveChartContainer } from '@mui/x-charts';
44
+ export { Scatter as DsScatter } from '@mui/x-charts';
45
+ export { ScatterChart as DsScatterChart } from '@mui/x-charts';
46
+ export { ScatterPlot as DsScatterPlot } from '@mui/x-charts';
47
+ export { SparkLineChart as DsSparkLineChart } from '@mui/x-charts';
@@ -0,0 +1,4 @@
1
+ import { SupportedColorScheme } from '@mui/material';
2
+ import { TDsDataVisColors } from '../Types/DsDataVisColors.Types';
3
+ export declare const DS_DATA_VIS_CAT_COLORS: TDsDataVisColors;
4
+ export declare const getDataVisCatColors: (mode: SupportedColorScheme) => TDsDataVisColors[SupportedColorScheme];
@@ -0,0 +1,30 @@
1
+ export const DS_DATA_VIS_CAT_COLORS = {
2
+ light: [
3
+ '#C578D3',
4
+ '#D84646',
5
+ '#5273CC',
6
+ '#D87D23',
7
+ '#29A597',
8
+ '#2750C2',
9
+ '#A03333'
10
+ ],
11
+ dark: [
12
+ '#C578D3',
13
+ '#D84646',
14
+ '#5273CC',
15
+ '#D87D23',
16
+ '#29A597',
17
+ '#2750C2',
18
+ '#A03333'
19
+ ],
20
+ highContrast: [
21
+ '#C578D3',
22
+ '#D84646',
23
+ '#5273CC',
24
+ '#D87D23',
25
+ '#29A597',
26
+ '#2750C2',
27
+ '#A03333'
28
+ ]
29
+ };
30
+ export const getDataVisCatColors = (mode) => DS_DATA_VIS_CAT_COLORS[mode] || [];
@@ -0,0 +1,10 @@
1
+ import { SupportedColorScheme } from '@mui/material';
2
+ import { TDsDataVisColors } from '../Types/DsDataVisColors.Types';
3
+ export declare const DS_DATA_VIS_SEQ1_COLORS: TDsDataVisColors;
4
+ export declare const DS_DATA_VIS_SEQ2_COLORS: TDsDataVisColors;
5
+ export declare const DS_DATA_VIS_SEQ3_COLORS: TDsDataVisColors;
6
+ export declare const DS_DATA_VIS_SEQ4_COLORS: TDsDataVisColors;
7
+ export declare const getDataVisSeq1Colors: (mode: SupportedColorScheme) => TDsDataVisColors[SupportedColorScheme];
8
+ export declare const getDataVisSeq2Colors: (mode: SupportedColorScheme) => TDsDataVisColors[SupportedColorScheme];
9
+ export declare const getDataVisSeq3Colors: (mode: SupportedColorScheme) => TDsDataVisColors[SupportedColorScheme];
10
+ export declare const getDataVisSeq4Colors: (mode: SupportedColorScheme) => TDsDataVisColors[SupportedColorScheme];
@@ -0,0 +1,120 @@
1
+ export const DS_DATA_VIS_SEQ1_COLORS = {
2
+ light: [
3
+ '#692675',
4
+ '#9636A7',
5
+ '#B757C8',
6
+ '#C578D3',
7
+ '#CD8AD9',
8
+ '#D9A5E2',
9
+ '#E4C0EB'
10
+ ],
11
+ dark: [
12
+ '#692675',
13
+ '#9636A7',
14
+ '#B757C8',
15
+ '#C578D3',
16
+ '#CD8AD9',
17
+ '#D9A5E2',
18
+ '#E4C0EB'
19
+ ],
20
+ highContrast: [
21
+ '#692675',
22
+ '#9636A7',
23
+ '#B757C8',
24
+ '#C578D3',
25
+ '#CD8AD9',
26
+ '#D9A5E2',
27
+ '#E4C0EB'
28
+ ]
29
+ };
30
+ export const DS_DATA_VIS_SEQ2_COLORS = {
31
+ light: [
32
+ '#6E1717',
33
+ '#9D2121',
34
+ '#CC2B2B',
35
+ '#D84646',
36
+ '#DD5F5F',
37
+ '#E58484',
38
+ '#EDA9A9'
39
+ ],
40
+ dark: [
41
+ '#6E1717',
42
+ '#9D2121',
43
+ '#CC2B2B',
44
+ '#D84646',
45
+ '#DD5F5F',
46
+ '#E58484',
47
+ '#EDA9A9'
48
+ ],
49
+ highContrast: [
50
+ '#6E1717',
51
+ '#9D2121',
52
+ '#CC2B2B',
53
+ '#D84646',
54
+ '#DD5F5F',
55
+ '#E58484',
56
+ '#EDA9A9'
57
+ ]
58
+ };
59
+ export const DS_DATA_VIS_SEQ3_COLORS = {
60
+ light: [
61
+ '#134C45',
62
+ '#1B6D63',
63
+ '#238D81',
64
+ '#29A597',
65
+ '#31C4B3',
66
+ '#5CD6C8',
67
+ '#8DE2D8'
68
+ ],
69
+ dark: [
70
+ '#134C45',
71
+ '#1B6D63',
72
+ '#238D81',
73
+ '#29A597',
74
+ '#31C4B3',
75
+ '#5CD6C8',
76
+ '#8DE2D8'
77
+ ],
78
+ highContrast: [
79
+ '#134C45',
80
+ '#1B6D63',
81
+ '#238D81',
82
+ '#29A597',
83
+ '#31C4B3',
84
+ '#5CD6C8',
85
+ '#8DE2D8'
86
+ ]
87
+ };
88
+ export const DS_DATA_VIS_SEQ4_COLORS = {
89
+ light: [
90
+ '#12265B',
91
+ '#1A3683',
92
+ '#2246AA',
93
+ '#2750C2',
94
+ '#3862D8',
95
+ '#6686E1',
96
+ '#94ABEA'
97
+ ],
98
+ dark: [
99
+ '#12265B',
100
+ '#1A3683',
101
+ '#2246AA',
102
+ '#2750C2',
103
+ '#3862D8',
104
+ '#6686E1',
105
+ '#94ABEA'
106
+ ],
107
+ highContrast: [
108
+ '#12265B',
109
+ '#1A3683',
110
+ '#2246AA',
111
+ '#2750C2',
112
+ '#3862D8',
113
+ '#6686E1',
114
+ '#94ABEA'
115
+ ]
116
+ };
117
+ export const getDataVisSeq1Colors = (mode) => DS_DATA_VIS_SEQ1_COLORS[mode] || [];
118
+ export const getDataVisSeq2Colors = (mode) => DS_DATA_VIS_SEQ2_COLORS[mode] || [];
119
+ export const getDataVisSeq3Colors = (mode) => DS_DATA_VIS_SEQ3_COLORS[mode] || [];
120
+ export const getDataVisSeq4Colors = (mode) => DS_DATA_VIS_SEQ4_COLORS[mode] || [];
@@ -0,0 +1,14 @@
1
+ import { SupportedColorScheme } from '@mui/material';
2
+ import { TDsDataVisColors } from '../Types/DsDataVisColors.Types';
3
+ export declare const DS_DATA_VIS_POSITIVE_COLORS: TDsDataVisColors;
4
+ export declare const DS_DATA_VIS_WARNING_COLORS: TDsDataVisColors;
5
+ export declare const DS_DATA_VIS_ERROR_COLORS: TDsDataVisColors;
6
+ export declare const DS_DATA_VIS_POSITIVE_NEUTRAL_COLORS: TDsDataVisColors;
7
+ export declare const DS_DATA_VIS_WARNING_NEUTRAL_COLORS: TDsDataVisColors;
8
+ export declare const DS_DATA_VIS_ERROR_NEUTRAL_COLORS: TDsDataVisColors;
9
+ export declare const getDataVisTrendPositiveColors: (mode: SupportedColorScheme) => TDsDataVisColors[SupportedColorScheme];
10
+ export declare const getDataVisTrendWarningColors: (mode: SupportedColorScheme) => TDsDataVisColors[SupportedColorScheme];
11
+ export declare const getDataVisTrendErrorColors: (mode: SupportedColorScheme) => TDsDataVisColors[SupportedColorScheme];
12
+ export declare const getDataVisTrendPositiveNeutralColors: (mode: SupportedColorScheme) => TDsDataVisColors[SupportedColorScheme];
13
+ export declare const getDataVisTrendWarningNeutralColors: (mode: SupportedColorScheme) => TDsDataVisColors[SupportedColorScheme];
14
+ export declare const getDataVisTrendErrorNeutralColors: (mode: SupportedColorScheme) => TDsDataVisColors[SupportedColorScheme];
@@ -0,0 +1,36 @@
1
+ export const DS_DATA_VIS_POSITIVE_COLORS = {
2
+ light: ['#278829'],
3
+ dark: ['#62D264'],
4
+ highContrast: ['#62D264']
5
+ };
6
+ export const DS_DATA_VIS_WARNING_COLORS = {
7
+ light: ['#D84008'],
8
+ dark: ['#F87647'],
9
+ highContrast: ['#F87647']
10
+ };
11
+ export const DS_DATA_VIS_ERROR_COLORS = {
12
+ light: ['#EB0000'],
13
+ dark: ['#FF6C6C'],
14
+ highContrast: ['#FF6C6C']
15
+ };
16
+ export const DS_DATA_VIS_POSITIVE_NEUTRAL_COLORS = {
17
+ light: ['#EFF9EB'],
18
+ dark: ['#0C1907'],
19
+ highContrast: ['#0C1907']
20
+ };
21
+ export const DS_DATA_VIS_WARNING_NEUTRAL_COLORS = {
22
+ light: ['#F9F1EB'],
23
+ dark: ['#322A0F'],
24
+ highContrast: ['#322A0F']
25
+ };
26
+ export const DS_DATA_VIS_ERROR_NEUTRAL_COLORS = {
27
+ light: ['#F9EBEF'],
28
+ dark: ['#320F19'],
29
+ highContrast: ['#320F19']
30
+ };
31
+ export const getDataVisTrendPositiveColors = (mode) => DS_DATA_VIS_POSITIVE_COLORS[mode] || [];
32
+ export const getDataVisTrendWarningColors = (mode) => DS_DATA_VIS_WARNING_COLORS[mode] || [];
33
+ export const getDataVisTrendErrorColors = (mode) => DS_DATA_VIS_ERROR_COLORS[mode] || [];
34
+ export const getDataVisTrendPositiveNeutralColors = (mode) => DS_DATA_VIS_POSITIVE_NEUTRAL_COLORS[mode] || [];
35
+ export const getDataVisTrendWarningNeutralColors = (mode) => DS_DATA_VIS_WARNING_NEUTRAL_COLORS[mode] || [];
36
+ export const getDataVisTrendErrorNeutralColors = (mode) => DS_DATA_VIS_ERROR_NEUTRAL_COLORS[mode] || [];
@@ -0,0 +1,3 @@
1
+ export * from './DS_DATA_VIS_CAT_COLORS';
2
+ export * from './DS_DATA_VIS_SEQ_COLORS';
3
+ export * from './DS_DATA_VIS_TREND_COLORS';
@@ -0,0 +1,3 @@
1
+ export * from './DS_DATA_VIS_CAT_COLORS';
2
+ export * from './DS_DATA_VIS_SEQ_COLORS';
3
+ export * from './DS_DATA_VIS_TREND_COLORS';
@@ -0,0 +1,2 @@
1
+ import { SupportedColorScheme } from '@mui/material';
2
+ export type TDsDataVisColors = Record<SupportedColorScheme, string[]>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './DsDataVisColors.Types';
@@ -0,0 +1 @@
1
+ export * from './DsDataVisColors.Types';
@@ -0,0 +1,3 @@
1
+ export * from './Components';
2
+ export * from './Constants';
3
+ export * from './Types';
@@ -0,0 +1,3 @@
1
+ export * from './Components';
2
+ export * from './Constants';
3
+ export * from './Types';
@@ -1,11 +1,12 @@
1
- import React from 'react';
2
1
  import { DateFieldProps } from '@mui/x-date-pickers';
2
+ import { FunctionComponent } from 'react';
3
3
  import { DsTextFieldProps } from '../../../Components';
4
- export interface DatePickerTextFieldProps extends Omit<DsTextFieldProps, 'margin' | 'onInvalid' | 'onKeyDown' | 'onBlur' | 'onKeyUp' | 'ref'> {
4
+ export interface IDatePickerTextFieldProps extends Omit<DsTextFieldProps, 'margin' | 'onInvalid' | 'onKeyDown' | 'onBlur' | 'onKeyUp' | 'ref'> {
5
5
  setOpen?: (open: boolean) => void;
6
6
  InputProps?: DateFieldProps<Date>['InputProps'];
7
7
  ref?: DateFieldProps<Date>['ref'];
8
8
  focused?: boolean;
9
9
  ownerState?: any;
10
10
  }
11
- export declare const DatePickerTextField: React.ForwardRefExoticComponent<Omit<DatePickerTextFieldProps, "ref"> & React.RefAttributes<any>>;
11
+ declare const DatePickerTextField: FunctionComponent<IDatePickerTextFieldProps>;
12
+ export default DatePickerTextField;
@@ -1,13 +1,13 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import React from 'react';
3
- import { useThemeProps } from '@mui/material';
2
+ import { useThemeProps } from '@mui/system';
4
3
  import { DsTextField } from '../../../Components';
5
- export const DatePickerTextField = React.forwardRef((inProps, inputRef) => {
6
- const props = useThemeProps({
7
- props: inProps,
4
+ const DatePickerTextField = (props) => {
5
+ const mergedProps = useThemeProps({
6
+ props: props,
8
7
  name: 'MuiPickersInput'
9
8
  });
10
- const { setOpen, ref, InputProps, focused, ownerState, ...other } = props;
9
+ const { setOpen, ref, InputProps, focused, ownerState, ...other } = mergedProps;
11
10
  const { readOnly } = InputProps || {};
12
11
  return _jsx(DsTextField, { readOnly: readOnly, ...other });
13
- });
12
+ };
13
+ export default DatePickerTextField;
@@ -6,10 +6,10 @@ import { DefaultActionBar } from './DefaultActionBar';
6
6
  import { DefaultToolbar } from './DefaultToolbar';
7
7
  import { DsDatePickerDefaultProps } from './DsDatePicker.Types';
8
8
  import { DateCalenderHeader } from './DateCalenderHeader';
9
- import { DatePickerTextField } from './DatePickerTextField';
10
9
  import { getDateFromValue, getErrorFromErrorMap, getValueTypeFromValue } from './utils';
11
10
  import { DsInputAdornment, DsIconButton, DsRemixIcon } from '../../../Components';
12
11
  import { useThemeProps } from '@mui/system';
12
+ import DatePickerTextField from './DatePickerTextField';
13
13
  export const DsDatePicker = inProps => {
14
14
  const props = useThemeProps({
15
15
  props: inProps,
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerOverrides: {
3
2
  MuiDatePicker: {
4
3
  defaultProps: import("./DsDatePicker.Types").DsDatePickerProps<Date>;
@@ -1,5 +1,5 @@
1
1
  import { DsDatePickerProps, TValue, TValueType } from './DsDatePicker.Types';
2
2
  import { DateValidationError } from '@mui/x-date-pickers';
3
- export declare const getDateFromValue: (value: TValue, valueType: TValueType, format?: DsDatePickerProps<Date>['format']) => Date | undefined | null;
4
- export declare const getValueTypeFromValue: (value: Date | null, valueType: TValueType, format?: DsDatePickerProps<Date>['format']) => TValue;
5
- export declare const getErrorFromErrorMap: (errorMap: DsDatePickerProps<Date>['errorMap'], error: DateValidationError, value: TValue | null) => string;
3
+ export declare const getDateFromValue: (value: TValue, valueType: TValueType, format?: DsDatePickerProps<Date>["format"]) => Date | undefined | null;
4
+ export declare const getValueTypeFromValue: (value: Date | null, valueType: TValueType, format?: DsDatePickerProps<Date>["format"]) => TValue;
5
+ export declare const getErrorFromErrorMap: (errorMap: DsDatePickerProps<Date>["errorMap"], error: DateValidationError, value: TValue | null) => string;
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleBeBY: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleCaES: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleCsCZ: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleDaDK: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleDeDE: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleElGR: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleEnUS: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleEsES: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleEu: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleFaIR: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleFiFI: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleFrFR: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleHeIL: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleHuHU: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleIsIS: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleItIT: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleJaJP: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleKoKR: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleKzKZ: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleMk: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleNbNO: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleNlNL: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocalePlPL: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocalePtBR: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleRoRO: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleRuRU: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleSkSK: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleSvSE: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleTrTR: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleUkUA: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleViVN: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleZhCN: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  export declare const DsDatePickerLocaleZhHK: {
3
2
  components: {
4
3
  MuiLocalizationProvider: {
@@ -1,4 +1,3 @@
1
- /// <reference types="date-fns" />
2
1
  declare const XDatePickerComponentOverrides: {
3
2
  MuiDatePicker: {
4
3
  defaultProps: import("./Components").DsDatePickerProps<Date>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@am92/react-design-system",
3
- "version": "2.5.10",
3
+ "version": "2.7.0",
4
4
  "description": "ReactJS Design System using Material UI",
5
5
  "sideEffects": false,
6
6
  "types": "dist/index.d.ts",
@@ -17,8 +17,9 @@
17
17
  "@emotion/styled": "~11.11.0",
18
18
  "@mui/base": "~5.0.0-beta.26",
19
19
  "@mui/lab": "5.0.0-alpha.155",
20
- "@mui/material": "~5.14.20",
21
- "@mui/system": "~5.14.20",
20
+ "@mui/material": "~5.16.7",
21
+ "@mui/system": "~5.16.7",
22
+ "@mui/x-charts": "7.15.0",
22
23
  "@mui/x-date-pickers": "~6.19.5",
23
24
  "date-fns": "~2.30.0",
24
25
  "lottie-react": "~2.4.0",