@groupeactual/design-tokens 1.7.9 → 2.0.0-beta.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.
Files changed (108) hide show
  1. package/dist/cjs/index.js +23 -1
  2. package/dist/es/index.d.ts +244 -63
  3. package/dist/es/index.js +23 -1
  4. package/dist/types/helpers/theme.helper.d.ts +5 -0
  5. package/dist/types/index.d.ts +2 -0
  6. package/dist/types/interfaces/theme.interface.d.ts +242 -0
  7. package/dist/types/styled/Accordion.d.ts +4 -0
  8. package/dist/types/styled/Alert.d.ts +4 -0
  9. package/dist/types/styled/Autocomplete.d.ts +4 -0
  10. package/dist/types/styled/Breadcrumbs.d.ts +4 -0
  11. package/dist/types/styled/Button.d.ts +4 -0
  12. package/dist/types/styled/Checkbox.d.ts +4 -0
  13. package/dist/types/styled/Chip.d.ts +4 -0
  14. package/dist/types/styled/Divider.d.ts +4 -0
  15. package/dist/types/styled/FormHelperText.d.ts +4 -0
  16. package/dist/types/styled/FormLabel.d.ts +4 -0
  17. package/dist/types/styled/IconButton.d.ts +4 -0
  18. package/dist/types/styled/InputLabel.d.ts +4 -0
  19. package/dist/types/styled/MenuItem.d.ts +4 -0
  20. package/dist/types/styled/OutlinedInput.d.ts +4 -0
  21. package/dist/types/styled/PaginationItem.d.ts +4 -0
  22. package/dist/types/styled/Radio.d.ts +4 -0
  23. package/dist/types/styled/Select.d.ts +4 -0
  24. package/dist/types/styled/Switch.d.ts +4 -0
  25. package/dist/types/styled/Table.d.ts +4 -0
  26. package/dist/types/styled/TextField.d.ts +4 -0
  27. package/dist/types/styled/Typography.d.ts +4 -0
  28. package/dist/types/theme/theme.d.ts +4 -0
  29. package/package.json +22 -14
  30. package/src/helpers/theme.helper.ts +229 -0
  31. package/src/index.ts +2 -4
  32. package/src/interfaces/theme.interface.ts +270 -0
  33. package/src/styled/Accordion.ts +49 -0
  34. package/src/styled/Alert.ts +83 -0
  35. package/src/styled/Autocomplete.ts +24 -0
  36. package/src/styled/Breadcrumbs.ts +29 -0
  37. package/src/styled/Button.ts +109 -0
  38. package/src/styled/Checkbox.ts +81 -0
  39. package/src/styled/Chip.ts +201 -0
  40. package/src/styled/Divider.ts +24 -0
  41. package/src/styled/FormHelperText.ts +28 -0
  42. package/src/styled/FormLabel.ts +30 -0
  43. package/src/styled/IconButton.ts +161 -0
  44. package/src/styled/InputLabel.ts +30 -0
  45. package/src/styled/MenuItem.ts +73 -0
  46. package/src/styled/OutlinedInput.ts +89 -0
  47. package/src/styled/PaginationItem.ts +72 -0
  48. package/src/styled/Radio.ts +67 -0
  49. package/src/styled/Select.ts +38 -0
  50. package/src/styled/Switch.ts +62 -0
  51. package/src/styled/Table.ts +54 -0
  52. package/src/styled/TextField.ts +105 -0
  53. package/src/styled/Typography.ts +67 -0
  54. package/src/theme/theme.tsx +23 -0
  55. package/src/tokens/tokens.json +667 -6
  56. package/dist/types/src/css/accordionCss.d.ts +0 -3
  57. package/dist/types/src/css/bannerNotificationCss.d.ts +0 -3
  58. package/dist/types/src/css/breadcrumbsCss.d.ts +0 -3
  59. package/dist/types/src/css/buttonCss.d.ts +0 -3
  60. package/dist/types/src/css/chipCss.d.ts +0 -3
  61. package/dist/types/src/css/datatable/datatableCss.d.ts +0 -3
  62. package/dist/types/src/css/form/autoCompleteCss.d.ts +0 -3
  63. package/dist/types/src/css/form/checkboxCss.d.ts +0 -3
  64. package/dist/types/src/css/form/checkboxGroupCss.d.ts +0 -3
  65. package/dist/types/src/css/form/datePickerCss.d.ts +0 -3
  66. package/dist/types/src/css/form/radioCss.d.ts +0 -3
  67. package/dist/types/src/css/form/selectCss.d.ts +0 -3
  68. package/dist/types/src/css/form/snackbarCss.d.ts +0 -3
  69. package/dist/types/src/css/form/textFieldCss.d.ts +0 -3
  70. package/dist/types/src/css/iconButtonCss.d.ts +0 -3
  71. package/dist/types/src/css/index.d.ts +0 -20
  72. package/dist/types/src/css/linkCss.d.ts +0 -3
  73. package/dist/types/src/css/menuItemCss.d.ts +0 -3
  74. package/dist/types/src/css/paginationCss.d.ts +0 -3
  75. package/dist/types/src/css/switchCss.d.ts +0 -3
  76. package/dist/types/src/css/tooltipCss.d.ts +0 -2
  77. package/dist/types/src/helpers/theme.d.ts +0 -4
  78. package/dist/types/src/index.d.ts +0 -4
  79. package/dist/types/src/interfaces/theme.d.ts +0 -16
  80. package/dist/types/src/themes/tokens.d.ts +0 -167
  81. package/dist/types/src/useMaterialThemeTokens.d.ts +0 -6
  82. package/dist/types/src/useThemeTokens.d.ts +0 -6
  83. package/src/css/accordionCss.ts +0 -30
  84. package/src/css/bannerNotificationCss.ts +0 -52
  85. package/src/css/breadcrumbsCss.ts +0 -19
  86. package/src/css/buttonCss.ts +0 -80
  87. package/src/css/chipCss.ts +0 -142
  88. package/src/css/datatable/datatableCss.ts +0 -32
  89. package/src/css/form/autoCompleteCss.ts +0 -340
  90. package/src/css/form/checkboxCss.ts +0 -128
  91. package/src/css/form/checkboxGroupCss.ts +0 -42
  92. package/src/css/form/datePickerCss.ts +0 -117
  93. package/src/css/form/radioCss.ts +0 -102
  94. package/src/css/form/selectCss.ts +0 -233
  95. package/src/css/form/snackbarCss.ts +0 -42
  96. package/src/css/form/textFieldCss.ts +0 -188
  97. package/src/css/iconButtonCss.ts +0 -64
  98. package/src/css/index.ts +0 -20
  99. package/src/css/linkCss.ts +0 -15
  100. package/src/css/menuItemCss.ts +0 -31
  101. package/src/css/paginationCss.ts +0 -59
  102. package/src/css/switchCss.ts +0 -58
  103. package/src/css/tooltipCss.ts +0 -5
  104. package/src/helpers/theme.ts +0 -89
  105. package/src/interfaces/theme.ts +0 -34
  106. package/src/themes/tokens.ts +0 -169
  107. package/src/useMaterialThemeTokens.ts +0 -218
  108. package/src/useThemeTokens.ts +0 -30
@@ -1,3 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
- declare const ButtonCss: (muiTokens: MuiTokens) => Record<string, unknown>;
3
- export default ButtonCss;
@@ -1,3 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
- declare const ChipCss: (muiTokens: MuiTokens) => Record<string, unknown>;
3
- export default ChipCss;
@@ -1,3 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
- declare const DatatableCss: (muiTokens: MuiTokens) => Record<string, unknown>;
3
- export default DatatableCss;
@@ -1,3 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
- declare const AutoCompleteCss: (muiTokens: MuiTokens) => Record<string, unknown>;
3
- export default AutoCompleteCss;
@@ -1,3 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
- declare const CheckboxCss: (muiTokens: MuiTokens) => Record<string, unknown>;
3
- export default CheckboxCss;
@@ -1,3 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
- declare const CheckboxGroupCss: (muiTokens: MuiTokens) => Record<string, unknown>;
3
- export default CheckboxGroupCss;
@@ -1,3 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
- declare const DatePickerCss: (muiTokens: MuiTokens) => Record<string, unknown>;
3
- export default DatePickerCss;
@@ -1,3 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
- declare const RadioCss: (muiTokens: MuiTokens) => Record<string, unknown>;
3
- export default RadioCss;
@@ -1,3 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
- declare const SelectCss: (muiTokens: MuiTokens) => Record<string, unknown>;
3
- export default SelectCss;
@@ -1,3 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
- declare const SnackbarCss: (muiTokens: MuiTokens) => Record<string, unknown>;
3
- export default SnackbarCss;
@@ -1,3 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
- declare const TextFieldCss: (muiTokens: MuiTokens) => Record<string, unknown>;
3
- export default TextFieldCss;
@@ -1,3 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
- declare const IconButtonCss: (muiTokens: MuiTokens) => Record<string, unknown>;
3
- export default IconButtonCss;
@@ -1,20 +0,0 @@
1
- export { default as AccordionStyle } from './accordionCss';
2
- export { default as ButtonStyle } from './buttonCss';
3
- export { default as TooltipStyle } from './tooltipCss';
4
- export { default as ChipStyle } from './chipCss';
5
- export { default as PaginationStyle } from './paginationCss';
6
- export { default as BannerNotificationStyle } from './bannerNotificationCss';
7
- export { default as AutoCompleteStyle } from './form/autoCompleteCss';
8
- export { default as CheckboxStyle } from './form/checkboxCss';
9
- export { default as CheckboxGroupStyle } from './form/checkboxGroupCss';
10
- export { default as RadioStyle } from './form/radioCss';
11
- export { default as SelectStyle } from './form/selectCss';
12
- export { default as SnackbarStyle } from './form/snackbarCss';
13
- export { default as TextFieldStyle } from './form/textFieldCss';
14
- export { default as LinkStyle } from './linkCss';
15
- export { default as BreadcrumbsStyle } from './breadcrumbsCss';
16
- export { default as SwitchStyle } from './switchCss';
17
- export { default as DatePickerStyle } from './form/datePickerCss';
18
- export { default as DatatableStyle } from './datatable/datatableCss';
19
- export { default as IconButtonStyle } from './iconButtonCss';
20
- export { default as MenuItemStyle } from './menuItemCss';
@@ -1,3 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
- declare const LinkCss: (muiTokens: MuiTokens) => Record<string, unknown>;
3
- export default LinkCss;
@@ -1,3 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
- declare const MenuItemCss: (muiTokens: MuiTokens) => Record<string, unknown>;
3
- export default MenuItemCss;
@@ -1,3 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
- declare const PaginationCss: (muiTokens: MuiTokens) => Record<string, unknown>;
3
- export default PaginationCss;
@@ -1,3 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
- declare const SwitchCss: (muiTokens: MuiTokens) => Record<string, unknown>;
3
- export default SwitchCss;
@@ -1,2 +0,0 @@
1
- declare const TooltipCss: () => Record<string, unknown>;
2
- export default TooltipCss;
@@ -1,4 +0,0 @@
1
- import { Theme, Types } from '@/interfaces/theme';
2
- export declare const getTokensByType: (themeName: Theme, type: Types) => Record<string, string>;
3
- export declare const getMuiPalette: (themeName: Theme) => Record<string, string | number | unknown>;
4
- export declare const getFontFamilies: (themeName: Theme) => string[];
@@ -1,4 +0,0 @@
1
- export { default as useThemeTokens } from './useThemeTokens';
2
- export { default as useMaterialThemeTokens } from './useMaterialThemeTokens';
3
- export * from './interfaces/theme';
4
- export * from './css';
@@ -1,16 +0,0 @@
1
- export interface DesignTokens {
2
- fontSize: Record<string, string | number>;
3
- fontWeights: Record<string, string | number>;
4
- lineHeights: Record<string, string | number>;
5
- fontFamilies: string[];
6
- letterSpacing: Record<string, string | number>;
7
- paragraphSpacing: Record<string, string | number>;
8
- textCase: Record<string, string | number>;
9
- textDecoration: Record<string, string | number>;
10
- colors: Record<string, string | Record<string, string>>;
11
- spacing: Record<string, string | number>;
12
- sizing: Record<string, string | number>;
13
- }
14
- export type Types = 'FontSize' | 'FontWeights' | 'LineHeights' | 'Colors' | 'Spacing' | 'Sizing' | 'FontFamilies' | 'LetterSpacing' | 'ParagraphSpacing' | 'TextCase' | 'TextDecoration';
15
- export type Theme = 'Default' | 'Ep';
16
- export type MuiTokens = Record<string, any>;
@@ -1,167 +0,0 @@
1
- /**
2
- * Do not edit directly
3
- * Generated on Thu, 23 Feb 2023 15:24:19 GMT
4
- */
5
- export declare const DefaultWebShadowAllContent: {
6
- color: string;
7
- type: string;
8
- x: string;
9
- y: string;
10
- blur: string;
11
- spread: string;
12
- };
13
- export declare const DefaultSpacingXxs = "4";
14
- export declare const DefaultSpacingXs = "8";
15
- export declare const DefaultSpacingMd = "16";
16
- export declare const DefaultSpacingLg = "24";
17
- export declare const DefaultSpacingXl = "32";
18
- export declare const DefaultSpacingXxl = "40";
19
- export declare const DefaultSpacingXxxl = "72";
20
- export declare const DefaultBorderRadius4 = "4";
21
- export declare const DefaultBorderRadius8 = "8";
22
- export declare const DefaultBorderRadius16 = "16";
23
- export declare const DefaultBorderRadius24 = "24";
24
- export declare const DefaultSizingXs = "8";
25
- export declare const DefaultSizingSm = "12";
26
- export declare const DefaultSizingMd = "16";
27
- export declare const DefaultSizingLg = "24";
28
- export declare const DefaultSizingXl = "32";
29
- export declare const DefaultSizingXxl = "40";
30
- export declare const DefaultSizingXxxl = "72";
31
- export declare const DefaultFontFamiliesRoboto = "Roboto";
32
- export declare const DefaultLineHeights12 = "12";
33
- export declare const DefaultLineHeights16 = "16";
34
- export declare const DefaultLineHeights18 = "18";
35
- export declare const DefaultLineHeights21 = "21";
36
- export declare const DefaultLineHeights28 = "28";
37
- export declare const DefaultLineHeights34 = "34";
38
- export declare const DefaultLineHeights41 = "41";
39
- export declare const DefaultLineHeights49 = "49";
40
- export declare const DefaultFontWeightsRoboto700 = "Bold";
41
- export declare const DefaultFontWeightsRoboto500 = "Medium";
42
- export declare const DefaultFontWeightsRoboto400 = "Regular";
43
- export declare const DefaultFontSize11 = "11";
44
- export declare const DefaultFontSize13 = "13";
45
- export declare const DefaultFontSize14 = "14";
46
- export declare const DefaultFontSize16 = "16";
47
- export declare const DefaultFontSize18 = "18";
48
- export declare const DefaultFontSize24 = "24";
49
- export declare const DefaultFontSize29 = "29";
50
- export declare const DefaultFontSize35 = "35";
51
- export declare const DefaultFontSize42 = "42";
52
- export declare const DefaultLetterSpacingNone = "none";
53
- export declare const DefaultParagraphSpacing0 = "0";
54
- export declare const DefaultParagraphSpacing8 = "8";
55
- export declare const DefaultTextCaseNone = "none";
56
- export declare const DefaultTextDecorationNone = "none";
57
- export declare const DefaultTextDecorationUnderline = "underline";
58
- export declare const DefaultDefaultColorsRedActual = "#e40521";
59
- export declare const DefaultDefaultColorsBlueClickable = "#136cac";
60
- export declare const DefaultDefaultColorsBlueHoverClickable = "#004f88";
61
- export declare const DefaultDefaultColorsGreyMediumInactive = "#808080";
62
- export declare const DefaultDefaultColorsTextColorsGreyXDark = "#272727";
63
- export declare const DefaultDefaultColorsTextColorsGreyDark = "#545352";
64
- export declare const DefaultDefaultColorsBackgroundColorsWhite = "#ffffff";
65
- export declare const DefaultDefaultColorsBackgroundColorsGreyXLight = "#f0f0f0";
66
- export declare const DefaultDefaultColorsBackgroundColorsGreyXDarkBgModal = "#27272780";
67
- export declare const DefaultDefaultColorsBackgroundColorsBlueHoverEquivalence = "#e8f1f7";
68
- export declare const DefaultDefaultColorsBackgroundColorsBlueHoverOpacity12 = "#136cac1f";
69
- export declare const DefaultDefaultColorsBorderColorsGreyLightDefaultBorder = "#cbcbcb";
70
- export declare const DefaultDefaultColorsNotificationColorsBlueInfo = "#1d91c3";
71
- export declare const DefaultDefaultColorsNotificationColorsGreenSuccess = "#23956d";
72
- export declare const DefaultDefaultColorsNotificationColorsOrangeWarning = "#e46221";
73
- export declare const DefaultDefaultColorsNotificationColorsRedError = "#b80025";
74
- export declare const DefaultDefaultColorsSecondaryColorsBlueDark = "#0d2c54";
75
- export declare const DefaultDefaultColorsSecondaryColorsBlueMedium = "#3d5a80";
76
- export declare const DefaultDefaultColorsSecondaryColorsBlueLight = "#7fdcea";
77
- export declare const DefaultDefaultColorsSecondaryColorsGreenDark = "#125e42";
78
- export declare const DefaultDefaultColorsSecondaryColorsGreenMedium = "#1f8461";
79
- export declare const DefaultDefaultColorsSecondaryColorsGreen = "#5dca8b";
80
- export declare const DefaultDefaultColorsSecondaryColorsGreenLight = "#bad07a";
81
- export declare const DefaultDefaultColorsSecondaryColorsBrown = "#6f2902";
82
- export declare const DefaultDefaultColorsSecondaryColorsBrownLight = "#b65700";
83
- export declare const DefaultDefaultColorsSecondaryColorsOrangeLight = "#f59b00";
84
- export declare const DefaultDefaultColorsSecondaryColorsYellow = "#f9d25e";
85
- export declare const DefaultDefaultColorsSecondaryColorsPurpleDark = "#530d48";
86
- export declare const DefaultDefaultColorsSecondaryColorsPurple = "#831443";
87
- export declare const DefaultDefaultColorsSecondaryColorsPink = "#ca1e5c";
88
- export declare const DefaultDefaultColorsSecondaryColorsPinkLight = "#fd6972";
89
- export declare const EpAppShadowAllContent: {
90
- color: string;
91
- type: string;
92
- x: string;
93
- y: string;
94
- blur: string;
95
- spread: string;
96
- };
97
- export declare const EpAppShadowButtomMenu: {
98
- color: string;
99
- type: string;
100
- x: string;
101
- y: string;
102
- blur: string;
103
- spread: string;
104
- };
105
- export declare const EpBorderRadius4 = "4";
106
- export declare const EpBorderRadius8 = "8";
107
- export declare const EpBorderRadius16 = "16";
108
- export declare const EpBorderRadius24 = "24";
109
- export declare const EpSpacingXxs = "4";
110
- export declare const EpSpacingXs = "8";
111
- export declare const EpSpacingMd = "16";
112
- export declare const EpSpacingLg = "24";
113
- export declare const EpSpacingXl = "32";
114
- export declare const EpSpacingXxl = "40";
115
- export declare const EpSpacingXxxl = "72";
116
- export declare const EpColorsRed = "#e11c31";
117
- export declare const EpColorsRedHover = "#b61425";
118
- export declare const EpColorsGreenBlue = "#159f9f";
119
- export declare const EpColorsGreenBlueHover = "#128888";
120
- export declare const EpColorsGreyMediumInactive = "#808080";
121
- export declare const EpColorsBlack = "#161616";
122
- export declare const EpColorsGreyDark = "#676767";
123
- export declare const EpColorsWhite = "#ffffff";
124
- export declare const EpColorsRedLight = "#fff7f5";
125
- export declare const EpColorsGreenLight = "#f2f8f8";
126
- export declare const EpColorsGreyDarkBgModal = "#67676780";
127
- export declare const EpColorsGreyLightBorder = "#cbcbcb";
128
- export declare const EpColorsBlueInfo = "#1d91c3";
129
- export declare const EpColorsGreenSucces = "#23956d";
130
- export declare const EpColorsOrangeWarning = "#e46221";
131
- export declare const EpColorsRedError = "#b80025";
132
- export declare const EpColorsGrey = "#acc1cc";
133
- export declare const EpColorsRedPastel = "#feefeb";
134
- export declare const EpColorsGreenPastel = "#e4f1f1";
135
- export declare const EpColorsGreyPastel = "#eaf2f6";
136
- export declare const EpSizingXs = "8";
137
- export declare const EpSizingSm = "12";
138
- export declare const EpSizingMd = "16";
139
- export declare const EpSizingLg = "24";
140
- export declare const EpSizingXl = "32";
141
- export declare const EpSizingXxl = "40";
142
- export declare const EpSizingXxxl = "72";
143
- export declare const EpFontFamiliesManrope = "Manrope";
144
- export declare const EpFontFamiliesOpenSans = "Open Sans";
145
- export declare const EpLineHeights14 = "14";
146
- export declare const EpLineHeights16 = "16";
147
- export declare const EpLineHeights20 = "20";
148
- export declare const EpLineHeights24 = "24";
149
- export declare const EpLineHeights26 = "26";
150
- export declare const EpLineHeights34 = "34";
151
- export declare const EpFontWeightsManrope700 = "Bold";
152
- export declare const EpFontWeightsManrope500 = "Medium";
153
- export declare const EpFontWeightsOpenSans400 = "Regular";
154
- export declare const EpFontWeightsOpenSans600 = "SemiBold";
155
- export declare const EpFontWeightsOpenSans700 = "Bold";
156
- export declare const EpFontSize10 = "10";
157
- export declare const EpFontSize12 = "12";
158
- export declare const EpFontSize14 = "14";
159
- export declare const EpFontSize16 = "16";
160
- export declare const EpFontSize18 = "18";
161
- export declare const EpFontSize24 = "24";
162
- export declare const EpLetterSpacingNone = "none";
163
- export declare const EpParagraphSpacing0 = "0";
164
- export declare const EpParagraphSpacing8 = "8";
165
- export declare const EpTextCaseNone = "none";
166
- export declare const EpTextDecorationNone = "none";
167
- export declare const EpTextDecorationUnderline = "underline";
@@ -1,6 +0,0 @@
1
- import { MuiTokens, Theme } from './interfaces/theme';
2
- interface useMaterialThemeTokensReturnType {
3
- muiTokens: MuiTokens;
4
- }
5
- declare const useMaterialThemeTokens: (themeName: Theme) => useMaterialThemeTokensReturnType;
6
- export default useMaterialThemeTokens;
@@ -1,6 +0,0 @@
1
- import { DesignTokens, Theme } from './interfaces/theme';
2
- interface useThemeTokensReturnType {
3
- tokens: DesignTokens;
4
- }
5
- declare const useThemeTokens: (themeName: Theme) => useThemeTokensReturnType;
6
- export default useThemeTokens;
@@ -1,30 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
-
3
- const AccordionCss = (muiTokens: MuiTokens): Record<string, unknown> => {
4
- return {
5
- '&.MuiAccordion-root': {
6
- border: `1px solid`,
7
- borderColor: muiTokens.palette.greyLightDefaultBorder,
8
- boxShadow: 'none',
9
- '.MuiAccordionSummary-root': {
10
- minHeight: 'auto !important',
11
- padding: '8px 16px',
12
- color: muiTokens.palette.greyXDark,
13
- fontWeight: muiTokens.typography.fontWeightMedium,
14
- fontSize: '18px',
15
- lineHeight: '21px',
16
- },
17
- '.MuiAccordionDetails-root': {
18
- padding: '16px',
19
- borderBottomLeftRadius: '4px',
20
- borderBottomRightRadius: '4px',
21
- },
22
- '.MuiAccordionSummary-expandIconWrapper .MuiBox-root': {
23
- width: 'auto',
24
- padding: '13px',
25
- },
26
- },
27
- };
28
- };
29
-
30
- export default AccordionCss;
@@ -1,52 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
-
3
- const bannerNotificationCss = (
4
- muiTokens: MuiTokens,
5
- ): Record<string, unknown> => {
6
- return {
7
- '&.MuiPaper-root': {
8
- height: '50px',
9
- paddingLeft: '24px',
10
- paddingRight: '24px',
11
- borderRadius: 0,
12
- '&.MuiAlert-root': {
13
- color: 'white',
14
- fontWeight: '700',
15
- fontSize: '14px',
16
- maxWidth: '1600px',
17
- },
18
- '.MuiAlert-icon': {
19
- opacity: 1 + ' !important',
20
- alignItems: 'center',
21
- marginRight: '8px',
22
- },
23
- '.MuiAlert-message': {
24
- alignSelf: 'center',
25
- },
26
- '.MuiSvgIcon-root': {
27
- color: 'white',
28
- '-webkit-tap-highlight-color': 'white',
29
- },
30
- '.MuiAlert-action': {
31
- cursor: 'pointer',
32
- marginRight: 0,
33
- padding: 0,
34
- alignSelf: 'center',
35
- },
36
- '&.MuiAlert-standardInfo': {
37
- backgroundColor: muiTokens.palette.blueInfo,
38
- },
39
- '&.MuiAlert-standardWarning': {
40
- backgroundColor: muiTokens.palette.orangeWarning,
41
- },
42
- '&.MuiAlert-standardError': {
43
- backgroundColor: muiTokens.palette.redError,
44
- },
45
- '&.MuiAlert-standardSuccess': {
46
- backgroundColor: muiTokens.palette.greenSuccess,
47
- },
48
- },
49
- };
50
- };
51
-
52
- export default bannerNotificationCss;
@@ -1,19 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
-
3
- const BreadcrumbsCss = (muiTokens: MuiTokens): Record<string, unknown> => {
4
- return {
5
- '&.MuiBreadcrumbs-root': {
6
- margin: 0,
7
- padding: '4px 0',
8
- },
9
- '& .MuiBreadcrumbs-separator': {
10
- margin: 0,
11
- padding: '0 4px',
12
- },
13
- '& .MuiTypography-body1': {
14
- color: muiTokens.palette.greyDark,
15
- },
16
- };
17
- };
18
-
19
- export default BreadcrumbsCss;
@@ -1,80 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
-
3
- const ButtonCss = (muiTokens: MuiTokens): Record<string, unknown> => {
4
- return {
5
- '@font-face': {
6
- fontFamily: 'Roboto',
7
- },
8
- '&.MuiButton-root': {
9
- borderRadius: '4px',
10
- padding: '7.5px 16px',
11
- fontWeight: muiTokens.typography.fontWeightBold,
12
- lineHeight: '18px',
13
- textTransform: 'unset',
14
- fontSize: '14px',
15
- height: '44px',
16
- border: '1px solid',
17
- borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important',
18
- '.MuiSvgIcon-root': {
19
- paddingBottom: '2px',
20
- },
21
- },
22
- '&.MuiButton-primary': {
23
- '.MuiTypography-buttonNotif': {
24
- color: muiTokens.palette.white + ' !important',
25
- },
26
- color: muiTokens.palette.white + ' !important',
27
- backgroundColor: muiTokens.palette.blueClickable + ' !important',
28
- border: '1px solid' + ' !important',
29
- borderColor: muiTokens.palette.blueClickable + ' !important',
30
- '&.Mui-disabled': {
31
- '.MuiTypography-buttonNotif': {
32
- color: muiTokens.palette.white + ' !important',
33
- },
34
- backgroundColor: muiTokens.palette.greyMediumInactive + ' !important',
35
- borderColor: muiTokens.palette.greyMediumInactive + ' !important',
36
- color: muiTokens.palette.white + ' !important',
37
- },
38
- '&:hover': {
39
- backgroundColor: muiTokens.palette.blueHoverClickable + ' !important',
40
- borderColor: muiTokens.palette.blueHoverClickable + ' !important',
41
- },
42
- },
43
- '&.MuiButton-secondary': {
44
- '.MuiTypography-buttonNotif': {
45
- color: muiTokens.palette.blueClickable + ' !important',
46
- },
47
- color: muiTokens.palette.blueClickable,
48
- backgroundColor: muiTokens.palette.white + ' !important',
49
- border: '1px solid',
50
- borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important',
51
- '.MuiSvgIcon-root': {
52
- color: muiTokens.palette.blueClickable,
53
- },
54
- '&.Mui-disabled': {
55
- '.MuiTypography-buttonNotif': {
56
- color: muiTokens.palette.greyMediumInactive + ' !important',
57
- },
58
- backgroundColor: muiTokens.palette.white,
59
- borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important',
60
- color: muiTokens.palette.greyMediumInactive + ' !important',
61
- '.MuiSvgIcon-root': {
62
- color: muiTokens.palette.greyMediumInactive + ' !important',
63
- },
64
- },
65
- '&:hover': {
66
- '.MuiSvgIcon-root': {
67
- color: muiTokens.palette.blueHoverClickable + ' !important',
68
- },
69
- borderColor: muiTokens.palette.blueHoverClickable + ' !important',
70
- backgroundColor: muiTokens.palette.white + ' !important',
71
- color: muiTokens.palette.blueHoverClickable + ' !important',
72
- },
73
- },
74
- '&:hover': {
75
- backgroundColor: 'transparent !important',
76
- },
77
- };
78
- };
79
-
80
- export default ButtonCss;
@@ -1,142 +0,0 @@
1
- import { MuiTokens } from '@/interfaces/theme';
2
-
3
- const ChipCss = (muiTokens: MuiTokens): Record<string, unknown> => {
4
- return {
5
- '&.MuiChip-root': {
6
- color: muiTokens.palette.greyXDark,
7
- borderRadius: '4px',
8
- fontWeight: muiTokens.palette.fontWeightRegular,
9
- fontSize: '14px',
10
- paddingLeft: '8px',
11
- paddingRight: '8px',
12
- '& .MuiChip-deleteIcon': {
13
- color: muiTokens.palette.blueClickable,
14
- cursor: 'default',
15
- width: 'auto',
16
- height: 'auto',
17
- },
18
- '&.Mui-disabled': {
19
- '.MuiChip-deleteIcon .MuiSvgIcon-root': {
20
- color: muiTokens.palette.greyMediumInactive + ' !important',
21
- },
22
- color: muiTokens.palette.greyDark + ' !important',
23
- backgroundColor: muiTokens.palette.greyXLight + ' !important',
24
- border: '1px solid',
25
- fontWeight: muiTokens.palette.fontWeightRegular,
26
- borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important',
27
- opacity: 1,
28
- },
29
- '.MuiChip-deleteIcon': {
30
- width: '12px',
31
- height: '12px',
32
- margin: 0,
33
- marginLeft: '8px',
34
- marginRight: '2px',
35
- },
36
- '.MuiChip-label': {
37
- padding: 0,
38
- lineHeight: '18px',
39
- },
40
- '.MuiChip-avatar': {
41
- marginLeft: '-1px',
42
- marginRight: '5px',
43
- color: 'initial',
44
- },
45
- },
46
- '&.MuiChip-filled': {
47
- border: 'none',
48
- fontWeight: 400,
49
- color: muiTokens.palette.greyXDark,
50
- },
51
- '&.MuiChip-outlined': {
52
- border: '1px solid',
53
- fontWeight: muiTokens.typography.fontWeightRegular,
54
- },
55
- '&.MuiChip-status': {
56
- border: '1px solid !important',
57
- fontWeight: muiTokens.typography.fontWeightRegular,
58
- },
59
- '&.MuiChip-statusFilled': {
60
- border: 'none !important',
61
- color: muiTokens.palette.greyXDark + ' !important',
62
- fontWeight: muiTokens.typography.fontWeightRegular + ' !important',
63
- },
64
- '&.MuiChip-sizeSmall': {
65
- height: '24px',
66
- paddingY: '3px',
67
- },
68
- '&.MuiChip-sizeMedium': {
69
- height: '33px',
70
- paddingY: '8px',
71
- },
72
- '&.MuiChip-colorDefault': {
73
- backgroundColor: muiTokens.palette.greyXLight,
74
- border: 'none',
75
- fontWeight: muiTokens.typography.fontWeightRegular + ' !important',
76
- color: muiTokens.palette.greyXDark,
77
- },
78
- '&.MuiChip-colorSecondary': {
79
- borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important',
80
- fontWeight: muiTokens.typography.fontWeightRegular + ' !important',
81
- backgroundColor: muiTokens.palette.white,
82
- },
83
- '&.MuiChip-colorPrimary': {
84
- backgroundColor: muiTokens.palette.blueClickable + ' !important',
85
- color: muiTokens.palette.white + ' !important',
86
- fontWeight: muiTokens.typography.fontWeightBold,
87
- '& .MuiChip-deleteIcon': {
88
- color: muiTokens.palette.white + ' !important',
89
- },
90
- },
91
- '&.MuiChip-colorSuccess': {
92
- border: '1px solid',
93
- borderColor: muiTokens.palette.greenSuccess + ' !important',
94
- color: muiTokens.palette.greenSuccess,
95
- fontWeight: muiTokens.typography.fontWeightBold,
96
- '& .MuiChip-avatar': {
97
- color: muiTokens.palette.greenSuccess + ' !important',
98
- },
99
- '& .MuiChip-deleteIcon': {
100
- color: muiTokens.palette.blueInfo + ' !important',
101
- },
102
- },
103
- '&.MuiChip-colorWarning': {
104
- border: '1px solid',
105
- borderColor: muiTokens.palette.orangeWarning + ' !important',
106
- color: muiTokens.palette.orangeWarning,
107
- fontWeight: muiTokens.typography.fontWeightBold,
108
- '& .MuiChip-avatar': {
109
- color: muiTokens.palette.orangeWarning + ' !important',
110
- },
111
- '& .MuiChip-deleteIcon': {
112
- color: muiTokens.palette.blueInfo + ' !important',
113
- },
114
- },
115
- '&.MuiChip-colorInfo': {
116
- border: '1px solid',
117
- borderColor: muiTokens.palette.blueInfo + ' !important',
118
- color: muiTokens.palette.blueInfo,
119
- fontWeight: muiTokens.typography.fontWeightBold,
120
- '& .MuiChip-avatar': {
121
- color: muiTokens.palette.blueInfo + ' !important',
122
- },
123
- '& .MuiChip-deleteIcon': {
124
- color: muiTokens.palette.blueInfo + ' !important',
125
- },
126
- },
127
- '&.MuiChip-colorError': {
128
- border: '1px solid',
129
- borderColor: muiTokens.palette.redError + ' !important',
130
- color: muiTokens.palette.redError,
131
- fontWeight: muiTokens.typography.fontWeightBold,
132
- '& .MuiChip-avatar': {
133
- color: muiTokens.palette.redError + ' !important',
134
- },
135
- '& .MuiChip-deleteIcon': {
136
- color: muiTokens.palette.blueInfo + ' !important',
137
- },
138
- },
139
- };
140
- };
141
-
142
- export default ChipCss;