@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.
@@ -11,6 +11,9 @@ export const DsButtonOverrides = {
11
11
  cursor: 'not-allowed',
12
12
  pointerEvents: 'all'
13
13
  },
14
+ '.MuiIcon-root': {
15
+ fontWeight: 'var(--ds-typo-bodyRegularMedium-fontWeight)',
16
+ },
14
17
  variants: [
15
18
  {
16
19
  props: { variant: 'flushed' },
@@ -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
- '> .MuiSvgIcon-root': {
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
- '> .MuiSvgIcon-root': {
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
- '> .MuiSvgIcon-root': {
38
+ '> .MuiIcon-root': {
36
39
  fontSize: 'var(--ds-typo-fontSizeCool)'
37
40
  }
38
41
  },
@@ -3,7 +3,7 @@ export declare const DsInputAdornmentOverrides: {
3
3
  styleOverrides: {
4
4
  root: {
5
5
  color: string;
6
- '& .MuiSvgIcon-root': {
6
+ '& .MuiIcon-root': {
7
7
  cursor: string;
8
8
  };
9
9
  };
@@ -3,7 +3,7 @@ export const DsInputAdornmentOverrides = {
3
3
  styleOverrides: {
4
4
  root: {
5
5
  color: 'var(--ds-colour-iconDefault)',
6
- '& .MuiSvgIcon-root': {
6
+ '& .MuiIcon-root': {
7
7
  cursor: 'pointer'
8
8
  }
9
9
  },
@@ -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
- }, ...wrapperProps, children: [_jsxs(DsStack, { direction: 'row', onClick: onClick, sx: {
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, ...wrapperProps, children: [_jsx(DsProgressIndicator, { activeStep: activeStep + 1, steps: steps.length }), _jsxs(DsStack, { spacing: 'var(--ds-spacing-quickFreeze)', sx: {
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',
@@ -30,7 +30,7 @@ export declare const DsToastOverrides: {
30
30
  '.MuiIconButton-root': {
31
31
  fontSize: string;
32
32
  };
33
- '.MuiSvgIcon-root': {
33
+ '.MuiIcon-root': {
34
34
  fontSize: string;
35
35
  };
36
36
  };
@@ -31,7 +31,7 @@ export const DsToastOverrides = {
31
31
  '.MuiIconButton-root': {
32
32
  fontSize: 'var(--ds-typo-fontSizeMild)'
33
33
  },
34
- '.MuiSvgIcon-root': {
34
+ '.MuiIcon-root': {
35
35
  fontSize: 'inherit'
36
36
  }
37
37
  },
@@ -18,7 +18,7 @@ export const PALETTE = {
18
18
  secondaryGrey30: '#E2E2E2',
19
19
  secondaryGrey20: '#F1F1F1',
20
20
  secondaryGrey10: '#F9F9F9',
21
- tertiary100: '#12877F',
21
+ tertiary100: '#0C746C',
22
22
  tertiary80: '#49A49E',
23
23
  tertiary60: '#81C1BD',
24
24
  tertiary40: '#B8DDDB',
@@ -0,0 +1 @@
1
+ export declare const useEmotionNonce: () => string | undefined;
@@ -0,0 +1,5 @@
1
+ import { __unsafe_useEmotionCache } from '@emotion/react';
2
+ export const useEmotionNonce = () => {
3
+ const cache = __unsafe_useEmotionCache();
4
+ return cache?.nonce;
5
+ };
@@ -438,7 +438,7 @@ declare const componentOverrides: {
438
438
  '.MuiIconButton-root': {
439
439
  fontSize: string;
440
440
  };
441
- '.MuiSvgIcon-root': {
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
- '& .MuiSvgIcon-root': {
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: primaryWhite,
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: secondaryGrey80,
15
- typoTertiary: secondaryGrey60,
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
@@ -11,3 +11,4 @@ export * from './utils';
11
11
  export * from './x-datepicker';
12
12
  export * from './x-charts';
13
13
  export * from './Hooks';
14
+ export * from './emotionReact';
package/dist/index.js CHANGED
@@ -11,3 +11,4 @@ export * from './utils';
11
11
  export * from './x-datepicker';
12
12
  export * from './x-charts';
13
13
  export * from './Hooks';
14
+ export * from './emotionReact';
@@ -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.1",
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.11.4",
17
- "@emotion/styled": "~11.11.0",
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",