@sk-web-gui/core 0.1.52 → 0.1.54
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/package.json +2 -2
- package/src/components/forms.js +3 -3
- package/src/components/side-menu.js +156 -164
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sk-web-gui/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.54",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"postcss-import": "^14.0.2",
|
|
32
32
|
"tailwindcss": "^2.2.4"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "81c8f063f3d304469d2e9a3e225a751110658b19"
|
|
35
35
|
}
|
package/src/components/forms.js
CHANGED
|
@@ -211,9 +211,9 @@ module.exports = Forms = (colors) => ({
|
|
|
211
211
|
padding: '1.32rem 1.76rem',
|
|
212
212
|
},
|
|
213
213
|
|
|
214
|
-
'&-disabled': {
|
|
215
|
-
'@apply disabled:cursor-not-allowed': {},
|
|
216
|
-
'@apply disabled:bg-gray-lighter': {},
|
|
214
|
+
'&-disabled, &&-disabled': {
|
|
215
|
+
'@apply disabled:cursor-not-allowed cursor-not-allowed': {},
|
|
216
|
+
'@apply disabled:bg-gray-lighter bg-gray-lighter': {},
|
|
217
217
|
//"@apply disabled:shadow-none disabled:cursor-not-allowed disabled:opacity-60": {},
|
|
218
218
|
//"@apply disabled:border-neutral-200 disabled:bg-neutral-200": {},
|
|
219
219
|
//"@apply dark:disabled:border-transparent dark:disabled:bg-white/20": {},
|
|
@@ -1,167 +1,159 @@
|
|
|
1
1
|
module.exports = Menu = () => ({
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
"&.lvl-10": {
|
|
160
|
-
"> .wrapper > .MenuItem-link": {
|
|
161
|
-
paddingLeft: "11rem"
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
2
|
+
'.SideMenu': {
|
|
3
|
+
'@apply w-[440px]': {},
|
|
4
|
+
|
|
5
|
+
'.menu-header': {
|
|
6
|
+
'@apply py-[2rem] px-[1.6rem] bg-primary text-white': {},
|
|
7
|
+
|
|
8
|
+
'label, .label': {
|
|
9
|
+
'@apply text-xl font-bold text-white': {},
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
'.label-button': {
|
|
13
|
+
'@apply w-full justify-between p-0': {},
|
|
14
|
+
|
|
15
|
+
'&-icon': {
|
|
16
|
+
'@apply !text-xl': {},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
'.label-header': {
|
|
21
|
+
'@apply flex items-center': {},
|
|
22
|
+
|
|
23
|
+
span: {
|
|
24
|
+
'@apply ml-auto': {},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
'.menu-body': {
|
|
30
|
+
'@apply border border-gray-stroke': {},
|
|
31
|
+
'>.MenuItem:first-child': {
|
|
32
|
+
'@apply border-t-0': {},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
'.MenuItem': {
|
|
37
|
+
'@apply bg-white h-full border-t border-gray-stroke': {},
|
|
38
|
+
|
|
39
|
+
'.items': {
|
|
40
|
+
'@apply block': {},
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
'&.active': {
|
|
44
|
+
'> .wrapper': {
|
|
45
|
+
boxShadow: 'inset 6px 0 0 0 #005595',
|
|
46
|
+
|
|
47
|
+
'> .MenuItem-link': {
|
|
48
|
+
'@apply underline': {},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
'.wrapper': {
|
|
54
|
+
'@apply flex items-center': {},
|
|
55
|
+
|
|
56
|
+
'.MenuItem-link': {
|
|
57
|
+
'@apply flex-grow text-left justify-start py-sm pr-[15px] h-full': {},
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
'.expand': {
|
|
61
|
+
'@apply w-[50px] h-full flex justify-center items-center ml-auto p-0': {},
|
|
62
|
+
|
|
63
|
+
span: {
|
|
64
|
+
'@apply flex justify-center items-center border-l border-gray-stroke h-[24px] w-[45px]': {},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
'&.lvl-1, &.lvl-2, &.lvl-3, &.lvl-4, &.lvl-5, &.lvl-6, &.lvl-7, &.lvl-8, &.lvl-9, &.lvl-10': {
|
|
70
|
+
// '.MenuItem-link ': {
|
|
71
|
+
// '@apply py-sm': {},
|
|
72
|
+
// },
|
|
73
|
+
// '@apply py-sm': {},
|
|
74
|
+
'> .wrapper ': {
|
|
75
|
+
'@apply min-h-[48px]': {},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
'&.isSubNode': {
|
|
80
|
+
'@apply bg-gray-lighter': {},
|
|
81
|
+
},
|
|
82
|
+
|
|
83
|
+
'&.isLeafNode': {
|
|
84
|
+
'@apply bg-gray-middle': {},
|
|
85
|
+
},
|
|
86
|
+
|
|
87
|
+
'&.lvl-0': {
|
|
88
|
+
'> .wrapper ': {
|
|
89
|
+
'@apply min-h-[64px]': {},
|
|
90
|
+
|
|
91
|
+
'> .MenuItem-link': {
|
|
92
|
+
'@apply py-md': {},
|
|
93
|
+
paddingLeft: '3.2rem',
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
'&.lvl-1': {
|
|
99
|
+
'> .wrapper > .MenuItem-link': {
|
|
100
|
+
paddingLeft: '4.8rem',
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
'&.lvl-2': {
|
|
105
|
+
'> .wrapper > .MenuItem-link': {
|
|
106
|
+
paddingLeft: '6.4rem',
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
|
|
110
|
+
'&.lvl-3': {
|
|
111
|
+
'> .wrapper > .MenuItem-link': {
|
|
112
|
+
paddingLeft: '8rem',
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
|
|
116
|
+
'&.lvl-4': {
|
|
117
|
+
'> .wrapper > .MenuItem-link': {
|
|
118
|
+
paddingLeft: '9.6rem',
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
|
|
122
|
+
'&.lvl-5': {
|
|
123
|
+
'> .wrapper > .MenuItem-link': {
|
|
124
|
+
paddingLeft: '11.2rem',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
|
|
128
|
+
'&.lvl-6': {
|
|
129
|
+
'> .wrapper > .MenuItem-link': {
|
|
130
|
+
paddingLeft: '12.8rem',
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
|
|
134
|
+
'&.lvl-7': {
|
|
135
|
+
'> .wrapper > .MenuItem-link': {
|
|
136
|
+
paddingLeft: '14.4rem',
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
|
|
140
|
+
'&.lvl-8': {
|
|
141
|
+
'> .wrapper > .MenuItem-link': {
|
|
142
|
+
paddingLeft: '16rem',
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
|
|
146
|
+
'&.lvl-9': {
|
|
147
|
+
'> .wrapper > .MenuItem-link': {
|
|
148
|
+
paddingLeft: '17.6rem',
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
|
|
152
|
+
'&.lvl-10': {
|
|
153
|
+
'> .wrapper > .MenuItem-link': {
|
|
154
|
+
paddingLeft: '19.2rem',
|
|
155
|
+
},
|
|
156
|
+
},
|
|
165
157
|
},
|
|
158
|
+
},
|
|
166
159
|
});
|
|
167
|
-
|