@groupeactual/design-tokens 1.5.2-beta.5 → 1.6.0-beta.10
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/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/css/accordionCss.d.ts +2 -1
- package/dist/cjs/types/css/bannerNotificationCss.d.ts +2 -1
- package/dist/cjs/types/css/breadcrumbsCss.d.ts +2 -1
- package/dist/cjs/types/css/buttonCss.d.ts +2 -1
- package/dist/cjs/types/css/chipCss.d.ts +2 -1
- package/dist/cjs/types/css/datatable/datatableCss.d.ts +2 -1
- package/dist/cjs/types/css/form/autoCompleteCss.d.ts +2 -1
- package/dist/cjs/types/css/form/checkboxCss.d.ts +2 -1
- package/dist/cjs/types/css/form/checkboxGroupCss.d.ts +2 -1
- package/dist/cjs/types/css/form/datePickerCss.d.ts +2 -1
- package/dist/cjs/types/css/form/radioCss.d.ts +2 -1
- package/dist/cjs/types/css/form/selectCss.d.ts +2 -1
- package/dist/cjs/types/css/form/snackbarCss.d.ts +2 -1
- package/dist/cjs/types/css/form/textFieldCss.d.ts +2 -1
- package/dist/cjs/types/css/iconButtonCss.d.ts +2 -1
- package/dist/cjs/types/css/linkCss.d.ts +2 -1
- package/dist/cjs/types/css/paginationCss.d.ts +2 -1
- package/dist/cjs/types/css/switchCss.d.ts +2 -1
- package/dist/cjs/types/css/tooltipCss.d.ts +1 -1
- package/dist/cjs/types/helpers/theme.d.ts +1 -1
- package/dist/cjs/types/interfaces/theme.d.ts +1 -0
- package/dist/cjs/types/useMaterialThemeTokens.d.ts +2 -2
- package/dist/es/index.d.ts +22 -21
- package/dist/es/index.mjs +1 -1
- package/dist/es/index.mjs.map +1 -1
- package/dist/es/types/css/accordionCss.d.ts +2 -1
- package/dist/es/types/css/bannerNotificationCss.d.ts +2 -1
- package/dist/es/types/css/breadcrumbsCss.d.ts +2 -1
- package/dist/es/types/css/buttonCss.d.ts +2 -1
- package/dist/es/types/css/chipCss.d.ts +2 -1
- package/dist/es/types/css/datatable/datatableCss.d.ts +2 -1
- package/dist/es/types/css/form/autoCompleteCss.d.ts +2 -1
- package/dist/es/types/css/form/checkboxCss.d.ts +2 -1
- package/dist/es/types/css/form/checkboxGroupCss.d.ts +2 -1
- package/dist/es/types/css/form/datePickerCss.d.ts +2 -1
- package/dist/es/types/css/form/radioCss.d.ts +2 -1
- package/dist/es/types/css/form/selectCss.d.ts +2 -1
- package/dist/es/types/css/form/snackbarCss.d.ts +2 -1
- package/dist/es/types/css/form/textFieldCss.d.ts +2 -1
- package/dist/es/types/css/iconButtonCss.d.ts +2 -1
- package/dist/es/types/css/linkCss.d.ts +2 -1
- package/dist/es/types/css/paginationCss.d.ts +2 -1
- package/dist/es/types/css/switchCss.d.ts +2 -1
- package/dist/es/types/css/tooltipCss.d.ts +1 -1
- package/dist/es/types/helpers/theme.d.ts +1 -1
- package/dist/es/types/interfaces/theme.d.ts +1 -0
- package/dist/es/types/useMaterialThemeTokens.d.ts +2 -2
- package/package.json +27 -28
- package/src/css/accordionCss.ts +8 -8
- package/src/css/bannerNotificationCss.ts +14 -12
- package/src/css/breadcrumbsCss.ts +7 -7
- package/src/css/buttonCss.ts +4 -4
- package/src/css/chipCss.ts +33 -33
- package/src/css/datatable/datatableCss.ts +10 -10
- package/src/css/form/autoCompleteCss.ts +70 -54
- package/src/css/form/checkboxCss.ts +23 -23
- package/src/css/form/checkboxGroupCss.ts +13 -13
- package/src/css/form/datePickerCss.ts +3 -4
- package/src/css/form/radioCss.ts +26 -26
- package/src/css/form/selectCss.ts +22 -22
- package/src/css/form/snackbarCss.ts +13 -13
- package/src/css/form/textFieldCss.ts +7 -7
- package/src/css/iconButtonCss.ts +22 -22
- package/src/css/linkCss.ts +6 -6
- package/src/css/paginationCss.ts +11 -11
- package/src/css/switchCss.ts +20 -19
- package/src/css/tooltipCss.ts +6 -9
- package/src/helpers/theme.ts +18 -16
- package/src/interfaces/theme.ts +3 -0
- package/src/themes/tokens.ts +3 -3
- package/src/useMaterialThemeTokens.ts +31 -31
- package/src/useThemeTokens.ts +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const TooltipCss: (
|
|
1
|
+
declare const TooltipCss: () => Record<string, unknown>;
|
|
2
2
|
export default TooltipCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Theme, Types } from '../interfaces/theme';
|
|
2
2
|
export declare const getTokensByType: (themeName: Theme, type: Types) => Record<string, string>;
|
|
3
|
-
export declare const getMuiPalette: (themeName: Theme) => Record<string,
|
|
3
|
+
export declare const getMuiPalette: (themeName: Theme) => Record<string, string | number | unknown>;
|
|
4
4
|
export declare const getFontFamilies: (themeName: Theme) => string[];
|
|
@@ -13,3 +13,4 @@ export interface DesignTokens {
|
|
|
13
13
|
}
|
|
14
14
|
export type Types = 'FontSize' | 'FontWeights' | 'LineHeights' | 'Colors' | 'Spacing' | 'Sizing' | 'FontFamilies' | 'LetterSpacing' | 'ParagraphSpacing' | 'TextCase' | 'TextDecoration';
|
|
15
15
|
export type Theme = 'Default' | 'Ep';
|
|
16
|
+
export type MuiTokens = Record<string, any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Theme } from './interfaces/theme';
|
|
1
|
+
import { MuiTokens, Theme } from './interfaces/theme';
|
|
2
2
|
interface useMaterialThemeTokensReturnType {
|
|
3
|
-
muiTokens:
|
|
3
|
+
muiTokens: MuiTokens;
|
|
4
4
|
}
|
|
5
5
|
declare const useMaterialThemeTokens: (themeName: Theme) => useMaterialThemeTokensReturnType;
|
|
6
6
|
export default useMaterialThemeTokens;
|
package/package.json
CHANGED
|
@@ -1,44 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@groupeactual/design-tokens",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0-beta.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A simple library to manage design tokens",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"lodash": "^4.17.21",
|
|
8
|
-
"react": "^18.
|
|
9
|
-
"react-dom": "^18.
|
|
8
|
+
"react": "^18.3.1",
|
|
9
|
+
"react-dom": "^18.3.1"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@
|
|
13
|
-
"@babel/
|
|
14
|
-
"@babel/preset-
|
|
15
|
-
"@babel/preset-
|
|
12
|
+
"@groupeactual/code-quality-front": "^1.2.0-beta.8",
|
|
13
|
+
"@babel/core": "^7.25.2",
|
|
14
|
+
"@babel/preset-env": "^7.25.4",
|
|
15
|
+
"@babel/preset-react": "^7.24.7",
|
|
16
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
16
17
|
"@mdx-js/react": "^3.0.1",
|
|
17
|
-
"@rollup/plugin-commonjs": "^
|
|
18
|
+
"@rollup/plugin-commonjs": "^26.0.1",
|
|
18
19
|
"@rollup/plugin-json": "^6.1.0",
|
|
19
20
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
20
21
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
21
|
-
"@types/react": "^18.
|
|
22
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
23
|
-
"@typescript-eslint/parser": "^
|
|
24
|
-
"babel-loader": "^9.1.
|
|
25
|
-
"clsx": "^
|
|
26
|
-
"css-loader": "^
|
|
27
|
-
"html-webpack-plugin": "^5.5.3",
|
|
22
|
+
"@types/react": "^18.3.4",
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "^8.1.0",
|
|
24
|
+
"@typescript-eslint/parser": "^8.1.0",
|
|
25
|
+
"babel-loader": "^9.1.3",
|
|
26
|
+
"clsx": "^2.1.1",
|
|
27
|
+
"css-loader": "^7.1.2",
|
|
28
28
|
"identity-obj-proxy": "^3.0.0",
|
|
29
|
-
"postcss": "^8.4.
|
|
30
|
-
"prettier": "^3.
|
|
31
|
-
"rollup": "^
|
|
32
|
-
"rollup-plugin-dts": "^
|
|
29
|
+
"postcss": "^8.4.41",
|
|
30
|
+
"prettier": "^3.3.3",
|
|
31
|
+
"rollup": "^4.21.0",
|
|
32
|
+
"rollup-plugin-dts": "^6.1.1",
|
|
33
33
|
"rollup-plugin-postcss": "^4.0.2",
|
|
34
|
-
"sass": "^1.
|
|
35
|
-
"sass-loader": "^
|
|
36
|
-
"style-dictionary": "^
|
|
37
|
-
"style-loader": "^
|
|
34
|
+
"sass": "^1.77.8",
|
|
35
|
+
"sass-loader": "^16.0.1",
|
|
36
|
+
"style-dictionary": "^4.0.1",
|
|
37
|
+
"style-loader": "^4.0.0",
|
|
38
38
|
"token-transformer": "^0.0.33",
|
|
39
|
-
"tslib": "^2.
|
|
40
|
-
"typescript": "^
|
|
41
|
-
"webpack": "^5.88.0"
|
|
39
|
+
"tslib": "^2.6.3",
|
|
40
|
+
"typescript": "^5.5.4"
|
|
42
41
|
},
|
|
43
42
|
"main": "dist/cjs/index.js",
|
|
44
43
|
"module": "dist/es/index.mjs",
|
|
@@ -48,8 +47,8 @@
|
|
|
48
47
|
],
|
|
49
48
|
"types": "dist/es/types/index.d.ts",
|
|
50
49
|
"peerDependencies": {
|
|
51
|
-
"react": "^18.
|
|
52
|
-
"react-dom": "^18.
|
|
50
|
+
"react": "^18.3.1",
|
|
51
|
+
"react-dom": "^18.3.1"
|
|
53
52
|
},
|
|
54
53
|
"scripts": {
|
|
55
54
|
"build": "rollup -c",
|
package/src/css/accordionCss.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
): Record<string, unknown> => {
|
|
1
|
+
import { MuiTokens } from '../interfaces/theme';
|
|
2
|
+
|
|
3
|
+
const AccordionCss = (muiTokens: MuiTokens): Record<string, unknown> => {
|
|
4
4
|
return {
|
|
5
5
|
'&.MuiAccordion-root': {
|
|
6
6
|
border: `1px solid`,
|
|
@@ -12,18 +12,18 @@ const AccordionCss = (
|
|
|
12
12
|
color: muiTokens.palette.greyXDark,
|
|
13
13
|
fontWeight: muiTokens.typography.fontWeightMedium,
|
|
14
14
|
fontSize: '18px',
|
|
15
|
-
lineHeight: '21px'
|
|
15
|
+
lineHeight: '21px',
|
|
16
16
|
},
|
|
17
17
|
'.MuiAccordionDetails-root': {
|
|
18
18
|
padding: '16px',
|
|
19
19
|
borderBottomLeftRadius: '4px',
|
|
20
|
-
borderBottomRightRadius: '4px'
|
|
20
|
+
borderBottomRightRadius: '4px',
|
|
21
21
|
},
|
|
22
22
|
'.MuiAccordionSummary-expandIconWrapper .MuiBox-root': {
|
|
23
23
|
width: 'auto',
|
|
24
|
-
padding: '13px'
|
|
25
|
-
}
|
|
26
|
-
}
|
|
24
|
+
padding: '13px',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { MuiTokens } from '../interfaces/theme';
|
|
2
|
+
|
|
1
3
|
const bannerNotificationCss = (
|
|
2
|
-
muiTokens:
|
|
4
|
+
muiTokens: MuiTokens,
|
|
3
5
|
): Record<string, unknown> => {
|
|
4
6
|
return {
|
|
5
7
|
'&.MuiPaper-root': {
|
|
@@ -11,39 +13,39 @@ const bannerNotificationCss = (
|
|
|
11
13
|
color: 'white',
|
|
12
14
|
fontWeight: '700',
|
|
13
15
|
fontSize: '14px',
|
|
14
|
-
maxWidth: '1600px'
|
|
16
|
+
maxWidth: '1600px',
|
|
15
17
|
},
|
|
16
18
|
'.MuiAlert-icon': {
|
|
17
19
|
opacity: 1 + ' !important',
|
|
18
20
|
alignItems: 'center',
|
|
19
|
-
marginRight: '8px'
|
|
21
|
+
marginRight: '8px',
|
|
20
22
|
},
|
|
21
23
|
'.MuiAlert-message': {
|
|
22
|
-
alignSelf: 'center'
|
|
24
|
+
alignSelf: 'center',
|
|
23
25
|
},
|
|
24
26
|
'.MuiSvgIcon-root': {
|
|
25
27
|
color: 'white',
|
|
26
|
-
'-webkit-tap-highlight-color': 'white'
|
|
28
|
+
'-webkit-tap-highlight-color': 'white',
|
|
27
29
|
},
|
|
28
30
|
'.MuiAlert-action': {
|
|
29
31
|
cursor: 'pointer',
|
|
30
32
|
marginRight: 0,
|
|
31
33
|
padding: 0,
|
|
32
|
-
alignSelf: 'center'
|
|
34
|
+
alignSelf: 'center',
|
|
33
35
|
},
|
|
34
36
|
'&.MuiAlert-standardInfo': {
|
|
35
|
-
backgroundColor: muiTokens.palette.blueInfo
|
|
37
|
+
backgroundColor: muiTokens.palette.blueInfo,
|
|
36
38
|
},
|
|
37
39
|
'&.MuiAlert-standardWarning': {
|
|
38
|
-
backgroundColor: muiTokens.palette.orangeWarning
|
|
40
|
+
backgroundColor: muiTokens.palette.orangeWarning,
|
|
39
41
|
},
|
|
40
42
|
'&.MuiAlert-standardError': {
|
|
41
|
-
backgroundColor: muiTokens.palette.redError
|
|
43
|
+
backgroundColor: muiTokens.palette.redError,
|
|
42
44
|
},
|
|
43
45
|
'&.MuiAlert-standardSuccess': {
|
|
44
|
-
backgroundColor: muiTokens.palette.greenSuccess
|
|
45
|
-
}
|
|
46
|
-
}
|
|
46
|
+
backgroundColor: muiTokens.palette.greenSuccess,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
47
49
|
};
|
|
48
50
|
};
|
|
49
51
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
): Record<string, unknown> => {
|
|
1
|
+
import { MuiTokens } from '../interfaces/theme';
|
|
2
|
+
|
|
3
|
+
const BreadcrumbsCss = (muiTokens: MuiTokens): Record<string, unknown> => {
|
|
4
4
|
return {
|
|
5
5
|
'&.MuiBreadcrumbs-root': {
|
|
6
6
|
margin: 0,
|
|
7
|
-
padding: '4px 0'
|
|
7
|
+
padding: '4px 0',
|
|
8
8
|
},
|
|
9
9
|
'& .MuiBreadcrumbs-separator': {
|
|
10
10
|
margin: 0,
|
|
11
|
-
padding: '0 4px'
|
|
11
|
+
padding: '0 4px',
|
|
12
12
|
},
|
|
13
13
|
'& .MuiTypography-body1': {
|
|
14
|
-
color: muiTokens.palette.greyDark
|
|
15
|
-
}
|
|
14
|
+
color: muiTokens.palette.greyDark,
|
|
15
|
+
},
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
|
package/src/css/buttonCss.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
): Record<string, unknown> => {
|
|
1
|
+
import { MuiTokens } from '../interfaces/theme';
|
|
2
|
+
|
|
3
|
+
const ButtonCss = (muiTokens: MuiTokens): Record<string, unknown> => {
|
|
4
4
|
return {
|
|
5
5
|
'@font-face': {
|
|
6
6
|
fontFamily: 'Roboto',
|
|
@@ -33,7 +33,7 @@ const ButtonCss = (
|
|
|
33
33
|
},
|
|
34
34
|
'&.MuiButton-secondary': {
|
|
35
35
|
color: muiTokens.palette.blueClickable,
|
|
36
|
-
backgroundColor: muiTokens.palette.white
|
|
36
|
+
backgroundColor: muiTokens.palette.white + ' !important',
|
|
37
37
|
border: '1px solid',
|
|
38
38
|
borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important',
|
|
39
39
|
'.MuiSvgIcon-root': {
|
package/src/css/chipCss.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
): Record<string, unknown> => {
|
|
1
|
+
import { MuiTokens } from '../interfaces/theme';
|
|
2
|
+
|
|
3
|
+
const ChipCss = (muiTokens: MuiTokens): Record<string, unknown> => {
|
|
4
4
|
return {
|
|
5
5
|
'&.MuiChip-root': {
|
|
6
6
|
color: muiTokens.palette.greyXDark,
|
|
@@ -13,80 +13,80 @@ const ChipCss = (
|
|
|
13
13
|
color: muiTokens.palette.blueClickable,
|
|
14
14
|
cursor: 'default',
|
|
15
15
|
width: 'auto',
|
|
16
|
-
height: 'auto'
|
|
16
|
+
height: 'auto',
|
|
17
17
|
},
|
|
18
18
|
'&.Mui-disabled': {
|
|
19
19
|
'.MuiChip-deleteIcon .MuiSvgIcon-root': {
|
|
20
|
-
color: muiTokens.palette.greyMediumInactive + ' !important'
|
|
20
|
+
color: muiTokens.palette.greyMediumInactive + ' !important',
|
|
21
21
|
},
|
|
22
22
|
color: muiTokens.palette.greyDark + ' !important',
|
|
23
23
|
backgroundColor: muiTokens.palette.greyXLight + ' !important',
|
|
24
24
|
border: '1px solid',
|
|
25
25
|
fontWeight: muiTokens.palette.fontWeightRegular,
|
|
26
26
|
borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important',
|
|
27
|
-
opacity: 1
|
|
27
|
+
opacity: 1,
|
|
28
28
|
},
|
|
29
29
|
'.MuiChip-deleteIcon': {
|
|
30
30
|
width: '12px',
|
|
31
31
|
height: '12px',
|
|
32
32
|
margin: 0,
|
|
33
33
|
marginLeft: '8px',
|
|
34
|
-
marginRight: '2px'
|
|
34
|
+
marginRight: '2px',
|
|
35
35
|
},
|
|
36
36
|
'.MuiChip-label': {
|
|
37
37
|
padding: 0,
|
|
38
|
-
lineHeight: '18px'
|
|
38
|
+
lineHeight: '18px',
|
|
39
39
|
},
|
|
40
40
|
'.MuiChip-avatar': {
|
|
41
41
|
marginLeft: '-1px',
|
|
42
42
|
marginRight: '5px',
|
|
43
|
-
color: 'initial'
|
|
44
|
-
}
|
|
43
|
+
color: 'initial',
|
|
44
|
+
},
|
|
45
45
|
},
|
|
46
46
|
'&.MuiChip-filled': {
|
|
47
47
|
border: 'none',
|
|
48
48
|
fontWeight: 400,
|
|
49
|
-
color: muiTokens.palette.greyXDark
|
|
49
|
+
color: muiTokens.palette.greyXDark,
|
|
50
50
|
},
|
|
51
51
|
'&.MuiChip-outlined': {
|
|
52
52
|
border: '1px solid',
|
|
53
|
-
fontWeight: muiTokens.typography.fontWeightRegular
|
|
53
|
+
fontWeight: muiTokens.typography.fontWeightRegular,
|
|
54
54
|
},
|
|
55
55
|
'&.MuiChip-status': {
|
|
56
56
|
border: '1px solid !important',
|
|
57
|
-
fontWeight: muiTokens.typography.fontWeightRegular
|
|
57
|
+
fontWeight: muiTokens.typography.fontWeightRegular,
|
|
58
58
|
},
|
|
59
59
|
'&.MuiChip-statusFilled': {
|
|
60
60
|
border: 'none !important',
|
|
61
61
|
color: muiTokens.palette.greyXDark + ' !important',
|
|
62
|
-
fontWeight: muiTokens.typography.fontWeightRegular + ' !important'
|
|
62
|
+
fontWeight: muiTokens.typography.fontWeightRegular + ' !important',
|
|
63
63
|
},
|
|
64
64
|
'&.MuiChip-sizeSmall': {
|
|
65
65
|
height: '24px',
|
|
66
|
-
paddingY: '3px'
|
|
66
|
+
paddingY: '3px',
|
|
67
67
|
},
|
|
68
68
|
'&.MuiChip-sizeMedium': {
|
|
69
69
|
height: '33px',
|
|
70
|
-
paddingY: '8px'
|
|
70
|
+
paddingY: '8px',
|
|
71
71
|
},
|
|
72
72
|
'&.MuiChip-colorDefault': {
|
|
73
73
|
backgroundColor: muiTokens.palette.greyXLight,
|
|
74
74
|
border: 'none',
|
|
75
75
|
fontWeight: muiTokens.typography.fontWeightRegular + ' !important',
|
|
76
|
-
color: muiTokens.palette.greyXDark
|
|
76
|
+
color: muiTokens.palette.greyXDark,
|
|
77
77
|
},
|
|
78
78
|
'&.MuiChip-colorSecondary': {
|
|
79
79
|
borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important',
|
|
80
80
|
fontWeight: muiTokens.typography.fontWeightRegular + ' !important',
|
|
81
|
-
backgroundColor: muiTokens.palette.white
|
|
81
|
+
backgroundColor: muiTokens.palette.white,
|
|
82
82
|
},
|
|
83
83
|
'&.MuiChip-colorPrimary': {
|
|
84
84
|
backgroundColor: muiTokens.palette.blueClickable + ' !important',
|
|
85
85
|
color: muiTokens.palette.white + ' !important',
|
|
86
86
|
fontWeight: muiTokens.typography.fontWeightBold,
|
|
87
87
|
'& .MuiChip-deleteIcon': {
|
|
88
|
-
color: muiTokens.palette.white + ' !important'
|
|
89
|
-
}
|
|
88
|
+
color: muiTokens.palette.white + ' !important',
|
|
89
|
+
},
|
|
90
90
|
},
|
|
91
91
|
'&.MuiChip-colorSuccess': {
|
|
92
92
|
border: '1px solid',
|
|
@@ -94,11 +94,11 @@ const ChipCss = (
|
|
|
94
94
|
color: muiTokens.palette.greenSuccess,
|
|
95
95
|
fontWeight: muiTokens.typography.fontWeightBold,
|
|
96
96
|
'& .MuiChip-avatar': {
|
|
97
|
-
color: muiTokens.palette.greenSuccess + ' !important'
|
|
97
|
+
color: muiTokens.palette.greenSuccess + ' !important',
|
|
98
98
|
},
|
|
99
99
|
'& .MuiChip-deleteIcon': {
|
|
100
|
-
color: muiTokens.palette.blueInfo + ' !important'
|
|
101
|
-
}
|
|
100
|
+
color: muiTokens.palette.blueInfo + ' !important',
|
|
101
|
+
},
|
|
102
102
|
},
|
|
103
103
|
'&.MuiChip-colorWarning': {
|
|
104
104
|
border: '1px solid',
|
|
@@ -106,11 +106,11 @@ const ChipCss = (
|
|
|
106
106
|
color: muiTokens.palette.orangeWarning,
|
|
107
107
|
fontWeight: muiTokens.typography.fontWeightBold,
|
|
108
108
|
'& .MuiChip-avatar': {
|
|
109
|
-
color: muiTokens.palette.orangeWarning + ' !important'
|
|
109
|
+
color: muiTokens.palette.orangeWarning + ' !important',
|
|
110
110
|
},
|
|
111
111
|
'& .MuiChip-deleteIcon': {
|
|
112
|
-
color: muiTokens.palette.blueInfo + ' !important'
|
|
113
|
-
}
|
|
112
|
+
color: muiTokens.palette.blueInfo + ' !important',
|
|
113
|
+
},
|
|
114
114
|
},
|
|
115
115
|
'&.MuiChip-colorInfo': {
|
|
116
116
|
border: '1px solid',
|
|
@@ -118,11 +118,11 @@ const ChipCss = (
|
|
|
118
118
|
color: muiTokens.palette.blueInfo,
|
|
119
119
|
fontWeight: muiTokens.typography.fontWeightBold,
|
|
120
120
|
'& .MuiChip-avatar': {
|
|
121
|
-
color: muiTokens.palette.blueInfo + ' !important'
|
|
121
|
+
color: muiTokens.palette.blueInfo + ' !important',
|
|
122
122
|
},
|
|
123
123
|
'& .MuiChip-deleteIcon': {
|
|
124
|
-
color: muiTokens.palette.blueInfo + ' !important'
|
|
125
|
-
}
|
|
124
|
+
color: muiTokens.palette.blueInfo + ' !important',
|
|
125
|
+
},
|
|
126
126
|
},
|
|
127
127
|
'&.MuiChip-colorError': {
|
|
128
128
|
border: '1px solid',
|
|
@@ -130,12 +130,12 @@ const ChipCss = (
|
|
|
130
130
|
color: muiTokens.palette.redError,
|
|
131
131
|
fontWeight: muiTokens.typography.fontWeightBold,
|
|
132
132
|
'& .MuiChip-avatar': {
|
|
133
|
-
color: muiTokens.palette.redError + ' !important'
|
|
133
|
+
color: muiTokens.palette.redError + ' !important',
|
|
134
134
|
},
|
|
135
135
|
'& .MuiChip-deleteIcon': {
|
|
136
|
-
color: muiTokens.palette.blueInfo + ' !important'
|
|
137
|
-
}
|
|
138
|
-
}
|
|
136
|
+
color: muiTokens.palette.blueInfo + ' !important',
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
139
|
};
|
|
140
140
|
};
|
|
141
141
|
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
): Record<string, unknown> => {
|
|
1
|
+
import { MuiTokens } from '../../interfaces/theme';
|
|
2
|
+
|
|
3
|
+
const DatatableCss = (muiTokens: MuiTokens): Record<string, unknown> => {
|
|
4
4
|
return {
|
|
5
5
|
'& .MuiTableContainer-root': {
|
|
6
6
|
backgroundColor: muiTokens.palette.white,
|
|
7
|
-
borderRadius: '4px'
|
|
7
|
+
borderRadius: '4px',
|
|
8
8
|
},
|
|
9
9
|
'& .MuiTableRow-root': {
|
|
10
10
|
height: '50px',
|
|
11
|
-
borderColor: muiTokens.palette.greyLightDefaultBorder
|
|
11
|
+
borderColor: muiTokens.palette.greyLightDefaultBorder,
|
|
12
12
|
},
|
|
13
13
|
'& .MuiTableRow-head': {
|
|
14
14
|
height: '40px !important',
|
|
15
|
-
borderColor: muiTokens.palette.greyLightDefaultBorder
|
|
15
|
+
borderColor: muiTokens.palette.greyLightDefaultBorder,
|
|
16
16
|
},
|
|
17
17
|
'& .MuiTableCell-head': {
|
|
18
18
|
padding: '0px 16px',
|
|
19
19
|
'& .firstSortIcon': {
|
|
20
|
-
paddingLeft: '4px'
|
|
21
|
-
}
|
|
20
|
+
paddingLeft: '4px',
|
|
21
|
+
},
|
|
22
22
|
},
|
|
23
23
|
'& .MuiTableCell-body': {
|
|
24
|
-
padding: '12px 16px'
|
|
25
|
-
}
|
|
24
|
+
padding: '12px 16px',
|
|
25
|
+
},
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
|