@am92/react-design-system 2.7.0 → 2.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Components/DsAccordion/DsAccordion.Component.d.ts +2 -5
- package/dist/Components/DsAccordion/DsAccordion.Component.js +11 -14
- package/dist/Components/DsAccordion/DsAccordion.Overrides.d.ts +1 -1
- package/dist/Components/DsAccordion/DsAccordion.Overrides.js +1 -1
- package/dist/Components/DsAccordion/DsAccordion.Types.js +2 -4
- package/dist/Components/DsDivider/DsDivider.Overrides.js +12 -2
- package/dist/Components/DsPaper/DsPaper.Overrides.d.ts +1 -5
- package/dist/Components/DsPaper/DsPaper.Overrides.js +2 -6
- package/dist/Components/DsPaper/DsPaper.Types.js +3 -1
- package/dist/Components/DsProgressTracker/DsProgressTracker.Component.d.ts +1 -1
- package/dist/Components/DsProgressTracker/DsProgressTracker.Types.d.ts +2 -5
- package/dist/Theme/componentOverrides.d.ts +2 -6
- package/dist/Theme/elevation.d.ts +2 -1
- package/dist/Theme/elevation.js +28 -0
- package/dist/Theme/index.d.ts +4 -1
- package/dist/Theme/index.js +3 -2
- package/dist/Types/DsElevation.d.ts +2 -1
- package/dist/x-charts/Types/index.d.ts +44 -0
- package/package.json +1 -1
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FC } from 'react';
|
|
2
2
|
import { DsAccordionProps } from './DsAccordion.Types';
|
|
3
|
-
export declare
|
|
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 {
|
|
3
|
+
import { useThemeProps } from '@mui/system';
|
|
5
4
|
import { DsAccordionDetails } from '../DsAccordionDetails';
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
+
};
|
|
@@ -5,7 +5,7 @@ export const DsAccordionOverrides = {
|
|
|
5
5
|
styleOverrides: {
|
|
6
6
|
root: {
|
|
7
7
|
backgroundColor: 'var(--ds-colour-surfacePrimary)',
|
|
8
|
-
|
|
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
|
};
|
|
@@ -14,13 +14,23 @@ export const DsDividerOverrides = {
|
|
|
14
14
|
{
|
|
15
15
|
props: { 'ds-size': 'M' },
|
|
16
16
|
style: {
|
|
17
|
-
|
|
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
|
-
|
|
28
|
+
'&::before': {
|
|
29
|
+
borderWidth: '6px'
|
|
30
|
+
},
|
|
31
|
+
'&::after': {
|
|
32
|
+
borderWidth: '6px'
|
|
33
|
+
}
|
|
24
34
|
}
|
|
25
35
|
}
|
|
26
36
|
]
|
|
@@ -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
|
};
|
|
@@ -9,7 +9,7 @@ export declare class DsProgressTracker extends PureComponent<DsProgressTrackerPr
|
|
|
9
9
|
orientation?: import("@mui/material").Orientation;
|
|
10
10
|
};
|
|
11
11
|
'ds-variant': "default" | "header" | "steps";
|
|
12
|
-
steps: import("./
|
|
12
|
+
steps: import("./DsProgressStepper.Types").DsProgressStepperStepProps[];
|
|
13
13
|
activeStep: number;
|
|
14
14
|
sx?: import("../DsBox").DsBoxProps;
|
|
15
15
|
nextStepLabelPrefix: React.ReactNode;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { DsBoxProps } from '../DsBox';
|
|
2
|
-
import { DsProgressStepperProps } from './DsProgressStepper.Types';
|
|
3
|
-
export interface DsProgressTrackerStepProps {
|
|
4
|
-
stepName: string;
|
|
5
|
-
}
|
|
2
|
+
import { DsProgressStepperProps, DsProgressStepperStepProps } from './DsProgressStepper.Types';
|
|
6
3
|
export interface DsProgressTrackerProps {
|
|
7
4
|
/** This property can be used to switch between different variants of Progress Indicator where Default will provide a view with expand functionality on click, setsp only provide setp names without header and header provides a header with steps indicator without expandable stepper. */
|
|
8
5
|
'ds-variant': 'default' | 'header' | 'steps';
|
|
9
|
-
steps:
|
|
6
|
+
steps: DsProgressStepperStepProps[];
|
|
10
7
|
activeStep: number;
|
|
11
8
|
StepperProps?: Omit<DsProgressStepperProps, 'activeStep' | 'steps' | 'ref'>;
|
|
12
9
|
sx?: DsBoxProps;
|
|
@@ -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: {
|
|
@@ -1372,7 +1368,7 @@ declare const componentOverrides: {
|
|
|
1372
1368
|
styleOverrides: {
|
|
1373
1369
|
root: {
|
|
1374
1370
|
backgroundColor: string;
|
|
1375
|
-
|
|
1371
|
+
backgroundImage: string;
|
|
1376
1372
|
overflow: string;
|
|
1377
1373
|
'&:not(:first-of-type):not(.Mui-expanded)': {
|
|
1378
1374
|
marginTop: string;
|
package/dist/Theme/elevation.js
CHANGED
|
@@ -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;
|
package/dist/Theme/index.d.ts
CHANGED
|
@@ -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
|
}
|
package/dist/Theme/index.js
CHANGED
|
@@ -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
|
+
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';
|