@galaxy-ds/core 2.0.12 → 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.
- package/dist/Icons/leap/AutoTimerDarkTheme.d.ts +2 -0
- package/dist/Icons/leap/AutoTimerLightTheme.d.ts +2 -0
- package/dist/Icons/leap/ManualEntryDarkTheme.d.ts +2 -0
- package/dist/Icons/leap/ManualEntryLightTheme.d.ts +2 -0
- package/dist/Icons/leap/index.d.ts +4 -0
- package/dist/Theme/leap/desktop/design-tokens/components/chip.d.ts +1 -0
- package/dist/Theme/leap/web/design-tokens/components/chip.d.ts +1 -0
- package/dist/index.esm.js +105 -53
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +108 -52
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/src/Chip/Chip.stories.mdx +17 -74
- package/src/Icons/leap/AutoTimer24.tsx +2 -13
- package/src/Icons/leap/AutoTimerDarkTheme.tsx +13 -0
- package/src/Icons/leap/AutoTimerFilled24.tsx +4 -6
- package/src/Icons/leap/AutoTimerLightTheme.tsx +12 -0
- package/src/Icons/leap/ManualEntry24.tsx +2 -18
- package/src/Icons/leap/ManualEntryDarkTheme.tsx +11 -0
- package/src/Icons/leap/ManualEntryFilled24.tsx +1 -18
- package/src/Icons/leap/ManualEntryLightTheme.tsx +10 -0
- package/src/Icons/leap/Timer24.tsx +4 -6
- package/src/Icons/leap/TimerFillled24.tsx +3 -6
- package/src/Icons/leap/icons.ts +15 -0
- package/src/Icons/leap/index.ts +4 -0
- package/src/Icons/leap-icons.stories.mdx +71 -1
- package/src/MenuItem/MenuItem.stories.mdx +2 -2
- package/src/Theme/leap/desktop/design-tokens/components/chip.ts +2 -1
- package/src/Theme/leap/desktop/overrides/Dialog/dialog.ts +5 -4
- package/src/Theme/leap/desktop/overrides/listItemIcon.ts +0 -1
- package/src/Theme/leap/desktop/overrides/menu.ts +36 -33
- package/src/Theme/leap/desktop/overrides/menuItem.ts +38 -10
- package/src/Theme/leap/desktop/theme.ts +2 -0
- package/src/Theme/leap/web/design-tokens/components/chip.ts +2 -1
- package/src/Theme/leap/web/overrides/Dialog/dialog.ts +4 -6
- package/src/Theme/leap/web/overrides/menu.ts +8 -6
- package/src/Theme/leap/web/overrides/menuItem.ts +19 -8
- package/src/Theme/leap/web/theme.ts +2 -0
- 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: '#
|
|
24
|
+
backgroundColor: '#4e9af7',
|
|
25
25
|
'& .MuiListItemText-root': {
|
|
26
26
|
color: '#fff',
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
|
-
'&.
|
|
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
|
-
|
|
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: '#
|
|
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:
|
|
117
|
+
backgroundColor: "#EDEDEE",
|
|
90
118
|
'& .MuiListItemText-root': {
|
|
91
119
|
color: theme.palette.text.primary,
|
|
92
120
|
},
|
|
93
121
|
'& .MuiListItemIcon-root': {
|
|
94
|
-
backgroundColor: '#
|
|
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,
|
|
@@ -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,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
|
-
|
|
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:
|
|
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:
|
|
23
|
-
border:
|
|
24
|
-
|
|
25
|
-
|
|
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:
|
|
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: '.
|
|
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
|
-
|
|
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: '#
|
|
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:
|
|
115
|
-
|
|
121
|
+
backgroundColor: "#EDEDEE",
|
|
122
|
+
'& .MuiListItemText-root': {
|
|
123
|
+
color: theme.palette.text.primary,
|
|
124
|
+
},
|
|
116
125
|
'& .MuiListItemIcon-root': {
|
|
117
|
-
backgroundColor: '#
|
|
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
|
},
|
|
@@ -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;
|