@am92/react-design-system 2.5.10 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Components/DsAccordion/DsAccordion.Types.d.ts +0 -1
- package/dist/Components/DsAppBar/DsAppBar.Types.d.ts +0 -1
- package/dist/Components/DsBottomSheet/DsBottomSheet.Component.d.ts +1 -1
- package/dist/Components/DsCarousel/DsCarousel.Component/index.d.ts +3 -3
- package/dist/Components/DsDialog/DsDialog.Component.d.ts +1 -1
- package/dist/Components/DsFileUploader/DsFileUploader.Types.d.ts +0 -1
- package/dist/Components/DsHeader/DsHeader.Types.d.ts +0 -1
- package/dist/Components/DsHelperText/DsHelperText.Types.d.ts +0 -1
- package/dist/Components/DsImage/DsImage.Types.d.ts +1 -2
- package/dist/Components/DsInputLabel/DsInputLabel.Types.d.ts +0 -1
- package/dist/Components/DsPopup/DsPopup.Types.d.ts +0 -1
- package/dist/Components/DsProgressTracker/DsProgressTracker.Component.d.ts +4 -4
- package/dist/Components/DsProgressTracker/DsProgressTracker.Types.d.ts +0 -1
- package/dist/Components/DsSearchbar/DsSearchbar.Types.d.ts +1 -0
- package/dist/Components/DsSelect/DsSelect.Types.d.ts +0 -1
- package/dist/Components/DsTextField/DsTextField.Types.d.ts +0 -1
- package/dist/Components/DsTextFieldPassword/DsTextFieldPassword.Types.d.ts +0 -1
- package/dist/Components/DsToast/DsToast.Types.d.ts +0 -1
- package/dist/Components/DsTooltip/DsTooltip.Types.d.ts +0 -1
- package/dist/Hocs/withBreakpoints.d.ts +0 -1
- package/dist/Theme/componentOverrides.d.ts +0 -1
- package/dist/Theme/getColorScheme/dark.js +2 -2
- package/dist/Theme/getTypography.d.ts +0 -1
- package/dist/Theme/index.d.ts +1 -1
- package/dist/Types/DsTypography.d.ts +0 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/x-charts/Components/index.d.ts +47 -0
- package/dist/x-charts/Components/index.js +47 -0
- package/dist/x-charts/Constants/DS_DATA_VIS_CAT_COLORS.d.ts +4 -0
- package/dist/x-charts/Constants/DS_DATA_VIS_CAT_COLORS.js +30 -0
- package/dist/x-charts/Constants/DS_DATA_VIS_SEQ_COLORS.d.ts +10 -0
- package/dist/x-charts/Constants/DS_DATA_VIS_SEQ_COLORS.js +120 -0
- package/dist/x-charts/Constants/DS_DATA_VIS_TREND_COLORS.d.ts +14 -0
- package/dist/x-charts/Constants/DS_DATA_VIS_TREND_COLORS.js +36 -0
- package/dist/x-charts/Constants/index.d.ts +3 -0
- package/dist/x-charts/Constants/index.js +3 -0
- package/dist/x-charts/Types/DsDataVisColors.Types.d.ts +2 -0
- package/dist/x-charts/Types/DsDataVisColors.Types.js +1 -0
- package/dist/x-charts/Types/index.d.ts +1 -0
- package/dist/x-charts/Types/index.js +1 -0
- package/dist/x-charts/index.d.ts +3 -0
- package/dist/x-charts/index.js +3 -0
- package/dist/x-datepicker/Components/DsDatePicker/DatePickerTextField.d.ts +4 -3
- package/dist/x-datepicker/Components/DsDatePicker/DatePickerTextField.js +7 -7
- package/dist/x-datepicker/Components/DsDatePicker/DsDatePicker.Component.js +1 -1
- package/dist/x-datepicker/Components/DsDatePicker/DsDatePicker.Overrides.d.ts +0 -1
- package/dist/x-datepicker/Components/DsDatePicker/utils.d.ts +3 -3
- package/dist/x-datepicker/Locale/DsDatePickerLocaleBeBY.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleCaES.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleCsCZ.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleDaDK.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleDeDE.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleElGR.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleEnUS.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleEsES.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleEu.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleFaIR.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleFiFI.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleFrFR.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleHeIL.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleHuHU.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleIsIS.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleItIT.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleJaJP.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleKoKR.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleKzKZ.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleMk.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleNbNO.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleNlNL.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocalePlPL.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocalePtBR.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleRoRO.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleRuRU.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleSkSK.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleSvSE.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleTrTR.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleUkUA.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleViVN.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleZhCN.d.ts +0 -1
- package/dist/x-datepicker/Locale/DsDatePickerLocaleZhHK.d.ts +0 -1
- package/dist/x-datepicker/componentOverrides.d.ts +0 -1
- package/package.json +4 -3
|
@@ -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:
|
|
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
|
}
|
|
@@ -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[
|
|
12
|
+
_getNavigationSettings: () => DsCarouselProps["navigation"] | undefined;
|
|
13
13
|
_getPaginationSettings: () => DsCaroselPaginationSettings | undefined;
|
|
14
|
-
_getAutoPlaySettings: () => DsCarouselProps[
|
|
15
|
-
_sanitizeModuleProps: (modules: SwiperProps[
|
|
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:
|
|
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,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
|
}
|
|
@@ -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
|
|
9
|
-
orientation?: import("@mui/material").Orientation
|
|
8
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme>;
|
|
9
|
+
orientation?: import("@mui/material").Orientation;
|
|
10
10
|
};
|
|
11
|
-
'ds-variant': "
|
|
11
|
+
'ds-variant': "default" | "header" | "steps";
|
|
12
12
|
steps: import("./DsProgressTracker.Types").DsProgressTrackerStepProps[];
|
|
13
13
|
activeStep: number;
|
|
14
|
-
sx?: import("../DsBox").DsBoxProps
|
|
14
|
+
sx?: import("../DsBox").DsBoxProps;
|
|
15
15
|
nextStepLabelPrefix: React.ReactNode;
|
|
16
16
|
};
|
|
17
17
|
handleToggleCollapse: () => void;
|
|
@@ -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>;
|
|
@@ -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),
|
package/dist/Theme/index.d.ts
CHANGED
|
@@ -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
package/dist/index.js
CHANGED
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DsDataVisColors.Types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DsDataVisColors.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
|
|
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
|
-
|
|
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
|
|
3
|
-
import { useThemeProps } from '@mui/material';
|
|
2
|
+
import { useThemeProps } from '@mui/system';
|
|
4
3
|
import { DsTextField } from '../../../Components';
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
props:
|
|
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 } =
|
|
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,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>[
|
|
4
|
-
export declare const getValueTypeFromValue: (value: Date | null, valueType: TValueType, format?: DsDatePickerProps<Date>[
|
|
5
|
-
export declare const getErrorFromErrorMap: (errorMap: DsDatePickerProps<Date>[
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@am92/react-design-system",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.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.
|
|
21
|
-
"@mui/system": "~5.
|
|
20
|
+
"@mui/material": "~5.16.7",
|
|
21
|
+
"@mui/system": "~5.16.7",
|
|
22
|
+
"@mui/x-charts": "^7.17.0",
|
|
22
23
|
"@mui/x-date-pickers": "~6.19.5",
|
|
23
24
|
"date-fns": "~2.30.0",
|
|
24
25
|
"lottie-react": "~2.4.0",
|