@sk-web-gui/core 0.1.91 → 0.1.92

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 (44) hide show
  1. package/dist/cjs/components/badge.js +3 -3
  2. package/dist/cjs/components/badge.js.map +1 -1
  3. package/dist/cjs/components/button.js +18 -8
  4. package/dist/cjs/components/button.js.map +1 -1
  5. package/dist/cjs/components/comments.js.map +1 -1
  6. package/dist/cjs/components/context-menu.js +30 -2
  7. package/dist/cjs/components/context-menu.js.map +1 -1
  8. package/dist/cjs/components/link.js +3 -0
  9. package/dist/cjs/components/link.js.map +1 -1
  10. package/dist/cjs/components/side-menu.js +19 -12
  11. package/dist/cjs/components/side-menu.js.map +1 -1
  12. package/dist/cjs/components/tab-menu.js.map +1 -1
  13. package/dist/cjs/components/tabs.js.map +1 -1
  14. package/dist/cjs/index.js.map +1 -1
  15. package/dist/cjs/plugin.js.map +1 -1
  16. package/dist/cjs/theme.js.map +1 -1
  17. package/dist/esm/components/badge.js +3 -3
  18. package/dist/esm/components/badge.js.map +1 -1
  19. package/dist/esm/components/button.js +18 -8
  20. package/dist/esm/components/button.js.map +1 -1
  21. package/dist/esm/components/comments.js.map +1 -1
  22. package/dist/esm/components/context-menu.js +30 -2
  23. package/dist/esm/components/context-menu.js.map +1 -1
  24. package/dist/esm/components/link.js +3 -0
  25. package/dist/esm/components/link.js.map +1 -1
  26. package/dist/esm/components/side-menu.js +19 -12
  27. package/dist/esm/components/side-menu.js.map +1 -1
  28. package/dist/esm/components/tab-menu.js.map +1 -1
  29. package/dist/esm/components/tabs.js.map +1 -1
  30. package/dist/esm/index.js.map +1 -1
  31. package/dist/esm/plugin.js.map +1 -1
  32. package/dist/esm/theme.js.map +1 -1
  33. package/package.json +2 -2
  34. package/src/components/badge.js +3 -3
  35. package/src/components/button.js +20 -8
  36. package/src/components/comments.js +37 -37
  37. package/src/components/context-menu.js +40 -2
  38. package/src/components/link.js +4 -0
  39. package/src/components/side-menu.js +23 -12
  40. package/src/components/tab-menu.js +58 -58
  41. package/src/components/tabs.js +64 -64
  42. package/src/index.js +8 -8
  43. package/src/plugin.js +120 -120
  44. package/src/theme.js +84 -84
@@ -1,38 +1,38 @@
1
- module.exports = Comments = () => ({
2
-
3
- '.comment-header': {
4
- '@apply w-full flex items-center gap-8 p-16 border-b-4 border-gray-200': {},
5
- },
6
-
7
- '.comment-item':{
8
- '@apply w-full': {},
9
-
10
- '&-container': {
11
- '@apply flex justify-between relative': {},
12
-
13
- '&-textpic': {
14
- '@apply flex gap-2': {},
15
- },
16
- },
17
- '&-text': {
18
- '@apply text-base font-bold mx-0 mb-0 mt-4': {},
19
- },
20
- '&-commentorpublished': {
21
- '@apply float-right text-neutral-600 m-0': {},
22
- },
23
- },
24
- '.comment-input':{
25
- '@apply w-full flex gap-4 px-10 pt-8 pb-10': {},
26
-
27
- '&-inactive': {
28
- '@apply text-neutral-300 !text-3xl': {},
29
- },
30
-
31
- '&-active': {
32
- '@apply text-primary !text-3xl': {},
33
- }
34
-
35
- },
36
-
37
-
1
+ module.exports = Comments = () => ({
2
+
3
+ '.comment-header': {
4
+ '@apply w-full flex items-center gap-8 p-16 border-b-4 border-gray-200': {},
5
+ },
6
+
7
+ '.comment-item':{
8
+ '@apply w-full': {},
9
+
10
+ '&-container': {
11
+ '@apply flex justify-between relative': {},
12
+
13
+ '&-textpic': {
14
+ '@apply flex gap-2': {},
15
+ },
16
+ },
17
+ '&-text': {
18
+ '@apply text-base font-bold mx-0 mb-0 mt-4': {},
19
+ },
20
+ '&-commentorpublished': {
21
+ '@apply float-right text-neutral-600 m-0': {},
22
+ },
23
+ },
24
+ '.comment-input':{
25
+ '@apply w-full flex gap-4 px-10 pt-8 pb-10': {},
26
+
27
+ '&-inactive': {
28
+ '@apply text-neutral-300 !text-3xl': {},
29
+ },
30
+
31
+ '&-active': {
32
+ '@apply text-primary !text-3xl': {},
33
+ }
34
+
35
+ },
36
+
37
+
38
38
  });
@@ -1,10 +1,48 @@
1
1
  module.exports = ContextMenu = () => ({
2
2
  '.context-menu-wrapper': {
3
+ '@apply relative inline': {},
4
+
5
+ '> a, > button': {
6
+ '@apply inline-flex': {},
7
+ },
8
+
3
9
  '.context-menu-items': {
4
- '@apply absolute bg-white border border-body z-10 drop-shadow-md mt-sm flex flex-col space-y-4 justify-start items-start p-sm':
10
+ '@apply absolute rounded bg-white border border-body z-10 drop-shadow-md mt-sm flex flex-col justify-start items-start':
5
11
  {},
6
12
  '.context-menu-item': {
7
- '@apply px-sm': {},
13
+ '@apply text-base text-body hover:text-white focus-within:text-white min-h-[3.5rem] w-full flex justify-start items-center':
14
+ {},
15
+
16
+ 'a, button': {
17
+ '@apply text-base font-normal min-h-[3.5rem] py-[0.6rem] items-center w-full rounded-none border-transparent px-md flex justify-start':
18
+ {},
19
+
20
+ '&.active': {
21
+ '@apply bg-primary text-white': {},
22
+ },
23
+
24
+ '.MuiSvgIcon-root': {
25
+ '@apply text-base': {},
26
+ },
27
+ },
28
+
29
+ '&:first-child a,&:first-child button': {
30
+ '@apply pt-[0.675rem] pb-[0.525rem]': {},
31
+ },
32
+ '&:last-child a,&:last-child button': {
33
+ '@apply pt-[0.525rem] pb-[0.675rem]': {},
34
+ },
35
+ '&:only-child a,&:only-child button': {
36
+ '@apply py-[0.6rem]': {},
37
+ },
38
+ },
39
+
40
+ hr: {
41
+ '@apply mx-sm w-[calc(100%_-_16px)]': {},
42
+ },
43
+
44
+ '&.right': {
45
+ '@apply right-0': {},
8
46
  },
9
47
  },
10
48
  },
@@ -16,6 +16,10 @@ module.exports = Link = () => ({
16
16
  verticalAlign: 'text-top',
17
17
  },
18
18
 
19
+ '&[type="button"]': {
20
+ '@apply inline-flex items-center align-bottom': {},
21
+ },
22
+
19
23
  '&-disabled': {
20
24
  '@apply disabled:opacity-60 disabled:cursor-not-allowed disabled:no-underline': {},
21
25
  },
@@ -54,23 +54,39 @@ module.exports = Menu = () => ({
54
54
  },
55
55
  },
56
56
 
57
- '.expand path': {
58
- '@apply fill-primary': {},
59
- },
60
-
61
57
  '& .sk-sidemenu-wrapper': {
62
58
  '@apply min-h-[48px] max-h-[48px] relative flex flex-wrap items-center': {},
63
59
 
64
60
  '.sk-sidemenu-item-link': {
65
61
  '@apply flex-grow relative flex items-center text-base text-left justify-start pr-sm h-full': {},
66
62
  '@apply focus-visible:z-base': {},
63
+
64
+ '&[aria-disabled="true"]': {
65
+ '@apply text-neutral-600 cursor-not-allowed': {},
66
+
67
+ '.sk-sidemenu-item-label': {
68
+ '@apply text-neutral-600': {},
69
+ },
70
+ },
67
71
  },
68
72
 
69
73
  '.expand': {
70
74
  '@apply w-[50px] h-full flex justify-center items-center ml-auto p-0': {},
71
75
 
76
+ '&[aria-disabled="true"]': {
77
+ '@apply !text-gray-stroke cursor-not-allowed !bg-transparent': {},
78
+
79
+ path: {
80
+ '@apply fill-gray-stroke': {},
81
+ },
82
+ },
83
+
84
+ path: {
85
+ '@apply fill-primary': {},
86
+ },
87
+
72
88
  '&-button': {
73
- '@apply flex justify-center items-center border-l border-gray-stroke h-[24px] w-[45px]': {},
89
+ '@apply fill-primary flex justify-center items-center border-l border-gray-stroke h-[24px] w-[45px]': {},
74
90
  },
75
91
  },
76
92
  },
@@ -106,14 +122,9 @@ module.exports = Menu = () => ({
106
122
  svg: {
107
123
  '@apply h-full': {},
108
124
  },
109
- '&-label': {
110
- '@apply text-[#B65A06]': {},
111
- },
112
- },
113
125
 
114
- '&.moved-here': {
115
- "[draggable='true']": {
116
- '@apply text-warning': {},
126
+ '&[aria-disabled="true"]': {
127
+ '@apply !text-gray-stroke cursor-not-allowed !bg-transparent': {},
117
128
  },
118
129
  },
119
130
 
@@ -1,58 +1,58 @@
1
- module.exports = TabMenu = () => ({
2
- '.sk-tab-menu': {
3
- '&-wrapper': {
4
- display: 'flex',
5
- flexDirection: 'row',
6
- margin: 'auto',
7
- },
8
- '&-right': {
9
- '@apply justify-end': {},
10
- },
11
- '&-center': {
12
- '@apply justify-center': {},
13
- },
14
- '&-list': {
15
- all: 'unset',
16
- display: 'flex',
17
- '&-stretch': {
18
- '@apply w-full justify-between': {},
19
- },
20
- },
21
-
22
- '&-underline': {
23
- width: '100%',
24
- height: 6,
25
- '@apply bg-gray-light': {},
26
- },
27
- '&-item': {
28
- all: 'unset',
29
- height: 65,
30
- display: 'flex',
31
- padding: '0 1rem',
32
- marginRight: '5rem',
33
- alignItems: 'center',
34
- position: 'relative',
35
- cursor: 'pointer',
36
- '&-stretch': {
37
- '@apply mr-0': {},
38
- },
39
- '&-right': {
40
- '@apply mr-0 ml-[5rem]': {},
41
- },
42
- '&-center:last-of-type': {
43
- '@apply mr-0': {},
44
- },
45
-
46
- '&.active::after': {
47
- content: '""',
48
- display: 'block',
49
- position: 'absolute',
50
- width: '100%',
51
- height: 6,
52
- top: '100%',
53
- left: 0,
54
- '@apply bg-primary': {},
55
- },
56
- },
57
- },
58
- });
1
+ module.exports = TabMenu = () => ({
2
+ '.sk-tab-menu': {
3
+ '&-wrapper': {
4
+ display: 'flex',
5
+ flexDirection: 'row',
6
+ margin: 'auto',
7
+ },
8
+ '&-right': {
9
+ '@apply justify-end': {},
10
+ },
11
+ '&-center': {
12
+ '@apply justify-center': {},
13
+ },
14
+ '&-list': {
15
+ all: 'unset',
16
+ display: 'flex',
17
+ '&-stretch': {
18
+ '@apply w-full justify-between': {},
19
+ },
20
+ },
21
+
22
+ '&-underline': {
23
+ width: '100%',
24
+ height: 6,
25
+ '@apply bg-gray-light': {},
26
+ },
27
+ '&-item': {
28
+ all: 'unset',
29
+ height: 65,
30
+ display: 'flex',
31
+ padding: '0 1rem',
32
+ marginRight: '5rem',
33
+ alignItems: 'center',
34
+ position: 'relative',
35
+ cursor: 'pointer',
36
+ '&-stretch': {
37
+ '@apply mr-0': {},
38
+ },
39
+ '&-right': {
40
+ '@apply mr-0 ml-[5rem]': {},
41
+ },
42
+ '&-center:last-of-type': {
43
+ '@apply mr-0': {},
44
+ },
45
+
46
+ '&.active::after': {
47
+ content: '""',
48
+ display: 'block',
49
+ position: 'absolute',
50
+ width: '100%',
51
+ height: 6,
52
+ top: '100%',
53
+ left: 0,
54
+ '@apply bg-primary': {},
55
+ },
56
+ },
57
+ },
58
+ });
@@ -1,64 +1,64 @@
1
- module.exports = Tabs = () => ({
2
- '.sk-tabs': {
3
- '&-stretch': {
4
- '@apply w-full': {},
5
- },
6
- '&-list': {
7
- '@apply block relative w-full h-[3rem]': {},
8
- '&-stretch': {
9
- '@apply flex justify-between': {},
10
- },
11
- '&-right': {
12
- '@apply text-right': {},
13
- },
14
- '&-center': {
15
- '@apply text-center': {},
16
- },
17
-
18
- '&-line::after': {
19
- content: '""',
20
- '@apply bg-gray-middle w-full h-[2px] absolute left-0 right-0 bottom-0': {},
21
- },
22
- },
23
- '&-tab': {
24
- '@apply relative mr-[3.2rem] text-base font-bold p-0 relative h-[2.8rem] inline-block': {},
25
- '@apply text-gray': {},
26
- '@apply cursor-pointer': {},
27
- '&.disabled': {
28
- '@apply cursor-not-allowed': {},
29
- '@apply text-gray-stroke': {},
30
- },
31
- '&.active': {
32
- '@apply text-body': {},
33
- '&::after': {
34
- content: '""',
35
- '@apply bg-primary w-full h-[2px] absolute left-0 right-0 top-[100%] z-[1]': {},
36
- },
37
- },
38
- '&-stretch': {
39
- '@apply mr-0': {},
40
- },
41
- '&-header': {
42
- '@apply text-lg font-normal': {},
43
- },
44
- '&-right': {
45
- '@apply mr-0 ml-lg': {},
46
- },
47
- '&:last-of-type': {
48
- '@apply mr-0': {},
49
- },
50
- '&-icon': {
51
- '&-with-label': {
52
- '@apply mr-sm': {},
53
- },
54
- },
55
- },
56
- '&-panel': {
57
- '@apply mt-lg': {},
58
- '&:not(.active)': {
59
- display: 'none',
60
- hidden: true,
61
- },
62
- },
63
- },
64
- });
1
+ module.exports = Tabs = () => ({
2
+ '.sk-tabs': {
3
+ '&-stretch': {
4
+ '@apply w-full': {},
5
+ },
6
+ '&-list': {
7
+ '@apply block relative w-full h-[3rem]': {},
8
+ '&-stretch': {
9
+ '@apply flex justify-between': {},
10
+ },
11
+ '&-right': {
12
+ '@apply text-right': {},
13
+ },
14
+ '&-center': {
15
+ '@apply text-center': {},
16
+ },
17
+
18
+ '&-line::after': {
19
+ content: '""',
20
+ '@apply bg-gray-middle w-full h-[2px] absolute left-0 right-0 bottom-0': {},
21
+ },
22
+ },
23
+ '&-tab': {
24
+ '@apply relative mr-[3.2rem] text-base font-bold p-0 relative h-[2.8rem] inline-block': {},
25
+ '@apply text-gray': {},
26
+ '@apply cursor-pointer': {},
27
+ '&.disabled': {
28
+ '@apply cursor-not-allowed': {},
29
+ '@apply text-gray-stroke': {},
30
+ },
31
+ '&.active': {
32
+ '@apply text-body': {},
33
+ '&::after': {
34
+ content: '""',
35
+ '@apply bg-primary w-full h-[2px] absolute left-0 right-0 top-[100%] z-[1]': {},
36
+ },
37
+ },
38
+ '&-stretch': {
39
+ '@apply mr-0': {},
40
+ },
41
+ '&-header': {
42
+ '@apply text-lg font-normal': {},
43
+ },
44
+ '&-right': {
45
+ '@apply mr-0 ml-lg': {},
46
+ },
47
+ '&:last-of-type': {
48
+ '@apply mr-0': {},
49
+ },
50
+ '&-icon': {
51
+ '&-with-label': {
52
+ '@apply mr-sm': {},
53
+ },
54
+ },
55
+ },
56
+ '&-panel': {
57
+ '@apply mt-lg': {},
58
+ '&:not(.active)': {
59
+ display: 'none',
60
+ hidden: true,
61
+ },
62
+ },
63
+ },
64
+ });
package/src/index.js CHANGED
@@ -1,8 +1,8 @@
1
- const preset = require('./preset');
2
- const plugin = require('./plugin');
3
-
4
- module.exports = {
5
- default: plugin,
6
- plugin: plugin,
7
- preset: preset,
8
- };
1
+ const preset = require('./preset');
2
+ const plugin = require('./plugin');
3
+
4
+ module.exports = {
5
+ default: plugin,
6
+ plugin: plugin,
7
+ preset: preset,
8
+ };