@sk-web-gui/core 0.1.87 → 0.1.89

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 (118) hide show
  1. package/dist/cjs/base.js +0 -2
  2. package/dist/cjs/base.js.map +1 -1
  3. package/dist/cjs/colors.js +0 -2
  4. package/dist/cjs/colors.js.map +1 -1
  5. package/dist/cjs/components/accordion.js +0 -2
  6. package/dist/cjs/components/accordion.js.map +1 -1
  7. package/dist/cjs/components/alert-banner.js +0 -2
  8. package/dist/cjs/components/alert-banner.js.map +1 -1
  9. package/dist/cjs/components/alert.js +0 -2
  10. package/dist/cjs/components/alert.js.map +1 -1
  11. package/dist/cjs/components/avatar.js +0 -2
  12. package/dist/cjs/components/avatar.js.map +1 -1
  13. package/dist/cjs/components/badge.js +0 -2
  14. package/dist/cjs/components/badge.js.map +1 -1
  15. package/dist/cjs/components/breadcrumb.js +0 -2
  16. package/dist/cjs/components/breadcrumb.js.map +1 -1
  17. package/dist/cjs/components/button-group.js +0 -2
  18. package/dist/cjs/components/button-group.js.map +1 -1
  19. package/dist/cjs/components/button.js +0 -2
  20. package/dist/cjs/components/button.js.map +1 -1
  21. package/dist/cjs/components/calendar.js +0 -2
  22. package/dist/cjs/components/calendar.js.map +1 -1
  23. package/dist/cjs/components/card.js +0 -2
  24. package/dist/cjs/components/card.js.map +1 -1
  25. package/dist/cjs/components/checkbox.js +0 -2
  26. package/dist/cjs/components/checkbox.js.map +1 -1
  27. package/dist/cjs/components/code.js +0 -2
  28. package/dist/cjs/components/code.js.map +1 -1
  29. package/dist/cjs/components/comments.js +0 -2
  30. package/dist/cjs/components/comments.js.map +1 -1
  31. package/dist/cjs/components/context-menu.js +0 -2
  32. package/dist/cjs/components/context-menu.js.map +1 -1
  33. package/dist/cjs/components/cookie-consent.js +0 -2
  34. package/dist/cjs/components/cookie-consent.js.map +1 -1
  35. package/dist/cjs/components/dialog.js +0 -2
  36. package/dist/cjs/components/dialog.js.map +1 -1
  37. package/dist/cjs/components/divider.js +0 -2
  38. package/dist/cjs/components/divider.js.map +1 -1
  39. package/dist/cjs/components/dot.js +0 -2
  40. package/dist/cjs/components/dot.js.map +1 -1
  41. package/dist/cjs/components/dropdown-filter.js +0 -2
  42. package/dist/cjs/components/dropdown-filter.js.map +1 -1
  43. package/dist/cjs/components/footer.js +0 -2
  44. package/dist/cjs/components/footer.js.map +1 -1
  45. package/dist/cjs/components/forms.js +1 -3
  46. package/dist/cjs/components/forms.js.map +1 -1
  47. package/dist/cjs/components/header.js +0 -2
  48. package/dist/cjs/components/header.js.map +1 -1
  49. package/dist/cjs/components/icon.js +0 -2
  50. package/dist/cjs/components/icon.js.map +1 -1
  51. package/dist/cjs/components/kbd.js +0 -2
  52. package/dist/cjs/components/kbd.js.map +1 -1
  53. package/dist/cjs/components/link.js +0 -2
  54. package/dist/cjs/components/link.js.map +1 -1
  55. package/dist/cjs/components/message.js +0 -2
  56. package/dist/cjs/components/message.js.map +1 -1
  57. package/dist/cjs/components/modal.js +0 -2
  58. package/dist/cjs/components/modal.js.map +1 -1
  59. package/dist/cjs/components/notification.js +0 -2
  60. package/dist/cjs/components/notification.js.map +1 -1
  61. package/dist/cjs/components/pagination.js +1 -3
  62. package/dist/cjs/components/pagination.js.map +1 -1
  63. package/dist/cjs/components/profile-picture.js +0 -2
  64. package/dist/cjs/components/profile-picture.js.map +1 -1
  65. package/dist/cjs/components/profile.js +0 -2
  66. package/dist/cjs/components/profile.js.map +1 -1
  67. package/dist/cjs/components/radio.js +0 -2
  68. package/dist/cjs/components/radio.js.map +1 -1
  69. package/dist/cjs/components/search-bar.js +0 -2
  70. package/dist/cjs/components/search-bar.js.map +1 -1
  71. package/dist/cjs/components/side-menu.js +49 -42
  72. package/dist/cjs/components/side-menu.js.map +1 -1
  73. package/dist/cjs/components/switch.js +0 -2
  74. package/dist/cjs/components/switch.js.map +1 -1
  75. package/dist/cjs/components/tab-menu.js +0 -2
  76. package/dist/cjs/components/tab-menu.js.map +1 -1
  77. package/dist/cjs/components/table.js +0 -2
  78. package/dist/cjs/components/table.js.map +1 -1
  79. package/dist/cjs/components/tabs.js +0 -2
  80. package/dist/cjs/components/tabs.js.map +1 -1
  81. package/dist/cjs/components/tag.js +0 -2
  82. package/dist/cjs/components/tag.js.map +1 -1
  83. package/dist/cjs/components/user-menu.js +0 -2
  84. package/dist/cjs/components/user-menu.js.map +1 -1
  85. package/dist/cjs/components/zebratable.js +0 -2
  86. package/dist/cjs/components/zebratable.js.map +1 -1
  87. package/dist/cjs/index.js +0 -2
  88. package/dist/cjs/index.js.map +1 -1
  89. package/dist/cjs/plugin.js +0 -2
  90. package/dist/cjs/plugin.js.map +1 -1
  91. package/dist/cjs/preset.js +0 -2
  92. package/dist/cjs/preset.js.map +1 -1
  93. package/dist/cjs/theme.js +0 -2
  94. package/dist/cjs/theme.js.map +1 -1
  95. package/dist/cjs/with-opacity.js +0 -2
  96. package/dist/cjs/with-opacity.js.map +1 -1
  97. package/dist/esm/components/comments.js.map +1 -1
  98. package/dist/esm/components/forms.js +1 -1
  99. package/dist/esm/components/forms.js.map +1 -1
  100. package/dist/esm/components/pagination.js +1 -1
  101. package/dist/esm/components/pagination.js.map +1 -1
  102. package/dist/esm/components/side-menu.js +49 -40
  103. package/dist/esm/components/side-menu.js.map +1 -1
  104. package/dist/esm/components/tab-menu.js.map +1 -1
  105. package/dist/esm/components/tabs.js.map +1 -1
  106. package/dist/esm/index.js.map +1 -1
  107. package/dist/esm/plugin.js.map +1 -1
  108. package/dist/esm/theme.js.map +1 -1
  109. package/package.json +7 -7
  110. package/src/components/comments.js +33 -33
  111. package/src/components/forms.js +9 -9
  112. package/src/components/pagination.js +1 -1
  113. package/src/components/side-menu.js +51 -40
  114. package/src/components/tab-menu.js +58 -58
  115. package/src/components/tabs.js +64 -64
  116. package/src/index.js +8 -8
  117. package/src/plugin.js +120 -120
  118. package/src/theme.js +84 -84
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sk-web-gui/core",
3
- "version": "0.1.87",
3
+ "version": "0.1.89",
4
4
  "license": "MIT",
5
5
  "main": "src/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -29,16 +29,16 @@
29
29
  "tailwindcss": "^3.2.7"
30
30
  },
31
31
  "devDependencies": {
32
- "autoprefixer": "^10.4.14",
32
+ "autoprefixer": "^10.4.16",
33
33
  "clean-css": "^5.3.2",
34
- "postcss": "^8.4.23",
34
+ "postcss": "^8.4.31",
35
35
  "postcss-import": "^15.1.0",
36
- "tailwind-scrollbar": "^3.0.4",
37
- "tailwindcss": "^3.2.7"
36
+ "tailwind-scrollbar": "^3.0.5",
37
+ "tailwindcss": "^3.3.3"
38
38
  },
39
39
  "dependencies": {
40
- "@sk-web-gui/theme": "0.1.13",
40
+ "@sk-web-gui/theme": "0.1.14",
41
41
  "mini-svg-data-uri": "^1.4.4"
42
42
  },
43
- "gitHead": "433ca907ab7124030c8045bc5964a4f8ff5db68d"
43
+ "gitHead": "c34ffa09211bc344fff14ae3598af36758bbdab8"
44
44
  }
@@ -1,34 +1,34 @@
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 gap-2': {},
12
- },
13
- '&-text': {
14
- '@apply text-base font-bold mx-0 mb-0 mt-4': {},
15
- },
16
- '&-commentorpublished': {
17
- '@apply float-right text-neutral-600 m-0': {},
18
- },
19
- },
20
- '.comment-input':{
21
- '@apply w-full flex gap-4 px-10 pt-8 pb-10': {},
22
-
23
- '&-inactive': {
24
- '@apply text-neutral-300 !text-3xl': {},
25
- },
26
-
27
- '&-active': {
28
- '@apply text-primary !text-3xl': {},
29
- }
30
-
31
- },
32
-
33
-
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 gap-2': {},
12
+ },
13
+ '&-text': {
14
+ '@apply text-base font-bold mx-0 mb-0 mt-4': {},
15
+ },
16
+ '&-commentorpublished': {
17
+ '@apply float-right text-neutral-600 m-0': {},
18
+ },
19
+ },
20
+ '.comment-input':{
21
+ '@apply w-full flex gap-4 px-10 pt-8 pb-10': {},
22
+
23
+ '&-inactive': {
24
+ '@apply text-neutral-300 !text-3xl': {},
25
+ },
26
+
27
+ '&-active': {
28
+ '@apply text-primary !text-3xl': {},
29
+ }
30
+
31
+ },
32
+
33
+
34
34
  });
@@ -156,7 +156,7 @@ function formInputGroup() {
156
156
 
157
157
  '.form-input-addon': {
158
158
  '@apply flex items-center w-auto shadow-sm whitespace-nowrap': {},
159
- '@apply text-neutral-600 bg-neutral-50': {},
159
+ '@apply text-gray bg-neutral-50': {},
160
160
  // dark colors
161
161
  '@apply dark:border-neutral-700': {},
162
162
  '@apply dark:text-neutral-100 dark:bg-white/30': {},
@@ -310,13 +310,14 @@ module.exports = Forms = (colors) => ({
310
310
  },
311
311
 
312
312
  '.form-select-list-transition': {
313
- '@apply absolute z-50 w-full bg-white shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm': {},
313
+ '@apply absolute z-50 w-full bg-white shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm':
314
+ {},
314
315
  '&.showabove': {
315
- '@apply mb-1 bottom-full': {}
316
+ '@apply mb-1 bottom-full': {},
316
317
  },
317
318
  '&:not(.showabove)': {
318
- '@apply mt-1 top-full': {}
319
- }
319
+ '@apply mt-1 top-full': {},
320
+ },
320
321
  },
321
322
 
322
323
  '.form-select': {
@@ -330,11 +331,10 @@ module.exports = Forms = (colors) => ({
330
331
  '@apply grow-0': {},
331
332
  },
332
333
  '&-list': {
333
- '@apply z-10 absolute overflow-y-auto w-full bg-white mt-0 border border-gray-stroke border-t-0 border-b': {
334
- },
334
+ '@apply z-10 absolute overflow-y-auto w-full bg-white mt-0 border border-gray-stroke border-t-0 border-b': {},
335
335
  '&.showabove': {
336
- '@apply border-t border-b-0': {}
337
- }
336
+ '@apply border-t border-b-0': {},
337
+ },
338
338
  },
339
339
  '&-has-multiple-choices': {
340
340
  '@apply flex w-full h-full justify-between items-center pr-md': {},
@@ -47,7 +47,7 @@ module.exports = Pagination = () => ({
47
47
  },
48
48
 
49
49
  "&[disabled='false']": {
50
- '&-label, &-icon': {
50
+ '.sk-pagination-prevNextButton-label, .sk-pagination-prevNextButton-icon': {
51
51
  '@apply cursor-pointer': {},
52
52
  },
53
53
  },
@@ -1,8 +1,8 @@
1
1
  module.exports = Menu = () => ({
2
- '.side-menu': {
2
+ '.sk-sidemenu': {
3
3
  '@apply w-[440px]': {},
4
4
 
5
- '.menu-header': {
5
+ '&-header': {
6
6
  '@apply relative py-[2rem] px-[1.6rem] rounded-t-[.2rem] bg-primary text-white': {},
7
7
 
8
8
  '.label-small': {
@@ -10,18 +10,18 @@ module.exports = Menu = () => ({
10
10
  },
11
11
 
12
12
  '.label-button': {
13
- '@apply w-full justify-between p-0': {},
13
+ '@apply w-full justify-between p-0 leading-[inherit]': {},
14
14
 
15
15
  '&-icon': {
16
16
  '@apply !text-xl': {},
17
17
  },
18
18
  },
19
19
 
20
- '.label-header': {
20
+ '&-label': {
21
21
  '@apply flex items-center': {},
22
22
 
23
23
  'label, .label': {
24
- '@apply text-xl font-bold': {},
24
+ '@apply text-xl font-bold flex items-center w-full': {},
25
25
  },
26
26
 
27
27
  span: {
@@ -30,10 +30,14 @@ module.exports = Menu = () => ({
30
30
  },
31
31
  },
32
32
 
33
- '.menu-item': {
33
+ '&-item': {
34
34
  '@apply bg-white h-full': {},
35
35
 
36
- '.items': {
36
+ '> ul.items': {
37
+ '@apply hidden': {},
38
+ },
39
+
40
+ '&.open > ul.items': {
37
41
  '@apply block': {},
38
42
  },
39
43
 
@@ -42,9 +46,9 @@ module.exports = Menu = () => ({
42
46
  },
43
47
 
44
48
  '&.active': {
45
- '> .wrapper': {
49
+ '> .sk-sidemenu-wrapper': {
46
50
  boxShadow: 'inset 6px 0 0 0 #005595',
47
- '.menu-item-label': {
51
+ '.sk-sidemenu-item-label': {
48
52
  '@apply underline': {},
49
53
  },
50
54
  },
@@ -54,11 +58,12 @@ module.exports = Menu = () => ({
54
58
  '@apply fill-primary': {},
55
59
  },
56
60
 
57
- '& .wrapper': {
61
+ '& .sk-sidemenu-wrapper': {
58
62
  '@apply min-h-[48px] max-h-[48px] relative flex flex-wrap items-center': {},
59
63
 
60
- '.menu-item-link': {
61
- '@apply flex-grow relative flex items-center text-base text-left justify-start py-sm pr-sm h-full': {},
64
+ '.sk-sidemenu-item-link': {
65
+ '@apply flex-grow relative flex items-center text-base text-left justify-start pr-sm h-full': {},
66
+ '@apply focus-visible:z-base': {},
62
67
  },
63
68
 
64
69
  '.expand': {
@@ -71,21 +76,21 @@ module.exports = Menu = () => ({
71
76
  },
72
77
 
73
78
  '&.open': {
74
- '& + .menu-item > .wrapper': {
79
+ '& + .menu-item > .sk-sidemenu-wrapper': {
75
80
  '@apply border-t': {},
76
81
  },
77
82
  },
78
83
 
79
84
  '&.draggable': {
80
85
  '&.dragenter': {
81
- '> .wrapper': {
86
+ '> .sk-sidemenu-wrapper': {
82
87
  '@apply h-full max-h-full': {},
83
88
  },
84
- "> .wrapper > *:not([draggable='true'])": {
89
+ "> .sk-sidemenu-wrapper > *:not([draggable='true'])": {
85
90
  '@apply pointer-events-none': {},
86
91
  },
87
92
 
88
- '& > .wrapper::after': {
93
+ '& > .sk-sidemenu-wrapper::after': {
89
94
  '@apply bg-info-light block relative w-full h-[44px]': {},
90
95
  content: "''",
91
96
  },
@@ -95,7 +100,7 @@ module.exports = Menu = () => ({
95
100
  '@apply hidden': {},
96
101
  },
97
102
 
98
- '& .menu-item-move-button': {
103
+ '& .sk-sidemenu-menuitem-movebutton': {
99
104
  '@apply -translate-x-full no-underline text-gray-stroke absolute py-sm inset-y-0 my-auto': {},
100
105
 
101
106
  svg: {
@@ -115,7 +120,7 @@ module.exports = Menu = () => ({
115
120
  '&.separator': {
116
121
  '@apply bg-transparent relative': {},
117
122
 
118
- '> div.wrapper, > .menu-item-link': {
123
+ '> div.sk-sidemenu-wrapper, > .sk-sidemenu-item-link': {
119
124
  '@apply h-[44px]': {},
120
125
  },
121
126
  },
@@ -132,23 +137,23 @@ module.exports = Menu = () => ({
132
137
  },
133
138
 
134
139
  '&.lvl-0': {
135
- '&:first-child > .wrapper': {
140
+ '&:first-child > .sk-sidemenu-wrapper': {
136
141
  '@apply border-t-0': {},
137
142
  },
138
- '> .wrapper': {
143
+ '> .sk-sidemenu-wrapper': {
139
144
  '@apply h-[64px] max-h-[64px] border border-svartvik-200': {},
140
145
 
141
- '> .menu-item-link': {
146
+ '> .sk-sidemenu-item-link': {
142
147
  '@apply py-md': {},
143
148
  paddingLeft: '3.2rem',
144
149
  },
145
150
  },
146
151
 
147
- '.menu-item-link': {
152
+ '.sk-sidemenu-item-link': {
148
153
  '@apply h-[64px] max-h-[64px]': {},
149
154
  },
150
155
 
151
- '& + .menu-item > .wrapper': {
156
+ '& + .sk-sidemenu-item > .sk-sidemenu-wrapper': {
152
157
  '@apply border-t-0': {},
153
158
  },
154
159
 
@@ -160,88 +165,94 @@ module.exports = Menu = () => ({
160
165
  '@apply border-b border-svartvik-200': {},
161
166
  },
162
167
 
163
- '&.separator > .wrapper': {
164
- '@apply border-l-0 border-r-0': {},
168
+ '&.separator': {
169
+ '& + .lvl-0': {
170
+ '@apply border-t border-svartvik-200': {},
171
+ },
172
+ },
173
+
174
+ '&.separator > .sk-sidemenu-wrapper': {
175
+ '@apply border-0': {},
165
176
  },
166
177
  },
167
178
 
168
179
  '&.lvl-1': {
169
180
  '@apply bg-gray-lighter': {},
170
181
 
171
- '> .wrapper, .menu-item-link': {
182
+ '> .sk-sidemenu-wrapper, .sk-sidemenu-item-link': {
172
183
  '@apply h-[56px] max-h-[56px]': {},
173
184
  },
174
185
 
175
- '&.open > .wrapper': {
186
+ '&.open > .sk-sidemenu-wrapper': {
176
187
  '@apply border-b border-svartvik-200': {},
177
188
  },
178
189
 
179
- '> .wrapper > .menu-item-link': {
190
+ '> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
180
191
  paddingLeft: '4.8rem',
181
192
  },
182
193
  },
183
194
 
184
195
  '&.lvl-2': {
185
- '.wrapper': {
196
+ '.sk-sidemenu-wrapper': {
186
197
  '@apply bg-gray-middle h-[48px] max-h-[48px]': {},
187
198
 
188
- '> .menu-item-link': {
199
+ '> .sk-sidemenu-item-link': {
189
200
  '@apply h-[48px] max-h-[48px]': {},
190
201
  },
191
202
  },
192
203
 
193
- '> .wrapper > .menu-item-link': {
204
+ '> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
194
205
  paddingLeft: '6.4rem',
195
206
  },
196
207
  },
197
208
 
198
209
  '&.lvl-3': {
199
- '> .wrapper > .menu-item-link': {
210
+ '> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
200
211
  paddingLeft: '8rem',
201
212
  },
202
213
  },
203
214
 
204
215
  '&.lvl-4': {
205
- '.wrapper': {
216
+ '.sk-sidemenu-wrapper': {
206
217
  '@apply bg-[#d4d4d4]': {},
207
218
  },
208
- '> .wrapper > .menu-item-link': {
219
+ '> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
209
220
  paddingLeft: '9.6rem',
210
221
  },
211
222
  },
212
223
 
213
224
  '&.lvl-5': {
214
- '> .wrapper > .menu-item-link': {
225
+ '> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
215
226
  paddingLeft: '11.2rem',
216
227
  },
217
228
  },
218
229
 
219
230
  '&.lvl-6': {
220
- '> .wrapper > .menu-item-link': {
231
+ '> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
221
232
  paddingLeft: '12.8rem',
222
233
  },
223
234
  },
224
235
 
225
236
  '&.lvl-7': {
226
- '> .wrapper > .menu-item-link': {
237
+ '> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
227
238
  paddingLeft: '14.4rem',
228
239
  },
229
240
  },
230
241
 
231
242
  '&.lvl-8': {
232
- '> .wrapper > .menu-item-link': {
243
+ '> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
233
244
  paddingLeft: '16rem',
234
245
  },
235
246
  },
236
247
 
237
248
  '&.lvl-9': {
238
- '> .wrapper > .menu-item-link': {
249
+ '> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
239
250
  paddingLeft: '17.6rem',
240
251
  },
241
252
  },
242
253
 
243
254
  '&.lvl-10': {
244
- '> .wrapper > .menu-item-link': {
255
+ '> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
245
256
  paddingLeft: '19.2rem',
246
257
  },
247
258
  },
@@ -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
+ };