@toptal/picasso-menu 1.0.17 → 2.0.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.
@@ -1,133 +0,0 @@
1
- import type { Theme } from '@material-ui/core/styles'
2
- import { createStyles } from '@material-ui/core/styles'
3
- import { PicassoProvider } from '@toptal/picasso-provider'
4
- import { rem } from '@toptal/picasso-shared'
5
-
6
- PicassoProvider.override(() => ({
7
- MuiMenuItem: {
8
- root: {
9
- boxSizing: 'border-box',
10
- lineHeight: '1rem',
11
- padding: 0,
12
- // to override MUI paddingTop and paddingBottom default values
13
- paddingTop: 0,
14
- paddingBottom: 0,
15
- fontSize: '1rem',
16
- minHeight: 'unset',
17
- whiteSpace: 'normal',
18
- },
19
- gutters: {
20
- padding: '0.625rem',
21
- // to override MUI paddingLeft and paddingRight default values
22
- paddingLeft: '0.625rem',
23
- paddingRight: '0.625rem',
24
- },
25
- },
26
- }))
27
-
28
- export default ({ typography, palette }: Theme) =>
29
- createStyles({
30
- root: {
31
- minWidth: rem('144'),
32
- '&$nonSelectable:hover, &$nonSelectable:focus': {
33
- backgroundColor: 'unset',
34
- },
35
-
36
- '&$disabled': {
37
- color: palette.grey.main2,
38
- pointerEvents: 'none',
39
- opacity: 1,
40
- },
41
- },
42
- light: {
43
- color: palette.common.black,
44
-
45
- '&:hover': {
46
- color: palette.common.black,
47
- backgroundColor: palette.blue.lighter,
48
-
49
- '&$selected': {
50
- color: palette.common.black,
51
- backgroundColor: palette.blue.lighter,
52
- },
53
- },
54
-
55
- '&$selected': {
56
- color: palette.common.black,
57
- backgroundColor: palette.blue.lighter,
58
- },
59
-
60
- '&:focus': {
61
- color: palette.common.black,
62
- backgroundColor: palette.blue.lighter,
63
-
64
- '&$selected': {
65
- color: palette.common.black,
66
- backgroundColor: palette.blue.lighter,
67
- },
68
- },
69
- },
70
- dark: {
71
- color: palette.grey.main,
72
-
73
- '&:hover': {
74
- backgroundColor: palette.grey.dark,
75
-
76
- '&$selected': {
77
- color: palette.common.white,
78
- backgroundColor: palette.grey.dark,
79
- },
80
- },
81
-
82
- '&$selected': {
83
- color: palette.common.white,
84
- backgroundColor: palette.grey.dark,
85
- },
86
-
87
- '&:focus': {
88
- color: palette.common.white,
89
- backgroundColor: palette.grey.dark,
90
-
91
- '&$selected': {
92
- color: palette.common.white,
93
- backgroundColor: palette.grey.dark,
94
- },
95
- },
96
- },
97
- selected: {},
98
- nonSelectable: {},
99
- stringContent: {
100
- flex: 1,
101
- fontSize: '0.875rem',
102
- lineHeight: '1.25rem',
103
- },
104
- stringContentSemibold: {
105
- fontWeight: typography.fontWeights.semibold,
106
- },
107
- gutters: {
108
- padding: '0.375rem 1rem',
109
- },
110
- iconContainer: {
111
- width: '1rem',
112
- },
113
- itemWrapper: {
114
- flex: 1,
115
- maxWidth: '100%',
116
- },
117
- content: {
118
- flex: 1,
119
- minWidth: '0px',
120
- },
121
- description: {
122
- fontSize: '0.6875em',
123
- color: palette.text.primary,
124
- },
125
- descriptionDisabled: {
126
- color: 'inherit',
127
- },
128
- paper: {
129
- maxHeight: '14.75rem', // 6.5 lines to show
130
- overflowY: 'auto',
131
- },
132
- disabled: {},
133
- })
package/src/styles.ts DELETED
@@ -1,2 +0,0 @@
1
- import {} from './Menu/styles'
2
- import {} from './MenuItem/styles'