@am92/react-design-system 3.0.1-beta.1 → 3.0.1-beta.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/DsButton/DsButton.Overrides.js +3 -0
- package/dist/Components/DsFab/DsFab.Overrides.js +6 -3
- package/dist/Components/DsInputAdornment/DsInputAdornment.Overrides.d.ts +1 -1
- package/dist/Components/DsInputAdornment/DsInputAdornment.Overrides.js +1 -1
- package/dist/Components/DsLoader/SingleDotLoader.js +3 -1
- package/dist/Components/DsLoader/ThreeDotLoader.js +3 -1
- package/dist/Components/DsProgressTracker/Components/DsProgressTrackerHeader.Component.js +4 -4
- package/dist/Components/DsToast/DsToast.Overrides.d.ts +1 -1
- package/dist/Components/DsToast/DsToast.Overrides.js +1 -1
- package/dist/Constants/PALETTE.js +1 -1
- package/dist/Hooks/nonce.d.ts +1 -0
- package/dist/Hooks/nonce.js +5 -0
- package/dist/Theme/componentOverrides.d.ts +2 -2
- package/dist/Theme/getColorScheme/highContrast.js +1 -1
- package/dist/Theme/getColorScheme/light.js +2 -2
- package/dist/emotionReact.d.ts +1 -0
- package/dist/emotionReact.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/x-charts/Components/index.d.ts +2 -0
- package/dist/x-charts/Components/index.js +2 -0
- package/package.json +3 -3
|
@@ -16,23 +16,26 @@ export const DsFabOverrides = {
|
|
|
16
16
|
fontSize: 'var(--ds-typo-bodyBoldMedium-fontSize)',
|
|
17
17
|
lineHeight: 'var(--ds-typo-bodyBoldMedium-lineHeight)',
|
|
18
18
|
letterSpacing: 'var(--ds-typo-bodyBoldMedium-letterSpacing)'
|
|
19
|
+
},
|
|
20
|
+
'.MuiIcon-root': {
|
|
21
|
+
fontWeight: 'var(--ds-typo-bodyRegularMedium-fontWeight)',
|
|
19
22
|
}
|
|
20
23
|
},
|
|
21
24
|
sizeLarge: {
|
|
22
25
|
padding: 'var(--ds-spacing-cool)',
|
|
23
|
-
'> .
|
|
26
|
+
'> .MuiIcon-root': {
|
|
24
27
|
fontSize: 'var(--ds-typo-fontSizePleasant)'
|
|
25
28
|
}
|
|
26
29
|
},
|
|
27
30
|
sizeMedium: {
|
|
28
31
|
padding: 'var(--ds-spacing-bitterCold)',
|
|
29
|
-
'> .
|
|
32
|
+
'> .MuiIcon-root': {
|
|
30
33
|
fontSize: 'var(--ds-typo-fontSizeMild)'
|
|
31
34
|
}
|
|
32
35
|
},
|
|
33
36
|
sizeSmall: {
|
|
34
37
|
padding: 'var(--ds-spacing-frostbite)',
|
|
35
|
-
'> .
|
|
38
|
+
'> .MuiIcon-root': {
|
|
36
39
|
fontSize: 'var(--ds-typo-fontSizeCool)'
|
|
37
40
|
}
|
|
38
41
|
},
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEmotionNonce } from "../../Hooks/nonce";
|
|
2
3
|
export function SingleDotLoader() {
|
|
4
|
+
const nonce = useEmotionNonce();
|
|
3
5
|
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 1000", preserveAspectRatio: "xMidYMid slice", style: {
|
|
4
6
|
width: '100%',
|
|
5
7
|
height: '100%',
|
|
6
8
|
transform: 'translate3d(0px, 0px, 0px)',
|
|
7
9
|
contentVisibility: 'visible'
|
|
8
|
-
}, children: [_jsxs("defs", { children: [_jsx("clipPath", { id: "__loader_element_11", children: _jsx("rect", { width: "1000", height: "1000", x: "0", y: "0" }) }), _jsx("style", { children: `@keyframes ball {
|
|
10
|
+
}, children: [_jsxs("defs", { children: [_jsx("clipPath", { id: "__loader_element_11", children: _jsx("rect", { width: "1000", height: "1000", x: "0", y: "0" }) }), _jsx("style", { nonce: nonce, children: `@keyframes ball {
|
|
9
11
|
0%{
|
|
10
12
|
transform: matrix(2.428800106048584,0,0,2.428800106048584,491.30035400390625,444.7691650390625)
|
|
11
13
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEmotionNonce } from "../../Hooks/nonce";
|
|
2
3
|
export function ThreeDotLoader() {
|
|
4
|
+
const nonce = useEmotionNonce();
|
|
3
5
|
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 1000", preserveAspectRatio: "xMidYMid slice", style: {
|
|
4
6
|
width: '100%',
|
|
5
7
|
height: '100%',
|
|
6
8
|
transform: 'translate3d(0px, 0px, 0px)',
|
|
7
9
|
contentVisibility: 'visible'
|
|
8
|
-
}, children: [_jsxs("defs", { children: [_jsx("clipPath", { id: `__loader_element_524`, children: _jsx("rect", { width: "1000", height: "1000", x: "0", y: "0" }) }), _jsx("style", { children: `@keyframes ball1 {
|
|
10
|
+
}, children: [_jsxs("defs", { children: [_jsx("clipPath", { id: `__loader_element_524`, children: _jsx("rect", { width: "1000", height: "1000", x: "0", y: "0" }) }), _jsx("style", { nonce: nonce, children: `@keyframes ball1 {
|
|
9
11
|
0%{
|
|
10
12
|
transform: matrix(1.3200000524520874,0,0,1.3200000524520874,178.98719787597656,413.82720947265625)
|
|
11
13
|
}
|
|
@@ -20,10 +20,10 @@ export const DsProgressTrackerHeader = (props) => {
|
|
|
20
20
|
? lastStepLabelText
|
|
21
21
|
: `${nextStepLabelPrefix} ${nextStep.stepName}` }));
|
|
22
22
|
};
|
|
23
|
-
return (_jsx(_Fragment, { children: dense ? (_jsxs(DsStack, { sx: {
|
|
23
|
+
return (_jsx(_Fragment, { children: dense ? (_jsxs(DsStack, { ...wrapperProps, sx: {
|
|
24
24
|
backgroundColor: 'var(--ds-colour-surfaceSecondary)',
|
|
25
25
|
...wrapperProps?.sx
|
|
26
|
-
},
|
|
26
|
+
}, children: [_jsxs(DsStack, { direction: 'row', onClick: onClick, sx: {
|
|
27
27
|
justifyContent: 'space-between',
|
|
28
28
|
px: 'var(--ds-spacing-bitterCold)',
|
|
29
29
|
pt: 'var(--ds-spacing-frostbite)',
|
|
@@ -34,14 +34,14 @@ export const DsProgressTrackerHeader = (props) => {
|
|
|
34
34
|
'.MuiLinearProgress-bar1Determinate ': {
|
|
35
35
|
borderRadius: '1px'
|
|
36
36
|
}
|
|
37
|
-
} })] })) : (_jsxs(DsStack, { sx: {
|
|
37
|
+
} })] })) : (_jsxs(DsStack, { ...wrapperProps, sx: {
|
|
38
38
|
p: 'var(--ds-spacing-bitterCold)',
|
|
39
39
|
alignItems: 'center',
|
|
40
40
|
borderBottom: '1px solid var(--ds-colour-strokeDefault)',
|
|
41
41
|
backgroundColor: 'var(--ds-colour-surfaceBackground)',
|
|
42
42
|
cursor: props['ds-variant'] === 'default' ? 'pointer' : 'unset',
|
|
43
43
|
...wrapperProps?.sx
|
|
44
|
-
}, spacing: 'var(--ds-spacing-bitterCold)', direction: 'row', onClick: onClick,
|
|
44
|
+
}, spacing: 'var(--ds-spacing-bitterCold)', direction: 'row', onClick: onClick, children: [_jsx(DsProgressIndicator, { activeStep: activeStep + 1, steps: steps.length }), _jsxs(DsStack, { spacing: 'var(--ds-spacing-quickFreeze)', sx: {
|
|
45
45
|
flexGrow: 1
|
|
46
46
|
}, children: [_jsx(DsTypography, { component: 'div', variant: 'headingBoldExtraSmall', sx: {
|
|
47
47
|
textAlign: 'right',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useEmotionNonce: () => string | undefined;
|
|
@@ -438,7 +438,7 @@ declare const componentOverrides: {
|
|
|
438
438
|
'.MuiIconButton-root': {
|
|
439
439
|
fontSize: string;
|
|
440
440
|
};
|
|
441
|
-
'.
|
|
441
|
+
'.MuiIcon-root': {
|
|
442
442
|
fontSize: string;
|
|
443
443
|
};
|
|
444
444
|
};
|
|
@@ -819,7 +819,7 @@ declare const componentOverrides: {
|
|
|
819
819
|
styleOverrides: {
|
|
820
820
|
root: {
|
|
821
821
|
color: string;
|
|
822
|
-
'& .
|
|
822
|
+
'& .MuiIcon-root': {
|
|
823
823
|
cursor: string;
|
|
824
824
|
};
|
|
825
825
|
};
|
|
@@ -32,7 +32,7 @@ export default function getHighContrastModeColorScheme(colorPalette) {
|
|
|
32
32
|
iconActionPrimary: highContrast1,
|
|
33
33
|
iconActionSecondary: highContrast1,
|
|
34
34
|
iconActionTertiary: highContrast1,
|
|
35
|
-
iconOnSurface:
|
|
35
|
+
iconOnSurface: primaryBlackLight,
|
|
36
36
|
iconDisabled: secondaryGrey60,
|
|
37
37
|
iconDefault: primaryWhite,
|
|
38
38
|
iconTypical: highContrast2,
|
|
@@ -11,8 +11,8 @@ export default function getLightModeColorScheme(colorPalette) {
|
|
|
11
11
|
surfaceSecondary: secondaryGrey10,
|
|
12
12
|
surfaceTertiary: secondaryGrey100,
|
|
13
13
|
typoPrimary: primaryBlackLight,
|
|
14
|
-
typoSecondary:
|
|
15
|
-
typoTertiary:
|
|
14
|
+
typoSecondary: secondaryGrey90,
|
|
15
|
+
typoTertiary: secondaryGrey80,
|
|
16
16
|
typoActionPrimary: primary,
|
|
17
17
|
typoActionSecondary: secondary100,
|
|
18
18
|
typoActionTertiary: tertiary100,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CacheProvider as DsCacheProvider } from '@emotion/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CacheProvider as DsCacheProvider } from '@emotion/react';
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -21,6 +21,8 @@ export { ChartsYAxis as DsChartsYAxis } from '@mui/x-charts';
|
|
|
21
21
|
export { ContinuousColorLegend as DsContinuousColorLegend } from '@mui/x-charts';
|
|
22
22
|
export { ChartsAxisTooltipContent as DsChartsAxisTooltipContent } from '@mui/x-charts';
|
|
23
23
|
export { ChartsItemTooltipContent as DsChartsItemTooltipContent } from '@mui/x-charts';
|
|
24
|
+
export { ChartsTooltipContainer as DsChartsTooltipContainer } from '@mui/x-charts';
|
|
25
|
+
export { ChartDataProvider as DsChartDataProvider } from '@mui/x-charts';
|
|
24
26
|
export { Gauge as DsGauge } from '@mui/x-charts';
|
|
25
27
|
export { GaugeContainer as DsGaugeContainer } from '@mui/x-charts';
|
|
26
28
|
export { LineChart as DsLineChart } from '@mui/x-charts';
|
|
@@ -21,6 +21,8 @@ export { ChartsYAxis as DsChartsYAxis } from '@mui/x-charts';
|
|
|
21
21
|
export { ContinuousColorLegend as DsContinuousColorLegend } from '@mui/x-charts';
|
|
22
22
|
export { ChartsAxisTooltipContent as DsChartsAxisTooltipContent } from '@mui/x-charts';
|
|
23
23
|
export { ChartsItemTooltipContent as DsChartsItemTooltipContent } from '@mui/x-charts';
|
|
24
|
+
export { ChartsTooltipContainer as DsChartsTooltipContainer } from '@mui/x-charts';
|
|
25
|
+
export { ChartDataProvider as DsChartDataProvider } from '@mui/x-charts';
|
|
24
26
|
export { Gauge as DsGauge } from '@mui/x-charts';
|
|
25
27
|
export { GaugeContainer as DsGaugeContainer } from '@mui/x-charts';
|
|
26
28
|
export { LineChart as DsLineChart } from '@mui/x-charts';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@am92/react-design-system",
|
|
3
|
-
"version": "3.0.1-beta.
|
|
3
|
+
"version": "3.0.1-beta.2",
|
|
4
4
|
"description": "ReactJS Design System using Material UI",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"dist/**/*.json"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@emotion/react": "~11.
|
|
17
|
-
"@emotion/styled": "~11.
|
|
16
|
+
"@emotion/react": "~11.14.0",
|
|
17
|
+
"@emotion/styled": "~11.14.0",
|
|
18
18
|
"@mui/material": "^7.0.0",
|
|
19
19
|
"@mui/system": "^7.0.0",
|
|
20
20
|
"@mui/x-charts": "~8.0.0",
|