@sk-web-gui/core 0.1.86 → 0.1.87
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.
|
@@ -2,40 +2,58 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = UserMenu = function UserMenu(colors) {
|
|
4
4
|
return {
|
|
5
|
-
'.usermenu': {
|
|
6
|
-
|
|
7
|
-
'
|
|
8
|
-
|
|
9
|
-
'&-is-open': {
|
|
10
|
-
// "@apply border-2 border-gray-300 border-solid rounded": {},
|
|
11
|
-
// "box-shadow": "0px 4px 12px rgba(27, 29, 31, 0.12)",
|
|
5
|
+
'.sk-usermenu': {
|
|
6
|
+
'@apply text-body mx-auto lg:mx-sm lg:relative': {},
|
|
7
|
+
'&-wrapper': {
|
|
8
|
+
'@apply block max-lg:-mr-md': {}
|
|
12
9
|
},
|
|
13
|
-
'&-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
'
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
'&-button': {
|
|
11
|
+
'&-content': {
|
|
12
|
+
'@apply max-lg:font-bold lg:items-center lg:text-left': {}
|
|
13
|
+
},
|
|
14
|
+
'&-icon': {
|
|
15
|
+
'@apply !text-2xl ml-auto align-top max-lg:mr-2 max-lg:text-primary': {}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
'&-first-row': {
|
|
19
|
+
'@apply max-lg:hidden bg-white border-t-2 pb-sm -mt-0 mx-md': {}
|
|
20
|
+
},
|
|
21
|
+
'&-label': {
|
|
22
|
+
'@apply flex align-middle mt-md lg:mb-xs': {},
|
|
23
|
+
'&-content': {
|
|
24
|
+
'@apply inline-block px-lg py-md lg:pl-md lg:pr-md lg:py-sm text-sm font-semibold uppercase whitespace-nowrap': {}
|
|
25
|
+
},
|
|
26
|
+
'&-line': {
|
|
27
|
+
'@apply inline-block w-full h-px border-gray-300 border-t-2 mt-[2.6rem] lg:hidden': {}
|
|
28
|
+
}
|
|
20
29
|
},
|
|
21
|
-
'&-
|
|
22
|
-
|
|
23
|
-
'
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
'line-clamp': '1',
|
|
27
|
-
'-webkit-box-orient': 'vertical'
|
|
30
|
+
'&-body': {
|
|
31
|
+
'@apply py-sm absolute rounded border-t-0 bg-white mt-6 right-0 left-0 border-none max-lg:shadow-lg lg:-mt-2 lg:border-2 lg:border-solid lg:border-white': {},
|
|
32
|
+
'&[data-open="true"]': {
|
|
33
|
+
'@apply lg:border-gray-300 lg:border-t-0 lg:shadow-lg': {}
|
|
34
|
+
}
|
|
28
35
|
},
|
|
29
36
|
'&-header': {
|
|
30
|
-
'
|
|
31
|
-
|
|
37
|
+
'@apply px-md py-sm bg-white border-none rounded lg:border-2 lg:border-solid lg:border-b-0 lg:border-transparent': {},
|
|
38
|
+
'&[aria-expanded="true"]': {
|
|
39
|
+
'@apply lg:border-gray-300 lg:shadow-none': {}
|
|
32
40
|
}
|
|
33
41
|
},
|
|
34
|
-
'&-
|
|
35
|
-
'
|
|
42
|
+
'&-group': {
|
|
43
|
+
'a, button': {
|
|
44
|
+
'@apply block px-lg py-md lg:px-md lg:py-sm w-full cursor-pointer text-body no-underline': {},
|
|
45
|
+
'&.active': {
|
|
46
|
+
'@apply bg-hover text-white no-underline': {}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
36
49
|
'&.active': {
|
|
37
|
-
'
|
|
50
|
+
'a, button': {
|
|
51
|
+
'@apply bg-hover text-white no-underline': {}
|
|
52
|
+
}
|
|
38
53
|
}
|
|
54
|
+
},
|
|
55
|
+
'&-divider': {
|
|
56
|
+
'@apply bg-white border-t-2 pb-sm mt-sm mx-md': {}
|
|
39
57
|
}
|
|
40
58
|
}
|
|
41
59
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-menu.js","names":["module","exports","UserMenu","colors"
|
|
1
|
+
{"version":3,"file":"user-menu.js","names":["module","exports","UserMenu","colors"],"sources":["../../../src/components/user-menu.js"],"sourcesContent":["module.exports = UserMenu = (colors) => ({\r\n '.sk-usermenu': {\r\n '@apply text-body mx-auto lg:mx-sm lg:relative': {},\r\n\r\n '&-wrapper': {\r\n '@apply block max-lg:-mr-md': {},\r\n },\r\n\r\n '&-button': {\r\n '&-content': {\r\n '@apply max-lg:font-bold lg:items-center lg:text-left': {},\r\n },\r\n '&-icon': {\r\n '@apply !text-2xl ml-auto align-top max-lg:mr-2 max-lg:text-primary': {},\r\n },\r\n },\r\n\r\n '&-first-row': {\r\n '@apply max-lg:hidden bg-white border-t-2 pb-sm -mt-0 mx-md': {},\r\n },\r\n\r\n '&-label': {\r\n '@apply flex align-middle mt-md lg:mb-xs': {},\r\n '&-content': {\r\n '@apply inline-block px-lg py-md lg:pl-md lg:pr-md lg:py-sm text-sm font-semibold uppercase whitespace-nowrap':\r\n {},\r\n },\r\n '&-line': {\r\n '@apply inline-block w-full h-px border-gray-300 border-t-2 mt-[2.6rem] lg:hidden': {},\r\n },\r\n },\r\n\r\n '&-body': {\r\n '@apply py-sm absolute rounded border-t-0 bg-white mt-6 right-0 left-0 border-none max-lg:shadow-lg lg:-mt-2 lg:border-2 lg:border-solid lg:border-white':\r\n {},\r\n '&[data-open=\"true\"]': {\r\n '@apply lg:border-gray-300 lg:border-t-0 lg:shadow-lg': {},\r\n },\r\n },\r\n\r\n '&-header': {\r\n '@apply px-md py-sm bg-white border-none rounded lg:border-2 lg:border-solid lg:border-b-0 lg:border-transparent':\r\n {},\r\n '&[aria-expanded=\"true\"]': {\r\n '@apply lg:border-gray-300 lg:shadow-none': {},\r\n },\r\n },\r\n '&-group': {\r\n 'a, button': {\r\n '@apply block px-lg py-md lg:px-md lg:py-sm w-full cursor-pointer text-body no-underline': {},\r\n '&.active': {\r\n '@apply bg-hover text-white no-underline': {},\r\n },\r\n },\r\n '&.active': {\r\n 'a, button': {\r\n '@apply bg-hover text-white no-underline': {},\r\n },\r\n },\r\n },\r\n '&-divider': {\r\n '@apply bg-white border-t-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|
6
|
-
'&-is-open': {
|
|
7
|
-
// "@apply border-2 border-gray-300 border-solid rounded": {},
|
|
8
|
-
// "box-shadow": "0px 4px 12px rgba(27, 29, 31, 0.12)",
|
|
2
|
+
'.sk-usermenu': {
|
|
3
|
+
'@apply text-body mx-auto lg:mx-sm lg:relative': {},
|
|
4
|
+
'&-wrapper': {
|
|
5
|
+
'@apply block max-lg:-mr-md': {}
|
|
9
6
|
},
|
|
10
|
-
'&-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
'
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
'&-button': {
|
|
8
|
+
'&-content': {
|
|
9
|
+
'@apply max-lg:font-bold lg:items-center lg:text-left': {}
|
|
10
|
+
},
|
|
11
|
+
'&-icon': {
|
|
12
|
+
'@apply !text-2xl ml-auto align-top max-lg:mr-2 max-lg:text-primary': {}
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
'&-first-row': {
|
|
16
|
+
'@apply max-lg:hidden bg-white border-t-2 pb-sm -mt-0 mx-md': {}
|
|
17
|
+
},
|
|
18
|
+
'&-label': {
|
|
19
|
+
'@apply flex align-middle mt-md lg:mb-xs': {},
|
|
20
|
+
'&-content': {
|
|
21
|
+
'@apply inline-block px-lg py-md lg:pl-md lg:pr-md lg:py-sm text-sm font-semibold uppercase whitespace-nowrap': {}
|
|
22
|
+
},
|
|
23
|
+
'&-line': {
|
|
24
|
+
'@apply inline-block w-full h-px border-gray-300 border-t-2 mt-[2.6rem] lg:hidden': {}
|
|
25
|
+
}
|
|
17
26
|
},
|
|
18
|
-
'&-
|
|
19
|
-
|
|
20
|
-
'
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
'line-clamp': '1',
|
|
24
|
-
'-webkit-box-orient': 'vertical'
|
|
27
|
+
'&-body': {
|
|
28
|
+
'@apply py-sm absolute rounded border-t-0 bg-white mt-6 right-0 left-0 border-none max-lg:shadow-lg lg:-mt-2 lg:border-2 lg:border-solid lg:border-white': {},
|
|
29
|
+
'&[data-open="true"]': {
|
|
30
|
+
'@apply lg:border-gray-300 lg:border-t-0 lg:shadow-lg': {}
|
|
31
|
+
}
|
|
25
32
|
},
|
|
26
33
|
'&-header': {
|
|
27
|
-
'
|
|
28
|
-
|
|
34
|
+
'@apply px-md py-sm bg-white border-none rounded lg:border-2 lg:border-solid lg:border-b-0 lg:border-transparent': {},
|
|
35
|
+
'&[aria-expanded="true"]': {
|
|
36
|
+
'@apply lg:border-gray-300 lg:shadow-none': {}
|
|
29
37
|
}
|
|
30
38
|
},
|
|
31
|
-
'&-
|
|
32
|
-
'
|
|
39
|
+
'&-group': {
|
|
40
|
+
'a, button': {
|
|
41
|
+
'@apply block px-lg py-md lg:px-md lg:py-sm w-full cursor-pointer text-body no-underline': {},
|
|
42
|
+
'&.active': {
|
|
43
|
+
'@apply bg-hover text-white no-underline': {}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
33
46
|
'&.active': {
|
|
34
|
-
'
|
|
47
|
+
'a, button': {
|
|
48
|
+
'@apply bg-hover text-white no-underline': {}
|
|
49
|
+
}
|
|
35
50
|
}
|
|
51
|
+
},
|
|
52
|
+
'&-divider': {
|
|
53
|
+
'@apply bg-white border-t-2 pb-sm mt-sm mx-md': {}
|
|
36
54
|
}
|
|
37
55
|
}
|
|
38
56
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-menu.js","names":["module","exports","UserMenu","colors"
|
|
1
|
+
{"version":3,"file":"user-menu.js","names":["module","exports","UserMenu","colors"],"sources":["../../../src/components/user-menu.js"],"sourcesContent":["module.exports = UserMenu = (colors) => ({\r\n '.sk-usermenu': {\r\n '@apply text-body mx-auto lg:mx-sm lg:relative': {},\r\n\r\n '&-wrapper': {\r\n '@apply block max-lg:-mr-md': {},\r\n },\r\n\r\n '&-button': {\r\n '&-content': {\r\n '@apply max-lg:font-bold lg:items-center lg:text-left': {},\r\n },\r\n '&-icon': {\r\n '@apply !text-2xl ml-auto align-top max-lg:mr-2 max-lg:text-primary': {},\r\n },\r\n },\r\n\r\n '&-first-row': {\r\n '@apply max-lg:hidden bg-white border-t-2 pb-sm -mt-0 mx-md': {},\r\n },\r\n\r\n '&-label': {\r\n '@apply flex align-middle mt-md lg:mb-xs': {},\r\n '&-content': {\r\n '@apply inline-block px-lg py-md lg:pl-md lg:pr-md lg:py-sm text-sm font-semibold uppercase whitespace-nowrap':\r\n {},\r\n },\r\n '&-line': {\r\n '@apply inline-block w-full h-px border-gray-300 border-t-2 mt-[2.6rem] lg:hidden': {},\r\n },\r\n },\r\n\r\n '&-body': {\r\n '@apply py-sm absolute rounded border-t-0 bg-white mt-6 right-0 left-0 border-none max-lg:shadow-lg lg:-mt-2 lg:border-2 lg:border-solid lg:border-white':\r\n {},\r\n '&[data-open=\"true\"]': {\r\n '@apply lg:border-gray-300 lg:border-t-0 lg:shadow-lg': {},\r\n },\r\n },\r\n\r\n '&-header': {\r\n '@apply px-md py-sm bg-white border-none rounded lg:border-2 lg:border-solid lg:border-b-0 lg:border-transparent':\r\n {},\r\n '&[aria-expanded=\"true\"]': {\r\n '@apply lg:border-gray-300 lg:shadow-none': {},\r\n },\r\n },\r\n '&-group': {\r\n 'a, button': {\r\n '@apply block px-lg py-md lg:px-md lg:py-sm w-full cursor-pointer text-body no-underline': {},\r\n '&.active': {\r\n '@apply bg-hover text-white no-underline': {},\r\n },\r\n },\r\n '&.active': {\r\n 'a, button': {\r\n '@apply bg-hover text-white no-underline': {},\r\n },\r\n },\r\n },\r\n '&-divider': {\r\n '@apply bg-white border-t-2 pb-sm mt-sm mx-md': {},\r\n },\r\n },\r\n});\r\n"],"mappings":"AAAAA,MAAM,CAACC,OAAO,GAAGC,QAAQ,GAAIC,MAAM,KAAM;EACvC,cAAc,EAAE;IACd,+CAA+C,EAAE,CAAC,CAAC;IAEnD,WAAW,EAAE;MACX,4BAA4B,EAAE,CAAC;IACjC,CAAC;IAED,UAAU,EAAE;MACV,WAAW,EAAE;QACX,sDAAsD,EAAE,CAAC;MAC3D,CAAC;MACD,QAAQ,EAAE;QACR,oEAAoE,EAAE,CAAC;MACzE;IACF,CAAC;IAED,aAAa,EAAE;MACb,4DAA4D,EAAE,CAAC;IACjE,CAAC;IAED,SAAS,EAAE;MACT,yCAAyC,EAAE,CAAC,CAAC;MAC7C,WAAW,EAAE;QACX,8GAA8G,EAC5G,CAAC;MACL,CAAC;MACD,QAAQ,EAAE;QACR,kFAAkF,EAAE,CAAC;MACvF;IACF,CAAC;IAED,QAAQ,EAAE;MACR,yJAAyJ,EACvJ,CAAC,CAAC;MACJ,qBAAqB,EAAE;QACrB,sDAAsD,EAAE,CAAC;MAC3D;IACF,CAAC;IAED,UAAU,EAAE;MACV,iHAAiH,EAC/G,CAAC,CAAC;MACJ,yBAAyB,EAAE;QACzB,0CAA0C,EAAE,CAAC;MAC/C;IACF,CAAC;IACD,SAAS,EAAE;MACT,WAAW,EAAE;QACX,yFAAyF,EAAE,CAAC,CAAC;QAC7F,UAAU,EAAE;UACV,yCAAyC,EAAE,CAAC;QAC9C;MACF,CAAC;MACD,UAAU,EAAE;QACV,WAAW,EAAE;UACX,yCAAyC,EAAE,CAAC;QAC9C;MACF;IACF,CAAC;IACD,WAAW,EAAE;MACX,8CAA8C,EAAE,CAAC;IACnD;EACF;AACF,CAAC,CAAC"}
|
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.87",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"@sk-web-gui/theme": "0.1.13",
|
|
41
41
|
"mini-svg-data-uri": "^1.4.4"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "433ca907ab7124030c8045bc5964a4f8ff5db68d"
|
|
44
44
|
}
|
|
@@ -1,41 +1,65 @@
|
|
|
1
1
|
module.exports = UserMenu = (colors) => ({
|
|
2
|
-
'.usermenu': {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
'.sk-usermenu': {
|
|
3
|
+
'@apply text-body mx-auto lg:mx-sm lg:relative': {},
|
|
4
|
+
|
|
5
|
+
'&-wrapper': {
|
|
6
|
+
'@apply block max-lg:-mr-md': {},
|
|
7
|
+
},
|
|
8
|
+
|
|
9
|
+
'&-button': {
|
|
10
|
+
'&-content': {
|
|
11
|
+
'@apply max-lg:font-bold lg:items-center lg:text-left': {},
|
|
12
|
+
},
|
|
13
|
+
'&-icon': {
|
|
14
|
+
'@apply !text-2xl ml-auto align-top max-lg:mr-2 max-lg:text-primary': {},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
'&-first-row': {
|
|
19
|
+
'@apply max-lg:hidden bg-white border-t-2 pb-sm -mt-0 mx-md': {},
|
|
9
20
|
},
|
|
10
21
|
|
|
11
|
-
'&-
|
|
12
|
-
|
|
13
|
-
'
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
'
|
|
22
|
+
'&-label': {
|
|
23
|
+
'@apply flex align-middle mt-md lg:mb-xs': {},
|
|
24
|
+
'&-content': {
|
|
25
|
+
'@apply inline-block px-lg py-md lg:pl-md lg:pr-md lg:py-sm text-sm font-semibold uppercase whitespace-nowrap':
|
|
26
|
+
{},
|
|
27
|
+
},
|
|
28
|
+
'&-line': {
|
|
29
|
+
'@apply inline-block w-full h-px border-gray-300 border-t-2 mt-[2.6rem] lg:hidden': {},
|
|
30
|
+
},
|
|
18
31
|
},
|
|
19
32
|
|
|
20
|
-
'&-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
'-webkit-box-orient': 'vertical',
|
|
33
|
+
'&-body': {
|
|
34
|
+
'@apply py-sm absolute rounded border-t-0 bg-white mt-6 right-0 left-0 border-none max-lg:shadow-lg lg:-mt-2 lg:border-2 lg:border-solid lg:border-white':
|
|
35
|
+
{},
|
|
36
|
+
'&[data-open="true"]': {
|
|
37
|
+
'@apply lg:border-gray-300 lg:border-t-0 lg:shadow-lg': {},
|
|
38
|
+
},
|
|
27
39
|
},
|
|
28
40
|
|
|
29
41
|
'&-header': {
|
|
30
|
-
'
|
|
31
|
-
|
|
42
|
+
'@apply px-md py-sm bg-white border-none rounded lg:border-2 lg:border-solid lg:border-b-0 lg:border-transparent':
|
|
43
|
+
{},
|
|
44
|
+
'&[aria-expanded="true"]': {
|
|
45
|
+
'@apply lg:border-gray-300 lg:shadow-none': {},
|
|
32
46
|
},
|
|
33
47
|
},
|
|
34
|
-
'&-
|
|
35
|
-
'
|
|
48
|
+
'&-group': {
|
|
49
|
+
'a, button': {
|
|
50
|
+
'@apply block px-lg py-md lg:px-md lg:py-sm w-full cursor-pointer text-body no-underline': {},
|
|
51
|
+
'&.active': {
|
|
52
|
+
'@apply bg-hover text-white no-underline': {},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
36
55
|
'&.active': {
|
|
37
|
-
'
|
|
56
|
+
'a, button': {
|
|
57
|
+
'@apply bg-hover text-white no-underline': {},
|
|
58
|
+
},
|
|
38
59
|
},
|
|
39
60
|
},
|
|
61
|
+
'&-divider': {
|
|
62
|
+
'@apply bg-white border-t-2 pb-sm mt-sm mx-md': {},
|
|
63
|
+
},
|
|
40
64
|
},
|
|
41
65
|
});
|