@galaxy-ds/core 2.0.11 → 2.0.13

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 (42) hide show
  1. package/dist/Icons/leap/AutoTimerDarkTheme.d.ts +2 -0
  2. package/dist/Icons/leap/AutoTimerLightTheme.d.ts +2 -0
  3. package/dist/Icons/leap/ManualEntryDarkTheme.d.ts +2 -0
  4. package/dist/Icons/leap/ManualEntryLightTheme.d.ts +2 -0
  5. package/dist/Icons/leap/index.d.ts +4 -0
  6. package/dist/Theme/leap/desktop/design-tokens/components/chip.d.ts +1 -0
  7. package/dist/Theme/leap/web/design-tokens/components/chip.d.ts +1 -0
  8. package/dist/index.esm.js +107 -57
  9. package/dist/index.esm.js.map +1 -1
  10. package/dist/index.js +110 -56
  11. package/dist/index.js.map +1 -1
  12. package/dist/package.json +1 -1
  13. package/package.json +1 -1
  14. package/src/Chip/Chip.stories.mdx +17 -74
  15. package/src/Icons/leap/AutoTimer24.tsx +2 -13
  16. package/src/Icons/leap/AutoTimerDarkTheme.tsx +13 -0
  17. package/src/Icons/leap/AutoTimerFilled24.tsx +4 -6
  18. package/src/Icons/leap/AutoTimerLightTheme.tsx +12 -0
  19. package/src/Icons/leap/ManualEntry24.tsx +2 -18
  20. package/src/Icons/leap/ManualEntryDarkTheme.tsx +11 -0
  21. package/src/Icons/leap/ManualEntryFilled24.tsx +1 -18
  22. package/src/Icons/leap/ManualEntryLightTheme.tsx +10 -0
  23. package/src/Icons/leap/Timer24.tsx +4 -6
  24. package/src/Icons/leap/TimerFillled24.tsx +3 -6
  25. package/src/Icons/leap/icons.ts +15 -0
  26. package/src/Icons/leap/index.ts +4 -0
  27. package/src/Icons/leap-icons.stories.mdx +71 -1
  28. package/src/MenuItem/MenuItem.stories.mdx +2 -2
  29. package/src/Theme/leap/desktop/design-tokens/components/chip.ts +2 -1
  30. package/src/Theme/leap/desktop/overrides/Dialog/dialog.ts +5 -4
  31. package/src/Theme/leap/desktop/overrides/listItemIcon.ts +0 -1
  32. package/src/Theme/leap/desktop/overrides/menu.ts +36 -33
  33. package/src/Theme/leap/desktop/overrides/menuItem.ts +38 -10
  34. package/src/Theme/leap/desktop/overrides/tooltip.ts +4 -5
  35. package/src/Theme/leap/desktop/theme.ts +2 -0
  36. package/src/Theme/leap/web/design-tokens/components/chip.ts +2 -1
  37. package/src/Theme/leap/web/overrides/Dialog/dialog.ts +4 -6
  38. package/src/Theme/leap/web/overrides/menu.ts +8 -6
  39. package/src/Theme/leap/web/overrides/menuItem.ts +19 -8
  40. package/src/Theme/leap/web/overrides/tooltip.ts +1 -2
  41. package/src/Theme/leap/web/theme.ts +2 -0
  42. package/src/stories/ReleaseNotes.stories.mdx +1 -0
@@ -21,15 +21,12 @@ export const menuItemOverrides: Components<Theme>['MuiMenuItem'] = {
21
21
  color: '#fff',
22
22
  },
23
23
  '&.Mui-selected': {
24
- backgroundColor: '#0078D7',
24
+ backgroundColor: '#4e9af7',
25
25
  '& .MuiListItemText-root': {
26
26
  color: '#fff',
27
27
  },
28
28
  },
29
- '&.gds-menu-item-icon .MuiListItemIcon-root': {
30
- display: 'none',
31
- },
32
- '.customMultipleList &$selected': {
29
+ '&.customMultipleList .Mui-selected': {
33
30
  backgroundColor: '#fff',
34
31
  },
35
32
  '&.Mui-selected:hover': {
@@ -69,36 +66,67 @@ export const menuItemOverrides: Components<Theme>['MuiMenuItem'] = {
69
66
  '& .MuiDivider-root': {
70
67
  marginLeft: 32,
71
68
  },
69
+ '&.gds-menu-item-icon': {
70
+ paddingLeft: 0,
71
+ '& .MuiSvgIcon-root': {
72
+ fontSize: 15,
73
+ },
74
+ '& .MuiListItemIcon-root': {
75
+ color: theme.palette.text.primary,
76
+ minWidth: 22,
77
+ height: 22,
78
+ display: 'flex',
79
+ alignItems: 'center',
80
+ justifyContent: 'center',
81
+ },
82
+ '&.Mui-selected': {
83
+ '& .MuiListItemIcon-root': {
84
+ color: '#fff',
85
+ backgroundColor: '#4e9af7'
86
+ },
87
+ },
88
+ '&:hover .MuiListItemIcon-root': {
89
+ color: '#fff',
90
+ backgroundColor: '#0078D7',
91
+ },
92
+ },
72
93
  '&.gds-menu-item-system': {
94
+ borderRadius: theme.shapes.sm,
73
95
  minHeight: 22,
74
96
  maxHeight: 22,
75
97
  padding: 0,
76
98
  paddingLeft: 32,
77
99
  paddingRight: 10,
78
- backgroundColor: theme.palette.grey[100],
100
+ marginTop: theme.shapes.sm,
101
+ marginBottom: theme.shapes.sm,
102
+ backgroundColor: '#F9F9F9',
79
103
  color: theme.palette.text.primary,
80
104
  ...theme.typography.body2,
81
105
  '&:hover': {
82
- backgroundColor: '#91C9F7',
106
+ backgroundColor: '#EDEDEE',
83
107
  color: theme.palette.text.primary,
84
108
  },
85
109
  '&:hover .MuiListItemText-root .MuiTypography-root': {
86
110
  color: theme.palette.text.primary,
87
111
  },
112
+ '&:hover .MuiListItemIcon-root': {
113
+ backgroundColor: '#EDEDEE',
114
+ borderRadius: theme.shapes.sm,
115
+ },
88
116
  '&.Mui-selected': {
89
- backgroundColor: theme.palette.grey[100],
117
+ backgroundColor: "#EDEDEE",
90
118
  '& .MuiListItemText-root': {
91
119
  color: theme.palette.text.primary,
92
120
  },
93
121
  '& .MuiListItemIcon-root': {
94
- backgroundColor: '#91C9F7',
122
+ backgroundColor: '#EDEDEE',
123
+ borderRadius: theme.shapes.sm,
95
124
  },
96
125
  '& svg': {
97
126
  color: theme.palette.text.primary,
98
127
  },
99
128
  },
100
129
  '&.Mui-selected:hover': {
101
- backgroundColor: '#91C9F7',
102
130
  color: theme.palette.text.primary,
103
131
  '& svg': {
104
132
  color: theme.palette.text.primary,
@@ -2,14 +2,13 @@ import { Components, Theme } from '@mui/material';
2
2
 
3
3
  export const tooltipOverrides: Components<Theme>['MuiTooltip'] = {
4
4
  styleOverrides: {
5
- tooltip: ({theme}) => ({
5
+ tooltip: ({ theme }) => ({
6
6
  fontSize: theme.typography.body2.fontSize,
7
- borderRadius: 1,
7
+ borderRadius: 2,
8
8
  color: theme.palette.text.primary,
9
9
  backgroundColor: theme.palette.grey[50],
10
10
  padding: 3,
11
- maxWidth: 'auto',
12
- boxShadow: '0px 2px 8px rgba(0, 0, 0, 0.21)',
11
+ boxShadow: ' 0px 2px 3px 0px #00000040',
13
12
  marginTop: 0,
14
13
  }),
15
14
  tooltipPlacementTop: {
@@ -22,4 +21,4 @@ export const tooltipOverrides: Components<Theme>['MuiTooltip'] = {
22
21
  display: 'none',
23
22
  },
24
23
  },
25
- };
24
+ };
@@ -191,5 +191,7 @@ theme = createTheme(theme, {
191
191
 
192
192
  theme.shadows[3] = '2px 3px 4px 0 rgba(0,0,0,0.5)';
193
193
  theme.shadows[4] = '0px 4px 20px 0px #00000036'; //Shadow / Modal Window
194
+ theme.shadows[5] = '0px 10px 10px -5px rgba(0, 0, 0, 0.04), 0px 20px 25px -5px rgba(0, 0, 0, 0.1)';
195
+ theme.shadows[6] = '0px 2px 4px -1px rgba(0, 0, 0, 0.06),0px 4px 6px -1px rgba(0, 0, 0, 0.1)'; // Menu System
194
196
 
195
197
  export default theme;
@@ -57,7 +57,8 @@ const chip = {
57
57
  fontWeight: '400',
58
58
  fontSize: '12px',
59
59
  height: '20px',
60
- iconBorder: '1px solid #d4d4d4'
60
+ iconBorder: '1px solid #d4d4d4',
61
+ paddingLabel: '8px',
61
62
  },
62
63
  }
63
64
  }
@@ -57,11 +57,12 @@ export const dialogOverrides: Components<Theme>['MuiDialog'] = {
57
57
  }
58
58
  },
59
59
  },
60
+
61
+
60
62
  "&.gds-modal--desktop": {
61
63
  '& .gds-modal_paper': {
62
64
  color: "#444444",
63
- border: '1px solid #CCCCCC',
64
- boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.21)',
65
+ boxShadow: theme.shadows[5],
65
66
  maxWidth: 502,
66
67
  "&:focus": {
67
68
  outline: 'none',
@@ -125,12 +126,9 @@ export const dialogOverrides: Components<Theme>['MuiDialog'] = {
125
126
  },
126
127
  }),
127
128
  paper: ({ theme }) => ({
128
- border: '1px solid #CCCCCC',
129
- boxShadow: '0px 4px 20px rgba(0, 0, 0, 0.21)',
130
- background: theme.palette.grey[100],
131
129
  "& .MuiDialogTitle-root + .MuiDialogContent-root": {
132
130
  "&:not(.gds-disablePaddings)": {
133
- paddingTop: 12,
131
+ paddingTop: 16,
134
132
  },
135
133
  },
136
134
  }),
@@ -10,6 +10,7 @@ export const menuOverrides: Components<Theme>['MuiMenu'] = {
10
10
  marginTop: 1,
11
11
  paddingTop: 4,
12
12
  paddingBottom: 4,
13
+ borderRadius: 4,
13
14
  },
14
15
 
15
16
  '& .customDropdown': {
@@ -19,10 +20,12 @@ export const menuOverrides: Components<Theme>['MuiMenu'] = {
19
20
  },
20
21
 
21
22
  "&.gds-menu-system .MuiPaper-root": {
22
- color: "#d4d4d4",
23
- border: "1px solid #CCCCCC",
24
- backgroundColor: "#eeeeee",
25
- padding: "0 2px",
23
+ color: '#d4d4d4',
24
+ border: '1px solid #CCCCCC',
25
+ boxShadow: theme.shadows[6],
26
+ borderRadius: theme.shapes.sm,
27
+ backgroundColor: '#F9F9F9',
28
+ padding: '0 4px',
26
29
  minWidth: 180,
27
30
  "& .MuiListSubheader-root": {
28
31
  fontSize: theme.typography.body2.fontSize,
@@ -30,10 +33,9 @@ export const menuOverrides: Components<Theme>['MuiMenu'] = {
30
33
  },
31
34
  }),
32
35
  list: {
33
- padding: '2px 0',
36
+ padding: 0,
34
37
  '& .MuiListSubheader-root': {
35
38
  pointerEvents: 'none',
36
- background: 'none',
37
39
  },
38
40
  },
39
41
  }
@@ -6,7 +6,7 @@ export const menuItemOverrides: Components<Theme>['MuiMenuItem'] = {
6
6
  '&.MuiMenuItem-root': {
7
7
  lineHeight: 1.5715,
8
8
  letterSpacing: '0.01rem',
9
- padding: '.375rem 1.25rem',
9
+ padding: '.25rem 1.25rem',
10
10
  '& .MuiListItemText-root .MuiTypography-root': {
11
11
  fontSize: '.8125rem',
12
12
  },
@@ -95,33 +95,42 @@ export const menuItemOverrides: Components<Theme>['MuiMenuItem'] = {
95
95
  },
96
96
  },
97
97
  '&.gds-menu-item-system': {
98
+ borderRadius: theme.shapes.sm,
98
99
  minHeight: 22,
99
100
  maxHeight: 22,
100
101
  padding: 0,
101
102
  paddingLeft: 32,
102
103
  paddingRight: 10,
103
- backgroundColor: theme.palette.grey[100],
104
+ marginTop: theme.shapes.sm,
105
+ marginBottom: theme.shapes.sm,
106
+ backgroundColor: '#F9F9F9',
104
107
  color: theme.palette.text.primary,
105
108
  ...theme.typography.body2,
106
109
  '&:hover': {
107
- backgroundColor: '#91C9F7',
110
+ backgroundColor: '#EDEDEE',
108
111
  color: theme.palette.text.primary,
109
112
  },
110
113
  '&:hover .MuiListItemText-root .MuiTypography-root': {
111
114
  color: theme.palette.text.primary,
112
115
  },
116
+ '&:hover .MuiListItemIcon-root': {
117
+ backgroundColor: '#EDEDEE',
118
+ borderRadius: theme.shapes.sm,
119
+ },
113
120
  '&.Mui-selected': {
114
- backgroundColor: theme.palette.grey[100],
115
- color: theme.palette.text.primary,
121
+ backgroundColor: "#EDEDEE",
122
+ '& .MuiListItemText-root': {
123
+ color: theme.palette.text.primary,
124
+ },
116
125
  '& .MuiListItemIcon-root': {
117
- backgroundColor: '#91C9F7',
126
+ backgroundColor: '#EDEDEE',
127
+ borderRadius: theme.shapes.sm,
118
128
  },
119
129
  '& svg': {
120
130
  color: theme.palette.text.primary,
121
131
  },
122
132
  },
123
133
  '&.Mui-selected:hover': {
124
- backgroundColor: '#91C9F7',
125
134
  color: theme.palette.text.primary,
126
135
  '& svg': {
127
136
  color: theme.palette.text.primary,
@@ -147,8 +156,10 @@ export const menuItemOverrides: Components<Theme>['MuiMenuItem'] = {
147
156
  color: 'currentColor',
148
157
  },
149
158
  '& .MuiListItemText-root': {
150
- color: theme.palette.text.primary,
151
159
  margin: 0,
160
+ '& .MuiTypography-root': {
161
+ ...theme.typography.body2,
162
+ },
152
163
  },
153
164
  },
154
165
  },
@@ -7,7 +7,6 @@ export const tooltipOverrides: Components<Theme>['MuiTooltip'] = {
7
7
  borderRadius: 4,
8
8
  backgroundColor: theme.palette.grey[800],
9
9
  paddingTop: 5,
10
- maxWidth: 'auto',
11
10
  opacity: '0.9 !important',
12
11
  }),
13
12
  tooltipPlacementTop: {
@@ -20,4 +19,4 @@ export const tooltipOverrides: Components<Theme>['MuiTooltip'] = {
20
19
  color: theme.palette.grey[800],
21
20
  }),
22
21
  },
23
- };
22
+ };
@@ -119,5 +119,7 @@ theme = createTheme(theme, {
119
119
  // Override shadows
120
120
  theme.shadows[3] = '2px 3px 4px 0 rgba(0,0,0,0.15)';
121
121
  theme.shadows[4] = '0px 4px 20px 0px #00000036'; //Shadow / Modal Window
122
+ theme.shadows[5] = '0px 11px 15px -7px rgba(0,0,0,0.2), 0px 24px 38px 3px rgba(0,0,0,0.14), 0px 9px 46px 8px rgba(0,0,0,0.12);';
123
+ theme.shadows[6] = '0px 2px 4px -1px rgba(0, 0, 0, 0.06),0px 4px 6px -1px rgba(0, 0, 0, 0.1)'; // Menu System
122
124
 
123
125
  export default theme;
@@ -16,3 +16,4 @@ import './introduction.css';
16
16
  - [Button] `color="default"` is deprecated, changed to `color="inherit"`
17
17
  - [MenuContext] is deprecated
18
18
  - [AppointmentCalendar] is deprecated
19
+ - [Chip] `variant="primary"` is deprecated, changed to `color="primary"`