@sk-web-gui/core 1.0.2 → 1.0.3
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/dist/cjs/components/header.js +5 -1
- package/dist/cjs/components/header.js.map +1 -1
- package/dist/cjs/components/zebratable.js +13 -4
- package/dist/cjs/components/zebratable.js.map +1 -1
- package/dist/esm/components/header.js +5 -1
- package/dist/esm/components/header.js.map +1 -1
- package/dist/esm/components/zebratable.js +13 -4
- package/dist/esm/components/zebratable.js.map +1 -1
- package/dist/types/base.d.ts +52 -0
- package/dist/types/colors.d.ts +883 -0
- package/dist/types/components/accordion.d.ts +97 -0
- package/dist/types/components/alert-banner.d.ts +24 -0
- package/dist/types/components/alert.d.ts +10 -0
- package/dist/types/components/avatar.d.ts +4 -0
- package/dist/types/components/badge.d.ts +4 -0
- package/dist/types/components/breadcrumb.d.ts +29 -0
- package/dist/types/components/button-group.d.ts +26 -0
- package/dist/types/components/button.d.ts +172 -0
- package/dist/types/components/card.d.ts +56 -0
- package/dist/types/components/checkbox.d.ts +106 -0
- package/dist/types/components/code.d.ts +9 -0
- package/dist/types/components/combobox.d.ts +65 -0
- package/dist/types/components/comments.d.ts +30 -0
- package/dist/types/components/context-menu.d.ts +39 -0
- package/dist/types/components/cookie-consent.d.ts +36 -0
- package/dist/types/components/dialog.d.ts +6 -0
- package/dist/types/components/divider.d.ts +51 -0
- package/dist/types/components/dot.d.ts +35 -0
- package/dist/types/components/dropdown-filter.d.ts +58 -0
- package/dist/types/components/filter.d.ts +15 -0
- package/dist/types/components/footer.d.ts +28 -0
- package/dist/types/components/forms.d.ts +25 -0
- package/dist/types/components/header.d.ts +29 -0
- package/dist/types/components/icon.d.ts +4 -0
- package/dist/types/components/input.d.ts +207 -0
- package/dist/types/components/kbd.d.ts +8 -0
- package/dist/types/components/label.d.ts +4 -0
- package/dist/types/components/link.d.ts +44 -0
- package/dist/types/components/list.d.ts +53 -0
- package/dist/types/components/logo.d.ts +49 -0
- package/dist/types/components/menu-vertical.d.ts +219 -0
- package/dist/types/components/menubar.d.ts +12 -0
- package/dist/types/components/modal.d.ts +42 -0
- package/dist/types/components/notification.d.ts +48 -0
- package/dist/types/components/pagination.d.ts +101 -0
- package/dist/types/components/popup-menu.d.ts +106 -0
- package/dist/types/components/progress-bar.d.ts +4 -0
- package/dist/types/components/progress-stepper.d.ts +51 -0
- package/dist/types/components/radio.d.ts +126 -0
- package/dist/types/components/search-field.d.ts +21 -0
- package/dist/types/components/select.d.ts +142 -0
- package/dist/types/components/side-menu.d.ts +219 -0
- package/dist/types/components/snackbar.d.ts +31 -0
- package/dist/types/components/spinner.d.ts +4 -0
- package/dist/types/components/switch.d.ts +65 -0
- package/dist/types/components/tab-menu.d.ts +57 -0
- package/dist/types/components/table.d.ts +12 -0
- package/dist/types/components/tabs.d.ts +64 -0
- package/dist/types/components/tooltip.d.ts +54 -0
- package/dist/types/components/user-menu.d.ts +14 -0
- package/dist/types/components/zebratable.d.ts +135 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/plugin.d.ts +8 -0
- package/dist/types/preset.d.ts +13 -0
- package/dist/types/theme.d.ts +1719 -0
- package/dist/types/units.d.ts +247 -0
- package/dist/types/with-opacity.d.ts +4 -0
- package/package.json +14 -6
- package/dist/cjs/components/calendar.js +0 -67
- package/dist/cjs/components/calendar.js.map +0 -1
- package/dist/cjs/components/form-control.js +0 -8
- package/dist/cjs/components/form-control.js.map +0 -1
- package/dist/cjs/components/message.js +0 -52
- package/dist/cjs/components/message.js.map +0 -1
- package/dist/cjs/components/profile-picture.js +0 -15
- package/dist/cjs/components/profile-picture.js.map +0 -1
- package/dist/cjs/components/profile.js +0 -34
- package/dist/cjs/components/profile.js.map +0 -1
- package/dist/cjs/components/search-bar.js +0 -8
- package/dist/cjs/components/search-bar.js.map +0 -1
- package/dist/cjs/components/tag.js +0 -72
- package/dist/cjs/components/tag.js.map +0 -1
- package/dist/esm/components/calendar.js +0 -65
- package/dist/esm/components/calendar.js.map +0 -1
- package/dist/esm/components/form-control.js +0 -6
- package/dist/esm/components/form-control.js.map +0 -1
- package/dist/esm/components/message.js +0 -50
- package/dist/esm/components/message.js.map +0 -1
- package/dist/esm/components/profile-picture.js +0 -13
- package/dist/esm/components/profile-picture.js.map +0 -1
- package/dist/esm/components/profile.js +0 -32
- package/dist/esm/components/profile.js.map +0 -1
- package/dist/esm/components/search-bar.js +0 -6
- package/dist/esm/components/search-bar.js.map +0 -1
- package/dist/esm/components/tag.js +0 -79
- package/dist/esm/components/tag.js.map +0 -1
- package/src/base.js +0 -47
- package/src/colors.js +0 -645
- package/src/components/accordion.js +0 -103
- package/src/components/alert-banner.js +0 -29
- package/src/components/alert.js +0 -90
- package/src/components/avatar.js +0 -39
- package/src/components/badge.js +0 -41
- package/src/components/breadcrumb.js +0 -33
- package/src/components/button-group.js +0 -31
- package/src/components/button.js +0 -309
- package/src/components/card.js +0 -293
- package/src/components/checkbox.js +0 -136
- package/src/components/code.js +0 -9
- package/src/components/combobox.js +0 -66
- package/src/components/comments.js +0 -38
- package/src/components/context-menu.js +0 -49
- package/src/components/cookie-consent.js +0 -45
- package/src/components/dialog.js +0 -5
- package/src/components/divider.js +0 -52
- package/src/components/dot.js +0 -83
- package/src/components/dropdown-filter.js +0 -66
- package/src/components/filter.js +0 -16
- package/src/components/footer.js +0 -29
- package/src/components/forms.js +0 -27
- package/src/components/header.js +0 -28
- package/src/components/icon.js +0 -78
- package/src/components/input.js +0 -244
- package/src/components/kbd.js +0 -9
- package/src/components/label.js +0 -37
- package/src/components/link.js +0 -53
- package/src/components/list.js +0 -61
- package/src/components/logo.js +0 -49
- package/src/components/menu-vertical.js +0 -293
- package/src/components/menubar.js +0 -56
- package/src/components/modal.js +0 -47
- package/src/components/notification.js +0 -56
- package/src/components/pagination.js +0 -116
- package/src/components/popup-menu.js +0 -111
- package/src/components/progress-bar.js +0 -31
- package/src/components/progress-stepper.js +0 -50
- package/src/components/radio.js +0 -138
- package/src/components/search-field.js +0 -20
- package/src/components/select.js +0 -203
- package/src/components/side-menu.js +0 -272
- package/src/components/snackbar.js +0 -34
- package/src/components/spinner.js +0 -23
- package/src/components/switch.js +0 -85
- package/src/components/tab-menu.js +0 -58
- package/src/components/table.js +0 -13
- package/src/components/tabs.js +0 -64
- package/src/components/tooltip.js +0 -64
- package/src/components/user-menu.js +0 -13
- package/src/components/zebratable.js +0 -140
- package/src/index.js +0 -8
- package/src/plugin.js +0 -142
- package/src/preset.js +0 -5
- package/src/theme.js +0 -158
- package/src/units.js +0 -212
- package/src/with-opacity.js +0 -6
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
module.exports = Menu = () => ({
|
|
2
|
-
'.sk-sidemenu': {
|
|
3
|
-
'@apply w-[440px]': {},
|
|
4
|
-
|
|
5
|
-
'&-header': {
|
|
6
|
-
'@apply relative py-[2rem] px-[1.6rem] rounded-t-[.2rem] bg-primary text-white': {},
|
|
7
|
-
|
|
8
|
-
'.label-small': {
|
|
9
|
-
'@apply text-[1.6rem]': {},
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
'.label-button': {
|
|
13
|
-
'@apply w-full justify-between p-0 leading-[inherit]': {},
|
|
14
|
-
|
|
15
|
-
'&-icon': {
|
|
16
|
-
'@apply !text-xl': {},
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
'&-label': {
|
|
21
|
-
'@apply flex items-center': {},
|
|
22
|
-
|
|
23
|
-
'label, .label': {
|
|
24
|
-
'@apply text-xl font-bold flex items-center w-full': {},
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
span: {
|
|
28
|
-
'@apply ml-auto': {},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
'&-item': {
|
|
34
|
-
'@apply bg-white h-full': {},
|
|
35
|
-
|
|
36
|
-
'> ul.items': {
|
|
37
|
-
'@apply hidden': {},
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
'&.open > ul.items': {
|
|
41
|
-
'@apply block': {},
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
'&-label': {
|
|
45
|
-
'@apply flex-grow select-none flex items-center': {},
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
'&.active': {
|
|
49
|
-
'> .sk-sidemenu-wrapper': {
|
|
50
|
-
boxShadow: 'inset 6px 0 0 0 #005595',
|
|
51
|
-
'.sk-sidemenu-item-label': {
|
|
52
|
-
'@apply underline': {},
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
'& .sk-sidemenu-wrapper': {
|
|
58
|
-
'@apply min-h-[48px] max-h-[48px] relative flex flex-wrap items-center': {},
|
|
59
|
-
|
|
60
|
-
'.sk-sidemenu-item-link': {
|
|
61
|
-
'@apply flex-grow relative flex items-center text-base text-left justify-start pr-sm h-full': {},
|
|
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
|
-
},
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
'.expand': {
|
|
74
|
-
'@apply w-[50px] h-full flex justify-center items-center ml-auto p-0': {},
|
|
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
|
-
|
|
88
|
-
'&-button': {
|
|
89
|
-
'@apply fill-primary flex justify-center items-center border-l border-gray-stroke h-[24px] w-[45px]': {},
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
'&.open': {
|
|
95
|
-
'& + .menu-item > .sk-sidemenu-wrapper': {
|
|
96
|
-
'@apply border-t': {},
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
'&.draggable': {
|
|
101
|
-
'&.dragenter': {
|
|
102
|
-
'> .sk-sidemenu-wrapper': {
|
|
103
|
-
'@apply h-full max-h-full': {},
|
|
104
|
-
},
|
|
105
|
-
"> .sk-sidemenu-wrapper > *:not([draggable='true'])": {
|
|
106
|
-
'@apply pointer-events-none': {},
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
'& > .sk-sidemenu-wrapper::after': {
|
|
110
|
-
'@apply bg-info-surface-accent block relative w-full h-[44px]': {},
|
|
111
|
-
content: "''",
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
'&.moving': {
|
|
116
|
-
'@apply hidden': {},
|
|
117
|
-
},
|
|
118
|
-
|
|
119
|
-
'& .sk-sidemenu-menuitem-movebutton': {
|
|
120
|
-
'@apply -translate-x-full no-underline text-gray-stroke absolute py-sm inset-y-0 my-auto': {},
|
|
121
|
-
|
|
122
|
-
svg: {
|
|
123
|
-
'@apply h-full': {},
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
'&[aria-disabled="true"]': {
|
|
127
|
-
'@apply !text-gray-stroke cursor-not-allowed !bg-transparent': {},
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
|
|
131
|
-
'&.separator': {
|
|
132
|
-
'@apply bg-transparent relative': {},
|
|
133
|
-
|
|
134
|
-
'> div.sk-sidemenu-wrapper, > .sk-sidemenu-item-link': {
|
|
135
|
-
'@apply h-[44px]': {},
|
|
136
|
-
},
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
|
|
140
|
-
'&-separator': {
|
|
141
|
-
'@apply text-divider': {},
|
|
142
|
-
height: '1px',
|
|
143
|
-
width: '100%',
|
|
144
|
-
backgroundImage: `repeating-linear-gradient(0deg, currentColor, currentColor 19px, transparent 19px, transparent 38px, currentColor 38px), repeating-linear-gradient(90deg, currentColor, currentColor 19px, transparent 19px, transparent 38px, currentColor 38px), repeating-linear-gradient(180deg, currentColor, currentColor 19px, transparent 19px, transparent 38px, currentColor 38px), repeating-linear-gradient(270deg, currentColor, currentColor 19px, transparent 19px, transparent 38px, currentColor 38px)`,
|
|
145
|
-
backgroundSize: '2px 100%, 100% 2px, 2px 100% , 100% 2px',
|
|
146
|
-
backgroundPosition: '0 0, 0 0, 100% 0, 0 100%',
|
|
147
|
-
backgroundRepeat: 'no-repeat',
|
|
148
|
-
},
|
|
149
|
-
|
|
150
|
-
'&.lvl-0': {
|
|
151
|
-
'&:first-child > .sk-sidemenu-wrapper': {
|
|
152
|
-
'@apply border-t-0': {},
|
|
153
|
-
},
|
|
154
|
-
'> .sk-sidemenu-wrapper': {
|
|
155
|
-
'@apply h-[64px] max-h-[64px] border border-divider': {},
|
|
156
|
-
|
|
157
|
-
'> .sk-sidemenu-item-link': {
|
|
158
|
-
'@apply py-md': {},
|
|
159
|
-
paddingLeft: '3.2rem',
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
|
|
163
|
-
'.sk-sidemenu-item-link': {
|
|
164
|
-
'@apply h-[64px] max-h-[64px]': {},
|
|
165
|
-
},
|
|
166
|
-
|
|
167
|
-
'& + .sk-sidemenu-item > .sk-sidemenu-wrapper': {
|
|
168
|
-
'@apply border-t-0': {},
|
|
169
|
-
},
|
|
170
|
-
|
|
171
|
-
'> .items': {
|
|
172
|
-
'@apply border-l border-r border-divider': {},
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
'&.open > .items': {
|
|
176
|
-
'@apply border-b border-divider': {},
|
|
177
|
-
},
|
|
178
|
-
|
|
179
|
-
'&.separator': {
|
|
180
|
-
'& + .lvl-0': {
|
|
181
|
-
'@apply border-t border-divider': {},
|
|
182
|
-
},
|
|
183
|
-
},
|
|
184
|
-
|
|
185
|
-
'&.separator > .sk-sidemenu-wrapper': {
|
|
186
|
-
'@apply border-0': {},
|
|
187
|
-
},
|
|
188
|
-
},
|
|
189
|
-
|
|
190
|
-
'&.lvl-1': {
|
|
191
|
-
'@apply bg-gray-lighter': {},
|
|
192
|
-
|
|
193
|
-
'> .sk-sidemenu-wrapper, .sk-sidemenu-item-link': {
|
|
194
|
-
'@apply h-[56px] max-h-[56px]': {},
|
|
195
|
-
},
|
|
196
|
-
|
|
197
|
-
'&.open > .sk-sidemenu-wrapper': {
|
|
198
|
-
'@apply border-b border-divider': {},
|
|
199
|
-
},
|
|
200
|
-
|
|
201
|
-
'> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
|
|
202
|
-
paddingLeft: '4.8rem',
|
|
203
|
-
},
|
|
204
|
-
},
|
|
205
|
-
|
|
206
|
-
'&.lvl-2': {
|
|
207
|
-
'.sk-sidemenu-wrapper': {
|
|
208
|
-
'@apply bg-gray-middle h-[48px] max-h-[48px]': {},
|
|
209
|
-
|
|
210
|
-
'> .sk-sidemenu-item-link': {
|
|
211
|
-
'@apply h-[48px] max-h-[48px]': {},
|
|
212
|
-
},
|
|
213
|
-
},
|
|
214
|
-
|
|
215
|
-
'> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
|
|
216
|
-
paddingLeft: '6.4rem',
|
|
217
|
-
},
|
|
218
|
-
},
|
|
219
|
-
|
|
220
|
-
'&.lvl-3': {
|
|
221
|
-
'> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
|
|
222
|
-
paddingLeft: '8rem',
|
|
223
|
-
},
|
|
224
|
-
},
|
|
225
|
-
|
|
226
|
-
'&.lvl-4': {
|
|
227
|
-
'.sk-sidemenu-wrapper': {
|
|
228
|
-
'@apply bg-[#d4d4d4]': {},
|
|
229
|
-
},
|
|
230
|
-
'> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
|
|
231
|
-
paddingLeft: '9.6rem',
|
|
232
|
-
},
|
|
233
|
-
},
|
|
234
|
-
|
|
235
|
-
'&.lvl-5': {
|
|
236
|
-
'> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
|
|
237
|
-
paddingLeft: '11.2rem',
|
|
238
|
-
},
|
|
239
|
-
},
|
|
240
|
-
|
|
241
|
-
'&.lvl-6': {
|
|
242
|
-
'> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
|
|
243
|
-
paddingLeft: '12.8rem',
|
|
244
|
-
},
|
|
245
|
-
},
|
|
246
|
-
|
|
247
|
-
'&.lvl-7': {
|
|
248
|
-
'> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
|
|
249
|
-
paddingLeft: '14.4rem',
|
|
250
|
-
},
|
|
251
|
-
},
|
|
252
|
-
|
|
253
|
-
'&.lvl-8': {
|
|
254
|
-
'> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
|
|
255
|
-
paddingLeft: '16rem',
|
|
256
|
-
},
|
|
257
|
-
},
|
|
258
|
-
|
|
259
|
-
'&.lvl-9': {
|
|
260
|
-
'> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
|
|
261
|
-
paddingLeft: '17.6rem',
|
|
262
|
-
},
|
|
263
|
-
},
|
|
264
|
-
|
|
265
|
-
'&.lvl-10': {
|
|
266
|
-
'> .sk-sidemenu-wrapper > .sk-sidemenu-item-link': {
|
|
267
|
-
paddingLeft: '19.2rem',
|
|
268
|
-
},
|
|
269
|
-
},
|
|
270
|
-
},
|
|
271
|
-
},
|
|
272
|
-
});
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
module.exports = Snackbar = () => ({
|
|
2
|
-
'.sk-snackbar': {
|
|
3
|
-
'@apply flex items-center gap-12 py-8 pl-16 pr-8 rounded-groups break-words max-w-[40rem]': {},
|
|
4
|
-
'@apply text-label-small text-vattjom-text-secondary': {},
|
|
5
|
-
|
|
6
|
-
'&-text': {
|
|
7
|
-
'@apply flex-grow': {},
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
'.sk-icon': {
|
|
11
|
-
'@apply text-light-primary': {},
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
'&-content': {
|
|
15
|
-
'@apply flex-grow gap-12 py-4 flex items-center': {},
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
'&-primary': {
|
|
19
|
-
'@apply text-light-secondary bg-dark-primary': {},
|
|
20
|
-
},
|
|
21
|
-
'&-info': {
|
|
22
|
-
'@apply text-vattjom-text-secondary bg-vattjom-surface-primary': {},
|
|
23
|
-
},
|
|
24
|
-
'&-success': {
|
|
25
|
-
'@apply text-gronsta-text-secondary bg-gronsta-surface-primary': {},
|
|
26
|
-
},
|
|
27
|
-
'&-warning': {
|
|
28
|
-
'@apply text-warning-text-secondary bg-warning-surface-primary': {},
|
|
29
|
-
},
|
|
30
|
-
'&-error': {
|
|
31
|
-
'@apply text-error-text-secondary bg-error-surface-primary': {},
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
module.exports = SearchBar = (colors) => ({
|
|
2
|
-
'.sk-spinner': {
|
|
3
|
-
'@apply box-border': {},
|
|
4
|
-
'@apply flex justify-center items-center object-center': {},
|
|
5
|
-
'@apply overflow-hidden': {},
|
|
6
|
-
|
|
7
|
-
path: {
|
|
8
|
-
'@apply stroke-dark-secondary': {},
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
...colors.reduce(
|
|
12
|
-
(styles, color) => ({
|
|
13
|
-
...styles,
|
|
14
|
-
[`&[data-color="${color}"]`]: {
|
|
15
|
-
path: {
|
|
16
|
-
[`@apply stroke-${color}-surface-primary`]: {},
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
}),
|
|
20
|
-
{}
|
|
21
|
-
),
|
|
22
|
-
},
|
|
23
|
-
});
|
package/src/components/switch.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
module.exports = Switch = () => ({
|
|
2
|
-
'.sk-form-switch-label': {
|
|
3
|
-
'@apply inline-flex align-middle items-center': {},
|
|
4
|
-
'@apply flex-row gap-12': {},
|
|
5
|
-
'@apply font-normal text-base': {},
|
|
6
|
-
|
|
7
|
-
"&[type='hidden']": {
|
|
8
|
-
'@apply hidden': {},
|
|
9
|
-
|
|
10
|
-
'.sk-form-switch': {
|
|
11
|
-
'@apply hidden': {},
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
'.sk-form-switch': {
|
|
16
|
-
'@apply rounded-full cursor-pointer focus:outline-none': {},
|
|
17
|
-
'@apply bg-primitives-overlay-darken-3 dark:bg-primitives-overlay-lighten-3': {},
|
|
18
|
-
|
|
19
|
-
// Hover
|
|
20
|
-
'@apply hover:bg-primitives-overlay-darken-5 hover:dark:bg-primitives-overlay-lighten-4': {},
|
|
21
|
-
|
|
22
|
-
// Focus
|
|
23
|
-
'input[type=checkbox]:focus-visible + &': {
|
|
24
|
-
'@apply ring ring-blue-500': {},
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
// Checked
|
|
28
|
-
'input[type=checkbox]:checked + &': {
|
|
29
|
-
[`&[data-color="gronsta"]`]: {
|
|
30
|
-
'.sk-form-switch-box': {
|
|
31
|
-
'@apply bg-gronsta-surface-primary': {},
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
'.sk-form-switch-icon': {
|
|
36
|
-
'@apply flex': {},
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
'.sk-form-switch-box': {
|
|
40
|
-
transform: 'translateX(2.4rem)',
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
'@apply bg-primitives-overlay-darken-4 dark:bg-primitives-overlay-lighten-5': {},
|
|
44
|
-
|
|
45
|
-
// Disabled
|
|
46
|
-
[`&[data-disabled="true"]`]: {
|
|
47
|
-
'.sk-form-switch-box': {
|
|
48
|
-
'@apply bg-transparent': {},
|
|
49
|
-
|
|
50
|
-
'.sk-form-switch-icon': {
|
|
51
|
-
'@apply bg-primitives-overlay-darken-6 dark:bg-primitives-overlay-lighten-6': {},
|
|
52
|
-
'@apply text-light-primary': {},
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
// Disabled not checked
|
|
59
|
-
[`&[data-disabled="true"]`]: {
|
|
60
|
-
'@apply cursor-default': {},
|
|
61
|
-
'@apply bg-primitives-overlay-darken-2 dark:bg-primitives-overlay-lighten-2': {},
|
|
62
|
-
|
|
63
|
-
'.sk-form-switch-box': {
|
|
64
|
-
'@apply bg-primitives-overlay-darken-6 dark:bg-primitives-overlay-lighten-6': {},
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
width: '5.6rem',
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
// Knob
|
|
72
|
-
'.sk-form-switch-box': {
|
|
73
|
-
'@apply transition-transform ease-in-out duration-150 transform rounded-full shadow translate-x-0 m-6': {},
|
|
74
|
-
'@apply bg-primitives-overlay-darken-7 dark:bg-primitives-overlay-lighten-7': {},
|
|
75
|
-
'@apply h-20 w-20': {},
|
|
76
|
-
'@apply flex justify-center items-center object-center': {},
|
|
77
|
-
|
|
78
|
-
'.sk-form-switch-icon': {
|
|
79
|
-
'@apply bg-transparent': {},
|
|
80
|
-
'@apply hidden': {},
|
|
81
|
-
'@apply w-20 h-20': {},
|
|
82
|
-
'@apply text-light-primary': {},
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
});
|
|
@@ -1,58 +0,0 @@
|
|
|
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
|
-
});
|
package/src/components/table.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
module.exports = Table = () => ({
|
|
2
|
-
'.table': {
|
|
3
|
-
'@apply min-w-full border-collapse border-gray-stroke divide-gray-lighter table-auto': {},
|
|
4
|
-
|
|
5
|
-
'&-item': {
|
|
6
|
-
'@apply px-6 py-4 border border-gray-stroke whitespace-nowrap': {},
|
|
7
|
-
|
|
8
|
-
'&:nth-child(odd)': {
|
|
9
|
-
'@apply bg-gray-lighter': {},
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
});
|
package/src/components/tabs.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
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-large 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,64 +0,0 @@
|
|
|
1
|
-
module.exports = Tooltip = () => ({
|
|
2
|
-
'.sk-tooltip': {
|
|
3
|
-
'@apply inline-flex justify-center items-center': {},
|
|
4
|
-
'@apply w-fit h-fit': {},
|
|
5
|
-
'@apply grow-0': {},
|
|
6
|
-
|
|
7
|
-
'&-text': {
|
|
8
|
-
'@apply inline-flex': {},
|
|
9
|
-
'@apply bg-primary-surface shadow': {},
|
|
10
|
-
'@apply px-16 py-8': {},
|
|
11
|
-
'@apply rounded-utility': {},
|
|
12
|
-
'@apply text-light-primary text-small': {},
|
|
13
|
-
'@apply font-bold': {},
|
|
14
|
-
'@apply w-fit h-fit': {},
|
|
15
|
-
'@apply grow-0': {},
|
|
16
|
-
'@apply min-h-[3.4rem]': {},
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
//Arrow
|
|
20
|
-
'&::after, &::before': {
|
|
21
|
-
'@apply h-0 w-0 overflow-hidden': {},
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
// Above
|
|
25
|
-
'&[data-position="above"]': {
|
|
26
|
-
'@apply flex-col': {},
|
|
27
|
-
'@apply pb-2': {},
|
|
28
|
-
'&::after': {
|
|
29
|
-
'@apply content-[""] border-solid border-[0.6rem] border-b-0': {},
|
|
30
|
-
'@apply border-t-primary-surface border-r-transparent border-b-transparent border-l-transparent': {},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
// Below
|
|
35
|
-
'&[data-position="below"]': {
|
|
36
|
-
'@apply flex-col': {},
|
|
37
|
-
'@apply pt-2': {},
|
|
38
|
-
'&::before': {
|
|
39
|
-
'@apply content-[""] border-solid border-[0.6rem] border-t-0': {},
|
|
40
|
-
'@apply border-t-transparent border-r-transparent border-b-primary-surface border-l-transparent': {},
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
// Left
|
|
45
|
-
'&[data-position="left"]': {
|
|
46
|
-
'@apply flex-row': {},
|
|
47
|
-
'@apply pr-2 py-[0.3rem]': {},
|
|
48
|
-
'&::after': {
|
|
49
|
-
'@apply content-[""] border-solid border-[0.6rem] border-r-0': {},
|
|
50
|
-
'@apply border-t-transparent border-r-transparent border-b-transparent border-l-primary-surface': {},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
// Right
|
|
55
|
-
'&[data-position="right"]': {
|
|
56
|
-
'@apply flex-row': {},
|
|
57
|
-
'@apply pl-2 py-[0.3rem]': {},
|
|
58
|
-
'&::before': {
|
|
59
|
-
'@apply content-[""] border-solid border-[0.6rem] border-l-0': {},
|
|
60
|
-
'@apply border-t-transparent border-r-primary-surface border-b-transparent border-l-transparent': {},
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
module.exports = UserMenu = () => ({
|
|
2
|
-
'.sk-usermenu': {
|
|
3
|
-
'@apply relative': {},
|
|
4
|
-
'&-button': {
|
|
5
|
-
'@apply p-0 bg-transparent hover:bg-transparent': {},
|
|
6
|
-
'@apply border-0': {},
|
|
7
|
-
'.sk-avatar': {
|
|
8
|
-
height: 'inherit',
|
|
9
|
-
width: 'inherit',
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
});
|